PageSourceSearch

https://www.nailzy.com/_next/static/chunks/0y0-cazkq676t.js?dpl=dpl_9XE68yMEUsWL5HVyijHSesYsjSjf

js nailzy.com collected 2026-10-02 00:53:33 UTC 25,940 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,607330,e=>{"use strict";let t=(0,e.i(388369).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],607330)},948877,e=>{"use strict";let t=(0,e.i(388369).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",0,t],948877)},126026,e=>{"use strict";let t=(0,e.i(388369).default)("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);e.s(["Truck",0,t],126026)},61572,e=>{"use strict";var t=e.i(681099),a=e.i(514499),s=e.i(307575);e.i(208434);var l=e.i(929685),i=e.i(288409),r=e.i(386586);let n={enabled:!0,text:"Free 2-day shipping by Nailzy · Contiguous US only",bgColor:"#0a0a0a",textColor:"#ffffff",link:null};e.s(["default",0,function(){let[e,o]=(0,a.useState)(n);if((0,a.useEffect)(()=>{!async function(){try{let e=await (0,i.getDoc)((0,l.doc)(r.db,"site_config","ribbon"));e.exists()&&o(e.data())}catch{}}()},[]),!e.enabled)return null;let c="w-full flex items-center justify-center py-2 px-4 text-[13px] font-medium tracking-wide cursor-pointer",d=(0,t.jsx)("span",{style:{color:e.textColor},children:e.text});return e.link?(0,t.jsx)(s.default,{href:e.link,className:c,style:{backgroundColor:e.bgColor},children:d}):(0,t.jsx)("div",{className:c,style:{backgroundColor:e.bgColor},children:d})}])},945307,e=>{"use strict";e.s(["slugify",0,function(e){return e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").slice(0,120)}])},875840,78855,e=>{"use strict";var t=e.i(681099),a=e.i(273599);function s(e){if("string"!=typeof e)return null;let t=e.trim();return t.length>0?t:null}function l(e,t,a=Date.now()){let i=s(e);return null==i||"number"!=typeof t||!Number.isFinite(t)||a>=t?null:i}e.s(["campaignBadgeFieldsFromHit",0,function(e){if(!e)return{label:null,endAtMs:null};let t=e.bestOfferSnapshot;return null!=s(t?.sellerCampaignBadgeLabel)?{label:t?.sellerCampaignBadgeLabel??null,endAtMs:"number"==typeof t?.sellerCampaignEndAtMs?t.sellerCampaignEndAtMs:null}:{label:e.sellerCampaignBadgeLabel??null,endAtMs:"number"==typeof e.sellerCampaignEndAtMs?e.sellerCampaignEndAtMs:null}},"resolveCampaignBadgeLabel",0,l],78855),e.s(["CampaignDealBadge",0,function({label:e,endAtMs:s,className:i=""}){let r=l(e,s);return r?(0,t.jsxs)("span",{className:`inline-flex items-center gap-1 self-start rounded-sm bg-[#fdeaea] px-1.5 py-0.5 text-[10px] font-semibold leading-none text-[#850006] whitespace-nowrap ${i}`,children:[(0,t.jsx)(a.Tag,{className:"w-2.5 h-2.5 shrink-0"}),r]}):null}],875840)},792906,e=>{"use strict";let t="listings",a="isPurchasableNow:true";function s(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function l(e){return e.replace(/[^A-Za-z0-9_-]/g,"")}e.s(["MARKETPLACE_SEARCH_INDEX",0,t,"buildMarketplaceBrowseParams",0,function(e){var i;let r=["status:active",a],n=e.categoryId?l(e.categoryId):"",o=e.subcategoryId?l(e.subcategoryId):"",c=e.brandId?l(e.brandId):"";for(let t of(n&&r.push(`categoryId:${n}`),o&&r.push(`subcategoryId:${o}`),c&&r.push(`brandId:${c}`),e.brandName&&r.push(`brandName:${s(e.brandName)}`),e.categoryName&&r.push(`categoryName:${s(e.categoryName)}`),e.subcategoryName&&r.push(`subcategoryName:${s(e.subcategoryName)}`),e.fbnOnly&&r.push("bestFulfillment:fbn"),e.extraFilters??[]))"string"==typeof t&&t.trim()&&r.push(t.trim());let d=(e.objectIDs??[]).map(l).filter(Boolean);d.length>0&&r.push(`(${d.map(e=>`objectID:${e}`).join(" OR ")})`);let f=[];
1"number"==typeof e.minPriceCents&&f.push(`bestPriceCents>=${Math.floor(e.minPriceCents)}`),"number"==typeof e.maxPriceCents&&f.push(`bestPriceCents<=${Math.floor(e.maxPriceCents)}`);let u=d.length>0||!0===e.curatedOrder||!!c||!!e.brandName,x={query:e.query??"",filters:r.join(" AND "),facets:e.facets??["brandName"],hitsPerPage:e.hitsPerPage??24,page:Math.max(0,Math.floor(e.page??0)),distinct:!0===e.familyDistinct&&!u};return f.length>0&&(x.numericFilters=f),{indexName:"price_asc"===(i=e.sort)?"listings_price_asc":"price_desc"===i?"listings_price_desc":t,searchParams:x}},"buildMarketplaceSearchParams",0,function(e){let t=["status:active",a],i=e.categoryId?l(e.categoryId):"",r=e.subcategoryId?l(e.subcategoryId):"";i&&t.push(`categoryId:${i}`),r&&t.push(`subcategoryId:${r}`),e.brandName&&t.push(`brandName:${s(e.brandName)}`);let n=(e.objectIDs??[]).map(l).filter(Boolean);return n.length>0&&t.push(`(${n.map(e=>`objectID:${e}`).join(" OR ")})`),{query:e.query??"",filters:t.join(" AND "),facets:["brandName"],hitsPerPage:e.hitsPerPage??24,page:Math.max(0,Math.floor(e.page??0)),distinct:!1}},"resolveBrowseFamilyDistinct",0,function(e){return!!e&&!0===e.browseFamilyDistinct}])},568177,687650,e=>{"use strict";var t=e.i(514499);e.i(208434);var a=e.i(929685),s=e.i(288409),l=e.i(386586);let i={fbnLeadDays:3,fbnLeadType:"business",fbnFreeShippingThreshold:null},r=null,n=null;async function o(e){return e?.force!==!0&&r&&Date.now()-r.at<6e4?r.config:n||(n=(0,s.getDoc)((0,a.doc)(l.db,"config","fulfillment")).then(e=>{let t=e.exists()?{...i,...e.data()}:i;return r={config:t,at:Date.now()},n=null,t}).catch(()=>(n=null,i)))}e.s(["useFulfillmentConfig",0,function(e){let a=e?.force===!0,[s,l]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let e=!0;return o({force:a}).then(t=>{e&&l(t)}),()=>{e=!1}},[a]),s}],568177);let c="Free 2-Day Shipping";function d(e){return Number.isInteger(e)?`$${e}`:`$${e.toFixed(2)}`}e.s(["fbnFreeShippingLabel",0,function(e){switch(e.state){case"all":return c;case"over":return`${c} on ${d(e.thresholdDollars)}+`;default:return null}},"formatThresholdDollars",0,d,"resolveFbnFreeShippingPromo",0,function(e,t){return e&&null!=t&&"number"==typeof t&&Number.isFinite(t)&&!(t<0)?0===t?{state:"all"}:{state:"over",thresholdDollars:t}:{state:"none"}}],687650)},786823,e=>{"use strict";var t=e.i(681099),a=e.i(12551);e.s(["default",0,function({size:e="default",className:s=""}){let l="compact"===e;return(0,t.jsxs)("span",{className:`inline-flex items-center gap-1 rounded-full bg-[#0a0a0a] text-white shadow-sm ${l?"text-[9px] px-1.5 py-0.5":"text-[10px] px-2 py-1"} font-semibold tracking-tight ${s}`,"aria-label":"Nailzy's Choice — top recommended product",title:"Top-ranked, highly reviewed, in stock",children:[(0,t.jsx)(a.Sparkles,{size:l?9:11,className:"text-[#d47996]"}),(0,t.jsxs)("span",{children:["Nailzy",(0,t.jsx)("span",{className:"text-[#d47996]",children:"'"}),"s Choice"]})]})},"qualifiesForNailzysChoice",0,function(e){return!0!==e.searchExcluded&&!1!==e.hasActiveOffer&&!1!==e.inStock&&!((e.finalRankingScore??0)<7e3)&&!((e.reviewCount??0)<5)}])},108777,e=>{"use strict";var t=e.i(681099),a=e.i(514499),s=e.i(972299),l=e.i(307575),i=e.i(150629);e.i(208434);var r=e.i(989144),n=e.i(288409),o=e.i(607330),c=e.i(397895),d=e.i(91549),f=e.i(126026),u=e.i(948877),x=e.i(386586),p=e.i(517467),m=e.i(792906),g=e.i(370466),h=e.i(945307),b=e.i(568177),y=e.i(687650),v=e.i(502023),j=e.i(61572),N=e.i(976617),C=e.i(352360),w=e.i(786823),k=e.i(875840),I=e.i(78855),P=e.i(736785),S=e.i(637467),$=e.i(82830),F=e.i(85529);function A(e){let t=e.filter(e=>"active"===e.status&&!e.deleted&&null!=e.stock&&e.stock>0);if(!t.length)return null;let a=t.filter(e=>"fbn"===e.fulfillment);return(a.length?a:t).reduce((e,t)=>e.priceCents<t.priceCents?e:t)}function M(){return(0,t.jsxs)("div",{className:"animate-pulse",children:[(0,t.jsx)("div",{className:"aspect-square w-full bg-[#ebebeb] mb-2"}),(0,t.jsx)("div",{className:"h-2.5 w-12 bg-[#ebebeb] rounded mb-1.5"}),(0,t.jsx)("div",{className:"h-3 w-full bg-[#ebebeb] rounded mb-1"}),(0,t.jsx)("div",{className:"h-3 w-3/4 bg-[#ebebeb] rounded mb-2"}),(0,t.jsx)("div",{className:"h-4 w-14 bg-[#ebebeb] rounded"})]})}function B({item:e,fbnPromoLabel:a}){let i=!!e.buyBox?.comparePriceCents,r=i?Math.round((1-e.buyBox.priceCents/e.buyBox.comparePriceCents)*100):0,n=e.buyBox&&e.sellerId?{listingId:e.id,offerId:e.offerId??void 0,sellerId:e.sellerId,categoryId:e.categoryId??void 0,fulfillment:e.buyBox.isFbn?"fbn":"fbs",priceCents:e.buyBox.priceCents}:null,o=(0,F.usePromotion)(n),d=(0,F.guaranteedAutoDiscount)(o),u=(0,S.useImpressionRef)("category",e.id,e.offerId??null);return(0,t.jsxs)(l.default,{href:e.nid?`/products/${e.nid}/${(0,h.slugify)(e.title)}`:`/product/${e.id}`,ref:u,className:"group block",children:[(0,t.jsxs)("div",{className:"aspect-square w-full overflow-hidden mb-2 relative",children:[e.imageUrl?(0,t.jsx)(s.default,{src:e.imageUrl,alt:e.title,fill:!0,sizes:"(max-width: 640px) 50vw, (max-width: 768px) 33vw, 20vw",className:"object-contain group-hover:scale-105 transition-transform duration-200"}):(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center text-[#d8d8d8]",children:(0,t.jsx)(c.Package,{size:28,strokeWidth:1})}
1),e.isNailzysChoice&&(0,t.jsx)("span",{className:"absolute top-1.5 left-1.5",children:(0,t.jsx)(w.default,{})}),i&&r>0&&(0,t.jsxs)("span",{className:"absolute bottom-0 left-0 text-[10px] font-bold text-white bg-[#850006] px-1.5 py-0.5 leading-none",children:["-",r,"% OFF"]})]}),(0,t.jsx)("p",{className:"text-[11px] text-[#9a9a9a] truncate",children:e.brand}),(0,t.jsx)("p",{className:"text-[13px] text-[#3f3f3f] leading-snug line-clamp-2 mt-0.5 group-hover:text-[#0a0a0a] transition-colors",children:e.title}),(0,t.jsx)(C.InlineStars,{snapshot:e.reviewSnapshot,className:"mt-1"}),(0,t.jsx)("div",{className:"mt-1.5 min-h-[18px]",children:e.loadingOffers?(0,t.jsx)("div",{className:"h-3.5 w-12 bg-[#ebebeb] rounded animate-pulse"}):e.buyBox?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex items-baseline gap-1.5 flex-wrap",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-[14px] font-semibold text-[#166534]",children:["$",(d.promoPriceCents/100).toFixed(2)]}),(0,t.jsxs)("span",{className:"text-[11px] text-[#9a9a9a] line-through",children:["$",(e.buyBox.priceCents/100).toFixed(2)]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:`text-[14px] font-semibold ${i?"text-[#850006]":"text-[#0a0a0a]"}`,children:["$",(e.buyBox.priceCents/100).toFixed(2)]}),i&&(0,t.jsxs)("span",{className:"text-[11px] text-[#9a9a9a] line-through",children:["$",(e.buyBox.comparePriceCents/100).toFixed(2)]})]})}),(0,I.resolveCampaignBadgeLabel)(e.sellerCampaignBadgeLabel,e.sellerCampaignEndAtMs)&&(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(k.CampaignDealBadge,{label:e.sellerCampaignBadgeLabel,endAtMs:e.sellerCampaignEndAtMs})}),e.buyBox.isFbn&&a&&(0,t.jsxs)("p",{className:"text-[10px] font-semibold text-[#166534] mt-0.5 flex items-center gap-0.5",children:[(0,t.jsx)(f.Truck,{size:9,className:"shrink-0"}),a]}),(0,t.jsx)(F.CardPromoChips,{promo:o}),e.couponLabel&&(0,t.jsxs)("span",{className:"inline-block mt-1 text-[11px] font-semibold text-white bg-[#850006] px-2 py-1 leading-none rounded-sm",children:[e.couponLabel," off coupon"]})]}):(0,t.jsx)("span",{className:"text-[11px] text-[#9a9a9a]",children:"Unavailable"})})]})}e.s(["default",0,function(){let e=(0,i.useParams)(),l=(0,i.useRouter)(),c=(0,i.useSearchParams)(),f="string"==typeof e?.slug?e.slug:Array.isArray(e?.slug)?e.slug[0]:"",{authSheetOpen:h,authSheetMode:C,openSignIn:k,openSignUp:S,closeAuthSheet:F}=(0,P.useAuth)(),{lang:_}=(0,$.useLanguage)(),L=(0,b.useFulfillmentConfig)(),E=(0,y.fbnFreeShippingLabel)((0,y.resolveFbnFreeShippingPromo)(!0,L?.fbnFreeShippingThreshold??null)),[D,z]=(0,a.useState)("shop");function O(e){return"es"===_?e.name_es||e.name:"vi"===_&&e.name_vi||e.name}let[T,U]=(0,a.useState)(null),[q,R]=(0,a.useState)([]),[H,X]=(0,a.useState)([]),[K,V]=(0,a.useState)(!1),[G,W]=(0,a.useState)([]),[Y,Z]=(0,a.useState)(0),[J,Q]=(0,a.useState)(0),[ee,et]=(0,a.useState)(0),[ea,es]=(0,a.useState)(!0),[el,ei]=(0,a.useState)(()=>c?.get("sub")??""),[er,en]=(0,a.useState)(""),[eo,ec]=(0,a.useState)("relevance"),[ed,ef]=(0,a.useState)(!1),[eu,ex]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ei(c?.get("sub")??""),et(0)},[c]);let ep=(0,g.useConfigFeatures)(),em=(0,m.resolveBrowseFamilyDistinct)(ep),eg=(0,a.useRef)(!0);(0,a.useEffect)(()=>()=>{eg.current=!1},[]),(0,a.useEffect)(()=>{if(!f)return;let e=!1;return async function(){try{let t=await (0,n.getDocs)((0,n.query)((0,r.collection)(x.db,"categories"),(0,n.where)("slug","==",f)));if(t.empty){e||V(!0);return}let a=t.docs[0],s={id:a.id,slug:f,name:a.data().name??"",name_es:a.data().name_es||void 0,name_vi:a.data().name_vi||void 0,imageUrl:a.data().imageUrl||void 0};if(e)return;U(s);let l=await (0,n.getDocs)((0,n.query)((0,r.collection)(x.db,"categories",s.id,"subcategories"),(0,n.orderBy)("name")));e||R(l.docs.map(e=>({id:e.id,name:e.data().name,name_es:e.data().name_es||void 0,name_vi:e.data().name_vi||void 0,imageUrl:e.data().imageUrl||void 0})));try{let t=(0,m.buildMarketplaceBrowseParams)({categoryId:s.id,hitsPerPage:0}),a=await p.searchClient.searchSingleIndex({indexName:t.indexName,searchParams:t.searchParams}),l=Object.keys(a.facets?.brandName??{}).sort();e||X(l)}catch{}}catch(e){console.error("loadMeta error:",e)}}(),()=>{e=!0}},[f]);let eh=(0,a.useCallback)(async(e,t,a,s,l,i)=>{if(!p.algoliaReady){console.error("Algolia env vars not set — check NEXT_PUBLIC_ALGOLIA_APP_ID and NEXT_PUBLIC_ALGOLIA_SEARCH_KEY"),es(!1);return}es(!0);try{let{indexName:o,searchParams:c}=(0,m.buildMarketplaceBrowseParams)({categoryId:e.id,subcategoryId:t||void 0,brandName:a||void 0,fbnOnl
1y:i,sort:"price_asc"===l?"price_asc":"price_desc"===l?"price_desc":"relevance",page:s,hitsPerPage:24,familyDistinct:em}),d=await p.searchClient.searchSingleIndex({indexName:o,searchParams:c}),f=d.hits,u=f.map(t=>{let a,s,l,i,r;return{...(a=t.brandName??t.brand??"",s=t.imageUrl??t.imageUrls?.[0]??null,l=t.bestOfferSnapshot,i=(0,I.campaignBadgeFieldsFromHit)(t),r=!!l&&l.hasActiveOffer,{id:t.objectID,nid:t.nid??null,title:t.title,brand:a,imageUrl:s,buyBox:r&&l.inStock&&null!=l.priceCents?{priceCents:l.priceCents,comparePriceCents:l.comparePriceCents,isFbn:"fbn"===l.fulfillment}:null,loadingOffers:!r,couponLabel:null,reviewSnapshot:t.reviewSnapshot??null,finalRankingScore:t.finalRankingScore,inStock:t.inStock??l?.inStock,hasActiveOffer:t.hasActiveOffer??l?.hasActiveOffer,searchExcluded:t.searchExcluded,sellerId:l?.bestSellerId??null,offerId:l?.bestOfferId??null,categoryId:null,sellerCampaignBadgeLabel:i.label,sellerCampaignEndAtMs:i.endAtMs}),categoryId:e.id}});for(let e=0;e<u.length;e++){let t=u[e];0===e&&(0,w.qualifiesForNailzysChoice)({finalRankingScore:t.finalRankingScore,inStock:t.inStock,hasActiveOffer:t.hasActiveOffer,reviewCount:t.reviewSnapshot?.count,searchExcluded:t.searchExcluded})&&(t.isNailzysChoice=!0)}if(eg.current&&(W(u),Z(d.nbHits??0),Q(d.nbPages??0),es(!1)),f.length>0){let a=f.map(e=>e.objectID),s=function(e){let t=[];for(let a=0;a<e.length;a+=30)t.push(e.slice(a,a+30));return t}(a),l=await Promise.all(s.map(e=>(0,n.getDocs)((0,n.query)((0,r.collection)(x.db,"offers"),(0,n.where)("listingId","in",e),(0,n.where)("status","==","active"))))),i=new Map;for(let e of l)for(let t of e.docs){let e={id:t.id,...t.data()};i.has(e.listingId)||i.set(e.listingId,[]),i.get(e.listingId).push(e)}eg.current&&W(e=>e.map(e=>{var t;let a,s=A(i.get(e.id)??[]);return{...e,buyBox:(t=i.get(e.id)??[],(a=A(t))?{priceCents:a.priceCents,comparePriceCents:a.comparePriceCents&&a.comparePriceCents>a.priceCents?a.comparePriceCents:null,isFbn:"fbn"===a.fulfillment}:null),loadingOffers:!1,sellerId:e.sellerId??s?.sellerId??null,offerId:e.offerId??s?.id??null}}));let o=new Map;for(let[e,t]of i)for(let a of t)o.set(a.id,e);try{let a=await (0,n.getDocs)((0,n.query)((0,r.collection)(x.db,"coupons"),(0,n.where)("status","==","active"))),s=new Map;for(let l of a.docs){let a=l.data(),i="percentage"===a.discountType?`Extra ${a.discountValue}%`:`Extra $${a.discountValue.toFixed(2)}`;for(let e of a.listingIds??[])s.has(e)||s.set(e,i);for(let e of a.offerIds??[]){let t=o.get(e);t&&!s.has(t)&&s.set(t,i)}if("category"===a.scopeType&&a.categoryId===e.id)for(let e of u)s.has(e.id)||s.set(e.id,i);if("subcategory"===a.scopeType&&a.categoryId===e.id&&(!t||a.subcategoryId===t))for(let e of u)s.has(e.id)||s.set(e.id,i)}eg.current&&s.size>0&&W(e=>e.map(e=>({...e,couponLabel:s.get(e.id)??null})))}catch{}}}catch(e){console.error("Algolia search error:",e),eg.current&&es(!1)}},[em]);(0,a.useEffect)(()=>{T&&void 0!==ep&&eh(T,el,er,ee,eo,ed)},[T,el,er,ee,eo,ed,eh,ep]);let eb=+!!el+ +!!er+ +("relevance"!==eo)+ +!!ed;function ey(){ei(""),en(""),ec("relevance"),ef(!1),et(0)}function ev(){return(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[!ea&&(0,t.jsxs)("p",{className:"text-[12px] text-[#9a9a9a]",children:[Y.toLocaleString()," product",1!==Y?"s":""]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold text-[#3f3f3f] uppercase tracking-wide mb-1",children:"Sort"}),["relevance","price_asc","price_desc"].map(e=>(0,t.jsx)("button",{onClick:()=>{ec(e),et(0)},className:`text-left text-[13px] px-2 py-1.5 rounded-lg transition-colors ${eo===e?"bg-[#f2f2f2] text-[#0a0a0a] font-medium":"text-[#3f3f3f] hover:bg-[#f9f9f9]"}`,children:"relevance"===e?"Relevance":"price_asc"===e?"Price: Low → High":"Price: High → Low"},e))]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold text-[#3f3f3f] uppercase tracking-wide mb-1",children:"Fulfillment"}),(0,t.jsxs)("button",{onClick:()=>{ef(!ed),et(0)},className:`text-left text-[13px] flex items-center gap-2 px-2 py-1.5 rounded-lg transition-colors ${ed?"bg-[#fdf0f5] text-[#c96a8a] font-medium":"text-[#3f3f3f] hover:bg-[#f9f9f9]"}`,children:[(0,t.jsx)("span",{className:"text-[11px]",children:"📦"})," By Nailzy"]})]}),H.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold text-[#3f3f3f] uppercase tracking-wide mb-1",children:"Brand"}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 max-h-64 overflow-y-auto",children:[(0,t.jsx)("button",{onClick:()=>void(en(""),et(0)),className:`text-left text-[13px] px-2 py-1.5 rounded-lg transition-colors ${!er?"bg-[#f2f2f2] text-[#0a0a0a] font-medium":"text-[#3f3f3f] hover:bg-[#f9f9f9]"}`,children:"All brands"}),H.map(e=>(0,t.jsx)("button",{onClick:()=>{en(er===e?"":e),et(0)},className:`text-left text-[13px] px-2 py-1.5 rounded-lg transition-colors truncate ${er===e?"bg-[#f2f2f2] text-[#0a0a0a] font-medium":"text-[#3f3f3f] hover:bg-[#f9f9f9]"}`,children:e},e))]})]}),eb>0&&(0,t.jsxs)("button",{onClick:ey,className:"flex items-center gap-1.5 text-[12px] text-[#9a9a9a] hover:text-[#3f3f3f] transition-colors",children:[(0,t.jsx)(d.X,{size:12})," Clear all filters"]})]})}return K?(0,t.jsxs)("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4 text-[#9a9a9a]",children:[(0,t.jsx)("p",{className:"text-[16px]",children:"Category not found."}),(0,t.jsx)("button",{onClick:()=>
1l.push("/"),className:"text-[14px] underline text-[#3f3f3f]",children:"Back to home"})]}):(0,t.jsxs)("div",{className:"min-h-screen flex flex-col bg-white",children:[(0,t.jsx)(j.default,{}),(0,t.jsx)(v.default,{activeTab:D,onTabChange:z}),(0,t.jsx)("div",{className:"max-w-[1440px] mx-auto w-full px-4 md:px-8 pt-4 pb-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 overflow-x-auto [&::-webkit-scrollbar]:hidden py-2",children:[(0,t.jsx)("button",{onClick:()=>l.push("/"),className:"shrink-0 p-1.5 rounded-lg hover:bg-[#f2f2f2] text-[#9a9a9a] hover:text-[#3f3f3f] transition-colors","aria-label":"Back",children:(0,t.jsx)(o.ChevronLeft,{size:18})}),(0,t.jsxs)("button",{onClick:()=>void(ei(""),et(0)),className:"flex flex-col items-center gap-1.5 group shrink-0",children:[(0,t.jsx)("div",{className:`w-14 h-14 rounded-full overflow-hidden relative flex items-center justify-center transition-all duration-150 group-hover:scale-105 group-active:scale-95 ring-2 ${!el?"ring-[#0a0a0a] ring-offset-2":"ring-transparent"} ${T?.imageUrl?"bg-[#e8f2ff]":"bg-[#f0f4ff]"}`,children:T?.imageUrl?(0,t.jsx)(s.default,{src:T.imageUrl,alt:T.name,fill:!0,className:"object-contain p-2",sizes:"56px"}):(0,t.jsx)("span",{className:"text-xl",children:"🛍️"})}),(0,t.jsx)("span",{className:`text-[11px] leading-tight text-center line-clamp-2 w-16 transition-colors ${!el?"text-[#0a0a0a] font-medium":"text-[#3f3f3f] group-hover:text-[#0a0a0a]"}`,children:T?O(T):"All"})]}),q.map(e=>(0,t.jsxs)("button",{onClick:()=>{ei(el===e.id?"":e.id),et(0)},className:"flex flex-col items-center gap-1.5 group shrink-0",children:[(0,t.jsx)("div",{className:`w-14 h-14 rounded-full overflow-hidden relative flex items-center justify-center transition-all duration-150 group-hover:scale-105 group-active:scale-95 ring-2 ${el===e.id?"ring-[#0a0a0a] ring-offset-2":"ring-transparent"} ${e.imageUrl?"bg-[#e8f2ff]":"bg-[#f0f0f0]"}`,children:e.imageUrl?(0,t.jsx)(s.default,{src:e.imageUrl,alt:e.name,fill:!0,className:"object-contain p-2",sizes:"56px"}):(0,t.jsx)("span",{className:"text-xl",children:"🏷️"})}),(0,t.jsx)("span",{className:`text-[11px] leading-tight text-center line-clamp-2 w-16 transition-colors ${el===e.id?"text-[#0a0a0a] font-medium":"text-[#3f3f3f] group-hover:text-[#0a0a0a]"}`,children:O(e)})]},e.id))]})}),(0,t.jsxs)("main",{className:"flex-1 max-w-[1440px] mx-auto w-full px-4 md:px-8 py-5 pb-28 md:pb-12 flex gap-8 items-start",children:[(0,t.jsx)("aside",{className:"hidden md:block w-52 shrink-0 sticky top-20",children:(0,t.jsx)(ev,{})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4 md:hidden",children:[(0,t.jsxs)("button",{onClick:()=>ex(!0),className:`flex items-center gap-1.5 h-8 px-3 rounded-lg text-[12px] font-medium border transition-colors ${eb>0?"bg-[#f2f2f2] border-[#ccc] text-[#0a0a0a]":"border-[#e4e4e4] text-[#9a9a9a] hover:text-[#3f3f3f]"}`,children:[(0,t.jsx)(u.SlidersHorizontal,{size:13}),"Filters",eb>0?` (${eb})`:""]}),(0,t.jsxs)("select",{value:eo,onChange:e=>{ec(e.target.value),et(0)},className:"h-8 pl-3 pr-7 border border-[#e4e4e4] rounded-lg text-[12px] text-[#3f3f3f] bg-white outline-none appearance-none cursor-pointer",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundPosition:"right 8px center"},children:[(0,t.jsx)("option",{value:"relevance",children:"Sort"}),(0,t.jsx)("option",{value:"price_asc",children:"Price: Low → High"}),(0,t.jsx)("option",{value:"price_desc",children:"Price: High → Low"})]}),eb>0&&(0,t.jsxs)("button",{onClick:ey,className:"flex items-center gap-1 h-8 px-2.5 rounded-lg text-[12px] text-[#9a9a9a] hover:text-[#3f3f3f] hover:bg-[#f2f2f2] transition-colors ml-auto",children:[(0,t.jsx)(d.X,{size:12})," Clear"]})]}),ea?(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 ga
1p-4",children:Array.from({length:24}).map((e,a)=>(0,t.jsx)(M,{},a))}):0===G.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-28 gap-3 text-center",children:[(0,t.jsx)("p",{className:"text-[32px]",children:"🔍"}),(0,t.jsx)("p",{className:"text-[16px] font-medium text-[#3f3f3f]",children:"No products found"}),(0,t.jsx)("p",{className:"text-[13px] text-[#9a9a9a]",children:"Try adjusting your filters"}),eb>0&&(0,t.jsx)("button",{onClick:ey,className:"mt-1 text-[13px] text-[#9a9a9a] underline",children:"Clear all filters"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4",children:G.map(e=>(0,t.jsx)(B,{item:e,fbnPromoLabel:E},e.id))}),J>1&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-10",children:[(0,t.jsx)("button",{onClick:()=>{et(e=>Math.max(0,e-1)),window.scrollTo({top:0,behavior:"smooth"})},disabled:0===ee,className:"h-9 px-4 rounded-lg border border-[#e4e4e4] text-[13px] text-[#3f3f3f] disabled:opacity-30 hover:bg-[#f9f9f9] transition-colors",children:"← Prev"}),(0,t.jsxs)("span",{className:"text-[13px] text-[#9a9a9a] px-2",children:[ee+1," / ",J]}),(0,t.jsx)("button",{onClick:()=>{et(e=>Math.min(J-1,e+1)),window.scrollTo({top:0,behavior:"smooth"})},disabled:ee>=J-1,className:"h-9 px-4 rounded-lg border border-[#e4e4e4] text-[13px] text-[#3f3f3f] disabled:opacity-30 hover:bg-[#f9f9f9] transition-colors",children:"Next →"})]})]})]})]}),eu&&(0,t.jsxs)("div",{className:"fixed inset-0 z-50 md:hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/40",onClick:()=>ex(!1)}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-white rounded-t-2xl max-h-[80vh] flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-[#f0f0f0] shrink-0",children:[(0,t.jsx)("p",{className:"text-[15px] font-semibold text-[#0a0a0a]",children:"Filters"}),(0,t.jsx)("button",{onClick:()=>ex(!1),className:"w-8 h-8 rounded-full hover:bg-[#f2f2f2] flex items-center justify-center transition-colors",children:(0,t.jsx)(d.X,{size:16})})]}),(0,t.jsx)("div",{className:"overflow-y-auto p-5",children:(0,t.jsx)(ev,{})})]})]}),(0,t.jsx)(N.default,{open:h,mode:C,onClose:F,onToggleMode:function(){"sign-in"===C?S():k()}})]})}])}]);

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.