tabexseriescomponents 0.0.490 → 0.0.492

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -9161,7 +9161,7 @@
9161
9161
  return import('react-select');
9162
9162
  });
9163
9163
  var Checkout = function Checkout(props) {
9164
- var _css, _checkoutstyles, _ref, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue67, _fetchcustomercartQue69, _fetchcustomercartQue71, _fetchcustomercartQue73, _authdetailsContext$i4, _fetchcustomercartQue75, _authdetailsContext$i5, _fetchcustomercartQue77, _authdetailsContext$i6, _fetchcustomercartQue79, _fetchcustomercartQue81;
9164
+ var _css, _checkoutstyles, _ref, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue69, _fetchcustomercartQue71, _fetchcustomercartQue73, _fetchcustomercartQue75, _authdetailsContext$i4, _fetchcustomercartQue77, _authdetailsContext$i5, _fetchcustomercartQue79, _authdetailsContext$i6, _fetchcustomercartQue81, _fetchcustomercartQue83;
9165
9165
  var _useState = React.useState(null),
9166
9166
  _useState2 = _slicedToArray__default["default"](_useState, 2);
9167
9167
  _useState2[0];
@@ -9502,6 +9502,7 @@
9502
9502
  aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.aff_code,
9503
9503
  mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
9504
9504
  if (data.data.status) {
9505
+ var _fetchcustomercartQue29, _fetchcustomercartQue30;
9505
9506
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
9506
9507
  cartarr.data = data.data.cartresponse;
9507
9508
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
@@ -9509,7 +9510,14 @@
9509
9510
  // const cookies = new Cookies();
9510
9511
  localStorage.setItem('cdata', data.data.cdata);
9511
9512
  }
9512
- AddOrderMutationContext.mutate();
9513
+ if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.name.length) < 3) {
9514
+ NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
9515
+ } else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.mobile.length) < 11) {
9516
+ NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
9517
+ } else {
9518
+ AddOrderMutationContext.mutate();
9519
+ }
9520
+ // AddOrderMutationContext.mutate();
9513
9521
  } else {
9514
9522
  NotificationManager.warning('', data.data.reason);
9515
9523
  }
@@ -9532,7 +9540,7 @@
9532
9540
  return isloading;
9533
9541
  };
9534
9542
  var Mycart = function Mycart() {
9535
- var _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54;
9543
+ var _fetchcustomercartQue31, _fetchcustomercartQue32, _fetchcustomercartQue33, _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56;
9536
9544
  return /*#__PURE__*/React__default["default"].createElement("div", {
9537
9545
  className: "row m-0 w-100 mb-md-3"
9538
9546
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -9557,7 +9565,7 @@
9557
9565
  className: "row m-0 w-100"
9558
9566
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9559
9567
  className: "col-lg-12 p-0"
9560
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.cartitems.map(function (item, index) {
9568
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.cartitems.map(function (item, index) {
9561
9569
  if (item.product_extrafields != null) {
9562
9570
  var product_extrafields = JSON.parse(item.product_extrafields);
9563
9571
  // var product_extrafields_parsed = JSON.stringify(product_extrafields);
@@ -9680,13 +9688,13 @@
9680
9688
  type: "text",
9681
9689
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
9682
9690
  placeholder: lang.giftcarddicountcode,
9683
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.couponname,
9691
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.couponname,
9684
9692
  onChange: function onChange(event) {
9685
9693
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
9686
9694
  cartarr.data.customercart.couponname = event.target.value;
9687
9695
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
9688
9696
  },
9689
- disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue31 !== void 0 && (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) !== null && _fetchcustomercartQue31 !== void 0 && _fetchcustomercartQue31.customercart.couponexists ? true : false,
9697
+ disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue33 !== void 0 && (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) !== null && _fetchcustomercartQue33 !== void 0 && _fetchcustomercartQue33.customercart.couponexists ? true : false,
9690
9698
  style: {
9691
9699
  boxShadow: 'none'
9692
9700
  }
@@ -9695,14 +9703,14 @@
9695
9703
  }, /*#__PURE__*/React__default["default"].createElement("button", {
9696
9704
  className: " ".concat(checkoutstyles.applybtnstyles),
9697
9705
  onClick: function onClick() {
9698
- var _fetchcustomercartQue32;
9699
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue32 !== void 0 && (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) !== null && _fetchcustomercartQue32 !== void 0 && _fetchcustomercartQue32.customercart.couponexists)) {
9700
- var _fetchcustomercartQue33, _fetchcustomercartQue34;
9706
+ var _fetchcustomercartQue34;
9707
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue34 !== void 0 && (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) !== null && _fetchcustomercartQue34 !== void 0 && _fetchcustomercartQue34.customercart.couponexists)) {
9708
+ var _fetchcustomercartQue35, _fetchcustomercartQue36;
9701
9709
  var payloadobj = {
9702
- couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.couponname,
9710
+ couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue35 === void 0 ? void 0 : _fetchcustomercartQue35.customercart.couponname,
9703
9711
  functype: 'add'
9704
9712
  };
9705
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.couponname.length) != 0) {
9713
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.couponname.length) != 0) {
9706
9714
  ApplyPromoCodeMutationContext.mutate(payloadobj);
9707
9715
  } else {
9708
9716
  NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
@@ -9717,14 +9725,14 @@
9717
9725
  disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
9718
9726
  }, /*#__PURE__*/React__default["default"].createElement("span", {
9719
9727
  className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
9720
- }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue35 !== void 0 && (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) !== null && _fetchcustomercartQue35 !== void 0 && _fetchcustomercartQue35.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React__default["default"].createElement("div", {
9728
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue37 !== void 0 && (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) !== null && _fetchcustomercartQue37 !== void 0 && _fetchcustomercartQue37.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React__default["default"].createElement("div", {
9721
9729
  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 '
9722
9730
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
9723
9731
  color: "#fff",
9724
9732
  width: "20px",
9725
9733
  height: "20px",
9726
9734
  duration: "1s"
9727
- })))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.customercart) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.availablewalletbalance) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9735
+ })))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue38 === void 0 || (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) === null || _fetchcustomercartQue38 === void 0 || (_fetchcustomercartQue38 = _fetchcustomercartQue38.customercart) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.availablewalletbalance) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9728
9736
  className: "row m-0 w-100"
9729
9737
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9730
9738
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -9734,7 +9742,7 @@
9734
9742
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9735
9743
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9736
9744
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
9737
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 || (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue37 === void 0 || (_fetchcustomercartQue37 = _fetchcustomercartQue37.customercart) === null || _fetchcustomercartQue37 === void 0 ? void 0 : _fetchcustomercartQue37.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue38 === void 0 || (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) === null || _fetchcustomercartQue38 === void 0 || (_fetchcustomercartQue38 = _fetchcustomercartQue38.customercart) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.usewalletpoints) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9745
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.customercart) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue40 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.customercart) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.usewalletpoints) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9738
9746
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
9739
9747
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9740
9748
  style: {
@@ -9744,7 +9752,7 @@
9744
9752
  onClick: function onClick() {
9745
9753
  usewalletpoints();
9746
9754
  }
9747
- }, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.customercart) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
9755
+ }, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.customercart) === null || _fetchcustomercartQue41 === void 0 ? void 0 : _fetchcustomercartQue41.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
9748
9756
  className: "row m-0 w-100"
9749
9757
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9750
9758
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
@@ -9766,9 +9774,9 @@
9766
9774
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9767
9775
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9768
9776
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
9769
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue40 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.data) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.customercart) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.genpayments) === null || _fetchcustomercartQue41 === void 0 ? void 0 : _fetchcustomercartQue41.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9777
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue42 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.data) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (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 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.genpayments) === null || _fetchcustomercartQue43 === void 0 ? void 0 : _fetchcustomercartQue43.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9770
9778
  className: "row m-0 w-100"
9771
- }, 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 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.genpayments) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.map(function (item, index) {
9779
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue44 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.customercart) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.genpayments) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.map(function (item, index) {
9772
9780
  return /*#__PURE__*/React__default["default"].createElement("div", {
9773
9781
  "class": "col-lg-12 p-0"
9774
9782
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -9788,7 +9796,7 @@
9788
9796
  color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
9789
9797
  }
9790
9798
  }, 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, "%")))));
9791
- }))), (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.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
9799
+ }))), (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", {
9792
9800
  className: "row m-0 w-100"
9793
9801
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9794
9802
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -9801,7 +9809,7 @@
9801
9809
  style: {
9802
9810
  color: 'red'
9803
9811
  }
9804
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(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.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9812
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.customercart) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : _fetchcustomercartQue47.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
9805
9813
  className: "col-lg-12 p-0 mb-1"
9806
9814
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9807
9815
  className: "row m-0 w-100"
@@ -9813,7 +9821,7 @@
9813
9821
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9814
9822
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9815
9823
  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 '
9816
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : _fetchcustomercartQue47.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 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.discountprice).toFixed(2), ' ', 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 ? void 0 : _fetchcustomercartQue49.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
9824
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue49 === void 0 ? void 0 : _fetchcustomercartQue49.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "- ", langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
9817
9825
  className: "col-lg-12 p-0"
9818
9826
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9819
9827
  className: "row m-0 w-100"
@@ -9821,11 +9829,11 @@
9821
9829
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
9822
9830
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9823
9831
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
9824
- }, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
9832
+ }, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
9825
9833
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9826
9834
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9827
9835
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
9828
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue52 !== void 0 && (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) !== null && _fetchcustomercartQue52 !== void 0 && _fetchcustomercartQue52.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
9836
+ }, 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 ? void 0 : _fetchcustomercartQue53.customercart.zoneprice).toFixed(2), ' ', 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 && _fetchcustomercartQue54.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
9829
9837
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9830
9838
  }, /*#__PURE__*/React__default["default"].createElement("p", {
9831
9839
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -9864,7 +9872,7 @@
9864
9872
  textTransform: sectionproperties.total_texttransform,
9865
9873
  color: sectionproperties.total_color
9866
9874
  }
9867
- }, 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 ? void 0 : _fetchcustomercartQue53.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", {
9875
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : _fetchcustomercartQue55.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", {
9868
9876
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
9869
9877
  style: {
9870
9878
  background: '#eee',
@@ -9899,7 +9907,7 @@
9899
9907
  width: "20px",
9900
9908
  height: "20px",
9901
9909
  duration: "1s"
9902
- }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.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 : ''))))));
9910
+ }), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.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 : ''))))));
9903
9911
  };
9904
9912
  return /*#__PURE__*/React__default["default"].createElement("div", {
9905
9913
  className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
@@ -10048,7 +10056,7 @@
10048
10056
  }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
10049
10057
  type: 'text',
10050
10058
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10051
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : _fetchcustomercartQue55.customercart.name,
10059
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.customercart.name,
10052
10060
  onChange: function onChange(event) {
10053
10061
  cartinfoupdater('name', event.target.value);
10054
10062
  },
@@ -10063,7 +10071,7 @@
10063
10071
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
10064
10072
  type: 'text',
10065
10073
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10066
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.mobile,
10074
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.mobile,
10067
10075
  onChange: function onChange(event) {
10068
10076
  cartinfoupdater('mobile', event.target.value);
10069
10077
  },
@@ -10078,7 +10086,7 @@
10078
10086
  }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
10079
10087
  type: 'text',
10080
10088
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10081
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.customercart.email,
10089
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.email,
10082
10090
  onChange: function onChange(event) {
10083
10091
  cartinfoupdater('email', event.target.value);
10084
10092
  },
@@ -10122,8 +10130,8 @@
10122
10130
  return option.id;
10123
10131
  },
10124
10132
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
10125
- var _fetchcustomercartQue58;
10126
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.countryid);
10133
+ var _fetchcustomercartQue60;
10134
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.countryid);
10127
10135
  }),
10128
10136
  onChange: function onChange(option) {
10129
10137
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2k({}, FetchTabexStatesPayloadobjContext);
@@ -10168,12 +10176,12 @@
10168
10176
  return option.id;
10169
10177
  },
10170
10178
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
10171
- var _fetchcustomercartQue59;
10172
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.stateid);
10179
+ var _fetchcustomercartQue61;
10180
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.stateid);
10173
10181
  }),
10174
10182
  onChange: function onChange(option) {
10175
- var _fetchcustomercartQue60;
10176
- if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.countryid.length) != 0) {
10183
+ var _fetchcustomercartQue62;
10184
+ if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.countryid.length) != 0) {
10177
10185
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2k({}, FetchTabexStatesPayloadobjContext);
10178
10186
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
10179
10187
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -10216,8 +10224,8 @@
10216
10224
  return option.id;
10217
10225
  },
10218
10226
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
10219
- var _fetchcustomercartQue61;
10220
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.cityid);
10227
+ var _fetchcustomercartQue63;
10228
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.cityid);
10221
10229
  }),
10222
10230
  onChange: function onChange(option) {
10223
10231
  cartinfoupdater('cityid', option.id);
@@ -10232,7 +10240,7 @@
10232
10240
  }, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
10233
10241
  type: 'text',
10234
10242
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10235
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.address,
10243
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.address,
10236
10244
  onChange: function onChange(event) {
10237
10245
  cartinfoupdater('address', event.target.value);
10238
10246
  },
@@ -10247,7 +10255,7 @@
10247
10255
  }, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
10248
10256
  type: 'text',
10249
10257
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10250
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.notes,
10258
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.notes,
10251
10259
  onChange: function onChange(event) {
10252
10260
  cartinfoupdater('notes', event.target.value);
10253
10261
  },
@@ -10262,7 +10270,7 @@
10262
10270
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
10263
10271
  type: 'number',
10264
10272
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10265
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.customercart) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.aff_code,
10273
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.customercart) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.aff_code,
10266
10274
  onChange: function onChange(event) {
10267
10275
  cartinfoupdater('aff_code', event.target.value);
10268
10276
  },
@@ -10293,10 +10301,10 @@
10293
10301
  id: 'codcheckbox',
10294
10302
  type: "checkbox",
10295
10303
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10296
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.paymentmethod) == 'cod' ? true : false,
10304
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.paymentmethod) == 'cod' ? true : false,
10297
10305
  onChange: function onChange() {
10298
- var _fetchcustomercartQue66;
10299
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.paymentmethod) != 'cod') {
10306
+ var _fetchcustomercartQue68;
10307
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.paymentmethod) != 'cod') {
10300
10308
  cartinfoupdater('paymentmethod', 'cod');
10301
10309
  }
10302
10310
  }
@@ -10317,10 +10325,10 @@
10317
10325
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10318
10326
  type: "checkbox",
10319
10327
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10320
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.paymentmethod) == 'cardondelivery' ? true : false,
10328
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.paymentmethod) == 'cardondelivery' ? true : false,
10321
10329
  onChange: function onChange() {
10322
- var _fetchcustomercartQue68;
10323
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.paymentmethod) != 'cardondelivery') {
10330
+ var _fetchcustomercartQue70;
10331
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.paymentmethod) != 'cardondelivery') {
10324
10332
  cartinfoupdater('paymentmethod', 'cardondelivery');
10325
10333
  }
10326
10334
  }
@@ -10338,10 +10346,10 @@
10338
10346
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10339
10347
  type: "checkbox",
10340
10348
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10341
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.paymentmethod) == 'onlinepayment' ? true : false,
10349
+ checked: (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' ? true : false,
10342
10350
  onChange: function onChange() {
10343
- var _fetchcustomercartQue70;
10344
- if ((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') {
10351
+ var _fetchcustomercartQue72;
10352
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.paymentmethod) != 'onlinepayment') {
10345
10353
  cartinfoupdater('paymentmethod', 'onlinepayment');
10346
10354
  }
10347
10355
  }
@@ -10359,10 +10367,10 @@
10359
10367
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10360
10368
  type: "checkbox",
10361
10369
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10362
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.paymentmethod) == 'valU' ? true : false,
10370
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.paymentmethod) == 'valU' ? true : false,
10363
10371
  onChange: function onChange() {
10364
- var _fetchcustomercartQue72;
10365
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.paymentmethod) != 'valU') {
10372
+ var _fetchcustomercartQue74;
10373
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.paymentmethod) != 'valU') {
10366
10374
  cartinfoupdater('paymentmethod', 'valU');
10367
10375
  }
10368
10376
  }
@@ -10380,10 +10388,10 @@
10380
10388
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10381
10389
  type: "checkbox",
10382
10390
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10383
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.paymentmethod) == 'mobilewallet' ? true : false,
10391
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.paymentmethod) == 'mobilewallet' ? true : false,
10384
10392
  onChange: function onChange() {
10385
- var _fetchcustomercartQue74;
10386
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.paymentmethod) != 'mobilewallet') {
10393
+ var _fetchcustomercartQue76;
10394
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.paymentmethod) != 'mobilewallet') {
10387
10395
  cartinfoupdater('paymentmethod', 'mobilewallet');
10388
10396
  }
10389
10397
  }
@@ -10401,10 +10409,10 @@
10401
10409
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10402
10410
  type: "checkbox",
10403
10411
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10404
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.customercart) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.paymentmethod) == 'forsa' ? true : false,
10412
+ checked: (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.paymentmethod) == 'forsa' ? true : false,
10405
10413
  onChange: function onChange() {
10406
- var _fetchcustomercartQue76;
10407
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.customercart) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.paymentmethod) != 'forsa') {
10414
+ var _fetchcustomercartQue78;
10415
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.customercart) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.paymentmethod) != 'forsa') {
10408
10416
  cartinfoupdater('paymentmethod', 'forsa');
10409
10417
  }
10410
10418
  }
@@ -10422,10 +10430,10 @@
10422
10430
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10423
10431
  type: "checkbox",
10424
10432
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10425
- checked: (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.paymentmethod) == 'bankinstallments' ? true : false,
10433
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.customercart) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.paymentmethod) == 'bankinstallments' ? true : false,
10426
10434
  onChange: function onChange() {
10427
- var _fetchcustomercartQue78;
10428
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.customercart) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.paymentmethod) != 'bankinstallments') {
10435
+ var _fetchcustomercartQue80;
10436
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.customercart) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.paymentmethod) != 'bankinstallments') {
10429
10437
  cartinfoupdater('paymentmethod', 'bankinstallments');
10430
10438
  }
10431
10439
  }
@@ -10443,10 +10451,10 @@
10443
10451
  }, /*#__PURE__*/React__default["default"].createElement("input", {
10444
10452
  type: "checkbox",
10445
10453
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10446
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.customercart) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.paymentmethod) == 'Aman' ? true : false,
10454
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.customercart) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.paymentmethod) == 'Aman' ? true : false,
10447
10455
  onChange: function onChange() {
10448
- var _fetchcustomercartQue80;
10449
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.customercart) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.paymentmethod) != 'Aman') {
10456
+ var _fetchcustomercartQue82;
10457
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue82 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.customercart) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.paymentmethod) != 'Aman') {
10450
10458
  cartinfoupdater('paymentmethod', 'Aman');
10451
10459
  }
10452
10460
  }
@@ -10457,7 +10465,7 @@
10457
10465
  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"
10458
10466
  })), /*#__PURE__*/React__default["default"].createElement("p", {
10459
10467
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
10460
- }, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
10468
+ }, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : _fetchcustomercartQue83.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
10461
10469
  className: "col-lg-12 p-0 w-100 mb-3"
10462
10470
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10463
10471
  style: {
@@ -10725,7 +10733,7 @@
10725
10733
  return import('react-select');
10726
10734
  });
10727
10735
  var CustomerInformationForm = function CustomerInformationForm(props) {
10728
- var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _css, _authdetailsContext$i3, _authdetailsContext$c, _authdetailsContext$c2;
10736
+ var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _css, _authdetailsContext$i2, _authdetailsContext$c, _authdetailsContext$c2;
10729
10737
  var lang = props.actions.lang;
10730
10738
  var langdetect = props.actions.langdetect;
10731
10739
  props.actions.routingcountext;
@@ -10875,7 +10883,6 @@
10875
10883
  return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
10876
10884
  };
10877
10885
  var verifypayload = function verifypayload() {
10878
- var _authdetailsContext$i2;
10879
10886
  var iscompleted = false;
10880
10887
  var isshippingaddresscompleted = false;
10881
10888
  var passwordvalidation = false;
@@ -10909,14 +10916,14 @@
10909
10916
  } else {
10910
10917
  isshippingaddresscompleted = true;
10911
10918
  }
10912
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '652e3ae969122') {
10913
- if (payloadobj.name.length < 3) {
10914
- NotificationManager.warning('', langdetect == 'en' ? 'Please Write your Full Name' : 'من فضلك اكتب اسمك كاملاً');
10915
- }
10916
- if (payloadobj.countrydialcode == '20' && payloadobj.mobile.length < 10) {
10917
- NotificationManager.warning('', langdetect == 'en' ? 'Please Write valid phone number' : 'من فضلك اكتب رقم تليفون صحيح');
10918
- }
10919
- }
10919
+ // if (authdetailsContext?.instinfo?.contactinfo.instid == '652e3ae969122') {
10920
+ // if (payloadobj.name.length < 3) {
10921
+ // NotificationManager.warning('', langdetect == 'en' ? 'Please Write your Full Name' : 'من فضلك اكتب اسمك كاملاً');
10922
+ // }
10923
+ // if (payloadobj.countrydialcode == '20' && payloadobj.mobile.length < 10) {
10924
+ // NotificationManager.warning('', langdetect == 'en' ? 'Please Write valid phone number' : 'من فضلك اكتب رقم تليفون صحيح');
10925
+ // }
10926
+ // }
10920
10927
  if (validateEmailstring(payloadobj.email)) {
10921
10928
  if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
10922
10929
  if (isshippingaddresscompleted) {
@@ -11491,7 +11498,7 @@
11491
11498
  style: {
11492
11499
  background: sectionproperties.formLeftbgColor
11493
11500
  }
11494
- }, PersonalInformation(), Address(), Otherinformation(), sectionproperties.hidepassword == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.ispasswordrequired_signup) == 1 && Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React__default["default"].createElement("div", {
11501
+ }, PersonalInformation(), Address(), Otherinformation(), sectionproperties.hidepassword == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.ispasswordrequired_signup) == 1 && Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React__default["default"].createElement("div", {
11495
11502
  className: "col-lg-12 p-0"
11496
11503
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11497
11504
  className: "row ml-0 mr-0 w-100"
@@ -59345,6 +59352,10 @@
59345
59352
  var ikimagecredcontext = props.actions.ikimagecredcontext;
59346
59353
  var routingcountext = props.actions.routingcountext;
59347
59354
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
59355
+ var _useState7 = React.useState(false),
59356
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
59357
+ showpopup = _useState8[0],
59358
+ setshowpopup = _useState8[1];
59348
59359
  React.useEffect(function () {
59349
59360
  if (props.srcfrom == 'addsectionform') {
59350
59361
  var secpropobj = {};
@@ -59473,16 +59484,7 @@
59473
59484
  paddingBottom: sectionproperties.marginBottom + 'px',
59474
59485
  paddingTop: sectionproperties.marginTop + 'px'
59475
59486
  }
59476
- }, /*#__PURE__*/React__default["default"].createElement("iframe", {
59477
- id: "player",
59478
- src: 'http://radio.hvips.com:8056/stream',
59479
- width: "0",
59480
- height: "0",
59481
- allowfullscreen: "",
59482
- loading: "lazy",
59483
- referrerpolicy: "no-referrer-when-downgrade",
59484
- allow: "autoplay"
59485
- }), /*#__PURE__*/React__default["default"].createElement("div", {
59487
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
59486
59488
  "class": cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-flex justify-content-center' : 'col-lg-12 p-0 d-flex justify-content-center h-md-auto h-sm-auto',
59487
59489
  style: {
59488
59490
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
@@ -59530,7 +59532,9 @@
59530
59532
  paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
59531
59533
  },
59532
59534
  onClick: function onClick() {
59533
- if (item.IsClickableimg == 'Yes') {
59535
+ if (sectionproperties.showplayer = 'Show') {
59536
+ setshowpopup(true);
59537
+ } else if (item.IsClickableimg == 'Yes') {
59534
59538
  if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
59535
59539
  routingcountext(item.clickableimg_page_route, false, '');
59536
59540
  } else {
@@ -59566,7 +59570,9 @@
59566
59570
  paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
59567
59571
  },
59568
59572
  onClick: function onClick() {
59569
- if (item.IsClickableimg == 'Yes') {
59573
+ if (sectionproperties.showplayer = 'Show') {
59574
+ setshowpopup(true);
59575
+ } else if (item.IsClickableimg == 'Yes') {
59570
59576
  if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
59571
59577
  routingcountext(item.clickableimg_page_route, false, '');
59572
59578
  } else {
@@ -59757,7 +59763,48 @@
59757
59763
  sectionproperties: sectionproperties,
59758
59764
  props: props
59759
59765
  });
59760
- }))))))));
59766
+ }))))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
59767
+ show: showpopup,
59768
+ onHide: function onHide() {
59769
+ setshowpopup(false);
59770
+ },
59771
+ centered: true,
59772
+ size: 'md'
59773
+ }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
59774
+ className: "allcentered bgdanger-hover cursor-pointer",
59775
+ onClick: function onClick() {
59776
+ setshowpopup(false);
59777
+ },
59778
+ style: {
59779
+ position: 'absolute',
59780
+ top: -40,
59781
+ backgroundColor: '#000',
59782
+ width: 35,
59783
+ height: 35,
59784
+ right: 0
59785
+ }
59786
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
59787
+ "class": "h-100 allcentered text-black"
59788
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
59789
+ size: 20,
59790
+ "class": "",
59791
+ color: '#fff'
59792
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
59793
+ "class": "allcentered",
59794
+ style: {
59795
+ width: '100%',
59796
+ height: '100%'
59797
+ }
59798
+ }, /*#__PURE__*/React__default["default"].createElement("iframe", {
59799
+ id: "player",
59800
+ src: 'http://radio.hvips.com:8056/stream',
59801
+ width: "100%",
59802
+ height: "100%",
59803
+ allowfullscreen: "",
59804
+ loading: "lazy",
59805
+ referrerpolicy: "no-referrer-when-downgrade",
59806
+ allow: "autoplay"
59807
+ }))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
59761
59808
  };
59762
59809
  var easingFunctions = {
59763
59810
  noEasing: undefined,