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.esm.js CHANGED
@@ -9286,7 +9286,7 @@ var Select$3 = /*#__PURE__*/React.lazy(function () {
9286
9286
  return import('react-select');
9287
9287
  });
9288
9288
  var Checkout = function Checkout(props) {
9289
- 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;
9289
+ 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;
9290
9290
  var _useState = useState(null),
9291
9291
  _useState2 = _slicedToArray(_useState, 2);
9292
9292
  _useState2[0];
@@ -9627,6 +9627,7 @@ var Checkout = function Checkout(props) {
9627
9627
  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,
9628
9628
  mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
9629
9629
  if (data.data.status) {
9630
+ var _fetchcustomercartQue29, _fetchcustomercartQue30;
9630
9631
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
9631
9632
  cartarr.data = data.data.cartresponse;
9632
9633
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
@@ -9634,7 +9635,14 @@ var Checkout = function Checkout(props) {
9634
9635
  // const cookies = new Cookies();
9635
9636
  localStorage.setItem('cdata', data.data.cdata);
9636
9637
  }
9637
- AddOrderMutationContext.mutate();
9638
+ 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) {
9639
+ NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
9640
+ } 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) {
9641
+ NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
9642
+ } else {
9643
+ AddOrderMutationContext.mutate();
9644
+ }
9645
+ // AddOrderMutationContext.mutate();
9638
9646
  } else {
9639
9647
  NotificationManager.warning('', data.data.reason);
9640
9648
  }
@@ -9657,7 +9665,7 @@ var Checkout = function Checkout(props) {
9657
9665
  return isloading;
9658
9666
  };
9659
9667
  var Mycart = function Mycart() {
9660
- var _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54;
9668
+ var _fetchcustomercartQue31, _fetchcustomercartQue32, _fetchcustomercartQue33, _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56;
9661
9669
  return /*#__PURE__*/React.createElement("div", {
9662
9670
  className: "row m-0 w-100 mb-md-3"
9663
9671
  }, /*#__PURE__*/React.createElement("div", {
@@ -9682,7 +9690,7 @@ var Checkout = function Checkout(props) {
9682
9690
  className: "row m-0 w-100"
9683
9691
  }, /*#__PURE__*/React.createElement("div", {
9684
9692
  className: "col-lg-12 p-0"
9685
- }, 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) {
9693
+ }, 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) {
9686
9694
  if (item.product_extrafields != null) {
9687
9695
  var product_extrafields = JSON.parse(item.product_extrafields);
9688
9696
  // var product_extrafields_parsed = JSON.stringify(product_extrafields);
@@ -9805,13 +9813,13 @@ var Checkout = function Checkout(props) {
9805
9813
  type: "text",
9806
9814
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
9807
9815
  placeholder: lang.giftcarddicountcode,
9808
- 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,
9816
+ 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,
9809
9817
  onChange: function onChange(event) {
9810
9818
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
9811
9819
  cartarr.data.customercart.couponname = event.target.value;
9812
9820
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
9813
9821
  },
9814
- 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,
9822
+ 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,
9815
9823
  style: {
9816
9824
  boxShadow: 'none'
9817
9825
  }
@@ -9820,14 +9828,14 @@ var Checkout = function Checkout(props) {
9820
9828
  }, /*#__PURE__*/React.createElement("button", {
9821
9829
  className: " ".concat(checkoutstyles.applybtnstyles),
9822
9830
  onClick: function onClick() {
9823
- var _fetchcustomercartQue32;
9824
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue32 !== void 0 && (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) !== null && _fetchcustomercartQue32 !== void 0 && _fetchcustomercartQue32.customercart.couponexists)) {
9825
- var _fetchcustomercartQue33, _fetchcustomercartQue34;
9831
+ var _fetchcustomercartQue34;
9832
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue34 !== void 0 && (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) !== null && _fetchcustomercartQue34 !== void 0 && _fetchcustomercartQue34.customercart.couponexists)) {
9833
+ var _fetchcustomercartQue35, _fetchcustomercartQue36;
9826
9834
  var payloadobj = {
9827
- 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,
9835
+ 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,
9828
9836
  functype: 'add'
9829
9837
  };
9830
- 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) {
9838
+ 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) {
9831
9839
  ApplyPromoCodeMutationContext.mutate(payloadobj);
9832
9840
  } else {
9833
9841
  NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
@@ -9842,14 +9850,14 @@ var Checkout = function Checkout(props) {
9842
9850
  disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
9843
9851
  }, /*#__PURE__*/React.createElement("span", {
9844
9852
  className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
9845
- }, 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.createElement("div", {
9853
+ }, 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.createElement("div", {
9846
9854
  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 '
9847
9855
  }, /*#__PURE__*/React.createElement(CircularProgress, {
9848
9856
  color: "#fff",
9849
9857
  width: "20px",
9850
9858
  height: "20px",
9851
9859
  duration: "1s"
9852
- })))))), (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.createElement("div", {
9860
+ })))))), (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.createElement("div", {
9853
9861
  className: "row m-0 w-100"
9854
9862
  }, /*#__PURE__*/React.createElement("div", {
9855
9863
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -9859,7 +9867,7 @@ var Checkout = function Checkout(props) {
9859
9867
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9860
9868
  }, /*#__PURE__*/React.createElement("p", {
9861
9869
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
9862
- }, 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.createElement("div", {
9870
+ }, 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.createElement("div", {
9863
9871
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
9864
9872
  }, /*#__PURE__*/React.createElement("p", {
9865
9873
  style: {
@@ -9869,7 +9877,7 @@ var Checkout = function Checkout(props) {
9869
9877
  onClick: function onClick() {
9870
9878
  usewalletpoints();
9871
9879
  }
9872
- }, 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.createElement("div", {
9880
+ }, 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.createElement("div", {
9873
9881
  className: "row m-0 w-100"
9874
9882
  }, /*#__PURE__*/React.createElement("div", {
9875
9883
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
@@ -9891,9 +9899,9 @@ var Checkout = function Checkout(props) {
9891
9899
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9892
9900
  }, /*#__PURE__*/React.createElement("p", {
9893
9901
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
9894
- }, 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.createElement("div", {
9902
+ }, 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.createElement("div", {
9895
9903
  className: "row m-0 w-100"
9896
- }, 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) {
9904
+ }, 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) {
9897
9905
  return /*#__PURE__*/React.createElement("div", {
9898
9906
  "class": "col-lg-12 p-0"
9899
9907
  }, /*#__PURE__*/React.createElement("div", {
@@ -9913,7 +9921,7 @@ var Checkout = function Checkout(props) {
9913
9921
  color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
9914
9922
  }
9915
9923
  }, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React.createElement("span", null, item.value, "%")))));
9916
- }))), (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.createElement("div", {
9924
+ }))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.customercart) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
9917
9925
  className: "row m-0 w-100"
9918
9926
  }, /*#__PURE__*/React.createElement("div", {
9919
9927
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -9926,7 +9934,7 @@ var Checkout = function Checkout(props) {
9926
9934
  style: {
9927
9935
  color: 'red'
9928
9936
  }
9929
- }, 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.createElement("div", {
9937
+ }, 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.createElement("div", {
9930
9938
  className: "col-lg-12 p-0 mb-1"
9931
9939
  }, /*#__PURE__*/React.createElement("div", {
9932
9940
  className: "row m-0 w-100"
@@ -9938,7 +9946,7 @@ var Checkout = function Checkout(props) {
9938
9946
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9939
9947
  }, /*#__PURE__*/React.createElement("p", {
9940
9948
  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 '
9941
- }, (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.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.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
9949
+ }, (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.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.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
9942
9950
  className: "col-lg-12 p-0"
9943
9951
  }, /*#__PURE__*/React.createElement("div", {
9944
9952
  className: "row m-0 w-100"
@@ -9946,11 +9954,11 @@ var Checkout = function Checkout(props) {
9946
9954
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
9947
9955
  }, /*#__PURE__*/React.createElement("p", {
9948
9956
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
9949
- }, 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.createElement("div", {
9957
+ }, 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.createElement("div", {
9950
9958
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9951
9959
  }, /*#__PURE__*/React.createElement("p", {
9952
9960
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
9953
- }, 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.createElement("div", {
9961
+ }, 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.createElement("div", {
9954
9962
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
9955
9963
  }, /*#__PURE__*/React.createElement("p", {
9956
9964
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -9989,7 +9997,7 @@ var Checkout = function Checkout(props) {
9989
9997
  textTransform: sectionproperties.total_texttransform,
9990
9998
  color: sectionproperties.total_color
9991
9999
  }
9992
- }, 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.createElement("div", {
10000
+ }, 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.createElement("div", {
9993
10001
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
9994
10002
  style: {
9995
10003
  background: '#eee',
@@ -10024,7 +10032,7 @@ var Checkout = function Checkout(props) {
10024
10032
  width: "20px",
10025
10033
  height: "20px",
10026
10034
  duration: "1s"
10027
- }), !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 : ''))))));
10035
+ }), !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 : ''))))));
10028
10036
  };
10029
10037
  return /*#__PURE__*/React.createElement("div", {
10030
10038
  className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
@@ -10173,7 +10181,7 @@ var Checkout = function Checkout(props) {
10173
10181
  }, lang.name), /*#__PURE__*/React.createElement("input", {
10174
10182
  type: 'text',
10175
10183
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10176
- 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,
10184
+ 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,
10177
10185
  onChange: function onChange(event) {
10178
10186
  cartinfoupdater('name', event.target.value);
10179
10187
  },
@@ -10188,7 +10196,7 @@ var Checkout = function Checkout(props) {
10188
10196
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
10189
10197
  type: 'text',
10190
10198
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10191
- 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,
10199
+ 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,
10192
10200
  onChange: function onChange(event) {
10193
10201
  cartinfoupdater('mobile', event.target.value);
10194
10202
  },
@@ -10203,7 +10211,7 @@ var Checkout = function Checkout(props) {
10203
10211
  }, lang.email), /*#__PURE__*/React.createElement("input", {
10204
10212
  type: 'text',
10205
10213
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10206
- 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,
10214
+ 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,
10207
10215
  onChange: function onChange(event) {
10208
10216
  cartinfoupdater('email', event.target.value);
10209
10217
  },
@@ -10247,8 +10255,8 @@ var Checkout = function Checkout(props) {
10247
10255
  return option.id;
10248
10256
  },
10249
10257
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
10250
- var _fetchcustomercartQue58;
10251
- 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);
10258
+ var _fetchcustomercartQue60;
10259
+ 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);
10252
10260
  }),
10253
10261
  onChange: function onChange(option) {
10254
10262
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2k({}, FetchTabexStatesPayloadobjContext);
@@ -10293,12 +10301,12 @@ var Checkout = function Checkout(props) {
10293
10301
  return option.id;
10294
10302
  },
10295
10303
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
10296
- var _fetchcustomercartQue59;
10297
- 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);
10304
+ var _fetchcustomercartQue61;
10305
+ 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);
10298
10306
  }),
10299
10307
  onChange: function onChange(option) {
10300
- var _fetchcustomercartQue60;
10301
- 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) {
10308
+ var _fetchcustomercartQue62;
10309
+ 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) {
10302
10310
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$2k({}, FetchTabexStatesPayloadobjContext);
10303
10311
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
10304
10312
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -10341,8 +10349,8 @@ var Checkout = function Checkout(props) {
10341
10349
  return option.id;
10342
10350
  },
10343
10351
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
10344
- var _fetchcustomercartQue61;
10345
- 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);
10352
+ var _fetchcustomercartQue63;
10353
+ 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);
10346
10354
  }),
10347
10355
  onChange: function onChange(option) {
10348
10356
  cartinfoupdater('cityid', option.id);
@@ -10357,7 +10365,7 @@ var Checkout = function Checkout(props) {
10357
10365
  }, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React.createElement(TextareaAutosize, {
10358
10366
  type: 'text',
10359
10367
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10360
- 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,
10368
+ 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,
10361
10369
  onChange: function onChange(event) {
10362
10370
  cartinfoupdater('address', event.target.value);
10363
10371
  },
@@ -10372,7 +10380,7 @@ var Checkout = function Checkout(props) {
10372
10380
  }, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React.createElement(TextareaAutosize, {
10373
10381
  type: 'text',
10374
10382
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10375
- 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,
10383
+ 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,
10376
10384
  onChange: function onChange(event) {
10377
10385
  cartinfoupdater('notes', event.target.value);
10378
10386
  },
@@ -10387,7 +10395,7 @@ var Checkout = function Checkout(props) {
10387
10395
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
10388
10396
  type: 'number',
10389
10397
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
10390
- 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,
10398
+ 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,
10391
10399
  onChange: function onChange(event) {
10392
10400
  cartinfoupdater('aff_code', event.target.value);
10393
10401
  },
@@ -10418,10 +10426,10 @@ var Checkout = function Checkout(props) {
10418
10426
  id: 'codcheckbox',
10419
10427
  type: "checkbox",
10420
10428
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10421
- 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,
10429
+ 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,
10422
10430
  onChange: function onChange() {
10423
- var _fetchcustomercartQue66;
10424
- 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') {
10431
+ var _fetchcustomercartQue68;
10432
+ 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') {
10425
10433
  cartinfoupdater('paymentmethod', 'cod');
10426
10434
  }
10427
10435
  }
@@ -10442,10 +10450,10 @@ var Checkout = function Checkout(props) {
10442
10450
  }, /*#__PURE__*/React.createElement("input", {
10443
10451
  type: "checkbox",
10444
10452
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10445
- 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,
10453
+ 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,
10446
10454
  onChange: function onChange() {
10447
- var _fetchcustomercartQue68;
10448
- 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') {
10455
+ var _fetchcustomercartQue70;
10456
+ 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') {
10449
10457
  cartinfoupdater('paymentmethod', 'cardondelivery');
10450
10458
  }
10451
10459
  }
@@ -10463,10 +10471,10 @@ var Checkout = function Checkout(props) {
10463
10471
  }, /*#__PURE__*/React.createElement("input", {
10464
10472
  type: "checkbox",
10465
10473
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10466
- 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,
10474
+ 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,
10467
10475
  onChange: function onChange() {
10468
- var _fetchcustomercartQue70;
10469
- 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') {
10476
+ var _fetchcustomercartQue72;
10477
+ 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') {
10470
10478
  cartinfoupdater('paymentmethod', 'onlinepayment');
10471
10479
  }
10472
10480
  }
@@ -10484,10 +10492,10 @@ var Checkout = function Checkout(props) {
10484
10492
  }, /*#__PURE__*/React.createElement("input", {
10485
10493
  type: "checkbox",
10486
10494
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10487
- 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,
10495
+ 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,
10488
10496
  onChange: function onChange() {
10489
- var _fetchcustomercartQue72;
10490
- 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') {
10497
+ var _fetchcustomercartQue74;
10498
+ 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') {
10491
10499
  cartinfoupdater('paymentmethod', 'valU');
10492
10500
  }
10493
10501
  }
@@ -10505,10 +10513,10 @@ var Checkout = function Checkout(props) {
10505
10513
  }, /*#__PURE__*/React.createElement("input", {
10506
10514
  type: "checkbox",
10507
10515
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10508
- 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,
10516
+ 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,
10509
10517
  onChange: function onChange() {
10510
- var _fetchcustomercartQue74;
10511
- 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') {
10518
+ var _fetchcustomercartQue76;
10519
+ 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') {
10512
10520
  cartinfoupdater('paymentmethod', 'mobilewallet');
10513
10521
  }
10514
10522
  }
@@ -10526,10 +10534,10 @@ var Checkout = function Checkout(props) {
10526
10534
  }, /*#__PURE__*/React.createElement("input", {
10527
10535
  type: "checkbox",
10528
10536
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10529
- 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,
10537
+ 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,
10530
10538
  onChange: function onChange() {
10531
- var _fetchcustomercartQue76;
10532
- 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') {
10539
+ var _fetchcustomercartQue78;
10540
+ 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') {
10533
10541
  cartinfoupdater('paymentmethod', 'forsa');
10534
10542
  }
10535
10543
  }
@@ -10547,10 +10555,10 @@ var Checkout = function Checkout(props) {
10547
10555
  }, /*#__PURE__*/React.createElement("input", {
10548
10556
  type: "checkbox",
10549
10557
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10550
- 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,
10558
+ 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,
10551
10559
  onChange: function onChange() {
10552
- var _fetchcustomercartQue78;
10553
- 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') {
10560
+ var _fetchcustomercartQue80;
10561
+ 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') {
10554
10562
  cartinfoupdater('paymentmethod', 'bankinstallments');
10555
10563
  }
10556
10564
  }
@@ -10568,10 +10576,10 @@ var Checkout = function Checkout(props) {
10568
10576
  }, /*#__PURE__*/React.createElement("input", {
10569
10577
  type: "checkbox",
10570
10578
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
10571
- 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,
10579
+ 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,
10572
10580
  onChange: function onChange() {
10573
- var _fetchcustomercartQue80;
10574
- 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') {
10581
+ var _fetchcustomercartQue82;
10582
+ 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') {
10575
10583
  cartinfoupdater('paymentmethod', 'Aman');
10576
10584
  }
10577
10585
  }
@@ -10582,7 +10590,7 @@ var Checkout = function Checkout(props) {
10582
10590
  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"
10583
10591
  })), /*#__PURE__*/React.createElement("p", {
10584
10592
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
10585
- }, 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.createElement("div", {
10593
+ }, 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.createElement("div", {
10586
10594
  className: "col-lg-12 p-0 w-100 mb-3"
10587
10595
  }, /*#__PURE__*/React.createElement("div", {
10588
10596
  style: {
@@ -10850,7 +10858,7 @@ var Select$2 = /*#__PURE__*/React.lazy(function () {
10850
10858
  return import('react-select');
10851
10859
  });
10852
10860
  var CustomerInformationForm = function CustomerInformationForm(props) {
10853
- var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _css, _authdetailsContext$i3, _authdetailsContext$c, _authdetailsContext$c2;
10861
+ var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _css, _authdetailsContext$i2, _authdetailsContext$c, _authdetailsContext$c2;
10854
10862
  var lang = props.actions.lang;
10855
10863
  var langdetect = props.actions.langdetect;
10856
10864
  props.actions.routingcountext;
@@ -11000,7 +11008,6 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
11000
11008
  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,}))$/);
11001
11009
  };
11002
11010
  var verifypayload = function verifypayload() {
11003
- var _authdetailsContext$i2;
11004
11011
  var iscompleted = false;
11005
11012
  var isshippingaddresscompleted = false;
11006
11013
  var passwordvalidation = false;
@@ -11034,14 +11041,14 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
11034
11041
  } else {
11035
11042
  isshippingaddresscompleted = true;
11036
11043
  }
11037
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '652e3ae969122') {
11038
- if (payloadobj.name.length < 3) {
11039
- NotificationManager.warning('', langdetect == 'en' ? 'Please Write your Full Name' : 'من فضلك اكتب اسمك كاملاً');
11040
- }
11041
- if (payloadobj.countrydialcode == '20' && payloadobj.mobile.length < 10) {
11042
- NotificationManager.warning('', langdetect == 'en' ? 'Please Write valid phone number' : 'من فضلك اكتب رقم تليفون صحيح');
11043
- }
11044
- }
11044
+ // if (authdetailsContext?.instinfo?.contactinfo.instid == '652e3ae969122') {
11045
+ // if (payloadobj.name.length < 3) {
11046
+ // NotificationManager.warning('', langdetect == 'en' ? 'Please Write your Full Name' : 'من فضلك اكتب اسمك كاملاً');
11047
+ // }
11048
+ // if (payloadobj.countrydialcode == '20' && payloadobj.mobile.length < 10) {
11049
+ // NotificationManager.warning('', langdetect == 'en' ? 'Please Write valid phone number' : 'من فضلك اكتب رقم تليفون صحيح');
11050
+ // }
11051
+ // }
11045
11052
  if (validateEmailstring(payloadobj.email)) {
11046
11053
  if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
11047
11054
  if (isshippingaddresscompleted) {
@@ -11616,7 +11623,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
11616
11623
  style: {
11617
11624
  background: sectionproperties.formLeftbgColor
11618
11625
  }
11619
- }, 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.createElement("div", {
11626
+ }, 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.createElement("div", {
11620
11627
  className: "col-lg-12 p-0"
11621
11628
  }, /*#__PURE__*/React.createElement("div", {
11622
11629
  className: "row ml-0 mr-0 w-100"
@@ -59470,6 +59477,10 @@ var Slideshowzoom = function Slideshowzoom(props) {
59470
59477
  var ikimagecredcontext = props.actions.ikimagecredcontext;
59471
59478
  var routingcountext = props.actions.routingcountext;
59472
59479
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
59480
+ var _useState7 = useState(false),
59481
+ _useState8 = _slicedToArray(_useState7, 2),
59482
+ showpopup = _useState8[0],
59483
+ setshowpopup = _useState8[1];
59473
59484
  useEffect(function () {
59474
59485
  if (props.srcfrom == 'addsectionform') {
59475
59486
  var secpropobj = {};
@@ -59598,16 +59609,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
59598
59609
  paddingBottom: sectionproperties.marginBottom + 'px',
59599
59610
  paddingTop: sectionproperties.marginTop + 'px'
59600
59611
  }
59601
- }, /*#__PURE__*/React.createElement("iframe", {
59602
- id: "player",
59603
- src: 'http://radio.hvips.com:8056/stream',
59604
- width: "0",
59605
- height: "0",
59606
- allowfullscreen: "",
59607
- loading: "lazy",
59608
- referrerpolicy: "no-referrer-when-downgrade",
59609
- allow: "autoplay"
59610
- }), /*#__PURE__*/React.createElement("div", {
59612
+ }, /*#__PURE__*/React.createElement("div", {
59611
59613
  "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',
59612
59614
  style: {
59613
59615
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
@@ -59655,7 +59657,9 @@ var Slideshowzoom = function Slideshowzoom(props) {
59655
59657
  paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
59656
59658
  },
59657
59659
  onClick: function onClick() {
59658
- if (item.IsClickableimg == 'Yes') {
59660
+ if (sectionproperties.showplayer = 'Show') {
59661
+ setshowpopup(true);
59662
+ } else if (item.IsClickableimg == 'Yes') {
59659
59663
  if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
59660
59664
  routingcountext(item.clickableimg_page_route, false, '');
59661
59665
  } else {
@@ -59691,7 +59695,9 @@ var Slideshowzoom = function Slideshowzoom(props) {
59691
59695
  paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
59692
59696
  },
59693
59697
  onClick: function onClick() {
59694
- if (item.IsClickableimg == 'Yes') {
59698
+ if (sectionproperties.showplayer = 'Show') {
59699
+ setshowpopup(true);
59700
+ } else if (item.IsClickableimg == 'Yes') {
59695
59701
  if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
59696
59702
  routingcountext(item.clickableimg_page_route, false, '');
59697
59703
  } else {
@@ -59882,7 +59888,48 @@ var Slideshowzoom = function Slideshowzoom(props) {
59882
59888
  sectionproperties: sectionproperties,
59883
59889
  props: props
59884
59890
  });
59885
- }))))))));
59891
+ }))))))), /*#__PURE__*/React.createElement(Modal, {
59892
+ show: showpopup,
59893
+ onHide: function onHide() {
59894
+ setshowpopup(false);
59895
+ },
59896
+ centered: true,
59897
+ size: 'md'
59898
+ }, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
59899
+ className: "allcentered bgdanger-hover cursor-pointer",
59900
+ onClick: function onClick() {
59901
+ setshowpopup(false);
59902
+ },
59903
+ style: {
59904
+ position: 'absolute',
59905
+ top: -40,
59906
+ backgroundColor: '#000',
59907
+ width: 35,
59908
+ height: 35,
59909
+ right: 0
59910
+ }
59911
+ }, /*#__PURE__*/React.createElement("i", {
59912
+ "class": "h-100 allcentered text-black"
59913
+ }, /*#__PURE__*/React.createElement(IoMdClose, {
59914
+ size: 20,
59915
+ "class": "",
59916
+ color: '#fff'
59917
+ }))), /*#__PURE__*/React.createElement("div", {
59918
+ "class": "allcentered",
59919
+ style: {
59920
+ width: '100%',
59921
+ height: '100%'
59922
+ }
59923
+ }, /*#__PURE__*/React.createElement("iframe", {
59924
+ id: "player",
59925
+ src: 'http://radio.hvips.com:8056/stream',
59926
+ width: "100%",
59927
+ height: "100%",
59928
+ allowfullscreen: "",
59929
+ loading: "lazy",
59930
+ referrerpolicy: "no-referrer-when-downgrade",
59931
+ allow: "autoplay"
59932
+ }))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
59886
59933
  };
59887
59934
  var easingFunctions = {
59888
59935
  noEasing: undefined,