@riverbankcms/sdk 0.155.0 → 0.156.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 (216) hide show
  1. package/dist/{PreviewEditorSidebar-CbSbqmz3.mjs → PreviewEditorSidebar-B4ESNPzL.mjs} +3 -3
  2. package/dist/{PreviewEditorUI-CKKnAw11.mjs → PreviewEditorUI-BdUVaGOh.mjs} +3 -3
  3. package/dist/{SdkPreviewModeRuntime-wLkXrWy9.mjs → SdkPreviewModeRuntime-C4V3BvxK.mjs} +1122 -1079
  4. package/dist/{SiteChromeCustomizeContext-BQ8vvKb-.mjs → SiteChromeCustomizeContext-3gmd26Mn.mjs} +1019 -517
  5. package/dist/_dts/ai/src/contracts/proposals.d.ts +624 -624
  6. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +856 -856
  7. package/dist/_dts/api/src/accountApi.d.ts +5 -5
  8. package/dist/_dts/api/src/aiPlayground.d.ts +2 -2
  9. package/dist/_dts/api/src/bookingRecords.d.ts +2 -22
  10. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
  11. package/dist/_dts/api/src/contentRuntime.d.ts +5 -2
  12. package/dist/_dts/api/src/footerCompositionContracts.d.ts +1 -1
  13. package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
  14. package/dist/_dts/api/src/navigation/types.d.ts +1 -1
  15. package/dist/_dts/api/src/public/types.d.ts +2 -1
  16. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -1
  17. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +3 -3
  18. package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +1 -1
  19. package/dist/_dts/api/src/sdkBlockContentAdmission.d.ts +1 -1
  20. package/dist/_dts/api/src/sdkConfig/contracts.d.ts +2 -1
  21. package/dist/_dts/api/src/sdkContracts.d.ts +2 -1
  22. package/dist/_dts/api/src/sdkPageDesign.d.ts +9 -9
  23. package/dist/_dts/api/src/sdkThemeWire.d.ts +182 -182
  24. package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
  25. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
  26. package/dist/_dts/api/src/siteSettings.d.ts +2 -2
  27. package/dist/_dts/api/src/teamMembers.d.ts +1 -1
  28. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLayoutGridMoveAnimation.d.ts +13 -0
  29. package/dist/_dts/blocks/src/client/portal.d.ts +5 -0
  30. package/dist/_dts/blocks/src/contracts/event-registration.d.ts +141 -0
  31. package/dist/_dts/blocks/src/contracts/events.d.ts +21 -0
  32. package/dist/_dts/blocks/src/contracts/footer.d.ts +130 -0
  33. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +1 -1
  34. package/dist/_dts/blocks/src/contracts/site-chrome.d.ts +10 -0
  35. package/dist/_dts/blocks/src/customer-portal/client.d.ts +62 -0
  36. package/dist/_dts/blocks/src/customer-portal/components/PortalLoginForm.d.ts +16 -0
  37. package/dist/_dts/blocks/src/customer-portal/components/badge.d.ts +6 -0
  38. package/dist/_dts/blocks/src/customer-portal/components/bookings/AppointmentBeforeYouComeTask.d.ts +29 -0
  39. package/dist/_dts/blocks/src/customer-portal/components/bookings/BookingsSection.d.ts +22 -0
  40. package/dist/_dts/blocks/src/customer-portal/components/bookings/BookingsTable.d.ts +9 -0
  41. package/dist/_dts/blocks/src/customer-portal/components/bookings/EventRow.d.ts +9 -0
  42. package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationRow.d.ts +8 -0
  43. package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationTableRow.d.ts +22 -0
  44. package/dist/_dts/blocks/src/customer-portal/components/bookings/PortalAppointmentRescheduleFlow.d.ts +7 -0
  45. package/dist/_dts/blocks/src/customer-portal/components/bookings/ScalarQuestionInput.d.ts +11 -0
  46. package/dist/_dts/blocks/src/customer-portal/components/bookings/WaitlistCard.d.ts +8 -0
  47. package/dist/_dts/blocks/src/customer-portal/components/bookings/WaitlistsSection.d.ts +19 -0
  48. package/dist/_dts/blocks/src/customer-portal/components/bookings/bookingsTypes.d.ts +11 -0
  49. package/dist/_dts/blocks/src/customer-portal/components/bookings/eventGuestDrafts.d.ts +6 -0
  50. package/dist/_dts/blocks/src/customer-portal/components/bookings/eventSeriesRegistrationPresentation.d.ts +8 -0
  51. package/dist/_dts/blocks/src/customer-portal/components/bookings/usePortalCancelFlow.d.ts +36 -0
  52. package/dist/_dts/blocks/src/customer-portal/components/bookings/usePortalCancelFlow.state.d.ts +43 -0
  53. package/dist/_dts/blocks/src/customer-portal/components/orders/OrdersSection.d.ts +8 -0
  54. package/dist/_dts/blocks/src/customer-portal/components/orders/orderInteraction.d.ts +63 -0
  55. package/dist/_dts/blocks/src/customer-portal/components/portal-modal.d.ts +8 -0
  56. package/dist/_dts/blocks/src/customer-portal/components/portalDeepLink.d.ts +19 -0
  57. package/dist/_dts/blocks/src/customer-portal/components/useMembershipCancelFlow.d.ts +13 -0
  58. package/dist/_dts/blocks/src/customer-portal/components/useMembershipCancelFlow.state.d.ts +32 -0
  59. package/dist/_dts/blocks/src/customer-portal/pages/AccessState.d.ts +11 -0
  60. package/dist/_dts/blocks/src/customer-portal/pages/DigitalProductView.d.ts +4 -0
  61. package/dist/_dts/blocks/src/customer-portal/pages/PageChrome.d.ts +9 -0
  62. package/dist/_dts/blocks/src/customer-portal/pages/PrintButton.d.ts +1 -0
  63. package/dist/_dts/blocks/src/customer-portal/pages/TicketCode.d.ts +3 -0
  64. package/dist/_dts/blocks/src/customer-portal/pages/TicketView.d.ts +4 -0
  65. package/dist/_dts/blocks/src/customer-portal/route-client.d.ts +9 -0
  66. package/dist/_dts/blocks/src/customer-portal/shared/bookingRoute.d.ts +9 -0
  67. package/dist/_dts/blocks/src/customer-portal/shared/checkoutUrls.d.ts +4 -0
  68. package/dist/_dts/blocks/src/customer-portal/shared/signedUrlUpload.d.ts +1 -0
  69. package/dist/_dts/blocks/src/customer-portal/shared/urlParams.d.ts +30 -0
  70. package/dist/_dts/blocks/src/customer-portal/state.d.ts +196 -0
  71. package/dist/_dts/blocks/src/customer-portal/tabs.d.ts +17 -0
  72. package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +13 -0
  73. package/dist/_dts/blocks/src/portal/types.d.ts +7 -14
  74. package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +1 -25
  75. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -141
  76. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +3 -3
  77. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
  78. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -135
  79. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -129
  80. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +2 -5
  81. package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +2 -5
  82. package/dist/_dts/blocks/src/system/constants/events.d.ts +1 -1
  83. package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
  84. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +82 -82
  85. package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +2 -2
  86. package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
  87. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +21 -2
  88. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +87 -3
  89. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  90. package/dist/_dts/blocks/src/system/runtime/api/schemas/events.d.ts +1 -1
  91. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +1 -1
  92. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +16 -27
  93. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
  94. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +4 -4
  95. package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +2 -5
  96. package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +2 -5
  97. package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +9 -9
  98. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +9 -9
  99. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +2 -2
  100. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
  101. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +18 -18
  102. package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +2 -10
  103. package/dist/_dts/blocks/src/system/runtime/nodes/form.types.d.ts +10 -0
  104. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
  105. package/dist/_dts/blocks/src/system/runtime/shared/AppointmentRescheduleSlotOptions.d.ts +11 -0
  106. package/dist/_dts/blocks/src/system/runtime/shared/useAppointmentRescheduleFlow.d.ts +73 -0
  107. package/dist/_dts/blocks/src/system/runtime/shared/useAppointmentRescheduleFlow.state.d.ts +62 -0
  108. package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +1 -4
  109. package/dist/_dts/commerce/src/moneyDateUtils.d.ts +7 -0
  110. package/dist/_dts/core/src/booking-date-time.d.ts +5 -1
  111. package/dist/_dts/core/src/date-display.d.ts +4 -0
  112. package/dist/_dts/core/src/navigation-portal-labels.d.ts +1 -1
  113. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +13 -0
  114. package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
  115. package/dist/_dts/preview-next/src/client/preview/PreviewEditingModeProvider.d.ts +7 -0
  116. package/dist/_dts/sdk/src/bookings/types.d.ts +0 -1
  117. package/dist/_dts/sdk/src/next/index.d.ts +1 -0
  118. package/dist/_dts/sdk/src/next/portal.d.ts +41 -0
  119. package/dist/_dts/sdk/src/next/resolveTheme.d.ts +4 -9
  120. package/dist/_dts/sdk/src/next/types.d.ts +8 -3
  121. package/dist/_dts/sdk/src/portal/client.d.ts +1 -0
  122. package/dist/_dts/sdk/src/portal/index.d.ts +4 -36
  123. package/dist/_dts/sdk/src/portal/token.d.ts +4 -20
  124. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +4 -1
  125. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -28
  126. package/dist/_dts/sdk/src/version.d.ts +1 -1
  127. package/dist/_dts/theme-core/src/accordions/types.d.ts +4 -4
  128. package/dist/_dts/theme-core/src/buttons/types.d.ts +41 -41
  129. package/dist/_dts/theme-core/src/buttons/typography.d.ts +2 -2
  130. package/dist/_dts/theme-core/src/cards/types.d.ts +34 -34
  131. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  132. package/dist/_dts/theme-core/src/header/containerSchema.d.ts +2 -2
  133. package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +1 -1
  134. package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
  135. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +255 -255
  136. package/dist/_dts/theme-core/src/navigation/types.d.ts +6 -6
  137. package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
  138. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
  139. package/dist/_dts/theme-core/src/schema.d.ts +294 -294
  140. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
  141. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  142. package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +7 -7
  143. package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +1 -1
  144. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +12 -12
  145. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -2
  146. package/dist/_dts/theme-core/src/typography/schema.d.ts +27 -27
  147. package/dist/_dts/ui/src/button.d.ts +1 -1
  148. package/dist/_dts/ui/src/surface.d.ts +2 -2
  149. package/dist/_dts/ui/src/toggle.d.ts +2 -2
  150. package/dist/client/{BookingMailingListNote-CiW1dsz7.mjs → BookingMailingListNote-B9mP3Io9.mjs} +2 -2
  151. package/dist/client/{CardListItem-DVYTlYpS.mjs → CardListItem-D5rL2wPv.mjs} +3 -3
  152. package/dist/client/{CheckboxChoice-CUnPrBlC.mjs → CheckboxChoice-Bz6wLaBl.mjs} +1 -1
  153. package/dist/client/{DemoBookingPortalAccess-DEsn5F2C.mjs → DemoBookingPortalAccess-7BPVzfLU.mjs} +6 -10
  154. package/dist/client/{EventCombined.client-BdctbwnV.mjs → EventCombined.client-DZH5qHJl.mjs} +5 -5
  155. package/dist/client/{EventEmbeddedCheckoutStep-DAhQs6Jb.mjs → EventEmbeddedCheckoutStep-CV31Qvn2.mjs} +2 -2
  156. package/dist/client/{EventListing.client-BviZXfAE.mjs → EventListing.client-C19sjRGF.mjs} +2 -2
  157. package/dist/client/{LeafletStaticMap-BLTECfjU.mjs → LeafletStaticMap-DjUjYdzQ.mjs} +1 -1
  158. package/dist/client/{RichText-D3oE1_pw.mjs → RichText-DkKcVZwr.mjs} +2 -2
  159. package/dist/client/{ThemedButton-Ckj0Rfr_.mjs → ThemedButton-CTgpAXfL.mjs} +1 -1
  160. package/dist/client/{accordion-yBx6d4O2.mjs → accordion-R2-q5wo-.mjs} +1 -1
  161. package/dist/client/{bookingForm-CPDEsQci.mjs → bookingForm-VSU8nIdO.mjs} +12 -16
  162. package/dist/client/bookings.mjs +352 -64
  163. package/dist/client/{carousel-DCqjwd2s.mjs → carousel-BjPlY4ee.mjs} +2 -2
  164. package/dist/client/{carousel.client-Bx7XMF8-.mjs → carousel.client-Tnwvm0l1.mjs} +1 -1
  165. package/dist/client/{cart-DWJXrQxs.mjs → cart-DAPYTOP7.mjs} +3 -3
  166. package/dist/client/{checkout-CH4ypSLS.mjs → checkout-DGJTx4vB.mjs} +3 -3
  167. package/dist/client/client.mjs +61275 -61217
  168. package/dist/client/{context-BOs0m_iw.mjs → context-ByZBoKdq.mjs} +92 -209
  169. package/dist/client/{eventCalendar-CRylMllc.mjs → eventCalendar-CP5Z7iME.mjs} +8 -8
  170. package/dist/client/{eventCombined-DohTS3kp.mjs → eventCombined-D8nbUyxu.mjs} +4 -4
  171. package/dist/client/{eventDetails-qf-u9zcF.mjs → eventDetails-Bknq8k7E.mjs} +46 -44
  172. package/dist/client/{eventListing-Cg__X2vy.mjs → eventListing-BwMnPteX.mjs} +4 -4
  173. package/dist/client/{eventRegistration-CybWxswy.mjs → eventRegistration-COFk1mjw.mjs} +11 -11
  174. package/dist/client/{form-C-SGk6nq.mjs → form-BiWLd_me.mjs} +5 -5
  175. package/dist/client/{headerSection-BdzPaHqo.mjs → headerSection-BptDP4xF.mjs} +3 -3
  176. package/dist/client/hooks.mjs +22850 -22861
  177. package/dist/client/{locationMap-CEwIKmMb.mjs → locationMap-B-kPoqcK.mjs} +3 -3
  178. package/dist/client/{media-V_ShXXru.mjs → media-FjqQK4qS.mjs} +68 -1
  179. package/dist/client/{newsletterForm-CmwTltoS.mjs → newsletterForm-s_B8fCtT.mjs} +4 -4
  180. package/dist/client/portal/client.mjs +17419 -0
  181. package/dist/client/{productDetail-DjIzUwg3.mjs → productDetail-CS3GZMPi.mjs} +3 -3
  182. package/dist/client/{productList-D6JGFnMF.mjs → productList-Csc3WJDs.mjs} +3 -3
  183. package/dist/client/{propsDecoder-BRKz13eg.mjs → propsDecoder-Dn68GoQZ.mjs} +502 -2705
  184. package/dist/client/rendering/client.mjs +3303 -3612
  185. package/dist/client/rendering/islands.mjs +17 -17
  186. package/dist/client/rendering.mjs +46273 -46220
  187. package/dist/client/{routeIslandApiConfig-slAAILQ5.mjs → routeIslandApiConfig-DeBuevOO.mjs} +1 -1
  188. package/dist/client/{shop-C45K96_0.mjs → shop-B5EQbeUX.mjs} +7 -7
  189. package/dist/client/{shop-commerce-oGBiKT5d.mjs → shop-commerce-DYs7PdNL.mjs} +8 -8
  190. package/dist/client/{shop-commerce-store-H_HFPFZ8.mjs → shop-commerce-store-B2-DIPbg.mjs} +1 -1
  191. package/dist/client/{shopShared-D54T_LAV.mjs → shopShared-CE302Pfy.mjs} +4 -4
  192. package/dist/client/{useDiscountCodeUi-Dm2EUa03.mjs → useDiscountCodeUi-BZ02FBrV.mjs} +1 -1
  193. package/dist/client/{useEventPagination-0l_A8CxG.mjs → useEventPagination-VudQWKtG.mjs} +116 -6
  194. package/dist/preview-next/client/runtime.mjs +3 -3
  195. package/dist/{sdk-runtime-CjTM32Ah.mjs → sdk-runtime-C8Qh6r51.mjs} +1 -1
  196. package/dist/server/components.mjs +927 -262
  197. package/dist/server/config-template-validation.mjs +5 -3
  198. package/dist/server/config-validation.mjs +35200 -35211
  199. package/dist/server/config.mjs +35200 -35211
  200. package/dist/server/data.mjs +32783 -32794
  201. package/dist/server/date-time.mjs +14 -7
  202. package/dist/server/index.mjs +1 -1
  203. package/dist/server/navigation.mjs +1 -1
  204. package/dist/server/next.mjs +71470 -70677
  205. package/dist/server/page-converter.mjs +202 -213
  206. package/dist/server/portal.mjs +5 -51
  207. package/dist/server/prebuild.mjs +1 -1
  208. package/dist/server/rendering/server.mjs +1180 -722
  209. package/dist/server/rendering.mjs +922 -262
  210. package/dist/server/routing.mjs +39382 -41704
  211. package/dist/server/server.mjs +203 -214
  212. package/dist/server/theme-bridge.mjs +262 -2
  213. package/dist/{spinner-KVVZh8jd.mjs → spinner-Bi68Z_0o.mjs} +1 -1
  214. package/dist/styles/index.css +258 -2
  215. package/package.json +9 -1
  216. package/dist/_dts/sdk/src/portal/config.d.ts +0 -67
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Mr as blockSiteTermsSchema, ci as confirmationPaymentSchema, hn as calendarWindowPageSchema } from "./propsDecoder-BRKz13eg.mjs";
2
+ import { an as eventCheckoutReturnResponseSchema, in as eventCheckoutResponseSchema, jr as blockSiteTermsSchema, mn as calendarWindowPageSchema, on as eventRegisterResponseSchema } from "./propsDecoder-Dn68GoQZ.mjs";
3
3
  import { createContext, useContext, useMemo } from "react";
4
4
  import { z } from "zod";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -42,211 +42,6 @@ const waitlistClaimResponseSchema = z.object({
42
42
  }).strict()
43
43
  }).strict();
44
44
  //#endregion
45
- //#region ../blocks/src/system/runtime/api/schemas/events.ts
46
- const uuid = z.string().uuid();
47
- const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
48
- scope: z.literal("occurrence"),
49
- attendeeId: uuid
50
- }).strict(), z.object({
51
- scope: z.literal("wholeSeries"),
52
- registrationId: uuid
53
- }).strict()]);
54
- const eventRegistrationPaymentSubjectSchema = z.discriminatedUnion("scope", [z.object({
55
- scope: z.literal("occurrence"),
56
- submissionId: uuid,
57
- attendeeId: uuid
58
- }).strict(), z.object({
59
- scope: z.literal("wholeSeries"),
60
- submissionId: uuid
61
- }).strict()]);
62
- const identityFields = {
63
- submissionId: uuid,
64
- seriesId: uuid,
65
- attendanceMode: z.enum(["in_person", "online"])
66
- };
67
- const confirmedBookingIdentitySchema = z.discriminatedUnion("scope", [z.object({
68
- scope: z.literal("occurrence"),
69
- attendeeId: uuid,
70
- occurrenceId: uuid,
71
- ...identityFields
72
- }).strict(), z.object({
73
- scope: z.literal("wholeSeries"),
74
- registrationId: uuid,
75
- ...identityFields
76
- }).strict()]);
77
- const bookedTicketLineSchema = z.object({
78
- label: z.string().min(1),
79
- quantity: z.number().int().positive()
80
- }).strict();
81
- const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
82
- kind: z.literal("detailsAvailable"),
83
- identity: confirmedBookingIdentitySchema,
84
- ticketLines: z.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
85
- payment: confirmationPaymentSchema
86
- }).strict(), z.object({
87
- kind: z.literal("detailsUnavailable"),
88
- identity: confirmedBookingIdentitySchema
89
- }).strict()]);
90
- const eventEmbeddedCheckoutSchema = z.object({
91
- kind: z.literal("embedded"),
92
- sessionId: z.string().min(1),
93
- clientSecret: z.string().min(1),
94
- livemode: z.boolean(),
95
- expiresAt: z.string().datetime({ offset: true }),
96
- browser: z.discriminatedUnion("kind", [z.object({
97
- kind: z.literal("connect"),
98
- publishableKey: z.string().min(1),
99
- accountId: z.string().min(1)
100
- }).strict(), z.object({
101
- kind: z.literal("direct"),
102
- publishableKey: z.string().min(1)
103
- }).strict()])
104
- }).strict();
105
- const decorations = {
106
- mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
107
- demoBookingPass: z.string().optional()
108
- };
109
- const eventRegistrationSummarySchema = z.object({
110
- message: z.string(),
111
- passCreditsRemaining: z.number().int().nonnegative().optional()
112
- }).strict();
113
- const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
114
- z.object({
115
- kind: z.literal("bookingComplete"),
116
- outcome: eventBookingOutcomeSchema,
117
- summary: eventRegistrationSummarySchema,
118
- ...decorations
119
- }).strict(),
120
- z.object({
121
- kind: z.literal("checkoutRequired"),
122
- reference: eventRegistrationStatusReferenceSchema,
123
- checkout: eventEmbeddedCheckoutSchema,
124
- submissionId: uuid,
125
- ...decorations
126
- }).strict(),
127
- z.object({
128
- kind: z.literal("paymentStatusRequired"),
129
- subject: eventRegistrationPaymentSubjectSchema,
130
- ...decorations
131
- }).strict(),
132
- z.object({
133
- kind: z.literal("waitlisted"),
134
- waitlist: z.object({
135
- reference: z.union([z.object({
136
- scope: z.literal("occurrence"),
137
- attendeeId: uuid
138
- }).strict(), z.object({
139
- scope: z.enum(["occurrence", "wholeSeries"]),
140
- waitlistEntryId: uuid
141
- }).strict()]),
142
- position: z.number().int().nonnegative().nullable(),
143
- message: z.string(),
144
- emailFollowupMessage: z.string().optional()
145
- }).strict(),
146
- ...decorations
147
- }).strict()
148
- ]);
149
- const checkoutStatusArms = [
150
- z.object({
151
- kind: z.literal("resolved"),
152
- outcome: eventBookingOutcomeSchema
153
- }).strict(),
154
- z.object({ kind: z.literal("abandoned") }).strict(),
155
- z.object({ kind: z.literal("reconciliationRequired") }).strict(),
156
- z.object({
157
- kind: z.literal("paymentProcessing"),
158
- recoverableUntil: z.string().optional()
159
- }).strict(),
160
- z.object({
161
- kind: z.literal("paymentAvailable"),
162
- checkout: eventEmbeddedCheckoutSchema,
163
- recoverableUntil: z.string().optional()
164
- }).strict(),
165
- z.object({
166
- kind: z.literal("paymentRetryAvailable"),
167
- place: z.enum(["held", "released"])
168
- }).strict(),
169
- z.object({
170
- kind: z.literal("paymentCheckUnavailable"),
171
- recoverableUntil: z.string().optional()
172
- }).strict(),
173
- z.object({ kind: z.literal("paymentAssistanceRequired") }).strict()
174
- ];
175
- z.discriminatedUnion("kind", [...checkoutStatusArms, z.object({ kind: z.literal("notFound") }).strict()]);
176
- const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
177
- z.object({
178
- kind: z.literal("checkout"),
179
- subject: eventRegistrationPaymentSubjectSchema,
180
- outcome: z.discriminatedUnion("kind", checkoutStatusArms)
181
- }).strict(),
182
- z.object({ kind: z.literal("notFound") }).strict(),
183
- z.object({ kind: z.literal("reconciliationRequired") }).strict()
184
- ]).superRefine((response, ctx) => {
185
- if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
186
- const identity = response.outcome.outcome.identity;
187
- if (identity.scope !== response.subject.scope || identity.submissionId !== response.subject.submissionId || identity.scope === "occurrence" && response.subject.scope === "occurrence" && identity.attendeeId !== response.subject.attendeeId) ctx.addIssue({
188
- code: "custom",
189
- message: "Confirmed booking does not match checkout subject",
190
- path: ["outcome"]
191
- });
192
- });
193
- const checkoutDecorations = { mailingListSignupNote: decorations.mailingListSignupNote };
194
- const eventCheckoutResponseSchema = z.union([
195
- z.object({
196
- kind: z.literal("completed"),
197
- scope: z.literal("occurrence"),
198
- outcome: eventBookingOutcomeSchema,
199
- ...checkoutDecorations
200
- }).strict(),
201
- z.object({
202
- kind: z.literal("completed"),
203
- scope: z.literal("wholeSeries"),
204
- outcome: eventBookingOutcomeSchema,
205
- ...checkoutDecorations
206
- }).strict(),
207
- z.object({
208
- kind: z.literal("checkoutRequired"),
209
- scope: z.literal("occurrence"),
210
- attendeeId: uuid,
211
- checkout: eventEmbeddedCheckoutSchema,
212
- ...checkoutDecorations
213
- }).strict(),
214
- z.object({
215
- kind: z.literal("checkoutRequired"),
216
- scope: z.literal("wholeSeries"),
217
- registrationId: uuid,
218
- checkoutAttemptId: uuid,
219
- checkout: eventEmbeddedCheckoutSchema,
220
- recoverableUntil: z.string().optional(),
221
- ...checkoutDecorations
222
- }).strict(),
223
- z.object({
224
- scope: z.literal("wholeSeries"),
225
- status: z.literal("paymentStatusRequired"),
226
- checkoutAttemptId: uuid,
227
- recoverableUntil: z.string().optional(),
228
- ...checkoutDecorations
229
- }).strict(),
230
- z.object({
231
- scope: z.literal("wholeSeries"),
232
- status: z.literal("waitlist"),
233
- waitlistEntryId: uuid,
234
- waitlistPosition: z.number().int().nonnegative().nullable(),
235
- alreadyRegistered: z.boolean().optional(),
236
- ...checkoutDecorations
237
- }).strict()
238
- ]).superRefine((response, ctx) => {
239
- if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
240
- code: "custom",
241
- message: "Confirmed booking scope mismatch",
242
- path: [
243
- "outcome",
244
- "identity",
245
- "scope"
246
- ]
247
- });
248
- });
249
- //#endregion
250
45
  //#region ../blocks/src/system/runtime/api/deduplication.ts
251
46
  /**
252
47
  * Create a request deduplication cache.
@@ -495,6 +290,48 @@ const NEWSLETTER = { subscribe: {
495
290
  method: "POST"
496
291
  } };
497
292
  const PORTAL = {
293
+ createAppointmentBookingQuestionsUploadUrl: {
294
+ path: "/portal/appointments/{appointmentId}/booking-questions/upload-url",
295
+ method: "POST",
296
+ authScope: "portal",
297
+ skipPreviewStage: true
298
+ },
299
+ finalizeAppointmentBookingQuestionsUpload: {
300
+ path: "/portal/appointments/{appointmentId}/booking-questions/upload",
301
+ method: "POST",
302
+ authScope: "portal",
303
+ skipPreviewStage: true
304
+ },
305
+ createEventBookingQuestionsUploadUrl: {
306
+ path: "/portal/events/{registrationId}/booking-questions/upload-url",
307
+ method: "POST",
308
+ authScope: "portal",
309
+ skipPreviewStage: true
310
+ },
311
+ finalizeEventBookingQuestionsUpload: {
312
+ path: "/portal/events/{registrationId}/booking-questions/upload",
313
+ method: "POST",
314
+ authScope: "portal",
315
+ skipPreviewStage: true
316
+ },
317
+ createWholeSeriesBookingQuestionsUploadUrl: {
318
+ path: "/portal/dated-offerings/whole-series/{registrationId}/booking-questions/upload-url",
319
+ method: "POST",
320
+ authScope: "portal",
321
+ skipPreviewStage: true
322
+ },
323
+ finalizeWholeSeriesBookingQuestionsUpload: {
324
+ path: "/portal/dated-offerings/whole-series/{registrationId}/booking-questions/upload",
325
+ method: "POST",
326
+ authScope: "portal",
327
+ skipPreviewStage: true
328
+ },
329
+ cancelWaitlist: {
330
+ path: "/portal/waitlists/{entryId}/cancel",
331
+ method: "POST",
332
+ authScope: "portal",
333
+ skipPreviewStage: true
334
+ },
498
335
  getProfile: {
499
336
  path: "/portal/me",
500
337
  method: "GET",
@@ -672,7 +509,7 @@ const PORTAL = {
672
509
  sendMagicLink: {
673
510
  path: "/portal/auth/send-magic-link",
674
511
  method: "POST",
675
- authScope: "portal",
512
+ authScope: "public",
676
513
  skipPreviewStage: true
677
514
  },
678
515
  logout: {
@@ -883,6 +720,7 @@ function createBlockApi(config) {
883
720
  return endpoint.skipPreviewStage === true;
884
721
  }
885
722
  function selectAuth(endpoint) {
723
+ if (endpoint.authScope === "public") return { type: "none" };
886
724
  if (endpoint.authScope === "portal" && authOverrides?.portal) return authOverrides.portal;
887
725
  if (readAuthority && !endpoint.previewRead) return { type: "none" };
888
726
  return auth;
@@ -1246,8 +1084,53 @@ function createBlockApi(config) {
1246
1084
  async getPortalMemberships() {
1247
1085
  return (await request(PORTAL.getMemberships)).memberships;
1248
1086
  },
1249
- async getPortalEvents(params) {
1250
- return (await request(PORTAL.getEvents, { query: params?.occurrenceId ? { occurrenceId: params.occurrenceId } : void 0 })).registrations;
1087
+ getPortalEvents(params) {
1088
+ return request(PORTAL.getEvents, { query: params });
1089
+ },
1090
+ async cancelPortalWaitlist(entryId) {
1091
+ try {
1092
+ return await request(PORTAL.cancelWaitlist, { path: buildPath(PORTAL.cancelWaitlist.path, { entryId }) });
1093
+ } catch (error) {
1094
+ if (error instanceof BlockApiError && error.status === 409) return { outcome: "alreadyClosed" };
1095
+ if (error instanceof BlockApiError && error.status === 404) return { outcome: "notFound" };
1096
+ throw error;
1097
+ }
1098
+ },
1099
+ createPortalAppointmentBookingQuestionsUploadUrl(appointmentId, data) {
1100
+ return request(PORTAL.createAppointmentBookingQuestionsUploadUrl, {
1101
+ path: buildPath(PORTAL.createAppointmentBookingQuestionsUploadUrl.path, { appointmentId }),
1102
+ body: data
1103
+ });
1104
+ },
1105
+ async finalizePortalAppointmentBookingQuestionsUpload(appointmentId, data) {
1106
+ return (await request(PORTAL.finalizeAppointmentBookingQuestionsUpload, {
1107
+ path: buildPath(PORTAL.finalizeAppointmentBookingQuestionsUpload.path, { appointmentId }),
1108
+ body: data
1109
+ })).answer;
1110
+ },
1111
+ createPortalEventBookingQuestionsUploadUrl(registrationId, data) {
1112
+ return request(PORTAL.createEventBookingQuestionsUploadUrl, {
1113
+ path: buildPath(PORTAL.createEventBookingQuestionsUploadUrl.path, { registrationId }),
1114
+ body: data
1115
+ });
1116
+ },
1117
+ async finalizePortalEventBookingQuestionsUpload(registrationId, data) {
1118
+ return (await request(PORTAL.finalizeEventBookingQuestionsUpload, {
1119
+ path: buildPath(PORTAL.finalizeEventBookingQuestionsUpload.path, { registrationId }),
1120
+ body: data
1121
+ })).answer;
1122
+ },
1123
+ createPortalWholeSeriesBookingQuestionsUploadUrl(registrationId, data) {
1124
+ return request(PORTAL.createWholeSeriesBookingQuestionsUploadUrl, {
1125
+ path: buildPath(PORTAL.createWholeSeriesBookingQuestionsUploadUrl.path, { registrationId }),
1126
+ body: data
1127
+ });
1128
+ },
1129
+ async finalizePortalWholeSeriesBookingQuestionsUpload(registrationId, data) {
1130
+ return (await request(PORTAL.finalizeWholeSeriesBookingQuestionsUpload, {
1131
+ path: buildPath(PORTAL.finalizeWholeSeriesBookingQuestionsUpload.path, { registrationId }),
1132
+ body: data
1133
+ })).answer;
1251
1134
  },
1252
1135
  async getPortalEventTicket(registrationId) {
1253
1136
  const path = buildPath(PORTAL.getEventTicket.path, { registrationId });
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Br as getDayOfWeek, Fr as buildTimetableModel$1, Ir as MONTH_NAMES, Jn as isEventFull, Kn as getEventAvailabilityStatus, Ln as formatTime, Mn as formatDate, Qn as listItemPresentation, Rn as groupEventsByDate, Tn as buildEventListWeek, Un as formatEventRemainingPlaces, Ur as isToday, Vr as getOrderedDayNames, _n as resolveCalendarReadProfile, bn as buildEventRuntimeFilters, er as listLookSlot, ii as clsx, kn as eventDateLocale, t as defineIslandPropsDecoder, tn as buildEventCalendarListingRender, zn as resolveEventTimeZone, zr as formatDateKey } from "./propsDecoder-BRKz13eg.mjs";
3
- import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-Ckj0Rfr_.mjs";
4
- import { i as useEventCollectionFilters, o as EventItem, s as formatEventTeacherLine } from "./useEventPagination-0l_A8CxG.mjs";
5
- import { o as resolveEventLinkProps } from "./CardListItem-DVYTlYpS.mjs";
6
- import { a as WeekAgendaView, c as CalendarDayCell, d as EventModalProvider, f as useEventModal, h as resolveMonthSelectedDay, i as useHydrationReady, l as useCalendarEvents, m as buildMonthDay, o as CalendarNavigationChevron, p as useCalendarToday, r as EventModals, s as CalendarDayHeaders, t as EventCombinedClient, u as useCalendarViewport } from "./EventCombined.client-BdctbwnV.mjs";
7
- import { t as BlockApiProvider } from "./context-BOs0m_iw.mjs";
2
+ import { $n as listLookSlot, Br as getOrderedDayNames, Fr as MONTH_NAMES, Gn as getEventAvailabilityStatus, Hn as formatEventRemainingPlaces, Hr as isToday, In as formatTime, Ln as groupEventsByDate, On as eventDateLocale, Pr as buildTimetableModel$1, Rn as resolveEventTimeZone, Rr as formatDateKey, Zn as listItemPresentation, gn as resolveCalendarReadProfile, jn as formatDate, qn as isEventFull, ri as clsx, t as defineIslandPropsDecoder, tn as buildEventCalendarListingRender, wn as buildEventListWeek, yn as buildEventRuntimeFilters, zr as getDayOfWeek } from "./propsDecoder-Dn68GoQZ.mjs";
3
+ import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-CTgpAXfL.mjs";
4
+ import { i as useEventCollectionFilters, o as EventItem, s as formatEventTeacherLine } from "./useEventPagination-VudQWKtG.mjs";
5
+ import { o as resolveEventLinkProps } from "./CardListItem-D5rL2wPv.mjs";
6
+ import { a as WeekAgendaView, c as CalendarDayCell, d as EventModalProvider, f as useEventModal, h as resolveMonthSelectedDay, i as useHydrationReady, l as useCalendarEvents, m as buildMonthDay, o as CalendarNavigationChevron, p as useCalendarToday, r as EventModals, s as CalendarDayHeaders, t as EventCombinedClient, u as useCalendarViewport } from "./EventCombined.client-DZH5qHJl.mjs";
7
+ import { t as BlockApiProvider } from "./context-ByZBoKdq.mjs";
8
8
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
9
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-slAAILQ5.mjs";
10
- import { n as EventListingController } from "./EventListing.client-BviZXfAE.mjs";
9
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DeBuevOO.mjs";
10
+ import { n as EventListingController } from "./EventListing.client-C19sjRGF.mjs";
11
11
  import React, { useEffect, useMemo, useState } from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
@@ -1,8 +1,8 @@
1
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BRKz13eg.mjs";
2
- import { n as EventCombinedIslandClient } from "./EventCombined.client-BdctbwnV.mjs";
3
- import { t as BlockApiProvider } from "./context-BOs0m_iw.mjs";
1
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dn68GoQZ.mjs";
2
+ import { n as EventCombinedIslandClient } from "./EventCombined.client-DZH5qHJl.mjs";
3
+ import { t as BlockApiProvider } from "./context-ByZBoKdq.mjs";
4
4
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
5
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-slAAILQ5.mjs";
5
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DeBuevOO.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/rendering/islands/enhancers/eventCombined.tsx
@@ -1,9 +1,9 @@
1
- import { An as eventDateOptions, Di as isPublicEventPricingOptionDisplayable, Dn as formatEventPriceAmount, Ei as formatBookingPriceDisplay, En as formatEventPrice, Kn as getEventAvailabilityStatus, Ln as formatTime, Mi as formatCurrencyAmount, Ni as assertNever, Nn as formatEventCompactDateRail, Oi as publicEventPricingCurrency, On as formatEventPriceDisplay, Pn as formatEventDateParts, Ti as toScheduledBookingDateTime, Un as formatEventRemainingPlaces, Wn as formatTotalCapacity, bi as getBookingLocalDateKey, er as listLookSlot, fi as CANCELLED_SESSION_STATUS, ji as publicEventPricingType, ki as publicEventPricingDisplay, mi as resolveWholeSeriesBookingPhase, pi as orderedLiveRunSessions, rn as resolveEventRegistrationScopedEvents, t as defineIslandPropsDecoder, wi as toBookingTimeZone } from "./propsDecoder-BRKz13eg.mjs";
1
+ import { $n as listLookSlot, Ci as toBookingTimeZone, Di as isPublicEventPricingOptionDisplayable, Dn as formatEventPriceDisplay, Ei as formatBookingPriceDisplay, En as formatEventPriceAmount, Gn as getEventAvailabilityStatus, Hn as formatEventRemainingPlaces, Mi as formatCurrencyAmount, Mn as formatEventCompactDateRail, Ni as assertNever, Nn as formatEventDateParts, Oi as publicEventPricingCurrency, Ti as toUtcIsoDateTimeString, Tn as formatEventPrice, Un as formatTotalCapacity, ci as orderedLiveRunSessions, fi as formatDate, ji as publicEventPricingType, ki as publicEventPricingDisplay, kn as eventDateOptions, li as resolveWholeSeriesBookingPhase, mi as formatDateTimeRange, pi as formatDateRange, rn as resolveEventRegistrationScopedEvents, si as CANCELLED_SESSION_STATUS, t as defineIslandPropsDecoder, vi as getBookingLocalDateKey, wi as toScheduledBookingDateTime, xi as resolveBookingBusinessTimeZone, yi as getLocalScheduleDate } from "./propsDecoder-Dn68GoQZ.mjs";
2
2
  import { t as formatEventDuration } from "./duration-btE0-px8.mjs";
3
- import { a as resolveEventCta, o as resolveEventLinkProps, t as CardListContentPart } from "./CardListItem-DVYTlYpS.mjs";
3
+ import { a as resolveEventCta, o as resolveEventLinkProps, t as CardListContentPart } from "./CardListItem-D5rL2wPv.mjs";
4
4
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
5
5
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CT8yg_UB.mjs";
6
- import { t as LeafletStaticMap } from "./LeafletStaticMap-BLTECfjU.mjs";
6
+ import { t as LeafletStaticMap } from "./LeafletStaticMap-DjUjYdzQ.mjs";
7
7
  import "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
@@ -375,9 +375,13 @@ function cardProjectionBase(event, buttonText, offering) {
375
375
  function offeringLeadDate(event, startMs) {
376
376
  if (startMs === null || !Number.isFinite(startMs)) return null;
377
377
  const startsAt = new Date(startMs).toISOString();
378
+ const timeZone = resolveBookingBusinessTimeZone(event.bookingScope === "whole_series" ? orderedLiveRunSessions(event.run.sessions).find((session) => Date.parse(session.startsAt) === startMs)?.timeZone ?? event.timeZone : event.timeZone);
378
379
  return {
379
380
  startsAt,
380
- ...formatEventCompactDateRail(startsAt, eventDateOptions(event), "as-written")
381
+ ...formatEventCompactDateRail(startsAt, {
382
+ ...eventDateOptions(event),
383
+ timeZone
384
+ }, "as-written")
381
385
  };
382
386
  }
383
387
  function offeringSchedule(event, now) {
@@ -397,49 +401,47 @@ function offeringSchedule(event, now) {
397
401
  }
398
402
  function scheduleLine(summary, event, now) {
399
403
  const options = eventDateOptions(event);
400
- const timeZone = options.timeZone ?? "UTC";
401
- const year = (value) => new Intl.DateTimeFormat(options.locale, {
402
- timeZone,
403
- year: "numeric"
404
- }).format(value);
405
- const date = (value, weekday = false) => new Intl.DateTimeFormat(options.locale, {
406
- timeZone,
407
- day: "numeric",
408
- month: "short",
409
- ...weekday ? { weekday: "short" } : {},
410
- ...now && year(new Date(value)) !== year(now) ? { year: "numeric" } : {}
411
- }).format(new Date(value)).replace(",", "");
404
+ const first = "occurrence" in summary ? summary.occurrence : summary.first;
405
+ const last = "occurrence" in summary ? summary.occurrence : summary.last;
406
+ const context = {
407
+ locale: options.locale,
408
+ timeZone: resolveBookingBusinessTimeZone(first.timeZone)
409
+ };
410
+ const zone = event.deliveryMode === "online" || context.timeZone !== resolveBookingBusinessTimeZone(event.siteTimeZone ?? event.timeZone) ? "always" : "omit";
411
+ const endpoint = (value) => ({
412
+ kind: "instant",
413
+ value: toUtcIsoDateTimeString(value)
414
+ });
415
+ const year = (value, timeZone = context.timeZone) => now && getLocalScheduleDate(new Date(value), timeZone).year === getLocalScheduleDate(now, timeZone).year ? "omit" : "numeric";
416
+ const date = (value) => formatDate(endpoint(value), context, {
417
+ date: "short",
418
+ year: now ? year(value) : "omit"
419
+ });
420
+ const dates = (startsAt, endsAt) => formatDateRange({
421
+ kind: "civil",
422
+ value: getLocalScheduleDate(new Date(startsAt), context.timeZone)
423
+ }, {
424
+ kind: "civil",
425
+ value: getLocalScheduleDate(new Date(endsAt), resolveBookingBusinessTimeZone(last.timeZone))
426
+ }, context, {
427
+ date: "short",
428
+ year: now && year(startsAt) === "omit" && year(endsAt, resolveBookingBusinessTimeZone(last.timeZone)) === "omit" ? "omit" : now ? "numeric" : "omit"
429
+ });
412
430
  switch (summary.kind) {
413
- case "single-occurrence": return now ? `${date(summary.occurrence.startsAt, true)} · ${compactTimeRange(summary.occurrence.startsAt, summary.occurrence.endsAt, timeZone)}` : date(summary.occurrence.startsAt);
414
- case "multi-day-span": return now ? compactDateSpan(summary.occurrence.startsAt, summary.occurrence.endsAt, options.locale, timeZone, now) : `${date(summary.occurrence.startsAt)} – ${date(summary.occurrence.endsAt)}`;
415
- case "fixed-recurring-run": return `${date(summary.first.startsAt)} – ${date(summary.last.startsAt)} · ${summary.recurrenceLabel}`;
416
- case "irregular-multi-session-run": return `${date(summary.first.startsAt)} – ${date(summary.last.startsAt)} · ${summary.sessionCount} dates`;
431
+ case "single-occurrence": return now ? formatDateTimeRange({
432
+ start: endpoint(summary.occurrence.startsAt).value,
433
+ end: endpoint(summary.occurrence.endsAt).value
434
+ }, context, {
435
+ date: "short",
436
+ weekday: "short",
437
+ year: year(summary.occurrence.startsAt),
438
+ zone
439
+ }) : date(summary.occurrence.startsAt);
440
+ case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
441
+ case "fixed-recurring-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.recurrenceLabel}`;
442
+ case "irregular-multi-session-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.sessionCount} dates`;
417
443
  }
418
444
  }
419
- function compactTimeRange(startsAt, endsAt, timeZone) {
420
- const time = (value) => formatTime(value, {
421
- timeZone,
422
- locale: "en-US"
423
- }).replace(/:00/, "").replace(/\s/g, "").toLowerCase();
424
- const start = time(startsAt);
425
- const end = time(endsAt);
426
- return `${start.endsWith("am") === end.endsWith("am") ? start.replace(/(am|pm)$/, "") : start}–${end}`;
427
- }
428
- function compactDateSpan(startsAt, endsAt, locale, timeZone, now) {
429
- const start = new Date(startsAt);
430
- const end = new Date(endsAt);
431
- const parts = (value) => new Intl.DateTimeFormat(locale, {
432
- timeZone,
433
- day: "numeric",
434
- month: "short",
435
- year: "numeric"
436
- }).formatToParts(value);
437
- const part = (value, type) => parts(value).find((entry) => entry.type === type)?.value.replace(/^Sept$/, "Sep") ?? "";
438
- const sameMonth = part(start, "month") === part(end, "month") && part(start, "year") === part(end, "year");
439
- const year = (value) => part(value, "year") === part(now, "year") ? "" : ` ${part(value, "year")}`;
440
- const date = (value) => `${part(value, "day")} ${part(value, "month")}${year(value)}`;
441
- return sameMonth ? `${part(start, "day")}–${date(end)}` : `${date(start)} – ${date(end)}`;
442
- }
443
445
  function offeringAvailability(event) {
444
446
  const label = formatEventRemainingPlaces(event, { full: "Sold out" });
445
447
  const availability = getEventAvailabilityStatus(event);
@@ -1,8 +1,8 @@
1
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BRKz13eg.mjs";
2
- import { t as BlockApiProvider } from "./context-BOs0m_iw.mjs";
1
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dn68GoQZ.mjs";
2
+ import { t as BlockApiProvider } from "./context-ByZBoKdq.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-slAAILQ5.mjs";
5
- import { t as EventListingClient } from "./EventListing.client-BviZXfAE.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DeBuevOO.mjs";
5
+ import { t as EventListingClient } from "./EventListing.client-C19sjRGF.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/rendering/islands/enhancers/eventListing.tsx
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import { $ as normalizeEventRegistrationMaxTickets, $t as placesLeftLabel, A as registrationRoute, Ai as publicEventPricingStrategy, At as formatEventDateTime, B as decideEventRegistrationPayment, Bt as withOccurrenceTitle, C as bookingEntry, Ct as confirmationPaymentRows, D as panelShouldOpen, Dt as findSelectedTicketType, E as getEventSelectionMode, Et as areEntitlementsDisabledForTicketCount, F as decideEventChoice, Ft as getPortalSubjectEmail, G as planRegistrationDetailsContinuation, Gn as getEventAvailability, Gt as getTicketSelectionTotal, H as fullyBookedLabel, Hn as canJoinEventWaitlistOnAnyMode, Ht as canRequestTicketOption, I as getDeclinedPass, It as getTicketTypeAvailabilityLabel, J as resolveRegistrationAvailabilityBlocker, Jn as isEventFull, Jt as normalizeTicketSelectionLines, K as resolveGuestNextStepCheck, Kt as getTicketTypeLineMax, L as isRegistrationLocked, Lt as getVisibleTicketTypes, M as registrationStepLabelContext, Mt as formatRegistrationSchedule, N as areEventRegistrationPaymentSelectionsEqual, Ni as assertNever$1, Nt as formatTime, O as registrationPaymentRoute, Oi as publicEventPricingCurrency, On as formatEventPriceDisplay, Ot as formatBookingWhen, P as createInitialRegistrationFlowState, Pt as getImplicitSingleTicketType, Q as isEventRegistrationAvailable, Qt as toWholeSeriesRegistrationEvents, R as registrationFlowReducer, Rt as occurrenceTitleOverride, S as bookingCardEntry, St as validateFormData, T as bookingPanelHeading, Tr as assertNever, Tt as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, U as placeCountCeiling, Ut as getSingleSelectedPricingOptionId, V as shouldPromptForLogin, Vn as canJoinEventWaitlist, Vt as formatPrice, W as planRegistrationDetailsCheck, Wt as getTicketLineQuantity, X as settledRemainingPlaces, Xn as selectMostOpenCapacitySource, Xt as getRegistrationStartAt, Y as resolveRegistrationTicketContinuation, Yn as selectEventCapacitySource, Yt as setTicketLineQuantity, Z as visitorHoldsOwnPlace, Zn as groupPublicEventsByRun, Zt as toRegistrationEvents, _ as buildEventRegistrationDisplayFromScopedEvents, _t as getRegistrationOccurrenceId, at as paymentChoicePrice, b as DEFAULT_BOOKING_BUTTON_TEXT, bt as parseCurrencyInputToCents, cr as getRegistrationSuccessCopy, ct as resolveEventRequiresPayment, dt as toRegistrationRequestSubject, en as shownVenue, et as resolveEventRegistrationSubmitPlan, ft as beginWaitlistInvitation, gi as resolveBookingSignupOffer, gt as getEligibilityFlowFlags, ht as formatCentsAsCurrencyInput, it as paymentChoiceDetails, j as registrationStepLabel, ji as publicEventPricingType, jt as formatPassCreditUsageLabel, k as registrationPresentation, kt as formatDate, lt as resolveRegistrationTarget, mt as invitationSubmission, oi as eventRegistrationErrors, ot as findPreSelectedEvent, pt as createRegistrationDraftData, q as resolveRegistrationAdmission, qn as getRemainingPlaces, qt as hasValidPricingOptionSelection, rn as resolveEventRegistrationScopedEvents, si as parseEventRegistrationErrorReason, st as resolveDiscountContext, t as defineIslandPropsDecoder, tt as calculateEventRegistrationPreviewTotal, ut as resolveRouteRequiresPayment, v as displayButtonText, vt as getSlidingScaleForEvent, w as bookingEntryProgress, wt as resolveFinishedPresentation, x as bookingBarPlacement, xt as shouldLoadRegistrationOptions, y as offeringNounForEvent, yt as getSlidingScaleSelectionMessage, z as buildEventRegistrationPaymentOptionsViewModel, zt as transformRegistrationOptionsResponse } from "./propsDecoder-BRKz13eg.mjs";
3
- import { _ as eventSiteTermsSurface, a as requestDemoPortalMagicLink, g as useSiteTermsAgreement, h as siteTermsFailureKind, i as buildPortalCallbackUrl, o as SiteTermsAgreementField, p as storeDemoBookingPass, r as CUSTOMER_PORTAL_PATH, s as SiteTermsChangedNotice, t as BookingConfirmation, v as DiscountCodeDisclosure } from "./DemoBookingPortalAccess-DEsn5F2C.mjs";
4
- import { n as ThemedButton, o as SpinnerNode, r as ThemedButtonLink } from "./ThemedButton-Ckj0Rfr_.mjs";
2
+ import { $ as normalizeEventRegistrationMaxTickets, $t as placesLeftLabel, A as registrationRoute, Ai as publicEventPricingStrategy, At as formatEventDateTime, B as decideEventRegistrationPayment, Bn as canJoinEventWaitlist, Bt as withOccurrenceTitle, C as bookingEntry, Ct as confirmationPaymentRows, D as panelShouldOpen, Dn as formatEventPriceDisplay, Dt as findSelectedTicketType, E as getEventSelectionMode, Et as areEntitlementsDisabledForTicketCount, F as decideEventChoice, Ft as getPortalSubjectEmail, G as planRegistrationDetailsContinuation, Gt as getTicketSelectionTotal, H as fullyBookedLabel, Ht as canRequestTicketOption, I as getDeclinedPass, It as getTicketTypeAvailabilityLabel, J as resolveRegistrationAvailabilityBlocker, Jn as selectEventCapacitySource, Jt as normalizeTicketSelectionLines, K as resolveGuestNextStepCheck, Kn as getRemainingPlaces, Kt as getTicketTypeLineMax, L as isRegistrationLocked, Lt as getVisibleTicketTypes, M as registrationStepLabelContext, Mt as formatRegistrationSchedule, N as areEventRegistrationPaymentSelectionsEqual, Ni as assertNever$1, Nt as formatTime, O as registrationPaymentRoute, Oi as publicEventPricingCurrency, Ot as formatBookingWhen, P as createInitialRegistrationFlowState, Pt as getImplicitSingleTicketType, Q as isEventRegistrationAvailable, Qt as toWholeSeriesRegistrationEvents, R as registrationFlowReducer, Rt as occurrenceTitleOverride, S as bookingCardEntry, St as validateFormData, T as bookingPanelHeading, Tt as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, U as placeCountCeiling, Ut as getSingleSelectedPricingOptionId, V as shouldPromptForLogin, Vn as canJoinEventWaitlistOnAnyMode, Vt as formatPrice, W as planRegistrationDetailsCheck, Wn as getEventAvailability, Wt as getTicketLineQuantity, X as settledRemainingPlaces, Xn as groupPublicEventsByRun, Xt as getRegistrationStartAt, Y as resolveRegistrationTicketContinuation, Yn as selectMostOpenCapacitySource, Yt as setTicketLineQuantity, Z as visitorHoldsOwnPlace, Zt as toRegistrationEvents, _ as buildEventRegistrationDisplayFromScopedEvents, _t as getRegistrationOccurrenceId, ai as eventRegistrationErrors, at as paymentChoicePrice, b as DEFAULT_BOOKING_BUTTON_TEXT, bt as parseCurrencyInputToCents, ct as resolveEventRequiresPayment, di as resolveBookingSignupOffer, dt as toRegistrationRequestSubject, en as shownVenue, et as resolveEventRegistrationSubmitPlan, ft as beginWaitlistInvitation, gt as getEligibilityFlowFlags, ht as formatCentsAsCurrencyInput, it as paymentChoiceDetails, j as registrationStepLabel, ji as publicEventPricingType, jt as formatPassCreditUsageLabel, k as registrationPresentation, kt as formatDate, lt as resolveRegistrationTarget, mt as invitationSubmission, oi as parseEventRegistrationErrorReason, ot as findPreSelectedEvent, pt as createRegistrationDraftData, q as resolveRegistrationAdmission, qn as isEventFull, qt as hasValidPricingOptionSelection, rn as resolveEventRegistrationScopedEvents, sr as getRegistrationSuccessCopy, st as resolveDiscountContext, t as defineIslandPropsDecoder, tt as calculateEventRegistrationPreviewTotal, ut as resolveRouteRequiresPayment, v as displayButtonText, vt as getSlidingScaleForEvent, w as bookingEntryProgress, wr as assertNever, wt as resolveFinishedPresentation, x as bookingBarPlacement, xt as shouldLoadRegistrationOptions, y as offeringNounForEvent, yt as getSlidingScaleSelectionMessage, z as buildEventRegistrationPaymentOptionsViewModel, zt as transformRegistrationOptionsResponse } from "./propsDecoder-Dn68GoQZ.mjs";
3
+ import { _ as eventSiteTermsSurface, a as requestDemoPortalMagicLink, g as useSiteTermsAgreement, h as siteTermsFailureKind, i as buildPortalCallbackUrl, o as SiteTermsAgreementField, p as storeDemoBookingPass, r as CUSTOMER_PORTAL_PATH, s as SiteTermsChangedNotice, t as BookingConfirmation, v as DiscountCodeDisclosure } from "./DemoBookingPortalAccess-7BPVzfLU.mjs";
4
+ import { n as ThemedButton, o as SpinnerNode, r as ThemedButtonLink } from "./ThemedButton-CTgpAXfL.mjs";
5
5
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DS92SRVZ.mjs";
6
6
  import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
7
7
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
8
- import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Dm2EUa03.mjs";
9
- import { a as useBookingNowIso, i as usePolling, n as BookingConsentAgreement, o as StepIndicator$1, r as PaymentChoiceRows, t as BookingMailingListNote } from "./BookingMailingListNote-CiW1dsz7.mjs";
10
- import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-BOs0m_iw.mjs";
8
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-BZ02FBrV.mjs";
9
+ import { a as useBookingNowIso, i as usePolling, n as BookingConsentAgreement, o as StepIndicator$1, r as PaymentChoiceRows, t as BookingMailingListNote } from "./BookingMailingListNote-B9mP3Io9.mjs";
10
+ import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-ByZBoKdq.mjs";
11
11
  import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
12
- import { t as CheckboxChoice } from "./CheckboxChoice-CUnPrBlC.mjs";
12
+ import { t as CheckboxChoice } from "./CheckboxChoice-Bz6wLaBl.mjs";
13
13
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
14
14
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
15
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-slAAILQ5.mjs";
15
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DeBuevOO.mjs";
16
16
  import { t as createLucideIcon } from "./createLucideIcon-PaLVMov4.mjs";
17
17
  import { t as ModalShell } from "./ModalShell-BXzucfR6.mjs";
18
18
  import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CT8yg_UB.mjs";
@@ -479,7 +479,7 @@ function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId },
479
479
  requestIdRef.current = requestId;
480
480
  dispatch({ type: "loading-started" });
481
481
  try {
482
- const events = await api.getPortalEvents({ occurrenceId });
482
+ const { registrations: events } = await api.getPortalEvents({ occurrenceId });
483
483
  if (cancelled || requestIdRef.current !== requestId) return;
484
484
  dispatch({
485
485
  type: "resolved",
@@ -3862,7 +3862,7 @@ function EventRegistrationWizardActions(props) {
3862
3862
  }
3863
3863
  //#endregion
3864
3864
  //#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
3865
- const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-DAhQs6Jb.mjs"));
3865
+ const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-CV31Qvn2.mjs"));
3866
3866
  /** The one Stripe mount, shared by the standard wizard and headless arrangements. */
3867
3867
  function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
3868
3868
  if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
@@ -5692,7 +5692,7 @@ function StepIndicator(props) {
5692
5692
  //#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
5693
5693
  /** Download effects happen only after a click, including in editor preview. */
5694
5694
  async function downloadCalendar(calendar) {
5695
- const { renderCalendarFeedIcs } = await import("./propsDecoder-BRKz13eg.mjs").then((n) => n.Pr);
5695
+ const { renderCalendarFeedIcs } = await import("./propsDecoder-Dn68GoQZ.mjs").then((n) => n.Nr);
5696
5696
  const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
5697
5697
  const link = document.createElement("a");
5698
5698
  link.href = url;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { $n as listLookControl, Dr as err, Or as ok, Tr as assertNever, er as listLookSlot, ii as clsx, t as defineIslandPropsDecoder } from "./propsDecoder-BRKz13eg.mjs";
3
- import { n as ThemedButton } from "./ThemedButton-Ckj0Rfr_.mjs";
2
+ import { $n as listLookSlot, Dr as ok, Er as err, Qn as listLookControl, ri as clsx, t as defineIslandPropsDecoder, wr as assertNever } from "./propsDecoder-Dn68GoQZ.mjs";
3
+ import { n as ThemedButton } from "./ThemedButton-CTgpAXfL.mjs";
4
4
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
5
- import { n as useBlockApi, t as BlockApiProvider } from "./context-BOs0m_iw.mjs";
5
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-ByZBoKdq.mjs";
6
6
  import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
7
- import { t as CheckboxChoice } from "./CheckboxChoice-CUnPrBlC.mjs";
7
+ import { t as CheckboxChoice } from "./CheckboxChoice-Bz6wLaBl.mjs";
8
8
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
9
9
  import { useReducer, useRef, useState } from "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -342,7 +342,7 @@ const FormNodeClient = ({ render }) => {
342
342
  /* @__PURE__ */ jsx("input", {
343
343
  type: "text",
344
344
  name: "company",
345
- className: "hidden",
345
+ className: "rb-hidden",
346
346
  tabIndex: -1,
347
347
  autoComplete: "off"
348
348
  }),
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { nn as staticHeaderChromeRuntime, r as buildCartDisplay, t as defineIslandPropsDecoder } from "./propsDecoder-BRKz13eg.mjs";
3
- import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-Ckj0Rfr_.mjs";
2
+ import { nn as staticHeaderChromeRuntime, r as buildCartDisplay, t as defineIslandPropsDecoder } from "./propsDecoder-Dn68GoQZ.mjs";
3
+ import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-CTgpAXfL.mjs";
4
4
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
5
- import { n as useCommerceCart } from "./shop-commerce-store-H_HFPFZ8.mjs";
5
+ import { n as useCommerceCart } from "./shop-commerce-store-B2-DIPbg.mjs";
6
6
  import { t as ModalShell } from "./ModalShell-BXzucfR6.mjs";
7
7
  import * as React$1 from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";