tabexseriescomponents 0.2.1387 → 0.2.1389

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -22223,7 +22223,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
22223
22223
  function ownKeys$2o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22224
22224
  function _objectSpread$2o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22225
22225
  var OrderSuccess = function OrderSuccess(props) {
22226
- var _props$actions2, _authdetailsContext$i, _lastOrderinfoObj$dat, _authdetailsContext$i2, _lastOrderinfoObj$dat2, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$dat3, _lastOrderinfoObj$dat4, _authdetailsContext$i5, _lastOrderinfoObj$dat5, _lastOrderinfoObj$dat6, _lastOrderinfoObj$dat7, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _lastOrderinfoObj$dat8, _lastOrderinfoObj$dat9, _lastOrderinfoObj$dat0, _lastOrderinfoObj$dat1, _lastOrderinfoObj$dat10, _authdetailsContext$i9, _lastOrderinfoObj$dat11, _lastOrderinfoObj$dat12, _lastOrderinfoObj$dat13, _lastOrderinfoObj$dat14, _lastOrderinfoObj$dat17, _lastOrderinfoObj$dat18, _lastOrderinfoObj$dat19, _lastOrderinfoObj$dat20, _lastOrderinfoObj$dat21, _lastOrderinfoObj$dat22, _lastOrderinfoObj$dat23, _lastOrderinfoObj$dat24, _lastOrderinfoObj$dat25, _authdetailsContext$i0, _authdetailsContext$i1;
22226
+ var _props$actions2, _authdetailsContext$i, _lastOrderinfoObj$dat, _authdetailsContext$i2, _lastOrderinfoObj$dat2, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i5, _lastOrderinfoObj$dat3, _lastOrderinfoObj$dat4, _authdetailsContext$i6, _lastOrderinfoObj$dat5, _lastOrderinfoObj$dat6, _lastOrderinfoObj$dat7, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _lastOrderinfoObj$dat8, _lastOrderinfoObj$dat9, _lastOrderinfoObj$dat0, _lastOrderinfoObj$dat1, _lastOrderinfoObj$dat10, _authdetailsContext$i0, _lastOrderinfoObj$dat11, _lastOrderinfoObj$dat12, _lastOrderinfoObj$dat13, _lastOrderinfoObj$dat14, _lastOrderinfoObj$dat17, _lastOrderinfoObj$dat18, _lastOrderinfoObj$dat19, _lastOrderinfoObj$dat20, _lastOrderinfoObj$dat21, _lastOrderinfoObj$dat22, _lastOrderinfoObj$dat23, _lastOrderinfoObj$dat24, _lastOrderinfoObj$dat25, _authdetailsContext$i1, _authdetailsContext$i10;
22227
22227
  var lang = props.actions.lang;
22228
22228
  var langdetect = props.actions.langdetect;
22229
22229
  var routingcountext = props.actions.routingcountext;
@@ -22321,6 +22321,7 @@ var OrderSuccess = function OrderSuccess(props) {
22321
22321
  var query = new URLSearchParams(uselocation.search);
22322
22322
  var order_id = query.get('order_id');
22323
22323
  setOrderId(order_id);
22324
+ localStorage.setItem('currentOrderID', order_id);
22324
22325
  if (order_id != undefined && order_id != null && order_id.length != 0) {
22325
22326
  GeneralAPIMutationContext.mutate({
22326
22327
  endpointurl: '/p_fetchorderinformation',
@@ -22335,6 +22336,7 @@ var OrderSuccess = function OrderSuccess(props) {
22335
22336
  status: false
22336
22337
  };
22337
22338
  }
22339
+ localStorage.setItem('currentOrderObj', JSON.stringify(templastorderobj));
22338
22340
  setlastOrderinfoObj(_objectSpread$2o({}, templastorderobj));
22339
22341
  }
22340
22342
  });
@@ -22470,13 +22472,13 @@ var OrderSuccess = function OrderSuccess(props) {
22470
22472
  style: {
22471
22473
  fontSize: 15
22472
22474
  }
22473
- }, langdetect == 'en' ? 'Order' : 'اوردر', " #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat3 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat3 === void 0 || (_lastOrderinfoObj$dat3 = _lastOrderinfoObj$dat3.orderinfo) === null || _lastOrderinfoObj$dat3 === void 0 ? void 0 : _lastOrderinfoObj$dat3.orderid), /*#__PURE__*/React.createElement("div", {
22475
+ }, langdetect == 'en' ? 'Order' : 'اوردر', " #", (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) == '69e4b49b26217' ? '100' : '', lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat3 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat3 === void 0 || (_lastOrderinfoObj$dat3 = _lastOrderinfoObj$dat3.orderinfo) === null || _lastOrderinfoObj$dat3 === void 0 ? void 0 : _lastOrderinfoObj$dat3.orderid), /*#__PURE__*/React.createElement("div", {
22474
22476
  "class": "col-12 p-0 text-start mb-4 font-weight-500"
22475
22477
  }, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat4 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat4 === void 0 || (_lastOrderinfoObj$dat4 = _lastOrderinfoObj$dat4.orderinfo) === null || _lastOrderinfoObj$dat4 === void 0 ? void 0 : _lastOrderinfoObj$dat4.customername), /*#__PURE__*/React.createElement("div", {
22476
22478
  "class": "col-12 p-0 text-start font-weight-500"
22477
22479
  }, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React.createElement("div", {
22478
22480
  "class": "col-12 p-0 text-start font-weight-500"
22479
- }, langdetect == 'en' ? 'You’ll receive a confirmation email with your order details shortly.' : 'ستتلقى رسالة تأكيد عبر البريد الإلكتروني تحتوي على تفاصيل طلبك قريبًا.'), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("div", {
22481
+ }, langdetect == 'en' ? 'You’ll receive a confirmation email with your order details shortly.' : 'ستتلقى رسالة تأكيد عبر البريد الإلكتروني تحتوي على تفاصيل طلبك قريبًا.'), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("div", {
22480
22482
  "class": "col-12 allcentered mt-5 mb-3"
22481
22483
  }, /*#__PURE__*/React.createElement("div", {
22482
22484
  "class": ordersuccessstyle.whatsappbtn + ' allcentered cursor-pointer ',
@@ -22537,13 +22539,13 @@ var OrderSuccess = function OrderSuccess(props) {
22537
22539
  "class": "col-6 col-md-12"
22538
22540
  }, /*#__PURE__*/React.createElement("div", {
22539
22541
  "class": "col-12 p-0 text-start mb-2"
22540
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", {
22542
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", {
22541
22543
  style: {
22542
22544
  fontSize: 15,
22543
22545
  fontWeight: 600
22544
22546
  },
22545
22547
  "class": "m-0"
22546
- }, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع'), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", {
22548
+ }, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع'), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", {
22547
22549
  style: {
22548
22550
  fontSize: 15,
22549
22551
  fontWeight: 600
@@ -22551,7 +22553,7 @@ var OrderSuccess = function OrderSuccess(props) {
22551
22553
  "class": "m-0"
22552
22554
  }, langdetect == 'en' ? 'Total' : 'الإجمالي')), /*#__PURE__*/React.createElement("div", {
22553
22555
  "class": "col-12 p-0 text-start"
22554
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat8 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat8 === void 0 || (_lastOrderinfoObj$dat8 = _lastOrderinfoObj$dat8.orderinfo) === null || _lastOrderinfoObj$dat8 === void 0 ? void 0 : _lastOrderinfoObj$dat8.paymentmethod) == 'cod' ? langdetect == 'en' ? 'Cash on delivery' : 'الدفع عند الاستلام' : lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat9 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat9 === void 0 || (_lastOrderinfoObj$dat9 = _lastOrderinfoObj$dat9.orderinfo) === null || _lastOrderinfoObj$dat9 === void 0 ? void 0 : _lastOrderinfoObj$dat9.paymentmethod, ' ', "(", langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat0 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat0 === void 0 || (_lastOrderinfoObj$dat0 = _lastOrderinfoObj$dat0.orderinfo) === null || _lastOrderinfoObj$dat0 === void 0 ? void 0 : _lastOrderinfoObj$dat0.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat1 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat1 === void 0 ? void 0 : _lastOrderinfoObj$dat1.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat10 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat10 === void 0 || (_lastOrderinfoObj$dat10 = _lastOrderinfoObj$dat10.orderinfo) === null || _lastOrderinfoObj$dat10 === void 0 ? void 0 : _lastOrderinfoObj$dat10.currencyname_ar : '', ")"), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", null, "(", langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat11 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat11 === void 0 || (_lastOrderinfoObj$dat11 = _lastOrderinfoObj$dat11.orderinfo) === null || _lastOrderinfoObj$dat11 === void 0 ? void 0 : _lastOrderinfoObj$dat11.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat12 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat12 === void 0 ? void 0 : _lastOrderinfoObj$dat12.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat13 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat13 === void 0 || (_lastOrderinfoObj$dat13 = _lastOrderinfoObj$dat13.orderinfo) === null || _lastOrderinfoObj$dat13 === void 0 ? void 0 : _lastOrderinfoObj$dat13.currencyname_ar : '', ")"))))))), /*#__PURE__*/React.createElement("div", {
22556
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat8 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat8 === void 0 || (_lastOrderinfoObj$dat8 = _lastOrderinfoObj$dat8.orderinfo) === null || _lastOrderinfoObj$dat8 === void 0 ? void 0 : _lastOrderinfoObj$dat8.paymentmethod) == 'cod' ? langdetect == 'en' ? 'Cash on delivery' : 'الدفع عند الاستلام' : lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat9 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat9 === void 0 || (_lastOrderinfoObj$dat9 = _lastOrderinfoObj$dat9.orderinfo) === null || _lastOrderinfoObj$dat9 === void 0 ? void 0 : _lastOrderinfoObj$dat9.paymentmethod, ' ', "(", langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat0 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat0 === void 0 || (_lastOrderinfoObj$dat0 = _lastOrderinfoObj$dat0.orderinfo) === null || _lastOrderinfoObj$dat0 === void 0 ? void 0 : _lastOrderinfoObj$dat0.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat1 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat1 === void 0 ? void 0 : _lastOrderinfoObj$dat1.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat10 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat10 === void 0 || (_lastOrderinfoObj$dat10 = _lastOrderinfoObj$dat10.orderinfo) === null || _lastOrderinfoObj$dat10 === void 0 ? void 0 : _lastOrderinfoObj$dat10.currencyname_ar : '', ")"), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("p", null, "(", langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat11 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat11 === void 0 || (_lastOrderinfoObj$dat11 = _lastOrderinfoObj$dat11.orderinfo) === null || _lastOrderinfoObj$dat11 === void 0 ? void 0 : _lastOrderinfoObj$dat11.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat12 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat12 === void 0 ? void 0 : _lastOrderinfoObj$dat12.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat13 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat13 === void 0 || (_lastOrderinfoObj$dat13 = _lastOrderinfoObj$dat13.orderinfo) === null || _lastOrderinfoObj$dat13 === void 0 ? void 0 : _lastOrderinfoObj$dat13.currencyname_ar : '', ")"))))))), /*#__PURE__*/React.createElement("div", {
22555
22557
  "class": "col-6 col-md-12 p-md-0"
22556
22558
  }, /*#__PURE__*/React.createElement("div", {
22557
22559
  "class": "row m-0 w-100 mb-auto mt-md-4"
@@ -22676,7 +22678,7 @@ var OrderSuccess = function OrderSuccess(props) {
22676
22678
  "class": "col-6 text-end"
22677
22679
  }, /*#__PURE__*/React.createElement("p", {
22678
22680
  className: "m-0 p-0 font-weight-500"
22679
- }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat23 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat23 === void 0 || (_lastOrderinfoObj$dat23 = _lastOrderinfoObj$dat23.orderinfo) === null || _lastOrderinfoObj$dat23 === void 0 ? void 0 : _lastOrderinfoObj$dat23.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat24 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat24 === void 0 ? void 0 : _lastOrderinfoObj$dat24.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat25 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat25 === void 0 || (_lastOrderinfoObj$dat25 = _lastOrderinfoObj$dat25.orderinfo) === null || _lastOrderinfoObj$dat25 === void 0 ? void 0 : _lastOrderinfoObj$dat25.currencyname_ar : '')))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("div", {
22681
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat23 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat23 === void 0 || (_lastOrderinfoObj$dat23 = _lastOrderinfoObj$dat23.orderinfo) === null || _lastOrderinfoObj$dat23 === void 0 ? void 0 : _lastOrderinfoObj$dat23.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat24 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat24 === void 0 ? void 0 : _lastOrderinfoObj$dat24.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat25 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat25 === void 0 || (_lastOrderinfoObj$dat25 = _lastOrderinfoObj$dat25.orderinfo) === null || _lastOrderinfoObj$dat25 === void 0 ? void 0 : _lastOrderinfoObj$dat25.currencyname_ar : '')))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) == '67e448d2ef6e0' && /*#__PURE__*/React.createElement("div", {
22680
22682
  "class": "col-lg-12 p-0 mt-1 text-start mt-2",
22681
22683
  style: {
22682
22684
  fontSize: 16,
@@ -22684,7 +22686,7 @@ var OrderSuccess = function OrderSuccess(props) {
22684
22686
  }
22685
22687
  }, /*#__PURE__*/React.createElement("p", {
22686
22688
  "class": "m-0 p-0"
22687
- }, langdetect == 'en' ? 'Pay with InstaPay or cash when you receive your order' : 'الدفع انستا باي او كاش عند الاستلام')))), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("div", {
22689
+ }, langdetect == 'en' ? 'Pay with InstaPay or cash when you receive your order' : 'الدفع انستا باي او كاش عند الاستلام')))), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("div", {
22688
22690
  "class": "col-12 allcentered mt-5 mb-3"
22689
22691
  }, /*#__PURE__*/React.createElement("div", {
22690
22692
  "class": ordersuccessstyle.whatsappbtn + ' allcentered cursor-pointer ',
@@ -72256,7 +72258,55 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72256
72258
  "class": "col-lg-12 p-0"
72257
72259
  }, /*#__PURE__*/React.createElement("div", {
72258
72260
  "class": "row m-0 w-100 d-flex align-items-center justify-content-start"
72259
- }, (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 || (_fetchProductFeatures = fetchProductFeaturesQueryContext.data) === null || _fetchProductFeatures === void 0 || (_fetchProductFeatures = _fetchProductFeatures.data) === null || _fetchProductFeatures === void 0 || (_fetchProductFeatures = _fetchProductFeatures.productfeatues) === null || _fetchProductFeatures === void 0 ? void 0 : _fetchProductFeatures.map(function (item, index) {
72261
+ }, sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
72262
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72263
+ }, /*#__PURE__*/React.createElement(CustomerAddressForm, {
72264
+ payloadobj: payloadobj,
72265
+ setpayloadobj: setpayloadobj,
72266
+ sectionproperties: sectionproperties
72267
+ // setpayloadobj={setpayloadobj}
72268
+ ,
72269
+ srcfrom: 'filter',
72270
+ actions: actions,
72271
+ FetchTabexStatesPayloadobjContext: FetchTabexStatesPayloadobjContext,
72272
+ setFetchTabexStatesPayloadobjContext: setFetchTabexStatesPayloadobjContext,
72273
+ fetchTabexCountriesQueryContext: fetchTabexCountriesQueryContext,
72274
+ fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
72275
+ fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
72276
+ })), sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
72277
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72278
+ }, /*#__PURE__*/React.createElement("label", {
72279
+ className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
72280
+ style: {
72281
+ textAlign: langdetect == 'en' ? 'left' : 'right'
72282
+ }
72283
+ }, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React.createElement("div", {
72284
+ "class": 'col-lg-12 p-0'
72285
+ }, /*#__PURE__*/React.createElement(Select$4, {
72286
+ options: collectionsarray,
72287
+ getOptionLabel: function getOptionLabel(option) {
72288
+ var crname = '';
72289
+ if (langdetect == 'en') {
72290
+ crname = option.title_en;
72291
+ } else if (langdetect == 'ar') {
72292
+ crname = option.title_ar;
72293
+ }
72294
+ return crname;
72295
+ },
72296
+ getOptionValue: function getOptionValue(option) {
72297
+ return option.collectionid;
72298
+ },
72299
+ autocomplete: "new-password",
72300
+ onChange: function onChange(option) {
72301
+ var temp = payloadobj;
72302
+ temp.collections = [];
72303
+ temp.collections.push(option.collectionid);
72304
+ setpayloadobj(_objectSpread$1j({}, temp));
72305
+ },
72306
+ styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
72307
+ isSearchable: true,
72308
+ placeholder: ''
72309
+ }))), (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 || (_fetchProductFeatures = fetchProductFeaturesQueryContext.data) === null || _fetchProductFeatures === void 0 || (_fetchProductFeatures = _fetchProductFeatures.data) === null || _fetchProductFeatures === void 0 || (_fetchProductFeatures = _fetchProductFeatures.productfeatues) === null || _fetchProductFeatures === void 0 ? void 0 : _fetchProductFeatures.map(function (item, index) {
72260
72310
  if (item.type == 'Selectbox') {
72261
72311
  var _item$featuresselectb;
72262
72312
  var selectboxarr = [];
@@ -72396,8 +72446,8 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72396
72446
  }
72397
72447
  })));
72398
72448
  }
72399
- })), /*#__PURE__*/React.createElement("div", {
72400
- "class": "col-lg-3 col-md-12"
72449
+ })), sectionproperties.showfromtofilter == 'Show' && /*#__PURE__*/React.createElement("div", {
72450
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72401
72451
  }, /*#__PURE__*/React.createElement("div", {
72402
72452
  "class": "row m-0 w-100"
72403
72453
  }, /*#__PURE__*/React.createElement("div", {
@@ -72421,8 +72471,8 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72421
72471
  },
72422
72472
  value: from_date_filter_input,
72423
72473
  className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
72424
- })))), /*#__PURE__*/React.createElement("div", {
72425
- "class": "col-lg-3 col-md-12"
72474
+ })))), sectionproperties.showfromtofilter == 'Show' && /*#__PURE__*/React.createElement("div", {
72475
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72426
72476
  }, /*#__PURE__*/React.createElement("div", {
72427
72477
  "class": "col-lg-12 p-0 text-start"
72428
72478
  }, /*#__PURE__*/React.createElement("label", {
@@ -72444,8 +72494,28 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72444
72494
  },
72445
72495
  value: to_date_filter_input,
72446
72496
  className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
72447
- })), "\xA0"), /*#__PURE__*/React.createElement("div", {
72448
- "class": "col-lg-2 col-md-12 text-end",
72497
+ })), "\xA0"), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React.createElement("div", {
72498
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 px-4"
72499
+ }, /*#__PURE__*/React.createElement("label", {
72500
+ className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
72501
+ style: {
72502
+ textAlign: langdetect == 'en' ? 'left' : 'right'
72503
+ }
72504
+ }, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React.createElement("div", {
72505
+ "class": 'col-lg-12 p-0'
72506
+ }, /*#__PURE__*/React.createElement(InputRange, {
72507
+ draggableTrack: true,
72508
+ formatLabel: function formatLabel(value) {
72509
+ return "".concat(value);
72510
+ },
72511
+ maxValue: parseInt(sectionproperties.filterpricemaxvalue),
72512
+ minValue: parseInt(sectionproperties.filterpriceminvalue),
72513
+ value: pricevalue,
72514
+ onChange: function onChange(value) {
72515
+ setpricevalue(_objectSpread$1j({}, value));
72516
+ }
72517
+ }))), /*#__PURE__*/React.createElement("div", {
72518
+ "class": "col-lg-2 col-md-12 text-end mt-md-4",
72449
72519
  style: {
72450
72520
  marginLeft: langdetect == 'en' ? 'auto' : '',
72451
72521
  marginRight: langdetect == 'ar' ? 'auto' : ''
@@ -83303,6 +83373,7 @@ var easingFunctions = {
83303
83373
  function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
83304
83374
  function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
83305
83375
  var TrackOrderStatus = function TrackOrderStatus(props) {
83376
+ var _lastorderobj$orderin;
83306
83377
  props.actions;
83307
83378
  var langdetect = props.actions.langdetect;
83308
83379
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -83318,10 +83389,11 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83318
83389
  _useState6 = _slicedToArray(_useState5, 2);
83319
83390
  _useState6[0];
83320
83391
  var setcardarrayofobjs = _useState6[1];
83392
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
83321
83393
  props.actions.ikimagecredcontext;
83322
83394
  props.actions.routingcountext;
83323
- var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
83324
- var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
83395
+ props.actions.FetchQueriesEngineContext;
83396
+ props.actions.setFetchQueriesEngineContext;
83325
83397
  props.actions.StaticPagesLinksContext;
83326
83398
  var _useState7 = useState(null),
83327
83399
  _useState8 = _slicedToArray(_useState7, 2),
@@ -83335,31 +83407,135 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83335
83407
  _useState10 = _slicedToArray(_useState1, 2);
83336
83408
  _useState10[0];
83337
83409
  _useState10[1];
83410
+ // const [showOrderModal, setShowOrderModal] = useState(false);
83411
+
83412
+ var showOrderModal = props.actions.showTrackingOrderModalContext;
83413
+ var setShowOrderModal = props.actions.setshowTrackingOrderModalContext;
83338
83414
  var authdetailsContext = props.actions.authdetailsContext;
83339
- var fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
83415
+ props.actions.fetchorderhistoryQueryContext;
83416
+
83417
+ // useEffect(() => {
83418
+ // if (authdetailsContext?.loggedin == true) {
83419
+ // if (FetchQueriesEngineContext != undefined) {
83420
+ // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
83421
+ // tempFetchQueriesEngineContext.orderhistory = true;
83422
+ // setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
83423
+ // }
83424
+ // } else {
83425
+ // // routingcountext('');
83426
+ // }
83427
+ // }, [authdetailsContext]);
83340
83428
  useEffect(function () {
83341
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
83342
- if (FetchQueriesEngineContext != undefined) {
83343
- var tempFetchQueriesEngineContext = _objectSpread$P({}, FetchQueriesEngineContext);
83344
- tempFetchQueriesEngineContext.orderhistory = true;
83345
- setFetchQueriesEngineContext(_objectSpread$P({}, tempFetchQueriesEngineContext));
83346
- }
83429
+ function runsocket() {
83430
+ return _runsocket.apply(this, arguments);
83347
83431
  }
83348
- }, [authdetailsContext]);
83349
- useEffect(function () {
83350
- if (fetchorderhistoryQueryContext.isSuccess) {
83351
- var _fetchorderhistoryQue;
83352
- if ((fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : fetchorderhistoryQueryContext.data) != undefined && (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue === void 0 || (_fetchorderhistoryQue = _fetchorderhistoryQue.data) === null || _fetchorderhistoryQue === void 0 || (_fetchorderhistoryQue = _fetchorderhistoryQue.ordershistory) === null || _fetchorderhistoryQue === void 0 ? void 0 : _fetchorderhistoryQue.length) > 0) {
83353
- var _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4;
83354
- var lastorderobj = fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue2 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue2 === void 0 || (_fetchorderhistoryQue2 = _fetchorderhistoryQue2.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : _fetchorderhistoryQue2.ordershistory[0];
83355
- setlastorderobj(_objectSpread$P({}, lastorderobj));
83356
- if ((fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue3 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue3 === void 0 || (_fetchorderhistoryQue3 = _fetchorderhistoryQue3.data) === null || _fetchorderhistoryQue3 === void 0 ? void 0 : _fetchorderhistoryQue3.inst_all_status) != undefined && (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue4 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue4 === void 0 || (_fetchorderhistoryQue4 = _fetchorderhistoryQue4.data) === null || _fetchorderhistoryQue4 === void 0 || (_fetchorderhistoryQue4 = _fetchorderhistoryQue4.inst_all_status) === null || _fetchorderhistoryQue4 === void 0 ? void 0 : _fetchorderhistoryQue4.length) > 0) {
83357
- var _fetchorderhistoryQue5;
83358
- setinst_all_status_arr(_toConsumableArray(fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue5 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue5 === void 0 || (_fetchorderhistoryQue5 = _fetchorderhistoryQue5.data) === null || _fetchorderhistoryQue5 === void 0 ? void 0 : _fetchorderhistoryQue5.inst_all_status));
83432
+ function _runsocket() {
83433
+ _runsocket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
83434
+ return _regeneratorRuntime.wrap(function (_context) {
83435
+ while (1) switch (_context.prev = _context.next) {
83436
+ case 0:
83437
+ _context.next = 1;
83438
+ return connectsocket();
83439
+ case 1:
83440
+ case "end":
83441
+ return _context.stop();
83442
+ }
83443
+ }, _callee);
83444
+ }));
83445
+ return _runsocket.apply(this, arguments);
83446
+ }
83447
+ runsocket();
83448
+ }, []);
83449
+ function connectsocket() {
83450
+ return _connectsocket.apply(this, arguments);
83451
+ }
83452
+ function _connectsocket() {
83453
+ _connectsocket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
83454
+ var _authdetailsContext$i3;
83455
+ var orderid, instid, _yield$import, io, socket, roomEvent;
83456
+ return _regeneratorRuntime.wrap(function (_context2) {
83457
+ while (1) switch (_context2.prev = _context2.next) {
83458
+ case 0:
83459
+ orderid = localStorage.getItem('currentOrderID'); // var orderid = '35';
83460
+ instid = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instid; // localStorage.setItem("currentOrderID", orderID);
83461
+ if (!(orderid && instid == '69e4b49b26217')) {
83462
+ _context2.next = 2;
83463
+ break;
83464
+ }
83465
+ _context2.next = 1;
83466
+ return import('socket.io-client');
83467
+ case 1:
83468
+ _yield$import = _context2.sent;
83469
+ io = _yield$import.io;
83470
+ socket = io('https://som.tabexseries.com/'); // const orderid = '35';
83471
+ roomEvent = "updateOrder_".concat(instid, "_").concat(orderid);
83472
+ socket.emit('joinOrderRoom', {
83473
+ instanceID: instid,
83474
+ orderID: orderid
83475
+ });
83476
+ socket.on(roomEvent, function (data) {
83477
+ console.log(data);
83478
+ set_order_obj();
83479
+ });
83480
+ return _context2.abrupt("return", function () {
83481
+ socket.off('newOrder');
83482
+ });
83483
+ case 2:
83484
+ case "end":
83485
+ return _context2.stop();
83359
83486
  }
83360
- }
83487
+ }, _callee2);
83488
+ }));
83489
+ return _connectsocket.apply(this, arguments);
83490
+ }
83491
+ var set_order_obj = function set_order_obj() {
83492
+ var _authdetailsContext$i;
83493
+ var order_id = localStorage.getItem('currentOrderID');
83494
+ // setlastorderobj({ ...lastorderobj });
83495
+ // setinst_all_status_arr([...fetchorderhistoryQueryContext?.data?.data?.inst_all_status]);
83496
+ var instid = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid;
83497
+ if (order_id != undefined && order_id != null && order_id.length != 0 && instid == '69e4b49b26217') {
83498
+ GeneralAPIMutationContext.mutate({
83499
+ endpointurl: '/p_fetchorderinformation',
83500
+ orderid: order_id,
83501
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
83502
+ var _data$data;
83503
+ var templastorderobj = {};
83504
+ if ((data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.data) != null) {
83505
+ var _data$data2;
83506
+ templastorderobj = data.data.data;
83507
+ setinst_all_status_arr(_toConsumableArray(data === null || data === void 0 || (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.inst_all_status));
83508
+ setShowOrderModal(true);
83509
+ } else {
83510
+ templastorderobj = {
83511
+ status: false
83512
+ };
83513
+ }
83514
+ setlastorderobj(_objectSpread$P({}, templastorderobj));
83515
+ }
83516
+ });
83517
+ } else {
83518
+ setlastorderobj({
83519
+ status: false
83520
+ });
83361
83521
  }
83362
- }, [fetchorderhistoryQueryContext.isSuccess, fetchorderhistoryQueryContext.data]);
83522
+ };
83523
+ useEffect(function () {
83524
+ var _authdetailsContext$i2;
83525
+ if (authdetailsContext != undefined && authdetailsContext != null && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.instinfo) != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.instinfo) != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) != undefined) {
83526
+ set_order_obj();
83527
+ }
83528
+ // var current_stored_order_obj = localStorage.getItem('currentOrderObj');
83529
+ // if (fetchorderhistoryQueryContext.isSuccess) {
83530
+ // if (fetchorderhistoryQueryContext?.data != undefined && fetchorderhistoryQueryContext?.data?.data?.ordershistory?.length > 0) {
83531
+ // var lastorderobj = fetchorderhistoryQueryContext?.data?.data?.ordershistory[0];
83532
+ // setlastorderobj({ ...lastorderobj });
83533
+ // if (fetchorderhistoryQueryContext?.data?.data?.inst_all_status != undefined && fetchorderhistoryQueryContext?.data?.data?.inst_all_status?.length > 0) {
83534
+ // setinst_all_status_arr([...fetchorderhistoryQueryContext?.data?.data?.inst_all_status]);
83535
+ // }
83536
+ // }
83537
+ // }
83538
+ }, [authdetailsContext]);
83363
83539
  useEffect(function () {
83364
83540
  if (props.srcfrom == 'addsectionform') {
83365
83541
  var secpropobj = {};
@@ -83395,19 +83571,16 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83395
83571
  }
83396
83572
  }
83397
83573
  }, [sectionproperties]);
83398
- var _useState11 = useState(false),
83399
- _useState12 = _slicedToArray(_useState11, 2),
83400
- showOrderModal = _useState12[0],
83401
- setShowOrderModal = _useState12[1];
83402
83574
  var handleClose = function handleClose() {
83403
83575
  setShowOrderModal(false);
83404
83576
  };
83405
- useEffect(function () {
83406
- var _lastorderobj$instord;
83407
- if (authdetailsContext !== null && authdetailsContext !== void 0 && authdetailsContext.loggedin && lastorderobj && Object.keys(lastorderobj).length > 0 && (lastorderobj === null || lastorderobj === void 0 || (_lastorderobj$instord = lastorderobj.instorderstatus) === null || _lastorderobj$instord === void 0 ? void 0 : _lastorderobj$instord.orderstatusname_en) !== 'Delivered') {
83408
- setShowOrderModal(true);
83409
- }
83410
- }, [authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin, lastorderobj]);
83577
+
83578
+ // useEffect(() => {
83579
+ // if (authdetailsContext?.loggedin && lastorderobj && Object.keys(lastorderobj).length > 0 && lastorderobj?.instorderstatus?.orderstatusname_en !== 'Delivered') {
83580
+ // setShowOrderModal(true);
83581
+ // }
83582
+ // }, [authdetailsContext?.loggedin, lastorderobj]);
83583
+
83411
83584
  var sectionstyles = {
83412
83585
  statimage: css({
83413
83586
  width: 150,
@@ -83421,7 +83594,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83421
83594
  return /*#__PURE__*/React.createElement("div", {
83422
83595
  "class": "row m-0 w-100 px-5 align-items-center justify-content-center py-5",
83423
83596
  style: {
83424
- display: authdetailsContext !== null && authdetailsContext !== void 0 && authdetailsContext.loggedin ? 'flex' : 'none',
83597
+ // display: authdetailsContext?.loggedin ? 'flex' : 'none',
83425
83598
  background: '#fff'
83426
83599
  }
83427
83600
  }, /*#__PURE__*/React.createElement(Modal, {
@@ -83440,7 +83613,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83440
83613
  }, /*#__PURE__*/React.createElement("div", {
83441
83614
  className: "allcentered cursor-pointer",
83442
83615
  onClick: function onClick() {
83443
- closePopUp();
83616
+ handleClose();
83444
83617
  },
83445
83618
  style: {
83446
83619
  width: 35,
@@ -83453,7 +83626,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83453
83626
  size: 30,
83454
83627
  "class": "",
83455
83628
  color: '#fff'
83456
- })))), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) && /*#__PURE__*/React.createElement("div", {
83629
+ })))), /*#__PURE__*/React.createElement("div", {
83457
83630
  "class": "row m-0 w-100 allcentered"
83458
83631
  }, /*#__PURE__*/React.createElement("div", {
83459
83632
  "class": "col-12 allcentered"
@@ -83464,7 +83637,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83464
83637
  fontSize: 25,
83465
83638
  fontWeight: 700
83466
83639
  }
83467
- }, "Track Your Order Status")), /*#__PURE__*/React.createElement("div", {
83640
+ }, langdetect == 'en' ? 'Track Your Order Status' : 'تتبع حالة طلبك')), /*#__PURE__*/React.createElement("div", {
83468
83641
  "class": "col-12 allcentered"
83469
83642
  }, /*#__PURE__*/React.createElement("p", {
83470
83643
  "class": "m-0 p-0 text-center wordbreak",
@@ -83473,7 +83646,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83473
83646
  fontSize: 20,
83474
83647
  fontWeight: 600
83475
83648
  }
83476
- }, "Stay updated with your order every step of the way")), /*#__PURE__*/React.createElement("div", {
83649
+ }, langdetect == 'en' ? 'Stay updated with your order every step of the way' : 'ابقَ على اطلاع دائم بطلبك في كل خطوة على الطريق')), /*#__PURE__*/React.createElement("div", {
83477
83650
  "class": "col-12 allcentered mb-4"
83478
83651
  }, /*#__PURE__*/React.createElement("p", {
83479
83652
  "class": "m-0 p-0 text-center wordbreak",
@@ -83482,14 +83655,14 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83482
83655
  fontSize: 25,
83483
83656
  fontWeight: 700
83484
83657
  }
83485
- }, "Order Number: ", lastorderobj === null || lastorderobj === void 0 ? void 0 : lastorderobj.orderid)), inst_all_status_arr.length != 0 && (inst_all_status_arr === null || inst_all_status_arr === void 0 ? void 0 : inst_all_status_arr.map(function (item, index) {
83658
+ }, "Order Number: 100", lastorderobj === null || lastorderobj === void 0 || (_lastorderobj$orderin = lastorderobj.orderinfo) === null || _lastorderobj$orderin === void 0 ? void 0 : _lastorderobj$orderin.orderid)), inst_all_status_arr.length != 0 && (inst_all_status_arr === null || inst_all_status_arr === void 0 ? void 0 : inst_all_status_arr.map(function (item, index) {
83486
83659
  var foundIndex = inst_all_status_arr.findIndex(function (status) {
83487
- var _lastorderobj$instord2;
83488
- return status.orderstatuslogid === (lastorderobj === null || lastorderobj === void 0 || (_lastorderobj$instord2 = lastorderobj.instorderstatus) === null || _lastorderobj$instord2 === void 0 ? void 0 : _lastorderobj$instord2.orderstatuslogid);
83660
+ var _lastorderobj$orderst;
83661
+ return status.orderstatuslogid === (lastorderobj === null || lastorderobj === void 0 || (_lastorderobj$orderst = lastorderobj.orderstatus) === null || _lastorderobj$orderst === void 0 ? void 0 : _lastorderobj$orderst.orderstatuslogid);
83489
83662
  });
83490
83663
  var currentStatusIndex = foundIndex === -1 ? 0 : foundIndex;
83491
83664
  return /*#__PURE__*/React.createElement("div", {
83492
- "class": "col-3 col-md-6 \u0629\u0644\u0627-3 col-sm-12 allcentered col-md-4"
83665
+ "class": "col-3 col-md-6 \u0629\u0644\u0627-3 col-sm-12 allcentered col-md-4 mb-md-3"
83493
83666
  }, /*#__PURE__*/React.createElement("div", {
83494
83667
  className: "row m-0 w-100 flex-column allcentered p-4 ".concat(index === currentStatusIndex ? 'current-status' : ''),
83495
83668
  style: {
@@ -83500,7 +83673,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83500
83673
  }, /*#__PURE__*/React.createElement("div", {
83501
83674
  className: sectionstyles.statimage + ' mb-1 '
83502
83675
  }, /*#__PURE__*/React.createElement("img", {
83503
- src: index == 0 ? 'https://ik.imagekit.io/42fa3n8bbf/products/69e4b49b26217/6a4543a0e4207generalimage.png' : index == 1 ? 'https://ik.imagekit.io/42fa3n8bbf/products/69e4b49b26217/6a453edf30256generalimage.png' : 'https://tabexseriesmedia.s3.eu-north-1.amazonaws.com/products/69e4b49b26217/6a4bb6a19bdd2generalimage.png',
83676
+ src: index == 0 ? 'https://ik.imagekit.io/42fa3n8bbf/products/69e4b49b26217/6a4543a0e4207generalimage.png' : index == 1 ? 'https://ik.imagekit.io/42fa3n8bbf/products/69e4b49b26217/6a453edf30256generalimage.png' : index == 2 ? 'https://ik.imagekit.io/42fa3n8bbf/products/69e4b49b26217/6a53b91573b4ageneralimage.png' : 'https://tabexseriesmedia.s3.eu-north-1.amazonaws.com/products/69e4b49b26217/6a4bb6a19bdd2generalimage.png',
83504
83677
  style: {
83505
83678
  width: '100%',
83506
83679
  height: '100%',
@@ -83523,19 +83696,23 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83523
83696
  }
83524
83697
  }, langdetect == 'en' ? item.orderstatusname_en : item.orderstatusname_en)));
83525
83698
  }))), /*#__PURE__*/React.createElement("div", {
83526
- "class": "col-12 allcentered mt-4"
83699
+ "class": "col-12 allcentered mt-5"
83527
83700
  }, /*#__PURE__*/React.createElement("button", {
83528
83701
  className: "p-2",
83529
83702
  style: {
83530
- width: 250,
83703
+ width: 300,
83531
83704
  height: 45,
83532
- borderRadius: 15,
83533
- background: 'green'
83705
+ borderRadius: 12,
83706
+ background: 'green',
83707
+ color: '#fff'
83534
83708
  },
83535
83709
  onClick: function onClick() {
83536
- fetchorderhistoryQueryContext.refetch();
83710
+ // fetchorderhistoryQueryContext.refetch();
83711
+ // set_order_obj();
83712
+ localStorage.setItem('currentOrderID', null);
83713
+ setShowOrderModal(false);
83537
83714
  }
83538
- }, "Refresh Your Order Status")))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
83715
+ }, langdetect == 'en' ? "Thank you I've received my order" : 'شكرا لقد استلمت الطلب')))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
83539
83716
  };
83540
83717
 
83541
83718
  function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }