1const __vite__fileDeps=["assets/KegOrderForm-ClB_wjMm.js","assets/jsx-runtime-D2HyDbKh.js","assets/Counter-BPnHjDUZ.js","assets/Button-DN0gBET_.js","assets/createLucideIcon-iJ9pEJd7.js","assets/shopping-cart-CgbSuC5_.js","assets/root-B7dITD1u.js","assets/CartProvider-DRDkNzgb.js","assets/index.esm--4BB0KQy.js","assets/firebase.client-CKNaDRR2.js","assets/components-SDhFL-zL.js","assets/index-OGzYKti1.js","assets/index-DXqQCM1T.js","assets/useFirstRender-BfqRfFrL.js","assets/index-CSgRVgty.js","assets/check-DLhAKf5E.js","assets/circle-alert-9e1ZjEZ4.js","assets/formatProductVariantAttributes-B4dzlm21.js","assets/performance-0E6KhFrC.js","assets/hub-lKrYKKAf.js","assets/node-5jBVRjIE.js","assets/index-C9Ymd-py.js","assets/motion-FGmiHZpJ.js","assets/scroll-restoration-z6xYfQi5.js","assets/Input-CZhQOuOd.js","assets/Divider-DTIW_4YD.js","assets/arrow-left-6qDR8OYQ.js","assets/Loader-B3AeGKAp.js","assets/index-BzOSxPQb.js","assets/BaseTextarea-B3ihERgH.js","assets/inquiryForm.utils-DK4GOCqd.js","assets/RiverTripForm-CAvtf8Sc.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); 2import{r as x,j as s,g as es}from"./jsx-runtime-D2HyDbKh.js";import{u as G,p as K,W as te,aH as Ce,N as ws,a1 as vs,aI as ys,v as bs,aJ as Ns,aK as Cs,aL as Ss,aM as Rs,aN as Ts,aO as oe,t as ze,I as Ue}from"./root-B7dITD1u.js";import{a as Q,b as $s,A as _s}from"./components-SDhFL-zL.js";import{B as ne,c as P,C as ss,a as Ie}from"./Button-DN0gBET_.js";import{A as pe}from"./index-C9Ymd-py.js";import{m as ae}from"./motion-FGmiHZpJ.js";import{D as ge}from"./Divider-DTIW_4YD.js";import{C as ts,a as ls,b as rs,c as as,A as Us,d as Ps,e as Ls,f as As}from"./index-BzOSxPQb.js";import{T as ie}from"./index-CSgRVgty.js";import{F as is}from"./ChevronRightIcon-DpCcAyKy.js";import{c as Se}from"./index-OGzYKti1.js";import{u as Re}from"./useFirstRender-BfqRfFrL.js";import{a as ns}from"./GoogleAuthButton-pu13aQRM.js";import{F as cs}from"./ChevronRightIcon-BtKbYLSv.js";import{c as Is}from"./createLucideIcon-iJ9pEJd7.js";import{_ as os}from"./preload-helper-BqjOJQfC.js";import{I as De}from"./Input-CZhQOuOd.js";import{T as We}from"./BaseTextarea-B3ihERgH.js";function Os(e,t,l){return typeof e=="string"?e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const ks={some:0,all:1};function Ms(e,t,{root:l,margin:r,amount:a="some"}={}){const i=Os(e),n=new WeakMap,c=o=>{o.forEach(h=>{const p=n.get(h.target);if(h.isIntersecting!==!!p)if(h.isIntersecting){const v=t(h);typeof v=="function"?n.set(h.target,v):d.unobserve(h.target)}else p&&(p(h),n.delete(h.target))})},d=new IntersectionObserver(c,{root:l,rootMargin:r,threshold:typeof a=="number"?a:ks[a]});return i.forEach(o=>d.observe(o)),()=>d.disconnect()}function Es(e,{root:t,margin:l,amount:r,once:a=!1}={}){const[i,n]=x.useState(!1);return x.useEffect(()=>{if(!e.current||a&&i)return;const c=()=>(n(!0),a?void 0:()=>n(!1)),d={root:t&&t.current||void 0,margin:l,amount:r};return Ms(e.current,c,d)},[t,e,l,a,r]),i}/** 3 * @license lucide-react v0.429.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const Fs=Is("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ve(e,t){var l;if(((l=e==null?void 0:e.trim())==null?void 0:l.length)===0)return"";try{const r=new URL(e);return e.split(".")[e.split(".").length-1]!=="gif"&&r.searchParams.set("format",t.format||"webp"),t.resize?r.searchParams.set("resize",t.resize):(t.width&&r.searchParams.set("width",Math.floor(parseFloat(t.width)).toFixed(0)),t.height&&r.searchParams.set("height",t.height)),t.embed&&r.searchParams.set("embed",""),r.toString()}catch(r){return console.error(r),""}}const Oe=e=>e==null?void 0:e.map((l,r)=>{let a;switch(l.type){case"paragraph":return a=zs(l.children),s.jsx("div",{className:"paragraph font-light pb-4",children:a},r);case"heading":return a=Ds(l.children,l.level),s.jsx("div",{className:"heading pb-4",children:a},r);case"list":return a=Ws(l.children,l.format),s.jsx("div",{className:"paragraph pb-4 md:pl-4",children:a},r);case"image":if(!l.image)break;return a=Hs(l.image),s.jsx("div",{className:"paragraph pb-4",children:a},r);default:return s.jsx(s.Fragment,{})}}),zs=e=>s.jsx("div",{children:e==null?void 0:e.map((t,l)=>{var r;if(t.type==="link"&&t.url)return s.jsx(Q,{to:t.url,style:re(t),className:"text-blue-500",children:t.children?be(t.children):t.text},l);if(t.children)return be(t.children);{const a=(r=t.text.split(` 8`))==null?void 0:r.map((i,n)=>n>0?[s.jsx("br",{},`br-${l}-${n}`),i]:i);return s.jsx("span",{style:re(t),children:a.flat()},l)}})}),be=e=>e==null?void 0:e.map((t,l)=>{var r;if(t.type==="link"&&t.url)return s.jsx(Q,{to:t.url,style:re(t),children:t.children?be(t.children):t.text},l);{const a=(r=t.text.split(` 9`))==null?void 0:r.map((i,n)=>n>0?[s.jsx("br",{},`br-${l}-${n}`),i]:i);return s.jsx("span",{style:re(t),children:a.flat()},l)}}),Ds=(e,t)=>{switch(t){case 1:return e==null?void 0:e.map((l,r)=>s.jsx("h1",{style:re(l),className:"h1 text-4xl",children:l.text},r));case 2:return e==null?void 0:e.map((l,r)=>s.jsx("h2",{style:re(l),className:"text-3xl",children:l.text},r));case 3:return e==null?void 0:e.map((l,r)=>s.jsx("h3",{style:re(l),className:"text-2xl",children:l.text},r));case 4:return e==null?void 0:e.map((l,r)=>s.jsx("h4",{style:re(l),className:"text-xl",children:l.text},r));case 5:return e==null?void 0:e.map((l,r)=>s.jsx("h5",{style:re(l),className:"text-lg",children:l.text},r));case 6:return e==null?void 0:e.map((l,r)=>s.jsx("h6",{style:re(l),className:"text",children:l.text},r));default:return e==null?void 0:e.map((l,r)=>s.jsx("h1",{children:l.text},r))}},Ws=(e,t="unordered")=>{const l=e==null?void 0:e.map((r,a)=>{var i;if(r.type==="list-item")return s.jsx("li",{style:re(r),children:r.children?be(r.children):r.text},a);if(r.children)return be(r.children);{const n=(i=r.text.split(` 10`))==null?void 0:i.map((c,d)=>d>0?[s.jsx("br",{},`br-${a}-${d}`),c]:c);return s.jsx("span",{style:re(r),children:n.flat()},a)}});return t==="ordered"?s.jsx("ol",{className:"list-disc list-inside",children:l}):s.jsx("ul",{className:"list-decimal list-inside",children:l})},Hs=e=>{const{ENV:t}=G(),l=t==null?void 0:t.STRAPI_URL;return s.jsx("img",{src:`${l}${e.formats.large.url}`,alt:e.alternativeText,loading:"lazy"})},re=e=>({...e.code&&{fontFamily:"monospace",backgroundColor:"#ddd",padding:"0.25rem 0.5rem",borderRadius:4,width:"fit-content"},...e.bold&&{fontWeight:"700"},...e.italic&&{fontStyle:"italic"},...e.underline?e.strikethrough?{textDecoration:"underline line-through"}:{textDecoration:"underline"}:void 0,...e.strikethrough&&!e.underline&&{textDecoration:"line-through"}}),Bs=({featuredContentLinkType:e,callToAction:t,collection:l,ctaLink:r,product:a,description:i,image:n,title:c})=>{var S;const[d,o]=x.useState(""),[h,p]=x.useState(!1);x.useEffect(()=>{const N=JSON.parse(localStorage.getItem("ENV")||"{}");N!=null&&N.STRAPI_URL&&o(N.STRAPI_URL)},[]);
10const v=x.useMemo(()=>{var W,O;if(!d||!((O=(W=n==null?void 0:n.data)==null?void 0:W.attributes)!=null&&O.url))return{};const N=`${d}${n.data.attributes.url}`;p(!1);const I={small:ve(N,{format:"webp",width:"480"}),medium:ve(N,{format:"webp",width:"768"}),large:ve(N,{format:"webp",width:"1280"}),extraLarge:ve(N,{format:"webp",width:"1920"})};return p(!0),I},[d,n]),y=x.useMemo(()=>h?`${v.small} 480w, ${v.medium} 768w, ${v.large} 1280w, ${v.extraLarge} 1920w`:"",[v,h]),_=x.useMemo(()=>{var I,W,O,D,u,f,w;let N;switch(e){case"collection":{const g=((W=(I=l==null?void 0:l.data)==null?void 0:I.attributes)==null?void 0:W.slug)??"";N=(O=g==null?void 0:g.trim())!=null&&O.length?`/collections/${(u=(D=l==null?void 0:l.data)==null?void 0:D.attributes)==null?void 0:u.slug}`:"";break}case"product":{N=(f=a==null?void 0:a.trim())!=null&&f.length?`/products/${a}`:"";break}default:N=(w=r==null?void 0:r.trim())!=null&&w.length?r:"";break}return N},[e,l,a,r]);return s.jsx("div",{className:"flex flex-col text-center justify-center items-center p-4 lg:p-0 my-4 bg-gray-50 lg:min-h-[40vh] lg:max-h-[45vh]",children:s.jsxs("div",{className:"flex flex-col justify-center lg:items-center py-8 lg:flex-row lg:px-10 max-w-[1440px]",children:[s.jsx("div",{className:"flex justify-center items-center w-full lg:mr-8 lg:max-w-fit min-h-[200px] min-w-[350px]",children:s.jsx(pe,{children:h?s.jsx(ae.img,{initial:{opacity:0}
10,animate:{opacity:1},exit:{opacity:0},src:(S=v==null?void 0:v.medium)==null?void 0:S.toString(),srcSet:y,alt:"featured product",width:768,height:"auto",className:"max-w-[250px] lg:max-w-[360px]",style:{width:"100%",height:"auto"}}):s.jsx("div",{className:"w-full h-full bg-secondary-50 duration-50 animate-pulse easeInOut"})})}),s.jsxs("div",{className:"flex flex-col w-[100%] items-center lg:max-w-[50%] lg:items-start",children:[s.jsxs("div",{className:"flex flex-col mb-4 gap-2",children:[s.jsx("span",{className:"text-xl lg:text-left lg:text-3xl font-semibold",children:c}),s.jsx("div",{className:"lg:text-left",children:Oe(i??[])})]}),_&&s.jsx(Q,{to:_,className:"lg:text-left w-fit",children:s.jsx(ne,{label:t??"Shop Now"})})]})]})})};function qs({title:e,titleId:t,...l},r){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},l),e?x.createElement("title",{id:t},e):null,x.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))}const ke=x.forwardRef(qs),Gs=[{id:1,name:"Cazcanes No. 7 Reposado Tequila 750ml Bottle",shortDescription:"Really tasty",price:"$109.99",href:"#",imageAlt:"Really tasty"},{id:2,name:"Cazcanes No. 7 Reposado Tequila 750ml Bottle",shortDescription:"Really tasty",price:"$109.99",href:"#",imageAlt:"Really tasty"},{id:3,name:"Cazcanes No. 7 Reposado Tequila 750ml Bottle",shortDescription:"Really tasty",price:"$109.99",href:"#",imageAlt:"Really tasty"},{id:4,name:"Cazcanes No. 7 Reposado Tequila 750ml Bottle",shortDescription:"Really tasty",price:"$109.99",href:"#",imageAlt:"Really tasty"}];function Ys({categoryUUID:e,products:t=Gs,title:l}){const{ENV:r}=G(),a=r==null?void 0:r.STRAPI_URL;return s.jsxs("div",{className:"mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-24 lg:max-w-7xl lg:px-8",children:[s.jsxs("div",{className:"md:flex md:items-center md:justify-between",children:[s.jsxs("div",{style:{flexDirection:"column"},children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-gray-900",children:l}),s.jsx("h2",{className:"text-2xl font-bold tracking-tight text-gray-900",children:l})]}),s.jsxs(Q,{to:`/products?category=${e}`,className:"hidden text-sm font-medium text-primary hover:text-primary-dark md:block",children:["See all",s.jsx("span",{"aria-hidden":"true",children:" â"})]})]}),s.jsx("div",{className:"mt-6 grid grid-cols-2 gap-x-4 gap-y-10 sm:gap-x-6 md:grid-cols-4 lg:gap-x-8",children:t.map(i=>s.jsxs("div",{className:"group relative",children:[s.jsx("div",{className:"h-56 w-full overflow-hidden rounded-md bg-gray-200 group-hover:opacity-75 lg:h-72 xl:h-80",children:s.jsx("img",{src:`${a}${i.attributes.image.data.attributes.url}`,alt:"",className:"h-full w-full object-cover object-center"})}),s.jsx("h3",{className:"mt-4 text-sm text-gray-700",children:s.jsxs(Q,{to:"",children:[s.jsx("span",{className:"absolute inset-0"}),i.attributes.title]})}),i.attributes.brandString&&i.attributes.brandString.length>0&&s.jsx("p",{className:"mt-1 text-sm text-gray-500",children:i.attributes.brandString}),s.jsx("p",{className:"mt-1 text-sm font-medium text-gray-900",children:i.attributes.price??"0"})]},i.id))}),s.jsx("div",{className:"mt-8 text-sm md:hidden",children:s.jsxs(Q,{to:`/products?category=${e}`,className:"font-medium text-indigo-600 hover:text-primary",children:["See all",s.jsx("span",{"aria-hidden":"true",children:" â"})]})})]})}const Qs=({backgroundImg:e,children:t,className:l,style:r})=>{const[a,i]=x.useState(0),[n,c]=x.useState(!1),[d,o]=x.useState(0);x.useEffect(()=>{if(window==null)return;c(window.innerWidth>768),o(window.innerWidth);const y=()=>{c(window.innerWidth>768)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]);const h=()=>
10{if(window&&window.pageYOffset===void 0)return;const y=window.pageYOffset;i(y)};x.useEffect(()=>{if(window!=null)return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]);const p=x.useMemo(()=>d>1920?{format:"webp",width:"1920"}:d>1280?{format:"webp",width:"1280"}:d>768?{format:"webp",width:"768"}:{format:"webp",width:"480"},[d]);if(!d||e==null||(e==null?void 0:e.length)===0)return null;const v=d?ve(e??"",p):e;return s.jsx("div",{className:`${l} h-30vh`,style:{backgroundPosition:n?`center ${-a*.5}px`:"center center",backgroundImage:`url(${v})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundAttachment:n?"fixed":"scroll",...r},children:t})},Ks=e=>{var S,N,I,W;const{linkType:t,image:l,title:r,heroBannerDescription:a,callToAction:i,subtitle:n,collection:c,page:d,url:o}=e,{ENV:h}=G(),p=h==null?void 0:h.STRAPI_URL,v=x.useMemo(()=>{var D,u,f,w;let O;switch(t){case"url":O=o;break;case"collection":O=`/collections/${(u=(D=c==null?void 0:c.data)==null?void 0:D.attributes)==null?void 0:u.slug}`;break;case"page":O=(w=(f=d==null?void 0:d.data)==null?void 0:f.attributes)==null?void 0:w.slug;break}return O},[t,o,c,d]),y=(W=(I=(N=(S=l==null?void 0:l.data)==null?void 0:S.attributes)==null?void 0:N.formats)==null?void 0:I.large)==null?void 0:W.url,_=y?`${p}${y}`:"";return s.jsx("div",{className:"flex justify-center","aria-label":`${r} Hero Banner`,children:s.jsx(Qs,{className:"relative flex flex-col justify-end items-center h-auto xl:min-h-[42vh] lg:min-h-[30vh] w-full bg-cover bg-center",backgroundImg:_,children:s.jsx("div",{className:"w-full h-full display flex items-center justify-center bg-black bg-opacity-50 p-6 lg:p-8",children:s.jsxs("div",{className:"z-9 relative flex flex-col justify-center w-full lg:max-w-[1400px] gap-2",children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx(ae.span,{initial:{y:8,opacity:0},animate:{y:-4,opacity:1},transition:{duration:1},className:"text-sm lg:text-2xl font-light text-white","aria-label":`Hero Subtitle: ${n}`,children:n}),s.jsx(ae.span,{initial:{y:8,opacity:0},animate:{y:-4,opacity:1},transition:{duration:1.2},className:"text-3xl lg:text-5xl font-semibold text-white","aria-label":`Hero Title: ${r}`,children:r})]}),s.jsx("div",{children:s.jsx(ae.p,{initial:{y:8,opacity:0},animate:{y:-4,opacity:1},transition:{duration:1.4},className:"font-light text-white text-sm lg:text-xl","aria-label":`Hero Description: ${a}`,children:a})}),(i==null?void 0:i.length)&&s.jsx(Q,{to:v??"#","aria-label":`Hero Call to Action: ${i}`,children:s.jsx(ne,{label:i??"Shop Now",labelColor:"white",backgroundColor:"primary-500",borderRadiusSize:"xl",labelSize:"sm",labelWeight:"bold",animateEntranceOpacity:!0,animate:!0})})]})})})})},Vs=({description:e,slug:t,name:l,fullImage:r,callToAction:a="View",tailwindClasses:i="",ctaTailwindClasses:n=""})=>{const{ENV:c}=G(),d=c==null?void 0:c.STRAPI_URL,o=c==null?void 0:c.STRAPI_UPLOAD_URL,{src:h,sizes:p,srcset:v}=K({image:r==null?void 0:r.image,strapiUrl:d,strapiUploadUrl:o,presetType:"large"});return s.jsx("a",{className:"h-full min-h-[275px] w-full lg:max-w-[420px] lg:w-1/3 lg:basis-1/3 group flex flex-1 ",style:{width:"100%"},href:t,children:s.jsxs("div",{className:P("flex flex-col gap-y-4 flex-1",i),children:[s.jsx("div",{className:P("w-full min-h-[240px] h-full lg:min-h-[300px] overflow-hidden relative hover:shadow-2xl duration-500 group-hover:scale-[1.025]",r==null?void 0:r.containerTailwindClasses),children:s.jsx("img",{src:h,sizes:p,srcSet:v,alt:(l==null?void 0:l.value)??"",className:P("w-full h-full absolute object-cover object-center",r==null?void 0:r.tailwindClasses)})}),s.jsxs("div",{className:"flex flex-col gap-2 justify-between h-full",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(te,{...l}),s.jsx(te,{...e,className:"line-clamp-3"})]}),s.jsxs("div",{className:"relative flex flex-col w-fit gap-1",children:[s.jsx(ne,{variant:"link",size:"sm",spacing:"custom",className:P("text-primary-900",n),children:a.toUpperCase()}),s.jsx(ge,{className:"w-full group-hover:bg-neutral-900 group-hover:w-[50%] group-hover:bg-primary-400 duration-500"})]})]})]})})},we=()=>s.jsx("div",{className:"w-full h-full ",children:s.jsxs("div",{className:"flex flex-col gap-y-4",children:[s.jsx("div",{className:"w-full min-h-[350px] overflow-hidden relative bg-primary-100 animate-pulse"}),s.jsx("div",{className:"flex flex-col justify-between min-h-[132px] pb-4",children:s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"w-3/4 h-4 bg-primary-100 animate-pulse"}),s.jsx("div",{className:"w-1/2 h-4 bg-primary-100 animate-pulse"}),s.jsx("div",{className:"w-1/2 h-4 bg-primary-100 animate-pulse"})]})})]})}),Js=()=>s.jsx("div",{className:"px-6 flex w-full relative min-h-[450px] overflow-x-hidden",children:s.jsxs("div",{className:"px-6 h-full absolute flex gap-x-8 top-0 left-0 overflow-x-auto noScrollBar",children:[s.jsx(we,{}),s.jsx(we,{}),s.jsx(we,{}),s.jsx(we,{}),s.jsx(we,{})]})}),Te=x.forwardRef(({content:e,keyProp:t,wrapperClass:l,visibleSlides:r,indicatorVariant:a="default",outerClassName:i,showControls:n=!1},c)=>s.jsx(pe,{children:e.length?s.jsx(ae.div,{initial:{opacity:0}
10,animate:{opacity:1},className:l,children:s.jsx(ts,{ref:c,className:"px-4",indicatorVariant:a,visibleSlides:r??null,outerClassName:i,controls:n,slides:e.map((d,o)=>s.jsx(Vs,{...d},`${d.slug}-${o}`))})},t):s.jsx(Js,{})}));Te.displayName="FeaturedContentSlider";const Zs=({collections:e})=>{const t=x.useRef(null);return s.jsx(Te,{keyProp:"collections-section-list",content:e==null?void 0:e.map(l=>({slug:`/collections/${l.slug}`,description:l.description||"",name:l.name||"",image:l.image,fullImage:l.fullImage})),ref:t})},Xs=({title:e,collections:t,cta:l,ctaLink:r})=>s.jsx("div",{className:"w-full min-h-[45vh] bg-primary-50 flex justify-center px-6",children:s.jsxs("div",{className:"w-full py-8 pb-2 lg:py-8 lg:py-12 max-w-[1440px] h-full flex flex-col gap-y-2 lg:gap-y-8",children:[s.jsxs("div",{className:"text-xl font-semibold w-full flex-col",children:[s.jsxs("div",{className:"flex w-full justify-between items-center pb-6",children:[s.jsx(ie,{as:"h3",variant:"h3",weight:"medium",className:"text-primary-900",children:e}),!!(r&&l)&&s.jsx(Q,{to:r,children:s.jsxs("button",{type:"button",className:"p-3 lg:px-6 border border-primary-500 text-primary-500 text-xs font-light tracking-[4px] flex items-center gap-x-3",children:[s.jsx("span",{children:l}),s.jsx(is,{className:"w-4 h-4"})]})})]}),s.jsx(ge,{className:"w-full bg-primary-400"})]}),s.jsx(Zs,{collections:t})]})});function et(){return()=>{}}function st(){return x.useSyncExternalStore(et,()=>!0,()=>!1)}function tt({children:e,fallback:t=null}){return st()?x.createElement(x.Fragment,null,e()):x.createElement(x.Fragment,null,t)}const lt=({floatingImage:e})=>{var d,o,h;const{ENV:t}=G(),l=t==null?void 0:t.STRAPI_URL,r=t==null?void 0:t.STRAPI_UPLOAD_URL,a=e.tailwindClasses,{src:i,sizes:n,srcset:c}=K({image:e.image,strapiUrl:l,strapiUploadUrl:r,presetType:"original"});return s.jsx(s.Fragment,{children:a&&s.jsx("img",{id:`floating-image-${e.id}`,alt:(h=(o=(d=e.image)==null?void 0:d.data)==null?void 0:o.attributes)==null?void 0:h.name,className:P("absolute",a),src:i,sizes:n,srcSet:c,loading:"lazy"},e.id)})},Me=({floatingImages:e})=>s.jsx(tt,{children:()=>s.jsx(s.Fragment,{children:e.length>0&&e.map((t,l)=>s.jsx(lt,{floatingImage:t},`floating-image-${l}-${t.id}`))})}),rt=({header:e,headerCta:t,underlineColor:l,underlineWidth:r,headerPosition:a,showUnderline:i})=>{a=(a==null?void 0:a.toLowerCase())??"center",r=(r==null?void 0:r.toLowerCase())??"contain",l=(l==null?void 0:l.toLowerCase())??"primary-400";const n=a==="center"?"justify-center":a==="right"?"justify-end":"justify-start";return s.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[s.jsxs("div",{className:P("w-full flex items-center",t!=null?"justify-between":n),children:[s.jsxs("div",{className:"flex flex-col gap-3 lg:p-4",children:[s.jsx(te,{...e}),t==null&&r==="contain"&&s.jsx(He,{underlineColor:l,style:{marginTop:".5rem"}})]}),t&&s.jsx(Q,{to:(t==null?void 0:t.slug)??"",children:s.jsx(ne,{...t,label:t==null?void 0:t.label,className:P(t==null?void 0:t.tailwindClasses)})})]}),i&&(r==="full"||t!=null)&&s.jsx(He,{underlineColor:l})]})},He=({underlineColor:e,style:t})=>{const l=Ce(e,"bg");return s.jsx(ge,{className:`border-b-1 ${l}`,style:t})},at=({header:e,headerCta:t,items:l,cta:r,showUnderline:a=!0,underlineWidth:i="contain",underlineColor:n="primary-400",headerPosition:c="center",floatingImages:d=[],backgroundImage:o,visibleSlides:h=null,tailwindClasses:p="",indicatorVariant:v="default",containerTailwindClasses:y,showControls:_=!1})=>{const{ENV:S}=G(),N=(S==null?void 0:S.STRAPI_URL)??"",I=(S==null?void 0:S.STRAPI_UPLOAD_URL)??"",W=x.useRef(null),O=l==null?void 0:l.map(u=>{var f,w,g,j;return{description:u.description,image:((j=(g=(w=(f=u==null?void 0:u.image)==null?void 0:f.image)==null?void 0:w.data)==null?void 0:g.attributes)==null?void 0:j.formats)??{},name:u.title,fullImage:u.image,slug:`${u.slug}`,tailwindClasses:u.tailwindClasses,ctaTailwindClasses:u.ctaTailwindClasses}}),D=K({strapiUploadUrl:I,strapiUrl:N,image:o==null?void 0:o.image,presetType:"large"});return s.jsxs("div",{id:"card-carousel",className:P("w-full lg:min-h-[45vh] bg-background bg-cover bg-center bg-no-repeat gap-16 flex justify-center py-8 lg:py-12 px-6 relative",p),style:o?{backgroundImage:`url(${D==null?void 0:D.src})`}:{},children:[s.jsx("div",{className:"w-full max-w-[1440px] h-full flex flex-col gap-y-8",children:s.jsxs("div",{className:"lg:px-6 text-xl font-semibold text-primary-900 w-full flex-col",children:[e&&s.jsx(rt,{showUnderline:a,header:e,headerCta:t,underlineColor:n,underlineWidth:i,headerPosition:c}),s.jsx("div",{className:"w-full mt-8",children:s.jsx(Te,{keyProp:`card-carousel-slider-${e==null?void 0:e.value}`,content:O,ref:W,visibleSlides:h,indicatorVariant:v,showControls:_,outerClassName:y})}),r&&s.jsx("div",{className:"flex justify-center",children:s.jsx(Q,{to:(r==null?void 0:r.slug)??"",children:s.jsx(ne,{label:r==null?void 0:r.label,decorator:r==null?void 0:r.decorator,decoratorPosition:r==null?void 0:r.decoratorPosition,className:(r==null?void 0:r.tailwindClasses)??"",variant:r==null?void 0:r.variant})})})]})}),s.jsx(Me,{floatingImages:d})]})},it=({description:e,title:t,icon:l,totalValues:r})=>{const{ENV:a}=G(),i=a.STRAPI_URL,n=a.STRAPI_UPLOAD_URL,{sizes:c,src:d,srcset:o}=K({image:l,strapiUrl:i,strapiUploadUrl:n,presetType:"small"});return s.jsxs("div",{className:`flex md:flex-col items-center gap-6 w-full lg:max-w-[360px] lg:w-1/${r}`,children:[s.jsx("img",{className:"w-16 h-16",src:d,srcSet:o,sizes:c,width:16,height:16,alt:t}),s.jsxs("div",{className:"flex flex-col md:items-center gap-y-2 md:text-center",children:[s.jsx(ie,{as:"h4",variant:"h4",className:"lg:text-center text-left",children:t}),s.jsx(ie,{as:"p",variant:"small",className:"text-primary-400 lg:text-center text-left",children:e})]})]})},nt=({title:e,values:t})=>s.jsx("section",{className:"w-full lg:py-12 flex flex-col items-center",children:s.jsxs("div",{className:"w-full max-w-[1440px] flex flex-col px-6 items-center gap-y-12",children:[s.jsxs("div",{className:"py-4 w-full",children:[s.jsx(ie,{as:"h3",variant:"h3",className:"text-primary-900 text-center",children:e}),s.jsx("div",{className:"pt-6 flex justify-center",children:s.jsx(ge,{className:"bg-primary-100 max-w-[240px]"})})]}),s.jsx("div",{className:"w-full flex flex-col gap-y-16 md:flex-row md:gap-x-4 justify-around",children:t==null?void 0:t.map((l,r)=>s.jsx(it,{...l,totalValues:t.length},r))})]})}
10),ct=({description:e,image:t,product:l,subtitle:r,title:a})=>{var h,p,v,y,_;const i=Se(),{ENV:n}=G(),c=n==null?void 0:n.STRAPI_URL,d=(v=Object.values(((p=(h=t==null?void 0:t.data)==null?void 0:h.attributes)==null?void 0:p.formats)??{}))==null?void 0:v.map(({url:S,width:N})=>`${c}${S} ${N}w`).join(", "),o=()=>{i(`/products/${l}`)};return s.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:s.jsxs("div",{className:"bg-primary-50 p-12 w-full max-w-[1440px] min-h-[80vh] max-h-[100vh] flex flex-col-reverse items-center justify-between gap-12 lg:flex-row lg:min-h-[450px]",children:[s.jsxs("div",{className:"flex flex-col w-full flex-1 gap-6",children:[s.jsx("p",{className:"text-sm uppercase text-primary-900 font-light tracking-[2px]",children:r}),s.jsx("h2",{className:"text-4xl font-semibold text-primary-900",children:a}),s.jsx("p",{className:"text-sm text-primary-500",children:e}),s.jsxs("button",{type:"button",onClick:o,className:"p-3 lg:px-6 border border-primary-500 text-primary-500 text-xs font-light tracking-[4px] flex items-center gap-x-3",style:{width:"fit-content"},children:[s.jsx("span",{children:"SHOP"}),s.jsx(is,{className:"w-4 h-4"})]})]}),s.jsx("div",{className:"w-full flex-1 flex justify-center",children:s.jsx("img",{className:"max-h-[50vh] object-contain object-center",srcSet:d,src:`${c}${(_=(y=t==null?void 0:t.data)==null?void 0:y.attributes)==null?void 0:_.url}`,alt:`${a}`})})]})})},ot=({brands:e,slidesPerView:t="4.3"})=>{const{ENV:l}=G(),r=l.STRAPI_URL,a=l.STRAPI_UPLOAD_URL,i=Se(),n=d=>{d!=null&&i(d)},c=e.length<8?[...e,...e,...e,...e]:e;return s.jsx("div",{className:"w-full bg-background",children:s.jsx("swiper-container",{autoplay:"true","autoplay-delay":"0","autoplay-disable-on-interaction":"false","centered-slides":"false",effect:"slide","free-mode":"true",loop:"true",pagination:"false","slides-per-view":t,"space-between":"32",speed:"4000",style:{maxWidth:"1440px"},children:c==null?void 0:c.map((d,o)=>{var y,_,S;const{sizes:h,src:p,srcset:v}=K({image:d==null?void 0:d.image,strapiUploadUrl:a,strapiUrl:r,presetType:"original"});return s.jsx("swiper-slide",{onClick:()=>n(d.slug),className:"bg-background",style:{alignSelf:"center",paddingTop:"20px",paddingBottom:"20px"},children:s.jsx("img",{alt:(d==null?void 0:d.slug)??"",height:(S=(_=(y=d==null?void 0:d.image)==null?void 0:y.data)==null?void 0:_.attributes)==null?void 0:S.height,loading:"lazy",sizes:h,src:p,srcSet:v,style:{insetInlineStart:`${o*150}%`},width:165},o)},o)})})})};var Ee={};Ee.match=mt;Ee.parse=ds;var dt=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,ut=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,xt=/^(?:(min|max)-)?(.+)/,ht=/(em|rem|px|cm|mm|in|pt|pc)?$/,ft=/(dpi|dpcm|dppx)?$/;function mt(e,t){return ds(e).some(function(l){var r=l.inverse,a=l.type==="all"||t.type===l.type;if(a&&r||!(a||r))return!1;var i=l.expressions.every(function(n){var c=n.feature,d=n.modifier,o=n.value,h=t[c];if(!h)return!1;switch(c){case"orientation":case"scan":return h.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=Ge(o),h=Ge(h);break;case"resolution":o=qe(o),h=qe(h);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=Be(o),h=Be(h);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,h=parseInt(h,10)||0;break}switch(d){case"min":return h>=o;case"max":return h<=o;default:return h===o}});return i&&!r||!i&&r})}function ds(e){return e.split(",").map(function(t){t=t.trim();var l=t.match(dt),r=l[1],a=l[2],i=l[3]||"",n={};return n.inverse=!!r&&r.toLowerCase()==="not",n.type=a?a.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],n.expressions=i.map(function(c){var d=c.match(ut),o=d[1].toLowerCase().match(xt);return{modifier:o[1],feature:o[2],value:d[2]}}),n})}function Be(e){var t=Number(e),l;return t||(l=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=l[1]/l[2]),t}function qe(e){var t=parseFloat(e),l=String(e).match(ft)[1];switch(l){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Ge(e){var t=parseFloat(e),l=String(e).match(ht)[1];switch(l){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var pt=Ee.match,Ye=typeof window<"u"?window.matchMedia:null;function gt(e,t,l){var r=this,a;Ye&&!l&&(a=Ye.call(window,e)),a?(this.matches=a.matches,this.media=a.media,a.addListener(c)):(this.matches=pt(e,t),this.media=e),this.addListener=i,this.removeListener=n,this.dispose=d;function i(o){a&&a.addListener(o)}function n(o){a&&a.removeListener(o)}function c(o){r.matches=o.matches,r.media=o.media}function d(){a&&a.removeListener(c)}}function jt(e,t,l){return new gt(e,t,l)}var wt=jt;const vt=es(wt);var yt=/[A-Z]/g,bt=/^ms-/,Pe={};function Nt(e){return"-"+e.toLowerCase()}function us(e){if(Pe.hasOwnProperty(e))return Pe[e];var t=e.replace(yt,Nt);return Pe[e]=bt.test(t)?"-"+t:t}function Ct(e,t){if(e===t)return!0;
10if(!e||!t)return!1;const l=Object.keys(e),r=Object.keys(t),a=l.length;if(r.length!==a)return!1;for(let i=0;i<a;i++){const n=l[i];if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1}return!0}var xs={exports:{}},St="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Rt=St,Tt=Rt;function hs(){}function fs(){}fs.resetWarningCache=hs;var $t=function(){function e(r,a,i,n,c,d){if(d!==Tt){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function t(){return e}var l={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:fs,resetWarningCache:hs};return l.PropTypes=l,l};xs.exports=$t();var _t=xs.exports;const F=es(_t),se=F.oneOfType([F.string,F.number]),Fe={all:F.bool,grid:F.bool,aural:F.bool,braille:F.bool,handheld:F.bool,print:F.bool,projection:F.bool,screen:F.bool,tty:F.bool,tv:F.bool,embossed:F.bool},ms={orientation:F.oneOf(["portrait","landscape"]),scan:F.oneOf(["progressive","interlace"]),aspectRatio:F.string,deviceAspectRatio:F.string,height:se,deviceHeight:se,width:se,deviceWidth:se,color:F.bool,colorIndex:F.bool,monochrome:F.bool,resolution:se,type:Object.keys(Fe)},{type:Gl,...Ut}
10=ms,ps={minAspectRatio:F.string,maxAspectRatio:F.string,minDeviceAspectRatio:F.string,maxDeviceAspectRatio:F.string,minHeight:se,maxHeight:se,minDeviceHeight:se,maxDeviceHeight:se,minWidth:se,maxWidth:se,minDeviceWidth:se,maxDeviceWidth:se,minColor:F.number,maxColor:F.number,minColorIndex:F.number,maxColorIndex:F.number,minMonochrome:F.number,maxMonochrome:F.number,minResolution:se,maxResolution:se,...Ut},Pt={...Fe,...ps};var Lt={all:Pt,types:Fe,matchers:ms,features:ps};const At=e=>`not ${e}`,It=(e,t)=>{const l=us(e);return typeof t=="number"&&(t=`${t}px`),t===!0?l:t===!1?At(l):`(${l}: ${t})`},Ot=e=>e.join(" and "),kt=e=>{const t=[];return Object.keys(Lt.all).forEach(l=>{const r=e[l];r!=null&&t.push(It(l,r))}),Ot(t)},Mt=x.createContext(void 0),Et=e=>e.query||kt(e),Qe=e=>e?Object.keys(e).reduce((l,r)=>(l[us(r)]=e[r],l),{}):void 0,gs=()=>{const e=x.useRef(!1);return x.useEffect(()=>{e.current=!0},[]),e.current},Ft=e=>{const t=x.useContext(Mt),l=()=>Qe(e)||Qe(t),[r,a]=x.useState(l);return x.useEffect(()=>{const i=l();Ct(r,i)||a(i)},[e,t]),r},zt=e=>{const t=()=>Et(e),[l,r]=x.useState(t);return x.useEffect(()=>{const a=t();l!==a&&r(a)},[e]),l},Dt=(e,t)=>{const l=()=>vt(e,t||{},!!t),[r,a]=x.useState(l),i=gs();return x.useEffect(()=>{if(i){const n=l();return a(n),()=>{n&&n.dispose()}}},[e,t]),r},Wt=e=>{const[t,l]=x.useState(e.matches);return x.useEffect(()=>{const r=a=>{l(a.matches)};return e.addListener(r),l(e.matches),()=>{e.removeListener(r)}},[e]),t},$e=(e,t,l)=>{const r=Ft(t),a=zt(e);if(!a)throw new Error("Invalid or missing MediaQuery!");const i=Dt(a,r),n=Wt(i),c=gs();return x.useEffect(()=>{c&&l&&l(n)},[n]),x.useEffect(()=>()=>{i&&i.dispose()},[]),n},Ht=({position:e,fullScreen:t,width:l,height:r,placement:a,image:i,space:n,spaceMobile:c,tailwindClasses:d})=>{var I,W;const{ENV:o}=G(),h=o.STRAPI_URL,p=o.STRAPI_UPLOAD_URL,v=$e({minWidth:768}),{src:y}=K({image:i,strapiUrl:h,strapiUploadUrl:p,presetType:"original"}),_=x.useMemo(()=>a==="center"?"justify-center":a==="end"?"justify-end":a==="start"?"justify-start":"",[a]),S=x.useMemo(()=>{const O=(v?n.top:c.top)??0,D=(v?n.right:c.right)??0,u=(v?n.bottom:c.bottom)??0,f=(v?n.left:c.left)??0;return{...O>0&&{marginTop:`${O}px`},...D>0&&{marginRight:`${D}px`},...u>0&&{marginBottom:`${u}px`},...f>0&&{marginLeft:`${f}px`}}},[n,c,v]);return Re()?null:s.jsx(pe,{children:s.jsx("div",{className:`w-full relative flex ${_}`,style:{...S,...r&&{height:`${r}px`},...t&&{width:"100%"}},children:s.jsx(ae.img,{initial:{opacity:0}
10,animate:{opacity:1},exit:{opacity:0},src:y,width:l||(t?"100%":void 0),height:r??void 0,className:P(`object-cover ${e==="absolute"?"absolute z-[2]":""} pointer-events-none`,d),style:{...t&&{width:"100vw"}},alt:i.data.attributes.alternativeText??"floating image component"},(W=(I=i.data)==null?void 0:I.attributes)==null?void 0:W.url)})})},Bt=({src:e,alt:t="Google Maps",height:l,width:r,position:a})=>{r=r??"100%",l=l??"750px",a=a??"center";const i=a==="start"?"justify-start":a==="end"?"justify-end":"justify-center";return s.jsx(ae.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`w-full flex items-center ${i} p-4`,children:s.jsx("iframe",{title:t,height:l,width:r,className:"border-0 max-w-[1440px]",referrerPolicy:"no-referrer-when-downgrade",src:e,allowFullScreen:!0})})},qt=({collections:e})=>{const{ENV:t}=G(),l=t==null?void 0:t.STRAPI_URL,r=t==null?void 0:t.STRAPI_UPLOAD_URL,a=x.useRef(null),i=Re();x.useEffect(()=>{a.current&&!i&&Object.assign(a.current,{mousewheel:{active:!0,forceToAxis:!0,releaseOnEdges:!0,sensitivity:.5,thresholdDelta:1,thresholdTime:100},scrollbar:{el:".swiper-scrollbar",hide:!0},freeMode:!0,breakpoints:{320:{slidesPerView:3.5},590:{slidesPerView:3.5},640:{slidesPerView:3.5},768:{slidesPerView:4.75},1024:{slidesPerView:5.5},1080:{slidesPerView:6},1440:{slidesPerView:7}}})},[i]);const n=x.useMemo(()=>e==null?void 0:e.map(c=>{const{sizes:d,src:o,srcset:h}=K({image:c==null?void 0:c.image,strapiUrl:l,strapiUploadUrl:r,presetType:"small"});return s.jsx("swiper-slide",{className:"w-[200px] h-[200px]",children:s.jsx(Q,{to:c.slug,prefetch:"intent",className:"p-4 hover:cursor-pointer",children:s.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full h-full transition-all duration-200 gap-y-6 hover:scale-105",children:[s.jsx("div",{className:"w-full flex items-center justify-center",children:s.jsx(pe,{initial:!1,children:s.jsx(ae.img,{src:o,sizes:d,srcSet:h,alt:c==null?void 0:c.title,initial:{opacity:0}
10,animate:{opacity:1},exit:{opacity:0},width:150,height:150,className:"w-full max-w-[150px] h-auto mix-blend-multiply"})})}),s.jsx("p",{className:"uppercase text-xs lg:text-sm text-primary-800 tracking-[.2em] text-center",children:c==null?void 0:c.title})]})})},null)}),[e,r,l]);return e.length===0?null:s.jsx(pe,{children:s.jsx(ae.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"w-full flex justify-center",children:i?s.jsx(Gt,{}):s.jsx("div",{className:"w-full max-w-[1440px] px-6",children:s.jsx("swiper-container",{ref:a,"space-between":8,mousewheel:"true","scroll-bar":"true",className:"w-full flex justify-center",children:n})})},"collections-slider")})},Gt=()=>s.jsx(ae.div,{className:"w-full flex justify-center",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:s.jsx("div",{className:"w-full max-w-[1440px] px-6 gap-x-2 relative",children:s.jsx("div",{className:"flex w-full h-[150px] animate-pulse bg-gray-100"})})}),Yt=({spacing:e={top:0,bottom:0,left:0,right:0},image:t,mobileImage:l})=>{const r=$e({minWidth:768}),{ENV:a}=G(),i=(a==null?void 0:a.STRAPI_URL)??"",n=(a==null?void 0:a.STRAPI_UPLOAD_URL)??"",c=K({image:t,strapiUploadUrl:n,strapiUrl:i,presetType:"original"}),d=K({image:l,strapiUploadUrl:n,strapiUrl:i,presetType:"original"}),o=x.useMemo(()=>r?c==null?void 0:c.src:(d==null?void 0:d.src)??"",[r,c,d]);return!t||!l?null:s.jsxs("div",{className:`w-full h-[45vh] lg:max-h-[320px] lg:h-[30vh] max-w-[1440px] mx-auto bg-cover bg-center relative ${e!=null&&e.top?`mt-${e.top}px`:""} ${e!=null&&e.bottom?`mb-${e.bottom}px`:""} ${e!=null&&e.left?`pl-${e.left}px`:""} ${e!=null&&e.right?`pr-${e.right}px`:""}`,style:{...r&&{backgroundImage:`url(${o})`}},children:[r&&s.jsx("div",{className:"w-full h-full absolute top-0 left-0 bg-black bg-opacity-10 backdrop-blur-lg z-[0]"}),s.jsx("div",{className:"w-full h-full flex items-center justify-center z-[1] absolute top-0 left-0 p-4",children:s.jsx("img",{src:o,alt:"Ad banner pic desktop",className:"w-full h-full object-contain no-repeat"})})]})},ye={half:{value:.5,display:"1/2"},fourth:{value:1/4,display:"1/4"},third:{value:1/3,display:"1/3"}
10,twoThirds:{value:2/3,display:"2/3"}},Qt=e=>{const t=[];let l=[],r=0;if(e.forEach(a=>{var n;const i=((n=ye[a==null?void 0:a.size])==null?void 0:n.value)??ye.half.value;if(r+i>1){if(r<1){const d=(1+(1-r))/r;l=l.map(o=>({...o,adjustedWidth:ye[o.size].value*d}))}t.push(l),l=[a],r=i}else l.push(a),r+=i}),l.length>0){if(r<1){const i=(1+(1-r))/r;l=l.map(n=>({...n,adjustedWidth:ye[n.size].value*i}))}t.push(l)}return t},Kt=({component:e})=>{const[t,l]=x.useState(!1),{ENV:r}=G(),a=r==null?void 0:r.STRAPI_URL,i=r==null?void 0:r.STRAPI_UPLOAD_URL,{blocks:n}=e,c=x.useMemo(()=>Qt(n).map((d,o)=>(console.log({row:d}),s.jsx("div",{className:"flex gap-3",children:d==null?void 0:d.map(h=>{const{id:p,title:v,url:y,image:_,size:S}=h,{src:N}=K({image:_,strapiUrl:a,strapiUploadUrl:i,presetType:"original"});return s.jsxs(ae.div,{style:{backgroundImage:`url(${N})`,backgroundSize:"100%",backgroundPosition:"center",width:t?"100%":h.adjustedWidth?`${h.adjustedWidth*100}%`:`${ye[S].value*100}%`},whileHover:{backgroundSize:"105%",backgroundPosition:"center"},transition:{duration:.3,ease:"easeInOut"},className:"relative group w-full md:w-auto text-black text-xl flex justify-center items-center font-bold text-center h-80 bg-cover bg-center cursor-pointer z-[1] group",children:[s.jsx(Q,{to:y,className:"absolute w-full h-full top-0 left-0 z-[0]"}),s.jsx("div",{className:"absolute inset-0 bg-yellow-700 opacity-40 group-hover:opacity-60 transition-opacity duration-300 pointer-events-none"}),s.jsx("p",{className:"transition duration-300 text-white duration-300 text-xl font-medium z-[1]",children:v}),s.jsx("div",{className:"bg-white h-[0.5px] w-full origin-center scale-x-0 group-hover:scale-x-100 transition-transform duration-300 ease-in-out absolute bottom-0 left-0"})]},p)})},o))),[n,a,i,t]);return x.useEffect(()=>{const d=()=>{typeof window<"u"&&l(window.innerWidth<=768)};return d(),typeof window<"u"&&window.addEventListener("resize",d),()=>{typeof window<"u"&&window.removeEventListener("resize",d)}},[]),s.jsx("div",{className:"flex flex-col gap-3 py-12",children:c})},Ke=({review:{author_name:e="",rating:t=0,text:l=""},onClick:r})=>{var n;if(!(e!=null&&e.length)||!t||!(l!=null&&l.length))return null;const a=e.split(" ")[0],i=(n=e.split(" ").slice(1).map(c=>c[0]))==null?void 0:n.join("");return e=`${a} ${i}`,s.jsxs("button",{onClick:r,className:"border border-primary-500 flex flex-col p-4 min-h-[260px] text-left bg-reviews-card-background w-full","aria-label":`Read review by ${e}`,children:[s.jsxs("div",{className:"w-full flex justify-between",children:[s.jsx("h2",{className:"font-medium text-reviews-card-heading",children:e}),s.jsx(ns,{size:24})]}),s.jsx("div",{className:"flex items-center gap-x-[1px] mt-2",children:Array.from({length:t},(c,d)=>s.jsx(ke,{className:"w-5 h-5 text-reviews-stars"},d))}),s.jsxs(ie,{as:"p",variant:"body",className:"text-sm text-neutral-800 mt-2",children:['"',l.length>=200?`${l.slice(0,200)}...`:l,'"']}),(l==null?void 0:l.length)>200&&s.jsx(ie,{as:"p",variant:"caption",className:"text-primary-500 mt-2",children:"Read more"})]})},Vt=({review:e,onClose:t})=>e?s.jsxs("div",{className:"w-full h-full flex flex-col bg-white p-5 pt-4",children:[s.jsx("button",{onClick:t,className:"self-end mb-2",children:s.jsx(ws,{className:"w-5 h-5 text-gray-400 active:text-gray-500 transition-colors ease-in-out"})}),s.jsxs("div",{className:"w-full grid grid-cols-3",children:[s.jsxs("div",{className:"col-span-2 flex flex-col items-start lg:items-center gap-x-4 lg:flex-row",children:[s.jsx("img",{src:e==null?void 0:e.profile_photo_url,alt:`${e==null?void 0:e.author_name} profile`,width:28,height:28,className:"mb-1"}),s.jsxs("div",{children:[s.jsx("h1",{className:"font-medium text-reviews-card-heading",children:e==null?void 0:e.author_name}),s.jsx("p",{className:"block lg:hidden text-sm text-primary font-light",children:e==null?void 0:e.relative_time_description})]})]}),s.jsxs("div",{className:"col-span-1 flex justify-end items-start gap-x-3 lg:items-center",children:[s.jsx("p",{className:"hidden lg:block text-sm text-primary font-light",children:e==null?void 0:e.relative_time_description}),s.jsx(ns,{size:20})]})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"flex items-center gap-x-1 mt-2",children:Array.from({length:e==null?void 0:e.rating},(l,r)=>s.jsx(ke,{className:"w-5 h-5 text-reviews-stars"},r))}),s.jsxs("p",{className:"text-sm text-gray-600 mt-4",children:['"',e==null?void 0:e.text,'"']})]})]}):null,Le=e=>{var _,S,N,I,W,O,D,u,f,w,g;const{ENV:t}
10=G(),l=x.useRef(null),r=Re(),a=$e({minWidth:768}),[i,n]=x.useState(null),c=(t==null?void 0:t.STRAPI_URL)??"",d=(t==null?void 0:t.STRAPI_UPLOAD_URL)??"",o=((S=(_=e==null?void 0:e.reviews)==null?void 0:_.reviews)==null?void 0:S.length)??0,h=j=>((j==null?void 0:j.rating)??0)>4,p=e!=null&&e.backgroundImage?K({image:(N=e==null?void 0:e.backgroundImage)==null?void 0:N.image,strapiUrl:c,strapiUploadUrl:d,presetType:"large"}):null;x.useEffect(()=>{l.current&&!r&&Object.assign(l.current,{mousewheel:{active:!0,forceToAxis:!0,releaseOnEdges:!0,sensitivity:.5,thresholdDelta:1,thresholdTime:100},scrollbar:{el:".swiper-scrollbar",hide:!0},freeMode:!0,breakpoints:{320:{slidesPerView:1.25},590:{slidesPerView:1.5},640:{slidesPerView:2.5},768:{slidesPerView:3.5},1024:{slidesPerView:4},1080:{slidesPerView:4},1440:{slidesPerView:4}}})},[r]);const v=j=>{n(j)},y=()=>{n(null)};return o<3?null:r?s.jsxs("div",{className:"w-full max-w-[1440px] p-6 m-auto min-h-[250px]",children:[s.jsxs("div",{className:"w-full flex flex-col items-center justify-center mb-6",children:[s.jsx("div",{className:"w-[320px] h-10 bg-secondary-100 animate-pulse"}),s.jsx("div",{className:"flex items-end gap-x-2 mt-1 lg:mt-4",children:s.jsx("div",{className:"flex items-center gap-x-[1px]",children:s.jsx("div",{className:"w-[160px] h-10 bg-secondary-100 animate-pulse"})})})]}),s.jsx("div",{className:"flex gap-x-4",children:Array.from({length:4},(j,U)=>s.jsx("div",{className:"min-w-[360px] h-[250px] bg-secondary-100 animate-pulse"},U))})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:P("w-full max-w-[1440px] p-6 m-auto min-h-[250px] relative",e==null?void 0:e.tailwindClasses),style:{backgroundImage:`url(${p==null?void 0:p.src})`,backgroundSize:"cover",backgroundPosition:"center"},children:[s.jsxs("div",{className:"w-full flex flex-col items-center justify-center mb-6",children:[(e==null?void 0:e.googleReviewsTitle)&&s.jsx("div",{className:"flex flex-col justify-center items-center",children:s.jsx(te,{...e==null?void 0:e.googleReviewsTitle})}),s.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-x-2 mt-1 lg:mt-4",children:[s.jsx("div",{className:"flex items-center gap-x-[1px]",children:Array.from({length:5},(j,U)=>s.jsx(ke,{className:"w-5 h-5 text-reviews-stars"},U))}),s.jsxs("p",{className:"text-sm text-reviews-text font-light mt-1",children:["(",(I=e==null?void 0:e.reviews)==null?void 0:I.totalReviews," Google Reviews)"]})]})]}),a&&o<4&&s.jsx("div",{className:"w-full flex justify-center",children:s.jsx("div",{className:"w-auto mx-auto flex justify-center gap-x-4",children:(D=(O=(W=e==null?void 0:e.reviews)==null?void 0:W.reviews)==null?void 0:O.filter(h))==null?void 0:D.map((j,U)=>{const A=()=>v(j);return s.jsx(Ke,{review:j,onClick:A},`google-review-${U}-${j==null?void 0:j.id}`)})})}),s.jsx("div",{className:P("w-full",a&&o<4?"hidden":""),children:s.jsx("swiper-container",{ref:l,"space-between":16,mousewheel:"true","scroll-bar":"true",children:(w=(f=(u=e==null?void 0:e.reviews)==null?void 0:u.reviews)==null?void 0:f.filter(h))==null?void 0:w.map((j,U)=>{const A=()=>v(j);return s.jsx("swiper-slide",{children:s.jsx(Ke,{review:j,onClick:A})},`google-review-${U}-${j==null?void 0:j.id}`)})})}),s.jsx(Me,{floatingImages:(g=(e==null?void 0:e.floatingImages)??[])==null?void 0:g.map((j,U)=>({id:U.toString(),image:j==null?void 0:j.image,customCss:j==null?void 0:j.customCss,tailwindClasses:(j==null?void 0:j.tailwindClasses)??""}))})]}),s.jsx(vs,{isOpen:!!i,onClose:y,children:s.jsx(Vt,{review:i,onClose:y})})]})},Jt=()=>s.jsx("div",{className:"container mx-auto px-4 py-8 animate-pulse",children:s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[...Array(3)].map((e,t)=>s.jsxs("div",{className:"border border-gray-200 rounded p-4 space-y-3",children:[s.jsx("div",{className:"flex items-center space-x-1",children:[...Array(5)].map((l,r)=>s.jsx("div",{className:"h-4 w-4 bg-gray-200 rounded"},r))}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded w-full"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-full"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-5/6"})]}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 pt-2"})]},t))})}),Ve=({title:e,items:t,ctaLink:l,ctaText:r})=>{const a=x.useRef(null),i=Re();x.useEffect(()=>{!i&&a.current&&Object.assign(a.current,{mousewheel:{active:!0,forceToAxis:!0,releaseOnEdges:!0,sensitivity:.5,thresholdDelta:1,thresholdTime:100},scrollbar:{el:".swiper-scrollbar",hide:!0},freeMode:!0,breakpoints:{320:{slidesPerView:1.1},640:{slidesPerView:2.5},1440:{slidesPerView:3}}})},[i]);const n=t==null?void 0:t.map(c=>{var d,o;return{description:c.description,image:((o=(d=c.image.data)==null?void 0:d.attributes)==null?void 0:o.formats)??{},name:c.title,fullImage:c.image,slug:`${c.slug}`}});return s.jsx("div",{className:"w-full lg:min-h-[45vh] bg-white flex justify-center px-6",children:s.jsx("div",{className:"w-full py-8 lg:py-12 max-w-[1440px] h-full flex flex-col gap-y-8",children:s.jsxs("div",{className:"lg:px-6 text-xl font-semibold text-primary-900 w-full flex-col",children:[s.jsxs("div",{className:`flex w-full ${l&&r?"justify-between":"justify-center"} items-center py-6 lg:pb-6`,children:[s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx(ie,{as:"h3",variant:"h3",weight:"medium",className:"text-primary-900 text-center",children:e}),!(l&&r)&&s.jsx("div",{className:"flex justify-center pt-6 w-full",children:s.jsx(ge,{className:"bg-primary-100 w-full max-w-[240px]"})})]}),l&&r&&s.jsx(Q,{to:l,className:"text-sm text-active lg:font-medium",children:s.jsx(ne,{variant:"outline",spacing:"custom",rightDecorator:s.jsx(cs,{className:"w-4 h-4 text-primary-300"}),children:r})})]}),!!(l&&r)&&s.jsx("div",{className:"w-full",children:s.jsx(ge,{className:"w-full bg-primary-400"})}),!i&&s.jsx(Te,{keyProp:`featured-content-slider-${e}`,content:n,ref:a})]})})})},Zt=({tailwindClasses:e="",header:t,promos:l,backgroundImage:r})=>{const a=Ce(t==null?void 0:t.color,"bg"),i=Ce(t==null?void 0:t.color,"text"),n=t==null?void 0:t.size,{ENV:c}=G(),d=r?K({image:r,strapiUploadUrl:(c==null?void 0:c.STRAPI_UPLOAD_URL)??"",strapiUrl:(c==null?void 0:c.STRAPI_URL)??"",presetType:"large"}).src:null;return s.jsx("div",{className:"relative w-full h-full",style:{backgroundImage:d?`url(${d})`:"none",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:s.jsxs("div",{className:P("flex flex-col items-center justify-center p-4 py-6 max-w-7xl mx-auto gap-y-8 min-h-[55vh]",e),children:[!!t&&s.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[s.jsx(ie,{variant:n,className:P(i,"text-center",t==null?void 0:t.tailwindClasses),weight:t.weight,style:{textAlign:(t==null?void 0:t.align)??"left"},children:t.value}),s.jsx("div",{className:`h-[1px] w-full ${a} opacity-30`})]}),s.jsx("div",{className:`grid gap-6 w-full max-w-7xl mx-auto ${l.length===1?"grid-cols-1":l.length===2?"grid-cols-1 lg:grid-cols-2":"grid-cols-1 lg:grid-cols-3"}`,children:l==null?void 0:l.map((o,h)=>{const p=K({image:o.image,strapiUploadUrl:c.STRAPI_UPLOAD_URL,strapiUrl:c.STRAPI_URL});return s.jsx("div",{className:"flex-1 max-w-xl mx-auto w-full",children:s.jsx("img",{src:p.src,style:o==null?void 0:o.customCss,alt:o.image.data.attributes.alternativeText,className:"w-full h-auto object-contain min-h-[200px]"})},h)})})]})})},Xt=(e,t)=>
10Array(t).fill(e).flat(),el=e=>{const{ENV:t}=G(),l=(t==null?void 0:t.STRAPI_URL)??"",r=(t==null?void 0:t.STRAPI_UPLOAD_URL)??"",{tailwindClasses:a="",images:i=[]}=e,n=(i==null?void 0:i.length)<12?Xt(i,5):i;return s.jsx("div",{className:a??"",children:s.jsx(ts,{auto:!0,loop:!0,loopDelay:2e3,visibleSlides:{def:5},outerClassName:"pb-0",slides:n.map(c=>{const d=K({image:c==null?void 0:c.image,strapiUploadUrl:r,strapiUrl:l,presetType:"large"});return s.jsx("div",{className:"w-full h-full flex justify-center items-center",children:c!=null&&c.href?s.jsx(Q,{to:c.href,children:s.jsx("img",{src:d.src,alt:"Icon",className:(c==null?void 0:c.tailwindClasses)??""})}):s.jsx("img",{src:d.src,alt:"item",className:(c==null?void 0:c.tailwindClasses)??""})},c==null?void 0:c.href)})})})},Je=({backgroundImage:e,textContent:t,textContentTailwindClasses:l,cta:r,className:a="",overlayOpacity:i=.3,contentPosition:n="left",textAlign:c="left",floatingImages:d,slugOverlay:o,anchorId:h,imageLoading:p="lazy"})=>{var f,w,g,j,U,A,V,b,C,$,k,M,q,E,z,B,m,J;const v=Se(),{ENV:y}=G(),_=y==null?void 0:y.STRAPI_URL,S=y.STRAPI_UPLOAD_URL,N=K({image:e.image,strapiUploadUrl:S,strapiUrl:_,presetType:"large"}),I=()=>{o&&v(o)},W=n==="center"?"items-center":n==="right"?"items-end":"items-start",O=()=>{var Ne;if(!((Ne=r==null?void 0:r.slug)!=null&&Ne.length))return;const R=r.slug,ce=xe=>{try{const he=new URL(xe);return he.protocol==="http:"||he.protocol==="https:"}catch{return!1}},le=xe=>{try{const he=xe.startsWith("/")?xe:`/${xe}`;return new URL(he,location.origin).toString()}catch{return"/"}};let de;if(ce(R)){de=R,window.open(de,"_blank");return}else{de=le(R),v(R);return}},D=(g=(w=(f=e==null?void 0:e.image)==null?void 0:f.data)==null?void 0:w.attributes)==null?void 0:g.mime.includes("video"),u=D?ys({video:e==null?void 0:e.image,strapiUrl:_,strapiUploadUrl:S}):void 0;return s.jsxs("div",{className:P("relative w-full h-full",a),id:h,children:[o&&s.jsx("button",{className:"absolute h-full top-[0] right-12 z-[1] hidden md:flex items-center",onClick:I,children:s.jsxs("div",{className:"flex items-center gap-2 border-b border-background",children:[s.jsx("p",{className:"text-sm uppercase tracking-[.2em] text-background",children:"VIEW ALL"}),s.jsx(Fs,{className:"w-4 h-4 text-background"})]})}),s.jsxs("div",{className:"relative flex w-full h-full justify-center",children:[(N==null?void 0:N.src)&&s.jsx(s.Fragment,{children:D&&u?s.jsx("video",{autoPlay:!0,muted:!0,playsInline:!0,loop:!0,preload:"metadata",width:((A=(U=(j=e==null?void 0:e.image)==null?void 0:j.data)==null?void 0:U.attributes)==null?void 0:A.width)||1600,height:((C=(b=(V=e==null?void 0:e.image)==null?void 0:V.data)==null?void 0:b.attributes)==null?void 0:C.height)||900,className:"absolute inset-0 w-full h-full object-cover",children:s.jsx("source",{src:u==null?void 0:u.src,type:"video/webm"})}):s.jsx("div",{className:"absolute inset-0 w-full h-full",children:s.jsx("div",{className:"relative w-full h-full",children:s.jsx("img",{src:N==null?void 0:N.src,srcSet:N==null?void 0:N.srcset,sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 100vw, 1440px",alt:((M=(k=($=e==null?void 0:e.image)==null?void 0:$.data)==null?void 0:k.attributes)==null?void 0:M.alternativeText)??"Hero Banner Image",width:((z=(E=(q=e==null?void 0:e.image)==null?void 0:q.data)==null?void 0:E.attributes)==null?void 0:z.width)||1600,height:((J=(m=(B=e==null?void 0:e.image)==null?void 0:B.data)==null?void 0:m.attributes)==null?void 0:J.height)||900,decoding:"async",className:P("w-full h-full object-cover",e==null?void 0:e.tailwindClasses),loading:p})})})}),s.jsx("div",{className:"absolute inset-0 w-full h-full bg-black",style:{opacity:i??.3}}),s.jsx("div",{className:`absolute w-[100%] max-w-[1440px] h-full flex flex-col p-4 lg:p-8 justify-center ${W}`,children:s.jsxs("div",{className:P("flex flex-col text-center w-auto",l),children:[t==null?void 0:t.map((R,ce)=>{const le=Ce(R==null?void 0:R.color,"text"),de=c==="center"?"text-center":c==="right"?"text-right":"text-left";return s.jsx(ie,{variant:R==null?void 0:R.size,className:P(le,de,R==null?void 0:R.tailwindClasses),weight:R==null?void 0:R.weight,children:R==null?void 0:R.value},`${R==null?void 0:R.value}-${ce}`)}),o&&s.jsx("div",{className:"flex md:hidden self-center mt-1",children:s.jsx("button",{className:"flex items-center gap-2 border-b border-background border-b-[.5px]",onClick:I,children:s.jsx("p",{className:"text-xs uppercase tracking-[.2em] text-background",children:"VIEW ALL"})})}),r&&s.jsx(ne,{label:r==null?void 0:r.label,decorator:r==null?void 0:r.decorator,decoratorPosition:r==null?void 0:r.decoratorPosition,variant:r==null?void 0:r.variant,className:(r==null?void 0:r.tailwindClasses)??"",onClick:O})]})})]}),d&&d.length>0&&s.jsx(Me,{floatingImages:d})]})},sl={slow:8500,normal:6500,fast:3e3},tl=e=>{const{tailwindClasses:t="",slides:l=[]}=e;if((l==null?void 0:l.length)===1){const i=l==null?void 0:l[0];
10return s.jsx(Je,{...i,className:P("h-[48vh] w-full",t),anchorId:e==null?void 0:e.anchorId})}const r=e!=null&&e.heroSlideSpeed?sl[e==null?void 0:e.heroSlideSpeed]:6500,a=[Us({playOnInit:!0,delay:r})];return s.jsx("div",{className:P("w-full",t),id:e==null?void 0:e.anchorId,children:s.jsx(ls,{plugins:a,className:"w-full h-full",opts:{loop:!0},children:s.jsx(rs,{className:"h-full min-h-[48vh]",outerClassName:"h-full",children:l.map((i,n)=>s.jsx(as,{className:"h-full",children:s.jsx(Je,{...i,imageLoading:n===0&&((e==null?void 0:e.index)??0)<3?"eager":"lazy"})},n))})})})},ll=({image:e=null,overlayOpacity:t=.3,overlayText:l})=>{var o,h,p;const{ENV:r}=G(),a=(r==null?void 0:r.STRAPI_UPLOAD_URL)??"",i=(r==null?void 0:r.STRAPI_UR)??"",{src:n,srcset:c,sizes:d}=K({image:e==null?void 0:e.image,strapiUrl:i,strapiUploadUrl:a,presetType:"medium"});return s.jsx("a",{href:e==null?void 0:e.href,className:"w-full",children:s.jsx("div",{className:"relative group cursor-pointer w-full aspect-square overflow-hidden",children:s.jsxs("div",{className:"relative w-full h-full",children:[s.jsx("img",{src:n,srcSet:c,sizes:d,alt:((p=(h=(o=e==null?void 0:e.image)==null?void 0:o.data)==null?void 0:h.attributes)==null?void 0:p.alternativeText)??`Grid Image ${e!=null&&e.href?`Link to ${e==null?void 0:e.href}`:""}`,className:P("w-full h-full object-cover transition-transform duration-500 ease-out group-hover:scale-105",e==null?void 0:e.tailwindClasses)}),s.jsx("div",{className:"absolute inset-0 transition-all duration-300 group-hover:bg-opacity-40",style:{backgroundColor:`rgba(0, 0, 0, ${t})`},children:s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsx("div",{className:"transform transition-all duration-300 group-hover:scale-105",children:s.jsx(te,{...l})})})})]})})})},rl=({tailwindClasses:e="",header:t,gridItems:l=[]})=>{const r=l.length>=4?"lg:grid-cols-4":`lg:grid-cols-${l.length}`;return s.jsxs("div",{className:P("mx-auto max-w-[1440px] px-4 py-8",e),children:[t&&s.jsx("div",{className:"w-full flex justify-center items-center p-4",children:s.jsx(te,{...t})}),s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:`grid grid-cols-1 ${r} gap-4 w-full md:w-auto`,children:l==null?void 0:l.map((a,i)=>s.jsx(ll,{...a},`grid-image-${i}`))})})]})},Ze=({textContent:e,cta:t})=>s.jsxs("div",{className:"flex flex-col lg:flex-1 lg:max-w-[700px]",children:[e.map((l,r)=>s.jsx(te,{...l},`${l==null?void 0:l.value}-${r}`)),s.jsx("div",{className:"w-full hidden lg:block",children:!!(t&&(t!=null&&t.slug))&&s.jsx(Q,{to:t==null?void 0:t.slug,children:s.jsx(ne,{...t,className:t.tailwindClasses??""})})})]}),Xe=({image:e})=>{const{ENV:t}=G(),l=(t==null?void 0:t.STRAPI_URL)??"",r=(t==null?void 0:t.STRAPI_UPLOAD_URL)??"",a=K({strapiUploadUrl:r,strapiUrl:l,image:e==null?void 0:e.image,presetType:"large"});return s.jsx("div",{className:P("flex-1 w-full h-screen min-h-[320px] max-h-[500px] flex justify-center items-center",e==null?void 0:e.tailwindClasses),style:{backgroundImage:`url(${a.src})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}})},al=({direction:e,textContent:t=[],image:l=null,cta:r=null,tailwindClasses:a=""})=>{const i=x.useMemo(()=>{switch(e){case"text-to-image":return s.jsxs(s.Fragment,{children:[s.jsx(Ze,{textContent:t??[],cta:r}),s.jsx(Xe,{image:l??null})]});case"image-to-text":return s.jsxs(s.Fragment,{children:[s.jsx(Xe,{image:l??null}),s.jsx(Ze,{textContent:t??[],cta:r})]});default:return null}},[e,t,l,r]);return s.jsx("div",{className:P("w-full min-h-[65vh] lg:min-h-[50vh] p-4 lg:p-8 flex items-center justify-center",a),children:s.jsxs("div",{className:"w-full h-full max-w-[1600px] flex flex-col lg:flex-row justify-center items-center gap-8 lg:gap-16",children:[i,s.jsx("div",{className:"w-full lg:hidden",children:!!(r&&(r!=null&&r.slug))&&s.jsx(Q,{to:r==null?void 0:r.slug,children:s.jsx(ne,{...r,className:r.tailwindClasses??""})})})]})})},il={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",def:null},me=e=>{if(!e)return{};let t=e.def||{};return Object.keys(e).forEach(l=>{if(l!=="default"){const r=il[l];(r?$e({query:r}):!1)&&(t={...t,...e[l]})}}),t},nl=({image:e,presetType:t="medium"})=>{var n,c,d,o,h,p;const{ENV:l}=G(),r=(l==null?void 0:l.STRAPI_URL)??"",a=(l==null?void 0:l.STRAPI_UPLOAD_URL)??"";if(!(e!=null&&e.image))return null;const i=K({strapiUploadUrl:a,strapiUrl:r,image:e==null?void 0:e.image,presetType:t});return e.href?s.jsx(Q,{to:e.href,children:s.jsx("img",{src:i.src,sizes:i.sizes,srcSet:i.srcset,alt:(d=(c=(n=e.image)==null?void 0:n.data)==null?void 0:c.attributes)==null?void 0:d.alternativeText,className:(e==null?void 0:e.tailwindClasses)??""})}):s.jsx("img",{src:i.src,sizes:i.sizes,srcSet:i.srcset,alt:(p=(h=(o=e.image)==null?void 0:o.data)==null?void 0:h.attributes)==null?void 0:p.alternativeText,className:(e==null?void 0:e.tailwindClasses)??""})},cl=({text:e,anchor:t,selected:l,selectedItemStyle:r,icon:a,focusedIcon:i,onClick:n})=>{const c=me(l?(r==null?void 0:r.text)??{}:{}),d=me(l?(r==null?void 0:r.container)??{}:{}),o=a?"flex flex-col items-center justify-center":"";return s.jsx("a",{href:`#${t}`,onClick:n,"data-anchor":`#${t}`,children:s.jsxs("div",{className:P("px-3 py-2 min-w-[90px]",o),style:d,children:[a&&s.jsx(nl,{image:l&&i?i:a}),s.jsx(te,{...e,className:"whitespace-nowrap text-center",styles:{...e.styles,...c}})]})})},ol=({title:e,items:t,tailwindClasses:l,selectedItemStyle:r,revealPositionOverride:a})=>{var he,_e;const[i,n]=x.useState(null),[c,d]=x.useState([]),[o,h]=x.useState(!1),[p,v]=x.useState(!1),[y,_]=x.useState(!1),[S,N]=x.useState(!0),[I,W]=x.use
10State(!1),O=bs(),{siteConfigs:D}=G(),u=((he=D==null?void 0:D.announcementText)==null?void 0:he.length)>0,{scrollDir:f}=Ns({thr:40}),{isMobileHeaderRevealed:w}=Cs(),g=x.useRef(null),j=x.useRef(null),U=x.useRef(null),A=x.useRef(null),V=Es(g,{amount:1}),b=x.useMemo(()=>V,[V]),C=x.useMemo(()=>{if(b)return-200;if(f===Ss.Down&&o)return 0;if(O&&u)return 190;if(O&&!u)return 150;if(!O&&!u)return o?80:95},[O,u,b,f,o]),$=x.useCallback(T=>{T.preventDefault();const H=T.currentTarget.getAttribute("href");if(!(H!=null&&H.startsWith("#")))return;const Y=document.querySelector(H);if(!Y)return;const ee=Y.getBoundingClientRect().top+window.scrollY-320;window.scrollTo({top:ee,behavior:"smooth"})},[]),k=x.useCallback(T=>{if(!(T.scrollWidth>T.clientWidth)){_(!1),N(!1);return}const Y=T.scrollLeft<=5,L=Math.abs(T.scrollWidth-T.clientWidth-T.scrollLeft)<=5;_(!Y),N(!L)},[]),M=x.useCallback(T=>{const H=T.target;k(H),A.current&&clearTimeout(A.current)},[k]),q=x.useCallback(()=>{if(!i)return;const T=j.current;if(!T)return;const H=Array.from(T.children).find(Y=>{var L;return((L=Y.dataset.anchor)==null?void 0:L.replace("#",""))===i});if(H){const Y=T.clientWidth,L=H.offsetLeft,ee=H.offsetWidth,Z=L-Y/2+ee/2;T.scrollTo({left:Math.max(0,Z),behavior:"smooth"})}},[i]),E=x.useCallback(T=>H=>{const Y=H.current;if(!Y)return;const L=200,ee=Y.scrollLeft;let Z;if(T==="left")Z=Math.max(0,ee-L);else{const ue=Y.scrollWidth-Y.clientWidth;Z=Math.min(ue,ee+L)}Y.scrollTo({left:Z,behavior:"smooth"})},[]),z=x.useCallback(()=>{E("left")(j)},[E]),B=x.useCallback(()=>{E("right")(j)},[E]),m=x.useCallback(()=>{E("left")(U)},[E]),J=x.useCallback(()=>{E("right")(U)},[E]);x.useEffect(()=>{W(!0),setTimeout(()=>{const T=j.current;T&&k(T)},100)},[k]),x.useEffect(()=>{q()},[i,q]),x.useEffect(()=>{const T=j.current;return T&&I&&(T.addEventListener("scroll",M,{passive:!0}),setTimeout(()=>{k(T)},50)),()=>{T&&T.removeEventListener("scroll",M),A.current&&clearTimeout(A.current)}},[M,k,I]),x.useEffect(()=>{const T=()=>{};return window.addEventListener("scroll",T,{passive:!0}),()=>{window.removeEventListener("scroll",T)}},[]),x.useEffect(()=>{if(window!=null&&window.matchMedia&&I){const T=window.matchMedia("(max-width: 1024px)");h(T.matches);const H=L=>{h(L.matches)};T.addEventListener("change",H);const Y=()=>{const L=j.current;L&&setTimeout(()=>{k(L)},100)};return window.addEventListener("resize",Y),()=>{T.removeEventListener("change",H),window.removeEventListener("resize",Y)}}},[k,I]);const R=((_e=t==null?void 0:t[(t==null?void 0:t.length)-1])==null?void 0:_e.anchor)??null,ce=x.useMemo(()=>s.jsxs("div",{className:"relative w-full",children:[s.jsx("div",{ref:g,className:"w-full left-0 transition-opacity duration-300 bg-background z-[2] transition-transform overlfow-hidden",children:s.jsx("div",{className:"container mx-auto p-2 px-4 w-full max-w-[1440px] relative overflow-auto noScrollBar",children:s.jsxs("div",{className:"flex items-center gap-x-4 lg:gap-x-8 w-full",children:[e&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"h-6 w-24 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"w-[1px] h-[28px] bg-gray-200"})]}),s.jsx("div",{className:"w-full relative",children:s.jsx("div",{className:P("w-full flex items-center gap-x-2 lg:gap-x-6",l),children:Array.from({length:12}).map((T,H)=>s.jsx("div",{className:"h-8 w-20 bg-gray-200 rounded animate-pulse flex-shrink-0"},H))})})]})})}),s.jsx("div",{className:"fixed top-0 left-0 w-full bg-background shadow-sm z-[2] transition-transform duration-300 translate-y-[-100px]",children:s.jsx("div",{className:"container mx-auto p-2 px-4 w-full max-w-[1440px] relative",children:s.jsxs("div",{className:"flex items-center gap-x-4 lg:gap-x-8 w-full",children:[e&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"h-6 w-24 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"w-[1px] h-[28px] bg-gray-200"})]}),s.jsx("div",{className:"w-full overflow-hidden relative",children:s.jsx("div",{className:"w-full flex items-center gap-x-2",children:Array.from({length:6}).map((T,H)=>s.jsx("div",{className:"h-8 w-20 bg-gray-200 rounded animate-pulse flex-shrink-0"},H))})})]})})})]}),[e,l]);x.useEffect(()=>{const T={root:null,rootMargin:"0px",threshold:1},H=new Map(t.map((ee,Z)=>[ee.anchor,Z])),Y=ee=>{d(Z=>{let ue=[...Z];return ee.forEach(fe=>{const je=fe.target.id.replace("#","");fe.isIntersecting?ue.includes(je)||ue.push(je):ue=ue.filter(js=>js!==je)}),ue.sort((fe,je)=>(H.get(fe)??0)-(H.get(je)??0))}),ee.forEach(Z=>{var fe;Z.target.id.replace("#","")===R&&((fe=Z==null?void 0:Z.boundingClientRect)==null?void 0:fe.y)<=0?v(!0):v(!1)})},L=new IntersectionObserver(Y,T);return t.forEach(ee=>{const Z=document.getElementById(ee.anchor);Z&&L.observe(Z)}),()=>L.disconnect()},[R,t]),x.useEffect(()=>{c.length>0&&n(c[0])},[c]);const le=x.useCallback((T,H,Y)=>s.jsx("div",{className:"container mx-auto p-2 px-4 w-full max-w-[1440px] relative overflow-x-auto noScrollBar overscroll-contain overflow-y-hidden",children:s.jsxs("div",{className:P("flex items-center gap-x-4 lg:gap-x-8 w-full",l),children:[e&&s.jsxs(s.Fragment,{children:[s.jsx(te,{...e}),s.jsx("div",{className:"w-[1px] h-[28px] bg-gray-500"})]}),s.jsxs("div",{className:"w-full overflow-hidden relative",children:[y&&s.jsxs("div",{className:"absolute left-0 top-0 bottom-0 z-1 w-20 flex items-center cursor-pointer",onClick:H,role:"button",tabIndex:0,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),H())},"aria-label":"Scroll left",children:[s.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 100%)"}}),s.jsx(ss,{className:"relative h-4 w-4 text-neutral-500 hover:text-neutral-700 transition-colors"})]}),s.jsx("div",{ref:T,className:"w-full flex items-center gap-x-4 overflow-scroll noScrollBar overscroll-contain",onScroll:L=>{M(L.nativeEvent)},children:t==null?void 0:t.map(L=>{var ee;return s.jsx(cl,{...L,selectedItemStyle:r??{},onClick:$,selected:i===((ee=L==null?void 0:L.anchor)==null?void 0:ee.replace("#",""))},L==null?void 0:L.anchor)})}),S&&s.jsxs("div",{className:"absolute right-0 top-0 bottom-0 z-1 w-20 flex items-center justify-end cursor-pointer",onClick:Y,role:"button",tabIndex:0,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),Y())},"aria-label":"Scroll right",children:[s.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 100%)"}}),s.jsx(Ie,{className:"relative h-4 w-4 text-neutral-500 hover:text-neutral-700 transition-colors"})]})]})]})}),[t,e,r,i,l,$,y,S,M]),de=x.useMemo(()=>le(j,z,B),[le,z,B]),Ne=x.useMemo(()=>le(U,m,J),[le,m,J]),xe=x.useMemo(()=>{const T=a!=null?100+a:"100";return{transform:`translateY(${!w&&p||!w&&b?`-${T}`:w?C:o?"0":a??95}px)`}},[a,C,w,p,b,o]);return I?s.jsxs(x.Fragment,{children:[s.jsx("div",{className:"relative w-full",children:s.jsx("div",{ref:g,className:"w-full left-0 transition-opacity duration-300 bg-background z-[2] transition-transform overflow-hidden",children:de})}),s.jsx("div",{className:"fixed top-0 left-0 w-full bg-background shadow-sm z-[2] transition-transform duration-300 overflow-hidden",style:xe,children:Ne})]}):ce};function dl(e){if(e==null)return{src:"",srcset:"",sizes:""};const{original:t,scale1x:l,scale2x:r,scale3x:a}=e,i=[`${l} 150w`,`${r} 300w`,`${a} 450w`].join(", "),n=["(min-width: 1024px) 33vw","(min-width: 768px) 50vw","100vw"].join(", ");return{src:t,srcset:i,sizes:n}}const ul=e=>({name:me((e==null?void 0:e.name)??{}),description:me((e==null?void 0:e.description)??{}),image:me((e==null?void 0:e.image)??{}),container:me((e==null?void 0:e.container)??{})}),xl=({name:e,description:t,displayPrice:l,imageAttributes:r,slug:a,style:i})=>{const{name:n,description:c,image:d,container:o}=ul(i??{});return s.jsx(Q,{to:`/products/${a}`,children:s.jsxs("div",{className:"flex flex-col justify-between h-full bg-gray-100",style:o,children:[s.jsx("div",{className:"p-2",children:s.jsx("div",{className:"aspect-square w-full h-full bg-gray-100 rounded-lg overflow-hidden p-4",children:s.jsx("img",{src:r==null?void 0:r.src,sizes:r==null?void 0:r.sizes,srcSet:r==null?void 0:r.srcset,alt:e,className:"w-full h-full object-cover mix-blend-multiply hover:scale-[102%] transition-transform duration-300",style:d})})}),s.jsxs("div",{className:"flex flex-col gap-1 justify-between h-full",children:[s.jsxs("div",{className:"flex flex-col gap-1 pb-4 px-4",children:[s.jsx("h3",{className:"font-medium text-lg line-clamp-3",style:n,children:e}),s.jsx("p",{className:"text-sm text-gray-500 line-clamp-2",style:c,children:t!=null&&t.length?t:"No description available"})]}),s.jsx("div",{className:"p-4",children:s.jsx("span",{className:"text-xl font-medium",children:l})})]})]})})},hl=({title:e,products:t,anchorId:l,cardCustomStyle:r})=>{var a;return s.jsx("div",{className:"w-full justify-center items-center flex",children:s.jsxs("div",{className:"w-full max-w-[1440px] lg:px-6 p-4 flex flex-col items-center",children:[s.jsx("div",{className:"w-full",id:l??void 0,children:e&&s.jsx(te,{...e})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-5 ga
10p-4 w-full mt-6",children:(a=t==null?void 0:t.edges)==null?void 0:a.map(i=>{var o,h,p,v,y,_,S,N,I;const n=i==null?void 0:i.node.defaultAvailableVariant,c=(v=(p=(h=(o=i==null?void 0:i.node)==null?void 0:o.variants)==null?void 0:h.edges)==null?void 0:p[0])!=null&&v.node?(N=(S=(_=(y=i==null?void 0:i.node)==null?void 0:y.variants)==null?void 0:_.edges)==null?void 0:S[0])==null?void 0:N.node:null,d=dl((n==null?void 0:n.image)??(c==null?void 0:c.image));return s.jsx(xl,{slug:i.node.slug,name:i.node.name,description:(c==null?void 0:c.description)??"",displayPrice:((I=n==null?void 0:n.price)==null?void 0:I.presentation)??"",imageAttributes:d,style:r},i.node.id)})})]})})},fl=x.lazy(()=>os(()=>import("./KegOrderForm-ClB_wjMm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])).then(e=>({default:e.KegOrderForm}))),ml=x.lazy(()=>os(()=>import("./RiverTripForm-CAvtf8Sc.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])).then(e=>({default:e.RiverTripForm}))),pl=()=>s.jsx("div",{className:"w-full",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 pb-12 lg:pb-16 max-w-[1440px]",children:s.jsx("div",{className:"min-h-[60vh] animate-pulse bg-neutral-50"})})}),gl=new Map([["keg inquiry","keg"],["river trip inquiry","river-trip"]]),jl=({backgroundImage:e,orientation:t,subject:l,generalInfo:r,formTitle:a,formDescription:i,formFields:n,formButton:c,tailwindClasses:d=""})=>{var U,A,V;const[o,h]=x.useState({}),[p,v]=x.useState({}),y=$s(),_=gl.get((l==null?void 0:l.trim().toLowerCase())??"");if(_){const b=_==="keg"?fl:ml;return s.jsx(x.Suspense,{fallback:s.jsx(pl,{}),children:s.jsx(b,{formTitle:a,formDescription:i,generalInfo:r,tailwindClasses:d})})}const S=b=>{const C={"First Name":"firstName","Last Name":"lastName",Email:"email",Subject:"subject",Message:"message",Phone:"phone",Date:"date",Time:"time"},$=b.input.label||b.input.placeholder;return C[$]||b.id},N=b=>{const C=n.find($=>$.input.label===b||$.input.placeholder===b);return C==null?void 0:C.id},I=()=>{const b=["Catering Request"],C=N("First Name"),$=N("Last Name"),k=C?o[C]:"",M=$?o[$]:"";k&&M&&b.push(`${k} ${M}`);const q=N("Date"),E=q?o[q]:"";if(E)try{const m=new Date(E),R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][m.getMonth()],ce=m.getDate(),le=m.getFullYear(),de=`${R} ${ce} ${le}`;b.push(de)}catch{b.push(E)}const z=N("Time"),B=z?o[z]:"";if(B)try{const[m,J]=B.split(":"),R=(parseInt(m)+11)%12+1,ce=parseInt(m)>=12?"PM":"AM",le=`${R} ${J} ${ce}`;b.push(le)}catch{b.push(B)}return b.join(" ")},W=()=>{const b=[],C=N("Message"),$=C?o[C]:"";$!=null&&$.trim()&&(b.push(`Message: ${$}`),b.push("")),b.push("=== CATERING REQUEST DETAILS ==="),b.push("");const k=["First Name","Last Name","Email","Subject","Message"];return n.forEach(M=>{var E;const q=M.input.label||M.input.placeholder;if(!k.includes(q)&&((E=o[M.id])!=null&&E.trim())){let z=o[M.id];if(M.type==="date"&&z)try{const B=new Date(z),J=["January","February","March","April","May","June","July","August","September","October","November","December"][B.getMonth()],R=B.getDate(),ce=B.getFullYear();z=`${J} ${R}, ${ce}`}catch{}if(M.type==="time"&&z)try{const[B,m]=z.split(":"),J=(parseInt(B)+11)%12+1,R=parseInt(B)>=12?"PM":"AM";z=`${J}:${m} ${R}`}catch{}b.push(`${q}: ${z}`)}}),b.join(` 11`)},O=(b,C)=>{h($=>({...$,[b]:C})),p[b]&&v($=>({...$,[b]:""}))},D=(b,C)=>{if(b.input.required&&!C.trim())return`${b.input.label||b.input.placeholder} is required`;switch(b.validation){case"phone":if(C&&!/^[+]?[1-9][\d]{0,15}$/.test(C.replace(/\s/g,"")))return"Please enter a valid phone number";break;case"email":if(C&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C))return"Please enter a valid email address";break;case"date":if(C&&!/^\d{4}-\d{2}-\d{2}$/.test(C))return"Please enter a valid date";break;case"time":if(C&&!/^\d{2}:\d{2}$/.test(C))return"Please enter a valid time";break}return""},u=b=>{const C={};if(n.forEach($=>{const k=o[$.id]||"",M=D($,k);M&&(C[$.id]=M)}),v(C),Object.keys(C).length>0){b.preventDefault();return}console.log("Form submitted:",o)},f=()=>s.jsx("div",{className:"space-y-2 lg:w-3/4 w-auto",children:r.map((b,C)=>s.jsx(te,{...b,className:P("block",b.tailwindClasses)},C))}),w=()=>{var b,C,$,k,M;return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(te,{...a,className:P("block",a.tailwindClasses)}),s.jsx(te,{...i,className:P("block",i.tailwindClasses)})]}),s.jsxs(y.Form,{action:"/contact-us",method:"post",onSubmit:u,className:"space-y-4",children:[s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx("input",{type:"hidden",name:"subject",value:I()},`subject-${I()}`),s.jsx("input",{type:"hidden",name:"message",value:W()},`message-${W()}`),(()=>{const q=[];let E=[];for(let z=0;z<n.length;z++){const B=n[z];B.widthSpan==="half"?(E.push(B),(E.length===2||z===n.length-1)&&(q.push({type:"group",fields:[...E]}),E=[])):(E.length>0&&(q.push({type:"group",fields:[...E]}),E=[]),q.push({type:"single",field:B}))}return q.map((z,B)=>{if(z.type==="group")return s.jsx("div",{className:"flex gap-4",children:z.fields.map(m=>{const J=new Date().toISOString().split("T")[0];return s.jsx("div",{className:"flex-1",children:m.input.textarea?s.jsxs("div",{className:"w-full border px-4 py-2 bg-white",children:[m.input.label&&s.jsxs("label",{className:"block text-gray-400 font-light text-xs",children:[m.input.label,m.input.required&&s.jsx("span",{className:"text-red-500 font-light text-xs",children:"*"})]}),s.jsx(We,{name:S(m),placeholder:m.input.placeholder,value:o[m.id]||"",onChange:R=>O(m.id,R.target.value),required:m.input.required,rows:3,className:P("focus:outline-none focus:ring-0 placeholder-gray-300 p-0 rounded-none",p[m.id]?"border-destructive bg-input-error-background":"",m.input.tailwindClasses)}),p[m.id]&&s.jsxs("span",{className:"text-red-500 text-xs",children:["*",p[m.id]]})]}):s.jsx(De,{required:m.input.required,label:m.input.label||void 0,error:p[m.id],input:{name:S(m),type:m.type==="phone"?"tel":m.validation==="email"?"email":m.type,placeholder:m.input.placeholder,value:o[m.id]||"",onChange:R=>O(m.id,R.target.value),required:m.input.required,...m.type==="date"&&{min:J}},className:P((m.type==="date"||m.type==="time")&&["[&_input]:accent-primary","[&_input
11:focus]:border-primary","[&_input:focus]:ring-2","[&_input:focus]:ring-primary/20","[&_input]:color-scheme-light"],m.input.tailwindClasses)})},m.id)})},`group-${B}`);{const m=z.field,J=new Date().toISOString().split("T")[0];return s.jsx("div",{className:"w-full",children:m.input.textarea?s.jsxs("div",{className:"w-full border px-4 py-2 bg-white",children:[m.input.label&&s.jsxs("label",{className:"block text-gray-400 font-light text-xs",children:[m.input.label,m.input.required&&s.jsx("span",{className:"text-red-500 font-light text-xs",children:"*"})]}),s.jsx(We,{name:S(m),placeholder:m.input.placeholder,value:o[m.id]||"",onChange:R=>O(m.id,R.target.value),required:m.input.required,rows:3,className:P("focus:outline-none focus:ring-0 placeholder-gray-300 p-0 rounded-none",p[m.id]?"border-destructive bg-input-error-background":"",m.input.tailwindClasses)}),p[m.id]&&s.jsxs("span",{className:"text-red-500 text-xs",children:["*",p[m.id]]})]}):s.jsx(De,{required:m.input.required,label:m.input.label||void 0,error:p[m.id],input:{name:S(m),type:m.type==="phone"?"tel":m.validation==="email"?"email":m.type,placeholder:m.input.placeholder,value:o[m.id]||"",onChange:R=>O(m.id,R.target.value),required:m.input.required,...m.type==="date"&&{min:J}},className:P((m.type==="date"||m.type==="time")&&["[&_input]:accent-primary","[&_input:focus]:border-primary","[&_input:focus]:ring-2","[&_input:focus]:ring-primary/20","[&_input]:color-scheme-light"],m.input.tailwindClasses)})},m.id)}})})()]}),s.jsx(ne,{type:"submit",disabled:Object.keys(p).length>0||y.state==="submitting","aria-label":"Catering form submit",className:P("tracking-[.2em] bg-primary-500 text-xs text-white w-full md:w-auto font-medium rounded-none px-6 py-3",c==null?void 0:c.tailwindClasses),label:y.state==="submitting"?"SENDING...":(c==null?void 0:c.value)||"SEND"}),((b=y.data)==null?void 0:b.success)&&s.jsx("div",{className:"w-full p-6 bg-green-50 text-green-500 font-light text-sm",children:s.jsx("p",{children:(C=y.data)==null?void 0:C.message})}),y.data&&!(($=y.data)!=null&&$.success)&&((k=y.data)==null?void 0:k.message)&&s.jsx("div",{className:"w-full p-6 bg-red-50 text-red-500 font-light text-sm",children:s.jsxs("p",{children:["*",((M=y.data)==null?void 0:M.message)??"Failed to send message"]})})]})]})},g=t==="general_to_form",j=((V=(A=(U=e==null?void 0:e.image)==null?void 0:U.data)==null?void 0:A.attributes)==null?void 0:V.url)??null;return s.jsx("div",{className:P("w-full min-h-[50vh] bg-cover bg-center",d),style:j?{backgroundImage:`url(${j})`}:void 0,children:s.jsx("div",{className:P("container mx-auto p-6 py-12 lg:py-24"),children:s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:g?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"order-1 lg:order-1",children:f()}),s.jsx("div",{className:"order-2 lg:order-2",children:w()})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"order-2 lg:order-1",children:w()}),s.jsx("div",{className:"order-1 lg:order-2",children:f()})]})})})})},wl=({backgroundImage:e,content:t,tailwindClasses:l,slug:r,overlayOpacity:a,priority:i=!1})=>{var p,v,y;const{ENV:n}=G(),c=n==null?void 0:n.STRAPI_URL,d=n.STRAPI_UPLOAD_URL,o=K({image:e.image,strapiUploadUrl:d,strapiUrl:c,presetType:"medium"}),h=s.jsxs("div",{className:P("relative overflow-hidden flex items-end justify-center aspect-[3/5] min-w-[200px] max-w-[260px] h-[360px] shadow-md group w-full h-full cursor-pointer",e.containerTailwindClasses??""),children:[(o==null?void 0:o.src)&&s.jsx("img",{src:o.src,srcSet:o.srcset,sizes:o.sizes,alt:((y=(v=(p=e.image)==null?void 0:p.data)==null?void 0:v.attributes)==null?void 0:y.alternativeText)||"",className:P("object-cover w-full h-full transition-transform duration-300 group-hover:scale-105",e.tailwindClasses??""),loading:i?"eager":"lazy",decoding:i?"sync":"async",fetchPriority:i?"high":"auto",width:280,height:467}),s.jsx("div",{className:"absolute inset-0 pointer-events-none z-10",style:{backgroundColor:`rgba(0,0,0,${a})`}}),s.jsx("div",{className:P("absolute inset-0 flex items-center justify-center pointer-events-none z-20",l??""),children:t.map((_,S)=>s.jsx(te,{..._},`${S}-${_.value}`))})]});return r!=null?s.jsx(Q,{to:r,prefetch:"intent",tabIndex:0,className:"block w-full h-full focus:outline-none",children:h}):h},vl=e=>{const{items:t,tailwindClasses:l}=e;return s.jsx("div",{className:`flex justify-center w-full py-8 px-4 md:px-0 ${l??""} mx-auto max-w-[1440px]`,children:s.jsx("div",{className:"w-full max-w-[1440px] px-4",children:s.jsxs(ls,{className:"relative",children:[s.jsx(Ps,{className:"z-[1]"}),s.jsx(rs,{children:t.map((r,a)=>s.jsx(as,{className:"max-w-[260px]",children:s.jsx(wl,{slug:r.slug,overlayOpacity:(r==null?void 0:r.overlayOpacity)!=null?r==null?void 0:r.overlayOpacity:.3,backgroundImage:r.backgroundImage,content:r.content,tailwindClasses:r.tailwindClasses??void 0})},a))}),s.jsx(Ls,{className:"z-[1]"}),s.jsx("div",{className:"mt-6",children:s.jsx(As,{})})]})})})},yl=({title:e,variants:t,slideNext:l,slidePrev:r,collectionSlug:a})=>s.jsx("div",{className:"flex justify-between items-center w-full p-4 xl:pr-0 md:pr-4 lg:gap-8",children:s.jsxs("div",{className:`flex items-center justify-between w-full gap-4 py-6 border-primary-100 ${(t==null?void 0:t.length)===0?"":"border-b"}`,children:[s.jsx(ie,{as:"h3",variant:"h3",weight:"medium",className:"text-primary-900",children:e}),s.jsxs("div",{className:"lg:hidden flex gap-x-2",children:[s.jsx("button",{type:"button","aria-label":"Featured collection controls: slide previous",onClick:r,className:"border border-primary-500 text-primary-900 w-10 h-10 flex items-center justify-center",children:s.jsx(ss,{className:"w-4 h-4"})}),s.jsx("button",{type:"button","aria-label":"Featured collection controls: slide next",onClick:l,className:"border border-primary-500 text-primary-900 w-10 h-10 flex items-center justify-center",children:s.jsx(Ie,{className:"w-4 h-4"})})]}),(a==null?void 0:a.length)&&s.jsx(Q,{to:`/collections/${a}`,className:"hidden text-sm text-active lg:font-medium lg:block",children:s.jsx(ne,{label:"SHOP NOW",variant:"outline",spacing:"custom",rightDecorator:s.jsx(Ie,{className:"w-4 h-4 text-primary-300"})})})]})}),bl=({title:e,collectionSlug:t,variants:l})=>{const r=x.useRef(null),a=()=>{var n;(n=r.current)==null||n.next()},i=()=>{var n;(n=r.current)==null||n.prev()};return s.jsx("div",{className:"flex justify-center relative",children:s.jsxs("div",{className:"w-full max-w-[1440px] min-h-[300px]",children:[s.jsx(yl,{title:e,slideNext:a,slidePrev:i,collectionSlug:t,variants:l}),s.jsx(Rs,{variants:l??[],ref:r,collectionSlug:t}),(t==null?void 0:t.length)&&s.jsx(Ts,{slug:`/collections/${t}`})]})})},Nl=({ctaLink:e,ctaText:t,height:l="500px",image:r,subtitle:a,title:i})=>{const{ENV:n}=G(),c=n==null?void 0:n.STRAPI_URL,d=n==null?void 0:n.STRAPI_UPLOAD_URL,{src:o,srcset:h,sizes:p}=K({image:r,strapiUrl:c,strapiUploadUrl:d,presetType:"large"}),v=Se(),y=()=>{v(e)};return s.jsx("swiper-slide",{style:{position:"relative",zIndex:1,backfaceVisibility:"hidden",transform:"translateZ(0)"},children:s.jsxs("div",{className:"w-full flex relative flex-col justify-center",style:{height:parseInt(l.replace("px",""))},children:[s.jsx("img",{src:o,srcSet:h,sizes:p,alt:i,className:"w-full object-cover object-center",style:{height:"100%",width:"auto",transform:"translateZ(0)"},height:parseInt(l.replace("px","")),width:parseInt(l.replace("px",""))*16/9}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#000000d9] to-[#00000073]",style:{transform:"translateZ(0)"}}),s.jsx("div",{className:"absolute w-full h-full flex items-end justify-center",children:s.jsx("div",{className:"w-full max-w-[1440px] pb-8 lg:pb-24 px-6",children:s.jsxs("div",{className:"flex flex-col w-full lg:max-w-[50%]",children:[s.jsxs("div",{className:"flex flex-col pb-6 gap-y-2",children:[s.jsx(ie,{as:"h1",variant:"h1",weight:"bold",className:"text-white",children:i}),s.jsx(ie,{as:"p",variant:"body",className:"text-white",children:a})]}),s.jsx(ne,{onClick:y,type:"button",variant:"outline",spacing:"custom",className:"w-fit border border-white hover:bg-neutral-500/40 text-white bg-transparent",rightDecorator:s.jsx(cs,{className:"w-4 h-4"}),label:t})]})})})]})})},Cl=({handleSwipe:e,visible:t})=>t?s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>e("prev"),className:"absolute top-1/2 left-0 transform -translate-y-1/2 bg-black bg-opacity-50 hover:bg-opacity-80 text-white p-4 focus:outline-none",style:{zIndex:1e4},children:[s.jsx("span",{className:"sr-only",children:"Previous"}),s.jsx("svg",{className:"w-6 h-6",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{d:"M15 19l-7-7 7-7"})})]}),s.jsxs("button",{onClick:()=>e("next"),className:"absolute top-1/2 right-0 transform -translate-y-1/2 bg-black bg-opacity-50 hover:bg-opacity-80 text-white p-4 focus:outline-none",style:{zIndex:1e4},children:[s.jsx("span",{className:"sr-only",children:"Next"}),s.jsx("svg",{className:"w-6 h-6",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{d:"M9 5l7 7-7 7"})})]})]}):null,Sl=(e,t)=>
11{const[l,r]=x.useState(!1),[a,i]=x.useState(!1),n=x.useMemo(()=>t==="strapi"?e.map(d=>({...d})):e,[e,t]);return x.useEffect(()=>{const d=h=>new Promise((p,v)=>{const y=new Image;y.src=h,y.onload=p,y.onerror=v}),o=n.map(h=>h.imageUrl).filter(Boolean);o.length>0?Promise.all(o.map(h=>d(h))).then(()=>r(!0)).catch(h=>{console.error("Failed to load images",h),i(!0)}):r(!0)},[n]),{handleSwipe:d=>{const o=document.querySelector(".swiper-container");if(!(!o||!o.swiper))switch(d){case"prev":o.swiper.slidePrev();break;case"next":o.swiper.slideNext();break}},imagesLoaded:l,loadError:a,processedSlides:n}},Rl=({autoplay:e=!0,effect:t="slide",height:l="500px",loop:r=!0,pagination:a=!1,slides:i,slidesPerView:n=1,speed:c=1e3,source:d})=>{const{imagesLoaded:o,loadError:h,handleSwipe:p,processedSlides:v}=Sl(i,d);return h?null:s.jsx("div",{style:{height:l},className:"bg-slate-300",children:s.jsx(pe,{initial:!1,children:o&&s.jsxs(ae.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},style:{height:l},children:[s.jsx(Cl,{handleSwipe:p,visible:!1}),s.jsx("swiper-container",{autoplay:String(e),"slides-per-view":n,loop:String(r),speed:String(c),effect:t,pagination:String(a),children:v==null?void 0:v.map((y,_)=>s.jsx(Nl,{...y,height:l,index:_},`${y.id}-${y.title}`))})]})})})},Ae=(e,t)=>
11(t==null?void 0:t.selectedStoreId)??e.selectedStoreId??null,X=(e,t)=>(e==null?void 0:e.id)!=null?`${e.__typename??"anon"}-${e.id}`:`${(e==null?void 0:e.__typename)??"anon"}-idx-${t}`,Yl=(e,t,l,r)=>{var a,i,n,c,d,o,h,p,v,y,_,S,N,I,W,O,D;switch(e.__typename){case"ComponentUiComponentsHeroBanner":{const u=e;return s.jsx(Ks,{...u},X(e,t))}case"ComponentUiComponentsProductCollection":return s.jsx(Ys,{...e},X(e,t));case"ComponentUiComponentsTextBlock":return s.jsx(Tl,{...e},X(e,t));case"ComponentUiComponentsFeaturedContent":{const u=e;return s.jsx(Bs,{...u},X(e,t))}case"ComponentUiComponentsFeaturedCollection":{const u=e,f=(n=(i=(a=u.collection)==null?void 0:a.data)==null?void 0:i.attributes)==null?void 0:n.slug,w=u.title;if(l!=null&&l.collections&&f){const g=l.collections.find(A=>(A==null?void 0:A.slug)===f),U=((g==null?void 0:g.products)||{edges:[]}).edges||[];if(U.length>=5){const A=Ue(U,{selectedStoreId:Ae(e,l)});return s.jsx(bl,{__component:"ui-components.featured-collection",index:t,variants:A,collectionSlug:f,title:w},X(e,t))}return null}return console.warn("FeaturedCollection could not find data for slug:",f),null}case"ComponentUiComponentsHeroCarousel":return s.jsx(Rl,{slides:e.slides,...e,source:"strapi"},X(e,t));case"ComponentUiComponentsBlogSection":return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"block absolute -m-[200px]",id:e.anchor}),s.jsx("h4",{className:"text-xl md:text-2xl mb-2 text-body-heading font-semibold",children:e.name}),s.jsx("div",{className:"text-body-copy",children:Oe(e.textContent)})]});case"ComponentUiComponentsValuesPropositionSection":{const{valuesPropositionTitle:u="",values:f=[]}=e;return s.jsx(nt,{title:u,values:f},X(e,t))}case"ComponentUiComponentsCollectionsSection":return s.jsx(Xs,{cta:e==null?void 0:e.collectionSectionCta,ctaLink:e==null?void 0:e.collectionSectionCtaLink,collections:((c=e==null?void 0:e.collections)==null?void 0:c.map(u=>{var f,w,g,j,U,A,V,b,C,$,k;return{fullImage:(u==null?void 0:u.image)??null,image:((w=(f=u==null?void 0:u.image.data)==null?void 0:f.attributes)==null?void 0:w.formats)??[],slug:((U=(j=(g=u==null?void 0:u.collection)==null?void 0:g.data)==null?void 0:j.attributes)==null?void 0:U.slug)??"",name:((b=(V=(A
11=u==null?void 0:u.collection)==null?void 0:A.data)==null?void 0:V.attributes)==null?void 0:b.name)??"",description:((k=($=(C=u==null?void 0:u.collection)==null?void 0:C.data)==null?void 0:$.attributes)==null?void 0:k.description)??""}}))??[],title:(e==null?void 0:e.title)??""},X(e,t));case"ComponentUiComponentsFeaturedProduct":{const{product:u,featuredProductImage:f,featuredProductTitle:w="",featuredProductSubtitle:g="",featuredProductDescription:j=""}=e;return s.jsx(ct,{product:u??"",image:f,title:w,subtitle:g,description:j??""},X(e,t))}case"ComponentUiComponentsBrandHighlightCarouselSection":{const{brands:u=[]}=e;return s.jsx(ot,{brands:u},X(e,t))}case"ComponentUiComponentsFloatingImage":{const{floatingImage:u,floatingImageHeight:f=null,floatingImageWidth:w=null,position:g="relative",fullScreen:j=!1,placement:U="center",spaceBottom:A=0,spaceTop:V=0,spaceLeft:b=0,spaceRight:C=0,mobileSpaceBottom:$=0,mobileSpaceTop:k=0,mobileSpaceLeft:M=0,mobileSpaceRight:q=0}=e;return s.jsx(Ht,{image:u,height:f,width:w,position:g,fullScreen:j,placement:U,space:{bottom:A??0,top:V??0,left:b??0,right:C??0},spaceMobile:{bottom:$??0,top:k??0,left:M??0,right:q??0},tailwindClasses:(e==null?void 0:e.tailwindClasses)??""},X(e,t))}case"ComponentUiComponentsFeaturedBrandsSection":{const{featuredBrands:u=[],featuredBrandsTitle:f=""}=e;return s.jsx(Ve,{title:f??"",items:(u==null?void 0:u.map(w=>{var g,j,U,A,V,b,C,$,k,M,q,E;return{title:((U=(j=(g=w==null?void 0:w.collection)==null?void 0:g.data)==null?void 0:j.attributes)==null?void 0:U.name)??"",description:((b=(V=(A=w==null?void 0:w.collection)==null?void 0:A.data)==null?void 0:V.attributes)==null?void 0:b.description)??"",slug:(k=($=(C=w==null?void 0:w.collection)==null?void 0:C.data)==null?void 0:$.attributes)!=null&&k.slug?`/collections/${(E=(q=(M=w==null?void 0:w.collection)==null?void 0:M.data)==null?void 0:q.attributes)==null?void 0:E.slug}`:"",image:w==null?void 0:w.image}}))??[]},X(e,t))}case"ComponentUiComponentsFeaturedBlogs":{const{blogs:u=[],featuredBlogsTitle:f=""}=e,w=u==null?void 0:u.map(g=>{var j,U,A,V,b,C,$,k,M,q,E,z,B,m,J;return{title:(g==null?void 0:g.title)??((A=(U=(j=g==null?void 0:g.blog)==null?void 0:j.data)==null?void 0:U.attributes)==null?void 0:A.title)??"",image:((C=(b=(V=g==null?void 0:g.blog)==null?void 0:V.data)==null?void 0:b.attributes)==null?void 0:C.featuredImage)??null,description:(g==null?void 0:g.description)??((M=(k=($=g==null?void 0:g.blog)==null?void 0:$.data)==null?void 0:k.attributes)==null?void 0:M.excerpt)??"",slug:(z=(E=(q=g==null?void 0:g.blog)==null?void 0:q.data)==null?void 0:E.attributes)!=null&&z.slug?`/blog/${(J=(m=(B=g==null?void 0:g.blog)==null?void 0:B.data)==null?void 0:m.attributes)==null?void 0:J.slug}`:""}});return s.jsx(Ve,{items:w??[],title:f,ctaLink:"/blog",ctaText:"DISCOVER"},X(e,t))}case"ComponentUiComponentsGoogleMapEmbed":{const{__typename:u,googleMapEmbedPosition:f,...w}=e;return s.jsx(Bt,{...w,position:f??"center"})}case"ComponentUiComponentsCollectionsSlider":{const{collectionSliderData:u=[]}=e;return s.jsx(qt,{collections:u??[]},X(e,t))}case"ComponentUiComponentsAdBanner":return s.jsx(Yt,{image:e==null?void 0:e.image,mobileImage:e==null?void 0:e.mobileImage,spacing:(e==null?void 0:e.spacing)??{top:0,bottom:0,left:0,right:0}},X(e,t));case"ComponentUiComponentsDiscoveryBlockGroup":return s.jsx(Kt,{component:e});case"ComponentUiComponentsGoogleReviews":return(e==null?void 0:e.show)??!1?r==="v1"?s.jsx(Le,{...e}):l!=null&&l.reviews?s.jsxs(x.Suspense,{fallback:s.jsx(Jt,{}),children:[" ",s.jsx(_s,{resolve:l.reviews,children:f=>{const w=f.find(j=>j.id===e.id),g=w==null?void 0:w.reviews;return s.jsx(Le,{...e,reviews:g})}})]},X(e,t)):(console.warn("GoogleReviews rendered without loader data for id:",e.id),s.jsx(Le,{...e,reviews:null})):null;case"ComponentLayoutCardCarousel":return s.jsx(at,{headerCta:e==null?void 0:e.headerCta,showUnderline:e==null?void 0:e.showUnderline,showControls:e==null?void 0:e.showControls,initialDisplayCount:e==null?void 0:e.initialDisplayCount,underlineWidth:e==null?void 0:e.underlineWidth,underlineColor:e==null?void 0:e.underlineColor,headerPosition:e==null?void 0:e.headerPosition,backgroundImage:e==null?void 0:e.backgroundImage,header:(e==null?void 0:e.header)??null,items:(d=e==null?void 0:e.cards)==null?void 0:d.map(u=>
11({title:u==null?void 0:u.title,description:u==null?void 0:u.description,slug:u==null?void 0:u.slug,image:u==null?void 0:u.image,customCss:u==null?void 0:u.customCss,tailwindClasses:u==null?void 0:u.tailwindClasses,ctaTailwindClasses:u==null?void 0:u.ctaTailwindClasses})),cta:e==null?void 0:e.cta,floatingImages:e==null?void 0:e.floatingImages,visibleSlides:e==null?void 0:e.visibleSlides,tailwindClasses:e==null?void 0:e.tailwindClasses,indicatorVariant:e==null?void 0:e.carouselIndicatorVariant,containerTailwindClasses:e==null?void 0:e.containerTailwindClasses},X(e,t));case oe.COMPONENT_LAYOUT_PROMOS:{const{__typename:u,...f}=e;return s.jsx(Zt,{...f},`${t}-${u}`)}case oe.COMPONENT_LAYOUT_CATERING_FORM:{const{__typename:u,...f}=e;return s.jsx(jl,{...f},`${t}-${u}`)}case oe.COMPONENT_LAYOUT_IMAGE_CAROUSEL:return s.jsx(el,{...e},`${t}-${e==null?void 0:e.__typename}`);case oe.COMPONENT_LAYOUT_FEATURED_COLLECTION:{if(r==="v1")return s.jsx(ze,{hideHeader:(e==null?void 0:e.hideHeader)??!1,anchorId:(e==null?void 0:e.anchorId)??"",collectionSlug:(p=(h=(o=e.collection)==null?void 0:o.data)==null?void 0:h.attributes)==null?void 0:p.slug,header:e.featuredHeader,cta:e.cta,variants:Ue(((v=e.products)==null?void 0:v.edges)??[],{selectedStoreId:Ae(e,l)}),BottomCTA:e.BottomCTA,indicatorVariant:e.indicatorVariant,addToCartVariant:e.addToCartVariant??"none",productImagesWidth:e.productImagesWidth,productImagesHeight:e.productImagesHeight,productImagesPadding:(e==null?void 0:e.productImagesPadding)??"",showControls:e.showControls});const u=(S=(_=(y=e.collection)==null?void 0:y.data)==null?void 0:_.attributes)==null?void 0:S.slug;if(l!=null&&l.collections&&u){const f=l.collections.find(U=>(U==null?void 0:U.slug)===u),g=((f==null?void 0:f.products)||{edges:[]}).edges||[],j=Ue(g,{selectedStoreId:Ae(e,l)});return s.jsx(ze,{hideHeader:(e==null?void 0:e.hideHeader)??!1,anchorId:(e==null?void 0:e.anchorId)??"",collectionSlug:u,header:e.featuredHeader,cta:e.cta,variants:j,BottomCTA:e.BottomCTA,indicatorVariant:e.indicatorVariant,addToCartVariant:e.addToCartVariant??"none",productImagesWidth:e.productImagesWidth,productImagesHeight:e.productImagesHeight,productImagesPadding:(e==null?void 0:e.productImagesPadding)??"",showControls:e.showControls,imageLoading:t<=3?"eager":"lazy"},`${t}-${e.__typename}`)}return console.warn("FeaturedCollectionv2 could not find data for slug:",u),null}case oe.COMPONENT_LAYOUT_HERO_CAROUSEL:{const{__typename:u,...f}=e;return s.jsx(tl,{index:t,...f},`${t}-${u}`)}case oe.COMPONENT_LAYOUT_GRID_IMAGES:{const{__typename:u,...f}=e;return s.jsx(rl,{...f},`${t}-${u}`)}case oe.COMPONENT_LAYOUT_HERO_SPLIT:{const{__typename:u,...f}=e;return s.jsx(al,{...f,textContent:(e==null?void 0:e.heroSplitTextContent)??[],direction:(N=(e==null?void 0:e.direction)??"text-to-image")==null?void 0:N.replaceAll("_","-")},`${t}-${u}`)}case oe.COMPONENT_LAYOUT_SUB_NAVIGATION:{const{__typename:u,...f}=e;return s.jsx(ol,{...f,title:f==null?void 0:f.subNavigationTitle},`${t}-${u}`)}case oe.COMPONENT_LAYOUT_FEATURED_COLLECTION_GRID:{const{__typename:u,...f}=e,w=(O=(W=(I=f.collection)==null?void 0:I.data)==null?void 0:W.attributes)==null?void 0:O.slug;if(l!=null&&l.collections&&w){const g=l.collections.find(A=>(A==null?void 0:A.slug)===w),U=((g==null?void 0:g.products)||{edges:[]}).edges||[];return s.jsx(hl,{cardCustomStyle:(f==null?void 0:f.cardCustomStyle)??{},anchorId:f==null?void 0:f.anchorId,title:f.featuredCollectionGridTitle,products:{edges:U}},`${t}-${u}`)}return console.warn("FeaturedCollectionGrid could not find data for slug:",w),null}case oe.COMPONENT_LAYOUT_ITEM_IMAGE_SLIDER:{const{__typename:u,...f}=e,w=(D=f==null?void 0:f.items)==null?void 0:D.map(g=>g==null?void 0:g.slug).join("-");return s.jsx(vl,{...f},`${t}-${u}-${w}`)}default:return null}},Tl=e=>{const{textContent:t}=e;return s.jsx("div",{className:"container mx-auto px-6 py-6 w-full max-w-[1440px] relative",children:Oe(t)})};export{at as C,Yl as r};
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.