1"use strict";(globalThis.webpackChunkinvia2020=globalThis.webpackChunkinvia2020||[]).push([[2674],{92674(t,e,s){s.r(e),s.d(e,{default:()=>l});var i=s(95455),r=s(27384),a=s(77335),o=s(50253),n=s(64060);const c=(t,e,s,i)=>{const r=e.querySelector(".c-product-grid__btn");o.W(),fetch(t).then((t=>t.json())).then((t=>{if(t.responseIsOk){const{loadMore:a,url:o}=t.customData;!a&&r&&r.classList.add("u-hide"),i?(e.setAttribute("data-component--collapse--restrict-items-buffered-html",t.html),e.setAttribute("data-component--collapse--restrict-items-buffered-url",o)):(s.insertAdjacentHTML("beforeend",t.html),e.setAttribute("data-component--collapse--restrict-items-url",o))}else r?.classList.add("u-hide");o.j()})).catch((t=>{r?.classList.add("u-hide"),o.j(),(0,n.Cp)(t)}))};class l extends i.xI{static targets=["productList"];connect(){this.data.has("skip-probe")||this.checkInitialButtonState()}checkInitialButtonState(){const t=this.data.get("url");t&&c(t,this.element,this.productListTarget,!0)}handleItems(){const t=this.productListTarget,e=Array.from(t.children),s=(0,a.$_)("smDown"),i=e.filter((t=>(0,r.nB)(t,"u-vhide@mdDown")||s&&(0,r.nB)(t,"u-vhide@smDown"))),o=Number(this.data.get("show-more")),n=(0,a.$_)("mdDown");if(e&&i){if(n&&i.length>0){const t=Math.min(o,i.length);for(let e=0;e<t;e++)(0,r.vy)(i[e],"u-vhide@smDown"),(0,r.vy)(i[e],"u-vhide@mdDown")}if(!n||0===i.length){const e=this.element,s=e.getAttribute("data-component--collapse--restrict-items-buffered-html"),i=e.getAttribute("data-component--collapse--restrict-items-buffered-url");if(s)t.insertAdjacentHTML("beforeend",s),e.removeAttribute("data-component--collapse--restrict-items-buffered-html"),i&&(e.setAttribute("data-component--collapse--restrict-items-url",i),e.removeAttribute("data-component--collapse--restrict-items-buffered-url"));else{const s=e.getAttribute("data-component--collapse--restrict-items-url");s&&c(s,e,t)}}}}}}}]); 2//# sourceMappingURL=2674.cbe9896988fad72e04a2.chunk.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.