@nanas-home/hub-common 0.61.1366 → 0.61.1375

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.
@@ -268,6 +268,7 @@ var apiRoute = {
268
268
  assignHost: `/assign-host/${apiRouteParam.bookingUuid}/${apiRouteParam.userUuid}`,
269
269
  removeHost: `/remove-host/${apiRouteParam.bookingUuid}/${apiRouteParam.bookingHostUuid}`,
270
270
  calendarOverview: "/calendar-overview",
271
+ manualCreate: "/manual",
271
272
  swagger: { name: "Bookings", description: "Endpoints for managing bookings" }
272
273
  },
273
274
  bugReport: {
@@ -1103,8 +1104,73 @@ var CommonConfigService = class {
1103
1104
  getBool = (property, defaultValue) => this.get(property, defaultValue).toLowerCase() == "true";
1104
1105
  getNumber = (property, defaultValue) => Number(this.get(property, defaultValue?.toString?.()));
1105
1106
  };
1107
+
1108
+ // src/helpers/dateDtoHelper.ts
1109
+ var numberOfDaysPerMonth = {
1110
+ defaultYear: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
1111
+ leapYear: [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
1112
+ };
1113
+ var dateDtoToDateColumn = (dateObj) => `${dateObj.year}-${dateObj.month.toString().padStart(2, "0")}-${dateObj.day.toString().padStart(2, "0")}`;
1114
+ var dateColumnToDateDto = (dateStr) => {
1115
+ const segments = dateStr.split("-");
1116
+ if (segments.length != 3) return { day: 1, month: 1, year: 2e3 };
1117
+ const year = Number(segments[0]);
1118
+ const month = Math.min(12, Number(segments[1]));
1119
+ const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
1120
+ const day = Math.min(daysInMonthItem, Number(segments[2]));
1121
+ return { year, month, day };
1122
+ };
1123
+ var dateToDateDto = (date) => ({
1124
+ year: date.getFullYear(),
1125
+ month: date.getMonth() + 1,
1126
+ day: date.getDate()
1127
+ });
1128
+ var dateDtoToJsDate = (dateObj) => new Date(dateObj.year, dateObj.month - 1, dateObj.day);
1129
+ var isDateDto = (value) => {
1130
+ if (value == null || typeof value !== "object") return false;
1131
+ const candidate = value;
1132
+ return typeof candidate.year === "number" && typeof candidate.month === "number" && typeof candidate.day === "number" && typeof candidate.getTime !== "function";
1133
+ };
1134
+ var isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
1135
+ var getNumberOfDaysInAMonth = (year, month) => {
1136
+ const daysInMonth = isLeapYear(year) ? numberOfDaysPerMonth.leapYear : numberOfDaysPerMonth.defaultYear;
1137
+ const daysInMonthItem = daysInMonth[month - 1];
1138
+ if (daysInMonthItem == null) {
1139
+ throw "Invalid date";
1140
+ }
1141
+ return daysInMonthItem;
1142
+ };
1143
+ var getNextDayOfDateDto = (d) => {
1144
+ let { day, month, year } = d;
1145
+ const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
1146
+ day++;
1147
+ if (day > daysInMonthItem) {
1148
+ day = 1;
1149
+ month++;
1150
+ if (month > 12) {
1151
+ month = 1;
1152
+ year++;
1153
+ }
1154
+ }
1155
+ return { day, month, year };
1156
+ };
1157
+ var dateDtoCompare = (a, b) => {
1158
+ if (a.year !== b.year) return a.year - b.year;
1159
+ if (a.month !== b.month) return a.month - b.month;
1160
+ return a.day - b.day;
1161
+ };
1162
+ var dateDtoIsBefore = (a, b) => {
1163
+ const compareResult = dateDtoCompare(a, b);
1164
+ if (compareResult == 0) return false;
1165
+ if (compareResult > 0) return false;
1166
+ return true;
1167
+ };
1168
+ var toDayjsInput = (date) => {
1169
+ if (isDateDto(date)) return dateDtoToJsDate(date);
1170
+ return date;
1171
+ };
1106
1172
  var formatDate = (date, format = "DD MMM YYYY HH:mm") => {
1107
- const dateStr = dayjs(date).format(format);
1173
+ const dateStr = dayjs(toDayjsInput(date)).format(format);
1108
1174
  if (dateStr.includes("Invalid")) return "";
1109
1175
  return dateStr;
1110
1176
  };
@@ -1118,14 +1184,12 @@ var addSeconds = (date, seconds) => dayjs(date).add(seconds, "seconds").toDate()
1118
1184
  var addMinutes = (date, minutes) => dayjs(date).add(minutes, "minutes").toDate();
1119
1185
  var addDays = (date, days) => dayjs(date).add(days, "days").toDate();
1120
1186
  var addMonths = (date, months) => dayjs(date).add(months, "months").toDate();
1121
- var isBefore = (date, secondDate) => dayjs(date).isBefore(secondDate);
1122
- var isSameDay = (date, secondDate) => dayjs(date).isSame(secondDate, "day");
1187
+ var isBefore = (date, secondDate) => dayjs(toDayjsInput(date)).isBefore(toDayjsInput(secondDate));
1188
+ var isSameDay = (date, secondDate) => dayjs(toDayjsInput(date)).isSame(toDayjsInput(secondDate), "day");
1123
1189
  var dateDiffInDays = (date, secondDate) => {
1124
- const date1 = new Date(date);
1125
- const date2 = new Date(secondDate);
1126
- const diffTime = Math.abs(date2.getTime() - date1.getTime());
1127
- const diffDays = Math.floor(diffTime / (1e3 * 60 * 60 * 24));
1128
- return diffDays;
1190
+ const date1 = toDayjsInput(date);
1191
+ const date2 = toDayjsInput(secondDate);
1192
+ return Math.abs(dayjs(date2).startOf("day").diff(dayjs(date1).startOf("day"), "day"));
1129
1193
  };
1130
1194
  var getAgeInYears = (birthDateOrStr, currentDate = /* @__PURE__ */ new Date()) => {
1131
1195
  const birthDate = new Date(birthDateOrStr);
@@ -1321,6 +1385,8 @@ var addToParallelTasks = async (tasks, newTask, numTasksInParallel = 5) => {
1321
1385
  tasks.push(newTask);
1322
1386
  return tasks;
1323
1387
  };
1388
+
1389
+ // src/helpers/bookingCalendarHelper.ts
1324
1390
  var getBookingStatusLabelForAdmin = (status) => {
1325
1391
  switch (status) {
1326
1392
  case 0 /* Cancelled */:
@@ -1417,12 +1483,7 @@ var filterBookingsByOverviewStatus = (bookings, statuses) => {
1417
1483
  const allowed = new Set(statuses);
1418
1484
  return bookings.filter((booking) => allowed.has(booking.status));
1419
1485
  };
1420
- var computeBookingNightCount = (startDate, endDate) => {
1421
- const nights = Math.abs(
1422
- dayjs(endDate).startOf("day").diff(dayjs(startDate).startOf("day"), "day")
1423
- );
1424
- return Math.max(1, nights);
1425
- };
1486
+ var computeBookingNightCount = (startDate, endDate) => Math.max(1, dateDiffInDays(startDate, endDate));
1426
1487
  var formatBookingNightsTooltip = (startDate, endDate) => {
1427
1488
  const nights = computeBookingNightCount(startDate, endDate);
1428
1489
  return nights === 1 ? "1 night" : `${nights} nights`;
@@ -1622,61 +1683,6 @@ var getUsersName = (details) => {
1622
1683
  return names.filter((n) => n != null).join(" ");
1623
1684
  };
1624
1685
 
1625
- // src/helpers/dateDtoHelper.ts
1626
- var numberOfDaysPerMonth = {
1627
- defaultYear: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
1628
- leapYear: [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
1629
- };
1630
- var dateDtoToDateColumn = (dateObj) => `${dateObj.year}-${dateObj.month.toString().padStart(2, "0")}-${dateObj.day.toString().padStart(2, "0")}`;
1631
- var dateColumnToDateDto = (dateStr) => {
1632
- const segments = dateStr.split("-");
1633
- if (segments.length != 3) return { day: 1, month: 1, year: 2e3 };
1634
- const year = Number(segments[0]);
1635
- const month = Math.min(12, Number(segments[1]));
1636
- const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
1637
- const day = Math.min(daysInMonthItem, Number(segments[2]));
1638
- return { year, month, day };
1639
- };
1640
- var dateToDateDto = (date) => ({
1641
- year: date.getFullYear(),
1642
- month: date.getMonth() + 1,
1643
- day: date.getDate()
1644
- });
1645
- var isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
1646
- var getNumberOfDaysInAMonth = (year, month) => {
1647
- const daysInMonth = isLeapYear(year) ? numberOfDaysPerMonth.leapYear : numberOfDaysPerMonth.defaultYear;
1648
- const daysInMonthItem = daysInMonth[month - 1];
1649
- if (daysInMonthItem == null) {
1650
- throw "Invalid date";
1651
- }
1652
- return daysInMonthItem;
1653
- };
1654
- var getNextDayOfDateDto = (d) => {
1655
- let { day, month, year } = d;
1656
- const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
1657
- day++;
1658
- if (day > daysInMonthItem) {
1659
- day = 1;
1660
- month++;
1661
- if (month > 12) {
1662
- month = 1;
1663
- year++;
1664
- }
1665
- }
1666
- return { day, month, year };
1667
- };
1668
- var dateDtoCompare = (a, b) => {
1669
- if (a.year !== b.year) return a.year - b.year;
1670
- if (a.month !== b.month) return a.month - b.month;
1671
- return a.day - b.day;
1672
- };
1673
- var dateDtoIsBefore = (a, b) => {
1674
- const compareResult = dateDtoCompare(a, b);
1675
- if (compareResult == 0) return false;
1676
- if (compareResult > 0) return false;
1677
- return true;
1678
- };
1679
-
1680
1686
  // src/helpers/debounceHelper.ts
1681
1687
  function debounceLeading(fn, ms) {
1682
1688
  let timer;
@@ -2356,4 +2362,4 @@ var shouldBeYoutubeUrl = (value) => {
2356
2362
  };
2357
2363
  };
2358
2364
 
2359
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CaptchaNodeService, CaptchaTokenRestriction, CdnAppImage, ClientRegisterStep, CommentLinkType, CommentRestriction, CommonConfigService, DateObjectRestriction, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, SentEmailLinkType, SentEmailRestriction, SentEmailSentStatus, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateColumnToDateDto, dateDiffInDays, dateDtoCompare, dateDtoIsBefore, dateDtoToDateColumn, dateToDateDto, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getNextDayOfDateDto, getNumberOfDaysInAMonth, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isLeapYear, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxDateDto, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minDateDto, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, numberOfDaysPerMonth, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
2365
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CaptchaNodeService, CaptchaTokenRestriction, CdnAppImage, ClientRegisterStep, CommentLinkType, CommentRestriction, CommonConfigService, DateObjectRestriction, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, SentEmailLinkType, SentEmailRestriction, SentEmailSentStatus, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateColumnToDateDto, dateDiffInDays, dateDtoCompare, dateDtoIsBefore, dateDtoToDateColumn, dateDtoToJsDate, dateToDateDto, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getNextDayOfDateDto, getNumberOfDaysInAMonth, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateDto, isDateEnabledByEnabledDays, isLeapYear, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxDateDto, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minDateDto, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, numberOfDaysPerMonth, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
@@ -1,5 +1,5 @@
1
- import { I as ILogger, R as ResultWithValue, a as Result, b as IDependencyInjectionSetupProps, L as LogService, C as CommonConfigService, c as CaptchaNodeService } from '../textValidation-CDAetMyD.js';
2
- export { dU as APP_TYPE_TOKEN, ao as ActivityDto, F as ActivityLocationType, bY as ActivityRestriction, P as ActivityType, ap as AddressCreateDto, aq as AddressDto, Q as AddressLinkType, ar as AddressLookupDto, bZ as AddressRestriction, as as AddressUpdateDto, at as AnswerCreateDto, au as AnswerDto, U as AnswerLinkType, b_ as AnswerRestriction, A as AppType, av as AuthChangePasswordDto, aw as AuthLoginDto, ax as AuthPatDto, ay as AuthRegisterAddressDto, az as AuthRegisterDto, aA as AuthRegisterGetQuestionsDto, aB as AuthRegisterGetTempUploadUrlDto, aC as AuthRegisterGetTempUploadUrlResponseDto, aD as AuthRegisterPetDto, aE as AuthRegisterQuestionDto, b$ as AuthRegisterRestriction, aF as AuthRegisterStoreProgressDto, aG as AuthRegisterUserDto, aH as AuthRequestResetPasswordDto, aI as AuthResetPasswordDto, aJ as AuthSuccessDto, cC as BOOKING_OVERVIEW_STATUSES, dS as BOT_PATH_TOKEN, aK as BookingAddonDto, c1 as BookingAddonRestriction, V as BookingAddonType, cw as BookingCalendarOverviewItem, aL as BookingCalendarOverviewItemDto, aM as BookingCreateDto, aN as BookingDto, aO as BookingHostAssignDto, aP as BookingHostCreateDto, aQ as BookingHostDto, aR as BookingHostUpdateDto, aS as BookingPriceLineItemDto, aT as BookingPricePredictionSummaryDto, c0 as BookingRestriction, aU as BookingRestrictionsDto, aV as BookingRestrictionsEnabledDaysDto, aW as BookingRestrictionsPremiumEnabledDaysDto, cD as BookingStatusCounts, X as BookingStatusType, aX as BookingUpdateDto, aY as BookingWithRelationshipsDto, aZ as BugReportCreateDto, a_ as BugReportDto, c2 as BugReportRestriction, Y as BugReportStatusType, a$ as BugReportUpdateDto, k as CachedValue, c5 as CaptchaTokenRestriction, e as CdnAppImage, B as ClickEvent, b1 as ClientAnswerSaveDto, cm as ClientRegisterStep, b2 as CommentCreateDto, b3 as CommentDto, Z as CommentLinkType, c3 as CommentRestriction, b4 as CommentUpdateDto, b5 as DateDto, c6 as DateObjectRestriction, dQ as DependencyInjectionContainer, t as DependencyInjectionFactory, r as DependencyInjectionIdentifier, D as DependencyInjectionToken, c7 as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, y as HtmlFilesEvent, z as HtmlImageReadEvent, x as HtmlKeyEvent, l as ICaptchaOptions, o as ICaptchaResponse, u as IDependencyInjectionSetupWebProps, dh as IImageParams, ck as ILogMessage, cl as IMediaUpload, dP as ISite, dM as ISiteColour, b6 as InvoiceCreateDto, b7 as InvoiceDto, c8 as InvoiceRestriction, _ as InvoiceStatusType, b8 as InvoiceUpdateDto, b9 as InvoiceWithStripeInfoDto, bX as JwtPayloadDto, K as KeyEvent, cj as LogMethod, $ as LogType, a0 as MembershipBillingCycleType, ba as MembershipCreateDto, bb as MembershipDto, c9 as MembershipRestriction, a1 as MembershipStatus, a2 as MembershipType, bc as MembershipUpdateDto, M as MonthTranslationKey, h as MouseButton, N as NANAS_PALLETTE, a3 as NetworkState, co as NominatimAddressResponse, cn as NominatimResponse, dD as ObjectWithPropsOfValue, a4 as OrderDirectionType, bd as PaginationRequestDto, be as PaginationResponseDto, bf as PaymentMethodDto, ca as PermissionRestriction, a5 as PermissionType, bg as PetCreateDto, bh as PetDto, cb as PetRestriction, a6 as PetSexType, a7 as PetStatusType, a8 as PetType, bi as PetUpdateDto, dE as Prettify, bj as ProfileDto, bk as ProfileQuestionAndAnswersItemDto, bl as ProfileQuestionRequestDto, bm as ProfileUpdateDto, bn as QuestionCreateDto, bo as QuestionDto, aa as QuestionForType, cc as QuestionRestriction, a9 as QuestionType, bp as QuestionUpdateDto, cM as RenderCellType, dW as SITE_CONFIG_TOKEN, bq as SearchObjDatePropRequestDto, br as SearchObjRequestDto, bs as SearchObjTextPropRequestDto, ad as SearchableColumnInfo, ac as SearchableColumnType, bt as SentEmailCreateDto, bu as SentEmailDto, ae as SentEmailLinkType, cd as SentEmailRestriction, af as SentEmailSentStatus, bv as SetupIntentCreateDto, bw as SetupIntentDto, ce as StripeRestriction, S as SupportedLanguage, f as SupportedLanguageArray, bx as TempLinkCreateDto, by as TempLinkDto, ag as TempLinkType, bz as TempLinkWithUserNamesDto, bA as TempRegistrationDto, bB as TempRegistrationForClientDto, ah as TempRegistrationStatus, T as ThemeType, cf as UnavailabilityRestriction, bC as UploadCreateDto, bD as UploadDto, bE as UploadImageWithLinkDto, ai as UploadLinkType, cg as UploadRestriction, aj as UploadType, bF as UploadUpdateDto, al as UserAccountFlagType, bG as UserCreateDto, bH as UserDto, bI as UserMembershipChangeResponseDto, bJ as UserMembershipCreateDto, bK as UserMembershipDto, bL as UserMembershipSignUpDto, bM as UserMembershipSignUpResponseDto, bN as UserMembershipStatsDto, bO as UserMembershipUpdateDto, bP as UserMembershipWithStripeInfoDto, bQ as UserMembershipWithUserNamesDto, dL as UserMigrationReport, dK as UserMigrationReportCounts, bR as UserMigrationReportCountsDto, bS as UserMigrationReportDto, dJ as UserMigrationReportUser, bT as UserMigrationReportUserDto, bU as UserPermissionDto, ch as UserRestriction, am as UserType, bV as UserUpdateDto, c4 as UuidRestriction, cp as ValidationResult, bW as VersionDto, W as WeekdayTranslationKey, G as activityShortCode, d5 as addDays, d4 as addMinutes, d6 as addMonths, d3 as addSeconds, dz as addSpacesForEnum, cv as addToParallelTasks, ec as allowedNonNumericalValuesInContactNumber, dB as anyObject, O as apiRoute, J as apiRouteParam, ct as arrayContains, cs as arrayOfNLength, dx as capitalizeFirstLetter, b0 as captchaToken, dN as colourPalette, g as commonEmailLinks, cG as computeBookingNightCount, cE as computeBookingStatusCounts, ed as contactNumberCharValid, ee as contactNumberValid, q as createToken, dg as cyrb53, cR as dateColumnToDateDto, d9 as dateDiffInDays, cW as dateDtoCompare, cX as dateDtoIsBefore, cQ as dateDtoToDateColumn, cS as dateToDateDto, dd as debounceLeading, dO as defaultSiteColour, ej as emailValid, dC as fakePromise, cF as filterBookingsByOverviewStatus, cB as formatBookingCalendarLabel, cH as formatBookingNightsTooltip, cY as formatDate, dA as formatFileSize, d2 as formatForBookingDate, c_ as formatForDateDropdown, cZ as formatForDateLocal, d1 as formatForDateLocalDetailed, c$ as formatForDateOfBirth, d0 as formatForDateWithTime, cA as formatPetTypesLabel, dI as getActiveUserMembership, da as getAgeInYears, ab as getAllPetQuestionForType, dV as getAppType, de as getArrFromEnum, cx as getBookingStatusLabelForAdmin, dT as getBotPath, d_ as getCommonConfig, cK as getDayClassObject, cN as getDayElements, cL as getDayHeadingElements, di as getImageParams, d$ as getLog, cy as getMembershipTypeLabel, dl as getMimeTypeFromExtension, cV as getNextDayOfDateDto, cU as getNumberOfDaysInAMonth, dj as getPayloadFromJwt, dn as getPerformanceTimer, dr as getPetAvatarUrl, cz as getPetTypeLabel, du as getQuestionGroups, dZ as getSiteColour, dY as getSiteConfig, dq as getUserAvatarUrl, cO as getUsersName, db as getWeekNumber, dp as hasRequiredPermissions, an as hubspotQuestionsExport, d7 as isBefore, cT as isLeapYear, ek as isNumber, d8 as isSameDay, i as isWebApp, dy as lowercaseFirstLetter, cq as makeArrayOrDefault, ei as maxDate, eg as maxDateDto, e4 as maxItems, eq as maxLength, em as maxValue, dk as mimeTypeLookup, eh as minDate, ef as minDateDto, e3 as minItems, ep as minLength, j as minUrlLength, el as minValue, m as monthTranslationKeyOrder, e9 as multiValidation, dt as nameof, n as nanasFonts, e7 as noValidation, e8 as notNull, cP as numberOfDaysPerMonth, cr as onlyUnique, cJ as parseBookingOverviewStatuses, en as passwordValid, p as portalGlyphLength, eo as postCodeValid, ds as promiseFromValue, dv as randomIntFromRange, dw as randomItemFromArray, dR as rootContainer, e0 as rootDependencyInjectionSetup, ci as searchColumns, e5 as selectedItemsExist, e6 as selectedOptionIsInEnum, ea as separateValidation, cI as serializeBookingOverviewStatuses, e1 as setContainerToken, e2 as setContainerTokenLazy, dX as setSiteConfig, er as shouldBeUrl, es as shouldBeYoutubeUrl, dc as showSecondCalendar, s as socialLinks, cu as timeout, dm as tryParseNumber, ak as uploadsThatNeedEncryption, dG as urlAddQueryParam, dF as urlRef, dH as userMustChangePassword, df as uuidv4, v as validUuidChars, eb as validateForEach, w as webAppTypes, d as weekdayTranslationKeyOrder } from '../textValidation-CDAetMyD.js';
1
+ import { I as ILogger, R as ResultWithValue, a as Result, b as IDependencyInjectionSetupProps, L as LogService, C as CommonConfigService, c as CaptchaNodeService } from '../textValidation-CyV7O-U1.js';
2
+ export { dW as APP_TYPE_TOKEN, ao as ActivityDto, F as ActivityLocationType, bY as ActivityRestriction, P as ActivityType, ap as AddressCreateDto, aq as AddressDto, Q as AddressLinkType, ar as AddressLookupDto, bZ as AddressRestriction, as as AddressUpdateDto, at as AnswerCreateDto, au as AnswerDto, U as AnswerLinkType, b_ as AnswerRestriction, A as AppType, av as AuthChangePasswordDto, aw as AuthLoginDto, ax as AuthPatDto, ay as AuthRegisterAddressDto, az as AuthRegisterDto, aA as AuthRegisterGetQuestionsDto, aB as AuthRegisterGetTempUploadUrlDto, aC as AuthRegisterGetTempUploadUrlResponseDto, aD as AuthRegisterPetDto, aE as AuthRegisterQuestionDto, b$ as AuthRegisterRestriction, aF as AuthRegisterStoreProgressDto, aG as AuthRegisterUserDto, aH as AuthRequestResetPasswordDto, aI as AuthResetPasswordDto, aJ as AuthSuccessDto, cC as BOOKING_OVERVIEW_STATUSES, dU as BOT_PATH_TOKEN, aK as BookingAddonDto, c1 as BookingAddonRestriction, V as BookingAddonType, cw as BookingCalendarOverviewItem, aL as BookingCalendarOverviewItemDto, aM as BookingCreateDto, aN as BookingDto, aO as BookingHostAssignDto, aP as BookingHostCreateDto, aQ as BookingHostDto, aR as BookingHostUpdateDto, aS as BookingPriceLineItemDto, aT as BookingPricePredictionSummaryDto, c0 as BookingRestriction, aU as BookingRestrictionsDto, aV as BookingRestrictionsEnabledDaysDto, aW as BookingRestrictionsPremiumEnabledDaysDto, cD as BookingStatusCounts, X as BookingStatusType, aX as BookingUpdateDto, aY as BookingWithRelationshipsDto, aZ as BugReportCreateDto, a_ as BugReportDto, c2 as BugReportRestriction, Y as BugReportStatusType, a$ as BugReportUpdateDto, k as CachedValue, c5 as CaptchaTokenRestriction, e as CdnAppImage, B as ClickEvent, b1 as ClientAnswerSaveDto, cm as ClientRegisterStep, b2 as CommentCreateDto, b3 as CommentDto, Z as CommentLinkType, c3 as CommentRestriction, b4 as CommentUpdateDto, b5 as DateDto, c6 as DateObjectRestriction, dS as DependencyInjectionContainer, t as DependencyInjectionFactory, r as DependencyInjectionIdentifier, D as DependencyInjectionToken, c7 as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, y as HtmlFilesEvent, z as HtmlImageReadEvent, x as HtmlKeyEvent, l as ICaptchaOptions, o as ICaptchaResponse, u as IDependencyInjectionSetupWebProps, dj as IImageParams, ck as ILogMessage, cl as IMediaUpload, dR as ISite, dO as ISiteColour, b6 as InvoiceCreateDto, b7 as InvoiceDto, c8 as InvoiceRestriction, _ as InvoiceStatusType, b8 as InvoiceUpdateDto, b9 as InvoiceWithStripeInfoDto, bX as JwtPayloadDto, K as KeyEvent, cj as LogMethod, $ as LogType, a0 as MembershipBillingCycleType, ba as MembershipCreateDto, bb as MembershipDto, c9 as MembershipRestriction, a1 as MembershipStatus, a2 as MembershipType, bc as MembershipUpdateDto, M as MonthTranslationKey, h as MouseButton, N as NANAS_PALLETTE, a3 as NetworkState, co as NominatimAddressResponse, cn as NominatimResponse, dF as ObjectWithPropsOfValue, a4 as OrderDirectionType, bd as PaginationRequestDto, be as PaginationResponseDto, bf as PaymentMethodDto, ca as PermissionRestriction, a5 as PermissionType, bg as PetCreateDto, bh as PetDto, cb as PetRestriction, a6 as PetSexType, a7 as PetStatusType, a8 as PetType, bi as PetUpdateDto, dG as Prettify, bj as ProfileDto, bk as ProfileQuestionAndAnswersItemDto, bl as ProfileQuestionRequestDto, bm as ProfileUpdateDto, bn as QuestionCreateDto, bo as QuestionDto, aa as QuestionForType, cc as QuestionRestriction, a9 as QuestionType, bp as QuestionUpdateDto, cM as RenderCellType, dY as SITE_CONFIG_TOKEN, bq as SearchObjDatePropRequestDto, br as SearchObjRequestDto, bs as SearchObjTextPropRequestDto, ad as SearchableColumnInfo, ac as SearchableColumnType, bt as SentEmailCreateDto, bu as SentEmailDto, ae as SentEmailLinkType, cd as SentEmailRestriction, af as SentEmailSentStatus, bv as SetupIntentCreateDto, bw as SetupIntentDto, ce as StripeRestriction, S as SupportedLanguage, f as SupportedLanguageArray, bx as TempLinkCreateDto, by as TempLinkDto, ag as TempLinkType, bz as TempLinkWithUserNamesDto, bA as TempRegistrationDto, bB as TempRegistrationForClientDto, ah as TempRegistrationStatus, T as ThemeType, cf as UnavailabilityRestriction, bC as UploadCreateDto, bD as UploadDto, bE as UploadImageWithLinkDto, ai as UploadLinkType, cg as UploadRestriction, aj as UploadType, bF as UploadUpdateDto, al as UserAccountFlagType, bG as UserCreateDto, bH as UserDto, bI as UserMembershipChangeResponseDto, bJ as UserMembershipCreateDto, bK as UserMembershipDto, bL as UserMembershipSignUpDto, bM as UserMembershipSignUpResponseDto, bN as UserMembershipStatsDto, bO as UserMembershipUpdateDto, bP as UserMembershipWithStripeInfoDto, bQ as UserMembershipWithUserNamesDto, dN as UserMigrationReport, dM as UserMigrationReportCounts, bR as UserMigrationReportCountsDto, bS as UserMigrationReportDto, dL as UserMigrationReportUser, bT as UserMigrationReportUserDto, bU as UserPermissionDto, ch as UserRestriction, am as UserType, bV as UserUpdateDto, c4 as UuidRestriction, cp as ValidationResult, bW as VersionDto, W as WeekdayTranslationKey, G as activityShortCode, d7 as addDays, d6 as addMinutes, d8 as addMonths, d5 as addSeconds, dB as addSpacesForEnum, cv as addToParallelTasks, ee as allowedNonNumericalValuesInContactNumber, dD as anyObject, O as apiRoute, J as apiRouteParam, ct as arrayContains, cs as arrayOfNLength, dz as capitalizeFirstLetter, b0 as captchaToken, dP as colourPalette, g as commonEmailLinks, cG as computeBookingNightCount, cE as computeBookingStatusCounts, ef as contactNumberCharValid, eg as contactNumberValid, q as createToken, di as cyrb53, cR as dateColumnToDateDto, db as dateDiffInDays, cY as dateDtoCompare, cZ as dateDtoIsBefore, cQ as dateDtoToDateColumn, cT as dateDtoToJsDate, cS as dateToDateDto, df as debounceLeading, dQ as defaultSiteColour, el as emailValid, dE as fakePromise, cF as filterBookingsByOverviewStatus, cB as formatBookingCalendarLabel, cH as formatBookingNightsTooltip, c_ as formatDate, dC as formatFileSize, d4 as formatForBookingDate, d0 as formatForDateDropdown, c$ as formatForDateLocal, d3 as formatForDateLocalDetailed, d1 as formatForDateOfBirth, d2 as formatForDateWithTime, cA as formatPetTypesLabel, dK as getActiveUserMembership, dc as getAgeInYears, ab as getAllPetQuestionForType, dX as getAppType, dg as getArrFromEnum, cx as getBookingStatusLabelForAdmin, dV as getBotPath, e0 as getCommonConfig, cK as getDayClassObject, cN as getDayElements, cL as getDayHeadingElements, dk as getImageParams, e1 as getLog, cy as getMembershipTypeLabel, dn as getMimeTypeFromExtension, cX as getNextDayOfDateDto, cW as getNumberOfDaysInAMonth, dl as getPayloadFromJwt, dq as getPerformanceTimer, dt as getPetAvatarUrl, cz as getPetTypeLabel, dw as getQuestionGroups, d$ as getSiteColour, d_ as getSiteConfig, ds as getUserAvatarUrl, cO as getUsersName, dd as getWeekNumber, dr as hasRequiredPermissions, an as hubspotQuestionsExport, d9 as isBefore, cU as isDateDto, cV as isLeapYear, em as isNumber, da as isSameDay, i as isWebApp, dA as lowercaseFirstLetter, cq as makeArrayOrDefault, ek as maxDate, ei as maxDateDto, e6 as maxItems, es as maxLength, eo as maxValue, dm as mimeTypeLookup, ej as minDate, eh as minDateDto, e5 as minItems, er as minLength, j as minUrlLength, en as minValue, m as monthTranslationKeyOrder, eb as multiValidation, dv as nameof, n as nanasFonts, e9 as noValidation, ea as notNull, cP as numberOfDaysPerMonth, cr as onlyUnique, cJ as parseBookingOverviewStatuses, ep as passwordValid, p as portalGlyphLength, eq as postCodeValid, du as promiseFromValue, dx as randomIntFromRange, dy as randomItemFromArray, dT as rootContainer, e2 as rootDependencyInjectionSetup, ci as searchColumns, e7 as selectedItemsExist, e8 as selectedOptionIsInEnum, ec as separateValidation, cI as serializeBookingOverviewStatuses, e3 as setContainerToken, e4 as setContainerTokenLazy, dZ as setSiteConfig, et as shouldBeUrl, eu as shouldBeYoutubeUrl, de as showSecondCalendar, s as socialLinks, cu as timeout, dp as tryParseNumber, ak as uploadsThatNeedEncryption, dI as urlAddQueryParam, dH as urlRef, dJ as userMustChangePassword, dh as uuidv4, v as validUuidChars, ed as validateForEach, w as webAppTypes, d as weekdayTranslationKeyOrder } from '../textValidation-CyV7O-U1.js';
3
3
  import 'solid-js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, CdnAppImage, rootDependencyInjectionSetup, setContainerToken, CaptchaNodeService } from '../chunk/L6A6KIRK.js';
2
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CaptchaNodeService, CaptchaTokenRestriction, CdnAppImage, ClientRegisterStep, CommentLinkType, CommentRestriction, CommonConfigService, DateObjectRestriction, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, SentEmailLinkType, SentEmailRestriction, SentEmailSentStatus, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, createToken, cyrb53, dateColumnToDateDto, dateDiffInDays, dateDtoCompare, dateDtoIsBefore, dateDtoToDateColumn, dateToDateDto, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getNextDayOfDateDto, getNumberOfDaysInAMonth, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isLeapYear, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxDateDto, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minDateDto, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, numberOfDaysPerMonth, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/L6A6KIRK.js';
1
+ import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, CdnAppImage, rootDependencyInjectionSetup, setContainerToken, CaptchaNodeService } from '../chunk/MBQCYCBZ.js';
2
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CaptchaNodeService, CaptchaTokenRestriction, CdnAppImage, ClientRegisterStep, CommentLinkType, CommentRestriction, CommonConfigService, DateObjectRestriction, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, SentEmailLinkType, SentEmailRestriction, SentEmailSentStatus, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, createToken, cyrb53, dateColumnToDateDto, dateDiffInDays, dateDtoCompare, dateDtoIsBefore, dateDtoToDateColumn, dateDtoToJsDate, dateToDateDto, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getNextDayOfDateDto, getNumberOfDaysInAMonth, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateDto, isLeapYear, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxDateDto, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minDateDto, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, numberOfDaysPerMonth, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/MBQCYCBZ.js';
3
3
  import fs6, { stat } from 'fs/promises';
4
4
  import path12 from 'path';
5
5
  import fs2 from 'fs';
@@ -341,6 +341,7 @@ declare const apiRoute: {
341
341
  readonly assignHost: "/assign-host/:bookingUuid/:userUuid";
342
342
  readonly removeHost: "/remove-host/:bookingUuid/:bookingHostUuid";
343
343
  readonly calendarOverview: "/calendar-overview";
344
+ readonly manualCreate: "/manual";
344
345
  readonly swagger: {
345
346
  readonly name: "Bookings";
346
347
  readonly description: "Endpoints for managing bookings";
@@ -3507,8 +3508,8 @@ type BookingCalendarOverviewItem = {
3507
3508
  uuid: string;
3508
3509
  code: number;
3509
3510
  status: BookingStatusType;
3510
- startDate: Date | string;
3511
- endDate: Date | string;
3511
+ startDate: DateDto;
3512
+ endDate: DateDto;
3512
3513
  petNames: Array<string>;
3513
3514
  petTypes: Array<PetType>;
3514
3515
  ownerName: string;
@@ -3524,8 +3525,8 @@ declare const BOOKING_OVERVIEW_STATUSES: Array<BookingStatusType>;
3524
3525
  type BookingStatusCounts = Record<BookingStatusType, number>;
3525
3526
  declare const computeBookingStatusCounts: (bookings: Array<BookingCalendarOverviewItem>) => BookingStatusCounts;
3526
3527
  declare const filterBookingsByOverviewStatus: (bookings: Array<BookingCalendarOverviewItem>, statuses: Array<BookingStatusType> | null) => Array<BookingCalendarOverviewItem>;
3527
- declare const computeBookingNightCount: (startDate: Date | string, endDate: Date | string) => number;
3528
- declare const formatBookingNightsTooltip: (startDate: Date | string, endDate: Date | string) => string;
3528
+ declare const computeBookingNightCount: (startDate: DateDto, endDate: DateDto) => number;
3529
+ declare const formatBookingNightsTooltip: (startDate: DateDto, endDate: DateDto) => string;
3529
3530
  declare const serializeBookingOverviewStatuses: (statuses: Array<BookingStatusType>) => string | undefined;
3530
3531
  declare const parseBookingOverviewStatuses: (statuses: string | undefined) => Array<BookingStatusType> | undefined;
3531
3532
 
@@ -3625,6 +3626,9 @@ declare const numberOfDaysPerMonth: {
3625
3626
  declare const dateDtoToDateColumn: (dateObj: DateDto) => string;
3626
3627
  declare const dateColumnToDateDto: (dateStr: string) => DateDto;
3627
3628
  declare const dateToDateDto: (date: Date) => DateDto;
3629
+ /** Local calendar date — avoids UTC timezone shifts from ISO strings. */
3630
+ declare const dateDtoToJsDate: (dateObj: DateDto) => Date;
3631
+ declare const isDateDto: (value: unknown) => value is DateDto;
3628
3632
  declare const isLeapYear: (year: number) => boolean;
3629
3633
  declare const getNumberOfDaysInAMonth: (year: number, month: number) => number;
3630
3634
  declare const getNextDayOfDateDto: (d: DateDto) => DateDto;
@@ -3637,7 +3641,7 @@ declare const getNextDayOfDateDto: (d: DateDto) => DateDto;
3637
3641
  declare const dateDtoCompare: (a: DateDto, b: DateDto) => number;
3638
3642
  declare const dateDtoIsBefore: (a: DateDto, b: DateDto) => boolean;
3639
3643
 
3640
- type DateInput = Date | string | number | Record<string, never>;
3644
+ type DateInput = Date | string | number | DateDto | Record<string, never>;
3641
3645
  /** default date format: DD MMM YYYY HH:mm */
3642
3646
  declare const formatDate: (date: DateInput, format?: string) => string;
3643
3647
  /** YYYY-MM-DD HH:mm */
@@ -3651,14 +3655,14 @@ declare const formatForDateWithTime: (value: DateInput) => string;
3651
3655
  /** YYYY-MM-DDTHH:mm:ss */
3652
3656
  declare const formatForDateLocalDetailed: (date: DateInput) => Date;
3653
3657
  /** DD MMM YYYY - x nights */
3654
- declare const formatForBookingDate: (startDate: Date, endDate: Date) => string;
3658
+ declare const formatForBookingDate: (startDate: DateInput, endDate: DateInput) => string;
3655
3659
  declare const addSeconds: (date: Date, seconds: number) => Date;
3656
3660
  declare const addMinutes: (date: Date, minutes: number) => Date;
3657
3661
  declare const addDays: (date: Date, days: number) => Date;
3658
3662
  declare const addMonths: (date: Date, months: number) => Date;
3659
- declare const isBefore: (date: Date, secondDate: Date) => boolean;
3660
- declare const isSameDay: (date: Date, secondDate: Date) => boolean;
3661
- declare const dateDiffInDays: (date: Date, secondDate: Date) => number;
3663
+ declare const isBefore: (date: DateInput, secondDate: DateInput) => boolean;
3664
+ declare const isSameDay: (date: DateInput, secondDate: DateInput) => boolean;
3665
+ declare const dateDiffInDays: (date: DateInput, secondDate: DateInput) => number;
3662
3666
  declare const getAgeInYears: (birthDateOrStr: Date | string, currentDate?: Date) => number;
3663
3667
  declare const getWeekNumber: (d: Date) => number;
3664
3668
  declare const showSecondCalendar: (startDateStr: Date, endDateStr: Date) => boolean;
@@ -3899,4 +3903,4 @@ declare const maxLength: (maxLengthVal: number) => (value: string) => Validation
3899
3903
  declare const shouldBeUrl: (value: string) => ValidationResult;
3900
3904
  declare const shouldBeYoutubeUrl: (value: string) => ValidationResult;
3901
3905
 
3902
- export { type LogType as $, AppType as A, type ClickEvent as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, type ActivityLocationType as F, activityShortCode as G, type HtmlElementEvent as H, type ILogger as I, apiRouteParam as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, NANAS_PALLETTE as N, apiRoute as O, ActivityType as P, AddressLinkType as Q, type ResultWithValue as R, type SupportedLanguage as S, type ThemeType as T, AnswerLinkType as U, BookingAddonType as V, type WeekdayTranslationKey as W, BookingStatusType as X, BugReportStatusType as Y, CommentLinkType as Z, InvoiceStatusType as _, type Result as a, type BugReportUpdateDto as a$, MembershipBillingCycleType as a0, MembershipStatus as a1, MembershipType as a2, NetworkState as a3, OrderDirectionType as a4, PermissionType as a5, PetSexType as a6, PetStatusType as a7, PetType as a8, QuestionType as a9, type AuthRegisterGetQuestionsDto as aA, type AuthRegisterGetTempUploadUrlDto as aB, type AuthRegisterGetTempUploadUrlResponseDto as aC, type AuthRegisterPetDto as aD, type AuthRegisterQuestionDto as aE, type AuthRegisterStoreProgressDto as aF, type AuthRegisterUserDto as aG, type AuthRequestResetPasswordDto as aH, type AuthResetPasswordDto as aI, type AuthSuccessDto as aJ, type BookingAddonDto as aK, type BookingCalendarOverviewItemDto as aL, type BookingCreateDto as aM, type BookingDto as aN, type BookingHostAssignDto as aO, type BookingHostCreateDto as aP, type BookingHostDto as aQ, type BookingHostUpdateDto as aR, type BookingPriceLineItemDto as aS, type BookingPricePredictionSummaryDto as aT, type BookingRestrictionsDto as aU, type BookingRestrictionsEnabledDaysDto as aV, type BookingRestrictionsPremiumEnabledDaysDto as aW, type BookingUpdateDto as aX, type BookingWithRelationshipsDto as aY, type BugReportCreateDto as aZ, type BugReportDto as a_, QuestionForType as aa, getAllPetQuestionForType as ab, SearchableColumnType as ac, type SearchableColumnInfo as ad, SentEmailLinkType as ae, SentEmailSentStatus as af, TempLinkType as ag, TempRegistrationStatus as ah, UploadLinkType as ai, UploadType as aj, uploadsThatNeedEncryption as ak, UserAccountFlagType as al, UserType as am, hubspotQuestionsExport as an, type ActivityDto as ao, type AddressCreateDto as ap, type AddressDto as aq, type AddressLookupDto as ar, type AddressUpdateDto as as, type AnswerCreateDto as at, type AnswerDto as au, type AuthChangePasswordDto as av, type AuthLoginDto as aw, type AuthPatDto as ax, type AuthRegisterAddressDto as ay, type AuthRegisterDto as az, type IDependencyInjectionSetupProps as b, AuthRegisterRestriction as b$, type captchaToken as b0, type ClientAnswerSaveDto as b1, type CommentCreateDto as b2, type CommentDto as b3, type CommentUpdateDto as b4, type DateDto as b5, type InvoiceCreateDto as b6, type InvoiceDto as b7, type InvoiceUpdateDto as b8, type InvoiceWithStripeInfoDto as b9, type TempRegistrationDto as bA, type TempRegistrationForClientDto as bB, type UploadCreateDto as bC, type UploadDto as bD, type UploadImageWithLinkDto as bE, type UploadUpdateDto as bF, type UserCreateDto as bG, type UserDto as bH, type UserMembershipChangeResponseDto as bI, type UserMembershipCreateDto as bJ, type UserMembershipDto as bK, type UserMembershipSignUpDto as bL, type UserMembershipSignUpResponseDto as bM, type UserMembershipStatsDto as bN, type UserMembershipUpdateDto as bO, type UserMembershipWithStripeInfoDto as bP, type UserMembershipWithUserNamesDto as bQ, type UserMigrationReportCountsDto as bR, type UserMigrationReportDto as bS, type UserMigrationReportUserDto as bT, type UserPermissionDto as bU, type UserUpdateDto as bV, type VersionDto as bW, type JwtPayloadDto as bX, ActivityRestriction as bY, AddressRestriction as bZ, AnswerRestriction as b_, type MembershipCreateDto as ba, type MembershipDto as bb, type MembershipUpdateDto as bc, type PaginationRequestDto as bd, type PaginationResponseDto as be, type PaymentMethodDto as bf, type PetCreateDto as bg, type PetDto as bh, type PetUpdateDto as bi, type ProfileDto as bj, type ProfileQuestionAndAnswersItemDto as bk, type ProfileQuestionRequestDto as bl, type ProfileUpdateDto as bm, type QuestionCreateDto as bn, type QuestionDto as bo, type QuestionUpdateDto as bp, type SearchObjDatePropRequestDto as bq, type SearchObjRequestDto as br, type SearchObjTextPropRequestDto as bs, type SentEmailCreateDto as bt, type SentEmailDto as bu, type SetupIntentCreateDto as bv, type SetupIntentDto as bw, type TempLinkCreateDto as bx, type TempLinkDto as by, type TempLinkWithUserNamesDto as bz, CaptchaNodeService as c, formatForDateOfBirth as c$, BookingRestriction as c0, BookingAddonRestriction as c1, BugReportRestriction as c2, CommentRestriction as c3, UuidRestriction as c4, CaptchaTokenRestriction as c5, DateObjectRestriction as c6, DrivingRouteRestriction as c7, InvoiceRestriction as c8, MembershipRestriction as c9, formatPetTypesLabel as cA, formatBookingCalendarLabel as cB, BOOKING_OVERVIEW_STATUSES as cC, type BookingStatusCounts as cD, computeBookingStatusCounts as cE, filterBookingsByOverviewStatus as cF, computeBookingNightCount as cG, formatBookingNightsTooltip as cH, serializeBookingOverviewStatuses as cI, parseBookingOverviewStatuses as cJ, getDayClassObject as cK, getDayHeadingElements as cL, type RenderCellType as cM, getDayElements as cN, getUsersName as cO, numberOfDaysPerMonth as cP, dateDtoToDateColumn as cQ, dateColumnToDateDto as cR, dateToDateDto as cS, isLeapYear as cT, getNumberOfDaysInAMonth as cU, getNextDayOfDateDto as cV, dateDtoCompare as cW, dateDtoIsBefore as cX, formatDate as cY, formatForDateLocal as cZ, formatForDateDropdown as c_, PermissionRestriction as ca, PetRestriction as cb, QuestionRestriction as cc, SentEmailRestriction as cd, StripeRestriction as ce, UnavailabilityRestriction as cf, UploadRestriction as cg, UserRestriction as ch, searchColumns as ci, type LogMethod as cj, type ILogMessage as ck, type IMediaUpload as cl, ClientRegisterStep as cm, type NominatimResponse as cn, type NominatimAddressResponse as co, type ValidationResult as cp, makeArrayOrDefault as cq, onlyUnique as cr, arrayOfNLength as cs, arrayContains as ct, timeout as cu, addToParallelTasks as cv, type BookingCalendarOverviewItem as cw, getBookingStatusLabelForAdmin as cx, getMembershipTypeLabel as cy, getPetTypeLabel as cz, weekdayTranslationKeyOrder as d, getLog as d$, formatForDateWithTime as d0, formatForDateLocalDetailed as d1, formatForBookingDate as d2, addSeconds as d3, addMinutes as d4, addDays as d5, addMonths as d6, isBefore as d7, isSameDay as d8, dateDiffInDays as d9, formatFileSize as dA, anyObject as dB, fakePromise as dC, type ObjectWithPropsOfValue as dD, type Prettify as dE, urlRef as dF, urlAddQueryParam as dG, userMustChangePassword as dH, getActiveUserMembership as dI, type UserMigrationReportUser as dJ, type UserMigrationReportCounts as dK, type UserMigrationReport as dL, type ISiteColour as dM, colourPalette as dN, defaultSiteColour as dO, type ISite as dP, DependencyInjectionContainer as dQ, rootContainer as dR, BOT_PATH_TOKEN as dS, getBotPath as dT, APP_TYPE_TOKEN as dU, getAppType as dV, SITE_CONFIG_TOKEN as dW, setSiteConfig as dX, getSiteConfig as dY, getSiteColour as dZ, getCommonConfig as d_, getAgeInYears as da, getWeekNumber as db, showSecondCalendar as dc, debounceLeading as dd, getArrFromEnum as de, uuidv4 as df, cyrb53 as dg, type IImageParams as dh, getImageParams as di, getPayloadFromJwt as dj, mimeTypeLookup as dk, getMimeTypeFromExtension as dl, tryParseNumber as dm, getPerformanceTimer as dn, hasRequiredPermissions as dp, getUserAvatarUrl as dq, getPetAvatarUrl as dr, promiseFromValue as ds, nameof as dt, getQuestionGroups as du, randomIntFromRange as dv, randomItemFromArray as dw, capitalizeFirstLetter as dx, lowercaseFirstLetter as dy, addSpacesForEnum as dz, CdnAppImage as e, rootDependencyInjectionSetup as e0, setContainerToken as e1, setContainerTokenLazy as e2, minItems as e3, maxItems as e4, selectedItemsExist as e5, selectedOptionIsInEnum as e6, noValidation as e7, notNull as e8, multiValidation as e9, type FormCalendarSpecialRangeDisplayProps as eA, type FormCalendarSpecialRangeProps as eB, type ValidFormTypes as eC, type ValidFormComponentTypes as eD, type PropertyOverrides as eE, separateValidation as ea, validateForEach as eb, allowedNonNumericalValuesInContactNumber as ec, contactNumberCharValid as ed, contactNumberValid as ee, minDateDto as ef, maxDateDto as eg, minDate as eh, maxDate as ei, emailValid as ej, isNumber as ek, minValue as el, maxValue as em, passwordValid as en, postCodeValid as eo, minLength as ep, maxLength as eq, shouldBeUrl as er, shouldBeYoutubeUrl as es, type IFormCalendarPickerProps as et, type FullDateSelectionProps as eu, type FormCalendarPickerMode as ev, type FormCalendarDatePickerRangeProps as ew, type DateSelectionProps as ex, type FormCalendarPickerInnerProps as ey, type FormInputProps as ez, SupportedLanguageArray as f, commonEmailLinks as g, MouseButton as h, isWebApp as i, minUrlLength as j, type CachedValue as k, type ICaptchaOptions as l, monthTranslationKeyOrder as m, nanasFonts as n, type ICaptchaResponse as o, portalGlyphLength as p, createToken as q, type DependencyInjectionIdentifier as r, socialLinks as s, type DependencyInjectionFactory as t, type IDependencyInjectionSetupWebProps as u, validUuidChars as v, webAppTypes as w, type HtmlKeyEvent as x, type HtmlFilesEvent as y, type HtmlImageReadEvent as z };
3906
+ export { type LogType as $, AppType as A, type ClickEvent as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, type ActivityLocationType as F, activityShortCode as G, type HtmlElementEvent as H, type ILogger as I, apiRouteParam as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, NANAS_PALLETTE as N, apiRoute as O, ActivityType as P, AddressLinkType as Q, type ResultWithValue as R, type SupportedLanguage as S, type ThemeType as T, AnswerLinkType as U, BookingAddonType as V, type WeekdayTranslationKey as W, BookingStatusType as X, BugReportStatusType as Y, CommentLinkType as Z, InvoiceStatusType as _, type Result as a, type BugReportUpdateDto as a$, MembershipBillingCycleType as a0, MembershipStatus as a1, MembershipType as a2, NetworkState as a3, OrderDirectionType as a4, PermissionType as a5, PetSexType as a6, PetStatusType as a7, PetType as a8, QuestionType as a9, type AuthRegisterGetQuestionsDto as aA, type AuthRegisterGetTempUploadUrlDto as aB, type AuthRegisterGetTempUploadUrlResponseDto as aC, type AuthRegisterPetDto as aD, type AuthRegisterQuestionDto as aE, type AuthRegisterStoreProgressDto as aF, type AuthRegisterUserDto as aG, type AuthRequestResetPasswordDto as aH, type AuthResetPasswordDto as aI, type AuthSuccessDto as aJ, type BookingAddonDto as aK, type BookingCalendarOverviewItemDto as aL, type BookingCreateDto as aM, type BookingDto as aN, type BookingHostAssignDto as aO, type BookingHostCreateDto as aP, type BookingHostDto as aQ, type BookingHostUpdateDto as aR, type BookingPriceLineItemDto as aS, type BookingPricePredictionSummaryDto as aT, type BookingRestrictionsDto as aU, type BookingRestrictionsEnabledDaysDto as aV, type BookingRestrictionsPremiumEnabledDaysDto as aW, type BookingUpdateDto as aX, type BookingWithRelationshipsDto as aY, type BugReportCreateDto as aZ, type BugReportDto as a_, QuestionForType as aa, getAllPetQuestionForType as ab, SearchableColumnType as ac, type SearchableColumnInfo as ad, SentEmailLinkType as ae, SentEmailSentStatus as af, TempLinkType as ag, TempRegistrationStatus as ah, UploadLinkType as ai, UploadType as aj, uploadsThatNeedEncryption as ak, UserAccountFlagType as al, UserType as am, hubspotQuestionsExport as an, type ActivityDto as ao, type AddressCreateDto as ap, type AddressDto as aq, type AddressLookupDto as ar, type AddressUpdateDto as as, type AnswerCreateDto as at, type AnswerDto as au, type AuthChangePasswordDto as av, type AuthLoginDto as aw, type AuthPatDto as ax, type AuthRegisterAddressDto as ay, type AuthRegisterDto as az, type IDependencyInjectionSetupProps as b, AuthRegisterRestriction as b$, type captchaToken as b0, type ClientAnswerSaveDto as b1, type CommentCreateDto as b2, type CommentDto as b3, type CommentUpdateDto as b4, type DateDto as b5, type InvoiceCreateDto as b6, type InvoiceDto as b7, type InvoiceUpdateDto as b8, type InvoiceWithStripeInfoDto as b9, type TempRegistrationDto as bA, type TempRegistrationForClientDto as bB, type UploadCreateDto as bC, type UploadDto as bD, type UploadImageWithLinkDto as bE, type UploadUpdateDto as bF, type UserCreateDto as bG, type UserDto as bH, type UserMembershipChangeResponseDto as bI, type UserMembershipCreateDto as bJ, type UserMembershipDto as bK, type UserMembershipSignUpDto as bL, type UserMembershipSignUpResponseDto as bM, type UserMembershipStatsDto as bN, type UserMembershipUpdateDto as bO, type UserMembershipWithStripeInfoDto as bP, type UserMembershipWithUserNamesDto as bQ, type UserMigrationReportCountsDto as bR, type UserMigrationReportDto as bS, type UserMigrationReportUserDto as bT, type UserPermissionDto as bU, type UserUpdateDto as bV, type VersionDto as bW, type JwtPayloadDto as bX, ActivityRestriction as bY, AddressRestriction as bZ, AnswerRestriction as b_, type MembershipCreateDto as ba, type MembershipDto as bb, type MembershipUpdateDto as bc, type PaginationRequestDto as bd, type PaginationResponseDto as be, type PaymentMethodDto as bf, type PetCreateDto as bg, type PetDto as bh, type PetUpdateDto as bi, type ProfileDto as bj, type ProfileQuestionAndAnswersItemDto as bk, type ProfileQuestionRequestDto as bl, type ProfileUpdateDto as bm, type QuestionCreateDto as bn, type QuestionDto as bo, type QuestionUpdateDto as bp, type SearchObjDatePropRequestDto as bq, type SearchObjRequestDto as br, type SearchObjTextPropRequestDto as bs, type SentEmailCreateDto as bt, type SentEmailDto as bu, type SetupIntentCreateDto as bv, type SetupIntentDto as bw, type TempLinkCreateDto as bx, type TempLinkDto as by, type TempLinkWithUserNamesDto as bz, CaptchaNodeService as c, formatForDateLocal as c$, BookingRestriction as c0, BookingAddonRestriction as c1, BugReportRestriction as c2, CommentRestriction as c3, UuidRestriction as c4, CaptchaTokenRestriction as c5, DateObjectRestriction as c6, DrivingRouteRestriction as c7, InvoiceRestriction as c8, MembershipRestriction as c9, formatPetTypesLabel as cA, formatBookingCalendarLabel as cB, BOOKING_OVERVIEW_STATUSES as cC, type BookingStatusCounts as cD, computeBookingStatusCounts as cE, filterBookingsByOverviewStatus as cF, computeBookingNightCount as cG, formatBookingNightsTooltip as cH, serializeBookingOverviewStatuses as cI, parseBookingOverviewStatuses as cJ, getDayClassObject as cK, getDayHeadingElements as cL, type RenderCellType as cM, getDayElements as cN, getUsersName as cO, numberOfDaysPerMonth as cP, dateDtoToDateColumn as cQ, dateColumnToDateDto as cR, dateToDateDto as cS, dateDtoToJsDate as cT, isDateDto as cU, isLeapYear as cV, getNumberOfDaysInAMonth as cW, getNextDayOfDateDto as cX, dateDtoCompare as cY, dateDtoIsBefore as cZ, formatDate as c_, PermissionRestriction as ca, PetRestriction as cb, QuestionRestriction as cc, SentEmailRestriction as cd, StripeRestriction as ce, UnavailabilityRestriction as cf, UploadRestriction as cg, UserRestriction as ch, searchColumns as ci, type LogMethod as cj, type ILogMessage as ck, type IMediaUpload as cl, ClientRegisterStep as cm, type NominatimResponse as cn, type NominatimAddressResponse as co, type ValidationResult as cp, makeArrayOrDefault as cq, onlyUnique as cr, arrayOfNLength as cs, arrayContains as ct, timeout as cu, addToParallelTasks as cv, type BookingCalendarOverviewItem as cw, getBookingStatusLabelForAdmin as cx, getMembershipTypeLabel as cy, getPetTypeLabel as cz, weekdayTranslationKeyOrder as d, getSiteColour as d$, formatForDateDropdown as d0, formatForDateOfBirth as d1, formatForDateWithTime as d2, formatForDateLocalDetailed as d3, formatForBookingDate as d4, addSeconds as d5, addMinutes as d6, addDays as d7, addMonths as d8, isBefore as d9, lowercaseFirstLetter as dA, addSpacesForEnum as dB, formatFileSize as dC, anyObject as dD, fakePromise as dE, type ObjectWithPropsOfValue as dF, type Prettify as dG, urlRef as dH, urlAddQueryParam as dI, userMustChangePassword as dJ, getActiveUserMembership as dK, type UserMigrationReportUser as dL, type UserMigrationReportCounts as dM, type UserMigrationReport as dN, type ISiteColour as dO, colourPalette as dP, defaultSiteColour as dQ, type ISite as dR, DependencyInjectionContainer as dS, rootContainer as dT, BOT_PATH_TOKEN as dU, getBotPath as dV, APP_TYPE_TOKEN as dW, getAppType as dX, SITE_CONFIG_TOKEN as dY, setSiteConfig as dZ, getSiteConfig as d_, isSameDay as da, dateDiffInDays as db, getAgeInYears as dc, getWeekNumber as dd, showSecondCalendar as de, debounceLeading as df, getArrFromEnum as dg, uuidv4 as dh, cyrb53 as di, type IImageParams as dj, getImageParams as dk, getPayloadFromJwt as dl, mimeTypeLookup as dm, getMimeTypeFromExtension as dn, tryParseNumber as dp, getPerformanceTimer as dq, hasRequiredPermissions as dr, getUserAvatarUrl as ds, getPetAvatarUrl as dt, promiseFromValue as du, nameof as dv, getQuestionGroups as dw, randomIntFromRange as dx, randomItemFromArray as dy, capitalizeFirstLetter as dz, CdnAppImage as e, getCommonConfig as e0, getLog as e1, rootDependencyInjectionSetup as e2, setContainerToken as e3, setContainerTokenLazy as e4, minItems as e5, maxItems as e6, selectedItemsExist as e7, selectedOptionIsInEnum as e8, noValidation as e9, type FormCalendarPickerInnerProps as eA, type FormInputProps as eB, type FormCalendarSpecialRangeDisplayProps as eC, type FormCalendarSpecialRangeProps as eD, type ValidFormTypes as eE, type ValidFormComponentTypes as eF, type PropertyOverrides as eG, notNull as ea, multiValidation as eb, separateValidation as ec, validateForEach as ed, allowedNonNumericalValuesInContactNumber as ee, contactNumberCharValid as ef, contactNumberValid as eg, minDateDto as eh, maxDateDto as ei, minDate as ej, maxDate as ek, emailValid as el, isNumber as em, minValue as en, maxValue as eo, passwordValid as ep, postCodeValid as eq, minLength as er, maxLength as es, shouldBeUrl as et, shouldBeYoutubeUrl as eu, type IFormCalendarPickerProps as ev, type FullDateSelectionProps as ew, type FormCalendarPickerMode as ex, type FormCalendarDatePickerRangeProps as ey, type DateSelectionProps as ez, SupportedLanguageArray as f, commonEmailLinks as g, MouseButton as h, isWebApp as i, minUrlLength as j, type CachedValue as k, type ICaptchaOptions as l, monthTranslationKeyOrder as m, nanasFonts as n, type ICaptchaResponse as o, portalGlyphLength as p, createToken as q, type DependencyInjectionIdentifier as r, socialLinks as s, type DependencyInjectionFactory as t, type IDependencyInjectionSetupWebProps as u, validUuidChars as v, webAppTypes as w, type HtmlKeyEvent as x, type HtmlFilesEvent as y, type HtmlImageReadEvent as z };
@@ -1,7 +1,7 @@
1
1
  import * as solid_js from 'solid-js';
2
2
  import { JSXElement, Component, JSX, Accessor, ComponentProps } from 'solid-js';
3
- import { P as ActivityType, X as BookingStatusType, A as AppType, Y as BugReportStatusType, B as ClickEvent, a2 as MembershipType, a1 as MembershipStatus, a0 as MembershipBillingCycleType, a7 as PetStatusType, bj as ProfileDto, bo as QuestionDto, au as AnswerDto, aa as QuestionForType, a9 as QuestionType, am as UserType, al as UserAccountFlagType, R as ResultWithValue, a5 as PermissionType, a3 as NetworkState, et as IFormCalendarPickerProps, eu as FullDateSelectionProps, ev as FormCalendarPickerMode, ew as FormCalendarDatePickerRangeProps, ex as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, ey as FormCalendarPickerInnerProps, ez as FormInputProps, cp as ValidationResult, K as KeyEvent, H as HtmlElementEvent, ap as AddressCreateDto, as as AddressUpdateDto, aw as AuthLoginDto, aG as AuthRegisterUserDto, aN as BookingDto, aM as BookingCreateDto, aX as BookingUpdateDto, a_ as BugReportDto, aZ as BugReportCreateDto, ba as MembershipCreateDto, bg as PetCreateDto, bi as PetUpdateDto, bm as ProfileUpdateDto, bn as QuestionCreateDto, bu as SentEmailDto, by as TempLinkDto, bA as TempRegistrationDto, bC as UploadCreateDto, bE as UploadImageWithLinkDto, bH as UserDto, bG as UserCreateDto, bO as UserMembershipUpdateDto, bJ as UserMembershipCreateDto, y as HtmlFilesEvent, ck as ILogMessage, I as ILogger, a as Result, bd as PaginationRequestDto, be as PaginationResponseDto, br as SearchObjRequestDto, C as CommonConfigService, ao as ActivityDto, L as LogService, aq as AddressDto, Q as AddressLinkType, cn as NominatimResponse, bk as ProfileQuestionAndAnswersItemDto, aY as BookingWithRelationshipsDto, cw as BookingCalendarOverviewItem, a$ as BugReportUpdateDto, Z as CommentLinkType, b3 as CommentDto, b2 as CommentCreateDto, b7 as InvoiceDto, b6 as InvoiceCreateDto, b8 as InvoiceUpdateDto, bb as MembershipDto, bc as MembershipUpdateDto, bh as PetDto, bt as SentEmailCreateDto, bx as TempLinkCreateDto, bD as UploadDto, bF as UploadUpdateDto, bV as UserUpdateDto, dL as UserMigrationReport, bK as UserMembershipDto, bQ as UserMembershipWithUserNamesDto, bN as UserMembershipStatsDto, bU as UserPermissionDto, ar as AddressLookupDto, aT as BookingPricePredictionSummaryDto, b9 as InvoiceWithStripeInfoDto, dP as ISite, bf as PaymentMethodDto, bv as SetupIntentCreateDto, bw as SetupIntentDto, aU as BookingRestrictionsDto, bL as UserMembershipSignUpDto, bM as UserMembershipSignUpResponseDto, bI as UserMembershipChangeResponseDto, aJ as AuthSuccessDto, az as AuthRegisterDto, aF as AuthRegisterStoreProgressDto, aA as AuthRegisterGetQuestionsDto, aB as AuthRegisterGetTempUploadUrlDto, aC as AuthRegisterGetTempUploadUrlResponseDto, aH as AuthRequestResetPasswordDto, aI as AuthResetPasswordDto, av as AuthChangePasswordDto, bW as VersionDto, l as ICaptchaOptions, T as ThemeType, dE as Prettify, u as IDependencyInjectionSetupWebProps } from '../textValidation-CDAetMyD.js';
4
- export { dU as APP_TYPE_TOKEN, F as ActivityLocationType, bY as ActivityRestriction, bZ as AddressRestriction, at as AnswerCreateDto, U as AnswerLinkType, b_ as AnswerRestriction, ax as AuthPatDto, ay as AuthRegisterAddressDto, aD as AuthRegisterPetDto, aE as AuthRegisterQuestionDto, b$ as AuthRegisterRestriction, cC as BOOKING_OVERVIEW_STATUSES, dS as BOT_PATH_TOKEN, aK as BookingAddonDto, c1 as BookingAddonRestriction, V as BookingAddonType, aL as BookingCalendarOverviewItemDto, aO as BookingHostAssignDto, aP as BookingHostCreateDto, aQ as BookingHostDto, aR as BookingHostUpdateDto, aS as BookingPriceLineItemDto, c0 as BookingRestriction, aV as BookingRestrictionsEnabledDaysDto, aW as BookingRestrictionsPremiumEnabledDaysDto, cD as BookingStatusCounts, c2 as BugReportRestriction, k as CachedValue, c as CaptchaNodeService, c5 as CaptchaTokenRestriction, e as CdnAppImage, b1 as ClientAnswerSaveDto, cm as ClientRegisterStep, c3 as CommentRestriction, b4 as CommentUpdateDto, b5 as DateDto, c6 as DateObjectRestriction, dQ as DependencyInjectionContainer, t as DependencyInjectionFactory, r as DependencyInjectionIdentifier, D as DependencyInjectionToken, c7 as DrivingRouteRestriction, E as EnvKey, eA as FormCalendarSpecialRangeDisplayProps, eB as FormCalendarSpecialRangeProps, z as HtmlImageReadEvent, x as HtmlKeyEvent, o as ICaptchaResponse, b as IDependencyInjectionSetupProps, dh as IImageParams, cl as IMediaUpload, dM as ISiteColour, c8 as InvoiceRestriction, _ as InvoiceStatusType, bX as JwtPayloadDto, cj as LogMethod, $ as LogType, c9 as MembershipRestriction, h as MouseButton, N as NANAS_PALLETTE, co as NominatimAddressResponse, dD as ObjectWithPropsOfValue, a4 as OrderDirectionType, ca as PermissionRestriction, cb as PetRestriction, a6 as PetSexType, a8 as PetType, bl as ProfileQuestionRequestDto, eE as PropertyOverrides, cc as QuestionRestriction, bp as QuestionUpdateDto, cM as RenderCellType, dW as SITE_CONFIG_TOKEN, bq as SearchObjDatePropRequestDto, bs as SearchObjTextPropRequestDto, ad as SearchableColumnInfo, ac as SearchableColumnType, ae as SentEmailLinkType, cd as SentEmailRestriction, af as SentEmailSentStatus, ce as StripeRestriction, S as SupportedLanguage, f as SupportedLanguageArray, ag as TempLinkType, bz as TempLinkWithUserNamesDto, bB as TempRegistrationForClientDto, ah as TempRegistrationStatus, cf as UnavailabilityRestriction, ai as UploadLinkType, cg as UploadRestriction, aj as UploadType, bP as UserMembershipWithStripeInfoDto, dK as UserMigrationReportCounts, bR as UserMigrationReportCountsDto, bS as UserMigrationReportDto, dJ as UserMigrationReportUser, bT as UserMigrationReportUserDto, ch as UserRestriction, c4 as UuidRestriction, eD as ValidFormComponentTypes, eC as ValidFormTypes, G as activityShortCode, d5 as addDays, d4 as addMinutes, d6 as addMonths, d3 as addSeconds, dz as addSpacesForEnum, cv as addToParallelTasks, ec as allowedNonNumericalValuesInContactNumber, dB as anyObject, O as apiRoute, J as apiRouteParam, ct as arrayContains, cs as arrayOfNLength, dx as capitalizeFirstLetter, b0 as captchaToken, dN as colourPalette, g as commonEmailLinks, cG as computeBookingNightCount, cE as computeBookingStatusCounts, ed as contactNumberCharValid, ee as contactNumberValid, q as createToken, dg as cyrb53, cR as dateColumnToDateDto, d9 as dateDiffInDays, cW as dateDtoCompare, cX as dateDtoIsBefore, cQ as dateDtoToDateColumn, cS as dateToDateDto, dd as debounceLeading, dO as defaultSiteColour, ej as emailValid, dC as fakePromise, cF as filterBookingsByOverviewStatus, cB as formatBookingCalendarLabel, cH as formatBookingNightsTooltip, cY as formatDate, dA as formatFileSize, d2 as formatForBookingDate, c_ as formatForDateDropdown, cZ as formatForDateLocal, d1 as formatForDateLocalDetailed, c$ as formatForDateOfBirth, d0 as formatForDateWithTime, cA as formatPetTypesLabel, dI as getActiveUserMembership, da as getAgeInYears, ab as getAllPetQuestionForType, dV as getAppType, de as getArrFromEnum, cx as getBookingStatusLabelForAdmin, dT as getBotPath, d_ as getCommonConfig, cK as getDayClassObject, cN as getDayElements, cL as getDayHeadingElements, di as getImageParams, d$ as getLog, cy as getMembershipTypeLabel, dl as getMimeTypeFromExtension, cV as getNextDayOfDateDto, cU as getNumberOfDaysInAMonth, dj as getPayloadFromJwt, dn as getPerformanceTimer, dr as getPetAvatarUrl, cz as getPetTypeLabel, du as getQuestionGroups, dZ as getSiteColour, dY as getSiteConfig, dq as getUserAvatarUrl, cO as getUsersName, db as getWeekNumber, dp as hasRequiredPermissions, an as hubspotQuestionsExport, d7 as isBefore, cT as isLeapYear, ek as isNumber, d8 as isSameDay, i as isWebApp, dy as lowercaseFirstLetter, cq as makeArrayOrDefault, ei as maxDate, eg as maxDateDto, e4 as maxItems, eq as maxLength, em as maxValue, dk as mimeTypeLookup, eh as minDate, ef as minDateDto, e3 as minItems, ep as minLength, j as minUrlLength, el as minValue, m as monthTranslationKeyOrder, e9 as multiValidation, dt as nameof, n as nanasFonts, e7 as noValidation, e8 as notNull, cP as numberOfDaysPerMonth, cr as onlyUnique, cJ as parseBookingOverviewStatuses, en as passwordValid, p as portalGlyphLength, eo as postCodeValid, ds as promiseFromValue, dv as randomIntFromRange, dw as randomItemFromArray, dR as rootContainer, e0 as rootDependencyInjectionSetup, ci as searchColumns, e5 as selectedItemsExist, e6 as selectedOptionIsInEnum, ea as separateValidation, cI as serializeBookingOverviewStatuses, e1 as setContainerToken, e2 as setContainerTokenLazy, dX as setSiteConfig, er as shouldBeUrl, es as shouldBeYoutubeUrl, dc as showSecondCalendar, s as socialLinks, cu as timeout, dm as tryParseNumber, ak as uploadsThatNeedEncryption, dG as urlAddQueryParam, dF as urlRef, dH as userMustChangePassword, df as uuidv4, v as validUuidChars, eb as validateForEach, w as webAppTypes, d as weekdayTranslationKeyOrder } from '../textValidation-CDAetMyD.js';
3
+ import { P as ActivityType, X as BookingStatusType, A as AppType, Y as BugReportStatusType, B as ClickEvent, a2 as MembershipType, a1 as MembershipStatus, a0 as MembershipBillingCycleType, a7 as PetStatusType, bj as ProfileDto, bo as QuestionDto, au as AnswerDto, aa as QuestionForType, a9 as QuestionType, am as UserType, al as UserAccountFlagType, R as ResultWithValue, a5 as PermissionType, a3 as NetworkState, ev as IFormCalendarPickerProps, ew as FullDateSelectionProps, ex as FormCalendarPickerMode, ey as FormCalendarDatePickerRangeProps, ez as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, eA as FormCalendarPickerInnerProps, eB as FormInputProps, cp as ValidationResult, K as KeyEvent, H as HtmlElementEvent, ap as AddressCreateDto, as as AddressUpdateDto, aw as AuthLoginDto, aG as AuthRegisterUserDto, aN as BookingDto, aM as BookingCreateDto, aX as BookingUpdateDto, a_ as BugReportDto, aZ as BugReportCreateDto, ba as MembershipCreateDto, bg as PetCreateDto, bi as PetUpdateDto, bm as ProfileUpdateDto, bn as QuestionCreateDto, bu as SentEmailDto, by as TempLinkDto, bA as TempRegistrationDto, bC as UploadCreateDto, bE as UploadImageWithLinkDto, bH as UserDto, bG as UserCreateDto, bO as UserMembershipUpdateDto, bJ as UserMembershipCreateDto, y as HtmlFilesEvent, ck as ILogMessage, I as ILogger, a as Result, bd as PaginationRequestDto, be as PaginationResponseDto, br as SearchObjRequestDto, C as CommonConfigService, ao as ActivityDto, L as LogService, aq as AddressDto, Q as AddressLinkType, cn as NominatimResponse, bk as ProfileQuestionAndAnswersItemDto, aY as BookingWithRelationshipsDto, cw as BookingCalendarOverviewItem, a$ as BugReportUpdateDto, Z as CommentLinkType, b3 as CommentDto, b2 as CommentCreateDto, b7 as InvoiceDto, b6 as InvoiceCreateDto, b8 as InvoiceUpdateDto, bb as MembershipDto, bc as MembershipUpdateDto, bh as PetDto, bt as SentEmailCreateDto, bx as TempLinkCreateDto, bD as UploadDto, bF as UploadUpdateDto, bV as UserUpdateDto, dN as UserMigrationReport, bK as UserMembershipDto, bQ as UserMembershipWithUserNamesDto, bN as UserMembershipStatsDto, bU as UserPermissionDto, ar as AddressLookupDto, aT as BookingPricePredictionSummaryDto, b9 as InvoiceWithStripeInfoDto, dR as ISite, bf as PaymentMethodDto, bv as SetupIntentCreateDto, bw as SetupIntentDto, aU as BookingRestrictionsDto, bL as UserMembershipSignUpDto, bM as UserMembershipSignUpResponseDto, bI as UserMembershipChangeResponseDto, aJ as AuthSuccessDto, az as AuthRegisterDto, aF as AuthRegisterStoreProgressDto, aA as AuthRegisterGetQuestionsDto, aB as AuthRegisterGetTempUploadUrlDto, aC as AuthRegisterGetTempUploadUrlResponseDto, aH as AuthRequestResetPasswordDto, aI as AuthResetPasswordDto, av as AuthChangePasswordDto, bW as VersionDto, l as ICaptchaOptions, T as ThemeType, dG as Prettify, u as IDependencyInjectionSetupWebProps } from '../textValidation-CyV7O-U1.js';
4
+ export { dW as APP_TYPE_TOKEN, F as ActivityLocationType, bY as ActivityRestriction, bZ as AddressRestriction, at as AnswerCreateDto, U as AnswerLinkType, b_ as AnswerRestriction, ax as AuthPatDto, ay as AuthRegisterAddressDto, aD as AuthRegisterPetDto, aE as AuthRegisterQuestionDto, b$ as AuthRegisterRestriction, cC as BOOKING_OVERVIEW_STATUSES, dU as BOT_PATH_TOKEN, aK as BookingAddonDto, c1 as BookingAddonRestriction, V as BookingAddonType, aL as BookingCalendarOverviewItemDto, aO as BookingHostAssignDto, aP as BookingHostCreateDto, aQ as BookingHostDto, aR as BookingHostUpdateDto, aS as BookingPriceLineItemDto, c0 as BookingRestriction, aV as BookingRestrictionsEnabledDaysDto, aW as BookingRestrictionsPremiumEnabledDaysDto, cD as BookingStatusCounts, c2 as BugReportRestriction, k as CachedValue, c as CaptchaNodeService, c5 as CaptchaTokenRestriction, e as CdnAppImage, b1 as ClientAnswerSaveDto, cm as ClientRegisterStep, c3 as CommentRestriction, b4 as CommentUpdateDto, b5 as DateDto, c6 as DateObjectRestriction, dS as DependencyInjectionContainer, t as DependencyInjectionFactory, r as DependencyInjectionIdentifier, D as DependencyInjectionToken, c7 as DrivingRouteRestriction, E as EnvKey, eC as FormCalendarSpecialRangeDisplayProps, eD as FormCalendarSpecialRangeProps, z as HtmlImageReadEvent, x as HtmlKeyEvent, o as ICaptchaResponse, b as IDependencyInjectionSetupProps, dj as IImageParams, cl as IMediaUpload, dO as ISiteColour, c8 as InvoiceRestriction, _ as InvoiceStatusType, bX as JwtPayloadDto, cj as LogMethod, $ as LogType, c9 as MembershipRestriction, h as MouseButton, N as NANAS_PALLETTE, co as NominatimAddressResponse, dF as ObjectWithPropsOfValue, a4 as OrderDirectionType, ca as PermissionRestriction, cb as PetRestriction, a6 as PetSexType, a8 as PetType, bl as ProfileQuestionRequestDto, eG as PropertyOverrides, cc as QuestionRestriction, bp as QuestionUpdateDto, cM as RenderCellType, dY as SITE_CONFIG_TOKEN, bq as SearchObjDatePropRequestDto, bs as SearchObjTextPropRequestDto, ad as SearchableColumnInfo, ac as SearchableColumnType, ae as SentEmailLinkType, cd as SentEmailRestriction, af as SentEmailSentStatus, ce as StripeRestriction, S as SupportedLanguage, f as SupportedLanguageArray, ag as TempLinkType, bz as TempLinkWithUserNamesDto, bB as TempRegistrationForClientDto, ah as TempRegistrationStatus, cf as UnavailabilityRestriction, ai as UploadLinkType, cg as UploadRestriction, aj as UploadType, bP as UserMembershipWithStripeInfoDto, dM as UserMigrationReportCounts, bR as UserMigrationReportCountsDto, bS as UserMigrationReportDto, dL as UserMigrationReportUser, bT as UserMigrationReportUserDto, ch as UserRestriction, c4 as UuidRestriction, eF as ValidFormComponentTypes, eE as ValidFormTypes, G as activityShortCode, d7 as addDays, d6 as addMinutes, d8 as addMonths, d5 as addSeconds, dB as addSpacesForEnum, cv as addToParallelTasks, ee as allowedNonNumericalValuesInContactNumber, dD as anyObject, O as apiRoute, J as apiRouteParam, ct as arrayContains, cs as arrayOfNLength, dz as capitalizeFirstLetter, b0 as captchaToken, dP as colourPalette, g as commonEmailLinks, cG as computeBookingNightCount, cE as computeBookingStatusCounts, ef as contactNumberCharValid, eg as contactNumberValid, q as createToken, di as cyrb53, cR as dateColumnToDateDto, db as dateDiffInDays, cY as dateDtoCompare, cZ as dateDtoIsBefore, cQ as dateDtoToDateColumn, cT as dateDtoToJsDate, cS as dateToDateDto, df as debounceLeading, dQ as defaultSiteColour, el as emailValid, dE as fakePromise, cF as filterBookingsByOverviewStatus, cB as formatBookingCalendarLabel, cH as formatBookingNightsTooltip, c_ as formatDate, dC as formatFileSize, d4 as formatForBookingDate, d0 as formatForDateDropdown, c$ as formatForDateLocal, d3 as formatForDateLocalDetailed, d1 as formatForDateOfBirth, d2 as formatForDateWithTime, cA as formatPetTypesLabel, dK as getActiveUserMembership, dc as getAgeInYears, ab as getAllPetQuestionForType, dX as getAppType, dg as getArrFromEnum, cx as getBookingStatusLabelForAdmin, dV as getBotPath, e0 as getCommonConfig, cK as getDayClassObject, cN as getDayElements, cL as getDayHeadingElements, dk as getImageParams, e1 as getLog, cy as getMembershipTypeLabel, dn as getMimeTypeFromExtension, cX as getNextDayOfDateDto, cW as getNumberOfDaysInAMonth, dl as getPayloadFromJwt, dq as getPerformanceTimer, dt as getPetAvatarUrl, cz as getPetTypeLabel, dw as getQuestionGroups, d$ as getSiteColour, d_ as getSiteConfig, ds as getUserAvatarUrl, cO as getUsersName, dd as getWeekNumber, dr as hasRequiredPermissions, an as hubspotQuestionsExport, d9 as isBefore, cU as isDateDto, cV as isLeapYear, em as isNumber, da as isSameDay, i as isWebApp, dA as lowercaseFirstLetter, cq as makeArrayOrDefault, ek as maxDate, ei as maxDateDto, e6 as maxItems, es as maxLength, eo as maxValue, dm as mimeTypeLookup, ej as minDate, eh as minDateDto, e5 as minItems, er as minLength, j as minUrlLength, en as minValue, m as monthTranslationKeyOrder, eb as multiValidation, dv as nameof, n as nanasFonts, e9 as noValidation, ea as notNull, cP as numberOfDaysPerMonth, cr as onlyUnique, cJ as parseBookingOverviewStatuses, ep as passwordValid, p as portalGlyphLength, eq as postCodeValid, du as promiseFromValue, dx as randomIntFromRange, dy as randomItemFromArray, dT as rootContainer, e2 as rootDependencyInjectionSetup, ci as searchColumns, e7 as selectedItemsExist, e8 as selectedOptionIsInEnum, ec as separateValidation, cI as serializeBookingOverviewStatuses, e3 as setContainerToken, e4 as setContainerTokenLazy, dZ as setSiteConfig, et as shouldBeUrl, eu as shouldBeYoutubeUrl, de as showSecondCalendar, s as socialLinks, cu as timeout, dp as tryParseNumber, ak as uploadsThatNeedEncryption, dI as urlAddQueryParam, dH as urlRef, dJ as userMustChangePassword, dh as uuidv4, v as validUuidChars, ed as validateForEach, w as webAppTypes, d as weekdayTranslationKeyOrder } from '../textValidation-CyV7O-U1.js';
5
5
  import { ToasterProps } from 'solid-toast';
6
6
  import { TolgeeInstance, TranslationKey, CombinedOptions, DefaultParamType } from '@tolgee/web';
7
7
 
@@ -830,6 +830,14 @@ declare class AdminBookingApiService extends BaseCrudService<BookingDto, Booking
830
830
  assignHost: (bookingUuid: string, hostUuid: string, numberOfNights: number) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
831
831
  removeHost: (bookingUuid: string, bookingHostUuid: string) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
832
832
  getCalendarOverview: (from: string, to: string, statuses?: Array<BookingStatusType>) => Promise<ResultWithValue<Array<BookingCalendarOverviewItem>>>;
833
+ createManual: (dto: {
834
+ ownerUuid: string;
835
+ startDate: BookingCreateDto["startDate"];
836
+ endDate: BookingCreateDto["endDate"];
837
+ notes: string;
838
+ petUuids: Array<string>;
839
+ status?: BookingStatusType;
840
+ }) => Promise<ResultWithValue<BookingDto>>;
833
841
  }
834
842
 
835
843
  declare class AdminBugReportApiService extends BaseCrudService<BugReportDto, BugReportCreateDto, BugReportUpdateDto> {
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { multiValidation, minLength, UserRestriction, contactNumberValid, maxLength, emailValid, passwordValid, noValidation, notNull, BookingRestriction, minDateDto, dateToDateDto, minItems, isNumber, minValue, MembershipRestriction, maxValue, PetRestriction, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, AddressRestriction, postCodeValid, UploadType, UploadRestriction, UploadLinkType, rootContainer, uuidv4, anyObject, timeout, apiRoute, apiRouteParam, addMinutes, getCommonConfig, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, setContainerToken, socialLinks, getPayloadFromJwt, PermissionType, userMustChangePassword, ActivityType, getAppType, BookingStatusType, BugReportStatusType, CdnAppImage, MembershipType, MembershipStatus, MembershipBillingCycleType, getUsersName, getUserAvatarUrl, hasRequiredPermissions, hubspotQuestionsExport, arrayOfNLength, UserType, UserAccountFlagType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatForDateOfBirth, formatForDateLocal, BugReportRestriction, onlyUnique, getDayClassObject, getPetAvatarUrl, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/L6A6KIRK.js';
2
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CaptchaNodeService, CaptchaTokenRestriction, CdnAppImage, ClientRegisterStep, CommentLinkType, CommentRestriction, CommonConfigService, DateObjectRestriction, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, SentEmailLinkType, SentEmailRestriction, SentEmailSentStatus, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateColumnToDateDto, dateDiffInDays, dateDtoCompare, dateDtoIsBefore, dateDtoToDateColumn, dateToDateDto, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getNextDayOfDateDto, getNumberOfDaysInAMonth, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isLeapYear, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxDateDto, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minDateDto, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, numberOfDaysPerMonth, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/L6A6KIRK.js';
1
+ import { multiValidation, minLength, UserRestriction, contactNumberValid, maxLength, emailValid, passwordValid, noValidation, notNull, BookingRestriction, minDateDto, dateToDateDto, minItems, isNumber, minValue, MembershipRestriction, maxValue, PetRestriction, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, AddressRestriction, postCodeValid, UploadType, UploadRestriction, UploadLinkType, rootContainer, uuidv4, anyObject, timeout, apiRoute, apiRouteParam, addMinutes, getCommonConfig, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, setContainerToken, socialLinks, getPayloadFromJwt, PermissionType, userMustChangePassword, ActivityType, getAppType, BookingStatusType, BugReportStatusType, CdnAppImage, MembershipType, MembershipStatus, MembershipBillingCycleType, getUsersName, getUserAvatarUrl, hasRequiredPermissions, hubspotQuestionsExport, arrayOfNLength, UserType, UserAccountFlagType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatForDateOfBirth, formatForDateLocal, BugReportRestriction, onlyUnique, getDayClassObject, getPetAvatarUrl, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/MBQCYCBZ.js';
2
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CaptchaNodeService, CaptchaTokenRestriction, CdnAppImage, ClientRegisterStep, CommentLinkType, CommentRestriction, CommonConfigService, DateObjectRestriction, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, SentEmailLinkType, SentEmailRestriction, SentEmailSentStatus, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateColumnToDateDto, dateDiffInDays, dateDtoCompare, dateDtoIsBefore, dateDtoToDateColumn, dateDtoToJsDate, dateToDateDto, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getNextDayOfDateDto, getNumberOfDaysInAMonth, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateDto, isDateEnabledByEnabledDays, isLeapYear, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxDateDto, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minDateDto, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, numberOfDaysPerMonth, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/MBQCYCBZ.js';
3
3
  import { delegateEvents, createComponent, template, insert, effect, className, spread, mergeProps, setAttribute, style, use, memo, addEventListener } from 'solid-js/web';
4
4
  import { createSignal, Switch, Match, Show, For, onMount, createEffect, onCleanup, splitProps } from 'solid-js';
5
5
  import classNames17 from 'classnames';
@@ -535,6 +535,7 @@ var AdminBookingApiService = class extends BaseCrudService {
535
535
  addAccessTokenToHeaders
536
536
  );
537
537
  };
538
+ createManual = (dto) => this.baseApi.post(apiRoute.admin.booking.manualCreate, dto, addAccessTokenToHeaders);
538
539
  };
539
540
 
540
541
  // src/services/api/admin/adminBugReportApiService.ts
@@ -219,6 +219,7 @@ var apiRoute = {
219
219
  assignHost: `/assign-host/${apiRouteParam.bookingUuid}/${apiRouteParam.userUuid}`,
220
220
  removeHost: `/remove-host/${apiRouteParam.bookingUuid}/${apiRouteParam.bookingHostUuid}`,
221
221
  calendarOverview: "/calendar-overview",
222
+ manualCreate: "/manual",
222
223
  swagger: { name: "Bookings", description: "Endpoints for managing bookings" }
223
224
  },
224
225
  bugReport: {
@@ -802,6 +803,7 @@ var AdminBookingApiService = class extends BaseCrudService {
802
803
  addAccessTokenToHeaders
803
804
  );
804
805
  };
806
+ createManual = (dto) => this.baseApi.post(apiRoute.admin.booking.manualCreate, dto, addAccessTokenToHeaders);
805
807
  };
806
808
 
807
809
  // src/services/api/admin/adminBugReportApiService.ts
@@ -1123,8 +1125,75 @@ var InvoiceApiService = class {
1123
1125
 
1124
1126
  // src/helpers/dateHelper.ts
1125
1127
  import dayjs from "dayjs";
1128
+
1129
+ // src/helpers/dateDtoHelper.ts
1130
+ var numberOfDaysPerMonth = {
1131
+ defaultYear: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
1132
+ leapYear: [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
1133
+ };
1134
+ var dateDtoToDateColumn = (dateObj) => `${dateObj.year}-${dateObj.month.toString().padStart(2, "0")}-${dateObj.day.toString().padStart(2, "0")}`;
1135
+ var dateColumnToDateDto = (dateStr) => {
1136
+ const segments = dateStr.split("-");
1137
+ if (segments.length != 3) return { day: 1, month: 1, year: 2e3 };
1138
+ const year = Number(segments[0]);
1139
+ const month = Math.min(12, Number(segments[1]));
1140
+ const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
1141
+ const day = Math.min(daysInMonthItem, Number(segments[2]));
1142
+ return { year, month, day };
1143
+ };
1144
+ var dateToDateDto = (date) => ({
1145
+ year: date.getFullYear(),
1146
+ month: date.getMonth() + 1,
1147
+ day: date.getDate()
1148
+ });
1149
+ var dateDtoToJsDate = (dateObj) => new Date(dateObj.year, dateObj.month - 1, dateObj.day);
1150
+ var isDateDto = (value) => {
1151
+ if (value == null || typeof value !== "object") return false;
1152
+ const candidate = value;
1153
+ return typeof candidate.year === "number" && typeof candidate.month === "number" && typeof candidate.day === "number" && typeof candidate.getTime !== "function";
1154
+ };
1155
+ var isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
1156
+ var getNumberOfDaysInAMonth = (year, month) => {
1157
+ const daysInMonth = isLeapYear(year) ? numberOfDaysPerMonth.leapYear : numberOfDaysPerMonth.defaultYear;
1158
+ const daysInMonthItem = daysInMonth[month - 1];
1159
+ if (daysInMonthItem == null) {
1160
+ throw "Invalid date";
1161
+ }
1162
+ return daysInMonthItem;
1163
+ };
1164
+ var getNextDayOfDateDto = (d) => {
1165
+ let { day, month, year } = d;
1166
+ const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
1167
+ day++;
1168
+ if (day > daysInMonthItem) {
1169
+ day = 1;
1170
+ month++;
1171
+ if (month > 12) {
1172
+ month = 1;
1173
+ year++;
1174
+ }
1175
+ }
1176
+ return { day, month, year };
1177
+ };
1178
+ var dateDtoCompare = (a, b) => {
1179
+ if (a.year !== b.year) return a.year - b.year;
1180
+ if (a.month !== b.month) return a.month - b.month;
1181
+ return a.day - b.day;
1182
+ };
1183
+ var dateDtoIsBefore = (a, b) => {
1184
+ const compareResult = dateDtoCompare(a, b);
1185
+ if (compareResult == 0) return false;
1186
+ if (compareResult > 0) return false;
1187
+ return true;
1188
+ };
1189
+
1190
+ // src/helpers/dateHelper.ts
1191
+ var toDayjsInput = (date) => {
1192
+ if (isDateDto(date)) return dateDtoToJsDate(date);
1193
+ return date;
1194
+ };
1126
1195
  var formatDate = (date, format = "DD MMM YYYY HH:mm") => {
1127
- const dateStr = dayjs(date).format(format);
1196
+ const dateStr = dayjs(toDayjsInput(date)).format(format);
1128
1197
  if (dateStr.includes("Invalid")) return "";
1129
1198
  return dateStr;
1130
1199
  };
@@ -1138,14 +1207,12 @@ var addSeconds = (date, seconds) => dayjs(date).add(seconds, "seconds").toDate()
1138
1207
  var addMinutes = (date, minutes) => dayjs(date).add(minutes, "minutes").toDate();
1139
1208
  var addDays = (date, days) => dayjs(date).add(days, "days").toDate();
1140
1209
  var addMonths = (date, months) => dayjs(date).add(months, "months").toDate();
1141
- var isBefore = (date, secondDate) => dayjs(date).isBefore(secondDate);
1142
- var isSameDay = (date, secondDate) => dayjs(date).isSame(secondDate, "day");
1210
+ var isBefore = (date, secondDate) => dayjs(toDayjsInput(date)).isBefore(toDayjsInput(secondDate));
1211
+ var isSameDay = (date, secondDate) => dayjs(toDayjsInput(date)).isSame(toDayjsInput(secondDate), "day");
1143
1212
  var dateDiffInDays = (date, secondDate) => {
1144
- const date1 = new Date(date);
1145
- const date2 = new Date(secondDate);
1146
- const diffTime = Math.abs(date2.getTime() - date1.getTime());
1147
- const diffDays = Math.floor(diffTime / (1e3 * 60 * 60 * 24));
1148
- return diffDays;
1213
+ const date1 = toDayjsInput(date);
1214
+ const date2 = toDayjsInput(secondDate);
1215
+ return Math.abs(dayjs(date2).startOf("day").diff(dayjs(date1).startOf("day"), "day"));
1149
1216
  };
1150
1217
  var getAgeInYears = (birthDateOrStr, currentDate = /* @__PURE__ */ new Date()) => {
1151
1218
  const birthDate = new Date(birthDateOrStr);
@@ -5737,61 +5804,6 @@ var BookingAddonRestriction = {
5737
5804
  quantity: { min: 0, max: 1e3 }
5738
5805
  };
5739
5806
 
5740
- // src/helpers/dateDtoHelper.ts
5741
- var numberOfDaysPerMonth = {
5742
- defaultYear: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
5743
- leapYear: [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
5744
- };
5745
- var dateDtoToDateColumn = (dateObj) => `${dateObj.year}-${dateObj.month.toString().padStart(2, "0")}-${dateObj.day.toString().padStart(2, "0")}`;
5746
- var dateColumnToDateDto = (dateStr) => {
5747
- const segments = dateStr.split("-");
5748
- if (segments.length != 3) return { day: 1, month: 1, year: 2e3 };
5749
- const year = Number(segments[0]);
5750
- const month = Math.min(12, Number(segments[1]));
5751
- const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
5752
- const day = Math.min(daysInMonthItem, Number(segments[2]));
5753
- return { year, month, day };
5754
- };
5755
- var dateToDateDto = (date) => ({
5756
- year: date.getFullYear(),
5757
- month: date.getMonth() + 1,
5758
- day: date.getDate()
5759
- });
5760
- var isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
5761
- var getNumberOfDaysInAMonth = (year, month) => {
5762
- const daysInMonth = isLeapYear(year) ? numberOfDaysPerMonth.leapYear : numberOfDaysPerMonth.defaultYear;
5763
- const daysInMonthItem = daysInMonth[month - 1];
5764
- if (daysInMonthItem == null) {
5765
- throw "Invalid date";
5766
- }
5767
- return daysInMonthItem;
5768
- };
5769
- var getNextDayOfDateDto = (d) => {
5770
- let { day, month, year } = d;
5771
- const daysInMonthItem = getNumberOfDaysInAMonth(year, month);
5772
- day++;
5773
- if (day > daysInMonthItem) {
5774
- day = 1;
5775
- month++;
5776
- if (month > 12) {
5777
- month = 1;
5778
- year++;
5779
- }
5780
- }
5781
- return { day, month, year };
5782
- };
5783
- var dateDtoCompare = (a, b) => {
5784
- if (a.year !== b.year) return a.year - b.year;
5785
- if (a.month !== b.month) return a.month - b.month;
5786
- return a.day - b.day;
5787
- };
5788
- var dateDtoIsBefore = (a, b) => {
5789
- const compareResult = dateDtoCompare(a, b);
5790
- if (compareResult == 0) return false;
5791
- if (compareResult > 0) return false;
5792
- return true;
5793
- };
5794
-
5795
5807
  // src/validation/dateDtoValidation.ts
5796
5808
  var minDateDto = (minDate2) => (value) => {
5797
5809
  if (minDate2 != null && value != null) {
@@ -7443,7 +7455,6 @@ var ClientRegisterStep = /* @__PURE__ */ ((ClientRegisterStep2) => {
7443
7455
  })(ClientRegisterStep || {});
7444
7456
 
7445
7457
  // src/helpers/bookingCalendarHelper.ts
7446
- import dayjs2 from "dayjs";
7447
7458
  var getBookingStatusLabelForAdmin = (status) => {
7448
7459
  switch (status) {
7449
7460
  case 0 /* Cancelled */:
@@ -7540,12 +7551,7 @@ var filterBookingsByOverviewStatus = (bookings, statuses) => {
7540
7551
  const allowed = new Set(statuses);
7541
7552
  return bookings.filter((booking) => allowed.has(booking.status));
7542
7553
  };
7543
- var computeBookingNightCount = (startDate, endDate) => {
7544
- const nights = Math.abs(
7545
- dayjs2(endDate).startOf("day").diff(dayjs2(startDate).startOf("day"), "day")
7546
- );
7547
- return Math.max(1, nights);
7548
- };
7554
+ var computeBookingNightCount = (startDate, endDate) => Math.max(1, dateDiffInDays(startDate, endDate));
7549
7555
  var formatBookingNightsTooltip = (startDate, endDate) => {
7550
7556
  const nights = computeBookingNightCount(startDate, endDate);
7551
7557
  return nights === 1 ? "1 night" : `${nights} nights`;
@@ -8006,6 +8012,7 @@ export {
8006
8012
  dateDtoCompare,
8007
8013
  dateDtoIsBefore,
8008
8014
  dateDtoToDateColumn,
8015
+ dateDtoToJsDate,
8009
8016
  dateToDateDto,
8010
8017
  debounceLeading,
8011
8018
  defaultSiteColour,
@@ -8120,6 +8127,7 @@ export {
8120
8127
  isDateAfterStart,
8121
8128
  isDateBeforeEnd,
8122
8129
  isDateDisabledByDisabledDays,
8130
+ isDateDto,
8123
8131
  isDateEnabledByEnabledDays,
8124
8132
  isFormControlInvalid,
8125
8133
  isFormNetworkError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanas-home/hub-common",
3
- "version": "0.61.1366",
3
+ "version": "0.61.1375",
4
4
  "description": "Nana's Hub common library",
5
5
  "license": "MIT",
6
6
  "author": "Kurt Lourens",