PageSourceSearch

https://precoro.com/build/js/workflow.DuXFm-5J.js

js precoro.com collected 2026-10-01 10:25:46 UTC 2,214 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/swiper.CMUSlw1O.js","js/utils.DcUlYB3x.js"])))=>i.map(i=>d[i]);
2import{_ as L}from"./app.jnPlnRpb.js";const A=async f=>{const y=(await L(async()=>{const{Swiper:e}=await import("./swiper.CMUSlw1O.js");return{Swiper:e}},__vite__mapDeps([0,1]))).Swiper,a=f.querySelector(".js-workflow-container"),o=a.querySelector(".js-workflow-cards"),l=[...o.querySelectorAll(".js-workflow-card")].map(e=>({node:e,height:e.offsetHeight})),n=a.querySelector(".js-workflow-button"),i={opened:null,closed:o.offsetHeight};l.forEach(e=>{e.node.classList.remove("hidden"),e.node.classList.remove("max-lg:hidden")}),i.opened=o.offsetHeight,o.style.height=`${i.closed}px`;const r=new y(".js-tags-slider",{slidesPerView:"auto",cssMode:!0,allowTouchMove:!0}),p=(e,s,d)=>new Promise(t=>{const h=performance.now();let g=s;const c=()=>{const m=(performance.now()-h)/200;g=s+(d-s)*m,e.node.style.opacity=g,m<1?window.requestAnimationFrame(c):t()};c()}),w=(e,s)=>{const t=performance.now();let u=e;const h=()=>{const c=(performance.now()-t)/200;u=Math.round(e+(s-e)*c),c<1?(o.style.height=u+"px",window.requestAnimationFrame(h)):o.style.height=s+"px"};h()};r.on("click",e=>{if(!e.clickedSlide)return;r.slides.forEach(t=>t.classList.remove("active")),r.slides[e.clickedIndex].classList.add("active");const s=r.slides[e.clickedIndex].getAttribute("data-tag"),d=s==="all"?l:l.filter(t=>t.node.getAttribute("data-tag")===s);l.forEach(async t=>{await p(t,1,0),t.node.classList.add("hidden"),d.length<=4?(n.classList.add("hidden"),a.classList.remove("opened"),[...n.querySelectorAll("span")][0].classList.remove("hidden"),[...n.querySelectorAll("span")][1].classList.add("hidden"),o.style.height="auto"):(o.style.height=`${i.closed}px`,n.classList.remove("hidden")),(t.node.getAttribute("data-tag")===s||s==="all")&&(t.node.classList.remove("hidden"),await p(t,0,1))})}),n.addEventListener("click",()=>{a.classList.toggle("opened"),[...n.querySelectorAll("span")][0].classList.toggle("hidden"),[...n.querySelectorAll("span")][1].classList.toggle("hidden"),a.matches(".opened")?w(i.closed,i.opened):w(i.opened,i.closed)})};export{A as initTabs};
3//# sourceMappingURL=workflow.DuXFm-5J.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.