ordering-components-external 13.2.1 → 13.2.3

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 (28) hide show
  1. package/_bundles/{0.ordering-component.ede8de0eb9f9a2b40bec.js → 0.ordering-component.1cdfcec5953476752103.js} +1 -1
  2. package/_bundles/{1.ordering-component.ede8de0eb9f9a2b40bec.js → 1.ordering-component.1cdfcec5953476752103.js} +1 -1
  3. package/_bundles/{2.ordering-component.ede8de0eb9f9a2b40bec.js → 2.ordering-component.1cdfcec5953476752103.js} +1 -1
  4. package/_bundles/{4.ordering-component.ede8de0eb9f9a2b40bec.js → 4.ordering-component.1cdfcec5953476752103.js} +1 -1
  5. package/_bundles/{5.ordering-component.ede8de0eb9f9a2b40bec.js → 5.ordering-component.1cdfcec5953476752103.js} +1 -1
  6. package/_bundles/{6.ordering-component.ede8de0eb9f9a2b40bec.js → 6.ordering-component.1cdfcec5953476752103.js} +1 -1
  7. package/_bundles/7.ordering-component.1cdfcec5953476752103.js +2 -0
  8. package/_bundles/7.ordering-component.1cdfcec5953476752103.js.LICENSE.txt +1 -0
  9. package/_bundles/{8.ordering-component.ede8de0eb9f9a2b40bec.js → 8.ordering-component.1cdfcec5953476752103.js} +1 -1
  10. package/_bundles/ordering-component.1cdfcec5953476752103.js +2 -0
  11. package/_modules/components/BusinessAndProductList/index.js +6 -6
  12. package/_modules/components/BusinessList/index.js +1 -1
  13. package/_modules/components/OrderListGroups/index.js +1 -1
  14. package/_modules/components/OrdersDashboardComponents/BusinessProductsListing/index.js +6 -6
  15. package/_modules/components/OrdersDashboardComponents/UserFormDetails/index.js +2 -2
  16. package/_modules/components/ProductForm/index.js +10 -10
  17. package/_modules/components/ProductItemAccordion/index.js +3 -3
  18. package/_modules/components/StoreProductList/index.js +8 -8
  19. package/_modules/components/UserFormDetails/index.js +2 -2
  20. package/_modules/contexts/OrderContext/index.js +2 -2
  21. package/_modules/utils/index.js +2 -2
  22. package/package.json +1 -1
  23. package/src/components/BusinessList/index.js +1 -1
  24. package/src/components/OrderListGroups/index.js +1 -1
  25. package/_bundles/7.ordering-component.ede8de0eb9f9a2b40bec.js +0 -2
  26. package/_bundles/7.ordering-component.ede8de0eb9f9a2b40bec.js.LICENSE.txt +0 -53
  27. package/_bundles/ordering-component.ede8de0eb9f9a2b40bec.js +0 -2
  28. /package/_bundles/{ordering-component.ede8de0eb9f9a2b40bec.js.LICENSE.txt → ordering-component.1cdfcec5953476752103.js.LICENSE.txt} +0 -0
@@ -255,10 +255,10 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
255
255
  }));
256
256
  };
257
257
  var subCategoriesList = [];
258
- var iterateCategories = function iterateCategories(categories) {
258
+ var _iterateCategories = function iterateCategories(categories) {
259
259
  return (categories === null || categories === void 0 ? void 0 : categories.length) > 0 && (categories === null || categories === void 0 ? void 0 : categories.forEach(function (category) {
260
260
  subCategoriesList.push(category);
261
- iterateCategories(category.subcategories);
261
+ _iterateCategories(category.subcategories);
262
262
  }));
263
263
  };
264
264
 
@@ -343,7 +343,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
343
343
  loading: false
344
344
  });
345
345
  if (categorySelected.id !== 'featured' && categorySelected.id !== null) {
346
- iterateCategories(businessState === null || businessState === void 0 || (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.categories);
346
+ _iterateCategories(businessState === null || businessState === void 0 || (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.categories);
347
347
  categoriesList = (_ref3 = []).concat.apply(_ref3, _toConsumableArray(businessState === null || businessState === void 0 || (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.categories.map(function (category) {
348
348
  return category.children;
349
349
  })));
@@ -1031,14 +1031,14 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
1031
1031
  })
1032
1032
  }));
1033
1033
  };
1034
- var updateCategories = function updateCategories(categories, result) {
1034
+ var _updateCategories = function updateCategories(categories, result) {
1035
1035
  return categories.map(function (category) {
1036
1036
  if (category.id === result.id) {
1037
1037
  return _objectSpread(_objectSpread({}, category), result);
1038
1038
  }
1039
1039
  if (Array.isArray(category === null || category === void 0 ? void 0 : category.subcategories) && category.subcategories.length > 0) {
1040
1040
  return _objectSpread(_objectSpread({}, category), {}, {
1041
- subcategories: updateCategories(category.subcategories, result)
1041
+ subcategories: _updateCategories(category.subcategories, result)
1042
1042
  });
1043
1043
  }
1044
1044
  return category;
@@ -1120,7 +1120,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
1120
1120
  result = _yield$ordering$busin7.result;
1121
1121
  error = _yield$ordering$busin7.error;
1122
1122
  if (!error) {
1123
- updatedCategories = updateCategories(businessState === null || businessState === void 0 ? void 0 : businessState.business.categories, result);
1123
+ updatedCategories = _updateCategories(businessState === null || businessState === void 0 ? void 0 : businessState.business.categories, result);
1124
1124
  updatedBusiness = _objectSpread(_objectSpread({}, businessState === null || businessState === void 0 ? void 0 : businessState.business), {}, {
1125
1125
  categories: updatedCategories
1126
1126
  });
@@ -544,7 +544,7 @@ var BusinessList = exports.BusinessList = function BusinessList(props) {
544
544
  if (isDoordash || franchiseEnabled) {
545
545
  getBusinesses(true);
546
546
  }
547
- }, [JSON.stringify(orderState.options), franchiseEnabled, businessTypeSelected, searchValue, priceLevelSelected, timeLimitValue, orderByValue, maxDeliveryFee, businessId]);
547
+ }, [JSON.stringify(orderState.options), orderState.loading, franchiseEnabled, businessTypeSelected, searchValue, priceLevelSelected, timeLimitValue, orderByValue, maxDeliveryFee, businessId]);
548
548
  (0, _react.useLayoutEffect)(function () {
549
549
  if (isDoordash) {
550
550
  getBusinesses(true);
@@ -1380,7 +1380,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
1380
1380
  var _order$payment_events, _ordersGroup, _getStatusById;
1381
1381
  if (!(order !== null && order !== void 0 && order.products) || !(order !== null && order !== void 0 && order.summary) || typeof (order === null || order === void 0 ? void 0 : order.status) !== 'number' || !(order !== null && order !== void 0 && order.customer) || !(order !== null && order !== void 0 && order.business) || !(order !== null && order !== void 0 && order.paymethod) && !(order !== null && order !== void 0 && (_order$payment_events = order.payment_events) !== null && _order$payment_events !== void 0 && _order$payment_events.some(function (e) {
1382
1382
  return e.event === 'payment';
1383
- }))) {
1383
+ })) && (order === null || order === void 0 ? void 0 : order.total) !== 0) {
1384
1384
  return;
1385
1385
  }
1386
1386
  delete order.total;
@@ -696,7 +696,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
696
696
  isRemove = _ref8.isRemove,
697
697
  id = _ref8.id;
698
698
  var _categories = _toConsumableArray(businessState === null || businessState === void 0 || (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 ? void 0 : _businessState$busine9.categories);
699
- var replaceSameTaxes = function replaceSameTaxes(categories, tax) {
699
+ var _replaceSameTaxes = function replaceSameTaxes(categories, tax) {
700
700
  for (var i = 0; i < (categories === null || categories === void 0 ? void 0 : categories.length); i++) {
701
701
  var _category$subcategori2;
702
702
  var category = categories[i];
@@ -712,14 +712,14 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
712
712
  }
713
713
  }
714
714
  if (((_category$subcategori2 = category.subcategories) === null || _category$subcategori2 === void 0 ? void 0 : _category$subcategori2.length) > 0) {
715
- categories.subcategories = replaceSameTaxes(categories.subcategories, tax);
715
+ categories.subcategories = _replaceSameTaxes(categories.subcategories, tax);
716
716
  }
717
717
  }
718
718
  return categories;
719
719
  };
720
720
  setBusinessState(_objectSpread(_objectSpread({}, businessState), {}, {
721
721
  business: _objectSpread(_objectSpread({}, businessState.business), {}, {
722
- categories: replaceSameTaxes(_categories, tax)
722
+ categories: _replaceSameTaxes(_categories, tax)
723
723
  })
724
724
  }));
725
725
  };
@@ -728,7 +728,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
728
728
  var fee = _ref9.fee,
729
729
  isRemove = _ref9.isRemove;
730
730
  var _categories = _toConsumableArray(businessState === null || businessState === void 0 || (_businessState$busine10 = businessState.business) === null || _businessState$busine10 === void 0 ? void 0 : _businessState$busine10.categories);
731
- var replaceSameFees = function replaceSameFees(categories, fee) {
731
+ var _replaceSameFees = function replaceSameFees(categories, fee) {
732
732
  for (var i = 0; i < (categories === null || categories === void 0 ? void 0 : categories.length); i++) {
733
733
  var _category$subcategori3;
734
734
  var category = categories[i];
@@ -744,14 +744,14 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
744
744
  }
745
745
  }
746
746
  if (((_category$subcategori3 = category.subcategories) === null || _category$subcategori3 === void 0 ? void 0 : _category$subcategori3.length) > 0) {
747
- categories.subcategories = replaceSameFees(categories.subcategories, fee);
747
+ categories.subcategories = _replaceSameFees(categories.subcategories, fee);
748
748
  }
749
749
  }
750
750
  return categories;
751
751
  };
752
752
  setBusinessState(_objectSpread(_objectSpread({}, businessState), {}, {
753
753
  business: _objectSpread(_objectSpread({}, businessState.business), {}, {
754
- categories: replaceSameFees(_categories, fee)
754
+ categories: _replaceSameFees(_categories, fee)
755
755
  })
756
756
  }));
757
757
  };
@@ -20,8 +20,8 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
20
20
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
21
21
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
22
22
  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 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 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 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; }
23
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
24
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
23
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
24
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
25
25
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
26
26
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
27
27
  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; }
@@ -465,7 +465,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
465
465
  * @param {object} cart Current cart
466
466
  * @param {number} suboptionId Suboption id
467
467
  */
468
- var removeRelatedOptions = function removeRelatedOptions(productCart, suboptionId) {
468
+ var _removeRelatedOptions = function removeRelatedOptions(productCart, suboptionId) {
469
469
  product.product.extras.forEach(function (_extra) {
470
470
  _extra.options.forEach(function (_option) {
471
471
  if (_option.respect_to === suboptionId) {
@@ -473,7 +473,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
473
473
  var suboptions = (_productCart$options2 = productCart.options["id:".concat(_option.id)]) === null || _productCart$options2 === void 0 ? void 0 : _productCart$options2.suboptions;
474
474
  if (suboptions) {
475
475
  Object.keys(suboptions).map(function (suboptionKey) {
476
- return removeRelatedOptions(productCart, parseInt(suboptionKey.split(':')[1]));
476
+ return _removeRelatedOptions(productCart, parseInt(suboptionKey.split(':')[1]));
477
477
  });
478
478
  }
479
479
  if (productCart.options["id:".concat(_option.id)]) {
@@ -520,14 +520,14 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
520
520
  var newPizzaState = {};
521
521
  if (!state.selected) {
522
522
  delete newProductCart.options["id:".concat(option.id)].suboptions["id:".concat(suboption.id)];
523
- removeRelatedOptions(newProductCart, suboption.id);
523
+ _removeRelatedOptions(newProductCart, suboption.id);
524
524
  newPizzaState = handleVerifyPizzaState(state, suboption, option);
525
525
  } else {
526
526
  if (option.min === option.max && option.min === 1) {
527
527
  var suboptions = newProductCart.options["id:".concat(option.id)].suboptions;
528
528
  if (suboptions) {
529
529
  Object.keys(suboptions).map(function (suboptionKey) {
530
- return removeRelatedOptions(newProductCart, parseInt(suboptionKey.split(':')[1]));
530
+ return _removeRelatedOptions(newProductCart, parseInt(suboptionKey.split(':')[1]));
531
531
  });
532
532
  }
533
533
  if (newProductCart.options["id:".concat(option.id)]) {
@@ -628,7 +628,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
628
628
  try {
629
629
  for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
630
630
  var _suboption2 = _step8.value;
631
- if (checkSuboptionsSelected(_suboption2 === null || _suboption2 === void 0 ? void 0 : _suboption2.id, _selectedSuboptions, dependsSuboptions)) {
631
+ if (_checkSuboptionsSelected(_suboption2 === null || _suboption2 === void 0 ? void 0 : _suboption2.id, _selectedSuboptions, dependsSuboptions)) {
632
632
  preselectedOptions.push(_option4);
633
633
  preselectedSuboptions.push(_suboption2);
634
634
  }
@@ -715,13 +715,13 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
715
715
  }
716
716
  if (!(state !== null && state !== void 0 && state.selected)) {
717
717
  delete newProductCart.options["id:".concat(option.id)].suboptions["id:".concat(suboption.id)];
718
- removeRelatedOptions(newProductCart, suboption.id);
718
+ _removeRelatedOptions(newProductCart, suboption.id);
719
719
  } else {
720
720
  if (option.min === option.max && option.min === 1) {
721
721
  var suboptions = newProductCart.options["id:".concat(option.id)].suboptions;
722
722
  if (suboptions) {
723
723
  Object.keys(suboptions).map(function (suboptionKey) {
724
- return removeRelatedOptions(newProductCart, parseInt(suboptionKey.split(':')[1]));
724
+ return _removeRelatedOptions(newProductCart, parseInt(suboptionKey.split(':')[1]));
725
725
  });
726
726
  }
727
727
  if (newProductCart.options["id:".concat(option.id)]) {
@@ -1123,7 +1123,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1123
1123
  * Check if there is an option required with one suboption
1124
1124
  */
1125
1125
 
1126
- var checkSuboptionsSelected = function checkSuboptionsSelected(suboptionId, _selectedSuboptions, _dependsSuboptions) {
1126
+ var _checkSuboptionsSelected = function checkSuboptionsSelected(suboptionId, _selectedSuboptions, _dependsSuboptions) {
1127
1127
  var _dependsSuboptions2;
1128
1128
  var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
1129
1129
  if (count > 100) {
@@ -1136,7 +1136,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1136
1136
  if (respectTo === null) {
1137
1137
  return _selectedSuboptions["suboption:".concat(suboptionId)];
1138
1138
  }
1139
- return checkSuboptionsSelected(respectTo, _selectedSuboptions, _dependsSuboptions, count++);
1139
+ return _checkSuboptionsSelected(respectTo, _selectedSuboptions, _dependsSuboptions, count++);
1140
1140
  };
1141
1141
  (0, _react.useEffect)(function () {
1142
1142
  var _product$product11;
@@ -1205,7 +1205,7 @@ var ProductForm = exports.ProductForm = function ProductForm(props) {
1205
1205
  try {
1206
1206
  for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
1207
1207
  var _suboption3 = _step14.value;
1208
- if (checkSuboptionsSelected(_suboption3 === null || _suboption3 === void 0 ? void 0 : _suboption3.id, _selectedSuboptions, _dependsSuboptions)) {
1208
+ if (_checkSuboptionsSelected(_suboption3 === null || _suboption3 === void 0 ? void 0 : _suboption3.id, _selectedSuboptions, _dependsSuboptions)) {
1209
1209
  preselectedOptions.push(_option5);
1210
1210
  preselectedSuboptions.push(_suboption3);
1211
1211
  }
@@ -31,7 +31,7 @@ var ProductItemAccordion = exports.ProductItemAccordion = function ProductItemAc
31
31
  /**
32
32
  * Run productInfo to sort product options
33
33
  */
34
- var productInfo = function productInfo() {
34
+ var _productInfo = function productInfo() {
35
35
  var _product$options;
36
36
  var options = JSON.parse(JSON.stringify(Object.values((_product$options = product.options) !== null && _product$options !== void 0 ? _product$options : {})));
37
37
  var extraGroups = options.reduce(function (acc, option) {
@@ -69,7 +69,7 @@ var ProductItemAccordion = exports.ProductItemAccordion = function ProductItemAc
69
69
  option.suboptions = Object.values((_option$suboptions = option.suboptions) !== null && _option$suboptions !== void 0 ? _option$suboptions : {});
70
70
  return option;
71
71
  });
72
- return _objectSpread(_objectSpread({}, productInfo), {}, {
72
+ return _objectSpread(_objectSpread({}, _productInfo), {}, {
73
73
  ingredients: ingredients,
74
74
  options: options
75
75
  });
@@ -79,7 +79,7 @@ var ProductItemAccordion = exports.ProductItemAccordion = function ProductItemAc
79
79
  });
80
80
  };
81
81
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, UIComponent && /*#__PURE__*/_react.default.createElement(UIComponent, _extends({}, props, {
82
- productInfo: productInfo()
82
+ productInfo: _productInfo()
83
83
  })));
84
84
  };
85
85
  ProductItemAccordion.propTypes = {
@@ -222,14 +222,14 @@ var StoreProductList = exports.StoreProductList = function StoreProductList(prop
222
222
  return _ref2.apply(this, arguments);
223
223
  };
224
224
  }();
225
- var updateCategories = function updateCategories(categories, result) {
225
+ var _updateCategories = function updateCategories(categories, result) {
226
226
  return categories.map(function (category) {
227
227
  if (category.id === result.id) {
228
228
  return _objectSpread(_objectSpread({}, category), result);
229
229
  }
230
230
  if (Array.isArray(category === null || category === void 0 ? void 0 : category.subcategories) && category.subcategories.length > 0) {
231
231
  return _objectSpread(_objectSpread({}, category), {}, {
232
- subcategories: updateCategories(category.subcategories, result)
232
+ subcategories: _updateCategories(category.subcategories, result)
233
233
  });
234
234
  }
235
235
  return category;
@@ -311,7 +311,7 @@ var StoreProductList = exports.StoreProductList = function StoreProductList(prop
311
311
  result = _yield$ordering$busin4.result;
312
312
  error = _yield$ordering$busin4.error;
313
313
  if (!error) {
314
- updatedCategories = updateCategories(businessState === null || businessState === void 0 ? void 0 : businessState.business.categories, result);
314
+ updatedCategories = _updateCategories(businessState === null || businessState === void 0 ? void 0 : businessState.business.categories, result);
315
315
  updatedBusiness = _objectSpread(_objectSpread({}, businessState === null || businessState === void 0 ? void 0 : businessState.business), {}, {
316
316
  categories: updatedCategories
317
317
  });
@@ -338,13 +338,13 @@ var StoreProductList = exports.StoreProductList = function StoreProductList(prop
338
338
  return _ref4.apply(this, arguments);
339
339
  };
340
340
  }();
341
- var validCategory = function validCategory(cat, searchVal) {
341
+ var _validCategory = function validCategory(cat, searchVal) {
342
342
  var _cat$subcategories, _cat$name, _cat$subcategories2;
343
343
  if ((cat === null || cat === void 0 || (_cat$subcategories = cat.subcategories) === null || _cat$subcategories === void 0 ? void 0 : _cat$subcategories.length) === 0) return;
344
344
  if (cat !== null && cat !== void 0 && (_cat$name = cat.name) !== null && _cat$name !== void 0 && _cat$name.toLowerCase().includes(searchVal)) return true;
345
345
  var subcategories = cat === null || cat === void 0 || (_cat$subcategories2 = cat.subcategories) === null || _cat$subcategories2 === void 0 ? void 0 : _cat$subcategories2.filter(function (subCat) {
346
346
  var _subCat$name;
347
- return (subCat === null || subCat === void 0 || (_subCat$name = subCat.name) === null || _subCat$name === void 0 || (_subCat$name = _subCat$name.toLowerCase()) === null || _subCat$name === void 0 ? void 0 : _subCat$name.includes(searchVal)) || validCategory(subCat, searchVal);
347
+ return (subCat === null || subCat === void 0 || (_subCat$name = subCat.name) === null || _subCat$name === void 0 || (_subCat$name = _subCat$name.toLowerCase()) === null || _subCat$name === void 0 ? void 0 : _subCat$name.includes(searchVal)) || _validCategory(subCat, searchVal);
348
348
  });
349
349
  return (subcategories === null || subcategories === void 0 ? void 0 : subcategories.length) > 0;
350
350
  };
@@ -359,12 +359,12 @@ var StoreProductList = exports.StoreProductList = function StoreProductList(prop
359
359
  if ((businessState === null || businessState === void 0 || (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 || (_businessState$busine5 = _businessState$busine5.categories) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.length) > 0) {
360
360
  var _businessState$busine6;
361
361
  var lowerCaseSearchVal = categorySearch.toLowerCase();
362
- var _updateCategories = businessState === null || businessState === void 0 || (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 || (_businessState$busine6 = _businessState$busine6.categories) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.filter(function (cat) {
362
+ var updateCategories = businessState === null || businessState === void 0 || (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 || (_businessState$busine6 = _businessState$busine6.categories) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.filter(function (cat) {
363
363
  var _cat$name2;
364
364
  if (cat !== null && cat !== void 0 && (_cat$name2 = cat.name) !== null && _cat$name2 !== void 0 && (_cat$name2 = _cat$name2.toLowerCase()) !== null && _cat$name2 !== void 0 && _cat$name2.includes(lowerCaseSearchVal)) return true;
365
- return validCategory(cat, lowerCaseSearchVal);
365
+ return _validCategory(cat, lowerCaseSearchVal);
366
366
  });
367
- setCategories(_updateCategories);
367
+ setCategories(updateCategories);
368
368
  }
369
369
  }, [categorySearch, businessState === null || businessState === void 0 ? void 0 : businessState.business]);
370
370
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, UIComponent && /*#__PURE__*/_react.default.createElement(UIComponent, _extends({}, props, {
@@ -20,8 +20,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  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); }
21
21
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
22
22
  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 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 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 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; }
23
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
24
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
23
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
24
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
25
25
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
26
26
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
27
27
  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; }
@@ -23,8 +23,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
23
23
  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 && {}.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; }
24
24
  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); }
25
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 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 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 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; }
26
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
27
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
26
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
27
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
28
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
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; }
30
30
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -15,7 +15,7 @@ var randomString = exports.randomString = function randomString() {
15
15
  }
16
16
  return result;
17
17
  };
18
- var deepEqual = exports.deepEqual = function deepEqual(object1, object2) {
18
+ var _deepEqual = exports.deepEqual = function deepEqual(object1, object2) {
19
19
  var keys1 = Object.keys(object1);
20
20
  var keys2 = Object.keys(object2);
21
21
  if (keys1.length !== keys2.length) {
@@ -26,7 +26,7 @@ var deepEqual = exports.deepEqual = function deepEqual(object1, object2) {
26
26
  var val1 = object1[key];
27
27
  var val2 = object2[key];
28
28
  var areObjects = isObject(val1) && isObject(val2);
29
- if (areObjects && !deepEqual(val1, val2) || !areObjects && val1 !== val2) {
29
+ if (areObjects && !_deepEqual(val1, val2) || !areObjects && val1 !== val2) {
30
30
  return false;
31
31
  }
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-components-external",
3
- "version": "13.2.1",
3
+ "version": "13.2.3",
4
4
  "description": "Ordering Internal Dashboard",
5
5
  "main": "./_modules/index.js",
6
6
  "scripts": {
@@ -421,7 +421,7 @@ export const BusinessList = (props) => {
421
421
  if (isDoordash || franchiseEnabled) {
422
422
  getBusinesses(true)
423
423
  }
424
- }, [JSON.stringify(orderState.options), franchiseEnabled, businessTypeSelected, searchValue, priceLevelSelected, timeLimitValue, orderByValue, maxDeliveryFee, businessId])
424
+ }, [JSON.stringify(orderState.options), orderState.loading, franchiseEnabled, businessTypeSelected, searchValue, priceLevelSelected, timeLimitValue, orderByValue, maxDeliveryFee, businessId])
425
425
 
426
426
  useLayoutEffect(() => {
427
427
  if (isDoordash) {
@@ -959,7 +959,7 @@ export const OrderListGroups = (props) => {
959
959
  typeof order?.status !== 'number' ||
960
960
  !order?.customer ||
961
961
  !order?.business ||
962
- (!order?.paymethod && !order?.payment_events?.some(e => e.event === 'payment'))
962
+ ((!order?.paymethod && !order?.payment_events?.some(e => e.event === 'payment')) && order?.total !== 0)
963
963
  ) {
964
964
  return
965
965
  }
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7.ordering-component.ede8de0eb9f9a2b40bec.js.LICENSE.txt */
2
- (window.webpackJsonpOrderingComponents=window.webpackJsonpOrderingComponents||[]).push([[7],Array(237).concat([function(t,r,e){"use strict";var n,o=e(282),i=e(286),u=e(287);n=o()?u:i,t.exports=n},function(t,r,e){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},function(t,r,e){"use strict";var n,o=e(278),i=e(293),u=e(294);n=o()?i:u,t.exports=n},function(t,r,e){"use strict";var n,o=e(295),i=e(300),u=e(301);n=o()?i:u,t.exports=n},function(t,r,e){"use strict";var n=e(303);t.exports=n},,function(t,r,e){"use strict";var n=Number.POSITIVE_INFINITY;t.exports=n},function(t,r,e){"use strict";var n=e(260).NEGATIVE_INFINITY;t.exports=n},function(t,r,e){"use strict";t.exports=1023},function(t,r,e){"use strict";var n=e(265);t.exports=n},function(t,r,e){"use strict";var n=e(266);t.exports=n},function(t,r,e){"use strict";var n=e(249),o=e(277);n(o,"assign",e(250)),t.exports=o},function(t,r,e){"use strict";var n=e(271);t.exports=n},function(t,r,e){"use strict";var n=e(239),o=e(240),i=e(302),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r,e,n){return u[0]=t,r[n]=s[c],r[n+e]=s[a],r}},function(t,r,e){"use strict";var n=Object.prototype.toString;t.exports=n},function(t,r,e){"use strict";var n=e(323);t.exports=n},function(t,r,e){"use strict";var n=e(325);t.exports=n},function(t,r,e){"use strict";var n=e(329),o=e(247),i=e(246),u=e(330);t.exports=function(t,r,e,s){return i(t)||o(t)?(r[s]=t,r[s+e]=0,r):0!==t&&u(t)<n?(r[s]=4503599627370496*t,r[s+e]=-52,r):(r[s]=t,r[s+e]=0,r)}},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var o=e(256);Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return n(o).default}});var i=e(336);Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return n(i).default}});var u=e(337);Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return n(u).default}})},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(257)),i=n(e(238)),u=n(e(258)),s=e(31),c=e(335);function a(t,r){p(t,r.drop,(function(t,r){r.forEach((function(r){return delete t[r]}))}))}function f(t,r){p(t,r.allow,(function(t,r){Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]}))}))}function p(t,r,e){Object.entries(r).forEach((function(r){var n=r[0],o=r[1],u=function(t){"object"==typeof t&&null!==t&&e(t,o)},s=""===n?t:(0,i.default)(t,n);Array.isArray(s)?s.forEach(u):u(s)}))}function l(t,r){var e=JSON.parse(JSON.stringify(t));for(var n in r.map)if(r.map.hasOwnProperty(n)){var o=r.map[n],u=n.split("."),a=void 0;if(u.length>1?(u.pop(),a=(0,i.default)(e,u.join("."))):a=t,"object"==typeof a){if(o.copy){var f=(0,i.default)(e,o.copy);void 0!==f&&(0,s.dset)(t,n,f)}else if(o.move){var p=(0,i.default)(e,o.move);void 0!==p&&(0,s.dset)(t,n,p),(0,c.unset)(t,o.move)}else o.hasOwnProperty("set")&&(0,s.dset)(t,n,o.set);if(o.to_string){var l=(0,i.default)(t,n);if("string"==typeof l||"object"==typeof l&&null!==l)continue;void 0!==l?(0,s.dset)(t,n,JSON.stringify(l)):(0,s.dset)(t,n,"undefined")}}}}function v(t,r){return!(r.sample.percent<=0)&&(r.sample.percent>=1||(r.sample.path?function(t,r){var e=(0,i.default)(t,r.sample.path),n=(0,o.default)(JSON.stringify(e)),s=-64,c=[];y(n.slice(0,8),c);for(var a=0,f=0;f<64&&1!==c[f];f++)a++;if(0!==a){var p=[];y(n.slice(9,16),p),s-=a,c.splice(0,a),p.splice(64-a),c=c.concat(p)}return c[63]=0===c[63]?1:0,(0,u.default)(parseInt(c.join(""),2),s)<r.sample.percent}(t,r):(e=r.sample.percent,Math.random()<=e)));var e}function y(t,r){for(var e=0;e<8;e++)for(var n=t[e],o=128;o>=1;o/=2)n-o>=0?(n-=o,r.push(1)):r.push(0)}r.default=function(t,r){for(var e=t,n=0,o=r;n<o.length;n++){var i=o[n];switch(i.type){case"drop":return null;case"drop_properties":a(e,i.config);break;case"allow_properties":f(e,i.config);break;case"sample_event":if(v(e,i.config))break;return null;case"map_properties":l(e,i.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(i.type,'" is unsupported.'))}}return e}},function(t,r,e){"use strict";e.r(r);for(var n=[],o=0;o<64;)n[o]=0|4294967296*Math.sin(++o%Math.PI);r.default=function(t){var r,e,i,u=[r=1732584193,e=4023233417,~r,~e],s=[],c=unescape(encodeURI(t))+"€",a=c.length;for(t=--a/4+2|15,s[--t]=8*a;~a;)s[a>>2]|=c.charCodeAt(a)<<8*a--;for(o=c=0;o<t;o+=16){for(a=u;c<64;a=[i=a[3],r+((i=a[0]+[r&e|~r&i,i&r|~i&e,r^e^i,e^(r|~i)][a=c>>4]+n[c]+~~s[o|15&[c,5*c+1,3*c+5,7*c][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+c++%4])|i>>>-a),r,e])r=0|a[1],e=a[2];for(c=4;c;)u[--c]+=a[c]}for(t="";c<32;)t+=(u[c>>3]>>4*(1^c++)&15).toString(16);return t}},function(t,r,e){"use strict";var n=e(259);t.exports=n},function(t,r,e){"use strict";var n=e(243),o=e(244),i=e(245),u=e(262),s=e(263),c=e(264),a=e(246),f=e(247),p=e(267),l=e(327),v=e(332),y=e(248),h=e(253),d=[0,0],x=[0,0];t.exports=function(t,r){var e,b;return 0===t||a(t)||f(t)?t:(l(d,t),r+=d[1],(r+=v(t=d[0]))<c?p(0,t):r>u?t<0?o:n:(r<=s?(r+=52,b=2220446049250313e-31):b=1,y(x,t),e=x[0],e&=2148532223,b*h(e|=r+i<<20,x[1])))}},function(t,r,e){"use strict";var n=e(261);t.exports=n},function(t,r,e){"use strict";t.exports=Number},function(t,r,e){"use strict";t.exports=1023},function(t,r,e){"use strict";t.exports=-1023},function(t,r,e){"use strict";t.exports=-1074},function(t,r,e){"use strict";t.exports=function(t){return t!=t}},function(t,r,e){"use strict";var n=e(243),o=e(244);t.exports=function(t){return t===n||t===o}},function(t,r,e){"use strict";var n=e(268);t.exports=n},function(t,r,e){"use strict";var n=e(269),o=e(270),i=e(248),u=e(252),s=e(253),c=[0,0];t.exports=function(t,r){var e,a;return i.assign(t,c,1,0),e=c[0],e&=o,a=u(r),s(e|=a&=n,c[1])}},function(t,r,e){"use strict";t.exports=2147483648},function(t,r,e){"use strict";t.exports=2147483647},function(t,r,e){"use strict";var n=e(272);t.exports=function(t,r,e){n(t,r,{configurable:!1,enumerable:!1,writable:!1,value:e})}},function(t,r,e){"use strict";var n,o=e(273),i=e(275),u=e(276);n=o()?i:u,t.exports=n},function(t,r,e){"use strict";var n=e(274);t.exports=function(){try{return n({},"x",{}),!0}catch(t){return!1}}},function(t,r,e){"use strict";var n="function"==typeof Object.defineProperty?Object.defineProperty:null;t.exports=n},function(t,r,e){"use strict";var n=Object.defineProperty;t.exports=n},function(t,r,e){"use strict";var n=Object.prototype,o=n.toString,i=n.__defineGetter__,u=n.__defineSetter__,s=n.__lookupGetter__,c=n.__lookupSetter__;t.exports=function(t,r,e){var a,f,p,l;if("object"!=typeof t||null===t||"[object Array]"===o.call(t))throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if("object"!=typeof e||null===e||"[object Array]"===o.call(e))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+e+"`.");if((f="value"in e)&&(s.call(t,r)||c.call(t,r)?(a=t.__proto__,t.__proto__=n,delete t[r],t[r]=e.value,t.__proto__=a):t[r]=e.value),p="get"in e,l="set"in e,f&&(p||l))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return p&&i&&i.call(t,r,e.get),l&&u&&u.call(t,r,e.set),t}},function(t,r,e){"use strict";var n=e(250);t.exports=function(t){return n(t,[0,0],1,0)}},function(t,r,e){"use strict";var n=e(279);t.exports=n},function(t,r,e){"use strict";var n=e(280),o=e(291),i=e(292);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},function(t,r,e){"use strict";var n=e(281);t.exports=n},function(t,r,e){"use strict";var n=e(237),o="function"==typeof Uint32Array;t.exports=function(t){return o&&t instanceof Uint32Array||"[object Uint32Array]"===n(t)}},function(t,r,e){"use strict";var n=e(283);t.exports=n},function(t,r,e){"use strict";var n=e(284)();t.exports=function(){return n&&"symbol"==typeof Symbol.toStringTag}},function(t,r,e){"use strict";var n=e(285);t.exports=n},function(t,r,e){"use strict";t.exports=function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}},function(t,r,e){"use strict";var n=e(251);t.exports=function(t){return n.call(t)}},function(t,r,e){"use strict";var n=e(288),o=e(290),i=e(251);t.exports=function(t){var r,e,u;if(null==t)return i.call(t);e=t[o],r=n(t,o);try{t[o]=void 0}catch(r){return i.call(t)}return u=i.call(t),r?t[o]=e:delete t[o],u}},function(t,r,e){"use strict";var n=e(289);t.exports=n},function(t,r,e){"use strict";var n=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&n.call(t,r)}},function(t,r,e){"use strict";var n="function"==typeof Symbol?Symbol.toStringTag:"";t.exports=n},function(t,r,e){"use strict";t.exports=4294967295},function(t,r,e){"use strict";var n="function"==typeof Uint32Array?Uint32Array:null;t.exports=n},function(t,r,e){"use strict";var n="function"==typeof Uint32Array?Uint32Array:void 0;t.exports=n},function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},function(t,r,e){"use strict";var n=e(296);t.exports=n},function(t,r,e){"use strict";var n=e(297),o=e(299);t.exports=function(){var t,r;if("function"!=typeof o)return!1;try{r=new o([1,3.14,-3.14,NaN]),t=n(r)&&1===r[0]&&3.14===r[1]&&-3.14===r[2]&&r[3]!=r[3]}catch(r){t=!1}return t}},function(t,r,e){"use strict";var n=e(298);t.exports=n},function(t,r,e){"use strict";var n=e(237),o="function"==typeof Float64Array;t.exports=function(t){return o&&t instanceof Float64Array||"[object Float64Array]"===n(t)}},function(t,r,e){"use strict";var n="function"==typeof Float64Array?Float64Array:null;t.exports=n},function(t,r,e){"use strict";var n="function"==typeof Float64Array?Float64Array:void 0;t.exports=n},function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},function(t,r,e){"use strict";var n,o,i;!0===e(241)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},function(t,r,e){"use strict";var n,o,i=e(304);(o=new i.uint16(1))[0]=4660,n=52===new i.uint8(o.buffer)[0],t.exports=n},function(t,r,e){"use strict";var n=e(305),o={uint16:e(314),uint8:n};t.exports=o},function(t,r,e){"use strict";var n,o=e(306),i=e(312),u=e(313);n=o()?i:u,t.exports=n},function(t,r,e){"use strict";var n=e(307);t.exports=n},function(t,r,e){"use strict";var n=e(308),o=e(310),i=e(311);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},function(t,r,e){"use strict";var n=e(309);t.exports=n},function(t,r,e){"use strict";var n=e(237),o="function"==typeof Uint8Array;t.exports=function(t){return o&&t instanceof Uint8Array||"[object Uint8Array]"===n(t)}},function(t,r,e){"use strict";t.exports=255},function(t,r,e){"use strict";var n="function"==typeof Uint8Array?Uint8Array:null;t.exports=n},function(t,r,e){"use strict";var n="function"==typeof Uint8Array?Uint8Array:void 0;t.exports=n},function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},function(t,r,e){"use strict";var n,o=e(315),i=e(321),u=e(322);n=o()?i:u,t.exports=n},function(t,r,e){"use strict";var n=e(316);t.exports=n},function(t,r,e){"use strict";var n=e(317),o=e(319),i=e(320);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},function(t,r,e){"use strict";var n=e(318);t.exports=n},function(t,r,e){"use strict";var n=e(237),o="function"==typeof Uint16Array;t.exports=function(t){return o&&t instanceof Uint16Array||"[object Uint16Array]"===n(t)}},function(t,r,e){"use strict";t.exports=65535},function(t,r,e){"use strict";var n="function"==typeof Uint16Array?Uint16Array:null;t.exports=n},function(t,r,e){"use strict";var n="function"==typeof Uint16Array?Uint16Array:void 0;t.exports=n},function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},function(t,r,e){"use strict";var n=e(239),o=e(240),i=e(324),u=new o(1),s=new n(u.buffer);t.exports=function(t){return u[0]=t,s[i]}},function(t,r,e){"use strict";var n;n=!0===e(241)?1:0,t.exports=n},function(t,r,e){"use strict";var n=e(239),o=e(240),i=e(326),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r){return s[c]=t,s[a]=r,u[0]}},function(t,r,e){"use strict";var n,o,i;!0===e(241)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},function(t,r,e){"use strict";var n=e(249),o=e(328);n(o,"assign",e(254)),t.exports=o},function(t,r,e){"use strict";var n=e(254);t.exports=function(t){return n(t,[0,0],1,0)}},function(t,r,e){"use strict";t.exports=22250738585072014e-324},function(t,r,e){"use strict";var n=e(331);t.exports=n},function(t,r,e){"use strict";t.exports=function(t){return Math.abs(t)}},function(t,r,e){"use strict";var n=e(333);t.exports=n},function(t,r,e){"use strict";var n=e(252),o=e(334),i=e(245);t.exports=function(t){var r=n(t);return(r=(r&o)>>>20)-i|0}},function(t,r,e){"use strict";t.exports=2146435072},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.unset=void 0;var o=n(e(238));r.unset=function(t,r){if((0,o.default)(t,r)){for(var e=r.split("."),n=e.pop();e.length&&"\\"===e[e.length-1].slice(-1);)n=e.pop().slice(0,-1)+"."+n;for(;e.length;)t=t[r=e.shift()];return delete t[n]}return!0}},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(238));function i(t,r){if(!Array.isArray(t))return!0===u(t,r);var e=t[0];switch(e){case"!":return!i(t[1],r);case"or":for(var n=1;n<t.length;n++)if(i(t[n],r))return!0;return!1;case"and":for(n=1;n<t.length;n++)if(!i(t[n],r))return!1;return!0;case"=":case"!=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));"object"==typeof t&&"object"==typeof r&&(t=JSON.stringify(t),r=JSON.stringify(r));switch(e){case"=":return t===r;case"!=":return t!==r;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"<=":case"<":case">":case">=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));if("number"!=typeof t||"number"!=typeof r)return!1;switch(e){case"<=":return t<=r;case">=":return t>=r;case"<":return t<r;case">":return t>r;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"in":return function(t,r,e){return void 0!==r.find((function(r){return u(r,e)===t}))}(u(t[1],r),u(t[2],r),r);case"contains":return function(t,r){if("string"!=typeof t||"string"!=typeof r)return!1;return-1!==t.indexOf(r)}(u(t[1],r),u(t[2],r));case"match":return function(t,r){if("string"!=typeof t||"string"!=typeof r)return!1;return function(t,r){var e,n;t:for(;t.length>0;){var o=void 0,i=void 0;if(o=(e=c(t)).star,i=e.chunk,t=e.pattern,o&&""===i)return!0;var u=a(i,r),s=u.t,f=u.ok,p=u.err;if(p)return!1;if(!f||!(0===s.length||t.length>0)){if(o)for(var l=0;l<r.length;l++){if(s=(n=a(i,r.slice(l+1))).t,f=n.ok,p=n.err,f){if(0===t.length&&s.length>0)continue;r=s;continue t}if(p)return!1}return!1}r=s}return 0===r.length}(r,t)}(u(t[1],r),u(t[2],r));case"lowercase":var o=u(t[1],r);return"string"!=typeof o?null:o.toLowerCase();case"typeof":return typeof u(t[1],r);case"length":return function(t){if(null===t)return 0;if(!Array.isArray(t)&&"string"!=typeof t)return NaN;return t.length}(u(t[1],r));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function u(t,r){return Array.isArray(t)?t:"object"==typeof t?t.value:(0,o.default)(r,t)}function s(t){return!!Array.isArray(t)&&(("lowercase"===t[0]||"length"===t[0]||"typeof"===t[0])&&2===t.length||("contains"===t[0]||"match"===t[0])&&3===t.length)}function c(t){for(var r={star:!1,chunk:"",pattern:""};t.length>0&&"*"===t[0];)t=t.slice(1),r.star=!0;var e,n=!1;t:for(e=0;e<t.length;e++)switch(t[e]){case"\\":e+1<t.length&&e++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break t}return r.chunk=t.slice(0,e),r.pattern=t.slice(e),r}function a(t,r){for(var e,n,o={t:"",ok:!1,err:!1};t.length>0;){if(0===r.length)return o;switch(t[0]){case"[":var i=r[0];r=r.slice(1);var u=!0;(t=t.slice(1)).length>0&&"^"===t[0]&&(u=!1,t=t.slice(1));for(var s=!1,c=0;;){if(t.length>0&&"]"===t[0]&&c>0){t=t.slice(1);break}var a,p="";if(a=(e=f(t)).char,t=e.newChunk,e.err)return o;if(p=a,"-"===t[0]&&(p=(n=f(t.slice(1))).char,t=n.newChunk,n.err))return o;a<=i&&i<=p&&(s=!0),c++}if(s!==u)return o;break;case"?":r=r.slice(1),t=t.slice(1);break;case"\\":if(0===(t=t.slice(1)).length)return o.err=!0,o;default:if(t[0]!==r[0])return o;r=r.slice(1),t=t.slice(1)}}return o.t=r,o.ok=!0,o.err=!1,o}function f(t){var r={char:"",newChunk:"",err:!1};return 0===t.length||"-"===t[0]||"]"===t[0]||"\\"===t[0]&&0===(t=t.slice(1)).length?(r.err=!0,r):(r.char=t[0],r.newChunk=t.slice(1),0===r.newChunk.length&&(r.err=!0),r)}r.default=function(t,r){if(!r)throw new Error("No matcher supplied!");switch(r.type){case"all":return!0;case"fql":return function(t,r){if(!t)return!1;try{t=JSON.parse(t)}catch(r){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(r))}var e=i(t,r);if("boolean"!=typeof e)return!1;return e}(r.ir,t);default:throw new Error("Matcher of type ".concat(r.type," unsupported."))}}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.rules=[],this.rules=t||[]}return t.prototype.getRulesByDestinationName=function(t){for(var r=[],e=0,n=this.rules;e<n.length;e++){var o=n[e];o.destinationName!==t&&void 0!==o.destinationName||r.push(o)}return r},t}();r.default=n},,,function(t,r,e){"use strict";e.r(r),e.d(r,"tsubMiddleware",(function(){return o}));var n=e(255),o=function(t){return function(r){var e=r.payload,o=r.integration,i=r.next;new n.Store(t).getRulesByDestinationName(o).forEach((function(t){for(var r=t.matchers,o=t.transformers,u=0;u<r.length;u++)if(n.matches(e.obj,r[u])&&(e.obj=n.transform(e.obj,o[u]),null===e.obj))return i(null)})),i(e)}}}])]);
@@ -1,53 +0,0 @@
1
- /**
2
- * @license Apache-2.0
3
- *
4
- * Copyright (c) 2018 The Stdlib Authors.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- /**
20
- * @license Apache-2.0
21
- *
22
- * Copyright (c) 2021 The Stdlib Authors.
23
- *
24
- * Licensed under the Apache License, Version 2.0 (the "License");
25
- * you may not use this file except in compliance with the License.
26
- * You may obtain a copy of the License at
27
- *
28
- * http://www.apache.org/licenses/LICENSE-2.0
29
- *
30
- * Unless required by applicable law or agreed to in writing, software
31
- * distributed under the License is distributed on an "AS IS" BASIS,
32
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33
- * See the License for the specific language governing permissions and
34
- * limitations under the License.
35
- */
36
-
37
- /**
38
- * @license Apache-2.0
39
- *
40
- * Copyright (c) 2022 The Stdlib Authors.
41
- *
42
- * Licensed under the Apache License, Version 2.0 (the "License");
43
- * you may not use this file except in compliance with the License.
44
- * You may obtain a copy of the License at
45
- *
46
- * http://www.apache.org/licenses/LICENSE-2.0
47
- *
48
- * Unless required by applicable law or agreed to in writing, software
49
- * distributed under the License is distributed on an "AS IS" BASIS,
50
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
51
- * See the License for the specific language governing permissions and
52
- * limitations under the License.
53
- */