1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79478],{16011:(e,t,n)=>{n.d(t,{F:()=>d});var r=n(85615),o=n(3714),i=n(61308),a=n(35629),l=n(93456),c=n(94447),p=n(29587);function s(){var e,t;let n=(e=["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: rgba(0, 0, 0, 0.6);\n padding: 12px 20px;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n z-index: 10000;\n display: flex;\n align-items: center;\n gap: 12px;\n font-size: 14px;\n color: #ffffff;\n pointer-events: none;\n flex-direction: column;\n animation: fadeIn 0.2s, fadeOut 0.2s 2.8s;\n font-family: var(--tempi-global-paragraph1fontfamily);\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n transform: translate(-50%, -40%);\n }\n to {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n }\n\n @keyframes fadeOut {\n from {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n to {\n opacity: 0;\n transform: translate(-50%, -40%);\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return s=function(){return n},n}let d=e=>{let{message:t}=e,{mainFrameId:n=i.jE}=(0,a.P)(),[o,s]=(0,c.useState)(!0),[d,g]=(0,c.useState)(null);return(0,c.useEffect)(()=>{let e=setTimeout(()=>{s(!1)},3e3);return()=>clearTimeout(e)},[]),(0,c.useEffect)(()=>{var e,t,r;g(null!=(r=null==(t=(null==(e=document.getElementById(n))?void 0:e.contentDocument)||document)?void 0:t.body)?r:null)}
1,[n]),o&&d?(0,p.createPortal)((0,r.jsxs)(u,{children:[(0,r.jsx)(l.I,{name:"SuccessColored",style:{fontSize:72}}),t]}),d):null},u=o.A.div(s())},24008:(e,t,n)=>{n.d(t,{Q:()=>b});var r=n(35629),o=n(39968),i=n(62773),a=n(94447),l=n(54300),c=n(35823),p=n(2682),s=Object.defineProperty,d=Object.defineProperties,u=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&h(e,n,t[n]);if(g)for(var n of g(t))f.call(t,n)&&h(e,n,t[n]);return e};let b=e=>{var t;let{skus:n,categoryId:s,ssrData:g,triggerUpdate:m=!1,isFetchCategories:f=!1,filterType:h,productOrder:b}=e,{env:w,globalData:S}=(0,r.P)(),[x,j]=(0,a.useState)(""),{data:C=[]}=(0,p.Ay)(f&&S.websiteId?["categories",w,S.websiteId,m]:null,()=>(async(e,t)=>{var n;let r="".concat(o.ti[e],"/api/v1/public/categories"),a=new i.j(r),l=await a.get(r,{params:{websiteId:t}});return null==(n=null==l?void 0:l.data)?void 0:n.data})(w,S.websiteId),{errorRetryCount:3,errorRetryInterval:1e3,revalidateOnFocus:!1}),O=null!=(t=null==n?void 0:n.join(","))?t:"",k=(null==S?void 0:S.websiteId)?["products",O,s,S.websiteId,m,h]:null,{data:P,isValidating:A,mutate:R}=(0,p.Ay)(k,()=>(async(e,t,n,r,a)=>{var c,p,s,g,m,f,h;let b="".concat(o.ti[e],"/api/v1/public/products/search"),w=new i.j(b),S={websiteId:t,page:1,pageSize:200};n===l.g_.SKUS&&(null==r?void 0:r.length)?S.skus=r:n===l.g_.CATEGORY&&a&&(S.categoryId=+a);let x=[],j=1;for(;j<=100;){let e=await w.post(b,d(y({},S),u({page:j}))),t=null!=(s=null==(p=null==(c=null==e?void 0:e.data)?void 0:c.data)?void 0:p.products)?s:[];x.push(...t);let n=null!=(h=null==(f=null==(m=null==(g=null==e?void 0:e.data)?void 0:g.data)?void 0:m.pagination)?void 0:f.total)?h:x.length;if(0===t.length||x.length>=n)break;j+=1}return v(x)})(w,S.websiteId,h,n,s),{fallbackData:g,errorRetryCount:3,errorRetryInterval:1e3,revalidateOnFocus:!1}),I=(0,a.useMemo)(()=>P&&(null==b?void 0:b.length)?(0,c.Ri)(P,b):P,[P,b]);return{products:(0,a.useMemo)(()=>{if(!x)return I;let e=x.toLowerCase();return null==I?void 0:I.filter(t=>{var n;return null==(n=null==t?void 0:t.name)?void 0:n.toLowerCase().includes(e)})},[I,x]),loading:!(null==P?void 0:P.length)&&A,fetchProducts:R,categories:C,searchQuery:x,setSearchQuery:j}},v=e=>null==e?void 0:e.map(e=>({name:e.name,price:+e.price,discount:e.discountPercent,image:{src:e.images[0]},virtualRating:e.rating,virtualSold:+e.fakePurchases,sku:e.sku,categoryId:+e.categoryId,link:e.link,description:e.descriptionDetail,images:e.images}))},33555:(e,t,n)=>{n.d(t,{h:()=>x});var r=n(85615),o=n(35629),i=n(50419),a=n(54300),l=n(21062),c=n(94447),p=n(16011),s=n(33620),d=n(64399),u=n(3055),g=Object.defineProperty,m=Object.defineProperties,f=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))y.call(t,n)&&v(e,n,t[n]);if(h)for(var n of h(t))b.call(t,n)&&v(e,n,t[n]);return e},S=(e,t)=>m(e,f(t));let x=e=>{let{isEditingMode:t,addToCartButton:n,showAddToCartButton:g,product:m,currencyAlignment:f,currencyUnit:v,addToCartCallback:x,layout:j=a.mA.Text,wrapperRef:C,customCommonStyle:O}=e,{globalData:k}=(0,o.P)(),{addToCart:P}=(0,d.x)(),[A,R]=(0,c.useState)(!1),I=j===a.mA.Icon||j===a.mA.Combined,M=j===a.mA.Text||j===a.mA.Combined;if(!g)return null;let{iconConfig:E,text:z}=n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.J,S(w({onClick:()=>{var e;((e,t)=>{var n;let r=(0,i.rV)(e),{image:o,link:a}=t,c=((e,t)=>{var n={};for(var r in e)y.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&h)for(var r of h(e))0>t.indexOf(r)&&b.call(e,r)&&(n[r]=e[r]);return n})(t,["image","link"]),p=r.findIndex(e=>e.sku===t.sku);p>=0?r[p]=S(w(w({},r[p]),c),{thumbnailAlt:(null==o?void 0:o.alt)||t.name,thumbnailUrl:null==o?void 0:o.src,quantity:((null==(n=r[p])?void 0:n.quantity)||0)+1}):r.push(S(w({},c),{thumbnailAlt:(null==o?void 0:o.alt)||t.name,thumbnailUrl:null==o?void 0:o.src,quantity:1})),(0,i.zY)(e,r),l.A.emit("addProductToCart",r)})(null==(e=null==k?void 0:k.currentLanguage)?void 0:e.id,S(w({},m),{currencyAlignment:f,currencyUnit:v})),(()=>{var e,t;if(!(null==C?void 0:C.current))return;let n=null==(e=null==C?void 0:C.current)?void 0:e.ownerDocument,r=n.createElement("div"),o=n.querySelector(".shopping-cart");if(!o)return;let i=C.current.getBoundingClientRect(),a=o.getBoundingClientRect();r.style.cssText="\n position: fixed;\n left: ".concat(i.left,"px;\n top: ").concat(i.top,"px;\n width: ").concat(i.width,"px;\n height: ").concat(i.height,"px;\n background-image: url(").concat((null==(t=m.image)?void 0:t.src)||"",");\n background-size: cover;\n background-position: center;\n border-radius: 10px;\n box-shadow: 0 2px 15px rgba(0,0,0,0.2);\n z-index: 9999;\n pointer-events: none;\n transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);\n "),n.body.appendChild(r),setTimeout(()=>{r.style.transform="translate(".concat(a.left-i.left-i.width/3,"px, ").concat(a.top-i.top-i.height/2,"px) scale(0)"),r.style.opacity="0",setTimeout(()=>{n.body.removeChild(r)},800)},1)})(),P(m,1),null==x||x(),R(!0),setTimeout(()=>{R(!1)},1e3)}},n),{iconConfig:S(w({},E),{show:I}),text:M?z:void 0,isEditingMode:t,commonStyle:w({justifyContent:"center",flex:M?1:void 0},O),style:{marginTop:6},className:"button-width"})),A&&(0,r.jsx)(p.F,{message:(0,s.Tl)("product_list.add_to_cart")})]})}}
1,35823:(e,t,n)=>{n.d(t,{Ri:()=>m,eC:()=>u,xJ:()=>g});var r=n(81679),o=n.n(r),i=n(73746),a=Object.defineProperty,l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&s(e,n,t[n]);if(l)for(var n of l(t))p.call(t,n)&&s(e,n,t[n]);return e};let u=(e,t,n,r)=>{if(n){let r=o()(e,i.W.joinKey(n,t));if(r)return r}if("mobile"===n){let n=o()(e,i.W.joinKey("desktop",t));if(n)return n}if("desktop"===n||!n){let n=o()(e,t);if(n)return n}return r},g=(e,t,n,r)=>{if("desktop"===n){let r=o()(e,i.W.joinKey(n,t));if(r)return r}if("mobile"===n){let n=o()(e,i.W.joinKey("mobile",t)),r=o()(e,i.W.joinKey("desktop",t));if(r||n)return d(d({},r),n)}return o()(e,t)||r},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e].sort((e,n)=>{let r=t.indexOf(e.sku),o=t.indexOf(n.sku);return -1===r&&-1===o?0:-1===r?-1:-1===o?1:r-o})}},54300:(e,t,n)=>{n.d(t,{I2:()=>l,Mw:()=>i,Yj:()=>o,g_:()=>r,mA:()=>a});var r=(e=>(e.CATEGORY="filter_by_category",e.SKUS="filter_by_skus",e))(r||{}),o=(e=>(e.Name="name",e.Price="price",e.Image="image",e.Discount="discount",e.VirtualRating="virtualRating",e.VirtualSold="virtualSold",e.Description="description",e.ActionButton="actionButton",e.Compare="compare",e))(o||{}),i=(e=>(e.Order="order",e.AddToCart="addToCart",e.Contact="contact",e))(i||{}),a=(e=>(e.Icon="icon",e.Text="text",e.Combined="combined",e))(a||{}),l=(e=>(e.All="ALL",e.Pagination="PAGINATION",e))(l||{})},66247:(e,t,n)=>{n.d(t,{CY:()=>b,HA:()=>y,Ol:()=>w,SG:()=>S,Sn:()=>v,hM:()=>k,pc:()=>C,w6:()=>h});var r=n(69663),o=n(33620),i=n(54300),a=n(27339),l=Object.defineProperty,c=Object.defineProperties,p=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&g(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&g(e,n,t[n]);return e},f=(e,t)=>c(e,p(t));let h="#7367f0",y="#000000";(0,o.t)("Sản phẩm má»i");let b={displayMode:i.I2.All,rows:1,columns:4,gutter:16,rowGap:16,columnGap:16},v={displayMode:i.I2.All,rows:1,columns:2},w={type:a.d.product,slidesPerView:5,slidesPerColumn:1,navigation:!0,navigationStyle:1,autoplay:!0,loop:!1,spaceBetween:16,speed:3e3,gutter:16},S={type:a.d.product,slidesPerView:2.5,slidesPerColumn:1,navigation:!0,navigationStyle:1,autoplay:!0,loop:!1,spaceBetween:16,speed:3e3},x={icon:{name:"CartPlusOutlined",size:18,color:"#7367f0"},spacing:4,position:"left"},j=[{type:i.Mw.AddToCart,name:(0,o.t)("product_list.add_to_cart_text"),text:(0,o.t)("product_list.add_to_cart_text"),buttonStyle:{borderStyle:"solid",borderColor:"#7367f0",borderWidth:0,height:32,width:"100%",borderRadius:2,color:"#7367f0",background:"#7367F014",padding:{left:15,right:15},currentParagraphTheme:"paragraph2",fontSize:"var(--tempi-global-paragraph2fontsize)",fontFamily:"var(--tempi-global-paragraph2fontfamily)",fontWeight:"var(--tempi-global-paragraph2fontweight)",lineHeight:"var(--tempi-global-paragraph2lineheight)",letterSpacing:"var(--tempi-global-paragraph2letterspacing)"},layout:i.mA.Icon,iconConfig:x},{type:i.Mw.Order,name:(0,o.t)("product_list.buy_now"),text:(0,o.t)("product_list.buy_now"),buttonStyle:{borderStyle:"solid",borderColor:"#7367f0",borderWidth:1,height:32,width:"100%",borderRadius:2,color:"#ffffff",background:"#7367f0",padding:{left:15,right:15},currentParagraphTheme:"paragraph2",fontSize:"var(--tempi-global-paragraph2fontsize)",fontFamily:"var(--tempi-global-paragraph2fontfamily)",fontWeight:"var(--tempi-global-paragraph2fontweight)",lineHeight:"var(--tempi-global-paragraph2lineheight)",letterSpacing:"var(--tempi-global-paragraph2letterspacing)"},layout:i.mA.Text,iconConfig:x}],C={align:r.C1.center,placeholder:(0,o.t)("product.search"),show:!0,textStyle:{currentParagraphTheme:"paragraph2",fontFamily:"var(--tempi-global-paragraph2fontfamily)"}},O={desktop:{eventType:"link",items:[],alignment:"left",layout:"grid",gridOptions:b,searchConfig:{textStyle:{fontSize:"var(--tempi-global-paragraph2fontsize)",fontWeight:"var(--tempi-global-paragraph2fontweight)",lineHeight:"var(--tempi-global-paragraph2lineheight)",letterSpacing:"var(--tempi-global-paragraph2letterspacing)"}},nameStyle:{color:"#000",fontSize:"var(--tempi-global-paragraph1fontsize)",fontWeight:"700",lineHeight:"var(--tempi-global-paragraph1lineheight)",letterSpacing:"var(--tempi-global-paragraph1letterspacing)"},priceStyle:{color:"#000",fontSize:"var(--tempi-global-paragraph2fontsize)",fontWeight:"var(--tempi-global-paragraph2fontweight)",lineHeight:"var(--tempi-global-paragraph2lineheight)",letterSpacing:"var(--tempi-global-paragraph2letterspacing)"},discountStyle:{color:"#fff",fontSize:"var(--tempi-global-paragraph3fontsize)",fontWeight:"700",lineHeight:"var(--tempi-global-paragraph3lineheight)",letterSpacing:"var(--tempi-global-paragraph3letterspacing)"},virtualSoldStyle:{color:"#000",fontSize:"var(--tempi-global-paragraph3fontsize)",fontWeight:"var(--tempi-global-paragraph3fontweight)",lineHeight:"var(--tempi-global-paragraph3lineheight)",letterSpacing:"var(--tempi-global-paragraph3letterspacing)"},paginationActiveColor:h,paginationColor:y},mobile:{eventType:"link",items:[],alignment:"left",layout:"grid",gridOptions:v,searchConfig:{textStyle:{fontSize:"var(--tempi-global-paragraph2mobilefontsize)",fontWeight:"var(--tempi-global-paragraph2mobilefontweight)",lineHeight:"var(--tempi-global-paragraph2mobilelineheight)",letterSpacing:"var(--tempi-global-paragraph2mobileletterspacing)"}},nameStyle:{color:"#000",fontSize:"var(--tempi-global-paragraph1mobilefontsize)",fontWeight:"700",lineHeight:"var(--tempi-global-paragraph1mobilelineheight)",letterSpacing:"var(--tempi-global-paragraph1mobileletterspacing)"},priceStyle:{color:"#000",fontSize:"var(--tempi-global-paragraph2mobilefontsize)",fontWeight:"var(--tempi-global-paragraph2mobilefontweight)",lineHeight:"var(--tempi-global-paragraph2mobilelineheight)",letterSpacing:"var(--tempi-global-paragraph2mobileletterspacing)"},discountStyle:{color:"#fff",fontSize:"var(--tempi-global-paragraph3mobilefontsize)",fontWeight:"700",lineHeight:"var(--tempi-global-paragraph3mobilelineheight)",letterSpacing:"var(--tempi-global-paragraph3mobileletterspacing)"},virtualSoldStyle:{color:"#000",fontSize:"var(--tempi-global-paragraph3mobilefontsize)",fontWeight:"var(--tempi-global-paragraph3mobilefontweight)",lineHeight:"var(--tempi-global-paragraph3mobilelineheight)",letterSpacing:"var(--tempi-global-paragraph3mobileletterspacing)"}},layout:"grid",currencyUnit:(0,o.t)("Ä"),currencyAlignment:"right",gridOptions:{rows:4,columns:4},items:[{name:(0,o.t)("Sản phẩm 1"),price:1e5,discount:30,image:{src:"https://lh3.googleusercontent.com/8uLsW5MRqfvFIpoVhchpQN6CuMdj0hX
1ZV7dOplezAJ6j6RSdymfMCNstJMhs_G8QNZaNwh60gAhFrjYfZr2wG4JmnKfwGDw=rw-w500"},virtualRating:5,virtualSold:100,sku:"SAMPLE00001"},{name:(0,o.t)("Sản phẩm 2"),price:1e5,discount:30,image:{src:"https://lh3.googleusercontent.com/s30ROB2cqLL_G97fr4qG8VjryAdAREIOV2pUSjq9p0IjXy8V7Jy3hf-E1f-wtA9t69JIbg4xSyNR3ck_Jnfpn4bfZ6rSmJNg=rw-w500"},virtualRating:5,sku:"SAMPLE00002"},{name:(0,o.t)("Sản phẩm 3"),price:1e5,discount:30,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},virtualRating:5,sku:"SAMPLE00003"},{name:(0,o.t)("Sản phẩm 4"),price:1e5,discount:30,image:{src:"https://lh3.googleusercontent.com/xR9Sx8XT-vsY7F-2x4wnlGk7LXFLb2sCW1RoWtR7dTUmfrpqVvdO2F00Q8g51s7b1TYVZddlIIQXoUzRiv50Ao4k3TLQbvY=rw-w500"},virtualRating:5,sku:"SAMPLE00004"}],eventType:"showPopup",alignment:"left",nameStyle:{color:"#000",currentParagraphTheme:"paragraph1",fontFamily:"var(--tempi-global-paragraph1fontfamily)"},priceStyle:{color:"#000",currentParagraphTheme:"paragraph2",fontFamily:"var(--tempi-global-paragraph2fontfamily)"},discountStyle:{color:"#fff",backgroundColor:"#e40303",currentParagraphTheme:"paragraph3",fontFamily:"var(--tempi-global-paragraph3fontfamily)"},virtualSoldStyle:{color:"#000",currentParagraphTheme:"paragraph3",fontFamily:"var(--tempi-global-paragraph3fontfamily)"},virtualSoldTitle:(0,o.t)("product_list.sold"),orderButton:{buttonStyle:{height:32,borderRadius:16,color:"#ffffff",background:"#7367f0",padding:{left:15,right:15},hover:{backgroundColor:"#a195fc"},fontSize:14},text:(0,o.t)("Äặt h\xe0ng")},showButton:!1,showAddToCartButton:!1,addToCartButton:{buttonStyle:{borderStyle:"solid",borderColor:"#7367f0",borderWidth:1,height:32,borderRadius:16,color:"#7367f0",background:"#ffffff",padding:{left:15,right:15},hover:{backgroundColor:"#7367f0",color:"#ffffff"},fontSize:14},text:(0,o.t)("product_list.add_to_cart")},productDisplay:{filterType:i.g_.CATEGORY,skus:[]},actionButtons:j,searchConfig:C,paginationActiveColor:"#7367f0",paginationColor:"#000000",cardStyle:{borderColor:"#F0F0F0",borderStyle:"solid",borderWidth:1}};i.Yj.Image,i.Yj.Compare,i.Yj.Name,i.Yj.Price,i.Yj.Discount,i.Yj.VirtualRating,i.Yj.VirtualSold,(0,o.t)("product_list.buy_now"),i.Mw.Order,i.Mw.AddToCart,i.Mw.Contact,(0,o.t)("T\xean kh\xe1ch h\xe0ng"),(0,o.t)("Sá» Äiá»n thoại"),(0,o.t)("Äá»a chá»"),(0,o.t)("Th\xf4ng tin bá» sung"),(0,o.t)("T\xean sản phẩm"),(0,o.t)("Gi\xe1 b\xe1n"),(0,o.t)("T\xean"),(0,o.t)("Nháºp há» v\xe0 t\xean"),(0,o.t)("Sá» Äiá»n thoại"),(0,o.t)("Nháºp sá» Äiá»n thoại"),(0,o.t)("Äá»a chá»"),(0,o.t)("Nháºp Äá»a chá» nháºn h\xe0ng"),(0,o.t)("Th\xf4ng tin bá» sung"),(0,o.t)("Th\xf4ng tin bá» sung cho ngưá»i b\xe1n.\\nVD: Sá» lượng, k\xedch thưá»c, giao giá» h\xe0nh ch\xednh..."),(0,o.t)("Dạng lưá»i"),f(m({},O),{gridOptions:{displayMode:i.I2.All,rows:1,columns:4},desktop:f(m({},O.desktop),{gridOptions:{displayMode:i.I2.All,rows:1,columns:4}}),items:[{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00001"},{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00002"},{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00003"},{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00004"}]}),(0,o.t)("Dạng trượt"),f(m({},O),{layout:"carousel",carouselOptions:{slidesPerView:4},desktop:f(m({},O.desktop),{layout:"carousel",carouselOptions:{slidesPerView:4}}),items:[{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00001"},{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00002"},{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00003"},{name:(0,o.t)("New product"),price:2e5,image:{src:"https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"},sku:"SAMPLE00004"}]});let k=[{sku:"SAMPLE00001",sellerSku:"SELLER00001",name:"Sản phẩm mẫu",price:1e5,categoryId:1,uom:"C\xe1i",rating:5,fakePurchases:100,discountPercent:.3,link:"https://www.teko.vn/san-pham-1",images:["https://lh3.googleusercontent.com/tQK0m1oxjAfQGKzSn1iDGLCZBKsalp3FFj8Jw89pYH5IVQLhq9UiKrq774Q1-JkQ5hyR5xhUvnApUEmR-YzOMpJkNpnk3IuH=rw-w500"],descriptionDetail:"Description for Sản phẩm 1"},{sku:"SAMPLE00002",sellerSku:"SELLER00002",name:"Sản phẩm 2",price:2e5,categoryId:2,uom:"C\xe1i",rating:4.5,fakePurchases:200,discountPercent:.2,link:"https://www.teko.vn/san-pham-2",images:["https://lh3.googleusercontent.com/s30ROB2cqLL_G97fr4qG8VjryAdAREIOV2pUSjq9p0IjXy8V7Jy3hf-E1f-wtA9t69JIbg4xSyNR3ck_Jnfpn4bfZ6rSmJNg=rw-w500"],descriptionDetail:"Description for Sản phẩm 2"},{sku:"SAMPLE00003",sellerSku:"SELLER00003",name:"Sản phẩm 3",price:3e5,categoryId:3,uom:"C\xe1i",rating:4,fakePurchases:300,discountPercent:.1,link:"https://www.teko.vn/san-pham-3",images:["https://lh3.googleusercontent.com/8uLsW5MRqfvFIpoVhchpQN6CuMdj0hX
1ZV7dOplezAJ6j6RSdymfMCNstJMhs_G8QNZaNwh60gAhFrjYfZr2wG4JmnKfwGDw=rw-w500"],descriptionDetail:"Description for Sản phẩm 3"},{sku:"SAMPLE00004",sellerSku:"SELLER00004",name:"Sản phẩm 4",price:4e5,categoryId:4,uom:"C\xe1i",rating:3.5,fakePurchases:400,discountPercent:.05,link:"https://www.teko.vn/san-pham-4",images:["https://lh3.googleusercontent.com/xR9Sx8XT-vsY7F-2x4wnlGk7LXFLb2sCW1RoWtR7dTUmfrpqVvdO2F00Q8g51s7b1TYVZddlIIQXoUzRiv50Ao4k3TLQbvY=rw-w500"],descriptionDetail:"Description for Sản phẩm 4"}]},89415:(e,t,n)=>{n.d(t,{m:()=>e7});var r=n(85615),o=n(35629),i=n(2896),a=n(14308),l=n(94447),c=n(35823),p=n(3714);function s(){var e,t;let n=(e=["\n height: 400px;\n display: flex;\n text-align: center;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return s=function(){return n},n}let d=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"106",height:"100",viewBox:"0 0 106 100",fill:"none",style:{paddingLeft:"1em"},children:[(0,r.jsx)("path",{d:"M44.6033 99.4921C69.237 99.4921 89.2066 95.7607 89.2066 91.1579C89.2066 86.555 69.237 82.8237 44.6033 82.8237C19.9696 82.8237 0 86.555 0 91.1579C0 95.7607 19.9696 99.4921 44.6033 99.4921Z",fill:"#F5F5F7",fillOpacity:"0.8"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.2856 66.6737L64.5455 47.3019C63.7902 46.3901 62.6863 45.8381 61.5238 45.8381H27.6817C26.5198 45.8381 25.4159 46.3901 24.6606 47.3019L8.92114 66.6737V76.7941H80.2863V66.6737H80.2856Z",fill:"#AEB8C2"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.2566 20.8355H66.9493C67.6473 20.8355 68.3166 21.1128 68.8102 21.6063C69.3037 22.0998 69.5809 22.7692 69.5809 23.4671V84.8776C69.5809 85.5755 69.3037 86.2449 68.8102 86.7384C68.3166 87.2319 67.6473 87.5092 66.9493 87.5092H22.2566C21.5586 87.5092 20.8893 87.2319 20.3958 86.7384C19.9023 86.2449 19.625 85.5755 19.625 84.8776V23.4671C19.625 22.7692 19.9023 22.0998 20.3958 21.6063C20.8893 21.1128 21.5586 20.8355 22.2566 20.8355V20.8355Z",fill:"#F5F5F7"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.0777 27.3835H61.1283C61.4773 27.3835 61.812 27.5222 62.0587 27.7689C62.3055 28.0157 62.4441 28.3504 62.4441 28.6993V45.1184C62.4441 45.4674 62.3055 45.8021 62.0587 46.0488C61.812 46.2956 61.4773 46.4342 61.1283 46.4342H28.0777C27.7287 46.4342 27.394 46.2956 27.1472 46.0488C26.9005 45.8021 26.7619 45.4674 26.7619 45.1184V28.6993C26.7619 28.3504 26.9005 28.0157 27.1472 27.7689C27.394 27.5222 27.7287 27.3835 28.0777 27.3835ZM28.25 53.577H60.9559C61.3506 53.577 61.7291 53.7338 62.0082 54.0128C62.2873 54.2919 62.4441 54.6704 62.4441 55.0651C62.4441 55.4598 62.2873 55.8383 62.0082 56.1174C61.7291 56.3965 61.3506 56.5533 60.9559 56.5533H28.25C27.8553 56.5533 27.4768 56.3965 27.1977 56.1174C26.9186 55.8383 26.7619 55.4598 26.7619 55.0651C26.7619 54.6704 26.9186 54.2919 27.1977 54.0128C27.4768 53.7338 27.8553 53.577 28.25 53.577ZM28.25 61.3158H60.9559C61.3507 61.3158 61.7293 61.4726 62.0085 61.7518C62.2876 62.0309 62.4444 62.4095 62.4444 62.8043C62.4444 63.199 62.2876 63.5776 62.0085 63.8568C61.7293 64.1359 61.3507 64.2928 60.9559 64.2928H28.25C27.8552 64.2928 27.4766 64.1359 27.1975 63.8568C26.9184 63.5776 26.7615 63.199 26.7615 62.8043C26.7615 62.4095 26.9184 62.0309 27.1975 61.7518C27.4766 61.4726 27.8552 61.3158 28.25 61.3158ZM80.1402 89.9355C79.6303 91.9559 77.8395 93.4618 75.7092 93.4618H13.4967C11.3665 93.4618 9.57567 91.9553 9.06646 89.9355C8.96934 89.5505 8.92029 89.1549 8.92041 88.7579V66.6743H26.2349C28.1474 66.6743 29.6888 68.2849 29.6888 70.2401V70.2664C29.6888 72.221 31.248 73.7993 33.1605 73.7993H56.0454C57.9579 73.7993 59.5171 72.2066 59.5171 70.2513V70.2434C59.5171 68.2881 61.0586 66.6737 62.9711 66.6737H80.2855V88.7585C80.2855 89.1645 80.2349 89.5585 80.1402 89.9355Z",fill:"#DCE0E6"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.3164 21.9026L77.823 23.6461C77.7075 23.6909 77.5818 23.7023 77.4602 23.6789C77.3385 23.6555 77.226 23.5982 77.1355 23.5137C77.045 23.4292 76.9802 23.3208 76.9485 23.2011C76.9168 23.0813 76.9196 22.9551 76.9565 22.8368L78.2309 18.7533C76.5276 16.8164 75.5276 14.4546 75.5276 11.9059C75.5276 5.33026 82.1842 0 90.396 0C98.6059 0 105.263 5.33026 105.263 11.9059C105.263 18.4816 98.6065 23.8118 90.3954 23.8118C87.4164 23.8118 84.6427 23.1105 82.3164 21.9026Z",fill:"#DCE0E6"}),(0,r.jsx)("path",{d:"M96.2528 14.0559C97.2879 14.0559 98.1271 13.2268 98.1271 12.204C98.1271 11.1811 97.2879 10.352 96.2528 10.352C95.2176 10.352 94.3784 11.1811 94.3784 12.204C94.3784 13.2268 95.2176 14.0559 96.2528 14.0559Z",fill:"white"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.4132 13.8243H82.6646L84.5711 10.5836L86.4132 13.8243ZM88.756 10.5836H92.0356V13.8243H88.756V10.5836Z",fill:"white"})]}),u=()=>(0,r.jsx)(g,{children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:(0,r.jsx)(d,{})}),(0,r.jsx)("div",{style:{marginTop:"1em"},children:"Chưa c\xf3 sản phẩm n\xe0o"})]})}),g=p.A.div(s());var m=n(24008),f=n(71962),h=n(97848),y=n(69663),b=n(66247),v=n(54124);function w(){var e,t;let n=(e=["\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: ",";\n margin: 10px 0;\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return w=function(){return n},n}var S=Object.defineProperty,x=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,O=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))j.call(t,n)&&O(e,n,t[n]);if(x)for(var n of x(t))C.call(t,n)&&O(e,n,t[n]);return e};let P=e=>{let{isEditingMode:t,value:n,onChange:o,isMobile:i,align:c=b.pc.align,placeholder:p=b.pc.placeholder,textStyle:s,colorStyle:d}=e,u=(0,l.useMemo)(()=>(0,a.sg)(e=>{o(e)},500),[o]),[g,m]=(0,l.useState)(n||""),f={[y.C1.left]:"flex-start",[y.C1.center]:"center",[y.C1.right]:"flex-end"};return(0,r.jsx)(A,{align:f[c],children:(0,r.jsx)(v.S,{style:{paddingRight:30,paddingLeft:20},type:"text",inputStyle:k(k({width:"100%",borderRadius:"99px",backgroundImage:'url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23000000d9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65" style="stroke-width: 2;"></line></svg>\')',backgroundRepeat:"no-repeat",backgroundPosition:"right 10px center"},s),d),commonStyle:{height:38,width:i?"100%":300},readOnly:t,placeholder:p,value:g,onChange:e=>{m(e.target.value),u(e.target.value)}})})},A=p.A.div(w(),e=>{let{align:t}=e;return t});var R=n(63429),I=n(45118),M=n(54300),E=n(50419),z=n(33555),_=n(3362
10),T=n(93456),L=n(24775),W=n(47271),Q=n(63803),F=n(3055),N=n(12580),G=n(14545);function K(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function V(){let e=K(["\n position: relative;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n"]);return V=function(){return e},e}function U(){let e=K(["\n position: relative;\n margin-bottom: 4px;\n"]);return U=function(){return e},e}function D(){let e=K(["\n display: inline-block;\n overflow: hidden;\n position: absolute;\n height: 100%;\n inset: 0;\n ","\n"]);return D=function(){return e},e}function H(){let e=K(["\n display: flex;\n align-items: center;\n width: max-content;\n color: #7367f0;\n cursor: pointer;\n margin: 10px 8px;\n"]);return H=function(){return e},e}function J(){let e=K(["\n &.detail-card {\n &.left {\n .detail-card__name {\n text-align: left;\n }\n .detail-card__price,\n .detail-card__extra {\n justify-content: flex-start;\n }\n }\n &.center {\n .detail-card__name {\n text-align: center;\n }\n .detail-card__price,\n .detail-card__extra {\n justify-content: center;\n }\n }\n &.right {\n .detail-card__name {\n text-align: right;\n }\n .detail-card__price,\n .detail-card__extra {\n justify-content: flex-end;\n }\n }\n }\n"]);return J=function(){return e},e}function Y(){let e=K(["\n padding: 0 8px;\n font-size: 14px;\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n color: #000000;\n height: 2lh;\n font-weight: 700;\n ","\n"]);return Y=function(){return e},e}function q(){let e=K(["\n display: flex;\n padding: 0 8px;\n"]);return q=function(){return e},e}function B(){let e=K(["\n font-weight: 400;\n font-size: 14px;\n ","\n"]);return B=function(){return e},e}function Z(){let e=K(["\n padding: 0 4px;\n color: #ffffff;\n background-color: #e40303;\n border-radius: 2px;\n font-weight: 700;\n ","\n"]);return Z=function(){return e},e}function X(){let e=K(["\n display: flex;\n align-items: center;\n column-gap: 8px;\n padding: 0 8px;\n"]);return X=function(){return e},e}function $(){let e=K(["\n font-weight: 400;\n ","\n"]);return $=function(){return e},e}function ee(){let e=K(["\n display: inline-flex;\n align-items: center;\n column-gap: 0.5em;\n row-gap: 0.5em;\n width: 100%;\n padding: 8px;\n justify-content: center;\n\n &.icon-button {\n column-gap: 0;\n }\n\n .button-width {\n width: fit-content;\n }\n\n a {\n width: 100%;\n }\n"]);return ee=function(){return e},e}function et(){let e=K(["\n position: absolute;\n top: 4px;\n right: 8px;\n z-index: 1;\n"]);return et=function(){return e},e}var en=Object.defineProperty,er=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable,ec=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ep=(e,t)=>{for(var n in t||(t={}
1))ea.call(t,n)&&ec(e,n,t[n]);if(ei)for(var n of ei(t))el.call(t,n)&&ec(e,n,t[n]);return e},es=(e,t)=>er(e,eo(t)),ed=(e,t)=>{var n={};for(var r in e)ea.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&ei)for(var r of ei(e))0>t.indexOf(r)&&el.call(e,r)&&(n[r]=e[r]);return n};let eu=e=>{var t;let{product:n,nameStyle:a,priceStyle:c,discountStyle:p,imageStyle:s,virtualSoldStyle:d,virtualSoldTitle:u,alignment:g,onClick:m,handleClickOrder:f=()=>{},isEditingMode:h=!1,currencyUnit:y,currencyAlignment:b,showButton:v,mobile:w,desktop:S,fields:x,actionButtons:j,borderColor:C,cardStyle:O,imageOptimization:k}=e,{device:P}=(0,o.P)(),{setShowProductComparePopup:A,addProductToCompare:R}=(0,L.l)(),{name:W,discount:Q,price:K,image:V,link:U,virtualSold:D,virtualRating:H}=n,J=(0,l.useRef)(null),Y=e=>e?ed(e,["color"]):e,q=e=>e?es(ep({},e),{nameStyle:Y(e.nameStyle),priceStyle:Y(e.priceStyle),discountStyle:Y(e.discountStyle),virtualSoldStyle:Y(e.virtualSoldStyle)}):e,B={nameStyle:a,priceStyle:c,discountStyle:p,virtualSoldStyle:d,imageStyle:s,desktop:q(S),mobile:q(w)},{nameStyle:Z,discountStyle:X,virtualSoldStyle:$,priceStyle:ee,imageStyle:et}=(0,i.gJ)(B,P),en=et||{},{aspectRatio:er="1 / 1",objectFit:eo="cover"}=en,ei=ed(en,["aspectRatio","objectFit"]),ea=(0,r.jsx)(ef,{ref:J,children:(0,r.jsxs)("div",{style:{position:"relative",aspectRatio:er},children:[!!Q&&(null==(t=null==x?void 0:x.find(e=>e.type===M.Yj.Discount))?void 0:t.isActive)&&(0,r.jsx)(ek,{children:(0,r.jsx)(ex,{commonStyle:X,children:"-".concat(Q,"%")})}),(0,r.jsx)(eh,es(ep({imageOptimization:k,commonStyle:ep({objectFit:eo,height:"100%",width:"100%"},ei),autoOptimize:!0},V),{alt:(null==V?void 0:V.alt)||W}))]})}),el="function"==typeof m,ec=()=>{let e=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(D);return(0,r.jsx)(eC,{text:"".concat(u||(0,_.Tl)("product_list.sold")," ").concat(e),commonStyle:$})},eu=()=>h||!v?ea:(0,r.jsx)(N.N,es(ep({},{eventType:"link",link:{openNewTab:!0,nofollow:!0,href:U}}),{children:ea})),eP=()=>(null==x?void 0:x.length)?x.filter(e=>e.isActive).map((e,t)=>{switch(e.type){case M.Yj.Name:return(0,r.jsx)(ev,{className:"detail-card__name",text:W,commonStyle:Z},"".concat(e.type,"-").concat(t));case M.Yj.Price:return(0,r.jsx)(ew,{className:"detail-card__price",children:(!!K||0===K)&&(0,r.jsx)(eS,{text:(0,E.bU)(K,y,b),commonStyle:ee})},"".concat(e.type,"-").concat(t));case M.Yj.VirtualRating:return H>0?(0,r.jsx)(ej,{className:"detail-card__extra",children:(0,r.jsx)(G.G,{style:{fontSize:(null==ee?void 0:ee.fontSize)||14},value:H,disabled:!0})},"".concat(e.type,"-").concat(t)):null;case M.Yj.VirtualSold:return D>0?(0,r.jsx)(ej,{className:"detail-card__extra",children:ec()},"".concat(e.type,"-").concat(t)):null;case M.Yj.Image:return(0,r.jsx)(l.Fragment,{children:eu()},"".concat(e.type,"-").concat(t));case M.Yj.Compare:return(0,r.jsxs)(ey,{onClick:h?null:e=>{e.stopPropagation(),A(!0),R(es(ep({},n),{currencyUnit:y,currencyAlignment:b}))},children:[(0,r.jsx)(T.I,{name:"ScalesOutlined",style:{fontSize:20}}),(0,r.jsx)("span",{style:{fontSize:14,marginLeft:5},children:(0,_.Tl)("product_list.compare")})]});default:return null}}):(0,r.jsxs)(r.Fragment,{children:[eu(),(0,r.jsx)(ev,{className:"detail-card__name",text:W,commonStyle:Z}),(0,r.jsx)(ew,{className:"detail-card__price",children:(!!K||0===K)&&(0,r.jsx)(eS,{text:(0,E.bU)(K,y,b),commonStyle:ee})}),(H>0||D>0)&&(0,r.jsxs)(ej,{className:"detail-card__extra",children:[H>0&&(0,r.jsx)(G.G,{style:{fontSize:(null==ee?void 0:ee.fontSize)||14},value:H,disabled:!0}),D>0&&ec()]})]});return(0,r.jsx)(eg,{children:(0,r.jsxs)(em,{commonStyle:O,borderColor:C,children:[h||v?(0,r.jsx)(eb,{className:"".concat((0,I.A)("detail-card",g)," ").concat((0,I.A)({"allow-click":el})),children:eP()}):el?(0,r.jsx)(eb,{onClick:()=>{el&&m(n)},className:"".concat((0,I.A)("detail-card",g)," ").concat((0,I.A)({"allow-click":el})),style:{cursor:"pointer"},children:eP()}):(0,r.jsx)(N.N,es(ep({},{eventType:"link",link:{openNewTab:!0,nofollow:!0,href:U}}),{children:(0,r.jsx)(eb,{className:"".concat((0,I.A)("detail-card",g)," ").concat((0,I.A)({"allow-click":el})),children:eP()})})),(()=>{let e=j||[],t=e.some(e=>e.layout===M.mA.Icon);return(0,r.jsx)(eO,{className:t?"icon-button":"",children:null==e?void 0:e.map((e,t)=>{switch(e.type){case M.Mw.AddToCart:return(0,r.jsx)(z.h,{product:n,showAddToCartButton:!0,isEditingMode:h,addToCartButton:e,currencyUnit:y,currencyAlignment:b,layout:e.layout,wrapperRef:J},"".concat(e.name,"-").concat(t));case M.Mw.Order:return(0,r.jsx)(l.Fragment,{children:(0,l.createElement)(F.J,es(ep({onClick:h?null:()=>f(n)},e),{isEditingMode:h,key:e.id,commonStyle:{justifyContent:"center",flex:1},className:"button-width",style:{marginTop:6}}))}
1,"".concat(e.name||e.id,"-").concat(t));case M.Mw.Contact:return(0,r.jsx)(F.J,es(ep({},e),{commonStyle:{justifyContent:"center",flex:1},className:"button-width",style:{marginTop:6}}),"".concat(e.name,"-").concat(t));default:return null}})})})()]})})},eg=p.A.div(V()),em=p.A.div(e=>{let{commonStyle:t}=e;return"\n position: relative;\n flex: 1 0 auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n &.allow-click {\n &:hover {\n cursor: pointer;\n }\n }\n ".concat(t?(0,a.gd)(t):"border: 1px solid ".concat(e=>{let{borderColor:t}=e;return t||"transparent"},";"),"\n \n")}),ef=p.A.div(U()),eh=(0,p.A)(W._)(D(),e=>(0,a.gd)(null==e?void 0:e.commonStyle)),ey=p.A.div(H()),eb=p.A.div(J()),ev=(0,p.A)(Q.f)(Y(),e=>(0,a.gd)(null==e?void 0:e.commonStyle)),ew=p.A.div(q()),eS=(0,p.A)(Q.f)(B(),e=>(0,a.gd)(null==e?void 0:e.commonStyle)),ex=p.A.span(Z(),e=>(0,a.gd)(null==e?void 0:e.commonStyle)),ej=p.A.div(X()),eC=(0,p.A)(Q.f)($(),e=>(0,a.gd)(null==e?void 0:e.commonStyle)),eO=p.A.div(ee()),ek=p.A.div(et());var eP=n(73746),eA=n(54083),eR=Object.defineProperty,eI=Object.defineProperties,eM=Object.getOwnPropertyDescriptors,eE=Object.getOwnPropertySymbols,ez=Object.prototype.hasOwnProperty,e_=Object.prototype.propertyIsEnumerable,eT=(e,t,n)=>t in e?eR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eL=(e,t)=>{for(var n in t||(t={}))ez.call(t,n)&&eT(e,n,t[n]);if(eE)for(var n of eE(t))e_.call(t,n)&&eT(e,n,t[n]);return e};let eW=e=>{let{items:t=[],carouselOptions:n,layout:a,isEditingMode:l,cardStyle:p}=e,s=((e,t)=>{var n={};for(var r in e)ez.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eE)for(var r of eE(e))0>t.indexOf(r)&&e_.call(e,r)&&(n[r]=e[r]);return n})(e,["items","carouselOptions","layout","isEditingMode","cardStyle"]),{device:d}=(0,o.P)(),{commonStyle:u}=(0,i.gJ)({commonStyle:p,desktop:{commonStyle:s.desktop.cardStyle},mobile:{commonStyle:s.mobile.cardStyle}},d),g=(0,c.eC)(e,eP.W.joinKey(eP.W.CarouselOptions,eP.W.SlidesPerView),"desktop",b.Ol.slidesPerView),m=(0,c.eC)(e,eP.W.joinKey(eP.W.CarouselOptions,eP.W.SlidesPerView),"mobile",b.SG.slidesPerView),f="mobile"===d?m:g,h=(0,c.eC)(e,eP.W.joinKey(eP.W.CarouselOptions,eP.W.Gutter),d,b.Ol.gutter),y=(0,c.eC)(e,eP.W.joinKey(eP.W.CarouselOptions,eP.W.Speed),d,("mobile"===d?b.SG:b.Ol).speed);return(0,r.jsx)(eA.z,eI(eL({},n),eM({speed:y,slidesPerView:f,slidesPerViewMobile:2.5,allowTouchMove:!l,spaceBetween:h,children:t.map((e,t)=>(0,r.jsx)(R.D,{sWidth:{value:100/m,unit:"%"},mWidth:{value:100/g,unit:"%"},children:(0,r.jsx)(eu,eL({product:e,isEditingMode:l,cardStyle:u},s))},t))})))};var eQ=n(32605);function eF(){var e,t;let n=(e=["\n display: grid;\n align-self: stretch;\n gap: ",";\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return eF=function(){return n},n}var eN=Object.defineProperty,eG=Object.getOwnPropertySymbols,eK=Object.prototype.hasOwnProperty,eV=Object.prototype.propertyIsEnumerable,eU=(e,t,n)=>t in e?eN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let eD=e=>{let{items:t=[],gridOptions:n,layout:a,isEditingMode:p,cardStyle:s}=e,d=((e,t)=>{var n={};for(var r in e)eK.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eG)for(var r of eG(e))0>t.indexOf(r)&&eV.call(e,r)&&(n[r]=e[r]);return n})(e,["items","gridOptions","layout","isEditingMode","cardStyle"]),[u,g]=(0,l.useState)(1),{device:m}=(0,o.P)(),{commonStyle:f}=(0,i.gJ)({commonStyle:s,desktop:{commonStyle:d.desktop.cardStyle},mobile:{commonStyle:d.mobile.cardStyle}},m),h=(0,c.eC)(e,eP.W.PaginationActiveColor,m,b.w6),y=(0,c.eC)(e,eP.W.PaginationColor,m,b.HA),v=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.DisplayMode),m),w=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.Columns),"desktop",b.CY.columns),S=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.Columns),"mobile",b.Sn.columns),x=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.Rows),"desktop",b.CY.rows),j=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.Rows),"mobile",b.Sn.rows),C=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.RowGap),m,b.CY.rowGap),O=(0,c.eC)(e,eP.W.joinKey(eP.W.GridOptions,eP.W.ColumnGap
1),m,b.CY.columnGap),k="mobile"===m?S:w,P=k*("mobile"===m?j:x),A=v===M.I2.Pagination,I=(0,l.useMemo)(()=>A?t.slice((u-1)*P,u*P):t,[t,P,u,A]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eH,{style:{gridTemplateColumns:"repeat(".concat(k,", minmax(0, 1fr))")},rowGap:C,columnGap:O,children:I.map((e,t)=>(0,r.jsx)("div",{children:(0,r.jsx)(R.D,{sWidth:{value:100/S,unit:"%"},mWidth:{value:100/w,unit:"%"},children:(0,r.jsx)(eu,((e,t)=>{for(var n in t||(t={}))eK.call(t,n)&&eU(e,n,t[n]);if(eG)for(var n of eG(t))eV.call(t,n)&&eU(e,n,t[n]);return e})({product:e,isEditingMode:p,cardStyle:f},d))})},t))}),A&&!!t.length&&(0,r.jsx)(eQ.d,{isEditingMode:p,onPageChange:e=>{let{selected:t}=e;return g(t+1)},pageCount:Math.ceil(t.length/P),textColor:y,paginationColor:h})]})},eH=p.A.div(eF(),e=>{let{rowGap:t,columnGap:n}=e;return"".concat(t,"px ").concat(n,"px")});var eJ=n(38037),eY=n(64399),eq=Object.defineProperty,eB=Object.defineProperties,eZ=Object.getOwnPropertyDescriptors,eX=Object.getOwnPropertySymbols,e$=Object.prototype.hasOwnProperty,e0=Object.prototype.propertyIsEnumerable,e1=(e,t,n)=>t in e?eq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e2=(e,t)=>{for(var n in t||(t={}
1))e$.call(t,n)&&e1(e,n,t[n]);if(eX)for(var n of eX(t))e0.call(t,n)&&e1(e,n,t[n]);return e},e5=(e,t)=>eB(e,eZ(t)),e6=(e,t)=>{var n={};for(var r in e)e$.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eX)for(var r of eX(e))0>t.indexOf(r)&&e0.call(e,r)&&(n[r]=e[r]);return n};let e3=e=>{var{wrapperRef:t,orderPopupId:n,layout:o,isEditingMode:i,products:a}=e,l=e6(e,["wrapperRef","orderPopupId","layout","isEditingMode","products"]);let{buyNow:c}=(0,eY.x)(),{setSelectedProduct:p}=(0,h.m)(),s="showPopup"===(null==l?void 0:l.eventType)?e=>{p(e)}:void 0;return(0,r.jsx)("carousel"===o?eW:eD,e5(e2({isEditingMode:i},l),{items:a,layout:o,onClick:s,handleClickOrder:e=>{var r,o;c(e),null==(o=null==(r=t.current)?void 0:r.ownerDocument.querySelector('[data-uniq-id="'.concat(n,'"]')))||o.click()}}))},e7=e=>{var{isEditingMode:t,configStorage:n,children:a,orderPopupId:p,ssrData:s,triggerUpdate:d,className:g}=e,y=e6(e,["isEditingMode","configStorage","children","orderPopupId","ssrData","triggerUpdate","className"]);let{device:b}=(0,o.P)(),v=(0,c.eC)(y,eP.W.Layout,b,y.layout),{filterType:w,categoryId:S,skus:x,productOrder:j}=y.productDisplay||{},C=(0,l.useRef)(),{products:O,loading:k,searchQuery:A,setSearchQuery:R}=(0,m.Q)({skus:x,categoryId:S,ssrData:s,triggerUpdate:d,filterType:w,productOrder:j}),{commonStyle:I,currencyAlignment:M,searchConfig:E}=(0,i.gJ)(y,b),{show:z,placeholder:_,align:T,colorStyle:L,textStyle:W}=E||{},{updateProductForPopup:Q,updateCurrencyConfig:F}=(0,f._)(),{productDetailPopup:N,currencyUnit:G}=y;return(0,l.useEffect)(()=>{t&&Q(N,O)},[O,t,N,Q]),(0,l.useEffect)(()=>{F(N,{currencyUnit:G,currencyAlignment:M})},[G,M,N,F]),(0,r.jsx)(h.I,{children:(0,r.jsxs)(e8,{ref:C,commonStyle:I,className:g,"data-id":y.id,children:[k?(0,r.jsx)(eJ.R,{}):(0,r.jsxs)(r.Fragment,{children:[z&&(0,r.jsx)(P,{isEditingMode:t,placeholder:_,onChange:R,value:A,align:T,textStyle:W,colorStyle:L}),(null==O?void 0:O.length)>0?(0,r.jsx)(e3,e5(e2({},y),{wrapperRef:C,orderPopupId:p,layout:v,isEditingMode:t,products:O,currencyAlignment:M})):(0,r.jsx)(u,{})]}),a]})})},e8=p.A.div(e=>{let{commonStyle:t}=e;return"".concat((0,a.gd)(t),";")});e7.displayName="TempiProductListV3"}}]);
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.