riverbankcms 0.30.1 → 0.31.1

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.
@@ -68,6 +68,7 @@ const parseRetiredCourseId = (value) => parseUuidBrand(value, asRetiredCourseId)
68
68
  const parseAttendeeId = (value) => parseUuidBrand(value, unsafeAsAttendeeId);
69
69
  const parseEventRegistrationCommandId = (value) => parseUuidBrand(value, unsafeAsEventRegistrationCommandId);
70
70
  const parseEventRegistrationCommandRowId = (value) => parseUuidBrand(value, unsafeAsEventRegistrationCommandRowId);
71
+ const parseEventCategoryId = (value) => parseUuidBrand(value, unsafeAsEventCategoryId);
71
72
  const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
72
73
  const parseEventSeriesRegistrationId = (value) => parseUuidBrand(value, unsafeAsEventSeriesRegistrationId);
73
74
 
@@ -204,15 +205,13 @@ const parseSiteTermsAgreementId = (value) => parseUuidBrand(value, unsafeAsSiteT
204
205
  const unsafeAsAppointmentId = (id) => id;
205
206
  const unsafeAsAppointmentServiceId = (id) => id;
206
207
  const unsafeAsAppointmentResourceId = (id) => id;
207
- const unsafeAsAppointmentReservationId = (id) => id;
208
- const unsafeAsAppointmentReservationRunId = (id) => id;
209
208
  const unsafeAsAppointmentPaymentRequestId = (id) => id;
210
209
  const unsafeAsStaffMemberId = (id) => id;
211
210
  const parseAppointmentId = (value) => parseUuidBrand(value, unsafeAsAppointmentId);
212
211
  const parseAppointmentServiceId = (value) => parseUuidBrand(value, unsafeAsAppointmentServiceId);
213
212
  const parseAppointmentResourceId = (value) => parseUuidBrand(value, unsafeAsAppointmentResourceId);
214
- const parseAppointmentReservationId = (value) => parseUuidBrand(value, unsafeAsAppointmentReservationId);
215
- const parseAppointmentReservationRunId = (value) => parseUuidBrand(value, unsafeAsAppointmentReservationRunId);
213
+ const unsafeAsClientArrangementId = (id) => id;
214
+ const parseClientArrangementId = (value) => parseUuidBrand(value, unsafeAsClientArrangementId);
216
215
 
217
216
  //#endregion
218
217
  //#region ../core/src/branded/calendar.ts
@@ -1419,11 +1418,13 @@ function createEventSeriesPageSurfaceSubject(eventSeriesId, bookingScope, eventD
1419
1418
  }
1420
1419
  function createEventOfferingPageSurfaceSubject(eventOfferingId, input) {
1421
1420
  const mode = input.eventDestinationMode ? { eventDestinationMode: input.eventDestinationMode } : {};
1421
+ const title = input.title?.trim() ?? "";
1422
1422
  const identity = {
1423
1423
  kind: "eventOffering",
1424
1424
  eventOfferingId,
1425
1425
  catalogueEventSeriesIds: input.catalogueEventSeriesIds,
1426
- ...input.detailAdmission ? { detailAdmission: input.detailAdmission } : {}
1426
+ ...input.detailAdmission ? { detailAdmission: input.detailAdmission } : {},
1427
+ ...title !== "" ? { title } : {}
1427
1428
  };
1428
1429
  return input.bookingScope === "whole_series" ? {
1429
1430
  ...identity,
@@ -1499,6 +1500,7 @@ function parseEventOfferingPageSurfaceSubject(value) {
1499
1500
  return ok(createEventOfferingPageSurfaceSubject(eventOfferingId.value, {
1500
1501
  catalogueEventSeriesIds: parsedCatalogueIds.value,
1501
1502
  ...value.detailAdmission === "own-page" ? { detailAdmission: "own-page" } : {},
1503
+ ...typeof value.title === "string" ? { title: value.title } : {},
1502
1504
  bookingScope: value.bookingScope,
1503
1505
  ...eventDestinationMode ? { eventDestinationMode } : {}
1504
1506
  }));
@@ -1524,6 +1526,72 @@ function isRecord$10(value) {
1524
1526
  return typeof value === "object" && value !== null && !Array.isArray(value);
1525
1527
  }
1526
1528
 
1529
+ //#endregion
1530
+ //#region ../core/src/page-surface-subject.ts
1531
+ function parsePageSurfaceSubjectRef(row) {
1532
+ switch (row.subjectType) {
1533
+ case "event_series": {
1534
+ const id = parseEventSeriesId(row.subjectId);
1535
+ return id.ok ? ok({
1536
+ type: row.subjectType,
1537
+ eventSeriesId: id.value
1538
+ }) : err({
1539
+ kind: "invalidSubjectId",
1540
+ error: id.error
1541
+ });
1542
+ }
1543
+ case "event_offering": {
1544
+ const id = parseEventOfferingId(row.subjectId);
1545
+ return id.ok ? ok({
1546
+ type: row.subjectType,
1547
+ eventOfferingId: id.value
1548
+ }) : err({
1549
+ kind: "invalidSubjectId",
1550
+ error: id.error
1551
+ });
1552
+ }
1553
+ case "appointment_service": {
1554
+ const id = parseAppointmentServiceId(row.subjectId);
1555
+ return id.ok ? ok({
1556
+ type: row.subjectType,
1557
+ appointmentServiceId: id.value
1558
+ }) : err({
1559
+ kind: "invalidSubjectId",
1560
+ error: id.error
1561
+ });
1562
+ }
1563
+ default: return err({
1564
+ kind: "unsupportedSubject",
1565
+ subjectType: row.subjectType
1566
+ });
1567
+ }
1568
+ }
1569
+ function parsePageSurfaceSubject(value) {
1570
+ if (typeof value !== "object" || value === null || !("kind" in value) || value.kind !== "appointmentService") {
1571
+ return parseEventPageSurfaceSubject(value);
1572
+ }
1573
+ const id = parseAppointmentServiceId("appointmentServiceId" in value ? value.appointmentServiceId : undefined);
1574
+ if (!id.ok) return err({
1575
+ kind: "invalidAppointmentServiceId",
1576
+ error: id.error
1577
+ });
1578
+ return ok({
1579
+ kind: "appointmentService",
1580
+ appointmentServiceId: id.value,
1581
+ ...servicePageDestination(value),
1582
+ ..."noindex" in value && value.noindex === true ? { noindex: true } : {}
1583
+ });
1584
+ }
1585
+ /** Parse the renderer choice once at the wire boundary. */
1586
+ function servicePageDestination(value) {
1587
+ if (!("serviceDestinationMode" in value)) return {};
1588
+ const mode = value.serviceDestinationMode;
1589
+ return mode === "cms-managed" || mode === "system-managed" ? { serviceDestinationMode: mode } : {};
1590
+ }
1591
+ function toPageSurfaceSubjectWire(subject) {
1592
+ return subject;
1593
+ }
1594
+
1527
1595
  //#endregion
1528
1596
  //#region ../core/src/ticket-quantity.ts
1529
1597
  function toPositiveTicketQuantity(value) {
@@ -1703,6 +1771,53 @@ function addRefundDestinationAmounts(a, b) {
1703
1771
  function hasDirectRefundFunding(funding) {
1704
1772
  return funding?.some((line$1) => line$1.destination === "direct" && line$1.remainingCents > 0) ?? false;
1705
1773
  }
1774
+ /** Closed refusal and reconciliation reasons shared by stored reviews and receipts. */
1775
+ const scheduleBookingReasonCodes = [
1776
+ "closed",
1777
+ "switched_off",
1778
+ "course_booking",
1779
+ "checked_in",
1780
+ "cancelled",
1781
+ "waitlisted",
1782
+ "past",
1783
+ "date_missing",
1784
+ "payment_pending",
1785
+ "not_owner",
1786
+ "full",
1787
+ "not_enough_room",
1788
+ "needs_ticket_choice",
1789
+ "ticket_not_usable",
1790
+ "tickets_collide",
1791
+ "pass_not_accepted",
1792
+ "already_booked",
1793
+ "not_bookable",
1794
+ "not_found",
1795
+ "source_changed",
1796
+ "source_unavailable",
1797
+ "target_full",
1798
+ "target_not_bookable",
1799
+ "target_changed",
1800
+ "already_booked_on_target",
1801
+ "no_replacement_in_week",
1802
+ "changed_after_review",
1803
+ "added_after_review",
1804
+ "cancellation_chosen",
1805
+ "move_refused"
1806
+ ];
1807
+ const businessCancellationRefusalCodes = [
1808
+ "review_changed",
1809
+ "not_found",
1810
+ "payment_in_progress",
1811
+ "payment_check_unavailable",
1812
+ "partial_payment_terms"
1813
+ ];
1814
+ const businessCancellationRefusalCopy = {
1815
+ review_changed: "Bookings have changed since you reviewed this schedule. Review the changes again before saving.",
1816
+ not_found: "One of these dates could not be found. Refresh the dates and review your changes again.",
1817
+ payment_in_progress: "A payment is still being processed for one of these bookings. Wait for it to finish, then review the cancellation again.",
1818
+ payment_check_unavailable: "We could not check a payment for one of these bookings. Review the cancellation again later, or contact us for help.",
1819
+ partial_payment_terms: "One of these bookings shares a payment arrangement with another booking. Cancel the bookings together or contact us for help."
1820
+ };
1706
1821
 
1707
1822
  //#endregion
1708
1823
  //#region ../core/src/booking-instalments.ts
@@ -1814,18 +1929,26 @@ function checkInstalmentPlanDeposit(plan, minimumCents) {
1814
1929
  if (!isDepositBearingBookingInstalmentPlan(plan)) return ok(undefined);
1815
1930
  return plan.depositAmountCents >= minimumCents ? ok(undefined) : err({
1816
1931
  kind: "instalment_deposit_below_minimum",
1817
- minimumCents
1932
+ minimumCents,
1933
+ option: "instalment_plan"
1818
1934
  });
1819
1935
  }
1820
1936
  /** The deposit check for whichever instalment option a set of payment options offers. */
1821
1937
  function checkPaymentOptionsInstalmentDeposit(allowedOptions, minimumCents) {
1822
- const failure = allowedOptions.map((option) => option.kind === "instalment_plan" ? checkInstalmentPlanDeposit(option.plan, minimumCents) : ok(undefined)).find((checked) => !checked.ok);
1938
+ const failure = allowedOptions.map((option) => option.kind === "instalment_plan" ? checkInstalmentPlanDeposit(option.plan, minimumCents) : option.kind === "flexible_balance" && option.config.upfrontAmountCents < minimumCents ? err({
1939
+ kind: "instalment_deposit_below_minimum",
1940
+ minimumCents,
1941
+ option: "flexible_balance"
1942
+ }) : ok(undefined)).find((checked) => !checked.ok);
1823
1943
  return failure ?? ok(undefined);
1824
1944
  }
1825
1945
  /** The one message for a deposit below the minimum, shown in the editor and returned by the server. */
1826
1946
  function describeInstalmentDepositBelowMinimum(failure, currency) {
1827
1947
  const minimum = formatCurrencyAmount(failure.minimumCents, currency);
1828
- return `Enter a deposit of at least ${minimum}. We take it when the customer books and save their card for the later payments.`;
1948
+ switch (failure.option) {
1949
+ case "instalment_plan": return `Enter a deposit of at least ${minimum}. We take it when the customer books and save their card for the later payments.`;
1950
+ case "flexible_balance": return `The deposit needs to be at least ${minimum}.`;
1951
+ }
1829
1952
  }
1830
1953
 
1831
1954
  //#endregion
@@ -2214,6 +2337,41 @@ function resolveLocalInstant(targetLocalMs, timeZone, guess, seen) {
2214
2337
  if (nextGuess === guess || seen.includes(nextGuess)) return new Date(Math.max(guess, nextGuess));
2215
2338
  return resolveLocalInstant(targetLocalMs, timeZone, nextGuess, [...seen, guess]);
2216
2339
  }
2340
+ /** Format a datetime-local input using an explicit business zone. */
2341
+ function formatZonedDateTimeLocal(isoUtc, timeZone) {
2342
+ const date = new Date(isoUtc);
2343
+ if (Number.isNaN(date.getTime())) return "";
2344
+ const dateKey = getBookingLocalDateKey({
2345
+ startsAt: toUtcIsoDateTimeString(date.toISOString()),
2346
+ timeZone: toBookingTimeZone(timeZone)
2347
+ });
2348
+ return `${dateKey}T${formatLocalScheduleTime(getLocalScheduleTime(date, timeZone))}`;
2349
+ }
2350
+ /** Parse civil input without ever consulting the browser's time zone. */
2351
+ function zonedDateTimeLocalToUtcIso(localValue, timeZone) {
2352
+ const match = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/u.exec(localValue);
2353
+ if (match === null) return null;
2354
+ try {
2355
+ return localScheduleDateTimeToUtcDate(parseBookingLocalDate(match[1] ?? ""), parseLocalScheduleTime(match[2] ?? ""), timeZone).toISOString();
2356
+ } catch {
2357
+ return null;
2358
+ }
2359
+ }
2360
+ /** A date is valid through its whole local day; storage ends at the next midnight. */
2361
+ function localDateToExclusiveDeadlineIso(value, timeZone) {
2362
+ return localScheduleDateTimeToUtcDate(addLocalScheduleDays(parseBookingLocalDate(value), 1), {
2363
+ hour: 0,
2364
+ minute: 0,
2365
+ second: 0
2366
+ }, timeZone).toISOString();
2367
+ }
2368
+ /** Subtract before projecting into the zone, just as an exclusive deadline is displayed. */
2369
+ function exclusiveDeadlineToLocalDateInput(iso, timeZone) {
2370
+ if (iso === null || iso === "") return "";
2371
+ const instant = Date.parse(iso);
2372
+ if (Number.isNaN(instant)) return "";
2373
+ return formatLocalScheduleDate(getLocalScheduleDate(new Date(instant - 1), timeZone));
2374
+ }
2217
2375
 
2218
2376
  //#endregion
2219
2377
  //#region ../core/src/booking-date-time/window.ts
@@ -6385,6 +6543,10 @@ function setFooterSectionSelected(composition, sectionId, selected) {
6385
6543
  } : section)
6386
6544
  });
6387
6545
  }
6546
+ function isFooterMenuShown(composition, location) {
6547
+ const kind = location === "footer" ? "navigation" : "legal-navigation";
6548
+ return composition.sections.some((section) => section.kind === kind && section.selected);
6549
+ }
6388
6550
  function parseFooterEngagementSection(value) {
6389
6551
  const parsed = parseFooterSection(value, 0);
6390
6552
  if (!parsed.ok) return parsed;
@@ -6497,7 +6659,7 @@ const defaultSections = (legacy, options) => {
6497
6659
  id: unsafeAsFooterModuleId("legal-navigation"),
6498
6660
  kind: "legal-navigation",
6499
6661
  heading: null,
6500
- selected: false,
6662
+ selected: footerVisible,
6501
6663
  source: {
6502
6664
  kind: "menu-role",
6503
6665
  role: "legal-policy"
@@ -7399,6 +7561,12 @@ function toMailingListPublicSignupResponse(result) {
7399
7561
  if (result.error.tag === "subscriber_suppressed") {
7400
7562
  return { tag: "confirmation_required" };
7401
7563
  }
7564
+ if (result.error.tag === "ip_blocked") {
7565
+ return {
7566
+ tag: "unavailable",
7567
+ reason: "authentication_failed"
7568
+ };
7569
+ }
7402
7570
  return result.error.tag === "uncertain" ? {
7403
7571
  tag: "uncertain",
7404
7572
  reason: result.error.reason
@@ -7942,7 +8110,7 @@ function renderCsvExport(input) {
7942
8110
  };
7943
8111
  }
7944
8112
  const header = columns.map((column) => csvEscape(column.header)).join(",");
7945
- const rows = input.rows.map((row) => columns.map((column) => csvEscape(formatCsvCell(column.cell(row)))).join(","));
8113
+ const rows = input.rows.map((row) => columns.map((column) => renderCsvCellText(column.cell(row))).join(","));
7946
8114
  return {
7947
8115
  ok: true,
7948
8116
  csv: [header, ...rows].join("\n"),
@@ -7951,6 +8119,19 @@ function renderCsvExport(input) {
7951
8119
  sensitivities: collectCsvColumnSensitivities(columns)
7952
8120
  };
7953
8121
  }
8122
+ function renderCsvCellText(cell) {
8123
+ const text = formatCsvCell(cell);
8124
+ switch (cell.kind) {
8125
+ case "integer":
8126
+ case "decimal":
8127
+ case "moneyCents": return text;
8128
+ case "empty":
8129
+ case "text":
8130
+ case "isoDate":
8131
+ case "isoDateTime":
8132
+ case "boolean": return csvEscape(text);
8133
+ }
8134
+ }
7954
8135
  function findDuplicateColumnKey(columns) {
7955
8136
  const seen = new Set();
7956
8137
  for (const column of columns) {
@@ -8081,6 +8262,16 @@ function generateUuidV4(cryptoSource = globalThis.crypto) {
8081
8262
  const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0"));
8082
8263
  return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`;
8083
8264
  }
8265
+ /** RFC 9562 UUIDv5: namespace UUID bytes followed by the UTF-8 name, hashed with SHA-1. */
8266
+ async function generateUuidV5(namespace, name) {
8267
+ const hex = namespace.replace(/-/g, "");
8268
+ const namespaceBytes = Array.from({ length: 16 }, (_, index) => Number.parseInt(hex.slice(index * 2, index * 2 + 2), 16));
8269
+ const input = Uint8Array.from([...namespaceBytes, ...new TextEncoder().encode(name)]);
8270
+ const digest = new Uint8Array(await crypto.subtle.digest("SHA-1", input));
8271
+ const bytes = Array.from(digest.slice(0, 16), (byte, index) => index === 6 ? byte & 15 | 80 : index === 8 ? byte & 63 | 128 : byte);
8272
+ const result = bytes.map((byte) => byte.toString(16).padStart(2, "0")).join("");
8273
+ return `${result.slice(0, 8)}-${result.slice(8, 12)}-${result.slice(12, 16)}-${result.slice(16, 20)}-${result.slice(20)}`;
8274
+ }
8084
8275
 
8085
8276
  //#endregion
8086
8277
  //#region ../core/src/secret.ts
@@ -8162,8 +8353,7 @@ function failInvalidSecret() {
8162
8353
  const SITE_ROUTE_NODE_TYPES = [
8163
8354
  "page",
8164
8355
  "content_entry",
8165
- "page_surface",
8166
- "appointment_service"
8356
+ "page_surface"
8167
8357
  ];
8168
8358
  function parseSiteRouteTarget(input) {
8169
8359
  if (typeof input.nodeType !== "string") {
@@ -8203,16 +8393,6 @@ function parseSiteRouteTarget(input) {
8203
8393
  error: surfaceId.error
8204
8394
  });
8205
8395
  }
8206
- case "appointment_service": {
8207
- const serviceId = parseAppointmentServiceId(input.nodeId);
8208
- return serviceId.ok ? ok({
8209
- kind: "appointmentService",
8210
- serviceId: serviceId.value
8211
- }) : err({
8212
- kind: "invalid-appointment-service-id",
8213
- error: serviceId.error
8214
- });
8215
- }
8216
8396
  default: return err({
8217
8397
  kind: "unsupported-node-type",
8218
8398
  nodeType: input.nodeType
@@ -8224,7 +8404,6 @@ function siteRouteTargetNodeType(target) {
8224
8404
  case "page": return "page";
8225
8405
  case "contentEntry": return "content_entry";
8226
8406
  case "pageSurface": return "page_surface";
8227
- case "appointmentService": return "appointment_service";
8228
8407
  default: return assertNever(target);
8229
8408
  }
8230
8409
  }
@@ -8233,7 +8412,6 @@ function foldSiteRouteTarget(target, cases) {
8233
8412
  case "page": return cases.page(target.pageId);
8234
8413
  case "contentEntry": return cases.contentEntry(target.entryId);
8235
8414
  case "pageSurface": return cases.pageSurface(target.surfaceId);
8236
- case "appointmentService": return cases.appointmentService(target.serviceId);
8237
8415
  default: return assertNever(target);
8238
8416
  }
8239
8417
  }
@@ -8357,9 +8535,10 @@ function resolveWholeSeriesPaymentDates(input) {
8357
8535
  //#region ../core/src/public-read-cache-contract.ts
8358
8536
  const PUBLIC_AVAILABILITY_FRESHNESS_SECONDS = 60;
8359
8537
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
8360
- function availability(transport) {
8538
+ function availability(fetchTags, transport) {
8361
8539
  return {
8362
8540
  kind: "live",
8541
+ fetchTags,
8363
8542
  reason: "booking_correctness",
8364
8543
  freshness: "availability",
8365
8544
  transport
@@ -8368,6 +8547,7 @@ function availability(transport) {
8368
8547
  function content(tags, transport = "direct") {
8369
8548
  return {
8370
8549
  kind: "tagged",
8550
+ fetchTags: tags,
8371
8551
  tags,
8372
8552
  freshness: "content",
8373
8553
  transport
@@ -8377,23 +8557,28 @@ function content(tags, transport = "direct") {
8377
8557
  const PUBLIC_READ_CACHE_POLICIES = {
8378
8558
  listPublishedEntries: content(["published_content"]),
8379
8559
  getPublishedEntryPreview: content(["published_content"]),
8380
- listPublicEvents: availability("direct"),
8381
- listPublicEventCalendarWindow: availability("direct"),
8382
- listPublicRecurringSchedule: availability("batch_only"),
8383
- getPublicEventDetails: availability("batch_only"),
8384
- resolveEventSubroute: availability("direct"),
8560
+ listPublicEvents: availability(["public_events", "public_event_filters"], "direct"),
8561
+ listPublicEventCalendarWindow: availability(["public_events", "public_event_filters"], "direct"),
8562
+ listPublicRecurringSchedule: availability(["public_events", "public_event_filters"], "batch_only"),
8563
+ getPublicEventDetails: availability([
8564
+ "public_events",
8565
+ "public_event_filters",
8566
+ "public_passes",
8567
+ "public_memberships"
8568
+ ], "batch_only"),
8569
+ resolveEventSubroute: availability(["public_events", "public_event_filters"], "direct"),
8385
8570
  listPublicRouteCandidates: content(["published_content"], "batch_only"),
8386
8571
  listPublicTeamMembers: content(["public_team_members"]),
8387
- listPublicProducts: availability("direct"),
8388
- listPublicPasses: availability("direct"),
8389
- listPublicMemberships: availability("direct"),
8572
+ listPublicProducts: availability(["public_products"], "direct"),
8573
+ listPublicPasses: availability(["public_passes"], "direct"),
8574
+ listPublicMemberships: availability(["public_memberships"], "direct"),
8390
8575
  getPublicFormById: content(["site_forms"]),
8391
- getPublicBookingServices: availability("direct"),
8392
- getPublicBookingService: availability("direct"),
8393
- getPublicBookingResourcesReference: availability("direct"),
8394
- getPublicBookingAvailableDates: availability("direct"),
8395
- getPublicBookingAvailableSlots: availability("direct"),
8396
- getPublicWeeklySlotAvailability: availability("direct"),
8576
+ getPublicBookingServices: availability(["public_booking_services"], "direct"),
8577
+ getPublicBookingService: availability(["public_booking_services"], "direct"),
8578
+ getPublicBookingResourcesReference: availability(["public_booking_services"], "direct"),
8579
+ getPublicBookingAvailableDates: availability(["public_booking_services", "public_booking_availability"], "direct"),
8580
+ getPublicBookingAvailableSlots: availability(["public_booking_services", "public_booking_availability"], "direct"),
8581
+ getPublicWeeklySlotAvailability: availability(["public_booking_services", "public_booking_availability"], "direct"),
8397
8582
  listPublicForms: content(["site_forms"]),
8398
8583
  checkRedirect: content([]),
8399
8584
  getPublicRoutableContent: content(["published_content"]),
@@ -9103,7 +9288,7 @@ const NAVIGATION_LOCATION_DESCRIPTORS = {
9103
9288
  legal: {
9104
9289
  location: "legal",
9105
9290
  label: "Legal links",
9106
- description: "Smaller footer links for privacy, terms and other policies."
9291
+ description: "Smaller links at the bottom of your footer, for privacy, terms and other policies."
9107
9292
  }
9108
9293
  };
9109
9294
  function isNavigationLocation(value) {
@@ -9226,6 +9411,203 @@ function eventCatalogueChoices(catalogue) {
9226
9411
  }];
9227
9412
  }
9228
9413
 
9414
+ //#endregion
9415
+ //#region ../core/src/business-vocabulary.ts
9416
+ const person = (singular, plural) => ({
9417
+ singular,
9418
+ plural
9419
+ });
9420
+ const GENERIC_BUSINESS_VOCABULARY = {
9421
+ person: person("practitioner", "practitioners"),
9422
+ offeringsExample: "weekly classes, one-to-one sessions and the occasional workshop"
9423
+ };
9424
+ const BUSINESS_VOCABULARY_BY_VERTICAL = {
9425
+ yoga_wellness: {
9426
+ person: person("teacher", "teachers"),
9427
+ offeringsExample: "weekly yoga classes, a beginners' course and the occasional retreat"
9428
+ },
9429
+ fitness_pt: {
9430
+ person: person("trainer", "trainers"),
9431
+ offeringsExample: "one-to-one personal training, small-group strength classes and six-week programmes"
9432
+ },
9433
+ dance_school: {
9434
+ person: person("teacher", "teachers"),
9435
+ offeringsExample: "weekly ballet and tap classes, holiday workshops and private lessons"
9436
+ },
9437
+ physiotherapy_physical_health: {
9438
+ person: person("practitioner", "practitioners"),
9439
+ offeringsExample: "assessments, follow-up treatments and a weekly back-care class"
9440
+ },
9441
+ massage_bodywork: {
9442
+ person: person("therapist", "therapists"),
9443
+ offeringsExample: "sports and deep tissue massage, and the occasional workshop"
9444
+ },
9445
+ therapist_practitioner: {
9446
+ person: person("practitioner", "practitioners"),
9447
+ offeringsExample: "one-to-one sessions, first consultations and a monthly group"
9448
+ },
9449
+ beauty_spa: {
9450
+ person: person("therapist", "therapists"),
9451
+ offeringsExample: "facials, massage and seasonal spa days"
9452
+ },
9453
+ consultant_coach: {
9454
+ person: person("coach", "coaches"),
9455
+ offeringsExample: "one-to-one coaching calls, half-day workshops and a group programme"
9456
+ },
9457
+ training_provider: {
9458
+ person: person("trainer", "trainers"),
9459
+ offeringsExample: "first aid courses, refresher days and on-site training"
9460
+ },
9461
+ retreat_centre: {
9462
+ person: person("facilitator", "facilitators"),
9463
+ offeringsExample: "weekend retreats, day workshops and drop-in classes"
9464
+ },
9465
+ music_school: {
9466
+ person: person("teacher", "teachers"),
9467
+ offeringsExample: "piano and guitar lessons, group classes and end-of-term concerts"
9468
+ },
9469
+ voice_singing: {
9470
+ person: person("teacher", "teachers"),
9471
+ offeringsExample: "a weekly community choir, one-to-one singing lessons and workshops"
9472
+ },
9473
+ performing_arts_school: {
9474
+ person: person("teacher", "teachers"),
9475
+ offeringsExample: "weekly drama classes, holiday workshops and an end-of-term show"
9476
+ },
9477
+ community_wellbeing: {
9478
+ person: person("facilitator", "facilitators"),
9479
+ offeringsExample: "a weekly walking group, wellbeing workshops and drop-in support sessions"
9480
+ },
9481
+ venue_event_space: {
9482
+ person: null,
9483
+ offeringsExample: "room hire, community events and regular classes run by local teachers"
9484
+ }
9485
+ };
9486
+ /** A site with no business type set gets the generic vocabulary. */
9487
+ function resolveBusinessVocabulary(verticalId) {
9488
+ return verticalId ? BUSINESS_VOCABULARY_BY_VERTICAL[verticalId] : GENERIC_BUSINESS_VOCABULARY;
9489
+ }
9490
+ /** "Our trainers", or "The team" where nobody leads sessions or the type is unknown. */
9491
+ function businessTeamPageTitle(verticalId) {
9492
+ const people = verticalId ? BUSINESS_VOCABULARY_BY_VERTICAL[verticalId].person : null;
9493
+ return people === null ? "The team" : `Our ${people.plural}`;
9494
+ }
9495
+ /**
9496
+ * Example names for an offering, by business preset, written as
9497
+ * "e.g., First, Second". Presets without one fall back to their caller's
9498
+ * generic example.
9499
+ */
9500
+ const TITLE_EXAMPLE_BY_PRESET = {
9501
+ "yoga_wellness.classes": "e.g., Tuesday Evening Flow, Beginners Yoga",
9502
+ "fitness_pt.group_training": "e.g., Tuesday Strength Club, Saturday HIIT",
9503
+ "fitness_pt.personal_training": "e.g., Personal Training Session, Movement Assessment",
9504
+ "fitness_pt.programmes": "e.g., 6-Week Strength Programme, Couch to 5K",
9505
+ "fitness_pt.workshops": "e.g., Kettlebell Foundations, Mobility Workshop",
9506
+ "fitness_pt.retreats": "e.g., Peak Fitness Weekend, Strength and Recovery Retreat",
9507
+ "dance_school.classes": "e.g., Junior Ballet, Adult Tap Beginners",
9508
+ "dance_school.terms": "e.g., Junior Ballet Spring Term, Adult Jazz Term",
9509
+ "dance_school.workshops": "e.g., Contemporary Intensive, Tap Masterclass",
9510
+ "dance_school.private_lessons": "e.g., Private Ballet Lesson, Audition Coaching",
9511
+ "dance_school.shows": "e.g., Winter Showcase, Summer Recital",
9512
+ "physiotherapy_physical_health.appointments": "e.g., Initial Assessment, Follow-Up Appointment",
9513
+ "physiotherapy_physical_health.rehab_classes": "e.g., Weekly Back Care, Mobility and Strength Class",
9514
+ "physiotherapy_physical_health.workshops": "e.g., Running Injury Prevention, Everyday Back Care",
9515
+ "massage_bodywork.treatments": "e.g., 60-Minute Massage, Initial Bodywork Session",
9516
+ "massage_bodywork.group_sessions": "e.g., Weekly Self-Massage, Somatic Movement Group",
9517
+ "massage_bodywork.workshops": "e.g., Introduction to Self-Massage, Restorative Bodywork Workshop",
9518
+ "therapist_practitioner.appointments": "e.g., Initial Consultation, Follow-Up Session",
9519
+ "therapist_practitioner.workshops": "e.g., Managing Stress Workshop, Breathwork Evening",
9520
+ "therapist_practitioner.retreats": "e.g., Rest and Reset Weekend, Wellbeing Retreat",
9521
+ "beauty_spa.appointments": "e.g., Skin Consultation, Signature Facial",
9522
+ "beauty_spa.workshops": "e.g., Skincare Workshop, Makeup Masterclass",
9523
+ "consultant_coach.appointments": "e.g., Discovery Call, Strategy Session",
9524
+ "consultant_coach.workshops": "e.g., Planning Workshop, Leadership Strategy Day",
9525
+ "consultant_coach.courses": "e.g., 6-Week Coaching Cohort, Foundations Course",
9526
+ "consultant_coach.retreats": "e.g., Leadership Retreat, Creative Reset Weekend",
9527
+ "training_provider.courses": "e.g., First Aid at Work, Leadership Essentials",
9528
+ "training_provider.workshops": "e.g., Safeguarding Workshop, Excel Masterclass",
9529
+ "training_provider.appointments": "e.g., Skills Assessment, Mentoring Session",
9530
+ "retreat_centre.retreats": "e.g., Autumn Residential Retreat, Silent Weekend",
9531
+ "retreat_centre.workshops": "e.g., Breathwork Day Retreat, Full Moon Ceremony",
9532
+ "retreat_centre.classes": "e.g., Weekly Guided Meditation, Morning Yoga",
9533
+ "retreat_centre.courses": "e.g., Mindfulness Course, Seasonal Practice Programme",
9534
+ "retreat_centre.appointments": "e.g., Private Therapy Session, One-to-One Consultation",
9535
+ "music_school.lessons": "e.g., Piano Lesson, Vocal Coaching",
9536
+ "music_school.classes": "e.g., Beginner Guitar Group, Junior Choir",
9537
+ "music_school.terms": "e.g., Spring Piano Term, Junior Choir Term",
9538
+ "music_school.workshops": "e.g., Songwriting Workshop, Jazz Improvisation Day",
9539
+ "music_school.performances": "e.g., Winter Concert, Student Recital",
9540
+ "voice_singing.lessons": "e.g., Voice Session, Singing Lesson",
9541
+ "voice_singing.classes": "e.g., Weekly Singing Circle, Community Choir",
9542
+ "voice_singing.terms": "e.g., Spring Choir Term, 6-Week Voice Journey",
9543
+ "voice_singing.workshops": "e.g., Free Your Voice Workshop, Devotional Singing Evening",
9544
+ "voice_singing.performances": "e.g., Winter Choir Sharing, Community Song Evening",
9545
+ "performing_arts_school.classes": "e.g., Musical Theatre Class, Junior Drama",
9546
+ "performing_arts_school.terms": "e.g., Spring Drama Term, Musical Theatre Term",
9547
+ "performing_arts_school.workshops": "e.g., Acting Intensive, Screen Audition Workshop",
9548
+ "performing_arts_school.performances": "e.g., Summer Showcase, End-of-Term Production",
9549
+ "performing_arts_school.lessons": "e.g., Private Acting Lesson, Audition Coaching",
9550
+ "community_wellbeing.classes": "e.g., Weekly Meditation Group, Community Yoga",
9551
+ "community_wellbeing.workshops": "e.g., Community Wellbeing Workshop, Grief Support Day",
9552
+ "community_wellbeing.courses": "e.g., Mindfulness Course, Peer Support Programme",
9553
+ "community_wellbeing.appointments": "e.g., Support Session, Initial Consultation",
9554
+ "community_wellbeing.retreats": "e.g., Community Retreat Weekend, Rest and Reflect Retreat"
9555
+ };
9556
+ function verticalPresetTitleExample(presetId) {
9557
+ return TITLE_EXAMPLE_BY_PRESET[presetId] ?? null;
9558
+ }
9559
+
9560
+ //#endregion
9561
+ //#region ../core/src/credit-product-nouns.ts
9562
+ const CREDIT_PRODUCT_NOUNS = {
9563
+ event_pass: {
9564
+ product: {
9565
+ singular: "pass",
9566
+ plural: "passes"
9567
+ },
9568
+ productTitle: {
9569
+ singular: "Pass",
9570
+ plural: "Passes"
9571
+ },
9572
+ unit: {
9573
+ singular: "class",
9574
+ plural: "classes"
9575
+ }
9576
+ },
9577
+ appointment_package: {
9578
+ product: {
9579
+ singular: "package",
9580
+ plural: "packages"
9581
+ },
9582
+ productTitle: {
9583
+ singular: "Package",
9584
+ plural: "Packages"
9585
+ },
9586
+ unit: {
9587
+ singular: "session",
9588
+ plural: "sessions"
9589
+ }
9590
+ }
9591
+ };
9592
+ function creditProductNouns(useCase) {
9593
+ return CREDIT_PRODUCT_NOUNS[useCase];
9594
+ }
9595
+ function countedNoun(noun, count) {
9596
+ return count === 1 ? noun.singular : noun.plural;
9597
+ }
9598
+ /** "class" or "classes", to follow a number the caller formats. */
9599
+ function creditProductUnitNoun(useCase, count) {
9600
+ return countedNoun(CREDIT_PRODUCT_NOUNS[useCase].unit, count);
9601
+ }
9602
+ /** "1 class", "4 sessions". */
9603
+ function formatCreditProductUnits(useCase, count) {
9604
+ return `${count} ${creditProductUnitNoun(useCase, count)}`;
9605
+ }
9606
+ /** "4 of 10 sessions left". */
9607
+ function formatCreditProductBalance(useCase, balance) {
9608
+ return `${balance.remaining} of ${balance.total} ${creditProductUnitNoun(useCase, balance.total)} left`;
9609
+ }
9610
+
9229
9611
  //#endregion
9230
9612
  //#region ../core/src/patch/index.ts
9231
9613
  function settableFrom(wireValue) {
@@ -9294,7 +9676,8 @@ const APPOINTMENT_REQUEST_OUTCOME_VALUES = [
9294
9676
  const APPOINTMENT_REQUEST_NOTICE_KIND_VALUES = [
9295
9677
  "received",
9296
9678
  "confirmed",
9297
- "declined"
9679
+ "declined",
9680
+ "lapsed"
9298
9681
  ];
9299
9682
  function parseAppointmentStatus(value) {
9300
9683
  const status = APPOINTMENT_STATUS_VALUES.find((status$1) => status$1 === value);
@@ -10119,11 +10502,6 @@ const EMAIL_DEFINITIONS = {
10119
10502
  perEvent: false,
10120
10503
  templateStorage: true
10121
10504
  },
10122
- pass_purchase_confirmation: {
10123
- wording: "editable",
10124
- perEvent: false,
10125
- templateStorage: true
10126
- },
10127
10505
  membership_purchase_confirmation: {
10128
10506
  wording: "editable",
10129
10507
  perEvent: false,
@@ -10259,6 +10637,16 @@ const EMAIL_DEFINITIONS = {
10259
10637
  perEvent: false,
10260
10638
  templateStorage: true
10261
10639
  },
10640
+ appointment_request_lapsed: {
10641
+ wording: "editable",
10642
+ perEvent: false,
10643
+ templateStorage: true
10644
+ },
10645
+ appointment_team_request_lapsed: {
10646
+ wording: "fixed",
10647
+ perEvent: false,
10648
+ templateStorage: false
10649
+ },
10262
10650
  appointment_request_declined: {
10263
10651
  wording: "editable",
10264
10652
  perEvent: false,
@@ -10310,6 +10698,16 @@ const EMAIL_DEFINITIONS = {
10310
10698
  perEvent: false,
10311
10699
  templateStorage: true
10312
10700
  },
10701
+ arrangement_sessions_booked: {
10702
+ wording: "editable",
10703
+ perEvent: false,
10704
+ templateStorage: true
10705
+ },
10706
+ arrangement_sessions_changed: {
10707
+ wording: "editable",
10708
+ perEvent: false,
10709
+ templateStorage: true
10710
+ },
10313
10711
  event_waitlist_join_confirmation: {
10314
10712
  wording: "editable",
10315
10713
  perEvent: false,
@@ -10445,6 +10843,11 @@ const EMAIL_DEFINITIONS = {
10445
10843
  perEvent: false,
10446
10844
  templateStorage: false
10447
10845
  },
10846
+ domain_renewal_disabled: {
10847
+ wording: "fixed",
10848
+ perEvent: false,
10849
+ templateStorage: false
10850
+ },
10448
10851
  billing_payment_issue: {
10449
10852
  wording: "fixed",
10450
10853
  perEvent: false,
@@ -10669,4 +11072,4 @@ function decideBookingEmbedChange(current, change) {
10669
11072
  }
10670
11073
 
10671
11074
  //#endregion
10672
- export { locationMapLinks as $, unsafeAsSiteId as $n, isPublicEventPricingOptionDisplayable as $t, parseMailingListContentVersionId as A, parseDatedOfferingCapacityHoldId as An, resolveBookingTimeZoneId as At, footerNavigationLayouts as B, unsafeAsSafeDownloadFilename as Bn, addIntervalPreservingMonthAnchor as Bt, resolveWholeSeriesBookingPhase as C, unsafeAsStaffMemberId as Cn, getBookingLocalDateKey as Ct, parseManagementKey as D, unsafeAsEntitlementId as Dn, parseBookingLocalDate as Dt, exposeSecret as E, parseMembershipId as En, localScheduleTimePattern as Et, parseMailingListGlobalForm as F, unsafeAsFileChecksumSha256 as Fn, BOOKING_COURSE_INSTALMENT_DEADLINES as Ft, formatOpeningHoursRows as G, unsafeAsProductId as Gn, omitZeroAmountFutureRows as Gt, DEFAULT_MAILING_LIST_TARGETING as H, unsafeAsStorageBucketName as Hn, getBookingInstalmentDepositRefundability as Ht, DEFAULT_MAILING_LIST_PRIVACY_NOTE as I, unsafeAsMediaAssetId as In, validateBookingPaymentOptionKinds as It, assertAllowedPublicUrl as J, parsePageId as Jn, resolveFlexibleBalanceInitialPaymentCents as Jt, parsePublicContactDetails as K, unsafeAsCheckoutLineId as Kn, splitAmountWithRemainderInFirst as Kt, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as L, unsafeAsOriginalFilename as Ln, isLiveOrderInstalmentPlanStatus as Lt, parseMailingListRuntimeContext as M, parseMediaAssetId as Mn, parseBookingTimeZone as Mt, assessMailingListTargeting as N, unsafeAsDeclaredMimeType as Nn, parseUtcIsoDateTimeString as Nt, slugify as O, unsafeAsPassId as On, parseLocalScheduleTime as Ot, parseConfiguredMailingListProvider as P, unsafeAsDetectedMimeType as Pn, toUtcIsoDateTimeString as Pt, stableJsonStringify as Q, parseUserId as Qn, formatEventPricing as Qt, parseMailingListProviderScope as R, unsafeAsPositiveByteCount as Rn, isSettleableFlexibleBalanceContractStatus as Rt, orderedLiveRunSessions as S, unsafeAsAppointmentResourceId as Sn, formatLocalScheduleTime as St, createSecret as T, parseSiteTermsVersionId as Tn, getLocalScheduleTime as Tt, planMailingListChoicePresentation as U, unsafeAsStoragePath as Un, getBookingInstalmentPlanIntervalCount as Ut, parseMailingListPlacementTargeting as V, unsafeAsSiteScopedStoragePath as Vn, clampConfiguredAmount as Vt, isCanonicalRichTextDoc as W, unsafeAsUploadSessionId as Wn, getBookingInstalmentProtectedDepositAmountCents as Wt, SENSITIVE_COLLECTION_MODES as X, parseApiKeyId as Xn, parseEventPageSurfaceSubject as Xt, SENSITIVE_COLLECTION_CONFIRMATION_VERSION as Y, unsafeAsSiteFontId as Yn, deriveTotalTicketQuantity as Yt, decideLocationSave as Z, parseSiteId as Zn, formatBookingPriceDisplay as Zt, WHOLE_SERIES_EVENT_PRESET_VALUES as _, parseCurrencyCode as _n, resolveBookingDisplayContext as _t, resolveEventCatalogue as a, resolvePricingOptionsPriceDisplay as an, unsafeAsEventSeriesId as ar, toLocationCoordinates as at, CANCELLED_SESSION_STATUS as b, unsafeAsBookingRequirementId as bn, compareLocalScheduleDates as bt, areConfiguredBookingVerticalConfigsEqual as c, mapReadonlyNonEmptyArray as cn, err as cr, mapDrawingSchema as ct, parseVerticalPresetId as d, parsePositiveCents as dn, formatDateRange as dt, publicEventPricingCurrency as en, unsafeAsUserId as er, locationValueSchema as et, resolveSiteVerticalBookingConfig as f, toCents as fn, formatDateTime as ft, SURFACE_EVENT_PRESET_VALUES as g, formatCurrencyAmount as gn, inferSiteDateLocale as gt, ORDINARY_EVENT_PRESET_VALUES as h, unsafeAsPositiveCents as hn, formatTimeRange as ht, authoredValuesEqual as i, resolveExactOrFreePriceDisplay as in, unsafeAsEventOfferingId as ir, publicLocationSchema as it, parseMailingListSignedSourceToken as j, unsafeAsBookingSessionId as jn, toBookingTimeZone as jt, parseMailingListBlockId as k, parseDatedOfferingCapacityHoldAuditRef as kn, resolveBookingBusinessTimeZone as kt, canonicalizeConfiguredBookingVerticalConfig as l, isNonNegativeWholeCents as ln, ok as lr, selectCategoryView as lt, EVENT_PRESET_VALUES as m, unsafeAsNonNegativeCents as mn, formatTime as mt, committedWriteProofSchema as n, publicEventPricingOptions as nn, parseRetiredCourseId as nr, parseLocationValue as nt, EVENT_PRESET_VOCABULARY as o, fromArray as on, unsafeAsOccurrenceId as or, isPresent as ot, DEFAULT_EVENT_TYPE_PRESETS as p, toNonNegativeCents as pn, formatDateTimeRange as pt, parseWeeklyOpeningHours as q, parseEditorSessionGeneration as qn, resolveFlexibleBalanceDueAt as qt, isRecord as r, publicEventPricingType as rn, unsafeAsEventInstanceId as rr, projectPublicLocation as rt, NAVIGATION_LOCATIONS as s, mapNonEmptyArray as sn, unsafeAsPricingOptionId as sr, trimmedStringOrNull as st, OFFLINE_PAYMENT_METHODS as t, publicEventPricingDisplay as tn, parseEventSeriesId as tr, normalizeLocationAddressText as tt, parseVerticalId as u, parseNonNegativeCents as un, blockInteractionContextSchema as ur, formatDate as ut, getPublicReadCachePolicy as v, assertNever as vn, toScheduledBookingDateTime as vt, resolveWholeSeriesRunLifecycle as w, parseCustomerId as wn, getLocalScheduleDate as wt, nextLiveRunSessionStartMs as x, unsafeAsDemoCapability as xn, formatLocalScheduleDate as xt, publicReadFreshnessSeconds as y, formatDurationUnitLabel as yn, buildBookingUtcDateWindow as yt, parseFooterCompositionV1 as z, unsafeAsPositiveSeconds as zn, isSettleableOrderInstalmentPlanStatus as zt };
11075
+ export { parseWeeklyOpeningHours as $, unsafeAsProductId as $n, businessCancellationRefusalCodes as $t, resolveWholeSeriesRunLifecycle as A, unsafeAsAppointmentResourceId as An, getLocalScheduleDate as At, parseConfiguredMailingListProvider as B, parseMediaAssetId as Bn, toUtcIsoDateTimeString as Bt, isPublicReadEndpoint as C, unsafeAsPositiveCents as Cn, resolveBookingDisplayContext as Ct, nextLiveRunSessionStartMs as D, formatDurationUnitLabel as Dn, formatLocalScheduleDate as Dt, firstLiveRunSessionStartMs as E, assertNever as En, compareLocalScheduleDates as Et, parseMailingListBlockId as F, unsafeAsEntitlementId as Fn, resolveBookingBusinessTimeZone as Ft, parseFooterCompositionV1 as G, unsafeAsOriginalFilename as Gn, isSettleableOrderInstalmentPlanStatus as Gt, DEFAULT_MAILING_LIST_PRIVACY_NOTE as H, unsafeAsDetectedMimeType as Hn, validateBookingPaymentOptionKinds as Ht, parseMailingListContentVersionId as I, unsafeAsPassId as In, resolveBookingTimeZoneId as It, DEFAULT_MAILING_LIST_TARGETING as J, unsafeAsSafeDownloadFilename as Jn, getBookingInstalmentDepositRefundability as Jt, footerNavigationLayouts as K, unsafeAsPositiveByteCount as Kn, addIntervalPreservingMonthAnchor as Kt, parseMailingListSignedSourceToken as L, parseDatedOfferingCapacityHoldAuditRef as Ln, toBookingTimeZone as Lt, exposeSecret as M, parseCustomerId as Mn, localScheduleTimePattern as Mt, parseManagementKey as N, parseSiteTermsVersionId as Nn, parseBookingLocalDate as Nt, orderedLiveRunSessions as O, unsafeAsBookingRequirementId as On, formatLocalScheduleTime as Ot, slugify as P, parseMembershipId as Pn, parseLocalScheduleTime as Pt, parsePublicContactDetails as Q, unsafeAsUploadSessionId as Qn, splitAmountWithRemainderInFirst as Qt, parseMailingListRuntimeContext as R, parseDatedOfferingCapacityHoldId as Rn, parseBookingTimeZone as Rt, getPublicReadCachePolicy as S, unsafeAsNonNegativeCents as Sn, inferSiteDateLocale as St, CANCELLED_SESSION_STATUS as T, parseCurrencyCode as Tn, buildBookingUtcDateWindow as Tt, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as U, unsafeAsFileChecksumSha256 as Un, isLiveOrderInstalmentPlanStatus as Ut, parseMailingListGlobalForm as V, unsafeAsDeclaredMimeType as Vn, BOOKING_COURSE_INSTALMENT_DEADLINES as Vt, parseMailingListProviderScope as W, unsafeAsMediaAssetId as Wn, isSettleableFlexibleBalanceContractStatus as Wt, isCanonicalRichTextDoc as X, unsafeAsStorageBucketName as Xn, getBookingInstalmentProtectedDepositAmountCents as Xt, planMailingListChoicePresentation as Y, unsafeAsSiteScopedStoragePath as Yn, getBookingInstalmentPlanIntervalCount as Yt, formatOpeningHoursRows as Z, unsafeAsStoragePath as Zn, omitZeroAmountFutureRows as Zt, ORDINARY_EVENT_PRESET_VALUES as _, isNonNegativeWholeCents as _n, err as _r, formatDateRange as _t, creditProductUnitNoun as a, formatBookingPriceDisplay as an, parseSiteId as ar, locationMapLinks as at, PUBLIC_AVAILABILITY_FRESHNESS_SECONDS as b, toCents as bn, formatTime as bt, EVENT_PRESET_VOCABULARY as c, publicEventPricingCurrency as cn, unsafeAsUserId as cr, parseLocationValue as ct, canonicalizeConfiguredBookingVerticalConfig as d, publicEventPricingType as dn, unsafeAsEventCategoryId as dr, toLocationCoordinates as dt, scheduleBookingReasonCodes as en, unsafeAsCheckoutLineId as er, assertAllowedPublicUrl as et, parseVerticalId as f, resolveExactOrFreePriceDisplay as fn, unsafeAsEventInstanceId as fr, isPresent as ft, EVENT_PRESET_VALUES as g, mapReadonlyNonEmptyArray as gn, unsafeAsPricingOptionId as gr, formatDate as gt, DEFAULT_EVENT_TYPE_PRESETS as h, mapNonEmptyArray as hn, unsafeAsOccurrenceId as hr, selectCategoryView as ht, authoredValuesEqual as i, parsePageSurfaceSubject as in, parseApiKeyId as ir, stableJsonStringify as it, createSecret as j, unsafeAsStaffMemberId as jn, getLocalScheduleTime as jt, resolveWholeSeriesBookingPhase as k, unsafeAsDemoCapability as kn, getBookingLocalDateKey as kt, NAVIGATION_LOCATIONS as l, publicEventPricingDisplay as ln, parseEventSeriesId as lr, projectPublicLocation as lt, resolveSiteVerticalBookingConfig as m, fromArray as mn, unsafeAsEventSeriesId as mr, mapDrawingSchema as mt, committedWriteProofSchema as n, resolveFlexibleBalanceInitialPaymentCents as nn, parsePageId as nr, SENSITIVE_COLLECTION_MODES as nt, formatCreditProductUnits as o, formatEventPricing as on, parseUserId as or, locationValueSchema as ot, parseVerticalPresetId as p, resolvePricingOptionsPriceDisplay as pn, unsafeAsEventOfferingId as pr, trimmedStringOrNull as pt, parseMailingListPlacementTargeting as q, unsafeAsPositiveSeconds as qn, clampConfiguredAmount as qt, isRecord as r, deriveTotalTicketQuantity as rn, unsafeAsSiteFontId as rr, decideLocationSave as rt, resolveEventCatalogue as s, isPublicEventPricingOptionDisplayable as sn, unsafeAsSiteId as sr, normalizeLocationAddressText as st, OFFLINE_PAYMENT_METHODS as t, resolveFlexibleBalanceDueAt as tn, parseEditorSessionGeneration as tr, SENSITIVE_COLLECTION_CONFIRMATION_VERSION as tt, areConfiguredBookingVerticalConfigsEqual as u, publicEventPricingOptions as un, parseRetiredCourseId as ur, publicLocationSchema as ut, SURFACE_EVENT_PRESET_VALUES as v, parseNonNegativeCents as vn, ok as vr, formatDateTime as vt, publicReadFreshnessSeconds as w, formatCurrencyAmount as wn, toScheduledBookingDateTime as wt, PUBLIC_CONTENT_FRESHNESS_SECONDS as x, toNonNegativeCents as xn, formatTimeRange as xt, WHOLE_SERIES_EVENT_PRESET_VALUES as y, parsePositiveCents as yn, blockInteractionContextSchema as yr, formatDateTimeRange as yt, assessMailingListTargeting as z, unsafeAsBookingSessionId as zn, parseUtcIsoDateTimeString as zt };