ordering-components-external 13.0.32 → 13.0.33

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.
Files changed (186) hide show
  1. package/_bundles/0.ordering-component.ddd8b5557b901fb64803.js +1 -0
  2. package/_bundles/{1.ordering-component.47bc345f9be0615530cf.js → 1.ordering-component.ddd8b5557b901fb64803.js} +1 -1
  3. package/_bundles/{2.ordering-component.47bc345f9be0615530cf.js → 2.ordering-component.ddd8b5557b901fb64803.js} +1 -1
  4. package/_bundles/{4.ordering-component.47bc345f9be0615530cf.js → 4.ordering-component.ddd8b5557b901fb64803.js} +1 -1
  5. package/_bundles/{5.ordering-component.47bc345f9be0615530cf.js → 5.ordering-component.ddd8b5557b901fb64803.js} +1 -1
  6. package/_bundles/{6.ordering-component.47bc345f9be0615530cf.js → 6.ordering-component.ddd8b5557b901fb64803.js} +1 -1
  7. package/_bundles/7.ordering-component.ddd8b5557b901fb64803.js +2 -0
  8. package/_bundles/{8.ordering-component.47bc345f9be0615530cf.js → 8.ordering-component.ddd8b5557b901fb64803.js} +1 -1
  9. package/_bundles/ordering-component.ddd8b5557b901fb64803.js +2 -0
  10. package/_bundles/{ordering-component.47bc345f9be0615530cf.js.LICENSE.txt → ordering-component.ddd8b5557b901fb64803.js.LICENSE.txt} +2 -0
  11. package/_modules/components/AddressDetails/index.js +19 -18
  12. package/_modules/components/AddressForm/index.js +18 -17
  13. package/_modules/components/AddressList/index.js +13 -12
  14. package/_modules/components/Analitycs/index.js +7 -5
  15. package/_modules/components/AnalyticsSegment/index.js +7 -6
  16. package/_modules/components/AppleLogin/index.js +14 -12
  17. package/_modules/components/BaseComponent/index.js +2 -1
  18. package/_modules/components/BusinessAndProductList/index.js +108 -98
  19. package/_modules/components/BusinessBasicInformation/index.js +12 -11
  20. package/_modules/components/BusinessController/index.js +24 -23
  21. package/_modules/components/BusinessInformation/BusinessOption/index.js +2 -1
  22. package/_modules/components/BusinessInformation/index.js +8 -7
  23. package/_modules/components/BusinessList/index.js +36 -35
  24. package/_modules/components/BusinessMenuListing/index.js +11 -10
  25. package/_modules/components/BusinessProductsCategories/index.js +2 -1
  26. package/_modules/components/BusinessProductsSearch/index.js +2 -1
  27. package/_modules/components/BusinessReviews/index.js +12 -11
  28. package/_modules/components/BusinessSearchList/index.js +22 -21
  29. package/_modules/components/BusinessSortControl/index.js +6 -5
  30. package/_modules/components/BusinessTypeFilter/index.js +11 -10
  31. package/_modules/components/BusinessesMap/index.js +9 -8
  32. package/_modules/components/Cart/index.js +15 -14
  33. package/_modules/components/CartStoresListing/index.js +14 -13
  34. package/_modules/components/Checkout/index.js +42 -41
  35. package/_modules/components/CmsContent/index.js +12 -11
  36. package/_modules/components/Contacts/index.js +19 -18
  37. package/_modules/components/CouponControl/index.js +12 -11
  38. package/_modules/components/DragAndDrop/index.js +7 -6
  39. package/_modules/components/DriverList/index.js +11 -10
  40. package/_modules/components/DriverTips/index.js +10 -9
  41. package/_modules/components/Emitter/index.js +6 -5
  42. package/_modules/components/ExamineClick/index.js +6 -5
  43. package/_modules/components/FacebookLoginButton/index.js +12 -11
  44. package/_modules/components/FacebookPixel/index.js +11 -10
  45. package/_modules/components/FavoriteList/index.js +19 -18
  46. package/_modules/components/FirebaseGoogleLoginButton/index.js +14 -13
  47. package/_modules/components/FloatingButton/index.js +2 -1
  48. package/_modules/components/ForgotPasswordForm/index.js +13 -12
  49. package/_modules/components/GiftCard/GiftCardOrdersList/index.js +13 -12
  50. package/_modules/components/GiftCard/PurchaseGiftCard/index.js +11 -10
  51. package/_modules/components/GiftCard/RedeemGiftCard/index.js +12 -11
  52. package/_modules/components/GiftCard/SendGiftCard/index.js +12 -11
  53. package/_modules/components/GoogleAutocompleteInput/index.js +11 -10
  54. package/_modules/components/GoogleIdentity/index.js +12 -11
  55. package/_modules/components/GoogleLoginButton/index.js +15 -12
  56. package/_modules/components/GoogleMaps/index.js +15 -13
  57. package/_modules/components/GpsButton/index.js +9 -7
  58. package/_modules/components/LanguageSelector/index.js +13 -12
  59. package/_modules/components/LoginForm/index.js +29 -28
  60. package/_modules/components/LogoutAction/index.js +15 -14
  61. package/_modules/components/MainSearch/index.js +12 -11
  62. package/_modules/components/MapView/index.js +10 -8
  63. package/_modules/components/MenuControl/index.js +16 -15
  64. package/_modules/components/Messages/index.js +13 -12
  65. package/_modules/components/MomentOption/index.js +7 -6
  66. package/_modules/components/MultiCartCreate/index.js +7 -6
  67. package/_modules/components/MultiCartsPaymethodsAndWallets/index.js +11 -10
  68. package/_modules/components/MultiCheckout/index.js +33 -32
  69. package/_modules/components/MultiOrdersDetails/index.js +16 -15
  70. package/_modules/components/MyOrders/index.js +11 -10
  71. package/_modules/components/MyOrdersList/index.js +7 -6
  72. package/_modules/components/NewOrderNotification/index.js +5 -4
  73. package/_modules/components/OrderChange/index.js +11 -10
  74. package/_modules/components/OrderDetails/index.js +28 -27
  75. package/_modules/components/OrderList/index.js +46 -42
  76. package/_modules/components/OrderListGroups/index.js +99 -97
  77. package/_modules/components/OrderReview/index.js +17 -16
  78. package/_modules/components/OrderTypeControl/index.js +6 -5
  79. package/_modules/components/OrderVerticalList/index.js +19 -18
  80. package/_modules/components/OrdersControlFilters/index.js +11 -10
  81. package/_modules/components/OrdersDashboardComponents/Appointments/index.js +11 -10
  82. package/_modules/components/OrdersDashboardComponents/BusinessProductsListing/index.js +29 -28
  83. package/_modules/components/OrdersDashboardComponents/CheckPassword/index.js +12 -11
  84. package/_modules/components/OrdersDashboardComponents/CityList/index.js +12 -11
  85. package/_modules/components/OrdersDashboardComponents/CountryList/index.js +12 -11
  86. package/_modules/components/OrdersDashboardComponents/CustomOrderDetails/index.js +14 -13
  87. package/_modules/components/OrdersDashboardComponents/DashboardBusinessList/index.js +25 -24
  88. package/_modules/components/OrdersDashboardComponents/DashboardOrdersList/index.js +20 -19
  89. package/_modules/components/OrdersDashboardComponents/DriversList/index.js +13 -12
  90. package/_modules/components/OrdersDashboardComponents/ExportCSV/index.js +12 -11
  91. package/_modules/components/OrdersDashboardComponents/GiftCardsList/index.js +12 -11
  92. package/_modules/components/OrdersDashboardComponents/GoogleMapsApiKeySetting/index.js +14 -13
  93. package/_modules/components/OrdersDashboardComponents/LogisticInformation/index.js +11 -10
  94. package/_modules/components/OrdersDashboardComponents/Logistics/index.js +11 -10
  95. package/_modules/components/OrdersDashboardComponents/Messages/index.js +15 -14
  96. package/_modules/components/OrdersDashboardComponents/MetaFields/index.js +13 -12
  97. package/_modules/components/OrdersDashboardComponents/OrderDetails/index.js +20 -19
  98. package/_modules/components/OrdersDashboardComponents/OrderNotification/index.js +6 -5
  99. package/_modules/components/OrdersDashboardComponents/OrdersFilter/index.js +11 -10
  100. package/_modules/components/OrdersDashboardComponents/OrdersManage/index.js +23 -22
  101. package/_modules/components/OrdersDashboardComponents/PointsWalletLevels/index.js +12 -11
  102. package/_modules/components/OrdersDashboardComponents/ReviewCustomer/index.js +11 -10
  103. package/_modules/components/OrdersDashboardComponents/Schedule/index.js +10 -9
  104. package/_modules/components/OrdersDashboardComponents/SettingsList/index.js +15 -14
  105. package/_modules/components/OrdersDashboardComponents/UserFormDetails/index.js +12 -11
  106. package/_modules/components/OrdersDashboardComponents/UsersList/index.js +24 -23
  107. package/_modules/components/OrdersDashboardComponents/WebsocketStatus/index.js +6 -5
  108. package/_modules/components/PageBanner/index.js +19 -18
  109. package/_modules/components/PaymentOptionCash/index.js +2 -1
  110. package/_modules/components/PaymentOptionPaypal/index.js +12 -11
  111. package/_modules/components/PaymentOptionSquare/index.js +12 -11
  112. package/_modules/components/PaymentOptionStripe/index.js +14 -13
  113. package/_modules/components/PaymentOptionStripeDirect/index.js +7 -6
  114. package/_modules/components/PaymentOptionStripeRedirect/StripeRedirectForm/index.js +4 -3
  115. package/_modules/components/PaymentOptionStripeRedirect/index.js +7 -6
  116. package/_modules/components/PaymentOptionWallet/index.js +13 -12
  117. package/_modules/components/PaymentOptions/index.js +14 -13
  118. package/_modules/components/PaymethodList/index.js +11 -10
  119. package/_modules/components/PhoneAutocomplete/index.js +45 -43
  120. package/_modules/components/PlaceSpot/index.js +15 -14
  121. package/_modules/components/Popup/index.js +6 -5
  122. package/_modules/components/ProductComponent/index.js +6 -5
  123. package/_modules/components/ProductForm/index.js +58 -57
  124. package/_modules/components/ProductImages/index.js +2 -1
  125. package/_modules/components/ProductIngredient/index.js +2 -1
  126. package/_modules/components/ProductOption/index.js +2 -1
  127. package/_modules/components/ProductOptionSuboption/index.js +10 -9
  128. package/_modules/components/ProductShare/index.js +7 -5
  129. package/_modules/components/ProductsList/index.js +6 -5
  130. package/_modules/components/ProductsListing/index.js +11 -10
  131. package/_modules/components/ProfessionalInfo/index.js +11 -10
  132. package/_modules/components/PromotionsController/index.js +12 -11
  133. package/_modules/components/QueryLoginSpoonity/index.js +15 -14
  134. package/_modules/components/ReCaptcha/index.js +6 -5
  135. package/_modules/components/ResetPassword/index.js +11 -10
  136. package/_modules/components/ReviewCustomer/index.js +11 -10
  137. package/_modules/components/ReviewDriver/index.js +16 -15
  138. package/_modules/components/ReviewProduct/index.js +16 -15
  139. package/_modules/components/SearchOptions/index.js +6 -5
  140. package/_modules/components/Sessions/index.js +12 -11
  141. package/_modules/components/SignupForm/index.js +27 -26
  142. package/_modules/components/SingleBusinessCard/index.js +2 -1
  143. package/_modules/components/SingleOrderCard/index.js +13 -12
  144. package/_modules/components/SingleProductCard/index.js +11 -10
  145. package/_modules/components/SingleProfessionalCard/index.js +11 -10
  146. package/_modules/components/SmartAppBanner/index.js +9 -8
  147. package/_modules/components/StoreProductList/index.js +29 -28
  148. package/_modules/components/StripeElementsForm/CardForm/index.js +21 -20
  149. package/_modules/components/StripeElementsForm/index.js +7 -6
  150. package/_modules/components/UpsellingPage/index.js +11 -10
  151. package/_modules/components/UserFormDetails/index.js +29 -28
  152. package/_modules/components/UserVerification/index.js +16 -15
  153. package/_modules/components/WalletList/index.js +12 -11
  154. package/_modules/components/WebsocketStatus/index.js +6 -5
  155. package/_modules/components/WrapperGoogleMaps/index.js +6 -5
  156. package/_modules/constants/code-numbers.js +3 -2
  157. package/_modules/constants/timezones.js +3 -2
  158. package/_modules/contexts/ApiContext/index.js +15 -12
  159. package/_modules/contexts/BillingContext/index.js +8 -6
  160. package/_modules/contexts/BusinessContext/index.js +18 -15
  161. package/_modules/contexts/ConfigContext/index.js +30 -18
  162. package/_modules/contexts/CustomerContext/index.js +18 -15
  163. package/_modules/contexts/EventContext/index.js +10 -7
  164. package/_modules/contexts/LanguageContext/index.js +19 -16
  165. package/_modules/contexts/OptimizationLoadContext/index.js +18 -15
  166. package/_modules/contexts/OrderContext/index.js +77 -73
  167. package/_modules/contexts/OrderingContext/index.js +8 -6
  168. package/_modules/contexts/OrderingThemeContext/index.js +16 -13
  169. package/_modules/contexts/ProductContext/index.js +16 -12
  170. package/_modules/contexts/SessionContext/index.js +18 -15
  171. package/_modules/contexts/SiteContext/index.js +16 -13
  172. package/_modules/contexts/ToastContext/index.js +10 -8
  173. package/_modules/contexts/UtilsContext/index.js +20 -17
  174. package/_modules/contexts/ValidationsFieldsContext/index.js +19 -16
  175. package/_modules/contexts/WebsocketContext/index.js +17 -14
  176. package/_modules/contexts/WebsocketContext/socket.js +6 -5
  177. package/_modules/native/src/NativeStrategy/index.js +7 -6
  178. package/_modules/native/src/contexts/OrderingContext/index.js +8 -6
  179. package/_modules/utils/index.js +5 -3
  180. package/_modules/webStrategy/index.js +7 -6
  181. package/package.json +1 -1
  182. package/src/components/PhoneAutocomplete/index.js +9 -8
  183. package/_bundles/0.ordering-component.47bc345f9be0615530cf.js +0 -1
  184. package/_bundles/7.ordering-component.47bc345f9be0615530cf.js +0 -2
  185. package/_bundles/ordering-component.47bc345f9be0615530cf.js +0 -2
  186. /package/_bundles/{7.ordering-component.47bc345f9be0615530cf.js.LICENSE.txt → 7.ordering-component.ddd8b5557b901fb64803.js.LICENSE.txt} +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -18,18 +18,18 @@ var _ToastContext = require("../../contexts/ToastContext");
18
18
  var _LanguageContext = require("../../contexts/LanguageContext");
19
19
  var _WebsocketContext = require("../../contexts/WebsocketContext");
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
25
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
24
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
25
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
26
26
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
27
27
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
28
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
30
30
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
32
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
31
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
32
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
33
33
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
34
34
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
35
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -38,9 +38,9 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
38
38
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
39
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
40
40
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
41
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
41
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
42
42
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
- var ProductForm = exports.ProductForm = function ProductForm(props) {
43
+ var ProductForm = function ProductForm(props) {
44
44
  var _props$product, _props$productCart, _orderState$carts, _product$product, _product$product2, _product$product3, _product$product4;
45
45
  var UIComponent = props.UIComponent,
46
46
  useOrderContext = props.useOrderContext,
@@ -291,16 +291,16 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
291
291
  var getUnitTotal = function getUnitTotal(productCart) {
292
292
  var _product$product7;
293
293
  var subtotal = 0;
294
- for (var i = 0; i < ((_product$product5 = product.product) === null || _product$product5 === void 0 || (_product$product5 = _product$product5.extras) === null || _product$product5 === void 0 ? void 0 : _product$product5.length); i++) {
295
- var _product$product5, _product$product6;
294
+ for (var i = 0; i < ((_product$product5 = product.product) === null || _product$product5 === void 0 ? void 0 : (_product$product5$ext = _product$product5.extras) === null || _product$product5$ext === void 0 ? void 0 : _product$product5$ext.length); i++) {
295
+ var _product$product5, _product$product5$ext, _product$product6;
296
296
  var extra = (_product$product6 = product.product) === null || _product$product6 === void 0 ? void 0 : _product$product6.extras[i];
297
297
  for (var j = 0; j < ((_extra$options = extra.options) === null || _extra$options === void 0 ? void 0 : _extra$options.length); j++) {
298
298
  var _extra$options;
299
299
  var option = extra.options[j];
300
300
  for (var k = 0; k < ((_option$suboptions = option.suboptions) === null || _option$suboptions === void 0 ? void 0 : _option$suboptions.length); k++) {
301
- var _option$suboptions, _productCart$options;
301
+ var _option$suboptions, _productCart$options, _productCart$options$;
302
302
  var suboption = option.suboptions[k];
303
- if ((_productCart$options = productCart.options["id:".concat(option.id)]) !== null && _productCart$options !== void 0 && (_productCart$options = _productCart$options.suboptions["id:".concat(suboption.id)]) !== null && _productCart$options !== void 0 && _productCart$options.selected) {
303
+ if ((_productCart$options = productCart.options["id:".concat(option.id)]) !== null && _productCart$options !== void 0 && (_productCart$options$ = _productCart$options.suboptions["id:".concat(suboption.id)]) !== null && _productCart$options$ !== void 0 && _productCart$options$.selected) {
304
304
  var suboptionState = productCart.options["id:".concat(option.id)].suboptions["id:".concat(suboption.id)];
305
305
  var quantity = option.allow_suboption_quantity ? suboptionState.quantity : 1;
306
306
  var price = option.with_half_option && suboption.half_price && suboptionState.position !== 'whole' ? suboption.half_price : suboption.price;
@@ -393,7 +393,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
393
393
  }
394
394
  }, _callee, null, [[4, 19]]);
395
395
  }));
396
- return function handleFavoriteProduct(_x) {
396
+ return function handleFavoriteProduct(_x2) {
397
397
  return _ref.apply(this, arguments);
398
398
  };
399
399
  }();
@@ -501,7 +501,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
501
501
  * @param {object} product Product object
502
502
  */
503
503
  var handleChangeSuboptionState = function handleChangeSuboptionState(state, suboption, option) {
504
- var _newPizzaState;
504
+ var _newPizzaState, _newPizzaState2;
505
505
  var newProductCart = JSON.parse(JSON.stringify(productCart));
506
506
  if (!newProductCart.options) {
507
507
  newProductCart.options = {};
@@ -546,8 +546,8 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
546
546
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
547
547
  var _Object$keys, _newProductCart$optio3;
548
548
  var _option3 = _step6.value;
549
- if (((_Object$keys = Object.keys((newProductCart === null || newProductCart === void 0 || (_newProductCart$optio3 = newProductCart.options["id:".concat(_option3 === null || _option3 === void 0 ? void 0 : _option3.id)]) === null || _newProductCart$optio3 === void 0 ? void 0 : _newProductCart$optio3.suboptions) || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0) {
550
- newProductCart === null || newProductCart === void 0 || delete newProductCart.options["id:".concat(_option3 === null || _option3 === void 0 ? void 0 : _option3.id)];
549
+ if (((_Object$keys = Object.keys((newProductCart === null || newProductCart === void 0 ? void 0 : (_newProductCart$optio3 = newProductCart.options["id:".concat(_option3 === null || _option3 === void 0 ? void 0 : _option3.id)]) === null || _newProductCart$optio3 === void 0 ? void 0 : _newProductCart$optio3.suboptions) || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0) {
550
+ newProductCart === null || newProductCart === void 0 ? true : delete newProductCart.options["id:".concat(_option3 === null || _option3 === void 0 ? void 0 : _option3.id)];
551
551
  }
552
552
  }
553
553
  } catch (err) {
@@ -586,7 +586,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
586
586
  }
587
587
  } else {
588
588
  var _option2$suboptions;
589
- _selectedSuboptions["suboption:".concat(_suboption.id)] = (_suboption === null || _suboption === void 0 ? void 0 : _suboption.preselected) || (_option2 === null || _option2 === void 0 ? void 0 : _option2.max) === 1 && (_option2 === null || _option2 === void 0 ? void 0 : _option2.min) === 1 && (_option2 === null || _option2 === void 0 || (_option2$suboptions = _option2.suboptions) === null || _option2$suboptions === void 0 ? void 0 : _option2$suboptions.length) === 1;
589
+ _selectedSuboptions["suboption:".concat(_suboption.id)] = (_suboption === null || _suboption === void 0 ? void 0 : _suboption.preselected) || (_option2 === null || _option2 === void 0 ? void 0 : _option2.max) === 1 && (_option2 === null || _option2 === void 0 ? void 0 : _option2.min) === 1 && (_option2 === null || _option2 === void 0 ? void 0 : (_option2$suboptions = _option2.suboptions) === null || _option2$suboptions === void 0 ? void 0 : _option2$suboptions.length) === 1;
590
590
  }
591
591
  }
592
592
  } catch (err) {
@@ -647,15 +647,15 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
647
647
  _iterator5.f();
648
648
  }
649
649
  var states = preselectedSuboptions.map(function (suboption, i) {
650
- var _newProductCart$optio2, _preselectedOptions$i, _preselectedOptions$i2, _preselectedOptions$i3, _cartSuboption$quanti;
651
- var cartSuboption = (newProductCart === null || newProductCart === void 0 || (_newProductCart$optio2 = newProductCart.options["id:".concat((_preselectedOptions$i = preselectedOptions[i]) === null || _preselectedOptions$i === void 0 ? void 0 : _preselectedOptions$i.id)]) === null || _newProductCart$optio2 === void 0 ? void 0 : _newProductCart$optio2.suboptions["id:".concat(suboption === null || suboption === void 0 ? void 0 : suboption.id)]) || suboption;
650
+ var _newProductCart$optio2, _preselectedOptions$i, _preselectedOptions$i2, _preselectedOptions$i3, _preselectedOptions$i4, _cartSuboption$quanti;
651
+ var cartSuboption = (newProductCart === null || newProductCart === void 0 ? void 0 : (_newProductCart$optio2 = newProductCart.options["id:".concat((_preselectedOptions$i = preselectedOptions[i]) === null || _preselectedOptions$i === void 0 ? void 0 : _preselectedOptions$i.id)]) === null || _newProductCart$optio2 === void 0 ? void 0 : _newProductCart$optio2.suboptions["id:".concat(suboption === null || suboption === void 0 ? void 0 : suboption.id)]) || suboption;
652
652
  var price = (_preselectedOptions$i2 = preselectedOptions[i]) !== null && _preselectedOptions$i2 !== void 0 && _preselectedOptions$i2.with_half_option && cartSuboption !== null && cartSuboption !== void 0 && cartSuboption.half_price && (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.position) !== 'whole' ? cartSuboption.half_price : cartSuboption.price;
653
653
  return {
654
654
  id: cartSuboption.id,
655
655
  name: cartSuboption.name,
656
656
  position: (state === null || state === void 0 ? void 0 : state.id) === (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.id) ? state === null || state === void 0 ? void 0 : state.position : cartSuboption.position || 'whole',
657
657
  price: (state === null || state === void 0 ? void 0 : state.id) === (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.id) ? state.price : price,
658
- quantity: (state === null || state === void 0 ? void 0 : state.id) === (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.id) ? state.quantity : ((_preselectedOptions$i3 = preselectedOptions[i]) === null || _preselectedOptions$i3 === void 0 || (_preselectedOptions$i3 = _preselectedOptions$i3.name) === null || _preselectedOptions$i3 === void 0 ? void 0 : _preselectedOptions$i3.toLowerCase()) === 'queso y salsa' && isAlsea ? (_cartSuboption$quanti = cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.quantity) !== null && _cartSuboption$quanti !== void 0 ? _cartSuboption$quanti : 1 : (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.quantity) || 1,
658
+ quantity: (state === null || state === void 0 ? void 0 : state.id) === (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.id) ? state.quantity : ((_preselectedOptions$i3 = preselectedOptions[i]) === null || _preselectedOptions$i3 === void 0 ? void 0 : (_preselectedOptions$i4 = _preselectedOptions$i3.name) === null || _preselectedOptions$i4 === void 0 ? void 0 : _preselectedOptions$i4.toLowerCase()) === 'queso y salsa' && isAlsea ? (_cartSuboption$quanti = cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.quantity) !== null && _cartSuboption$quanti !== void 0 ? _cartSuboption$quanti : 1 : (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.quantity) || 1,
659
659
  selected: true,
660
660
  total: (state === null || state === void 0 ? void 0 : state.id) === (cartSuboption === null || cartSuboption === void 0 ? void 0 : cartSuboption.id) ? state.total : price
661
661
  };
@@ -678,9 +678,9 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
678
678
  }
679
679
  var hasPreselectedFlow = suboptionsArray.filter(function (state) {
680
680
  var _state$suboption;
681
- return state === null || state === void 0 || (_state$suboption = state.suboption) === null || _state$suboption === void 0 ? void 0 : _state$suboption.preselected;
681
+ return state === null || state === void 0 ? void 0 : (_state$suboption = state.suboption) === null || _state$suboption === void 0 ? void 0 : _state$suboption.preselected;
682
682
  });
683
- if (newBalance <= option.max || ((_newPizzaState = newPizzaState) === null || _newPizzaState === void 0 || (_newPizzaState = _newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _newPizzaState === void 0 ? void 0 : _newPizzaState.value) <= option.max && option !== null && option !== void 0 && option.with_half_option) {
683
+ if (newBalance <= option.max || ((_newPizzaState = newPizzaState) === null || _newPizzaState === void 0 ? void 0 : (_newPizzaState2 = _newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _newPizzaState2 === void 0 ? void 0 : _newPizzaState2.value) <= option.max && option !== null && option !== void 0 && option.with_half_option) {
684
684
  newProductCart.options["id:".concat(option.id)].balance = newBalance;
685
685
  newProductCart.unitTotal = getUnitTotal(newProductCart);
686
686
  newProductCart.total = newProductCart.unitTotal * newProductCart.quantity;
@@ -698,7 +698,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
698
698
  newProductCart.options = {};
699
699
  }
700
700
  defaultOptions.map(function (_ref3) {
701
- var _newPizzaState2;
701
+ var _newPizzaState3;
702
702
  var option = _ref3.option,
703
703
  state = _ref3.state,
704
704
  suboption = _ref3.suboption;
@@ -732,7 +732,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
732
732
  return count + suboption.quantity;
733
733
  }, 0);
734
734
  }
735
- if (newBalance <= option.max || (newPizzaState === null || newPizzaState === void 0 || (_newPizzaState2 = newPizzaState["option:".concat(option.id)]) === null || _newPizzaState2 === void 0 ? void 0 : _newPizzaState2.value) <= option.max && option !== null && option !== void 0 && option.with_half_option) {
735
+ if (newBalance <= option.max || (newPizzaState === null || newPizzaState === void 0 ? void 0 : (_newPizzaState3 = newPizzaState["option:".concat(option.id)]) === null || _newPizzaState3 === void 0 ? void 0 : _newPizzaState3.value) <= option.max && option !== null && option !== void 0 && option.with_half_option) {
736
736
  newProductCart.options["id:".concat(option.id)].balance = newBalance;
737
737
  newProductCart.unitTotal = getUnitTotal(newProductCart);
738
738
  newProductCart.total = newProductCart.unitTotal * newProductCart.quantity;
@@ -758,16 +758,16 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
758
758
  * Check options to get errors
759
759
  */
760
760
  var checkErrors = function checkErrors() {
761
- var _product$product8;
761
+ var _product$product8, _product$product8$ext;
762
762
  var errors = {};
763
763
  if (!(product !== null && product !== void 0 && product.product)) {
764
764
  return errors;
765
765
  }
766
- (_product$product8 = product.product) === null || _product$product8 === void 0 || (_product$product8 = _product$product8.extras) === null || _product$product8 === void 0 || _product$product8.forEach(function (extra) {
766
+ (_product$product8 = product.product) === null || _product$product8 === void 0 ? void 0 : (_product$product8$ext = _product$product8.extras) === null || _product$product8$ext === void 0 ? void 0 : _product$product8$ext.forEach(function (extra) {
767
767
  extra.options.map(function (option) {
768
768
  var _productCart$options3, _pizzaState, _Object$keys2, _option$suboptions3;
769
769
  var suboptions = (_productCart$options3 = productCart.options["id:".concat(option.id)]) === null || _productCart$options3 === void 0 ? void 0 : _productCart$options3.suboptions;
770
- var quantity = suboptions ? option !== null && option !== void 0 && option.with_half_option ? pizzaState === null || pizzaState === void 0 || (_pizzaState = pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _pizzaState === void 0 ? void 0 : _pizzaState.value : option.limit_suboptions_by_max ? Object.values(suboptions).reduce(function (count, suboption) {
770
+ var quantity = suboptions ? option !== null && option !== void 0 && option.with_half_option ? pizzaState === null || pizzaState === void 0 ? void 0 : (_pizzaState = pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _pizzaState === void 0 ? void 0 : _pizzaState.value : option.limit_suboptions_by_max ? Object.values(suboptions).reduce(function (count, suboption) {
771
771
  return count + suboption.quantity;
772
772
  }, 0) : (_Object$keys2 = Object.keys(suboptions)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length : 0;
773
773
  var evaluateRespectTo = false;
@@ -783,7 +783,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
783
783
  }
784
784
  }
785
785
  var evaluate = option.respect_to ? evaluateRespectTo : true;
786
- if ((option === null || option === void 0 || (_option$suboptions3 = option.suboptions) === null || _option$suboptions3 === void 0 ? void 0 : _option$suboptions3.length) > 0 && evaluate) {
786
+ if ((option === null || option === void 0 ? void 0 : (_option$suboptions3 = option.suboptions) === null || _option$suboptions3 === void 0 ? void 0 : _option$suboptions3.length) > 0 && evaluate) {
787
787
  if (option.min > quantity) {
788
788
  errors["id:".concat(option.id)] = true;
789
789
  } else if (option.max < quantity) {
@@ -825,11 +825,11 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
825
825
  business_id: props.businessId
826
826
  };
827
827
  currentProduct = !isService ? _objectSpread({}, productCart) : _objectSpread(_objectSpread({}, productCart), {}, {
828
- professional_id: values === null || values === void 0 || (_values$professional = values.professional) === null || _values$professional === void 0 ? void 0 : _values$professional.id,
828
+ professional_id: values === null || values === void 0 ? void 0 : (_values$professional = values.professional) === null || _values$professional === void 0 ? void 0 : _values$professional.id,
829
829
  service_start: (_values$serviceTime = values === null || values === void 0 ? void 0 : values.serviceTime) !== null && _values$serviceTime !== void 0 ? _values$serviceTime : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.moment
830
830
  });
831
831
  onSave(productCart, !((_props$productCart6 = props.productCart) !== null && _props$productCart6 !== void 0 && _props$productCart6.code));
832
- isMultiProduct = ((_JSON$parse = JSON.parse((product === null || product === void 0 || (_product$product9 = product.product) === null || _product$product9 === void 0 ? void 0 : _product$product9.meta) || '{}')) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.external_type) === 'coupon';
832
+ isMultiProduct = ((_JSON$parse = JSON.parse((product === null || product === void 0 ? void 0 : (_product$product9 = product.product) === null || _product$product9 === void 0 ? void 0 : _product$product9.meta) || '{}')) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.external_type) === 'coupon';
833
833
  if ((_props$productCart7 = props.productCart) !== null && _props$productCart7 !== void 0 && _props$productCart7.code) {
834
834
  _context3.next = 25;
835
835
  break;
@@ -865,7 +865,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
865
865
  if (successful) {
866
866
  if (isService) {
867
867
  updatedProfessional = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.professional));
868
- duration = product === null || product === void 0 || (_product$product10 = product.product) === null || _product$product10 === void 0 ? void 0 : _product$product10.duration;
868
+ duration = product === null || product === void 0 ? void 0 : (_product$product10 = product.product) === null || _product$product10 === void 0 ? void 0 : _product$product10.duration;
869
869
  updatedProfessional.busy_times.push({
870
870
  start: values === null || values === void 0 ? void 0 : values.serviceTime,
871
871
  end: (0, _moment.default)(values === null || values === void 0 ? void 0 : values.serviceTime).add(duration, 'minutes').format('YYYY-MM-DD HH:mm:ss'),
@@ -892,7 +892,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
892
892
  }
893
893
  }, _callee3, null, [[0, 33]]);
894
894
  }));
895
- return function handleSave(_x2) {
895
+ return function handleSave(_x3) {
896
896
  return _ref4.apply(this, arguments);
897
897
  };
898
898
  }();
@@ -943,7 +943,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
943
943
  }
944
944
  }, _callee4, null, [[0, 11]]);
945
945
  }));
946
- return function handleCreateGuestUser(_x3) {
946
+ return function handleCreateGuestUser(_x4) {
947
947
  return _ref5.apply(this, arguments);
948
948
  };
949
949
  }();
@@ -995,7 +995,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
995
995
  }
996
996
  }
997
997
  }
998
- if ((option === null || option === void 0 || (_option$suboptions5 = option.suboptions) === null || _option$suboptions5 === void 0 ? void 0 : _option$suboptions5.length) === 0) showOption = false;
998
+ if ((option === null || option === void 0 ? void 0 : (_option$suboptions5 = option.suboptions) === null || _option$suboptions5 === void 0 ? void 0 : _option$suboptions5.length) === 0) showOption = false;
999
999
  return showOption;
1000
1000
  };
1001
1001
 
@@ -1061,20 +1061,20 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1061
1061
  if (state !== null && state !== void 0 && state.selected) {
1062
1062
  preselectedOptions.map(function (option, i) {
1063
1063
  if (option !== null && option !== void 0 && option.with_half_option) {
1064
- var _newPizzaState3, _preselectedSuboption, _states$i, _states$i2, _states$i3, _states$i4;
1065
- newPizzaState = _objectSpread(_objectSpread({}, newPizzaState), {}, _defineProperty({}, "option:".concat(option === null || option === void 0 ? void 0 : option.id), _objectSpread(_objectSpread({}, (_newPizzaState3 = newPizzaState) === null || _newPizzaState3 === void 0 ? void 0 : _newPizzaState3["option:".concat(option === null || option === void 0 ? void 0 : option.id)]), {}, _defineProperty({}, "suboption:".concat((_preselectedSuboption = preselectedSuboptions[i]) === null || _preselectedSuboption === void 0 ? void 0 : _preselectedSuboption.id), isAlsea ? (((_states$i = states[i]) === null || _states$i === void 0 ? void 0 : _states$i.position) === 'whole' ? 1 : 0.5) + (states[i].quantity >= 2 ? 0.5 : 0) : (((_states$i2 = states[i]) === null || _states$i2 === void 0 ? void 0 : _states$i2.position) === 'whole' ? 1 : 0.5) * states[i].quantity))));
1064
+ var _newPizzaState4, _preselectedSuboption, _states$i, _states$i2, _states$i3, _states$i4;
1065
+ newPizzaState = _objectSpread(_objectSpread({}, newPizzaState), {}, _defineProperty({}, "option:".concat(option === null || option === void 0 ? void 0 : option.id), _objectSpread(_objectSpread({}, (_newPizzaState4 = newPizzaState) === null || _newPizzaState4 === void 0 ? void 0 : _newPizzaState4["option:".concat(option === null || option === void 0 ? void 0 : option.id)]), {}, _defineProperty({}, "suboption:".concat((_preselectedSuboption = preselectedSuboptions[i]) === null || _preselectedSuboption === void 0 ? void 0 : _preselectedSuboption.id), isAlsea ? (((_states$i = states[i]) === null || _states$i === void 0 ? void 0 : _states$i.position) === 'whole' ? 1 : 0.5) + (states[i].quantity >= 2 ? 0.5 : 0) : (((_states$i2 = states[i]) === null || _states$i2 === void 0 ? void 0 : _states$i2.position) === 'whole' ? 1 : 0.5) * states[i].quantity))));
1066
1066
  var suboptionValue = isAlsea ? (((_states$i3 = states[i]) === null || _states$i3 === void 0 ? void 0 : _states$i3.position) === 'whole' || (option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1 ? 1 : 0.5) + (states[i].quantity >= 2 ? 0.5 : 0) : (((_states$i4 = states[i]) === null || _states$i4 === void 0 ? void 0 : _states$i4.position) === 'whole' || (option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1 ? 1 : 0.5) * states[i].quantity;
1067
1067
  var value = suboptionValue + (newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)].value || 0);
1068
1068
  newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)].value = value;
1069
1069
  }
1070
1070
  });
1071
1071
  } else {
1072
- var _newPizzaState4, _Object$values, _newPizzaState5;
1072
+ var _newPizzaState5, _newPizzaState6, _Object$values, _newPizzaState7;
1073
1073
  newPizzaState = _objectSpread(_objectSpread({}, pizzaState), {}, _defineProperty({}, "option:".concat(option === null || option === void 0 ? void 0 : option.id), _objectSpread(_objectSpread({}, pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]), {}, {
1074
1074
  value: 0
1075
1075
  })));
1076
- (_newPizzaState4 = newPizzaState) === null || _newPizzaState4 === void 0 || (_newPizzaState4 = _newPizzaState4["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _newPizzaState4 === void 0 || delete _newPizzaState4["suboption:".concat(suboption === null || suboption === void 0 ? void 0 : suboption.id)];
1077
- var value = Object === null || Object === void 0 || (_Object$values = Object.values(((_newPizzaState5 = newPizzaState) === null || _newPizzaState5 === void 0 ? void 0 : _newPizzaState5["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) || {})) === null || _Object$values === void 0 ? void 0 : _Object$values.reduce(function (acc, value) {
1076
+ (_newPizzaState5 = newPizzaState) === null || _newPizzaState5 === void 0 ? true : (_newPizzaState6 = _newPizzaState5["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _newPizzaState6 === void 0 ? true : delete _newPizzaState6["suboption:".concat(suboption === null || suboption === void 0 ? void 0 : suboption.id)];
1077
+ var value = Object === null || Object === void 0 ? void 0 : (_Object$values = Object.values(((_newPizzaState7 = newPizzaState) === null || _newPizzaState7 === void 0 ? void 0 : _newPizzaState7["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) || {})) === null || _Object$values === void 0 ? void 0 : _Object$values.reduce(function (acc, value) {
1078
1078
  return acc + value;
1079
1079
  }, 0);
1080
1080
  newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)].value = value;
@@ -1103,7 +1103,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1103
1103
  */
1104
1104
  (0, _react.useEffect)(function () {
1105
1105
  var _props$product2;
1106
- if ((props === null || props === void 0 || (_props$product2 = props.product) === null || _props$product2 === void 0 ? void 0 : _props$product2.load_type) === 'lazy') return;
1106
+ if ((props === null || props === void 0 ? void 0 : (_props$product2 = props.product) === null || _props$product2 === void 0 ? void 0 : _props$product2.load_type) === 'lazy') return;
1107
1107
  setProduct(_objectSpread(_objectSpread({}, product), {}, {
1108
1108
  product: props.product
1109
1109
  }));
@@ -1130,8 +1130,8 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1130
1130
  return checkSuboptionsSelected(respectTo, _selectedSuboptions, _dependsSuboptions, count++);
1131
1131
  };
1132
1132
  (0, _react.useEffect)(function () {
1133
- var _product$product11;
1134
- if (!(product !== null && product !== void 0 && product.loading) && product !== null && product !== void 0 && product.product && ((_product$product11 = product.product) === null || _product$product11 === void 0 || (_product$product11 = _product$product11.extras) === null || _product$product11 === void 0 ? void 0 : _product$product11.length) > 0) {
1133
+ var _product$product11, _product$product11$ex;
1134
+ if (!(product !== null && product !== void 0 && product.loading) && product !== null && product !== void 0 && product.product && ((_product$product11 = product.product) === null || _product$product11 === void 0 ? void 0 : (_product$product11$ex = _product$product11.extras) === null || _product$product11$ex === void 0 ? void 0 : _product$product11$ex.length) > 0) {
1135
1135
  var _selectedSuboptions = {};
1136
1136
  var _dependsSuboptions = {};
1137
1137
  var preselectedOptions = [];
@@ -1150,9 +1150,9 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1150
1150
  _step12;
1151
1151
  try {
1152
1152
  for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
1153
- var _option$suboptions6, _props$productCart12;
1153
+ var _option$suboptions6, _props$productCart12, _props$productCart12$;
1154
1154
  var suboption = _step12.value;
1155
- _selectedSuboptions["suboption:".concat(suboption.id)] = (suboption.preselected || (option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1 && (option === null || option === void 0 || (_option$suboptions6 = option.suboptions) === null || _option$suboptions6 === void 0 ? void 0 : _option$suboptions6.length) === 1) && (!editMode || !!((_props$productCart12 = props.productCart) !== null && _props$productCart12 !== void 0 && (_props$productCart12 = _props$productCart12.options["id:".concat(option === null || option === void 0 ? void 0 : option.id)]) !== null && _props$productCart12 !== void 0 && _props$productCart12.suboptions["id:".concat(suboption === null || suboption === void 0 ? void 0 : suboption.id)]));
1155
+ _selectedSuboptions["suboption:".concat(suboption.id)] = (suboption.preselected || (option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1 && (option === null || option === void 0 ? void 0 : (_option$suboptions6 = option.suboptions) === null || _option$suboptions6 === void 0 ? void 0 : _option$suboptions6.length) === 1) && (!editMode || !!((_props$productCart12 = props.productCart) !== null && _props$productCart12 !== void 0 && (_props$productCart12$ = _props$productCart12.options["id:".concat(option === null || option === void 0 ? void 0 : option.id)]) !== null && _props$productCart12$ !== void 0 && _props$productCart12$.suboptions["id:".concat(suboption === null || suboption === void 0 ? void 0 : suboption.id)]));
1156
1156
  _dependsSuboptions["suboption:".concat(suboption.id)] = option !== null && option !== void 0 && option.conditioned && (option === null || option === void 0 ? void 0 : option.respect_to) !== null ? option === null || option === void 0 ? void 0 : option.respect_to : null;
1157
1157
  }
1158
1158
  } catch (err) {
@@ -1174,7 +1174,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1174
1174
  }
1175
1175
  if (editMode && props !== null && props !== void 0 && props.productCart) {
1176
1176
  var _Object$values2, _props$productCart10;
1177
- (_Object$values2 = Object.values(props === null || props === void 0 || (_props$productCart10 = props.productCart) === null || _props$productCart10 === void 0 ? void 0 : _props$productCart10.options)) === null || _Object$values2 === void 0 || _Object$values2.map(function (option) {
1177
+ (_Object$values2 = Object.values(props === null || props === void 0 ? void 0 : (_props$productCart10 = props.productCart) === null || _props$productCart10 === void 0 ? void 0 : _props$productCart10.options)) === null || _Object$values2 === void 0 ? void 0 : _Object$values2.map(function (option) {
1178
1178
  var _Object$values3;
1179
1179
  return (_Object$values3 = Object.values(option === null || option === void 0 ? void 0 : option.suboptions)) === null || _Object$values3 === void 0 ? void 0 : _Object$values3.map(function (suboption) {
1180
1180
  _selectedSuboptions["suboption:".concat(suboption.id)] = true;
@@ -1225,13 +1225,13 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1225
1225
  }
1226
1226
  var states = {};
1227
1227
  if (editMode && props !== null && props !== void 0 && props.productCart) {
1228
- var _Object$values4, _props$productCart11;
1229
- var cartSuboptions = (_Object$values4 = Object.values(props === null || props === void 0 || (_props$productCart11 = props.productCart) === null || _props$productCart11 === void 0 ? void 0 : _props$productCart11.options)) === null || _Object$values4 === void 0 || (_Object$values4 = _Object$values4.map(function (option) {
1228
+ var _Object$values4, _Object$values4$map, _props$productCart11;
1229
+ var cartSuboptions = (_Object$values4 = Object.values(props === null || props === void 0 ? void 0 : (_props$productCart11 = props.productCart) === null || _props$productCart11 === void 0 ? void 0 : _props$productCart11.options)) === null || _Object$values4 === void 0 ? void 0 : (_Object$values4$map = _Object$values4.map(function (option) {
1230
1230
  return Object.values(option === null || option === void 0 ? void 0 : option.suboptions);
1231
- })) === null || _Object$values4 === void 0 ? void 0 : _Object$values4.flat();
1231
+ })) === null || _Object$values4$map === void 0 ? void 0 : _Object$values4$map.flat();
1232
1232
  states = cartSuboptions.map(function (suboption, i) {
1233
- var _preselectedOptions$i4;
1234
- var price = (_preselectedOptions$i4 = preselectedOptions[i]) !== null && _preselectedOptions$i4 !== void 0 && _preselectedOptions$i4.with_half_option && suboption !== null && suboption !== void 0 && suboption.half_price && (suboption === null || suboption === void 0 ? void 0 : suboption.position) !== 'whole' ? suboption.half_price : suboption.price;
1233
+ var _preselectedOptions$i5;
1234
+ var price = (_preselectedOptions$i5 = preselectedOptions[i]) !== null && _preselectedOptions$i5 !== void 0 && _preselectedOptions$i5.with_half_option && suboption !== null && suboption !== void 0 && suboption.half_price && (suboption === null || suboption === void 0 ? void 0 : suboption.position) !== 'whole' ? suboption.half_price : suboption.price;
1235
1235
  return {
1236
1236
  id: suboption.id,
1237
1237
  name: suboption.name,
@@ -1244,8 +1244,8 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1244
1244
  });
1245
1245
  } else {
1246
1246
  states = preselectedSuboptions.map(function (suboption, i) {
1247
- var _preselectedOptions$i5;
1248
- var price = (_preselectedOptions$i5 = preselectedOptions[i]) !== null && _preselectedOptions$i5 !== void 0 && _preselectedOptions$i5.with_half_option && suboption !== null && suboption !== void 0 && suboption.half_price && (suboption === null || suboption === void 0 ? void 0 : suboption.position) !== 'whole' ? suboption.half_price : suboption.price;
1247
+ var _preselectedOptions$i6;
1248
+ var price = (_preselectedOptions$i6 = preselectedOptions[i]) !== null && _preselectedOptions$i6 !== void 0 && _preselectedOptions$i6.with_half_option && suboption !== null && suboption !== void 0 && suboption.half_price && (suboption === null || suboption === void 0 ? void 0 : suboption.position) !== 'whole' ? suboption.half_price : suboption.price;
1249
1249
  return {
1250
1250
  id: suboption.id,
1251
1251
  name: suboption.name,
@@ -1271,8 +1271,8 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1271
1271
  };
1272
1272
  suboptionsArray = [].concat(_toConsumableArray(suboptionsArray), [defaultSuboption]);
1273
1273
  if (option !== null && option !== void 0 && option.with_half_option) {
1274
- var _newPizzaState6, _preselectedSuboption3, _states$i5, _states$i6, _states$i7, _states$i8;
1275
- newPizzaState = _objectSpread(_objectSpread({}, newPizzaState), {}, _defineProperty({}, "option:".concat(option === null || option === void 0 ? void 0 : option.id), _objectSpread(_objectSpread({}, (_newPizzaState6 = newPizzaState) === null || _newPizzaState6 === void 0 ? void 0 : _newPizzaState6["option:".concat(option === null || option === void 0 ? void 0 : option.id)]), {}, _defineProperty({}, "suboption:".concat((_preselectedSuboption3 = preselectedSuboptions[i]) === null || _preselectedSuboption3 === void 0 ? void 0 : _preselectedSuboption3.id), isAlsea ? (((_states$i5 = states[i]) === null || _states$i5 === void 0 ? void 0 : _states$i5.position) === 'whole' ? 1 : 0.5) + (states[i].quantity >= 2 ? 0.5 : 0) : (((_states$i6 = states[i]) === null || _states$i6 === void 0 ? void 0 : _states$i6.position) === 'whole' ? 1 : 0.5) * states[i].quantity))));
1274
+ var _newPizzaState8, _preselectedSuboption3, _states$i5, _states$i6, _states$i7, _states$i8;
1275
+ newPizzaState = _objectSpread(_objectSpread({}, newPizzaState), {}, _defineProperty({}, "option:".concat(option === null || option === void 0 ? void 0 : option.id), _objectSpread(_objectSpread({}, (_newPizzaState8 = newPizzaState) === null || _newPizzaState8 === void 0 ? void 0 : _newPizzaState8["option:".concat(option === null || option === void 0 ? void 0 : option.id)]), {}, _defineProperty({}, "suboption:".concat((_preselectedSuboption3 = preselectedSuboptions[i]) === null || _preselectedSuboption3 === void 0 ? void 0 : _preselectedSuboption3.id), isAlsea ? (((_states$i5 = states[i]) === null || _states$i5 === void 0 ? void 0 : _states$i5.position) === 'whole' ? 1 : 0.5) + (states[i].quantity >= 2 ? 0.5 : 0) : (((_states$i6 = states[i]) === null || _states$i6 === void 0 ? void 0 : _states$i6.position) === 'whole' ? 1 : 0.5) * states[i].quantity))));
1276
1276
  var suboptionValue = isAlsea ? (((_states$i7 = states[i]) === null || _states$i7 === void 0 ? void 0 : _states$i7.position) === 'whole' || (option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1 ? 1 : 0.5) + (states[i].quantity >= 2 ? 0.5 : 0) : (((_states$i8 = states[i]) === null || _states$i8 === void 0 ? void 0 : _states$i8.position) === 'whole' || (option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1 ? 1 : 0.5) * states[i].quantity;
1277
1277
  var value = suboptionValue + (newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)].value || 0);
1278
1278
  newPizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)].value = value;
@@ -1386,6 +1386,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1386
1386
  isAlsea: isAlsea
1387
1387
  })));
1388
1388
  };
1389
+ exports.ProductForm = ProductForm;
1389
1390
  ProductForm.propTypes = {
1390
1391
  /**
1391
1392
  * UI Component, this must be containt all graphic elements and use parent props
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
- var ProductImages = exports.ProductImages = function ProductImages(props) {
11
+ var ProductImages = function ProductImages(props) {
12
12
  var hero = props.hero,
13
13
  gallery = props.gallery,
14
14
  UIComponent = props.UIComponent;
@@ -17,6 +17,7 @@ var ProductImages = exports.ProductImages = function ProductImages(props) {
17
17
  gallery: gallery
18
18
  })));
19
19
  };
20
+ exports.ProductImages = ProductImages;
20
21
  ProductImages.propTypes = {
21
22
  /**
22
23
  * UI Component, this must be containt all graphic elements and use parent props
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
11
11
  /**
12
12
  * Component to render product ingredient
13
13
  */
14
- var ProductIngredient = exports.ProductIngredient = function ProductIngredient(props) {
14
+ var ProductIngredient = function ProductIngredient(props) {
15
15
  var UIComponent = props.UIComponent,
16
16
  ingredient = props.ingredient,
17
17
  onChange = props.onChange;
@@ -46,6 +46,7 @@ var ProductIngredient = exports.ProductIngredient = function ProductIngredient(p
46
46
  toggleSelect: toggleSelect
47
47
  })));
48
48
  };
49
+ exports.ProductIngredient = ProductIngredient;
49
50
  ProductIngredient.propTypes = {
50
51
  /**
51
52
  * UI Component, this must be containt all graphic elements and use parent props
@@ -10,10 +10,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  /**
11
11
  * Component to render product options
12
12
  */
13
- var ProductOption = exports.ProductOption = function ProductOption(props) {
13
+ var ProductOption = function ProductOption(props) {
14
14
  var UIComponent = props.UIComponent;
15
15
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, UIComponent && /*#__PURE__*/_react.default.createElement(UIComponent, props));
16
16
  };
17
+ exports.ProductOption = ProductOption;
17
18
  ProductOption.propTypes = {
18
19
  /**
19
20
  * UI Component, this must be containt all graphic elements and use parent props
@@ -7,17 +7,17 @@ exports.ProductOptionSuboption = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
11
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
14
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
17
  /**
18
18
  * Component to render product option suboption
19
19
  */
20
- var ProductOptionSuboption = exports.ProductOptionSuboption = function ProductOptionSuboption(props) {
20
+ var ProductOptionSuboption = function ProductOptionSuboption(props) {
21
21
  var _pizzaState;
22
22
  var UIComponent = props.UIComponent,
23
23
  balance = props.balance,
@@ -37,11 +37,11 @@ var ProductOptionSuboption = exports.ProductOptionSuboption = function ProductOp
37
37
  quantity = props.state.quantity;
38
38
  } else if (selected) {
39
39
  var _option$name;
40
- quantity = (option === null || option === void 0 || (_option$name = option.name) === null || _option$name === void 0 ? void 0 : _option$name.toLowerCase()) === 'queso y salsa' && isAlsea ? props.state.quantity : 1;
40
+ quantity = (option === null || option === void 0 ? void 0 : (_option$name = option.name) === null || _option$name === void 0 ? void 0 : _option$name.toLowerCase()) === 'queso y salsa' && isAlsea ? props.state.quantity : 1;
41
41
  }
42
42
  var position = props.state.position || 'whole';
43
43
  var price = option.with_half_option && suboption.half_price && position !== 'whole' ? suboption.half_price : suboption.price;
44
- var usePizzaValidation = (pizzaState === null || pizzaState === void 0 || (_pizzaState = pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _pizzaState === void 0 ? void 0 : _pizzaState.value) >= (option === null || option === void 0 ? void 0 : option.max) && !((option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1);
44
+ var usePizzaValidation = (pizzaState === null || pizzaState === void 0 ? void 0 : (_pizzaState = pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _pizzaState === void 0 ? void 0 : _pizzaState.value) >= (option === null || option === void 0 ? void 0 : option.max) && !((option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1);
45
45
 
46
46
  /**
47
47
  * Set current state
@@ -71,7 +71,7 @@ var ProductOptionSuboption = exports.ProductOptionSuboption = function ProductOp
71
71
  var _pizzaState2;
72
72
  var selectStatus = isOrigin ? !state.selected : state.selected;
73
73
  var minMaxValidation = option.with_half_option ? usePizzaValidation : balance === option.max && !((option === null || option === void 0 ? void 0 : option.max) === 1 && (option === null || option === void 0 ? void 0 : option.min) === 1);
74
- var canBeSelectedByHalf = (pizzaState === null || pizzaState === void 0 || (_pizzaState2 = pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _pizzaState2 === void 0 ? void 0 : _pizzaState2.value) === option.max - 0.5 && option.with_half_option;
74
+ var canBeSelectedByHalf = (pizzaState === null || pizzaState === void 0 ? void 0 : (_pizzaState2 = pizzaState["option:".concat(option === null || option === void 0 ? void 0 : option.id)]) === null || _pizzaState2 === void 0 ? void 0 : _pizzaState2.value) === option.max - 0.5 && option.with_half_option;
75
75
  if (selectStatus && (option.limit_suboptions_by_max || isAlsea) && minMaxValidation && !canBeSelectedByHalf) {
76
76
  return;
77
77
  }
@@ -149,6 +149,7 @@ var ProductOptionSuboption = exports.ProductOptionSuboption = function ProductOp
149
149
  toggleSelect: toggleSelect
150
150
  })));
151
151
  };
152
+ exports.ProductOptionSuboption = ProductOptionSuboption;
152
153
  ProductOptionSuboption.propTypes = {
153
154
  /**
154
155
  * UI Component, this must be containt all graphic elements and use parent props