delivapp-ordering 0.0.4 → 0.0.6
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/ProductConstructor/ProductConstructor.d.ts +6 -2
- package/dist/cjs/types/components/ProductConstructorFooter/ProductConstructorFooter.d.ts +2 -1
- package/dist/cjs/types/components/ProductSummary/index.d.ts +1 -0
- package/dist/cjs/types/components/SuboptionSelector/IOption.d.ts +14 -0
- package/dist/cjs/types/components/SuboptionSelector/SuboptionRadioSelector/index.d.ts +1 -0
- package/dist/cjs/types/components/SuboptionSelector/index.d.ts +3 -0
- package/dist/cjs/types/helpers/index.d.ts +1 -0
- package/dist/cjs/types/helpers/productConstructor.d.ts +23 -8
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/ProductConstructor/ProductConstructor.d.ts +6 -2
- package/dist/esm/types/components/ProductConstructorFooter/ProductConstructorFooter.d.ts +2 -1
- package/dist/esm/types/components/ProductSummary/index.d.ts +1 -0
- package/dist/esm/types/components/SuboptionSelector/IOption.d.ts +14 -0
- package/dist/esm/types/components/SuboptionSelector/SuboptionRadioSelector/index.d.ts +1 -0
- package/dist/esm/types/components/SuboptionSelector/index.d.ts +3 -0
- package/dist/esm/types/helpers/index.d.ts +1 -0
- package/dist/esm/types/helpers/productConstructor.d.ts +23 -8
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +36 -11
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("classnames"),r=require("cloudinary-react"),n=require("react-overflow-list");function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=a(e);function i(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.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(".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,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};function c(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}var s;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 m;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}var p;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}var h;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}var y;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var b;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}var N;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}var C,O,j;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(this,arguments)}var B,S;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}var T;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}var z,H;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}var I;function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F.apply(this,arguments)}var A,q;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z.apply(this,arguments)}var D;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(this,arguments)}var K;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},X.apply(this,arguments)}var ee,te;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},re.apply(this,arguments)}var ne=20,ae=25,oe=30,ie=function(t,r){return function(n){var a=function(e){var t=e.className,r=e.props,n={};return r.color&&t.includes("Fill")&&(n.fill=r.color),r.color&&t.includes("Stroke")&&(n.stroke=r.color),n}({className:r,props:n}),o=function(e){return"small"===e?ne:"big"===e?oe:e||ae}(n.size);return e.createElement(t,l({width:o,height:o},n,{style:a,className:"icon ".concat(n.className||""," ").concat(r||"")}))}},le=ie((function(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},e),s||(s=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=ie((function(e){return o.createElement("svg",d({width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m||(m=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"),se=ie((function(e){return o.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),p||(p=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"),ue=ie((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"),me=ie((function(e){return o.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),h||(h=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"),de=ie((function(e){return o.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),y||(y=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"),pe=ie((function(e){return o.createElement("svg",E({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},e),b||(b=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"),fe=ie((function(e){return o.createElement("svg",k({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},e),N||(N=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"),ge=ie((function(e){return o.createElement("svg",P({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"})),O||(O=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"),ve=ie((function(e){return o.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"},e),B||(B=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"),he=ie((function(e){return o.createElement("svg",M({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},e),T||(T=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"),xe=ie((function(e){return o.createElement("svg",L({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000",strokeWidth:1.3},e),z||(z=o.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),H||(H=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"),ye=ie((function(e){return o.createElement("svg",F({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),I||(I=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"),we=ie((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),A||(A=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"),be=ie((function(e){return o.createElement("svg",_({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"),Ee=ie((function(e){return o.createElement("svg",W({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),V||(V=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"),Ne=ie((function(e){return o.createElement("svg",G({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),U||(U=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"),ke=ie((function(e){return o.createElement("svg",Q({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"),Ce=ie((function(e){return o.createElement("svg",X({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"),Oe=ie((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"),je=ie((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),ee||(ee=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})),te||(te=o.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),Pe=function(r){var n=r.count,a=r.isRemoveDisable,o=r.isAddDisable,i=r.onAdd,l=r.onRemove;return e.createElement("div",{className:"counterButton"},e.createElement(Oe,{color:"var(--main-color, #007aff)",onClick:l,className:t("control",{disable:a})}),e.createElement("div",{className:"control count"},n),e.createElement(Ce,{color:"var(--main-color, #007aff)",onClick:i,className:t("control",{disable:o})}))};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(r){var n=r.ingredients,a=r.onSelect;return e.createElement("div",{className:"ingredients"},n.map((function(r){return e.createElement("div",{key:r.id,onClick:(n=r.id,function(){return a(n)}),className:t("ingredient",{selected:!!r.quantity})},r.name);var n})))};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,Re,Te,Me,ze=function(t){var r=t.icon,n=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)}),n);return function(){return clearTimeout(e)}}),[s]),e.createElement("label",{className:"labelInput"},r&&r,e.createElement("input",l({},o,{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"}(Re||(Re={})),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="₽"}(Me||(Me={}));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 He=function(e,t){return Object.keys(e).find((function(r){return e[r]===t}))},Le=function(e,t){var r="";return e&&(r=Me[e]||e),(t||0===t)&&(r="".concat(t," ").concat(r)),r},Ie=function(t){var n=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(r.Image,{id:u,cloudName:n[0],secure:"true",publicId:n.splice(3).join("/"),alt:a},e.createElement(r.Transformation,{width:o,height:i,quality:l,gravity:c,crop:s}),e.createElement(r.Transformation,{fetchFormat:"auto"}))},Fe=function(t){var r=t.autoPlay,n=t.onStart,a=t.id,o=t.src,i=t.onEnd,c=t.controls,s=e.useState({playing:!1,muted:!1}),u=s[0],m=s[1],d=e.useRef(),p=function(){d.current.paused?(d.current.play(),m((function(e){return l(l({},e),{playing:!0})}))):(d.current.pause(),m((function(e){return l(l({},e),{playing:!1})})))},f=function(){d.current.muted=!d.current.muted,m((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(be,{color:"var(--main-color)",className:"control",onClick:p}),u.playing&&e.createElement(Ee,{color:"var(--main-color)",className:"control",onClick:p}),u.muted&&e.createElement(Ne,{color:"var(--main-color)",className:"control",onClick:f}),!u.muted&&e.createElement(ke,{color:"var(--main-color)",className:"control",onClick:f})),e.createElement(Ae,{autoPlay:r,src:o,onPlay:function(){n&&n(),m((function(e){return l(l({},e),{playing:!0})}))},onEnded:function(){i&&i()},videoRef:d,id:a}))},Ae=function(t){var r=t.videoRef,n=t.src,a=t.id,o=t.onPlay,i=t.onEnded,l=t.autoPlay;return e.createElement("video",{ref:r,src:n,id:a,onPlay:function(){o&&o()},autoPlay:l,onEnded:function(){i&&i()}})},qe=function(t){var r=t.src,n=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}),m=u[0],d=u[1],p=r.includes("/image/"),f=r.includes("/video/"),g=r.replace("https://res.cloudinary.com/","").split("/");e.useEffect((function(){m.width!==s.current.offsetWidth&&m.height!==s.current.offsetHeight&&d({width:s.current.offsetWidth||0,height:s.current.offsetHeight||0})}));return e.createElement("div",{ref:s,className:"mediaWrapper"},p&&e.createElement(Ie,l({},i,{height:m.height?m.height:250,width:m.width?m.width:400,quality:"90",gravity:He(Re,(null==n?void 0:n.gravity_mode)||0),crop:He(Se,(null==n?void 0:n.crop_mode)||0),src:g,alt:a,id:o})),f&&e.createElement(Fe,l({},i,{height:m.height?m.height:250,width:m.width?m.width:400,quality:"90",gravity:He(Re,(null==n?void 0:n.gravity_mode)||0),crop:He(Se,(null==n?void 0:n.crop_mode)||0),id:o,src:r})))};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}");var Ze=function(r){var n=r.isSummary,a=r.isDisableNext,o=r.isDisablePrev,i=r.amount,l=r.currency,c=r.onPrev,s=r.onNext,u=r.count,m=r.isAddDisable,d=r.isRemoveDisable,p=r.onAdd,f=r.onRemove;return e.createElement("div",{className:t("footerControls",{summary:n})},n?e.createElement(e.Fragment,null,e.createElement(Pe,{count:u,isRemoveDisable:d,isAddDisable:m,onAdd:p,onRemove:f}),e.createElement("div",{className:"button major"},e.createElement("div",{className:"addLabel"},e.createElement(fe,{color:"#fff",size:"small"})," Add to Cart"),e.createElement("div",null,Le(l,i)))):e.createElement(e.Fragment,null,e.createElement("div",{onClick:c,className:t("button",{disable:o})},"Back"),e.createElement("div",{onClick:s,className:t("button major",{disable:a})},"Next ",Le(l,i))))};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(r){var n=r.steps,a=r.currentStep,o=n[a].component,i=n[a].name;return e.createElement("div",{className:"stepper"},e.createElement("div",{className:"stepperHeader"},i),e.createElement("div",{className:"steps"},Array(n.length).fill(0).map((function(r,o){return e.createElement(e.Fragment,{key:o},e.createElement("div",{className:t("step",{active:o===a})}),o!==n.length-1&&e.createElement("div",{className:"line"}))}))),o)};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 _e=function(r){var n=r.ingredients,a=r.onSelect,o=r.currency;return e.createElement("div",{className:"extrasRadio"},n.map((function(r){return e.createElement("div",{key:r.id,onClick:(n=r.id,i=r.quantity||1,function(){return a(n,i)}),className:t("extra",{selected:!!r.quantity})},e.createElement("span",{className:"extraName"},r.name),!!r.price&&e.createElement("span",{className:"extraPrice"},"+",Le(o,r.price)));var n,i})))};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(r){var n=r.suboptions,a=r.onChangeQuantity,o=r.currency,i=function(e,t){return function(){return a(e,t)}};return e.createElement("div",{className:"suboptionMultiSelector"},n.map((function(r){return e.createElement("div",{className:"suboption",key:r.id},e.createElement("span",{className:t("suboptionName",{selected:!!r.quantity})},r.name),e.createElement("div",{className:"counterSection"},!!r.price&&e.createElement("span",{className:"price"},"+",Le(o,r.price)),e.createElement(Pe,{count:r.quantity||0,isAddDisable:r.quantity===r.max,isRemoveDisable:!r.quantity,onAdd:i(r.id,(r.quantity||0)+1),onRemove:i(r.id,(r.quantity||0)-1)})))})))};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 We=function(t){var r=t.message;return e.createElement("div",{className:"warning"},e.createElement(je,{size:"small",color:"var(--warning, #fe7171)"})," ",r)};i(".productCommentSection .inputName{display:inline-block;margin:20px 0 10px}.productCommentSection .inputName:first-child{margin:0 0 10px}.productCommentSection .labelInput{width:100%}");var Ue=function(t){var r=t.name,n=t.comment,a=t.onCommentChange,o=t.onNameChange;return e.createElement("div",{className:"productCommentSection"},e.createElement("span",{className:"inputName"},"Add Name"),e.createElement(ze,{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:r}),e.createElement("span",{className:"inputName"},"Add Comment"),e.createElement(ze,{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:n}))};i(".productSummary .line{color:#0e1328;display:grid;font-size:14px;grid-template-columns:1fr 1fr 100px;margin:0 0 5px}.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}");var Ge,Ke=function(t){var r=t.summary,n=t.onClickChange;return e.createElement("div",{className:"productSummary"},r.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 n(t.index)},className:"button"},"Change"))})))};!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(Ge||(Ge={}));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}.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}");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 Qe=function(t){var r=t.className,n=void 0===r?"":r,a=t.label,o=t.icon;return e.createElement("div",{className:"tag "+n||""},a,o)},Je=function(t){var r=t.vegan,n=t.vegetarian,a=t.isNew,o=t.spicy,i=t.glutenFree,l=function(){return a?e.createElement(Qe,{label:"new",className:"additionItem",icon:e.createElement(ce,null)}):null},c=function(){return r?e.createElement(Qe,{label:"vegan",className:"additionVegan",icon:e.createElement(e.Fragment,null,e.createElement(ue,null),e.createElement(ue,null))}):n?e.createElement(Qe,{label:"vegetarian",className:"additionVegetarian",icon:e.createElement(ue,null)}):null},s=function(){return o?e.createElement(Qe,{label:"spicy",className:"additionSpicy",icon:e.createElement(e.Fragment,null,Array(o).fill(0).map((function(t,r){return e.createElement(me,{key:r})})))}):null},u=function(){return i?e.createElement(Qe,{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},Ye=function(r){var n=r.id,a=r.currency,o=r.name,i=r.description,l=r.price,c=r.oldPrice,s=r.image,u=r.trashIcon,m=void 0!==u&&u,d=r.onClickTrash,p=r.onClick,f=r.vegetarian,g=r.vegan,v=r.isNew,h=r.spicy,x=r.glutenFree,y=r.quantity;return e.createElement("div",{className:"productPreview",onClick:function(){null==p||p(n)}},e.createElement(qe,{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),m&&e.createElement(le,{onClick:function(e){e.stopPropagation(),null==d||d(n)},width:20,height:20})),e.createElement("div",{className:"description"},i)),e.createElement("div",{className:"productReviewFooter"},e.createElement("div",{className:"options"},e.createElement(Je,{isNew:v,spicy:h,vegan:g,glutenFree:x,vegetarian:f})),e.createElement("div",{className:"priceBlock"},!!c&&e.createElement("div",{className:t("oldPrice",{lineThrough:!y})},Le(a,c)),!!y&&e.createElement("span",{className:"quantity"}," x",y," "),!!l&&e.createElement("div",{className:t("currentPrice",{newPrice:!!c&&!y})},Le(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 $e=function(t){var r=t.score,n=t.isNew,a=t.kosher;return e.createElement("div",{className:"restaurantTags"},!!n&&e.createElement(Qe,{label:"new",className:"restaurantTagNew"}),!!r&&r>0&&e.createElement(Qe,{label:r.toFixed(1),className:"restaurantTagScore",icon:e.createElement(ce,null)}),!!a&&e.createElement(Qe,{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 Xe=function(t){var r=t.currency,n=t.amount,a=t.onClick;return e.createElement("div",{className:"headerCartButton",onClick:a},e.createElement(fe,{className:"icon"}),e.createElement("span",{className:"label"},"Checkout"),e.createElement("span",{className:"price"},Le(r,n)))};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 et=function(r){var a=r.dontHide,o=r.minimum,i=r.isPickUp,l=r.withTitle,c=r.estimationRangeMax,s=r.estimationRangeMin,u=r.estimationTime,m=r.distance,d=r.deliveryPrice,p=r.currency,f=r.deliveryToLocation,g=e.useState([]),v=g[0],h=g[1];return e.useEffect((function(){var r=[];o&&r.push(e.createElement("div",{className:t("footer-item mini-order")},e.createElement(fe,null),l&&e.createElement("span",{className:t("title")},"Min order"),Le(p,o))),m&&!i&&r.push(e.createElement("span",{className:t("footer-item")},e.createElement(xe,null),l&&e.createElement("div",{className:t("title")},"Distance"),"distanceKm ",m)),(c||s)&&r.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(ve,null):e.createElement(ye,null),l&&e.createElement("div",{className:t("title")},i?"Pickup time":"Delivery time"),s,"-",c," min")),!i&&f&&r.push(e.createElement("div",{className:t("footer-item delivery-price")},e.createElement(ge,null),l&&e.createElement("span",{className:t("title")},"deliveryPrice"),d?Le(p,d):e.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",e.createElement(we,null)," "))),0===c&&0===s&&u&&r.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(ye,null):e.createElement(ve,null),"up_to ",u," min")),h(r)}),[o,i,c,s,u,m,d,p,f]),e.createElement(n.OverflowList,{className:"footer benefitsData",minVisibleItems:a?v.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:v})},tt=e.createContext(null).Provider;exports.CounterButton=Pe,exports.IconBicycle=ge,exports.IconCart=fe,exports.IconClockAfternoon=ve,exports.IconClose=he,exports.IconMapPin=xe,exports.IconMinus=Oe,exports.IconMute=Ne,exports.IconNoGluten=de,exports.IconPause=Ee,exports.IconPersonSimpleWalk=ye,exports.IconPlay=be,exports.IconPlus=Ce,exports.IconSearch=pe,exports.IconSparkle=we,exports.IconSpicy=me,exports.IconStar=ce,exports.IconStarBorder=se,exports.IconTrash=le,exports.IconUnmute=ke,exports.IconVegan=ue,exports.IconWarning=je,exports.IngredientsSelector=Be,exports.Input=ze,exports.Media=qe,exports.ProductConstructor=function(t){var r=t.name,n=t.media,a=t.currency,o=t.price,i=t.oldPrice,c=t.description,s=t.totalPrice,u=t.allowComments,m=t.options,d=t.optionsHalf,p=t.max,f=t.quantity,g=t.ingredients,v=t.onChangeIngredients,h=t.onChangeOption,x=t.onChangeOptionHalf,y=t.isHalf,w=t.onChangeName,b=t.onChangeComment,E=t.onAdd,N=t.onRemove,k=t.onAddToCart,C=e.useState(null),O=C[0],j=C[1],P=e.useState([]),B=P[0],S=P[1],R=e.useState(0),T=R[0],M=R[1];e.useEffect((function(){S(function(e,t,r){var n=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:"#HALF_SELECTOR",respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:Ge.none,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!r)},{name:"Half",enabled:!0,max:1,id:"#HALF_SELECTOR_HALF",quantity:Number(r)}]};n.push(o)}return[].concat(n).concat(a)}(m,d,y)),j(function(e){return{id:"#INGREDIENTS",min:0,max:e.length,name:"Ingredients",ingredients:e.map((function(e){var t;return l(l({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(g))}),[g,m,d,y]);var z=function(){var e=H()[T];return!!(null==e?void 0:e.id)&&function(e){var t=e.suboptions.reduce((function(e,t){var r;return(null!==(r=t.quantity)&&void 0!==r?r: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)},H=function(){var t=[];return O&&t.push({name:"Ingredients",component:e.createElement(Be,{ingredients:O.ingredients,onSelect:v})}),t.push.apply(t,B.map((function(t){return l(l({},t),{name:t.name,component:(r=t,n=function(e,t){r.withHalfOption?x(r.id,e,r.half,t):h(r.id,e,t)},1===r.max&&1===r.min?e.createElement(_e,{key:r.id,currency:a,ingredients:r.suboptions,onSelect:n}):e.createElement(Ve,{key:r.id,currency:a,suboptions:r.suboptions,onChangeQuantity:n}))});var r,n}))),u&&t.push({name:"Comments",component:e.createElement(Ue,{name:"",comment:"",onNameChange:w,onCommentChange:b})}),t.push({name:"Summary",component:e.createElement(Ke,{summary:[{name:"name",value:"value"+T,index:T}],onClickChange:function(e){return M(e)}})}),t};return e.createElement("div",{className:"productConstructor"},e.createElement("div",{className:"content"},!!n&&e.createElement(qe,l({},n)),e.createElement("div",{className:"headProduct"},e.createElement("div",{className:"name"},r),e.createElement("div",{className:"priceControl"},!!i&&e.createElement("div",{className:"oldPrice"},Le(a,i)),!!o&&e.createElement("div",{className:"price"},Le(a,o)))),e.createElement("div",{className:"description"},c)),z()&&e.createElement(We,{message:z().toString()}),B.length&&e.createElement(De,{steps:H(),currentStep:T}),e.createElement(Ze,{isSummary:T===H().length-1,isDisableNext:!!z(),isDisablePrev:0===T,currency:a,onPrev:function(){return M(T-1)},onNext:function(){return M(T+1)},onAddToCart:k,amount:s,count:f,onRemove:E,onAdd:N,isAddDisable:!!p&&f===p,isRemoveDisable:0===f}))},exports.ProductPreview=Ye,exports.ProductPreviewList=function(t){var r=t.categories,n=t.onClickProduct;return e.createElement("div",{className:"productPreviewList"},r.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(r){return e.createElement(Ye,l({key:r.id},r,{onClick:function(e){return n(t.id,e)}}))})))})))},exports.ProductTags=Je,exports.RestaurantHeader=function(t){var r=t.name,n=t.isFavorite,a=t.isNew,o=t.kosher,i=t.score,l=t.cartAmount,c=t.alternativeView,s=t.currency,u=t.searchValue,m=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"},r,n?e.createElement(ce,null):e.createElement(se,null)),(!!l||c)&&e.createElement($e,{isNew:a,kosher:o,score:i})),e.createElement("div",{className:"topRight"},!!l&&!c&&e.createElement(Xe,{onClick:d,amount:l,currency:s}))),e.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&e.createElement($e,{isNew:a,kosher:o,score:i}),e.createElement("div",{className:"benefits"},e.createElement(et,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&e.createElement("div",{className:"bottomRight"},e.createElement(ze,{className:"input",placeholder:"Search in menu...",icon:e.createElement(pe,null),value:u,onChange:m}),e.createElement(Xe,{onClick:d,amount:l,currency:s}))))},exports.Stepper=De,exports.SuboptionMultiSelector=Ve,exports.TranslationUIProvider=tt,exports.Warning=We;
|
|
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(".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 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}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 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 d;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 y;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 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 S,B;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}var H;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,R;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 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 A,q;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 K;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 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,ae=25,oe=30,ie=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?re:"big"===e?oe:e||ae}(r.size);return e.createElement(t,l({width:o,height:o},r,{style:a,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},le=ie((function(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em"},e),s||(s=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=ie((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),p||(p=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"),se=ie((function(e){return o.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),d||(d=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"),ue=ie((function(e){return o.createElement("svg",g({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},e),h||(h=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"),pe=ie((function(e){return o.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),v||(v=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"),me=ie((function(e){return o.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},e),y||(y=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"),de=ie((function(e){return o.createElement("svg",E({width:"1em",height:"1em",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},e),w||(w=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"),fe=ie((function(e){return o.createElement("svg",O({width:"1em",height:"1em",viewBox:"0 0 26 30",xmlns:"http://www.w3.org/2000/svg"},e),N||(N=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"),he=ie((function(e){return o.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=o.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=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"})),P||(P=o.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ge=ie((function(e){return o.createElement("svg",T({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S||(S=o.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),B||(B=o.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ve=ie((function(e){return o.createElement("svg",L({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},e),H||(H=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"),xe=ie((function(e){return o.createElement("svg",F({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=o.createElement("path",{d:"M12 12.75a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",strokeLinecap:"round",strokeLinejoin:"round"})),R||(R=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"),ye=ie((function(e){return o.createElement("svg",z({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=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"),be=ie((function(e){return o.createElement("svg",_({width:"1em",height:"1em",viewBox:"0 0 16 16",stroke:"#000",strokeWidth:1.3,xmlns:"http://www.w3.org/2000/svg"},e),A||(A=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"),we=ie((function(e){return o.createElement("svg",D({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Z||(Z=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"),Ee=ie((function(e){return o.createElement("svg",W({width:"1em",height:"1em",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),V||(V=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"),Ne=ie((function(e){return o.createElement("svg",G({width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),U||(U=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"),Oe=ie((function(e){return o.createElement("svg",Q({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"),ke=ie((function(e){return o.createElement("svg",X({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"),Ce=ie((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"),Pe=ie((function(e){return o.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=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})),te||(te=o.createElement("path",{d:"M12.271 16.84v.5m0-10v6-6Z",strokeWidth:2,strokeLinecap:"round"})))}),"fillByStroke"),je=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(Ce,{color:"var(--main-color, #007aff)",onClick:l,className:t("control",{disable:a})}),e.createElement("div",{className:"control count"},r),e.createElement(ke,{color:"var(--main-color, #007aff)",onClick:i,className:t("control",{disable:o})}))};i(".ingredients{align-items:center;display:flex;flex-direction:column}.ingredients .ingredient{border:1px solid #ccc;border-radius:100px;color:var(--main-color,#007aff);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;margin:0 0 10px;max-width:250px;min-width:200px;padding:10px 20px;transition:all .3s}.ingredients .ingredient:last-child{margin:0}.ingredients .ingredient:hover{opacity:.9}.ingredients .ingredient.selected{background:var(--main-color,#007aff);border-color:var(--main-color,#007aff);color:#fff}");var Se=function(n){var r=n.ingredients,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 Be,Te,He,Le,Ie=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)}})))};!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"}(Be||(Be={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(Te||(Te={})),function(e){e[e.best=1]="best",e[e.good=2]="good",e[e.eco=3]="eco",e[e.low=4]="low",e[e.custom=5]="custom"}(He||(He={})),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 Re=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},Fe=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,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"}))},ze=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],m=e.useRef(),d=function(){m.current.paused?(m.current.play(),p((function(e){return l(l({},e),{playing:!0})}))):(m.current.pause(),p((function(e){return l(l({},e),{playing:!1})})))},f=function(){m.current.muted=!m.current.muted,p((function(e){return l(l({},e),{muted:m.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:d}),u.playing&&e.createElement(Ee,{color:"var(--main-color)",className:"control",onClick:d}),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(Ae,{autoPlay:n,src:o,onPlay:function(){r&&r(),p((function(e){return l(l({},e),{playing:!0})}))},onEnded:function(){i&&i()},videoRef:m,id:a}))},Ae=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()}})},qe=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],m=u[1],d=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&&m({width:s.current.offsetWidth||0,height:s.current.offsetHeight||0})}));return e.createElement("div",{ref:s,className:"mediaWrapper"},d&&e.createElement(Me,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Re(Te,(null==r?void 0:r.gravity_mode)||0),crop:Re(Be,(null==r?void 0:r.crop_mode)||0),src:h,alt:a,id:o})),f&&e.createElement(ze,l({},i,{height:p.height?p.height:250,width:p.width?p.width:400,quality:"90",gravity:Re(Te,(null==r?void 0:r.gravity_mode)||0),crop:Re(Be,(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}");var _e=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,m=n.isAddDisable,d=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:d||a,isAddDisable:m||a,onAdd:f,onRemove:h}),e.createElement("div",{onClick:g,className:t("button major",{disable:a})},e.createElement("div",{className:"addLabel"},e.createElement(fe,{color:"#fff",size:"small"})," Add to Cart"),e.createElement("div",null,Fe(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})},"Next ",Fe(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 Ze=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 De=function(n){var r=n.suboptions,a=n.onChangeQuantity,o=n.currency,i=function(e,t){return function(){return a(e,t)}};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"},"+",Fe(o,n.price)),e.createElement(je,{count:n.quantity||0,isAddDisable:n.quantity===n.max,isRemoveDisable:!n.quantity,onAdd:i(n.id,(n.quantity||0)+1),onRemove:i(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 Ve=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"},"+",Fe(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 We=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 Ue=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(Ie,{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(Ie,{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{white-space:break-spaces}");var Ge,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"))})))},Qe="#INGREDIENTS",Je="#HALF_SELECTOR",Ye="#HALF_SELECTOR_HALF";exports.HALF_OPTION=void 0,(Ge=exports.HALF_OPTION||(exports.HALF_OPTION={}))[Ge.none=0]="none",Ge[Ge.left=1]="left",Ge[Ge.right=2]="right";var $e=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:et(e.suboptions),index:i++}),t.forEach((function(e){o.push({name:e.name,value:Xe(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:Xe(e.suboptions),index:i++})})),r&&o.push({name:"Comments",value:r,index:i++}),o},Xe=function(e){return e.reduce((function(e,t){return t.quantity&&(e+=t.name+" x"+t.quantity+"\n"),e}),"")},et=function(e){return e.reduce((function(e,t){return 1!==t.quantity&&void 0!==t.quantity||(e+=t.name+"\n"),e}),"")};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}.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}");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 tt=function(t){var n=t.className,r=void 0===n?"":n,a=t.label,o=t.icon;return e.createElement("div",{className:"tag "+r||""},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(tt,{label:"new",className:"additionItem",icon:e.createElement(ce,null)}):null},c=function(){return n?e.createElement(tt,{label:"vegan",className:"additionVegan",icon:e.createElement(e.Fragment,null,e.createElement(ue,null),e.createElement(ue,null))}):r?e.createElement(tt,{label:"vegetarian",className:"additionVegetarian",icon:e.createElement(ue,null)}):null},s=function(){return o?e.createElement(tt,{label:"spicy",className:"additionSpicy",icon:e.createElement(e.Fragment,null,Array(o).fill(0).map((function(t,n){return e.createElement(pe,{key:n})})))}):null},u=function(){return i?e.createElement(tt,{label:"free gluten",className:"additionNoGluten",icon:e.createElement(me,null)}):null};return l()||c()||s()||u()?e.createElement("div",{className:"productTags"},l(),c(),s(),u()):null},rt=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,m=n.onClickTrash,d=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==d||d(r)}},e.createElement(qe,{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(le,{onClick:function(e){e.stopPropagation(),null==m||m(r)},width:20,height:20})),e.createElement("div",{className:"description"},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})},Fe(a,c)),!!y&&e.createElement("span",{className:"quantity"}," x",y," "),!!l&&e.createElement("div",{className:t("currentPrice",{newPrice:!!c&&!y})},Fe(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 at=function(t){var n=t.score,r=t.isNew,a=t.kosher;return e.createElement("div",{className:"restaurantTags"},!!r&&e.createElement(tt,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&e.createElement(tt,{label:n.toFixed(1),className:"restaurantTagScore",icon:e.createElement(ce,null)}),!!a&&e.createElement(tt,{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 ot=function(t){var n=t.currency,r=t.amount,a=t.onClick;return e.createElement("div",{className:"headerCartButton",onClick:a},e.createElement(fe,{className:"icon"}),e.createElement("span",{className:"label"},"Checkout"),e.createElement("span",{className:"price"},Fe(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 it=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,m=n.deliveryPrice,d=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(fe,null),l&&e.createElement("span",{className:t("title")},"Min order"),Fe(d,o))),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(ye,null),l&&e.createElement("div",{className:t("title")},i?"Pickup time":"Delivery time"),s,"-",c," min")),!i&&f&&n.push(e.createElement("div",{className:t("footer-item delivery-price")},e.createElement(he,null),l&&e.createElement("span",{className:t("title")},"deliveryPrice"),m?Fe(d,m):e.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",e.createElement(be,null)," "))),0===c&&0===s&&u&&n.push(e.createElement("div",{className:t("time footer-item")},i?e.createElement(ye,null):e.createElement(ge,null),"up_to ",u," min")),v(n)}),[o,i,c,s,u,p,m,d,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})},lt=e.createContext(null).Provider;exports.CounterButton=je,exports.INGREDIENTS=Qe,exports.IconBicycle=he,exports.IconCart=fe,exports.IconClockAfternoon=ge,exports.IconClose=ve,exports.IconMapPin=xe,exports.IconMinus=Ce,exports.IconMute=Ne,exports.IconNoGluten=me,exports.IconPause=Ee,exports.IconPersonSimpleWalk=ye,exports.IconPlay=we,exports.IconPlus=ke,exports.IconSearch=de,exports.IconSparkle=be,exports.IconSpicy=pe,exports.IconStar=ce,exports.IconStarBorder=se,exports.IconTrash=le,exports.IconUnmute=Oe,exports.IconVegan=ue,exports.IconWarning=Pe,exports.IngredientsSelector=Se,exports.Input=Ie,exports.Media=qe,exports.ProductConstructor=function(t){var n=t.name,r=t.media,a=t.currency,o=t.price,i=t.oldPrice,c=t.description,s=t.totalPrice,u=t.allowComments,p=t.options,m=t.optionsHalf,d=t.max,f=t.quantity,h=t.ingredients,g=t.nameOnBox,v=t.comments,x=t.isLoading,y=t.isHalf,b=t.onChangeIngredients,w=t.onChangeOption,E=t.onChangeOptionHalf,N=t.onChangeNameOnBox,O=t.onChangeComment,k=t.onAdd,C=t.onRemove,P=t.onAddToCart,j=t.onChangeIsHalf,S=e.useState(null),B=S[0],T=S[1],H=e.useState([]),L=H[0],I=H[1],R=e.useState(0),F=R[0],M=R[1];e.useEffect((function(){I(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:Je,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:exports.HALF_OPTION.none,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:Ye,quantity:Number(n)}]};r.push(o)}return[].concat(r).concat(a)}(p,m,y)),h.length&&T(function(e){return{id:Qe,min:0,respectTo:null,half:exports.HALF_OPTION.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!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))}),[h,p,m,y]);var z=function(){var e=q()[F];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)},A=function(t){var n=function(e,n){!function(e){return e===Je}(t.id)?t.withHalfOption?E(t.id,e,t.half,n):w(t.id,e,n):j(function(e){return e===Ye}(e))};return 1===t.max&&1===t.min?e.createElement(Ve,{key:t.id,currency:a,ingredients:t.suboptions,onSelect:n}):e.createElement(De,{key:t.id,currency:a,suboptions:t.suboptions,onChangeQuantity:n})},q=function(){var t=[];return B&&t.push({name:"Ingredients",component:e.createElement(Se,{ingredients:B.suboptions,onSelect:b})}),t.push.apply(t,L.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:A(e)});var t}))),u&&t.push({name:"Comments",component:e.createElement(Ue,{name:g,comment:v,onNameChange:N,onCommentChange:O})}),t.push({name:"Summary",component:e.createElement(Ke,{summary:$e(B,p,m,u?"".concat(v||"-"," | ").concat(g||"-"):null),onClickChange:function(e){return M(e)}})}),t};return e.createElement("div",{className:"productConstructor"},e.createElement("div",{className:"content"},!!r&&e.createElement(qe,l({},r)),e.createElement("div",{className:"headProduct"},e.createElement("div",{className:"name"},n),e.createElement("div",{className:"priceControl"},!!i&&e.createElement("div",{className:"oldPrice"},Fe(a,i)),!!o&&e.createElement("div",{className:"price"},Fe(a,o)))),e.createElement("div",{className:"description"},c)),z()&&e.createElement(We,{message:z().toString()}),L.length&&e.createElement(Ze,{steps:q(),currentStep:F}),e.createElement(_e,{isLoading:x,isSummary:F===q().length-1,isDisableNext:!!z(),isDisablePrev:0===F,currency:a,onPrev:function(){return M(F-1)},onNext:function(){return M(F+1)},onAddToCart:P,amount:s,count:f,onRemove:C,onAdd:k,isAddDisable:!!d&&f===d,isRemoveDisable:0===f}))},exports.ProductPreview=rt,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(rt,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,m=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(at,{isNew:a,kosher:o,score:i})),e.createElement("div",{className:"topRight"},!!l&&!c&&e.createElement(ot,{onClick:m,amount:l,currency:s}))),e.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&e.createElement(at,{isNew:a,kosher:o,score:i}),e.createElement("div",{className:"benefits"},e.createElement(it,{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(de,null),value:u,onChange:p}),e.createElement(ot,{onClick:m,amount:l,currency:s}))))},exports.Stepper=Ze,exports.SuboptionMultiSelector=De,exports.SuboptionRadioSelector=Ve,exports.TranslationUIProvider=lt,exports.Warning=We,exports.checkRespectTo=function(e,t){if(!e.respectTo)return e;var n=t.flatMap((function(e){return e.suboptions})).find((function(t){return t.id===e.respectTo}));return n&&n.quantity?l(l({},e),{enabled:!0}):l(l({},e),{enabled:!1})},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.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};
|
|
@@ -3,7 +3,7 @@ import './style.scss';
|
|
|
3
3
|
import { MediaProp } from '../Media';
|
|
4
4
|
import { CURRENCY } from '../../enums/enums';
|
|
5
5
|
import { Ingredient } from '../IngredientsSelector/IngredientsSelector';
|
|
6
|
-
import { IOption } from '../
|
|
6
|
+
import { IOption } from '../SuboptionSelector/';
|
|
7
7
|
import { HALF_OPTION } from '../../helpers/productConstructor';
|
|
8
8
|
export interface ProductConstructorProps {
|
|
9
9
|
id: string;
|
|
@@ -18,6 +18,9 @@ export interface ProductConstructorProps {
|
|
|
18
18
|
quantity?: number;
|
|
19
19
|
allowComments: boolean;
|
|
20
20
|
isHalf: boolean;
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
nameOnBox: string;
|
|
23
|
+
comments: string;
|
|
21
24
|
ingredients: Ingredient[];
|
|
22
25
|
options: IOption[];
|
|
23
26
|
optionsHalf: IOption[];
|
|
@@ -25,10 +28,11 @@ export interface ProductConstructorProps {
|
|
|
25
28
|
onChangeQuantity: (quantity: number) => void;
|
|
26
29
|
onChangeOption: (parentId: string, id: string, quantity: number) => void;
|
|
27
30
|
onChangeOptionHalf: (parentId: string, id: string, half: HALF_OPTION, quantity: number) => void;
|
|
28
|
-
|
|
31
|
+
onChangeNameOnBox: (v: string) => void;
|
|
29
32
|
onChangeComment: (v: string) => void;
|
|
30
33
|
onAdd: () => void;
|
|
31
34
|
onRemove: () => void;
|
|
32
35
|
onAddToCart: () => void;
|
|
36
|
+
onChangeIsHalf: (v: boolean) => void;
|
|
33
37
|
}
|
|
34
38
|
export declare const ProductConstructor: FC<ProductConstructorProps>;
|
|
@@ -8,8 +8,9 @@ export interface ProductConstructorFooterProps extends CounterButtonProps {
|
|
|
8
8
|
isDisablePrev: boolean;
|
|
9
9
|
currency: CURRENCY;
|
|
10
10
|
amount: number;
|
|
11
|
+
isLoading: boolean;
|
|
11
12
|
onAddToCart: () => void;
|
|
12
13
|
onNext: () => void;
|
|
13
14
|
onPrev: () => void;
|
|
14
15
|
}
|
|
15
|
-
export declare const ProductConstructorFooter: ({ isSummary, isDisableNext, isDisablePrev, amount, currency, onPrev, onNext, count, isAddDisable, isRemoveDisable, onAdd, onRemove, }: ProductConstructorFooterProps) => React.JSX.Element;
|
|
16
|
+
export declare const ProductConstructorFooter: ({ isSummary, isLoading, isDisableNext, isDisablePrev, amount, currency, onPrev, onNext, count, isAddDisable, isRemoveDisable, onAdd, onRemove, onAddToCart, }: ProductConstructorFooterProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ProductSummaryProps, ProductSummary } from './ProductSummary';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ISuboption } from './ISuboption';
|
|
2
|
+
import { HALF_OPTION } from '../../helpers/productConstructor';
|
|
3
|
+
export interface IOption {
|
|
4
|
+
name?: string;
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
respectTo: string | null;
|
|
8
|
+
withHalfOption: boolean;
|
|
9
|
+
id: string;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
limitSuboptionsByMax: boolean;
|
|
12
|
+
half: HALF_OPTION;
|
|
13
|
+
suboptions: ISuboption[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type SuboptionRadioSelectorProps, SuboptionRadioSelector } from './SuboptionRadioSelector';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { INGREDIENTS, HALF_OPTION, prepareHalfOptions, convertToServerModelOptions, checkRespectTo, } from './productConstructor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOption } from '../components
|
|
1
|
+
import { IOption } from '../components';
|
|
2
2
|
export declare const INGREDIENTS = "#INGREDIENTS";
|
|
3
3
|
export declare const HALF_SELECTOR = "#HALF_SELECTOR";
|
|
4
4
|
export declare const HALF_SELECTOR_FULL = "#HALF_SELECTOR_FULL";
|
|
@@ -8,12 +8,27 @@ export declare enum HALF_OPTION {
|
|
|
8
8
|
left = 1,
|
|
9
9
|
right = 2
|
|
10
10
|
}
|
|
11
|
-
export declare const prepeareIngredients: (ingredients: any) =>
|
|
12
|
-
id: string;
|
|
13
|
-
min: number;
|
|
14
|
-
max: any;
|
|
15
|
-
name: string;
|
|
16
|
-
ingredients: any;
|
|
17
|
-
};
|
|
11
|
+
export declare const prepeareIngredients: (ingredients: any) => IOption;
|
|
18
12
|
export declare const prepeareOptions: (opt: IOption[], optHalf: IOption[], isHalf: any) => any[];
|
|
19
13
|
export declare const getErrorContsructor: (option: any) => string;
|
|
14
|
+
export declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
15
|
+
export declare const isHalfOption: (id: string) => boolean;
|
|
16
|
+
export declare const isHalfOptionSelected: (id: string) => boolean;
|
|
17
|
+
export declare const getSummaryProduct: (ingredient: IOption, options: IOption[], optionsHalf: IOption[], comments: string | null) => {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
index: number;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const getSidesName: (option: IOption) => string;
|
|
23
|
+
export declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
suboptions: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
price: number;
|
|
30
|
+
quantity: number;
|
|
31
|
+
half_option: HALF_OPTION;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
export declare const checkRespectTo: (option: IOption, options: IOption[]) => IOption;
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t,{useState as r,useRef as n,useEffect as a,createContext as o}from"react";import i from"classnames";import{Image as l,Transformation as c}from"cloudinary-react";import{OverflowList as s}from"react-overflow-list";function m(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}m(":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}");m(".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 u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},u.apply(this,arguments)};function d(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}var p;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}m(".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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}var h;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}var y;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var b;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}var N;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(this,arguments)}var B,S,R;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z.apply(this,arguments)}var T,H;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F.apply(this,arguments)}var A,q;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z.apply(this,arguments)}var D;function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(this,arguments)}var K;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}var re;function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ne.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ie.apply(this,arguments)}var le=20,ce=25,se=30,me=function(e,r){return function(n){var a=function(e){var t=e.className,r=e.props,n={};return r.color&&t.includes("Fill")&&(n.fill=r.color),r.color&&t.includes("Stroke")&&(n.stroke=r.color),n}({className:r,props:n}),o=function(e){return"small"===e?le:"big"===e?se:e||ce}(n.size);return t.createElement(e,u({width:o,height:o},n,{style:a,className:"icon ".concat(n.className||""," ").concat(r||"")}))}},ue=me((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"),de=me((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"),pe=me((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),h||(h=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=me((function(t){return e.createElement("svg",w({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},t),y||(y=e.createElement("path",{d:"M11.688 1.167c.711-.08 1.385.438 1.385 1.153 0 6.778-3.783 9.856-8.448 9.856-.724 0-1.313-.619-1.153-1.325.317-1.39 1.014-2.424 2.347-3.604.847-.75.776-1.182.358-.934-2.875 1.711-4.303 4.023-4.366 7.715a.263.263 0 0 1-.263.26h-.44a.683.683 0 0 1-.692-.706 12.9 12.9 0 0 1 .152-1.505c.045-.276.049-.557.01-.834-.118-.859-.177-1.956-.177-3.29A7.04 7.04 0 0 1 7.44.912c1.156 0 2.312.474 4.247.254Z"})))}),"fillByFill"),ge=me((function(t){return e.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 64 64"},t),b||(b=e.createElement("path",{d:"M49.1 11c-2.8 5-2.5 9.4.7 9.8 2.8.4 2.9 3.2.2 3.2-1.2 0-3.5-.7-5.1-1.6-3.3-1.7-4.5-1.4-3.6 1.1.4.8 2.6 2 5.1 2.7 4.4 1.2 5.3 2.8 1.6 2.8-1.2 0-2.9 1.9-4.9 5.4-3.8 6.8-9.2 12.1-15.6 15.3-2.7 1.4-5.3 3-5.6 3.5-.3.5-3 .8-6 .6l-5.4-.3 3.1-1.7C21.4 47.6 30.7 35.9 35 25c2.2-5.4 3.3-6.8 6.3-8.3 4.1-2.1 4-4.2-.2-3.2-4 1-6.7 4.1-9 10.4C28.6 33.7 21 43 10.5 50.6c-2.5 1.9-2.8 2.5-1.9 4 1 1.6 2.4 1.9 10.2 1.8 7.6 0 9.8-.4 14.5-2.8 7.2-3.5 12.9-10 17.8-20 4.4-9.1 4.8-12.2 1.8-16.1-2.1-2.5-2.1-2.9-.6-6 1.4-3 1.4-4.5-.3-4.5-.3 0-1.6 1.8-2.9 4z"})))}),"fillByFill"),ve=me((function(t){return e.createElement("svg",k({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"),he=me((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=me((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"),ye=me((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),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"})),R||(R=e.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),we=me((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})),H||(H=e.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),be=me((function(t){return e.createElement("svg",F({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},t),M||(M=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=me((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),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"})),q||(q=e.createElement("path",{d:"M19.5 9.75c0 6.75-7.5 12-7.5 12s-7.5-5.25-7.5-12a7.5 7.5 0 0 1 15 0Z",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),Ne=me((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),D||(D=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"),ke=me((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),_||(_=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=me((function(t){return e.createElement("svg",G({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=me((function(t){return e.createElement("svg",Q({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"),je=me((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=me((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=me((function(t){return e.createElement("svg",ne({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"),Se=me((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"),Re=me((function(t){return e.createElement("svg",ie({width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"#000",xmlns:"http://www.w3.org/2000/svg"},t),ae||(ae=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"),ze=function(e){var r=e.count,n=e.isRemoveDisable,a=e.isAddDisable,o=e.onAdd,l=e.onRemove;return t.createElement("div",{className:"counterButton"},t.createElement(Se,{color:"var(--main-color, #007aff)",onClick:l,className:i("control",{disable:n})}),t.createElement("div",{className:"control count"},r),t.createElement(Be,{color:"var(--main-color, #007aff)",onClick:o,className:i("control",{disable:a})}))};m(".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 r=e.ingredients,n=e.onSelect;return t.createElement("div",{className:"ingredients"},r.map((function(e){return t.createElement("div",{key:e.id,onClick:(r=e.id,function(){return n(r)}),className:i("ingredient",{selected:!!e.quantity})},e.name);var r})))};m(".labelInput{align-items:center;background:#f8f8f8;border-radius:var(--border-radius,5px);display:inline-flex;height:44px;overflow:hidden;padding:0 13px}.labelInput .icon{height:25px;margin:0 10px 0 0;width:25px}.labelInput input{background:none;border:none;height:100%;outline:none;width:100%}.labelInput input::-webkit-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-moz-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-ms-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::placeholder{color:#747474;font-size:14px;font-weight:400}.rtl .labelInput .icon{margin:0 0 0 10px}");var He,Le,Me,Fe,Ae=function(e){var r=e.icon,n=e.debounce,a=e.onChange,o=d(e,["icon","debounce","onChange"]),i=t.useState(null),l=i[0],c=i[1];return t.useEffect((function(){var e=setTimeout((function(){a&&a(l)}),n);return function(){return clearTimeout(e)}}),[l]),t.createElement("label",{className:"labelInput"},r&&r,t.createElement("input",u({},o,{onChange:function(e){c(e)}})))};!function(e){e[e.fill=0]="fill",e[e.pad=1]="pad",e[e.fit=2]="fit",e[e.mfit=3]="mfit",e[e.scale=4]="scale",e[e.limit=5]="limit",e[e.lpad=6]="lpad",e[e.mpad=7]="mpad",e[e.crop=8]="crop",e[e.fill_pad=9]="fill_pad",e[e.thumb=10]="thumb"}(He||(He={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(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"}(Me||(Me={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(Fe||(Fe={}));m(".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 qe=function(e,t){return Object.keys(e).find((function(r){return e[r]===t}))},Ze=function(e,t){var r="";return e&&(r=Fe[e]||e),(t||0===t)&&(r="".concat(t," ").concat(r)),r},De=function(e){var r=e.src,n=e.alt,a=e.width,o=e.height,i=e.quality,s=e.gravity,m=e.crop,u=e.id;return t.createElement(l,{id:u,cloudName:r[0],secure:"true",publicId:r.splice(3).join("/"),alt:n},t.createElement(c,{width:a,height:o,quality:i,gravity:s,crop:m}),t.createElement(c,{fetchFormat:"auto"}))},Ie=function(e){var a=e.autoPlay,o=e.onStart,i=e.id,l=e.src,c=e.onEnd,s=e.controls,m=r({playing:!1,muted:!1}),d=m[0],p=m[1],f=n(),g=function(){f.current.paused?(f.current.play(),p((function(e){return u(u({},e),{playing:!0})}))):(f.current.pause(),p((function(e){return u(u({},e),{playing:!1})})))},v=function(){f.current.muted=!f.current.muted,p((function(e){return u(u({},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(Ce,{color:"var(--main-color)",className:"control",onClick:g}),d.playing&&t.createElement(Oe,{color:"var(--main-color)",className:"control",onClick:g}),d.muted&&t.createElement(je,{color:"var(--main-color)",className:"control",onClick:v}),!d.muted&&t.createElement(Pe,{color:"var(--main-color)",className:"control",onClick:v})),t.createElement(_e,{autoPlay:a,src:l,onPlay:function(){o&&o(),p((function(e){return u(u({},e),{playing:!0})}))},onEnded:function(){c&&c()},videoRef:f,id:i}))},_e=function(e){var r=e.videoRef,n=e.src,a=e.id,o=e.onPlay,i=e.onEnded,l=e.autoPlay;return t.createElement("video",{ref:r,src:n,id:a,onPlay:function(){o&&o()},autoPlay:l,onEnded:function(){i&&i()}})},Ve=function(e){var o=e.src,i=e.settings,l=e.alt,c=e.id,s=d(e,["src","settings","alt","id"]),m=n(null),p=r({width:0,height:0}),f=p[0],g=p[1],v=o.includes("/image/"),h=o.includes("/video/"),x=o.replace("https://res.cloudinary.com/","").split("/");a((function(){f.width!==m.current.offsetWidth&&f.height!==m.current.offsetHeight&&g({width:m.current.offsetWidth||0,height:m.current.offsetHeight||0})}));return t.createElement("div",{ref:m,className:"mediaWrapper"},v&&t.createElement(De,u({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:qe(Le,(null==i?void 0:i.gravity_mode)||0),crop:qe(He,(null==i?void 0:i.crop_mode)||0),src:x,alt:l,id:c})),h&&t.createElement(Ie,u({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:qe(Le,(null==i?void 0:i.gravity_mode)||0),crop:qe(He,(null==i?void 0:i.crop_mode)||0),id:c,src:o})))};m(".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}");m(".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}");var We=function(e){var r=e.isSummary,n=e.isDisableNext,a=e.isDisablePrev,o=e.amount,l=e.currency,c=e.onPrev,s=e.onNext,m=e.count,u=e.isAddDisable,d=e.isRemoveDisable,p=e.onAdd,f=e.onRemove;return t.createElement("div",{className:i("footerControls",{summary:r})},r?t.createElement(t.Fragment,null,t.createElement(ze,{count:m,isRemoveDisable:d,isAddDisable:u,onAdd:p,onRemove:f}),t.createElement("div",{className:"button major"},t.createElement("div",{className:"addLabel"},t.createElement(xe,{color:"#fff",size:"small"})," Add to Cart"),t.createElement("div",null,Ze(l,o)))):t.createElement(t.Fragment,null,t.createElement("div",{onClick:c,className:i("button",{disable:a})},"Back"),t.createElement("div",{onClick:s,className:i("button major",{disable:n})},"Next ",Ze(l,o))))};m(".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 Ue=function(e){var r=e.steps,n=e.currentStep,a=r[n].component,o=r[n].name;return t.createElement("div",{className:"stepper"},t.createElement("div",{className:"stepperHeader"},o),t.createElement("div",{className:"steps"},Array(r.length).fill(0).map((function(e,a){return t.createElement(t.Fragment,{key:a},t.createElement("div",{className:i("step",{active:a===n})}),a!==r.length-1&&t.createElement("div",{className:"line"}))}))),a)};m('.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 Ge=function(e){var r=e.ingredients,n=e.onSelect,a=e.currency;return t.createElement("div",{className:"extrasRadio"},r.map((function(e){return t.createElement("div",{key:e.id,onClick:(r=e.id,o=e.quantity||1,function(){return n(r,o)}),className:i("extra",{selected:!!e.quantity})},t.createElement("span",{className:"extraName"},e.name),!!e.price&&t.createElement("span",{className:"extraPrice"},"+",Ze(a,e.price)));var r,o})))};m(".suboptionMultiSelector .suboption{align-items:center;display:flex;justify-content:space-between;margin:0 0 10px}.suboptionMultiSelector .suboption .suboptionName.selected{color:#007aff}.suboptionMultiSelector .suboption .counterSection{align-items:center;display:flex}.suboptionMultiSelector .suboption .counterButton{height:35px;margin:0 0 0 10px;width:150px}.suboptionMultiSelector .suboption .counterButton svg{height:15px;width:15px}");var Ke=function(e){var r=e.suboptions,n=e.onChangeQuantity,a=e.currency,o=function(e,t){return function(){return n(e,t)}};return t.createElement("div",{className:"suboptionMultiSelector"},r.map((function(e){return t.createElement("div",{className:"suboption",key:e.id},t.createElement("span",{className:i("suboptionName",{selected:!!e.quantity})},e.name),t.createElement("div",{className:"counterSection"},!!e.price&&t.createElement("span",{className:"price"},"+",Ze(a,e.price)),t.createElement(ze,{count:e.quantity||0,isAddDisable:e.quantity===e.max,isRemoveDisable:!e.quantity,onAdd:o(e.id,(e.quantity||0)+1),onRemove:o(e.id,(e.quantity||0)-1)})))})))};m(".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 Qe=function(e){var r=e.message;return t.createElement("div",{className:"warning"},t.createElement(Re,{size:"small",color:"var(--warning, #fe7171)"})," ",r)};m(".productCommentSection .inputName{display:inline-block;margin:20px 0 10px}.productCommentSection .inputName:first-child{margin:0 0 10px}.productCommentSection .labelInput{width:100%}");var Je=function(e){var r=e.name,n=e.comment,a=e.onCommentChange,o=e.onNameChange;return t.createElement("div",{className:"productCommentSection"},t.createElement("span",{className:"inputName"},"Add Name"),t.createElement(Ae,{onChange:function(e){var t;o(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add name",value:r}),t.createElement("span",{className:"inputName"},"Add Comment"),t.createElement(Ae,{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:n}))};m(".productSummary .line{color:#0e1328;display:grid;font-size:14px;grid-template-columns:1fr 1fr 100px;margin:0 0 5px}.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}");var Ye,$e=function(e){var r=e.summary,n=e.onClickChange;return t.createElement("div",{className:"productSummary"},r.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 n(e.index)},className:"button"},"Change"))})))};!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(Ye||(Ye={}));var Xe=function(e){var n=e.name,o=e.media,i=e.currency,l=e.price,c=e.oldPrice,s=e.description,m=e.totalPrice,d=e.allowComments,p=e.options,f=e.optionsHalf,g=e.max,v=e.quantity,h=e.ingredients,x=e.onChangeIngredients,y=e.onChangeOption,w=e.onChangeOptionHalf,b=e.isHalf,E=e.onChangeName,N=e.onChangeComment,k=e.onAdd,C=e.onRemove,O=e.onAddToCart,j=r(null),P=j[0],B=j[1],S=r([]),R=S[0],z=S[1],T=r(0),H=T[0],L=T[1];a((function(){z(function(e,t,r){var n=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:"#HALF_SELECTOR",respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:Ye.none,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!r)},{name:"Half",enabled:!0,max:1,id:"#HALF_SELECTOR_HALF",quantity:Number(r)}]};n.push(o)}return[].concat(n).concat(a)}(p,f,b)),B(function(e){return{id:"#INGREDIENTS",min:0,max:e.length,name:"Ingredients",ingredients:e.map((function(e){var t;return u(u({},e),{quantity:null!==(t=e.quantity)&&void 0!==t?t:1})}))}}(h))}),[h,p,f,b]);var M=function(){var e=F()[H];return!!(null==e?void 0:e.id)&&function(e){var t=e.suboptions.reduce((function(e,t){var r;return(null!==(r=t.quantity)&&void 0!==r?r: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)},F=function(){var e=[];return P&&e.push({name:"Ingredients",component:t.createElement(Te,{ingredients:P.ingredients,onSelect:x})}),e.push.apply(e,R.map((function(e){return u(u({},e),{name:e.name,component:(r=e,n=function(e,t){r.withHalfOption?w(r.id,e,r.half,t):y(r.id,e,t)},1===r.max&&1===r.min?t.createElement(Ge,{key:r.id,currency:i,ingredients:r.suboptions,onSelect:n}):t.createElement(Ke,{key:r.id,currency:i,suboptions:r.suboptions,onChangeQuantity:n}))});var r,n}))),d&&e.push({name:"Comments",component:t.createElement(Je,{name:"",comment:"",onNameChange:E,onCommentChange:N})}),e.push({name:"Summary",component:t.createElement($e,{summary:[{name:"name",value:"value"+H,index:H}],onClickChange:function(e){return L(e)}})}),e};return t.createElement("div",{className:"productConstructor"},t.createElement("div",{className:"content"},!!o&&t.createElement(Ve,u({},o)),t.createElement("div",{className:"headProduct"},t.createElement("div",{className:"name"},n),t.createElement("div",{className:"priceControl"},!!c&&t.createElement("div",{className:"oldPrice"},Ze(i,c)),!!l&&t.createElement("div",{className:"price"},Ze(i,l)))),t.createElement("div",{className:"description"},s)),M()&&t.createElement(Qe,{message:M().toString()}),R.length&&t.createElement(Ue,{steps:F(),currentStep:H}),t.createElement(We,{isSummary:H===F().length-1,isDisableNext:!!M(),isDisablePrev:0===H,currency:i,onPrev:function(){return L(H-1)},onNext:function(){return L(H+1)},onAddToCart:O,amount:m,count:v,onRemove:k,onAdd:C,isAddDisable:!!g&&v===g,isRemoveDisable:0===v}))};m(".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}.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}");m(".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}");m(".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(e){var r=e.className,n=void 0===r?"":r,a=e.label,o=e.icon;return t.createElement("div",{className:"tag "+n||""},a,o)},tt=function(e){var r=e.vegan,n=e.vegetarian,a=e.isNew,o=e.spicy,i=e.glutenFree,l=function(){return a?t.createElement(et,{label:"new",className:"additionItem",icon:t.createElement(de,null)}):null},c=function(){return r?t.createElement(et,{label:"vegan",className:"additionVegan",icon:t.createElement(t.Fragment,null,t.createElement(fe,null),t.createElement(fe,null))}):n?t.createElement(et,{label:"vegetarian",className:"additionVegetarian",icon:t.createElement(fe,null)}):null},s=function(){return o?t.createElement(et,{label:"spicy",className:"additionSpicy",icon:t.createElement(t.Fragment,null,Array(o).fill(0).map((function(e,r){return t.createElement(ge,{key:r})})))}):null},m=function(){return i?t.createElement(et,{label:"free gluten",className:"additionNoGluten",icon:t.createElement(ve,null)}):null};return l()||c()||s()||m()?t.createElement("div",{className:"productTags"},l(),c(),s(),m()):null},rt=function(e){var r=e.id,n=e.currency,a=e.name,o=e.description,l=e.price,c=e.oldPrice,s=e.image,m=e.trashIcon,u=void 0!==m&&m,d=e.onClickTrash,p=e.onClick,f=e.vegetarian,g=e.vegan,v=e.isNew,h=e.spicy,x=e.glutenFree,y=e.quantity;return t.createElement("div",{className:"productPreview",onClick:function(){null==p||p(r)}},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"},a),u&&t.createElement(ue,{onClick:function(e){e.stopPropagation(),null==d||d(r)},width:20,height:20})),t.createElement("div",{className:"description"},o)),t.createElement("div",{className:"productReviewFooter"},t.createElement("div",{className:"options"},t.createElement(tt,{isNew:v,spicy:h,vegan:g,glutenFree:x,vegetarian:f})),t.createElement("div",{className:"priceBlock"},!!c&&t.createElement("div",{className:i("oldPrice",{lineThrough:!y})},Ze(n,c)),!!y&&t.createElement("span",{className:"quantity"}," x",y," "),!!l&&t.createElement("div",{className:i("currentPrice",{newPrice:!!c&&!y})},Ze(n,l))))))};m(".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 nt=function(e){var r=e.categories,n=e.onClickProduct;return t.createElement("div",{className:"productPreviewList"},r.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(r){return t.createElement(rt,u({key:r.id},r,{onClick:function(t){return n(e.id,t)}}))})))})))};m(".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}");m(".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 at=function(e){var r=e.score,n=e.isNew,a=e.kosher;return t.createElement("div",{className:"restaurantTags"},!!n&&t.createElement(et,{label:"new",className:"restaurantTagNew"}),!!r&&r>0&&t.createElement(et,{label:r.toFixed(1),className:"restaurantTagScore",icon:t.createElement(de,null)}),!!a&&t.createElement(et,{label:"kosher",className:"restaurantTagKosher"}))};m(".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 ot=function(e){var r=e.currency,n=e.amount,a=e.onClick;return t.createElement("div",{className:"headerCartButton",onClick:a},t.createElement(xe,{className:"icon"}),t.createElement("span",{className:"label"},"Checkout"),t.createElement("span",{className:"price"},Ze(r,n)))};m(".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 it=function(e){var n=e.dontHide,o=e.minimum,l=e.isPickUp,c=e.withTitle,m=e.estimationRangeMax,u=e.estimationRangeMin,d=e.estimationTime,p=e.distance,f=e.deliveryPrice,g=e.currency,v=e.deliveryToLocation,h=r([]),x=h[0],y=h[1];return a((function(){var e=[];o&&e.push(t.createElement("div",{className:i("footer-item mini-order")},t.createElement(xe,null),c&&t.createElement("span",{className:i("title")},"Min order"),Ze(g,o))),p&&!l&&e.push(t.createElement("span",{className:i("footer-item")},t.createElement(Ee,null),c&&t.createElement("div",{className:i("title")},"Distance"),"distanceKm ",p)),(m||u)&&e.push(t.createElement("div",{className:i("time footer-item")},l?t.createElement(we,null):t.createElement(Ne,null),c&&t.createElement("div",{className:i("title")},l?"Pickup time":"Delivery time"),u,"-",m," min")),!l&&v&&e.push(t.createElement("div",{className:i("footer-item delivery-price")},t.createElement(ye,null),c&&t.createElement("span",{className:i("title")},"deliveryPrice"),f?Ze(g,f):t.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",t.createElement(ke,null)," "))),0===m&&0===u&&d&&e.push(t.createElement("div",{className:i("time footer-item")},l?t.createElement(Ne,null):t.createElement(we,null),"up_to ",d," min")),y(e)}),[o,l,m,u,d,p,f,g,v]),t.createElement(s,{className:"footer benefitsData",minVisibleItems:n?x.length:2,collapseFrom:"end",itemRenderer:function(e){return e},overflowRenderer:function(){return null},items:x})},lt=function(e){var r=e.name,n=e.isFavorite,a=e.isNew,o=e.kosher,i=e.score,l=e.cartAmount,c=e.alternativeView,s=e.currency,m=e.searchValue,u=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"},r,n?t.createElement(de,null):t.createElement(pe,null)),(!!l||c)&&t.createElement(at,{isNew:a,kosher:o,score:i})),t.createElement("div",{className:"topRight"},!!l&&!c&&t.createElement(ot,{onClick:d,amount:l,currency:s}))),t.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&t.createElement(at,{isNew:a,kosher:o,score:i}),t.createElement("div",{className:"benefits"},t.createElement(it,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&t.createElement("div",{className:"bottomRight"},t.createElement(Ae,{className:"input",placeholder:"Search in menu...",icon:t.createElement(he,null),value:m,onChange:u}),t.createElement(ot,{onClick:d,amount:l,currency:s}))))},ct=o(null).Provider;export{ze as CounterButton,ye as IconBicycle,xe as IconCart,we as IconClockAfternoon,be as IconClose,Ee as IconMapPin,Se as IconMinus,je as IconMute,ve as IconNoGluten,Oe as IconPause,Ne as IconPersonSimpleWalk,Ce as IconPlay,Be as IconPlus,he as IconSearch,ke as IconSparkle,ge as IconSpicy,de as IconStar,pe as IconStarBorder,ue as IconTrash,Pe as IconUnmute,fe as IconVegan,Re as IconWarning,Te as IngredientsSelector,Ae as Input,Ve as Media,Xe as ProductConstructor,rt as ProductPreview,nt as ProductPreviewList,tt as ProductTags,lt as RestaurantHeader,Ue as Stepper,Ke as SuboptionMultiSelector,ct as TranslationUIProvider,Qe as Warning};
|
|
1
|
+
import*as e from"react";import t,{useState as n,useRef as r,useEffect as a,createContext as o}from"react";import i 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(".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 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}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 y;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 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 k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}var C;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,T;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 R,L;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 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 q,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 I;function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}var _,V;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 K;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 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 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=20,ce=25,se=30,ue=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}),o=function(e){return"small"===e?le:"big"===e?se:e||ce}(r.size);return t.createElement(e,m({width:o,height:o},r,{style:a,className:"icon ".concat(r.className||""," ").concat(n||"")}))}},me=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"),de=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",b({width:"1em",height:"1em",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},t),y||(y=e.createElement("path",{d:"M11.688 1.167c.711-.08 1.385.438 1.385 1.153 0 6.778-3.783 9.856-8.448 9.856-.724 0-1.313-.619-1.153-1.325.317-1.39 1.014-2.424 2.347-3.604.847-.75.776-1.182.358-.934-2.875 1.711-4.303 4.023-4.366 7.715a.263.263 0 0 1-.263.26h-.44a.683.683 0 0 1-.692-.706 12.9 12.9 0 0 1 .152-1.505c.045-.276.049-.557.01-.834-.118-.859-.177-1.956-.177-3.29A7.04 7.04 0 0 1 7.44.912c1.156 0 2.312.474 4.247.254Z"})))}),"fillByFill"),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",k({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"),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"),ye=ue((function(t){return e.createElement("svg",H({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"})),T||(T=e.createElement("path",{d:"M15.947 9H8.878L4.5 15",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),be=ue((function(t){return e.createElement("svg",z({width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R||(R=e.createElement("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z",strokeMiterlimit:10})),L||(L=e.createElement("path",{d:"M12 12h5.25M15.713 15.713 12 12",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),we=ue((function(t){return e.createElement("svg",F({width:"1em",height:"1em",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},t),M||(M=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),q||(q=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"),Ne=ue((function(t){return e.createElement("svg",D({width:"1em",height:"1em",viewBox:"0 0 24 25",stroke:"#000",strokeWidth:1.3,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),I||(I=e.createElement("path",{d:"M14.25 7.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM4.5 12.5s5.25-5.25 8.25-2.475c1.678 1.547 3 3.975 6.75 3.975M12.234 9.632 6.75 22.25M14.25 22.25V17l-3.984-2.84",strokeLinecap:"round",strokeLinejoin:"round"})))}),"fillByStroke"),ke=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),_||(_=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",G({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",Q({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"),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"),Te=ue((function(t){return e.createElement("svg",ie({width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"#000",xmlns:"http://www.w3.org/2000/svg"},t),ae||(ae=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"),He=function(e){var n=e.count,r=e.isRemoveDisable,a=e.isAddDisable,o=e.onAdd,l=e.onRemove;return t.createElement("div",{className:"counterButton"},t.createElement(Se,{color:"var(--main-color, #007aff)",onClick:l,className:i("control",{disable:r})}),t.createElement("div",{className:"control count"},n),t.createElement(Be,{color:"var(--main-color, #007aff)",onClick:o,className:i("control",{disable:a})}))};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 Re=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:i("ingredient",{selected:!!e.quantity})},e.name);var n})))};u(".labelInput{align-items:center;background:#f8f8f8;border-radius:var(--border-radius,5px);display:inline-flex;height:44px;overflow:hidden;padding:0 13px}.labelInput .icon{height:25px;margin:0 10px 0 0;width:25px}.labelInput input{background:none;border:none;height:100%;outline:none;width:100%}.labelInput input::-webkit-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-moz-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::-ms-input-placeholder{color:#747474;font-size:14px;font-weight:400}.labelInput input::placeholder{color:#747474;font-size:14px;font-weight:400}.rtl .labelInput .icon{margin:0 0 0 10px}");var Le,ze,Me,Fe,qe=function(e){var n=e.icon,r=e.debounce,a=e.onChange,o=d(e,["icon","debounce","onChange"]),i=t.useState(null),l=i[0],c=i[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({},o,{onChange:function(e){c(e)}})))};!function(e){e[e.fill=0]="fill",e[e.pad=1]="pad",e[e.fit=2]="fit",e[e.mfit=3]="mfit",e[e.scale=4]="scale",e[e.limit=5]="limit",e[e.lpad=6]="lpad",e[e.mpad=7]="mpad",e[e.crop=8]="crop",e[e.fill_pad=9]="fill_pad",e[e.thumb=10]="thumb"}(Le||(Le={})),function(e){e[e.center=0]="center",e[e.north_east=1]="north_east",e[e.north=2]="north",e[e.north_west=3]="north_west",e[e.west=4]="west",e[e.south_west=5]="south_west",e[e.south=6]="south",e[e.south_east=7]="south_east",e[e.east=8]="east",e[e.liquid=9]="liquid",e[e.auto=10]="auto"}(ze||(ze={})),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"}(Me||(Me={})),function(e){e.USD="$",e.EUR="€",e.GBP="£",e.UAH="₴",e.AED="د.",e.ILS="₪",e.JPY="¥",e.KZT="₸",e.RUB="₽"}(Fe||(Fe={}));u(".mediaWrapper{aspect-ratio:5/3;border-radius:var(--border-radius,5px);overflow:hidden;width:100%}.mediaWrapper img,.mediaWrapper video{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.videoControl{height:100%;position:relative;width:100%}.videoControl .videoControls{left:10px;position:absolute;top:10px;z-index:1}.videoControl .videoControls .control{background:#fff;border-radius:100px;cursor:pointer;margin:0 5px 0 0;padding:3px}");var Ae=function(e,t){return Object.keys(e).find((function(n){return e[n]===t}))},Ze=function(e,t){var n="";return e&&(n=Fe[e]||e),(t||0===t)&&(n="".concat(t," ").concat(n)),n},Ie=function(e){var n=e.src,r=e.alt,a=e.width,o=e.height,i=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:o,quality:i,gravity:s,crop:u}),t.createElement(c,{fetchFormat:"auto"}))},De=function(e){var a=e.autoPlay,o=e.onStart,i=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(Ce,{color:"var(--main-color)",className:"control",onClick:h}),d.playing&&t.createElement(Oe,{color:"var(--main-color)",className:"control",onClick:h}),d.muted&&t.createElement(je,{color:"var(--main-color)",className:"control",onClick:g}),!d.muted&&t.createElement(Pe,{color:"var(--main-color)",className:"control",onClick:g})),t.createElement(_e,{autoPlay:a,src:l,onPlay:function(){o&&o(),p((function(e){return m(m({},e),{playing:!0})}))},onEnded:function(){c&&c()},videoRef:f,id:i}))},_e=function(e){var n=e.videoRef,r=e.src,a=e.id,o=e.onPlay,i=e.onEnded,l=e.autoPlay;return t.createElement("video",{ref:n,src:r,id:a,onPlay:function(){o&&o()},autoPlay:l,onEnded:function(){i&&i()}})},Ve=function(e){var o=e.src,i=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=o.includes("/image/"),v=o.includes("/video/"),x=o.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(Ie,m({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:Ae(ze,(null==i?void 0:i.gravity_mode)||0),crop:Ae(Le,(null==i?void 0:i.crop_mode)||0),src:x,alt:l,id:c})),v&&t.createElement(De,m({},s,{height:f.height?f.height:250,width:f.width?f.width:400,quality:"90",gravity:Ae(ze,(null==i?void 0:i.gravity_mode)||0),crop:Ae(Le,(null==i?void 0:i.crop_mode)||0),id:c,src:o})))};u(".productConstructor .content{margin:0 0 20px}.productConstructor .headProduct{align-items:center;display:flex;justify-content:space-between;padding:20px 20px 10px}.productConstructor .headProduct .name{font-size:24px;font-weight:600}.productConstructor .headProduct .priceControl{align-items:center;display:flex;font-size:16px}.productConstructor .headProduct .priceControl .oldPrice{color:var(--warning,#fe7171);margin:0 5px}.productConstructor .headProduct .priceControl .price{color:var(--main-color,#007aff)}.productConstructor .description{color:#747474;font-size:16px;font-weight:400;padding:0 20px}.productConstructor .stepper{padding:0 20px}.productConstructor .stepper .productCommentSection,.productConstructor .stepper .productSummary{text-align:left}.productConstructor .footerControls{bottom:0;margin:20px 0 0;position:sticky}");u(".footerControls{align-items:center;background:#fff;border-top:1px solid #ccc;display:flex;justify-content:center;padding:20px}.footerControls.summary{display:grid;gap:10px;grid-template-columns:2fr 3fr}.footerControls.summary .addLabel{align-items:center;display:flex}.footerControls.summary .addLabel .icon{margin:0 5px}.footerControls.summary .button.major{align-items:center;display:flex;justify-content:space-around;margin:0;width:100%}.footerControls .button{align-items:center;border:1px solid #007aff;border-radius:var(--border-radius,5px);color:#007aff;cursor:pointer;display:flex;height:45px;justify-content:center;transition:all .3s;width:40%}.footerControls .button:hover{opacity:.9}.footerControls .button.major{background:var(--main-color,#007aff);color:#fff;margin:0 0 0 10px}.footerControls .button.disable{cursor:auto;opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}");var We=function(e){var n=e.isSummary,r=e.isLoading,a=e.isDisableNext,o=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:i("footerControls",{summary:n})},n?t.createElement(t.Fragment,null,t.createElement(He,{count:m,isRemoveDisable:p||r,isAddDisable:d||r,onAdd:f,onRemove:h}),t.createElement("div",{onClick:g,className:i("button major",{disable:r})},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:i("button",{disable:o||r})},"Back"),t.createElement("div",{onClick:u,className:i("button major",{disable:a||r})},"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 Ue=function(e){var n=e.steps,r=e.currentStep,a=n[r].component,o=n[r].name;return t.createElement("div",{className:"stepper"},t.createElement("div",{className:"stepperHeader"},o),t.createElement("div",{className:"steps"},Array(n.length).fill(0).map((function(e,a){return t.createElement(t.Fragment,{key:a},t.createElement("div",{className:i("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 Ge=function(e){var n=e.suboptions,r=e.onChangeQuantity,a=e.currency,o=function(e,t){return function(){return r(e,t)}};return t.createElement("div",{className:"suboptionMultiSelector"},n.map((function(e){return t.createElement("div",{className:"suboption",key:e.id},t.createElement("span",{className:i("suboptionName",{selected:!!e.quantity})},e.name),t.createElement("div",{className:"counterSection"},!!e.price&&t.createElement("span",{className:"price"},"+",Ze(a,e.price)),t.createElement(He,{count:e.quantity||0,isAddDisable:e.quantity===e.max,isRemoveDisable:!e.quantity,onAdd:o(e.id,(e.quantity||0)+1),onRemove:o(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,a=e.currency;return t.createElement("div",{className:"extrasRadio"},n.map((function(e){return t.createElement("div",{key:e.id,onClick:(n=e.id,o=e.quantity||1,function(){return r(n,o)}),className:i("extra",{selected:!!e.quantity})},t.createElement("span",{className:"extraName"},e.name),!!e.price&&t.createElement("span",{className:"extraPrice"},"+",Ze(a,e.price)));var n,o})))};u(".warning{align-items:center;background:#fff;border:2px solid var(--warning,#fe7171);border-left:none;border-right:none;color:var(--warning,#fe7171);display:flex;font-size:16px;font-weight:600;padding:10px 20px;position:sticky;top:0;z-index:1}.warning .icon{margin:0 10px 0 0}");var Qe=function(e){var n=e.message;return t.createElement("div",{className:"warning"},t.createElement(Te,{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 Je=function(e){var n=e.name,r=e.comment,a=e.onCommentChange,o=e.onNameChange;return t.createElement("div",{className:"productCommentSection"},t.createElement("span",{className:"inputName"},"Add Name"),t.createElement(qe,{onChange:function(e){var t;o(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)},placeholder:"Add name",value:n}),t.createElement("span",{className:"inputName"},"Add Comment"),t.createElement(qe,{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{white-space:break-spaces}");var Ye,$e=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"))})))},Xe="#INGREDIENTS",et="#HALF_SELECTOR",tt="#HALF_SELECTOR_HALF";!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(Ye||(Ye={}));var nt=function(e,t){var n=[],r=e.filter((function(e){return e.half===Ye.none||e.half===Ye.left}));return t?r.forEach((function(e){n.push(m(m({},e),{half:Ye.left})),n.push(m(m({},e),{half:Ye.right}))})):r.forEach((function(e){n.push(m(m({},e),{half:Ye.none}))})),n},rt=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:ot(e.suboptions),index:i++}),t.forEach((function(e){o.push({name:e.name,value:at(e.suboptions),index:i++})})),n.length){var l=n.some((function(e){return e.half===Ye.right}));o.push({name:"Toppings",value:l?"Half":"Full",index:i++})}return n.forEach((function(e){o.push({name:e.name,value:at(e.suboptions),index:i++})})),r&&o.push({name:"Comments",value:r,index:i++}),o},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}),"")},it=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}))},lt=function(e,t){if(!e.respectTo)return e;var n=t.flatMap((function(e){return e.suboptions})).find((function(t){return t.id===e.respectTo}));return n&&n.quantity?m(m({},e),{enabled:!0}):m(m({},e),{enabled:!1})},ct=function(e){var r=e.name,o=e.media,i=e.currency,l=e.price,c=e.oldPrice,s=e.description,u=e.totalPrice,d=e.allowComments,p=e.options,f=e.optionsHalf,h=e.max,g=e.quantity,v=e.ingredients,x=e.nameOnBox,y=e.comments,b=e.isLoading,w=e.isHalf,E=e.onChangeIngredients,N=e.onChangeOption,k=e.onChangeOptionHalf,C=e.onChangeNameOnBox,O=e.onChangeComment,j=e.onAdd,P=e.onRemove,B=e.onAddToCart,S=e.onChangeIsHalf,T=n(null),H=T[0],R=T[1],L=n([]),z=L[0],M=L[1],F=n(0),q=F[0],A=F[1];a((function(){M(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:et,respectTo:null,limitSuboptionsByMax:!0,withHalfOption:!1,half:Ye.none,suboptions:[{name:"Full",enabled:!0,max:1,id:"#HALF_SELECTOR_FULL",quantity:Number(!n)},{name:"Half",enabled:!0,max:1,id:tt,quantity:Number(n)}]};r.push(o)}return[].concat(r).concat(a)}(p,f,w)),v.length&&R(function(e){return{id:Xe,min:0,respectTo:null,half:Ye.none,enabled:!0,withHalfOption:!1,limitSuboptionsByMax:!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})}))}}(v))}),[v,p,f,w]);var Z=function(){var e=D()[q];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)},I=function(e){var n=function(t,n){!function(e){return e===et}(e.id)?e.withHalfOption?k(e.id,t,e.half,n):N(e.id,t,n):S(function(e){return e===tt}(t))};return 1===e.max&&1===e.min?t.createElement(Ke,{key:e.id,currency:i,ingredients:e.suboptions,onSelect:n}):t.createElement(Ge,{key:e.id,currency:i,suboptions:e.suboptions,onChangeQuantity:n})},D=function(){var e=[];return H&&e.push({name:"Ingredients",component:t.createElement(Re,{ingredients:H.suboptions,onSelect:E})}),e.push.apply(e,z.map((function(e){return m(m({},e),{name:(t=e,t.name+(t.half===Ye.right?" right":"")+(t.half===Ye.left?" left":"")),component:I(e)});var t}))),d&&e.push({name:"Comments",component:t.createElement(Je,{name:x,comment:y,onNameChange:C,onCommentChange:O})}),e.push({name:"Summary",component:t.createElement($e,{summary:rt(H,p,f,d?"".concat(y||"-"," | ").concat(x||"-"):null),onClickChange:function(e){return A(e)}})}),e};return t.createElement("div",{className:"productConstructor"},t.createElement("div",{className:"content"},!!o&&t.createElement(Ve,m({},o)),t.createElement("div",{className:"headProduct"},t.createElement("div",{className:"name"},r),t.createElement("div",{className:"priceControl"},!!c&&t.createElement("div",{className:"oldPrice"},Ze(i,c)),!!l&&t.createElement("div",{className:"price"},Ze(i,l)))),t.createElement("div",{className:"description"},s)),Z()&&t.createElement(Qe,{message:Z().toString()}),z.length&&t.createElement(Ue,{steps:D(),currentStep:q}),t.createElement(We,{isLoading:b,isSummary:q===D().length-1,isDisableNext:!!Z(),isDisablePrev:0===q,currency:i,onPrev:function(){return A(q-1)},onNext:function(){return A(q+1)},onAddToCart:B,amount:u,count:g,onRemove:P,onAdd:j,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}.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}");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 st=function(e){var n=e.className,r=void 0===n?"":n,a=e.label,o=e.icon;return t.createElement("div",{className:"tag "+r||""},a,o)},ut=function(e){var n=e.vegan,r=e.vegetarian,a=e.isNew,o=e.spicy,i=e.glutenFree,l=function(){return a?t.createElement(st,{label:"new",className:"additionItem",icon:t.createElement(de,null)}):null},c=function(){return n?t.createElement(st,{label:"vegan",className:"additionVegan",icon:t.createElement(t.Fragment,null,t.createElement(fe,null),t.createElement(fe,null))}):r?t.createElement(st,{label:"vegetarian",className:"additionVegetarian",icon:t.createElement(fe,null)}):null},s=function(){return o?t.createElement(st,{label:"spicy",className:"additionSpicy",icon:t.createElement(t.Fragment,null,Array(o).fill(0).map((function(e,n){return t.createElement(he,{key:n})})))}):null},u=function(){return i?t.createElement(st,{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},mt=function(e){var n=e.id,r=e.currency,a=e.name,o=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,x=e.glutenFree,y=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"},a),m&&t.createElement(me,{onClick:function(e){e.stopPropagation(),null==d||d(n)},width:20,height:20})),t.createElement("div",{className:"description"},o)),t.createElement("div",{className:"productReviewFooter"},t.createElement("div",{className:"options"},t.createElement(ut,{isNew:g,spicy:v,vegan:h,glutenFree:x,vegetarian:f})),t.createElement("div",{className:"priceBlock"},!!c&&t.createElement("div",{className:i("oldPrice",{lineThrough:!y})},Ze(r,c)),!!y&&t.createElement("span",{className:"quantity"}," x",y," "),!!l&&t.createElement("div",{className:i("currentPrice",{newPrice:!!c&&!y})},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 dt=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(mt,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 pt=function(e){var n=e.score,r=e.isNew,a=e.kosher;return t.createElement("div",{className:"restaurantTags"},!!r&&t.createElement(st,{label:"new",className:"restaurantTagNew"}),!!n&&n>0&&t.createElement(st,{label:n.toFixed(1),className:"restaurantTagScore",icon:t.createElement(de,null)}),!!a&&t.createElement(st,{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 ft=function(e){var n=e.currency,r=e.amount,a=e.onClick;return t.createElement("div",{className:"headerCartButton",onClick:a},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 ht=function(e){var r=e.dontHide,o=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([]),x=v[0],y=v[1];return a((function(){var e=[];o&&e.push(t.createElement("div",{className:i("footer-item mini-order")},t.createElement(xe,null),c&&t.createElement("span",{className:i("title")},"Min order"),Ze(h,o))),p&&!l&&e.push(t.createElement("span",{className:i("footer-item")},t.createElement(Ee,null),c&&t.createElement("div",{className:i("title")},"Distance"),"distanceKm ",p)),(u||m)&&e.push(t.createElement("div",{className:i("time footer-item")},l?t.createElement(be,null):t.createElement(Ne,null),c&&t.createElement("div",{className:i("title")},l?"Pickup time":"Delivery time"),m,"-",u," min")),!l&&g&&e.push(t.createElement("div",{className:i("footer-item delivery-price")},t.createElement(ye,null),c&&t.createElement("span",{className:i("title")},"deliveryPrice"),f?Ze(h,f):t.createElement("div",{className:"freeDelivery"},"deliveryPriceFree ",t.createElement(ke,null)," "))),0===u&&0===m&&d&&e.push(t.createElement("div",{className:i("time footer-item")},l?t.createElement(Ne,null):t.createElement(be,null),"up_to ",d," min")),y(e)}),[o,l,u,m,d,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})},gt=function(e){var n=e.name,r=e.isFavorite,a=e.isNew,o=e.kosher,i=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(de,null):t.createElement(pe,null)),(!!l||c)&&t.createElement(pt,{isNew:a,kosher:o,score:i})),t.createElement("div",{className:"topRight"},!!l&&!c&&t.createElement(ft,{onClick:d,amount:l,currency:s}))),t.createElement("div",{className:"restaurantHeaderBottom"},!c&&!l&&t.createElement(pt,{isNew:a,kosher:o,score:i}),t.createElement("div",{className:"benefits"},t.createElement(ht,{deliveryToLocation:1,currency:s,minimum:10})),!!l&&c&&t.createElement("div",{className:"bottomRight"},t.createElement(qe,{className:"input",placeholder:"Search in menu...",icon:t.createElement(ve,null),value:u,onChange:m}),t.createElement(ft,{onClick:d,amount:l,currency:s}))))},vt=o(null).Provider;export{He as CounterButton,Ye as HALF_OPTION,Xe as INGREDIENTS,ye as IconBicycle,xe as IconCart,be as IconClockAfternoon,we as IconClose,Ee as IconMapPin,Se as IconMinus,je as IconMute,ge as IconNoGluten,Oe as IconPause,Ne as IconPersonSimpleWalk,Ce as IconPlay,Be as IconPlus,ve as IconSearch,ke as IconSparkle,he as IconSpicy,de as IconStar,pe as IconStarBorder,me as IconTrash,Pe as IconUnmute,fe as IconVegan,Te as IconWarning,Re as IngredientsSelector,qe as Input,Ve as Media,ct as ProductConstructor,mt as ProductPreview,dt as ProductPreviewList,ut as ProductTags,gt as RestaurantHeader,Ue as Stepper,Ge as SuboptionMultiSelector,Ke as SuboptionRadioSelector,vt as TranslationUIProvider,Qe as Warning,lt as checkRespectTo,it as convertToServerModelOptions,nt as prepareHalfOptions};
|
|
@@ -3,7 +3,7 @@ import './style.scss';
|
|
|
3
3
|
import { MediaProp } from '../Media';
|
|
4
4
|
import { CURRENCY } from '../../enums/enums';
|
|
5
5
|
import { Ingredient } from '../IngredientsSelector/IngredientsSelector';
|
|
6
|
-
import { IOption } from '../
|
|
6
|
+
import { IOption } from '../SuboptionSelector/';
|
|
7
7
|
import { HALF_OPTION } from '../../helpers/productConstructor';
|
|
8
8
|
export interface ProductConstructorProps {
|
|
9
9
|
id: string;
|
|
@@ -18,6 +18,9 @@ export interface ProductConstructorProps {
|
|
|
18
18
|
quantity?: number;
|
|
19
19
|
allowComments: boolean;
|
|
20
20
|
isHalf: boolean;
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
nameOnBox: string;
|
|
23
|
+
comments: string;
|
|
21
24
|
ingredients: Ingredient[];
|
|
22
25
|
options: IOption[];
|
|
23
26
|
optionsHalf: IOption[];
|
|
@@ -25,10 +28,11 @@ export interface ProductConstructorProps {
|
|
|
25
28
|
onChangeQuantity: (quantity: number) => void;
|
|
26
29
|
onChangeOption: (parentId: string, id: string, quantity: number) => void;
|
|
27
30
|
onChangeOptionHalf: (parentId: string, id: string, half: HALF_OPTION, quantity: number) => void;
|
|
28
|
-
|
|
31
|
+
onChangeNameOnBox: (v: string) => void;
|
|
29
32
|
onChangeComment: (v: string) => void;
|
|
30
33
|
onAdd: () => void;
|
|
31
34
|
onRemove: () => void;
|
|
32
35
|
onAddToCart: () => void;
|
|
36
|
+
onChangeIsHalf: (v: boolean) => void;
|
|
33
37
|
}
|
|
34
38
|
export declare const ProductConstructor: FC<ProductConstructorProps>;
|
|
@@ -8,8 +8,9 @@ export interface ProductConstructorFooterProps extends CounterButtonProps {
|
|
|
8
8
|
isDisablePrev: boolean;
|
|
9
9
|
currency: CURRENCY;
|
|
10
10
|
amount: number;
|
|
11
|
+
isLoading: boolean;
|
|
11
12
|
onAddToCart: () => void;
|
|
12
13
|
onNext: () => void;
|
|
13
14
|
onPrev: () => void;
|
|
14
15
|
}
|
|
15
|
-
export declare const ProductConstructorFooter: ({ isSummary, isDisableNext, isDisablePrev, amount, currency, onPrev, onNext, count, isAddDisable, isRemoveDisable, onAdd, onRemove, }: ProductConstructorFooterProps) => React.JSX.Element;
|
|
16
|
+
export declare const ProductConstructorFooter: ({ isSummary, isLoading, isDisableNext, isDisablePrev, amount, currency, onPrev, onNext, count, isAddDisable, isRemoveDisable, onAdd, onRemove, onAddToCart, }: ProductConstructorFooterProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ProductSummaryProps, ProductSummary } from './ProductSummary';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ISuboption } from './ISuboption';
|
|
2
|
+
import { HALF_OPTION } from '../../helpers/productConstructor';
|
|
3
|
+
export interface IOption {
|
|
4
|
+
name?: string;
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
respectTo: string | null;
|
|
8
|
+
withHalfOption: boolean;
|
|
9
|
+
id: string;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
limitSuboptionsByMax: boolean;
|
|
12
|
+
half: HALF_OPTION;
|
|
13
|
+
suboptions: ISuboption[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type SuboptionRadioSelectorProps, SuboptionRadioSelector } from './SuboptionRadioSelector';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { INGREDIENTS, HALF_OPTION, prepareHalfOptions, convertToServerModelOptions, checkRespectTo, } from './productConstructor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOption } from '../components
|
|
1
|
+
import { IOption } from '../components';
|
|
2
2
|
export declare const INGREDIENTS = "#INGREDIENTS";
|
|
3
3
|
export declare const HALF_SELECTOR = "#HALF_SELECTOR";
|
|
4
4
|
export declare const HALF_SELECTOR_FULL = "#HALF_SELECTOR_FULL";
|
|
@@ -8,12 +8,27 @@ export declare enum HALF_OPTION {
|
|
|
8
8
|
left = 1,
|
|
9
9
|
right = 2
|
|
10
10
|
}
|
|
11
|
-
export declare const prepeareIngredients: (ingredients: any) =>
|
|
12
|
-
id: string;
|
|
13
|
-
min: number;
|
|
14
|
-
max: any;
|
|
15
|
-
name: string;
|
|
16
|
-
ingredients: any;
|
|
17
|
-
};
|
|
11
|
+
export declare const prepeareIngredients: (ingredients: any) => IOption;
|
|
18
12
|
export declare const prepeareOptions: (opt: IOption[], optHalf: IOption[], isHalf: any) => any[];
|
|
19
13
|
export declare const getErrorContsructor: (option: any) => string;
|
|
14
|
+
export declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
15
|
+
export declare const isHalfOption: (id: string) => boolean;
|
|
16
|
+
export declare const isHalfOptionSelected: (id: string) => boolean;
|
|
17
|
+
export declare const getSummaryProduct: (ingredient: IOption, options: IOption[], optionsHalf: IOption[], comments: string | null) => {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
index: number;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const getSidesName: (option: IOption) => string;
|
|
23
|
+
export declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
suboptions: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
price: number;
|
|
30
|
+
quantity: number;
|
|
31
|
+
half_option: HALF_OPTION;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
export declare const checkRespectTo: (option: IOption, options: IOption[]) => IOption;
|
package/dist/index.d.ts
CHANGED
|
@@ -126,17 +126,45 @@ interface ISuboption {
|
|
|
126
126
|
price?: number;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
interface SuboptionMultiSelectorProps {
|
|
130
|
+
currency: CURRENCY;
|
|
131
|
+
suboptions: ISuboption[];
|
|
132
|
+
onChangeQuantity: (id: string, operation: number) => void;
|
|
133
|
+
}
|
|
134
|
+
declare const SuboptionMultiSelector: ({ suboptions, onChangeQuantity, currency }: SuboptionMultiSelectorProps) => React__default.JSX.Element;
|
|
135
|
+
|
|
136
|
+
interface SuboptionRadioSelectorProps {
|
|
137
|
+
currency: CURRENCY;
|
|
138
|
+
ingredients: ISuboption[];
|
|
139
|
+
onSelect: (id: string, quantity: number) => void;
|
|
140
|
+
}
|
|
141
|
+
declare const SuboptionRadioSelector: ({ ingredients, onSelect, currency }: SuboptionRadioSelectorProps) => React__default.JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const INGREDIENTS = "#INGREDIENTS";
|
|
129
144
|
declare enum HALF_OPTION {
|
|
130
145
|
none = 0,
|
|
131
146
|
left = 1,
|
|
132
147
|
right = 2
|
|
133
|
-
}
|
|
148
|
+
}
|
|
149
|
+
declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
150
|
+
declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
151
|
+
id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
suboptions: {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
price: number;
|
|
157
|
+
quantity: number;
|
|
158
|
+
half_option: HALF_OPTION;
|
|
159
|
+
}[];
|
|
160
|
+
}[];
|
|
161
|
+
declare const checkRespectTo: (option: IOption, options: IOption[]) => IOption;
|
|
134
162
|
|
|
135
163
|
interface IOption {
|
|
136
164
|
name?: string;
|
|
137
165
|
min: number;
|
|
138
166
|
max: number;
|
|
139
|
-
respectTo:
|
|
167
|
+
respectTo: string | null;
|
|
140
168
|
withHalfOption: boolean;
|
|
141
169
|
id: string;
|
|
142
170
|
enabled: boolean;
|
|
@@ -158,6 +186,9 @@ interface ProductConstructorProps {
|
|
|
158
186
|
quantity?: number;
|
|
159
187
|
allowComments: boolean;
|
|
160
188
|
isHalf: boolean;
|
|
189
|
+
isLoading: boolean;
|
|
190
|
+
nameOnBox: string;
|
|
191
|
+
comments: string;
|
|
161
192
|
ingredients: Ingredient[];
|
|
162
193
|
options: IOption[];
|
|
163
194
|
optionsHalf: IOption[];
|
|
@@ -165,11 +196,12 @@ interface ProductConstructorProps {
|
|
|
165
196
|
onChangeQuantity: (quantity: number) => void;
|
|
166
197
|
onChangeOption: (parentId: string, id: string, quantity: number) => void;
|
|
167
198
|
onChangeOptionHalf: (parentId: string, id: string, half: HALF_OPTION, quantity: number) => void;
|
|
168
|
-
|
|
199
|
+
onChangeNameOnBox: (v: string) => void;
|
|
169
200
|
onChangeComment: (v: string) => void;
|
|
170
201
|
onAdd: () => void;
|
|
171
202
|
onRemove: () => void;
|
|
172
203
|
onAddToCart: () => void;
|
|
204
|
+
onChangeIsHalf: (v: boolean) => void;
|
|
173
205
|
}
|
|
174
206
|
declare const ProductConstructor: FC<ProductConstructorProps>;
|
|
175
207
|
|
|
@@ -249,13 +281,6 @@ interface StepperProps {
|
|
|
249
281
|
}
|
|
250
282
|
declare const Stepper: ({ steps, currentStep }: StepperProps) => React__default.JSX.Element;
|
|
251
283
|
|
|
252
|
-
interface SuboptionMultiSelectorProps {
|
|
253
|
-
currency: CURRENCY;
|
|
254
|
-
suboptions: ISuboption[];
|
|
255
|
-
onChangeQuantity: (id: string, operation: number) => void;
|
|
256
|
-
}
|
|
257
|
-
declare const SuboptionMultiSelector: ({ suboptions, onChangeQuantity, currency }: SuboptionMultiSelectorProps) => React__default.JSX.Element;
|
|
258
|
-
|
|
259
284
|
interface WarningProps {
|
|
260
285
|
message: string;
|
|
261
286
|
}
|
|
@@ -263,4 +288,4 @@ declare const Warning: ({ message }: WarningProps) => React__default.JSX.Element
|
|
|
263
288
|
|
|
264
289
|
declare const TranslationUIProvider: React.Provider<any>;
|
|
265
290
|
|
|
266
|
-
export { CounterButton, CounterButtonProps, 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, TranslationUIProvider, Warning, WarningProps };
|
|
291
|
+
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, prepareHalfOptions };
|