tabexseriescomponents 0.0.340 → 0.0.342

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
@@ -56,6 +56,8 @@ import { HiOutlineTrash } from '@react-icons/all-files/hi/HiOutlineTrash';
56
56
  import { BiSad } from '@react-icons/all-files/bi/BiSad';
57
57
  import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
58
58
  import Dropdown from 'react-bootstrap/Dropdown';
59
+ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
60
+ import _regeneratorRuntime from '@babel/runtime/regenerator';
59
61
  import { HiUser } from '@react-icons/all-files/hi/HiUser';
60
62
  import { GrMail } from '@react-icons/all-files/gr/GrMail';
61
63
  import { FiCheckCircle } from '@react-icons/all-files/fi/FiCheckCircle';
@@ -2586,7 +2588,7 @@ var Product_itemtype = function Product_itemtype(props) {
2586
2588
  }
2587
2589
  }, /*#__PURE__*/React.createElement("span", {
2588
2590
  className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right ' : ' d-flex align-items-center justify-content-end wordbreak text-left '
2589
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer90 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.data) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : (_fetchProductInfoQuer92 = _fetchProductInfoQuer91.productinfo) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : (_fetchProductInfoQuer93 = _fetchProductInfoQuer92.variants[variantindexcompleted]) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : _fetchProductInfoQuer93.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : (_fetchProductInfoQuer95 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : (_fetchProductInfoQuer96 = _fetchProductInfoQuer95.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : (_fetchProductInfoQuer97 = _fetchProductInfoQuer96.variants[variantindexcompleted]) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
2591
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer90 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.data) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : (_fetchProductInfoQuer92 = _fetchProductInfoQuer91.productinfo) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : (_fetchProductInfoQuer93 = _fetchProductInfoQuer92.variants[variantindexcompleted]) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : _fetchProductInfoQuer93.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : (_fetchProductInfoQuer95 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : (_fetchProductInfoQuer96 = _fetchProductInfoQuer95.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : (_fetchProductInfoQuer97 = _fetchProductInfoQuer96.variants[variantindexcompleted]) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
2590
2592
  className: 'm-0 p-0 linethrough wordbreak',
2591
2593
  style: {
2592
2594
  color: sectionproperties.prodsalePriceColor,
@@ -4313,7 +4315,7 @@ var Productinfo = function Productinfo(props) {
4313
4315
  });
4314
4316
  setsectionproperties(_objectSpread$2a({}, secpropobj));
4315
4317
  setTabIndex(0);
4316
- settabname('shippingpolicytab');
4318
+ settabname('descriptiontab');
4317
4319
  }
4318
4320
  }, [StatePagePropertiesContext]);
4319
4321
  useEffect(function () {
@@ -7890,11 +7892,11 @@ var Select$3 = /*#__PURE__*/React.lazy(function () {
7890
7892
  return import('react-select');
7891
7893
  });
7892
7894
  var Checkout = function Checkout(props) {
7893
- var _css, _checkoutstyles, _fetchcustomercartQue99, _fetchcustomercartQue100, _fetchcustomercartQue101, _fetchcustomercartQue102, _fetchcustomercartQue103, _fetchcustomercartQue104, _fetchcustomercartQue113, _fetchcustomercartQue114, _fetchcustomercartQue115, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue118, _fetchcustomercartQue119, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue124, _fetchcustomercartQue125, _fetchcustomercartQue128, _fetchcustomercartQue129, _fetchcustomercartQue132, _fetchcustomercartQue133, _fetchcustomercartQue136, _fetchcustomercartQue137;
7895
+ var _css, _checkoutstyles, _fetchcustomercartQue119, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue122, _fetchcustomercartQue123, _fetchcustomercartQue124, _fetchcustomercartQue133, _fetchcustomercartQue134, _fetchcustomercartQue135, _fetchcustomercartQue136, _fetchcustomercartQue137, _fetchcustomercartQue138, _fetchcustomercartQue139, _fetchcustomercartQue140, _fetchcustomercartQue141, _fetchcustomercartQue144, _fetchcustomercartQue145, _fetchcustomercartQue148, _fetchcustomercartQue149, _fetchcustomercartQue152, _fetchcustomercartQue153, _fetchcustomercartQue156, _fetchcustomercartQue157;
7894
7896
  var _useState = useState(null),
7895
- _useState2 = _slicedToArray(_useState, 2),
7896
- timer = _useState2[0],
7897
- settimer = _useState2[1];
7897
+ _useState2 = _slicedToArray(_useState, 2);
7898
+ _useState2[0];
7899
+ _useState2[1];
7898
7900
  var langdetect = props.actions.langdetect;
7899
7901
  var lang = props.actions.lang;
7900
7902
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
@@ -7995,7 +7997,7 @@ var Checkout = function Checkout(props) {
7995
7997
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
7996
7998
  cartarr.data.customercart[key] = value;
7997
7999
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
7998
- var payloadobj = {
8000
+ ({
7999
8001
  stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : (_fetchcustomercartQue18 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.stateid,
8000
8002
  countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : (_fetchcustomercartQue20 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.customercart.countryid,
8001
8003
  cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : (_fetchcustomercartQue22 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.cityid,
@@ -8006,15 +8008,7 @@ var Checkout = function Checkout(props) {
8006
8008
  mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : (_fetchcustomercartQue32 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.mobile,
8007
8009
  notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : (_fetchcustomercartQue34 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.notes,
8008
8010
  aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 ? void 0 : (_fetchcustomercartQue36 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.aff_code
8009
- };
8010
- if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') {
8011
- clearTimeout(timer);
8012
- settimer(setTimeout(function () {
8013
- ChooseState_CountryMutationContext.mutate(payloadobj);
8014
- }, 1500));
8015
- } else {
8016
- ChooseState_CountryMutationContext.mutate(payloadobj);
8017
- }
8011
+ });
8018
8012
  };
8019
8013
  var usewalletpoints = function usewalletpoints() {
8020
8014
  GeneralAPIMutationContext.mutate({
@@ -8211,8 +8205,54 @@ var Checkout = function Checkout(props) {
8211
8205
  marginTop: sectionproperties.marginTopResp + 'px'
8212
8206
  }
8213
8207
  })), _checkoutstyles);
8208
+ var addorderfuncrunner = /*#__PURE__*/function () {
8209
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
8210
+ var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56;
8211
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
8212
+ while (1) switch (_context.prev = _context.next) {
8213
+ case 0:
8214
+ // var temppayload = fetchcustomercartQueryContext?.data?.data?.customercart;
8215
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
8216
+ // temppayload.endpointurl = '/ChooseState_Country';
8217
+ GeneralAPIMutationContext.mutate({
8218
+ endpointurl: '/ChooseState_Country',
8219
+ stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : (_fetchcustomercartQue38 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.customercart.stateid,
8220
+ countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 ? void 0 : (_fetchcustomercartQue40 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.customercart.countryid,
8221
+ cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 ? void 0 : (_fetchcustomercartQue42 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.customercart.cityid,
8222
+ address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue43 === void 0 ? void 0 : (_fetchcustomercartQue44 = _fetchcustomercartQue43.data) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.customercart.address,
8223
+ paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 ? void 0 : (_fetchcustomercartQue46 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.customercart.paymentmethod,
8224
+ name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : (_fetchcustomercartQue48 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.name,
8225
+ email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 ? void 0 : (_fetchcustomercartQue50 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.email,
8226
+ mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : (_fetchcustomercartQue52 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.mobile,
8227
+ notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : (_fetchcustomercartQue54 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.notes,
8228
+ aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : (_fetchcustomercartQue56 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.aff_code,
8229
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
8230
+ if (data.data.status) {
8231
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
8232
+ cartarr.data = data.data.cartresponse;
8233
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
8234
+ if (data.data.cdata != null) {
8235
+ // const cookies = new Cookies();
8236
+ localStorage.setItem('cdata', data.data.cdata);
8237
+ }
8238
+ AddOrderMutationContext.mutate();
8239
+ } else {
8240
+ NotificationManager.warning('', data.data.reason);
8241
+ }
8242
+ }
8243
+ });
8244
+ case 1:
8245
+ case "end":
8246
+ return _context.stop();
8247
+ }
8248
+ }, _callee);
8249
+ }));
8250
+ return function addorderfuncrunner() {
8251
+ return _ref.apply(this, arguments);
8252
+ };
8253
+ }();
8214
8254
  var Mycart = function Mycart() {
8215
- var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue80, _fetchcustomercartQue81, _fetchcustomercartQue82, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue87, _fetchcustomercartQue88, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue97, _fetchcustomercartQue98;
8255
+ var _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue80, _fetchcustomercartQue81, _fetchcustomercartQue82, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue87, _fetchcustomercartQue88, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue97, _fetchcustomercartQue98, _fetchcustomercartQue99, _fetchcustomercartQue100, _fetchcustomercartQue101, _fetchcustomercartQue102, _fetchcustomercartQue103, _fetchcustomercartQue104, _fetchcustomercartQue105, _fetchcustomercartQue106, _fetchcustomercartQue107, _fetchcustomercartQue108, _fetchcustomercartQue109, _fetchcustomercartQue110, _fetchcustomercartQue111, _fetchcustomercartQue112, _fetchcustomercartQue113, _fetchcustomercartQue114, _fetchcustomercartQue115, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue118;
8216
8256
  return /*#__PURE__*/React.createElement("div", {
8217
8257
  className: "row m-0 w-100 mb-md-3"
8218
8258
  }, /*#__PURE__*/React.createElement("div", {
@@ -8237,7 +8277,7 @@ var Checkout = function Checkout(props) {
8237
8277
  className: "row m-0 w-100"
8238
8278
  }, /*#__PURE__*/React.createElement("div", {
8239
8279
  className: "col-lg-12 p-0"
8240
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : (_fetchcustomercartQue38 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.customercart.cartitems.map(function (item, index) {
8280
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : (_fetchcustomercartQue58 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.cartitems.map(function (item, index) {
8241
8281
  if (item.product_extrafields != null) {
8242
8282
  var product_extrafields = JSON.parse(item.product_extrafields);
8243
8283
  // var product_extrafields_parsed = JSON.stringify(product_extrafields);
@@ -8360,13 +8400,13 @@ var Checkout = function Checkout(props) {
8360
8400
  type: "text",
8361
8401
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8362
8402
  placeholder: lang.giftcarddicountcode,
8363
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 ? void 0 : (_fetchcustomercartQue40 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.customercart.couponname,
8403
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : (_fetchcustomercartQue60 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.couponname,
8364
8404
  onChange: function onChange(event) {
8365
8405
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
8366
8406
  cartarr.data.customercart.couponname = event.target.value;
8367
8407
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
8368
8408
  },
8369
- disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue41 !== void 0 && (_fetchcustomercartQue42 = _fetchcustomercartQue41.data) !== null && _fetchcustomercartQue42 !== void 0 && _fetchcustomercartQue42.customercart.couponexists ? true : false,
8409
+ disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue61 !== void 0 && (_fetchcustomercartQue62 = _fetchcustomercartQue61.data) !== null && _fetchcustomercartQue62 !== void 0 && _fetchcustomercartQue62.customercart.couponexists ? true : false,
8370
8410
  style: {
8371
8411
  boxShadow: 'none'
8372
8412
  }
@@ -8375,14 +8415,14 @@ var Checkout = function Checkout(props) {
8375
8415
  }, /*#__PURE__*/React.createElement("button", {
8376
8416
  className: " ".concat(checkoutstyles.applybtnstyles),
8377
8417
  onClick: function onClick() {
8378
- var _fetchcustomercartQue43, _fetchcustomercartQue44;
8379
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue43 !== void 0 && (_fetchcustomercartQue44 = _fetchcustomercartQue43.data) !== null && _fetchcustomercartQue44 !== void 0 && _fetchcustomercartQue44.customercart.couponexists)) {
8380
- var _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48;
8418
+ var _fetchcustomercartQue63, _fetchcustomercartQue64;
8419
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue63 !== void 0 && (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) !== null && _fetchcustomercartQue64 !== void 0 && _fetchcustomercartQue64.customercart.couponexists)) {
8420
+ var _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68;
8381
8421
  var payloadobj = {
8382
- couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 ? void 0 : (_fetchcustomercartQue46 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.customercart.couponname,
8422
+ couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : (_fetchcustomercartQue66 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.couponname,
8383
8423
  functype: 'add'
8384
8424
  };
8385
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : (_fetchcustomercartQue48 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.couponname.length) != 0) {
8425
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : (_fetchcustomercartQue68 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.couponname.length) != 0) {
8386
8426
  ApplyPromoCodeMutationContext.mutate(payloadobj);
8387
8427
  } else {
8388
8428
  NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
@@ -8397,14 +8437,14 @@ var Checkout = function Checkout(props) {
8397
8437
  disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
8398
8438
  }, /*#__PURE__*/React.createElement("span", {
8399
8439
  className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
8400
- }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue49 !== void 0 && (_fetchcustomercartQue50 = _fetchcustomercartQue49.data) !== null && _fetchcustomercartQue50 !== void 0 && _fetchcustomercartQue50.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React.createElement("div", {
8440
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue69 !== void 0 && (_fetchcustomercartQue70 = _fetchcustomercartQue69.data) !== null && _fetchcustomercartQue70 !== void 0 && _fetchcustomercartQue70.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React.createElement("div", {
8401
8441
  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 '
8402
8442
  }, /*#__PURE__*/React.createElement(CircularProgress, {
8403
8443
  color: "#fff",
8404
8444
  width: "20px",
8405
8445
  height: "20px",
8406
8446
  duration: "1s"
8407
- })))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : (_fetchcustomercartQue52 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : (_fetchcustomercartQue53 = _fetchcustomercartQue52.customercart) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.availablewalletbalance) > 0 && /*#__PURE__*/React.createElement("div", {
8447
+ })))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : (_fetchcustomercartQue72 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : (_fetchcustomercartQue73 = _fetchcustomercartQue72.customercart) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.availablewalletbalance) > 0 && /*#__PURE__*/React.createElement("div", {
8408
8448
  className: "row m-0 w-100"
8409
8449
  }, /*#__PURE__*/React.createElement("div", {
8410
8450
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -8414,7 +8454,7 @@ var Checkout = function Checkout(props) {
8414
8454
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8415
8455
  }, /*#__PURE__*/React.createElement("p", {
8416
8456
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8417
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : (_fetchcustomercartQue55 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : (_fetchcustomercartQue56 = _fetchcustomercartQue55.customercart) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : (_fetchcustomercartQue58 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : (_fetchcustomercartQue59 = _fetchcustomercartQue58.customercart) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.usewalletpoints) == 0 && /*#__PURE__*/React.createElement("div", {
8457
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : (_fetchcustomercartQue75 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : (_fetchcustomercartQue76 = _fetchcustomercartQue75.customercart) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : (_fetchcustomercartQue79 = _fetchcustomercartQue78.customercart) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.usewalletpoints) == 0 && /*#__PURE__*/React.createElement("div", {
8418
8458
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
8419
8459
  }, /*#__PURE__*/React.createElement("p", {
8420
8460
  style: {
@@ -8424,7 +8464,7 @@ var Checkout = function Checkout(props) {
8424
8464
  onClick: function onClick() {
8425
8465
  usewalletpoints();
8426
8466
  }
8427
- }, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : (_fetchcustomercartQue61 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : (_fetchcustomercartQue62 = _fetchcustomercartQue61.customercart) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
8467
+ }, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : (_fetchcustomercartQue81 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : (_fetchcustomercartQue82 = _fetchcustomercartQue81.customercart) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
8428
8468
  className: "row m-0 w-100"
8429
8469
  }, /*#__PURE__*/React.createElement("div", {
8430
8470
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
@@ -8446,9 +8486,9 @@ var Checkout = function Checkout(props) {
8446
8486
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8447
8487
  }, /*#__PURE__*/React.createElement("p", {
8448
8488
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8449
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : (_fetchcustomercartQue66 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : (_fetchcustomercartQue67 = _fetchcustomercartQue66.customercart) === null || _fetchcustomercartQue67 === void 0 ? void 0 : (_fetchcustomercartQue68 = _fetchcustomercartQue67.genpayments) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.length) != 0 && /*#__PURE__*/React.createElement("div", {
8489
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : (_fetchcustomercartQue84 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : (_fetchcustomercartQue87 = _fetchcustomercartQue86.customercart) === null || _fetchcustomercartQue87 === void 0 ? void 0 : (_fetchcustomercartQue88 = _fetchcustomercartQue87.genpayments) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.length) != 0 && /*#__PURE__*/React.createElement("div", {
8450
8490
  className: "row m-0 w-100"
8451
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : (_fetchcustomercartQue71 = _fetchcustomercartQue70.customercart) === null || _fetchcustomercartQue71 === void 0 ? void 0 : (_fetchcustomercartQue72 = _fetchcustomercartQue71.genpayments) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.map(function (item, index) {
8491
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : (_fetchcustomercartQue90 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : (_fetchcustomercartQue91 = _fetchcustomercartQue90.customercart) === null || _fetchcustomercartQue91 === void 0 ? void 0 : (_fetchcustomercartQue92 = _fetchcustomercartQue91.genpayments) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.map(function (item, index) {
8452
8492
  return /*#__PURE__*/React.createElement("div", {
8453
8493
  "class": "col-lg-12 p-0"
8454
8494
  }, /*#__PURE__*/React.createElement("div", {
@@ -8468,7 +8508,7 @@ var Checkout = function Checkout(props) {
8468
8508
  color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
8469
8509
  }
8470
8510
  }, 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, "%")))));
8471
- }))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : (_fetchcustomercartQue74 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : (_fetchcustomercartQue75 = _fetchcustomercartQue74.customercart) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
8511
+ }))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 ? void 0 : (_fetchcustomercartQue94 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : (_fetchcustomercartQue95 = _fetchcustomercartQue94.customercart) === null || _fetchcustomercartQue95 === void 0 ? void 0 : _fetchcustomercartQue95.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
8472
8512
  className: "row m-0 w-100"
8473
8513
  }, /*#__PURE__*/React.createElement("div", {
8474
8514
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -8481,7 +8521,7 @@ var Checkout = function Checkout(props) {
8481
8521
  style: {
8482
8522
  color: 'red'
8483
8523
  }
8484
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : (_fetchcustomercartQue77 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.customercart) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : (_fetchcustomercartQue80 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : (_fetchcustomercartQue82 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("div", {
8524
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue96 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue96 === void 0 ? void 0 : (_fetchcustomercartQue97 = _fetchcustomercartQue96.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : (_fetchcustomercartQue98 = _fetchcustomercartQue97.customercart) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : (_fetchcustomercartQue100 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 ? void 0 : (_fetchcustomercartQue102 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("div", {
8485
8525
  className: "col-lg-12 p-0 mb-1"
8486
8526
  }, /*#__PURE__*/React.createElement("div", {
8487
8527
  className: "row m-0 w-100"
@@ -8493,7 +8533,7 @@ var Checkout = function Checkout(props) {
8493
8533
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8494
8534
  }, /*#__PURE__*/React.createElement("p", {
8495
8535
  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 '
8496
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : (_fetchcustomercartQue84 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.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 ? void 0 : (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : (_fetchcustomercartQue88 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.discountprice) == 0 && /*#__PURE__*/React.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
8536
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : (_fetchcustomercartQue104 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.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 ? void 0 : (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : (_fetchcustomercartQue106 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue107 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue107 === void 0 ? void 0 : (_fetchcustomercartQue108 = _fetchcustomercartQue107.data) === null || _fetchcustomercartQue108 === void 0 ? void 0 : _fetchcustomercartQue108.customercart.discountprice) == 0 && /*#__PURE__*/React.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
8497
8537
  className: "col-lg-12 p-0"
8498
8538
  }, /*#__PURE__*/React.createElement("div", {
8499
8539
  className: "row m-0 w-100"
@@ -8501,11 +8541,11 @@ var Checkout = function Checkout(props) {
8501
8541
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
8502
8542
  }, /*#__PURE__*/React.createElement("p", {
8503
8543
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
8504
- }, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : (_fetchcustomercartQue90 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
8544
+ }, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue109 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue109 === void 0 ? void 0 : (_fetchcustomercartQue110 = _fetchcustomercartQue109.data) === null || _fetchcustomercartQue110 === void 0 ? void 0 : _fetchcustomercartQue110.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
8505
8545
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8506
8546
  }, /*#__PURE__*/React.createElement("p", {
8507
8547
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8508
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 ? void 0 : (_fetchcustomercartQue92 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue93 !== void 0 && (_fetchcustomercartQue94 = _fetchcustomercartQue93.data) !== null && _fetchcustomercartQue94 !== void 0 && _fetchcustomercartQue94.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
8548
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue111 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue111 === void 0 ? void 0 : (_fetchcustomercartQue112 = _fetchcustomercartQue111.data) === null || _fetchcustomercartQue112 === void 0 ? void 0 : _fetchcustomercartQue112.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue113 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue113 !== void 0 && (_fetchcustomercartQue114 = _fetchcustomercartQue113.data) !== null && _fetchcustomercartQue114 !== void 0 && _fetchcustomercartQue114.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
8509
8549
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8510
8550
  }, /*#__PURE__*/React.createElement("p", {
8511
8551
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -8544,7 +8584,7 @@ var Checkout = function Checkout(props) {
8544
8584
  textTransform: sectionproperties.total_texttransform,
8545
8585
  color: sectionproperties.total_color
8546
8586
  }
8547
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : (_fetchcustomercartQue96 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React.createElement("div", {
8587
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue115 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : (_fetchcustomercartQue116 = _fetchcustomercartQue115.data) === null || _fetchcustomercartQue116 === void 0 ? void 0 : _fetchcustomercartQue116.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React.createElement("div", {
8548
8588
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
8549
8589
  style: {
8550
8590
  background: '#eee',
@@ -8568,16 +8608,17 @@ var Checkout = function Checkout(props) {
8568
8608
  }, /*#__PURE__*/React.createElement("button", {
8569
8609
  className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
8570
8610
  onClick: function onClick() {
8571
- var payloadobj = {};
8572
- AddOrderMutationContext.mutate(payloadobj);
8611
+ addorderfuncrunner();
8612
+ // AddOrderMutationContext.mutate(payloadobj);
8573
8613
  },
8614
+
8574
8615
  disabled: AddOrderMutationContext.isLoading ? true : false
8575
8616
  }, AddOrderMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
8576
8617
  color: "#fff",
8577
8618
  width: "20px",
8578
8619
  height: "20px",
8579
8620
  duration: "1s"
8580
- }), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : (_fetchcustomercartQue98 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.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 : ''))))));
8621
+ }), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue117 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue117 === void 0 ? void 0 : (_fetchcustomercartQue118 = _fetchcustomercartQue117.data) === null || _fetchcustomercartQue118 === void 0 ? void 0 : _fetchcustomercartQue118.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 : ''))))));
8581
8622
  };
8582
8623
  return /*#__PURE__*/React.createElement("div", {
8583
8624
  className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
@@ -8724,7 +8765,7 @@ var Checkout = function Checkout(props) {
8724
8765
  }, lang.name), /*#__PURE__*/React.createElement("input", {
8725
8766
  type: 'text',
8726
8767
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8727
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : (_fetchcustomercartQue100 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.customercart.name,
8768
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue119 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue119 === void 0 ? void 0 : (_fetchcustomercartQue120 = _fetchcustomercartQue119.data) === null || _fetchcustomercartQue120 === void 0 ? void 0 : _fetchcustomercartQue120.customercart.name,
8728
8769
  onChange: function onChange(event) {
8729
8770
  cartinfoupdater('name', event.target.value);
8730
8771
  },
@@ -8739,7 +8780,7 @@ var Checkout = function Checkout(props) {
8739
8780
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
8740
8781
  type: 'text',
8741
8782
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8742
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 ? void 0 : (_fetchcustomercartQue102 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.customercart.mobile,
8783
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue121 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue121 === void 0 ? void 0 : (_fetchcustomercartQue122 = _fetchcustomercartQue121.data) === null || _fetchcustomercartQue122 === void 0 ? void 0 : _fetchcustomercartQue122.customercart.mobile,
8743
8784
  onChange: function onChange(event) {
8744
8785
  cartinfoupdater('mobile', event.target.value);
8745
8786
  },
@@ -8754,7 +8795,7 @@ var Checkout = function Checkout(props) {
8754
8795
  }, lang.email), /*#__PURE__*/React.createElement("input", {
8755
8796
  type: 'text',
8756
8797
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8757
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : (_fetchcustomercartQue104 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.email,
8798
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue123 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue123 === void 0 ? void 0 : (_fetchcustomercartQue124 = _fetchcustomercartQue123.data) === null || _fetchcustomercartQue124 === void 0 ? void 0 : _fetchcustomercartQue124.customercart.email,
8758
8799
  onChange: function onChange(event) {
8759
8800
  cartinfoupdater('email', event.target.value);
8760
8801
  },
@@ -8798,8 +8839,8 @@ var Checkout = function Checkout(props) {
8798
8839
  return option.id;
8799
8840
  },
8800
8841
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
8801
- var _fetchcustomercartQue105, _fetchcustomercartQue106;
8802
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : (_fetchcustomercartQue106 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.customercart.countryid);
8842
+ var _fetchcustomercartQue125, _fetchcustomercartQue126;
8843
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue125 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue125 === void 0 ? void 0 : (_fetchcustomercartQue126 = _fetchcustomercartQue125.data) === null || _fetchcustomercartQue126 === void 0 ? void 0 : _fetchcustomercartQue126.customercart.countryid);
8803
8844
  }),
8804
8845
  onChange: function onChange(option) {
8805
8846
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$25({}, FetchTabexStatesPayloadobjContext);
@@ -8844,12 +8885,12 @@ var Checkout = function Checkout(props) {
8844
8885
  return option.id;
8845
8886
  },
8846
8887
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
8847
- var _fetchcustomercartQue107, _fetchcustomercartQue108;
8848
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue107 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue107 === void 0 ? void 0 : (_fetchcustomercartQue108 = _fetchcustomercartQue107.data) === null || _fetchcustomercartQue108 === void 0 ? void 0 : _fetchcustomercartQue108.customercart.stateid);
8888
+ var _fetchcustomercartQue127, _fetchcustomercartQue128;
8889
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue127 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue127 === void 0 ? void 0 : (_fetchcustomercartQue128 = _fetchcustomercartQue127.data) === null || _fetchcustomercartQue128 === void 0 ? void 0 : _fetchcustomercartQue128.customercart.stateid);
8849
8890
  }),
8850
8891
  onChange: function onChange(option) {
8851
- var _fetchcustomercartQue109, _fetchcustomercartQue110;
8852
- if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue109 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue109 === void 0 ? void 0 : (_fetchcustomercartQue110 = _fetchcustomercartQue109.data) === null || _fetchcustomercartQue110 === void 0 ? void 0 : _fetchcustomercartQue110.customercart.countryid.length) != 0) {
8892
+ var _fetchcustomercartQue129, _fetchcustomercartQue130;
8893
+ if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue129 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue129 === void 0 ? void 0 : (_fetchcustomercartQue130 = _fetchcustomercartQue129.data) === null || _fetchcustomercartQue130 === void 0 ? void 0 : _fetchcustomercartQue130.customercart.countryid.length) != 0) {
8853
8894
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$25({}, FetchTabexStatesPayloadobjContext);
8854
8895
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
8855
8896
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -8892,8 +8933,8 @@ var Checkout = function Checkout(props) {
8892
8933
  return option.id;
8893
8934
  },
8894
8935
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
8895
- var _fetchcustomercartQue111, _fetchcustomercartQue112;
8896
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue111 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue111 === void 0 ? void 0 : (_fetchcustomercartQue112 = _fetchcustomercartQue111.data) === null || _fetchcustomercartQue112 === void 0 ? void 0 : _fetchcustomercartQue112.customercart.cityid);
8936
+ var _fetchcustomercartQue131, _fetchcustomercartQue132;
8937
+ return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue131 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue131 === void 0 ? void 0 : (_fetchcustomercartQue132 = _fetchcustomercartQue131.data) === null || _fetchcustomercartQue132 === void 0 ? void 0 : _fetchcustomercartQue132.customercart.cityid);
8897
8938
  }),
8898
8939
  onChange: function onChange(option) {
8899
8940
  cartinfoupdater('cityid', option.id);
@@ -8908,7 +8949,7 @@ var Checkout = function Checkout(props) {
8908
8949
  }, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React.createElement(TextareaAutosize, {
8909
8950
  type: 'text',
8910
8951
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8911
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue113 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue113 === void 0 ? void 0 : (_fetchcustomercartQue114 = _fetchcustomercartQue113.data) === null || _fetchcustomercartQue114 === void 0 ? void 0 : _fetchcustomercartQue114.customercart.address,
8952
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue133 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue133 === void 0 ? void 0 : (_fetchcustomercartQue134 = _fetchcustomercartQue133.data) === null || _fetchcustomercartQue134 === void 0 ? void 0 : _fetchcustomercartQue134.customercart.address,
8912
8953
  onChange: function onChange(event) {
8913
8954
  cartinfoupdater('address', event.target.value);
8914
8955
  },
@@ -8923,7 +8964,7 @@ var Checkout = function Checkout(props) {
8923
8964
  }, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React.createElement(TextareaAutosize, {
8924
8965
  type: 'text',
8925
8966
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8926
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue115 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : (_fetchcustomercartQue116 = _fetchcustomercartQue115.data) === null || _fetchcustomercartQue116 === void 0 ? void 0 : _fetchcustomercartQue116.customercart.notes,
8967
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue135 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue135 === void 0 ? void 0 : (_fetchcustomercartQue136 = _fetchcustomercartQue135.data) === null || _fetchcustomercartQue136 === void 0 ? void 0 : _fetchcustomercartQue136.customercart.notes,
8927
8968
  onChange: function onChange(event) {
8928
8969
  cartinfoupdater('notes', event.target.value);
8929
8970
  },
@@ -8938,7 +8979,7 @@ var Checkout = function Checkout(props) {
8938
8979
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
8939
8980
  type: 'number',
8940
8981
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8941
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue117 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue117 === void 0 ? void 0 : (_fetchcustomercartQue118 = _fetchcustomercartQue117.data) === null || _fetchcustomercartQue118 === void 0 ? void 0 : (_fetchcustomercartQue119 = _fetchcustomercartQue118.customercart) === null || _fetchcustomercartQue119 === void 0 ? void 0 : _fetchcustomercartQue119.aff_code,
8982
+ value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue137 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue137 === void 0 ? void 0 : (_fetchcustomercartQue138 = _fetchcustomercartQue137.data) === null || _fetchcustomercartQue138 === void 0 ? void 0 : (_fetchcustomercartQue139 = _fetchcustomercartQue138.customercart) === null || _fetchcustomercartQue139 === void 0 ? void 0 : _fetchcustomercartQue139.aff_code,
8942
8983
  onChange: function onChange(event) {
8943
8984
  cartinfoupdater('aff_code', event.target.value);
8944
8985
  },
@@ -8969,10 +9010,10 @@ var Checkout = function Checkout(props) {
8969
9010
  id: 'codcheckbox',
8970
9011
  type: "checkbox",
8971
9012
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8972
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue120 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue120 === void 0 ? void 0 : (_fetchcustomercartQue121 = _fetchcustomercartQue120.data) === null || _fetchcustomercartQue121 === void 0 ? void 0 : _fetchcustomercartQue121.customercart.paymentmethod) == 'cod' ? true : false,
9013
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue140 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue140 === void 0 ? void 0 : (_fetchcustomercartQue141 = _fetchcustomercartQue140.data) === null || _fetchcustomercartQue141 === void 0 ? void 0 : _fetchcustomercartQue141.customercart.paymentmethod) == 'cod' ? true : false,
8973
9014
  onChange: function onChange() {
8974
- var _fetchcustomercartQue122, _fetchcustomercartQue123;
8975
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue122 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue122 === void 0 ? void 0 : (_fetchcustomercartQue123 = _fetchcustomercartQue122.data) === null || _fetchcustomercartQue123 === void 0 ? void 0 : _fetchcustomercartQue123.customercart.paymentmethod) != 'cod') {
9015
+ var _fetchcustomercartQue142, _fetchcustomercartQue143;
9016
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue142 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue142 === void 0 ? void 0 : (_fetchcustomercartQue143 = _fetchcustomercartQue142.data) === null || _fetchcustomercartQue143 === void 0 ? void 0 : _fetchcustomercartQue143.customercart.paymentmethod) != 'cod') {
8976
9017
  cartinfoupdater('paymentmethod', 'cod');
8977
9018
  }
8978
9019
  }
@@ -8993,10 +9034,10 @@ var Checkout = function Checkout(props) {
8993
9034
  }, /*#__PURE__*/React.createElement("input", {
8994
9035
  type: "checkbox",
8995
9036
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8996
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue124 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue124 === void 0 ? void 0 : (_fetchcustomercartQue125 = _fetchcustomercartQue124.data) === null || _fetchcustomercartQue125 === void 0 ? void 0 : _fetchcustomercartQue125.customercart.paymentmethod) == 'cardondelivery' ? true : false,
9037
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue144 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue144 === void 0 ? void 0 : (_fetchcustomercartQue145 = _fetchcustomercartQue144.data) === null || _fetchcustomercartQue145 === void 0 ? void 0 : _fetchcustomercartQue145.customercart.paymentmethod) == 'cardondelivery' ? true : false,
8997
9038
  onChange: function onChange() {
8998
- var _fetchcustomercartQue126, _fetchcustomercartQue127;
8999
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue126 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue126 === void 0 ? void 0 : (_fetchcustomercartQue127 = _fetchcustomercartQue126.data) === null || _fetchcustomercartQue127 === void 0 ? void 0 : _fetchcustomercartQue127.customercart.paymentmethod) != 'cardondelivery') {
9039
+ var _fetchcustomercartQue146, _fetchcustomercartQue147;
9040
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue146 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue146 === void 0 ? void 0 : (_fetchcustomercartQue147 = _fetchcustomercartQue146.data) === null || _fetchcustomercartQue147 === void 0 ? void 0 : _fetchcustomercartQue147.customercart.paymentmethod) != 'cardondelivery') {
9000
9041
  cartinfoupdater('paymentmethod', 'cardondelivery');
9001
9042
  }
9002
9043
  }
@@ -9014,10 +9055,10 @@ var Checkout = function Checkout(props) {
9014
9055
  }, /*#__PURE__*/React.createElement("input", {
9015
9056
  type: "checkbox",
9016
9057
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9017
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue128 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue128 === void 0 ? void 0 : (_fetchcustomercartQue129 = _fetchcustomercartQue128.data) === null || _fetchcustomercartQue129 === void 0 ? void 0 : _fetchcustomercartQue129.customercart.paymentmethod) == 'onlinepayment' ? true : false,
9058
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue148 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue148 === void 0 ? void 0 : (_fetchcustomercartQue149 = _fetchcustomercartQue148.data) === null || _fetchcustomercartQue149 === void 0 ? void 0 : _fetchcustomercartQue149.customercart.paymentmethod) == 'onlinepayment' ? true : false,
9018
9059
  onChange: function onChange() {
9019
- var _fetchcustomercartQue130, _fetchcustomercartQue131;
9020
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue130 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue130 === void 0 ? void 0 : (_fetchcustomercartQue131 = _fetchcustomercartQue130.data) === null || _fetchcustomercartQue131 === void 0 ? void 0 : _fetchcustomercartQue131.customercart.paymentmethod) != 'onlinepayment') {
9060
+ var _fetchcustomercartQue150, _fetchcustomercartQue151;
9061
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue150 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue150 === void 0 ? void 0 : (_fetchcustomercartQue151 = _fetchcustomercartQue150.data) === null || _fetchcustomercartQue151 === void 0 ? void 0 : _fetchcustomercartQue151.customercart.paymentmethod) != 'onlinepayment') {
9021
9062
  cartinfoupdater('paymentmethod', 'onlinepayment');
9022
9063
  }
9023
9064
  }
@@ -9035,10 +9076,10 @@ var Checkout = function Checkout(props) {
9035
9076
  }, /*#__PURE__*/React.createElement("input", {
9036
9077
  type: "checkbox",
9037
9078
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9038
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue132 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue132 === void 0 ? void 0 : (_fetchcustomercartQue133 = _fetchcustomercartQue132.data) === null || _fetchcustomercartQue133 === void 0 ? void 0 : _fetchcustomercartQue133.customercart.paymentmethod) == 'valU' ? true : false,
9079
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue152 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue152 === void 0 ? void 0 : (_fetchcustomercartQue153 = _fetchcustomercartQue152.data) === null || _fetchcustomercartQue153 === void 0 ? void 0 : _fetchcustomercartQue153.customercart.paymentmethod) == 'valU' ? true : false,
9039
9080
  onChange: function onChange() {
9040
- var _fetchcustomercartQue134, _fetchcustomercartQue135;
9041
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue134 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue134 === void 0 ? void 0 : (_fetchcustomercartQue135 = _fetchcustomercartQue134.data) === null || _fetchcustomercartQue135 === void 0 ? void 0 : _fetchcustomercartQue135.customercart.paymentmethod) != 'valU') {
9081
+ var _fetchcustomercartQue154, _fetchcustomercartQue155;
9082
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue154 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue154 === void 0 ? void 0 : (_fetchcustomercartQue155 = _fetchcustomercartQue154.data) === null || _fetchcustomercartQue155 === void 0 ? void 0 : _fetchcustomercartQue155.customercart.paymentmethod) != 'valU') {
9042
9083
  cartinfoupdater('paymentmethod', 'valU');
9043
9084
  }
9044
9085
  }
@@ -9049,7 +9090,7 @@ var Checkout = function Checkout(props) {
9049
9090
  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"
9050
9091
  })), /*#__PURE__*/React.createElement("p", {
9051
9092
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
9052
- }, " ValU")))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue136 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue136 === void 0 ? void 0 : (_fetchcustomercartQue137 = _fetchcustomercartQue136.data) === null || _fetchcustomercartQue137 === void 0 ? void 0 : _fetchcustomercartQue137.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
9093
+ }, " ValU")))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue156 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue156 === void 0 ? void 0 : (_fetchcustomercartQue157 = _fetchcustomercartQue156.data) === null || _fetchcustomercartQue157 === void 0 ? void 0 : _fetchcustomercartQue157.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
9053
9094
  className: "col-lg-12 p-0 w-100 mb-3"
9054
9095
  }, /*#__PURE__*/React.createElement("div", {
9055
9096
  style: {