1import{S as c,g as n}from"./app.qQtaN1au.js";const f=s=>{const d=s.querySelector(".js-nav"),p=s.querySelector("ul"),[...h]=s.querySelectorAll(".js-nav-item");if(h.forEach(l=>{const o=l.querySelector("a").getAttribute("href"),e=s.querySelector(o),i=l.querySelector(".js-nav-bar");c.create({trigger:e,start:"top 76px",end:"bottom 76px",scrub:!0,toggleClass:{targets:l,className:"active"},onUpdate:t=>{window.innerWidth>=768&&n.set(i,{width:`${t.progress*100}%`})},onEnter:()=>{if(window.innerWidth>=768)return;const t=h.find(r=>r.matches(".active"));n.to(p,{duration:.5,scrollTo:{x:t}})},onEnterBack:()=>{if(window.innerWidth>=768)return;const t=h.find(r=>r.matches(".active"));n.to(p,{duration:.5,scrollTo:{x:t}})}})}),window.innerWidth<768){const l=s.querySelector(".js-nav-bar-single");c.create({trigger:d,start:"top 55px",endTrigger:s,end:"bottom 100px",pin:d,pinSpacing:!1,toggleClass:{targets:d,className:"pinned"},onUpdate:o=>{n.set(l,{width:`${o.progress*100}%`})}})}s.querySelectorAll(".js-chapter").forEach(l=>{const o=[...l.querySelectorAll(".js-accordion")].map(e=>({node:e,contentNode:e.querySelector(".js-content")}));o.forEach((e,i)=>{const t=e.node.querySelector(".js-button");if(window.innerWidth>=1024){const r=i===0||i%2===0?i+1:i-1;let a;o[r]?a=t.scrollHeight>o[r].node.querySelector(".js-button").scrollHeight?t.scrollHeight:o[r].node.querySelector(".js-button").scrollHeight:a=t.scrollHeight,n.to(t,{height:a,onComplete:()=>c.refresh()})}e.node.addEventListener("click",()=>{const r=e.node.classList.contains("opened");o.forEach(a=>{a.node!==e.node&&(a.node.classList.remove("opened"),n.to(a.contentNode,{duration:.5,height:0,onComplete:()=>c.refresh()}))}),r?(e.node.classList.remove("opened"),n.to(e.contentNode,{duration:.5,height:0,onComplete:()=>c.refresh()})):(e.node.classList.add("opened"),n.to(e.contentNode,{duration:.3,height:"auto",onComplete:()=>c.refresh()}))})})})};export{f as init}; 2//# sourceMappingURL=sections.product-info.BrSouOb_.js.map
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.