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.cjs.js
CHANGED
|
@@ -10120,7 +10120,7 @@ var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
|
10120
10120
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
10121
10121
|
});
|
|
10122
10122
|
var Checkout = function Checkout(props) {
|
|
10123
|
-
var _css, _checkoutstyles, _ref,
|
|
10123
|
+
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;
|
|
10124
10124
|
var _useState = React.useState(null),
|
|
10125
10125
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
10126
10126
|
_useState2[0];
|
|
@@ -10160,13 +10160,17 @@ var Checkout = function Checkout(props) {
|
|
|
10160
10160
|
insthasaffiliate = _useState8[0],
|
|
10161
10161
|
setinsthasaffiliate = _useState8[1];
|
|
10162
10162
|
var _useState9 = React.useState(false),
|
|
10163
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2)
|
|
10164
|
-
|
|
10165
|
-
|
|
10163
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
10164
|
+
_useState10[0];
|
|
10165
|
+
_useState10[1];
|
|
10166
10166
|
var _useState11 = React.useState(false),
|
|
10167
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
10168
|
-
|
|
10169
|
-
|
|
10167
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
10168
|
+
_useState12[0];
|
|
10169
|
+
_useState12[1];
|
|
10170
|
+
var _useState13 = React.useState([]),
|
|
10171
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
10172
|
+
shippingmethods = _useState14[0],
|
|
10173
|
+
setshippingmethods = _useState14[1];
|
|
10170
10174
|
React.useEffect(function () {
|
|
10171
10175
|
var _templatepropcontext$;
|
|
10172
10176
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -10234,26 +10238,46 @@ var Checkout = function Checkout(props) {
|
|
|
10234
10238
|
mutateSuccesscallback: function mutateSuccesscallback() {}
|
|
10235
10239
|
});
|
|
10236
10240
|
}, [authdetailsContext]);
|
|
10241
|
+
React.useEffect(function () {
|
|
10242
|
+
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) {
|
|
10243
|
+
var _fetchcustomercartQue9;
|
|
10244
|
+
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;
|
|
10245
|
+
fetchshippingmethods(cityid);
|
|
10246
|
+
}
|
|
10247
|
+
}, [fetchcustomercartQueryContext.data]);
|
|
10248
|
+
var fetchshippingmethods = function fetchshippingmethods(cityid) {
|
|
10249
|
+
GeneralAPIMutationContext.mutate({
|
|
10250
|
+
endpointurl: '/g_shippingmethods',
|
|
10251
|
+
cityid: cityid,
|
|
10252
|
+
mutateSuccesscallback: function mutateSuccesscallback(data) {
|
|
10253
|
+
if (data != undefined && data.data != undefined && data.data.status == true) {
|
|
10254
|
+
setshippingmethods(data.data.data);
|
|
10255
|
+
}
|
|
10256
|
+
}
|
|
10257
|
+
});
|
|
10258
|
+
};
|
|
10237
10259
|
var cartinfoupdater = function cartinfoupdater(key, value) {
|
|
10238
|
-
var
|
|
10260
|
+
var _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20;
|
|
10239
10261
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10240
10262
|
cartarr.data.customercart[key] = value;
|
|
10241
10263
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
10242
10264
|
var payloadobj = {
|
|
10243
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10244
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10245
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10246
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10247
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10248
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10249
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10250
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10251
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10252
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10253
|
-
|
|
10265
|
+
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,
|
|
10266
|
+
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,
|
|
10267
|
+
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,
|
|
10268
|
+
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,
|
|
10269
|
+
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,
|
|
10270
|
+
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,
|
|
10271
|
+
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,
|
|
10272
|
+
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,
|
|
10273
|
+
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,
|
|
10274
|
+
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,
|
|
10275
|
+
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
|
|
10254
10276
|
};
|
|
10255
10277
|
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
|
|
10278
|
+
var _fetchcustomercartQue21;
|
|
10256
10279
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
10280
|
+
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);
|
|
10257
10281
|
}
|
|
10258
10282
|
};
|
|
10259
10283
|
var usewalletpoints = function usewalletpoints() {
|
|
@@ -10449,7 +10473,7 @@ var Checkout = function Checkout(props) {
|
|
|
10449
10473
|
})), _checkoutstyles);
|
|
10450
10474
|
var addorderfuncrunner = function addorderfuncrunner() {
|
|
10451
10475
|
return (_ref = _ref || _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
|
|
10452
|
-
var
|
|
10476
|
+
var _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
|
|
10453
10477
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
10454
10478
|
while (1) switch (_context.prev = _context.next) {
|
|
10455
10479
|
case 0:
|
|
@@ -10458,19 +10482,20 @@ var Checkout = function Checkout(props) {
|
|
|
10458
10482
|
// temppayload.endpointurl = '/ChooseState_Country';
|
|
10459
10483
|
GeneralAPIMutationContext.mutate({
|
|
10460
10484
|
endpointurl: '/ChooseState_Country',
|
|
10461
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10462
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10463
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10464
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10465
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10466
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10467
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10468
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10469
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10470
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10485
|
+
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,
|
|
10486
|
+
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,
|
|
10487
|
+
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,
|
|
10488
|
+
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,
|
|
10489
|
+
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,
|
|
10490
|
+
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,
|
|
10491
|
+
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,
|
|
10492
|
+
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,
|
|
10493
|
+
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,
|
|
10494
|
+
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,
|
|
10495
|
+
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,
|
|
10471
10496
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
10472
10497
|
if (data.data.status) {
|
|
10473
|
-
var
|
|
10498
|
+
var _fetchcustomercartQue33, _fetchcustomercartQue34;
|
|
10474
10499
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10475
10500
|
cartarr.data = data.data.cartresponse;
|
|
10476
10501
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -10478,9 +10503,9 @@ var Checkout = function Checkout(props) {
|
|
|
10478
10503
|
// const cookies = new Cookies();
|
|
10479
10504
|
localStorage.setItem('cdata', data.data.cdata);
|
|
10480
10505
|
}
|
|
10481
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10506
|
+
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) {
|
|
10482
10507
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
10483
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10508
|
+
} 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) {
|
|
10484
10509
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
10485
10510
|
} else {
|
|
10486
10511
|
AddOrderMutationContext.mutate();
|
|
@@ -10508,7 +10533,7 @@ var Checkout = function Checkout(props) {
|
|
|
10508
10533
|
return isloading;
|
|
10509
10534
|
};
|
|
10510
10535
|
var Mycart = function Mycart() {
|
|
10511
|
-
var
|
|
10536
|
+
var _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60;
|
|
10512
10537
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10513
10538
|
className: "row m-0 w-100 mb-md-3"
|
|
10514
10539
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10533,7 +10558,7 @@ var Checkout = function Checkout(props) {
|
|
|
10533
10558
|
className: "row m-0 w-100"
|
|
10534
10559
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10535
10560
|
className: "col-lg-12 p-0"
|
|
10536
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10561
|
+
}, 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) {
|
|
10537
10562
|
if (item.product_extrafields != null) {
|
|
10538
10563
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
10539
10564
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
@@ -10656,13 +10681,13 @@ var Checkout = function Checkout(props) {
|
|
|
10656
10681
|
type: "text",
|
|
10657
10682
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10658
10683
|
placeholder: lang.giftcarddicountcode,
|
|
10659
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10684
|
+
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,
|
|
10660
10685
|
onChange: function onChange(event) {
|
|
10661
10686
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10662
10687
|
cartarr.data.customercart.couponname = event.target.value;
|
|
10663
10688
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
10664
10689
|
},
|
|
10665
|
-
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10690
|
+
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,
|
|
10666
10691
|
style: {
|
|
10667
10692
|
boxShadow: 'none'
|
|
10668
10693
|
}
|
|
@@ -10671,14 +10696,14 @@ var Checkout = function Checkout(props) {
|
|
|
10671
10696
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10672
10697
|
className: " ".concat(checkoutstyles.applybtnstyles),
|
|
10673
10698
|
onClick: function onClick() {
|
|
10674
|
-
var
|
|
10675
|
-
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10676
|
-
var
|
|
10699
|
+
var _fetchcustomercartQue38;
|
|
10700
|
+
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue38 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists)) {
|
|
10701
|
+
var _fetchcustomercartQue39, _fetchcustomercartQue40;
|
|
10677
10702
|
var payloadobj = {
|
|
10678
|
-
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10703
|
+
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,
|
|
10679
10704
|
functype: 'add'
|
|
10680
10705
|
};
|
|
10681
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10706
|
+
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) {
|
|
10682
10707
|
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
10683
10708
|
} else {
|
|
10684
10709
|
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
@@ -10693,14 +10718,14 @@ var Checkout = function Checkout(props) {
|
|
|
10693
10718
|
disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
|
|
10694
10719
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10695
10720
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
|
|
10696
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10721
|
+
}, 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__default["default"].createElement("div", {
|
|
10697
10722
|
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 '
|
|
10698
10723
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
10699
10724
|
color: "#fff",
|
|
10700
10725
|
width: "20px",
|
|
10701
10726
|
height: "20px",
|
|
10702
10727
|
duration: "1s"
|
|
10703
|
-
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10728
|
+
})))))), (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__default["default"].createElement("div", {
|
|
10704
10729
|
className: "row m-0 w-100"
|
|
10705
10730
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10706
10731
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10710,7 +10735,7 @@ var Checkout = function Checkout(props) {
|
|
|
10710
10735
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10711
10736
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10712
10737
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10713
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10738
|
+
}, 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__default["default"].createElement("div", {
|
|
10714
10739
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
10715
10740
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10716
10741
|
style: {
|
|
@@ -10720,7 +10745,7 @@ var Checkout = function Checkout(props) {
|
|
|
10720
10745
|
onClick: function onClick() {
|
|
10721
10746
|
usewalletpoints();
|
|
10722
10747
|
}
|
|
10723
|
-
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10748
|
+
}, 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__default["default"].createElement("div", {
|
|
10724
10749
|
className: "row m-0 w-100"
|
|
10725
10750
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10726
10751
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
@@ -10742,9 +10767,9 @@ var Checkout = function Checkout(props) {
|
|
|
10742
10767
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10743
10768
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10744
10769
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10745
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10770
|
+
}, 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__default["default"].createElement("div", {
|
|
10746
10771
|
className: "row m-0 w-100"
|
|
10747
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10772
|
+
}, 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) {
|
|
10748
10773
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10749
10774
|
"class": "col-lg-12 p-0"
|
|
10750
10775
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10764,7 +10789,7 @@ var Checkout = function Checkout(props) {
|
|
|
10764
10789
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
10765
10790
|
}
|
|
10766
10791
|
}, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React__default["default"].createElement("span", null, item.value, "%")))));
|
|
10767
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10792
|
+
}))), (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__default["default"].createElement("div", {
|
|
10768
10793
|
className: "row m-0 w-100"
|
|
10769
10794
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10770
10795
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10777,7 +10802,7 @@ var Checkout = function Checkout(props) {
|
|
|
10777
10802
|
style: {
|
|
10778
10803
|
color: 'red'
|
|
10779
10804
|
}
|
|
10780
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10805
|
+
}, 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__default["default"].createElement("div", {
|
|
10781
10806
|
className: "col-lg-12 p-0 mb-1"
|
|
10782
10807
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10783
10808
|
className: "row m-0 w-100"
|
|
@@ -10789,7 +10814,7 @@ var Checkout = function Checkout(props) {
|
|
|
10789
10814
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10790
10815
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10791
10816
|
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 '
|
|
10792
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10817
|
+
}, (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__default["default"].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__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10793
10818
|
className: "col-lg-12 p-0"
|
|
10794
10819
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10795
10820
|
className: "row m-0 w-100"
|
|
@@ -10797,11 +10822,11 @@ var Checkout = function Checkout(props) {
|
|
|
10797
10822
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
10798
10823
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10799
10824
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
10800
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10825
|
+
}, 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__default["default"].createElement("div", {
|
|
10801
10826
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10802
10827
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10803
10828
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10804
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10829
|
+
}, 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__default["default"].createElement("div", {
|
|
10805
10830
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10806
10831
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10807
10832
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -10840,7 +10865,7 @@ var Checkout = function Checkout(props) {
|
|
|
10840
10865
|
textTransform: sectionproperties.total_texttransform,
|
|
10841
10866
|
color: sectionproperties.total_color
|
|
10842
10867
|
}
|
|
10843
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10868
|
+
}, 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__default["default"].createElement("div", {
|
|
10844
10869
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
10845
10870
|
style: {
|
|
10846
10871
|
background: '#eee',
|
|
@@ -10875,7 +10900,7 @@ var Checkout = function Checkout(props) {
|
|
|
10875
10900
|
width: "20px",
|
|
10876
10901
|
height: "20px",
|
|
10877
10902
|
duration: "1s"
|
|
10878
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10903
|
+
}), !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__default["default"].createElement("div", {
|
|
10879
10904
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
10880
10905
|
style: {
|
|
10881
10906
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -11042,7 +11067,7 @@ var Checkout = function Checkout(props) {
|
|
|
11042
11067
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11043
11068
|
type: 'text',
|
|
11044
11069
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11045
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11070
|
+
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,
|
|
11046
11071
|
onChange: function onChange(event) {
|
|
11047
11072
|
cartinfoupdater('name', event.target.value);
|
|
11048
11073
|
},
|
|
@@ -11057,7 +11082,7 @@ var Checkout = function Checkout(props) {
|
|
|
11057
11082
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11058
11083
|
type: 'text',
|
|
11059
11084
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11060
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11085
|
+
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,
|
|
11061
11086
|
onChange: function onChange(event) {
|
|
11062
11087
|
cartinfoupdater('mobile', event.target.value);
|
|
11063
11088
|
},
|
|
@@ -11072,7 +11097,7 @@ var Checkout = function Checkout(props) {
|
|
|
11072
11097
|
}, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11073
11098
|
type: 'text',
|
|
11074
11099
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11075
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11100
|
+
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,
|
|
11076
11101
|
onChange: function onChange(event) {
|
|
11077
11102
|
cartinfoupdater('email', event.target.value);
|
|
11078
11103
|
},
|
|
@@ -11116,8 +11141,8 @@ var Checkout = function Checkout(props) {
|
|
|
11116
11141
|
return option.id;
|
|
11117
11142
|
},
|
|
11118
11143
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
11119
|
-
var
|
|
11120
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11144
|
+
var _fetchcustomercartQue64;
|
|
11145
|
+
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);
|
|
11121
11146
|
}),
|
|
11122
11147
|
onChange: function onChange(option) {
|
|
11123
11148
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -11162,12 +11187,12 @@ var Checkout = function Checkout(props) {
|
|
|
11162
11187
|
return option.id;
|
|
11163
11188
|
},
|
|
11164
11189
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
11165
|
-
var
|
|
11166
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11190
|
+
var _fetchcustomercartQue65;
|
|
11191
|
+
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);
|
|
11167
11192
|
}),
|
|
11168
11193
|
onChange: function onChange(option) {
|
|
11169
|
-
var
|
|
11170
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11194
|
+
var _fetchcustomercartQue66;
|
|
11195
|
+
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) {
|
|
11171
11196
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
11172
11197
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11173
11198
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -11210,8 +11235,8 @@ var Checkout = function Checkout(props) {
|
|
|
11210
11235
|
return option.id;
|
|
11211
11236
|
},
|
|
11212
11237
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
11213
|
-
var
|
|
11214
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11238
|
+
var _fetchcustomercartQue67;
|
|
11239
|
+
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);
|
|
11215
11240
|
}),
|
|
11216
11241
|
onChange: function onChange(option) {
|
|
11217
11242
|
cartinfoupdater('cityid', option.id);
|
|
@@ -11226,7 +11251,7 @@ var Checkout = function Checkout(props) {
|
|
|
11226
11251
|
}, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
11227
11252
|
type: 'text',
|
|
11228
11253
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11229
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11254
|
+
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,
|
|
11230
11255
|
onChange: function onChange(event) {
|
|
11231
11256
|
cartinfoupdater('address', event.target.value);
|
|
11232
11257
|
},
|
|
@@ -11241,7 +11266,7 @@ var Checkout = function Checkout(props) {
|
|
|
11241
11266
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
11242
11267
|
type: 'text',
|
|
11243
11268
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11244
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11269
|
+
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,
|
|
11245
11270
|
onChange: function onChange(event) {
|
|
11246
11271
|
cartinfoupdater('notes', event.target.value);
|
|
11247
11272
|
},
|
|
@@ -11256,7 +11281,7 @@ var Checkout = function Checkout(props) {
|
|
|
11256
11281
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11257
11282
|
type: 'number',
|
|
11258
11283
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11259
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11284
|
+
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,
|
|
11260
11285
|
onChange: function onChange(event) {
|
|
11261
11286
|
cartinfoupdater('aff_code', event.target.value);
|
|
11262
11287
|
},
|
|
@@ -11264,7 +11289,7 @@ var Checkout = function Checkout(props) {
|
|
|
11264
11289
|
resize: 'none',
|
|
11265
11290
|
boxShadow: 'none'
|
|
11266
11291
|
}
|
|
11267
|
-
}))))), sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11292
|
+
}))))), shippingmethods.length != 0 && sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11268
11293
|
className: "col-lg-12 p-0 w-100"
|
|
11269
11294
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11270
11295
|
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
@@ -11278,50 +11303,21 @@ var Checkout = function Checkout(props) {
|
|
|
11278
11303
|
className: "mt-2 mb-2"
|
|
11279
11304
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11280
11305
|
className: "row m-0 w-100 mb-3 pl-3 pr-3"
|
|
11281
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
11282
|
-
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
11283
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
11284
|
-
className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
|
|
11285
|
-
"for": "codcheckbox"
|
|
11286
|
-
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11287
|
-
id: 'codcheckbox',
|
|
11288
|
-
type: "checkbox",
|
|
11289
|
-
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11290
|
-
checked: land == true ? true : false,
|
|
11291
|
-
onChange: function onChange() {
|
|
11292
|
-
setland(true);
|
|
11293
|
-
setair(false);
|
|
11294
|
-
}
|
|
11295
|
-
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11296
|
-
viewBox: "0 0 21 21",
|
|
11297
|
-
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11298
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
11299
|
-
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"
|
|
11300
|
-
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11301
|
-
className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
|
|
11306
|
+
}, /*#__PURE__*/React__default["default"].createElement("select", {
|
|
11302
11307
|
style: {
|
|
11303
|
-
|
|
11304
|
-
}
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
|
|
11308
|
-
|
|
11309
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
}
|
|
11317
|
-
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11318
|
-
viewBox: "0 0 21 21",
|
|
11319
|
-
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11320
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
11321
|
-
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"
|
|
11322
|
-
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11323
|
-
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11324
|
-
}, " ", langdetect == 'en' ? 'Air Shipping' : 'شحن جوي')))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11308
|
+
width: '100%'
|
|
11309
|
+
},
|
|
11310
|
+
onChange: function onChange(event) {
|
|
11311
|
+
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
11312
|
+
},
|
|
11313
|
+
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
|
|
11314
|
+
}, /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11315
|
+
value: null
|
|
11316
|
+
}, "Choose Shipping Method"), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
|
|
11317
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11318
|
+
value: item.id
|
|
11319
|
+
}, item.name_en);
|
|
11320
|
+
}))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11325
11321
|
className: "col-lg-12 p-0 w-100"
|
|
11326
11322
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11327
11323
|
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
@@ -11344,10 +11340,10 @@ var Checkout = function Checkout(props) {
|
|
|
11344
11340
|
id: 'codcheckbox',
|
|
11345
11341
|
type: "checkbox",
|
|
11346
11342
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11347
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11343
|
+
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,
|
|
11348
11344
|
onChange: function onChange() {
|
|
11349
|
-
var
|
|
11350
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11345
|
+
var _fetchcustomercartQue73;
|
|
11346
|
+
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') {
|
|
11351
11347
|
cartinfoupdater('paymentmethod', 'cod');
|
|
11352
11348
|
}
|
|
11353
11349
|
}
|
|
@@ -11368,10 +11364,10 @@ var Checkout = function Checkout(props) {
|
|
|
11368
11364
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11369
11365
|
type: "checkbox",
|
|
11370
11366
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11371
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11367
|
+
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,
|
|
11372
11368
|
onChange: function onChange() {
|
|
11373
|
-
var
|
|
11374
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11369
|
+
var _fetchcustomercartQue75;
|
|
11370
|
+
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') {
|
|
11375
11371
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
11376
11372
|
}
|
|
11377
11373
|
}
|
|
@@ -11389,10 +11385,10 @@ var Checkout = function Checkout(props) {
|
|
|
11389
11385
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11390
11386
|
type: "checkbox",
|
|
11391
11387
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11392
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11388
|
+
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,
|
|
11393
11389
|
onChange: function onChange() {
|
|
11394
|
-
var
|
|
11395
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11390
|
+
var _fetchcustomercartQue77;
|
|
11391
|
+
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') {
|
|
11396
11392
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
11397
11393
|
}
|
|
11398
11394
|
}
|
|
@@ -11410,10 +11406,10 @@ var Checkout = function Checkout(props) {
|
|
|
11410
11406
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11411
11407
|
type: "checkbox",
|
|
11412
11408
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11413
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11409
|
+
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,
|
|
11414
11410
|
onChange: function onChange() {
|
|
11415
|
-
var
|
|
11416
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11411
|
+
var _fetchcustomercartQue79;
|
|
11412
|
+
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') {
|
|
11417
11413
|
cartinfoupdater('paymentmethod', 'valU');
|
|
11418
11414
|
}
|
|
11419
11415
|
}
|
|
@@ -11431,10 +11427,10 @@ var Checkout = function Checkout(props) {
|
|
|
11431
11427
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11432
11428
|
type: "checkbox",
|
|
11433
11429
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11434
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11430
|
+
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,
|
|
11435
11431
|
onChange: function onChange() {
|
|
11436
|
-
var
|
|
11437
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11432
|
+
var _fetchcustomercartQue81;
|
|
11433
|
+
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') {
|
|
11438
11434
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
11439
11435
|
}
|
|
11440
11436
|
}
|
|
@@ -11452,10 +11448,10 @@ var Checkout = function Checkout(props) {
|
|
|
11452
11448
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11453
11449
|
type: "checkbox",
|
|
11454
11450
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11455
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11451
|
+
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,
|
|
11456
11452
|
onChange: function onChange() {
|
|
11457
|
-
var
|
|
11458
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11453
|
+
var _fetchcustomercartQue83;
|
|
11454
|
+
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') {
|
|
11459
11455
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
11460
11456
|
}
|
|
11461
11457
|
}
|
|
@@ -11473,10 +11469,10 @@ var Checkout = function Checkout(props) {
|
|
|
11473
11469
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11474
11470
|
type: "checkbox",
|
|
11475
11471
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11476
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11472
|
+
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,
|
|
11477
11473
|
onChange: function onChange() {
|
|
11478
|
-
var
|
|
11479
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11474
|
+
var _fetchcustomercartQue85;
|
|
11475
|
+
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') {
|
|
11480
11476
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
11481
11477
|
}
|
|
11482
11478
|
}
|
|
@@ -11494,10 +11490,10 @@ var Checkout = function Checkout(props) {
|
|
|
11494
11490
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11495
11491
|
type: "checkbox",
|
|
11496
11492
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11497
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11493
|
+
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,
|
|
11498
11494
|
onChange: function onChange() {
|
|
11499
|
-
var
|
|
11500
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11495
|
+
var _fetchcustomercartQue87;
|
|
11496
|
+
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') {
|
|
11501
11497
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
11502
11498
|
}
|
|
11503
11499
|
}
|
|
@@ -11508,7 +11504,7 @@ var Checkout = function Checkout(props) {
|
|
|
11508
11504
|
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"
|
|
11509
11505
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11510
11506
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11511
|
-
}, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11507
|
+
}, 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__default["default"].createElement("div", {
|
|
11512
11508
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
11513
11509
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11514
11510
|
style: {
|