tabexseriescomponents 0.0.339 → 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.cjs.js CHANGED
@@ -58,6 +58,8 @@ var HiOutlineTrash = require('@react-icons/all-files/hi/HiOutlineTrash');
58
58
  var BiSad = require('@react-icons/all-files/bi/BiSad');
59
59
  var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
60
60
  var Dropdown = require('react-bootstrap/Dropdown');
61
+ var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
62
+ var _regeneratorRuntime = require('@babel/runtime/regenerator');
61
63
  var HiUser = require('@react-icons/all-files/hi/HiUser');
62
64
  var GrMail = require('@react-icons/all-files/gr/GrMail');
63
65
  var FiCheckCircle = require('@react-icons/all-files/fi/FiCheckCircle');
@@ -182,6 +184,8 @@ var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
182
184
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
183
185
  var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
184
186
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
187
+ var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
188
+ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
185
189
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
186
190
  var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
187
191
  var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
@@ -2633,7 +2637,7 @@ var Product_itemtype = function Product_itemtype(props) {
2633
2637
  }
2634
2638
  }, /*#__PURE__*/React__default["default"].createElement("span", {
2635
2639
  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 '
2636
- }, 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__default["default"].createElement("p", {
2640
+ }, 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__default["default"].createElement("p", {
2637
2641
  className: 'm-0 p-0 linethrough wordbreak',
2638
2642
  style: {
2639
2643
  color: sectionproperties.prodsalePriceColor,
@@ -4360,7 +4364,7 @@ var Productinfo = function Productinfo(props) {
4360
4364
  });
4361
4365
  setsectionproperties(_objectSpread$2a({}, secpropobj));
4362
4366
  setTabIndex(0);
4363
- settabname('shippingpolicytab');
4367
+ settabname('descriptiontab');
4364
4368
  }
4365
4369
  }, [StatePagePropertiesContext]);
4366
4370
  React.useEffect(function () {
@@ -7937,11 +7941,11 @@ var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
7937
7941
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
7938
7942
  });
7939
7943
  var Checkout = function Checkout(props) {
7940
- 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;
7944
+ 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;
7941
7945
  var _useState = React.useState(null),
7942
- _useState2 = _slicedToArray__default["default"](_useState, 2),
7943
- timer = _useState2[0],
7944
- settimer = _useState2[1];
7946
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
7947
+ _useState2[0];
7948
+ _useState2[1];
7945
7949
  var langdetect = props.actions.langdetect;
7946
7950
  var lang = props.actions.lang;
7947
7951
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
@@ -8042,7 +8046,7 @@ var Checkout = function Checkout(props) {
8042
8046
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
8043
8047
  cartarr.data.customercart[key] = value;
8044
8048
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
8045
- var payloadobj = {
8049
+ ({
8046
8050
  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,
8047
8051
  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,
8048
8052
  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,
@@ -8053,15 +8057,7 @@ var Checkout = function Checkout(props) {
8053
8057
  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,
8054
8058
  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,
8055
8059
  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
8056
- };
8057
- if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') {
8058
- clearTimeout(timer);
8059
- settimer(setTimeout(function () {
8060
- ChooseState_CountryMutationContext.mutate(payloadobj);
8061
- }, 1500));
8062
- } else {
8063
- ChooseState_CountryMutationContext.mutate(payloadobj);
8064
- }
8060
+ });
8065
8061
  };
8066
8062
  var usewalletpoints = function usewalletpoints() {
8067
8063
  GeneralAPIMutationContext.mutate({
@@ -8258,8 +8254,54 @@ var Checkout = function Checkout(props) {
8258
8254
  marginTop: sectionproperties.marginTopResp + 'px'
8259
8255
  }
8260
8256
  })), _checkoutstyles);
8257
+ var addorderfuncrunner = /*#__PURE__*/function () {
8258
+ var _ref = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
8259
+ var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56;
8260
+ return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
8261
+ while (1) switch (_context.prev = _context.next) {
8262
+ case 0:
8263
+ // var temppayload = fetchcustomercartQueryContext?.data?.data?.customercart;
8264
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
8265
+ // temppayload.endpointurl = '/ChooseState_Country';
8266
+ GeneralAPIMutationContext.mutate({
8267
+ endpointurl: '/ChooseState_Country',
8268
+ 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,
8269
+ 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,
8270
+ 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,
8271
+ 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,
8272
+ 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,
8273
+ 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,
8274
+ 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,
8275
+ 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,
8276
+ 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,
8277
+ 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,
8278
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
8279
+ if (data.data.status) {
8280
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
8281
+ cartarr.data = data.data.cartresponse;
8282
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
8283
+ if (data.data.cdata != null) {
8284
+ // const cookies = new Cookies();
8285
+ localStorage.setItem('cdata', data.data.cdata);
8286
+ }
8287
+ AddOrderMutationContext.mutate();
8288
+ } else {
8289
+ NotificationManager.warning('', data.data.reason);
8290
+ }
8291
+ }
8292
+ });
8293
+ case 1:
8294
+ case "end":
8295
+ return _context.stop();
8296
+ }
8297
+ }, _callee);
8298
+ }));
8299
+ return function addorderfuncrunner() {
8300
+ return _ref.apply(this, arguments);
8301
+ };
8302
+ }();
8261
8303
  var Mycart = function Mycart() {
8262
- 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;
8304
+ 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;
8263
8305
  return /*#__PURE__*/React__default["default"].createElement("div", {
8264
8306
  className: "row m-0 w-100 mb-md-3"
8265
8307
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -8284,7 +8326,7 @@ var Checkout = function Checkout(props) {
8284
8326
  className: "row m-0 w-100"
8285
8327
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8286
8328
  className: "col-lg-12 p-0"
8287
- }, 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) {
8329
+ }, 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) {
8288
8330
  if (item.product_extrafields != null) {
8289
8331
  var product_extrafields = JSON.parse(item.product_extrafields);
8290
8332
  // var product_extrafields_parsed = JSON.stringify(product_extrafields);
@@ -8407,13 +8449,13 @@ var Checkout = function Checkout(props) {
8407
8449
  type: "text",
8408
8450
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8409
8451
  placeholder: lang.giftcarddicountcode,
8410
- 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,
8452
+ 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,
8411
8453
  onChange: function onChange(event) {
8412
8454
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
8413
8455
  cartarr.data.customercart.couponname = event.target.value;
8414
8456
  queryClient.setQueryData('fetchcustomercart_API', cartarr);
8415
8457
  },
8416
- 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,
8458
+ 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,
8417
8459
  style: {
8418
8460
  boxShadow: 'none'
8419
8461
  }
@@ -8422,14 +8464,14 @@ var Checkout = function Checkout(props) {
8422
8464
  }, /*#__PURE__*/React__default["default"].createElement("button", {
8423
8465
  className: " ".concat(checkoutstyles.applybtnstyles),
8424
8466
  onClick: function onClick() {
8425
- var _fetchcustomercartQue43, _fetchcustomercartQue44;
8426
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue43 !== void 0 && (_fetchcustomercartQue44 = _fetchcustomercartQue43.data) !== null && _fetchcustomercartQue44 !== void 0 && _fetchcustomercartQue44.customercart.couponexists)) {
8427
- var _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48;
8467
+ var _fetchcustomercartQue63, _fetchcustomercartQue64;
8468
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue63 !== void 0 && (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) !== null && _fetchcustomercartQue64 !== void 0 && _fetchcustomercartQue64.customercart.couponexists)) {
8469
+ var _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68;
8428
8470
  var payloadobj = {
8429
- 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,
8471
+ 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,
8430
8472
  functype: 'add'
8431
8473
  };
8432
- 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) {
8474
+ 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) {
8433
8475
  ApplyPromoCodeMutationContext.mutate(payloadobj);
8434
8476
  } else {
8435
8477
  NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
@@ -8444,14 +8486,14 @@ var Checkout = function Checkout(props) {
8444
8486
  disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
8445
8487
  }, /*#__PURE__*/React__default["default"].createElement("span", {
8446
8488
  className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
8447
- }, 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__default["default"].createElement("div", {
8489
+ }, 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__default["default"].createElement("div", {
8448
8490
  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 '
8449
8491
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
8450
8492
  color: "#fff",
8451
8493
  width: "20px",
8452
8494
  height: "20px",
8453
8495
  duration: "1s"
8454
- })))))), (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__default["default"].createElement("div", {
8496
+ })))))), (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__default["default"].createElement("div", {
8455
8497
  className: "row m-0 w-100"
8456
8498
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8457
8499
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -8461,7 +8503,7 @@ var Checkout = function Checkout(props) {
8461
8503
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8462
8504
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8463
8505
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8464
- }, 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__default["default"].createElement("div", {
8506
+ }, 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__default["default"].createElement("div", {
8465
8507
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
8466
8508
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8467
8509
  style: {
@@ -8471,7 +8513,7 @@ var Checkout = function Checkout(props) {
8471
8513
  onClick: function onClick() {
8472
8514
  usewalletpoints();
8473
8515
  }
8474
- }, 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__default["default"].createElement("div", {
8516
+ }, 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__default["default"].createElement("div", {
8475
8517
  className: "row m-0 w-100"
8476
8518
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8477
8519
  className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
@@ -8493,9 +8535,9 @@ var Checkout = function Checkout(props) {
8493
8535
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8494
8536
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8495
8537
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8496
- }, 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__default["default"].createElement("div", {
8538
+ }, 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__default["default"].createElement("div", {
8497
8539
  className: "row m-0 w-100"
8498
- }, 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) {
8540
+ }, 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) {
8499
8541
  return /*#__PURE__*/React__default["default"].createElement("div", {
8500
8542
  "class": "col-lg-12 p-0"
8501
8543
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -8515,7 +8557,7 @@ var Checkout = function Checkout(props) {
8515
8557
  color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
8516
8558
  }
8517
8559
  }, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React__default["default"].createElement("span", null, item.value, "%")))));
8518
- }))), (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__default["default"].createElement("div", {
8560
+ }))), (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__default["default"].createElement("div", {
8519
8561
  className: "row m-0 w-100"
8520
8562
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8521
8563
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -8528,7 +8570,7 @@ var Checkout = function Checkout(props) {
8528
8570
  style: {
8529
8571
  color: 'red'
8530
8572
  }
8531
- }, 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__default["default"].createElement("div", {
8573
+ }, 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__default["default"].createElement("div", {
8532
8574
  className: "col-lg-12 p-0 mb-1"
8533
8575
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8534
8576
  className: "row m-0 w-100"
@@ -8540,7 +8582,7 @@ var Checkout = function Checkout(props) {
8540
8582
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8541
8583
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8542
8584
  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 '
8543
- }, (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__default["default"].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__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
8585
+ }, (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__default["default"].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__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
8544
8586
  className: "col-lg-12 p-0"
8545
8587
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8546
8588
  className: "row m-0 w-100"
@@ -8548,11 +8590,11 @@ var Checkout = function Checkout(props) {
8548
8590
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
8549
8591
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8550
8592
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
8551
- }, 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__default["default"].createElement("div", {
8593
+ }, 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__default["default"].createElement("div", {
8552
8594
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8553
8595
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8554
8596
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8555
- }, 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__default["default"].createElement("div", {
8597
+ }, 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__default["default"].createElement("div", {
8556
8598
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8557
8599
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8558
8600
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -8591,7 +8633,7 @@ var Checkout = function Checkout(props) {
8591
8633
  textTransform: sectionproperties.total_texttransform,
8592
8634
  color: sectionproperties.total_color
8593
8635
  }
8594
- }, 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__default["default"].createElement("div", {
8636
+ }, 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__default["default"].createElement("div", {
8595
8637
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
8596
8638
  style: {
8597
8639
  background: '#eee',
@@ -8615,16 +8657,17 @@ var Checkout = function Checkout(props) {
8615
8657
  }, /*#__PURE__*/React__default["default"].createElement("button", {
8616
8658
  className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
8617
8659
  onClick: function onClick() {
8618
- var payloadobj = {};
8619
- AddOrderMutationContext.mutate(payloadobj);
8660
+ addorderfuncrunner();
8661
+ // AddOrderMutationContext.mutate(payloadobj);
8620
8662
  },
8663
+
8621
8664
  disabled: AddOrderMutationContext.isLoading ? true : false
8622
8665
  }, AddOrderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
8623
8666
  color: "#fff",
8624
8667
  width: "20px",
8625
8668
  height: "20px",
8626
8669
  duration: "1s"
8627
- }), !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 : ''))))));
8670
+ }), !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 : ''))))));
8628
8671
  };
8629
8672
  return /*#__PURE__*/React__default["default"].createElement("div", {
8630
8673
  className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
@@ -8771,7 +8814,7 @@ var Checkout = function Checkout(props) {
8771
8814
  }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
8772
8815
  type: 'text',
8773
8816
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8774
- 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,
8817
+ 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,
8775
8818
  onChange: function onChange(event) {
8776
8819
  cartinfoupdater('name', event.target.value);
8777
8820
  },
@@ -8786,7 +8829,7 @@ var Checkout = function Checkout(props) {
8786
8829
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
8787
8830
  type: 'text',
8788
8831
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8789
- 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,
8832
+ 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,
8790
8833
  onChange: function onChange(event) {
8791
8834
  cartinfoupdater('mobile', event.target.value);
8792
8835
  },
@@ -8801,7 +8844,7 @@ var Checkout = function Checkout(props) {
8801
8844
  }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
8802
8845
  type: 'text',
8803
8846
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8804
- 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,
8847
+ 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,
8805
8848
  onChange: function onChange(event) {
8806
8849
  cartinfoupdater('email', event.target.value);
8807
8850
  },
@@ -8845,8 +8888,8 @@ var Checkout = function Checkout(props) {
8845
8888
  return option.id;
8846
8889
  },
8847
8890
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
8848
- var _fetchcustomercartQue105, _fetchcustomercartQue106;
8849
- 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);
8891
+ var _fetchcustomercartQue125, _fetchcustomercartQue126;
8892
+ 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);
8850
8893
  }),
8851
8894
  onChange: function onChange(option) {
8852
8895
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$25({}, FetchTabexStatesPayloadobjContext);
@@ -8891,12 +8934,12 @@ var Checkout = function Checkout(props) {
8891
8934
  return option.id;
8892
8935
  },
8893
8936
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
8894
- var _fetchcustomercartQue107, _fetchcustomercartQue108;
8895
- 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);
8937
+ var _fetchcustomercartQue127, _fetchcustomercartQue128;
8938
+ 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);
8896
8939
  }),
8897
8940
  onChange: function onChange(option) {
8898
- var _fetchcustomercartQue109, _fetchcustomercartQue110;
8899
- 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) {
8941
+ var _fetchcustomercartQue129, _fetchcustomercartQue130;
8942
+ 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) {
8900
8943
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$25({}, FetchTabexStatesPayloadobjContext);
8901
8944
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
8902
8945
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -8939,8 +8982,8 @@ var Checkout = function Checkout(props) {
8939
8982
  return option.id;
8940
8983
  },
8941
8984
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
8942
- var _fetchcustomercartQue111, _fetchcustomercartQue112;
8943
- 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);
8985
+ var _fetchcustomercartQue131, _fetchcustomercartQue132;
8986
+ 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);
8944
8987
  }),
8945
8988
  onChange: function onChange(option) {
8946
8989
  cartinfoupdater('cityid', option.id);
@@ -8955,7 +8998,7 @@ var Checkout = function Checkout(props) {
8955
8998
  }, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
8956
8999
  type: 'text',
8957
9000
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8958
- 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,
9001
+ 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,
8959
9002
  onChange: function onChange(event) {
8960
9003
  cartinfoupdater('address', event.target.value);
8961
9004
  },
@@ -8970,7 +9013,7 @@ var Checkout = function Checkout(props) {
8970
9013
  }, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
8971
9014
  type: 'text',
8972
9015
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8973
- 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,
9016
+ 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,
8974
9017
  onChange: function onChange(event) {
8975
9018
  cartinfoupdater('notes', event.target.value);
8976
9019
  },
@@ -8985,7 +9028,7 @@ var Checkout = function Checkout(props) {
8985
9028
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
8986
9029
  type: 'number',
8987
9030
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8988
- 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,
9031
+ 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,
8989
9032
  onChange: function onChange(event) {
8990
9033
  cartinfoupdater('aff_code', event.target.value);
8991
9034
  },
@@ -9016,10 +9059,10 @@ var Checkout = function Checkout(props) {
9016
9059
  id: 'codcheckbox',
9017
9060
  type: "checkbox",
9018
9061
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9019
- 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,
9062
+ 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,
9020
9063
  onChange: function onChange() {
9021
- var _fetchcustomercartQue122, _fetchcustomercartQue123;
9022
- 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') {
9064
+ var _fetchcustomercartQue142, _fetchcustomercartQue143;
9065
+ 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') {
9023
9066
  cartinfoupdater('paymentmethod', 'cod');
9024
9067
  }
9025
9068
  }
@@ -9040,10 +9083,10 @@ var Checkout = function Checkout(props) {
9040
9083
  }, /*#__PURE__*/React__default["default"].createElement("input", {
9041
9084
  type: "checkbox",
9042
9085
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9043
- 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,
9086
+ 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,
9044
9087
  onChange: function onChange() {
9045
- var _fetchcustomercartQue126, _fetchcustomercartQue127;
9046
- 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') {
9088
+ var _fetchcustomercartQue146, _fetchcustomercartQue147;
9089
+ 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') {
9047
9090
  cartinfoupdater('paymentmethod', 'cardondelivery');
9048
9091
  }
9049
9092
  }
@@ -9061,10 +9104,10 @@ var Checkout = function Checkout(props) {
9061
9104
  }, /*#__PURE__*/React__default["default"].createElement("input", {
9062
9105
  type: "checkbox",
9063
9106
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9064
- 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,
9107
+ 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,
9065
9108
  onChange: function onChange() {
9066
- var _fetchcustomercartQue130, _fetchcustomercartQue131;
9067
- 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') {
9109
+ var _fetchcustomercartQue150, _fetchcustomercartQue151;
9110
+ 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') {
9068
9111
  cartinfoupdater('paymentmethod', 'onlinepayment');
9069
9112
  }
9070
9113
  }
@@ -9082,10 +9125,10 @@ var Checkout = function Checkout(props) {
9082
9125
  }, /*#__PURE__*/React__default["default"].createElement("input", {
9083
9126
  type: "checkbox",
9084
9127
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9085
- 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,
9128
+ 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,
9086
9129
  onChange: function onChange() {
9087
- var _fetchcustomercartQue134, _fetchcustomercartQue135;
9088
- 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') {
9130
+ var _fetchcustomercartQue154, _fetchcustomercartQue155;
9131
+ 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') {
9089
9132
  cartinfoupdater('paymentmethod', 'valU');
9090
9133
  }
9091
9134
  }
@@ -9096,7 +9139,7 @@ var Checkout = function Checkout(props) {
9096
9139
  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"
9097
9140
  })), /*#__PURE__*/React__default["default"].createElement("p", {
9098
9141
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
9099
- }, " 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__default["default"].createElement("div", {
9142
+ }, " 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__default["default"].createElement("div", {
9100
9143
  className: "col-lg-12 p-0 w-100 mb-3"
9101
9144
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9102
9145
  style: {
@@ -43371,7 +43414,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43371
43414
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43372
43415
  "class": "row m-0 w-100 allcentered"
43373
43416
  }, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43374
- className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
43417
+ className: sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Hide' ? ' col-lg-4 col-md-12 col-sm-12 mb-md-3 ' : ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
43375
43418
  }, /*#__PURE__*/React__default["default"].createElement("label", {
43376
43419
  className: ' d-flex justify-content-start ',
43377
43420
  style: {
@@ -43408,7 +43451,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43408
43451
  isSearchable: true,
43409
43452
  placeholder: ''
43410
43453
  })), /*#__PURE__*/React__default["default"].createElement("div", {
43411
- "class": sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? 'col-lg-8 p-0' : sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
43454
+ "class": sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? 'col-lg-8 p-0' : sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Hide' ? 'col-lg-8 p-0' : 'col-lg-12 p-0'
43412
43455
  }, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm
43413
43456
  // customeraddressrequierd={customeraddressrequierd}
43414
43457
  // payloadobj={payloadobj}