tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.toggleRecurrence={},function(e,t){"use strict";var n=e(document);t.selectors={toggleInput:'[data-js="tribe-events-pro-top-bar-toggle-recurrence"]'},t.handleChangeInput=function(t){var n=e(t.target).is(":checked"),i=tribe.events.views.manager.getContainer(t.target),r={view_data:{hide_subsequent_recurrences:!!n||null}};tribe.events.views.manager.request(r,i)},t.deinit=function(e,n,i){e.data.container.off("beforeAjaxSuccess.tribeEvents",t.deinit).find(t.selectors.toggleInput).off("change.tribeEvents",t.handleChangeInput)},t.init=function(e,n,i,r){i.on("beforeAjaxSuccess.tribeEvents",{container:i},t.deinit).find(t.selectors.toggleInput).on("change.tribeEvents",t.handleChangeInput)},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.toggleRecurrence),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.toggleRecurrence={};