1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8957],{22498:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>h,default:()=>u});var r=a(37876),l=a(49915),s=a(96972),c=a(48230),i=a.n(c),m=a(14232),n=a(81946),d=a(73865);function o({product:e}){let t,a,{t:l}=(0,d.B)(),{addItem:s}=(0,n.v)(),[c,x]=(0,m.useState)(!1),h=e.options.some(e=>"Title"!==e.name),u=e.variants[0],g=!h&&u?.availableForSale,p=e.variants.find(e=>e.availableForSale)??u;return(0,r.jsxs)(i(),{href:`/merch/${e.handle}`,className:"flex flex-col rounded-lg border border-gray-200 overflow-hidden bg-white hover:shadow-md transition-shadow",children:[(0,r.jsx)("div",{className:"aspect-square bg-gray-50",children:e.image?.url&&(0,r.jsx)("img",{src:e.image.url,alt:e.image.altText||e.title,className:"h-full w-full object-cover object-center"})}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,r.jsx)("h3",{className:"text-sm font-medium text-gray-900",children:e.title}),(0,r.jsx)("p",{className:"mt-1 text-sm font-semibold text-gray-900",children:p?(t=p.price.amount,a=p.price.currencyCode,new Intl.NumberFormat("en-US",{style:"currency",currency:a||"USD"}).format(Number(t))):""}),g?(0,r.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),g&&(s(u.id,1,{title:e.title,variantTitle:u.title,price:u.price,image:u.image||e.image}),x(!0),setTimeout(()=>x(!1),1500))},className:"mt-4 w-full rounded-md bg-blue-800 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700",children:l(c?"merchAdded":"merchAddToCart")}):(0,r.jsx)("span",{className:"mt-4 block w-full rounded-md border border-gray-300 px-4 py-2 text-center text-sm font-medium text-gray-700",children:l(u?.availableForSale===!1?"merchOutOfStock":"merchViewDetails")})]})]})}var x=a(75458),h=!0;function u({products:e}){let{t}=(0,d.B)(),{products:a,isLoading:c,isError:i}=(0,x.x7)({fallbackData:e});return(0,r.jsxs)(s.A,{children:[(0,r.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8 pt-4",children:(0,r.jsx)(l.A,{pages:[{name:t("merchNavLabel"),href:"/merch",current:!0}]})}),(0,r.jsxs)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8 py-10",children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold tracking-tight text-gray-900",children:t("merchPageTitle")}),(0,r.jsx)("p",{className:"mt-2 text-base text-gray-500",children:t("merchPageSubtitle")})]}),i&&(0,r.jsx)("p",{className:"text-sm text-red-600",children:t("merchLoadError")}),!i&&c&&(0,r.jsx)("p",{className:"text-sm text-gray-500",children:t("merchLoading")}),!i&&!c&&0===a.length&&(0,r.jsx)("p",{className:"text-sm text-gray-500",children:t("merchEmpty")}),a.length>0&&(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(e=>(0,r.jsx)(o,{product:e},e.id))})]})]})}},74929:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/merch",function(){return a(22498)}])}},e=>{e.O(0,[6701,3927,2325,3990,8447,5392,5225,636,6593,8792],()=>e(e.s=74929)),_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.