import{a as k}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-E43N735O.js";import{a as E}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-JVKNTGXC.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-C2MSQUIF.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-4WGLXVPZ.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-PYETN2HX.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-W7B6E32U.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-QXO7CJXO.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-J44IZTW2.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-GFXNKJ5U.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-FWBXOOCE.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-6NX3IJVR.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-YAHMRLQ4.js";import{a as g}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-34QOOIQ4.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-W2IUONAN.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-3NRANKP7.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-OPOLM3WC.js";import{o as m,u as f}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-C4I3W2OX.js";import{a as x}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LL6AKNEK.js";import{a as y}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LQ2PFFE3.js";import"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-X2OUMLEL.js";import{d as i}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-H7QMOPDN.js";var e=i(x()),p=i(y()),S=()=>{let{data:t}=f();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"content-wrapper flex-col",children:(0,e.jsx)("h1",{className:"mx-auto max-w-[60rem] px-4 py-8 text-center font-inter text-xl font-bold md:px-8 md:text-2xl",children:t?.sitemapHeading})}),(0,e.jsx)("div",{className:"content-wrapper mb-4 flex-col",children:(0,e.jsx)("div",{className:"grid grid-cols-1 gap-3 pb-10 smm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:t?.sitemapSections?.map((s,a)=>(0,p.createElement)(b,{...s,key:s._key}))})}),(0,e.jsx)("div",{className:"content-wrapper",children:(0,e.jsx)(E,{})})]})},b=({sectionTitle:t,categories:s,title:a,justText:d})=>{let c=s?.reduce((o,l)=>{let n=!l?.subcategories?.length,u=!!o[o.length-1]?.length;if(n){if(u)return o[o.length-1]?.push(l),o;if(!u)return o.push([l]),o}return o.push(l),o},[]),r=c?.length||0;return(0,e.jsxs)("div",{className:g("col-span-1 mb-8 grid w-full content-start items-start",r===2&&"smm:col-span-2",r===3&&" smm:col-span-2 md:col-span-3",r>3&&"smm:col-span-2 md:col-span-3 lg:col-span-4"),children:[!d&&(0,e.jsx)(m,{to:t?.slug,className:"mb-4 flex w-full justify-center rounded-md bg-GREY_FIVE p-3 text-lg font-[700] leading-[1.4] text-black",style:{background:"#EEEEEE",backgroundColor:"#EEEEEE"},children:t?.title||t?.mainTitle||t?.slug.replaceAll("-"," ").toUpperCase()}),!!d&&(0,e.jsx)("p",{style:{background:"#EEEEEE",backgroundColor:"#EEEEEE"},className:"mb-4 flex w-full justify-center rounded-md bg-GREY_FIVE p-3 text-lg font-[700] leading-[1.4] text-black",children:a}),(0,e.jsx)("div",{className:g("grid w-full justify-start gap-4 gap-y-6",r===1&&"grid-cols-1",r===2&&"grid-cols-1 smm:grid-cols-2",r===3&&"grid-cols-1 smm:grid-cols-2 md:grid-cols-3",r>3&&"grid-cols-1 smm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"),children:c?.map((o,l)=>{if(o?.subcategoryTitle)return(0,p.createElement)(T,{...o,key:o?.subcategoryTitle._key});if(o?.length)return(0,e.jsx)("div",{className:"flex flex-col gap-4 md:gap-2",children:o?.map(n=>(0,p.createElement)(T,{...n,key:n?.subcategoryTitle._key}))},l)})})]})},T=({subcategoryTitle:t,subcategories:s})=>(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(m,{to:t?.slug,className:"text-md font-[700] text-black",children:t?.title||t?.mainTitle||t?.slug.replaceAll("-"," ").toUpperCase()}),(0,e.jsx)("div",{className:"flex flex-col gap-2",children:s?.map(a=>(0,e.jsx)(m,{className:"ml-4 text-sm",to:a.slug,children:a?.title||a?.mainTitle},a._key))})]});var v=({data:t})=>({title:k(t?.data?.sitemapSeoTitle,t?.storeDomain),description:t?.data?.sitemapSeoDescription}),C={seo:v};var N=S;export{N as default,C as handle};