delivapp-ordering 0.0.15 → 0.0.17
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 +1 -1
- package/dist/cjs/types/components/BagesPaymentsOrderSummary/BagesPaymentsOrderSummary.d.ts +10 -0
- package/dist/cjs/types/components/BagesPaymentsOrderSummary/index.d.ts +1 -0
- package/dist/cjs/types/components/CheckoutFormItem/CheckoutFormItem.d.ts +9 -0
- package/dist/cjs/types/components/CheckoutFormItem/index.d.ts +1 -0
- package/dist/cjs/types/components/DeliveryControl/DeliveryControl.d.ts +10 -0
- package/dist/cjs/types/components/DeliveryControl/index.d.ts +1 -0
- package/dist/cjs/types/components/Icons/index.d.ts +4 -0
- package/dist/cjs/types/components/OrderSummary/OrderSummary.d.ts +26 -0
- package/dist/cjs/types/components/OrderSummary/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +3 -0
- package/dist/cjs/types/enums/enums.d.ts +13 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/BagesPaymentsOrderSummary/BagesPaymentsOrderSummary.d.ts +10 -0
- package/dist/esm/types/components/BagesPaymentsOrderSummary/index.d.ts +1 -0
- package/dist/esm/types/components/CheckoutFormItem/CheckoutFormItem.d.ts +9 -0
- package/dist/esm/types/components/CheckoutFormItem/index.d.ts +1 -0
- package/dist/esm/types/components/DeliveryControl/DeliveryControl.d.ts +10 -0
- package/dist/esm/types/components/DeliveryControl/index.d.ts +1 -0
- package/dist/esm/types/components/Icons/index.d.ts +4 -0
- package/dist/esm/types/components/OrderSummary/OrderSummary.d.ts +26 -0
- package/dist/esm/types/components/OrderSummary/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +3 -0
- package/dist/esm/types/enums/enums.d.ts +13 -0
- package/dist/index.d.ts +81 -48
- package/package.json +1 -1
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 a(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 o=a(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],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.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(".bagesPaymentSummary{align-items:center;display:flex;justify-content:space-around;position:relative}.bagesPaymentSummary .discountItem{align-items:center;border-right:2px solid #cfd1d4;display:flex;flex-direction:column;justify-content:center;margin:20px 0 0;padding:5px 0 0;width:100%}.bagesPaymentSummary .discountItem:last-child{border-right:none}.bagesPaymentSummary .discountItem .doneBg{align-items:center;background:var(--main-color);border-radius:100px;display:flex;height:15px;justify-content:center;position:absolute;top:15px;-webkit-transform:translateX(15px);transform:translateX(15px);width:15px;z-index:2}.bagesPaymentSummary .discountLabel{display:inline-block;font-size:12px;font-weight:500;margin:5px 0 0;text-align:center}");var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);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 a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);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 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 b;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 k;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 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 I,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 L;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 T,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 z;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 _,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 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 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 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 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 ae,oe;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 le,ce;function se(){return se=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},se.apply(this,arguments)}var ue;function pe(){return pe=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},pe.apply(this,arguments)}var de;function me(){return me=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},me.apply(this,arguments)}var fe,he,ge,ve,xe,ye,be,we=20,Ee=25,Ne=30,ke=function(t,n){return function(r){var a=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?we:"big"===e?Ne:e||Ee}(r.size);return e.createElement(t,l({width:o,height:o},r,{style:a,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},Oe=ke((function(e){return o.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},e),u||(u=o.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=ke((function(e){return o.createElement("svg",m({width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d||(d=o.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=ke((function(e){return o.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=o.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"),je=ke((function(e){return o.createElement("svg",v({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},e),g||(g=o.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"),Be=ke((function(e){return o.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),x||(x=o.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"),Ie=ke((function(e){return o.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),b||(b=o.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"),Se=ke((function(e){return o.createElement("svg",N({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},e),E||(E=o.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=ke((function(e){return o.createElement("svg",O({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},e),k||(k=o.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"),Le=ke((function(e){return o.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=o.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=o.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=o.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Fe=ke((function(e){return o.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),I||(I=o.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),S||(S=o.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Te=ke((function(e){return o.createElement("svg",F({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},e),L||(L=o.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"),Me=ke((function(e){return o.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),T||(T=o.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),M||(M=o.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"),Ae=ke((function(e){return o.createElement("svg",R({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),z||(z=o.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"),ze=ke((function(e){return o.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),_||(_=o.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"})),q||(q=o.createElement("path",{d:"M11 1v3M12.5 2.5h-3M14 4.5v2M15 5.5h-2",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke fillByFill"),Re=ke((function(e){return o.createElement("svg",V({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),D||(D=o.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"),_e=ke((function(e){return o.createElement("svg",U({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),W||(W=o.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"),qe=ke((function(e){return o.createElement("svg",Q({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),G||(G=o.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"),Ze=ke((function(e){return o.createElement("svg",X({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),K||(K=o.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"),De=ke((function(e){return o.createElement("svg",ee({width:"1em",height:"1em",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg"},e),$||($=o.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"),Ve=ke((function(e){return o.createElement("svg",Y({width:"1em",height:"1em",viewBox:"0 0 23 4",xmlns:"http://www.w3.org/2000/svg"},e),J||(J=o.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"),We=ke((function(e){return o.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=o.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=o.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),Ue=ke((function(e){return o.createElement("svg",ie({width:"1em",height:"1em",viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},e),ae||(ae=o.createElement("g",{clipPath:"url(#gift_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},o.createElement("path",{d:"M1.4 6.207a.1.1 0 0 0-.1.1v3a.1.1 0 0 0 .1.1h16.5a.1.1 0 0 0 .1-.1v-3a.1.1 0 0 0-.1-.1H1.4Zm-1.4.1a1.4 1.4 0 0 1 1.4-1.4h16.5a1.4 1.4 0 0 1 1.4 1.4v3a1.4 1.4 0 0 1-1.4 1.4H1.4a1.4 1.4 0 0 1-1.4-1.4v-3Z"}),o.createElement("path",{d:"M2.15 9.407a.65.65 0 0 1 .65.65v6.75a.1.1 0 0 0 .1.1h13.5a.1.1 0 0 0 .1-.1v-6.75a.65.65 0 0 1 1.3 0v6.75a1.4 1.4 0 0 1-1.4 1.4H2.9a1.4 1.4 0 0 1-1.4-1.4v-6.75a.65.65 0 0 1 .65-.65Z"}),o.createElement("path",{d:"M9.65 4.907a.65.65 0 0 1 .65.65v12a.65.65 0 1 1-1.3 0v-12a.65.65 0 0 1 .65-.65Z"}),o.createElement("path",{d:"M11.17 1.769c-.162.163-.32.452-.456.86a7.639 7.639 0 0 0-.288 1.297c-.05.35-.08.681-.098.954.272-.019.603-.049.953-.099a7.632 7.632 0 0 0 1.296-.288c.409-.135.698-.294.861-.456a1.604 1.604 0 0 0-2.268-2.268ZM9.65 5.557H9v-.043l.002-.11a14.514 14.514 0 0 1 .137-1.66c.07-.487.176-1.026.341-1.524.162-.488.4-.997.768-1.367L10.25.85a2.904 2.904 0 1 1 4.107 4.106l-.002.002c-.371.368-.88.606-1.368.768a8.914 8.914 0 0 1-1.523.341 14.517 14.517 0 0 1-1.77.139H9.65l-.001-.65Zm0 0v.65a.65.65 0 0 1-.65-.65h.65Z"}),o.createElement("path",{d:"M4.943.85a2.904 2.904 0 0 1 4.107 0l.002.003c.368.37.606.88.768 1.367.165.498.271 1.037.34 1.523a14.57 14.57 0 0 1 .14 1.77V5.557l-.65.001v.65h-.043l-.111-.002a14.518 14.518 0 0 1-1.66-.137 8.914 8.914 0 0 1-1.524-.341c-.487-.162-.996-.4-1.367-.768l-.002-.002a2.904 2.904 0 0 1 0-4.106ZM9.65 5.558v.65a.65.65 0 0 0 .65-.65h-.65Zm-.678-.678a12.958 12.958 0 0 0-.098-.953 7.634 7.634 0 0 0-.288-1.296c-.136-.409-.295-.698-.456-.861A1.604 1.604 0 0 0 5.86 4.037c.164.162.453.32.861.456.399.133.855.225 1.297.288.35.05.68.08.953.099Z"}))),oe||(oe=o.createElement("defs",null,o.createElement("clipPath",{id:"gift_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h20v19H0z"})))))}),"fillByFill"),Ge=ke((function(e){return o.createElement("svg",se({width:"1em",height:"1em",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},e),le||(le=o.createElement("g",{clipPath:"url(#percent_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},o.createElement("path",{d:"M15.32 1.18c.24.24.24.63 0 .87L2.55 14.82a.615.615 0 0 1-.87-.87L14.45 1.18c.24-.24.63-.24.87 0ZM4 1.39a2.11 2.11 0 1 0 0 4.22 2.11 2.11 0 0 0 0-4.22ZM.5 3.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0ZM13 10.39a2.11 2.11 0 1 0 0 4.22 2.11 2.11 0 0 0 0-4.22ZM9.5 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Z"}))),ce||(ce=o.createElement("defs",null,o.createElement("clipPath",{id:"percent_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h17v16H0z"})))))}),"fillByFill"),Qe=ke((function(e){return o.createElement("svg",pe({width:"1em",height:"1em",viewBox:"0 0 22 18",xmlns:"http://www.w3.org/2000/svg"},e),ue||(ue=o.createElement("path",{d:"M5.347 8.514c.047.072.109.142.146.222.106.227.208.459.297.693.025.063.047.1.114.108 1.212.15 2.085.813 2.731 1.82.285.444.492.926.668 1.44.008.02-.928.336-.935.316-.035-.092-.064-.18-.099-.267-.235-.6-.532-1.16-1-1.61a2.535 2.535 0 0 0-1.62-.727c-.648-.047-1.272.04-1.858.34-.621.316-1.042.823-1.346 1.441-.255.517-.396 1.068-.48 1.636-.005.033.022.06.054.06h6.717c2.091 0 4.182 0 6.272-.002a.508.508 0 0 0 .243-.063 41.67 41.67 0 0 1 4.04-2.07c.04-.017.042-.075.005-.097a1.95 1.95 0 0 0-1.368-.222c-.507.097-.9.394-1.262.753-.015.013-.767-.628-.752-.643.487-.524 1.054-.903 1.761-1.085a.055.055 0 0 0 .04-.063c-.047-.26-.084-.518-.148-.773a8.286 8.286 0 0 0-.859-2.162c-.193-.332-.413-.649-.618-.973-.05-.077-.114-.092-.2-.087a1.45 1.45 0 0 1-1.18-.457 1.444 1.444 0 0 1-.41-1.11c.006-.087-.017-.12-.093-.157-.532-.262-1.062-.531-1.591-.798-.02-.01.425-.903.448-.89.361.182.71.359 1.061.533.183.093.366.19.552.277a.144.144 0 0 0 .124-.015c.299-.257.645-.369 1.034-.369h1.299c.024 0 .012.998-.018.998-.433 0-.866-.003-1.298 0-.347.002-.572.26-.522.588a.482.482 0 0 0 .487.407c.425.005.848 0 1.274 0h.144c.03 0 .054.025.054.055 0 .294-.002.578.002.86 0 .065.03.162.065.217.65 1.06 1.108 2.198 1.318 3.43.02.122.04.244.057.367.01.064.028.094.104.107.745.13 1.37.461 1.794 1.11.111.17.193.356.29.543a.054.054 0 0 1-.028.075c-.316.132-.63.26-.94.394a39 39 0 0 0-4.404 2.255.417.417 0 0 1-.21.057c-2.291.003-4.585.003-6.876.003-.076 0-.118.002-.138.102-.25 1.22-1.203 2.16-2.417 2.355-1.334.214-2.549-.447-3.115-1.57-.134-.264-.22-.55-.332-.847a.054.054 0 0 0-.05-.035H.979a.055.055 0 0 1-.055-.055c-.002-.172-.007-.334.003-.499.077-1.28.388-2.479 1.21-3.497.591-.733 1.363-1.17 2.28-1.349.097-.02.194-.035.298-.05.034-.005.054-.042.042-.075a1.398 1.398 0 0 0-.596-.676c-.394-.234-.83-.284-1.272-.289-.76-.005-1.517-.003-2.276 0H.495a.055.055 0 0 1-.054-.055V.577c0-.03.025-.055.054-.055h8.79c.03 0 .055.025.055.055v.108c0 2.23 0 4.46-.002 6.69 0 .101.067.191.163.221.735.215 1.163.838 1.302 1.581.054.297-.035.564-.09.843-.074.372-.118.746-.042 1.123.104.524.352.775.886.83.57.058 1.116-.027 1.613-.341.48-.307.762-.761.945-1.285.225-.638.287-1.302.275-1.973-.01-.419-.042-.84-.067-1.28 0-.02.965-.141.967-.119.025.24.06.471.065.703.01.49.027.98-.003 1.47-.054.895-.264 1.753-.791 2.499-.508.718-1.203 1.14-2.064 1.282-.457.075-.918.087-1.373-.025-.826-.207-1.291-.8-1.43-1.611a3.798 3.798 0 0 1 .099-1.652c.084-.309-.007-.563-.166-.805-.168-.257-.435-.337-.72-.337-1.18-.008-2.358-.003-3.538-.003-.01.003-.012.008-.022.018Zm.027-6.941v2.895c0 .02-.99.02-.99 0V1.573a.055.055 0 0 0-.054-.055H1.483a.055.055 0 0 0-.055.055V7.44c0 .03.025.055.055.055h6.806c.03 0 .054-.025.054-.055V1.573a.055.055 0 0 0-.054-.055H5.426c-.03 0-.052.025-.052.055Zm-1.83 13.41c-.035 0-.062.036-.053.068a1.965 1.965 0 0 0 2.13 1.414c.77-.087 1.619-.835 1.653-1.426a.054.054 0 0 0-.054-.058H3.543v.003ZM15.555 15.732c-.007-.017 0-.04.017-.047.27-.122.54-.242.814-.364a.052.052 0 0 1 .07.025c.28.553.71.93 1.311 1.08.51.127 1.007.06 1.467-.21.812-.474 1.287-1.544.78-2.636a.053.053 0 0 1 .022-.07c.252-.14.507-.28.774-.424a.052.052 0 0 1 .074.025c.443.925.473 1.858-.012 2.763-.614 1.148-1.606 1.682-2.892 1.594-1.104-.08-2.044-.83-2.425-1.736Z"})))}),"fillByFill"),Ke=ke((function(e){return o.createElement("svg",me({width:"1em",height:"1em",viewBox:"0 0 9 7",stroke:"#000",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),de||(de=o.createElement("path",{d:"M7.834 1 3.167 6 .834 3.5",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke");!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"}(fe||(fe={})),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"}(ge||(ge={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(ve||(ve={})),function(e){e[e.common=0]="common",e[e.bonus=1]="bonus"}(xe||(xe={})),function(e){e[e.delivery=1]="delivery",e[e.takeAway=2]="takeAway",e[e.virtualVenue=3]="virtualVenue"}(ye||(ye={})),function(e){e[e.products=0]="products",e[e.delivery=1]="delivery"}(be||(be={}));var Xe=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},Je=function(e,t){var n="";return e&&(n=ve[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n};i(".checkoutFormItem .checkoutFormItemLabel{align-items:center;display:flex;font-size:22px;font-weight:600}.checkoutFormItem .checkoutFormItemLabel .change{font-size:14px}.checkoutFormItem .checkoutFormItemData{align-items:center;display:flex;font-size:18px;margin:5px 0 0}.checkoutFormItem .change{color:var(--main-color,#007aff);cursor:pointer;font-size:18px;font-weight:600;margin:0 0 0 20px}");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 Ye=function(n){var r=n.count,a=n.isRemoveDisable,o=n.isAddDisable,i=n.onAdd,l=n.onRemove;return e.createElement("div",{className:"counterButton"},e.createElement(Ve,{color:"var(--main-color, #007aff)",onClick:l,className:t("control",{disable:a})}),e.createElement("div",{className:"control count"},r),e.createElement(De,{color:"var(--main-color, #007aff)",onClick:i,className:t("control",{disable:o})}))};i(".deliveryControl{align-items:center;display:flex;justify-content:flex-start}.deliveryControl .control{align-items:center;background:none;border:1px solid var(--main-color,#007aff);border-radius:5px;color:var(--main-color,#007aff);cursor:pointer;display:flex;font-size:16px;font-weight:500;justify-content:center;margin:0 20px 0 0;padding:10px 15px}.deliveryControl .control.disable{opacity:.5;pointer-events:none}.deliveryControl .control .icon{margin:0 10px 0 0}.deliveryControl .control.selected{background:var(--main-color);color:#fff!important}@media (max-width:600px){.deliveryControl{display:grid;gap:10px;grid-template-columns:1fr 1fr}.deliveryControl .control{font-size:16px;height:40px;margin:0;padding:10px 3px;white-space:nowrap;width:100%}.deliveryControl .control .icon{height:20px;width:20px}}");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 $e=function(n){var r=n.ingredients,a=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 a(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 et=function(t){var n=t.icon,r=t.debounce,a=t.onChange,o=c(t,["icon","debounce","onChange"]),i=e.useState(null),s=i[0],u=i[1];return e.useEffect((function(){var e=setTimeout((function(){a&&a(s)}),r);return function(){return clearTimeout(e)}}),[s]),e.createElement("label",{className:"labelInput"},n&&n,e.createElement("input",l({},o,{onChange:function(e){u(e)}})))};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 tt=function(t){var r=t.src,a=t.alt,o=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:a},e.createElement(n.Transformation,{width:o,height:i,quality:l,gravity:c,crop:s}),e.createElement(n.Transformation,{fetchFormat:"auto"}))},nt=function(t){var n=t.autoPlay,r=t.onStart,a=t.id,o=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(Re,{color:"var(--main-color)",className:"control",onClick:m}),u.playing&&e.createElement(_e,{color:"var(--main-color)",className:"control",onClick:m}),u.muted&&e.createElement(qe,{color:"var(--main-color)",className:"control",onClick:f}),!u.muted&&e.createElement(Ze,{color:"var(--main-color)",className:"control",onClick:f})),e.createElement(rt,{autoPlay:n,src:o,onPlay:function(){r&&r(),p((function(e){return l(l({},e),{playing:!0})}))},onEnded:function(){i&&i()},videoRef:d,id:a}))},rt=function(t){var n=t.videoRef,r=t.src,a=t.id,o=t.onPlay,i=t.onEnded,l=t.autoPlay;return e.createElement("video",{ref:n,src:r,id:a,onPlay:function(){o&&o()},autoPlay:l,onEnded:function(){i&&i()}})},at=function(t){var n=t.src,r=t.settings,a=t.alt,o=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(tt,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Xe(he,(null==r?void 0:r.gravity_mode)||0),crop:Xe(fe,(null==r?void 0:r.crop_mode)||0),src:h,alt:a,id:o})),f&&e.createElement(nt,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Xe(he,(null==r?void 0:r.gravity_mode)||0),crop:Xe(fe,(null==r?void 0:r.crop_mode)||0),id:o,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 ot=function(){return e.createElement("div",{className:"lds-dual-ring"})},it=function(n){var r=n.isSummary,a=n.isLoading,o=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(Ye,{count:p,isRemoveDisable:m||a,isAddDisable:d||a,onAdd:f,onRemove:h}),e.createElement("div",{onClick:g,className:t("button major",{disable:a})},a?e.createElement(ot,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,Je(c,l))))):e.createElement(e.Fragment,null,e.createElement("div",{onClick:s,className:t("button",{disable:i||a})},"Back"),e.createElement("div",{onClick:u,className:t("button major",{disable:o||a})},a?e.createElement(ot,null):e.createElement(e.Fragment,null,"Next ",Je(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 lt=function(n){var r=n.steps,a=n.currentStep,o=r[a].component,i=r[a].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,o){return e.createElement(e.Fragment,{key:o},e.createElement("div",{className:t("step",{active:o===a})}),o!==r.length-1&&e.createElement("div",{className:"line"}))}))),o)};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 ct=function(n){var r=n.suboptions,a=n.onChangeQuantity,o=n.currency,i=n.limitByMax,l=function(e,t){return function(){return a(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"},"+",Je(o,n.price)),e.createElement(Ye,{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 st=function(n){var r=n.ingredients,a=n.onSelect,o=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 a(r,i)}),className:t("extra",{selected:!!n.quantity})},e.createElement("span",{className:"extraName"},n.name),!!n.price&&e.createElement("span",{className:"extraPrice"},"+",Je(o,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 ut=function(t){var n=t.message;return e.createElement("div",{className:"warning"},e.createElement(We,{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 pt=function(t){var n=t.name,r=t.comment,a=t.onCommentChange,o=t.onNameChange;return e.createElement("div",{className:"productCommentSection"},e.createElement("span",{className:"inputName"},"Add Name"),e.createElement(et,{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}),e.createElement("span",{className:"inputName"},"Add Comment"),e.createElement(et,{onChange:function(e){var t;a(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 dt,mt=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"))})))},ft="#INGREDIENTS",ht="#HALF_SELECTOR",gt="#HALF_SELECTOR_HALF";exports.HALF_OPTION=void 0,(dt=exports.HALF_OPTION||(exports.HALF_OPTION={}))[dt.none=0]="none",dt[dt.left=1]="left",dt[dt.right=2]="right";var vt=function(e,t,n,r){var a,o=[],i=0;if((null===(a=null==e?void 0:e.suboptions)||void 0===a?void 0:a.length)&&o.push({name:"Ingredients",value:yt(e.suboptions),index:i++}),t.forEach((function(e){o.push({name:e.name,value:xt(e.suboptions),index:i++})})),n.length){var l=n.some((function(e){return e.half===exports.HALF_OPTION.right}));o.push({name:"Toppings",value:l?"Half":"Full",index:i++})}return n.forEach((function(e){o.push({name:e.name,value:xt(e.suboptions),index:i++})})),r&&o.push({name:"Comments",value:r,index:i++}),o},xt=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},yt=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")},bt=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 wt=function(n){var r=n.suboptions,a=n.onSelect,o=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 a(r,i)}),className:t("suboptionCheckbox",{selected:!!n.quantity})},e.createElement("span",null,n.name),!!n.price&&Je(o,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 Et=function(t){var n=t.className,r=void 0===n?"":n,a=t.label,o=t.icon;return e.createElement("div",{className:"tag "+r||""},e.createElement("span",{className:"tagLabel"},a),o)},Nt=function(t){var n=t.vegan,r=t.vegetarian,a=t.isNew,o=t.spicy,i=t.glutenFree,l=function(){return a?e.createElement(Et,{label:"new",className:"additionItem",icon:e.createElement(Ce,null)}):null},c=function(){return n?e.createElement(Et,{label:"vegan",className:"additionVegan",icon:e.createElement(e.Fragment,null,e.createElement(je,null),e.createElement(je,null))}):r?e.createElement(Et,{label:"vegetarian",className:"additionVegetarian",icon:e.createElement(je,null)}):null},s=function(){return o?e.createElement(Et,{label:"spicy",className:"additionSpicy",icon:e.createElement(e.Fragment,null,Array(o).fill(0).map((function(t,n){return e.createElement(Be,{key:n})})))}):null},u=function(){return i?e.createElement(Et,{label:"free gluten",className:"additionNoGluten",icon:e.createElement(Ie,null)}):null};return l()||c()||s()||u()?e.createElement("div",{className:"productTags"},l(),c(),s(),u()):null},kt=function(n){var r=n.id,a=n.currency,o=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,y=n.quantity;return e.createElement("div",{className:"productPreview",onClick:function(){null==m||m(r)}},e.createElement(at,{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"},o),p&&e.createElement(Oe,{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(Nt,{isNew:g,spicy:v,vegan:h,glutenFree:x,vegetarian:f})),e.createElement("div",{className:"priceBlock"},!!c&&e.createElement("div",{className:t("oldPrice",{lineThrough:!y})},Je(a,c)),!!y&&e.createElement("span",{className:"quantity"}," x",y," "),!!l&&e.createElement("div",{className:t("currentPrice",{newPrice:!!c&&!y})},Je(a,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 Ot=function(t){var n=t.score,r=t.isNew,a=t.kosher;return e.createElement("div",{className:"restaurantTags"},!!r&&e.createElement(Et,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&e.createElement(Et,{label:n.toFixed(1),className:"restaurantTagScore",icon:e.createElement(Ce,null)}),!!a&&e.createElement(Et,{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,a=t.onClick;return e.createElement("div",{className:"headerCartButton",onClick:a},e.createElement(He,{className:"icon"}),e.createElement("span",{className:"label"},"Checkout"),e.createElement("span",{className:"price"},Je(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 Pt=function(n){var a=n.dontHide,o=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=[];o&&n.push(e.createElement("div",{className:t("footer-item mini-order")},e.createElement(He,null),l&&e.createElement("span",{className:t("title")},"Min order"),Je(m,o))),p&&!i&&n.push(e.createElement("span",{className:t("footer-item")},e.createElement(Me,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(Fe,null):e.createElement(Ae,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(Le,null),l&&e.createElement("span",{className:t("title")},"deliveryPrice"),d?Je(m,d):e.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",e.createElement(ze,null)," "))),0===c&&0===s&&u&&n.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(Ae,null):e.createElement(Fe,null),"up_to ",u," min")),v(n)}),[o,i,c,s,u,p,d,m,f]),e.createElement(r.OverflowList,{className:"footer benefitsData",minVisibleItems:a?g.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:g})},jt=e.createContext(null).Provider;exports.BagesPaymentsOrderSummary=function(t){var n=t.accumulatedPurchaseBonus,r=t.discount,a=t.finalDeliveryPrice,o=t.currency;return e.createElement("div",{className:"bagesPaymentSummary"},0===a&&e.createElement("div",{className:"discountItem"},e.createElement("div",{className:"doneBg"},e.createElement(Ke,{size:12,color:"#fff"})),e.createElement(Qe,null),e.createElement("span",{className:"discountLabel"},"Free delivery")),r>0&&e.createElement("div",{className:"discountItem"},e.createElement("div",{className:"doneBg"},e.createElement(Ke,{size:12,color:"#fff"})),e.createElement(Ge,null),e.createElement("span",{className:"discountLabel"},Je(o,r)," Discount")),n>0&&e.createElement("div",{className:"discountItem"},e.createElement("div",{className:"doneBg"},e.createElement(Ke,{size:12,color:"#fff"})),e.createElement(Ue,null),e.createElement("span",{className:"discountLabel"},n," Bonuses")))},exports.CheckoutFormItem=function(t){var n=t.label,r=t.data,a=t.changeInLabel,o=t.onChangeClick,i=Array.isArray(r);return e.createElement("div",{className:"checkoutFormItem"},e.createElement("div",{className:"checkoutFormItemLabel"},n,a&&e.createElement("span",{className:"change",onClick:o},"Change")),e.createElement("div",{className:"checkoutFormItemData"},i&&e.createElement("div",{className:"arrayData"},r.map((function(t,n){return e.createElement("div",{key:n,className:"checkoutFormItemDataItem"},t)}))),!i&&e.createElement("div",{className:"checkoutFormItemDataItem"},r),!a&&e.createElement("span",{className:"change",onClick:o},"Change")))},exports.CounterButton=Ye,exports.DeliveryControl=function(n){var r=n.type,a=n.onChange,o=n.disableDelivery,i=n.disableTakeAway;return e.createElement("div",{className:"deliveryControl"},e.createElement("div",{className:t("control",{selected:ye.takeAway===r,disable:i}),onClick:function(){return a(ye.takeAway)}},e.createElement(Ae,{size:30,color:r===ye.takeAway?"#fff":"var(--main-color, #007AFF)"}),e.createElement("span",null,"Pick up")),e.createElement("div",{className:t("control",{selected:ye.delivery===r,disable:o}),onClick:function(){return a(ye.delivery)}},e.createElement(Qe,{size:30,color:r===ye.delivery?"#fff":"var(--main-color, #007AFF)"}),e.createElement("span",null,"Delivery")))},exports.INGREDIENTS=ft,exports.IconBicycle=Le,exports.IconCart=He,exports.IconClockAfternoon=Fe,exports.IconClose=Te,exports.IconDone=Ke,exports.IconGift=Ue,exports.IconMapPin=Me,exports.IconMinus=Ve,exports.IconMoto=Qe,exports.IconMute=qe,exports.IconNoGluten=Ie,exports.IconPause=_e,exports.IconPercent=Ge,exports.IconPersonSimpleWalk=Ae,exports.IconPlay=Re,exports.IconPlus=De,exports.IconSearch=Se,exports.IconSparkle=ze,exports.IconSpicy=Be,exports.IconStar=Ce,exports.IconStarBorder=Pe,exports.IconTrash=Oe,exports.IconUnmute=Ze,exports.IconVegan=je,exports.IconWarning=We,exports.IngredientsSelector=$e,exports.Input=et,exports.Media=at,exports.ProductConstructor=function(t){var n=t.name,r=t.media,a=t.currency,o=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,y=t.isLoading,b=t.isHalf,w=t.summaryOpen,E=t.onChangeIngredients,N=t.onChangeOption,k=t.onChangeOptionHalf,O=t.onChangeNameOnBox,C=t.onChangeComment,P=t.onAdd,j=t.onRemove,B=t.onAddToCart,I=t.onChangeIsHalf,S=e.useState(null),H=S[0],L=S[1],F=e.useState([]),T=F[0],M=F[1],A=e.useState(0),z=A[0],R=A[1],_=e.useState(!0),q=_[0],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})),a=t.filter((function(e){return e.enabled}));if(a.length){var o={name:"Toppings",enabled:!0,max:1,min:1,id:ht,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:gt,quantity:Number(n)}]};r.push(o)}return[].concat(r).concat(a)}(d.filter((function(t){return bt(t,e)})),m.filter((function(t){return bt(t,e)})),b);if(M(t),g.length&&L(function(e){return{id:ft,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)),q&&w){var n=0;t.length&&(n+=t.length),g.length&&(n+=1),p&&(n+=1),R(n)}Z(!1)}),[g,d,m,b]);var D=function(){var e=W()[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)},V=function(t){var n=1===t.max&&1===t.min,r=t.max>1&&t.allowSuboptionQuantity,o=function(e,n){!function(e){return e===ht}(t.id)?t.withHalfOption?k(t.id,e,t.half,n):N(t.id,e,n):I(function(e){return e===gt}(e))};return n?e.createElement(st,{key:t.id,currency:a,ingredients:t.suboptions,onSelect:o}):r?e.createElement(ct,{key:t.id,currency:a,suboptions:t.suboptions,onChangeQuantity:o,limitByMax:t.limitSuboptionsByMax}):e.createElement(wt,{key:t.id,currency:a,suboptions:t.suboptions,onSelect:o})},W=function(){var t=[];return H&&t.push({name:"Ingredients",component:e.createElement($e,{ingredients:H.suboptions,onSelect:E})}),t.push.apply(t,T.filter((function(e){return bt(e,T)})).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(pt,{name:v,comment:x,onNameChange:O,onCommentChange:C})}),t.push({name:"Summary",component:e.createElement(mt,{summary:vt(H,T.filter((function(e){return!e.withHalfOption})).filter((function(e){return e.id!=ht})),T.filter((function(e){return e.withHalfOption})).filter((function(e){return e.id!=ht})),p?"".concat(x||"-"," | ").concat(v||"-"):null),onClickChange:function(e){return R(e)}})}),t};return e.createElement("div",{className:"productConstructor"},e.createElement("div",{className:"content"},!!r&&e.createElement(at,l({},r)),e.createElement("div",{className:"headProduct"},e.createElement("div",{className:"name"},n),e.createElement("div",{className:"priceControl"},!!i&&e.createElement("div",{className:"oldPrice"},Je(a,i)),!!o&&e.createElement("div",{className:"price"},Je(a,o)))),e.createElement("div",{className:"description"},c)),D()&&e.createElement(ut,{message:D().toString()}),T.length&&e.createElement(lt,{steps:W(),currentStep:z}),e.createElement(it,{isLoading:y,isSummary:z===W().length-1,isDisableNext:!!D(),isDisablePrev:0===z,currency:a,onPrev:function(){return R(z-1)},onNext:function(){return R(z+1)},onAddToCart:B,amount:u,count:h,onRemove:j,onAdd:P,isAddDisable:!!f&&h===f,isRemoveDisable:0===h}))},exports.ProductPreview=kt,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(kt,l({key:n.id},n,{onClick:function(e){return r(t.id,e)}}))})))})))},exports.ProductTags=Nt,exports.RestaurantHeader=function(t){var n=t.name,r=t.isFavorite,a=t.isNew,o=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(Pe,null)),(!!l||c)&&e.createElement(Ot,{isNew:a,kosher:o,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(Ot,{isNew:a,kosher:o,score:i}),e.createElement("div",{className:"benefits"},e.createElement(Pt,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&e.createElement("div",{className:"bottomRight"},e.createElement(et,{className:"input",placeholder:"Search in menu...",icon:e.createElement(Se,null),value:u,onChange:p}),e.createElement(Ct,{onClick:d,amount:l,currency:s}))))},exports.Stepper=lt,exports.SuboptionMultiSelector=ct,exports.SuboptionRadioSelector=st,exports.TranslationUIProvider=jt,exports.Warning=ut,exports.checkRespectTo=bt,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}))})),a=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===exports.HALF_OPTION.left}))})),o=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||a&&o?(r.isHalf=!0,[l(l({},t),{half:exports.HALF_OPTION.left,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.left,quantity:t?t.quantity:0})}))}),l(l({},t),{half:exports.HALF_OPTION.right,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.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};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import { CURRENCY } from '../../enums/enums';
|
|
4
|
+
export interface BagesPaymentsOrderSummaryProps {
|
|
5
|
+
accumulatedPurchaseBonus?: number;
|
|
6
|
+
discount?: number;
|
|
7
|
+
finalDeliveryPrice?: number;
|
|
8
|
+
currency?: CURRENCY;
|
|
9
|
+
}
|
|
10
|
+
export declare const BagesPaymentsOrderSummary: ({ accumulatedPurchaseBonus, discount, finalDeliveryPrice, currency, }: BagesPaymentsOrderSummaryProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BagesPaymentsOrderSummary, type BagesPaymentsOrderSummaryProps } from './BagesPaymentsOrderSummary';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export interface CheckoutFormItemProps {
|
|
4
|
+
label: string;
|
|
5
|
+
data: string | string[] | number | number[] | ReactNode | ReactNode[];
|
|
6
|
+
changeInLabel: boolean;
|
|
7
|
+
onChangeClick: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const CheckoutFormItem: ({ label, data, changeInLabel, onChangeClick }: CheckoutFormItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckoutFormItem, type CheckoutFormItemProps } from './CheckoutFormItem';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import { DELIVERY_TYPE } from '../../enums/enums';
|
|
4
|
+
export interface DeliveryControlProps {
|
|
5
|
+
type: DELIVERY_TYPE;
|
|
6
|
+
disableTakeAway: boolean;
|
|
7
|
+
disableDelivery: boolean;
|
|
8
|
+
onChange: (v: DELIVERY_TYPE) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DeliveryControl: ({ type, onChange, disableDelivery, disableTakeAway }: DeliveryControlProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type DeliveryControlProps, DeliveryControl } from './DeliveryControl';
|
|
@@ -24,3 +24,7 @@ export declare const IconUnmute: (props: IconProps) => React.JSX.Element;
|
|
|
24
24
|
export declare const IconPlus: (props: IconProps) => React.JSX.Element;
|
|
25
25
|
export declare const IconMinus: (props: IconProps) => React.JSX.Element;
|
|
26
26
|
export declare const IconWarning: (props: IconProps) => React.JSX.Element;
|
|
27
|
+
export declare const IconGift: (props: IconProps) => React.JSX.Element;
|
|
28
|
+
export declare const IconPercent: (props: IconProps) => React.JSX.Element;
|
|
29
|
+
export declare const IconMoto: (props: IconProps) => React.JSX.Element;
|
|
30
|
+
export declare const IconDone: (props: IconProps) => React.JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import { BagesPaymentsOrderSummaryProps } from '../BagesPaymentsOrderSummary';
|
|
4
|
+
import { DELIVERY_TYPE, DISCOUNT_TYPE } from '../../enums/enums';
|
|
5
|
+
export interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
|
|
6
|
+
discountType?: DISCOUNT_TYPE;
|
|
7
|
+
offerType: number;
|
|
8
|
+
offerName: string;
|
|
9
|
+
coupon: string;
|
|
10
|
+
finalPrice: number;
|
|
11
|
+
disabledConfirm: boolean;
|
|
12
|
+
fullPrice: number;
|
|
13
|
+
deliveryPrice: number;
|
|
14
|
+
serviceFee: number;
|
|
15
|
+
topupToMinimum: number;
|
|
16
|
+
driverTip: number;
|
|
17
|
+
hideCoupon: boolean;
|
|
18
|
+
discounts: {
|
|
19
|
+
discount_type: DISCOUNT_TYPE;
|
|
20
|
+
[key: string]: string | number;
|
|
21
|
+
}[];
|
|
22
|
+
deliveryType: DELIVERY_TYPE;
|
|
23
|
+
onConfirm: () => void;
|
|
24
|
+
setCoupon: (s: string) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const OrderSummary: ({ accumulatedPurchaseBonus, discount, finalDeliveryPrice, currency, discountType, offerType, offerName, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, finalPrice, setCoupon, }: OrderSummaryProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type OrderSummaryProps, OrderSummary } from './OrderSummary';
|
|
@@ -42,3 +42,16 @@ export declare enum CURRENCY {
|
|
|
42
42
|
'KZT' = "\u20B8",
|
|
43
43
|
'RUB' = "\u20BD"
|
|
44
44
|
}
|
|
45
|
+
export declare enum DISCOUNT_TYPE {
|
|
46
|
+
common = 0,
|
|
47
|
+
bonus = 1
|
|
48
|
+
}
|
|
49
|
+
export declare enum DELIVERY_TYPE {
|
|
50
|
+
delivery = 1,
|
|
51
|
+
takeAway = 2,
|
|
52
|
+
virtualVenue = 3
|
|
53
|
+
}
|
|
54
|
+
export declare enum DISCOUNT_TARGET {
|
|
55
|
+
products = 0,
|
|
56
|
+
delivery = 1
|
|
57
|
+
}
|
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 a,createContext as i}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],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.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(".bagesPaymentSummary{align-items:center;display:flex;justify-content:space-around;position:relative}.bagesPaymentSummary .discountItem{align-items:center;border-right:2px solid #cfd1d4;display:flex;flex-direction:column;justify-content:center;margin:20px 0 0;padding:5px 0 0;width:100%}.bagesPaymentSummary .discountItem:last-child{border-right:none}.bagesPaymentSummary .discountItem .doneBg{align-items:center;background:var(--main-color);border-radius:100px;display:flex;height:15px;justify-content:center;position:absolute;top:15px;-webkit-transform:translateX(15px);transform:translateX(15px);width:15px;z-index:2}.bagesPaymentSummary .discountLabel{display:inline-block;font-size:12px;font-weight:500;margin:5px 0 0;text-align:center}");var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},m.apply(this,arguments)};function d(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 a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function p(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);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 y;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 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,M;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 L,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 T;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 A,Z;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 _;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 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 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 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 ae(){return ae=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},ae.apply(this,arguments)}var ie,oe;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,se;function ue(){return ue=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},ue.apply(this,arguments)}var me,de;function pe(){return pe=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},pe.apply(this,arguments)}var fe;function he(){return he=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},he.apply(this,arguments)}var ge;function ve(){return ve=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},ve.apply(this,arguments)}var ye,xe,be,we,Ee,ke,Ne,Ce=20,Oe=25,je=30,Pe=function(e,n){return function(r){var a=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}),i=function(e){return"small"===e?Ce:"big"===e?je:e||Oe}(r.size);return t.createElement(e,m({width:i,height:i},r,{style:a,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},Be=Pe((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"),Se=Pe((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"),He=Pe((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),y||(y=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"),Me=Pe((function(t){return e.createElement("svg",w({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"),ze=Pe((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"),Le=Pe((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"),Fe=Pe((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"),Re=Pe((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"),Te=Pe((function(t){return e.createElement("svg",z({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"})),M||(M=e.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),qe=Pe((function(t){return e.createElement("svg",R({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),L||(L=e.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),F||(F=e.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Ae=Pe((function(t){return e.createElement("svg",q({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},t),T||(T=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"),Ze=Pe((function(t){return e.createElement("svg",I({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"),Ie=Pe((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),_||(_=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"),_e=Pe((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"),De=Pe((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"),Ve=Pe((function(t){return e.createElement("svg",X({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"),We=Pe((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"),Ue=Pe((function(t){return e.createElement("svg",ee({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"),Qe=Pe((function(t){return e.createElement("svg",ae({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"),Ge=Pe((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"),Ke=Pe((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),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})),oe||(oe=e.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),Xe=Pe((function(t){return e.createElement("svg",ue({width:"1em",height:"1em",viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},t),ce||(ce=e.createElement("g",{clipPath:"url(#gift_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},e.createElement("path",{d:"M1.4 6.207a.1.1 0 0 0-.1.1v3a.1.1 0 0 0 .1.1h16.5a.1.1 0 0 0 .1-.1v-3a.1.1 0 0 0-.1-.1H1.4Zm-1.4.1a1.4 1.4 0 0 1 1.4-1.4h16.5a1.4 1.4 0 0 1 1.4 1.4v3a1.4 1.4 0 0 1-1.4 1.4H1.4a1.4 1.4 0 0 1-1.4-1.4v-3Z"}),e.createElement("path",{d:"M2.15 9.407a.65.65 0 0 1 .65.65v6.75a.1.1 0 0 0 .1.1h13.5a.1.1 0 0 0 .1-.1v-6.75a.65.65 0 0 1 1.3 0v6.75a1.4 1.4 0 0 1-1.4 1.4H2.9a1.4 1.4 0 0 1-1.4-1.4v-6.75a.65.65 0 0 1 .65-.65Z"}),e.createElement("path",{d:"M9.65 4.907a.65.65 0 0 1 .65.65v12a.65.65 0 1 1-1.3 0v-12a.65.65 0 0 1 .65-.65Z"}),e.createElement("path",{d:"M11.17 1.769c-.162.163-.32.452-.456.86a7.639 7.639 0 0 0-.288 1.297c-.05.35-.08.681-.098.954.272-.019.603-.049.953-.099a7.632 7.632 0 0 0 1.296-.288c.409-.135.698-.294.861-.456a1.604 1.604 0 0 0-2.268-2.268ZM9.65 5.557H9v-.043l.002-.11a14.514 14.514 0 0 1 .137-1.66c.07-.487.176-1.026.341-1.524.162-.488.4-.997.768-1.367L10.25.85a2.904 2.904 0 1 1 4.107 4.106l-.002.002c-.371.368-.88.606-1.368.768a8.914 8.914 0 0 1-1.523.341 14.517 14.517 0 0 1-1.77.139H9.65l-.001-.65Zm0 0v.65a.65.65 0 0 1-.65-.65h.65Z"}),e.createElement("path",{d:"M4.943.85a2.904 2.904 0 0 1 4.107 0l.002.003c.368.37.606.88.768 1.367.165.498.271 1.037.34 1.523a14.57 14.57 0 0 1 .14 1.77V5.557l-.65.001v.65h-.043l-.111-.002a14.518 14.518 0 0 1-1.66-.137 8.914 8.914 0 0 1-1.524-.341c-.487-.162-.996-.4-1.367-.768l-.002-.002a2.904 2.904 0 0 1 0-4.106ZM9.65 5.558v.65a.65.65 0 0 0 .65-.65h-.65Zm-.678-.678a12.958 12.958 0 0 0-.098-.953 7.634 7.634 0 0 0-.288-1.296c-.136-.409-.295-.698-.456-.861A1.604 1.604 0 0 0 5.86 4.037c.164.162.453.32.861.456.399.133.855.225 1.297.288.35.05.68.08.953.099Z"}))),se||(se=e.createElement("defs",null,e.createElement("clipPath",{id:"gift_svg__a"},e.createElement("path",{fill:"#fff",d:"M0 0h20v19H0z"})))))}),"fillByFill"),Je=Pe((function(t){return e.createElement("svg",pe({width:"1em",height:"1em",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},t),me||(me=e.createElement("g",{clipPath:"url(#percent_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},e.createElement("path",{d:"M15.32 1.18c.24.24.24.63 0 .87L2.55 14.82a.615.615 0 0 1-.87-.87L14.45 1.18c.24-.24.63-.24.87 0ZM4 1.39a2.11 2.11 0 1 0 0 4.22 2.11 2.11 0 0 0 0-4.22ZM.5 3.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0ZM13 10.39a2.11 2.11 0 1 0 0 4.22 2.11 2.11 0 0 0 0-4.22ZM9.5 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Z"}))),de||(de=e.createElement("defs",null,e.createElement("clipPath",{id:"percent_svg__a"},e.createElement("path",{fill:"#fff",d:"M0 0h17v16H0z"})))))}),"fillByFill"),Ye=Pe((function(t){return e.createElement("svg",he({width:"1em",height:"1em",viewBox:"0 0 22 18",xmlns:"http://www.w3.org/2000/svg"},t),fe||(fe=e.createElement("path",{d:"M5.347 8.514c.047.072.109.142.146.222.106.227.208.459.297.693.025.063.047.1.114.108 1.212.15 2.085.813 2.731 1.82.285.444.492.926.668 1.44.008.02-.928.336-.935.316-.035-.092-.064-.18-.099-.267-.235-.6-.532-1.16-1-1.61a2.535 2.535 0 0 0-1.62-.727c-.648-.047-1.272.04-1.858.34-.621.316-1.042.823-1.346 1.441-.255.517-.396 1.068-.48 1.636-.005.033.022.06.054.06h6.717c2.091 0 4.182 0 6.272-.002a.508.508 0 0 0 .243-.063 41.67 41.67 0 0 1 4.04-2.07c.04-.017.042-.075.005-.097a1.95 1.95 0 0 0-1.368-.222c-.507.097-.9.394-1.262.753-.015.013-.767-.628-.752-.643.487-.524 1.054-.903 1.761-1.085a.055.055 0 0 0 .04-.063c-.047-.26-.084-.518-.148-.773a8.286 8.286 0 0 0-.859-2.162c-.193-.332-.413-.649-.618-.973-.05-.077-.114-.092-.2-.087a1.45 1.45 0 0 1-1.18-.457 1.444 1.444 0 0 1-.41-1.11c.006-.087-.017-.12-.093-.157-.532-.262-1.062-.531-1.591-.798-.02-.01.425-.903.448-.89.361.182.71.359 1.061.533.183.093.366.19.552.277a.144.144 0 0 0 .124-.015c.299-.257.645-.369 1.034-.369h1.299c.024 0 .012.998-.018.998-.433 0-.866-.003-1.298 0-.347.002-.572.26-.522.588a.482.482 0 0 0 .487.407c.425.005.848 0 1.274 0h.144c.03 0 .054.025.054.055 0 .294-.002.578.002.86 0 .065.03.162.065.217.65 1.06 1.108 2.198 1.318 3.43.02.122.04.244.057.367.01.064.028.094.104.107.745.13 1.37.461 1.794 1.11.111.17.193.356.29.543a.054.054 0 0 1-.028.075c-.316.132-.63.26-.94.394a39 39 0 0 0-4.404 2.255.417.417 0 0 1-.21.057c-2.291.003-4.585.003-6.876.003-.076 0-.118.002-.138.102-.25 1.22-1.203 2.16-2.417 2.355-1.334.214-2.549-.447-3.115-1.57-.134-.264-.22-.55-.332-.847a.054.054 0 0 0-.05-.035H.979a.055.055 0 0 1-.055-.055c-.002-.172-.007-.334.003-.499.077-1.28.388-2.479 1.21-3.497.591-.733 1.363-1.17 2.28-1.349.097-.02.194-.035.298-.05.034-.005.054-.042.042-.075a1.398 1.398 0 0 0-.596-.676c-.394-.234-.83-.284-1.272-.289-.76-.005-1.517-.003-2.276 0H.495a.055.055 0 0 1-.054-.055V.577c0-.03.025-.055.054-.055h8.79c.03 0 .055.025.055.055v.108c0 2.23 0 4.46-.002 6.69 0 .101.067.191.163.221.735.215 1.163.838 1.302 1.581.054.297-.035.564-.09.843-.074.372-.118.746-.042 1.123.104.524.352.775.886.83.57.058 1.116-.027 1.613-.341.48-.307.762-.761.945-1.285.225-.638.287-1.302.275-1.973-.01-.419-.042-.84-.067-1.28 0-.02.965-.141.967-.119.025.24.06.471.065.703.01.49.027.98-.003 1.47-.054.895-.264 1.753-.791 2.499-.508.718-1.203 1.14-2.064 1.282-.457.075-.918.087-1.373-.025-.826-.207-1.291-.8-1.43-1.611a3.798 3.798 0 0 1 .099-1.652c.084-.309-.007-.563-.166-.805-.168-.257-.435-.337-.72-.337-1.18-.008-2.358-.003-3.538-.003-.01.003-.012.008-.022.018Zm.027-6.941v2.895c0 .02-.99.02-.99 0V1.573a.055.055 0 0 0-.054-.055H1.483a.055.055 0 0 0-.055.055V7.44c0 .03.025.055.055.055h6.806c.03 0 .054-.025.054-.055V1.573a.055.055 0 0 0-.054-.055H5.426c-.03 0-.052.025-.052.055Zm-1.83 13.41c-.035 0-.062.036-.053.068a1.965 1.965 0 0 0 2.13 1.414c.77-.087 1.619-.835 1.653-1.426a.054.054 0 0 0-.054-.058H3.543v.003ZM15.555 15.732c-.007-.017 0-.04.017-.047.27-.122.54-.242.814-.364a.052.052 0 0 1 .07.025c.28.553.71.93 1.311 1.08.51.127 1.007.06 1.467-.21.812-.474 1.287-1.544.78-2.636a.053.053 0 0 1 .022-.07c.252-.14.507-.28.774-.424a.052.052 0 0 1 .074.025c.443.925.473 1.858-.012 2.763-.614 1.148-1.606 1.682-2.892 1.594-1.104-.08-2.044-.83-2.425-1.736Z"})))}),"fillByFill"),$e=Pe((function(t){return e.createElement("svg",ve({width:"1em",height:"1em",viewBox:"0 0 9 7",stroke:"#000",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),ge||(ge=e.createElement("path",{d:"M7.834 1 3.167 6 .834 3.5",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke");!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"}(ye||(ye={})),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"}(xe||(xe={})),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"}(be||(be={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(we||(we={})),function(e){e[e.common=0]="common",e[e.bonus=1]="bonus"}(Ee||(Ee={})),function(e){e[e.delivery=1]="delivery",e[e.takeAway=2]="takeAway",e[e.virtualVenue=3]="virtualVenue"}(ke||(ke={})),function(e){e[e.products=0]="products",e[e.delivery=1]="delivery"}(Ne||(Ne={}));var et=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},tt=function(e,t){var n="";return e&&(n=we[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n},nt=function(e){var n=e.accumulatedPurchaseBonus,r=e.discount,a=e.finalDeliveryPrice,i=e.currency;return t.createElement("div",{className:"bagesPaymentSummary"},0===a&&t.createElement("div",{className:"discountItem"},t.createElement("div",{className:"doneBg"},t.createElement($e,{size:12,color:"#fff"})),t.createElement(Ye,null),t.createElement("span",{className:"discountLabel"},"Free delivery")),r>0&&t.createElement("div",{className:"discountItem"},t.createElement("div",{className:"doneBg"},t.createElement($e,{size:12,color:"#fff"})),t.createElement(Je,null),t.createElement("span",{className:"discountLabel"},tt(i,r)," Discount")),n>0&&t.createElement("div",{className:"discountItem"},t.createElement("div",{className:"doneBg"},t.createElement($e,{size:12,color:"#fff"})),t.createElement(Xe,null),t.createElement("span",{className:"discountLabel"},n," Bonuses")))};u(".checkoutFormItem .checkoutFormItemLabel{align-items:center;display:flex;font-size:22px;font-weight:600}.checkoutFormItem .checkoutFormItemLabel .change{font-size:14px}.checkoutFormItem .checkoutFormItemData{align-items:center;display:flex;font-size:18px;margin:5px 0 0}.checkoutFormItem .change{color:var(--main-color,#007aff);cursor:pointer;font-size:18px;font-weight:600;margin:0 0 0 20px}");var rt=function(e){var n=e.label,r=e.data,a=e.changeInLabel,i=e.onChangeClick,o=Array.isArray(r);return t.createElement("div",{className:"checkoutFormItem"},t.createElement("div",{className:"checkoutFormItemLabel"},n,a&&t.createElement("span",{className:"change",onClick:i},"Change")),t.createElement("div",{className:"checkoutFormItemData"},o&&t.createElement("div",{className:"arrayData"},r.map((function(e,n){return t.createElement("div",{key:n,className:"checkoutFormItemDataItem"},e)}))),!o&&t.createElement("div",{className:"checkoutFormItemDataItem"},r),!a&&t.createElement("span",{className:"change",onClick:i},"Change")))};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 at=function(e){var n=e.count,r=e.isRemoveDisable,a=e.isAddDisable,i=e.onAdd,l=e.onRemove;return t.createElement("div",{className:"counterButton"},t.createElement(Ge,{color:"var(--main-color, #007aff)",onClick:l,className:o("control",{disable:r})}),t.createElement("div",{className:"control count"},n),t.createElement(Qe,{color:"var(--main-color, #007aff)",onClick:i,className:o("control",{disable:a})}))};u(".deliveryControl{align-items:center;display:flex;justify-content:flex-start}.deliveryControl .control{align-items:center;background:none;border:1px solid var(--main-color,#007aff);border-radius:5px;color:var(--main-color,#007aff);cursor:pointer;display:flex;font-size:16px;font-weight:500;justify-content:center;margin:0 20px 0 0;padding:10px 15px}.deliveryControl .control.disable{opacity:.5;pointer-events:none}.deliveryControl .control .icon{margin:0 10px 0 0}.deliveryControl .control.selected{background:var(--main-color);color:#fff!important}@media (max-width:600px){.deliveryControl{display:grid;gap:10px;grid-template-columns:1fr 1fr}.deliveryControl .control{font-size:16px;height:40px;margin:0;padding:10px 3px;white-space:nowrap;width:100%}.deliveryControl .control .icon{height:20px;width:20px}}");var it=function(e){var n=e.type,r=e.onChange,a=e.disableDelivery,i=e.disableTakeAway;return t.createElement("div",{className:"deliveryControl"},t.createElement("div",{className:o("control",{selected:ke.takeAway===n,disable:i}),onClick:function(){return r(ke.takeAway)}},t.createElement(Ie,{size:30,color:n===ke.takeAway?"#fff":"var(--main-color, #007AFF)"}),t.createElement("span",null,"Pick up")),t.createElement("div",{className:o("control",{selected:ke.delivery===n,disable:a}),onClick:function(){return r(ke.delivery)}},t.createElement(Ye,{size:30,color:n===ke.delivery?"#fff":"var(--main-color, #007AFF)"}),t.createElement("span",null,"Delivery")))};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 ot=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 lt=function(e){var n=e.icon,r=e.debounce,a=e.onChange,i=d(e,["icon","debounce","onChange"]),o=t.useState(null),l=o[0],c=o[1];return t.useEffect((function(){var e=setTimeout((function(){a&&a(l)}),r);return function(){return clearTimeout(e)}}),[l]),t.createElement("label",{className:"labelInput"},n&&n,t.createElement("input",m({},i,{onChange:function(e){c(e)}})))};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 ct=function(e){var n=e.src,r=e.alt,a=e.width,i=e.height,o=e.quality,s=e.gravity,u=e.crop,m=e.id;return t.createElement(l,{id:m,cloudName:n[0],secure:"true",publicId:n.splice(3).join("/"),alt:r},t.createElement(c,{width:a,height:i,quality:o,gravity:s,crop:u}),t.createElement(c,{fetchFormat:"auto"}))},st=function(e){var a=e.autoPlay,i=e.onStart,o=e.id,l=e.src,c=e.onEnd,s=e.controls,u=n({playing:!1,muted:!1}),d=u[0],p=u[1],f=r(),h=function(){f.current.paused?(f.current.play(),p((function(e){return m(m({},e),{playing:!0})}))):(f.current.pause(),p((function(e){return m(m({},e),{playing:!1})})))},g=function(){f.current.muted=!f.current.muted,p((function(e){return m(m({},e),{muted:f.current.muted})}))};return t.createElement("div",{className:"videoControl"},s&&t.createElement("div",{className:"videoControls",onClick:function(e){return e.stopPropagation()}},!d.playing&&t.createElement(De,{color:"var(--main-color)",className:"control",onClick:h}),d.playing&&t.createElement(Ve,{color:"var(--main-color)",className:"control",onClick:h}),d.muted&&t.createElement(We,{color:"var(--main-color)",className:"control",onClick:g}),!d.muted&&t.createElement(Ue,{color:"var(--main-color)",className:"control",onClick:g})),t.createElement(ut,{autoPlay:a,src:l,onPlay:function(){i&&i(),p((function(e){return m(m({},e),{playing:!0})}))},onEnded:function(){c&&c()},videoRef:f,id:o}))},ut=function(e){var n=e.videoRef,r=e.src,a=e.id,i=e.onPlay,o=e.onEnded,l=e.autoPlay;return t.createElement("video",{ref:n,src:r,id:a,onPlay:function(){i&&i()},autoPlay:l,onEnded:function(){o&&o()}})},mt=function(e){var i=e.src,o=e.settings,l=e.alt,c=e.id,s=d(e,["src","settings","alt","id"]),u=r(null),p=n({width:0,height:0}),f=p[0],h=p[1],g=i.includes("/image/"),v=i.includes("/video/"),y=i.replace("https://res.cloudinary.com/","").split("/");a((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(ct,m({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:et(xe,(null==o?void 0:o.gravity_mode)||0),crop:et(ye,(null==o?void 0:o.crop_mode)||0),src:y,alt:l,id:c})),v&&t.createElement(st,m({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:et(xe,(null==o?void 0:o.gravity_mode)||0),crop:et(ye,(null==o?void 0:o.crop_mode)||0),id:c,src:i})))};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 dt=function(){return t.createElement("div",{className:"lds-dual-ring"})},pt=function(e){var n=e.isSummary,r=e.isLoading,a=e.isDisableNext,i=e.isDisablePrev,l=e.amount,c=e.currency,s=e.onPrev,u=e.onNext,m=e.count,d=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(at,{count:m,isRemoveDisable:p||r,isAddDisable:d||r,onAdd:f,onRemove:h}),t.createElement("div",{onClick:g,className:o("button major",{disable:r})},r?t.createElement(dt,null):t.createElement(t.Fragment,null,t.createElement("div",{className:"addLabel"},t.createElement(Re,{color:"#fff",size:"small"})," Add to Cart"),t.createElement("div",null,tt(c,l))))):t.createElement(t.Fragment,null,t.createElement("div",{onClick:s,className:o("button",{disable:i||r})},"Back"),t.createElement("div",{onClick:u,className:o("button major",{disable:a||r})},r?t.createElement(dt,null):t.createElement(t.Fragment,null,"Next ",tt(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 ft=function(e){var n=e.steps,r=e.currentStep,a=n[r].component,i=n[r].name;return t.createElement("div",{className:"stepper"},t.createElement("div",{className:"stepperHeader"},i),t.createElement("div",{className:"steps"},Array(n.length).fill(0).map((function(e,a){return t.createElement(t.Fragment,{key:a},t.createElement("div",{className:o("step",{active:a===r})}),a!==n.length-1&&t.createElement("div",{className:"line"}))}))),a)};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 ht=function(e){var n=e.suboptions,r=e.onChangeQuantity,a=e.currency,i=e.limitByMax,l=function(e,t){return function(){return r(e,t)}},c=function(e){return!!i&&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"},"+",tt(a,e.price)),t.createElement(at,{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 gt=function(e){var n=e.ingredients,r=e.onSelect,a=e.currency;return t.createElement("div",{className:"extrasRadio"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,i=e.quantity||1,function(){return r(n,i)}),className:o("extra",{selected:!!e.quantity})},t.createElement("span",{className:"extraName"},e.name),!!e.price&&t.createElement("span",{className:"extraPrice"},"+",tt(a,e.price)));var n,i})))};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 vt=function(e){var n=e.message;return t.createElement("div",{className:"warning"},t.createElement(Ke,{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 yt=function(e){var n=e.name,r=e.comment,a=e.onCommentChange,i=e.onNameChange;return t.createElement("div",{className:"productCommentSection"},t.createElement("span",{className:"inputName"},"Add Name"),t.createElement(lt,{onChange:function(e){var t;i(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(lt,{onChange:function(e){var t;a(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 xt,bt=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"))})))},wt="#INGREDIENTS",Et="#HALF_SELECTOR",kt="#HALF_SELECTOR_HALF";!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(xt||(xt={}));var Nt=function(e,t){var n=[],r=e.filter((function(e){return e.half===xt.none||e.half===xt.left}));return t?r.forEach((function(e){n.push(m(m({},e),{half:xt.left})),n.push(m(m({},e),{half:xt.right}))})):r.forEach((function(e){n.push(m(m({},e),{half:xt.none}))})),n},Ct=function(e,t,n,r){var a,i=[],o=0;if((null===(a=null==e?void 0:e.suboptions)||void 0===a?void 0:a.length)&&i.push({name:"Ingredients",value:jt(e.suboptions),index:o++}),t.forEach((function(e){i.push({name:e.name,value:Ot(e.suboptions),index:o++})})),n.length){var l=n.some((function(e){return e.half===xt.right}));i.push({name:"Toppings",value:l?"Half":"Full",index:o++})}return n.forEach((function(e){i.push({name:e.name,value:Ot(e.suboptions),index:o++})})),r&&i.push({name:"Comments",value:r,index:o++}),i},Ot=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},jt=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")},Pt=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}))},Bt=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 m(m({},t),{suboptions:t.suboptions.map((function(e){var t=null==n?void 0:n.suboptions.find((function(t){return t.id===e.id}));return m(m({},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===xt.none}))})),a=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===xt.left}))})),i=e.product.options.find((function(e){return e.id===t.id&&e.suboptions.every((function(e){return e.half_option===xt.right}))}));return n?m(m({},t),{half:xt.none,suboptions:t.suboptions.map((function(e){var t=n.suboptions.find((function(t){return t.id===e.id}));return m(m({},e),{half:xt.none,quantity:t?t.quantity:0})}))}):r.isHalf||a&&i?(r.isHalf=!0,[m(m({},t),{half:xt.left,suboptions:t.suboptions.map((function(e){var t=a.suboptions.find((function(t){return t.id===e.id}));return m(m({},e),{half:xt.left,quantity:t?t.quantity:0})}))}),m(m({},t),{half:xt.right,suboptions:t.suboptions.map((function(e){var t=i.suboptions.find((function(t){return t.id===e.id}));return m(m({},e),{half:xt.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(m(m({},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 Ht=function(e){var n=e.suboptions,r=e.onSelect,a=e.currency;return t.createElement("div",{className:"suboptionsCheckbox"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,i=e.quantity?0:1,function(){return r(n,i)}),className:o("suboptionCheckbox",{selected:!!e.quantity})},t.createElement("span",null,e.name),!!e.price&&tt(a,e.price));var n,i})))},Mt=function(e){var r=e.name,i=e.media,o=e.currency,l=e.price,c=e.oldPrice,s=e.description,u=e.totalPrice,d=e.allowComments,f=e.options,h=e.optionsHalf,g=e.max,v=e.quantity,y=e.ingredients,x=e.nameOnBox,b=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,M=e.onChangeIsHalf,z=n(null),L=z[0],F=z[1],R=n([]),T=R[0],q=R[1],A=n(0),Z=A[0],I=A[1],_=n(!0),D=_[0],V=_[1];a((function(){var e=p(p([],f,!0),h,!0),t=function(e,t,n){var r=e.filter((function(e){return e.enabled})),a=t.filter((function(e){return e.enabled}));if(a.length){var i={name:"Toppings",enabled:!0,max:1,min:1,id:Et,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:xt.none,allowSuboptionQuantity:!1,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:kt,quantity:Number(n)}]};r.push(i)}return[].concat(r).concat(a)}(f.filter((function(t){return Bt(t,e)})),h.filter((function(t){return Bt(t,e)})),E);if(q(t),y.length&&F(function(e){return{id:wt,min:0,respectTo:null,half:xt.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!1,allowSuboptionQuantity:!1,max:e.length,name:"Ingredients",suboptions:e.map((function(e){var t;return m(m({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(y)),D&&k){var n=0;t.length&&(n+=t.length),y.length&&(n+=1),d&&(n+=1),I(n)}V(!1)}),[y,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,a=function(t,n){!function(e){return e===Et}(e.id)?e.withHalfOption?O(e.id,t,e.half,n):C(e.id,t,n):M(function(e){return e===kt}(t))};return n?t.createElement(gt,{key:e.id,currency:o,ingredients:e.suboptions,onSelect:a}):r?t.createElement(ht,{key:e.id,currency:o,suboptions:e.suboptions,onChangeQuantity:a,limitByMax:e.limitSuboptionsByMax}):t.createElement(Ht,{key:e.id,currency:o,suboptions:e.suboptions,onSelect:a})},Q=function(){var e=[];return L&&e.push({name:"Ingredients",component:t.createElement(ot,{ingredients:L.suboptions,onSelect:N})}),e.push.apply(e,T.filter((function(e){return Bt(e,T)})).map((function(e){return m(m({},e),{name:(t=e,t.name+(t.half===xt.right?" right":"")+(t.half===xt.left?" left":"")),component:U(e)});var t}))),d&&e.push({name:"Comments",component:t.createElement(yt,{name:x,comment:b,onNameChange:j,onCommentChange:P})}),e.push({name:"Summary",component:t.createElement(bt,{summary:Ct(L,T.filter((function(e){return!e.withHalfOption})).filter((function(e){return e.id!=Et})),T.filter((function(e){return e.withHalfOption})).filter((function(e){return e.id!=Et})),d?"".concat(b||"-"," | ").concat(x||"-"):null),onClickChange:function(e){return I(e)}})}),e};return t.createElement("div",{className:"productConstructor"},t.createElement("div",{className:"content"},!!i&&t.createElement(mt,m({},i)),t.createElement("div",{className:"headProduct"},t.createElement("div",{className:"name"},r),t.createElement("div",{className:"priceControl"},!!c&&t.createElement("div",{className:"oldPrice"},tt(o,c)),!!l&&t.createElement("div",{className:"price"},tt(o,l)))),t.createElement("div",{className:"description"},s)),W()&&t.createElement(vt,{message:W().toString()}),T.length&&t.createElement(ft,{steps:Q(),currentStep:Z}),t.createElement(pt,{isLoading:w,isSummary:Z===Q().length-1,isDisableNext:!!W(),isDisablePrev:0===Z,currency:o,onPrev:function(){return I(Z-1)},onNext:function(){return I(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 zt=function(e){var n=e.className,r=void 0===n?"":n,a=e.label,i=e.icon;return t.createElement("div",{className:"tag "+r||""},t.createElement("span",{className:"tagLabel"},a),i)},Lt=function(e){var n=e.vegan,r=e.vegetarian,a=e.isNew,i=e.spicy,o=e.glutenFree,l=function(){return a?t.createElement(zt,{label:"new",className:"additionItem",icon:t.createElement(Se,null)}):null},c=function(){return n?t.createElement(zt,{label:"vegan",className:"additionVegan",icon:t.createElement(t.Fragment,null,t.createElement(Me,null),t.createElement(Me,null))}):r?t.createElement(zt,{label:"vegetarian",className:"additionVegetarian",icon:t.createElement(Me,null)}):null},s=function(){return i?t.createElement(zt,{label:"spicy",className:"additionSpicy",icon:t.createElement(t.Fragment,null,Array(i).fill(0).map((function(e,n){return t.createElement(ze,{key:n})})))}):null},u=function(){return o?t.createElement(zt,{label:"free gluten",className:"additionNoGluten",icon:t.createElement(Le,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,a=e.name,i=e.description,l=e.price,c=e.oldPrice,s=e.image,u=e.trashIcon,m=void 0!==u&&u,d=e.onClickTrash,p=e.onClick,f=e.vegetarian,h=e.vegan,g=e.isNew,v=e.spicy,y=e.glutenFree,x=e.quantity;return t.createElement("div",{className:"productPreview",onClick:function(){null==p||p(n)}},t.createElement(mt,{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"},a),m&&t.createElement(Be,{onClick:function(e){e.stopPropagation(),null==d||d(n)},width:20,height:20})),t.createElement("div",{className:"description",dangerouslySetInnerHTML:{__html:i}})),t.createElement("div",{className:"productReviewFooter"},t.createElement("div",{className:"options"},t.createElement(Lt,{isNew:g,spicy:v,vegan:h,glutenFree:y,vegetarian:f})),t.createElement("div",{className:"priceBlock"},!!c&&t.createElement("div",{className:o("oldPrice",{lineThrough:!x})},tt(r,c)),!!x&&t.createElement("span",{className:"quantity"}," x",x," "),!!l&&t.createElement("div",{className:o("currentPrice",{newPrice:!!c&&!x})},tt(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 Rt=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,m({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 Tt=function(e){var n=e.score,r=e.isNew,a=e.kosher;return t.createElement("div",{className:"restaurantTags"},!!r&&t.createElement(zt,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&t.createElement(zt,{label:n.toFixed(1),className:"restaurantTagScore",icon:t.createElement(Se,null)}),!!a&&t.createElement(zt,{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 qt=function(e){var n=e.currency,r=e.amount,a=e.onClick;return t.createElement("div",{className:"headerCartButton",onClick:a},t.createElement(Re,{className:"icon"}),t.createElement("span",{className:"label"},"Checkout"),t.createElement("span",{className:"price"},tt(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 At=function(e){var r=e.dontHide,i=e.minimum,l=e.isPickUp,c=e.withTitle,u=e.estimationRangeMax,m=e.estimationRangeMin,d=e.estimationTime,p=e.distance,f=e.deliveryPrice,h=e.currency,g=e.deliveryToLocation,v=n([]),y=v[0],x=v[1];return a((function(){var e=[];i&&e.push(t.createElement("div",{className:o("footer-item mini-order")},t.createElement(Re,null),c&&t.createElement("span",{className:o("title")},"Min order"),tt(h,i))),p&&!l&&e.push(t.createElement("span",{className:o("footer-item")},t.createElement(Ze,null),c&&t.createElement("div",{className:o("title")},"Distance"),"distanceKm ",p)),(u||m)&&e.push(t.createElement("div",{className:o("time footer-item")},l?t.createElement(qe,null):t.createElement(Ie,null),c&&t.createElement("div",{className:o("title")},l?"Pickup time":"Delivery time"),m,"-",u," min")),!l&&g&&e.push(t.createElement("div",{className:o("footer-item delivery-price")},t.createElement(Te,null),c&&t.createElement("span",{className:o("title")},"deliveryPrice"),f?tt(h,f):t.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",t.createElement(_e,null)," "))),0===u&&0===m&&d&&e.push(t.createElement("div",{className:o("time footer-item")},l?t.createElement(Ie,null):t.createElement(qe,null),"up_to ",d," min")),x(e)}),[i,l,u,m,d,p,f,h,g]),t.createElement(s,{className:"footer benefitsData",minVisibleItems:r?y.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:y})},Zt=function(e){var n=e.name,r=e.isFavorite,a=e.isNew,i=e.kosher,o=e.score,l=e.cartAmount,c=e.alternativeView,s=e.currency,u=e.searchValue,m=e.onSearch,d=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(Se,null):t.createElement(He,null)),(!!l||c)&&t.createElement(Tt,{isNew:a,kosher:i,score:o})),t.createElement("div",{className:"topRight"},!!l&&!c&&t.createElement(qt,{onClick:d,amount:l,currency:s}))),t.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&t.createElement(Tt,{isNew:a,kosher:i,score:o}),t.createElement("div",{className:"benefits"},t.createElement(At,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&t.createElement("div",{className:"bottomRight"},t.createElement(lt,{className:"input",placeholder:"Search in menu...",icon:t.createElement(Fe,null),value:u,onChange:m}),t.createElement(qt,{onClick:d,amount:l,currency:s}))))},It=i(null).Provider;export{nt as BagesPaymentsOrderSummary,rt as CheckoutFormItem,at as CounterButton,it as DeliveryControl,xt as HALF_OPTION,wt as INGREDIENTS,Te as IconBicycle,Re as IconCart,qe as IconClockAfternoon,Ae as IconClose,$e as IconDone,Xe as IconGift,Ze as IconMapPin,Ge as IconMinus,Ye as IconMoto,We as IconMute,Le as IconNoGluten,Ve as IconPause,Je as IconPercent,Ie as IconPersonSimpleWalk,De as IconPlay,Qe as IconPlus,Fe as IconSearch,_e as IconSparkle,ze as IconSpicy,Se as IconStar,He as IconStarBorder,Be as IconTrash,Ue as IconUnmute,Me as IconVegan,Ke as IconWarning,ot as IngredientsSelector,lt as Input,mt as Media,Mt as ProductConstructor,Ft as ProductPreview,Rt as ProductPreviewList,Lt as ProductTags,Zt as RestaurantHeader,ft as Stepper,ht as SuboptionMultiSelector,gt as SuboptionRadioSelector,It as TranslationUIProvider,vt as Warning,Bt as checkRespectTo,Pt as convertToServerModelOptions,St as mergeProduct,Nt as prepareHalfOptions};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import { CURRENCY } from '../../enums/enums';
|
|
4
|
+
export interface BagesPaymentsOrderSummaryProps {
|
|
5
|
+
accumulatedPurchaseBonus?: number;
|
|
6
|
+
discount?: number;
|
|
7
|
+
finalDeliveryPrice?: number;
|
|
8
|
+
currency?: CURRENCY;
|
|
9
|
+
}
|
|
10
|
+
export declare const BagesPaymentsOrderSummary: ({ accumulatedPurchaseBonus, discount, finalDeliveryPrice, currency, }: BagesPaymentsOrderSummaryProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BagesPaymentsOrderSummary, type BagesPaymentsOrderSummaryProps } from './BagesPaymentsOrderSummary';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export interface CheckoutFormItemProps {
|
|
4
|
+
label: string;
|
|
5
|
+
data: string | string[] | number | number[] | ReactNode | ReactNode[];
|
|
6
|
+
changeInLabel: boolean;
|
|
7
|
+
onChangeClick: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const CheckoutFormItem: ({ label, data, changeInLabel, onChangeClick }: CheckoutFormItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckoutFormItem, type CheckoutFormItemProps } from './CheckoutFormItem';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import { DELIVERY_TYPE } from '../../enums/enums';
|
|
4
|
+
export interface DeliveryControlProps {
|
|
5
|
+
type: DELIVERY_TYPE;
|
|
6
|
+
disableTakeAway: boolean;
|
|
7
|
+
disableDelivery: boolean;
|
|
8
|
+
onChange: (v: DELIVERY_TYPE) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DeliveryControl: ({ type, onChange, disableDelivery, disableTakeAway }: DeliveryControlProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type DeliveryControlProps, DeliveryControl } from './DeliveryControl';
|
|
@@ -24,3 +24,7 @@ export declare const IconUnmute: (props: IconProps) => React.JSX.Element;
|
|
|
24
24
|
export declare const IconPlus: (props: IconProps) => React.JSX.Element;
|
|
25
25
|
export declare const IconMinus: (props: IconProps) => React.JSX.Element;
|
|
26
26
|
export declare const IconWarning: (props: IconProps) => React.JSX.Element;
|
|
27
|
+
export declare const IconGift: (props: IconProps) => React.JSX.Element;
|
|
28
|
+
export declare const IconPercent: (props: IconProps) => React.JSX.Element;
|
|
29
|
+
export declare const IconMoto: (props: IconProps) => React.JSX.Element;
|
|
30
|
+
export declare const IconDone: (props: IconProps) => React.JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import { BagesPaymentsOrderSummaryProps } from '../BagesPaymentsOrderSummary';
|
|
4
|
+
import { DELIVERY_TYPE, DISCOUNT_TYPE } from '../../enums/enums';
|
|
5
|
+
export interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
|
|
6
|
+
discountType?: DISCOUNT_TYPE;
|
|
7
|
+
offerType: number;
|
|
8
|
+
offerName: string;
|
|
9
|
+
coupon: string;
|
|
10
|
+
finalPrice: number;
|
|
11
|
+
disabledConfirm: boolean;
|
|
12
|
+
fullPrice: number;
|
|
13
|
+
deliveryPrice: number;
|
|
14
|
+
serviceFee: number;
|
|
15
|
+
topupToMinimum: number;
|
|
16
|
+
driverTip: number;
|
|
17
|
+
hideCoupon: boolean;
|
|
18
|
+
discounts: {
|
|
19
|
+
discount_type: DISCOUNT_TYPE;
|
|
20
|
+
[key: string]: string | number;
|
|
21
|
+
}[];
|
|
22
|
+
deliveryType: DELIVERY_TYPE;
|
|
23
|
+
onConfirm: () => void;
|
|
24
|
+
setCoupon: (s: string) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const OrderSummary: ({ accumulatedPurchaseBonus, discount, finalDeliveryPrice, currency, discountType, offerType, offerName, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, finalPrice, setCoupon, }: OrderSummaryProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type OrderSummaryProps, OrderSummary } from './OrderSummary';
|
|
@@ -42,3 +42,16 @@ export declare enum CURRENCY {
|
|
|
42
42
|
'KZT' = "\u20B8",
|
|
43
43
|
'RUB' = "\u20BD"
|
|
44
44
|
}
|
|
45
|
+
export declare enum DISCOUNT_TYPE {
|
|
46
|
+
common = 0,
|
|
47
|
+
bonus = 1
|
|
48
|
+
}
|
|
49
|
+
export declare enum DELIVERY_TYPE {
|
|
50
|
+
delivery = 1,
|
|
51
|
+
takeAway = 2,
|
|
52
|
+
virtualVenue = 3
|
|
53
|
+
}
|
|
54
|
+
export declare enum DISCOUNT_TARGET {
|
|
55
|
+
products = 0,
|
|
56
|
+
delivery = 1
|
|
57
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,72 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { HTMLProps, InputHTMLAttributes, ReactElement, ChangeEvent, FC
|
|
3
|
+
import React__default, { ReactNode, HTMLProps, InputHTMLAttributes, ReactElement, ChangeEvent, FC } from 'react';
|
|
4
|
+
|
|
5
|
+
declare enum CROP_MODE {
|
|
6
|
+
'fill' = 0,
|
|
7
|
+
'pad' = 1,
|
|
8
|
+
'fit' = 2,
|
|
9
|
+
'mfit' = 3,
|
|
10
|
+
'scale' = 4,
|
|
11
|
+
'limit' = 5,
|
|
12
|
+
'lpad' = 6,
|
|
13
|
+
'mpad' = 7,
|
|
14
|
+
'crop' = 8,
|
|
15
|
+
'fill_pad' = 9,
|
|
16
|
+
'thumb' = 10
|
|
17
|
+
}
|
|
18
|
+
declare enum GRAVITY_MODE {
|
|
19
|
+
'center' = 0,
|
|
20
|
+
'north_east' = 1,
|
|
21
|
+
'north' = 2,
|
|
22
|
+
'north_west' = 3,
|
|
23
|
+
'west' = 4,
|
|
24
|
+
'south_west' = 5,
|
|
25
|
+
'south' = 6,
|
|
26
|
+
'south_east' = 7,
|
|
27
|
+
'east' = 8,
|
|
28
|
+
'liquid' = 9,
|
|
29
|
+
'auto' = 10
|
|
30
|
+
}
|
|
31
|
+
declare enum QUALITY_MODE {
|
|
32
|
+
best = 1,
|
|
33
|
+
good = 2,
|
|
34
|
+
eco = 3,
|
|
35
|
+
low = 4,
|
|
36
|
+
custom = 5
|
|
37
|
+
}
|
|
38
|
+
declare enum CURRENCY {
|
|
39
|
+
'USD' = "$",
|
|
40
|
+
'EUR' = "\u20AC",
|
|
41
|
+
'GBP' = "\u00A3",
|
|
42
|
+
'UAH' = "\u20B4",
|
|
43
|
+
'AED' = "\u062F.",
|
|
44
|
+
'ILS' = "\u20AA",
|
|
45
|
+
'JPY' = "\u00A5",
|
|
46
|
+
'KZT' = "\u20B8",
|
|
47
|
+
'RUB' = "\u20BD"
|
|
48
|
+
}
|
|
49
|
+
declare enum DELIVERY_TYPE {
|
|
50
|
+
delivery = 1,
|
|
51
|
+
takeAway = 2,
|
|
52
|
+
virtualVenue = 3
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface BagesPaymentsOrderSummaryProps {
|
|
56
|
+
accumulatedPurchaseBonus?: number;
|
|
57
|
+
discount?: number;
|
|
58
|
+
finalDeliveryPrice?: number;
|
|
59
|
+
currency?: CURRENCY;
|
|
60
|
+
}
|
|
61
|
+
declare const BagesPaymentsOrderSummary: ({ accumulatedPurchaseBonus, discount, finalDeliveryPrice, currency, }: BagesPaymentsOrderSummaryProps) => React__default.JSX.Element;
|
|
62
|
+
|
|
63
|
+
interface CheckoutFormItemProps {
|
|
64
|
+
label: string;
|
|
65
|
+
data: string | string[] | number | number[] | ReactNode | ReactNode[];
|
|
66
|
+
changeInLabel: boolean;
|
|
67
|
+
onChangeClick: () => void;
|
|
68
|
+
}
|
|
69
|
+
declare const CheckoutFormItem: ({ label, data, changeInLabel, onChangeClick }: CheckoutFormItemProps) => React__default.JSX.Element;
|
|
4
70
|
|
|
5
71
|
interface CounterButtonProps {
|
|
6
72
|
count: number;
|
|
@@ -11,6 +77,14 @@ interface CounterButtonProps {
|
|
|
11
77
|
}
|
|
12
78
|
declare const CounterButton: ({ count, isRemoveDisable, isAddDisable, onAdd, onRemove, }: CounterButtonProps) => React__default.JSX.Element;
|
|
13
79
|
|
|
80
|
+
interface DeliveryControlProps {
|
|
81
|
+
type: DELIVERY_TYPE;
|
|
82
|
+
disableTakeAway: boolean;
|
|
83
|
+
disableDelivery: boolean;
|
|
84
|
+
onChange: (v: DELIVERY_TYPE) => void;
|
|
85
|
+
}
|
|
86
|
+
declare const DeliveryControl: ({ type, onChange, disableDelivery, disableTakeAway }: DeliveryControlProps) => React__default.JSX.Element;
|
|
87
|
+
|
|
14
88
|
type IconProps = Omit<Partial<HTMLProps<SVGElement>>, 'size'> & {
|
|
15
89
|
size?: 'big' | 'small' | 'default' | number | string;
|
|
16
90
|
};
|
|
@@ -34,7 +108,11 @@ declare const IconMute: (props: IconProps) => React__default.JSX.Element;
|
|
|
34
108
|
declare const IconUnmute: (props: IconProps) => React__default.JSX.Element;
|
|
35
109
|
declare const IconPlus: (props: IconProps) => React__default.JSX.Element;
|
|
36
110
|
declare const IconMinus: (props: IconProps) => React__default.JSX.Element;
|
|
37
|
-
declare const IconWarning: (props: IconProps) => React__default.JSX.Element;
|
|
111
|
+
declare const IconWarning: (props: IconProps) => React__default.JSX.Element;
|
|
112
|
+
declare const IconGift: (props: IconProps) => React__default.JSX.Element;
|
|
113
|
+
declare const IconPercent: (props: IconProps) => React__default.JSX.Element;
|
|
114
|
+
declare const IconMoto: (props: IconProps) => React__default.JSX.Element;
|
|
115
|
+
declare const IconDone: (props: IconProps) => React__default.JSX.Element;
|
|
38
116
|
|
|
39
117
|
interface Ingredient {
|
|
40
118
|
name: string;
|
|
@@ -54,51 +132,6 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChan
|
|
|
54
132
|
}
|
|
55
133
|
declare const Input: FC<InputProps>;
|
|
56
134
|
|
|
57
|
-
declare enum CROP_MODE {
|
|
58
|
-
'fill' = 0,
|
|
59
|
-
'pad' = 1,
|
|
60
|
-
'fit' = 2,
|
|
61
|
-
'mfit' = 3,
|
|
62
|
-
'scale' = 4,
|
|
63
|
-
'limit' = 5,
|
|
64
|
-
'lpad' = 6,
|
|
65
|
-
'mpad' = 7,
|
|
66
|
-
'crop' = 8,
|
|
67
|
-
'fill_pad' = 9,
|
|
68
|
-
'thumb' = 10
|
|
69
|
-
}
|
|
70
|
-
declare enum GRAVITY_MODE {
|
|
71
|
-
'center' = 0,
|
|
72
|
-
'north_east' = 1,
|
|
73
|
-
'north' = 2,
|
|
74
|
-
'north_west' = 3,
|
|
75
|
-
'west' = 4,
|
|
76
|
-
'south_west' = 5,
|
|
77
|
-
'south' = 6,
|
|
78
|
-
'south_east' = 7,
|
|
79
|
-
'east' = 8,
|
|
80
|
-
'liquid' = 9,
|
|
81
|
-
'auto' = 10
|
|
82
|
-
}
|
|
83
|
-
declare enum QUALITY_MODE {
|
|
84
|
-
best = 1,
|
|
85
|
-
good = 2,
|
|
86
|
-
eco = 3,
|
|
87
|
-
low = 4,
|
|
88
|
-
custom = 5
|
|
89
|
-
}
|
|
90
|
-
declare enum CURRENCY {
|
|
91
|
-
'USD' = "$",
|
|
92
|
-
'EUR' = "\u20AC",
|
|
93
|
-
'GBP' = "\u00A3",
|
|
94
|
-
'UAH' = "\u20B4",
|
|
95
|
-
'AED' = "\u062F.",
|
|
96
|
-
'ILS' = "\u20AA",
|
|
97
|
-
'JPY' = "\u00A5",
|
|
98
|
-
'KZT' = "\u20B8",
|
|
99
|
-
'RUB' = "\u20BD"
|
|
100
|
-
}
|
|
101
|
-
|
|
102
135
|
interface MediaSettings {
|
|
103
136
|
quality_mode: QUALITY_MODE;
|
|
104
137
|
gravity_mode: GRAVITY_MODE;
|
|
@@ -326,4 +359,4 @@ declare const Warning: ({ message }: WarningProps) => React__default.JSX.Element
|
|
|
326
359
|
|
|
327
360
|
declare const TranslationUIProvider: React.Provider<any>;
|
|
328
361
|
|
|
329
|
-
export { CounterButton, CounterButtonProps, HALF_OPTION, INGREDIENTS, IOption, ISuboption, IconBicycle, IconCart, IconClockAfternoon, IconClose, IconMapPin, IconMinus, IconMute, IconNoGluten, IconPause, IconPersonSimpleWalk, IconPlay, IconPlus, IconProps, IconSearch, IconSparkle, IconSpicy, IconStar, IconStarBorder, IconTrash, IconUnmute, IconVegan, IconWarning, IngredientsSelector, IngredientsSelectorProps, Input, InputProps, Media, MediaProp, ProductConstructor, ProductConstructorProps, ProductPreview, ProductPreviewList, ProductPreviewListProps, ProductPreviewProp, ProductTags, ProductTagsProps, RestaurantHeader, RestaurantHeaderProps, Stepper, StepperProps, SuboptionMultiSelector, SuboptionMultiSelectorProps, SuboptionRadioSelector, SuboptionRadioSelectorProps, TranslationUIProvider, Warning, WarningProps, checkRespectTo, convertToServerModelOptions, mergeProduct, prepareHalfOptions };
|
|
362
|
+
export { BagesPaymentsOrderSummary, BagesPaymentsOrderSummaryProps, CheckoutFormItem, CheckoutFormItemProps, CounterButton, CounterButtonProps, DeliveryControl, DeliveryControlProps, HALF_OPTION, INGREDIENTS, IOption, ISuboption, IconBicycle, IconCart, IconClockAfternoon, IconClose, IconDone, IconGift, IconMapPin, IconMinus, IconMoto, IconMute, IconNoGluten, IconPause, IconPercent, IconPersonSimpleWalk, IconPlay, IconPlus, IconProps, IconSearch, IconSparkle, IconSpicy, IconStar, IconStarBorder, IconTrash, IconUnmute, IconVegan, IconWarning, IngredientsSelector, IngredientsSelectorProps, Input, InputProps, Media, MediaProp, ProductConstructor, ProductConstructorProps, ProductPreview, ProductPreviewList, ProductPreviewListProps, ProductPreviewProp, ProductTags, ProductTagsProps, RestaurantHeader, RestaurantHeaderProps, Stepper, StepperProps, SuboptionMultiSelector, SuboptionMultiSelectorProps, SuboptionRadioSelector, SuboptionRadioSelectorProps, TranslationUIProvider, Warning, WarningProps, checkRespectTo, convertToServerModelOptions, mergeProduct, prepareHalfOptions };
|