@nanas-home/hub-common 0.52.1185 → 0.54.1240

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.
@@ -547,6 +547,10 @@ var PetType = /* @__PURE__ */ ((PetType2) => {
547
547
  PetType2[PetType2["Unknown"] = 0] = "Unknown";
548
548
  PetType2[PetType2["Dog"] = 1] = "Dog";
549
549
  PetType2[PetType2["Cat"] = 2] = "Cat";
550
+ PetType2[PetType2["Bird"] = 3] = "Bird";
551
+ PetType2[PetType2["Rodent"] = 4] = "Rodent";
552
+ PetType2[PetType2["Reptile"] = 5] = "Reptile";
553
+ PetType2[PetType2["Other"] = 6] = "Other";
550
554
  return PetType2;
551
555
  })(PetType || {});
552
556
 
@@ -592,6 +596,14 @@ var TempLinkType = /* @__PURE__ */ ((TempLinkType2) => {
592
596
  return TempLinkType2;
593
597
  })(TempLinkType || {});
594
598
 
599
+ // src/contracts/generated/enum/tempRegistrationStatus.ts
600
+ var TempRegistrationStatus = /* @__PURE__ */ ((TempRegistrationStatus2) => {
601
+ TempRegistrationStatus2[TempRegistrationStatus2["UnProcessed"] = 0] = "UnProcessed";
602
+ TempRegistrationStatus2[TempRegistrationStatus2["EmailReminderSent"] = 1] = "EmailReminderSent";
603
+ TempRegistrationStatus2[TempRegistrationStatus2["RegistrationSuccess"] = 2] = "RegistrationSuccess";
604
+ return TempRegistrationStatus2;
605
+ })(TempRegistrationStatus || {});
606
+
595
607
  // src/contracts/generated/enum/uploadLinkType.ts
596
608
  var UploadLinkType = /* @__PURE__ */ ((UploadLinkType2) => {
597
609
  UploadLinkType2[UploadLinkType2["Unknown"] = 0] = "Unknown";
@@ -650,7 +662,8 @@ var hubspotQuestionsExport = {
650
662
  how_long_can_your_dog_be_home_alone_: {
651
663
  how_long_can_your_dog_be_home_alone__option0: "My dog can't be alone",
652
664
  how_long_can_your_dog_be_home_alone__option1: "1-3h",
653
- how_long_can_your_dog_be_home_alone__option2: "During a normal work day (8h)"
665
+ how_long_can_your_dog_be_home_alone__option2: "3-6h",
666
+ how_long_can_your_dog_be_home_alone__option3: "During the work day"
654
667
  },
655
668
  is_your_dog_allowed_on_the_couch_: {
656
669
  is_your_dog_allowed_on_the_couch__option0: "No",
@@ -739,7 +752,7 @@ var AuthRegisterRestriction = {
739
752
 
740
753
  // src/contracts/generated/restrictions/bookingRestriction.ts
741
754
  var BookingRestriction = {
742
- code: { min: 0, max: 99999 },
755
+ code: { min: 0, max: 99999, default: 7e3 },
743
756
  notes: { maxLength: 250 }
744
757
  };
745
758
  var BookingAddonRestriction = {
@@ -839,6 +852,7 @@ var UserRestriction = {
839
852
  firstName: { minLength: 3, maxLength: 80 },
840
853
  lastName: { minLength: 3, maxLength: 80 },
841
854
  email: { minLength: 5, maxLength: 150 },
855
+ contactNumber: { minLength: 5, maxLength: 50 },
842
856
  password: { minLength: 5, maxLength: 50 },
843
857
  hubspotId: { maxLength: 50 },
844
858
  flags: { maxLength: 150 }
@@ -1779,6 +1793,48 @@ var validateForEach = (validation) => (values) => {
1779
1793
  return { isValid: true };
1780
1794
  };
1781
1795
 
1796
+ // src/validation/contactNumberValidation.ts
1797
+ var allowedNonNumericalValuesInContactNumber = "+";
1798
+ var contactNumberCharValid = (char) => {
1799
+ const isNotNum = isNaN(char);
1800
+ if (isNotNum) {
1801
+ return allowedNonNumericalValuesInContactNumber.includes(char);
1802
+ }
1803
+ return true;
1804
+ };
1805
+ var contactNumberValid = (value) => {
1806
+ const containsNonNumber = value.split("").filter((v) => contactNumberCharValid(v) == false).length;
1807
+ if (containsNonNumber) {
1808
+ return {
1809
+ isValid: false,
1810
+ errorMessageTransKey: "phone_number_contains_invalid_char_validator",
1811
+ errorMessage: `Invalid character provided`
1812
+ };
1813
+ }
1814
+ const withoutWhitespace = value.replace(/\s/g, "");
1815
+ let actualValue = withoutWhitespace;
1816
+ const startCode = {
1817
+ zero: "0",
1818
+ zero31: "0031",
1819
+ plus: "+31"
1820
+ };
1821
+ if (withoutWhitespace.startsWith(startCode.zero31)) {
1822
+ actualValue = withoutWhitespace.slice(startCode.zero31.length);
1823
+ } else if (withoutWhitespace.startsWith(startCode.plus)) {
1824
+ actualValue = withoutWhitespace.slice(startCode.plus.length);
1825
+ } else if (withoutWhitespace.startsWith(startCode.zero)) {
1826
+ actualValue = withoutWhitespace.slice(startCode.zero.length);
1827
+ }
1828
+ if (actualValue.length != 9) {
1829
+ return {
1830
+ isValid: false,
1831
+ errorMessageTransKey: "phone_number_is_incorrect_length_validator",
1832
+ errorMessage: `Incorrect length provided`
1833
+ };
1834
+ }
1835
+ return { isValid: true };
1836
+ };
1837
+
1782
1838
  // src/validation/dateValidation.ts
1783
1839
  var minDate = (minDate2) => (value) => {
1784
1840
  if (isBefore(minDate2, value)) {
@@ -1887,6 +1943,20 @@ var passwordValid = (value) => {
1887
1943
  return { isValid: true };
1888
1944
  };
1889
1945
 
1946
+ // src/validation/postCodeValidation.ts
1947
+ var postCodeValid = (value) => {
1948
+ const postCodePattern = /^\d{4}\s?\w{2}$/;
1949
+ const isValidPostCode = postCodePattern.test(value);
1950
+ if (isValidPostCode == false) {
1951
+ return {
1952
+ isValid: false,
1953
+ errorMessageTransKey: "post_code_invalid_char_validator",
1954
+ errorMessage: `Post Code does not match the pattern 1234 AB`
1955
+ };
1956
+ }
1957
+ return { isValid: true };
1958
+ };
1959
+
1890
1960
  // src/validation/textValidation.ts
1891
1961
  var minLength = (minLengthVal) => (value) => {
1892
1962
  if ((value?.length ?? 0) >= minLengthVal) {
@@ -1944,4 +2014,4 @@ var shouldBeYoutubeUrl = (value) => {
1944
2014
  };
1945
2015
  };
1946
2016
 
1947
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, 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, StripeRestriction, SupportedLanguageArray, TempLinkType, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
2017
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, 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, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
@@ -1,5 +1,5 @@
1
- import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-CchEXsUj.js';
2
- export { d6 as APP_TYPE_TOKEN, ah as ActivityDto, x as ActivityLocationType, by as ActivityRestriction, F as ActivityType, ai as AddressCreateDto, aj as AddressDto, G as AddressLinkType, ak as AddressLookupDto, bz as AddressRestriction, al as AddressUpdateDto, am as AnswerCreateDto, an as AnswerDto, J as AnswerLinkType, bA as AnswerRestriction, A as AppType, ao as AuthLoginDto, ap as AuthPatDto, aq as AuthRegisterAddressDto, ar as AuthRegisterDto, as as AuthRegisterGetQuestionsDto, at as AuthRegisterPetDto, au as AuthRegisterQuestionDto, bB as AuthRegisterRestriction, av as AuthRegisterUserDto, aw as AuthRequestResetPasswordDto, ax as AuthResetPasswordDto, ay as AuthSuccessDto, c6 as BOOKING_OVERVIEW_STATUSES, d4 as BOT_PATH_TOKEN, az as BookingAddonDto, bD as BookingAddonRestriction, O as BookingAddonType, c2 as BookingCalendarOverviewItem, aA as BookingCreateDto, aB as BookingDto, aC as BookingHostCreateDto, aD as BookingHostDto, aE as BookingHostUpdateDto, bC as BookingRestriction, aF as BookingRestrictionsDto, aG as BookingRestrictionsEnabledDaysDto, aH as BookingRestrictionsPremiumEnabledDaysDto, c7 as BookingStatusCounts, P as BookingStatusType, aI as BookingUpdateDto, aJ as BookingWithRelationshipsDto, aK as BugReportCreateDto, aL as BugReportDto, bE as BugReportRestriction, Q as BugReportStatusType, aM as BugReportUpdateDto, h as CachedValue, u as ClickEvent, aN as ClientAnswerSaveDto, aO as CommentCreateDto, aP as CommentDto, U as CommentLinkType, bF as CommentRestriction, aQ as CommentUpdateDto, d2 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bG as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, r as HtmlFilesEvent, t as HtmlImageReadEvent, q as HtmlKeyEvent, bR as ICaptchaResponse, o as IDependencyInjectionSetupWebProps, cA as IImageParams, bT as ILogMessage, bU as IMediaUpload, d1 as ISite, c_ as ISiteColour, aR as InvoiceCreateDto, aS as InvoiceDto, bH as InvoiceRestriction, V as InvoiceStatusType, aT as InvoiceUpdateDto, aU as InvoiceWithStripeInfoDto, bx as JwtPayloadDto, K as KeyEvent, bS as LogMethod, X as LogType, Y as MembershipBillingCycleType, aV as MembershipCreateDto, aW as MembershipDto, bI as MembershipRestriction, Z as MembershipStatus, _ as MembershipType, aX as MembershipUpdateDto, M as MonthTranslationKey, f as MouseButton, N as NANAS_PALLETTE, $ as NetworkState, bW as NominatimAddressResponse, bV as NominatimResponse, cV as ObjectWithPropsOfValue, a0 as OrderDirectionType, aY as PaginationRequestDto, aZ as PaginationResponseDto, a_ as PaymentMethodDto, bJ as PermissionRestriction, a1 as PermissionType, a$ as PetCreateDto, b0 as PetDto, bK as PetRestriction, a2 as PetSexType, a3 as PetStatusType, a4 as PetType, b1 as PetUpdateDto, cW as Prettify, b2 as ProfileDto, b3 as ProfileQuestionAndAnswersItemDto, b4 as ProfileQuestionRequestDto, b5 as ProfileUpdateDto, b6 as QuestionCreateDto, b7 as QuestionDto, a6 as QuestionForType, bL as QuestionRestriction, a5 as QuestionType, b8 as QuestionUpdateDto, cc as RenderCellType, d8 as SITE_CONFIG_TOKEN, b9 as SearchObjDatePropRequestDto, ba as SearchObjRequestDto, bb as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bc as SetupIntentCreateDto, bd as SetupIntentDto, bM as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, be as TempLinkCreateDto, bf as TempLinkDto, aa as TempLinkType, T as ThemeType, bN as UnavailabilityRestriction, bg as UploadCreateDto, bh as UploadDto, bi as UploadImageWithLinkDto, ab as UploadLinkType, bO as UploadRestriction, ac as UploadType, bj as UploadUpdateDto, ae as UserAccountFlagType, bk as UserCreateDto, bl as UserDto, bm as UserMembershipChangeResponseDto, bn as UserMembershipCreateDto, bo as UserMembershipDto, bp as UserMembershipSignUpDto, bq as UserMembershipSignUpResponseDto, br as UserMembershipStatsDto, bs as UserMembershipUpdateDto, bt as UserMembershipWithStripeInfoDto, bu as UserPermissionDto, bP as UserRestriction, af as UserType, bv as UserUpdateDto, bX as ValidationResult, bw as VersionDto, W as WeekdayTranslationKey, y as activityShortCode, co as addDays, cn as addMinutes, cp as addMonths, cm as addSeconds, cR as addSpacesForEnum, c1 as addToParallelTasks, cT as anyObject, B as apiRoute, z as apiRouteParam, b$ as arrayContains, b_ as arrayOfNLength, cP as capitalizeFirstLetter, c$ as colourPalette, e as commonEmailLinks, c8 as computeBookingStatusCounts, j as createToken, cz as cyrb53, cs as dateDiffInDays, cw as debounceLeading, d0 as defaultSiteColour, dt as emailValid, cU as fakePromise, c9 as filterBookingsByOverviewStatus, c5 as formatBookingCalendarLabel, cf as formatDate, cS as formatFileSize, cl as formatForBookingDate, ch as formatForDateDropdown, cg as formatForDateLocal, ck as formatForDateLocalDetailed, ci as formatForDateOfBirth, cj as formatForDateWithTime, cZ as getActiveUserMembership, ct as getAgeInYears, a7 as getAllPetQuestionForType, d7 as getAppType, cx as getArrFromEnum, c3 as getBookingStatusLabelForAdmin, d5 as getBotPath, dc as getCommonConfig, ca as getDayClassObject, cd as getDayElements, cb as getDayHeadingElements, cB as getImageParams, dd as getLog, c4 as getMembershipTypeLabel, cE as getMimeTypeFromExtension, cC as getPayloadFromJwt, cG as getPerformanceTimer, cJ as getPetAvatarUrl, cM as getQuestionGroups, db as getSiteColour, da as getSiteConfig, cI as getUserAvatarUrl, ce as getUsersName, cu as getWeekNumber, cH as hasRequiredPermissions, ag as hubspotQuestionsExport, cq as isBefore, du as isNumber, cr as isSameDay, i as isWebApp, cQ as lowercaseFirstLetter, bY as makeArrayOrDefault, ds as maxDate, di as maxItems, dz as maxLength, dw as maxValue, cD as mimeTypeLookup, dr as minDate, dh as minItems, dy as minLength, g as minUrlLength, dv as minValue, m as monthTranslationKeyOrder, dn as multiValidation, cL as nameof, n as nanasFonts, dl as noValidation, dm as notNull, bZ as onlyUnique, dx as passwordValid, p as portalGlyphLength, cK as promiseFromValue, cN as randomIntFromRange, cO as randomItemFromArray, d3 as rootContainer, de as rootDependencyInjectionSetup, bQ as searchColumns, dj as selectedItemsExist, dk as selectedOptionIsInEnum, dp as separateValidation, df as setContainerToken, dg as setContainerTokenLazy, d9 as setSiteConfig, dA as shouldBeUrl, dB as shouldBeYoutubeUrl, cv as showSecondCalendar, s as socialLinks, c0 as timeout, cF as tryParseNumber, ad as uploadsThatNeedEncryption, cX as urlRef, cY as userMustChangePassword, cy as uuidv4, v as validUuidChars, dq as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CchEXsUj.js';
1
+ import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-DNnzgi9l.js';
2
+ export { d9 as APP_TYPE_TOKEN, ai as ActivityDto, x as ActivityLocationType, bB as ActivityRestriction, F as ActivityType, aj as AddressCreateDto, ak as AddressDto, G as AddressLinkType, al as AddressLookupDto, bC as AddressRestriction, am as AddressUpdateDto, an as AnswerCreateDto, ao as AnswerDto, J as AnswerLinkType, bD as AnswerRestriction, A as AppType, ap as AuthChangePasswordDto, aq as AuthLoginDto, ar as AuthPatDto, as as AuthRegisterAddressDto, at as AuthRegisterDto, au as AuthRegisterGetQuestionsDto, av as AuthRegisterPetDto, aw as AuthRegisterQuestionDto, bE as AuthRegisterRestriction, ax as AuthRegisterUserDto, ay as AuthRequestResetPasswordDto, az as AuthResetPasswordDto, aA as AuthSuccessDto, c9 as BOOKING_OVERVIEW_STATUSES, d7 as BOT_PATH_TOKEN, aB as BookingAddonDto, bG as BookingAddonRestriction, O as BookingAddonType, c5 as BookingCalendarOverviewItem, aC as BookingCalendarOverviewItemDto, aD as BookingCreateDto, aE as BookingDto, aF as BookingHostCreateDto, aG as BookingHostDto, aH as BookingHostUpdateDto, bF as BookingRestriction, aI as BookingRestrictionsDto, aJ as BookingRestrictionsEnabledDaysDto, aK as BookingRestrictionsPremiumEnabledDaysDto, ca as BookingStatusCounts, P as BookingStatusType, aL as BookingUpdateDto, aM as BookingWithRelationshipsDto, aN as BugReportCreateDto, aO as BugReportDto, bH as BugReportRestriction, Q as BugReportStatusType, aP as BugReportUpdateDto, h as CachedValue, u as ClickEvent, aQ as ClientAnswerSaveDto, aR as CommentCreateDto, aS as CommentDto, U as CommentLinkType, bI as CommentRestriction, aT as CommentUpdateDto, d5 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bJ as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, r as HtmlFilesEvent, t as HtmlImageReadEvent, q as HtmlKeyEvent, bU as ICaptchaResponse, o as IDependencyInjectionSetupWebProps, cD as IImageParams, bW as ILogMessage, bX as IMediaUpload, d4 as ISite, d1 as ISiteColour, aU as InvoiceCreateDto, aV as InvoiceDto, bK as InvoiceRestriction, V as InvoiceStatusType, aW as InvoiceUpdateDto, aX as InvoiceWithStripeInfoDto, bA as JwtPayloadDto, K as KeyEvent, bV as LogMethod, X as LogType, Y as MembershipBillingCycleType, aY as MembershipCreateDto, aZ as MembershipDto, bL as MembershipRestriction, Z as MembershipStatus, _ as MembershipType, a_ as MembershipUpdateDto, M as MonthTranslationKey, f as MouseButton, N as NANAS_PALLETTE, $ as NetworkState, bZ as NominatimAddressResponse, bY as NominatimResponse, cY as ObjectWithPropsOfValue, a0 as OrderDirectionType, a$ as PaginationRequestDto, b0 as PaginationResponseDto, b1 as PaymentMethodDto, bM as PermissionRestriction, a1 as PermissionType, b2 as PetCreateDto, b3 as PetDto, bN as PetRestriction, a2 as PetSexType, a3 as PetStatusType, a4 as PetType, b4 as PetUpdateDto, cZ as Prettify, b5 as ProfileDto, b6 as ProfileQuestionAndAnswersItemDto, b7 as ProfileQuestionRequestDto, b8 as ProfileUpdateDto, b9 as QuestionCreateDto, ba as QuestionDto, a6 as QuestionForType, bO as QuestionRestriction, a5 as QuestionType, bb as QuestionUpdateDto, cf as RenderCellType, db as SITE_CONFIG_TOKEN, bc as SearchObjDatePropRequestDto, bd as SearchObjRequestDto, be as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bf as SetupIntentCreateDto, bg as SetupIntentDto, bP as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bh as TempLinkCreateDto, bi as TempLinkDto, aa as TempLinkType, ab as TempRegistrationStatus, T as ThemeType, bQ as UnavailabilityRestriction, bj as UploadCreateDto, bk as UploadDto, bl as UploadImageWithLinkDto, ac as UploadLinkType, bR as UploadRestriction, ad as UploadType, bm as UploadUpdateDto, af as UserAccountFlagType, bn as UserCreateDto, bo as UserDto, bp as UserMembershipChangeResponseDto, bq as UserMembershipCreateDto, br as UserMembershipDto, bs as UserMembershipSignUpDto, bt as UserMembershipSignUpResponseDto, bu as UserMembershipStatsDto, bv as UserMembershipUpdateDto, bw as UserMembershipWithStripeInfoDto, bx as UserPermissionDto, bS as UserRestriction, ag as UserType, by as UserUpdateDto, b_ as ValidationResult, bz as VersionDto, W as WeekdayTranslationKey, y as activityShortCode, cr as addDays, cq as addMinutes, cs as addMonths, cp as addSeconds, cU as addSpacesForEnum, c4 as addToParallelTasks, du as allowedNonNumericalValuesInContactNumber, cW as anyObject, B as apiRoute, z as apiRouteParam, c2 as arrayContains, c1 as arrayOfNLength, cS as capitalizeFirstLetter, d2 as colourPalette, e as commonEmailLinks, cb as computeBookingStatusCounts, dv as contactNumberCharValid, dw as contactNumberValid, j as createToken, cC as cyrb53, cv as dateDiffInDays, cz as debounceLeading, d3 as defaultSiteColour, dz as emailValid, cX as fakePromise, cc as filterBookingsByOverviewStatus, c8 as formatBookingCalendarLabel, ci as formatDate, cV as formatFileSize, co as formatForBookingDate, ck as formatForDateDropdown, cj as formatForDateLocal, cn as formatForDateLocalDetailed, cl as formatForDateOfBirth, cm as formatForDateWithTime, d0 as getActiveUserMembership, cw as getAgeInYears, a7 as getAllPetQuestionForType, da as getAppType, cA as getArrFromEnum, c6 as getBookingStatusLabelForAdmin, d8 as getBotPath, df as getCommonConfig, cd as getDayClassObject, cg as getDayElements, ce as getDayHeadingElements, cE as getImageParams, dg as getLog, c7 as getMembershipTypeLabel, cH as getMimeTypeFromExtension, cF as getPayloadFromJwt, cJ as getPerformanceTimer, cM as getPetAvatarUrl, cP as getQuestionGroups, de as getSiteColour, dd as getSiteConfig, cL as getUserAvatarUrl, ch as getUsersName, cx as getWeekNumber, cK as hasRequiredPermissions, ah as hubspotQuestionsExport, ct as isBefore, dA as isNumber, cu as isSameDay, i as isWebApp, cT as lowercaseFirstLetter, b$ as makeArrayOrDefault, dy as maxDate, dl as maxItems, dG as maxLength, dC as maxValue, cG as mimeTypeLookup, dx as minDate, dk as minItems, dF as minLength, g as minUrlLength, dB as minValue, m as monthTranslationKeyOrder, dr as multiValidation, cO as nameof, n as nanasFonts, dp as noValidation, dq as notNull, c0 as onlyUnique, dD as passwordValid, p as portalGlyphLength, dE as postCodeValid, cN as promiseFromValue, cQ as randomIntFromRange, cR as randomItemFromArray, d6 as rootContainer, dh as rootDependencyInjectionSetup, bT as searchColumns, dm as selectedItemsExist, dn as selectedOptionIsInEnum, ds as separateValidation, di as setContainerToken, dj as setContainerTokenLazy, dc as setSiteConfig, dH as shouldBeUrl, dI as shouldBeYoutubeUrl, cy as showSecondCalendar, s as socialLinks, c3 as timeout, cI as tryParseNumber, ae as uploadsThatNeedEncryption, c_ as urlRef, c$ as userMustChangePassword, cB as uuidv4, v as validUuidChars, dt as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-DNnzgi9l.js';
3
3
  import 'solid-js';
4
4
 
5
5
  /**
@@ -236,7 +236,25 @@ declare const emailTemplatePlaceholderReplace: (props: {
236
236
  declare const emailTemplatePlaceholderReplaceStringWithPlaceholderMap: (fileContent: string, placeHolderMap: Record<string, string>) => Promise<ResultWithValue<string>>;
237
237
  declare const emailTemplatePlaceholderCheck: (emailContent: string) => Promise<ResultWithValue<string>>;
238
238
 
239
- type TranslationsUsed$1 = {
239
+ type TranslationsUsed$3 = {
240
+ booking_request_email_subject: string;
241
+ booking_request_email_title: string;
242
+ booking_request_email_greeting: string;
243
+ booking_request_email_description: string;
244
+ booking_request_email_description2: string;
245
+ booking_request_email_reason_for_email: string;
246
+ booking_request_email_btn: string;
247
+ booking_request_email_btn_fallback: string;
248
+ email_footer_website_link_title: string;
249
+ email_footer_terms_link_title: string;
250
+ email_footer_privacy_link_title: string;
251
+ };
252
+ type IFillResetPasswordEmail$2 = TranslationsUsed$3 & IFillEmailDefaultLayout & {
253
+ bookingDetailsLink: string;
254
+ };
255
+ declare const fillBookingRequestEmail: (props: IFillResetPasswordEmail$2) => Promise<ResultWithValue<EmailTemplateResponse>>;
256
+
257
+ type TranslationsUsed$2 = {
240
258
  confirm_account_email_subject: string;
241
259
  confirm_account_email_title: string;
242
260
  confirm_account_email_greeting: string;
@@ -248,12 +266,12 @@ type TranslationsUsed$1 = {
248
266
  email_footer_terms_link_title: string;
249
267
  email_footer_privacy_link_title: string;
250
268
  };
251
- type IFillConfirmEmail = TranslationsUsed$1 & IFillEmailDefaultLayout & {
269
+ type IFillConfirmEmail = TranslationsUsed$2 & IFillEmailDefaultLayout & {
252
270
  confirmationLink: string;
253
271
  };
254
272
  declare const fillConfirmEmail: (props: IFillConfirmEmail) => Promise<ResultWithValue<EmailTemplateResponse>>;
255
273
 
256
- type TranslationsUsed = {
274
+ type TranslationsUsed$1 = {
257
275
  request_reset_password_email_subject: string;
258
276
  request_reset_password_email_title: string;
259
277
  request_reset_password_email_greeting: string;
@@ -265,10 +283,23 @@ type TranslationsUsed = {
265
283
  email_footer_terms_link_title: string;
266
284
  email_footer_privacy_link_title: string;
267
285
  };
268
- type IFillResetPasswordEmail = TranslationsUsed & IFillEmailDefaultLayout & {
286
+ type IFillResetPasswordEmail$1 = TranslationsUsed$1 & IFillEmailDefaultLayout & {
269
287
  resetPasswordLink: string;
270
288
  };
271
- declare const fillResetPasswordEmail: (props: IFillResetPasswordEmail) => Promise<ResultWithValue<EmailTemplateResponse>>;
289
+ declare const fillResetPasswordEmail: (props: IFillResetPasswordEmail$1) => Promise<ResultWithValue<EmailTemplateResponse>>;
290
+
291
+ type TranslationsUsed = {
292
+ reset_password_confirmation_email_subject: string;
293
+ reset_password_confirmation_email_title: string;
294
+ reset_password_confirmation_email_greeting: string;
295
+ reset_password_confirmation_email_description: string;
296
+ reset_password_confirmation_email_reason_for_email: string;
297
+ email_footer_website_link_title: string;
298
+ email_footer_terms_link_title: string;
299
+ email_footer_privacy_link_title: string;
300
+ };
301
+ type IFillResetPasswordEmail = TranslationsUsed & IFillEmailDefaultLayout;
302
+ declare const fillResetPasswordConfirmationEmail: (props: IFillResetPasswordEmail) => Promise<ResultWithValue<EmailTemplateResponse>>;
272
303
 
273
304
  declare const dependencyInjectionNodeSetup: (props: IDependencyInjectionSetupProps) => {
274
305
  logService: LogService;
@@ -276,4 +307,4 @@ declare const dependencyInjectionNodeSetup: (props: IDependencyInjectionSetupPro
276
307
  };
277
308
  declare const getCaptchaNodeService: () => CaptchaNodeService;
278
309
 
279
- export { CaptchaNodeService, CommonConfigService, type EmailTemplateResponse, IDependencyInjectionSetupProps, type IFillEmailDefaultLayout, type IFillTextDefaultLayout, ILogger, LogService, Result, ResultWithValue, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillConfirmEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
310
+ export { CaptchaNodeService, CommonConfigService, type EmailTemplateResponse, IDependencyInjectionSetupProps, type IFillEmailDefaultLayout, type IFillTextDefaultLayout, ILogger, LogService, Result, ResultWithValue, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillBookingRequestEmail, fillConfirmEmail, fillResetPasswordConfirmationEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
@@ -1,5 +1,5 @@
1
- import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/CNSK7ZOR.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, CommentLinkType, CommentRestriction, CommonConfigService, 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, StripeRestriction, SupportedLanguageArray, TempLinkType, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingStatusCounts, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/CNSK7ZOR.js';
1
+ import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/COU2KN7W.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, CommentLinkType, CommentRestriction, CommonConfigService, 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, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/COU2KN7W.js';
3
3
  import fs6, { stat } from 'fs/promises';
4
4
  import path12 from 'path';
5
5
  import fs2 from 'fs';
@@ -1030,19 +1030,15 @@ var emailDefaultLayout_default = `<!DOCTYPE html>
1030
1030
  </table>
1031
1031
  </td>
1032
1032
  </tr>
1033
- </table>
1034
-
1035
- <!-- Banner -->
1036
- <table class="pc-component" style="width:600px;max-width:600px" width="600" align="center"
1037
- border="0" cellspacing="0" cellpadding="0" role="presentation">
1038
1033
  <tr>
1039
1034
  <td valign="top" class="pc-w520-padding-5-0-15-0 pc-w620-padding-5-0-15-0"
1040
- style="height:unset;background-color:#fff" bgcolor="#ffffff">
1035
+ style="height:unset;background-color:#263a38;padding-bottom:0 !important"
1036
+ bgcolor="#ffffff">
1041
1037
  <table width="100%" border="0" cellpadding="0" cellspacing="0"
1042
1038
  role="presentation">
1043
1039
  <tr>
1044
1040
  <td valign="top"><img
1045
- src="https://ci3.googleusercontent.com/meips/ADKq_NYhF-eIAWrwKut-whoAJF6cV0s0HAC09nZ8Zyf4OC9cMtWwSe5qXIIx0Ym8LJeyvS3Jn-3elMXtJ7ucnn4yf6M1gBTSScFNnYiT2NSp74ZDZKT_nodNbsINQhlB7c9Z1NDDWZGKm_3HP9_fQoS1gsYZ9O-5QHM0jn8us31_B-kn62MXu8i9UiZuju3zd8VvkmGQ8CgOuN0S-ea_-6rKHUMAFFCW1A=s0-d-e1-ft#https://hs-20081826.f.hubspotstarter.net/hub/20081826/hubfs/Email%20headers%20(15).png?width=1120&upscale=true&name=Email%20headers%20(15).png"
1041
+ src="https://cdn.nanashome.club/email/defaultLayoutBanner.jpg"
1046
1042
  style="display:block;outline:0;line-height:100%;-ms-interpolation-mode:bicubic;width:100%;height:auto;border:0"
1047
1043
  width="600" height="auto" alt="" /></td>
1048
1044
  </tr>
@@ -1483,6 +1479,61 @@ var emailPostScriptTextRow = (props) => `<table class="pc-component" style="widt
1483
1479
  </tr>
1484
1480
  </table>`;
1485
1481
 
1482
+ // src/services/external/email/templates/bookingRequest/bookingRequest.ts
1483
+ var fillBookingRequestEmail = async (props) => {
1484
+ const emailContent = [
1485
+ emailHeadingRow({ text: props.booking_request_email_title }),
1486
+ //
1487
+ emailBodyRow({
1488
+ content: [
1489
+ emailParagraph({ content: props.booking_request_email_greeting }),
1490
+ "<br/>",
1491
+ emailParagraph({
1492
+ content: props.booking_request_email_description
1493
+ }),
1494
+ "<br/><br/>",
1495
+ emailParagraph({
1496
+ content: props.booking_request_email_description2
1497
+ })
1498
+ ].join("")
1499
+ }),
1500
+ //
1501
+ emailButtonRow({ link: props.bookingDetailsLink, text: props.booking_request_email_btn }),
1502
+ //
1503
+ emailPostScriptTextRow({
1504
+ content: [
1505
+ emailItalicFaded({ content: props.booking_request_email_btn_fallback }),
1506
+ "<br/>",
1507
+ emailItalicFadedLink({ link: props.bookingDetailsLink, content: props.bookingDetailsLink })
1508
+ ].join("")
1509
+ })
1510
+ ].join("");
1511
+ const textContent = [props.booking_request_email_greeting, props.booking_request_email_description, ""].join("");
1512
+ const layoutTranslations = {
1513
+ emailTitle: props.booking_request_email_subject,
1514
+ reasonForEmail: props.booking_request_email_reason_for_email,
1515
+ footerWebsiteLinkTitle: props.email_footer_website_link_title,
1516
+ footerTermsLinkTitle: props.email_footer_terms_link_title,
1517
+ footerPrivacyLinkTitle: props.email_footer_privacy_link_title
1518
+ };
1519
+ const [emailHtmlResult, emailTxtResult] = await Promise.all([
1520
+ emailDefaultLayout({ ...props, ...layoutTranslations }, emailContent),
1521
+ emailTemplatePlaceholderReplaceStringWithPlaceholderMap(
1522
+ textDefaultLayout({ ...props, ...layoutTranslations }, textContent),
1523
+ {}
1524
+ )
1525
+ ]);
1526
+ if (emailHtmlResult.isSuccess == false) return emailHtmlResult;
1527
+ if (emailTxtResult.isSuccess == false) return emailTxtResult;
1528
+ return {
1529
+ isSuccess: true,
1530
+ value: {
1531
+ html: emailHtmlResult.value,
1532
+ text: emailTxtResult.value
1533
+ }
1534
+ };
1535
+ };
1536
+
1486
1537
  // src/services/external/email/templates/confirmEmail/confirmEmail.ts
1487
1538
  var fillConfirmEmail = async (props) => {
1488
1539
  const emailContent = [
@@ -1594,6 +1645,52 @@ var fillResetPasswordEmail = async (props) => {
1594
1645
  };
1595
1646
  };
1596
1647
 
1648
+ // src/services/external/email/templates/resetPasswordConfirmation/resetPasswordConfirmation.ts
1649
+ var fillResetPasswordConfirmationEmail = async (props) => {
1650
+ const emailContent = [
1651
+ emailHeadingRow({ text: props.reset_password_confirmation_email_title }),
1652
+ //
1653
+ emailBodyRow({
1654
+ content: [
1655
+ emailParagraph({ content: props.reset_password_confirmation_email_greeting }),
1656
+ "<br/>",
1657
+ emailParagraph({
1658
+ content: props.reset_password_confirmation_email_description
1659
+ })
1660
+ ].join("")
1661
+ }),
1662
+ emailBodyRow({ content: "" })
1663
+ ].join("");
1664
+ const textContent = [
1665
+ props.reset_password_confirmation_email_greeting,
1666
+ props.reset_password_confirmation_email_description,
1667
+ ""
1668
+ ].join("");
1669
+ const layoutTranslations = {
1670
+ emailTitle: props.reset_password_confirmation_email_subject,
1671
+ reasonForEmail: props.reset_password_confirmation_email_reason_for_email,
1672
+ footerWebsiteLinkTitle: props.email_footer_website_link_title,
1673
+ footerTermsLinkTitle: props.email_footer_terms_link_title,
1674
+ footerPrivacyLinkTitle: props.email_footer_privacy_link_title
1675
+ };
1676
+ const [emailHtmlResult, emailTxtResult] = await Promise.all([
1677
+ emailDefaultLayout({ ...props, ...layoutTranslations }, emailContent),
1678
+ emailTemplatePlaceholderReplaceStringWithPlaceholderMap(
1679
+ textDefaultLayout({ ...props, ...layoutTranslations }, textContent),
1680
+ {}
1681
+ )
1682
+ ]);
1683
+ if (emailHtmlResult.isSuccess == false) return emailHtmlResult;
1684
+ if (emailTxtResult.isSuccess == false) return emailTxtResult;
1685
+ return {
1686
+ isSuccess: true,
1687
+ value: {
1688
+ html: emailHtmlResult.value,
1689
+ text: emailTxtResult.value
1690
+ }
1691
+ };
1692
+ };
1693
+
1597
1694
  // src/services/internal/dependencyInjection/setup-node.ts
1598
1695
  var dependencyInjectionNodeSetup = (props) => {
1599
1696
  const { logService, configService } = rootDependencyInjectionSetup(props);
@@ -1602,4 +1699,4 @@ var dependencyInjectionNodeSetup = (props) => {
1602
1699
  };
1603
1700
  var getCaptchaNodeService = () => rootContainer.resolve(CaptchaNodeService);
1604
1701
 
1605
- export { CaptchaNodeService, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillConfirmEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
1702
+ export { CaptchaNodeService, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillBookingRequestEmail, fillConfirmEmail, fillResetPasswordConfirmationEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
@@ -641,7 +641,11 @@ declare enum PetStatusType {
641
641
  declare enum PetType {
642
642
  Unknown = 0,
643
643
  Dog = 1,
644
- Cat = 2
644
+ Cat = 2,
645
+ Bird = 3,
646
+ Rodent = 4,
647
+ Reptile = 5,
648
+ Other = 6
645
649
  }
646
650
 
647
651
  declare enum QuestionType {
@@ -683,6 +687,12 @@ declare enum TempLinkType {
683
687
  EmailConfirmation = 2
684
688
  }
685
689
 
690
+ declare enum TempRegistrationStatus {
691
+ UnProcessed = 0,
692
+ EmailReminderSent = 1,
693
+ RegistrationSuccess = 2
694
+ }
695
+
686
696
  declare enum UploadLinkType {
687
697
  Unknown = 0,
688
698
  User = 1,
@@ -852,6 +862,14 @@ interface components {
852
862
  dateCreated: Record<string, never> | string | number;
853
863
  dateModified: Record<string, never> | string | number;
854
864
  };
865
+ /**
866
+ * AuthChangePasswordDto
867
+ * @description Change password for the authenticated user (e.g. when ChangePassword flag is set)
868
+ */
869
+ AuthChangePasswordDto: {
870
+ currentPassword: string;
871
+ newPassword: string;
872
+ };
855
873
  /**
856
874
  * AuthLoginDto
857
875
  * @description Details required to login for an account
@@ -901,6 +919,7 @@ interface components {
901
919
  * @default info@nanaspetsitting.com
902
920
  */
903
921
  email: string;
922
+ contactNumber: string;
904
923
  password: string;
905
924
  };
906
925
  /**
@@ -920,7 +939,7 @@ interface components {
920
939
  sex: 0 | 1 | 2;
921
940
  name: string;
922
941
  /** PetType */
923
- type: 0 | 1 | 2;
942
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
924
943
  breed: string;
925
944
  neutered: boolean;
926
945
  notes: string;
@@ -961,6 +980,7 @@ interface components {
961
980
  * @default info@nanaspetsitting.com
962
981
  */
963
982
  email: string;
983
+ contactNumber: string;
964
984
  password: string;
965
985
  };
966
986
  /**
@@ -980,7 +1000,7 @@ interface components {
980
1000
  sex: 0 | 1 | 2;
981
1001
  name: string;
982
1002
  /** PetType */
983
- type: 0 | 1 | 2;
1003
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
984
1004
  breed: string;
985
1005
  neutered: boolean;
986
1006
  notes: string;
@@ -996,7 +1016,7 @@ interface components {
996
1016
  sex: 0 | 1 | 2;
997
1017
  name: string;
998
1018
  /** PetType */
999
- type: 0 | 1 | 2;
1019
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
1000
1020
  breed: string;
1001
1021
  neutered: boolean;
1002
1022
  notes: string;
@@ -1035,6 +1055,7 @@ interface components {
1035
1055
  * @default info@nanaspetsitting.com
1036
1056
  */
1037
1057
  email: string;
1058
+ contactNumber: string;
1038
1059
  password: string;
1039
1060
  };
1040
1061
  /**
@@ -1094,6 +1115,27 @@ interface components {
1094
1115
  dateCreated: Record<string, never> | string | number;
1095
1116
  dateModified: Record<string, never> | string | number;
1096
1117
  };
1118
+ /**
1119
+ * BookingCalendarOverviewItemDto
1120
+ * @description Booking summary for admin calendar overview
1121
+ */
1122
+ BookingCalendarOverviewItemDto: {
1123
+ /**
1124
+ * Format: uuid
1125
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1126
+ */
1127
+ uuid: string;
1128
+ code: number;
1129
+ /** BookingStatusType */
1130
+ status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1131
+ startDate: Record<string, never> | string | number;
1132
+ endDate: Record<string, never> | string | number;
1133
+ petNames: string[];
1134
+ ownerName: string;
1135
+ /** MembershipType */
1136
+ ownerMembershipType: 0 | 1 | 2;
1137
+ hostNames: string[];
1138
+ };
1097
1139
  /**
1098
1140
  * BookingCreateDto
1099
1141
  * @description Create Booking details
@@ -1281,7 +1323,7 @@ interface components {
1281
1323
  sex: 0 | 1 | 2;
1282
1324
  name: string;
1283
1325
  /** PetType */
1284
- type: 0 | 1 | 2;
1326
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
1285
1327
  breed: string;
1286
1328
  neutered: boolean;
1287
1329
  /** PetStatusType */
@@ -1634,7 +1676,7 @@ interface components {
1634
1676
  sex: 0 | 1 | 2;
1635
1677
  name: string;
1636
1678
  /** PetType */
1637
- type: 0 | 1 | 2;
1679
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
1638
1680
  breed: string;
1639
1681
  neutered: boolean;
1640
1682
  /** PetStatusType */
@@ -1661,7 +1703,7 @@ interface components {
1661
1703
  sex: 0 | 1 | 2;
1662
1704
  name: string;
1663
1705
  /** PetType */
1664
- type: 0 | 1 | 2;
1706
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
1665
1707
  breed: string;
1666
1708
  neutered: boolean;
1667
1709
  /** PetStatusType */
@@ -1690,7 +1732,7 @@ interface components {
1690
1732
  sex: 0 | 1 | 2;
1691
1733
  name: string;
1692
1734
  /** PetType */
1693
- type: 0 | 1 | 2;
1735
+ type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
1694
1736
  breed: string;
1695
1737
  neutered: boolean;
1696
1738
  /** PetStatusType */
@@ -2048,6 +2090,7 @@ interface components {
2048
2090
  * @default info@nanaspetsitting.com
2049
2091
  */
2050
2092
  email: string;
2093
+ contactNumber: string;
2051
2094
  password: string;
2052
2095
  };
2053
2096
  /**
@@ -2068,6 +2111,7 @@ interface components {
2068
2111
  * @default info@nanaspetsitting.com
2069
2112
  */
2070
2113
  email: string;
2114
+ contactNumber: string;
2071
2115
  hubspotId: (string | null) | null;
2072
2116
  flags?: (0 | 1 | 2 | 3)[];
2073
2117
  lastLogin: ((Record<string, never> | string | number) | null) | null;
@@ -2275,6 +2319,7 @@ interface components {
2275
2319
  * @default info@nanaspetsitting.com
2276
2320
  */
2277
2321
  email: string;
2322
+ contactNumber: string;
2278
2323
  hubspotId: (string | null) | null;
2279
2324
  stripeCustomerId: (string | null) | null;
2280
2325
  flags: (0 | 1 | 2 | 3)[];
@@ -2286,7 +2331,10 @@ interface components {
2286
2331
  VersionDto: {
2287
2332
  package: string;
2288
2333
  docker: string;
2289
- other: string[];
2334
+ envVariables: string[];
2335
+ translations: {
2336
+ [key: string]: string[];
2337
+ };
2290
2338
  };
2291
2339
  JwtPayloadDto: {
2292
2340
  /**
@@ -2319,6 +2367,7 @@ type AddressLookupDto = components['schemas']['AddressLookupDto'];
2319
2367
  type AddressUpdateDto = components['schemas']['AddressUpdateDto'];
2320
2368
  type AnswerCreateDto = components['schemas']['AnswerCreateDto'];
2321
2369
  type AnswerDto = P<Omit<components['schemas']['AnswerDto'], 'dateCreated' | 'dateModified'> & { dateCreated: Date; dateModified: Date }>;
2370
+ type AuthChangePasswordDto = components['schemas']['AuthChangePasswordDto'];
2322
2371
  type AuthLoginDto = components['schemas']['AuthLoginDto'];
2323
2372
  type AuthPatDto = components['schemas']['AuthPatDto'];
2324
2373
  type AuthRegisterAddressDto = components['schemas']['AuthRegisterAddressDto'];
@@ -2331,6 +2380,7 @@ type AuthRequestResetPasswordDto = components['schemas']['AuthRequestResetPasswo
2331
2380
  type AuthResetPasswordDto = components['schemas']['AuthResetPasswordDto'];
2332
2381
  type AuthSuccessDto = components['schemas']['AuthSuccessDto'];
2333
2382
  type BookingAddonDto = P<Omit<components['schemas']['BookingAddonDto'], 'dateCreated' | 'dateModified'> & { dateCreated: Date; dateModified: Date }>;
2383
+ type BookingCalendarOverviewItemDto = P<Omit<components['schemas']['BookingCalendarOverviewItemDto'], 'startDate' | 'endDate'> & { startDate: Date; endDate: Date }>;
2334
2384
  type BookingCreateDto = P<Omit<components['schemas']['BookingCreateDto'], 'startDate' | 'endDate'> & { startDate: Date; endDate: Date }>;
2335
2385
  type BookingDto = P<Omit<components['schemas']['BookingDto'], 'dateCreated' | 'dateModified' | 'startDate' | 'endDate'> & { dateCreated: Date; dateModified: Date; startDate: Date; endDate: Date }>;
2336
2386
  type BookingHostCreateDto = components['schemas']['BookingHostCreateDto'];
@@ -2453,6 +2503,7 @@ declare const BookingRestriction: {
2453
2503
  readonly code: {
2454
2504
  readonly min: 0;
2455
2505
  readonly max: 99999;
2506
+ readonly default: 7000;
2456
2507
  };
2457
2508
  readonly notes: {
2458
2509
  readonly maxLength: 250;
@@ -2663,6 +2714,10 @@ declare const UserRestriction: {
2663
2714
  readonly minLength: 5;
2664
2715
  readonly maxLength: 150;
2665
2716
  };
2717
+ readonly contactNumber: {
2718
+ readonly minLength: 5;
2719
+ readonly maxLength: 50;
2720
+ };
2666
2721
  readonly password: {
2667
2722
  readonly minLength: 5;
2668
2723
  readonly maxLength: 50;
@@ -3123,6 +3178,10 @@ declare const multiValidation: <T>(...validations: Array<(validationVal: T) => V
3123
3178
  declare const separateValidation: <T>(validators: { [key in keyof typeof AppType]?: (validationVal: T) => ValidationResult; }) => (value: T) => ValidationResult;
3124
3179
  declare const validateForEach: <T>(validation: (item: T) => ValidationResult) => (values: Array<T>) => ValidationResult;
3125
3180
 
3181
+ declare const allowedNonNumericalValuesInContactNumber = "+";
3182
+ declare const contactNumberCharValid: (char: string) => boolean;
3183
+ declare const contactNumberValid: (value: string) => ValidationResult;
3184
+
3126
3185
  declare const minDate: (minDate: Date) => (value: Date) => ValidationResult;
3127
3186
  declare const maxDate: (maxDate: Date) => (value: Date) => ValidationResult;
3128
3187
 
@@ -3134,9 +3193,11 @@ declare const maxValue: (max: number) => (value: number) => ValidationResult;
3134
3193
 
3135
3194
  declare const passwordValid: (value: string) => ValidationResult;
3136
3195
 
3196
+ declare const postCodeValid: (value: string) => ValidationResult;
3197
+
3137
3198
  declare const minLength: (minLengthVal: number) => (value: string) => ValidationResult;
3138
3199
  declare const maxLength: (maxLengthVal: number) => (value: string) => ValidationResult;
3139
3200
  declare const shouldBeUrl: (value: string) => ValidationResult;
3140
3201
  declare const shouldBeYoutubeUrl: (value: string) => ValidationResult;
3141
3202
 
3142
- export { NetworkState as $, AppType as A, apiRoute as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, ActivityType as F, AddressLinkType as G, type HtmlElementEvent as H, type ILogger as I, AnswerLinkType as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, NANAS_PALLETTE as N, BookingAddonType as O, BookingStatusType as P, BugReportStatusType as Q, type ResultWithValue as R, type SupportedLanguage as S, type ThemeType as T, CommentLinkType as U, InvoiceStatusType as V, type WeekdayTranslationKey as W, type LogType as X, MembershipBillingCycleType as Y, MembershipStatus as Z, MembershipType as _, type Result as a, type PetCreateDto as a$, OrderDirectionType as a0, PermissionType as a1, PetSexType as a2, PetStatusType as a3, PetType as a4, QuestionType as a5, QuestionForType as a6, getAllPetQuestionForType as a7, SearchableColumnType as a8, type SearchableColumnInfo as a9, type BookingCreateDto as aA, type BookingDto as aB, type BookingHostCreateDto as aC, type BookingHostDto as aD, type BookingHostUpdateDto as aE, type BookingRestrictionsDto as aF, type BookingRestrictionsEnabledDaysDto as aG, type BookingRestrictionsPremiumEnabledDaysDto as aH, type BookingUpdateDto as aI, type BookingWithRelationshipsDto as aJ, type BugReportCreateDto as aK, type BugReportDto as aL, type BugReportUpdateDto as aM, type ClientAnswerSaveDto as aN, type CommentCreateDto as aO, type CommentDto as aP, type CommentUpdateDto as aQ, type InvoiceCreateDto as aR, type InvoiceDto as aS, type InvoiceUpdateDto as aT, type InvoiceWithStripeInfoDto as aU, type MembershipCreateDto as aV, type MembershipDto as aW, type MembershipUpdateDto as aX, type PaginationRequestDto as aY, type PaginationResponseDto as aZ, type PaymentMethodDto as a_, TempLinkType as aa, UploadLinkType as ab, UploadType as ac, uploadsThatNeedEncryption as ad, UserAccountFlagType as ae, UserType as af, hubspotQuestionsExport as ag, type ActivityDto as ah, type AddressCreateDto as ai, type AddressDto as aj, type AddressLookupDto as ak, type AddressUpdateDto as al, type AnswerCreateDto as am, type AnswerDto as an, type AuthLoginDto as ao, type AuthPatDto as ap, type AuthRegisterAddressDto as aq, type AuthRegisterDto as ar, type AuthRegisterGetQuestionsDto as as, type AuthRegisterPetDto as at, type AuthRegisterQuestionDto as au, type AuthRegisterUserDto as av, type AuthRequestResetPasswordDto as aw, type AuthResetPasswordDto as ax, type AuthSuccessDto as ay, type BookingAddonDto as az, type IDependencyInjectionSetupProps as b, arrayContains as b$, type PetDto as b0, type PetUpdateDto as b1, type ProfileDto as b2, type ProfileQuestionAndAnswersItemDto as b3, type ProfileQuestionRequestDto as b4, type ProfileUpdateDto as b5, type QuestionCreateDto as b6, type QuestionDto as b7, type QuestionUpdateDto as b8, type SearchObjDatePropRequestDto as b9, AnswerRestriction as bA, AuthRegisterRestriction as bB, BookingRestriction as bC, BookingAddonRestriction as bD, BugReportRestriction as bE, CommentRestriction as bF, DrivingRouteRestriction as bG, InvoiceRestriction as bH, MembershipRestriction as bI, PermissionRestriction as bJ, PetRestriction as bK, QuestionRestriction as bL, StripeRestriction as bM, UnavailabilityRestriction as bN, UploadRestriction as bO, UserRestriction as bP, searchColumns as bQ, type ICaptchaResponse as bR, type LogMethod as bS, type ILogMessage as bT, type IMediaUpload as bU, type NominatimResponse as bV, type NominatimAddressResponse as bW, type ValidationResult as bX, makeArrayOrDefault as bY, onlyUnique as bZ, arrayOfNLength as b_, type SearchObjRequestDto as ba, type SearchObjTextPropRequestDto as bb, type SetupIntentCreateDto as bc, type SetupIntentDto as bd, type TempLinkCreateDto as be, type TempLinkDto as bf, type UploadCreateDto as bg, type UploadDto as bh, type UploadImageWithLinkDto as bi, type UploadUpdateDto as bj, type UserCreateDto as bk, type UserDto as bl, type UserMembershipChangeResponseDto as bm, type UserMembershipCreateDto as bn, type UserMembershipDto as bo, type UserMembershipSignUpDto as bp, type UserMembershipSignUpResponseDto as bq, type UserMembershipStatsDto as br, type UserMembershipUpdateDto as bs, type UserMembershipWithStripeInfoDto as bt, type UserPermissionDto as bu, type UserUpdateDto as bv, type VersionDto as bw, type JwtPayloadDto as bx, ActivityRestriction as by, AddressRestriction as bz, weekdayTranslationKeyOrder as c, colourPalette as c$, timeout as c0, addToParallelTasks as c1, type BookingCalendarOverviewItem as c2, getBookingStatusLabelForAdmin as c3, getMembershipTypeLabel as c4, formatBookingCalendarLabel as c5, BOOKING_OVERVIEW_STATUSES as c6, type BookingStatusCounts as c7, computeBookingStatusCounts as c8, filterBookingsByOverviewStatus as c9, type IImageParams as cA, getImageParams as cB, getPayloadFromJwt as cC, mimeTypeLookup as cD, getMimeTypeFromExtension as cE, tryParseNumber as cF, getPerformanceTimer as cG, hasRequiredPermissions as cH, getUserAvatarUrl as cI, getPetAvatarUrl as cJ, promiseFromValue as cK, nameof as cL, getQuestionGroups as cM, randomIntFromRange as cN, randomItemFromArray as cO, capitalizeFirstLetter as cP, lowercaseFirstLetter as cQ, addSpacesForEnum as cR, formatFileSize as cS, anyObject as cT, fakePromise as cU, type ObjectWithPropsOfValue as cV, type Prettify as cW, urlRef as cX, userMustChangePassword as cY, getActiveUserMembership as cZ, type ISiteColour as c_, getDayClassObject as ca, getDayHeadingElements as cb, type RenderCellType as cc, getDayElements as cd, getUsersName as ce, formatDate as cf, formatForDateLocal as cg, formatForDateDropdown as ch, formatForDateOfBirth as ci, formatForDateWithTime as cj, formatForDateLocalDetailed as ck, formatForBookingDate as cl, addSeconds as cm, addMinutes as cn, addDays as co, addMonths as cp, isBefore as cq, isSameDay as cr, dateDiffInDays as cs, getAgeInYears as ct, getWeekNumber as cu, showSecondCalendar as cv, debounceLeading as cw, getArrFromEnum as cx, uuidv4 as cy, cyrb53 as cz, SupportedLanguageArray as d, defaultSiteColour as d0, type ISite as d1, DependencyInjectionContainer as d2, rootContainer as d3, BOT_PATH_TOKEN as d4, getBotPath as d5, APP_TYPE_TOKEN as d6, getAppType as d7, SITE_CONFIG_TOKEN as d8, setSiteConfig as d9, shouldBeUrl as dA, shouldBeYoutubeUrl as dB, type IFormCalendarPickerProps as dC, type FullDateSelectionProps as dD, type FormCalendarPickerMode as dE, type FormCalendarDatePickerRangeProps as dF, type DateSelectionProps as dG, type FormCalendarPickerInnerProps as dH, type FormInputProps as dI, type FormCalendarSpecialRangeDisplayProps as dJ, type FormCalendarSpecialRangeProps as dK, type ValidFormTypes as dL, type ValidFormComponentTypes as dM, type PropertyOverrides as dN, getSiteConfig as da, getSiteColour as db, getCommonConfig as dc, getLog as dd, rootDependencyInjectionSetup as de, setContainerToken as df, setContainerTokenLazy as dg, minItems as dh, maxItems as di, selectedItemsExist as dj, selectedOptionIsInEnum as dk, noValidation as dl, notNull as dm, multiValidation as dn, separateValidation as dp, validateForEach as dq, minDate as dr, maxDate as ds, emailValid as dt, isNumber as du, minValue as dv, maxValue as dw, passwordValid as dx, minLength as dy, maxLength as dz, commonEmailLinks as e, MouseButton as f, minUrlLength as g, type CachedValue as h, isWebApp as i, createToken as j, type DependencyInjectionIdentifier as k, type DependencyInjectionFactory as l, monthTranslationKeyOrder as m, nanasFonts as n, type IDependencyInjectionSetupWebProps as o, portalGlyphLength as p, type HtmlKeyEvent as q, type HtmlFilesEvent as r, socialLinks as s, type HtmlImageReadEvent as t, type ClickEvent as u, validUuidChars as v, webAppTypes as w, type ActivityLocationType as x, activityShortCode as y, apiRouteParam as z };
3203
+ export { NetworkState as $, AppType as A, apiRoute as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, ActivityType as F, AddressLinkType as G, type HtmlElementEvent as H, type ILogger as I, AnswerLinkType as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, NANAS_PALLETTE as N, BookingAddonType as O, BookingStatusType as P, BugReportStatusType as Q, type ResultWithValue as R, type SupportedLanguage as S, type ThemeType as T, CommentLinkType as U, InvoiceStatusType as V, type WeekdayTranslationKey as W, type LogType as X, MembershipBillingCycleType as Y, MembershipStatus as Z, MembershipType as _, type Result as a, type PaginationRequestDto as a$, OrderDirectionType as a0, PermissionType as a1, PetSexType as a2, PetStatusType as a3, PetType as a4, QuestionType as a5, QuestionForType as a6, getAllPetQuestionForType as a7, SearchableColumnType as a8, type SearchableColumnInfo as a9, type AuthSuccessDto as aA, type BookingAddonDto as aB, type BookingCalendarOverviewItemDto as aC, type BookingCreateDto as aD, type BookingDto as aE, type BookingHostCreateDto as aF, type BookingHostDto as aG, type BookingHostUpdateDto as aH, type BookingRestrictionsDto as aI, type BookingRestrictionsEnabledDaysDto as aJ, type BookingRestrictionsPremiumEnabledDaysDto as aK, type BookingUpdateDto as aL, type BookingWithRelationshipsDto as aM, type BugReportCreateDto as aN, type BugReportDto as aO, type BugReportUpdateDto as aP, type ClientAnswerSaveDto as aQ, type CommentCreateDto as aR, type CommentDto as aS, type CommentUpdateDto as aT, type InvoiceCreateDto as aU, type InvoiceDto as aV, type InvoiceUpdateDto as aW, type InvoiceWithStripeInfoDto as aX, type MembershipCreateDto as aY, type MembershipDto as aZ, type MembershipUpdateDto as a_, TempLinkType as aa, TempRegistrationStatus as ab, UploadLinkType as ac, UploadType as ad, uploadsThatNeedEncryption as ae, UserAccountFlagType as af, UserType as ag, hubspotQuestionsExport as ah, type ActivityDto as ai, type AddressCreateDto as aj, type AddressDto as ak, type AddressLookupDto as al, type AddressUpdateDto as am, type AnswerCreateDto as an, type AnswerDto as ao, type AuthChangePasswordDto as ap, type AuthLoginDto as aq, type AuthPatDto as ar, type AuthRegisterAddressDto as as, type AuthRegisterDto as at, type AuthRegisterGetQuestionsDto as au, type AuthRegisterPetDto as av, type AuthRegisterQuestionDto as aw, type AuthRegisterUserDto as ax, type AuthRequestResetPasswordDto as ay, type AuthResetPasswordDto as az, type IDependencyInjectionSetupProps as b, makeArrayOrDefault as b$, type PaginationResponseDto as b0, type PaymentMethodDto as b1, type PetCreateDto as b2, type PetDto as b3, type PetUpdateDto as b4, type ProfileDto as b5, type ProfileQuestionAndAnswersItemDto as b6, type ProfileQuestionRequestDto as b7, type ProfileUpdateDto as b8, type QuestionCreateDto as b9, type JwtPayloadDto as bA, ActivityRestriction as bB, AddressRestriction as bC, AnswerRestriction as bD, AuthRegisterRestriction as bE, BookingRestriction as bF, BookingAddonRestriction as bG, BugReportRestriction as bH, CommentRestriction as bI, DrivingRouteRestriction as bJ, InvoiceRestriction as bK, MembershipRestriction as bL, PermissionRestriction as bM, PetRestriction as bN, QuestionRestriction as bO, StripeRestriction as bP, UnavailabilityRestriction as bQ, UploadRestriction as bR, UserRestriction as bS, searchColumns as bT, type ICaptchaResponse as bU, type LogMethod as bV, type ILogMessage as bW, type IMediaUpload as bX, type NominatimResponse as bY, type NominatimAddressResponse as bZ, type ValidationResult as b_, type QuestionDto as ba, type QuestionUpdateDto as bb, type SearchObjDatePropRequestDto as bc, type SearchObjRequestDto as bd, type SearchObjTextPropRequestDto as be, type SetupIntentCreateDto as bf, type SetupIntentDto as bg, type TempLinkCreateDto as bh, type TempLinkDto as bi, type UploadCreateDto as bj, type UploadDto as bk, type UploadImageWithLinkDto as bl, type UploadUpdateDto as bm, type UserCreateDto as bn, type UserDto as bo, type UserMembershipChangeResponseDto as bp, type UserMembershipCreateDto as bq, type UserMembershipDto as br, type UserMembershipSignUpDto as bs, type UserMembershipSignUpResponseDto as bt, type UserMembershipStatsDto as bu, type UserMembershipUpdateDto as bv, type UserMembershipWithStripeInfoDto as bw, type UserPermissionDto as bx, type UserUpdateDto as by, type VersionDto as bz, weekdayTranslationKeyOrder as c, userMustChangePassword as c$, onlyUnique as c0, arrayOfNLength as c1, arrayContains as c2, timeout as c3, addToParallelTasks as c4, type BookingCalendarOverviewItem as c5, getBookingStatusLabelForAdmin as c6, getMembershipTypeLabel as c7, formatBookingCalendarLabel as c8, BOOKING_OVERVIEW_STATUSES as c9, getArrFromEnum as cA, uuidv4 as cB, cyrb53 as cC, type IImageParams as cD, getImageParams as cE, getPayloadFromJwt as cF, mimeTypeLookup as cG, getMimeTypeFromExtension as cH, tryParseNumber as cI, getPerformanceTimer as cJ, hasRequiredPermissions as cK, getUserAvatarUrl as cL, getPetAvatarUrl as cM, promiseFromValue as cN, nameof as cO, getQuestionGroups as cP, randomIntFromRange as cQ, randomItemFromArray as cR, capitalizeFirstLetter as cS, lowercaseFirstLetter as cT, addSpacesForEnum as cU, formatFileSize as cV, anyObject as cW, fakePromise as cX, type ObjectWithPropsOfValue as cY, type Prettify as cZ, urlRef as c_, type BookingStatusCounts as ca, computeBookingStatusCounts as cb, filterBookingsByOverviewStatus as cc, getDayClassObject as cd, getDayHeadingElements as ce, type RenderCellType as cf, getDayElements as cg, getUsersName as ch, formatDate as ci, formatForDateLocal as cj, formatForDateDropdown as ck, formatForDateOfBirth as cl, formatForDateWithTime as cm, formatForDateLocalDetailed as cn, formatForBookingDate as co, addSeconds as cp, addMinutes as cq, addDays as cr, addMonths as cs, isBefore as ct, isSameDay as cu, dateDiffInDays as cv, getAgeInYears as cw, getWeekNumber as cx, showSecondCalendar as cy, debounceLeading as cz, SupportedLanguageArray as d, getActiveUserMembership as d0, type ISiteColour as d1, colourPalette as d2, defaultSiteColour as d3, type ISite as d4, DependencyInjectionContainer as d5, rootContainer as d6, BOT_PATH_TOKEN as d7, getBotPath as d8, APP_TYPE_TOKEN as d9, isNumber as dA, minValue as dB, maxValue as dC, passwordValid as dD, postCodeValid as dE, minLength as dF, maxLength as dG, shouldBeUrl as dH, shouldBeYoutubeUrl as dI, type IFormCalendarPickerProps as dJ, type FullDateSelectionProps as dK, type FormCalendarPickerMode as dL, type FormCalendarDatePickerRangeProps as dM, type DateSelectionProps as dN, type FormCalendarPickerInnerProps as dO, type FormInputProps as dP, type FormCalendarSpecialRangeDisplayProps as dQ, type FormCalendarSpecialRangeProps as dR, type ValidFormTypes as dS, type ValidFormComponentTypes as dT, type PropertyOverrides as dU, getAppType as da, SITE_CONFIG_TOKEN as db, setSiteConfig as dc, getSiteConfig as dd, getSiteColour as de, getCommonConfig as df, getLog as dg, rootDependencyInjectionSetup as dh, setContainerToken as di, setContainerTokenLazy as dj, minItems as dk, maxItems as dl, selectedItemsExist as dm, selectedOptionIsInEnum as dn, noValidation as dp, notNull as dq, multiValidation as dr, separateValidation as ds, validateForEach as dt, allowedNonNumericalValuesInContactNumber as du, contactNumberCharValid as dv, contactNumberValid as dw, minDate as dx, maxDate as dy, emailValid as dz, commonEmailLinks as e, MouseButton as f, minUrlLength as g, type CachedValue as h, isWebApp as i, createToken as j, type DependencyInjectionIdentifier as k, type DependencyInjectionFactory as l, monthTranslationKeyOrder as m, nanasFonts as n, type IDependencyInjectionSetupWebProps as o, portalGlyphLength as p, type HtmlKeyEvent as q, type HtmlFilesEvent as r, socialLinks as s, type HtmlImageReadEvent as t, type ClickEvent as u, validUuidChars as v, webAppTypes as w, type ActivityLocationType as x, activityShortCode as y, apiRouteParam 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 { F as ActivityType, P as BookingStatusType, Q as BugReportStatusType, u as ClickEvent, _ as MembershipType, Z as MembershipStatus, Y as MembershipBillingCycleType, a3 as PetStatusType, b2 as ProfileDto, b7 as QuestionDto, an as AnswerDto, a6 as QuestionForType, a5 as QuestionType, af as UserType, ae as UserAccountFlagType, R as ResultWithValue, a1 as PermissionType, $ as NetworkState, dC as IFormCalendarPickerProps, dD as FullDateSelectionProps, dE as FormCalendarPickerMode, dF as FormCalendarDatePickerRangeProps, dG as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, dH as FormCalendarPickerInnerProps, dI as FormInputProps, bX as ValidationResult, K as KeyEvent, H as HtmlElementEvent, ai as AddressCreateDto, al as AddressUpdateDto, ao as AuthLoginDto, av as AuthRegisterUserDto, aA as BookingCreateDto, aI as BookingUpdateDto, aL as BugReportDto, aK as BugReportCreateDto, aV as MembershipCreateDto, a$ as PetCreateDto, b1 as PetUpdateDto, b5 as ProfileUpdateDto, b6 as QuestionCreateDto, bg as UploadCreateDto, bi as UploadImageWithLinkDto, bl as UserDto, bk as UserCreateDto, bs as UserMembershipUpdateDto, bn as UserMembershipCreateDto, r as HtmlFilesEvent, bT as ILogMessage, I as ILogger, a as Result, aY as PaginationRequestDto, aZ as PaginationResponseDto, ba as SearchObjRequestDto, C as CommonConfigService, ah as ActivityDto, L as LogService, aj as AddressDto, G as AddressLinkType, bV as NominatimResponse, b3 as ProfileQuestionAndAnswersItemDto, aB as BookingDto, aJ as BookingWithRelationshipsDto, c2 as BookingCalendarOverviewItem, aM as BugReportUpdateDto, U as CommentLinkType, aP as CommentDto, aO as CommentCreateDto, aS as InvoiceDto, aR as InvoiceCreateDto, aT as InvoiceUpdateDto, aW as MembershipDto, aX as MembershipUpdateDto, b0 as PetDto, bh as UploadDto, bj as UploadUpdateDto, bv as UserUpdateDto, bo as UserMembershipDto, br as UserMembershipStatsDto, bu as UserPermissionDto, ak as AddressLookupDto, aU as InvoiceWithStripeInfoDto, d1 as ISite, a_ as PaymentMethodDto, bc as SetupIntentCreateDto, bd as SetupIntentDto, aF as BookingRestrictionsDto, bp as UserMembershipSignUpDto, bq as UserMembershipSignUpResponseDto, bm as UserMembershipChangeResponseDto, ay as AuthSuccessDto, ar as AuthRegisterDto, as as AuthRegisterGetQuestionsDto, aw as AuthRequestResetPasswordDto, ax as AuthResetPasswordDto, bw as VersionDto, T as ThemeType, cW as Prettify, o as IDependencyInjectionSetupWebProps } from '../textValidation-CchEXsUj.js';
4
- export { d6 as APP_TYPE_TOKEN, x as ActivityLocationType, by as ActivityRestriction, bz as AddressRestriction, am as AnswerCreateDto, J as AnswerLinkType, bA as AnswerRestriction, A as AppType, ap as AuthPatDto, aq as AuthRegisterAddressDto, at as AuthRegisterPetDto, au as AuthRegisterQuestionDto, bB as AuthRegisterRestriction, c6 as BOOKING_OVERVIEW_STATUSES, d4 as BOT_PATH_TOKEN, az as BookingAddonDto, bD as BookingAddonRestriction, O as BookingAddonType, aC as BookingHostCreateDto, aD as BookingHostDto, aE as BookingHostUpdateDto, bC as BookingRestriction, aG as BookingRestrictionsEnabledDaysDto, aH as BookingRestrictionsPremiumEnabledDaysDto, c7 as BookingStatusCounts, bE as BugReportRestriction, h as CachedValue, aN as ClientAnswerSaveDto, bF as CommentRestriction, aQ as CommentUpdateDto, d2 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bG as DrivingRouteRestriction, E as EnvKey, dJ as FormCalendarSpecialRangeDisplayProps, dK as FormCalendarSpecialRangeProps, t as HtmlImageReadEvent, q as HtmlKeyEvent, bR as ICaptchaResponse, b as IDependencyInjectionSetupProps, cA as IImageParams, bU as IMediaUpload, c_ as ISiteColour, bH as InvoiceRestriction, V as InvoiceStatusType, bx as JwtPayloadDto, bS as LogMethod, X as LogType, bI as MembershipRestriction, f as MouseButton, N as NANAS_PALLETTE, bW as NominatimAddressResponse, cV as ObjectWithPropsOfValue, a0 as OrderDirectionType, bJ as PermissionRestriction, bK as PetRestriction, a2 as PetSexType, a4 as PetType, b4 as ProfileQuestionRequestDto, dN as PropertyOverrides, bL as QuestionRestriction, b8 as QuestionUpdateDto, cc as RenderCellType, d8 as SITE_CONFIG_TOKEN, b9 as SearchObjDatePropRequestDto, bb as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bM as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, be as TempLinkCreateDto, bf as TempLinkDto, aa as TempLinkType, bN as UnavailabilityRestriction, ab as UploadLinkType, bO as UploadRestriction, ac as UploadType, bt as UserMembershipWithStripeInfoDto, bP as UserRestriction, dM as ValidFormComponentTypes, dL as ValidFormTypes, y as activityShortCode, co as addDays, cn as addMinutes, cp as addMonths, cm as addSeconds, cR as addSpacesForEnum, c1 as addToParallelTasks, cT as anyObject, B as apiRoute, z as apiRouteParam, b$ as arrayContains, b_ as arrayOfNLength, cP as capitalizeFirstLetter, c$ as colourPalette, e as commonEmailLinks, c8 as computeBookingStatusCounts, j as createToken, cz as cyrb53, cs as dateDiffInDays, cw as debounceLeading, d0 as defaultSiteColour, dt as emailValid, cU as fakePromise, c9 as filterBookingsByOverviewStatus, c5 as formatBookingCalendarLabel, cf as formatDate, cS as formatFileSize, cl as formatForBookingDate, ch as formatForDateDropdown, cg as formatForDateLocal, ck as formatForDateLocalDetailed, ci as formatForDateOfBirth, cj as formatForDateWithTime, cZ as getActiveUserMembership, ct as getAgeInYears, a7 as getAllPetQuestionForType, d7 as getAppType, cx as getArrFromEnum, c3 as getBookingStatusLabelForAdmin, d5 as getBotPath, dc as getCommonConfig, ca as getDayClassObject, cd as getDayElements, cb as getDayHeadingElements, cB as getImageParams, dd as getLog, c4 as getMembershipTypeLabel, cE as getMimeTypeFromExtension, cC as getPayloadFromJwt, cG as getPerformanceTimer, cJ as getPetAvatarUrl, cM as getQuestionGroups, db as getSiteColour, da as getSiteConfig, cI as getUserAvatarUrl, ce as getUsersName, cu as getWeekNumber, cH as hasRequiredPermissions, ag as hubspotQuestionsExport, cq as isBefore, du as isNumber, cr as isSameDay, i as isWebApp, cQ as lowercaseFirstLetter, bY as makeArrayOrDefault, ds as maxDate, di as maxItems, dz as maxLength, dw as maxValue, cD as mimeTypeLookup, dr as minDate, dh as minItems, dy as minLength, g as minUrlLength, dv as minValue, m as monthTranslationKeyOrder, dn as multiValidation, cL as nameof, n as nanasFonts, dl as noValidation, dm as notNull, bZ as onlyUnique, dx as passwordValid, p as portalGlyphLength, cK as promiseFromValue, cN as randomIntFromRange, cO as randomItemFromArray, d3 as rootContainer, de as rootDependencyInjectionSetup, bQ as searchColumns, dj as selectedItemsExist, dk as selectedOptionIsInEnum, dp as separateValidation, df as setContainerToken, dg as setContainerTokenLazy, d9 as setSiteConfig, dA as shouldBeUrl, dB as shouldBeYoutubeUrl, cv as showSecondCalendar, s as socialLinks, c0 as timeout, cF as tryParseNumber, ad as uploadsThatNeedEncryption, cX as urlRef, cY as userMustChangePassword, cy as uuidv4, v as validUuidChars, dq as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CchEXsUj.js';
3
+ import { F as ActivityType, P as BookingStatusType, Q as BugReportStatusType, u as ClickEvent, _ as MembershipType, Z as MembershipStatus, Y as MembershipBillingCycleType, a3 as PetStatusType, b5 as ProfileDto, ba as QuestionDto, ao as AnswerDto, a6 as QuestionForType, a5 as QuestionType, ag as UserType, af as UserAccountFlagType, R as ResultWithValue, a1 as PermissionType, $ as NetworkState, dJ as IFormCalendarPickerProps, dK as FullDateSelectionProps, dL as FormCalendarPickerMode, dM as FormCalendarDatePickerRangeProps, dN as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, dO as FormCalendarPickerInnerProps, dP as FormInputProps, b_ as ValidationResult, K as KeyEvent, H as HtmlElementEvent, aj as AddressCreateDto, am as AddressUpdateDto, aq as AuthLoginDto, ax as AuthRegisterUserDto, aD as BookingCreateDto, aL as BookingUpdateDto, aO as BugReportDto, aN as BugReportCreateDto, aY as MembershipCreateDto, b2 as PetCreateDto, b4 as PetUpdateDto, b8 as ProfileUpdateDto, b9 as QuestionCreateDto, bj as UploadCreateDto, bl as UploadImageWithLinkDto, bo as UserDto, bn as UserCreateDto, bv as UserMembershipUpdateDto, bq as UserMembershipCreateDto, r as HtmlFilesEvent, bW as ILogMessage, I as ILogger, a as Result, a$ as PaginationRequestDto, b0 as PaginationResponseDto, bd as SearchObjRequestDto, C as CommonConfigService, ai as ActivityDto, L as LogService, ak as AddressDto, G as AddressLinkType, bY as NominatimResponse, b6 as ProfileQuestionAndAnswersItemDto, aE as BookingDto, aM as BookingWithRelationshipsDto, c5 as BookingCalendarOverviewItem, aP as BugReportUpdateDto, U as CommentLinkType, aS as CommentDto, aR as CommentCreateDto, aV as InvoiceDto, aU as InvoiceCreateDto, aW as InvoiceUpdateDto, aZ as MembershipDto, a_ as MembershipUpdateDto, b3 as PetDto, bk as UploadDto, bm as UploadUpdateDto, by as UserUpdateDto, br as UserMembershipDto, bu as UserMembershipStatsDto, bx as UserPermissionDto, al as AddressLookupDto, aX as InvoiceWithStripeInfoDto, d4 as ISite, b1 as PaymentMethodDto, bf as SetupIntentCreateDto, bg as SetupIntentDto, aI as BookingRestrictionsDto, bs as UserMembershipSignUpDto, bt as UserMembershipSignUpResponseDto, bp as UserMembershipChangeResponseDto, aA as AuthSuccessDto, at as AuthRegisterDto, au as AuthRegisterGetQuestionsDto, ay as AuthRequestResetPasswordDto, az as AuthResetPasswordDto, ap as AuthChangePasswordDto, bz as VersionDto, T as ThemeType, cZ as Prettify, o as IDependencyInjectionSetupWebProps } from '../textValidation-DNnzgi9l.js';
4
+ export { d9 as APP_TYPE_TOKEN, x as ActivityLocationType, bB as ActivityRestriction, bC as AddressRestriction, an as AnswerCreateDto, J as AnswerLinkType, bD as AnswerRestriction, A as AppType, ar as AuthPatDto, as as AuthRegisterAddressDto, av as AuthRegisterPetDto, aw as AuthRegisterQuestionDto, bE as AuthRegisterRestriction, c9 as BOOKING_OVERVIEW_STATUSES, d7 as BOT_PATH_TOKEN, aB as BookingAddonDto, bG as BookingAddonRestriction, O as BookingAddonType, aC as BookingCalendarOverviewItemDto, aF as BookingHostCreateDto, aG as BookingHostDto, aH as BookingHostUpdateDto, bF as BookingRestriction, aJ as BookingRestrictionsEnabledDaysDto, aK as BookingRestrictionsPremiumEnabledDaysDto, ca as BookingStatusCounts, bH as BugReportRestriction, h as CachedValue, aQ as ClientAnswerSaveDto, bI as CommentRestriction, aT as CommentUpdateDto, d5 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bJ as DrivingRouteRestriction, E as EnvKey, dQ as FormCalendarSpecialRangeDisplayProps, dR as FormCalendarSpecialRangeProps, t as HtmlImageReadEvent, q as HtmlKeyEvent, bU as ICaptchaResponse, b as IDependencyInjectionSetupProps, cD as IImageParams, bX as IMediaUpload, d1 as ISiteColour, bK as InvoiceRestriction, V as InvoiceStatusType, bA as JwtPayloadDto, bV as LogMethod, X as LogType, bL as MembershipRestriction, f as MouseButton, N as NANAS_PALLETTE, bZ as NominatimAddressResponse, cY as ObjectWithPropsOfValue, a0 as OrderDirectionType, bM as PermissionRestriction, bN as PetRestriction, a2 as PetSexType, a4 as PetType, b7 as ProfileQuestionRequestDto, dU as PropertyOverrides, bO as QuestionRestriction, bb as QuestionUpdateDto, cf as RenderCellType, db as SITE_CONFIG_TOKEN, bc as SearchObjDatePropRequestDto, be as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bP as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bh as TempLinkCreateDto, bi as TempLinkDto, aa as TempLinkType, ab as TempRegistrationStatus, bQ as UnavailabilityRestriction, ac as UploadLinkType, bR as UploadRestriction, ad as UploadType, bw as UserMembershipWithStripeInfoDto, bS as UserRestriction, dT as ValidFormComponentTypes, dS as ValidFormTypes, y as activityShortCode, cr as addDays, cq as addMinutes, cs as addMonths, cp as addSeconds, cU as addSpacesForEnum, c4 as addToParallelTasks, du as allowedNonNumericalValuesInContactNumber, cW as anyObject, B as apiRoute, z as apiRouteParam, c2 as arrayContains, c1 as arrayOfNLength, cS as capitalizeFirstLetter, d2 as colourPalette, e as commonEmailLinks, cb as computeBookingStatusCounts, dv as contactNumberCharValid, dw as contactNumberValid, j as createToken, cC as cyrb53, cv as dateDiffInDays, cz as debounceLeading, d3 as defaultSiteColour, dz as emailValid, cX as fakePromise, cc as filterBookingsByOverviewStatus, c8 as formatBookingCalendarLabel, ci as formatDate, cV as formatFileSize, co as formatForBookingDate, ck as formatForDateDropdown, cj as formatForDateLocal, cn as formatForDateLocalDetailed, cl as formatForDateOfBirth, cm as formatForDateWithTime, d0 as getActiveUserMembership, cw as getAgeInYears, a7 as getAllPetQuestionForType, da as getAppType, cA as getArrFromEnum, c6 as getBookingStatusLabelForAdmin, d8 as getBotPath, df as getCommonConfig, cd as getDayClassObject, cg as getDayElements, ce as getDayHeadingElements, cE as getImageParams, dg as getLog, c7 as getMembershipTypeLabel, cH as getMimeTypeFromExtension, cF as getPayloadFromJwt, cJ as getPerformanceTimer, cM as getPetAvatarUrl, cP as getQuestionGroups, de as getSiteColour, dd as getSiteConfig, cL as getUserAvatarUrl, ch as getUsersName, cx as getWeekNumber, cK as hasRequiredPermissions, ah as hubspotQuestionsExport, ct as isBefore, dA as isNumber, cu as isSameDay, i as isWebApp, cT as lowercaseFirstLetter, b$ as makeArrayOrDefault, dy as maxDate, dl as maxItems, dG as maxLength, dC as maxValue, cG as mimeTypeLookup, dx as minDate, dk as minItems, dF as minLength, g as minUrlLength, dB as minValue, m as monthTranslationKeyOrder, dr as multiValidation, cO as nameof, n as nanasFonts, dp as noValidation, dq as notNull, c0 as onlyUnique, dD as passwordValid, p as portalGlyphLength, dE as postCodeValid, cN as promiseFromValue, cQ as randomIntFromRange, cR as randomItemFromArray, d6 as rootContainer, dh as rootDependencyInjectionSetup, bT as searchColumns, dm as selectedItemsExist, dn as selectedOptionIsInEnum, ds as separateValidation, di as setContainerToken, dj as setContainerTokenLazy, dc as setSiteConfig, dH as shouldBeUrl, dI as shouldBeYoutubeUrl, cy as showSecondCalendar, s as socialLinks, c3 as timeout, cI as tryParseNumber, ae as uploadsThatNeedEncryption, c_ as urlRef, c$ as userMustChangePassword, cB as uuidv4, v as validUuidChars, dt as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-DNnzgi9l.js';
5
5
  import { ToasterProps } from 'solid-toast';
6
6
  import { TolgeeInstance, TranslationKey, CombinedOptions, DefaultParamType } from '@tolgee/web';
7
7
 
@@ -961,10 +961,6 @@ declare class UserMembershipApiService {
961
961
  cancel: (userMembershipUuid: string) => Promise<Result>;
962
962
  }
963
963
 
964
- type AuthChangePasswordDto = {
965
- currentPassword: string;
966
- newPassword: string;
967
- };
968
964
  declare class AuthApiService {
969
965
  private _prefix;
970
966
  private _baseApi;
@@ -1136,4 +1132,4 @@ type AssistantAppsAppNoticeList = ComponentProps<'div'> & {
1136
1132
 
1137
1133
  declare const maxFullDateSelection: (maxDate: Date, type: keyof FormCalendarDatePickerRangeProps) => (value: FormCalendarDatePickerRangeProps) => ValidationResult;
1138
1134
 
1139
- export { AboutPageContent, Accordion, ActivityDto, ActivityType, AddressApiService, AddressCreateDto, AddressCreateDtoMeta, AddressDto, AddressLinkType, AddressLookupDto, AddressUpdateDto, AddressUpdateDtoMeta, AdminActivityApiService, AdminAddressApiService, AdminAnswerApiService, AdminBookingApiService, AdminBugReportApiService, AdminCommentApiService, AdminInvoiceApiService, AdminMembershipApiService, AdminPetApiService, AdminQuestionApiService, AdminUploadApiService, AdminUserApiService, AdminUserMembershipApiService, AdminUserPermissionApiService, Alert, AnswerApiService, AnswerDto, type AssistantAppsAppNoticeList, AsyncComponent, AsyncDetailPageComponent, AuthApiService, type AuthChangePasswordDto, AuthGuard, AuthLoginDto, AuthLoginDtoMeta, AuthRegisterDto, AuthRegisterGetQuestionsDto, AuthRegisterUserDto, AuthRegisterUserDtoMeta, AuthRequestResetPasswordDto, AuthResetPasswordDto, AuthSuccessDto, Backdrop, BaseApiService, BaseCrudService, BookingApiService, BookingCalendarOverviewItem, BookingCreateDto, BookingCreateDtoMeta, BookingDto, BookingRestrictionsDto, BookingStatusType, BookingStatusTypeDropdown, BookingUpdateDto, BookingUpdateDtoMeta, BookingWithRelationshipsDto, Breadcrumb, BugReportApiService, BugReportCreateDto, BugReportCreateDtoMeta, BugReportDto, BugReportDtoMeta, BugReportFab, BugReportStatusType, BugReportUpdateDto, Button, CameraIcon, CaptchaWebService, Card, Center, CenterLoading, ChangePasswordPage, type ChangePasswordPageProps, CircularProgress, ClickEvent, type ClientAnswerSaveBody, CommentCreateDto, CommentDto, CommentLinkType, CommonConfigService, CommonStateService, DateSelectionProps, DebugNode, DebugService, DocumentMeta, DocumentService, EnumTypeDropdown, ErrorBlock, ErrorBoundary, ErrorDogSvg, ErrorScreen, EyeHideIcon, EyeIcon, FacebookIcon, ForcePasswordChangeGuard, FormCalendarDatePickerRangeProps, FormCalendarPicker, FormCalendarPickerDropdown, FormCalendarPickerInner, FormCalendarPickerInnerProps, FormCalendarPickerMode, FormCheckbox, FormDropdown, type FormDtoMeta, type FormDtoMetaDetails, FormInputErrorMessage, FormInputProps, FormLongInput, FormNetworkStateIndicator, FormPasswordInput, FormPromiseDropdown, FormPromiseSearchDropdown, FormTextArea, FormUserPetDropdown, FullDateSelectionProps, HelpIcon, HelpIconTooltip, HtmlElementEvent, HtmlFilesEvent, type IBaseCrudService, type IBreadcrumbLinkProps, type ICardProps, type ICommonState, IDependencyInjectionSetupWebProps, IFormCalendarPickerProps, type IFormDropdownAdditionalOption, type IFormDropdownOption, type ILoadingSpinnerProps, ILogMessage, ILogger, type IProfilePanelLinkProps$1 as IProfilePanelLinkProps, type ISidebarItemProps, ISite, IllustrationNoItems, InstagramIcon, InvoiceApiService, InvoiceCreateDto, InvoiceDto, InvoiceUpdateDto, InvoiceWithStripeInfoDto, KeyEvent, LazyImage, LinkedInIcon, type LoadItemsSearchFn, LoadingSpinner, LoadingSpinnerBlock, LocalStorageKeys, type LocalStorageKeysType, LocalStorageService, LogService, MembershipApiService, MembershipBillingCycleDropdown, MembershipBillingCycleType, MembershipCreateDto, MembershipCreateDtoMeta, MembershipDto, MembershipIcon, MembershipProfileHeading, MembershipStatus, MembershipStatusDropdown, MembershipType, MembershipTypeDropdown, MembershipUpdateDto, Modal, MonthTranslationKey, NavBar, NetworkState, NominatimResponse, PaginationRequestDto, PaginationResponseDto, PaymentMethodApiService, PaymentMethodDto, PermissionType, PetApiService, PetCreateDto, PetCreateDtoMeta, PetDto, PetSexTypeDropdown, PetStatusType, PetStatusTypeDropdown, PetTypeDropdown, PetUpdateDto, PetUpdateDtoMeta, Prettify, ProfileApiService, ProfileDto, ProfilePanel, ProfilePanelNavBarDropdown, ProfileQuestionAndAnswersItemDto, ProfileUpdateDto, ProfileUpdateDtoMeta, QuestionCreateDto, QuestionCreateDtoMeta, QuestionDto, QuestionForType, QuestionForTypeDropdown, QuestionType, QuestionTypeDropdown, Result, ResultWithValue, SearchObjRequestDto, SetupIntentCreateDto, SetupIntentDto, Sidebar, T, ThemeType, ToastService, Tooltip, TranslationService, UploadApiService, UploadCreateDto, UploadCreateDtoMeta, UploadDto, UploadImageWithLinkDto, UploadImageWithLinkDtoMeta, UploadUpdateDto, UserAccountFlagType, UserAccountFlagTypeDropdown, UserCreateDto, UserCreateDtoMeta, UserDto, UserDtoMeta, UserMembershipApiService, UserMembershipChangeResponseDto, UserMembershipCreateDto, UserMembershipCreateDtoMeta, UserMembershipDto, UserMembershipSignUpDto, UserMembershipSignUpResponseDto, UserMembershipStatsDto, UserMembershipUpdateDto, UserMembershipUpdateDtoMeta, UserPermissionDto, UserType, UserTypeDropdown, UserUpdateDto, ValidationResult, type ValidationWithPropName, VersionApiService, VersionDto, WeekdayTranslationKey, WrapWhen, addAccessTokenToHeaders, changeMonth, convertToDate, convertToFullDateSelection, copyTextToClipboard, dateCreatedMeta, dependencyInjectionWebSetup, displayActivityTypeBadge, displayBookingStatusTypeBadge, displayBugReportTypeBadge, displayMembershipBillingCycleBadge, displayMembershipStatusBadge, displayMembershipTypeBadge, displayPetStatusTypeBadge, displayQuestionForTypeBadge, displayQuestionTypeBadge, displayUserAccountFlagTypeBadge, displayUserTypeBadge, formDataWithAccessTokenHeaders, getAddressApi, getAdminActivityApi, getAdminAddressApi, getAdminAnswerApi, getAdminBookingApi, getAdminBugReportApi, getAdminCommentApi, getAdminInvoiceApi, getAdminMembershipApi, getAdminPetApi, getAdminQuestionApi, getAdminUploadApi, getAdminUserApi, getAdminUserMembershipApi, getAdminUserPermissionApi, getAnswerApi, getAriaInvalid, getAuthApi, getBookingApi, getBookingStatusTypeLocalisationForAdmin, getBookingStatusTypeLocalisationForClient, getBugReportApi, getBugReportStatusBadgeContent, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCaptchaWebService, getCommonStateService, getDebugService, getDocumentServ, getFormControlAriaInvalid, getInvoiceApi, getLocalStorage, getMembershipApi, getMonthHeading, getNextMonthButton, getPaginationQueryParams, getPaymentMethodApi, getPetApi, getPrevMonthButton, getProfileApi, getToastService, getUploadApi, getUserAccountFlagTypeBadgeContent, getUserMembershipApi, getVersionApi, globalErrorDetails, handleLogMessageError, hasOneOrMoreErrors, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isFormControlInvalid, isFormNetworkError, isFormNetworkLoading, loggerHasErrors, maxFullDateSelection, monthTranslation, notesMeta, onFormSubmitFacade, onTargetChecked, onTargetFiles, onTargetValue, preventDefault, profileEventSignal, questionAnswerDisplay, setGlobalErrorDetails, setLoggerHasErrors, setProfileEventSignal, stopPropagation, translate, translateComponentToString, usePromise, useValidation, weekdayTranslation2Char, weekdayTranslation3Char, windowOnError, windowOnUnhandledRejection };
1135
+ export { AboutPageContent, Accordion, ActivityDto, ActivityType, AddressApiService, AddressCreateDto, AddressCreateDtoMeta, AddressDto, AddressLinkType, AddressLookupDto, AddressUpdateDto, AddressUpdateDtoMeta, AdminActivityApiService, AdminAddressApiService, AdminAnswerApiService, AdminBookingApiService, AdminBugReportApiService, AdminCommentApiService, AdminInvoiceApiService, AdminMembershipApiService, AdminPetApiService, AdminQuestionApiService, AdminUploadApiService, AdminUserApiService, AdminUserMembershipApiService, AdminUserPermissionApiService, Alert, AnswerApiService, AnswerDto, type AssistantAppsAppNoticeList, AsyncComponent, AsyncDetailPageComponent, AuthApiService, AuthChangePasswordDto, AuthGuard, AuthLoginDto, AuthLoginDtoMeta, AuthRegisterDto, AuthRegisterGetQuestionsDto, AuthRegisterUserDto, AuthRegisterUserDtoMeta, AuthRequestResetPasswordDto, AuthResetPasswordDto, AuthSuccessDto, Backdrop, BaseApiService, BaseCrudService, BookingApiService, BookingCalendarOverviewItem, BookingCreateDto, BookingCreateDtoMeta, BookingDto, BookingRestrictionsDto, BookingStatusType, BookingStatusTypeDropdown, BookingUpdateDto, BookingUpdateDtoMeta, BookingWithRelationshipsDto, Breadcrumb, BugReportApiService, BugReportCreateDto, BugReportCreateDtoMeta, BugReportDto, BugReportDtoMeta, BugReportFab, BugReportStatusType, BugReportUpdateDto, Button, CameraIcon, CaptchaWebService, Card, Center, CenterLoading, ChangePasswordPage, type ChangePasswordPageProps, CircularProgress, ClickEvent, type ClientAnswerSaveBody, CommentCreateDto, CommentDto, CommentLinkType, CommonConfigService, CommonStateService, DateSelectionProps, DebugNode, DebugService, DocumentMeta, DocumentService, EnumTypeDropdown, ErrorBlock, ErrorBoundary, ErrorDogSvg, ErrorScreen, EyeHideIcon, EyeIcon, FacebookIcon, ForcePasswordChangeGuard, FormCalendarDatePickerRangeProps, FormCalendarPicker, FormCalendarPickerDropdown, FormCalendarPickerInner, FormCalendarPickerInnerProps, FormCalendarPickerMode, FormCheckbox, FormDropdown, type FormDtoMeta, type FormDtoMetaDetails, FormInputErrorMessage, FormInputProps, FormLongInput, FormNetworkStateIndicator, FormPasswordInput, FormPromiseDropdown, FormPromiseSearchDropdown, FormTextArea, FormUserPetDropdown, FullDateSelectionProps, HelpIcon, HelpIconTooltip, HtmlElementEvent, HtmlFilesEvent, type IBaseCrudService, type IBreadcrumbLinkProps, type ICardProps, type ICommonState, IDependencyInjectionSetupWebProps, IFormCalendarPickerProps, type IFormDropdownAdditionalOption, type IFormDropdownOption, type ILoadingSpinnerProps, ILogMessage, ILogger, type IProfilePanelLinkProps$1 as IProfilePanelLinkProps, type ISidebarItemProps, ISite, IllustrationNoItems, InstagramIcon, InvoiceApiService, InvoiceCreateDto, InvoiceDto, InvoiceUpdateDto, InvoiceWithStripeInfoDto, KeyEvent, LazyImage, LinkedInIcon, type LoadItemsSearchFn, LoadingSpinner, LoadingSpinnerBlock, LocalStorageKeys, type LocalStorageKeysType, LocalStorageService, LogService, MembershipApiService, MembershipBillingCycleDropdown, MembershipBillingCycleType, MembershipCreateDto, MembershipCreateDtoMeta, MembershipDto, MembershipIcon, MembershipProfileHeading, MembershipStatus, MembershipStatusDropdown, MembershipType, MembershipTypeDropdown, MembershipUpdateDto, Modal, MonthTranslationKey, NavBar, NetworkState, NominatimResponse, PaginationRequestDto, PaginationResponseDto, PaymentMethodApiService, PaymentMethodDto, PermissionType, PetApiService, PetCreateDto, PetCreateDtoMeta, PetDto, PetSexTypeDropdown, PetStatusType, PetStatusTypeDropdown, PetTypeDropdown, PetUpdateDto, PetUpdateDtoMeta, Prettify, ProfileApiService, ProfileDto, ProfilePanel, ProfilePanelNavBarDropdown, ProfileQuestionAndAnswersItemDto, ProfileUpdateDto, ProfileUpdateDtoMeta, QuestionCreateDto, QuestionCreateDtoMeta, QuestionDto, QuestionForType, QuestionForTypeDropdown, QuestionType, QuestionTypeDropdown, Result, ResultWithValue, SearchObjRequestDto, SetupIntentCreateDto, SetupIntentDto, Sidebar, T, ThemeType, ToastService, Tooltip, TranslationService, UploadApiService, UploadCreateDto, UploadCreateDtoMeta, UploadDto, UploadImageWithLinkDto, UploadImageWithLinkDtoMeta, UploadUpdateDto, UserAccountFlagType, UserAccountFlagTypeDropdown, UserCreateDto, UserCreateDtoMeta, UserDto, UserDtoMeta, UserMembershipApiService, UserMembershipChangeResponseDto, UserMembershipCreateDto, UserMembershipCreateDtoMeta, UserMembershipDto, UserMembershipSignUpDto, UserMembershipSignUpResponseDto, UserMembershipStatsDto, UserMembershipUpdateDto, UserMembershipUpdateDtoMeta, UserPermissionDto, UserType, UserTypeDropdown, UserUpdateDto, ValidationResult, type ValidationWithPropName, VersionApiService, VersionDto, WeekdayTranslationKey, WrapWhen, addAccessTokenToHeaders, changeMonth, convertToDate, convertToFullDateSelection, copyTextToClipboard, dateCreatedMeta, dependencyInjectionWebSetup, displayActivityTypeBadge, displayBookingStatusTypeBadge, displayBugReportTypeBadge, displayMembershipBillingCycleBadge, displayMembershipStatusBadge, displayMembershipTypeBadge, displayPetStatusTypeBadge, displayQuestionForTypeBadge, displayQuestionTypeBadge, displayUserAccountFlagTypeBadge, displayUserTypeBadge, formDataWithAccessTokenHeaders, getAddressApi, getAdminActivityApi, getAdminAddressApi, getAdminAnswerApi, getAdminBookingApi, getAdminBugReportApi, getAdminCommentApi, getAdminInvoiceApi, getAdminMembershipApi, getAdminPetApi, getAdminQuestionApi, getAdminUploadApi, getAdminUserApi, getAdminUserMembershipApi, getAdminUserPermissionApi, getAnswerApi, getAriaInvalid, getAuthApi, getBookingApi, getBookingStatusTypeLocalisationForAdmin, getBookingStatusTypeLocalisationForClient, getBugReportApi, getBugReportStatusBadgeContent, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCaptchaWebService, getCommonStateService, getDebugService, getDocumentServ, getFormControlAriaInvalid, getInvoiceApi, getLocalStorage, getMembershipApi, getMonthHeading, getNextMonthButton, getPaginationQueryParams, getPaymentMethodApi, getPetApi, getPrevMonthButton, getProfileApi, getToastService, getUploadApi, getUserAccountFlagTypeBadgeContent, getUserMembershipApi, getVersionApi, globalErrorDetails, handleLogMessageError, hasOneOrMoreErrors, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isFormControlInvalid, isFormNetworkError, isFormNetworkLoading, loggerHasErrors, maxFullDateSelection, monthTranslation, notesMeta, onFormSubmitFacade, onTargetChecked, onTargetFiles, onTargetValue, preventDefault, profileEventSignal, questionAnswerDisplay, setGlobalErrorDetails, setLoggerHasErrors, setProfileEventSignal, stopPropagation, translate, translateComponentToString, usePromise, useValidation, weekdayTranslation2Char, weekdayTranslation3Char, windowOnError, windowOnUnhandledRejection };
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { multiValidation, minLength, UserRestriction, emailValid, maxLength, passwordValid, noValidation, notNull, minItems, BookingRestriction, minDate, isNumber, minValue, MembershipRestriction, maxValue, PetRestriction, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, AddressRestriction, UploadType, UploadRestriction, UploadLinkType, rootContainer, uuidv4, anyObject, timeout, apiRoute, apiRouteParam, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, setContainerToken, socialLinks, getPayloadFromJwt, userMustChangePassword, ActivityType, getAppType, BookingStatusType, BugReportStatusType, 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/CNSK7ZOR.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, CommentLinkType, CommentRestriction, CommonConfigService, 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, StripeRestriction, SupportedLanguageArray, TempLinkType, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/CNSK7ZOR.js';
1
+ import { multiValidation, minLength, UserRestriction, contactNumberValid, maxLength, emailValid, passwordValid, noValidation, notNull, minItems, BookingRestriction, minDate, isNumber, minValue, MembershipRestriction, maxValue, PetRestriction, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, AddressRestriction, postCodeValid, UploadType, UploadRestriction, UploadLinkType, rootContainer, uuidv4, anyObject, timeout, apiRoute, apiRouteParam, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, setContainerToken, socialLinks, getPayloadFromJwt, userMustChangePassword, ActivityType, getAppType, BookingStatusType, BugReportStatusType, 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/COU2KN7W.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, CommentLinkType, CommentRestriction, CommonConfigService, 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, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/COU2KN7W.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 classNames18 from 'classnames';
@@ -2065,6 +2065,17 @@ var UserDtoMeta = {
2065
2065
  }),
2066
2066
  validator: multiValidation(minLength(UserRestriction.email.minLength), emailValid, maxLength(UserRestriction.email.maxLength))
2067
2067
  },
2068
+ contactNumber: {
2069
+ label: () => createComponent(T, {
2070
+ keyName: "phone_number_label",
2071
+ defaultValue: "Contact number"
2072
+ }),
2073
+ placeholder: () => createComponent(T, {
2074
+ keyName: "phone_number_placeholder",
2075
+ defaultValue: "061 123 4567"
2076
+ }),
2077
+ validator: multiValidation(minLength(UserRestriction.contactNumber.minLength), contactNumberValid, maxLength(UserRestriction.contactNumber.maxLength))
2078
+ },
2068
2079
  hubspotId: {
2069
2080
  label: () => createComponent(T, {
2070
2081
  keyName: "hubspot_id_label",
@@ -2137,6 +2148,7 @@ var UserCreateDtoMeta = {
2137
2148
  firstName: UserDtoMeta.firstName,
2138
2149
  lastName: UserDtoMeta.lastName,
2139
2150
  email: UserDtoMeta.email,
2151
+ contactNumber: UserDtoMeta.contactNumber,
2140
2152
  password: {
2141
2153
  label: () => createComponent(T, {
2142
2154
  keyName: "password_label",
@@ -2167,6 +2179,7 @@ var AuthRegisterUserDtoMeta = {
2167
2179
  firstName: UserDtoMeta.firstName,
2168
2180
  lastName: UserDtoMeta.lastName,
2169
2181
  email: UserDtoMeta.email,
2182
+ contactNumber: UserDtoMeta.contactNumber,
2170
2183
  password: {
2171
2184
  ...UserCreateDtoMeta.password,
2172
2185
  validator: multiValidation(
@@ -6649,7 +6662,7 @@ var addressCommonDtoMeta = {
6649
6662
  keyName: "post_code_placeholder",
6650
6663
  defaultValue: "1234 AB"
6651
6664
  }),
6652
- validator: multiValidation(minLength(AddressRestriction.postalCode.minLength), maxLength(AddressRestriction.postalCode.maxLength))
6665
+ validator: multiValidation(minLength(AddressRestriction.postalCode.minLength), postCodeValid, maxLength(AddressRestriction.postalCode.maxLength))
6653
6666
  },
6654
6667
  country: {
6655
6668
  label: () => createComponent(T, {
@@ -2546,6 +2546,7 @@ var UserRestriction = {
2546
2546
  firstName: { minLength: 3, maxLength: 80 },
2547
2547
  lastName: { minLength: 3, maxLength: 80 },
2548
2548
  email: { minLength: 5, maxLength: 150 },
2549
+ contactNumber: { minLength: 5, maxLength: 50 },
2549
2550
  password: { minLength: 5, maxLength: 50 },
2550
2551
  hubspotId: { maxLength: 50 },
2551
2552
  flags: { maxLength: 150 }
@@ -2699,6 +2700,48 @@ var validateForEach = (validation) => (values) => {
2699
2700
  return { isValid: true };
2700
2701
  };
2701
2702
 
2703
+ // src/validation/contactNumberValidation.ts
2704
+ var allowedNonNumericalValuesInContactNumber = "+";
2705
+ var contactNumberCharValid = (char) => {
2706
+ const isNotNum = isNaN(char);
2707
+ if (isNotNum) {
2708
+ return allowedNonNumericalValuesInContactNumber.includes(char);
2709
+ }
2710
+ return true;
2711
+ };
2712
+ var contactNumberValid = (value) => {
2713
+ const containsNonNumber = value.split("").filter((v) => contactNumberCharValid(v) == false).length;
2714
+ if (containsNonNumber) {
2715
+ return {
2716
+ isValid: false,
2717
+ errorMessageTransKey: "phone_number_contains_invalid_char_validator",
2718
+ errorMessage: `Invalid character provided`
2719
+ };
2720
+ }
2721
+ const withoutWhitespace = value.replace(/\s/g, "");
2722
+ let actualValue = withoutWhitespace;
2723
+ const startCode = {
2724
+ zero: "0",
2725
+ zero31: "0031",
2726
+ plus: "+31"
2727
+ };
2728
+ if (withoutWhitespace.startsWith(startCode.zero31)) {
2729
+ actualValue = withoutWhitespace.slice(startCode.zero31.length);
2730
+ } else if (withoutWhitespace.startsWith(startCode.plus)) {
2731
+ actualValue = withoutWhitespace.slice(startCode.plus.length);
2732
+ } else if (withoutWhitespace.startsWith(startCode.zero)) {
2733
+ actualValue = withoutWhitespace.slice(startCode.zero.length);
2734
+ }
2735
+ if (actualValue.length != 9) {
2736
+ return {
2737
+ isValid: false,
2738
+ errorMessageTransKey: "phone_number_is_incorrect_length_validator",
2739
+ errorMessage: `Incorrect length provided`
2740
+ };
2741
+ }
2742
+ return { isValid: true };
2743
+ };
2744
+
2702
2745
  // src/validation/emailValidation.ts
2703
2746
  var emailValid = (value) => {
2704
2747
  if (value.includes("@") == false) {
@@ -2846,6 +2889,15 @@ var UserDtoMeta = {
2846
2889
  maxLength(UserRestriction.email.maxLength)
2847
2890
  )
2848
2891
  },
2892
+ contactNumber: {
2893
+ label: () => <T keyName="phone_number_label" defaultValue="Contact number" />,
2894
+ placeholder: () => <T keyName="phone_number_placeholder" defaultValue="061 123 4567" />,
2895
+ validator: multiValidation(
2896
+ minLength(UserRestriction.contactNumber.minLength),
2897
+ contactNumberValid,
2898
+ maxLength(UserRestriction.contactNumber.maxLength)
2899
+ )
2900
+ },
2849
2901
  hubspotId: {
2850
2902
  label: () => <T keyName="hubspot_id_label" defaultValue="Hubspot Id" />,
2851
2903
  placeholder: () => <T keyName="hubspot_id_placeholder" defaultValue="..." />,
@@ -2882,6 +2934,7 @@ var UserCreateDtoMeta = {
2882
2934
  firstName: UserDtoMeta.firstName,
2883
2935
  lastName: UserDtoMeta.lastName,
2884
2936
  email: UserDtoMeta.email,
2937
+ contactNumber: UserDtoMeta.contactNumber,
2885
2938
  password: {
2886
2939
  label: () => <T keyName="password_label" defaultValue="Password" />,
2887
2940
  placeholder: () => <T keyName="password_placeholder" defaultValue="●●●●●●●●●●" />,
@@ -2906,6 +2959,7 @@ var AuthRegisterUserDtoMeta = {
2906
2959
  firstName: UserDtoMeta.firstName,
2907
2960
  lastName: UserDtoMeta.lastName,
2908
2961
  email: UserDtoMeta.email,
2962
+ contactNumber: UserDtoMeta.contactNumber,
2909
2963
  password: {
2910
2964
  ...UserCreateDtoMeta.password,
2911
2965
  validator: multiValidation(
@@ -4163,7 +4217,8 @@ var hubspotQuestionsExport = {
4163
4217
  how_long_can_your_dog_be_home_alone_: {
4164
4218
  how_long_can_your_dog_be_home_alone__option0: "My dog can't be alone",
4165
4219
  how_long_can_your_dog_be_home_alone__option1: "1-3h",
4166
- how_long_can_your_dog_be_home_alone__option2: "During a normal work day (8h)"
4220
+ how_long_can_your_dog_be_home_alone__option2: "3-6h",
4221
+ how_long_can_your_dog_be_home_alone__option3: "During the work day"
4167
4222
  },
4168
4223
  is_your_dog_allowed_on_the_couch_: {
4169
4224
  is_your_dog_allowed_on_the_couch__option0: "No",
@@ -5412,7 +5467,7 @@ var EnumTypeDropdown = (props) => {
5412
5467
 
5413
5468
  // src/contracts/generated/restrictions/bookingRestriction.ts
5414
5469
  var BookingRestriction = {
5415
- code: { min: 0, max: 99999 },
5470
+ code: { min: 0, max: 99999, default: 7e3 },
5416
5471
  notes: { maxLength: 250 }
5417
5472
  };
5418
5473
  var BookingAddonRestriction = {
@@ -5858,6 +5913,10 @@ var PetType = /* @__PURE__ */ ((PetType2) => {
5858
5913
  PetType2[PetType2["Unknown"] = 0] = "Unknown";
5859
5914
  PetType2[PetType2["Dog"] = 1] = "Dog";
5860
5915
  PetType2[PetType2["Cat"] = 2] = "Cat";
5916
+ PetType2[PetType2["Bird"] = 3] = "Bird";
5917
+ PetType2[PetType2["Rodent"] = 4] = "Rodent";
5918
+ PetType2[PetType2["Reptile"] = 5] = "Reptile";
5919
+ PetType2[PetType2["Other"] = 6] = "Other";
5861
5920
  return PetType2;
5862
5921
  })(PetType || {});
5863
5922
 
@@ -6564,6 +6623,14 @@ var TempLinkType = /* @__PURE__ */ ((TempLinkType2) => {
6564
6623
  return TempLinkType2;
6565
6624
  })(TempLinkType || {});
6566
6625
 
6626
+ // src/contracts/generated/enum/tempRegistrationStatus.ts
6627
+ var TempRegistrationStatus = /* @__PURE__ */ ((TempRegistrationStatus2) => {
6628
+ TempRegistrationStatus2[TempRegistrationStatus2["UnProcessed"] = 0] = "UnProcessed";
6629
+ TempRegistrationStatus2[TempRegistrationStatus2["EmailReminderSent"] = 1] = "EmailReminderSent";
6630
+ TempRegistrationStatus2[TempRegistrationStatus2["RegistrationSuccess"] = 2] = "RegistrationSuccess";
6631
+ return TempRegistrationStatus2;
6632
+ })(TempRegistrationStatus || {});
6633
+
6567
6634
  // src/contracts/generated/enum/uploadLinkType.ts
6568
6635
  var UploadLinkType = /* @__PURE__ */ ((UploadLinkType2) => {
6569
6636
  UploadLinkType2[UploadLinkType2["Unknown"] = 0] = "Unknown";
@@ -6670,6 +6737,20 @@ var searchColumns = {
6670
6737
  question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }]
6671
6738
  };
6672
6739
 
6740
+ // src/validation/postCodeValidation.ts
6741
+ var postCodeValid = (value) => {
6742
+ const postCodePattern = /^\d{4}\s?\w{2}$/;
6743
+ const isValidPostCode = postCodePattern.test(value);
6744
+ if (isValidPostCode == false) {
6745
+ return {
6746
+ isValid: false,
6747
+ errorMessageTransKey: "post_code_invalid_char_validator",
6748
+ errorMessage: `Post Code does not match the pattern 1234 AB`
6749
+ };
6750
+ }
6751
+ return { isValid: true };
6752
+ };
6753
+
6673
6754
  // src/contracts/meta/addressDto.meta.tsx
6674
6755
  var addressCommonDtoMeta = {
6675
6756
  name: {
@@ -6701,6 +6782,7 @@ var addressCommonDtoMeta = {
6701
6782
  placeholder: () => <T keyName="post_code_placeholder" defaultValue="1234 AB" />,
6702
6783
  validator: multiValidation(
6703
6784
  minLength(AddressRestriction.postalCode.minLength),
6785
+ postCodeValid,
6704
6786
  maxLength(AddressRestriction.postalCode.maxLength)
6705
6787
  )
6706
6788
  },
@@ -7203,6 +7285,7 @@ export {
7203
7285
  SupportedLanguageArray,
7204
7286
  T,
7205
7287
  TempLinkType,
7288
+ TempRegistrationStatus,
7206
7289
  ToastService,
7207
7290
  Tooltip,
7208
7291
  TranslationService,
@@ -7233,6 +7316,7 @@ export {
7233
7316
  addSeconds,
7234
7317
  addSpacesForEnum,
7235
7318
  addToParallelTasks,
7319
+ allowedNonNumericalValuesInContactNumber,
7236
7320
  anyObject,
7237
7321
  apiRoute,
7238
7322
  apiRouteParam,
@@ -7243,6 +7327,8 @@ export {
7243
7327
  colourPalette,
7244
7328
  commonEmailLinks,
7245
7329
  computeBookingStatusCounts,
7330
+ contactNumberCharValid,
7331
+ contactNumberValid,
7246
7332
  convertToDate,
7247
7333
  convertToFullDateSelection,
7248
7334
  copyTextToClipboard,
@@ -7391,6 +7477,7 @@ export {
7391
7477
  onlyUnique,
7392
7478
  passwordValid,
7393
7479
  portalGlyphLength,
7480
+ postCodeValid,
7394
7481
  preventDefault,
7395
7482
  profileEventSignal,
7396
7483
  promiseFromValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanas-home/hub-common",
3
- "version": "0.52.1185",
3
+ "version": "0.54.1240",
4
4
  "description": "Nana's Hub common library",
5
5
  "license": "MIT",
6
6
  "author": "Kurt Lourens",
@@ -38,17 +38,17 @@
38
38
  "@storybook/addon-links": "^10.4.6",
39
39
  "@storybook/addon-onboarding": "^10.4.6",
40
40
  "@storybook/addon-vitest": "^10.4.6",
41
- "@types/node": "^26.0.0",
42
- "@typescript-eslint/eslint-plugin": "^8.61.1",
43
- "@typescript-eslint/parser": "^8.61.1",
41
+ "@types/node": "^26.0.1",
42
+ "@typescript-eslint/eslint-plugin": "^8.62.0",
43
+ "@typescript-eslint/parser": "^8.62.0",
44
44
  "@vitest/browser": "^4.1.9",
45
45
  "@vitest/coverage-v8": "^4.1.9",
46
46
  "@vitest/ui": "^4.1.9",
47
47
  "dotenv-cli": "^11.0.0",
48
- "eslint": "^10.5.0",
48
+ "eslint": "^10.6.0",
49
49
  "eslint-plugin-solid": "^0.14.5",
50
50
  "jsdom": "^29.1.1",
51
- "node-html-parser": "^7.1.0",
51
+ "node-html-parser": "^8.0.3",
52
52
  "npm-run-all": "^4.1.5",
53
53
  "sass": "^1.101.0",
54
54
  "storybook": "^10.4.6",
@@ -56,7 +56,7 @@
56
56
  "tsup": "^8.5.1",
57
57
  "tsup-preset-solid": "^2.2.0",
58
58
  "typescript": "^6.0.3",
59
- "vite": "^8.0.16",
59
+ "vite": "^8.1.0",
60
60
  "vite-plugin-solid": "^2.11.12",
61
61
  "vitest": "^4.1.9"
62
62
  },