heroes-of-chess-components 0.6.69 → 0.6.71
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.
|
@@ -121,7 +121,7 @@ var ClientCalendarComponent = function ClientCalendarComponent(_ref2) {
|
|
|
121
121
|
});
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
// 🔥 Validar disponibilidad de specialChildren para
|
|
124
|
+
// 🔥 Validar disponibilidad de specialChildren SOLO para primera reserva (no cambios) con fallback
|
|
125
125
|
if (!masterConsole && firstTime) {
|
|
126
126
|
var _groupInfo$dataDays, _dataDayForSelectedDa;
|
|
127
127
|
var dataDayForSelectedDay = groupInfo === null || groupInfo === void 0 || (_groupInfo$dataDays = groupInfo.dataDays) === null || _groupInfo$dataDays === void 0 ? void 0 : _groupInfo$dataDays.find(function (d) {
|
|
@@ -72,7 +72,7 @@ export function captureCalendarValidations(_ref) {
|
|
|
72
72
|
})) === null || _groupInfo$changedChi === void 0 ? void 0 : _groupInfo$changedChi.length) || 0,
|
|
73
73
|
isFull: participantsCount >= ((groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.childrenCapacity) || 0)
|
|
74
74
|
},
|
|
75
|
-
// 🔥
|
|
75
|
+
// 🔥 Validación para specialChildren (solo primera reserva) con fallback a children
|
|
76
76
|
specialChildrenAvailability: {
|
|
77
77
|
passed: firstTime ? hasSpaceAvailable : true,
|
|
78
78
|
currentCount: specialChildrenCount,
|
|
@@ -80,7 +80,7 @@ export function captureCalendarValidations(_ref) {
|
|
|
80
80
|
hasSpace: hasSpecialChildrenSpace,
|
|
81
81
|
hasChildrenFallback: hasChildrenSpaceForFallback,
|
|
82
82
|
willUseChildrenCapacity: !hasSpecialChildrenSpace && hasChildrenSpaceForFallback,
|
|
83
|
-
|
|
83
|
+
isFirstBooking: !!firstTime
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -202,7 +202,6 @@ export function useTournament(): UseTournamentReturn {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
if (turnType === "aog") return gameArena;
|
|
205
|
-
if (turnType === "acg") return coordinateArena;
|
|
206
205
|
if (turnType === "cc") return tournamentChess;
|
|
207
206
|
if (turnType === "bh") return bughouse;
|
|
208
207
|
if (turnType === "acg-co") return coordinate;
|