tabexseriescomponents 0.2.809 → 0.2.811
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 +147 -8
- package/dist/index.esm.js +145 -6
- package/dist/index.umd.js +149 -10
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -48,6 +48,8 @@ var HiOutlinePlusCircle = require('@react-icons/all-files/hi/HiOutlinePlusCircle
|
|
|
48
48
|
require('@react-icons/all-files/hi/HiOutlineMinusCircle');
|
|
49
49
|
var TextareaAutosize = require('react-textarea-autosize');
|
|
50
50
|
require('@mui/system');
|
|
51
|
+
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
52
|
+
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
51
53
|
var AiOutlineClockCircle = require('@react-icons/all-files/ai/AiOutlineClockCircle');
|
|
52
54
|
var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
|
|
53
55
|
var AiOutlineCheck = require('@react-icons/all-files/ai/AiOutlineCheck');
|
|
@@ -68,8 +70,6 @@ var HiOutlineChevronLeft = require('@react-icons/all-files/hi/HiOutlineChevronLe
|
|
|
68
70
|
var GoGlobe = require('@react-icons/all-files/go/GoGlobe');
|
|
69
71
|
var VscGlobe = require('@react-icons/all-files/vsc/VscGlobe');
|
|
70
72
|
var Dropdown = require('react-bootstrap/Dropdown');
|
|
71
|
-
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
72
|
-
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
73
73
|
var HiUser = require('@react-icons/all-files/hi/HiUser');
|
|
74
74
|
var GrMail = require('@react-icons/all-files/gr/GrMail');
|
|
75
75
|
var FiCheckCircle = require('@react-icons/all-files/fi/FiCheckCircle');
|
|
@@ -208,11 +208,11 @@ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
|
208
208
|
var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
|
|
209
209
|
var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
|
|
210
210
|
var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
|
|
211
|
+
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
212
|
+
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
211
213
|
var DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(DatePicker);
|
|
212
214
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
213
215
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
214
|
-
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
215
|
-
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
216
216
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
|
|
217
217
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
218
218
|
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
@@ -4700,6 +4700,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4700
4700
|
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
4701
4701
|
};
|
|
4702
4702
|
|
|
4703
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
4704
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
4705
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4703
4706
|
function ownKeys$2z(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; }
|
|
4704
4707
|
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4705
4708
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
@@ -5027,6 +5030,110 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5027
5030
|
NotificationManager.warning('', 'No Slots Reserved');
|
|
5028
5031
|
}
|
|
5029
5032
|
};
|
|
5033
|
+
var _useState13 = React.useState(null),
|
|
5034
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
5035
|
+
startDate = _useState14[0],
|
|
5036
|
+
setStartDate = _useState14[1];
|
|
5037
|
+
|
|
5038
|
+
// Function to fetch slots for a given date
|
|
5039
|
+
var fetchSlotsForDate = /*#__PURE__*/function () {
|
|
5040
|
+
var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(dateString) {
|
|
5041
|
+
var response;
|
|
5042
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
5043
|
+
while (1) switch (_context.prev = _context.next) {
|
|
5044
|
+
case 0:
|
|
5045
|
+
_context.next = 2;
|
|
5046
|
+
return GeneralAPIMutationContext.mutateAsync({
|
|
5047
|
+
endpointurl: '/fetchserviceslots',
|
|
5048
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
5049
|
+
reqdate: dateString
|
|
5050
|
+
});
|
|
5051
|
+
case 2:
|
|
5052
|
+
response = _context.sent;
|
|
5053
|
+
return _context.abrupt("return", response.data.slots);
|
|
5054
|
+
case 4:
|
|
5055
|
+
case "end":
|
|
5056
|
+
return _context.stop();
|
|
5057
|
+
}
|
|
5058
|
+
}, _callee);
|
|
5059
|
+
}));
|
|
5060
|
+
return function fetchSlotsForDate(_x) {
|
|
5061
|
+
return _ref.apply(this, arguments);
|
|
5062
|
+
};
|
|
5063
|
+
}();
|
|
5064
|
+
// Function to generate dates between start and end
|
|
5065
|
+
var generateDatesBetween = function generateDatesBetween(start, end) {
|
|
5066
|
+
var dates = [];
|
|
5067
|
+
var current = new Date(start);
|
|
5068
|
+
var endDate = new Date(end);
|
|
5069
|
+
while (current <= endDate) {
|
|
5070
|
+
dates.push(new Date(current));
|
|
5071
|
+
current.setDate(current.getDate() + 1); // Move to next day
|
|
5072
|
+
}
|
|
5073
|
+
return dates;
|
|
5074
|
+
};
|
|
5075
|
+
React.useEffect(function () {
|
|
5076
|
+
var checkSlots = /*#__PURE__*/function () {
|
|
5077
|
+
var _ref2 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
|
|
5078
|
+
var allDates, excluded, _iterator, _step, date, dateString, _slots;
|
|
5079
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
5080
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
5081
|
+
case 0:
|
|
5082
|
+
allDates = generateDatesBetween(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts, fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends);
|
|
5083
|
+
excluded = [];
|
|
5084
|
+
_iterator = _createForOfIteratorHelper$1(allDates);
|
|
5085
|
+
_context2.prev = 3;
|
|
5086
|
+
_iterator.s();
|
|
5087
|
+
case 5:
|
|
5088
|
+
if ((_step = _iterator.n()).done) {
|
|
5089
|
+
_context2.next = 20;
|
|
5090
|
+
break;
|
|
5091
|
+
}
|
|
5092
|
+
date = _step.value;
|
|
5093
|
+
dateString = date.toISOString().split('T')[0]; // YYYY-MM-DD
|
|
5094
|
+
_context2.prev = 8;
|
|
5095
|
+
_context2.next = 11;
|
|
5096
|
+
return fetchSlotsForDate(dateString);
|
|
5097
|
+
case 11:
|
|
5098
|
+
_slots = _context2.sent;
|
|
5099
|
+
if (!_slots || _slots.length === 0) {
|
|
5100
|
+
excluded.push(new Date(date));
|
|
5101
|
+
}
|
|
5102
|
+
_context2.next = 18;
|
|
5103
|
+
break;
|
|
5104
|
+
case 15:
|
|
5105
|
+
_context2.prev = 15;
|
|
5106
|
+
_context2.t0 = _context2["catch"](8);
|
|
5107
|
+
console.error('Error fetching slots for date:', dateString, _context2.t0);
|
|
5108
|
+
case 18:
|
|
5109
|
+
_context2.next = 5;
|
|
5110
|
+
break;
|
|
5111
|
+
case 20:
|
|
5112
|
+
_context2.next = 25;
|
|
5113
|
+
break;
|
|
5114
|
+
case 22:
|
|
5115
|
+
_context2.prev = 22;
|
|
5116
|
+
_context2.t1 = _context2["catch"](3);
|
|
5117
|
+
_iterator.e(_context2.t1);
|
|
5118
|
+
case 25:
|
|
5119
|
+
_context2.prev = 25;
|
|
5120
|
+
_iterator.f();
|
|
5121
|
+
return _context2.finish(25);
|
|
5122
|
+
case 28:
|
|
5123
|
+
setExcludedDates(excluded);
|
|
5124
|
+
case 29:
|
|
5125
|
+
case "end":
|
|
5126
|
+
return _context2.stop();
|
|
5127
|
+
}
|
|
5128
|
+
}, _callee2, null, [[3, 22, 25, 28], [8, 15]]);
|
|
5129
|
+
}));
|
|
5130
|
+
return function checkSlots() {
|
|
5131
|
+
return _ref2.apply(this, arguments);
|
|
5132
|
+
};
|
|
5133
|
+
}();
|
|
5134
|
+
checkSlots();
|
|
5135
|
+
}, [fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts, fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends, fetchProductInfoQueryContext.data.data.productinfo.productid]);
|
|
5136
|
+
|
|
5030
5137
|
// const chooseitemslot = (slot, index) => {
|
|
5031
5138
|
// var reservedslottobetaken = null;
|
|
5032
5139
|
// var reservedslotArrtobetaken = [];
|
|
@@ -5124,7 +5231,33 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5124
5231
|
}
|
|
5125
5232
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5126
5233
|
"class": "w-100 px-2 h-100 allcentered"
|
|
5127
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
5234
|
+
}, /*#__PURE__*/React__default["default"].createElement(DatePicker__default["default"], {
|
|
5235
|
+
selected: startDate,
|
|
5236
|
+
onChange: function onChange(date) {
|
|
5237
|
+
setStartDate(date);
|
|
5238
|
+
setaddtocardpayloadobj(_objectSpread$2z(_objectSpread$2z({}, addtocardpayloadobj), {}, {
|
|
5239
|
+
date: startDate,
|
|
5240
|
+
time: '',
|
|
5241
|
+
reservedslotArrtobetaken: [],
|
|
5242
|
+
quantity: 1
|
|
5243
|
+
}));
|
|
5244
|
+
setcurrentmutatestate('/fetchserviceslots');
|
|
5245
|
+
GeneralAPIMutationContext.mutate({
|
|
5246
|
+
endpointurl: '/fetchserviceslots',
|
|
5247
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
5248
|
+
reqdate: startDate,
|
|
5249
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
5250
|
+
setslots(data.data.slots);
|
|
5251
|
+
}
|
|
5252
|
+
});
|
|
5253
|
+
},
|
|
5254
|
+
excludeDates: excludedDates,
|
|
5255
|
+
minDate: new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts),
|
|
5256
|
+
maxDate: new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends),
|
|
5257
|
+
placeholderText: "Select a date",
|
|
5258
|
+
dateFormat: "yyyy-MM-dd",
|
|
5259
|
+
className: "w-100"
|
|
5260
|
+
}), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
5128
5261
|
type: "date",
|
|
5129
5262
|
"class": ' w-100 allcentered pl-1 pr-1 ',
|
|
5130
5263
|
style: {
|
|
@@ -27531,11 +27664,17 @@ var ElegantHeader = function ElegantHeader(props) {
|
|
|
27531
27664
|
}))));
|
|
27532
27665
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27533
27666
|
"class": "col-lg-4 p-0 allcentered"
|
|
27534
|
-
}, sectionproperties.textslidertype == 'Slider' && /*#__PURE__*/React__default["default"].createElement("
|
|
27535
|
-
"class": "
|
|
27667
|
+
}, sectionproperties.textslidertype == 'Slider' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27668
|
+
"class": "rotating-text-container"
|
|
27669
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
27670
|
+
"class": "d-flex flex-row align-items-center rotating-text"
|
|
27536
27671
|
}, textarray.map(function (item, index) {
|
|
27537
27672
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
27538
|
-
"class": header_cssstyles.textSlider + ' mb-0 p-0 '
|
|
27673
|
+
"class": header_cssstyles.textSlider + ' mb-0 p-0 ',
|
|
27674
|
+
style: {
|
|
27675
|
+
marginLeft: 60,
|
|
27676
|
+
marginRight: 60
|
|
27677
|
+
}
|
|
27539
27678
|
}, langdetect == 'en' ? item.textEnglish : item.textArabic);
|
|
27540
27679
|
}))), sectionproperties.textslidertype == 'Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27541
27680
|
"class": "w-100 allcentered"
|
package/dist/index.esm.js
CHANGED
|
@@ -46,6 +46,8 @@ import { HiOutlinePlusCircle } from '@react-icons/all-files/hi/HiOutlinePlusCirc
|
|
|
46
46
|
import '@react-icons/all-files/hi/HiOutlineMinusCircle';
|
|
47
47
|
import TextareaAutosize from 'react-textarea-autosize';
|
|
48
48
|
import '@mui/system';
|
|
49
|
+
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
50
|
+
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
49
51
|
import { AiOutlineClockCircle } from '@react-icons/all-files/ai/AiOutlineClockCircle';
|
|
50
52
|
import { AiOutlinePlus } from '@react-icons/all-files/ai/AiOutlinePlus';
|
|
51
53
|
import { AiOutlineCheck } from '@react-icons/all-files/ai/AiOutlineCheck';
|
|
@@ -66,8 +68,6 @@ import { HiOutlineChevronLeft } from '@react-icons/all-files/hi/HiOutlineChevron
|
|
|
66
68
|
import { GoGlobe } from '@react-icons/all-files/go/GoGlobe';
|
|
67
69
|
import { VscGlobe } from '@react-icons/all-files/vsc/VscGlobe';
|
|
68
70
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
69
|
-
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
70
|
-
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
71
71
|
import { HiUser } from '@react-icons/all-files/hi/HiUser';
|
|
72
72
|
import { GrMail } from '@react-icons/all-files/gr/GrMail';
|
|
73
73
|
import { FiCheckCircle } from '@react-icons/all-files/fi/FiCheckCircle';
|
|
@@ -4652,6 +4652,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4652
4652
|
}))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
4653
4653
|
};
|
|
4654
4654
|
|
|
4655
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
4656
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
4657
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4655
4658
|
function ownKeys$2z(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; }
|
|
4656
4659
|
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4657
4660
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
@@ -4979,6 +4982,110 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
4979
4982
|
NotificationManager.warning('', 'No Slots Reserved');
|
|
4980
4983
|
}
|
|
4981
4984
|
};
|
|
4985
|
+
var _useState13 = useState(null),
|
|
4986
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
4987
|
+
startDate = _useState14[0],
|
|
4988
|
+
setStartDate = _useState14[1];
|
|
4989
|
+
|
|
4990
|
+
// Function to fetch slots for a given date
|
|
4991
|
+
var fetchSlotsForDate = /*#__PURE__*/function () {
|
|
4992
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(dateString) {
|
|
4993
|
+
var response;
|
|
4994
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4995
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4996
|
+
case 0:
|
|
4997
|
+
_context.next = 2;
|
|
4998
|
+
return GeneralAPIMutationContext.mutateAsync({
|
|
4999
|
+
endpointurl: '/fetchserviceslots',
|
|
5000
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
5001
|
+
reqdate: dateString
|
|
5002
|
+
});
|
|
5003
|
+
case 2:
|
|
5004
|
+
response = _context.sent;
|
|
5005
|
+
return _context.abrupt("return", response.data.slots);
|
|
5006
|
+
case 4:
|
|
5007
|
+
case "end":
|
|
5008
|
+
return _context.stop();
|
|
5009
|
+
}
|
|
5010
|
+
}, _callee);
|
|
5011
|
+
}));
|
|
5012
|
+
return function fetchSlotsForDate(_x) {
|
|
5013
|
+
return _ref.apply(this, arguments);
|
|
5014
|
+
};
|
|
5015
|
+
}();
|
|
5016
|
+
// Function to generate dates between start and end
|
|
5017
|
+
var generateDatesBetween = function generateDatesBetween(start, end) {
|
|
5018
|
+
var dates = [];
|
|
5019
|
+
var current = new Date(start);
|
|
5020
|
+
var endDate = new Date(end);
|
|
5021
|
+
while (current <= endDate) {
|
|
5022
|
+
dates.push(new Date(current));
|
|
5023
|
+
current.setDate(current.getDate() + 1); // Move to next day
|
|
5024
|
+
}
|
|
5025
|
+
return dates;
|
|
5026
|
+
};
|
|
5027
|
+
useEffect(function () {
|
|
5028
|
+
var checkSlots = /*#__PURE__*/function () {
|
|
5029
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
5030
|
+
var allDates, excluded, _iterator, _step, date, dateString, _slots;
|
|
5031
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
5032
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
5033
|
+
case 0:
|
|
5034
|
+
allDates = generateDatesBetween(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts, fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends);
|
|
5035
|
+
excluded = [];
|
|
5036
|
+
_iterator = _createForOfIteratorHelper$1(allDates);
|
|
5037
|
+
_context2.prev = 3;
|
|
5038
|
+
_iterator.s();
|
|
5039
|
+
case 5:
|
|
5040
|
+
if ((_step = _iterator.n()).done) {
|
|
5041
|
+
_context2.next = 20;
|
|
5042
|
+
break;
|
|
5043
|
+
}
|
|
5044
|
+
date = _step.value;
|
|
5045
|
+
dateString = date.toISOString().split('T')[0]; // YYYY-MM-DD
|
|
5046
|
+
_context2.prev = 8;
|
|
5047
|
+
_context2.next = 11;
|
|
5048
|
+
return fetchSlotsForDate(dateString);
|
|
5049
|
+
case 11:
|
|
5050
|
+
_slots = _context2.sent;
|
|
5051
|
+
if (!_slots || _slots.length === 0) {
|
|
5052
|
+
excluded.push(new Date(date));
|
|
5053
|
+
}
|
|
5054
|
+
_context2.next = 18;
|
|
5055
|
+
break;
|
|
5056
|
+
case 15:
|
|
5057
|
+
_context2.prev = 15;
|
|
5058
|
+
_context2.t0 = _context2["catch"](8);
|
|
5059
|
+
console.error('Error fetching slots for date:', dateString, _context2.t0);
|
|
5060
|
+
case 18:
|
|
5061
|
+
_context2.next = 5;
|
|
5062
|
+
break;
|
|
5063
|
+
case 20:
|
|
5064
|
+
_context2.next = 25;
|
|
5065
|
+
break;
|
|
5066
|
+
case 22:
|
|
5067
|
+
_context2.prev = 22;
|
|
5068
|
+
_context2.t1 = _context2["catch"](3);
|
|
5069
|
+
_iterator.e(_context2.t1);
|
|
5070
|
+
case 25:
|
|
5071
|
+
_context2.prev = 25;
|
|
5072
|
+
_iterator.f();
|
|
5073
|
+
return _context2.finish(25);
|
|
5074
|
+
case 28:
|
|
5075
|
+
setExcludedDates(excluded);
|
|
5076
|
+
case 29:
|
|
5077
|
+
case "end":
|
|
5078
|
+
return _context2.stop();
|
|
5079
|
+
}
|
|
5080
|
+
}, _callee2, null, [[3, 22, 25, 28], [8, 15]]);
|
|
5081
|
+
}));
|
|
5082
|
+
return function checkSlots() {
|
|
5083
|
+
return _ref2.apply(this, arguments);
|
|
5084
|
+
};
|
|
5085
|
+
}();
|
|
5086
|
+
checkSlots();
|
|
5087
|
+
}, [fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts, fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends, fetchProductInfoQueryContext.data.data.productinfo.productid]);
|
|
5088
|
+
|
|
4982
5089
|
// const chooseitemslot = (slot, index) => {
|
|
4983
5090
|
// var reservedslottobetaken = null;
|
|
4984
5091
|
// var reservedslotArrtobetaken = [];
|
|
@@ -5076,7 +5183,33 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5076
5183
|
}
|
|
5077
5184
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5078
5185
|
"class": "w-100 px-2 h-100 allcentered"
|
|
5079
|
-
}, /*#__PURE__*/React.createElement(
|
|
5186
|
+
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
5187
|
+
selected: startDate,
|
|
5188
|
+
onChange: function onChange(date) {
|
|
5189
|
+
setStartDate(date);
|
|
5190
|
+
setaddtocardpayloadobj(_objectSpread$2z(_objectSpread$2z({}, addtocardpayloadobj), {}, {
|
|
5191
|
+
date: startDate,
|
|
5192
|
+
time: '',
|
|
5193
|
+
reservedslotArrtobetaken: [],
|
|
5194
|
+
quantity: 1
|
|
5195
|
+
}));
|
|
5196
|
+
setcurrentmutatestate('/fetchserviceslots');
|
|
5197
|
+
GeneralAPIMutationContext.mutate({
|
|
5198
|
+
endpointurl: '/fetchserviceslots',
|
|
5199
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
5200
|
+
reqdate: startDate,
|
|
5201
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
5202
|
+
setslots(data.data.slots);
|
|
5203
|
+
}
|
|
5204
|
+
});
|
|
5205
|
+
},
|
|
5206
|
+
excludeDates: excludedDates,
|
|
5207
|
+
minDate: new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts),
|
|
5208
|
+
maxDate: new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends),
|
|
5209
|
+
placeholderText: "Select a date",
|
|
5210
|
+
dateFormat: "yyyy-MM-dd",
|
|
5211
|
+
className: "w-100"
|
|
5212
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
5080
5213
|
type: "date",
|
|
5081
5214
|
"class": ' w-100 allcentered pl-1 pr-1 ',
|
|
5082
5215
|
style: {
|
|
@@ -27483,11 +27616,17 @@ var ElegantHeader = function ElegantHeader(props) {
|
|
|
27483
27616
|
}))));
|
|
27484
27617
|
}))))), /*#__PURE__*/React.createElement("div", {
|
|
27485
27618
|
"class": "col-lg-4 p-0 allcentered"
|
|
27486
|
-
}, sectionproperties.textslidertype == 'Slider' && /*#__PURE__*/React.createElement("
|
|
27487
|
-
"class": "
|
|
27619
|
+
}, sectionproperties.textslidertype == 'Slider' && /*#__PURE__*/React.createElement("div", {
|
|
27620
|
+
"class": "rotating-text-container"
|
|
27621
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
27622
|
+
"class": "d-flex flex-row align-items-center rotating-text"
|
|
27488
27623
|
}, textarray.map(function (item, index) {
|
|
27489
27624
|
return /*#__PURE__*/React.createElement("p", {
|
|
27490
|
-
"class": header_cssstyles.textSlider + ' mb-0 p-0 '
|
|
27625
|
+
"class": header_cssstyles.textSlider + ' mb-0 p-0 ',
|
|
27626
|
+
style: {
|
|
27627
|
+
marginLeft: 60,
|
|
27628
|
+
marginRight: 60
|
|
27629
|
+
}
|
|
27491
27630
|
}, langdetect == 'en' ? item.textEnglish : item.textArabic);
|
|
27492
27631
|
}))), sectionproperties.textslidertype == 'Text' && /*#__PURE__*/React.createElement("div", {
|
|
27493
27632
|
"class": "w-100 allcentered"
|
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('@react-icons/all-files/fa/FaFacebookF'), require('@react-icons/all-files/ai/AiOutlineUser'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap'), require('imagekitio-react'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/extends'), require('react-image-gallery'), require('@react-icons/all-files/md/MdAddShoppingCart'), require('@react-icons/all-files/io5/IoBagHandleOutline'), require('@react-icons/all-files/bs/BsBag'), require('@react-icons/all-files/cg/CgShoppingBag'), require('@react-icons/all-files/fa/FaRegHeart'), require('@react-icons/all-files/fa/FaHeart'), require('@react-icons/all-files/fi/FiShoppingBag'), require('@react-icons/all-files/fi/FiShoppingCart'), require('@react-icons/all-files/ai/AiFillStar'), require('@react-icons/all-files/ai/AiOutlineStar'), require('@react-icons/all-files/fa/FaWhatsapp'), require('@react-icons/all-files/io5/IoCall'), require('@react-icons/all-files/fa/FaPlus'), require('@react-icons/all-files/fa/FaMinus'), require('@react-icons/all-files/fi/FiBox'), require('react-slideshow-image'), require('@react-icons/all-files/ri/RiArrowGoBackLine'), require('react-accessible-accordion'), require('react-share'), require('@react-icons/all-files/fi/FiMinus'), require('@react-icons/all-files/fi/FiPlus'), require('react-rating-stars-component'), require('@react-icons/all-files/fi/FiLayers'), require('@react-icons/all-files/hi/HiOutlinePlusCircle'), require('@react-icons/all-files/hi/HiOutlineMinusCircle'), require('react-textarea-autosize'), require('@mui/system'), require('@react-icons/all-files/ai/AiOutlineClockCircle'), require('@react-icons/all-files/ai/AiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineCheck'), require('react-datepicker'), require('@react-icons/all-files/fi/FiCalendar'), require('react-horizontal-scrolling-menu'), require('@mui/material'), require('@react-icons/all-files/hi/HiOutlinePhone'), require('@react-icons/all-files/ai/AiOutlineMail'), require('@react-icons/all-files/fa/FaShippingFast'), require('@react-icons/all-files/ri/RiSecurePaymentLine'), require('react-player'), require('@react-icons/all-files/ai/AiOutlineSecurityScan'), require('@react-icons/all-files/fa/FaStar'), require('@react-icons/all-files/io5/IoLocationSharp'), require('@react-icons/all-files/hi/HiOutlineChevronRight'), require('@react-icons/all-files/hi/HiOutlineChevronLeft'), require('@react-icons/all-files/go/GoGlobe'), require('@react-icons/all-files/vsc/VscGlobe'), require('react-bootstrap/Dropdown'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', '@react-icons/all-files/fa/FaFacebookF', '@react-icons/all-files/ai/AiOutlineUser', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap', 'imagekitio-react', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/extends', 'react-image-gallery', '@react-icons/all-files/md/MdAddShoppingCart', '@react-icons/all-files/io5/IoBagHandleOutline', '@react-icons/all-files/bs/BsBag', '@react-icons/all-files/cg/CgShoppingBag', '@react-icons/all-files/fa/FaRegHeart', '@react-icons/all-files/fa/FaHeart', '@react-icons/all-files/fi/FiShoppingBag', '@react-icons/all-files/fi/FiShoppingCart', '@react-icons/all-files/ai/AiFillStar', '@react-icons/all-files/ai/AiOutlineStar', '@react-icons/all-files/fa/FaWhatsapp', '@react-icons/all-files/io5/IoCall', '@react-icons/all-files/fa/FaPlus', '@react-icons/all-files/fa/FaMinus', '@react-icons/all-files/fi/FiBox', 'react-slideshow-image', '@react-icons/all-files/ri/RiArrowGoBackLine', 'react-accessible-accordion', 'react-share', '@react-icons/all-files/fi/FiMinus', '@react-icons/all-files/fi/FiPlus', 'react-rating-stars-component', '@react-icons/all-files/fi/FiLayers', '@react-icons/all-files/hi/HiOutlinePlusCircle', '@react-icons/all-files/hi/HiOutlineMinusCircle', 'react-textarea-autosize', '@mui/system', '@react-icons/all-files/ai/AiOutlineClockCircle', '@react-icons/all-files/ai/AiOutlinePlus', '@react-icons/all-files/ai/AiOutlineCheck', 'react-datepicker', '@react-icons/all-files/fi/FiCalendar', 'react-horizontal-scrolling-menu', '@mui/material', '@react-icons/all-files/hi/HiOutlinePhone', '@react-icons/all-files/ai/AiOutlineMail', '@react-icons/all-files/fa/FaShippingFast', '@react-icons/all-files/ri/RiSecurePaymentLine', 'react-player', '@react-icons/all-files/ai/AiOutlineSecurityScan', '@react-icons/all-files/fa/FaStar', '@react-icons/all-files/io5/IoLocationSharp', '@react-icons/all-files/hi/HiOutlineChevronRight', '@react-icons/all-files/hi/HiOutlineChevronLeft', '@react-icons/all-files/go/GoGlobe', '@react-icons/all-files/vsc/VscGlobe', 'react-bootstrap/Dropdown', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._possibleConstructorReturn, global._getPrototypeOf, global._inherits, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, global.imagekitioReact, global._toConsumableArray, global._extends, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart$1, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar$1, global.AiOutlineStar, global.FaWhatsapp, global.IoCall, global.FaPlus, global.FaMinus, global.FiBox$1, global.reactSlideshowImage, global.RiArrowGoBackLine, global.reactAccessibleAccordion, global.reactShare, global.FiMinus, global.FiPlus, global.ReactStars, global.FiLayers, global.HiOutlinePlusCircle, null, global.TextareaAutosize, null, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.DatePicker, global.FiCalendar, global.reactHorizontalScrollingMenu, global.material, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.ReactPlayer, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.Dropdown, global.
|
|
5
|
-
})(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, imagekitioReact, _toConsumableArray, _extends, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart$1, FiShoppingBag, FiShoppingCart, AiFillStar$1, AiOutlineStar, FaWhatsapp, IoCall, FaPlus, FaMinus, FiBox$1, reactSlideshowImage, RiArrowGoBackLine, reactAccessibleAccordion, reactShare, FiMinus, FiPlus, ReactStars, FiLayers, HiOutlinePlusCircle, HiOutlineMinusCircle, TextareaAutosize, system, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, DatePicker, FiCalendar, reactHorizontalScrollingMenu, material, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, ReactPlayer, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, Dropdown,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('@react-icons/all-files/fa/FaFacebookF'), require('@react-icons/all-files/ai/AiOutlineUser'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap'), require('imagekitio-react'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/extends'), require('react-image-gallery'), require('@react-icons/all-files/md/MdAddShoppingCart'), require('@react-icons/all-files/io5/IoBagHandleOutline'), require('@react-icons/all-files/bs/BsBag'), require('@react-icons/all-files/cg/CgShoppingBag'), require('@react-icons/all-files/fa/FaRegHeart'), require('@react-icons/all-files/fa/FaHeart'), require('@react-icons/all-files/fi/FiShoppingBag'), require('@react-icons/all-files/fi/FiShoppingCart'), require('@react-icons/all-files/ai/AiFillStar'), require('@react-icons/all-files/ai/AiOutlineStar'), require('@react-icons/all-files/fa/FaWhatsapp'), require('@react-icons/all-files/io5/IoCall'), require('@react-icons/all-files/fa/FaPlus'), require('@react-icons/all-files/fa/FaMinus'), require('@react-icons/all-files/fi/FiBox'), require('react-slideshow-image'), require('@react-icons/all-files/ri/RiArrowGoBackLine'), require('react-accessible-accordion'), require('react-share'), require('@react-icons/all-files/fi/FiMinus'), require('@react-icons/all-files/fi/FiPlus'), require('react-rating-stars-component'), require('@react-icons/all-files/fi/FiLayers'), require('@react-icons/all-files/hi/HiOutlinePlusCircle'), require('@react-icons/all-files/hi/HiOutlineMinusCircle'), require('react-textarea-autosize'), require('@mui/system'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('@react-icons/all-files/ai/AiOutlineClockCircle'), require('@react-icons/all-files/ai/AiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineCheck'), require('react-datepicker'), require('@react-icons/all-files/fi/FiCalendar'), require('react-horizontal-scrolling-menu'), require('@mui/material'), require('@react-icons/all-files/hi/HiOutlinePhone'), require('@react-icons/all-files/ai/AiOutlineMail'), require('@react-icons/all-files/fa/FaShippingFast'), require('@react-icons/all-files/ri/RiSecurePaymentLine'), require('react-player'), require('@react-icons/all-files/ai/AiOutlineSecurityScan'), require('@react-icons/all-files/fa/FaStar'), require('@react-icons/all-files/io5/IoLocationSharp'), require('@react-icons/all-files/hi/HiOutlineChevronRight'), require('@react-icons/all-files/hi/HiOutlineChevronLeft'), require('@react-icons/all-files/go/GoGlobe'), require('@react-icons/all-files/vsc/VscGlobe'), require('react-bootstrap/Dropdown'), require('@react-icons/all-files/hi/HiUser'), require('@react-icons/all-files/gr/GrMail'), require('@react-icons/all-files/fi/FiCheckCircle'), require('@react-icons/all-files/bi/BiPhone'), require('react-select'), require('react-phone-input-2'), require('@react-icons/all-files/bs/BsChevronLeft'), require('@react-icons/all-files/bs/BsChevronRight'), require('@react-icons/all-files/ri/RiArrowUpSLine'), require('@react-icons/all-files/ri/RiArrowDownSLine'), require('@react-icons/all-files/io/IoIosArrowRoundForward'), require('@react-icons/all-files/io/IoIosArrowRoundBack'), require('@react-icons/all-files/fi/FiChevronUp'), require('@react-icons/all-files/fi/FiChevronDown'), require('@react-icons/all-files/hi/HiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineMinus'), require('react-router-dom'), require('react-query'), require('@react-icons/all-files/io5/IoBagCheckOutline'), require('@react-icons/all-files/io5/IoBagRemoveOutline'), require('react-input-range'), require('react-intersection-observer'), require('@react-icons/all-files/fi/FiFilter'), require('@react-icons/all-files/fi/FiSliders'), require('@react-icons/all-files/fi/FiChevronLeft'), require('@react-icons/all-files/fi/FiChevronRight'), require('@react-icons/all-files/hi/HiOutlineArrowRight'), require('@react-icons/all-files/hi/HiOutlineArrowLeft'), require('react-paginate'), require('@react-icons/all-files/fa/FaFacebook'), require('@react-icons/all-files/ai/AiFillInstagram'), require('@react-icons/all-files/bi/BiGlobe'), require('@react-icons/all-files/md/MdKeyboardArrowDown'), require('@react-icons/all-files/fa/FaMoneyBillWave'), require('@react-icons/all-files/bi/BiLogOutCircle'), require('@react-icons/all-files/bi/BiChevronDown'), require('@react-icons/all-files/bi/BiUser'), require('@react-icons/all-files/ai/AiOutlineLogin'), require('@react-icons/all-files/ai/AiOutlineUserAdd'), require('@react-icons/all-files/ri/RiSearchLine'), require('@react-icons/all-files/cg/CgMenuLeft'), require('@react-icons/all-files/cg/CgMenuRight'), require('@react-icons/all-files/hi/HiOutlineShoppingBag'), require('@react-icons/all-files/ri/RiHandbagLine'), require('@react-icons/all-files/ai/AiOutlineClose'), require('@react-icons/all-files/vsc/VscMenu'), require('@react-icons/all-files/vsc/VscHeart'), require('@react-icons/all-files/io5/IoSearchOutline'), require('@react-icons/all-files/ai/AiFillYoutube'), require('@react-icons/all-files/io5/IoLogoTiktok'), require('@react-icons/all-files/fa/FaLinkedinIn'), require('@react-icons/all-files/fa/FaMap'), require('@react-icons/all-files/fi/FiMenu'), require('@react-icons/all-files/bs/BsChevronDown'), require('@react-icons/all-files/io5/IoClose'), require('@react-icons/all-files/bi/BiSearch'), require('@react-icons/all-files/fi/FiUser'), require('@react-icons/all-files/ai/AiOutlineHeart'), require('@react-icons/all-files/fi/FiPhone'), require('@react-icons/all-files/hi/HiMenuAlt4'), require('@react-icons/all-files/fi/FiSearch'), require('@react-icons/all-files/bs/BsSearch'), require('@react-icons/all-files/ai/AiOutlinePhone'), require('@react-icons/all-files/go/GoSearch'), require('@react-icons/all-files/ai/AiOutlineInstagram'), require('@react-icons/all-files/md/MdKeyboardArrowUp'), require('@react-icons/all-files/ri/RiUserSettingsLine'), require('@react-icons/all-files/hi/HiUserCircle'), require('@react-icons/all-files/bs/BsInfoCircle'), require('@react-icons/all-files/ai/AiFillPhone'), require('@react-icons/all-files/fa/FaTelegramPlane'), require('@react-icons/all-files/fa/FaPhoneAlt'), require('@react-icons/all-files/fa/FaPhone'), require('@react-icons/all-files/fi/FiGlobe'), require('@react-icons/all-files/fi/FiArrowUpRight'), require('@react-icons/all-files/bi/BiUserCircle'), require('@react-icons/all-files/fi/FiArrowUpLeft'), require('@react-icons/all-files/go/GoLocation'), require('@react-icons/all-files/fa/FaSnapchat'), require('@react-icons/all-files/ri/RiRoadMapLine'), require('@react-icons/all-files/hi/HiOutlineClock'), require('@react-icons/all-files/fa/FaGoogle'), require('@react-icons/all-files/ai/AiOutlineLinkedin'), require('@react-icons/all-files/fa/FaPinterestP'), require('@react-icons/all-files/fa/FaTripadvisor'), require('@react-icons/all-files/fa/FaBehance'), require('@react-icons/all-files/fi/FiHome'), require('@react-icons/all-files/fa/FaArrowAltCircleRight'), require('@react-icons/all-files/fa/FaArrowAltCircleLeft'), require('@react-icons/all-files/go/GoStar'), require('@react-icons/all-files/io/IoIosStar'), require('react-countdown-circle-timer'), require('react-type-animation'), require('react-background-slideshow'), require('@react-icons/all-files/hi/HiOutlineLocationMarker'), require('@react-icons/all-files/fi/FiPhoneCall'), require('@react-icons/all-files/fa/FaRegEye'), require('@react-icons/all-files/bs/BsArrowRight'), require('@react-icons/all-files/bs/BsArrowLeft'), require('@react-icons/all-files/bs/BsEye'), require('@react-icons/all-files/bi/BiTimeFive'), require('@react-icons/all-files/io/IoIosArrowUp')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', '@react-icons/all-files/fa/FaFacebookF', '@react-icons/all-files/ai/AiOutlineUser', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap', 'imagekitio-react', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/extends', 'react-image-gallery', '@react-icons/all-files/md/MdAddShoppingCart', '@react-icons/all-files/io5/IoBagHandleOutline', '@react-icons/all-files/bs/BsBag', '@react-icons/all-files/cg/CgShoppingBag', '@react-icons/all-files/fa/FaRegHeart', '@react-icons/all-files/fa/FaHeart', '@react-icons/all-files/fi/FiShoppingBag', '@react-icons/all-files/fi/FiShoppingCart', '@react-icons/all-files/ai/AiFillStar', '@react-icons/all-files/ai/AiOutlineStar', '@react-icons/all-files/fa/FaWhatsapp', '@react-icons/all-files/io5/IoCall', '@react-icons/all-files/fa/FaPlus', '@react-icons/all-files/fa/FaMinus', '@react-icons/all-files/fi/FiBox', 'react-slideshow-image', '@react-icons/all-files/ri/RiArrowGoBackLine', 'react-accessible-accordion', 'react-share', '@react-icons/all-files/fi/FiMinus', '@react-icons/all-files/fi/FiPlus', 'react-rating-stars-component', '@react-icons/all-files/fi/FiLayers', '@react-icons/all-files/hi/HiOutlinePlusCircle', '@react-icons/all-files/hi/HiOutlineMinusCircle', 'react-textarea-autosize', '@mui/system', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', '@react-icons/all-files/ai/AiOutlineClockCircle', '@react-icons/all-files/ai/AiOutlinePlus', '@react-icons/all-files/ai/AiOutlineCheck', 'react-datepicker', '@react-icons/all-files/fi/FiCalendar', 'react-horizontal-scrolling-menu', '@mui/material', '@react-icons/all-files/hi/HiOutlinePhone', '@react-icons/all-files/ai/AiOutlineMail', '@react-icons/all-files/fa/FaShippingFast', '@react-icons/all-files/ri/RiSecurePaymentLine', 'react-player', '@react-icons/all-files/ai/AiOutlineSecurityScan', '@react-icons/all-files/fa/FaStar', '@react-icons/all-files/io5/IoLocationSharp', '@react-icons/all-files/hi/HiOutlineChevronRight', '@react-icons/all-files/hi/HiOutlineChevronLeft', '@react-icons/all-files/go/GoGlobe', '@react-icons/all-files/vsc/VscGlobe', 'react-bootstrap/Dropdown', '@react-icons/all-files/hi/HiUser', '@react-icons/all-files/gr/GrMail', '@react-icons/all-files/fi/FiCheckCircle', '@react-icons/all-files/bi/BiPhone', 'react-select', 'react-phone-input-2', '@react-icons/all-files/bs/BsChevronLeft', '@react-icons/all-files/bs/BsChevronRight', '@react-icons/all-files/ri/RiArrowUpSLine', '@react-icons/all-files/ri/RiArrowDownSLine', '@react-icons/all-files/io/IoIosArrowRoundForward', '@react-icons/all-files/io/IoIosArrowRoundBack', '@react-icons/all-files/fi/FiChevronUp', '@react-icons/all-files/fi/FiChevronDown', '@react-icons/all-files/hi/HiOutlinePlus', '@react-icons/all-files/ai/AiOutlineMinus', 'react-router-dom', 'react-query', '@react-icons/all-files/io5/IoBagCheckOutline', '@react-icons/all-files/io5/IoBagRemoveOutline', 'react-input-range', 'react-intersection-observer', '@react-icons/all-files/fi/FiFilter', '@react-icons/all-files/fi/FiSliders', '@react-icons/all-files/fi/FiChevronLeft', '@react-icons/all-files/fi/FiChevronRight', '@react-icons/all-files/hi/HiOutlineArrowRight', '@react-icons/all-files/hi/HiOutlineArrowLeft', 'react-paginate', '@react-icons/all-files/fa/FaFacebook', '@react-icons/all-files/ai/AiFillInstagram', '@react-icons/all-files/bi/BiGlobe', '@react-icons/all-files/md/MdKeyboardArrowDown', '@react-icons/all-files/fa/FaMoneyBillWave', '@react-icons/all-files/bi/BiLogOutCircle', '@react-icons/all-files/bi/BiChevronDown', '@react-icons/all-files/bi/BiUser', '@react-icons/all-files/ai/AiOutlineLogin', '@react-icons/all-files/ai/AiOutlineUserAdd', '@react-icons/all-files/ri/RiSearchLine', '@react-icons/all-files/cg/CgMenuLeft', '@react-icons/all-files/cg/CgMenuRight', '@react-icons/all-files/hi/HiOutlineShoppingBag', '@react-icons/all-files/ri/RiHandbagLine', '@react-icons/all-files/ai/AiOutlineClose', '@react-icons/all-files/vsc/VscMenu', '@react-icons/all-files/vsc/VscHeart', '@react-icons/all-files/io5/IoSearchOutline', '@react-icons/all-files/ai/AiFillYoutube', '@react-icons/all-files/io5/IoLogoTiktok', '@react-icons/all-files/fa/FaLinkedinIn', '@react-icons/all-files/fa/FaMap', '@react-icons/all-files/fi/FiMenu', '@react-icons/all-files/bs/BsChevronDown', '@react-icons/all-files/io5/IoClose', '@react-icons/all-files/bi/BiSearch', '@react-icons/all-files/fi/FiUser', '@react-icons/all-files/ai/AiOutlineHeart', '@react-icons/all-files/fi/FiPhone', '@react-icons/all-files/hi/HiMenuAlt4', '@react-icons/all-files/fi/FiSearch', '@react-icons/all-files/bs/BsSearch', '@react-icons/all-files/ai/AiOutlinePhone', '@react-icons/all-files/go/GoSearch', '@react-icons/all-files/ai/AiOutlineInstagram', '@react-icons/all-files/md/MdKeyboardArrowUp', '@react-icons/all-files/ri/RiUserSettingsLine', '@react-icons/all-files/hi/HiUserCircle', '@react-icons/all-files/bs/BsInfoCircle', '@react-icons/all-files/ai/AiFillPhone', '@react-icons/all-files/fa/FaTelegramPlane', '@react-icons/all-files/fa/FaPhoneAlt', '@react-icons/all-files/fa/FaPhone', '@react-icons/all-files/fi/FiGlobe', '@react-icons/all-files/fi/FiArrowUpRight', '@react-icons/all-files/bi/BiUserCircle', '@react-icons/all-files/fi/FiArrowUpLeft', '@react-icons/all-files/go/GoLocation', '@react-icons/all-files/fa/FaSnapchat', '@react-icons/all-files/ri/RiRoadMapLine', '@react-icons/all-files/hi/HiOutlineClock', '@react-icons/all-files/fa/FaGoogle', '@react-icons/all-files/ai/AiOutlineLinkedin', '@react-icons/all-files/fa/FaPinterestP', '@react-icons/all-files/fa/FaTripadvisor', '@react-icons/all-files/fa/FaBehance', '@react-icons/all-files/fi/FiHome', '@react-icons/all-files/fa/FaArrowAltCircleRight', '@react-icons/all-files/fa/FaArrowAltCircleLeft', '@react-icons/all-files/go/GoStar', '@react-icons/all-files/io/IoIosStar', 'react-countdown-circle-timer', 'react-type-animation', 'react-background-slideshow', '@react-icons/all-files/hi/HiOutlineLocationMarker', '@react-icons/all-files/fi/FiPhoneCall', '@react-icons/all-files/fa/FaRegEye', '@react-icons/all-files/bs/BsArrowRight', '@react-icons/all-files/bs/BsArrowLeft', '@react-icons/all-files/bs/BsEye', '@react-icons/all-files/bi/BiTimeFive', '@react-icons/all-files/io/IoIosArrowUp'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._possibleConstructorReturn, global._getPrototypeOf, global._inherits, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, global.imagekitioReact, global._toConsumableArray, global._extends, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart$1, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar$1, global.AiOutlineStar, global.FaWhatsapp, global.IoCall, global.FaPlus, global.FaMinus, global.FiBox$1, global.reactSlideshowImage, global.RiArrowGoBackLine, global.reactAccessibleAccordion, global.reactShare, global.FiMinus, global.FiPlus, global.ReactStars, global.FiLayers, global.HiOutlinePlusCircle, null, global.TextareaAutosize, null, global._asyncToGenerator, global._regeneratorRuntime, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.DatePicker, global.FiCalendar, global.reactHorizontalScrollingMenu, global.material, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.ReactPlayer, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.Dropdown, global.HiUser, global.GrMail, global.FiCheckCircle, global.BiPhone, global.Select$4, global.PhoneInput, global.BsChevronLeft, global.BsChevronRight, null, null, null, null, global.FiChevronUp, global.FiChevronDown, global.HiOutlinePlus, global.AiOutlineMinus, null, null, global.IoBagCheckOutline, global.IoBagRemoveOutline, global.InputRange, global.reactIntersectionObserver, global.FiFilter, global.FiSliders, global.FiChevronLeft, global.FiChevronRight, global.HiOutlineArrowRight, global.HiOutlineArrowLeft, global.ReactPaginate, global.FaFacebook, global.AiFillInstagram, global.BiGlobe, global.MdKeyboardArrowDown, global.FaMoneyBillWave, global.BiLogOutCircle, global.BiChevronDown, global.BiUser, global.AiOutlineLogin, global.AiOutlineUserAdd, global.RiSearchLine, global.CgMenuLeft, global.CgMenuRight, global.HiOutlineShoppingBag, global.RiHandbagLine, global.AiOutlineClose, global.VscMenu, global.VscHeart, global.IoSearchOutline, global.AiFillYoutube, global.IoLogoTiktok, global.FaLinkedinIn, global.FaMap, global.FiMenu, global.BsChevronDown, global.IoClose, global.BiSearch, global.FiUser, global.AiOutlineHeart, global.FiPhone, global.HiMenuAlt4, global.FiSearch, global.BsSearch, global.AiOutlinePhone, global.GoSearch, global.AiOutlineInstagram, global.MdKeyboardArrowUp, global.RiUserSettingsLine, global.HiUserCircle, global.BsInfoCircle, global.AiFillPhone, global.FaTelegramPlane, global.FaPhoneAlt, global.FaPhone, global.FiGlobe, global.FiArrowUpRight, global.BiUserCircle, global.FiArrowUpLeft, global.GoLocation, global.FaSnapchat, global.RiRoadMapLine, global.HiOutlineClock, global.FaGoogle, global.AiOutlineLinkedin, global.FaPinterestP, global.FaTripadvisor, global.FaBehance, global.FiHome, global.FaArrowAltCircleRight, global.FaArrowAltCircleLeft, global.GoStar, global.IoIosStar, global.reactCountdownCircleTimer, global.reactTypeAnimation, global.BackgroundSlideshow, global.HiOutlineLocationMarker, global.FiPhoneCall, global.FaRegEye, global.BsArrowRight, global.BsArrowLeft, global.BsEye, global.BiTimeFive, global.IoIosArrowUp));
|
|
5
|
+
})(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, imagekitioReact, _toConsumableArray, _extends, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart$1, FiShoppingBag, FiShoppingCart, AiFillStar$1, AiOutlineStar, FaWhatsapp, IoCall, FaPlus, FaMinus, FiBox$1, reactSlideshowImage, RiArrowGoBackLine, reactAccessibleAccordion, reactShare, FiMinus, FiPlus, ReactStars, FiLayers, HiOutlinePlusCircle, HiOutlineMinusCircle, TextareaAutosize, system, _asyncToGenerator, _regeneratorRuntime, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, DatePicker, FiCalendar, reactHorizontalScrollingMenu, material, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, ReactPlayer, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, Dropdown, HiUser, GrMail, FiCheckCircle, BiPhone, Select$4, PhoneInput, BsChevronLeft, BsChevronRight, RiArrowUpSLine, RiArrowDownSLine, IoIosArrowRoundForward, IoIosArrowRoundBack, FiChevronUp, FiChevronDown, HiOutlinePlus, AiOutlineMinus, reactRouterDom, reactQuery, IoBagCheckOutline, IoBagRemoveOutline, InputRange, reactIntersectionObserver, FiFilter, FiSliders, FiChevronLeft, FiChevronRight, HiOutlineArrowRight, HiOutlineArrowLeft, ReactPaginate, FaFacebook, AiFillInstagram, BiGlobe, MdKeyboardArrowDown, FaMoneyBillWave, BiLogOutCircle, BiChevronDown, BiUser, AiOutlineLogin, AiOutlineUserAdd, RiSearchLine, CgMenuLeft, CgMenuRight, HiOutlineShoppingBag, RiHandbagLine, AiOutlineClose, VscMenu, VscHeart, IoSearchOutline, AiFillYoutube, IoLogoTiktok, FaLinkedinIn, FaMap, FiMenu, BsChevronDown, IoClose, BiSearch, FiUser, AiOutlineHeart, FiPhone, HiMenuAlt4, FiSearch, BsSearch, AiOutlinePhone, GoSearch, AiOutlineInstagram, MdKeyboardArrowUp, RiUserSettingsLine, HiUserCircle, BsInfoCircle, AiFillPhone, FaTelegramPlane, FaPhoneAlt, FaPhone, FiGlobe, FiArrowUpRight, BiUserCircle, FiArrowUpLeft, GoLocation, FaSnapchat, RiRoadMapLine, HiOutlineClock, FaGoogle, AiOutlineLinkedin, FaPinterestP, FaTripadvisor, FaBehance, FiHome, FaArrowAltCircleRight, FaArrowAltCircleLeft, GoStar, IoIosStar, reactCountdownCircleTimer, reactTypeAnimation, BackgroundSlideshow, HiOutlineLocationMarker, FiPhoneCall, FaRegEye, BsArrowRight, BsArrowLeft, BsEye, BiTimeFive, IoIosArrowUp) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
|
|
22
22
|
var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
|
|
23
23
|
var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
|
|
24
|
+
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
25
|
+
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
24
26
|
var DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(DatePicker);
|
|
25
27
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
26
28
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
27
|
-
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
28
|
-
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
29
29
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
|
|
30
30
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
31
31
|
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
@@ -4513,6 +4513,9 @@
|
|
|
4513
4513
|
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
4514
4514
|
};
|
|
4515
4515
|
|
|
4516
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
4517
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
4518
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4516
4519
|
function ownKeys$2z(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; }
|
|
4517
4520
|
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4518
4521
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
@@ -4840,6 +4843,110 @@
|
|
|
4840
4843
|
NotificationManager.warning('', 'No Slots Reserved');
|
|
4841
4844
|
}
|
|
4842
4845
|
};
|
|
4846
|
+
var _useState13 = React.useState(null),
|
|
4847
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
4848
|
+
startDate = _useState14[0],
|
|
4849
|
+
setStartDate = _useState14[1];
|
|
4850
|
+
|
|
4851
|
+
// Function to fetch slots for a given date
|
|
4852
|
+
var fetchSlotsForDate = /*#__PURE__*/function () {
|
|
4853
|
+
var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(dateString) {
|
|
4854
|
+
var response;
|
|
4855
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
4856
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4857
|
+
case 0:
|
|
4858
|
+
_context.next = 2;
|
|
4859
|
+
return GeneralAPIMutationContext.mutateAsync({
|
|
4860
|
+
endpointurl: '/fetchserviceslots',
|
|
4861
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
4862
|
+
reqdate: dateString
|
|
4863
|
+
});
|
|
4864
|
+
case 2:
|
|
4865
|
+
response = _context.sent;
|
|
4866
|
+
return _context.abrupt("return", response.data.slots);
|
|
4867
|
+
case 4:
|
|
4868
|
+
case "end":
|
|
4869
|
+
return _context.stop();
|
|
4870
|
+
}
|
|
4871
|
+
}, _callee);
|
|
4872
|
+
}));
|
|
4873
|
+
return function fetchSlotsForDate(_x) {
|
|
4874
|
+
return _ref.apply(this, arguments);
|
|
4875
|
+
};
|
|
4876
|
+
}();
|
|
4877
|
+
// Function to generate dates between start and end
|
|
4878
|
+
var generateDatesBetween = function generateDatesBetween(start, end) {
|
|
4879
|
+
var dates = [];
|
|
4880
|
+
var current = new Date(start);
|
|
4881
|
+
var endDate = new Date(end);
|
|
4882
|
+
while (current <= endDate) {
|
|
4883
|
+
dates.push(new Date(current));
|
|
4884
|
+
current.setDate(current.getDate() + 1); // Move to next day
|
|
4885
|
+
}
|
|
4886
|
+
return dates;
|
|
4887
|
+
};
|
|
4888
|
+
React.useEffect(function () {
|
|
4889
|
+
var checkSlots = /*#__PURE__*/function () {
|
|
4890
|
+
var _ref2 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
|
|
4891
|
+
var allDates, excluded, _iterator, _step, date, dateString, _slots;
|
|
4892
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
4893
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4894
|
+
case 0:
|
|
4895
|
+
allDates = generateDatesBetween(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts, fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends);
|
|
4896
|
+
excluded = [];
|
|
4897
|
+
_iterator = _createForOfIteratorHelper$1(allDates);
|
|
4898
|
+
_context2.prev = 3;
|
|
4899
|
+
_iterator.s();
|
|
4900
|
+
case 5:
|
|
4901
|
+
if ((_step = _iterator.n()).done) {
|
|
4902
|
+
_context2.next = 20;
|
|
4903
|
+
break;
|
|
4904
|
+
}
|
|
4905
|
+
date = _step.value;
|
|
4906
|
+
dateString = date.toISOString().split('T')[0]; // YYYY-MM-DD
|
|
4907
|
+
_context2.prev = 8;
|
|
4908
|
+
_context2.next = 11;
|
|
4909
|
+
return fetchSlotsForDate(dateString);
|
|
4910
|
+
case 11:
|
|
4911
|
+
_slots = _context2.sent;
|
|
4912
|
+
if (!_slots || _slots.length === 0) {
|
|
4913
|
+
excluded.push(new Date(date));
|
|
4914
|
+
}
|
|
4915
|
+
_context2.next = 18;
|
|
4916
|
+
break;
|
|
4917
|
+
case 15:
|
|
4918
|
+
_context2.prev = 15;
|
|
4919
|
+
_context2.t0 = _context2["catch"](8);
|
|
4920
|
+
console.error('Error fetching slots for date:', dateString, _context2.t0);
|
|
4921
|
+
case 18:
|
|
4922
|
+
_context2.next = 5;
|
|
4923
|
+
break;
|
|
4924
|
+
case 20:
|
|
4925
|
+
_context2.next = 25;
|
|
4926
|
+
break;
|
|
4927
|
+
case 22:
|
|
4928
|
+
_context2.prev = 22;
|
|
4929
|
+
_context2.t1 = _context2["catch"](3);
|
|
4930
|
+
_iterator.e(_context2.t1);
|
|
4931
|
+
case 25:
|
|
4932
|
+
_context2.prev = 25;
|
|
4933
|
+
_iterator.f();
|
|
4934
|
+
return _context2.finish(25);
|
|
4935
|
+
case 28:
|
|
4936
|
+
setExcludedDates(excluded);
|
|
4937
|
+
case 29:
|
|
4938
|
+
case "end":
|
|
4939
|
+
return _context2.stop();
|
|
4940
|
+
}
|
|
4941
|
+
}, _callee2, null, [[3, 22, 25, 28], [8, 15]]);
|
|
4942
|
+
}));
|
|
4943
|
+
return function checkSlots() {
|
|
4944
|
+
return _ref2.apply(this, arguments);
|
|
4945
|
+
};
|
|
4946
|
+
}();
|
|
4947
|
+
checkSlots();
|
|
4948
|
+
}, [fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts, fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends, fetchProductInfoQueryContext.data.data.productinfo.productid]);
|
|
4949
|
+
|
|
4843
4950
|
// const chooseitemslot = (slot, index) => {
|
|
4844
4951
|
// var reservedslottobetaken = null;
|
|
4845
4952
|
// var reservedslotArrtobetaken = [];
|
|
@@ -4937,7 +5044,33 @@
|
|
|
4937
5044
|
}
|
|
4938
5045
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4939
5046
|
"class": "w-100 px-2 h-100 allcentered"
|
|
4940
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
5047
|
+
}, /*#__PURE__*/React__default["default"].createElement(DatePicker__default["default"], {
|
|
5048
|
+
selected: startDate,
|
|
5049
|
+
onChange: function onChange(date) {
|
|
5050
|
+
setStartDate(date);
|
|
5051
|
+
setaddtocardpayloadobj(_objectSpread$2z(_objectSpread$2z({}, addtocardpayloadobj), {}, {
|
|
5052
|
+
date: startDate,
|
|
5053
|
+
time: '',
|
|
5054
|
+
reservedslotArrtobetaken: [],
|
|
5055
|
+
quantity: 1
|
|
5056
|
+
}));
|
|
5057
|
+
setcurrentmutatestate('/fetchserviceslots');
|
|
5058
|
+
GeneralAPIMutationContext.mutate({
|
|
5059
|
+
endpointurl: '/fetchserviceslots',
|
|
5060
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
5061
|
+
reqdate: startDate,
|
|
5062
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
5063
|
+
setslots(data.data.slots);
|
|
5064
|
+
}
|
|
5065
|
+
});
|
|
5066
|
+
},
|
|
5067
|
+
excludeDates: excludedDates,
|
|
5068
|
+
minDate: new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts),
|
|
5069
|
+
maxDate: new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends),
|
|
5070
|
+
placeholderText: "Select a date",
|
|
5071
|
+
dateFormat: "yyyy-MM-dd",
|
|
5072
|
+
className: "w-100"
|
|
5073
|
+
}), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4941
5074
|
type: "date",
|
|
4942
5075
|
"class": ' w-100 allcentered pl-1 pr-1 ',
|
|
4943
5076
|
style: {
|
|
@@ -27344,11 +27477,17 @@
|
|
|
27344
27477
|
}))));
|
|
27345
27478
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27346
27479
|
"class": "col-lg-4 p-0 allcentered"
|
|
27347
|
-
}, sectionproperties.textslidertype == 'Slider' && /*#__PURE__*/React__default["default"].createElement("
|
|
27348
|
-
"class": "
|
|
27480
|
+
}, sectionproperties.textslidertype == 'Slider' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27481
|
+
"class": "rotating-text-container"
|
|
27482
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
27483
|
+
"class": "d-flex flex-row align-items-center rotating-text"
|
|
27349
27484
|
}, textarray.map(function (item, index) {
|
|
27350
27485
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
27351
|
-
"class": header_cssstyles.textSlider + ' mb-0 p-0 '
|
|
27486
|
+
"class": header_cssstyles.textSlider + ' mb-0 p-0 ',
|
|
27487
|
+
style: {
|
|
27488
|
+
marginLeft: 60,
|
|
27489
|
+
marginRight: 60
|
|
27490
|
+
}
|
|
27352
27491
|
}, langdetect == 'en' ? item.textEnglish : item.textArabic);
|
|
27353
27492
|
}))), sectionproperties.textslidertype == 'Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27354
27493
|
"class": "w-100 allcentered"
|