1var module_195428444961=function(){function initPlanHeader(){const header=document.getElementById("compare-plans-header");if(!header)return;const mdQuery=window.matchMedia("(min-width: 768px)"),applyStickyTop=()=>{const offset=(()=>{const attr=mdQuery.matches?"data-sticky-offset-md":"data-sticky-offset-sm",raw=header.getAttribute(attr)||header.getAttribute("data-sticky-offset")||"70",n=parseInt(raw,10);return Number.isFinite(n)?n:70})();header.style.position="sticky",header.style.top=`${offset}px`,header.classList.add("z-20")};applyStickyTop();const onChange=()=>applyStickyTop();"function"==typeof mdQuery.addEventListener?mdQuery.addEventListener("change",onChange):mdQuery.addListener(onChange),window.addEventListener("resize",onChange,{passive:!0}),window.addEventListener("orientationchange",onChange),header.querySelectorAll("[data-plan]").forEach(btn=>{btn.addEventListener("click",e=>{e.preventDefault();!function(planKey){const pricingRoot=document.querySelector(".pricing-plans[id]");if(!pricingRoot)return;const planBtn=pricingRoot.querySelector(`.pricing-tier[data-tier="${planKey}"] .button-pricing`);if(!planBtn)return;planBtn.click();const desiredPlanLabel=planKey.charAt(0).toUpperCase()+planKey.slice(1);let attempts=16;const tick=()=>{const openModal=document.querySelector('.pricing-modal[aria-hidden="false"]'),panel=openModal&&openModal.querySelector('[data-role="modal-panel"]'),form=panel&&(panel.querySelector("form.hs-form")||panel.querySelector("form.hs-form-private"));if(!form)return--attempts>0?setTimeout(tick,125):void 0;const setSelectByName=(root,name,value,{allowEmpty:allowEmpty=!1}={})=>{const sel=root.querySelector(`select[name="${name}"]`);if(sel){if(""===value&&allowEmpty){const empty=Array.from(sel.options).find(o=>""===(o.value||""));empty?(sel.value=empty.value,sel.classList.add("is-placeholder")):(sel.selectedIndex=-1,sel.classList.add("is-placeholder"))}else{const want=String(value).trim().toLowerCase(),opt=Array.from(sel.options).find(o=>{const val=(o.value||"").trim().toLowerCase(),txt=(o.textContent||"").trim().toLowerCase();return val===want||txt===want});opt&&(sel.value=opt.value,sel.classList.remove("is-placeholder"))}sel.dispatchEvent(new Event("input",{bubbles:!0})),sel.dispatchEvent(new Event("change",{bubbles:!0}))}};setSelectByName(form,"what_plan_are_you_interested_in_",desiredPlanLabel),setSelectByName(form,"what_s_your_industry_","",{allowEmpty:!0}),((root,name,value)=>{const inp=root.querySelector(`[name="${name}"]`);inp&&(inp.value=null!=value?String(value):"",inp.dispatchEvent(new Event("input",{bubbles:!0})),inp.dispatchEvent(new Event("change",{bubbles:!0})))})(form,"how_many_display_licenses_do_you_need_","")};setTimeout(tick,0)}(btn.getAttribute("data-plan"))})})}document.addEventListener("DOMContentLoaded",()=>{initPlanHeader(),function(){const acc=document.getElementById("plan-features-acc");if(!acc)return;const buttons=acc.querySelectorAll("button[data-accordion-target]"),getPanel=btn=>{const sel=btn.getAttribute("data-accordion-target");try{return sel?document.querySelector(sel):null}catch{return null}},updateButtonState=btn=>{const panel=getPanel(btn),expanded=panel?!panel.classList.contains("hidden"):"true"===btn.getAttribute("aria-expanded");btn.setAttribute("aria-expanded",expanded?"true":"false"),((btn,expanded)=>{btn.classList.toggle("bg-[#F5F5F5]",expanded),btn.classList.toggle("bg-white",!expanded)})(btn,expanded),((btn,expanded)=>{const icon=btn.querySelector(".accordion-icon")||btn.querySelector("svg");icon&&icon.classList.toggle("rotate-180",expanded)})(btn,expanded)},updateAll=()=>buttons.forEach(updateButtonState);updateAll(),buttons.forEach(btn=>{btn.addEventListener("click",()=>{setTimeout(updateAll,0)})});const observer=new MutationObserver(()=>updateAll());buttons.forEach(btn=>{const panel=getPanel(btn);panel&&observer.observe(panel,{attributes:!0,attributeFilter:["class"]})})}()})}(); 2//# sourceURL=https://2700250.fs1.hubspotusercontent-na1.net/hubfs/2700250/hub_generated/module_assets/1/195428444961/1769025894527/module_Compare_Plans.js
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.