import{m as y}from"./chunks/modal-7e92753e.js";const f=()=>{const t=document.querySelectorAll(".aura-nav-accordion");t.length&&t.forEach(e=>{e.querySelectorAll(".menu-item-has-children").forEach(r=>{r.addEventListener("click",o=>{o.target.href||(r.toggleAttribute("data-active"),o.stopPropagation())})})})},p=(t,e,n,r=0)=>{const o=document.querySelectorAll(t);if(!o.length){n();return}o.forEach(s=>{new IntersectionObserver(function(a){a[0].isIntersecting===!0?e():n()},{threshold:r}).observe(s)})},g=()=>{document.querySelectorAll("[data-resent-selector]").forEach(e=>{const n=e.dataset.resentSelector,r=e.dataset.resentThreshold;p(n,()=>{e.dataset.resentStatus=!0},()=>{e.dataset.resentStatus=!1},r)})},w=()=>{l(document),jQuery(document).on("elementor/popup/show",(t,e,n)=>{l(n.$element[0])})},l=t=>{const e=t.querySelectorAll("[data-aura-scroll-x-nav]");e.length&&e.forEach(n=>{const r=n.dataset.selector,o=n.dataset.offset||"50%";if(!r&&!o)return;const s=v(o),c=document.querySelector(r);if(!c)return;const a=n.querySelector("[data-prev] a"),m=n.querySelector("[data-next] a");d(a,c,"left",s),d(m,c,"right",s)})},v=t=>{if(!t.endsWith("%"))return parseInt(t);let e=getComputedStyle(document.body).getPropertyValue("--aura-g-container-width");return e.endsWith("%")&&(e=window.innerWidth),parseInt(t)/100*parseInt(e)},d=(t,e,n,r)=>{t&&(n==="left"&&(r=r*-1),t.addEventListener("click",o=>{o.preventDefault(),e.scroll({left:e.scrollLeft+r,behavior:"smooth"})}))},h=()=>{const t=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--aura-scroll-bar-width",`${t}px`)},b=()=>{const t=getComputedStyle(document.body),e=parseInt(t.getPropertyValue("--aura-g-admin-bar-height"));i(window.scrollY,e),window.addEventListener("scroll",()=>{i(window.scrollY,e)})},i=(t,e)=>{const n=t>e;document.body.dataset.scrolled=n},S=()=>{const t=document.querySelector(".aura-sticky-header");if(!t)return;const e=getComputedStyle(document.body),n=parseInt(e.getPropertyValue("--aura-g-admin-bar-height"));let r=window.scrollY;r=u(t,r,n),window.addEventListener("scroll",()=>{r=u(t,r,n)})},u=(t,e,n)=>{const r=window.scrollY;let o=t.clientHeight,s;return r<e&&n<r?s=!0:(s=!1,o=0),document.documentElement.style.setProperty("--aura-g-sticky-header-height",`${o}px`),document.body.dataset.stickyHeader=s,r};document.addEventListener("DOMContentLoaded",()=>{y(),f(),g(),w(),h(),b(),S()});window.addEventListener("resize",()=>{h()});
