@riverbankcms/sdk 0.139.0 → 0.140.0

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.
Files changed (196) hide show
  1. package/README.md +1 -1
  2. package/dist/{PreviewEditorSidebar-BDeenhi3.mjs → PreviewEditorSidebar-CUyTzd5z.mjs} +4 -4
  3. package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-Agkw4v5i.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-DdbeAdS8.mjs} +22 -8
  6. package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-CqGOz-Kv.mjs} +2053 -1110
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
  8. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +212 -212
  9. package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
  10. package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
  11. package/dist/_dts/api/src/authSubmission.d.ts +46 -0
  12. package/dist/_dts/api/src/billing.d.ts +8 -4
  13. package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
  14. package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
  15. package/dist/_dts/api/src/blocks.d.ts +2 -0
  16. package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
  17. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
  18. package/dist/_dts/api/src/communications.d.ts +0 -1
  19. package/dist/_dts/api/src/contentRuntime.d.ts +8 -3
  20. package/dist/_dts/api/src/endpoints.d.ts +93 -64
  21. package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
  22. package/dist/_dts/api/src/footerSettings.d.ts +9 -6
  23. package/dist/_dts/api/src/index.d.ts +5 -6
  24. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  25. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  26. package/dist/_dts/api/src/mailingListIntegration.d.ts +8 -2
  27. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
  28. package/dist/_dts/api/src/navigation/types.d.ts +1 -1
  29. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
  30. package/dist/_dts/api/src/onboarding/surfaceData.d.ts +32 -32
  31. package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +8 -0
  32. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
  33. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
  34. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +3 -29
  35. package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
  36. package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
  37. package/dist/_dts/api/src/sdkContracts.d.ts +3 -22
  38. package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
  39. package/dist/_dts/api/src/sdkThemeWire.d.ts +44 -44
  40. package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
  41. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +9 -5
  42. package/dist/_dts/api/src/siteOnboarding.d.ts +2 -9
  43. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -4
  44. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
  45. package/dist/_dts/api/src/siteSettings.d.ts +20 -7
  46. package/dist/_dts/api/src/types.d.ts +77 -77
  47. package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
  48. package/dist/_dts/billing/src/membership/index.d.ts +3 -0
  49. package/dist/_dts/billing/src/plans/types.d.ts +3 -0
  50. package/dist/_dts/billing/src/site-arrangements.d.ts +14 -3
  51. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +16 -4
  52. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
  53. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +5 -0
  54. package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
  55. package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
  56. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
  57. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
  58. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
  59. package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
  60. package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +2 -1
  61. package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
  62. package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
  63. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
  64. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  65. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
  66. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
  68. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +30 -6
  69. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -3
  70. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +43 -0
  71. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
  72. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
  73. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
  74. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
  75. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
  76. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
  78. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +10 -2
  79. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
  80. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
  81. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -6
  82. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
  83. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -0
  84. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +1 -0
  85. package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
  86. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
  87. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
  88. package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
  89. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
  90. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +27 -4
  91. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
  92. package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
  93. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -0
  94. package/dist/_dts/core/src/branded.d.ts +0 -8
  95. package/dist/_dts/core/src/index.d.ts +1 -0
  96. package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +1 -1
  97. package/dist/_dts/core/src/mailing-list-setup.d.ts +14 -1
  98. package/dist/_dts/core/src/mailing-list-submission.d.ts +7 -27
  99. package/dist/_dts/core/src/participants.d.ts +2 -29
  100. package/dist/_dts/core/src/public-experience.d.ts +4 -0
  101. package/dist/_dts/core/src/public-profile.d.ts +27 -1
  102. package/dist/_dts/core/src/site-route-target.d.ts +9 -2
  103. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +293 -606
  104. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
  105. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +3 -2
  106. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +3 -2
  107. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +3 -2
  108. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
  109. package/dist/_dts/sdk/src/public-api/contracts.d.ts +14 -20
  110. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
  111. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  112. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -1
  113. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
  114. package/dist/_dts/sdk/src/version.d.ts +1 -1
  115. package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
  116. package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
  117. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  118. package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
  119. package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
  120. package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
  121. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
  122. package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
  123. package/dist/_dts/theme-core/src/schema.d.ts +84 -84
  124. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
  125. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  126. package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
  127. package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
  128. package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
  129. package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
  130. package/dist/_dts/ui/src/pending-button.d.ts +10 -0
  131. package/dist/client/{BookingConsentAgreement-CZvTDtsK.mjs → BookingConsentAgreement-CuKa82V4.mjs} +4 -4
  132. package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-BbYieKWB.mjs} +1 -1
  133. package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-LTfR1Aby.mjs} +6 -6
  134. package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-DUHpYSuo.mjs} +2 -2
  135. package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-CHRupL6m.mjs} +1 -1
  136. package/dist/client/{accordion-FxF_ta47.mjs → accordion-6HiIFxNL.mjs} +1 -1
  137. package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-Dlmid43H.mjs} +7 -7
  138. package/dist/client/bookings.mjs +325 -140
  139. package/dist/client/{carousel-vng7fFT5.mjs → carousel-DmkZRRq_.mjs} +2 -2
  140. package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
  141. package/dist/client/{cart-DEPDsjNk.mjs → cart-CIC24330.mjs} +3 -3
  142. package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D1Zw9imo.mjs} +3 -3
  143. package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
  144. package/dist/client/client.mjs +1717 -882
  145. package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
  146. package/dist/client/{context-DvU_WUmd.mjs → context-Cy1OayHx.mjs} +6 -19
  147. package/dist/client/{dates-wnPMiRl5.mjs → dates-aDcfoLHr.mjs} +2 -2
  148. package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-FQxMPAjf.mjs} +8 -8
  149. package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-Dr3ac6Hb.mjs} +3 -3
  150. package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-D-AzUHFQ.mjs} +4 -4
  151. package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-B3XxBf3i.mjs} +3 -3
  152. package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-I6EaokFD.mjs} +500 -152
  153. package/dist/client/{form-CBKXN5In.mjs → form-BbWckVWY.mjs} +3 -3
  154. package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-C9qU4Y7x.mjs} +2 -2
  155. package/dist/client/hooks.mjs +445 -180
  156. package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-CLCShvlG.mjs} +3 -3
  157. package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
  158. package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-Briukxzi.mjs} +130 -87
  159. package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-Copadu-2.mjs} +1 -1
  160. package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-oujlRd-r.mjs} +3 -3
  161. package/dist/client/{productList-FM0cbUzj.mjs → productList-BRiIRUcd.mjs} +3 -3
  162. package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-CB2KS_ko.mjs} +130 -24
  163. package/dist/client/rendering/client.mjs +911 -400
  164. package/dist/client/rendering/islands.mjs +19 -19
  165. package/dist/client/rendering.mjs +1696 -818
  166. package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-B1IS1_ua.mjs} +1 -1
  167. package/dist/client/{shop-BIcjvy5a.mjs → shop-Vn6yNFED.mjs} +6 -6
  168. package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-BVTqipYp.mjs} +7 -7
  169. package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-BVnJVy7v.mjs} +1 -1
  170. package/dist/client/{shopShared-DowkXevB.mjs → shopShared-COIeK77T.mjs} +4 -4
  171. package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-DzIUcS9n.mjs} +7 -7
  172. package/dist/preview-next/before-render.mjs +119 -64
  173. package/dist/preview-next/client/runtime.mjs +4 -4
  174. package/dist/preview-next/keepAlive.mjs +119 -64
  175. package/dist/preview-next/middleware.mjs +119 -64
  176. package/dist/{previewAuthStore-COUyAKaX.mjs → previewAuthStore-Gjb6r6vz.mjs} +119 -64
  177. package/dist/{sdk-runtime-D4k2LSGF.mjs → sdk-runtime-CnCLvZRv.mjs} +2 -2
  178. package/dist/{separator-UGtpag4Z.mjs → separator-DKDRJ1oH.mjs} +1 -1
  179. package/dist/server/components.mjs +787 -323
  180. package/dist/server/config-validation.mjs +328 -79
  181. package/dist/server/config.mjs +332 -83
  182. package/dist/server/data.mjs +441 -180
  183. package/dist/server/index.mjs +126 -66
  184. package/dist/server/next.mjs +1031 -595
  185. package/dist/server/page-converter.mjs +183 -74
  186. package/dist/server/prebuild.mjs +1 -1
  187. package/dist/server/rendering/server.mjs +1068 -592
  188. package/dist/server/rendering.mjs +802 -324
  189. package/dist/server/routing.mjs +506 -214
  190. package/dist/server/server.mjs +468 -244
  191. package/dist/server/theme-bridge.mjs +433 -100
  192. package/dist/server/theme.mjs +8 -2
  193. package/dist/styles/index.css +237 -43
  194. package/package.json +1 -1
  195. package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
  196. package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
@@ -564,7 +564,7 @@ function parseUuidBrand(value, unsafeConstructor) {
564
564
  if (!UUID_PATTERN$1.test(normalized)) return err$1({ kind: "invalid_uuid" });
565
565
  return ok$1(unsafeConstructor(normalized));
566
566
  }
567
- var UUID_PATTERN$1, unsafeAsSiteId, unsafeAsApiKeyId, unsafeAsEventOfferingId, unsafeAsEventSeriesId, unsafeAsStorageBucketName, unsafeAsPositiveByteCount$1, unsafeAsPositiveSeconds, unsafeAsUserId, parseSiteId, parseApiKeyId, parseEventOfferingId, parseUserId, parseEventSeriesId;
567
+ var UUID_PATTERN$1, unsafeAsSiteId, unsafeAsApiKeyId, unsafeAsEventOfferingId, unsafeAsEventSeriesId, unsafeAsStorageBucketName, unsafeAsPositiveByteCount$1, unsafeAsPositiveSeconds, unsafeAsUserId, unsafeAsContentVersionId, parseSiteId, parseApiKeyId, parseEventOfferingId, parseUserId, parseContentVersionId, parseEventSeriesId;
568
568
  var init_branded = __esmMin((() => {
569
569
  init_result();
570
570
  UUID_PATTERN$1 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -576,10 +576,12 @@ var init_branded = __esmMin((() => {
576
576
  unsafeAsPositiveByteCount$1 = (value) => value;
577
577
  unsafeAsPositiveSeconds = (value) => value;
578
578
  unsafeAsUserId = (id) => id;
579
+ unsafeAsContentVersionId = (id) => id;
579
580
  parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
580
581
  parseApiKeyId = (value) => parseUuidBrand(value, unsafeAsApiKeyId);
581
582
  parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
582
583
  parseUserId = (value) => parseUuidBrand(value, unsafeAsUserId);
584
+ parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
583
585
  parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
584
586
  }));
585
587
  //#endregion
@@ -851,7 +853,7 @@ function parseEventPageSurfaceDestinationMode(value) {
851
853
  return value === "cms-managed" || value === "system-managed" ? value : void 0;
852
854
  }
853
855
  function parseEventPageSurfaceSubject(value) {
854
- if (!isRecord$15(value)) return err$1({ kind: "notObject" });
856
+ if (!isRecord$16(value)) return err$1({ kind: "notObject" });
855
857
  switch (value.kind) {
856
858
  case "eventSeries": {
857
859
  const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
@@ -906,7 +908,7 @@ function parseEventSeriesIdList(values) {
906
908
  }
907
909
  return ok$1(parsed);
908
910
  }
909
- function isRecord$15(value) {
911
+ function isRecord$16(value) {
910
912
  return typeof value === "object" && value !== null && !Array.isArray(value);
911
913
  }
912
914
  var init_event_page_surface_subject = __esmMin((() => {
@@ -1150,6 +1152,9 @@ var init_public_url_validation = __esmMin((() => {}));
1150
1152
  //#region ../core/src/public-profile.ts
1151
1153
  var init_public_profile = __esmMin((() => {}));
1152
1154
  //#endregion
1155
+ //#region ../core/src/public-experience.ts
1156
+ var init_public_experience = __esmMin((() => {}));
1157
+ //#endregion
1153
1158
  //#region ../core/src/rich-text.ts
1154
1159
  var init_rich_text = __esmMin((() => {}));
1155
1160
  //#endregion
@@ -1191,12 +1196,18 @@ function parsePositiveInteger(value) {
1191
1196
  function parseNewsletterListId(value) {
1192
1197
  return parseTrimmedMatchingString(value, UUID_PATTERN);
1193
1198
  }
1199
+ function parseMailchimpAccountId(value) {
1200
+ return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
1201
+ }
1194
1202
  function parseMailchimpAudienceId(value) {
1195
1203
  return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
1196
1204
  }
1197
1205
  function parseMailchimpInterestId(value) {
1198
1206
  return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
1199
1207
  }
1208
+ function parseBrevoAccountId(value) {
1209
+ return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
1210
+ }
1200
1211
  function parseBrevoListId(value) {
1201
1212
  return parsePositiveInteger(value);
1202
1213
  }
@@ -1207,7 +1218,34 @@ var init_mailing_list_identifiers = __esmMin((() => {
1207
1218
  }));
1208
1219
  //#endregion
1209
1220
  //#region ../core/src/mailing-list-setup.ts
1210
- var init_mailing_list_setup = __esmMin((() => {}));
1221
+ function isRecord$15(value) {
1222
+ return typeof value === "object" && value !== null && !Array.isArray(value);
1223
+ }
1224
+ function parseMailingListProviderScope(value) {
1225
+ if (!isRecord$15(value)) return err$1("invalid_mailing_list_provider_scope");
1226
+ if (value.provider === "native") return ok$1({ provider: "native" });
1227
+ if (value.provider === "brevo") {
1228
+ const accountId = parseBrevoAccountId(value.accountId);
1229
+ return accountId !== null ? ok$1({
1230
+ provider: "brevo",
1231
+ accountId
1232
+ }) : err$1("invalid_mailing_list_provider_scope");
1233
+ }
1234
+ if (value.provider === "mailchimp") {
1235
+ const accountId = parseMailchimpAccountId(value.accountId);
1236
+ return accountId !== null ? ok$1({
1237
+ provider: "mailchimp",
1238
+ accountId
1239
+ }) : err$1("invalid_mailing_list_provider_scope");
1240
+ }
1241
+ return err$1("invalid_mailing_list_provider_scope");
1242
+ }
1243
+ var DEFAULT_MAILING_LIST_SUCCESS_MESSAGE;
1244
+ var init_mailing_list_setup = __esmMin((() => {
1245
+ init_mailing_list_identifiers();
1246
+ init_result();
1247
+ DEFAULT_MAILING_LIST_SUCCESS_MESSAGE = "Thanks — you're on the list.";
1248
+ }));
1211
1249
  //#endregion
1212
1250
  //#region ../core/src/mailing-list-setup-parser.ts
1213
1251
  function parseMailingListGlobalForm(value) {
@@ -1217,12 +1255,15 @@ function parseMailingListGlobalForm(value) {
1217
1255
  if (typeof value.includeOptionalPhone !== "boolean") return formError("includeOptionalPhone");
1218
1256
  const buttonLabel = parseRequiredString(value.buttonLabel);
1219
1257
  if (buttonLabel === null) return formError("buttonLabel");
1258
+ const successMessage = parseRequiredString(value.successMessage);
1259
+ if (successMessage === null) return formError("successMessage");
1220
1260
  const privacyNote = parseOptionalString(value.privacyNote);
1221
1261
  if (privacyNote === void 0) return formError("privacyNote");
1222
1262
  return ok$1({
1223
1263
  fields,
1224
1264
  includeOptionalPhone: value.includeOptionalPhone,
1225
1265
  buttonLabel,
1266
+ successMessage,
1226
1267
  privacyNote
1227
1268
  });
1228
1269
  }
@@ -1565,14 +1606,22 @@ function parseMailingListSignedSourceToken(value) {
1565
1606
  const parsed = typeof value === "string" ? value.trim() : "";
1566
1607
  return /^[A-Za-z0-9._~-]{16,1000}$/u.test(parsed) ? parsed : null;
1567
1608
  }
1568
- function buildMailingListSignupBlockSourceRef(blockId) {
1569
- const parsed = parseMailingListBlockId(blockId);
1570
- return parsed !== null ? {
1609
+ function parseMailingListContentVersionId(value) {
1610
+ const parsed = parseContentVersionId(value);
1611
+ return parsed.ok ? parsed.value : null;
1612
+ }
1613
+ function buildMailingListSignupBlockSourceRef(blockId, contentVersionId) {
1614
+ const parsedBlockId = parseMailingListBlockId(blockId);
1615
+ const parsedContentVersionId = parseMailingListContentVersionId(contentVersionId);
1616
+ return parsedBlockId !== null && parsedContentVersionId !== null ? {
1571
1617
  tag: "block_ref",
1572
- blockId: parsed
1618
+ blockId: parsedBlockId,
1619
+ contentVersionId: parsedContentVersionId
1573
1620
  } : null;
1574
1621
  }
1575
- var init_mailing_list_submission = __esmMin((() => {}));
1622
+ var init_mailing_list_submission = __esmMin((() => {
1623
+ init_branded();
1624
+ }));
1576
1625
  //#endregion
1577
1626
  //#region ../core/src/number-input.ts
1578
1627
  var init_number_input = __esmMin((() => {}));
@@ -2086,6 +2135,7 @@ var init_src$4 = __esmMin((() => {
2086
2135
  init_participant_identity();
2087
2136
  init_public_url_validation();
2088
2137
  init_public_profile();
2138
+ init_public_experience();
2089
2139
  init_rich_text();
2090
2140
  init_footer_composition();
2091
2141
  init_footer_navigation_layout();
@@ -4125,82 +4175,125 @@ var init_classNames = __esmMin((() => {
4125
4175
  init_types$13();
4126
4176
  }));
4127
4177
  //#endregion
4128
- //#region ../theme-core/src/buttons/effects/presets/background.ts
4129
- function shadeBackgroundEffect(config) {
4130
- return {
4131
- id: config.id,
4132
- name: config.name,
4133
- description: config.description,
4134
- category: "background",
4135
- pseudoElement: "none",
4136
- applicableTo: ["button"],
4137
- customizableOption: {
4138
- name: "amount",
4139
- type: "select",
4140
- label: config.label,
4141
- default: 100,
4142
- options: [
4143
- 0,
4144
- 100,
4145
- 200,
4146
- 300,
4147
- 400,
4148
- 500,
4149
- 600,
4150
- 700,
4151
- 800,
4152
- 900
4153
- ]
4178
+ //#region ../theme-core/src/tokens/tokens.ts
4179
+ var defaultThemeTokens;
4180
+ var init_tokens$1 = __esmMin((() => {
4181
+ defaultThemeTokens = {
4182
+ color: {
4183
+ "background/base": "#ffffff",
4184
+ "background/elevated": "#f5f5f5",
4185
+ "surface/base": "#ffffff",
4186
+ "surface/subtle": "#f9f9fb",
4187
+ "surface/inverted": "#111111",
4188
+ "content/primary": "#111111",
4189
+ "content/secondary": "#3f3f46",
4190
+ "accent/primary": "#2563eb",
4191
+ "accent/secondary": "#1d4ed8",
4192
+ "border/base": "#e5e7eb"
4154
4193
  },
4155
- isApplicable: (buttonConfig) => buttonConfig.background.type === "solid",
4156
- generateCSS: ({ themeId, variantId, options, tokens, buttonConfig }) => {
4157
- if (buttonConfig.background.type !== "solid") return "";
4158
- const amount = (options.amount || 100) * config.shadeDirection;
4159
- const baseToken = buttonConfig.background.colorToken ?? "primary-500";
4160
- return `
4161
- :where([data-theme-scope="${themeId}"]) .${variantId}:hover {
4162
- background-color: ${tokens.getColor(tokens.adjustShade(baseToken, amount))};
4163
- }
4164
- `;
4194
+ typography: {
4195
+ "display/hero": {
4196
+ fontSize: "clamp(48px, 8vw, 96px)",
4197
+ lineHeight: "1.05",
4198
+ fontWeight: "700"
4199
+ },
4200
+ "display/section": {
4201
+ fontSize: "clamp(40px, 6vw, 72px)",
4202
+ lineHeight: "1.1",
4203
+ fontWeight: "700"
4204
+ },
4205
+ "heading/large": {
4206
+ fontSize: "clamp(32px, 4vw, 48px)",
4207
+ lineHeight: "1.2",
4208
+ fontWeight: "600"
4209
+ },
4210
+ "heading/medium": {
4211
+ fontSize: "clamp(24px, 3vw, 32px)",
4212
+ lineHeight: "1.25",
4213
+ fontWeight: "600"
4214
+ },
4215
+ "heading/small": {
4216
+ fontSize: "20px",
4217
+ lineHeight: "1.3",
4218
+ fontWeight: "600"
4219
+ },
4220
+ "body/normal": {
4221
+ fontSize: "16px",
4222
+ lineHeight: "1.6",
4223
+ fontWeight: "400"
4224
+ },
4225
+ "body/small": {
4226
+ fontSize: "14px",
4227
+ lineHeight: "1.5",
4228
+ fontWeight: "400"
4229
+ },
4230
+ caption: {
4231
+ fontSize: "12px",
4232
+ lineHeight: "1.4",
4233
+ fontWeight: "500"
4234
+ }
4235
+ },
4236
+ spacing: {
4237
+ none: "0px",
4238
+ "3xs": "4px",
4239
+ "2xs": "8px",
4240
+ xs: "12px",
4241
+ sm: "16px",
4242
+ md: "24px",
4243
+ lg: "32px",
4244
+ xl: "40px",
4245
+ "2xl": "56px",
4246
+ "3xl": "72px"
4247
+ },
4248
+ radius: {
4249
+ none: "0px",
4250
+ xs: "2px",
4251
+ sm: "4px",
4252
+ md: "8px",
4253
+ lg: "12px",
4254
+ pill: "999px",
4255
+ full: "9999px"
4256
+ },
4257
+ shadow: {
4258
+ none: "none",
4259
+ soft: "0px 2px 8px rgba(15, 23, 42, 0.08)",
4260
+ medium: "0px 6px 18px rgba(15, 23, 42, 0.12)",
4261
+ strong: "0px 12px 36px rgba(15, 23, 42, 0.16)"
4262
+ },
4263
+ palette: {
4264
+ surface: "#ffffff",
4265
+ "neutral-50": "#f9fafb",
4266
+ "neutral-900": "#111827",
4267
+ primary: "#2563eb",
4268
+ "primary-50": "#eff6ff",
4269
+ "primary-500": "#2563eb",
4270
+ "primary-900": "#1d4ed8",
4271
+ secondary: "#9333ea",
4272
+ "secondary-50": "#f3e8ff",
4273
+ "secondary-500": "#9333ea",
4274
+ "secondary-900": "#4c1d95",
4275
+ accent: "#f97316",
4276
+ "accent-50": "#fff7ed",
4277
+ "accent-500": "#f97316",
4278
+ "accent-900": "#7c2d12"
4165
4279
  }
4166
4280
  };
4167
- }
4168
- var init_background$3 = __esmMin((() => {
4169
- shadeBackgroundEffect({
4170
- id: "darken-background",
4171
- name: "Darken on Hover",
4172
- description: "Darkens the background color on hover",
4173
- label: "Darken Amount (shade step)",
4174
- shadeDirection: 1
4175
- });
4176
- shadeBackgroundEffect({
4177
- id: "lighten-background",
4178
- name: "Lighten on Hover",
4179
- description: "Lightens the background color on hover",
4180
- label: "Lighten Amount (shade step)",
4181
- shadeDirection: -1
4182
- });
4183
4281
  }));
4184
4282
  //#endregion
4185
- //#region ../theme-core/src/buttons/effects/registry.ts
4186
- var init_registry$8 = __esmMin((() => {
4187
- init_background$3();
4188
- init_effectClassification();
4189
- }));
4190
- //#endregion
4191
- //#region ../theme-core/src/interactive/generateEffectsCSS.ts
4192
- var init_generateEffectsCSS = __esmMin((() => {
4193
- init_registry$8();
4283
+ //#region ../theme-core/src/tokens/index.ts
4284
+ var init_tokens = __esmMin((() => {
4285
+ init_tokens$1();
4286
+ init_blockColorTokens();
4287
+ init_themeColorTokens();
4288
+ init_colorTokenParts();
4289
+ init_resolver$2();
4194
4290
  }));
4195
4291
  //#endregion
4196
- //#region ../theme-core/src/buttons/generateDefaultButtonSystem.ts
4197
- var init_generateDefaultButtonSystem = __esmMin((() => {
4198
- init_types$13();
4292
+ //#region ../theme-core/src/surfaces/foregroundInteraction.ts
4293
+ var init_foregroundInteraction = __esmMin((() => {
4294
+ init_tokens();
4199
4295
  }));
4200
4296
  //#endregion
4201
- //#region ../theme-core/src/buttons/affordanceIcons.ts
4202
- var init_affordanceIcons = __esmMin((() => {}));
4203
- //#endregion
4204
4297
  //#region ../theme-core/src/palette/utils/opaqueSurfaceColor.ts
4205
4298
  /** Resolve an opaque colour, compositing alpha against an explicit underlay. */
4206
4299
  function resolveOpaqueSurfaceHex(reference, palette, underlayReference) {
@@ -4405,6 +4498,7 @@ var init_resolveSurfaceForeground = __esmMin((() => {
4405
4498
  //#region ../theme-core/src/surfaces/index.ts
4406
4499
  var init_surfaces = __esmMin((() => {
4407
4500
  init_foregroundContract();
4501
+ init_foregroundInteraction();
4408
4502
  init_foregroundRoles();
4409
4503
  init_resolveSurfaceForeground();
4410
4504
  }));
@@ -4510,6 +4604,87 @@ var init_colorStyles = __esmMin((() => {
4510
4604
  };
4511
4605
  }));
4512
4606
  //#endregion
4607
+ //#region ../theme-core/src/tokens/resolver.ts
4608
+ var init_resolver$2 = __esmMin((() => {
4609
+ init_colorStyles();
4610
+ }));
4611
+ //#endregion
4612
+ //#region ../theme-core/src/buttons/effects/presets/background.ts
4613
+ function shadeBackgroundEffect(config) {
4614
+ return {
4615
+ id: config.id,
4616
+ name: config.name,
4617
+ description: config.description,
4618
+ category: "background",
4619
+ pseudoElement: "none",
4620
+ applicableTo: ["button"],
4621
+ customizableOption: {
4622
+ name: "amount",
4623
+ type: "select",
4624
+ label: config.label,
4625
+ default: 100,
4626
+ options: [
4627
+ 0,
4628
+ 100,
4629
+ 200,
4630
+ 300,
4631
+ 400,
4632
+ 500,
4633
+ 600,
4634
+ 700,
4635
+ 800,
4636
+ 900
4637
+ ]
4638
+ },
4639
+ isApplicable: (buttonConfig) => buttonConfig.background.type === "solid",
4640
+ generateCSS: ({ themeId, variantId, options, tokens, buttonConfig }) => {
4641
+ if (buttonConfig.background.type !== "solid") return "";
4642
+ const amount = (options.amount || 100) * config.shadeDirection;
4643
+ const baseToken = buttonConfig.background.colorToken ?? "primary-500";
4644
+ return `
4645
+ :where([data-theme-scope="${themeId}"]) .${variantId}:hover {
4646
+ background-color: ${tokens.getColor(tokens.adjustShade(baseToken, amount))};
4647
+ }
4648
+ `;
4649
+ }
4650
+ };
4651
+ }
4652
+ var init_background$3 = __esmMin((() => {
4653
+ shadeBackgroundEffect({
4654
+ id: "darken-background",
4655
+ name: "Darken on Hover",
4656
+ description: "Darkens the background color on hover",
4657
+ label: "Darken Amount (shade step)",
4658
+ shadeDirection: 1
4659
+ });
4660
+ shadeBackgroundEffect({
4661
+ id: "lighten-background",
4662
+ name: "Lighten on Hover",
4663
+ description: "Lightens the background color on hover",
4664
+ label: "Lighten Amount (shade step)",
4665
+ shadeDirection: -1
4666
+ });
4667
+ }));
4668
+ //#endregion
4669
+ //#region ../theme-core/src/buttons/effects/registry.ts
4670
+ var init_registry$8 = __esmMin((() => {
4671
+ init_background$3();
4672
+ init_effectClassification();
4673
+ }));
4674
+ //#endregion
4675
+ //#region ../theme-core/src/interactive/generateEffectsCSS.ts
4676
+ var init_generateEffectsCSS = __esmMin((() => {
4677
+ init_registry$8();
4678
+ }));
4679
+ //#endregion
4680
+ //#region ../theme-core/src/buttons/generateDefaultButtonSystem.ts
4681
+ var init_generateDefaultButtonSystem = __esmMin((() => {
4682
+ init_types$13();
4683
+ }));
4684
+ //#endregion
4685
+ //#region ../theme-core/src/buttons/affordanceIcons.ts
4686
+ var init_affordanceIcons = __esmMin((() => {}));
4687
+ //#endregion
4513
4688
  //#region ../theme-core/src/utils/tokenOrColor.ts
4514
4689
  function isCssColorLiteral(value) {
4515
4690
  const trimmed = value.trim();
@@ -4947,6 +5122,7 @@ var init_resolvedButtonCss = __esmMin((() => {
4947
5122
  var init_generateButtonCss = __esmMin((() => {
4948
5123
  init_types$13();
4949
5124
  init_classNames();
5125
+ init_resolver$2();
4950
5126
  init_generateEffectsCSS();
4951
5127
  init_generateDefaultButtonSystem();
4952
5128
  init_resolveButtonColourStates();
@@ -6995,6 +7171,7 @@ var init_roles = __esmMin((() => {
6995
7171
  //#endregion
6996
7172
  //#region ../theme-core/src/cards/generateCardCss.ts
6997
7173
  var init_generateCardCss = __esmMin((() => {
7174
+ init_resolver$2();
6998
7175
  init_roles();
6999
7176
  init_types$12();
7000
7177
  init_surfaces();
@@ -8903,15 +9080,34 @@ var init_bookingConsent = __esmMin((() => {
8903
9080
  checkboxLabel: z.string().min(1)
8904
9081
  });
8905
9082
  z.union([blockBookingConsentSchema, bookingRequirementConsentFieldSchema]);
8906
- }));
8907
- //#endregion
8908
- //#region ../blocks/src/system/blocks/events/shared/schemas.ts
8909
- var eventPresetSchema, eventScheduleScopeSchema$2, publicEventRecurrenceSchema, eventDestinationModeSchema, publicEventDestinationSchema, eventVenueSchema, eventCategorySchema, accessRestrictionSchema, publicCurrencySchema, publicCentsSchema, publicPositiveCentsSchema, publicIsoDateTimeSchema, publicEventAttendanceModeSchema, publicEventAttendanceModeAvailabilitySchema, publicEventPricingOptionAvailabilitySchema, publicEventPricingOptionSchema, publicEventPricingSchema, publicTeamMemberSummarySchema, publicEventBookingAvailabilitySchema, publicRunSessionSchema, publicWholeSeriesRunSchema, publicEventBaseSchema, publicEventSchema, publicEventsArraySchema;
9083
+ })), publicEventLoaderQuerySchemaShape, eventPresetSchema, eventScheduleScopeSchema$2, publicEventRecurrenceSchema, eventDestinationModeSchema, publicEventDestinationSchema, eventVenueSchema, eventCategorySchema, accessRestrictionSchema, publicCurrencySchema, publicCentsSchema, publicPositiveCentsSchema, publicIsoDateTimeSchema, publicEventAttendanceModeSchema, publicEventAttendanceModeAvailabilitySchema, publicEventPricingOptionAvailabilitySchema, publicEventPricingOptionSchema, publicEventPricingSchema, publicTeamMemberSummarySchema, publicEventBookingAvailabilitySchema, publicRunSessionSchema, publicWholeSeriesRunSchema, publicEventBaseSchema, publicEventSchema, publicEventsArraySchema;
8910
9084
  var init_schemas = __esmMin((() => {
8911
9085
  init_media$3();
8912
9086
  init_richTextSchema();
8913
9087
  init_bookingPaymentTerms();
8914
9088
  init_bookingConsent();
9089
+ publicEventLoaderQuerySchemaShape = {
9090
+ limit: z.string().optional(),
9091
+ from: z.string().optional(),
9092
+ to: z.string().optional(),
9093
+ afterStartsAt: z.string().optional(),
9094
+ afterId: z.string().optional(),
9095
+ categoryIds: z.string().optional(),
9096
+ venueId: z.string().optional(),
9097
+ staffMemberId: z.string().optional(),
9098
+ eventSurface: z.string().optional(),
9099
+ eventPresets: z.string().optional(),
9100
+ scheduleScope: z.string().optional(),
9101
+ seriesId: z.string().optional(),
9102
+ seriesIds: z.string().optional(),
9103
+ runSeriesId: z.string().optional(),
9104
+ seriesSlug: z.string().optional(),
9105
+ includeOccurrenceId: z.string().optional(),
9106
+ readIntent: z.string().optional(),
9107
+ detailLevel: z.string().optional(),
9108
+ readProfile: z.string().optional()
9109
+ };
9110
+ z.object(publicEventLoaderQuerySchemaShape);
8915
9111
  eventPresetSchema = z.enum([
8916
9112
  "event",
8917
9113
  "class",
@@ -10774,6 +10970,14 @@ var init_publicBookingAvailabilityEndpointDefinitions = __esmMin((() => {
10774
10970
  auth: "public",
10775
10971
  responseKind: "json"
10776
10972
  },
10973
+ getPublicBookingServiceBySlug: {
10974
+ path: "/public/bookings/services/by-slug/{slug}",
10975
+ method: "GET",
10976
+ revalidate: publicReadFreshnessSeconds("getPublicBookingService"),
10977
+ tags: [TAG_TEMPLATES.publicBookingServices],
10978
+ auth: "public",
10979
+ responseKind: "json"
10980
+ },
10777
10981
  getPublicBookingResourcesReference: {
10778
10982
  path: "/public/bookings/resources/reference",
10779
10983
  method: "GET",
@@ -11344,6 +11548,99 @@ var init_publicReadEndpointDefinitions = __esmMin((() => {
11344
11548
  }
11345
11549
  });
11346
11550
  }));
11551
+ //#endregion
11552
+ //#region ../api/src/publicOnboardingAttemptEndpointDefinitions.ts
11553
+ var PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS;
11554
+ var init_publicOnboardingAttemptEndpointDefinitions = __esmMin((() => {
11555
+ init_defineEndpointDefinitions();
11556
+ PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
11557
+ createPublicOnboardingAttempt: {
11558
+ path: "/public/onboarding/attempts",
11559
+ method: "POST",
11560
+ auth: "public",
11561
+ errors: [],
11562
+ responseKind: "json"
11563
+ },
11564
+ createPublicOnboardingLogoUploadUrl: {
11565
+ path: "/public/onboarding/attempts/{attemptToken}/logo-upload-url",
11566
+ method: "POST",
11567
+ auth: "public",
11568
+ errors: [],
11569
+ responseKind: "json"
11570
+ },
11571
+ uploadPublicOnboardingLogo: {
11572
+ path: "/public/onboarding/attempts/{attemptToken}/logo",
11573
+ method: "POST",
11574
+ auth: "public",
11575
+ errors: [],
11576
+ responseKind: "json"
11577
+ },
11578
+ getPublicOnboardingAttempt: {
11579
+ path: "/public/onboarding/attempts/{attemptToken}",
11580
+ method: "GET",
11581
+ auth: "public",
11582
+ errors: [],
11583
+ responseKind: "json"
11584
+ },
11585
+ getPublicOnboardingAttemptProgress: {
11586
+ path: "/public/onboarding/attempts/{attemptToken}/status",
11587
+ method: "GET",
11588
+ auth: "public",
11589
+ errors: [],
11590
+ responseKind: "json"
11591
+ },
11592
+ updatePublicOnboardingAttempt: {
11593
+ path: "/public/onboarding/attempts/{attemptToken}",
11594
+ method: "PATCH",
11595
+ auth: "public",
11596
+ errors: [],
11597
+ responseKind: "json"
11598
+ },
11599
+ runPublicOnboardingAttempt: {
11600
+ path: "/public/onboarding/attempts/{attemptToken}/run",
11601
+ method: "POST",
11602
+ auth: "public",
11603
+ errors: [],
11604
+ responseKind: "json"
11605
+ },
11606
+ resendPublicOnboardingAttemptConfirmation: {
11607
+ path: "/public/onboarding/attempts/{attemptToken}/resend-confirmation",
11608
+ method: "POST",
11609
+ auth: "public",
11610
+ errors: [],
11611
+ responseKind: "json"
11612
+ }
11613
+ });
11614
+ }));
11615
+ //#endregion
11616
+ //#region ../api/src/billingEndpointDefinitions.ts
11617
+ var BILLING_ENDPOINT_DEFINITIONS;
11618
+ var init_billingEndpointDefinitions = __esmMin((() => {
11619
+ init_defineEndpointDefinitions();
11620
+ BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
11621
+ adminChangePlan: {
11622
+ path: "/admin/billing/plan",
11623
+ method: "POST",
11624
+ tags: ["admin", "billing"],
11625
+ auth: "admin",
11626
+ responseKind: "json"
11627
+ },
11628
+ changePlan: {
11629
+ path: "/billing/plan/change",
11630
+ method: "POST",
11631
+ tags: ["billing"],
11632
+ auth: "user",
11633
+ responseKind: "json"
11634
+ },
11635
+ createBillingPortalSession: {
11636
+ path: "/billing/portal/session",
11637
+ method: "POST",
11638
+ tags: ["billing"],
11639
+ auth: "user",
11640
+ responseKind: "json"
11641
+ }
11642
+ });
11643
+ }));
11347
11644
  var init_endpoints = __esmMin((() => {
11348
11645
  init_demoMutationPolicies();
11349
11646
  init_cache_tags();
@@ -11361,16 +11658,20 @@ var init_endpoints = __esmMin((() => {
11361
11658
  init_sdkEndpointDefinitions();
11362
11659
  init_sdkMediaEndpointDefinitions();
11363
11660
  init_publicReadEndpointDefinitions();
11661
+ init_publicOnboardingAttemptEndpointDefinitions();
11662
+ init_billingEndpointDefinitions();
11364
11663
  ({
11365
11664
  ...ACCOUNT_ENDPOINT_DEFINITIONS,
11665
+ ...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
11366
11666
  ...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
11367
11667
  ...GIFTING_ENDPOINT_DEFINITIONS,
11368
- ...PUBLIC_READ_ENDPOINT_DEFINITIONS
11668
+ ...PUBLIC_READ_ENDPOINT_DEFINITIONS,
11669
+ ...BILLING_ENDPOINT_DEFINITIONS
11369
11670
  }), TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, { ...SITE_API_KEY_ENDPOINT_DEFINITIONS }, TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteEmailSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteEmailSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteEmailSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteEmailSettings, {
11370
11671
  ...NEWSLETTER_ENDPOINT_DEFINITIONS,
11371
11672
  ...APPOINTMENT_ENDPOINT_DEFINITIONS,
11372
11673
  ...EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS
11373
- }, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteById, TAG_TEMPLATES.siteBySlug, TAG_TEMPLATES.siteByDomain, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteById, TAG_TEMPLATES.siteBySlug, TAG_TEMPLATES.siteByDomain, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.workflowRunById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.routeById, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.navigationItemById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.navigationItemById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRedirects, TAG_TEMPLATES.siteRouteOutcomes, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRedirects, TAG_TEMPLATES.siteRouteOutcomes, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug, TAG_TEMPLATES.siteForms, { ...PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS }, TAG_TEMPLATES.publicEventFilters, TAG_TEMPLATES.publicEvents, TAG_TEMPLATES.publicShop, TAG_TEMPLATES.publicCheckout, TAG_TEMPLATES.siteRoutableContent, { ...PUBLIC_EVENT_CHECKOUT_ENDPOINT_DEFINITIONS }, TAG_TEMPLATES.publicEvents, TAG_TEMPLATES.publicEvents, { ...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS }, { ...SDK_MEDIA_ENDPOINT_DEFINITIONS }, { ...SDK_ENDPOINT_DEFINITIONS }, { ...SDK_ENTRY_READ_ENDPOINTS };
11674
+ }, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteById, TAG_TEMPLATES.siteBySlug, TAG_TEMPLATES.siteByDomain, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteById, TAG_TEMPLATES.siteBySlug, TAG_TEMPLATES.siteByDomain, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.workflowRunById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.routeById, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.navigationItemById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.navigationItemById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation, TAG_TEMPLATES.navigationMenuById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteSettings, TAG_TEMPLATES.publicEvents, TAG_TEMPLATES.publicBookingServices, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRedirects, TAG_TEMPLATES.siteRouteOutcomes, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteRedirects, TAG_TEMPLATES.siteRouteOutcomes, TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug, TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug, TAG_TEMPLATES.siteForms, { ...PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS }, TAG_TEMPLATES.publicEventFilters, TAG_TEMPLATES.publicEvents, TAG_TEMPLATES.publicShop, TAG_TEMPLATES.publicCheckout, TAG_TEMPLATES.siteRoutableContent, { ...PUBLIC_EVENT_CHECKOUT_ENDPOINT_DEFINITIONS }, TAG_TEMPLATES.publicEvents, TAG_TEMPLATES.publicEvents, { ...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS }, { ...SDK_MEDIA_ENDPOINT_DEFINITIONS }, { ...SDK_ENDPOINT_DEFINITIONS }, { ...SDK_ENTRY_READ_ENDPOINTS };
11374
11675
  }));
11375
11676
  var init_preview_auth = __esmMin((() => {
11376
11677
  z.object({ refreshToken: z.string().min(1).max(4096) }).strict();
@@ -15014,119 +15315,6 @@ var init_blockFlow = __esmMin((() => {
15014
15315
  init_types$7();
15015
15316
  }));
15016
15317
  //#endregion
15017
- //#region ../theme-core/src/tokens/tokens.ts
15018
- var defaultThemeTokens;
15019
- var init_tokens$1 = __esmMin((() => {
15020
- defaultThemeTokens = {
15021
- color: {
15022
- "background/base": "#ffffff",
15023
- "background/elevated": "#f5f5f5",
15024
- "surface/base": "#ffffff",
15025
- "surface/subtle": "#f9f9fb",
15026
- "surface/inverted": "#111111",
15027
- "content/primary": "#111111",
15028
- "content/secondary": "#3f3f46",
15029
- "accent/primary": "#2563eb",
15030
- "accent/secondary": "#1d4ed8",
15031
- "border/base": "#e5e7eb"
15032
- },
15033
- typography: {
15034
- "display/hero": {
15035
- fontSize: "clamp(48px, 8vw, 96px)",
15036
- lineHeight: "1.05",
15037
- fontWeight: "700"
15038
- },
15039
- "display/section": {
15040
- fontSize: "clamp(40px, 6vw, 72px)",
15041
- lineHeight: "1.1",
15042
- fontWeight: "700"
15043
- },
15044
- "heading/large": {
15045
- fontSize: "clamp(32px, 4vw, 48px)",
15046
- lineHeight: "1.2",
15047
- fontWeight: "600"
15048
- },
15049
- "heading/medium": {
15050
- fontSize: "clamp(24px, 3vw, 32px)",
15051
- lineHeight: "1.25",
15052
- fontWeight: "600"
15053
- },
15054
- "heading/small": {
15055
- fontSize: "20px",
15056
- lineHeight: "1.3",
15057
- fontWeight: "600"
15058
- },
15059
- "body/normal": {
15060
- fontSize: "16px",
15061
- lineHeight: "1.6",
15062
- fontWeight: "400"
15063
- },
15064
- "body/small": {
15065
- fontSize: "14px",
15066
- lineHeight: "1.5",
15067
- fontWeight: "400"
15068
- },
15069
- caption: {
15070
- fontSize: "12px",
15071
- lineHeight: "1.4",
15072
- fontWeight: "500"
15073
- }
15074
- },
15075
- spacing: {
15076
- none: "0px",
15077
- "3xs": "4px",
15078
- "2xs": "8px",
15079
- xs: "12px",
15080
- sm: "16px",
15081
- md: "24px",
15082
- lg: "32px",
15083
- xl: "40px",
15084
- "2xl": "56px",
15085
- "3xl": "72px"
15086
- },
15087
- radius: {
15088
- none: "0px",
15089
- xs: "2px",
15090
- sm: "4px",
15091
- md: "8px",
15092
- lg: "12px",
15093
- pill: "999px",
15094
- full: "9999px"
15095
- },
15096
- shadow: {
15097
- none: "none",
15098
- soft: "0px 2px 8px rgba(15, 23, 42, 0.08)",
15099
- medium: "0px 6px 18px rgba(15, 23, 42, 0.12)",
15100
- strong: "0px 12px 36px rgba(15, 23, 42, 0.16)"
15101
- },
15102
- palette: {
15103
- surface: "#ffffff",
15104
- "neutral-50": "#f9fafb",
15105
- "neutral-900": "#111827",
15106
- primary: "#2563eb",
15107
- "primary-50": "#eff6ff",
15108
- "primary-500": "#2563eb",
15109
- "primary-900": "#1d4ed8",
15110
- secondary: "#9333ea",
15111
- "secondary-50": "#f3e8ff",
15112
- "secondary-500": "#9333ea",
15113
- "secondary-900": "#4c1d95",
15114
- accent: "#f97316",
15115
- "accent-50": "#fff7ed",
15116
- "accent-500": "#f97316",
15117
- "accent-900": "#7c2d12"
15118
- }
15119
- };
15120
- }));
15121
- //#endregion
15122
- //#region ../theme-core/src/tokens/index.ts
15123
- var init_tokens = __esmMin((() => {
15124
- init_tokens$1();
15125
- init_blockColorTokens();
15126
- init_themeColorTokens();
15127
- init_colorTokenParts();
15128
- }));
15129
- //#endregion
15130
15318
  //#region ../theme-core/src/site-styles/backgroundAppearance.ts
15131
15319
  function parseBackgroundAppearanceColorToken(value) {
15132
15320
  if (typeof value !== "string") return null;
@@ -19126,6 +19314,7 @@ var init_headerPreferencesPersistence = __esmMin((() => {
19126
19314
  //#endregion
19127
19315
  //#region ../theme-core/src/site-styles/headerOpeningForeground.ts
19128
19316
  var init_headerOpeningForeground = __esmMin((() => {
19317
+ init_foregroundInteraction();
19129
19318
  init_tokens();
19130
19319
  }));
19131
19320
  //#endregion
@@ -19559,6 +19748,7 @@ var init_legacyNavLinkStyle = __esmMin((() => {
19559
19748
  //#endregion
19560
19749
  //#region ../theme-core/src/header/generateHeaderCss.ts
19561
19750
  var init_generateHeaderCss = __esmMin((() => {
19751
+ init_resolver$2();
19562
19752
  init_generateNavLinkCSS();
19563
19753
  init_siteChromeNavPreferences();
19564
19754
  init_shared$4();
@@ -19577,6 +19767,7 @@ var init_header = __esmMin((() => {
19577
19767
  //#endregion
19578
19768
  //#region ../theme-core/src/footer/generateFooterCss.ts
19579
19769
  var init_generateFooterCss = __esmMin((() => {
19770
+ init_resolver$2();
19580
19771
  init_generateNavLinkCSS();
19581
19772
  init_presets$1();
19582
19773
  }));
@@ -20300,6 +20491,7 @@ var init_buildThemeRuntimeFromBridge = __esmMin((() => {
20300
20491
  init_core$1();
20301
20492
  init_core$2();
20302
20493
  init_status();
20494
+ init_typography$1();
20303
20495
  init_blocks$2();
20304
20496
  z.object({
20305
20497
  tokens: z.record(z.string(), z.string()),
@@ -35044,6 +35236,49 @@ var init_registrationEventAdapter = __esmMin((() => {
35044
35236
  init_runGrouping();
35045
35237
  }));
35046
35238
  //#endregion
35239
+ //#region ../blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.ts
35240
+ function resolveEventRegistrationEventSource(input) {
35241
+ if (input.wholeSeriesRunEvents != null) return {
35242
+ kind: "loaded",
35243
+ events: input.wholeSeriesRunEvents
35244
+ };
35245
+ if (input.events != null) return {
35246
+ kind: "loaded",
35247
+ events: input.events
35248
+ };
35249
+ return {
35250
+ kind: "unresolved",
35251
+ request: parseEventLoaderRecoveryRequest(input.failures?.wholeSeriesRunEvents ?? input.failures?.events)
35252
+ };
35253
+ }
35254
+ function parseEventLoaderRecoveryRequest(value) {
35255
+ const parsed = eventLoaderFailureSchema.safeParse(value);
35256
+ if (!parsed.success) return null;
35257
+ const { siteId: _siteId, stage, ...params } = parsed.data.params;
35258
+ return {
35259
+ ...params,
35260
+ stage: stage ?? "published"
35261
+ };
35262
+ }
35263
+ var _rawLimit, _rawEventSurface, _rawScheduleScope, _rawDetailLevel, stringEventQueryShape, eventRecoveryRequestSchema, eventLoaderFailureSchema;
35264
+ var init_eventSourceRecovery = __esmMin((() => {
35265
+ init_schemas();
35266
+ init_filtering();
35267
+ ({limit: _rawLimit, eventSurface: _rawEventSurface, scheduleScope: _rawScheduleScope, detailLevel: _rawDetailLevel, ...stringEventQueryShape} = publicEventLoaderQuerySchemaShape);
35268
+ eventRecoveryRequestSchema = z.object({
35269
+ ...stringEventQueryShape,
35270
+ limit: z.coerce.number().int().positive().optional(),
35271
+ eventSurface: z.enum(eventSurfaceScopeValues).optional(),
35272
+ scheduleScope: z.enum(eventScheduleScopeValues).optional(),
35273
+ detailLevel: z.enum(["full", "listing"]).optional(),
35274
+ stage: z.enum(["preview", "published"]).optional()
35275
+ });
35276
+ eventLoaderFailureSchema = z.object({
35277
+ endpoint: z.literal("listPublicEvents"),
35278
+ params: eventRecoveryRequestSchema.extend({ siteId: z.string().optional() })
35279
+ });
35280
+ }));
35281
+ //#endregion
35047
35282
  //#region ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
35048
35283
  function buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvents) {
35049
35284
  const selectedRun = resolveSelectedWholeSeriesRun(scopedSourceEvents);
@@ -35092,16 +35327,12 @@ function buildEventRegistrationShellStepLabels(source, scopedSourceEvents) {
35092
35327
  function toScopedEventRegistrationEvents(scopedSourceEvents) {
35093
35328
  return [...toRegistrationEvents(scopedSourceEvents), ...toWholeSeriesRegistrationEvents(scopedSourceEvents)];
35094
35329
  }
35095
- function scopeEventRegistrationSourceEvents(source) {
35096
- return resolveEventRegistrationScopedEvents(source.wholeSeriesRunEvents ?? source.events ?? [], {
35330
+ function scopeEventRegistrationSourceEvents(source, eventSource) {
35331
+ return resolveEventRegistrationScopedEvents(eventSource.kind === "loaded" ? eventSource.events : [], {
35097
35332
  occurrenceContext: source.occurrenceContext,
35098
35333
  subject: source.subject
35099
35334
  });
35100
35335
  }
35101
- function resolveLoadedEventRegistrationSourceEvents(source, scopedSourceEvents) {
35102
- if (source.events == null && source.wholeSeriesRunEvents == null) return null;
35103
- return [...scopedSourceEvents];
35104
- }
35105
35336
  /**
35106
35337
  * The one run this surface is registering for, when the scoped events describe
35107
35338
  * exactly one. More than one run means the visitor still has to choose.
@@ -35144,7 +35375,7 @@ function normalizeEventRegistrationEventInput(value) {
35144
35375
  function isRecord$6(value) {
35145
35376
  return typeof value === "object" && value !== null && !Array.isArray(value);
35146
35377
  }
35147
- var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, eventRegistrationPublicEventSchema, eventRegistrationHydrationSchemaShape, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationBlockRuntime;
35378
+ var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, eventRegistrationPublicEventSchema, eventRegistrationHydrationSchemaShape, eventRegistrationEventSourceSchema, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationBlockRuntime;
35148
35379
  var init_event_registration_interactive = __esmMin((() => {
35149
35380
  init_schemas();
35150
35381
  init_runGrouping();
@@ -35158,6 +35389,7 @@ var init_event_registration_interactive = __esmMin((() => {
35158
35389
  init_wizardSteps();
35159
35390
  init_registrationDerivations();
35160
35391
  init_registrationEventAdapter();
35392
+ init_eventSourceRecovery();
35161
35393
  EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = [
35162
35394
  "Date",
35163
35395
  "Tickets",
@@ -35174,8 +35406,6 @@ var init_event_registration_interactive = __esmMin((() => {
35174
35406
  eventRegistrationHydrationSchemaShape = {
35175
35407
  occurrenceContext: occurrenceContextSchema.optional(),
35176
35408
  subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
35177
- events: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
35178
- wholeSeriesRunEvents: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
35179
35409
  maxTickets: z.string().optional(),
35180
35410
  showVenue: z.boolean().optional(),
35181
35411
  showCapacity: z.boolean().optional(),
@@ -35187,12 +35417,22 @@ var init_event_registration_interactive = __esmMin((() => {
35187
35417
  sitePasses: publicPassProductCollectionSchema.nullable().optional(),
35188
35418
  siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
35189
35419
  };
35420
+ eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
35421
+ kind: z.literal("loaded"),
35422
+ events: z.array(eventRegistrationPublicEventSchema)
35423
+ }), z.object({
35424
+ kind: z.literal("unresolved"),
35425
+ request: eventRecoveryRequestSchema.nullable()
35426
+ })]);
35190
35427
  eventRegistrationSourceSchema = z.object({
35191
35428
  siteId: z.string().optional(),
35192
35429
  apiBaseUrl: z.string().optional(),
35193
35430
  portalToken: z.string().nullable().optional(),
35194
35431
  previewToken: z.string().nullable().optional(),
35195
35432
  ...eventRegistrationHydrationSchemaShape,
35433
+ events: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
35434
+ wholeSeriesRunEvents: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
35435
+ eventLoaderFailures: z.record(z.string(), z.unknown()).nullable().optional(),
35196
35436
  className: z.string().nullable().optional(),
35197
35437
  buttonText: z.string().nullable().optional(),
35198
35438
  maxTickets: z.string().nullable().optional(),
@@ -35213,7 +35453,10 @@ var init_event_registration_interactive = __esmMin((() => {
35213
35453
  titleText: z.string(),
35214
35454
  bodyText: z.string()
35215
35455
  })]);
35216
- eventRegistrationHydrationSchema = z.object(eventRegistrationHydrationSchemaShape);
35456
+ eventRegistrationHydrationSchema = z.object({
35457
+ ...eventRegistrationHydrationSchemaShape,
35458
+ eventSource: eventRegistrationEventSourceSchema
35459
+ });
35217
35460
  eventRegistrationRenderSchema = z.object({
35218
35461
  display: eventRegistrationDisplaySchema,
35219
35462
  hydration: eventRegistrationHydrationSchema
@@ -35232,14 +35475,21 @@ var init_event_registration_interactive = __esmMin((() => {
35232
35475
  render: createZodCodec(eventRegistrationRenderSchema)
35233
35476
  },
35234
35477
  buildRender: (source) => {
35235
- const scopedSourceEvents = scopeEventRegistrationSourceEvents(source);
35236
- const events = resolveLoadedEventRegistrationSourceEvents(source, scopedSourceEvents);
35478
+ const eventSource = resolveEventRegistrationEventSource({
35479
+ events: source.events,
35480
+ wholeSeriesRunEvents: source.wholeSeriesRunEvents,
35481
+ failures: source.eventLoaderFailures
35482
+ });
35483
+ const scopedSourceEvents = scopeEventRegistrationSourceEvents(source, eventSource);
35237
35484
  return {
35238
35485
  display: buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvents),
35239
35486
  hydration: {
35240
35487
  occurrenceContext: source.occurrenceContext ?? null,
35241
35488
  subject: source.subject ?? null,
35242
- events,
35489
+ eventSource: eventSource.kind === "loaded" ? {
35490
+ ...eventSource,
35491
+ events: [...scopedSourceEvents]
35492
+ } : eventSource,
35243
35493
  maxTickets: source.maxTickets ?? void 0,
35244
35494
  showVenue: source.showVenue,
35245
35495
  showCapacity: source.showCapacity,
@@ -35419,6 +35669,7 @@ var init_event_registration = __esmMin((() => {
35419
35669
  } },
35420
35670
  events: { $bind: { from: "data.events" } },
35421
35671
  wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
35672
+ loaderFailures: { $bind: { from: "$root.loaderFailures" } },
35422
35673
  sitePasses: { $bind: { from: "data.sitePasses" } },
35423
35674
  siteMemberships: { $bind: { from: "data.siteMemberships" } },
35424
35675
  stage: { $bind: {
@@ -42228,6 +42479,7 @@ function buildNewsletterDisplay(source) {
42228
42479
  fields: { preset: "emailOnly" },
42229
42480
  includeOptionalPhone: false,
42230
42481
  buttonLabel: "Subscribe",
42482
+ successMessage: DEFAULT_MAILING_LIST_SUCCESS_MESSAGE,
42231
42483
  privacyNote: null
42232
42484
  };
42233
42485
  const targeting = source.targeting ?? { mode: "default" };
@@ -42237,6 +42489,7 @@ function buildNewsletterDisplay(source) {
42237
42489
  availability: runtimeTargetingIsAvailable(context, targeting, choices) ? "ready" : "unavailable",
42238
42490
  className: source.className ?? null,
42239
42491
  buttonLabel: form.buttonLabel,
42492
+ successMessage: form.successMessage,
42240
42493
  buttonVariant: source.buttonVariant ?? "primary",
42241
42494
  privacyNote: form.privacyNote,
42242
42495
  fields: getGlobalFormFields(form),
@@ -42246,7 +42499,7 @@ function buildNewsletterDisplay(source) {
42246
42499
  function projectNewsletterFormHydrationTarget(source) {
42247
42500
  switch (source.source) {
42248
42501
  case "block": {
42249
- const sourceRef = buildMailingListSignupBlockSourceRef(source.blockId);
42502
+ const sourceRef = buildMailingListSignupBlockSourceRef(source.blockId, source.contentVersionId);
42250
42503
  if (sourceRef?.tag === "block_ref") return {
42251
42504
  tag: "block-source",
42252
42505
  sourceRef
@@ -42329,7 +42582,7 @@ function parseRequiredMailingListSignedSourceToken(value) {
42329
42582
  if (!parsed) throw new Error("Mailing-list signup signed source ref requires token");
42330
42583
  return parsed;
42331
42584
  }
42332
- var newsletterButtonVariantSchema, mailingListContextSchema, mailingListTargetingSchema, newsletterFieldSchema, mailingListSignupBlockIdSchema, signedMailingListSourceTokenSchema, newsletterSourceCommonSchema, newsletterSourceSchema, newsletterDisplaySchema, newsletterHydrationSchema, newsletterRenderSchema, newsletterFormBlockRuntime;
42585
+ var newsletterButtonVariantSchema, mailingListContextSchema, mailingListTargetingSchema, newsletterFieldSchema, mailingListSignupBlockIdSchema, mailingListContentVersionIdSchema, signedMailingListSourceTokenSchema, newsletterSourceCommonSchema, newsletterSourceSchema, newsletterDisplaySchema, newsletterHydrationSchema, newsletterRenderSchema, newsletterFormBlockRuntime;
42333
42586
  var init_newsletter_form_interactive = __esmMin((() => {
42334
42587
  init_src$4();
42335
42588
  init_islands();
@@ -42367,6 +42620,15 @@ var init_newsletter_form_interactive = __esmMin((() => {
42367
42620
  placeholder: z.string().optional()
42368
42621
  });
42369
42622
  mailingListSignupBlockIdSchema = z.string().trim().min(1).transform(parseRequiredMailingListSignupBlockId);
42623
+ mailingListContentVersionIdSchema = z.string().transform((value, ctx) => {
42624
+ const parsed = parseMailingListContentVersionId(value);
42625
+ if (parsed) return parsed;
42626
+ ctx.addIssue({
42627
+ code: z.ZodIssueCode.custom,
42628
+ message: "Invalid mailing-list content version ID"
42629
+ });
42630
+ return z.NEVER;
42631
+ });
42370
42632
  signedMailingListSourceTokenSchema = z.string().trim().min(1).transform(parseRequiredMailingListSignedSourceToken);
42371
42633
  newsletterSourceCommonSchema = z.object({
42372
42634
  siteId: z.string().optional(),
@@ -42380,7 +42642,8 @@ var init_newsletter_form_interactive = __esmMin((() => {
42380
42642
  newsletterSourceSchema = z.discriminatedUnion("source", [
42381
42643
  newsletterSourceCommonSchema.extend({
42382
42644
  source: z.literal("block"),
42383
- blockId: z.string().nullable().optional()
42645
+ blockId: z.string().nullable().optional(),
42646
+ contentVersionId: z.string().nullable().optional()
42384
42647
  }),
42385
42648
  newsletterSourceCommonSchema.extend({
42386
42649
  source: z.literal("signed-footer"),
@@ -42396,6 +42659,7 @@ var init_newsletter_form_interactive = __esmMin((() => {
42396
42659
  availability: z.enum(["ready", "unavailable"]),
42397
42660
  className: z.string().nullable(),
42398
42661
  buttonLabel: z.string(),
42662
+ successMessage: z.string(),
42399
42663
  buttonVariant: newsletterButtonVariantSchema,
42400
42664
  privacyNote: z.string().nullable(),
42401
42665
  fields: z.array(newsletterFieldSchema),
@@ -42410,7 +42674,8 @@ var init_newsletter_form_interactive = __esmMin((() => {
42410
42674
  tag: z.literal("block-source"),
42411
42675
  sourceRef: z.object({
42412
42676
  tag: z.literal("block_ref"),
42413
- blockId: mailingListSignupBlockIdSchema
42677
+ blockId: mailingListSignupBlockIdSchema,
42678
+ contentVersionId: mailingListContentVersionIdSchema
42414
42679
  }).nullable()
42415
42680
  }),
42416
42681
  z.object({
@@ -45271,8 +45536,12 @@ function shouldSkipResolvedLoader(input) {
45271
45536
  * ```
45272
45537
  */
45273
45538
  async function prefetchBlockData$1(page, context, options) {
45539
+ return (await prefetchBlockDataWithFailures(page, context, options)).resolvedData;
45540
+ }
45541
+ async function prefetchBlockDataWithFailures(page, context, options) {
45274
45542
  const { apiClient, isValidEndpoint, onError, getCustomBlockLoaders, getBlockDefinition: getBlockDefinition$1 = getBlockDefinition, resolveParamsBindings: resolveParamsBindings$1 = resolveParamsBindings } = options;
45275
45543
  const results = {};
45544
+ const loaderFailures = {};
45276
45545
  const tasks = [];
45277
45546
  for (const block of page.blocks) {
45278
45547
  const blockId = block.id;
@@ -45320,6 +45589,11 @@ async function prefetchBlockData$1(page, context, options) {
45320
45589
  const blockResults = results[blockId] ?? (results[blockId] = {});
45321
45590
  blockResults[key] = data;
45322
45591
  } catch (error) {
45592
+ const blockFailures = loaderFailures[blockId] ?? (loaderFailures[blockId] = {});
45593
+ blockFailures[key] = {
45594
+ endpoint,
45595
+ params
45596
+ };
45323
45597
  if (onError) onError(error, {
45324
45598
  block: block.kind,
45325
45599
  loader: key
@@ -45329,7 +45603,10 @@ async function prefetchBlockData$1(page, context, options) {
45329
45603
  }
45330
45604
  }
45331
45605
  if (tasks.length > 0) await Promise.all(tasks);
45332
- return results;
45606
+ return {
45607
+ resolvedData: results,
45608
+ loaderFailures
45609
+ };
45333
45610
  }
45334
45611
  var init_prefetchBlockData$1 = __esmMin((() => {
45335
45612
  init_registry$3();
@@ -45493,6 +45770,7 @@ function unsafeRetypeZodSchema(schema) {
45493
45770
  var navIdListSchema, dashboardNavVisibilityBaseSchema, dashboardNavVisibilityRolesSchema, dashboardNavVisibilitySchema, dashboardNavigationConfigSchema, dashboardConfigSchema, fieldDefinitionInputSchema, sdkLoaderEndpointSchema, loaderFallbackScalarSchema, loaderParamBindingSchema, loaderParamValueSchema, sdkConfigLoaderSchema, sdkDataLoadersSchema, sdkCustomBlockIdSchema, sdkCustomBlockInputSchema, sdkBlockFieldExtensionInputSchema, sdkBlockFieldExtensionsInputSchema, sdkThemePaletteSchema, sdkThemeConfigSchema, sdkSectionBackgroundSchema, sdkSectionOptionsConfigSchema, sdkContainerOptionsConfigSchema, sdkSiteStyleConfigSchema, sdkSiteLayoutConfigSchema, sdkFieldSelectOptionSchema, sdkBlockFieldConfigSchema, sdkBlockFieldOptionsMapSchema, sdkContentTypeTemplateConfigSchema, sdkContentTypeOrderingConfigSchema, sdkContentTypeConfigSchema, sdkContentConfigSchema, SDK_WORKFLOW_ID_PATTERN, SDK_WORKFLOW_ENDPOINT_PATTERN, sdkWorkflowIdSchema, sdkWorkflowEndpointSchema, sdkWorkflowManualTriggerSchema, sdkWorkflowTriggerFieldSchema, sdkWorkflowFieldChangedConditionSchema, sdkWorkflowFieldEmptyConditionSchema, sdkWorkflowEntryDraftUpdatedTriggerSchema, sdkWorkflowTriggerSchema, sdkWorkflowConfirmationSchema, sdkWorkflowConfigSchema, sdkWorkflowsSchema, riverbankSiteConfigInputSchema;
45494
45771
  var init_contracts = __esmMin((() => {
45495
45772
  init_src$2();
45773
+ init_src$4();
45496
45774
  navIdListSchema = z.preprocess((value) => {
45497
45775
  if (!Array.isArray(value)) return void 0;
45498
45776
  const filtered = value.filter((v) => typeof v === "string" && v.trim().length > 0);
@@ -45724,7 +46002,17 @@ var init_contracts = __esmMin((() => {
45724
46002
  z.object({
45725
46003
  config: riverbankSiteConfigInputSchema,
45726
46004
  forceContentTypes: z.boolean().optional(),
45727
- mode: z.enum(["apply", "preview"]).optional()
46005
+ mode: z.enum(["apply", "preview"]).optional(),
46006
+ expectedMailingListProviderScope: z.unknown().transform((value, ctx) => {
46007
+ if (value === void 0) return void 0;
46008
+ const parsed = parseMailingListProviderScope(value);
46009
+ if (parsed.ok) return parsed.value;
46010
+ ctx.addIssue({
46011
+ code: "custom",
46012
+ message: "Invalid mailing-list provider scope"
46013
+ });
46014
+ return z.NEVER;
46015
+ }).optional()
45728
46016
  }).strict();
45729
46017
  }));
45730
46018
  //#endregion
@@ -47363,9 +47651,11 @@ function convertPageResponseBlock(block) {
47363
47651
  if (typeof block.id !== "string" && block.id !== null) throw new Error(`Invalid block id in page: expected string or null, got ${typeof block.id}`);
47364
47652
  if (typeof block.kind !== "string") throw new Error(`Invalid block kind in page: expected string, got ${typeof block.kind}`);
47365
47653
  if (typeof block.purpose !== "string") throw new Error(`Invalid block purpose in page: expected string, got ${typeof block.purpose}`);
47654
+ if (block.contentVersionId !== void 0 && block.contentVersionId !== null && typeof block.contentVersionId !== "string") throw new Error(`Invalid content version id in page: expected string or null, got ${typeof block.contentVersionId}`);
47366
47655
  const admission = readInvalidBlockAdmission(block.admission);
47367
47656
  return {
47368
47657
  id: block.id,
47658
+ ...block.contentVersionId !== void 0 ? { contentVersionId: block.contentVersionId } : {},
47369
47659
  kind: block.kind,
47370
47660
  purpose: block.purpose,
47371
47661
  content: sanitizeSdkRuntimeBlockContent(block.kind, readContentRecord(block.content) ?? {}),
@@ -47398,6 +47688,7 @@ function projectRenderablePageOutline(page) {
47398
47688
  ...page,
47399
47689
  blocks: page.blocks.flatMap((block) => block.admission.kind === "renderable" ? [{
47400
47690
  id: block.id,
47691
+ ...block.contentVersionId !== void 0 ? { contentVersionId: block.contentVersionId } : {},
47401
47692
  kind: block.kind,
47402
47693
  purpose: block.purpose,
47403
47694
  content: block.admission.content,
@@ -47408,6 +47699,7 @@ function projectRenderablePageOutline(page) {
47408
47699
  function admitSdkRuntimePageBlock(block, customBlocks) {
47409
47700
  const base = {
47410
47701
  id: block.id,
47702
+ ...block.contentVersionId !== void 0 ? { contentVersionId: block.contentVersionId } : {},
47411
47703
  kind: block.kind,
47412
47704
  purpose: block.purpose,
47413
47705
  ...block.bindings ? { bindings: block.bindings } : {}