delivapp-ordering 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("classnames"),n=require("cloudinary-react"),r=require("react-overflow-list");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=o(e);function i(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}i(":root{--border-radius:5px;--main-color:#007aff;--secondary-color:#cee6ff;--warning:#fe7171}*{box-sizing:border-box}html{font-family:sans-serif}.lineThrough{text-decoration:line-through}.icon{cursor:pointer}");i(".counterButton{align-items:center;border:1px solid #ccc;border-radius:var(--border-radius,5px);display:grid;grid-template-columns:1fr 1fr 1fr;height:45px;justify-items:center;text-align:center}.counterButton .disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}");var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var s;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}i(".iconsPreview{display:grid;gap:20px;grid-template-columns:repeat(6,1fr);justify-items:center}.iconsPreview .previewIcon{align-items:center;display:flex;flex-direction:column;font-size:14px;justify-content:center}.iconsPreview .previewIcon span{display:inline-block;margin:0 0 5px}.fillByFill{fill:#000}.fillByStroke{stroke:#000}");var p;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}var m;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}var h;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}var v;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}var b;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}var w;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}var N;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}var k,C,P;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}var B,S;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(this,arguments)}var T;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(this,arguments)}var I,F;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}var M;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}var q,z;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}var Z;function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}var V;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}var U;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}var Q;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}var J;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}var $;function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}var ee,te;function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(this,arguments)}var re=20,oe=25,ae=30,ie=function(t,n){return function(r){var o=function(e){var t=e.className,n=e.props,r={};return n.color&&t.includes("Fill")&&(r.fill=n.color),n.color&&t.includes("Stroke")&&(r.stroke=n.color),r}({className:n,props:r}),a=function(e){return"small"===e?re:"big"===e?ae:e||oe}(r.size);return e.createElement(t,l({width:a,height:a},r,{style:o,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},le=ie((function(e){return a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},e),s||(s=a.createElement("path",{d:"M28 6a4 4 0 0 0-4 4v2h-.4L10 14v3h44v-3l-13.6-2H40v-2a4 4 0 0 0-4-4h-8zm0 4h8v2h-8v-2zm-16 9 2.701 33.322A4.002 4.002 0 0 0 18.69 56h26.623a3.999 3.999 0 0 0 3.987-3.676L51.924 20 12 19zm8 7a2 2 0 0 1 2 2v23h-3l-1-23a2 2 0 0 1 2-2zm12 0a3 3 0 0 1 3 3v22h-6V29a3 3 0 0 1 3-3zm12 0a2 2 0 0 1 2 2l-1 23h-3V28a2 2 0 0 1 2-2z"})))}),"fillByFill"),ce=ie((function(e){return a.createElement("svg",d({width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p||(p=a.createElement("path",{d:"m13.547 5.247-4.196-.639L7.474.625a.52.52 0 0 0-.949 0L4.65 4.608l-4.196.639a.52.52 0 0 0-.303.16.569.569 0 0 0 .01.785l3.037 3.1-.718 4.378a.577.577 0 0 0 .031.302.55.55 0 0 0 .18.24.514.514 0 0 0 .556.04L7 12.187l3.754 2.067a.504.504 0 0 0 .335.055.551.551 0 0 0 .432-.638l-.717-4.378 3.036-3.1a.563.563 0 0 0 .154-.317.549.549 0 0 0-.447-.628Z"})))}),"fillByFill"),se=ie((function(e){return a.createElement("svg",f({width:"1em",height:"1em",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#016A2B",strokeWidth:2},e),m||(m=a.createElement("path",{d:"m30.164 12.064-9.035-1.369L17.09 2.16a1.158 1.158 0 0 0-.516-.538c-.562-.289-1.245-.048-1.526.538l-4.039 8.535-9.035 1.369a1.12 1.12 0 0 0-.65.345c-.212.226-.328.53-.324.845.004.315.128.615.344.835l6.537 6.643-1.544 9.38c-.036.22-.013.444.067.649.08.205.213.383.385.513a1.099 1.099 0 0 0 1.199.09l8.081-4.43 8.081 4.429c.22.122.477.163.723.119.619-.112 1.035-.724.928-1.37l-1.544-9.38 6.537-6.643c.178-.182.295-.42.33-.679.097-.649-.337-1.25-.96-1.346Z"})))}),"fillByStroke"),ue=ie((function(e){return a.createElement("svg",g({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},e),h||(h=a.createElement("path",{d:"M11.688 1.167c.711-.08 1.385.438 1.385 1.153 0 6.778-3.783 9.856-8.448 9.856-.724 0-1.313-.619-1.153-1.325.317-1.39 1.014-2.424 2.347-3.604.847-.75.776-1.182.358-.934-2.875 1.711-4.303 4.023-4.366 7.715a.263.263 0 0 1-.263.26h-.44a.683.683 0 0 1-.692-.706 12.9 12.9 0 0 1 .152-1.505c.045-.276.049-.557.01-.834-.118-.859-.177-1.956-.177-3.29A7.04 7.04 0 0 1 7.44.912c1.156 0 2.312.474 4.247.254Z"})))}),"fillByFill"),pe=ie((function(e){return a.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),v||(v=a.createElement("path",{d:"M49.1 11c-2.8 5-2.5 9.4.7 9.8 2.8.4 2.9 3.2.2 3.2-1.2 0-3.5-.7-5.1-1.6-3.3-1.7-4.5-1.4-3.6 1.1.4.8 2.6 2 5.1 2.7 4.4 1.2 5.3 2.8 1.6 2.8-1.2 0-2.9 1.9-4.9 5.4-3.8 6.8-9.2 12.1-15.6 15.3-2.7 1.4-5.3 3-5.6 3.5-.3.5-3 .8-6 .6l-5.4-.3 3.1-1.7C21.4 47.6 30.7 35.9 35 25c2.2-5.4 3.3-6.8 6.3-8.3 4.1-2.1 4-4.2-.2-3.2-4 1-6.7 4.1-9 10.4C28.6 33.7 21 43 10.5 50.6c-2.5 1.9-2.8 2.5-1.9 4 1 1.6 2.4 1.9 10.2 1.8 7.6 0 9.8-.4 14.5-2.8 7.2-3.5 12.9-10 17.8-20 4.4-9.1 4.8-12.2 1.8-16.1-2.1-2.5-2.1-2.9-.6-6 1.4-3 1.4-4.5-.3-4.5-.3 0-1.6 1.8-2.9 4z"})))}),"fillByFill"),de=ie((function(e){return a.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),b||(b=a.createElement("path",{d:"M5.4 6.1c-.4.7 10 11.8 25.2 27 20.5 20.5 26.1 25.6 27.2 24.7 1.1-.9-.1-2.6-6.2-8.7-6.6-6.7-7.4-7.8-6.4-9.6.6-1.1 2-2.6 3-3.3 2.5-1.8 4.8-6.5 4.8-10 0-1.6.7-4.6 1.5-6.5.8-2 1.5-5.5 1.5-7.7V8h-4c-2.2 0-5.7.7-7.7 1.5-1.9.8-4.9 1.5-6.5 1.5-3.5 0-8.2 2.3-10 4.8-.7 1.1-2.2 2.4-3.4 3-1.8 1-2.9.3-9.5-6.4C10.9 8.3 7.2 5 6.8 5c-.4 0-1 .5-1.4 1.1zM52 13.4c0 2.8-2.3 7.7-4 8.6-1 .6-3 1-4.4 1-2.1 0-2.6-.5-2.6-2.4 0-3.9 1.1-5.7 4.4-7.2 4-1.7 6.6-1.7 6.6 0zm-14 3.3c0 3.6-2.1 9.1-4.1 10.9-2 1.8-2.1 1.8-3.5-.1-2.2-3-1.7-6.4 1.5-9.6 3.3-3.3 6.1-3.8 6.1-1.2zm10.7 11c.7 1.9-5.2 7.3-7.9 7.3-1.3 0-3.3-.6-4.4-1.4-1.9-1.5-1.9-1.5.2-3.6 3.4-3.4 11.3-4.9 12.1-2.3zM13.8 29c-7.6 6.2-7.7 14.4-.5 21.7 7.3 7.2 15.5 7.1 21.7-.5 2.8-3.4 2.8-3.7 1.3-5.4-.9-1-3-1.8-4.8-1.8-4.1 0-6.3-2.3-4.5-4.5.7-.9 1-1.8.7-2.2-.4-.3-1.3 0-2.2.7-2.2 1.8-4.5-.4-4.5-4.5 0-1.8-.8-3.9-1.8-4.8-1.7-1.5-2-1.5-5.4 1.3zm4.8 5.3c1.8 7.2-1.9 14.6-5.2 10.3-2-2.8-1.7-6.9.7-10 2.5-3.2 3.7-3.3 4.5-.3zM31 46c1.3.9 1.1 1.4-1.3 3.5-5.3 4.7-15.3 1.5-10.5-3.3 1.5-1.5 9.7-1.6 11.8-.2z"})))}),"fillByFill"),me=ie((function(e){return a.createElement("svg",E({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},e),w||(w=a.createElement("path",{d:"m20.998 20.038-5.236-5.445a8.854 8.854 0 0 0 2.084-5.71C17.846 3.984 13.86 0 8.963 0S.081 3.985.081 8.882c0 4.898 3.984 8.883 8.882 8.883 1.839 0 3.591-.555 5.09-1.607l5.275 5.487c.22.229.517.355.835.355a1.16 1.16 0 0 0 .835-1.962ZM8.963 2.319a6.573 6.573 0 0 1 6.566 6.564 6.573 6.573 0 0 1-6.566 6.566 6.573 6.573 0 0 1-6.565-6.566 6.573 6.573 0 0 1 6.565-6.565Z"})))}),"fillByFill"),fe=ie((function(e){return a.createElement("svg",O({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},e),N||(N=a.createElement("path",{d:"M6.574 8.57c0-.73-.002-1.41 0-2.09C6.587 2.742 9.586-.137 13.32.005c3.286.125 6.037 2.919 6.104 6.21.016.767.002 1.537.002 2.352h.376c1.618.001 3.235 0 4.853.002.825.002 1.276.519 1.185 1.332-.357 3.18-.706 6.36-1.063 9.54-.26 2.316-.497 4.635-.796 6.946-.26 2.007-2.022 3.556-4.053 3.596-1.584.031-3.169.01-4.753.01H6.47c-2.536 0-4.264-1.59-4.53-4.108-.329-3.127-.694-6.25-1.042-9.375-.247-2.215-.496-4.432-.74-6.648C.073 9.086.537 8.57 1.32 8.57c1.618-.003 3.236 0 4.854 0h.4Zm12.87 4.262c.114.029.213.047.307.078.492.16.803.635.745 1.136-.057.496-.476.928-.979.943-.768.023-1.54.02-2.309 0-.48-.012-.884-.397-.977-.867-.091-.465.16-.961.6-1.16.139-.062.291-.093.43-.137V10.73H8.734v2.1c.116.03.215.049.31.08.486.16.797.642.738 1.14-.06.5-.475.924-.983.938-.769.023-1.539.024-2.308.002-.506-.015-.924-.444-.982-.94a1.065 1.065 0 0 1 .739-1.138c.102-.034.208-.057.3-.08v-2.103H2.421c.034.327.064.634.098.941.258 2.304.517 4.609.773 6.914.273 2.46.535 4.92.818 7.38.126 1.095 1.019 1.882 2.126 1.884 4.507.008 9.015.008 13.522.002 1.107-.001 2-.78 2.132-1.88.222-1.848.413-3.7.62-5.55l.773-6.948.3-2.74h-4.138v2.1ZM8.662 8.545h8.625c0-.736.006-1.45-.001-2.162-.023-2.19-1.672-3.981-3.885-4.224-2.069-.227-4.12 1.19-4.537 3.273-.2 1.002-.142 2.057-.202 3.113Z"})))}),"fillByFill"),he=ie((function(e){return a.createElement("svg",j({width:"1em",height:"1em",stroke:"#000",strokeWidth:1.3,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),k||(k=a.createElement("path",{d:"M19.5 7.5A1.5 1.5 0 0 0 18 6h-3.75l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),C||(C=a.createElement("path",{d:"M19.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 6h2.625l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),P||(P=a.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ge=ie((function(e){return a.createElement("svg",H({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B||(B=a.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),S||(S=a.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ve=ie((function(e){return a.createElement("svg",L({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},e),T||(T=a.createElement("path",{d:"m17.857 15.825-6.495-6.494 6.495-6.495A1.531 1.531 0 0 0 15.692.672L9.197 7.166 2.703.672A1.53 1.53 0 0 0 .538 2.836l6.494 6.495-6.494 6.495a1.53 1.53 0 0 0 2.165 2.164l6.494-6.494 6.495 6.494a1.531 1.531 0 0 0 2.165-2.164Z"})))}),"fillByFill"),xe=ie((function(e){return a.createElement("svg",R({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000",strokeWidth:1.3},e),I||(I=a.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),F||(F=a.createElement("path",{d:"M19.5 9.75c0 6.75-7.5 12-7.5 12s-7.5-5.25-7.5-12a7.5 7.5 0 0 1 15 0Z",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),be=ie((function(e){return a.createElement("svg",A({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),M||(M=a.createElement("path",{d:"M14.25 7.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM4.5 12.5s5.25-5.25 8.25-2.475c1.678 1.547 3 3.975 6.75 3.975M12.234 9.632 6.75 22.25M14.25 22.25V17l-3.984-2.84",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ye=ie((function(e){return a.createElement("svg",_({width:"1em",height:"1em",viewBox:"0 0 16 16",stroke:"#000",strokeWidth:1.3,xmlns:"http://www.w3.org/2000/svg"},e),q||(q=a.createElement("path",{d:"m8.669 10.969-1.2 3.256a.5.5 0 0 1-.938 0l-1.2-3.256a.506.506 0 0 0-.3-.3l-3.256-1.2a.5.5 0 0 1 0-.938l3.256-1.2a.506.506 0 0 0 .3-.3l1.2-3.256a.5.5 0 0 1 .938 0l1.2 3.256a.506.506 0 0 0 .3.3l3.256 1.2a.5.5 0 0 1 0 .938l-3.256 1.2a.506.506 0 0 0-.3.3Z"})),z||(z=a.createElement("path",{d:"M11 1v3M12.5 2.5h-3M14 4.5v2M15 5.5h-2",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke fillByFill"),we=ie((function(e){return a.createElement("svg",D({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Z||(Z=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.528 5.118a1 1 0 0 1 1.027.05l9 6a1 1 0 0 1 0 1.664l-9 6A1 1 0 0 1 8 18V6a1 1 0 0 1 .528-.882ZM10 7.868v8.263L16.197 12 10 7.869Z"})))}),"fillByFill"),Ee=ie((function(e){return a.createElement("svg",W({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),V||(V=a.createElement("path",{d:"M5.92 24.096q0 .832.576 1.408t1.44.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576H7.936q-.832 0-1.44.576t-.576 1.44v16.16zm12.096 0q0 .832.608 1.408t1.408.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576h-4.032q-.832 0-1.408.576t-.608 1.44v16.16z"})))}),"fillByFill"),Ne=ie((function(e){return a.createElement("svg",G({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),U||(U=a.createElement("path",{d:"m89.752 59.582 251.583 251.583 5.433 5.432 49.472 49.474v-.001l30.862 30.86h-.001l25.317 25.318-30.17 30.17-187.832-187.833v164.103l-110.729-85.459h-81.02V172.563h80.895l10.538-8.293-74.518-74.518 30.17-30.17Zm314.213 28.014c67.74 75.64 82.499 181.38 44.28 270.137l-32.95-32.95c23.87-71.004 8.998-151.973-44.615-210.559l33.285-26.628Zm-84.385 67.51c28.626 31.924 41.555 72.769 38.788 112.752l-49.237-49.236c-4.823-12.915-12.148-25.121-21.976-35.884l-.9-.974 33.325-26.659Zm-85.163-69.773-.001 58.574-32.78-32.78 32.78-25.794Z",fillRule:"evenodd"})))}),"fillByFill"),Oe=ie((function(e){return a.createElement("svg",K({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),Q||(Q=a.createElement("path",{d:"m403.966 426.944-33.285-26.629c74.193-81.076 74.193-205.016-.001-286.091l33.285-26.628c86.612 96.713 86.61 242.636.001 339.348ZM319.58 155.105l-33.325 26.66c39.796 42.567 39.795 108.443.002 151.01l33.324 26.66c52.204-58.222 52.204-146.11-.001-204.33Zm-85.163-69.772-110.855 87.23H42.667v170.666h81.02l110.73 85.459V85.333Z",fillRule:"evenodd"})))}),"fillByFill"),ke=ie((function(e){return a.createElement("svg",X({width:"1em",height:"1em",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg"},e),$||($=a.createElement("path",{d:"M12.598 20.946v-8.25h8.25a1.375 1.375 0 0 0 0-2.75h-8.25v-8.25a1.375 1.375 0 0 0-2.75 0v8.25h-8.25a1.375 1.375 0 0 0 0 2.75h8.25v8.25a1.375 1.375 0 1 0 2.75 0Z"})))}),"fillByFill"),Ce=ie((function(e){return a.createElement("svg",Y({width:"1em",height:"1em",viewBox:"0 0 23 4",xmlns:"http://www.w3.org/2000/svg"},e),J||(J=a.createElement("path",{d:"M20.848 3.696H1.598a1.375 1.375 0 0 1 0-2.75h19.25a1.375 1.375 0 0 1 0 2.75Z"})))}),"fillByFill"),Pe=ie((function(e){return a.createElement("svg",ne({width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"#000",xmlns:"http://www.w3.org/2000/svg"},e),ee||(ee=a.createElement("path",{d:"M12.271 22.34c5.523 0 10-4.476 10-10 0-5.522-4.477-10-10-10-5.522 0-10 4.478-10 10 0 5.524 4.478 10 10 10Z",strokeWidth:2})),te||(te=a.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),je=function(n){var r=n.count,o=n.isRemoveDisable,a=n.isAddDisable,i=n.onAdd,l=n.onRemove;return e.createElement("div",{className:"counterButton"},e.createElement(Ce,{color:"var(--main-color, #007aff)",onClick:l,className:t("control",{disable:o})}),e.createElement("div",{className:"control count"},r),e.createElement(ke,{color:"var(--main-color, #007aff)",onClick:i,className:t("control",{disable:a})}))};i(".ingredients{align-items:center;display:flex;flex-direction:column}.ingredients .ingredient{border:1px solid #ccc;border-radius:100px;color:var(--main-color,#007aff);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.ingredients .ingredient:last-child{margin:0}.ingredients .ingredient:hover{opacity:.9}.ingredients .ingredient.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var Be=function(n){var r=n.ingredients,o=n.onSelect;return e.createElement("div",{className:"ingredients"},r.map((function(n){return e.createElement("div",{key:n.id,onClick:(r=n.id,function(){return o(r)}),className:t("ingredient",{selected:!!n.quantity})},n.name);var r})))};i(".labelInput{align-items:center;background:#f8f8f8;border-radius:var(--border-radius,5px);display:inline-flex;height:44px;overflow:hidden;padding:0 13px}.labelInput .icon{height:25px;margin:0 10px 0 0;width:25px}.labelInput input{background:none;border:none;height:100%;outline:none;width:100%}.labelInput input::-webkit-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-moz-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-ms-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::placeholder{color:#747474;font-size:14px;font-weight:400}.rtl .labelInput .icon{margin:0 0 0 10px}");var Se,He,Te,Le,Ie=function(t){var n=t.icon,r=t.debounce,o=t.onChange,a=c(t,["icon","debounce","onChange"]),i=e.useState(null),s=i[0],u=i[1];return e.useEffect((function(){var e=setTimeout((function(){o&&o(s)}),r);return function(){return clearTimeout(e)}}),[s]),e.createElement("label",{className:"labelInput"},n&&n,e.createElement("input",l({},a,{onChange:function(e){u(e)}})))};!function(e){e[e.fill=0]="fill",e[e.pad=1]="pad",e[e.fit=2]="fit",e[e.mfit=3]="mfit",e[e.scale=4]="scale",e[e.limit=5]="limit",e[e.lpad=6]="lpad",e[e.mpad=7]="mpad",e[e.crop=8]="crop",e[e.fill_pad=9]="fill_pad",e[e.thumb=10]="thumb"}(Se||(Se={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(He||(He={})),function(e){e[e.best=1]="best",e[e.good=2]="good",e[e.eco=3]="eco",e[e.low=4]="low",e[e.custom=5]="custom"}(Te||(Te={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(Le||(Le={}));i(".mediaWrapper{aspect-ratio:5/3;border-radius:var(--border-radius,5px);overflow:hidden;width:100%}.mediaWrapper img,.mediaWrapper video{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.videoControl{height:100%;position:relative;width:100%}.videoControl .videoControls{left:10px;position:absolute;top:10px;z-index:1}.videoControl .videoControls .control{background:#fff;border-radius:100px;cursor:pointer;margin:0 5px 0 0;padding:3px}");var Fe=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},Re=function(e,t){var n="";return e&&(n=Le[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n},Me=function(t){var r=t.src,o=t.alt,a=t.width,i=t.height,l=t.quality,c=t.gravity,s=t.crop,u=t.id;return e.createElement(n.Image,{id:u,cloudName:r[0],secure:"true",publicId:r.splice(3).join("/"),alt:o},e.createElement(n.Transformation,{width:a,height:i,quality:l,gravity:c,crop:s}),e.createElement(n.Transformation,{fetchFormat:"auto"}))},Ae=function(t){var n=t.autoPlay,r=t.onStart,o=t.id,a=t.src,i=t.onEnd,c=t.controls,s=e.useState({playing:!1,muted:!1}),u=s[0],p=s[1],d=e.useRef(),m=function(){d.current.paused?(d.current.play(),p((function(e){return l(l({},e),{playing:!0})}))):(d.current.pause(),p((function(e){return l(l({},e),{playing:!1})})))},f=function(){d.current.muted=!d.current.muted,p((function(e){return l(l({},e),{muted:d.current.muted})}))};return e.createElement("div",{className:"videoControl"},c&&e.createElement("div",{className:"videoControls",onClick:function(e){return e.stopPropagation()}},!u.playing&&e.createElement(we,{color:"var(--main-color)",className:"control",onClick:m}),u.playing&&e.createElement(Ee,{color:"var(--main-color)",className:"control",onClick:m}),u.muted&&e.createElement(Ne,{color:"var(--main-color)",className:"control",onClick:f}),!u.muted&&e.createElement(Oe,{color:"var(--main-color)",className:"control",onClick:f})),e.createElement(qe,{autoPlay:n,src:a,onPlay:function(){r&&r(),p((function(e){return l(l({},e),{playing:!0})}))},onEnded:function(){i&&i()},videoRef:d,id:o}))},qe=function(t){var n=t.videoRef,r=t.src,o=t.id,a=t.onPlay,i=t.onEnded,l=t.autoPlay;return e.createElement("video",{ref:n,src:r,id:o,onPlay:function(){a&&a()},autoPlay:l,onEnded:function(){i&&i()}})},ze=function(t){var n=t.src,r=t.settings,o=t.alt,a=t.id,i=c(t,["src","settings","alt","id"]),s=e.useRef(null),u=e.useState({width:0,height:0}),p=u[0],d=u[1],m=n.includes("/image/"),f=n.includes("/video/"),h=n.replace("https://res.cloudinary.com/","").split("/");e.useEffect((function(){p.width!==s.current.offsetWidth&&p.height!==s.current.offsetHeight&&d({width:s.current.offsetWidth||0,height:s.current.offsetHeight||0})}));return e.createElement("div",{ref:s,className:"mediaWrapper"},m&&e.createElement(Me,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Fe(He,(null==r?void 0:r.gravity_mode)||0),crop:Fe(Se,(null==r?void 0:r.crop_mode)||0),src:h,alt:o,id:a})),f&&e.createElement(Ae,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Fe(He,(null==r?void 0:r.gravity_mode)||0),crop:Fe(Se,(null==r?void 0:r.crop_mode)||0),id:a,src:n})))};i(".productConstructor .content{margin:0 0 20px}.productConstructor .headProduct{align-items:center;display:flex;justify-content:space-between;padding:20px 20px 10px}.productConstructor .headProduct .name{font-size:24px;font-weight:600}.productConstructor .headProduct .priceControl{align-items:center;display:flex;font-size:16px}.productConstructor .headProduct .priceControl .oldPrice{color:var(--warning,#fe7171);margin:0 5px}.productConstructor .headProduct .priceControl .price{color:var(--main-color,#007aff)}.productConstructor .description{color:#747474;font-size:16px;font-weight:400;padding:0 20px}.productConstructor .stepper{padding:0 20px}.productConstructor .stepper .productCommentSection,.productConstructor .stepper .productSummary{text-align:left}.productConstructor .footerControls{bottom:0;margin:20px 0 0;position:sticky}");i(".footerControls{align-items:center;background:#fff;border-top:1px solid #ccc;display:flex;justify-content:center;padding:20px}.footerControls.summary{display:grid;gap:10px;grid-template-columns:2fr 3fr}.footerControls.summary .addLabel{align-items:center;display:flex}.footerControls.summary .addLabel .icon{margin:0 5px}.footerControls.summary .button.major{align-items:center;display:flex;justify-content:space-around;margin:0;width:100%}.footerControls .button{align-items:center;border:1px solid #007aff;border-radius:var(--border-radius,5px);color:#007aff;cursor:pointer;display:flex;height:45px;justify-content:center;transition:all .3s;width:40%}.footerControls .button:hover{opacity:.9}.footerControls .button.major{background:var(--main-color,#007aff);color:#fff;margin:0 0 0 10px}.footerControls .button.disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width:600px){.footerControls .button,.footerControls .counterButton{font-size:14px;height:35px}.footerControls .button svg,.footerControls .counterButton svg{height:20px;width:20px}}");i('.lds-dual-ring{display:inline-block;height:30px;width:30px}.lds-dual-ring:after{-webkit-animation:lds-dual-ring 1.2s linear infinite;animation:lds-dual-ring 1.2s linear infinite;border-color:#fff transparent;border-radius:50%;border-style:solid;border-width:4px;content:" ";display:block;height:18px;margin:4px;width:18px}@-webkit-keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}');var _e=function(){return e.createElement("div",{className:"lds-dual-ring"})},Ze=function(n){var r=n.isSummary,o=n.isLoading,a=n.isDisableNext,i=n.isDisablePrev,l=n.amount,c=n.currency,s=n.onPrev,u=n.onNext,p=n.count,d=n.isAddDisable,m=n.isRemoveDisable,f=n.onAdd,h=n.onRemove,g=n.onAddToCart;return e.createElement("div",{className:t("footerControls",{summary:r})},r?e.createElement(e.Fragment,null,e.createElement(je,{count:p,isRemoveDisable:m||o,isAddDisable:d||o,onAdd:f,onRemove:h}),e.createElement("div",{onClick:g,className:t("button major",{disable:o})},o?e.createElement(_e,null):e.createElement(e.Fragment,null,e.createElement("div",{className:"addLabel"},e.createElement(fe,{color:"#fff",size:"small"})," Add to Cart"),e.createElement("div",null,Re(c,l))))):e.createElement(e.Fragment,null,e.createElement("div",{onClick:s,className:t("button",{disable:i||o})},"Back"),e.createElement("div",{onClick:u,className:t("button major",{disable:a||o})},o?e.createElement(_e,null):e.createElement(e.Fragment,null,"Next ",Re(c,l)))))};i(".stepper{text-align:center}.stepper .stepperHeader{font-size:20px;font-weight:600}.stepper .steps{align-items:center;display:flex;justify-content:center;margin:10px 0}.stepper .steps .step{border:1px solid #ccc;border-radius:100px;height:14px;transition:all .3s;width:14px}.stepper .steps .step.active{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff)}.stepper .steps .line{background:#ccc;height:1px;width:28px}");var De=function(n){var r=n.steps,o=n.currentStep,a=r[o].component,i=r[o].name;return e.createElement("div",{className:"stepper"},e.createElement("div",{className:"stepperHeader"},i),e.createElement("div",{className:"steps"},Array(r.length).fill(0).map((function(n,a){return e.createElement(e.Fragment,{key:a},e.createElement("div",{className:t("step",{active:a===o})}),a!==r.length-1&&e.createElement("div",{className:"line"}))}))),a)};i(".suboptionMultiSelector .suboption{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.suboptionMultiSelector .suboption .suboptionName.selected{color:#007aff}.suboptionMultiSelector .suboption .counterSection{align-items:center;display:flex}.suboptionMultiSelector .suboption .counterButton{height:35px;margin:0 0 0 10px;width:150px}.suboptionMultiSelector .suboption .counterButton svg{height:15px;width:15px}");var Ve=function(n){var r=n.suboptions,o=n.onChangeQuantity,a=n.currency,i=n.limitByMax,l=function(e,t){return function(){return o(e,t)}},c=function(e){return!!i&&e.quantity===e.max};return e.createElement("div",{className:"suboptionMultiSelector"},r.map((function(n){return e.createElement("div",{className:"suboption",key:n.id},e.createElement("span",{className:t("suboptionName",{selected:!!n.quantity})},n.name),e.createElement("div",{className:"counterSection"},!!n.price&&e.createElement("span",{className:"price"},"+",Re(a,n.price)),e.createElement(je,{count:n.quantity||0,isAddDisable:c(n),isRemoveDisable:!n.quantity,onAdd:l(n.id,(n.quantity||0)+1),onRemove:l(n.id,(n.quantity||0)-1)})))})))};i('.extrasRadio{align-items:center;display:flex;flex-direction:column}.extrasRadio .extra{border:1px solid #ccc;border-radius:100px;cursor:pointer;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:7px 10px;transition:all .3s}.extrasRadio .extra,.extrasRadio .extra .extraName{align-items:center;display:flex}.extrasRadio .extra .extraName:before{border:1px solid #ccc;border-radius:100px;box-sizing:border-box;content:"";display:block;flex:1 0 24px;height:24px;margin:0 10px 0 0;transition:all .1s;width:24px}.extrasRadio .extra:last-child{margin:0}.extrasRadio .extra:hover{opacity:.9}.extrasRadio .extra:hover .extraName:before{border:3px solid var(--main-color,#007aff)}.extrasRadio .extra.selected .extraName:before{border:7px solid var(--main-color,#007aff);box-sizing:border-box}');var We=function(n){var r=n.ingredients,o=n.onSelect,a=n.currency;return e.createElement("div",{className:"extrasRadio"},r.map((function(n){return e.createElement("div",{key:n.id,onClick:(r=n.id,i=n.quantity||1,function(){return o(r,i)}),className:t("extra",{selected:!!n.quantity})},e.createElement("span",{className:"extraName"},n.name),!!n.price&&e.createElement("span",{className:"extraPrice"},"+",Re(a,n.price)));var r,i})))};i(".warning{align-items:center;background:#fff;border:2px solid var(--warning,#fe7171);border-left:none;border-right:none;color:var(--warning,#fe7171);display:flex;font-size:16px;font-weight:600;padding:10px 20px;position:sticky;top:0;z-index:1}.warning .icon{margin:0 10px 0 0}");var Ue=function(t){var n=t.message;return e.createElement("div",{className:"warning"},e.createElement(Pe,{size:"small",color:"var(--warning, #fe7171)"})," ",n)};i(".productCommentSection .inputName{display:inline-block;margin:20px 0 10px}.productCommentSection .inputName:first-child{margin:0 0 10px}.productCommentSection .labelInput{width:100%}");var Ge=function(t){var n=t.name,r=t.comment,o=t.onCommentChange,a=t.onNameChange;return e.createElement("div",{className:"productCommentSection"},e.createElement("span",{className:"inputName"},"Add Name"),e.createElement(Ie,{onChange:function(e){var t;a(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add name",value:n}),e.createElement("span",{className:"inputName"},"Add Comment"),e.createElement(Ie,{onChange:function(e){var t;o(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add comment",value:r}))};i(".productSummary .line{color:#0e1328;display:grid;font-size:14px;grid-template-columns:1fr 1fr 100px;margin:0 0 7px}.productSummary .line:last-child{margin:0}.productSummary .line .button{align-items:center;background:var(--secondary-color,#cee6ff);border-radius:var(--border-radius,5px);color:var(--main-color,#007aff);cursor:pointer;display:flex;font-size:14px;height:30px;justify-content:center;transition:all .3s}.productSummary .line .button:hover{opacity:.9}.productSummary .line .value{color:#747474;white-space:break-spaces}");var Qe,Ke=function(t){var n=t.summary,r=t.onClickChange;return e.createElement("div",{className:"productSummary"},n.map((function(t){return e.createElement("div",{className:"line",key:t.name+t.index},e.createElement("div",{className:"name"},t.name),e.createElement("div",{className:"value"},t.value),e.createElement("div",{onClick:function(){return r(t.index)},className:"button"},"Change"))})))},Je="#INGREDIENTS",Ye="#HALF_SELECTOR",$e="#HALF_SELECTOR_HALF";exports.HALF_OPTION=void 0,(Qe=exports.HALF_OPTION||(exports.HALF_OPTION={}))[Qe.none=0]="none",Qe[Qe.left=1]="left",Qe[Qe.right=2]="right";var Xe=function(e,t,n,r){var o,a=[],i=0;if((null===(o=null==e?void 0:e.suboptions)||void 0===o?void 0:o.length)&&a.push({name:"Ingredients",value:tt(e.suboptions),index:i++}),t.forEach((function(e){a.push({name:e.name,value:et(e.suboptions),index:i++})})),n.length){var l=n.some((function(e){return e.half===exports.HALF_OPTION.right}));a.push({name:"Toppings",value:l?"Half":"Full",index:i++})}return n.forEach((function(e){a.push({name:e.name,value:et(e.suboptions),index:i++})})),r&&a.push({name:"Comments",value:r,index:i++}),a},et=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},tt=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")},nt=function(e,t){if(!e.respectTo)return!0;var n=t.flatMap((function(e){return e.suboptions})).find((function(t){return t.id===e.respectTo}));return!(!n||!n.quantity)};i(".suboptionsCheckbox{align-items:center;display:flex;flex-direction:column}.suboptionsCheckbox .suboptionCheckbox{align-items:center;border:1px solid #ccc;border-radius:100px;cursor:pointer;display:flex;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.suboptionsCheckbox .suboptionCheckbox:last-child{margin:0}.suboptionsCheckbox .suboptionCheckbox:hover{opacity:.9}.suboptionsCheckbox .suboptionCheckbox.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var rt=function(n){var r=n.suboptions,o=n.onSelect,a=n.currency;return e.createElement("div",{className:"suboptionsCheckbox"},r.map((function(n){return e.createElement("div",{key:n.id,onClick:(r=n.id,i=n.quantity?0:1,function(){return o(r,i)}),className:t("suboptionCheckbox",{selected:!!n.quantity})},e.createElement("span",null,n.name),!!n.price&&Re(a,n.price));var r,i})))};i(".productPreview{cursor:pointer;display:grid;gap:10px;grid-template-columns:300px 1fr}.productPreview .productReviewBody{display:flex;flex-direction:column;justify-content:space-between}.productPreview .productReviewBody .title{color:#1a1d1b;font-size:20px;font-weight:600;margin:0 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.productPreview .productReviewBody .header{align-items:center;display:flex}.productPreview .productReviewBody .description{color:#747474;font-size:16px;font-weight:400;height:125px;overflow:hidden}.productPreview .productReviewFooter{align-items:center;display:flex;justify-content:space-between}.productPreview .productReviewFooter .priceBlock{align-items:center;display:flex;font-size:16px;font-weight:600}.productPreview .productReviewFooter .priceBlock .oldPrice{margin:0 5px}.productPreview .productReviewFooter .priceBlock .currentPrice{color:#007aff}.productPreview .productReviewFooter .priceBlock .newPrice{color:#fe7171}@media (max-width:800px){.productPreview{grid-template-columns:250px 1fr}.productPreview .productReviewBody .description{height:100px}}@media (max-width:650px){.productPreview{grid-template-columns:200px 1fr}.productPreview .tagLabel{display:none}.productPreview .productReviewBody .description{height:65px}}@media (max-width:500px){.productPreview{grid-template-columns:150px 1fr}.productPreview .productReviewBody .description{height:40px}}@media (max-width:400px){.productPreview{grid-template-columns:100px 1fr}.productPreview .productReviewBody .description{height:40px}}");i(".productTags{align-items:center;display:flex;gap:5px}.productTags .additionsNew{background:#016a2b}.productTags .additionVegetarian{background:#9cc653}.productTags .additionVegan{background:#688437}.productTags .additionSpicy{background:#c8313e}.productTags .additionNoGluten{background:#ff7426}");i(".tag{align-items:center;background:#000;border-radius:100px;color:#fff;display:flex;font-size:12px;font-weight:500;gap:5px;height:20px;padding:3px 13px}.tag .icon{fill:#fff;height:15px;width:15px}");var ot=function(t){var n=t.className,r=void 0===n?"":n,o=t.label,a=t.icon;return e.createElement("div",{className:"tag "+r||""},e.createElement("span",{className:"tagLabel"},o),a)},at=function(t){var n=t.vegan,r=t.vegetarian,o=t.isNew,a=t.spicy,i=t.glutenFree,l=function(){return o?e.createElement(ot,{label:"new",className:"additionItem",icon:e.createElement(ce,null)}):null},c=function(){return n?e.createElement(ot,{label:"vegan",className:"additionVegan",icon:e.createElement(e.Fragment,null,e.createElement(ue,null),e.createElement(ue,null))}):r?e.createElement(ot,{label:"vegetarian",className:"additionVegetarian",icon:e.createElement(ue,null)}):null},s=function(){return a?e.createElement(ot,{label:"spicy",className:"additionSpicy",icon:e.createElement(e.Fragment,null,Array(a).fill(0).map((function(t,n){return e.createElement(pe,{key:n})})))}):null},u=function(){return i?e.createElement(ot,{label:"free gluten",className:"additionNoGluten",icon:e.createElement(de,null)}):null};return l()||c()||s()||u()?e.createElement("div",{className:"productTags"},l(),c(),s(),u()):null},it=function(n){var r=n.id,o=n.currency,a=n.name,i=n.description,l=n.price,c=n.oldPrice,s=n.image,u=n.trashIcon,p=void 0!==u&&u,d=n.onClickTrash,m=n.onClick,f=n.vegetarian,h=n.vegan,g=n.isNew,v=n.spicy,x=n.glutenFree,b=n.quantity;return e.createElement("div",{className:"productPreview",onClick:function(){null==m||m(r)}},e.createElement(ze,{src:s.src,alt:s.alt,settings:s.settings}),e.createElement("div",{className:"productReviewBody"},e.createElement("div",{className:"productReviewHead"},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},a),p&&e.createElement(le,{onClick:function(e){e.stopPropagation(),null==d||d(r)},width:20,height:20})),e.createElement("div",{className:"description",dangerouslySetInnerHTML:{__html:i}})),e.createElement("div",{className:"productReviewFooter"},e.createElement("div",{className:"options"},e.createElement(at,{isNew:g,spicy:v,vegan:h,glutenFree:x,vegetarian:f})),e.createElement("div",{className:"priceBlock"},!!c&&e.createElement("div",{className:t("oldPrice",{lineThrough:!b})},Re(o,c)),!!b&&e.createElement("span",{className:"quantity"}," x",b," "),!!l&&e.createElement("div",{className:t("currentPrice",{newPrice:!!c&&!b})},Re(o,l))))))};i(".productPreviewList .category .categoryName{color:#0e1328;font-size:24px;font-weight:600;margin:30px 0 20px}.productPreviewList .category .productPreview{border-bottom:1px solid #ccc;padding:16px 0}");i(".restaurantHeader .restaurantHeaderTop{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName{align-items:center;color:#007aff;display:flex;font-size:32px;font-weight:700}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName .icon{margin:0 0 0 12px}.restaurantHeader .restaurantHeaderTop .topLeft{align-items:center;display:flex}.restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 0 0 10px}.restaurantHeader .restaurantHeaderBottom{align-items:center;display:flex;justify-content:space-between}.restaurantHeader .restaurantHeaderBottom .bottomRight{align-items:center;display:flex;gap:10px}.rtl .restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 10px 0 0}.rtl .restaurantHeader .restaurantHeaderName icon{margin:0 12px 0 0}");i(".restaurantTags{align-items:center;display:flex;gap:10px}.restaurantTags .restaurantTagNew{background:#007aff;color:#fff}.restaurantTags .restaurantTagScore{background:#fff;border:1px solid #007aff;color:#007aff}.restaurantTags .restaurantTagScore .icon{fill:#007aff!important}.restaurantTags .restaurantTagKosher{background:#000;color:#fff}");var lt=function(t){var n=t.score,r=t.isNew,o=t.kosher;return e.createElement("div",{className:"restaurantTags"},!!r&&e.createElement(ot,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&e.createElement(ot,{label:n.toFixed(1),className:"restaurantTagScore",icon:e.createElement(ce,null)}),!!o&&e.createElement(ot,{label:"kosher",className:"restaurantTagKosher"}))};i(".headerCartButton{align-items:center;background:var(--main-color,#007aff);border-radius:var(--border-radius,5px);color:#fff;cursor:pointer;display:flex;height:45px;justify-content:space-between;padding:0 20px}.headerCartButton .icon{fill:#fff;margin:0 10px 0 0}.headerCartButton .label{margin:0 50px 0 0}.rtl .headerCartButton .icon{margin:0 0 0 10px}.rtl .headerCartButton .label{margin:0 0 0 50px}");var ct=function(t){var n=t.currency,r=t.amount,o=t.onClick;return e.createElement("div",{className:"headerCartButton",onClick:o},e.createElement(fe,{className:"icon"}),e.createElement("span",{className:"label"},"Checkout"),e.createElement("span",{className:"price"},Re(n,r)))};i(".footer{justify-content:flex-start!important;width:100%}.footer .icon{height:20px;width:20px}@media (max-width:600px){.footer{height:30px!important}.footer .footer{padding:0!important}}.footer .footer{padding:0}.footer .footer-item{align-items:center;color:#747474;display:flex!important;font-size:14px;margin:0 13px 0 0;white-space:nowrap}.footer .footer-item:nth-last-child(2){margin:0!important}.footer .footer-item .icon,.footer .footer-item .title{margin-right:4px}@media (max-width:500px){.footer .footer-item{margin:0 5px 0 0}.footer .footer-item .title{display:none}}@media (min-width:1600px){.footer .footer-item{font-size:12px!important}}@media (max-width:600px){.footer .footer-item{font-size:12px}.footer .footer-item .icon{display:none!important}}.footer .footer-item.delivery-price .freeDelivery{align-items:center;background:var(--main-color);border-radius:100px;color:#fff;display:flex;justify-content:center;padding:3px 7px}.footer .footer-item.delivery-price .freeDelivery .icon{margin:0}@media (max-width:800px){.footer .footer-item.delivery-price span{display:none}}.footer .footer-item .clock,.footer .footer-item .marker,.footer .footer-item .scooterDelivery{background-color:#9d9d9d;height:24px;-webkit-transform:translate(0);transform:translate(0);width:24px}.rtl .footer .footer-item,.rtl .footer .footer-item:nth-last-child(2){margin:0 13px 0 0!important}.rtl .footer .footer-item:first-child{margin:0!important}.rtl .footer .footer-item .icon,.rtl .footer .footer-item .title{margin-left:4px;margin-right:0}");var st=function(n){var o=n.dontHide,a=n.minimum,i=n.isPickUp,l=n.withTitle,c=n.estimationRangeMax,s=n.estimationRangeMin,u=n.estimationTime,p=n.distance,d=n.deliveryPrice,m=n.currency,f=n.deliveryToLocation,h=e.useState([]),g=h[0],v=h[1];return e.useEffect((function(){var n=[];a&&n.push(e.createElement("div",{className:t("footer-item mini-order")},e.createElement(fe,null),l&&e.createElement("span",{className:t("title")},"Min order"),Re(m,a))),p&&!i&&n.push(e.createElement("span",{className:t("footer-item")},e.createElement(xe,null),l&&e.createElement("div",{className:t("title")},"Distance"),"distanceKm ",p)),(c||s)&&n.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(ge,null):e.createElement(be,null),l&&e.createElement("div",{className:t("title")},i?"Pickup time":"Delivery time"),s,"-",c," min")),!i&&f&&n.push(e.createElement("div",{className:t("footer-item delivery-price")},e.createElement(he,null),l&&e.createElement("span",{className:t("title")},"deliveryPrice"),d?Re(m,d):e.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",e.createElement(ye,null)," "))),0===c&&0===s&&u&&n.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(be,null):e.createElement(ge,null),"up_to ",u,"  min")),v(n)}),[a,i,c,s,u,p,d,m,f]),e.createElement(r.OverflowList,{className:"footer benefitsData",minVisibleItems:o?g.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:g})},ut=e.createContext(null).Provider;exports.CounterButton=je,exports.INGREDIENTS=Je,exports.IconBicycle=he,exports.IconCart=fe,exports.IconClockAfternoon=ge,exports.IconClose=ve,exports.IconMapPin=xe,exports.IconMinus=Ce,exports.IconMute=Ne,exports.IconNoGluten=de,exports.IconPause=Ee,exports.IconPersonSimpleWalk=be,exports.IconPlay=we,exports.IconPlus=ke,exports.IconSearch=me,exports.IconSparkle=ye,exports.IconSpicy=pe,exports.IconStar=ce,exports.IconStarBorder=se,exports.IconTrash=le,exports.IconUnmute=Oe,exports.IconVegan=ue,exports.IconWarning=Pe,exports.IngredientsSelector=Be,exports.Input=Ie,exports.Media=ze,exports.ProductConstructor=function(t){var n=t.name,r=t.media,o=t.currency,a=t.price,i=t.oldPrice,c=t.description,s=t.totalPrice,u=t.allowComments,p=t.options,d=t.optionsHalf,m=t.max,f=t.quantity,h=t.ingredients,g=t.nameOnBox,v=t.comments,x=t.isLoading,b=t.isHalf,y=t.summaryOpen,w=t.onChangeIngredients,E=t.onChangeOption,N=t.onChangeOptionHalf,O=t.onChangeNameOnBox,k=t.onChangeComment,C=t.onAdd,P=t.onRemove,j=t.onAddToCart,B=t.onChangeIsHalf,S=e.useState(null),H=S[0],T=S[1],L=e.useState([]),I=L[0],F=L[1],R=e.useState(0),M=R[0],A=R[1],q=e.useState(!0),z=q[0],_=q[1];e.useEffect((function(){var e=function(e,t,n){var r=e.filter((function(e){return e.enabled})),o=t.filter((function(e){return e.enabled}));if(o.length){var a={name:"Toppings",enabled:!0,max:1,min:1,id:Ye,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:exports.HALF_OPTION.none,allowSuboptionQuantity:!1,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:$e,quantity:Number(n)}]};r.push(a)}return[].concat(r).concat(o)}(p,d,b);if(F(e),h.length&&T(function(e){return{id:Je,min:0,respectTo:null,half:exports.HALF_OPTION.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!1,allowSuboptionQuantity:!1,max:e.length,name:"Ingredients",suboptions:e.map((function(e){var t;return l(l({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(h)),z&&y){var t=0;e.length&&(t+=e.length),h.length&&(t+=1),u&&(t+=1),A(t)}_(!1)}),[h,p,d,b]);var Z=function(){var e=V()[M];return!!(null==e?void 0:e.id)&&function(e){var t=e.suboptions.reduce((function(e,t){var n;return(null!==(n=t.quantity)&&void 0!==n?n:0)+e}),0);return 1===e.max&&1===e.min&&1!==t?"Select one of options: "+e.name:e.min>t?"Select at least "+e.min+" for "+e.name:e.max<t&&e.min!==e.max?"Maximum avaliable to select is "+e.max+" for "+e.name:void 0}(e)},D=function(t){var n=1===t.max&&1===t.min,r=t.max>1&&t.allowSuboptionQuantity,a=function(e,n){!function(e){return e===Ye}(t.id)?t.withHalfOption?N(t.id,e,t.half,n):E(t.id,e,n):B(function(e){return e===$e}(e))};return n?e.createElement(We,{key:t.id,currency:o,ingredients:t.suboptions,onSelect:a}):r?e.createElement(Ve,{key:t.id,currency:o,suboptions:t.suboptions,onChangeQuantity:a,limitByMax:t.limitSuboptionsByMax}):e.createElement(rt,{key:t.id,currency:o,suboptions:t.suboptions,onSelect:a})},V=function(){var t=[];return H&&t.push({name:"Ingredients",component:e.createElement(Be,{ingredients:H.suboptions,onSelect:w})}),t.push.apply(t,I.filter((function(e){return nt(e,I)})).map((function(e){return l(l({},e),{name:(t=e,t.name+(t.half===exports.HALF_OPTION.right?" right":"")+(t.half===exports.HALF_OPTION.left?" left":"")),component:D(e)});var t}))),u&&t.push({name:"Comments",component:e.createElement(Ge,{name:g,comment:v,onNameChange:O,onCommentChange:k})}),t.push({name:"Summary",component:e.createElement(Ke,{summary:Xe(H,I.filter((function(e){return!e.withHalfOption})).filter((function(e){return e.id!=Ye})),I.filter((function(e){return e.withHalfOption})).filter((function(e){return e.id!=Ye})),u?"".concat(v||"-"," | ").concat(g||"-"):null),onClickChange:function(e){return A(e)}})}),t};return e.createElement("div",{className:"productConstructor"},e.createElement("div",{className:"content"},!!r&&e.createElement(ze,l({},r)),e.createElement("div",{className:"headProduct"},e.createElement("div",{className:"name"},n),e.createElement("div",{className:"priceControl"},!!i&&e.createElement("div",{className:"oldPrice"},Re(o,i)),!!a&&e.createElement("div",{className:"price"},Re(o,a)))),e.createElement("div",{className:"description"},c)),Z()&&e.createElement(Ue,{message:Z().toString()}),I.length&&e.createElement(De,{steps:V(),currentStep:M}),e.createElement(Ze,{isLoading:x,isSummary:M===V().length-1,isDisableNext:!!Z(),isDisablePrev:0===M,currency:o,onPrev:function(){return A(M-1)},onNext:function(){return A(M+1)},onAddToCart:j,amount:s,count:f,onRemove:P,onAdd:C,isAddDisable:!!m&&f===m,isRemoveDisable:0===f}))},exports.ProductPreview=it,exports.ProductPreviewList=function(t){var n=t.categories,r=t.onClickProduct;return e.createElement("div",{className:"productPreviewList"},n.map((function(t){return e.createElement("div",{key:t.name,className:"category"},e.createElement("div",{id:t.name,className:"categoryName"},t.name),t.products.map((function(n){return e.createElement(it,l({key:n.id},n,{onClick:function(e){return r(t.id,e)}}))})))})))},exports.ProductTags=at,exports.RestaurantHeader=function(t){var n=t.name,r=t.isFavorite,o=t.isNew,a=t.kosher,i=t.score,l=t.cartAmount,c=t.alternativeView,s=t.currency,u=t.searchValue,p=t.onSearch,d=t.onCartClick;return e.createElement("div",{className:"restaurantHeader"},e.createElement("div",{className:"restaurantHeaderTop"},e.createElement("div",{className:"topLeft"},e.createElement("div",{className:"restaurantHeaderName"},n,r?e.createElement(ce,null):e.createElement(se,null)),(!!l||c)&&e.createElement(lt,{isNew:o,kosher:a,score:i})),e.createElement("div",{className:"topRight"},!!l&&!c&&e.createElement(ct,{onClick:d,amount:l,currency:s}))),e.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&e.createElement(lt,{isNew:o,kosher:a,score:i}),e.createElement("div",{className:"benefits"},e.createElement(st,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&e.createElement("div",{className:"bottomRight"},e.createElement(Ie,{className:"input",placeholder:"Search in menu...",icon:e.createElement(me,null),value:u,onChange:p}),e.createElement(ct,{onClick:d,amount:l,currency:s}))))},exports.Stepper=De,exports.SuboptionMultiSelector=Ve,exports.SuboptionRadioSelector=We,exports.TranslationUIProvider=ut,exports.Warning=Ue,exports.checkRespectTo=nt,exports.convertToServerModelOptions=function(e){return e.map((function(e){return{id:e.id,name:e.name,suboptions:e.suboptions.filter((function(e){return!!e.quantity})).map((function(t){return{id:t.id,name:t.name,price:t.price,quantity:t.quantity,half_option:e.half}}))}})).filter((function(e){return!!e.suboptions.length}))},exports.mergeProduct=function(e,t,n){var r={comments:e.product.comment,nameOnBox:e.product.name_on_box,finalPrice:e.full_price,quantity:e.product.quantity,ingredients:[],options:[],optionsHalf:[],isHalf:!1};return r.options=t.filter((function(e){return!e.withHalfOption})).map((function(t){var n=e.product.options.find((function(e){return e.id===t.id}));return l(l({},t),{suboptions:t.suboptions.map((function(e){var t=null==n?void 0:n.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{quantity:t?t.quantity:0})}))})})),r.optionsHalf=t.filter((function(e){return e.withHalfOption})).flatMap((function(t){var n=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.none}))})),o=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.left}))})),a=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.right}))}));return n?l(l({},t),{half:exports.HALF_OPTION.none,suboptions:t.suboptions.map((function(e){var t=n.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{half:exports.HALF_OPTION.none,quantity:t?t.quantity:0})}))}):r.isHalf||o&&a?(r.isHalf=!0,[l(l({},t),{half:exports.HALF_OPTION.left,suboptions:t.suboptions.map((function(e){var t=o.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{half:exports.HALF_OPTION.left,quantity:t?t.quantity:0})}))}),l(l({},t),{half:exports.HALF_OPTION.right,suboptions:t.suboptions.map((function(e){var t=a.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{half:exports.HALF_OPTION.right,quantity:t?t.quantity:0})}))})]):[t]})),e.product.ingredients.length&&n.forEach((function(t){var n=e.product.ingredients.find((function(e){return e===t.id}));r.ingredients.push(l(l({},t),{quantity:n?0:1}))})),r},exports.prepareHalfOptions=function(e,t){var n=[],r=e.filter((function(e){return e.half===exports.HALF_OPTION.none||e.half===exports.HALF_OPTION.left}));return t?r.forEach((function(e){n.push(l(l({},e),{half:exports.HALF_OPTION.left})),n.push(l(l({},e),{half:exports.HALF_OPTION.right}))})):r.forEach((function(e){n.push(l(l({},e),{half:exports.HALF_OPTION.none}))})),n};
1
+ "use strict";var e=require("react"),t=require("classnames"),n=require("cloudinary-react"),r=require("react-overflow-list");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=o(e);function i(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}i(":root{--border-radius:5px;--main-color:#007aff;--secondary-color:#cee6ff;--warning:#fe7171}*{box-sizing:border-box}html{font-family:sans-serif}.lineThrough{text-decoration:line-through}.icon{cursor:pointer}");i(".counterButton{align-items:center;border:1px solid #ccc;border-radius:var(--border-radius,5px);display:grid;grid-template-columns:1fr 1fr 1fr;height:45px;justify-items:center;text-align:center}.counterButton .disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}");var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var u;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}i(".iconsPreview{display:grid;gap:20px;grid-template-columns:repeat(6,1fr);justify-items:center}.iconsPreview .previewIcon{align-items:center;display:flex;flex-direction:column;font-size:14px;justify-content:center}.iconsPreview .previewIcon span{display:inline-block;margin:0 0 5px}.fillByFill{fill:#000}.fillByStroke{stroke:#000}");var d;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}var f;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}var g;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}var x;function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}var y;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}var E;function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}var O;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}var C,P,j;function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}var S,H;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}var L;function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}var F,R;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}var M;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}var z,_;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(this,arguments)}var D;function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}var W;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}var G;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}var K;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}var Y;function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}var X;function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(this,arguments)}var te,ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}var oe=20,ae=25,ie=30,le=function(t,n){return function(r){var o=function(e){var t=e.className,n=e.props,r={};return n.color&&t.includes("Fill")&&(r.fill=n.color),n.color&&t.includes("Stroke")&&(r.stroke=n.color),r}({className:n,props:r}),a=function(e){return"small"===e?oe:"big"===e?ie:e||ae}(r.size);return e.createElement(t,l({width:a,height:a},r,{style:o,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},ce=le((function(e){return a.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},e),u||(u=a.createElement("path",{d:"M28 6a4 4 0 0 0-4 4v2h-.4L10 14v3h44v-3l-13.6-2H40v-2a4 4 0 0 0-4-4h-8zm0 4h8v2h-8v-2zm-16 9 2.701 33.322A4.002 4.002 0 0 0 18.69 56h26.623a3.999 3.999 0 0 0 3.987-3.676L51.924 20 12 19zm8 7a2 2 0 0 1 2 2v23h-3l-1-23a2 2 0 0 1 2-2zm12 0a3 3 0 0 1 3 3v22h-6V29a3 3 0 0 1 3-3zm12 0a2 2 0 0 1 2 2l-1 23h-3V28a2 2 0 0 1 2-2z"})))}),"fillByFill"),se=le((function(e){return a.createElement("svg",m({width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d||(d=a.createElement("path",{d:"m13.547 5.247-4.196-.639L7.474.625a.52.52 0 0 0-.949 0L4.65 4.608l-4.196.639a.52.52 0 0 0-.303.16.569.569 0 0 0 .01.785l3.037 3.1-.718 4.378a.577.577 0 0 0 .031.302.55.55 0 0 0 .18.24.514.514 0 0 0 .556.04L7 12.187l3.754 2.067a.504.504 0 0 0 .335.055.551.551 0 0 0 .432-.638l-.717-4.378 3.036-3.1a.563.563 0 0 0 .154-.317.549.549 0 0 0-.447-.628Z"})))}),"fillByFill"),ue=le((function(e){return a.createElement("svg",h({width:"1em",height:"1em",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#016A2B",strokeWidth:2},e),f||(f=a.createElement("path",{d:"m30.164 12.064-9.035-1.369L17.09 2.16a1.158 1.158 0 0 0-.516-.538c-.562-.289-1.245-.048-1.526.538l-4.039 8.535-9.035 1.369a1.12 1.12 0 0 0-.65.345c-.212.226-.328.53-.324.845.004.315.128.615.344.835l6.537 6.643-1.544 9.38c-.036.22-.013.444.067.649.08.205.213.383.385.513a1.099 1.099 0 0 0 1.199.09l8.081-4.43 8.081 4.429c.22.122.477.163.723.119.619-.112 1.035-.724.928-1.37l-1.544-9.38 6.537-6.643c.178-.182.295-.42.33-.679.097-.649-.337-1.25-.96-1.346Z"})))}),"fillByStroke"),pe=le((function(e){return a.createElement("svg",v({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},e),g||(g=a.createElement("path",{d:"M11.688 1.167c.711-.08 1.385.438 1.385 1.153 0 6.778-3.783 9.856-8.448 9.856-.724 0-1.313-.619-1.153-1.325.317-1.39 1.014-2.424 2.347-3.604.847-.75.776-1.182.358-.934-2.875 1.711-4.303 4.023-4.366 7.715a.263.263 0 0 1-.263.26h-.44a.683.683 0 0 1-.692-.706 12.9 12.9 0 0 1 .152-1.505c.045-.276.049-.557.01-.834-.118-.859-.177-1.956-.177-3.29A7.04 7.04 0 0 1 7.44.912c1.156 0 2.312.474 4.247.254Z"})))}),"fillByFill"),de=le((function(e){return a.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),x||(x=a.createElement("path",{d:"M49.1 11c-2.8 5-2.5 9.4.7 9.8 2.8.4 2.9 3.2.2 3.2-1.2 0-3.5-.7-5.1-1.6-3.3-1.7-4.5-1.4-3.6 1.1.4.8 2.6 2 5.1 2.7 4.4 1.2 5.3 2.8 1.6 2.8-1.2 0-2.9 1.9-4.9 5.4-3.8 6.8-9.2 12.1-15.6 15.3-2.7 1.4-5.3 3-5.6 3.5-.3.5-3 .8-6 .6l-5.4-.3 3.1-1.7C21.4 47.6 30.7 35.9 35 25c2.2-5.4 3.3-6.8 6.3-8.3 4.1-2.1 4-4.2-.2-3.2-4 1-6.7 4.1-9 10.4C28.6 33.7 21 43 10.5 50.6c-2.5 1.9-2.8 2.5-1.9 4 1 1.6 2.4 1.9 10.2 1.8 7.6 0 9.8-.4 14.5-2.8 7.2-3.5 12.9-10 17.8-20 4.4-9.1 4.8-12.2 1.8-16.1-2.1-2.5-2.1-2.9-.6-6 1.4-3 1.4-4.5-.3-4.5-.3 0-1.6 1.8-2.9 4z"})))}),"fillByFill"),me=le((function(e){return a.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),y||(y=a.createElement("path",{d:"M5.4 6.1c-.4.7 10 11.8 25.2 27 20.5 20.5 26.1 25.6 27.2 24.7 1.1-.9-.1-2.6-6.2-8.7-6.6-6.7-7.4-7.8-6.4-9.6.6-1.1 2-2.6 3-3.3 2.5-1.8 4.8-6.5 4.8-10 0-1.6.7-4.6 1.5-6.5.8-2 1.5-5.5 1.5-7.7V8h-4c-2.2 0-5.7.7-7.7 1.5-1.9.8-4.9 1.5-6.5 1.5-3.5 0-8.2 2.3-10 4.8-.7 1.1-2.2 2.4-3.4 3-1.8 1-2.9.3-9.5-6.4C10.9 8.3 7.2 5 6.8 5c-.4 0-1 .5-1.4 1.1zM52 13.4c0 2.8-2.3 7.7-4 8.6-1 .6-3 1-4.4 1-2.1 0-2.6-.5-2.6-2.4 0-3.9 1.1-5.7 4.4-7.2 4-1.7 6.6-1.7 6.6 0zm-14 3.3c0 3.6-2.1 9.1-4.1 10.9-2 1.8-2.1 1.8-3.5-.1-2.2-3-1.7-6.4 1.5-9.6 3.3-3.3 6.1-3.8 6.1-1.2zm10.7 11c.7 1.9-5.2 7.3-7.9 7.3-1.3 0-3.3-.6-4.4-1.4-1.9-1.5-1.9-1.5.2-3.6 3.4-3.4 11.3-4.9 12.1-2.3zM13.8 29c-7.6 6.2-7.7 14.4-.5 21.7 7.3 7.2 15.5 7.1 21.7-.5 2.8-3.4 2.8-3.7 1.3-5.4-.9-1-3-1.8-4.8-1.8-4.1 0-6.3-2.3-4.5-4.5.7-.9 1-1.8.7-2.2-.4-.3-1.3 0-2.2.7-2.2 1.8-4.5-.4-4.5-4.5 0-1.8-.8-3.9-1.8-4.8-1.7-1.5-2-1.5-5.4 1.3zm4.8 5.3c1.8 7.2-1.9 14.6-5.2 10.3-2-2.8-1.7-6.9.7-10 2.5-3.2 3.7-3.3 4.5-.3zM31 46c1.3.9 1.1 1.4-1.3 3.5-5.3 4.7-15.3 1.5-10.5-3.3 1.5-1.5 9.7-1.6 11.8-.2z"})))}),"fillByFill"),fe=le((function(e){return a.createElement("svg",N({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},e),E||(E=a.createElement("path",{d:"m20.998 20.038-5.236-5.445a8.854 8.854 0 0 0 2.084-5.71C17.846 3.984 13.86 0 8.963 0S.081 3.985.081 8.882c0 4.898 3.984 8.883 8.882 8.883 1.839 0 3.591-.555 5.09-1.607l5.275 5.487c.22.229.517.355.835.355a1.16 1.16 0 0 0 .835-1.962ZM8.963 2.319a6.573 6.573 0 0 1 6.566 6.564 6.573 6.573 0 0 1-6.566 6.566 6.573 6.573 0 0 1-6.565-6.566 6.573 6.573 0 0 1 6.565-6.565Z"})))}),"fillByFill"),he=le((function(e){return a.createElement("svg",k({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},e),O||(O=a.createElement("path",{d:"M6.574 8.57c0-.73-.002-1.41 0-2.09C6.587 2.742 9.586-.137 13.32.005c3.286.125 6.037 2.919 6.104 6.21.016.767.002 1.537.002 2.352h.376c1.618.001 3.235 0 4.853.002.825.002 1.276.519 1.185 1.332-.357 3.18-.706 6.36-1.063 9.54-.26 2.316-.497 4.635-.796 6.946-.26 2.007-2.022 3.556-4.053 3.596-1.584.031-3.169.01-4.753.01H6.47c-2.536 0-4.264-1.59-4.53-4.108-.329-3.127-.694-6.25-1.042-9.375-.247-2.215-.496-4.432-.74-6.648C.073 9.086.537 8.57 1.32 8.57c1.618-.003 3.236 0 4.854 0h.4Zm12.87 4.262c.114.029.213.047.307.078.492.16.803.635.745 1.136-.057.496-.476.928-.979.943-.768.023-1.54.02-2.309 0-.48-.012-.884-.397-.977-.867-.091-.465.16-.961.6-1.16.139-.062.291-.093.43-.137V10.73H8.734v2.1c.116.03.215.049.31.08.486.16.797.642.738 1.14-.06.5-.475.924-.983.938-.769.023-1.539.024-2.308.002-.506-.015-.924-.444-.982-.94a1.065 1.065 0 0 1 .739-1.138c.102-.034.208-.057.3-.08v-2.103H2.421c.034.327.064.634.098.941.258 2.304.517 4.609.773 6.914.273 2.46.535 4.92.818 7.38.126 1.095 1.019 1.882 2.126 1.884 4.507.008 9.015.008 13.522.002 1.107-.001 2-.78 2.132-1.88.222-1.848.413-3.7.62-5.55l.773-6.948.3-2.74h-4.138v2.1ZM8.662 8.545h8.625c0-.736.006-1.45-.001-2.162-.023-2.19-1.672-3.981-3.885-4.224-2.069-.227-4.12 1.19-4.537 3.273-.2 1.002-.142 2.057-.202 3.113Z"})))}),"fillByFill"),ge=le((function(e){return a.createElement("svg",B({width:"1em",height:"1em",stroke:"#000",strokeWidth:1.3,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C||(C=a.createElement("path",{d:"M19.5 7.5A1.5 1.5 0 0 0 18 6h-3.75l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),P||(P=a.createElement("path",{d:"M19.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 6h2.625l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),j||(j=a.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ve=le((function(e){return a.createElement("svg",T({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S||(S=a.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),H||(H=a.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),xe=le((function(e){return a.createElement("svg",I({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},e),L||(L=a.createElement("path",{d:"m17.857 15.825-6.495-6.494 6.495-6.495A1.531 1.531 0 0 0 15.692.672L9.197 7.166 2.703.672A1.53 1.53 0 0 0 .538 2.836l6.494 6.495-6.494 6.495a1.53 1.53 0 0 0 2.165 2.164l6.494-6.494 6.495 6.494a1.531 1.531 0 0 0 2.165-2.164Z"})))}),"fillByFill"),be=le((function(e){return a.createElement("svg",A({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000",strokeWidth:1.3},e),F||(F=a.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),R||(R=a.createElement("path",{d:"M19.5 9.75c0 6.75-7.5 12-7.5 12s-7.5-5.25-7.5-12a7.5 7.5 0 0 1 15 0Z",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ye=le((function(e){return a.createElement("svg",q({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),M||(M=a.createElement("path",{d:"M14.25 7.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM4.5 12.5s5.25-5.25 8.25-2.475c1.678 1.547 3 3.975 6.75 3.975M12.234 9.632 6.75 22.25M14.25 22.25V17l-3.984-2.84",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),we=le((function(e){return a.createElement("svg",Z({width:"1em",height:"1em",viewBox:"0 0 16 16",stroke:"#000",strokeWidth:1.3,xmlns:"http://www.w3.org/2000/svg"},e),z||(z=a.createElement("path",{d:"m8.669 10.969-1.2 3.256a.5.5 0 0 1-.938 0l-1.2-3.256a.506.506 0 0 0-.3-.3l-3.256-1.2a.5.5 0 0 1 0-.938l3.256-1.2a.506.506 0 0 0 .3-.3l1.2-3.256a.5.5 0 0 1 .938 0l1.2 3.256a.506.506 0 0 0 .3.3l3.256 1.2a.5.5 0 0 1 0 .938l-3.256 1.2a.506.506 0 0 0-.3.3Z"})),_||(_=a.createElement("path",{d:"M11 1v3M12.5 2.5h-3M14 4.5v2M15 5.5h-2",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke fillByFill"),Ee=le((function(e){return a.createElement("svg",V({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),D||(D=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.528 5.118a1 1 0 0 1 1.027.05l9 6a1 1 0 0 1 0 1.664l-9 6A1 1 0 0 1 8 18V6a1 1 0 0 1 .528-.882ZM10 7.868v8.263L16.197 12 10 7.869Z"})))}),"fillByFill"),Ne=le((function(e){return a.createElement("svg",U({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),W||(W=a.createElement("path",{d:"M5.92 24.096q0 .832.576 1.408t1.44.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576H7.936q-.832 0-1.44.576t-.576 1.44v16.16zm12.096 0q0 .832.608 1.408t1.408.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576h-4.032q-.832 0-1.408.576t-.608 1.44v16.16z"})))}),"fillByFill"),Oe=le((function(e){return a.createElement("svg",Q({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),G||(G=a.createElement("path",{d:"m89.752 59.582 251.583 251.583 5.433 5.432 49.472 49.474v-.001l30.862 30.86h-.001l25.317 25.318-30.17 30.17-187.832-187.833v164.103l-110.729-85.459h-81.02V172.563h80.895l10.538-8.293-74.518-74.518 30.17-30.17Zm314.213 28.014c67.74 75.64 82.499 181.38 44.28 270.137l-32.95-32.95c23.87-71.004 8.998-151.973-44.615-210.559l33.285-26.628Zm-84.385 67.51c28.626 31.924 41.555 72.769 38.788 112.752l-49.237-49.236c-4.823-12.915-12.148-25.121-21.976-35.884l-.9-.974 33.325-26.659Zm-85.163-69.773-.001 58.574-32.78-32.78 32.78-25.794Z",fillRule:"evenodd"})))}),"fillByFill"),ke=le((function(e){return a.createElement("svg",J({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),K||(K=a.createElement("path",{d:"m403.966 426.944-33.285-26.629c74.193-81.076 74.193-205.016-.001-286.091l33.285-26.628c86.612 96.713 86.61 242.636.001 339.348ZM319.58 155.105l-33.325 26.66c39.796 42.567 39.795 108.443.002 151.01l33.324 26.66c52.204-58.222 52.204-146.11-.001-204.33Zm-85.163-69.772-110.855 87.23H42.667v170.666h81.02l110.73 85.459V85.333Z",fillRule:"evenodd"})))}),"fillByFill"),Ce=le((function(e){return a.createElement("svg",ee({width:"1em",height:"1em",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg"},e),X||(X=a.createElement("path",{d:"M12.598 20.946v-8.25h8.25a1.375 1.375 0 0 0 0-2.75h-8.25v-8.25a1.375 1.375 0 0 0-2.75 0v8.25h-8.25a1.375 1.375 0 0 0 0 2.75h8.25v8.25a1.375 1.375 0 1 0 2.75 0Z"})))}),"fillByFill"),Pe=le((function(e){return a.createElement("svg",$({width:"1em",height:"1em",viewBox:"0 0 23 4",xmlns:"http://www.w3.org/2000/svg"},e),Y||(Y=a.createElement("path",{d:"M20.848 3.696H1.598a1.375 1.375 0 0 1 0-2.75h19.25a1.375 1.375 0 0 1 0 2.75Z"})))}),"fillByFill"),je=le((function(e){return a.createElement("svg",re({width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"#000",xmlns:"http://www.w3.org/2000/svg"},e),te||(te=a.createElement("path",{d:"M12.271 22.34c5.523 0 10-4.476 10-10 0-5.522-4.477-10-10-10-5.522 0-10 4.478-10 10 0 5.524 4.478 10 10 10Z",strokeWidth:2})),ne||(ne=a.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),Be=function(n){var r=n.count,o=n.isRemoveDisable,a=n.isAddDisable,i=n.onAdd,l=n.onRemove;return e.createElement("div",{className:"counterButton"},e.createElement(Pe,{color:"var(--main-color, #007aff)",onClick:l,className:t("control",{disable:o})}),e.createElement("div",{className:"control count"},r),e.createElement(Ce,{color:"var(--main-color, #007aff)",onClick:i,className:t("control",{disable:a})}))};i(".ingredients{align-items:center;display:flex;flex-direction:column}.ingredients .ingredient{border:1px solid #ccc;border-radius:100px;color:var(--main-color,#007aff);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.ingredients .ingredient:last-child{margin:0}.ingredients .ingredient:hover{opacity:.9}.ingredients .ingredient.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var Se=function(n){var r=n.ingredients,o=n.onSelect;return e.createElement("div",{className:"ingredients"},r.map((function(n){return e.createElement("div",{key:n.id,onClick:(r=n.id,function(){return o(r)}),className:t("ingredient",{selected:!!n.quantity})},n.name);var r})))};i(".labelInput{align-items:center;background:#f8f8f8;border-radius:var(--border-radius,5px);display:inline-flex;height:44px;overflow:hidden;padding:0 13px}.labelInput .icon{height:25px;margin:0 10px 0 0;width:25px}.labelInput input{background:none;border:none;height:100%;outline:none;width:100%}.labelInput input::-webkit-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-moz-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-ms-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::placeholder{color:#747474;font-size:14px;font-weight:400}.rtl .labelInput .icon{margin:0 0 0 10px}");var He,Te,Le,Ie,Fe=function(t){var n=t.icon,r=t.debounce,o=t.onChange,a=c(t,["icon","debounce","onChange"]),i=e.useState(null),s=i[0],u=i[1];return e.useEffect((function(){var e=setTimeout((function(){o&&o(s)}),r);return function(){return clearTimeout(e)}}),[s]),e.createElement("label",{className:"labelInput"},n&&n,e.createElement("input",l({},a,{onChange:function(e){u(e)}})))};!function(e){e[e.fill=0]="fill",e[e.pad=1]="pad",e[e.fit=2]="fit",e[e.mfit=3]="mfit",e[e.scale=4]="scale",e[e.limit=5]="limit",e[e.lpad=6]="lpad",e[e.mpad=7]="mpad",e[e.crop=8]="crop",e[e.fill_pad=9]="fill_pad",e[e.thumb=10]="thumb"}(He||(He={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(Te||(Te={})),function(e){e[e.best=1]="best",e[e.good=2]="good",e[e.eco=3]="eco",e[e.low=4]="low",e[e.custom=5]="custom"}(Le||(Le={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(Ie||(Ie={}));i(".mediaWrapper{aspect-ratio:5/3;border-radius:var(--border-radius,5px);overflow:hidden;width:100%}.mediaWrapper img,.mediaWrapper video{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.videoControl{height:100%;position:relative;width:100%}.videoControl .videoControls{left:10px;position:absolute;top:10px;z-index:1}.videoControl .videoControls .control{background:#fff;border-radius:100px;cursor:pointer;margin:0 5px 0 0;padding:3px}");var Re=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},Ae=function(e,t){var n="";return e&&(n=Ie[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n},Me=function(t){var r=t.src,o=t.alt,a=t.width,i=t.height,l=t.quality,c=t.gravity,s=t.crop,u=t.id;return e.createElement(n.Image,{id:u,cloudName:r[0],secure:"true",publicId:r.splice(3).join("/"),alt:o},e.createElement(n.Transformation,{width:a,height:i,quality:l,gravity:c,crop:s}),e.createElement(n.Transformation,{fetchFormat:"auto"}))},qe=function(t){var n=t.autoPlay,r=t.onStart,o=t.id,a=t.src,i=t.onEnd,c=t.controls,s=e.useState({playing:!1,muted:!1}),u=s[0],p=s[1],d=e.useRef(),m=function(){d.current.paused?(d.current.play(),p((function(e){return l(l({},e),{playing:!0})}))):(d.current.pause(),p((function(e){return l(l({},e),{playing:!1})})))},f=function(){d.current.muted=!d.current.muted,p((function(e){return l(l({},e),{muted:d.current.muted})}))};return e.createElement("div",{className:"videoControl"},c&&e.createElement("div",{className:"videoControls",onClick:function(e){return e.stopPropagation()}},!u.playing&&e.createElement(Ee,{color:"var(--main-color)",className:"control",onClick:m}),u.playing&&e.createElement(Ne,{color:"var(--main-color)",className:"control",onClick:m}),u.muted&&e.createElement(Oe,{color:"var(--main-color)",className:"control",onClick:f}),!u.muted&&e.createElement(ke,{color:"var(--main-color)",className:"control",onClick:f})),e.createElement(ze,{autoPlay:n,src:a,onPlay:function(){r&&r(),p((function(e){return l(l({},e),{playing:!0})}))},onEnded:function(){i&&i()},videoRef:d,id:o}))},ze=function(t){var n=t.videoRef,r=t.src,o=t.id,a=t.onPlay,i=t.onEnded,l=t.autoPlay;return e.createElement("video",{ref:n,src:r,id:o,onPlay:function(){a&&a()},autoPlay:l,onEnded:function(){i&&i()}})},_e=function(t){var n=t.src,r=t.settings,o=t.alt,a=t.id,i=c(t,["src","settings","alt","id"]),s=e.useRef(null),u=e.useState({width:0,height:0}),p=u[0],d=u[1],m=n.includes("/image/"),f=n.includes("/video/"),h=n.replace("https://res.cloudinary.com/","").split("/");e.useEffect((function(){p.width!==s.current.offsetWidth&&p.height!==s.current.offsetHeight&&d({width:s.current.offsetWidth||0,height:s.current.offsetHeight||0})}));return e.createElement("div",{ref:s,className:"mediaWrapper"},m&&e.createElement(Me,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Re(Te,(null==r?void 0:r.gravity_mode)||0),crop:Re(He,(null==r?void 0:r.crop_mode)||0),src:h,alt:o,id:a})),f&&e.createElement(qe,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Re(Te,(null==r?void 0:r.gravity_mode)||0),crop:Re(He,(null==r?void 0:r.crop_mode)||0),id:a,src:n})))};i(".productConstructor .content{margin:0 0 20px}.productConstructor .headProduct{align-items:center;display:flex;justify-content:space-between;padding:20px 20px 10px}.productConstructor .headProduct .name{font-size:24px;font-weight:600}.productConstructor .headProduct .priceControl{align-items:center;display:flex;font-size:16px}.productConstructor .headProduct .priceControl .oldPrice{color:var(--warning,#fe7171);margin:0 5px}.productConstructor .headProduct .priceControl .price{color:var(--main-color,#007aff)}.productConstructor .description{color:#747474;font-size:16px;font-weight:400;padding:0 20px}.productConstructor .stepper{padding:0 20px}.productConstructor .stepper .productCommentSection,.productConstructor .stepper .productSummary{text-align:left}.productConstructor .footerControls{bottom:0;margin:20px 0 0;position:sticky}");i(".footerControls{align-items:center;background:#fff;border-top:1px solid #ccc;display:flex;justify-content:center;padding:20px}.footerControls.summary{display:grid;gap:10px;grid-template-columns:2fr 3fr}.footerControls.summary .addLabel{align-items:center;display:flex}.footerControls.summary .addLabel .icon{margin:0 5px}.footerControls.summary .button.major{align-items:center;display:flex;justify-content:space-around;margin:0;width:100%}.footerControls .button{align-items:center;border:1px solid #007aff;border-radius:var(--border-radius,5px);color:#007aff;cursor:pointer;display:flex;height:45px;justify-content:center;transition:all .3s;width:40%}.footerControls .button:hover{opacity:.9}.footerControls .button.major{background:var(--main-color,#007aff);color:#fff;margin:0 0 0 10px}.footerControls .button.disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width:600px){.footerControls .button,.footerControls .counterButton{font-size:14px;height:35px}.footerControls .button svg,.footerControls .counterButton svg{height:20px;width:20px}}");i('.lds-dual-ring{display:inline-block;height:30px;width:30px}.lds-dual-ring:after{-webkit-animation:lds-dual-ring 1.2s linear infinite;animation:lds-dual-ring 1.2s linear infinite;border-color:#fff transparent;border-radius:50%;border-style:solid;border-width:4px;content:" ";display:block;height:18px;margin:4px;width:18px}@-webkit-keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}');var Ze=function(){return e.createElement("div",{className:"lds-dual-ring"})},De=function(n){var r=n.isSummary,o=n.isLoading,a=n.isDisableNext,i=n.isDisablePrev,l=n.amount,c=n.currency,s=n.onPrev,u=n.onNext,p=n.count,d=n.isAddDisable,m=n.isRemoveDisable,f=n.onAdd,h=n.onRemove,g=n.onAddToCart;return e.createElement("div",{className:t("footerControls",{summary:r})},r?e.createElement(e.Fragment,null,e.createElement(Be,{count:p,isRemoveDisable:m||o,isAddDisable:d||o,onAdd:f,onRemove:h}),e.createElement("div",{onClick:g,className:t("button major",{disable:o})},o?e.createElement(Ze,null):e.createElement(e.Fragment,null,e.createElement("div",{className:"addLabel"},e.createElement(he,{color:"#fff",size:"small"})," Add to Cart"),e.createElement("div",null,Ae(c,l))))):e.createElement(e.Fragment,null,e.createElement("div",{onClick:s,className:t("button",{disable:i||o})},"Back"),e.createElement("div",{onClick:u,className:t("button major",{disable:a||o})},o?e.createElement(Ze,null):e.createElement(e.Fragment,null,"Next ",Ae(c,l)))))};i(".stepper{text-align:center}.stepper .stepperHeader{font-size:20px;font-weight:600}.stepper .steps{align-items:center;display:flex;justify-content:center;margin:10px 0}.stepper .steps .step{border:1px solid #ccc;border-radius:100px;height:14px;transition:all .3s;width:14px}.stepper .steps .step.active{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff)}.stepper .steps .line{background:#ccc;height:1px;width:28px}");var Ve=function(n){var r=n.steps,o=n.currentStep,a=r[o].component,i=r[o].name;return e.createElement("div",{className:"stepper"},e.createElement("div",{className:"stepperHeader"},i),e.createElement("div",{className:"steps"},Array(r.length).fill(0).map((function(n,a){return e.createElement(e.Fragment,{key:a},e.createElement("div",{className:t("step",{active:a===o})}),a!==r.length-1&&e.createElement("div",{className:"line"}))}))),a)};i(".suboptionMultiSelector .suboption{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.suboptionMultiSelector .suboption .suboptionName.selected{color:#007aff}.suboptionMultiSelector .suboption .counterSection{align-items:center;display:flex}.suboptionMultiSelector .suboption .counterButton{height:35px;margin:0 0 0 10px;width:150px}.suboptionMultiSelector .suboption .counterButton svg{height:15px;width:15px}");var We=function(n){var r=n.suboptions,o=n.onChangeQuantity,a=n.currency,i=n.limitByMax,l=function(e,t){return function(){return o(e,t)}},c=function(e){return!!i&&e.quantity===e.max};return e.createElement("div",{className:"suboptionMultiSelector"},r.map((function(n){return e.createElement("div",{className:"suboption",key:n.id},e.createElement("span",{className:t("suboptionName",{selected:!!n.quantity})},n.name),e.createElement("div",{className:"counterSection"},!!n.price&&e.createElement("span",{className:"price"},"+",Ae(a,n.price)),e.createElement(Be,{count:n.quantity||0,isAddDisable:c(n),isRemoveDisable:!n.quantity,onAdd:l(n.id,(n.quantity||0)+1),onRemove:l(n.id,(n.quantity||0)-1)})))})))};i('.extrasRadio{align-items:center;display:flex;flex-direction:column}.extrasRadio .extra{border:1px solid #ccc;border-radius:100px;cursor:pointer;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:7px 10px;transition:all .3s}.extrasRadio .extra,.extrasRadio .extra .extraName{align-items:center;display:flex}.extrasRadio .extra .extraName:before{border:1px solid #ccc;border-radius:100px;box-sizing:border-box;content:"";display:block;flex:1 0 24px;height:24px;margin:0 10px 0 0;transition:all .1s;width:24px}.extrasRadio .extra:last-child{margin:0}.extrasRadio .extra:hover{opacity:.9}.extrasRadio .extra:hover .extraName:before{border:3px solid var(--main-color,#007aff)}.extrasRadio .extra.selected .extraName:before{border:7px solid var(--main-color,#007aff);box-sizing:border-box}');var Ue=function(n){var r=n.ingredients,o=n.onSelect,a=n.currency;return e.createElement("div",{className:"extrasRadio"},r.map((function(n){return e.createElement("div",{key:n.id,onClick:(r=n.id,i=n.quantity||1,function(){return o(r,i)}),className:t("extra",{selected:!!n.quantity})},e.createElement("span",{className:"extraName"},n.name),!!n.price&&e.createElement("span",{className:"extraPrice"},"+",Ae(a,n.price)));var r,i})))};i(".warning{align-items:center;background:#fff;border:2px solid var(--warning,#fe7171);border-left:none;border-right:none;color:var(--warning,#fe7171);display:flex;font-size:16px;font-weight:600;padding:10px 20px;position:sticky;top:0;z-index:1}.warning .icon{margin:0 10px 0 0}");var Ge=function(t){var n=t.message;return e.createElement("div",{className:"warning"},e.createElement(je,{size:"small",color:"var(--warning, #fe7171)"})," ",n)};i(".productCommentSection .inputName{display:inline-block;margin:20px 0 10px}.productCommentSection .inputName:first-child{margin:0 0 10px}.productCommentSection .labelInput{width:100%}");var Qe=function(t){var n=t.name,r=t.comment,o=t.onCommentChange,a=t.onNameChange;return e.createElement("div",{className:"productCommentSection"},e.createElement("span",{className:"inputName"},"Add Name"),e.createElement(Fe,{onChange:function(e){var t;a(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add name",value:n}),e.createElement("span",{className:"inputName"},"Add Comment"),e.createElement(Fe,{onChange:function(e){var t;o(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add comment",value:r}))};i(".productSummary .line{color:#0e1328;display:grid;font-size:14px;grid-template-columns:1fr 1fr 100px;margin:0 0 7px}.productSummary .line:last-child{margin:0}.productSummary .line .button{align-items:center;background:var(--secondary-color,#cee6ff);border-radius:var(--border-radius,5px);color:var(--main-color,#007aff);cursor:pointer;display:flex;font-size:14px;height:30px;justify-content:center;transition:all .3s}.productSummary .line .button:hover{opacity:.9}.productSummary .line .value{color:#747474;white-space:break-spaces}");var Ke,Je=function(t){var n=t.summary,r=t.onClickChange;return e.createElement("div",{className:"productSummary"},n.map((function(t){return e.createElement("div",{className:"line",key:t.name+t.index},e.createElement("div",{className:"name"},t.name),e.createElement("div",{className:"value"},t.value),e.createElement("div",{onClick:function(){return r(t.index)},className:"button"},"Change"))})))},Ye="#INGREDIENTS",$e="#HALF_SELECTOR",Xe="#HALF_SELECTOR_HALF";exports.HALF_OPTION=void 0,(Ke=exports.HALF_OPTION||(exports.HALF_OPTION={}))[Ke.none=0]="none",Ke[Ke.left=1]="left",Ke[Ke.right=2]="right";var et=function(e,t,n,r){var o,a=[],i=0;if((null===(o=null==e?void 0:e.suboptions)||void 0===o?void 0:o.length)&&a.push({name:"Ingredients",value:nt(e.suboptions),index:i++}),t.forEach((function(e){a.push({name:e.name,value:tt(e.suboptions),index:i++})})),n.length){var l=n.some((function(e){return e.half===exports.HALF_OPTION.right}));a.push({name:"Toppings",value:l?"Half":"Full",index:i++})}return n.forEach((function(e){a.push({name:e.name,value:tt(e.suboptions),index:i++})})),r&&a.push({name:"Comments",value:r,index:i++}),a},tt=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},nt=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")},rt=function(e,t){if(!e.respectTo)return!0;var n=t.flatMap((function(e){return e.suboptions})).find((function(t){return t.id===e.respectTo}));return!(!n||!n.quantity)};i(".suboptionsCheckbox{align-items:center;display:flex;flex-direction:column}.suboptionsCheckbox .suboptionCheckbox{align-items:center;border:1px solid #ccc;border-radius:100px;cursor:pointer;display:flex;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.suboptionsCheckbox .suboptionCheckbox:last-child{margin:0}.suboptionsCheckbox .suboptionCheckbox:hover{opacity:.9}.suboptionsCheckbox .suboptionCheckbox.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var ot=function(n){var r=n.suboptions,o=n.onSelect,a=n.currency;return e.createElement("div",{className:"suboptionsCheckbox"},r.map((function(n){return e.createElement("div",{key:n.id,onClick:(r=n.id,i=n.quantity?0:1,function(){return o(r,i)}),className:t("suboptionCheckbox",{selected:!!n.quantity})},e.createElement("span",null,n.name),!!n.price&&Ae(a,n.price));var r,i})))};i(".productPreview{cursor:pointer;display:grid;gap:10px;grid-template-columns:300px 1fr}.productPreview .productReviewBody{display:flex;flex-direction:column;justify-content:space-between}.productPreview .productReviewBody .title{color:#1a1d1b;font-size:20px;font-weight:600;margin:0 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.productPreview .productReviewBody .header{align-items:center;display:flex}.productPreview .productReviewBody .description{color:#747474;font-size:16px;font-weight:400;height:125px;overflow:hidden}.productPreview .productReviewFooter{align-items:center;display:flex;justify-content:space-between}.productPreview .productReviewFooter .priceBlock{align-items:center;display:flex;font-size:16px;font-weight:600}.productPreview .productReviewFooter .priceBlock .oldPrice{margin:0 5px}.productPreview .productReviewFooter .priceBlock .currentPrice{color:#007aff}.productPreview .productReviewFooter .priceBlock .newPrice{color:#fe7171}@media (max-width:800px){.productPreview{grid-template-columns:250px 1fr}.productPreview .productReviewBody .description{height:100px}}@media (max-width:650px){.productPreview{grid-template-columns:200px 1fr}.productPreview .tagLabel{display:none}.productPreview .productReviewBody .description{height:65px}}@media (max-width:500px){.productPreview{grid-template-columns:150px 1fr}.productPreview .productReviewBody .description{height:40px}}@media (max-width:400px){.productPreview{grid-template-columns:100px 1fr}.productPreview .productReviewBody .description{height:40px}}");i(".productTags{align-items:center;display:flex;gap:5px}.productTags .additionsNew{background:#016a2b}.productTags .additionVegetarian{background:#9cc653}.productTags .additionVegan{background:#688437}.productTags .additionSpicy{background:#c8313e}.productTags .additionNoGluten{background:#ff7426}");i(".tag{align-items:center;background:#000;border-radius:100px;color:#fff;display:flex;font-size:12px;font-weight:500;gap:5px;height:20px;padding:3px 13px}.tag .icon{fill:#fff;height:15px;width:15px}");var at=function(t){var n=t.className,r=void 0===n?"":n,o=t.label,a=t.icon;return e.createElement("div",{className:"tag "+r||""},e.createElement("span",{className:"tagLabel"},o),a)},it=function(t){var n=t.vegan,r=t.vegetarian,o=t.isNew,a=t.spicy,i=t.glutenFree,l=function(){return o?e.createElement(at,{label:"new",className:"additionItem",icon:e.createElement(se,null)}):null},c=function(){return n?e.createElement(at,{label:"vegan",className:"additionVegan",icon:e.createElement(e.Fragment,null,e.createElement(pe,null),e.createElement(pe,null))}):r?e.createElement(at,{label:"vegetarian",className:"additionVegetarian",icon:e.createElement(pe,null)}):null},s=function(){return a?e.createElement(at,{label:"spicy",className:"additionSpicy",icon:e.createElement(e.Fragment,null,Array(a).fill(0).map((function(t,n){return e.createElement(de,{key:n})})))}):null},u=function(){return i?e.createElement(at,{label:"free gluten",className:"additionNoGluten",icon:e.createElement(me,null)}):null};return l()||c()||s()||u()?e.createElement("div",{className:"productTags"},l(),c(),s(),u()):null},lt=function(n){var r=n.id,o=n.currency,a=n.name,i=n.description,l=n.price,c=n.oldPrice,s=n.image,u=n.trashIcon,p=void 0!==u&&u,d=n.onClickTrash,m=n.onClick,f=n.vegetarian,h=n.vegan,g=n.isNew,v=n.spicy,x=n.glutenFree,b=n.quantity;return e.createElement("div",{className:"productPreview",onClick:function(){null==m||m(r)}},e.createElement(_e,{src:s.src,alt:s.alt,settings:s.settings}),e.createElement("div",{className:"productReviewBody"},e.createElement("div",{className:"productReviewHead"},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},a),p&&e.createElement(ce,{onClick:function(e){e.stopPropagation(),null==d||d(r)},width:20,height:20})),e.createElement("div",{className:"description",dangerouslySetInnerHTML:{__html:i}})),e.createElement("div",{className:"productReviewFooter"},e.createElement("div",{className:"options"},e.createElement(it,{isNew:g,spicy:v,vegan:h,glutenFree:x,vegetarian:f})),e.createElement("div",{className:"priceBlock"},!!c&&e.createElement("div",{className:t("oldPrice",{lineThrough:!b})},Ae(o,c)),!!b&&e.createElement("span",{className:"quantity"}," x",b," "),!!l&&e.createElement("div",{className:t("currentPrice",{newPrice:!!c&&!b})},Ae(o,l))))))};i(".productPreviewList .category .categoryName{color:#0e1328;font-size:24px;font-weight:600;margin:30px 0 20px}.productPreviewList .category .productPreview{border-bottom:1px solid #ccc;padding:16px 0}");i(".restaurantHeader .restaurantHeaderTop{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName{align-items:center;color:#007aff;display:flex;font-size:32px;font-weight:700}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName .icon{margin:0 0 0 12px}.restaurantHeader .restaurantHeaderTop .topLeft{align-items:center;display:flex}.restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 0 0 10px}.restaurantHeader .restaurantHeaderBottom{align-items:center;display:flex;justify-content:space-between}.restaurantHeader .restaurantHeaderBottom .bottomRight{align-items:center;display:flex;gap:10px}.rtl .restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 10px 0 0}.rtl .restaurantHeader .restaurantHeaderName icon{margin:0 12px 0 0}");i(".restaurantTags{align-items:center;display:flex;gap:10px}.restaurantTags .restaurantTagNew{background:#007aff;color:#fff}.restaurantTags .restaurantTagScore{background:#fff;border:1px solid #007aff;color:#007aff}.restaurantTags .restaurantTagScore .icon{fill:#007aff!important}.restaurantTags .restaurantTagKosher{background:#000;color:#fff}");var ct=function(t){var n=t.score,r=t.isNew,o=t.kosher;return e.createElement("div",{className:"restaurantTags"},!!r&&e.createElement(at,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&e.createElement(at,{label:n.toFixed(1),className:"restaurantTagScore",icon:e.createElement(se,null)}),!!o&&e.createElement(at,{label:"kosher",className:"restaurantTagKosher"}))};i(".headerCartButton{align-items:center;background:var(--main-color,#007aff);border-radius:var(--border-radius,5px);color:#fff;cursor:pointer;display:flex;height:45px;justify-content:space-between;padding:0 20px}.headerCartButton .icon{fill:#fff;margin:0 10px 0 0}.headerCartButton .label{margin:0 50px 0 0}.rtl .headerCartButton .icon{margin:0 0 0 10px}.rtl .headerCartButton .label{margin:0 0 0 50px}");var st=function(t){var n=t.currency,r=t.amount,o=t.onClick;return e.createElement("div",{className:"headerCartButton",onClick:o},e.createElement(he,{className:"icon"}),e.createElement("span",{className:"label"},"Checkout"),e.createElement("span",{className:"price"},Ae(n,r)))};i(".footer{justify-content:flex-start!important;width:100%}.footer .icon{height:20px;width:20px}@media (max-width:600px){.footer{height:30px!important}.footer .footer{padding:0!important}}.footer .footer{padding:0}.footer .footer-item{align-items:center;color:#747474;display:flex!important;font-size:14px;margin:0 13px 0 0;white-space:nowrap}.footer .footer-item:nth-last-child(2){margin:0!important}.footer .footer-item .icon,.footer .footer-item .title{margin-right:4px}@media (max-width:500px){.footer .footer-item{margin:0 5px 0 0}.footer .footer-item .title{display:none}}@media (min-width:1600px){.footer .footer-item{font-size:12px!important}}@media (max-width:600px){.footer .footer-item{font-size:12px}.footer .footer-item .icon{display:none!important}}.footer .footer-item.delivery-price .freeDelivery{align-items:center;background:var(--main-color);border-radius:100px;color:#fff;display:flex;justify-content:center;padding:3px 7px}.footer .footer-item.delivery-price .freeDelivery .icon{margin:0}@media (max-width:800px){.footer .footer-item.delivery-price span{display:none}}.footer .footer-item .clock,.footer .footer-item .marker,.footer .footer-item .scooterDelivery{background-color:#9d9d9d;height:24px;-webkit-transform:translate(0);transform:translate(0);width:24px}.rtl .footer .footer-item,.rtl .footer .footer-item:nth-last-child(2){margin:0 13px 0 0!important}.rtl .footer .footer-item:first-child{margin:0!important}.rtl .footer .footer-item .icon,.rtl .footer .footer-item .title{margin-left:4px;margin-right:0}");var ut=function(n){var o=n.dontHide,a=n.minimum,i=n.isPickUp,l=n.withTitle,c=n.estimationRangeMax,s=n.estimationRangeMin,u=n.estimationTime,p=n.distance,d=n.deliveryPrice,m=n.currency,f=n.deliveryToLocation,h=e.useState([]),g=h[0],v=h[1];return e.useEffect((function(){var n=[];a&&n.push(e.createElement("div",{className:t("footer-item mini-order")},e.createElement(he,null),l&&e.createElement("span",{className:t("title")},"Min order"),Ae(m,a))),p&&!i&&n.push(e.createElement("span",{className:t("footer-item")},e.createElement(be,null),l&&e.createElement("div",{className:t("title")},"Distance"),"distanceKm ",p)),(c||s)&&n.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(ve,null):e.createElement(ye,null),l&&e.createElement("div",{className:t("title")},i?"Pickup time":"Delivery time"),s,"-",c," min")),!i&&f&&n.push(e.createElement("div",{className:t("footer-item delivery-price")},e.createElement(ge,null),l&&e.createElement("span",{className:t("title")},"deliveryPrice"),d?Ae(m,d):e.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",e.createElement(we,null)," "))),0===c&&0===s&&u&&n.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(ye,null):e.createElement(ve,null),"up_to ",u,"  min")),v(n)}),[a,i,c,s,u,p,d,m,f]),e.createElement(r.OverflowList,{className:"footer benefitsData",minVisibleItems:o?g.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:g})},pt=e.createContext(null).Provider;exports.CounterButton=Be,exports.INGREDIENTS=Ye,exports.IconBicycle=ge,exports.IconCart=he,exports.IconClockAfternoon=ve,exports.IconClose=xe,exports.IconMapPin=be,exports.IconMinus=Pe,exports.IconMute=Oe,exports.IconNoGluten=me,exports.IconPause=Ne,exports.IconPersonSimpleWalk=ye,exports.IconPlay=Ee,exports.IconPlus=Ce,exports.IconSearch=fe,exports.IconSparkle=we,exports.IconSpicy=de,exports.IconStar=se,exports.IconStarBorder=ue,exports.IconTrash=ce,exports.IconUnmute=ke,exports.IconVegan=pe,exports.IconWarning=je,exports.IngredientsSelector=Se,exports.Input=Fe,exports.Media=_e,exports.ProductConstructor=function(t){var n=t.name,r=t.media,o=t.currency,a=t.price,i=t.oldPrice,c=t.description,u=t.totalPrice,p=t.allowComments,d=t.options,m=t.optionsHalf,f=t.max,h=t.quantity,g=t.ingredients,v=t.nameOnBox,x=t.comments,b=t.isLoading,y=t.isHalf,w=t.summaryOpen,E=t.onChangeIngredients,N=t.onChangeOption,O=t.onChangeOptionHalf,k=t.onChangeNameOnBox,C=t.onChangeComment,P=t.onAdd,j=t.onRemove,B=t.onAddToCart,S=t.onChangeIsHalf,H=e.useState(null),T=H[0],L=H[1],I=e.useState([]),F=I[0],R=I[1],A=e.useState(0),M=A[0],q=A[1],z=e.useState(!0),_=z[0],Z=z[1];e.useEffect((function(){var e=s(s([],d,!0),m,!0),t=function(e,t,n){var r=e.filter((function(e){return e.enabled})),o=t.filter((function(e){return e.enabled}));if(o.length){var a={name:"Toppings",enabled:!0,max:1,min:1,id:$e,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:exports.HALF_OPTION.none,allowSuboptionQuantity:!1,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:Xe,quantity:Number(n)}]};r.push(a)}return[].concat(r).concat(o)}(d.filter((function(t){return rt(t,e)})),m.filter((function(t){return rt(t,e)})),y);if(R(t),g.length&&L(function(e){return{id:Ye,min:0,respectTo:null,half:exports.HALF_OPTION.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!1,allowSuboptionQuantity:!1,max:e.length,name:"Ingredients",suboptions:e.map((function(e){var t;return l(l({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(g)),_&&w){var n=0;t.length&&(n+=t.length),g.length&&(n+=1),p&&(n+=1),q(n)}Z(!1)}),[g,d,m,y]);var D=function(){var e=W()[M];return!!(null==e?void 0:e.id)&&function(e){var t=e.suboptions.reduce((function(e,t){var n;return(null!==(n=t.quantity)&&void 0!==n?n:0)+e}),0);return 1===e.max&&1===e.min&&1!==t?"Select one of options: "+e.name:e.min>t?"Select at least "+e.min+" for "+e.name:e.max<t&&e.min!==e.max?"Maximum avaliable to select is "+e.max+" for "+e.name:void 0}(e)},V=function(t){var n=1===t.max&&1===t.min,r=t.max>1&&t.allowSuboptionQuantity,a=function(e,n){!function(e){return e===$e}(t.id)?t.withHalfOption?O(t.id,e,t.half,n):N(t.id,e,n):S(function(e){return e===Xe}(e))};return n?e.createElement(Ue,{key:t.id,currency:o,ingredients:t.suboptions,onSelect:a}):r?e.createElement(We,{key:t.id,currency:o,suboptions:t.suboptions,onChangeQuantity:a,limitByMax:t.limitSuboptionsByMax}):e.createElement(ot,{key:t.id,currency:o,suboptions:t.suboptions,onSelect:a})},W=function(){var t=[];return T&&t.push({name:"Ingredients",component:e.createElement(Se,{ingredients:T.suboptions,onSelect:E})}),t.push.apply(t,F.filter((function(e){return rt(e,F)})).map((function(e){return l(l({},e),{name:(t=e,t.name+(t.half===exports.HALF_OPTION.right?" right":"")+(t.half===exports.HALF_OPTION.left?" left":"")),component:V(e)});var t}))),p&&t.push({name:"Comments",component:e.createElement(Qe,{name:v,comment:x,onNameChange:k,onCommentChange:C})}),t.push({name:"Summary",component:e.createElement(Je,{summary:et(T,F.filter((function(e){return!e.withHalfOption})).filter((function(e){return e.id!=$e})),F.filter((function(e){return e.withHalfOption})).filter((function(e){return e.id!=$e})),p?"".concat(x||"-"," | ").concat(v||"-"):null),onClickChange:function(e){return q(e)}})}),t};return e.createElement("div",{className:"productConstructor"},e.createElement("div",{className:"content"},!!r&&e.createElement(_e,l({},r)),e.createElement("div",{className:"headProduct"},e.createElement("div",{className:"name"},n),e.createElement("div",{className:"priceControl"},!!i&&e.createElement("div",{className:"oldPrice"},Ae(o,i)),!!a&&e.createElement("div",{className:"price"},Ae(o,a)))),e.createElement("div",{className:"description"},c)),D()&&e.createElement(Ge,{message:D().toString()}),F.length&&e.createElement(Ve,{steps:W(),currentStep:M}),e.createElement(De,{isLoading:b,isSummary:M===W().length-1,isDisableNext:!!D(),isDisablePrev:0===M,currency:o,onPrev:function(){return q(M-1)},onNext:function(){return q(M+1)},onAddToCart:B,amount:u,count:h,onRemove:j,onAdd:P,isAddDisable:!!f&&h===f,isRemoveDisable:0===h}))},exports.ProductPreview=lt,exports.ProductPreviewList=function(t){var n=t.categories,r=t.onClickProduct;return e.createElement("div",{className:"productPreviewList"},n.map((function(t){return e.createElement("div",{key:t.name,className:"category"},e.createElement("div",{id:t.name,className:"categoryName"},t.name),t.products.map((function(n){return e.createElement(lt,l({key:n.id},n,{onClick:function(e){return r(t.id,e)}}))})))})))},exports.ProductTags=it,exports.RestaurantHeader=function(t){var n=t.name,r=t.isFavorite,o=t.isNew,a=t.kosher,i=t.score,l=t.cartAmount,c=t.alternativeView,s=t.currency,u=t.searchValue,p=t.onSearch,d=t.onCartClick;return e.createElement("div",{className:"restaurantHeader"},e.createElement("div",{className:"restaurantHeaderTop"},e.createElement("div",{className:"topLeft"},e.createElement("div",{className:"restaurantHeaderName"},n,r?e.createElement(se,null):e.createElement(ue,null)),(!!l||c)&&e.createElement(ct,{isNew:o,kosher:a,score:i})),e.createElement("div",{className:"topRight"},!!l&&!c&&e.createElement(st,{onClick:d,amount:l,currency:s}))),e.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&e.createElement(ct,{isNew:o,kosher:a,score:i}),e.createElement("div",{className:"benefits"},e.createElement(ut,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&e.createElement("div",{className:"bottomRight"},e.createElement(Fe,{className:"input",placeholder:"Search in menu...",icon:e.createElement(fe,null),value:u,onChange:p}),e.createElement(st,{onClick:d,amount:l,currency:s}))))},exports.Stepper=Ve,exports.SuboptionMultiSelector=We,exports.SuboptionRadioSelector=Ue,exports.TranslationUIProvider=pt,exports.Warning=Ge,exports.checkRespectTo=rt,exports.convertToServerModelOptions=function(e){return e.map((function(e){return{id:e.id,name:e.name,suboptions:e.suboptions.filter((function(e){return!!e.quantity})).map((function(t){return{id:t.id,name:t.name,price:t.price,quantity:t.quantity,half_option:e.half}}))}})).filter((function(e){return!!e.suboptions.length}))},exports.mergeProduct=function(e,t,n){var r={comments:e.product.comment,nameOnBox:e.product.name_on_box,finalPrice:e.full_price,quantity:e.product.quantity,ingredients:[],options:[],optionsHalf:[],isHalf:!1};return r.options=t.filter((function(e){return!e.withHalfOption})).map((function(t){var n=e.product.options.find((function(e){return e.id===t.id}));return l(l({},t),{suboptions:t.suboptions.map((function(e){var t=null==n?void 0:n.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{quantity:t?t.quantity:0})}))})})),r.optionsHalf=t.filter((function(e){return e.withHalfOption})).flatMap((function(t){var n=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.none}))})),o=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.left}))})),a=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.right}))}));return n?l(l({},t),{half:exports.HALF_OPTION.none,suboptions:t.suboptions.map((function(e){var t=n.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{half:exports.HALF_OPTION.none,quantity:t?t.quantity:0})}))}):r.isHalf||o&&a?(r.isHalf=!0,[l(l({},t),{half:exports.HALF_OPTION.left,suboptions:t.suboptions.map((function(e){var t=o.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{half:exports.HALF_OPTION.left,quantity:t?t.quantity:0})}))}),l(l({},t),{half:exports.HALF_OPTION.right,suboptions:t.suboptions.map((function(e){var t=a.suboptions.find((function(t){return t.id===e.id}));return l(l({},e),{half:exports.HALF_OPTION.right,quantity:t?t.quantity:0})}))})]):[t]})),e.product.ingredients.length&&n.forEach((function(t){var n=e.product.ingredients.find((function(e){return e===t.id}));r.ingredients.push(l(l({},t),{quantity:n?0:1}))})),r},exports.prepareHalfOptions=function(e,t){var n=[],r=e.filter((function(e){return e.half===exports.HALF_OPTION.none||e.half===exports.HALF_OPTION.left}));return t?r.forEach((function(e){n.push(l(l({},e),{half:exports.HALF_OPTION.left})),n.push(l(l({},e),{half:exports.HALF_OPTION.right}))})):r.forEach((function(e){n.push(l(l({},e),{half:exports.HALF_OPTION.none}))})),n};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- import*as e from"react";import t,{useState as n,useRef as r,useEffect as i,createContext as a}from"react";import o from"classnames";import{Image as l,Transformation as c}from"cloudinary-react";import{OverflowList as s}from"react-overflow-list";function u(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}u(":root{--border-radius:5px;--main-color:#007aff;--secondary-color:#cee6ff;--warning:#fe7171}*{box-sizing:border-box}html{font-family:sans-serif}.lineThrough{text-decoration:line-through}.icon{cursor:pointer}");u(".counterButton{align-items:center;border:1px solid #ccc;border-radius:var(--border-radius,5px);display:grid;grid-template-columns:1fr 1fr 1fr;height:45px;justify-items:center;text-align:center}.counterButton .disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}");var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)};function m(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var p;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}u(".iconsPreview{display:grid;gap:20px;grid-template-columns:repeat(6,1fr);justify-items:center}.iconsPreview .previewIcon{align-items:center;display:flex;flex-direction:column;font-size:14px;justify-content:center}.iconsPreview .previewIcon span{display:inline-block;margin:0 0 5px}.fillByFill{fill:#000}.fillByStroke{stroke:#000}");var h;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}var v;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}var b;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}var w;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}var k;function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}var C;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}var j;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}var B,S,H;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}var T,M;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(this,arguments)}var q;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(this,arguments)}var F,A;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(this,arguments)}var _;function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}var D,V;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}var U;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}var G;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}var J;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}var $;function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}var ee;function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(this,arguments)}var ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}var ie,ae;function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}var le=20,ce=25,se=30,ue=function(e,n){return function(r){var i=function(e){var t=e.className,n=e.props,r={};return n.color&&t.includes("Fill")&&(r.fill=n.color),n.color&&t.includes("Stroke")&&(r.stroke=n.color),r}({className:n,props:r}),a=function(e){return"small"===e?le:"big"===e?se:e||ce}(r.size);return t.createElement(e,d({width:a,height:a},r,{style:i,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},de=ue((function(t){return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},t),p||(p=e.createElement("path",{d:"M28 6a4 4 0 0 0-4 4v2h-.4L10 14v3h44v-3l-13.6-2H40v-2a4 4 0 0 0-4-4h-8zm0 4h8v2h-8v-2zm-16 9 2.701 33.322A4.002 4.002 0 0 0 18.69 56h26.623a3.999 3.999 0 0 0 3.987-3.676L51.924 20 12 19zm8 7a2 2 0 0 1 2 2v23h-3l-1-23a2 2 0 0 1 2-2zm12 0a3 3 0 0 1 3 3v22h-6V29a3 3 0 0 1 3-3zm12 0a2 2 0 0 1 2 2l-1 23h-3V28a2 2 0 0 1 2-2z"})))}),"fillByFill"),me=ue((function(t){return e.createElement("svg",g({width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),h||(h=e.createElement("path",{d:"m13.547 5.247-4.196-.639L7.474.625a.52.52 0 0 0-.949 0L4.65 4.608l-4.196.639a.52.52 0 0 0-.303.16.569.569 0 0 0 .01.785l3.037 3.1-.718 4.378a.577.577 0 0 0 .031.302.55.55 0 0 0 .18.24.514.514 0 0 0 .556.04L7 12.187l3.754 2.067a.504.504 0 0 0 .335.055.551.551 0 0 0 .432-.638l-.717-4.378 3.036-3.1a.563.563 0 0 0 .154-.317.549.549 0 0 0-.447-.628Z"})))}),"fillByFill"),pe=ue((function(t){return e.createElement("svg",x({width:"1em",height:"1em",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#016A2B",strokeWidth:2},t),v||(v=e.createElement("path",{d:"m30.164 12.064-9.035-1.369L17.09 2.16a1.158 1.158 0 0 0-.516-.538c-.562-.289-1.245-.048-1.526.538l-4.039 8.535-9.035 1.369a1.12 1.12 0 0 0-.65.345c-.212.226-.328.53-.324.845.004.315.128.615.344.835l6.537 6.643-1.544 9.38c-.036.22-.013.444.067.649.08.205.213.383.385.513a1.099 1.099 0 0 0 1.199.09l8.081-4.43 8.081 4.429c.22.122.477.163.723.119.619-.112 1.035-.724.928-1.37l-1.544-9.38 6.537-6.643c.178-.182.295-.42.33-.679.097-.649-.337-1.25-.96-1.346Z"})))}),"fillByStroke"),fe=ue((function(t){return e.createElement("svg",y({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},t),b||(b=e.createElement("path",{d:"M11.688 1.167c.711-.08 1.385.438 1.385 1.153 0 6.778-3.783 9.856-8.448 9.856-.724 0-1.313-.619-1.153-1.325.317-1.39 1.014-2.424 2.347-3.604.847-.75.776-1.182.358-.934-2.875 1.711-4.303 4.023-4.366 7.715a.263.263 0 0 1-.263.26h-.44a.683.683 0 0 1-.692-.706 12.9 12.9 0 0 1 .152-1.505c.045-.276.049-.557.01-.834-.118-.859-.177-1.956-.177-3.29A7.04 7.04 0 0 1 7.44.912c1.156 0 2.312.474 4.247.254Z"})))}),"fillByFill"),he=ue((function(t){return e.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},t),w||(w=e.createElement("path",{d:"M49.1 11c-2.8 5-2.5 9.4.7 9.8 2.8.4 2.9 3.2.2 3.2-1.2 0-3.5-.7-5.1-1.6-3.3-1.7-4.5-1.4-3.6 1.1.4.8 2.6 2 5.1 2.7 4.4 1.2 5.3 2.8 1.6 2.8-1.2 0-2.9 1.9-4.9 5.4-3.8 6.8-9.2 12.1-15.6 15.3-2.7 1.4-5.3 3-5.6 3.5-.3.5-3 .8-6 .6l-5.4-.3 3.1-1.7C21.4 47.6 30.7 35.9 35 25c2.2-5.4 3.3-6.8 6.3-8.3 4.1-2.1 4-4.2-.2-3.2-4 1-6.7 4.1-9 10.4C28.6 33.7 21 43 10.5 50.6c-2.5 1.9-2.8 2.5-1.9 4 1 1.6 2.4 1.9 10.2 1.8 7.6 0 9.8-.4 14.5-2.8 7.2-3.5 12.9-10 17.8-20 4.4-9.1 4.8-12.2 1.8-16.1-2.1-2.5-2.1-2.9-.6-6 1.4-3 1.4-4.5-.3-4.5-.3 0-1.6 1.8-2.9 4z"})))}),"fillByFill"),ge=ue((function(t){return e.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},t),k||(k=e.createElement("path",{d:"M5.4 6.1c-.4.7 10 11.8 25.2 27 20.5 20.5 26.1 25.6 27.2 24.7 1.1-.9-.1-2.6-6.2-8.7-6.6-6.7-7.4-7.8-6.4-9.6.6-1.1 2-2.6 3-3.3 2.5-1.8 4.8-6.5 4.8-10 0-1.6.7-4.6 1.5-6.5.8-2 1.5-5.5 1.5-7.7V8h-4c-2.2 0-5.7.7-7.7 1.5-1.9.8-4.9 1.5-6.5 1.5-3.5 0-8.2 2.3-10 4.8-.7 1.1-2.2 2.4-3.4 3-1.8 1-2.9.3-9.5-6.4C10.9 8.3 7.2 5 6.8 5c-.4 0-1 .5-1.4 1.1zM52 13.4c0 2.8-2.3 7.7-4 8.6-1 .6-3 1-4.4 1-2.1 0-2.6-.5-2.6-2.4 0-3.9 1.1-5.7 4.4-7.2 4-1.7 6.6-1.7 6.6 0zm-14 3.3c0 3.6-2.1 9.1-4.1 10.9-2 1.8-2.1 1.8-3.5-.1-2.2-3-1.7-6.4 1.5-9.6 3.3-3.3 6.1-3.8 6.1-1.2zm10.7 11c.7 1.9-5.2 7.3-7.9 7.3-1.3 0-3.3-.6-4.4-1.4-1.9-1.5-1.9-1.5.2-3.6 3.4-3.4 11.3-4.9 12.1-2.3zM13.8 29c-7.6 6.2-7.7 14.4-.5 21.7 7.3 7.2 15.5 7.1 21.7-.5 2.8-3.4 2.8-3.7 1.3-5.4-.9-1-3-1.8-4.8-1.8-4.1 0-6.3-2.3-4.5-4.5.7-.9 1-1.8.7-2.2-.4-.3-1.3 0-2.2.7-2.2 1.8-4.5-.4-4.5-4.5 0-1.8-.8-3.9-1.8-4.8-1.7-1.5-2-1.5-5.4 1.3zm4.8 5.3c1.8 7.2-1.9 14.6-5.2 10.3-2-2.8-1.7-6.9.7-10 2.5-3.2 3.7-3.3 4.5-.3zM31 46c1.3.9 1.1 1.4-1.3 3.5-5.3 4.7-15.3 1.5-10.5-3.3 1.5-1.5 9.7-1.6 11.8-.2z"})))}),"fillByFill"),ve=ue((function(t){return e.createElement("svg",O({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},t),C||(C=e.createElement("path",{d:"m20.998 20.038-5.236-5.445a8.854 8.854 0 0 0 2.084-5.71C17.846 3.984 13.86 0 8.963 0S.081 3.985.081 8.882c0 4.898 3.984 8.883 8.882 8.883 1.839 0 3.591-.555 5.09-1.607l5.275 5.487c.22.229.517.355.835.355a1.16 1.16 0 0 0 .835-1.962ZM8.963 2.319a6.573 6.573 0 0 1 6.566 6.564 6.573 6.573 0 0 1-6.566 6.566 6.573 6.573 0 0 1-6.565-6.566 6.573 6.573 0 0 1 6.565-6.565Z"})))}),"fillByFill"),xe=ue((function(t){return e.createElement("svg",P({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},t),j||(j=e.createElement("path",{d:"M6.574 8.57c0-.73-.002-1.41 0-2.09C6.587 2.742 9.586-.137 13.32.005c3.286.125 6.037 2.919 6.104 6.21.016.767.002 1.537.002 2.352h.376c1.618.001 3.235 0 4.853.002.825.002 1.276.519 1.185 1.332-.357 3.18-.706 6.36-1.063 9.54-.26 2.316-.497 4.635-.796 6.946-.26 2.007-2.022 3.556-4.053 3.596-1.584.031-3.169.01-4.753.01H6.47c-2.536 0-4.264-1.59-4.53-4.108-.329-3.127-.694-6.25-1.042-9.375-.247-2.215-.496-4.432-.74-6.648C.073 9.086.537 8.57 1.32 8.57c1.618-.003 3.236 0 4.854 0h.4Zm12.87 4.262c.114.029.213.047.307.078.492.16.803.635.745 1.136-.057.496-.476.928-.979.943-.768.023-1.54.02-2.309 0-.48-.012-.884-.397-.977-.867-.091-.465.16-.961.6-1.16.139-.062.291-.093.43-.137V10.73H8.734v2.1c.116.03.215.049.31.08.486.16.797.642.738 1.14-.06.5-.475.924-.983.938-.769.023-1.539.024-2.308.002-.506-.015-.924-.444-.982-.94a1.065 1.065 0 0 1 .739-1.138c.102-.034.208-.057.3-.08v-2.103H2.421c.034.327.064.634.098.941.258 2.304.517 4.609.773 6.914.273 2.46.535 4.92.818 7.38.126 1.095 1.019 1.882 2.126 1.884 4.507.008 9.015.008 13.522.002 1.107-.001 2-.78 2.132-1.88.222-1.848.413-3.7.62-5.55l.773-6.948.3-2.74h-4.138v2.1ZM8.662 8.545h8.625c0-.736.006-1.45-.001-2.162-.023-2.19-1.672-3.981-3.885-4.224-2.069-.227-4.12 1.19-4.537 3.273-.2 1.002-.142 2.057-.202 3.113Z"})))}),"fillByFill"),be=ue((function(t){return e.createElement("svg",R({width:"1em",height:"1em",stroke:"#000",strokeWidth:1.3,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),B||(B=e.createElement("path",{d:"M19.5 7.5A1.5 1.5 0 0 0 18 6h-3.75l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),S||(S=e.createElement("path",{d:"M19.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 6h2.625l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),H||(H=e.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ye=ue((function(t){return e.createElement("svg",L({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),T||(T=e.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),M||(M=e.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),we=ue((function(t){return e.createElement("svg",z({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},t),q||(q=e.createElement("path",{d:"m17.857 15.825-6.495-6.494 6.495-6.495A1.531 1.531 0 0 0 15.692.672L9.197 7.166 2.703.672A1.53 1.53 0 0 0 .538 2.836l6.494 6.495-6.494 6.495a1.53 1.53 0 0 0 2.165 2.164l6.494-6.494 6.495 6.494a1.531 1.531 0 0 0 2.165-2.164Z"})))}),"fillByFill"),Ee=ue((function(t){return e.createElement("svg",Z({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000",strokeWidth:1.3},t),F||(F=e.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),A||(A=e.createElement("path",{d:"M19.5 9.75c0 6.75-7.5 12-7.5 12s-7.5-5.25-7.5-12a7.5 7.5 0 0 1 15 0Z",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ke=ue((function(t){return e.createElement("svg",I({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),_||(_=e.createElement("path",{d:"M14.25 7.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM4.5 12.5s5.25-5.25 8.25-2.475c1.678 1.547 3 3.975 6.75 3.975M12.234 9.632 6.75 22.25M14.25 22.25V17l-3.984-2.84",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Ne=ue((function(t){return e.createElement("svg",W({width:"1em",height:"1em",viewBox:"0 0 16 16",stroke:"#000",strokeWidth:1.3,xmlns:"http://www.w3.org/2000/svg"},t),D||(D=e.createElement("path",{d:"m8.669 10.969-1.2 3.256a.5.5 0 0 1-.938 0l-1.2-3.256a.506.506 0 0 0-.3-.3l-3.256-1.2a.5.5 0 0 1 0-.938l3.256-1.2a.506.506 0 0 0 .3-.3l1.2-3.256a.5.5 0 0 1 .938 0l1.2 3.256a.506.506 0 0 0 .3.3l3.256 1.2a.5.5 0 0 1 0 .938l-3.256 1.2a.506.506 0 0 0-.3.3Z"})),V||(V=e.createElement("path",{d:"M11 1v3M12.5 2.5h-3M14 4.5v2M15 5.5h-2",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke fillByFill"),Ce=ue((function(t){return e.createElement("svg",Q({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),U||(U=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.528 5.118a1 1 0 0 1 1.027.05l9 6a1 1 0 0 1 0 1.664l-9 6A1 1 0 0 1 8 18V6a1 1 0 0 1 .528-.882ZM10 7.868v8.263L16.197 12 10 7.869Z"})))}),"fillByFill"),Oe=ue((function(t){return e.createElement("svg",K({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),G||(G=e.createElement("path",{d:"M5.92 24.096q0 .832.576 1.408t1.44.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576H7.936q-.832 0-1.44.576t-.576 1.44v16.16zm12.096 0q0 .832.608 1.408t1.408.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576h-4.032q-.832 0-1.408.576t-.608 1.44v16.16z"})))}),"fillByFill"),je=ue((function(t){return e.createElement("svg",Y({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},t),J||(J=e.createElement("path",{d:"m89.752 59.582 251.583 251.583 5.433 5.432 49.472 49.474v-.001l30.862 30.86h-.001l25.317 25.318-30.17 30.17-187.832-187.833v164.103l-110.729-85.459h-81.02V172.563h80.895l10.538-8.293-74.518-74.518 30.17-30.17Zm314.213 28.014c67.74 75.64 82.499 181.38 44.28 270.137l-32.95-32.95c23.87-71.004 8.998-151.973-44.615-210.559l33.285-26.628Zm-84.385 67.51c28.626 31.924 41.555 72.769 38.788 112.752l-49.237-49.236c-4.823-12.915-12.148-25.121-21.976-35.884l-.9-.974 33.325-26.659Zm-85.163-69.773-.001 58.574-32.78-32.78 32.78-25.794Z",fillRule:"evenodd"})))}),"fillByFill"),Pe=ue((function(t){return e.createElement("svg",X({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},t),$||($=e.createElement("path",{d:"m403.966 426.944-33.285-26.629c74.193-81.076 74.193-205.016-.001-286.091l33.285-26.628c86.612 96.713 86.61 242.636.001 339.348ZM319.58 155.105l-33.325 26.66c39.796 42.567 39.795 108.443.002 151.01l33.324 26.66c52.204-58.222 52.204-146.11-.001-204.33Zm-85.163-69.772-110.855 87.23H42.667v170.666h81.02l110.73 85.459V85.333Z",fillRule:"evenodd"})))}),"fillByFill"),Be=ue((function(t){return e.createElement("svg",re({width:"1em",height:"1em",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg"},t),ne||(ne=e.createElement("path",{d:"M12.598 20.946v-8.25h8.25a1.375 1.375 0 0 0 0-2.75h-8.25v-8.25a1.375 1.375 0 0 0-2.75 0v8.25h-8.25a1.375 1.375 0 0 0 0 2.75h8.25v8.25a1.375 1.375 0 1 0 2.75 0Z"})))}),"fillByFill"),Se=ue((function(t){return e.createElement("svg",te({width:"1em",height:"1em",viewBox:"0 0 23 4",xmlns:"http://www.w3.org/2000/svg"},t),ee||(ee=e.createElement("path",{d:"M20.848 3.696H1.598a1.375 1.375 0 0 1 0-2.75h19.25a1.375 1.375 0 0 1 0 2.75Z"})))}),"fillByFill"),He=ue((function(t){return e.createElement("svg",oe({width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"#000",xmlns:"http://www.w3.org/2000/svg"},t),ie||(ie=e.createElement("path",{d:"M12.271 22.34c5.523 0 10-4.476 10-10 0-5.522-4.477-10-10-10-5.522 0-10 4.478-10 10 0 5.524 4.478 10 10 10Z",strokeWidth:2})),ae||(ae=e.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),Re=function(e){var n=e.count,r=e.isRemoveDisable,i=e.isAddDisable,a=e.onAdd,l=e.onRemove;return t.createElement("div",{className:"counterButton"},t.createElement(Se,{color:"var(--main-color, #007aff)",onClick:l,className:o("control",{disable:r})}),t.createElement("div",{className:"control count"},n),t.createElement(Be,{color:"var(--main-color, #007aff)",onClick:a,className:o("control",{disable:i})}))};u(".ingredients{align-items:center;display:flex;flex-direction:column}.ingredients .ingredient{border:1px solid #ccc;border-radius:100px;color:var(--main-color,#007aff);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.ingredients .ingredient:last-child{margin:0}.ingredients .ingredient:hover{opacity:.9}.ingredients .ingredient.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var Te=function(e){var n=e.ingredients,r=e.onSelect;return t.createElement("div",{className:"ingredients"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,function(){return r(n)}),className:o("ingredient",{selected:!!e.quantity})},e.name);var n})))};u(".labelInput{align-items:center;background:#f8f8f8;border-radius:var(--border-radius,5px);display:inline-flex;height:44px;overflow:hidden;padding:0 13px}.labelInput .icon{height:25px;margin:0 10px 0 0;width:25px}.labelInput input{background:none;border:none;height:100%;outline:none;width:100%}.labelInput input::-webkit-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-moz-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-ms-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::placeholder{color:#747474;font-size:14px;font-weight:400}.rtl .labelInput .icon{margin:0 0 0 10px}");var Me,Le,qe,ze,Fe=function(e){var n=e.icon,r=e.debounce,i=e.onChange,a=m(e,["icon","debounce","onChange"]),o=t.useState(null),l=o[0],c=o[1];return t.useEffect((function(){var e=setTimeout((function(){i&&i(l)}),r);return function(){return clearTimeout(e)}}),[l]),t.createElement("label",{className:"labelInput"},n&&n,t.createElement("input",d({},a,{onChange:function(e){c(e)}})))};!function(e){e[e.fill=0]="fill",e[e.pad=1]="pad",e[e.fit=2]="fit",e[e.mfit=3]="mfit",e[e.scale=4]="scale",e[e.limit=5]="limit",e[e.lpad=6]="lpad",e[e.mpad=7]="mpad",e[e.crop=8]="crop",e[e.fill_pad=9]="fill_pad",e[e.thumb=10]="thumb"}(Me||(Me={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(Le||(Le={})),function(e){e[e.best=1]="best",e[e.good=2]="good",e[e.eco=3]="eco",e[e.low=4]="low",e[e.custom=5]="custom"}(qe||(qe={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(ze||(ze={}));u(".mediaWrapper{aspect-ratio:5/3;border-radius:var(--border-radius,5px);overflow:hidden;width:100%}.mediaWrapper img,.mediaWrapper video{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.videoControl{height:100%;position:relative;width:100%}.videoControl .videoControls{left:10px;position:absolute;top:10px;z-index:1}.videoControl .videoControls .control{background:#fff;border-radius:100px;cursor:pointer;margin:0 5px 0 0;padding:3px}");var Ae=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},Ze=function(e,t){var n="";return e&&(n=ze[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n},_e=function(e){var n=e.src,r=e.alt,i=e.width,a=e.height,o=e.quality,s=e.gravity,u=e.crop,d=e.id;return t.createElement(l,{id:d,cloudName:n[0],secure:"true",publicId:n.splice(3).join("/"),alt:r},t.createElement(c,{width:i,height:a,quality:o,gravity:s,crop:u}),t.createElement(c,{fetchFormat:"auto"}))},Ie=function(e){var i=e.autoPlay,a=e.onStart,o=e.id,l=e.src,c=e.onEnd,s=e.controls,u=n({playing:!1,muted:!1}),m=u[0],p=u[1],f=r(),h=function(){f.current.paused?(f.current.play(),p((function(e){return d(d({},e),{playing:!0})}))):(f.current.pause(),p((function(e){return d(d({},e),{playing:!1})})))},g=function(){f.current.muted=!f.current.muted,p((function(e){return d(d({},e),{muted:f.current.muted})}))};return t.createElement("div",{className:"videoControl"},s&&t.createElement("div",{className:"videoControls",onClick:function(e){return e.stopPropagation()}},!m.playing&&t.createElement(Ce,{color:"var(--main-color)",className:"control",onClick:h}),m.playing&&t.createElement(Oe,{color:"var(--main-color)",className:"control",onClick:h}),m.muted&&t.createElement(je,{color:"var(--main-color)",className:"control",onClick:g}),!m.muted&&t.createElement(Pe,{color:"var(--main-color)",className:"control",onClick:g})),t.createElement(De,{autoPlay:i,src:l,onPlay:function(){a&&a(),p((function(e){return d(d({},e),{playing:!0})}))},onEnded:function(){c&&c()},videoRef:f,id:o}))},De=function(e){var n=e.videoRef,r=e.src,i=e.id,a=e.onPlay,o=e.onEnded,l=e.autoPlay;return t.createElement("video",{ref:n,src:r,id:i,onPlay:function(){a&&a()},autoPlay:l,onEnded:function(){o&&o()}})},Ve=function(e){var a=e.src,o=e.settings,l=e.alt,c=e.id,s=m(e,["src","settings","alt","id"]),u=r(null),p=n({width:0,height:0}),f=p[0],h=p[1],g=a.includes("/image/"),v=a.includes("/video/"),x=a.replace("https://res.cloudinary.com/","").split("/");i((function(){f.width!==u.current.offsetWidth&&f.height!==u.current.offsetHeight&&h({width:u.current.offsetWidth||0,height:u.current.offsetHeight||0})}));return t.createElement("div",{ref:u,className:"mediaWrapper"},g&&t.createElement(_e,d({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:Ae(Le,(null==o?void 0:o.gravity_mode)||0),crop:Ae(Me,(null==o?void 0:o.crop_mode)||0),src:x,alt:l,id:c})),v&&t.createElement(Ie,d({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:Ae(Le,(null==o?void 0:o.gravity_mode)||0),crop:Ae(Me,(null==o?void 0:o.crop_mode)||0),id:c,src:a})))};u(".productConstructor .content{margin:0 0 20px}.productConstructor .headProduct{align-items:center;display:flex;justify-content:space-between;padding:20px 20px 10px}.productConstructor .headProduct .name{font-size:24px;font-weight:600}.productConstructor .headProduct .priceControl{align-items:center;display:flex;font-size:16px}.productConstructor .headProduct .priceControl .oldPrice{color:var(--warning,#fe7171);margin:0 5px}.productConstructor .headProduct .priceControl .price{color:var(--main-color,#007aff)}.productConstructor .description{color:#747474;font-size:16px;font-weight:400;padding:0 20px}.productConstructor .stepper{padding:0 20px}.productConstructor .stepper .productCommentSection,.productConstructor .stepper .productSummary{text-align:left}.productConstructor .footerControls{bottom:0;margin:20px 0 0;position:sticky}");u(".footerControls{align-items:center;background:#fff;border-top:1px solid #ccc;display:flex;justify-content:center;padding:20px}.footerControls.summary{display:grid;gap:10px;grid-template-columns:2fr 3fr}.footerControls.summary .addLabel{align-items:center;display:flex}.footerControls.summary .addLabel .icon{margin:0 5px}.footerControls.summary .button.major{align-items:center;display:flex;justify-content:space-around;margin:0;width:100%}.footerControls .button{align-items:center;border:1px solid #007aff;border-radius:var(--border-radius,5px);color:#007aff;cursor:pointer;display:flex;height:45px;justify-content:center;transition:all .3s;width:40%}.footerControls .button:hover{opacity:.9}.footerControls .button.major{background:var(--main-color,#007aff);color:#fff;margin:0 0 0 10px}.footerControls .button.disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width:600px){.footerControls .button,.footerControls .counterButton{font-size:14px;height:35px}.footerControls .button svg,.footerControls .counterButton svg{height:20px;width:20px}}");u('.lds-dual-ring{display:inline-block;height:30px;width:30px}.lds-dual-ring:after{-webkit-animation:lds-dual-ring 1.2s linear infinite;animation:lds-dual-ring 1.2s linear infinite;border-color:#fff transparent;border-radius:50%;border-style:solid;border-width:4px;content:" ";display:block;height:18px;margin:4px;width:18px}@-webkit-keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}');var We=function(){return t.createElement("div",{className:"lds-dual-ring"})},Ue=function(e){var n=e.isSummary,r=e.isLoading,i=e.isDisableNext,a=e.isDisablePrev,l=e.amount,c=e.currency,s=e.onPrev,u=e.onNext,d=e.count,m=e.isAddDisable,p=e.isRemoveDisable,f=e.onAdd,h=e.onRemove,g=e.onAddToCart;return t.createElement("div",{className:o("footerControls",{summary:n})},n?t.createElement(t.Fragment,null,t.createElement(Re,{count:d,isRemoveDisable:p||r,isAddDisable:m||r,onAdd:f,onRemove:h}),t.createElement("div",{onClick:g,className:o("button major",{disable:r})},r?t.createElement(We,null):t.createElement(t.Fragment,null,t.createElement("div",{className:"addLabel"},t.createElement(xe,{color:"#fff",size:"small"})," Add to Cart"),t.createElement("div",null,Ze(c,l))))):t.createElement(t.Fragment,null,t.createElement("div",{onClick:s,className:o("button",{disable:a||r})},"Back"),t.createElement("div",{onClick:u,className:o("button major",{disable:i||r})},r?t.createElement(We,null):t.createElement(t.Fragment,null,"Next ",Ze(c,l)))))};u(".stepper{text-align:center}.stepper .stepperHeader{font-size:20px;font-weight:600}.stepper .steps{align-items:center;display:flex;justify-content:center;margin:10px 0}.stepper .steps .step{border:1px solid #ccc;border-radius:100px;height:14px;transition:all .3s;width:14px}.stepper .steps .step.active{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff)}.stepper .steps .line{background:#ccc;height:1px;width:28px}");var Qe=function(e){var n=e.steps,r=e.currentStep,i=n[r].component,a=n[r].name;return t.createElement("div",{className:"stepper"},t.createElement("div",{className:"stepperHeader"},a),t.createElement("div",{className:"steps"},Array(n.length).fill(0).map((function(e,i){return t.createElement(t.Fragment,{key:i},t.createElement("div",{className:o("step",{active:i===r})}),i!==n.length-1&&t.createElement("div",{className:"line"}))}))),i)};u(".suboptionMultiSelector .suboption{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.suboptionMultiSelector .suboption .suboptionName.selected{color:#007aff}.suboptionMultiSelector .suboption .counterSection{align-items:center;display:flex}.suboptionMultiSelector .suboption .counterButton{height:35px;margin:0 0 0 10px;width:150px}.suboptionMultiSelector .suboption .counterButton svg{height:15px;width:15px}");var Ge=function(e){var n=e.suboptions,r=e.onChangeQuantity,i=e.currency,a=e.limitByMax,l=function(e,t){return function(){return r(e,t)}},c=function(e){return!!a&&e.quantity===e.max};return t.createElement("div",{className:"suboptionMultiSelector"},n.map((function(e){return t.createElement("div",{className:"suboption",key:e.id},t.createElement("span",{className:o("suboptionName",{selected:!!e.quantity})},e.name),t.createElement("div",{className:"counterSection"},!!e.price&&t.createElement("span",{className:"price"},"+",Ze(i,e.price)),t.createElement(Re,{count:e.quantity||0,isAddDisable:c(e),isRemoveDisable:!e.quantity,onAdd:l(e.id,(e.quantity||0)+1),onRemove:l(e.id,(e.quantity||0)-1)})))})))};u('.extrasRadio{align-items:center;display:flex;flex-direction:column}.extrasRadio .extra{border:1px solid #ccc;border-radius:100px;cursor:pointer;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:7px 10px;transition:all .3s}.extrasRadio .extra,.extrasRadio .extra .extraName{align-items:center;display:flex}.extrasRadio .extra .extraName:before{border:1px solid #ccc;border-radius:100px;box-sizing:border-box;content:"";display:block;flex:1 0 24px;height:24px;margin:0 10px 0 0;transition:all .1s;width:24px}.extrasRadio .extra:last-child{margin:0}.extrasRadio .extra:hover{opacity:.9}.extrasRadio .extra:hover .extraName:before{border:3px solid var(--main-color,#007aff)}.extrasRadio .extra.selected .extraName:before{border:7px solid var(--main-color,#007aff);box-sizing:border-box}');var Ke=function(e){var n=e.ingredients,r=e.onSelect,i=e.currency;return t.createElement("div",{className:"extrasRadio"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,a=e.quantity||1,function(){return r(n,a)}),className:o("extra",{selected:!!e.quantity})},t.createElement("span",{className:"extraName"},e.name),!!e.price&&t.createElement("span",{className:"extraPrice"},"+",Ze(i,e.price)));var n,a})))};u(".warning{align-items:center;background:#fff;border:2px solid var(--warning,#fe7171);border-left:none;border-right:none;color:var(--warning,#fe7171);display:flex;font-size:16px;font-weight:600;padding:10px 20px;position:sticky;top:0;z-index:1}.warning .icon{margin:0 10px 0 0}");var Je=function(e){var n=e.message;return t.createElement("div",{className:"warning"},t.createElement(He,{size:"small",color:"var(--warning, #fe7171)"})," ",n)};u(".productCommentSection .inputName{display:inline-block;margin:20px 0 10px}.productCommentSection .inputName:first-child{margin:0 0 10px}.productCommentSection .labelInput{width:100%}");var Ye=function(e){var n=e.name,r=e.comment,i=e.onCommentChange,a=e.onNameChange;return t.createElement("div",{className:"productCommentSection"},t.createElement("span",{className:"inputName"},"Add Name"),t.createElement(Fe,{onChange:function(e){var t;a(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add name",value:n}),t.createElement("span",{className:"inputName"},"Add Comment"),t.createElement(Fe,{onChange:function(e){var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add comment",value:r}))};u(".productSummary .line{color:#0e1328;display:grid;font-size:14px;grid-template-columns:1fr 1fr 100px;margin:0 0 7px}.productSummary .line:last-child{margin:0}.productSummary .line .button{align-items:center;background:var(--secondary-color,#cee6ff);border-radius:var(--border-radius,5px);color:var(--main-color,#007aff);cursor:pointer;display:flex;font-size:14px;height:30px;justify-content:center;transition:all .3s}.productSummary .line .button:hover{opacity:.9}.productSummary .line .value{color:#747474;white-space:break-spaces}");var $e,Xe=function(e){var n=e.summary,r=e.onClickChange;return t.createElement("div",{className:"productSummary"},n.map((function(e){return t.createElement("div",{className:"line",key:e.name+e.index},t.createElement("div",{className:"name"},e.name),t.createElement("div",{className:"value"},e.value),t.createElement("div",{onClick:function(){return r(e.index)},className:"button"},"Change"))})))},et="#INGREDIENTS",tt="#HALF_SELECTOR",nt="#HALF_SELECTOR_HALF";!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}($e||($e={}));var rt=function(e,t){var n=[],r=e.filter((function(e){return e.half===$e.none||e.half===$e.left}));return t?r.forEach((function(e){n.push(d(d({},e),{half:$e.left})),n.push(d(d({},e),{half:$e.right}))})):r.forEach((function(e){n.push(d(d({},e),{half:$e.none}))})),n},it=function(e,t,n,r){var i,a=[],o=0;if((null===(i=null==e?void 0:e.suboptions)||void 0===i?void 0:i.length)&&a.push({name:"Ingredients",value:ot(e.suboptions),index:o++}),t.forEach((function(e){a.push({name:e.name,value:at(e.suboptions),index:o++})})),n.length){var l=n.some((function(e){return e.half===$e.right}));a.push({name:"Toppings",value:l?"Half":"Full",index:o++})}return n.forEach((function(e){a.push({name:e.name,value:at(e.suboptions),index:o++})})),r&&a.push({name:"Comments",value:r,index:o++}),a},at=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},ot=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")},lt=function(e){return e.map((function(e){return{id:e.id,name:e.name,suboptions:e.suboptions.filter((function(e){return!!e.quantity})).map((function(t){return{id:t.id,name:t.name,price:t.price,quantity:t.quantity,half_option:e.half}}))}})).filter((function(e){return!!e.suboptions.length}))},ct=function(e,t){if(!e.respectTo)return!0;var n=t.flatMap((function(e){return e.suboptions})).find((function(t){return t.id===e.respectTo}));return!(!n||!n.quantity)},st=function(e,t,n){var r={comments:e.product.comment,nameOnBox:e.product.name_on_box,finalPrice:e.full_price,quantity:e.product.quantity,ingredients:[],options:[],optionsHalf:[],isHalf:!1};return r.options=t.filter((function(e){return!e.withHalfOption})).map((function(t){var n=e.product.options.find((function(e){return e.id===t.id}));return d(d({},t),{suboptions:t.suboptions.map((function(e){var t=null==n?void 0:n.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{quantity:t?t.quantity:0})}))})})),r.optionsHalf=t.filter((function(e){return e.withHalfOption})).flatMap((function(t){var n=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===$e.none}))})),i=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===$e.left}))})),a=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===$e.right}))}));return n?d(d({},t),{half:$e.none,suboptions:t.suboptions.map((function(e){var t=n.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{half:$e.none,quantity:t?t.quantity:0})}))}):r.isHalf||i&&a?(r.isHalf=!0,[d(d({},t),{half:$e.left,suboptions:t.suboptions.map((function(e){var t=i.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{half:$e.left,quantity:t?t.quantity:0})}))}),d(d({},t),{half:$e.right,suboptions:t.suboptions.map((function(e){var t=a.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{half:$e.right,quantity:t?t.quantity:0})}))})]):[t]})),e.product.ingredients.length&&n.forEach((function(t){var n=e.product.ingredients.find((function(e){return e===t.id}));r.ingredients.push(d(d({},t),{quantity:n?0:1}))})),r};u(".suboptionsCheckbox{align-items:center;display:flex;flex-direction:column}.suboptionsCheckbox .suboptionCheckbox{align-items:center;border:1px solid #ccc;border-radius:100px;cursor:pointer;display:flex;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.suboptionsCheckbox .suboptionCheckbox:last-child{margin:0}.suboptionsCheckbox .suboptionCheckbox:hover{opacity:.9}.suboptionsCheckbox .suboptionCheckbox.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var ut=function(e){var n=e.suboptions,r=e.onSelect,i=e.currency;return t.createElement("div",{className:"suboptionsCheckbox"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,a=e.quantity?0:1,function(){return r(n,a)}),className:o("suboptionCheckbox",{selected:!!e.quantity})},t.createElement("span",null,e.name),!!e.price&&Ze(i,e.price));var n,a})))},dt=function(e){var r=e.name,a=e.media,o=e.currency,l=e.price,c=e.oldPrice,s=e.description,u=e.totalPrice,m=e.allowComments,p=e.options,f=e.optionsHalf,h=e.max,g=e.quantity,v=e.ingredients,x=e.nameOnBox,b=e.comments,y=e.isLoading,w=e.isHalf,E=e.summaryOpen,k=e.onChangeIngredients,N=e.onChangeOption,C=e.onChangeOptionHalf,O=e.onChangeNameOnBox,j=e.onChangeComment,P=e.onAdd,B=e.onRemove,S=e.onAddToCart,H=e.onChangeIsHalf,R=n(null),T=R[0],M=R[1],L=n([]),q=L[0],z=L[1],F=n(0),A=F[0],Z=F[1],_=n(!0),I=_[0],D=_[1];i((function(){var e=function(e,t,n){var r=e.filter((function(e){return e.enabled})),i=t.filter((function(e){return e.enabled}));if(i.length){var a={name:"Toppings",enabled:!0,max:1,min:1,id:tt,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:$e.none,allowSuboptionQuantity:!1,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:nt,quantity:Number(n)}]};r.push(a)}return[].concat(r).concat(i)}(p,f,w);if(z(e),v.length&&M(function(e){return{id:et,min:0,respectTo:null,half:$e.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!1,allowSuboptionQuantity:!1,max:e.length,name:"Ingredients",suboptions:e.map((function(e){var t;return d(d({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(v)),I&&E){var t=0;e.length&&(t+=e.length),v.length&&(t+=1),m&&(t+=1),Z(t)}D(!1)}),[v,p,f,w]);var V=function(){var e=U()[A];return!!(null==e?void 0:e.id)&&function(e){var t=e.suboptions.reduce((function(e,t){var n;return(null!==(n=t.quantity)&&void 0!==n?n:0)+e}),0);return 1===e.max&&1===e.min&&1!==t?"Select one of options: "+e.name:e.min>t?"Select at least "+e.min+" for "+e.name:e.max<t&&e.min!==e.max?"Maximum avaliable to select is "+e.max+" for "+e.name:void 0}(e)},W=function(e){var n=1===e.max&&1===e.min,r=e.max>1&&e.allowSuboptionQuantity,i=function(t,n){!function(e){return e===tt}(e.id)?e.withHalfOption?C(e.id,t,e.half,n):N(e.id,t,n):H(function(e){return e===nt}(t))};return n?t.createElement(Ke,{key:e.id,currency:o,ingredients:e.suboptions,onSelect:i}):r?t.createElement(Ge,{key:e.id,currency:o,suboptions:e.suboptions,onChangeQuantity:i,limitByMax:e.limitSuboptionsByMax}):t.createElement(ut,{key:e.id,currency:o,suboptions:e.suboptions,onSelect:i})},U=function(){var e=[];return T&&e.push({name:"Ingredients",component:t.createElement(Te,{ingredients:T.suboptions,onSelect:k})}),e.push.apply(e,q.filter((function(e){return ct(e,q)})).map((function(e){return d(d({},e),{name:(t=e,t.name+(t.half===$e.right?" right":"")+(t.half===$e.left?" left":"")),component:W(e)});var t}))),m&&e.push({name:"Comments",component:t.createElement(Ye,{name:x,comment:b,onNameChange:O,onCommentChange:j})}),e.push({name:"Summary",component:t.createElement(Xe,{summary:it(T,q.filter((function(e){return!e.withHalfOption})).filter((function(e){return e.id!=tt})),q.filter((function(e){return e.withHalfOption})).filter((function(e){return e.id!=tt})),m?"".concat(b||"-"," | ").concat(x||"-"):null),onClickChange:function(e){return Z(e)}})}),e};return t.createElement("div",{className:"productConstructor"},t.createElement("div",{className:"content"},!!a&&t.createElement(Ve,d({},a)),t.createElement("div",{className:"headProduct"},t.createElement("div",{className:"name"},r),t.createElement("div",{className:"priceControl"},!!c&&t.createElement("div",{className:"oldPrice"},Ze(o,c)),!!l&&t.createElement("div",{className:"price"},Ze(o,l)))),t.createElement("div",{className:"description"},s)),V()&&t.createElement(Je,{message:V().toString()}),q.length&&t.createElement(Qe,{steps:U(),currentStep:A}),t.createElement(Ue,{isLoading:y,isSummary:A===U().length-1,isDisableNext:!!V(),isDisablePrev:0===A,currency:o,onPrev:function(){return Z(A-1)},onNext:function(){return Z(A+1)},onAddToCart:S,amount:u,count:g,onRemove:B,onAdd:P,isAddDisable:!!h&&g===h,isRemoveDisable:0===g}))};u(".productPreview{cursor:pointer;display:grid;gap:10px;grid-template-columns:300px 1fr}.productPreview .productReviewBody{display:flex;flex-direction:column;justify-content:space-between}.productPreview .productReviewBody .title{color:#1a1d1b;font-size:20px;font-weight:600;margin:0 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.productPreview .productReviewBody .header{align-items:center;display:flex}.productPreview .productReviewBody .description{color:#747474;font-size:16px;font-weight:400;height:125px;overflow:hidden}.productPreview .productReviewFooter{align-items:center;display:flex;justify-content:space-between}.productPreview .productReviewFooter .priceBlock{align-items:center;display:flex;font-size:16px;font-weight:600}.productPreview .productReviewFooter .priceBlock .oldPrice{margin:0 5px}.productPreview .productReviewFooter .priceBlock .currentPrice{color:#007aff}.productPreview .productReviewFooter .priceBlock .newPrice{color:#fe7171}@media (max-width:800px){.productPreview{grid-template-columns:250px 1fr}.productPreview .productReviewBody .description{height:100px}}@media (max-width:650px){.productPreview{grid-template-columns:200px 1fr}.productPreview .tagLabel{display:none}.productPreview .productReviewBody .description{height:65px}}@media (max-width:500px){.productPreview{grid-template-columns:150px 1fr}.productPreview .productReviewBody .description{height:40px}}@media (max-width:400px){.productPreview{grid-template-columns:100px 1fr}.productPreview .productReviewBody .description{height:40px}}");u(".productTags{align-items:center;display:flex;gap:5px}.productTags .additionsNew{background:#016a2b}.productTags .additionVegetarian{background:#9cc653}.productTags .additionVegan{background:#688437}.productTags .additionSpicy{background:#c8313e}.productTags .additionNoGluten{background:#ff7426}");u(".tag{align-items:center;background:#000;border-radius:100px;color:#fff;display:flex;font-size:12px;font-weight:500;gap:5px;height:20px;padding:3px 13px}.tag .icon{fill:#fff;height:15px;width:15px}");var mt=function(e){var n=e.className,r=void 0===n?"":n,i=e.label,a=e.icon;return t.createElement("div",{className:"tag "+r||""},t.createElement("span",{className:"tagLabel"},i),a)},pt=function(e){var n=e.vegan,r=e.vegetarian,i=e.isNew,a=e.spicy,o=e.glutenFree,l=function(){return i?t.createElement(mt,{label:"new",className:"additionItem",icon:t.createElement(me,null)}):null},c=function(){return n?t.createElement(mt,{label:"vegan",className:"additionVegan",icon:t.createElement(t.Fragment,null,t.createElement(fe,null),t.createElement(fe,null))}):r?t.createElement(mt,{label:"vegetarian",className:"additionVegetarian",icon:t.createElement(fe,null)}):null},s=function(){return a?t.createElement(mt,{label:"spicy",className:"additionSpicy",icon:t.createElement(t.Fragment,null,Array(a).fill(0).map((function(e,n){return t.createElement(he,{key:n})})))}):null},u=function(){return o?t.createElement(mt,{label:"free gluten",className:"additionNoGluten",icon:t.createElement(ge,null)}):null};return l()||c()||s()||u()?t.createElement("div",{className:"productTags"},l(),c(),s(),u()):null},ft=function(e){var n=e.id,r=e.currency,i=e.name,a=e.description,l=e.price,c=e.oldPrice,s=e.image,u=e.trashIcon,d=void 0!==u&&u,m=e.onClickTrash,p=e.onClick,f=e.vegetarian,h=e.vegan,g=e.isNew,v=e.spicy,x=e.glutenFree,b=e.quantity;return t.createElement("div",{className:"productPreview",onClick:function(){null==p||p(n)}},t.createElement(Ve,{src:s.src,alt:s.alt,settings:s.settings}),t.createElement("div",{className:"productReviewBody"},t.createElement("div",{className:"productReviewHead"},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},i),d&&t.createElement(de,{onClick:function(e){e.stopPropagation(),null==m||m(n)},width:20,height:20})),t.createElement("div",{className:"description",dangerouslySetInnerHTML:{__html:a}})),t.createElement("div",{className:"productReviewFooter"},t.createElement("div",{className:"options"},t.createElement(pt,{isNew:g,spicy:v,vegan:h,glutenFree:x,vegetarian:f})),t.createElement("div",{className:"priceBlock"},!!c&&t.createElement("div",{className:o("oldPrice",{lineThrough:!b})},Ze(r,c)),!!b&&t.createElement("span",{className:"quantity"}," x",b," "),!!l&&t.createElement("div",{className:o("currentPrice",{newPrice:!!c&&!b})},Ze(r,l))))))};u(".productPreviewList .category .categoryName{color:#0e1328;font-size:24px;font-weight:600;margin:30px 0 20px}.productPreviewList .category .productPreview{border-bottom:1px solid #ccc;padding:16px 0}");var ht=function(e){var n=e.categories,r=e.onClickProduct;return t.createElement("div",{className:"productPreviewList"},n.map((function(e){return t.createElement("div",{key:e.name,className:"category"},t.createElement("div",{id:e.name,className:"categoryName"},e.name),e.products.map((function(n){return t.createElement(ft,d({key:n.id},n,{onClick:function(t){return r(e.id,t)}}))})))})))};u(".restaurantHeader .restaurantHeaderTop{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName{align-items:center;color:#007aff;display:flex;font-size:32px;font-weight:700}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName .icon{margin:0 0 0 12px}.restaurantHeader .restaurantHeaderTop .topLeft{align-items:center;display:flex}.restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 0 0 10px}.restaurantHeader .restaurantHeaderBottom{align-items:center;display:flex;justify-content:space-between}.restaurantHeader .restaurantHeaderBottom .bottomRight{align-items:center;display:flex;gap:10px}.rtl .restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 10px 0 0}.rtl .restaurantHeader .restaurantHeaderName icon{margin:0 12px 0 0}");u(".restaurantTags{align-items:center;display:flex;gap:10px}.restaurantTags .restaurantTagNew{background:#007aff;color:#fff}.restaurantTags .restaurantTagScore{background:#fff;border:1px solid #007aff;color:#007aff}.restaurantTags .restaurantTagScore .icon{fill:#007aff!important}.restaurantTags .restaurantTagKosher{background:#000;color:#fff}");var gt=function(e){var n=e.score,r=e.isNew,i=e.kosher;return t.createElement("div",{className:"restaurantTags"},!!r&&t.createElement(mt,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&t.createElement(mt,{label:n.toFixed(1),className:"restaurantTagScore",icon:t.createElement(me,null)}),!!i&&t.createElement(mt,{label:"kosher",className:"restaurantTagKosher"}))};u(".headerCartButton{align-items:center;background:var(--main-color,#007aff);border-radius:var(--border-radius,5px);color:#fff;cursor:pointer;display:flex;height:45px;justify-content:space-between;padding:0 20px}.headerCartButton .icon{fill:#fff;margin:0 10px 0 0}.headerCartButton .label{margin:0 50px 0 0}.rtl .headerCartButton .icon{margin:0 0 0 10px}.rtl .headerCartButton .label{margin:0 0 0 50px}");var vt=function(e){var n=e.currency,r=e.amount,i=e.onClick;return t.createElement("div",{className:"headerCartButton",onClick:i},t.createElement(xe,{className:"icon"}),t.createElement("span",{className:"label"},"Checkout"),t.createElement("span",{className:"price"},Ze(n,r)))};u(".footer{justify-content:flex-start!important;width:100%}.footer .icon{height:20px;width:20px}@media (max-width:600px){.footer{height:30px!important}.footer .footer{padding:0!important}}.footer .footer{padding:0}.footer .footer-item{align-items:center;color:#747474;display:flex!important;font-size:14px;margin:0 13px 0 0;white-space:nowrap}.footer .footer-item:nth-last-child(2){margin:0!important}.footer .footer-item .icon,.footer .footer-item .title{margin-right:4px}@media (max-width:500px){.footer .footer-item{margin:0 5px 0 0}.footer .footer-item .title{display:none}}@media (min-width:1600px){.footer .footer-item{font-size:12px!important}}@media (max-width:600px){.footer .footer-item{font-size:12px}.footer .footer-item .icon{display:none!important}}.footer .footer-item.delivery-price .freeDelivery{align-items:center;background:var(--main-color);border-radius:100px;color:#fff;display:flex;justify-content:center;padding:3px 7px}.footer .footer-item.delivery-price .freeDelivery .icon{margin:0}@media (max-width:800px){.footer .footer-item.delivery-price span{display:none}}.footer .footer-item .clock,.footer .footer-item .marker,.footer .footer-item .scooterDelivery{background-color:#9d9d9d;height:24px;-webkit-transform:translate(0);transform:translate(0);width:24px}.rtl .footer .footer-item,.rtl .footer .footer-item:nth-last-child(2){margin:0 13px 0 0!important}.rtl .footer .footer-item:first-child{margin:0!important}.rtl .footer .footer-item .icon,.rtl .footer .footer-item .title{margin-left:4px;margin-right:0}");var xt=function(e){var r=e.dontHide,a=e.minimum,l=e.isPickUp,c=e.withTitle,u=e.estimationRangeMax,d=e.estimationRangeMin,m=e.estimationTime,p=e.distance,f=e.deliveryPrice,h=e.currency,g=e.deliveryToLocation,v=n([]),x=v[0],b=v[1];return i((function(){var e=[];a&&e.push(t.createElement("div",{className:o("footer-item mini-order")},t.createElement(xe,null),c&&t.createElement("span",{className:o("title")},"Min order"),Ze(h,a))),p&&!l&&e.push(t.createElement("span",{className:o("footer-item")},t.createElement(Ee,null),c&&t.createElement("div",{className:o("title")},"Distance"),"distanceKm ",p)),(u||d)&&e.push(t.createElement("div",{className:o("time footer-item")},l?t.createElement(ye,null):t.createElement(ke,null),c&&t.createElement("div",{className:o("title")},l?"Pickup time":"Delivery time"),d,"-",u," min")),!l&&g&&e.push(t.createElement("div",{className:o("footer-item delivery-price")},t.createElement(be,null),c&&t.createElement("span",{className:o("title")},"deliveryPrice"),f?Ze(h,f):t.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",t.createElement(Ne,null)," "))),0===u&&0===d&&m&&e.push(t.createElement("div",{className:o("time footer-item")},l?t.createElement(ke,null):t.createElement(ye,null),"up_to ",m,"  min")),b(e)}),[a,l,u,d,m,p,f,h,g]),t.createElement(s,{className:"footer benefitsData",minVisibleItems:r?x.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:x})},bt=function(e){var n=e.name,r=e.isFavorite,i=e.isNew,a=e.kosher,o=e.score,l=e.cartAmount,c=e.alternativeView,s=e.currency,u=e.searchValue,d=e.onSearch,m=e.onCartClick;return t.createElement("div",{className:"restaurantHeader"},t.createElement("div",{className:"restaurantHeaderTop"},t.createElement("div",{className:"topLeft"},t.createElement("div",{className:"restaurantHeaderName"},n,r?t.createElement(me,null):t.createElement(pe,null)),(!!l||c)&&t.createElement(gt,{isNew:i,kosher:a,score:o})),t.createElement("div",{className:"topRight"},!!l&&!c&&t.createElement(vt,{onClick:m,amount:l,currency:s}))),t.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&t.createElement(gt,{isNew:i,kosher:a,score:o}),t.createElement("div",{className:"benefits"},t.createElement(xt,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&t.createElement("div",{className:"bottomRight"},t.createElement(Fe,{className:"input",placeholder:"Search in menu...",icon:t.createElement(ve,null),value:u,onChange:d}),t.createElement(vt,{onClick:m,amount:l,currency:s}))))},yt=a(null).Provider;export{Re as CounterButton,$e as HALF_OPTION,et as INGREDIENTS,be as IconBicycle,xe as IconCart,ye as IconClockAfternoon,we as IconClose,Ee as IconMapPin,Se as IconMinus,je as IconMute,ge as IconNoGluten,Oe as IconPause,ke as IconPersonSimpleWalk,Ce as IconPlay,Be as IconPlus,ve as IconSearch,Ne as IconSparkle,he as IconSpicy,me as IconStar,pe as IconStarBorder,de as IconTrash,Pe as IconUnmute,fe as IconVegan,He as IconWarning,Te as IngredientsSelector,Fe as Input,Ve as Media,dt as ProductConstructor,ft as ProductPreview,ht as ProductPreviewList,pt as ProductTags,bt as RestaurantHeader,Qe as Stepper,Ge as SuboptionMultiSelector,Ke as SuboptionRadioSelector,yt as TranslationUIProvider,Je as Warning,ct as checkRespectTo,lt as convertToServerModelOptions,st as mergeProduct,rt as prepareHalfOptions};
1
+ import*as e from"react";import t,{useState as n,useRef as r,useEffect as i,createContext as o}from"react";import a from"classnames";import{Image as l,Transformation as c}from"cloudinary-react";import{OverflowList as s}from"react-overflow-list";function u(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}u(":root{--border-radius:5px;--main-color:#007aff;--secondary-color:#cee6ff;--warning:#fe7171}*{box-sizing:border-box}html{font-family:sans-serif}.lineThrough{text-decoration:line-through}.icon{cursor:pointer}");u(".counterButton{align-items:center;border:1px solid #ccc;border-radius:var(--border-radius,5px);display:grid;grid-template-columns:1fr 1fr 1fr;height:45px;justify-items:center;text-align:center}.counterButton .disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}");var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)};function m(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function p(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var f;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}u(".iconsPreview{display:grid;gap:20px;grid-template-columns:repeat(6,1fr);justify-items:center}.iconsPreview .previewIcon{align-items:center;display:flex;flex-direction:column;font-size:14px;justify-content:center}.iconsPreview .previewIcon span{display:inline-block;margin:0 0 5px}.fillByFill{fill:#000}.fillByStroke{stroke:#000}");var g;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}var x;function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}var y;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}var E;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}var N;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}var O;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}var P;function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}var S,H,R;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}var M,L;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}var z;function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(this,arguments)}var A,Z;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}var I;function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}var V,W;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}var Q;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}var K;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}var Y;function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}var X;function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(this,arguments)}var te;function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(this,arguments)}var re;function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(this,arguments)}var oe,ae;function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(this,arguments)}var ce=20,se=25,ue=30,de=function(e,n){return function(r){var i=function(e){var t=e.className,n=e.props,r={};return n.color&&t.includes("Fill")&&(r.fill=n.color),n.color&&t.includes("Stroke")&&(r.stroke=n.color),r}({className:n,props:r}),o=function(e){return"small"===e?ce:"big"===e?ue:e||se}(r.size);return t.createElement(e,d({width:o,height:o},r,{style:i,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},me=de((function(t){return e.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},t),f||(f=e.createElement("path",{d:"M28 6a4 4 0 0 0-4 4v2h-.4L10 14v3h44v-3l-13.6-2H40v-2a4 4 0 0 0-4-4h-8zm0 4h8v2h-8v-2zm-16 9 2.701 33.322A4.002 4.002 0 0 0 18.69 56h26.623a3.999 3.999 0 0 0 3.987-3.676L51.924 20 12 19zm8 7a2 2 0 0 1 2 2v23h-3l-1-23a2 2 0 0 1 2-2zm12 0a3 3 0 0 1 3 3v22h-6V29a3 3 0 0 1 3-3zm12 0a2 2 0 0 1 2 2l-1 23h-3V28a2 2 0 0 1 2-2z"})))}),"fillByFill"),pe=de((function(t){return e.createElement("svg",v({width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),g||(g=e.createElement("path",{d:"m13.547 5.247-4.196-.639L7.474.625a.52.52 0 0 0-.949 0L4.65 4.608l-4.196.639a.52.52 0 0 0-.303.16.569.569 0 0 0 .01.785l3.037 3.1-.718 4.378a.577.577 0 0 0 .031.302.55.55 0 0 0 .18.24.514.514 0 0 0 .556.04L7 12.187l3.754 2.067a.504.504 0 0 0 .335.055.551.551 0 0 0 .432-.638l-.717-4.378 3.036-3.1a.563.563 0 0 0 .154-.317.549.549 0 0 0-.447-.628Z"})))}),"fillByFill"),fe=de((function(t){return e.createElement("svg",b({width:"1em",height:"1em",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#016A2B",strokeWidth:2},t),x||(x=e.createElement("path",{d:"m30.164 12.064-9.035-1.369L17.09 2.16a1.158 1.158 0 0 0-.516-.538c-.562-.289-1.245-.048-1.526.538l-4.039 8.535-9.035 1.369a1.12 1.12 0 0 0-.65.345c-.212.226-.328.53-.324.845.004.315.128.615.344.835l6.537 6.643-1.544 9.38c-.036.22-.013.444.067.649.08.205.213.383.385.513a1.099 1.099 0 0 0 1.199.09l8.081-4.43 8.081 4.429c.22.122.477.163.723.119.619-.112 1.035-.724.928-1.37l-1.544-9.38 6.537-6.643c.178-.182.295-.42.33-.679.097-.649-.337-1.25-.96-1.346Z"})))}),"fillByStroke"),he=de((function(t){return e.createElement("svg",w({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},t),y||(y=e.createElement("path",{d:"M11.688 1.167c.711-.08 1.385.438 1.385 1.153 0 6.778-3.783 9.856-8.448 9.856-.724 0-1.313-.619-1.153-1.325.317-1.39 1.014-2.424 2.347-3.604.847-.75.776-1.182.358-.934-2.875 1.711-4.303 4.023-4.366 7.715a.263.263 0 0 1-.263.26h-.44a.683.683 0 0 1-.692-.706 12.9 12.9 0 0 1 .152-1.505c.045-.276.049-.557.01-.834-.118-.859-.177-1.956-.177-3.29A7.04 7.04 0 0 1 7.44.912c1.156 0 2.312.474 4.247.254Z"})))}),"fillByFill"),ge=de((function(t){return e.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},t),E||(E=e.createElement("path",{d:"M49.1 11c-2.8 5-2.5 9.4.7 9.8 2.8.4 2.9 3.2.2 3.2-1.2 0-3.5-.7-5.1-1.6-3.3-1.7-4.5-1.4-3.6 1.1.4.8 2.6 2 5.1 2.7 4.4 1.2 5.3 2.8 1.6 2.8-1.2 0-2.9 1.9-4.9 5.4-3.8 6.8-9.2 12.1-15.6 15.3-2.7 1.4-5.3 3-5.6 3.5-.3.5-3 .8-6 .6l-5.4-.3 3.1-1.7C21.4 47.6 30.7 35.9 35 25c2.2-5.4 3.3-6.8 6.3-8.3 4.1-2.1 4-4.2-.2-3.2-4 1-6.7 4.1-9 10.4C28.6 33.7 21 43 10.5 50.6c-2.5 1.9-2.8 2.5-1.9 4 1 1.6 2.4 1.9 10.2 1.8 7.6 0 9.8-.4 14.5-2.8 7.2-3.5 12.9-10 17.8-20 4.4-9.1 4.8-12.2 1.8-16.1-2.1-2.5-2.1-2.9-.6-6 1.4-3 1.4-4.5-.3-4.5-.3 0-1.6 1.8-2.9 4z"})))}),"fillByFill"),ve=de((function(t){return e.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},t),N||(N=e.createElement("path",{d:"M5.4 6.1c-.4.7 10 11.8 25.2 27 20.5 20.5 26.1 25.6 27.2 24.7 1.1-.9-.1-2.6-6.2-8.7-6.6-6.7-7.4-7.8-6.4-9.6.6-1.1 2-2.6 3-3.3 2.5-1.8 4.8-6.5 4.8-10 0-1.6.7-4.6 1.5-6.5.8-2 1.5-5.5 1.5-7.7V8h-4c-2.2 0-5.7.7-7.7 1.5-1.9.8-4.9 1.5-6.5 1.5-3.5 0-8.2 2.3-10 4.8-.7 1.1-2.2 2.4-3.4 3-1.8 1-2.9.3-9.5-6.4C10.9 8.3 7.2 5 6.8 5c-.4 0-1 .5-1.4 1.1zM52 13.4c0 2.8-2.3 7.7-4 8.6-1 .6-3 1-4.4 1-2.1 0-2.6-.5-2.6-2.4 0-3.9 1.1-5.7 4.4-7.2 4-1.7 6.6-1.7 6.6 0zm-14 3.3c0 3.6-2.1 9.1-4.1 10.9-2 1.8-2.1 1.8-3.5-.1-2.2-3-1.7-6.4 1.5-9.6 3.3-3.3 6.1-3.8 6.1-1.2zm10.7 11c.7 1.9-5.2 7.3-7.9 7.3-1.3 0-3.3-.6-4.4-1.4-1.9-1.5-1.9-1.5.2-3.6 3.4-3.4 11.3-4.9 12.1-2.3zM13.8 29c-7.6 6.2-7.7 14.4-.5 21.7 7.3 7.2 15.5 7.1 21.7-.5 2.8-3.4 2.8-3.7 1.3-5.4-.9-1-3-1.8-4.8-1.8-4.1 0-6.3-2.3-4.5-4.5.7-.9 1-1.8.7-2.2-.4-.3-1.3 0-2.2.7-2.2 1.8-4.5-.4-4.5-4.5 0-1.8-.8-3.9-1.8-4.8-1.7-1.5-2-1.5-5.4 1.3zm4.8 5.3c1.8 7.2-1.9 14.6-5.2 10.3-2-2.8-1.7-6.9.7-10 2.5-3.2 3.7-3.3 4.5-.3zM31 46c1.3.9 1.1 1.4-1.3 3.5-5.3 4.7-15.3 1.5-10.5-3.3 1.5-1.5 9.7-1.6 11.8-.2z"})))}),"fillByFill"),xe=de((function(t){return e.createElement("svg",j({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},t),O||(O=e.createElement("path",{d:"m20.998 20.038-5.236-5.445a8.854 8.854 0 0 0 2.084-5.71C17.846 3.984 13.86 0 8.963 0S.081 3.985.081 8.882c0 4.898 3.984 8.883 8.882 8.883 1.839 0 3.591-.555 5.09-1.607l5.275 5.487c.22.229.517.355.835.355a1.16 1.16 0 0 0 .835-1.962ZM8.963 2.319a6.573 6.573 0 0 1 6.566 6.564 6.573 6.573 0 0 1-6.566 6.566 6.573 6.573 0 0 1-6.565-6.566 6.573 6.573 0 0 1 6.565-6.565Z"})))}),"fillByFill"),be=de((function(t){return e.createElement("svg",B({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},t),P||(P=e.createElement("path",{d:"M6.574 8.57c0-.73-.002-1.41 0-2.09C6.587 2.742 9.586-.137 13.32.005c3.286.125 6.037 2.919 6.104 6.21.016.767.002 1.537.002 2.352h.376c1.618.001 3.235 0 4.853.002.825.002 1.276.519 1.185 1.332-.357 3.18-.706 6.36-1.063 9.54-.26 2.316-.497 4.635-.796 6.946-.26 2.007-2.022 3.556-4.053 3.596-1.584.031-3.169.01-4.753.01H6.47c-2.536 0-4.264-1.59-4.53-4.108-.329-3.127-.694-6.25-1.042-9.375-.247-2.215-.496-4.432-.74-6.648C.073 9.086.537 8.57 1.32 8.57c1.618-.003 3.236 0 4.854 0h.4Zm12.87 4.262c.114.029.213.047.307.078.492.16.803.635.745 1.136-.057.496-.476.928-.979.943-.768.023-1.54.02-2.309 0-.48-.012-.884-.397-.977-.867-.091-.465.16-.961.6-1.16.139-.062.291-.093.43-.137V10.73H8.734v2.1c.116.03.215.049.31.08.486.16.797.642.738 1.14-.06.5-.475.924-.983.938-.769.023-1.539.024-2.308.002-.506-.015-.924-.444-.982-.94a1.065 1.065 0 0 1 .739-1.138c.102-.034.208-.057.3-.08v-2.103H2.421c.034.327.064.634.098.941.258 2.304.517 4.609.773 6.914.273 2.46.535 4.92.818 7.38.126 1.095 1.019 1.882 2.126 1.884 4.507.008 9.015.008 13.522.002 1.107-.001 2-.78 2.132-1.88.222-1.848.413-3.7.62-5.55l.773-6.948.3-2.74h-4.138v2.1ZM8.662 8.545h8.625c0-.736.006-1.45-.001-2.162-.023-2.19-1.672-3.981-3.885-4.224-2.069-.227-4.12 1.19-4.537 3.273-.2 1.002-.142 2.057-.202 3.113Z"})))}),"fillByFill"),ye=de((function(t){return e.createElement("svg",T({width:"1em",height:"1em",stroke:"#000",strokeWidth:1.3,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),S||(S=e.createElement("path",{d:"M19.5 7.5A1.5 1.5 0 0 0 18 6h-3.75l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),H||(H=e.createElement("path",{d:"M19.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 18.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM4.5 6h2.625l5.25 9",strokeLinecap:"round",strokeLinejoin:"round"})),R||(R=e.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),we=de((function(t){return e.createElement("svg",q({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),M||(M=e.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),L||(L=e.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Ee=de((function(t){return e.createElement("svg",F({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},t),z||(z=e.createElement("path",{d:"m17.857 15.825-6.495-6.494 6.495-6.495A1.531 1.531 0 0 0 15.692.672L9.197 7.166 2.703.672A1.53 1.53 0 0 0 .538 2.836l6.494 6.495-6.494 6.495a1.53 1.53 0 0 0 2.165 2.164l6.494-6.494 6.495 6.494a1.531 1.531 0 0 0 2.165-2.164Z"})))}),"fillByFill"),ke=de((function(t){return e.createElement("svg",_({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000",strokeWidth:1.3},t),A||(A=e.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),Z||(Z=e.createElement("path",{d:"M19.5 9.75c0 6.75-7.5 12-7.5 12s-7.5-5.25-7.5-12a7.5 7.5 0 0 1 15 0Z",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Ne=de((function(t){return e.createElement("svg",D({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),I||(I=e.createElement("path",{d:"M14.25 7.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM4.5 12.5s5.25-5.25 8.25-2.475c1.678 1.547 3 3.975 6.75 3.975M12.234 9.632 6.75 22.25M14.25 22.25V17l-3.984-2.84",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Ce=de((function(t){return e.createElement("svg",U({width:"1em",height:"1em",viewBox:"0 0 16 16",stroke:"#000",strokeWidth:1.3,xmlns:"http://www.w3.org/2000/svg"},t),V||(V=e.createElement("path",{d:"m8.669 10.969-1.2 3.256a.5.5 0 0 1-.938 0l-1.2-3.256a.506.506 0 0 0-.3-.3l-3.256-1.2a.5.5 0 0 1 0-.938l3.256-1.2a.506.506 0 0 0 .3-.3l1.2-3.256a.5.5 0 0 1 .938 0l1.2 3.256a.506.506 0 0 0 .3.3l3.256 1.2a.5.5 0 0 1 0 .938l-3.256 1.2a.506.506 0 0 0-.3.3Z"})),W||(W=e.createElement("path",{d:"M11 1v3M12.5 2.5h-3M14 4.5v2M15 5.5h-2",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke fillByFill"),Oe=de((function(t){return e.createElement("svg",G({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),Q||(Q=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.528 5.118a1 1 0 0 1 1.027.05l9 6a1 1 0 0 1 0 1.664l-9 6A1 1 0 0 1 8 18V6a1 1 0 0 1 .528-.882ZM10 7.868v8.263L16.197 12 10 7.869Z"})))}),"fillByFill"),je=de((function(t){return e.createElement("svg",J({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),K||(K=e.createElement("path",{d:"M5.92 24.096q0 .832.576 1.408t1.44.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576H7.936q-.832 0-1.44.576t-.576 1.44v16.16zm12.096 0q0 .832.608 1.408t1.408.608h4.032q.832 0 1.44-.608t.576-1.408V7.936q0-.832-.576-1.44t-1.44-.576h-4.032q-.832 0-1.408.576t-.608 1.44v16.16z"})))}),"fillByFill"),Pe=de((function(t){return e.createElement("svg",$({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},t),Y||(Y=e.createElement("path",{d:"m89.752 59.582 251.583 251.583 5.433 5.432 49.472 49.474v-.001l30.862 30.86h-.001l25.317 25.318-30.17 30.17-187.832-187.833v164.103l-110.729-85.459h-81.02V172.563h80.895l10.538-8.293-74.518-74.518 30.17-30.17Zm314.213 28.014c67.74 75.64 82.499 181.38 44.28 270.137l-32.95-32.95c23.87-71.004 8.998-151.973-44.615-210.559l33.285-26.628Zm-84.385 67.51c28.626 31.924 41.555 72.769 38.788 112.752l-49.237-49.236c-4.823-12.915-12.148-25.121-21.976-35.884l-.9-.974 33.325-26.659Zm-85.163-69.773-.001 58.574-32.78-32.78 32.78-25.794Z",fillRule:"evenodd"})))}),"fillByFill"),Be=de((function(t){return e.createElement("svg",ee({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},t),X||(X=e.createElement("path",{d:"m403.966 426.944-33.285-26.629c74.193-81.076 74.193-205.016-.001-286.091l33.285-26.628c86.612 96.713 86.61 242.636.001 339.348ZM319.58 155.105l-33.325 26.66c39.796 42.567 39.795 108.443.002 151.01l33.324 26.66c52.204-58.222 52.204-146.11-.001-204.33Zm-85.163-69.772-110.855 87.23H42.667v170.666h81.02l110.73 85.459V85.333Z",fillRule:"evenodd"})))}),"fillByFill"),Se=de((function(t){return e.createElement("svg",ie({width:"1em",height:"1em",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg"},t),re||(re=e.createElement("path",{d:"M12.598 20.946v-8.25h8.25a1.375 1.375 0 0 0 0-2.75h-8.25v-8.25a1.375 1.375 0 0 0-2.75 0v8.25h-8.25a1.375 1.375 0 0 0 0 2.75h8.25v8.25a1.375 1.375 0 1 0 2.75 0Z"})))}),"fillByFill"),He=de((function(t){return e.createElement("svg",ne({width:"1em",height:"1em",viewBox:"0 0 23 4",xmlns:"http://www.w3.org/2000/svg"},t),te||(te=e.createElement("path",{d:"M20.848 3.696H1.598a1.375 1.375 0 0 1 0-2.75h19.25a1.375 1.375 0 0 1 0 2.75Z"})))}),"fillByFill"),Re=de((function(t){return e.createElement("svg",le({width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"#000",xmlns:"http://www.w3.org/2000/svg"},t),oe||(oe=e.createElement("path",{d:"M12.271 22.34c5.523 0 10-4.476 10-10 0-5.522-4.477-10-10-10-5.522 0-10 4.478-10 10 0 5.524 4.478 10 10 10Z",strokeWidth:2})),ae||(ae=e.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),Te=function(e){var n=e.count,r=e.isRemoveDisable,i=e.isAddDisable,o=e.onAdd,l=e.onRemove;return t.createElement("div",{className:"counterButton"},t.createElement(He,{color:"var(--main-color, #007aff)",onClick:l,className:a("control",{disable:r})}),t.createElement("div",{className:"control count"},n),t.createElement(Se,{color:"var(--main-color, #007aff)",onClick:o,className:a("control",{disable:i})}))};u(".ingredients{align-items:center;display:flex;flex-direction:column}.ingredients .ingredient{border:1px solid #ccc;border-radius:100px;color:var(--main-color,#007aff);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.ingredients .ingredient:last-child{margin:0}.ingredients .ingredient:hover{opacity:.9}.ingredients .ingredient.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var Me=function(e){var n=e.ingredients,r=e.onSelect;return t.createElement("div",{className:"ingredients"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,function(){return r(n)}),className:a("ingredient",{selected:!!e.quantity})},e.name);var n})))};u(".labelInput{align-items:center;background:#f8f8f8;border-radius:var(--border-radius,5px);display:inline-flex;height:44px;overflow:hidden;padding:0 13px}.labelInput .icon{height:25px;margin:0 10px 0 0;width:25px}.labelInput input{background:none;border:none;height:100%;outline:none;width:100%}.labelInput input::-webkit-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-moz-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-ms-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::placeholder{color:#747474;font-size:14px;font-weight:400}.rtl .labelInput .icon{margin:0 0 0 10px}");var Le,qe,ze,Fe,Ae=function(e){var n=e.icon,r=e.debounce,i=e.onChange,o=m(e,["icon","debounce","onChange"]),a=t.useState(null),l=a[0],c=a[1];return t.useEffect((function(){var e=setTimeout((function(){i&&i(l)}),r);return function(){return clearTimeout(e)}}),[l]),t.createElement("label",{className:"labelInput"},n&&n,t.createElement("input",d({},o,{onChange:function(e){c(e)}})))};!function(e){e[e.fill=0]="fill",e[e.pad=1]="pad",e[e.fit=2]="fit",e[e.mfit=3]="mfit",e[e.scale=4]="scale",e[e.limit=5]="limit",e[e.lpad=6]="lpad",e[e.mpad=7]="mpad",e[e.crop=8]="crop",e[e.fill_pad=9]="fill_pad",e[e.thumb=10]="thumb"}(Le||(Le={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(qe||(qe={})),function(e){e[e.best=1]="best",e[e.good=2]="good",e[e.eco=3]="eco",e[e.low=4]="low",e[e.custom=5]="custom"}(ze||(ze={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(Fe||(Fe={}));u(".mediaWrapper{aspect-ratio:5/3;border-radius:var(--border-radius,5px);overflow:hidden;width:100%}.mediaWrapper img,.mediaWrapper video{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.videoControl{height:100%;position:relative;width:100%}.videoControl .videoControls{left:10px;position:absolute;top:10px;z-index:1}.videoControl .videoControls .control{background:#fff;border-radius:100px;cursor:pointer;margin:0 5px 0 0;padding:3px}");var Ze=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},_e=function(e,t){var n="";return e&&(n=Fe[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n},Ie=function(e){var n=e.src,r=e.alt,i=e.width,o=e.height,a=e.quality,s=e.gravity,u=e.crop,d=e.id;return t.createElement(l,{id:d,cloudName:n[0],secure:"true",publicId:n.splice(3).join("/"),alt:r},t.createElement(c,{width:i,height:o,quality:a,gravity:s,crop:u}),t.createElement(c,{fetchFormat:"auto"}))},De=function(e){var i=e.autoPlay,o=e.onStart,a=e.id,l=e.src,c=e.onEnd,s=e.controls,u=n({playing:!1,muted:!1}),m=u[0],p=u[1],f=r(),h=function(){f.current.paused?(f.current.play(),p((function(e){return d(d({},e),{playing:!0})}))):(f.current.pause(),p((function(e){return d(d({},e),{playing:!1})})))},g=function(){f.current.muted=!f.current.muted,p((function(e){return d(d({},e),{muted:f.current.muted})}))};return t.createElement("div",{className:"videoControl"},s&&t.createElement("div",{className:"videoControls",onClick:function(e){return e.stopPropagation()}},!m.playing&&t.createElement(Oe,{color:"var(--main-color)",className:"control",onClick:h}),m.playing&&t.createElement(je,{color:"var(--main-color)",className:"control",onClick:h}),m.muted&&t.createElement(Pe,{color:"var(--main-color)",className:"control",onClick:g}),!m.muted&&t.createElement(Be,{color:"var(--main-color)",className:"control",onClick:g})),t.createElement(Ve,{autoPlay:i,src:l,onPlay:function(){o&&o(),p((function(e){return d(d({},e),{playing:!0})}))},onEnded:function(){c&&c()},videoRef:f,id:a}))},Ve=function(e){var n=e.videoRef,r=e.src,i=e.id,o=e.onPlay,a=e.onEnded,l=e.autoPlay;return t.createElement("video",{ref:n,src:r,id:i,onPlay:function(){o&&o()},autoPlay:l,onEnded:function(){a&&a()}})},We=function(e){var o=e.src,a=e.settings,l=e.alt,c=e.id,s=m(e,["src","settings","alt","id"]),u=r(null),p=n({width:0,height:0}),f=p[0],h=p[1],g=o.includes("/image/"),v=o.includes("/video/"),x=o.replace("https://res.cloudinary.com/","").split("/");i((function(){f.width!==u.current.offsetWidth&&f.height!==u.current.offsetHeight&&h({width:u.current.offsetWidth||0,height:u.current.offsetHeight||0})}));return t.createElement("div",{ref:u,className:"mediaWrapper"},g&&t.createElement(Ie,d({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:Ze(qe,(null==a?void 0:a.gravity_mode)||0),crop:Ze(Le,(null==a?void 0:a.crop_mode)||0),src:x,alt:l,id:c})),v&&t.createElement(De,d({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:Ze(qe,(null==a?void 0:a.gravity_mode)||0),crop:Ze(Le,(null==a?void 0:a.crop_mode)||0),id:c,src:o})))};u(".productConstructor .content{margin:0 0 20px}.productConstructor .headProduct{align-items:center;display:flex;justify-content:space-between;padding:20px 20px 10px}.productConstructor .headProduct .name{font-size:24px;font-weight:600}.productConstructor .headProduct .priceControl{align-items:center;display:flex;font-size:16px}.productConstructor .headProduct .priceControl .oldPrice{color:var(--warning,#fe7171);margin:0 5px}.productConstructor .headProduct .priceControl .price{color:var(--main-color,#007aff)}.productConstructor .description{color:#747474;font-size:16px;font-weight:400;padding:0 20px}.productConstructor .stepper{padding:0 20px}.productConstructor .stepper .productCommentSection,.productConstructor .stepper .productSummary{text-align:left}.productConstructor .footerControls{bottom:0;margin:20px 0 0;position:sticky}");u(".footerControls{align-items:center;background:#fff;border-top:1px solid #ccc;display:flex;justify-content:center;padding:20px}.footerControls.summary{display:grid;gap:10px;grid-template-columns:2fr 3fr}.footerControls.summary .addLabel{align-items:center;display:flex}.footerControls.summary .addLabel .icon{margin:0 5px}.footerControls.summary .button.major{align-items:center;display:flex;justify-content:space-around;margin:0;width:100%}.footerControls .button{align-items:center;border:1px solid #007aff;border-radius:var(--border-radius,5px);color:#007aff;cursor:pointer;display:flex;height:45px;justify-content:center;transition:all .3s;width:40%}.footerControls .button:hover{opacity:.9}.footerControls .button.major{background:var(--main-color,#007aff);color:#fff;margin:0 0 0 10px}.footerControls .button.disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width:600px){.footerControls .button,.footerControls .counterButton{font-size:14px;height:35px}.footerControls .button svg,.footerControls .counterButton svg{height:20px;width:20px}}");u('.lds-dual-ring{display:inline-block;height:30px;width:30px}.lds-dual-ring:after{-webkit-animation:lds-dual-ring 1.2s linear infinite;animation:lds-dual-ring 1.2s linear infinite;border-color:#fff transparent;border-radius:50%;border-style:solid;border-width:4px;content:" ";display:block;height:18px;margin:4px;width:18px}@-webkit-keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}');var Ue=function(){return t.createElement("div",{className:"lds-dual-ring"})},Qe=function(e){var n=e.isSummary,r=e.isLoading,i=e.isDisableNext,o=e.isDisablePrev,l=e.amount,c=e.currency,s=e.onPrev,u=e.onNext,d=e.count,m=e.isAddDisable,p=e.isRemoveDisable,f=e.onAdd,h=e.onRemove,g=e.onAddToCart;return t.createElement("div",{className:a("footerControls",{summary:n})},n?t.createElement(t.Fragment,null,t.createElement(Te,{count:d,isRemoveDisable:p||r,isAddDisable:m||r,onAdd:f,onRemove:h}),t.createElement("div",{onClick:g,className:a("button major",{disable:r})},r?t.createElement(Ue,null):t.createElement(t.Fragment,null,t.createElement("div",{className:"addLabel"},t.createElement(be,{color:"#fff",size:"small"})," Add to Cart"),t.createElement("div",null,_e(c,l))))):t.createElement(t.Fragment,null,t.createElement("div",{onClick:s,className:a("button",{disable:o||r})},"Back"),t.createElement("div",{onClick:u,className:a("button major",{disable:i||r})},r?t.createElement(Ue,null):t.createElement(t.Fragment,null,"Next ",_e(c,l)))))};u(".stepper{text-align:center}.stepper .stepperHeader{font-size:20px;font-weight:600}.stepper .steps{align-items:center;display:flex;justify-content:center;margin:10px 0}.stepper .steps .step{border:1px solid #ccc;border-radius:100px;height:14px;transition:all .3s;width:14px}.stepper .steps .step.active{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff)}.stepper .steps .line{background:#ccc;height:1px;width:28px}");var Ge=function(e){var n=e.steps,r=e.currentStep,i=n[r].component,o=n[r].name;return t.createElement("div",{className:"stepper"},t.createElement("div",{className:"stepperHeader"},o),t.createElement("div",{className:"steps"},Array(n.length).fill(0).map((function(e,i){return t.createElement(t.Fragment,{key:i},t.createElement("div",{className:a("step",{active:i===r})}),i!==n.length-1&&t.createElement("div",{className:"line"}))}))),i)};u(".suboptionMultiSelector .suboption{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.suboptionMultiSelector .suboption .suboptionName.selected{color:#007aff}.suboptionMultiSelector .suboption .counterSection{align-items:center;display:flex}.suboptionMultiSelector .suboption .counterButton{height:35px;margin:0 0 0 10px;width:150px}.suboptionMultiSelector .suboption .counterButton svg{height:15px;width:15px}");var Ke=function(e){var n=e.suboptions,r=e.onChangeQuantity,i=e.currency,o=e.limitByMax,l=function(e,t){return function(){return r(e,t)}},c=function(e){return!!o&&e.quantity===e.max};return t.createElement("div",{className:"suboptionMultiSelector"},n.map((function(e){return t.createElement("div",{className:"suboption",key:e.id},t.createElement("span",{className:a("suboptionName",{selected:!!e.quantity})},e.name),t.createElement("div",{className:"counterSection"},!!e.price&&t.createElement("span",{className:"price"},"+",_e(i,e.price)),t.createElement(Te,{count:e.quantity||0,isAddDisable:c(e),isRemoveDisable:!e.quantity,onAdd:l(e.id,(e.quantity||0)+1),onRemove:l(e.id,(e.quantity||0)-1)})))})))};u('.extrasRadio{align-items:center;display:flex;flex-direction:column}.extrasRadio .extra{border:1px solid #ccc;border-radius:100px;cursor:pointer;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:7px 10px;transition:all .3s}.extrasRadio .extra,.extrasRadio .extra .extraName{align-items:center;display:flex}.extrasRadio .extra .extraName:before{border:1px solid #ccc;border-radius:100px;box-sizing:border-box;content:"";display:block;flex:1 0 24px;height:24px;margin:0 10px 0 0;transition:all .1s;width:24px}.extrasRadio .extra:last-child{margin:0}.extrasRadio .extra:hover{opacity:.9}.extrasRadio .extra:hover .extraName:before{border:3px solid var(--main-color,#007aff)}.extrasRadio .extra.selected .extraName:before{border:7px solid var(--main-color,#007aff);box-sizing:border-box}');var Je=function(e){var n=e.ingredients,r=e.onSelect,i=e.currency;return t.createElement("div",{className:"extrasRadio"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,o=e.quantity||1,function(){return r(n,o)}),className:a("extra",{selected:!!e.quantity})},t.createElement("span",{className:"extraName"},e.name),!!e.price&&t.createElement("span",{className:"extraPrice"},"+",_e(i,e.price)));var n,o})))};u(".warning{align-items:center;background:#fff;border:2px solid var(--warning,#fe7171);border-left:none;border-right:none;color:var(--warning,#fe7171);display:flex;font-size:16px;font-weight:600;padding:10px 20px;position:sticky;top:0;z-index:1}.warning .icon{margin:0 10px 0 0}");var Ye=function(e){var n=e.message;return t.createElement("div",{className:"warning"},t.createElement(Re,{size:"small",color:"var(--warning, #fe7171)"})," ",n)};u(".productCommentSection .inputName{display:inline-block;margin:20px 0 10px}.productCommentSection .inputName:first-child{margin:0 0 10px}.productCommentSection .labelInput{width:100%}");var $e=function(e){var n=e.name,r=e.comment,i=e.onCommentChange,o=e.onNameChange;return t.createElement("div",{className:"productCommentSection"},t.createElement("span",{className:"inputName"},"Add Name"),t.createElement(Ae,{onChange:function(e){var t;o(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add name",value:n}),t.createElement("span",{className:"inputName"},"Add Comment"),t.createElement(Ae,{onChange:function(e){var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add comment",value:r}))};u(".productSummary .line{color:#0e1328;display:grid;font-size:14px;grid-template-columns:1fr 1fr 100px;margin:0 0 7px}.productSummary .line:last-child{margin:0}.productSummary .line .button{align-items:center;background:var(--secondary-color,#cee6ff);border-radius:var(--border-radius,5px);color:var(--main-color,#007aff);cursor:pointer;display:flex;font-size:14px;height:30px;justify-content:center;transition:all .3s}.productSummary .line .button:hover{opacity:.9}.productSummary .line .value{color:#747474;white-space:break-spaces}");var Xe,et=function(e){var n=e.summary,r=e.onClickChange;return t.createElement("div",{className:"productSummary"},n.map((function(e){return t.createElement("div",{className:"line",key:e.name+e.index},t.createElement("div",{className:"name"},e.name),t.createElement("div",{className:"value"},e.value),t.createElement("div",{onClick:function(){return r(e.index)},className:"button"},"Change"))})))},tt="#INGREDIENTS",nt="#HALF_SELECTOR",rt="#HALF_SELECTOR_HALF";!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(Xe||(Xe={}));var it=function(e,t){var n=[],r=e.filter((function(e){return e.half===Xe.none||e.half===Xe.left}));return t?r.forEach((function(e){n.push(d(d({},e),{half:Xe.left})),n.push(d(d({},e),{half:Xe.right}))})):r.forEach((function(e){n.push(d(d({},e),{half:Xe.none}))})),n},ot=function(e,t,n,r){var i,o=[],a=0;if((null===(i=null==e?void 0:e.suboptions)||void 0===i?void 0:i.length)&&o.push({name:"Ingredients",value:lt(e.suboptions),index:a++}),t.forEach((function(e){o.push({name:e.name,value:at(e.suboptions),index:a++})})),n.length){var l=n.some((function(e){return e.half===Xe.right}));o.push({name:"Toppings",value:l?"Half":"Full",index:a++})}return n.forEach((function(e){o.push({name:e.name,value:at(e.suboptions),index:a++})})),r&&o.push({name:"Comments",value:r,index:a++}),o},at=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},lt=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")},ct=function(e){return e.map((function(e){return{id:e.id,name:e.name,suboptions:e.suboptions.filter((function(e){return!!e.quantity})).map((function(t){return{id:t.id,name:t.name,price:t.price,quantity:t.quantity,half_option:e.half}}))}})).filter((function(e){return!!e.suboptions.length}))},st=function(e,t){if(!e.respectTo)return!0;var n=t.flatMap((function(e){return e.suboptions})).find((function(t){return t.id===e.respectTo}));return!(!n||!n.quantity)},ut=function(e,t,n){var r={comments:e.product.comment,nameOnBox:e.product.name_on_box,finalPrice:e.full_price,quantity:e.product.quantity,ingredients:[],options:[],optionsHalf:[],isHalf:!1};return r.options=t.filter((function(e){return!e.withHalfOption})).map((function(t){var n=e.product.options.find((function(e){return e.id===t.id}));return d(d({},t),{suboptions:t.suboptions.map((function(e){var t=null==n?void 0:n.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{quantity:t?t.quantity:0})}))})})),r.optionsHalf=t.filter((function(e){return e.withHalfOption})).flatMap((function(t){var n=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===Xe.none}))})),i=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===Xe.left}))})),o=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===Xe.right}))}));return n?d(d({},t),{half:Xe.none,suboptions:t.suboptions.map((function(e){var t=n.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{half:Xe.none,quantity:t?t.quantity:0})}))}):r.isHalf||i&&o?(r.isHalf=!0,[d(d({},t),{half:Xe.left,suboptions:t.suboptions.map((function(e){var t=i.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{half:Xe.left,quantity:t?t.quantity:0})}))}),d(d({},t),{half:Xe.right,suboptions:t.suboptions.map((function(e){var t=o.suboptions.find((function(t){return t.id===e.id}));return d(d({},e),{half:Xe.right,quantity:t?t.quantity:0})}))})]):[t]})),e.product.ingredients.length&&n.forEach((function(t){var n=e.product.ingredients.find((function(e){return e===t.id}));r.ingredients.push(d(d({},t),{quantity:n?0:1}))})),r};u(".suboptionsCheckbox{align-items:center;display:flex;flex-direction:column}.suboptionsCheckbox .suboptionCheckbox{align-items:center;border:1px solid #ccc;border-radius:100px;cursor:pointer;display:flex;font-size:16px;font-weight:500;justify-content:space-between;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.suboptionsCheckbox .suboptionCheckbox:last-child{margin:0}.suboptionsCheckbox .suboptionCheckbox:hover{opacity:.9}.suboptionsCheckbox .suboptionCheckbox.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var dt=function(e){var n=e.suboptions,r=e.onSelect,i=e.currency;return t.createElement("div",{className:"suboptionsCheckbox"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,o=e.quantity?0:1,function(){return r(n,o)}),className:a("suboptionCheckbox",{selected:!!e.quantity})},t.createElement("span",null,e.name),!!e.price&&_e(i,e.price));var n,o})))},mt=function(e){var r=e.name,o=e.media,a=e.currency,l=e.price,c=e.oldPrice,s=e.description,u=e.totalPrice,m=e.allowComments,f=e.options,h=e.optionsHalf,g=e.max,v=e.quantity,x=e.ingredients,b=e.nameOnBox,y=e.comments,w=e.isLoading,E=e.isHalf,k=e.summaryOpen,N=e.onChangeIngredients,C=e.onChangeOption,O=e.onChangeOptionHalf,j=e.onChangeNameOnBox,P=e.onChangeComment,B=e.onAdd,S=e.onRemove,H=e.onAddToCart,R=e.onChangeIsHalf,T=n(null),M=T[0],L=T[1],q=n([]),z=q[0],F=q[1],A=n(0),Z=A[0],_=A[1],I=n(!0),D=I[0],V=I[1];i((function(){var e=p(p([],f,!0),h,!0),t=function(e,t,n){var r=e.filter((function(e){return e.enabled})),i=t.filter((function(e){return e.enabled}));if(i.length){var o={name:"Toppings",enabled:!0,max:1,min:1,id:nt,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:Xe.none,allowSuboptionQuantity:!1,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:rt,quantity:Number(n)}]};r.push(o)}return[].concat(r).concat(i)}(f.filter((function(t){return st(t,e)})),h.filter((function(t){return st(t,e)})),E);if(F(t),x.length&&L(function(e){return{id:tt,min:0,respectTo:null,half:Xe.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!1,allowSuboptionQuantity:!1,max:e.length,name:"Ingredients",suboptions:e.map((function(e){var t;return d(d({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(x)),D&&k){var n=0;t.length&&(n+=t.length),x.length&&(n+=1),m&&(n+=1),_(n)}V(!1)}),[x,f,h,E]);var W=function(){var e=Q()[Z];return!!(null==e?void 0:e.id)&&function(e){var t=e.suboptions.reduce((function(e,t){var n;return(null!==(n=t.quantity)&&void 0!==n?n:0)+e}),0);return 1===e.max&&1===e.min&&1!==t?"Select one of options: "+e.name:e.min>t?"Select at least "+e.min+" for "+e.name:e.max<t&&e.min!==e.max?"Maximum avaliable to select is "+e.max+" for "+e.name:void 0}(e)},U=function(e){var n=1===e.max&&1===e.min,r=e.max>1&&e.allowSuboptionQuantity,i=function(t,n){!function(e){return e===nt}(e.id)?e.withHalfOption?O(e.id,t,e.half,n):C(e.id,t,n):R(function(e){return e===rt}(t))};return n?t.createElement(Je,{key:e.id,currency:a,ingredients:e.suboptions,onSelect:i}):r?t.createElement(Ke,{key:e.id,currency:a,suboptions:e.suboptions,onChangeQuantity:i,limitByMax:e.limitSuboptionsByMax}):t.createElement(dt,{key:e.id,currency:a,suboptions:e.suboptions,onSelect:i})},Q=function(){var e=[];return M&&e.push({name:"Ingredients",component:t.createElement(Me,{ingredients:M.suboptions,onSelect:N})}),e.push.apply(e,z.filter((function(e){return st(e,z)})).map((function(e){return d(d({},e),{name:(t=e,t.name+(t.half===Xe.right?" right":"")+(t.half===Xe.left?" left":"")),component:U(e)});var t}))),m&&e.push({name:"Comments",component:t.createElement($e,{name:b,comment:y,onNameChange:j,onCommentChange:P})}),e.push({name:"Summary",component:t.createElement(et,{summary:ot(M,z.filter((function(e){return!e.withHalfOption})).filter((function(e){return e.id!=nt})),z.filter((function(e){return e.withHalfOption})).filter((function(e){return e.id!=nt})),m?"".concat(y||"-"," | ").concat(b||"-"):null),onClickChange:function(e){return _(e)}})}),e};return t.createElement("div",{className:"productConstructor"},t.createElement("div",{className:"content"},!!o&&t.createElement(We,d({},o)),t.createElement("div",{className:"headProduct"},t.createElement("div",{className:"name"},r),t.createElement("div",{className:"priceControl"},!!c&&t.createElement("div",{className:"oldPrice"},_e(a,c)),!!l&&t.createElement("div",{className:"price"},_e(a,l)))),t.createElement("div",{className:"description"},s)),W()&&t.createElement(Ye,{message:W().toString()}),z.length&&t.createElement(Ge,{steps:Q(),currentStep:Z}),t.createElement(Qe,{isLoading:w,isSummary:Z===Q().length-1,isDisableNext:!!W(),isDisablePrev:0===Z,currency:a,onPrev:function(){return _(Z-1)},onNext:function(){return _(Z+1)},onAddToCart:H,amount:u,count:v,onRemove:S,onAdd:B,isAddDisable:!!g&&v===g,isRemoveDisable:0===v}))};u(".productPreview{cursor:pointer;display:grid;gap:10px;grid-template-columns:300px 1fr}.productPreview .productReviewBody{display:flex;flex-direction:column;justify-content:space-between}.productPreview .productReviewBody .title{color:#1a1d1b;font-size:20px;font-weight:600;margin:0 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.productPreview .productReviewBody .header{align-items:center;display:flex}.productPreview .productReviewBody .description{color:#747474;font-size:16px;font-weight:400;height:125px;overflow:hidden}.productPreview .productReviewFooter{align-items:center;display:flex;justify-content:space-between}.productPreview .productReviewFooter .priceBlock{align-items:center;display:flex;font-size:16px;font-weight:600}.productPreview .productReviewFooter .priceBlock .oldPrice{margin:0 5px}.productPreview .productReviewFooter .priceBlock .currentPrice{color:#007aff}.productPreview .productReviewFooter .priceBlock .newPrice{color:#fe7171}@media (max-width:800px){.productPreview{grid-template-columns:250px 1fr}.productPreview .productReviewBody .description{height:100px}}@media (max-width:650px){.productPreview{grid-template-columns:200px 1fr}.productPreview .tagLabel{display:none}.productPreview .productReviewBody .description{height:65px}}@media (max-width:500px){.productPreview{grid-template-columns:150px 1fr}.productPreview .productReviewBody .description{height:40px}}@media (max-width:400px){.productPreview{grid-template-columns:100px 1fr}.productPreview .productReviewBody .description{height:40px}}");u(".productTags{align-items:center;display:flex;gap:5px}.productTags .additionsNew{background:#016a2b}.productTags .additionVegetarian{background:#9cc653}.productTags .additionVegan{background:#688437}.productTags .additionSpicy{background:#c8313e}.productTags .additionNoGluten{background:#ff7426}");u(".tag{align-items:center;background:#000;border-radius:100px;color:#fff;display:flex;font-size:12px;font-weight:500;gap:5px;height:20px;padding:3px 13px}.tag .icon{fill:#fff;height:15px;width:15px}");var pt=function(e){var n=e.className,r=void 0===n?"":n,i=e.label,o=e.icon;return t.createElement("div",{className:"tag "+r||""},t.createElement("span",{className:"tagLabel"},i),o)},ft=function(e){var n=e.vegan,r=e.vegetarian,i=e.isNew,o=e.spicy,a=e.glutenFree,l=function(){return i?t.createElement(pt,{label:"new",className:"additionItem",icon:t.createElement(pe,null)}):null},c=function(){return n?t.createElement(pt,{label:"vegan",className:"additionVegan",icon:t.createElement(t.Fragment,null,t.createElement(he,null),t.createElement(he,null))}):r?t.createElement(pt,{label:"vegetarian",className:"additionVegetarian",icon:t.createElement(he,null)}):null},s=function(){return o?t.createElement(pt,{label:"spicy",className:"additionSpicy",icon:t.createElement(t.Fragment,null,Array(o).fill(0).map((function(e,n){return t.createElement(ge,{key:n})})))}):null},u=function(){return a?t.createElement(pt,{label:"free gluten",className:"additionNoGluten",icon:t.createElement(ve,null)}):null};return l()||c()||s()||u()?t.createElement("div",{className:"productTags"},l(),c(),s(),u()):null},ht=function(e){var n=e.id,r=e.currency,i=e.name,o=e.description,l=e.price,c=e.oldPrice,s=e.image,u=e.trashIcon,d=void 0!==u&&u,m=e.onClickTrash,p=e.onClick,f=e.vegetarian,h=e.vegan,g=e.isNew,v=e.spicy,x=e.glutenFree,b=e.quantity;return t.createElement("div",{className:"productPreview",onClick:function(){null==p||p(n)}},t.createElement(We,{src:s.src,alt:s.alt,settings:s.settings}),t.createElement("div",{className:"productReviewBody"},t.createElement("div",{className:"productReviewHead"},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},i),d&&t.createElement(me,{onClick:function(e){e.stopPropagation(),null==m||m(n)},width:20,height:20})),t.createElement("div",{className:"description",dangerouslySetInnerHTML:{__html:o}})),t.createElement("div",{className:"productReviewFooter"},t.createElement("div",{className:"options"},t.createElement(ft,{isNew:g,spicy:v,vegan:h,glutenFree:x,vegetarian:f})),t.createElement("div",{className:"priceBlock"},!!c&&t.createElement("div",{className:a("oldPrice",{lineThrough:!b})},_e(r,c)),!!b&&t.createElement("span",{className:"quantity"}," x",b," "),!!l&&t.createElement("div",{className:a("currentPrice",{newPrice:!!c&&!b})},_e(r,l))))))};u(".productPreviewList .category .categoryName{color:#0e1328;font-size:24px;font-weight:600;margin:30px 0 20px}.productPreviewList .category .productPreview{border-bottom:1px solid #ccc;padding:16px 0}");var gt=function(e){var n=e.categories,r=e.onClickProduct;return t.createElement("div",{className:"productPreviewList"},n.map((function(e){return t.createElement("div",{key:e.name,className:"category"},t.createElement("div",{id:e.name,className:"categoryName"},e.name),e.products.map((function(n){return t.createElement(ht,d({key:n.id},n,{onClick:function(t){return r(e.id,t)}}))})))})))};u(".restaurantHeader .restaurantHeaderTop{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName{align-items:center;color:#007aff;display:flex;font-size:32px;font-weight:700}.restaurantHeader .restaurantHeaderTop .restaurantHeaderName .icon{margin:0 0 0 12px}.restaurantHeader .restaurantHeaderTop .topLeft{align-items:center;display:flex}.restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 0 0 10px}.restaurantHeader .restaurantHeaderBottom{align-items:center;display:flex;justify-content:space-between}.restaurantHeader .restaurantHeaderBottom .bottomRight{align-items:center;display:flex;gap:10px}.rtl .restaurantHeader .restaurantHeaderTop .topLeft .restaurantTags{margin:0 10px 0 0}.rtl .restaurantHeader .restaurantHeaderName icon{margin:0 12px 0 0}");u(".restaurantTags{align-items:center;display:flex;gap:10px}.restaurantTags .restaurantTagNew{background:#007aff;color:#fff}.restaurantTags .restaurantTagScore{background:#fff;border:1px solid #007aff;color:#007aff}.restaurantTags .restaurantTagScore .icon{fill:#007aff!important}.restaurantTags .restaurantTagKosher{background:#000;color:#fff}");var vt=function(e){var n=e.score,r=e.isNew,i=e.kosher;return t.createElement("div",{className:"restaurantTags"},!!r&&t.createElement(pt,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&t.createElement(pt,{label:n.toFixed(1),className:"restaurantTagScore",icon:t.createElement(pe,null)}),!!i&&t.createElement(pt,{label:"kosher",className:"restaurantTagKosher"}))};u(".headerCartButton{align-items:center;background:var(--main-color,#007aff);border-radius:var(--border-radius,5px);color:#fff;cursor:pointer;display:flex;height:45px;justify-content:space-between;padding:0 20px}.headerCartButton .icon{fill:#fff;margin:0 10px 0 0}.headerCartButton .label{margin:0 50px 0 0}.rtl .headerCartButton .icon{margin:0 0 0 10px}.rtl .headerCartButton .label{margin:0 0 0 50px}");var xt=function(e){var n=e.currency,r=e.amount,i=e.onClick;return t.createElement("div",{className:"headerCartButton",onClick:i},t.createElement(be,{className:"icon"}),t.createElement("span",{className:"label"},"Checkout"),t.createElement("span",{className:"price"},_e(n,r)))};u(".footer{justify-content:flex-start!important;width:100%}.footer .icon{height:20px;width:20px}@media (max-width:600px){.footer{height:30px!important}.footer .footer{padding:0!important}}.footer .footer{padding:0}.footer .footer-item{align-items:center;color:#747474;display:flex!important;font-size:14px;margin:0 13px 0 0;white-space:nowrap}.footer .footer-item:nth-last-child(2){margin:0!important}.footer .footer-item .icon,.footer .footer-item .title{margin-right:4px}@media (max-width:500px){.footer .footer-item{margin:0 5px 0 0}.footer .footer-item .title{display:none}}@media (min-width:1600px){.footer .footer-item{font-size:12px!important}}@media (max-width:600px){.footer .footer-item{font-size:12px}.footer .footer-item .icon{display:none!important}}.footer .footer-item.delivery-price .freeDelivery{align-items:center;background:var(--main-color);border-radius:100px;color:#fff;display:flex;justify-content:center;padding:3px 7px}.footer .footer-item.delivery-price .freeDelivery .icon{margin:0}@media (max-width:800px){.footer .footer-item.delivery-price span{display:none}}.footer .footer-item .clock,.footer .footer-item .marker,.footer .footer-item .scooterDelivery{background-color:#9d9d9d;height:24px;-webkit-transform:translate(0);transform:translate(0);width:24px}.rtl .footer .footer-item,.rtl .footer .footer-item:nth-last-child(2){margin:0 13px 0 0!important}.rtl .footer .footer-item:first-child{margin:0!important}.rtl .footer .footer-item .icon,.rtl .footer .footer-item .title{margin-left:4px;margin-right:0}");var bt=function(e){var r=e.dontHide,o=e.minimum,l=e.isPickUp,c=e.withTitle,u=e.estimationRangeMax,d=e.estimationRangeMin,m=e.estimationTime,p=e.distance,f=e.deliveryPrice,h=e.currency,g=e.deliveryToLocation,v=n([]),x=v[0],b=v[1];return i((function(){var e=[];o&&e.push(t.createElement("div",{className:a("footer-item mini-order")},t.createElement(be,null),c&&t.createElement("span",{className:a("title")},"Min order"),_e(h,o))),p&&!l&&e.push(t.createElement("span",{className:a("footer-item")},t.createElement(ke,null),c&&t.createElement("div",{className:a("title")},"Distance"),"distanceKm ",p)),(u||d)&&e.push(t.createElement("div",{className:a("time footer-item")},l?t.createElement(we,null):t.createElement(Ne,null),c&&t.createElement("div",{className:a("title")},l?"Pickup time":"Delivery time"),d,"-",u," min")),!l&&g&&e.push(t.createElement("div",{className:a("footer-item delivery-price")},t.createElement(ye,null),c&&t.createElement("span",{className:a("title")},"deliveryPrice"),f?_e(h,f):t.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",t.createElement(Ce,null)," "))),0===u&&0===d&&m&&e.push(t.createElement("div",{className:a("time footer-item")},l?t.createElement(Ne,null):t.createElement(we,null),"up_to ",m,"  min")),b(e)}),[o,l,u,d,m,p,f,h,g]),t.createElement(s,{className:"footer benefitsData",minVisibleItems:r?x.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:x})},yt=function(e){var n=e.name,r=e.isFavorite,i=e.isNew,o=e.kosher,a=e.score,l=e.cartAmount,c=e.alternativeView,s=e.currency,u=e.searchValue,d=e.onSearch,m=e.onCartClick;return t.createElement("div",{className:"restaurantHeader"},t.createElement("div",{className:"restaurantHeaderTop"},t.createElement("div",{className:"topLeft"},t.createElement("div",{className:"restaurantHeaderName"},n,r?t.createElement(pe,null):t.createElement(fe,null)),(!!l||c)&&t.createElement(vt,{isNew:i,kosher:o,score:a})),t.createElement("div",{className:"topRight"},!!l&&!c&&t.createElement(xt,{onClick:m,amount:l,currency:s}))),t.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&t.createElement(vt,{isNew:i,kosher:o,score:a}),t.createElement("div",{className:"benefits"},t.createElement(bt,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&t.createElement("div",{className:"bottomRight"},t.createElement(Ae,{className:"input",placeholder:"Search in menu...",icon:t.createElement(xe,null),value:u,onChange:d}),t.createElement(xt,{onClick:m,amount:l,currency:s}))))},wt=o(null).Provider;export{Te as CounterButton,Xe as HALF_OPTION,tt as INGREDIENTS,ye as IconBicycle,be as IconCart,we as IconClockAfternoon,Ee as IconClose,ke as IconMapPin,He as IconMinus,Pe as IconMute,ve as IconNoGluten,je as IconPause,Ne as IconPersonSimpleWalk,Oe as IconPlay,Se as IconPlus,xe as IconSearch,Ce as IconSparkle,ge as IconSpicy,pe as IconStar,fe as IconStarBorder,me as IconTrash,Be as IconUnmute,he as IconVegan,Re as IconWarning,Me as IngredientsSelector,Ae as Input,We as Media,mt as ProductConstructor,ht as ProductPreview,gt as ProductPreviewList,ft as ProductTags,yt as RestaurantHeader,Ge as Stepper,Ke as SuboptionMultiSelector,Je as SuboptionRadioSelector,wt as TranslationUIProvider,Ye as Warning,st as checkRespectTo,ct as convertToServerModelOptions,ut as mergeProduct,it as prepareHalfOptions};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delivapp-ordering",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/cjs/index.js",
@@ -42,8 +42,6 @@
42
42
  "@typescript-eslint/parser": "^5.59.9",
43
43
  "autoprefixer": "^8.4.14",
44
44
  "babel-loader": "^8.3.0",
45
- "classnames": "^2.3.2",
46
- "cloudinary-react": "^1.8.1",
47
45
  "eslint": "^8.32.0",
48
46
  "eslint-config-standard-with-typescript": "^31.0.0",
49
47
  "eslint-plugin-n": "^15.6.1",
@@ -52,7 +50,6 @@
52
50
  "eslint-plugin-storybook": "^0.6.12",
53
51
  "postcss": "^8.4.24",
54
52
  "postcss-loader": "^7.3.2",
55
- "react-overflow-list": "^0.5.0",
56
53
  "rollup": "^3.10.1",
57
54
  "rollup-plugin-dts": "^5.1.1",
58
55
  "rollup-plugin-postcss": "^4.0.2",
@@ -63,6 +60,9 @@
63
60
  "url-loader": "^4.1.1"
64
61
  },
65
62
  "dependencies": {
63
+ "classnames": "^2.3.2",
64
+ "react-overflow-list": "^0.5.0",
65
+ "cloudinary-react": "^1.8.1",
66
66
  "react": "^17.0.2",
67
67
  "react-dom": "^17.0.2"
68
68
  }