PageSourceSearch

https://www.nienhuis.com/_next/static/chunks/743-52b278bc0151ff92.js

js nienhuis.com collected 2026-10-04 00:28:45 UTC 48,330 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[478,743],{14208:(e,l,t)=>{t.d(l,{A:()=>r});var n=t(66352);t(95132);let r=e=>{let{className:l}=e;return(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",className:l,fill:"transparent",children:(0,n.jsx)("path",{d:"M22.2147 12.005H1.78613M11.2147 21.4286L1.78613 12L11.2147 2.57141",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})}},21605:(e,l,t)=>{t.d(l,{s:()=>o});var n=t(66352),r=t(46001),i=t.n(r),a=t(95132),s=t(34345);let o=e=>{let{id:l,fetching:t,defaultChecked:r,value:o,disabled:c,label:d,onChange:u,checked:m,name:h,withBg:g,children:p,className:v,externalLabel:x}=e,f=a.useRef(null);return t&&g?(0,n.jsx)("span",{className:"inline-flex items-center h-input",children:(0,n.jsx)(s.A,{width:80,height:50})}):(0,n.jsxs)(x?"span":"label",{className:i()(v,"relative inline-block min-h-lg min-w-lg group align-top",g&&"inline-flex items-center h-input -mr-1 py-[.4rem] px bg-color01 border  first:rounded-l-large last:rounded-r-large",g&&(m?"border-font z-10":"border-brown-200 hover:border-font hover:z-10"),c?"text-muted cursor-default":"cursor-pointer text-font"),tabIndex:0,onKeyDown:e=>{if("Enter"===e.key&&!c){var l,t,n;e.preventDefault(),u({target:{value:null==(l=f.current)?void 0:l.value,name:null==(t=f.current)?void 0:t.name,checked:!(null==(n=f.current)?void 0:n.checked)}})}},children:[(0,n.jsx)("input",{ref:f,className:"absolute opacity-0",id:l,defaultChecked:r,disabled:c,value:o,checked:m,onChange:e=>u(e),type:"radio",name:h}),(d||p)&&(0,n.jsx)("label",{className:i()("block pl-[2.8rem] align-middle whitespace-normal select-none cursor-pointer"),htmlFor:l,children:t?(0,n.jsx)(s.A,{width:40}):(0,n.jsx)("span",{className:"ml-sm",children:null!=d?d:p})}),t?(0,n.jsx)("span",{className:"absolute w-lg h-lg",children:(0,n.jsx)(s.A,{width:24,height:24})}):(0,n.jsx)("span",{className:i()("absolute w-lg h-lg bg-color01 rounded-full border border-input-border transition-all",g?"":"top-0 left-0",m&&!c&&"border-theme01",!m&&!c&&"group-hover:border-font",c&&"bg-disabled-bg"),children:(0,n.jsx)("span",{className:i()("absolute top-sm left-sm w-10 h-10 rounded-full transition-all",m&&!c&&"bg-theme01",c&&m&&"bg-input-border")})})]})}},29474:(e,l,t)=>{t.d(l,{B:()=>v});var n=t(66352),r=t(46001),i=t.n(r),a=t(64099),s=t(97224),o=t(95132),c=t(34345),d=t(82536),u=t(93629),m=t(17459),h=t(33063),g=t(13888);let p=e=>{var{children:l,disablePointer:t,hideArrow:r,fetching:a,href:s}=e,o=(0,m._)(e,["children","disablePointer","hideArrow","fetching","href"]);return(0,n.jsx)(h.k,{href:s,children:(0,n.jsx)("a",(0,u._)((0,d._)({className:i()("inline-flex items-center text-sm no-underline text-font hover:underline",t?"pointer-events-none":"cursor-pointer")},o),{children:a?(0,n.jsx)(c.A,{width:130,height:23}):(0,n.jsxs)(n.Fragment,{children:[" ",l,!r&&(0,n.jsx)(g.c,{className:"w-8 mx-sm mt-1 text-brown-300 b3:text-font"})]})}))})},v=e=>{var l,t;let{breadcrumbs:r,className:d,fetching:u}=e,{t:m,tFetching:h}=(0,s.B)(),g=o.useRef(null);return((0,o.useEffect)(()=>{let e=g.current;if(e&&r){let l=setTimeout(()=>{e.scrollLeft=e.scrollWidth},0);return()=>clearTimeout(l)}},[r]),u||r)?(0,n.jsx)("div",{className:i()(d,"container overflow-x-auto whitespace-nowrap"),"data-breadcrumbs":!0,ref:g,children:u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{fetching:!0}),(0,n.jsx)(p,{fetching:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{href:"/",children:h?(0,n.jsx)("span",{className:"inline-block",children:(0,n.jsx)(c.A,{width:34,height:17})}):null!=(t=m[a.o.common.breadcrumbs.home])?t:"Home"}),null==r||null==(l=r.filter(e=>"a"!==e.name))?void 0:l.map((e,l)=>{var t;return(0,n.jsx)(p,{href:e.url,hideArrow:l===r.length-1,disablePointer:!e.url,children:null!=(t=e.name)?t:""},"".concat(l,"-").concat(e.url))})]})}):null}},35473:(e,l,t)=>{t.d(l,{g:()=>o});var n=t(12584),r=t(32306),i=t(91008),a=t(72650);function s(){let e=(0,n._)(["\n	query GetRecommendedProducts($input: IRecommendedProductsInput!) {\n		getRecommendedProducts(input: $input) {\n			products {\n				...BaseProductFragment\n			}\n			sortKeys {\n				key\n				name\n			}\n			pagination {\n				...PaginationFragment\n			}\n		}\n	}\n	","\n	","\n"]);return s=function(){return e},e}let o=(0,r.J1)(s(),a.c,i.T)},38912:(e,l,t)=>{t.d(l,{C:()=>i});var n=t(12584);function r(){let e=(0,n._)(["\n	query GetProductPrices($skus: [String]!) {\n		getProductPrices(skus: $skus) {\n			sku\n			productPrice {\n				price {\n					currency\n					inclTax\n					exclTax\n					tax\n				}\n				salePrice {\n					currency\n					inclTax\n					exclTax\n					tax\n				}\n			}\n		}\n	}\n"]);return r=function(){return e},e}let i=(0,t(32306).J1)(r())},46743:(e,l,t)=>{t.d(l,{cM:()=>ln});var n=t(82536),r=t(93629),i=t(66352),a=t(3144),s=t(95132),o=t(348),c=t(90046),d=t(26300),u=t(36420),m=t(77394),h=t(46001),g=t.n(h),p=t(51106),v=t(74032),x=t(15959),f=t(82254),b=t(89267),j=t(21688);let y=(e,l,t,n,r,i)=>{if(t&&e&&""!==e){let n=new URLSearchParams(window.location.search);n.delete("page");let r=n.get(l);if(r){let i=null==r?void 0:r.split(";"),a=null==i?void 0:i.find(e=>e.split(":")[0]===t.field);a||(a="".concat(t.field,":"),i.push(a));let s=null==a?void 0:a.split(":")[1].split("|");s&&s.length>0&&(s.some(l=>l===e)?s=s.filter(l=>l!==e):s.push(e),0===s.length&&(i=i.filter(e=>e.split(":")[0]!==t.field)));let o=null==s?void 0:s.filter(e=>""!==e).join("|"),c=null==(i=null==i?void 0:i.map(e=>e.split(":")[0]===t.field?"".concat(t.field,":").concat(o):e))?void 0:i.join(";");if(i){c.length>0?((null==t?void 0:t.fixed)||n.set("rec",t.field),n.set(l,c)):(n.delete("rec"),n.delete(l));let e="".concat(window.location.pathname,"?").concat(n);f.f.push(e,{scroll:!1})}}else{n.set(l,"".concat(t.field,":").concat(e)),(null==t?void 0:t.fixed)||n.set("rec",t.field);let r="".concat(window.location.pathname,"?").concat(n);f.f.push(r,{scroll:!1})}}else f.f.push(window.location.pathname,{scroll:!1});i&&t&&w(i,t,n,r)},w=(e,l,t,n)=>{var r;j.y.setTag({analyticsInput:{event:b.Je.FilterValueClick,data:{filterValue:e.title,filterValueIndex:null==l||null==(r=l.values)?void 0:r.findIndex(l=>l.title===(null==e?void 0:e.title)),filterValueCount:null==e?void 0:e.count,filterGroup:null==l?void 0:l.title,filterGroupIndex:t,action:(null==e?void 0:e.selected)?"deactivate":"activate",origin:window.location.pathname.includes("search")?b.td.Search:b.td.Category,searchTerm:null==n?void 0:n.searchTerm,category:null==n?void 0:n.CategoryID}}})},C=(e,l,t,n)=>{var r;j.y.setTag({analyticsInput:{event:b.Je.FilterValuesToggle,data:{filterGroup:e.title,filterGroupIndex:n,filterValuesCount:null==(r=e.values)?void 0:r.length,filterValuesLimit:t,action:l?"collapse":"expand",origin:window.location.pathname.includes("search")?b.td.Search:b.td.Category}}})},k=()=>{let e=new URLSearchParams(window.location.search),l=e.toString();e.delete("filters"),e.delete("fixedFilters"),e.delete("rec");let t=e.toString();if(l!==t){let e="".concat(window.location.pathname).concat(t?"?".concat(t):"");f.f.push(e,{scroll:!1})}},N=e=>{let l=new URLSearchParams(e).get("filters");return l?l.split(";").length:0};var P=t(64099),F=t(97224),I=t(12584),A=t(32306),L=t(99729),T=t(65105);function S(){let e=(0,I._)(["\n	query GetToggleFilter($id: String!) {\n		toggleFilter(id: $id) @client(always: true) {\n			id\n			open\n		}\n	}\n"]);return S=function(){return e},e}let _=(0,A.J1)(S()),R=e=>{var l,t;let n=(0,L.m)(),{data:r,refetch:i}=(0,T.I)(_,{variables:{id:e}}),a=(0,s.useCallback)(l=>{n&&i&&(n.cache.writeQuery({query:_,data:{toggleFilter:{id:e,open:l,__typename:"ToggleFilter"}},variables:{id:e}}),i())},[e]);return{open:null==(t=null==r||null==(l=r.toggleFilter)?void 0:l.open)||t,setOpen:a}};var E=t(34345);let M=e=>{let{className:l}=e;return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",className:l,fill:"
1currentColor",children:(0,i.jsx)("path",{d:"M6,15c0,0.2,0.1,0.4,0.3,0.6c0.3,0.3,0.9,0.3,1.2,0l4.5-4.5l4.5,4.5c0.3,0.3,0.9,0.3,1.2,0s0.3-0.9,0-1.2l-5.1-5.1  c-0.3-0.3-0.9-0.3-1.2,0l-5.1,5.1C6.1,14.6,6,14.8,6,15"})})};var B=t(33063);let D=e=>{let{title:l,onClick:t,isOpen:n,hasActiveFilters:r,onReset:a,children:s,fetching:o}=e,{t:c}=(0,F.B)();return(0,i.jsxs)("div",{className:g()(!n&&"mb-lg"),"data-filter-group-title":!0,children:[(0,i.jsx)("h3",{className:"flex items-start mb text-lg font-medium cursor-pointer",onClick:t,onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key&&t(e)},tabIndex:0,children:o?(0,i.jsx)(E.A,{width:130}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{children:l}),(0,i.jsxs)("span",{className:"flex-center-y mt-2",children:[r&&a&&(0,i.jsx)(B.k,{children:(0,i.jsx)("a",{className:"inline-block ml text-sm hover:text-theme01b",onClick:e=>{e.stopPropagation(),e.preventDefault(),a()},href:"#",children:c[P.o.lister.filters.reset]})}),(0,i.jsx)(M,{className:g()("flex-none ml h-lg text-brown-500  transition-all",!n&&"rotate-180")})]})]})}),s]})};var V=t(33895);let J=e=>{let{title:l,onClick:t,selected:n}=e;return(0,i.jsx)("div",{className:"relative w-[4.2rem] h-[4.2rem] mr-[0.4rem] mb-[0.4rem] rounded-full bg-red text-sm text-center leading-[16px] border-1 border-color04 cursor-pointer",onClick:t,children:(0,i.jsx)(V.S,{checked:n,id:"id-".concat(l)})})};var U=t(21605);let H=e=>{let{className:l,filterValue:t,filterGroup:n,onFilterClick:r,type:a,selectionType:o="single"}=e,{title:c,count:d,selected:u,value:m,mappedValue:h}=t,[g,p]=(0,s.useState)(u),v="".concat(c," (").concat(d,")"),x=null;return"color"===a?x=(0,i.jsx)(J,{className:l,onClick:()=>r(m),color:h,title:"".concat(c," (").concat(d,")"),selected:u}):"multiple"===o?x=(0,i.jsx)(V.S,{className:l,onClick:()=>r(m),checked:u,id:"id-".concat(n+m),label:v}):"single"===o&&(x=(0,i.jsx)(U.s,{className:l,name:v,value:v,onChange:()=>r(m),checked:g,id:"id-".concat(n+m),label:v})),(0,i.jsx)("li",{className:l,onClick:()=>{g&&p(!g)},"data-filter":v,children:x})},$=e=>{var l,t,n,r,a,o,c,d,u;let{filter:m,className:h,fetching:p,index:v,routingParameters:w}=e,k=null!=(a=null!=(r=null==w?void 0:w.searchTerm)?r:null==w?void 0:w.predefinedFilter)?a:null==w?void 0:w.CategoryID,N=(null==m?void 0:m.fixed)?"fixedFilters":"filters",[I,A]=(0,s.useState)(!!(m&&(null==m?void 0:m.limitCount)>0&&(null==m||null==(l=m.values)?void 0:l.length)>(null==m?void 0:m.limitCount)));(0,s.useEffect)(()=>{A(!0)},[k]);let{t:L}=(0,F.B)(),{open:T,setOpen:S}=R(null!=(o=null==m?void 0:m.title)?o:""),_=m&&(null==m?void 0:m.limitCount)>0?null==m?void 0:m.limitCount:5,M=I?null==m?void 0:m.values.slice(0,_):null==m?void 0:m.values;return p||m?(0,i.jsxs)("div",{className:g()(h),"data-productfilter-group":!0,children:[(0,i.jsx)(D,{onClick:()=>{S(!T),m&&j.y.setTag({analyticsInput:{event:b.Je.FilterGroupToggle,data:{filterGroup:m.title,filterGroupIndex:v,action:T?"collapse":"expand",origin:window.location.pathname.includes("search")?b.td.Search:b.td.Category}}})},hasActiveFilters:!!(null==m||null==(t=m.values)?void 0:t.some(e=>!0===e.selected)),onReset:()=>{((e,l)=>{var t;let n=(null==e?void 0:e.fixed)?"fixedFilters":"filters",r=new URLSearchParams(window.location.search),i=r.get(n),a=null==i?void 0:i.split(";");(a=null==a?void 0:a.filter(l=>l.split(":")[0]!==(null==e?void 0:e.field)),r.delete("rec"),a&&(null==a?void 0:a.length)>0)?r.set(n,null!=(t=null==a?void 0:a.join(";"))?t:""):r.delete(n);let s="".concat(window.location.pathname,"?").concat(r);e&&j.y.setTag({analyticsInput:{event:b.Je.FilterValuesDeselectAll,data:{filterGroup:e.title,filterGroupIndex:l,origin:window.location.pathname.includes("search")?b.td.Search:b.td.Category}}}),f.f.push(s,{scroll:!1})})(m,v)},title:null!=(c=null==m?void 0:m.title)?c:"",isOpen:T,fetching:p}),T&&(0,i.jsx)("ul",{"data-filter-group-container":!0,children:p?(0,i.jsxs)(i.Fragment,{children:[[void 0,void 0,void 0,void 0,void 0].map((e,l)=>(0,i.jsx)("li",{children:(0,i.jsx)(E.A,{className:"mb",width:200,height:24})},l)),(0,i.jsx)(E.A,{width:100})]}):m&&(0,i.jsxs)(i.Fragment,{children:[null==M?void 0:M.map(e=>(0,i.jsx)(H,{className:"mb",filterValue:e,type:null==m?void 0:m.type,filterGroup:m.field,selectionType:null==m?void 0:m.selectionType,onFilterClick:l=>y(l,N,m,v,w,e)},e.value+m.field)),_&&(null==m||null==(n=m.values)?void 0:n.length)>_&&(0,i.jsx)(x.Q,{onClick:()=>{A(e=>!e),C(m,!I,_,v)},onKeyDown:e=>{"Enter"===e.key&&(A(e=>!e),C(m,!I,_,v))},"data-filter-group-more":!0,tabIndex:0,children:(0,i.jsx)("span",{children:I?null!=(d=L[P.o.lister.filters.showMore])?d:"Show more":null!=(u=L[P.o.lister.filters.showLess])?u:"Show less"})})]})})]}):null},K=e=>{let{routingParameters:l,filters:t,fetching:n}=e;return(0,i.jsx)("ul",{"data-product-filters":!0,children:n&&!t?[void 0,void 0,void 0,void 0,void 0].map((e,l)=>(0,i.jsx)("li",{children:(0,i.jsx)($,{className:"mb-lg pb-lg",fetching:n})},l)):null==t?void 0:t.map((e,r)=>e.values&&e.minCount<=e.values.length&&(0,i.jsx)("li",{className:"mb-lg last:mb-0 pb-lg border-b border-b-background last:border-b-0",children:(0,i.jsx)($,{index:r,filter:e,fetching:n&&!t,routingParameters:l})},e.title+r.toString()))})};var q=t(13888);let O=e=>{var l;let{className:t,subCategoryLinks:n,fetching:r}=e,{t:a}=(0,F.B)(),{open:s,setOpen:o}=R("ProductListerCategories");return r||n&&(null==n?void 0:n.length)!==0?(0,i.jsx)("div",{className:g()("mb-lg last:pb-lg b4:last:pb-0",t),"data-subcategories":!0,
1children:(0,i.jsx)(D,{onClick:()=>o(!s),title:a[P.o.lister.subCategories],isOpen:s,fetching:r,children:s&&(0,i.jsx)("ul",{className:"-ml-4",children:r?[...Array(7)].map((e,l)=>(0,i.jsx)("li",{className:"mb",children:(0,i.jsx)("a",{children:(0,i.jsx)(E.A,{width:130})})},l)):null==n||null==(l=n.filter(e=>e.name))?void 0:l.map(e=>(0,i.jsx)("li",{className:"mb",children:(0,i.jsx)(B.k,{href:e.url,children:(0,i.jsxs)("a",{className:"flex-center-y text-font no-underline",children:[(0,i.jsx)(q.c,{className:"mr-sm w-[1.1rem]"}),e.name]})})},e.name))})})}):null};var G=t(89016),Z=t(56891),W=t(41650),X=t(59520);let Q=e=>{let{label:l,onClick:t}=e;return(0,i.jsxs)("button",{className:"inline-flex  items-center max-w-full py-8 px text-left  bg-brown-100 hover:text-theme01 rounded-large transition-all",onClick:t,children:[(0,i.jsx)("span",{className:"mr-8 whitespace-nowrap text-ellipsis overflow-hidden",children:l}),(0,i.jsx)(X.U,{className:"w-10 h-10"})]})},z=e=>{let{className:l,filters:t,routingParameters:n}=e,{t:r}=(0,F.B)();return(0,i.jsxs)("div",{className:g()(l,"mb-lg pb-lg border-b border-b-background"),children:[(0,i.jsxs)("h3",{className:"flex-center-y gap mb-md text-lg font-medium",children:[r[P.o.lister.filters.selected],(0,i.jsx)(B.k,{children:(0,i.jsx)("a",{className:"flex-none inline-block text-sm hover:text-theme01b",onClick:e=>{e.stopPropagation(),e.preventDefault(),k()},href:"#",children:r[P.o.lister.filters.removeAll]})})]}),(0,i.jsx)("ul",{className:"flex flex-wrap gap-8",children:t.map(e=>e.values.filter(e=>e.selected).map(l=>{let r=1===t.filter(e=>e.values.some(e=>l===e)).length?e.fixed?l.mappedValue:l.value:"".concat(e.title,": ").concat(l.value);return(0,i.jsx)(Q,{label:r,onClick:()=>((e,l)=>{y(l,e.fixed?"fixedFilters":"filters",e,void 0,n,e.values.find(e=>e.value===l))})(e,l.value)},"".concat(e.title,"=").concat(l.value))}))})]})},Y=e=>{var l;let{subCategories:t,fetchingCategory:r,routingParameters:a,hideCategory:o}=e,[c,{data:u,previousData:m,loading:h}]=(0,d._)(W.t9),g=null!=(l=null==u?void 0:u.getFilters)?l:null==m?void 0:m.getFilters,p=null==g?void 0:g.filter(e=>{var l;return null==(l=e.values)?void 0:l.some(e=>e.selected)});return(0,s.useEffect)(()=>{if((null==a?void 0:a.searchTerm)||(null==a?void 0:a.CategoryID)||(null==a?void 0:a.recommended)){var e,l,t;let r=(e=>(null==e?void 0:e.searchTerm)?"search":(null==e?void 0:e.predefinedFilter)?"predefinedFilter":(null==e?void 0:e.CategoryID)?"category":(null==e?void 0:e.recommended)?"recommended":void 0)(a),i={};if("recommended"===r){let e=null==a?void 0:a.recommended;i.sku=e.sku,i.categoryId=e.categoryId,i.endpoint=e.endpoint,i.properties=e.properties}else"search"===r?i.searchTerm=null!=(l=null==a?void 0:a.searchTerm)?l:"":"category"===r?i.categoryId=null!=(t=null==a?void 0:a.CategoryID)?t:"":"predefinedFilter"===r&&(i.predefinedFilter=null==a?void 0:a.predefinedFilter);c({variables:{input:(0,n._)({type:r,filterUri:null==a?void 0:a.filters,fixedFilterUri:null==a?void 0:a.fixedFilters,mostRecentGroup:null==a?void 0:a.rec,locale:null==(e=Z.fX.CURRENT_LOCALE)?void 0:e.locale,cartSkus:[]},i)},ssr:!1,fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"})}},[a]),(0,i.jsxs)(G.t,{children:[p&&p.length>0&&(0,i.jsx)(z,{className:"-order-1",filters:p,routingParameters:a}),!o&&(0,i.jsx)(O,{className:"pb border-b border-b-background",subCategoryLinks:t,fetching:r}),(0,i.jsx)(K,{filters:g,routingParameters:a,fetching:h})]})};var ee=t(34400);let el=e=>{let{type:l,sorting:t,sortKeys:n,path:r,fetching:a}=e,{t:s}=(0,F.B)();return a||(null==n?void 0:n.length)?"radio"===l?a?[void 0,void 0,void 0].map((e,l)=>(0,i.jsx)("li",{className:"mb",children:(0,i.jsx)(E.A,{width:120})},l)):(0,i.jsx)("ul",{className:"",children:n.map(e=>(0,i.jsx)("li",{className:"mb",children:(0,i.jsx)(U.s,{id:e.key,name:"sorting",value:e.key,label:e.name,onChange:e=>f.f.pushWithQuery("sorting",e.target.value,r),checked:t===e.key})},e.key))}):a?(0,i.jsx)(E.A,{width:220,height:50}):(0,i.jsxs)(ee.l,{value:null!=t?t:"",onChange:e=>f.f.pushWithQuery("sorting",e.target.value,r),name:"sorting",children:[(0,i.jsx)("option",{value:"",children:s[P.o.lister.sort.label]},"-1"),n.map((e,l)=>(0,i.jsx)("option",{value:e.key,children:e.name},"".concat(e.key).concat(l)))]}):null};var et=t(66589),en=t(48019),er=t(65950),ei=t(16460),ea=t.n(ei);let es=e=>{var l,t,n,r;let{showFlyout:a,setShowFlyout:o,routingParameters:c,productLister:d,path:u,hideCategory:m,fetching:h,fetchingCategory:p,handleRouteChange:v,subCategories:x}=e,{t:f}
1=(0,F.B)(),[b,j]=(0,s.useState)(!0),y=null==d?void 0:d.pagination;return(0,i.jsx)(en.m,{toggle:a,setToggle:o,title:null!=(t=f[P.o.lister.filters.flyout.title])?t:"Filters",location:"left",renderFooter:()=>{var e,l;return(0,i.jsxs)("div",{className:"flex-center-y gap",children:[(0,i.jsx)(et.$,{loading:!(null==d?void 0:d.pagination),className:"w-full",onClick:()=>{o(!1),v()},children:(0,er.LK)(f[P.o.lister.filters.flyout.apply],null!=(l=null==y?void 0:y.totalItems)?l:"",(0,i.jsx)("span",{className:"lowercase",children:(null==d||null==(e=d.items)?void 0:e.length)===1?f[P.o.lister.product]:f[P.o.lister.products]}))}),(0,i.jsx)(ea(),{className:"flex-none",href:"#",onClick:()=>k(),children:f[P.o.lister.filters.flyout.removeFilters]})]})},"data-lister-filters-flyout":!0,children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(null==d?void 0:d.sortKeys)&&(null==d||null==(l=d.sortKeys)?void 0:l.length)>0&&(0,i.jsxs)("div",{className:"mb-lg pb-lg border-b border-b-background",children:[(0,i.jsxs)("h3",{className:"flex items-start mb-md text-lg font-medium",onClick:()=>j(!b),children:[null!=(n=f[P.o.lister.sort.label])?n:"Sort by",(0,i.jsx)(M,{className:g()("flex-none ml h-lg text-brown-500  transition-all",!b&&"rotate-180")})]}),b&&(0,i.jsx)(el,{className:"mb-lg pb-lg border-b border-b-background",type:"radio",sorting:null==c?void 0:c.sorting,sortKeys:null!=(r=null==d?void 0:d.sortKeys)?r:[],path:u})]}),(0,i.jsx)(G.t,{children:(0,i.jsx)(Y,{hideCategory:m,subCategories:x,fetchingCategory:p,fetching:h,routingParameters:c})})]})})};var eo=t(29474);let ec=e=>{let{breadcrumbs:l,className:t,fetching:n,search:r}=e,a=(()=>{var e;let{t:l}=(0,F.B)();return[{name:null!=(e=l[P.o.common.breadcrumbs.searchResult])?e:"Search result"}]})();return(0,i.jsx)(eo.B,{className:g()(t),breadcrumbs:r?a:l,fetching:!l&&n})};var ed=t(47128);let eu=e=>{let{className:l}=e;return(0,i.jsx)("svg",{className:l,width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"transparent",children:(0,i.jsx)("path",{d:"M11.9999 2.57141V21.4286M2.57129 12H21.4284M19.857 2.57141H4.14272C3.27485 2.57141 2.57129 3.27497 2.57129 4.14284V19.8571C2.57129 20.725 3.27485 21.4286 4.14272 21.4286H19.857C20.7249 21.4286 21.4284 20.725 21.4284 19.8571V4.14284C21.4284 3.27497 20.7249 2.57141 19.857 2.57141Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})},em=e=>{let{className:l}=e;return(0,i.jsx)("svg",{className:l,width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"transparent",children:(0,i.jsx)("path",{d:"M21.4284 16.7143L2.57129 16.7143M21.4284 7.2857L2.57129 7.28568M21.4284 12L2.57129 12M19.857 2.57141H4.14272C3.27485 2.57141 2.57129 3.27497 2.57129 4.14284V19.8571C2.57129 20.725 3.27485 21.4286 4.14272 21.4286H19.857C20.7249 21.4286 21.4284 20.725 21.4284 19.8571V4.14284C21.4284 3.27497 20.7249 2.57141 19.857 2.57141Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})};var eh=t(78084);let eg=e=>{let{className:l}=e;return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",className:l,fill:"transparent",children:(0,i.jsx)("path",{d:"M7.28557 4.92855C7.28557 6.23037 6.23025 7.2857 4.92843 7.2857C3.62661 7.2857 2.57129 6.23037 2.57129 4.92855C2.57129 3.62674 3.62661 2.57141 4.92843 2.57141C6.23025 2.57141 7.28557 3.62674 7.28557 4.92855ZM7.28557 4.92855H21.4284M14.357 12C14.357 13.3018 13.3017 14.3571 11.9999 14.3571C10.698 14.3571 9.64272 13.3018 9.64272 12M14.357 12C14.357 10.6982 13.3017 9.64284 11.9999 9.64284C10.698 9.64284 9.64272 10.6982 9.64272 12M14.357 12H21.4284M9.64272 12H2.57129M16.7141 19.0714C16.7141 17.7696 17.7695 16.7143 19.0713 16.7143C20.3731 16.7143 21.4284 17.7696 21.4284 19.0714C21.4284 20.3732 20.3731 21.4286 19.0713 21.4286C17.7695 21.4286 16.7141 20.3732 16.7141 19.0714ZM16.7141 19.0714H2.57129",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})};var ep=t(63632);let ev=(0,s.forwardRef)((e,l)=>{let{className:t,activeFilterAmount:n,onClick:r,children:a}=e;return(0,i.jsxs)("div",{className:g()(t),ref:l,children:[void 0!==n&&n>0&&(0,i.jsx)(ep.Z,{className:"absolute -top-sm -right-sm !text-sm",quantity:n}),(0,i.jsx)(et.$,{color:ed.n.background,iconBefore:(0,i.jsx)(eg,{}),onClick:r,children:a})]})});ev.displayName="ProductListerFilterButton";let ex=e=>{let{className:l,items:t,fetching:n,setView:r,view:a,setShowFiltersFlyout:o,sorting:c,sortKeys:d,path:u,routingParameters:m}=e,{t:h}
1=(0,F.B)(),p=(0,s.useRef)(null),[v,x]=(0,s.useState)(!1),f=(0,eh.Z)(!1),b=()=>{if(f&&p.current){let e=p.current.getBoundingClientRect().top+window.scrollY-84,l=window.scrollY;x(t=>{let n=l>e;return n!==t?n:t})}};return(0,s.useEffect)(()=>{if(f)return x(!1),window.addEventListener("scroll",b),()=>{window.removeEventListener("scroll",b)}},[m,p.current,f]),(0,i.jsx)("div",{className:g()(l,"flex-center-y mb-1 p-lg bg-color01"),"data-lister-options":!0,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"b4:hidden mr",children:[n?(0,i.jsx)(E.A,{width:115,height:50}):(0,i.jsx)(ev,{ref:p,className:g()("relative",v&&"invisible"),onClick:()=>{o(!0)},activeFilterAmount:N(window.location.search),children:h[P.o.lister.filters.toggle]}),v&&(0,i.jsx)(ev,{className:g()("fixed left-lg top-[8.4rem] z-[11]"),onClick:()=>{o(!0)},activeFilterAmount:N(window.location.search),children:h[P.o.lister.filters.toggle]})]}),(0,i.jsx)("span",{className:"text-sm b4:text-lg font-medium lowercase",children:n?(0,i.jsx)(E.A,{width:110}):(0,i.jsxs)(i.Fragment,{children:[null!=t?t:"0"," ",1===t?h[P.o.lister.product]:h[P.o.lister.products]]})}),(0,i.jsxs)("div",{className:"ml-auto flex-center-y",children:[(0,i.jsx)("span",{className:"flex ml-auto ",children:n?[void 0,void 0].map((e,l)=>(0,i.jsx)(E.A,{width:50,height:50,borderRadius:100},l)):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsx)(et.$,{className:g()("grid"===a?"pointer-events-none !text-font":"!text-muted hover:!text-font"),color:"list"===a?ed.n.transparent:ed.n.sec,iconBefore:(0,i.jsx)(eu,{}),onClick:()=>r("grid"),"aria-label":h[P.o.lister.viewMode.grid.ariaLabel],"data-trigger-tile-view":!0})}),(0,i.jsx)(et.$,{className:g()("list"===a?"pointer-events-none !text-font":"!text-muted hover:!text-font"),color:"grid"===a?ed.n.transparent:ed.n.sec,iconBefore:(0,i.jsx)(em,{}),onClick:()=>r("list"),"aria-label":h[P.o.lister.viewMode.list.ariaLabel],"data-trigger-list-view":!0})]})}),(null==d?void 0:d.length)>0&&(0,i.jsx)("div",{className:"hidden b3:block ml-lg","data-lister-sort":!0,children:(0,i.jsx)(el,{fetching:n,sorting:c,sortKeys:null!=d?d:[],path:u})})]})]})})};var ef=t(60395);let eb=e=>{let{searchTerm:l,fetching:t,className:n}=e,{t:r}=(0,F.B)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ef.H1,{className:g()(n,"!mb-0"),children:t?(0,i.jsx)(E.A,{width:300}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"block b4:inline-block text-muted font-normal text-base b4:text-h1",children:r[P.o.lister.search.title.text]})," ",l]})})})},ej=e=>{let{title:l,fetching:t,className:n}=e;return(0,i.jsx)(ef.H1,{className:g()(n,"!mb-0"),children:t?(0,i.jsx)(E.A,{width:250}):(0,i.jsx)("strong",{children:l})})},ey=e=>{let{title:l,className:t,fetching:n,isSearchPage:r}=e;return(0,i.jsx)("div",{className:t,children:r?(0,i.jsx)(eb,{searchTerm:l,fetching:n,"data-lister-title":!0}):(0,i.jsx)(ej,{title:l,fetching:n,"data-lister-title":!0})})};var ew=t(86541),eC=t(89102),ek=t(53252);let eN=e=>{var l;let{products:t,fetching:n,locale:r,onQuantityChange:a,onFavouriteClick:s,onProductClick:o,view:c="grid"}=e,{t:d}=(0,F.B)(),u="grid"===c?eC.M.Tile:eC.M.Row,m=((e,l)=>{if("grid"!==e)return 1;let t={b5:ek.breakpoints.b5,b8:ek.breakpoints.b8},n={b5:{min:t.b5,max:t.b8},b8:{min:t.b5,max:void 0}},r={b5:3,b8:4};for(let e in t){var i;if(l>=n[e].min&&(!n[e].max||l<(null!=(i=n[e].max)?i:0)))return r[e]}return 2})(c,null==(l=window)?void 0:l.innerWidth),h=t?((e,l)=>e%l==0?0:l-e%l)(t.length,m):0;return n||t&&0!==t.length?(0,i.jsx)("ul",{className:g()("grid gap-1","grid"===c?"grid-cols-2 b3:grid-cols-2 b6:grid-cols-3 b8:grid-cols-4":"grid-cols-1"),children:n?[...Array(9)].map((e,l)=>(0,i.jsx)("li",{children:(0,i.jsx)(eC.Y,{product:e,fetching:!0,view:u})},l)):(0,i.jsxs)(i.Fragment,{children:[null==t?void 0:t.map((e,l)=>(0,i.jsx)("li",{"data-productlist-item":!0,children:(0,i.jsx)(G.t,{retry:!0,children:(0,i.jsx)(eC.Y,{className:"h-full",product:e,locale:r,onQuantityChange:t=>{a(t,e,l)},onFavouriteClick:()=>s&&s(e,l),view:u,fetching:n,onClick:()=>o&&o(e,l)})})},e.id+"-"+l.toString())),[...Array(h)].map((e,l)=>(0,i.jsx)("li",{className:"gap-0 bg-color01"}," empty-".concat(l)))]})}):(0,i.jsx)("div",{className:"h-full p-lg flex-center-x bg-color01",children:d[P.o.lister.empty]})};var eP=t(61893),eF=t(76525),eI=t(4938),eA=t(47956),eL=t(200),eT=t(96907),eS=t.n(eT),e_=t(54117),eR=t(12845),eE=t(53741),eM=t(90559),eB=t(6560),eD=t(38912);let eV=(0,s.forwardRef)((e,l)=>(0,i.jsx)("div",{className:"relative -top-[12rem] b4:-top-[18rem]",ref:l}));eV.displayName="ScrollIntoViewOffset";let eJ=eS()(e=>e(),1e3),eU=e=>{var l,t,a;let{routingParameters:c,path:d,title:h,productLister:x,referer:f,fetching:y,hideCategory:w,hideBreadCrumbs:C,withVisual:k,fetchingCategory:N,className:I,breadcrumbs:A,subCategories:L}=e,T=(0,eL.t)(),{loggedInStatus:S}=(0,s.useContext)(eR.C),{locale:_}=(0,e_.useRouter)(),{t:R}=(0,F.B)(),E=(0,s.useRef)(null),M=null==x?void 0:x.items,B=null==M?void 0:M.map(e=>e.sku),D=f===b.td.Search,V=null==x?void 0:x.pagination,[J,U]=(0,s.use
1State)(!1),[H,$]=(0,s.useState)(!1),[K,q]=(0,s.useState)({open:!1,sku:void 0}),[O,W]=(0,s.useState)("grid");(0,s.useEffect)(()=>{let e=localStorage.getItem("lister_view");e?W(e):W("grid")},[]);let{data:X,loading:Q}=(0,u.IT)(eD.C,{variables:{skus:B},fetchPolicy:"cache-and-network",ssr:!1,skip:!B||(null==B?void 0:B.length)===0}),{data:z}=(0,eM.he)(void 0,"cache-and-network"),[ee]=(0,m.n)(eE.B5),el=(0,s.useRef)(z),[et]=(0,eE.od)(void 0,!1),en=async(e,l,t)=>{var n,r,i,a,s,o;let c=l.sku,d=null==el||null==(i=el.current)||null==(r=i.customCart)||null==(n=r.items)?void 0:n.find(e=>e.sku===c),u=null!=(a=null==d?void 0:d.qty)?a:0,m={products:[{itemId:null==d?void 0:d.itemId,sku:c,qty:e}],locale:_},h=0;if(u>0?await ee({variables:{input:m}}).then(async e=>{var l,t;let{data:n}=e;await eJ(T);let r=null!=(t=null==n||null==(l=n.updateCartItem)?void 0:l.qty)?t:0;r&&(h=r)}):await et({variables:{input:m}}).then(async e=>{var l,t,n,r;let{data:i}=e;await eJ(T);let a=null!=(r=null==i||null==(n=i.addProductsToCart)||null==(t=n.items)||null==(l=t.find(e=>e.sku===c))?void 0:l.qty)?r:0;a&&(h=a)}),h>=0){let e=h-u,n=e>0?b.Je.AddToCart:b.Je.RemoveFromCart;(e>0||e<0)&&((0,eI.C)({type:n,orderlistId:(0,eF.u)(null==el||null==(o=el.current)||null==(s=o.customCart)?void 0:s.customAttributes,"OrderList_ID"),product:l,qty:e>0?e:-e,location:b.td.Category}),D&&l&&(0,eP.ve)({name:l.name,sku:l.sku},b.Je.AddToCart,t))}},er=async(e,l)=>{let t=e.sku;S!==o.fM.isAuth?$(!0):q({open:!0,sku:t}),D&&(0,eP.ve)({name:e.name,sku:t},b.Je.AddToFavouriteList,l)},{data:ei}=(0,u.IT)(eB.in,{variables:{skus:B},fetchPolicy:"cache-and-network",ssr:!1,skip:S!==o.fM.isAuth||!B||(null==B?void 0:B.length)===0}),ea=()=>{if((null==c?void 0:c.filters)||(null==c?void 0:c.page)){var e;null==E||null==(e=E.current)||e.scrollIntoView({behavior:"smooth",block:"start"})}};return e_.Router.events.on("routeChangeComplete",()=>{ea()}),M=(0,eA.ec)(M,null==z||null==(l=z.customCart)?void 0:l.items,null==ei?void 0:ei.onFavouriteLists,null==X?void 0:X.getProductPrices),(0,s.useEffect)(()=>{M&&M.length>0&&j.y.setTag({operationData:{products:null==M?void 0:M.map(e=>{var l,t;return(0,r._)((0,n._)({},e),{productPrice:(null==X?void 0:X.getProductPrices)?null==X||null==(t=X.getProductPrices)||null==(l=t.find(l=>l.sku===e.sku))?void 0:l.productPrice:e.productPrice})}),origin:f,breadcrumbs:A},analyticsInput:{event:b.Je.ProductImpression,operationName:D?"SearchPage":"CategoryPage"}})},[null==x?void 0:x.items,null==X?void 0:X.getProductPrices]),(0,s.useEffect)(()=>{el.current=z},[z]),(0,i.jsxs)("div",{className:g()("w-full min-h-[20vh] mb-xl",I),"data-lister":!0,children:[(0,i.jsx)("div",{className:"h-xl -mt-xl bg-color01 b4:hidden"}),(0,i.jsx)(eV,{ref:E}),!k&&!C&&(0,i.jsx)(ec,{className:"py-md b4:py-0 b4:my-md bg-color01 b4:bg-transparent",breadcrumbs:A,search:D,fetching:N}),H&&(0,i.jsx)(v.K,{onClose:()=>$(!1)}),K.open&&(0,i.jsx)(p.e,{showFlyout:K.open,setShowFlyout:e=>q({open:e,sku:void 0}),skus:(null==K?void 0:K.sku)?[null==K?void 0:K.sku]:[],origin:b.td.Category}),h&&!k&&(0,i.jsx)("div",{className:"container pt bg-color01 b4:bg-transparent",children:(0,i.jsx)(ey,{className:"b4:mb-lg",isSearchPage:D,productLister:x,title:h,fetching:y||N})}),(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)("div",{className:"b4:hidden",children:(0,i.jsx)(es,{showFlyout:J,setShowFlyout:U,routingParameters:c,productLister:x,path:d,subCategories:L,hideCategory:w,title:h,handleRouteChange:ea})}),(0,i.jsx)("div",{className:"b4:rounded-large b4:overflow-hidden",children:!D||y||M&&(null==M?void 0:M.length)!==0?(0,i.jsxs)("div",{className:"gap-1 b4:grid grid-cols-24",children:[(0,i.jsx)("div",{className:"b4:col-span-10 b5:col-span-8 b6:col-span-7 bg-color01",children:(0,i.jsx)("div",{className:"hidden b4:block p-xl py-lg+ h-full bg-color01",children:(0,i.jsx)(Y,{hideCategory:w,subCategories:L,fetchingCategory:N,fetching:y,routingParameters:c})})}),(0,i.jsx)("div",{className:"b4:col-span-14 b5:col-span-16 b6:col-span-17",children:(0,i.jsxs)("div",{className:"relative h-full -mx-lg b4:mr-0 b4:mx-0 ","data-productlist-wrap":!0,children:[(0,i.jsx)("div",{className:"",children:(0,i.jsx)(ex,{fetching:y,items:null==V?void 0:V.totalItems,path:d,sortKeys:null!=(a=null==x?void 0:x.sortKeys)?a:[],sorting:null==c?void 0:c.sorting,setView:e=>{localStorage.setItem("lister_view",e),W(e)},view:O,routingParameters:c,setShowFiltersFlyout:U})}),(0,i.jsxs)(G.t,{children:[(0,i.jsx)(eN,{products:M,fetching:y||Q,locale:Z.fX.CURRENT_LOCALE,onQuantityChange:(e,l,t)=>{en(e,l,t)},onFavouriteClick:(e,l)=>{er(e,l)},view:O,onProductClick:(e,l)=>{D&&(0,eP.ve)({name:e.name,sku:e.sku},b.Je.ProductClick,l)}}),x&&(null==(t=x.items)?void 0:t.length)>0&&V&&(0,i.jsx)(G.t,{children:(0,i.jsx)(ew.l,{className:"flex justify-center mt-1 py-lg+ px b4:px-0 bg-color01",pagination:V,path:d,fetching:y&&!x})})]})]})})]}):(0,i.jsx)("div",{className:"flex-center-x min-h-[30rem] b4:min-h-[50rem] h-1/2  -mx-lg b4:mx-auto px-lg b4:px-0 pt-3xl bg-color01",children:(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("h2",{className:"text-xl b4:text-xxl mb-sm",children:R[P.o.lister.search.noResults.title]}),(0,i.jsx)("div",{className:"text-lg",children:R[P.o.lister.search.noResults.text]})]})})})]})]})};var eH=t(25862),e$=t(34527);let eK=e=>{var l;let{routingParameters:t,path:a,dataFlags:o,imageViews:c}=e,u=decodeURIComponent(null==t?void 0:t.searchTerm),m=(0,r._)((0,n._)({},t),{SearchTerm:u}),h=(0,eH.wA)(),g=(0,e_.useRouter)(),[p,{data:v,loading:x,previousData:f}]=(0,d._)(W.eR),y=null!=(l=null==v?void 0:v.customSearchPage)?l:null==f?void 0:f.customSearchPage;return(0,s.useEffect)(()=>{(null==v?void 0:v.customSearchPage)&&j.y.setTag({analyticsInput:{event:b.Je.SearchAction,data:{searchQuery:u}},operationData:v})},[y]),(0,s.useEffect)(()=>{p({variables:{input:{searchTerm:null==m?void 0:m.SearchTerm,filterUri:null==m?void 0:m.filters,fixedFilterUri:null==m?void 0:m.fixedFilters,sorting:null==m?void 0:m.sorting,pagination:{page:Number(null==m?void 0:m.page),perPage:Number(null==m?void 0:m.amount)},dataFlags:o,imageViews:c,locale:g.locale,cartSkus:[]}},ssr:!1,fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",onCompleted:e=>{var l,n,r,i;h((0,e$.XS)({searchTerm:null==t?void 0:t.searchTerm,resultsCount:null!=(i=null==e||null==(r=e.customSearchPage)||null==(n=r.productLister)||null==(l=n.pagination)?void 0:l.totalItems)?i:0,filterUri:null==m?void 0:m.filters,fixedFilterUri:null==m?void 0:m.fixedFilters}))}})},[t]),(0,i.jsx)(eU,{referer:b.td.Search,path:null!=a?a:"",fetching:x||!y,productLister:null==y?void 0:y.productLister,title:u,routingParameters:t,dataFlags:o,imageViews:c})};var eq=t(6177),eO=t(19481),eG=t.n(eO);let eZ=e=>{let{className:l,title:t,description:n,breadcrumbs:r,image:a}=e;return(0,i.jsxs)("header",{className:g()(l,"b3:container w-full relative"),"data-category-header":!0,children:[(null==a?void 0:a.src)&&(0,i.jsx)("div",{className:"relative w-full h-[20rem] rounded-b-large overflow-hidden b3:hidden",children:(0,i.jsx)(eG(),{width:768,height:200,src:a.src,alt:a.alt||"",sizes:"w-full",priority:!0,className:"absolute top-0 left-0 object-cover w-full h-full"})}),(0,i.jsxs)("div",{className:g()("flex flex-col b3:grid grid-cols-5 overflow-hidden -mt-[3rem] b3:mt-0",{"bg-brown-100 b3:bg
1-color01 rounded-b-large b3:rounded-t-large":(null==a?void 0:a.src)||n}),children:[(0,i.jsxs)("div",{className:g()("b4:col-span-3 flex flex-col",{"b3:px-xl px-lg pb-lg b3:pb-xl pt-[3.2rem]":(null==a?void 0:a.src)||n,"gap-8":!(null==a?void 0:a.src)&&!n,"col-span-3":null==a?void 0:a.src,"col-span-5":!(null==a?void 0:a.src)}),children:[(0,i.jsx)(ec,{className:"py-md b4:py-0 b4:my-md b4:bg-transparent -mx-lg b4:mx-0",breadcrumbs:r,search:!1,fetching:!r}),(t||n)&&(0,i.jsxs)("div",{className:"flex flex-col gap-4 b3:gap-md",children:[t&&(0,i.jsx)("h2",{className:"font-medium leading-heading text-xxl b2:text-4xl text-theme02 font-body",children:t}),n&&(0,i.jsx)(eq.q,{className:"pr-10 line-clamp-5",children:n})]})]}),(0,i.jsx)("div",{className:"relative hidden w-full h-full col-span-2 b3:block",children:(null==a?void 0:a.src)&&(0,i.jsx)(eG(),{width:690,height:370,src:a.src,alt:a.alt||"",sizes:"(max-width: ".concat(ek.breakpoints.b4,"px) 40vw, (max-width: ").concat(ek.breakpoints.b5,"px) 39.4vw, (max-width: ").concat(ek.breakpoints.b7,"px) 55vw, 69.1rem"),priority:!0,className:"absolute top-0 left-0 object-cover w-full h-full"})})]})]})};var eW=t(11266),eX=t(39214);let eQ=e=>{let{component:l,breadcrumbs:t}=e,r=(0,eX.Z)(null==l?void 0:l.configurationParameters);if(!r)return null;let a={title:r.Title,description:r.Description,image:{src:r.Image,alt:r.ImageAltText},className:g()(ez(r.MarginPicker),(r.Description||r.Image)&&"b3:mt-lg",r.Image&&"-mt-[6rem] b3:mt-0")};return(0,i.jsx)(eZ,(0,n._)({breadcrumbs:t},a))},ez=e=>e===o.oJ.default?"mb-lg":e===o.oJ.none?"mb-1":(0,eW.H)(e);var eY=t(57672);function e0(){let e=(0,I._)(["\n	query Category($input: ICategoryInput!) {\n		category(input: $input) {\n			id\n			itemId\n			name\n			images {\n				img_b0\n			}\n			children {\n				id\n				itemId\n				name\n				images {\n					img_b0\n				}\n				description\n				breadcrumbs {\n					name\n					url\n				}\n				url\n				customAttributes {\n					...FullCustomAttributes\n				}\n			}\n			description\n			longDescription\n			breadcrumbs {\n				name\n				url\n			}\n			url\n			seo {\n				title\n				description\n				robots\n			}\n			customAttributes {\n				...FullCustomAttributes\n			}\n		}\n	}\n\n	","\n"]);return e0=function(){return e},e}let e1=(0,A.J1)(e0(),eY.b);var e2=t(89317);let e4=e=>{var l,t,n,r,s,o,c,d,u;let m,h,{routingParameters:g,path:p,dataFlags:v,imageViews:x,component:f,components:j}=e,{t:y}=(0,F.B)(),w=null==g?void 0:g.CategoryPath;g&&(g.CategoryID=w);let{data:C,loading:k}=(0,T.I)(e2.gU,{variables:{input:{locale:null==(l=Z.fX.CURRENT_LOCALE)?void 0:l.locale,id:null==g?void 0:g.CategoryID,filterUri:null==g?void 0:g.filters,fixedFilterUri:null==g?void 0:g.fixedFilters,sorting:null==g?void 0:g.sorting,pagination:{page:Number(null==g?void 0:g.page),perPage:Number(null==g?void 0:g.amount)},dataFlags:v,imageViews:x}},ssr:!1,fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"}),{data:N,loading:I}=(m=null==(t=Z.fX.CURRENT_LOCALE)?void 0:t.locale,(0,T.I)(e1,{variables:{input:{locale:m,itemId:w,rootCategoryItemId:void 0}},onCompleted:void 0,onError:void 0,ssr:!1,fetchPolicy:"cache-and-network"}));return f&&(h=null==(j=(0,a.HZ)(null==f?void 0:f.components,"type"))||null==(d=j["nienhuis_sf_content:slot.marketing.base.pagelet2-Slot"])?void 0:d.components.find(e=>"nienhuis_sf_content:component.category.visual.pagelet2-Component"===e.type)),(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsx)(eQ,{component:h,breadcrumbs:null==N||null==(n=N.category)?void 0:n.breadcrumbs,title:null!=(u=null==N||null==(r=N.category)?void 0:r.name)?u:""}),(0,i.jsx)(eU,{referer:b.td.Category,path:null!=p?p:"",title:(e=>{var l,t,n;return(null!=(t=null==e||null==(l=e.id)?void 0:l.indexOf("HCOCatalogNienhuis"))?t:0)>0?y[P.o.common.breadcrumbs.assortment]:null!=(n=null==e?void 0:e.name)?n:""})(null==N?void 0:N.category),productLister:null==C||null==(s=C.customCategoryPage)?void 0:s.productLister,routingParameters:g,fetching:k,fetchingCategory:I,dataFlags:v,imageViews:x,withVisual:!!h,breadcrumbs:null==N||null==(o=N.category)?void 0:o.breadcrumbs,subCategories:null==N||null==(c=N.category)?void 0:c.children})]})},e5=e=>{let{routingParameters:l,className:t,component:n,path:r}=e;if(!l||!(null==l?void 0:l.CategoryID)&&!(null==l?void 0:l.searchTerm))return null;let a=[o.h$.Filters,o.h$.CustomerSpecificPrices,o.h$.NoCategoryLinks],s=[c.H.Lister];return(null==l?void 0:l.searchTerm)?(0,i.jsx)(eK,{className:t,rout
1ingParameters:l,component:n,path:r,dataFlags:a,imageViews:s}):(null==l?void 0:l.CategoryID)?(0,i.jsx)(e4,{className:t,routingParameters:l,component:n,path:r,dataFlags:a,imageViews:s}):null};var e3=t(48478),e7=t(77631),e6=t(35473),e8=t(61100),e9=t(66915);let le=(0,r._)((0,n._)({},e8.F,e9.W),{"nienhuis_sf_content:component.common.sparqueRecommendationsCategory.pagelet2-Component":e=>{var l,t,a,s,o;let{routingParameters:d,component:u,index:m}=e,h=(0,eX.Z)(null==u?void 0:u.configurationParameters),p=null==d||null==(a=d.CategoryPath)||null==(t=a.split("/"))||null==(l=t.slice(-1))?void 0:l[0],v=(e=>{let l=[];return e.forEach(e=>{let{key:t,value:n}=e;t&&n&&l.push({key:t,value:n})}),l})([{key:h.AttributeKey1,value:h.AttributeValue1},{key:h.AttributeKey2,value:h.AttributeValue2}]),{data:x,loading:f}=(0,T.I)(e6.g,{skip:!p||!(null==h?void 0:h.StrategyPicker),variables:{input:{endpoint:null==h?void 0:h.StrategyPicker,imageViews:"true"===h.Compact?[c.H.FeaturedCompact]:[c.H.Featured],pagination:{page:1,perPage:7},categoryId:p,properties:v,cartSkus:[]}}});return(0,i.jsx)("div",{className:g()("w-full",0===m&&(0,eW.t)()),children:(0,i.jsx)(e7.p,(0,r._)((0,n._)({products:null!=(o=null==x||null==(s=x.getRecommendedProducts)?void 0:s.products)?o:[]},h),{index:null!=m?m:0,fetching:f}))})},FeaturedProducts:e3.FeaturedProductsContainer,ProductListerPage:e5,SearchPage:e5,"nienhuis_sf_content:component.shopping.categoryLanding.pagelet2-Component":e=>{let{routingParameters:l,component:t}=e,{resolveComponents:r}=(0,s.useContext)(a.XD),o=null==t?void 0:t.components.find(e=>"Category landing products"===e.name),c=null==t?void 0:t.components.find(e=>"Category landing content"===e.name);return"products"===(null==l?void 0:l.view)&&o?(0,i.jsx)(i.Fragment,{children:r({components:o.components,routingParameters:l})}):c?(0,i.jsx)(i.Fragment,{children:r({components:c.components,routingParameters:l})}):(0,i.jsx)(e5,(0,n._)({},e))},"nienhuis_sf_content:component.category.visual.pagelet2-Component":eQ});var ll=t(51302),lt=t(87361);let ln=(0,ll.A)("",le);(0,lt.O)("a",le),(0,lt.O)("search",le)},48478:(e,l,t)=>{t.r(l),t.d(l,{FeaturedProductsContainer:()=>p});var n=t(66352),r=t(46001),i=t.n(r),a=t(11266),s=t(89267),o=t(348),c=t(90046),d=t(21688),u=t(39214),m=t(56891);t(95132);var h=t(89317),g=t(9102);let p=e=>{var l,t;let{component:r,index:p}=e,v=(0,u.Z)(null==r?void 0:r.configurationParameters),{data:x,loading:f}=(0,h.D2)(null!=(t=v.Products)?t:[],null==(l=m.fX.CURRENT_LOCALE)?void 0:l.locale,[o.h$.CustomerSpecificPrices],[c.H.Featured]);return f||(null==x?void 0:x.products)&&0!==x.products.length?(0,n.jsx)(g.L,{title:v.Title,description:v.Description,className:i()((0,a.H)(v.MarginPicker),0===p&&(0,a.t)()),items:null==x?void 0:x.products,fetching:f,sendProductImpressions:()=>{(null==x?void 0:x.products)&&x.products.length>0&&d.y.setTag({analyticsInput:{event:s.Je.ProductImpression,operationName:"Featured"},operationData:{products:x.products}})},locale:m.fX.CURRENT_LOCALE}):null}},61893:(e,l,t)=>{t.d(l,{oG:()=>i,ve:()=>a});var n=t(89267),r=t(21688);let i=e=>{if(e.items.length<40)return void r.y.setTag({analyticsInput:{event:n.Je.Purchase,data:{order:e}}});for(let l=0;l<e.items.length;l+=40){let t=e.items.slice(l,l+40);r.y.setTag({analyticsInput:{event:n.Je.SplittedPurchase,data:{order:e,items:t}}})}},a=(e,l,t)=>{r.y.setTag({analyticsInput:{event:n.Je.SearchResultsInteraction,data:{product:{name:null==e?void 0:e.name,sku:null==e?void 0:e.sku},clickedIndex:t,type:l}}})}},77631:(e,l,t)=>{t.d(l,{p:()=>x});var n=t(82536),r=t(93629),i=t(17459),a=t(66352),s=t(46001),o=t.n(s),c=t(11266),d=t(65105),u=t(348),m=t(12845),h=t(56891),g=t(38912),p=t(95132),v=t(9102);let x=e=>{var l,{products:t,index:s,Description:x,Title:f,MarginPicker:b,fetching:j}=e,y=(0,i._)(e,["products","index","Description","Title","MarginPicker","fetching"]);let{loggedInStatus:w}=(0,p.useContext)(m.C),{data:C}=(0,d.I)(g.C,{variables:{skus:null==t?void 0:t.map(e=>e.sku)},fetchPolicy:"cache-and-network",ssr:!1,skip:w!==u.fM.isAuth||!t||(null==t?void 0:t.length)===0}),k=null!=(l=null==t?void 0:t.map(e=>{var l;let t=null==C||null==(l=C.getProductPrices)?void 0:l.find(l=>l.sku===e.sku);return e=(0,r._)((0,n._)({},e),{online:w!==u.fM.isAuth||!!(null==t?void 0:t.productPrice),orderable:!!(null==t?void 0:t.productPrice)}
1),(null==t?void 0:t.productPrice)&&(e.productPrice=t.productPrice),e}))?l:[];return j||(null==t?void 0:t.length)?(0,a.jsx)("div",(0,r._)((0,n._)({className:o()("w-full",0===s&&(0,c.t)())},y),{children:(0,a.jsx)(v.L,{title:f,description:x,className:(0,c.H)(b),items:k,fetching:(null==t?void 0:t.length)===0&&j,index:null!=s?s:0,locale:h.fX.CURRENT_LOCALE})})):null}},86541:(e,l,t)=>{t.d(l,{l:()=>f});var n=t(66352),r=t(46001),i=t.n(r),a=t(14208),s=t(73497),o=t(82536),c=t(93629),d=t(17459),u=t(82254),m=t(90570),h=t(348),g=t(34345);let p=e=>{var{className:l,page:t,path:r,type:a,disabled:s,children:p,rel:v,fetching:x}=e,f=(0,d._)(e,["className","page","path","type","disabled","children","rel","fetching"]);return(0,n.jsx)("li",{className:i()(l,"relative mr-2 last:mr-0"),"data-pagination-item":!0,children:x?(0,n.jsx)(g.A,{className:"!w-[3rem] !h-[3rem] b1:!w-[3.6rem] b1:!h-[3.6rem] "}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("button",(0,c._)((0,o._)({onClick:()=>{if(!s&&a!==h.n4.current){var e;u.f.push((0,m.xh)("page",null!=(e=null==t?void 0:t.toString())?e:"",r))}},className:i()("relative flex-center w-xl h-xl font-medium transition-all rounded-full border-brown-300 z-10",a===h.n4.current&&"border",s?"bg-transparent":"transition-all duration-150 hover:bg-red-50",a===h.n4.current?"text-muted":"text-theme01"),rel:v,itemType:a,disabled:s||a===h.n4.current},a===h.n4.current?{"aria-current":"true"}:{},f),{children:p}))})})};var v=t(64099),x=t(97224);let f=e=>{let{pagination:l,range:t=3,path:r,className:o,fetching:c}=e,{t:d}=(0,x.B)(),u=Math.floor((t=void 0!==t?1|Math.ceil(t):3)/2),{currentPage:m,totalPages:g,prevPage:f,nextPage:b}=l,j=(()=>{let e=[];for(let l=-u;l<=u;l++){let t=m+l;t>0&&t<=g?e.push(t):0===g&&1===t&&e.push(t)}return e})(),y=m-u>1,w=y&&2!==j[0],C=m+u<g,k=C&&j[j.length-1]!==g-1;return(0,n.jsx)("nav",{className:o,role:"navigation","aria-label":d[v.o.lister.paging.ariaLabel],"data-pagination":!0,children:(0,n.jsx)("ul",{className:"flex-center-y relative",children:c?Array.from({length:5}).map((e,l)=>(0,n.jsx)(p,{fetching:!0},l)):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{className:"hidden b2:block",page:f,path:r,rel:h.td.previous,type:h.n4.previous,disabled:m<=1,"aria-label":d[v.o.lister.paging.previous.ariaLabel],children:(0,n.jsx)(a.A,{className:i()("w-[1.8rem] h-[1.8rem]",m<=1&&"text-muted")})}),y&&(0,n.jsx)(p,{page:1,path:r,disabled:1===m,type:1===m?h.n4.current:h.n4.default,children:"1"}),w&&(0,n.jsx)("li",{className:"mr-2 text-muted",children:"..."}),j.map(e=>(0,n.jsx)(p,{page:e,path:r,disabled:m===e,type:m===e?h.n4.current:h.n4.default,children:e},e)),k&&(0,n.jsx)("li",{className:"mr-2 text-muted",children:"..."}),C&&(0,n.jsx)(p,{page:g,path:r,disabled:m===g,type:m===g?h.n4.current:h.n4.default,children:g}),(0,n.jsx)(p,{className:"hidden b2:block",page:b,path:r,type:h.n4.next,rel:h.td.next,disabled:m>=g,"aria-label":d[v.o.lister.paging.next.ariaLabel],children:(0,n.jsx)(s.f,{className:i()("w-[1.8rem] h-[1.8rem]",m>=g&&"text-muted")})})]})})})}},89317:(e,l,t)=>{t.d(l,{D2:()=>h,gU:()=>p});var n=t(12584),r=t(32306),i=t(65105),a=t(57672),s=t(72650),o=t(91008),c=t(99295);function d(){let e=(0,n._)(["\n	query CategoryPageSeo($input: ICategoryPageInput!) {\n		categoryPageSeo(input: $input) {\n			title\n			description\n			robots\n		}\n	}\n"]);return d=function(){return e},e}function u(){let e=(0,n._)(["\n	query Products($input: IProductsInput!) {\n		products(input: $input) {\n			...BaseProductFragment\n			breadcrumbs {\n				name\n				url\n			}\n		}\n	}\n\n	","\n"]);return u=function(){return e},e}function m(){let e=(0,n._)(["\n	query CategoryPage($input: ICustomCategoryPageInput!) {\n		customCategoryPage(input: $input) {\n			id\n			category {\n				id\n				name\n				description\n				longDescription\n				images {\n					...ImageFragment\n				}\n				url\n				seo {\n					title\n					description\n					robots\n				}\n				breadcrumbs {\n					name\n					url\n				}\n				children {\n					id\n					name\n					images {\n						...ImageFragment\n					}\n					description\n					url\n					breadcrumbs {\n						name\n						url\n					}\n				}\n				customAttributes {\n					...FullCustomAttributes\n				}\n			}\n			productLister {\n				id\n				sortKeys {\n					key\n					name\n				}\n				items {\n					...BaseProductFragment\n				}\n				pagination {\n					...PaginationFragment\n				}\n				filters {\n					...FiltersFragment\n				}\n				subCategories {\n					url\n					name\n				}\n				customAttributes {\n					...FullCustomAttributes\n				}\n			}\n			customAttributes {\n				...FullCustomAttributes\n			}\n		}\n	}\n	","\n	","\n	","\n	","\n"]);return m=function(){return e},e}let h=(e,l,t,n)=>(0,i.I)(g,{variables:{input:{ids:e,locale:l,dataFlags:t,imageViews:n}},fetchPolicy:"cache-and-network",ssr:!1,skip:0===e.length});(0,r.J1)(d());let g=(0,r.J1)(u(),o.T),p=(0,r.J1)(m(),o.T,c.F,a.b,s.c)}}]);

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.