@pisell/pisellos 1.0.132 → 1.0.133
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.
|
@@ -2567,8 +2567,12 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2567
2567
|
_step3;
|
|
2568
2568
|
try {
|
|
2569
2569
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
2570
|
+
var _time$event_list;
|
|
2570
2571
|
var time = _step3.value;
|
|
2571
|
-
var
|
|
2572
|
+
var blockedTimes = (_time$event_list = time.event_list) === null || _time$event_list === void 0 ? void 0 : _time$event_list.filter(function (event) {
|
|
2573
|
+
return event.type !== 'schedule_event';
|
|
2574
|
+
});
|
|
2575
|
+
var _iterator4 = _createForOfIteratorHelper(blockedTimes || []),
|
|
2572
2576
|
_step4;
|
|
2573
2577
|
try {
|
|
2574
2578
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -1775,10 +1775,12 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1775
1775
|
currentStartTime: currentStartTime2,
|
|
1776
1776
|
times
|
|
1777
1777
|
}) {
|
|
1778
|
+
var _a4;
|
|
1778
1779
|
const currentStart = (0, import_dayjs.default)(currentStartTime2);
|
|
1779
1780
|
let earliestBlockStart;
|
|
1780
1781
|
for (const time of times || []) {
|
|
1781
|
-
|
|
1782
|
+
const blockedTimes = (_a4 = time.event_list) == null ? void 0 : _a4.filter((event) => event.type !== "schedule_event");
|
|
1783
|
+
for (const event of blockedTimes || []) {
|
|
1782
1784
|
const eventStart = (0, import_dayjs.default)(event.start_at);
|
|
1783
1785
|
const eventEnd = (0, import_dayjs.default)(event.end_at);
|
|
1784
1786
|
if (eventStart.isBefore(currentStart) && eventEnd.isAfter(currentStart)) {
|