ordering-ui-external 14.1.74 → 14.1.76
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/{0.ordering-ui.e7b975f7fdd2a95dc7e7.js → 0.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{1.ordering-ui.e7b975f7fdd2a95dc7e7.js → 1.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{2.ordering-ui.e7b975f7fdd2a95dc7e7.js → 2.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{4.ordering-ui.e7b975f7fdd2a95dc7e7.js → 4.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{5.ordering-ui.e7b975f7fdd2a95dc7e7.js → 5.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{6.ordering-ui.e7b975f7fdd2a95dc7e7.js → 6.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{7.ordering-ui.e7b975f7fdd2a95dc7e7.js → 7.ordering-ui.ac5eb20df8a61abc3850.js} +2 -2
- package/_bundles/{8.ordering-ui.e7b975f7fdd2a95dc7e7.js → 8.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/{9.ordering-ui.e7b975f7fdd2a95dc7e7.js → 9.ordering-ui.ac5eb20df8a61abc3850.js} +1 -1
- package/_bundles/ordering-ui.ac5eb20df8a61abc3850.js +2 -0
- package/_bundles/{ordering-ui.e7b975f7fdd2a95dc7e7.js.LICENSE.txt → ordering-ui.ac5eb20df8a61abc3850.js.LICENSE.txt} +0 -9
- package/_modules/themes/five/src/components/Cart/index.js +1 -1
- package/package.json +2 -2
- package/src/themes/five/src/components/Cart/index.js +1 -1
- package/_bundles/ordering-ui.e7b975f7fdd2a95dc7e7.js +0 -2
- /package/_bundles/{7.ordering-ui.e7b975f7fdd2a95dc7e7.js.LICENSE.txt → 7.ordering-ui.ac5eb20df8a61abc3850.js.LICENSE.txt} +0 -0
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* MIT Licence
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/*!
|
|
16
|
-
* The buffer module from node.js, for the browser.
|
|
17
|
-
*
|
|
18
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
19
|
-
* @license MIT
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
15
|
/*! *****************************************************************************
|
|
23
16
|
Copyright (c) Microsoft Corporation.
|
|
24
17
|
|
|
@@ -34,8 +27,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
34
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
35
28
|
***************************************************************************** */
|
|
36
29
|
|
|
37
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
38
|
-
|
|
39
30
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
40
31
|
|
|
41
32
|
/**
|
|
@@ -179,7 +179,7 @@ var CartUI = function CartUI(props) {
|
|
|
179
179
|
} else {
|
|
180
180
|
return cart === null || cart === void 0 ? void 0 : cart.taxes.reduce(function (taxIncluded, tax) {
|
|
181
181
|
var _tax$summary;
|
|
182
|
-
return taxIncluded + (!isDeliveryFee && tax.type === 1 && tax.target === 'product' || isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee' ? (_tax$summary = tax.summary) === null || _tax$summary === void 0 ? void 0 : _tax$summary.
|
|
182
|
+
return taxIncluded + (!isDeliveryFee && tax.type === 1 && tax.target === 'product' || isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee' ? (_tax$summary = tax.summary) === null || _tax$summary === void 0 ? void 0 : _tax$summary.tax_after_discount : 0);
|
|
183
183
|
}, 0);
|
|
184
184
|
}
|
|
185
185
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.76",
|
|
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.8",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -141,7 +141,7 @@ const CartUI = (props) => {
|
|
|
141
141
|
return cart?.business.tax_type === 1 ? cart?.tax : 0
|
|
142
142
|
} else {
|
|
143
143
|
return cart?.taxes.reduce((taxIncluded, tax) => {
|
|
144
|
-
return taxIncluded + (((!isDeliveryFee && tax.type === 1 && tax.target === 'product') || (isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee')) ? tax.summary?.
|
|
144
|
+
return taxIncluded + (((!isDeliveryFee && tax.type === 1 && tax.target === 'product') || (isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee')) ? tax.summary?.tax_after_discount : 0)
|
|
145
145
|
}, 0)
|
|
146
146
|
}
|
|
147
147
|
}
|