File Editor
Directories:
.. (Back)
__tests__
Files:
rsvp-ari.js
rsvp-ari.min.js
rsvp-block.js
rsvp-block.min.js
rsvp-manager.js
rsvp-manager.min.js
rsvp-tooltip.js
rsvp-tooltip.min.js
tickets-block.js
tickets-block.min.js
tickets-commerce.js
tickets-commerce.min.js
tickets-loader.js
tickets-loader.min.js
tickets-page.js
tickets-page.min.js
tickets-utils.js
tickets-utils.min.js
Create New File
Create
Edit File: rsvp-tooltip.min.js
/** * This JS file was auto-generated via Terser. * * Contributors should avoid editing this file, but instead edit the associated * non minified file file. For more information, check out our engineering docs * on how we handle JS minification in our engineering docs. * * @see: https://evnt.is/dev-docs-minification */ tribe.tickets=tribe.tickets||{},tribe.tickets.rsvp=tribe.tickets.rsvp||{},tribe.tickets.rsvp.tooltip={},function($,obj){const $document=$(document);obj.config={delayHoverIn:300,delayHoverOut:300},obj.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"},obj.handleOriginFocus=function(event){setTimeout((function(){(event.data.target.is(":focus")||event.data.target.hasClass(obj.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className()))&&event.data.target.tooltipster("open")}),obj.config.delayHoverIn)},obj.handleOriginBlur=function(event){event.data.target.tooltipster("close")},obj.handleOriginHoverIn=function(event){event.data.target.addClass(obj.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className())},obj.handleOriginHoverOut=function(event){event.data.target.removeClass(obj.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className())},obj.handleTooltipHoverIn=function(event){event.data.target.addClass(obj.selectors.tribeTicketsRsvpTooltipThemeHoverClass.className())},obj.handleTooltipHoverOut=function(event){event.data.target.removeClass(obj.selectors.tribeTicketsRsvpTooltipThemeHoverClass.className())},obj.handleInstanceClose=function(event){const $origin=event.data.origin,$tooltip=$(event.tooltip);($origin.is(":focus")||$origin.hasClass(obj.selectors.tribeTicketsRsvpTooltipTriggerHoverClass.className())||$tooltip.hasClass(obj.selectors.tribeTicketsRsvpTooltipThemeHoverClass.className()))&&event.stop()},obj.handleInstanceClosing=function(event){$(event.tooltip).off("mouseenter touchstart",obj.handleTooltipHoverIn).off("mouseleave touchleave",obj.handleTooltipHoverOut)},obj.onFunctionInit=function(instance,helper){const $origin=$(helper.origin);$origin.on("focus",{target:$origin},obj.handleOriginFocus).on("blur",{target:$origin},obj.handleOriginBlur).on("mouseenter touchstart",{target:$origin},obj.handleOriginHoverIn).on("mouseleave touchleave",{target:$origin},obj.handleOriginHoverOut),instance.on("close",{origin:$origin},obj.handleInstanceClose).on("closing",{origin:$origin},obj.handleInstanceClosing)},obj.onFunctionReady=function(instance,helper){const $tooltip=$(helper.tooltip);$tooltip.on("mouseenter touchstart",{target:$tooltip},obj.handleTooltipHoverIn).on("mouseleave touchleave",{target:$tooltip},obj.handleTooltipHoverOut)},obj.deinitTooltips=function($container){$container.find(obj.selectors.tooltipTrigger).each((function(index,trigger){$(trigger).off().tooltipster("instance").off()}))},obj.initTooltips=function($container){const theme=$container.data("tribeTicketsRsvpTooltipTheme");$container.find(obj.selectors.tooltipTrigger).each((function(index,trigger){$(trigger).tooltipster({animationDuration:0,interactive:!0,delay:[obj.config.delayHoverIn,obj.config.delayHoverOut],delayTouch:[obj.config.delayHoverIn,obj.config.delayHoverOut],theme:theme,functionInit:obj.onFunctionInit,functionReady:obj.onFunctionReady})}))},obj.initTheme=function($container){$container.trigger("beforeTooltipInitTheme.tribeTicketsRsvp",[$container]);const theme=[obj.selectors.tribeTicketsRsvpTooltipThemeClass.className(),obj.selectors.tribeCommonClass.className(),obj.selectors.tribeTicketsClass.className()];$container.data("tribeTicketsRsvpTooltipTheme",theme),$container.trigger("afterTooltipInitTheme.tribeTicketsRsvp",[$container])},obj.deinit=function(event,jqXHR,settings){const $container=event.data.container;obj.deinitTooltips($container),$container.off("beforeAjaxSuccess.tribeTicketsRsvp",obj.deinit)},obj.init=function(event,index,$container){obj.initTheme($container),obj.initTooltips($container),$container.on("beforeAjaxSuccess.tribeTicketsRsvp",{container:$container},obj.deinit)},obj.ready=function(){$document.on("afterSetup.tribeTicketsRsvp",tribe.tickets.rsvp.manager.selectors.container,obj.init)},$(obj.ready)}(jQuery,tribe.tickets.rsvp.tooltip);
Save Changes
Rename File
Rename