tabexseriescomponents 0.2.1391 → 0.2.1393
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/dist/index.cjs.js +144 -92
- package/dist/index.esm.js +144 -92
- package/dist/index.umd.js +144 -92
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -2955,6 +2955,11 @@
|
|
|
2955
2955
|
}
|
|
2956
2956
|
setdefaultpricing(price);
|
|
2957
2957
|
}, [variantindexcompleted]);
|
|
2958
|
+
var toNumber = function toNumber(value) {
|
|
2959
|
+
if (value == null || value === '') return 0;
|
|
2960
|
+
var number = Number(String(value).replace(/,/g, ''));
|
|
2961
|
+
return isNaN(number) ? 0 : number;
|
|
2962
|
+
};
|
|
2958
2963
|
var SaleCounterPill = function SaleCounterPill() {
|
|
2959
2964
|
var _fetchProductInfoQuer2, _fetchProductInfoQuer3;
|
|
2960
2965
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2976,7 +2981,7 @@
|
|
|
2976
2981
|
color: sectionproperties.counterValueColor,
|
|
2977
2982
|
fontWeight: sectionproperties.counterValueFontWeight
|
|
2978
2983
|
}
|
|
2979
|
-
},
|
|
2984
|
+
}, sectionproperties.removedecimals != 'With Decimals' ? toNumber(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - toNumber(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)).toFixed(2) : parseFloat(Math.round(parseInt(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseInt(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)))).toFixed(0), ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.currencyname_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2980
2985
|
style: {
|
|
2981
2986
|
background: sectionproperties.pillbgcolor,
|
|
2982
2987
|
width: 'fit-content',
|
|
@@ -11463,7 +11468,16 @@
|
|
|
11463
11468
|
if (sectionproperties.removedecimals == 'Without Decimals') {
|
|
11464
11469
|
return parseFloat(Number(price).toFixed(2));
|
|
11465
11470
|
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
|
|
11466
|
-
return Math.floor(price).toLocaleString();
|
|
11471
|
+
// return Math.floor(price).toLocaleString();
|
|
11472
|
+
return Number(price).toLocaleString('en-US', {
|
|
11473
|
+
minimumFractionDigits: 0,
|
|
11474
|
+
maximumFractionDigits: 2
|
|
11475
|
+
});
|
|
11476
|
+
} else if (sectionproperties.removedecimals == 'Separated With Comma') {
|
|
11477
|
+
return Number(price).toLocaleString('en-US', {
|
|
11478
|
+
minimumFractionDigits: 0,
|
|
11479
|
+
maximumFractionDigits: 2
|
|
11480
|
+
});
|
|
11467
11481
|
} else {
|
|
11468
11482
|
return price;
|
|
11469
11483
|
}
|
|
@@ -16053,7 +16067,7 @@
|
|
|
16053
16067
|
function ownKeys$2x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16054
16068
|
function _objectSpread$2x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2x(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16055
16069
|
var Checkout = function Checkout(props) {
|
|
16056
|
-
var _fetchTabexCountriesQ2, _css,
|
|
16070
|
+
var _fetchTabexCountriesQ2, _css, _fetchcustomercartQue74, _authdetailsContext$i13, _authdetailsContext$i14, _fetchcustomercartQue75, _authdetailsContext$i15, _fetchcustomercartQue76, _authdetailsContext$i16, _authdetailsContext$i17, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _fetchcustomercartQue77, _authdetailsContext$i21, _authdetailsContext$i22, _authdetailsContext$i23, _authdetailsContext$i24, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _authdetailsContext$i33, _authdetailsContext$i34, _authdetailsContext$i35, _authdetailsContext$i36, _authdetailsContext$i37, _authdetailsContext$i38, _fetchcustomercartQue87, _authdetailsContext$i39, _authdetailsContext$i40, _authdetailsContext$i41, _authdetailsContext$i42, _authdetailsContext$i43, _authdetailsContext$i44, _authdetailsContext$i45, _authdetailsContext$i46, _fetchcustomercartQue89, _authdetailsContext$i47, _fetchcustomercartQue91, _authdetailsContext$i48, _authdetailsContext$i49, _authdetailsContext$i50, _authdetailsContext$i51, _authdetailsContext$i52, _authdetailsContext$i53, _fetchcustomercartQue93, _authdetailsContext$i54, _authdetailsContext$i55, _fetchcustomercartQue95, _fetchcustomercartQue97, _fetchcustomercartQue99, _authdetailsContext$i56, _fetchcustomercartQue101, _authdetailsContext$i57, _fetchcustomercartQue103, _authdetailsContext$i58, _fetchcustomercartQue105, _authdetailsContext$i59, _fetchcustomercartQue107, _authdetailsContext$i60, _fetchcustomercartQue109, _authdetailsContext$i61, _fetchcustomercartQue111, _authdetailsContext$i62, _fetchcustomercartQue113, _authdetailsContext$i63, _authdetailsContext$i64, _fetchcustomercartQue115, _fetchcustomercartQue116;
|
|
16057
16071
|
var _useState = React.useState(null),
|
|
16058
16072
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
16059
16073
|
_useState2[0];
|
|
@@ -16656,7 +16670,7 @@
|
|
|
16656
16670
|
return isloading;
|
|
16657
16671
|
};
|
|
16658
16672
|
var Mycart = function Mycart() {
|
|
16659
|
-
var _fetchcustomercartQue39, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _authdetailsContext$i8, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55,
|
|
16673
|
+
var _fetchcustomercartQue39, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _authdetailsContext$i8, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _authdetailsContext$i9, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i11, _fetchcustomercartQue72, _authdetailsContext$i12, _fetchcustomercartQue73;
|
|
16660
16674
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16661
16675
|
className: "row m-0 w-100 mb-md-3"
|
|
16662
16676
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -16795,33 +16809,51 @@
|
|
|
16795
16809
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16796
16810
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16797
16811
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
|
|
16798
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() :
|
|
16812
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(item.finalprice).toLocaleString('en-US', {
|
|
16813
|
+
minimumFractionDigits: 0,
|
|
16814
|
+
maximumFractionDigits: 2
|
|
16815
|
+
}) : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16799
16816
|
className: "row m-0 w-100 d-flex flex-column justify-content-end"
|
|
16800
16817
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16801
16818
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16802
16819
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16803
16820
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
|
|
16804
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() :
|
|
16821
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(item.finalprice).toLocaleString('en-US', {
|
|
16822
|
+
minimumFractionDigits: 0,
|
|
16823
|
+
maximumFractionDigits: 2
|
|
16824
|
+
}) : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16805
16825
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16806
16826
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16807
16827
|
className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-left '
|
|
16808
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.defaultprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.defaultprice).toLocaleString() :
|
|
16828
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.defaultprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.defaultprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(item.productinfo.defaultprice).toLocaleString('en-US', {
|
|
16829
|
+
minimumFractionDigits: 0,
|
|
16830
|
+
maximumFractionDigits: 2
|
|
16831
|
+
}) : parseFloat(item.productinfo.defaultprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))), item.productinfo.hasvariants == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16809
16832
|
className: "row m-0 w-100 d-flex flex-column justify-content-end"
|
|
16810
16833
|
}, item.productinfo.variantinfo.hassale == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16811
16834
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16812
16835
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16813
16836
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
|
|
16814
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar, ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString() :
|
|
16837
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar, ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(item.productinfo.variantinfo.variantprice).toLocaleString('en-US', {
|
|
16838
|
+
minimumFractionDigits: 0,
|
|
16839
|
+
maximumFractionDigits: 2
|
|
16840
|
+
}) : parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2))), item.productinfo.variantinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16815
16841
|
className: "row m-0 w-100 d-flex flex-column justify-content-end"
|
|
16816
16842
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16817
16843
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16818
16844
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16819
16845
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
16820
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.variantinfo.variantsaleprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.variantinfo.variantsaleprice).toLocaleString() :
|
|
16846
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.variantinfo.variantsaleprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.variantinfo.variantsaleprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(item.productinfo.variantinfo.variantsaleprice).toLocaleString('en-US', {
|
|
16847
|
+
minimumFractionDigits: 0,
|
|
16848
|
+
maximumFractionDigits: 2
|
|
16849
|
+
}) : parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16821
16850
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16822
16851
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16823
16852
|
className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
16824
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString() :
|
|
16853
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(item.productinfo.variantinfo.variantprice).toLocaleString('en-US', {
|
|
16854
|
+
minimumFractionDigits: 0,
|
|
16855
|
+
maximumFractionDigits: 2
|
|
16856
|
+
}) : parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))))));
|
|
16825
16857
|
}
|
|
16826
16858
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16827
16859
|
"class": "".concat(checkoutstyles.innersection) + ' row m-0 w-100 p-3 '
|
|
@@ -16925,10 +16957,13 @@
|
|
|
16925
16957
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
16926
16958
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16927
16959
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
16928
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.totalprice).toLocaleString() :
|
|
16960
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.totalprice).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.customercart.totalprice).toLocaleString('en-US', {
|
|
16961
|
+
minimumFractionDigits: 0,
|
|
16962
|
+
maximumFractionDigits: 2
|
|
16963
|
+
}) : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.customercart) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.genpayments) === null || _fetchcustomercartQue55 === void 0 ? void 0 : _fetchcustomercartQue55.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16929
16964
|
className: "row m-0 w-100"
|
|
16930
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
16931
|
-
var
|
|
16965
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.customercart) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.genpayments) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.map(function (item, index) {
|
|
16966
|
+
var _fetchcustomercartQue57;
|
|
16932
16967
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16933
16968
|
"class": "col-lg-12 p-0"
|
|
16934
16969
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -16947,8 +16982,8 @@
|
|
|
16947
16982
|
style: {
|
|
16948
16983
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
16949
16984
|
}
|
|
16950
|
-
}, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', parseFloat(item.value).toFixed(2), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React__default["default"].createElement("span", null, item.value, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', parseFloat((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
16951
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
16985
|
+
}, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', parseFloat(item.value).toFixed(2), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React__default["default"].createElement("span", null, item.value, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', parseFloat((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.customercart) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.totalprice) * (item.value / 100)).toFixed(2), ' ', langdetect == 'ar' ? authdetailsContext.currencyname_ar : '', ")")))));
|
|
16986
|
+
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.customercart) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16952
16987
|
className: "row m-0 w-100"
|
|
16953
16988
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16954
16989
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -16961,7 +16996,7 @@
|
|
|
16961
16996
|
style: {
|
|
16962
16997
|
color: 'red'
|
|
16963
16998
|
}
|
|
16964
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
16999
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.customercart) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16965
17000
|
className: "col-lg-12 p-0 mb-1"
|
|
16966
17001
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16967
17002
|
className: "row m-0 w-100"
|
|
@@ -16973,7 +17008,7 @@
|
|
|
16973
17008
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
16974
17009
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16975
17010
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-left '
|
|
16976
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17011
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "- ", langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16977
17012
|
className: "col-lg-12 p-0"
|
|
16978
17013
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16979
17014
|
className: "row m-0 w-100"
|
|
@@ -16981,11 +17016,11 @@
|
|
|
16981
17016
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
16982
17017
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16983
17018
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
16984
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17019
|
+
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16985
17020
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
16986
17021
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16987
17022
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
16988
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17023
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue67 !== void 0 && (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) !== null && _fetchcustomercartQue67 !== void 0 && _fetchcustomercartQue67.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16989
17024
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
16990
17025
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
16991
17026
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -17024,7 +17059,10 @@
|
|
|
17024
17059
|
textTransform: sectionproperties.total_texttransform,
|
|
17025
17060
|
color: sectionproperties.total_color
|
|
17026
17061
|
}
|
|
17027
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17062
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.totalpriceafterdiscount).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.totalpriceafterdiscount).toLocaleString() : sectionproperties.removedecimals == 'Separated With Comma' ? Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.totalpriceafterdiscount).toLocaleString('en-US', {
|
|
17063
|
+
minimumFractionDigits: 0,
|
|
17064
|
+
maximumFractionDigits: 2
|
|
17065
|
+
}) : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17028
17066
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
17029
17067
|
style: {
|
|
17030
17068
|
background: '#eee',
|
|
@@ -17071,7 +17109,7 @@
|
|
|
17071
17109
|
width: "20px",
|
|
17072
17110
|
height: "20px",
|
|
17073
17111
|
duration: "1s"
|
|
17074
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17112
|
+
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest : ''), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
17075
17113
|
className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
|
|
17076
17114
|
onClick: function onClick() {
|
|
17077
17115
|
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
@@ -17085,7 +17123,7 @@
|
|
|
17085
17123
|
width: "20px",
|
|
17086
17124
|
height: "20px",
|
|
17087
17125
|
duration: "1s"
|
|
17088
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17126
|
+
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : '')), authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17089
17127
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
17090
17128
|
style: {
|
|
17091
17129
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -17131,7 +17169,7 @@
|
|
|
17131
17169
|
t_b: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_b,
|
|
17132
17170
|
t_m: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_m,
|
|
17133
17171
|
lang: langdetect,
|
|
17134
|
-
amount: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17172
|
+
amount: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.customercart) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.totalprice
|
|
17135
17173
|
}), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17136
17174
|
className: "col-lg-12 p-0"
|
|
17137
17175
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -17263,7 +17301,7 @@
|
|
|
17263
17301
|
}, "*")), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17264
17302
|
type: 'text',
|
|
17265
17303
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17266
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17304
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.name,
|
|
17267
17305
|
onChange: function onChange(event) {
|
|
17268
17306
|
cartinfoupdater('name', event.target.value);
|
|
17269
17307
|
},
|
|
@@ -17283,7 +17321,7 @@
|
|
|
17283
17321
|
}, "*")), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17284
17322
|
type: 'text',
|
|
17285
17323
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17286
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17324
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.mobile,
|
|
17287
17325
|
onChange: function onChange(event) {
|
|
17288
17326
|
var onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
|
|
17289
17327
|
cartinfoupdater('mobile', onlyNumbers);
|
|
@@ -17313,7 +17351,7 @@
|
|
|
17313
17351
|
}, langdetect == 'en' ? 'Optional' : 'اختياري'), ' '), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17314
17352
|
type: 'text',
|
|
17315
17353
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17316
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17354
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : _fetchcustomercartQue77.customercart.email,
|
|
17317
17355
|
onChange: function onChange(event) {
|
|
17318
17356
|
cartinfoupdater('email', event.target.value);
|
|
17319
17357
|
},
|
|
@@ -17366,8 +17404,8 @@
|
|
|
17366
17404
|
return option.id;
|
|
17367
17405
|
},
|
|
17368
17406
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
17369
|
-
var
|
|
17370
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17407
|
+
var _fetchcustomercartQue78;
|
|
17408
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.countryid);
|
|
17371
17409
|
}),
|
|
17372
17410
|
onChange: function onChange(option) {
|
|
17373
17411
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2x({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -17421,12 +17459,12 @@
|
|
|
17421
17459
|
return option.id;
|
|
17422
17460
|
},
|
|
17423
17461
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
17424
|
-
var
|
|
17425
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17462
|
+
var _fetchcustomercartQue79;
|
|
17463
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.customercart.stateid);
|
|
17426
17464
|
}),
|
|
17427
17465
|
onChange: function onChange(option) {
|
|
17428
|
-
var
|
|
17429
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17466
|
+
var _fetchcustomercartQue80;
|
|
17467
|
+
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.countryid.length) != 0) {
|
|
17430
17468
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2x({}, FetchTabexStatesPayloadobjContext);
|
|
17431
17469
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
17432
17470
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -17478,13 +17516,13 @@
|
|
|
17478
17516
|
return option.id;
|
|
17479
17517
|
},
|
|
17480
17518
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
17481
|
-
var
|
|
17482
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17519
|
+
var _fetchcustomercartQue81;
|
|
17520
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.customercart.cityid);
|
|
17483
17521
|
}),
|
|
17484
17522
|
onChange: function onChange(option) {
|
|
17485
|
-
var
|
|
17523
|
+
var _fetchcustomercartQue82;
|
|
17486
17524
|
cartinfoupdater('cityid', option.id);
|
|
17487
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17525
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue82 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.customercart) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.zonenotes) != null) {
|
|
17488
17526
|
setshowpopup(true);
|
|
17489
17527
|
}
|
|
17490
17528
|
},
|
|
@@ -17503,7 +17541,7 @@
|
|
|
17503
17541
|
}, "*")), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
17504
17542
|
type: 'text',
|
|
17505
17543
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17506
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17544
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : _fetchcustomercartQue83.customercart.address,
|
|
17507
17545
|
onChange: function onChange(event) {
|
|
17508
17546
|
cartinfoupdater('address', event.target.value);
|
|
17509
17547
|
},
|
|
@@ -17518,7 +17556,7 @@
|
|
|
17518
17556
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
17519
17557
|
type: 'text',
|
|
17520
17558
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17521
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17559
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.notes,
|
|
17522
17560
|
onChange: function onChange(event) {
|
|
17523
17561
|
cartinfoupdater('notes', event.target.value);
|
|
17524
17562
|
},
|
|
@@ -17533,7 +17571,7 @@
|
|
|
17533
17571
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17534
17572
|
type: 'number',
|
|
17535
17573
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17536
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17574
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 || (_fetchcustomercartQue85 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue85 === void 0 || (_fetchcustomercartQue85 = _fetchcustomercartQue85.customercart) === null || _fetchcustomercartQue85 === void 0 ? void 0 : _fetchcustomercartQue85.aff_code,
|
|
17537
17575
|
onChange: function onChange(event) {
|
|
17538
17576
|
cartinfoupdater('aff_code', event.target.value);
|
|
17539
17577
|
},
|
|
@@ -17567,7 +17605,7 @@
|
|
|
17567
17605
|
onChange: function onChange(event) {
|
|
17568
17606
|
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
17569
17607
|
},
|
|
17570
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17608
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue86 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue86 === void 0 || (_fetchcustomercartQue86 = _fetchcustomercartQue86.data) === null || _fetchcustomercartQue86 === void 0 || (_fetchcustomercartQue86 = _fetchcustomercartQue86.customercart) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.shippingmethod_id
|
|
17571
17609
|
}, /*#__PURE__*/React__default["default"].createElement("option", {
|
|
17572
17610
|
value: null
|
|
17573
17611
|
}, langdetect == 'en' ? 'Choose Shipping Method' : 'الشحن اخنر طريقة'), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
|
|
@@ -17862,10 +17900,10 @@
|
|
|
17862
17900
|
id: 'codcheckbox',
|
|
17863
17901
|
type: "checkbox",
|
|
17864
17902
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
17865
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17903
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 || (_fetchcustomercartQue87 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : _fetchcustomercartQue87.customercart.paymentmethod) == 'cod' ? true : false,
|
|
17866
17904
|
onChange: function onChange() {
|
|
17867
|
-
var
|
|
17868
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17905
|
+
var _fetchcustomercartQue88;
|
|
17906
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue88 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue88 === void 0 || (_fetchcustomercartQue88 = _fetchcustomercartQue88.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.paymentmethod) != 'cod') {
|
|
17869
17907
|
cartinfoupdater('paymentmethod', 'cod');
|
|
17870
17908
|
setinstapaychosen(false);
|
|
17871
17909
|
setcashchosen(true);
|
|
@@ -17908,10 +17946,10 @@
|
|
|
17908
17946
|
id: 'codcheckbox',
|
|
17909
17947
|
type: "checkbox",
|
|
17910
17948
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
17911
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17949
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 || (_fetchcustomercartQue89 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : _fetchcustomercartQue89.customercart.paymentmethod) == 'instapay' ? true : false,
|
|
17912
17950
|
onChange: function onChange() {
|
|
17913
|
-
var
|
|
17914
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17951
|
+
var _fetchcustomercartQue90;
|
|
17952
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue90 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue90 === void 0 || (_fetchcustomercartQue90 = _fetchcustomercartQue90.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.paymentmethod) != 'instapay') {
|
|
17915
17953
|
cartinfoupdater('paymentmethod', 'instapay');
|
|
17916
17954
|
setinstapaychosen(true);
|
|
17917
17955
|
// alert('1');
|
|
@@ -17939,10 +17977,10 @@
|
|
|
17939
17977
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17940
17978
|
type: "checkbox",
|
|
17941
17979
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
17942
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17980
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 || (_fetchcustomercartQue91 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue91 === void 0 ? void 0 : _fetchcustomercartQue91.customercart.paymentmethod) == 'cardondelivery' ? true : false,
|
|
17943
17981
|
onChange: function onChange() {
|
|
17944
|
-
var
|
|
17945
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17982
|
+
var _fetchcustomercartQue92;
|
|
17983
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue92 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue92 === void 0 || (_fetchcustomercartQue92 = _fetchcustomercartQue92.data) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.customercart.paymentmethod) != 'cardondelivery') {
|
|
17946
17984
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
17947
17985
|
setinstapaychosen(false);
|
|
17948
17986
|
setcashchosen(false);
|
|
@@ -17973,10 +18011,10 @@
|
|
|
17973
18011
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17974
18012
|
type: "checkbox",
|
|
17975
18013
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
17976
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18014
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 || (_fetchcustomercartQue93 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue93 === void 0 ? void 0 : _fetchcustomercartQue93.customercart.paymentmethod) == 'onlinepayment' ? true : false,
|
|
17977
18015
|
onChange: function onChange() {
|
|
17978
|
-
var
|
|
17979
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18016
|
+
var _fetchcustomercartQue94;
|
|
18017
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue94 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue94 === void 0 || (_fetchcustomercartQue94 = _fetchcustomercartQue94.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.customercart.paymentmethod) != 'onlinepayment') {
|
|
17980
18018
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
17981
18019
|
setinstapaychosen(false);
|
|
17982
18020
|
setcashchosen(false);
|
|
@@ -18006,10 +18044,10 @@
|
|
|
18006
18044
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18007
18045
|
type: "checkbox",
|
|
18008
18046
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18009
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18047
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 || (_fetchcustomercartQue95 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : _fetchcustomercartQue95.customercart.paymentmethod) == 'valU' ? true : false,
|
|
18010
18048
|
onChange: function onChange() {
|
|
18011
|
-
var
|
|
18012
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18049
|
+
var _fetchcustomercartQue96;
|
|
18050
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue96 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.data) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.customercart.paymentmethod) != 'valU') {
|
|
18013
18051
|
cartinfoupdater('paymentmethod', 'valU');
|
|
18014
18052
|
setinstapaychosen(false);
|
|
18015
18053
|
}
|
|
@@ -18028,10 +18066,10 @@
|
|
|
18028
18066
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18029
18067
|
type: "checkbox",
|
|
18030
18068
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18031
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18069
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : _fetchcustomercartQue97.customercart.paymentmethod) == 'Mylo' ? true : false,
|
|
18032
18070
|
onChange: function onChange() {
|
|
18033
|
-
var
|
|
18034
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18071
|
+
var _fetchcustomercartQue98;
|
|
18072
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue98 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.customercart.paymentmethod) != 'Mylo') {
|
|
18035
18073
|
cartinfoupdater('paymentmethod', 'Mylo');
|
|
18036
18074
|
setinstapaychosen(false);
|
|
18037
18075
|
}
|
|
@@ -18050,10 +18088,10 @@
|
|
|
18050
18088
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18051
18089
|
type: "checkbox",
|
|
18052
18090
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18053
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18091
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 || (_fetchcustomercartQue99 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : _fetchcustomercartQue99.customercart.paymentmethod) == 'mobilewallet' ? true : false,
|
|
18054
18092
|
onChange: function onChange() {
|
|
18055
|
-
var
|
|
18056
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18093
|
+
var _fetchcustomercartQue100;
|
|
18094
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue100 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.data) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.customercart.paymentmethod) != 'mobilewallet') {
|
|
18057
18095
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
18058
18096
|
setinstapaychosen(false);
|
|
18059
18097
|
}
|
|
@@ -18072,10 +18110,10 @@
|
|
|
18072
18110
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18073
18111
|
type: "checkbox",
|
|
18074
18112
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18075
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18113
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 || (_fetchcustomercartQue101 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue101 === void 0 || (_fetchcustomercartQue101 = _fetchcustomercartQue101.customercart) === null || _fetchcustomercartQue101 === void 0 ? void 0 : _fetchcustomercartQue101.paymentmethod) == 'forsa' ? true : false,
|
|
18076
18114
|
onChange: function onChange() {
|
|
18077
|
-
var
|
|
18078
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18115
|
+
var _fetchcustomercartQue102;
|
|
18116
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue102 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue102 === void 0 || (_fetchcustomercartQue102 = _fetchcustomercartQue102.data) === null || _fetchcustomercartQue102 === void 0 || (_fetchcustomercartQue102 = _fetchcustomercartQue102.customercart) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.paymentmethod) != 'forsa') {
|
|
18079
18117
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
18080
18118
|
setinstapaychosen(false);
|
|
18081
18119
|
}
|
|
@@ -18094,10 +18132,10 @@
|
|
|
18094
18132
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18095
18133
|
type: "checkbox",
|
|
18096
18134
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18097
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18135
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.customercart) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.paymentmethod) == 'Souhoola' ? true : false,
|
|
18098
18136
|
onChange: function onChange() {
|
|
18099
|
-
var
|
|
18100
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18137
|
+
var _fetchcustomercartQue104;
|
|
18138
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.customercart) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.paymentmethod) != 'Souhoola') {
|
|
18101
18139
|
cartinfoupdater('paymentmethod', 'Souhoola');
|
|
18102
18140
|
setinstapaychosen(false);
|
|
18103
18141
|
}
|
|
@@ -18116,10 +18154,10 @@
|
|
|
18116
18154
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18117
18155
|
type: "checkbox",
|
|
18118
18156
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18119
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18157
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.customercart) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.paymentmethod) == 'paypal' ? true : false,
|
|
18120
18158
|
onChange: function onChange() {
|
|
18121
|
-
var
|
|
18122
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18159
|
+
var _fetchcustomercartQue106;
|
|
18160
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.customercart) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.paymentmethod) != 'paypal') {
|
|
18123
18161
|
cartinfoupdater('paymentmethod', 'paypal');
|
|
18124
18162
|
setinstapaychosen(false);
|
|
18125
18163
|
}
|
|
@@ -18138,10 +18176,10 @@
|
|
|
18138
18176
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18139
18177
|
type: "checkbox",
|
|
18140
18178
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18141
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18179
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue107 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue107 === void 0 || (_fetchcustomercartQue107 = _fetchcustomercartQue107.data) === null || _fetchcustomercartQue107 === void 0 || (_fetchcustomercartQue107 = _fetchcustomercartQue107.customercart) === null || _fetchcustomercartQue107 === void 0 ? void 0 : _fetchcustomercartQue107.paymentmethod) == 'bankinstallments' ? true : false,
|
|
18142
18180
|
onChange: function onChange() {
|
|
18143
|
-
var
|
|
18144
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18181
|
+
var _fetchcustomercartQue108;
|
|
18182
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue108 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue108 === void 0 || (_fetchcustomercartQue108 = _fetchcustomercartQue108.data) === null || _fetchcustomercartQue108 === void 0 || (_fetchcustomercartQue108 = _fetchcustomercartQue108.customercart) === null || _fetchcustomercartQue108 === void 0 ? void 0 : _fetchcustomercartQue108.paymentmethod) != 'bankinstallments') {
|
|
18145
18183
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
18146
18184
|
setinstapaychosen(false);
|
|
18147
18185
|
}
|
|
@@ -18160,10 +18198,10 @@
|
|
|
18160
18198
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18161
18199
|
type: "checkbox",
|
|
18162
18200
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18163
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18201
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue109 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue109 === void 0 || (_fetchcustomercartQue109 = _fetchcustomercartQue109.data) === null || _fetchcustomercartQue109 === void 0 || (_fetchcustomercartQue109 = _fetchcustomercartQue109.customercart) === null || _fetchcustomercartQue109 === void 0 ? void 0 : _fetchcustomercartQue109.paymentmethod) == 'Aman' ? true : false,
|
|
18164
18202
|
onChange: function onChange() {
|
|
18165
|
-
var
|
|
18166
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18203
|
+
var _fetchcustomercartQue110;
|
|
18204
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue110 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue110 === void 0 || (_fetchcustomercartQue110 = _fetchcustomercartQue110.data) === null || _fetchcustomercartQue110 === void 0 || (_fetchcustomercartQue110 = _fetchcustomercartQue110.customercart) === null || _fetchcustomercartQue110 === void 0 ? void 0 : _fetchcustomercartQue110.paymentmethod) != 'Aman') {
|
|
18167
18205
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
18168
18206
|
setinstapaychosen(false);
|
|
18169
18207
|
}
|
|
@@ -18182,10 +18220,10 @@
|
|
|
18182
18220
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18183
18221
|
type: "checkbox",
|
|
18184
18222
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18185
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18223
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue111 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue111 === void 0 || (_fetchcustomercartQue111 = _fetchcustomercartQue111.data) === null || _fetchcustomercartQue111 === void 0 || (_fetchcustomercartQue111 = _fetchcustomercartQue111.customercart) === null || _fetchcustomercartQue111 === void 0 ? void 0 : _fetchcustomercartQue111.paymentmethod) == 'Tamara' ? true : false,
|
|
18186
18224
|
onChange: function onChange() {
|
|
18187
|
-
var
|
|
18188
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18225
|
+
var _fetchcustomercartQue112;
|
|
18226
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue112 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue112 === void 0 || (_fetchcustomercartQue112 = _fetchcustomercartQue112.data) === null || _fetchcustomercartQue112 === void 0 || (_fetchcustomercartQue112 = _fetchcustomercartQue112.customercart) === null || _fetchcustomercartQue112 === void 0 ? void 0 : _fetchcustomercartQue112.paymentmethod) != 'Tamara') {
|
|
18189
18227
|
cartinfoupdater('paymentmethod', 'Tamara');
|
|
18190
18228
|
setinstapaychosen(false);
|
|
18191
18229
|
}
|
|
@@ -18204,10 +18242,10 @@
|
|
|
18204
18242
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
18205
18243
|
type: "checkbox",
|
|
18206
18244
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18207
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18245
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue113 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue113 === void 0 || (_fetchcustomercartQue113 = _fetchcustomercartQue113.data) === null || _fetchcustomercartQue113 === void 0 ? void 0 : _fetchcustomercartQue113.customercart.paymentmethod) == 'Tabby' ? true : false,
|
|
18208
18246
|
onChange: function onChange() {
|
|
18209
|
-
var
|
|
18210
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18247
|
+
var _fetchcustomercartQue114;
|
|
18248
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue114 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue114 === void 0 || (_fetchcustomercartQue114 = _fetchcustomercartQue114.data) === null || _fetchcustomercartQue114 === void 0 ? void 0 : _fetchcustomercartQue114.customercart.paymentmethod) != 'Tabby') {
|
|
18211
18249
|
cartinfoupdater('paymentmethod', 'Tabby');
|
|
18212
18250
|
setinstapaychosen(false);
|
|
18213
18251
|
}
|
|
@@ -18245,7 +18283,7 @@
|
|
|
18245
18283
|
color: '#000'
|
|
18246
18284
|
}
|
|
18247
18285
|
// dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar }}
|
|
18248
|
-
}, langdetect == 'en' ? 'To confirm your order, please transfer a 30% deposit of the order value to [number].' : 'لتأكيد الطلب برجاء تحويل 30% deposit من قيمه الطلب على الرقم'))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18286
|
+
}, langdetect == 'en' ? 'To confirm your order, please transfer a 30% deposit of the order value to [number].' : 'لتأكيد الطلب برجاء تحويل 30% deposit من قيمه الطلب على الرقم'))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue115 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue115 === void 0 || (_fetchcustomercartQue115 = _fetchcustomercartQue115.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : _fetchcustomercartQue115.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18249
18287
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
18250
18288
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18251
18289
|
style: {
|
|
@@ -18385,7 +18423,7 @@
|
|
|
18385
18423
|
color: '#000',
|
|
18386
18424
|
textAlign: 'center'
|
|
18387
18425
|
}
|
|
18388
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18426
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue116 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue116 === void 0 || (_fetchcustomercartQue116 = _fetchcustomercartQue116.data) === null || _fetchcustomercartQue116 === void 0 || (_fetchcustomercartQue116 = _fetchcustomercartQue116.customercart) === null || _fetchcustomercartQue116 === void 0 ? void 0 : _fetchcustomercartQue116.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
18389
18427
|
};
|
|
18390
18428
|
|
|
18391
18429
|
function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -20943,7 +20981,7 @@
|
|
|
20943
20981
|
function ownKeys$2q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20944
20982
|
function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20945
20983
|
var CartSlider = function CartSlider(props) {
|
|
20946
|
-
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue1, _fetchcustomercartQue10, _authdetailsContext$i4, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15;
|
|
20984
|
+
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue1, _fetchcustomercartQue10, _authdetailsContext$i4, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16;
|
|
20947
20985
|
var lang = props.actions.lang;
|
|
20948
20986
|
var langdetect = props.actions.langdetect;
|
|
20949
20987
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -21749,7 +21787,13 @@
|
|
|
21749
21787
|
textTransform: sectionproperties.total_texttransform,
|
|
21750
21788
|
color: sectionproperties.total_color
|
|
21751
21789
|
}
|
|
21752
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ?
|
|
21790
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.customercart) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.totalprice).toLocaleString('en-US', {
|
|
21791
|
+
minimumFractionDigits: 0,
|
|
21792
|
+
maximumFractionDigits: 2
|
|
21793
|
+
}) : sectionproperties.removedecimals == 'Separated With Comma' ? Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.totalprice).toLocaleString('en-US', {
|
|
21794
|
+
minimumFractionDigits: 0,
|
|
21795
|
+
maximumFractionDigits: 2
|
|
21796
|
+
}) : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.customercart) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21753
21797
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
21754
21798
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
21755
21799
|
"class": "m-0 p-0",
|
|
@@ -21758,7 +21802,7 @@
|
|
|
21758
21802
|
fontSize: '13px',
|
|
21759
21803
|
fontWeight: 500
|
|
21760
21804
|
}
|
|
21761
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
21805
|
+
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.customercart) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.cartitems) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21762
21806
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
21763
21807
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
21764
21808
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -21779,7 +21823,7 @@
|
|
|
21779
21823
|
t_b: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_b,
|
|
21780
21824
|
t_m: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_m,
|
|
21781
21825
|
lang: langdetect,
|
|
21782
|
-
amount: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
21826
|
+
amount: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue16 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.customercart) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.totalprice,
|
|
21783
21827
|
divid: 'cartslider'
|
|
21784
21828
|
}), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
21785
21829
|
className: " ".concat(cart_cssstyles.checkoutbtn),
|
|
@@ -26509,15 +26553,23 @@
|
|
|
26509
26553
|
cardobj.productmainimage = arrayItem.productinfo.productmainimage;
|
|
26510
26554
|
if (sectionproperties.removedecimals == 'Without Decimals') {
|
|
26511
26555
|
cardobj.defaultprice = parseFloat(Number(arrayItem.productinfo.defaultprice).toFixed(2));
|
|
26512
|
-
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
|
|
26513
|
-
cardobj.defaultprice = Math.floor(arrayItem.productinfo.defaultprice).toLocaleString();
|
|
26556
|
+
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' || sectionproperties.removedecimals == 'Separated With Comma') {
|
|
26557
|
+
// cardobj.defaultprice = Math.floor(arrayItem.productinfo.defaultprice).toLocaleString();
|
|
26558
|
+
cardobj.defaultprice = Number(arrayItem.productinfo.defaultprice).toLocaleString('en-US', {
|
|
26559
|
+
minimumFractionDigits: 0,
|
|
26560
|
+
maximumFractionDigits: 2
|
|
26561
|
+
});
|
|
26514
26562
|
} else {
|
|
26515
26563
|
cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
26516
26564
|
}
|
|
26517
26565
|
if (sectionproperties.removedecimals == 'Without Decimals') {
|
|
26518
26566
|
cardobj.defaultsaleprice = parseFloat(Number(arrayItem.productinfo.defaultsaleprice).toFixed(2));
|
|
26519
|
-
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
|
|
26520
|
-
cardobj.defaultsaleprice = Math.floor(arrayItem.productinfo.defaultsaleprice).toLocaleString();
|
|
26567
|
+
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' || sectionproperties.removedecimals == 'Separated With Comma') {
|
|
26568
|
+
// cardobj.defaultsaleprice = Math.floor(arrayItem.productinfo.defaultsaleprice).toLocaleString();
|
|
26569
|
+
cardobj.defaultsaleprice = Number(arrayItem.productinfo.defaultsaleprice).toLocaleString('en-US', {
|
|
26570
|
+
minimumFractionDigits: 0,
|
|
26571
|
+
maximumFractionDigits: 2
|
|
26572
|
+
});
|
|
26521
26573
|
} else {
|
|
26522
26574
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
26523
26575
|
}
|