1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d9dd5945-07d4-5bf5-ad06-1a12223c6010")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[368],{62601:(e,l,r)=>{"use strict";r.r(l),r.d(l,{ListingPage:()=>m,__N_SSP:()=>c,default:()=>p});var t=r(6029),n=r(21213),a=r(55729),s=r(50212),i=r(96899),u=r(75491),o=r(81278),d=r(92766),c=!0;let m=e=>{var l;let{categoryQuery:r,parentCategoryQuery:c}=e,m=(0,o.useRouter)(),{data:p=null}=u.r.getCategoryPageAtPath.useQuery(r),{data:x=null}=u.r.getCategoryPageAtPath.useQuery(c),h=(0,i.PB)(i.Id.pageHero,x),g=(0,a.useMemo)(()=>{var e,l,r,t,n,a,s,i;return null!=(i=null==h||null==(s=h.properties)||null==(a=s.heroImages)||null==(n=a.items)||null==(t=n[0])||null==(r=t.content)||null==(l=r.properties)||null==(e=l.asset)?void 0:e.fullAssetUri)?i:"/hero/base.jpg"},[h]),v=(0,a.useMemo)(()=>{var e,l,r,t,n;return(null==h||null==(r=h.properties)||null==(l=r.heroSubtext)||null==(e=l.markup)?void 0:e.length)?h.properties.heroSubtext.markup:null!=(n=null==x||null==(t=x.properties)?void 0:t.metaDescription)?n:""},[h,x]),b=(0,i._5)(i.Id.richText,x),f=(0,a.useMemo)(()=>{var e,l,r;return(null==b||null==(r=b[0])||null==(l=r.properties)||null==(e=l.header)?void 0:e.length)?b[0].properties.header:""},[b]),N=(0,a.useMemo)(()=>{var e,l,r,t;return(null==b||null==(t=b[0])||null==(r=t.properties)||null==(l=r.content)||null==(e=l.markup)?void 0:e.length)?b[0].properties.content.markup:""},[b]),j=(0,a.useMemo)(()=>{var e,l,r,t;return(null==b||null==(r=b[1])||null==(l=r.properties)||null==(e=l.header)?void 0:e.length)?b[1].properties.header:(null==p||null==(t=p.name)?void 0:t.length)?"Shop ".concat(p.name):""},[b,p]),y=(0,a.useMemo)(()=>{var e,l,r,t;return(null==b||null==(t=b[1])||null==(r=t.properties)||null==(l=r.content)||null==(e=l.markup)?void 0:e.length)?b[1].properties.content.markup:""},[b]),{data:w=[]}=u.r.getCategoryTree.useQuery({isPreview:null!=(l=null==r?void 0:r.isPreview)?l:m.isPreview,parentPath:"/listing/"}),k=(0,a.useMemo)(()=>{var e,l;return null!=(l=null==(e=function e(l,r){for(let a of l){var t,n;if(a.href===r)return a;
3if(null==a||null==(t=a.subCategories)?void 0:t.length){let l=e(a.subCategories,r);if(null==l||null==(n=l.href)?void 0:n.length)return l}}}(w,c.urlSlug))?void 0:e.subCategories)?l:[]},[w]),[_,P]=(0,a.useState)(()=>{var e,l;return null!=(l=null==p?void 0:p.id)?l:null==k||null==(e=k[0])?void 0:e.id}),S=(0,a.useMemo)(()=>{var e,l,r,t,n;return P(null!=(t=null==p?void 0:p.id)?t:null==k||null==(e=k[0])?void 0:e.id),(null==h||null==(r=h.properties)||null==(l=r.heroText)?void 0:l.length)?h.properties.heroText:null!=(n=null==x?void 0:x.name)?n:""},[h,x]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.xps,{pageResponse:x}),(0,t.jsx)("section",{className:"bg-top-center -mt-40 bg-gray-400 bg-cover bg-no-repeat",style:{backgroundImage:"url(".concat(g,")")},children:(0,t.jsx)("div",{className:"xs:px-auto container mx-auto max-w-screen-xl px-4",children:(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)("div",{className:"mx-auto max-w-screen-xl pb-24 pt-48",children:(0,t.jsxs)("div",{className:"pl-0 text-center md:pl-8 md:text-left xl:pl-0",children:[(0,t.jsx)("h1",{className:"xs:text-headline font-neusaCond max-w-screen-sm text-5xl font-bold leading-none text-white",children:(0,t.jsx)(n.sDQ,{as:"span",className:"font-bold uppercase",markup:S})}),(0,t.jsx)(n.sDQ,{className:"ml-auto mr-auto mt-8 max-w-lg text-lg text-white md:ml-0",markup:v})]})})})})}),(0,t.jsx)("section",{className:"relative bg-white px-4 py-16",children:(0,t.jsxs)("div",{className:"relative mx-auto max-w-screen-xl",children:[(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("h2",{className:"font-neusaStd text-2xl font-medium uppercase leading-normal tracking-wide text-gray-900",children:f})}),(0,t.jsx)(n.sDQ,{markup:N})]})}),(0,t.jsx)("div",{className:"relative bg-gray-200 px-4 pb-24 pt-16",children:(0,t.jsxs)("div",{className:"relative mx-auto max-w-screen-xl",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"font-neusaStd text-2xl font-medium uppercase leading-normal tracking-wide text-gray-900",children:j}),(0,t.jsx)(n.sDQ,{className:"font-barlow text-normal leading-normal text-gray-800",markup:y})]}),(0,t.jsx)("div",{className:"border-b border-gray-300 pt-8",children:(0,t.jsx)("nav",{className:"flex w-full justify-center overflow-hidden",children:(0,t.jsx)("ul",{className:"scroll-bar flex overflow-scroll",children:null==k?void 0:k.map((e,l)=>{let r=_===e.id||!(null==_?void 0:_.length)&&0===l;return(0,t.jsx)("li",{className:(0,s.$)("font-neusaStd text-normal mx-2 inline-block flex-shrink-0 border-b-2 border-gray-300 border-opacity-0 py-1 font-medium text-gray-900 hover:border-opacity-75 hover:text-opacity-75 md:mx-6",{"border-red-600 border-opacity-100 text-red-600 focus:text-red-800":r}),children:(0,t.jsx)("button",{onClick:()=>P(e.id),className:"inline-block px-1 focus:outline-none",children:e.name})},e.id)})})})}),null==k?void 0:k.map((e,l)=>(0,t.jsx)(d.Ys,{category:e,className:"mt-8 gap-3",isSelected:_===e.id||!(null==_?void 0:_.length)&&0===l},e.id))]})}),(0,t.jsx)(d.Zq,{})]})};m.displayName="ListingPage";let p=m},92933:(e,l,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/listing/[[...listing_category]]",function(){return r(62601)}])}},e=>{e.O(0,[636,593,792],()=>e(e.s=92933)),_N_E=e.O()}]); 4//# debugId=d9dd5945-07d4-5bf5-ad06-1a12223c6010
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.