"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1158,2478],{39178:function(l,e,t){var i=t(57437),n=t(29218),o=t(36857),r=t(64249),a=t(66482),s=t(10510),d=t(16265),c=t(83966),u=t(93357),v=t(39483),p=t(1759),h=t(8792),x=t(2265),m=t(52840),g=t(30828),f=t(86123),j=t(10976),y=t(9411);e.Z=l=>{let{item:e}=l,[t,b]=(0,x.useState)(!1),[_,w]=(0,x.useState)(null),{makeid:N,store_id:k}=(0,n.Z)(),Z=(0,g.I0)(),I=(0,s.a)(e.regular_price,e.discount_price,e.discount_type),z=(0,s.a)(I,parseInt(null==_?void 0:_.discount_amount),null==_?void 0:_.discount_type);(0,x.useEffect)(()=>{!async function(){try{let l=await (0,c.v)(e,k);(null==l?void 0:l.error)||w(l)}catch(l){console.error(l)}}()},[e,k]);let C=l=>{let e={},t={id:null==l?void 0:l.id,store_id:k};(0,f.Am)("Added to Cart",{type:"success",autoClose:1e3}),d.Z.post("get/offer/product",t).then(t=>{if(null==t?void 0:t.error)e={cartId:N(100),price:I,color:null,size:null,additional_price:null,volume:null,unit:null,...l};else{let i=(0,s.a)(null==l?void 0:l.regular_price,null==l?void 0:l.discount_price,null==l?void 0:l.discount_type),n=(0,s.a)(i,parseInt(null==t?void 0:t.discount_amount),null==t?void 0:t.discount_type);e=(null==t?void 0:t.discount_amount)===null?{cartId:N(100),price:i,color:null,size:null,additional_price:null,volume:null,unit:null,...l}:{cartId:N(100),price:n,color:null,size:null,additional_price:null,volume:null,unit:null,...l}}Z((0,o.Ko)({...e}))})};return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"relative overflow-hidden group",children:[(null==e?void 0:e.quantity)==="0"&&(0,i.jsx)(h.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsx)("div",{className:"absolute top-0 right-0 w-full h-full bg-black bg-opacity-50 z-[1]",children:(0,i.jsx)("p",{className:"bg-red-600 text-white px-2 py-1 w-max absolute right-0",children:"Sold Out"})})}),(0,i.jsx)(h.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("span",{className:"absolute bg-gray-800 text-white px-12 py-2 -rotate-45 overflow-clip -ml-12 -mt-1",children:"New"}),(0,i.jsx)("img",{src:r.vJ+e.image[0],alt:"",className:"h-auto min-w-full"}),(0,i.jsxs)("div",{className:"absolute bottom-2 right-2 bg-gray-100  px-5 text-xs text-black shadow flex j justify-between gap-4 py py-2",children:[(0,i.jsx)("div",{className:"line-through ",children:(null==_?void 0:_.status)!=="active"&&("no_discount"===e.discount_type||"0.00"===e.discount_price)?" ":(0,i.jsx)("p",{children:(0,i.jsx)(a.Z,{price:Math.trunc(e.regular_price)})})}),(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)(u.Z,{}),(null==_?void 0:_.status)==="active"?z:I]})]})]})}),(0,i.jsx)("div",{className:"absolute right-2 top-8 translate-x-12  group-hover:-translate-x-0  transition-transform duration-500 ease-linear",children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)("div",{className:"p-3 border-0 bg-white rounded-full all-icon translate-x-6 lg:cursor-pointer  group-hover:-translate-x-2  transition-all group-hover:duration-300 ease-linear",onClick:()=>{(null==e?void 0:e.variant.length)!==0?b(!t):C(e)},children:(0,i.jsx)(v.Z,{className:"",width:20,height:20})}),(0,i.jsx)("div",{className:"p-3 border-0 bg-white rounded-full all-icon translate-x-6 lg:cursor-pointer group-hover:-translate-x-2  transition-all  group-hover:duration-500 ease-linear",onClick:()=>b(!t),children:(0,i.jsx)(m.z4c,{width:20,height:20})}),(0,i.jsx)(h.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsx)("div",{className:"p-3 border-0 bg-white rounded-full all-icon translate-x-6 lg:cursor-pointer group-hover:-translate-x-2  transition-all  group-hover:duration-1000 ease-linear",children:(0,i.jsx)(p.Z,{width:20,height:20})})})]})}),(0,i.jsxs)("div",{className:"py-4",children:[(0,i.jsx)("p",{className:"text-gray-500 text-sm font-medium ",children:e.category}),(0,i.jsx)(h.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsx)("p",{className:"font-semibold text-base text-gray-700 whitespace-nowrap overflow-hidden text-ellipsis sm:max-w-[170px] max-w-[150px]",children:null==e?void 0:e.name})})]})]}),(0,i.jsx)(y.Z,{open:t,setOpen:b,children:(0,i.jsx)(j.Z,{data:{product_id:null==e?void 0:e.id}})})]})}},78889:function(l,e,t){var i=t(57437),n=t(29218),o=t(36857),r=t(64249),a=t(66482),s=t(10510),d=t(16265),c=t(83966),u=t(8792),v=t(2265),p=t(58641),h=t(30828),x=t(86123),m=t(9411),g=t(10976);e.Z=l=>{var e;let{item:t}=l,{design:f,makeid:j,store_id:y}=(0,n.Z)(),[b,_]=(0,v.useState)(null),[w,N]=(0,v.useState)(0),[k,Z]=(0,v.useState)(!1),I=(0,h.I0)(),z=null==f?void 0:f.header_color,C=null==f?void 0:f.text_color,S=(0,s.a)(t.regular_price,t.discount_price,t.discount_type),A=(0,s.a)(S,parseInt(null==b?void 0:b.discount_amount),null==b?void 0:b.discount_type);(0,v.useEffect)(()=>{!async function(){try{let l=await (0,c.v)(t,y);(null==l?void 0:l.error)||_(l)}catch(l){console.error(l)}}()},[t,y]);let E="\n    .searchHover:hover {\n        color:  ".concat(C,";\n        background: ").concat(z,";\n    }\n    .bg-color {\n        color:  ").concat(C,";\n        background: ").concat(z,";\n    }\n    .text-color {\n        color:  ").concat(null==f?void 0:f.header_color,";\n    }\n    .text-hover:hover {\n        color:  ").concat(null==f?void 0:f.header_color,";\n    }\n    .cart-color {\n        color:  ").concat(null==f?void 0:f.header_color,";\n        border-bottom: 2px solid ").concat(null==f?void 0:f.header_color,";\n    }\n    .border-hover:hover {\n        border: 1px solid ").concat(null==f?void 0:f.header_color,";\n       \n    }\n  \n  }\n  "),O=l=>{let e={},t={id:null==l?void 0:l.id,store_id:y};(0,x.Am)("Added to Cart",{type:"success",autoClose:1e3}),d.Z.post("get/offer/product",t).then(t=>{if(null==t?void 0:t.error)e={cartId:j(100),price:S,color:null,size:null,additional_price:null,volume:null,unit:null,...l};else{let i=(0,s.a)(null==l?void 0:l.regular_price,null==l?void 0:l.discount_price,null==l?void 0:l.discount_type),n=(0,s.a)(i,parseInt(null==t?void 0:t.discount_amount),null==t?void 0:t.discount_type);e=(null==t?void 0:t.discount_amount)===null?{cartId:j(100),price:i,color:null,size:null,additional_price:null,volume:null,unit:null,...l}:{cartId:j(100),price:n,color:null,size:null,additional_price:null,volume:null,unit:null,...l}}I((0,o.Ko)({...e}))})};return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"group relative overflow-hidden",children:[(null==t?void 0:t.quantity)==="0"&&(0,i.jsx)("div",{className:"absolute top-0 right-0 w-full h-full bg-black bg-opacity-50 z-[2]",children:(0,i.jsx)("p",{className:"bg-red-600 text-white px-2 py-1 w-max absolute right-0",children:"Sold Out"})}),(0,i.jsx)("style",{children:E}),(0,i.jsxs)("div",{className:"relative overflow-hidden",children:[(0,i.jsx)(u.default,{href:"/product/"+(null==t?void 0:t.id)+"/"+(null==t?void 0:t.slug),children:(0,i.jsx)("img",{src:r.vJ+t.image[w],alt:"",className:"h-auto min-w-full"})}),(0,i.jsx)("div",{className:"flex flex-col gap-y-1 absolute right-3 group-hover:bottom-12 -bottom-5  group-hover:opacity-100 opacity-0 duration-500",children:null==t?void 0:null===(e=t.image)||void 0===e?void 0:e.map((l,e)=>(0,i.jsx)("div",{children:t.image.length>1?(0,i.jsx)("p",{onClick:()=>N(e),className:"".concat(w===e?"bg-blue-600":"bg-gray-200"," h-3 w-3 rounded-full ")}):" "},e))}),(0,i.jsx)("div",{onClick:()=>Z(!k),className:"w-full lg:cursor-pointer bg-white searchHover py-3 flex justify-center absolute group-hover:bottom-0 -bottom-16 duration-500",children:(0,i.jsx)(p.Goc,{className:"text-2xl text-center"})}),(null==b?void 0:b.status)!=="active"&&("no_discount"===t.discount_type||"0.00"===t.discount_price)?"":(0,i.jsx)("div",{className:"absolute sm:text-xs text-[10px] px-1 sm:px-2 sm:py-1 py-0 bg-color text-white top-2 right-2 ",children:(0,i.jsxs)("p",{children:["fixed"===t.discount_type?"BDT":""," ",Math.trunc(t.discount_price)," ","percent"===t.discount_type?"%":""]})})]}),(0,i.jsx)("div",{className:"text-gray-700 sm:text-base text-sm font-bold p-2 pt-4 ",children:(0,i.jsxs)(u.default,{href:"/product/"+(null==t?void 0:t.id)+"/"+(null==t?void 0:t.slug),children:[" ",(0,i.jsx)("h1",{className:"text-hover capitalize whitespace-nowrap overflow-hidden text-ellipsis sm:max-w-[170px] max-w-[150px]",children:null==t?void 0:t.name})," "]})}),(0,i.jsxs)("div",{className:"text-gray-600 font-semibold flex sm:flex-row flex-col sm:items-center sm:gap-2 w-full px-2 pb-5 ",children:[(0,i.jsx)("p",{className:"text-color text-sm",children:(0,i.jsx)(a.Z,{price:(null==b?void 0:b.status)==="active"?A:S})}),(0,i.jsx)("h1",{className:"line-through text-xs ",children:(null==b?void 0:b.status)!=="active"&&("no_discount"===t.discount_type||"0.00"===t.discount_price)?" ":(0,i.jsxs)("p",{children:[" ",(0,i.jsx)(a.Z,{price:t.regular_price})," "]})})]}),(0,i.jsx)("div",{onClick:()=>{(null==t?void 0:t.variant.length)!==0?Z(!k):O(t)},className:"px-2 lg:cursor-pointer text-xs gap-1 w-full absolute group-hover:bottom-4 -bottom-12 duration-500 bg-white z-[1]",children:(0,i.jsx)("p",{className:" font-medium border-b-2 px-2 py-1 w-max cart-color",children:"ADD IN CART"})})]}),(0,i.jsx)(m.Z,{open:k,setOpen:Z,children:(0,i.jsx)(g.Z,{data:{product_id:null==t?void 0:t.id}})})]})}},62480:function(l,e,t){var i=t(57437),n=t(29218),o=t(36857),r=t(64249),a=t(10510),s=t(16265),d=t(83966),c=t(61925),u=t(8792),v=t(47907),p=t(2265),h=t(6128),x=t(30828),m=t(86123),g=t(9411),f=t(10976);e.Z=l=>{let{item:e}=l,[t,j]=(0,p.useState)(!1),[y,b]=(0,p.useState)(null),{design:_,store_id:w,makeid:N}=(0,n.Z)(),k=(0,x.I0)(),Z="\n  .text-hover:hover {\n    color:  ".concat(null==_?void 0:_.header_color,";\n  }\n  .search:hover {\n    color:").concat(null==_?void 0:_.text_color,";\n    background:").concat(null==_?void 0:_.header_color,";\n  }\n  .border-hover:hover {\n    border: 1px solid  ").concat(null==_?void 0:_.header_color,";\n  }\n\n  ");(0,p.useEffect)(()=>{!async function(){try{let l=await (0,d.v)(e,w);(null==l?void 0:l.error)||b(l)}catch(l){console.error(l)}}()},[e,w]);let I=(0,a.a)(e.regular_price,e.discount_price,e.discount_type),z=(0,a.a)(I,parseInt(null==y?void 0:y.discount_amount),null==y?void 0:y.discount_type),C=l=>{let e={},t={id:null==l?void 0:l.id,store_id:w};(0,m.Am)("Added to Cart",{type:"success",autoClose:1e3}),s.Z.post("get/offer/product",t).then(t=>{if(null==t?void 0:t.error)e={cartId:N(100),price:I,color:null,size:null,additional_price:null,volume:null,unit:null,...l};else{let i=(0,a.a)(null==l?void 0:l.regular_price,null==l?void 0:l.discount_price,null==l?void 0:l.discount_type),n=(0,a.a)(i,parseInt(null==t?void 0:t.discount_amount),null==t?void 0:t.discount_type);e={cartId:N(100),price:n,color:null,size:null,additional_price:null,volume:null,unit:null,...l}}k((0,o.Ko)({...e}))})},S=(0,v.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"rounded overflow-hidden shadow-sm group border border-hover",children:[(0,i.jsx)("style",{children:Z}),(0,i.jsxs)("div",{className:"relative",children:[(null==e?void 0:e.quantity)==="0"&&(0,i.jsx)(u.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsx)("div",{className:"absolute top-0 right-0 w-full h-full bg-black bg-opacity-50 z-[1]",children:(0,i.jsx)("p",{className:"bg-red-600 text-white px-2 py-1 w-max absolute right-0",children:"Sold Out"})})}),(0,i.jsx)("div",{className:"absolute w-48 text-center bg-black text-white text-xs px-10 py-2 top-6 -left-10 rounded-md -rotate-45 z-[1]",children:(0,i.jsx)("p",{children:y?"OFFER":"BEST SELLER"})}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(u.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsx)("img",{className:"min-w-full h-auto",src:r.vJ+(null==e?void 0:e.image[0]),alt:"Mountain"})}),(0,i.jsx)("div",{className:"absolute lg:cursor-pointer search h-12 w-12 bg-white rounded-full left-[50%] -translate-x-[50%] top-[50%] -translate-y-[50%] opacity-0 group-hover:opacity-100 duration-500",onClick:()=>j(!t),children:(0,i.jsx)(h.RB5,{className:"mt-4 text-xl ml-4"})})]}),(0,i.jsxs)("div",{className:"py-6 px-3 space-y-2 relative",children:[(0,i.jsx)(u.default,{href:"/category/"+(null==e?void 0:e.category_id),children:(0,i.jsx)("p",{className:"text-sm font-semibold uppercase antialiased mb-2 text-gray-600",children:null==e?void 0:e.category})}),(0,i.jsx)(u.default,{href:"/product/"+(null==e?void 0:e.id)+"/"+(null==e?void 0:e.slug),children:(0,i.jsx)("h3",{className:"lg:text-lg text-sm font-medium text-hover text-gray-800 lg:font-bold antialiased capitalize truncate",children:null==e?void 0:e.name})}),(0,i.jsxs)("div",{className:"flex gap-x-1 items-center",children:[(0,i.jsx)("div",{children:(0,i.jsx)(c.Z,{rating:null==e?void 0:e.rating})}),(0,i.jsxs)("div",{className:"text-gray-500 sm:text-sm text-xs",children:["(",null==e?void 0:e.number_rating,")"]})]}),(0,i.jsxs)("div",{className:"text-sm lg:text-base flex flex-col lg:flex-row lg:gap-2 gap-1 lg:items-center font-semibold lg:group-hover:opacity-0 duration-500",children:[(0,i.jsxs)("p",{children:["BDT ",z||I]}),(0,i.jsx)("h1",{className:"line-through lg:text-sm text-xs ",children:z||"no_discount"!==e.discount_type&&"0.00"!==e.discount_price?(0,i.jsxs)("p",{children:[" BDT ",Math.trunc(e.regular_price)]}):" "})]}),(0,i.jsx)("div",{className:"menu-hover lg:absolute bottom-6 left-4 hover:-translate-y-1 lg:group-hover:scale-110 lg:cursor-pointer duration-500 lg:opacity-0 lg:group-hover:opacity-100 font-semibold text-sm underline",onClick:()=>{(null==e?void 0:e.variant.length)!==0?j(!t):(C(e),2680===w&&S.push("/checkout"))},children:2669===w?"Buy Now":2680===w?"Order Now":"ADD TO CART"})]})]})]}),(0,i.jsx)(g.Z,{open:t,setOpen:j,children:(0,i.jsx)(f.Z,{data:{product_id:null==e?void 0:e.id}})})]})}},2478:function(l,e,t){var i=t(57437),n=t(69081),o=t(29218),r=t(36857),a=t(64249),s=t(66482),d=t(10510),c=t(16265),u=t(83966),v=t(61925),p=t(8792),h=t(2265),x=t(30828),m=t(86123),g=t(10976),f=t(9411);e.Z=l=>{var e,t,j,y,b,_,w,N,k;let{item:Z}=l,{design:I,makeid:z,store_id:C}=(0,o.Z)(),[S,A]=(0,h.useState)(null),E=(0,x.I0)(),[O,q]=(0,h.useState)(0),M=null==Z?void 0:null===(e=Z.variant)||void 0===e?void 0:e.map(l=>null==l?void 0:l.additional_price),B=Math.min(...M),D=Math.max(...M),T=null==I?void 0:I.header_color,R=null==I?void 0:I.text_color,[H,J]=(0,h.useState)(!1),K=Z.regular_price+((null==Z?void 0:null===(t=Z.variant[0])||void 0===t?void 0:t.unit)&&(null==Z?void 0:null===(j=Z.variant[0])||void 0===j?void 0:j.additional_price)?parseInt(null==Z?void 0:null===(y=Z.variant[0])||void 0===y?void 0:y.additional_price):0),L=(0,d.a)(K,Z.discount_price,Z.discount_type),F=(0,d.a)(L,parseInt(null==S?void 0:S.discount_amount),null==S?void 0:S.discount_type),G=(0,d.a)(Z.regular_price,Z.discount_price,Z.discount_type),U=(0,d.a)(G,parseInt(null==S?void 0:S.discount_amount),null==S?void 0:S.discount_type);(0,h.useEffect)(()=>{!async function(){try{let l=await (0,u.v)(Z,C);(null==l?void 0:l.error)||A(l)}catch(l){console.error(l)}}()},[Z,C]);let W="\n    .searchHover:hover {\n        color:  ".concat(R,";\n        background: ").concat(T,";\n    }\n    .text-color-thirty {\n        color:  ").concat(null==I?void 0:I.header_color,";\n    }\n    .text-hover:hover {\n        color: ").concat(null==I?void 0:I.header_color,";\n      }\n    .bg-color {\n        color:  ").concat(R,";\n        background: ").concat(T,";\n    }\n    .cart-btn {\n        color:  ").concat(R,";\n        background: ").concat(T,";\n    }\n    .cart-btn:hover {\n        color:  ").concat(T,";\n        background: white;\n        border: 1px solid ").concat(T,";\n    }\n   \n    .view-eye:hover .quick-view {\n        display: block;\n        background: white;\n      }\n    .image-div:hover .image-hover {\n        display: none;\n       \n      }\n    .image-div:hover .image-hover-two {\n        display: block;\n       \n      }\n      .card-overlay-thirty{\n        background-color: ").concat(T,";\n        opacity: 0;\n      }\n      .overlay-group:hover .card-overlay-thirty{\n        background-color: ").concat(T,";\n        opacity: .5;\n      }\n\n  "),P=l=>{let e={},t={id:null==l?void 0:l.id,store_id:C};(0,m.Am)("Added to Cart",{type:"success",autoClose:1e3}),c.Z.post("get/offer/product",t).then(t=>{var i,n,o,a,s,d;e=(null==t?void 0:t.error)?(null==l?void 0:null===(a=l.variant[0])||void 0===a?void 0:a.unit)&&2109===C?{cartId:z(100),price:L,color:null,size:null,additional_price:null,volume:null,unit:null,variant_quantity:null==l?void 0:null===(s=l.variant[0])||void 0===s?void 0:s.quantity,variantId:null==l?void 0:null===(d=l.variant[0])||void 0===d?void 0:d.id,...null==l?void 0:l.variant[0],...l}:{cartId:z(100),price:G,color:null,size:null,additional_price:null,volume:null,unit:null,...l}:(null==l?void 0:null===(i=l.variant[0])||void 0===i?void 0:i.unit)&&2109===C?{cartId:z(100),price:F,color:null,size:null,additional_price:null,volume:null,unit:null,variant_quantity:null==l?void 0:null===(n=l.variant[0])||void 0===n?void 0:n.quantity,variantId:null==l?void 0:null===(o=l.variant[0])||void 0===o?void 0:o.id,...null==l?void 0:l.variant[0],...l}:{cartId:z(100),price:U,color:null,size:null,additional_price:null,volume:null,unit:null,...l},E((0,r.Ko)({...e}))})};return(0,i.jsxs)("div",{className:"group overlay-group relative px-2",children:[(null==Z?void 0:Z.quantity)==="0"&&(0,i.jsx)(p.default,{href:"/product/"+(null==Z?void 0:Z.id)+"/"+(null==Z?void 0:Z.slug),children:(0,i.jsx)("div",{className:"absolute top-0 right-0 w-full h-full bg-black bg-opacity-50 z-[3]",children:(0,i.jsx)("p",{className:"bg-red-600 text-white px-2 py-1 w-max absolute left-0",children:"Sold Out"})})}),(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)("style",{children:W}),(0,i.jsxs)("div",{className:"mt-5 relative overflow-hidden",children:[(0,i.jsxs)("div",{className:"relative overflow-hidden w-full ",children:[(0,i.jsx)(p.default,{href:"/product/"+(null==Z?void 0:Z.id)+"/"+(null==Z?void 0:Z.slug),children:(0,i.jsx)("img",{src:a.vJ+Z.image[0],alt:"",className:"h-auto min-w-full"})}),"0.00"===Z.discount_price||"no_discount"===Z.discount_type?"":(0,i.jsxs)("div",{className:"h-10 absolute top-2 right-2 z-[2]",children:[(0,i.jsx)("img",{src:n.Z.src,alt:"",className:"h-full"}),(0,i.jsxs)("p",{className:"text-[11px] text-white absolute top-2 left-3 leading-[12px]",children:["fixed"===Z.discount_type?"BDT":""," ",Math.trunc(Z.discount_price)," ","percent"===Z.discount_type?"% off":""]})]}),(0,i.jsx)(p.default,{href:"/product/"+(null==Z?void 0:Z.id)+"/"+(null==Z?void 0:Z.slug),children:(0,i.jsx)("div",{className:"lg:absolute card-overlay-thirty lg:z-[1] lg:group-hover:w-full w-1/2 h-full left-0 bottom-0 duration-700"})}),(0,i.jsx)("div",{onClick:()=>{var l;(null==Z?void 0:Z.variant.length)===0||(null==Z?void 0:null===(l=Z.variant[0])||void 0===l?void 0:l.unit)||2109!==C?(null==Z?void 0:Z.variant.length)!==0&&2109!==C?J(!H):P(Z):J(!H)},className:"lg:absolute lg:group-hover:bottom-0 lg:-bottom-5 duration-700 lg:opacity-0 w-full z-[2] lg:group-hover:opacity-100 bg-black text-white searchHover flex px-2 py-2 justify-center gap-1 items-center lg:cursor-pointer",children:(0,i.jsx)("p",{className:"lg:scale-0 lg:group-hover:scale-100 duration-700 ",children:1187===C?"অর্ডার করুন":"Add to Cart"})})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 py-3",children:[(0,i.jsx)("div",{children:(0,i.jsx)(p.default,{href:"/category/"+(null==Z?void 0:Z.category_id),children:(0,i.jsx)("p",{className:"text-gray-500 text-lg",children:null==Z?void 0:Z.category})})}),(0,i.jsxs)("div",{className:"font-bold text-xl flex justify-between items-center flex-wrap",children:[(0,i.jsxs)(p.default,{href:"/product/"+(null==Z?void 0:Z.id)+"/"+(null==Z?void 0:Z.slug),children:[" ",(0,i.jsx)("h1",{className:"text-hover capitalize whitespace-nowrap overflow-hidden text-ellipsis sm:max-w-[170px] max-w-[150px]",children:null==Z?void 0:Z.name})," "]}),(0,i.jsxs)("div",{className:"flex gap-x-1 items-center",children:[(0,i.jsx)("div",{children:(0,i.jsx)(v.Z,{rating:null==Z?void 0:Z.rating})}),(0,i.jsxs)("div",{className:"text-gray-500 sm:text-sm text-xs",children:["(",null==Z?void 0:Z.number_rating,")"]})]})]}),(null==Z?void 0:null===(b=Z.variant[0])||void 0===b?void 0:b.unit)&&2109===C&&(0,i.jsx)("div",{children:(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"Unit:"})," ",null==Z?void 0:null===(_=Z.variant[0])||void 0===_?void 0:_.volume," ",null==Z?void 0:null===(w=Z.variant[0])||void 0===w?void 0:w.unit]})}),2875!==C?(0,i.jsx)("div",{className:" font-semibold flex justify-between items-center gap-2 w-full ",children:(0,i.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[(null==S?void 0:S.status)!=="active"&&("no_discount"===Z.discount_type||"0.00"===Z.discount_price)?"":(0,i.jsxs)("p",{className:"line-through text-xs text-color-thirty",children:[" ",(0,i.jsx)(s.Z,{price:Math.trunc(Z.regular_price)})]}),(0,i.jsx)("p",{className:"text-sm py-1 rounded-lg",children:(0,i.jsx)(s.Z,{price:(null==S?void 0:S.status)==="active"?U:L})})]})}):(0,i.jsxs)("div",{children:[(null==Z?void 0:null===(N=Z.variant)||void 0===N?void 0:N.length)!==0&&(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsxs)("p",{className:"text-color text-sm font-bold",children:[(0,i.jsx)(s.Z,{}),(U||L)+B]}),D>B&&(0,i.jsxs)("p",{className:"text-color text-sm font-bold",children:[" ","- ",(0,i.jsx)(s.Z,{})," ",(U||L)+D]})]}),(null==Z?void 0:null===(k=Z.variant)||void 0===k?void 0:k.length)===0&&(0,i.jsx)("div",{className:"flex justify-start items-center gap-x-4",children:(0,i.jsxs)("div",{className:"text-color text-sm font-bold flex justify-start items-center gap-4",children:[(0,i.jsx)(s.Z,{}),(null==S?void 0:S.status)==="active"?U:2109===C?L:G," ",(null==S?void 0:S.status)!=="active"&&("no_discount"===Z.discount_type||"0.00"===Z.discount_price)?" ":(0,i.jsxs)("span",{className:"text-gray-500 font-thin line-through text-sm font-seven",children:[(0,i.jsx)(s.Z,{}),Z.regular_price]})]})})]})]})]})]}),(0,i.jsx)(f.Z,{open:H,setOpen:J,design:I,children:(0,i.jsx)(g.Z,{data:{product_id:null==Z?void 0:Z.id}})})]})}},1759:function(l,e,t){var i=t(2265);let n=i.forwardRef(function({title:l,titleId:e,...t},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),l?i.createElement("title",{id:e},l):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))});e.Z=n}}]);