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.cjs.js CHANGED
@@ -22274,7 +22274,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
22274
22274
  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; }
22275
22275
  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__default["default"](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; }
22276
22276
  var OrderSuccess = function OrderSuccess(props) {
22277
- 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;
22277
+ 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;
22278
22278
  var lang = props.actions.lang;
22279
22279
  var langdetect = props.actions.langdetect;
22280
22280
  var routingcountext = props.actions.routingcountext;
@@ -22372,6 +22372,7 @@ var OrderSuccess = function OrderSuccess(props) {
22372
22372
  var query = new URLSearchParams(uselocation.search);
22373
22373
  var order_id = query.get('order_id');
22374
22374
  setOrderId(order_id);
22375
+ localStorage.setItem('currentOrderID', order_id);
22375
22376
  if (order_id != undefined && order_id != null && order_id.length != 0) {
22376
22377
  GeneralAPIMutationContext.mutate({
22377
22378
  endpointurl: '/p_fetchorderinformation',
@@ -22386,6 +22387,7 @@ var OrderSuccess = function OrderSuccess(props) {
22386
22387
  status: false
22387
22388
  };
22388
22389
  }
22390
+ localStorage.setItem('currentOrderObj', JSON.stringify(templastorderobj));
22389
22391
  setlastOrderinfoObj(_objectSpread$2o({}, templastorderobj));
22390
22392
  }
22391
22393
  });
@@ -22521,13 +22523,13 @@ var OrderSuccess = function OrderSuccess(props) {
22521
22523
  style: {
22522
22524
  fontSize: 15
22523
22525
  }
22524
- }, 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__default["default"].createElement("div", {
22526
+ }, 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__default["default"].createElement("div", {
22525
22527
  "class": "col-12 p-0 text-start mb-4 font-weight-500"
22526
22528
  }, 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__default["default"].createElement("div", {
22527
22529
  "class": "col-12 p-0 text-start font-weight-500"
22528
22530
  }, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React__default["default"].createElement("div", {
22529
22531
  "class": "col-12 p-0 text-start font-weight-500"
22530
- }, 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__default["default"].createElement("div", {
22532
+ }, 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__default["default"].createElement("div", {
22531
22533
  "class": "col-12 allcentered mt-5 mb-3"
22532
22534
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22533
22535
  "class": ordersuccessstyle.whatsappbtn + ' allcentered cursor-pointer ',
@@ -22588,13 +22590,13 @@ var OrderSuccess = function OrderSuccess(props) {
22588
22590
  "class": "col-6 col-md-12"
22589
22591
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22590
22592
  "class": "col-12 p-0 text-start mb-2"
22591
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("p", {
22593
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("p", {
22592
22594
  style: {
22593
22595
  fontSize: 15,
22594
22596
  fontWeight: 600
22595
22597
  },
22596
22598
  "class": "m-0"
22597
- }, 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__default["default"].createElement("p", {
22599
+ }, 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__default["default"].createElement("p", {
22598
22600
  style: {
22599
22601
  fontSize: 15,
22600
22602
  fontWeight: 600
@@ -22602,7 +22604,7 @@ var OrderSuccess = function OrderSuccess(props) {
22602
22604
  "class": "m-0"
22603
22605
  }, langdetect == 'en' ? 'Total' : 'الإجمالي')), /*#__PURE__*/React__default["default"].createElement("div", {
22604
22606
  "class": "col-12 p-0 text-start"
22605
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].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__default["default"].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__default["default"].createElement("div", {
22607
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].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__default["default"].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__default["default"].createElement("div", {
22606
22608
  "class": "col-6 col-md-12 p-md-0"
22607
22609
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22608
22610
  "class": "row m-0 w-100 mb-auto mt-md-4"
@@ -22727,7 +22729,7 @@ var OrderSuccess = function OrderSuccess(props) {
22727
22729
  "class": "col-6 text-end"
22728
22730
  }, /*#__PURE__*/React__default["default"].createElement("p", {
22729
22731
  className: "m-0 p-0 font-weight-500"
22730
- }, 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__default["default"].createElement("div", {
22732
+ }, 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__default["default"].createElement("div", {
22731
22733
  "class": "col-lg-12 p-0 mt-1 text-start mt-2",
22732
22734
  style: {
22733
22735
  fontSize: 16,
@@ -22735,7 +22737,7 @@ var OrderSuccess = function OrderSuccess(props) {
22735
22737
  }
22736
22738
  }, /*#__PURE__*/React__default["default"].createElement("p", {
22737
22739
  "class": "m-0 p-0"
22738
- }, 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__default["default"].createElement("div", {
22740
+ }, 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__default["default"].createElement("div", {
22739
22741
  "class": "col-12 allcentered mt-5 mb-3"
22740
22742
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22741
22743
  "class": ordersuccessstyle.whatsappbtn + ' allcentered cursor-pointer ',
@@ -72307,7 +72309,55 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72307
72309
  "class": "col-lg-12 p-0"
72308
72310
  }, /*#__PURE__*/React__default["default"].createElement("div", {
72309
72311
  "class": "row m-0 w-100 d-flex align-items-center justify-content-start"
72310
- }, (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) {
72312
+ }, sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
72313
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72314
+ }, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm, {
72315
+ payloadobj: payloadobj,
72316
+ setpayloadobj: setpayloadobj,
72317
+ sectionproperties: sectionproperties
72318
+ // setpayloadobj={setpayloadobj}
72319
+ ,
72320
+ srcfrom: 'filter',
72321
+ actions: actions,
72322
+ FetchTabexStatesPayloadobjContext: FetchTabexStatesPayloadobjContext,
72323
+ setFetchTabexStatesPayloadobjContext: setFetchTabexStatesPayloadobjContext,
72324
+ fetchTabexCountriesQueryContext: fetchTabexCountriesQueryContext,
72325
+ fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
72326
+ fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
72327
+ })), sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
72328
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72329
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
72330
+ className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
72331
+ style: {
72332
+ textAlign: langdetect == 'en' ? 'left' : 'right'
72333
+ }
72334
+ }, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React__default["default"].createElement("div", {
72335
+ "class": 'col-lg-12 p-0'
72336
+ }, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
72337
+ options: collectionsarray,
72338
+ getOptionLabel: function getOptionLabel(option) {
72339
+ var crname = '';
72340
+ if (langdetect == 'en') {
72341
+ crname = option.title_en;
72342
+ } else if (langdetect == 'ar') {
72343
+ crname = option.title_ar;
72344
+ }
72345
+ return crname;
72346
+ },
72347
+ getOptionValue: function getOptionValue(option) {
72348
+ return option.collectionid;
72349
+ },
72350
+ autocomplete: "new-password",
72351
+ onChange: function onChange(option) {
72352
+ var temp = payloadobj;
72353
+ temp.collections = [];
72354
+ temp.collections.push(option.collectionid);
72355
+ setpayloadobj(_objectSpread$1j({}, temp));
72356
+ },
72357
+ styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
72358
+ isSearchable: true,
72359
+ placeholder: ''
72360
+ }))), (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) {
72311
72361
  if (item.type == 'Selectbox') {
72312
72362
  var _item$featuresselectb;
72313
72363
  var selectboxarr = [];
@@ -72447,8 +72497,8 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72447
72497
  }
72448
72498
  })));
72449
72499
  }
72450
- })), /*#__PURE__*/React__default["default"].createElement("div", {
72451
- "class": "col-lg-3 col-md-12"
72500
+ })), sectionproperties.showfromtofilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
72501
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72452
72502
  }, /*#__PURE__*/React__default["default"].createElement("div", {
72453
72503
  "class": "row m-0 w-100"
72454
72504
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -72472,8 +72522,8 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72472
72522
  },
72473
72523
  value: from_date_filter_input,
72474
72524
  className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
72475
- })))), /*#__PURE__*/React__default["default"].createElement("div", {
72476
- "class": "col-lg-3 col-md-12"
72525
+ })))), sectionproperties.showfromtofilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
72526
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
72477
72527
  }, /*#__PURE__*/React__default["default"].createElement("div", {
72478
72528
  "class": "col-lg-12 p-0 text-start"
72479
72529
  }, /*#__PURE__*/React__default["default"].createElement("label", {
@@ -72495,8 +72545,28 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
72495
72545
  },
72496
72546
  value: to_date_filter_input,
72497
72547
  className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
72498
- })), "\xA0"), /*#__PURE__*/React__default["default"].createElement("div", {
72499
- "class": "col-lg-2 col-md-12 text-end",
72548
+ })), "\xA0"), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
72549
+ "class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 px-4"
72550
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
72551
+ className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
72552
+ style: {
72553
+ textAlign: langdetect == 'en' ? 'left' : 'right'
72554
+ }
72555
+ }, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React__default["default"].createElement("div", {
72556
+ "class": 'col-lg-12 p-0'
72557
+ }, /*#__PURE__*/React__default["default"].createElement(InputRange__default["default"], {
72558
+ draggableTrack: true,
72559
+ formatLabel: function formatLabel(value) {
72560
+ return "".concat(value);
72561
+ },
72562
+ maxValue: parseInt(sectionproperties.filterpricemaxvalue),
72563
+ minValue: parseInt(sectionproperties.filterpriceminvalue),
72564
+ value: pricevalue,
72565
+ onChange: function onChange(value) {
72566
+ setpricevalue(_objectSpread$1j({}, value));
72567
+ }
72568
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
72569
+ "class": "col-lg-2 col-md-12 text-end mt-md-4",
72500
72570
  style: {
72501
72571
  marginLeft: langdetect == 'en' ? 'auto' : '',
72502
72572
  marginRight: langdetect == 'ar' ? 'auto' : ''
@@ -83354,6 +83424,7 @@ var easingFunctions = {
83354
83424
  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; }
83355
83425
  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__default["default"](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; }
83356
83426
  var TrackOrderStatus = function TrackOrderStatus(props) {
83427
+ var _lastorderobj$orderin;
83357
83428
  props.actions;
83358
83429
  var langdetect = props.actions.langdetect;
83359
83430
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -83369,10 +83440,11 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83369
83440
  _useState6 = _slicedToArray__default["default"](_useState5, 2);
83370
83441
  _useState6[0];
83371
83442
  var setcardarrayofobjs = _useState6[1];
83443
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
83372
83444
  props.actions.ikimagecredcontext;
83373
83445
  props.actions.routingcountext;
83374
- var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
83375
- var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
83446
+ props.actions.FetchQueriesEngineContext;
83447
+ props.actions.setFetchQueriesEngineContext;
83376
83448
  props.actions.StaticPagesLinksContext;
83377
83449
  var _useState7 = React.useState(null),
83378
83450
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
@@ -83386,31 +83458,135 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83386
83458
  _useState10 = _slicedToArray__default["default"](_useState1, 2);
83387
83459
  _useState10[0];
83388
83460
  _useState10[1];
83461
+ // const [showOrderModal, setShowOrderModal] = useState(false);
83462
+
83463
+ var showOrderModal = props.actions.showTrackingOrderModalContext;
83464
+ var setShowOrderModal = props.actions.setshowTrackingOrderModalContext;
83389
83465
  var authdetailsContext = props.actions.authdetailsContext;
83390
- var fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
83466
+ props.actions.fetchorderhistoryQueryContext;
83467
+
83468
+ // useEffect(() => {
83469
+ // if (authdetailsContext?.loggedin == true) {
83470
+ // if (FetchQueriesEngineContext != undefined) {
83471
+ // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
83472
+ // tempFetchQueriesEngineContext.orderhistory = true;
83473
+ // setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
83474
+ // }
83475
+ // } else {
83476
+ // // routingcountext('');
83477
+ // }
83478
+ // }, [authdetailsContext]);
83391
83479
  React.useEffect(function () {
83392
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
83393
- if (FetchQueriesEngineContext != undefined) {
83394
- var tempFetchQueriesEngineContext = _objectSpread$P({}, FetchQueriesEngineContext);
83395
- tempFetchQueriesEngineContext.orderhistory = true;
83396
- setFetchQueriesEngineContext(_objectSpread$P({}, tempFetchQueriesEngineContext));
83397
- }
83480
+ function runsocket() {
83481
+ return _runsocket.apply(this, arguments);
83398
83482
  }
83399
- }, [authdetailsContext]);
83400
- React.useEffect(function () {
83401
- if (fetchorderhistoryQueryContext.isSuccess) {
83402
- var _fetchorderhistoryQue;
83403
- 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) {
83404
- var _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4;
83405
- 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];
83406
- setlastorderobj(_objectSpread$P({}, lastorderobj));
83407
- 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) {
83408
- var _fetchorderhistoryQue5;
83409
- setinst_all_status_arr(_toConsumableArray__default["default"](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));
83483
+ function _runsocket() {
83484
+ _runsocket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
83485
+ return _regeneratorRuntime__default["default"].wrap(function (_context) {
83486
+ while (1) switch (_context.prev = _context.next) {
83487
+ case 0:
83488
+ _context.next = 1;
83489
+ return connectsocket();
83490
+ case 1:
83491
+ case "end":
83492
+ return _context.stop();
83493
+ }
83494
+ }, _callee);
83495
+ }));
83496
+ return _runsocket.apply(this, arguments);
83497
+ }
83498
+ runsocket();
83499
+ }, []);
83500
+ function connectsocket() {
83501
+ return _connectsocket.apply(this, arguments);
83502
+ }
83503
+ function _connectsocket() {
83504
+ _connectsocket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
83505
+ var _authdetailsContext$i3;
83506
+ var orderid, instid, _yield$import, io, socket, roomEvent;
83507
+ return _regeneratorRuntime__default["default"].wrap(function (_context2) {
83508
+ while (1) switch (_context2.prev = _context2.next) {
83509
+ case 0:
83510
+ orderid = localStorage.getItem('currentOrderID'); // var orderid = '35';
83511
+ instid = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instid; // localStorage.setItem("currentOrderID", orderID);
83512
+ if (!(orderid && instid == '69e4b49b26217')) {
83513
+ _context2.next = 2;
83514
+ break;
83515
+ }
83516
+ _context2.next = 1;
83517
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('socket.io-client')); });
83518
+ case 1:
83519
+ _yield$import = _context2.sent;
83520
+ io = _yield$import.io;
83521
+ socket = io('https://som.tabexseries.com/'); // const orderid = '35';
83522
+ roomEvent = "updateOrder_".concat(instid, "_").concat(orderid);
83523
+ socket.emit('joinOrderRoom', {
83524
+ instanceID: instid,
83525
+ orderID: orderid
83526
+ });
83527
+ socket.on(roomEvent, function (data) {
83528
+ console.log(data);
83529
+ set_order_obj();
83530
+ });
83531
+ return _context2.abrupt("return", function () {
83532
+ socket.off('newOrder');
83533
+ });
83534
+ case 2:
83535
+ case "end":
83536
+ return _context2.stop();
83410
83537
  }
83411
- }
83538
+ }, _callee2);
83539
+ }));
83540
+ return _connectsocket.apply(this, arguments);
83541
+ }
83542
+ var set_order_obj = function set_order_obj() {
83543
+ var _authdetailsContext$i;
83544
+ var order_id = localStorage.getItem('currentOrderID');
83545
+ // setlastorderobj({ ...lastorderobj });
83546
+ // setinst_all_status_arr([...fetchorderhistoryQueryContext?.data?.data?.inst_all_status]);
83547
+ var instid = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid;
83548
+ if (order_id != undefined && order_id != null && order_id.length != 0 && instid == '69e4b49b26217') {
83549
+ GeneralAPIMutationContext.mutate({
83550
+ endpointurl: '/p_fetchorderinformation',
83551
+ orderid: order_id,
83552
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
83553
+ var _data$data;
83554
+ var templastorderobj = {};
83555
+ if ((data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.data) != null) {
83556
+ var _data$data2;
83557
+ templastorderobj = data.data.data;
83558
+ setinst_all_status_arr(_toConsumableArray__default["default"](data === null || data === void 0 || (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.inst_all_status));
83559
+ setShowOrderModal(true);
83560
+ } else {
83561
+ templastorderobj = {
83562
+ status: false
83563
+ };
83564
+ }
83565
+ setlastorderobj(_objectSpread$P({}, templastorderobj));
83566
+ }
83567
+ });
83568
+ } else {
83569
+ setlastorderobj({
83570
+ status: false
83571
+ });
83412
83572
  }
83413
- }, [fetchorderhistoryQueryContext.isSuccess, fetchorderhistoryQueryContext.data]);
83573
+ };
83574
+ React.useEffect(function () {
83575
+ var _authdetailsContext$i2;
83576
+ 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) {
83577
+ set_order_obj();
83578
+ }
83579
+ // var current_stored_order_obj = localStorage.getItem('currentOrderObj');
83580
+ // if (fetchorderhistoryQueryContext.isSuccess) {
83581
+ // if (fetchorderhistoryQueryContext?.data != undefined && fetchorderhistoryQueryContext?.data?.data?.ordershistory?.length > 0) {
83582
+ // var lastorderobj = fetchorderhistoryQueryContext?.data?.data?.ordershistory[0];
83583
+ // setlastorderobj({ ...lastorderobj });
83584
+ // if (fetchorderhistoryQueryContext?.data?.data?.inst_all_status != undefined && fetchorderhistoryQueryContext?.data?.data?.inst_all_status?.length > 0) {
83585
+ // setinst_all_status_arr([...fetchorderhistoryQueryContext?.data?.data?.inst_all_status]);
83586
+ // }
83587
+ // }
83588
+ // }
83589
+ }, [authdetailsContext]);
83414
83590
  React.useEffect(function () {
83415
83591
  if (props.srcfrom == 'addsectionform') {
83416
83592
  var secpropobj = {};
@@ -83446,19 +83622,16 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83446
83622
  }
83447
83623
  }
83448
83624
  }, [sectionproperties]);
83449
- var _useState11 = React.useState(false),
83450
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
83451
- showOrderModal = _useState12[0],
83452
- setShowOrderModal = _useState12[1];
83453
83625
  var handleClose = function handleClose() {
83454
83626
  setShowOrderModal(false);
83455
83627
  };
83456
- React.useEffect(function () {
83457
- var _lastorderobj$instord;
83458
- 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') {
83459
- setShowOrderModal(true);
83460
- }
83461
- }, [authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin, lastorderobj]);
83628
+
83629
+ // useEffect(() => {
83630
+ // if (authdetailsContext?.loggedin && lastorderobj && Object.keys(lastorderobj).length > 0 && lastorderobj?.instorderstatus?.orderstatusname_en !== 'Delivered') {
83631
+ // setShowOrderModal(true);
83632
+ // }
83633
+ // }, [authdetailsContext?.loggedin, lastorderobj]);
83634
+
83462
83635
  var sectionstyles = {
83463
83636
  statimage: glamor.css({
83464
83637
  width: 150,
@@ -83472,7 +83645,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83472
83645
  return /*#__PURE__*/React__default["default"].createElement("div", {
83473
83646
  "class": "row m-0 w-100 px-5 align-items-center justify-content-center py-5",
83474
83647
  style: {
83475
- display: authdetailsContext !== null && authdetailsContext !== void 0 && authdetailsContext.loggedin ? 'flex' : 'none',
83648
+ // display: authdetailsContext?.loggedin ? 'flex' : 'none',
83476
83649
  background: '#fff'
83477
83650
  }
83478
83651
  }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
@@ -83491,7 +83664,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83491
83664
  }, /*#__PURE__*/React__default["default"].createElement("div", {
83492
83665
  className: "allcentered cursor-pointer",
83493
83666
  onClick: function onClick() {
83494
- closePopUp();
83667
+ handleClose();
83495
83668
  },
83496
83669
  style: {
83497
83670
  width: 35,
@@ -83504,7 +83677,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83504
83677
  size: 30,
83505
83678
  "class": "",
83506
83679
  color: '#fff'
83507
- })))), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) && /*#__PURE__*/React__default["default"].createElement("div", {
83680
+ })))), /*#__PURE__*/React__default["default"].createElement("div", {
83508
83681
  "class": "row m-0 w-100 allcentered"
83509
83682
  }, /*#__PURE__*/React__default["default"].createElement("div", {
83510
83683
  "class": "col-12 allcentered"
@@ -83515,7 +83688,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83515
83688
  fontSize: 25,
83516
83689
  fontWeight: 700
83517
83690
  }
83518
- }, "Track Your Order Status")), /*#__PURE__*/React__default["default"].createElement("div", {
83691
+ }, langdetect == 'en' ? 'Track Your Order Status' : 'تتبع حالة طلبك')), /*#__PURE__*/React__default["default"].createElement("div", {
83519
83692
  "class": "col-12 allcentered"
83520
83693
  }, /*#__PURE__*/React__default["default"].createElement("p", {
83521
83694
  "class": "m-0 p-0 text-center wordbreak",
@@ -83524,7 +83697,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83524
83697
  fontSize: 20,
83525
83698
  fontWeight: 600
83526
83699
  }
83527
- }, "Stay updated with your order every step of the way")), /*#__PURE__*/React__default["default"].createElement("div", {
83700
+ }, langdetect == 'en' ? 'Stay updated with your order every step of the way' : 'ابقَ على اطلاع دائم بطلبك في كل خطوة على الطريق')), /*#__PURE__*/React__default["default"].createElement("div", {
83528
83701
  "class": "col-12 allcentered mb-4"
83529
83702
  }, /*#__PURE__*/React__default["default"].createElement("p", {
83530
83703
  "class": "m-0 p-0 text-center wordbreak",
@@ -83533,14 +83706,14 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83533
83706
  fontSize: 25,
83534
83707
  fontWeight: 700
83535
83708
  }
83536
- }, "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) {
83709
+ }, "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) {
83537
83710
  var foundIndex = inst_all_status_arr.findIndex(function (status) {
83538
- var _lastorderobj$instord2;
83539
- return status.orderstatuslogid === (lastorderobj === null || lastorderobj === void 0 || (_lastorderobj$instord2 = lastorderobj.instorderstatus) === null || _lastorderobj$instord2 === void 0 ? void 0 : _lastorderobj$instord2.orderstatuslogid);
83711
+ var _lastorderobj$orderst;
83712
+ return status.orderstatuslogid === (lastorderobj === null || lastorderobj === void 0 || (_lastorderobj$orderst = lastorderobj.orderstatus) === null || _lastorderobj$orderst === void 0 ? void 0 : _lastorderobj$orderst.orderstatuslogid);
83540
83713
  });
83541
83714
  var currentStatusIndex = foundIndex === -1 ? 0 : foundIndex;
83542
83715
  return /*#__PURE__*/React__default["default"].createElement("div", {
83543
- "class": "col-3 col-md-6 \u0629\u0644\u0627-3 col-sm-12 allcentered col-md-4"
83716
+ "class": "col-3 col-md-6 \u0629\u0644\u0627-3 col-sm-12 allcentered col-md-4 mb-md-3"
83544
83717
  }, /*#__PURE__*/React__default["default"].createElement("div", {
83545
83718
  className: "row m-0 w-100 flex-column allcentered p-4 ".concat(index === currentStatusIndex ? 'current-status' : ''),
83546
83719
  style: {
@@ -83551,7 +83724,7 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83551
83724
  }, /*#__PURE__*/React__default["default"].createElement("div", {
83552
83725
  className: sectionstyles.statimage + ' mb-1 '
83553
83726
  }, /*#__PURE__*/React__default["default"].createElement("img", {
83554
- 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',
83727
+ 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',
83555
83728
  style: {
83556
83729
  width: '100%',
83557
83730
  height: '100%',
@@ -83574,19 +83747,23 @@ var TrackOrderStatus = function TrackOrderStatus(props) {
83574
83747
  }
83575
83748
  }, langdetect == 'en' ? item.orderstatusname_en : item.orderstatusname_en)));
83576
83749
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
83577
- "class": "col-12 allcentered mt-4"
83750
+ "class": "col-12 allcentered mt-5"
83578
83751
  }, /*#__PURE__*/React__default["default"].createElement("button", {
83579
83752
  className: "p-2",
83580
83753
  style: {
83581
- width: 250,
83754
+ width: 300,
83582
83755
  height: 45,
83583
- borderRadius: 15,
83584
- background: 'green'
83756
+ borderRadius: 12,
83757
+ background: 'green',
83758
+ color: '#fff'
83585
83759
  },
83586
83760
  onClick: function onClick() {
83587
- fetchorderhistoryQueryContext.refetch();
83761
+ // fetchorderhistoryQueryContext.refetch();
83762
+ // set_order_obj();
83763
+ localStorage.setItem('currentOrderID', null);
83764
+ setShowOrderModal(false);
83588
83765
  }
83589
- }, "Refresh Your Order Status")))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
83766
+ }, langdetect == 'en' ? "Thank you I've received my order" : 'شكرا لقد استلمت الطلب')))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
83590
83767
  };
83591
83768
 
83592
83769
  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; }