tribe.tickets=tribe.tickets||{},tribe.tickets.rsvp=tribe.tickets.rsvp||{},tribe.tickets.rsvp.tooltip={},function(t,e){const o=t(document);e.config={delayHoverIn:300,delayHoverOut:300},e.selectors={tooltipTrigger:'[data-js~="tribe-tickets-tooltip"]',tribeTicketsRsvpTooltipTriggerHoverClass:".tribe-tickets-tooltip-trigger--hover",tribeTicketsRsvpTooltipThemeClass:".tribe-tickets-tooltip-theme",tribeTicketsRsvpTooltipThemeHoverClass:".tribe-tickets-tooltip-theme--hover",tribeCommonClass:".tribe-common",tribeTicketsClass:".event-tickets"},e.handleOriginFocus=function(t){setTimeout((function(){(t.data.target.is(":focus")||t.data.target.hasClass(e.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className()))&&t.data.target.tooltipster("open")}),e.config.delayHoverIn)},e.handleOriginBlur=function(t){t.data.target.tooltipster("close")},e.handleOriginHoverIn=function(t){t.data.target.addClass(e.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className())},e.handleOriginHoverOut=function(t){t.data.target.removeClass(e.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className())},e.handleTooltipHoverIn=function(t){t.data.target.addClass(e.selectors.tribeTicketsRsvpTooltipThemeHoverClass.className())},e.handleTooltipHoverOut=function(t){t.data.target.removeClass(e.selectors.tribeTicketsRsvpTooltipThemeHoverClass.className())},e.handleInstanceClose=function(o){const i=o.data.origin,s=t(o.tooltip);(i.is(":focus")||i.hasClass(e.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className())||s.hasClass(e.selectors.tribeTicketsRsvpTooltipThemeHoverClass.className()))&&o.stop()},e.handleInstanceClosing=function(o){t(o.tooltip).off("mouseenter touchstart",e.handleTooltipHoverIn).off("mouseleave touchleave",e.handleTooltipHoverOut)},e.onFunctionInit=function(o,i){const s=t(i.origin);s.on("focus",{target:s},e.handleOriginFocus).on("blur",{target:s},e.handleOriginBlur).on("mouseenter touchstart",{target:s},e.handleOriginHoverIn).on("mouseleave touchleave",{target:s},e.handleOriginHoverOut),o.on("close",{origin:s},e.handleInstanceClose).on("closing",{origin:s},e.handleInstanceClosing)},e.onFunctionReady=function(o,i){const s=t(i.tooltip);s.on("mouseenter touchstart",{target:s},e.handleTooltipHoverIn).on("mouseleave touchleave",{target:s},e.handleTooltipHoverOut)},e.deinitTooltips=function(o){o.find(e.selectors.tooltipTrigger).each((function(e,o){t(o).off().tooltipster("instance").off()}))},e.initTooltips=function(o){const i=o.data("tribeTicketsRsvpTooltipTheme");o.find(e.selectors.tooltipTrigger).each((function(o,s){t(s).tooltipster({animationDuration:0,interactive:!0,delay:[e.config.delayHoverIn,e.config.delayHoverOut],delayTouch:[e.config.delayHoverIn,e.config.delayHoverOut],theme:i,functionInit:e.onFunctionInit,functionReady:e.onFunctionReady})}))},e.initTheme=function(t){t.trigger("beforeTooltipInitTheme.tribeTicketsRsvp",[t]);const o=[e.selectors.tribeTicketsRsvpTooltipThemeClass.className(),e.selectors.tribeCommonClass.className(),e.selectors.tribeTicketsClass.className()];t.data("tribeTicketsRsvpTooltipTheme",o),t.trigger("afterTooltipInitTheme.tribeTicketsRsvp",[t])},e.deinit=function(t,o,i){const s=t.data.container;e.deinitTooltips(s),s.off("beforeAjaxSuccess.tribeTicketsRsvp",e.deinit)},e.init=function(t,o,i){e.initTheme(i),e.initTooltips(i),i.on("beforeAjaxSuccess.tribeTicketsRsvp",{container:i},e.deinit)},e.ready=function(){o.on("afterSetup.tribeTicketsRsvp",tribe.tickets.rsvp.manager.selectors.container,e.init)},t(e.ready)}(jQuery,tribe.tickets.rsvp.tooltip),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.v2=window.tec.tickets.v2||{},window.tec.tickets.v2.rsvpTooltip={};