1var p=Object.defineProperty;var r=e=>{throw TypeError(e)};var d=(e,t,i)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var a=(e,t,i)=>d(e,typeof t!="symbol"?t+"":t,i),u=(e,t,i)=>t.has(e)||r("Cannot "+i);var h=(e,t,i)=>(u(e,t,"read from private field"),i?i.call(e):t.get(e)),c=(e,t,i)=>t.has(e)?r("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i);import{T}from"./toggler-handler-DP_tI7H1.js";import{T as g}from"./tooltip-CQjTMFOS.js";import{H as b}from"./height-handler-JxFo2d0O.js";import"./app.js-xpBU1E_n.js";import"./selector-engine-DYNWaHsl.js";import"./throttle-Bi6yfY55.js";import"./debounce-DScqd8vp.js";var s;class C{constructor(t){c(this,s,'[data-bs-action="tooltip"]');this.currentTooltip=null,this.tooltipButtons=t.querySelectorAll(h(this,s)),this.initShowOnButtonClick(),this.initClickOutsideTooltip()}initShowOnButtonClick(){this.tooltipButtons.forEach(t=>t.addEventListener("click",this.handleButtonClick.bind(this)))}initClickOutsideTooltip(){document.addEventListener("click",this.handleClickOutsideTooltip.bind(this))}handleButtonClick(t){const i=t.currentTarget,l=i.previousElementSibling;i===this.currentTooltip?this.hideTooltip(l):this.showTooltip(l,i)}handleClickOutsideTooltip(t){var n;const i=t.target,l=i===this.currentTooltip,o=(n=this.currentTooltip)==null?void 0:n.contains(i);!l&&!o&&this.currentTooltip&&this.hideTooltip(this.currentTooltip.previousElementSibling)}showTooltip(t,i){g.getOrCreateInstance(t).show({}),this.currentTooltip&&this.hideTooltip(this.currentTooltip.previousElementSibling),this.currentTooltip=i}hideTooltip(t){g.getOrCreateInstance(t).hide(),this.currentTooltip=null}}s=new WeakMap;class H{constructor(t){a(this,"planBlocks");this.planBlocks=t}init(){if(!this.planBlocks||this.planBlocks.length===0){console.warn("Plans component requires elements with [data-pricing-plans] attribute.");return}this.initHandlers()}initHandlers(){this.planBlocks.forEach(t=>{new T(t,this.itemToggleCallback.bind(this),this.afterToggleCallback.bind(this)),new C(t),new b(t,this.heightHandlerElementsCallback.bind(this))})}toggleVisibility(t,i){const l=i.dataset.itemVisibility;l==="alternative"&&t||l==="original"&&!t?i.setAttribute("hidden",!0):i.removeAttribute("hidden")}heightHandlerElementsCallback(t){return!t.parentElement.hidden}itemToggleCallback(t,i){i.dataset.toggleableItem==="price"?this.togglePlan(t,i):i.dataset.toggleableItem==="url"?this.toggleUrl(t,i):i.dataset.toggleableItem==="visibility"&&this.toggleVisibility(t,i)}togglePlan(t,i){i.dataset.toggleableAlternative&&(i.innerHTML=t?i.dataset.toggleableOriginal:i.dataset.toggleableAlternative)}toggleUrl(t,i){const{toggleableOriginal:l,toggleableAlternative:o,personalizationUrlChanged:n}=i.dataset;l&&o&&!n&&i.setAttribute("href",t?l:o)}afterToggleCallback(t,i){window==null||window.Links.processLinks(i)}}export{H as Plans};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.