tabexseriescomponents 0.2.1155 → 0.2.1156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -13278,7 +13278,7 @@ styleInject(css_248z$G);
13278
13278
  function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13279
13279
  function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13280
13280
  var Checkout = function Checkout(props) {
13281
- var _fetchTabexCountriesQ2, _css, _authdetailsContext$i1, _authdetailsContext$i10, _fetchcustomercartQue67, _authdetailsContext$i11, _fetchcustomercartQue68, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _authdetailsContext$i16, _fetchcustomercartQue69, _authdetailsContext$i17, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _authdetailsContext$i22, _authdetailsContext$i23, _authdetailsContext$i24, _fetchcustomercartQue79, _authdetailsContext$i25, _authdetailsContext$i26, _authdetailsContext$i27, _authdetailsContext$i28, _fetchcustomercartQue81, _authdetailsContext$i29, _fetchcustomercartQue83, _authdetailsContext$i30, _authdetailsContext$i31, _authdetailsContext$i32, _fetchcustomercartQue85, _authdetailsContext$i33, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i34, _fetchcustomercartQue91, _authdetailsContext$i35, _fetchcustomercartQue93, _authdetailsContext$i36, _fetchcustomercartQue95, _authdetailsContext$i37, _fetchcustomercartQue97, _authdetailsContext$i38, _fetchcustomercartQue99, _authdetailsContext$i39, _fetchcustomercartQue101, _authdetailsContext$i40, _fetchcustomercartQue103, _fetchcustomercartQue105, _fetchcustomercartQue106;
13281
+ var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue72, _authdetailsContext$i10, _fetchcustomercartQue73, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue74, _authdetailsContext$i16, _fetchcustomercartQue80, _fetchcustomercartQue81, _fetchcustomercartQue82, _fetchcustomercartQue83, _authdetailsContext$i21, _authdetailsContext$i22, _authdetailsContext$i23, _fetchcustomercartQue84, _authdetailsContext$i24, _authdetailsContext$i25, _authdetailsContext$i26, _authdetailsContext$i27, _fetchcustomercartQue86, _authdetailsContext$i28, _fetchcustomercartQue88, _authdetailsContext$i29, _authdetailsContext$i30, _authdetailsContext$i31, _fetchcustomercartQue90, _authdetailsContext$i32, _fetchcustomercartQue92, _fetchcustomercartQue94, _authdetailsContext$i33, _fetchcustomercartQue96, _authdetailsContext$i34, _fetchcustomercartQue98, _authdetailsContext$i35, _fetchcustomercartQue100, _authdetailsContext$i36, _fetchcustomercartQue102, _authdetailsContext$i37, _fetchcustomercartQue104, _authdetailsContext$i38, _fetchcustomercartQue106, _authdetailsContext$i39, _fetchcustomercartQue108, _fetchcustomercartQue110, _fetchcustomercartQue111;
13282
13282
  var _useState = React.useState(null),
13283
13283
  _useState2 = _slicedToArray__default["default"](_useState, 2);
13284
13284
  _useState2[0];
@@ -13415,19 +13415,31 @@ var Checkout = function Checkout(props) {
13415
13415
  // useEffect(() => {
13416
13416
  // Pixel_EventsContext('InitiateCheckout', {});
13417
13417
  // }, []);
13418
+ // useEffect(() => {
13419
+ // if (authdetailsContext?.instinfo?.hasaffiliate != undefined) {
13420
+ // const timer = setTimeout(() => {
13421
+ // Pixel_EventsContext('InitiateCheckout', { currency: 'EGP' });
13422
+ // }, 2000);
13423
+ // return () => clearTimeout(timer);
13424
+ // }
13425
+ // }, [authdetailsContext]);
13418
13426
  React.useEffect(function () {
13419
- var _authdetailsContext$i4;
13420
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.hasaffiliate) != undefined) {
13421
- var _timer = setTimeout(function () {
13422
- Pixel_EventsContext('InitiateCheckout', {
13423
- currency: 'EGP'
13424
- });
13425
- }, 2000);
13426
- return function () {
13427
- return clearTimeout(_timer);
13428
- };
13427
+ if (fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && fetchcustomercartQueryContext.isSuccess) {
13428
+ var _fetchcustomercartQue9, _fetchcustomercartQue0, _fetchcustomercartQue1, _fetchcustomercartQue10;
13429
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue0 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.data) === null || _fetchcustomercartQue0 === void 0 ? void 0 : _fetchcustomercartQue0.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.customercart) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.totalprice) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.customercart) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.totalprice) != null) {
13430
+ var _timer = setTimeout(function () {
13431
+ var _fetchcustomercartQue11;
13432
+ Pixel_EventsContext('InitiateCheckout', {
13433
+ currency: 'EGP',
13434
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.totalprice
13435
+ });
13436
+ }, 2000);
13437
+ return function () {
13438
+ return clearTimeout(_timer);
13439
+ };
13440
+ }
13429
13441
  }
13430
- }, [authdetailsContext]);
13442
+ }, [authdetailsContext, fetchcustomercartQueryContext.isSuccess]);
13431
13443
  var setUsedOrderExtraFieldsValues = function setUsedOrderExtraFieldsValues(order_extra_fields) {
13432
13444
  var usedOrderExtraFields = [];
13433
13445
  if (fetchcustomercartQueryContext.isSuccess && fetchcustomercartQueryContext != undefined && fetchcustomercartQueryContext.data != undefined && fetchcustomercartQueryContext.data.data != undefined && fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart.orderExtraFields != undefined && fetchcustomercartQueryContext.data.data.customercart.orderExtraFields != null && fetchcustomercartQueryContext.data.data.customercart.orderExtraFields != '') {
@@ -13457,10 +13469,10 @@ var Checkout = function Checkout(props) {
13457
13469
  };
13458
13470
  React.useEffect(function () {
13459
13471
  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) {
13460
- var _fetchcustomercartQue9, _fetchcustomercartQue0;
13461
- 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;
13472
+ var _fetchcustomercartQue12, _fetchcustomercartQue13;
13473
+ var 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;
13462
13474
  fetchshippingmethods(cityid);
13463
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue0 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.customercart) === null || _fetchcustomercartQue0 === void 0 ? void 0 : _fetchcustomercartQue0.zonenotes) != null) {
13475
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.zonenotes) != null) {
13464
13476
  setshowpopup(true);
13465
13477
  }
13466
13478
  }
@@ -13507,7 +13519,7 @@ var Checkout = function Checkout(props) {
13507
13519
  // });
13508
13520
  // };
13509
13521
  var cartinfoupdater = function cartinfoupdater(key, value) {
13510
- var _fetchcustomercartQue1, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19;
13522
+ var _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24;
13511
13523
  var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
13512
13524
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
13513
13525
  cartarr.data.customercart[key] = value;
@@ -13519,23 +13531,23 @@ var Checkout = function Checkout(props) {
13519
13531
  }
13520
13532
  var payloadobj = {
13521
13533
  utmSource: utmSource,
13522
- stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.customercart.stateid,
13523
- 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,
13524
- 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,
13525
- 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,
13526
- 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,
13527
- 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,
13528
- 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,
13529
- 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,
13530
- 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,
13531
- 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,
13532
- shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 || (_fetchcustomercartQue19 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : _fetchcustomercartQue19.customercart.shippingmethod_id,
13534
+ stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid,
13535
+ countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.customercart.countryid,
13536
+ cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue16 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.cityid,
13537
+ address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 || (_fetchcustomercartQue17 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : _fetchcustomercartQue17.customercart.address,
13538
+ paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue18 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue18 === void 0 || (_fetchcustomercartQue18 = _fetchcustomercartQue18.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.paymentmethod,
13539
+ name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 || (_fetchcustomercartQue19 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : _fetchcustomercartQue19.customercart.name,
13540
+ email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue20 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.data) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.customercart.email,
13541
+ mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : _fetchcustomercartQue21.customercart.mobile,
13542
+ notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue22 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue22 === void 0 || (_fetchcustomercartQue22 = _fetchcustomercartQue22.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.notes,
13543
+ aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 || (_fetchcustomercartQue23 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : _fetchcustomercartQue23.customercart.aff_code,
13544
+ shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue24 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue24 === void 0 || (_fetchcustomercartQue24 = _fetchcustomercartQue24.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.shippingmethod_id,
13533
13545
  orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr)
13534
13546
  };
13535
13547
  if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
13536
- var _fetchcustomercartQue20;
13548
+ var _fetchcustomercartQue25;
13537
13549
  ChooseState_CountryMutationContext.mutate(payloadobj);
13538
- fetchshippingmethods(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue20 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.customercart) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.cityid);
13550
+ fetchshippingmethods(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.customercart) === null || _fetchcustomercartQue25 === void 0 ? void 0 : _fetchcustomercartQue25.cityid);
13539
13551
  }
13540
13552
  };
13541
13553
  var usewalletpoints = function usewalletpoints() {
@@ -13552,9 +13564,9 @@ var Checkout = function Checkout(props) {
13552
13564
  });
13553
13565
  };
13554
13566
  var is_order_extrafileds_required_fulfiled = function is_order_extrafileds_required_fulfiled() {
13555
- var _authdetailsContext$i5, _authdetailsContext$i6;
13567
+ var _authdetailsContext$i4, _authdetailsContext$i5;
13556
13568
  var is_fulfilled = true;
13557
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '66d99c87c0a20') {
13569
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '66d99c87c0a20') {
13558
13570
  var _OrderExtraFieldsToBe;
13559
13571
  var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
13560
13572
  (_OrderExtraFieldsToBe = OrderExtraFieldsToBeSentArr) === null || _OrderExtraFieldsToBe === void 0 || _OrderExtraFieldsToBe.forEach(function (item, index) {
@@ -13562,7 +13574,7 @@ var Checkout = function Checkout(props) {
13562
13574
  is_fulfilled = false;
13563
13575
  }
13564
13576
  });
13565
- } else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '6908bb20bbca3') {
13577
+ } else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '6908bb20bbca3') {
13566
13578
  var _OrderExtraFieldsToBe2;
13567
13579
  var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
13568
13580
  (_OrderExtraFieldsToBe2 = OrderExtraFieldsToBeSentArr) === null || _OrderExtraFieldsToBe2 === void 0 || _OrderExtraFieldsToBe2.forEach(function (item, index) {
@@ -13797,7 +13809,7 @@ var Checkout = function Checkout(props) {
13797
13809
  };
13798
13810
  var addorderfuncrunner = /*#__PURE__*/function () {
13799
13811
  var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
13800
- var OrderExtraFieldsToBeSentArr, utmSource, utmSourceLocalStorage, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31;
13812
+ var OrderExtraFieldsToBeSentArr, utmSource, utmSourceLocalStorage, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32, _fetchcustomercartQue33, _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36;
13801
13813
  return _regeneratorRuntime__default["default"].wrap(function (_context) {
13802
13814
  while (1) switch (_context.prev = _context.next) {
13803
13815
  case 0:
@@ -13814,21 +13826,21 @@ var Checkout = function Checkout(props) {
13814
13826
  GeneralAPIMutationContext.mutate({
13815
13827
  endpointurl: '/ChooseState_Country',
13816
13828
  utmSource: utmSource,
13817
- stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : _fetchcustomercartQue21.customercart.stateid,
13818
- countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue22 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue22 === void 0 || (_fetchcustomercartQue22 = _fetchcustomercartQue22.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.countryid,
13819
- cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 || (_fetchcustomercartQue23 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : _fetchcustomercartQue23.customercart.cityid,
13820
- address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue24 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue24 === void 0 || (_fetchcustomercartQue24 = _fetchcustomercartQue24.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.address,
13821
- paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue25 === void 0 ? void 0 : _fetchcustomercartQue25.customercart.paymentmethod,
13822
- name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue26 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue26 === void 0 || (_fetchcustomercartQue26 = _fetchcustomercartQue26.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.name,
13823
- email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 || (_fetchcustomercartQue27 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : _fetchcustomercartQue27.customercart.email,
13824
- mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.mobile,
13825
- notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.notes,
13826
- aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.aff_code,
13827
- shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.shippingmethod_id,
13829
+ stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue26 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue26 === void 0 || (_fetchcustomercartQue26 = _fetchcustomercartQue26.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.stateid,
13830
+ countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 || (_fetchcustomercartQue27 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : _fetchcustomercartQue27.customercart.countryid,
13831
+ cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.cityid,
13832
+ address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.address,
13833
+ paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.paymentmethod,
13834
+ name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.name,
13835
+ email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.email,
13836
+ mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.mobile,
13837
+ notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.notes,
13838
+ aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue35 === void 0 ? void 0 : _fetchcustomercartQue35.customercart.aff_code,
13839
+ shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.shippingmethod_id,
13828
13840
  orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr),
13829
13841
  mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
13830
13842
  if (data.data.status) {
13831
- var _fetchcustomercartQue32, _fetchcustomercartQue33;
13843
+ var _fetchcustomercartQue37, _fetchcustomercartQue38;
13832
13844
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
13833
13845
  cartarr.data = data.data.cartresponse;
13834
13846
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
@@ -13836,9 +13848,9 @@ var Checkout = function Checkout(props) {
13836
13848
  // const cookies = new Cookies();
13837
13849
  localStorage.setItem('cdata', data.data.cdata);
13838
13850
  }
13839
- if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.name.length) < 3) {
13851
+ if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 || (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : _fetchcustomercartQue37.customercart.name.length) < 3) {
13840
13852
  NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
13841
- } else 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.mobile.length) < 11) {
13853
+ } else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue38 === void 0 || (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.customercart.mobile.length) < 11) {
13842
13854
  NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
13843
13855
  } else {
13844
13856
  AddOrderMutationContext.mutate();
@@ -13870,7 +13882,7 @@ var Checkout = function Checkout(props) {
13870
13882
  return isloading;
13871
13883
  };
13872
13884
  var Mycart = function Mycart() {
13873
- var _fetchcustomercartQue34, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _authdetailsContext$i7, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _authdetailsContext$i8, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _authdetailsContext$i9, _fetchcustomercartQue65, _authdetailsContext$i0, _fetchcustomercartQue66;
13885
+ var _fetchcustomercartQue39, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _authdetailsContext$i6, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _authdetailsContext$i7, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue69, _authdetailsContext$i8, _fetchcustomercartQue70, _authdetailsContext$i9, _fetchcustomercartQue71;
13874
13886
  return /*#__PURE__*/React__default["default"].createElement("div", {
13875
13887
  className: "row m-0 w-100 mb-md-3"
13876
13888
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -13895,15 +13907,15 @@ var Checkout = function Checkout(props) {
13895
13907
  className: "row m-0 w-100"
13896
13908
  }, /*#__PURE__*/React__default["default"].createElement("div", {
13897
13909
  className: "col-lg-12 p-0"
13898
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.customercart) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.cartitems) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.map(function (item, index) {
13899
- var _fetchcustomercartQue35;
13910
+ }, 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 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.cartitems) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.map(function (item, index) {
13911
+ var _fetchcustomercartQue40;
13900
13912
  if (item.product_extrafields != null) {
13901
13913
  var product_extrafields = JSON.parse(item.product_extrafields);
13902
13914
  // var product_extrafields_parsed = JSON.stringify(product_extrafields);
13903
13915
  // alert(product_extrafields_parsed);
13904
13916
  }
13905
13917
  var extras_for_product = [];
13906
- fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.customercart) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.cartitems) === null || _fetchcustomercartQue35 === void 0 || _fetchcustomercartQue35.forEach(function (cartitem_in, cartindex_in) {
13918
+ 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 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.cartitems) === null || _fetchcustomercartQue40 === void 0 || _fetchcustomercartQue40.forEach(function (cartitem_in, cartindex_in) {
13907
13919
  if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.item_type) == 'Extras') {
13908
13920
  if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (item === null || item === void 0 ? void 0 : item.productid)) {
13909
13921
  extras_for_product.push(cartitem_in);
@@ -14038,13 +14050,13 @@ var Checkout = function Checkout(props) {
14038
14050
  type: "text",
14039
14051
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14040
14052
  placeholder: lang.giftcarddicountcode,
14041
- 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,
14053
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue41 === void 0 ? void 0 : _fetchcustomercartQue41.customercart.couponname,
14042
14054
  onChange: function onChange(event) {
14043
14055
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
14044
14056
  cartarr.data.customercart.couponname = event.target.value;
14045
14057
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
14046
14058
  },
14047
- 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,
14059
+ disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue42 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue42 !== void 0 && (_fetchcustomercartQue42 = _fetchcustomercartQue42.data) !== null && _fetchcustomercartQue42 !== void 0 && _fetchcustomercartQue42.customercart.couponexists ? true : false,
14048
14060
  style: {
14049
14061
  boxShadow: 'none'
14050
14062
  }
@@ -14053,14 +14065,14 @@ var Checkout = function Checkout(props) {
14053
14065
  }, /*#__PURE__*/React__default["default"].createElement("button", {
14054
14066
  className: " ".concat(checkoutstyles.applybtnstyles),
14055
14067
  onClick: function onClick() {
14056
- var _fetchcustomercartQue38;
14057
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue38 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists)) {
14058
- var _fetchcustomercartQue39, _fetchcustomercartQue40;
14068
+ var _fetchcustomercartQue43;
14069
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue43 !== void 0 && (_fetchcustomercartQue43 = _fetchcustomercartQue43.data) !== null && _fetchcustomercartQue43 !== void 0 && _fetchcustomercartQue43.customercart.couponexists)) {
14070
+ var _fetchcustomercartQue44, _fetchcustomercartQue45;
14059
14071
  var payloadobj = {
14060
- 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,
14072
+ couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue44 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.data) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.customercart.couponname,
14061
14073
  functype: 'add'
14062
14074
  };
14063
- 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) {
14075
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.customercart.couponname.length) != 0) {
14064
14076
  ApplyPromoCodeMutationContext.mutate(payloadobj);
14065
14077
  } else {
14066
14078
  NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
@@ -14075,14 +14087,14 @@ var Checkout = function Checkout(props) {
14075
14087
  disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
14076
14088
  }, /*#__PURE__*/React__default["default"].createElement("span", {
14077
14089
  className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
14078
- }, 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", {
14090
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue46 !== void 0 && (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) !== null && _fetchcustomercartQue46 !== void 0 && _fetchcustomercartQue46.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React__default["default"].createElement("div", {
14079
14091
  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 '
14080
14092
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
14081
14093
  color: "#fff",
14082
14094
  width: "20px",
14083
14095
  height: "20px",
14084
14096
  duration: "1s"
14085
- })))))), (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", {
14097
+ })))))), (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.availablewalletbalance) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
14086
14098
  className: "row m-0 w-100"
14087
14099
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14088
14100
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -14092,7 +14104,7 @@ var Checkout = function Checkout(props) {
14092
14104
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
14093
14105
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14094
14106
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
14095
- }, 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", {
14107
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", 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 ? void 0 : _fetchcustomercartQue48.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (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) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
14096
14108
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
14097
14109
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14098
14110
  style: {
@@ -14102,7 +14114,7 @@ var Checkout = function Checkout(props) {
14102
14114
  onClick: function onClick() {
14103
14115
  usewalletpoints();
14104
14116
  }
14105
- }, 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", {
14117
+ }, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (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.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
14106
14118
  className: "row m-0 w-100"
14107
14119
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14108
14120
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
@@ -14120,14 +14132,14 @@ var Checkout = function Checkout(props) {
14120
14132
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
14121
14133
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14122
14134
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
14123
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Sub Total' : 'تكلفة المنتجات' : lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
14135
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Sub Total' : 'تكلفة المنتجات' : lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
14124
14136
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
14125
14137
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14126
14138
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
14127
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(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)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : _fetchcustomercartQue47.customercart.totalprice).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (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 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.genpayments) === null || _fetchcustomercartQue49 === void 0 ? void 0 : _fetchcustomercartQue49.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
14139
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.totalprice).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.customercart) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.genpayments) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
14128
14140
  className: "row m-0 w-100"
14129
- }, 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 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.genpayments) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.map(function (item, index) {
14130
- var _fetchcustomercartQue51;
14141
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.customercart) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.genpayments) === null || _fetchcustomercartQue55 === void 0 ? void 0 : _fetchcustomercartQue55.map(function (item, index) {
14142
+ var _fetchcustomercartQue56;
14131
14143
  return /*#__PURE__*/React__default["default"].createElement("div", {
14132
14144
  "class": "col-lg-12 p-0"
14133
14145
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -14146,8 +14158,8 @@ var Checkout = function Checkout(props) {
14146
14158
  style: {
14147
14159
  color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
14148
14160
  }
14149
- }, 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, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.customercart) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.totalprice) * (item.value / 100), ' ', langdetect == 'ar' ? authdetailsContext.currencyname_ar : '', ")")))));
14150
- }))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.customercart) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
14161
+ }, 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, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.customercart) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.totalprice) * (item.value / 100), ' ', langdetect == 'ar' ? authdetailsContext.currencyname_ar : '', ")")))));
14162
+ }))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.customercart) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
14151
14163
  className: "row m-0 w-100"
14152
14164
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14153
14165
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -14160,7 +14172,7 @@ var Checkout = function Checkout(props) {
14160
14172
  style: {
14161
14173
  color: 'red'
14162
14174
  }
14163
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.customercart) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.couponexists) && (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("div", {
14175
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.customercart) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
14164
14176
  className: "col-lg-12 p-0 mb-1"
14165
14177
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14166
14178
  className: "row m-0 w-100"
@@ -14172,7 +14184,7 @@ var Checkout = function Checkout(props) {
14172
14184
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
14173
14185
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14174
14186
  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 '
14175
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.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 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.customercart.discountprice).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 ? void 0 : _fetchcustomercartQue58.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
14187
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "- ", langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
14176
14188
  className: "col-lg-12 p-0"
14177
14189
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14178
14190
  className: "row m-0 w-100"
@@ -14180,11 +14192,11 @@ var Checkout = function Checkout(props) {
14180
14192
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
14181
14193
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14182
14194
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
14183
- }, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
14195
+ }, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
14184
14196
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
14185
14197
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14186
14198
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
14187
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue61 !== void 0 && (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) !== null && _fetchcustomercartQue61 !== void 0 && _fetchcustomercartQue61.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
14199
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue66 !== void 0 && (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) !== null && _fetchcustomercartQue66 !== void 0 && _fetchcustomercartQue66.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
14188
14200
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
14189
14201
  }, /*#__PURE__*/React__default["default"].createElement("p", {
14190
14202
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -14209,7 +14221,7 @@ var Checkout = function Checkout(props) {
14209
14221
  textTransform: sectionproperties.total_texttransform,
14210
14222
  color: sectionproperties.total_color
14211
14223
  }
14212
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
14224
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
14213
14225
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
14214
14226
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14215
14227
  className: "row m-0 w-100"
@@ -14223,7 +14235,7 @@ var Checkout = function Checkout(props) {
14223
14235
  textTransform: sectionproperties.total_texttransform,
14224
14236
  color: sectionproperties.total_color
14225
14237
  }
14226
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.totalpriceafterdiscount).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.totalpriceafterdiscount).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.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", {
14238
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.totalpriceafterdiscount).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.totalpriceafterdiscount).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.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", {
14227
14239
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
14228
14240
  style: {
14229
14241
  background: '#eee',
@@ -14244,7 +14256,7 @@ var Checkout = function Checkout(props) {
14244
14256
  style: {
14245
14257
  marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
14246
14258
  }
14247
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
14259
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
14248
14260
  className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
14249
14261
  onClick: function onClick() {
14250
14262
  if (sectionproperties.showpaymentfooter == 'Hide') {
@@ -14258,7 +14270,7 @@ var Checkout = function Checkout(props) {
14258
14270
  width: "20px",
14259
14271
  height: "20px",
14260
14272
  duration: "1s"
14261
- }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest : ''), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
14273
+ }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest : ''), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
14262
14274
  className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
14263
14275
  onClick: function onClick() {
14264
14276
  if (sectionproperties.showpaymentfooter == 'Hide') {
@@ -14272,7 +14284,7 @@ var Checkout = function Checkout(props) {
14272
14284
  width: "20px",
14273
14285
  height: "20px",
14274
14286
  duration: "1s"
14275
- }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : '')), authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
14287
+ }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : '')), authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
14276
14288
  className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
14277
14289
  style: {
14278
14290
  marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
@@ -14369,7 +14381,7 @@ var Checkout = function Checkout(props) {
14369
14381
  }
14370
14382
  }, /*#__PURE__*/React__default["default"].createElement(BiPhone.BiPhone, null)), /*#__PURE__*/React__default["default"].createElement("p", {
14371
14383
  className: "m-0 p-0 wordbreak"
14372
- }, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("div", {
14384
+ }, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("div", {
14373
14385
  className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
14374
14386
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14375
14387
  className: "m-0 p-0 d-flex align-items-center"
@@ -14433,7 +14445,7 @@ var Checkout = function Checkout(props) {
14433
14445
  })), /*#__PURE__*/React__default["default"].createElement("div", {
14434
14446
  className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
14435
14447
  }, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
14436
- className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
14448
+ className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
14437
14449
  }, /*#__PURE__*/React__default["default"].createElement("label", {
14438
14450
  className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
14439
14451
  }, lang.name, /*#__PURE__*/React__default["default"].createElement("sup", {
@@ -14444,7 +14456,7 @@ var Checkout = function Checkout(props) {
14444
14456
  }, "*")), /*#__PURE__*/React__default["default"].createElement("input", {
14445
14457
  type: 'text',
14446
14458
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14447
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.name,
14459
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.name,
14448
14460
  onChange: function onChange(event) {
14449
14461
  cartinfoupdater('name', event.target.value);
14450
14462
  },
@@ -14453,7 +14465,7 @@ var Checkout = function Checkout(props) {
14453
14465
  boxShadow: 'none'
14454
14466
  }
14455
14467
  })), /*#__PURE__*/React__default["default"].createElement("div", {
14456
- className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
14468
+ className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
14457
14469
  }, /*#__PURE__*/React__default["default"].createElement("label", {
14458
14470
  className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
14459
14471
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف', ' ', /*#__PURE__*/React__default["default"].createElement("sup", {
@@ -14464,7 +14476,7 @@ var Checkout = function Checkout(props) {
14464
14476
  }, "*")), /*#__PURE__*/React__default["default"].createElement("input", {
14465
14477
  type: 'text',
14466
14478
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14467
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.mobile,
14479
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.mobile,
14468
14480
  onChange: function onChange(event) {
14469
14481
  var onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
14470
14482
  cartinfoupdater('mobile', onlyNumbers);
@@ -14477,16 +14489,16 @@ var Checkout = function Checkout(props) {
14477
14489
  })), /*#__PURE__*/React__default["default"].createElement("div", {
14478
14490
  className: "col-lg-4 col-md-12 mb-3 flex-column",
14479
14491
  style: {
14480
- display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.customerEmailrequiered) == 1 ? 'flex' : sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.customerEmailrequiered) == 0 ? 'none' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '6808c6295b598' ? 'none' : 'flex'
14492
+ display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.customerEmailrequiered) == 1 ? 'flex' : sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.customerEmailrequiered) == 0 ? 'none' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '6808c6295b598' ? 'none' : 'flex'
14481
14493
  }
14482
14494
  }, /*#__PURE__*/React__default["default"].createElement("label", {
14483
14495
  className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
14484
- }, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.customerEmailrequiered) == 1 && /*#__PURE__*/React__default["default"].createElement("sup", {
14496
+ }, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.customerEmailrequiered) == 1 && /*#__PURE__*/React__default["default"].createElement("sup", {
14485
14497
  "class": "mx-2",
14486
14498
  style: {
14487
14499
  color: 'var(--danger)'
14488
14500
  }
14489
- }, "*"), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '6739bf5880c04' && /*#__PURE__*/React__default["default"].createElement("span", {
14501
+ }, "*"), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '6739bf5880c04' && /*#__PURE__*/React__default["default"].createElement("span", {
14490
14502
  "class": "mx-2",
14491
14503
  style: {
14492
14504
  fontSize: 13
@@ -14494,7 +14506,7 @@ var Checkout = function Checkout(props) {
14494
14506
  }, langdetect == 'en' ? 'Optional' : 'اختياري'), ' '), /*#__PURE__*/React__default["default"].createElement("input", {
14495
14507
  type: 'text',
14496
14508
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14497
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.email,
14509
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.email,
14498
14510
  onChange: function onChange(event) {
14499
14511
  cartinfoupdater('email', event.target.value);
14500
14512
  },
@@ -14547,8 +14559,8 @@ var Checkout = function Checkout(props) {
14547
14559
  return option.id;
14548
14560
  },
14549
14561
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
14550
- var _fetchcustomercartQue70;
14551
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.countryid);
14562
+ var _fetchcustomercartQue75;
14563
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.countryid);
14552
14564
  }),
14553
14565
  onChange: function onChange(option) {
14554
14566
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2w({}, FetchTabexStatesPayloadobjContext);
@@ -14564,7 +14576,7 @@ var Checkout = function Checkout(props) {
14564
14576
  className: sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'
14565
14577
  }, /*#__PURE__*/React__default["default"].createElement("label", {
14566
14578
  className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
14567
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) == '67e448d2ef6e0' ? langdetect == 'en' ? 'Governorate' : 'المحافظة' : lang.stategov, authdetailsContext.instinfo.customerAddressrequiered == 1 && /*#__PURE__*/React__default["default"].createElement("sup", {
14579
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '67e448d2ef6e0' ? langdetect == 'en' ? 'Governorate' : 'المحافظة' : lang.stategov, authdetailsContext.instinfo.customerAddressrequiered == 1 && /*#__PURE__*/React__default["default"].createElement("sup", {
14568
14580
  "class": "mx-2",
14569
14581
  style: {
14570
14582
  color: 'var(--danger)'
@@ -14602,12 +14614,12 @@ var Checkout = function Checkout(props) {
14602
14614
  return option.id;
14603
14615
  },
14604
14616
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
14605
- var _fetchcustomercartQue71;
14606
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.stateid);
14617
+ var _fetchcustomercartQue76;
14618
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.stateid);
14607
14619
  }),
14608
14620
  onChange: function onChange(option) {
14609
- var _fetchcustomercartQue72;
14610
- if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.countryid.length) != 0) {
14621
+ var _fetchcustomercartQue77;
14622
+ if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : _fetchcustomercartQue77.customercart.countryid.length) != 0) {
14611
14623
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2w({}, FetchTabexStatesPayloadobjContext);
14612
14624
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
14613
14625
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -14659,13 +14671,13 @@ var Checkout = function Checkout(props) {
14659
14671
  return option.id;
14660
14672
  },
14661
14673
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
14662
- var _fetchcustomercartQue73;
14663
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.cityid);
14674
+ var _fetchcustomercartQue78;
14675
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.cityid);
14664
14676
  }),
14665
14677
  onChange: function onChange(option) {
14666
- var _fetchcustomercartQue74;
14678
+ var _fetchcustomercartQue79;
14667
14679
  cartinfoupdater('cityid', option.id);
14668
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.customercart) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.zonenotes) != null) {
14680
+ 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.zonenotes) != null) {
14669
14681
  setshowpopup(true);
14670
14682
  }
14671
14683
  },
@@ -14684,7 +14696,7 @@ var Checkout = function Checkout(props) {
14684
14696
  }, "*")), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
14685
14697
  type: 'text',
14686
14698
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14687
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.address,
14699
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.address,
14688
14700
  onChange: function onChange(event) {
14689
14701
  cartinfoupdater('address', event.target.value);
14690
14702
  },
@@ -14699,7 +14711,7 @@ var Checkout = function Checkout(props) {
14699
14711
  }, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
14700
14712
  type: 'text',
14701
14713
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14702
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.notes,
14714
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.customercart.notes,
14703
14715
  onChange: function onChange(event) {
14704
14716
  cartinfoupdater('notes', event.target.value);
14705
14717
  },
@@ -14714,7 +14726,7 @@ var Checkout = function Checkout(props) {
14714
14726
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
14715
14727
  type: 'number',
14716
14728
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14717
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.customercart) === null || _fetchcustomercartQue77 === void 0 ? void 0 : _fetchcustomercartQue77.aff_code,
14729
+ value: 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.aff_code,
14718
14730
  onChange: function onChange(event) {
14719
14731
  cartinfoupdater('aff_code', event.target.value);
14720
14732
  },
@@ -14748,7 +14760,7 @@ var Checkout = function Checkout(props) {
14748
14760
  onChange: function onChange(event) {
14749
14761
  cartinfoupdater('shippingmethod_id', event.target.value);
14750
14762
  },
14751
- value: 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.shippingmethod_id
14763
+ value: 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.shippingmethod_id
14752
14764
  }, /*#__PURE__*/React__default["default"].createElement("option", {
14753
14765
  value: null
14754
14766
  }, langdetect == 'en' ? 'Choose Shipping Method' : 'الشحن اخنر طريقة'), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
@@ -14769,7 +14781,7 @@ var Checkout = function Checkout(props) {
14769
14781
 
14770
14782
  var currentDate = year + '-' + month + '-' + day;
14771
14783
  if (item.type == 'date') {
14772
- var _authdetailsContext$i20, _authdetailsContext$i21;
14784
+ var _authdetailsContext$i19, _authdetailsContext$i20;
14773
14785
  return /*#__PURE__*/React__default["default"].createElement("div", {
14774
14786
  className: "col-lg-6 col-md-12 mb-3"
14775
14787
  }, /*#__PURE__*/React__default["default"].createElement("label", {
@@ -14790,12 +14802,12 @@ var Checkout = function Checkout(props) {
14790
14802
  // }}
14791
14803
  ,
14792
14804
  onChange: function onChange(event) {
14793
- var _authdetailsContext$i18;
14794
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.instid) == '66b4a0338cb14') {
14805
+ var _authdetailsContext$i17;
14806
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.instid) == '66b4a0338cb14') {
14795
14807
  var selectedDate = event.target.value;
14796
14808
  if (selectedDate != undefined && selectedDate != null && selectedDate != '' && selectedDate.length != 0) {
14797
- var _authdetailsContext$i19;
14798
- var minDate = (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 || (_authdetailsContext$i19 = _authdetailsContext$i19.contactinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.instid) === '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000).toISOString().split('T')[0] : null;
14809
+ var _authdetailsContext$i18;
14810
+ var minDate = (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.instid) === '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000).toISOString().split('T')[0] : null;
14799
14811
  if (minDate && selectedDate < minDate) {
14800
14812
  // alert(`Please select a date on or after ${minDate}`);
14801
14813
  return;
@@ -14813,8 +14825,8 @@ var Checkout = function Checkout(props) {
14813
14825
  style: {
14814
14826
  boxShadow: 'none'
14815
14827
  },
14816
- min: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) == '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000) // allow starting 11 days after today
14817
- .toISOString().split('T')[0] : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) == '6908bb20bbca3' ? currentDate : null
14828
+ min: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) == '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000) // allow starting 11 days after today
14829
+ .toISOString().split('T')[0] : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) == '6908bb20bbca3' ? currentDate : null
14818
14830
  }));
14819
14831
  }
14820
14832
  if (item.type == 'time') {
@@ -14924,15 +14936,15 @@ var Checkout = function Checkout(props) {
14924
14936
  })), /*#__PURE__*/React__default["default"].createElement("div", {
14925
14937
  className: "row m-0 w-100 mb-3 pl-3 pr-3"
14926
14938
  }, authdetailsContext.instinfo.acceptCOD == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
14927
- className: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-xl-12 col-lg-12 col-md-12 mb-3 px-4 py-3 px-sm-3' : 'col-xl-4 col-lg-4 col-md-12 mb-3',
14939
+ className: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-xl-12 col-lg-12 col-md-12 mb-3 px-4 py-3 px-sm-3' : 'col-xl-4 col-lg-4 col-md-12 mb-3',
14928
14940
  style: {
14929
- border: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '67d7e9d5dbe11' ? '1px solid #ccc' : 0,
14941
+ border: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '67d7e9d5dbe11' ? '1px solid #ccc' : 0,
14930
14942
  borderRadius: 15
14931
14943
  }
14932
14944
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14933
14945
  "class": "row m-0 w-100 d-flex align-items-center"
14934
14946
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14935
- "class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-9 p-0' : 'col-12 p-0'
14947
+ "class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-9 p-0' : 'col-12 p-0'
14936
14948
  }, /*#__PURE__*/React__default["default"].createElement("label", {
14937
14949
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
14938
14950
  "for": "codcheckbox"
@@ -14940,10 +14952,10 @@ var Checkout = function Checkout(props) {
14940
14952
  id: 'codcheckbox',
14941
14953
  type: "checkbox",
14942
14954
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
14943
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.customercart.paymentmethod) == 'cod' ? true : false,
14955
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.paymentmethod) == 'cod' ? true : false,
14944
14956
  onChange: function onChange() {
14945
- var _fetchcustomercartQue80;
14946
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.paymentmethod) != 'cod') {
14957
+ var _fetchcustomercartQue85;
14958
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 || (_fetchcustomercartQue85 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : _fetchcustomercartQue85.customercart.paymentmethod) != 'cod') {
14947
14959
  cartinfoupdater('paymentmethod', 'cod');
14948
14960
  setinstapaychosen(false);
14949
14961
  }
@@ -14958,21 +14970,21 @@ var Checkout = function Checkout(props) {
14958
14970
  style: {
14959
14971
  color: sectionproperties.checkbox_color
14960
14972
  }
14961
- }, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.contactinfo.instid) == '67d7e9d5dbe11' && /*#__PURE__*/React__default["default"].createElement("div", {
14973
+ }, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) == '67d7e9d5dbe11' && /*#__PURE__*/React__default["default"].createElement("div", {
14962
14974
  "class": "col-3 text-end p-0"
14963
14975
  }, /*#__PURE__*/React__default["default"].createElement("img", {
14964
14976
  src: 'https://tabex-co.com/storage/StaticImages/cod.png',
14965
14977
  "class": checkoutstyles.codimage + ' mx-2 '
14966
14978
  })))), authdetailsContext.instinfo.acceptInstapay == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
14967
- className: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i26 = authdetailsContext.instinfo) === null || _authdetailsContext$i26 === void 0 ? void 0 : _authdetailsContext$i26.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-xl-12 col-lg-12 col-md-12 mb-3 px-4 py-3 px-sm-3' : 'col-xl-4 col-lg-4 col-md-12 mb-3',
14979
+ className: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-xl-12 col-lg-12 col-md-12 mb-3 px-4 py-3 px-sm-3' : 'col-xl-4 col-lg-4 col-md-12 mb-3',
14968
14980
  style: {
14969
- border: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i27 = authdetailsContext.instinfo) === null || _authdetailsContext$i27 === void 0 ? void 0 : _authdetailsContext$i27.contactinfo.instid) == '67d7e9d5dbe11' ? '1px solid #ccc' : 0,
14981
+ border: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i26 = authdetailsContext.instinfo) === null || _authdetailsContext$i26 === void 0 ? void 0 : _authdetailsContext$i26.contactinfo.instid) == '67d7e9d5dbe11' ? '1px solid #ccc' : 0,
14970
14982
  borderRadius: 15
14971
14983
  }
14972
14984
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14973
14985
  "class": "row m-0 w-100 d-flex align-items-center"
14974
14986
  }, /*#__PURE__*/React__default["default"].createElement("div", {
14975
- "class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i28 = authdetailsContext.instinfo) === null || _authdetailsContext$i28 === void 0 ? void 0 : _authdetailsContext$i28.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-9 p-0' : 'col-12 p-0'
14987
+ "class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i27 = authdetailsContext.instinfo) === null || _authdetailsContext$i27 === void 0 ? void 0 : _authdetailsContext$i27.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-9 p-0' : 'col-12 p-0'
14976
14988
  }, /*#__PURE__*/React__default["default"].createElement("label", {
14977
14989
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
14978
14990
  "for": "codcheckbox"
@@ -14980,10 +14992,10 @@ var Checkout = function Checkout(props) {
14980
14992
  id: 'codcheckbox',
14981
14993
  type: "checkbox",
14982
14994
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
14983
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.customercart.paymentmethod) == 'instapay' ? true : false,
14995
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue86 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue86 === void 0 || (_fetchcustomercartQue86 = _fetchcustomercartQue86.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.customercart.paymentmethod) == 'instapay' ? true : false,
14984
14996
  onChange: function onChange() {
14985
- var _fetchcustomercartQue82;
14986
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue82 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.data) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.customercart.paymentmethod) != 'instapay') {
14997
+ var _fetchcustomercartQue87;
14998
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 || (_fetchcustomercartQue87 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : _fetchcustomercartQue87.customercart.paymentmethod) != 'instapay') {
14987
14999
  cartinfoupdater('paymentmethod', 'instapay');
14988
15000
  setinstapaychosen(true);
14989
15001
  // alert('1');
@@ -14999,7 +15011,7 @@ var Checkout = function Checkout(props) {
14999
15011
  style: {
15000
15012
  color: sectionproperties.checkbox_color
15001
15013
  }
15002
- }, langdetect == 'en' ? sectionproperties.instapaytitleen : sectionproperties.instapaytitlear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) == '67d7e9d5dbe11' && /*#__PURE__*/React__default["default"].createElement("div", {
15014
+ }, langdetect == 'en' ? sectionproperties.instapaytitleen : sectionproperties.instapaytitlear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i28 = authdetailsContext.instinfo) === null || _authdetailsContext$i28 === void 0 ? void 0 : _authdetailsContext$i28.contactinfo.instid) == '67d7e9d5dbe11' && /*#__PURE__*/React__default["default"].createElement("div", {
15003
15015
  "class": "col-3 text-end p-0"
15004
15016
  }, /*#__PURE__*/React__default["default"].createElement("img", {
15005
15017
  src: 'https://tabex-co.com/storage/StaticImages/instapay.png',
@@ -15011,10 +15023,10 @@ var Checkout = function Checkout(props) {
15011
15023
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15012
15024
  type: "checkbox",
15013
15025
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15014
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : _fetchcustomercartQue83.customercart.paymentmethod) == 'cardondelivery' ? true : false,
15026
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue88 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue88 === void 0 || (_fetchcustomercartQue88 = _fetchcustomercartQue88.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.paymentmethod) == 'cardondelivery' ? true : false,
15015
15027
  onChange: function onChange() {
15016
- var _fetchcustomercartQue84;
15017
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.paymentmethod) != 'cardondelivery') {
15028
+ var _fetchcustomercartQue89;
15029
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 || (_fetchcustomercartQue89 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : _fetchcustomercartQue89.customercart.paymentmethod) != 'cardondelivery') {
15018
15030
  cartinfoupdater('paymentmethod', 'cardondelivery');
15019
15031
  setinstapaychosen(false);
15020
15032
  }
@@ -15030,24 +15042,24 @@ var Checkout = function Checkout(props) {
15030
15042
  /*#__PURE__*/
15031
15043
  // <div className=""
15032
15044
  React__default["default"].createElement("div", {
15033
- className: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i30 = authdetailsContext.instinfo) === null || _authdetailsContext$i30 === void 0 ? void 0 : _authdetailsContext$i30.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-xl-12 col-lg-12 col-md-12 mb-3 px-4 py-3 px-sm-3' : 'col-xl-4 col-lg-4 col-md-12 mb-3',
15045
+ className: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-xl-12 col-lg-12 col-md-12 mb-3 px-4 py-3 px-sm-3' : 'col-xl-4 col-lg-4 col-md-12 mb-3',
15034
15046
  style: {
15035
- border: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i31 = authdetailsContext.instinfo) === null || _authdetailsContext$i31 === void 0 ? void 0 : _authdetailsContext$i31.contactinfo.instid) == '67d7e9d5dbe11' ? '1px solid #ccc' : 0,
15047
+ border: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i30 = authdetailsContext.instinfo) === null || _authdetailsContext$i30 === void 0 ? void 0 : _authdetailsContext$i30.contactinfo.instid) == '67d7e9d5dbe11' ? '1px solid #ccc' : 0,
15036
15048
  borderRadius: 15
15037
15049
  }
15038
15050
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15039
15051
  "class": "row m-0 w-100 d-flex align-items-center"
15040
15052
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15041
- "class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i32 = authdetailsContext.instinfo) === null || _authdetailsContext$i32 === void 0 ? void 0 : _authdetailsContext$i32.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-9 p-0' : 'col-12 p-0'
15053
+ "class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i31 = authdetailsContext.instinfo) === null || _authdetailsContext$i31 === void 0 ? void 0 : _authdetailsContext$i31.contactinfo.instid) == '67d7e9d5dbe11' ? 'col-9 p-0' : 'col-12 p-0'
15042
15054
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15043
15055
  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 '
15044
15056
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15045
15057
  type: "checkbox",
15046
15058
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15047
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 || (_fetchcustomercartQue85 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : _fetchcustomercartQue85.customercart.paymentmethod) == 'onlinepayment' ? true : false,
15059
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue90 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue90 === void 0 || (_fetchcustomercartQue90 = _fetchcustomercartQue90.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.paymentmethod) == 'onlinepayment' ? true : false,
15048
15060
  onChange: function onChange() {
15049
- var _fetchcustomercartQue86;
15050
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue86 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue86 === void 0 || (_fetchcustomercartQue86 = _fetchcustomercartQue86.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.customercart.paymentmethod) != 'onlinepayment') {
15061
+ var _fetchcustomercartQue91;
15062
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 || (_fetchcustomercartQue91 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue91 === void 0 ? void 0 : _fetchcustomercartQue91.customercart.paymentmethod) != 'onlinepayment') {
15051
15063
  cartinfoupdater('paymentmethod', 'onlinepayment');
15052
15064
  setinstapaychosen(false);
15053
15065
  }
@@ -15059,7 +15071,7 @@ var Checkout = function Checkout(props) {
15059
15071
  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"
15060
15072
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15061
15073
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15062
- }, langdetect == 'en' ? sectionproperties.onlinepaymenttexten : sectionproperties.onlinepaymenttextar))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i33 = authdetailsContext.instinfo) === null || _authdetailsContext$i33 === void 0 ? void 0 : _authdetailsContext$i33.contactinfo.instid) == '67d7e9d5dbe11' && /*#__PURE__*/React__default["default"].createElement("div", {
15074
+ }, langdetect == 'en' ? sectionproperties.onlinepaymenttexten : sectionproperties.onlinepaymenttextar))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i32 = authdetailsContext.instinfo) === null || _authdetailsContext$i32 === void 0 ? void 0 : _authdetailsContext$i32.contactinfo.instid) == '67d7e9d5dbe11' && /*#__PURE__*/React__default["default"].createElement("div", {
15063
15075
  "class": "col-3 text-end p-0"
15064
15076
  }, /*#__PURE__*/React__default["default"].createElement("img", {
15065
15077
  src: 'https://tabex-co.com/storage/StaticImages/visamaster.png',
@@ -15071,10 +15083,10 @@ var Checkout = function Checkout(props) {
15071
15083
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15072
15084
  type: "checkbox",
15073
15085
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15074
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 || (_fetchcustomercartQue87 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : _fetchcustomercartQue87.customercart.paymentmethod) == 'valU' ? true : false,
15086
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue92 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue92 === void 0 || (_fetchcustomercartQue92 = _fetchcustomercartQue92.data) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.customercart.paymentmethod) == 'valU' ? true : false,
15075
15087
  onChange: function onChange() {
15076
- var _fetchcustomercartQue88;
15077
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue88 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue88 === void 0 || (_fetchcustomercartQue88 = _fetchcustomercartQue88.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.paymentmethod) != 'valU') {
15088
+ var _fetchcustomercartQue93;
15089
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 || (_fetchcustomercartQue93 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue93 === void 0 ? void 0 : _fetchcustomercartQue93.customercart.paymentmethod) != 'valU') {
15078
15090
  cartinfoupdater('paymentmethod', 'valU');
15079
15091
  setinstapaychosen(false);
15080
15092
  }
@@ -15093,10 +15105,10 @@ var Checkout = function Checkout(props) {
15093
15105
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15094
15106
  type: "checkbox",
15095
15107
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15096
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 || (_fetchcustomercartQue89 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : _fetchcustomercartQue89.customercart.paymentmethod) == 'mobilewallet' ? true : false,
15108
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue94 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue94 === void 0 || (_fetchcustomercartQue94 = _fetchcustomercartQue94.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.customercart.paymentmethod) == 'mobilewallet' ? true : false,
15097
15109
  onChange: function onChange() {
15098
- var _fetchcustomercartQue90;
15099
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue90 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue90 === void 0 || (_fetchcustomercartQue90 = _fetchcustomercartQue90.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.paymentmethod) != 'mobilewallet') {
15110
+ var _fetchcustomercartQue95;
15111
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 || (_fetchcustomercartQue95 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : _fetchcustomercartQue95.customercart.paymentmethod) != 'mobilewallet') {
15100
15112
  cartinfoupdater('paymentmethod', 'mobilewallet');
15101
15113
  setinstapaychosen(false);
15102
15114
  }
@@ -15108,17 +15120,17 @@ var Checkout = function Checkout(props) {
15108
15120
  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"
15109
15121
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15110
15122
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15111
- }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i34 = authdetailsContext.instinfo) === null || _authdetailsContext$i34 === void 0 ? void 0 : _authdetailsContext$i34.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15123
+ }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i33 = authdetailsContext.instinfo) === null || _authdetailsContext$i33 === void 0 ? void 0 : _authdetailsContext$i33.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15112
15124
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15113
15125
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15114
15126
  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 '
15115
15127
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15116
15128
  type: "checkbox",
15117
15129
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15118
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 || (_fetchcustomercartQue91 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue91 === void 0 || (_fetchcustomercartQue91 = _fetchcustomercartQue91.customercart) === null || _fetchcustomercartQue91 === void 0 ? void 0 : _fetchcustomercartQue91.paymentmethod) == 'forsa' ? true : false,
15130
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue96 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.customercart) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.paymentmethod) == 'forsa' ? true : false,
15119
15131
  onChange: function onChange() {
15120
- var _fetchcustomercartQue92;
15121
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue92 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue92 === void 0 || (_fetchcustomercartQue92 = _fetchcustomercartQue92.data) === null || _fetchcustomercartQue92 === void 0 || (_fetchcustomercartQue92 = _fetchcustomercartQue92.customercart) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.paymentmethod) != 'forsa') {
15132
+ var _fetchcustomercartQue97;
15133
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.customercart) === null || _fetchcustomercartQue97 === void 0 ? void 0 : _fetchcustomercartQue97.paymentmethod) != 'forsa') {
15122
15134
  cartinfoupdater('paymentmethod', 'forsa');
15123
15135
  setinstapaychosen(false);
15124
15136
  }
@@ -15130,17 +15142,17 @@ var Checkout = function Checkout(props) {
15130
15142
  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"
15131
15143
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15132
15144
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15133
- }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i35 = authdetailsContext.instinfo) === null || _authdetailsContext$i35 === void 0 ? void 0 : _authdetailsContext$i35.acceptSouhoolaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15145
+ }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i34 = authdetailsContext.instinfo) === null || _authdetailsContext$i34 === void 0 ? void 0 : _authdetailsContext$i34.acceptSouhoolaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15134
15146
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15135
15147
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15136
15148
  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 '
15137
15149
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15138
15150
  type: "checkbox",
15139
15151
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15140
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 || (_fetchcustomercartQue93 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue93 === void 0 || (_fetchcustomercartQue93 = _fetchcustomercartQue93.customercart) === null || _fetchcustomercartQue93 === void 0 ? void 0 : _fetchcustomercartQue93.paymentmethod) == 'Souhoola' ? true : false,
15152
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue98 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.customercart) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.paymentmethod) == 'Souhoola' ? true : false,
15141
15153
  onChange: function onChange() {
15142
- var _fetchcustomercartQue94;
15143
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue94 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue94 === void 0 || (_fetchcustomercartQue94 = _fetchcustomercartQue94.data) === null || _fetchcustomercartQue94 === void 0 || (_fetchcustomercartQue94 = _fetchcustomercartQue94.customercart) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.paymentmethod) != 'Souhoola') {
15154
+ var _fetchcustomercartQue99;
15155
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 || (_fetchcustomercartQue99 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue99 === void 0 || (_fetchcustomercartQue99 = _fetchcustomercartQue99.customercart) === null || _fetchcustomercartQue99 === void 0 ? void 0 : _fetchcustomercartQue99.paymentmethod) != 'Souhoola') {
15144
15156
  cartinfoupdater('paymentmethod', 'Souhoola');
15145
15157
  setinstapaychosen(false);
15146
15158
  }
@@ -15152,17 +15164,17 @@ var Checkout = function Checkout(props) {
15152
15164
  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"
15153
15165
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15154
15166
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15155
- }, langdetect == 'en' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i36 = authdetailsContext.instinfo) === null || _authdetailsContext$i36 === void 0 ? void 0 : _authdetailsContext$i36.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15167
+ }, langdetect == 'en' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i35 = authdetailsContext.instinfo) === null || _authdetailsContext$i35 === void 0 ? void 0 : _authdetailsContext$i35.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15156
15168
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15157
15169
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15158
15170
  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 '
15159
15171
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15160
15172
  type: "checkbox",
15161
15173
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15162
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 || (_fetchcustomercartQue95 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue95 === void 0 || (_fetchcustomercartQue95 = _fetchcustomercartQue95.customercart) === null || _fetchcustomercartQue95 === void 0 ? void 0 : _fetchcustomercartQue95.paymentmethod) == 'paypal' ? true : false,
15174
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue100 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.customercart) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.paymentmethod) == 'paypal' ? true : false,
15163
15175
  onChange: function onChange() {
15164
- var _fetchcustomercartQue96;
15165
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue96 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.customercart) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.paymentmethod) != 'paypal') {
15176
+ var _fetchcustomercartQue101;
15177
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 || (_fetchcustomercartQue101 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue101 === void 0 || (_fetchcustomercartQue101 = _fetchcustomercartQue101.customercart) === null || _fetchcustomercartQue101 === void 0 ? void 0 : _fetchcustomercartQue101.paymentmethod) != 'paypal') {
15166
15178
  cartinfoupdater('paymentmethod', 'paypal');
15167
15179
  setinstapaychosen(false);
15168
15180
  }
@@ -15174,17 +15186,17 @@ var Checkout = function Checkout(props) {
15174
15186
  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"
15175
15187
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15176
15188
  className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
15177
- }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i37 = authdetailsContext.instinfo) === null || _authdetailsContext$i37 === void 0 ? void 0 : _authdetailsContext$i37.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15189
+ }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i36 = authdetailsContext.instinfo) === null || _authdetailsContext$i36 === void 0 ? void 0 : _authdetailsContext$i36.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15178
15190
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15179
15191
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15180
15192
  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 '
15181
15193
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15182
15194
  type: "checkbox",
15183
15195
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15184
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.customercart) === null || _fetchcustomercartQue97 === void 0 ? void 0 : _fetchcustomercartQue97.paymentmethod) == 'bankinstallments' ? true : false,
15196
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue102 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue102 === void 0 || (_fetchcustomercartQue102 = _fetchcustomercartQue102.data) === null || _fetchcustomercartQue102 === void 0 || (_fetchcustomercartQue102 = _fetchcustomercartQue102.customercart) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.paymentmethod) == 'bankinstallments' ? true : false,
15185
15197
  onChange: function onChange() {
15186
- var _fetchcustomercartQue98;
15187
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue98 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.customercart) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.paymentmethod) != 'bankinstallments') {
15198
+ var _fetchcustomercartQue103;
15199
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.customercart) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.paymentmethod) != 'bankinstallments') {
15188
15200
  cartinfoupdater('paymentmethod', 'bankinstallments');
15189
15201
  setinstapaychosen(false);
15190
15202
  }
@@ -15196,17 +15208,17 @@ var Checkout = function Checkout(props) {
15196
15208
  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"
15197
15209
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15198
15210
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15199
- }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i38 = authdetailsContext.instinfo) === null || _authdetailsContext$i38 === void 0 ? void 0 : _authdetailsContext$i38.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15211
+ }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i37 = authdetailsContext.instinfo) === null || _authdetailsContext$i37 === void 0 ? void 0 : _authdetailsContext$i37.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15200
15212
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15201
15213
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15202
15214
  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 '
15203
15215
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15204
15216
  type: "checkbox",
15205
15217
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15206
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 || (_fetchcustomercartQue99 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue99 === void 0 || (_fetchcustomercartQue99 = _fetchcustomercartQue99.customercart) === null || _fetchcustomercartQue99 === void 0 ? void 0 : _fetchcustomercartQue99.paymentmethod) == 'Aman' ? true : false,
15218
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.customercart) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.paymentmethod) == 'Aman' ? true : false,
15207
15219
  onChange: function onChange() {
15208
- var _fetchcustomercartQue100;
15209
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue100 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.customercart) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.paymentmethod) != 'Aman') {
15220
+ var _fetchcustomercartQue105;
15221
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.customercart) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.paymentmethod) != 'Aman') {
15210
15222
  cartinfoupdater('paymentmethod', 'Aman');
15211
15223
  setinstapaychosen(false);
15212
15224
  }
@@ -15218,17 +15230,17 @@ var Checkout = function Checkout(props) {
15218
15230
  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"
15219
15231
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15220
15232
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15221
- }, langdetect == 'en' ? 'Aman' : 'Aman'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i39 = authdetailsContext.instinfo) === null || _authdetailsContext$i39 === void 0 ? void 0 : _authdetailsContext$i39.acceptTamara) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15233
+ }, langdetect == 'en' ? 'Aman' : 'Aman'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i38 = authdetailsContext.instinfo) === null || _authdetailsContext$i38 === void 0 ? void 0 : _authdetailsContext$i38.acceptTamara) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15222
15234
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15223
15235
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15224
15236
  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 '
15225
15237
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15226
15238
  type: "checkbox",
15227
15239
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15228
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 || (_fetchcustomercartQue101 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue101 === void 0 || (_fetchcustomercartQue101 = _fetchcustomercartQue101.customercart) === null || _fetchcustomercartQue101 === void 0 ? void 0 : _fetchcustomercartQue101.paymentmethod) == 'Tamara' ? true : false,
15240
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.customercart) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.paymentmethod) == 'Tamara' ? true : false,
15229
15241
  onChange: function onChange() {
15230
- var _fetchcustomercartQue102;
15231
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue102 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue102 === void 0 || (_fetchcustomercartQue102 = _fetchcustomercartQue102.data) === null || _fetchcustomercartQue102 === void 0 || (_fetchcustomercartQue102 = _fetchcustomercartQue102.customercart) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.paymentmethod) != 'Tamara') {
15242
+ var _fetchcustomercartQue107;
15243
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue107 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue107 === void 0 || (_fetchcustomercartQue107 = _fetchcustomercartQue107.data) === null || _fetchcustomercartQue107 === void 0 || (_fetchcustomercartQue107 = _fetchcustomercartQue107.customercart) === null || _fetchcustomercartQue107 === void 0 ? void 0 : _fetchcustomercartQue107.paymentmethod) != 'Tamara') {
15232
15244
  cartinfoupdater('paymentmethod', 'Tamara');
15233
15245
  setinstapaychosen(false);
15234
15246
  }
@@ -15240,17 +15252,17 @@ var Checkout = function Checkout(props) {
15240
15252
  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"
15241
15253
  })), /*#__PURE__*/React__default["default"].createElement("p", {
15242
15254
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
15243
- }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i40 = authdetailsContext.instinfo) === null || _authdetailsContext$i40 === void 0 ? void 0 : _authdetailsContext$i40.acceptTabby) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15255
+ }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i39 = authdetailsContext.instinfo) === null || _authdetailsContext$i39 === void 0 ? void 0 : _authdetailsContext$i39.acceptTabby) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
15244
15256
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
15245
15257
  }, /*#__PURE__*/React__default["default"].createElement("label", {
15246
15258
  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 '
15247
15259
  }, /*#__PURE__*/React__default["default"].createElement("input", {
15248
15260
  type: "checkbox",
15249
15261
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
15250
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'Tabby' ? true : false,
15262
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue108 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue108 === void 0 || (_fetchcustomercartQue108 = _fetchcustomercartQue108.data) === null || _fetchcustomercartQue108 === void 0 ? void 0 : _fetchcustomercartQue108.customercart.paymentmethod) == 'Tabby' ? true : false,
15251
15263
  onChange: function onChange() {
15252
- var _fetchcustomercartQue104;
15253
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.paymentmethod) != 'Tabby') {
15264
+ var _fetchcustomercartQue109;
15265
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue109 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue109 === void 0 || (_fetchcustomercartQue109 = _fetchcustomercartQue109.data) === null || _fetchcustomercartQue109 === void 0 ? void 0 : _fetchcustomercartQue109.customercart.paymentmethod) != 'Tabby') {
15254
15266
  cartinfoupdater('paymentmethod', 'Tabby');
15255
15267
  setinstapaychosen(false);
15256
15268
  }
@@ -15272,7 +15284,7 @@ var Checkout = function Checkout(props) {
15272
15284
  dangerouslySetInnerHTML: {
15273
15285
  __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
15274
15286
  }
15275
- }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
15287
+ }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue110 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue110 === void 0 || (_fetchcustomercartQue110 = _fetchcustomercartQue110.data) === null || _fetchcustomercartQue110 === void 0 ? void 0 : _fetchcustomercartQue110.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
15276
15288
  className: "col-lg-12 p-0 w-100 mb-3"
15277
15289
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15278
15290
  style: {
@@ -15412,7 +15424,7 @@ var Checkout = function Checkout(props) {
15412
15424
  color: '#000',
15413
15425
  textAlign: 'center'
15414
15426
  }
15415
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.customercart) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
15427
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue111 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue111 === void 0 || (_fetchcustomercartQue111 = _fetchcustomercartQue111.data) === null || _fetchcustomercartQue111 === void 0 || (_fetchcustomercartQue111 = _fetchcustomercartQue111.customercart) === null || _fetchcustomercartQue111 === void 0 ? void 0 : _fetchcustomercartQue111.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
15416
15428
  };
15417
15429
 
15418
15430
  function ownKeys$2v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }