ordering-ui-admin-external 1.19.4 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/{ordering-ui-admin.dc1b5cbef2240d127ead.js → ordering-ui-admin.a9bd3b8526ba44f15714.js} +2 -2
- package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -1
- package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +2 -2
- package/_modules/components/MyProducts/AdvancedSettings/ImageBox.js +4 -1
- package/_modules/components/MyProducts/AdvancedSettings/SettingComponent.js +3 -1
- package/_modules/components/MyProducts/AdvancedSettings/index.js +43 -19
- package/_modules/components/MyProducts/CallCenterApp/index.js +1 -1
- package/_modules/components/MyProducts/OrderingWebsite/index.js +3 -1
- package/_modules/components/Orders/BusinessesSelector/index.js +23 -3
- package/_modules/components/Orders/CountryFilter/index.js +20 -7
- package/_modules/components/Orders/CurrencyFilter/index.js +20 -7
- package/_modules/components/Orders/DeliveryTypeSelector/index.js +36 -8
- package/_modules/components/Orders/DriverSelector/index.js +15 -1
- package/_modules/components/Orders/DriversGroupTypeSelector/index.js +27 -7
- package/_modules/components/Orders/OrderBill/index.js +5 -5
- package/_modules/components/Orders/OrderDelete/index.js +25 -57
- package/_modules/components/Orders/OrderDetails/index.js +1 -1
- package/_modules/components/Orders/OrderDetailsHeader/index.js +2 -2
- package/_modules/components/Orders/OrderToPrint/index.js +4 -4
- package/_modules/components/Orders/OrdersContentHeader/index.js +1 -1
- package/_modules/components/Orders/OrdersFilterGroup/index.js +11 -4
- package/_modules/components/Orders/OrdersManager/index.js +4 -5
- package/_modules/components/Orders/OrdersTable/index.js +60 -13
- package/_modules/components/Orders/OrdersTable/styles.js +13 -1
- package/_modules/components/Orders/PaymethodTypeSelector/index.js +25 -4
- package/_modules/components/Shared/CitySelector/index.js +18 -5
- package/_modules/components/Shared/ConfirmAdmin/index.js +218 -26
- package/_modules/components/Shared/ConfirmAdmin/styles.js +47 -9
- package/_modules/components/Shared/ImageCrop/index.js +90 -10
- package/_modules/components/SidebarMenu/index.js +25 -22
- package/_modules/components/Stores/BusinessDelete/index.js +25 -57
- package/_modules/components/Stores/BusinessPaymentMethods/index.js +2 -1
- package/_modules/components/Stores/PaymentOption/index.js +2 -2
- package/_modules/components/Stores/PaymentOptionSquare/index.js +2 -2
- package/_modules/components/Stores/SeoOptions/index.js +5 -3
- package/_modules/components/Users/UsersDeleteButton/index.js +54 -66
- package/_modules/styles/MultiSelect/index.js +23 -4
- package/package.json +2 -2
- package/src/components/Delivery/DriversGroupPaymethods/index.js +1 -1
- package/src/components/Marketing/EnterprisePromotionPaymethods/index.js +1 -1
- package/src/components/MyProducts/AdvancedSettings/ImageBox.js +3 -1
- package/src/components/MyProducts/AdvancedSettings/SettingComponent.js +2 -1
- package/src/components/MyProducts/AdvancedSettings/index.js +24 -1
- package/src/components/MyProducts/CallCenterApp/index.js +1 -1
- package/src/components/MyProducts/OrderingWebsite/index.js +2 -0
- package/src/components/Orders/BusinessesSelector/index.js +37 -24
- package/src/components/Orders/CountryFilter/index.js +19 -11
- package/src/components/Orders/CurrencyFilter/index.js +17 -9
- package/src/components/Orders/DeliveryTypeSelector/index.js +30 -7
- package/src/components/Orders/DriverSelector/index.js +10 -0
- package/src/components/Orders/DriversGroupTypeSelector/index.js +23 -9
- package/src/components/Orders/OrderBill/index.js +4 -4
- package/src/components/Orders/OrderDelete/index.js +17 -71
- package/src/components/Orders/OrderDetails/index.js +1 -1
- package/src/components/Orders/OrderDetailsHeader/index.js +1 -1
- package/src/components/Orders/OrderToPrint/index.js +2 -2
- package/src/components/Orders/OrdersContentHeader/index.js +2 -1
- package/src/components/Orders/OrdersFilterGroup/index.js +14 -4
- package/src/components/Orders/OrdersManager/index.js +4 -5
- package/src/components/Orders/OrdersTable/index.js +45 -0
- package/src/components/Orders/OrdersTable/styles.js +14 -0
- package/src/components/Orders/PaymethodTypeSelector/index.js +22 -9
- package/src/components/Shared/CitySelector/index.js +18 -9
- package/src/components/Shared/ConfirmAdmin/index.js +257 -35
- package/src/components/Shared/ConfirmAdmin/styles.js +95 -19
- package/src/components/Shared/ImageCrop/index.js +34 -5
- package/src/components/SidebarMenu/index.js +14 -14
- package/src/components/Stores/BusinessDelete/index.js +17 -71
- package/src/components/Stores/BusinessPaymentMethods/index.js +1 -1
- package/src/components/Stores/PaymentOption/index.js +1 -1
- package/src/components/Stores/PaymentOptionSquare/index.js +1 -1
- package/src/components/Stores/SeoOptions/index.js +9 -3
- package/src/components/Users/UsersDeleteButton/index.js +31 -85
- package/src/styles/MultiSelect/index.js +36 -4
- package/template/theme.json +3 -1
- package/_modules/components/Orders/OrderDelete/styles.js +0 -19
- package/_modules/components/Stores/BusinessDelete/styles.js +0 -19
- package/_modules/components/Users/UsersDeleteButton/styles.js +0 -21
- package/src/components/Orders/OrderDelete/styles.js +0 -40
- package/src/components/Stores/BusinessDelete/styles.js +0 -40
- package/src/components/Users/UsersDeleteButton/styles.js +0 -56
- /package/_bundles/{ordering-ui-admin.dc1b5cbef2240d127ead.js.LICENSE.txt → ordering-ui-admin.a9bd3b8526ba44f15714.js.LICENSE.txt} +0 -0
|
@@ -77,6 +77,7 @@ var DriversGroupPaymethods = function DriversGroupPaymethods(props) {
|
|
|
77
77
|
return handleSelectAllPaymethod(false);
|
|
78
78
|
}
|
|
79
79
|
}, t('SELECT_NONE', 'Select none'))), /*#__PURE__*/_react.default.createElement(_styles2.GroupsContainer, null, filteredPaymethods.map(function (paymethod) {
|
|
80
|
+
var _paymethod$gateway;
|
|
80
81
|
return /*#__PURE__*/_react.default.createElement(_styles2.GroupWrapper, {
|
|
81
82
|
key: paymethod.id,
|
|
82
83
|
isDisabed: actionState.loading
|
|
@@ -85,7 +86,7 @@ var DriversGroupPaymethods = function DriversGroupPaymethods(props) {
|
|
|
85
86
|
onChange: function onChange(e) {
|
|
86
87
|
return handleSelectPaymethod(paymethod.id, e.target.checked);
|
|
87
88
|
}
|
|
88
|
-
}), /*#__PURE__*/_react.default.createElement("p", null, paymethod === null || paymethod === void 0 ? void 0 : paymethod.name));
|
|
89
|
+
}), /*#__PURE__*/_react.default.createElement("p", null, t(paymethod === null || paymethod === void 0 ? void 0 : (_paymethod$gateway = paymethod.gateway) === null || _paymethod$gateway === void 0 ? void 0 : _paymethod$gateway.toUpperCase(), paymethod === null || paymethod === void 0 ? void 0 : paymethod.name)));
|
|
89
90
|
})), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
90
91
|
borderRadius: "8px",
|
|
91
92
|
color: "primary",
|
|
@@ -72,7 +72,7 @@ var EnterprisePromotionPaymethods = function EnterprisePromotionPaymethods(props
|
|
|
72
72
|
if (found) return true;else return false;
|
|
73
73
|
};
|
|
74
74
|
return /*#__PURE__*/_react.default.createElement(_styles2.PaymethodsContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, t('PAYMEN_METHODS_ALLOWED', 'Payment methods allowed')), paymethodsState.paymethods.map(function (paymethod) {
|
|
75
|
-
var _formState$changes4;
|
|
75
|
+
var _formState$changes4, _paymethod$gateway;
|
|
76
76
|
return /*#__PURE__*/_react.default.createElement(_styles2.PaymethodItem, {
|
|
77
77
|
key: paymethod.id
|
|
78
78
|
}, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
|
|
@@ -80,7 +80,7 @@ var EnterprisePromotionPaymethods = function EnterprisePromotionPaymethods(props
|
|
|
80
80
|
onChange: function onChange(e) {
|
|
81
81
|
return handleChangePaymethods(e.target.checked, paymethod.id);
|
|
82
82
|
}
|
|
83
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, paymethod.name));
|
|
83
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, t(paymethod === null || paymethod === void 0 ? void 0 : (_paymethod$gateway = paymethod.gateway) === null || _paymethod$gateway === void 0 ? void 0 : _paymethod$gateway.toUpperCase(), paymethod.name)));
|
|
84
84
|
}), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
85
85
|
borderRadius: "8px",
|
|
86
86
|
color: "primary",
|
|
@@ -30,7 +30,8 @@ var ImageBox = function ImageBox(props) {
|
|
|
30
30
|
ratio = props.ratio,
|
|
31
31
|
photo = props.photo,
|
|
32
32
|
path = props.path,
|
|
33
|
-
handleChangePhoto = props.handleChangePhoto
|
|
33
|
+
handleChangePhoto = props.handleChangePhoto,
|
|
34
|
+
themeId = props.themeId;
|
|
34
35
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
35
36
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
36
37
|
t = _useLanguage2[1];
|
|
@@ -141,6 +142,8 @@ var ImageBox = function ImageBox(props) {
|
|
|
141
142
|
}));
|
|
142
143
|
}
|
|
143
144
|
}, /*#__PURE__*/_react.default.createElement(_Shared.ImageCrop, {
|
|
145
|
+
useCloudinaryUrl: true,
|
|
146
|
+
themeId: themeId,
|
|
144
147
|
photo: cropState === null || cropState === void 0 ? void 0 : cropState.data,
|
|
145
148
|
handleChangePhoto: handleChangeImage
|
|
146
149
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
|
|
@@ -24,7 +24,8 @@ var SettingComponent = function SettingComponent(props) {
|
|
|
24
24
|
handleUpdateThemeValue = props.handleUpdateThemeValue,
|
|
25
25
|
advancedValues = props.advancedValues,
|
|
26
26
|
themeStructure = props.themeStructure,
|
|
27
|
-
noLabel = props.noLabel
|
|
27
|
+
noLabel = props.noLabel,
|
|
28
|
+
themeId = props.themeId;
|
|
28
29
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
29
30
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
30
31
|
t = _useLanguage2[1];
|
|
@@ -73,6 +74,7 @@ var SettingComponent = function SettingComponent(props) {
|
|
|
73
74
|
ratio: "900 x 200 px",
|
|
74
75
|
photo: deepFind(advancedValues, setting === null || setting === void 0 ? void 0 : setting.path),
|
|
75
76
|
path: setting === null || setting === void 0 ? void 0 : setting.path,
|
|
77
|
+
themeId: themeId,
|
|
76
78
|
handleChangePhoto: handleUpdateThemeValue
|
|
77
79
|
}), setting.type === 'color' && /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, setting.name), /*#__PURE__*/_react.default.createElement(_Shared.ColorPicker, {
|
|
78
80
|
defaultColor: deepFind(advancedValues, setting === null || setting === void 0 ? void 0 : setting.path) || '#2C7BE5',
|
|
@@ -24,7 +24,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
24
24
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
25
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
26
|
var AdvancedSettings = function AdvancedSettings(props) {
|
|
27
|
-
var _themeValuesRef$curre, _themeValuesRef$curre2, _themeValuesRef$curre3, _themeValuesRef$curre4, _themeValuesRef$curre5, _themeValuesRef$curre6, _themeValuesRef$curre7, _themeValuesRef$curre8, _themeValuesRef$curre9, _themeValuesRef$curre10, _themeValuesRef$curre11, _themeValuesRef$curre12, _themeValuesRef$curre13, _themeValuesRef$curre14, _themeValuesRef$curre15, _themeValuesRef$curre16, _themeValuesRef$curre17, _themeValuesRef$curre18, _themeValuesRef$curre19, _themeValuesRef$curre20, _themeValuesRef$curre21, _themeValuesRef$curre22, _themeValuesRef$curre23, _themeValuesRef$curre24, _themeValuesRef$curre25, _themeValuesRef$curre26, _themeValuesRef$curre27, _themeValuesRef$curre28, _themeValuesRef$curre29, _themeValuesRef$curre30, _themeValuesRef$curre31, _themeValuesRef$curre32, _themeValuesRef$curre33, _themeValuesRef$curre34, _themeValuesRef$curre35, _themeValuesRef$curre36, _themeValuesRef$curre37, _themeValuesRef$curre38, _themeValuesRef$curre39, _themeValuesRef$curre40, _themeValuesRef$curre41, _themeValuesRef$curre42, _themeValuesRef$curre43, _themeValuesRef$curre44, _themeValuesRef$curre45, _themeValuesRef$curre46, _themeValuesRef$curre47, _themeValuesRef$curre48, _themeValuesRef$curre49, _themeValuesRef$curre50, _themeValuesRef$curre51, _themeValuesRef$curre52, _themeValuesRef$curre53, _themeValuesRef$curre54, _themeValuesRef$curre55, _themeValuesRef$curre56, _themeValuesRef$curre57, _themeValuesRef$curre58, _themeValuesRef$curre59, _themeValuesRef$curre60, _themeValuesRef$curre61, _themeValuesRef$curre62
|
|
27
|
+
var _themeValuesRef$curre, _themeValuesRef$curre2, _themeValuesRef$curre3, _themeValuesRef$curre4, _themeValuesRef$curre5, _themeValuesRef$curre6, _themeValuesRef$curre7, _themesList$themes3, _themesList$themes3$, _themesList$themes4, _themesList$themes4$, _themesList$themes5, _themesList$themes5$, _themeValuesRef$curre8, _themeValuesRef$curre9, _themeValuesRef$curre10, _themeValuesRef$curre11, _themeValuesRef$curre12, _themeValuesRef$curre13, _themeValuesRef$curre14, _themeValuesRef$curre15, _themeValuesRef$curre16, _themeValuesRef$curre17, _themeValuesRef$curre18, _themeValuesRef$curre19, _themeValuesRef$curre20, _themeValuesRef$curre21, _themeValuesRef$curre22, _themesList$themes6, _themesList$themes6$, _themeValuesRef$curre23, _themeValuesRef$curre24, _themeValuesRef$curre25, _themeValuesRef$curre26, _themeValuesRef$curre27, _themesList$themes7, _themesList$themes7$, _themesList$themes8, _themesList$themes8$, _themeValuesRef$curre28, _themeValuesRef$curre29, _themeValuesRef$curre30, _themeValuesRef$curre31, _themeValuesRef$curre32, _themeValuesRef$curre33, _themeValuesRef$curre34, _themesList$themes9, _themesList$themes9$, _themeValuesRef$curre35, _themeValuesRef$curre36, _themeValuesRef$curre37, _themeValuesRef$curre38, _themeValuesRef$curre39, _themesList$themes10, _themesList$themes10$, _themesList$themes11, _themesList$themes11$, _themesList$themes12, _themesList$themes12$, _themesList$themes13, _themesList$themes13$, _themesList$themes14, _themesList$themes14$, _themesList$themes15, _themesList$themes15$, _themesList$themes16, _themesList$themes16$, _themesList$themes17, _themesList$themes17$, _themesList$themes18, _themesList$themes18$, _themesList$themes19, _themesList$themes19$, _themesList$themes20, _themesList$themes20$, _themesList$themes21, _themesList$themes21$, _themesList$themes22, _themesList$themes22$, _themesList$themes23, _themesList$themes23$, _themesList$themes24, _themesList$themes24$, _themeValuesRef$curre40, _themeValuesRef$curre41, _themeValuesRef$curre42, _themeValuesRef$curre43, _themeValuesRef$curre44, _themeValuesRef$curre45, _themeValuesRef$curre46, _themeValuesRef$curre47, _themeValuesRef$curre48, _themeValuesRef$curre49, _themeValuesRef$curre50, _themeValuesRef$curre51, _themeValuesRef$curre52, _themeValuesRef$curre53, _themeValuesRef$curre54, _themeValuesRef$curre55, _themeValuesRef$curre56, _themeValuesRef$curre57, _themeValuesRef$curre58, _themeValuesRef$curre59, _themeValuesRef$curre60, _themeValuesRef$curre61, _themeValuesRef$curre62, _themesList$themes25, _themesList$themes25$, _themesList$themes26, _themesList$themes26$;
|
|
28
28
|
var themesList = props.themesList,
|
|
29
29
|
advancedValues = props.advancedValues,
|
|
30
30
|
handleUpdateSiteTheme = props.handleUpdateSiteTheme,
|
|
@@ -433,16 +433,19 @@ var AdvancedSettings = function AdvancedSettings(props) {
|
|
|
433
433
|
ratio: "1350 x 400 px",
|
|
434
434
|
photo: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre = themeValuesRef.current) === null || _themeValuesRef$curre === void 0 ? void 0 : (_themeValuesRef$curre2 = _themeValuesRef$curre.my_products) === null || _themeValuesRef$curre2 === void 0 ? void 0 : (_themeValuesRef$curre3 = _themeValuesRef$curre2.components) === null || _themeValuesRef$curre3 === void 0 ? void 0 : (_themeValuesRef$curre4 = _themeValuesRef$curre3.images) === null || _themeValuesRef$curre4 === void 0 ? void 0 : (_themeValuesRef$curre5 = _themeValuesRef$curre4.components) === null || _themeValuesRef$curre5 === void 0 ? void 0 : (_themeValuesRef$curre6 = _themeValuesRef$curre5.homepage_background) === null || _themeValuesRef$curre6 === void 0 ? void 0 : (_themeValuesRef$curre7 = _themeValuesRef$curre6.components) === null || _themeValuesRef$curre7 === void 0 ? void 0 : _themeValuesRef$curre7.image,
|
|
435
435
|
path: "my_products.components.images.components.homepage_background.components.image",
|
|
436
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes3 = themesList.themes) === null || _themesList$themes3 === void 0 ? void 0 : (_themesList$themes3$ = _themesList$themes3[0]) === null || _themesList$themes3$ === void 0 ? void 0 : _themesList$themes3$.id,
|
|
436
437
|
handleChangePhoto: handleUpdateThemeValue
|
|
437
438
|
})) : /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h1", null, t('WEBSITE_ADVANCED_SETTINGS', 'Website Advanced Settings')), /*#__PURE__*/_react.default.createElement(_styles2.HomePageWrapper, null, /*#__PURE__*/_react.default.createElement("h2", null, t('HOMEPAGE', 'Homepage')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
438
439
|
settingList: homepageViewList,
|
|
439
440
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
440
|
-
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current
|
|
441
|
+
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
442
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes4 = themesList.themes) === null || _themesList$themes4 === void 0 ? void 0 : (_themesList$themes4$ = _themesList$themes4[0]) === null || _themesList$themes4$ === void 0 ? void 0 : _themesList$themes4$.id
|
|
441
443
|
}))), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('BUTTONS', 'Buttons')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
442
444
|
settingList: buttonList,
|
|
443
445
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
444
446
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
445
|
-
themeStructure: themeStructure
|
|
447
|
+
themeStructure: themeStructure,
|
|
448
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes5 = themesList.themes) === null || _themesList$themes5 === void 0 ? void 0 : (_themesList$themes5$ = _themesList$themes5[0]) === null || _themesList$themes5$ === void 0 ? void 0 : _themesList$themes5$.id
|
|
446
449
|
}), /*#__PURE__*/_react.default.createElement("h3", null, t('SHAPE', 'Shape')), /*#__PURE__*/_react.default.createElement(_styles2.ShadowWrapper, null, /*#__PURE__*/_react.default.createElement(_ButtonShadow.ButtonShadow, {
|
|
447
450
|
initialValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre8 = themeValuesRef.current) === null || _themeValuesRef$curre8 === void 0 ? void 0 : (_themeValuesRef$curre9 = _themeValuesRef$curre8.general) === null || _themeValuesRef$curre9 === void 0 ? void 0 : (_themeValuesRef$curre10 = _themeValuesRef$curre9.components) === null || _themeValuesRef$curre10 === void 0 ? void 0 : (_themeValuesRef$curre11 = _themeValuesRef$curre10.buttons) === null || _themeValuesRef$curre11 === void 0 ? void 0 : (_themeValuesRef$curre12 = _themeValuesRef$curre11.shadow) === null || _themeValuesRef$curre12 === void 0 ? void 0 : _themeValuesRef$curre12.components,
|
|
448
451
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
@@ -456,6 +459,7 @@ var AdvancedSettings = function AdvancedSettings(props) {
|
|
|
456
459
|
ratio: "512 x 512 px",
|
|
457
460
|
photo: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre17 = themeValuesRef.current) === null || _themeValuesRef$curre17 === void 0 ? void 0 : (_themeValuesRef$curre18 = _themeValuesRef$curre17.business_view) === null || _themeValuesRef$curre18 === void 0 ? void 0 : (_themeValuesRef$curre19 = _themeValuesRef$curre18.components) === null || _themeValuesRef$curre19 === void 0 ? void 0 : (_themeValuesRef$curre20 = _themeValuesRef$curre19.header) === null || _themeValuesRef$curre20 === void 0 ? void 0 : (_themeValuesRef$curre21 = _themeValuesRef$curre20.components) === null || _themeValuesRef$curre21 === void 0 ? void 0 : (_themeValuesRef$curre22 = _themeValuesRef$curre21.logo) === null || _themeValuesRef$curre22 === void 0 ? void 0 : _themeValuesRef$curre22.dummy_image,
|
|
458
461
|
path: "business_view.components.header.components.logo.dummy_image",
|
|
462
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes6 = themesList.themes) === null || _themesList$themes6 === void 0 ? void 0 : (_themesList$themes6$ = _themesList$themes6[0]) === null || _themesList$themes6$ === void 0 ? void 0 : _themesList$themes6$.id,
|
|
459
463
|
handleChangePhoto: handleUpdateThemeValue
|
|
460
464
|
}), /*#__PURE__*/_react.default.createElement(_ImageBox.ImageBox, {
|
|
461
465
|
title: t('BUSINESS_HEADER_DUMMY_IMAGE', 'Business header dummy image'),
|
|
@@ -463,95 +467,113 @@ var AdvancedSettings = function AdvancedSettings(props) {
|
|
|
463
467
|
isBig: true,
|
|
464
468
|
photo: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre23 = themeValuesRef.current) === null || _themeValuesRef$curre23 === void 0 ? void 0 : (_themeValuesRef$curre24 = _themeValuesRef$curre23.business_view) === null || _themeValuesRef$curre24 === void 0 ? void 0 : (_themeValuesRef$curre25 = _themeValuesRef$curre24.components) === null || _themeValuesRef$curre25 === void 0 ? void 0 : (_themeValuesRef$curre26 = _themeValuesRef$curre25.header) === null || _themeValuesRef$curre26 === void 0 ? void 0 : (_themeValuesRef$curre27 = _themeValuesRef$curre26.components) === null || _themeValuesRef$curre27 === void 0 ? void 0 : _themeValuesRef$curre27.dummy_image,
|
|
465
469
|
path: "business_view.components.header.components.dummy_image",
|
|
470
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes7 = themesList.themes) === null || _themesList$themes7 === void 0 ? void 0 : (_themesList$themes7$ = _themesList$themes7[0]) === null || _themesList$themes7$ === void 0 ? void 0 : _themesList$themes7$.id,
|
|
466
471
|
handleChangePhoto: handleUpdateThemeValue
|
|
467
472
|
}), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
468
473
|
settingList: homeImageFullScreen,
|
|
469
474
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
470
475
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
471
476
|
themeStructure: themeStructure,
|
|
477
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes8 = themesList.themes) === null || _themesList$themes8 === void 0 ? void 0 : (_themesList$themes8$ = _themesList$themes8[0]) === null || _themesList$themes8$ === void 0 ? void 0 : _themesList$themes8$.id,
|
|
472
478
|
noLabel: true
|
|
473
479
|
}), /*#__PURE__*/_react.default.createElement(_styles2.ImageGroup, null, /*#__PURE__*/_react.default.createElement(_ImageBox.ImageBox, {
|
|
474
480
|
title: t('PRODUCT_DUMMY_IMAGE', 'Product dummy image'),
|
|
475
481
|
ratio: "900 x 200 px",
|
|
476
482
|
photo: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre28 = themeValuesRef.current) === null || _themeValuesRef$curre28 === void 0 ? void 0 : (_themeValuesRef$curre29 = _themeValuesRef$curre28.business_view) === null || _themeValuesRef$curre29 === void 0 ? void 0 : (_themeValuesRef$curre30 = _themeValuesRef$curre29.components) === null || _themeValuesRef$curre30 === void 0 ? void 0 : (_themeValuesRef$curre31 = _themeValuesRef$curre30.products) === null || _themeValuesRef$curre31 === void 0 ? void 0 : (_themeValuesRef$curre32 = _themeValuesRef$curre31.components) === null || _themeValuesRef$curre32 === void 0 ? void 0 : (_themeValuesRef$curre33 = _themeValuesRef$curre32.photo) === null || _themeValuesRef$curre33 === void 0 ? void 0 : (_themeValuesRef$curre34 = _themeValuesRef$curre33.components) === null || _themeValuesRef$curre34 === void 0 ? void 0 : _themeValuesRef$curre34.dummy_image,
|
|
477
483
|
path: "business_view.components.products.components.photo.components.dummy_image",
|
|
484
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes9 = themesList.themes) === null || _themesList$themes9 === void 0 ? void 0 : (_themesList$themes9$ = _themesList$themes9[0]) === null || _themesList$themes9$ === void 0 ? void 0 : _themesList$themes9$.id,
|
|
478
485
|
handleChangePhoto: handleUpdateThemeValue
|
|
479
486
|
}))), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('FAVICON', 'Favicon')), /*#__PURE__*/_react.default.createElement(_ImageBox.ImageBox, {
|
|
480
487
|
title: t('FAVICON', 'Favicon'),
|
|
481
488
|
ratio: "512 x 512 px",
|
|
482
489
|
photo: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre35 = themeValuesRef.current) === null || _themeValuesRef$curre35 === void 0 ? void 0 : (_themeValuesRef$curre36 = _themeValuesRef$curre35.general) === null || _themeValuesRef$curre36 === void 0 ? void 0 : (_themeValuesRef$curre37 = _themeValuesRef$curre36.components) === null || _themeValuesRef$curre37 === void 0 ? void 0 : (_themeValuesRef$curre38 = _themeValuesRef$curre37.favicon) === null || _themeValuesRef$curre38 === void 0 ? void 0 : (_themeValuesRef$curre39 = _themeValuesRef$curre38.components) === null || _themeValuesRef$curre39 === void 0 ? void 0 : _themeValuesRef$curre39.image,
|
|
483
490
|
path: "general.components.favicon.components.image",
|
|
491
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes10 = themesList.themes) === null || _themesList$themes10 === void 0 ? void 0 : (_themesList$themes10$ = _themesList$themes10[0]) === null || _themesList$themes10$ === void 0 ? void 0 : _themesList$themes10$.id,
|
|
484
492
|
handleChangePhoto: handleUpdateThemeValue
|
|
485
493
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('HEADER', 'Header')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
486
494
|
settingList: headerList,
|
|
487
495
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
488
496
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
489
|
-
themeStructure: themeStructure
|
|
497
|
+
themeStructure: themeStructure,
|
|
498
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes11 = themesList.themes) === null || _themesList$themes11 === void 0 ? void 0 : (_themesList$themes11$ = _themesList$themes11[0]) === null || _themesList$themes11$ === void 0 ? void 0 : _themesList$themes11$.id
|
|
490
499
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('BUSINESS_LISTING', 'Business listing')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
491
500
|
settingList: businessListing,
|
|
492
501
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
493
502
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
494
|
-
themeStructure: themeStructure
|
|
503
|
+
themeStructure: themeStructure,
|
|
504
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes12 = themesList.themes) === null || _themesList$themes12 === void 0 ? void 0 : (_themesList$themes12$ = _themesList$themes12[0]) === null || _themesList$themes12$ === void 0 ? void 0 : _themesList$themes12$.id
|
|
495
505
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('BUSINESS_BLOCK', 'Business block')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
496
506
|
settingList: businessBlockList,
|
|
497
507
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
498
508
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
499
|
-
themeStructure: themeStructure
|
|
509
|
+
themeStructure: themeStructure,
|
|
510
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes13 = themesList.themes) === null || _themesList$themes13 === void 0 ? void 0 : (_themesList$themes13$ = _themesList$themes13[0]) === null || _themesList$themes13$ === void 0 ? void 0 : _themesList$themes13$.id
|
|
500
511
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('BUSINESS_PAGE', 'Business page')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
501
512
|
settingList: businessPageList,
|
|
502
513
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
503
514
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
504
|
-
themeStructure: themeStructure
|
|
515
|
+
themeStructure: themeStructure,
|
|
516
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes14 = themesList.themes) === null || _themesList$themes14 === void 0 ? void 0 : (_themesList$themes14$ = _themesList$themes14[0]) === null || _themesList$themes14$ === void 0 ? void 0 : _themesList$themes14$.id
|
|
505
517
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('BUSINESS_INFORMATION', 'Business Information')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
506
518
|
settingList: businessInfoList,
|
|
507
519
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
508
520
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
509
|
-
themeStructure: themeStructure
|
|
521
|
+
themeStructure: themeStructure,
|
|
522
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes15 = themesList.themes) === null || _themesList$themes15 === void 0 ? void 0 : (_themesList$themes15$ = _themesList$themes15[0]) === null || _themesList$themes15$ === void 0 ? void 0 : _themesList$themes15$.id
|
|
510
523
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('PRODUCTS_BLOCK', 'Products block')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
511
524
|
settingList: productBlockList,
|
|
512
525
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
513
526
|
advancedValues: advancedValues,
|
|
514
|
-
themeStructure: themeStructure
|
|
527
|
+
themeStructure: themeStructure,
|
|
528
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes16 = themesList.themes) === null || _themesList$themes16 === void 0 ? void 0 : (_themesList$themes16$ = _themesList$themes16[0]) === null || _themesList$themes16$ === void 0 ? void 0 : _themesList$themes16$.id
|
|
515
529
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('REVIEWS_POPUPS', 'Reviews popups')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
516
530
|
settingList: reviewsPopups,
|
|
517
531
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
518
532
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
519
|
-
themeStructure: themeStructure
|
|
533
|
+
themeStructure: themeStructure,
|
|
534
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes17 = themesList.themes) === null || _themesList$themes17 === void 0 ? void 0 : (_themesList$themes17$ = _themesList$themes17[0]) === null || _themesList$themes17$ === void 0 ? void 0 : _themesList$themes17$.id
|
|
520
535
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('CART_HEADER', 'Cart Header')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
521
536
|
settingList: cartHeaderList,
|
|
522
537
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
523
538
|
advancedValues: advancedValues,
|
|
524
|
-
themeStructure: themeStructure
|
|
539
|
+
themeStructure: themeStructure,
|
|
540
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes18 = themesList.themes) === null || _themesList$themes18 === void 0 ? void 0 : (_themesList$themes18$ = _themesList$themes18[0]) === null || _themesList$themes18$ === void 0 ? void 0 : _themesList$themes18$.id
|
|
525
541
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('CHECKOUT', 'Checkout')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
526
542
|
settingList: checkoutList,
|
|
527
543
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
528
544
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
529
|
-
themeStructure: themeStructure
|
|
545
|
+
themeStructure: themeStructure,
|
|
546
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes19 = themesList.themes) === null || _themesList$themes19 === void 0 ? void 0 : (_themesList$themes19$ = _themesList$themes19[0]) === null || _themesList$themes19$ === void 0 ? void 0 : _themesList$themes19$.id
|
|
530
547
|
}), /*#__PURE__*/_react.default.createElement("h3", null, t('CONFIRMATION_PAGE', 'Confirmation page')), /*#__PURE__*/_react.default.createElement("h3", null, t('ORDER_BLOCK', 'Order block')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
531
548
|
settingList: orderBlockList,
|
|
532
549
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
533
550
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
534
|
-
themeStructure: themeStructure
|
|
551
|
+
themeStructure: themeStructure,
|
|
552
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes20 = themesList.themes) === null || _themesList$themes20 === void 0 ? void 0 : (_themesList$themes20$ = _themesList$themes20[0]) === null || _themesList$themes20$ === void 0 ? void 0 : _themesList$themes20$.id
|
|
535
553
|
}), /*#__PURE__*/_react.default.createElement("h3", null, t('POPUP_ADDRESS', 'Popup: Address')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
536
554
|
settingList: popupAddressList,
|
|
537
555
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
538
556
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
539
|
-
themeStructure: themeStructure
|
|
557
|
+
themeStructure: themeStructure,
|
|
558
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes21 = themesList.themes) === null || _themesList$themes21 === void 0 ? void 0 : (_themesList$themes21$ = _themesList$themes21[0]) === null || _themesList$themes21$ === void 0 ? void 0 : _themesList$themes21$.id
|
|
540
559
|
}), /*#__PURE__*/_react.default.createElement("h3", null, t('MY_ACCOUNT_PAGE', 'My account page')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
541
560
|
settingList: myAccountList,
|
|
542
561
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
543
562
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
544
|
-
themeStructure: themeStructure
|
|
563
|
+
themeStructure: themeStructure,
|
|
564
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes22 = themesList.themes) === null || _themesList$themes22 === void 0 ? void 0 : (_themesList$themes22$ = _themesList$themes22[0]) === null || _themesList$themes22$ === void 0 ? void 0 : _themesList$themes22$.id
|
|
545
565
|
}), /*#__PURE__*/_react.default.createElement("h3", null, t('MY_ORDERS', 'My orders')), /*#__PURE__*/_react.default.createElement("h3", null, t('ACTIVE_ORDERS_BLOCK', 'Active Orders Block')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
546
566
|
settingList: activeOrderBlockList,
|
|
547
567
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
548
568
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
549
|
-
themeStructure: themeStructure
|
|
569
|
+
themeStructure: themeStructure,
|
|
570
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes23 = themesList.themes) === null || _themesList$themes23 === void 0 ? void 0 : (_themesList$themes23$ = _themesList$themes23[0]) === null || _themesList$themes23$ === void 0 ? void 0 : _themesList$themes23$.id
|
|
550
571
|
})), !isApp && /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('MENU_OPTIONS', 'Menu options')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
551
572
|
settingList: menuOptionList,
|
|
552
573
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
553
574
|
advancedValues: advancedValues,
|
|
554
|
-
themeStructure: themeStructure
|
|
575
|
+
themeStructure: themeStructure,
|
|
576
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes24 = themesList.themes) === null || _themesList$themes24 === void 0 ? void 0 : (_themesList$themes24$ = _themesList$themes24[0]) === null || _themesList$themes24$ === void 0 ? void 0 : _themesList$themes24$.id
|
|
555
577
|
})), /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('POPUP_ORDER_TYPES', 'Popup: Order types ')), /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE_MENU_OPTIONS', 'Title Menu options')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
556
578
|
placeholder: t('TITLE_MENU_OPTIONS', 'Title Menu options'),
|
|
557
579
|
defaultValue: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : (_themeValuesRef$curre40 = themeValuesRef.current) === null || _themeValuesRef$curre40 === void 0 ? void 0 : (_themeValuesRef$curre41 = _themeValuesRef$curre40.order_types) === null || _themeValuesRef$curre41 === void 0 ? void 0 : (_themeValuesRef$curre42 = _themeValuesRef$curre41.components) === null || _themeValuesRef$curre42 === void 0 ? void 0 : _themeValuesRef$curre42.title_menu,
|
|
@@ -582,12 +604,14 @@ var AdvancedSettings = function AdvancedSettings(props) {
|
|
|
582
604
|
settingList: thirdPartyCodeList,
|
|
583
605
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
584
606
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
585
|
-
themeStructure: themeStructure
|
|
607
|
+
themeStructure: themeStructure,
|
|
608
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes25 = themesList.themes) === null || _themesList$themes25 === void 0 ? void 0 : (_themesList$themes25$ = _themesList$themes25[0]) === null || _themesList$themes25$ === void 0 ? void 0 : _themesList$themes25$.id
|
|
586
609
|
})), isApp && /*#__PURE__*/_react.default.createElement(_styles2.BoxLayout, null, /*#__PURE__*/_react.default.createElement("h2", null, t('NAVIGATION_BAR_MENU', 'Navigation bar menu')), /*#__PURE__*/_react.default.createElement(_SettingComponent.SettingComponent, {
|
|
587
610
|
settingList: navigationBarList,
|
|
588
611
|
handleUpdateThemeValue: handleUpdateThemeValue,
|
|
589
612
|
advancedValues: themeValuesRef === null || themeValuesRef === void 0 ? void 0 : themeValuesRef.current,
|
|
590
|
-
themeStructure: themeStructure
|
|
613
|
+
themeStructure: themeStructure,
|
|
614
|
+
themeId: themesList === null || themesList === void 0 ? void 0 : (_themesList$themes26 = themesList.themes) === null || _themesList$themes26 === void 0 ? void 0 : (_themesList$themes26$ = _themesList$themes26[0]) === null || _themesList$themes26$ === void 0 ? void 0 : _themesList$themes26$.id
|
|
591
615
|
})), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
592
616
|
color: "primary",
|
|
593
617
|
borderRadius: "8px",
|
|
@@ -31,7 +31,7 @@ var CallCenterApp = function CallCenterApp() {
|
|
|
31
31
|
live_description: t('CALL_CENTER_APP_LIVE_DEMO_DESCRIPTION', 'This is a branded Ordering.co product; play with it and understand how it works'),
|
|
32
32
|
web_url: 'https://callcenter.tryordering.com/search',
|
|
33
33
|
web_link_title: t('CALL_CENTER', 'Call center'),
|
|
34
|
-
brand_title: t('
|
|
34
|
+
brand_title: t('YOUR_BRANDED_CALL_CENTER', 'Your Branded Call Center'),
|
|
35
35
|
brand_description: t('CALL_CENTER_BRANDED_DESCRIPTION', 'The Call Center is delivered in less than five working days, fully branded with your guidelines, and ready to be used on any tablet or device you add it to.'),
|
|
36
36
|
demo_book_message: 'I would like to book a Demo about the Call center , can you assist me?',
|
|
37
37
|
purchase_message: 'I would like to know about the Call center, can you assist me?'
|
|
@@ -33,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
33
33
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
34
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
35
|
var OrderingWebsiteUI = function OrderingWebsiteUI(props) {
|
|
36
|
-
var _themeValues$website_, _themeValues$website_2, _themeValues$website_3, _themeValues$website_4, _themeValues$website_5, _themeValues$website_6, _themeValues$website_7, _themeValues$website_8, _themeValues$website_9, _themeValues$website_10, _themeValues$website_11, _themeValues$website_12, _themeValues$website_13, _themeValues$website_14, _themeValues$website_15, _themeValues$website_16, _themeValues$website_17, _themeValues$website_18, _themeValues$website_19, _themeValues$website_20, _themeValues$images, _themeValues$images$c, _themeValues$images$c2, _themeValues$images$c3, _themeValues$images2, _themeValues$images2$, _themeValues$images2$2, _themeValues$images2$3, _themeValues$images3, _themeValues$images3$, _themeValues$images3$2, _themeValues$images3$3, _themeValues$images4, _themeValues$images4$, _themeValues$images4$2, _themeValues$images4$3, _themeValues$images5, _themeValues$images5$, _themeValues$images5$2, _themeValues$images5$3, _themeValues$images6, _themeValues$images6$, _themeValues$images6$2, _themeValues$images6$3, _themeValues$images7, _themeValues$images7$, _themeValues$images7$2, _themeValues$images7$3, _themeValues$images8, _themeValues$images8$, _themeValues$images8$2, _themeValues$images8$3, _themeValues$images9, _themeValues$images9$, _themeValues$images9$2, _themeValues$images9$3, _themeValues$images12, _themeValues$images13, _themeValues$theme_se, _themeValues$theme_se2, _themeValues$theme_se3, _themeValues$theme_se4, _themeValues$theme_se5, _themeValues$theme_se6, _themeValues$theme_se7, _themeValues$theme_se8, _themeValues$theme_se9;
|
|
36
|
+
var _themeValues$website_, _themeValues$website_2, _themeValues$website_3, _themeValues$website_4, _themeValues$website_5, _themeValues$website_6, _themeValues$website_7, _themeValues$website_8, _themeValues$website_9, _themeValues$website_10, _themeValues$website_11, _themeValues$website_12, _themeValues$website_13, _themeValues$website_14, _themeValues$website_15, _themeValues$website_16, _themeValues$website_17, _themeValues$website_18, _themeValues$website_19, _themeValues$website_20, _themeValues$images, _themeValues$images$c, _themeValues$images$c2, _themeValues$images$c3, _themeValues$images2, _themeValues$images2$, _themeValues$images2$2, _themeValues$images2$3, _themeValues$images3, _themeValues$images3$, _themeValues$images3$2, _themeValues$images3$3, _themeValues$images4, _themeValues$images4$, _themeValues$images4$2, _themeValues$images4$3, _themeValues$images5, _themeValues$images5$, _themeValues$images5$2, _themeValues$images5$3, _themeValues$images6, _themeValues$images6$, _themeValues$images6$2, _themeValues$images6$3, _themeValues$images7, _themeValues$images7$, _themeValues$images7$2, _themeValues$images7$3, _themeValues$images8, _themeValues$images8$, _themeValues$images8$2, _themeValues$images8$3, _themeValues$images9, _themeValues$images9$, _themeValues$images9$2, _themeValues$images9$3, _themeValues$images12, _themeValues$images13, _themeValues$theme_se, _themeValues$theme_se2, _themeValues$theme_se3, _orderingTheme$themes, _orderingTheme$themes2, _themeValues$theme_se4, _themeValues$theme_se5, _themeValues$theme_se6, _themeValues$theme_se7, _themeValues$theme_se8, _themeValues$theme_se9;
|
|
37
37
|
var themeValues = props.themeValues,
|
|
38
38
|
orderingTheme = props.orderingTheme,
|
|
39
39
|
setThemeValues = props.setThemeValues,
|
|
@@ -466,6 +466,8 @@ var OrderingWebsiteUI = function OrderingWebsiteUI(props) {
|
|
|
466
466
|
}));
|
|
467
467
|
}
|
|
468
468
|
}, /*#__PURE__*/_react.default.createElement(_Shared.ImageCrop, {
|
|
469
|
+
themeId: orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$themes = orderingTheme.themes) === null || _orderingTheme$themes === void 0 ? void 0 : (_orderingTheme$themes2 = _orderingTheme$themes[0]) === null || _orderingTheme$themes2 === void 0 ? void 0 : _orderingTheme$themes2.theme_id,
|
|
470
|
+
useCloudinaryUrl: true,
|
|
469
471
|
photo: cropState === null || cropState === void 0 ? void 0 : cropState.data,
|
|
470
472
|
handleChangePhoto: handleChangePhoto
|
|
471
473
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
@@ -29,6 +29,10 @@ var BusinessesSelector = function BusinessesSelector(props) {
|
|
|
29
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
30
|
businessTypes = _useState2[0],
|
|
31
31
|
setBusinessTypes = _useState2[1];
|
|
32
|
+
var _useState3 = (0, _react.useState)(''),
|
|
33
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
34
|
+
searchValue = _useState4[0],
|
|
35
|
+
setSearchValue = _useState4[1];
|
|
32
36
|
var Placeholder = /*#__PURE__*/_react.default.createElement(_styles2.PlaceholderTitle, null, t('SELECT_BUSINESS', 'Select business'));
|
|
33
37
|
var businessesLoading = [{
|
|
34
38
|
value: 'default',
|
|
@@ -37,7 +41,9 @@ var BusinessesSelector = function BusinessesSelector(props) {
|
|
|
37
41
|
(0, _react.useEffect)(function () {
|
|
38
42
|
var _businessesOptionList = [];
|
|
39
43
|
if (!businessesList.loading) {
|
|
40
|
-
var _businessesOption = businessesList.businesses.
|
|
44
|
+
var _businessesOption = businessesList.businesses.filter(function (option) {
|
|
45
|
+
return option === null || option === void 0 ? void 0 : option.name.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase());
|
|
46
|
+
}).map(function (business) {
|
|
41
47
|
return {
|
|
42
48
|
value: business.id,
|
|
43
49
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperBusinessImage, null, business.logo && /*#__PURE__*/_react.default.createElement(_styles2.BusinessImage, {
|
|
@@ -59,7 +65,7 @@ var BusinessesSelector = function BusinessesSelector(props) {
|
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
setBusinessTypes(_businessesOptionList);
|
|
62
|
-
}, [businessesList]);
|
|
68
|
+
}, [businessesList, searchValue]);
|
|
63
69
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !businessesList.loading ? /*#__PURE__*/_react.default.createElement(_styles.MultiSelect, {
|
|
64
70
|
defaultValue: filterValues.businessIds,
|
|
65
71
|
placeholder: Placeholder,
|
|
@@ -69,13 +75,27 @@ var BusinessesSelector = function BusinessesSelector(props) {
|
|
|
69
75
|
optionBottomBorder: true,
|
|
70
76
|
onChange: function onChange(business) {
|
|
71
77
|
return handleChangeBusinesses(business);
|
|
78
|
+
},
|
|
79
|
+
isShowSearchBar: true,
|
|
80
|
+
searchBarIsCustomLayout: true,
|
|
81
|
+
searchBarIsNotLazyLoad: true,
|
|
82
|
+
searchValue: searchValue,
|
|
83
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
84
|
+
return setSearchValue(val);
|
|
72
85
|
}
|
|
73
86
|
}) : /*#__PURE__*/_react.default.createElement(_styles.MultiSelect, {
|
|
74
87
|
defaultValue: "default",
|
|
75
88
|
options: businessesLoading,
|
|
76
89
|
optionInnerMargin: "10px",
|
|
77
90
|
optionInnerMaxHeight: "150px",
|
|
78
|
-
optionBottomBorder: true
|
|
91
|
+
optionBottomBorder: true,
|
|
92
|
+
isShowSearchBar: true,
|
|
93
|
+
searchBarIsCustomLayout: true,
|
|
94
|
+
searchBarIsNotLazyLoad: true,
|
|
95
|
+
searchValue: searchValue,
|
|
96
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
97
|
+
return setSearchValue(val);
|
|
98
|
+
}
|
|
79
99
|
}));
|
|
80
100
|
};
|
|
81
101
|
exports.BusinessesSelector = BusinessesSelector;
|
|
@@ -32,15 +32,21 @@ var CountryFilterUI = function CountryFilterUI(props) {
|
|
|
32
32
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
33
33
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
34
34
|
t = _useLanguage2[1];
|
|
35
|
-
var
|
|
36
|
-
var _useState = (0, _react.useState)([]),
|
|
35
|
+
var _useState = (0, _react.useState)(''),
|
|
37
36
|
_useState2 = _slicedToArray(_useState, 2),
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
searchValue = _useState2[0],
|
|
38
|
+
setSearchValue = _useState2[1];
|
|
39
|
+
var _useState3 = (0, _react.useState)([]),
|
|
40
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
41
|
+
countryTypes = _useState4[0],
|
|
42
|
+
setCountryTypes = _useState4[1];
|
|
43
|
+
var placeholder = /*#__PURE__*/_react.default.createElement(_styles.PlaceholderTitle, null, t('SELECT_A_COUNTRY', 'Select a country'));
|
|
40
44
|
(0, _react.useEffect)(function () {
|
|
41
45
|
var _countryList = [];
|
|
42
46
|
if (!countriesState.loading) {
|
|
43
|
-
var _groupsOption = countriesState.countries.
|
|
47
|
+
var _groupsOption = countriesState.countries.filter(function (option) {
|
|
48
|
+
return option === null || option === void 0 ? void 0 : option.name.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase());
|
|
49
|
+
}).map(function (country) {
|
|
44
50
|
return {
|
|
45
51
|
value: country.code,
|
|
46
52
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, country.name)
|
|
@@ -60,7 +66,7 @@ var CountryFilterUI = function CountryFilterUI(props) {
|
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
68
|
setCountryTypes(_countryList);
|
|
63
|
-
}, [countriesState]);
|
|
69
|
+
}, [countriesState, searchValue]);
|
|
64
70
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !countriesState.loading ? /*#__PURE__*/_react.default.createElement(_MultiSelect.MultiSelect, {
|
|
65
71
|
placeholder: placeholder,
|
|
66
72
|
defaultValue: filterValues.countryCode,
|
|
@@ -68,7 +74,14 @@ var CountryFilterUI = function CountryFilterUI(props) {
|
|
|
68
74
|
onChange: function onChange(code) {
|
|
69
75
|
return handleChangeCountryCode(code);
|
|
70
76
|
},
|
|
71
|
-
optionInnerMaxHeight: "200px"
|
|
77
|
+
optionInnerMaxHeight: "200px",
|
|
78
|
+
isShowSearchBar: true,
|
|
79
|
+
searchBarIsCustomLayout: true,
|
|
80
|
+
searchBarIsNotLazyLoad: true,
|
|
81
|
+
searchValue: searchValue,
|
|
82
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
83
|
+
return setSearchValue(val);
|
|
84
|
+
}
|
|
72
85
|
}) : /*#__PURE__*/_react.default.createElement(_styles.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
73
86
|
style: {
|
|
74
87
|
height: '57px'
|
|
@@ -25,14 +25,20 @@ var CurrencyFilter = function CurrencyFilter(props) {
|
|
|
25
25
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
26
26
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
27
27
|
t = _useLanguage2[1];
|
|
28
|
-
var
|
|
29
|
-
var _useState = (0, _react.useState)([]),
|
|
28
|
+
var _useState = (0, _react.useState)(''),
|
|
30
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
searchValue = _useState2[0],
|
|
31
|
+
setSearchValue = _useState2[1];
|
|
32
|
+
var placeholder = /*#__PURE__*/_react.default.createElement(_styles.PlaceholderTitle, null, t('SELECT_A_CURRENCY', 'Select a currency'));
|
|
33
|
+
var _useState3 = (0, _react.useState)([]),
|
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35
|
+
countryTypes = _useState4[0],
|
|
36
|
+
setCountryTypes = _useState4[1];
|
|
33
37
|
(0, _react.useEffect)(function () {
|
|
34
38
|
var _countryList = [];
|
|
35
|
-
var _groupsOption = _constants.currencyList.
|
|
39
|
+
var _groupsOption = _constants.currencyList.filter(function (option) {
|
|
40
|
+
return option === null || option === void 0 ? void 0 : option.text.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase());
|
|
41
|
+
}).map(function (country) {
|
|
36
42
|
return {
|
|
37
43
|
value: country.value,
|
|
38
44
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, country.text)
|
|
@@ -51,7 +57,7 @@ var CurrencyFilter = function CurrencyFilter(props) {
|
|
|
51
57
|
_iterator.f();
|
|
52
58
|
}
|
|
53
59
|
setCountryTypes(_countryList);
|
|
54
|
-
}, [_constants.currencyList]);
|
|
60
|
+
}, [_constants.currencyList, searchValue]);
|
|
55
61
|
return /*#__PURE__*/_react.default.createElement(_MultiSelect.MultiSelect, {
|
|
56
62
|
placeholder: placeholder,
|
|
57
63
|
defaultValue: filterValues.currency,
|
|
@@ -59,7 +65,14 @@ var CurrencyFilter = function CurrencyFilter(props) {
|
|
|
59
65
|
onChange: function onChange(code) {
|
|
60
66
|
return handleChangeCurrency(code);
|
|
61
67
|
},
|
|
62
|
-
optionInnerMaxHeight: "200px"
|
|
68
|
+
optionInnerMaxHeight: "200px",
|
|
69
|
+
isShowSearchBar: true,
|
|
70
|
+
searchBarIsCustomLayout: true,
|
|
71
|
+
searchBarIsNotLazyLoad: true,
|
|
72
|
+
searchValue: searchValue,
|
|
73
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
74
|
+
return setSearchValue(val);
|
|
75
|
+
}
|
|
63
76
|
});
|
|
64
77
|
};
|
|
65
78
|
exports.CurrencyFilter = CurrencyFilter;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.DeliveryTypeSelector = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _MultiSelect = require("../../../styles/MultiSelect");
|
|
10
11
|
var _styles = require("./styles");
|
|
11
|
-
function
|
|
12
|
+
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); }
|
|
13
|
+
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
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14
16
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -21,22 +23,41 @@ var DeliveryTypeSelector = function DeliveryTypeSelector(props) {
|
|
|
21
23
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
22
24
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
23
25
|
t = _useLanguage2[1];
|
|
24
|
-
var
|
|
26
|
+
var _useState = (0, _react.useState)(''),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
searchValue = _useState2[0],
|
|
29
|
+
setSearchValue = _useState2[1];
|
|
30
|
+
var _useState3 = (0, _react.useState)([]),
|
|
31
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
+
deliveryTypes = _useState4[0],
|
|
33
|
+
setDeliveryTypes = _useState4[1];
|
|
34
|
+
var deliveryTypeList = [{
|
|
25
35
|
value: 1,
|
|
26
|
-
|
|
36
|
+
name: t('DELIVERY', 'Delivery')
|
|
27
37
|
}, {
|
|
28
38
|
value: 2,
|
|
29
|
-
|
|
39
|
+
name: t('PICKUP', 'Pickup')
|
|
30
40
|
}, {
|
|
31
41
|
value: 3,
|
|
32
|
-
|
|
42
|
+
name: t('EAT_IN', 'Eat in')
|
|
33
43
|
}, {
|
|
34
44
|
value: 4,
|
|
35
|
-
|
|
45
|
+
name: t('CURBSIDE', 'Curbside')
|
|
36
46
|
}, {
|
|
37
47
|
value: 5,
|
|
38
|
-
|
|
48
|
+
name: t('DRIVE_THRU', 'Drive thru')
|
|
39
49
|
}];
|
|
50
|
+
(0, _react.useEffect)(function () {
|
|
51
|
+
var _deliveryTypes = deliveryTypeList.filter(function (option) {
|
|
52
|
+
return option === null || option === void 0 ? void 0 : option.name.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase());
|
|
53
|
+
}).map(function (type) {
|
|
54
|
+
return {
|
|
55
|
+
value: type.value,
|
|
56
|
+
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, type.name)
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
setDeliveryTypes(_deliveryTypes);
|
|
60
|
+
}, [searchValue]);
|
|
40
61
|
var placeholder = /*#__PURE__*/_react.default.createElement(_styles.PlaceholderTitle, null, t('SELECT_DELIVERY_TYPE', 'Select delivery type'));
|
|
41
62
|
return /*#__PURE__*/_react.default.createElement(_MultiSelect.MultiSelect, {
|
|
42
63
|
placeholder: placeholder,
|
|
@@ -44,6 +65,13 @@ var DeliveryTypeSelector = function DeliveryTypeSelector(props) {
|
|
|
44
65
|
options: deliveryTypes,
|
|
45
66
|
onChange: function onChange(deliveryType) {
|
|
46
67
|
return handleChangeDeliveryType(deliveryType);
|
|
68
|
+
},
|
|
69
|
+
isShowSearchBar: true,
|
|
70
|
+
searchBarIsCustomLayout: true,
|
|
71
|
+
searchBarIsNotLazyLoad: true,
|
|
72
|
+
searchValue: searchValue,
|
|
73
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
74
|
+
return setSearchValue(val);
|
|
47
75
|
}
|
|
48
76
|
});
|
|
49
77
|
};
|
|
@@ -188,13 +188,27 @@ var DriverSelectorUI = function DriverSelectorUI(props) {
|
|
|
188
188
|
optionInnerMaxHeight: "150px",
|
|
189
189
|
onChange: function onChange(driver) {
|
|
190
190
|
return handleChangeDriver(driver);
|
|
191
|
+
},
|
|
192
|
+
isShowSearchBar: true,
|
|
193
|
+
searchBarIsCustomLayout: true,
|
|
194
|
+
searchBarIsNotLazyLoad: true,
|
|
195
|
+
searchValue: searchValue,
|
|
196
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
197
|
+
return setSearchValue(val);
|
|
191
198
|
}
|
|
192
199
|
}) : /*#__PURE__*/_react.default.createElement(_MultiSelect.MultiSelect, {
|
|
193
200
|
defaultValue: "default",
|
|
194
201
|
options: driversLoading,
|
|
195
202
|
optionInnerMargin: "10px",
|
|
196
203
|
optionInnerMaxHeight: "150px",
|
|
197
|
-
className: "driver-select"
|
|
204
|
+
className: "driver-select",
|
|
205
|
+
isShowSearchBar: true,
|
|
206
|
+
searchBarIsCustomLayout: true,
|
|
207
|
+
searchBarIsNotLazyLoad: true,
|
|
208
|
+
searchValue: searchValue,
|
|
209
|
+
handleChangeSearch: function handleChangeSearch(val) {
|
|
210
|
+
return setSearchValue(val);
|
|
211
|
+
}
|
|
198
212
|
}));
|
|
199
213
|
} else {
|
|
200
214
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !driversList.loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isFirstSelect ? /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
|