ordering-ui-external 14.1.89 → 14.1.91
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.a7f706d20b2f005fe988.js → 7.ordering-ui.b84618721c7b15e5e4e3.js} +1 -1
- package/_bundles/ordering-ui.b84618721c7b15e5e4e3.js +2 -0
- package/_modules/themes/five/src/components/Checkout/index.js +4 -7
- package/package.json +2 -2
- package/src/themes/five/src/components/Checkout/index.js +1 -2
- package/_bundles/ordering-ui.a7f706d20b2f005fe988.js +0 -2
- /package/_bundles/{0.ordering-ui.a7f706d20b2f005fe988.js → 0.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{1.ordering-ui.a7f706d20b2f005fe988.js → 1.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{2.ordering-ui.a7f706d20b2f005fe988.js → 2.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{4.ordering-ui.a7f706d20b2f005fe988.js → 4.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{5.ordering-ui.a7f706d20b2f005fe988.js → 5.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{6.ordering-ui.a7f706d20b2f005fe988.js → 6.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{7.ordering-ui.a7f706d20b2f005fe988.js.LICENSE.txt → 7.ordering-ui.b84618721c7b15e5e4e3.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.a7f706d20b2f005fe988.js → 8.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{9.ordering-ui.a7f706d20b2f005fe988.js → 9.ordering-ui.b84618721c7b15e5e4e3.js} +0 -0
- /package/_bundles/{ordering-ui.a7f706d20b2f005fe988.js.LICENSE.txt → ordering-ui.b84618721c7b15e5e4e3.js.LICENSE.txt} +0 -0
|
@@ -93,9 +93,6 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
93
93
|
alseaCheckPriceError = props.alseaCheckPriceError,
|
|
94
94
|
isLoadingCheckprice = props.isLoadingCheckprice;
|
|
95
95
|
var theme = (0, _styledComponents.useTheme)();
|
|
96
|
-
var _useApi = (0, _orderingComponentsExternal.useApi)(),
|
|
97
|
-
_useApi2 = _slicedToArray(_useApi, 1),
|
|
98
|
-
ordering = _useApi2[0];
|
|
99
96
|
var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
|
|
100
97
|
_useOrder2 = _slicedToArray(_useOrder, 1),
|
|
101
98
|
_useOrder2$ = _useOrder2[0],
|
|
@@ -260,7 +257,7 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
260
257
|
var hideBusinessDetails = theme === null || theme === void 0 || (_theme$checkout2 = theme.checkout) === null || _theme$checkout2 === void 0 || (_theme$checkout2 = _theme$checkout2.components) === null || _theme$checkout2 === void 0 || (_theme$checkout2 = _theme$checkout2.business) === null || _theme$checkout2 === void 0 ? void 0 : _theme$checkout2.hidden;
|
|
261
258
|
var hideBusinessMap = theme === null || theme === void 0 || (_theme$checkout3 = theme.checkout) === null || _theme$checkout3 === void 0 || (_theme$checkout3 = _theme$checkout3.components) === null || _theme$checkout3 === void 0 || (_theme$checkout3 = _theme$checkout3.map) === null || _theme$checkout3 === void 0 ? void 0 : _theme$checkout3.hidden;
|
|
262
259
|
var hideCustomerDetails = theme === null || theme === void 0 || (_theme$checkout4 = theme.checkout) === null || _theme$checkout4 === void 0 || (_theme$checkout4 = _theme$checkout4.components) === null || _theme$checkout4 === void 0 || (_theme$checkout4 = _theme$checkout4.customer) === null || _theme$checkout4 === void 0 ? void 0 : _theme$checkout4.hidden;
|
|
263
|
-
var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && (options.type === 1 || allowDriverTipPickup) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && driverTipsOptions.length > 0 && !useKioskApp;
|
|
260
|
+
var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && (options.type === 1 || allowDriverTipPickup) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (guestCheckoutDriveTip === null || guestCheckoutDriveTip === void 0 ? void 0 : guestCheckoutDriveTip.enabled) && driverTipsOptions.length > 0 && !useKioskApp;
|
|
264
261
|
var creditPointPlan = loyaltyPlansState === null || loyaltyPlansState === void 0 || (_loyaltyPlansState$re = loyaltyPlansState.result) === null || _loyaltyPlansState$re === void 0 ? void 0 : _loyaltyPlansState$re.find(function (loyal) {
|
|
265
262
|
return loyal.type === 'credit_point';
|
|
266
263
|
});
|
|
@@ -840,9 +837,9 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
840
837
|
var _useSession3 = (0, _orderingComponentsExternal.useSession)(),
|
|
841
838
|
_useSession4 = _slicedToArray(_useSession3, 1),
|
|
842
839
|
token = _useSession4[0].token;
|
|
843
|
-
var
|
|
844
|
-
|
|
845
|
-
ordering =
|
|
840
|
+
var _useApi = (0, _orderingComponentsExternal.useApi)(),
|
|
841
|
+
_useApi2 = _slicedToArray(_useApi, 1),
|
|
842
|
+
ordering = _useApi2[0];
|
|
846
843
|
var _useLanguage3 = (0, _orderingComponentsExternal.useLanguage)(),
|
|
847
844
|
_useLanguage4 = _slicedToArray(_useLanguage3, 2),
|
|
848
845
|
t = _useLanguage4[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.91",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"lodash": "^4.17.19",
|
|
89
89
|
"moment": "^2.29.4",
|
|
90
90
|
"nanoid": "^4.0.0",
|
|
91
|
-
"ordering-components-external": "13.2.
|
|
91
|
+
"ordering-components-external": "13.2.23",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -112,7 +112,6 @@ const CheckoutUI = (props) => {
|
|
|
112
112
|
} = props
|
|
113
113
|
|
|
114
114
|
const theme = useTheme()
|
|
115
|
-
const [ordering] = useApi()
|
|
116
115
|
const [{ options, loading }] = useOrder()
|
|
117
116
|
const [, t] = useLanguage()
|
|
118
117
|
const [{ parsePrice }] = useUtils()
|
|
@@ -199,7 +198,7 @@ const CheckoutUI = (props) => {
|
|
|
199
198
|
const hideBusinessDetails = theme?.checkout?.components?.business?.hidden
|
|
200
199
|
const hideBusinessMap = theme?.checkout?.components?.map?.hidden
|
|
201
200
|
const hideCustomerDetails = theme?.checkout?.components?.customer?.hidden
|
|
202
|
-
const driverTipsField = !cartState.loading && cart && cart?.business_id && (options.type === 1 || allowDriverTipPickup) && cart?.status !== 2 && driverTipsOptions.length > 0 && !useKioskApp
|
|
201
|
+
const driverTipsField = !cartState.loading && cart && cart?.business_id && (options.type === 1 || allowDriverTipPickup) && cart?.status !== 2 && (guestCheckoutDriveTip?.enabled) && driverTipsOptions.length > 0 && !useKioskApp
|
|
203
202
|
const creditPointPlan = loyaltyPlansState?.result?.find(loyal => loyal.type === 'credit_point')
|
|
204
203
|
const creditPointPlanOnBusiness = creditPointPlan?.businesses?.find(b => b.business_id === cart?.business_id && b.accumulates)
|
|
205
204
|
|