1import{bp as ke,bq as Pe,br as $e,bs as Ce,bt as Le,bu as De,bv as Ie,bw as J,bx as Ae,by as Re,bz as Ze,bA as Ee,bB as je,bC as Fe,bD as Ne,bE as Be,bF as Me,bG as ae,bH as Ve,bI as Ue,bJ as ze,bK as qe,bL as Ke,bM as He,bN as Qe,bO as Ye,bP as Ge,bQ as We,bR as Je,bS as Xe,bT as et,bU as tt,bV as at,bW as nt,bX as ot,bY as lt,bZ as rt,b_ as st,b$ as it,c0 as ut,c1 as ct,c2 as dt,c3 as pt,c4 as vt,c5 as ft,c6 as mt,c7 as bt,c8 as gt,c9 as yt,ca as _t,cb as ht,cc as xt,cd as wt,ce as Tt,cf as St,cg as Ot,ch as kt,ci as Pt,cj as $t,ck as ne,cl as Ct,cm as Lt,cn as Dt,co as It,cp as At,cq as Rt,cr as Zt,cs as Et,ct as jt,cu as Ft,cv as Nt,cw as Bt,cx as Mt,cy as Vt,cz as Ut,cA as zt,cB as qt,cC as Kt,cD as Ht,cE as Qt,cF as Yt,S as Gt,cG as Wt,cH as Jt,cI as Xt,cJ as ea,cK as ta,cL as aa,cM as na,cN as oa,cO as la,cP as ra,cQ as sa,cR as ia,cS as ua,U as ca,cT as da,cU as pa,cV as va,cW as fa,cX as ma,cY as ba,cZ as ga,r as $,x as P,aE as G,f as E,aH as U,ah as X,A as ya,ab as ee,aT as oe,M as B,B as _a,c_ as Z,F as ha,b as h,c as S,j as z,I as F,at as xa,e as O,J as fe,R as me,a_ as wa,w as j,H as R,q as v,aj as V,a0 as be,a4 as C,T as Ta,ac as q,aL as Sa,y as Oa,Z as ka,ak as Pa,aw as $a,a3 as Ca,K as La,c$ as Da,u as Ia,a as Aa,v as Ra,G as Za,N as Ea,av as ja,b3 as Fa,P as Na,Q as Ba,Y as Ma,n as Va}from"./B-He9Tc_.js";import{o as D,i as W,A as K,s as Ua,a as L,N as le,u as M,E as za,T as qa}from"./5Cd8EnQE.js";import{c as ge,w as ye,h as _e,f as Ka,u as Ha,O as Qa}from"./Bef_dnxM.js";import{l as Ya,i as Y,t as Ga}from"./BG56XROr.js";import{u as Wa}from"./DiE8Ei-x.js";import Ja from"./BZGArtl8.js";import{u as re,T as se}from"./Wn3B7X3h.js";import{u as ie,d as ue}from"./vIeLKY2K.js";import"./D1I5pJ95.js";import"./B78TT5_d.js";const he=Object.freeze(Object.defineProperty({__proto__:null,BRAND:ke,DIRTY:Pe,EMPTY_PATH:$e,INVALID:Ce,NEVER:Le,OK:De,ParseStatus:Ie,Schema:J,ZodAny:Ae,ZodArray:Re,ZodBigInt:Ze,ZodBoolean:Ee,ZodBranded:je,ZodCatch:Fe,ZodDate:Ne,ZodDefault:Be,ZodDiscriminatedUnion:Me,ZodEffects:ae,ZodEnum:Ve,ZodError:Ue,get ZodFirstPartyTypeKind(){return ze},ZodFunction:qe,ZodIntersection:Ke,ZodIssueCode:He,ZodLazy:Qe,ZodLiteral:Ye,ZodMap:Ge,ZodNaN:We,ZodNativeEnum:Je,ZodNever:Xe,ZodNull:et,ZodNullable:tt,ZodNumber:at,ZodObject:nt,ZodOptional:ot,ZodParsedType:lt,ZodPipeline:rt,ZodPromise:st,ZodReadonly:it,ZodRecord:ut,ZodSchema:J,ZodSet:ct,ZodString:dt,ZodSymbol:pt,ZodTransformer:ae,ZodTuple:vt,ZodType:J,ZodUndefined:ft,ZodUnion:mt,ZodUnknown:bt,ZodVoid:gt,addIssueToContext:yt,any:_t,array:ht,bigint:xt,boolean:wt,coerce:Tt,custom:St,date:Ot,datetimeRegex:kt,defaultErrorMap:Pt,discriminatedUnion:$t,effect:ne,enum:Ct,function:Lt,getErrorMap:Dt,getParsedType:It,instanceof:At,intersection:Rt,isAborted:Zt,isAsync:Et,isDirty:jt,isValid:Ft,late:Nt,lazy:Bt,literal:Mt,makeIssue:Vt,map:Ut,nan:zt,nativeEnum:qt,never:Kt,null:Ht,nullable:Qt,number:Yt,object:Gt,get objectUtil(){return Wt},oboolean:Jt,onumber:Xt,optional:ea,ostring:ta,pipeline:aa,preprocess:na,promise:oa,quotelessJson:la,record:ra,set:sa,setErrorMap:ia,strictObject:ua,string:ca,symbol:da,transformer:ne,tuple:pa,undefined:va,union:fa,unknown:ma,get util(){return ba},void:ga},Symbol.toStringTag,{value:"Module"}));function Xa(e,o,n){let l=$(n?.value),s=P(()=>e.value!==void 0);return[P(()=>s.value?e.value:l.value),function(a){return s.value||(l.value=a),o?.(a)}]}function en(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function tn(){return/Android/gi.test(window.navigator.userAgent)}function an(){return en()||tn()}function Q(e,o,n){ge.isServer||G(l=>{document.addEventListener(e,o,n),l(()=>document.removeEventListener(e,o,n))})}function nn(e,o,n){ge.isServer||G(l=>{window.addEventListener(e,o,n),l(()=>window.removeEventListener(e,o,n))})}function on(e,o,n=P(()=>!0)){function l(a,t){if(!n.value||a.defaultPrevented)return;let i=t(a);if(i===null||!i.getRootNode().contains(i))return;let f=(function m(c){return typeof c=="function"?m(c()):Array.isArray(c)||c instanceof Set?c:[c]})(e);for(let m of f){if(m===null)continue;let c=m instanceof HTMLElement?m:D(m);if(c!=null&&c.contains(i)||a.composed&&a.composedPath().includes(c))return}return!ye(i,_e.Loose)&&i.tabIndex!==-1&&a.preventDefault(),o(a,i)}let s=$(null);Q("pointerdown",a=>{var t,i;n.value&&(s.value=((i=(t=a.composedPath)==null?void 0:t.call(a))==null?void 0:i[0])||a.target)},!0),Q("mousedown",a=>{var t,i;n.value&&(s.value=((i=(t=a.composedPath)==null?void 0:t.call(a))==null?void 0:i[0])||a.target)},!0),Q("click",a=>{an()||s.value&&(l(a,()=>s.value),s.value=null)},!0),Q("touchend",a=>l(a,()=>a.target instanceof HTMLElement?a.target:null),!0),nn("blur",a=>l(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ce(e){return[e.screenX,e.screenY]}function ln(){let e=$([-1,-1]);return{wasMoved(o){let n=ce(o);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(o){e.value=ce(o)}}}function rn(e){throw new Error("Unexpected object: "+e)}var I=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(I||{});function sn(e,o){let n=o.resolveItems();if(n.length<=0)return null;let l=o.resolveActiveIndex(),s=l??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!o.resolveDisabled(n[a],a,n))return a;return l}case 1:{s===-1&&(s=n.length);for(let a=s-1;a>=0;--a)if(!o.resolveDisabled(n[a],a,n))return a;return l}case 2:{for(let a=s+1;a<n.length;++a)if(!o.resolveDisabled(n[a],a,n))return a;return l}case 3:{for(let a=n.length-1;a>=0;--a)if(!o.resolveDisabled(n[a],a,n))return a;return l}case 4:{for(let a=0;a<n.length;++a)if(o.resolveId(n[a],a,n)===e.id)return a;return l}case 5:return null;default:rn(e)}}function xe(e={},o=null,n=[]){for(let[l,s]of Object.entries(e))Te(n,we(o,l),s);return n}function we(e,o){return e?e+"["+o+"]":o}function Te(e,o,n){if(Array.isArray(n))for(let[l,s]of n.entries())Te(e,we(o,l.toString()),s);else n instanceof Date?e.push([o,n.toISOString()]):typeof n=="boolean"?e.push([o,n?"1":"0"]):typeof n=="string"?e.push([o,n]):typeof n=="number"?e.push([o,`${n}`]):n==null?e.push([o,""]):xe(n,o,e)}let de=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function pe(e){var o,n;let l=(o=e.innerText)!=null?o:"",s=e.cloneNode(!0);if(!(s instanceof HTMLElement))return l;let a=!1;for(let i of s.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),a=!0;let t=a?(n=s.innerText)!=null?n:"":l;return de.test(t)&&(t=t.replace(de,"")),t}function un(e){let o=e.getAttribute("aria-label");
1if(typeof o=="string")return o.trim();let n=e.getAttribute("aria-labelledby");if(n){let l=n.split(" ").map(s=>{let a=document.getElementById(s);if(a){let t=a.getAttribute("aria-label");return typeof t=="string"?t.trim():pe(a).trim()}return null}).filter(Boolean);if(l.length>0)return l.join(", ")}return pe(e).trim()}function cn(e){let o=$(""),n=$("");return()=>{let l=D(e);if(!l)return"";let s=l.innerText;if(o.value===s)return n.value;let a=un(l).trim().toLowerCase();return o.value=s,n.value=a,a}}function dn(e,o){return e===o}var pn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pn||{}),vn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(vn||{}),fn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(fn||{});function mn(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Se=Symbol("ListboxContext");function H(e){let o=_a(Se,null);if(o===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,H),n}return o}let bn=E({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>dn},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:o,attrs:n,emit:l}){let s=$(1),a=$(null),t=$(null),i=$(null),f=$([]),m=$(""),c=$(null),u=$(1);function d(r=p=>p){let p=c.value!==null?f.value[c.value]:null,b=Qa(r(f.value.slice()),T=>D(T.dataRef.domRef)),y=p?b.indexOf(p):null;return y===-1&&(y=null),{options:b,activeOptionIndex:y}}let _=P(()=>e.multiple?1:0),[x,g]=Xa(P(()=>e.modelValue),r=>l("update:modelValue",r),P(()=>e.defaultValue)),A=P(()=>x.value===void 0?M(_.value,{1:[],0:void 0}):x.value),k={listboxState:s,value:A,mode:_,compare(r,p){if(typeof e.by=="string"){let b=e.by;return r?.[b]===p?.[b]}return e.by(r,p)},orientation:P(()=>e.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:t,optionsRef:i,disabled:P(()=>e.disabled),options:f,searchQuery:m,activeOptionIndex:c,activationTrigger:u,closeListbox(){e.disabled||s.value!==1&&(s.value=1,c.value=null)},openListbox(){e.disabled||s.value!==0&&(s.value=0)},goToOption(r,p,b){if(e.disabled||s.value===1)return;let y=d(),T=sn(r===I.Specific?{focus:I.Specific,id:p}:{focus:r},{resolveItems:()=>y.options,resolveActiveIndex:()=>y.activeOptionIndex,resolveId:N=>N.id,resolveDisabled:N=>N.dataRef.disabled});m.value="",c.value=T,u.value=b??1,f.value=y.options},search(r){if(e.disabled||s.value===1)return;let p=m.value!==""?0:1;m.value+=r.toLowerCase();let b=(c.value!==null?f.value.slice(c.value+p).concat(f.value.slice(0,c.value+p)):f.value).find(T=>T.dataRef.textValue.startsWith(m.value)&&!T.dataRef.disabled),y=b?f.value.indexOf(b):-1;y===-1||y===c.value||(c.value=y,u.value=1)},clearSearch(){e.disabled||s.value!==1&&m.value!==""&&(m.value="")},registerOption(r,p){let b=d(y=>[...y,{id:r,dataRef:p}]);f.value=b.options,c.value=b.activeOptionIndex},unregisterOption(r){let p=d(b=>{let y=b.findIndex(T=>T.id===r);return y!==-1&&b.splice(y,1),b});f.value=p.options,c.value=p.activeOptionIndex,u.value=1},theirOnChange(r){e.disabled||g(r)},select(r){e.disabled||g(M(_.value,{0:()=>r,1:()=>{let p=Z(k.value.value).slice(),b=Z(r),y=p.findIndex(T=>k.compare(b,Z(T)));return y===-1?p.push(b):p.splice(y,1),p}}))}};on([t,i],(r,p)=>{var b;k.closeListbox(),ye(p,_e.Loose)||(r.preventDefault(),(b=D(t))==null||b.focus())},P(()=>s.value===0)),ha(Se,k),Ga(P(()=>M(s.value,{0:Y.Open,1:Y.Closed})));let w=P(()=>{var r;return(r=D(t))==null?void 0:r.closest("form")});return X(()=>{ee([w],()=>{if(!w.value||e.defaultValue===void 0)return;function r(){k.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",r),()=>{var p;(p=w.value)==null||p.removeEventListener("reset",r)}},{immediate:!0})}),()=>{let{name:r,modelValue:p,disabled:b,form:y,...T}=e,N={open:s.value===0,disabled:b,value:A.value};return oe(B,[...r!=null&&A.value!=null?xe({[r]:A.value}).map(([te,Oe])=>oe(Ka,za({features:Ha.Hidden,key:te,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:b,name:te,value:Oe}))):[],K({ourProps:{},theirProps:{...n,...qa(T,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:N,slots:o,attrs:n,name:"Listbox"})])}}}),gn=E({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:o,slots:n}){var l;let s=(l=e.id)!=null?l:`headlessui-listbox-label-${W()}`,a=H("ListboxLabel");function t(){var i;(i=D(a.buttonRef))==null||i.focus({preventScroll:!0})}return()=>{let i={open:a.listboxState.value===0,disabled:a.disabled.value},{...f}=e,m={id:s,ref:a.labelRef,onClick:t};return K({ourProps:m,theirProps:f,slot:i,attrs:o,slots:n,name:"ListboxLabel"})}}}),yn=E({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:o,slots:n,expose:l}){var s;let a=(s=e.id)!=null?s:`headlessui-listbox-button-${W()}`,t=H("ListboxButton");l({el:t.buttonRef,$el:t.buttonRef});function i(u){switch(u.key){case L.Space:case L.Enter:case L.ArrowDown:u.preventDefault(),t.openListbox(),U(()=>{var d;(d=D(t.optionsRef))==null||d.focus({preventScroll:!0}),t.value.value||t.goToOption(I.First)});break;case L.ArrowUp:u.preventDefault(),t.openListbox(),U(()=>{var d;(d=D(t.optionsRef))==null||d.focus({preventScroll:!0}),t.value.value||t.goToOption(I.Last)});break}}function f(u){u.key===L.Space&&u.preventDefault()}function m(u){t.disabled.value||(t.listboxState.value===0?(t.closeListbox(),U(()=>{var d;return(d=D(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})}
1)):(u.preventDefault(),t.openListbox(),mn(()=>{var d;return(d=D(t.optionsRef))==null?void 0:d.focus({preventScroll:!0})})))}let c=Ua(P(()=>({as:e.as,type:o.type})),t.buttonRef);return()=>{var u,d;let _={open:t.listboxState.value===0,disabled:t.disabled.value,value:t.value.value},{...x}=e,g={ref:t.buttonRef,id:a,type:c.value,"aria-haspopup":"listbox","aria-controls":(u=D(t.optionsRef))==null?void 0:u.id,"aria-expanded":t.listboxState.value===0,"aria-labelledby":t.labelRef.value?[(d=D(t.labelRef))==null?void 0:d.id,a].join(" "):void 0,disabled:t.disabled.value===!0?!0:void 0,onKeydown:i,onKeyup:f,onClick:m};return K({ourProps:g,theirProps:x,slot:_,attrs:o,slots:n,name:"ListboxButton"})}}}),_n=E({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:o,slots:n,expose:l}){var s;let a=(s=e.id)!=null?s:`headlessui-listbox-options-${W()}`,t=H("ListboxOptions"),i=$(null);l({el:t.optionsRef,$el:t.optionsRef});function f(u){switch(i.value&&clearTimeout(i.value),u.key){case L.Space:if(t.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),t.search(u.key);case L.Enter:if(u.preventDefault(),u.stopPropagation(),t.activeOptionIndex.value!==null){let d=t.options.value[t.activeOptionIndex.value];t.select(d.dataRef.value)}t.mode.value===0&&(t.closeListbox(),U(()=>{var d;return(d=D(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})}
1));break;case M(t.orientation.value,{vertical:L.ArrowDown,horizontal:L.ArrowRight}):return u.preventDefault(),u.stopPropagation(),t.goToOption(I.Next);case M(t.orientation.value,{vertical:L.ArrowUp,horizontal:L.ArrowLeft}):return u.preventDefault(),u.stopPropagation(),t.goToOption(I.Previous);case L.Home:case L.PageUp:return u.preventDefault(),u.stopPropagation(),t.goToOption(I.First);case L.End:case L.PageDown:return u.preventDefault(),u.stopPropagation(),t.goToOption(I.Last);case L.Escape:u.preventDefault(),u.stopPropagation(),t.closeListbox(),U(()=>{var d;return(d=D(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})});break;case L.Tab:u.preventDefault(),u.stopPropagation();break;default:u.key.length===1&&(t.search(u.key),i.value=setTimeout(()=>t.clearSearch(),350));break}}let m=Ya(),c=P(()=>m!==null?(m.value&Y.Open)===Y.Open:t.listboxState.value===0);return()=>{var u,d;let _={open:t.listboxState.value===0},{...x}=e,g={"aria-activedescendant":t.activeOptionIndex.value===null||(u=t.options.value[t.activeOptionIndex.value])==null?void 0:u.id,"aria-multiselectable":t.mode.value===1?!0:void 0,"aria-labelledby":(d=D(t.buttonRef))==null?void 0:d.id,"aria-orientation":t.orientation.value,id:a,onKeydown:f,role:"listbox",tabIndex:0,ref:t.optionsRef};return K({ourProps:g,theirProps:x,slot:_,attrs:o,slots:n,features:le.RenderStrategy|le.Static,visible:c.value,name:"ListboxOptions"})}}}),hn=E({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:o,attrs:n,expose:l}){var s;let a=(s=e.id)!=null?s:`headlessui-listbox-option-${W()}`,t=H("ListboxOption"),i=$(null);l({el:i,$el:i});let f=P(()=>t.activeOptionIndex.value!==null?t.options.value[t.activeOptionIndex.value].id===a:!1),m=P(()=>M(t.mode.value,{0:()=>t.compare(Z(t.value.value),Z(e.value)),1:()=>Z(t.value.value).some(r=>t.compare(Z(r),Z(e.value)))})),c=P(()=>M(t.mode.value,{1:()=>{var r;let p=Z(t.value.value);return((r=t.options.value.find(b=>p.some(y=>t.compare(Z(y),Z(b.dataRef.value)))))==null?void 0:r.id)===a},0:()=>m.value})),u=cn(i),d=P(()=>({disabled:e.disabled,value:e.value,get textValue(){return u()},domRef:i}));X(()=>t.registerOption(a,d)),ya(()=>t.unregisterOption(a)),X(()=>{ee([t.listboxState,m],()=>{t.listboxState.value===0&&m.value&&M(t.mode.value,{1:()=>{c.value&&t.goToOption(I.Specific,a)},0:()=>{t.goToOption(I.Specific,a)}})},{immediate:!0})}),G(()=>{t.listboxState.value===0&&f.value&&t.activationTrigger.value!==0&&U(()=>{var r,p;return(p=(r=D(i))==null?void 0:r.scrollIntoView)==null?void 0:p.call(r,{block:"nearest"})})});function _(r){if(e.disabled)return r.preventDefault();t.select(e.value),t.mode.value===0&&(t.closeListbox(),U(()=>{var p;return(p=D(t.buttonRef))==null?void 0:p.focus({preventScroll:!0})}
1))}function x(){if(e.disabled)return t.goToOption(I.Nothing);t.goToOption(I.Specific,a)}let g=ln();function A(r){g.update(r)}function k(r){g.wasMoved(r)&&(e.disabled||f.value||t.goToOption(I.Specific,a,0))}function w(r){g.wasMoved(r)&&(e.disabled||f.value&&t.goToOption(I.Nothing))}return()=>{let{disabled:r}=e,p={active:f.value,selected:m.value,disabled:r},{value:b,disabled:y,...T}=e,N={id:a,ref:i,role:"option",tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,"aria-selected":m.value,disabled:void 0,onClick:_,onFocus:x,onPointerenter:A,onMouseenter:A,onPointermove:k,onMousemove:k,onPointerleave:w,onMouseleave:w};return K({ourProps:N,theirProps:T,slot:p,attrs:n,slots:o,name:"ListboxOption"})}}});const xn={class:"max-w-lg"},wn=E({__name:"Media",props:{image:{}},setup(e){return(o,n)=>{const l=xa;return h(),S("div",xn,[e.image?(h(),z(l,{key:0,format:"webp",src:e.image.url,alt:e.image.label,class:"w-full h-full object-cover",quality:"80",sizes:"100vw sm:512px",loading:"lazy",decoding:"async"},null,8,["src","alt"])):F("",!0)])}}}),Tn=Object.assign(wn,{__name:"CatalogProductMedia"});function Sn(e,o){return h(),S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}const On={class:"relative"},kn={key:0,class:"text-sm text-error mt-1"},Pn=E({__name:"Listbox",props:{name:{},label:{},placeholder:{},items:{},required:{type:Boolean}},emits:["change"],setup(e,{emit:o}){const n=e,l=o,{t:s}=fe(),a=me(he.string({message:s("form.validation_error.required")})),{value:t,errors:i,errorMessage:f,handleChange:m}=wa(n.name,n.required?a:""),c=P({get:()=>n.items.find(u=>u.value===t.value)??null,set:u=>m(u?.value??"")});return(u,d)=>(h(),z(v(bn),{modelValue:v(c),"onUpdate:modelValue":[d[0]||(d[0]=_=>Sa(c)?c.value=_:null),d[1]||(d[1]=_=>l("change",v(t)))]},{default:j(()=>[O("div",On,[R(v(gn),{class:V(["absolute top-0 left-3 -translate-y-1/2 bg-neutrals-900 text-sm px-1 uppercase",v(i).length?"text-red-500":"text-neutrals-0"])},{default:j(()=>[be(C(e.label),1)]),_:1},8,["class"]),R(v(yn),{class:V(["flex items-center justify-between w-full py-4 px-3 border",v(i).length?"border-red-500":"border-neutrals-0"])},{default:j(()=>[O("span",null,C(v(c)?.label??`${e.placeholder}...`),1),O("span",null,[R(v(Sn),{class:"w-6 h-6"})])]),_:1},8,["class"]),R(Ta,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:j(()=>[R(v(_n),{class:"absolute max-h-60 w-full overflow-auto shadow-lg focus:outline-none scrollbar-hide z-20"},{default:j(()=>[(h(!0),S(B,null,q(e.items,_=>(h(),z(v(hn),{key:_.value,value:_,as:"template"},{default:j(({active:x,selected:g})=>[O("li",{class:V(["py-4 px-3 text-base border border-neutrals-0 border-t-0 cursor-pointer",{"bg-neutrals-700":g,"bg-neutrals-900 hover:bg-neutrals-800":!g}])},C(_.label),3)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),v(f)?(h(),S("div",kn,C(v(f)),1)):F("",!0)]),_:1},8,["modelValue"]))}}),$n=Object.assign(Pn,{__name:"FormListbox"}),Cn=e=>`${Oa().public.shopBaseUrl}/media/attribute/swatch${e?`${e.startsWith("/")?"":"/"}${e}`:""}`,Ln={class:"space-y-10"},Dn={class:"flex flex-wrap gap-2"},In=["title","onClick"],An=["src","alt"],Rn={key:0,class:"text-sm text-error mt-1"},Zn={class:"text-sm font-medium mb-2"},En={class:"flex flex-wrap gap-2"},jn=["onClick"],Fn={class:"text-sm font-medium mb-2"},Nn={class:"flex flex-wrap gap-2"},Bn=["title","onClick"],Mn=E({__name:"ConfigurableOptions",props:{configurableOptions:{},variants:{}},emits:["changeImage","select"],setup(e,{emit:o}){const n=e,l=o,s=P(()=>n.configurableOptions.sort((m,c)=>m.position-c.position)),a=$({}),t=m=>{const c=m[0];return c?.swatch_data&&c.swatch_data.__typename==="ImageSwatchData"?c.swatch_data.__typename:"dropdown"},i=m=>m.map(c=>({label:c.label,value:c.uid})),f=(m,c)=>{a.value[m]=c;const u=n.variants.filter(d=>{const{attributes:_}=d;return Object.keys(a.value).every(x=>_.some(g=>g.code===x&&g.uid===a.value[x]))});if(u.length){const d=u[0];if(Object.keys(a.value).length===n.configurableOptions.length){l("select",d);return}l("changeImage",d.product.image)}};return(m,c)=>{const u=$n;return h(),S("div",Ln,[(h(!0),S(B,null,q(v(s),({label:d,values:_,attribute_code:x})=>(h(),S("div",{key:x},[t(_)==="dropdown"?(h(),z(u,{key:0,name:x,placeholder:m.$t("choose"),items:i(_),label:d,required:!0,onChange:g=>f(x,g)},null,8,["name","placeholder","items","label","onChange"])):t(_)==="ImageSwatchData"?(h(),z(v(ka),{key:1,name:x,rules:v(me)(v(he).string({message:m.$t("form.validation_error.required")}).nonempty())},{default:j(({errorMessage:g,errors:A,handleChange:k})=>[O("p",{class:V(["text-sm mb-2 uppercase",A.length?"text-red-500":"text-white"])},C(d),3),O("div",Dn,[(h(!0),S(B,null,q(_,w=>(h(),S("button",{key:w.uid,type:"button",title:w.label,class:V(["w-12 h-12 rounded border-2 overflow-hidden transition-all",v(a)[x]===w.uid?"border-black ring-2 ring-offset-1 ring-black":"border-transparent hover:border-gray-400"]),onClick:()=>{k(w.uid),f(x,w.uid)}},[O("img",{src:v(Cn)(w.swatch_data.value),alt:w.label,class:"w-full h-full object-cover"}
1,null,8,An)],10,In))),128))]),g?(h(),S("div",Rn,C(g),1)):F("",!0)]),_:2},1032,["name","rules"])):t(_)==="TextSwatchData"?(h(),S(B,{key:2},[O("p",Zn,C(d),1),O("div",En,[(h(!0),S(B,null,q(_,g=>(h(),S("button",{key:g.uid,type:"button",class:V(["min-w-[2.5rem] h-10 px-3 rounded border-2 text-sm font-medium transition-all",v(a)[x]===g.uid?"border-black bg-black text-white":"border-gray-300 bg-white text-gray-700 hover:border-gray-500"]),onClick:A=>f(x,g.uid)},C(g.swatch_data.value),11,jn))),128))])],64)):t(_)==="ColorSwatchData"?(h(),S(B,{key:3},[O("p",Fn,C(d),1),O("div",Nn,[(h(!0),S(B,null,q(_,g=>(h(),S("button",{key:g.uid,type:"button",title:g.label,class:V(["w-10 h-10 rounded-full border-2 transition-all",v(a)[x]===g.uid?"border-black ring-2 ring-offset-2 ring-black":"border-transparent hover:border-gray-400"]),style:Pa({backgroundColor:g.swatch_data.value}),onClick:A=>f(x,g.uid)},null,14,Bn))),128))])],64)):F("",!0)]))),128))])}}}),Vn=Object.assign(Mn,{__name:"CatalogProductConfigurableOptions"}),Un={key:0},zn={class:"h3 mb-2"},qn={key:0,class:"text-base mr-1"},Kn=E({__name:"Price",props:{priceRange:{}},setup(e){const o=e,{isNetStore:n,isFreeShippingStore:l}=Wa(),s=P(()=>{if(!o.priceRange)return null;const{value:a,currency:t}=o.priceRange.maximum_price.final_price,{value:i}=o.priceRange.minimum_price.final_price;return{price:i,currency:t,from:a>i}});return(a,t)=>v(s)?(h(),S("div",Un,[O("div",zn,[v(s).from?(h(),S("span",qn,C(a.$t("from")),1)):F("",!0),be(C(("useInternationalPrice"in a?a.useInternationalPrice:v($a))(v(s).price,v(s).currency)),1)]),O("div",null,C(v(n)?a.$t("excluding_vat"):a.$t("including_vat"))+", "+C(v(l)?a.$t("free_shipping"):a.$t("excluding_shipping")),1)])):F("",!0)}}),Hn=Object.assign(Kn,{__name:"CatalogProductPrice"}),Qn={class:"flex flex-col gap-4 sm:flex-row"},Yn=E({__name:"AddToCart",props:{loading:{type:Boolean}},setup(e){return(o,n)=>(h(),S("div",Qn,[R(v(Ca),{type:"submit",variant:"primary",disabled:e.loading},{default:j(()=>[O("span",null,C(o.$t("add_to_cart")),1),R(v(Ja),{class:"size-6 stroke-neutrals-900"})]),_:1},8,["disabled"])]))}}),Gn=Object.assign(Yn,{__name:"CatalogProductAddToCart"}),Wn="QLOCKTWO",ve=e=>e?"https://schema.org/InStock":"https://schema.org/OutOfStock",Jn=e=>e.__typename==="ConfigurableProduct",Xn=e=>(e.variants??[]).some(o=>o.product?.stock_status==="IN_STOCK"),eo=e=>{const o=La(),n=Da();G(()=>{if(!e.value)return;const l=e.value,s=`${n.url}${o.path}`,{minimum_price:a,maximum_price:t}=l.price_range,i={sku:l.sku,name:l.name,image:l.image?.url?[l.image.url]:[],brand:{"@type":"Brand",name:Wn}};Jn(l)?ie([ue({...i,offers:{"@type":"AggregateOffer",url:s,priceCurrency:a.final_price.currency,lowPrice:a.final_price.value,highPrice:t.final_price.value,offerCount:l.variants?.length,availability:ve(Xn(l))}})]):ie([ue({...i,offers:{"@type":"Offer",url:s,priceCurrency:a.final_price.currency,price:a.final_price.value,availability:ve(l.stock_status==="IN_STOCK")}})])})},to={class:"py-8 md:py-16 lg:py-24"},ao={key:0,class:"grid grid-cols-12 gap-8 items-center lg:gap-16"},no={class:"col-span-full lg:col-span-6"},oo={class:"col-span-full lg:col-span-6"},lo={key:1},ro={key:2,class:"space-y-4"},so={class:"space-y-4"},io=E({__name:"AddToCart",props:{block:{}},async setup(e){let o,n;const{t:l}=fe(),{cart:s,addProduct:a}=Ia(),t=Aa(),i=$(),f=$(),m=$(),c=$(null),{currentLocation:u}=Ra(),{sku:d}=e.block?.product??{},_=k=>{const{custom_attributesV2:w,...r}=k,p=["additional_information_configuration","delivery_time_range"],b=w?.items.filter(y=>p.includes(y.code)).reduce((y,T)=>(T.__typename==="AttributeSelectedOptions"?y[T.code]=T.selected_options.map(N=>N.label).join(", "):T.__typename==="AttributeValue"&&(y[T.code]=T.value),y),{});return{...r,...b}};if(d){const{store:k,languageCode:w}=u.value??{},r=`${k?.code??"eu_gross"}_${w??"en"}`,{data:p}=([o,n]=Za(()=>Ea({query:ja,variables:{sku:d},clientId:"magento",key:`magento-product-${r}-${d}`})),o=await o,n(),o);if(p.value?.products?.total_count){const{items:b}=p.value.products;i.value=b?.at(0),f.value=_(i.value),m.value=i.value?.image}}eo(i),ee(f,()=>{setTimeout(()=>{s?.id&&re({trackingType:se.ITEM_DETAILS,product:f.value,options:c.value})},1e3)},{});const x=k=>{m.value=k},g=k=>{const{attributes:w,product:r}=k;
1r.image&&(m.value=r.image),c.value=w,f.value=_(r)},A=async()=>{const{sku:k,__typename:w}=i.value,{sku:r,__typename:p}=f.value;if(r&&p==="SimpleProduct")try{let b={sku:r,quantity:1};w==="ConfigurableProduct"&&k!==r&&(b={...b,sku:k,selected_options:c.value?.map(y=>y.uid)}),await a(b),re({trackingType:se.ADD_TO_CART,product:f.value,options:c.value}),Va(t("/checkout/cart"))}catch{}};return(k,w)=>{const r=Tn,p=Vn,b=Hn,y=Gn,T=Ma;return h(),S("div",to,[R(T,null,{default:j(()=>[v(f)?(h(),S("div",ao,[O("div",no,[R(r,{image:v(m),class:"mx-auto"},null,8,["image"])]),O("div",oo,[R(v(Fa),{class:"space-y-6",onSubmit:A},{default:j(()=>[v(i).__typename==="ConfigurableProduct"?(h(),z(p,{key:0,"configurable-options":v(i).configurable_options,variants:v(i).variants,onChangeImage:x,onSelect:g},null,8,["configurable-options","variants"])):F("",!0),v(f)?.additional_information_configuration&&v(f).additional_information_configuration.trim().length?(h(),S("div",lo,[O("span",null,C(v(f).additional_information_configuration),1)])):F("",!0),R(b,{"price-range":v(f).price_range},null,8,["price-range"]),R(y),v(f)?.__typename!=="ConfigurableProduct"&&v(f)?.delivery_time_range?(h(),S("ul",ro,[O("li",null,C(v(l)("estimated_delivery_time"))+": "+C(v(f).delivery_time_range),1)])):F("",!0),Na(O("ul",so,[O("li",null,C(v(l)("free_shipping")),1),O("li",null,C(v(l)("exclusive_packaging")),1),O("li",null,C(v(l)("directly_from_manufacturer")),1)],512),[[Ba,!1]])]),_:1})])])):F("",!0)]),_:1})])}}}),ho=Object.assign(io,{__name:"BlockAddToCart"});export{ho as default};
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.