PageSourceSearch

https://usebd.com/_next/static/chunks/9675.6395650428d7178a.js

js usebd.com collected 2026-10-04 13:56:37 UTC 12,445 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9675],{737:(e,l,t)=>{t.d(l,{gC:()=>d,iA:()=>g});var a=t(13725),s=t(22483),r=t(80159);let d=e=>{var l;let{titleElement:t,number:d,subtitle:n,className:i}=e,{shopDetails:c}=(0,s.lT)();return(0,a.jsxs)("h1",{className:"text-4xl md:text-6xl font-normal text-blue-zatiq ".concat(i),style:{fontFamily:(0,r.yK)(null==c||null==(l=c.shop_theme)?void 0:l.theme_name).secondaryFont},children:[t,(null!=d?d:0)>0&&(0,a.jsxs)("span",{className:"text-lg md:text-3xl text-[#9CA3AF] ml-2",children:["(",d," ",n,")"]})]})};var n=t(73001),i=t(86222),c=t(5225),x=t(17866),o=t(64718),u=t(3001),m=t(66797),h=t(83081);let g=e=>{let{ignoreProductId:l}=e,t=(0,i.useRouter)(),{shopDetails:r}=(0,s.lT)(),[d,g]=(0,n.useState)(null),{t:p}=(0,u.Bd)(),{relatedProducts:y}=(0,h.D)({ignoreProductId:l}),b=(0,n.useCallback)(e=>{let l=new URLSearchParams(window.location.search);l.delete("shopId"),l.delete("productId");let a=l.toString();t.push("".concat(r.baseUrl,"/products/").concat(e).concat(a?"?".concat(a):""))},[t,r.baseUrl]);return(0,a.jsx)("div",{className:"w-full mb-20 xl:mb-32",children:y.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{selectedProduct:d,isOpen:!!d,onClose:()=>g(null)}),(0,a.jsxs)("h4",{className:" font-semibold mb-10 mt-12 text-xl md:text-2xl dark:text-gray-200",children:[p("related_products"),":"]}),(0,a.jsx)(o.A,{children:y.map(e=>(0,a.jsx)(m.ProductContextProvider,{baseProduct:e,children:(0,a.jsx)(x.H,{onSelectProduct:()=>g(e),...e,onNavigate:()=>b(e.id)})},null==e?void 0:e.id))})]})})}},22881:(e,l,t)=>{t.d(l,{A:()=>s});var a=t(13725);t(73001);let s=()=>(0,a.jsx)("div",{className:"border shadow-sm rounded-md p-4 max-w-sm w-full mx-auto",children:(0,a.jsxs)("div",{className:"animate-pulse flex flex-col",children:[(0,a.jsx)("div",{className:"rounded-lg bg-slate-300 h-37.5 sm:h-[167px] w-full"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-6 pt-5",children:[(0,a.jsx)("div",{className:"h-5 bg-slate-300 rounded-sm"}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,a.jsx)("div",{className:"h-2 bg-slate-300 rounded-sm col-span-2"}),(0,a.jsx)("div",{className:"h-2 bg-slate-300 rounded-sm col-span-1"})]}),(0,a.jsx)("div",{className:"h-2 bg-slate-300 rounded-sm"})]})]})]})})},33724:(e,l,t)=>{t.d(l,{A:()=>x});var a=t(13725),s=t(22483),r=t(73001),d=t(27839),n=t(86348),i=t(60974),c=t(3001);let x=e=>{let{showMobileFilter:l,setShowMobileFilter:t,priceFilters:x,selectedRange:o,handleRangeSelect:u}=e,{country_currency:m}=(0,s.pJ)(),{t:h}=(0,c.Bd)(),g=(0,r.useCallback)(()=>{t(!1)},[t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"lg:hidden w-full bg-black-full bg-opacity-50 fixed top-0 right-0 h-full z-1000 flex ".concat(l?"flex":"hidden")}),(0,a.jsxs)("div",{className:"fixed top-0 right-0 z-1001 w-75 bg-white dark:bg-black-27 h-full p-6 transition-transform duration-300 ".concat(l?"translate-x-0 lg:hidden":"translate-x-full"),children:[(0,a.jsxs)("div",{className:"pb-4 border-b border-b-gray-600 flex items-center justify-between",children:[(0,a.jsx)("h1",{className:"text-gray-700 dark:text-gray-200 text-2xl leading-tight",children:h("filter")}),(0,a.jsx)("button",{type:"button",onClick:g,"aria-label":"Close filter",children:(0,a.jsx)(d.A,{size:24,className:"text-red-500 cursor-pointer"})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-gray-700 dark:text-gray-200 text-xl mt-7",children:h("price")}),(0,a.jsx)("div",{className:"flex flex-col gap-2",children:null==x?void 0:x.map(e=>(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("button",{onClick:u(e),children:(null==o?void 0:o.id)===(null==e?void 0:e.id)?(0,a.jsx)(n.A,{size:16,className:"text-black-2 dark:text-gray-200"}):(0,a.jsx)(i.A,{size:16,className:"text-black-2 dark:text-gray-200"})}),(0,a.jsxs)("p",{className:"text-gray-700 dark:text-gray-200 text-base",children:[m," ",null==e?void 0:e.min," - ",m," ",null==e?void 0:e.max]})]},null==e?void 0:e.id))})]})]})]})}},57823:(e,l,t)=>{t.r(l),t.d(l,{default:()=>P});var a=t(13725),s=t(22483),r=t(37337),d=t(66797),n=t(73001),i=t(86222),c=t(88294),x=t(98372),o=t(27839),u=t(86348),m=t
1(60974),h=t(93559),g=t(80159),p=t(3001),y=t(17866),b=t(5225),j=t(22881),v=t(33724),k=t(14637),f=t(737),N=t(25062),w=t(78867),C=t(22904);let A=()=>{let{totalPrice:e,totalProducts:l}=(0,d.useCartContext)(),{shopDetails:t}=(0,s.lT)(),r=(0,i.useRouter)();return(0,a.jsx)(N.P,{onClick:()=>r.push("".concat(t.baseUrl,"/checkout")),showCartFloatingBtn:l>0,totalPrice:e,totalProducts:l,theme:"Luxura"})},_=(0,n.memo)(function(e){let{product:l,index:t,onSelect:s,onNavigate:r}=e,i=(0,n.useRef)(l);i.current=l;let c=(0,n.useCallback)(()=>s(i.current),[s]),x=(0,n.useCallback)(()=>r(l.id),[r,l.id]);return(0,a.jsx)(d.ProductContextProvider,{baseProduct:l,children:(0,a.jsx)(y.H,{onSelectProduct:c,...l,imgPriority:t<4,onNavigate:x})})}),P=()=>{var e,l,t,y,N,P,S;let{shopDetails:z}=(0,s.lT)(),R=null!=(P=null==z||null==(t=z.metadata)||null==(l=t.settings)||null==(e=l.shop_settings)?void 0:e.show_popularity_product_filter)&&P,{inventoryProducts:F,pages:q,priceFilters:H,currentPage:T,setCurrentPage:U,setPriceRange:B,isLoading:I}=(0,d.useInventoryContext)(),{country_currency:L}=(0,s.pJ)(),E=F&&(null==F?void 0:F.products.length),M=(0,i.useRouter)(),{legacyValue:D,handleLegacyChange:J}=(0,c.a)(R),O=(0,n.useCallback)(e=>{let l=new URLSearchParams(window.location.search);l.delete("shopId"),l.delete("productId");let t=l.toString();M.push("".concat(z.baseUrl,"/products/").concat(e).concat(t?"?".concat(t):""))},[M,z.baseUrl]),[V,K]=(0,n.useState)(null),Z=(0,n.useCallback)(e=>K(e),[]),[G,Q]=(0,n.useState)(null),W=e=>()=>{G&&G.id===(e&&e.id)||!e?(Q(null),B(null)):(Q(e),B(e)),Y(!X)},[X,Y]=(0,n.useState)(!1),{t:$}=(0,p.Bd)();return(0,C.R)(void 0,!I),(0,a.jsxs)("div",{className:"px-4 md:px-0",children:[(0,a.jsx)(b.A,{selectedProduct:V,isOpen:!!V,onClose:()=>K(null)}),(0,a.jsx)(v.A,{showMobileFilter:X,setShowMobileFilter:Y,priceFilters:H,selectedRange:G,handleRangeSelect:W}),(0,a.jsxs)("div",{className:"pt-6 md:pt-9 pb-21",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsxs)("div",{className:"w-full flex items-center justify-between mb-6 xl:mb-9",children:[(0,a.jsx)(f.gC,{titleElement:$("all_products"),number:E}),(0,a.jsx)("button",{onClick:()=>Y(!X),className:"lg:hidden",children:(0,a.jsx)(x.A,{size:24,className:"text-gray-700 dark:text-gray-200"})})]}),E>=1&&(0,a.jsx)("div",{className:"hidden lg:flex pl-2 h-13.75  rounded-xl items-center justify-between",children:(0,a.jsxs)("div",{className:"text-black-1.2 text-sm flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-gray-700 dark:text-gray-200 text-base whitespace-nowrap",children:$("sort_by")}),(0,a.jsxs)("select",{onChange:e=>J(e.target.value),value:D,className:"text-input w-45.5 text-sm mt-0 rounded-none text-gray-900! dark:text-gray-100! bg-white dark:bg-black-2 dark:scheme-dark",style:{borderRadius:"none",padding:"8px 14px 8px 14px"},children:[(0,a.jsx)("option",{value:"",className:"mt-5 pt-5 text-gray-900 dark:text-gray-100",children:$("default")}),(0,a.jsx)("option",{value:r.H.ASC,className:"text-gray-900 dark:text-gray-100",children:$("price_low_to_high")}),(0,a.jsx)("option",{value:r.H.DESC,className:"text-gray-900 dark:text-gray-100",children:$("price_high_to_low")}),R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("option",{value:"order_count",className:"text-gray-900 dark:text-gray-100",children:$("popular_high_to_low")}),(0,a.jsx)("option",{value:"-order_count",className:"text-gray-900 dark:text-gray-100",children:$("popular_low_to_high")})]})]})]})})]}),(0,a.jsx)(k.A,{className:"my-3 md:my-4 xl:my-5"}),(0,a.jsxs)("div",{className:"flex gap-10",children:[(null!=(S=null==H?void 0:H.length)?S:0)>0&&(0,a.jsxs)("div",{className:"hidden lg:block lg:w-1/5",children:[(0,a.jsxs)("div",{className:"pb-4 border-b border-b-gray-600 flex items-center justify-between",children:[(0,a.jsx)("h1",{className:"text-gray-700 dark:text-gray-200 text-2xl leading-tight",children:$("filter")}),(0,a.jsx)("button",{onClick:W(null),children:(0,a.jsx)(o.A,{size:24,className:"text-red-500 cursor-pointer"})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-gray-700 dark:text-gray-200 text-xl mt-6",children:$("price")}),(0,a.jsx)("div",{className:"flex flex-col gap-2",children:null==H?void 0:H.map(e=>(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("button",{onClick:W(e),className:"cursor-pointer",children:G&&(null==G?void 0:G.id)===(null==e?void 0:e.id)?(0,a.jsx)(u.A,{size:16,className:"text-black-2 dark:text-white"}):(0,a.jsx)(m.A,{size:16,className:"text-black-2 dark:text-white"})}),(0,a.jsxs)("p",{className:"text-gray-700 dark:text-gray-200 text-base",children:[L,null==e?void 0:e.min," - ",L,null==e?void 0:e.max]})]},null==e?void 0:e.id))})]})]}),(0,a.jsx)(w.Z,{children:(0,a.jsx)("div",{className:"w-full lg:w-4/5 grid grid-cols-2 md:grid-cols-3 gap-3",children:I?[...Array(9)].map((e,l)=>(0,a.jsx)(j.A,{},l)):(null==F||null==(y=F.products)?void 0:y.slice((T-1)*g.dq,T*g.dq).length)>=1?null==F||null==(N=F.products)?void 0:N.slice((T-1)*g.dq,T*g.dq).map((e,l)=>(0,a.jsx)(_,{product:e,index:l,onSelect:Z,onNavigate:O},e.id)):(0,a.jsx)("div",{className:"col-span-2 md:col-span-3 flex items-center justify-center",children:(0,a.jsx)("h1",{className:"text-center text-xl text-black-2 dark:text-gray-200",children:$("no_products_found")})})})})]}),(0,a.jsx)(h.A,{pages:q,currentPage:T,setCurrentPage:U})]}),(0,a.jsx)(A,{})]})}},60974:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(25979).A)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},72109:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(25979).A)("CircleArrowLeft",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 12H8",key:"1fr5h0"}
1],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}]])},85641:(e,l,t)=>{t.d(l,{A:()=>r});var a=t(13725),s=t(40733);let r=function(e){return(0,a.jsx)(s.FallbackImage,{...e})}},86348:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(25979).A)("SquareCheckBig",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]])},93559:(e,l,t)=>{t.d(l,{A:()=>d});var a=t(13725),s=t(73001),r=t(3001);let d=s.memo(function(e){let{pages:l,currentPage:t,setCurrentPage:d}=e,n=(0,s.useRef)(!0),i=(0,s.useRef)(t),c=(0,s.useCallback)(()=>{t>1&&d(t-1)},[t,d]),x=(0,s.useCallback)(()=>{t<l&&d(t+1)},[t,l,d]);(0,s.useEffect)(()=>{if(n.current){n.current=!1,i.current=t;return}if(t!==i.current){let e=setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100);return i.current=t,()=>clearTimeout(e)}},[t]);let{t:o}=(0,r.Bd)();return 0===l?null:(0,a.jsx)("div",{className:"w-full mx-auto mt-12 px-4 text-gray-600 md:px-8",children:(0,a.jsx)("nav",{className:"justify-center flex","aria-label":"Pagination",children:(0,a.jsxs)("ul",{className:"flex items-center gap-4",children:[(0,a.jsx)("li",{children:(0,a.jsx)("button",{type:"button",onClick:c,disabled:1===t,"aria-label":o("previous"),className:"".concat(1===t?"bg-gray-400 dark:bg-gray-600 cursor-not-allowed":"bg-blue-zatiq cursor-pointer"," text-white dark:text-gray-200 px-4 py-2.5 border dark:border-gray-400 rounded-lg"),children:o("previous")})}),(0,a.jsx)("li",{className:"text-black-2 dark:text-gray-200","aria-current":"page",children:(0,a.jsxs)("span",{children:[t," / ",l]})}),(0,a.jsx)("li",{children:(0,a.jsx)("button",{type:"button",onClick:x,disabled:t===l,"aria-label":o("next"),className:"".concat(t===l?"bg-gray-400 dark:bg-gray-600 cursor-not-allowed":"bg-blue-zatiq cursor-pointer"," text-white dark:text-gray-200 px-4 py-2.5 border dark:border-gray-400 rounded-lg"),children:o("next")})})]})})})})},98372:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(25979).A)("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"}]])}}]);

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.