"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[74789],{42052:(n,e,r)=>{r.d(e,{a:()=>x});var i,t,c=r(4942),a=r(45987),o=(r(74475),r(47941),r(82526),r(57327),r(38880),r(89554),r(54747),r(49337),r(33321),r(69070),r(30168)),s=r(71893),l=r(24265),d=s.ZP.div(i||(i=(0,o.Z)(["\n background-color: #ffffffb8;\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n text-align: center;\n z-index: ",";\n border: 1px solid transparent;\n border-radius: ",";\n"])),(function(n){return n.theme.layout.zIndex.overlay}),(function(n){return n.overlayBorderRadius?"".concat(n.overlayBorderRadius,"px"):0})),p=(0,s.ZP)(l.a)(t||(t=(0,o.Z)(["\n position: absolute;\n top: 50%;\n left: 50%;\n width: ",";\n height: ",";\n"])),(function(n){return n.$big?"5rem":"4rem"}),(function(n){return n.$big?"5rem":"4rem"})),u=r(63742),g=r(53397),m=r(85893),h=["big","overlayBorderRadius"];function f(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,i)}return r}function b(n){for(var e=1;e{r.d(e,{Z:()=>c});r(66992),r(41539),r(78783),r(33948),r(60285),r(74916),r(64765);var i=r(67294),t=r(89250);const c=function(){var n=(0,t.TH)();return(0,i.useMemo)((function(){return new URLSearchParams(n.search).has("openAssistant")}),[])}},1785:(n,e,r)=>{r.d(e,{K:()=>Hn,Z:()=>Un});var i,t,c,a,o,s,l,d,p,u,g,m,h,f,b,x,Z,P=r(29439),j=(r(21249),r(22981)),v=r(30305),y=r(28225),w=r(42052),O=r(15861),k=r(64687),C=r.n(k),B=(r(68309),r(92087),r(47042),r(36609)),A=r(71893),_=r(12049),R=r(26662),D=r(3234),T=r(30168),L=r(91044),S=r(51062),z=r(7730),E=r(85664),F=r(46229),K=r(55145),N=A.ZP.div(i||(i=(0,T.Z)(["\n border: 2px solid ",";\n border-radius: 0.5rem;\n padding: ",";\n margin-top: ",";\n"])),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing03})),$=A.ZP.div(t||(t=(0,T.Z)(["\n display: flex;\n flex-direction: ",";\n"])),(function(n){return n.isTablet?"row":"column"})),H=A.ZP.img(c||(c=(0,T.Z)(["\n width: 6.25rem;\n height: 6.25rem;\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing02})),U=(0,A.ZP)(L.X)(a||(a=(0,T.Z)(["\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),J=A.ZP.div(o||(o=(0,T.Z)([""]))),V=(0,A.ZP)(K.Z)(s||(s=(0,T.Z)(["\n margin-top: 0;\n margin-bottom: 0;\n"]))),X=A.ZP.span(l||(l=(0,T.Z)(["\n ",";\n text-decoration: line-through;\n white-space: nowrap;\n line-height: 1.45rem;\n"])),S.g.body2Regular),q=(0,A.ZP)(z.Z)(d||(d=(0,T.Z)(["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing005})),G=(0,A.iv)(p||(p=(0,T.Z)(["\n ",";\n white-space: nowrap;\n &&& {\n margin-top: 0;\n }\n"])),S.g.header.h1),I=A.ZP.div(u||(u=(0,T.Z)(["\n ",";\n display: flex;\n align-items: center;\n color: ",";\n margin-right: ",";\n"])),G,(function(n){return n.theme.colors.danger.main}),(function(n){return n.theme.spacing.spacing01})),M=A.ZP.span(g||(g=(0,T.Z)(["\n ",";\n color: ",";\n display: inline-block;\n margin-bottom: ",";\n"])),G,(function(n){return n.theme.colors.black}),(function(n){return n.theme.spacing.spacing01})),W=(0,A.ZP)(E.C)(m||(m=(0,T.Z)(["\n margin-left: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),Q=A.ZP.div(h||(h=(0,T.Z)([""]))),Y=(0,A.ZP)(F.z)(f||(f=(0,T.Z)(["\n display: block;\n margin-top: ",";\n width: 100%;\n"])),(function(n){return n.theme.spacing.spacing02})),nn=A.ZP.div(b||(b=(0,T.Z)(["\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing02})),en=A.ZP.ul(x||(x=(0,T.Z)(["\n margin: 0;\n margin-left: ",";\n & > li {\n margin-bottom: 0;\n }\n"])),(function(n){return n.theme.spacing.spacing02})),rn=(0,A.ZP)(z.Z)(Z||(Z=(0,T.Z)(["\n display: block;\n margin-top: -",";\n margin-bottom: ",";\n color: ",";\n"])),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.colors.danger.main})),tn=r(54952),cn=r(13010),an=r(85893);const on=function(n){var e=n.product,r=n.domain,i=n.onAddToCart,t=e.name,c=e.images,a=e.ratingAvg,o=e.ratingCount,s=e.promotionalPrice,l=e.originalPrice,d=e.bestPriceSummary,p=e.recommendedPrice,u=e.isPCC,g=e.topAttributes,m=e.flags,h=(0,A.Fg)(),f=(0,j.EB)(v.B.tabletPortrait),b=(0,D.eJ)({isNew:(0,cn.zF)(m),isWinnerPcc:!!u,bestPriceSummary:d,price:s||l,recommendedPrice:p,originalPrice:l});return(0,an.jsxs)(N,{children:[(0,an.jsxs)($,{isTablet:f,children:[(0,an.jsx)(H,{src:c.large.path,alt:"image-".concat(t)}),(0,an.jsxs)(J,{children:[(0,an.jsx)(U,{as:"h3",children:t}),0!==a&&a&&(0,an.jsx)(V,{className:"assistant-product-card__rating-container-modal",opinionAmount:o,rating:2*a,type:2}),b.crossedOutPrice?(0,an.jsxs)(nn,{children:[(0,an.jsxs)(I,{children:[(0,an.jsx)(R.t,{price:b.price}),!!b.discount&&(0,an.jsx)(W,{bold:!0,bgColor:h.colors.danger.main,textColor:h.colors.white,isolated:!0,children:(0,an.jsxs)("span",{children:[" -",b.discount,"%"]})})]}),b.crossedOutPriceType===tn.Sf.PVPR&&(0,an.jsx)(q,{typo:"body2Regular",children:(0,B.t)("product.pvpr")}),(0,an.jsx)(X,{children:(0,an.jsx)(R.t,{price:b.crossedOutPrice})})]}):(0,an.jsx)(M,{children:(0,an.jsx)(R.t,{price:b.price})}),b.crossedOutPriceType&&b.crossedOutPriceType!==tn.Sf.PVPR&&(0,an.jsx)(rn,{typo:"captionRegular",children:(0,B.t)("product.card.".concat(b.crossedOutPriceType))}),g&&g.slice(0,5).map((function(n){return(0,an.jsx)(en,{children:(0,an.jsxs)("li",{children:[(0,an.jsxs)("span",{children:[n.name,": "]}),(0,an.jsx)("span",{children:n.value})]})},n.name)}))]})]}),(0,an.jsxs)(Q,{children:[(0,an.jsx)(Y,{onClick:function(){window.location.href=(0,_.K)(r,e.slug)},secondary:!0,children:(0,B.t)("article.detail.seeDetail")}),(0,an.jsx)(Y,{onClick:(0,O.Z)(C().mark((function n(){return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i(e);case 2:case"end":return n.stop()}}),n)}))),children:(0,B.t)("productDetail.buyBox.AddToCart")})]})]})};r(92222);var sn,ln,dn,pn,un,gn,mn,hn,fn,bn,xn,Zn,Pn,jn,vn,yn,wn,On=r(16173),kn=A.ZP.section(sn||(sn=(0,T.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),Cn=A.ZP.div(ln||(ln=(0,T.Z)(["\n display: flex;\n items-align: center;\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing02})),Bn=A.ZP.div(dn||(dn=(0,T.Z)(["\n display: flex;\n flex-direction: column;\n "," {\n flex-direction: row;\n justify-content: space-between;\n }\n"])),v.B.tabletPortrait),An=A.ZP.div(pn||(pn=(0,T.Z)(["\n display: ",";\n grid-template-columns: repeat(2, 1fr);\n grid-gap: ",";\n"])),(function(n){return n.grid?"grid":"block"}),(function(n){return n.theme.spacing.spacing02})),_n=(0,A.ZP)(F.z)(un||(un=(0,T.Z)(["\n padding: 0 ",";\n margin-right: ",";\n margin-top: ",";\n :hover {\n border: 1px solid ",";\n }\n text-align: left;\n"])),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20})),Rn=A.ZP.button(gn||(gn=(0,T.Z)(["\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n border: 1px solid ",";\n padding: ",";\n border-radius: 4px;\n cursor: pointer;\n align-items: center;\n &:hover,\n :focus {\n border: 2px solid black;\n padding: 0.938rem;\n }\n"])),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.spacing.spacing02})),Dn=A.ZP.div(mn||(mn=(0,T.Z)(["\n display: -webkit-box;\n --lines: 3;\n -webkit-line-clamp: var(--lines);\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),Tn=A.ZP.img(hn||(hn=(0,T.Z)(["\n height: 7.25rem;\n width: 7.25rem;\n border-radius: 4px;\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),Ln=A.ZP.span(fn||(fn=(0,T.Z)(["\n background-color: ",";\n padding: ",";\n border-radius: ",";\n margin-right: ",";\n margin-bottom: ",";\n font-size: 12px;\n"])),(function(n){return n.theme.colors.environment.percent05}),(function(n){var e=n.theme;return"".concat(e.spacing.spacing005," ").concat(e.spacing.spacing02)}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing01})),Sn=A.ZP.div(bn||(bn=(0,T.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),zn=A.ZP.div(xn||(xn=(0,T.Z)(["\n display: flex;\n flex-wrap: wrap;\n"]))),En=(0,A.ZP)(F.z)(Zn||(Zn=(0,T.Z)(["\n padding: 0 ",";\n margin-top: ",";\n margin-right: ",";\n border: 1px solid ",";\n height: 2rem;\n"])),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20})),Fn=A.ZP.div(Pn||(Pn=(0,T.Z)(["\n display: flex;\n align-items: end;\n margin-top: ",";\n "," {\n margin-top: 0;\n }\n"])),(function(n){return n.theme.spacing.spacing02}),v.B.tabletPortrait),Kn=A.ZP.img(jn||(jn=(0,T.Z)(["\n &&& {\n border-radius: 50%;\n height: 3rem;\n width: 3rem;\n margin-right: ",";\n "," {\n margin-right: ",";\n height: 5.7rem;\n width: 5.7rem;\n }\n }\n"])),(function(n){return n.theme.spacing.spacing02}),v.B.tabletPortrait,(function(n){return n.theme.spacing.spacing04})),Nn=(0,A.ZP)(L.X)(vn||(vn=(0,T.Z)(["\n && {\n margin: 0;\n }\n"]))),$n=(0,A.ZP)(On.i)(yn||(yn=(0,T.Z)(["\n margin: 0;\n margin-top: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),Hn=(A.ZP.div(wn||(wn=(0,T.Z)(["\n margin-top: ",";\n width: 100%;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(9.75rem, 2fr));\n grid-gap: ",";\n\n "," {\n grid-template-columns: repeat(auto-fill, minmax(13.875rem, 1fr));\n grid-gap: ",";\n }\n\n & > div > a {\n &:hover {\n color: ",";\n }\n }\n"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),v.B.tabletPortrait,(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.colors.black})),5);const Un=function(n){var e,r=n.options,i=n.question,t=n.isLoading,c=n.handleReset,a=n.handleFilter,o=n.appliedFilters,s=n.undoLastFilter,l=n.image,d=n.products,p=n.domain,u=n.loading,g=n.onAddToCart,m=(0,y.$G)(),h=(0,P.Z)(m,1)[0],f=(0,j.EB)(v.B.tabletPortrait);return(0,an.jsx)(an.Fragment,{children:u?(0,an.jsx)(w.a,{}):(0,an.jsxs)(kn,{children:[(0,an.jsxs)(Cn,{children:[(0,an.jsx)(Kn,{src:l}),(0,an.jsx)(Nn,{as:f?"h2":"h4",children:i})]}),(0,an.jsx)(Sn,{children:(0,an.jsx)(zn,{children:o&&o.map((function(n){return(0,an.jsx)(Ln,{children:n.label},n.label)}))})}),(0,an.jsx)(Bn,{children:(0,an.jsx)(An,{grid:!(null===(e=r[0])||void 0===e||!e.image)||!1,children:r&&r.map((function(n){return n.image?(0,an.jsxs)(Rn,{disabled:t,onClick:function(){return a(n)},children:[(0,an.jsx)(Tn,{src:n.image,alt:""}),(0,an.jsx)(Dn,{children:n.label})]},n.label):(0,an.jsx)(_n,{disabled:t,onClick:function(){return a(n)},children:n.label},n.label)}))})}),(0,an.jsx)($n,{}),(0,an.jsx)(Fn,{children:!!o.length&&(0,an.jsxs)(an.Fragment,{children:[(0,an.jsx)(En,{secondary:!0,onClick:s,disabled:t,children:h("searchAssistant.panel.btnBack")}),(0,an.jsx)(En,{secondary:!0,onClick:c,disabled:t,children:h("searchAssistant.panel.btnReset")})]})}),d.map((function(n){return(0,an.jsx)(on,{product:n,domain:p,onAddToCart:g},n.id)}))]})})}}}]); //# sourceMappingURL=74789.js.map