anegis-webflow-new 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var qe=Object.defineProperty;var Pe=(o,e,t)=>e in o?qe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var h=(o,e,t)=>Pe(o,typeof e!="symbol"?e+"":e,t);var ae=()=>{};function Y(o){let e=o.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);return e?[parseInt(e[1],16)/255,parseInt(e[2],16)/255,parseInt(e[3],16)/255]:null}var _e=[.224,.478,.463],Re=[.106,.275,.435],Ne=[.047,.047,.047],le=()=>{let o=document.querySelectorAll("[data-blob-main]");o.length!==0&&o.forEach(e=>{let t=e;t.innerHTML="";let n=t.getAttribute("data-color-1"),i=t.getAttribute("data-color-2"),r=t.getAttribute("data-color-3"),s=t.getAttribute("data-blur")||"1.2rem",c=n&&Y(n)||_e,u=i&&Y(i)||Re,d=r&&Y(r)||Ne,a=document.createElement("canvas");a.style.cssText=`position:absolute;inset:0;width:100%;height:100%;filter:blur(${s});`,t.appendChild(a);let m=document.createElement("canvas");m.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:overlay;",t.appendChild(m);let p=m.getContext("2d"),l=a.getContext("webgl");if(!l){console.error("WebGL not supported");return}let S=`
1
+ "use strict";(()=>{var Pe=Object.defineProperty;var _e=(o,e,t)=>e in o?Pe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var f=(o,e,t)=>_e(o,typeof e!="symbol"?e+"":e,t);var ae=()=>{};function Y(o){let e=o.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);return e?[parseInt(e[1],16)/255,parseInt(e[2],16)/255,parseInt(e[3],16)/255]:null}var Re=[.224,.478,.463],Ne=[.106,.275,.435],Be=[.047,.047,.047],le=()=>{let o=document.querySelectorAll("[data-blob-main]");o.length!==0&&o.forEach(e=>{let t=e;t.innerHTML="";let n=t.getAttribute("data-color-1"),i=t.getAttribute("data-color-2"),r=t.getAttribute("data-color-3"),s=t.getAttribute("data-blur")||"1.2rem",c=n&&Y(n)||Re,u=i&&Y(i)||Ne,d=r&&Y(r)||Be,a=document.createElement("canvas");a.style.cssText=`position:absolute;inset:0;width:100%;height:100%;filter:blur(${s});`,t.appendChild(a);let m=document.createElement("canvas");m.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:overlay;",t.appendChild(m);let p=m.getContext("2d"),l=a.getContext("webgl");if(!l){console.error("WebGL not supported");return}let S=`
2
2
  attribute vec2 a_position;
3
3
  varying vec2 v_uv;
4
4
  void main() {
@@ -100,7 +100,7 @@
100
100
 
101
101
  gl_FragColor = vec4(finalColor, 1.0);
102
102
  }
103
- `;function I(y,E,g){let L=y.createShader(E);return L?(y.shaderSource(L,g),y.compileShader(L),y.getShaderParameter(L,y.COMPILE_STATUS)?L:(console.error("Shader compile error:",y.getShaderInfoLog(L)),y.deleteShader(L),null)):null}let C=I(l,l.VERTEX_SHADER,S),f=I(l,l.FRAGMENT_SHADER,R);if(!C||!f)return;let b=l.createProgram();if(!b)return;if(l.attachShader(b,C),l.attachShader(b,f),l.linkProgram(b),!l.getProgramParameter(b,l.LINK_STATUS)){console.error("Program link error:",l.getProgramInfoLog(b));return}let O=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,O),l.bufferData(l.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),l.STATIC_DRAW);let v=l.getAttribLocation(b,"a_position"),A=l.getUniformLocation(b,"u_time"),M=l.getUniformLocation(b,"u_resolution"),T=l.getUniformLocation(b,"u_color1"),k=l.getUniformLocation(b,"u_color2"),w=l.getUniformLocation(b,"u_colorBg");function $(){let y=window.devicePixelRatio||1,E=Math.floor(a.clientWidth*y),g=Math.floor(a.clientHeight*y);(a.width!==E||a.height!==g)&&(a.width=E,a.height=g),(m.width!==E||m.height!==g)&&(m.width=E,m.height=g)}let W,V=performance.now(),oe=0,Oe=12,ke=.08,ie=4,q=null;function re(){$(),l.viewport(0,0,a.width,a.height),l.useProgram(b);let y=(performance.now()-V)/1e3;l.uniform1f(A,y),l.uniform2f(M,a.width,a.height),l.uniform3f(T,c[0],c[1],c[2]),l.uniform3f(k,u[0],u[1],u[2]),l.uniform3f(w,d[0],d[1],d[2]),l.enableVertexAttribArray(v),l.bindBuffer(l.ARRAY_BUFFER,O),l.vertexAttribPointer(v,2,l.FLOAT,!1,0,0),l.drawArrays(l.TRIANGLES,0,6);let E=performance.now();if(p&&E-oe>1e3/Oe){oe=E;let g=Math.ceil(m.width/ie),L=Math.ceil(m.height/ie);(!q||q.width!==g||q.height!==L)&&(q=p.createImageData(g,L));let{data:N}=q;for(let P=0;P<N.length;P+=4){let U=(Math.random()-.5)*255*ke;N[P]=128+U,N[P+1]=128+U,N[P+2]=128+U,N[P+3]=255}p.clearRect(0,0,m.width,m.height),p.imageSmoothingEnabled=!1,p.putImageData(q,0,0),p.drawImage(m,0,0,g,L,0,0,m.width,m.height)}W=requestAnimationFrame(re)}re();let se=new MutationObserver(y=>{for(let E of y)for(let g of E.removedNodes)(g===a||g instanceof Element&&g.contains(a))&&(cancelAnimationFrame(W),se.disconnect())});se.observe(t.parentElement||document.body,{childList:!0,subtree:!0}),requestAnimationFrame(()=>{t.style.opacity="1"})})};var ce=(o={pauseOnHover:!1})=>{let e=document.querySelector(".banner_component"),t=document.querySelector(".banner_inner-wrapper"),n=document.querySelector(".banner_marquee");if(!e||!t||!n)return;t.querySelectorAll(".banner_marquee.is-clone").forEach(m=>m.remove());let r=n.offsetWidth,s=48,c="perfect-marquee-styles";if(!document.getElementById(c)){let m=document.createElement("style");m.id=c;let p=o.pauseOnHover?`
103
+ `;function I(y,E,g){let L=y.createShader(E);return L?(y.shaderSource(L,g),y.compileShader(L),y.getShaderParameter(L,y.COMPILE_STATUS)?L:(console.error("Shader compile error:",y.getShaderInfoLog(L)),y.deleteShader(L),null)):null}let C=I(l,l.VERTEX_SHADER,S),h=I(l,l.FRAGMENT_SHADER,R);if(!C||!h)return;let b=l.createProgram();if(!b)return;if(l.attachShader(b,C),l.attachShader(b,h),l.linkProgram(b),!l.getProgramParameter(b,l.LINK_STATUS)){console.error("Program link error:",l.getProgramInfoLog(b));return}let O=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,O),l.bufferData(l.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),l.STATIC_DRAW);let v=l.getAttribLocation(b,"a_position"),A=l.getUniformLocation(b,"u_time"),M=l.getUniformLocation(b,"u_resolution"),T=l.getUniformLocation(b,"u_color1"),k=l.getUniformLocation(b,"u_color2"),w=l.getUniformLocation(b,"u_colorBg");function $(){let y=window.devicePixelRatio||1,E=Math.floor(a.clientWidth*y),g=Math.floor(a.clientHeight*y);(a.width!==E||a.height!==g)&&(a.width=E,a.height=g),(m.width!==E||m.height!==g)&&(m.width=E,m.height=g)}let W,V=performance.now(),oe=0,ke=12,qe=.08,ie=4,q=null;function re(){$(),l.viewport(0,0,a.width,a.height),l.useProgram(b);let y=(performance.now()-V)/1e3;l.uniform1f(A,y),l.uniform2f(M,a.width,a.height),l.uniform3f(T,c[0],c[1],c[2]),l.uniform3f(k,u[0],u[1],u[2]),l.uniform3f(w,d[0],d[1],d[2]),l.enableVertexAttribArray(v),l.bindBuffer(l.ARRAY_BUFFER,O),l.vertexAttribPointer(v,2,l.FLOAT,!1,0,0),l.drawArrays(l.TRIANGLES,0,6);let E=performance.now();if(p&&E-oe>1e3/ke){oe=E;let g=Math.ceil(m.width/ie),L=Math.ceil(m.height/ie);(!q||q.width!==g||q.height!==L)&&(q=p.createImageData(g,L));let{data:N}=q;for(let P=0;P<N.length;P+=4){let U=(Math.random()-.5)*255*qe;N[P]=128+U,N[P+1]=128+U,N[P+2]=128+U,N[P+3]=255}p.clearRect(0,0,m.width,m.height),p.imageSmoothingEnabled=!1,p.putImageData(q,0,0),p.drawImage(m,0,0,g,L,0,0,m.width,m.height)}W=requestAnimationFrame(re)}re();let se=new MutationObserver(y=>{for(let E of y)for(let g of E.removedNodes)(g===a||g instanceof Element&&g.contains(a))&&(cancelAnimationFrame(W),se.disconnect())});se.observe(t.parentElement||document.body,{childList:!0,subtree:!0}),requestAnimationFrame(()=>{t.style.opacity="1"})})};var ce=(o={pauseOnHover:!1})=>{let e=document.querySelector(".banner_component"),t=document.querySelector(".banner_inner-wrapper"),n=document.querySelector(".banner_marquee");if(!e||!t||!n)return;t.querySelectorAll(".banner_marquee.is-clone").forEach(m=>m.remove());let r=n.offsetWidth,s=48,c="perfect-marquee-styles";if(!document.getElementById(c)){let m=document.createElement("style");m.id=c;let p=o.pauseOnHover?`
104
104
  .banner_component:hover .banner_marquee {
105
105
  animation-play-state: paused !important;
106
106
  }
@@ -128,4 +128,4 @@
128
128
  }
129
129
  }
130
130
  ${p}
131
- `,document.head.appendChild(m)}let u=window.innerWidth,d=r+s,a=Math.max(3,Math.ceil(u*2/d));for(let m=0;m<a;m++){let p=n.cloneNode(!0);p.setAttribute("aria-hidden","true"),p.classList.add("is-clone"),t.appendChild(p)}if(typeof gsap<"u"){let m=t.querySelectorAll(".banner_marquee");m.forEach(p=>{let l=p;l.style.animation="none"}),requestAnimationFrame(()=>{let p=r+s,l=gsap.to(m,{x:-p,duration:30,ease:"none",repeat:-1});o.pauseOnHover&&e&&(e.addEventListener("mouseenter",()=>l.pause()),e.addEventListener("mouseleave",()=>l.resume()))})}};function de(){let o=document.querySelectorAll("[data-line-scroll]");o.length!==0&&o.forEach(e=>{let t=e.querySelector("line");if(!t)return;let n=t.closest("svg");n&&gsap.set(n,{attr:{preserveAspectRatio:"none"}}),gsap.to(t,{strokeDashoffset:-16,duration:1,ease:"none",repeat:-1})})}function ue(){if(typeof Lenis>"u"){console.error("[SmoothScroll] Lenis is not loaded");return}if(!(window.innerWidth>991))return;let e=new Lenis({duration:1.05,easing:n=>Math.min(1,1.001-Math.pow(2,-10*n)),orientation:"vertical",gestureOrientation:"vertical",smoothWheel:!0,wheelMultiplier:1,smoothTouch:!1,touchMultiplier:2,infinite:!1,autoRaf:!1});function t(n){e.raf(n),requestAnimationFrame(t)}requestAnimationFrame(t)}function me(){let o=document.querySelectorAll(".layout_card.is-faq"),e=document.querySelectorAll(".about_component-image-outer");gsap.set(".layout-card-bottom",{height:0,overflow:"hidden",display:"block"}),gsap.set(e,{autoAlpha:0,display:"none",width:"100%",height:"100%",objectFit:"cover",position:"absolute",top:0,left:0});let t=document.querySelectorAll(".about_component-image-outer img");gsap.set(t,{width:"100%",height:"100%",objectFit:"cover"});function n(r,s){let c=r.querySelector(".layout-card-bottom"),u=r.querySelector(".layout_action-icon"),d=r.getAttribute("data-card"),a=document.querySelector(`.about_component-image-outer[data-image="${d}"]`);s?(c&&gsap.to(c,{height:"auto",duration:.6,ease:"power3.inOut"}),u&&u.classList.add("is-active"),a?(gsap.set(a,{display:"block",zIndex:2}),gsap.to(a,{autoAlpha:1,duration:.6,ease:"power3.inOut",overwrite:!0})):console.warn(`No image found for Card ID: ${d}`)):(gsap.to(c,{height:0,duration:.6,ease:"power3.inOut"}),u&&u.classList.remove("is-active"),a&&(gsap.set(a,{zIndex:1}),gsap.to(a,{autoAlpha:0,duration:.6,ease:"power3.inOut",onComplete:()=>gsap.set(a,{display:"none"})})))}let i=Array.from(o).find(r=>{let s=r.getAttribute("data-card");return document.querySelector(`.about_component-image-outer[data-image="${s}"]`)});i&&n(i,!0),o.forEach(r=>{let s=r.querySelector(".layout_card-top");s&&s.addEventListener("click",()=>{let c=r.querySelector(".layout-card-bottom"),u=c?gsap.getProperty(c,"height"):0,d=parseFloat(String(u))>0;o.forEach(a=>{a!==r&&n(a,!1)}),d||n(r,!0)})})}function pe(){if(!window.matchMedia("(hover: hover) and (pointer: fine)").matches)return;let e=document.querySelectorAll("[data-cursor]"),t=document.getElementById("cursor-hijack"),n=document.getElementById("cursor-trail-canvas"),i=document.getElementById("cursor-trail-path"),r=document.getElementById("trailGradient");if(!t||!n||!i||!e.length)return;if(typeof gsap>"u"){console.warn("GSAP not found");return}gsap.set(i,{opacity:.08});let s={tipOffset:{x:0,y:14},trailOffset:32,positionLerp:.25,maxPoints:50,minDistance:4,trailDecay:.92,rotationLerp:.15,idleSpeedThreshold:.5},c=!1,u={x:0,y:0},d={x:0,y:0},a=[],m=0,p=0;function l(){n&&n.setAttribute("viewBox",`0 0 ${window.innerWidth} ${window.innerHeight}`)}l(),window.addEventListener("resize",l),window.addEventListener("mousemove",f=>{u.x=f.clientX,u.y=f.clientY},{passive:!0});function S(){c=!0,document.body.classList.add("cursor-active"),d.x=u.x,d.y=u.y,a=[];for(let f=0;f<s.maxPoints;f++)a.push({x:u.x,y:u.y});p=0,m=0}function R(){c=!1,document.body.classList.remove("cursor-active")}e.forEach(f=>{f.addEventListener("mouseenter",S),f.addEventListener("mouseleave",R)}),document.querySelectorAll(".button-wrapper").forEach(f=>{f.addEventListener("mouseenter",()=>{document.body.classList.add("cursor-hidden")}),f.addEventListener("mouseleave",()=>{document.body.classList.remove("cursor-hidden")})}),gsap.ticker.add(()=>{if(!c)return;d.x+=(u.x-d.x)*s.positionLerp,d.y+=(u.y-d.y)*s.positionLerp;let f=d.x-a[1].x,b=d.y-a[1].y;Math.hypot(f,b)>s.idleSpeedThreshold&&(m=Math.atan2(b,f)*(180/Math.PI));let v=m-p;v>180&&(v-=360),v<-180&&(v+=360),p+=v*s.rotationLerp;let A=p*Math.PI/180,M=d.x-Math.cos(A)*s.trailOffset,T=d.y-Math.sin(A)*s.trailOffset;a[0].x=M,a[0].y=T;for(let w=1;w<a.length;w++)a[w].x+=(a[w-1].x-a[w].x)*(1-s.trailDecay),a[w].y+=(a[w-1].y-a[w].y)*(1-s.trailDecay);let k=C(a);i&&i.setAttribute("d",k),I(),gsap.set(t,{x:d.x-s.tipOffset.x,y:d.y-s.tipOffset.y,rotation:p+180,transformOrigin:`${s.tipOffset.x}px ${s.tipOffset.y}px`})});function I(){if(!r||a.length<2)return;let f=a[a.length-1],b=a[0];r.setAttribute("x1",String(f.x)),r.setAttribute("y1",String(f.y)),r.setAttribute("x2",String(b.x)),r.setAttribute("y2",String(b.y))}function C(f,b=.5){if(f.length<2)return"";let O=`M ${f[0].x.toFixed(2)} ${f[0].y.toFixed(2)}`;for(let v=0;v<f.length-1;v++){let A=f[Math.max(v-1,0)],M=f[v],T=f[v+1],k=f[Math.min(v+2,f.length-1)],w=M.x+(T.x-A.x)/6*b,$=M.y+(T.y-A.y)/6*b,W=T.x-(k.x-M.x)/6*b,V=T.y-(k.y-M.y)/6*b;O+=` C ${w.toFixed(2)} ${$.toFixed(2)}, ${W.toFixed(2)} ${V.toFixed(2)}, ${T.x.toFixed(2)} ${T.y.toFixed(2)}`}return O}}function he(){let o=document.querySelectorAll(".w-dropdown");function e(t){let n=t.querySelector(".w-dropdown-toggle"),i=t.querySelector(".w-dropdown-list"),r=t.querySelector(".dropdown_icon");n&&(n.classList.remove("w--open"),n.setAttribute("aria-expanded","false")),i&&i.classList.remove("w--open"),r&&r.classList.remove("is-open"),window.jQuery&&window.jQuery(t).trigger("w-close.w-dropdown")}o.forEach(t=>{let n=t.querySelector(".w-dropdown-toggle"),i=t.querySelector(".w-dropdown-list"),r=t.querySelector(".dropdown_icon");if(!n||!i)return;i.querySelectorAll("a").forEach(u=>{u.addEventListener("keydown",d=>{d.key==="Tab"&&setTimeout(()=>{t.contains(document.activeElement)||e(t)},0)})}),t.addEventListener("keydown",u=>{let d=u;d.key==="Escape"&&i.classList.contains("w--open")&&(e(t),n.focus(),d.preventDefault())}),new MutationObserver(u=>{u.forEach(d=>{if(d.attributeName==="class"){let a=n.classList.contains("w--open");r&&(a?r.classList.add("is-open"):r.classList.remove("is-open"))}})}).observe(n,{attributes:!0})}),document.addEventListener("focusin",t=>{o.forEach(n=>{let i=n.querySelector(".w-dropdown-list");if(i&&i.classList.contains("w--open")){let r=n.closest(".w-nav-overlay");if(r&&r.classList.contains("w--open"))return;n.contains(t.target)||e(n)}})})}var Be=".w-nav",De=".button-wrapper",X="is-pinned",j="w-variant-a4b72284-6321-8341-edca-223fdec43abe";var _=!1,B=!1,F=!1,x=null,H=null;function We(){return window.innerWidth>991}function be(){if(!x||!_){F=!1;return}let o=window.scrollY||window.pageYOffset;!B&&o>50?(x.classList.add(X),H&&H.classList.remove(j),B=!0):B&&o<40&&(x.classList.remove(X),H&&H.classList.add(j),B=!1),F=!1}function Fe(){!F&&_&&(window.requestAnimationFrame(be),F=!0)}function ze(){x&&x.classList.remove(X),H&&H.classList.add(j),B=!1}function fe(){let o=We();o&&!_?(_=!0,be()):!o&&_&&(_=!1,ze())}function Ke(o,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>o(...n),e)}}function ve(){if(x=document.querySelector(Be),!x)return;H=x.querySelector(De),window.addEventListener("scroll",Fe,{passive:!0});let o=Ke(fe,150);window.addEventListener("resize",o),fe()}var Q=class{constructor(e){h(this,"bigMenu");h(this,"tabsModule",null);h(this,"tablistContainer",null);h(this,"contentContainer",null);h(this,"tabMappings",[]);h(this,"isMobileLayout",!1);h(this,"originalButtonsWrapper",null);h(this,"accordionContainer",null);h(this,"dropdownToggle",null);h(this,"dropdownList",null);h(this,"navMobileHeader",null);h(this,"originalStructure",{buttonsWrapper:null,contentWrapper:null,buttonsParent:null,contentParent:null,buttonsNextSibling:null,contentNextSibling:null});h(this,"handleResize",()=>{let e=window.innerWidth<=991;e&&!this.isMobileLayout?this.applyMobileLayout():!e&&this.isMobileLayout&&this.restoreDesktopLayout()});if(this.bigMenu=e,this.tabsModule=e.querySelector('[data-module="tabs"]'),!this.tabsModule){console.error('[MegaMenuAccordion] No [data-module="tabs"] found inside [data-big-menu]');return}if(this.tablistContainer=this.tabsModule.querySelector('[role="tablist"]'),this.contentContainer=this.tabsModule.querySelector(".tabs_content-wrapper"),!this.tablistContainer||!this.contentContainer){console.error("[MegaMenuAccordion] Missing tablist or content container");return}this.originalButtonsWrapper=this.tablistContainer.closest(".tabs_buttons-wrapper"),this.originalStructure={buttonsWrapper:this.originalButtonsWrapper,contentWrapper:this.contentContainer,buttonsParent:this.originalButtonsWrapper?.parentElement||null,contentParent:this.contentContainer.parentElement,buttonsNextSibling:this.originalButtonsWrapper?.nextSibling||null,contentNextSibling:this.contentContainer.nextSibling},this.buildTabMappings(),this.dropdownToggle=e.querySelector(".w-dropdown-toggle"),this.dropdownList=e.querySelector(".w-dropdown-list"),this.navMobileHeader=e.querySelector(".nav_mobile-header"),this.init()}buildTabMappings(){if(!this.tablistContainer)return;Array.from(this.tablistContainer.querySelectorAll('[role="tab"]')).forEach(t=>{let n=t.getAttribute("aria-controls");if(!n)return;let i=document.getElementById(n);i&&this.tabMappings.push({button:t,panel:i,controlsId:n})})}init(){this.handleResize(),window.addEventListener("resize",this.handleResize)}applyMobileLayout(){!this.tabsModule||this.tabMappings.length===0||(this.isMobileLayout=!0,this.bigMenu.classList.add("is-mega-menu-accordion"),this.dropdownToggle&&(this.dropdownToggle.style.display="none"),this.navMobileHeader&&(this.navMobileHeader.style.display="none"),this.dropdownList&&(this.dropdownList.classList.add("w--open"),this.dropdownList.style.display="block",this.dropdownList.style.backgroundColor="transparent"),this.accordionContainer=document.createElement("div"),this.accordionContainer.className="mega-menu-accordion",this.accordionContainer.setAttribute("data-mega-accordion",""),this.tabMappings.forEach(({button:e,panel:t})=>{let n=document.createElement("div");n.className="mega-menu-accordion_item",n.setAttribute("data-accordion-item","");let i=document.createElement("div");i.className="mega-menu-accordion_trigger";let r=e.cloneNode(!0);r.classList.add("mega-menu-accordion_button"),r.setAttribute("data-accordion-trigger",""),r.setAttribute("aria-expanded","false");let s=r.querySelector(".icon-embed-xxsmall");s&&(s.style.transition="transform 0.3s ease",s.style.transform="rotate(-90deg)"),i.appendChild(r),n.appendChild(i);let c=document.createElement("div");c.className="mega-menu-accordion_content",c.setAttribute("data-accordion-content",""),c.style.display="none",c.style.overflow="hidden",c.style.maxHeight="0",c.style.transition="max-height 0.3s ease-out";let u=t.cloneNode(!0);u.classList.add("mega-menu-accordion_panel"),u.removeAttribute("hidden"),u.removeAttribute("style"),u.style.backgroundColor="transparent",c.appendChild(u),n.appendChild(c),i.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),this.toggleAccordionItem(n,r,c)}),this.accordionContainer.appendChild(n)}),this.originalStructure.buttonsWrapper&&(this.originalStructure.buttonsWrapper.style.display="none"),this.originalStructure.contentWrapper&&(this.originalStructure.contentWrapper.style.display="none"),this.tabsModule.appendChild(this.accordionContainer))}toggleAccordionItem(e,t,n){e.classList.contains("is-open")?this.closeAccordionItem(e,t,n):(this.closeAllAccordionItems(),this.openAccordionItem(e,t,n))}openAccordionItem(e,t,n){e.classList.add("is-open"),t.setAttribute("aria-expanded","true");let i=t.querySelector(".icon-embed-xxsmall");i&&(i.style.transform="rotate(-270deg)"),n.style.display="block";let{scrollHeight:r}=n;n.style.maxHeight=`${r}px`,setTimeout(()=>{e.classList.contains("is-open")&&(n.style.maxHeight="none")},300)}closeAccordionItem(e,t,n){e.classList.remove("is-open"),t.setAttribute("aria-expanded","false");let i=t.querySelector(".icon-embed-xxsmall");i&&(i.style.transform="rotate(-90deg)"),n.style.maxHeight=`${n.scrollHeight}px`,n.offsetHeight,n.style.maxHeight="0",setTimeout(()=>{e.classList.contains("is-open")||(n.style.display="none")},300)}closeAllAccordionItems(){if(!this.accordionContainer)return;this.accordionContainer.querySelectorAll(".mega-menu-accordion_item.is-open").forEach(t=>{let n=t.querySelector("[data-accordion-trigger]"),i=t.querySelector("[data-accordion-content]");n&&i&&this.closeAccordionItem(t,n,i)})}restoreDesktopLayout(){this.isMobileLayout=!1,this.bigMenu.classList.remove("is-mega-menu-accordion"),this.accordionContainer&&(this.accordionContainer.remove(),this.accordionContainer=null),this.originalStructure.buttonsWrapper&&(this.originalStructure.buttonsWrapper.style.display=""),this.originalStructure.contentWrapper&&(this.originalStructure.contentWrapper.style.display=""),this.dropdownToggle&&(this.dropdownToggle.style.display=""),this.navMobileHeader&&(this.navMobileHeader.style.display=""),this.dropdownList&&(this.dropdownList.classList.remove("w--open"),this.dropdownList.style.display="",this.dropdownList.style.backgroundColor="")}destroy(){this.restoreDesktopLayout(),window.removeEventListener("resize",this.handleResize)}};function ye(){document.querySelectorAll("[data-big-menu]").forEach(e=>{new Q(e)})}var J=class{constructor(e){h(this,"navOverlay");h(this,"navMenu",null);h(this,"isApplied",!1);h(this,"handleResize",()=>{window.innerWidth<=991?this.applyMobileScrollStyles():this.removeMobileScrollStyles()});this.navOverlay=e,this.navMenu=e.querySelector(".w-nav-menu"),this.init()}init(){this.observeMenuState(),this.handleResize(),window.addEventListener("resize",this.handleResize)}applyMobileScrollStyles(){this.isApplied||(this.isApplied=!0,this.navOverlay.style.overflowY="auto",this.navOverlay.style.overflowX="hidden",this.navOverlay.style["-webkit-overflow-scrolling"]="touch",this.navOverlay.style.maxHeight="100dvh",this.navMenu&&(this.navMenu.style.overflowY="auto",this.navMenu.style.overflowX="hidden",this.navMenu.style["-webkit-overflow-scrolling"]="touch",this.navMenu.style.maxHeight="100dvh",this.navMenu.style.paddingBottom="100px"),this.setupScrollLocking())}removeMobileScrollStyles(){this.isApplied&&(this.isApplied=!1,this.navOverlay.style.overflowY="",this.navOverlay.style.overflowX="",this.navOverlay.style["-webkit-overflow-scrolling"]="",this.navOverlay.style.maxHeight="",this.navMenu&&(this.navMenu.style.overflowY="",this.navMenu.style.overflowX="",this.navMenu.style["-webkit-overflow-scrolling"]="",this.navMenu.style.maxHeight="",this.navMenu.style.paddingBottom=""))}setupScrollLocking(){let e=document.querySelector(".w-nav-button");e&&new MutationObserver(n=>{n.forEach(i=>{if(i.type==="attributes"&&i.attributeName==="class"){let r=e.classList.contains("w--open");this.handleMenuToggle(r)}})}).observe(e,{attributes:!0})}handleMenuToggle(e){if(e&&window.innerWidth<=991)document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top=`-${window.scrollY}px`,this.updateOverlayHeight();else{let t=document.body.style.top;document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.top="",t&&window.scrollTo(0,parseInt(t||"0",10)*-1)}}updateOverlayHeight(){let e=window.visualViewport?.height||window.innerHeight;this.navOverlay.style.maxHeight=`${e}px`,this.navMenu&&(this.navMenu.style.maxHeight=`${e}px`)}observeMenuState(){new MutationObserver(()=>{this.navOverlay.style.display==="block"&&window.innerWidth<=991&&(this.applyMobileScrollStyles(),this.updateOverlayHeight())}).observe(this.navOverlay,{attributes:!0,attributeFilter:["style"]}),window.visualViewport&&window.visualViewport.addEventListener("resize",()=>{window.innerWidth<=991&&this.updateOverlayHeight()})}destroy(){window.removeEventListener("resize",this.handleResize),this.removeMobileScrollStyles()}};function ge(){let o=()=>{document.querySelectorAll(".w-nav-overlay").forEach(t=>{t.dataset.mobileScrollInit||(t.dataset.mobileScrollInit="true",new J(t))})};o(),setTimeout(o,500)}var z=new Map,Ge=767;function Z(){return window.innerWidth<=Ge}function $e(o){if(z.has(o))return;o.querySelectorAll(".nav-item").forEach(a=>{a.classList.remove("hover")});let t="auto",n=o.getAttribute("data-dock-space"),i=n?parseFloat(n):16,r=o.parentElement,s=o.querySelector(".swiper-arrow.is-next"),c=o.querySelector(".swiper-arrow.is-prev");!s&&r&&(s=r.querySelector(".swiper-arrow.is-next")),!c&&r&&(c=r.querySelector(".swiper-arrow.is-prev"));let u={slidesPerView:t,slidesPerGroup:1,spaceBetween:i,loop:!1,freeMode:!1,watchOverflow:!0,navigation:{nextEl:s,prevEl:c}},d=new Swiper(o,u);z.set(o,d)}function Ve(o){let e=z.get(o);e&&(e.destroy(!0,!0),z.delete(o))}function Ee(){return Array.from(document.querySelectorAll("[data-slider-dock]"))}function we(){let o=Ee(),e=Z();o.forEach(t=>{e?$e(t):Ve(t)})}function Ue(o,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>o(...n),e)}}function Ye(){let o=document.querySelectorAll(".nav-item");o.length!==0&&o.forEach(e=>{e.addEventListener("mouseenter",()=>{Z()||e.classList.add("hover")}),e.addEventListener("mouseleave",()=>{Z()||e.classList.remove("hover")})})}function Le(){if(typeof Swiper>"u"||Ee().length===0)return;we();let e=Ue(we,150);window.addEventListener("resize",e),Ye()}var K=new Map,ee=new Map,Xe=991;function je(){return window.innerWidth<=Xe}function Qe(o){if(K.has(o))return;let e=o.getAttribute("data-mobile-slides"),t=e?parseFloat(e):1,n=o.getAttribute("data-mobile-space"),i=n?parseFloat(n):16,r=o.parentElement,s=o.querySelector(".swiper-arrow.is-next"),c=o.querySelector(".swiper-arrow.is-prev");!s&&r&&(s=r.querySelector(".swiper-arrow.is-next")),!c&&r&&(c=r.querySelector(".swiper-arrow.is-prev"));let u=o.querySelectorAll(".swiper-slide"),d=new Map;u.forEach(p=>{let l=p.style.cssText,S=document.createElement("div");S.style.cssText=l,d.set(p,S.style),p.style.width="",p.style.minWidth="0",p.style.maxWidth="none",p.style.flexBasis="auto",p.style.flexShrink="0",p.style.boxSizing="border-box",p.style.display="block"}),ee.set(o,d);let a={slidesPerView:t,spaceBetween:i,loop:!1,freeMode:!1,watchOverflow:!0,navigation:{nextEl:s,prevEl:c}},m=new Swiper(o,a);K.set(o,m)}function Je(o){let e=K.get(o);if(e){e.destroy(!0,!0),K.delete(o);let t=ee.get(o);t&&(t.forEach((n,i)=>{i.style.cssText=n.cssText}),ee.delete(o))}}function Se(){return Array.from(document.querySelectorAll("[data-slider-mobile]"))}function Te(){let o=Se(),e=je();o.forEach(t=>{e?Qe(t):Je(t)})}function Ze(o,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>o(...n),e)}}function Me(){if(typeof Swiper>"u"||Se().length===0)return;Te();let e=Ze(Te,150);window.addEventListener("resize",e)}function Ae(){if(typeof Swiper>"u")return;document.querySelectorAll(".swiper:not([data-slider-mobile]):not([data-slider-dock])").forEach(e=>{let t=e,n=t.getAttribute("data-mobile-slides"),i=n?parseFloat(n):1,r=t.parentElement,s=t.querySelector(".swiper-arrow.is-next"),c=t.querySelector(".swiper-arrow.is-prev");!s&&r&&(s=r.querySelector(".swiper-arrow.is-next")),!c&&r&&(c=r.querySelector(".swiper-arrow.is-prev"));let u=t.querySelector(".swiper-progress-track"),d=t.querySelector(".swiper-progress-thumb");!u&&r&&(u=r.querySelector(".swiper-progress-track")),!d&&r&&(d=r.querySelector(".swiper-progress-thumb"));let a={slidesPerView:i,spaceBetween:36,loop:!1,centeredSlides:!0,navigation:{nextEl:s,prevEl:c},breakpoints:{992:{slidesPerView:1,centeredSlides:!0}},on:{init:function(){setTimeout(()=>{D(this),d&&xe(this,d)},50)},slideChange:function(){D(this),d&&xe(this,d)},slideChangeTransitionStart:function(){D(this)},slideChangeTransitionEnd:function(){D(this)},transitionEnd:function(){D(this)}}},m=new Swiper(t,a);u&&u.addEventListener("click",function(p){let l=p,S=u.getBoundingClientRect(),R=l.clientX-S.left,I=S.width,C=R/I,f=m.slides.length,b=Math.floor(C*f);m.slideTo(b)})})}function D(o){o.slides.forEach(function(e,t){t===o.activeIndex||e.classList.contains("swiper-slide-active")?(e.style.transform="scale(1)",e.style.transition="transform 0.4s ease"):(e.style.transform="scale(0.8)",e.style.transition="transform 0.4s ease")})}function xe(o,e){let t=o.slides.length,i=(o.realIndex+1)/t*100;e.style.width=i+"%"}var He="is-mobile-tabs",te="mobile-tabs-wrapper",ne=class{constructor(e){h(this,"container");h(this,"menu");h(this,"content");h(this,"tabPairs",[]);h(this,"isMobileLayout",!1);h(this,"originalContentParent",null);h(this,"handleResize",()=>{let e=window.innerWidth<=991;e&&!this.isMobileLayout?this.applyMobileLayout():!e&&this.isMobileLayout&&this.restoreDesktopLayout()});h(this,"handleMobileTabClick",e=>{let n=e.currentTarget.getAttribute("data-w-tab")?.trim();this.tabPairs.forEach(({pill:i,tabName:r})=>{let s=i.nextElementSibling;if(!s||!s.classList.contains(te))return;let c=s.firstElementChild;c&&(r===n?(c.removeAttribute("hidden"),c.style.display="",s.classList.add("is-open")):(c.setAttribute("hidden","true"),c.style.display="none",s.classList.remove("is-open")))})});if(this.container=e,this.menu=e.querySelector(".w-tab-menu"),this.content=e.querySelector(".w-tab-content"),!this.menu||!this.content){console.error("[MobileTabs] Missing .w-tab-menu or .w-tab-content");return}this.originalContentParent=this.content.parentElement,this.collectTabPairs(),this.init()}collectTabPairs(){if(!this.menu||!this.content)return;let e=Array.from(this.menu.querySelectorAll("[data-w-tab]")),t=Array.from(this.content.querySelectorAll("[data-w-tab]"));e.forEach(n=>{let i=n.getAttribute("data-w-tab")?.trim();if(!i)return;let r=t.find(s=>s.getAttribute("data-w-tab")?.trim()===i);r&&this.tabPairs.push({pill:n,pane:r,tabName:i})})}init(){this.handleResize(),window.addEventListener("resize",this.handleResize.bind(this))}applyMobileLayout(){!this.menu||!this.content||(this.isMobileLayout=!0,this.container.classList.add(He),this.content.style.display="none",this.tabPairs.forEach(({pill:e,pane:t})=>{let n=document.createElement("div");n.className=te,n.appendChild(t.cloneNode(!0));let i=n.firstElementChild;e.classList.contains("w--current")||e.classList.contains("is-active-tab")?(i.removeAttribute("hidden"),i.style.display="",n.classList.add("is-open")):(i.setAttribute("hidden","true"),i.style.display="none",n.classList.remove("is-open")),e.insertAdjacentElement("afterend",n),e.addEventListener("click",this.handleMobileTabClick)}))}restoreDesktopLayout(){if(!this.menu||!this.content)return;this.isMobileLayout=!1,this.container.classList.remove(He),this.tabPairs.forEach(({pill:t})=>{t.removeEventListener("click",this.handleMobileTabClick)}),this.menu.querySelectorAll(`.${te}`).forEach(t=>t.remove()),this.content.style.display=""}destroy(){this.restoreDesktopLayout(),window.removeEventListener("resize",this.handleResize)}};function Ie(){document.querySelectorAll("[data-tabs-mobile]").forEach(e=>{if(e.classList.contains("w-tabs")||e.querySelector(".w-tabs")){let t=e.classList.contains("w-tabs")?e:e.querySelector(".w-tabs");t&&new ne(t)}})}var G=class{constructor(e){h(this,"tablistNode");h(this,"tabs",[]);h(this,"firstTab",null);h(this,"lastTab",null);h(this,"tabpanels",[]);this.tablistNode=e;let t=this.tablistNode.getAttribute("data-orientation")||"horizontal";this.tablistNode.setAttribute("aria-orientation",t),this.tabs=Array.from(this.tablistNode.querySelectorAll("[role=tab]")),this.tabs.forEach(i=>{let r=i.getAttribute("aria-controls");if(!r)return;let s=document.getElementById(r);i.tabIndex=i.getAttribute("aria-selected")==="true"?0:-1,s&&(s.setAttribute("role","tabpanel"),s.setAttribute("aria-labelledby",i.id),s.removeAttribute("tabindex"),this.tabpanels.push(s)),i.addEventListener("keydown",this.onKeydown.bind(this)),i.addEventListener("click",this.onClick.bind(this)),this.firstTab||(this.firstTab=i),this.lastTab=i});let n=this.tabs.find(i=>i.getAttribute("aria-selected")==="true")||this.firstTab;n&&this.setSelectedTab(n,!1)}setSelectedTab(e,t=!0){this.tabs.forEach(n=>{let i=n.getAttribute("aria-controls"),r=i?document.getElementById(i):null;e===n?(n.setAttribute("aria-selected","true"),n.tabIndex=0,n.classList.add("is-active-tab"),r&&(r.classList.add("is-active-tab"),r.removeAttribute("hidden"),r.removeAttribute("style")),t&&n.focus()):(n.setAttribute("aria-selected","false"),n.tabIndex=-1,n.classList.remove("is-active-tab"),r&&(r.classList.remove("is-active-tab"),r.setAttribute("hidden","true"),r.removeAttribute("style")))})}setSelectedToPreviousTab(e){if(e===this.firstTab&&this.lastTab)this.setSelectedTab(this.lastTab);else{let t=this.tabs.indexOf(e);this.setSelectedTab(this.tabs[t-1])}}setSelectedToNextTab(e){if(e===this.lastTab&&this.firstTab)this.setSelectedTab(this.firstTab);else{let t=this.tabs.indexOf(e);this.setSelectedTab(this.tabs[t+1])}}onKeydown(e){let t=e.currentTarget,n=!1,i=this.tablistNode.getAttribute("aria-orientation")||"horizontal";switch(e.key){case"ArrowLeft":i==="horizontal"&&(this.setSelectedToPreviousTab(t),n=!0);break;case"ArrowRight":i==="horizontal"&&(this.setSelectedToNextTab(t),n=!0);break;case"ArrowUp":i==="vertical"&&(this.setSelectedToPreviousTab(t),n=!0);break;case"ArrowDown":i==="vertical"&&(this.setSelectedToNextTab(t),n=!0);break;case"Home":this.firstTab&&(this.setSelectedTab(this.firstTab),n=!0);break;case"End":this.lastTab&&(this.setSelectedTab(this.lastTab),n=!0);break;case"Enter":case" ":this.setSelectedTab(t),n=!0;break;default:break}n&&(e.stopPropagation(),e.preventDefault())}onClick(e){this.setSelectedTab(e.currentTarget)}};function Ce(){document.querySelectorAll('[data-module="tabs"]').forEach(t=>{let n=t.querySelector('[role="tablist"]');if(n instanceof HTMLElement){if(t.hasAttribute("data-orientation")&&!n.hasAttribute("data-orientation")){let i=t.getAttribute("data-orientation");i&&n.setAttribute("data-orientation",i)}new G(n)}}),document.querySelectorAll('[role="tablist"]').forEach(t=>{t instanceof HTMLElement&&!t.closest('[data-module="tabs"]')&&new G(t)})}window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{ae(),ue(),Ce(),Ie(),ve(),ye(),ge(),me(),Ae(),Me(),Le(),pe(),de(),he(),ce(),le()});})();
131
+ `,document.head.appendChild(m)}let u=window.innerWidth,d=r+s,a=Math.max(3,Math.ceil(u*2/d));for(let m=0;m<a;m++){let p=n.cloneNode(!0);p.setAttribute("aria-hidden","true"),p.classList.add("is-clone"),t.appendChild(p)}if(typeof gsap<"u"){let m=t.querySelectorAll(".banner_marquee");m.forEach(p=>{let l=p;l.style.animation="none"}),requestAnimationFrame(()=>{let p=r+s,l=gsap.to(m,{x:-p,duration:30,ease:"none",repeat:-1});o.pauseOnHover&&e&&(e.addEventListener("mouseenter",()=>l.pause()),e.addEventListener("mouseleave",()=>l.resume()))})}};function de(){let o=document.querySelectorAll("[data-line-scroll]");o.length!==0&&o.forEach(e=>{let t=e.querySelector("line");if(!t)return;let n=t.closest("svg");n&&gsap.set(n,{attr:{preserveAspectRatio:"none"}}),gsap.to(t,{strokeDashoffset:-16,duration:1,ease:"none",repeat:-1})})}function ue(){if(typeof Lenis>"u"){console.error("[SmoothScroll] Lenis is not loaded");return}if(!(window.innerWidth>991))return;let e=new Lenis({duration:1.05,easing:n=>Math.min(1,1.001-Math.pow(2,-10*n)),orientation:"vertical",gestureOrientation:"vertical",smoothWheel:!0,wheelMultiplier:1,smoothTouch:!1,touchMultiplier:2,infinite:!1,autoRaf:!1});function t(n){e.raf(n),requestAnimationFrame(t)}requestAnimationFrame(t)}function me(){document.querySelectorAll(".button-wrapper").forEach(e=>{let t=e.querySelector(".button-link, a");t&&(t.addEventListener("focus",function(){e.classList.add("is-focused")}),t.addEventListener("blur",function(){e.classList.remove("is-focused")}))})}function pe(){let o=document.querySelectorAll(".layout_card.is-faq"),e=document.querySelectorAll(".about_component-image-outer");gsap.set(".layout-card-bottom",{height:0,overflow:"hidden",display:"block"}),gsap.set(e,{autoAlpha:0,display:"none",width:"100%",height:"100%",objectFit:"cover",position:"absolute",top:0,left:0});let t=document.querySelectorAll(".about_component-image-outer img");gsap.set(t,{width:"100%",height:"100%",objectFit:"cover"});function n(r,s){let c=r.querySelector(".layout-card-bottom"),u=r.querySelector(".layout_action-icon"),d=r.getAttribute("data-card"),a=document.querySelector(`.about_component-image-outer[data-image="${d}"]`);s?(c&&gsap.to(c,{height:"auto",duration:.6,ease:"power3.inOut"}),u&&u.classList.add("is-active"),a?(gsap.set(a,{display:"block",zIndex:2}),gsap.to(a,{autoAlpha:1,duration:.6,ease:"power3.inOut",overwrite:!0})):console.warn(`No image found for Card ID: ${d}`)):(gsap.to(c,{height:0,duration:.6,ease:"power3.inOut"}),u&&u.classList.remove("is-active"),a&&(gsap.set(a,{zIndex:1}),gsap.to(a,{autoAlpha:0,duration:.6,ease:"power3.inOut",onComplete:()=>gsap.set(a,{display:"none"})})))}let i=Array.from(o).find(r=>{let s=r.getAttribute("data-card");return document.querySelector(`.about_component-image-outer[data-image="${s}"]`)});i&&n(i,!0),o.forEach(r=>{let s=r.querySelector(".layout_card-top");s&&s.addEventListener("click",()=>{let c=r.querySelector(".layout-card-bottom"),u=c?gsap.getProperty(c,"height"):0,d=parseFloat(String(u))>0;o.forEach(a=>{a!==r&&n(a,!1)}),d||n(r,!0)})})}function fe(){if(!window.matchMedia("(hover: hover) and (pointer: fine)").matches)return;let e=document.querySelectorAll("[data-cursor]"),t=document.getElementById("cursor-hijack"),n=document.getElementById("cursor-trail-canvas"),i=document.getElementById("cursor-trail-path"),r=document.getElementById("trailGradient");if(!t||!n||!i||!e.length)return;if(typeof gsap>"u"){console.warn("GSAP not found");return}gsap.set(i,{opacity:.08});let s={tipOffset:{x:0,y:14},trailOffset:32,positionLerp:.25,maxPoints:50,minDistance:4,trailDecay:.92,rotationLerp:.15,idleSpeedThreshold:.5},c=!1,u={x:0,y:0},d={x:0,y:0},a=[],m=0,p=0;function l(){n&&n.setAttribute("viewBox",`0 0 ${window.innerWidth} ${window.innerHeight}`)}l(),window.addEventListener("resize",l),window.addEventListener("mousemove",h=>{u.x=h.clientX,u.y=h.clientY},{passive:!0});function S(){c=!0,document.body.classList.add("cursor-active"),d.x=u.x,d.y=u.y,a=[];for(let h=0;h<s.maxPoints;h++)a.push({x:u.x,y:u.y});p=0,m=0}function R(){c=!1,document.body.classList.remove("cursor-active")}e.forEach(h=>{h.addEventListener("mouseenter",S),h.addEventListener("mouseleave",R)}),document.querySelectorAll(".button-wrapper").forEach(h=>{h.addEventListener("mouseenter",()=>{document.body.classList.add("cursor-hidden")}),h.addEventListener("mouseleave",()=>{document.body.classList.remove("cursor-hidden")})}),gsap.ticker.add(()=>{if(!c)return;d.x+=(u.x-d.x)*s.positionLerp,d.y+=(u.y-d.y)*s.positionLerp;let h=d.x-a[1].x,b=d.y-a[1].y;Math.hypot(h,b)>s.idleSpeedThreshold&&(m=Math.atan2(b,h)*(180/Math.PI));let v=m-p;v>180&&(v-=360),v<-180&&(v+=360),p+=v*s.rotationLerp;let A=p*Math.PI/180,M=d.x-Math.cos(A)*s.trailOffset,T=d.y-Math.sin(A)*s.trailOffset;a[0].x=M,a[0].y=T;for(let w=1;w<a.length;w++)a[w].x+=(a[w-1].x-a[w].x)*(1-s.trailDecay),a[w].y+=(a[w-1].y-a[w].y)*(1-s.trailDecay);let k=C(a);i&&i.setAttribute("d",k),I(),gsap.set(t,{x:d.x-s.tipOffset.x,y:d.y-s.tipOffset.y,rotation:p+180,transformOrigin:`${s.tipOffset.x}px ${s.tipOffset.y}px`})});function I(){if(!r||a.length<2)return;let h=a[a.length-1],b=a[0];r.setAttribute("x1",String(h.x)),r.setAttribute("y1",String(h.y)),r.setAttribute("x2",String(b.x)),r.setAttribute("y2",String(b.y))}function C(h,b=.5){if(h.length<2)return"";let O=`M ${h[0].x.toFixed(2)} ${h[0].y.toFixed(2)}`;for(let v=0;v<h.length-1;v++){let A=h[Math.max(v-1,0)],M=h[v],T=h[v+1],k=h[Math.min(v+2,h.length-1)],w=M.x+(T.x-A.x)/6*b,$=M.y+(T.y-A.y)/6*b,W=T.x-(k.x-M.x)/6*b,V=T.y-(k.y-M.y)/6*b;O+=` C ${w.toFixed(2)} ${$.toFixed(2)}, ${W.toFixed(2)} ${V.toFixed(2)}, ${T.x.toFixed(2)} ${T.y.toFixed(2)}`}return O}}function he(){let o=document.querySelectorAll(".w-dropdown");function e(t){let n=t.querySelector(".w-dropdown-toggle"),i=t.querySelector(".w-dropdown-list"),r=t.querySelector(".dropdown_icon");n&&(n.classList.remove("w--open"),n.setAttribute("aria-expanded","false")),i&&i.classList.remove("w--open"),r&&r.classList.remove("is-open"),window.jQuery&&window.jQuery(t).trigger("w-close.w-dropdown")}o.forEach(t=>{let n=t.querySelector(".w-dropdown-toggle"),i=t.querySelector(".w-dropdown-list"),r=t.querySelector(".dropdown_icon");if(!n||!i)return;i.querySelectorAll("a").forEach(u=>{u.addEventListener("keydown",d=>{d.key==="Tab"&&setTimeout(()=>{t.contains(document.activeElement)||e(t)},0)})}),t.addEventListener("keydown",u=>{let d=u;d.key==="Escape"&&i.classList.contains("w--open")&&(e(t),n.focus(),d.preventDefault())}),new MutationObserver(u=>{u.forEach(d=>{if(d.attributeName==="class"){let a=n.classList.contains("w--open");r&&(a?r.classList.add("is-open"):r.classList.remove("is-open"))}})}).observe(n,{attributes:!0})}),document.addEventListener("focusin",t=>{o.forEach(n=>{let i=n.querySelector(".w-dropdown-list");if(i&&i.classList.contains("w--open")){let r=n.closest(".w-nav-overlay");if(r&&r.classList.contains("w--open"))return;n.contains(t.target)||e(n)}})})}var De=".w-nav",We=".button-wrapper",X="is-pinned",j="w-variant-a4b72284-6321-8341-edca-223fdec43abe";var _=!1,B=!1,F=!1,x=null,H=null;function Fe(){return window.innerWidth>991}function ve(){if(!x||!_){F=!1;return}let o=window.scrollY||window.pageYOffset;!B&&o>50?(x.classList.add(X),H&&H.classList.remove(j),B=!0):B&&o<40&&(x.classList.remove(X),H&&H.classList.add(j),B=!1),F=!1}function ze(){!F&&_&&(window.requestAnimationFrame(ve),F=!0)}function Ke(){x&&x.classList.remove(X),H&&H.classList.add(j),B=!1}function be(){let o=Fe();o&&!_?(_=!0,ve()):!o&&_&&(_=!1,Ke())}function Ge(o,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>o(...n),e)}}function ye(){if(x=document.querySelector(De),!x)return;H=x.querySelector(We),window.addEventListener("scroll",ze,{passive:!0});let o=Ge(be,150);window.addEventListener("resize",o),be()}var Q=class{constructor(e){f(this,"bigMenu");f(this,"tabsModule",null);f(this,"tablistContainer",null);f(this,"contentContainer",null);f(this,"tabMappings",[]);f(this,"isMobileLayout",!1);f(this,"originalButtonsWrapper",null);f(this,"accordionContainer",null);f(this,"dropdownToggle",null);f(this,"dropdownList",null);f(this,"navMobileHeader",null);f(this,"originalStructure",{buttonsWrapper:null,contentWrapper:null,buttonsParent:null,contentParent:null,buttonsNextSibling:null,contentNextSibling:null});f(this,"handleResize",()=>{let e=window.innerWidth<=991;e&&!this.isMobileLayout?this.applyMobileLayout():!e&&this.isMobileLayout&&this.restoreDesktopLayout()});if(this.bigMenu=e,this.tabsModule=e.querySelector('[data-module="tabs"]'),!this.tabsModule){console.error('[MegaMenuAccordion] No [data-module="tabs"] found inside [data-big-menu]');return}if(this.tablistContainer=this.tabsModule.querySelector('[role="tablist"]'),this.contentContainer=this.tabsModule.querySelector(".tabs_content-wrapper"),!this.tablistContainer||!this.contentContainer){console.error("[MegaMenuAccordion] Missing tablist or content container");return}this.originalButtonsWrapper=this.tablistContainer.closest(".tabs_buttons-wrapper"),this.originalStructure={buttonsWrapper:this.originalButtonsWrapper,contentWrapper:this.contentContainer,buttonsParent:this.originalButtonsWrapper?.parentElement||null,contentParent:this.contentContainer.parentElement,buttonsNextSibling:this.originalButtonsWrapper?.nextSibling||null,contentNextSibling:this.contentContainer.nextSibling},this.buildTabMappings(),this.dropdownToggle=e.querySelector(".w-dropdown-toggle"),this.dropdownList=e.querySelector(".w-dropdown-list"),this.navMobileHeader=e.querySelector(".nav_mobile-header"),this.init()}buildTabMappings(){if(!this.tablistContainer)return;Array.from(this.tablistContainer.querySelectorAll('[role="tab"]')).forEach(t=>{let n=t.getAttribute("aria-controls");if(!n)return;let i=document.getElementById(n);i&&this.tabMappings.push({button:t,panel:i,controlsId:n})})}init(){this.handleResize(),window.addEventListener("resize",this.handleResize)}applyMobileLayout(){!this.tabsModule||this.tabMappings.length===0||(this.isMobileLayout=!0,this.bigMenu.classList.add("is-mega-menu-accordion"),this.dropdownToggle&&(this.dropdownToggle.style.display="none"),this.navMobileHeader&&(this.navMobileHeader.style.display="none"),this.dropdownList&&(this.dropdownList.classList.add("w--open"),this.dropdownList.style.display="block",this.dropdownList.style.backgroundColor="transparent"),this.accordionContainer=document.createElement("div"),this.accordionContainer.className="mega-menu-accordion",this.accordionContainer.setAttribute("data-mega-accordion",""),this.tabMappings.forEach(({button:e,panel:t})=>{let n=document.createElement("div");n.className="mega-menu-accordion_item",n.setAttribute("data-accordion-item","");let i=document.createElement("div");i.className="mega-menu-accordion_trigger";let r=e.cloneNode(!0);r.classList.add("mega-menu-accordion_button"),r.setAttribute("data-accordion-trigger",""),r.setAttribute("aria-expanded","false");let s=r.querySelector(".icon-embed-xxsmall");s&&(s.style.transition="transform 0.3s ease",s.style.transform="rotate(-90deg)"),i.appendChild(r),n.appendChild(i);let c=document.createElement("div");c.className="mega-menu-accordion_content",c.setAttribute("data-accordion-content",""),c.style.display="none",c.style.overflow="hidden",c.style.maxHeight="0",c.style.transition="max-height 0.3s ease-out";let u=t.cloneNode(!0);u.classList.add("mega-menu-accordion_panel"),u.removeAttribute("hidden"),u.removeAttribute("style"),u.style.backgroundColor="transparent",c.appendChild(u),n.appendChild(c),i.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),this.toggleAccordionItem(n,r,c)}),this.accordionContainer.appendChild(n)}),this.originalStructure.buttonsWrapper&&(this.originalStructure.buttonsWrapper.style.display="none"),this.originalStructure.contentWrapper&&(this.originalStructure.contentWrapper.style.display="none"),this.tabsModule.appendChild(this.accordionContainer))}toggleAccordionItem(e,t,n){e.classList.contains("is-open")?this.closeAccordionItem(e,t,n):(this.closeAllAccordionItems(),this.openAccordionItem(e,t,n))}openAccordionItem(e,t,n){e.classList.add("is-open"),t.setAttribute("aria-expanded","true");let i=t.querySelector(".icon-embed-xxsmall");i&&(i.style.transform="rotate(-270deg)"),n.style.display="block";let{scrollHeight:r}=n;n.style.maxHeight=`${r}px`,setTimeout(()=>{e.classList.contains("is-open")&&(n.style.maxHeight="none")},300)}closeAccordionItem(e,t,n){e.classList.remove("is-open"),t.setAttribute("aria-expanded","false");let i=t.querySelector(".icon-embed-xxsmall");i&&(i.style.transform="rotate(-90deg)"),n.style.maxHeight=`${n.scrollHeight}px`,n.offsetHeight,n.style.maxHeight="0",setTimeout(()=>{e.classList.contains("is-open")||(n.style.display="none")},300)}closeAllAccordionItems(){if(!this.accordionContainer)return;this.accordionContainer.querySelectorAll(".mega-menu-accordion_item.is-open").forEach(t=>{let n=t.querySelector("[data-accordion-trigger]"),i=t.querySelector("[data-accordion-content]");n&&i&&this.closeAccordionItem(t,n,i)})}restoreDesktopLayout(){this.isMobileLayout=!1,this.bigMenu.classList.remove("is-mega-menu-accordion"),this.accordionContainer&&(this.accordionContainer.remove(),this.accordionContainer=null),this.originalStructure.buttonsWrapper&&(this.originalStructure.buttonsWrapper.style.display=""),this.originalStructure.contentWrapper&&(this.originalStructure.contentWrapper.style.display=""),this.dropdownToggle&&(this.dropdownToggle.style.display=""),this.navMobileHeader&&(this.navMobileHeader.style.display=""),this.dropdownList&&(this.dropdownList.classList.remove("w--open"),this.dropdownList.style.display="",this.dropdownList.style.backgroundColor="")}destroy(){this.restoreDesktopLayout(),window.removeEventListener("resize",this.handleResize)}};function ge(){document.querySelectorAll("[data-big-menu]").forEach(e=>{new Q(e)})}var J=class{constructor(e){f(this,"navOverlay");f(this,"navMenu",null);f(this,"isApplied",!1);f(this,"handleResize",()=>{window.innerWidth<=991?this.applyMobileScrollStyles():this.removeMobileScrollStyles()});this.navOverlay=e,this.navMenu=e.querySelector(".w-nav-menu"),this.init()}init(){this.observeMenuState(),this.handleResize(),window.addEventListener("resize",this.handleResize)}applyMobileScrollStyles(){this.isApplied||(this.isApplied=!0,this.navOverlay.style.overflowY="auto",this.navOverlay.style.overflowX="hidden",this.navOverlay.style["-webkit-overflow-scrolling"]="touch",this.navOverlay.style.maxHeight="100dvh",this.navMenu&&(this.navMenu.style.overflowY="auto",this.navMenu.style.overflowX="hidden",this.navMenu.style["-webkit-overflow-scrolling"]="touch",this.navMenu.style.maxHeight="100dvh",this.navMenu.style.paddingBottom="100px"),this.setupScrollLocking())}removeMobileScrollStyles(){this.isApplied&&(this.isApplied=!1,this.navOverlay.style.overflowY="",this.navOverlay.style.overflowX="",this.navOverlay.style["-webkit-overflow-scrolling"]="",this.navOverlay.style.maxHeight="",this.navMenu&&(this.navMenu.style.overflowY="",this.navMenu.style.overflowX="",this.navMenu.style["-webkit-overflow-scrolling"]="",this.navMenu.style.maxHeight="",this.navMenu.style.paddingBottom=""))}setupScrollLocking(){let e=document.querySelector(".w-nav-button");e&&new MutationObserver(n=>{n.forEach(i=>{if(i.type==="attributes"&&i.attributeName==="class"){let r=e.classList.contains("w--open");this.handleMenuToggle(r)}})}).observe(e,{attributes:!0})}handleMenuToggle(e){if(e&&window.innerWidth<=991)document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top=`-${window.scrollY}px`,this.updateOverlayHeight();else{let t=document.body.style.top;document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.top="",t&&window.scrollTo(0,parseInt(t||"0",10)*-1)}}updateOverlayHeight(){let e=window.visualViewport?.height||window.innerHeight;this.navOverlay.style.maxHeight=`${e}px`,this.navMenu&&(this.navMenu.style.maxHeight=`${e}px`)}observeMenuState(){new MutationObserver(()=>{this.navOverlay.style.display==="block"&&window.innerWidth<=991&&(this.applyMobileScrollStyles(),this.updateOverlayHeight())}).observe(this.navOverlay,{attributes:!0,attributeFilter:["style"]}),window.visualViewport&&window.visualViewport.addEventListener("resize",()=>{window.innerWidth<=991&&this.updateOverlayHeight()})}destroy(){window.removeEventListener("resize",this.handleResize),this.removeMobileScrollStyles()}};function we(){let o=()=>{document.querySelectorAll(".w-nav-overlay").forEach(t=>{t.dataset.mobileScrollInit||(t.dataset.mobileScrollInit="true",new J(t))})};o(),setTimeout(o,500)}var z=new Map,$e=767;function Z(){return window.innerWidth<=$e}function Ve(o){if(z.has(o))return;o.querySelectorAll(".nav-item").forEach(a=>{a.classList.remove("hover")});let t="auto",n=o.getAttribute("data-dock-space"),i=n?parseFloat(n):16,r=o.parentElement,s=o.querySelector(".swiper-arrow.is-next"),c=o.querySelector(".swiper-arrow.is-prev");!s&&r&&(s=r.querySelector(".swiper-arrow.is-next")),!c&&r&&(c=r.querySelector(".swiper-arrow.is-prev"));let u={slidesPerView:t,slidesPerGroup:1,spaceBetween:i,loop:!1,freeMode:!1,watchOverflow:!0,navigation:{nextEl:s,prevEl:c}},d=new Swiper(o,u);z.set(o,d)}function Ue(o){let e=z.get(o);e&&(e.destroy(!0,!0),z.delete(o))}function Le(){return Array.from(document.querySelectorAll("[data-slider-dock]"))}function Ee(){let o=Le(),e=Z();o.forEach(t=>{e?Ve(t):Ue(t)})}function Ye(o,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>o(...n),e)}}function Xe(){let o=document.querySelectorAll(".nav-item");o.length!==0&&o.forEach(e=>{e.addEventListener("mouseenter",()=>{Z()||e.classList.add("hover")}),e.addEventListener("mouseleave",()=>{Z()||e.classList.remove("hover")})})}function Te(){if(typeof Swiper>"u"||Le().length===0)return;Ee();let e=Ye(Ee,150);window.addEventListener("resize",e),Xe()}var K=new Map,ee=new Map,je=991;function Qe(){return window.innerWidth<=je}function Je(o){if(K.has(o))return;let e=o.getAttribute("data-mobile-slides"),t=e?parseFloat(e):1,n=o.getAttribute("data-mobile-space"),i=n?parseFloat(n):16,r=o.parentElement,s=o.querySelector(".swiper-arrow.is-next"),c=o.querySelector(".swiper-arrow.is-prev");!s&&r&&(s=r.querySelector(".swiper-arrow.is-next")),!c&&r&&(c=r.querySelector(".swiper-arrow.is-prev"));let u=o.querySelectorAll(".swiper-slide"),d=new Map;u.forEach(p=>{let l=p.style.cssText,S=document.createElement("div");S.style.cssText=l,d.set(p,S.style),p.style.width="",p.style.minWidth="0",p.style.maxWidth="none",p.style.flexBasis="auto",p.style.flexShrink="0",p.style.boxSizing="border-box",p.style.display="block"}),ee.set(o,d);let a={slidesPerView:t,spaceBetween:i,loop:!1,freeMode:!1,watchOverflow:!0,navigation:{nextEl:s,prevEl:c}},m=new Swiper(o,a);K.set(o,m)}function Ze(o){let e=K.get(o);if(e){e.destroy(!0,!0),K.delete(o);let t=ee.get(o);t&&(t.forEach((n,i)=>{i.style.cssText=n.cssText}),ee.delete(o))}}function Me(){return Array.from(document.querySelectorAll("[data-slider-mobile]"))}function Se(){let o=Me(),e=Qe();o.forEach(t=>{e?Je(t):Ze(t)})}function et(o,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>o(...n),e)}}function xe(){if(typeof Swiper>"u"||Me().length===0)return;Se();let e=et(Se,150);window.addEventListener("resize",e)}function He(){if(typeof Swiper>"u")return;document.querySelectorAll(".swiper:not([data-slider-mobile]):not([data-slider-dock])").forEach(e=>{let t=e,n=t.getAttribute("data-mobile-slides"),i=n?parseFloat(n):1,r=t.parentElement,s=t.querySelector(".swiper-arrow.is-next"),c=t.querySelector(".swiper-arrow.is-prev");!s&&r&&(s=r.querySelector(".swiper-arrow.is-next")),!c&&r&&(c=r.querySelector(".swiper-arrow.is-prev"));let u=t.querySelector(".swiper-progress-track"),d=t.querySelector(".swiper-progress-thumb");!u&&r&&(u=r.querySelector(".swiper-progress-track")),!d&&r&&(d=r.querySelector(".swiper-progress-thumb"));let a={slidesPerView:i,spaceBetween:36,loop:!1,centeredSlides:!0,navigation:{nextEl:s,prevEl:c},breakpoints:{992:{slidesPerView:1,centeredSlides:!0}},on:{init:function(){setTimeout(()=>{D(this),d&&Ae(this,d)},50)},slideChange:function(){D(this),d&&Ae(this,d)},slideChangeTransitionStart:function(){D(this)},slideChangeTransitionEnd:function(){D(this)},transitionEnd:function(){D(this)}}},m=new Swiper(t,a);u&&u.addEventListener("click",function(p){let l=p,S=u.getBoundingClientRect(),R=l.clientX-S.left,I=S.width,C=R/I,h=m.slides.length,b=Math.floor(C*h);m.slideTo(b)})})}function D(o){o.slides.forEach(function(e,t){t===o.activeIndex||e.classList.contains("swiper-slide-active")?(e.style.transform="scale(1)",e.style.transition="transform 0.4s ease"):(e.style.transform="scale(0.8)",e.style.transition="transform 0.4s ease")})}function Ae(o,e){let t=o.slides.length,i=(o.realIndex+1)/t*100;e.style.width=i+"%"}var Ie="is-mobile-tabs",te="mobile-tabs-wrapper",ne=class{constructor(e){f(this,"container");f(this,"menu");f(this,"content");f(this,"tabPairs",[]);f(this,"isMobileLayout",!1);f(this,"originalContentParent",null);f(this,"handleResize",()=>{let e=window.innerWidth<=991;e&&!this.isMobileLayout?this.applyMobileLayout():!e&&this.isMobileLayout&&this.restoreDesktopLayout()});f(this,"handleMobileTabClick",e=>{let n=e.currentTarget.getAttribute("data-w-tab")?.trim();this.tabPairs.forEach(({pill:i,tabName:r})=>{let s=i.nextElementSibling;if(!s||!s.classList.contains(te))return;let c=s.firstElementChild;c&&(r===n?(c.removeAttribute("hidden"),c.style.display="",s.classList.add("is-open")):(c.setAttribute("hidden","true"),c.style.display="none",s.classList.remove("is-open")))})});if(this.container=e,this.menu=e.querySelector(".w-tab-menu"),this.content=e.querySelector(".w-tab-content"),!this.menu||!this.content){console.error("[MobileTabs] Missing .w-tab-menu or .w-tab-content");return}this.originalContentParent=this.content.parentElement,this.collectTabPairs(),this.init()}collectTabPairs(){if(!this.menu||!this.content)return;let e=Array.from(this.menu.querySelectorAll("[data-w-tab]")),t=Array.from(this.content.querySelectorAll("[data-w-tab]"));e.forEach(n=>{let i=n.getAttribute("data-w-tab")?.trim();if(!i)return;let r=t.find(s=>s.getAttribute("data-w-tab")?.trim()===i);r&&this.tabPairs.push({pill:n,pane:r,tabName:i})})}init(){this.handleResize(),window.addEventListener("resize",this.handleResize.bind(this))}applyMobileLayout(){!this.menu||!this.content||(this.isMobileLayout=!0,this.container.classList.add(Ie),this.content.style.display="none",this.tabPairs.forEach(({pill:e,pane:t})=>{let n=document.createElement("div");n.className=te,n.appendChild(t.cloneNode(!0));let i=n.firstElementChild;e.classList.contains("w--current")||e.classList.contains("is-active-tab")?(i.removeAttribute("hidden"),i.style.display="",n.classList.add("is-open")):(i.setAttribute("hidden","true"),i.style.display="none",n.classList.remove("is-open")),e.insertAdjacentElement("afterend",n),e.addEventListener("click",this.handleMobileTabClick)}))}restoreDesktopLayout(){if(!this.menu||!this.content)return;this.isMobileLayout=!1,this.container.classList.remove(Ie),this.tabPairs.forEach(({pill:t})=>{t.removeEventListener("click",this.handleMobileTabClick)}),this.menu.querySelectorAll(`.${te}`).forEach(t=>t.remove()),this.content.style.display=""}destroy(){this.restoreDesktopLayout(),window.removeEventListener("resize",this.handleResize)}};function Ce(){document.querySelectorAll("[data-tabs-mobile]").forEach(e=>{if(e.classList.contains("w-tabs")||e.querySelector(".w-tabs")){let t=e.classList.contains("w-tabs")?e:e.querySelector(".w-tabs");t&&new ne(t)}})}var G=class{constructor(e){f(this,"tablistNode");f(this,"tabs",[]);f(this,"firstTab",null);f(this,"lastTab",null);f(this,"tabpanels",[]);this.tablistNode=e;let t=this.tablistNode.getAttribute("data-orientation")||"horizontal";this.tablistNode.setAttribute("aria-orientation",t),this.tabs=Array.from(this.tablistNode.querySelectorAll("[role=tab]")),this.tabs.forEach(i=>{let r=i.getAttribute("aria-controls");if(!r)return;let s=document.getElementById(r);i.tabIndex=i.getAttribute("aria-selected")==="true"?0:-1,s&&(s.setAttribute("role","tabpanel"),s.setAttribute("aria-labelledby",i.id),s.removeAttribute("tabindex"),this.tabpanels.push(s)),i.addEventListener("keydown",this.onKeydown.bind(this)),i.addEventListener("click",this.onClick.bind(this)),this.firstTab||(this.firstTab=i),this.lastTab=i});let n=this.tabs.find(i=>i.getAttribute("aria-selected")==="true")||this.firstTab;n&&this.setSelectedTab(n,!1)}setSelectedTab(e,t=!0){this.tabs.forEach(n=>{let i=n.getAttribute("aria-controls"),r=i?document.getElementById(i):null;e===n?(n.setAttribute("aria-selected","true"),n.tabIndex=0,n.classList.add("is-active-tab"),r&&(r.classList.add("is-active-tab"),r.removeAttribute("hidden"),r.removeAttribute("style")),t&&n.focus()):(n.setAttribute("aria-selected","false"),n.tabIndex=-1,n.classList.remove("is-active-tab"),r&&(r.classList.remove("is-active-tab"),r.setAttribute("hidden","true"),r.removeAttribute("style")))})}setSelectedToPreviousTab(e){if(e===this.firstTab&&this.lastTab)this.setSelectedTab(this.lastTab);else{let t=this.tabs.indexOf(e);this.setSelectedTab(this.tabs[t-1])}}setSelectedToNextTab(e){if(e===this.lastTab&&this.firstTab)this.setSelectedTab(this.firstTab);else{let t=this.tabs.indexOf(e);this.setSelectedTab(this.tabs[t+1])}}onKeydown(e){let t=e.currentTarget,n=!1,i=this.tablistNode.getAttribute("aria-orientation")||"horizontal";switch(e.key){case"ArrowLeft":i==="horizontal"&&(this.setSelectedToPreviousTab(t),n=!0);break;case"ArrowRight":i==="horizontal"&&(this.setSelectedToNextTab(t),n=!0);break;case"ArrowUp":i==="vertical"&&(this.setSelectedToPreviousTab(t),n=!0);break;case"ArrowDown":i==="vertical"&&(this.setSelectedToNextTab(t),n=!0);break;case"Home":this.firstTab&&(this.setSelectedTab(this.firstTab),n=!0);break;case"End":this.lastTab&&(this.setSelectedTab(this.lastTab),n=!0);break;case"Enter":case" ":this.setSelectedTab(t),n=!0;break;default:break}n&&(e.stopPropagation(),e.preventDefault())}onClick(e){this.setSelectedTab(e.currentTarget)}};function Oe(){document.querySelectorAll('[data-module="tabs"]').forEach(t=>{let n=t.querySelector('[role="tablist"]');if(n instanceof HTMLElement){if(t.hasAttribute("data-orientation")&&!n.hasAttribute("data-orientation")){let i=t.getAttribute("data-orientation");i&&n.setAttribute("data-orientation",i)}new G(n)}}),document.querySelectorAll('[role="tablist"]').forEach(t=>{t instanceof HTMLElement&&!t.closest('[data-module="tabs"]')&&new G(t)})}window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{ae(),ue(),Oe(),Ce(),ye(),ge(),we(),pe(),He(),xe(),Te(),fe(),de(),he(),me(),ce(),le()});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anegis-webflow-new",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Webflow development project for Anegis",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/ANEGIS/anegis-webflow-new#readme",
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ import { initBlobAnimation } from './animations/BlobAnimation';
4
4
  import { initMarquee } from './animations/Marquee';
5
5
  import { initScrollLine } from './animations/ScrollLine';
6
6
  import { initSmoothScroll } from './animations/SmoothScroll';
7
+ import { initAccessibleButtons } from './components/buttons/AccessibleButtons';
7
8
  import { initFaqCards } from './components/cards/FaqCards';
8
9
  import { initCustomCursor } from './components/cursor/CustomCursor';
9
10
  import { initAccessibleDropdown } from './components/dropdown/AccessibleDropdown';
@@ -34,6 +35,7 @@ window.Webflow.push(() => {
34
35
  initCustomCursor();
35
36
  initScrollLine();
36
37
  initAccessibleDropdown();
38
+ initAccessibleButtons();
37
39
  initMarquee();
38
40
  initBlobAnimation();
39
41
  });