ordering-ui-external 11.0.10 → 11.0.11
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.4d450e485a30634d1c8b.js → 7.ordering-ui.f6ab4fd53f85792a6e5f.js} +1 -1
- package/_bundles/{ordering-ui.4d450e485a30634d1c8b.js → ordering-ui.f6ab4fd53f85792a6e5f.js} +2 -2
- package/_modules/components/BusinessBasicInformation/index.js +5 -6
- package/package.json +1 -1
- package/src/components/BusinessBasicInformation/index.js +2 -7
- package/template/pages/BusinessProductsList/index.js +2 -1
- /package/_bundles/{0.ordering-ui.4d450e485a30634d1c8b.js → 0.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{1.ordering-ui.4d450e485a30634d1c8b.js → 1.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{2.ordering-ui.4d450e485a30634d1c8b.js → 2.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{4.ordering-ui.4d450e485a30634d1c8b.js → 4.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{5.ordering-ui.4d450e485a30634d1c8b.js → 5.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{6.ordering-ui.4d450e485a30634d1c8b.js → 6.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{7.ordering-ui.4d450e485a30634d1c8b.js.LICENSE.txt → 7.ordering-ui.f6ab4fd53f85792a6e5f.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.4d450e485a30634d1c8b.js → 8.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{9.ordering-ui.4d450e485a30634d1c8b.js → 9.ordering-ui.f6ab4fd53f85792a6e5f.js} +0 -0
- /package/_bundles/{ordering-ui.4d450e485a30634d1c8b.js.LICENSE.txt → ordering-ui.f6ab4fd53f85792a6e5f.js.LICENSE.txt} +0 -0
|
@@ -24,7 +24,6 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
24
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
25
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
-
var types = ['food', 'laundry', 'alcohol', 'groceries'];
|
|
28
27
|
var BusinessBasicInformation = exports.BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
29
28
|
var _theme$business_view, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _props$beforeElements, _props$beforeComponen, _theme$images, _business$reviews, _orderState$options, _props$afterComponent, _props$afterElements;
|
|
30
29
|
var isSkeleton = props.isSkeleton,
|
|
@@ -47,13 +46,13 @@ var BusinessBasicInformation = exports.BusinessBasicInformation = function Busin
|
|
|
47
46
|
parseDistance = _useUtils2$.parseDistance,
|
|
48
47
|
optimizeImage = _useUtils2$.optimizeImage;
|
|
49
48
|
var getBusinessType = function getBusinessType() {
|
|
49
|
+
var _business$types;
|
|
50
50
|
if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
|
|
51
|
-
var _types =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return business[type] && _types.push(t("BUSINESS_TYPE_".concat(type === null || type === void 0 || (_type$replace = type.replace(/\s/g, '_')) === null || _type$replace === void 0 ? void 0 : _type$replace.toUpperCase()), type));
|
|
51
|
+
var _types = business === null || business === void 0 || (_business$types = business.types) === null || _business$types === void 0 ? void 0 : _business$types.map(function (type) {
|
|
52
|
+
var _type$name;
|
|
53
|
+
return t("BUSINESS_TYPE_".concat(type === null || type === void 0 || (_type$name = type.name) === null || _type$name === void 0 || (_type$name = _type$name.replace(/\s/g, '_')) === null || _type$name === void 0 ? void 0 : _type$name.toUpperCase()), type === null || type === void 0 ? void 0 : type.name);
|
|
55
54
|
});
|
|
56
|
-
return _types.join(', ');
|
|
55
|
+
return _types === null || _types === void 0 ? void 0 : _types.join(', ');
|
|
57
56
|
};
|
|
58
57
|
var showLogo = !(theme !== null && theme !== void 0 && (_theme$business_view = theme.business_view) !== null && _theme$business_view !== void 0 && (_theme$business_view = _theme$business_view.components) !== null && _theme$business_view !== void 0 && (_theme$business_view = _theme$business_view.header) !== null && _theme$business_view !== void 0 && (_theme$business_view = _theme$business_view.components) !== null && _theme$business_view !== void 0 && (_theme$business_view = _theme$business_view.business) !== null && _theme$business_view !== void 0 && (_theme$business_view = _theme$business_view.components) !== null && _theme$business_view !== void 0 && (_theme$business_view = _theme$business_view.logo) !== null && _theme$business_view !== void 0 && _theme$business_view.hidden);
|
|
59
58
|
var showDeliveryFee = !(theme !== null && theme !== void 0 && (_theme$business_view2 = theme.business_view) !== null && _theme$business_view2 !== void 0 && (_theme$business_view2 = _theme$business_view2.components) !== null && _theme$business_view2 !== void 0 && (_theme$business_view2 = _theme$business_view2.header) !== null && _theme$business_view2 !== void 0 && (_theme$business_view2 = _theme$business_view2.components) !== null && _theme$business_view2 !== void 0 && (_theme$business_view2 = _theme$business_view2.business) !== null && _theme$business_view2 !== void 0 && (_theme$business_view2 = _theme$business_view2.components) !== null && _theme$business_view2 !== void 0 && (_theme$business_view2 = _theme$business_view2.fee) !== null && _theme$business_view2 !== void 0 && _theme$business_view2.hidden);
|
package/package.json
CHANGED
|
@@ -22,8 +22,6 @@ import {
|
|
|
22
22
|
BusinessInfoItem
|
|
23
23
|
} from './styles'
|
|
24
24
|
|
|
25
|
-
const types = ['food', 'laundry', 'alcohol', 'groceries']
|
|
26
|
-
|
|
27
25
|
export const BusinessBasicInformation = (props) => {
|
|
28
26
|
const {
|
|
29
27
|
isSkeleton,
|
|
@@ -40,11 +38,8 @@ export const BusinessBasicInformation = (props) => {
|
|
|
40
38
|
|
|
41
39
|
const getBusinessType = () => {
|
|
42
40
|
if (Object.keys(business).length <= 0) return t('GENERAL', 'General')
|
|
43
|
-
const _types =
|
|
44
|
-
|
|
45
|
-
t(`BUSINESS_TYPE_${type?.replace(/\s/g, '_')?.toUpperCase()}`, type)
|
|
46
|
-
))
|
|
47
|
-
return _types.join(', ')
|
|
41
|
+
const _types = business?.types?.map(type => t(`BUSINESS_TYPE_${type?.name?.replace(/\s/g, '_')?.toUpperCase()}`, type?.name))
|
|
42
|
+
return _types?.join(', ')
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
const showLogo = !theme?.business_view?.components?.header?.components?.business?.components?.logo?.hidden
|
|
@@ -137,7 +137,8 @@ export const BusinessProductsList = (props) => {
|
|
|
137
137
|
'snapchat_profile',
|
|
138
138
|
'previously_products',
|
|
139
139
|
'configs',
|
|
140
|
-
'previously_products'
|
|
140
|
+
'previously_products',
|
|
141
|
+
'types'
|
|
141
142
|
],
|
|
142
143
|
handleSearchRedirect: () => {
|
|
143
144
|
events.emit('go_to_page', { page: 'search' })
|
/package/_bundles/{0.ordering-ui.4d450e485a30634d1c8b.js → 0.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.4d450e485a30634d1c8b.js → 1.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.4d450e485a30634d1c8b.js → 2.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.4d450e485a30634d1c8b.js → 4.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.4d450e485a30634d1c8b.js → 5.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.4d450e485a30634d1c8b.js → 6.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.4d450e485a30634d1c8b.js → 8.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.4d450e485a30634d1c8b.js → 9.ordering-ui.f6ab4fd53f85792a6e5f.js}
RENAMED
|
File without changes
|