PageSourceSearch

https://shadcn-nextjs-shopix-full-template.vercel.app/_next/static/chunks/135spdk~1euu5.js

js shadcn-nextjs-shopix-full-template.vercel.app collected 2026-10-03 07:41:57 UTC 141,709 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21392,14207,62334,e=>{"use strict";var t=e.i(48045);e.s(["default",0,e=>(0,t.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("circle",{cx:"15",cy:"15",r:"14.5",className:"fill-black stroke-black dark:fill-white dark:stroke-white"}),(0,t.jsx)("mask",{id:"mask0_40355_128678",maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"28",height:"28",style:{maskType:"alpha"},children:(0,t.jsx)("circle",{cx:"15",cy:"15",r:"14",fill:"black"})}),(0,t.jsxs)("g",{mask:"url(#mask0_40355_128678)",children:[(0,t.jsx)("path",{d:"M21.3486 10.9932L21.5059 11C22.2811 11.071 22.9197 11.6625 23.0391 12.4453L25.4805 28.4502C25.6384 29.4852 24.837 30.4179 23.79 30.418H6.20996C5.16299 30.4179 4.36169 29.4852 4.51953 28.4502L6.96094 12.4453C7.08832 11.6102 7.8066 10.9932 8.65137 10.9932H21.3486Z",className:"fill-white stroke-black dark:fill-black dark:stroke-white"}),(0,t.jsx)("path",{d:"M19.8476 14.7278C19.647 14.7278 19.4844 14.5651 19.4844 14.3645V11.2109C19.4844 10.0131 19.0179 8.88696 18.1709 8.03997C17.3239 7.19298 16.1978 6.72653 15 6.72653C13.8022 6.72653 12.676 7.19298 11.829 8.03997C10.982 8.88696 10.5156 10.0131 10.5156 11.2109V14.3645C10.5156 14.5651 10.3529 14.7278 10.1523 14.7278C9.95169 14.7278 9.78906 14.5651 9.78906 14.3645V11.2109C9.78906 10.5076 9.92689 9.82515 10.1987 9.18248C10.4612 8.56192 10.8369 8.00467 11.3153 7.52624C11.7938 7.04779 12.351 6.67211 12.9716 6.40965C13.6142 6.13783 14.2967 6 15 6C15.7033 6 16.3858 6.13783 17.0285 6.40965C17.649 6.67211 18.2063 7.04779 18.6847 7.52624C19.1632 8.00469 19.5388 8.56192 19.8013 9.18248C20.0731 9.82515 20.211 10.5076 20.211 11.2109V14.3645C20.2109 14.5651 20.0483 14.7278 19.8476 14.7278Z",className:"fill-white dark:fill-black"})]})]})],21392),e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...e,children:(0,t.jsx)("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"})})],14207),e.s(["default",0,e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...e,children:[(0,t.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),(0,t.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,t.jsx)("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]})],62334)},45872,e=>{"use strict";var t,r,n,a,o,i,s,l,c,u,d=e.i(48045),f=e.i(56008),h=e.i(29110),m=e.i(26476),p=e.i(34047),g=e.i(19455),x=e.i(99676);e.s([],53776),e.i(53776),e.i(46575);var v=e.i(80269),y=e.i(25587),b=e.i(19458),j=e.i(61362),w=e.i(52515),N=e.i(80553),C=e.i(29148),k=e.i(50403),S=e.i(82420);let E=f.createContext(void 0);function P(e){let t=f.useContext(E);if(void 0===t&&!e)throw Error((0,S.default)(41));return t}let R=f.createContext(void 0);function M(){return f.useContext(R)}var I=e.i(11296),O=e.i(4678),T=e.i(99389);let A=((t={}).availableWidth="--available-width",t.availableHeight="--available-height",t.anchorWidth="--anchor-width",t.anchorHeight="--anchor-height",t.transformOrigin="--transform-origin",t.positionerWidth="--positioner-width",t.positionerHeight="--positioner-height",t),D=((r={}).popupWidth="--popup-width",r.popupHeight="--popup-height",r);function F(e,t,r,n){e.style.setProperty(D.popupWidth,`${r}px`),e.style.setProperty(D.popupHeight,`${n}px`),t.style.setProperty(A.positionerWidth,`${r}px`),t.style.setProperty(A.positionerHeight,`${n}px`)}let L=new Set([T.REASONS.triggerHover,T.REASONS.outsidePress,T.REASONS.focusOut]),z=f.forwardRef(function(e,t){let{defaultValue:r=null,value:n,onValueChange:a,actionsRef:o,delay:i=50,closeDelay:s=50,orientation:l="horizontal",onOpenChangeComplete:c}=e,u=null!=(0,N.useFloatingParentNodeId)(),h=P(!0),[m,p]=(0,y.useControlled)({controlled:n,default:r,name:"NavigationMenu",state:"value"}),g=null!=m,x=f.useRef(void 0),k=f.useRef(null),[S,R]=f.useState(null),[M,D]=f.useState(null),[z,W]=f.useState(null),[_,H]=f.useState(null),[G,$]=f.useState(null),[V,U]=f.useState(void 0),[q,K]=f.useState(!1),Y=f.useRef(null),J=f.useRef(null),Z=f.useRef(null),X=f.useRef(null),Q=f.useRef(null),ee=f.useRef(null),et=f.useRef({abortController:null,owner:null}),{mounted:er,setMounted:en,transitionStatus:ea}=(0,O.useTransitionStatus)(g);(0,j.useIsoLayoutEffect)(()=>{let e,t;if(g||!S||!M)return;let r=(e=parseFloat(S.style.getPropertyValue(A.positionerWidth))||0,t=parseFloat(S.style.getPropertyValue(A.positionerHeight))||0,e<=0||t<=0?null:{width:e,height:t});r&&F(M,S,r.width,r.height)},[g,M,S]),f.useEffect(()=>{K(!1)},[m]);let eo=(0,b.useStableCallback)((e,t)=>
1{null==e&&(x.current=t.reason),e!==m&&a?.(e,t),!t.isCanceled&&(null==e&&($(null),U(void 0)),p(e),u&&null==e&&t.reason===T.REASONS.linkPress&&h&&h.setValue(null,t))}),ei=(0,b.useStableCallback)(()=>{let e=(0,w.ownerDocument)(k.current),t=(0,C.activeElement)(e);!(x.current&&L.has(x.current))&&(0,v.isHTMLElement)(Y.current)&&(t===(0,w.ownerDocument)(M).body||(0,C.contains)(M,t))&&M&&(Y.current.focus({preventScroll:!0}),Y.current=void 0),en(!1),c?.(!1),$(null),U(void 0),J.current=null,x.current=void 0});f.useImperativeHandle(o,()=>({unmount:ei}),[ei]),(0,I.useOpenChangeComplete)({enabled:!o,open:g,ref:{current:M},onComplete(){g||ei()}}),(0,I.useOpenChangeComplete)({enabled:!o,open:g,ref:{current:_},onComplete(){g||ei()}});let es=g?G:null,el=f.useMemo(()=>({open:g,value:m,setValue:eo,mounted:er,transitionStatus:ea,positionerElement:S,setPositionerElement:R,popupElement:M,setPopupElement:D,viewportElement:z,setViewportElement:W,viewportTargetElement:_,setViewportTargetElement:H,activationDirection:es,setActivationDirection:$,floatingRootContext:V,setFloatingRootContext:U,currentContentRef:J,nested:u,rootRef:k,beforeInsideRef:Z,afterInsideRef:X,beforeOutsideRef:Q,afterOutsideRef:ee,prevTriggerElementRef:Y,popupAutoSizeResetRef:et,delay:i,closeDelay:s,orientation:l,viewportInert:q,setViewportInert:K}),[g,m,eo,er,ea,S,M,z,_,es,V,u,i,s,l,q]),ec=(0,d.jsx)(E.Provider,{value:el,children:(0,d.jsx)(B,{componentProps:e,forwardedRef:t,children:e.children})});return u?ec:(0,d.jsx)(N.FloatingTree,{children:ec})});function B(e){let{className:t,render:r,defaultValue:n,value:a,onValueChange:o,actionsRef:i,delay:s,closeDelay:l,orientation:c,onOpenChangeComplete:u,style:f,...h}=e.componentProps,m=(0,N.useFloatingNodeId)(),{rootRef:p,nested:g,open:x}=P(),v=(0,k.useRenderElement)(g?"div":"nav",e.componentProps,{state:{open:x,nested:g},ref:[e.forwardedRef,p],props:h});return(0,d.jsx)(R.Provider,{value:m,children:(0,d.jsx)(N.FloatingNode,{id:m,children:v})})}var W=e.i(53076),_=e.i(28698),H=e.i(69821),G=e.i(67149);let $="data-base-ui-navigation-menu-trigger",V=f.createContext(void 0);var U=e.i(37388);let q=f.forwardRef(function(e,t){let{render:r,className:n,style:a,...o}=e,i=M(),{orientation:s,open:l,floatingRootContext:c,positionerElement:u,value:h,closeDelay:m,viewportElement:p,nested:g}=P(),x=f.useMemo(()=>(0,U.getEmptyRootContext)(),[]),v=c||x;(0,H.useHoverFloatingInteraction)(v,{enabled:!!c&&(null!=u||null!=p||null==h),closeDelay:m,nodeId:i});let y=(0,_.useDismiss)(v,{enabled:null!=u||null==h,outsidePressEvent:"intentional",outsidePress(e){let t=(0,C.getTarget)(e);return null===t?.closest(`[${$}]`)}}),b=c?y:void 0,j={open:l},w=g?W.EMPTY_OBJECT:{onKeyDown(e){("horizontal"===s&&("ArrowLeft"===e.key||"ArrowRight"===e.key)||"vertical"===s&&("ArrowUp"===e.key||"ArrowDown"===e.key))&&e.stopPropagation()}},N=[b?.floating||W.EMPTY_OBJECT,w,o],S=(0,k.useRenderElement)("ul",e,{state:j,ref:t,props:N,enabled:g});return g?(0,d.jsx)(V.Provider,{value:b,children:S}):(0,d.jsx)(V.Provider,{value:b,children:(0,d.jsx)(G.CompositeRoot,{render:r,className:n,style:a,state:j,refs:[t],props:N,loopFocus:!1,orientation:s,tag:"ul"})})}),K=f.createContext(void 0);function Y(){let e=f.useContext(K);if(!e)throw Error((0,S.default)(39));return e}var J=e.i(99281);let Z=f.forwardRef(function(e,t){let{render:r,className:n,style:a,value:o,...i}=e,s=(0,J.useBaseUiId)(),l=o??s,c=(0,k.useRenderElement)("li",e,{ref:t,props:i}),u=f.useMemo(()=>({value:l}),[l]);return(0,d.jsx)(K.Provider,{value:u,children:c})});var X=e.i(84921),Q=e.i(33262),ee=e.i(53),et=e.i(72343);let er={...et.popupStateMapping,...ee.transitionStatusMapping,activationDirection:e=>e?{"data-activation-direction":e}:null},en=f.forwardRef(function(e,t){let{render:r,className:n,style:a,keepMounted:o=!1,...i}=e,{mounted:s,viewportElement:l,value:c,activationDirection:u,currentContentRef:h,viewportTargetElement:m}=P(),{value:p}=Y(),g=M(),x=s&&c===p,v=f.useRef(null),[y,w]=f.useState(!1),[k,S]=f.useState(!1),{mounted:E,setMounted:R,transitionStatus:T}=(0,O.useTransitionStatus)(x);E&&!s&&R(!1),(0,I.useOpenChangeComplete)({ref:v,open:x,onComplete(){x||R(!1)}}),(0,j.useIsoLayoutEffect)(()=>{x&&v.current&&(h.current=v.current)},[x,h]);let A={open:x,transitionStatus:T,activationDirection:u},D=(0,b.useStableCallback)(e=>{e&&x&&(h.current=e)}),F={onFocus(e){let t=(0,C.getTarget)(e.nativeEvent);t?.hasAttribute("data-base-ui-focus-guard")||S(!0)},onBlur(e){(0,C.contains)(e.currentTarget,e.relatedTarget)||S(!1)}},L=!x&&E?{style:{position:"absolute",top:0,left:0},inert:(0,Q.inertValue)(!k),...F}:F,z=m||l,B=o&&!E,_=o&&!z&&!y;return(o&&z&&!y&&w(!0),_)?(0,d.jsx)(G.CompositeRoot,{render:r,className:n,style:a,state:A,refs:[t],props:[L,{hidden:!0},i],stateAttributesMapping:er}):z&&(E||o)?X.createPortal((0,d.jsx)(N.FloatingNode,{id:g,children:(0,d.jsx)(G.CompositeRoot,{render:r,className:n,style:a,state:A,refs:[t,v,D],props:[L,B?{hidden:!0}:W.EMPTY_OBJECT,i],stateAttributesMapping:er})}),z):null});var ea=e.i(78645),eo=e.i(79995),ei=e.i(2304),es=e.i(99124),el=e.i(46230),ec=e.i(65180),eu=e.i(76072),ed=e.i(4864),ef=e.i(2054),eh=e.i(16489),em=e.i(26603),ep=e.i(38810),eg=e.i(51068),ex=e.i(51162),ev=e.i(39352),ey=e.i(55242);function eb({currentTarget:e,relatedTarget:t},r){let{popupElement:n,rootRef:a,tree:o,nodeId:i}=r,s=!!o&&(0,ey.getNodeChildren)(o.nodesRef.current,i).some(e=>(0,C.contains)(e.context?.elements.floating,t));return n?!(0,C.contains)(n,e)&&!(0,C.contains)(n,t)&&!(0,C.contains)(a.current,t)&&!s:!(0,C.contains)(a.current,t)&&!s}
1var ej=e.i(6889),ew=e.i(45034),eN=e.i(51633),eC=e.i(16428),ek=e.i(29494),eS=e.i(21023);let eE={width:0,height:0},eP=f.forwardRef(function(e,t){let{render:r,className:n,style:a,nativeButton:o=!0,disabled:i,...s}=e,{value:l,setValue:c,mounted:u,open:h,positionerElement:m,setActivationDirection:p,setFloatingRootContext:g,popupElement:x,viewportElement:v,transitionStatus:y,rootRef:w,beforeOutsideRef:k,afterOutsideRef:S,afterInsideRef:E,beforeInsideRef:R,prevTriggerElementRef:I,popupAutoSizeResetRef:O,currentContentRef:L,delay:z,closeDelay:B,orientation:_,setViewportInert:H,nested:G}=P(),{value:U}=Y(),q=M(),K=(0,N.useFloatingTree)(),J=f.useContext(V),Z=(0,eS.useDirection)(),Q=(0,ei.useTimeout)(),er=(0,es.useAnimationFrame)(),en=(0,es.useAnimationFrame)(),ey=(0,es.useAnimationFrame)(),eP=(0,es.useAnimationFrame)(),[eR,eM]=f.useState(null),[eI,eO]=f.useState(!0),[eT,eA]=f.useState(""),eD=f.useRef(null),eF=f.useRef(!1),eL=f.useRef(eE),ez=f.useRef(!1),eB=h&&l===U,eW=(0,el.useValueAsRef)(eB),e_=(null!=m||null==l)&&!i,eH=m||v,eG=(null!=eH||null==l)&&!i,e$=(0,eN.useAnimationsFinished)(x),eV=f.useCallback(e=>{eD.current=e,eM(e)},[]),eU=(0,b.useStableCallback)((e=!1)=>{(e||O.current.owner===U)&&(O.current.abortController?.abort(),O.current.abortController=null,O.current.owner=null)});function eq(e){e.style.setProperty(D.popupWidth,"auto"),e.style.setProperty(D.popupHeight,"auto")}function eK(e,t){e.style.removeProperty(D.popupWidth),e.style.removeProperty(D.popupHeight),t.style.removeProperty(A.positionerWidth),t.style.removeProperty(A.positionerHeight)}function eY(e){eU(!0);let t=new AbortController;O.current.abortController=t,O.current.owner=U,e$(()=>{O.current.abortController=null,O.current.owner=null,eq(e)},t.signal)}(0,j.useIsoLayoutEffect)(()=>{eB||(en.cancel(),eP.cancel(),eU())},[eB,en,eP,eU]);let eJ=(0,b.useStableCallback)((e,t,r,n)=>{eU(!0),eK(e,t);let{width:a,height:o}=(0,eC.getCssDimensions)(e),i=a||eL.current.width,s=o||eL.current.height;(0===n||0===r)&&(r=i,n=s),e.style.setProperty(D.popupWidth,`${r}px`),e.style.setProperty(D.popupHeight,`${n}px`),t.style.setProperty(A.positionerWidth,`${i}px`),t.style.setProperty(A.positionerHeight,`${s}px`),eP.request(()=>{eW.current&&(e.style.setProperty(D.popupWidth,`${i}px`),e.style.setProperty(D.popupHeight,`${s}px`),eY(e))})}),eZ=(0,b.useStableCallback)((e,t,r,n)=>{eP.cancel(),en.cancel(),eU(!0),0!==r&&0!==n&&(F(e,t,r,n),en.request(()=>{en.request(()=>{eK(e,t);let{width:a,height:o}=(0,eC.getCssDimensions)(e),i=a||r,s=o||n;F(e,t,r,n),eP.request(()=>{eW.current&&(F(e,t,i,s),eY(e))})})}))}),eX=(0,b.useStableCallback)((e,t)=>{eP.cancel(),eU(!0),eK(e,t);let{width:r,height:n}=(0,eC.getCssDimensions)(e);0!==r&&0!==n&&(eL.current={width:r,height:n},eq(e),t.style.setProperty(A.positionerWidth,`${r}px`),t.style.setProperty(A.positionerHeight,`${n}px`))}),eQ=(0,b.useStableCallback)(e=>{let t=e.style.getPropertyValue(D.popupWidth),r=e.style.getPropertyValue(D.popupHeight);return""===t||"auto"===t||""===r||"auto"===r?{size:eL.current,syncPositioner:!1}:{size:{width:e.offsetWidth||eL.current.width,height:e.offsetHeight||eL.current.height},syncPositioner:!0}});f.useEffect(()=>{h||(Q.clear(),en.cancel(),ey.cancel(),eP.cancel(),eU(!0),ez.current=!1,eA(""))},[Q,h,en,ey,eP,eU]),f.useEffect(()=>{u||(eL.current=eE)},[u]),(0,j.useIsoLayoutEffect)(()=>{if(!x||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(()=>{eL.current={width:x.offsetWidth,height:x.offsetHeight}});return e.observe(x),()=>{e.disconnect()}},[x]),f.useEffect(()=>{if(!h||!eB||!x||!m)return;let e=(0,eo.ownerWindow)(m),t=(0,ea.addEventListener)(e,"resize",function(){ey.cancel(),ey.request(()=>eX(x,m))});return()=>{ey.cancel(),t()}},[h,eB,x,m,ey,eX]),f.useEffect(()=>{let e=L.current;if(!e||!x||!m||!eB||"function"!=typeof MutationObserver)return;let t=new MutationObserver(()=>{if("starting"===y||x.hasAttribute(ee.TransitionStatusDataAttributes.startingStyle))return void eX(x,m);let{size:e,syncPositioner:t}=eQ(x);t?eZ(x,m,e.width,e.height):eJ(x,m,e.width,e.height)});return t.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["hidden"]}),()=>{t.disconnect()}},[L,x,m,eB,y,eQ,eZ,eJ,eX]),f.useEffect(()=>(eB&&h&&x&&eF.current&&(eF.current=!1,er.request(()=>{k.current?.focus()}
1)),()=>{er.cancel()}),[k,er,eB,h,x]),(0,j.useIsoLayoutEffect)(()=>{if(eW.current&&h&&x&&m){if(ez.current){ez.current=!1;return}let{width:e,height:t}=(0,eC.getCssDimensions)(x);eJ(x,m,e,t)}},[L,eJ,eW,h,x,m,y]);let e0=(0,ed.useFloatingRootContext)({open:h,onOpenChange:function(e,t){let r=t.reason===T.REASONS.triggerHover;function n(){r&&(eO(!0),Q.clear(),Q.start(ex.PATIENT_CLICK_THRESHOLD,()=>{eO(!1)})),e?c(U,t):(c(null,t),eA(""))}e_&&("touch"!==eT||!r)&&(e||l===U)&&(r?X.flushSync(n):n())},elements:{reference:eR,floating:eH}}),e1=(0,eh.useHoverInteractionSharedState)(e0),e2="touch"!==eT;f.useEffect(()=>(h||(e0.context.dataRef.current.openEvent=void 0,e1.pointerType=void 0,e1.interactedInside=!1,e1.restTimeoutPending=!1,e1.openChangeTimeout.clear(),e1.restTimeout.clear()),()=>{(0,eh.clearSafePolygonPointerEventsMutation)(e1)}),[e0,e1,h]);let e4=(0,b.useStableCallback)(()=>G&&!m&&eD.current&&eH?function(e,t,r){let n,a,o,i,s,l,c,u;return{placement:(n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=n.left+n.width/2,i=n.top+n.height/2,s=a.left+a.width/2,l=a.top+a.height/2,Math.abs(c=s-o)>=Math.abs(u=l-i)?c>=0?"right":"left":u>=0?"bottom":"top"),elements:{domReference:e,floating:t},nodeId:r}}(eD.current,eH,q):null);function e5(){return G&&m?null:eD.current?.closest("ul")??null}let e3=(0,ef.useHoverReferenceInteraction)(e0,{enabled:eG,move:!1,handleClose:(0,ec.safePolygon)({blockPointerEvents:e2,getScope:e5}),restMs:u&&m?0:z,delay:{close:B},triggerElementRef:eD,getHandleCloseContext:e4}),e6=f.useMemo(()=>e3?{reference:e3}:void 0,[e3]),e9=(0,eu.useClick)(e0,{enabled:e_,stickIfOpen:eI,toggle:eB}),e8=f.useMemo(()=>(0,ek.mergeProps)(e9.reference,e6?.reference),[e9.reference,e6]);function e7(e){X.flushSync(()=>{let t=e.currentTarget,r=I.current?.getBoundingClientRect();if(u&&r&&eR){let e=eR.getBoundingClientRect(),t=e.left>r.left,n=e.top>r.top;"horizontal"===_&&e.left!==r.left?p(t?"right":"left"):"vertical"===_&&e.top!==r.top&&p(n?"down":"up")}if("click"!==e.type&&null!=l&&(e0.context.dataRef.current.openEvent=void 0),("touch"!==eT||"click"===e.type)&&(null!=l&&"keydown"!==e.type&&c(U,(0,eg.createChangeEventDetails)("mouseenter"===e.type?T.REASONS.triggerHover:T.REASONS.triggerPress,e.nativeEvent)),"mouseenter"===e.type&&e2&&(!G||!m)&&eH)){let e=()=>{let e=e5()??t.ownerDocument.body;(0,eh.applySafePolygonPointerEventsMutation)(e1,{scopeElement:e,referenceElement:t,floatingElement:eH})};null!=l&&l!==U?queueMicrotask(e):e()}})}(0,j.useIsoLayoutEffect)(()=>{eB&&(g(e0),I.current=eR)},[eB,e0,g,I,eR]);let te=(0,b.useStableCallback)(e=>{if(i)return;if(!x||!m)return void e7(e);let{width:t,height:r}=(0,eC.getCssDimensions)(x),n=null!=l&&l!==U&&("click"===e.type||"touch"!==eT);e7(e),n&&(ez.current=!0),eJ(x,m,t,r)});function tt(e){eA(e.pointerType)}let tr={tabIndex:0,onMouseEnter:te,onClick:te,onPointerEnter:tt,onPointerDown:function(e){tt(e),(0,eh.clearSafePolygonPointerEventsMutation)(e1)},"aria-expanded":eB,"aria-controls":eB?x?.id:void 0,[$]:"",onFocus(){eB&&H(!1)},onMouseMove(){eF.current=!1},onKeyDown(e){if(eF.current=!0,G)return;let t="horizontal"===_&&"ArrowDown"===e.key,r="vertical"===_&&e.key===("rtl"===Z?"ArrowLeft":"ArrowRight");(t||r)&&(c(U,(0,eg.createChangeEventDetails)(T.REASONS.listNavigation,e.nativeEvent)),te(e),(0,ep.stopEvent)(e))},onBlur(e){m&&x&&eb({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:x,rootRef:w,tree:K,nodeId:q})&&c(null,(0,eg.createChangeEventDetails)(T.REASONS.focusOut,e.nativeEvent))}},{getButtonProps:tn,buttonRef:ta}=(0,ew.useButton)({disabled:i,focusableWhenDisabled:!0,native:o});return(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)(ej.CompositeItem,{tag:"button",render:r,className:n,style:a,state:{open:eB},stateAttributesMapping:et.pressableTriggerOpenStateMapping,refs:[t,eV,ta],props:[e8,J?.reference||W.EMPTY_ARRAY,tr,s,tn]}),eB&&(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)(ev.FocusGuard,{ref:k,onFocus:e=>{if(eH&&(0,em.isOutsideEvent)(e,eH))R.current?.focus();else{let e=(0,em.getPreviousTabbable)(eR);e?.focus()}}}),(0,d.jsx)("span",{"aria-owns":v?.id,style:ex.ownerVisuallyHidden}),(0,d.jsx)(ev.FocusGuard,{ref:S,onFocus:e=>{if(eH&&(0,em.isOutsideEvent)(e,eH)){X.flushSync(()=>{H(!1)});let e=E.current||eR;e?.focus()}else{let t=(0,em.getNextTabbable)(eR);G&&!m&&eH&&t&&(0,C.contains)(eH,t)&&(t=(0,em.getTabbableAfterElement)(E.current)),t?.focus(),G&&!m||(0,C.contains)(w.current,t)||c(null,(0,eg.createChangeEventDetails)(T.REASONS.focusOut,e.nativeEvent))}}})]})]})});var eR=e.i(45247);let eM=f.createContext(void 0),eI=f.forwardRef(function(e,t){let{keepMounted:r=!1,...n}
1=e,{mounted:a}=P();return a||r?(0,d.jsx)(eM.Provider,{value:r,children:(0,d.jsx)(eR.FloatingPortal,{ref:t,...n})}):null});var eO=e.i(12491),eT=e.i(47752),eA=e.i(58479);let eD=f.createContext(void 0);function eF(e=!1){let t=f.useContext(eD);if(!t&&!e)throw Error((0,S.default)(42));return t}var eL=e.i(69264),ez=e.i(2690);let eB=(0,U.getEmptyRootContext)(),eW=f.forwardRef(function(e,t){var r;let{open:n,mounted:a,positionerElement:o,setPositionerElement:i,floatingRootContext:s,nested:l,transitionStatus:c}=P(),{className:u,render:h,anchor:m,positionMethod:p="absolute",side:g="bottom",align:x="center",sideOffset:v=0,alignOffset:y=0,collisionBoundary:b="clipping-ancestors",collisionPadding:j=5,collisionAvoidance:w=l?ex.POPUP_COLLISION_AVOIDANCE:ex.DROPDOWN_COLLISION_AVOIDANCE,arrowPadding:N=5,sticky:C=!1,disableAnchorTracking:k=!1,style:E,...R}=e,I=function(){let e=f.useContext(eM);if(void 0===e)throw Error((0,S.default)(40));return e}(),O=M(),T=(0,ei.useTimeout)(),A=(0,ei.useTimeout)(),[D,F]=f.useState(n),L=f.useRef(n);f.useEffect(()=>{if(o)return(0,eO.mergeCleanups)((0,ea.addEventListener)(o,"focusin",e,!0),(0,ea.addEventListener)(o,"focusout",e,!0));function e(e){o&&(0,em.isOutsideEvent)(e)&&("focusin"===e.type?em.enableFocusInside:em.disableFocusInside)(o)}},[o]);let z=(s||eB).useState("domReferenceElement"),B=(r={anchor:m??z,positionMethod:p,mounted:a,side:g,sideOffset:v,align:x,alignOffset:y,arrowPadding:N,collisionBoundary:b,collisionPadding:j,sticky:C,disableAnchorTracking:k,keepMounted:I,floatingRootContext:s,collisionAvoidance:w,shift:{rootBoundary:"layoutViewport"},nodeId:O,adaptiveOrigin:eL.adaptiveOrigin},(0,eA.useAnchorPositioningWithHook)(r,eT.useFloating)),W={open:n,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:D};f.useEffect(()=>{if(!n)return;L.current&&T.start(0,()=>{L.current=!1,A.isStarted()||F(!1)});let e=(0,eo.ownerWindow)(o);return(0,ea.addEventListener)(e,"resize",function(){X.flushSync(()=>{F(!0)}),A.start(100,()=>{F(!1)})})},[n,T,A,o]);let _=(0,ez.usePositioner)(e,W,{styles:B.positionerStyles,transitionStatus:c,props:R,refs:[t,i],hidden:!a,inert:!n});return(0,d.jsx)(eD.Provider,{value:B,children:_})});var e_=e.i(25804);let eH=(0,U.getEmptyRootContext)();function eG({children:e}){let{beforeInsideRef:t,beforeOutsideRef:r,afterInsideRef:n,afterOutsideRef:a,positionerElement:o,viewportElement:i,floatingRootContext:s}=P(),l=!!eF(!0),c=o||i;return s||l?(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)(ev.FocusGuard,{ref:t,onFocus:e=>{c&&(0,em.isOutsideEvent)(e,c)?(0,em.getNextTabbable)(c)?.focus():r.current?.focus()}}),e,(0,d.jsx)(ev.FocusGuard,{ref:n,onFocus:e=>{c&&(0,em.isOutsideEvent)(e,c)?(0,em.getPreviousTabbable)(c)?.focus():a.current?.focus()}})]}):e}let e$=f.forwardRef(function(e,t){let{render:r,className:n,style:a,children:o,id:i,...s}=e,l=(0,e_.useId)(i),{setViewportElement:c,setViewportTargetElement:u,floatingRootContext:f,prevTriggerElementRef:h,viewportInert:m,setViewportInert:p}=P(),g=!!eF(!0),x=(f||eH).useState("domReferenceElement");(0,j.useIsoLayoutEffect)(()=>{x&&(h.current=x)},[x,h]);let v=(0,k.useRenderElement)("div",e,{ref:[t,c],props:[{id:l,onBlur(e){let t=e.relatedTarget,r=e.currentTarget;t&&!(0,C.contains)(r,t)&&t!==x&&p(!0)},...!g&&m&&{inert:(0,Q.inertValue)(!0)},children:g?o:(0,d.jsx)(eG,{children:(0,d.jsx)("div",{ref:u,children:o})})},s]});return g?(0,d.jsx)(eG,{children:v}):v}),eV=f.forwardRef(function(e,t){let{render:r,className:n,style:a,...o}=e,{open:i,mounted:s,transitionStatus:l}=P();return(0,k.useRenderElement)("div",e,{state:{open:i,transitionStatus:l},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:et.popupTransitionStateMapping})});var eU=e.i(51131);let eq=f.forwardRef(function(e,t){let{render:r,className:n,style:a,id:o,...i}=e,{open:s,transitionStatus:l,setPopupElement:c}=P(),u=eF(),d=(0,eS.useDirection)(),f=(0,J.useBaseUiId)(o),h={open:s,transitionStatus:l,side:u.side,align:u.align,anchorHidden:u.anchorHidden},m="left"===u.side;m="rtl"===d?m||"inline-end"===u.side:m||"inline-start"===u.side;let p="top"===u.side||m;return(0,k.useRenderElement)("nav",e,{state:h,ref:[t,c],props:[{id:f,tabIndex:-1,style:p?{position:"absolute",["top"===u.side?"bottom":"top"]:"0",[m?"right":"left"]:"0"}:{}},(0,eU.getDisabledMountTransitionStyles)(l),i],stateAttributesMapping:et.popupTransitionStateMapping})}),eK=f.forwardRef(function(e,t){let{render:r,className:n,style:a,...o}=e,{open:i,transitionStatus:s}=P(),{arrowRef:l,side:c,align:u,arrowUncentered:d,arrowStyles:f}=eF();return(0,k.useRenderElement)("div",e,{state:{open:i,side:c,align:u,uncentered:d},ref:[t,l],props:[{style:f,"aria-hidden":!0},(0,eU.getDisabledMountTransitionStyles)(s),o],stateAttributesMapping:et.popupStateMapping})}),eY=f.forwardRef(function(e,t){let{className:r,render:n,active:a=!1,closeOnClick:o=!1,style:i,...s}=e,{setValue:l,popupElement:c,positionerElement:u,rootRef:f}=P(),h=M(),m=(0,N.useFloatingTree)();return(0,d.jsx)(ej.CompositeItem,{tag:"a",render:n,className:r,style:i,state:{active:a},refs:[t],props:[{"aria-current":a?"page":void 0,tabIndex:void 0,onClick(e){o&&l(null,(0,eg.createChangeEventDetails)(T.REASONS.linkPress,e.nativeEvent))},onBlur(e){u&&c&&eb({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:c,rootRef:f,tree:m,nodeId:h})&&l(null,(0,eg.createChangeEventDetails)(T.REASONS.focusOut,e.nativeEvent))}},s]})}),eJ=f.forwardRef(function(e,t){let{render:r,className:n,style:a,...o}=e,{value:i}=Y(),{open:s,value:l}=P();return(0,k.useRenderElement)("span",e,{state:{open:s&&l===i}
1,ref:t,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:et.triggerOpenStateMapping})});e.s(["Arrow",0,eK,"Backdrop",0,eV,"Content",0,en,"Icon",0,eJ,"Item",0,Z,"Link",0,eY,"List",0,q,"Popup",0,eq,"Portal",0,eI,"Positioner",0,eW,"Root",0,z,"Trigger",0,eP,"Viewport",0,e$],81365);var eZ=e.i(81365),eZ=eZ,eX=e.i(94237),eQ=e.i(75157);function e0({align:e="start",className:t,children:r,...n}){return(0,d.jsxs)(eZ.Root,{"data-slot":"navigation-menu",className:(0,eQ.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...n,children:[r,(0,d.jsx)(e6,{align:e})]})}function e1({className:e,...t}){return(0,d.jsx)(eZ.List,{"data-slot":"navigation-menu-list",className:(0,eQ.cn)("group flex flex-1 list-none items-center justify-center gap-0",e),...t})}function e2({className:e,...t}){return(0,d.jsx)(eZ.Item,{"data-slot":"navigation-menu-item",className:(0,eQ.cn)("relative",e),...t})}let e4=(0,eX.cva)("group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50");function e5({className:e,children:t,...r}){return(0,d.jsxs)(eZ.Trigger,{"data-slot":"navigation-menu-trigger",className:(0,eQ.cn)(e4(),"group",e),...r,children:[t," ",(0,d.jsx)(p.ChevronDownIcon,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180","aria-hidden":"true"})]})}function e3({className:e,...t}){return(0,d.jsx)(eZ.Content,{"data-slot":"navigation-menu-content",className:(0,eQ.cn)("data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/10 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function e6({className:e,side:t="bottom",sideOffset:r=8,align:n="start",alignOffset:a=0,...o}){return(0,d.jsx)(eZ.Portal,{children:(0,d.jsx)(eZ.Positioner,{side:t,sideOffset:r,align:n,alignOffset:a,className:(0,eQ.cn)("isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0",e),...o,children:(0,d.jsx)(eZ.Popup,{className:"data-[ending-style]:easing-[ease] xs:w-(--popup-width) bg-popover text-popover-foreground ring-foreground
1/10 relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-lg shadow ring-1 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0",children:(0,d.jsx)(eZ.Viewport,{className:"relative size-full overflow-hidden"})})})})}function e9({className:e,...t}){return(0,d.jsx)(eZ.Link,{"data-slot":"navigation-menu-link",className:(0,eQ.cn)("hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md [&_svg:not([class*='size-'])]:size-4",e),...t})}var e8=e.i(61730),e7=e.i(87486),te=e.i(44465);let tt=()=>{let e=(0,te.useWishlistCount)();return(0,d.jsxs)(g.Button,{variant:"ghost",size:"icon-lg",className:"relative",render:(0,d.jsx)(h.default,{href:"/account/wishlist"}),nativeButton:!1,children:[(0,d.jsx)(e8.HeartIcon,{className:"size-5.5"}),e>0&&(0,d.jsx)(e7.Badge,{className:(0,eQ.cn)("bg-destructive absolute top-1 right-0.5 justify-center rounded-full text-[10px] text-white",e>9?"-right-1.5 h-3.5 min-w-3.5 px-1 py-0":"right-0.5 size-3.5 p-0"),children:e>9?"9+":e}),(0,d.jsx)("span",{className:"sr-only",children:"Wishlist"})]})};var tr=e.i(31305);let tn=()=>{let e=(0,te.useCartCount)();return(0,d.jsxs)(g.Button,{variant:"ghost",size:"icon-lg",className:"relative",render:(0,d.jsx)(h.default,{href:"/checkout"}),nativeButton:!1,children:[(0,d.jsx)(tr.ShoppingBagIcon,{className:"size-5.5"}),e>0&&(0,d.jsx)(e7.Badge,{className:(0,eQ.cn)("bg-destructive absolute top-1 justify-center rounded-full text-xs text-white",e>9?"-right-1.5 h-3.5 py-0 pr-0.5 pl-1":"right-0.5 size-3.5 p-0"),children:e>9?"9+":e}),(0,d.jsx)("span",{className:"sr-only",children:"Cart"})]})};function ta(e){let{children:t,className:r,duration:n=40,delay:a=0,gap:o=1,pauseOnHover:i=!1,repeat:s=4,reverse:l=!1,vertical:c=!1,...u}=e;return(0,d.jsx)("div",{style:{"--marquee-duration":`${n}s`,"--marquee-delay":`${a}s`,"--marquee-gap":`${o}rem`},className:(0,eQ.cn)("group flex gap-(--marquee-gap) overflow-hidden p-3",{"flex-row":!c,"flex-col":c},r),...u,children:Array(s).fill(0).map((e,r)=>(0,d.jsx)("div",{className:(0,eQ.cn)("flex shrink-0 justify-around gap-(--marquee-gap) [animation-delay:var(--marquee-delay)]",{"animate-marquee-horizontal flex-row":!c,"animate-marquee-vertical flex-col":c,"group-hover:paused":i,"direction-[reverse]":l}),children:t},r))})}e.i(98970),e.i(96280),e.i(59356);let to=[{name:"Free Shipping on Orders Over $50",color:"fill-cyan-400"},{name:"Up to 50% Off Selected Items",color:"fill-indigo-400"},{name:"New Arrivals Dropping Weekly",color:"fill-lime-400"},{name:"Flash Sale Ends Tonight",color:"fill-red-400"},{name:"Buy 2 Get 1 Free on Accessories",color:"fill-yellow-400"},{name:"Members Get Early Access",color:"fill-purple-400"},{name:"Extra 10% Off Your First Order",color:"fill-emerald-400"},{name:"Easy 30-Day Returns",color:"fill-orange-400"},{name:"Clearance Picks Starting at $9.99",color:"fill-pink-400"},{name:"Limited Stock - Shop Before It Sells Out",color:"fill-sky-400"}];var ti=e.i(90411),ts=e.i(96023),tl=e.i(10987);(0,tl.default)("notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]),(0,tl.default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var tc=e.i(16523),tu=e.i(42212),td=e.i(98448),tf=e.i(39327);ti.PackageIcon,ts.UserIcon,tc.TruckIcon,tu.ArrowRightLeftIcon,td.AwardIcon,tf.PhoneIcon;let th=async()=>to,tm=({color:e})=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 25 25",fill:"none",className:"shrink-0",children:(0,d.jsx)("path",{d:"M12 0L14.5456 9.45442L24 12L14.5456 14.5456L12 24L9.45442 14.5456L0 12L9.45442 9.45442L12 0Z",className:e})}),tp=()=>{let[e,t]=(0,f.useState)([]);if((0,f.useEffect)(()=>{th().then(t)},[]),0===e.length)return null;let r=[...e,...e,...e];return(0,d.jsx)("div",{className:"w-full bg-black",children:(0,d.jsx)("div",{className:"relative mx-auto",children:(0,d.jsx)("div",{className:"scrollbar-hide flex items-center justify-center overflow-hidden",children:(0,d.jsx)(ta,{pauseOnHover:!0,duration:300,gap:1.5,className:"px-0 py-1.5 *:gap-7",children:r.map((e,t)=>(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsx)("p",{className:"text-sm font-semibold whitespace-nowrap text-white",children:e.name}),(0,d.jsx)(tm,{color:e.color})]},`${e.name}-${t}`))})})})})};var tg=e.i(91751),tx=e.i(24595),tv=e.i(8524),ty=e.i(50548),tb=e.i(65768),tj=e.i(97865),tw=/[\\\/_+.#"@\[\(\{&]/,tN=/[\\\/_+.#"@\[\(\{&]/g,tC=/[\s-]/,tk=/[\s-]/g;function tS(e){return e.toLowerCase().replace(tk," ")}var tE=Object.defineProperty,tP=(e,t)=>tE(e,"name",{value:t,configurable:!0}),tR=!!("u">typeof window&&window.document&&window.document.createElement);function tM(e,t,{checkForDefaultPrevented:r=!0}={}){return tP(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function tI(e){if(!tR)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function tO(e){return"IFRAME"===e.tagName}tP(tM,"composeEventHandlers"),tP(function(e){if(!tR)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),tP(tI,"getOwnerDocument"),tP(function e(t,r=!1){let{activeElement:n}=tI(t);if(!n?.nodeName)return null;if(tO(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=tI(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),tP(tO,"isFrame");var tT=Object.defineProperty,tA=(e,t)=>
1tT(e,"name",{value:t,configurable:!0});function tD(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tF(...e){return t=>{let r=!1,n=e.map(e=>{let n=tD(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():tD(e[t],null)}}}}function tL(...e){return f.useCallback(tF(...e),e)}tA(tD,"setRef"),tA(tF,"composeRefs"),tA(tL,"useComposedRefs");var tz=Object.defineProperty,tB=(e,t)=>tz(e,"name",{value:t,configurable:!0});function tW(e,t=[]){let r=[];function n(t,n){let a=f.createContext(n);a.displayName=t+"Context";let o=r.length;r=[...r,n];let i=tB(t=>{let{scope:r,children:n,...i}=t,s=r?.[e]?.[o]||a,l=f.useMemo(()=>i,Object.values(i));return(0,d.jsx)(s.Provider,{value:l,children:n})},"Provider");function s(r,i,l={}){let{optional:c=!1}=l,u=i?.[e]?.[o]||a,d=f.useContext(u);if(d)return d;if(void 0!==n)return n;if(!c)throw Error(`\`${r}\` must be used within \`${t}\``)}return i.displayName=t+"Provider",tB(s,"useContext"),[i,s]}tB(n,"createContext");let a=tB(()=>{let t=r.map(e=>f.createContext(e));return tB(function(r){let n=r?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return a.scopeName=e,[n,t_(a,...t)]}function t_(...e){let t=e[0];if(1===e.length)return t;let r=tB(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return tB(function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}tB(function(e,t){let r=f.createContext(t);r.displayName=e+"Context";let n=tB(e=>{let{children:t,...n}=e,a=f.useMemo(()=>n,Object.values(n));return(0,d.jsx)(r.Provider,{value:a,children:t})},"Provider");function a(n,o={}){let{optional:i=!1}=o,s=f.useContext(r);if(s)return s;if(void 0!==t)return t;if(!i)throw Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",tB(a,"useContext"),[n,a]},"createContext"),tB(tW,"createContextScope"),tB(t_,"composeContextScopes");var tH=globalThis?.document?f.useLayoutEffect:()=>{},tG=Object.defineProperty,t$=f[" useId ".trim().toString()]||(()=>void 0),tV=0;function tU(e){let[t,r]=f.useState(t$());return tH(()=>{e||r(e=>e??String(tV++))},[e]),e||(t?`radix-${t}`:"")}tG(tU,"name",{value:"useId",configurable:!0});var tq=Object.defineProperty,tK=f[" useEffectEvent ".trim().toString()],tY=f[" useInsertionEffect ".trim().toString()];function tJ(e){if("function"==typeof tK)return tK(e);let t=f.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof tY?tY(()=>{t.current=e}):tH(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}tq(tJ,"name",{value:"useEffectEvent",configurable:!0});var tZ=Object.defineProperty,tX=(e,t)=>tZ(e,"name",{value:t,configurable:!0}),tQ=f[" useInsertionEffect ".trim().toString()]||tH;function t0({prop:e,defaultProp:t,onChange:r=tX(()=>{},"onChange"),caller:n}){let[a,o,i]=t1({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:a;return[l,f.useCallback(t=>{if(s){let r=t2(t)?t(e):t;r!==e&&i.current?.(r)}else o(t)},[s,e,o,i])]}function t1({defaultProp:e,onChange:t}){let[r,n]=f.useState(e),a=f.useRef(r),o=f.useRef(t);return tQ(()=>{o.current=t},[t]),f.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}function t2(e){return"function"==typeof e}tX(t0,"useControllableState"),tX(t1,"useUncontrolledState"),tX(t2,"isFunction");var t4=Symbol("RADIX:SYNC_STATE");tX(function(e,t,r,n){let{prop:a,defaultProp:o,onChange:i,caller:s}=t,l=void 0!==a,c=tJ(i),u=[{...r,state:o}];n&&u.push(n);let[d,h]=f.useReducer((t,r)=>{if(r.type===t4)return{...t,state:r.state};let n=e(t,r);return l&&!Object.is(n.state,t.state)&&c(n.state),n},...u),m=d.state,p=f.useRef(m);f.useEffect(()=>{p.current!==m&&(p.current=m,l||c(m))},[m,p,l]);let g=f.useMemo(()=>void 0!==a?{...d,state:a}:d,[d,a]);return f.useEffect(()=>{l&&!Object.is(a,d.state)&&h({type:t4,state:a})},[a,d.state,l]),[g,h]},"useControllableStateReducer");var t5=Object.defineProperty,t3=(e,t)=>
1t5(e,"name",{value:t,configurable:!0});function t6(e){let t=f.forwardRef((t,r)=>{let{children:n,...a}=t,o=null,i=!1,s=[];rn(n)&&"function"==typeof rs&&(n=rs(n._payload)),f.Children.forEach(n,e=>{if(rt(e)){i=!0;let t="child"in e.props?e.props.child:e.props.children;rn(t)&&"function"==typeof rs&&(t=rs(t._payload)),o=t8(e,t),s.push(o?.props?.children)}else s.push(e)}),o?o=f.cloneElement(o,void 0,s):!i&&1===f.Children.count(n)&&f.isValidElement(n)&&(o=n);let l=o?re(o):void 0,c=tL(r,l);if(!o){if(n||0===n)throw Error(i?ri(e):ro(e));return n}let u=t7(a,o.props??{});return o.type!==f.Fragment&&(u.ref=r?c:l),f.cloneElement(o,u)});return t.displayName=`${e}.Slot`,t}t3(t6,"createSlot");var t9=Symbol.for("radix.slottable");t3(function(e){let t=t3(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=t9,t},"createSlottable");var t8=t3((e,t)=>{if("child"in e.props){let t=e.props.child;return f.isValidElement(t)?f.cloneElement(t,void 0,e.props.children(t.props.children)):null}return f.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function t7(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}function re(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function rt(e){return f.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===t9}t3(t7,"mergeProps"),t3(re,"getElementRef"),t3(rt,"isSlottable");var rr=Symbol.for("react.lazy");function rn(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===rr&&"_payload"in e&&ra(e._payload)}function ra(e){return"object"==typeof e&&null!==e&&"then"in e}t3(rn,"isLazyComponent"),t3(ra,"isPromiseLike");var ro=t3(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ri=t3(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),rs=f[" use ".trim().toString()],rl=Object.defineProperty,rc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=t6(`Primitive.${t}`),n=f.forwardRef((e,n)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ru(e,t){e&&X.flushSync(()=>e.dispatchEvent(t))}function rd(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}rl(ru,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(rd,"name",{value:"useCallbackRef",configurable:!0});var rf=Object.defineProperty,rh=(e,t)=>rf(e,"name",{value:t,configurable:!0}),rm="dismissableLayer.update",rp=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),rg=f.forwardRef(rh(function(e,t){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...u}=e,h=f.useContext(rp),[m,p]=f.useState(null),g=m?.ownerDocument??globalThis?.document,[,x]=f.useState({}),v=tL(t,p),y=Array.from(h.layers),[b]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),j=b?y.indexOf(b):-1,w=m?y.indexOf(m):-1,N=h.layersWithOutsidePointerEventsDisabled.size>0,C=w>=j,k=f.useRef(!1),S=ry(e=>{o?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:g,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:h.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...h.branches].some(t=>t.contains(e));return C&&!t},[h.branches,C])}),E=rb(e=>{if(n&&k.current)return;let t=e.target;![...h.branches].some(e=>e.contains(t))&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},g),P=!!m&&w===y.length-1,R=rd(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return f.useEffect(()=>{if(P)return g.addEventListener("keydown",R,{capture:!0}),()=>g.removeEventListener("keydown",R,{capture:!0})},[g,P,R]),f.useEffect(()=>{if(m)return r&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(c=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),rj(),()=>{r&&(h.layersWithOutsidePointerEventsDisabled.delete(m),0===h.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=c))}},[m,g,r,h]),f.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),rj())},[m,h]),f.useEffect(()=>{let e=rh(()=>x({}),"handleUpdate");return document.addEventListener(rm,e),()=>document.removeEventListener(rm,e)},[]),(0,d.jsx)(rc.div,{...u,ref:v,style:{pointerEvents:N?C?"auto":"none":void 0,...e.style},onFocusCapture:tM(e.onFocusCapture,E.onFocusCapture),onBlurCapture:tM(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:tM(e.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));function rx(){let e=f.useContext(rp),[t,r]=f.useState(null);return f.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}rh(rx,"useDismissableLayerSurface");var rv=rh(()=>!0,"IS_TRUE");function ry(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:i=rv}=t,s=rd(e),l=f.useRef(!1),c=f.useRef(!1),u=f.useRef(new Map),d=f.useRef(()=>{});return f.useEffect(()=>{function e(){c.current=!1,a.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||u.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function h(e){c.current&&u.current.set(e.type,!1)}rh(e,"resetOutsideInteraction"),rh(t,"isOutsideInteractionIntercepted"),rh(f,"handleInteractionCapture"),rh(h,"handleInteractionBubble");let m=rh(o=>
1{if(o.target&&!l.current){let f=function(){r.removeEventListener("click",d.current);let n=t();e(),n||rw("dismissableLayer.pointerDownOutside",s,h,{discrete:!0})};if(rh(f,"handleAndDispatchPointerDownOutsideEvent"),!i(o.target)){r.removeEventListener("click",d.current),e(),l.current=!1;return}let h={originalEvent:o};c.current=!0,a.current=n&&0===o.button,u.current.clear(),n&&0===o.button?(r.removeEventListener("click",d.current),d.current=f,r.addEventListener("click",d.current,{once:!0})):f()}else r.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of p)r.addEventListener(e,f,!0),r.addEventListener(e,h);let g=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(g),r.removeEventListener("pointerdown",m),r.removeEventListener("click",d.current),p))r.removeEventListener(e,f,!0),r.removeEventListener(e,h)}},[r,s,n,a,o,i]),{onPointerDownCapture:rh(()=>l.current=!0,"onPointerDownCapture")}}function rb(e,t=globalThis?.document){let r=rd(e),n=f.useRef(!1);return f.useEffect(()=>{let e=rh(e=>{e.target&&!n.current&&rw("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:rh(()=>n.current=!0,"onFocusCapture"),onBlurCapture:rh(()=>n.current=!1,"onBlurCapture")}}function rj(){let e=new CustomEvent(rm);document.dispatchEvent(e)}function rw(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?ru(a,o):a.dispatchEvent(o)}rh(ry,"usePointerDownOutside"),rh(rb,"useFocusOutside"),rh(rj,"dispatchUpdate"),rh(rw,"handleAndDispatchCustomEvent");var rN=Object.defineProperty,rC=(e,t)=>rN(e,"name",{value:t,configurable:!0}),rk="focusScope.autoFocusOnMount",rS="focusScope.autoFocusOnUnmount",rE={bubbles:!1,cancelable:!0},rP=f.forwardRef(rC(function(e,t){let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=f.useState(null),c=rd(a),u=rd(o),h=f.useRef(null),m=tL(t,l),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:rD(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||rD(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&rD(s)};rC(e,"handleFocusIn"),rC(t,"handleFocusOut"),rC(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,s,p.paused]),f.useEffect(()=>{if(s){rF.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(rk,rE);s.addEventListener(rk,c),s.dispatchEvent(t),t.defaultPrevented||(rR(rB(rI(s)),{select:!0}),document.activeElement===e&&rD(s))}return()=>{s.removeEventListener(rk,c),setTimeout(()=>{let t=new CustomEvent(rS,rE);s.addEventListener(rS,u),s.dispatchEvent(t),t.defaultPrevented||rD(e??document.body,{select:!0}),s.removeEventListener(rS,u),rF.remove(p)},0)}}},[s,c,u,p]);let g=f.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){let t=e.currentTarget,[n,o]=rM(t);n&&o?e.shiftKey||a!==o?e.shiftKey&&a===n&&(e.preventDefault(),r&&rD(o,{select:!0})):(e.preventDefault(),r&&rD(n,{select:!0})):a===t&&e.preventDefault()}},[r,n,p.paused]);return(0,d.jsx)(rc.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})},"FocusScope"));function rR(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(rD(n,{select:t}),document.activeElement!==r)return}function rM(e){let t=rI(e);return[rO(t,e),rO(t.reverse(),e)]}function rI(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:rC(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function rO(e,t){let r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let n of e)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):rT(n,{upTo:t})))return n}function rT(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function rA(e){return e instanceof HTMLInputElement&&"select"in e}function rD(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&rA(e)&&t&&e.select()}}
1rC(rR,"focusFirst"),rC(rM,"getTabbableEdges"),rC(rI,"getTabbableCandidates"),rC(rO,"findVisible"),rC(rT,"isHidden"),rC(rA,"isSelectableInput"),rC(rD,"focus");var rF=rL();function rL(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=rz(e,t)).unshift(t)},remove(t){e=rz(e,t),e[0]?.resume()}}}function rz(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}function rB(e){return e.filter(e=>"A"!==e.tagName)}rC(rL,"createFocusScopesStack"),rC(rz,"arrayRemove"),rC(rB,"removeLinks");var rW=Object.defineProperty,r_=f.forwardRef(rW(function(e,t){let{container:r,...n}=e,[a,o]=f.useState(!1);tH(()=>o(!0),[]);let i=r||a&&globalThis?.document?.body;return i?X.createPortal((0,d.jsx)(rc.div,{...n,ref:t}),i):null},"name",{value:"Portal",configurable:!0})),rH=Object.defineProperty,rG=(e,t)=>rH(e,"name",{value:t,configurable:!0});function r$(e,t){return f.useReducer((e,r)=>t[e][r]??e,e)}rG(r$,"useStateMachine");var rV=rG(e=>{let{present:t,children:r}=e,n=rU(t),a="function"==typeof r?r({present:n.isPresent}):f.Children.only(r),o=rK(n.ref,rJ(a));return"function"==typeof r||n.isPresent?f.cloneElement(a,{ref:o}):null},"Presence");function rU(e){let[t,r]=f.useState(),n=f.useRef(null),a=f.useRef(e),o=f.useRef("none"),i=f.useRef(void 0),[s,l]=r$(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{"mounted"===s?(o.current=i.current??rY(n.current),i.current=void 0):o.current="none"},[s]),tH(()=>{let t=n.current,r=a.current;if(r!==e){let n=o.current,s=rY(t);e?(i.current=s,l("MOUNT")):"none"===s||t?.display==="none"?l("UNMOUNT"):r&&n!==s?l("ANIMATION_OUT"):l("UNMOUNT"),a.current=e}},[e,l]),tH(()=>{if(t){let e,r=t.ownerDocument.defaultView??window,i=rG(o=>{let i=rY(n.current).includes(CSS.escape(o.animationName));if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){let n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),s=rG(e=>{e.target===t&&(o.current=rY(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(e=>{if(e){let t=getComputedStyle(e);n.current=t,i.current=rY(t)}else n.current=null;r(e)},[])}}function rq(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rK(...e){let t=f.useRef(e);return t.current=e,f.useCallback(e=>{let r=t.current,n=!1,a=r.map(t=>{let r=rq(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<a.length;e++){let t=a[e];"function"==typeof t?t():rq(r[e],null)}}},[])}function rY(e){return e?.animationName||"none"}function rJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}rG(rU,"usePresence"),rG(rq,"setRef"),rG(rK,"useStableComposedRefs"),rG(rY,"getAnimationName"),rG(rJ,"getElementRef");var rZ=Object.defineProperty,rX=(e,t)=>rZ(e,"name",{value:t,configurable:!0}),rQ=0,r0=null;function r1(){f.useEffect(()=>{r0||(r0={start:r2(),end:r2()});let{start:e,end:t}=r0;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),rQ++,()=>{1===rQ&&(r0?.start.remove(),r0?.end.remove(),r0=null),rQ=Math.max(0,rQ-1)}},[])}function r2(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}rX(function(e){return r1(),e.children},"FocusGuards"),rX(r1,"useFocusGuards"),rX(r2,"createFocusGuard");var r4=function(){return(r4=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function r5(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var r3=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),r6="width-before-scroll-bar";function r9(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var r8="u">typeof window?f.useLayoutEffect:f.useEffect,r7=new WeakMap,ne=(void 0===n&&(n={}),(void 0===a&&(a=function(e){return e}),o=[],i=!1,s={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=a(e,i);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){i=!0;var t=[];if(o.length){var r=o;o=[],r.forEach(e),t=o}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),o={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),o}}}}).options=r4({async:!0,ssr:!1},n),s),nt=function(){},nr=f.forwardRef(function(e,t){var r,n,a,o,i=f.useRef(null),s=f.useState({onScrollCapture:nt,onWheelCapture:nt,onTouchMoveCapture:nt}),l=s[0],c=s[1],u=e.forwardProps,d=e.children,h=e.className,m=e.removeScrollBar,p=e.enabled,g=e.shards,x=e.sideCar,v=e.noRelative,y=e.noIsolation,b=e.inert,j=e.allowPinchZoom,w=e.as,N=e.gapMode,C=r5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[i,t],n=function(e){return r.forEach(function(t){return r9(t,e)})},(a=(0,f.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,o=a.facade,r8(function(){var e=r7.get(o);if(e){var t=new Set(e),n=new Set(r),a=o.current;t.forEach(function(e){n.has(e)||r9(e,null)}
1),n.forEach(function(e){t.has(e)||r9(e,a)})}r7.set(o,r)},[r]),o),S=r4(r4({},C),l);return f.createElement(f.Fragment,null,p&&f.createElement(x,{sideCar:ne,removeScrollBar:m,shards:g,noRelative:v,noIsolation:y,inert:b,setCallbacks:c,allowPinchZoom:!!j,lockRef:i,gapMode:N}),u?f.cloneElement(f.Children.only(d),r4(r4({},S),{ref:k})):f.createElement(void 0===w?"div":w,r4({},S,{className:h,ref:k}),d))});nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nr.classNames={fullWidth:r6,zeroRight:r3};var nn=function(e){var t=e.sideCar,r=r5(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return f.createElement(n,r4({},r))};nn.isSideCarExport=!0;var na=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},no=function(){var e=na();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ni=function(){var e=no();return function(t){return e(t.styles,t.dynamic),null}},ns={left:0,top:0,right:0,gap:0},nl=function(e){return parseInt(e||"",10)||0},nc=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[nl(r),nl(n),nl(a)]},nu=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return ns;var t=nc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},nd=ni(),nf="data-scroll-locked",nh=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(nf,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(r3," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(r6," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(r3," .").concat(r3," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(r6," .").concat(r6," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(nf,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},nm=function(){var e=parseInt(document.body.getAttribute(nf)||"0",10);return isFinite(e)?e:0},np=function(){f.useEffect(function(){return document.body.setAttribute(nf,(nm()+1).toString()),function(){var e=nm()-1;e<=0?document.body.removeAttribute(nf):document.body.setAttribute(nf,e.toString())}},[])},ng=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;np();var o=f.useMemo(function(){return nu(a)},[a]);return f.createElement(nd,{styles:nh(o,!t,a,r?"":"!important")})},nx=!1;if("u">typeof window)try{var nv=Object.defineProperty({},"passive",{get:function(){return nx=!0,!0}});window.addEventListener("test",nv,nv),window.removeEventListener("test",nv,nv)}catch(e){nx=!1}var ny=!!nx&&{passive:!1},nb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},nj=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nw(e,n)){var a=nN(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},nw=function(e,t){return"v"===e?nb(t,"overflowY"):nb(t,"overflowX")},nN=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nC=function(e,t,r,n,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=i*n,l=r.target,c=t.contains(l),u=!1,d=s>0,f=0,h=0;
1do{if(!l)break;var m=nN(e,l),p=m[0],g=m[1]-m[2]-i*p;(p||g)&&nw(e,l)&&(f+=g,h+=p);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))return d&&(a&&1>Math.abs(f)||!a&&s>f)?u=!0:!d&&(a&&1>Math.abs(h)||!a&&-s>h)&&(u=!0),u},nk=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nS=function(e){return[e.deltaX,e.deltaY]},nE=function(e){return e&&"current"in e?e.current:e},nP=0,nR=[];let nM=(l=function(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),a=f.useState(nP++)[0],o=f.useState(ni)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nE),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=nk(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===u||h.contains(u)))return!1;var m=nj(d,u);if(!m)return!0;if(m?a=d:(a="v"===d?"h":"v",m=nj(d,u)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=a),!a)return!0;var p=n.current||a;return nC(p,t,e,"h"===p?l:c,!0)},[]),l=f.useCallback(function(e){if(nR.length&&nR[nR.length-1]===o){var r="deltaY"in e?nS(e):nk(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(i.current.shards||[]).map(nE).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=f.useCallback(function(e){r.current=nk(e),n.current=void 0},[]),d=f.useCallback(function(t){c(t.type,nS(t),t.target,s(t,e.lockRef.current))},[]),h=f.useCallback(function(t){c(t.type,nk(t),t.target,s(t,e.lockRef.current))},[]);f.useEffect(function(){return nR.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ny),document.addEventListener("touchmove",l,ny),document.addEventListener("touchstart",u,ny),function(){nR=nR.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,ny),document.removeEventListener("touchmove",l,ny),document.removeEventListener("touchstart",u,ny)}},[]);var m=e.removeScrollBar,p=e.inert;return f.createElement(f.Fragment,null,p?f.createElement(o,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,m?f.createElement(ng,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ne.useMedium(l),nn);var nI=f.forwardRef(function(e,t){return f.createElement(nr,r4({},e,{ref:t,sideCar:nM}))});nI.classNames=nr.classNames;var nO=new WeakMap,nT=new WeakMap,nA={},nD=0,nF=function(e){return e&&(e.host||nF(e.parentNode))},nL=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=nF(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});nA[r]||(nA[r]=new WeakMap);
1var o=nA[r],i=[],s=new Set,l=new Set(a),c=function(e){!e||s.has(e)||(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(nO.get(e)||0)+1,c=(o.get(e)||0)+1;nO.set(e,l),o.set(e,c),i.push(e),1===l&&a&&nT.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),nD++,function(){i.forEach(function(e){var t=nO.get(e)-1,a=o.get(e)-1;nO.set(e,t),o.set(e,a),t||(nT.has(e)||e.removeAttribute(n),nT.delete(e)),a||e.removeAttribute(r)}),--nD||(nO=new WeakMap,nO=new WeakMap,nT=new WeakMap,nA={})}},nz=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),nL(n,a,r,"aria-hidden")):function(){return null}},nB=Object.defineProperty,nW=(e,t)=>nB(e,"name",{value:t,configurable:!0}),n_="Dialog",[nH,nG]=tW(n_),[n$,nV]=nH(n_),nU=nW(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=f.useRef(null),l=f.useRef(null),[c,u]=t0({prop:n,defaultProp:a??!1,onChange:o,caller:n_}),[h,m]=f.useState(0),[p,g]=f.useState(0);return(0,d.jsx)(n$,{scope:t,triggerRef:s,contentRef:l,contentId:tU(),titleId:tU(),descriptionId:tU(),titlePresent:h>0,descriptionPresent:p>0,setTitleCount:m,setDescriptionCount:g,open:c,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(e=>!e),[u]),modal:i,children:r})},"Dialog"),nq="DialogPortal",[nK,nY]=nH(nq,{forceMount:void 0}),nJ=nW(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=nV(nq,t);return(0,d.jsx)(nK,{scope:t,forceMount:r,children:f.Children.map(n,e=>(0,d.jsx)(rV,{present:r||o.open,children:(0,d.jsx)(r_,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),nZ="DialogOverlay",nX=f.forwardRef(nW(function(e,t){let r=nY(nZ,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=nV(nZ,e.__scopeDialog);return o.modal?(0,d.jsx)(rV,{present:n||o.open,children:(0,d.jsx)(n0,{...a,ref:t})}):null},"DialogOverlay")),nQ=t6("DialogOverlay.RemoveScroll"),n0=f.forwardRef(nW(function(e,t){let{__scopeDialog:r,...n}=e,a=nV(nZ,r),o=tL(t,rx());return(0,d.jsx)(nI,{as:nQ,allowPinchZoom:!0,shards:[a.contentRef],children:(0,d.jsx)(rc.div,{"data-state":n6(a.open),...n,ref:o,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),n1="DialogContent",n2=f.forwardRef(nW(function(e,t){let r=nY(n1,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=nV(n1,e.__scopeDialog);return(0,d.jsx)(rV,{present:n||o.open,children:o.modal?(0,d.jsx)(n4,{...a,ref:t}):(0,d.jsx)(n5,{...a,ref:t})})},"DialogContent")),n4=f.forwardRef(nW(function(e,t){let r=nV(n1,e.__scopeDialog),n=f.useRef(null),a=tL(t,r.contentRef,n);return f.useEffect(()=>{let e=n.current;if(e)return nz(e)},[]),(0,d.jsx)(n3,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:tM(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:tM(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:tM(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),n5=f.forwardRef(nW(function(e,t){let r=nV(n1,e.__scopeDialog),n=f.useRef(!1),a=f.useRef(!1);return(0,d.jsx)(n3,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),n3=f.forwardRef(nW(function(e,t){let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=nV(n1,r);return r1(),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(rP,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,d.jsx)(rg,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":n6(s.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},"DialogContentImpl"));function n6(e){return e?"open":"closed"}nW(n6,"getState");var n9='[cmdk-group=""]',n8='[cmdk-group-items=""]',n7='[cmdk-item=""]',ae=`${n7}:not([aria-disabled="true"])`,at="cmdk-item-select",ar="data-value",an=(e,t,r)=>{var n;return n=e,function e(t,r,n,a,o,i,s){if(i===r.length)return o===t.length?1:.99;var l=`${o},${i}`;if(void 0!==s[l])return s[l];for(var c,u,d,f,h=a.charAt(i),m=n.indexOf(h,o),p=0;m>=0;)(c=e(t,r,n,a,m+1,i+1,s))>p&&(m===o?c*=1:tw.test(t.charAt(m-1))?(c*=.8,(d=t.slice(o,m-1).match(tN))&&o>0&&(c*=Math.pow(.999,d.length))):tC.test(t.charAt(m-1))?(c*=.9,(f=t.slice(o,m-1).match(tk))&&o>0&&(c*=Math.pow(.999,f.length))):(c*=.17,o>0&&(c*=Math.pow(.999,m-o))),t.charAt(m)!==r.charAt(i)&&(c*=.9999)),(c<.1&&n.charAt(m-1)===a.charAt(i+1)||a.charAt(i+1)===a.charAt(i)&&n.charAt(m-1)!==a.charAt(i))&&.1*(u=e(t,r,n,a,m+1,i+2,s))>c&&(c=.1*u),c>p&&(p=c),m=n.indexOf(h,m+1);return s[l]=p,p}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,tS(n),tS(t),0,0,{})},aa=f.createContext(void 0),ao=f.createContext(void 0),ai=f.createContext(void 0),as=f.forwardRef((e,t)=>
1{let r=ax(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ax(()=>new Set),a=ax(()=>new Map),o=ax(()=>new Map),i=ax(()=>new Set),s=ap(e),{label:l,children:c,value:u,onValueChange:d,filter:h,shouldFilter:m,loop:p,disablePointerSelection:g=!1,vimBindings:x=!0,...v}=e,y=tU(),b=tU(),j=tU(),w=f.useRef(null),N=ab();ag(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,C.emit()}},[u]),ag(()=>{N(6,M)},[]);let C=f.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,o,i,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)R(),E(),N(1,P);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(j);e?e.focus():null==(a=document.getElementById(y))||a.focus()}if(N(7,()=>{var e;r.current.selectedItemId=null==(e=I())?void 0:e.id,C.emit()}),n||N(5,M),(null==(o=s.current)?void 0:o.value)!==void 0){null==(l=(i=s.current).onValueChange)||l.call(i,null!=t?t:"");return}}C.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=f.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,S(t,n)),N(2,()=>{E(),C.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),N(3,()=>{R(),E(),r.current.value||P(),C.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=I();N(4,()=>{R(),(null==t?void 0:t.getAttribute("id"))===e&&P(),C.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:y,inputId:j,labelId:b,listInnerRef:w}),[]);function S(e,t){var n,a;let o=null!=(a=null==(n=s.current)?void 0:n.filter)?a:an;return e?o(e,r.current.search,t):0}function E(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=w.current;O().sort((t,r)=>{var n,a;let o=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(n8);t?t.appendChild(e.parentElement===t?e:e.closest(`${n8} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${n8} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=w.current)?void 0:t.querySelector(`${n9}[${ar}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function P(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(ar);C.setState("value",t||void 0)}function R(){var e,t,i,l;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let a of n.current){let n=S(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(l=null==(i=o.current.get(a))?void 0:i.keywords)?l:[]);r.current.filtered.items.set(a,n),n>0&&c++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function M(){var e,t,r;let n=I();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(n9))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function I(){var e;return null==(e=w.current)?void 0:e.querySelector(`${n7}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=w.current)?void 0:e.querySelectorAll(ae))||[])}function T(e){let t=O()[e];t&&C.setState("value",t.getAttribute(ar))}function A(e){var t;let r=I(),n=O(),a=n.findIndex(e=>e===r),o=n[a+e];null!=(t=s.current)&&t.loop&&(o=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),o&&C.setState("value",o.getAttribute(ar))}function D(e){let t=I(),r=null==t?void 0:t.closest(n9),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,n9):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,n9))?void 0:r.querySelector(ae);n?C.setState("value",n.getAttribute(ar)):A(e)}let F=()=>T(O().length-1),L=e=>{e.preventDefault(),e.metaKey?F():e.altKey?D(1):A(1)},z=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?D(-1):A(-1)};return f.createElement(rc.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=v.onKeyDown)||t.call(v,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":x&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":x&&e.ctrlKey&&z(e);break;case"ArrowUp":z(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),F();break;case"Enter":{e.preventDefault();let t=I();if(t){let e=new Event(at);t.dispatchEvent(e)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:aw},l),aj(e,e=>f.createElement(ao.Provider,{value:C},f.createElement(aa.Provider,{value:k},e))))}),al=f.forwardRef((e,t)=>
1{var r,n;let a=tU(),o=f.useRef(null),i=f.useContext(ai),s=f.useContext(aa),l=ap(e),c=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==i?void 0:i.forceMount;ag(()=>{if(!c)return s.item(a,null==i?void 0:i.id)},[c]);let u=ay(a,o,[e.value,e.children,o],e.keywords),d=f.useContext(ao),h=av(e=>e.value&&e.value===u.current),m=av(e=>!!c||!1===s.filter()||!e.search||e.filtered.items.get(a)>0);function p(){var e,t;g(),null==(t=(e=l.current).onSelect)||t.call(e,u.current)}function g(){d.setState("value",u.current,!0)}if(f.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(at,p),()=>t.removeEventListener(at,p)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:x,value:v,onSelect:y,forceMount:b,keywords:j,...w}=e;return f.createElement(rc.div,{ref:tF(o,t),...w,id:a,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||s.getDisablePointerSelection()?void 0:g,onClick:x?void 0:p},e.children)}),ac=f.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...o}=e,i=tU(),s=f.useRef(null),l=f.useRef(null),c=tU(),u=f.useContext(aa),d=av(e=>!!a||!1===u.filter()||!e.search||e.filtered.groups.has(i));ag(()=>u.group(i),[]),ay(i,s,[e.value,e.heading,l]);let h=f.useMemo(()=>({id:i,forceMount:a}),[a]);return f.createElement(rc.div,{ref:tF(s,t),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},r&&f.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),aj(e,e=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},f.createElement(ai.Provider,{value:h},e))))}),au=f.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=f.useRef(null),o=av(e=>!e.search);return r||o?f.createElement(rc.div,{ref:tF(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),ad=f.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,o=f.useContext(ao),i=av(e=>e.search),s=av(e=>e.selectedItemId),l=f.useContext(aa);return f.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),f.createElement(rc.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),af=f.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,o=f.useRef(null),i=f.useRef(null),s=av(e=>e.selectedItemId),l=f.useContext(aa);return f.useEffect(()=>{if(i.current&&o.current){let e=i.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),f.createElement(rc.div,{ref:tF(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:l.listId},aj(e,e=>f.createElement("div",{ref:tF(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),ah=f.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:o,container:i,...s}=e;return f.createElement(nU,{open:r,onOpenChange:n},f.createElement(nJ,{container:i},f.createElement(nX,{"cmdk-overlay":"",className:a}),f.createElement(n2,{"aria-label":e.label,"cmdk-dialog":"",className:o},f.createElement(as,{ref:t,...s}))))}),am=Object.assign(as,{List:af,Item:al,Input:ad,Group:ac,Separator:au,Dialog:ah,Empty:f.forwardRef((e,t)=>av(e=>0===e.filtered.count)?f.createElement(rc.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:f.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...o}=e;return f.createElement(rc.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},aj(e,e=>f.createElement("div",{"aria-hidden":!0},e)))})});function ap(e){let t=f.useRef(e);return ag(()=>{t.current=e}),t}var ag="u"<typeof window?f.useEffect:f.useLayoutEffect;function ax(e){let t=f.useRef();return void 0===t.current&&(t.current=e()),t}function av(e){let t=f.useContext(ao),r=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,r,r)}function ay(e,t,r,n=[]){let a=f.useRef(),o=f.useContext(aa);return ag(()=>{var i;let s=(()=>{var e;
1for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=n.map(e=>e.trim());o.value(e,s,l),null==(i=t.current)||i.setAttribute(ar,s),a.current=s}),a}var ab=()=>{let[e,t]=f.useState(),r=ax(()=>new Map);return ag(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function aj({asChild:e,children:t},r){let n;return e&&f.isValidElement(t)?f.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var aw={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},aN=e.i(72920),aC=e.i(76639),ak=e.i(50594);function aS({className:e,...t}){return(0,d.jsx)(am,{"data-slot":"command",className:(0,eQ.cn)("bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1",e),...t})}function aE({title:e="Command Palette",description:t="Search for a command to run...",children:r,className:n,showCloseButton:a=!1,...o}){return(0,d.jsxs)(aC.Dialog,{...o,children:[(0,d.jsxs)(aC.DialogHeader,{className:"sr-only",children:[(0,d.jsx)(aC.DialogTitle,{children:e}),(0,d.jsx)(aC.DialogDescription,{children:t})]}),(0,d.jsx)(aC.DialogContent,{className:(0,eQ.cn)("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",n),showCloseButton:a,children:r})]})}function aP({className:e,...t}){return(0,d.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,d.jsxs)(ak.InputGroup,{className:"border-input/30 bg-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,d.jsx)(am.Input,{"data-slot":"command-input",className:(0,eQ.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t}),(0,d.jsx)(ak.InputGroupAddon,{children:(0,d.jsx)(tv.SearchIcon,{className:"size-4 shrink-0 opacity-50"})})]})})}function aR({className:e,...t}){return(0,d.jsx)(am.List,{"data-slot":"command-list",className:(0,eQ.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...t})}function aM({className:e,...t}){return(0,d.jsx)(am.Empty,{"data-slot":"command-empty",className:(0,eQ.cn)("py-6 text-center text-sm",e),...t})}function aI({className:e,...t}){return(0,d.jsx)(am.Group,{"data-slot":"command-group",className:(0,eQ.cn)("text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium",e),...t})}function aO({className:e,...t}){return(0,d.jsx)(am.Separator,{"data-slot":"command-separator",className:(0,eQ.cn)("bg-border -mx-1 h-px",e),...t})}function aT({className:e,children:t,...r}){return(0,d.jsxs)(am.Item,{"data-slot":"command-item",className:(0,eQ.cn)("group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[t,(0,d.jsx)(aN.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function aA({className:e,...t}){return(0,d.jsx)("span",{"data-slot":"command-shortcut",className:(0,eQ.cn)("text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-xs tracking-widest",e),...t})}var aD=e.i(11365),aD=aD,aF=e.i(61546);let aL=(0,tl.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),az=(0,tl.default)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);var aB=e.i(21699),aW=e.i(37150),a_=e.i(99284);let aH=(0,tl.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),aG=(0,tl.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),a$=(0,tl.default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),aV=(0,tl.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),aU=(0,tl.default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),aq=(0,tl.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),aK=(0,tl.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),aY=(0,tl.default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}
1],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),aJ=(0,tl.default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),aZ=(0,tl.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),aX=[{title:"Shopping",data:[{icon:aD.default,name:"Home",href:"/"},{icon:tr.ShoppingBagIcon,name:"Shop",href:"/shop"},{icon:az,name:"Categories",href:"/category"},{icon:ty.ShoppingCartIcon,name:"Cart",href:"/checkout"},{icon:aB.CreditCardIcon,name:"Checkout",href:"/checkout"},{icon:aK,name:"Compare Products",href:"/compare"}]},{title:"Account",data:[{icon:ts.UserIcon,name:"Account",href:"/account"},{icon:aF.ClipboardListIcon,name:"Orders",href:"/account/orders"},{icon:ti.PackageIcon,name:"Order Details",href:"/account/orders/details"},{icon:tb.StarIcon,name:"Wishlist",href:"/account/wishlist"},{icon:a_.MapPinIcon,name:"Addresses",href:"/account/addresses"},{icon:aB.CreditCardIcon,name:"Payments",href:"/account/payments"},{icon:aW.GiftIcon,name:"Gift Cards",href:"/account/gift-cards"},{icon:aG,name:"Returns & Exchanges",href:"/account/exchange-return"},{icon:aq,name:"Return Refunds",href:"/account/return-refunds"},{icon:aH,name:"Newsletter",href:"/account/email-newsletter"},{icon:a$,name:"Support Tickets",href:"/account/support-ticket"},{icon:ti.PackageIcon,name:"Track Order",href:"/account/track-order"},{icon:aB.CreditCardIcon,name:"Wallet",href:"/account/wallet"}]},{title:"Content & Info",data:[{icon:a$,name:"FAQ",href:"/faq"},{icon:aL,name:"Help Center",href:"/help"},{icon:aV,name:"Privacy Policy",href:"/privacy-policy"},{icon:aV,name:"Return Policy",href:"/return-policy"},{icon:tf.PhoneIcon,name:"Contact Us",href:"/contact"}]},{title:"Product & Review",data:[{icon:aU,name:"Write Review",href:"/write-review"}]},{title:"Authentication",data:[{icon:aY,name:"Login",href:"/login"},{icon:aJ,name:"Register",href:"/register"},{icon:aZ,name:"Forgot Password",href:"/forgot-password"},{icon:aZ,name:"Reset Password",href:"/reset-password"},{icon:aZ,name:"Two Factor Authentication",href:"/two-factor-auth"},{icon:aV,name:"Verify Email",href:"/verify-email"}]}],aQ=()=>{let[e,t]=(0,f.useState)(!1),[r,n]=(0,f.useState)(""),a=(0,tx.useRouter)(),o=(0,f.useCallback)(e=>{t(!1),n(""),e()},[]);return(0,f.useEffect)(()=>{let e=e=>{("k"===e.key&&(e.metaKey||e.ctrlKey)||"/"===e.key)&&(e.target instanceof HTMLElement&&e.target.isContentEditable||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||(e.preventDefault(),t(e=>!e)))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(g.Button,{variant:"outline",className:"text-muted-foreground hidden h-9 w-62.5 justify-between gap-2 rounded-md font-normal lg:flex",onClick:()=>t(!0),children:[(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)(tv.SearchIcon,{className:"size-4"}),(0,d.jsx)("span",{children:"Search products..."})]}),(0,d.jsx)(aA,{className:"text-xs",children:"⌘K"})]}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"icon-lg",className:"lg:hidden",onClick:()=>t(!0),children:[(0,d.jsx)(tv.SearchIcon,{className:"size-5.5"}),(0,d.jsx)("span",{className:"sr-only",children:"Search"})]}),(0,d.jsx)(aE,{open:e,onOpenChange:e=>{t(e),e||n("")},children:(0,d.jsxs)(aS,{className:"**:[[cmdk-group-heading]]:text-muted-foreground w-full max-w-lg **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-input-wrapper]_svg]:h-5 **:[[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]_svg]:h-5 **:[[cmdk-item]_svg]:w-5 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3",filter:(e,t)=>(t=t.toLowerCase(),(e=e.toLowerCase())===t)?2:1.5*!!e.includes(t),children:[(0,d.jsx)(aP,{placeholder:"Search products, pages...",value:r,onValueChange:n}),(0,d.jsxs)(aR,{children:[(0,d.jsx)(aM,{children:"No results found."}),r?aX.map((e,t)=>(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)(aI,{heading:e.title,children:e.data.map((e,t)=>(0,d.jsxs)(aT,{onSelect:()=>o(()=>{e.openInNewTab?window.open(e.href,"_blank","noopener,noreferrer"):a.push(e.href)}),children:[(0,d.jsx)(e.icon,{}),(0,d.jsx)("span",{children:e.name}),e.shortcut&&(0,d.jsx)(aA,{children:e.shortcut})]},t))}),t!==aX.length-1&&(0,d.jsx)(aO,{})]},t)):(0,d.jsxs)(aI,{heading:"Suggestions",children:[(0,d.jsxs)(aT,{onSelect:()=>o(()=>a.push("/")),children:[(0,d.jsx)(tj.HouseIcon,{className:"size-4"}),(0,d.jsx)("span",{children:"Home"})]}),(0,d.jsxs)(aT,{onSelect:()=>o(()=>a.push("/shop")),children:[(0,d.jsx)(ty.ShoppingCartIcon,{className:"size-4"}),(0,d.jsx)("span",{children:"Shop"})]}),(0,d.jsxs)(aT,{onSelect:()=>o(()=>a.push("/account/wishlist")),children:[(0,d.jsx)(tb.StarIcon,{className:"size-4"}),(0,d.jsx)("span",{children:"Wishlist"})]}),(0,d.jsxs)(aT,{onSelect:()=>o(()=>a.push("/account")),children:[(0,d.jsx)(ts.UserIcon,{className:"size-4"}),(0,d.jsx)("span",{children:"Profile"})]}),(0,d.jsxs)(aT,{onSelect:()=>o(()=>a.push("/checkout")),children:[(0,d.jsx)(tr.ShoppingBagIcon,{className:"size-4"}),(0,d.jsx)("span",{children:"Checkout"})]})]})]})]})})]})};var a0=e.i(55146);let a1=({defaultOpen:e,align:t,trigger:r})=>{let[n,a]=(0,f.useState)("english");return(0,d.jsxs)(a0.DropdownMenu,{defaultOpen:e,children:[(0,d.jsx)(a0.DropdownMenuTrigger,{render:r}),(0,d.jsx)(a0.DropdownMenuContent,{className:"w-50",align:t||"end",children:(0,d.jsxs)(a0.DropdownMenuRadioGroup,{value:n,onValueChange:a,children:[(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"english",children:"English"}),(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"german",children:"Deutsch"}),(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"spanish",children:"Española"}),(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"portuguese",children:"Português"}),(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"korean",children:"한국인"})]})})]})},a2=({defaultOpen:e,align:t,trigger:r})=>{let[n,a]=(0,f.useState)("usd");return(0,d.jsxs)(a0.DropdownMenu,{defaultOpen:e,children:[(0,d.jsx)(a0.DropdownMenuTrigger,{render:r}),(0,d.jsx)(a0.DropdownMenuContent,{className:"w-40",align:t||"end",children:(0,d.jsxs)(a0.DropdownMenuRadioGroup,{value:n,onValueChange:a,children:[(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"usd",children:"USD"}),(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"eur",children:"EUR"}),(0,d.jsx)(a0.DropdownMenuRadioItem,{value:"gbp",children:"GBP"})]})})]})},a4=(0,tl.default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var a5=e.i(27798);let a3=[{title:"My Profile",href:"/account",icon:ts.UserIcon},{title:"My Wishlist",href:"/account/wishlist",icon:e8.HeartIcon},{title:"My Orders",href:"/account/orders",icon:ti.PackageIcon}],a6=[{title:"Gift Cards",href:"/account/gift-cards",icon:aW.GiftIcon},{title:"Return & Refunds",href:"/account/return-refunds",icon:a4}],a9=({trigger:e,defaultOpen:t,align:r="end"})=>(0,d.jsxs)(a0.DropdownMenu,{defaultOpen:t,children:[(0,d.jsx)(a0.DropdownMenuTrigger,{render:e}),(0,d.jsxs)(a0.DropdownMenuContent,{className:"w-72",align:r||"end",children:[(0,d.jsx)(a0.DropdownMenuGroup,{children:(0,d.jsxs)(a0.DropdownMenuLabel,{className:"flex items-center gap-3 px-3 py-2.5 font-normal",render:(0,d.jsx)(h.default,{href:"/account"}),children:[(0,d.jsxs)(x.Avatar,{size:"lg",className:"rounded-lg",children:[(0,d.jsx)(x.AvatarImage,{src:"https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-1.png",alt:"Cristofer Torff",className:"rounded-lg"}),(0,d.jsx)(x.AvatarFallback,{children:"CT"})]}),(0,d.jsxs)("div",{className:"flex flex-1 flex-col items-start",children:[(0,d.jsx)("span",{className:"text-foreground font-semibold",children:"Cristofer Torff"}),(0,d.jsx)("span",{className:"text-muted-foreground text-sm",children:"[email protected]"})]})]})}),(0,d.jsx)(a0.DropdownMenuSeparator,{}),(0,d.jsx)(a0.DropdownMenuGroup,{children:a3.map(e=>(0,d.jsxs)(a0.DropdownMenuItem,{render:(0,d.jsx)(h.default,{href:e.href}),className:"gap-2 px-3 py-2.5 text-base",children:[(0,d.jsx)(e.icon,{className:"text-foreground size-5"}),(0,d.jsx)("span",{children:e.title})]},e.title))}),(0,d.jsx)(a0.DropdownMenuSeparator,{}),(0,d.jsx)(a0.DropdownMenuGroup,{children:a6.map(e=>(0,d.jsxs)(a0.DropdownMenuItem,{render:(0,d.jsx)(h.default,{href:e.href}),className:"gap-2 px-3 py-2.5 text-base",children:[(0,d.jsx)(e.icon,{className:"text-foreground size-5"}),(0,d.jsx)("span",{children:e.title})]},e.title))}),(0,d.jsx)(a0.DropdownMenuSeparator,{}),(0,d.jsx)(a0.DropdownMenuGroup,{children:(0,d.jsxs)(a0.DropdownMenuItem,{variant:"destructive",render:(0,d.jsx)(h.default,{href:"/login"}),className:"gap-2 px-3 py-2.5 text-base",children:[(0,d.jsx)(a5.LogOutIcon,{className:"size-5"}),(0,d.jsx)("span",{children:"Logout"})]})})]})]});var a8="u">typeof window;let a7=function(e,t){var r=(0,f.useState)(void 0!==t?t:!!a8&&window.matchMedia(e).matches),n=r[0],a=r[1];return(0,f.useEffect)(function(){var t=!0,r=window.matchMedia(e),n=function(){t&&a(!!r.matches)};return r.addEventListener("change",n),a(r.matches),function(){t=!1,r.removeEventListener("change",n)}},[e]),n};var oe=e.i(76120);let ot=(0,tl.default)("circle-small",[["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}]]);var or=e.i(7308),on=e.i(80376),oa=e.i(21392);let oo=({trigger:e,logoName:t,navigationData:r,logo:n,footer:a})=>{let[o,i]=(0,f.useState)(!1),s=a7("(max-width: 1279px)",!1),l=()=>{i(!1)};return(0,d.jsxs)(on.Sheet,{open:o&&s,onOpenChange:i,children:[(0,d.jsx)(on.SheetTrigger,{render:e}),(0,d.jsxs)(on.SheetContent,{side:"left",className:"flex w-75 flex-col gap-0 p-0",children:[(0,d.jsxs)(on.SheetHeader,{className:"p-4",children:[(0,d.jsx)(on.SheetTitle,{hidden:!0}),(0,d.jsx)(on.SheetDescription,{hidden:!0}),(0,d.jsx)(h.default,{href:"/",onClick:l,className:"self-start",children:(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[n??(0,d.jsx)(oa.default,{className:"size-8.5"}),(0,d.jsx)("span",{className:"text-xl font-semibold",children:t})]})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-y-auto py-2",children:r.filter(e=>"Pages"===e.title).map(e=>e.href?(0,d.jsxs)(h.default,{href:e.href,className:"hover:bg-accent flex items-center gap-2 px-4 py-2 text-sm",onClick:l,children:[e.icon,e.title]},e.title):e.columns?(0,d.jsx)("div",{children:e.columns.flatMap(e=>e.groups).map((e,t)=>e.href&&!e.items.length?(0,d.jsx)(h.default,{href:e.href,className:"hover:bg-accent flex items-center gap-2 px-4 py-2 text-sm font-semibold",onClick:l,children:e.title},e.title??t):e.title?(0,d.jsxs)(or.Collapsible,{className:"w-full",children:[(0,d.jsxs)(or.CollapsibleTrigger,{className:"hover:bg-accent group flex w-full items-center justify-between px-4 py-2 text-sm font-semibold",children:[e.title,(0,d.jsx)(oe.ChevronRightIcon,{className:"size-4 shrink-0 transition-transform duration-300 group-data-panel-open:rotate-90"})]}),(0,d.jsx)(or.CollapsibleContent,{className:"h-(--collapsible-panel-height) overflow-hidden transition-all duration-300 data-ending-style:h-0 data-starting-style:h-0",children:e.items.map(e=>(0,d.jsxs)(h.default,{href:e.href,className:"text-muted-foreground hover:text-foreground flex items-center gap-2 px-4 py-2 text-sm",onClick:l,children:[(0,d.jsx)(ot,{className:"ml-2 size-4"}),e.title]},e.title))})]},e.title??t):(0,d.jsx)("div",{className:"py-1",children:e.items.map(e=>(0,d.jsxs)(h.default,{href:e.href,className:"text-muted-foreground hover:text-foreground flex items-center gap-2 px-4 py-2 text-sm",onClick:l,children:[(0,d.jsx)(ot,{className:"ml-2 size-4"}),e.title]},e.title))},t))},e.title):(0,d.jsxs)(or.Collapsible,{className:"w-full",children:[(0,d.jsxs)(or.CollapsibleTrigger,{className:"hover:bg-accent group flex w-full items-center justify-between px-4 py-2 text-sm",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[e.icon,e.title]}),(0,d.jsx)(oe.ChevronRightIcon,{className:"size-4 shrink-0 transition-transform duration-300 group-data-panel-open:rotate-90"})]}),(0,d.jsx)(or.CollapsibleContent,{className:"h-(--collapsible-panel-height) overflow-hidden transition-all duration-300 data-ending-style:h-0 data-starting-style:h-0",children:e.groups?e.groups.map((e,t)=>(0,d.jsxs)("div",{className:"py-1",children:[e.title&&(0,d.jsx)("p",{className:"text-muted-foreground px-6 py-1.5 text-xs font-medium",children:e.title}),e.items.map(e=>(0,d.jsxs)(h.default,{href:e.href,className:"hover:bg-accent flex items-center gap-2 px-4 py-2 text-sm",onClick:l,children:[(0,d.jsx)(ot,{className:"ml-2 size-4"}),e.title]},e.title))]},e.title??t)):e.items?.map(e=>(0,d.jsxs)(h.default,{href:e.href,className:"hover:bg-accent flex items-center gap-2 px-4 py-2 text-sm",onClick:l,children:[(0,d.jsx)(ot,{className:"ml-2 size-4"}),e.title]},e.title))})]},e.title))}),a&&(0,d.jsx)("div",{className:"border-t p-4",children:a})]})]})};var oi=e.i(59684);let os=()=>(0,d.jsx)("div",{className:"w-full shrink-0 lg:w-80",children:(0,d.jsxs)("div",{className:"from-primary/20 flex h-full flex-col items-center justify-between rounded-md bg-linear-to-b from-0% via-neutral-50 via-50% to-neutral-100 to-100% p-4 pt-10 text-center",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("h3",{className:"text-foreground mb-2.5 text-2xl font-bold",children:["Ultimate ",(0,d.jsx)("span",{className:"text-green-600 dark:text-green-400",children:"eCommerce"})]}),(0,d.jsx)("h4",{className:"text-foreground mb-4 text-2xl font-semibold",children:"Template Pages"}),(0,d.jsx)("p",{className:"text-muted-foreground dark:text-primary-foreground mb-6 text-lg",children:"Modern & customizable."})]}),(0,d.jsxs)("div",{className:"relative h-48 w-full",children:[(0,d.jsx)("img",{src:"/images/mega-menu/image-01.webp",alt:"Template 1",className:"absolute bottom-2 left-2 h-40 w-28 -rotate-7 rounded-xl border-4 border-neutral-200 object-cover shadow-sm"}),(0,d.jsx)("img",{src:"/images/mega-menu/image-03.webp",alt:"Template 3",className:"absolute right-2 bottom-2 h-40 w-28 rotate-7 rounded-xl border-4 border-neutral-200 object-cover shadow-sm"}),(0,d.jsx)("img",{src:"/images/mega-menu/image-02.webp",alt:"Template 2",className:"absolute bottom-0 left-1/2 z-1 h-48 w-36 -translate-x-1/2 roun
1ded-xl border-4 border-neutral-200 object-cover shadow-lg"})]})]})}),ol=({columns:e,promotionalCard:t,columnCount:r=4,onNavigate:n})=>(0,d.jsx)(oi.ScrollArea,{className:"max-h-113 w-full max-w-265 overflow-hidden",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 p-4 lg:flex-row",children:[(0,d.jsx)("div",{className:`grid gap-8 ${3===r?"grid-cols-2 lg:grid-cols-3":"grid-cols-2 lg:grid-cols-4"}`,children:e.map((e,t)=>(0,d.jsx)("div",{className:"space-y-2",children:e.groups.map((e,t)=>(0,d.jsxs)("div",{className:"space-y-2 p-2",children:[e.title&&(e.href&&!e.items.length?(0,d.jsx)(e9,{render:(0,d.jsx)(h.default,{href:e.href,onClick:n}),className:"text-foreground hover:text-primary p-0 text-sm font-medium transition-colors hover:bg-transparent focus:bg-transparent",children:e.title}):(0,d.jsx)("p",{className:"text-foreground text-sm font-medium",children:e.title})),e.items.length>0&&(0,d.jsx)("ul",{className:"grid gap-2",children:e.items.map(e=>(0,d.jsx)("li",{children:(0,d.jsx)(e9,{render:(0,d.jsx)(h.default,{href:e.href,onClick:n}),className:"text-muted-foreground hover:text-foreground p-0 text-sm leading-5 transition-colors hover:bg-transparent focus:bg-transparent",children:e.title})},e.title))})]},e.title??t))},t))}),t||(0,d.jsx)(os,{})]})});var oc=e.i(29462),ou=e.i(72334),od=e.i(23211);let of=({images:e})=>{let[t,r]=(0,f.useState)(),[n,a]=(0,f.useState)(0);(0,f.useEffect)(()=>{if(!t)return;let e=()=>a(t.selectedScrollSnap());return e(),t.on("select",e),()=>{t.off("select",e)}},[t]);let o=(n+1)%e.length;return(0,d.jsx)(od.Carousel,{opts:{loop:!0,align:"start"},plugins:[(0,ou.default)({delay:2200,stopOnInteraction:!1})],setApi:r,className:"w-full",children:(0,d.jsx)(od.CarouselContent,{className:"-ml-1 py-1 pr-0.75",children:e.map((e,t)=>(0,d.jsx)(od.CarouselItem,{className:"flex basis-1/3 items-center justify-center",children:(0,d.jsx)(h.default,{href:"/shop",className:"flex h-40 w-24 items-center justify-center",children:(0,d.jsx)("img",{src:e,alt:`Product ${t+1}`,className:(0,eQ.cn)("ring-primary/10 w-24 rounded-xl object-cover ring-4 transition-all duration-500",t===o?"h-40":"h-28")})})},e))})})},oh=()=>(0,d.jsx)("div",{className:"w-full shrink-0 overflow-hidden lg:w-87.5",children:(0,d.jsxs)("div",{className:"from-0 flex h-104 flex-col items-center justify-between rounded-lg bg-linear-to-b from-green-600/15 via-green-500/10 via-50% to-green-300/10 to-100% p-4 pt-10 text-center",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("h3",{className:"text-foreground text-2xl font-bold",children:["Enjoy Flat ",(0,d.jsx)("span",{className:"text-destructive",children:"50% OFF"})]}),(0,d.jsx)("h4",{className:"text-foreground mb-2.5 text-2xl font-bold",children:"Across All Categories"}),(0,d.jsx)("p",{className:"mb-2 text-lg",children:"Grab Your Favorites Now."}),(0,d.jsxs)(g.Button,{size:"lg",className:"group mx-auto flex items-center",children:["Shop Now",(0,d.jsx)(oc.ArrowRightIcon,{className:"transition-transform duration-300 group-hover:translate-x-1/4"})]})]}),(0,d.jsx)(of,{images:["/images/mega-menu/image-06.webp","/images/mega-menu/image-04.webp","/images/mega-menu/image-08.webp","/images/mega-menu/image-05.webp","/images/mega-menu/image-07.webp"]})]})}),om=()=>{let[e,t]=(0,f.useState)({days:1,hours:12,minutes:45,seconds:2});(0,f.useEffect)(()=>{let e=setInterval(()=>{t(e=>{let{days:t,hours:r,minutes:n,seconds:a}=e;return--a<0&&(a=59,n--),n<0&&(n=59,r--),r<0&&(r=23,t--),t<0&&(t=0,r=0,n=0,a=0),{days:t,hours:r,minutes:n,seconds:a}})},1e3);return()=>clearInterval(e)},[]);let r=e=>String(e).padStart(2,"0");return(0,d.jsx)("div",{className:"w-full shrink-0 lg:w-87.5",children:(0,d.jsxs)("div",{className:"flex h-104 flex-col items-center justify-between rounded-lg bg-linear-to-b from-sky-600/20 via-sky-200/10 to-sky-300/10 p-4 pt-8 text-center",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"text-foreground text-2xl font-bold",children:"Big Savings on Today's"}),(0,d.jsx)("h4",{className:"text-foreground mb-4 text-2xl font-bold",children:"Mega Deals"}),(0,d.jsx)("p",{className:"text-muted-foreground dark:text-primary mb-2 text-xs font-medium",children:"Offers end today:"}),(0,d.jsxs)("div",{className:"mb-6 flex justify-center gap-4",children:[(0,d.jsxs)("div",{className:"flex size-12.5 flex-col items-center gap-1",children:[(0,d.jsx)("div",{className:"flex size-7.5 items-center justify-center rounded-sm bg-white p-1.5",children:(0,d.jsx)("span",{className:"text-foreground dark:text-primary-foreground text-xs font-medium",children:r(e.days)})}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"Day"})]}),(0,d.jsxs)("div",{className:"flex size-12.5 flex-col items-center gap-1",children:[(0,d.jsx)("div",{className:"flex size-7.5 items-center justify-center rounded-sm bg-white p-1.5",children:(0,d.jsx)("span",{className:"text-foreground dark:text-primary-foreground text-xs font-medium",children:r(e.hours)})}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"Hours"})]}),(0,d.jsxs)("div",{className:"flex size-12.5 flex-col items-center gap-1",children:[(0,d.jsx)("div",{className:"flex size-7.5 items-center justify-center rounded-sm bg-white p-1.5",children:(0,d.jsx)("span",{className:"text-foreground dark:text-primary-foreground text-xs font-medium",children:r(e.minutes)})}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"Min"})]}),(0,d.jsxs)("div",{className:"flex size-12.5 flex-col items-center gap-1",children:[(0,d.jsx)("div",{className:"flex size-7.5 items-center justify-center rounded-sm bg-white p-1.5",children:(0,d.jsx)("span",{className:"text-foreground dark:text-primary-foreground text-xs font-medium",children:r(e.seconds)})}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"Sec"})]})]})]}),(0,d.jsx)(of,{images:["/images/mega-menu/image-07.webp","/images/mega-menu/image-05.webp","/images/mega-menu/image-06.webp","/images/mega-menu/image-04.webp","/images/mega-menu/image-08.webp"]})]})})},op=()=>(0,d.jsx)("div",{className:"w-full shrink-0 overflow-hidden lg:w-87.5",children:(0,d.jsxs)("div",{className:"from-0 flex h-104 flex-col items-center justify-between rounded-lg bg-linear-to-b from-amber-600/15 via-amber-100/10 via-50% to-amber-300/10 to-100% p-4 pt-10 text-center",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("h3",{className:"text-foreground text-2xl font-bold",children:["Enjoy Flat ",(0,d.jsx)("span",{className:"text-destructive",children:"50% OFF"})]}),(0,d.jsx)("h4",{className:"text-foreground mb-2.5 text-2xl font-bold",children:"Across All Categories"}),(0,d.jsx)("p",{className:"mb-2 text-lg",children:"Grab Your Favorites Now."}),(0,d.jsxs)(g.Button,{size:"lg",className:"group mx-auto flex items-center",children:["Shop Now",(0,d.jsx)(oc.ArrowRightIcon,{className:"transition-transform duration-300 group-hover:translate-x-1/4"})]})]}),(0,d.jsx)(of,{images:["/images/mega-menu/image-06.webp","/images/mega-menu/image-07.webp","/images/mega-menu/image-08.webp","/images/mega-menu/image-04.webp","/images/mega-menu/image-05.webp"]})]})});var og=e.i(48317),ox=e.i(9094);let ov=(0,tl.default)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]),oy=(0,tl.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]),ob=(0,tl.default)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);e.i(86192);var oj=e.i(43087),ow=e.i(10204),oN=e.i(37822),oC=e.i(29288),ok=e.i(67489),oS=e.i(46798),oE=e.i(52012);let oP=({id:e,label:t,value:r,onValueChange:n})=>(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsx)(ow.Label,{htmlFor:e,children:t}),(0,d.jsxs)(ok.Select,{id:e,value:r,onValueChange:e=>n(e),children:[(0,d.jsx)(ok.SelectTrigger,{className:"input-sm w-full",children:(0,d.jsx)("span",{className:"flex-1 text-left",style:{fontFamily:`var(${oE.FONT_CONFIG[r]?.variable??"--font-geist-sans"})`},children:oE.FONT_CONFIG[r]?.label??"Geist"})}),(0,d.jsx)(ok.SelectContent,{alignItemWithTrigger:!1,className:"p-1",children:oE.FONT_GROUPS.map(({key:e,label:t})=>{let r=Object.entries(oE.FONT_CONFIG).filter(([,t])=>t.group===e);return 0===r.length?null:(0,d.jsxs)(ok.SelectGroup,{children:[(0,d.jsx)(ok.SelectLabel,{children:t}),r.map(([e,t])=>(0,d.jsx)(ok.SelectItem,{value:e,className:"[&>div]:items-center",children:(0,d.jsx)("span",{style:{fontFamily:`var(${t.variable})`},children:t.label})},e))]},e)})})]})]});var oR=e.i(4738),oM=e.i(31158);let oI=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}],oO=[{value:"compact",label:"Compact"},{value:"full",label:"Full"}],oT=[{value:"sm",label:"SM"},{value:"md",label:"MD"},{value:"lg",label:"LG"}],oA=[{value:"none",tooltip:"0rem"},{value:"sm",tooltip:"0.45rem"},{value:"md",tooltip:"0.625rem"},{value:"lg",tooltip:"0.875rem"}],oD={light:"oklch(0.205 0 0)",dark:"oklch(0.922 0 0)"},oF=()=>{let{settings:e,updateSettings:t}=(0,oR.useSettings)(),{resolvedTheme:r}=(0,og.useTheme)(),n="dark"===r?"dark":"light",a=Object.keys(oj.initialSettings).some(t=>e[t]!==oj.initialSettings[t]),o="default"===e.themePreset?null:oM.themePresets[e.themePreset],i=o?.styles[n].primary??oD[n],s=o?.label??"Default";return(0,d.jsxs)(oN.Popover,{children:[(0,d.jsx)(oN.PopoverTrigger,{render:(0,d.jsx)(g.Button,{variant:"ghost",size:"icon"}),children:(0,d.jsx)(oy,{className:"size-5.5"})}),(0,d.jsx)(ox.Popover.Portal,{children:(0,d.jsx)(ox.Popover.Positioner,{align:"end",sideOffset:8,positionMethod:"fixed",className:"isolate z-50",children:(0,d.jsxs)(ox.Popover.Popup,{className:"bg-popover text-popover-foreground ring-foreground
1/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative z-50 flex max-h-[calc(100vh-10rem)] w-72 origin-(--transform-origin) flex-col gap-5 overflow-y-auto rounded-md px-0 py-3 text-sm shadow-md ring-1 outline-hidden duration-100",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h3",{className:"text-lg font-medium",children:"Theme Customizer"}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(oS.Tooltip,{children:[(0,d.jsx)(oS.TooltipTrigger,{render:(0,d.jsx)(g.Button,{size:"icon-sm",variant:"ghost"}),children:(0,d.jsx)(a$,{})}),(0,d.jsx)(oS.TooltipContent,{side:"bottom",className:"max-w-62",children:(0,d.jsxs)("p",{children:["Refer to the"," ",(0,d.jsx)(h.default,{href:"https://shadcnstudio.com/docs/documentation-admin/customization#theme-config",target:"_blank",className:"inline font-medium underline",children:"documentation"})," ","for detailed theme customization guidance."]})})]}),(0,d.jsxs)(g.Button,{size:"icon-sm",variant:"ghost",className:"relative",onClick:()=>t(oj.initialSettings),children:[(0,d.jsx)(ob,{}),a&&(0,d.jsx)("span",{className:"ring-popover absolute top-1.5 right-1.5 size-1 rounded-full bg-red-500 ring-2 dark:bg-red-400",children:(0,d.jsx)("span",{className:"sr-only",children:"You have unsaved theme changes"})})]})]})]}),(0,d.jsx)("p",{className:"text-muted-foreground text-sm",children:"Customize your theme to your liking."})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsx)(ow.Label,{htmlFor:"theme-preset",children:"Theme Preset"}),(0,d.jsxs)(ok.Select,{id:"theme-preset",value:e.themePreset,onValueChange:e=>t({themePreset:e}),children:[(0,d.jsxs)(ok.SelectTrigger,{className:"input-sm w-full",children:[(0,d.jsx)("span",{className:"size-2.5 shrink-0 rounded-full",style:{background:i}}),(0,d.jsx)("span",{className:"flex-1 text-left",children:s})]}),(0,d.jsxs)(ok.SelectContent,{alignItemWithTrigger:!1,className:"p-1",children:[(0,d.jsxs)(ok.SelectItem,{value:"default",className:"[&>div]:items-center",children:[(0,d.jsx)("span",{className:"size-2 shrink-0 rounded-full",style:{background:oD[n]}}),"Default"]}),Object.entries(oM.themePresets).map(([e,t])=>(0,d.jsxs)(ok.SelectItem,{value:e,className:"[&>div]:items-center",children:[(0,d.jsx)("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.styles[n].primary}}),t.label]},e))]})]})]}),(0,d.jsx)(oP,{id:"heading-font",label:"Heading Font",value:e.headingFont,onValueChange:e=>t({headingFont:e})}),(0,d.jsx)(oP,{id:"body-font",label:"Body Font",value:e.bodyFont,onValueChange:e=>t({bodyFont:e})}),(0,d.jsx)(oP,{id:"mono-font",label:"Monospace Font",value:e.monoFont,onValueChange:e=>t({monoFont:e})}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsx)(ow.Label,{htmlFor:"color-mode",children:"Color Mode"}),(0,d.jsx)(oC.RadioGroup,{id:"color-mode",className:"grid grid-cols-3 gap-0 rounded-md",value:e.mode,onValueChange:e=>t({mode:e}),children:oI.map(({value:e,label:t})=>(0,d.jsxs)(ow.Label,{htmlFor:`mode-${e}`,className:"has-data-checked:bg-accent relative flex flex-col items-center gap-1 border px-2 py-2 text-center shadow-xs transition-[color,box-shadow] outline-none not-last:border-r-0 first:rounded-l-md last:rounded-r-md",children:[(0,d.jsx)(oC.RadioGroupItem,{id:`mode-${e}`,value:e,className:"sr-only absolute inset-0","aria-label":`mode-${e}`}),(0,d.jsx)("p",{className:"text-foreground text-sm leading-none font-medium",children:t})]},e))})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsx)(ow.Label,{htmlFor:"radius",children:"Radius"}),(0,d.jsx)(oC.RadioGroup,{id:"radius",className:"grid grid-cols-4 gap-0 rounded-md",value:e.radiu
1s,onValueChange:e=>t({radius:e}),children:oA.map(({value:e,tooltip:t})=>(0,d.jsxs)(oS.Tooltip,{children:[(0,d.jsxs)(oS.TooltipTrigger,{render:(0,d.jsx)(ow.Label,{htmlFor:`radius-${e}`,className:"has-data-checked:bg-accent relative flex flex-col items-center gap-3 border px-2 py-2 text-center shadow-xs transition-[color,box-shadow] outline-none not-last:border-r-0 first:rounded-l-md last:rounded-r-md"}),children:[(0,d.jsx)(oC.RadioGroupItem,{id:`radius-${e}`,value:e,className:"sr-only absolute inset-0","aria-label":`radius-${e}`}),"none"===e?(0,d.jsx)(ov,{className:"size-3.5"}):(0,d.jsx)("p",{className:"text-foreground text-sm leading-none font-medium",children:e.toUpperCase()})]}),(0,d.jsx)(oS.TooltipContent,{children:t})]},e))})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsx)(ow.Label,{htmlFor:"layout",children:"Content Layout"}),(0,d.jsx)(oC.RadioGroup,{id:"layout",className:"grid grid-cols-2 gap-0 rounded-md",value:e.layout,onValueChange:e=>t({layout:e}),children:oO.map(({value:e,label:t})=>(0,d.jsxs)(ow.Label,{htmlFor:`layout-${e}`,className:"has-data-checked:bg-accent relative flex flex-col items-center gap-3 border px-2 py-2 text-center shadow-xs transition-[color,box-shadow] outline-none not-last:border-r-0 first:rounded-l-md last:rounded-r-md",children:[(0,d.jsx)(oC.RadioGroupItem,{id:`layout-${e}`,value:e,className:"sr-only absolute inset-0","aria-label":`layout-${e}`}),(0,d.jsx)("p",{className:"text-foreground text-sm leading-none font-medium",children:t})]},e))})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,d.jsx)(ow.Label,{htmlFor:"scale",children:"Scale"}),(0,d.jsx)(oC.RadioGroup,{id:"scale",className:"grid grid-cols-3 gap-0 rounded-md",value:e.scale,onValueChange:e=>t({scale:e}),children:oT.map(e=>(0,d.jsxs)(ow.Label,{htmlFor:`scale-${e.value}`,className:"has-data-checked:bg-accent relative flex flex-col items-center gap-3 border px-2 py-2 text-center shadow-xs transition-[color,box-shadow] outline-none not-last:border-r-0 first:rounded-l-md last:rounded-r-md",children:[(0,d.jsx)(oC.RadioGroupItem,{id:`scale-${e.value}`,value:e.value,className:"sr-only absolute inset-0","aria-label":`scale-${e.value}`}),(0,d.jsx)("p",{className:"text-foreground text-sm leading-none font-medium",children:e.label})]},e.value))})]})]})})})]})};var oL=e.i(12892),oz=e.i(76182);let oB=(0,tl.default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),oW=(0,tl.default)("badge-dollar-sign",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]),o_="size-4 shrink-0",oH=[{title:"Pages",icon:(0,d.jsx)(oB,{className:o_}),columns:[{groups:[{title:"Main Page",items:[{title:"Home Page",href:"/"}]},{title:"Hero layout",items:[{title:"Hero layout 1",href:"/home/hero-layout-01"},{title:"Hero layout 2",href:"/home/hero-layout-02"}]},{title:"Product Listing",items:[{title:"Product Listing With Sidebar",href:"/shop"},{title:"Product Listing With Banner",href:"/product-list-with-banner"}]},{title:"Category Page",items:[{title:"Category Listing",href:"/category"}]}]},{groups:[{title:"Authentication",items:[{title:"Login",href:"/login"},{title:"Register",href:"/register"},{title:"Forgot Password",href:"/forgot-password"},{title:"Reset Password",href:"/reset-password"},{title:"Two Factor Authentication",href:"/two-factor-auth"},{title:"Verify Email",href:"/verify-email"}]},{title:"Product Details",items:[{title:"Product Detail Carousel view",href:"/product/boat-airdopes-138"},{title:"Product Detail Gallery View",href:"/product-detail-with-gallery-view"}]}]},{groups:[{title:"Profile Pages",items:[{title:"My Account",href:"/account"},{title:"My Wishlist",href:"/account/wishlist"},{title:"My Orders",href:"/account/orders"},{title:"Order Details",href:"/account/orders/details"},{title:"Track Order",href:"/account/track-order"},{title:"My Addresses",href:"/account/addresses"},{title:"Payment",href:"/account/payments"},{title:"Wallet",href:"/account/wallet"},{title:"Giftcards",href:"/account/gift-cards"},{title:"Return & Refunds",href:"/account/return-refunds"},{title:"Exchange & Returns",href:"/account/exchange-return"},{title:"Email Newsletter",href:"/account/email-newsletter"},{title:"Support Ticket",href:"/account/support-ticket"}]}]},{groups:[{title:"Checkout Pages",items:[{title:"Cart Page",href:"/checkout"},{title:"Address Page",href:"/checkout"},{title:"Payment Page",href:"/checkout"},{title:"Empty Cart",href:"/checkout"}]},{title:"Other Pages",items:[{title:"Compare Products",href:"/compare"}]}
1,{title:"Miscellaneous",items:[{title:"FAQ",href:"/faq"},{title:"Help",href:"/help"},{title:"Write Review",href:"/write-review"},{title:"Privacy Policy",href:"/privacy-policy"},{title:"Return Policy",href:"/return-policy"}]}]}]},{title:"Shops",icon:(0,d.jsx)(tr.ShoppingBagIcon,{className:o_}),columns:[{groups:[{title:"Topwear",items:[{title:"Casual Shirts",href:"/shop?category=Clothing"},{title:"T-Shirts",href:"/shop?category=Clothing"},{title:"Formal Shirts",href:"/shop?category=Clothing"},{title:"Jackets",href:"/shop?category=Clothing"},{title:"Rain Jackets",href:"/shop?category=Clothing"},{title:"Blazers & Coats",href:"/shop?category=Clothing"},{title:"Sweatshirts",href:"/shop?category=Clothing"},{title:"Suits",href:"/shop?category=Clothing"}]},{title:"Festive Wear",items:[{title:"Kurtas & Kurta Sets",href:"/shop?category=Clothing"},{title:"Shervanis",href:"/shop?category=Clothing"},{title:"Nehru Jackets",href:"/shop?category=Clothing"}]}]},{groups:[{title:"Bottomwear",items:[{title:"Jeans",href:"/shop?category=Clothing"},{title:"Casual Trousers",href:"/shop?category=Clothing"},{title:"Formal Trousers",href:"/shop?category=Clothing"},{title:"Shorts",href:"/shop?category=Clothing"},{title:"Track Pants",href:"/shop?category=Clothing"}]},{title:"Gadget",items:[{title:"Smart Wearables",href:"/shop?category=Electronics"},{title:"Headphones",href:"/shop?category=Electronics"},{title:"Speakers",href:"/shop?category=Electronics"},{title:"Fitness Gadgets",href:"/shop?category=Electronics"}]},{title:"Sunglasses & Frames",items:[],href:"/shop?category=Watches"},{title:"Watches",items:[],href:"/shop?category=Watches"}]},{groups:[{title:"Personal Care",items:[{title:"Cleansers",href:"/shop?category=Beauty+%26+Skincare"},{title:"Sunscreen",href:"/shop?category=Beauty+%26+Skincare"},{title:"Shampoo",href:"/shop?category=Beauty+%26+Skincare"},{title:"Face Masks",href:"/shop?category=Beauty+%26+Skincare"},{title:"Perfume/Cologne",href:"/shop?category=Beauty+%26+Skincare"},{title:"Makeup Remover",href:"/shop?category=Beauty+%26+Skincare"}]},{title:"Toys & Games",items:[{title:"Action Figures",href:"/shop?category=Toys+%26+Games"},{title:"Board Games",href:"/shop?category=Toys+%26+Games"},{title:"Outdoor Toys",href:"/shop?category=Toys+%26+Games"}]}]}]},{title:"Today's Deal",icon:(0,d.jsx)(oW,{className:o_}),columns:[{groups:[{title:"Topwear",items:[{title:"Casual Shirts",href:"/shop?category=Clothing"},{title:"T-Shirts",href:"/shop?category=Clothing"},{title:"Formal Shirts",href:"/shop?category=Clothing"},{title:"Jackets",href:"/shop?category=Clothing"},{title:"Rain Jackets",href:"/shop?category=Clothing"},{title:"Blazers & Coats",href:"/shop?category=Clothing"},{title:"Sweatshirts",href:"/shop?category=Clothing"},{title:"Suits",href:"/shop?category=Clothing"}]},{title:"Festive Wear",items:[{title:"Kurtas & Kurta Sets",href:"/shop?category=Clothing"},{title:"Shervanis",href:"/shop?category=Clothing"},{title:"Nehru Jackets",href:"/shop?category=Clothing"}]}]},{groups:[{title:"Bottomwear",items:[{title:"Jeans",href:"/shop?category=Clothing"},{title:"Casual Trousers",href:"/shop?category=Clothing"},{title:"Formal Trousers",href:"/shop?category=Clothing"},{title:"Shorts",href:"/shop?category=Clothing"},{title:"Track Pants",href:"/shop?category=Clothing"}]},{title:"Gadget",items:[{title:"Smart Wearables",href:"/shop?category=Electronics"},{title:"Headphones",href:"/shop?category=Electronics"},{title:"Speakers",href:"/shop?category=Electronics"},{title:"Fitness Gadgets",href:"/shop?category=Electronics"}]},{title:"Sunglasses & Frames",items:[],href:"/shop?category=Watches"},{title:"Watches",items:[],href:"/shop?category=Watches"}]},{groups:[{title:"Personal Care",items:[{title:"Cleansers",href:"/shop?category=Beauty+%26+Skincare"},{title:"Sunscreen",href:"/shop?category=Beauty+%26+Skincare"},{title:"Shampoo",href:"/shop?category=Beauty+%26+Skincare"},{title:"Face Masks",href:"/shop?category=Beauty+%26+Skincare"},{title:"Perfume/Cologne",href:"/shop?category=Beauty+%26+Skincare"},{title:"Makeup Remover",href:"/shop?category=Beauty+%26+Skincare"}]},{title:"Toys & Games",items:[{title:"Action Figures",href:"/shop?category=Toys+%26+Games"},{title:"Board Games",href:"/shop?category=Toys+%26+Games"},{title:"Outdoor Toys",href:"/shop?category=Toys+%26+Games"}]}]}]},{title:"New Arrivals",icon:(0,d.jsx)(oz.BoxIcon,{className:o_}),columns:[{groups:[{title:"Topwear",items:[{title:"Casual Shirts",href:"/shop?category=Clothing"},{title:"T-Shirts",href:"/shop?category=Clothing"},{title:"Formal Shirts",href:"/shop?category=Clothing"},{title:"Jackets",href:"/shop?category=Clothing"},{title:"Rain Jackets",href:"/shop?category=Clothing"},{title:"Blazers & Coats",href:"/shop?category=Clothing"},{title:"Sweatshirts",href:"/shop?category=Clothing"},{title:"Suits",href:"/shop?category=Clothing"}]},{title:"Festive Wear",items:[{title:"Kurtas & Kurta Sets",href:"/shop?category=Clothing"},{title:"Shervanis",href:"/shop?category=Clothing"},{title:"Nehru Jackets",href:"/shop?category=Clothing"}]}]},{groups:[{title:"Bottomwear",items:[{title:"Jeans",href:"/shop?category=Clothing"},{title:"Casual Trousers",href:"/shop?category=Clothing"},{title:"Formal Trousers",href:"/shop?category=Clothing"},{title:"Shorts",href:"/shop?category=Clothing"},{title:"Track Pants",href:"/shop?category=Clothing"}]},{title:"Gadget",items:[{title:"Smart Wearables",href:"/shop?category=Electronics"},{title:"Headphones",href:"/shop?category=Electronics"},{title:"Speakers",href:"/shop?category=Electronics"},{title:"Fitness Gadgets",href:"/shop?category=Electronics"}]},{title:"Sunglasses & Frames",items:[],href:"/shop?category=Watches"},{title:"Watches",items:[],href:"/shop?category=Watches"}]},{groups:[{title:"Personal Care",items:[{title:"Cleansers",href:"/shop?category=Beauty+%26+Skincare"},{title:"Sunscreen",href:"/shop?category=Beauty+%26+Skincare"},{title:"Shampoo",href:"/shop?category=Beauty+%26+Skincare"},{title:"Face Masks",href:"/shop?category=Beauty+%26+Skincare"},{title:"Perfume/Cologne",href:"/shop?category=Beauty+%26+Skincare"},{title:"Makeup Remover",href:"/shop?category=Beauty+%26+Skincare"}]},{title:"Toys & Games",items:[{title:"Action Figures",href:"/shop?category=Toys+%26+Games"},{title:"Board Games",href:"/shop?category=Toys+%26+Games"},{title:"Outdoor Toys",href:"/shop?category=Toys+%26+Games"}]}]}]}];var oG=e.i(62334),o$=e.i(14207);let oV="bg-transparent hover:bg-muted focus:bg-muted data-popup-open:bg-muted data-popup-open:text-foreground data-popup-open:hover:bg-muted data-open:bg-muted data-open:text-foreground data-open:hover:bg-muted",oU="gap-2 bg-transparent p-0 font-normal h-5 text-foreground hover:bg-transparent";e.s(["default",0,()=>{let[e,t]=(0,f.useState)(null),r=(0,f.useRef)(null),n=(0,oL.useUserStore)(e=>e.avatarUrl);return(0,f.useEffect)(()=>{let e=r.current;if(!e)return;let t=()=>document.documentElement.style.setProperty("--header-height",`${e.offsetHeight}px`);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),(0,d.jsxs)("header",{ref:r,className:"sticky top-0 z-50",children:[(0,d.jsx)(tp,{}),(0,d.jsx)("div",{className:"bg-muted hidden lg:block",children:(0,d.jsxs)(tg.default,{className:"flex items-center justify-between gap-4 py-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-4 text-sm font-medium whitespace-nowrap",children:[(0,d.jsx)(h.default,{href:"#",className:"opacity-80 transition-opacity duration-300 hover:opacity-100",children:"Shipping & Returns"}),(0,d.jsx)(h.default,{href:"#",className:"opacity-80 transition-opacity duration-300 hover:opacity-100",children:"Payment"}),(0,d.jsx)(h.default,{href:"#",className:"opacity-80 transition-opacity duration-300 hover:opacity-100",children:"Warranty"}),(0,d.jsx)(h.default,{href:"#",className:"opacity-80 transition-opacity duration-300 hover:opacity-100",children:"Location"}),(0,d.jsx)(h.default,{href:"#",className:"opacity-80 transition-opacity duration-300 hover:opacity-100",children:"Contact"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(a1,{trigger:(0,d.jsxs)(g.Button,{className:oU,children:[(0,d.jsx)("span",{children:"English"}),(0,d.jsx)(p.ChevronDownIcon,{className:"size-4"})]})}),(0,d.jsx)(a2,{trigger:(0,d.jsxs)(g.Button,{className:oU,children:[(0,d.jsx)("span",{children:"USD"}),(0,d.jsx)(p.ChevronDownIcon,{className:"size-4"})]})}),(0,d.jsx)("a",{href:"#",className:"dark:text-primary-foreground flex size-5 items-center justify-center rounded-sm bg-white",children:(0,d.jsx)(oG.default,{className:"size-3.5"})}),(0,d.jsx)("a",{href:"#",className:"dark:text-primary-foreground flex size-5 items-center justify-center rounded-sm bg-white",children:(0,d.jsx)(o$.default,{className:"size-3.5"})})]})]})}),(0,d.jsx)("div",{className:"bg-card border-b",children:(0,d.jsxs)(tg.default,{className:"flex items-center justify-between gap-10 py-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-10",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(oo,{logoName:"Shopix",logo:(0,d.jsx)(oa.default,{className:"size-8"}),navigationData:oH,trigger:(0,d.jsxs)(g.Button,{variant:"outline",size:"icon-lg",className:"rounded-md xl:hidden",children:[(0,d.jsx)(m.MenuIcon,{}),(0,d.jsx)("span",{className:"sr-only",children:"Menu"})]})}),(0,d.jsxs)(h.default,{href:"/",className:"flex items-center gap-2.5",children:[(0,d.jsx)(oa.default,{className:"text-primary size-8"}),(0,d.jsx)("span",{className:"hidden text-xl leading-6.5 font-semibold max-sm:hidden sm:block",children:"Shopix"})]})]}),(0,d.jsx)("div",{className:"flex items-center justify-between gap-4 max-xl:hidden",children:(0,d.jsx)(e0,{className:"max-w-full",value:e,onValueChange:t,align:"New Arrivals"===e?"center":"start",children:(0,d.jsx)(e1,{className:"flex-wrap justify-start gap-1.5",children:oH.map(e=>e.href?(0,d.jsx)(e2,{children:(0,d.jsxs)(e9,{render:(0,d.jsx)(h.default,{href:e.href}
1),className:(0,eQ.cn)(e4(),oV,"flex-row items-center gap-1.5"),children:[e.icon,e.title]})},e.title):(0,d.jsxs)(e2,{value:e.title,children:[(0,d.jsxs)(e5,{className:(0,eQ.cn)(oV,"gap-2.5 rounded-md py-2 [&>svg]:ml-0 [&>svg]:size-4"),children:[e.icon,e.title]}),(0,d.jsx)(e3,{className:"w-auto p-0",children:"Pages"===e.title&&e.columns?(0,d.jsx)(ol,{columns:e.columns,onNavigate:()=>t(null)}):"New Arrivals"===e.title&&e.columns?(0,d.jsx)(ol,{columns:e.columns,columnCount:3,promotionalCard:(0,d.jsx)(oh,{}),onNavigate:()=>t(null)}):"Shops"===e.title&&e.columns?(0,d.jsx)(ol,{columns:e.columns,columnCount:3,promotionalCard:(0,d.jsx)(om,{}),onNavigate:()=>t(null)}):"Today's Deal"===e.title&&e.columns?(0,d.jsx)(ol,{columns:e.columns,columnCount:3,promotionalCard:(0,d.jsx)(op,{}),onNavigate:()=>t(null)}):e.groups?(0,d.jsx)("div",{className:"grid gap-4 p-4",style:{gridTemplateColumns:`repeat(${Math.min(e.groups.length,5)}, minmax(200px, 1fr))`},children:e.groups.map((e,r)=>(0,d.jsxs)("div",{children:[e.title&&(0,d.jsx)("p",{className:"text-foreground mb-2.5 text-sm font-semibold",children:e.title}),(0,d.jsx)("ul",{className:"grid gap-1",children:e.items.map(e=>(0,d.jsx)("li",{children:(0,d.jsx)(e9,{render:(0,d.jsx)(h.default,{href:e.href,onClick:()=>t(null)}),className:"text-muted-foreground hover:text-foreground text-sm leading-5 transition-colors",children:e.title})},e.title))})]},e.title??r))}):(0,d.jsx)("ul",{className:(0,eQ.cn)("grid gap-1 p-4",(e.items?.length??0)>6?"w-96 grid-cols-2":"w-48"),children:e.items?.map(e=>(0,d.jsx)("li",{children:(0,d.jsx)(e9,{render:(0,d.jsx)(h.default,{href:e.href,onClick:()=>t(null)}),className:"text-muted-foreground hover:text-foreground text-sm leading-5 transition-colors",children:e.title})},e.title))})})]},e.title))})})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsx)(aQ,{}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(tt,{}),(0,d.jsx)(tn,{}),(0,d.jsx)(oF,{}),(0,d.jsx)(a9,{trigger:(0,d.jsx)(g.Button,{variant:"ghost",size:"icon-lg",className:"rounded-lg p-0",children:(0,d.jsxs)(x.Avatar,{className:"size-9 after:rounded-lg",children:[(0,d.jsx)(x.AvatarImage,{src:n??"https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-1.png",alt:"Mitchell Johnson",className:"rounded-lg"}),(0,d.jsx)(x.AvatarFallback,{children:"MJ"})]})})})]})]})]})})]})}],45872)},44604,e=>{"use strict";var t=e.i(48045),r=e.i(56008),n=e.i(29110),a=e.i(99284),o=e.i(39327),i=e.i(10987);let s=(0,i.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),l=(0,i.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var c=e.i(29462),u=e.i(19455),d=e.i(93479),f=e.i(72436),h=e.i(91751),m=e.i(21392);let p=e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...e,children:[(0,t.jsx)("path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"}),(0,t.jsx)("path",{d:"m10 15 5-3-5-3z"})]});var g=e.i(14207),x=e.i(62334);let v=[{title:"Explore",links:[{title:"Product Listing",href:"/shop"},{title:"My Profile",href:"/account"},{title:"Order Tracking",href:"/account/track-order"},{title:"Category Listing",href:"/category"}]},{title:"Terms & Policies",links:[{title:"Returns & Exchanges",href:"/account/exchange-return"},{title:"Privacy Policy",href:"/privacy-policy"},{title:"Purchase Protection",href:"/return-policy"},{title:"Help",href:"/help"}]}],y=[{src:"/images/landing-page/lemon-squeezy.webp",darkSrc:"/images/landing-page/lemon-squeezy-dark.webp",alt:"Lemon Squeezy",className:"h-6"},{src:"/images/landing-page/visa.webp",alt:"Visa",className:"h-5"},{src:"/images/landing-page/paypal.webp",alt:"Paypal",className:"h-5"},{src:"/images/landing-page/master.webp",alt:"Mastercard",className:"h-5"}];e.s(["default",0,()=>{let e=new Date().getFullYear();return(0,t.jsxs)("footer",{className:"bg-background border-t",children:[(0,t.jsx)(h.default,{className:"py-6 md:py-8 lg:py-14",children:(0,t.jsxs)("div",{className:"grid max-xl:gap-8 md:grid-cols-2 lg:grid-cols-4",children:[(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)(n.default,{href:"/#hero-section",className:"flex items-center gap-1.5 text-xl font-semibold",children:[(0,t.jsx)(m.default,{className:"text-primary size-8"}),(0,t.jsx)("span",{children:"Shopix"})]}),(0,t.jsxs)("ul",{className:"space-y-3",children:[(0,t.jsxs)("li",{className:"flex gap-2",children:[(0,t.jsx)(a.MapPinIcon,{className:"size-5 shrink-0"}),(0,t.jsxs)("span",{children:["Shop 009A, Level 4, Block A ",(0,t.jsx)("br",{})," Demo Park, Ottawa"]})]}),(0,t.jsxs)("li",{className:"flex gap-2",children:[(0,t.jsx)(o.PhoneIcon,{className:"size-5 shrink-0"}),(0,t.jsx)(n.default,{href:"tel:+16135986981",className:"hover:text-primary transition-colors",children:"+1-613-598-6981"})]}),(0,t.jsxs)("li",{className:"flex gap-2",children:[(0,t.jsx)(s,{className:"size-5 shrink-0"}),(0,t.jsx)(n.default,{href:"mailto:[email protected]",className:"hover:text-primary transition-colors",children:"[email protected]"})]})]})]}),(0,t.jsx)("div",{className:"col-span-2 grid grid-cols-1 gap-8 sm:grid-cols-2 md:max-lg:order-1",children:v.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"mb-4 text-xl font-semibold",children:e.title}),(0,t.jsx)("ul",{className:"space-y-3",children:e.links.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-primary transition-colors",children:e.title})},e.title))})]},e.title))}),(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsx)("h4",{className:"text-lg font-semibold",children:"Get the Latest Offers & Discounts"}),(0,t.jsxs)("form",{className:"flex gap-2",onSubmit:e=>e.preventDefault(),children:[(0,t.jsx)(d.Input,{type:"email",placeholder:"Your email address",className:"input-lg"}),(0,t.jsx)(u.Button,{type:"submit",size:"icon-lg",className:"bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:(0,t.jsx)(c.ArrowRightIcon,{})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("p",{className:"text-lg font-semibold",children:"Download App"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-start gap-4 gap-y-2",children:[(0,t.jsxs)(u.Button,{render:(0,t.jsx)("a",{href:"#",className:"flex h-10.5 items-center gap-4"}),nativeButton:!1,className:"dark:bg-primary dark:hover:bg-primary! w-full max-w-33 roun
1ded-sm bg-black px-2.5 py-1.25 hover:bg-black!",children:[(0,t.jsx)("img",{src:"/images/landing-page/apple-icon.webp",className:"block size-6 invert dark:hidden",alt:"App Store"}),(0,t.jsx)("img",{src:"/images/landing-page/apple-white.webp",className:"hidden size-6 invert dark:block",alt:"App Store"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"dark:text-primary-foreground text-[10px] font-normal text-white",children:"Download on the"}),(0,t.jsx)("div",{className:"dark:text-primary-foreground text-xs font-medium text-white",children:"App Store"})]})]}),(0,t.jsxs)(u.Button,{render:(0,t.jsx)("a",{href:"#",className:"flex h-10.5 items-center gap-4"}),nativeButton:!1,className:"dark:bg-primary dark:hover:bg-primary! w-full max-w-33 rounded-sm bg-black px-2.5 py-1.25 hover:bg-black!",children:[(0,t.jsx)("img",{src:"https://cdn.shadcnstudio.com/ss-assets/brand-logo/google-play-icon.png",className:"size-6",alt:"Google Play Store"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"dark:text-primary-foreground text-[10px] font-normal text-white",children:"Download on the"}),(0,t.jsx)("div",{className:"dark:text-primary-foreground text-xs font-medium text-white",children:"Google Play"})]})]})]})]})]})]})}),(0,t.jsx)(f.Separator,{}),(0,t.jsx)("div",{className:"py-6 max-sm:px-4",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[(0,t.jsxs)("span",{className:"border-border inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-base",children:[(0,t.jsx)(l,{className:"size-5 shrink-0 text-green-600 dark:text-green-400"}),"Secure Payment"]}),y.map(e=>e.darkSrc?(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("img",{src:e.src,alt:e.alt,className:`${e.className} dark:hidden`}),(0,t.jsx)("img",{src:e.darkSrc,alt:e.alt,className:`${e.className} hidden dark:block`})]},e.alt):(0,t.jsx)("img",{src:e.src,alt:e.alt,className:e.className},e.alt))]})}),(0,t.jsx)(f.Separator,{}),(0,t.jsx)(h.default,{className:"py-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4 md:flex-row",children:[(0,t.jsxs)("p",{className:"text-center text-base font-medium md:text-left",children:["© ",e," ",(0,t.jsx)(n.default,{href:"/",className:"text-primary font-bold hover:underline",children:"Shopix"}),", Made with ❤️ for a better web."]}),(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)("a",{href:"#",children:(0,t.jsx)(p,{className:"text-primary/70 hover:text-primary size-5.5"})}),(0,t.jsx)("a",{href:"#",children:(0,t.jsx)(g.default,{className:"text-primary/70 hover:text-primary size-5.5"})}),(0,t.jsx)("a",{href:"#",children:(0,t.jsx)(x.default,{className:"text-primary/70 hover:text-primary size-5.5"})})]})]})})]})}],44604)},89720,e=>{"use strict";var t=e.i(56008),r=e.i(44465);e.s(["default",0,()=>((0,t.useLayoutEffect)(()=>{r.useProductsStore.persist.rehydrate(),r.useProductsStore.setState({isHydrated:!0})},[]),null)])}]);

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.