PageSourceSearch

https://precoro.com/build/js/sections.compare-cards-icon.JF9rF32l.js

js precoro.com collected 2026-09-24 08:55:11 UTC 957 bytes, 2 lines download raw bytes

1import{S as n,g as t}from"./app.qQtaN1au.js";const T=l=>{const e=l.querySelector("[data-cards-grid]"),o=l.querySelector("[data-load-more]");if(!e||!o)return;const h=5,a=[...e.children];let c=h;const s=()=>window.innerWidth>=1024?3:window.innerWidth>=768?2:1,i=r=>{const f=c*s();t.killTweensOf(e);const u=e.offsetHeight;if(a.forEach((p,m)=>p.classList.toggle("hidden",m>=f)),o.classList.toggle("hidden",f>=a.length),!r){t.set(e,{clearProps:"height,overflow"}),n.refresh();return}t.set(e,{clearProps:"height"});const w=e.offsetHeight;t.fromTo(e,{height:u,overflow:"hidden"},{height:w,duration:.5,ease:"power2.inOut",onComplete:()=>{t.set(e,{clearProps:"height,overflow"}),n.refresh()}})};o.addEventListener("click",()=>{c+=h,i(!0)});let d,g=s();window.addEventListener("resize",()=>{clearTimeout(d),d=setTimeout(()=>{const r=s();r!==g&&(g=r,i(!1),n.refresh())},150)}),i(!1)};export{T as init};
2//# sourceMappingURL=sections.compare-cards-icon.JF9rF32l.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.