1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[485],{75150:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop/category/[slug]",function(){return n(86002)}])},86002:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return o},default:function(){return u}});var l=n(52322),a=n(5517),r=n(75478),i=n(62522),s=n(15219),o=!0;function u(e){var t,n;let{story:o,categories:u,initialFilters:d,currentCategory:c,metatags:g,globals:p,preview:h}=e,f=(0,r.useTranslations)("Shop");return o=(0,a.f0)(o,h),(0,l.jsx)(i.Z,{title:(null==c?void 0:c.name)||f("shop"),metatags:g,globals:p,preview:h,pageTheme:null===(t=o.content)||void 0===t?void 0:t.theme,pageThemeVariant:null===(n=o.content)||void 0===n?void 0:n.themeVariant,children:(0,l.jsx)(s.Z,{blok:o.content,currentCategory:c,categories:u,initialFilters:d})})}},15219:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var l=n(52322),a=n(39097),r=n.n(a),i=n(2784),s=n(5632),o=n(75478),u=n(65737),d=n(19597),c=n(32998),g=n(25984),p=n(67320),h=n(71636),f=n(18006),b=n(2245);function m(e){let{categories:t=[],initialFilters:n=[],currentCategory:a}=e,r=(0,o.useTranslations)("Shop"),b=(0,o.useTranslations)("Filtering"),m=[...t.map(e=>({...e,path:{pathname:"/shop/category/[slug]",query:{slug:e.slug}}}))],[x,v]=(0,i.useState)("CUSTOM_1"),[_,Z]=(0,i.useState)(!1),[j,y]=(0,i.useState)(!1);(0,s.useRouter)();let{currentFilters:C,currentPage:P,handleFilterChange:S,handleResetFilters:F}=(0,h.Z)(),{products:N,availableFilters:T,isLoading:k,isError:w,isSuccess:O,fetchNextPage:E,hasNextPage:L,isFetchingNextPage:M}=(0,u.r)({page:P||1,postsPerPage:20,category:(null==a?void 0:a.value)||null,filters:C,sortOrder:x},{placeholderData:e=>e});return(0,h.p)({availableFilters:T}),(0,l.jsx)(f.Z,{menuOpen:j,setMenuOpen:y,sidebarEnabled:n.length>0,sidebarButtonIndication:C.length,isLoading:k,isFetchingNextPage:M,error:w?r("errorLoadingProducts"):null,info:O&&(null==N?void 0:N.length)<1?r("noProductsFound"):null,categoriesSlot:(0,l.jsx)(g.Z,{categories:m,currentCategory:a||{label:r("allProducts"),value:null}}),sidebarContent:(0,l.jsx)(c.Z,{initialFilters:n,availableFilters:T,currentFilters:C,handleResetFilters:F,handleFilterChange:S,setMenuOpen:y}),loadMoreSlot:(0,l.jsx)(p.Z,{loadMore:E,hasMore:L,isLoading:M,infinite:!0}),LoadingCard:d.B,listingContainerClass:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-gap gap-y-12 md:gap-y-16 lg:gap-y-20 xl:gap-y-24 mb-16",sidebarButtonLabel:b("filters"),children:null==N?void 0:N.map((e,t)=>(0,l.jsx)(d.Z,{product:e,index:t},e.id))})}(0,b.Z)("brand");var x=n(40879),v=n(11199),_=n(4484);let Z=(0,b.Z)("brand");function j(e){let{blok:t,currentCategory:n,categories:a,initialFilters:i}=e,u=(0,s.useRouter)(),d=(0,o.useTranslations)("Shop"),c=n?{label:n.name,title:(0,_.Z)(n.description),text:(0,_.Z)(n.extraInfo)}:{label:t.allProductsLabel,title:null==t?void 0:t.allProductsTitle};return(0,l.jsxs)("main",{className:"modules",children:[(0,l.jsx)(x.Z,{label:c.label,title:c.title,content:c.text,actions:"hviska"==Z?(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(r(),{href:"/product/configurator",className:"button button-primary mx-auto",children:d("designYourPanel")})}):null,asHero:!0}),(0,l.jsx)(m,{currentCategory:n,categories:a,initialFilters:i},u.pathname),(0,l.jsx)(v.Z,{bloks:null==t?void 0:t.body})]})}}},function(e){e.O(0,[707,157,40,888,774,179],function(){return e(e.s=75150)}),_N_E=e.O()}]);
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.