merchi_cart 0.0.4-c → 0.0.4-e

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 (196) hide show
  1. package/lib/Cart.js +20 -25
  2. package/lib/CartAlert.js +14 -12
  3. package/lib/CartHeader.js +9 -9
  4. package/lib/CartProvider.js +157 -226
  5. package/lib/CartTotals.js +44 -44
  6. package/lib/MerchiSDK/constants/auto_assign_production_on_actions.js +1 -1
  7. package/lib/MerchiSDK/constants/call_to_actions.js +1 -1
  8. package/lib/MerchiSDK/constants/discount_types.js +1 -1
  9. package/lib/MerchiSDK/constants/domain_types.js +1 -1
  10. package/lib/MerchiSDK/constants/errors.js +1 -1
  11. package/lib/MerchiSDK/constants/event_types.js +1 -1
  12. package/lib/MerchiSDK/constants/field_types.js +1 -1
  13. package/lib/MerchiSDK/constants/input_types.js +1 -1
  14. package/lib/MerchiSDK/constants/inventory_statuses.js +1 -1
  15. package/lib/MerchiSDK/constants/invoice_types.js +1 -1
  16. package/lib/MerchiSDK/constants/item_types.js +1 -1
  17. package/lib/MerchiSDK/constants/job/drafting_status.js +1 -1
  18. package/lib/MerchiSDK/constants/job/payment_status.js +1 -1
  19. package/lib/MerchiSDK/constants/job/production_status.js +1 -1
  20. package/lib/MerchiSDK/constants/job/shipment_status.js +1 -1
  21. package/lib/MerchiSDK/constants/job/supply_chain_request_status.js +1 -1
  22. package/lib/MerchiSDK/constants/job_priorities.js +1 -1
  23. package/lib/MerchiSDK/constants/job_status.js +5 -5
  24. package/lib/MerchiSDK/constants/job_types.js +1 -1
  25. package/lib/MerchiSDK/constants/notification_sections.js +1 -1
  26. package/lib/MerchiSDK/constants/notification_types.js +1 -1
  27. package/lib/MerchiSDK/constants/notification_urgencies.js +1 -1
  28. package/lib/MerchiSDK/constants/payment_types.js +1 -1
  29. package/lib/MerchiSDK/constants/platform.js +5 -5
  30. package/lib/MerchiSDK/constants/product_types.js +1 -1
  31. package/lib/MerchiSDK/constants/rights.js +1 -1
  32. package/lib/MerchiSDK/constants/robots_meta_directives.js +1 -1
  33. package/lib/MerchiSDK/constants/roles.js +8 -14
  34. package/lib/MerchiSDK/constants/shipment_companies.js +1 -1
  35. package/lib/MerchiSDK/constants/shipment_services.js +1 -1
  36. package/lib/MerchiSDK/constants/system_roles.js +1 -1
  37. package/lib/MerchiSDK/constants/theme_foundations.js +1 -1
  38. package/lib/MerchiSDK/constants/theme_status.js +1 -1
  39. package/lib/MerchiSDK/constants/user_types.js +1 -1
  40. package/lib/MerchiSDK/constants/white_label_accessibilities.js +1 -1
  41. package/lib/MerchiSDK/cookie.js +3 -3
  42. package/lib/MerchiSDK/entities/address.js +22 -43
  43. package/lib/MerchiSDK/entities/assignment.js +28 -49
  44. package/lib/MerchiSDK/entities/automatic_payment_relationship.js +11 -32
  45. package/lib/MerchiSDK/entities/backup.js +6 -27
  46. package/lib/MerchiSDK/entities/bank.js +17 -38
  47. package/lib/MerchiSDK/entities/cart.js +31 -64
  48. package/lib/MerchiSDK/entities/cart_item.js +30 -51
  49. package/lib/MerchiSDK/entities/cart_shipment_group.js +9 -30
  50. package/lib/MerchiSDK/entities/cart_shipment_quote.js +13 -34
  51. package/lib/MerchiSDK/entities/category.js +14 -35
  52. package/lib/MerchiSDK/entities/company.js +88 -109
  53. package/lib/MerchiSDK/entities/company_invitation.js +13 -34
  54. package/lib/MerchiSDK/entities/component.js +33 -54
  55. package/lib/MerchiSDK/entities/component_tag.js +7 -28
  56. package/lib/MerchiSDK/entities/component_version.js +12 -33
  57. package/lib/MerchiSDK/entities/country_tax.js +21 -45
  58. package/lib/MerchiSDK/entities/discount.js +13 -34
  59. package/lib/MerchiSDK/entities/discount_group.js +11 -32
  60. package/lib/MerchiSDK/entities/domain.js +80 -101
  61. package/lib/MerchiSDK/entities/domain_invitation.js +14 -35
  62. package/lib/MerchiSDK/entities/domain_tag.js +15 -36
  63. package/lib/MerchiSDK/entities/draft.js +32 -65
  64. package/lib/MerchiSDK/entities/draft_comment.js +19 -40
  65. package/lib/MerchiSDK/entities/draft_template.js +15 -36
  66. package/lib/MerchiSDK/entities/email_address.js +10 -31
  67. package/lib/MerchiSDK/entities/email_counter.js +8 -29
  68. package/lib/MerchiSDK/entities/enrolled_domain.js +20 -44
  69. package/lib/MerchiSDK/entities/exchange_rate.js +9 -30
  70. package/lib/MerchiSDK/entities/file.js +59 -80
  71. package/lib/MerchiSDK/entities/internal_tag.js +17 -38
  72. package/lib/MerchiSDK/entities/inventory.js +19 -42
  73. package/lib/MerchiSDK/entities/inventory_unit_variation.js +12 -33
  74. package/lib/MerchiSDK/entities/invoice.js +57 -78
  75. package/lib/MerchiSDK/entities/item.js +18 -39
  76. package/lib/MerchiSDK/entities/job.js +117 -140
  77. package/lib/MerchiSDK/entities/job_comment.js +18 -39
  78. package/lib/MerchiSDK/entities/matching_inventory.js +11 -32
  79. package/lib/MerchiSDK/entities/menu.js +12 -33
  80. package/lib/MerchiSDK/entities/menu_item.js +12 -33
  81. package/lib/MerchiSDK/entities/notification.js +32 -53
  82. package/lib/MerchiSDK/entities/page.js +13 -34
  83. package/lib/MerchiSDK/entities/payment.js +25 -46
  84. package/lib/MerchiSDK/entities/payment_device.js +12 -33
  85. package/lib/MerchiSDK/entities/phone_number.js +14 -35
  86. package/lib/MerchiSDK/entities/product.js +153 -188
  87. package/lib/MerchiSDK/entities/production_comment.js +18 -39
  88. package/lib/MerchiSDK/entities/quote.js +70 -106
  89. package/lib/MerchiSDK/entities/quote_item.js +28 -49
  90. package/lib/MerchiSDK/entities/seo_domain_page.js +13 -34
  91. package/lib/MerchiSDK/entities/session.js +11 -32
  92. package/lib/MerchiSDK/entities/shipment.js +62 -83
  93. package/lib/MerchiSDK/entities/shipment_item.js +7 -28
  94. package/lib/MerchiSDK/entities/shipment_item_fulfillment.js +7 -28
  95. package/lib/MerchiSDK/entities/shipment_method.js +21 -42
  96. package/lib/MerchiSDK/entities/shipment_method_variation.js +15 -36
  97. package/lib/MerchiSDK/entities/short_url.js +14 -35
  98. package/lib/MerchiSDK/entities/subscription_plan.js +26 -47
  99. package/lib/MerchiSDK/entities/supply_domain.js +11 -32
  100. package/lib/MerchiSDK/entities/system_role.js +7 -28
  101. package/lib/MerchiSDK/entities/theme.js +89 -110
  102. package/lib/MerchiSDK/entities/theme_css_setting.js +10 -31
  103. package/lib/MerchiSDK/entities/user.js +151 -213
  104. package/lib/MerchiSDK/entities/user_company.js +11 -32
  105. package/lib/MerchiSDK/entities/variation.js +21 -42
  106. package/lib/MerchiSDK/entities/variation_field.js +61 -94
  107. package/lib/MerchiSDK/entities/variation_fields_option.js +40 -61
  108. package/lib/MerchiSDK/entities/variation_option.js +20 -41
  109. package/lib/MerchiSDK/entities/variations_group.js +15 -36
  110. package/lib/MerchiSDK/entity.js +534 -624
  111. package/lib/MerchiSDK/merchi.js +42 -53
  112. package/lib/MerchiSDK/request.js +47 -75
  113. package/lib/MerchiSDK/test_util.js +6 -10
  114. package/lib/MerchiSDK/toasts.js +12 -13
  115. package/lib/MerchiSDK/util/float.js +7 -19
  116. package/lib/MerchiSDK/util/query_string.js +4 -4
  117. package/lib/MerchiSDK/util/validation.js +2 -3
  118. package/lib/MerchiSDK/uuid.js +2 -2
  119. package/lib/buttons/Button.js +15 -15
  120. package/lib/buttons/ButtonBack.js +22 -25
  121. package/lib/buttons/ButtonClearCart.js +8 -9
  122. package/lib/buttons/ButtonInvoiceDownload.js +26 -61
  123. package/lib/buttons/ButtonNext.js +20 -25
  124. package/lib/buttons/ButtonNextDynamic.js +16 -18
  125. package/lib/buttons/ButtonPay.js +17 -13
  126. package/lib/buttons/ButtonShipmentTabNext.js +12 -13
  127. package/lib/buttons/index.js +13 -13
  128. package/lib/components/Alert.js +14 -12
  129. package/lib/components/CartBody.js +10 -8
  130. package/lib/components/CartClient.js +22 -17
  131. package/lib/components/CartFooter.js +9 -7
  132. package/lib/components/CartItemRow.js +58 -48
  133. package/lib/components/CartPaymentSettingsInvalid.js +3 -4
  134. package/lib/components/CartShipment.js +18 -13
  135. package/lib/components/CartTabContent.js +9 -7
  136. package/lib/components/CartTabPanel.js +15 -13
  137. package/lib/components/CartTableContainer.js +9 -7
  138. package/lib/components/Collapse.js +14 -22
  139. package/lib/components/LoadingTemplate.js +10 -7
  140. package/lib/components/NoCartItems.js +9 -9
  141. package/lib/components/ShipmentGroupCard.js +69 -52
  142. package/lib/components/Table.js +7 -4
  143. package/lib/components/Title.js +11 -9
  144. package/lib/components/containers.js +12 -11
  145. package/lib/components/index.js +30 -31
  146. package/lib/forms/FormNewCustomer.js +48 -76
  147. package/lib/forms/FormReturningCustomer.js +38 -58
  148. package/lib/forms/FormShipmentAddressAndNotes.js +42 -47
  149. package/lib/forms/FormSquarePayment.js +8 -9
  150. package/lib/forms/FormStripePayment.js +8 -9
  151. package/lib/forms/InputAcceptUserTermsAndConditions.js +12 -11
  152. package/lib/forms/InputError.js +11 -9
  153. package/lib/forms/InputSelect.js +34 -36
  154. package/lib/forms/InputText.js +38 -42
  155. package/lib/forms/InputsAddress.js +59 -69
  156. package/lib/index.js +6 -6
  157. package/lib/panels/PanelCartItems.js +14 -17
  158. package/lib/panels/PanelCartShipment.js +10 -13
  159. package/lib/panels/PanelClearCart.js +8 -7
  160. package/lib/panels/PanelClientCheckout.js +18 -17
  161. package/lib/panels/PanelEditCartItem.js +17 -22
  162. package/lib/panels/PanelPaymentSuccess.js +18 -16
  163. package/lib/panels/index.js +13 -13
  164. package/lib/slices/sliceCart.js +53 -56
  165. package/lib/slices/sliceCartAlert.js +11 -15
  166. package/lib/slices/sliceCartItem.js +11 -10
  167. package/lib/slices/sliceCartPayment.js +15 -16
  168. package/lib/slices/sliceCartShipment.js +23 -26
  169. package/lib/slices/sliceFormReturningCustomer.js +7 -7
  170. package/lib/slices/sliceNewCustomerForm.js +6 -6
  171. package/lib/square/SquareCard.js +16 -18
  172. package/lib/square/actions.js +24 -46
  173. package/lib/square/slices/reducersSquare.js +6 -6
  174. package/lib/square/slices/sliceSquareAlerts.js +10 -16
  175. package/lib/square/slices/sliceSquareForm.js +10 -9
  176. package/lib/store.js +359 -565
  177. package/lib/stripe/StripeCardFields.js +43 -44
  178. package/lib/stripe/StripeCardForm.js +51 -109
  179. package/lib/stripe/StripePaymentButtons.js +35 -46
  180. package/lib/stripe/actions.js +75 -196
  181. package/lib/stripe/slices/sliceStripeAlerts.js +10 -16
  182. package/lib/stripe/slices/sliceStripeCardForm.js +6 -6
  183. package/lib/stripe/slices/sliceStripeForm.js +18 -17
  184. package/lib/stripe/utils.js +1 -1
  185. package/lib/tabs/CartNav.js +15 -24
  186. package/lib/tabs/NavTab.js +20 -19
  187. package/lib/utilities/address.js +32 -30
  188. package/lib/utilities/cart.js +33 -50
  189. package/lib/utilities/cookie.js +46 -129
  190. package/lib/utilities/currency.js +29 -25
  191. package/lib/utilities/helpers.js +41 -60
  192. package/lib/utilities/invoice.js +45 -114
  193. package/lib/utilities/product.js +5 -3
  194. package/lib/utilities/user.js +24 -62
  195. package/lib/utilities/variations.js +16 -14
  196. package/package.json +1 -1
package/lib/CartTotals.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
  var _reactRedux = require("react-redux");
8
8
  var _currency = require("./utilities/currency");
9
9
  var _cart = require("./utilities/cart");
@@ -12,30 +12,26 @@ var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
12
12
  var _components = require("./components");
13
13
  var _CartProvider = require("./CartProvider");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- 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); }
16
- 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; }
17
- 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; }
18
- 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; }
19
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20
- 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); }
21
15
  function CartTotal(_ref) {
22
- var attribute = _ref.attribute;
23
- var _useSelector = (0, _reactRedux.useSelector)(function (s) {
24
- return s.stateCart;
25
- }),
26
- cart = _useSelector.cart,
27
- fetchingCart = _useSelector.fetchingCart,
28
- loading = _useSelector.loading;
29
- var _useSelector2 = (0, _reactRedux.useSelector)(function (s) {
30
- return s.stateCartShipment;
31
- }),
32
- fetchingShipmentGroups = _useSelector2.fetchingShipmentGroups,
33
- fetchingShipmentQuote = _useSelector2.fetchingShipmentQuote;
34
- var domain = cart.domain;
35
- var company = domain ? domain.company : null;
36
- var currency = company ? company.defaultCurrency : 'AUD';
37
- var isLoading = fetchingCart || fetchingShipmentGroups || fetchingShipmentQuote || loading;
38
- var money = cart[attribute] ? cart[attribute] : 0;
16
+ let {
17
+ attribute
18
+ } = _ref;
19
+ const {
20
+ cart,
21
+ fetchingCart,
22
+ loading
23
+ } = (0, _reactRedux.useSelector)(s => s.stateCart);
24
+ const {
25
+ fetchingShipmentGroups,
26
+ fetchingShipmentQuote
27
+ } = (0, _reactRedux.useSelector)(s => s.stateCartShipment);
28
+ const {
29
+ domain
30
+ } = cart;
31
+ const company = domain ? domain.company : null;
32
+ const currency = company ? company.defaultCurrency : 'AUD';
33
+ const isLoading = fetchingCart || fetchingShipmentGroups || fetchingShipmentQuote || loading;
34
+ const money = cart[attribute] ? cart[attribute] : 0;
39
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
40
36
  style: {
41
37
  paddingRight: 8
@@ -43,17 +39,20 @@ function CartTotal(_ref) {
43
39
  children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
44
40
  icon: _freeSolidSvgIcons.faCircleNotch,
45
41
  spin: true
46
- }) : "".concat(currency, " ").concat((0, _currency.formatCurrency)(money, {
47
- currency: currency
48
- }))
42
+ }) : `${currency} ${(0, _currency.formatCurrency)(money, {
43
+ currency
44
+ })}`
49
45
  });
50
46
  }
51
47
  function CostsTableRow(_ref2) {
52
- var attr = _ref2.attr,
53
- name = _ref2.name;
54
- var _useCartContext = (0, _CartProvider.useCartContext)(),
55
- classNameCartTotalItem = _useCartContext.classNameCartTotalItem,
56
- classNameCartTotalItemPrice = _useCartContext.classNameCartTotalItemPrice;
48
+ let {
49
+ attr,
50
+ name
51
+ } = _ref2;
52
+ const {
53
+ classNameCartTotalItem,
54
+ classNameCartTotalItemPrice
55
+ } = (0, _CartProvider.useCartContext)();
57
56
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
58
57
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
59
58
  className: classNameCartTotalItem,
@@ -67,14 +66,14 @@ function CostsTableRow(_ref2) {
67
66
  });
68
67
  }
69
68
  function CartTotals() {
70
- var _useCartContext2 = (0, _CartProvider.useCartContext)(),
71
- classNameCartTotalContainer = _useCartContext2.classNameCartTotalContainer,
72
- classNameCartTotalItemPrice = _useCartContext2.classNameCartTotalItemPrice;
73
- var _useSelector3 = (0, _reactRedux.useSelector)(function (s) {
74
- return s.stateCart;
75
- }),
76
- cart = _useSelector3.cart;
77
- var cartItems = cart.cartItems ? cart.cartItems : [];
69
+ const {
70
+ classNameCartTotalContainer,
71
+ classNameCartTotalItemPrice
72
+ } = (0, _CartProvider.useCartContext)();
73
+ const {
74
+ cart
75
+ } = (0, _reactRedux.useSelector)(s => s.stateCart);
76
+ const cartItems = cart.cartItems ? cart.cartItems : [];
78
77
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
79
78
  className: classNameCartTotalContainer,
80
79
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Table, {
@@ -82,9 +81,10 @@ function CartTotals() {
82
81
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CostsTableRow, {
83
82
  attr: "cartItemsTotalCost",
84
83
  name: "Subtotal"
85
- }), (0, _cart.cartRequiresShipment)(_objectSpread(_objectSpread({}, cart), {}, {
86
- cartItems: cartItems
87
- })) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CostsTableRow, {
84
+ }), (0, _cart.cartRequiresShipment)({
85
+ ...cart,
86
+ cartItems
87
+ }) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CostsTableRow, {
88
88
  attr: "shipmentTotalCost",
89
89
  name: "Shipping"
90
90
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(CostsTableRow, {
@@ -100,4 +100,4 @@ function CartTotals() {
100
100
  })
101
101
  });
102
102
  }
103
- var _default = exports["default"] = CartTotals;
103
+ var _default = exports.default = CartTotals;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.AutoAssignProductionOnAction = void 0;
7
- var AutoAssignProductionOnAction = exports.AutoAssignProductionOnAction = /*#__PURE__*/function (AutoAssignProductionOnAction) {
7
+ let AutoAssignProductionOnAction = exports.AutoAssignProductionOnAction = /*#__PURE__*/function (AutoAssignProductionOnAction) {
8
8
  AutoAssignProductionOnAction[AutoAssignProductionOnAction["NOT_REQUIRED"] = 0] = "NOT_REQUIRED";
9
9
  AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_CREATION"] = 1] = "ON_JOB_CREATION";
10
10
  AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_INVOICE_PAID"] = 2] = "ON_JOB_INVOICE_PAID";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CallToActions = void 0;
7
- var CallToActions = exports.CallToActions = /*#__PURE__*/function (CallToActions) {
7
+ let CallToActions = exports.CallToActions = /*#__PURE__*/function (CallToActions) {
8
8
  CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN"] = 0] = "COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN";
9
9
  CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE"] = 1] = "COMPLETE_COMPANY_PROFILE";
10
10
  CallToActions[CallToActions["UPGRADE_SUBSCRIPTION_PLAN"] = 2] = "UPGRADE_SUBSCRIPTION_PLAN";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DiscountType = void 0;
7
- var DiscountType = exports.DiscountType = /*#__PURE__*/function (DiscountType) {
7
+ let DiscountType = exports.DiscountType = /*#__PURE__*/function (DiscountType) {
8
8
  DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
9
9
  return DiscountType;
10
10
  }({});
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DomainType = void 0;
7
- var DomainType = exports.DomainType = /*#__PURE__*/function (DomainType) {
7
+ let DomainType = exports.DomainType = /*#__PURE__*/function (DomainType) {
8
8
  DomainType[DomainType["UNRESTRICTED"] = 0] = "UNRESTRICTED";
9
9
  DomainType[DomainType["SELLER"] = 1] = "SELLER";
10
10
  DomainType[DomainType["SELLER_PLUS"] = 2] = "SELLER_PLUS";
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ErrorType = void 0;
7
7
  exports.getErrorFromCode = getErrorFromCode;
8
- var ErrorType = exports.ErrorType = /*#__PURE__*/function (ErrorType) {
8
+ let ErrorType = exports.ErrorType = /*#__PURE__*/function (ErrorType) {
9
9
  ErrorType[ErrorType["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
10
10
  ErrorType[ErrorType["SERVER_ERROR"] = 1] = "SERVER_ERROR";
11
11
  ErrorType[ErrorType["CLIENT_ERROR"] = 2] = "CLIENT_ERROR";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EventType = void 0;
7
- var EventType = exports.EventType = /*#__PURE__*/function (EventType) {
7
+ let EventType = exports.EventType = /*#__PURE__*/function (EventType) {
8
8
  EventType[EventType["POST"] = 0] = "POST";
9
9
  EventType[EventType["PATCH"] = 1] = "PATCH";
10
10
  EventType[EventType["DELETE"] = 1] = "DELETE";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.FieldType = void 0;
7
- var FieldType = exports.FieldType = /*#__PURE__*/function (FieldType) {
7
+ let FieldType = exports.FieldType = /*#__PURE__*/function (FieldType) {
8
8
  FieldType[FieldType["TEXT_INPUT"] = 1] = "TEXT_INPUT";
9
9
  FieldType[FieldType["SELECT"] = 2] = "SELECT";
10
10
  FieldType[FieldType["FILE_UPLOAD"] = 3] = "FILE_UPLOAD";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.InputType = void 0;
7
- var InputType = exports.InputType = /*#__PURE__*/function (InputType) {
7
+ let InputType = exports.InputType = /*#__PURE__*/function (InputType) {
8
8
  InputType[InputType["TEXT"] = 1] = "TEXT";
9
9
  InputType[InputType["SELECT"] = 2] = "SELECT";
10
10
  InputType[InputType["FILE"] = 3] = "FILE";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.InventoryStatus = void 0;
7
- var InventoryStatus = exports.InventoryStatus = /*#__PURE__*/function (InventoryStatus) {
7
+ let InventoryStatus = exports.InventoryStatus = /*#__PURE__*/function (InventoryStatus) {
8
8
  InventoryStatus[InventoryStatus["DEDUCTED"] = 0] = "DEDUCTED";
9
9
  InventoryStatus[InventoryStatus["CAN_DEDUCT"] = 1] = "CAN_DEDUCT";
10
10
  InventoryStatus[InventoryStatus["NOT_SUFFICIENT"] = 2] = "NOT_SUFFICIENT";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.InoviceType = void 0;
7
- var InoviceType = exports.InoviceType = /*#__PURE__*/function (InoviceType) {
7
+ let InoviceType = exports.InoviceType = /*#__PURE__*/function (InoviceType) {
8
8
  InoviceType[InoviceType["ORDER"] = 0] = "ORDER";
9
9
  InoviceType[InoviceType["SUBSCRIPTION_BILL"] = 1] = "SUBSCRIPTION_BILL";
10
10
  InoviceType[InoviceType["AUTO_SUPPLY_BILL"] = 2] = "AUTO_SUPPLY_BILL";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ItemType = void 0;
7
- var ItemType = exports.ItemType = /*#__PURE__*/function (ItemType) {
7
+ let ItemType = exports.ItemType = /*#__PURE__*/function (ItemType) {
8
8
  ItemType[ItemType["CUSTOM"] = 0] = "CUSTOM";
9
9
  ItemType[ItemType["SHIPPING"] = 1] = "SHIPPING";
10
10
  ItemType[ItemType["TAX"] = 2] = "TAX";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DraftingStatus = void 0;
7
- var DraftingStatus = exports.DraftingStatus = /*#__PURE__*/function (DraftingStatus) {
7
+ let DraftingStatus = exports.DraftingStatus = /*#__PURE__*/function (DraftingStatus) {
8
8
  DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
9
9
  DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
10
10
  DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PaymentStatus = void 0;
7
- var PaymentStatus = exports.PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
7
+ let PaymentStatus = exports.PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
8
8
  PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
9
9
  PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
10
10
  PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ProductionStatus = void 0;
7
- var ProductionStatus = exports.ProductionStatus = /*#__PURE__*/function (ProductionStatus) {
7
+ let ProductionStatus = exports.ProductionStatus = /*#__PURE__*/function (ProductionStatus) {
8
8
  ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
9
9
  ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
10
10
  ProductionStatus[ProductionStatus["QUOTING"] = 2] = "QUOTING";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ShipmentStatus = void 0;
7
- var ShipmentStatus = exports.ShipmentStatus = /*#__PURE__*/function (ShipmentStatus) {
7
+ let ShipmentStatus = exports.ShipmentStatus = /*#__PURE__*/function (ShipmentStatus) {
8
8
  ShipmentStatus[ShipmentStatus["NOT_ASSIGNED"] = 0] = "NOT_ASSIGNED";
9
9
  ShipmentStatus[ShipmentStatus["ASSIGNED"] = 1] = "ASSIGNED";
10
10
  ShipmentStatus[ShipmentStatus["DISPATCH_SET"] = 2] = "DISPATCH_SET";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SupplyChainRequestStatus = void 0;
7
- var SupplyChainRequestStatus = exports.SupplyChainRequestStatus = /*#__PURE__*/function (SupplyChainRequestStatus) {
7
+ let SupplyChainRequestStatus = exports.SupplyChainRequestStatus = /*#__PURE__*/function (SupplyChainRequestStatus) {
8
8
  SupplyChainRequestStatus[SupplyChainRequestStatus["NO_REQUEST"] = 0] = "NO_REQUEST";
9
9
  SupplyChainRequestStatus[SupplyChainRequestStatus["REQUESTED"] = 1] = "REQUESTED";
10
10
  SupplyChainRequestStatus[SupplyChainRequestStatus["DECLINED"] = 2] = "DECLINED";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JobPriority = void 0;
7
- var JobPriority = exports.JobPriority = /*#__PURE__*/function (JobPriority) {
7
+ let JobPriority = exports.JobPriority = /*#__PURE__*/function (JobPriority) {
8
8
  JobPriority[JobPriority["URGENT"] = 1] = "URGENT";
9
9
  JobPriority[JobPriority["HIGH"] = 2] = "HIGH";
10
10
  JobPriority[JobPriority["MEDIUM"] = 3] = "MEDIUM";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SupplyChainRequestStatus = exports.ShipmentStatus = exports.ProductionStatus = exports.PaymentStatus = exports.DraftingStatus = void 0;
7
- var DraftingStatus = exports.DraftingStatus = /*#__PURE__*/function (DraftingStatus) {
7
+ let DraftingStatus = exports.DraftingStatus = /*#__PURE__*/function (DraftingStatus) {
8
8
  DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
9
9
  DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
10
10
  DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
@@ -12,7 +12,7 @@ var DraftingStatus = exports.DraftingStatus = /*#__PURE__*/function (DraftingSta
12
12
  DraftingStatus[DraftingStatus["DRAFTING_APPROVED"] = 4] = "DRAFTING_APPROVED";
13
13
  return DraftingStatus;
14
14
  }({});
15
- var PaymentStatus = exports.PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
15
+ let PaymentStatus = exports.PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
16
16
  PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
17
17
  PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
18
18
  PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
@@ -20,7 +20,7 @@ var PaymentStatus = exports.PaymentStatus = /*#__PURE__*/function (PaymentStatus
20
20
  PaymentStatus[PaymentStatus["FULLY_PAID"] = 4] = "FULLY_PAID";
21
21
  return PaymentStatus;
22
22
  }({});
23
- var ProductionStatus = exports.ProductionStatus = /*#__PURE__*/function (ProductionStatus) {
23
+ let ProductionStatus = exports.ProductionStatus = /*#__PURE__*/function (ProductionStatus) {
24
24
  ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
25
25
  ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
26
26
  ProductionStatus[ProductionStatus["QUOTING"] = 2] = "QUOTING";
@@ -34,7 +34,7 @@ var ProductionStatus = exports.ProductionStatus = /*#__PURE__*/function (Product
34
34
  ProductionStatus[ProductionStatus["COMPLETED"] = 10] = "COMPLETED";
35
35
  return ProductionStatus;
36
36
  }({});
37
- var ShipmentStatus = exports.ShipmentStatus = /*#__PURE__*/function (ShipmentStatus) {
37
+ let ShipmentStatus = exports.ShipmentStatus = /*#__PURE__*/function (ShipmentStatus) {
38
38
  ShipmentStatus[ShipmentStatus["NOT_ASSIGNED"] = 0] = "NOT_ASSIGNED";
39
39
  ShipmentStatus[ShipmentStatus["ASSIGNED"] = 1] = "ASSIGNED";
40
40
  ShipmentStatus[ShipmentStatus["DISPATCH_SET"] = 2] = "DISPATCH_SET";
@@ -47,7 +47,7 @@ var ShipmentStatus = exports.ShipmentStatus = /*#__PURE__*/function (ShipmentSta
47
47
  ShipmentStatus[ShipmentStatus["PICKED_UP"] = 9] = "PICKED_UP";
48
48
  return ShipmentStatus;
49
49
  }({});
50
- var SupplyChainRequestStatus = exports.SupplyChainRequestStatus = /*#__PURE__*/function (SupplyChainRequestStatus) {
50
+ let SupplyChainRequestStatus = exports.SupplyChainRequestStatus = /*#__PURE__*/function (SupplyChainRequestStatus) {
51
51
  SupplyChainRequestStatus[SupplyChainRequestStatus["NO_REQUEST"] = 0] = "NO_REQUEST";
52
52
  SupplyChainRequestStatus[SupplyChainRequestStatus["REQUESTED"] = 1] = "REQUESTED";
53
53
  SupplyChainRequestStatus[SupplyChainRequestStatus["DECLINED"] = 2] = "DECLINED";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JobType = void 0;
7
- var JobType = exports.JobType = /*#__PURE__*/function (JobType) {
7
+ let JobType = exports.JobType = /*#__PURE__*/function (JobType) {
8
8
  JobType[JobType["PRODUCT_CREATION_MOD"] = 0] = "PRODUCT_CREATION_MOD";
9
9
  JobType[JobType["PRODUCT_CREATION"] = 1] = "PRODUCT_CREATION";
10
10
  JobType[JobType["PRODUCT_RESELL_CREATION_MOD"] = 2] = "PRODUCT_RESELL_CREATION_MOD";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NotificationSection = void 0;
7
- var NotificationSection = exports.NotificationSection = /*#__PURE__*/function (NotificationSection) {
7
+ let NotificationSection = exports.NotificationSection = /*#__PURE__*/function (NotificationSection) {
8
8
  NotificationSection[NotificationSection["SYSTEM"] = 0] = "SYSTEM";
9
9
  NotificationSection[NotificationSection["USER"] = 1] = "USER";
10
10
  NotificationSection[NotificationSection["JOB_INFO"] = 2] = "JOB_INFO";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NotificationType = void 0;
7
- var NotificationType = exports.NotificationType = /*#__PURE__*/function (NotificationType) {
7
+ let NotificationType = exports.NotificationType = /*#__PURE__*/function (NotificationType) {
8
8
  NotificationType[NotificationType["NO_TYPE"] = 0] = "NO_TYPE";
9
9
  NotificationType[NotificationType["DRAFT_SENT"] = 1] = "DRAFT_SENT";
10
10
  NotificationType[NotificationType["DRAFT_CHANGE_REQUEST"] = 2] = "DRAFT_CHANGE_REQUEST";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NotificationUrgency = void 0;
7
- var NotificationUrgency = exports.NotificationUrgency = /*#__PURE__*/function (NotificationUrgency) {
7
+ let NotificationUrgency = exports.NotificationUrgency = /*#__PURE__*/function (NotificationUrgency) {
8
8
  NotificationUrgency[NotificationUrgency["LOW"] = 0] = "LOW";
9
9
  NotificationUrgency[NotificationUrgency["MEDIUM"] = 1] = "MEDIUM";
10
10
  NotificationUrgency[NotificationUrgency["HIGH"] = 2] = "HIGH";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PaymentType = void 0;
7
- var PaymentType = exports.PaymentType = /*#__PURE__*/function (PaymentType) {
7
+ let PaymentType = exports.PaymentType = /*#__PURE__*/function (PaymentType) {
8
8
  PaymentType[PaymentType["ONLINE_PAYMENT"] = 1] = "ONLINE_PAYMENT";
9
9
  PaymentType[PaymentType["PAYPAL_PAYMENT"] = 2] = "PAYPAL_PAYMENT";
10
10
  PaymentType[PaymentType["BANK_TRANSFER"] = 3] = "BANK_TRANSFER";
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.platformSellerDomainPlus = exports.platformSellerDomain = exports.platformName = exports.platformDomain = exports.platformCopyright = void 0;
7
- var platformName = exports.platformName = 'Merchi';
8
- var platformCopyright = exports.platformCopyright = 2021;
9
- var platformDomain = exports.platformDomain = 'merchi.co';
10
- var platformSellerDomain = exports.platformSellerDomain = 'merchi.co';
11
- var platformSellerDomainPlus = exports.platformSellerDomainPlus = 'merchi.co';
7
+ const platformName = exports.platformName = 'Merchi';
8
+ const platformCopyright = exports.platformCopyright = 2021;
9
+ const platformDomain = exports.platformDomain = 'merchi.co';
10
+ const platformSellerDomain = exports.platformSellerDomain = 'merchi.co';
11
+ const platformSellerDomainPlus = exports.platformSellerDomainPlus = 'merchi.co';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ProductType = void 0;
7
- var ProductType = exports.ProductType = /*#__PURE__*/function (ProductType) {
7
+ let ProductType = exports.ProductType = /*#__PURE__*/function (ProductType) {
8
8
  ProductType[ProductType["SUPPLIER_MOD"] = 0] = "SUPPLIER_MOD";
9
9
  ProductType[ProductType["SUPPLIER"] = 1] = "SUPPLIER";
10
10
  ProductType[ProductType["SELLER"] = 2] = "SELLER";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Right = void 0;
7
- var Right = exports.Right = /*#__PURE__*/function (Right) {
7
+ let Right = exports.Right = /*#__PURE__*/function (Right) {
8
8
  Right[Right["ACCESS"] = 1] = "ACCESS";
9
9
  Right[Right["EDIT"] = 2] = "EDIT";
10
10
  Right[Right["DELETE"] = 3] = "DELETE";
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.robotsMetaDirectives = void 0;
7
- var robotsMetaDirectives = exports.robotsMetaDirectives = ['noindex', 'index', 'follow', 'nofollow', 'noimageindex', 'none', 'noarchive', 'nocache', 'nosnippet'];
7
+ const robotsMetaDirectives = exports.robotsMetaDirectives = ['noindex', 'index', 'follow', 'nofollow', 'noimageindex', 'none', 'noarchive', 'nocache', 'nosnippet'];
@@ -4,13 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.THEME_ROLES = exports.Role = exports.ROLES_RANK = exports.MANAGEMENT_TEAM = exports.MANAGEMENT_ROLES = exports.DOMAIN_MANAGERS = exports.BUSINESS_ACCOUNTS = exports.ALL_ROLES = void 0;
7
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
- 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."); }
9
- 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); }
10
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
- 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; }
13
- var Role = exports.Role = /*#__PURE__*/function (Role) {
7
+ let Role = exports.Role = /*#__PURE__*/function (Role) {
14
8
  Role[Role["PUBLIC"] = 0] = "PUBLIC";
15
9
  Role[Role["ADMIN"] = 1] = "ADMIN";
16
10
  Role[Role["SALES"] = 2] = "SALES";
@@ -22,10 +16,10 @@ var Role = exports.Role = /*#__PURE__*/function (Role) {
22
16
  Role[Role["THEME_EDITOR"] = 8] = "THEME_EDITOR";
23
17
  return Role;
24
18
  }({});
25
- var DOMAIN_MANAGERS = exports.DOMAIN_MANAGERS = [Role.ADMIN, Role.MANAGER];
26
- var MANAGEMENT_TEAM = exports.MANAGEMENT_TEAM = [].concat(DOMAIN_MANAGERS, [Role.SALES, Role.DESIGNER, Role.ACCOUNTANT]);
27
- var BUSINESS_ACCOUNTS = exports.BUSINESS_ACCOUNTS = [].concat(_toConsumableArray(MANAGEMENT_TEAM), [Role.SUPPLIER]);
28
- var MANAGEMENT_ROLES = exports.MANAGEMENT_ROLES = [Role.ADMIN, Role.MANAGER];
29
- var THEME_ROLES = exports.THEME_ROLES = [].concat(MANAGEMENT_ROLES, [Role.THEME_EDITOR]);
30
- var ROLES_RANK = exports.ROLES_RANK = [Role.PUBLIC, Role.CLIENT, Role.ACCOUNTANT, Role.SALES, Role.DESIGNER, Role.SUPPLIER, Role.MANAGER, Role.ADMIN];
31
- var ALL_ROLES = exports.ALL_ROLES = ROLES_RANK;
19
+ const DOMAIN_MANAGERS = exports.DOMAIN_MANAGERS = [Role.ADMIN, Role.MANAGER];
20
+ const MANAGEMENT_TEAM = exports.MANAGEMENT_TEAM = [...DOMAIN_MANAGERS, Role.SALES, Role.DESIGNER, Role.ACCOUNTANT];
21
+ const BUSINESS_ACCOUNTS = exports.BUSINESS_ACCOUNTS = [...MANAGEMENT_TEAM, Role.SUPPLIER];
22
+ const MANAGEMENT_ROLES = exports.MANAGEMENT_ROLES = [Role.ADMIN, Role.MANAGER];
23
+ const THEME_ROLES = exports.THEME_ROLES = [...MANAGEMENT_ROLES, Role.THEME_EDITOR];
24
+ const ROLES_RANK = exports.ROLES_RANK = [Role.PUBLIC, Role.CLIENT, Role.ACCOUNTANT, Role.SALES, Role.DESIGNER, Role.SUPPLIER, Role.MANAGER, Role.ADMIN];
25
+ const ALL_ROLES = exports.ALL_ROLES = ROLES_RANK;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ShipmentCompany = void 0;
7
- var ShipmentCompany = exports.ShipmentCompany = /*#__PURE__*/function (ShipmentCompany) {
7
+ let ShipmentCompany = exports.ShipmentCompany = /*#__PURE__*/function (ShipmentCompany) {
8
8
  ShipmentCompany[ShipmentCompany["DHL"] = 0] = "DHL";
9
9
  ShipmentCompany[ShipmentCompany["UPS"] = 1] = "UPS";
10
10
  ShipmentCompany[ShipmentCompany["EMS"] = 2] = "EMS";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ShipmentService = void 0;
7
- var ShipmentService = exports.ShipmentService = /*#__PURE__*/function (ShipmentService) {
7
+ let ShipmentService = exports.ShipmentService = /*#__PURE__*/function (ShipmentService) {
8
8
  ShipmentService[ShipmentService["SENDLE"] = 1] = "SENDLE";
9
9
  return ShipmentService;
10
10
  }({});
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SystemRoles = void 0;
7
- var SystemRoles = exports.SystemRoles = /*#__PURE__*/function (SystemRoles) {
7
+ let SystemRoles = exports.SystemRoles = /*#__PURE__*/function (SystemRoles) {
8
8
  SystemRoles[SystemRoles["SYSTEM_COMPONENT_BUILDER"] = 1] = "SYSTEM_COMPONENT_BUILDER";
9
9
  return SystemRoles;
10
10
  }({});
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ThemeFoundations = void 0;
7
- var ThemeFoundations = exports.ThemeFoundations = /*#__PURE__*/function (ThemeFoundations) {
7
+ let ThemeFoundations = exports.ThemeFoundations = /*#__PURE__*/function (ThemeFoundations) {
8
8
  ThemeFoundations[ThemeFoundations["NO_FOUNDATION"] = 0] = "NO_FOUNDATION";
9
9
  ThemeFoundations[ThemeFoundations["BOOTSTRAP_3"] = 1] = "BOOTSTRAP_3";
10
10
  ThemeFoundations[ThemeFoundations["BOOTSTRAP_4"] = 2] = "BOOTSTRAP_4";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ThemeStatus = void 0;
7
- var ThemeStatus = exports.ThemeStatus = /*#__PURE__*/function (ThemeStatus) {
7
+ let ThemeStatus = exports.ThemeStatus = /*#__PURE__*/function (ThemeStatus) {
8
8
  ThemeStatus[ThemeStatus["NOT_VALID"] = 1] = "NOT_VALID";
9
9
  ThemeStatus[ThemeStatus["VALID_BUT_NOT_UPDATED"] = 2] = "VALID_BUT_NOT_UPDATED";
10
10
  ThemeStatus[ThemeStatus["VALID_AND_UPDATED"] = 3] = "VALID_AND_UPDATED";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.UserType = void 0;
7
- var UserType = exports.UserType = /*#__PURE__*/function (UserType) {
7
+ let UserType = exports.UserType = /*#__PURE__*/function (UserType) {
8
8
  UserType[UserType["PUBLIC"] = 0] = "PUBLIC";
9
9
  UserType[UserType["CLIENT_GUEST"] = 1] = "CLIENT_GUEST";
10
10
  UserType[UserType["CLIENT_DOMAIN"] = 2] = "CLIENT_DOMAIN";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.WhiteLabelAccessibility = void 0;
7
- var WhiteLabelAccessibility = exports.WhiteLabelAccessibility = /*#__PURE__*/function (WhiteLabelAccessibility) {
7
+ let WhiteLabelAccessibility = exports.WhiteLabelAccessibility = /*#__PURE__*/function (WhiteLabelAccessibility) {
8
8
  WhiteLabelAccessibility[WhiteLabelAccessibility["UNREACHABLE"] = 0] = "UNREACHABLE";
9
9
  WhiteLabelAccessibility[WhiteLabelAccessibility["NO_CERTIFICATE"] = 1] = "NO_CERTIFICATE";
10
10
  WhiteLabelAccessibility[WhiteLabelAccessibility["REACHABLE"] = 2] = "REACHABLE";
@@ -8,10 +8,10 @@ function getCookie(name) {
8
8
  // code might be executed during SSR
9
9
  // istanbul ignore next
10
10
  if (typeof document !== 'undefined') {
11
- var searchPrefix = name + '=',
11
+ const searchPrefix = name + '=',
12
12
  cookies = document.cookie.split(';');
13
- for (var i = 0; i < cookies.length; ++i) {
14
- var cookie = cookies[i];
13
+ for (let i = 0; i < cookies.length; ++i) {
14
+ let cookie = cookies[i];
15
15
  cookie = cookie.replace(/^\s*/, '');
16
16
  if (cookie.indexOf(searchPrefix) === 0) {
17
17
  return cookie.substring(searchPrefix.length, cookie.length);