1import{R as p,i as L}from"./script-BnOLjb1B.js";import{H as T}from"./types-CpsC5way.js";import{S as C}from"./section-C-09JSt9.js";import{l as x}from"./logger-B9jaiaFg.js";import"./appBreakpoints-CfEogP7P.js";import"./component-BDoicB2Z.js";import"./scrollTrigger-DFXXuwcd.js";import"./index-CH_iu5NA.js";class _ extends C{industryAnimationTimer=null;industryAnimationInterval=null;handleSlideChange=e=>{const n=e.detail?.customerLogoId;this.element.querySelectorAll(".reviews-marquee [data-id]").forEach(o=>{o.classList.toggle("is-active",!!n&&o.dataset.id===n)})};async setupSection(){this.element.addEventListener(p,this.handleSlideChange),L(this.element),this._initDynamicIndustry()}unmount(){this.element.removeEventListener(p,this.handleSlideChange),this.industryAnimationTimer!==null&&(window.clearTimeout(this.industryAnimationTimer),this.industryAnimationTimer=null),this.industryAnimationInterval!==null&&(window.clearInterval(this.industryAnimationInterval),this.industryAnimationInterval=null)}_initDynamicIndustry(){const e=this.element.querySelector(".dynamic-industry");if(!e)return;const n=e.querySelector(".dynamic-industry__word");if(!n)return;const o=e.getAttribute("data-industries");if(o)try{const r=JSON.parse(o);if(r.length===0)return;let l=0;const m=t=>t.toLowerCase().trim().replace(/&/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(n.dataset.industry=m(r[l]),window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const f=3,v=1e3,I=750,A=(t,s)=>new Promise(a=>{s.textContent="",e.classList.add("typing");let i=0;this.industryAnimationInterval=window.setInterval(()=>{i<t.length?(s.textContent+=t.charAt(i),i++):(window.clearInterval(this.industryAnimationInterval),this.industryAnimationInterval=null,e.classList.remove("typing"),a())},80)}),c=t=>new Promise(s=>{e.style.setProperty("--industry-cursor-flash-duration",`${t}ms`),e.classList.add("cursor-flashing"),this.industryAnimationTimer=window.setTimeout(()=>{this.industryAnimationTimer=null,e.classList.remove("cursor-flashing"),s()},t*f)}),E=t=>new Promise(s=>{const a=t.textContent||"";let i=a.length;const y=Array.from({length:a.length},(g,S)=>Math.max(10,Math.round(46*Math.pow(.78,S))));e.classList.add("erasing");const w=()=>{if(i>0){t.textContent=a.substring(0,i-1),i--;const g=a.length-i;this.industryAnimationTimer=window.setTimeout(w,y[g]??10)}else this.industryAnimationTimer=null,e.classList.remove("erasing"),s()};this.industryAnimationTimer=window.setTimeout(w,y[0]??0)}),h=async()=>{await c(v),await E(n),await c(I),l=(l+1)%r.length;const t=r[l];n.dataset.industry=m(t),await A(t,n),h()};h()}catch(r){x.error("Error parsing industries data:",r)}}}let d;document.addEventListener("astro:page-load",()=>{const u=document.getElementById(T.Reviews);u&&(d?.unmount(),d=new _({el:u}),d.setup())});document.addEventListener("astro:before-preparation",()=>{d&&d.unmount()});
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.