ordering-ui-external 14.1.9 → 14.1.10
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/_modules/themes/callcenterOriginal/src/components/AddressForm/index.js +3 -4
- package/_modules/themes/callcenterOriginal/src/components/AddressForm/styles.js +3 -5
- package/_modules/themes/callcenterOriginal/src/components/AddressList/index.js +1 -4
- package/_modules/themes/callcenterOriginal/src/components/Header/index.js +0 -1
- package/_modules/themes/callcenterOriginal/src/components/Header/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/OrderTypeSelectorHeader/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +10 -7
- package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +24 -21
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +3 -1
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +3 -3
- package/_modules/themes/five/src/components/MomentControl/index.js +3 -1
- package/_modules/themes/five/src/components/MomentControl/styles.js +3 -3
- package/package.json +1 -1
- package/src/themes/callcenterOriginal/src/components/AddressForm/index.js +27 -29
- package/src/themes/callcenterOriginal/src/components/AddressForm/styles.js +5 -6
- package/src/themes/callcenterOriginal/src/components/AddressList/index.js +5 -4
- package/src/themes/callcenterOriginal/src/components/Header/index.js +0 -2
- package/src/themes/callcenterOriginal/src/components/Header/styles.js +6 -6
- package/src/themes/callcenterOriginal/src/components/OrderTypeSelectorHeader/styles.js +0 -1
- package/src/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +7 -6
- package/src/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +11 -7
- package/src/themes/five/src/components/BusinessPreorder/index.js +1 -1
- package/src/themes/five/src/components/BusinessPreorder/styles.js +9 -4
- package/src/themes/five/src/components/MomentControl/index.js +1 -1
- package/src/themes/five/src/components/MomentControl/styles.js +9 -4
|
@@ -500,15 +500,14 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
500
500
|
IconButton: _reactBootstrapIcons.GeoAlt,
|
|
501
501
|
IconLoadingButton: _CgSearchLoading.default
|
|
502
502
|
})), ((addressState === null || addressState === void 0 || (_addressState$address12 = addressState.address) === null || _addressState$address12 === void 0 ? void 0 : _addressState$address12.location) || (formState === null || formState === void 0 || (_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27.location)) && /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, {
|
|
503
|
-
isEnableContinueButton: isEnableContinueButton,
|
|
504
503
|
notUseCustomerInfo: notUseCustomerInfo,
|
|
505
504
|
addFormRestrictions: addFormRestrictions
|
|
506
|
-
},
|
|
505
|
+
}, !showMap && /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.GeoAlt, {
|
|
507
506
|
style: {
|
|
508
507
|
fontSize: 25,
|
|
509
508
|
marginRight: 5
|
|
510
509
|
}
|
|
511
|
-
}), ((addressState === null || addressState === void 0 || (_addressState$address13 = addressState.address) === null || _addressState$address13 === void 0 ? void 0 : _addressState$address13.address) || (formState === null || formState === void 0 || (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.address)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address14 = addressState.address) === null || _addressState$address14 === void 0 ? void 0 : _addressState$address14.address) || (formState === null || formState === void 0 || (_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.address), ', '), ((addressState === null || addressState === void 0 || (_addressState$address15 = addressState.address) === null || _addressState$address15 === void 0 ? void 0 : _addressState$address15.country) || (formState === null || formState === void 0 || (_formState$changes30 = formState.changes) === null || _formState$changes30 === void 0 ? void 0 : _formState$changes30.country)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address16 = addressState.address) === null || _addressState$address16 === void 0 ? void 0 : _addressState$address16.country) || (formState === null || formState === void 0 || (_formState$changes31 = formState.changes) === null || _formState$changes31 === void 0 ? void 0 : _formState$changes31.country), ', '), ((addressState === null || addressState === void 0 || (_addressState$address17 = addressState.address) === null || _addressState$address17 === void 0 ? void 0 : _addressState$address17.address_notes) || (formState === null || formState === void 0 || (_formState$changes32 = formState.changes) === null || _formState$changes32 === void 0 ? void 0 : _formState$changes32.address_notes)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address18 = addressState.address) === null || _addressState$address18 === void 0 ? void 0 : _addressState$address18.address_notes) || (formState === null || formState === void 0 || (_formState$changes33 = formState.changes) === null || _formState$changes33 === void 0 ? void 0 : _formState$changes33.address_notes), ', '), ((addressState === null || addressState === void 0 || (_addressState$address19 = addressState.address) === null || _addressState$address19 === void 0 ? void 0 : _addressState$address19.internal_number) || (formState === null || formState === void 0 || (_formState$changes34 = formState.changes) === null || _formState$changes34 === void 0 ? void 0 : _formState$changes34.internal_number)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address20 = addressState.address) === null || _addressState$address20 === void 0 ? void 0 : _addressState$address20.internal_number) || (formState === null || formState === void 0 || (_formState$changes35 = formState.changes) === null || _formState$changes35 === void 0 ? void 0 : _formState$changes35.internal_number), ', '), ((addressState === null || addressState === void 0 || (_addressState$address21 = addressState.address) === null || _addressState$address21 === void 0 ? void 0 : _addressState$address21.zipcode) || (formState === null || formState === void 0 || (_formState$changes36 = formState.changes) === null || _formState$changes36 === void 0 ? void 0 : _formState$changes36.zipcode)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address22 = addressState.address) === null || _addressState$address22 === void 0 ? void 0 : _addressState$address22.zipcode) || (formState === null || formState === void 0 || (_formState$changes37 = formState.changes) === null || _formState$changes37 === void 0 ? void 0 : _formState$changes37.zipcode), ', ')
|
|
510
|
+
}), ((addressState === null || addressState === void 0 || (_addressState$address13 = addressState.address) === null || _addressState$address13 === void 0 ? void 0 : _addressState$address13.address) || (formState === null || formState === void 0 || (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.address)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address14 = addressState.address) === null || _addressState$address14 === void 0 ? void 0 : _addressState$address14.address) || (formState === null || formState === void 0 || (_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.address), ', '), ((addressState === null || addressState === void 0 || (_addressState$address15 = addressState.address) === null || _addressState$address15 === void 0 ? void 0 : _addressState$address15.country) || (formState === null || formState === void 0 || (_formState$changes30 = formState.changes) === null || _formState$changes30 === void 0 ? void 0 : _formState$changes30.country)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address16 = addressState.address) === null || _addressState$address16 === void 0 ? void 0 : _addressState$address16.country) || (formState === null || formState === void 0 || (_formState$changes31 = formState.changes) === null || _formState$changes31 === void 0 ? void 0 : _formState$changes31.country), ', '), ((addressState === null || addressState === void 0 || (_addressState$address17 = addressState.address) === null || _addressState$address17 === void 0 ? void 0 : _addressState$address17.address_notes) || (formState === null || formState === void 0 || (_formState$changes32 = formState.changes) === null || _formState$changes32 === void 0 ? void 0 : _formState$changes32.address_notes)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address18 = addressState.address) === null || _addressState$address18 === void 0 ? void 0 : _addressState$address18.address_notes) || (formState === null || formState === void 0 || (_formState$changes33 = formState.changes) === null || _formState$changes33 === void 0 ? void 0 : _formState$changes33.address_notes), ', '), ((addressState === null || addressState === void 0 || (_addressState$address19 = addressState.address) === null || _addressState$address19 === void 0 ? void 0 : _addressState$address19.internal_number) || (formState === null || formState === void 0 || (_formState$changes34 = formState.changes) === null || _formState$changes34 === void 0 ? void 0 : _formState$changes34.internal_number)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address20 = addressState.address) === null || _addressState$address20 === void 0 ? void 0 : _addressState$address20.internal_number) || (formState === null || formState === void 0 || (_formState$changes35 = formState.changes) === null || _formState$changes35 === void 0 ? void 0 : _formState$changes35.internal_number), ', '), ((addressState === null || addressState === void 0 || (_addressState$address21 = addressState.address) === null || _addressState$address21 === void 0 ? void 0 : _addressState$address21.zipcode) || (formState === null || formState === void 0 || (_formState$changes36 = formState.changes) === null || _formState$changes36 === void 0 ? void 0 : _formState$changes36.zipcode)) && /*#__PURE__*/_react.default.createElement("span", null, (addressState === null || addressState === void 0 || (_addressState$address22 = addressState.address) === null || _addressState$address22 === void 0 ? void 0 : _addressState$address22.zipcode) || (formState === null || formState === void 0 || (_formState$changes37 = formState.changes) === null || _formState$changes37 === void 0 ? void 0 : _formState$changes37.zipcode), ', '), /*#__PURE__*/_react.default.createElement("a", {
|
|
512
511
|
style: {
|
|
513
512
|
textDecoration: 'underline',
|
|
514
513
|
color: 'blue',
|
|
@@ -517,7 +516,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
517
516
|
onClick: function onClick() {
|
|
518
517
|
return setShowMap(!showMap);
|
|
519
518
|
}
|
|
520
|
-
},
|
|
519
|
+
}, t('SHOW_MAP', 'Show Map'))), locationChange && showMap && /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.GoogleMapsMap, {
|
|
521
520
|
useMapWithBusinessZones: true,
|
|
522
521
|
deactiveAlerts: true,
|
|
523
522
|
avoidFitBounds: true,
|
|
@@ -38,11 +38,9 @@ var WrapAddressInput = exports.WrapAddressInput = _styledComponents.default.div(
|
|
|
38
38
|
var AddressTagSection = exports.AddressTagSection = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 10px 0px;\n display: flex;\n justify-content: space-between;\n\n button {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 46px;\n height: 46px;\n border: none;\n color: #B1BCCC;\n\n img {\n width: 25px;\n height: 25px;\n }\n\n span {\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n font-size: 30px;\n }\n }\n }\n\n button.active {\n color: ", ";\n }\n"])), function (props) {
|
|
39
39
|
return props.theme.colors.primary;
|
|
40
40
|
});
|
|
41
|
-
var WrapperMap = exports.WrapperMap = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n z-index: 100;\n width: 50%;\n position: absolute;\n bottom: 2%;\n right: 0;\n padding-right: 20px;\n height: ", ";\n\n > div {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n border-radius: 15px;\n }\n"])), function (_ref) {
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
addFormRestrictions = _ref.addFormRestrictions;
|
|
45
|
-
return isEnableContinueButton ? addFormRestrictions ? '460px' : '425px' : notUseCustomerInfo ? '370px' : '480px';
|
|
41
|
+
var WrapperMap = exports.WrapperMap = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n z-index: 100;\n width: 50%;\n position: absolute;\n bottom: 2%;\n right: 0;\n padding-right: 20px;\n padding-top: 30px;\n height: ", ";\n\n > div {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n border-radius: 15px;\n }\n"])), function (_ref) {
|
|
42
|
+
var notUseCustomerInfo = _ref.notUseCustomerInfo;
|
|
43
|
+
return notUseCustomerInfo ? '370px' : '480px';
|
|
46
44
|
});
|
|
47
45
|
var WrapperSkeleton = exports.WrapperSkeleton = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 10px;\n\n span {\n width: 100%;\n }\n"])));
|
|
48
46
|
var AddressMarkContainer = exports.AddressMarkContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n background: #FFE69C;\n border: 1px solid #FFF3CD;\n display: flex;\n padding: 8px;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n position: absolute;\n top: 50px;\n width: max-content;\n p {\n margin: 0;\n color: #664D03;\n font-size: 12px;\n }\n"])));
|
|
@@ -226,13 +226,12 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
226
226
|
halfWidth: addressOpen,
|
|
227
227
|
isOpenUserData: isOpenUserData,
|
|
228
228
|
isHeader: isHeader,
|
|
229
|
-
isEnableContinueButton: isEnableContinueButton,
|
|
230
229
|
notUseCustomerInfo: notUseCustomerInfo,
|
|
231
230
|
addFormRestrictions: addFormRestrictions
|
|
232
231
|
}, !addFormRestrictions && !addressOpen && !isOpenUserData && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
233
232
|
className: "add",
|
|
234
233
|
outline: true,
|
|
235
|
-
color:
|
|
234
|
+
color: (addressList === null || addressList === void 0 || (_addressList$addresse3 = addressList.addresses) === null || _addressList$addresse3 === void 0 ? void 0 : _addressList$addresse3.length) > 0 ? 'secondary' : 'primary',
|
|
236
235
|
onClick: function onClick() {
|
|
237
236
|
return openAddress({});
|
|
238
237
|
},
|
|
@@ -309,13 +308,11 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
309
308
|
},
|
|
310
309
|
onSaveAddress: handleSaveAddress,
|
|
311
310
|
userCustomerSetup: userCustomerSetup,
|
|
312
|
-
isEnableContinueButton: isEnableContinueButton,
|
|
313
311
|
notUseCustomerInfo: notUseCustomerInfo,
|
|
314
312
|
franchiseId: franchiseId,
|
|
315
313
|
addFormRestrictions: addFormRestrictions
|
|
316
314
|
}))), addressOpen && !notUseCustomerInfo && /*#__PURE__*/_react.default.createElement(_styles.AddressFormContainer, {
|
|
317
315
|
width: "50%",
|
|
318
|
-
isEnableContinueButton: isEnableContinueButton,
|
|
319
316
|
addFormRestrictions: addFormRestrictions
|
|
320
317
|
}, /*#__PURE__*/_react.default.createElement(_styles.TitleFormContainer, null, !addFormRestrictions && /*#__PURE__*/_react.default.createElement(_styles.CloseIcon, null, /*#__PURE__*/_react.default.createElement(_MdClose.default, {
|
|
321
318
|
onClick: function onClick() {
|
|
@@ -10,7 +10,6 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
10
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
11
11
|
var _styledComponents = require("styled-components");
|
|
12
12
|
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
13
|
-
var _TiWarningOutline = _interopRequireDefault(require("@meronex/icons/ti/TiWarningOutline"));
|
|
14
13
|
var _OrderTypeSelectorContent = require("../OrderTypeSelectorContent");
|
|
15
14
|
var _LanguageSelector = require("../LanguageSelector");
|
|
16
15
|
var _AiOutlineClose = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineClose"));
|
|
@@ -24,7 +24,7 @@ var LeftHeader = exports.LeftHeader = _styledComponents.default.div(_templateObj
|
|
|
24
24
|
var RightHeader = exports.RightHeader = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n align-self: center;\n display: flex;\n\n #select-input {\n div {\n color: ", ";\n }\n }\n"])), function (props) {
|
|
25
25
|
return props.theme.colors.darkTextColor;
|
|
26
26
|
});
|
|
27
|
-
var Menu = exports.Menu = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n #select-input {\n border-radius: 7.6px;\n\n #list {\n border-radius: 7.6px;\n }\n }\n\n &.left-header {\n background: #F8F9FA;\n border: none;\n box-sizing: border-box;\n border-radius: 50px;\n margin: 0 20px;\n padding: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n height: 44px;\n\n @media (min-width: 821px) {\n border: 1px solid #DEE2E6;\n justify-content: space-between;\n }\n\n @media (min-width: 1024px) {\n padding: 0 20px;\n margin-left: 35px;\n margin-right: 10px;\n }\n
|
|
27
|
+
var Menu = exports.Menu = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n #select-input {\n border-radius: 7.6px;\n\n #list {\n border-radius: 7.6px;\n }\n }\n\n &.left-header {\n background: #F8F9FA;\n border: none;\n box-sizing: border-box;\n border-radius: 50px;\n margin: 0 20px;\n padding: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n height: 44px;\n\n @media (min-width: 821px) {\n border: 1px solid #DEE2E6;\n justify-content: space-between;\n }\n\n @media (min-width: 1024px) {\n padding: 0 20px;\n margin-left: 35px;\n margin-right: 10px;\n }\n\n @media (min-width: 1200px) {\n padding: 0 30px;\n margin-left: 50px;\n margin-right: 15px;\n }\n\n @media (min-width: 1500px) {\n padding: 0 30px;\n margin-left: 75px;\n margin-right: 20px\n }\n }\n\n > *:not(:last-child) {\n margin: 0 5px;\n }\n\n > span {\n #select-input {\n background: transparent !important;\n }\n }\n\n .moment-popover {\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n justify-content: center;\n width: 200px;\n display: none;\n\n @media (min-width: 1175px) {\n width: 250px;\n }\n\n @media (min-width: 1400px) {\n width: 400px;\n }\n\n > div:first-child {\n width: 100%;\n display: flex;\n justify-content: center;\n }\n }\n\n .address-popover {\n flex-grow: 1;\n display: none;\n > div:first-child {\n width: 100%;\n }\n }\n\n .order-type {\n padding: 0 5px;\n\n > div {\n min-width: auto;\n text-overflow: ellipsis;\n overflow: hidden;\n min-width: 40px;\n }\n\n @media (min-width: 1123px) {\n padding: 0 10px;\n > div {\n min-width: fit-content;\n }\n }\n @media (min-width: 1200px) {\n padding: 0 20px;\n }\n }\n\n\n @media (min-width: 821px) {\n .moment-popover,\n .address-popover {\n display: flex;\n }\n }\n"])));
|
|
28
28
|
var MenuItem = exports.MenuItem = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
29
29
|
var MenuLink = exports.MenuLink = _styledComponents.default.a(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n text-decoration: none;\n font-size: 14px;\n padding: 10px;\n color: #333;\n cursor: pointer;\n\n ", "\n"])), function (_ref2) {
|
|
30
30
|
var highlight = _ref2.highlight;
|
|
@@ -35,8 +35,8 @@ var MenuLink = exports.MenuLink = _styledComponents.default.a(_templateObject9 |
|
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
var SubMenu = exports.SubMenu = (0, _styledComponents.default)(InnerHeader)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n padding: 0px 20px 7px;\n box-sizing: border-box;\n margin: 0px;\n position: relative;\n\n @media (min-width: 821px) {\n display: none;\n }\n"])));
|
|
38
|
-
var CustomerInfo = exports.CustomerInfo = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: none;\n cursor: pointer;\n flex: 1;\n position: relative;\n @media (min-width: 450px) {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n display: flex;\n align-items: center;\n margin: 0;\n p {\n max-width: 250px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #909BA9;\n margin: 0;\n }\n svg {
|
|
39
|
-
var UserEdit = exports.UserEdit = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n > :first-child{\n margin-bottom: 20px;\n width: 100%;\n ", "\n"])), function (props) {
|
|
38
|
+
var CustomerInfo = exports.CustomerInfo = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: none;\n cursor: pointer;\n flex: 1;\n position: relative;\n @media (min-width: 450px) {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n display: flex;\n align-items: center;\n margin: 0;\n p {\n max-width: 250px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #909BA9;\n margin: 0;\n }\n svg {\n color: #748194;\n margin: 0;\n font-size: 20px;\n }\n }\n }\n"])));
|
|
39
|
+
var UserEdit = exports.UserEdit = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n > :first-child{\n margin-bottom: 20px;\n width: 100%;\n ", "\n }\n"])), function (props) {
|
|
40
40
|
return !props.isOpenUserData && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: absolute;\n "])));
|
|
41
41
|
});
|
|
42
42
|
var AddressMenu = exports.AddressMenu = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n display: flex;\n align-items: center;\n position: relative;\n width: 50%;\n\n span {\n width: 85%;\n p {\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n }\n\n svg {\n color: ", ";\n font-size: 16px;\n margin-right: 10px;\n ", "\n }\n @media (min-width: 765px) {\n width: 80%;\n }\n @media (min-width: 820px) {\n width: 50%;\n }\n"])), function (props) {
|
|
@@ -49,7 +49,7 @@ var AddressMenu = exports.AddressMenu = _styledComponents.default.div(_templateO
|
|
|
49
49
|
var _props$theme2;
|
|
50
50
|
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
|
|
51
51
|
});
|
|
52
|
-
var MomentMenu = exports.MomentMenu = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n height: 100%;\n justify-content: center;\n width: 200px;\n display: none;\n
|
|
52
|
+
var MomentMenu = exports.MomentMenu = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n height: 100%;\n justify-content: center;\n width: 200px;\n display: none;\n\n @media (min-width: 821px) {\n display: flex;\n }\n\n @media (min-width: 1175px) {\n width: 250px;\n }\n\n @media (min-width: 1400px) {\n width: 300px;\n }\n\n > div {\n cursor: pointer;\n font-size: 14px;\n color: #909BA9;\n display: flex;\n align-items: center;\n text-align: center;\n white-space: nowrap;\n padding: 0 10px;\n }\n"])));
|
|
53
53
|
var FarAwayMessage = exports.FarAwayMessage = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n pointer-events: none;\n position: absolute;\n display: flex;\n align-items: center;\n top: 100%;\n background: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n padding: 6px 15px;\n box-sizing: border-box;\n z-index: 2000;\n margin: 10px 0px 0px 0px !important;\n\n left: 5px;\n ", "\n\n svg {\n font-size: 20px;\n color: ", ";\n margin-right: 10px;\n ", "\n }\n span {\n font-size: 12px;\n line-height: 18px;\n color: ", ";\n }\n\n @media (min-width: 400px) {\n padding: 8px 20px;\n font-size: 14px;\n line-height: 24px;\n left: 10px;\n ", "\n }\n"])), function (props) {
|
|
54
54
|
return props.theme.colors.warning100;
|
|
55
55
|
}, function (props) {
|
|
@@ -8,4 +8,4 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _templateObject;
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
-
var HeaderItem = exports.HeaderItem = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n color: #909BA9;\n min-width: 150px;\n text-align: center;\n
|
|
11
|
+
var HeaderItem = exports.HeaderItem = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n color: #909BA9;\n min-width: 150px;\n text-align: center;\n flex: 1;\n"])));
|
|
@@ -405,16 +405,20 @@ var PhoneAutocompleteUI = function PhoneAutocompleteUI(props) {
|
|
|
405
405
|
},
|
|
406
406
|
hideCloseDefault: true,
|
|
407
407
|
padding: "20px"
|
|
408
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.UserEdit,
|
|
408
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.UserEdit, {
|
|
409
|
+
isOpenUserData: isOpenUserData
|
|
410
|
+
}, !(customerState !== null && customerState !== void 0 && customerState.loading) && !(customersPhones !== null && customersPhones !== void 0 && customersPhones.loading) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_UserDetails.UserDetails, {
|
|
409
411
|
isAddressFormOpen: isAddressFormOpen,
|
|
410
|
-
|
|
412
|
+
userData: customerState === null || customerState === void 0 ? void 0 : customerState.result,
|
|
411
413
|
userId: customerState === null || customerState === void 0 || (_customerState$result = customerState.result) === null || _customerState$result === void 0 ? void 0 : _customerState$result.id,
|
|
414
|
+
isOpenUserData: isOpenUserData,
|
|
412
415
|
isCustomerMode: true,
|
|
413
416
|
isModal: true,
|
|
414
417
|
setIsOpenUserData: setIsOpenUserData,
|
|
415
418
|
onClose: function onClose() {
|
|
416
419
|
return handleCloseAddressList();
|
|
417
|
-
}
|
|
420
|
+
},
|
|
421
|
+
franchiseId: franchiseId
|
|
418
422
|
}), /*#__PURE__*/_react.default.createElement(_AddressList.AddressList, {
|
|
419
423
|
isModal: true,
|
|
420
424
|
userId: customerState === null || customerState === void 0 || (_customerState$result2 = customerState.result) === null || _customerState$result2 === void 0 ? void 0 : _customerState$result2.id,
|
|
@@ -423,14 +427,13 @@ var PhoneAutocompleteUI = function PhoneAutocompleteUI(props) {
|
|
|
423
427
|
phone: phone,
|
|
424
428
|
urlPhone: urlPhone
|
|
425
429
|
}),
|
|
426
|
-
isEnableContinueButton: true,
|
|
427
|
-
isCustomerMode: true,
|
|
428
|
-
isFromPhoneAutocomplete: true,
|
|
429
430
|
isOpenUserData: isOpenUserData,
|
|
431
|
+
isEnableContinueButton: true,
|
|
430
432
|
setIsOpenUserData: setIsOpenUserData,
|
|
433
|
+
setIsSavedAddress: setIsSavedAddress,
|
|
431
434
|
setIsAddressFormOpen: setIsAddressFormOpen,
|
|
432
435
|
franchiseId: franchiseId,
|
|
433
|
-
|
|
436
|
+
isHeader: true
|
|
434
437
|
})))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
435
438
|
open: openModal.error,
|
|
436
439
|
width: "50%",
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.WrappBtn = exports.WrapInput = exports.UserEdit = exports.TypesContainer = exports.TypeButton = exports.Title = exports.Slogan = exports.SelectContainer = exports.SearchContainer = exports.PhoneContainer = exports.PhoneAutocompleteContainer = exports.OptionContainer = exports.NotFoundUser = exports.Info = exports.ImageWrapper = exports.IconTypeButton = exports.ContinueButton = exports.ContentWrapper = exports.AutoComplete = exports.AdditionalTypesContainer = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -45,7 +45,7 @@ var Slogan = exports.Slogan = _styledComponents.default.p(_templateObject9 || (_
|
|
|
45
45
|
var _props$theme7;
|
|
46
46
|
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 "])));
|
|
47
47
|
});
|
|
48
|
-
var WrapInput = exports.WrapInput = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: relative;\n cursor: pointer;\n\n ", "\n
|
|
48
|
+
var WrapInput = exports.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) {
|
|
49
49
|
var withIcon = _ref2.withIcon;
|
|
50
50
|
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) {
|
|
51
51
|
var _props$theme8;
|
|
@@ -61,14 +61,16 @@ var WrapInput = exports.WrapInput = _styledComponents.default.div(_templateObjec
|
|
|
61
61
|
var _props$theme11;
|
|
62
62
|
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 "])));
|
|
63
63
|
});
|
|
64
|
-
var AutoComplete = exports.AutoComplete = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n width: 45
|
|
65
|
-
var UserEdit = exports.UserEdit = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n > :first-child{\n margin-bottom: 20px
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
var
|
|
64
|
+
var AutoComplete = exports.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"])));
|
|
65
|
+
var UserEdit = exports.UserEdit = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n > :first-child {\n margin-bottom: 20px;\n width: 100%;\n ", "\n }\n"])), function (props) {
|
|
66
|
+
return !props.isOpenUserData && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n position: absolute;\n "])));
|
|
67
|
+
});
|
|
68
|
+
var Info = exports.Info = _styledComponents.default.p(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral([""])));
|
|
69
|
+
var SelectContainer = exports.SelectContainer = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n display: flex;\n width: 60%;\n position: relative;\n align-items: center;\n svg{\n position: absolute;\n top: 0;\n left: 20px;\n transform: translate(50%, 70%);\n z-index: 10;\n }\n > div {\n width: 100%;\n .select__placeholder, .select__single-value, input {\n margin-left: 40px;\n z-index: 100;\n bottom: -10px;\n }\n .select__menu {\n position: relative;\n padding: 20px;\n }\n .select__clear-indicator {\n position: relative;\n left: 0;\n transform: translate(-300%, -165%);\n svg{\n width: 30px;\n height: 30px;\n }\n }\n .select__control {\n height: 45px;\n padding-left: 10px;\n }\n .select__indicator {\n bottom: 8px;\n position: relative;\n }\n .select__menu{\n top: 45px;\n }\n input {\n position: relative;\n top: -5px;\n }\n }\n"])));
|
|
70
|
+
var SearchContainer = exports.SearchContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n width: 90%;\n"])));
|
|
71
|
+
var ImageWrapperStyled = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n width: 30%;\n ", "\n @media (min-width: 1400px){\n width: 40%;\n }\n"])), function (_ref3) {
|
|
70
72
|
var bgimage = _ref3.bgimage;
|
|
71
|
-
return bgimage && (0, _styledComponents.css)(
|
|
73
|
+
return bgimage && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n "])));
|
|
72
74
|
});
|
|
73
75
|
var ImageWrapper = exports.ImageWrapper = function ImageWrapper(props) {
|
|
74
76
|
var style = {};
|
|
@@ -77,7 +79,7 @@ var ImageWrapper = exports.ImageWrapper = function ImageWrapper(props) {
|
|
|
77
79
|
style: style
|
|
78
80
|
}), props.children);
|
|
79
81
|
};
|
|
80
|
-
var TypeButton = exports.TypeButton = _styledComponents.default.div(
|
|
82
|
+
var TypeButton = exports.TypeButton = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: 215px;\n height: 75px;\n border-radius: 7.6px;\n padding: 16px;\n box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.10);\n margin-right: 32px;\n margin-bottom: 32px;\n cursor: pointer;\n background: ", ";\n p{\n margin: 0;\n margin-left: 33px;\n ", "\n }\n"])), function (_ref4) {
|
|
81
83
|
var _theme$colors, _theme$colors2;
|
|
82
84
|
var activated = _ref4.activated,
|
|
83
85
|
theme = _ref4.theme;
|
|
@@ -86,20 +88,21 @@ var TypeButton = exports.TypeButton = _styledComponents.default.div(_templateObj
|
|
|
86
88
|
var _theme$colors3;
|
|
87
89
|
var activated = _ref5.activated,
|
|
88
90
|
theme = _ref5.theme;
|
|
89
|
-
return activated && (0, _styledComponents.css)(
|
|
91
|
+
return activated && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n color: ", ";\n "])), theme === null || theme === void 0 || (_theme$colors3 = theme.colors) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3.white);
|
|
90
92
|
});
|
|
91
|
-
var IconTypeButton = exports.IconTypeButton = _styledComponents.default.div(
|
|
92
|
-
var _theme$
|
|
93
|
-
var
|
|
94
|
-
|
|
93
|
+
var IconTypeButton = exports.IconTypeButton = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 44px;\n height: 44px;\n background: ", ";\n border-radius: 44px;\n"])), function (_ref6) {
|
|
94
|
+
var _theme$colors4;
|
|
95
|
+
var activated = _ref6.activated,
|
|
96
|
+
theme = _ref6.theme;
|
|
97
|
+
return activated ? theme === null || theme === void 0 || (_theme$colors4 = theme.colors) === null || _theme$colors4 === void 0 ? void 0 : _theme$colors4.white : '#F3F9FF';
|
|
95
98
|
});
|
|
96
|
-
var TypesContainer = exports.TypesContainer = _styledComponents.default.div(
|
|
97
|
-
var AdditionalTypesContainer = exports.AdditionalTypesContainer = _styledComponents.default.div(
|
|
99
|
+
var TypesContainer = exports.TypesContainer = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
100
|
+
var AdditionalTypesContainer = exports.AdditionalTypesContainer = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n width: 60%;\n display: flex;\n margin-bottom: 20px;\n button {\n padding: 4px 10px;\n border-radius: 50px;\n font-size: 10px;\n line-height: 0;\n height: 25px;\n margin-right: 20px;\n }\n .activated {\n color: ", "\n }\n"])), function (_ref7) {
|
|
98
101
|
var _theme$colors5;
|
|
99
102
|
var theme = _ref7.theme;
|
|
100
103
|
return theme === null || theme === void 0 || (_theme$colors5 = theme.colors) === null || _theme$colors5 === void 0 ? void 0 : _theme$colors5.darkTextColor;
|
|
101
104
|
});
|
|
102
|
-
var PhoneAutocompleteContainer = exports.PhoneAutocompleteContainer = _styledComponents.default.div(
|
|
103
|
-
var ContinueButton = exports.ContinueButton = _styledComponents.default.span(
|
|
104
|
-
var NotFoundUser = exports.NotFoundUser = _styledComponents.default.div(
|
|
105
|
-
var OptionContainer = exports.OptionContainer = _styledComponents.default.div(
|
|
105
|
+
var PhoneAutocompleteContainer = exports.PhoneAutocompleteContainer = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n position: relative;\n h2 {\n font-size: 20px;\n margin-bottom: 20px;\n }\n"])));
|
|
106
|
+
var ContinueButton = exports.ContinueButton = _styledComponents.default.span(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n position: absolute;\n right: 35px;\n bottom: 5px;\n width:\n button {\n cursor: pointer;\n }\n"])));
|
|
107
|
+
var NotFoundUser = exports.NotFoundUser = _styledComponents.default.div(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n margin: 70px 0px;\n text-align: center;\n"])));
|
|
108
|
+
var OptionContainer = exports.OptionContainer = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n display: flex;\n img {\n position: absolute;\n right: 10px;\n transform: translateY(55%);\n }\n"])));
|
|
@@ -246,7 +246,9 @@ var BusinessPreorderUI = function BusinessPreorderUI(props) {
|
|
|
246
246
|
cateringPreorder: cateringPreorder
|
|
247
247
|
}, /*#__PURE__*/_react.default.createElement("span", null, cateringPreorder && /*#__PURE__*/_react.default.createElement(_styles.CheckIcon, null, timeSelected === time.value ? /*#__PURE__*/_react.default.createElement(_styles.CheckedIcon, {
|
|
248
248
|
cateringPreorder: cateringPreorder
|
|
249
|
-
}) : /*#__PURE__*/_react.default.createElement(_CgRadioCheck.default, null)), /*#__PURE__*/_react.default.createElement("p",
|
|
249
|
+
}) : /*#__PURE__*/_react.default.createElement(_CgRadioCheck.default, null)), /*#__PURE__*/_react.default.createElement("p", {
|
|
250
|
+
id: "time"
|
|
251
|
+
}, time.text, " ", cateringPreorder && "- ".concat(time.endText))));
|
|
250
252
|
})) : /*#__PURE__*/_react.default.createElement(_styles.ClosedBusinessMsg, null, !isProfessional ? t('ERROR_ADD_PRODUCT_BUSINESS_CLOSED', 'The business is closed at the moment') : t('PROFESSIONAL_NOT_AVAILABLE', 'Professional is not available at the moment')))), !isPreOrderSetting && !isProfessional && /*#__PURE__*/_react.default.createElement(_styles.ClosedBusinessMsg, null, t('ERROR_ADD_PRODUCT_BUSINESS_CLOSED', 'The business is closed at the moment')), showButton && /*#__PURE__*/_react.default.createElement(_styles.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
251
253
|
color: "primary",
|
|
252
254
|
onClick: goToBusinessPage,
|
|
@@ -43,14 +43,14 @@ var ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div(_templ
|
|
|
43
43
|
return props.theme.rtl && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n left: 15px;\n right: initial;\n "])));
|
|
44
44
|
});
|
|
45
45
|
var TimeListWrapper = exports.TimeListWrapper = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n margin-left: -12px;\n width: calc(100% + 24px);\n margin-top: 30px;\n max-height: 250px;\n overflow: auto;\n"])));
|
|
46
|
-
var TimeItem = exports.TimeItem = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n span {\n font-size: 14px;\n white-space: nowrap;\n }\n ", "\n", "\n ", "\n"])), function (_ref) {
|
|
46
|
+
var TimeItem = exports.TimeItem = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n span {\n font-size: 14px;\n white-space: nowrap;\n\n p#time {\n margin: auto;\n padding: 10px;\n }\n }\n ", "\n", "\n ", "\n"])), function (_ref) {
|
|
47
47
|
var active = _ref.active;
|
|
48
48
|
return active && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n background: #F5F9FF;\n color: ", ";\n "])), function (props) {
|
|
49
49
|
return props.theme.colors.primary;
|
|
50
50
|
});
|
|
51
51
|
}, function (_ref2) {
|
|
52
52
|
var cateringPreorder = _ref2.cateringPreorder;
|
|
53
|
-
return cateringPreorder ? (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n background: ", ";\n width: 100%;\n min-width: 100%;\n height: 50px;\n
|
|
53
|
+
return cateringPreorder ? (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n background: ", ";\n width: 100%;\n min-width: 100%;\n height: 50px;\n\n span {\n font-size: 18px;\n display: flex;\n align-items: center;\n margin: 10px 0;\n margin-left: 15px;\n p{\n position: relative;\n bottom: 2px;\n }\n }\n ", "\n "])), function (props) {
|
|
54
54
|
var _props$theme;
|
|
55
55
|
return (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.colors) === null || _props$theme === void 0 ? void 0 : _props$theme.backgroundPage;
|
|
56
56
|
}, function (_ref3) {
|
|
@@ -58,7 +58,7 @@ var TimeItem = exports.TimeItem = _styledComponents.default.div(_templateObject1
|
|
|
58
58
|
return active && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n background: #F5F9FF;\n color: ", ";\n span {\n p{\n bottom: 0;\n margin-left: 2px;\n }\n }\n "])), function (props) {
|
|
59
59
|
return props.theme.colors.primary;
|
|
60
60
|
});
|
|
61
|
-
}) : (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n justify-content: center;\n align-items: center;\n background: #E9ECEF;\n border-radius: 7.6px;\n padding: 5px 15px;\n margin: 12px;\n width: calc(50% - 24px);\n min-width: calc(50% - 24px);\n box-sizing: border-box;\n user-select: none;\n
|
|
61
|
+
}) : (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n justify-content: center;\n align-items: center;\n background: #E9ECEF;\n border-radius: 7.6px;\n padding: 5px 15px;\n margin: 12px;\n width: calc(50% - 24px);\n min-width: calc(50% - 24px);\n box-sizing: border-box;\n user-select: none;\n\n @media (min-width: 400px) {\n width: calc(33.33% - 24px);\n min-width: calc(33.33% - 24px);\n }\n\n @media (min-width: 576px) {\n width: calc(25% - 24px);\n min-width: calc(25% - 24px);\n }\n\n @media (min-width: 769px) {\n width: calc(33.33% - 24px);\n min-width: calc(33.33% - 24px);\n ", "\n }\n "])), function (_ref4) {
|
|
62
62
|
var isAppoint = _ref4.isAppoint;
|
|
63
63
|
return isAppoint && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n width: calc(33.33% - 24px);\n min-width: calc(33.33% - 24px);\n span {\n font-size: 12px;\n }\n "])));
|
|
64
64
|
});
|
|
@@ -272,7 +272,9 @@ var MomentControlUI = function MomentControlUI(props) {
|
|
|
272
272
|
}, /*#__PURE__*/_react.default.createElement("span", null, cateringPreorder && /*#__PURE__*/_react.default.createElement(_styles.CheckIcon, null, timeSelected === time.value ? /*#__PURE__*/_react.default.createElement(_styles.CheckedIcon, {
|
|
273
273
|
ref: scheduleItemRef,
|
|
274
274
|
cateringPreorder: cateringPreorder
|
|
275
|
-
}) : /*#__PURE__*/_react.default.createElement(_CgRadioCheck.default, null)), /*#__PURE__*/_react.default.createElement("p",
|
|
275
|
+
}) : /*#__PURE__*/_react.default.createElement(_CgRadioCheck.default, null)), /*#__PURE__*/_react.default.createElement("p", {
|
|
276
|
+
id: "time"
|
|
277
|
+
}, time.text, " ", cateringPreorder && "- ".concat(time.endText))));
|
|
276
278
|
})) : /*#__PURE__*/_react.default.createElement(_styles.ClosedBusinessMsg, null, !business ? t('ERROR_SHEDULE_UNAVAILABLE', 'There are no schedules for this date') : t('ERROR_ADD_PRODUCT_BUSINESS_CLOSED', 'The business is closed at the moment')))) : /*#__PURE__*/_react.default.createElement(_CustomLayout.CustomLayout, {
|
|
277
279
|
handleChangeDate: handleChangeDate,
|
|
278
280
|
datesList: datesList,
|
|
@@ -65,19 +65,19 @@ var DayNumber = exports.DayNumber = _styledComponents.default.div(_templateObjec
|
|
|
65
65
|
var isAppoint = _ref7.isAppoint;
|
|
66
66
|
return isAppoint && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 16px;\n line-height: 26px;\n "])));
|
|
67
67
|
});
|
|
68
|
-
var TimeItem = exports.TimeItem = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n span {\n font-size: 14px;\n white-space: nowrap;\n }\n ", "\n", "\n"])), function (_ref8) {
|
|
68
|
+
var TimeItem = exports.TimeItem = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n span {\n font-size: 14px;\n white-space: nowrap;\n\n p#time {\n margin: auto;\n padding: 10px;\n }\n }\n ", "\n", "\n"])), function (_ref8) {
|
|
69
69
|
var active = _ref8.active;
|
|
70
70
|
return active && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n background: #F5F9FF;\n color: ", ";\n "])), function (props) {
|
|
71
71
|
return props.theme.colors.primary;
|
|
72
72
|
});
|
|
73
73
|
}, function (_ref9) {
|
|
74
74
|
var cateringPreorder = _ref9.cateringPreorder;
|
|
75
|
-
return cateringPreorder ? (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n background: #fff;\n width: 100%;\n min-width: 100%;\n height: 50px;\n
|
|
75
|
+
return cateringPreorder ? (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n background: #fff;\n width: 100%;\n min-width: 100%;\n height: 50px;\n\n span {\n font-size: 18px;\n display: flex;\n align-items: center;\n margin: 10px 0;\n margin-left: 15px;\n p{\n position: relative;\n bottom: 2px;\n }\n }\n ", "\n "])), function (_ref10) {
|
|
76
76
|
var active = _ref10.active;
|
|
77
77
|
return active && (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n background: #F5F9FF;\n color: ", ";\n span {\n p{\n bottom: 0;\n margin-left: 2px;\n }\n }\n "])), function (props) {
|
|
78
78
|
return props.theme.colors.primary;
|
|
79
79
|
});
|
|
80
|
-
}) : (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n justify-content: center;\n align-items: center;\n background: #E9ECEF;\n border-radius: 7.6px;\n padding: 5px 15px;\n margin: 12px;\n width: calc(50% - 24px);\n min-width: calc(50% - 24px);\n box-sizing: border-box;\n user-select: none;\n
|
|
80
|
+
}) : (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n justify-content: center;\n align-items: center;\n background: #E9ECEF;\n border-radius: 7.6px;\n padding: 5px 15px;\n margin: 12px;\n width: calc(50% - 24px);\n min-width: calc(50% - 24px);\n box-sizing: border-box;\n user-select: none;\n\n @media (min-width: 400px) {\n width: calc(33.33% - 24px);\n min-width: calc(33.33% - 24px);\n }\n\n @media (min-width: 576px) {\n width: calc(25% - 24px);\n min-width: calc(25% - 24px);\n }\n\n @media (min-width: 769px) {\n width: calc(33.33% - 24px);\n min-width: calc(33.33% - 24px);\n ", "\n }\n "])), function (_ref11) {
|
|
81
81
|
var isAppoint = _ref11.isAppoint;
|
|
82
82
|
return isAppoint && (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n width: calc(33.33% - 24px);\n min-width: calc(33.33% - 24px);\n span {\n font-size: 12px;\n }\n "])));
|
|
83
83
|
});
|
package/package.json
CHANGED
|
@@ -440,35 +440,33 @@ const AddressFormUI = (props) => {
|
|
|
440
440
|
</AddressWrap>
|
|
441
441
|
|
|
442
442
|
{(addressState?.address?.location || formState?.changes?.location) && (
|
|
443
|
-
<WrapperMap
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
{
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
{
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
{
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
{
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
{
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
>
|
|
469
|
-
|
|
470
|
-
</a>
|
|
471
|
-
</section>
|
|
443
|
+
<WrapperMap notUseCustomerInfo={notUseCustomerInfo} addFormRestrictions={addFormRestrictions}>
|
|
444
|
+
{!showMap && (
|
|
445
|
+
<section>
|
|
446
|
+
<GeoAlt style={{ fontSize: 25, marginRight: 5 }} />
|
|
447
|
+
{(addressState?.address?.address || formState?.changes?.address) && (
|
|
448
|
+
<span>{addressState?.address?.address || formState?.changes?.address}{', '}</span>
|
|
449
|
+
)}
|
|
450
|
+
{(addressState?.address?.country || formState?.changes?.country) && (
|
|
451
|
+
<span>{addressState?.address?.country || formState?.changes?.country}{', '}</span>
|
|
452
|
+
)}
|
|
453
|
+
{(addressState?.address?.address_notes || formState?.changes?.address_notes) && (
|
|
454
|
+
<span>{addressState?.address?.address_notes || formState?.changes?.address_notes}{', '}</span>
|
|
455
|
+
)}
|
|
456
|
+
{(addressState?.address?.internal_number || formState?.changes?.internal_number) && (
|
|
457
|
+
<span>{addressState?.address?.internal_number || formState?.changes?.internal_number}{', '}</span>
|
|
458
|
+
)}
|
|
459
|
+
{(addressState?.address?.zipcode || formState?.changes?.zipcode) && (
|
|
460
|
+
<span>{addressState?.address?.zipcode || formState?.changes?.zipcode}{', '}</span>
|
|
461
|
+
)}
|
|
462
|
+
<a
|
|
463
|
+
style={{ textDecoration: 'underline', color: 'blue', cursor: 'pointer' }}
|
|
464
|
+
onClick={() => setShowMap(!showMap)}
|
|
465
|
+
>
|
|
466
|
+
{t('SHOW_MAP', 'Show Map')}
|
|
467
|
+
</a>
|
|
468
|
+
</section>
|
|
469
|
+
)}
|
|
472
470
|
{locationChange && showMap && (
|
|
473
471
|
<GoogleMapsMap
|
|
474
472
|
useMapWithBusinessZones
|
|
@@ -204,12 +204,11 @@ export const WrapperMap = styled.div`
|
|
|
204
204
|
bottom: 2%;
|
|
205
205
|
right: 0;
|
|
206
206
|
padding-right: 20px;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
: '480px'
|
|
207
|
+
padding-top: 30px;
|
|
208
|
+
height: ${({ notUseCustomerInfo }) =>
|
|
209
|
+
notUseCustomerInfo
|
|
210
|
+
? '370px'
|
|
211
|
+
: '480px'
|
|
213
212
|
};
|
|
214
213
|
|
|
215
214
|
> div {
|
|
@@ -227,7 +227,6 @@ const AddressListUI = (props) => {
|
|
|
227
227
|
halfWidth={addressOpen}
|
|
228
228
|
isOpenUserData={isOpenUserData}
|
|
229
229
|
isHeader={isHeader}
|
|
230
|
-
isEnableContinueButton={isEnableContinueButton}
|
|
231
230
|
notUseCustomerInfo={notUseCustomerInfo}
|
|
232
231
|
addFormRestrictions={addFormRestrictions}
|
|
233
232
|
>
|
|
@@ -236,7 +235,7 @@ const AddressListUI = (props) => {
|
|
|
236
235
|
<Button
|
|
237
236
|
className='add'
|
|
238
237
|
outline
|
|
239
|
-
color={
|
|
238
|
+
color={addressList?.addresses?.length > 0 ? 'secondary' : 'primary'}
|
|
240
239
|
onClick={() => openAddress({})}
|
|
241
240
|
disabled={orderState?.loading || actionStatus.loading}
|
|
242
241
|
hoverColor='#CCC'
|
|
@@ -344,7 +343,6 @@ const AddressListUI = (props) => {
|
|
|
344
343
|
onCancel={() => handleCloseAddressForm()}
|
|
345
344
|
onSaveAddress={handleSaveAddress}
|
|
346
345
|
userCustomerSetup={userCustomerSetup}
|
|
347
|
-
isEnableContinueButton={isEnableContinueButton}
|
|
348
346
|
notUseCustomerInfo={notUseCustomerInfo}
|
|
349
347
|
franchiseId={franchiseId}
|
|
350
348
|
addFormRestrictions={addFormRestrictions}
|
|
@@ -353,7 +351,10 @@ const AddressListUI = (props) => {
|
|
|
353
351
|
)}
|
|
354
352
|
</List>
|
|
355
353
|
{addressOpen && !notUseCustomerInfo && (
|
|
356
|
-
<AddressFormContainer
|
|
354
|
+
<AddressFormContainer
|
|
355
|
+
width='50%'
|
|
356
|
+
addFormRestrictions={addFormRestrictions}
|
|
357
|
+
>
|
|
357
358
|
<TitleFormContainer>
|
|
358
359
|
{!addFormRestrictions && (
|
|
359
360
|
<CloseIcon>
|
|
@@ -4,7 +4,6 @@ import { useLocation } from 'react-router-dom'
|
|
|
4
4
|
import { useSession, useLanguage, useOrder, useEvent, useConfig, useCustomer, useUtils } from 'ordering-components-external'
|
|
5
5
|
import { useTheme } from 'styled-components'
|
|
6
6
|
import { GeoAlt } from 'react-bootstrap-icons'
|
|
7
|
-
import TiWarningOutline from '@meronex/icons/ti/TiWarningOutline'
|
|
8
7
|
import { OrderTypeSelectorContent } from '../OrderTypeSelectorContent'
|
|
9
8
|
import { LanguageSelector } from '../LanguageSelector'
|
|
10
9
|
import AiOutlineClose from '@meronex/icons/ai/AiOutlineClose'
|
|
@@ -22,7 +21,6 @@ import {
|
|
|
22
21
|
UserEdit,
|
|
23
22
|
AddressMenu,
|
|
24
23
|
MomentMenu,
|
|
25
|
-
FarAwayMessage,
|
|
26
24
|
Divider
|
|
27
25
|
} from './styles'
|
|
28
26
|
import { useWindowSize } from '../../../../../hooks/useWindowSize'
|
|
@@ -123,7 +123,7 @@ export const Menu = styled.div`
|
|
|
123
123
|
margin-left: 35px;
|
|
124
124
|
margin-right: 10px;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
|
|
127
127
|
@media (min-width: 1200px) {
|
|
128
128
|
padding: 0 30px;
|
|
129
129
|
margin-left: 50px;
|
|
@@ -157,7 +157,7 @@ export const Menu = styled.div`
|
|
|
157
157
|
@media (min-width: 1175px) {
|
|
158
158
|
width: 250px;
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
|
|
161
161
|
@media (min-width: 1400px) {
|
|
162
162
|
width: 400px;
|
|
163
163
|
}
|
|
@@ -262,8 +262,8 @@ export const CustomerInfo = styled.div`
|
|
|
262
262
|
color: #909BA9;
|
|
263
263
|
margin: 0;
|
|
264
264
|
}
|
|
265
|
-
svg {
|
|
266
|
-
color: #748194;
|
|
265
|
+
svg {
|
|
266
|
+
color: #748194;
|
|
267
267
|
margin: 0;
|
|
268
268
|
font-size: 20px;
|
|
269
269
|
}
|
|
@@ -277,7 +277,7 @@ export const UserEdit = styled.div`
|
|
|
277
277
|
width: 100%;
|
|
278
278
|
${props => !props.isOpenUserData && css`
|
|
279
279
|
position: absolute;
|
|
280
|
-
`
|
|
280
|
+
`}
|
|
281
281
|
}
|
|
282
282
|
`
|
|
283
283
|
|
|
@@ -326,7 +326,7 @@ export const MomentMenu = styled.div`
|
|
|
326
326
|
justify-content: center;
|
|
327
327
|
width: 200px;
|
|
328
328
|
display: none;
|
|
329
|
-
|
|
329
|
+
|
|
330
330
|
@media (min-width: 821px) {
|
|
331
331
|
display: flex;
|
|
332
332
|
}
|
|
@@ -364,17 +364,19 @@ const PhoneAutocompleteUI = (props) => {
|
|
|
364
364
|
hideCloseDefault
|
|
365
365
|
padding='20px'
|
|
366
366
|
>
|
|
367
|
-
<UserEdit>
|
|
367
|
+
<UserEdit isOpenUserData={isOpenUserData}>
|
|
368
368
|
{!customerState?.loading && !customersPhones?.loading && (
|
|
369
369
|
<>
|
|
370
370
|
<UserDetails
|
|
371
371
|
isAddressFormOpen={isAddressFormOpen}
|
|
372
|
-
|
|
372
|
+
userData={customerState?.result}
|
|
373
373
|
userId={customerState?.result?.id}
|
|
374
|
+
isOpenUserData={isOpenUserData}
|
|
374
375
|
isCustomerMode
|
|
375
376
|
isModal
|
|
376
377
|
setIsOpenUserData={setIsOpenUserData}
|
|
377
378
|
onClose={() => handleCloseAddressList()}
|
|
379
|
+
franchiseId={franchiseId}
|
|
378
380
|
/>
|
|
379
381
|
<AddressList
|
|
380
382
|
isModal
|
|
@@ -385,14 +387,13 @@ const PhoneAutocompleteUI = (props) => {
|
|
|
385
387
|
phone,
|
|
386
388
|
urlPhone
|
|
387
389
|
}}
|
|
388
|
-
isEnableContinueButton
|
|
389
|
-
isCustomerMode
|
|
390
|
-
isFromPhoneAutocomplete
|
|
391
390
|
isOpenUserData={isOpenUserData}
|
|
391
|
+
isEnableContinueButton
|
|
392
392
|
setIsOpenUserData={setIsOpenUserData}
|
|
393
|
+
setIsSavedAddress={setIsSavedAddress}
|
|
393
394
|
setIsAddressFormOpen={setIsAddressFormOpen}
|
|
394
395
|
franchiseId={franchiseId}
|
|
395
|
-
|
|
396
|
+
isHeader
|
|
396
397
|
/>
|
|
397
398
|
</>
|
|
398
399
|
)}
|
|
@@ -201,7 +201,7 @@ export const WrapInput = styled.div`
|
|
|
201
201
|
width: calc(50% - 20px);
|
|
202
202
|
}
|
|
203
203
|
`}
|
|
204
|
-
|
|
204
|
+
|
|
205
205
|
div{
|
|
206
206
|
color: #FFF;
|
|
207
207
|
position: relative;
|
|
@@ -234,17 +234,21 @@ export const WrapInput = styled.div`
|
|
|
234
234
|
`
|
|
235
235
|
|
|
236
236
|
export const AutoComplete = styled.div`
|
|
237
|
-
width: 45%;
|
|
237
|
+
width: 45%;
|
|
238
238
|
button {
|
|
239
239
|
position: absolute;
|
|
240
240
|
left: 100%;
|
|
241
|
-
transform: translate(-90%, -165%)
|
|
241
|
+
transform: translate(-90%, -165%);
|
|
242
242
|
}
|
|
243
243
|
`
|
|
244
244
|
|
|
245
245
|
export const UserEdit = styled.div`
|
|
246
|
-
> :first-child{
|
|
247
|
-
margin-bottom: 20px;
|
|
246
|
+
> :first-child {
|
|
247
|
+
margin-bottom: 20px;
|
|
248
|
+
width: 100%;
|
|
249
|
+
${props => !props.isOpenUserData && css`
|
|
250
|
+
position: absolute;
|
|
251
|
+
`}
|
|
248
252
|
}
|
|
249
253
|
`
|
|
250
254
|
|
|
@@ -357,7 +361,7 @@ export const IconTypeButton = styled.div`
|
|
|
357
361
|
align-items: center;
|
|
358
362
|
width: 44px;
|
|
359
363
|
height: 44px;
|
|
360
|
-
background: ${({ theme }) => theme?.colors?.
|
|
364
|
+
background: ${({ activated, theme }) => activated ? theme?.colors?.white : '#F3F9FF'};
|
|
361
365
|
border-radius: 44px;
|
|
362
366
|
`
|
|
363
367
|
|
|
@@ -394,7 +398,7 @@ export const ContinueButton = styled.span`
|
|
|
394
398
|
position: absolute;
|
|
395
399
|
right: 35px;
|
|
396
400
|
bottom: 5px;
|
|
397
|
-
width:
|
|
401
|
+
width:
|
|
398
402
|
button {
|
|
399
403
|
cursor: pointer;
|
|
400
404
|
}
|
|
@@ -291,7 +291,7 @@ const BusinessPreorderUI = (props) => {
|
|
|
291
291
|
{timeSelected === time.value ? <CheckedIcon cateringPreorder={cateringPreorder} /> : <CgRadioCheck />}
|
|
292
292
|
</CheckIcon>
|
|
293
293
|
)}
|
|
294
|
-
<p>
|
|
294
|
+
<p id='time'>
|
|
295
295
|
{time.text} {cateringPreorder && `- ${time.endText}`}
|
|
296
296
|
</p>
|
|
297
297
|
</span>
|
|
@@ -156,6 +156,11 @@ export const TimeItem = styled.div`
|
|
|
156
156
|
span {
|
|
157
157
|
font-size: 14px;
|
|
158
158
|
white-space: nowrap;
|
|
159
|
+
|
|
160
|
+
p#time {
|
|
161
|
+
margin: auto;
|
|
162
|
+
padding: 10px;
|
|
163
|
+
}
|
|
159
164
|
}
|
|
160
165
|
${({ active }) => active && css`
|
|
161
166
|
background: #F5F9FF;
|
|
@@ -166,7 +171,7 @@ ${({ cateringPreorder }) => cateringPreorder ? css`
|
|
|
166
171
|
width: 100%;
|
|
167
172
|
min-width: 100%;
|
|
168
173
|
height: 50px;
|
|
169
|
-
|
|
174
|
+
|
|
170
175
|
span {
|
|
171
176
|
font-size: 18px;
|
|
172
177
|
display: flex;
|
|
@@ -199,17 +204,17 @@ ${({ cateringPreorder }) => cateringPreorder ? css`
|
|
|
199
204
|
min-width: calc(50% - 24px);
|
|
200
205
|
box-sizing: border-box;
|
|
201
206
|
user-select: none;
|
|
202
|
-
|
|
207
|
+
|
|
203
208
|
@media (min-width: 400px) {
|
|
204
209
|
width: calc(33.33% - 24px);
|
|
205
210
|
min-width: calc(33.33% - 24px);
|
|
206
211
|
}
|
|
207
|
-
|
|
212
|
+
|
|
208
213
|
@media (min-width: 576px) {
|
|
209
214
|
width: calc(25% - 24px);
|
|
210
215
|
min-width: calc(25% - 24px);
|
|
211
216
|
}
|
|
212
|
-
|
|
217
|
+
|
|
213
218
|
@media (min-width: 769px) {
|
|
214
219
|
width: calc(33.33% - 24px);
|
|
215
220
|
min-width: calc(33.33% - 24px);
|
|
@@ -346,7 +346,7 @@ const MomentControlUI = (props) => {
|
|
|
346
346
|
{timeSelected === time.value ? <CheckedIcon ref={scheduleItemRef} cateringPreorder={cateringPreorder} /> : <CgRadioCheck />}
|
|
347
347
|
</CheckIcon>
|
|
348
348
|
)}
|
|
349
|
-
<p>
|
|
349
|
+
<p id='time'>
|
|
350
350
|
{time.text} {cateringPreorder && `- ${time.endText}`}
|
|
351
351
|
</p>
|
|
352
352
|
</span>
|
|
@@ -225,6 +225,11 @@ export const TimeItem = styled.div`
|
|
|
225
225
|
span {
|
|
226
226
|
font-size: 14px;
|
|
227
227
|
white-space: nowrap;
|
|
228
|
+
|
|
229
|
+
p#time {
|
|
230
|
+
margin: auto;
|
|
231
|
+
padding: 10px;
|
|
232
|
+
}
|
|
228
233
|
}
|
|
229
234
|
${({ active }) => active && css`
|
|
230
235
|
background: #F5F9FF;
|
|
@@ -235,7 +240,7 @@ ${({ cateringPreorder }) => cateringPreorder ? css`
|
|
|
235
240
|
width: 100%;
|
|
236
241
|
min-width: 100%;
|
|
237
242
|
height: 50px;
|
|
238
|
-
|
|
243
|
+
|
|
239
244
|
span {
|
|
240
245
|
font-size: 18px;
|
|
241
246
|
display: flex;
|
|
@@ -268,17 +273,17 @@ ${({ cateringPreorder }) => cateringPreorder ? css`
|
|
|
268
273
|
min-width: calc(50% - 24px);
|
|
269
274
|
box-sizing: border-box;
|
|
270
275
|
user-select: none;
|
|
271
|
-
|
|
276
|
+
|
|
272
277
|
@media (min-width: 400px) {
|
|
273
278
|
width: calc(33.33% - 24px);
|
|
274
279
|
min-width: calc(33.33% - 24px);
|
|
275
280
|
}
|
|
276
|
-
|
|
281
|
+
|
|
277
282
|
@media (min-width: 576px) {
|
|
278
283
|
width: calc(25% - 24px);
|
|
279
284
|
min-width: calc(25% - 24px);
|
|
280
285
|
}
|
|
281
|
-
|
|
286
|
+
|
|
282
287
|
@media (min-width: 769px) {
|
|
283
288
|
width: calc(33.33% - 24px);
|
|
284
289
|
min-width: calc(33.33% - 24px);
|