@pisell/pisellos 0.0.419 → 0.0.421
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.
|
@@ -4272,7 +4272,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4272
4272
|
if (res.usable && !m.onlyComputed) {
|
|
4273
4273
|
isAnyTimeSliceUseable = true;
|
|
4274
4274
|
if (resource.type === 'multiple') {
|
|
4275
|
-
availableCount +=
|
|
4275
|
+
availableCount += res.remainingCapacity;
|
|
4276
4276
|
} else {
|
|
4277
4277
|
availableCount += 1;
|
|
4278
4278
|
}
|
|
@@ -4299,7 +4299,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4299
4299
|
|
|
4300
4300
|
if (status === 'unavailable') {
|
|
4301
4301
|
// dateStatus = 'unavailable'
|
|
4302
|
-
if (
|
|
4302
|
+
if (availableCount === 0 && summaryCount > 0) dateStatus = 'sold_out';else dateStatus = 'unavailable';
|
|
4303
4303
|
} else {
|
|
4304
4304
|
usageRatio = availableCount / summaryCount;
|
|
4305
4305
|
if (usageRatio > 0.5) dateStatus = 'lots_of_space';else dateStatus = 'filling_up_fast';
|
|
@@ -2974,7 +2974,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2974
2974
|
if (res2.usable && !m.onlyComputed) {
|
|
2975
2975
|
isAnyTimeSliceUseable = true;
|
|
2976
2976
|
if (resource.type === "multiple") {
|
|
2977
|
-
availableCount +=
|
|
2977
|
+
availableCount += res2.remainingCapacity;
|
|
2978
2978
|
} else {
|
|
2979
2979
|
availableCount += 1;
|
|
2980
2980
|
}
|
|
@@ -2999,7 +2999,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2999
2999
|
}
|
|
3000
3000
|
let dateStatus;
|
|
3001
3001
|
if (status === "unavailable") {
|
|
3002
|
-
if (
|
|
3002
|
+
if (availableCount === 0 && summaryCount > 0)
|
|
3003
3003
|
dateStatus = "sold_out";
|
|
3004
3004
|
else
|
|
3005
3005
|
dateStatus = "unavailable";
|