@pisell/pisellos 3.0.82 → 3.0.83
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.
|
@@ -2556,8 +2556,12 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2556
2556
|
_step3;
|
|
2557
2557
|
try {
|
|
2558
2558
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
2559
|
+
var _time$event_list;
|
|
2559
2560
|
var time = _step3.value;
|
|
2560
|
-
var
|
|
2561
|
+
var blockedTimes = (_time$event_list = time.event_list) === null || _time$event_list === void 0 ? void 0 : _time$event_list.filter(function (event) {
|
|
2562
|
+
return event.type !== 'schedule_event';
|
|
2563
|
+
});
|
|
2564
|
+
var _iterator4 = _createForOfIteratorHelper(blockedTimes || []),
|
|
2561
2565
|
_step4;
|
|
2562
2566
|
try {
|
|
2563
2567
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -1773,10 +1773,12 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1773
1773
|
currentStartTime: currentStartTime2,
|
|
1774
1774
|
times
|
|
1775
1775
|
}) {
|
|
1776
|
+
var _a4;
|
|
1776
1777
|
const currentStart = (0, import_dayjs.default)(currentStartTime2);
|
|
1777
1778
|
let earliestBlockStart;
|
|
1778
1779
|
for (const time of times || []) {
|
|
1779
|
-
|
|
1780
|
+
const blockedTimes = (_a4 = time.event_list) == null ? void 0 : _a4.filter((event) => event.type !== "schedule_event");
|
|
1781
|
+
for (const event of blockedTimes || []) {
|
|
1780
1782
|
const eventStart = (0, import_dayjs.default)(event.start_at);
|
|
1781
1783
|
const eventEnd = (0, import_dayjs.default)(event.end_at);
|
|
1782
1784
|
if (eventStart.isBefore(currentStart) && eventEnd.isAfter(currentStart)) {
|