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.esm.js
CHANGED
|
@@ -3102,6 +3102,11 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
setdefaultpricing(price);
|
|
3104
3104
|
}, [variantindexcompleted]);
|
|
3105
|
+
var toNumber = function toNumber(value) {
|
|
3106
|
+
if (value == null || value === '') return 0;
|
|
3107
|
+
var number = Number(String(value).replace(/,/g, ''));
|
|
3108
|
+
return isNaN(number) ? 0 : number;
|
|
3109
|
+
};
|
|
3105
3110
|
var SaleCounterPill = function SaleCounterPill() {
|
|
3106
3111
|
var _fetchProductInfoQuer2, _fetchProductInfoQuer3;
|
|
3107
3112
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -3123,7 +3128,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
3123
3128
|
color: sectionproperties.counterValueColor,
|
|
3124
3129
|
fontWeight: sectionproperties.counterValueFontWeight
|
|
3125
3130
|
}
|
|
3126
|
-
},
|
|
3131
|
+
}, 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.createElement("div", {
|
|
3127
3132
|
style: {
|
|
3128
3133
|
background: sectionproperties.pillbgcolor,
|
|
3129
3134
|
width: 'fit-content',
|
|
@@ -11610,7 +11615,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
11610
11615
|
if (sectionproperties.removedecimals == 'Without Decimals') {
|
|
11611
11616
|
return parseFloat(Number(price).toFixed(2));
|
|
11612
11617
|
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
|
|
11613
|
-
return Math.floor(price).toLocaleString();
|
|
11618
|
+
// return Math.floor(price).toLocaleString();
|
|
11619
|
+
return Number(price).toLocaleString('en-US', {
|
|
11620
|
+
minimumFractionDigits: 0,
|
|
11621
|
+
maximumFractionDigits: 2
|
|
11622
|
+
});
|
|
11623
|
+
} else if (sectionproperties.removedecimals == 'Separated With Comma') {
|
|
11624
|
+
return Number(price).toLocaleString('en-US', {
|
|
11625
|
+
minimumFractionDigits: 0,
|
|
11626
|
+
maximumFractionDigits: 2
|
|
11627
|
+
});
|
|
11614
11628
|
} else {
|
|
11615
11629
|
return price;
|
|
11616
11630
|
}
|
|
@@ -16200,7 +16214,7 @@ styleInject(css_248z$G);
|
|
|
16200
16214
|
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; }
|
|
16201
16215
|
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(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; }
|
|
16202
16216
|
var Checkout = function Checkout(props) {
|
|
16203
|
-
var _fetchTabexCountriesQ2, _css,
|
|
16217
|
+
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;
|
|
16204
16218
|
var _useState = useState(null),
|
|
16205
16219
|
_useState2 = _slicedToArray(_useState, 2);
|
|
16206
16220
|
_useState2[0];
|
|
@@ -16803,7 +16817,7 @@ var Checkout = function Checkout(props) {
|
|
|
16803
16817
|
return isloading;
|
|
16804
16818
|
};
|
|
16805
16819
|
var Mycart = function Mycart() {
|
|
16806
|
-
var _fetchcustomercartQue39, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _authdetailsContext$i8, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55,
|
|
16820
|
+
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;
|
|
16807
16821
|
return /*#__PURE__*/React.createElement("div", {
|
|
16808
16822
|
className: "row m-0 w-100 mb-md-3"
|
|
16809
16823
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16942,33 +16956,51 @@ var Checkout = function Checkout(props) {
|
|
|
16942
16956
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16943
16957
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16944
16958
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
|
|
16945
|
-
}, 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() :
|
|
16959
|
+
}, 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', {
|
|
16960
|
+
minimumFractionDigits: 0,
|
|
16961
|
+
maximumFractionDigits: 2
|
|
16962
|
+
}) : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React.createElement("div", {
|
|
16946
16963
|
className: "row m-0 w-100 d-flex flex-column justify-content-end"
|
|
16947
16964
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16948
16965
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16949
16966
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16950
16967
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
|
|
16951
|
-
}, 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() :
|
|
16968
|
+
}, 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', {
|
|
16969
|
+
minimumFractionDigits: 0,
|
|
16970
|
+
maximumFractionDigits: 2
|
|
16971
|
+
}) : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("div", {
|
|
16952
16972
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16953
16973
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16954
16974
|
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 '
|
|
16955
|
-
}, 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() :
|
|
16975
|
+
}, 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', {
|
|
16976
|
+
minimumFractionDigits: 0,
|
|
16977
|
+
maximumFractionDigits: 2
|
|
16978
|
+
}) : parseFloat(item.productinfo.defaultprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))), item.productinfo.hasvariants == 1 && /*#__PURE__*/React.createElement("div", {
|
|
16956
16979
|
className: "row m-0 w-100 d-flex flex-column justify-content-end"
|
|
16957
16980
|
}, item.productinfo.variantinfo.hassale == 0 && /*#__PURE__*/React.createElement("div", {
|
|
16958
16981
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16959
16982
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16960
16983
|
className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
|
|
16961
|
-
}, 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() :
|
|
16984
|
+
}, 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', {
|
|
16985
|
+
minimumFractionDigits: 0,
|
|
16986
|
+
maximumFractionDigits: 2
|
|
16987
|
+
}) : parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2))), item.productinfo.variantinfo.hassale == 1 && /*#__PURE__*/React.createElement("div", {
|
|
16962
16988
|
className: "row m-0 w-100 d-flex flex-column justify-content-end"
|
|
16963
16989
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16964
16990
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16965
16991
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16966
16992
|
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 '
|
|
16967
|
-
}, 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() :
|
|
16993
|
+
}, 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', {
|
|
16994
|
+
minimumFractionDigits: 0,
|
|
16995
|
+
maximumFractionDigits: 2
|
|
16996
|
+
}) : parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("div", {
|
|
16968
16997
|
className: "col-lg-12 p-0 d-flex justify-content-end"
|
|
16969
16998
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16970
16999
|
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 '
|
|
16971
|
-
}, 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() :
|
|
17000
|
+
}, 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', {
|
|
17001
|
+
minimumFractionDigits: 0,
|
|
17002
|
+
maximumFractionDigits: 2
|
|
17003
|
+
}) : parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))))));
|
|
16972
17004
|
}
|
|
16973
17005
|
}), /*#__PURE__*/React.createElement("div", {
|
|
16974
17006
|
"class": "".concat(checkoutstyles.innersection) + ' row m-0 w-100 p-3 '
|
|
@@ -17072,10 +17104,13 @@ var Checkout = function Checkout(props) {
|
|
|
17072
17104
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
17073
17105
|
}, /*#__PURE__*/React.createElement("p", {
|
|
17074
17106
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
17075
|
-
}, 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() :
|
|
17107
|
+
}, 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', {
|
|
17108
|
+
minimumFractionDigits: 0,
|
|
17109
|
+
maximumFractionDigits: 2
|
|
17110
|
+
}) : 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.createElement("div", {
|
|
17076
17111
|
className: "row m-0 w-100"
|
|
17077
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17078
|
-
var
|
|
17112
|
+
}, 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) {
|
|
17113
|
+
var _fetchcustomercartQue57;
|
|
17079
17114
|
return /*#__PURE__*/React.createElement("div", {
|
|
17080
17115
|
"class": "col-lg-12 p-0"
|
|
17081
17116
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17094,8 +17129,8 @@ var Checkout = function Checkout(props) {
|
|
|
17094
17129
|
style: {
|
|
17095
17130
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
17096
17131
|
}
|
|
17097
|
-
}, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.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.createElement("span", null, item.value, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', parseFloat((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17098
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17132
|
+
}, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.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.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 : '', ")")))));
|
|
17133
|
+
}))), (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.createElement("div", {
|
|
17099
17134
|
className: "row m-0 w-100"
|
|
17100
17135
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17101
17136
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -17108,7 +17143,7 @@ var Checkout = function Checkout(props) {
|
|
|
17108
17143
|
style: {
|
|
17109
17144
|
color: 'red'
|
|
17110
17145
|
}
|
|
17111
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17146
|
+
}, 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.createElement("div", {
|
|
17112
17147
|
className: "col-lg-12 p-0 mb-1"
|
|
17113
17148
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17114
17149
|
className: "row m-0 w-100"
|
|
@@ -17120,7 +17155,7 @@ var Checkout = function Checkout(props) {
|
|
|
17120
17155
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
17121
17156
|
}, /*#__PURE__*/React.createElement("p", {
|
|
17122
17157
|
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 '
|
|
17123
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17158
|
+
}, (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.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.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
17124
17159
|
className: "col-lg-12 p-0"
|
|
17125
17160
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17126
17161
|
className: "row m-0 w-100"
|
|
@@ -17128,11 +17163,11 @@ var Checkout = function Checkout(props) {
|
|
|
17128
17163
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
17129
17164
|
}, /*#__PURE__*/React.createElement("p", {
|
|
17130
17165
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
17131
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17166
|
+
}, 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.createElement("div", {
|
|
17132
17167
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
17133
17168
|
}, /*#__PURE__*/React.createElement("p", {
|
|
17134
17169
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
17135
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17170
|
+
}, 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.createElement("div", {
|
|
17136
17171
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
17137
17172
|
}, /*#__PURE__*/React.createElement("p", {
|
|
17138
17173
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -17171,7 +17206,10 @@ var Checkout = function Checkout(props) {
|
|
|
17171
17206
|
textTransform: sectionproperties.total_texttransform,
|
|
17172
17207
|
color: sectionproperties.total_color
|
|
17173
17208
|
}
|
|
17174
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17209
|
+
}, 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', {
|
|
17210
|
+
minimumFractionDigits: 0,
|
|
17211
|
+
maximumFractionDigits: 2
|
|
17212
|
+
}) : 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.createElement("div", {
|
|
17175
17213
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
17176
17214
|
style: {
|
|
17177
17215
|
background: '#eee',
|
|
@@ -17218,7 +17256,7 @@ var Checkout = function Checkout(props) {
|
|
|
17218
17256
|
width: "20px",
|
|
17219
17257
|
height: "20px",
|
|
17220
17258
|
duration: "1s"
|
|
17221
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17259
|
+
}), !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.createElement("button", {
|
|
17222
17260
|
className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
|
|
17223
17261
|
onClick: function onClick() {
|
|
17224
17262
|
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
@@ -17232,7 +17270,7 @@ var Checkout = function Checkout(props) {
|
|
|
17232
17270
|
width: "20px",
|
|
17233
17271
|
height: "20px",
|
|
17234
17272
|
duration: "1s"
|
|
17235
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17273
|
+
}), !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.createElement("div", {
|
|
17236
17274
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
17237
17275
|
style: {
|
|
17238
17276
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -17278,7 +17316,7 @@ var Checkout = function Checkout(props) {
|
|
|
17278
17316
|
t_b: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_b,
|
|
17279
17317
|
t_m: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_m,
|
|
17280
17318
|
lang: langdetect,
|
|
17281
|
-
amount: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17319
|
+
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
|
|
17282
17320
|
}), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
|
|
17283
17321
|
className: "col-lg-12 p-0"
|
|
17284
17322
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17410,7 +17448,7 @@ var Checkout = function Checkout(props) {
|
|
|
17410
17448
|
}, "*")), /*#__PURE__*/React.createElement("input", {
|
|
17411
17449
|
type: 'text',
|
|
17412
17450
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17413
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17451
|
+
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,
|
|
17414
17452
|
onChange: function onChange(event) {
|
|
17415
17453
|
cartinfoupdater('name', event.target.value);
|
|
17416
17454
|
},
|
|
@@ -17430,7 +17468,7 @@ var Checkout = function Checkout(props) {
|
|
|
17430
17468
|
}, "*")), /*#__PURE__*/React.createElement("input", {
|
|
17431
17469
|
type: 'text',
|
|
17432
17470
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17433
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17471
|
+
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,
|
|
17434
17472
|
onChange: function onChange(event) {
|
|
17435
17473
|
var onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
|
|
17436
17474
|
cartinfoupdater('mobile', onlyNumbers);
|
|
@@ -17460,7 +17498,7 @@ var Checkout = function Checkout(props) {
|
|
|
17460
17498
|
}, langdetect == 'en' ? 'Optional' : 'اختياري'), ' '), /*#__PURE__*/React.createElement("input", {
|
|
17461
17499
|
type: 'text',
|
|
17462
17500
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17463
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17501
|
+
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,
|
|
17464
17502
|
onChange: function onChange(event) {
|
|
17465
17503
|
cartinfoupdater('email', event.target.value);
|
|
17466
17504
|
},
|
|
@@ -17513,8 +17551,8 @@ var Checkout = function Checkout(props) {
|
|
|
17513
17551
|
return option.id;
|
|
17514
17552
|
},
|
|
17515
17553
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
17516
|
-
var
|
|
17517
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17554
|
+
var _fetchcustomercartQue78;
|
|
17555
|
+
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);
|
|
17518
17556
|
}),
|
|
17519
17557
|
onChange: function onChange(option) {
|
|
17520
17558
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2x({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -17568,12 +17606,12 @@ var Checkout = function Checkout(props) {
|
|
|
17568
17606
|
return option.id;
|
|
17569
17607
|
},
|
|
17570
17608
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
17571
|
-
var
|
|
17572
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17609
|
+
var _fetchcustomercartQue79;
|
|
17610
|
+
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);
|
|
17573
17611
|
}),
|
|
17574
17612
|
onChange: function onChange(option) {
|
|
17575
|
-
var
|
|
17576
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17613
|
+
var _fetchcustomercartQue80;
|
|
17614
|
+
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) {
|
|
17577
17615
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2x({}, FetchTabexStatesPayloadobjContext);
|
|
17578
17616
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
17579
17617
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -17625,13 +17663,13 @@ var Checkout = function Checkout(props) {
|
|
|
17625
17663
|
return option.id;
|
|
17626
17664
|
},
|
|
17627
17665
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
17628
|
-
var
|
|
17629
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17666
|
+
var _fetchcustomercartQue81;
|
|
17667
|
+
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);
|
|
17630
17668
|
}),
|
|
17631
17669
|
onChange: function onChange(option) {
|
|
17632
|
-
var
|
|
17670
|
+
var _fetchcustomercartQue82;
|
|
17633
17671
|
cartinfoupdater('cityid', option.id);
|
|
17634
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17672
|
+
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) {
|
|
17635
17673
|
setshowpopup(true);
|
|
17636
17674
|
}
|
|
17637
17675
|
},
|
|
@@ -17650,7 +17688,7 @@ var Checkout = function Checkout(props) {
|
|
|
17650
17688
|
}, "*")), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
17651
17689
|
type: 'text',
|
|
17652
17690
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17653
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17691
|
+
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,
|
|
17654
17692
|
onChange: function onChange(event) {
|
|
17655
17693
|
cartinfoupdater('address', event.target.value);
|
|
17656
17694
|
},
|
|
@@ -17665,7 +17703,7 @@ var Checkout = function Checkout(props) {
|
|
|
17665
17703
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
17666
17704
|
type: 'text',
|
|
17667
17705
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17668
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17706
|
+
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,
|
|
17669
17707
|
onChange: function onChange(event) {
|
|
17670
17708
|
cartinfoupdater('notes', event.target.value);
|
|
17671
17709
|
},
|
|
@@ -17680,7 +17718,7 @@ var Checkout = function Checkout(props) {
|
|
|
17680
17718
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
|
|
17681
17719
|
type: 'number',
|
|
17682
17720
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
17683
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17721
|
+
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,
|
|
17684
17722
|
onChange: function onChange(event) {
|
|
17685
17723
|
cartinfoupdater('aff_code', event.target.value);
|
|
17686
17724
|
},
|
|
@@ -17714,7 +17752,7 @@ var Checkout = function Checkout(props) {
|
|
|
17714
17752
|
onChange: function onChange(event) {
|
|
17715
17753
|
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
17716
17754
|
},
|
|
17717
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
17755
|
+
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
|
|
17718
17756
|
}, /*#__PURE__*/React.createElement("option", {
|
|
17719
17757
|
value: null
|
|
17720
17758
|
}, langdetect == 'en' ? 'Choose Shipping Method' : 'الشحن اخنر طريقة'), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
|
|
@@ -18009,10 +18047,10 @@ var Checkout = function Checkout(props) {
|
|
|
18009
18047
|
id: 'codcheckbox',
|
|
18010
18048
|
type: "checkbox",
|
|
18011
18049
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18012
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18050
|
+
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,
|
|
18013
18051
|
onChange: function onChange() {
|
|
18014
|
-
var
|
|
18015
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18052
|
+
var _fetchcustomercartQue88;
|
|
18053
|
+
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') {
|
|
18016
18054
|
cartinfoupdater('paymentmethod', 'cod');
|
|
18017
18055
|
setinstapaychosen(false);
|
|
18018
18056
|
setcashchosen(true);
|
|
@@ -18055,10 +18093,10 @@ var Checkout = function Checkout(props) {
|
|
|
18055
18093
|
id: 'codcheckbox',
|
|
18056
18094
|
type: "checkbox",
|
|
18057
18095
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18058
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18096
|
+
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,
|
|
18059
18097
|
onChange: function onChange() {
|
|
18060
|
-
var
|
|
18061
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18098
|
+
var _fetchcustomercartQue90;
|
|
18099
|
+
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') {
|
|
18062
18100
|
cartinfoupdater('paymentmethod', 'instapay');
|
|
18063
18101
|
setinstapaychosen(true);
|
|
18064
18102
|
// alert('1');
|
|
@@ -18086,10 +18124,10 @@ var Checkout = function Checkout(props) {
|
|
|
18086
18124
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18087
18125
|
type: "checkbox",
|
|
18088
18126
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18089
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18127
|
+
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,
|
|
18090
18128
|
onChange: function onChange() {
|
|
18091
|
-
var
|
|
18092
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18129
|
+
var _fetchcustomercartQue92;
|
|
18130
|
+
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') {
|
|
18093
18131
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
18094
18132
|
setinstapaychosen(false);
|
|
18095
18133
|
setcashchosen(false);
|
|
@@ -18120,10 +18158,10 @@ var Checkout = function Checkout(props) {
|
|
|
18120
18158
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18121
18159
|
type: "checkbox",
|
|
18122
18160
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18123
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18161
|
+
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,
|
|
18124
18162
|
onChange: function onChange() {
|
|
18125
|
-
var
|
|
18126
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18163
|
+
var _fetchcustomercartQue94;
|
|
18164
|
+
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') {
|
|
18127
18165
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
18128
18166
|
setinstapaychosen(false);
|
|
18129
18167
|
setcashchosen(false);
|
|
@@ -18153,10 +18191,10 @@ var Checkout = function Checkout(props) {
|
|
|
18153
18191
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18154
18192
|
type: "checkbox",
|
|
18155
18193
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18156
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18194
|
+
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,
|
|
18157
18195
|
onChange: function onChange() {
|
|
18158
|
-
var
|
|
18159
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18196
|
+
var _fetchcustomercartQue96;
|
|
18197
|
+
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') {
|
|
18160
18198
|
cartinfoupdater('paymentmethod', 'valU');
|
|
18161
18199
|
setinstapaychosen(false);
|
|
18162
18200
|
}
|
|
@@ -18175,10 +18213,10 @@ var Checkout = function Checkout(props) {
|
|
|
18175
18213
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18176
18214
|
type: "checkbox",
|
|
18177
18215
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18178
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18216
|
+
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,
|
|
18179
18217
|
onChange: function onChange() {
|
|
18180
|
-
var
|
|
18181
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18218
|
+
var _fetchcustomercartQue98;
|
|
18219
|
+
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') {
|
|
18182
18220
|
cartinfoupdater('paymentmethod', 'Mylo');
|
|
18183
18221
|
setinstapaychosen(false);
|
|
18184
18222
|
}
|
|
@@ -18197,10 +18235,10 @@ var Checkout = function Checkout(props) {
|
|
|
18197
18235
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18198
18236
|
type: "checkbox",
|
|
18199
18237
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18200
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18238
|
+
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,
|
|
18201
18239
|
onChange: function onChange() {
|
|
18202
|
-
var
|
|
18203
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18240
|
+
var _fetchcustomercartQue100;
|
|
18241
|
+
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') {
|
|
18204
18242
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
18205
18243
|
setinstapaychosen(false);
|
|
18206
18244
|
}
|
|
@@ -18219,10 +18257,10 @@ var Checkout = function Checkout(props) {
|
|
|
18219
18257
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18220
18258
|
type: "checkbox",
|
|
18221
18259
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18222
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18260
|
+
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,
|
|
18223
18261
|
onChange: function onChange() {
|
|
18224
|
-
var
|
|
18225
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18262
|
+
var _fetchcustomercartQue102;
|
|
18263
|
+
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') {
|
|
18226
18264
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
18227
18265
|
setinstapaychosen(false);
|
|
18228
18266
|
}
|
|
@@ -18241,10 +18279,10 @@ var Checkout = function Checkout(props) {
|
|
|
18241
18279
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18242
18280
|
type: "checkbox",
|
|
18243
18281
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18244
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18282
|
+
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,
|
|
18245
18283
|
onChange: function onChange() {
|
|
18246
|
-
var
|
|
18247
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18284
|
+
var _fetchcustomercartQue104;
|
|
18285
|
+
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') {
|
|
18248
18286
|
cartinfoupdater('paymentmethod', 'Souhoola');
|
|
18249
18287
|
setinstapaychosen(false);
|
|
18250
18288
|
}
|
|
@@ -18263,10 +18301,10 @@ var Checkout = function Checkout(props) {
|
|
|
18263
18301
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18264
18302
|
type: "checkbox",
|
|
18265
18303
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18266
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18304
|
+
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,
|
|
18267
18305
|
onChange: function onChange() {
|
|
18268
|
-
var
|
|
18269
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18306
|
+
var _fetchcustomercartQue106;
|
|
18307
|
+
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') {
|
|
18270
18308
|
cartinfoupdater('paymentmethod', 'paypal');
|
|
18271
18309
|
setinstapaychosen(false);
|
|
18272
18310
|
}
|
|
@@ -18285,10 +18323,10 @@ var Checkout = function Checkout(props) {
|
|
|
18285
18323
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18286
18324
|
type: "checkbox",
|
|
18287
18325
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18288
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18326
|
+
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,
|
|
18289
18327
|
onChange: function onChange() {
|
|
18290
|
-
var
|
|
18291
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18328
|
+
var _fetchcustomercartQue108;
|
|
18329
|
+
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') {
|
|
18292
18330
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
18293
18331
|
setinstapaychosen(false);
|
|
18294
18332
|
}
|
|
@@ -18307,10 +18345,10 @@ var Checkout = function Checkout(props) {
|
|
|
18307
18345
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18308
18346
|
type: "checkbox",
|
|
18309
18347
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18310
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18348
|
+
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,
|
|
18311
18349
|
onChange: function onChange() {
|
|
18312
|
-
var
|
|
18313
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18350
|
+
var _fetchcustomercartQue110;
|
|
18351
|
+
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') {
|
|
18314
18352
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
18315
18353
|
setinstapaychosen(false);
|
|
18316
18354
|
}
|
|
@@ -18329,10 +18367,10 @@ var Checkout = function Checkout(props) {
|
|
|
18329
18367
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18330
18368
|
type: "checkbox",
|
|
18331
18369
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18332
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18370
|
+
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,
|
|
18333
18371
|
onChange: function onChange() {
|
|
18334
|
-
var
|
|
18335
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18372
|
+
var _fetchcustomercartQue112;
|
|
18373
|
+
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') {
|
|
18336
18374
|
cartinfoupdater('paymentmethod', 'Tamara');
|
|
18337
18375
|
setinstapaychosen(false);
|
|
18338
18376
|
}
|
|
@@ -18351,10 +18389,10 @@ var Checkout = function Checkout(props) {
|
|
|
18351
18389
|
}, /*#__PURE__*/React.createElement("input", {
|
|
18352
18390
|
type: "checkbox",
|
|
18353
18391
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
18354
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18392
|
+
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,
|
|
18355
18393
|
onChange: function onChange() {
|
|
18356
|
-
var
|
|
18357
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18394
|
+
var _fetchcustomercartQue114;
|
|
18395
|
+
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') {
|
|
18358
18396
|
cartinfoupdater('paymentmethod', 'Tabby');
|
|
18359
18397
|
setinstapaychosen(false);
|
|
18360
18398
|
}
|
|
@@ -18392,7 +18430,7 @@ var Checkout = function Checkout(props) {
|
|
|
18392
18430
|
color: '#000'
|
|
18393
18431
|
}
|
|
18394
18432
|
// dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar }}
|
|
18395
|
-
}, langdetect == 'en' ? 'To confirm your order, please transfer a 30% deposit of the order value to [number].' : 'لتأكيد الطلب برجاء تحويل 30% deposit من قيمه الطلب على الرقم'))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18433
|
+
}, 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.createElement("div", {
|
|
18396
18434
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
18397
18435
|
}, /*#__PURE__*/React.createElement("div", {
|
|
18398
18436
|
style: {
|
|
@@ -18532,7 +18570,7 @@ var Checkout = function Checkout(props) {
|
|
|
18532
18570
|
color: '#000',
|
|
18533
18571
|
textAlign: 'center'
|
|
18534
18572
|
}
|
|
18535
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18573
|
+
}, 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.createElement(Modal.Footer, null)));
|
|
18536
18574
|
};
|
|
18537
18575
|
|
|
18538
18576
|
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; }
|
|
@@ -21090,7 +21128,7 @@ styleInject(css_248z$E);
|
|
|
21090
21128
|
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; }
|
|
21091
21129
|
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(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; }
|
|
21092
21130
|
var CartSlider = function CartSlider(props) {
|
|
21093
|
-
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue1, _fetchcustomercartQue10, _authdetailsContext$i4, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15;
|
|
21131
|
+
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue1, _fetchcustomercartQue10, _authdetailsContext$i4, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16;
|
|
21094
21132
|
var lang = props.actions.lang;
|
|
21095
21133
|
var langdetect = props.actions.langdetect;
|
|
21096
21134
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -21896,7 +21934,13 @@ var CartSlider = function CartSlider(props) {
|
|
|
21896
21934
|
textTransform: sectionproperties.total_texttransform,
|
|
21897
21935
|
color: sectionproperties.total_color
|
|
21898
21936
|
}
|
|
21899
|
-
}, 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' ?
|
|
21937
|
+
}, 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', {
|
|
21938
|
+
minimumFractionDigits: 0,
|
|
21939
|
+
maximumFractionDigits: 2
|
|
21940
|
+
}) : 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', {
|
|
21941
|
+
minimumFractionDigits: 0,
|
|
21942
|
+
maximumFractionDigits: 2
|
|
21943
|
+
}) : 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.createElement("div", {
|
|
21900
21944
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
21901
21945
|
}, /*#__PURE__*/React.createElement("p", {
|
|
21902
21946
|
"class": "m-0 p-0",
|
|
@@ -21905,7 +21949,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
21905
21949
|
fontSize: '13px',
|
|
21906
21950
|
fontWeight: 500
|
|
21907
21951
|
}
|
|
21908
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
21952
|
+
}, 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.createElement("div", {
|
|
21909
21953
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
21910
21954
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
|
|
21911
21955
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -21926,7 +21970,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
21926
21970
|
t_b: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_b,
|
|
21927
21971
|
t_m: authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.t_m,
|
|
21928
21972
|
lang: langdetect,
|
|
21929
|
-
amount: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
21973
|
+
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,
|
|
21930
21974
|
divid: 'cartslider'
|
|
21931
21975
|
}), /*#__PURE__*/React.createElement("button", {
|
|
21932
21976
|
className: " ".concat(cart_cssstyles.checkoutbtn),
|
|
@@ -26656,15 +26700,23 @@ var CardsSection = function CardsSection(props) {
|
|
|
26656
26700
|
cardobj.productmainimage = arrayItem.productinfo.productmainimage;
|
|
26657
26701
|
if (sectionproperties.removedecimals == 'Without Decimals') {
|
|
26658
26702
|
cardobj.defaultprice = parseFloat(Number(arrayItem.productinfo.defaultprice).toFixed(2));
|
|
26659
|
-
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
|
|
26660
|
-
cardobj.defaultprice = Math.floor(arrayItem.productinfo.defaultprice).toLocaleString();
|
|
26703
|
+
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' || sectionproperties.removedecimals == 'Separated With Comma') {
|
|
26704
|
+
// cardobj.defaultprice = Math.floor(arrayItem.productinfo.defaultprice).toLocaleString();
|
|
26705
|
+
cardobj.defaultprice = Number(arrayItem.productinfo.defaultprice).toLocaleString('en-US', {
|
|
26706
|
+
minimumFractionDigits: 0,
|
|
26707
|
+
maximumFractionDigits: 2
|
|
26708
|
+
});
|
|
26661
26709
|
} else {
|
|
26662
26710
|
cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
26663
26711
|
}
|
|
26664
26712
|
if (sectionproperties.removedecimals == 'Without Decimals') {
|
|
26665
26713
|
cardobj.defaultsaleprice = parseFloat(Number(arrayItem.productinfo.defaultsaleprice).toFixed(2));
|
|
26666
|
-
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
|
|
26667
|
-
cardobj.defaultsaleprice = Math.floor(arrayItem.productinfo.defaultsaleprice).toLocaleString();
|
|
26714
|
+
} else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' || sectionproperties.removedecimals == 'Separated With Comma') {
|
|
26715
|
+
// cardobj.defaultsaleprice = Math.floor(arrayItem.productinfo.defaultsaleprice).toLocaleString();
|
|
26716
|
+
cardobj.defaultsaleprice = Number(arrayItem.productinfo.defaultsaleprice).toLocaleString('en-US', {
|
|
26717
|
+
minimumFractionDigits: 0,
|
|
26718
|
+
maximumFractionDigits: 2
|
|
26719
|
+
});
|
|
26668
26720
|
} else {
|
|
26669
26721
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
26670
26722
|
}
|