ordering-ui-external 2.7.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/{7.ordering-ui.0a58ae9fc1a4bce64c6e.js → 7.ordering-ui.7365de53b98736c4f829.js} +1 -1
- package/_bundles/{ordering-ui.0a58ae9fc1a4bce64c6e.js → ordering-ui.7365de53b98736c4f829.js} +2 -2
- package/_modules/themes/five/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +1 -1
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -1
- package/_modules/themes/five/src/components/OrderContextUI/index.js +1 -1
- package/_modules/themes/five/src/components/OrderContextUI/styles.js +1 -1
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +3 -1
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +20 -10
- package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +5 -3
- package/package.json +2 -2
- package/src/themes/five/src/components/BusinessProductsList/index.js +1 -1
- package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +1 -1
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -1
- package/src/themes/five/src/components/OrderContextUI/index.js +1 -1
- package/src/themes/five/src/components/OrderContextUI/styles.js +1 -1
- package/src/themes/five/src/components/ProductItemAccordion/index.js +1 -1
- package/src/themes/five/src/components/RenderProductsLayout/index.js +16 -3
- package/src/themes/five/src/components/RenderProductsLayout/styles.js +11 -0
- /package/_bundles/{0.ordering-ui.0a58ae9fc1a4bce64c6e.js → 0.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{1.ordering-ui.0a58ae9fc1a4bce64c6e.js → 1.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{2.ordering-ui.0a58ae9fc1a4bce64c6e.js → 2.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{4.ordering-ui.0a58ae9fc1a4bce64c6e.js → 4.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{5.ordering-ui.0a58ae9fc1a4bce64c6e.js → 5.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{6.ordering-ui.0a58ae9fc1a4bce64c6e.js → 6.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{7.ordering-ui.0a58ae9fc1a4bce64c6e.js.LICENSE.txt → 7.ordering-ui.7365de53b98736c4f829.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.0a58ae9fc1a4bce64c6e.js → 8.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{9.ordering-ui.0a58ae9fc1a4bce64c6e.js → 9.ordering-ui.7365de53b98736c4f829.js} +0 -0
- /package/_bundles/{ordering-ui.0a58ae9fc1a4bce64c6e.js.LICENSE.txt → ordering-ui.7365de53b98736c4f829.js.LICENSE.txt} +0 -0
|
@@ -363,7 +363,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
|
|
|
363
363
|
onClickButton: function onClickButton() {
|
|
364
364
|
return !searchValue ? handleSearchRedirect() : handleClearSearch('');
|
|
365
365
|
}
|
|
366
|
-
})), errors && errors.length > 0 && errors.map(function (e, i) {
|
|
366
|
+
})), errors && errors.length > 0 && (typeof errors === 'string' ? [errors] : errors).map(function (e, i) {
|
|
367
367
|
return /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, {
|
|
368
368
|
key: i
|
|
369
369
|
}, "ERROR: [", e, "]");
|
|
@@ -218,7 +218,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
|
|
|
218
218
|
onClickButton: function onClickButton() {
|
|
219
219
|
return !searchValue ? handleSearchRedirect() : handleClearSearch('');
|
|
220
220
|
}
|
|
221
|
-
})), errors && errors.length > 0 && errors.map(function (e, i) {
|
|
221
|
+
})), errors && errors.length > 0 && (typeof errors === 'string' ? [errors] : errors).map(function (e, i) {
|
|
222
222
|
return /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, {
|
|
223
223
|
key: i
|
|
224
224
|
}, "ERROR: [", e, "]");
|
|
@@ -258,7 +258,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
258
258
|
}
|
|
259
259
|
return /*#__PURE__*/_react.default.createElement(_styles.BusinessContainer, null, (windowSize.width < 576 || (configs === null || configs === void 0 ? void 0 : (_configs$business_lis = configs.business_listing_hide_image) === null || _configs$business_lis === void 0 ? void 0 : _configs$business_lis.value) !== '1' && !isChew) && /*#__PURE__*/_react.default.createElement(_styles.BusinessBanner, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_OrderContextUI.OrderContextUI, {
|
|
260
260
|
isBusinessList: true,
|
|
261
|
-
hideHero: !!(configs !== null && configs !== void 0 && (_configs$business_lis2 = configs.business_listing_hide_image) !== null && _configs$business_lis2 !== void 0 && _configs$business_lis2.value) && !hideHero
|
|
261
|
+
hideHero: !!(configs !== null && configs !== void 0 && (_configs$business_lis2 = configs.business_listing_hide_image) !== null && _configs$business_lis2 !== void 0 && _configs$business_lis2.value) !== '1' && !hideHero
|
|
262
262
|
}), (configs === null || configs === void 0 ? void 0 : (_configs$business_lis3 = configs.business_listing_hide_image) === null || _configs$business_lis3 === void 0 ? void 0 : _configs$business_lis3.value) !== '1' && !isChew && !hideHero && /*#__PURE__*/_react.default.createElement(_styles.BusinessHeroImg, {
|
|
263
263
|
bgimage: (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$genera = _theme$images2.general) === null || _theme$images2$genera === void 0 ? void 0 : _theme$images2$genera.businessHero,
|
|
264
264
|
height: theme === null || theme === void 0 ? void 0 : (_theme$business_listi22 = theme.business_listing_view) === null || _theme$business_listi22 === void 0 ? void 0 : (_theme$business_listi23 = _theme$business_listi22.components) === null || _theme$business_listi23 === void 0 ? void 0 : (_theme$business_listi24 = _theme$business_listi23.business_hero) === null || _theme$business_listi24 === void 0 ? void 0 : (_theme$business_listi25 = _theme$business_listi24.style) === null || _theme$business_listi25 === void 0 ? void 0 : _theme$business_listi25.height
|
|
@@ -128,7 +128,7 @@ var OrderContextUI = function OrderContextUI(props) {
|
|
|
128
128
|
onClick: function onClick() {
|
|
129
129
|
return handleClickAddress();
|
|
130
130
|
},
|
|
131
|
-
isCheckOut: isCheckOut
|
|
131
|
+
isCheckOut: isCheckOut || !props.hideHero
|
|
132
132
|
}, /*#__PURE__*/_react.default.createElement(_FaMapMarkerAlt.default, null), /*#__PURE__*/_react.default.createElement("span", null, ((_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : (_orderState$options2$ = _orderState$options2.address) === null || _orderState$options2$ === void 0 ? void 0 : _orderState$options2$.address) || t('WHERE_DO_WE_DELIVERY', 'Where do we delivery?'))), /*#__PURE__*/_react.default.createElement(_styles.FeatureItems, null, /*#__PURE__*/_react.default.createElement(_styles.ItemInline, null, /*#__PURE__*/_react.default.createElement(_OrderTypeSelectorHeader.OrderTypeSelectorHeader, {
|
|
133
133
|
configTypes: configTypes,
|
|
134
134
|
autoCloseWhenScroll: windowSize.width < 576
|
|
@@ -16,7 +16,7 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
16
16
|
}, function (_ref2) {
|
|
17
17
|
var hero = _ref2.hero,
|
|
18
18
|
isCheckOut = _ref2.isCheckOut;
|
|
19
|
-
return
|
|
19
|
+
return hero && !isCheckOut && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 10%;\n "])));
|
|
20
20
|
});
|
|
21
21
|
exports.Container = Container;
|
|
22
22
|
var AddressMenu = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n display: flex;\n align-items: center;\n background-color: ", ";\n font-weight: 600;\n border-radius: 50px;\n padding: 13px 19px;\n margin-bottom: 10px;\n ", "\n\n span {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n svg {\n margin-right: 5px;\n color: ", ";\n ", "\n }\n"])), function (props) {
|
|
@@ -237,7 +237,9 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
|
237
237
|
className: "ingredient",
|
|
238
238
|
key: ingredient.id
|
|
239
239
|
}, /*#__PURE__*/_react.default.createElement("span", null, t('NO', 'No'), " ", ingredient.name));
|
|
240
|
-
})), productInfo().options.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, productInfo().options.
|
|
240
|
+
})), productInfo().options.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, productInfo().options.sort(function (a, b) {
|
|
241
|
+
return a.rank - b.rank;
|
|
242
|
+
}).map(function (option) {
|
|
241
243
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
242
244
|
key: option.id
|
|
243
245
|
}, /*#__PURE__*/_react.default.createElement("p", null, option.name), /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, {
|
|
@@ -49,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
49
49
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
50
50
|
var layoutOne = 'groceries';
|
|
51
51
|
var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
52
|
-
var _configs$use_parent_c, _configs$use_parent_c2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _theme$business_view$5, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _businessState$busine, _businessState$busine2, _business$previously_, _business$professiona, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _business$professiona2,
|
|
52
|
+
var _configs$use_parent_c, _configs$use_parent_c2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _theme$business_view$5, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _businessState$busine, _businessState$busine2, _business$previously_, _business$professiona, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _business$professiona2, _business$categories2, _theme$defaultLanguag4, _theme$defaultLanguag5, _business$professiona3, _currentCart$products, _business$professiona4, _business$categories3, _theme$defaultLanguag6, _theme$defaultLanguag7, _business$previously_2, _theme$defaultLanguag8, _theme$defaultLanguag9, _currentCart$products2, _currentCart$products3;
|
|
53
53
|
var errors = props.errors,
|
|
54
54
|
isError = props.isError,
|
|
55
55
|
isLoading = props.isLoading,
|
|
@@ -208,7 +208,7 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
208
208
|
style: {
|
|
209
209
|
position: 'relative'
|
|
210
210
|
}
|
|
211
|
-
}, !((business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(BusinessLayoutCategories, {
|
|
211
|
+
}, !((business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) === 0 && !categoryId) && !(categorySelected !== null && categorySelected !== void 0 && categorySelected.id) && /*#__PURE__*/_react.default.createElement(BusinessLayoutCategories, {
|
|
212
212
|
categories: [{
|
|
213
213
|
id: null,
|
|
214
214
|
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.ALL) || 'All')
|
|
@@ -227,7 +227,17 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
227
227
|
currentCart: currentCart,
|
|
228
228
|
wContainerStyle: useKioskApp && 'calc(100% - 50px)',
|
|
229
229
|
isProfessional: (business === null || business === void 0 ? void 0 : (_business$professiona2 = business.professionals) === null || _business$professiona2 === void 0 ? void 0 : _business$professiona2.length) > 0 && !useKioskApp
|
|
230
|
-
}),
|
|
230
|
+
}), !((business === null || business === void 0 ? void 0 : (_business$categories2 = business.categories) === null || _business$categories2 === void 0 ? void 0 : _business$categories2.length) === 0 && !categoryId) && (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.id) && /*#__PURE__*/_react.default.createElement(_styles.BackButton, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
231
|
+
color: "primary",
|
|
232
|
+
initialIcon: true,
|
|
233
|
+
onClick: function onClick() {
|
|
234
|
+
var _theme$defaultLanguag3;
|
|
235
|
+
return onClickCategory({
|
|
236
|
+
id: null,
|
|
237
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.ALL) || 'All')
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ArrowLeft, null), /*#__PURE__*/_react.default.createElement("div", null, t('GO_TO_ALL_CATEGORIES', 'Go to all categories')))), useKioskApp && /*#__PURE__*/_react.default.createElement(_styles.WrapperSearchAbsolute, {
|
|
231
241
|
id: "WrapperSearchAbsolute"
|
|
232
242
|
}, /*#__PURE__*/_react.default.createElement(_styles2.SearchIconWrapper, {
|
|
233
243
|
onClick: function onClick() {
|
|
@@ -257,10 +267,10 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
257
267
|
}, /*#__PURE__*/_react.default.createElement(BusinessLayoutProductsList, {
|
|
258
268
|
categories: [{
|
|
259
269
|
id: null,
|
|
260
|
-
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
270
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.ALL) || 'All')
|
|
261
271
|
}, {
|
|
262
272
|
id: 'featured',
|
|
263
|
-
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
273
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.FEATURED) || 'Featured')
|
|
264
274
|
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
265
275
|
return a.rank - b.rank;
|
|
266
276
|
}))),
|
|
@@ -311,14 +321,14 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
311
321
|
handleUpdateProfessionals: handleUpdateProfessionals
|
|
312
322
|
})), /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoriesContainer, {
|
|
313
323
|
offSticky: true
|
|
314
|
-
}, !((business === null || business === void 0 ? void 0 : (_business$
|
|
324
|
+
}, !((business === null || business === void 0 ? void 0 : (_business$categories3 = business.categories) === null || _business$categories3 === void 0 ? void 0 : _business$categories3.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (!categoryClicked || windowSize.width >= 993) && /*#__PURE__*/_react.default.createElement(BusinessLayoutCategories, {
|
|
315
325
|
component: "categories",
|
|
316
326
|
categories: [{
|
|
317
327
|
id: null,
|
|
318
|
-
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
328
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.ALL) || 'All')
|
|
319
329
|
}, {
|
|
320
330
|
id: 'featured',
|
|
321
|
-
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
331
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.FEATURED) || 'Featured')
|
|
322
332
|
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
323
333
|
return a.rank - b.rank;
|
|
324
334
|
}))),
|
|
@@ -342,10 +352,10 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
342
352
|
}), /*#__PURE__*/_react.default.createElement(BusinessLayoutProductsList, {
|
|
343
353
|
categories: [{
|
|
344
354
|
id: null,
|
|
345
|
-
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
355
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.ALL) || 'All')
|
|
346
356
|
}, {
|
|
347
357
|
id: 'featured',
|
|
348
|
-
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
358
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.FEATURED) || 'Featured')
|
|
349
359
|
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
350
360
|
return a.rank - b.rank;
|
|
351
361
|
}))),
|
|
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.WrapperSearchAbsolute = exports.WrapperSearch = exports.WrappLayout = exports.WrapContent = exports.Title = exports.ProfessionalFilterWrapper = exports.PageBannerWrapper = exports.NearBusiness = exports.MobileCartViewWrapper = exports.EmptyCart = exports.EmptyBtnWrapper = exports.BusinessContent = exports.BusinessCategoryProductWrapper = exports.BusinessCategoriesContainer = exports.BusinessCartContent = exports.BusinessCartContainer = void 0;
|
|
7
|
+
exports.WrapperSearchAbsolute = exports.WrapperSearch = exports.WrappLayout = exports.WrapContent = exports.Title = exports.ProfessionalFilterWrapper = exports.PageBannerWrapper = exports.NearBusiness = exports.MobileCartViewWrapper = exports.EmptyCart = exports.EmptyBtnWrapper = exports.BusinessContent = exports.BusinessCategoryProductWrapper = exports.BusinessCategoriesContainer = exports.BusinessCartContent = exports.BusinessCartContainer = exports.BackButton = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
|
|
9
|
+
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;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -74,4 +74,6 @@ exports.WrapperSearchAbsolute = WrapperSearchAbsolute;
|
|
|
74
74
|
var NearBusiness = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
|
|
75
75
|
exports.NearBusiness = NearBusiness;
|
|
76
76
|
var PageBannerWrapper = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n > div {\n border-radius: 8px;\n }\n"])));
|
|
77
|
-
exports.PageBannerWrapper = PageBannerWrapper;
|
|
77
|
+
exports.PageBannerWrapper = PageBannerWrapper;
|
|
78
|
+
var BackButton = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n button {\n display: flex;\n flex-direction: row;\n align-items: center;\n svg {\n margin-right: 10px;\n }\n }\n"])));
|
|
79
|
+
exports.BackButton = BackButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"lodash": "^4.17.19",
|
|
88
88
|
"moment": "^2.29.4",
|
|
89
89
|
"nanoid": "^4.0.0",
|
|
90
|
-
"ordering-components-external": "2.8.
|
|
90
|
+
"ordering-components-external": "2.8.1",
|
|
91
91
|
"payment": "^2.4.6",
|
|
92
92
|
"polished": "^3.6.6",
|
|
93
93
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -389,7 +389,7 @@ const BusinessProductsListUI = (props) => {
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
{errors && errors.length > 0 && (
|
|
392
|
-
errors.map((e, i) => (
|
|
392
|
+
(typeof errors === 'string' ? [errors] : errors).map((e, i) => (
|
|
393
393
|
<ErrorMessage key={i}>ERROR: [{e}]</ErrorMessage>
|
|
394
394
|
))
|
|
395
395
|
)}
|
|
@@ -275,7 +275,7 @@ const BusinessProductsListUI = (props) => {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
{errors && errors.length > 0 && (
|
|
278
|
-
errors.map((e, i) => (
|
|
278
|
+
(typeof errors === 'string' ? [errors] : errors).map((e, i) => (
|
|
279
279
|
<ErrorMessage key={i}>ERROR: [{e}]</ErrorMessage>
|
|
280
280
|
))
|
|
281
281
|
)}
|
package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js
CHANGED
|
@@ -225,7 +225,7 @@ const BusinessesListingUI = (props) => {
|
|
|
225
225
|
{(windowSize.width < 576 || (configs?.business_listing_hide_image?.value !== '1' && !isChew)) && (
|
|
226
226
|
<BusinessBanner>
|
|
227
227
|
{windowSize.width < 576 && (
|
|
228
|
-
<OrderContextUI isBusinessList hideHero={(!!configs?.business_listing_hide_image?.value && !hideHero)} />
|
|
228
|
+
<OrderContextUI isBusinessList hideHero={(!!configs?.business_listing_hide_image?.value !== '1' && !hideHero)} />
|
|
229
229
|
)}
|
|
230
230
|
{(configs?.business_listing_hide_image?.value !== '1' && !isChew) && !hideHero && (
|
|
231
231
|
<BusinessHeroImg
|
|
@@ -78,7 +78,7 @@ export const OrderContextUI = (props) => {
|
|
|
78
78
|
<Container isBusinessList={isBusinessList} hero={props.hideHero} isCheckOut={isCheckOut}>
|
|
79
79
|
<AddressMenu
|
|
80
80
|
onClick={() => handleClickAddress()}
|
|
81
|
-
isCheckOut={isCheckOut}
|
|
81
|
+
isCheckOut={isCheckOut || !props.hideHero}
|
|
82
82
|
>
|
|
83
83
|
<FaMapMarkerAlt />
|
|
84
84
|
<span>{orderState.options?.address?.address || t('WHERE_DO_WE_DELIVERY', 'Where do we delivery?')}</span>
|
|
@@ -316,7 +316,7 @@ export const ProductItemAccordion = (props) => {
|
|
|
316
316
|
)}
|
|
317
317
|
{productInfo().options.length > 0 && (
|
|
318
318
|
<ProductOptionsList>
|
|
319
|
-
{productInfo().options.map(option => (
|
|
319
|
+
{productInfo().options.sort((a, b) => a.rank - b.rank).map(option => (
|
|
320
320
|
<li key={option.id}>
|
|
321
321
|
<p>{option.name}</p>
|
|
322
322
|
<ProductOptionsList className='suboption'>
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'
|
|
|
2
2
|
import { useTheme } from 'styled-components'
|
|
3
3
|
import { useLanguage, useConfig, useUtils, useOrderingTheme } from 'ordering-components-external'
|
|
4
4
|
import CgSearch from '@meronex/icons/cg/CgSearch'
|
|
5
|
-
import { Cart3 } from 'react-bootstrap-icons'
|
|
5
|
+
import { Cart3, ArrowLeft } from 'react-bootstrap-icons'
|
|
6
6
|
import { BusinessBasicInformation } from '../BusinessBasicInformation'
|
|
7
7
|
import { BusinessBasicInformation as BusinessBasicInformationRed } from '../../../../seven'
|
|
8
8
|
import { BusinessBasicInformation as BusinessBasicInformationStarbucks } from '../../../../six'
|
|
@@ -32,7 +32,8 @@ import {
|
|
|
32
32
|
ProfessionalFilterWrapper,
|
|
33
33
|
WrapperSearchAbsolute,
|
|
34
34
|
NearBusiness,
|
|
35
|
-
PageBannerWrapper
|
|
35
|
+
PageBannerWrapper,
|
|
36
|
+
BackButton
|
|
36
37
|
} from './styles'
|
|
37
38
|
|
|
38
39
|
import { SearchProducts as SearchProductsOriginal } from '../../../../../themes/five/src/components/SearchProducts'
|
|
@@ -241,7 +242,7 @@ export const RenderProductsLayout = (props) => {
|
|
|
241
242
|
</>
|
|
242
243
|
)}
|
|
243
244
|
<div style={{ position: 'relative' }}>
|
|
244
|
-
{!(business?.categories?.length === 0 && !categoryId) && (
|
|
245
|
+
{!(business?.categories?.length === 0 && !categoryId) && !categorySelected?.id && (
|
|
245
246
|
<BusinessLayoutCategories
|
|
246
247
|
categories={[
|
|
247
248
|
{ id: null, name: t('ALL', theme?.defaultLanguages?.ALL || 'All') },
|
|
@@ -259,6 +260,18 @@ export const RenderProductsLayout = (props) => {
|
|
|
259
260
|
isProfessional={business?.professionals?.length > 0 && !useKioskApp}
|
|
260
261
|
/>
|
|
261
262
|
)}
|
|
263
|
+
{!(business?.categories?.length === 0 && !categoryId) && categorySelected?.id && (
|
|
264
|
+
<BackButton>
|
|
265
|
+
<Button
|
|
266
|
+
color='primary'
|
|
267
|
+
initialIcon
|
|
268
|
+
onClick={() => onClickCategory({ id: null, name: t('ALL', theme?.defaultLanguages?.ALL || 'All') })}
|
|
269
|
+
>
|
|
270
|
+
<ArrowLeft />
|
|
271
|
+
<div>{t('GO_TO_ALL_CATEGORIES', 'Go to all categories')}</div>
|
|
272
|
+
</Button>
|
|
273
|
+
</BackButton>
|
|
274
|
+
)}
|
|
262
275
|
{useKioskApp && (
|
|
263
276
|
<WrapperSearchAbsolute id='WrapperSearchAbsolute'>
|
|
264
277
|
<SearchIconWrapper
|
|
@@ -224,3 +224,14 @@ export const PageBannerWrapper = styled.div`
|
|
|
224
224
|
border-radius: 8px;
|
|
225
225
|
}
|
|
226
226
|
`
|
|
227
|
+
|
|
228
|
+
export const BackButton = styled.div`
|
|
229
|
+
button {
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: row;
|
|
232
|
+
align-items: center;
|
|
233
|
+
svg {
|
|
234
|
+
margin-right: 10px;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`
|
/package/_bundles/{0.ordering-ui.0a58ae9fc1a4bce64c6e.js → 0.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.0a58ae9fc1a4bce64c6e.js → 1.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.0a58ae9fc1a4bce64c6e.js → 2.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.0a58ae9fc1a4bce64c6e.js → 4.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.0a58ae9fc1a4bce64c6e.js → 5.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.0a58ae9fc1a4bce64c6e.js → 6.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.0a58ae9fc1a4bce64c6e.js → 8.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.0a58ae9fc1a4bce64c6e.js → 9.ordering-ui.7365de53b98736c4f829.js}
RENAMED
|
File without changes
|