tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.mapNoVenueModal={},function(e,n){"use strict";var o=e(document);n.selectors={noVenueModal:'[data-js="tribe-events-pro-map-no-venue-modal"]',noVenueModalClose:'[data-js="tribe-events-pro-map-no-venue-modal-close"]',noVenueModalLink:'[data-js="tribe-events-pro-map-no-venue-modal-link"]',tribeCommonA11yHiddenClass:".tribe-common-a11y-hidden"},n.openNoVenueModal=function(e){e.data.modal.removeClass(n.selectors.tribeCommonA11yHiddenClass.className())},n.closeNoVenueModal=function(e){e.data.modal.addClass(n.selectors.tribeCommonA11yHiddenClass.className())},n.setNoVenueModalLink=function(e,o){e.data.modal.find(n.selectors.noVenueModalLink).attr("href",o)},n.unbindEvents=function(e){e.off("openNoVenueModal.tribeEvents",n.openNoVenueModal).off("closeNoVenueModal.tribeEvents",n.closeNoVenueModal).off("setNoVenueModalLink.tribeEvents",n.setNoVenueModalLink).find(n.selectors.noVenueModalClose).off("click",n.closeNoVenueModal)},n.bindEvents=function(e){var o=e.find(n.selectors.noVenueModal);e.on("openNoVenueModal.tribeEvents",{container:e,modal:o},n.openNoVenueModal).on("closeNoVenueModal.tribeEvents",{container:e,modal:o},n.closeNoVenueModal).on("setNoVenueModalLink.tribeEvents",{container:e,modal:o},n.setNoVenueModalLink).find(n.selectors.noVenueModalClose).on("click",{container:e,modal:o},n.closeNoVenueModal)},n.deinit=function(e,o,t){var s=e.data.container;n.unbindEvents(s),s.off("beforeAjaxSuccess.tribeEvents",n.deinit)},n.init=function(e,o,t,s){"map"===s.slug&&(n.bindEvents(t),t.on("beforeAjaxSuccess.tribeEvents",{container:t},n.deinit))},n.ready=function(){o.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,n.init)},e(n.ready)}(jQuery,tribe.events.views.mapNoVenueModal),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.mapNoVenueModal={};