1import{a as H}from"/build/_shared/chunk-YCOIUL6C.js";import{I as h,K as o,N as I,O as x,Q as W,S as G,j as F,l as j,u as B}from"/build/_shared/chunk-J7XA4L7L.js";import{m as E}from"/build/_shared/chunk-YQY2EA5P.js";import{$a as M,A as L,B as P,L as r,Za as U,ca as g,f as S,fa as C,ia as y,la as D,oa as A,ua as T}from"/build/_shared/chunk-XNV53SGE.js";import{e as w,h as d,l as k,n as c,s as _}from"/build/_shared/chunk-KXKD2UER.js";import{d as Q,g as V,h as e,i as u}from"/build/_shared/chunk-2ADOHOB6.js";u();u();var f=Q(V());function q({data:s}){let{isMobile:a}=A(),{key:b}=w(),{keyword:p,locale:v}=d(),{page:n}=T(),{localeLink:m}=M(),[l,O]=(0,f.useState)(s.results);(0,f.useEffect)(()=>{O(s.results)},[b]);let N=s;return e.createElement("main",null,e.createElement("div",{className:"mb-8 bg-gray-50 py-2 lg:py-8"},e.createElement("div",{className:"container-fluid"},e.createElement("div",{className:"space-y-2"},e.createElement("h1",{className:"text-2xl dlg:text-xl font-semibold"},N?.pageData?.h1||N?.pageData?.title),e.createElement("div",{className:"flex items-center space-x-6"},e.createElement("div",{className:"text-sm dlg:hidden",dangerouslySetInnerHTML:{__html:r("We found <b>%s</b> products available for you",s.total.toLocaleString())}})),s?.silo_breadcrumb&&e.createElement(G,{className:"mb-2",data:s?.silo_breadcrumb}))),e.createElement("div",{className:"container-fluid grid justify-between"},s?.shop_by_interests?.length>0&&e.createElement("div",{className:""},e.createElement("h2",{className:"mb-3 mt-4 text-xl font-semibold"},r("Shop by interest")),e.createElement("div",{className:"mb-1 flex flex-wrap"},s?.shop_by_interests?.map((t,i)=>e.createElement("div",{className:"text-base",key:i},e.createElement(c,{className:"mr-2 mb-2 inline-block bg-gray-100 px-3 py-2 transition-all hover:bg-black hover:text-white",to:m(g(h(t))),title:o(t)},e.createElement("span",{className:"whitespace-nowrap"},o(t))))))))),e.createElement("div",{className:"container-fluid my-8 mb-4"},e.createElement(I,{filters:s.filters,keyword:p??"",shop_by_interests:[],h2:"Shop what you love"})),e.createElement("div",{className:"container-fluid overflow-hidden"},e.createElement("div",{className:"mb-6 flex lg:mb-12"},!a&&e.createElement(W,{shop_by_interests:[],filters:s.filters}),e.createElement("div",{className:"flex-1"},s?.warn&&e.createElement(E,{className:"mb-4",type:"info"},s?.warn),a&&e.createElement("div",{className:"mb-4"},e.createElement("h2",{className:"text-xl dlg:text-xl font-semibold"},"Shop what you love")),e.createElement("div",{className:"grid grid-cols-2 gap-2 md:grid-cols-4 lg:gap-4"},l?.map((t,i)=>e.createElement(F,{product:t,currency:s.currency,breadcrumb:s.breadcrumb,position:i+1,more:!0,key:i})),e.createElement("div",{className:"col-span-full text-center flex justify-center mt-4"},e.createElement(H,{page:n?parseInt(n):1,total:s?.total}))))),e.createElement(j,{list:r("Recent View Products on Category Page")}),e.createElement("div",{className:"mb-4"}),s?.internal_links?.length>0&&e.createElement("div",{className:"mt-4 mb-4"},e.createElement("h2",{className:"mb-3 mt-4 text-xl font-semibold"},r("Customers Also Search")),e.createElement("div",{className:"mb-1 flex flex-wrap"},s?.internal_links?.map((t,i)=>e.createElement("div",{className:"text-base",key:i},e.createElement(c,{className:"mr-2 mb-2 inline-block bg-gray-100 px-3 py-2 transition-all hover:bg-black hover:text-white",to:m(t.path),title:o(t)},e.createElement("span",{className:"whitespace-nowrap"},o(t.anchor))))))),s?.parent_silo?.length>0&&e.createElement("div",null,e.createElement("h2",{className:"mb-3 mt-4 text-xl font-semibold"},r(" %s Gifts",x(s?.pageData.parent))),e.createElement("div",{className:"mb-1 mt-4 flex flex-wrap"},s?.parent_silo?.map((t,i)=>e.createElement("div",{className:"text-base",key:i},e.createElement(c,{className:"mr-2 mb-2 inline-block bg-gray-100 px-3 py-2 transition-all hover:bg-black hover:text-white",to:m(g(h(t))),title:o(t)},e.createElement("span",{className:"whitespace-nowrap block"},o(t))))))),s?.you_might_also_like?.length>0&&e.createElement("div",{className:""},e.createElement("h2",{className:"mb-3 mt-4 text-xl font-semibold"},x(`Explore Related ${s.pageData.parent}`)),e.createElement("div",{className:"mb-1 flex flex-wrap"},s?.you_might_also_like?.map((t,i)=>e.createElement("div",{className:"text-base",key:i},e.createElement(c,{className:"mr-2 mb-2 inline-block bg-gray-100 px-3 py-2 transition-all hover:bg-black hover:text-white",to:m(g(h(t))),title:o(t)},e.createElement("span",{className:"whitespace-nowrap"},o(t)))))))))}var fe=({data:s,parentsData:a})=>{let b=L(s,a),{locale:p}=d(),v=[];s?.results&&(v=S(s?.results)?.splice(0,10).map(function(l){return{"og:image":y(l.image,{width:779},l?.slug),"og:image:secure_url":y(l.image,{width:779},l?.slug),"og:image:type":"image/jpeg","og:image:alt":l.name?.replace(" "," ")+" - "+a.root.brand+P(p),"og:image:width":"735","og:image:height":"735"}}));let n=[];return n.push({httpEquiv:"content-language",content:D(p)}),{...b,...v,...n}},be={dynamicLinks:({data:s})=>[...C(s?.pathName,s?.robots,!1,s?.page,!0,Math.ceil(s?.total/64),s?.has_filter)]};function $(){let s=_();return U(),e.createElement(q,{data:s})}function ve(){let{status:s}=k();switch(s){case 400:case 404:return e.createElement(B,null);default:throw new Error(r("Unexpected caught response with status: %s",s))}}export{fe as a,be as b,$ as c,ve as d};
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.