(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2125],{6790:(n,e,t)=>{"use strict";var i=t(43157),a=t(26244),r=t(7207),o=t(49974),c=function(n,e,t,l,s,u,d,p){for(var m,g,f=s,h=0,y=!!d&&o(d,p);h0&&i(m)?(g=a(m),f=c(n,e,m,g,f,u-1)-1):(r(f+1),n[f]=m),f++),h++;return f};n.exports=c},86535:(n,e,t)=>{"use strict";var i=t(82109),a=t(6790),r=t(19662),o=t(47908),c=t(26244),l=t(65417);i({target:"Array",proto:!0},{flatMap:function(n){var e,t=o(this),i=c(t);return r(n),(e=l(t,0)).length=a(e,t,t,i,0,1,n,arguments.length>1?arguments[1]:void 0),e}})},99244:(n,e,t)=>{t(51223)("flatMap")},29254:(n,e,t)=>{"use strict";var i=t(82109),a=t(14230);i({target:"String",proto:!0,forced:t(43429)("link")},{link:function(n){return a(this,"a","href",n)}})},22100:(n,e,t)=>{"use strict";t.d(e,{z:()=>a});var i=t(67294),a=function(n){(0,i.useEffect)((function(){var e=document.body,t=n?"hidden":"auto";return e.style.overflowY=t,function(){e.style.overflowY="auto"}}),[n])}},72199:(n,e,t)=>{"use strict";t.d(e,{E:()=>a});var i={},a=function(n){void 0===n&&(n="$uniqueid$"),i[n]||(i[n]=0);var e=++i[n];return"$uniqueid$"===n?"".concat(e):"".concat(n).concat(e)}},33407:(n,e,t)=>{"use strict";t.d(e,{q:()=>p});var i,a,r=t(30514),o=t(67294),c=t(71893),l=c.ZP.div(i||(i=(0,r.cy)(["\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"],["\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(n){return n.theme.spacing.spacing06}),(function(n){return n.theme.spacing.spacing06}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.color}),(function(n){return n.theme.typography.avatar.size}),(function(n){return n.theme.typography.avatar.fontFamily}),(function(n){return n.theme.spacing.spacing03})),s=c.ZP.span(a||(a=(0,r.cy)([""],[""]))),u=t(53397),d=Object.values(u.n.light.colors.avatar);var p=function(n){var e,t=n.username,i=n.color,a=(0,r._T)(n,["username","color"]),c=(0,o.useRef)(i||(e=Math.floor(Math.random()*d.length),d[e])),u=t.substr(0,1);return o.createElement(l,(0,r.pi)({color:c.current},a),o.createElement(s,null,u))}},34077:(n,e,t)=>{"use strict";t.d(e,{a:()=>m});var i,a,r,o,c=t(30514),l=t(67294),s=t(71893),u=t(72199),d=s.ZP.li(i||(i=(0,c.cy)(["\n margin: 0;\n padding-bottom: ",";\n position: relative;\n"],["\n margin: 0;\n padding-bottom: ",";\n position: relative;\n"])),(function(n){return n.theme.spacing.spacing01})),p=s.ZP.ul(o||(o=(0,c.cy)(["\n list-style: none;\n margin: 0;\n padding: 0 0 ",";\n\n ","\n\n ","\n"],["\n list-style: none;\n margin: 0;\n padding: 0 0 ",";\n\n ","\n\n ","\n"])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.decorator&&(0,s.iv)(a||(a=(0,c.cy)(["\n "," {\n padding-left: 26px;\n\n &::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 20px;\n height: 20px;\n background-position: center center;\n background-repeat: no-repeat;\n }\n }\n "],["\n "," {\n padding-left: 26px;\n\n &::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 20px;\n height: 20px;\n background-position: center center;\n background-repeat: no-repeat;\n }\n }\n "])),d)}),(function(n){return"check"===n.decorator&&(0,s.iv)(r||(r=(0,c.cy)(["\n "," {\n &::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiMxMDdCMDAiIGQ9Ik0zLjMgMTkuNm03LTJsLTUtNSAxLjQtMS40IDMuNiAzLjYgNy42LTcuNiAxLjQgMS40LTkgOXoiLz48L3N2Zz4=');\n }\n }\n "],["\n "," {\n &::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiMxMDdCMDAiIGQ9Ik0zLjMgMTkuNm03LTJsLTUtNSAxLjQtMS40IDMuNiAzLjYgNy42LTcuNiAxLjQgMS40LTkgOXoiLz48L3N2Zz4=');\n }\n }\n "])),d)})),m=function(n){var e=n.typeList,t=n.decorator,i=n.items;return l.createElement(p,{as:e,decorator:t},i.map((function(n){return l.createElement(d,{key:(0,u.E)(),dangerouslySetInnerHTML:(e=n,{__html:e})});var e})))}},63350:(n,e,t)=>{"use strict";t.d(e,{a:()=>s});var i,a,r=t(30514),o=t(67294),c=t(71893),l=c.ZP.div(a||(a=(0,r.cy)(["\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"],["\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(n){return n.theme.layout.zIndex.overlay}),(function(n){return n.isActive&&(0,c.iv)(i||(i=(0,r.cy)(["\n opacity: 1;\n visibility: visible;\n "],["\n opacity: 1;\n visibility: visible;\n "])))})),s=function(n){var e=n.isActive,t=(0,r._T)(n,["isActive"]);return o.createElement(l,(0,r.pi)({isActive:e},t))}},81973:(n,e,t)=>{"use strict";t.d(e,{s:()=>N});var i,a,r,o,c,l,s,u,d,p,m=t(30514),g=t(22100),f=t(67294),h=t(29715),y=t(38717),b=t(46229),v=t(51376),x=t(63350),w=t(7730),E=t(71893),z=t(30305),k=t(91044),Z=t(63742),A=E.ZP.div(i||(i=(0,m.cy)(["\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n box-shadow: ",";\n overflow: hidden;\n z-index: ",";\n display: flex;\n flex-direction: column;\n transition: all 500ms;\n transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);\n transform: ",";\n\n "," {\n width: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n box-shadow: ",";\n overflow: hidden;\n z-index: ",";\n display: flex;\n flex-direction: column;\n transition: all 500ms;\n transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);\n transform: ",";\n\n "," {\n width: ",";\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.elevation.depth.depth16}),(function(n){return n.theme.layout.zIndex.modal}),(function(n){return n.visible?"translateX(0)":"translateX(100%)"}),z.B.tabletPortrait,(function(n){return"small"===n.size?"25rem":"37.5rem"})),M=E.ZP.div(o||(o=(0,m.cy)(["\n display: flex;\n ","\n\n align-items: center;\n padding: ",";\n"],["\n display: flex;\n ","\n\n align-items: center;\n padding: ",";\n"])),(function(n){var e=n.closeWithBackIcon,t=n.theme;return e?(0,E.iv)(a||(a=(0,m.cy)(["\n gap: ",";\n "],["\n gap: ",";\n "])),t.spacing.spacing005):(0,E.iv)(r||(r=(0,m.cy)(["\n justify-content: space-between;\n "],["\n justify-content: space-between;\n "])))}),(function(n){return n.theme.spacing.spacing03})),L=(0,E.ZP)(k.X)(c||(c=(0,m.cy)(["\n &&& {\n margin-top: 0;\n }\n margin: 0;\n"],["\n &&& {\n margin-top: 0;\n }\n margin: 0;\n"]))),j=E.ZP.div(l||(l=(0,m.cy)(["\n height: 100%;\n padding: ",";\n margin-bottom: ",";\n overflow-y: auto;\n"],["\n height: 100%;\n padding: ",";\n margin-bottom: ",";\n overflow-y: auto;\n"])),(function(n){var e=n.theme;return"0 ".concat(e.spacing.spacing03)}),(function(n){return n.theme.spacing.spacing03})),I=E.ZP.div(s||(s=(0,m.cy)(["\n display: flex;\n flex-direction: column;\n box-shadow: ",";\n padding: ",";\n & button:nth-child(2) {\n margin-left: ",";\n }\n"],["\n display: flex;\n flex-direction: column;\n box-shadow: ",";\n padding: ",";\n & button:nth-child(2) {\n margin-left: ",";\n }\n"])),(function(n){return n.theme.elevation.depth.depth08}),(function(n){var e=n.theme;return"small"===n.size?"".concat(e.spacing.spacing02," ").concat(e.spacing.spacing03):"".concat(e.spacing.spacing02," ").concat(e.spacing.spacing05)}),(function(n){return n.theme.spacing.spacing02})),C=(0,E.ZP)(Z.J)(u||(u=(0,m.cy)(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),P=E.ZP.div(d||(d=(0,m.cy)(["\n display: flex;\n"],["\n display: flex;\n"]))),T=E.ZP.div(p||(p=(0,m.cy)(["\n display: flex;\n justify-content: space-between;\n margin-bottom: ",";\n"],["\n display: flex;\n justify-content: space-between;\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing02})),N=function(n){var e=n.children,t=n.visible,i=n.size,a=void 0===i?"small":i,r=n.title,o=n.closeWithBackIcon,c=void 0!==o&&o,l=n.footerLabel,s=n.primaryAction,u=n.secondaryAction,d=n.onCancel,p=n.loading,E=n.notClosableOnClickOutside,z=n.className,k=(0,f.useRef)(null),Z=(0,f.useMemo)((function(){return E?h.Z:d||h.Z}),[E,d]);return(0,y.t)(Z,k,t),(0,g.z)(t),f.createElement(x.a,{isActive:t,className:z,"data-testid":"panel-overlay"},f.createElement(A,{size:a,visible:t,"data-testid":"panel",ref:k},p&&f.createElement(v.F,{big:!0}),f.createElement(M,{closeWithBackIcon:c},c&&f.createElement(b.z,{ghost:!0,onClick:d,"aria-label":"back"},f.createElement(C,{icon:"chevron_left",small:!0})),f.createElement(L,{as:"h4"},r),!c&&f.createElement(b.z,{ghost:!0,onClick:d,"aria-label":"close"},f.createElement(C,{icon:"remove",small:!0}))),f.createElement(j,null,e),s&&f.createElement(I,{size:a},l&&f.createElement(T,null,f.createElement(w.Z,{typo:"body2Bold"},l.label),(null===l||void 0===l?void 0:l.label)&&f.createElement(w.Z,{typo:"body2Bold"},l.value)),f.createElement(P,null,u&&f.createElement(b.z,(0,m.pi)({},u,{secondary:!0,fluid:!0}),u.displayText),f.createElement(b.z,(0,m.pi)({},s,{fluid:!0}),s.displayText)))))}},28025:(n,e,t)=>{"use strict";t.d(e,{R:()=>l});var i,a=t(30514),r=t(67294),o=t(71893).ZP.ul(i||(i=(0,a.cy)(["\n margin: 0;\n padding: 0 ",";\n flex: 1;\n overflow-y: auto;\n"],["\n margin: 0;\n padding: 0 ",";\n flex: 1;\n overflow-y: auto;\n"])),(function(n){return n.theme.spacing.spacing03})),c=t(69153),l=function(n){var e=n.items,t=n.unitsText,i=(0,a._T)(n,["items","unitsText"]);return r.createElement(o,(0,a.pi)({},i),e.map((function(n,e){var i=n.availability,a=n.imgUrl,o=n.name,l=n.price,s=n.units,u=n.url,d=n.deleteCartItemAction,p=n.dateStock,m=n.dateStockText;return r.createElement(c.C,{availability:i,imgUrl:a,key:"name".concat(e),name:o,price:l,units:s,unitsText:t,url:u,deleteCartItemAction:d,dateStock:p,dateStockText:m})})))}},92010:(n,e,t)=>{"use strict";t.d(e,{A:()=>w});var i,a,r,o,c,l,s=t(30514),u=t(67294),d=t(71893),p=d.ZP.div(i||(i=(0,s.cy)(["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n"],["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n"]))),m=d.ZP.div(a||(a=(0,s.cy)(["\n padding: 0 ",";\n padding-bottom: ",";\n"],["\n padding: 0 ",";\n padding-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing03})),g=d.ZP.div(r||(r=(0,s.cy)(["\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"],["\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(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.colors.environment.percent20})),f=d.ZP.div(o||(o=(0,s.cy)(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-bottom: ",";\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing03})),h=d.ZP.span(c||(c=(0,s.cy)(["\n font-size: ",";\n line-height: ",";\n font-weight: 700;\n"],["\n font-size: ",";\n line-height: ",";\n font-weight: 700;\n"])),(function(n){return n.theme.typography.header.h2.size}),(function(n){return n.theme.typography.header.h2.lineHeight})),y=d.ZP.div(l||(l=(0,s.cy)(["\n padding: ",";\n\n span {\n display: inline-block;\n margin-bottom: ",";\n text-align: center;\n }\n"],["\n padding: ",";\n\n span {\n display: inline-block;\n margin-bottom: ",";\n text-align: center;\n }\n"])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing03})),b=t(28025),v=t(46229),x=t(7730),w=function(n){var e=n.copy,t=n.items,i=n.onClickOrder,a=(0,s._T)(n,["copy","items","onClickOrder"]),r=t.reduce((function(n,e){return n+(e.units||0)}),0),o=t.reduce((function(n,e){return n+(e.price||0)}),0).toFixed(2);return u.createElement(p,(0,s.pi)({},a),t.length>0?u.createElement(u.Fragment,null,u.createElement(b.R,{items:t,unitsText:e.units}),u.createElement(m,null,u.createElement(g,null,u.createElement(x.Z,{typo:"body2Regular"},e.units),u.createElement(x.Z,{typo:"body2Bold"},r)),u.createElement(f,null,u.createElement("span",null,u.createElement(x.Z,{typo:"body1Regular"},e.total," "),u.createElement(x.Z,{typo:"body2Regular"},"(",e.includedTax,")")),u.createElement(h,null,o,"€")),u.createElement(v.z,{big:!0,fluid:!0,onClick:i},e.order))):u.createElement(y,null,u.createElement(x.Z,{typo:"body2Regular"},e.emptyCart)))}}}]); //# sourceMappingURL=2125.js.map