import{a as re,d as oe,e as le,f as ie,g as se}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-KT7XZR4Y.js";import{a as mt}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-FNPPTV6D.js";import{a as ee}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-QEYT23A6.js";import{b as te,d as ne,e as Q}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-TKPZJZZF.js";import{$ as ae,g as Jt,i as Qt}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-4WGLXVPZ.js";import{a as ut,b as W,c as pt,d as z,e as qt,f as Zt,g as Y,h as dt,i as X,j as J,k as zt,l as H,m as Yt,n as Xt,o as R}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-QXO7CJXO.js";import{a as A}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-6NX3IJVR.js";import{a as y}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-34QOOIQ4.js";import{o as Kt,t as Z,x as $t}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-C4I3W2OX.js";import{a as f}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LL6AKNEK.js";import{a as B}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LQ2PFFE3.js";import{d as u}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-H7QMOPDN.js";function ce(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e"u"||Array.isArray(t.marks)&&t.marks.every(e=>typeof e=="string"))}function yt(t){return typeof t._type=="string"&&t._type[0]!=="@"&&(!("markDefs"in t)||Array.isArray(t.markDefs)&&t.markDefs.every(e=>typeof e._key=="string"))&&"children"in t&&Array.isArray(t.children)&&t.children.every(e=>typeof e=="object"&&"_type"in e)}function bt(t){return yt(t)&&"listItem"in t&&typeof t.listItem=="string"&&(typeof t.level>"u"||typeof t.level=="number")}function ht(t){return t._type==="@list"}function kt(t){return t._type==="@span"}function gt(t){return t._type==="@text"}var pe=["strong","em","code","underline","strike-through"];function We(t,e,r){if(!et(t)||!t.marks)return[];if(!t.marks.length)return[];let n=t.marks.slice(),l={};return n.forEach(o=>{l[o]=1;for(let i=e+1;iHe(l,o,i))}function He(t,e,r){let n=t[e],l=t[r];if(n!==l)return l-n;let o=pe.indexOf(e),i=pe.indexOf(r);return o!==i?o-i:e.localeCompare(r)}function de(t){var e;let{children:r,markDefs:n=[]}=t;if(!r||!r.length)return[];let l=r.map(We),o={_type:"@span",children:[],markType:""},i=[o];for(let c=0;c1)for(x;xp._key===s),I=m?m._type:s,b={_type:"@span",_key:d._key,children:[],markDef:m,markType:I,markKey:s};a.children.push(b),i.push(b),a=b}if(et(d)){let s=d.text.split(` `);for(let m=s.length;m-- >1;)s.splice(m,0,` `);a.children=a.children.concat(s.map(m=>({_type:"@text",text:m})))}else a.children=a.children.concat(d)}}return o.children}function me(t,e){let r=[],n;for(let l=0;ln.level){let i=tt(o,l,e);if(e==="html"){let c=n.children[n.children.length-1],d=ue(ue({},c),{},{children:[...c.children,i]});n.children[n.children.length-1]=d}else n.children.push(i);n=i;continue}if((o.level||1){gt(r)?e+=r.text:kt(r)&&(e+=Pt(r))}),e}var fe="html";var h=u(f()),vt=u(B()),Ve=["block","list","listItem","marks","types"],Ue=["listItem"],Ke=["_key"];function ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),r.push.apply(r,n)}return r}function C(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ze(t,e){if(t==null)return{};var r={},n=Object.keys(t),l,o;for(o=0;o=0)&&(r[l]=t[l]);return r}function Ye(t,e){let{block:r,list:n,listItem:l,marks:o,types:i}=e,c=xt(e,Ve);return C(C({},t),{},{block:F(t,e,"block"),list:F(t,e,"list"),listItem:F(t,e,"listItem"),marks:F(t,e,"marks"),types:F(t,e,"types")},c)}function F(t,e,r){let n=e[r],l=t[r];return typeof n=="function"||n&&typeof l=="function"?n:n?C(C({},l),n):l}var Xe=t=>{let{children:e,value:r}=t;return(0,h.jsx)("a",{href:r?.href,children:e})},Je={textDecoration:"underline"},Qe={em:t=>{let{children:e}=t;return(0,h.jsx)("em",{children:e})},strong:t=>{let{children:e}=t;return(0,h.jsx)("strong",{children:e})},code:t=>{let{children:e}=t;return(0,h.jsx)("code",{children:e})},underline:t=>{let{children:e}=t;return(0,h.jsx)("span",{style:Je,children:e})},"strike-through":t=>{let{children:e}=t;return(0,h.jsx)("del",{children:e})},link:Xe},tr={number:t=>{let{children:e}=t;return(0,h.jsx)("ol",{children:e})},bullet:t=>{let{children:e}=t;return(0,h.jsx)("ul",{children:e})}},er=t=>{let{children:e}=t;return(0,h.jsx)("li",{children:e})},V=(t,e)=>"[@portabletext/react] Unknown ".concat(t,", specify a component for it in the `components.").concat(e,"` prop"),ge=t=>V('block type "'.concat(t,'"'),"types"),rr=t=>V('mark type "'.concat(t,'"'),"marks"),nr=t=>V('block style "'.concat(t,'"'),"block"),or=t=>V('list style "'.concat(t,'"'),"list"),lr=t=>V('list item style "'.concat(t,'"'),"listItem");function ir(t){console.warn(t)}var be={display:"none"},sr=t=>{let{value:e,isInline:r}=t,n=ge(e._type);return r?(0,h.jsx)("span",{style:be,children:n}):(0,h.jsx)("div",{style:be,children:n})},ar=t=>{let{markType:e,children:r}=t;return(0,h.jsx)("span",{className:"unknown__pt__mark__".concat(e),children:r})},cr=t=>{let{children:e}=t;return(0,h.jsx)("p",{children:e})},ur=t=>{let{children:e}=t;return(0,h.jsx)("ul",{children:e})},pr=t=>{let{children:e}=t;return(0,h.jsx)("li",{children:e})},dr=()=>(0,h.jsx)("br",{}),mr={normal:t=>{let{children:e}=t;return(0,h.jsx)("p",{children:e})},blockquote:t=>{let{children:e}=t;return(0,h.jsx)("blockquote",{children:e})},h1:t=>{let{children:e}=t;return(0,h.jsx)("h1",{children:e})},h2:t=>{let{children:e}=t;return(0,h.jsx)("h2",{children:e})},h3:t=>{let{children:e}=t;return(0,h.jsx)("h3",{children:e})},h4:t=>{let{children:e}=t;return(0,h.jsx)("h4",{children:e})},h5:t=>{let{children:e}=t;return(0,h.jsx)("h5",{children:e})},h6:t=>{let{children:e}=t;return(0,h.jsx)("h6",{children:e})}},he={types:{},block:mr,marks:Qe,list:tr,listItem:er,hardBreak:dr,unknownType:sr,unknownMark:ar,unknownList:ur,unknownListItem:pr,unknownBlockStyle:cr};function Pe(t){let{value:e,components:r,listNestingMode:n,onMissingComponent:l=ir}=t,o=l||yr,i=Array.isArray(e)?e:[e],c=me(i,n||fe),d=(0,vt.useMemo)(()=>r?Ye(he,r):he,[r]),P=(0,vt.useMemo)(()=>fr(d,o),[d,o]),x=c.map((a,s)=>P({node:a,index:s,isInline:!1,renderNode:P}));return(0,h.jsx)(h.Fragment,{children:x})}var fr=(t,e)=>{function r(a){let{node:s,index:m,isInline:I}=a,b=s._key||"node-".concat(m);return ht(s)?o(s,m,b):bt(s)?l(s,m,b):kt(s)?i(s,m,b):n(s)?x(s,m,b,I):yt(s)?c(s,m,b,I):gt(s)?d(s,b):P(s,m,b,I)}function n(a){return a._type in t.types}function l(a,s,m){let I=ke({node:a,index:s,isInline:!1,renderNode:r}),b=t.listItem,g=(typeof b=="function"?b:b[a.listItem])||t.unknownListItem;if(g===t.unknownListItem){let N=a.listItem||"bullet";e(lr(N),{type:N,nodeType:"listItemStyle"})}let v=I.children;if(a.style&&a.style!=="normal"){let{listItem:N}=a,E=xt(a,Ue);v=r({node:E,index:s,isInline:!1,renderNode:r})}return(0,h.jsx)(g,{value:a,index:s,isInline:!1,renderNode:r,children:v},m)}function o(a,s,m){let I=a.children.map((v,N)=>r({node:v._key?v:C(C({},v),{},{_key:"li-".concat(s,"-").concat(N)}),index:N,isInline:!1,renderNode:r})),b=t.list,g=(typeof b=="function"?b:b[a.listItem])||t.unknownList;if(g===t.unknownList){let v=a.listItem||"bullet";e(or(v),{nodeType:"listStyle",type:v})}return(0,h.jsx)(g,{value:a,index:s,isInline:!1,renderNode:r,children:I},m)}function i(a,s,m){let{markDef:I,markType:b,markKey:p}=a,g=t.marks[b]||t.unknownMark,v=a.children.map((N,E)=>r({node:N,index:E,isInline:!0,renderNode:r}));return g===t.unknownMark&&e(rr(b),{nodeType:"mark",type:b}),(0,h.jsx)(g,{text:Pt(a),value:I,markType:b,markKey:p,renderNode:r,children:v},m)}function c(a,s,m,I){let b=ke({node:a,index:s,isInline:I,renderNode:r}),{_key:p}=b,g=xt(b,Ke),v=g.node.style||"normal",E=(typeof t.block=="function"?t.block:t.block[v])||t.unknownBlockStyle;return E===t.unknownBlockStyle&&e(nr(v),{nodeType:"blockStyle",type:v}),(0,h.jsx)(E,C(C({},g),{},{value:g.node,renderNode:r}),m)}function d(a,s){if(a.text===` `){let m=t.hardBreak;return m?(0,h.jsx)(m,{},s):` `}return a.text}function P(a,s,m,I){let b={value:a,isInline:I,index:s,renderNode:r};e(ge(a._type),{nodeType:"block",type:a._type});let p=t.unknownType;return(0,h.jsx)(p,C({},b),m)}function x(a,s,m,I){let b={value:a,isInline:I,index:s,renderNode:r},p=t.types[a._type];return p?(0,h.jsx)(p,C({},b),m):null}return r};function ke(t){let{node:e,index:r,isInline:n,renderNode:l}=t,i=de(e).map((c,d)=>l({node:c,isInline:!0,index:d,renderNode:l}));return{_key:e._key||"block-".concat(r),children:i,index:r,isInline:n,node:e}}function yr(){}var Re=u(B());var U=u(f()),br=({children:t,value:e})=>e?.email?(0,U.jsx)("a",{className:y("underline transition-opacity duration-200","hover:opacity-60"),href:`mailto:${e?.email}`,children:(0,U.jsx)(U.Fragment,{children:t})}):null,xe=br;var O=u(f()),hr=({children:t,value:e})=>e?.url?(0,O.jsx)("a",{className:y("inline-flex items-center underline transition-opacity duration-200","hover:opacity-60"),href:e?.url,rel:"noopener noreferrer",target:e?.newWindow?"_blank":"_self",children:(0,O.jsx)(O.Fragment,{children:t})}):(0,O.jsx)(O.Fragment,{children:t}),ve=hr;var rt=u(B()),_=u(f());function wt({children:t,value:e}){let[r,n]=(0,rt.useState)(!1);return(0,rt.useEffect)(()=>{n(!0)},[]),e?.slug?r?(0,_.jsx)(Kt,{className:y("inline-flex items-center underline transition-opacity duration-200","hover:opacity-60"),to:e?.slug,children:(0,_.jsx)(_.Fragment,{children:t})}):(0,_.jsx)("a",{className:y("inline-flex items-center underline transition-opacity duration-200","hover:opacity-60"),href:e?.slug,children:(0,_.jsx)(_.Fragment,{children:t})}):null}var _e=u(B());var Mt=u(B());var Ie=u(B(),1);function we(t){var e;if(t.type)return t.type;let r=(e=t.as)!=null?e:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function Te(t,e){let[r,n]=(0,Ie.useState)(()=>we(t));return ut(()=>{n(we(t))},[t.type,t.as]),ut(()=>{r||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&n("button")},[r,e]),r}var k=u(B(),1);var Ce=u(B(),1),Se,Ne=(Se=Ce.default.startTransition)!=null?Se:function(t){t()};var kr=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(kr||{}),gr=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(gr||{}),Pr={[0]:t=>({...t,disclosureState:z(t.disclosureState,{[0]:1,[1]:0})}),[1]:t=>t.disclosureState===1?t:{...t,disclosureState:1},[4](t){return t.linkedPanel===!0?t:{...t,linkedPanel:!0}},[5](t){return t.linkedPanel===!1?t:{...t,linkedPanel:!1}},[2](t,e){return t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId}},[3](t,e){return t.panelId===e.panelId?t:{...t,panelId:e.panelId}}},It=(0,k.createContext)(null);It.displayName="DisclosureContext";function Tt(t){let e=(0,k.useContext)(It);if(e===null){let r=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tt),r}return e}var St=(0,k.createContext)(null);St.displayName="DisclosureAPIContext";function Be(t){let e=(0,k.useContext)(St);if(e===null){let r=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Be),r}return e}var Ct=(0,k.createContext)(null);Ct.displayName="DisclosurePanelContext";function xr(){return(0,k.useContext)(Ct)}function vr(t,e){return z(e.type,Pr,t,e)}var wr=k.Fragment;function Ir(t,e){let{defaultOpen:r=!1,...n}=t,l=(0,k.useRef)(null),o=Y(e,Zt(p=>{l.current=p},t.as===void 0||t.as===k.Fragment)),i=(0,k.useRef)(null),c=(0,k.useRef)(null),d=(0,k.useReducer)(vr,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:c,panelRef:i,buttonId:null,panelId:null}),[{disclosureState:P,buttonId:x},a]=d,s=W(p=>{a({type:1});let g=qt(l);if(!g||!x)return;let v=(()=>p?p instanceof HTMLElement?p:p.current instanceof HTMLElement?p.current:g.getElementById(x):g.getElementById(x))();v?.focus()}),m=(0,k.useMemo)(()=>({close:s}),[s]),I=(0,k.useMemo)(()=>({open:P===0,close:s}),[P,s]),b={ref:o};return k.default.createElement(It.Provider,{value:d},k.default.createElement(St.Provider,{value:m},k.default.createElement(Xt,{value:z(P,{[0]:H.Open,[1]:H.Closed})},X({ourProps:b,theirProps:n,slot:I,defaultTag:wr,name:"Disclosure"}))))}var Tr="button";function Sr(t,e){let r=pt(),{id:n=`headlessui-disclosure-button-${r}`,...l}=t,[o,i]=Tt("Disclosure.Button"),c=xr(),d=c===null?!1:c===o.panelId,P=(0,k.useRef)(null),x=Y(P,e,d?null:o.buttonRef);(0,k.useEffect)(()=>{if(!d)return i({type:2,buttonId:n}),()=>{i({type:2,buttonId:null})}},[n,i,d]);let a=W(g=>{var v;if(d){if(o.disclosureState===1)return;switch(g.key){case R.Space:case R.Enter:g.preventDefault(),g.stopPropagation(),i({type:0}),(v=o.buttonRef.current)==null||v.focus();break}}else switch(g.key){case R.Space:case R.Enter:g.preventDefault(),g.stopPropagation(),i({type:0});break}}),s=W(g=>{switch(g.key){case R.Space:g.preventDefault();break}}),m=W(g=>{var v;zt(g.currentTarget)||t.disabled||(d?(i({type:0}),(v=o.buttonRef.current)==null||v.focus()):i({type:0}))}),I=(0,k.useMemo)(()=>({open:o.disclosureState===0}),[o]),b=Te(t,P),p=d?{ref:x,type:b,onKeyDown:a,onClick:m}:{ref:x,id:n,type:b,"aria-expanded":t.disabled?void 0:o.disclosureState===0,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:a,onKeyUp:s,onClick:m};return X({ourProps:p,theirProps:l,slot:I,defaultTag:Tr,name:"Disclosure.Button"})}var Cr="div",Nr=dt.RenderStrategy|dt.Static;function Br(t,e){let r=pt(),{id:n=`headlessui-disclosure-panel-${r}`,...l}=t,[o,i]=Tt("Disclosure.Panel"),{close:c}=Be("Disclosure.Panel"),d=Y(e,o.panelRef,m=>{Ne(()=>i({type:m?4:5}))});(0,k.useEffect)(()=>(i({type:3,panelId:n}),()=>{i({type:3,panelId:null})}),[n,i]);let P=Yt(),x=(()=>P!==null?(P&H.Open)===H.Open:o.disclosureState===0)(),a=(0,k.useMemo)(()=>({open:o.disclosureState===0,close:c}),[o,c]),s={ref:d,id:n};return k.default.createElement(Ct.Provider,{value:o.panelId},X({ourProps:s,theirProps:l,slot:a,defaultTag:Cr,features:Nr,visible:x,name:"Disclosure.Panel"}))}var Mr=J(Ir),_r=J(Sr),Or=J(Br),nt=Object.assign(Mr,{Button:_r,Panel:Or});var L=u(f());function Nt(t){return(0,L.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4C1 3.44772 1.44772 3 2 3H14C14.5523 3 15 3.44772 15 4V12C15 12.5523 14.5523 13 14 13H2C1.44772 13 1 12.5523 1 12V4ZM14 4H2V12H14V4Z",fill:"white"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10.5C10 10.2239 10.2239 10 10.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H10.5C10.2239 11 10 10.7761 10 10.5Z",fill:"white"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.5C7 10.2239 7.22386 10 7.5 10H8.5C8.77614 10 9 10.2239 9 10.5C9 10.7761 8.77614 11 8.5 11H7.5C7.22386 11 7 10.7761 7 10.5Z",fill:"white"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 6.05664C1 5.7805 1.22386 5.55664 1.5 5.55664H14.5C14.7761 5.55664 15 5.7805 15 6.05664C15 6.33278 14.7761 6.55664 14.5 6.55664H1.5C1.22386 6.55664 1 6.33278 1 6.05664Z",fill:"white"})]})}var Me=u(f());function Bt({children:t="Buy now",lines:e,mode:r="default",...n}){let l=e.map(o=>`${o.merchandiseId.replace("gid://shopify/ProductVariant/","")}:${o.quantity}`).join(",");return(0,Me.jsx)(A,{to:`/cart/${l}`,className:"flex h-12 w-full items-center justify-center rounded-lg bg-ORANGE_ONE px-4 font-inter text-md text-white",...n,children:t})}var w=u(f());function _t({children:t,variantGid:e,linkAction:r,quantity:n=1,storefrontProduct:l}){return(0,w.jsx)(Lr,{linkAction:r,quantity:n,storefrontProduct:l,variantGid:e,children:t})}function Lr({children:t,linkAction:e,quantity:r=1,storefrontProduct:n,variantGid:l}){let o=ne(),{handle:i,title:c}=n,d=n.variants.nodes.find(s=>s.id==l)??n.variants.nodes[0];if(!d)return(0,w.jsx)(w.Fragment,{children:t});let P={productGid:n.id?n.id:"",variantGid:d.id,name:n.title?n.title:"",variantName:d.title,brand:n.vendor?n.vendor:"",price:d.price.amount,quantity:1};if(!d.availableForSale&&e!=="link")return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"text-darkGray line-through",children:t}),(0,w.jsx)("span",{className:"color-white ml-[0.25em] rounded-xs bg-lightGray px-1 py-0.5 text-xs font-bold text-red",children:"Sold out"})]});let x=(0,Mt.useMemo)(()=>(0,w.jsxs)("span",{className:y("inline-flex h-12 place-content-center items-center gap-1 rounded-xs p-0.5 leading-none duration-200 ease-out","hover:opacity-80",e==="buyNow"?"p-1 text-white":""),style:{background:o?.background},children:[t,e==="addToCart"&&(0,w.jsx)(Jt,{src:ae.cartIcon,width:40,height:40,className:"h-10 w-10"}),e==="buyNow"&&(0,w.jsx)(Nt,{className:"ml-[0.25em]"})]}),[t,o?.background,e]),a=(0,Mt.useMemo)(()=>(0,w.jsxs)("span",{className:y("inline-flex place-content-center items-center rounded-xs p-0.5 leading-none duration-200 ease-out","hover:opacity-80"),style:{background:o?.background},children:[t,(0,w.jsx)(Qt,{className:"ml-[0.25em]",width:14,height:14})]}),[t,o?.background]);return(0,w.jsx)(te,{interactive:e==="link",placement:"top",render:()=>e==="addToCart"?(0,w.jsx)(mt,{label:`Add to cart: ${c}`,tone:"dark"}):e==="buyNow"?(0,w.jsx)(mt,{label:`Buy now: ${c}`,tone:"dark"}):e==="link"?(0,w.jsx)(re,{storefrontProduct:n,variantGid:l}):null,hideOnClick:!1,children:(0,w.jsxs)("span",{children:[e==="addToCart"&&(0,w.jsx)(ee,{lines:[{merchandiseId:d.id,quantity:r}],mode:"inline",disabled:!d.availableForSale,analytics:{products:[P],totalValue:parseFloat(P.price)},loadingContent:a,children:x}),e==="buyNow"&&(0,w.jsx)(Bt,{lines:[{merchandiseId:d.id,quantity:r}],mode:"inline",disabled:!d.availableForSale,children:x}),e==="link"&&(0,w.jsx)(A,{to:`/products/${i}`,className:"text-white",children:x})]})})}var D=u(f()),Dr=({children:t,value:e})=>{let{productWithVariant:r}=e,n=r?.gid,l=r?.variantGid,o=$t(),i=o.data?.products?.products?.[0];return(0,_e.useEffect)(()=>{let c=n?.replace("gid://shopify/Product/","");o.load(`/api/shopifyProducts?ids=${c}&graphql=true`)},[]),!n||!i?(0,D.jsx)(D.Fragment,{children:t}):(0,D.jsx)(_t,{linkAction:e.linkAction||"link",quantity:e.quantity,storefrontProduct:i,variantGid:l,children:(0,D.jsx)(D.Fragment,{children:t})})},Oe=Dr;var Ot=u(f());function Lt(){return(0,Ot.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ot.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 11.5858 3.33579 11.25 3.75 11.25H20.25C20.6642 11.25 21 11.5858 21 12C21 12.4142 20.6642 12.75 20.25 12.75H3.75C3.33579 12.75 3 12.4142 3 12Z",fill:"#3A3E3E"})})}var K=u(f());function Dt(){return(0,K.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,K.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 11.5858 3.33579 11.25 3.75 11.25H20.25C20.6642 11.25 21 11.5858 21 12C21 12.4142 20.6642 12.75 20.25 12.75H3.75C3.33579 12.75 3 12.4142 3 12Z",fill:"#3A3E3E"}),(0,K.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C12.4142 3 12.75 3.33579 12.75 3.75V20.25C12.75 20.6642 12.4142 21 12 21C11.5858 21 11.25 20.6642 11.25 20.25V3.75C11.25 3.33579 11.5858 3 12 3Z",fill:"#3A3E3E"})]})}var S=u(f());function ot({value:t,sanityProjectId:e,sanityDataset:r}){return(0,S.jsx)("div",{className:y("first:mt-0 last:mb-0","my-8"),children:t?.groups?.map(n=>(0,S.jsx)(nt,{children:({open:l})=>(0,S.jsxs)("div",{className:"flex flex-col border-b border-b-gray",children:[(0,S.jsxs)(nt.Button,{className:y("flex items-center justify-between py-4 text-lg font-bold transition-opacity duration-200 ease-out","hover:opacity-60"),children:[(0,S.jsx)("div",{className:"truncate",children:n.title}),(0,S.jsx)("div",{className:"ml-4 shrink-0",children:l?(0,S.jsx)(Lt,{}):(0,S.jsx)(Dt,{})})]}),(0,S.jsx)(nt.Panel,{className:"pb-4 text-md",children:(0,S.jsx)($,{blocks:n.body,sanityProjectId:e,sanityDataset:r})})]})},n._key))})}var j=u(f());function Et({children:t,value:e}){return e.style==="h1"?(0,j.jsx)("h1",{className:y("first:mt-0 last:mb-0","mb-4 mt-16 text-[32px] font-bold leading-[40px]"),children:t}):e.style==="h2"?(0,j.jsx)("h2",{className:y("first:mt-0 last:mb-0","mb-4 mt-8 text-2xl font-bold"),children:t}):e.style==="h3"?(0,j.jsx)("h3",{className:y("first:mt-0 last:mb-0","font-normal mb-4 mt-8 text-xl"),children:t}):e.style==="h4"?(0,j.jsx)("h4",{className:y("first:mt-0 last:mb-0","font-normal mb-4 mt-8 text-lg"),children:t}):(0,j.jsx)("p",{className:y("page-table-link font-inter leading-[22.40px] first:mt-0 last:mb-0","relative my-4 break-words"),children:t})}var lt=u(f());function it({centered:t,value:e}){return(0,lt.jsx)("div",{className:y("first:mt-0 last:mb-0","relative my-12 w-screen px-6","md:px-8",t?"left-1/2 right-1/2 ml-[-50vw] mr-[-50vw]":"-ml-6 md:-ml-8"),children:(0,lt.jsx)("div",{className:y(t&&"mx-auto w-full max-w-[1400px]"),children:(0,lt.jsx)(oe,{module:e})})})}var G=u(f());function Rt({module:t}){let e=t?.collection,r=t?.customImage,[n]=Z(),{sanityDataset:l,sanityProjectId:o}=n.data.envs;return!e||!e?.slug?null:(0,G.jsxs)(A,{to:e.slug,className:"flex flex-col gap-8",children:[(0,G.jsx)(Q,{className:"aspect-square object-cover",crop:r?.crop,dataset:l,hotspot:r?.hotspot,layout:"responsive",projectId:o,src:r?.asset?._ref}),(0,G.jsx)("div",{children:(0,G.jsx)("span",{className:"text-normal font-base underline",children:e.title})})]})}var At=u(f());function jt({value:t}){if(!Array.isArray(t?.modules))return null;let e=t.modules.length>1;return(0,At.jsx)("div",{className:y("first:mt-0 last:mb-0","my-8 grid grid-cols-1 gap-3",e?"md:grid-cols-4":"md:grid-cols-1"),children:t?.modules?.map(r=>(0,At.jsx)(Rt,{module:r},r._key))})}var M=u(f());function Gt({gridXGap:t,gridYGap:e,gridTitleFontSize:r,value:n}){let[l]=Z(),{sanityDataset:o,sanityProjectId:i}=l.data.envs;return(0,M.jsx)("div",{className:y("first:mt-0 last:mb-0","my-8 grid grid-cols-1 gap-3"),style:{rowGap:e||"12px"},children:n?.items?.map(c=>(0,M.jsxs)("div",{className:"flex flex-col items-center gap-4 xl:flex-row odd:xl:flex-row-reverse",style:{columnGap:t||"16px"},children:[(0,M.jsx)("div",{className:"relative flex w-full shrink-0 items-center justify-center overflow-hidden xl:w-[50%]",children:c.image&&(0,M.jsx)(Q,{alt:c.image?.altText,crop:c.image?.crop,className:"w-full rounded-lg",dataset:o,hotspot:c.image?.hotspot,objectFit:"cover",projectId:i,sizes:"100%",src:c.image?.asset?._ref})}),(0,M.jsxs)("div",{className:"space-y-6",children:[(0,M.jsx)("div",{className:y("text-left font-bold",r?`text-[${r}]`:"text-xl"),children:c.title}),(0,M.jsx)($,{className:"text-justify text-md",blocks:c.body,sanityProjectId:i,sanityDataset:o})]})]},c._key))})}var Le=u(B()),De=u(f());function Wt({value:t,iframeClassName:e}){let{fullWidth:r,title:n="iframe",url:l}=t,{width:o,height:i}=(0,Le.useMemo)(()=>({width:r?"100%":e?"auto":"320px",height:r?"70vh":e?"auto":"320px"}),[r]);return(0,De.jsx)("iframe",{title:n,width:o,height:i,src:l,style:{height:i},className:e})}var st=u(f());function at({aspectRatio:t,centered:e,objectFit:r,value:n,imageClasses:l,sanityProjectId:o,sanityDataset:i}){if(!Array.isArray(n.modules))return null;let c=n.modules.length>1,d;switch(n.verticalAlign){case"bottom":d="items-end";break;case"center":d="items-center";break;case"top":d="items-start";break}return(0,st.jsx)("div",{className:y("first:mt-0 last:mb-0","my-8",n.fullWidth&&e&&!l&&"relative w-full",n.fullWidth&&!e&&"w-full",l),children:(0,st.jsx)("div",{className:y("grid grid-cols-1 gap-8",c?"md:grid-cols-2":"md:grid-cols-1",n.fullWidth?"w-full max-w-[1312px]":"",d,l),children:n?.modules?.map(P=>(0,st.jsx)(le,{aspectRatio:t,objectFit:r,module:P,fullWidth:n.fullWidth,sanityProjectId:o,sanityDataset:i},P._key))})})}var Ht=u(f());function Ft({value:t}){return t?(0,Ht.jsx)("div",{className:y("first:mt-0 last:mb-0","my-8"),children:(0,Ht.jsx)(ie,{module:t})}):null}var Vt=u(f());function ct({value:t}){if(!Array.isArray(t?.modules))return null;let e=t.modules.length>1;return(0,Vt.jsx)("div",{className:y("first:mt-0 last:mb-0","my-8 grid grid-cols-1 gap-3",e?"md:grid-cols-2":"md:grid-cols-1"),children:t?.modules?.map(r=>(0,Vt.jsx)(se,{imageAspectClassName:"aspect-[320/220]",layout:t.layout,module:r},r._key))})}var q=u(f());function Ut({value:t}){return t?(0,q.jsx)("div",{className:"overflow-auto rounded-md border border-solid border-GREY_FOUR md:rounded-lg",children:(0,q.jsx)("table",{className:"w-full",children:t.rows.map((e,r)=>(0,q.jsx)("tr",{className:"first:py-3 first:font-bold first:text-[#FE522A] even:bg-GREY_FOUR",children:e.cells.map((n,l)=>(0,q.jsx)("td",{className:"first:text=[#004c74] px-4 py-3 first:font-bold",children:n},l))},r))})}):null}var T=u(f()),Ee=y("first:mt-0 last:mb-0","my-8 space-y-0.5 leading-paragraph list-outside ml-8 max-w-[1312px]");function $({aspectRatio:t,blocks:e,blocksTitle:r,centered:n,className:l,gridXGap:o,gridYGap:i,gridTitleFontSize:c,objectFit:d,imageClasses:P,iframeClassName:x,sanityProjectId:a,sanityDataset:s}){let m={list:{bullet:({children:p})=>(0,T.jsx)("ul",{className:y(Ee,"ml-0 mt-4"),children:p}),number:({children:p})=>(0,T.jsx)("ol",{className:Ee,children:p})},marks:{annotationLinkExternal:ve,annotationLinkInternal:wt,annotationLinkEmail:xe,annotationProduct:p=>(0,T.jsx)(Oe,{...p})},block:Et,types:{blockAccordion:p=>(0,T.jsx)(ot,{...p,sanityProjectId:a,sanityDataset:s}),blockCallout:p=>(0,T.jsx)(it,{centered:n,...p}),"module.callout":p=>(0,T.jsx)(it,{centered:n,...p}),"module.accordion":p=>(0,T.jsx)(ot,{...p,sanityProjectId:a,sanityDataset:s}),"module.collections":p=>(0,T.jsx)(jt,{...p}),"module.grid":p=>(0,T.jsx)(Gt,{gridXGap:o,gridYGap:i,gridTitleFontSize:c,...p}),blockImages:p=>(0,T.jsx)(at,{aspectRatio:t,centered:n,sanityProjectId:a,sanityDataset:s,...p}),"module.images":p=>(0,T.jsx)(at,{aspectRatio:t,centered:n,objectFit:d,imageClasses:P,sanityProjectId:a,sanityDataset:s,...p}),"module.iframe":p=>(0,T.jsx)(Wt,{...p,iframeClassName:x}),blockInstagram:Ft,blockProducts:ct,table:Ut,"module.products":ct}};return(0,Re.useMemo)(()=>(0,T.jsx)("div",{className:y("w-full",l),children:(0,T.jsx)(Pe,{value:e,components:m})}),[r||e])}export{Pe as a,$ as b};