ordering-ui-external 10.9.6 → 10.10.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.
- package/_bundles/{7.ordering-ui.a3fd703d3312a3b71fa1.js → 7.ordering-ui.5066da7ae1ecd7adcd8c.js} +1 -1
- package/_bundles/ordering-ui.5066da7ae1ecd7adcd8c.js +2 -0
- package/_modules/components/AddressForm/index.js +8 -5
- package/_modules/components/BusinessProductsListing/index.js +8 -5
- package/_modules/components/Checkout/index.js +8 -5
- package/_modules/components/Footer/index.js +7 -5
- package/_modules/components/HelpStaticPage/index.js +7 -5
- package/_modules/components/LoginForm/index.js +8 -5
- package/_modules/components/OrdersOption/index.js +8 -5
- package/_modules/components/PagesList/index.js +7 -5
- package/_modules/components/StripeMethodForm/index.js +8 -5
- package/_modules/hooks/useIntersectionObserver.js +7 -5
- package/_modules/index.js +6 -0
- package/_modules/themes/callcenterOriginal/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/AddressList/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Checkout/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/Footer/index.js +7 -5
- package/_modules/themes/callcenterOriginal/src/components/Header/styles.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +7 -5
- package/_modules/themes/eight/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/eight/src/components/Checkout/index.js +8 -5
- package/_modules/themes/eight/src/components/Footer/index.js +7 -5
- package/_modules/themes/eight/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/five/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/five/src/components/AddressList/index.js +8 -5
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +15 -9
- package/_modules/themes/five/src/components/Checkout/index.js +8 -5
- package/_modules/themes/five/src/components/Footer/index.js +8 -5
- package/_modules/themes/five/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/five/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/five/src/components/LogoutPopup/index.js +15 -9
- package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +8 -5
- package/_modules/themes/five/src/components/OrderDetails/index.js +16 -10
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +8 -5
- package/_modules/themes/five/src/components/ProductForm/index.js +3 -2
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +3 -2
- package/_modules/themes/five/src/components/SignUpForm/index.js +8 -5
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +8 -5
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +4 -3
- package/_modules/themes/five/src/components/UpsellingPage/index.js +9 -5
- package/_modules/themes/five/src/components/UserFormDetails/index.js +8 -7
- package/_modules/themes/four/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/four/src/components/BusinessProductsListing/index.js +8 -5
- package/_modules/themes/four/src/components/Checkout/index.js +8 -5
- package/_modules/themes/four/src/components/Footer/index.js +7 -5
- package/_modules/themes/four/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/four/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/four/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/franchise/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/franchise/src/components/Checkout/index.js +8 -5
- package/_modules/themes/franchise/src/components/Footer/index.js +7 -5
- package/_modules/themes/franchise/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/franchise/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/franchise/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/orderAndPay/src/components/Checkout/index.js +31 -20
- package/_modules/themes/orderAndPay/src/components/Footer/index.js +7 -5
- package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/orderAndPay/src/components/OrderTypeSelectorContent/index.js +15 -9
- package/_modules/themes/orderAndPay/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/pwa/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/pwa/src/components/Checkout/index.js +8 -5
- package/_modules/themes/pwa/src/components/Footer/index.js +7 -5
- package/_modules/themes/pwa/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/pwa/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/pwa/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/seven/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/seven/src/components/Checkout/index.js +8 -5
- package/_modules/themes/seven/src/components/Footer/index.js +7 -5
- package/_modules/themes/seven/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/seven/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/seven/src/components/ProductForm/productForm.js +15 -9
- package/_modules/themes/six/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/six/src/components/Checkout/index.js +8 -5
- package/_modules/themes/six/src/components/Footer/index.js +7 -5
- package/_modules/themes/six/src/components/Header/index.js +1 -0
- package/_modules/themes/six/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/six/src/components/SidebarMenu/index.js +96 -11
- package/_modules/themes/three/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/three/src/components/Checkout/index.js +8 -5
- package/_modules/themes/three/src/components/Footer/index.js +7 -5
- package/_modules/themes/three/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/three/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/three/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/two/src/components/Checkout/index.js +8 -5
- package/_modules/themes/two/src/components/HelpStaticPage/index.js +7 -5
- package/_modules/themes/two/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/two/src/components/OrdersOption/index.js +8 -5
- package/_modules/themes/wow/src/components/AddressForm/index.js +8 -5
- package/_modules/themes/wow/src/components/Checkout/index.js +8 -5
- package/_modules/themes/wow/src/components/LoginForm/index.js +8 -5
- package/_modules/themes/wow/src/components/OrdersOption/index.js +8 -5
- package/package.json +2 -2
- package/src/index.js +4 -2
- package/src/themes/callcenterOriginal/src/components/AddressList/styles.js +4 -4
- package/src/themes/callcenterOriginal/src/components/Header/styles.js +5 -5
- package/src/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +4 -4
- package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +5 -5
- package/src/themes/five/src/components/ProductForm/index.js +29 -26
- package/src/themes/five/src/components/ProductItemAccordion/index.js +2 -1
- package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +2 -1
- package/src/themes/five/src/components/UpsellingPage/index.js +12 -4
- package/src/themes/five/src/components/UserFormDetails/index.js +6 -6
- package/src/themes/six/src/components/Header/index.js +1 -1
- package/src/themes/six/src/components/SidebarMenu/index.js +120 -5
- package/template/app.js +31 -26
- package/_bundles/ordering-ui.a3fd703d3312a3b71fa1.js +0 -2
- /package/_bundles/{0.ordering-ui.a3fd703d3312a3b71fa1.js → 0.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{1.ordering-ui.a3fd703d3312a3b71fa1.js → 1.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{2.ordering-ui.a3fd703d3312a3b71fa1.js → 2.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{4.ordering-ui.a3fd703d3312a3b71fa1.js → 4.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{5.ordering-ui.a3fd703d3312a3b71fa1.js → 5.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{6.ordering-ui.a3fd703d3312a3b71fa1.js → 6.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{7.ordering-ui.a3fd703d3312a3b71fa1.js.LICENSE.txt → 7.ordering-ui.5066da7ae1ecd7adcd8c.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.a3fd703d3312a3b71fa1.js → 8.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{9.ordering-ui.a3fd703d3312a3b71fa1.js → 9.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
- /package/_bundles/{ordering-ui.a3fd703d3312a3b71fa1.js.LICENSE.txt → ordering-ui.5066da7ae1ecd7adcd8c.js.LICENSE.txt} +0 -0
|
@@ -50,7 +50,7 @@ var inputNames = [{
|
|
|
50
50
|
code: 'Address notes'
|
|
51
51
|
}];
|
|
52
52
|
var AddressFormUI = function AddressFormUI(props) {
|
|
53
|
-
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4,
|
|
53
|
+
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
|
|
54
54
|
var addressesList = props.addressesList,
|
|
55
55
|
googleMapsControls = props.googleMapsControls,
|
|
56
56
|
formState = props.formState,
|
|
@@ -223,8 +223,8 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
223
223
|
e.preventDefault();
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
|
-
var onSubmit = function
|
|
227
|
-
|
|
226
|
+
var onSubmit = /*#__PURE__*/function () {
|
|
227
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
228
228
|
var _formState$changes3, _addressState$address6, _formState$changes4, _formState$changes5, _arrayList$map$some2;
|
|
229
229
|
var _formState$changes6, arrayList, addressToCompare, isAddressAlreadyExist;
|
|
230
230
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -285,8 +285,11 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
285
285
|
return _context.stop();
|
|
286
286
|
}
|
|
287
287
|
}, _callee);
|
|
288
|
-
}))
|
|
289
|
-
|
|
288
|
+
}));
|
|
289
|
+
return function onSubmit() {
|
|
290
|
+
return _ref2.apply(this, arguments);
|
|
291
|
+
};
|
|
292
|
+
}();
|
|
290
293
|
var handleAddressTag = function handleAddressTag(tag) {
|
|
291
294
|
setAddressTag(tag);
|
|
292
295
|
handleChangeInput({
|
package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js
CHANGED
|
@@ -250,7 +250,7 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
250
250
|
}));
|
|
251
251
|
};
|
|
252
252
|
var Checkout = function Checkout(props) {
|
|
253
|
-
var _Object$values,
|
|
253
|
+
var _Object$values, _cartState$error, _cartState$cart2;
|
|
254
254
|
var errors = props.errors,
|
|
255
255
|
clearErrors = props.clearErrors,
|
|
256
256
|
cartUuid = props.cartUuid,
|
|
@@ -325,8 +325,8 @@ var Checkout = function Checkout(props) {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
}, [errors]);
|
|
328
|
-
var getOrder = function
|
|
329
|
-
|
|
328
|
+
var getOrder = /*#__PURE__*/function () {
|
|
329
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
|
|
330
330
|
var _result$order, result, cart, userCustomer, url, response, content, _result, credomaticData, urlParams, paramsObj, _confirmCartRes$resul, confirmCartRes, _cart, spotNumberFromStorage, _JSON$parse, _JSON$parse2, _cart2, spotNumber, slug;
|
|
331
331
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
332
332
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -452,8 +452,11 @@ var Checkout = function Checkout(props) {
|
|
|
452
452
|
return _context.stop();
|
|
453
453
|
}
|
|
454
454
|
}, _callee, null, [[0, 45], [25, 34]]);
|
|
455
|
-
}))
|
|
456
|
-
|
|
455
|
+
}));
|
|
456
|
+
return function getOrder(_x) {
|
|
457
|
+
return _ref.apply(this, arguments);
|
|
458
|
+
};
|
|
459
|
+
}();
|
|
457
460
|
(0, _react.useEffect)(function () {
|
|
458
461
|
if (token && cartUuid) {
|
|
459
462
|
getOrder(cartUuid);
|
|
@@ -51,7 +51,7 @@ var StripeMethodFormUI = function StripeMethodFormUI(props) {
|
|
|
51
51
|
var googlePayMethods = ['google_pay', 'global_google_pay'];
|
|
52
52
|
(0, _react.useEffect)(function () {
|
|
53
53
|
if (stripe) {
|
|
54
|
-
var _configs$stripe_curre, _configs$stripe_curre2, _cart$business2
|
|
54
|
+
var _configs$stripe_curre, _configs$stripe_curre2, _cart$business2;
|
|
55
55
|
var cartNames = '';
|
|
56
56
|
if (cartGroup) {
|
|
57
57
|
// eslint-disable-next-line no-unused-expressions
|
|
@@ -77,8 +77,8 @@ var StripeMethodFormUI = function StripeMethodFormUI(props) {
|
|
|
77
77
|
setMethodUnavailable(true);
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
pr.on('paymentmethod', function (
|
|
81
|
-
|
|
80
|
+
pr.on('paymentmethod', /*#__PURE__*/function () {
|
|
81
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
82
82
|
var _e$paymentMethod, _e$paymentMethod2;
|
|
83
83
|
var data;
|
|
84
84
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -101,8 +101,11 @@ var StripeMethodFormUI = function StripeMethodFormUI(props) {
|
|
|
101
101
|
return _context.stop();
|
|
102
102
|
}
|
|
103
103
|
}, _callee);
|
|
104
|
-
}))
|
|
105
|
-
|
|
104
|
+
}));
|
|
105
|
+
return function (_x) {
|
|
106
|
+
return _ref.apply(this, arguments);
|
|
107
|
+
};
|
|
108
|
+
}());
|
|
106
109
|
}
|
|
107
110
|
}, [stripe]);
|
|
108
111
|
return /*#__PURE__*/_react.default.createElement(_styles.Container, null, methodUnavailable ? /*#__PURE__*/_react.default.createElement("h2", null, googlePayMethods.includes(paymethod) ? t('GOOGLE_PAY_UNAVAILABLE', 'Google pay unavailable') : t('APPLE_PAY_UNAVAILABLE', 'Apple pay unavailable')) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, paymentRequest ? /*#__PURE__*/_react.default.createElement(_reactStripeJs.PaymentRequestButtonElement, {
|
|
@@ -36,7 +36,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
36
36
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
37
37
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38
38
|
var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
39
|
-
var _theme$images, _theme$images2,
|
|
39
|
+
var _theme$images, _theme$images2, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
|
|
40
40
|
var horizontal = props.horizontal,
|
|
41
41
|
activeOrders = props.activeOrders,
|
|
42
42
|
orderList = props.orderList,
|
|
@@ -76,8 +76,8 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
76
76
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
77
77
|
loadingOrders = _useState4[0],
|
|
78
78
|
setLoadingOrders = _useState4[1];
|
|
79
|
-
var handleReorder = function
|
|
80
|
-
|
|
79
|
+
var handleReorder = /*#__PURE__*/function () {
|
|
80
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
|
|
81
81
|
var _yield$reorder, _error, result;
|
|
82
82
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
83
83
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -114,8 +114,11 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
114
114
|
return _context.stop();
|
|
115
115
|
}
|
|
116
116
|
}, _callee, null, [[1, 13]]);
|
|
117
|
-
}))
|
|
118
|
-
|
|
117
|
+
}));
|
|
118
|
+
return function handleReorder(_x) {
|
|
119
|
+
return _ref.apply(this, arguments);
|
|
120
|
+
};
|
|
121
|
+
}();
|
|
119
122
|
var getOrderStatus = function getOrderStatus(s) {
|
|
120
123
|
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;
|
|
121
124
|
var status = parseInt(s);
|
|
@@ -50,7 +50,7 @@ var Slogan = _styledComponents.default.p(_templateObject9 || (_templateObject9 =
|
|
|
50
50
|
return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
51
51
|
});
|
|
52
52
|
exports.Slogan = Slogan;
|
|
53
|
-
var WrapInput = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: relative;\n cursor: pointer;\n\n ", "\n\n div{\n color: #FFF;\n position: relative;\n bottom: 25px;\n left: 15px;\n ", "\n }\n\n svg {\n color: #FFF;\n position: absolute;\n font-size: 22px;\n\n margin-right: 10px;\n ", "\n\n ", "\n\n }\n"])), function (_ref2) {
|
|
53
|
+
var WrapInput = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: relative;\n cursor: pointer;\n\n ", "\n \n div{\n color: #FFF;\n position: relative;\n bottom: 25px;\n left: 15px;\n ", "\n }\n\n svg {\n color: #FFF;\n position: absolute;\n font-size: 22px;\n\n margin-right: 10px;\n ", "\n\n ", "\n\n }\n"])), function (_ref2) {
|
|
54
54
|
var withIcon = _ref2.withIcon;
|
|
55
55
|
return withIcon && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n width: calc(100% - 20px);\n box-sizing: border-box;\n\n &::before {\n content: \"\";\n position: absolute;\n right: 5px;\n top: 0;\n bottom: 18px;\n width: 15px;\n\n ", "\n }\n\n @media (min-width: 1024px) {\n width: calc(50% - 20px);\n }\n "])), function (props) {
|
|
56
56
|
var _props$theme8;
|
|
@@ -67,9 +67,9 @@ var WrapInput = _styledComponents.default.div(_templateObject11 || (_templateObj
|
|
|
67
67
|
return (_props$theme11 = props.theme) !== null && _props$theme11 !== void 0 && _props$theme11.rtl ? (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n left: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n right: 0px;\n "])));
|
|
68
68
|
});
|
|
69
69
|
exports.WrapInput = WrapInput;
|
|
70
|
-
var AutoComplete = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n width: 45
|
|
70
|
+
var AutoComplete = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n width: 45%; \n button {\n position: absolute;\n left: 100%;\n transform: translate(-90%, -165%)\n }\n"])));
|
|
71
71
|
exports.AutoComplete = AutoComplete;
|
|
72
|
-
var UserEdit = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n > :first-child{\n margin-bottom: 20px
|
|
72
|
+
var UserEdit = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n > :first-child{\n margin-bottom: 20px; \n }\n"])));
|
|
73
73
|
exports.UserEdit = UserEdit;
|
|
74
74
|
var Info = _styledComponents.default.p(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral([""])));
|
|
75
75
|
exports.Info = Info;
|
|
@@ -118,7 +118,7 @@ var AdditionalTypesContainer = _styledComponents.default.div(_templateObject29 |
|
|
|
118
118
|
exports.AdditionalTypesContainer = AdditionalTypesContainer;
|
|
119
119
|
var PhoneAutocompleteContainer = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n position: relative;\n h2 {\n font-size: 20px;\n margin-bottom: 20px;\n }\n"])));
|
|
120
120
|
exports.PhoneAutocompleteContainer = PhoneAutocompleteContainer;
|
|
121
|
-
var ContinueButton = _styledComponents.default.span(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n position: absolute;\n right: 35px;\n bottom: 5px;\n width
|
|
121
|
+
var ContinueButton = _styledComponents.default.span(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n position: absolute;\n right: 35px;\n bottom: 5px;\n width: \n button {\n cursor: pointer;\n }\n"])));
|
|
122
122
|
exports.ContinueButton = ContinueButton;
|
|
123
123
|
var NotFoundUser = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n margin: 70px 0px;\n text-align: center;\n"])));
|
|
124
124
|
exports.NotFoundUser = NotFoundUser;
|
|
@@ -27,7 +27,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
27
27
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
28
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
29
|
var ImageCrop = function ImageCrop(props) {
|
|
30
|
-
var _ref;
|
|
31
30
|
var photo = props.photo,
|
|
32
31
|
handleChangePhoto = props.handleChangePhoto,
|
|
33
32
|
onClose = props.onClose,
|
|
@@ -66,8 +65,8 @@ var ImageCrop = function ImageCrop(props) {
|
|
|
66
65
|
cropper.scale(value / 50);
|
|
67
66
|
setZoomValue(value);
|
|
68
67
|
};
|
|
69
|
-
var getCropData = function
|
|
70
|
-
|
|
68
|
+
var getCropData = /*#__PURE__*/function () {
|
|
69
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
71
70
|
var _photo, response, _yield$response$json, result, error;
|
|
72
71
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
73
72
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -129,8 +128,11 @@ var ImageCrop = function ImageCrop(props) {
|
|
|
129
128
|
return _context.stop();
|
|
130
129
|
}
|
|
131
130
|
}, _callee);
|
|
132
|
-
}))
|
|
133
|
-
|
|
131
|
+
}));
|
|
132
|
+
return function getCropData() {
|
|
133
|
+
return _ref.apply(this, arguments);
|
|
134
|
+
};
|
|
135
|
+
}();
|
|
134
136
|
var handleChangeRotate = function handleChangeRotate() {
|
|
135
137
|
if (!photo) return;
|
|
136
138
|
cropper.rotate(45);
|
|
@@ -53,7 +53,7 @@ var inputNames = [{
|
|
|
53
53
|
code: 'Address notes'
|
|
54
54
|
}];
|
|
55
55
|
var AddressFormUI = function AddressFormUI(props) {
|
|
56
|
-
var _ref, _formState$changes$ad, _formState$changes, _addressState$address, _addressState$address2, _addressState$address3, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4,
|
|
56
|
+
var _ref, _formState$changes$ad, _formState$changes, _addressState$address, _addressState$address2, _addressState$address3, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _props$beforeElements, _props$beforeComponen, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
|
|
57
57
|
var isPopup = props.isPopup,
|
|
58
58
|
addressesList = props.addressesList,
|
|
59
59
|
googleMapsControls = props.googleMapsControls,
|
|
@@ -247,8 +247,8 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
247
247
|
var handleGoToPage = function handleGoToPage(data) {
|
|
248
248
|
events.emit('go_to_page', data);
|
|
249
249
|
};
|
|
250
|
-
var onSubmit = function
|
|
251
|
-
|
|
250
|
+
var onSubmit = /*#__PURE__*/function () {
|
|
251
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
252
252
|
var _formState$changes3, _addressState$address5, _formState$changes4, _formState$changes5, _arrayList$map$some2;
|
|
253
253
|
var _formState$changes6, arrayList, addressToCompare, isAddressAlreadyExist;
|
|
254
254
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -315,8 +315,11 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
315
315
|
return _context.stop();
|
|
316
316
|
}
|
|
317
317
|
}, _callee);
|
|
318
|
-
}))
|
|
319
|
-
|
|
318
|
+
}));
|
|
319
|
+
return function onSubmit() {
|
|
320
|
+
return _ref2.apply(this, arguments);
|
|
321
|
+
};
|
|
322
|
+
}();
|
|
320
323
|
|
|
321
324
|
// const handleAddressTag = (tag) => {
|
|
322
325
|
// setAddressTag(tag)
|
|
@@ -391,7 +391,7 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
391
391
|
}));
|
|
392
392
|
};
|
|
393
393
|
var Checkout = function Checkout(props) {
|
|
394
|
-
var _Object$values2,
|
|
394
|
+
var _Object$values2, _cartState$error, _cartState$cart;
|
|
395
395
|
var errors = props.errors,
|
|
396
396
|
clearErrors = props.clearErrors,
|
|
397
397
|
cartUuid = props.cartUuid,
|
|
@@ -481,8 +481,8 @@ var Checkout = function Checkout(props) {
|
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
}, [errors]);
|
|
484
|
-
var getOrder = function
|
|
485
|
-
|
|
484
|
+
var getOrder = /*#__PURE__*/function () {
|
|
485
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
|
|
486
486
|
var _result$order, userCustomer, url, response, _yield$response$json, result, _confirmCartRes$resul, confirmCartRes, cart;
|
|
487
487
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
488
488
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -576,8 +576,11 @@ var Checkout = function Checkout(props) {
|
|
|
576
576
|
return _context.stop();
|
|
577
577
|
}
|
|
578
578
|
}, _callee, null, [[0, 35], [17, 26]]);
|
|
579
|
-
}))
|
|
580
|
-
|
|
579
|
+
}));
|
|
580
|
+
return function getOrder(_x) {
|
|
581
|
+
return _ref.apply(this, arguments);
|
|
582
|
+
};
|
|
583
|
+
}();
|
|
581
584
|
(0, _react.useEffect)(function () {
|
|
582
585
|
if (token && cartUuid) {
|
|
583
586
|
getOrder(cartUuid);
|
|
@@ -26,7 +26,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
26
26
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
27
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
28
|
var Footer = function Footer() {
|
|
29
|
-
var _ref;
|
|
30
29
|
var location = (0, _reactRouterDom.useLocation)();
|
|
31
30
|
var _useState = (0, _react.useState)({
|
|
32
31
|
body: null,
|
|
@@ -40,8 +39,8 @@ var Footer = function Footer() {
|
|
|
40
39
|
_useApi2 = _slicedToArray(_useApi, 1),
|
|
41
40
|
ordering = _useApi2[0];
|
|
42
41
|
var requestsState = {};
|
|
43
|
-
var getPage = function
|
|
44
|
-
|
|
42
|
+
var getPage = /*#__PURE__*/function () {
|
|
43
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
45
44
|
var footerPage, source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
|
|
46
45
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
47
46
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -94,8 +93,11 @@ var Footer = function Footer() {
|
|
|
94
93
|
return _context.stop();
|
|
95
94
|
}
|
|
96
95
|
}, _callee, null, [[1, 15]]);
|
|
97
|
-
}))
|
|
98
|
-
|
|
96
|
+
}));
|
|
97
|
+
return function getPage() {
|
|
98
|
+
return _ref.apply(this, arguments);
|
|
99
|
+
};
|
|
100
|
+
}();
|
|
99
101
|
(0, _react.useEffect)(function () {
|
|
100
102
|
getPage();
|
|
101
103
|
return function () {
|
|
@@ -45,7 +45,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
45
45
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
46
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
var LoginFormUI = function LoginFormUI(props) {
|
|
48
|
-
var _configs$google_login,
|
|
48
|
+
var _configs$google_login, _props$beforeElements, _props$beforeComponen, _configs$google_login2, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$apple_login_, _configs$twilio_servi, _configs$twilio_servi2, _theme$defaultLanguag, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag2, _props$afterComponent, _props$afterElements;
|
|
49
49
|
var useLoginByEmail = props.useLoginByEmail,
|
|
50
50
|
useLoginByCellphone = props.useLoginByCellphone,
|
|
51
51
|
handleChangeInput = props.handleChangeInput,
|
|
@@ -122,8 +122,8 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
122
122
|
cookiepolicy: 'single_host_origin',
|
|
123
123
|
scope: 'profile'
|
|
124
124
|
};
|
|
125
|
-
var onSubmit = function
|
|
126
|
-
|
|
125
|
+
var onSubmit = /*#__PURE__*/function () {
|
|
126
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
127
127
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
128
128
|
while (1) switch (_context.prev = _context.next) {
|
|
129
129
|
case 0:
|
|
@@ -151,8 +151,11 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
151
151
|
return _context.stop();
|
|
152
152
|
}
|
|
153
153
|
}, _callee);
|
|
154
|
-
}))
|
|
155
|
-
|
|
154
|
+
}));
|
|
155
|
+
return function onSubmit() {
|
|
156
|
+
return _ref.apply(this, arguments);
|
|
157
|
+
};
|
|
158
|
+
}();
|
|
156
159
|
var handleSuccessFacebook = function handleSuccessFacebook(user) {
|
|
157
160
|
var _user$session;
|
|
158
161
|
login({
|
|
@@ -50,7 +50,7 @@ var inputNames = [{
|
|
|
50
50
|
code: 'Address notes'
|
|
51
51
|
}];
|
|
52
52
|
var AddressFormUI = function AddressFormUI(props) {
|
|
53
|
-
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _theme$header, _addressState$address4, _formState$changes$lo, _formState$changes2, _theme$address, _theme$address2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4,
|
|
53
|
+
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _theme$header, _addressState$address4, _formState$changes$lo, _formState$changes2, _theme$address, _theme$address2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
|
|
54
54
|
var addressesList = props.addressesList,
|
|
55
55
|
googleMapsControls = props.googleMapsControls,
|
|
56
56
|
formState = props.formState,
|
|
@@ -232,8 +232,8 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
232
232
|
e.preventDefault();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var onSubmit = function
|
|
236
|
-
|
|
235
|
+
var onSubmit = /*#__PURE__*/function () {
|
|
236
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
237
237
|
var _formState$changes3, _addressState$address6, _formState$changes4, _formState$changes5, _arrayList$map$some2;
|
|
238
238
|
var _formState$changes6, arrayList, addressToCompare, isAddressAlreadyExist;
|
|
239
239
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -293,8 +293,11 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
293
293
|
return _context.stop();
|
|
294
294
|
}
|
|
295
295
|
}, _callee);
|
|
296
|
-
}))
|
|
297
|
-
|
|
296
|
+
}));
|
|
297
|
+
return function onSubmit() {
|
|
298
|
+
return _ref2.apply(this, arguments);
|
|
299
|
+
};
|
|
300
|
+
}();
|
|
298
301
|
var handleAddressTag = function handleAddressTag(tag) {
|
|
299
302
|
setAddressTag(tag);
|
|
300
303
|
handleChangeInput({
|
|
@@ -40,7 +40,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
40
40
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
41
41
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
42
42
|
var AddressListUI = function AddressListUI(props) {
|
|
43
|
-
var _theme$profile, _theme$profile2, _theme$profile3, _theme$profile4, _theme$profile5,
|
|
43
|
+
var _theme$profile, _theme$profile2, _theme$profile3, _theme$profile4, _theme$profile5, _addressList$addresse2, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
|
|
44
44
|
var actionStatus = props.actionStatus,
|
|
45
45
|
addressList = props.addressList,
|
|
46
46
|
handleDelete = props.handleDelete,
|
|
@@ -132,8 +132,8 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
132
132
|
}
|
|
133
133
|
handleCloseAddressForm();
|
|
134
134
|
};
|
|
135
|
-
var handleSetAddress = function
|
|
136
|
-
|
|
135
|
+
var handleSetAddress = /*#__PURE__*/function () {
|
|
136
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(address) {
|
|
137
137
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
138
138
|
while (1) switch (_context.prev = _context.next) {
|
|
139
139
|
case 0:
|
|
@@ -158,8 +158,11 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
158
158
|
return _context.stop();
|
|
159
159
|
}
|
|
160
160
|
}, _callee);
|
|
161
|
-
}))
|
|
162
|
-
|
|
161
|
+
}));
|
|
162
|
+
return function handleSetAddress(_x) {
|
|
163
|
+
return _ref.apply(this, arguments);
|
|
164
|
+
};
|
|
165
|
+
}();
|
|
163
166
|
var handleDeleteClick = function handleDeleteClick(address) {
|
|
164
167
|
setConfirm({
|
|
165
168
|
open: true,
|
package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js
CHANGED
|
@@ -10,9 +10,9 @@ 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 CategoriesWrap = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 7.6px;\n @media (min-width:
|
|
13
|
+
var CategoriesWrap = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 7.6px;\n\n @media (min-width: 993px) {\n overflow: auto;\n max-height: calc(90vh - 10px);\n }\n"])));
|
|
14
14
|
exports.CategoriesWrap = CategoriesWrap;
|
|
15
|
-
var CategoriesContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 15px 0 0 0;\n padding-bottom: 0;\n background: ", ";\n z-index: 1000;\n text-align: center;\n width: 100%;\n top: 45px;\n position: sticky;\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n\n div.special{\n ", "\n }\n\n @media (min-width: 381px) {\n padding: 5px;\n }\n"])), function (props) {
|
|
15
|
+
var CategoriesContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 15px 0 0 0;\n padding-bottom: 0;\n background: ", ";\n z-index: 1000;\n text-align: center;\n width: 100%;\n top: 45px;\n position: sticky;\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n\n div.special {\n ", "\n }\n\n @media (min-width: 381px) {\n padding: 5px;\n }\n"])), function (props) {
|
|
16
16
|
return props.theme.colors.backgroundPage;
|
|
17
17
|
}, function (props) {
|
|
18
18
|
return !props.featured && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: none;\n "])));
|
|
@@ -45,7 +45,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
45
45
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
46
46
|
var PIXELS_TO_SCROLL = 300;
|
|
47
47
|
var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
48
|
-
var _configs$add_product_, _configs$checkout_mul, _Object$values$find, _businessState$busine, _theme$business_view, _theme$business_view2, _theme$business_view3, _theme$header, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _currentCart$taxes,
|
|
48
|
+
var _configs$add_product_, _configs$checkout_mul, _Object$values$find, _businessState$busine, _theme$business_view, _theme$business_view2, _theme$business_view3, _theme$header, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _currentCart$taxes, _currentCart$products2, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _error$, _theme$defaultLanguag11, _currentCart$products3, _theme$defaultLanguag12, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _currentCart$products4, _currentCart$products5, _currentCart$products6, _productModal$error$, _theme$defaultLanguag16, _productModal$product2, _business$professiona3, _currentCart$products7, _currentCart$products8;
|
|
49
49
|
var errors = props.errors,
|
|
50
50
|
openCategories = props.openCategories,
|
|
51
51
|
isInitialRender = props.isInitialRender,
|
|
@@ -193,8 +193,8 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
193
193
|
var handler = function handler() {
|
|
194
194
|
setOpenBusinessInformation(true);
|
|
195
195
|
};
|
|
196
|
-
var onProductClick = function
|
|
197
|
-
|
|
196
|
+
var onProductClick = /*#__PURE__*/function () {
|
|
197
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(product) {
|
|
198
198
|
var _currentCart$products, isProductAddedToCart, productQuantity, minimumPerOrder, addCurrentProduct, updateCurrentProduct, cartData, _business$professiona, _product$category;
|
|
199
199
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
200
200
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -260,8 +260,11 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
260
260
|
return _context.stop();
|
|
261
261
|
}
|
|
262
262
|
}, _callee);
|
|
263
|
-
}))
|
|
264
|
-
|
|
263
|
+
}));
|
|
264
|
+
return function onProductClick(_x) {
|
|
265
|
+
return _ref.apply(this, arguments);
|
|
266
|
+
};
|
|
267
|
+
}();
|
|
265
268
|
var handleCustomProductBannerClick = function handleCustomProductBannerClick(product) {
|
|
266
269
|
var _business$professiona2;
|
|
267
270
|
if (!((product === null || product === void 0 ? void 0 : product.type) === 'service' && (business === null || business === void 0 || (_business$professiona2 = business.professionals) === null || _business$professiona2 === void 0 ? void 0 : _business$professiona2.length) > 0)) {
|
|
@@ -346,8 +349,8 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
346
349
|
page: 'search'
|
|
347
350
|
});
|
|
348
351
|
};
|
|
349
|
-
var adjustBusiness = function
|
|
350
|
-
|
|
352
|
+
var adjustBusiness = /*#__PURE__*/function () {
|
|
353
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(adjustBusinessId) {
|
|
351
354
|
var _carts$adjustBusiness;
|
|
352
355
|
var _carts, products, unavailableProducts, alreadyRemoved;
|
|
353
356
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -385,8 +388,11 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
385
388
|
return _context2.stop();
|
|
386
389
|
}
|
|
387
390
|
}, _callee2);
|
|
388
|
-
}))
|
|
389
|
-
|
|
391
|
+
}));
|
|
392
|
+
return function adjustBusiness(_x2) {
|
|
393
|
+
return _ref2.apply(this, arguments);
|
|
394
|
+
};
|
|
395
|
+
}();
|
|
390
396
|
(0, _react.useEffect)(function () {
|
|
391
397
|
if (categoryId && productId && isInitialRender) {
|
|
392
398
|
var _productModal$product;
|
|
@@ -689,7 +689,7 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
689
689
|
})));
|
|
690
690
|
};
|
|
691
691
|
var Checkout = function Checkout(props) {
|
|
692
|
-
var _Object$values2,
|
|
692
|
+
var _Object$values2, _cartState$error, _cartState$cart3;
|
|
693
693
|
var errors = props.errors,
|
|
694
694
|
clearErrors = props.clearErrors,
|
|
695
695
|
cartUuid = props.cartUuid,
|
|
@@ -784,8 +784,8 @@ var Checkout = function Checkout(props) {
|
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}, [errors]);
|
|
787
|
-
var getOrder = function
|
|
788
|
-
|
|
787
|
+
var getOrder = /*#__PURE__*/function () {
|
|
788
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
|
|
789
789
|
var _result$order, result, cart, userCustomer, url, response, content, _result, credomaticData, urlParams, paramsObj, _confirmCartRes$resul, confirmCartRes, _cart, spotNumberFromStorage, _JSON$parse, _JSON$parse2, _cart2, spotNumber, slug;
|
|
790
790
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
791
791
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -911,8 +911,11 @@ var Checkout = function Checkout(props) {
|
|
|
911
911
|
return _context.stop();
|
|
912
912
|
}
|
|
913
913
|
}, _callee, null, [[0, 45], [25, 34]]);
|
|
914
|
-
}))
|
|
915
|
-
|
|
914
|
+
}));
|
|
915
|
+
return function getOrder(_x) {
|
|
916
|
+
return _ref2.apply(this, arguments);
|
|
917
|
+
};
|
|
918
|
+
}();
|
|
916
919
|
(0, _react.useEffect)(function () {
|
|
917
920
|
if (token && cartUuid) {
|
|
918
921
|
getOrder(cartUuid);
|
|
@@ -26,7 +26,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
26
26
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
27
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
28
|
var Footer = function Footer(_ref) {
|
|
29
|
-
var _theme$my_products, _configs$powered_by_o
|
|
29
|
+
var _theme$my_products, _configs$powered_by_o;
|
|
30
30
|
var isFooterPage = _ref.isFooterPage;
|
|
31
31
|
var _useState = (0, _react.useState)({
|
|
32
32
|
body: null,
|
|
@@ -49,8 +49,8 @@ var Footer = function Footer(_ref) {
|
|
|
49
49
|
t = _useLanguage2[1];
|
|
50
50
|
var footerContent = theme === null || theme === void 0 || (_theme$my_products = theme.my_products) === null || _theme$my_products === void 0 || (_theme$my_products = _theme$my_products.components) === null || _theme$my_products === void 0 || (_theme$my_products = _theme$my_products.theme_settings) === null || _theme$my_products === void 0 || (_theme$my_products = _theme$my_products.components) === null || _theme$my_products === void 0 || (_theme$my_products = _theme$my_products.values) === null || _theme$my_products === void 0 ? void 0 : _theme$my_products.footer_content;
|
|
51
51
|
var enabledPoweredByOrdering = configs === null || configs === void 0 || (_configs$powered_by_o = configs.powered_by_ordering_module) === null || _configs$powered_by_o === void 0 ? void 0 : _configs$powered_by_o.value;
|
|
52
|
-
var getPage = function
|
|
53
|
-
|
|
52
|
+
var getPage = /*#__PURE__*/function () {
|
|
53
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
54
54
|
var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
|
|
55
55
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
56
56
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -98,8 +98,11 @@ var Footer = function Footer(_ref) {
|
|
|
98
98
|
return _context.stop();
|
|
99
99
|
}
|
|
100
100
|
}, _callee, null, [[1, 14]]);
|
|
101
|
-
}))
|
|
102
|
-
|
|
101
|
+
}));
|
|
102
|
+
return function getPage() {
|
|
103
|
+
return _ref2.apply(this, arguments);
|
|
104
|
+
};
|
|
105
|
+
}();
|
|
103
106
|
(0, _react.useEffect)(function () {
|
|
104
107
|
getPage();
|
|
105
108
|
return function () {
|
|
@@ -26,7 +26,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
26
26
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
27
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
28
|
var HelpStaticPage = function HelpStaticPage(props) {
|
|
29
|
-
var _ref;
|
|
30
29
|
var slug = props.slug;
|
|
31
30
|
var _useState = (0, _react.useState)({
|
|
32
31
|
body: null,
|
|
@@ -40,8 +39,8 @@ var HelpStaticPage = function HelpStaticPage(props) {
|
|
|
40
39
|
_useApi2 = _slicedToArray(_useApi, 1),
|
|
41
40
|
ordering = _useApi2[0];
|
|
42
41
|
var requestsState = {};
|
|
43
|
-
var getPage = function
|
|
44
|
-
|
|
42
|
+
var getPage = /*#__PURE__*/function () {
|
|
43
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
45
44
|
var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
|
|
46
45
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
47
46
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -89,8 +88,11 @@ var HelpStaticPage = function HelpStaticPage(props) {
|
|
|
89
88
|
return _context.stop();
|
|
90
89
|
}
|
|
91
90
|
}, _callee, null, [[1, 14]]);
|
|
92
|
-
}))
|
|
93
|
-
|
|
91
|
+
}));
|
|
92
|
+
return function getPage() {
|
|
93
|
+
return _ref.apply(this, arguments);
|
|
94
|
+
};
|
|
95
|
+
}();
|
|
94
96
|
(0, _react.useEffect)(function () {
|
|
95
97
|
getPage();
|
|
96
98
|
return function () {
|