tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.weekEventLink={},function(e,n){"use strict";var t=e(document);n.config={delayHoverIn:600},n.selectors={weekEventLink:'[data-js~="tribe-events-pro-week-grid-event-link"]',weekEventLinkHoverClass:".tribe-events-pro-week-grid__event-link--hover",weekEventLinkIntendedClass:".tribe-events-pro-week-grid__event-link--intended"},n.addIntendedClass=function(e){setTimeout((function(){(e.is(":focus")||e.hasClass(n.selectors.weekEventLinkHoverClass.className()))&&e.addClass(n.selectors.weekEventLinkIntendedClass.className())}),n.config.delayHoverIn)},n.removeIntendedClass=function(e){e.is(":focus")||e.hasClass(n.selectors.weekEventLinkHoverClass.className())||e.removeClass(n.selectors.weekEventLinkIntendedClass.className())},n.handleMouseEnter=function(e){var t=e.data.target;t.addClass(n.selectors.weekEventLinkHoverClass.className()),n.addIntendedClass(t)},n.handleMouseLeave=function(e){var t=e.data.target;t.removeClass(n.selectors.weekEventLinkHoverClass.className()),n.removeIntendedClass(t)},n.handleFocus=function(e){var t=e.data.target;n.addIntendedClass(t)},n.handleBlur=function(e){var t=e.data.target;n.removeIntendedClass(t)},n.handleKeydown=function(n){if(13===n.keyCode||32===n.keyCode){var t=e(n.currentTarget).data("event-url");t&&(n.preventDefault(),window.location.href=t)}},n.deinitEventLink=function(t){t.find(n.selectors.weekEventLink).each((function(n,t){e(t).off()}))},n.initEventLink=function(t){t.find(n.selectors.weekEventLink).each((function(t,s){var a=e(s);a.on("mouseenter touchstart",{target:a},n.handleMouseEnter).on("mouseleave touchstart",{target:a},n.handleMouseLeave).on("focus",{target:a},n.handleFocus).on("blur",{target:a},n.handleBlur),a.data("event-url")&&a.on("keydown",n.handleKeydown)}))},n.deinit=function(e,t,s){var a=e.data.container;n.deinitEventLink(a),a.off("beforeAjaxSuccess.tribeEvents",n.deinit)},n.init=function(e,t,s,a){"week"===a.slug&&(n.initEventLink(s),s.on("beforeAjaxSuccess.tribeEvents",{container:s},n.deinit))},n.ready=function(){t.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,n.init)},e(n.ready)}(jQuery,tribe.events.views.weekEventLink),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.weekEventLink={};