tabexseriescomponents 0.0.434 → 0.0.435

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
@@ -2470,8 +2470,11 @@ var Product_itemtype = function Product_itemtype(props) {
2470
2470
  style: {
2471
2471
  minHeight: sectionproperties.height + 'vh'
2472
2472
  }
2473
- }, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
2474
- "class": "w-100 scrollhorizontalwithscrollbar scrollhorizontalwithscrollbarremove"
2473
+ }, sectionproperties.gallerystyle == 'Style 2' &&
2474
+ /*#__PURE__*/
2475
+ // scrollhorizontalwithscrollbarremove
2476
+ React__default["default"].createElement("div", {
2477
+ "class": "w-100 scrollhorizontalwithscrollbar "
2475
2478
  }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productimages) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productimages.map(function (item, index) {
2476
2479
  return /*#__PURE__*/React__default["default"].createElement("div", {
2477
2480
  "class": ' scrollhorizontalcard mx-2 ',
@@ -3164,7 +3167,8 @@ var Product_itemtype = function Product_itemtype(props) {
3164
3167
  }, /*#__PURE__*/React__default["default"].createElement("p", {
3165
3168
  className: 'm-0 p-0 wordbreak',
3166
3169
  style: {
3167
- textAlign: langdetect == 'en' ? 'left' : 'right'
3170
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3171
+ color: sectionproperties.prodCatColor
3168
3172
  },
3169
3173
  dangerouslySetInnerHTML: {
3170
3174
  __html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.short_description_ar
@@ -3412,7 +3416,7 @@ var Product_itemtype = function Product_itemtype(props) {
3412
3416
  function ownKeys$2s(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; }
3413
3417
  function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3414
3418
  var Serviceinfotabs = function Serviceinfotabs(props) {
3415
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
3419
+ var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
3416
3420
  var langdetect = props.actions.langdetect;
3417
3421
  var lang = props.actions.lang;
3418
3422
  var sectionproperties = props.actions.sectionproperties;
@@ -3586,11 +3590,148 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3586
3590
  }
3587
3591
  })
3588
3592
  };
3593
+ function getLastChoosedSlotIndex(slots) {
3594
+ var lastChoosedIndex = -1; // Initialize with -1 indicating no slot is choosed
3595
+ for (var i = 0; i < slots.length; i++) {
3596
+ if (slots[i].ischoosed) {
3597
+ lastChoosedIndex = i;
3598
+ }
3599
+ }
3600
+ return lastChoosedIndex;
3601
+ }
3602
+ var chooseitemslot = function chooseitemslot(slot, index) {
3603
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
3604
+ var reservedslottobetaken = null;
3605
+ var reservedslotArrtobetaken = [];
3606
+ var slotschooosedcounter_tobe_usedonly_in_merge = 0;
3607
+ var is_multi_slots = false;
3608
+ var is_slots_must_be_adjacent = false;
3609
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.is_slots_adjacent) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.is_slots_adjacent) == 1) {
3610
+ is_slots_must_be_adjacent = true;
3611
+ }
3612
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.is_slots_multi) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.is_slots_multi) == 1) {
3613
+ is_multi_slots = true;
3614
+ }
3615
+ var tempslots = _toConsumableArray__default["default"](slots);
3616
+ if (is_multi_slots == false) {
3617
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3618
+ item.ischoosed = false;
3619
+ });
3620
+ }
3621
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3622
+ if (item.ischoosed == true) {
3623
+ slotschooosedcounter_tobe_usedonly_in_merge = slotschooosedcounter_tobe_usedonly_in_merge + 1;
3624
+ }
3625
+ });
3626
+ if (is_slots_must_be_adjacent == false) {
3627
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3628
+ if (tempslots[index].ischoosed == true) {
3629
+ tempslots[index].ischoosed = false;
3630
+ } else {
3631
+ tempslots[index].ischoosed = true;
3632
+ }
3633
+ } else {
3634
+ tempslots[index].ischoosed = true;
3635
+ }
3636
+ } else if (is_slots_must_be_adjacent == true) {
3637
+ var _tempslots$index;
3638
+ // Check if the selected slot is beside the previously selected slots
3639
+ if (slotschooosedcounter_tobe_usedonly_in_merge == 0) {
3640
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3641
+ if (tempslots[index].ischoosed == true) {
3642
+ tempslots[index].ischoosed = false;
3643
+ } else {
3644
+ tempslots[index].ischoosed = true;
3645
+ }
3646
+ } else {
3647
+ tempslots[index].ischoosed = true;
3648
+ }
3649
+ } else if (slotschooosedcounter_tobe_usedonly_in_merge == 1 && ((_tempslots$index = tempslots[index]) === null || _tempslots$index === void 0 ? void 0 : _tempslots$index.ischoosed) == true) {
3650
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3651
+ if (tempslots[index].ischoosed == true) {
3652
+ tempslots[index].ischoosed = false;
3653
+ }
3654
+ }
3655
+ } else if (index > 0 && tempslots[index - 1].ischoosed) {
3656
+ // The selected slot is beside the previous slot, mark it as chosen
3657
+ if (tempslots[index].ischoosed == true) {
3658
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3659
+ // if (lastSelectedIndex === index) {
3660
+ tempslots[lastSelectedIndex].ischoosed = false;
3661
+ // }
3662
+ } else {
3663
+ tempslots[index].ischoosed = true;
3664
+ }
3665
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3666
+ } else if (index < tempslots.length - 1 && tempslots[index + 1].ischoosed) {
3667
+ // The selected slot is beside the next slot, mark it as chosen
3668
+ if (tempslots[index].ischoosed == true) {
3669
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3670
+ // if (lastSelectedIndex === index) {
3671
+ tempslots[lastSelectedIndex].ischoosed = false;
3672
+ // }
3673
+ } else {
3674
+ tempslots[index].ischoosed = true;
3675
+ }
3676
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3677
+ } else {
3678
+ // The selected slot is not beside the previously selected slots
3679
+ // Handle this case according to your requirements (e.g., show an error message)
3680
+ NotificationManager.warning('', 'You can only choose slots beside each other.');
3681
+ }
3682
+ }
3683
+ setslots(_toConsumableArray__default["default"](tempslots));
3684
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3685
+ if (item.ischoosed == true) {
3686
+ reservedslotArrtobetaken.push({
3687
+ slot: item.slot
3688
+ });
3689
+ }
3690
+ });
3691
+ if (reservedslotArrtobetaken.length != 0) {
3692
+ reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3693
+ setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3694
+ time: reservedslottobetaken,
3695
+ reserved_slots: reservedslotArrtobetaken,
3696
+ quantity: parseInt(reservedslotArrtobetaken.length)
3697
+ }));
3698
+ } else {
3699
+ NotificationManager.warning('', 'No Slots Reserved');
3700
+ }
3701
+ };
3702
+ // const chooseitemslot = (slot, index) => {
3703
+ // var reservedslottobetaken = null;
3704
+ // var reservedslotArrtobetaken = [];
3705
+ // var tempslots = [...slots];
3706
+ // if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3707
+ // if (tempslots[index].ischoosed == true) {
3708
+ // tempslots[index].ischoosed = false;
3709
+ // } else {
3710
+ // tempslots[index].ischoosed = true;
3711
+ // }
3712
+ // } else {
3713
+ // tempslots[index].ischoosed = true;
3714
+ // }
3715
+
3716
+ // setslots([...tempslots]);
3717
+ // tempslots?.forEach(function (item, index) {
3718
+ // if (item.ischoosed == true) {
3719
+ // reservedslotArrtobetaken.push({ slot: item.slot });
3720
+ // }
3721
+ // });
3722
+
3723
+ // if (reservedslotArrtobetaken.length != 0) {
3724
+ // reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3725
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: reservedslottobetaken, reserved_slots: reservedslotArrtobetaken, quantity: parseInt(reservedslotArrtobetaken.length) });
3726
+ // } else {
3727
+ // NotificationManager.warning('', 'No Slots Reserved');
3728
+ // }
3729
+ // };
3589
3730
  return /*#__PURE__*/React__default["default"].createElement("div", {
3590
- className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3731
+ className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3591
3732
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3592
3733
  "class": "row m-0 w-100"
3593
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3734
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3594
3735
  "class": "row m-0 w-100"
3595
3736
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3596
3737
  "class": "col-lg-6 col-md-12 col-sm-12 mb-2 pl-1 pr-1"
@@ -3605,8 +3746,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3605
3746
  }, /*#__PURE__*/React__default["default"].createElement("input", {
3606
3747
  type: "date",
3607
3748
  "class": TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 ',
3608
- min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.reservationstarts,
3609
- max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.reservationends,
3749
+ min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
3750
+ max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
3610
3751
  onChange: function onChange(event) {
3611
3752
  setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3612
3753
  from: event.target.value
@@ -3632,7 +3773,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3632
3773
  to: event.target.value
3633
3774
  }));
3634
3775
  }
3635
- }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3776
+ }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.serviceinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.scheduletype) == 'minutes' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3636
3777
  "class": "col-lg-12 col-md-12 col-sm-12 mb-2"
3637
3778
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3638
3779
  "class": "row m-0 w-100"
@@ -3679,7 +3820,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3679
3820
  "class": "w-100"
3680
3821
  }, slots.map(function (item, index) {
3681
3822
  var ischoosed = false;
3682
- if (item.slot == addtocardpayloadobj.time) {
3823
+ if (item.ischoosed) {
3683
3824
  ischoosed = true;
3684
3825
  }
3685
3826
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3699,9 +3840,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3699
3840
  color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
3700
3841
  },
3701
3842
  onClick: function onClick() {
3702
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3703
- time: item.slot
3704
- }));
3843
+ chooseitemslot(item.slot, index);
3844
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
3705
3845
  }
3706
3846
  }, ischoosed == false && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), ischoosed == true && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_bookedcontent : sectionproperties.generalbtn_bookedcontent_ar))), /*#__PURE__*/React__default["default"].createElement("div", {
3707
3847
  "class": "col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-sm-center"
@@ -3742,7 +3882,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3742
3882
  }, slots.map(function (item, index) {
3743
3883
  var _slot, _slot2;
3744
3884
  var ischoosed = false;
3745
- if (item.slot == addtocardpayloadobj.time) {
3885
+ if (item.ischoosed) {
3746
3886
  ischoosed = true;
3747
3887
  }
3748
3888
  var slot = item.slot;
@@ -3782,9 +3922,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3782
3922
  "class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
3783
3923
  style: {},
3784
3924
  onClick: function onClick() {
3785
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3786
- time: item.slot
3787
- }));
3925
+ chooseitemslot(item.slot, index);
3788
3926
  }
3789
3927
  }, /*#__PURE__*/React__default["default"].createElement("p", {
3790
3928
  "class": ' p-0 m-0 '
@@ -3813,7 +3951,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3813
3951
  className: "col-lg-12 p-0 mb-3"
3814
3952
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3815
3953
  className: "row m-0 w-100"
3816
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3954
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.serviceinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3817
3955
  className: "col-lg-12 p-0"
3818
3956
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3819
3957
  className: "row m-0 w-100"
@@ -3877,15 +4015,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3877
4015
  }, /*#__PURE__*/React__default["default"].createElement("button", {
3878
4016
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3879
4017
  onClick: function onClick() {
3880
- var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
3881
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.scheduletype) == 'days') {
4018
+ var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
4019
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
3882
4020
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3883
4021
  addtocartfunc();
3884
4022
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
3885
4023
  // routingcountext(StaticPagesLinksContext.Checkout);
3886
4024
  // }
3887
4025
  }
3888
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.scheduletype) == 'minutes') {
4026
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
3889
4027
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3890
4028
  addtocartfunc();
3891
4029
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3918,7 +4056,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3918
4056
  size: sectionproperties.cartBtn_iconFontSize
3919
4057
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
3920
4058
  size: sectionproperties.cartBtn_iconFontSize
3921
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
4059
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3922
4060
  className: ' d-flex align-items-center justify-content-center '
3923
4061
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3924
4062
  color: "white",
@@ -3960,15 +4098,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3960
4098
  }, /*#__PURE__*/React__default["default"].createElement("button", {
3961
4099
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
3962
4100
  onClick: function onClick() {
3963
- var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3964
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
4101
+ var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
4102
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
3965
4103
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3966
4104
  addtocartfunc();
3967
4105
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
3968
4106
  routingcountext(StaticPagesLinksContext.Checkout);
3969
4107
  }
3970
4108
  }
3971
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
4109
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
3972
4110
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3973
4111
  addtocartfunc();
3974
4112
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -4001,7 +4139,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
4001
4139
  size: sectionproperties.cartBtn_iconFontSize
4002
4140
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
4003
4141
  size: sectionproperties.cartBtn_iconFontSize
4004
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
4142
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
4005
4143
  className: ' d-flex align-items-center justify-content-center '
4006
4144
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
4007
4145
  color: "white",
@@ -4045,13 +4183,13 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
4045
4183
  }, /*#__PURE__*/React__default["default"].createElement("button", {
4046
4184
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
4047
4185
  onClick: function onClick() {
4048
- var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
4049
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
4186
+ var _fetchProductInfoQuer19, _fetchProductInfoQuer20;
4187
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'days') {
4050
4188
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
4051
4189
  addtocartfunc();
4052
4190
  routingcountext(StaticPagesLinksContext.Checkout);
4053
4191
  }
4054
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
4192
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'minutes') {
4055
4193
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
4056
4194
  addtocartfunc();
4057
4195
  routingcountext(StaticPagesLinksContext.Checkout);
@@ -22359,40 +22497,14 @@ var ElegantHeader = function ElegantHeader(props) {
22359
22497
  onClick: function onClick() {
22360
22498
  setlang('en');
22361
22499
  }
22362
- }, /*#__PURE__*/React__default["default"].createElement("img", {
22363
- src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
22364
- style: {
22365
- maxWidth: '2vh',
22366
- maxHeight: '2vh'
22367
- }
22368
- }), /*#__PURE__*/React__default["default"].createElement("div", {
22369
- style: {
22370
- height: '20px',
22371
- width: '1.5px',
22372
- background: '#e6e6e6'
22373
- },
22374
- "class": "ml-2 mr-2"
22375
- }), /*#__PURE__*/React__default["default"].createElement("p", {
22500
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
22376
22501
  "class": "m-0 p-0"
22377
22502
  }, "\u0639")), langdetect == 'en' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
22378
22503
  "class": "".concat(header_cssstyles.languagecontainer) + ' allcentered mx-4 ',
22379
22504
  onClick: function onClick() {
22380
22505
  setlang('ar');
22381
22506
  }
22382
- }, /*#__PURE__*/React__default["default"].createElement("img", {
22383
- src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
22384
- style: {
22385
- maxWidth: '2vh',
22386
- maxHeight: '2vh'
22387
- }
22388
- }), /*#__PURE__*/React__default["default"].createElement("div", {
22389
- style: {
22390
- height: '20px',
22391
- width: '1.5px',
22392
- background: '#e6e6e6'
22393
- },
22394
- "class": "ml-2 mr-2"
22395
- }), /*#__PURE__*/React__default["default"].createElement("p", {
22507
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
22396
22508
  "class": "m-0 p-0"
22397
22509
  }, "En")), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
22398
22510
  "class": "allcentered"
package/dist/index.esm.js CHANGED
@@ -2421,8 +2421,11 @@ var Product_itemtype = function Product_itemtype(props) {
2421
2421
  style: {
2422
2422
  minHeight: sectionproperties.height + 'vh'
2423
2423
  }
2424
- }, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
2425
- "class": "w-100 scrollhorizontalwithscrollbar scrollhorizontalwithscrollbarremove"
2424
+ }, sectionproperties.gallerystyle == 'Style 2' &&
2425
+ /*#__PURE__*/
2426
+ // scrollhorizontalwithscrollbarremove
2427
+ React.createElement("div", {
2428
+ "class": "w-100 scrollhorizontalwithscrollbar "
2426
2429
  }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productimages) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productimages.map(function (item, index) {
2427
2430
  return /*#__PURE__*/React.createElement("div", {
2428
2431
  "class": ' scrollhorizontalcard mx-2 ',
@@ -3115,7 +3118,8 @@ var Product_itemtype = function Product_itemtype(props) {
3115
3118
  }, /*#__PURE__*/React.createElement("p", {
3116
3119
  className: 'm-0 p-0 wordbreak',
3117
3120
  style: {
3118
- textAlign: langdetect == 'en' ? 'left' : 'right'
3121
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3122
+ color: sectionproperties.prodCatColor
3119
3123
  },
3120
3124
  dangerouslySetInnerHTML: {
3121
3125
  __html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.short_description_ar
@@ -3363,7 +3367,7 @@ var Product_itemtype = function Product_itemtype(props) {
3363
3367
  function ownKeys$2s(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; }
3364
3368
  function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3365
3369
  var Serviceinfotabs = function Serviceinfotabs(props) {
3366
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
3370
+ var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
3367
3371
  var langdetect = props.actions.langdetect;
3368
3372
  var lang = props.actions.lang;
3369
3373
  var sectionproperties = props.actions.sectionproperties;
@@ -3537,11 +3541,148 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3537
3541
  }
3538
3542
  })
3539
3543
  };
3544
+ function getLastChoosedSlotIndex(slots) {
3545
+ var lastChoosedIndex = -1; // Initialize with -1 indicating no slot is choosed
3546
+ for (var i = 0; i < slots.length; i++) {
3547
+ if (slots[i].ischoosed) {
3548
+ lastChoosedIndex = i;
3549
+ }
3550
+ }
3551
+ return lastChoosedIndex;
3552
+ }
3553
+ var chooseitemslot = function chooseitemslot(slot, index) {
3554
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
3555
+ var reservedslottobetaken = null;
3556
+ var reservedslotArrtobetaken = [];
3557
+ var slotschooosedcounter_tobe_usedonly_in_merge = 0;
3558
+ var is_multi_slots = false;
3559
+ var is_slots_must_be_adjacent = false;
3560
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.is_slots_adjacent) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.is_slots_adjacent) == 1) {
3561
+ is_slots_must_be_adjacent = true;
3562
+ }
3563
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.is_slots_multi) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.is_slots_multi) == 1) {
3564
+ is_multi_slots = true;
3565
+ }
3566
+ var tempslots = _toConsumableArray(slots);
3567
+ if (is_multi_slots == false) {
3568
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3569
+ item.ischoosed = false;
3570
+ });
3571
+ }
3572
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3573
+ if (item.ischoosed == true) {
3574
+ slotschooosedcounter_tobe_usedonly_in_merge = slotschooosedcounter_tobe_usedonly_in_merge + 1;
3575
+ }
3576
+ });
3577
+ if (is_slots_must_be_adjacent == false) {
3578
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3579
+ if (tempslots[index].ischoosed == true) {
3580
+ tempslots[index].ischoosed = false;
3581
+ } else {
3582
+ tempslots[index].ischoosed = true;
3583
+ }
3584
+ } else {
3585
+ tempslots[index].ischoosed = true;
3586
+ }
3587
+ } else if (is_slots_must_be_adjacent == true) {
3588
+ var _tempslots$index;
3589
+ // Check if the selected slot is beside the previously selected slots
3590
+ if (slotschooosedcounter_tobe_usedonly_in_merge == 0) {
3591
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3592
+ if (tempslots[index].ischoosed == true) {
3593
+ tempslots[index].ischoosed = false;
3594
+ } else {
3595
+ tempslots[index].ischoosed = true;
3596
+ }
3597
+ } else {
3598
+ tempslots[index].ischoosed = true;
3599
+ }
3600
+ } else if (slotschooosedcounter_tobe_usedonly_in_merge == 1 && ((_tempslots$index = tempslots[index]) === null || _tempslots$index === void 0 ? void 0 : _tempslots$index.ischoosed) == true) {
3601
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3602
+ if (tempslots[index].ischoosed == true) {
3603
+ tempslots[index].ischoosed = false;
3604
+ }
3605
+ }
3606
+ } else if (index > 0 && tempslots[index - 1].ischoosed) {
3607
+ // The selected slot is beside the previous slot, mark it as chosen
3608
+ if (tempslots[index].ischoosed == true) {
3609
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3610
+ // if (lastSelectedIndex === index) {
3611
+ tempslots[lastSelectedIndex].ischoosed = false;
3612
+ // }
3613
+ } else {
3614
+ tempslots[index].ischoosed = true;
3615
+ }
3616
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3617
+ } else if (index < tempslots.length - 1 && tempslots[index + 1].ischoosed) {
3618
+ // The selected slot is beside the next slot, mark it as chosen
3619
+ if (tempslots[index].ischoosed == true) {
3620
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3621
+ // if (lastSelectedIndex === index) {
3622
+ tempslots[lastSelectedIndex].ischoosed = false;
3623
+ // }
3624
+ } else {
3625
+ tempslots[index].ischoosed = true;
3626
+ }
3627
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3628
+ } else {
3629
+ // The selected slot is not beside the previously selected slots
3630
+ // Handle this case according to your requirements (e.g., show an error message)
3631
+ NotificationManager.warning('', 'You can only choose slots beside each other.');
3632
+ }
3633
+ }
3634
+ setslots(_toConsumableArray(tempslots));
3635
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3636
+ if (item.ischoosed == true) {
3637
+ reservedslotArrtobetaken.push({
3638
+ slot: item.slot
3639
+ });
3640
+ }
3641
+ });
3642
+ if (reservedslotArrtobetaken.length != 0) {
3643
+ reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3644
+ setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3645
+ time: reservedslottobetaken,
3646
+ reserved_slots: reservedslotArrtobetaken,
3647
+ quantity: parseInt(reservedslotArrtobetaken.length)
3648
+ }));
3649
+ } else {
3650
+ NotificationManager.warning('', 'No Slots Reserved');
3651
+ }
3652
+ };
3653
+ // const chooseitemslot = (slot, index) => {
3654
+ // var reservedslottobetaken = null;
3655
+ // var reservedslotArrtobetaken = [];
3656
+ // var tempslots = [...slots];
3657
+ // if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3658
+ // if (tempslots[index].ischoosed == true) {
3659
+ // tempslots[index].ischoosed = false;
3660
+ // } else {
3661
+ // tempslots[index].ischoosed = true;
3662
+ // }
3663
+ // } else {
3664
+ // tempslots[index].ischoosed = true;
3665
+ // }
3666
+
3667
+ // setslots([...tempslots]);
3668
+ // tempslots?.forEach(function (item, index) {
3669
+ // if (item.ischoosed == true) {
3670
+ // reservedslotArrtobetaken.push({ slot: item.slot });
3671
+ // }
3672
+ // });
3673
+
3674
+ // if (reservedslotArrtobetaken.length != 0) {
3675
+ // reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3676
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: reservedslottobetaken, reserved_slots: reservedslotArrtobetaken, quantity: parseInt(reservedslotArrtobetaken.length) });
3677
+ // } else {
3678
+ // NotificationManager.warning('', 'No Slots Reserved');
3679
+ // }
3680
+ // };
3540
3681
  return /*#__PURE__*/React.createElement("div", {
3541
- className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3682
+ className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3542
3683
  }, /*#__PURE__*/React.createElement("div", {
3543
3684
  "class": "row m-0 w-100"
3544
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3685
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3545
3686
  "class": "row m-0 w-100"
3546
3687
  }, /*#__PURE__*/React.createElement("div", {
3547
3688
  "class": "col-lg-6 col-md-12 col-sm-12 mb-2 pl-1 pr-1"
@@ -3556,8 +3697,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3556
3697
  }, /*#__PURE__*/React.createElement("input", {
3557
3698
  type: "date",
3558
3699
  "class": TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 ',
3559
- min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.reservationstarts,
3560
- max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.reservationends,
3700
+ min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
3701
+ max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
3561
3702
  onChange: function onChange(event) {
3562
3703
  setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3563
3704
  from: event.target.value
@@ -3583,7 +3724,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3583
3724
  to: event.target.value
3584
3725
  }));
3585
3726
  }
3586
- }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3727
+ }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.serviceinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.scheduletype) == 'minutes' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3587
3728
  "class": "col-lg-12 col-md-12 col-sm-12 mb-2"
3588
3729
  }, /*#__PURE__*/React.createElement("div", {
3589
3730
  "class": "row m-0 w-100"
@@ -3630,7 +3771,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3630
3771
  "class": "w-100"
3631
3772
  }, slots.map(function (item, index) {
3632
3773
  var ischoosed = false;
3633
- if (item.slot == addtocardpayloadobj.time) {
3774
+ if (item.ischoosed) {
3634
3775
  ischoosed = true;
3635
3776
  }
3636
3777
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -3650,9 +3791,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3650
3791
  color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
3651
3792
  },
3652
3793
  onClick: function onClick() {
3653
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3654
- time: item.slot
3655
- }));
3794
+ chooseitemslot(item.slot, index);
3795
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
3656
3796
  }
3657
3797
  }, ischoosed == false && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), ischoosed == true && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_bookedcontent : sectionproperties.generalbtn_bookedcontent_ar))), /*#__PURE__*/React.createElement("div", {
3658
3798
  "class": "col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-sm-center"
@@ -3693,7 +3833,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3693
3833
  }, slots.map(function (item, index) {
3694
3834
  var _slot, _slot2;
3695
3835
  var ischoosed = false;
3696
- if (item.slot == addtocardpayloadobj.time) {
3836
+ if (item.ischoosed) {
3697
3837
  ischoosed = true;
3698
3838
  }
3699
3839
  var slot = item.slot;
@@ -3733,9 +3873,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3733
3873
  "class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
3734
3874
  style: {},
3735
3875
  onClick: function onClick() {
3736
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3737
- time: item.slot
3738
- }));
3876
+ chooseitemslot(item.slot, index);
3739
3877
  }
3740
3878
  }, /*#__PURE__*/React.createElement("p", {
3741
3879
  "class": ' p-0 m-0 '
@@ -3764,7 +3902,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3764
3902
  className: "col-lg-12 p-0 mb-3"
3765
3903
  }, /*#__PURE__*/React.createElement("div", {
3766
3904
  className: "row m-0 w-100"
3767
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3905
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.serviceinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3768
3906
  className: "col-lg-12 p-0"
3769
3907
  }, /*#__PURE__*/React.createElement("div", {
3770
3908
  className: "row m-0 w-100"
@@ -3828,15 +3966,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3828
3966
  }, /*#__PURE__*/React.createElement("button", {
3829
3967
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3830
3968
  onClick: function onClick() {
3831
- var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
3832
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.scheduletype) == 'days') {
3969
+ var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3970
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
3833
3971
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3834
3972
  addtocartfunc();
3835
3973
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
3836
3974
  // routingcountext(StaticPagesLinksContext.Checkout);
3837
3975
  // }
3838
3976
  }
3839
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.scheduletype) == 'minutes') {
3977
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
3840
3978
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3841
3979
  addtocartfunc();
3842
3980
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3869,7 +4007,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3869
4007
  size: sectionproperties.cartBtn_iconFontSize
3870
4008
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
3871
4009
  size: sectionproperties.cartBtn_iconFontSize
3872
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
4010
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
3873
4011
  className: ' d-flex align-items-center justify-content-center '
3874
4012
  }, /*#__PURE__*/React.createElement(CircularProgress, {
3875
4013
  color: "white",
@@ -3911,15 +4049,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3911
4049
  }, /*#__PURE__*/React.createElement("button", {
3912
4050
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
3913
4051
  onClick: function onClick() {
3914
- var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3915
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
4052
+ var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
4053
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
3916
4054
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3917
4055
  addtocartfunc();
3918
4056
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
3919
4057
  routingcountext(StaticPagesLinksContext.Checkout);
3920
4058
  }
3921
4059
  }
3922
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
4060
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
3923
4061
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3924
4062
  addtocartfunc();
3925
4063
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3952,7 +4090,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3952
4090
  size: sectionproperties.cartBtn_iconFontSize
3953
4091
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
3954
4092
  size: sectionproperties.cartBtn_iconFontSize
3955
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
4093
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
3956
4094
  className: ' d-flex align-items-center justify-content-center '
3957
4095
  }, /*#__PURE__*/React.createElement(CircularProgress, {
3958
4096
  color: "white",
@@ -3996,13 +4134,13 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3996
4134
  }, /*#__PURE__*/React.createElement("button", {
3997
4135
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3998
4136
  onClick: function onClick() {
3999
- var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
4000
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
4137
+ var _fetchProductInfoQuer19, _fetchProductInfoQuer20;
4138
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'days') {
4001
4139
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
4002
4140
  addtocartfunc();
4003
4141
  routingcountext(StaticPagesLinksContext.Checkout);
4004
4142
  }
4005
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
4143
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'minutes') {
4006
4144
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
4007
4145
  addtocartfunc();
4008
4146
  routingcountext(StaticPagesLinksContext.Checkout);
@@ -22310,40 +22448,14 @@ var ElegantHeader = function ElegantHeader(props) {
22310
22448
  onClick: function onClick() {
22311
22449
  setlang('en');
22312
22450
  }
22313
- }, /*#__PURE__*/React.createElement("img", {
22314
- src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
22315
- style: {
22316
- maxWidth: '2vh',
22317
- maxHeight: '2vh'
22318
- }
22319
- }), /*#__PURE__*/React.createElement("div", {
22320
- style: {
22321
- height: '20px',
22322
- width: '1.5px',
22323
- background: '#e6e6e6'
22324
- },
22325
- "class": "ml-2 mr-2"
22326
- }), /*#__PURE__*/React.createElement("p", {
22451
+ }, /*#__PURE__*/React.createElement("p", {
22327
22452
  "class": "m-0 p-0"
22328
22453
  }, "\u0639")), langdetect == 'en' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
22329
22454
  "class": "".concat(header_cssstyles.languagecontainer) + ' allcentered mx-4 ',
22330
22455
  onClick: function onClick() {
22331
22456
  setlang('ar');
22332
22457
  }
22333
- }, /*#__PURE__*/React.createElement("img", {
22334
- src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
22335
- style: {
22336
- maxWidth: '2vh',
22337
- maxHeight: '2vh'
22338
- }
22339
- }), /*#__PURE__*/React.createElement("div", {
22340
- style: {
22341
- height: '20px',
22342
- width: '1.5px',
22343
- background: '#e6e6e6'
22344
- },
22345
- "class": "ml-2 mr-2"
22346
- }), /*#__PURE__*/React.createElement("p", {
22458
+ }, /*#__PURE__*/React.createElement("p", {
22347
22459
  "class": "m-0 p-0"
22348
22460
  }, "En")), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
22349
22461
  "class": "allcentered"
package/dist/index.umd.js CHANGED
@@ -2296,8 +2296,11 @@
2296
2296
  style: {
2297
2297
  minHeight: sectionproperties.height + 'vh'
2298
2298
  }
2299
- }, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
2300
- "class": "w-100 scrollhorizontalwithscrollbar scrollhorizontalwithscrollbarremove"
2299
+ }, sectionproperties.gallerystyle == 'Style 2' &&
2300
+ /*#__PURE__*/
2301
+ // scrollhorizontalwithscrollbarremove
2302
+ React__default["default"].createElement("div", {
2303
+ "class": "w-100 scrollhorizontalwithscrollbar "
2301
2304
  }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productimages) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productimages.map(function (item, index) {
2302
2305
  return /*#__PURE__*/React__default["default"].createElement("div", {
2303
2306
  "class": ' scrollhorizontalcard mx-2 ',
@@ -2990,7 +2993,8 @@
2990
2993
  }, /*#__PURE__*/React__default["default"].createElement("p", {
2991
2994
  className: 'm-0 p-0 wordbreak',
2992
2995
  style: {
2993
- textAlign: langdetect == 'en' ? 'left' : 'right'
2996
+ textAlign: langdetect == 'en' ? 'left' : 'right',
2997
+ color: sectionproperties.prodCatColor
2994
2998
  },
2995
2999
  dangerouslySetInnerHTML: {
2996
3000
  __html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.short_description_ar
@@ -3238,7 +3242,7 @@
3238
3242
  function ownKeys$2s(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; }
3239
3243
  function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3240
3244
  var Serviceinfotabs = function Serviceinfotabs(props) {
3241
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
3245
+ var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
3242
3246
  var langdetect = props.actions.langdetect;
3243
3247
  var lang = props.actions.lang;
3244
3248
  var sectionproperties = props.actions.sectionproperties;
@@ -3412,11 +3416,148 @@
3412
3416
  }
3413
3417
  })
3414
3418
  };
3419
+ function getLastChoosedSlotIndex(slots) {
3420
+ var lastChoosedIndex = -1; // Initialize with -1 indicating no slot is choosed
3421
+ for (var i = 0; i < slots.length; i++) {
3422
+ if (slots[i].ischoosed) {
3423
+ lastChoosedIndex = i;
3424
+ }
3425
+ }
3426
+ return lastChoosedIndex;
3427
+ }
3428
+ var chooseitemslot = function chooseitemslot(slot, index) {
3429
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
3430
+ var reservedslottobetaken = null;
3431
+ var reservedslotArrtobetaken = [];
3432
+ var slotschooosedcounter_tobe_usedonly_in_merge = 0;
3433
+ var is_multi_slots = false;
3434
+ var is_slots_must_be_adjacent = false;
3435
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.is_slots_adjacent) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.is_slots_adjacent) == 1) {
3436
+ is_slots_must_be_adjacent = true;
3437
+ }
3438
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.is_slots_multi) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.is_slots_multi) == 1) {
3439
+ is_multi_slots = true;
3440
+ }
3441
+ var tempslots = _toConsumableArray__default["default"](slots);
3442
+ if (is_multi_slots == false) {
3443
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3444
+ item.ischoosed = false;
3445
+ });
3446
+ }
3447
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3448
+ if (item.ischoosed == true) {
3449
+ slotschooosedcounter_tobe_usedonly_in_merge = slotschooosedcounter_tobe_usedonly_in_merge + 1;
3450
+ }
3451
+ });
3452
+ if (is_slots_must_be_adjacent == false) {
3453
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3454
+ if (tempslots[index].ischoosed == true) {
3455
+ tempslots[index].ischoosed = false;
3456
+ } else {
3457
+ tempslots[index].ischoosed = true;
3458
+ }
3459
+ } else {
3460
+ tempslots[index].ischoosed = true;
3461
+ }
3462
+ } else if (is_slots_must_be_adjacent == true) {
3463
+ var _tempslots$index;
3464
+ // Check if the selected slot is beside the previously selected slots
3465
+ if (slotschooosedcounter_tobe_usedonly_in_merge == 0) {
3466
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3467
+ if (tempslots[index].ischoosed == true) {
3468
+ tempslots[index].ischoosed = false;
3469
+ } else {
3470
+ tempslots[index].ischoosed = true;
3471
+ }
3472
+ } else {
3473
+ tempslots[index].ischoosed = true;
3474
+ }
3475
+ } else if (slotschooosedcounter_tobe_usedonly_in_merge == 1 && ((_tempslots$index = tempslots[index]) === null || _tempslots$index === void 0 ? void 0 : _tempslots$index.ischoosed) == true) {
3476
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3477
+ if (tempslots[index].ischoosed == true) {
3478
+ tempslots[index].ischoosed = false;
3479
+ }
3480
+ }
3481
+ } else if (index > 0 && tempslots[index - 1].ischoosed) {
3482
+ // The selected slot is beside the previous slot, mark it as chosen
3483
+ if (tempslots[index].ischoosed == true) {
3484
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3485
+ // if (lastSelectedIndex === index) {
3486
+ tempslots[lastSelectedIndex].ischoosed = false;
3487
+ // }
3488
+ } else {
3489
+ tempslots[index].ischoosed = true;
3490
+ }
3491
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3492
+ } else if (index < tempslots.length - 1 && tempslots[index + 1].ischoosed) {
3493
+ // The selected slot is beside the next slot, mark it as chosen
3494
+ if (tempslots[index].ischoosed == true) {
3495
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3496
+ // if (lastSelectedIndex === index) {
3497
+ tempslots[lastSelectedIndex].ischoosed = false;
3498
+ // }
3499
+ } else {
3500
+ tempslots[index].ischoosed = true;
3501
+ }
3502
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3503
+ } else {
3504
+ // The selected slot is not beside the previously selected slots
3505
+ // Handle this case according to your requirements (e.g., show an error message)
3506
+ NotificationManager.warning('', 'You can only choose slots beside each other.');
3507
+ }
3508
+ }
3509
+ setslots(_toConsumableArray__default["default"](tempslots));
3510
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3511
+ if (item.ischoosed == true) {
3512
+ reservedslotArrtobetaken.push({
3513
+ slot: item.slot
3514
+ });
3515
+ }
3516
+ });
3517
+ if (reservedslotArrtobetaken.length != 0) {
3518
+ reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3519
+ setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3520
+ time: reservedslottobetaken,
3521
+ reserved_slots: reservedslotArrtobetaken,
3522
+ quantity: parseInt(reservedslotArrtobetaken.length)
3523
+ }));
3524
+ } else {
3525
+ NotificationManager.warning('', 'No Slots Reserved');
3526
+ }
3527
+ };
3528
+ // const chooseitemslot = (slot, index) => {
3529
+ // var reservedslottobetaken = null;
3530
+ // var reservedslotArrtobetaken = [];
3531
+ // var tempslots = [...slots];
3532
+ // if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3533
+ // if (tempslots[index].ischoosed == true) {
3534
+ // tempslots[index].ischoosed = false;
3535
+ // } else {
3536
+ // tempslots[index].ischoosed = true;
3537
+ // }
3538
+ // } else {
3539
+ // tempslots[index].ischoosed = true;
3540
+ // }
3541
+
3542
+ // setslots([...tempslots]);
3543
+ // tempslots?.forEach(function (item, index) {
3544
+ // if (item.ischoosed == true) {
3545
+ // reservedslotArrtobetaken.push({ slot: item.slot });
3546
+ // }
3547
+ // });
3548
+
3549
+ // if (reservedslotArrtobetaken.length != 0) {
3550
+ // reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3551
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: reservedslottobetaken, reserved_slots: reservedslotArrtobetaken, quantity: parseInt(reservedslotArrtobetaken.length) });
3552
+ // } else {
3553
+ // NotificationManager.warning('', 'No Slots Reserved');
3554
+ // }
3555
+ // };
3415
3556
  return /*#__PURE__*/React__default["default"].createElement("div", {
3416
- className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3557
+ className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3417
3558
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3418
3559
  "class": "row m-0 w-100"
3419
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3560
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3420
3561
  "class": "row m-0 w-100"
3421
3562
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3422
3563
  "class": "col-lg-6 col-md-12 col-sm-12 mb-2 pl-1 pr-1"
@@ -3431,8 +3572,8 @@
3431
3572
  }, /*#__PURE__*/React__default["default"].createElement("input", {
3432
3573
  type: "date",
3433
3574
  "class": TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 ',
3434
- min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.reservationstarts,
3435
- max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.reservationends,
3575
+ min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
3576
+ max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
3436
3577
  onChange: function onChange(event) {
3437
3578
  setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3438
3579
  from: event.target.value
@@ -3458,7 +3599,7 @@
3458
3599
  to: event.target.value
3459
3600
  }));
3460
3601
  }
3461
- }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3602
+ }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.serviceinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.scheduletype) == 'minutes' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3462
3603
  "class": "col-lg-12 col-md-12 col-sm-12 mb-2"
3463
3604
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3464
3605
  "class": "row m-0 w-100"
@@ -3505,7 +3646,7 @@
3505
3646
  "class": "w-100"
3506
3647
  }, slots.map(function (item, index) {
3507
3648
  var ischoosed = false;
3508
- if (item.slot == addtocardpayloadobj.time) {
3649
+ if (item.ischoosed) {
3509
3650
  ischoosed = true;
3510
3651
  }
3511
3652
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3525,9 +3666,8 @@
3525
3666
  color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
3526
3667
  },
3527
3668
  onClick: function onClick() {
3528
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3529
- time: item.slot
3530
- }));
3669
+ chooseitemslot(item.slot, index);
3670
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
3531
3671
  }
3532
3672
  }, ischoosed == false && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), ischoosed == true && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_bookedcontent : sectionproperties.generalbtn_bookedcontent_ar))), /*#__PURE__*/React__default["default"].createElement("div", {
3533
3673
  "class": "col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-sm-center"
@@ -3568,7 +3708,7 @@
3568
3708
  }, slots.map(function (item, index) {
3569
3709
  var _slot, _slot2;
3570
3710
  var ischoosed = false;
3571
- if (item.slot == addtocardpayloadobj.time) {
3711
+ if (item.ischoosed) {
3572
3712
  ischoosed = true;
3573
3713
  }
3574
3714
  var slot = item.slot;
@@ -3608,9 +3748,7 @@
3608
3748
  "class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
3609
3749
  style: {},
3610
3750
  onClick: function onClick() {
3611
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3612
- time: item.slot
3613
- }));
3751
+ chooseitemslot(item.slot, index);
3614
3752
  }
3615
3753
  }, /*#__PURE__*/React__default["default"].createElement("p", {
3616
3754
  "class": ' p-0 m-0 '
@@ -3639,7 +3777,7 @@
3639
3777
  className: "col-lg-12 p-0 mb-3"
3640
3778
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3641
3779
  className: "row m-0 w-100"
3642
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3780
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.serviceinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
3643
3781
  className: "col-lg-12 p-0"
3644
3782
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3645
3783
  className: "row m-0 w-100"
@@ -3703,15 +3841,15 @@
3703
3841
  }, /*#__PURE__*/React__default["default"].createElement("button", {
3704
3842
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3705
3843
  onClick: function onClick() {
3706
- var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
3707
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.scheduletype) == 'days') {
3844
+ var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3845
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
3708
3846
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3709
3847
  addtocartfunc();
3710
3848
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
3711
3849
  // routingcountext(StaticPagesLinksContext.Checkout);
3712
3850
  // }
3713
3851
  }
3714
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.scheduletype) == 'minutes') {
3852
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
3715
3853
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3716
3854
  addtocartfunc();
3717
3855
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3744,7 +3882,7 @@
3744
3882
  size: sectionproperties.cartBtn_iconFontSize
3745
3883
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
3746
3884
  size: sectionproperties.cartBtn_iconFontSize
3747
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3885
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3748
3886
  className: ' d-flex align-items-center justify-content-center '
3749
3887
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3750
3888
  color: "white",
@@ -3786,15 +3924,15 @@
3786
3924
  }, /*#__PURE__*/React__default["default"].createElement("button", {
3787
3925
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
3788
3926
  onClick: function onClick() {
3789
- var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3790
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
3927
+ var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
3928
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
3791
3929
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3792
3930
  addtocartfunc();
3793
3931
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
3794
3932
  routingcountext(StaticPagesLinksContext.Checkout);
3795
3933
  }
3796
3934
  }
3797
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
3935
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
3798
3936
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3799
3937
  addtocartfunc();
3800
3938
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3827,7 +3965,7 @@
3827
3965
  size: sectionproperties.cartBtn_iconFontSize
3828
3966
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
3829
3967
  size: sectionproperties.cartBtn_iconFontSize
3830
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3968
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3831
3969
  className: ' d-flex align-items-center justify-content-center '
3832
3970
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3833
3971
  color: "white",
@@ -3871,13 +4009,13 @@
3871
4009
  }, /*#__PURE__*/React__default["default"].createElement("button", {
3872
4010
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3873
4011
  onClick: function onClick() {
3874
- var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
3875
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
4012
+ var _fetchProductInfoQuer19, _fetchProductInfoQuer20;
4013
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'days') {
3876
4014
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3877
4015
  addtocartfunc();
3878
4016
  routingcountext(StaticPagesLinksContext.Checkout);
3879
4017
  }
3880
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
4018
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'minutes') {
3881
4019
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3882
4020
  addtocartfunc();
3883
4021
  routingcountext(StaticPagesLinksContext.Checkout);
@@ -22185,40 +22323,14 @@
22185
22323
  onClick: function onClick() {
22186
22324
  setlang('en');
22187
22325
  }
22188
- }, /*#__PURE__*/React__default["default"].createElement("img", {
22189
- src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
22190
- style: {
22191
- maxWidth: '2vh',
22192
- maxHeight: '2vh'
22193
- }
22194
- }), /*#__PURE__*/React__default["default"].createElement("div", {
22195
- style: {
22196
- height: '20px',
22197
- width: '1.5px',
22198
- background: '#e6e6e6'
22199
- },
22200
- "class": "ml-2 mr-2"
22201
- }), /*#__PURE__*/React__default["default"].createElement("p", {
22326
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
22202
22327
  "class": "m-0 p-0"
22203
22328
  }, "\u0639")), langdetect == 'en' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
22204
22329
  "class": "".concat(header_cssstyles.languagecontainer) + ' allcentered mx-4 ',
22205
22330
  onClick: function onClick() {
22206
22331
  setlang('ar');
22207
22332
  }
22208
- }, /*#__PURE__*/React__default["default"].createElement("img", {
22209
- src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
22210
- style: {
22211
- maxWidth: '2vh',
22212
- maxHeight: '2vh'
22213
- }
22214
- }), /*#__PURE__*/React__default["default"].createElement("div", {
22215
- style: {
22216
- height: '20px',
22217
- width: '1.5px',
22218
- background: '#e6e6e6'
22219
- },
22220
- "class": "ml-2 mr-2"
22221
- }), /*#__PURE__*/React__default["default"].createElement("p", {
22333
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
22222
22334
  "class": "m-0 p-0"
22223
22335
  }, "En")), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
22224
22336
  "class": "allcentered"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.434",
3
+ "version": "0.0.435",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {