PageSourceSearch

https://www.curated-crowd.com/assets/_handle-BxUJbYU2.js

js curated-crowd.com collected 2026-10-08 18:40:25 UTC 94,486 bytes, 13 lines download raw bytes

1import{r as u,j as s,G as bt,L as Oe,u as Mn,g as Dn,I as In,J as Bn,K as Hn,M as Je,N as Qt,Q as Vn,S as er,B as tr,U as zn,h as Hr,V as Wn,E as Un,W as Vr,X as Gn,i as Kn,n as w,Y as Xn,Z as rr,$ as qn,a0 as zr,f as Yn,a1 as Zn,a2 as Jn,a3 as nr}from"./main-CUb43k5l.js";import{a as Qn,b as ea}from"./analytics-C8SYzu7M.js";import{C as ta,a as ra}from"./chevron-right-CplLFhcW.js";var na=Object.defineProperty,nt=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,ar=(e,t,r)=>t in e?na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aa=(e,t)=>{for(var r in t||(t={}))Wr.call(t,r)&&ar(e,r,t[r]);if(nt)for(var r of nt(t))Ur.call(t,r)&&ar(e,r,t[r]);return e},sa=(e,t)=>{var r={};for(var n in e)Wr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&nt)for(var n of nt(e))t.indexOf(n)<0&&Ur.call(e,n)&&(r[n]=e[n]);return r};const Gr=u.forwardRef((e,t)=>{var r=e,{color:n="currentColor"}=r,a=sa(r,["color"]);return u.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",width:15,height:15,fill:"none",ref:t},a),u.createElement("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13.056 7.5H1.944M9.278 3.722 13.056 7.5l-3.778 3.778"}))});Gr.displayName="ArrowRight";const yt={black:"#1A1716",white:"#FFFFFF",red:"#B22222",blue:"#2B4C7E",green:"#2E5339",yellow:"#D4A017",orange:"#CC7722",pink:"#D4848C",purple:"#6B3FA0",brown:"#6B4226",grey:"#8C8C8C",gray:"#8C8C8C",navy:"#1B2A4A",beige:"#C8B89A",cream:"#FAF0E6",olive:"#556B2F",teal:"#2E6B6B",maroon:"#5C1A1A",coral:"#E8735A",gold:"#B8860B",silver:"#A8A8A8",sand:"#C2B280",rust:"#A45A2A",burgundy:"#6B1830",charcoal:"#3D3632",ivory:"#FFFFF0",khaki:"#B5A789",lavender:"#9B8EC0",mint:"#88C9A1",peach:"#E8A87C",plum:"#6B3A6B",salmon:"#E88B78",tan:"#C4A86B",turquoise:"#3BAFAF"};function oa(e){const t=e.toLowerCase().trim();if(yt[t])return yt[t];for(const[r,n]of Object.entries(yt))if(t.includes(r))return n;return null}const ia=({option:e,current:t,updateOption:r,title:n,isColor:a=!1,"data-testid":o,disabled:l,outOfStockValues:c=new Set,customOrder:i,variants:d})=>{const h=(()=>{const m=(e.values??[]).map(p=>p.value);if(i&&i.length>0&&d&&d.length>0){const p=new Map;if(i.forEach((g,v)=>{const x=d.find(b=>b.id===g);if(x&&x.options){const b=x.options.find(y=>y.option_id===e.id);b&&!p.has(b.value)&&p.set(b.value,v)}}),m.every(g=>!isNaN(parseFloat(g))&&isFinite(Number(g))))return m.sort((g,v)=>parseFloat(g)-parseFloat(v));if(p.size>0)return m.sort((g,v)=>{const x=p.get(g)??Number.MAX_SAFE_INTEGER,b=p.get(v)??Number.MAX_SAFE_INTEGER;return x-b})}return m.sort((p,f)=>{const g=parseFloat(p),v=parseFloat(f),x=!isNaN(g),b=!isNaN(v);if(x&&b)return g-v;if(x)return 1;if(b)return-1;const y={xxs:0,"2xs":0,xs:1,"x-small":1,"extra small":1,"xs/s":1.5,s:2,sm:2,small:2,"s/m":2.5,m:3,md:3,medium:3,"m/l":3.5,l:4,lg:4,large:4,"l/xl":4.5,xl:5,"x-large":5,"extra large":5,"xl/xxl":5.5,xxl:6,"2xl":6,"xx-large":6,"3xl":7,xxxl:7,"4xl":8,xxxxl:8,"5xl":9,"6xl":10},j=y[p.toLowerCase().trim()],E=y[f.toLowerCase().trim()];return j!==void 0&&E!==void 0?j-E:j!==void 0?-1:E!==void 0?1:p.localeCompare(f)})})();return a?s.jsx("div",{className:"flex flex-wrap gap-2.5","data-testid":o,children:h.map(m=>{const p=m===t,f=c.has(m),g=oa(m);return s.jsxs("button",{onClick:()=>!f&&r(e.id,m),className:bt("w-8 h-8 rounded-full transition-all duration-200 flex items-center justify-center relative",{"ring-2 ring-cc-charcoal ring-offset-2":p,"hover:ring-1 hover:ring-cc-stone hover:ring-offset-1 cursor-pointer":!p&&!l&&!f,"cursor-not-allowed":l||f}),disabled:l||f,title:f?`${m} (Out of stock)`:m,"data-testid":"option-button",children:[s.jsx("span",{className:bt("w-full h-full rounded-full border border-cc-sand/60",{"opacity-40":f||l}),style:{backgroundColor:g||"#cccccc"}}),f&&s.jsx("span",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:s.jsx("span",{className:"w-7 h-[2px] bg-black -rotate-45 shadow-[0_0_4px_rgba(0,0,0,0.4)]"})})]},m)})}):s.jsx("div",{className:"flex flex-wrap gap-2","data-testid":o,children:h.map(m=>{const p=m===t,f=c.has(m);return s.jsxs("button",{onClick:()=>!f&&r(e.id,m),className:bt("font-body text-xs tracking-wide px-4 py-2 border transition-all duration-200 min-w-[56px] relative overflow-hidden",{"border-cc-charcoal bg-cc-espresso text-cc-cream":p&&!f,"border-cc-sand bg-cc-cream text-cc-charcoal hover:border-cc-stone cursor-pointer":!p&&!l&&!f,"border-cc-sand/40 bg-cc-cream/40 text-cc-charcoal/40 cursor-not-allowed":l||f}),disabled:l||f,title:f?`${m} (Out of stock)`:void 0,"data-testid":"option-button",children:[m,f&&s.jsx("span",{className:"absolute inset-0 pointer-events-none z-10",children:s.jsx("span",{className:"absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center",children:s.jsx("span",{className:"w-[calc(100%*1.414)] h-[2px] bg-black -rotate-45 origin-center shadow-[0_0_4px_rgba(0,0,0,0.4)]"})})})]},m)})})};function la(e,t){return e.replace(new RegExp(`^${ca(t)}\\s*[-–—/|,]\\s*`,"i"),"").trim()||e}function ca(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ua({group:e,currentProductId:t,countryCode:r}){const n=e.products.filter(a=>a.status==="published");return n.length<=1?null:s.jsxs("div",{className:"mt-4 mb-2",children:[s.jsx("p",{className:"font-body text-[10px] tracking-[0.3em] uppercase text-cc-taupe mb-3",children:"Colour"}),s.jsx("div",{className:"flex flex-wrap gap-3",children:n.map(a=>
1s.jsx(da,{member:a,groupName:e.name,isCurrent:a.id===t,countryCode:r},a.id??a.handle))})]})}function da({member:e,groupName:t,isCurrent:r,countryCode:n}){const a=e.product_group_link?.display_name||la(e.title,t),o=s.jsxs("div",{className:"flex flex-col items-center gap-1.5 group/swatch",children:[s.jsx("div",{className:`w-14 h-[72px] overflow-hidden border-b-2 transition-all duration-200 ${r?"border-cc-charcoal opacity-100":"border-transparent opacity-70 hover:opacity-100 hover:border-cc-stone"}`,children:e.thumbnail?s.jsx("img",{src:e.thumbnail,alt:a,className:"w-full h-full object-cover object-top",loading:"lazy"}):s.jsx("div",{className:"w-full h-full bg-cc-warm flex items-center justify-center",children:s.jsx("span",{className:"text-cc-stone text-[10px] font-body",children:a.charAt(0)})})}),s.jsx("span",{className:`font-body text-[10px] tracking-wide text-center leading-tight max-w-[56px] ${r?"text-cc-charcoal font-medium":"text-cc-taupe"}`,children:a})]});return r?s.jsx("div",{children:o}):s.jsx(Oe,{to:"/$countryCode/products/$handle",params:{countryCode:n,handle:e.handle},"aria-label":`View ${a}`,children:o})}function Wt(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}var Kr=typeof global=="object"&&global&&global.Object===Object&&global,fa=typeof self=="object"&&self&&self.Object===Object&&self,te=Kr||fa||Function("return this")(),ke=te.Symbol,Xr=Object.prototype,pa=Xr.hasOwnProperty,ha=Xr.toString,Pe=ke?ke.toStringTag:void 0;function ma(e){var t=pa.call(e,Pe),r=e[Pe];try{e[Pe]=void 0;var n=!0}catch{}var a=ha.call(e);return n&&(t?e[Pe]=r:delete e[Pe]),a}var ga=Object.prototype,va=ga.toString;function xa(e){return va.call(e)}var ba="[object Null]",ya="[object Undefined]",sr=ke?ke.toStringTag:void 0;function Ue(e){return e==null?e===void 0?ya:ba:sr&&sr in Object(e)?ma(e):xa(e)}function Ve(e){return e!=null&&typeof e=="object"}var at=Array.isArray;function qr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wa="[object AsyncFunction]",ja="[object Function]",Ea="[object GeneratorFunction]",Na="[object Proxy]";function Yr(e){if(!qr(e))return!1;var t=Ue(e);return t==ja||t==Ea||t==wa||t==Na}var wt=te["__core-js_shared__"],or=(function(){var e=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function $a(e){return!!or&&or in e}var Sa=Function.prototype,Ca=Sa.toString;function je(e){if(e!=null){try{return Ca.call(e)}catch{}try{return e+""}catch{}}return""}var Ta=/[\\^$.*+?()[\]{}|]/g,_a=/^\[object .+?Constructor\]$/,ka=Function.prototype,Oa=Object.prototype,Aa=ka.toString,Pa=Oa.hasOwnProperty,Fa=RegExp("^"+Aa.call(Pa).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ra(e){if(!qr(e)||$a(e))return!1;var t=Yr(e)?Fa:_a;return t.test(je(e))}function La(e,t){return e?.[t]}function Ae(e,t){var r=La(e,t);return Ra(r)?r:void 0}var kt=Ae(te,"WeakMap"),Ma=9007199254740991,Da=/^(?:0|[1-9]\d*)$/;function Ia(e,t){var r=typeof e;return t=t??Ma,!!t&&(r=="number"||r!="symbol"&&Da.test(e))&&e>-1&&e%1==0&&e<t}function Zr(e,t){return e===t||e!==e&&t!==t}var Ba=9007199254740991;function Jr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ba}function Ha(e){return e!=null&&Jr(e.length)&&!Yr(e)}var Va=Object.prototype;function za(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Va;return e===r}function Wa(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Ua="[object Arguments]";function ir(e){return Ve(e)&&Ue(e)==Ua}var Qr=Object.prototype,Ga=Qr.hasOwnProperty,Ka=Qr.propertyIsEnumerable,Xa=ir((function(){return arguments})())?ir:function(e){return Ve(e)&&Ga.call(e,"callee")&&!Ka.call(e,"callee")};function qa(){return!1}var en=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lr=en&&typeof module=="object"&&module&&!module.nodeType&&module,Ya=lr&&lr.exports===en,cr=Ya?te.Buffer:void 0,Za=cr?cr.isBuffer:void 0,Ot=Za||qa,Ja="[object Arguments]",Qa="[object Array]",es="[object Boolean]",ts="[object Date]",rs="[object Error]",ns="[object Function]",as="[object Map]",ss="[object Number]",os="[object Object]",is="[object RegExp]",ls="[object Set]",cs="[object String]",us="[object WeakMap]",ds="[object ArrayBuffer]",fs="[object DataView]",ps="[object Float32Array]",hs="[object Float64Array
1]",ms="[object Int8Array]",gs="[object Int16Array]",vs="[object Int32Array]",xs="[object Uint8Array]",bs="[object Uint8ClampedArray]",ys="[object Uint16Array]",ws="[object Uint32Array]",k={};k[ps]=k[hs]=k[ms]=k[gs]=k[vs]=k[xs]=k[bs]=k[ys]=k[ws]=!0;k[Ja]=k[Qa]=k[ds]=k[es]=k[fs]=k[ts]=k[rs]=k[ns]=k[as]=k[ss]=k[os]=k[is]=k[ls]=k[cs]=k[us]=!1;function js(e){return Ve(e)&&Jr(e.length)&&!!k[Ue(e)]}function Es(e){return function(t){return e(t)}}var tn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Me=tn&&typeof module=="object"&&module&&!module.nodeType&&module,Ns=Me&&Me.exports===tn,jt=Ns&&Kr.process,ur=(function(){try{var e=Me&&Me.require&&Me.require("util").types;return e||jt&&jt.binding&&jt.binding("util")}catch{}})(),dr=ur&&ur.isTypedArray,rn=dr?Es(dr):js,$s=Object.prototype,Ss=$s.hasOwnProperty;function Cs(e,t){var r=at(e),n=!r&&Xa(e),a=!r&&!n&&Ot(e),o=!r&&!n&&!a&&rn(e),l=r||n||a||o,c=l?Wa(e.length,String):[],i=c.length;for(var d in e)Ss.call(e,d)&&!(l&&(d=="length"||a&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Ia(d,i)))&&c.push(d);return c}function Ts(e,t){return function(r){return e(t(r))}}var _s=Ts(Object.keys,Object),ks=Object.prototype,Os=ks.hasOwnProperty;function As(e){if(!za(e))return _s(e);var t=[];for(var r in Object(e))Os.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ps(e){return Ha(e)?Cs(e):As(e)}var ze=Ae(Object,"create");function Fs(){this.__data__=ze?ze(null):{},this.size=0}function Rs(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ls="__lodash_hash_undefined__",Ms=Object.prototype,Ds=Ms.hasOwnProperty;function Is(e){var t=this.__data__;if(ze){var r=t[e];return r===Ls?void 0:r}return Ds.call(t,e)?t[e]:void 0}var Bs=Object.prototype,Hs=Bs.hasOwnProperty;function Vs(e){var t=this.__data__;return ze?t[e]!==void 0:Hs.call(t,e)}var zs="__lodash_hash_undefined__";function Ws(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ze&&t===void 0?zs:t,this}function ye(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ye.prototype.clear=Fs;ye.prototype.delete=Rs;ye.prototype.get=Is;ye.prototype.has=Vs;ye.prototype.set=Ws;function Us(){this.__data__=[],this.size=0}function ct(e,t){for(var r=e.length;r--;)if(Zr(e[r][0],t))return r;return-1}var Gs=Array.prototype,Ks=Gs.splice;function Xs(e){var t=this.__data__,r=ct(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ks.call(t,r,1),--this.size,!0}function qs(e){var t=this.__data__,r=ct(t,e);return r<0?void 0:t[r][1]}function Ys(e){return ct(this.__data__,e)>-1}function Zs(e,t){var r=this.__data__,n=ct(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function re(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=Us;re.prototype.delete=Xs;re.prototype.get=qs;re.prototype.has=Ys;re.prototype.set=Zs;var We=Ae(te,"Map");function Js(){this.size=0,this.__data__={hash:new ye,map:new(We||re),string:new ye}}function Qs(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ut(e,t){var r=e.__data__;return Qs(t)?r[typeof t=="string"?"string":"hash"]:r.map}function eo(e){var t=ut(this,e).delete(e);return this.size-=t?1:0,t}function to(e){return ut(this,e).get(e)}function ro(e){return ut(this,e).has(e)}function no(e,t){var r=ut(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ee(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ee.prototype.clear=Js;Ee.prototype.delete=eo;Ee.prototype.get=to;Ee.prototype.has=ro;Ee.prototype.set=no;function ao(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}function so(){this.__data__=new re,this.size=0}function oo(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function io(e){return this.__data__.get(e)}function lo(e){return this.__data__.has(e)}var co=200;function uo(e,t){var r=this.__data__;if(r instanceof re){var n=r.__data__;if(!We||n.length<co-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ee(n)}return r.set(e,t),this.size=r.size,this}function de(e){var t=this.__data__=new re(e);this.size=t.size}de.prototype.clear=so;de.prototype.delete=oo;de.prototype.get=io;de.prototype.has=lo;de.prototype.set=uo;function fo(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var l=e[r];t(l,r,e)&&(o[a++]=l)}return o}function po(){return[]}var ho=Object.prototype,mo=ho.propertyIsEnumerable,fr=Object.getOwnPropertySymbols,go=fr?function(e){return e==null?[]:(e=Object(e),fo(fr(e),function(t){return mo.call(e,t)}))}:po;function vo(e,t,r){var n=t(e);return at(e)?n:ao(n,r(e))}function pr(e){return vo(e,Ps,go)}var At=Ae(te,"DataView"),Pt=Ae(te,"Promise"),Ft=Ae(te,"Set"),hr="[object Map]",xo="[object Object]",mr="[object Promise]",gr="[object Set]",vr="[object WeakMap]",xr="[object DataView]",bo=je(At),yo=je(We),wo=je(Pt),jo=je(Ft),Eo=je(kt),ie=Ue;(At&&ie(new At(new ArrayBuffer(1)))!=xr||We&&ie(new We)!=hr||Pt&&ie(Pt.resolve())!=mr||Ft&&ie(new Ft)!=gr||kt&&ie(new kt)!=vr)&&(ie=function(e){var t=Ue(e),r=t==xo?e.constructor:void 0,n=r?je(r):"";if(n)switch(n){case bo:return xr;case yo:return hr;case wo:return mr;case jo:return gr;
vendor: 3,059 bytes, line 1
1case Eo:return vr}return t});var br=te.Uint8Array,No="__lodash_hash_undefined__";function $o(e){return this.__data__.set(e,No),this}function So(e){return this.__data__.has(e)}function st(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ee;++t<r;)this.add(e[t])}st.prototype.add=st.prototype.push=$o;st.prototype.has=So;function Co(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function To(e,t){return e.has(t)}var _o=1,ko=2;function nn(e,t,r,n,a,o){var l=r&_o,c=e.length,i=t.length;if(c!=i&&!(l&&i>c))return!1;var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var m=-1,p=!0,f=r&ko?new st:void 0;for(o.set(e,t),o.set(t,e);++m<c;){var g=e[m],v=t[m];if(n)var x=l?n(v,g,m,t,e,o):n(g,v,m,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!Co(t,function(b,y){if(!To(f,y)&&(g===b||a(g,b,r,n,o)))return f.push(y)})){p=!1;break}}else if(!(g===v||a(g,v,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Oo(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Ao(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Po=1,Fo=2,Ro="[object Boolean]",Lo="[object Date]",Mo="[object Error]",Do="[object Map]",Io="[object Number]",Bo="[object RegExp]",Ho="[object Set]",Vo="[object String]",zo="[object Symbol]",Wo="[object ArrayBuffer]",Uo="[object DataView]",yr=ke?ke.prototype:void 0,Et=yr?yr.valueOf:void 0;function Go(e,t,r,n,a,o,l){switch(r){case Uo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wo:return!(e.byteLength!=t.byteLength||!o(new br(e),new br(t)));case Ro:case Lo:case Io:return Zr(+e,+t);case Mo:return e.name==t.name&&e.message==t.message;case Bo:case Vo:return e==t+"";case Do:var c=Oo;case Ho:var i=n&Po;if(c||(c=Ao),e.size!=t.size&&!i)return!1;var d=l.get(e);if(d)return d==t;n|=Fo,l.set(e,t);var h=nn(c(e),c(t),n,a,o,l);return l.delete(e),h;case zo:if(Et)return Et.call(e)==Et.call(t)}return!1}var Ko=1,Xo=Object.prototype,qo=Xo.hasOwnProperty;function Yo(e,t,r,n,a,o){var l=r&Ko,c=pr(e),i=c.length,d=pr(t),h=d.length;if(i!=h&&!l)return!1;for(var m=i;m--;){var p=c[m];if(!(l?p in t:qo.call(t,p)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var v=!0;o.set(e,t),o.set(t,e);for(var x=l;++m<i;){p=c[m];var b=e[p],y=t[p];if(n)var j=l?n(y,b,p,t,e,o):n(b,y,p,e,t,o);if(!(j===void 0?b===y||a(b,y,r,n,o):j)){v=!1;break}x||(x=p=="constructor")}if(v&&!x){var E=e.constructor,C=t.constructor;E!=C&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(v=!1)}return o.delete(e),o.delete(t),v}var Zo=1,wr="[object Arguments]",jr="[object Array]",Qe="[object Object]",Jo=Object.prototype,Er=Jo.hasOwnProperty;function Qo(e,t,r,n,a,o){var l=at(e),c=at(t),i=l?jr:ie(e),d=c?jr:ie(t);i=i==wr?Qe:i,d=d==wr?Qe:d;var h=i==Qe,m=d==Qe,p=i==d;if(p&&Ot(e)){if(!Ot(t))return!1;l=!0,h=!1}if(p&&!h)return o||(o=new de),l||rn(e)?nn(e,t,r,n,a,o):Go(e,t,i,r,n,a,o);if(!(r&Zo)){var f=h&&Er.call(e,"__wrapped__"),g=m&&Er.call(t,"__wrapped__");
1if(f||g){var v=f?e.value():e,x=g?t.value():t;return o||(o=new de),a(v,x,r,n,o)}}return p?(o||(o=new de),Yo(e,t,r,n,a,o)):!1}function an(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ve(e)&&!Ve(t)?e!==e&&t!==t:Qo(e,t,r,n,an,a)}function Nr(e,t){return an(e,t)}const ei=u.memo(function({product:t,region:r,disabled:n,productGroup:a,countryCode:o,sizingChart:l,onOpenSizingChart:c,onOptionsChange:i,beforeOptions:d}){const[h,m]=u.useState({}),[p,f]=u.useState(!1),[g,v]=u.useState(!1),x=u.useRef([]);u.useEffect(()=>()=>x.current.forEach(clearTimeout),[]);const[b,y]=u.useState(!1),j=u.useRef(null),E=u.useRef(null),C=Mn(),T=o??(Dn(C.pathname)||"dk"),P=In({fields:zn}),{openCart:ae,isOpen:K}=Bn(),{showToast:O}=Hn();u.useEffect(()=>{m({})},[t?.handle]),u.useEffect(()=>{i?.({})},[t?.handle,i]),u.useEffect(()=>{const N=t?.variants;if(N?.length===1){const A=N[0],H=Je(A?.options??[])??{};m(H)}},[t?.variants]),u.useEffect(()=>{if(t?.variants?.length===1){const N=t.variants[0],R=Je(N?.options??[])??{};i?.(R)}},[t?.variants,i]),u.useEffect(()=>{y(!0);const N=j.current;if(!N)return;const A=document.getElementById("site-header");let R=!1;const H=()=>{const Ze=A?.getBoundingClientRect().bottom??0;f(N.getBoundingClientRect().bottom<Math.max(Ze,0)),R=!1},oe=()=>{R||(R=!0,requestAnimationFrame(H))};return H(),window.addEventListener("scroll",oe,{passive:!0}),window.addEventListener("resize",oe),()=>{window.removeEventListener("scroll",oe),window.removeEventListener("resize",oe)}},[]);const $=u.useMemo(()=>{if(!t?.variants||t?.variants.length===0)return;if(t?.variants.length===1&&(!t?.options||t?.options.length===0))return t?.variants[0];const N=t?.variants;return N?N.find(R=>{const H=Je(R?.options??[]);return Nr(H,h)}):void 0},[t?.variants,t?.options,h]),X=(N,A)=>{m(R=>({...R,[N]:A}))};u.useEffect(()=>{i?.(h)},[h]);const F=u.useMemo(()=>t?.variants?.some(N=>{const A=Je(N?.options??[]);return Nr(A,h)}),[t?.variants,h]),B=u.useMemo(()=>$?Qt($):!1,[$]),se=u.useMemo(()=>$?Vn($)?"uk_warehouse":"brand_direct":null,[$]),$e=u.useMemo(()=>{if(!$)return null;const N=$;return N.inventory_items?N.inventory_items.reduce((A,R)=>{const H=R.inventory?.location_levels?.find(oe=>oe.stock_locations?.[0]?.name==="Main Warehouse");return A+(H?.stocked_quantity??0)},0):null},[$]),pe=async()=>{if(!$?.id)return null;try{await P.mutateAsync({variant_id:$.id,quantity:1,country_code:T,product:t,variant:$,region:r},{onSuccess:()=>{Qn(t,$,r,1),x.current.forEach(clearTimeout),v(!0),x.current=[setTimeout(ae,Wt()?0:450),setTimeout(()=>v(!1),1500)]}})}catch{O("We couldn't add this item to your cart. Please try again.")}},q=N=>{const A=(N.title??"").toLowerCase();return A==="color"||A==="colour"},Y=u.useMemo(()=>{const N=t.options?.find(q);return N&&h[N.id]||null},[t.options,h]),Se=u.useMemo(()=>{const N=new Map;return t.options?.forEach(A=>{const R=new Set;A.values?.forEach(H=>{t.variants?.some(Ze=>Ze.options?.some(Jt=>Jt.option_id===A.id&&Jt.value===H.value)&&Qt(Ze))||R.add(H.value)}),N.set(A.id,R)}),N},[t.options,t.variants]),z=u.useMemo(()=>{const N=t.metadata?.variant_order;return N&&Array.isArray(N)?N:void 0},[t.metadata]),Ce=$?!B||!F?"Out of stock":"Add to Cart":"Select size",S=!B||!$||!!n||!F,he=s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx("svg",{viewBox:"0 0 24 24",className:"pdp-pop w-4 h-4",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M5 12.5L10 17.5L19 7",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),"Added"]}),Z=b&&p&&!K,Ye=t.thumbnail||t.images?.[0]?.url||null,Te=$?(t.options??[]).map(N=>{const A=h[N.id];return A?`${N.title??"Option"}: ${A}`:null}).filter(Boolean).join(" · "):"",_e=$?Ce:"Add to Cart",me=$?S:!!n,Ln=()=>{if(!$){E.current?.scrollIntoView({behavior:"smooth",block:"center"});return}pe()};return u.useEffect(()=>(document.documentElement.toggleAttribute("data-sticky-add-bar",Z),()=>document.documentElement.removeAttribute("data-sticky-add-bar")),[Z]),s.jsx(s.Fragment,{children:s.jsxs("div",{className:"flex flex-col gap-y-4",children:[s.jsx(er,{product:t,variant:$,className:"font-display text-3xl text-cc-black",priceProps:{textSize:"xlarge",textClassName:"text-lg md:text-xl"}}),a&&s.jsx(ua,{group:a,currentProductId:t.id,countryCode:T}),d,(t.options||[]).length>0&&s.jsx("div",{ref:E,className:"flex flex-col gap-y-5",children:(t.options||[]).map(N=>{const A=q(N);return s.jsxs("div",{children:[A&&Y&&s.jsxs("p",{className:"font-body text-xs text-cc-charcoal mb-2",children:[s.jsx("span",{className:"text-cc-taupe",children:"Colour:"})," ",Y]}),s.jsx(ia,{option:N,current:h[N.id],updateOption:X,title:N.title??"",isColor:A,disabled:!!n||P.isPending,outOfStockValues:Se.get(N.id),customOrder:z,variants:t.variants??void 0})]},N.id)})}),l&&s.jsx("button",{onClick:c,className:"font-body text-[10px] tracking-[0.1em] uppercase text-cc-taupe underline underline-offset-2 hover:text-cc-charcoal transition-colors w-fit cursor-pointer",children:"Size chart"}),$&&B&&s.jsxs("div",{className:"grid grid-cols-2 divide-x divide-cc-sand bg-cc-warm font-body text-xs",children:[s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[s.jsxs("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 flex-shrink-0 text-cc-charcoal",fill:"none","aria-hidden":"true",children:[s.jsx("path",{d:"M4 9.5L5.5 4.5H18.5L20 9.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),s.jsx("path",{d:"M4 9.5H20V10.5C20 11.6 19.1 12.5 18 12.5C16.9 12.5 16 11.6 16 10.5C16 11.6 15.1 12.5 14 12.5C12.9 12.5 12 11.6 12 10.5C12 11.6 11.1 12.5 10 12.5C8.9 12.5 8 11.6 8 10.5C8 11.6 7.1 12.5 6 12.5C4.9 12.5 4 11.6 4 10.5V9.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),s.jsx("path",{d:"M5.5 12.5V19.5H18.5V12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 19.5V15.5H14V19.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]}),se==="uk_warehouse"?s.jsx("span",{className:"text-cc-green",children:$e!=null?`${$e} left in store`:"In store"}):s.jsx("span",{className:"text-cc-charcoal",children:"Made to Order"})]}),s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[s.jsx("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 flex-shrink-0 text-cc-charcoal",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M21 15.5V14L13.5 9.5V4.25C13.5 3.42 12.83 2.75 12 2.75C11.17 2.75 10.5 3.42 10.5 4.25V9.5L3 14V15.5L10.5 13.25V18.5L8.5 20V21.25L12 20.25L15.5 21.25V20L13.5 18.5V13.25L21 15.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})}),s.jsx("span",{className:"text-cc-charcoal",children:se==="uk_warehouse"?"Dispatch within 24 hours":"Typically ship in 10 days"})]})]}),s.jsx(tr,{ref:j,onClick:pe,disabled:S,variant:"primary",className:"w-full","data-testid":"add-product-button",children:g?he:Ce}),Z&&s.jsx("div",{className:"md:hidden fixed bottom-14 left-0 right-0 z-[60] bg-cc-cream border-t border-cc-sand px-4 py-3","data-testid":"sticky-add-bar",children:s.jsxs("div",{className:"flex items-center gap-3",children:[Ye&&s.jsx("img",{src:Ye,alt:"",className:"w-11 h-14 object-cover flex-shrink-0",loading:"eager",decoding:"async"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"font-body text-xs text-cc-black leading-snug line-clamp-2 capitalize",children:t.title}),s.jsxs("div",{className:"mt-0.5 flex items-end gap-2 min-w-0",children:[s.jsx(er,{product:t,variant:$,className:"flex-shrink-0",priceProps:{textSize:"large"}}),Te&&s.jsx("span",{className:"font-body text-[11px] text-cc-taupe truncate",children:Te})]})]}),s.jsx(tr,{onClick:Ln,disabled:me,variant:"primary",size:"fit",className:"flex-shrink-0 px-5 whitespace-nowrap","data-testid":"add-product-button-mobile",children:g?he:_e})]})}),s.jsxs("p",{className:"font-body text-xs text-cc-stone",children:["Need Help?"," ",s.jsx("a",{href:"https://wa.me/447377945617",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 text-cc-taupe hover:text-cc-charcoal transition-colors",children:"WhatsApp us"})]})]})})}),ti=({product_id:e,region_id:t,currency_code:r,brand_id:n,category_id:a})=>Hr({queryKey:Un.products.related(e,t,n,a),queryFn:()=>Wn({product_id:e,region_id:t,currency_code:r,brand_id:n,category_id:a}),enabled:!!e&&!!t});function ri({product:e,region:t,countryCode:r}){const{data:n}
1=ti({product_id:e.id,region_id:t.id,currency_code:t.currency_code,brand_id:e.brand?.id,category_id:e.categories?.[0]?.id});return!n||n.length===0?null:s.jsx("div",{className:"border-t border-cc-sand/40 py-10 lg:py-14",children:s.jsxs("div",{className:"content-container",children:[s.jsxs("div",{className:"flex items-end justify-between mb-6",children:[s.jsx("h2",{className:"font-display text-2xl lg:text-3xl font-light tracking-wide text-cc-black",children:"We think you'll like"}),s.jsxs(Oe,{to:"/$countryCode/store",params:{countryCode:r},className:"hidden md:flex items-center gap-1.5 font-body text-xs tracking-[0.1em] uppercase text-cc-taupe hover:text-cc-charcoal transition-colors",children:["View All",s.jsx(Gr,{className:"w-3.5 h-3.5"})]})]}),s.jsx("div",{className:"flex md:grid md:grid-cols-4 gap-4 lg:gap-6 overflow-x-auto md:overflow-visible pb-4 md:pb-0 -mx-4 px-4 md:mx-0 md:px-0 scrollbar-hide",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:n.slice(0,4).map(a=>s.jsx("div",{className:"w-[200px] md:w-auto md:min-w-0 flex-shrink-0 md:flex-shrink",children:s.jsx(Vr,{product:a,countryCode:r,hoverZoom:!0})},a.id))})]})})}function Rt({children:e,className:t=""}){const r=u.useRef(null),[n,a]=u.useState("idle");u.useEffect(()=>{const l=r.current;if(!l||Wt()||typeof IntersectionObserver>"u"||l.getBoundingClientRect().top<window.innerHeight)return;a("hidden");const c=new IntersectionObserver(([i])=>{i.isIntersecting&&(a("shown"),c.disconnect())},{threshold:.15});return c.observe(l),()=>c.disconnect()},[]);const o=n==="hidden"?"pdp-reveal-hidden":n==="shown"?"pdp-reveal":"";return s.jsx("div",{ref:r,className:`${t} ${o}`,children:e})}const ni=4;function ai({currentProductId:e,region:t,countryCode:r}){const[n,a]=u.useState([]);u.useEffect(()=>{a(Gn().map(l=>l.id).filter(l=>l!==e).slice(0,ni))},[e]);const{data:o}=Hr({queryKey:["products","recently-viewed",n.join(","),t.id],queryFn:async()=>{const{products:l}=await Kn.store.product.list({id:n,region_id:t.id,limit:n.length}),c=new Map(n.map((i,d)=>[i,d]));return[...l].sort((i,d)=>(c.get(i.id)??0)-(c.get(d.id)??0))},enabled:n.length>0});return!n.length||!o||o.length===0?null:s.jsx(Rt,{className:"border-t border-cc-sand/40 py-10 lg:py-14",children:s.jsxs("div",{className:"content-container",children:[s.jsx("h2",{className:"font-display text-2xl lg:text-3xl font-light tracking-wide text-cc-black mb-6",children:"Recently viewed"}),s.jsx("div",{className:"flex md:grid md:grid-cols-4 gap-4 lg:gap-6 overflow-x-auto md:overflow-visible pb-4 md:pb-0 -mx-4 px-4 md:mx-0 md:px-0 scrollbar-hide",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:o.map(l=>s.jsx("div",{className:"w-[200px] md:w-auto md:min-w-0 flex-shrink-0 md:flex-shrink",children:s.jsx(Vr,{product:l,countryCode:r,hoverZoom:!0})},l.id))})]})})}var si=Object.defineProperty,oi=(e,t,r)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t,r)=>(oi(e,typeof t!="symbol"?t+"":t,r),r);let ii=class{constructor(){Nt(this,"current",this.detect()),Nt(this,"handoffState","pending"),Nt(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},U=new ii;function Ge(e){var t;return U.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function Lt(e){var t,r;return U.isServer?null:e==null?document:(r=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?r:document}function sn(e){var t,r;return(r=(t=Lt(e))==null?void 0:t.activeElement)!=null?r:null}function li(e){return sn(e)===e}function dt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ne(){let e=[],t={addEventListener(r,n,a,o){return r.addEventListener(n,a,o),t.add(()=>r.removeEventListener(n,a,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return dt(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,a){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:a}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=ne();return r(n),this.add(()=>n.dispose())},add(r){return e.includes(r)||e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let a of e.splice(n,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function ft(){let[e]=u.useState(ne);return u.useEffect(()=>()=>
vendor: 8,942 bytes, lines 1-4
1e.dispose(),[e]),e}let L=(e,t)=>{U.isServer?u.useEffect(e,t):u.useLayoutEffect(e,t)};function Ne(e){let t=u.useRef(e);return L(()=>{t.current=e},[e]),t}let _=function(e){let t=Ne(e);return w.useCallback((...r)=>t.current(...r),[t])};function Ke(e){return u.useMemo(()=>e,Object.values(e))}let ci=u.createContext(void 0);function ui(){return u.useContext(ci)}function Mt(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function ee(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ee),n}var ot=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ot||{}),ce=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ce||{});function I(){let e=fi();return u.useCallback(t=>di({mergeRefs:e,...t}),[e])}function di({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:l,mergeRefs:c}){c=c??pi;let i=on(t,e);if(o)return et(i,r,n,l,c);let d=a??0;if(d&2){let{static:h=!1,...m}=i;if(h)return et(m,r,n,l,c)}if(d&1){let{unmount:h=!0,...m}=i;return ee(h?0:1,{0(){return null},1(){return et({...m,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return et(i,r,n,l,c)}function et(e,t={},r,n,a){let{as:o=r,children:l,refName:c="ref",...i}=$t(e,["unmount","static"]),d=e.ref!==void 0?{[c]:e.ref}:{},h=typeof l=="function"?l(t):l;h=ln(h),"className"in i&&i.className&&typeof i.className=="function"&&(i.className=i.className(t)),i["aria-labelledby"]&&i["aria-labelledby"]===i.id&&(i["aria-labelledby"]=void 0);let m={};if(t){let p=!1,f=[];for(let[g,v]of Object.entries(t))typeof v=="boolean"&&(p=!0),v===!0&&f.push(g.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(p){m["data-headlessui-state"]=f.join(" ");for(let g of f)m[`data-${g}`]=""}}if(De(o)&&(Object.keys(ge(i)).length>0||Object.keys(ge(m)).length>0))if(!u.isValidElement(h)||Array.isArray(h)&&h.length>1||mi(h)){if(Object.keys(ge(i)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ge(i)).concat(Object.keys(ge(m))).map(p=>`  - ${p}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>`  - ${p}`).join(`
3`)].join(`
4`))}else{let p=h.props,f=p?.className,g=typeof f=="function"?(...b)=>Mt(f(...b),i.className):Mt(f,i.className),v=g?{className:g}:{},x=on(h.props,ge($t(i,["ref"])));for(let b in m)b in x&&delete m[b];return u.cloneElement(h,Object.assign({},x,m,d,{ref:a(hi(h),d.ref)},v))}return u.createElement(o,Object.assign({},$t(i,["ref"]),!De(o)&&d,!De(o)&&m),h)}function fi(){let e=u.useRef([]),t=u.useCallback(r=>{for(let n of e.current)n!=null&&(typeof n=="function"?n(r):n.current=r)},[]);return(...r)=>{if(!r.every(n=>n==null))return e.current=r,t}}function pi(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function on(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let a in n)a.startsWith("on")&&typeof n[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(n[a])):t[a]=n[a];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[a=>{var o;return(o=a?.preventDefault)==null?void 0:o.call(a)}]);for(let n in r)Object.assign(t,{[n](a,...o){let l=r[n];for(let c of l){if((a instanceof Event||a?.nativeEvent instanceof Event)&&a.defaultPrevented)return;c(a,...o)}}});return t}function M(e){var t;return Object.assign(u.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ge(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function $t(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function hi(e){return w.version.split(".")[0]>="19"?e.props.ref:e.ref}function ln(e){if(e!=null&&e.$$typeof===Symbol.for("react.lazy")){let t=e._payload;if(t!=null&&t.status==="fulfilled")return ln(t.value)}return e}function De(e){return e===u.Fragment||e===Symbol.for("react.fragment")}function mi(e){return De(e.type)}let gi="span";var it=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(it||{});function vi(e,t){var r;let{features:n=1,...a}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return I()({ourProps:o,theirProps:a,slot:{},defaultTag:gi,name:"Hidden"})}let Dt=M(vi);function xi(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function fe(e){return xi(e)&&"tagName"in e}function we(e){return fe(e)&&"accessKey"in e}function ue(e){return fe(e)&&"tabIndex"in e}function bi(e){return fe(e)&&"style"in e}function yi(e){return we(e)&&e.nodeName==="IFRAME"}function wi(e){return we(e)&&e.nodeName==="INPUT"}let cn=Symbol();function ji(e,t=!0){return Object.assign(e,{[cn]:t})}function G(...e){let t=u.useRef(e);u.useEffect(()=>{t.current=e},[e]);let r=_(n=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(n):a.current=n)});return e.every(n=>n==null||n?.[cn])?void 0:r}let Ut=u.createContext(null);Ut.displayName="DescriptionContext";function un(){let e=u.useContext(Ut);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,un),t}return e}function Ei(){let[e,t]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(r){let n=_(o=>(t(l=>[...l,o]),()=>t(l=>{let c=l.slice(),i=c.indexOf(o);return i!==-1&&c.splice(i,1),c}))),a=u.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return w.createElement(Ut.Provider,{value:a},r.children)},[t])]}let Ni="p";function $i(e,t){let r=u.useId(),n=ui(),{id:a=`headlessui-description-${r}`,...o}=e,l=un(),c=G(t);L(()=>l.register(a),[a,l.register]);let i=Ke({...l.slot,disabled:n||!1}),d={ref:c,...l.props,id:a};return I()({ourProps:d,theirProps:o,slot:i,defaultTag:Ni,name:l.name||"Description"})}let Si=M($i),Ci=Object.assign(Si,{});var dn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(dn||{});let Ti=u.createContext(()=>{});function _i({value:e,children:t}){return w.createElement(Ti.Provider,{value:e},t)}let fn=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};var ki=Object.defineProperty,Oi=(e,t,r)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ai=(e,t,r)=>(Oi(e,t+"",r),r),pn=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},D=(e,t,r)=>(pn(e,t,"read from private field"),r?r.call(e):t.get(e)),St=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},$r=(e,t,r,n)=>(pn(e,t,"write to private field"),t.set(e,r),r),W,Fe,Re;let Pi=class{constructor(t){St(this,W,{}),St(this,Fe,new fn(()=>new Set)),St(this,Re,new Set),Ai(this,"disposables",ne()),$r(this,W,t),U.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return D(this,W)}subscribe(t,r){if(U.isServer)return()=>{};let n={selector:t,callback:r,current:t(D(this,W))};return D(this,Re).add(n),this.disposables.add(()=>{D(this,Re).delete(n)})}on(t,r){return U.isServer?()=>{}:(D(this,Fe).get(t).add(r),this.disposables.add(()=>{D(this,Fe).get(t).delete(r)}))}send(t){let r=this.reduce(D(this,W),t);if(r!==D(this,W)){$r(this,W,r);for(let n of D(this,Re)){let a=n.selector(D(this,W));hn(n.current,a)||(n.current=a,n.callback(a))}for(let n of D(this,Fe).get(t.type))n(D(this,W),t)}}};W=new WeakMap,Fe=new WeakMap,Re=new WeakMap;function hn(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ct(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ct(e.entries(),t.entries()):Sr(e)&&Sr(t)?Ct(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ct(e,t){do{let r=e.next(),n=t.next();if(r.done&&n.done)return!0;
4if(r.done||n.done||!Object.is(r.value,n.value))return!1}while(!0)}function Sr(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var Fi=Object.defineProperty,Ri=(e,t,r)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cr=(e,t,r)=>(Ri(e,typeof t!="symbol"?t+"":t,r),r),Li=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Li||{});let Mi={0(e,t){let r=t.id,n=e.stack,a=e.stack.indexOf(r);if(a!==-1){let o=e.stack.slice();return o.splice(a,1),o.push(r),n=o,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(n===-1)return e;let a=e.stack.slice();return a.splice(n,1),{...e,stack:a}}},Di=class mn extends Pi{constructor(){super(...arguments),Cr(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Cr(this,"selectors",{isTop:(t,r)=>t.stack[t.stack.length-1]===r,inStack:(t,r)=>t.stack.includes(r)})}static new(){return new mn({stack:[]})}reduce(t,r){return ee(r.type,Mi,t,r)}};const gn=new fn(()=>Di.new());var Tt={exports:{}},_t={};/**
5 * @license React
6 * use-sync-external-store-with-selector.production.js
7 *
8 * Copyright (c) Meta Platforms, Inc. and affiliates.
9 *
10 * This source code is licensed under the MIT license found in the
11 * LICENSE file in the root directory of this source tree.
12 */var Tr;function Ii(){if(Tr)return _t;Tr=1;var e=Xn();function t(i,d){return i===d&&(i!==0||1/i===1/d)||i!==i&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;return _t.useSyncExternalStoreWithSelector=function(i,d,h,m,p){var f=a(null);if(f.current===null){var g={hasValue:!1,value:null};f.current=g}else g=f.current;f=l(function(){function x(C){if(!b){if(b=!0,y=C,C=m(C),p!==void 0&&g.hasValue){var T=g.value;if(p(T,C))return j=T}return j=C}if(T=j,r(y,C))return T;var P=m(C);return p!==void 0&&p(T,P)?(y=C,T):(y=C,j=P)}var b=!1,y,j,E=h===void 0?null:h;return[function(){return x(d())},E===null?void 0:function(){return x(E())}]},[d,h,m,p]);var v=n(i,f[0],f[1]);return o(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},_t}var _r;function Bi(){return _r||(_r=1,Tt.exports=Ii()),Tt.exports}var Hi=Bi();function vn(e,t,r=hn){return Hi.useSyncExternalStoreWithSelector(_(n=>e.subscribe(Vi,n)),_(()=>e.state),_(()=>e.state),_(t),r)}function Vi(e){return e}function Xe(e,t){let r=u.useId(),n=gn.get(t),[a,o]=vn(n,u.useCallback(l=>[n.selectors.isTop(l,r),n.selectors.inStack(l,r)],[n,r]));return L(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),e?o?a:!0:!1}let It=new Map,Ie=new Map;function kr(e){var t;let r=(t=Ie.get(e))!=null?t:0;return Ie.set(e,r+1),r!==0?()=>Or(e):(It.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Or(e))}function Or(e){var t;let r=(t=Ie.get(e))!=null?t:1;if(r===1?Ie.delete(e):Ie.set(e,r-1),r!==1)return;let n=It.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,It.delete(e))}function zi(e,{allowed:t,disallowed:r}={}){let n=Xe(e,"inert-others");L(()=>{var a,o;if(!n)return;let l=ne();for(let i of(a=r?.())!=null?a:[])i&&l.add(kr(i));let c=(o=t?.())!=null?o:[];for(let i of c){if(!i)continue;let d=Ge(i);if(!d)continue;let h=i.parentElement;for(;h&&h!==d.body;){for(let m of h.children)c.some(p=>m.contains(p))||l.add(kr(m));h=h.parentElement}}return l.dispose},[n,t,r])}function Wi(e,t,r){let n=Ne(a=>{let o=a.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&r()});u.useEffect(()=>{if(!e)return;let a=t===null?null:we(t)?t:t.current;if(!a)return;let o=ne();if(typeof ResizeObserver<"u"){let l=new ResizeObserver(()=>n.current(a));l.observe(a),o.add(()=>l.disconnect())}if(typeof IntersectionObserver<"u"){let l=new IntersectionObserver(()=>n.current(a));l.observe(a),o.add(()=>l.disconnect())}return()=>o.dispose()},[t,n,e])}let lt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Ui=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var J=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(J||{}),Bt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Bt||{}),Gi=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Gi||{});function Ki(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(lt)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function Xi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ui)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var xn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xn||{});function qi(e,t=0){var r;return e===((r=Ge(e))==null?void 0:r.body)?!1:ee(t,{0(){return e.matches(lt)},1(){let n=e;for(;n!==null;){if(n.matches(lt))return!0;n=n.parentElement}return!1}})}var Yi=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Yi||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Q(e){e?.focus({preventScroll:!0})}let Zi=["textarea","input"].join(",");function Ji(e){var t,r;return(r=(t=e?.matches)==null?void 0:t.call(e,Zi))!=null?r:!1}function Qi(e,t=r=>r){return e.slice().sort((r,n)=>{let a=t(r),o=t(n);if(a===null||o===null)return 0;let l=a.compareDocumentPosition(o);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Be(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){let o=Array.isArray(e)?e.length>0?Lt(e[0]):document:Lt(e),l=Array.isArray(e)?r?Qi(e):e:t&64?Xi(e):Ki(e);a.length>0&&l.length>1&&(l=l.filter(f=>!a.some(g=>g!=null&&"current"in g?g?.current===f:g===f))),n=n??o?.activeElement;let c=(()=>
vendor: 10,227 bytes, lines 12-13
12{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},h=0,m=l.length,p;do{if(h>=m||h+m<=0)return 0;let f=i+h;if(t&16)f=(f+m)%m;else{if(f<0)return 3;if(f>=m)return 1}p=l[f],p?.focus(d),h+=c}while(p!==sn(p));return t&6&&Ji(p)&&p.select(),2}function bn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function el(){return/Android/gi.test(window.navigator.userAgent)}function Ar(){return bn()||el()}function tt(e,t,r,n){let a=Ne(r);u.useEffect(()=>{if(!e)return;function o(l){a.current(l)}return document.addEventListener(t,o,n),()=>document.removeEventListener(t,o,n)},[e,t,n])}function yn(e,t,r,n){let a=Ne(r);u.useEffect(()=>{if(!e)return;function o(l){a.current(l)}return window.addEventListener(t,o,n),()=>window.removeEventListener(t,o,n)},[e,t,n])}const Pr=30;function tl(e,t,r){let n=Ne(r),a=u.useCallback(function(c,i){if(c.defaultPrevented)return;let d=i(c);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let h=(function m(p){return typeof p=="function"?m(p()):Array.isArray(p)||p instanceof Set?p:[p]})(t);for(let m of h)if(m!==null&&(m.contains(d)||c.composed&&c.composedPath().includes(m)))return;return!qi(d,xn.Loose)&&d.tabIndex!==-1&&c.preventDefault(),n.current(c,d)},[n,t]),o=u.useRef(null);tt(e,"pointerdown",c=>{var i,d;Ar()||(o.current=((d=(i=c.composedPath)==null?void 0:i.call(c))==null?void 0:d[0])||c.target)},!0),tt(e,"pointerup",c=>{if(Ar()||!o.current)return;let i=o.current;return o.current=null,a(c,()=>i)},!0);let l=u.useRef({x:0,y:0});tt(e,"touchstart",c=>{l.current.x=c.touches[0].clientX,l.current.y=c.touches[0].clientY},!0),tt(e,"touchend",c=>{let i={x:c.changedTouches[0].clientX,y:c.changedTouches[0].clientY};if(!(Math.abs(i.x-l.current.x)>=Pr||Math.abs(i.y-l.current.y)>=Pr))return a(c,()=>ue(c.target)?c.target:null)},!0),yn(e,"blur",c=>a(c,()=>yi(window.document.activeElement)?window.document.activeElement:null),!0)}function Gt(...e){return u.useMemo(()=>Ge(...e),[...e])}function wn(e,t,r,n){let a=Ne(r);u.useEffect(()=>{e=e??window;function o(l){a.current(l)}return e.addEventListener(t,o,n),()=>e.removeEventListener(t,o,n)},[e,t,n])}function rl(e){return u.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function nl(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(a){return n.add(a),()=>n.delete(a)},dispatch(a,...o){let l=t[a].call(r,...o);l&&(r=l,n.forEach(c=>c()))}}}function al(){let e;return{before({doc:t}){var r;let n=t.documentElement,a=(r=t.defaultView)!=null?r:window;e=Math.max(0,a.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,a=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,e-a);r.style(n,"paddingRight",`${o}px`)}}}function sl(){return bn()?{before({doc:e,d:t,meta:r}){function n(a){for(let o of r().containers)for(let l of o())if(l.contains(a))return!0;return!1}t.microTask(()=>{var a;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let c=ne();c.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>c.dispose()))}let o=(a=window.scrollY)!=null?a:window.pageYOffset,l=null;t.addEventListener(e,"click",c=>{if(ue(c.target))try{let i=c.target.closest("a");if(!i)return;let{hash:d}=new URL(i.href),h=e.querySelector(d);ue(h)&&!n(h)&&(l=h)}catch{}},!0),t.group(c=>{t.addEventListener(e,"touchstart",i=>{if(c.dispose(),ue(i.target)&&bi(i.target))if(n(i.target)){let d=i.target;for(;d.parentElement&&n(d.parentElement);)d=d.parentElement;c.style(d,"overscrollBehavior","contain")}else c.style(i.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",c=>{if(ue(c.target)){if(wi(c.target))return;if(n(c.target)){let i=c.target;for(;i.parentElement&&i.dataset.headlessuiPortal!==""&&!(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth);)i=i.parentElement;i.dataset.headlessuiPortal===""&&c.preventDefault()}else c.preventDefault()}},{passive:!1}),t.add(()=>{var c;let i=(c=window.scrollY)!=null?c:window.pageYOffset;o!==i&&window.scrollTo(0,o),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function ol(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Fr(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let xe=nl(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:ne(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=Fr(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=Fr(r.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},r=[sl(),al(),ol()];r.forEach(({before:n})=>n?.(t)),r.forEach(({after:n})=>n?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});xe.subscribe(()=>{let e=xe.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",a=r.count!==0;(a&&!n||!a&&n)&&xe.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&xe.dispatch("TEARDOWN",r)}});function il(e,t,r=()=>({containers:[]})){let n=rl(xe),a=t?n.get(t):void 0,o=a?a.count>0:!1;return L(()=>{if(!(!t||!e))return xe.dispatch("PUSH",t,r),()=>xe.dispatch("POP",t,r)},[e,t]),o}function ll(e,t,r=()=>[document.body]){let n=Xe(e,"scroll-lock");il(n,t,a=>{var o;return{containers:[...(o=a.containers)!=null?o:[],r]}})}function cl(e=0){let[t,r]=u.useState(e),n=u.useCallback(i=>r(i),[]),a=u.useCallback(i=>r(d=>d|i),[]),o=u.useCallback(i=>(t&i)===i,[t]),l=u.useCallback(i=>r(d=>d&~i),[]),c=u.useCallback(i=>r(d=>d^i),[]);return{flags:t,setFlag:n,addFlag:a,hasFlag:o,removeFlag:l,toggleFlag:c}}var ul={},Rr,Lr;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Rr=process==null?void 0:ul)==null?void 0:Rr.NODE_ENV)==="test"&&typeof((Lr=Element?.prototype)==null?void 0:Lr.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
13`)),[]});var dl=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(dl||{});function fl(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function pl(e,t,r,n){let[a,o]=u.useState(r),{hasFlag:l,addFlag:c,removeFlag:i}=cl(e&&a?3:0),d=u.useRef(!1),h=u.useRef(!1),m=ft();return L(()=>{var p;if(e){if(r&&o(!0),!t){r&&c(3);return}return(p=n?.start)==null||p.call(n,r),hl(t,{inFlight:d,prepare(){h.current?h.current=!1:h.current=d.current,d.current=!0,!h.current&&(r?(c(3),i(4)):(c(4),i(2)))},run(){h.current?r?(i(3),c(4)):(i(4),c(3)):r?i(1):c(1)},done(){var f;h.current&&vl(t)||(d.current=!1,i(7),r||o(!1),(f=n?.end)==null||f.call(n,r))}})}},[e,r,t,m]),e?[a,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function hl(e,{prepare:t,run:r,done:n,inFlight:a}){let o=ne();return gl(e,{prepare:t,inFlight:a}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(ml(e,n))})}),o.dispose}function ml(e,t){var r,n;let a=ne();if(!e)return a.dispose;let o=!1;a.add(()=>{o=!0});let l=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(c=>c instanceof CSSTransition))!=null?n:[];return l.length===0?(t(),a.dispose):(Promise.allSettled(l.map(c=>c.finished)).then(()=>{o||t()}),a.dispose)}function gl(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function vl(e){var t,r;return((r=(t=e.getAnimations)==null?void 0:t.call(e))!=null?r:[]).some(n=>n instanceof CSSTransition&&n.playState!=="finished")}function Kt(e,t){let r=u.useRef([]),n=_(e);u.useEffect(()=>{let a=[...r.current];for(let[o,l]of t.entries())if(r.current[o]!==l){let c=n(t,a);return r.current=t,c}},[n,...t])}let pt=u.createContext(null);pt.displayName="OpenClosedContext";var V=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(V||{});function ht(){return u.useContext(pt)}function xl({value:e,children:t}){return w.createElement(pt.Provider,{value:e},t)}function bl({children:e}){return w.createElement(pt.Provider,{value:null},e)}function yl(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let le=[];yl(()=>{function e(t){if(!ue(t.target)||t.target===document.body||le[0]===t.target)return;let r=t.target;r=r.closest(lt),le.unshift(r??t.target),le=le.filter(n=>n!=null&&n.isConnected),le.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function jn(e){let t=_(e),r=u.useRef(!1);u.useEffect(()=>(r.current=!1,()=>{r.current=!0,dt(()=>{r.current&&t()})}),[t])}function wl(){let e=typeof document>"u";return"useSyncExternalStore"in rr?(t=>t.useSyncExternalStore)(rr)(()=>()=>{},()=>!1,()=>!e):!1}function qe(){let e=wl(),[t,r]=u.useState(U.isHandoffComplete);return t&&U.isHandoffComplete===!1&&r(!1),u.useEffect(()=>{t!==!0&&r(!0)},[t]),u.useEffect(()=>U.handoff(),[]),e?!1:t}let En=u.createContext(!1);function jl(){return u.useContext(En)}function Mr(e){return w.createElement(En.Provider,{value:e.force},e.children)}function El(e){let t=jl(),r=u.useContext($n),[n,a]=u.useState(()=>{var o;if(!t&&r!==null)return(o=r.current)!=null?o:null;if(U.isServer)return null;let l=e?.getElementById("headlessui-portal-root");
13if(l)return l;if(e===null)return null;let c=e.createElement("div");return c.setAttribute("id","headlessui-portal-root"),e.body.appendChild(c)});return u.useEffect(()=>{n!==null&&(e!=null&&e.body.contains(n)||e==null||e.body.appendChild(n))},[n,e]),u.useEffect(()=>{t||r!==null&&a(r.current)},[r,a,t]),n}let Nn=u.Fragment,Nl=M(function(e,t){let{ownerDocument:r=null,...n}=e,a=u.useRef(null),o=G(ji(f=>{a.current=f}),t),l=Gt(a.current),c=r??l,i=El(c),d=u.useContext(Ht),h=ft(),m=qe(),p=I();return jn(()=>{var f;i&&i.childNodes.length<=0&&((f=i.parentElement)==null||f.removeChild(i))}),!i||!m?null:qn.createPortal(w.createElement("div",{"data-headlessui-portal":"",ref:f=>{h.dispose(),d&&f&&h.add(d.register(f))}},p({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:Nn,name:"Portal"})),i)});function $l(e,t){let r=G(t),{enabled:n=!0,ownerDocument:a,...o}=e,l=I();return n?w.createElement(Nl,{...o,ownerDocument:a,ref:r}):l({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:Nn,name:"Portal"})}let Sl=u.Fragment,$n=u.createContext(null);function Cl(e,t){let{target:r,...n}=e,a={ref:G(t)},o=I();return w.createElement($n.Provider,{value:r},o({ourProps:a,theirProps:n,defaultTag:Sl,name:"Popover.Group"}))}let Ht=u.createContext(null);function Tl(){let e=u.useContext(Ht),t=u.useRef([]),r=_(o=>(t.current.push(o),e&&e.register(o),()=>n(o))),n=_(o=>{let l=t.current.indexOf(o);l!==-1&&t.current.splice(l,1),e&&e.unregister(o)}),a=u.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,u.useMemo(()=>function({children:o}){return w.createElement(Ht.Provider,{value:a},o)},[a])]}let _l=M($l),Sn=M(Cl),kl=Object.assign(_l,{Group:Sn});function Ol(e,t=typeof document<"u"?document.defaultView:null,r){let n=Xe(e,"escape");wn(t,"keydown",a=>{n&&(a.defaultPrevented||a.key===dn.Escape&&r(a))})}function Al(){var e;let[t]=u.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=u.useState((e=t?.matches)!=null?e:!1);return L(()=>{if(!t)return;function a(o){n(o.matches)}return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[t]),r}function Pl({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=_(()=>{var a,o;let l=Ge(r),c=[];for(let i of e)i!==null&&(fe(i)?c.push(i):"current"in i&&fe(i.current)&&c.push(i.current));if(t!=null&&t.current)for(let i of t.current)c.push(i);for(let i of(a=l?.querySelectorAll("html > *, body > *"))!=null?a:[])i!==document.body&&i!==document.head&&fe(i)&&i.id!=="headlessui-portal-root"&&(r&&(i.contains(r)||i.contains((o=r?.getRootNode())==null?void 0:o.host))||c.some(d=>i.contains(d))||c.push(i));return c});
vendor: 5,444 bytes, line 13
13return{resolveContainers:n,contains:_(a=>n().some(o=>o.contains(a)))}}let Cn=u.createContext(null);function Dr({children:e,node:t}){let[r,n]=u.useState(null),a=Tn(t??r);return w.createElement(Cn.Provider,{value:a},e,a===null&&w.createElement(Dt,{features:it.Hidden,ref:o=>{var l,c;if(o){for(let i of(c=(l=Ge(o))==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?c:[])if(i!==document.body&&i!==document.head&&fe(i)&&i!=null&&i.contains(o)){n(i);break}}}}))}function Tn(e=null){var t;return(t=u.useContext(Cn))!=null?t:e}function Xt(){let e=u.useRef(!1);return L(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Le=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Le||{});function Fl(){let e=u.useRef(0);return yn(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function _n(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)fe(r.current)&&t.add(r.current);return t}let Rl="div";var ve=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ve||{});function Ll(e,t){let r=u.useRef(null),n=G(r,t),{initialFocus:a,initialFocusFallback:o,containers:l,features:c=15,...i}=e;qe()||(c=0);let d=Gt(r.current);Bl(c,{ownerDocument:d});let h=Hl(c,{ownerDocument:d,container:r,initialFocus:a,initialFocusFallback:o});Vl(c,{ownerDocument:d,container:r,containers:l,previousActiveElement:h});let m=Fl(),p=_(y=>{if(!we(r.current))return;let j=r.current;(E=>E())(()=>{ee(m.current,{[Le.Forwards]:()=>{Be(j,J.First,{skipElements:[y.relatedTarget,o]})},[Le.Backwards]:()=>{Be(j,J.Last,{skipElements:[y.relatedTarget,o]})}})})}),f=Xe(!!(c&2),"focus-trap#tab-lock"),g=ft(),v=u.useRef(!1),x={ref:n,onKeyDown(y){y.key=="Tab"&&(v.current=!0,g.requestAnimationFrame(()=>{v.current=!1}))},onBlur(y){if(!(c&4))return;let j=_n(l);we(r.current)&&j.add(r.current);let E=y.relatedTarget;ue(E)&&E.dataset.headlessuiFocusGuard!=="true"&&(kn(j,E)||(v.current?Be(r.current,ee(m.current,{[Le.Forwards]:()=>J.Next,[Le.Backwards]:()=>J.Previous})|J.WrapAround,{relativeTo:y.target}):ue(y.target)&&Q(y.target)))}},b=I();return w.createElement(w.Fragment,null,f&&w.createElement(Dt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:it.Focusable}),b({ourProps:x,theirProps:i,defaultTag:Rl,name:"FocusTrap"}),f&&w.createElement(Dt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:it.Focusable}))}let Ml=M(Ll),Dl=Object.assign(Ml,{features:ve});function Il(e=!0){let t=u.useRef(le.slice());return Kt(([r],[n])=>{n===!0&&r===!1&&dt(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=le.slice())},[e,le,t]),_(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function Bl(e,{ownerDocument:t}){let r=!!(e&8),n=Il(r);Kt(()=>{r||li(t?.body)&&Q(n())},[r]),jn(()=>{r&&Q(n())})}function Hl(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:a}){let o=u.useRef(null),l=Xe(!!(e&1),"focus-trap#initial-focus"),c=Xt();return Kt(()=>{if(e===0)return;if(!l){a!=null&&a.current&&Q(a.current);return}let i=r.current;i&&dt(()=>{if(!c.current)return;let d=t?.activeElement;if(n!=null&&n.current){if(n?.current===d){o.current=d;return}}else if(i.contains(d)){o.current=d;return}if(n!=null&&n.current)Q(n.current);else{if(e&16){if(Be(i,J.First|J.AutoFocus)!==Bt.Error)return}else if(Be(i,J.First)!==Bt.Error)return;if(a!=null&&a.current&&(Q(a.current),t?.activeElement===a.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t?.activeElement})},[a,l,e]),o}function Vl(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:a}){let o=Xt(),l=!!(e&4);wn(t?.defaultView,"focus",c=>{if(!l||!o.current)return;let i=_n(n);we(r.current)&&i.add(r.current);let d=a.current;if(!d)return;let h=c.target;we(h)?kn(i,h)?(a.current=h,Q(h)):(c.preventDefault(),c.stopPropagation(),Q(d)):Q(a.current)},!0)}function kn(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function On(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!De((t=e.as)!=null?t:Pn)||w.Children.count(e.children)===1}let mt=u.createContext(null);mt.displayName="TransitionContext";var zl=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zl||{});function Wl(){let e=u.useContext(mt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ul(){let e=u.useContext(gt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let gt=u.createContext(null);gt.displayName="NestingContext";function vt(e){return"children"in e?vt(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function An(e,t){let r=Ne(e),n=u.useRef([]),a=Xt(),o=ft(),l=_((f,g=ce.Hidden)=>{let v=n.current.findIndex(({el:x})=>x===f);v!==-1&&(ee(g,{[ce.Unmount](){n.current.splice(v,1)},[ce.Hidden](){n.current[v].state="hidden"}}),o.microTask(()=>{var x;!vt(n)&&a.current&&((x=r.current)==null||x.call(r))}))}),c=_(f=>{let g=n.current.find(({el:v})=>v===f);return g?g.state!=="visible"&&(g.state="visible"):n.current.push({el:f,state:"visible"}),()=>l(f,ce.Unmount)}),i=u.useRef([]),d=u.useRef(Promise.resolve()),h=u.useRef({enter:[],leave:[]}
vendor: 4,376 bytes, line 13
13),m=_((f,g,v)=>{i.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([x])=>x!==f)),t?.chains.current[g].push([f,new Promise(x=>{i.current.push(x)})]),t?.chains.current[g].push([f,new Promise(x=>{Promise.all(h.current[g].map(([b,y])=>y)).then(()=>x())})]),g==="enter"?d.current=d.current.then(()=>t?.wait.current).then(()=>v(g)):v(g)}),p=_((f,g,v)=>{Promise.all(h.current[g].splice(0).map(([x,b])=>b)).then(()=>{var x;(x=i.current.shift())==null||x()}).then(()=>v(g))});return u.useMemo(()=>({children:n,register:c,unregister:l,onStart:m,onStop:p,wait:d,chains:h}),[c,l,n,m,p,h,d])}let Pn=u.Fragment,Fn=ot.RenderStrategy;function Gl(e,t){var r,n;let{transition:a=!0,beforeEnter:o,afterEnter:l,beforeLeave:c,afterLeave:i,enter:d,enterFrom:h,enterTo:m,entered:p,leave:f,leaveFrom:g,leaveTo:v,...x}=e,[b,y]=u.useState(null),j=u.useRef(null),E=On(e),C=G(...E?[j,t,y]:t===null?[]:[t]),T=(r=x.unmount)==null||r?ce.Unmount:ce.Hidden,{show:P,appear:ae,initial:K}=Wl(),[O,$]=u.useState(P?"visible":"hidden"),X=Ul(),{register:F,unregister:B}=X;L(()=>F(j),[F,j]),L(()=>{if(T===ce.Hidden&&j.current){if(P&&O!=="visible"){$("visible");return}return ee(O,{hidden:()=>B(j),visible:()=>F(j)})}},[O,j,F,B,P,T]);let se=qe();L(()=>{if(E&&se&&O==="visible"&&j.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[j,O,se,E]);let $e=K&&!ae,pe=ae&&P&&K,q=u.useRef(!1),Y=An(()=>{q.current||($("hidden"),B(j))},X),Se=_(Te=>{q.current=!0;let _e=Te?"enter":"leave";Y.onStart(j,_e,me=>{me==="enter"?o?.():me==="leave"&&c?.()})}),z=_(Te=>{let _e=Te?"enter":"leave";q.current=!1,Y.onStop(j,_e,me=>{me==="enter"?l?.():me==="leave"&&i?.()}),_e==="leave"&&!vt(Y)&&($("hidden"),B(j))});u.useEffect(()=>{E&&a||(Se(P),z(P))},[P,E,a]);let Ce=!(!a||!E||!se||$e),[,S]=pl(Ce,b,P,{start:Se,end:z}),he=ge({ref:C,className:((n=Mt(x.className,pe&&d,pe&&h,S.enter&&d,S.enter&&S.closed&&h,S.enter&&!S.closed&&m,S.leave&&f,S.leave&&!S.closed&&g,S.leave&&S.closed&&v,!S.transition&&P&&p))==null?void 0:n.trim())||void 0,...fl(S)}),Z=0;O==="visible"&&(Z|=V.Open),O==="hidden"&&(Z|=V.Closed),P&&O==="hidden"&&(Z|=V.Opening),!P&&O==="visible"&&(Z|=V.Closing);let Ye=I();return w.createElement(gt.Provider,{value:Y},w.createElement(xl,{value:Z},Ye({ourProps:he,theirProps:x,defaultTag:Pn,features:Fn,visible:O==="visible",name:"Transition.Child"})))}function Kl(e,t){let{show:r,appear:n=!1,unmount:a=!0,...o}=e,l=u.useRef(null),c=On(e),i=G(...c?[l,t]:t===null?[]:[t]);qe();let d=ht();if(r===void 0&&d!==null&&(r=(d&V.Open)===V.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,m]=u.useState(r?"visible":"hidden"),p=An(()=>{r||m("hidden")}),[f,g]=u.useState(!0),v=u.useRef([r]);L(()=>{f!==!1&&v.current[v.current.length-1]!==r&&(v.current.push(r),g(!1))},[v,r]);let x=u.useMemo(()=>({show:r,appear:n,initial:f}),[r,n,f]);L(()=>{r?m("visible"):!vt(p)&&l.current!==null&&m("hidden")},[r,p]);let b={unmount:a},y=_(()=>{var C;f&&g(!1),(C=e.beforeEnter)==null||C.call(e)}),j=_(()=>{var C;f&&g(!1),(C=e.beforeLeave)==null||C.call(e)}),E=I();return w.createElement(gt.Provider,{value:p},w.createElement(mt.Provider,{value:x},E({ourProps:{...b,as:u.Fragment,children:w.createElement(Rn,{ref:i,...b,...o,beforeEnter:y,beforeLeave:j})},theirProps:{},defaultTag:u.Fragment,features:Fn,visible:h==="visible",name:"Transition"})))}function Xl(e,t){let r=u.useContext(mt)!==null,n=ht()!==null;return w.createElement(w.Fragment,null,!r&&n?w.createElement(Vt,{ref:t,...e}):w.createElement(Rn,{ref:t,...e}))}let Vt=M(Kl),Rn=M(Gl),qt=M(Xl),be=Object.assign(Vt,{Child:qt,Root:Vt});var ql=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ql||{}),Yl=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Yl||{});let Zl={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Yt=u.createContext(null);Yt.displayName="DialogContext";function xt(e){let t=u.useContext(Yt);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,xt),r}return t}function Jl(e,t){return ee(t.type,Zl,e,t)}let Ir=M(function(e,t){let r=u.useId(),{id:n=`headlessui-dialog-${r}`,open:a,onClose:o,initialFocus:l,role:c="dialog",autoFocus:i=!0,__demoMode:d=!1,unmount:h=!1,...m}=e,p=u.useRef(!1);c=(function(){return c==="dialog"||c==="alertdialog"?c:(p.current||(p.current=!0,
13console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let f=ht();a===void 0&&f!==null&&(a=(f&V.Open)===V.Open);let g=u.useRef(null),v=G(g,t),x=Gt(g.current),b=a?0:1,[y,j]=u.useReducer(Jl,{titleId:null,descriptionId:null,panelRef:u.createRef()}),E=_(()=>o(!1)),C=_(S=>j({type:0,id:S})),T=qe()?b===0:!1,[P,ae]=Tl(),K={get current(){var S;return(S=y.panelRef.current)!=null?S:g.current}},O=Tn(),{resolveContainers:$}=Pl({mainTreeNode:O,portals:P,defaultContainers:[K]}),X=f!==null?(f&V.Closing)===V.Closing:!1;zi(d||X?!1:T,{allowed:_(()=>{var S,he;return[(he=(S=g.current)==null?void 0:S.closest("[data-headlessui-portal]"))!=null?he:null]}),disallowed:_(()=>{var S;return[(S=O?.closest("body > *:not(#headlessui-portal-root)"))!=null?S:null]})});let F=gn.get(null);L(()=>{if(T)return F.actions.push(n),()=>F.actions.pop(n)},[F,n,T]);let B=vn(F,u.useCallback(S=>F.selectors.isTop(S,n),[F,n]));tl(B,$,S=>{S.preventDefault(),E()}),Ol(B,x?.defaultView,S=>{S.preventDefault(),S.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),E()}),ll(d||X?!1:T,x,$),Wi(T,g,E);let[se,$e]=Ei(),pe=u.useMemo(()=>[{dialogState:b,close:E,setTitleId:C,unmount:h},y],[b,E,C,h,y]),q=Ke({open:b===0}),Y={ref:v,id:n,role:c,tabIndex:-1,"aria-modal":d?void 0:b===0?!0:void 0,"aria-labelledby":y.titleId,"aria-describedby":se,unmount:h},Se=!Al(),z=ve.None;T&&!d&&(z|=ve.RestoreFocus,z|=ve.TabLock,i&&(z|=ve.AutoFocus),Se&&(z|=ve.InitialFocus));let Ce=I();return w.createElement(bl,null,w.createElement(Mr,{force:!0},w.createElement(kl,null,w.createElement(Yt.Provider,{value:pe},w.createElement(Sn,{target:g},w.createElement(Mr,{force:!1},w.createElement($e,{slot:q},w.createElement(ae,null,w.createElement(Dl,{initialFocus:l,initialFocusFallback:g,containers:$,features:z},w.createElement(_i,{value:E},Ce({ourProps:Y,theirProps:m,slot:q,defaultTag:Ql,features:ec,visible:b===0,name:"Dialog"})))))))))))}),Ql="div",ec=ot.RenderStrategy|ot.Static;function tc(e,t){let{transition:r=!1,open:n,...a}=e,o=ht(),l=e.hasOwnProperty("open")||o!==null,c=e.hasOwnProperty("onClose");if(!l&&!c)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!l)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!c)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!a.static?w.createElement(Dr,null,w.createElement(be,{show:n,transition:r,unmount:a.unmount},w.createElement(Ir,{ref:t,...a}))):w.createElement(Dr,null,w.createElement(Ir,{ref:t,open:n,...a}))}let rc="div";function nc(e,t){let r=u.useId(),{id:n=`headlessui-dialog-panel-${r}`,transition:a=!1,...o}=e,[{dialogState:l,unmount:c},i]=xt("Dialog.Panel"),d=G(t,i.panelRef),h=Ke({open:l===0}),m=_(x=>{x.stopPropagation()}),p={ref:d,id:n,onClick:m},f=a?qt:u.Fragment,g=a?{unmount:c}:{},v=I();return w.createElement(f,{...g},v({ourProps:p,theirProps:o,slot:h,defaultTag:rc,name:"Dialog.Panel"}))}let ac="div";function sc(e,t){let{transition:r=!1,...n}=e,[{dialogState:a,unmount:o}]=xt("Dialog.Backdrop"),l=Ke({open:a===0}),c={ref:t,"aria-hidden":!0},i=r?qt:u.Fragment,d=r?{unmount:o}:{},h=I();return w.createElement(i,{...d},h({ourProps:c,theirProps:n,slot:l,defaultTag:ac,name:"Dialog.Backdrop"}))}let oc="h2";function ic(e,t){let r=u.useId(),{id:n=`headlessui-dialog-title-${r}`,...a}=e,[{dialogState:o,setTitleId:l}]=xt("Dialog.Title"),c=G(t);u.useEffect(()=>(l(n),()=>l(null)),[n,l]);let i=Ke({open:o===0}),d={ref:c,id:n};return I()({ourProps:d,theirProps:a,slot:i,defaultTag:oc,name:"Dialog.Title"})}let lc=M(tc),cc=M(nc);M(sc);let uc=M(ic),He=Object.assign(lc,{Panel:cc,Title:uc,Description:Ci});function dc({isOpen:e,onClose:t,sizingChart:r}){return s.jsx(be,{appear:!0,show:e,as:u.Fragment,children:s.jsxs(He,{as:"div",className:"relative z-50",onClose:t,children:[s.jsx(be.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s.jsx("div",{className:"fixed inset-0 bg-cc-black/40"})}),s.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:s.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:s.jsx(be.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:s.jsxs(He.Panel,{className:"w-full max-w-2xl transform overflow-hidden bg-cc-cream p-8 transition-all",children:[s.jsxs("div",{className:"flex items-start justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx(He.Title,{className:"font-display text-2xl font-light tracking-wide text-cc-black",children:r.name}),r.description&&s.jsx("p",{className:"font-body text-sm text-cc-taupe mt-2 leading-relaxed",children:r.description})]}),s.jsx("button",{onClick:t,className:"text-cc-taupe hover:text-cc-black transition-colors",children:s.jsx(zr,{className:"w-5 h-5"})})]}),r.pdf_url?s.jsxs("div",{className:"w-full",children:[s.jsx("iframe",{src:r.pdf_url,className:"w-full h-[600px] border border-cc-sand",title:r.name}),s.jsx("div",{className:"mt-4",children:s.jsx("a",{href:r.pdf_url,target:"_blank",rel:"noopener noreferrer",className:"font-body text-[11px] tracking-[0.15em] uppercase text-cc-accent hover:text-cc-charcoal transition-colors",children:"Open PDF in new tab"})})]}):r.chart_data?s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full border-collapse",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-cc-sand",children:[s.jsx("th",{className:"font-body text-[10px] tracking-[0.15em] uppercase text-cc-charcoal py-3 px-4 text-left",children:"Size"}),r.chart_data.headers.map((n,a)=>s.jsx("th",{className:"font-body text-[10px] tracking-[0.15em] uppercase text-cc-charcoal py-3 px-4 text-center",children:n},a))]})}),s.jsx("tbody",{children:r.chart_data.rows.map((n,a)=>s.jsxs("tr",{className:"border-b border-cc-sand last:border-0",children:[s.jsx("td",{className:"font-body text-sm text-cc-black py-3 px-4 font-medium",children:n.label}),n.values.map((o,l)=>s.jsx("td",{className:"font-body text-sm text-cc-taupe py-3 px-4 text-center",children:o},l))]},a))})]})}):s.jsx("div",{className:"text-center text-cc-taupe py-8",children:"No sizing information available"})]})})})})]})})}function fc({images:e,isOpen:t,activeIndex:r,onActiveIndexChange:n,onClose:a}){const o=()=>{n(r===0?e.length-1:r-1)},l=()=>{n(r===e.length-1?0:r+1)},[c,i]=u.useState(null);u.useEffect(()=>{i(null)},[r,t]);const d=m=>{const p=(m.currentTarget.parentElement??m.currentTarget).getBoundingClientRect();return{x:Math.min(100,Math.max(0,(m.clientX-p.left)/p.width*100)),y:Math.min(100,Math.max(0,(m.clientY-p.top)/p.height*100))}};if(u.useEffect(()=>{if(!t)return;const m=p=>{p.key==="ArrowLeft"&&o(),p.key==="ArrowRight"&&l()};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[t,r,e.length]),!e||e.length===0)return null;const h=e[r];return s.jsx(be,{appear:!0,show:t,as:u.Fragment,children:s.jsxs(He,{as:"div",className:"relative z-50",onClose:a,children:[s.jsx(be.Child,{as:u.Fragment,enter:"ease-out duration-[250ms] motion-reduce:duration-0",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200 motion-reduce:duration-0",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s.jsx("div",{className:"fixed inset-0 bg-cc-black/90"})}),s.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:s.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:s.jsx(be.Child,{as:u.Fragment,enter:"ease-out duration-[250ms] motion-reduce:duration-0",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200 motion-reduce:duration-0",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:s.jsxs(He.Panel,{className:"w-full max-w-4xl transform overflow-hidden transition-all",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("span",{className:"font-body text-xs tracking-[0.15em] uppercase text-cc-cream/70",children:[r+1," / ",e.length]}),s.jsx("button",{onClick:a,className:"text-cc-cream/70 hover:text-cc-cream transition-colors cursor-pointer","aria-label":"Close",children:s.jsx(zr,{className:"w-6 h-6"})})]}),s.jsxs("div",{className:"relative overflow-hidden",children:[h.url&&s.jsx("img",{src:h.url,alt:`Product image ${r+1}`,onClick:m=>{if(!window.matchMedia("(min-width: 768px)").matches)return;const p=d(m);i(f=>f?null:p)},onMouseMove:m=>{c&&i(d(m))},style:c?{transform:"scale(2.5)",transformOrigin:`${c.x}% ${c.y}%`}:void 0,className:`pdp-fade-in w-full max-h-[75vh] object-contain select-none transition-transform duration-200 motion-reduce:transition-none ${c?"md:cursor-zoom-out":"md:cursor-zoom-in"}`},h.url),e.length>1&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 flex items-center justify-center w-9 h-9 rounded-full bg-cc-black/40 text-cc-cream hover:bg-cc-black/60 transition-colors cursor-pointer","aria-label":"Previous image",children:s.jsx(ta,{className:"w-5 h-5"})}),s.jsx("button",{onClick:l,className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center w-9 h-9 rounded-full bg-cc-black/40 text-cc-cream hover:bg-cc-black/60 transition-colors cursor-pointer","aria-label":"Next image",children:s.jsx(ra,{className:"w-5 h-5"})})]})]}),e.length>1&&s.jsx("div",{className:"flex justify-center gap-2 mt-4 overflow-x-auto pb-1",children:e.map((m,p)=>s.jsx("button",{onClick:()=>n(p),className:`flex-shrink-0 w-12 h-16 overflow-hidden border transition-colors cursor-pointer ${p===r?"border-cc-cream":"border-cc-cream/30 hover:border-cc-cream/60"}`,children:m.url&&s.jsx("img",{src:m.url,alt:`Thumbnail ${p+1}`,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})},m.id??p))})]})})})})]})})}function Zt({text:e,className:t}
13){const r=e.split(/\n+/).filter(Boolean);return s.jsx("div",{className:`space-y-2 ${t??""}`,children:r.map((n,a)=>s.jsx("p",{children:n},a))})}function pc({text:e}){const[t,r]=u.useState(!1);return s.jsxs("div",{children:[s.jsx("div",{className:t?"":"line-clamp-3",children:s.jsx(Zt,{text:e})}),!t&&s.jsx("button",{onClick:()=>r(!0),className:"mt-1 font-body text-[11px] tracking-[0.15em] uppercase text-cc-accent hover:text-cc-charcoal transition-colors font-bold underline",children:"Read more"})]})}function hc({src:e,alt:t}){const[r,n]=u.useState({current:e,previous:null}),[a,o]=u.useState(!1);e!==r.current&&(n({current:e,previous:r.current}),o(!1));const l="absolute inset-0 w-full h-full object-cover",c=()=>n(i=>({...i,previous:null}));return s.jsxs(s.Fragment,{children:[r.previous&&s.jsx("img",{src:r.previous,alt:"","aria-hidden":"true",className:l}),s.jsx("img",{src:r.current,alt:t,className:`${l} ${r.previous?a?"pdp-fade-in":"opacity-0":""}`,loading:"eager",decoding:r.previous?"async":"sync",fetchPriority:"high",onLoad:()=>{r.previous&&(Wt()?c():o(!0))},onError:c,onAnimationEnd:c},r.current)]})}function mc({images:e,activeIndex:t,onActiveIndexChange:r,onOpenLightbox:n}){const[a,o]=u.useState({startX:0,currentX:0,isSwiping:!1}),l=u.useRef(null),c=50,i=u.useCallback(f=>{o({startX:f.touches[0].clientX,currentX:f.touches[0].clientX,isSwiping:!0})},[]),d=u.useCallback(f=>{a.isSwiping&&o(g=>({...g,currentX:f.touches[0].clientX}))},[a.isSwiping]),h=u.useCallback(()=>{if(!a.isSwiping)return;const f=a.startX-a.currentX;Math.abs(f)>c&&(f>0&&t<e.length-1?r(t+1):f<0&&t>0&&r(t-1)),o({startX:0,currentX:0,isSwiping:!1})},[a,t,e.length,r]),m=a.isSwiping?a.currentX-a.startX:0;if(!e||e.length===0)return null;const p=e[t]??e[0];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"hidden md:flex gap-4",children:[s.jsx("div",{className:"flex flex-col gap-2 w-[72px] flex-shrink-0",children:e.map((f,g)=>s.jsx("button",{onClick:()=>r(g),className:`aspect-[3/4] w-full overflow-hidden border transition-colors cursor-pointer ${g===t?"border-cc-charcoal":"border-cc-sand/50 hover:border-cc-stone"}`,children:f.url&&s.jsx("img",{src:f.url,alt:`Thumbnail ${g+1}`,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})},f.id??g))}),s.jsx("div",{className:"flex-1",children:p.url&&s.jsxs("div",{className:"relative",children:[s.jsx("button",{onClick:n,className:"relative block w-full aspect-[3/4] overflow-hidden cursor-zoom-in","aria-label":"View full-size image",children:s.jsx(hc,{src:p.url,alt:"Product image"})}),s.jsxs("button",{onClick:n,className:"absolute top-3 right-3 flex items-center gap-1.5 h-8 px-3 rounded-full bg-cc-cream/90 text-cc-charcoal font-body text-[11px] tracking-wide hover:bg-cc-cream transition-colors cursor-pointer","aria-label":"Zoom image",children:[s.jsxs("svg",{viewBox:"0 0 24 24",className:"w-4 h-4",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{cx:"11",cy:"11",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),s.jsx("path",{d:"M20 20L16 16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),"Zoom"]})]})})]}),s.jsx("div",{className:"md:hidden",children:s.jsxs("div",{ref:l,className:"relative overflow-hidden touch-pan-y",onTouchStart:i,onTouchMove:d,onTouchEnd:h,children:[s.jsx("div",{className:"relative",children:s.jsx("div",{className:`flex ${a.isSwiping?"":"transition-transform duration-300 ease-in-out"}`,style:{transform:`translateX(calc(-${t*100}% + ${m}px))`},children:e.map((f,g)=>s.jsx("div",{className:"w-full flex-shrink-0 aspect-[3/4]",children:f.url&&s.jsx("img",{src:f.url,alt:`Product image ${g+1}`,className:"w-full h-full object-cover select-none",draggable:!1,loading:g<=1?"eager":"lazy",decoding:g===0?"sync":"async",fetchPriority:g===0?"high":void 0,onClick:()=>{g===t&&n()}})},f.id??g))})}),e.length>1&&s.jsx("div",{className:"flex justify-center gap-1.5 mt-3",children:e.map((f,g)=>s.jsx("button",{onClick:()=>r(g),className:`w-1.5 h-1.5 rounded-full transition-colors cursor-pointer ${g===t?"bg-cc-charcoal":"bg-cc-sand"}`,"aria-label":`Go to image ${g+1}`},g))})]})})]})}function rt({title:e,defaultOpen:t=!1,divider:r=!0,children:n}){const[a,o]=u.useState(t);return s.jsxs("div",{className:r?"border-b border-cc-sand/60":void 0,children:[s.jsxs("button",{onClick:()=>o(!a),className:"flex items-center justify-between w-full py-4 cursor-pointer",children:[s.jsx("span",{className:"font-body text-[11px] tracking-[0.15em] uppercase text-cc-black",children:e}),s.jsx("span",{className:"text-cc-taupe text-lg leading-none",children:a?"−":"+"})]}),a&&s.jsx("div",{className:"pb-5 font-body text-sm text-cc-taupe leading-relaxed",children:n})]})}function gc({product:e,countryCode:t}){const r=u.useMemo(()=>
13{if(!e.categories||e.categories.length===0)return[];const a=i=>{let d=0,h=i.parent_category;for(;h;)d++,h=h.parent_category;return d},o=e.categories.reduce((i,d)=>{const h=a(i);return a(d)>h?d:i}),l=[];let c=o;for(;c;)l.unshift({id:c.id,name:c.name,handle:c.handle}),c=c.parent_category;return l},[e.categories]),n=e.collections?.[0]?.title??e.collection?.title;return s.jsxs("nav",{className:"flex items-center gap-2 font-body text-xs text-cc-taupe mb-4 flex-wrap",children:[e.type&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:e.type.value}),r.length>0&&s.jsx("span",{className:"text-cc-stone",children:">"})]}),r.map((a,o)=>s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Oe,{to:"/$countryCode/categories/$handle",params:{countryCode:t,handle:a.handle},className:"hover:text-cc-accent transition-colors",children:a.name}),o<r.length-1&&s.jsx("span",{className:"text-cc-stone",children:">"})]},a.id)),!e.type&&r.length===0&&n&&s.jsx("span",{children:n})]})}function vc(e){return[{title:"Ships from Store",list:s.jsxs("ul",{className:"space-y-1 list-disc list-inside",children:[s.jsx("li",{children:"Dispatched within 24 hours"}),s.jsx("li",{children:"UK orders: duties & taxes included"}),s.jsx("li",{children:"For orders being delivered outside the UK, applicable duties and taxes are calculated at checkout based on shipping country"})]})},{title:"Made to Order",list:s.jsxs("ul",{className:"space-y-1 list-disc list-inside",children:[s.jsx("li",{children:"Made to Order items are dispatched directly from the designer and typically take 1-2 weeks"}),s.jsx("li",{children:"Applicable duties and taxes are calculated at checkout based on the combination of designer and shipping country"}),s.jsx("li",{children:"If we cannot meet the required dispatch window we will confirm a date with you before commencing the order"}),s.jsx("li",{children:"Most made-to-order items are returnable unless stated otherwise"})]})},{title:"Returns",list:s.jsxs("ul",{className:"space-y-1 list-disc list-inside",children:[s.jsxs("li",{children:["To register a return either click on the"," ",s.jsx(Oe,{to:"/$countryCode/return-exchange-form",params:{countryCode:e},className:"underline underline-offset-2 hover:text-cc-charcoal transition-colors",children:"Return & Exchange Form"})," ","at the bottom or within my orders section in my account within 7 days of your delivery."]}),s.jsx("li",{children:"Client covers return shipping; we recommend using a tracked service"}),s.jsx("li",{children:"Returned pieces should arrive back with us within 30 days of your original delivery."}),s.jsx("li",{children:"London store drop off is accepted."}),s.jsx("li",{children:"Product refunds are processed within 24 hours of receiving the item back in original condition"}),s.jsx("li",{children:"Earrings and Fine Jewellery are non‑refundable"})]})}]}function zt({countryCode:e,className:t}){return s.jsx("div",{className:`text-sm text-cc-taupe leading-relaxed ${t}`,children:vc(e).map(r=>s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-cc-charcoal mb-2",children:r.title}),r.list]},r.title))})}function xc({countryCode:e}){const[t,r]=u.useState(!1),n=s.jsx("button",{onClick:()=>r(!t),className:"font-body text-[11px] tracking-[0.15em] uppercase text-cc-charcoal border-b border-cc-charcoal/30 pb-0.5 hover:text-cc-accent hover:border-cc-accent transition-colors cursor-pointer",children:t?"Show less":"Show all"});return s.jsxs("div",{className:"relative",children:[s.jsxs("div",{className:t?"":"absolute inset-0 overflow-hidden",children:[s.jsx("h2",{className:"font-body text-[11px] tracking-[0.15em] uppercase text-cc-black mb-6",children:"Shipping & Returns"}),s.jsx(zt,{countryCode:e,className:"space-y-6"})]}),t?s.jsx("div",{className:"mt-5",children:n}):s.jsx("div",{className:"absolute inset-x-0 bottom-0 pt-16 bg-gradient-to-t from-cc-cream via-cc-cream/90 to-transparent",children:n})]})}function Br({brand:e,countryCode:t}){const r=e?.description?.trim();return!e||!r?null:s.jsxs("div",{className:"h-full flex flex-col items-center justify-center bg-cc-warm px-6 py-8 md:px-10 md:py-10 text-center",children:[s.jsx("p",{className:"font-body text-[10px] tracking-[0.3em] uppercase text-cc-taupe mb-3",children:"The Designer"}),s.jsx("h2",{className:"font-display text-2xl font-light tracking-wide text-cc-black mb-4",children:e.name}),s.jsx("div",{className:"font-body text-sm text-cc-taupe leading-relaxed line-clamp-5",children:s.jsx(Zt,{text:r})}),s.jsxs(Oe,{to:"/$countryCode/brands/$handle",params:{countryCode:t,handle:e.handle},className:"inline-block mt-5 font-body text-[11px] tracking-[0.15em] uppercase text-cc-charcoal border-b border-cc-charcoal/30 pb-0.5 hover:text-cc-accent hover:border-cc-accent transition-colors duration-200",children:["More from ",e.name]})]})}function bc(e){const[t,r]=u.useState();return u.useEffect(()=>{const n=e.current;if(!n)return;const a=16,o=document.getElementById("site-header"),l=()=>{const i=o?.getBoundingClientRect().height??0;r(Math.min(i+a,window.innerHeight-n.offsetHeight-a))};l();const c=new ResizeObserver(l);return c.observe(n),o&&c.observe(o),window.addEventListener("resize",l),()=>{c.disconnect(),window.removeEventListener("resize",l)}},[e]),t}const yc=()=>{const{product:e,region:t,countryCode:r,brand:n,productGroup:a,sizingChart:o}=Yn({from:"/$countryCode/products/$handle"}),[l,c]=u.useState(!1),[i,d]=u.useState({}),[h,m]=u.useState(0),[p,f]=u.useState(!1),g=u.useRef(null),v=!!n&&!!n.description?.trim(),{data:x}=Zn({product:e,regionId:t?.id}),b=bc(g);u.useEffect(()=>{e&&(Jn({id:e.id,title:e.title,handle:e.handle,thumbnail:e.thumbnail??null,subtitle:e.subtitle||e.collection?.title||null}),t&&ea(e,t))},[e,n,t]);const y=u.useMemo(()=>{const T=e.images||[],P=Object.entries(i).filter(([,O])=>O);if(P.length===0)return T;const ae=(e.variants||[]).filter(O=>P.every(([$,X])=>O.options?.some(F=>F.option_id===$&&F.value===X))),K=new Set(ae.flatMap(O=>O.images?.map($=>
13$.id)||[]));return K.size===0?T:T.filter(O=>K.has(O.id))},[e.images,e.variants,i]),j=y.map(T=>T.id).join(",");u.useEffect(()=>{m(0)},[j]);const E=n?.name||e.subtitle||e.collection?.title,C=u.useMemo(()=>({...e,brand:n}),[e,n]);return s.jsxs("div",{className:"pb-24 md:pb-0",children:[s.jsxs("div",{className:"content-container pt-4 pb-8",children:[s.jsx(gc,{product:e,countryCode:r}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[1fr_1fr] lg:grid-cols-[minmax(0,1.15fr)_minmax(0,0.85fr)] gap-6 lg:gap-12",children:[s.jsx("div",{children:s.jsx(mc,{images:y,activeIndex:h,onActiveIndexChange:m,onOpenLightbox:()=>f(!0)})}),s.jsxs("div",{ref:g,className:"h-fit md:sticky md:self-start",style:{top:b},children:[s.jsxs("div",{children:[n?s.jsxs(Oe,{to:"/$countryCode/brands/$handle",params:{countryCode:r,handle:n.handle},className:"block w-fit font-body text-[7px] md:text-[8px] tracking-[0.3em] uppercase text-cc-taupe mb-2 hover:text-cc-accent transition-colors",children:["By ",n.name]}):E?s.jsx("p",{className:"font-body text-[7px] md:text-[8px] tracking-[0.3em] uppercase text-cc-taupe mb-2",children:e.subt
13itle?`By ${E}`:E}):null,s.jsx("h1",{className:"font-display text-xl md:text-2xl lg:text-3xl font-light tracking-wide text-cc-black leading-tight mb-2 md:mb-3 capitalize",children:e.title}),s.jsx(ei,{product:e,region:t,productGroup:a,countryCode:r,sizingChart:o,onOpenSizingChart:()=>c(!0),onOptionsChange:d,beforeOptions:s.jsxs(s.Fragment,{children:[s.jsx(nr,{products:x,countryCode:r,size:"small",className:"hidden md:block pt-2 pb-5 border-b border-cc-sand/60"}),e.description?s.jsx(rt,{title:"Description",defaultOpen:!0,divider:!1,children:s.jsx(pc,{text:e.description})}):null]})})]}),s.jsxs("div",{className:"mt-6",children:[s.jsx(rt,{title:"Details",defaultOpen:!0,children:s.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.material&&s.jsxs("p",{children:[s.jsx("span",{className:"text-cc-charcoal",children:"Material:"})," ",e.material]}),e.weight&&s.jsxs("p",{children:[s.jsx("span",{className:"text-cc-charcoal",children:"Weight:"})," ",e.weight,"g"]}),e.type&&s.jsxs("p",{children:[s.jsx("span",{className:"text-cc-charcoal",children:"Type:"})," ",e.type.value]}),e.tags&&e.tags.length>0&&s.jsxs("p",{children:[s.jsx("span",{className:"text-cc-charcoal",children:"Tags:"})," ",e.tags.map(T=>T.value).join(", ")]}),!e.material&&!e.weight&&!e.type&&(!e.tags||e.tags.length===0)&&s.jsx("p",{children:"No additional details available."})]})}),e.metadata?.curators_note&&s.jsx(rt,{title:"Size & Fit",children:s.jsx(Zt,{text:e.metadata.curators_note})})]})]})]})]}),s.jsxs("section",{className:"md:hidden content-container pb-12",children:[s.jsx(nr,{products:x,countryCode:r,size:"large",className:"pt-6 pb-2"}),s.jsx("div",{className:"border-t border-cc-sand/60",children:s.jsx(rt,{title:"Shipping & Returns",children:s.jsx(zt,{countryCode:r,className:"space-y-6"})})}),v&&s.jsx(Rt,{className:"mt-8",children:s.jsx(Br,{brand:n,countryCode:r})})]}),s.jsx("section",{className:"hidden md:block content-container pb-12",children:s.jsxs("div",{className:`border-t border-cc-sand/60 pt-10 ${v?"grid grid-cols-2 gap-10 lg:gap-16":""}`,children:[v?s.jsx(xc,{countryCode:r}):s.jsxs("div",{children:[s.jsx("h2",{className:"font-body text-[11px] tracking-[0.15em] uppercase text-cc-black mb-6",children:"Shipping & Returns"}),s.jsx(zt,{countryCode:r,className:"grid grid-cols-3 gap-10"})]}),v&&s.jsx(Rt,{className:"h-full",children:s.jsx(Br,{brand:n,countryCode:r})})]})}),s.jsx(ri,{product:C,region:t,countryCode:r}),s.jsx(ai,{currentProductId:e.id,region:t,countryCode:r}),o&&s.jsx(dc,{isOpen:l,onClose:()=>c(!1),sizingChart:o}),s.jsx(fc,{images:y,isOpen:p,activeIndex:h,onActiveIndexChange:m,onClose:()=>f(!1)})]})},Tc=yc;export{Tc as component};

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.