tabexseriescomponents 0.0.279 → 0.0.281

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
@@ -123,7 +123,7 @@ var AiOutlinePhone = require('@react-icons/all-files/ai/AiOutlinePhone');
123
123
  var GoLocation = require('@react-icons/all-files/go/GoLocation');
124
124
  var RiRoadMapLine = require('@react-icons/all-files/ri/RiRoadMapLine');
125
125
  var HiOutlineClock = require('@react-icons/all-files/hi/HiOutlineClock');
126
- var Select$2 = require('react-select');
126
+ var Select$3 = require('react-select');
127
127
  var IoIosArrowRoundForward = require('@react-icons/all-files/io/IoIosArrowRoundForward');
128
128
  var IoIosArrowRoundBack = require('@react-icons/all-files/io/IoIosArrowRoundBack');
129
129
  var ReactPlayer = require('react-player');
@@ -181,7 +181,7 @@ var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
181
181
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
182
182
  var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
183
183
  var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
184
- var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$2);
184
+ var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$3);
185
185
  var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
186
186
  var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
187
187
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
@@ -1583,7 +1583,7 @@ var ProductExtraFields = function ProductExtraFields(props) {
1583
1583
  function ownKeys$23(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1584
1584
  function _objectSpread$23(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$23(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$23(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1585
1585
  var Product_itemtype = function Product_itemtype(props) {
1586
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45;
1586
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52;
1587
1587
  var lang = props.actions.lang;
1588
1588
  var langdetect = props.actions.langdetect;
1589
1589
  var srcfromprops = props.actions.srcfromprops;
@@ -1739,8 +1739,19 @@ var Product_itemtype = function Product_itemtype(props) {
1739
1739
  }
1740
1740
  }),
1741
1741
  activeColor: "#ffd700"
1742
- })), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1743
- "class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
1742
+ })), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.vendorinfo) != null && sectionproperties.showvendor == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1743
+ "class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
1744
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
1745
+ "class": "m-0 p-0",
1746
+ style: {
1747
+ color: '#000'
1748
+ }
1749
+ }, langdetect == 'en' ? 'Seller' : 'البائع', ":", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
1750
+ style: {
1751
+ fontWeight: 600
1752
+ }
1753
+ }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.vendorinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.vendorname))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1754
+ "class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
1744
1755
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1745
1756
  "class": "m-0 p-0 d-flex justify-content-start"
1746
1757
  }, /*#__PURE__*/React__default["default"].createElement("span", {
@@ -1758,7 +1769,7 @@ var Product_itemtype = function Product_itemtype(props) {
1758
1769
  fontSize: sectionproperties.skuFontSize + 'px',
1759
1770
  textAlign: langdetect == 'en' ? 'left' : 'right'
1760
1771
  }
1761
- }, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
1772
+ }, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
1762
1773
  "class": "mb-4 col-lg-12",
1763
1774
  style: {
1764
1775
  width: '100%',
@@ -1778,9 +1789,9 @@ var Product_itemtype = function Product_itemtype(props) {
1778
1789
  style: {
1779
1790
  textAlign: langdetect == 'en' ? 'left' : 'right'
1780
1791
  }
1781
- }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : (_fetchProductInfoQuer20 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1792
+ }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1782
1793
  actions: props.actions
1783
- }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : (_fetchProductInfoQuer23 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1794
+ }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1784
1795
  className: "row m-0 w-100 d-flex align-items-start"
1785
1796
  }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
1786
1797
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1855,7 +1866,7 @@ var Product_itemtype = function Product_itemtype(props) {
1855
1866
  }
1856
1867
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1857
1868
  className: "row m-0 w-100 d-flex align-items-center"
1858
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1869
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1859
1870
  className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
1860
1871
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1861
1872
  className: "m-0 p-0",
@@ -1865,7 +1876,7 @@ var Product_itemtype = function Product_itemtype(props) {
1865
1876
  textTransform: sectionproperties.generaltext_textTransform,
1866
1877
  fontWeight: sectionproperties.generaltext_fontWeight
1867
1878
  }
1868
- }, lang.quantity, ":")), sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : (_fetchProductInfoQuer35 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1879
+ }, lang.quantity, ":")), sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1869
1880
  className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
1870
1881
  style: {
1871
1882
  height: sectionproperties.quantitybtn_height + 'px',
@@ -1901,7 +1912,7 @@ var Product_itemtype = function Product_itemtype(props) {
1901
1912
  style: {
1902
1913
  fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px'
1903
1914
  }
1904
- }))), sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1915
+ }))), sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1905
1916
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
1906
1917
  onClick: function onClick() {
1907
1918
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
@@ -1967,7 +1978,7 @@ var Product_itemtype = function Product_itemtype(props) {
1967
1978
  size: sectionproperties.favBtnIconfontsize
1968
1979
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
1969
1980
  size: sectionproperties.favBtnIconfontsize
1970
- })))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1981
+ })))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1971
1982
  className: "col-lg-12 p-0 mb-3"
1972
1983
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1973
1984
  className: "row m-0 w-100 d-flex flex-row"
@@ -2004,7 +2015,7 @@ var Product_itemtype = function Product_itemtype(props) {
2004
2015
  style: {
2005
2016
  textDecoration: 'none'
2006
2017
  }
2007
- }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : (_fetchProductInfoQuer44 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2018
+ }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2008
2019
  className: "col-lg-12 p-0 mb-3 mt-2"
2009
2020
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2010
2021
  style: {
@@ -3546,7 +3557,7 @@ var Productinfo = function Productinfo(props) {
3546
3557
  props.actions.TabexSectionsComponentsContext;
3547
3558
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
3548
3559
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
3549
- var serverbaselink = props.actions.serverbaselink;
3560
+ props.actions.serverbaselink;
3550
3561
  var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
3551
3562
  var ProductIdProdutInfoModalContext = props.actions.ProductIdProdutInfoModalContext;
3552
3563
  var AddtoCartContext = props.actions.AddtoCartContext;
@@ -3696,15 +3707,15 @@ var Productinfo = function Productinfo(props) {
3696
3707
  setfetchproductinfoObjContext(_objectSpread$1$({}, tempfetchproductinfoObjContext));
3697
3708
  };
3698
3709
  React.useEffect(function () {
3699
- if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
3710
+ if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
3700
3711
  if (fetchProductInfoQueryContext.data.data.productinfo != null) {
3701
3712
  var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
3702
3713
  var tempproductimagesarray = [];
3703
3714
  if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
3704
3715
  fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
3705
3716
  var productimagesarrayobj = {
3706
- thumbnail: serverbaselink + arrayItem.path,
3707
- original: serverbaselink + arrayItem.path,
3717
+ thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + arrayItem.path,
3718
+ original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + arrayItem.path,
3708
3719
  galleryid: arrayItem.galleryid
3709
3720
  // description:
3710
3721
  // // { dangerouslySetInnerHTML={{
@@ -3736,7 +3747,7 @@ var Productinfo = function Productinfo(props) {
3736
3747
  }
3737
3748
  }
3738
3749
  }
3739
- }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
3750
+ }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
3740
3751
  var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
3741
3752
  var _productarr$data, _productarr$data$prod, _productarr$data$prod2;
3742
3753
  var productarr = ProductInfoObj;
@@ -5040,7 +5051,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
5040
5051
  function ownKeys$1Z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5041
5052
  function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5042
5053
  var Ordershistory = function Ordershistory(props) {
5043
- var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8;
5054
+ var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8, _fetchorderhistoryQue9, _fetchorderhistoryQue10, _fetchorderhistoryQue11, _fetchorderhistoryQue12, _fetchorderhistoryQue13, _fetchorderhistoryQue14;
5044
5055
  var lang = props.actions.lang;
5045
5056
  var langdetect = props.actions.langdetect;
5046
5057
  var routingcountext = props.actions.routingcountext;
@@ -5855,7 +5866,20 @@ var Ordershistory = function Ordershistory(props) {
5855
5866
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
5856
5867
  }, /*#__PURE__*/React__default["default"].createElement("p", {
5857
5868
  className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize '
5858
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
5869
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue9 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue9 === void 0 ? void 0 : (_fetchorderhistoryQue10 = _fetchorderhistoryQue9.data) === null || _fetchorderhistoryQue10 === void 0 ? void 0 : (_fetchorderhistoryQue11 = _fetchorderhistoryQue10.ordershistory[orderindex]) === null || _fetchorderhistoryQue11 === void 0 ? void 0 : _fetchorderhistoryQue11.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
5870
+ className: "row m-0 w-100 mb-2"
5871
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5872
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
5873
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5874
+ className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center '
5875
+ }, langdetect == 'en' ? 'Wallet discount' : 'خصم المحفظة')), /*#__PURE__*/React__default["default"].createElement("div", {
5876
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
5877
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5878
+ className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize ',
5879
+ style: {
5880
+ color: 'red'
5881
+ }
5882
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue12 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue12 === void 0 ? void 0 : (_fetchorderhistoryQue13 = _fetchorderhistoryQue12.data) === null || _fetchorderhistoryQue13 === void 0 ? void 0 : (_fetchorderhistoryQue14 = _fetchorderhistoryQue13.ordershistory[orderindex]) === null || _fetchorderhistoryQue14 === void 0 ? void 0 : _fetchorderhistoryQue14.walletpointsused, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
5859
5883
  className: "row m-0 w-100 mb-2"
5860
5884
  }, /*#__PURE__*/React__default["default"].createElement("div", {
5861
5885
  className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
@@ -7111,11 +7135,11 @@ var defaultstylestranslated = {
7111
7135
 
7112
7136
  function ownKeys$1V(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7113
7137
  function _objectSpread$1V(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1V(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1V(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7114
- var Select$1 = /*#__PURE__*/React__default["default"].lazy(function () {
7138
+ var Select$2 = /*#__PURE__*/React__default["default"].lazy(function () {
7115
7139
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
7116
7140
  });
7117
7141
  var Checkout = function Checkout(props) {
7118
- var _css, _checkoutstyles, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue87, _fetchcustomercartQue88, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue98, _fetchcustomercartQue99, _fetchcustomercartQue102, _fetchcustomercartQue103, _fetchcustomercartQue106, _fetchcustomercartQue107;
7142
+ var _css, _checkoutstyles, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue105, _fetchcustomercartQue106, _fetchcustomercartQue107, _fetchcustomercartQue108, _fetchcustomercartQue109, _fetchcustomercartQue110, _fetchcustomercartQue111, _fetchcustomercartQue112, _fetchcustomercartQue113, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue124, _fetchcustomercartQue125;
7119
7143
  var _useState = React.useState(null),
7120
7144
  _useState2 = _slicedToArray__default["default"](_useState, 2),
7121
7145
  timer = _useState2[0],
@@ -7129,6 +7153,7 @@ var Checkout = function Checkout(props) {
7129
7153
  var templatepropcontext = props.actions.templatepropcontext;
7130
7154
  var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
7131
7155
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
7156
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
7132
7157
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
7133
7158
  var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
7134
7159
  var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
@@ -7240,6 +7265,19 @@ var Checkout = function Checkout(props) {
7240
7265
  ChooseState_CountryMutationContext.mutate(payloadobj);
7241
7266
  }
7242
7267
  };
7268
+ var usewalletpoints = function usewalletpoints() {
7269
+ GeneralAPIMutationContext.mutate({
7270
+ endpointurl: '/usewalletpoints',
7271
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
7272
+ if (data.data.status) {
7273
+ NotificationManager.success('', 'Success');
7274
+ fetchcustomercartQueryContext.refetch();
7275
+ } else {
7276
+ NotificationManager.warning('', data.data.reason);
7277
+ }
7278
+ }
7279
+ });
7280
+ };
7243
7281
  var checkoutstyles = (_checkoutstyles = {
7244
7282
  Salepricestyless: glamor.css({
7245
7283
  fontSize: sectionproperties.prodsalepriceFontSize + 'px',
@@ -7408,7 +7446,7 @@ var Checkout = function Checkout(props) {
7408
7446
  border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor
7409
7447
  })), _checkoutstyles);
7410
7448
  var Mycart = function Mycart() {
7411
- 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;
7449
+ 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;
7412
7450
  return /*#__PURE__*/React__default["default"].createElement("div", {
7413
7451
  className: "row m-0 w-100"
7414
7452
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -7576,7 +7614,39 @@ var Checkout = function Checkout(props) {
7576
7614
  width: "20px",
7577
7615
  height: "20px",
7578
7616
  duration: "1s"
7579
- })))))), /*#__PURE__*/React__default["default"].createElement("div", {
7617
+ })))))), (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", {
7618
+ className: "row m-0 w-100"
7619
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
7620
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
7621
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
7622
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
7623
+ }, langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة')), /*#__PURE__*/React__default["default"].createElement("div", {
7624
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7625
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
7626
+ className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
7627
+ }, 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", {
7628
+ className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
7629
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
7630
+ style: {
7631
+ color: 'green',
7632
+ cursor: 'pointer'
7633
+ },
7634
+ onClick: function onClick() {
7635
+ usewalletpoints();
7636
+ }
7637
+ }, 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", {
7638
+ className: "row m-0 w-100"
7639
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
7640
+ className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
7641
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
7642
+ style: {
7643
+ color: 'red',
7644
+ cursor: 'pointer'
7645
+ },
7646
+ onClick: function onClick() {
7647
+ usewalletpoints();
7648
+ }
7649
+ }, langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'))), /*#__PURE__*/React__default["default"].createElement("div", {
7580
7650
  className: "row m-0 w-100"
7581
7651
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7582
7652
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -7586,7 +7656,20 @@ var Checkout = function Checkout(props) {
7586
7656
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7587
7657
  }, /*#__PURE__*/React__default["default"].createElement("p", {
7588
7658
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
7589
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(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.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))), (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.couponexists) && (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.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
7659
+ }, 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)))), (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 : _fetchcustomercartQue67.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
7660
+ className: "row m-0 w-100"
7661
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
7662
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
7663
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
7664
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
7665
+ }, "Wallet points used")), /*#__PURE__*/React__default["default"].createElement("div", {
7666
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7667
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
7668
+ className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
7669
+ style: {
7670
+ color: 'red'
7671
+ }
7672
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : (_fetchcustomercartQue69 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.customercart) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (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 : _fetchcustomercartQue72.customercart.couponexists) && (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 : _fetchcustomercartQue74.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
7590
7673
  className: "col-lg-12 p-0 mb-1"
7591
7674
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7592
7675
  className: "row m-0 w-100"
@@ -7598,7 +7681,7 @@ var Checkout = function Checkout(props) {
7598
7681
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7599
7682
  }, /*#__PURE__*/React__default["default"].createElement("p", {
7600
7683
  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 '
7601
- }, (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.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 : (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : (_fetchcustomercartQue60 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : (_fetchcustomercartQue62 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
7684
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : (_fetchcustomercartQue76 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.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 : (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.discountprice).toFixed(2), ' ', 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.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
7602
7685
  className: "col-lg-12 p-0"
7603
7686
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7604
7687
  className: "row m-0 w-100"
@@ -7606,11 +7689,11 @@ var Checkout = function Checkout(props) {
7606
7689
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
7607
7690
  }, /*#__PURE__*/React__default["default"].createElement("p", {
7608
7691
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
7609
- }, lang.shippingfees)), (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.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
7692
+ }, lang.shippingfees)), (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.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
7610
7693
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7611
7694
  }, /*#__PURE__*/React__default["default"].createElement("p", {
7612
7695
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
7613
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(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.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue67 !== void 0 && (_fetchcustomercartQue68 = _fetchcustomercartQue67.data) !== null && _fetchcustomercartQue68 !== void 0 && _fetchcustomercartQue68.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
7696
+ }, 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.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue85 !== void 0 && (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) !== null && _fetchcustomercartQue86 !== void 0 && _fetchcustomercartQue86.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
7614
7697
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7615
7698
  }, /*#__PURE__*/React__default["default"].createElement("p", {
7616
7699
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -7649,7 +7732,7 @@ var Checkout = function Checkout(props) {
7649
7732
  textTransform: sectionproperties.total_texttransform,
7650
7733
  color: sectionproperties.total_color
7651
7734
  }
7652
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(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 : _fetchcustomercartQue70.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", {
7735
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(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.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", {
7653
7736
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
7654
7737
  style: {
7655
7738
  background: '#eee',
@@ -7679,7 +7762,7 @@ var Checkout = function Checkout(props) {
7679
7762
  width: "20px",
7680
7763
  height: "20px",
7681
7764
  duration: "1s"
7682
- }), !AddOrderMutationContext.isLoading ? (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 : _fetchcustomercartQue72.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : lang.confirmorder + ' ' + lang.asaguest : ''))))));
7765
+ }), !AddOrderMutationContext.isLoading ? (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.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : lang.confirmorder + ' ' + lang.asaguest : ''))))));
7683
7766
  };
7684
7767
  return /*#__PURE__*/React__default["default"].createElement("div", {
7685
7768
  className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
@@ -7836,7 +7919,7 @@ var Checkout = function Checkout(props) {
7836
7919
  }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
7837
7920
  type: 'text',
7838
7921
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
7839
- value: 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 : _fetchcustomercartQue74.customercart.name,
7922
+ value: 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.name,
7840
7923
  onChange: function onChange(event) {
7841
7924
  cartinfoupdater('name', event.target.value);
7842
7925
  },
@@ -7851,7 +7934,7 @@ var Checkout = function Checkout(props) {
7851
7934
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
7852
7935
  type: 'text',
7853
7936
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
7854
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : (_fetchcustomercartQue76 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.mobile,
7937
+ value: 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 : _fetchcustomercartQue94.customercart.mobile,
7855
7938
  onChange: function onChange(event) {
7856
7939
  cartinfoupdater('mobile', event.target.value);
7857
7940
  },
@@ -7866,7 +7949,7 @@ var Checkout = function Checkout(props) {
7866
7949
  }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
7867
7950
  type: 'text',
7868
7951
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
7869
- value: 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 : _fetchcustomercartQue78.customercart.email,
7952
+ value: 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.email,
7870
7953
  onChange: function onChange(event) {
7871
7954
  cartinfoupdater('email', event.target.value);
7872
7955
  },
@@ -7888,7 +7971,7 @@ var Checkout = function Checkout(props) {
7888
7971
  width: "20px",
7889
7972
  height: "20px",
7890
7973
  duration: "1s"
7891
- })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7974
+ })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$2, {
7892
7975
  options: fetchTabexCountriesQueryContext.data.data.countries,
7893
7976
  getOptionLabel: function getOptionLabel(option) {
7894
7977
  var crname = '';
@@ -7907,8 +7990,8 @@ var Checkout = function Checkout(props) {
7907
7990
  return option.id;
7908
7991
  },
7909
7992
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
7910
- var _fetchcustomercartQue79, _fetchcustomercartQue80;
7911
- return option.id == (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.countryid);
7993
+ var _fetchcustomercartQue97, _fetchcustomercartQue98;
7994
+ return option.id == (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.countryid);
7912
7995
  }),
7913
7996
  onChange: function onChange(option) {
7914
7997
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$1V({}, FetchTabexStatesPayloadobjContext);
@@ -7931,7 +8014,7 @@ var Checkout = function Checkout(props) {
7931
8014
  width: "20px",
7932
8015
  height: "20px",
7933
8016
  duration: "1s"
7934
- })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8017
+ })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$2, {
7935
8018
  options: fetchTabexStatesQueryContext.data.data.states
7936
8019
  // getOptionLabel={(option) => option.name}
7937
8020
  // getOptionValue={(option) => option.id}
@@ -7953,12 +8036,12 @@ var Checkout = function Checkout(props) {
7953
8036
  return option.id;
7954
8037
  },
7955
8038
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
7956
- var _fetchcustomercartQue81, _fetchcustomercartQue82;
7957
- return option.id == (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.stateid);
8039
+ var _fetchcustomercartQue99, _fetchcustomercartQue100;
8040
+ return option.id == (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.stateid);
7958
8041
  }),
7959
8042
  onChange: function onChange(option) {
7960
- var _fetchcustomercartQue83, _fetchcustomercartQue84;
7961
- if (option.id.length != 0 && (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.countryid.length) != 0) {
8043
+ var _fetchcustomercartQue101, _fetchcustomercartQue102;
8044
+ if (option.id.length != 0 && (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.countryid.length) != 0) {
7962
8045
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$1V({}, FetchTabexStatesPayloadobjContext);
7963
8046
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
7964
8047
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -7982,7 +8065,7 @@ var Checkout = function Checkout(props) {
7982
8065
  width: "20px",
7983
8066
  height: "20px",
7984
8067
  duration: "1s"
7985
- })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8068
+ })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$2, {
7986
8069
  options: fetchTabexCitiesQueryContext.data.data.cities,
7987
8070
  getOptionLabel: function getOptionLabel(option) {
7988
8071
  var crname = '';
@@ -8001,8 +8084,8 @@ var Checkout = function Checkout(props) {
8001
8084
  return option.id;
8002
8085
  },
8003
8086
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
8004
- var _fetchcustomercartQue85, _fetchcustomercartQue86;
8005
- return option.id == (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.cityid);
8087
+ var _fetchcustomercartQue103, _fetchcustomercartQue104;
8088
+ return option.id == (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.cityid);
8006
8089
  }),
8007
8090
  onChange: function onChange(option) {
8008
8091
  cartinfoupdater('cityid', option.id);
@@ -8017,7 +8100,7 @@ var Checkout = function Checkout(props) {
8017
8100
  }, lang.shippingaddress), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
8018
8101
  type: 'text',
8019
8102
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8020
- value: 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.address,
8103
+ value: 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.address,
8021
8104
  onChange: function onChange(event) {
8022
8105
  cartinfoupdater('address', event.target.value);
8023
8106
  },
@@ -8032,7 +8115,7 @@ var Checkout = function Checkout(props) {
8032
8115
  }, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
8033
8116
  type: 'text',
8034
8117
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8035
- value: 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.notes,
8118
+ value: 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.notes,
8036
8119
  onChange: function onChange(event) {
8037
8120
  cartinfoupdater('notes', event.target.value);
8038
8121
  },
@@ -8047,7 +8130,7 @@ var Checkout = function Checkout(props) {
8047
8130
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
8048
8131
  type: 'number',
8049
8132
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8050
- value: 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 : (_fetchcustomercartQue93 = _fetchcustomercartQue92.customercart) === null || _fetchcustomercartQue93 === void 0 ? void 0 : _fetchcustomercartQue93.aff_code,
8133
+ value: 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 : (_fetchcustomercartQue111 = _fetchcustomercartQue110.customercart) === null || _fetchcustomercartQue111 === void 0 ? void 0 : _fetchcustomercartQue111.aff_code,
8051
8134
  onChange: function onChange(event) {
8052
8135
  cartinfoupdater('aff_code', event.target.value);
8053
8136
  },
@@ -8078,10 +8161,10 @@ var Checkout = function Checkout(props) {
8078
8161
  id: 'codcheckbox',
8079
8162
  type: "checkbox",
8080
8163
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8081
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue94 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : (_fetchcustomercartQue95 = _fetchcustomercartQue94.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : _fetchcustomercartQue95.customercart.paymentmethod) == 'cod' ? true : false,
8164
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue112 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue112 === void 0 ? void 0 : (_fetchcustomercartQue113 = _fetchcustomercartQue112.data) === null || _fetchcustomercartQue113 === void 0 ? void 0 : _fetchcustomercartQue113.customercart.paymentmethod) == 'cod' ? true : false,
8082
8165
  onChange: function onChange() {
8083
- var _fetchcustomercartQue96, _fetchcustomercartQue97;
8084
- if ((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 : _fetchcustomercartQue97.customercart.paymentmethod) != 'cod') {
8166
+ var _fetchcustomercartQue114, _fetchcustomercartQue115;
8167
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue114 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue114 === void 0 ? void 0 : (_fetchcustomercartQue115 = _fetchcustomercartQue114.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : _fetchcustomercartQue115.customercart.paymentmethod) != 'cod') {
8085
8168
  cartinfoupdater('paymentmethod', 'cod');
8086
8169
  }
8087
8170
  }
@@ -8100,10 +8183,10 @@ var Checkout = function Checkout(props) {
8100
8183
  }, /*#__PURE__*/React__default["default"].createElement("input", {
8101
8184
  type: "checkbox",
8102
8185
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8103
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue98 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : (_fetchcustomercartQue99 = _fetchcustomercartQue98.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : _fetchcustomercartQue99.customercart.paymentmethod) == 'cardondelivery' ? true : false,
8186
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue116 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue116 === void 0 ? void 0 : (_fetchcustomercartQue117 = _fetchcustomercartQue116.data) === null || _fetchcustomercartQue117 === void 0 ? void 0 : _fetchcustomercartQue117.customercart.paymentmethod) == 'cardondelivery' ? true : false,
8104
8187
  onChange: function onChange() {
8105
- var _fetchcustomercartQue100, _fetchcustomercartQue101;
8106
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue100 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue100 === void 0 ? void 0 : (_fetchcustomercartQue101 = _fetchcustomercartQue100.data) === null || _fetchcustomercartQue101 === void 0 ? void 0 : _fetchcustomercartQue101.customercart.paymentmethod) != 'cardondelivery') {
8188
+ var _fetchcustomercartQue118, _fetchcustomercartQue119;
8189
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue118 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue118 === void 0 ? void 0 : (_fetchcustomercartQue119 = _fetchcustomercartQue118.data) === null || _fetchcustomercartQue119 === void 0 ? void 0 : _fetchcustomercartQue119.customercart.paymentmethod) != 'cardondelivery') {
8107
8190
  cartinfoupdater('paymentmethod', 'cardondelivery');
8108
8191
  }
8109
8192
  }
@@ -8121,10 +8204,10 @@ var Checkout = function Checkout(props) {
8121
8204
  }, /*#__PURE__*/React__default["default"].createElement("input", {
8122
8205
  type: "checkbox",
8123
8206
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8124
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue102 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue102 === void 0 ? void 0 : (_fetchcustomercartQue103 = _fetchcustomercartQue102.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'onlinepayment' ? true : false,
8207
+ 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) == 'onlinepayment' ? true : false,
8125
8208
  onChange: function onChange() {
8126
- var _fetchcustomercartQue104, _fetchcustomercartQue105;
8127
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : (_fetchcustomercartQue105 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.customercart.paymentmethod) != 'onlinepayment') {
8209
+ var _fetchcustomercartQue122, _fetchcustomercartQue123;
8210
+ 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) != 'onlinepayment') {
8128
8211
  cartinfoupdater('paymentmethod', 'onlinepayment');
8129
8212
  }
8130
8213
  }
@@ -8135,7 +8218,7 @@ var Checkout = function Checkout(props) {
8135
8218
  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"
8136
8219
  })), /*#__PURE__*/React__default["default"].createElement("p", {
8137
8220
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
8138
- }, " ", lang.onlinepayment)))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 ? void 0 : (_fetchcustomercartQue107 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue107 === void 0 ? void 0 : _fetchcustomercartQue107.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
8221
+ }, " ", lang.onlinepayment)))))), (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) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
8139
8222
  className: "col-lg-12 p-0 w-100 mb-3"
8140
8223
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8141
8224
  style: {
@@ -8242,7 +8325,7 @@ var Checkout = function Checkout(props) {
8242
8325
 
8243
8326
  function ownKeys$1U(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8244
8327
  function _objectSpread$1U(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1U(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1U(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8245
- var Select = /*#__PURE__*/React__default["default"].lazy(function () {
8328
+ var Select$1 = /*#__PURE__*/React__default["default"].lazy(function () {
8246
8329
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
8247
8330
  });
8248
8331
  var CustomerInformationForm = function CustomerInformationForm(props) {
@@ -8609,7 +8692,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8609
8692
  width: "20px",
8610
8693
  height: "20px",
8611
8694
  duration: "1s"
8612
- })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
8695
+ })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8613
8696
  options: fetchTabexCountriesQueryContext.data.data.countries,
8614
8697
  getOptionLabel: function getOptionLabel(option) {
8615
8698
  var crname = '';
@@ -8657,11 +8740,11 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8657
8740
  width: "20px",
8658
8741
  height: "20px",
8659
8742
  duration: "1s"
8660
- })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
8743
+ })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8661
8744
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
8662
8745
  placeholder: lang.choosestategov,
8663
8746
  isSearchable: true
8664
- }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
8747
+ }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8665
8748
  options: fetchTabexStatesQueryContext.data.data.states,
8666
8749
  getOptionLabel: function getOptionLabel(option) {
8667
8750
  var crname = '';
@@ -8709,11 +8792,11 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8709
8792
  width: "20px",
8710
8793
  height: "20px",
8711
8794
  duration: "1s"
8712
- })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
8795
+ })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8713
8796
  placeholder: lang.choosecity,
8714
8797
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
8715
8798
  isSearchable: true
8716
- }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
8799
+ }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
8717
8800
  options: fetchTabexCitiesQueryContext.data.data.cities,
8718
8801
  getOptionLabel: function getOptionLabel(option) {
8719
8802
  var crname = '';
@@ -10904,6 +10987,9 @@ styleInject(css_248z$B);
10904
10987
 
10905
10988
  function ownKeys$1N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10906
10989
  function _objectSpread$1N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1N(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10990
+ var Select = /*#__PURE__*/React__default["default"].lazy(function () {
10991
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
10992
+ });
10907
10993
  var Filter$1 = function Filter(props) {
10908
10994
  var _authdetailsContext$i;
10909
10995
  var lang = props.actions.lang;
@@ -10916,6 +11002,13 @@ var Filter$1 = function Filter(props) {
10916
11002
  var routingcountext = props.actions.routingcountext;
10917
11003
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
10918
11004
  var ikimagecredcontext = props.actions.ikimagecredcontext;
11005
+ var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
11006
+ var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
11007
+ var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
11008
+ var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
11009
+ var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
11010
+ var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
11011
+ var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
10919
11012
  var _useState = React.useState(''),
10920
11013
  _useState2 = _slicedToArray__default["default"](_useState, 2),
10921
11014
  sectionproperties = _useState2[0],
@@ -10943,9 +11036,6 @@ var Filter$1 = function Filter(props) {
10943
11036
  _useState12 = _slicedToArray__default["default"](_useState11, 2),
10944
11037
  raterangevalue = _useState12[0],
10945
11038
  setraterangevalue = _useState12[1];
10946
- props.actions.fetchTabexCountriesQueryContext;
10947
- props.actions.FetchQueriesEngineContext;
10948
- props.actions.setFetchQueriesEngineContext;
10949
11039
  var timeoutRef = React__default["default"].useRef(null);
10950
11040
  var _useState13 = React.useState([{
10951
11041
  payloadvalue: 'sortprice',
@@ -11007,19 +11097,28 @@ var Filter$1 = function Filter(props) {
11007
11097
  }
11008
11098
  }, 500);
11009
11099
  }, [raterangevalue]);
11010
-
11011
- // useEffect(() => {
11012
- // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
11013
- // tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
11014
- // tempFetchQueriesEngineContext.fetchtabexcountries = true;
11015
- // setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
11016
-
11017
- // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
11018
-
11019
- // alert(JSON.stringify(tempFetchQueriesEngineContext));
11020
- // alert(JSON.stringify(FetchQueriesEngineContext));
11021
- // }, []);
11100
+ React.useEffect(function () {
11101
+ if (fetchTabexStatesQueryContext.isSuccess) {
11102
+ if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
11103
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
11104
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
11105
+ tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
11106
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
11107
+ }
11108
+ }
11109
+ }, [fetchTabexStatesQueryContext.isSuccess]);
11022
11110
  var filterupdater = function filterupdater() {
11111
+ setTimeout(function () {
11112
+ var tempFetchQueriesEngineContext = _objectSpread$1N({}, FetchQueriesEngineContext);
11113
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
11114
+ setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
11115
+ }, 100);
11116
+ if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
11117
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
11118
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
11119
+ tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
11120
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
11121
+ }
11023
11122
  if (instfilters.length != 0) {
11024
11123
  var _ProductFilterObjCont;
11025
11124
  var tempinstfilters = _toConsumableArray__default["default"](instfilters);
@@ -11105,8 +11204,10 @@ var Filter$1 = function Filter(props) {
11105
11204
  }
11106
11205
  tempfetchproductsfilerobjcontext.page = 0;
11107
11206
  setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
11108
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
11207
+ filterrouting(tempfetchproductsfilerobjcontext);
11208
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
11109
11209
  };
11210
+
11110
11211
  var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
11111
11212
  var _tempfetchproductsfil2;
11112
11213
  var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
@@ -11122,8 +11223,10 @@ var Filter$1 = function Filter(props) {
11122
11223
  }
11123
11224
  tempfetchproductsfilerobjcontext.page = 0;
11124
11225
  setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
11125
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
11226
+ filterrouting(tempfetchproductsfilerobjcontext);
11227
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
11126
11228
  };
11229
+
11127
11230
  var CategoriesFilter = function CategoriesFilter() {
11128
11231
  return /*#__PURE__*/React__default["default"].createElement("div", {
11129
11232
  "class": "col-lg-12 p-0"
@@ -11452,6 +11555,157 @@ var Filter$1 = function Filter(props) {
11452
11555
  }
11453
11556
  })
11454
11557
  };
11558
+ var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
11559
+ var path = window.location.pathname.split('/');
11560
+ var currentpagepath = path[1];
11561
+ var pagenamepathinstaticpagelinkcont = '';
11562
+ for (var key in StaticPagesLinksContext) {
11563
+ if (StaticPagesLinksContext[key] == currentpagepath) {
11564
+ pagenamepathinstaticpagelinkcont = key;
11565
+ }
11566
+ }
11567
+ if (pagenamepathinstaticpagelinkcont != undefined && pagenamepathinstaticpagelinkcont != '') {
11568
+ routingcountext(StaticPagesLinksContext[pagenamepathinstaticpagelinkcont], true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
11569
+ }
11570
+ };
11571
+ var Countriesfilter = function Countriesfilter() {
11572
+ var _fetchTabexCountriesQ, _fetchTabexCountriesQ2, _fetchTabexStatesQuer, _fetchTabexStatesQuer2, _fetchTabexStatesQuer3, _fetchTabexStatesQuer4, _fetchTabexCitiesQuer, _fetchTabexCitiesQuer2, _fetchTabexCitiesQuer3, _fetchTabexCitiesQuer4;
11573
+ return /*#__PURE__*/React__default["default"].createElement("div", {
11574
+ "class": "row m-0 w-100 pl-md-3 pr-md-3"
11575
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11576
+ "class": "col-lg-12 p-0 mt-3"
11577
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11578
+ "class": "row m-0 w-100"
11579
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11580
+ "class": "col-lg-12 p-0 mb-3"
11581
+ }, (fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : fetchTabexCountriesQueryContext.isFetching) && /*#__PURE__*/React__default["default"].createElement("div", {
11582
+ className: "w-100 allcentered mt-1"
11583
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
11584
+ color: "#000",
11585
+ width: "20px",
11586
+ height: "20px",
11587
+ duration: "1s"
11588
+ })), !(fetchTabexCountriesQueryContext !== null && fetchTabexCountriesQueryContext !== void 0 && fetchTabexCountriesQueryContext.isFetching) && (fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : fetchTabexCountriesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement(Select, {
11589
+ options: fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : (_fetchTabexCountriesQ = fetchTabexCountriesQueryContext.data) === null || _fetchTabexCountriesQ === void 0 ? void 0 : (_fetchTabexCountriesQ2 = _fetchTabexCountriesQ.data) === null || _fetchTabexCountriesQ2 === void 0 ? void 0 : _fetchTabexCountriesQ2.countries,
11590
+ getOptionLabel: function getOptionLabel(option) {
11591
+ var crname = '';
11592
+ if (langdetect == 'en') {
11593
+ crname = option.name;
11594
+ } else if (langdetect == 'ar') {
11595
+ if (option.name_ar != null) {
11596
+ crname = option.name_ar;
11597
+ } else {
11598
+ crname = option.name;
11599
+ }
11600
+ }
11601
+ return crname;
11602
+ },
11603
+ getOptionValue: function getOptionValue(option) {
11604
+ return option.id;
11605
+ },
11606
+ value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
11607
+ return option.id == ProductFilterObjContext.countryid;
11608
+ }),
11609
+ onChange: function onChange(option) {
11610
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
11611
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
11612
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
11613
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
11614
+ var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
11615
+ tempfetchproductsfilerobjcontext.countryid = option.id;
11616
+ tempfetchproductsfilerobjcontext.page = 0;
11617
+ setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
11618
+ filterrouting(tempfetchproductsfilerobjcontext);
11619
+ },
11620
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
11621
+ placeholder: lang.choosecountry,
11622
+ isSearchable: true
11623
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
11624
+ "class": "col-lg-12 mb-3 p-0"
11625
+ }, (fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : fetchTabexStatesQueryContext.isFetching) && /*#__PURE__*/React__default["default"].createElement("div", {
11626
+ className: "w-100 allcentered mt-1"
11627
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
11628
+ color: "#000",
11629
+ width: "20px",
11630
+ height: "20px",
11631
+ duration: "1s"
11632
+ })), !(fetchTabexStatesQueryContext !== null && fetchTabexStatesQueryContext !== void 0 && fetchTabexStatesQueryContext.isFetching) && (fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : fetchTabexStatesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement(Select, {
11633
+ options: fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : (_fetchTabexStatesQuer = fetchTabexStatesQueryContext.data) === null || _fetchTabexStatesQuer === void 0 ? void 0 : (_fetchTabexStatesQuer2 = _fetchTabexStatesQuer.data) === null || _fetchTabexStatesQuer2 === void 0 ? void 0 : _fetchTabexStatesQuer2.states,
11634
+ getOptionLabel: function getOptionLabel(option) {
11635
+ var crname = '';
11636
+ if (langdetect == 'en') {
11637
+ crname = option.name;
11638
+ } else if (langdetect == 'ar') {
11639
+ if (option.name_ar != null) {
11640
+ crname = option.name_ar;
11641
+ } else {
11642
+ crname = option.name;
11643
+ }
11644
+ }
11645
+ return crname;
11646
+ },
11647
+ getOptionValue: function getOptionValue(option) {
11648
+ return option.id;
11649
+ },
11650
+ value: fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : (_fetchTabexStatesQuer3 = fetchTabexStatesQueryContext.data) === null || _fetchTabexStatesQuer3 === void 0 ? void 0 : (_fetchTabexStatesQuer4 = _fetchTabexStatesQuer3.data) === null || _fetchTabexStatesQuer4 === void 0 ? void 0 : _fetchTabexStatesQuer4.states.filter(function (option) {
11651
+ return option.id == ProductFilterObjContext.stateid;
11652
+ }),
11653
+ onChange: function onChange(option) {
11654
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
11655
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
11656
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
11657
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
11658
+ var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
11659
+ tempfetchproductsfilerobjcontext.stateid = option.id;
11660
+ tempfetchproductsfilerobjcontext.page = 0;
11661
+ setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
11662
+ filterrouting(tempfetchproductsfilerobjcontext);
11663
+ },
11664
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
11665
+ placeholder: lang.choosestategov,
11666
+ isSearchable: true
11667
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
11668
+ "class": "col-lg-12 mb-3 p-0"
11669
+ }, (fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : fetchTabexCitiesQueryContext.isFetching) && /*#__PURE__*/React__default["default"].createElement("div", {
11670
+ className: "w-100 allcentered mt-1"
11671
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
11672
+ color: "#000",
11673
+ width: "20px",
11674
+ height: "20px",
11675
+ duration: "1s"
11676
+ })), !(fetchTabexCitiesQueryContext !== null && fetchTabexCitiesQueryContext !== void 0 && fetchTabexCitiesQueryContext.isFetching) && (fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : fetchTabexCitiesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement(Select, {
11677
+ options: fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : (_fetchTabexCitiesQuer = fetchTabexCitiesQueryContext.data) === null || _fetchTabexCitiesQuer === void 0 ? void 0 : (_fetchTabexCitiesQuer2 = _fetchTabexCitiesQuer.data) === null || _fetchTabexCitiesQuer2 === void 0 ? void 0 : _fetchTabexCitiesQuer2.cities,
11678
+ getOptionLabel: function getOptionLabel(option) {
11679
+ var crname = '';
11680
+ if (langdetect == 'en') {
11681
+ crname = option.name;
11682
+ } else if (langdetect == 'ar') {
11683
+ if (option.name_ar != null) {
11684
+ crname = option.name_ar;
11685
+ } else {
11686
+ crname = option.name;
11687
+ }
11688
+ }
11689
+ return crname;
11690
+ },
11691
+ getOptionValue: function getOptionValue(option) {
11692
+ return option.id;
11693
+ },
11694
+ value: fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : (_fetchTabexCitiesQuer3 = fetchTabexCitiesQueryContext.data) === null || _fetchTabexCitiesQuer3 === void 0 ? void 0 : (_fetchTabexCitiesQuer4 = _fetchTabexCitiesQuer3.data) === null || _fetchTabexCitiesQuer4 === void 0 ? void 0 : _fetchTabexCitiesQuer4.cities.filter(function (option) {
11695
+ return option.id == ProductFilterObjContext.cityid;
11696
+ }),
11697
+ onChange: function onChange(option) {
11698
+ var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
11699
+ tempfetchproductsfilerobjcontext.cityid = option.id;
11700
+ tempfetchproductsfilerobjcontext.page = 0;
11701
+ setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
11702
+ filterrouting(tempfetchproductsfilerobjcontext);
11703
+ },
11704
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
11705
+ placeholder: lang.choosecity,
11706
+ isSearchable: true
11707
+ })))));
11708
+ };
11455
11709
  return /*#__PURE__*/React__default["default"].createElement("div", {
11456
11710
  className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
11457
11711
  style: {
@@ -11603,7 +11857,6 @@ var Filter$1 = function Filter(props) {
11603
11857
  return /*#__PURE__*/React__default["default"].createElement("div", {
11604
11858
  className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
11605
11859
  onClick: function onClick() {
11606
- // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
11607
11860
  var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
11608
11861
  if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
11609
11862
  tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
@@ -11612,7 +11865,7 @@ var Filter$1 = function Filter(props) {
11612
11865
  }
11613
11866
  tempfetchproductsfilerobjcontext.page = 0;
11614
11867
  setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
11615
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
11868
+ filterrouting(tempfetchproductsfilerobjcontext);
11616
11869
  }
11617
11870
  }, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
11618
11871
  className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
@@ -11679,11 +11932,11 @@ var Filter$1 = function Filter(props) {
11679
11932
  className: "mt-2 mb-3"
11680
11933
  })), /*#__PURE__*/React__default["default"].createElement("div", {
11681
11934
  className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
11682
- }, sectionproperties.filterType == 'All' && /*#__PURE__*/React__default["default"].createElement("div", {
11935
+ }, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11683
11936
  "class": "row m-0 w-100"
11684
- }, CategoriesFilter()), sectionproperties.filterType == 'Collections' && /*#__PURE__*/React__default["default"].createElement("div", {
11937
+ }, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11685
11938
  "class": "row m-0 w-100"
11686
- }, CollectionsFilter()), InstFilters()))), /*#__PURE__*/React__default["default"].createElement("div", {
11939
+ }, CollectionsFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))), /*#__PURE__*/React__default["default"].createElement("div", {
11687
11940
  className: "col-lg-12"
11688
11941
  }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
11689
11942
  show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
@@ -11816,11 +12069,11 @@ var Filter$1 = function Filter(props) {
11816
12069
  className: "mt-2 mb-3"
11817
12070
  })), /*#__PURE__*/React__default["default"].createElement("div", {
11818
12071
  className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '
11819
- }, sectionproperties.filterType == 'All' && /*#__PURE__*/React__default["default"].createElement("div", {
12072
+ }, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11820
12073
  "class": "row m-0 w-100"
11821
- }, CategoriesFilter()), sectionproperties.filterType == 'Collections' && /*#__PURE__*/React__default["default"].createElement("div", {
12074
+ }, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11822
12075
  "class": "row m-0 w-100"
11823
- }, CollectionsFilter()), InstFilters())))))));
12076
+ }, CollectionsFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters())))))));
11824
12077
  };
11825
12078
 
11826
12079
  var serverbaselink$1 = 'https://tabex-co.com';
@@ -22624,7 +22877,7 @@ var Modernheader = function Modernheader(props) {
22624
22877
  var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
22625
22878
  var routingcountext = props.actions.routingcountext;
22626
22879
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
22627
- var history = props.actions.history;
22880
+ props.actions.history;
22628
22881
  var ikimagecredcontext = props.actions.ikimagecredcontext;
22629
22882
  var actions = props.actions;
22630
22883
  React.useEffect(function () {
@@ -23197,32 +23450,29 @@ var Modernheader = function Modernheader(props) {
23197
23450
  display: sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex'
23198
23451
  }
23199
23452
  }, /*#__PURE__*/React__default["default"].createElement("ul", null, templatepropcontext.pagesnprop.map(function (item, index) {
23200
- var activeclass = '';
23201
- var activeclass2 = '';
23202
- var activeclass3 = '';
23203
- if (item.isselected) {
23204
- activeclass = headerstyles$7.navbar_item_active;
23205
- activeclass2 = header_cssstyles.topbar_item_active;
23206
- activeclass3 = header_cssstyles.topbar_item_text_active;
23207
- }
23453
+ // if (item.isselected) {
23454
+ // activeclass = headerstyles.navbar_item_active;
23455
+ // activeclass2 = header_cssstyles.topbar_item_active;
23456
+ // activeclass3 = header_cssstyles.topbar_item_text_active;
23457
+ // }
23208
23458
  if (item.isnavigation == 1 && item.isactive == 1) {
23209
23459
  return /*#__PURE__*/React__default["default"].createElement("div", {
23210
23460
  "class": "cursor-pointer",
23211
23461
  onClick: function onClick() {
23212
- history.push(item.navigationroute);
23462
+ routingcountext(item.navigationroute, false, '');
23213
23463
  }
23214
23464
  }, /*#__PURE__*/React__default["default"].createElement("li", {
23215
- "class": "".concat(headerstyles$7.topbar_item_container) + ' nav-item ',
23216
- onClick: function onClick() {
23217
- fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
23218
- pageitem.isselected = false;
23219
- });
23220
- fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
23221
- }
23465
+ "class": "".concat(headerstyles$7.topbar_item_container) + ' nav-item '
23466
+ // onClick={() => {
23467
+ // fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
23468
+ // pageitem.isselected = false;
23469
+ // });
23470
+ // fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
23471
+ // }}
23222
23472
  }, /*#__PURE__*/React__default["default"].createElement("div", {
23223
- "class": "".concat(headerstyles$7.topbar_item, " ").concat(header_cssstyles.topbar_item, " ").concat(header_cssstyles.nav_link, " ").concat(activeclass, " ").concat(activeclass2)
23473
+ "class": "".concat(headerstyles$7.topbar_item, " ").concat(header_cssstyles.topbar_item, " ").concat(header_cssstyles.nav_link)
23224
23474
  }, /*#__PURE__*/React__default["default"].createElement("span", {
23225
- "class": "".concat(headerstyles$7.topbar_item_text, " ").concat(header_cssstyles.topbar_item_text, " ").concat(activeclass3)
23475
+ "class": "".concat(headerstyles$7.topbar_item_text, " ").concat(header_cssstyles.topbar_item_text)
23226
23476
  }, langdetect == 'en' ? item.pagename : item.pagename_ar))));
23227
23477
  }
23228
23478
  }))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
@@ -53639,22 +53889,18 @@ var Productcard_with_circularbg = function Productcard_with_circularbg(props) {
53639
53889
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53640
53890
  overflow: 'hidden',
53641
53891
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
53642
- padding: sectionproperties.imagepadding + 'px'
53892
+ padding: sectionproperties.imagepadding + 'px',
53893
+ border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor
53643
53894
  }
53644
53895
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
53645
53896
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
53646
53897
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
53647
- path: '/tr:w-300,h-300/' + item.image,
53898
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
53648
53899
  loading: "lazy",
53649
53900
  style: {
53650
- height: '100%',
53651
- width: '100%',
53652
- objectFit: sectionproperties.bgcovercontain,
53653
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
53654
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
53655
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
53656
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53657
- border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor
53901
+ height: sectionproperties.imageInnerWidth_Height + '%',
53902
+ width: sectionproperties.imageInnerWidth_Height + '%',
53903
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
53658
53904
  }
53659
53905
  }))), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
53660
53906
  "class": "col-lg-12 d-flex align-items-center justify-content-center",