PageSourceSearch

https://demotelemed.lovable.app/assets/Index-BYBhKhTd.js

js demotelemed.lovable.app collected 2026-10-03 03:25:26 UTC 62,476 bytes, 36 lines download raw bytes

vendor: 13,790 bytes, lines 1-36
1import{c as ne,a as Je,b as et,d as tt,r as i,u as H,j as e,A as mr,P as A,e as _,f as Z,g as rt,D as pr,C as xr,h as hr,V as fr,i as gr,k as vr,l as wr,m as Te,R as br,n as V,o as yr,X as ze,p as jr,L as ae,q as Sr}from"./index-42OYDF60.js";import{u as ve,H as ue,c as he,d as st,e as Nr,f as nt,g as ot,h as at,S as $e,A as Ge,Z as Cr,T as lt,i as Ee,F as kr,L as Pr,a as Rr,b as Ir}from"./Layout-CvY-dOeA.js";import{S as Tr}from"./Seo-BfVVQ8bP.js";import{I as Er}from"./input-D0IjS33j.js";import{B as q}from"./button-EfpS49lo.js";import{u as it}from"./index-Dyx-IFgm.js";import{h as _r,u as Mr,R as Dr,F as Ar,a as Ke}from"./dialog-BPqr1XfL.js";import{u as ct}from"./index-CXOUwLiy.js";import{C as dt}from"./chevron-down-D0Yfhjou.js";import{C as Or}from"./check-CJKIezrx.js";import{S as Ye}from"./switch-CrYu0Slx.js";import{L as xe}from"./label-BNvpn1fK.js";import{c as Lr,b as Br,d as Vr}from"./demoProducts-Cec3h00k.js";import{S as ut}from"./sparkles-CVmnDczg.js";import{S as Hr}from"./search-C7Y2SfZe.js";import{E as Ie}from"./eye-Cd6uJR2_.js";import{u as Fr}from"./useProductsData-BDCEl_2_.js";import{H as zr}from"./heart-pulse-CuBxqn0f.js";import{C as Kr}from"./clock-DQFeazs3.js";import"./phone-CUz94ybs.js";import"./menu-CkpBHtij.js";import"./mail-T8cR2-w0.js";import"./trash-2-B3_ksNI2.js";import"./minus-LiessKcH.js";import"./plus-UlO-Lz9K.js";import"./usePageSeo-BJOptz5i.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Wr=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const qe=ne("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const mt=ne("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Ur=ne("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
22 * @license lucide-react v0.462.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const $r=ne("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
27 * @license lucide-react v0.462.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const Gr=ne("PackageX",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]);/**
32 * @license lucide-react v0.462.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */const Yr=ne("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);function fe(t,[s,r]){return Math.min(r,Math.max(s,t))}var qr=[" ","Enter","ArrowUp","ArrowDown"],Xr=[" ","Enter"],re="Select",[we,be,Zr]=Je(re),[le,yn]=et(re,[Zr,tt]),ye=tt(),[Qr,Q]=le(re),[Jr,es]=le(re),pt=t=>{const{__scopeSelect:s,children:r,open:n,defaultOpen:o,onOpenChange:d,value:a,defaultValue:l,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:v,required:S,form:j}=t,m=ye(s),[g,w]=i.useState(null),[h,x]=i.useState(null),[k,T]=i.useState(!1),F=it(u),[y,b]=Te({prop:n,defaultProp:o??!1,onChange:d,caller:re}),[N,z]=Te({prop:a,defaultProp:l,onChange:c,caller:re}),I=i.useRef(null),O=g?j||!!g.closest("form"):!0,[K,$]=i.useState(new Set),W=Array.from(K).map(D=>D.props.value).join(";");return e.jsx(br,{...m,children:e.jsxs(Qr,{required:S,scope:s,trigger:g,onTriggerChange:w,valueNode:h,onValueNodeChange:x,valueNodeHasChildren:k,onValueNodeHasChildrenChange:T,contentId:Ke(),value:N,onValueChange:z,open:y,onOpenChange:b,dir:F,triggerPointerDownPosRef:I,disabled:v,children:[e.jsx(we.Provider,{scope:s,children:e.jsx(Jr,{scope:t.__scopeSelect,onNativeOptionAdd:i.useCallback(D=>{$(L=>new Set(L).add(D))},[]),onNativeOptionRemove:i.useCallback(D=>{$(L=>{const B=new Set(L);return B.delete(D),B})},[]),children:r})}),O?e.jsxs(Lt,{"aria-hidden":!0,required:S,tabIndex:-1,name:f,autoComplete:p,value:N,onChange:D=>z(D.target.value),disabled:v,form:j,children:[N===void 0?e.jsx("option",{value:""}):null,Array.from(K)]},W):null]})})};pt.displayName=re;var xt="SelectTrigger",ht=i.forwardRef((t,s)=>{const{__scopeSelect:r,disabled:n=!1,...o}=t,d=ye(r),a=Q(xt,r),l=a.disabled||n,c=H(s,a.onTriggerChange),u=be(r),f=i.useRef("touch"),[p,v,S]=Vt(m=>{const g=u().filter(x=>!x.disabled),w=g.find(x=>x.value===a.value),h=Ht(g,m,w);h!==void 0&&a.onValueChange(h.value)}),j=m=>{l||(a.onOpenChange(!0),S()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return e.jsx(mr,{asChild:!0,...d,children:e.jsx(A.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Bt(a.value)?"":void 0,...o,ref:c,onClick:_(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&j(m)}),onPointerDown:_(o.onPointerDown,m=>{f.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(j(m),m.preventDefault())}),onKeyDown:_(o.onKeyDown,m=>{const g=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&v(m.key),!(g&&m.key===" ")&&qr.includes(m.key)&&(j(),m.preventDefault())})})})});ht.displayName=xt;var ft="SelectValue",gt=i.forwardRef((t,s)=>{const{__scopeSelect:r,className:n,style:o,children:d,placeholder:a="",...l}=t,c=Q(ft,r),{onValueNodeHasChildrenChange:u}=c,f=d!==void 0,p=H(s,c.onValueNodeChange);return Z(()=>{u(f)},[u,f]),e.jsx(A.span,{...l,ref:p,style:{pointerEvents:"none"},children:Bt(c.value)?e.jsx(e.Fragment,{children:a}):d})});gt.displayName=ft;var ts="SelectIcon",vt=i.forwardRef((t,s)=>{const{__scopeSelect:r,children:n,...o}=t;return e.jsx(A.span,{"aria-hidden":!0,...o,ref:s,children:n||"▼"})});vt.displayName=ts;var rs="SelectPortal",wt=t=>e.jsx(vr,{asChild:!0,...t});wt.displayName=rs;var se="SelectContent",bt=i.forwardRef((t,s)=>{const r=Q(se,t.__scopeSelect),[n,o]=i.useState();if(Z(()=>{o(new DocumentFragment)},[]),!r.open){const d=n;return d?rt.createPortal(e.jsx(yt,{scope:t.__scopeSelect,children:e.jsx(we.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),d):null}return e.jsx(jt,{...t,ref:s})});bt.displayName=se;var Y=10,[yt,J]=le(se),ss="SelectContentImpl",ns=wr("SelectContent.RemoveScroll"),jt=i.forwardRef((t,s)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:d,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:S,sticky:j,hideWhenDetached:m,avoidCollisions:g,...w}=t,h=Q(se,r),[x,k]=i.useState(null),[T,F]=i.useState(null),y=H(s,C=>k(C)),[b,N]=i.useState(null),[z,I]=i.useState(null),O=be(r),[K,$]=i.useState(!1),W=i.useRef(!1);i.useEffect(()=>{if(x)return _r(x)},[x]),Mr();const D=i.useCallback(C=>{const[M,...U]=O().map(R=>R.ref.current),[E]=U.slice(-1),P=document.activeElement;for(const R of C)if(R===P||(R==null||R.scrollIntoView({block:"nearest"}),R===M&&T&&(T.scrollTop=0),R===E&&T&&(T.scrollTop=T.scrollHeight),R==null||R.focus(),document.activeElement!==P))return},[O,T]),L=i.useCallback(()=>D([b,x]),[D,b,x]);i.useEffect(()=>{K&&L()},[K,L]);const{onOpenChange:B,triggerPointerDownPosRef:G}=h;i.useEffect(()=>{if(x){let C={x:0,y:0};const M=E=>{var P,R;C={x:Math.abs(Math.round(E.pageX)-(((P=G.current)==null?void 0:P.x)??0)),y:Math.abs(Math.round(E.pageY)-(((R=G.current)==null?void 0:R.y)??0))}},U=E=>{C.x<=10&&C.y<=10?E.preventDefault():x.contains(E.target)||B(!1),document.removeEventListener("pointermove",M),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",U,{capture:!0})}}},[x,B,G]),i.useEffect(()=>{const C=()=>B(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[B]);const[Se,me]=Vt(C=>{const M=O().filter(P=>!P.disabled),U=M.find(P=>P.ref.current===document.activeElement),E=Ht(M,C,U);E&&setTimeout(()=>E.ref.current.focus())}),Ne=i.useCallback((C,M,U)=>{const E=!W.current&&!U;(h.value!==void 0&&h.value===M||E)&&(N(C),E&&(W.current=!0))},[h.value]),Ce=i.useCallback(()=>x==null?void 0:x.focus(),[x]),oe=i.useCallback((C,M,U)=>{const E=!W.current&&!U;(h.value!==void 0&&h.value===M||E)&&I(C)},[h.value]),pe=n==="popper"?_e:St,ce=pe===_e?{side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:S,sticky:j,hideWhenDetached:m,avoidCollisions:g}:{};return e.jsx(yt,{scope:r,content:x,viewport:T,onViewportChange:F,itemRefCallback:Ne,selectedItem:b,onItemLeave:Ce,itemTextRefCallback:oe,focusSelectedItem:L,selectedItemText:z,position:n,isPositioned:K,searchRef:Se,children:e.jsx(Dr,{as:ns,allowPinchZoom:!0,children:e.jsx(Ar,{asChild:!0,trapped:h.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:_(o,C=>{var M;(M=h.trigger)==null||M.focus({preventScroll:!0}),C.preventDefault()}),children:e.jsx(pr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:a,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:e.jsx(pe,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:C=>C.preventDefault(),...w,...ce,onPlaced:()=>$(!0),ref:y,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:_(w.onKeyDown,C=>{const M=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!M&&C.key.length===1&&me(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let E=O().filter(P=>!P.disabled).map(P=>P.ref.current);if(["ArrowUp","End"].includes(C.key)&&(E=E.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const P=C.target,R=E.indexOf(P);E=E.slice(R+1)}setTimeout(()=>D(E)),C.preventDefault()}})})})})})})});jt.displayName=ss;var os="SelectItemAlignedPosition",St=i.forwardRef((t,s)=>{const{__scopeSelect:r,onPlaced:n,...o}=t,d=Q(se,r),a=J(se,r),[l,c]=i.useState(null),[u,f]=i.useState(null),p=H(s,y=>f(y)),v=be(r),S=i.useRef(!1),j=i.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:w,focusSelectedItem:h}=a,x=i.useCallback(()=>{if(d.trigger&&d.valueNode&&l&&u&&m&&g&&w){const y=d.trigger.getBoundingClientRect(),b=u.getBoundingClientRect(),N=d.valueNode.getBoundingClientRect(),z=w.getBoundingClientRect();if(d.dir!=="rtl"){const P=z.left-b.left,R=N.left-P,ee=y.left-R,te=y.width+ee,ke=Math.max(te,b.width),Pe=window.innerWidth-Y,Re=fe(R,[Y,Math.max(Y,Pe-ke)]);l.style.minWidth=te+"px",l.style.left=Re+"px"}else{const P=b.right-z.right,R=window.innerWidth-N.right-P,ee=window.innerWidth-y.right-R,te=y.width+ee,ke=Math.max(te,b.width),Pe=window.innerWidth-Y,Re=fe(R,[Y,Math.max(Y,Pe-ke)]);l.style.minWidth=te+"px",l.style.right=Re+"px"}const I=v(),O=window.innerHeight-Y*2,K=m.scrollHeight,$=window.getComputedStyle(u),W=parseInt($.borderTopWidth,10),D=parseInt($.paddingTop,10),L=parseInt($.borderBottomWidth,10),B=parseInt($.paddingBottom,10),G=W+D+K+B+L,Se=Math.min(g.offsetHeight*5,G),me=window.getComputedStyle(m),Ne=parseInt(me.paddingTop,10),Ce=parseInt(me.paddingBottom,10),oe=y.top+y.height/2-Y,pe=O-oe,ce=g.offsetHeight/2,C=g.offsetTop+ce,M=W+D+C,U=G-M;if(M<=oe){const P=I.length>0&&g===I[I.length-1].ref.current;l.style.bottom="0px";const R=u.clientHeight-m.offsetTop-m.offsetHeight,ee=Math.max(pe,ce+(P?Ce:0)+R+L),te=M+ee;l.style.height=te+"px"}else{const P=I.length>0&&g===I[0].ref.current;l.style.top="0px";const ee=Math.max(oe,W+m.offsetTop+(P?Ne:0)+ce)+U;l.style.height=ee+"px",m.scrollTop=M-oe+m.offsetTop}l.style.margin=`${Y}
36px 0`,l.style.minHeight=Se+"px",l.style.maxHeight=O+"px",n==null||n(),requestAnimationFrame(()=>S.current=!0)}},[v,d.trigger,d.valueNode,l,u,m,g,w,d.dir,n]);Z(()=>x(),[x]);const[k,T]=i.useState();Z(()=>{u&&T(window.getComputedStyle(u).zIndex)},[u]);const F=i.useCallback(y=>{y&&j.current===!0&&(x(),h==null||h(),j.current=!1)},[x,h]);return e.jsx(ls,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:S,onScrollButtonChange:F,children:e.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:e.jsx(A.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});St.displayName=os;var as="SelectPopperPosition",_e=i.forwardRef((t,s)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Y,...d}=t,a=ye(r);return e.jsx(xr,{...a,...d,ref:s,align:n,collisionPadding:o,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});_e.displayName=as;var[ls,We]=le(se,{}),Me="SelectViewport",Nt=i.forwardRef((t,s)=>{const{__scopeSelect:r,nonce:n,...o}=t,d=J(Me,r),a=We(Me,r),l=H(s,d.onViewportChange),c=i.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),e.jsx(we.Slot,{scope:r,children:e.jsx(A.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:_(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=a;if(v!=null&&v.current&&p){const S=Math.abs(c.current-f.scrollTop);if(S>0){const j=window.innerHeight-Y*2,m=parseFloat(p.style.minHeight),g=parseFloat(p.style.height),w=Math.max(m,g);if(w<j){const h=w+S,x=Math.min(j,h),k=h-x;p.style.height=x+"px",p.style.bottom==="0px"&&(f.scrollTop=k>0?k:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Nt.displayName=Me;var Ct="SelectGroup",[is,cs]=le(Ct),ds=i.forwardRef((t,s)=>{const{__scopeSelect:r,...n}=t,o=Ke();return e.jsx(is,{scope:r,id:o,children:e.jsx(A.div,{role:"group","aria-labelledby":o,...n,ref:s})})});ds.displayName=Ct;var kt="SelectLabel",Pt=i.forwardRef((t,s)=>{const{__scopeSelect:r,...n}=t,o=cs(kt,r);return e.jsx(A.div,{id:o.id,...n,ref:s})});Pt.displayName=kt;var ge="SelectItem",[us,Rt]=le(ge),It=i.forwardRef((t,s)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:d,...a}=t,l=Q(ge,r),c=J(ge,r),u=l.value===n,[f,p]=i.useState(d??""),[v,S]=i.useState(!1),j=H(s,h=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,h,n,o)}),m=Ke(),g=i.useRef("touch"),w=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(us,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(h=>{p(x=>x||((h==null?void 0:h.textContent)??"").trim())},[]),children:e.jsx(we.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:e.jsx(A.div,{role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:j,onFocus:_(a.onFocus,()=>S(!0)),onBlur:_(a.onBlur,()=>S(!1)),onClick:_(a.onClick,()=>{g.current!=="mouse"&&w()}),onPointerUp:_(a.onPointerUp,()=>{g.current==="mouse"&&w()}),onPointerDown:_(a.onPointerDown,h=>{g.current=h.pointerType}),onPointerMove:_(a.onPointerMove,h=>{var x;g.current=h.pointerType,o?(x=c.onItemLeave)==null||x.call(c):g.current==="mouse"&&h.currentTarget.focu
vendor: 4,876 bytes, line 36
36s({preventScroll:!0})}),onPointerLeave:_(a.onPointerLeave,h=>{var x;h.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:_(a.onKeyDown,h=>{var k;((k=c.searchRef)==null?void 0:k.current)!==""&&h.key===" "||(Xr.includes(h.key)&&w(),h.key===" "&&h.preventDefault())})})})})});It.displayName=ge;var de="SelectItemText",Tt=i.forwardRef((t,s)=>{const{__scopeSelect:r,className:n,style:o,...d}=t,a=Q(de,r),l=J(de,r),c=Rt(de,r),u=es(de,r),[f,p]=i.useState(null),v=H(s,w=>p(w),c.onItemTextChange,w=>{var h;return(h=l.itemTextRefCallback)==null?void 0:h.call(l,w,c.value,c.disabled)}),S=f==null?void 0:f.textContent,j=i.useMemo(()=>e.jsx("option",{value:c.value,disabled:c.disabled,children:S},c.value),[c.disabled,c.value,S]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return Z(()=>(m(j),()=>g(j)),[m,g,j]),e.jsxs(e.Fragment,{children:[e.jsx(A.span,{id:c.textId,...d,ref:v}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?rt.createPortal(d.children,a.valueNode):null]})});Tt.displayName=de;var Et="SelectItemIndicator",_t=i.forwardRef((t,s)=>{const{__scopeSelect:r,...n}=t;return Rt(Et,r).isSelected?e.jsx(A.span,{"aria-hidden":!0,...n,ref:s}):null});_t.displayName=Et;var De="SelectScrollUpButton",Mt=i.forwardRef((t,s)=>{const r=J(De,t.__scopeSelect),n=We(De,t.__scopeSelect),[o,d]=i.useState(!1),a=H(s,n.onScrollButtonChange);return Z(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;d(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?e.jsx(At,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Mt.displayName=De;var Ae="SelectScrollDownButton",Dt=i.forwardRef((t,s)=>{const r=J(Ae,t.__scopeSelect),n=We(Ae,t.__scopeSelect),[o,d]=i.useState(!1),a=H(s,n.onScrollButtonChange);return Z(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;d(f)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?e.jsx(At,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});Dt.displayName=Ae;var At=i.forwardRef((t,s)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=t,d=J("SelectScrollButton",r),a=i.useRef(null),l=be(r),c=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),Z(()=>{var f;const u=l().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),e.jsx(A.div,{"aria-hidden":!0,...o,ref:s,style:{flexShrink:0,...o.style},onPointerDown:_(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:_(o.onPointerMove,()=>{var u;(u=d.onItemLeave)==null||u.call(d),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:_(o.onPointerLeave,()=>{c()})})}),ms="SelectSeparator",Ot=i.forwardRef((t,s)=>{const{__scopeSelect:r,...n}=t;return e.jsx(A.div,{"aria-hidden":!0,...n,ref:s})});Ot.displayName=ms;var Oe="SelectArrow",ps=i.forwardRef((t,s)=>{const{__scopeSelect:r,...n}=t,o=ye(r),d=Q(Oe,r),a=J(Oe,r);return d.open&&a.position==="popper"?e.jsx(hr,{...o,...n,ref:s}):null});ps.displayName=Oe;var xs="SelectBubbleInput",Lt=i.forwardRef(({__scopeSelect:t,value:s,...r},n)=>{const o=i.useRef(null),d=H(n,o),a=ct(s);return i.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==s&&f){const p=new Event("change",{bubbles:!0});f.call(l,s),l.dispatchEvent(p)}},[a,s]),e.jsx(A.select,{...r,style:{...fr,...r.style},ref:d,defaultValue:s})});Lt.displayName=xs;function Bt(t){return t===""||t===void 0}function Vt(t){const s=gr(t),r=i.useRef(""),n=i.useRef(0),o=i.useCallback(a=>{const l=r.current+a;s(l),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[s]),d=i.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,d]}function Ht(t,s,r){const o=s.length>1&&Array.from(s).every(u=>u===s[0])?s[0]:s,d=r?t.indexOf(r):-1;let a=hs(t,Math.max(d,0));o.length===1&&(a=a.filter(u=>u!==r));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function hs(t,s){return t.map((r,n)=>t[(s+n)%t.length])}var fs=pt,Ft=ht,gs=gt,vs=vt,ws=wt,zt=bt,bs=Nt,Kt=Pt,Wt=It,ys=Tt,js=_t,Ut=Mt,$t=Dt,Gt=Ot;const Xe=fs,Ze=gs,Le=i.forwardRef(({className:t,children:s,...r},n)=>e.jsxs(Ft,{ref:n,className:V("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
36ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[s,e.jsx(vs,{asChild:!0,children:e.jsx(dt,{className:"h-4 w-4 opacity-50"})})]}));Le.displayName=Ft.displayName;const Yt=i.forwardRef(({className:t,...s},r)=>e.jsx(Ut,{ref:r,className:V("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(Wr,{className:"h-4 w-4"})}));Yt.displayName=Ut.displayName;const qt=i.forwardRef(({className:t,...s},r)=>e.jsx($t,{ref:r,className:V("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(dt,{className:"h-4 w-4"})}));qt.displayName=$t.displayName;const Be=i.forwardRef(({className:t,children:s,position:r="popper",...n},o)=>e.jsx(ws,{children:e.jsxs(zt,{ref:o,className:V("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[e.jsx(Yt,{}),e.jsx(bs,{className:V("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(qt,{})]})}));Be.displayName=zt.displayName;const Ss=i.forwardRef(({className:t,...s},r)=>e.jsx(Kt,{ref:r,className:V("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...s}));Ss.displayName=Kt.displayName;const X=i.forwardRef(({className:t,children:s,...r},n)=>e.jsxs(Wt,{ref:n,className:V("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(js,{children:e.jsx(Or,{className:"h-4 w-4"})})}),e.jsx(ys,{children:s})]}));X.displayName=Wt.displayName;const Ns=i.forwardRef(({className:t,...s},r)=>e.jsx(Gt,{ref:r,className:V("-mx-1 my-1 h-px bg-muted",t),...s}));Ns.displayName=Gt.displayName;var Xt=["PageUp","PageDown"],Zt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qt={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ie="Slider",[Ve,Cs,ks]=Je(ie),[Jt,jn]=et(ie,[ks]),[Ps,je]=Jt(ie),er=i.forwardRef((t,s)=>{const{name:r,min:n=0,max:o=100,step:d=1,orientation:a="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[n],value:f,onValueChange:p=()=>{},onValueCommit:v=()=>{},inverted:S=!1,form:j,...m}=t,g=i.useRef(new Set),w=i.useRef(0),x=a==="horizontal"?Rs:Is,[k=[],T]=Te({prop:f,defaultProp:u,onChange:I=>{var K;(K=[...g.current][w.current])==null||K.focus(),p(I)}}),F=i.useRef(k);function y(I){const O=Ds(k,I);z(I,O)}function b(I){z(I,w.current)}function N(){const I=F.current[w.current];k[w.current]!==I&&v(k)}function z(I,O,{commit:K}={commit:!1}){const $=Bs(d),W=Vs(Math.round((I-n)/d)*d+n,$),D=fe(W,[n,o]);T((L=[])=>{const B=_s(L,D,O);if(Ls(B,c*d)){w.current=B.indexOf(D);const G=String(B)!==String(L);return G&&K&&v(B),G?B:L}else return L})}return e.jsx(Ps,{scope:t.__scopeSlider,name:r,disabled:l,min:n,max:o,valueIndexToChangeRef:w,thumbs:g.current,values:k,orientation:a,form:j,children:e.jsx(Ve.Provider,{scope:t.__scopeSlider,children:e.jsx(Ve.Slot,{scope:t.__scopeSlider,children:e.jsx(x,{"aria-disabled":l,"data-disabled":l?"":void 0,...m,ref:s,onPointerDown:_(m.onPointerDown,()=>{l||(F.current=k)}),min:n,max:o,inverted:S,onSlideStart:l?void 0:y,onSlideMove:l?void 0:b,onSlideEnd:l?void 0:N,onHomeKeyDown:()=>!l&&z(n,0,{commit:!0}),onEndKeyDown:()=>!l&&z(o,k.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:O})=>{if(!l){const W=Xt.includes(I.key)||I.shiftKey&&Zt.includes(I.key)?10:1,D=w.current,L=k[D],B=d*W*O;z(L+B,D,{commit:!0})}}})})})})});er.displayName=ie;var[tr,rr]=Jt(ie,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Rs=i.forwardRef((t,s)=>{const{min:r,max:n,dir:o,inverted:d,onSlideStart:a,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...f}=t,[p,v]=i.useState(null),S=H(s,x=>v(x)),j=i.useRef(void 0),m=it(o),g=m==="ltr",w=g&&!d||!g&&d;function h(x){const k=j.current||p.getBoundingClientRect(),T=[0,k.width],y=Ue(T,w?[r,n]:[n,r]);return j.current=k,y(x-k.left)}return e.jsx(tr,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:e.jsx(sr,{dir:m,"data-orientation":"horizontal",...f,ref:S,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const k=h(x.clientX);a==null||a(k)},onSlideMove:x=>{const k=h(x.clientX);l==null||l(k)},onSlideEnd:()=>{j.current=void 0,c==null||c()},onStepKeyDown:x=>{const T=Qt[w?"from-left":"from-right"].includes(x.key);u==null||u({event:x,direction:T?-1:1})}})})}),Is=i.forwardRef((t,s)=>{const{min:r,max:n,inverted:o,onSlideStart:d,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=t,f=i.useRef(null),p=H(s,f),v=i.useRef(void 0),S=!o;function j(m){const g=v.current||f.current.getBoundingClientRect(),w=[0,g.height],x=Ue(w,S?[n,r]:[r,n]);return v.current=g,x(m-g.top)}return e.jsx(tr,{scope:t.__scopeSlider,startEdge:S?"bottom":"top",endEdge:S?"top":"bottom",size:"height",direction:S?1:-1,children:e.jsx(sr,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const g=j(m.clientY);d==null||d(g)},onSlideMove:m=>{const g=j(m.clientY);a==null||a(g)},onSlideEnd:()=>{v.current=void 0,l==null||l()},onStepKeyDown:m=>{const w=Qt[S?"from-bottom":"from-top"].includes(m.key);c==null||c({event:m,direction:w?-1:1})}})})}),sr=i.forwardRef((t,s)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:d,onHomeKeyDown:a,onEndKeyDown:l,onStepKeyDown:c,...u}=t,f=je(ie,r);return e.jsx(A.span,{...u,ref:s,onKeyDown:_(t.onKeyDown,p=>{p.key==="Home"?(a(p),p.preventDefault()):p.key==="End"?(l(p),p.preventDefault()):Xt.concat(Zt).includes(p.key)&&(c(p),p.preventDefault())}),onPointerDown:_(t.onPointerDown,p=>{const v=p.target;v.setPointerCapture(p.pointerId),p.preventDefault(),f.thumbs.has(v)?v.focus():n(p)}),onPointerMove:_(t.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&o(p)}),onPointerUp:_(t.onPointerUp,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&(v.releasePointerCapture(p.pointerId),d(p))})})}),nr="SliderTrack",or=i.forwardRef((t,s)=>{const{__scopeSlider:r,...n}=t,o=je(nr,r);return e.jsx(A.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:s})});or.displayName=nr;var He="SliderRange",ar=i.forwardRef((t,s)=>{const{__scopeSlider:r,...n}=t,o=je(He,r),d=rr(He,r),a=i.useRef(null),l=H(s,a),c=o.values.length,u=o.values.map(v=>
36cr(v,o.min,o.max)),f=c>1?Math.min(...u):0,p=100-Math.max(...u);return e.jsx(A.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:l,style:{...t.style,[d.startEdge]:f+"%",[d.endEdge]:p+"%"}})});ar.displayName=He;var Fe="SliderThumb",lr=i.forwardRef((t,s)=>{const r=Cs(t.__scopeSlider),[n,o]=i.useState(null),d=H(s,l=>o(l)),a=i.useMemo(()=>n?r().findIndex(l=>l.ref.current===n):-1,[r,n]);return e.jsx(Ts,{...t,ref:d,index:a})}),Ts=i.forwardRef((t,s)=>{const{__scopeSlider:r,index:n,name:o,...d}=t,a=je(Fe,r),l=rr(Fe,r),[c,u]=i.useState(null),f=H(s,h=>u(h)),p=c?a.form||!!c.closest("form"):!0,v=yr(c),S=a.values[n],j=S===void 0?0:cr(S,a.min,a.max),m=Ms(n,a.values.length),g=v==null?void 0:v[l.size],w=g?As(g,j,l.direction):0;return i.useEffect(()=>{if(c)return a.thumbs.add(c),()=>{a.thumbs.delete(c)}},[c,a.thumbs]),e.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${j}% + ${w}px)`},children:[e.jsx(Ve.ItemSlot,{scope:t.__scopeSlider,children:e.jsx(A.span,{role:"slider","aria-label":t["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":S,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...d,ref:f,style:S===void 0?{display:"none"}:t.style,onFocus:_(t.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),p&&e.jsx(ir,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:S},n)]})});lr.displayName=Fe;var Es="RadioBubbleInput",ir=i.forwardRef(({__scopeSlider:t,value:s,...r},n)=>{const o=i.useRef(null),d=H(o,n),a=ct(s);return i.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==s&&f){const p=new Event("input",{bubbles:!0});f.call(l,s),l.dispatchEvent(p)}},[a,s]),e.jsx(A.input,{style:{display:"none"},...r,ref:d,defaultValue:s})});ir.displayName=Es;function _s(t=[],s,r){const n=[...t];return n[r]=s,n.sort((o,d)=>o-d)}function cr(t,s,r){const d=100/(r-s)*(t-s);return fe(d,[0,100])}function Ms(t,s){return s>2?`Value ${t+1} of ${s}`:s===2?["Minimum","Maximum"][t]:void 0}function Ds(t,s){if(t.length===1)return 0;const r=t.map(o=>Math.abs(o-s)),n=Math.min(...r);return r.indexOf(n)}function As(t,s,r){const n=t/2,d=Ue([0,50],[0,n]);return(n-d(s)*r)*r}function Os(t){return t.slice(0,-1).map((s,r)=>t[r+1]-s)}function Ls(t,s){if(s>0){const r=Os(t);return Math.min(...r)>=s}return!0}function Ue(t,s){return r=>{if(t[0]===t[1]||s[0]===s[1])return s[0];const n=(s[1]-s[0])/(t[1]-t[0]);return s[0]+n*(r-t[0])}}function Bs(t){return(String(t).split(".")[1]||"").length}function Vs(t,s){const r=Math.pow(10,s);return Math.round(t*r)/r}var dr=er,Hs=or,Fs=ar,zs=lr;const ur=i.forwardRef(({className:t,...s},r)=>e.jsxs(dr,{ref:r,className:V("relative flex w-full touch-none select-none items-center",t),...s,children:[e.jsx(Hs,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(Fs,{className:"absolute h-full bg-primary"})}),e.jsx(zs,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));ur.displayName=dr.displayName;const Ks=t=>{const{search:s,onSearch:r,category:n,onCategory:o,brand:d,onBrand:a,sort:l,onSort:c,view:u,onView:f,priceRange:p,onPriceRange:v,priceMax:S,inStockOnly:j,onInStockOnly:m,onSaleOnly:g,onOnSaleOnly:w,totalCount:h,onClearFilters:x,onOpenWishlist:k}=t,{wishlist:T,cartCount:F,setCartOpen:y}=ve(),b=[n!=="All"&&n,d!=="All Brands"&&d,j&&"In Stock",g&&"On Sale"].filter(Boolean);return e.jsxs("header",{className:"mb-10 space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 animate-fade-in",children:[e.jsxs("div",{className:"flex items-center gap-2 rounded-full glass px-3 py-1.5 text-[11px] font-semibold tracking-wide text-primary-glow",children:[e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-success opacity-75"}),e.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-success"})]}),e.jsxs("span",{children:["Live • ",h," products available"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:k,"aria-label":`Open wishlist (${T.length} items)`,className:"relative rounded-full glass p-2.5 transition-bounce hover:scale-110 hover:text-accent-glow",children:[e.jsx(ue,{className:"h-4 w-4"}),T.length>0&&e.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full gradient-accent text-[10px] font-bold text-accent-foreground",children:T.length})]}),e.jsxs("button",{onClick:()=>y(!0),"aria-label":`Open shopping cart (${F} items)`,className:"relative rounded-full glass p-2.5 transition-bounce hover:scale-110 hover:text-primary-glow",children:[e.jsx(he,{className:"h-4 w-4"}),F>0&&e.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full gradient-primary text-[10px] font-bold text-primary-foreground animate-pulse-ring",children:F})]})]})]}),e.jsxs("div",{className:"text-center space-y-5 animate-fade-in-up",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full glass px-4 py-1.5 text-xs font-semibold tracking-wide text-primary-glow",children:[e.jsx(ut,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Trusted Healthcare • 100% Authentic"})]}),e.jsxs("h1",{className:"text-5xl md:text-6xl lg:text-7xl font-extrabold tracking-tight text-balance leading-[1.05]",children:[e.jsx("span",{className:"gradient-hero-text",children:"Telemedicine"}),e.jsx("span",{className:"font-serif italic font-normal text-foreground
36/90",children:" by Dr. Sohag"})]}),e.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed text-balance",children:"Premium medicines, supplements & medical devices — verified by licensed pharmacists, delivered to your door."})]}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 animate-fade-in-up",style:{animationDelay:"80ms"},children:Lr.map(N=>e.jsx("button",{onClick:()=>o(N),className:V("rounded-full px-4 py-1.5 text-xs font-semibold uppercase tracking-wider transition-bounce border",n===N?"gradient-primary border-transparent text-primary-foreground shadow-lg shadow-primary/30 scale-105":"glass border-border/50 text-muted-foreground hover:text-foreground hover:border-primary-glow/50"),children:N},N))}),e.jsxs("div",{className:"glass-strong rounded-2xl p-3 md:p-4 shadow-card-soft animate-fade-in-up",style:{animationDelay:"120ms"},children:[e.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Hr,{className:"absolute left-4 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(Er,{value:s,onChange:N=>r(N.target.value),placeholder:"Search medicines, supplements, devices...",className:"h-12 pl-11 bg-background/40 border-border/60 rounded-xl focus-visible:ring-primary-glow/50 placeholder:text-muted-foreground/70"}),s&&e.jsx("button",{onClick:()=>r(""),"aria-label":"Clear search",className:"absolute right-3 top-1/2 -translate-y-1/2 rounded-full p-1 text-muted-foreground hover:text-foreground",children:e.jsx(ze,{className:"h-4 w-4"})})]}),e.jsxs(Xe,{value:l,onValueChange:c,children:[e.jsx(Le,{className:"md:w-44 h-12 bg-background/40 border-border/60 rounded-xl",children:e.jsx(Ze,{placeholder:"Sort"})}),e.jsxs(Be,{className:"glass-strong border-border/60",children:[e.jsx(X,{value:"newest",children:"✨ Newest first"}),e.jsx(X,{value:"popular",children:"🔥 Most popular"}),e.jsx(X,{value:"rating",children:"⭐ Top rated"}),e.jsx(X,{value:"price-asc",children:"↑ Price: Low to High"}),e.jsx(X,{value:"price-desc",children:"↓ Price: High to Low"}),e.jsx(X,{value:"name",children:"A–Z"})]})]}),e.jsxs("div",{className:"flex h-12 items-center gap-1 rounded-xl bg-background/40 border border-border/60 p-1",children:[e.jsx("button",{onClick:()=>f("grid"),"aria-label":"Grid view","aria-pressed":u==="grid",className:V("flex h-full w-10 items-center justify-center rounded-lg transition-fast",u==="grid"?"gradient-primary text-primary-foreground shadow-md":"text-muted-foreground hover:text-foreground"),children:e.jsx(Ur,{className:"h-4 w-4"})}),e.jsx("button",{onClick:()=>f("list"),"aria-label":"List view","aria-pressed":u==="list",className:V("flex h-full w-10 items-center justify-center rounded-lg transition-fast",u==="list"?"gradient-primary text-primary-foreground shadow-md":"text-muted-foreground hover:text-foreground"),children:e.jsx($r,{className:"h-4 w-4"})})]}),e.jsxs(st,{children:[e.jsx(Nr,{asChild:!0,children:e.jsxs(q,{variant:"outline",className:"h-12 rounded-xl bg-background/40 border-border/60 px-4 gap-2",children:[e.jsx(Yr,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Filters"}),b.length>0&&e.jsx("span",{className:"flex h-5 min-w-5 items-center justify-center rounded-full gradient-accent px-1.5 text-[10px] font-bold text-accent-foreground",children:b.length})]})}),e.jsxs(nt,{className:"glass-strong border-border/60 w-full sm:max-w-md",children:[e.jsx(ot,{children:e.jsx(at,{className:"text-2xl font-extrabold gradient-hero-text",children:"Refine Results"})}),e.jsxs("div",{className:"mt-6 space-y-7",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(xe,{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Brand"}),e.jsxs(Xe,{value:d,onValueChange:a,children:[e.jsx(Le,{className:"h-11 bg-background/40 border-border/60 rounded-xl",children:e.jsx(Ze,{})}),e.jsx(Be,{className:"glass-strong border-border/60",children:Br.map(N=>e.jsx(X,{value:N,children:N},N))})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(xe,{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Price Range"}),e.jsxs("span",{className:"text-sm font-bold gradient-hero-text",children:["৳",p[0]," – ৳",p[1]]})]}),e.jsx(ur,{min:0,max:S,step:50,value:p,onValueChange:N=>v(N),className:"py-2"})]}),e.jsxs("div",{className:"space-y-4 rounded-xl glass p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(xe,{htmlFor:"instock",className:"text-sm font-medium text-foreground",children:"In Stock Only"}),e.jsx(Ye,{id:"instock",checked:j,onCheckedChange:m})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(xe,{htmlFor:"onsale",className:"text-sm font-medium text-foreground",children:"On Sale"}),e.jsx(Ye,{id:"onsale",checked:g,onCheckedChange:w})]})]}),e.jsx(q,{variant:"outline",onClick:x,className:"w-full h-11 rounded-xl border-border/60",children:"Clear all filters"})]})]})]})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 border-t border-border/40 px-1 pt-3",children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:["Showing ",e.jsx("span",{className:"font-bold text-foreground",children:h})," products"]}),b.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground
36/50",children:"•"}),b.map(N=>e.jsx("span",{className:"rounded-full bg-primary/15 border border-primary/30 px-2.5 py-0.5 text-[11px] font-semibold text-primary-glow",children:N},N)),e.jsx("button",{onClick:x,className:"text-[11px] text-accent-glow hover:underline",children:"Clear"})]}),e.jsx("span",{className:"ml-auto hidden md:inline text-xs font-semibold text-foreground",children:"🚚 ডেলিভারি চার্জ ৳১৫০ (সারা বাংলাদেশ) • ক্যাশ অন ডেলিভারি"})]})]})]})},Qe=({product:t,view:s="grid"})=>{const r=jr(),{addToCart:n,toggleWishlist:o,toggleCompare:d,setQuickViewProduct:a,wishlist:l,compare:c,setCartOpen:u}=ve(),f=l.includes(t.id),p=c.includes(t.id),v=t.oldPrice?Math.round((t.oldPrice-t.price)/t.oldPrice*100):0,S=t.inStock&&t.stockCount>0&&t.stockCount<=30,j=()=>{n(t),u(!1),Sr.success("Proceeding to checkout",{description:`${t.name} ready for purchase`}),r("/checkout")};return s==="list"?e.jsxs("article",{className:"group relative flex gap-5 rounded-3xl glass-card p-4 transition-smooth hover:-translate-y-1 hover:shadow-glow",children:[e.jsxs(ae,{to:`/product/${t.id}`,className:"relative h-44 w-44 shrink-0 overflow-hidden rounded-2xl bg-gradient-to-br from-secondary/40 to-background block",children:[e.jsx("img",{src:t.image,alt:t.name,loading:"lazy",className:"h-full w-full object-cover transition-bounce group-hover:scale-110"}),v>0&&e.jsxs("span",{className:"absolute left-2 top-2 rounded-full gradient-accent px-2.5 py-0.5 text-[11px] font-black text-accent-foreground shadow-lg ring-1 ring-accent-glow/50",children:[v,"% OFF"]})]}),e.jsxs("div",{className:"flex flex-1 flex-col gap-2",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"text-[10px] font-bold uppercase tracking-[0.18em] text-primary-glow",children:[t.brand," • ",t.category]}),e.jsx(ae,{to:`/product/${t.id}`,children:e.jsx("h3",{className:"mt-1 text-lg font-bold text-foreground line-clamp-1 hover:text-accent-glow transition-colors",children:t.name})})]}),e.jsx("button",{onClick:()=>o(t.id),className:V("rounded-full glass p-2 transition-bounce hover:scale-110",f&&"text-accent-glow"),children:e.jsx(ue,{className:V("h-4 w-4",f&&"fill-current")})})]}),e.jsx("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:t.shortDescription}),e.jsxs("div",{className:"mt-1 flex items-center gap-2 text-xs",children:[e.jsx($e,{className:"h-3 w-3 fill-yellow-400 text-yellow-400"}),e.jsx("span",{className:"font-semibold text-foreground",children:t.rating}),e.jsxs("span",{className:"text-muted-foreground",children:["(",t.reviewCount,")"]})]}),e.jsxs("div",{className:"mt-auto flex items-end justify-between gap-3 pt-2",children:[e.jsxs("div",{className:"flex items-baseline gap-2",children:[t.oldPrice&&e.jsxs("span",{className:"text-sm text-muted-foreground/70 line-through",children:["৳",t.oldPrice]}),e.jsxs("span",{className:"text-2xl font-extrabold gradient-hero-text",children:["৳",t.price]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(q,{size:"sm",variant:"outline",onClick:()=>n(t),disabled:!t.inStock,className:"rounded-xl border-primary-glow/30 bg-background/50 px-4 font-semibold text-foreground backdrop-blur transition-bounce hover:scale-105 hover:bg-primary/10 hover:border-primary-glow",children:[e.jsx(he,{className:"h-4 w-4"})," Cart"]}),e.jsx(q,{size:"sm",variant:"outline",asChild:!0,className:"rounded-xl border-primary-glow/30 bg-background/50 px-4 font-semibold text-foreground backdrop-blur transition-bounce hover:scale-105 hover:bg-primary/10 hover:border-primary-glow",children:e.jsxs(ae,{to:`/product/${t.id}`,children:[e.jsx(Ie,{className:"h-4 w-4"})," Details"]})}),e.jsxs(q,{size:"sm",onClick:j,disabled:!t.inStock,className:"rounded-xl gradient-primary border-0 px-5 font-semibold text-primary-foreground shadow-lg shadow-primary/30 transition-bounce hover:scale-105 hover:shadow-glow",children:["Buy Now ",e.jsx(Ge,{className:"h-4 w-4"})]})]})]})]})]}):e.jsxs("article",{className:"group relative flex h-full flex-col overflow-hidden rounded-[1.75rem] glass-card transition-smooth hover:-translate-y-2 hover:shadow-glow",children:[e.jsx("div",{className:"pointer-events-none absolute -inset-px rounded-[1.75rem] opacity-0 transition-smooth group-hover:opacity-100",style:{background:"linear-gradient(135deg, hsl(var(--primary-glow) / 0.5), transparent 40%, hsl(var(--accent-glow) / 0.5))",WebkitMask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",WebkitMaskComposite:"xor",padding:"1px"}}),e.jsxs("div",{className:"relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-60",style:{background:"radial-gradient(circle at 30% 20%, hsl(var(--primary) / 0.35), transparent 60%), radial-gradient(circle at 80% 90%, hsl(var(--accent) / 0.3), transparent 55%)"}}),e.jsxs(ae,{to:`/product/${t.id}`,className:"relative aspect-[5/4] w-full overflow-hidden block",children:[e.jsx("img",{src:t.image,alt:t.name,loading:"lazy",className:"h-full w-full object-cover transition-[transform] duration-700 ease-out group-hover:scale-[1.12]"}),e.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-2/3 bg-gradient-to-t from-card via-card/60 to-transparent"}),e.jsx("div",{className:"pointer-events-none absolute inset-y-0 -left-1/2 w-1/3 -skew-x-12 bg-gradient-to-r from-transparent via-white/35 to-transparent opacity-0 group-hover:opacity-100 group-hover:translate-x-[400%]",style:{transition:"transform 1.1s ease, opacity 0.3s ease"}})]}),e.jsxs("div",{className:"absolute left-2.5 top-2.5 z-20 flex flex-col gap-1",children:[v>0&&e.jsxs("span",{className:"relative flex items-center gap-1 rounded-full gradient-accent px-2.5 py-1 text-[11px] font-black uppercase tracking-wider text-accent-foreground shadow-lg shadow-accent/60 ring-1 ring-accent-glow/50 animate-pulse",children:[e.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/40 blur-md -z-10"}),e.jsx(Cr,{className:"h-3 w-3 fill-current"}),v,"% OFF"]}),t.isNew&&e.jsxs("span",{className:"flex items-center gap-0.5 rounded-full bg-success/95 backdrop-blur px-2 py-0.5 text-[9px] font-black uppercase tracking-wider text-success-foreground shadow-lg",children:[e.jsx(ut,{className:"h-2.5 w-2.5"}),"New"]}),t.isBestseller&&e.jsxs("span",{className:"flex items-center gap-0.5 rounded-full bg-warning/95 backdrop-blur px-2 py-0.5 text-[9px] font-black uppercase tracking-wider text-warning-foreground shadow-lg",children:[e.jsx(qe,{className:"h-2.5 w-2.5 fill-current"}),"Hot"]})]}),e.jsxs("div",{className:"absolute right-2.5 top-2.5 z-20 flex flex-col gap-1 opacity-0 translate-x-2 transition-smooth group-hover:opacity-100 group-hover:translate-x-0",children:[e.jsx("button",{onClick:()=>o(t.id),"aria-label":"Wishlist",className:V("rounded-full glass-strong p-1.5 transition-bounce hover:scale-110 hover:text-accent-glow",f&&"text-accent-glow bg-accent/20"),children:e.jsx(ue,{className:V("h-3 w-3",f&&"fill-current")})}),e.jsx("button",{onClick:()=>a(t),"aria-label":"Quick view",className:"rounded-full glass-strong p-1.5 transition-bounce hover:scale-110 hover:text-primary-glow",children:e.jsx(Ie,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>d(t.id),"aria-label":"Compare",className:V("rounded-full glass-strong p-1.5 transition-bounce hover:scale-110 hover:text-primary-glow",p&&"text-primary-glow bg-primary/20"),children:e.jsx(mt,{className:"h-3 w-3"})})]}),e.jsxs("div",{className:"absolute bottom-2 right-2 z-20 flex items-center gap-1 rounded-full bg-background/85 backdrop-blur px-2 py-0.5 text-[9px] font-bold text-foreground border border-border/60 shadow-sm",children:[e.jsx(lt,{className:"h-2.5 w-2.5 text-primary-glow"})," ডেলিভারি ৳১৫০"]}),!t.inStock&&e.jsx("div",{className:"absolute inset-0 z-30 flex items-center justify-center bg-background/85 backdrop-blur-md",children:e.jsx("span",{className:"rounded-full bg-destructive px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-destructive-foreground shadow-xl",children:"Out of Stock"})})]}),e.jsxs("div",{className:"relative z-10 flex flex-1 flex-col gap-1.5 px-3.5 pb-3.5 pt-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1 text-[9px] font-black uppercase tracking-[0.15em] text-primary-glow",children:[e.jsx(Ee,{className:"h-2.5 w-2.5"}),e.jsx("span",{className:"truncate",children:t.brand})]}),e.jsxs("div",{className:"flex items-center gap-0.5 text-[10px] font-bold text-foreground",children:[e.jsx($e,{className:"h-2.5 w-2.5 fill-yellow-400 text-yellow-400"}),e.jsx("span",{children:t.rating}
36),e.jsxs("span",{className:"text-muted-foreground/70 font-normal",children:["(",t.reviewCount>999?`${(t.reviewCount/1e3).toFixed(1)}k`:t.reviewCount,")"]})]})]}),e.jsx(ae,{to:`/product/${t.id}`,children:e.jsx("h3",{className:"line-clamp-2 min-h-[2.2rem] text-[13px] font-bold leading-tight text-foreground transition-colors group-hover:text-accent-glow",children:t.name})}),t.prescription&&e.jsxs("div",{className:"flex items-center gap-1 text-[9px] font-bold text-warning",children:[e.jsx(kr,{className:"h-2.5 w-2.5"})," Prescription required"]}),t.inStock&&S&&e.jsxs("div",{className:"flex items-center gap-1 rounded-md bg-warning/10 border border-warning/20 px-1.5 py-1 text-[9px] font-bold text-warning",children:[e.jsx(qe,{className:"h-2.5 w-2.5 fill-current animate-pulse"}),"Only ",t.stockCount," left — order fast!"]}),e.jsx("div",{className:"mt-auto pt-2",children:e.jsxs("div",{className:"relative flex items-stretch justify-between gap-2 rounded-xl border border-primary-glow/15 bg-gradient-to-br from-primary/[0.08] via-background/30 to-accent/[0.08] p-2 backdrop-blur-sm",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-xl opacity-50",style:{background:"radial-gradient(circle at 0% 50%, hsl(var(--primary-glow) / 0.15), transparent 60%)"}}),e.jsxs("div",{className:"relative flex flex-col justify-center leading-none",children:[e.jsxs("div",{className:"flex items-baseline gap-1.5",children:[e.jsxs("span",{className:"text-2xl font-black tracking-tight gradient-hero-text",children:["৳",t.price]}),t.oldPrice&&e.jsxs("span",{className:"text-[11px] font-medium text-muted-foreground/60 line-through decoration-accent/60 decoration-[1.5px]",children:["৳",t.oldPrice]})]}),e.jsx("span",{className:"mt-1 text-[8px] font-bold uppercase tracking-[0.18em] text-muted-foreground/70",children:"Best price"})]}),v>0&&e.jsxs("div",{className:"relative flex flex-col items-center justify-center rounded-lg gradient-accent px-2.5 py-1 shadow-md shadow-accent/40 ring-1 ring-accent-glow/40",children:[e.jsx("span",{className:"text-[8px] font-black uppercase tracking-[0.15em] text-accent-foreground/90 leading-none",children:"Save"}),e.jsxs("span",{className:"text-sm font-black text-accent-foreground leading-tight my-0.5",children:["৳",(t.oldPrice??0)-t.price]}),e.jsxs("span",{className:"text-[8px] font-bold text-accent-foreground/85 leading-none",children:["−",v,"%"]})]})]})}),e.jsxs("div",{className:"grid grid-cols-6 gap-1.5 pt-2",children:[e.jsxs(q,{size:"sm",variant:"outline",onClick:()=>n(t),disabled:!t.inStock,"aria-label":"Add to cart",className:"col-span-2 h-8 rounded-lg border-primary-glow/30 bg-background/40 backdrop-blur px-0 font-semibold text-foreground transition-bounce hover:scale-[1.03] hover:bg-primary/15 hover:border-primary-glow disabled:opacity-50",children:[e.jsx(he,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"text-[11px]",children:"Cart"})]}),e.jsx(q,{size:"sm",variant:"outline",asChild:!0,className:"col-span-2 h-8 rounded-lg border-primary-glow/30 bg-background/40 backdrop-blur px-0 font-semibold text-foreground transition-bounce hover:scale-[1.03] hover:bg-primary/15 hover:border-primary-glow",children:e.jsxs(ae,{to:`/product/${t.id}`,children:[e.jsx(Ie,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"text-[11px]",children:"Details"})]})}),e.jsxs(q,{size:"sm",onClick:j,disabled:!t.inStock,className:"group/btn col-span-2 h-8 relative overflow-hidden rounded-lg gradient-primary border-0 px-0 font-bold text-primary-foreground shadow-md shadow-primary/40 transition-bounce hover:scale-[1.03] hover:shadow-glow disabled:opacity-50 disabled:hover:scale-100",children:[e.jsx("span",{className:"text-[11px]",children:"Buy"}),e.jsx(Ge,{className:"h-3.5 w-3.5 transition-transform group-hover/btn:translate-x-0.5"})]})]})]})]})},Ws=({products:t,view:s="grid"})=>t.length===0?e.jsxs("div",{className:"rounded-3xl glass-card p-16 text-center animate-fade-in-up",children:[e.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-2xl bg-muted/40",children:e.jsx(Gr,{className:"h-8 w-8 text-muted-foreground"})}),e.jsx("h3",{className:"text-xl font-bold text-foreground",children:"No products found"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Try adjusting your filters or search terms."})]}):s==="list"?e.jsx("div",{className:"flex flex-col gap-4",children:t.map((r,n)=>e.jsx("div",{className:"animate-fade-in-up",style:{animationDelay:`${n*40}ms`},children:e.jsx(Qe,{product:r,view:"list"})},r.id))}):e.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:t.map((r,n)=>e.jsx("div",{className:"animate-fade-in-up",style:{animationDelay:`${n*50}ms`},children:e.jsx(Qe,{product:r})},r.id))}),Us=({open:t,onOpenChange:s,products:r})=>{const{wishlist:n,toggleWishlist:o,addToCart:d}=ve(),a=r.filter(l=>n.includes(l.id));return e.jsx(st,{open:t,onOpenChange:s,children:e.jsxs(nt,{className:"glass-strong border-border/60 w-full sm:max-w-md flex flex-col p-0",children:[e.jsx(ot,{className:"border-b border-border/40 p-6",children:e.jsxs(at,{className:"flex items-center gap-2 text-2xl font-extrabold",children:[e.jsx(ue,{className:"h-6 w-6 text-accent-glow fill-current"}),e.jsx("span",{className:"gradient-hero-text",children:"Wishlist"}),e.jsx("span",{className:"ml-1 rounded-full bg-accent/20 px-2.5 py-0.5 text-xs font-bold text-accent-glow",children:a.length})]})}),a.length===0?e.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center px-6 text-center",children:[e.jsx("div",{className:"mb-4 flex h-20 w-20 items-center justify-center rounded-2xl gradient-accent opacity-80",children:e.jsx(ue,{className:"h-9 w-9 text-accent-foreground"})}),e.jsx("h3",{className:"text-lg font-bold text-foreground",children:"No favorites yet"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Tap the heart on any product to save it."})]}):e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:a.map(l
36=>e.jsxs("div",{className:"flex gap-3 rounded-2xl glass p-3",children:[e.jsx("img",{src:l.image,alt:l.name,className:"h-20 w-20 shrink-0 rounded-xl object-cover"}),e.jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h4",{className:"text-sm font-bold text-foreground line-clamp-2",children:l.name}),e.jsx("button",{onClick:()=>o(l.id),className:"rounded-lg p-1 text-muted-foreground hover:text-destructive",children:e.jsx(ze,{className:"h-3.5 w-3.5"})})]}),e.jsxs("span",{className:"text-lg font-extrabold gradient-hero-text",children:["৳",l.price]}),e.jsxs(q,{size:"sm",onClick:()=>d(l),className:"mt-auto h-8 rounded-lg gradient-primary border-0 text-primary-foreground text-xs",children:[e.jsx(he,{className:"h-3 w-3"})," Add to Cart"]})]})]},l.id))})]})})},$s=({products:t})=>{const{compare:s,toggleCompare:r}=ve();if(s.length===0)return null;const n=t.filter(o=>s.includes(o.id));return e.jsx("div",{className:"fixed bottom-4 left-1/2 z-40 -translate-x-1/2 animate-fade-in-up",children:e.jsxs("div",{className:"flex items-center gap-3 rounded-2xl glass-strong p-3 shadow-glow border-gradient",children:[e.jsxs("div",{className:"flex items-center gap-1.5 px-2 text-sm font-bold text-foreground",children:[e.jsx(mt,{className:"h-4 w-4 text-primary-glow"}),"Compare (",n.length,"/3)"]}),e.jsx("div",{className:"flex items-center gap-1.5",children:n.map(o=>e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:o.image,alt:o.name,className:"h-10 w-10 rounded-lg border-2 border-primary-glow/40 object-cover"}),e.jsx("button",{onClick:()=>r(o.id),className:"absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full bg-destructive text-destructive-foreground",children:e.jsx(ze,{className:"h-2.5 w-2.5"})})]},o.id))}),e.jsx(q,{size:"sm",disabled:n.length<2,className:"h-9 rounded-xl gradient-primary border-0 text-primary-foreground font-bold disabled:opacity-50",children:"Compare Now"})]})})},Gs=t=>{const s=t.map(o=>o.price),r=Math.max(...s,0);return{min:0,max:Math.ceil(r/500)*500,rawMax:r}},Sn=()=>{const{data:t=Vr}=Fr(),s=i.useMemo(()=>Gs(t),[t]),[r,n]=i.useState(""),[o,d]=i.useState("All"),[a,l]=i.useState("All Brands"),[c,u]=i.useState("newest"),[f,p]=i.useState("grid"),[v,S]=i.useState([0,s.max]),[j,m]=i.useState(!1),[g,w]=i.useState(!1),[h,x]=i.useState(!1),k=i.useMemo(()=>{let y=[...t];if(o!=="All"&&(y=y.filter(b=>b.category===o)),a!=="All Brands"&&(y=y.filter(b=>b.brand===a)),j&&(y=y.filter(b=>b.inStock)),g&&(y=y.filter(b=>b.onSale)),y=y.filter(b=>b.price>=v[0]&&b.price<=v[1]),r.trim()){const b=r.toLowerCase();y=y.filter(N=>N.name.toLowerCase().includes(b)||N.shortDescription.toLowerCase().includes(b)||N.brand.toLowerCase().includes(b)||N.tags.some(z=>z.toLowerCase().includes(b)))}switch(c){case"price-asc":y.sort((b,N)=>b.price-N.price);break;case"price-desc":y.sort((b,N)=>N.price-b.price);break;case"name":y.sort((b,N)=>b.name.localeCompare(N.name));break;case"rating":y.sort((b,N)=>N.rating-b.rating);break;case"popular":y.sort((b,N)=>N.reviewCount-b.reviewCount);break}return y},[t,r,o,a,c,v,j,g]),T=()=>{d("All"),l("All Brands"),S([0,s.max]),m(!1),w(!1),n("")},F=[{icon:Ee,title:"100% Authentic",desc:"Every product verified by licensed pharmacists"},{icon:lt,title:"Lightning Delivery",desc:"Same-day in Dhaka, 1–3 days nationwide"},{icon:Rr,title:"Doctor Consult",desc:"Free 24/7 consultation with certified doctors"},{icon:Ir,title:"Best Price Promise",desc:"Found cheaper? We'll match it instantly"},{icon:zr,title:"Cold-Chain Care",desc:"Temperature-controlled for sensitive medicines"},{icon:Kr,title:"Subscription Save",desc:"Auto-refill monthly with up to 15% off"}];return e.jsxs(Pr,{children:[e.jsx(Tr,{title:"Shop — Authentic Medicines & Health Products | Dr. Sohag",description:"Dr. Sohag-এর ভেরিফাইড হেলথ প্রোডাক্ট শপ — ২০% ছাড়, ক্যাশ অন ডেলিভারি এবং সারা বাংলাদেশে মাত্র ৳১৫০ ডেলিভারি চার্জ।",path:"/shop"}),e.jsxs("div",{className:"container max-w-7xl mx-auto px-4 py-6 md:py-10",children:[e.jsx(Ks,{search:r,onSearch:n,category:o,onCategory:d,brand:a,onBrand:l,sort:c,onSort:u,view:f,onView:p,priceRange:v,onPriceRange:S,priceMax:s.max,inStockOnly:j,onInStockOnly:m,onSaleOnly:g,onOnSaleOnly:w,totalCount:k.length,onClearFilters:T,onOpenWishlist:()=>x(!0)}),e.jsx(Ws,{products:k,view:f}),e.jsxs("section",{className:"mt-24 space-y-8",children:[e.jsxs("div",{className:"text-center space-y-2 animate-fade-in-up",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full glass px-4 py-1.5 text-xs font-semibold tracking-wide text-accent-glow",children:[e.jsx(Ee,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Why Telemedicine E-commerce"})]}),e.jsxs("h2",{className:"text-3xl md:text-4xl font-extrabold tracking-tight",children:[e.jsx("span",{className:"gradient-hero-text",children:"Care"}),e.jsx("span",{className:"font-serif italic font-normal text-foreground
36/90",children:" you can trust"})]})]}),e.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:F.map((y,b)=>e.jsxs("div",{className:"group relative overflow-hidden rounded-3xl glass-card p-6 transition-smooth hover:-translate-y-1 hover:shadow-glow animate-fade-in-up",style:{animationDelay:`${b*80}ms`},children:[e.jsx("div",{className:"absolute -right-10 -top-10 h-32 w-32 rounded-full bg-primary/20 blur-3xl opacity-0 transition-opacity group-hover:opacity-100"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"mb-4 inline-flex h-12 w-12 items-center justify-center rounded-2xl gradient-primary text-primary-foreground shadow-lg shadow-primary/30 transition-bounce group-hover:scale-110 group-hover:rotate-6",children:e.jsx(y.icon,{className:"h-5 w-5"})}),e.jsx("h3",{className:"text-base font-bold text-foreground",children:y.title}),e.jsx("p",{className:"mt-1.5 text-sm text-muted-foreground leading-relaxed",children:y.desc})]})]},y.title))})]})]}),e.jsx(Us,{open:h,onOpenChange:x,products:t}),e.jsx($s,{products:t})]})};export{Sn as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.