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.umd.js CHANGED
@@ -9944,7 +9944,7 @@
9944
9944
  return import('react-select');
9945
9945
  });
9946
9946
  var Checkout = function Checkout(props) {
9947
- var _css, _checkoutstyles, _ref, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue70, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _authdetailsContext$i4, _fetchcustomercartQue78, _authdetailsContext$i5, _fetchcustomercartQue80, _authdetailsContext$i6, _fetchcustomercartQue82, _fetchcustomercartQue84;
9947
+ 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;
9948
9948
  var _useState = React.useState(null),
9949
9949
  _useState2 = _slicedToArray__default["default"](_useState, 2);
9950
9950
  _useState2[0];
@@ -9984,13 +9984,17 @@
9984
9984
  insthasaffiliate = _useState8[0],
9985
9985
  setinsthasaffiliate = _useState8[1];
9986
9986
  var _useState9 = React.useState(false),
9987
- _useState10 = _slicedToArray__default["default"](_useState9, 2),
9988
- land = _useState10[0],
9989
- setland = _useState10[1];
9987
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
9988
+ _useState10[0];
9989
+ _useState10[1];
9990
9990
  var _useState11 = React.useState(false),
9991
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
9992
- air = _useState12[0],
9993
- setair = _useState12[1];
9991
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
9992
+ _useState12[0];
9993
+ _useState12[1];
9994
+ var _useState13 = React.useState([]),
9995
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
9996
+ shippingmethods = _useState14[0],
9997
+ setshippingmethods = _useState14[1];
9994
9998
  React.useEffect(function () {
9995
9999
  var _templatepropcontext$;
9996
10000
  var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
@@ -10058,26 +10062,46 @@
10058
10062
  mutateSuccesscallback: function mutateSuccesscallback() {}
10059
10063
  });
10060
10064
  }, [authdetailsContext]);
10065
+ React.useEffect(function () {
10066
+ 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) {
10067
+ var _fetchcustomercartQue9;
10068
+ 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;
10069
+ fetchshippingmethods(cityid);
10070
+ }
10071
+ }, [fetchcustomercartQueryContext.data]);
10072
+ var fetchshippingmethods = function fetchshippingmethods(cityid) {
10073
+ GeneralAPIMutationContext.mutate({
10074
+ endpointurl: '/g_shippingmethods',
10075
+ cityid: cityid,
10076
+ mutateSuccesscallback: function mutateSuccesscallback(data) {
10077
+ if (data != undefined && data.data != undefined && data.data.status == true) {
10078
+ setshippingmethods(data.data.data);
10079
+ }
10080
+ }
10081
+ });
10082
+ };
10061
10083
  var cartinfoupdater = function cartinfoupdater(key, value) {
10062
- var _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19;
10084
+ var _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20;
10063
10085
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
10064
10086
  cartarr.data.customercart[key] = value;
10065
10087
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
10066
10088
  var payloadobj = {
10067
- stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart.stateid,
10068
- countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart.countryid,
10069
- cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.customercart.cityid,
10070
- address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.address,
10071
- paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.customercart.paymentmethod,
10072
- name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.name,
10073
- email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.customercart.email,
10074
- mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue16 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.mobile,
10075
- notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 || (_fetchcustomercartQue17 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : _fetchcustomercartQue17.customercart.notes,
10076
- aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue18 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue18 === void 0 || (_fetchcustomercartQue18 = _fetchcustomercartQue18.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.aff_code,
10077
- shippingmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 || (_fetchcustomercartQue19 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : _fetchcustomercartQue19.customercart.shippingmethod
10089
+ 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,
10090
+ 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,
10091
+ 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,
10092
+ 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,
10093
+ 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,
10094
+ 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,
10095
+ 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,
10096
+ 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,
10097
+ 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,
10098
+ 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,
10099
+ 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
10078
10100
  };
10079
10101
  if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
10102
+ var _fetchcustomercartQue21;
10080
10103
  ChooseState_CountryMutationContext.mutate(payloadobj);
10104
+ 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);
10081
10105
  }
10082
10106
  };
10083
10107
  var usewalletpoints = function usewalletpoints() {
@@ -10273,7 +10297,7 @@
10273
10297
  })), _checkoutstyles);
10274
10298
  var addorderfuncrunner = function addorderfuncrunner() {
10275
10299
  return (_ref = _ref || _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
10276
- var _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29;
10300
+ var _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
10277
10301
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
10278
10302
  while (1) switch (_context.prev = _context.next) {
10279
10303
  case 0:
@@ -10282,19 +10306,20 @@
10282
10306
  // temppayload.endpointurl = '/ChooseState_Country';
10283
10307
  GeneralAPIMutationContext.mutate({
10284
10308
  endpointurl: '/ChooseState_Country',
10285
- stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue20 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.data) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.customercart.stateid,
10286
- countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : _fetchcustomercartQue21.customercart.countryid,
10287
- cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue22 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue22 === void 0 || (_fetchcustomercartQue22 = _fetchcustomercartQue22.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.cityid,
10288
- address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 || (_fetchcustomercartQue23 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : _fetchcustomercartQue23.customercart.address,
10289
- paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue24 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue24 === void 0 || (_fetchcustomercartQue24 = _fetchcustomercartQue24.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.paymentmethod,
10290
- name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue25 === void 0 ? void 0 : _fetchcustomercartQue25.customercart.name,
10291
- email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue26 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue26 === void 0 || (_fetchcustomercartQue26 = _fetchcustomercartQue26.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.email,
10292
- mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 || (_fetchcustomercartQue27 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : _fetchcustomercartQue27.customercart.mobile,
10293
- notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.notes,
10294
- aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.aff_code,
10309
+ 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,
10310
+ 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,
10311
+ 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,
10312
+ 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,
10313
+ 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,
10314
+ 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,
10315
+ 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,
10316
+ 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,
10317
+ 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,
10318
+ 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,
10319
+ 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,
10295
10320
  mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
10296
10321
  if (data.data.status) {
10297
- var _fetchcustomercartQue30, _fetchcustomercartQue31;
10322
+ var _fetchcustomercartQue33, _fetchcustomercartQue34;
10298
10323
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
10299
10324
  cartarr.data = data.data.cartresponse;
10300
10325
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
@@ -10302,9 +10327,9 @@
10302
10327
  // const cookies = new Cookies();
10303
10328
  localStorage.setItem('cdata', data.data.cdata);
10304
10329
  }
10305
- if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.name.length) < 3) {
10330
+ 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) {
10306
10331
  NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
10307
- } else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.mobile.length) < 11) {
10332
+ } 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) {
10308
10333
  NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
10309
10334
  } else {
10310
10335
  AddOrderMutationContext.mutate();
@@ -10332,7 +10357,7 @@
10332
10357
  return isloading;
10333
10358
  };
10334
10359
  var Mycart = function Mycart() {
10335
- var _fetchcustomercartQue32, _fetchcustomercartQue33, _fetchcustomercartQue34, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57;
10360
+ var _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60;
10336
10361
  return /*#__PURE__*/React__default["default"].createElement("div", {
10337
10362
  className: "row m-0 w-100 mb-md-3"
10338
10363
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -10357,7 +10382,7 @@
10357
10382
  className: "row m-0 w-100"
10358
10383
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10359
10384
  className: "col-lg-12 p-0"
10360
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.cartitems.map(function (item, index) {
10385
+ }, 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) {
10361
10386
  if (item.product_extrafields != null) {
10362
10387
  var product_extrafields = JSON.parse(item.product_extrafields);
10363
10388
  // var product_extrafields_parsed = JSON.stringify(product_extrafields);
@@ -10480,13 +10505,13 @@
10480
10505
  type: "text",
10481
10506
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10482
10507
  placeholder: lang.giftcarddicountcode,
10483
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.couponname,
10508
+ 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,
10484
10509
  onChange: function onChange(event) {
10485
10510
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
10486
10511
  cartarr.data.customercart.couponname = event.target.value;
10487
10512
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
10488
10513
  },
10489
- disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue34 !== void 0 && (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) !== null && _fetchcustomercartQue34 !== void 0 && _fetchcustomercartQue34.customercart.couponexists ? true : false,
10514
+ 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,
10490
10515
  style: {
10491
10516
  boxShadow: 'none'
10492
10517
  }
@@ -10495,14 +10520,14 @@
10495
10520
  }, /*#__PURE__*/React__default["default"].createElement("button", {
10496
10521
  className: " ".concat(checkoutstyles.applybtnstyles),
10497
10522
  onClick: function onClick() {
10498
- var _fetchcustomercartQue35;
10499
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue35 !== void 0 && (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) !== null && _fetchcustomercartQue35 !== void 0 && _fetchcustomercartQue35.customercart.couponexists)) {
10500
- var _fetchcustomercartQue36, _fetchcustomercartQue37;
10523
+ var _fetchcustomercartQue38;
10524
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue38 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists)) {
10525
+ var _fetchcustomercartQue39, _fetchcustomercartQue40;
10501
10526
  var payloadobj = {
10502
- couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.couponname,
10527
+ 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,
10503
10528
  functype: 'add'
10504
10529
  };
10505
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 || (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : _fetchcustomercartQue37.customercart.couponname.length) != 0) {
10530
+ 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) {
10506
10531
  ApplyPromoCodeMutationContext.mutate(payloadobj);
10507
10532
  } else {
10508
10533
  NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
@@ -10517,14 +10542,14 @@
10517
10542
  disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
10518
10543
  }, /*#__PURE__*/React__default["default"].createElement("span", {
10519
10544
  className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
10520
- }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue38 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React__default["default"].createElement("div", {
10545
+ }, 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", {
10521
10546
  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 '
10522
10547
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
10523
10548
  color: "#fff",
10524
10549
  width: "20px",
10525
10550
  height: "20px",
10526
10551
  duration: "1s"
10527
- })))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.customercart) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.availablewalletbalance) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
10552
+ })))))), (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", {
10528
10553
  className: "row m-0 w-100"
10529
10554
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10530
10555
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -10534,7 +10559,7 @@
10534
10559
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
10535
10560
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10536
10561
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
10537
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue40 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.customercart) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.customercart) === null || _fetchcustomercartQue41 === void 0 ? void 0 : _fetchcustomercartQue41.usewalletpoints) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
10562
+ }, 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", {
10538
10563
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
10539
10564
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10540
10565
  style: {
@@ -10544,7 +10569,7 @@
10544
10569
  onClick: function onClick() {
10545
10570
  usewalletpoints();
10546
10571
  }
10547
- }, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (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.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
10572
+ }, 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", {
10548
10573
  className: "row m-0 w-100"
10549
10574
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10550
10575
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
@@ -10566,9 +10591,9 @@
10566
10591
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
10567
10592
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10568
10593
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
10569
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue43 === void 0 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.data) === null || _fetchcustomercartQue43 === void 0 ? void 0 : _fetchcustomercartQue43.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (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 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.genpayments) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
10594
+ }, 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", {
10570
10595
  className: "row m-0 w-100"
10571
- }, 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 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.genpayments) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.map(function (item, index) {
10596
+ }, 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) {
10572
10597
  return /*#__PURE__*/React__default["default"].createElement("div", {
10573
10598
  "class": "col-lg-12 p-0"
10574
10599
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -10588,7 +10613,7 @@
10588
10613
  color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
10589
10614
  }
10590
10615
  }, 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, "%")))));
10591
- }))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.customercart) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
10616
+ }))), (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", {
10592
10617
  className: "row m-0 w-100"
10593
10618
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10594
10619
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -10601,7 +10626,7 @@
10601
10626
  style: {
10602
10627
  color: 'red'
10603
10628
  }
10604
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(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 ? void 0 : _fetchcustomercartQue47.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue49 === void 0 ? void 0 : _fetchcustomercartQue49.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
10629
+ }, 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", {
10605
10630
  className: "col-lg-12 p-0 mb-1"
10606
10631
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10607
10632
  className: "row m-0 w-100"
@@ -10613,7 +10638,7 @@
10613
10638
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
10614
10639
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10615
10640
  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 '
10616
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.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 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (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("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
10641
+ }, (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", {
10617
10642
  className: "col-lg-12 p-0"
10618
10643
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10619
10644
  className: "row m-0 w-100"
@@ -10621,11 +10646,11 @@
10621
10646
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
10622
10647
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10623
10648
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
10624
- }, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
10649
+ }, 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", {
10625
10650
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
10626
10651
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10627
10652
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
10628
- }, 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.zoneprice).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 && _fetchcustomercartQue55.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
10653
+ }, 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", {
10629
10654
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
10630
10655
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10631
10656
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -10664,7 +10689,7 @@
10664
10689
  textTransform: sectionproperties.total_texttransform,
10665
10690
  color: sectionproperties.total_color
10666
10691
  }
10667
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.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", {
10692
+ }, 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", {
10668
10693
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
10669
10694
  style: {
10670
10695
  background: '#eee',
@@ -10699,7 +10724,7 @@
10699
10724
  width: "20px",
10700
10725
  height: "20px",
10701
10726
  duration: "1s"
10702
- }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.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", {
10727
+ }), !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", {
10703
10728
  className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
10704
10729
  style: {
10705
10730
  marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
@@ -10866,7 +10891,7 @@
10866
10891
  }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
10867
10892
  type: 'text',
10868
10893
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10869
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.name,
10894
+ 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,
10870
10895
  onChange: function onChange(event) {
10871
10896
  cartinfoupdater('name', event.target.value);
10872
10897
  },
@@ -10881,7 +10906,7 @@
10881
10906
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
10882
10907
  type: 'text',
10883
10908
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10884
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.mobile,
10909
+ 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,
10885
10910
  onChange: function onChange(event) {
10886
10911
  cartinfoupdater('mobile', event.target.value);
10887
10912
  },
@@ -10896,7 +10921,7 @@
10896
10921
  }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
10897
10922
  type: 'text',
10898
10923
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10899
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.email,
10924
+ 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,
10900
10925
  onChange: function onChange(event) {
10901
10926
  cartinfoupdater('email', event.target.value);
10902
10927
  },
@@ -10940,8 +10965,8 @@
10940
10965
  return option.id;
10941
10966
  },
10942
10967
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
10943
- var _fetchcustomercartQue61;
10944
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.countryid);
10968
+ var _fetchcustomercartQue64;
10969
+ 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);
10945
10970
  }),
10946
10971
  onChange: function onChange(option) {
10947
10972
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
@@ -10986,12 +11011,12 @@
10986
11011
  return option.id;
10987
11012
  },
10988
11013
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
10989
- var _fetchcustomercartQue62;
10990
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.stateid);
11014
+ var _fetchcustomercartQue65;
11015
+ 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);
10991
11016
  }),
10992
11017
  onChange: function onChange(option) {
10993
- var _fetchcustomercartQue63;
10994
- if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.countryid.length) != 0) {
11018
+ var _fetchcustomercartQue66;
11019
+ 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) {
10995
11020
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
10996
11021
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
10997
11022
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -11034,8 +11059,8 @@
11034
11059
  return option.id;
11035
11060
  },
11036
11061
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
11037
- var _fetchcustomercartQue64;
11038
- 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.cityid);
11062
+ var _fetchcustomercartQue67;
11063
+ 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);
11039
11064
  }),
11040
11065
  onChange: function onChange(option) {
11041
11066
  cartinfoupdater('cityid', option.id);
@@ -11050,7 +11075,7 @@
11050
11075
  }, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
11051
11076
  type: 'text',
11052
11077
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
11053
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.address,
11078
+ 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,
11054
11079
  onChange: function onChange(event) {
11055
11080
  cartinfoupdater('address', event.target.value);
11056
11081
  },
@@ -11065,7 +11090,7 @@
11065
11090
  }, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
11066
11091
  type: 'text',
11067
11092
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
11068
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.notes,
11093
+ 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,
11069
11094
  onChange: function onChange(event) {
11070
11095
  cartinfoupdater('notes', event.target.value);
11071
11096
  },
@@ -11080,7 +11105,7 @@
11080
11105
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
11081
11106
  type: 'number',
11082
11107
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
11083
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.customercart) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.aff_code,
11108
+ 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,
11084
11109
  onChange: function onChange(event) {
11085
11110
  cartinfoupdater('aff_code', event.target.value);
11086
11111
  },
@@ -11088,7 +11113,7 @@
11088
11113
  resize: 'none',
11089
11114
  boxShadow: 'none'
11090
11115
  }
11091
- }))))), sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11116
+ }))))), shippingmethods.length != 0 && sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11092
11117
  className: "col-lg-12 p-0 w-100"
11093
11118
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11094
11119
  "class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
@@ -11102,50 +11127,21 @@
11102
11127
  className: "mt-2 mb-2"
11103
11128
  })), /*#__PURE__*/React__default["default"].createElement("div", {
11104
11129
  className: "row m-0 w-100 mb-3 pl-3 pr-3"
11105
- }, /*#__PURE__*/React__default["default"].createElement("div", {
11106
- className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11107
- }, /*#__PURE__*/React__default["default"].createElement("label", {
11108
- className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
11109
- "for": "codcheckbox"
11110
- }, /*#__PURE__*/React__default["default"].createElement("input", {
11111
- id: 'codcheckbox',
11112
- type: "checkbox",
11113
- className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11114
- checked: land == true ? true : false,
11115
- onChange: function onChange() {
11116
- setland(true);
11117
- setair(false);
11118
- }
11119
- }), /*#__PURE__*/React__default["default"].createElement("svg", {
11120
- viewBox: "0 0 21 21",
11121
- className: checkoutstyles.svgstyles + ' h-100 '
11122
- }, /*#__PURE__*/React__default["default"].createElement("path", {
11123
- 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"
11124
- })), /*#__PURE__*/React__default["default"].createElement("p", {
11125
- className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
11130
+ }, /*#__PURE__*/React__default["default"].createElement("select", {
11126
11131
  style: {
11127
- color: sectionproperties.checkbox_color
11128
- }
11129
- }, langdetect == 'en' ? 'Land Shipping' : 'شحن بري'))), /*#__PURE__*/React__default["default"].createElement("div", {
11130
- className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11131
- }, /*#__PURE__*/React__default["default"].createElement("label", {
11132
- className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
11133
- }, /*#__PURE__*/React__default["default"].createElement("input", {
11134
- type: "checkbox",
11135
- className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11136
- checked: air == true ? true : false,
11137
- onChange: function onChange() {
11138
- setland(false);
11139
- setair(true);
11140
- }
11141
- }), /*#__PURE__*/React__default["default"].createElement("svg", {
11142
- viewBox: "0 0 21 21",
11143
- className: checkoutstyles.svgstyles + ' h-100 '
11144
- }, /*#__PURE__*/React__default["default"].createElement("path", {
11145
- 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"
11146
- })), /*#__PURE__*/React__default["default"].createElement("p", {
11147
- className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11148
- }, " ", langdetect == 'en' ? 'Air Shipping' : 'شحن جوي')))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11132
+ width: '100%'
11133
+ },
11134
+ onChange: function onChange(event) {
11135
+ cartinfoupdater('shippingmethod_id', event.target.value);
11136
+ },
11137
+ 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
11138
+ }, /*#__PURE__*/React__default["default"].createElement("option", {
11139
+ value: null
11140
+ }, "Choose Shipping Method"), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
11141
+ return /*#__PURE__*/React__default["default"].createElement("option", {
11142
+ value: item.id
11143
+ }, item.name_en);
11144
+ }))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11149
11145
  className: "col-lg-12 p-0 w-100"
11150
11146
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11151
11147
  "class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
@@ -11168,10 +11164,10 @@
11168
11164
  id: 'codcheckbox',
11169
11165
  type: "checkbox",
11170
11166
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11171
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.paymentmethod) == 'cod' ? true : false,
11167
+ 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,
11172
11168
  onChange: function onChange() {
11173
- var _fetchcustomercartQue69;
11174
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.paymentmethod) != 'cod') {
11169
+ var _fetchcustomercartQue73;
11170
+ 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') {
11175
11171
  cartinfoupdater('paymentmethod', 'cod');
11176
11172
  }
11177
11173
  }
@@ -11192,10 +11188,10 @@
11192
11188
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11193
11189
  type: "checkbox",
11194
11190
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11195
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.paymentmethod) == 'cardondelivery' ? true : false,
11191
+ 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,
11196
11192
  onChange: function onChange() {
11197
- var _fetchcustomercartQue71;
11198
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.paymentmethod) != 'cardondelivery') {
11193
+ var _fetchcustomercartQue75;
11194
+ 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') {
11199
11195
  cartinfoupdater('paymentmethod', 'cardondelivery');
11200
11196
  }
11201
11197
  }
@@ -11213,10 +11209,10 @@
11213
11209
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11214
11210
  type: "checkbox",
11215
11211
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11216
- 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) == 'onlinepayment' ? true : false,
11212
+ 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,
11217
11213
  onChange: function onChange() {
11218
- var _fetchcustomercartQue73;
11219
- 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) != 'onlinepayment') {
11214
+ var _fetchcustomercartQue77;
11215
+ 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') {
11220
11216
  cartinfoupdater('paymentmethod', 'onlinepayment');
11221
11217
  }
11222
11218
  }
@@ -11234,10 +11230,10 @@
11234
11230
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11235
11231
  type: "checkbox",
11236
11232
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11237
- 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) == 'valU' ? true : false,
11233
+ 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,
11238
11234
  onChange: function onChange() {
11239
- var _fetchcustomercartQue75;
11240
- 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) != 'valU') {
11235
+ var _fetchcustomercartQue79;
11236
+ 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') {
11241
11237
  cartinfoupdater('paymentmethod', 'valU');
11242
11238
  }
11243
11239
  }
@@ -11255,10 +11251,10 @@
11255
11251
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11256
11252
  type: "checkbox",
11257
11253
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11258
- 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) == 'mobilewallet' ? true : false,
11254
+ 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,
11259
11255
  onChange: function onChange() {
11260
- var _fetchcustomercartQue77;
11261
- 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) != 'mobilewallet') {
11256
+ var _fetchcustomercartQue81;
11257
+ 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') {
11262
11258
  cartinfoupdater('paymentmethod', 'mobilewallet');
11263
11259
  }
11264
11260
  }
@@ -11276,10 +11272,10 @@
11276
11272
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11277
11273
  type: "checkbox",
11278
11274
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11279
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.customercart) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.paymentmethod) == 'forsa' ? true : false,
11275
+ 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,
11280
11276
  onChange: function onChange() {
11281
- var _fetchcustomercartQue79;
11282
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.customercart) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.paymentmethod) != 'forsa') {
11277
+ var _fetchcustomercartQue83;
11278
+ 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') {
11283
11279
  cartinfoupdater('paymentmethod', 'forsa');
11284
11280
  }
11285
11281
  }
@@ -11297,10 +11293,10 @@
11297
11293
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11298
11294
  type: "checkbox",
11299
11295
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11300
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.customercart) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.paymentmethod) == 'bankinstallments' ? true : false,
11296
+ 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,
11301
11297
  onChange: function onChange() {
11302
- var _fetchcustomercartQue81;
11303
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.customercart) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.paymentmethod) != 'bankinstallments') {
11298
+ var _fetchcustomercartQue85;
11299
+ 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') {
11304
11300
  cartinfoupdater('paymentmethod', 'bankinstallments');
11305
11301
  }
11306
11302
  }
@@ -11318,10 +11314,10 @@
11318
11314
  }, /*#__PURE__*/React__default["default"].createElement("input", {
11319
11315
  type: "checkbox",
11320
11316
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
11321
- 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) == 'Aman' ? true : false,
11317
+ 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,
11322
11318
  onChange: function onChange() {
11323
- var _fetchcustomercartQue83;
11324
- 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) != 'Aman') {
11319
+ var _fetchcustomercartQue87;
11320
+ 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') {
11325
11321
  cartinfoupdater('paymentmethod', 'Aman');
11326
11322
  }
11327
11323
  }
@@ -11332,7 +11328,7 @@
11332
11328
  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"
11333
11329
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11334
11330
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11335
- }, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
11331
+ }, 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", {
11336
11332
  className: "col-lg-12 p-0 w-100 mb-3"
11337
11333
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11338
11334
  style: {