PageSourceSearch

https://edgvance.vercel.app/_next/static/immutable/chunks/1i4mnc4x4hldp.js

js edgvance.vercel.app collected 2026-10-03 06:50:53 UTC 23,224 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34914,e=>{"use strict";var t=e.i(48277),a=e.i(30668),l=e.i(32890),r=e.i(32929),s=e.i(69940),n=e.i(97209),i=e.i(75221),c=e.i(48031),o=e.i(95847),d=e.i(45138),u=e.i(42017),p=e.i(94744);let x=["all","Fashion","Electronics"];function m({initialCategory:e,initialProducts:h=[],initialTotal:g=null,initialPages:f=null,initialCategories:b=[],initialFilters:y={}}){let v,k,j,w=(0,s.useCartStore)(e=>e.addItem),[N,S]=(0,a.useState)(b),{products:C,total:A,loading:P,loadingMore:R,error:$,hasMore:M,filters:E,setFilter:L,resetFilters:T,activeChips:O,loadMore:_,refetch:B}=(0,n.default)({initialProducts:h,initialTotal:g,initialPages:f,initialFilters:y,syncUrl:!0,lockedFilters:e?{category:e}:{}});(0,a.useEffect)(()=>{b.length>0||(async()=>{try{let e={};"all"!==E.department&&(e.department=E.department);let{data:t}=await r.default.get("/categories",{params:e});S(t)}catch(e){console.error("Failed to fetch categories")}})()},[E.department,b.length]);let z=[];return N.forEach(e=>{z.push(e.name),e.subcategories?.forEach(e=>z.push(e.name))}),(0,t.jsx)("div",{className:"min-h-screen bg-white px-4 pb-20 md:px-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl pt-8 md:pt-14",children:[(0,t.jsx)(i.default,{eyebrow:e?"Category":"Collection",title:e||"Shop All",description:e?`Explore our premium collection of ${e.toLowerCase()}.`:"Curated collection of premium essentials."}),(0,t.jsxs)("div",{className:"mb-8 flex flex-col gap-8 border-b border-hairline pb-6 md:flex-row md:items-end md:justify-between",children:[(0,t.jsx)("nav",{className:"flex gap-8","aria-label":"Departments",children:x.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>L("department",e),className:`pb-1 text-[10px] font-bold uppercase tracking-[0.2em] transition-colors ${E.department===e?"border-b border-black text-black":"border-b border-transparent text-gray-400 hover:text-black"}`,children:"all"===e?"All":e},e))}),(0,t.jsxs)("div",{className:"relative md:w-72",children:[(0,t.jsx)(l.Search,{className:"absolute left-0 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400","aria-hidden":"true"}),(0,t.jsx)("input",{type:"search",placeholder:"Search","aria-label":"Search products",className:"w-full border-b border-hairline bg-transparent py-2 pl-6 text-[11px] font-bold uppercase tracking-[0.15em] placeholder:text-gray-400 focus:border-black focus:outline-none",value:E.search,onChange:e=>L("search",e.target.value)})]})]}),!e&&z.length>0&&(0,t.jsx)("div",{className:"scrollbar-none mb-8 flex gap-6 overflow-x-auto pb-1",children:["all",...z].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>L("category",e),className:`whitespace-nowrap pb-1 text-[10px] font-bold uppercase tracking-[0.18em] transition-colors ${E.category===e?"border-b border-black text-black":"border-b border-transparent text-gray-400 hover:text-black"}`,children:"all"===e?"Everything":e},e))}),(v=[...e?[{key:"Category",value:e,label:e,onClear:()=>{window.location.href="/shop"}}]:[],...O],k=()=>{T(),e&&(window.location.href="/shop")},j=v.length>0||E.search||"all"!==E.department||"all"!==E.priceRange,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{total:A,shown:C.length,loading:P,sortBy:E.sortBy,onSortChange:e=>L("sortBy",e),priceRange:E.priceRange,onPriceChange:e=>L("priceRange",e),activeFilters:v,onResetAll:j?k:void 0}),(0,t.jsx)(o.default,{products:C,loading:P,loadingMore:R,error:$,onRetry:B,onAddToCart:e=>{w(e);let t=e.title||e.name||"Product";p.default.success(`${t} added to cart!`),(0,u.event)({action:"add_to_cart",category:"ecommerce",label:t,value:e.price})},onReset:k,emptyTitle:"No matches found",emptyMessage:E.search?`We couldn't find any products matching "${E.search}".`:`No products found under ${e||"the selected filters"}.`})]})),(0,t.jsx)(d.default,{shown:C.length,total:A,hasMore:M,loading:R,onLoadMore:_})]})})}e.s(["ShopContent",0,m,"default",0,function({initialProducts:e=[],initialTotal:l=null,initialPages:r=null,initialCategories:s=[],initialFilters:n={}}){return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)("div",{className:"min-h-screen bg-white pt-24 text-center font-serif uppercase tracking-widest",children:"Loading Shop..."}),children:(0,t.jsx)(m,{initialProducts:e,initialTotal:l,initialPages:r,initialCategories:s,initialFilters:n})})}])},75221,e=>{"use strict";var t=e.i(48277);e.s(["default",0,function({eyebrow:e,title:a,description:l,children:r}){return(0,t.jsxs)("header",{className:"mb-10 md:mb-14",children:[e&&(0,t.jsx)("p",{className:"mb-4 text-[10px] font-bold uppercase tracking-[0.25em] text-gray-400",children:e}),(0,t.jsx)("h1",{className:"font-serif text-4xl font-normal leading-[1.05] tracking-tight text-black md:text-6xl",children:a}),l&&(0,t.jsx)("p",{className:"mt-5 max-w-xl text-sm leading-relaxed text-gray-500",children:l}),r]})}])},95847,e=>{"use strict";var t=e.i(48277),a=e.i(30668),l=e.i(12463),r=e.i(3333),s=e.i(16506),n=e.i(41605),i=e.i(95541),c=e.i(87373),o=e.i(94744);let d="(max-width: 768px) 50vw, (max-width: 1280px) 33vw, 25vw",u=()=>()=>{},p=()=>Math.floor(Date.now()/864e5),x=()=>null;function m({product:e,onAddToCart:h,density:g="default",priority:f=!1}){let b=(0,a.useSyncExternalStore)(u,p,x),{toggleWishlist:y,isInWishlist:v}=(0,i.useWishlistStore)(),{isAuthenticated:k}=(0,c.useAuthStore)(),j="compact"===g,w=v(e._id),N=0===e.stock,S=function(e,t){if(0===e.stock)return{label:"Sold Out",tone:"solid"};if(e.compareAtPrice>e.price){let t=Math.round((e.compareAtPrice-e.price)/e.compareAtPrice*100);return{label:`${t}% Off`,tone:"light"}}return e.stock>0&&e.stock<10?{label:"Low Stock",tone:"light"}
1:null!==t&&e.createdAt&&t-Math.floor(new Date(e.createdAt).getTime()/864e5)<14?{label:"New",tone:"light"}:null}(e,b),C=e.title||e.name,A=`/shop/${e.slug||e._id}`,P=e.images?.[1],R=e.compareAtPrice>e.price,$=R?Math.round((e.compareAtPrice-e.price)/e.compareAtPrice*100):0;return(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsxs)("div",{className:`relative overflow-hidden bg-surface ${j?"aspect-[4/5]":"aspect-[3/4]"}`,children:[(0,t.jsxs)(s.default,{href:A,className:"absolute inset-0 z-0","aria-label":C,children:[(0,t.jsx)(n.default,{src:e.images?.[0]||e.image||"/images/placeholder.png",alt:C,priority:f,sizes:d,className:`w-full h-full transition-all duration-[900ms] ease-out ${P?"md:group-hover:opacity-0":"group-hover:scale-[1.03]"}`}),P&&(0,t.jsx)("div",{className:"absolute inset-0 hidden opacity-0 transition-opacity duration-700 md:block md:group-hover:opacity-100",children:(0,t.jsx)(n.default,{src:P,alt:"",sizes:d,className:"w-full h-full"})})]}),S&&(0,t.jsx)("span",{className:`pointer-events-none absolute top-3 left-3 z-10 px-2 py-1 text-[9px] font-black uppercase tracking-[0.18em] ${"solid"===S.tone?"bg-black text-white":"bg-white/95 text-black"}`,children:S.label}),(0,t.jsx)("button",{type:"button",onClick:()=>{k?y(e._id):o.default.error("Please login to add items to wishlist")},"aria-label":w?`Remove ${C} from wishlist`:`Save ${C} to wishlist`,"aria-pressed":w,className:"absolute top-2 right-2 z-10 p-2 transition-opacity duration-300 md:opacity-0 md:group-hover:opacity-100 md:focus-visible:opacity-100",children:(0,t.jsx)(l.Heart,{className:`w-4 h-4 transition-colors ${w?"fill-red-500 text-red-500":"text-black/70 hover:text-black"}`})}),!N&&h&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(e),className:"absolute bottom-0 left-0 right-0 z-10 flex items-center justify-center gap-1.5 bg-black py-3 text-[10px] font-black uppercase tracking-[0.2em] text-white transition-transform duration-300 md:translate-y-full md:group-hover:translate-y-0 md:focus-visible:translate-y-0",children:[(0,t.jsx)(r.Plus,{className:"w-3 h-3","aria-hidden":"true"}),"Quick Add"]})]}),(0,t.jsx)(s.default,{href:A,className:"block",children:(0,t.jsxs)("div",{className:j?"pt-3 space-y-1":"pt-4 space-y-1.5",children:[(e.brand||e.category)&&(0,t.jsx)("p",{className:"text-[9px] font-bold uppercase tracking-[0.22em] text-gray-400",children:e.brand||e.category}),(0,t.jsx)("h3",{className:`font-medium leading-snug line-clamp-2 text-black ${j?"text-[11px]":"text-[13px]"}`,children:C}),!j&&e.numReviews>0&&(0,t.jsxs)("p",{className:"text-[10px] text-gray-400",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"★"})," ",e.rating?.toFixed(1),(0,t.jsxs)("span",{className:"ml-1",children:["(",e.numReviews,")"]})]}),(0,t.jsxs)("div",{className:"flex items-baseline gap-2 pt-0.5",children:[(0,t.jsxs)("span",{className:`font-bold tracking-tight text-black ${j?"text-[12px]":"text-[13px]"}`,children:["₹",e.price?.toLocaleString("en-IN")]}),R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-[11px] text-gray-400 line-through",children:["₹",e.compareAtPrice?.toLocaleString("en-IN")]}),(0,t.jsxs)("span",{className:"text-[10px] font-black uppercase tracking-wider text-black",children:["−",$,"%"]})]})]})]})})]})}var h=e.i(44984),g=e.i(89961),f=e.i(32217);let b={default:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-x-4 gap-y-10 md:gap-x-6 md:gap-y-14",compact:"grid grid-cols-2 md:grid-cols-4 xl:grid-cols-5 gap-x-4 gap-y-8 md:gap-x-5 md:gap-y-12"};e.s(["default",0,function({products:e=[],loading:a=!1,loadingMore:l=!1,error:r=null,onRetry:s,onAddToCart:n,onReset:i,density:c="default",skeletonCount:o=8,emptyTitle:d,emptyMessage:u,priorityCount:p=4}){let x=b[c]||b.default;return a?(0,t.jsx)("div",{className:x,children:Array.from({length:o}).map((e,a)=>(0,t.jsx)(h.ProductTileSkeleton,{density:c},a))}):r?(0,t.jsx)(f.default,{message:r,onRetry:s}):0===e.length?(0,t.jsx)(g.default,{title:d,message:u,onReset:i}):(0,t.jsxs)("div",{className:x,children:[e.map((e,a)=>(0,t.jsx)(m,{product:e,onAddToCart:n,density:c,priority:a<p},e._id)),l&&Array.from({length:4}).map((e,a)=>(0,t.jsx)(h.ProductTileSkeleton,{density:c},`more-${a}`))]})}],95847)},89961,e=>{"use strict";var t=e.i(48277),a=e.i(35691);let l=(0,e.i(35884).default)("package-search",[["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"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);var r=e.i(52443),s=e.i(16506);e.s(["default",0,function({title:e="No products found",message:n="We couldn't find what you're looking for. Try a different search or filter.",actionLabel:i="Browse All Products",actionHref:c="/shop",onReset:o}){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[45vh] px-4 text-center",children:[(0,t.jsx)(a.motion.div,{initial:{scale:.9,opacity:0}
1,animate:{scale:1,opacity:1},className:"w-16 h-16 bg-gray-50 rounded-full flex items-center justify-center mb-6",children:(0,t.jsx)(l,{className:"w-8 h-8 text-gray-300"})}),(0,t.jsx)("h2",{className:"text-xl font-black uppercase tracking-wider mb-2",children:e}),(0,t.jsx)("p",{className:"text-gray-500 text-sm max-w-md mb-6",children:n}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[(0,t.jsxs)(s.default,{href:c,className:"flex items-center justify-center gap-2 px-6 py-3 bg-black text-white font-bold rounded-none hover:bg-zinc-800 transition-all text-xs uppercase tracking-widest",children:[i," ",(0,t.jsx)(r.ArrowRight,{className:"w-3.5 h-3.5"})]}),o&&(0,t.jsx)("button",{type:"button",onClick:o,className:"px-6 py-3 border border-black text-black font-bold rounded-none hover:bg-black hover:text-white transition-all text-xs uppercase tracking-widest",children:"Reset All Filters"})]})]})}],89961)},32217,e=>{"use strict";var t=e.i(48277),a=e.i(35691),l=e.i(42350),r=e.i(33189),s=e.i(30791),n=e.i(16506);e.s(["default",0,function({title:e="Something went wrong",message:i="We encountered an unexpected error. Please try again later.",onRetry:c,showHome:o=!0}){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[60vh] px-4 text-center",children:[(0,t.jsx)(a.motion.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"w-20 h-20 bg-red-50 rounded-full flex items-center justify-center mb-6",children:(0,t.jsx)(l.AlertCircle,{className:"w-10 h-10 text-red-500"})}),(0,t.jsx)("h2",{className:"text-2xl font-black mb-2",children:e}),(0,t.jsx)("p",{className:"text-gray-500 max-w-md mb-8",children:i}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[c&&(0,t.jsxs)("button",{onClick:c,className:"flex items-center justify-center gap-2 px-8 py-3 bg-black text-white font-bold rounded-xl hover:bg-zinc-800 transition-all",children:[(0,t.jsx)(s.RefreshCcw,{className:"w-4 h-4"})," Try Again"]}),o&&(0,t.jsxs)(n.default,{href:"/",className:"flex items-center justify-center gap-2 px-8 py-3 border border-gray-200 font-bold rounded-xl hover:bg-gray-50 transition-all",children:[(0,t.jsx)(r.ArrowLeft,{className:"w-4 h-4"})," Back to Home"]})]})]})}])},44984,e=>{"use strict";var t=e.i(48277);function a({className:e,...l}){return(0,t.jsx)("div",{className:`animate-pulse rounded-md bg-gray-100 ${e}`,...l})}e.s(["ProductTileSkeleton",0,function({density:e="default"}){let l="compact"===e;return(0,t.jsxs)("div",{children:[(0,t.jsx)(a,{className:`rounded-none ${l?"aspect-[4/5]":"aspect-[3/4]"}`}),(0,t.jsxs)("div",{className:l?"pt-3 space-y-2":"pt-4 space-y-2.5",children:[(0,t.jsx)(a,{className:"h-2 w-1/4 rounded-none"}),(0,t.jsx)(a,{className:"h-3 w-3/4 rounded-none"}),(0,t.jsx)(a,{className:"h-3 w-1/3 rounded-none"})]})]})},"TableSkeleton",0,function({rows:e=5}){return(0,t.jsx)("div",{className:"space-y-4",children:Array.from({length:e}).map((e,l)=>(0,t.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,t.jsx)(a,{className:"h-12 w-12 rounded-xl"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(a,{className:"h-4 w-full"}),(0,t.jsx)(a,{className:"h-3 w-1/2"})]})]},l))})}])},97209,28370,48031,45138,e=>{"use strict";var t=e.i(30668),a=e.i(96086),l=e.i(32929);e.i(94744);let r=[{label:"Newest",value:"newest"},{label:"Price: Low to High",value:"price-low-high"},{label:"Price: High to Low",value:"price-high-low"},{label:"Most Popular",value:"popularity"}],s=[{label:"Any Price",value:"all"},{label:"Under ₹1,000",value:"0-1000"},{label:"₹1,000 – ₹5,000",value:"1000-5000"},{label:"₹5,000 – ₹20,000",value:"5000-20000"},{label:"Over ₹20,000",value:"20000-1000000"}];e.s(["DEFAULT_PAGE_SIZE",0,15,"PRICE_RANGES",0,s,"SORT_OPTIONS",0,r],28370);let n={category:"all",department:"all",gender:"all",collection:"all",search:"",priceRange:"all",sortBy:"newest"},i=["category","department","gender","collection","search","priceRange","sortBy"];var c=e.i(57631);let o=["sortBy"];e.s(["default",0,function({initialProducts:e=[],initialTotal:r=null,initialPages:d=null,defaultFilters:u={},lockedFilters:p={},initialFilters:x={},syncUrl:m=!1,pageSize:h=15}={}){let g=(0,a.useRouter)(),f=(0,a.useSearchParams)(),b=(0,t.useMemo)(()=>({...n,...u}),[]),y=JSON.stringify(p),v=(0,t.useMemo)(()=>JSON.parse(y),[y]),k=(0,t.useMemo)(()=>JSON.stringify({...n,...u,...x,...p}),[]),[j,w]=(0,t.useState)(()=>{let e={};if(m&&f)for(let t of i){let a=f.get(t);a&&(e[t]=a)}return{...b,...x,...e}}),[N,S]=(0,t.useState)(()=>Array.isArray(e)&&e.length>0?e:c.fallbackProducts.slice(0,h)),[C,A]=(0,t.useState)(()=>"number"==typeof r&&r>0?r:Array.isArray(e)&&e.length>0?e.length:c.fallbackProducts.length),[P,R]=(0,t.useState)(()=>"number"==typeof d&&d>0?d:Math.ceil(c.fallbackProducts.length/h)),[$,M]=(0,t.useState)(1),[E,L]=(0,t.useState)(!1),[T,O]=(0,t.useState)(!1),[_,B]=(0,t.useState)(null),z=(0,t.useRef)(null),F=(0,t.useRef)(!1),I=(0,t.useRef)(!1),D=JSON.stringify((0,t.useMemo)(()=>({...j,...v}),[j,v])),U=(0,t.useRef)(0),H=(0,t.useCallback)(async(e,{append:t=!1,isLoop:a=!1}={})=>{z.current?.abort();let r=new AbortController;z.current=r,t?O(!0):L(!0),B(null);try{let s=(await l.default.get("/products",{params:function(e,{page:t,limit:a}={}){let l={};if(t&&(l.page=t),a&&(l.limit=a),e.category&&"all"!==e.category&&(l.category=e.category),e.department&&"all"!==e.department&&(l.department=e.department),e.gender&&"all"!==e.gender&&(l.gender=e.gender),e.collection&&"all"!==e.collection&&(l.collection=e.collection),e.search&&(l.search=e.search),e.sortBy&&(l.sortBy=e.sortBy),e.priceRange&&"all"!==e.priceRange){let[t,a
1]=String(e.priceRange).split("-");t&&(l.minPrice=t),a&&(l.maxPrice=a)}return l}(JSON.parse(D),{page:e,limit:h}),signal:r.signal})).data,n=s.products||s||[],i=a?n.map((t,a)=>({...t,_id:`${t._id||t.id||a}-loop-${U.current}-${e}`,slug:t.slug||t._id})):n;S(e=>t?[...e,...i]:i),A(s.total??n.length),R(s.pages??1),M(e)}catch(e){if(e?.code==="ERR_CANCELED"||e?.name==="CanceledError"||e?.name==="AbortError")return;t&&0!==N.length||(S(c.fallbackProducts.slice(0,h)),A(c.fallbackProducts.length),R(Math.ceil(c.fallbackProducts.length/h)),M(1))}finally{r.signal.aborted||(L(!1),O(!1))}},[D,h]);(0,t.useEffect)(()=>{if(U.current=0,!F.current&&(F.current=!0,e.length>0&&k===D))return;let t=setTimeout(()=>H(1,{append:!1}),400);return()=>clearTimeout(t)},[D]),(0,t.useEffect)(()=>{if(!m)return;if(!I.current){I.current=!0;return}let e=new URLSearchParams;for(let t of i){if(t in v)continue;let a=j[t];a&&"all"!==a&&a!==b[t]&&e.set(t,a)}let t=e.toString();g.replace(t?`?${t}`:window.location.pathname,{scroll:!1})},[D,m]),(0,t.useEffect)(()=>()=>z.current?.abort(),[]);let J=(0,t.useCallback)((e,t)=>{w(a=>a[e]===t?a:{...a,[e]:t})},[]),W=(0,t.useCallback)(()=>w(b),[b]),q=(0,t.useCallback)(()=>{!E&&!T&&($<P?H($+1,{append:!0,isLoop:!1}):C>0&&P>0&&(U.current+=1,H($%P+1,{append:!0,isLoop:!0})))},[H,E,T,$,P,C]),G=(0,t.useCallback)(()=>{U.current=0,H(1,{append:!1})},[H]),K=(0,t.useMemo)(()=>i.filter(e=>!o.includes(e)&&!(e in v)&&j[e]&&"all"!==j[e]&&j[e]!==b[e]).map(e=>({key:"priceRange"===e?"Price":e,value:j[e],label:"priceRange"===e?s.find(t=>t.value===j[e])?.label??j[e]:j[e],onClear:()=>J(e,n[e])})),[j,v,b,J]);return{products:N,total:C,pages:P,page:$,loading:E,loadingMore:T,error:_,hasMore:C>0,filters:j,setFilter:J,resetFilters:W,activeChips:K,loadMore:q,refetch:G}}],97209);var d=e.i(48277),u=e.i(22638),p=e.i(87635);function x({label:e,value:a,options:l,onChange:r}){let[s,n]=(0,t.useState)(!1),i=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(!s)return;let e=e=>{i.current&&!i.current.contains(e.target)&&n(!1)},t=e=>{"Escape"===e.key&&n(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[s]);let c=l.find(e=>e.value===a);return(0,d.jsxs)("div",{className:"relative",ref:i,children:[(0,d.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),"aria-expanded":s,"aria-haspopup":"listbox",className:"flex items-center gap-2 text-[10px] font-bold uppercase tracking-[0.2em] text-black transition-opacity hover:opacity-60",children:[(0,d.jsx)("span",{className:"text-gray-400",children:e}),c?.label??l[0].label,(0,d.jsx)(u.ChevronDown,{className:`w-3 h-3 transition-transform ${s?"rotate-180":""}`,"aria-hidden":"true"})]}),s&&(0,d.jsx)("div",{role:"listbox",className:"absolute right-0 top-full z-30 mt-3 w-56 border border-black bg-white py-2",children:l.map(e=>(0,d.jsx)("button",{type:"button",role:"option","aria-selected":e.value===a,onClick:()=>{r(e.value),n(!1)},className:`block w-full px-4 py-2.5 text-left text-[10px] font-bold uppercase tracking-[0.15em] transition-colors hover:bg-black hover:text-white ${e.value===a?"text-black":"text-gray-400"}`,children:e.label},e.value))})]})}e.s(["default",0,function({total:e=0,shown:t=0,loading:a=!1,sortBy:l,onSortChange:n,priceRange:i,onPriceChange:c,activeFilters:o=[],onResetAll:u}){let m=o.length>0,h=Math.max(e||0,t);return(0,d.jsxs)("div",{className:"mb-8",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-hairline pb-3",children:[(0,d.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-gray-400",children:a?"Loading":(0,d.jsxs)(d.Fragment,{children:[t>0&&t<h?`${t} of ${h}`:h," ",1===h?"Item":"Items"]})}),(0,d.jsxs)("div",{className:"flex items-center gap-6",children:[c&&(0,d.jsx)(x,{label:"Price",value:i,options:s,onChange:c}),n&&(0,d.jsx)(x,{label:"Sort",value:l,options:r,onChange:n})]})]}),m&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-4",children:[o.map(e=>(0,d.jsxs)("button",{type:"button",onClick:e.onClear,className:"group flex items-center gap-2 border border-hairline px-3 py-1.5 text-[9px] font-bold uppercase tracking-[0.18em] text-black transition-colors hover:border-black",children:[(0,d.jsx)("span",{className:"text-gray-400",children:e.key}),e.label,(0,d.jsx)(p.X,{className:"w-3 h-3 text-gray-400 group-hover:text-black","aria-hidden":"true"})]},`${e.key}-${e.value}`)),u&&(0,d.jsx)("button",{type:"button",onClick:u,className:"ml-2 border-b border-black pb-0.5 text-[9px] font-black uppercase tracking-[0.18em] transition-opacity hover:opacity-60",children:"Reset All"})]})]})}],48031);var m=e.i(80380);e.s(["default",0,function({shown:e,total:a,hasMore:l,loading:r,onLoadMore:s}){let n=(0,t.useRef)(null);return((0,t.useEffect)(()=>
1{if(!l||r)return;let e=new IntersectionObserver(e=>{e[0]?.isIntersecting&&s()},{rootMargin:"450px 0px",threshold:.01}),t=n.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[l,r,s]),!l&&e>0)?(0,d.jsxs)("div",{className:"mt-16 text-center text-[11px] font-extrabold text-gray-400 uppercase tracking-widest py-8 border-t border-gray-100",children:["You've reached the end • ",a," products"]}):l?(0,d.jsxs)("div",{ref:n,className:"mt-12 flex flex-col items-center justify-center gap-3 py-8 min-h-[100px]",children:[r&&(0,d.jsxs)("div",{className:"flex items-center gap-2.5 bg-black text-white text-xs font-extrabold uppercase tracking-wider px-6 py-3 rounded-full shadow-xl shadow-black/10 animate-pulse",children:[(0,d.jsx)(m.Loader2,{className:"w-4 h-4 animate-spin text-white"}),(0,d.jsx)("span",{children:"Loading more products..."})]}),(0,d.jsxs)("p",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400",children:["Showing ",e," of ",a," products"]})]}):null}],45138)},33189,e=>{"use strict";let t=(0,e.i(35884).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],33189)},42350,e=>{"use strict";let t=(0,e.i(35884).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],42350)},3333,e=>{"use strict";let t=(0,e.i(35884).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],3333)},30791,e=>{"use strict";let t=(0,e.i(35884).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.s(["RefreshCcw",0,t],30791)}]);

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.