ordering-ui-external 2.6.7 → 2.7.0

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 (112) hide show
  1. package/_bundles/0.ordering-ui.0a58ae9fc1a4bce64c6e.js +1 -0
  2. package/_bundles/{1.ordering-ui.fd1dc326de89a8eb39f9.js → 1.ordering-ui.0a58ae9fc1a4bce64c6e.js} +1 -1
  3. package/_bundles/4.ordering-ui.0a58ae9fc1a4bce64c6e.js +1 -0
  4. package/_bundles/{5.ordering-ui.fd1dc326de89a8eb39f9.js → 5.ordering-ui.0a58ae9fc1a4bce64c6e.js} +1 -1
  5. package/_bundles/{6.ordering-ui.fd1dc326de89a8eb39f9.js → 6.ordering-ui.0a58ae9fc1a4bce64c6e.js} +1 -1
  6. package/_bundles/{7.ordering-ui.fd1dc326de89a8eb39f9.js → 7.ordering-ui.0a58ae9fc1a4bce64c6e.js} +2 -2
  7. package/_bundles/ordering-ui.0a58ae9fc1a4bce64c6e.js +2 -0
  8. package/_modules/components/LanguageSelector/index.js +1 -0
  9. package/_modules/components/OrderTypeSelectorHeader/index.js +3 -1
  10. package/_modules/components/SmartAppBanner/index.js +5 -2
  11. package/_modules/contexts/ThemeContext/index.js +1 -1
  12. package/_modules/styles/Select/index.js +14 -2
  13. package/_modules/styles/Selects/index.js +11 -8
  14. package/_modules/themes/five/index.js +21 -0
  15. package/_modules/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +168 -0
  16. package/_modules/themes/five/src/components/BusinessBasicInformation/SearchComponent.js +39 -0
  17. package/_modules/themes/five/src/components/BusinessBasicInformation/SocialNetWork.js +19 -0
  18. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +35 -156
  19. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +45 -35
  20. package/_modules/themes/five/src/components/BusinessController/index.js +6 -2
  21. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +1 -1
  22. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +5 -4
  23. package/_modules/themes/five/src/components/CardForm/index.js +16 -3
  24. package/_modules/themes/five/src/components/CardForm/styles.js +13 -9
  25. package/_modules/themes/five/src/components/CardFormCustom/cardUtils.js +102 -0
  26. package/_modules/themes/five/src/components/CardFormCustom/index.js +148 -0
  27. package/_modules/themes/five/src/components/CardFormCustom/styles.js +16 -0
  28. package/_modules/themes/five/src/components/Cart/index.js +1 -1
  29. package/_modules/themes/five/src/components/CartPopover/styles.js +1 -1
  30. package/_modules/themes/five/src/components/Checkout/index.js +41 -27
  31. package/_modules/themes/five/src/components/Header/index.js +10 -4
  32. package/_modules/themes/five/src/components/LanguageSelector/index.js +4 -1
  33. package/_modules/themes/five/src/components/LoginForm/index.js +11 -8
  34. package/_modules/themes/five/src/components/Modal/styles.js +1 -1
  35. package/_modules/themes/five/src/components/OrderContextUI/index.js +13 -1
  36. package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
  37. package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +18 -8
  38. package/_modules/themes/five/src/components/OrderDetails/OrderHistory.js +7 -3
  39. package/_modules/themes/five/src/components/OrderDetails/index.js +4 -2
  40. package/_modules/themes/five/src/components/PaymentOptionCard/index.js +84 -0
  41. package/_modules/themes/five/src/components/PaymentOptionStripe/index.js +48 -22
  42. package/_modules/themes/five/src/components/PaymentOptionStripe/styles.js +3 -1
  43. package/_modules/themes/five/src/components/PaymentOptions/index.js +46 -24
  44. package/_modules/themes/five/src/components/ProductForm/styles.js +1 -1
  45. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +2 -2
  46. package/_modules/themes/five/src/components/SearchProducts/styles.js +1 -1
  47. package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
  48. package/_modules/themes/five/src/components/UserPopover/styles.js +1 -1
  49. package/_modules/themes/five/src/styles/Select/index.js +4 -2
  50. package/_modules/themes/five/src/styles/Selects/index.js +7 -4
  51. package/_modules/themes/pwa/src/components/MomentPopover/styles.js +1 -1
  52. package/index.html +1 -1
  53. package/package.json +4 -2
  54. package/src/components/LanguageSelector/index.js +1 -0
  55. package/src/components/OrderTypeSelectorHeader/index.js +3 -1
  56. package/src/components/SmartAppBanner/index.js +4 -2
  57. package/src/contexts/ThemeContext/index.js +1 -1
  58. package/src/styles/Select/index.js +11 -2
  59. package/src/styles/Selects/index.js +1 -1
  60. package/src/themes/five/index.js +6 -0
  61. package/src/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +230 -0
  62. package/src/themes/five/src/components/BusinessBasicInformation/SearchComponent.js +40 -0
  63. package/src/themes/five/src/components/BusinessBasicInformation/SocialNetWork.js +10 -0
  64. package/src/themes/five/src/components/BusinessBasicInformation/index.js +39 -247
  65. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +14 -4
  66. package/src/themes/five/src/components/BusinessController/index.js +2 -2
  67. package/src/themes/five/src/components/BusinessProductsCategories/index.js +1 -1
  68. package/src/themes/five/src/components/BusinessProductsListing/index.js +5 -4
  69. package/src/themes/five/src/components/CardForm/index.js +25 -4
  70. package/src/themes/five/src/components/CardForm/styles.js +35 -0
  71. package/src/themes/five/src/components/CardFormCustom/cardUtils.js +111 -0
  72. package/src/themes/five/src/components/CardFormCustom/index.js +161 -0
  73. package/src/themes/five/src/components/CardFormCustom/styles.js +20 -0
  74. package/src/themes/five/src/components/Cart/index.js +1 -1
  75. package/src/themes/five/src/components/CartPopover/styles.js +1 -1
  76. package/src/themes/five/src/components/Checkout/index.js +42 -30
  77. package/src/themes/five/src/components/Header/index.js +9 -4
  78. package/src/themes/five/src/components/LanguageSelector/index.js +2 -1
  79. package/src/themes/five/src/components/LoginForm/index.js +6 -4
  80. package/src/themes/five/src/components/Modal/styles.js +1 -0
  81. package/src/themes/five/src/components/OrderContextUI/index.js +10 -3
  82. package/src/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
  83. package/src/themes/five/src/components/OrderDetails/OrderEta.js +21 -9
  84. package/src/themes/five/src/components/OrderDetails/OrderHistory.js +4 -3
  85. package/src/themes/five/src/components/OrderDetails/index.js +1 -1
  86. package/src/themes/five/src/components/PaymentOptionCard/index.js +70 -0
  87. package/src/themes/five/src/components/PaymentOptionStripe/index.js +46 -20
  88. package/src/themes/five/src/components/PaymentOptionStripe/styles.js +6 -1
  89. package/src/themes/five/src/components/PaymentOptions/index.js +28 -3
  90. package/src/themes/five/src/components/ProductForm/index.js +0 -1
  91. package/src/themes/five/src/components/ProductForm/styles.js +1 -1
  92. package/src/themes/five/src/components/RenderProductsLayout/index.js +2 -2
  93. package/src/themes/five/src/components/SearchProducts/styles.js +1 -1
  94. package/src/themes/five/src/components/UserDetails/index.js +1 -1
  95. package/src/themes/five/src/components/UserPopover/styles.js +1 -1
  96. package/src/themes/five/src/styles/Select/index.js +3 -2
  97. package/src/themes/five/src/styles/Selects/index.js +1 -1
  98. package/src/themes/pwa/src/components/MomentPopover/styles.js +4 -1
  99. package/template/app.js +13 -7
  100. package/template/pages/BusinessProductsList/index.js +4 -3
  101. package/template/pages/BusinessesList/index.js +2 -1
  102. package/template/pages/Checkout/index.js +1 -0
  103. package/template/pages/MyOrders/index.js +1 -0
  104. package/template/theme.json +3 -1
  105. package/_bundles/0.ordering-ui.fd1dc326de89a8eb39f9.js +0 -1
  106. package/_bundles/4.ordering-ui.fd1dc326de89a8eb39f9.js +0 -1
  107. package/_bundles/ordering-ui.fd1dc326de89a8eb39f9.js +0 -2
  108. /package/_bundles/{2.ordering-ui.fd1dc326de89a8eb39f9.js → 2.ordering-ui.0a58ae9fc1a4bce64c6e.js} +0 -0
  109. /package/_bundles/{7.ordering-ui.fd1dc326de89a8eb39f9.js.LICENSE.txt → 7.ordering-ui.0a58ae9fc1a4bce64c6e.js.LICENSE.txt} +0 -0
  110. /package/_bundles/{8.ordering-ui.fd1dc326de89a8eb39f9.js → 8.ordering-ui.0a58ae9fc1a4bce64c6e.js} +0 -0
  111. /package/_bundles/{9.ordering-ui.fd1dc326de89a8eb39f9.js → 9.ordering-ui.0a58ae9fc1a4bce64c6e.js} +0 -0
  112. /package/_bundles/{ordering-ui.fd1dc326de89a8eb39f9.js.LICENSE.txt → ordering-ui.0a58ae9fc1a4bce64c6e.js.LICENSE.txt} +0 -0
@@ -8,6 +8,7 @@ exports.PaymentOptions = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
10
10
  var _IosRadioButtonOn = _interopRequireDefault(require("@meronex/icons/ios/IosRadioButtonOn"));
11
+ var _BilStripe = _interopRequireDefault(require("@meronex/icons/bi/BilStripe"));
11
12
  var _FaCcStripe = _interopRequireDefault(require("@meronex/icons/fa/FaCcStripe"));
12
13
  var _FaStripeS = _interopRequireDefault(require("@meronex/icons/fa/FaStripeS"));
13
14
  var _GrStripe = _interopRequireDefault(require("@meronex/icons/gr/GrStripe"));
@@ -19,6 +20,7 @@ var _Confirm = require("../Confirm");
19
20
  var _PaymentOptionCash = require("../PaymentOptionCash");
20
21
  var _PaymentOptionStripe = require("../PaymentOptionStripe");
21
22
  var _PaymentOptionPaypal = require("../../../../../components/PaymentOptionPaypal");
23
+ var _PaymentOptionCard = require("../PaymentOptionCard");
22
24
  var _StripeElementsForm = require("../StripeElementsForm");
23
25
  var _StripeRedirectForm = require("../StripeRedirectForm");
24
26
  var _NotFoundSource = require("../NotFoundSource");
@@ -58,6 +60,7 @@ var stripeRedirectOptions = [{
58
60
  name: 'iDEAL',
59
61
  value: 'ideal'
60
62
  }];
63
+ var cardsPaymethods = ['credomatic'];
61
64
  var getPayIcon = function getPayIcon(method) {
62
65
  switch (method) {
63
66
  case 1:
@@ -97,7 +100,7 @@ var paypalBtnStyle = {
97
100
  size: 'responsive'
98
101
  };
99
102
  var PaymentOptionsUI = function PaymentOptionsUI(props) {
100
- var _list$filter, _props$beforeElements, _props$beforeComponen, _paymethodsList$error, _cart$balance, _paymethodSelected$da2, _isOpenMethod$paymeth2, _isOpenMethod$paymeth3, _isOpenMethod$paymeth4, _isOpenMethod$paymeth5, _isOpenMethod$paymeth6, _paymethodData$card, _paymethodData$card2, _paymethodData$card3, _isOpenMethod$paymeth7, _isOpenMethod$paymeth8, _isOpenMethod$paymeth9, _isOpenMethod$paymeth10, _isOpenMethod$paymeth11, _cart$balance2, _isOpenMethod$paymeth12, _isOpenMethod$paymeth13, _isOpenMethod$paymeth14, _isOpenMethod$paymeth15, _isOpenMethod$paymeth16, _isOpenMethod$paymeth17, _isOpenMethod$paymeth18, _isOpenMethod$paymeth19, _isOpenMethod$paymeth20, _isOpenMethod$paymeth21, _isOpenMethod$paymeth22, _isOpenMethod$paymeth23, _isOpenMethod$paymeth24, _isOpenMethod$paymeth25, _isOpenMethod$paymeth26, _isOpenMethod$paymeth27, _isOpenMethod$paymeth28, _isOpenMethod$paymeth29, _isOpenMethod$paymeth30, _isOpenMethod$paymeth31, _isOpenMethod$paymeth32, _isOpenMethod$paymeth33, _props$afterComponent, _props$afterElements;
103
+ var _list$filter, _props$beforeElements, _props$beforeComponen, _paymethodsList$error, _cart$balance, _paymethodSelected$da2, _isOpenMethod$paymeth2, _isOpenMethod$paymeth3, _isOpenMethod$paymeth4, _isOpenMethod$paymeth5, _paymethodSelected$da3, _isOpenMethod$paymeth6, _isOpenMethod$paymeth7, _isOpenMethod$paymeth8, _isOpenMethod$paymeth9, _isOpenMethod$paymeth10, _paymethodSelected$da4, _paymethodData$card, _paymethodData$card2, _paymethodData$card3, _isOpenMethod$paymeth11, _isOpenMethod$paymeth12, _isOpenMethod$paymeth13, _isOpenMethod$paymeth14, _isOpenMethod$paymeth15, _cart$balance2, _isOpenMethod$paymeth16, _isOpenMethod$paymeth17, _isOpenMethod$paymeth18, _isOpenMethod$paymeth19, _isOpenMethod$paymeth20, _isOpenMethod$paymeth21, _isOpenMethod$paymeth22, _isOpenMethod$paymeth23, _isOpenMethod$paymeth24, _isOpenMethod$paymeth25, _isOpenMethod$paymeth26, _isOpenMethod$paymeth27, _isOpenMethod$paymeth28, _isOpenMethod$paymeth29, _isOpenMethod$paymeth30, _isOpenMethod$paymeth31, _isOpenMethod$paymeth32, _isOpenMethod$paymeth33, _isOpenMethod$paymeth34, _isOpenMethod$paymeth35, _isOpenMethod$paymeth36, _isOpenMethod$paymeth37, _props$afterComponent, _props$afterElements;
101
104
  var cart = props.cart,
102
105
  errorCash = props.errorCash,
103
106
  isLoading = props.isLoading,
@@ -115,7 +118,8 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
115
118
  setCreateOrder = props.setCreateOrder,
116
119
  onPlaceOrderClick = props.onPlaceOrderClick,
117
120
  handlePlaceOrder = props.handlePlaceOrder,
118
- paymethods = props.paymethods;
121
+ paymethods = props.paymethods,
122
+ setCardList = props.setCardList;
119
123
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
120
124
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
121
125
  t = _useLanguage2[1];
@@ -245,17 +249,34 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
245
249
  defaultValue: paymethodSelected === null || paymethodSelected === void 0 ? void 0 : (_paymethodSelected$da2 = paymethodSelected.data) === null || _paymethodSelected$da2 === void 0 ? void 0 : _paymethodSelected$da2.cash,
246
250
  onChangeData: handlePaymethodDataChange,
247
251
  setErrorCash: props.setErrorCash
248
- }), (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth2 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth2 === void 0 ? void 0 : _isOpenMethod$paymeth2.gateway) === 'stripe' && ((_isOpenMethod$paymeth3 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth3 === void 0 ? void 0 : _isOpenMethod$paymeth3.gateway) === 'stripe' && /*#__PURE__*/_react.default.createElement(_PaymentOptionStripe.PaymentOptionStripe, {
252
+ }), ((isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth2 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth2 === void 0 ? void 0 : _isOpenMethod$paymeth2.gateway) === 'stripe' || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'stripe') && /*#__PURE__*/_react.default.createElement(_PaymentOptionStripe.PaymentOptionStripe, {
253
+ setCardList: setCardList,
249
254
  paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : isOpenMethod.paymethod,
250
255
  businessId: props.businessId,
251
- publicKey: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth4 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth4 === void 0 ? void 0 : (_isOpenMethod$paymeth5 = _isOpenMethod$paymeth4.credentials) === null || _isOpenMethod$paymeth5 === void 0 ? void 0 : _isOpenMethod$paymeth5.publishable,
256
+ publicKey: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth3 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth3 === void 0 ? void 0 : (_isOpenMethod$paymeth4 = _isOpenMethod$paymeth3.credentials) === null || _isOpenMethod$paymeth4 === void 0 ? void 0 : _isOpenMethod$paymeth4.publishable,
252
257
  onPaymentChange: onPaymentChange,
253
- payType: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth6 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth6 === void 0 ? void 0 : _isOpenMethod$paymeth6.name,
258
+ payType: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth5 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth5 === void 0 ? void 0 : _isOpenMethod$paymeth5.name,
254
259
  onSelectCard: handlePaymethodDataChange,
255
260
  onCancel: function onCancel() {
256
261
  return handlePaymethodClick(null);
257
- }
258
- }), stripeOptions.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (paymethodData === null || paymethodData === void 0 ? void 0 : paymethodData.card) && !isCustomerMode && /*#__PURE__*/_react.default.createElement(_styles.PayCardSelected, null, /*#__PURE__*/_react.default.createElement(_styles.CardItemContent, null, /*#__PURE__*/_react.default.createElement("span", {
262
+ },
263
+ paymethodSelected: paymethodSelected === null || paymethodSelected === void 0 ? void 0 : (_paymethodSelected$da3 = paymethodSelected.data) === null || _paymethodSelected$da3 === void 0 ? void 0 : _paymethodSelected$da3.id,
264
+ handlePaymentMethodClick: handlePaymentMethodClick
265
+ }), (cardsPaymethods.includes(isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth6 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth6 === void 0 ? void 0 : _isOpenMethod$paymeth6.gateway) || cardsPaymethods.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway)) && /*#__PURE__*/_react.default.createElement(_PaymentOptionCard.PaymentOptionCard, {
266
+ setCardList: setCardList,
267
+ paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : isOpenMethod.paymethod,
268
+ businessId: props.businessId,
269
+ publicKey: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth7 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth7 === void 0 ? void 0 : (_isOpenMethod$paymeth8 = _isOpenMethod$paymeth7.credentials) === null || _isOpenMethod$paymeth8 === void 0 ? void 0 : _isOpenMethod$paymeth8.publishable,
270
+ gateway: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth9 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth9 === void 0 ? void 0 : _isOpenMethod$paymeth9.gateway) || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway),
271
+ onPaymentChange: onPaymentChange,
272
+ payType: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth10 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth10 === void 0 ? void 0 : _isOpenMethod$paymeth10.name,
273
+ onSelectCard: handlePaymethodDataChange,
274
+ onCancel: function onCancel() {
275
+ return handlePaymethodClick(null);
276
+ },
277
+ paymethodSelected: paymethodSelected === null || paymethodSelected === void 0 ? void 0 : (_paymethodSelected$da4 = paymethodSelected.data) === null || _paymethodSelected$da4 === void 0 ? void 0 : _paymethodSelected$da4.id,
278
+ handlePaymentMethodClick: handlePaymentMethodClick
279
+ }), stripeOptions.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (paymethodData === null || paymethodData === void 0 ? void 0 : paymethodData.card) && !isCustomerMode && (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) !== 'stripe' && /*#__PURE__*/_react.default.createElement(_styles.PayCardSelected, null, /*#__PURE__*/_react.default.createElement(_styles.CardItemContent, null, /*#__PURE__*/_react.default.createElement("span", {
259
280
  className: "checks"
260
281
  }, /*#__PURE__*/_react.default.createElement(_IosRadioButtonOn.default, null)), /*#__PURE__*/_react.default.createElement("span", {
261
282
  className: "brand"
@@ -264,15 +285,15 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
264
285
  alt: paymethodData === null || paymethodData === void 0 ? void 0 : (_paymethodData$card2 = paymethodData.card) === null || _paymethodData$card2 === void 0 ? void 0 : _paymethodData$card2.brand
265
286
  })), /*#__PURE__*/_react.default.createElement("span", null, "XXXX-XXXX-XXXX-", paymethodData === null || paymethodData === void 0 ? void 0 : (_paymethodData$card3 = paymethodData.card) === null || _paymethodData$card3 === void 0 ? void 0 : _paymethodData$card3.last4))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
266
287
  className: "modal-info",
267
- open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth7 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth7 === void 0 ? void 0 : _isOpenMethod$paymeth7.gateway) === 'paypal' && !paymethodData.id,
288
+ open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth11 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth11 === void 0 ? void 0 : _isOpenMethod$paymeth11.gateway) === 'paypal' && !paymethodData.id,
268
289
  onClose: function onClose() {
269
290
  return handlePaymethodClick(null);
270
291
  },
271
292
  title: t('PAY_WITH_PAYPAL', 'Pay with PayPal')
272
- }, (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth8 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth8 === void 0 ? void 0 : _isOpenMethod$paymeth8.gateway) === 'paypal' && /*#__PURE__*/_react.default.createElement(_PaymentOptionPaypal.PaymentOptionPaypal, {
273
- clientId: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth9 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth9 === void 0 ? void 0 : (_isOpenMethod$paymeth10 = _isOpenMethod$paymeth9.credentials) === null || _isOpenMethod$paymeth10 === void 0 ? void 0 : _isOpenMethod$paymeth10.client_id,
293
+ }, (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth12 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth12 === void 0 ? void 0 : _isOpenMethod$paymeth12.gateway) === 'paypal' && /*#__PURE__*/_react.default.createElement(_PaymentOptionPaypal.PaymentOptionPaypal, {
294
+ clientId: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth13 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth13 === void 0 ? void 0 : (_isOpenMethod$paymeth14 = _isOpenMethod$paymeth13.credentials) === null || _isOpenMethod$paymeth14 === void 0 ? void 0 : _isOpenMethod$paymeth14.client_id,
274
295
  body: {
275
- paymethod_id: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth11 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth11 === void 0 ? void 0 : _isOpenMethod$paymeth11.id,
296
+ paymethod_id: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth15 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth15 === void 0 ? void 0 : _isOpenMethod$paymeth15.id,
276
297
  amount: (_cart$balance2 = cart === null || cart === void 0 ? void 0 : cart.balance) !== null && _cart$balance2 !== void 0 ? _cart$balance2 : cart.total,
277
298
  delivery_zone_id: cart.delivery_zone_id,
278
299
  cartUuid: cart.uuid
@@ -284,34 +305,35 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
284
305
  }
285
306
  })), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
286
307
  title: t('SELECT_A_CARD', 'Select a card'),
287
- open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth12 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth12 === void 0 ? void 0 : _isOpenMethod$paymeth12.gateway) === 'stripe_connect' && !paymethodData.id,
308
+ open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth16 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth16 === void 0 ? void 0 : _isOpenMethod$paymeth16.gateway) === 'stripe_connect' && !paymethodData.id,
288
309
  className: "modal-info",
289
310
  onClose: function onClose() {
290
311
  return handlePaymethodClick(null);
291
312
  }
292
- }, (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth13 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth13 === void 0 ? void 0 : _isOpenMethod$paymeth13.gateway) === 'stripe_connect' && /*#__PURE__*/_react.default.createElement(_PaymentOptionStripe.PaymentOptionStripe, {
313
+ }, (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth17 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth17 === void 0 ? void 0 : _isOpenMethod$paymeth17.gateway) === 'stripe_connect' && /*#__PURE__*/_react.default.createElement(_PaymentOptionStripe.PaymentOptionStripe, {
293
314
  paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : isOpenMethod.paymethod,
294
315
  businessId: props.businessId,
295
- publicKey: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth14 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth14 === void 0 ? void 0 : (_isOpenMethod$paymeth15 = _isOpenMethod$paymeth14.credentials) === null || _isOpenMethod$paymeth15 === void 0 ? void 0 : (_isOpenMethod$paymeth16 = _isOpenMethod$paymeth15.stripe) === null || _isOpenMethod$paymeth16 === void 0 ? void 0 : _isOpenMethod$paymeth16.publishable,
296
- clientSecret: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth17 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth17 === void 0 ? void 0 : (_isOpenMethod$paymeth18 = _isOpenMethod$paymeth17.credentials) === null || _isOpenMethod$paymeth18 === void 0 ? void 0 : _isOpenMethod$paymeth18.publishable,
316
+ publicKey: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth18 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth18 === void 0 ? void 0 : (_isOpenMethod$paymeth19 = _isOpenMethod$paymeth18.credentials) === null || _isOpenMethod$paymeth19 === void 0 ? void 0 : (_isOpenMethod$paymeth20 = _isOpenMethod$paymeth19.stripe) === null || _isOpenMethod$paymeth20 === void 0 ? void 0 : _isOpenMethod$paymeth20.publishable,
317
+ clientSecret: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth21 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth21 === void 0 ? void 0 : (_isOpenMethod$paymeth22 = _isOpenMethod$paymeth21.credentials) === null || _isOpenMethod$paymeth22 === void 0 ? void 0 : _isOpenMethod$paymeth22.publishable,
297
318
  payType: paymethodsList === null || paymethodsList === void 0 ? void 0 : paymethodsList.name,
298
319
  onSelectCard: handlePaymethodDataChange,
299
320
  onCancel: function onCancel() {
300
321
  return handlePaymethodClick(null);
301
- }
322
+ },
323
+ paymethodSelected: paymethodSelected
302
324
  })), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
303
325
  title: t('ADD_CARD', 'Add card'),
304
- open: (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth19 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth19 === void 0 ? void 0 : _isOpenMethod$paymeth19.gateway)) && !paymethodData.id,
326
+ open: (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth23 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth23 === void 0 ? void 0 : _isOpenMethod$paymeth23.gateway)) && !paymethodData.id,
305
327
  className: "modal-info",
306
328
  onClose: function onClose() {
307
329
  return handlePaymethodClick(null);
308
330
  }
309
- }, !(isOpenMethod !== null && isOpenMethod !== void 0 && (_isOpenMethod$paymeth20 = isOpenMethod.paymethod) !== null && _isOpenMethod$paymeth20 !== void 0 && (_isOpenMethod$paymeth21 = _isOpenMethod$paymeth20.credentials) !== null && _isOpenMethod$paymeth21 !== void 0 && _isOpenMethod$paymeth21.publishable) && /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement("p", null, t('ADD_PUBLISHABLE_KEY', 'Please add a publishable key'))), (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth22 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth22 === void 0 ? void 0 : (_isOpenMethod$paymeth23 = _isOpenMethod$paymeth22.credentials) === null || _isOpenMethod$paymeth23 === void 0 ? void 0 : _isOpenMethod$paymeth23.publishable) && (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth24 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth24 === void 0 ? void 0 : _isOpenMethod$paymeth24.gateway)) && /*#__PURE__*/_react.default.createElement(_StripeElementsForm.StripeElementsForm, {
331
+ }, !(isOpenMethod !== null && isOpenMethod !== void 0 && (_isOpenMethod$paymeth24 = isOpenMethod.paymethod) !== null && _isOpenMethod$paymeth24 !== void 0 && (_isOpenMethod$paymeth25 = _isOpenMethod$paymeth24.credentials) !== null && _isOpenMethod$paymeth25 !== void 0 && _isOpenMethod$paymeth25.publishable) && /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement("p", null, t('ADD_PUBLISHABLE_KEY', 'Please add a publishable key'))), (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth26 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth26 === void 0 ? void 0 : (_isOpenMethod$paymeth27 = _isOpenMethod$paymeth26.credentials) === null || _isOpenMethod$paymeth27 === void 0 ? void 0 : _isOpenMethod$paymeth27.publishable) && (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth28 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth28 === void 0 ? void 0 : _isOpenMethod$paymeth28.gateway)) && /*#__PURE__*/_react.default.createElement(_StripeElementsForm.StripeElementsForm, {
310
332
  methodsPay: methodsPay,
311
- paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth25 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth25 === void 0 ? void 0 : _isOpenMethod$paymeth25.gateway,
333
+ paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth29 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth29 === void 0 ? void 0 : _isOpenMethod$paymeth29.gateway,
312
334
  businessId: props.businessId,
313
335
  cart: cart,
314
- publicKey: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth26 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth26 === void 0 ? void 0 : (_isOpenMethod$paymeth27 = _isOpenMethod$paymeth26.credentials) === null || _isOpenMethod$paymeth27 === void 0 ? void 0 : _isOpenMethod$paymeth27.publishable) || (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth28 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth28 === void 0 ? void 0 : (_isOpenMethod$paymeth29 = _isOpenMethod$paymeth28.credentials) === null || _isOpenMethod$paymeth29 === void 0 ? void 0 : _isOpenMethod$paymeth29.publishable_key),
336
+ publicKey: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth30 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth30 === void 0 ? void 0 : (_isOpenMethod$paymeth31 = _isOpenMethod$paymeth30.credentials) === null || _isOpenMethod$paymeth31 === void 0 ? void 0 : _isOpenMethod$paymeth31.publishable) || (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth32 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth32 === void 0 ? void 0 : (_isOpenMethod$paymeth33 = _isOpenMethod$paymeth32.credentials) === null || _isOpenMethod$paymeth33 === void 0 ? void 0 : _isOpenMethod$paymeth33.publishable_key),
315
337
  handleSource: handlePaymethodDataChange,
316
338
  onCancel: function onCancel() {
317
339
  return handlePaymethodClick(null);
@@ -319,7 +341,7 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
319
341
  handlePlaceOrder: handlePlaceOrder
320
342
  })), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
321
343
  title: t('STRIPE_REDIRECT', 'Stripe Redirect'),
322
- open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth30 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth30 === void 0 ? void 0 : _isOpenMethod$paymeth30.gateway) === 'stripe_redirect' && !paymethodData.type,
344
+ open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth34 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth34 === void 0 ? void 0 : _isOpenMethod$paymeth34.gateway) === 'stripe_redirect' && !paymethodData.type,
323
345
  className: "modal-info",
324
346
  onClose: function onClose() {
325
347
  return handlePaymethodClick(null);
@@ -331,16 +353,16 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
331
353
  handleStripeRedirect: handlePaymethodDataChange
332
354
  })), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
333
355
  title: t('SQUARE', 'Square'),
334
- open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth31 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth31 === void 0 ? void 0 : _isOpenMethod$paymeth31.gateway) === 'square' && !paymethodData.token,
356
+ open: (isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth35 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth35 === void 0 ? void 0 : _isOpenMethod$paymeth35.gateway) === 'square' && !paymethodData.token,
335
357
  onClose: function onClose() {
336
358
  return handlePaymethodClick(null);
337
359
  }
338
360
  }, /*#__PURE__*/_react.default.createElement(_PaymentOptionSquare.PaymentOptionSquare, {
339
361
  businessId: props.businessId,
340
362
  cartTotal: cart === null || cart === void 0 ? void 0 : cart.total,
341
- data: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth32 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth32 === void 0 ? void 0 : _isOpenMethod$paymeth32.credentials,
363
+ data: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth36 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth36 === void 0 ? void 0 : _isOpenMethod$paymeth36.credentials,
342
364
  body: {
343
- paymethod_id: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth33 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth33 === void 0 ? void 0 : _isOpenMethod$paymeth33.id,
365
+ paymethod_id: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : (_isOpenMethod$paymeth37 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth37 === void 0 ? void 0 : _isOpenMethod$paymeth37.id,
344
366
  amount: cart.total,
345
367
  delivery_zone_id: cart.delivery_zone_id,
346
368
  cartUuid: cart.uuid
@@ -72,7 +72,7 @@ var SectionTitle = _styledComponents.default.h3(_templateObject18 || (_templateO
72
72
  exports.SectionTitle = SectionTitle;
73
73
  var ProductComment = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-bottom: 130px;\n\n textarea {\n margin-top: 8px;\n }\n\n p {\n font-weight: 300;\n margin-bottom: 5px;\n }\n\n @media (min-width: 577px) {\n margin-bottom: 62px;\n }\n\n @media (min-width: 769px) {\n margin-bottom: 0px;\n padding-bottom: 10px;\n }\n"])));
74
74
  exports.ProductComment = ProductComment;
75
- var ProductActions = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n width: 100%;\n z-index: 9999997;\n\n position: fixed;\n bottom: 0;\n right: 0;\n width: 100%;\n background-color: #FFF;\n\n div.price {\n padding-top: 10px;\n color: ", ";\n h4 {\n margin: 0;\n font-weight: 600;\n font-size: 20px;\n line-height: 20px;\n }\n span {\n font-size: 13px;\n color: #D83520;\n line-height: 15px;\n }\n }\n\n div.incdec-control {\n width: 135px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n position: relative;\n\n svg {\n width: 25px;\n height: 25px;\n cursor: pointer;\n }\n }\n\n div.price-amount-block {\n display: flex;\n justify-content: space-between;\n width: 70%\n }\n\n svg {\n color: ", ";\n }\n\n svg.disabled {\n pointer-events: none;\n color: #CED4DA;\n }\n\n button:disabled,\n button.disabled {\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n color: #B1BCCC;\n }\n\n button.add {\n width: 90%;\n padding: 5px 10px;\n margin-top: 10px;\n position: relative;\n\n &.soldout {\n width: 100%;\n pointer-events: none;\n }\n }\n .qty {\n flex: 1;\n text-align: center;\n display: flex;\n align-items: center;\n height: 38px;\n min-width: 60px;\n box-sizing: border-box;\n padding: 0;\n margin: 0 10px;\n }\n\n #address_control {\n button.add {\n width: calc(100% - 20px) !important;\n margin: 10px 10px 0 10px;\n }\n }\n \n div#address_list {\n padding: 0;\n }\n\n @media (min-width: 577px) {\n position: sticky;\n }\n\n @media (min-width: 1200px) {\n bottom: 0px;\n flex-direction: row;\n justify-content: space-between;\n border-top: 1px solid #E9ECEF;\n width: calc(100% + 40px);\n transform: translateX(-20px);\n padding: 10px 20px;\n box-sizing: border-box;\n\n ", "\n\n div.price {\n width: 25%;\n }\n\n button.add {\n width: 35%;\n margin-top: 0;\n }\n\n div.incdec-control {\n padding-right: 18%;\n &.show-weight-unit{\n width: 30%;\n }\n }\n }\n"])), function (props) {
75
+ var ProductActions = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n width: 100%;\n z-index: 9999997;\n\n position: fixed;\n bottom: 0;\n right: 0;\n width: 100%;\n background-color: #FFF;\n\n div.price {\n padding-top: 10px;\n color: ", ";\n h4 {\n margin: 0;\n font-weight: 600;\n font-size: 20px;\n line-height: 20px;\n }\n span {\n font-size: 13px;\n color: #D83520;\n line-height: 15px;\n }\n }\n\n div.incdec-control {\n width: 135px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n position: relative;\n\n svg {\n width: 25px;\n height: 25px;\n cursor: pointer;\n }\n }\n\n div.price-amount-block {\n display: flex;\n justify-content: space-between;\n width: 70%\n }\n\n svg {\n color: ", ";\n }\n\n svg.disabled {\n pointer-events: none;\n color: #CED4DA;\n }\n\n button:disabled,\n button.disabled {\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n color: #B1BCCC;\n }\n\n button.add {\n width: 90%;\n padding: 5px 10px;\n margin-top: 10px;\n position: relative;\n\n &.soldout {\n width: 100%;\n pointer-events: none;\n }\n }\n .qty {\n flex: 1;\n text-align: center;\n display: flex;\n align-items: center;\n height: 38px;\n min-width: 60px;\n box-sizing: border-box;\n padding: 0;\n margin: 0 10px;\n }\n\n #address_control {\n button.add {\n width: calc(100% - 20px) !important;\n margin: 10px 10px 0 10px;\n }\n }\n \n div#address_list {\n padding: 0;\n }\n\n @media (min-width: 577px) {\n position: sticky;\n }\n\n @media (min-width: 1200px) {\n bottom: 0px;\n flex-direction: row;\n justify-content: space-between;\n border-top: 1px solid #E9ECEF;\n width: calc(100% + 40px);\n transform: translateX(-20px);\n padding: 10px 20px;\n box-sizing: border-box;\n\n ", "\n\n div.price {\n width: 25%;\n }\n\n button.add {\n width: 35%;\n margin-top: 0;\n }\n\n div.incdec-control {\n margin-right: 18%;\n &.show-weight-unit{\n width: 30%;\n }\n }\n }\n"])), function (props) {
76
76
  var _props$theme;
77
77
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.colors.darkTextColor;
78
78
  }, function (props) {
@@ -149,7 +149,7 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
149
149
  }, [categoryClicked]);
150
150
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isLoading && (business === null || business === void 0 ? void 0 : business.id) && /*#__PURE__*/_react.default.createElement(_styles.WrappLayout, {
151
151
  isCartOnProductsList: isCartOnProductsList
152
- }, (!hideBusinessNearCity && !useKioskApp || props.forceShowNearBusiness) && /*#__PURE__*/_react.default.createElement(_styles.NearBusiness, null, /*#__PURE__*/_react.default.createElement(_BusinessesListing.BusinessesListing, {
152
+ }, (!hideBusinessNearCity && !useKioskApp || props.forceShowNearBusiness) && !isCustomLayout && /*#__PURE__*/_react.default.createElement(_styles.NearBusiness, null, /*#__PURE__*/_react.default.createElement(_BusinessesListing.BusinessesListing, {
153
153
  logosLayout: true,
154
154
  propsToFetch: ['id', 'logo', 'location', 'timezone', 'schedule', 'open', 'slug'],
155
155
  cityId: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.city_id,
@@ -157,7 +157,7 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
157
157
  actualSlug: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.slug
158
158
  })), /*#__PURE__*/_react.default.createElement("div", {
159
159
  className: "bp-list"
160
- }, !isCustomLayout && !useKioskApp && /*#__PURE__*/_react.default.createElement(BusinessBasicInformationComponent, _extends({}, props, {
160
+ }, !useKioskApp && /*#__PURE__*/_react.default.createElement(BusinessBasicInformationComponent, _extends({}, props, {
161
161
  businessState: businessState,
162
162
  setOpenBusinessInformation: setOpenBusinessInformation,
163
163
  openBusinessInformation: openBusinessInformation,
@@ -10,7 +10,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n left: 0px;\n top: 0px;\n width: 100vw;\n height: 100vh;\n z-index: 2000;\n"])));
13
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n left: 0px;\n top: 0px;\n width: 100vw;\n height: 100vh;\n z-index: 10002;\n"])));
14
14
  exports.Container = Container;
15
15
  var BackDropContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: rgba(0,0,0,0.3);\n position: absolute;\n top: 0px;\n left: 0px;\n height: 100%;\n width: 100%;\n z-index: -1;\n"])));
16
16
  exports.BackDropContainer = BackDropContainer;
@@ -181,7 +181,7 @@ var UserDetailsUI = function UserDetailsUI(props) {
181
181
  }
182
182
  }))), !isEdit ? /*#__PURE__*/_react.default.createElement(_styles.UserData, null, ((userData === null || userData === void 0 ? void 0 : userData.name) || (userData === null || userData === void 0 ? void 0 : userData.middle_name) || (userData === null || userData === void 0 ? void 0 : userData.lastname) || (userData === null || userData === void 0 ? void 0 : userData.second_lastname)) && /*#__PURE__*/_react.default.createElement(_styles.UserName, null, userData === null || userData === void 0 ? void 0 : userData.name, " ", userData === null || userData === void 0 ? void 0 : userData.middle_name, " ", userData === null || userData === void 0 ? void 0 : userData.lastname, " ", userData === null || userData === void 0 ? void 0 : userData.second_lastname), (userData === null || userData === void 0 ? void 0 : userData.email) && /*#__PURE__*/_react.default.createElement("p", null, userData === null || userData === void 0 ? void 0 : userData.email), ((userData === null || userData === void 0 ? void 0 : userData.cellphone) || (user === null || user === void 0 ? void 0 : user.cellphone)) && /*#__PURE__*/_react.default.createElement(_styles.PhoneContainer, null, /*#__PURE__*/_react.default.createElement(_styles.CountryFlag, null, (userData === null || userData === void 0 ? void 0 : userData.country_phone_code) && /*#__PURE__*/_react.default.createElement(_reactPhoneNumberInput.default, {
183
183
  onChange: function onChange() {},
184
- defaultCountry: (_parsePhoneNumber = (0, _libphonenumberJs.parsePhoneNumber)("+".concat(userData === null || userData === void 0 ? void 0 : (_userData$country_pho = userData.country_phone_code) === null || _userData$country_pho === void 0 ? void 0 : _userData$country_pho.replace('+', ''), " ").concat(userData === null || userData === void 0 ? void 0 : userData.cellphone))) === null || _parsePhoneNumber === void 0 ? void 0 : _parsePhoneNumber.country
184
+ defaultCountry: (_parsePhoneNumber = (0, _libphonenumberJs.parsePhoneNumber)("+".concat(userData === null || userData === void 0 ? void 0 : (_userData$country_pho = userData.country_phone_code) === null || _userData$country_pho === void 0 ? void 0 : _userData$country_pho.replace('+', ''), " ").concat(userData === null || userData === void 0 ? void 0 : userData.cellphone.replace("+".concat(userData === null || userData === void 0 ? void 0 : userData.country_phone_code), '')))) === null || _parsePhoneNumber === void 0 ? void 0 : _parsePhoneNumber.country
185
185
  })), /*#__PURE__*/_react.default.createElement("p", null, userData === null || userData === void 0 ? void 0 : userData.cellphone))) : /*#__PURE__*/_react.default.createElement(_styles.SideForm, null, /*#__PURE__*/_react.default.createElement(_UserFormDetails.UserFormDetailsUI, _extends({}, props, {
186
186
  userData: userData,
187
187
  isCustomerMode: isCustomerMode,
@@ -24,7 +24,7 @@ var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObje
24
24
  return props.isChew ? props.theme.colors.backgroundPage : props.theme.colors.darkTextColor;
25
25
  });
26
26
  exports.HeaderItem = HeaderItem;
27
- var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 20px 15px;\n border-radius: 10px;\n max-width: 500px;\n min-width: 300px !important;\n z-index: 1001;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])));
27
+ var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 20px 15px;\n border-radius: 10px;\n max-width: 500px;\n min-width: 300px !important;\n z-index: 10002;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])));
28
28
  exports.PopoverBody = PopoverBody;
29
29
  var PopoverList = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
30
30
  exports.PopoverList = PopoverList;
@@ -28,7 +28,8 @@ var Select = function Select(props) {
28
28
  notReload = props.notReload,
29
29
  CustomArrow = props.CustomArrow,
30
30
  isHomeStyle = props.isHomeStyle,
31
- disableOneOption = props.disableOneOption;
31
+ disableOneOption = props.disableOneOption,
32
+ zIndex = props.zIndex;
32
33
  var isHome = window.location.pathname === '/' || window.location.pathname === '/home' || isHomeStyle;
33
34
  var _useState = (0, _react.useState)(false),
34
35
  _useState2 = _slicedToArray(_useState, 2),
@@ -106,7 +107,8 @@ var Select = function Select(props) {
106
107
  id: "list",
107
108
  position: "right",
108
109
  ref: dropdownReference,
109
- isHome: isHome
110
+ isHome: isHome,
111
+ zIndex: zIndex
110
112
  }, options.map(function (option, i) {
111
113
  return /*#__PURE__*/_react.default.createElement(_Selects.Option, {
112
114
  id: "item",
@@ -21,14 +21,17 @@ var Option = _styledComponents.default.div(_templateObject || (_templateObject =
21
21
  });
22
22
  });
23
23
  exports.Option = Option;
24
- var Options = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n background-color: #CCC;\n margin-top: 7px;\n z-index: 10000;\n border-width: 1px;\n border-style: solid;\n border-color: #CCC;\n border-radius: 15px;\n overflow: hidden;\n\n ", "\n ", "\n"])), function (_ref2) {
25
- var position = _ref2.position;
24
+ var Options = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n background-color: #CCC;\n margin-top: 7px;\n z-index: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: #CCC;\n border-radius: 15px;\n overflow: hidden;\n\n ", "\n ", "\n"])), function (_ref2) {
25
+ var zIndex = _ref2.zIndex;
26
+ return zIndex || 10002;
27
+ }, function (_ref3) {
28
+ var position = _ref3.position;
26
29
  return (position === null || position === void 0 ? void 0 : position.toLowerCase()) === 'left' && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n left: 0;\n margin-left: -1px;\n ", "\n "])), function (props) {
27
30
  var _props$theme2;
28
31
  return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: -1px;\n margin-left: 0px;\n right: 0;\n left: initial\n "])));
29
32
  });
30
- }, function (_ref3) {
31
- var position = _ref3.position;
33
+ }, function (_ref4) {
34
+ var position = _ref4.position;
32
35
  return (position === null || position === void 0 ? void 0 : position.toLowerCase()) === 'right' && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n right: 0;\n margin-right: -1px;\n ", "\n "])), function (props) {
33
36
  var _props$theme3;
34
37
  return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-left: -1px;\n margin-right: 0px;\n left: 0;\n right: initial;\n "])));
@@ -17,7 +17,7 @@ var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObje
17
17
  return isBanner && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: #F8F9FA;\n border-radius: 7.6px;\n padding: 4px 8px;\n "])));
18
18
  });
19
19
  exports.HeaderItem = HeaderItem;
20
- var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 15px;\n padding-top: 30px;\n border-radius: 10px;\n max-width: 500px;\n z-index: 1001;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n #moment_control h1{\n margin-bottom: 30px;\n }\n"])));
20
+ var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 15px;\n padding-top: 30px;\n border-radius: 10px;\n max-width: 500px;\n z-index: 10002;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n #moment_control h1{\n margin-bottom: 30px;\n }\n @media (min-width: 576px) {\n z-index: 1001;\n }\n"])));
21
21
  exports.PopoverBody = PopoverBody;
22
22
  var PopoverArrow = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 0; \n height: 0; \n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 8px solid #FFF;\n top: -8px;\n"])));
23
23
  exports.PopoverArrow = PopoverArrow;
package/index.html CHANGED
@@ -13,7 +13,7 @@
13
13
  <style type="text/css" id="styles"></style>
14
14
  <style>
15
15
  .pac-container {
16
- z-index: 10000 !important;
16
+ z-index: 100000 !important;
17
17
  }
18
18
  .smartbanner-show.smartbanner-margin-top{margin-top:80px}.smartbanner-show.smartbanner-margin-bottom{margin-bottom:80px}.smartbanner-show .smartbanner{display:block}.smartbanner{left:0;display:none;width:100%;height:80px;line-height:80px;font-family:Helvetica Neue,sans-serif;background:#f4f4f4;z-index:9998;-webkit-font-smoothing:antialiased;overflow:hidden;-webkit-text-size-adjust:none}.smartbanner-top{position:absolute;top:0}.smartbanner-bottom{position:fixed;bottom:0}.smartbanner-container{margin:0 auto;padding:0 5px}.smartbanner-close{display:inline-block;vertical-align:middle;margin:0 5px 0 0;font-family:ArialRoundedMTBold,Arial;font-size:20px;text-align:center;color:#888;text-decoration:none;border:0;border-radius:14px;padding:0 0 1px;background-color:transparent;-webkit-font-smoothing:subpixel-antialiased}.smartbanner-close:active,.smartbanner-close:hover{color:#aaa}.smartbanner-icon{width:57px;height:57px;margin-right:12px;background-size:cover;border-radius:10px}.smartbanner-icon,.smartbanner-info{display:inline-block;vertical-align:middle}.smartbanner-info{white-space:normal;width:calc(99% - 201px);font-size:11px;line-height:1.2em;font-weight:700}.smartbanner-wrapper{max-width:110px;display:inline-block;text-align:right;width:100%}.smartbanner-title{font-size:13px;line-height:18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.smartbanner-description{max-height:40px;overflow:hidden}.smartbanner-author{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.smartbanner-author:empty+.smartbanner-description{max-height:50px}.smartbanner-button{margin:auto 0;height:24px;font-size:14px;line-height:24px;text-align:center;font-weight:700;color:#6a6a6a;text-transform:uppercase;text-decoration:none;display:inline-block;text-shadow:0 1px 0 hsla(0,0%,100%,.8)}.smartbanner-button:active,.smartbanner-button:hover{color:#aaa}.smartbanner-ios{background:#f2f2f2;box-shadow:0 1px 1px rgba(0,0,0,.2);line-height:80px}.smartbanner-ios .smartbanner-close{border:0;width:18px;height:18px;line-height:18px;font-family:Arial;color:#888;text-shadow:0 1px 0 #fff;-webkit-font-smoothing:none}.smartbanner-ios .smartbanner-close:active,.smartbanner-ios .smartbanner-close:hover{color:#888}.smartbanner-ios .smartbanner-icon{background-size:cover}.smartbanner-ios .smartbanner-info{color:#6a6a6a;text-shadow:0 1px 0 hsla(0,0%,100%,.8);font-weight:300}.smartbanner-ios .smartbanner-title{color:#4d4d4d;font-weight:500}.smartbanner-ios .smartbanner-button{padding:0 10px;font-size:15px;min-width:10%;font-weight:400;color:#0c71fd}.smartbanner-ios .smartbanner-button:active,.smartbanner-ios .smartbanner-button:hover{background:#f2f2f2}.smartbanner-android{background:#3d3d3d url("data:image/gif;base64,R0lGODlhCAAIAIABAFVVVf///yH5BAEHAAEALAAAAAAIAAgAAAINRG4XudroGJBRsYcxKAA7");box-shadow:inset 0 4px 0 #88b131;line-height:82px}.smartbanner-android .smartbanner-close{border:0;max-width:17px;width:100%;height:17px;line-height:17px;margin-right:7px;color:#b1b1b3;background:#1c1e21;text-shadow:0 1px 1px #000;text-decoration:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.8),0 1px 1px hsla(0,0%,100%,.3);cursor:pointer}.smartbanner-android .smartbanner-close:active,.smartbanner-android .smartbanner-close:hover{color:#eee}.smartbanner-android .smartbanner-icon{background-color:transparent;box-shadow:none}.smartbanner-android .smartbanner-info{color:#ccc;text-shadow:0 1px 2px #000}.smartbanner-android .smartbanner-title{color:#fff;font-weight:700}.smartbanner-android .smartbanner-button{min-width:12%;color:#d1d1d1;font-weight:700;padding:0;background:none;border-radius:0;box-shadow:0 0 0 1px #333,0 0 0 2px #dddcdc}.smartbanner-android .smartbanner-button:active,.smartbanner-android .smartbanner-button:hover{background:none}.smartbanner-android .smartbanner-button-text{text-align:center;display:block;padding:0 10px;background:#42b6c9;background:linear-gradient(180deg,#42b6c9,#39a9bb);text-transform:none;text-shadow:none;box-shadow:none}.smartbanner-android .smartbanner-button-text:active,.smartbanner-android .smartbanner-button-text:hover{background:#2ac7e1}.smartbanner-kindle,.smartbanner-windows{background:#f4f4f4;background:linear-gradient(180deg,#f4f4f4,#cdcdcd);box-shadow:0 1px 2px rgba(0,0,0,.5);line-height:80px}.smartbanner-kindle .smartbanner-close,.smartbanner-windows .smartbanner-close{border:0;width:18px;height:18px;line-height:18px;color:#888;text-shadow:0 1px 0 #fff}.smartbanner-kindle .smartbanner-close:active,.smartbanner-kindle .smartbanner-close:hover,.smartbanner-windows .smartbanner-close:active,.smartbanner-windows .smartbanner-close:hover{color:#aaa}.smartbanner-kindle .smartbanner-icon,.smartbanner-windows .smartbanner-icon{background:rgba(0,0,0,.6);background-size:cover;box-shadow:0 1px 3px rgba(0,0,0,.3)}.smartbanner-kindle .smartbanner-info,.smartbanner-windows .smartbanner-info{color:#6a6a6a;text-shadow:0 1px 0 hsla(0,0%,100%,.8)}.smartbanner-kindle .smartbanner-title,.smartbanner-windows .smartbanner-title{color:#4d4d4d;font-weight:700}.smartbanner-kindle .smartbanner-button,.smartbanner-windows .smartbanner-button{padding:0 10px;min-width:10%;color:#6a6a6a;background:#efefef;background:linear-gradient(180deg,#efefef,#dcdcdc);border-radius:3px;box-shadow:inset 0 0 0 1px #bfbfbf,0 1px 0 hsla(0,0%,100%,.6),inset 0 2px 0 hsla(0,0%,100%,.7)}.smartbanner-kindle .smartbanner-button:active,.smartbanner-kindle .smartbanner-button:hover,.smartbanner-windows .smartbanner-button:active,.smartbanner-windows .smartbanner-button:hover{background:#dcdcdc;background:linear-gradient(180deg,#dcdcdc,#efefef)}
19
19
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "2.6.7",
3
+ "version": "2.7.0",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -87,10 +87,12 @@
87
87
  "lodash": "^4.17.19",
88
88
  "moment": "^2.29.4",
89
89
  "nanoid": "^4.0.0",
90
- "ordering-components-external": "2.7.4",
90
+ "ordering-components-external": "2.8.0",
91
+ "payment": "^2.4.6",
91
92
  "polished": "^3.6.6",
92
93
  "react-bootstrap-icons": "^1.7.2",
93
94
  "react-calendar": "^3.3.1",
95
+ "react-credit-cards-2": "^0.10.0",
94
96
  "react-datepicker": "^4.1.1",
95
97
  "react-helmet": "^6.1.0",
96
98
  "react-hook-form": "^6.8.1",
@@ -22,6 +22,7 @@ const LanguageSelectorUI = (props) => {
22
22
  return (
23
23
  _languages && _languages.length > 1 ? (
24
24
  <Select
25
+ zIndex={10002}
25
26
  options={languagesState?.loading ? defaultLanguages : _languages}
26
27
  defaultValue={languagesState?.loading ? defaultCurrentLanguage : currentLanguage}
27
28
  onChange={(languageId) => handleChangeLanguage(languageId)}
@@ -14,7 +14,8 @@ const OrderTypeSelectorHeaderUI = (props) => {
14
14
  typeSelected,
15
15
  defaultValue,
16
16
  configTypes,
17
- orderTypes
17
+ orderTypes,
18
+ autoCloseWhenScroll
18
19
  } = props
19
20
 
20
21
  const defaultType = configTypes?.includes(typeSelected) ? null : configTypes?.[0]
@@ -22,6 +23,7 @@ const OrderTypeSelectorHeaderUI = (props) => {
22
23
  return (
23
24
  <OrderTypeWrapper>
24
25
  <Select
26
+ autoCloseWhenScroll={autoCloseWhenScroll}
25
27
  options={configTypes
26
28
  ? orderTypes.filter(type => configTypes?.includes(type.value))
27
29
  : orderTypes
@@ -1,15 +1,17 @@
1
1
  import React from 'react'
2
2
  import { useLanguage, SmartAppBanner as SmartAppBannerController } from 'ordering-components-external'
3
3
  import SmartBanner from 'react-smartbanner'
4
+ import { useTheme } from 'styled-components'
4
5
 
5
6
  const SmartAppBanneUI = (props) => {
6
7
  const [, t] = useLanguage()
8
+ const theme = useTheme()
7
9
 
8
10
  return (
9
11
  <>
10
12
  <SmartBanner
11
- title={t('MOBILE_APPNAME', 'Ordering app')}
12
- author={t('MOBILE_APPNAME_AUTHOR', 'Ordering, Inc.')}
13
+ title={t('MOBILE_APPNAME', theme?.defaultLanguages?.MOBILE_APPNAME || 'Ordering app')}
14
+ author={t('MOBILE_APPNAME_AUTHOR', theme?.defaultLanguages?.MOBILE_APPNAME_AUTHOR || 'Ordering, Inc.')}
13
15
  daysHidden={7}
14
16
  daysReminder={15}
15
17
  button={t('VIEW', 'View')}
@@ -82,7 +82,7 @@ export const ThemeProvider = ({ children, ...props }) => {
82
82
  bottom: 0;
83
83
  left: 0;
84
84
  right: 0;
85
- z-index: 2000;
85
+ z-index: 20002;
86
86
  }
87
87
  .popup-component {
88
88
  background-color: rgba(0, 0, 0, 0.3);
@@ -18,7 +18,9 @@ export const Select = (props) => {
18
18
  defaultValue,
19
19
  onChange,
20
20
  notAsync,
21
- notReload
21
+ notReload,
22
+ autoCloseWhenScroll,
23
+ zIndex
22
24
  } = props
23
25
 
24
26
  const isHome = window.location.pathname === '/' || window.location.pathname === '/home'
@@ -49,9 +51,16 @@ export const Select = (props) => {
49
51
  }
50
52
 
51
53
  useEffect(() => {
54
+ const handleCloseSelect = () => setOpen(false)
52
55
  document.addEventListener('mouseup', closeSelect)
53
56
  document.addEventListener('keydown', handleKeyDown)
57
+ if (autoCloseWhenScroll) {
58
+ window.addEventListener('scroll', handleCloseSelect)
59
+ }
54
60
  return () => {
61
+ if (autoCloseWhenScroll) {
62
+ window.removeEventListener('scroll', handleCloseSelect)
63
+ }
55
64
  document.removeEventListener('mouseup', closeSelect)
56
65
  document.removeEventListener('keydown', handleKeyDown)
57
66
  }
@@ -100,7 +109,7 @@ export const Select = (props) => {
100
109
  </Selected>
101
110
  )}
102
111
  {open && options && (
103
- <Options id='list' position='right' ref={dropdownReference}>
112
+ <Options id='list' position='right' ref={dropdownReference} zIndex={zIndex}>
104
113
  {
105
114
  options.map(option => (
106
115
  <Option
@@ -37,7 +37,7 @@ export const Options = styled.div`
37
37
  position: absolute;
38
38
  background-color: #CCC;
39
39
  margin-top: 7px;
40
- z-index: 10000;
40
+ z-index: ${({ zIndex }) => zIndex || 10000};
41
41
  border-width: 1px;
42
42
  border-style: solid;
43
43
  border-color: #CCC;
@@ -115,6 +115,9 @@ import { ActionsSection } from './src/components/OrderDetails/ActionsSection'
115
115
  import { ProductShare } from './src/components/ProductShare'
116
116
  import { MultiCart } from './src/components/MultiCart'
117
117
  import { QueryLoginSpoonity } from './src/components/QueryLoginSpoonity'
118
+ import { Confirm } from './src/components/Confirm'
119
+ import { TaxInformation } from './src/components/TaxInformation'
120
+ import { SendGiftCard } from './src/components/GiftCard/SendGiftCard'
118
121
 
119
122
  import { Button } from './src/styles/Buttons'
120
123
  import { Input, TextArea } from './src/styles/Inputs'
@@ -241,6 +244,9 @@ export {
241
244
  ProductShare,
242
245
  MultiCart,
243
246
  QueryLoginSpoonity,
247
+ Confirm,
248
+ TaxInformation,
249
+ SendGiftCard,
244
250
  // styles
245
251
  Button,
246
252
  Input,