(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[48869],{14230:(e,t,n)=>{var r=n(1702),i=n(84488),c=n(41340),o=/"/g,a=r("".replace);e.exports=function(e,t,n,r){var l=c(i(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+a(c(r),o,""")+'"'),u+">"+l+""}},6790:(e,t,n)=>{"use strict";var r=n(43157),i=n(26244),c=n(7207),o=n(49974),a=function(e,t,n,l,u,s,p,m){for(var d,f,g=u,b=0,y=!!p&&o(p,m);b0&&r(d)?(f=i(d),g=a(e,t,d,f,g,s-1)-1):(c(g+1),e[g]=d),g++),b++;return g};e.exports=a},43429:(e,t,n)=>{var r=n(47293);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},86535:(e,t,n)=>{"use strict";var r=n(82109),i=n(6790),c=n(19662),o=n(47908),a=n(26244),l=n(65417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=a(n);return c(e),(t=l(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},99244:(e,t,n)=>{n(51223)("flatMap")},29254:(e,t,n)=>{"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("link")},{link:function(e){return i(this,"a","href",e)}})},38717:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(67294),i=function(e,t,n){(0,r.useEffect)((function(){var r=function(r){n&&t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("mouseup",r),document.addEventListener("touchend",r),function(){document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r)}}),[t,n,e])}},33407:(e,t,n)=>{"use strict";n.d(t,{q:()=>b});var r,i,c=n(96891),o=n(39780),a=n(67294),l=n(82856),u=n(71893),s=u.ZP.div(r||(r=(0,l.Z)(["\n height: ",";\n width: ",";\n border-radius: ",";\n background: ",";\n color: #fff;\n font-size: ",";\n font-family: ",";\n line-height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n"])),(function(e){return e.theme.spacing.spacing06}),(function(e){return e.theme.spacing.spacing06}),(function(e){return e.theme.spacing.spacing03}),(function(e){return e.color}),(function(e){return e.theme.typography.avatar.size}),(function(e){return e.theme.typography.avatar.fontFamily}),(function(e){return e.theme.spacing.spacing03})),p=u.ZP.span(i||(i=(0,l.Z)([""]))),m=n(53397),d=Object.values(m.n.light.colors.avatar);var f=["username","color"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=function(e){var t,n=e.username,r=e.color,i=(0,o.Z)(e,f),l=(0,a.useRef)(r||(t=Math.floor(Math.random()*d.length),d[t])),u=n.substr(0,1);return a.createElement(s,function(e){for(var t=1;t{"use strict";n.d(t,{a:()=>d});var r,i,c=n(96891),o=n(39780),a=n(67294),l=n(82856),u=n(71893),s=u.ZP.div(r||(r=(0,l.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n max-height: -moz-available;\n max-height: -webkit-fill-available;\n max-height: fill-available;\n z-index: ",";\n background-color: rgba(51, 51, 51, 0.24);\n cursor: pointer;\n opacity: 0;\n visibility: hidden;\n transition: opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1),\n visibility 500ms cubic-bezier(0.25, 0.1, 0.25, 1);\n\n ","\n"])),(function(e){return e.theme.layout.zIndex.overlay}),(function(e){return e.isActive&&(0,u.iv)(i||(i=(0,l.Z)(["\n opacity: 1;\n visibility: visible;\n "])))})),p=["isActive"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var d=function(e){var t=e.isActive,n=(0,o.Z)(e,p);return a.createElement(s,function(e){for(var t=1;t{"use strict";n.d(t,{C:()=>z});var r,i,c,o,a,l,u,s,p,m,d,f,g,b=n(67294),y=n(82856),v=n(71893),h=n(50693),O=n(7730),Z=v.ZP.li(r||(r=(0,y.Z)(["\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(e){return e.theme.spacing.spacing03}),(function(e){return e.theme.colors.environment.percent20})),E=v.ZP.div(i||(i=(0,y.Z)(["\n display: flex;\n align-items: flex-start;\n margin-right: ",";\n"])),(function(e){return e.theme.spacing.spacing02})),P=v.ZP.div(c||(c=(0,y.Z)(["\n width: ",";\n height: ",";\n margin-right: ",";\n ","\n background-size: contain;\n"])),(function(e){return e.theme.spacing.spacing08}),(function(e){return e.theme.spacing.spacing08}),(function(e){return e.theme.spacing.spacing01}),(function(e){var t=e.imgUrl;return t?(0,v.iv)(o||(o=(0,y.Z)(["\n background-image: url(",");\n "])),t):(0,v.iv)(a||(a=(0,y.Z)(["\n background-color: ",";\n "])),(function(e){return e.theme.colors.environment.percent05}))})),j=v.ZP.div(l||(l=(0,y.Z)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n & > *:not(:last-child) {\n margin-bottom: ",";\n }\n"])),(function(e){return e.theme.spacing.spacing01})),x=(0,v.ZP)(O.Z)(u||(u=(0,y.Z)(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"]))),w=v.ZP.div(s||(s=(0,y.Z)(["\n display: inline-flex;\n align-items: baseline;\n"]))),k=v.ZP.div(p||(p=(0,y.Z)([""]))),D=(0,v.ZP)(O.Z)(m||(m=(0,y.Z)(["\n color: ",";\n"])),(function(e){return e.$color})),S=v.ZP.div(d||(d=(0,y.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n"]))),A=v.ZP.div(f||(f=(0,y.Z)(["\n display: flex;\n flex-direction: column;\n"]))),I=(0,v.ZP)(h.z)(g||(g=(0,y.Z)(["\n min-height: 1.25rem;\n padding: 0;\n svg {\n fill: ",";\n }\n"])),(function(e){return e.theme.colors.black})),C=n(63742),_=n(42347),z=function(e){var t=e.availability,n=e.imgUrl,r=e.name,i=e.price,c=e.units,o=e.unitsText,a=e.children,l=e.url,u=e.deleteCartItemAction,s=e.dateStockText,p=e.dateStock,m=e.linkIsNotDecorated;return b.createElement(Z,null,b.createElement(E,null,b.createElement(P,{"data-testid":"productItemImage",imgUrl:n}),b.createElement(j,null,l?b.createElement(_.r,{decorated:!m,onClick:function(){return window.open("".concat(l),"_blank")}},b.createElement(x,{typo:"body2Regular"},r)):b.createElement(x,{typo:"body2Regular"},r),i&&b.createElement(O.Z,{"data-testid":"productItemPrice",typo:"body2Bold"},i%1==0?i:(Math.round(100*i)/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),"€"),b.createElement(S,null,b.createElement(A,null,c&&o&&b.createElement(w,{"data-testid":"productItemAvailability"},b.createElement(O.Z,{typo:"captionRegular"},o,": "),b.createElement(O.Z,{typo:"captionBold"},c)),p&&b.createElement(k,{"data-testid":"productItemStock"},b.createElement(O.Z,{typo:"captionRegular"},"".concat(s||"",": ").concat(p))),t&&b.createElement(k,{"data-testid":"productItemAvailability"},b.createElement(O.Z,{typo:"captionRegular"},t.label,": "),b.createElement(D,{"data-testid":"productItemAvailability",$color:t.color,typo:"captionBold"},t.value)))),a)),u&&b.createElement(I,{small:!0,ghost:!0,onClick:function(){u()}},b.createElement(C.J,{small:!0,icon:"remove"})))}},28025:(e,t,n)=>{"use strict";n.d(t,{R:()=>m});var r,i=n(96891),c=n(39780),o=n(67294),a=n(82856),l=n(71893).ZP.ul(r||(r=(0,a.Z)(["\n margin: 0;\n padding: 0 ",";\n flex: 1;\n overflow-y: auto;\n"])),(function(e){return e.theme.spacing.spacing03})),u=n(69153),s=["items","unitsText"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var m=function(e){var t=e.items,n=e.unitsText,r=(0,c.Z)(e,s);return o.createElement(l,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>x});var r,i,c,o,a,l,u=n(96891),s=n(39780),p=n(67294),m=n(82856),d=n(71893),f=d.ZP.div(r||(r=(0,m.Z)(["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n"]))),g=d.ZP.div(i||(i=(0,m.Z)(["\n padding: 0 ",";\n padding-bottom: ",";\n"])),(function(e){return e.theme.spacing.spacing03}),(function(e){return e.theme.spacing.spacing03})),b=d.ZP.div(c||(c=(0,m.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-bottom: ",";\n padding-top: ",";\n border-top: 1px dashed ",";\n"])),(function(e){return e.theme.spacing.spacing01}),(function(e){return e.theme.spacing.spacing03}),(function(e){return e.theme.colors.environment.percent20})),y=d.ZP.div(o||(o=(0,m.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-bottom: ",";\n"])),(function(e){return e.theme.spacing.spacing03})),v=d.ZP.span(a||(a=(0,m.Z)(["\n font-size: ",";\n line-height: ",";\n font-weight: 700;\n"])),(function(e){return e.theme.typography.header.h2.size}),(function(e){return e.theme.typography.header.h2.lineHeight})),h=d.ZP.div(l||(l=(0,m.Z)(["\n padding: ",";\n\n span {\n display: inline-block;\n margin-bottom: ",";\n text-align: center;\n }\n"])),(function(e){return e.theme.spacing.spacing03}),(function(e){return e.theme.spacing.spacing03})),O=n(28025),Z=n(50693),E=n(7730),P=["copy","items","onClickOrder"];function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var x=function(e){var t=e.copy,n=e.items,r=e.onClickOrder,i=(0,s.Z)(e,P),c=n.reduce((function(e,t){return e+(t.units||0)}),0),o=n.reduce((function(e,t){return e+(t.price?t.price*(t.units?t.units:1):0)}),0).toFixed(2);return p.createElement(f,function(e){for(var t=1;t0?p.createElement(p.Fragment,null,p.createElement(O.R,{items:n,unitsText:t.units}),p.createElement(g,null,p.createElement(b,null,p.createElement(E.Z,{typo:"body2Regular"},t.units),p.createElement(E.Z,{typo:"body2Bold"},c)),p.createElement(y,null,p.createElement("span",null,p.createElement(E.Z,{typo:"body1Regular"},t.total," "),p.createElement(E.Z,{typo:"body2Regular"},"(",t.includedTax,")")),p.createElement(v,null,o,"€")),p.createElement(Z.z,{big:!0,fluid:!0,onClick:r},t.order))):p.createElement(h,null,p.createElement(E.Z,{typo:"body2Regular"},t.emptyCart)))}},45987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,c=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}}}]); //# sourceMappingURL=48869.js.map