ordering-ui-external 10.1.0 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/{0.ordering-ui.e9827c5566d8cce0eaa4.js → 0.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{1.ordering-ui.e9827c5566d8cce0eaa4.js → 1.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{2.ordering-ui.e9827c5566d8cce0eaa4.js → 2.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{4.ordering-ui.e9827c5566d8cce0eaa4.js → 4.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{5.ordering-ui.e9827c5566d8cce0eaa4.js → 5.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{6.ordering-ui.e9827c5566d8cce0eaa4.js → 6.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{7.ordering-ui.e9827c5566d8cce0eaa4.js → 7.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +2 -2
- package/_bundles/{8.ordering-ui.e9827c5566d8cce0eaa4.js → 8.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/{9.ordering-ui.e9827c5566d8cce0eaa4.js → 9.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
- package/_bundles/ordering-ui.d1a8d1fbf5b112d5d9a9.js +2 -0
- package/_modules/components/BusinessBasicInformation/index.js +7 -10
- package/_modules/components/OrderDetails/index.js +14 -17
- package/_modules/components/ProductItemAccordion/index.js +4 -5
- package/_modules/components/RenderProductsLayout/SearchProducts/index.js +2 -5
- package/_modules/components/UserFormDetails/index.js +7 -8
- package/_modules/components/UserProfileForm/ProfileOptions/index.js +4 -5
- package/_modules/components/UserProfileForm/index.js +10 -11
- package/_modules/contexts/ThemeContext/index.js +1 -1
- package/_modules/themes/five/src/components/AddressList/index.js +0 -3
- package/_modules/themes/five/src/components/BusinessController/index.js +14 -17
- package/_modules/themes/five/src/components/BusinessController/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessInformation/styles.js +19 -14
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +51 -10
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +32 -25
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +2 -5
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +11 -4
- package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +11 -12
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +22 -3
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +5 -10
- package/_modules/themes/five/src/components/Cart/index.js +17 -9
- package/_modules/themes/five/src/components/CartPopover/index.js +4 -7
- package/_modules/themes/five/src/components/CartPopover/styles.js +4 -1
- package/_modules/themes/five/src/components/Checkout/index.js +8 -8
- package/_modules/themes/five/src/components/Confirm/styles.js +16 -13
- package/_modules/themes/five/src/components/DatePicker/index.js +2 -1
- package/_modules/themes/five/src/components/Favorite/index.js +4 -5
- package/_modules/themes/five/src/components/Footer/index.js +2 -3
- package/_modules/themes/five/src/components/Header/index.js +5 -8
- package/_modules/themes/five/src/components/HeaderOption/index.js +4 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -10
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
- package/_modules/themes/five/src/components/Modal/styles.js +4 -2
- package/_modules/themes/five/src/components/MomentContent/index.js +16 -6
- package/_modules/themes/five/src/components/MomentControl/index.js +44 -34
- package/_modules/themes/five/src/components/MomentControl/styles.js +49 -27
- package/_modules/themes/five/src/components/OrderDetails/index.js +31 -24
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -7
- package/_modules/themes/five/src/components/OrderProgress/index.js +5 -1
- package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +11 -1
- package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -5
- package/_modules/themes/five/src/components/OrdersOption/index.js +7 -22
- package/_modules/themes/five/src/components/OrdersOption/styles.js +38 -35
- package/_modules/themes/five/src/components/PageBanner/index.js +79 -58
- package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +2 -1
- package/_modules/themes/five/src/components/ProductForm/styles.js +12 -9
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +0 -3
- package/_modules/themes/five/src/components/ProductOption/styles.js +4 -1
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +8 -9
- package/_modules/themes/five/src/components/SignUpForm/index.js +5 -5
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +0 -3
- package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
- package/_modules/themes/five/src/components/UserDetails/styles.js +1 -1
- package/_modules/themes/five/src/components/UserFormDetails/index.js +3 -6
- package/_modules/themes/five/src/components/UserPopover/index.js +3 -6
- package/_modules/themes/five/src/components/UserPopover/styles.js +8 -5
- package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -5
- package/_modules/themes/five/src/components/UserProfileForm/index.js +2 -5
- package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +8 -9
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -6
- package/package.json +2 -2
- package/src/components/BusinessBasicInformation/index.js +7 -8
- package/src/components/OrderDetails/index.js +14 -16
- package/src/components/ProductItemAccordion/index.js +4 -3
- package/src/components/RenderProductsLayout/SearchProducts/index.js +2 -3
- package/src/components/UserFormDetails/index.js +6 -5
- package/src/components/UserProfileForm/ProfileOptions/index.js +4 -4
- package/src/components/UserProfileForm/index.js +10 -10
- package/src/contexts/ThemeContext/index.js +1 -1
- package/src/themes/five/src/components/AddressForm/index.js +1 -2
- package/src/themes/five/src/components/AddressList/index.js +1 -3
- package/src/themes/five/src/components/BusinessController/index.js +5 -7
- package/src/themes/five/src/components/BusinessController/styles.js +1 -1
- package/src/themes/five/src/components/BusinessInformation/index.js +1 -2
- package/src/themes/five/src/components/BusinessInformation/styles.js +2 -2
- package/src/themes/five/src/components/BusinessPreorder/index.js +61 -10
- package/src/themes/five/src/components/BusinessPreorder/styles.js +93 -43
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +2 -3
- package/src/themes/five/src/components/BusinessProductsList/index.js +1 -2
- package/src/themes/five/src/components/BusinessProductsListing/index.js +10 -3
- package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +17 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +6 -7
- package/src/themes/five/src/components/Cart/index.js +11 -4
- package/src/themes/five/src/components/CartPopover/index.js +2 -3
- package/src/themes/five/src/components/CartPopover/styles.js +1 -1
- package/src/themes/five/src/components/Checkout/index.js +5 -6
- package/src/themes/five/src/components/Confirm/styles.js +1 -1
- package/src/themes/five/src/components/DatePicker/index.js +1 -0
- package/src/themes/five/src/components/Favorite/index.js +4 -3
- package/src/themes/five/src/components/Footer/index.js +3 -2
- package/src/themes/five/src/components/Header/index.js +4 -5
- package/src/themes/five/src/components/HeaderOption/index.js +4 -3
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -8
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -0
- package/src/themes/five/src/components/Modal/styles.js +1 -1
- package/src/themes/five/src/components/MomentContent/index.js +17 -8
- package/src/themes/five/src/components/MomentControl/index.js +83 -45
- package/src/themes/five/src/components/MomentControl/styles.js +137 -34
- package/src/themes/five/src/components/MyOrders/index.js +1 -1
- package/src/themes/five/src/components/OrderDetails/index.js +50 -21
- package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -6
- package/src/themes/five/src/components/OrderProgress/index.js +5 -1
- package/src/themes/five/src/components/OrderTypeSelectorContent/index.js +13 -1
- package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -3
- package/src/themes/five/src/components/OrdersOption/index.js +3 -17
- package/src/themes/five/src/components/OrdersOption/styles.js +3 -4
- package/src/themes/five/src/components/PageBanner/index.js +65 -51
- package/src/themes/five/src/components/PhoneAutocomplete/index.js +1 -0
- package/src/themes/five/src/components/ProductForm/styles.js +1 -1
- package/src/themes/five/src/components/ProductItemAccordion/index.js +1 -2
- package/src/themes/five/src/components/ProductOption/styles.js +1 -1
- package/src/themes/five/src/components/RenderProductsLayout/index.js +9 -6
- package/src/themes/five/src/components/SignUpForm/index.js +6 -6
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +1 -2
- package/src/themes/five/src/components/UserDetails/index.js +1 -1
- package/src/themes/five/src/components/UserDetails/styles.js +3 -0
- package/src/themes/five/src/components/UserFormDetails/index.js +3 -4
- package/src/themes/five/src/components/UserPopover/index.js +3 -4
- package/src/themes/five/src/components/UserPopover/styles.js +1 -1
- package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -3
- package/src/themes/five/src/components/UserProfileForm/index.js +2 -4
- package/src/themes/six/src/components/BusinessBasicInformation/index.js +8 -7
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +2 -3
- package/template/app.js +15 -10
- package/template/components/HelmetTags/index.js +3 -2
- package/template/pages/AddressList/index.js +4 -3
- package/template/pages/BusinessProductsList/index.js +5 -4
- package/template/pages/BusinessesList/index.js +6 -6
- package/template/pages/Checkout/index.js +6 -4
- package/template/pages/Home/index.js +4 -2
- package/template/pages/MessagesList/index.js +5 -4
- package/template/pages/MyOrders/index.js +6 -5
- package/template/pages/OrderDetails/index.js +4 -3
- package/_bundles/ordering-ui.e9827c5566d8cce0eaa4.js +0 -2
- package/template/components/OrderingThemeUpdated/index.js +0 -41
- /package/_bundles/{7.ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt → 7.ordering-ui.d1a8d1fbf5b112d5d9a9.js.LICENSE.txt} +0 -0
- /package/_bundles/{ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt → ordering-ui.d1a8d1fbf5b112d5d9a9.js.LICENSE.txt} +0 -0
|
@@ -26,7 +26,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
var types = ['food', 'laundry', 'alcohol', 'groceries'];
|
|
28
28
|
var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
29
|
-
var
|
|
29
|
+
var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15, _theme$business_view16, _theme$business_view17, _theme$business_view18, _theme$business_view19, _theme$business_view20, _theme$business_view21, _theme$business_view22, _theme$business_view23, _theme$business_view24, _theme$business_view25, _theme$business_view26, _theme$business_view27, _theme$business_view28, _theme$business_view29, _theme$business_view30, _theme$business_view31, _theme$business_view32, _theme$business_view33, _theme$business_view34, _theme$business_view35, _theme$business_view36, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images$dummies, _business$reviews, _orderState$options, _props$afterComponent, _props$afterElements;
|
|
30
30
|
var isSkeleton = props.isSkeleton,
|
|
31
31
|
businessState = props.businessState,
|
|
32
32
|
setOpenBusinessInformation = props.setOpenBusinessInformation,
|
|
@@ -46,9 +46,6 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
46
46
|
parsePrice = _useUtils2$.parsePrice,
|
|
47
47
|
parseDistance = _useUtils2$.parseDistance,
|
|
48
48
|
optimizeImage = _useUtils2$.optimizeImage;
|
|
49
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
50
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
51
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
52
49
|
var getBusinessType = function getBusinessType() {
|
|
53
50
|
if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
|
|
54
51
|
var _types = [];
|
|
@@ -58,12 +55,12 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
58
55
|
});
|
|
59
56
|
return _types.join(', ');
|
|
60
57
|
};
|
|
61
|
-
var showLogo = !(
|
|
62
|
-
var showDeliveryFee = !(
|
|
63
|
-
var showTime = !(
|
|
64
|
-
var showBusinessInfo = !(
|
|
65
|
-
var showReviews = !(
|
|
66
|
-
var showDistance = !(
|
|
58
|
+
var showLogo = !(theme !== null && theme !== void 0 && (_theme$business_view = theme.business_view) !== null && _theme$business_view !== void 0 && (_theme$business_view$ = _theme$business_view.components) !== null && _theme$business_view$ !== void 0 && (_theme$business_view$2 = _theme$business_view$.header) !== null && _theme$business_view$2 !== void 0 && (_theme$business_view$3 = _theme$business_view$2.components) !== null && _theme$business_view$3 !== void 0 && (_theme$business_view$4 = _theme$business_view$3.business) !== null && _theme$business_view$4 !== void 0 && (_theme$business_view$5 = _theme$business_view$4.components) !== null && _theme$business_view$5 !== void 0 && (_theme$business_view$6 = _theme$business_view$5.logo) !== null && _theme$business_view$6 !== void 0 && _theme$business_view$6.hidden);
|
|
59
|
+
var showDeliveryFee = !(theme !== null && theme !== void 0 && (_theme$business_view2 = theme.business_view) !== null && _theme$business_view2 !== void 0 && (_theme$business_view3 = _theme$business_view2.components) !== null && _theme$business_view3 !== void 0 && (_theme$business_view4 = _theme$business_view3.header) !== null && _theme$business_view4 !== void 0 && (_theme$business_view5 = _theme$business_view4.components) !== null && _theme$business_view5 !== void 0 && (_theme$business_view6 = _theme$business_view5.business) !== null && _theme$business_view6 !== void 0 && (_theme$business_view7 = _theme$business_view6.components) !== null && _theme$business_view7 !== void 0 && (_theme$business_view8 = _theme$business_view7.fee) !== null && _theme$business_view8 !== void 0 && _theme$business_view8.hidden);
|
|
60
|
+
var showTime = !(theme !== null && theme !== void 0 && (_theme$business_view9 = theme.business_view) !== null && _theme$business_view9 !== void 0 && (_theme$business_view10 = _theme$business_view9.components) !== null && _theme$business_view10 !== void 0 && (_theme$business_view11 = _theme$business_view10.header) !== null && _theme$business_view11 !== void 0 && (_theme$business_view12 = _theme$business_view11.components) !== null && _theme$business_view12 !== void 0 && (_theme$business_view13 = _theme$business_view12.business) !== null && _theme$business_view13 !== void 0 && (_theme$business_view14 = _theme$business_view13.components) !== null && _theme$business_view14 !== void 0 && (_theme$business_view15 = _theme$business_view14.time) !== null && _theme$business_view15 !== void 0 && _theme$business_view15.hidden);
|
|
61
|
+
var showBusinessInfo = !(theme !== null && theme !== void 0 && (_theme$business_view16 = theme.business_view) !== null && _theme$business_view16 !== void 0 && (_theme$business_view17 = _theme$business_view16.components) !== null && _theme$business_view17 !== void 0 && (_theme$business_view18 = _theme$business_view17.header) !== null && _theme$business_view18 !== void 0 && (_theme$business_view19 = _theme$business_view18.components) !== null && _theme$business_view19 !== void 0 && (_theme$business_view20 = _theme$business_view19.business) !== null && _theme$business_view20 !== void 0 && (_theme$business_view21 = _theme$business_view20.components) !== null && _theme$business_view21 !== void 0 && (_theme$business_view22 = _theme$business_view21.business_info) !== null && _theme$business_view22 !== void 0 && _theme$business_view22.hidden);
|
|
62
|
+
var showReviews = !(theme !== null && theme !== void 0 && (_theme$business_view23 = theme.business_view) !== null && _theme$business_view23 !== void 0 && (_theme$business_view24 = _theme$business_view23.components) !== null && _theme$business_view24 !== void 0 && (_theme$business_view25 = _theme$business_view24.header) !== null && _theme$business_view25 !== void 0 && (_theme$business_view26 = _theme$business_view25.components) !== null && _theme$business_view26 !== void 0 && (_theme$business_view27 = _theme$business_view26.business) !== null && _theme$business_view27 !== void 0 && (_theme$business_view28 = _theme$business_view27.components) !== null && _theme$business_view28 !== void 0 && (_theme$business_view29 = _theme$business_view28.reviews) !== null && _theme$business_view29 !== void 0 && _theme$business_view29.hidden);
|
|
63
|
+
var showDistance = !(theme !== null && theme !== void 0 && (_theme$business_view30 = theme.business_view) !== null && _theme$business_view30 !== void 0 && (_theme$business_view31 = _theme$business_view30.components) !== null && _theme$business_view31 !== void 0 && (_theme$business_view32 = _theme$business_view31.header) !== null && _theme$business_view32 !== void 0 && (_theme$business_view33 = _theme$business_view32.components) !== null && _theme$business_view33 !== void 0 && (_theme$business_view34 = _theme$business_view33.business) !== null && _theme$business_view34 !== void 0 && (_theme$business_view35 = _theme$business_view34.components) !== null && _theme$business_view35 !== void 0 && (_theme$business_view36 = _theme$business_view35.distance) !== null && _theme$business_view36 !== void 0 && _theme$business_view36.hidden);
|
|
67
64
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
|
|
68
65
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
69
66
|
key: i
|
|
@@ -46,7 +46,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
46
46
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
47
47
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
48
48
|
var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
49
|
-
var
|
|
49
|
+
var _theme$confirmation, _theme$confirmation$c, _theme$confirmation$c2, _theme$confirmation$c3, _theme$confirmation$c4, _theme$confirmation2, _theme$confirmation2$, _theme$confirmation2$2, _theme$confirmation2$3, _theme$confirmation2$4, _theme$confirmation3, _theme$confirmation3$, _theme$confirmation3$2, _theme$confirmation3$3, _theme$confirmation3$4, _theme$confirmation4, _theme$confirmation4$, _theme$confirmation4$2, _theme$confirmation4$3, _theme$confirmation4$4, _theme$confirmation5, _theme$confirmation5$, _theme$confirmation5$2, _theme$confirmation5$3, _theme$confirmation5$4, _theme$confirmation6, _theme$confirmation6$, _theme$confirmation6$2, _theme$confirmation6$3, _theme$confirmation6$4, _theme$confirmation7, _theme$confirmation7$, _theme$confirmation7$2, _theme$confirmation7$3, _theme$confirmation7$4, _theme$confirmation8, _theme$confirmation8$, _theme$confirmation8$2, _theme$confirmation8$3, _theme$confirmation8$4, _theme$confirmation9, _theme$confirmation9$, _theme$confirmation9$2, _theme$confirmation9$3, _theme$confirmation9$4, _theme$confirmation10, _theme$confirmation11, _theme$confirmation12, _theme$confirmation13, _theme$confirmation14, _theme$confirmation15, _theme$confirmation16, _theme$confirmation17, _theme$confirmation18, _theme$confirmation19, _theme$confirmation20, _theme$confirmation21, _theme$confirmation22, _theme$confirmation23, _theme$confirmation24, _theme$confirmation25, _theme$confirmation26, _theme$confirmation27, _theme$confirmation28, _theme$confirmation29, _order$driver, _order$driver2, _theme$images2, _theme$images2$dummie, _order$business, _order$business2, _theme$images3, _theme$images3$dummie, _order$customer, _order$customer2, _theme$images4, _theme$images4$dummie, _props$beforeElements, _props$beforeComponen, _theme$defaultLanguag25, _theme$defaultLanguag26, _order$business3, _theme$images5, _theme$images5$dummie, _order$business4, _order$business5, _order$business6, _order$business7, _theme$defaultLanguag27, _theme$defaultLanguag28, _getOrderStatus, _getOrderStatus2, _theme$defaultLanguag29, _order$customer3, _order$customer4, _order$customer5, _order$customer6, _order$customer7, _order$delivery_optio, _order$delivery_optio2, _order$delivery_optio3, _configs$guest_uuid_a, _theme$defaultLanguag30, _theme$defaultLanguag31, _theme$defaultLanguag32, _order$driver3, _configs$google_maps_, _order$driver4, _theme$defaultLanguag33, _order$driver5, _order$driver6, _order$driver7, _order$driver8, _theme$defaultLanguag34, _order$driver9, _theme$defaultLanguag35, _order$products, _theme$defaultLanguag36, _order$summary$subtot, _order$summary2, _ref, _order$summary3, _order$offers, _theme$defaultLanguag37, _theme$defaultLanguag38, _order$summary$discou, _order$summary4, _order$offers2, _order$offers3, _order$offers3$filter, _order$summary5, _order$summary6, _order$summary7, _ref2, _order$summary8, _order$summary$subtot2, _order$summary9, _order$taxes3, _order$summary$tax2, _order$summary10, _order$fees, _order$summary$servic, _order$summary11, _order$taxes4, _order$taxes5, _order$fees2, _order$fees3, _order$fees3$filter, _order$offers4, _order$offers5, _order$offers5$filter, _order$summary12, _theme$defaultLanguag39, _order$summary13, _order$offers6, _order$offers7, _order$offers7$filter, _order$summary14, _theme$defaultLanguag40, _order$summary15, _configs$driver_tip_t, _configs$driver_tip_u, _order$summary$driver, _order$summary16, _theme$defaultLanguag41, _order$summary$total, _order$summary17, _theme$defaultLanguag42, _theme$defaultLanguag43, _theme$defaultLanguag44, _theme$defaultLanguag45, _theme$defaultLanguag46, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6, _props$afterComponent, _props$afterElements;
|
|
50
50
|
var userCustomerId = props.userCustomerId,
|
|
51
51
|
handleBusinessRedirect = props.handleBusinessRedirect,
|
|
52
52
|
handleOrderRedirect = props.handleOrderRedirect,
|
|
@@ -74,9 +74,6 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
|
74
74
|
parsePrice = _useUtils2$.parsePrice,
|
|
75
75
|
parseNumber = _useUtils2$.parseNumber,
|
|
76
76
|
parseDate = _useUtils2$.parseDate;
|
|
77
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
78
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
79
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
80
77
|
var _useState = (0, _react.useState)({
|
|
81
78
|
business: false,
|
|
82
79
|
driver: false
|
|
@@ -133,19 +130,19 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
|
133
130
|
businessData = _props$order.businessData,
|
|
134
131
|
error = _props$order.error;
|
|
135
132
|
var isFromCheckPage = JSON.parse(window.localStorage.getItem('business-address'));
|
|
136
|
-
var showDeliveryDate = !(
|
|
137
|
-
var showDeliveryProgress = !(
|
|
138
|
-
var showBusinessMessages = !(
|
|
139
|
-
var showBusinessAddress = !(
|
|
140
|
-
var showBusinessMap = !(
|
|
141
|
-
var showBusinessLogo = !(
|
|
142
|
-
var showDriverName = !(
|
|
143
|
-
var showDriverPhone = !(
|
|
144
|
-
var showDriverMessages = !(
|
|
145
|
-
var showDriverEmail = !(
|
|
146
|
-
var showDriverPhoto = !(
|
|
147
|
-
var showCustomerAddress = !(
|
|
148
|
-
var showCustomerPhoto = !(
|
|
133
|
+
var showDeliveryDate = !(theme !== null && theme !== void 0 && (_theme$confirmation = theme.confirmation) !== null && _theme$confirmation !== void 0 && (_theme$confirmation$c = _theme$confirmation.components) !== null && _theme$confirmation$c !== void 0 && (_theme$confirmation$c2 = _theme$confirmation$c.order) !== null && _theme$confirmation$c2 !== void 0 && (_theme$confirmation$c3 = _theme$confirmation$c2.components) !== null && _theme$confirmation$c3 !== void 0 && (_theme$confirmation$c4 = _theme$confirmation$c3.date) !== null && _theme$confirmation$c4 !== void 0 && _theme$confirmation$c4.hidden);
|
|
134
|
+
var showDeliveryProgress = !(theme !== null && theme !== void 0 && (_theme$confirmation2 = theme.confirmation) !== null && _theme$confirmation2 !== void 0 && (_theme$confirmation2$ = _theme$confirmation2.components) !== null && _theme$confirmation2$ !== void 0 && (_theme$confirmation2$2 = _theme$confirmation2$.order) !== null && _theme$confirmation2$2 !== void 0 && (_theme$confirmation2$3 = _theme$confirmation2$2.components) !== null && _theme$confirmation2$3 !== void 0 && (_theme$confirmation2$4 = _theme$confirmation2$3.progress) !== null && _theme$confirmation2$4 !== void 0 && _theme$confirmation2$4.hidden);
|
|
135
|
+
var showBusinessMessages = !(theme !== null && theme !== void 0 && (_theme$confirmation3 = theme.confirmation) !== null && _theme$confirmation3 !== void 0 && (_theme$confirmation3$ = _theme$confirmation3.components) !== null && _theme$confirmation3$ !== void 0 && (_theme$confirmation3$2 = _theme$confirmation3$.business) !== null && _theme$confirmation3$2 !== void 0 && (_theme$confirmation3$3 = _theme$confirmation3$2.components) !== null && _theme$confirmation3$3 !== void 0 && (_theme$confirmation3$4 = _theme$confirmation3$3.messages) !== null && _theme$confirmation3$4 !== void 0 && _theme$confirmation3$4.hidden);
|
|
136
|
+
var showBusinessAddress = !(theme !== null && theme !== void 0 && (_theme$confirmation4 = theme.confirmation) !== null && _theme$confirmation4 !== void 0 && (_theme$confirmation4$ = _theme$confirmation4.components) !== null && _theme$confirmation4$ !== void 0 && (_theme$confirmation4$2 = _theme$confirmation4$.business) !== null && _theme$confirmation4$2 !== void 0 && (_theme$confirmation4$3 = _theme$confirmation4$2.components) !== null && _theme$confirmation4$3 !== void 0 && (_theme$confirmation4$4 = _theme$confirmation4$3.address) !== null && _theme$confirmation4$4 !== void 0 && _theme$confirmation4$4.hidden);
|
|
137
|
+
var showBusinessMap = !(theme !== null && theme !== void 0 && (_theme$confirmation5 = theme.confirmation) !== null && _theme$confirmation5 !== void 0 && (_theme$confirmation5$ = _theme$confirmation5.components) !== null && _theme$confirmation5$ !== void 0 && (_theme$confirmation5$2 = _theme$confirmation5$.business) !== null && _theme$confirmation5$2 !== void 0 && (_theme$confirmation5$3 = _theme$confirmation5$2.components) !== null && _theme$confirmation5$3 !== void 0 && (_theme$confirmation5$4 = _theme$confirmation5$3.map) !== null && _theme$confirmation5$4 !== void 0 && _theme$confirmation5$4.hidden);
|
|
138
|
+
var showBusinessLogo = !(theme !== null && theme !== void 0 && (_theme$confirmation6 = theme.confirmation) !== null && _theme$confirmation6 !== void 0 && (_theme$confirmation6$ = _theme$confirmation6.components) !== null && _theme$confirmation6$ !== void 0 && (_theme$confirmation6$2 = _theme$confirmation6$.business) !== null && _theme$confirmation6$2 !== void 0 && (_theme$confirmation6$3 = _theme$confirmation6$2.components) !== null && _theme$confirmation6$3 !== void 0 && (_theme$confirmation6$4 = _theme$confirmation6$3.logo) !== null && _theme$confirmation6$4 !== void 0 && _theme$confirmation6$4.hidden);
|
|
139
|
+
var showDriverName = !(theme !== null && theme !== void 0 && (_theme$confirmation7 = theme.confirmation) !== null && _theme$confirmation7 !== void 0 && (_theme$confirmation7$ = _theme$confirmation7.components) !== null && _theme$confirmation7$ !== void 0 && (_theme$confirmation7$2 = _theme$confirmation7$.driver) !== null && _theme$confirmation7$2 !== void 0 && (_theme$confirmation7$3 = _theme$confirmation7$2.components) !== null && _theme$confirmation7$3 !== void 0 && (_theme$confirmation7$4 = _theme$confirmation7$3.name) !== null && _theme$confirmation7$4 !== void 0 && _theme$confirmation7$4.hidden);
|
|
140
|
+
var showDriverPhone = !(theme !== null && theme !== void 0 && (_theme$confirmation8 = theme.confirmation) !== null && _theme$confirmation8 !== void 0 && (_theme$confirmation8$ = _theme$confirmation8.components) !== null && _theme$confirmation8$ !== void 0 && (_theme$confirmation8$2 = _theme$confirmation8$.driver) !== null && _theme$confirmation8$2 !== void 0 && (_theme$confirmation8$3 = _theme$confirmation8$2.components) !== null && _theme$confirmation8$3 !== void 0 && (_theme$confirmation8$4 = _theme$confirmation8$3.phone) !== null && _theme$confirmation8$4 !== void 0 && _theme$confirmation8$4.hidden);
|
|
141
|
+
var showDriverMessages = !(theme !== null && theme !== void 0 && (_theme$confirmation9 = theme.confirmation) !== null && _theme$confirmation9 !== void 0 && (_theme$confirmation9$ = _theme$confirmation9.components) !== null && _theme$confirmation9$ !== void 0 && (_theme$confirmation9$2 = _theme$confirmation9$.driver) !== null && _theme$confirmation9$2 !== void 0 && (_theme$confirmation9$3 = _theme$confirmation9$2.components) !== null && _theme$confirmation9$3 !== void 0 && (_theme$confirmation9$4 = _theme$confirmation9$3.messages) !== null && _theme$confirmation9$4 !== void 0 && _theme$confirmation9$4.hidden);
|
|
142
|
+
var showDriverEmail = !(theme !== null && theme !== void 0 && (_theme$confirmation10 = theme.confirmation) !== null && _theme$confirmation10 !== void 0 && (_theme$confirmation11 = _theme$confirmation10.components) !== null && _theme$confirmation11 !== void 0 && (_theme$confirmation12 = _theme$confirmation11.driver) !== null && _theme$confirmation12 !== void 0 && (_theme$confirmation13 = _theme$confirmation12.components) !== null && _theme$confirmation13 !== void 0 && (_theme$confirmation14 = _theme$confirmation13.email) !== null && _theme$confirmation14 !== void 0 && _theme$confirmation14.hidden);
|
|
143
|
+
var showDriverPhoto = !(theme !== null && theme !== void 0 && (_theme$confirmation15 = theme.confirmation) !== null && _theme$confirmation15 !== void 0 && (_theme$confirmation16 = _theme$confirmation15.components) !== null && _theme$confirmation16 !== void 0 && (_theme$confirmation17 = _theme$confirmation16.driver) !== null && _theme$confirmation17 !== void 0 && (_theme$confirmation18 = _theme$confirmation17.components) !== null && _theme$confirmation18 !== void 0 && (_theme$confirmation19 = _theme$confirmation18.photo) !== null && _theme$confirmation19 !== void 0 && _theme$confirmation19.hidden);
|
|
144
|
+
var showCustomerAddress = !(theme !== null && theme !== void 0 && (_theme$confirmation20 = theme.confirmation) !== null && _theme$confirmation20 !== void 0 && (_theme$confirmation21 = _theme$confirmation20.components) !== null && _theme$confirmation21 !== void 0 && (_theme$confirmation22 = _theme$confirmation21.customer) !== null && _theme$confirmation22 !== void 0 && (_theme$confirmation23 = _theme$confirmation22.components) !== null && _theme$confirmation23 !== void 0 && (_theme$confirmation24 = _theme$confirmation23.address) !== null && _theme$confirmation24 !== void 0 && _theme$confirmation24.hidden);
|
|
145
|
+
var showCustomerPhoto = !(theme !== null && theme !== void 0 && (_theme$confirmation25 = theme.confirmation) !== null && _theme$confirmation25 !== void 0 && (_theme$confirmation26 = _theme$confirmation25.components) !== null && _theme$confirmation26 !== void 0 && (_theme$confirmation27 = _theme$confirmation26.customer) !== null && _theme$confirmation27 !== void 0 && (_theme$confirmation28 = _theme$confirmation27.components) !== null && _theme$confirmation28 !== void 0 && (_theme$confirmation29 = _theme$confirmation28.photo) !== null && _theme$confirmation29 !== void 0 && _theme$confirmation29.hidden);
|
|
149
146
|
var getOrderStatus = function getOrderStatus(s) {
|
|
150
147
|
var _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _theme$defaultLanguag11, _theme$defaultLanguag12, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _theme$defaultLanguag16, _theme$defaultLanguag17, _theme$defaultLanguag18, _theme$defaultLanguag19, _theme$defaultLanguag20, _theme$defaultLanguag21, _theme$defaultLanguag22, _theme$defaultLanguag23, _theme$defaultLanguag24;
|
|
151
148
|
var status = parseInt(s);
|
|
@@ -12,6 +12,7 @@ var _VscTrash = _interopRequireDefault(require("@meronex/icons/vsc/VscTrash"));
|
|
|
12
12
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
13
13
|
var _useWindowSize = require("../../hooks/useWindowSize");
|
|
14
14
|
var _styles = require("./styles");
|
|
15
|
+
var _styledComponents = require("styled-components");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
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); }
|
|
17
18
|
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; }
|
|
@@ -32,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
32
33
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
33
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
35
|
var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
35
|
-
var
|
|
36
|
+
var _theme$confirmation, _theme$confirmation$c, _theme$confirmation$c2, _theme$confirmation$c3, _theme$confirmation$c4, _theme$confirmation$c5, _theme$confirmation$c6, _props$beforeElements, _props$beforeComponen, _product$valid, _product$total, _props$afterComponent, _props$afterElements;
|
|
36
37
|
var isCartPending = props.isCartPending,
|
|
37
38
|
isCartProduct = props.isCartProduct,
|
|
38
39
|
product = props.product,
|
|
@@ -50,10 +51,8 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
|
50
51
|
var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
|
|
51
52
|
_useUtils2 = _slicedToArray(_useUtils, 1),
|
|
52
53
|
parsePrice = _useUtils2[0].parsePrice;
|
|
54
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
53
55
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
54
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
55
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
56
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
57
56
|
var _useState = (0, _react.useState)(''),
|
|
58
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
58
|
setActive = _useState2[0],
|
|
@@ -70,7 +69,7 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
|
70
69
|
var productSelect = (0, _react.useRef)(null);
|
|
71
70
|
var productActionsEdit = (0, _react.useRef)(null);
|
|
72
71
|
var productActionsDelete = (0, _react.useRef)(null);
|
|
73
|
-
var showProductImage = !(
|
|
72
|
+
var showProductImage = !(theme !== null && theme !== void 0 && (_theme$confirmation = theme.confirmation) !== null && _theme$confirmation !== void 0 && (_theme$confirmation$c = _theme$confirmation.components) !== null && _theme$confirmation$c !== void 0 && (_theme$confirmation$c2 = _theme$confirmation$c.cart) !== null && _theme$confirmation$c2 !== void 0 && (_theme$confirmation$c3 = _theme$confirmation$c2.components) !== null && _theme$confirmation$c3 !== void 0 && (_theme$confirmation$c4 = _theme$confirmation$c3.products) !== null && _theme$confirmation$c4 !== void 0 && (_theme$confirmation$c5 = _theme$confirmation$c4.components) !== null && _theme$confirmation$c5 !== void 0 && (_theme$confirmation$c6 = _theme$confirmation$c5.image) !== null && _theme$confirmation$c6 !== void 0 && _theme$confirmation$c6.hidden);
|
|
74
73
|
var productInfo = function productInfo() {
|
|
75
74
|
if (isCartProduct) {
|
|
76
75
|
var _product$ingredients, _product$options;
|
|
@@ -17,7 +17,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
17
17
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
18
18
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
19
|
var SearchProducts = function SearchProducts(props) {
|
|
20
|
-
var
|
|
20
|
+
var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6, _theme$defaultLanguag, _businessState$busine;
|
|
21
21
|
var handleChangeSearch = props.handleChangeSearch,
|
|
22
22
|
searchValue = props.searchValue,
|
|
23
23
|
businessState = props.businessState,
|
|
@@ -28,10 +28,7 @@ var SearchProducts = function SearchProducts(props) {
|
|
|
28
28
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
29
29
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
30
30
|
t = _useLanguage2[1];
|
|
31
|
-
var
|
|
32
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
33
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
34
|
-
var showSort = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.business_view) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.header) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.business) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.sort) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
|
|
31
|
+
var showSort = !(theme !== null && theme !== void 0 && (_theme$business_view = theme.business_view) !== null && _theme$business_view !== void 0 && (_theme$business_view$ = _theme$business_view.components) !== null && _theme$business_view$ !== void 0 && (_theme$business_view$2 = _theme$business_view$.header) !== null && _theme$business_view$2 !== void 0 && (_theme$business_view$3 = _theme$business_view$2.components) !== null && _theme$business_view$3 !== void 0 && (_theme$business_view$4 = _theme$business_view$3.business) !== null && _theme$business_view$4 !== void 0 && (_theme$business_view$5 = _theme$business_view$4.components) !== null && _theme$business_view$5 !== void 0 && (_theme$business_view$6 = _theme$business_view$5.sort) !== null && _theme$business_view$6 !== void 0 && _theme$business_view$6.hidden);
|
|
35
32
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
|
|
36
33
|
onSearch: handleChangeSearch,
|
|
37
34
|
search: searchValue,
|
|
@@ -16,6 +16,7 @@ var _Buttons = require("../../styles/Buttons");
|
|
|
16
16
|
var _InputPhoneNumber = require("../InputPhoneNumber");
|
|
17
17
|
var _Confirm = require("../Confirm");
|
|
18
18
|
var _utils = require("../../utils");
|
|
19
|
+
var _styledComponents = require("styled-components");
|
|
19
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -31,7 +32,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
31
32
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
32
33
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
34
|
var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
34
|
-
var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4,
|
|
35
|
+
var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _validationFields$fie11, _props$afterMidElemen, _props$afterMidCompon, _props$afterComponent, _props$afterElements;
|
|
35
36
|
var isEdit = props.isEdit,
|
|
36
37
|
formState = props.formState,
|
|
37
38
|
onCancel = props.onCancel,
|
|
@@ -53,6 +54,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
53
54
|
var _useSession = (0, _orderingComponentsExternal.useSession)(),
|
|
54
55
|
_useSession2 = _slicedToArray(_useSession, 1),
|
|
55
56
|
userSession = _useSession2[0].user;
|
|
57
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
56
58
|
var _useState = (0, _react.useState)(null),
|
|
57
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
60
|
isValidPhoneNumber = _useState2[0],
|
|
@@ -71,9 +73,6 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
71
73
|
var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
|
|
72
74
|
_useCustomer2 = _slicedToArray(_useCustomer, 2),
|
|
73
75
|
setUserCustomer = _useCustomer2[1].setUserCustomer;
|
|
74
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
75
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
76
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
77
76
|
var emailInput = (0, _react.useRef)(null);
|
|
78
77
|
var user = userData || userSession;
|
|
79
78
|
var closeAlert = function closeAlert() {
|
|
@@ -88,8 +87,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
88
87
|
});
|
|
89
88
|
};
|
|
90
89
|
var showInputPhoneNumber = (_validationFields$fie = validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 ? void 0 : (_validationFields$fie3 = _validationFields$fie2.checkout) === null || _validationFields$fie3 === void 0 ? void 0 : (_validationFields$fie4 = _validationFields$fie3.cellphone) === null || _validationFields$fie4 === void 0 ? void 0 : _validationFields$fie4.enabled) !== null && _validationFields$fie !== void 0 ? _validationFields$fie : false;
|
|
91
|
-
var showCustomerCellphone = !(
|
|
92
|
-
var showCustomerPassword = !(
|
|
90
|
+
var showCustomerCellphone = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile$compon = _theme$profile.components) !== null && _theme$profile$compon !== void 0 && (_theme$profile$compon2 = _theme$profile$compon.cellphone) !== null && _theme$profile$compon2 !== void 0 && _theme$profile$compon2.hidden);
|
|
91
|
+
var showCustomerPassword = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2$compo = _theme$profile2.components) !== null && _theme$profile2$compo !== void 0 && (_theme$profile2$compo2 = _theme$profile2$compo.password) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
|
|
93
92
|
var setUserCellPhone = function setUserCellPhone() {
|
|
94
93
|
var isEdit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
95
94
|
if (userPhoneNumber && !userPhoneNumber.includes('null') && !isEdit) {
|
|
@@ -196,8 +195,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
196
195
|
}
|
|
197
196
|
};
|
|
198
197
|
var showFieldWithTheme = function showFieldWithTheme(name) {
|
|
199
|
-
var
|
|
200
|
-
return !(
|
|
198
|
+
var _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2;
|
|
199
|
+
return !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3$compo = _theme$profile3.components) !== null && _theme$profile3$compo !== void 0 && (_theme$profile3$compo2 = _theme$profile3$compo[name]) !== null && _theme$profile3$compo2 !== void 0 && _theme$profile3$compo2.hidden);
|
|
201
200
|
};
|
|
202
201
|
(0, _react.useEffect)(function () {
|
|
203
202
|
if (Object.keys(formMethods.errors).length > 0) {
|
|
@@ -12,6 +12,7 @@ var _BsPerson = _interopRequireDefault(require("@meronex/icons/bs/BsPerson"));
|
|
|
12
12
|
var _AiOutlineUnorderedList = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineUnorderedList"));
|
|
13
13
|
var _FaAddressBook = _interopRequireDefault(require("@meronex/icons/fa/FaAddressBook"));
|
|
14
14
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
15
|
+
var _styledComponents = require("styled-components");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
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); }
|
|
17
18
|
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; }
|
|
@@ -22,7 +23,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
22
23
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
23
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
25
|
var ProfileOptions = function ProfileOptions(_ref) {
|
|
25
|
-
var
|
|
26
|
+
var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile$compon3, _theme$profile$compon4;
|
|
26
27
|
var value = _ref.value;
|
|
27
28
|
var _useState = (0, _react.useState)(value),
|
|
28
29
|
_useState2 = _slicedToArray(_useState, 1),
|
|
@@ -33,10 +34,8 @@ var ProfileOptions = function ProfileOptions(_ref) {
|
|
|
33
34
|
var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
|
|
34
35
|
_useEvent2 = _slicedToArray(_useEvent, 1),
|
|
35
36
|
events = _useEvent2[0];
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
39
|
-
var showAddressListTab = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.profile) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.address_list) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.position) === 'new_page';
|
|
37
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
38
|
+
var showAddressListTab = (theme === null || theme === void 0 ? void 0 : (_theme$profile = theme.profile) === null || _theme$profile === void 0 ? void 0 : (_theme$profile$compon = _theme$profile.components) === null || _theme$profile$compon === void 0 ? void 0 : (_theme$profile$compon2 = _theme$profile$compon.address_list) === null || _theme$profile$compon2 === void 0 ? void 0 : (_theme$profile$compon3 = _theme$profile$compon2.components) === null || _theme$profile$compon3 === void 0 ? void 0 : (_theme$profile$compon4 = _theme$profile$compon3.layout) === null || _theme$profile$compon4 === void 0 ? void 0 : _theme$profile$compon4.position) === 'new_page';
|
|
40
39
|
var handleGoToPage = function handleGoToPage(data) {
|
|
41
40
|
events.emit('go_to_page', data);
|
|
42
41
|
};
|
|
@@ -20,6 +20,7 @@ var _FiCamera = _interopRequireDefault(require("@meronex/icons/fi/FiCamera"));
|
|
|
20
20
|
var _BiImage = _interopRequireDefault(require("@meronex/icons/bi/BiImage"));
|
|
21
21
|
var _styles = require("./styles");
|
|
22
22
|
var _LogoutButton = require("../LogoutButton");
|
|
23
|
+
var _styledComponents = require("styled-components");
|
|
23
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
25
|
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); }
|
|
25
26
|
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; }
|
|
@@ -36,7 +37,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
36
37
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
37
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38
39
|
var UserProfileFormUI = function UserProfileFormUI(props) {
|
|
39
|
-
var
|
|
40
|
+
var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2, _theme$profile4, _theme$profile4$compo, _theme$profile4$compo2, _theme$profile5, _theme$profile5$compo, _theme$profile5$compo2, _theme$profile6, _theme$profile6$compo, _theme$profile6$compo2, _theme$profile7, _theme$profile7$compo, _theme$profile7$compo2, _formState$changes2, _props$beforeElements, _props$beforeComponen, _formState$changes3, _formState$changes4, _formState$changes5, _formState$result, _formState$changes6, _formState$changes7, _props$afterComponent, _props$afterElements;
|
|
40
41
|
var userData = props.userData,
|
|
41
42
|
handleButtonUpdateClick = props.handleButtonUpdateClick,
|
|
42
43
|
handlechangeImage = props.handlechangeImage,
|
|
@@ -54,6 +55,7 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
|
|
|
54
55
|
_useState2 = _slicedToArray(_useState, 2),
|
|
55
56
|
edit = _useState2[0],
|
|
56
57
|
setEdit = _useState2[1];
|
|
58
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
57
59
|
var _useState3 = (0, _react.useState)({
|
|
58
60
|
open: false,
|
|
59
61
|
content: []
|
|
@@ -62,17 +64,14 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
|
|
|
62
64
|
alertState = _useState4[0],
|
|
63
65
|
setAlertState = _useState4[1];
|
|
64
66
|
var inputRef = (0, _react.useRef)(null);
|
|
65
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
66
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
67
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
68
67
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
69
|
-
var showCustomerPicture = !(
|
|
70
|
-
var showCustomerName = !(
|
|
71
|
-
var showCustomerLastName = !(
|
|
72
|
-
var showCustomerEmail = !(
|
|
73
|
-
var showCustomerCellphone = !(
|
|
74
|
-
var showAddressList = !(
|
|
75
|
-
var userFormLayoutColumn = (
|
|
68
|
+
var showCustomerPicture = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile$compon = _theme$profile.components) !== null && _theme$profile$compon !== void 0 && (_theme$profile$compon2 = _theme$profile$compon.picture) !== null && _theme$profile$compon2 !== void 0 && _theme$profile$compon2.hidden);
|
|
69
|
+
var showCustomerName = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2$compo = _theme$profile2.components) !== null && _theme$profile2$compo !== void 0 && (_theme$profile2$compo2 = _theme$profile2$compo.name) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
|
|
70
|
+
var showCustomerLastName = !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3$compo = _theme$profile3.components) !== null && _theme$profile3$compo !== void 0 && (_theme$profile3$compo2 = _theme$profile3$compo.last_name) !== null && _theme$profile3$compo2 !== void 0 && _theme$profile3$compo2.hidden);
|
|
71
|
+
var showCustomerEmail = !(theme !== null && theme !== void 0 && (_theme$profile4 = theme.profile) !== null && _theme$profile4 !== void 0 && (_theme$profile4$compo = _theme$profile4.components) !== null && _theme$profile4$compo !== void 0 && (_theme$profile4$compo2 = _theme$profile4$compo.email) !== null && _theme$profile4$compo2 !== void 0 && _theme$profile4$compo2.hidden);
|
|
72
|
+
var showCustomerCellphone = !(theme !== null && theme !== void 0 && (_theme$profile5 = theme.profile) !== null && _theme$profile5 !== void 0 && (_theme$profile5$compo = _theme$profile5.components) !== null && _theme$profile5$compo !== void 0 && (_theme$profile5$compo2 = _theme$profile5$compo.cellphone) !== null && _theme$profile5$compo2 !== void 0 && _theme$profile5$compo2.hidden);
|
|
73
|
+
var showAddressList = !(theme !== null && theme !== void 0 && (_theme$profile6 = theme.profile) !== null && _theme$profile6 !== void 0 && (_theme$profile6$compo = _theme$profile6.components) !== null && _theme$profile6$compo !== void 0 && (_theme$profile6$compo2 = _theme$profile6$compo.address_list) !== null && _theme$profile6$compo2 !== void 0 && _theme$profile6$compo2.hidden);
|
|
74
|
+
var userFormLayoutColumn = (theme === null || theme === void 0 ? void 0 : (_theme$profile7 = theme.profile) === null || _theme$profile7 === void 0 ? void 0 : (_theme$profile7$compo = _theme$profile7.components) === null || _theme$profile7$compo === void 0 ? void 0 : (_theme$profile7$compo2 = _theme$profile7$compo.layout) === null || _theme$profile7$compo2 === void 0 ? void 0 : _theme$profile7$compo2.position) === 'column';
|
|
76
75
|
var showEditButton = showCustomerName || showCustomerLastName || showCustomerEmail || showCustomerCellphone;
|
|
77
76
|
var handleFiles = function handleFiles(files) {
|
|
78
77
|
if (files.length === 1) {
|
|
@@ -52,7 +52,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
52
52
|
return theme.colors.colorPage;
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (min-width: 578px) {\n /** Mozilla scrollbar*/\n * {\n scrollbar-color: #CCC !important;\n scrollbar-width: thin !important;\n }\n /** Scrollbar for browser based on webkit */\n ::-webkit-scrollbar {\n width: 6px;\n height: 0px;\n }\n ::-webkit-scrollbar-thumb {\n background: #CCCCCC;\n }\n ::-webkit-scrollbar-thumb:hover {\n background: #AFAFAF;\n }\n ::-webkit-scrollbar-thumb:active {\n background: #6b6b6b;\n }\n ::-webkit-scrollbar-track {\n background: rgba(204, 204, 204, 0.3);\n }\n #___reactour {\n div{\n color: rgba(0,0,0,0.5);\n button svg {\n display: none;\n }\n }\n }\n }\n body {\n font-family: '", "', sans-serif;\n margin: 0;\n background-color: ", ";\n color: ", ";\n direction: ltr;\n ", "\n -webkit-overflow-scrolling: auto;\n }\n input, textarea, button {\n font-family: inherit;\n }\n h1,p,span {\n ", "\n }\n .popup-backdrop {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 20002;\n }\n .popup-component {\n background-color: rgba(0, 0, 0, 0.3);\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])), ((_theme$fonts$primary = theme.fonts.primary) === null || _theme$fonts$primary === void 0 ? void 0 : _theme$fonts$primary.name) || 'Helvetica', theme.colors.backgroundPage, getThemeColor(), theme.rtl && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n direction: rtl;\n "]))), props.isDarkTextColor && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", "\n "])), theme.colors.darkTextColor));
|
|
55
|
+
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (min-width: 578px) {\n /** Mozilla scrollbar*/\n * {\n scrollbar-color: #CCC !important;\n scrollbar-width: thin !important;\n }\n /** Scrollbar for browser based on webkit */\n ::-webkit-scrollbar {\n width: 6px;\n height: 0px;\n }\n ::-webkit-scrollbar-thumb {\n background: #CCCCCC;\n }\n ::-webkit-scrollbar-thumb:hover {\n background: #AFAFAF;\n }\n ::-webkit-scrollbar-thumb:active {\n background: #6b6b6b;\n }\n ::-webkit-scrollbar-track {\n background: rgba(204, 204, 204, 0.3);\n }\n #___reactour {\n div{\n color: rgba(0,0,0,0.5);\n button svg {\n display: none;\n }\n }\n }\n }\n body {\n font-family: '", "', sans-serif;\n margin: 0;\n background-color: ", ";\n color: ", ";\n direction: ltr;\n ", "\n -webkit-overflow-scrolling: auto;\n }\n input, textarea, button {\n font-family: inherit;\n }\n h1,h2,p,span {\n ", "\n }\n .popup-backdrop {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 20002;\n }\n .popup-component {\n background-color: rgba(0, 0, 0, 0.3);\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])), ((_theme$fonts$primary = theme.fonts.primary) === null || _theme$fonts$primary === void 0 ? void 0 : _theme$fonts$primary.name) || 'Helvetica', theme.colors.backgroundPage, getThemeColor(), theme.rtl && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n direction: rtl;\n "]))), props.isDarkTextColor && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", "\n "])), theme.colors.darkTextColor));
|
|
56
56
|
(0, _react.useEffect)(function () {
|
|
57
57
|
var fonts = Object.entries(theme.fonts || {});
|
|
58
58
|
fonts.forEach(function (_ref2) {
|
|
@@ -85,9 +85,6 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
85
85
|
confirm = _useState6[0],
|
|
86
86
|
setConfirm = _useState6[1];
|
|
87
87
|
var theme = (0, _styledComponents.useTheme)();
|
|
88
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
89
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
90
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
91
88
|
var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
|
|
92
89
|
_useCustomer2 = _slicedToArray(_useCustomer, 1),
|
|
93
90
|
user = _useCustomer2[0].user;
|