tabexseriescomponents 0.0.614 → 0.0.615
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 +134 -138
- package/dist/index.esm.js +134 -138
- package/dist/index.umd.js +134 -138
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10071,7 +10071,7 @@ var Select$3 = /*#__PURE__*/React.lazy(function () {
|
|
|
10071
10071
|
return import('react-select');
|
|
10072
10072
|
});
|
|
10073
10073
|
var Checkout = function Checkout(props) {
|
|
10074
|
-
var _css, _checkoutstyles, _ref,
|
|
10074
|
+
var _css, _checkoutstyles, _ref, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i4, _fetchcustomercartQue82, _authdetailsContext$i5, _fetchcustomercartQue84, _authdetailsContext$i6, _fetchcustomercartQue86, _fetchcustomercartQue88;
|
|
10075
10075
|
var _useState = useState(null),
|
|
10076
10076
|
_useState2 = _slicedToArray(_useState, 2);
|
|
10077
10077
|
_useState2[0];
|
|
@@ -10111,13 +10111,17 @@ var Checkout = function Checkout(props) {
|
|
|
10111
10111
|
insthasaffiliate = _useState8[0],
|
|
10112
10112
|
setinsthasaffiliate = _useState8[1];
|
|
10113
10113
|
var _useState9 = useState(false),
|
|
10114
|
-
_useState10 = _slicedToArray(_useState9, 2)
|
|
10115
|
-
|
|
10116
|
-
|
|
10114
|
+
_useState10 = _slicedToArray(_useState9, 2);
|
|
10115
|
+
_useState10[0];
|
|
10116
|
+
_useState10[1];
|
|
10117
10117
|
var _useState11 = useState(false),
|
|
10118
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
10119
|
-
|
|
10120
|
-
|
|
10118
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
10119
|
+
_useState12[0];
|
|
10120
|
+
_useState12[1];
|
|
10121
|
+
var _useState13 = useState([]),
|
|
10122
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
10123
|
+
shippingmethods = _useState14[0],
|
|
10124
|
+
setshippingmethods = _useState14[1];
|
|
10121
10125
|
useEffect(function () {
|
|
10122
10126
|
var _templatepropcontext$;
|
|
10123
10127
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -10185,26 +10189,46 @@ var Checkout = function Checkout(props) {
|
|
|
10185
10189
|
mutateSuccesscallback: function mutateSuccesscallback() {}
|
|
10186
10190
|
});
|
|
10187
10191
|
}, [authdetailsContext]);
|
|
10192
|
+
useEffect(function () {
|
|
10193
|
+
if (fetchcustomercartQueryContext != undefined && fetchcustomercartQueryContext.data != undefined && fetchcustomercartQueryContext.data.data != undefined && fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart.cityid != undefined && fetchcustomercartQueryContext.data.data.customercart.cityid != null && fetchcustomercartQueryContext.data.data.customercart.cityid != '' && fetchcustomercartQueryContext.data.data.customercart.length != 0) {
|
|
10194
|
+
var _fetchcustomercartQue9;
|
|
10195
|
+
var cityid = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart.cityid;
|
|
10196
|
+
fetchshippingmethods(cityid);
|
|
10197
|
+
}
|
|
10198
|
+
}, [fetchcustomercartQueryContext.data]);
|
|
10199
|
+
var fetchshippingmethods = function fetchshippingmethods(cityid) {
|
|
10200
|
+
GeneralAPIMutationContext.mutate({
|
|
10201
|
+
endpointurl: '/g_shippingmethods',
|
|
10202
|
+
cityid: cityid,
|
|
10203
|
+
mutateSuccesscallback: function mutateSuccesscallback(data) {
|
|
10204
|
+
if (data != undefined && data.data != undefined && data.data.status == true) {
|
|
10205
|
+
setshippingmethods(data.data.data);
|
|
10206
|
+
}
|
|
10207
|
+
}
|
|
10208
|
+
});
|
|
10209
|
+
};
|
|
10188
10210
|
var cartinfoupdater = function cartinfoupdater(key, value) {
|
|
10189
|
-
var
|
|
10211
|
+
var _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20;
|
|
10190
10212
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10191
10213
|
cartarr.data.customercart[key] = value;
|
|
10192
10214
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
10193
10215
|
var payloadobj = {
|
|
10194
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10195
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10196
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10197
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10198
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10199
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10200
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10201
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10202
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10203
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10204
|
-
|
|
10216
|
+
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart.stateid,
|
|
10217
|
+
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.customercart.countryid,
|
|
10218
|
+
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.cityid,
|
|
10219
|
+
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.customercart.address,
|
|
10220
|
+
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.paymentmethod,
|
|
10221
|
+
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.customercart.name,
|
|
10222
|
+
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue16 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.email,
|
|
10223
|
+
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 || (_fetchcustomercartQue17 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : _fetchcustomercartQue17.customercart.mobile,
|
|
10224
|
+
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue18 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue18 === void 0 || (_fetchcustomercartQue18 = _fetchcustomercartQue18.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.notes,
|
|
10225
|
+
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 || (_fetchcustomercartQue19 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : _fetchcustomercartQue19.customercart.aff_code,
|
|
10226
|
+
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue20 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.data) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.customercart.shippingmethod_id
|
|
10205
10227
|
};
|
|
10206
10228
|
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
|
|
10229
|
+
var _fetchcustomercartQue21;
|
|
10207
10230
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
10231
|
+
fetchshippingmethods(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.customercart) === null || _fetchcustomercartQue21 === void 0 ? void 0 : _fetchcustomercartQue21.cityid);
|
|
10208
10232
|
}
|
|
10209
10233
|
};
|
|
10210
10234
|
var usewalletpoints = function usewalletpoints() {
|
|
@@ -10400,7 +10424,7 @@ var Checkout = function Checkout(props) {
|
|
|
10400
10424
|
})), _checkoutstyles);
|
|
10401
10425
|
var addorderfuncrunner = function addorderfuncrunner() {
|
|
10402
10426
|
return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
10403
|
-
var
|
|
10427
|
+
var _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
|
|
10404
10428
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
10405
10429
|
while (1) switch (_context.prev = _context.next) {
|
|
10406
10430
|
case 0:
|
|
@@ -10409,19 +10433,20 @@ var Checkout = function Checkout(props) {
|
|
|
10409
10433
|
// temppayload.endpointurl = '/ChooseState_Country';
|
|
10410
10434
|
GeneralAPIMutationContext.mutate({
|
|
10411
10435
|
endpointurl: '/ChooseState_Country',
|
|
10412
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10413
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10414
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10415
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10416
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10417
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10418
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10419
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10420
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10421
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10436
|
+
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue22 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue22 === void 0 || (_fetchcustomercartQue22 = _fetchcustomercartQue22.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.stateid,
|
|
10437
|
+
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 || (_fetchcustomercartQue23 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : _fetchcustomercartQue23.customercart.countryid,
|
|
10438
|
+
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue24 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue24 === void 0 || (_fetchcustomercartQue24 = _fetchcustomercartQue24.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.cityid,
|
|
10439
|
+
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue25 === void 0 ? void 0 : _fetchcustomercartQue25.customercart.address,
|
|
10440
|
+
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue26 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue26 === void 0 || (_fetchcustomercartQue26 = _fetchcustomercartQue26.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.paymentmethod,
|
|
10441
|
+
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 || (_fetchcustomercartQue27 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : _fetchcustomercartQue27.customercart.name,
|
|
10442
|
+
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.email,
|
|
10443
|
+
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.mobile,
|
|
10444
|
+
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.notes,
|
|
10445
|
+
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.aff_code,
|
|
10446
|
+
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.shippingmethod_id,
|
|
10422
10447
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
10423
10448
|
if (data.data.status) {
|
|
10424
|
-
var
|
|
10449
|
+
var _fetchcustomercartQue33, _fetchcustomercartQue34;
|
|
10425
10450
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10426
10451
|
cartarr.data = data.data.cartresponse;
|
|
10427
10452
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -10429,9 +10454,9 @@ var Checkout = function Checkout(props) {
|
|
|
10429
10454
|
// const cookies = new Cookies();
|
|
10430
10455
|
localStorage.setItem('cdata', data.data.cdata);
|
|
10431
10456
|
}
|
|
10432
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10457
|
+
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.name.length) < 3) {
|
|
10433
10458
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
10434
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10459
|
+
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11) {
|
|
10435
10460
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
10436
10461
|
} else {
|
|
10437
10462
|
AddOrderMutationContext.mutate();
|
|
@@ -10459,7 +10484,7 @@ var Checkout = function Checkout(props) {
|
|
|
10459
10484
|
return isloading;
|
|
10460
10485
|
};
|
|
10461
10486
|
var Mycart = function Mycart() {
|
|
10462
|
-
var
|
|
10487
|
+
var _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60;
|
|
10463
10488
|
return /*#__PURE__*/React.createElement("div", {
|
|
10464
10489
|
className: "row m-0 w-100 mb-md-3"
|
|
10465
10490
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -10484,7 +10509,7 @@ var Checkout = function Checkout(props) {
|
|
|
10484
10509
|
className: "row m-0 w-100"
|
|
10485
10510
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10486
10511
|
className: "col-lg-12 p-0"
|
|
10487
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10512
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue35 === void 0 ? void 0 : _fetchcustomercartQue35.customercart.cartitems.map(function (item, index) {
|
|
10488
10513
|
if (item.product_extrafields != null) {
|
|
10489
10514
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
10490
10515
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
@@ -10607,13 +10632,13 @@ var Checkout = function Checkout(props) {
|
|
|
10607
10632
|
type: "text",
|
|
10608
10633
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10609
10634
|
placeholder: lang.giftcarddicountcode,
|
|
10610
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10635
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.couponname,
|
|
10611
10636
|
onChange: function onChange(event) {
|
|
10612
10637
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10613
10638
|
cartarr.data.customercart.couponname = event.target.value;
|
|
10614
10639
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
10615
10640
|
},
|
|
10616
|
-
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10641
|
+
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue37 !== void 0 && (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) !== null && _fetchcustomercartQue37 !== void 0 && _fetchcustomercartQue37.customercart.couponexists ? true : false,
|
|
10617
10642
|
style: {
|
|
10618
10643
|
boxShadow: 'none'
|
|
10619
10644
|
}
|
|
@@ -10622,14 +10647,14 @@ var Checkout = function Checkout(props) {
|
|
|
10622
10647
|
}, /*#__PURE__*/React.createElement("button", {
|
|
10623
10648
|
className: " ".concat(checkoutstyles.applybtnstyles),
|
|
10624
10649
|
onClick: function onClick() {
|
|
10625
|
-
var
|
|
10626
|
-
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10627
|
-
var
|
|
10650
|
+
var _fetchcustomercartQue38;
|
|
10651
|
+
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue38 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists)) {
|
|
10652
|
+
var _fetchcustomercartQue39, _fetchcustomercartQue40;
|
|
10628
10653
|
var payloadobj = {
|
|
10629
|
-
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10654
|
+
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.customercart.couponname,
|
|
10630
10655
|
functype: 'add'
|
|
10631
10656
|
};
|
|
10632
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10657
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue40 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.data) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.customercart.couponname.length) != 0) {
|
|
10633
10658
|
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
10634
10659
|
} else {
|
|
10635
10660
|
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
@@ -10644,14 +10669,14 @@ var Checkout = function Checkout(props) {
|
|
|
10644
10669
|
disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
|
|
10645
10670
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10646
10671
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
|
|
10647
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10672
|
+
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue41 !== void 0 && (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) !== null && _fetchcustomercartQue41 !== void 0 && _fetchcustomercartQue41.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React.createElement("div", {
|
|
10648
10673
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeInButton, " ").concat(generalstyles.btn_preloader) + ' d-flex align-items-center justify-content-center ' : "".concat(generalstyles.fadeOutButton) + ' align-items-center justify-content-center '
|
|
10649
10674
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
10650
10675
|
color: "#fff",
|
|
10651
10676
|
width: "20px",
|
|
10652
10677
|
height: "20px",
|
|
10653
10678
|
duration: "1s"
|
|
10654
|
-
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10679
|
+
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue42 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.customercart) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.availablewalletbalance) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10655
10680
|
className: "row m-0 w-100"
|
|
10656
10681
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10657
10682
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10661,7 +10686,7 @@ var Checkout = function Checkout(props) {
|
|
|
10661
10686
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10662
10687
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10663
10688
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10664
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10689
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue43 === void 0 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.data) === null || _fetchcustomercartQue43 === void 0 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.customercart) === null || _fetchcustomercartQue43 === void 0 ? void 0 : _fetchcustomercartQue43.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue44 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.customercart) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.usewalletpoints) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
10665
10690
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
10666
10691
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10667
10692
|
style: {
|
|
@@ -10671,7 +10696,7 @@ var Checkout = function Checkout(props) {
|
|
|
10671
10696
|
onClick: function onClick() {
|
|
10672
10697
|
usewalletpoints();
|
|
10673
10698
|
}
|
|
10674
|
-
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10699
|
+
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.customercart) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
10675
10700
|
className: "row m-0 w-100"
|
|
10676
10701
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10677
10702
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
@@ -10693,9 +10718,9 @@ var Checkout = function Checkout(props) {
|
|
|
10693
10718
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10694
10719
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10695
10720
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10696
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10721
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.customercart) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.genpayments) === null || _fetchcustomercartQue47 === void 0 ? void 0 : _fetchcustomercartQue47.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10697
10722
|
className: "row m-0 w-100"
|
|
10698
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10723
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.customercart) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.genpayments) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.map(function (item, index) {
|
|
10699
10724
|
return /*#__PURE__*/React.createElement("div", {
|
|
10700
10725
|
"class": "col-lg-12 p-0"
|
|
10701
10726
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -10715,7 +10740,7 @@ var Checkout = function Checkout(props) {
|
|
|
10715
10740
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
10716
10741
|
}
|
|
10717
10742
|
}, 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 : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React.createElement("span", null, item.value, "%")))));
|
|
10718
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10743
|
+
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.customercart) === null || _fetchcustomercartQue49 === void 0 ? void 0 : _fetchcustomercartQue49.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
10719
10744
|
className: "row m-0 w-100"
|
|
10720
10745
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10721
10746
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10728,7 +10753,7 @@ var Checkout = function Checkout(props) {
|
|
|
10728
10753
|
style: {
|
|
10729
10754
|
color: 'red'
|
|
10730
10755
|
}
|
|
10731
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10756
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.customercart) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10732
10757
|
className: "col-lg-12 p-0 mb-1"
|
|
10733
10758
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10734
10759
|
className: "row m-0 w-100"
|
|
@@ -10740,7 +10765,7 @@ var Checkout = function Checkout(props) {
|
|
|
10740
10765
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10741
10766
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10742
10767
|
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 '
|
|
10743
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10768
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.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 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : _fetchcustomercartQue55.customercart.discountprice) == 0 && /*#__PURE__*/React.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10744
10769
|
className: "col-lg-12 p-0"
|
|
10745
10770
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10746
10771
|
className: "row m-0 w-100"
|
|
@@ -10748,11 +10773,11 @@ var Checkout = function Checkout(props) {
|
|
|
10748
10773
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
10749
10774
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10750
10775
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
10751
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10776
|
+
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
|
|
10752
10777
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10753
10778
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10754
10779
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10755
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10780
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue58 !== void 0 && (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) !== null && _fetchcustomercartQue58 !== void 0 && _fetchcustomercartQue58.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
|
|
10756
10781
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10757
10782
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10758
10783
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -10791,7 +10816,7 @@ var Checkout = function Checkout(props) {
|
|
|
10791
10816
|
textTransform: sectionproperties.total_texttransform,
|
|
10792
10817
|
color: sectionproperties.total_color
|
|
10793
10818
|
}
|
|
10794
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10819
|
+
}, 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 ? void 0 : _fetchcustomercartQue59.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10795
10820
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
10796
10821
|
style: {
|
|
10797
10822
|
background: '#eee',
|
|
@@ -10826,7 +10851,7 @@ var Checkout = function Checkout(props) {
|
|
|
10826
10851
|
width: "20px",
|
|
10827
10852
|
height: "20px",
|
|
10828
10853
|
duration: "1s"
|
|
10829
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10854
|
+
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.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.loggedin == false && sectionproperties.loginbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10830
10855
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
10831
10856
|
style: {
|
|
10832
10857
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -10993,7 +11018,7 @@ var Checkout = function Checkout(props) {
|
|
|
10993
11018
|
}, lang.name), /*#__PURE__*/React.createElement("input", {
|
|
10994
11019
|
type: 'text',
|
|
10995
11020
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10996
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11021
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.name,
|
|
10997
11022
|
onChange: function onChange(event) {
|
|
10998
11023
|
cartinfoupdater('name', event.target.value);
|
|
10999
11024
|
},
|
|
@@ -11008,7 +11033,7 @@ var Checkout = function Checkout(props) {
|
|
|
11008
11033
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
|
|
11009
11034
|
type: 'text',
|
|
11010
11035
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11011
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11036
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.mobile,
|
|
11012
11037
|
onChange: function onChange(event) {
|
|
11013
11038
|
cartinfoupdater('mobile', event.target.value);
|
|
11014
11039
|
},
|
|
@@ -11023,7 +11048,7 @@ var Checkout = function Checkout(props) {
|
|
|
11023
11048
|
}, lang.email), /*#__PURE__*/React.createElement("input", {
|
|
11024
11049
|
type: 'text',
|
|
11025
11050
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11026
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11051
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.email,
|
|
11027
11052
|
onChange: function onChange(event) {
|
|
11028
11053
|
cartinfoupdater('email', event.target.value);
|
|
11029
11054
|
},
|
|
@@ -11067,8 +11092,8 @@ var Checkout = function Checkout(props) {
|
|
|
11067
11092
|
return option.id;
|
|
11068
11093
|
},
|
|
11069
11094
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
11070
|
-
var
|
|
11071
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11095
|
+
var _fetchcustomercartQue64;
|
|
11096
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.countryid);
|
|
11072
11097
|
}),
|
|
11073
11098
|
onChange: function onChange(option) {
|
|
11074
11099
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -11113,12 +11138,12 @@ var Checkout = function Checkout(props) {
|
|
|
11113
11138
|
return option.id;
|
|
11114
11139
|
},
|
|
11115
11140
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
11116
|
-
var
|
|
11117
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11141
|
+
var _fetchcustomercartQue65;
|
|
11142
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.stateid);
|
|
11118
11143
|
}),
|
|
11119
11144
|
onChange: function onChange(option) {
|
|
11120
|
-
var
|
|
11121
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11145
|
+
var _fetchcustomercartQue66;
|
|
11146
|
+
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.countryid.length) != 0) {
|
|
11122
11147
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
11123
11148
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11124
11149
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -11161,8 +11186,8 @@ var Checkout = function Checkout(props) {
|
|
|
11161
11186
|
return option.id;
|
|
11162
11187
|
},
|
|
11163
11188
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
11164
|
-
var
|
|
11165
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11189
|
+
var _fetchcustomercartQue67;
|
|
11190
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.cityid);
|
|
11166
11191
|
}),
|
|
11167
11192
|
onChange: function onChange(option) {
|
|
11168
11193
|
cartinfoupdater('cityid', option.id);
|
|
@@ -11177,7 +11202,7 @@ var Checkout = function Checkout(props) {
|
|
|
11177
11202
|
}, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
11178
11203
|
type: 'text',
|
|
11179
11204
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11180
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11205
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.address,
|
|
11181
11206
|
onChange: function onChange(event) {
|
|
11182
11207
|
cartinfoupdater('address', event.target.value);
|
|
11183
11208
|
},
|
|
@@ -11192,7 +11217,7 @@ var Checkout = function Checkout(props) {
|
|
|
11192
11217
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
11193
11218
|
type: 'text',
|
|
11194
11219
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11195
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11220
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.notes,
|
|
11196
11221
|
onChange: function onChange(event) {
|
|
11197
11222
|
cartinfoupdater('notes', event.target.value);
|
|
11198
11223
|
},
|
|
@@ -11207,7 +11232,7 @@ var Checkout = function Checkout(props) {
|
|
|
11207
11232
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
|
|
11208
11233
|
type: 'number',
|
|
11209
11234
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11210
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11235
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.customercart) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.aff_code,
|
|
11211
11236
|
onChange: function onChange(event) {
|
|
11212
11237
|
cartinfoupdater('aff_code', event.target.value);
|
|
11213
11238
|
},
|
|
@@ -11215,7 +11240,7 @@ var Checkout = function Checkout(props) {
|
|
|
11215
11240
|
resize: 'none',
|
|
11216
11241
|
boxShadow: 'none'
|
|
11217
11242
|
}
|
|
11218
|
-
}))))), sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11243
|
+
}))))), shippingmethods.length != 0 && sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11219
11244
|
className: "col-lg-12 p-0 w-100"
|
|
11220
11245
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11221
11246
|
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
@@ -11229,50 +11254,21 @@ var Checkout = function Checkout(props) {
|
|
|
11229
11254
|
className: "mt-2 mb-2"
|
|
11230
11255
|
})), /*#__PURE__*/React.createElement("div", {
|
|
11231
11256
|
className: "row m-0 w-100 mb-3 pl-3 pr-3"
|
|
11232
|
-
}, /*#__PURE__*/React.createElement("
|
|
11233
|
-
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
11234
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
11235
|
-
className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
|
|
11236
|
-
"for": "codcheckbox"
|
|
11237
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
11238
|
-
id: 'codcheckbox',
|
|
11239
|
-
type: "checkbox",
|
|
11240
|
-
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11241
|
-
checked: land == true ? true : false,
|
|
11242
|
-
onChange: function onChange() {
|
|
11243
|
-
setland(true);
|
|
11244
|
-
setair(false);
|
|
11245
|
-
}
|
|
11246
|
-
}), /*#__PURE__*/React.createElement("svg", {
|
|
11247
|
-
viewBox: "0 0 21 21",
|
|
11248
|
-
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11249
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
11250
|
-
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
11251
|
-
})), /*#__PURE__*/React.createElement("p", {
|
|
11252
|
-
className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
|
|
11257
|
+
}, /*#__PURE__*/React.createElement("select", {
|
|
11253
11258
|
style: {
|
|
11254
|
-
|
|
11255
|
-
}
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
}, /*#__PURE__*/React.createElement("
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
}
|
|
11268
|
-
}), /*#__PURE__*/React.createElement("svg", {
|
|
11269
|
-
viewBox: "0 0 21 21",
|
|
11270
|
-
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11271
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
11272
|
-
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
11273
|
-
})), /*#__PURE__*/React.createElement("p", {
|
|
11274
|
-
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11275
|
-
}, " ", langdetect == 'en' ? 'Air Shipping' : 'شحن جوي')))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11259
|
+
width: '100%'
|
|
11260
|
+
},
|
|
11261
|
+
onChange: function onChange(event) {
|
|
11262
|
+
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
11263
|
+
},
|
|
11264
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.customercart) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.shippingmethod_id
|
|
11265
|
+
}, /*#__PURE__*/React.createElement("option", {
|
|
11266
|
+
value: null
|
|
11267
|
+
}, "Choose Shipping Method"), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
|
|
11268
|
+
return /*#__PURE__*/React.createElement("option", {
|
|
11269
|
+
value: item.id
|
|
11270
|
+
}, item.name_en);
|
|
11271
|
+
}))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11276
11272
|
className: "col-lg-12 p-0 w-100"
|
|
11277
11273
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11278
11274
|
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
@@ -11295,10 +11291,10 @@ var Checkout = function Checkout(props) {
|
|
|
11295
11291
|
id: 'codcheckbox',
|
|
11296
11292
|
type: "checkbox",
|
|
11297
11293
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11298
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11294
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.paymentmethod) == 'cod' ? true : false,
|
|
11299
11295
|
onChange: function onChange() {
|
|
11300
|
-
var
|
|
11301
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11296
|
+
var _fetchcustomercartQue73;
|
|
11297
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.paymentmethod) != 'cod') {
|
|
11302
11298
|
cartinfoupdater('paymentmethod', 'cod');
|
|
11303
11299
|
}
|
|
11304
11300
|
}
|
|
@@ -11319,10 +11315,10 @@ var Checkout = function Checkout(props) {
|
|
|
11319
11315
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11320
11316
|
type: "checkbox",
|
|
11321
11317
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11322
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11318
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.paymentmethod) == 'cardondelivery' ? true : false,
|
|
11323
11319
|
onChange: function onChange() {
|
|
11324
|
-
var
|
|
11325
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11320
|
+
var _fetchcustomercartQue75;
|
|
11321
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.paymentmethod) != 'cardondelivery') {
|
|
11326
11322
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
11327
11323
|
}
|
|
11328
11324
|
}
|
|
@@ -11340,10 +11336,10 @@ var Checkout = function Checkout(props) {
|
|
|
11340
11336
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11341
11337
|
type: "checkbox",
|
|
11342
11338
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11343
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11339
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.paymentmethod) == 'onlinepayment' ? true : false,
|
|
11344
11340
|
onChange: function onChange() {
|
|
11345
|
-
var
|
|
11346
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11341
|
+
var _fetchcustomercartQue77;
|
|
11342
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : _fetchcustomercartQue77.customercart.paymentmethod) != 'onlinepayment') {
|
|
11347
11343
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
11348
11344
|
}
|
|
11349
11345
|
}
|
|
@@ -11361,10 +11357,10 @@ var Checkout = function Checkout(props) {
|
|
|
11361
11357
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11362
11358
|
type: "checkbox",
|
|
11363
11359
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11364
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11360
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.paymentmethod) == 'valU' ? true : false,
|
|
11365
11361
|
onChange: function onChange() {
|
|
11366
|
-
var
|
|
11367
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11362
|
+
var _fetchcustomercartQue79;
|
|
11363
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.customercart.paymentmethod) != 'valU') {
|
|
11368
11364
|
cartinfoupdater('paymentmethod', 'valU');
|
|
11369
11365
|
}
|
|
11370
11366
|
}
|
|
@@ -11382,10 +11378,10 @@ var Checkout = function Checkout(props) {
|
|
|
11382
11378
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11383
11379
|
type: "checkbox",
|
|
11384
11380
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11385
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11381
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.paymentmethod) == 'mobilewallet' ? true : false,
|
|
11386
11382
|
onChange: function onChange() {
|
|
11387
|
-
var
|
|
11388
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11383
|
+
var _fetchcustomercartQue81;
|
|
11384
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.customercart.paymentmethod) != 'mobilewallet') {
|
|
11389
11385
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
11390
11386
|
}
|
|
11391
11387
|
}
|
|
@@ -11403,10 +11399,10 @@ var Checkout = function Checkout(props) {
|
|
|
11403
11399
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11404
11400
|
type: "checkbox",
|
|
11405
11401
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11406
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11402
|
+
checked: (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.paymentmethod) == 'forsa' ? true : false,
|
|
11407
11403
|
onChange: function onChange() {
|
|
11408
|
-
var
|
|
11409
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11404
|
+
var _fetchcustomercartQue83;
|
|
11405
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.customercart) === null || _fetchcustomercartQue83 === void 0 ? void 0 : _fetchcustomercartQue83.paymentmethod) != 'forsa') {
|
|
11410
11406
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
11411
11407
|
}
|
|
11412
11408
|
}
|
|
@@ -11424,10 +11420,10 @@ var Checkout = function Checkout(props) {
|
|
|
11424
11420
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11425
11421
|
type: "checkbox",
|
|
11426
11422
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11427
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11423
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.customercart) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.paymentmethod) == 'bankinstallments' ? true : false,
|
|
11428
11424
|
onChange: function onChange() {
|
|
11429
|
-
var
|
|
11430
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11425
|
+
var _fetchcustomercartQue85;
|
|
11426
|
+
if ((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.paymentmethod) != 'bankinstallments') {
|
|
11431
11427
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
11432
11428
|
}
|
|
11433
11429
|
}
|
|
@@ -11445,10 +11441,10 @@ var Checkout = function Checkout(props) {
|
|
|
11445
11441
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11446
11442
|
type: "checkbox",
|
|
11447
11443
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11448
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11444
|
+
checked: (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.paymentmethod) == 'Aman' ? true : false,
|
|
11449
11445
|
onChange: function onChange() {
|
|
11450
|
-
var
|
|
11451
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11446
|
+
var _fetchcustomercartQue87;
|
|
11447
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 || (_fetchcustomercartQue87 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue87 === void 0 || (_fetchcustomercartQue87 = _fetchcustomercartQue87.customercart) === null || _fetchcustomercartQue87 === void 0 ? void 0 : _fetchcustomercartQue87.paymentmethod) != 'Aman') {
|
|
11452
11448
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
11453
11449
|
}
|
|
11454
11450
|
}
|
|
@@ -11459,7 +11455,7 @@ var Checkout = function Checkout(props) {
|
|
|
11459
11455
|
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
11460
11456
|
})), /*#__PURE__*/React.createElement("p", {
|
|
11461
11457
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11462
|
-
}, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11458
|
+
}, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue88 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue88 === void 0 || (_fetchcustomercartQue88 = _fetchcustomercartQue88.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
|
|
11463
11459
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
11464
11460
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11465
11461
|
style: {
|