"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4908],{38770:(n,e,t)=>{t.d(e,{W:()=>d});var i,r,o=t(30514),a=t(71893),c=t(30305),l=(t(67294),function(n){return"\n padding-left: ".concat(n,";\n padding-right: ").concat(n,";\n")}),d=a.ZP.div(r||(r=(0,o.cy)(["\n margin: 0 auto;\n width: 100vw;\n max-width: ",";\n ",";\n\n /* Media queries for display different layout spacing */\n "," {\n ",";\n }\n "," {\n ",";\n }\n "," {\n ",";\n }\n "," {\n ",";\n }\n\n /* Fluid container variant styles */\n ","\n"],["\n margin: 0 auto;\n width: 100vw;\n max-width: ",";\n ",";\n\n /* Media queries for display different layout spacing */\n "," {\n ",";\n }\n "," {\n ",";\n }\n "," {\n ",";\n }\n "," {\n ",";\n }\n\n /* Fluid container variant styles */\n ","\n"])),(function(n){return n.theme.layout.grid.width}),(function(n){return l(n.theme.spacing.spacing02)}),c.B.tabletPortrait,(function(n){return l(n.theme.spacing.spacing03)}),c.B.tabletLandscape,(function(n){return l(n.theme.spacing.spacing04)}),c.B.desktop,(function(n){return l(n.theme.spacing.spacing04)}),c.B.desktopLarge,(function(n){return l(n.theme.spacing.spacing04)}),(function(n){return n.fluid&&(0,a.iv)(i||(i=(0,o.cy)(["\n max-width: 100vw;\n /* Media queries for display different layout spacing */\n ",";\n "," {\n ",";\n }\n "],["\n max-width: 100vw;\n /* Media queries for display different layout spacing */\n ",";\n "," {\n ",";\n }\n "])),(function(n){return l("0")}),c.B.tabletPortrait,(function(n){return l("0")}))}));d.defaultProps={fluid:!1}},42347:(n,e,t)=>{t.d(e,{r:()=>h});var i,r,o=t(30514),a=t(67294),c=t(80092),l=t(63742),d=function(n){var e=n.text,t=n.icon,i=n.iconPos,r=void 0===i?"left":i,o=n.iconColor,c=void 0===o?"inherit":o;return a.createElement(a.Fragment,null,t&&"left"===r&&a.createElement(l.J,{icon:t,big:!0,right:!0,fill:c,"data-testid":"link-icon"}),e,t&&"right"===r&&a.createElement(l.J,{icon:t,big:!0,left:!0,fill:c,"data-testid":"link-icon"}))},s=t(71893),u=s.ZP.a(r||(r=(0,o.cy)(["\n display: flex;\n align-items: center;\n text-decoration: ",";\n\n ",";\n"],["\n display: flex;\n align-items: center;\n text-decoration: ",";\n\n ",";\n"])),(function(n){return n.decorated?"underline":"none"}),(function(n){var e=n.theme,t=n.hover;return void 0!==t&&t&&(0,s.iv)(i||(i=(0,o.cy)(["\n transition: color 0.3s;\n\n &:hover {\n color: ",";\n }\n "],["\n transition: color 0.3s;\n\n &:hover {\n color: ",";\n }\n "])),e.colors.brand.dark)})),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=function(n){for(var e,t,i,r,o=String(n),a=o.length%3,c="",l=-1,d=o.length-a;++l>18&63)+m.charAt(r>>12&63)+m.charAt(r>>6&63)+m.charAt(63&r);return 2===a?(e=o.charCodeAt(l)<<8,t=o.charCodeAt(++l),c+=m.charAt((r=e+t)>>10)+m.charAt(r>>4&63)+m.charAt(r<<2&63)+"="):1===a&&(r=o.charCodeAt(l),c+=m.charAt(r>>2)+m.charAt(r<<4&63)+"=="),c},g=function(n){var e=n.decorated,t=n.text,i=n.icon,r=n.iconPos,l=n.iconColor,s=n.href;n.onClick;var m=n.children,g=(0,o._T)(n,["decorated","text","icon","iconPos","iconColor","href","onClick","children"]),f=(0,a.useCallback)((function(){var n=s&&/^http(s)?:\/\/.*/.test(s)?s:"".concat(window.location.protocol,"//").concat(window.location.host).concat(s);window.location.href=n}),[s]);return delete g.rel,a.createElement(u,(0,o.pi)({as:"span",decorated:e},(0,c.ly)(g),g,{onClick:f}),m||a.createElement(d,{text:t,icon:i,iconPos:r,iconColor:l,"data-url":p(s)}))},f=function(n){var e=n.decorated,t=n.text,i=n.icon,r=n.iconPos,l=n.iconColor,s=n.children,m=(0,o._T)(n,["decorated","text","icon","iconPos","iconColor","children"]);return a.createElement(u,(0,o.pi)({decorated:e},(0,c.ly)(m),m),s||a.createElement(d,{text:t,icon:i,iconPos:r,iconColor:l}))},h=function(n){return n.obfuscated?a.createElement(g,(0,o.pi)({},n)):a.createElement(f,(0,o.pi)({},n))}},7730:(n,e,t)=>{t.d(e,{Z:()=>d});var i,r,o=t(30514),a=t(67294),c=t(71893),l=c.ZP.span(r||(r=(0,o.cy)(["\n ","}\n"],["\n ","}\n"])),(function(n){var e=n.theme,t=n.typo;return(0,c.iv)(i||(i=(0,o.cy)(["\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n "],["\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n "])),e.typography[t].size,e.typography[t].lineHeight,e.typography[t].weight,e.typography[t].letter)})),d=function(n){var e=n.children,t=n.typo,i=(0,o._T)(n,["children","typo"]);return a.createElement(l,(0,o.pi)({typo:t},i),e)}},69153:(n,e,t)=>{t.d(e,{C:()=>z});var i,r,o,a,c,l,d,s,u,m,p,g,f,h=t(67294),y=t(30514),v=t(71893),x=t(46229),b=t(7730),w=v.ZP.li(i||(i=(0,y.cy)(["\n width: 100%;\n margin: 0;\n padding: "," 0;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n\n &:not(:last-child) {\n border-bottom: 1px solid\n ",";\n }\n"],["\n width: 100%;\n margin: 0;\n padding: "," 0;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n\n &:not(:last-child) {\n border-bottom: 1px solid\n ",";\n }\n"])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.colors.environment.percent20})),E=v.ZP.div(r||(r=(0,y.cy)(["\n display: flex;\n align-items: flex-start;\n margin-right: ",";\n"],["\n display: flex;\n align-items: flex-start;\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing02})),k=v.ZP.div(c||(c=(0,y.cy)(["\n width: ",";\n height: ",";\n margin-right: ",";\n ","\n background-size: contain;\n"],["\n width: ",";\n height: ",";\n margin-right: ",";\n ","\n background-size: contain;\n"])),(function(n){return n.theme.spacing.spacing08}),(function(n){return n.theme.spacing.spacing08}),(function(n){return n.theme.spacing.spacing01}),(function(n){var e=n.imgUrl;return e?(0,v.iv)(o||(o=(0,y.cy)(["\n background-image: url(",");\n "],["\n background-image: url(",");\n "])),e):(0,v.iv)(a||(a=(0,y.cy)(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),(function(n){return n.theme.colors.environment.percent05}))})),A=v.ZP.div(l||(l=(0,y.cy)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n & > *:not(:last-child) {\n margin-bottom: ",";\n }\n"],["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n & > *:not(:last-child) {\n margin-bottom: ",";\n }\n"])),(function(n){return n.theme.spacing.spacing01})),P=(0,v.ZP)(b.Z)(d||(d=(0,y.cy)(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"],["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"]))),C=v.ZP.div(s||(s=(0,y.cy)(["\n display: inline-flex;\n align-items: baseline;\n"],["\n display: inline-flex;\n align-items: baseline;\n"]))),Z=v.ZP.div(u||(u=(0,y.cy)([""],[""]))),_=(0,v.ZP)(b.Z)(m||(m=(0,y.cy)(["\n color: ",";\n"],["\n color: ",";\n"])),(function(n){return n.$color})),B=v.ZP.div(p||(p=(0,y.cy)(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n"]))),L=v.ZP.div(g||(g=(0,y.cy)(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),D=(0,v.ZP)(x.z)(f||(f=(0,y.cy)(["\n min-height: 1.25rem;\n padding: 0;\n svg {\n fill: ",";\n }\n"],["\n min-height: 1.25rem;\n padding: 0;\n svg {\n fill: ",";\n }\n"])),(function(n){return n.theme.colors.black})),I=t(63742),S=t(42347),z=function(n){var e=n.availability,t=n.imgUrl,i=n.name,r=n.price,o=n.units,a=n.unitsText,c=n.children,l=n.url,d=n.deleteCartItemAction,s=n.dateStockText,u=n.dateStock;return h.createElement(w,null,h.createElement(E,null,h.createElement(k,{"data-testid":"productItemImage",imgUrl:t}),h.createElement(A,null,l?h.createElement(S.r,{decorated:!0,onClick:function(){return window.open("".concat(l),"_blank")}},h.createElement(P,{typo:"body2Regular"},i)):h.createElement(P,{typo:"body2Regular"},i),r&&h.createElement(b.Z,{"data-testid":"productItemPrice",typo:"body2Bold"},r%1==0?r:(Math.round(100*r)/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),"€"),h.createElement(B,null,h.createElement(L,null,o&&a&&h.createElement(C,{"data-testid":"productItemAvailability"},h.createElement(b.Z,{typo:"captionRegular"},a,": "),h.createElement(b.Z,{typo:"captionBold"},o)),u&&h.createElement(Z,{"data-testid":"productItemStock"},h.createElement(b.Z,{typo:"captionRegular"},"".concat(s||"",": ").concat(u))),e&&h.createElement(Z,{"data-testid":"productItemAvailability"},h.createElement(b.Z,{typo:"captionRegular"},e.label,": "),h.createElement(_,{"data-testid":"productItemAvailability",$color:e.color,typo:"captionBold"},e.value)))),c)),d&&h.createElement(D,{small:!0,ghost:!0,onClick:function(){d()}},h.createElement(I.J,{small:!0,icon:"remove"})))}}}]); //# sourceMappingURL=4908.js.map