@riverbankcms/sdk 0.177.0 → 0.178.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 (198) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-sYraeqm9.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-C9i27wZA.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
  4. package/dist/_dts/{client-K6UhbL3t.d.ts → client-BnYN6XsH.d.ts} +31 -7
  5. package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-CXj6lp3d.d.ts} +2 -2
  6. package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DwMHeYmQ.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
  9. package/dist/_dts/{index-BpAW9AKB.d.ts → index-0HFgCnGz.d.ts} +1 -1
  10. package/dist/_dts/{index-CX9bp60k.d.ts → index-BE9dWIsr.d.ts} +3 -3
  11. package/dist/_dts/{index-Bygd2RCg.d.ts → index-CKDRr54L.d.ts} +4 -4
  12. package/dist/_dts/{index-BMGif2r3.d.ts → index-D9-N1d9v.d.ts} +1 -1
  13. package/dist/_dts/{index--n-wV8Xd.d.ts → index-DCa-8TEY.d.ts} +1 -1
  14. package/dist/_dts/{index-BLseXObg.d.ts → index-cTpvQg_Q.d.ts} +2 -2
  15. package/dist/_dts/{index-CBRbZJ6u.d.ts → index-nnEdgc3Z.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
  17. package/dist/_dts/{request-Bf9YImJw.d.ts → request-B20VRWHH.d.ts} +491 -43
  18. package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DkzWvFbG.d.ts → resolvePageContent-YT6ndha1.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +24 -12
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +56 -4
  38. package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  55. package/dist/_dts/{types-BdZ5pJSk.d.ts → types-CMZ5mkpv.d.ts} +2 -2
  56. package/dist/_dts/{types-DgV8P2mz.d.ts → types-CYcd15BQ.d.ts} +7 -7
  57. package/dist/_dts/{types-C1l2Sm2h.d.ts → types-rm2M4LGx.d.ts} +3 -3
  58. package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-BSxnRhyy.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
  61. package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
  62. package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
  63. package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
  64. package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
  65. package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
  67. package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
  68. package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
  71. package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
  72. package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
  73. package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
  74. package/dist/client/{Page-C03rc6jw.mjs → Page-DqETUt-U.mjs} +12 -12
  75. package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
  76. package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
  77. package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
  78. package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
  79. package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
  80. package/dist/client/bookings.mjs +5 -5
  81. package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
  82. package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
  83. package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
  84. package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
  85. package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
  86. package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
  87. package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
  88. package/dist/client/client.mjs +59 -5
  89. package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
  90. package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
  91. package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
  93. package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
  94. package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
  95. package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
  96. package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
  97. package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
  98. package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
  99. package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
  100. package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
  101. package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
  102. package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
  103. package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
  104. package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
  105. package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
  106. package/dist/client/gifting/client.mjs +6 -5
  107. package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
  108. package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
  109. package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
  110. package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
  111. package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
  112. package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
  113. package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
  114. package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
  115. package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
  116. package/dist/client/portal/client.mjs +344 -19
  117. package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
  118. package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
  119. package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
  120. package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
  121. package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
  122. package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
  123. package/dist/client/rendering/client.mjs +23 -23
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +7 -7
  126. package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
  128. package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
  129. package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
  130. package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
  131. package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
  132. package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
  133. package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
  134. package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
  135. package/dist/client/src-DqMbCjI1.mjs +3 -0
  136. package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
  137. package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
  138. package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
  139. package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
  140. package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
  141. package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
  142. package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
  143. package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-D-Le7O3o.mjs} +3 -3
  144. package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +15 -13
  145. package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-CzJvgbqt.mjs} +4 -4
  146. package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-xhJ6ca1i.mjs} +5 -5
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +5 -5
  148. package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-BN93X9o1.mjs} +1141 -596
  149. package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
  150. package/dist/preview-next/client/runtime.mjs +3 -3
  151. package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
  152. package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-BGTAcPud.mjs} +1 -1
  153. package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
  154. package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
  155. package/dist/preview-next/client/{useAutosaveStatus-R1rZ9-IZ.mjs → useAutosaveStatus-BMGXjGZq.mjs} +1 -1
  156. package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +1 -1
  157. package/dist/preview-next/keepAlive.mjs +1 -1
  158. package/dist/preview-next/middleware.mjs +1 -1
  159. package/dist/preview-next/{route-contract-BSSbtz6A.mjs → route-contract-BtdzkSUg.mjs} +55 -1
  160. package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
  161. package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
  162. package/dist/server/{client-BPLLL22F.mjs → client-Bf06n9oj.mjs} +56 -2
  163. package/dist/server/config-validation.mjs +1 -1
  164. package/dist/server/config.mjs +2 -2
  165. package/dist/server/constants-Cj7hfbrA.mjs +41 -0
  166. package/dist/server/data/resolveBlockData.mjs +1 -1
  167. package/dist/server/index.mjs +2 -2
  168. package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
  169. package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
  170. package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
  171. package/dist/server/navigation.mjs +1 -1
  172. package/dist/server/next.mjs +56 -13
  173. package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
  174. package/dist/server/page-converter.mjs +1 -1
  175. package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
  176. package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
  177. package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-tz-GVWft.mjs} +85 -37
  178. package/dist/server/portal-B4JVkdjc.mjs +783 -0
  179. package/dist/server/portal.mjs +3 -3
  180. package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-JmsuYCIH.mjs} +1 -1
  181. package/dist/server/prebuild.mjs +1 -1
  182. package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
  183. package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
  184. package/dist/server/rendering/components/pageShared.mjs +1 -1
  185. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  186. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  187. package/dist/server/rendering/server.mjs +3 -3
  188. package/dist/server/rendering.mjs +7 -7
  189. package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
  190. package/dist/server/server.mjs +3 -3
  191. package/dist/server/{validation-BvHio6QI.mjs → validation-CLq5cw6M.mjs} +3 -3
  192. package/dist/server/{version-SuFlio6n.mjs → version-oPbhAx8E.mjs} +1 -1
  193. package/dist/styles/index.css +19 -0
  194. package/package.json +1 -1
  195. package/dist/client/src-BozhJ43Z.mjs +0 -3
  196. package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
  197. package/dist/server/constants-hl17xz6x.mjs +0 -22
  198. package/dist/server/portal-BjVHMAUC.mjs +0 -371
@@ -1,24 +1,23 @@
1
1
  "use client";
2
- import { L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText, at as bookingEntryProgress, dt as cancelledDateCopy, ft as hasCancelledRegistrationDate, it as bookingEntry, j as buildEventRegistrationDisplayFromScopedEvents, ln as formatEventPriceDisplay, nt as bookingBarPlacement, ot as bookingPanelHeading, rt as bookingCardEntry, st as courseTitleOf, tt as DEFAULT_BOOKING_BUTTON_TEXT } from "./shop.interactive-CxDJ8P2r.mjs";
3
- import { A as areEventRegistrationPaymentSelectionsEqual, C as getEventSelectionMode, Cn as combinationOfferLine, Cr as shownVenue, Di as getRegistrationSuccessCopy, Dn as selectionItemName, Dt as resolveFinishedPresentation, Et as confirmationPaymentRows, Fn as formatDate, Hn as getTicketTypeAvailabilityLabel, In as formatEventDateTime, J as settledRemainingPlaces, Jt as SEVERAL_BOOKINGS_ACCOUNT_NOTE, K as resolveRegistrationAvailabilityBlocker, Kn as withOccurrenceTitle, Ln as formatPassCreditUsageLabel, Mn as areEntitlementsDisabledForTicketCount, Mo as INCOMPATIBLE_ATTENDANCE_MESSAGE, O as registrationStepLabel, Pn as formatBookingWhen, Q as normalizeEventRegistrationMaxTickets, Qa as resolveEventRegistrationScopedEvents, R as shouldPromptForLogin, Rn as formatRegistrationSchedule, Ui as formatCentsAsCurrencyInput, Un as getVisibleTicketTypes, V as placeCountCeiling, Wi as formatPrice, Wn as occurrenceTitleOverride, Yt as canToggleSelectionItem, Z as isEventRegistrationAvailable, _n as severalConfirmationSentence, _o as getRemainingPlaces, an as runUnitPriceCents, ar as getTicketLineQuantity, bo as selectMostOpenCapacitySource, br as placesLeftLabel, cn as selectionConsentLabel, ct as paymentChoicePrice, do as canJoinEventWaitlistOnAnyMode, fn as selectionItemsLabel, hn as selectionRowAvailability, ho as getEventAvailability, in as runPricingChoice, is as publicEventPricingCurrency, jn as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, k as registrationStepLabelContext, ln as selectionEntitlementNote, mn as selectionPlacesNote, nn as runChoiceUsable, on as selectionAtLimit, or as getTicketSelectionTotal, os as publicEventPricingStrategy, pn as selectionPlacesLabel, qt as SELECTION_LIMIT_NOTE, rn as runNeedsPricingChoice, rr as canRequestTicketOption, sn as selectionConfirmationHint, sr as getTicketTypeLineMax, ss as publicEventPricingType, st as paymentChoiceDetails, t as appliedDiscountHint, un as selectionIncludes, uo as canJoinEventWaitlist, ur as setTicketLineQuantity, vo as isEventFull, w as panelShouldOpen, wn as combinationOffersOf, xo as groupPublicEventsByRun, yo as selectEventCapacitySource, yr as bookingPresentation, z as fullyBookedLabel, zn as formatTime } from "./display-4HYOb-AK.mjs";
4
- import { bn as formatCurrencyAmount, n as assertNever } from "./noop-CaQxI-Js.mjs";
2
+ import { L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText, at as bookingEntryProgress, cn as formatEventPriceDisplay, dt as hasCancelledRegistrationDate, it as bookingEntry, j as buildEventRegistrationDisplayFromScopedEvents, nt as bookingBarPlacement, ot as bookingPanelHeading, rt as bookingCardEntry, st as courseTitleOf, tt as DEFAULT_BOOKING_BUTTON_TEXT, ut as cancelledDateCopy } from "./shop.interactive-D7wky1GL.mjs";
3
+ import { A as areEventRegistrationPaymentSelectionsEqual, Bn as formatTime, C as getEventSelectionMode, Co as isEventFull, Dt as confirmationPaymentRows, Fn as formatBookingWhen, Gn as occurrenceTitleOverride, In as formatDate, J as settledRemainingPlaces, Ji as formatPrice, Jt as SELECTION_LIMIT_NOTE, K as resolveRegistrationAvailabilityBlocker, Ln as formatEventDateTime, Lo as INCOMPATIBLE_ATTENDANCE_MESSAGE, Mn as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, Nn as areEntitlementsDisabledForTicketCount, O as registrationStepLabel, On as selectionItemName, Ot as resolveFinishedPresentation, Q as normalizeEventRegistrationMaxTickets, R as shouldPromptForLogin, Rn as formatPassCreditUsageLabel, So as getRemainingPlaces, Tn as combinationOffersOf, To as selectMostOpenCapacitySource, Un as getTicketTypeAvailabilityLabel, V as placeCountCeiling, Wn as getVisibleTicketTypes, Xt as canToggleSelectionItem, Yt as SEVERAL_BOOKINGS_ACCOUNT_NOTE, Z as isEventRegistrationAvailable, an as runPricingChoice, bo as getEventAvailability, br as bookingPresentation, cn as selectionConfirmationHint, cr as getTicketTypeLineMax, ct as paymentChoicePrice, dn as selectionIncludes, dr as setTicketLineQuantity, ds as publicEventPricingStrategy, fs as publicEventPricingType, gn as selectionRowAvailability, go as canJoinEventWaitlistOnAnyMode, hn as selectionPlacesNote, ho as canJoinEventWaitlist, in as runNeedsPricingChoice, ir as canRequestTicketOption, ji as getRegistrationSuccessCopy, k as registrationStepLabelContext, ln as selectionConsentLabel, ls as publicEventPricingCurrency, mn as selectionPlacesLabel, no as resolveEventRegistrationScopedEvents, on as runUnitPriceCents, or as getTicketLineQuantity, pn as selectionItemsLabel, qi as formatCentsAsCurrencyInput, qn as withOccurrenceTitle, rn as runChoiceUsable, sn as selectionAtLimit, sr as getTicketSelectionTotal, st as paymentChoiceDetails, t as appliedDiscountHint, un as selectionEntitlementNote, vn as severalConfirmationSentence, w as panelShouldOpen, wn as combinationOfferLine, wo as selectEventCapacitySource, wr as shownVenue, xr as placesLeftLabel, z as fullyBookedLabel, zn as formatRegistrationSchedule } from "./display-D1oVR5Eh.mjs";
4
+ import { Sn as formatCurrencyAmount, n as assertNever } from "./noop-D11X-B6n.mjs";
5
5
  import { g as formatCreditProductUnits } from "./creditProducts-BQ1t1erI.mjs";
6
- import { a as eventSiteTermsSurface, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BYACYP0T.mjs";
7
- import { n as useBlockApi } from "./context-R9p5c8IH.mjs";
6
+ import { a as eventSiteTermsSurface, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-DkFnbzf_.mjs";
7
+ import { n as useBlockApi } from "./context-CJIz4FdL.mjs";
8
8
  import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
9
- import { f as NavigationHandOffPanel, p as DiscountCodeDisclosure, t as BookingConfirmation } from "./DemoBookingPortalAccess-C9Ggcfx3.mjs";
10
- import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-B2EikR3f.mjs";
9
+ import { f as NavigationHandOffPanel, p as DiscountCodeDisclosure, t as BookingConfirmation } from "./DemoBookingPortalAccess-Olvrwi3Z.mjs";
10
+ import { a as planEventRegistrationSurface, i as useEventRegistrationRecoveryRequest, o as registrationAdmissionSurface, r as useEventRegistrationWizard, s as resolveEventRegistrationClientSurface, t as EventPaymentMount } from "./EventRegistrationPayment-BVd70XkH.mjs";
11
11
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
12
12
  import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
13
13
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
14
14
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
15
15
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
16
- import { i as useBookingNowIso } from "./BookingQuestionFields-MbvIo2jS.mjs";
17
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-I_mXI9Yd.mjs";
16
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-B9DODAkj.mjs";
18
17
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
19
- import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-CDDWrY_W.mjs";
18
+ import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-DSD4gS96.mjs";
20
19
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
21
- import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-Bb7rPtSq.mjs";
20
+ import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-JO2PS03n.mjs";
22
21
  import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
23
22
  import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
24
23
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -89,76 +88,6 @@ function LoggedInAsUser({ email, onLogout, classPrefix }) {
89
88
  });
90
89
  }
91
90
  //#endregion
92
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationSurface.ts
93
- /** Admission only limits fresh bookings; existing purchases always reach recovery. */
94
- function registrationAdmissionSurface(input) {
95
- if (input.recoveryRequested) return "registration";
96
- switch (input.availability) {
97
- case "open": return "registration";
98
- case "closed": return "closed";
99
- case "empty": return "empty";
100
- default: return assertNever(input.availability);
101
- }
102
- }
103
- /** Resolve the host guard once; past-date notices only concern new bookings. */
104
- function resolveEventRegistrationClientSurface(input) {
105
- if (input.recoveryRequest !== "none") return { kind: "wizard" };
106
- switch (input.plan.kind) {
107
- case "wholeSeries": return { kind: "wizard" };
108
- case "unavailableWholeSeries":
109
- case "mixedBookingScopes": return { kind: "unavailable" };
110
- case "occurrence": return input.pastStartsAt ? {
111
- kind: "past",
112
- startsAt: input.pastStartsAt
113
- } : { kind: "wizard" };
114
- default: return assertNever(input.plan);
115
- }
116
- }
117
- /**
118
- * Whether a run agrees with the offering whose page it arrived on.
119
- *
120
- * Scoping has already restricted the events to the subject's series, so the
121
- * series set needs no second check here. What is still worth checking is the
122
- * run's own idea of its parent: a run that claims a different offering means
123
- * the page and the data disagree about who owns it, and the surface fails
124
- * closed rather than taking a booking against an offering it cannot vouch for.
125
- */
126
- function agreesWithSubjectOffering(run, subject) {
127
- if (subject?.kind !== "eventOffering") return true;
128
- return run.run.eventOfferingId === subject.eventOfferingId;
129
- }
130
- /**
131
- * Subjects whose page only ever registers for a whole run.
132
- *
133
- * The subject's own booking scope decides, for an offering exactly as for a
134
- * series: an ordinary offering with no dates is a normal empty state, not a
135
- * whole-series page with nothing bookable.
136
- */
137
- function isWholeSeriesSubject(subject) {
138
- return (subject?.kind === "eventOffering" || subject?.kind === "eventSeries") && subject.bookingScope === "whole_series";
139
- }
140
- function planEventRegistrationSurface(input) {
141
- const scopedEvents = resolveEventRegistrationScopedEvents(input.events, {
142
- occurrenceContext: input.occurrenceContext,
143
- subject: input.subject
144
- });
145
- const bookingScopes = new Set(scopedEvents.map((event) => event.bookingScope));
146
- if (scopedEvents.length === 0 && isWholeSeriesSubject(input.subject)) return { kind: "unavailableWholeSeries" };
147
- if (!input.occurrenceContext && !input.subject && bookingScopes.has("single_occurrence")) return {
148
- kind: "occurrence",
149
- events: scopedEvents.filter((event) => event.bookingScope === "single_occurrence")
150
- };
151
- if (bookingScopes.size === 0 || bookingScopes.has("single_occurrence")) return bookingScopes.has("whole_series") ? { kind: "mixedBookingScopes" } : {
152
- kind: "occurrence",
153
- events: scopedEvents
154
- };
155
- const runs = groupPublicEventsByRun(scopedEvents);
156
- return runs.every((run) => agreesWithSubjectOffering(run, input.subject)) && runs.length > 0 ? {
157
- kind: "wholeSeries",
158
- runs
159
- } : { kind: "unavailableWholeSeries" };
160
- }
161
- //#endregion
162
91
  //#region ../blocks/src/system/runtime/nodes/event-registration/useBookingBarFacts.ts
163
92
  /** The CSS variable the bar reads its push from (`translateY`). */
164
93
  const BOOKING_BAR_PUSH_VAR = "--er-bar-push";
@@ -2198,16 +2127,20 @@ const EventSelectionStep = (props) => {
2198
2127
  });
2199
2128
  if (getEventSelectionMode(events) === "date") return /* @__PURE__ */ jsxs("div", {
2200
2129
  className: "rb-reg-stack er-stack",
2201
- children: [/* @__PURE__ */ jsx("h3", {
2202
- tabIndex: -1,
2203
- className: "er-title",
2204
- children: "Choose a date"
2205
- }), /* @__PURE__ */ jsx(DateSelectionList, {
2206
- events: [...events].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt)),
2207
- selectedEvent,
2208
- display,
2209
- onChoose
2210
- })]
2130
+ children: [
2131
+ /* @__PURE__ */ jsx("h3", {
2132
+ tabIndex: -1,
2133
+ className: "er-title",
2134
+ children: "Choose a date"
2135
+ }),
2136
+ /* @__PURE__ */ jsx(BookingCloseLine, { events }),
2137
+ /* @__PURE__ */ jsx(DateSelectionList, {
2138
+ events: [...events].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt)),
2139
+ selectedEvent,
2140
+ display,
2141
+ onChoose
2142
+ })
2143
+ ]
2211
2144
  });
2212
2145
  return /* @__PURE__ */ jsx(EventList, {
2213
2146
  events,
@@ -2283,6 +2216,14 @@ function EventListCard({ event, selected, onSelect, display }) {
2283
2216
  })
2284
2217
  });
2285
2218
  }
2219
+ /** When bookings close, inside the booking card, if the cut-off is earlier than the start. */
2220
+ function BookingCloseLine({ events }) {
2221
+ const line = events.find((event) => event.bookingCloseLine)?.bookingCloseLine;
2222
+ return line ? /* @__PURE__ */ jsx("p", {
2223
+ className: "er-text er-text--muted",
2224
+ children: line
2225
+ }) : null;
2226
+ }
2286
2227
  const SEVERAL_HEADINGS = {
2287
2228
  dates: {
2288
2229
  title: "Choose dates",
@@ -2320,6 +2261,7 @@ function SeveralSelection(props) {
2320
2261
  className: "er-text er-text--muted er-selection-lede",
2321
2262
  children: heading.lede
2322
2263
  }),
2264
+ /* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
2323
2265
  /* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
2324
2266
  /* @__PURE__ */ jsx("div", {
2325
2267
  className: "er-date-list",
@@ -3181,7 +3123,7 @@ function entitlementRows(props) {
3181
3123
  //#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
3182
3124
  /** Download effects happen only after a click, including in editor preview. */
3183
3125
  async function downloadCalendar(calendar) {
3184
- const { renderCalendarFeedIcs } = await import("./src-BozhJ43Z.mjs");
3126
+ const { renderCalendarFeedIcs } = await import("./src-DqMbCjI1.mjs");
3185
3127
  const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
3186
3128
  const link = document.createElement("a");
3187
3129
  link.href = url;
@@ -3702,6 +3644,11 @@ function ticketStepInvitation(claim) {
3702
3644
  expiresAt: claim.claim.expiresAt
3703
3645
  } : { kind: "pending" };
3704
3646
  }
3647
+ /** With a date to pick, the choosing step has already said it. */
3648
+ function TicketStepBookingCloseLine({ wizard }) {
3649
+ if (wizard.scopedEvents.length > 1 || wizard.waitlistClaim.kind !== "none") return null;
3650
+ return /* @__PURE__ */ jsx(BookingCloseLine, { events: wizard.scopedEvents });
3651
+ }
3705
3652
  function TicketSelectionContent({ wizard, display }) {
3706
3653
  if (!wizard.selectedEvent && !wizard.occurrenceContext) return null;
3707
3654
  const isWaitlisted = wizard.admission.kind === "closed" && wizard.admission.reason === "alreadyWaitlisted";
@@ -3716,6 +3663,7 @@ function TicketSelectionContent({ wizard, display }) {
3716
3663
  onBookForSomeoneElse: wizard.handleBookForSomeoneElse
3717
3664
  }),
3718
3665
  /* @__PURE__ */ jsx(ClosedAdmissionNotice, { wizard }),
3666
+ /* @__PURE__ */ jsx(TicketStepBookingCloseLine, { wizard }),
3719
3667
  wizard.severalItems === "runs" ? /* @__PURE__ */ jsx(SeveralRunsTicketStep, {
3720
3668
  wizard,
3721
3669
  display
@@ -4209,6 +4157,46 @@ function signInBenefitsTitle(benefits) {
4209
4157
  return benefits.credit ? "Have credit on your account?" : null;
4210
4158
  }
4211
4159
  //#endregion
4160
+ //#region ../blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.tsx
4161
+ function getParentPathname(pathname) {
4162
+ const segments = pathname.split("/").filter(Boolean);
4163
+ if (segments.length < 2) return null;
4164
+ return `/${segments.slice(0, -1).join("/")}`;
4165
+ }
4166
+ function PastOccurrenceNotice(props) {
4167
+ const [parentPathname, setParentPathname] = useState(null);
4168
+ useEffect(() => {
4169
+ setParentPathname(getParentPathname(window.location.pathname));
4170
+ }, []);
4171
+ return /* @__PURE__ */ jsx("div", {
4172
+ id: props.anchorId,
4173
+ className: `event-registration ${props.className || ""}`,
4174
+ "data-block": "event-registration",
4175
+ children: /* @__PURE__ */ jsxs("div", {
4176
+ className: "er-empty",
4177
+ children: [/* @__PURE__ */ jsxs("p", {
4178
+ className: "er-empty__text",
4179
+ children: [
4180
+ "This event date (",
4181
+ formatEventDateTime(props.startsAt, {
4182
+ timeZone: props.timeZone,
4183
+ siteTimeZone: props.siteTimeZone,
4184
+ deliveryMode: props.deliveryMode
4185
+ }, "long"),
4186
+ ") has already started. Registration is closed."
4187
+ ]
4188
+ }), parentPathname && /* @__PURE__ */ jsx("p", {
4189
+ className: "er-empty__text",
4190
+ children: /* @__PURE__ */ jsx("a", {
4191
+ href: parentPathname,
4192
+ className: "er-link",
4193
+ children: "View other dates for this event"
4194
+ })
4195
+ })]
4196
+ })
4197
+ });
4198
+ }
4199
+ //#endregion
4212
4200
  //#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx
4213
4201
  const EVENT_PORTAL_AUTH_COPY = {
4214
4202
  membership: {
@@ -4284,11 +4272,26 @@ function useConfiguredEventRegistrationWizard(props) {
4284
4272
  }
4285
4273
  function EventRegistrationWizard(props) {
4286
4274
  const wizard = useConfiguredEventRegistrationWizard(props);
4287
- return /* @__PURE__ */ jsx(EventRegistrationWizardView, {
4275
+ return /* @__PURE__ */ jsx(EventRegistrationWizardSurface, {
4288
4276
  ...props,
4289
4277
  wizard
4290
4278
  });
4291
4279
  }
4280
+ /** Closing swaps out the booking steps only for someone who hadn't started: the hook decides who that is. */
4281
+ function EventRegistrationWizardSurface(props) {
4282
+ const closure = props.wizard.bookingClosure;
4283
+ switch (closure.kind) {
4284
+ case "open":
4285
+ case "underway": return /* @__PURE__ */ jsx(EventRegistrationWizardView, { ...props });
4286
+ case "closedEarly": return /* @__PURE__ */ jsx(RegistrationClosedState, {
4287
+ title: closure.copy.titleText,
4288
+ body: closure.copy.bodyText,
4289
+ otherDatesHref: closure.copy.otherDatesHref
4290
+ });
4291
+ case "started": return /* @__PURE__ */ jsx(PastOccurrenceNotice, { ...pastOccurrenceNoticeProps(props, closure.startsAt) });
4292
+ default: return assertNever(closure);
4293
+ }
4294
+ }
4292
4295
  /** The panel header's pinned progress, while the panel shows a step (issue 1581). */
4293
4296
  function overlayProgress(presentation, stepLabelContext) {
4294
4297
  if (presentation.layout !== "steps" || !presentation.progress) return null;
@@ -4304,6 +4307,18 @@ function overlayProgress(presentation, stepLabelContext) {
4304
4307
  function ticketStepOffersSignIn(wizard, pricingType) {
4305
4308
  return wizard.step === "select-tickets" && wizard.severalItems === null && wizard.portalAuthState !== "authenticated" && wizard.portalAuthState !== "checking" && pricingType !== "free";
4306
4309
  }
4310
+ /** Older sources can omit session facts; admission keeps the notice render-safe. */
4311
+ function pastOccurrenceNoticeProps(props, startsAt) {
4312
+ const event = props.events?.find((candidate) => candidate.occurrenceId === props.occurrenceContext?.id);
4313
+ return {
4314
+ anchorId: EVENT_REGISTRATION_ANCHOR_ID,
4315
+ className: props.className,
4316
+ startsAt,
4317
+ timeZone: props.occurrenceContext?.timeZone ?? null,
4318
+ siteTimeZone: event?.siteTimeZone ?? null,
4319
+ deliveryMode: event?.deliveryMode ?? null
4320
+ };
4321
+ }
4307
4322
  function EventRegistrationWizardView(viewProps) {
4308
4323
  const { wizard, ...props } = viewProps;
4309
4324
  const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, supportEmail } = props;
@@ -4355,7 +4370,7 @@ function EventRegistrationWizardView(viewProps) {
4355
4370
  }));
4356
4371
  const showPortalAuthPrompt = waitlistClaimRequiresPortalLogin || ticketStepOffersSignIn(wizard, summaryEventPricingType) && portalAuthCopy.title !== "";
4357
4372
  const presentation = resolveFinishedPresentation(wizard.presentation, {
4358
- events: wizard.scopedEvents,
4373
+ events: wizard.recoveryEvents,
4359
4374
  completedOutcomes: wizard.flow.completedOutcomes,
4360
4375
  draftEvent: summaryEvent ?? null,
4361
4376
  occurrenceContext: wizard.occurrenceContext,
@@ -4443,63 +4458,6 @@ function EventRegistrationWizardView(viewProps) {
4443
4458
  });
4444
4459
  }
4445
4460
  //#endregion
4446
- //#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.ts
4447
- /** Retain arrival intent while the payment controller cleans up the return URL. */
4448
- function useEventRegistrationRecoveryRequest() {
4449
- const [arrival] = useState(() => {
4450
- if (typeof window === "undefined") return "none";
4451
- if (eventRegistrationCheckoutReturnRequest(new URLSearchParams(window.location.search))) return "paymentReturn";
4452
- return getWaitlistClaimTokenFromUrl() || getWaitlistClaimEntryIdFromUrl() ? "waitlistInvitation" : "none";
4453
- });
4454
- return arrival;
4455
- }
4456
- //#endregion
4457
- //#region ../blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.tsx
4458
- function isPastOccurrence(startsAt, now) {
4459
- if (!startsAt) return false;
4460
- const startsAtTime = Date.parse(startsAt);
4461
- if (!Number.isFinite(startsAtTime)) return false;
4462
- return startsAtTime <= Date.parse(now);
4463
- }
4464
- function getParentPathname(pathname) {
4465
- const segments = pathname.split("/").filter(Boolean);
4466
- if (segments.length < 2) return null;
4467
- return `/${segments.slice(0, -1).join("/")}`;
4468
- }
4469
- function PastOccurrenceNotice(props) {
4470
- const [parentPathname, setParentPathname] = useState(null);
4471
- useEffect(() => {
4472
- setParentPathname(getParentPathname(window.location.pathname));
4473
- }, []);
4474
- return /* @__PURE__ */ jsx("div", {
4475
- id: props.anchorId,
4476
- className: `event-registration ${props.className || ""}`,
4477
- "data-block": "event-registration",
4478
- children: /* @__PURE__ */ jsxs("div", {
4479
- className: "er-empty",
4480
- children: [/* @__PURE__ */ jsxs("p", {
4481
- className: "er-empty__text",
4482
- children: [
4483
- "This event date (",
4484
- formatEventDateTime(props.startsAt, {
4485
- timeZone: props.timeZone,
4486
- siteTimeZone: props.siteTimeZone,
4487
- deliveryMode: props.deliveryMode
4488
- }, "long"),
4489
- ") has already started. Registration is closed."
4490
- ]
4491
- }), parentPathname && /* @__PURE__ */ jsx("p", {
4492
- className: "er-empty__text",
4493
- children: /* @__PURE__ */ jsx("a", {
4494
- href: parentPathname,
4495
- className: "er-link",
4496
- children: "View other dates for this event"
4497
- })
4498
- })]
4499
- })
4500
- });
4501
- }
4502
- //#endregion
4503
4461
  //#region ../blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.ts
4504
4462
  const RECOVERY_DELAYS_MS = [
4505
4463
  0,
@@ -4598,47 +4556,27 @@ function toEventRegistrationClientProps(props, display) {
4598
4556
  className: display.className ?? void 0
4599
4557
  };
4600
4558
  }
4601
- /** Older sources can omit session facts; admission keeps the notice render-safe. */
4602
- function pastOccurrenceNoticeProps(clientProps, startsAt) {
4603
- const event = clientProps.events?.find((event) => event.occurrenceId === clientProps.occurrenceContext?.id);
4604
- return {
4605
- anchorId: EVENT_REGISTRATION_ANCHOR_ID,
4606
- className: clientProps.className,
4607
- startsAt,
4608
- timeZone: clientProps.occurrenceContext?.timeZone ?? null,
4609
- siteTimeZone: event?.siteTimeZone ?? null,
4610
- deliveryMode: event?.deliveryMode ?? null
4611
- };
4612
- }
4613
4559
  const EventRegistrationClient = (clientProps) => {
4614
- const recoveryRequest = useEventRegistrationRecoveryRequest();
4615
- const surface = planEventRegistrationSurface({
4616
- events: clientProps.events ?? [],
4617
- occurrenceContext: clientProps.occurrenceContext,
4618
- subject: clientProps.subject
4619
- });
4620
- const startsAt = clientProps.occurrenceContext?.startsAt;
4621
- const presentation = resolveEventRegistrationClientSurface({
4622
- plan: surface,
4623
- recoveryRequest,
4624
- pastStartsAt: isPastOccurrence(startsAt, useBookingNowIso(clientProps.now, {
4625
- kind: "presentation",
4626
- nextBoundary: startsAt ?? null
4627
- })) ? startsAt ?? null : null
4560
+ const surface = resolveEventRegistrationClientSurface({
4561
+ recoveryRequest: useEventRegistrationRecoveryRequest(),
4562
+ plan: planEventRegistrationSurface({
4563
+ events: clientProps.events ?? [],
4564
+ occurrenceContext: clientProps.occurrenceContext,
4565
+ subject: clientProps.subject
4566
+ })
4628
4567
  });
4629
4568
  if (hasCancelledRegistrationDate(clientProps.events ?? [], clientProps.occurrenceContext?.id)) return /* @__PURE__ */ jsx(RegistrationClosedState, {
4630
4569
  title: cancelledDateCopy.titleText,
4631
4570
  body: cancelledDateCopy.bodyText
4632
4571
  });
4633
- switch (presentation.kind) {
4572
+ switch (surface) {
4634
4573
  case "wizard": return /* @__PURE__ */ jsx(EventRegistrationWizard, { ...clientProps });
4635
4574
  case "unavailable": return /* @__PURE__ */ jsx("div", {
4636
4575
  className: clientProps.className,
4637
4576
  role: "status",
4638
4577
  children: "Registration is temporarily unavailable. Please refresh the page or try again shortly."
4639
4578
  });
4640
- case "past": return /* @__PURE__ */ jsx(PastOccurrenceNotice, { ...pastOccurrenceNoticeProps(clientProps, presentation.startsAt) });
4641
- default: return assertNever(presentation);
4579
+ default: return assertNever(surface);
4642
4580
  }
4643
4581
  };
4644
4582
  const EventRegistrationIslandClient = (props) => {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
4
- import { t as EventCalendarClient } from "./EventCalendar.client-BSMuSqg0.mjs";
2
+ import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
4
+ import { t as EventCalendarClient } from "./EventCalendar.client-DwFNFb-0.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BgO0rZce.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-Bok1Oy50.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCalendar.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
4
- import { n as EventCombinedIslandClient } from "./EventCombined.client-BTrmSyUB.mjs";
2
+ import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
4
+ import { n as EventCombinedIslandClient } from "./EventCombined.client-Ffu-aVOb.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BgO0rZce.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-Bok1Oy50.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCombined.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
3
- import { t as EventDetailsIslandClient } from "./event-details.client-BwjBJP-f.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
3
+ import { t as EventDetailsIslandClient } from "./event-details.client-BwASwKIq.mjs";
4
4
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
4
- import { t as EventListingClient } from "./EventListing.client-CWk2NEwd.mjs";
2
+ import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
4
+ import { t as EventListingClient } from "./EventListing.client-ViCnrNg4.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BgO0rZce.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-Bok1Oy50.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventListing.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { n as EventRegistrationIslandClient } from "./event-registration.client-DWvSODTI.mjs";
3
- import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
2
+ import { n as EventRegistrationIslandClient } from "./event-registration.client-b6APrFQe.mjs";
3
+ import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BgO0rZce.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-Bok1Oy50.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventRegistration.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
4
- import { t as FormNodeClient } from "./form.client-BVlz-9_t.mjs";
2
+ import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
4
+ import { t as FormNodeClient } from "./form.client-CZeRQLGF.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
6
  import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
7
7
  import "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { i as ok, n as assertNever, r as err } from "./noop-CaQxI-Js.mjs";
3
- import { n as useBlockApi } from "./context-R9p5c8IH.mjs";
4
- import { r as listLookSlot } from "./lookSurfaces-BwiNdgMU.mjs";
2
+ import { i as ok, n as assertNever, r as err } from "./noop-D11X-B6n.mjs";
3
+ import { n as useBlockApi } from "./context-CJIz4FdL.mjs";
4
+ import { r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
5
5
  import { S as clsx } from "./ThemedButton-DuaYtnvG.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
7
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-TB4UIrML.mjs";
7
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DhGGv4_L.mjs";
8
8
  import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
9
9
  import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
10
10
  import { useReducer, useRef } from "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as listLookControl, r as listLookSlot } from "./lookSurfaces-BwiNdgMU.mjs";
2
+ import { n as listLookControl, r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
3
3
  import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
4
4
  import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
5
5
  import "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Jt as formatDateTime, Kt as formatDate$1, ln as parseBookingLocalDate, mn as parseUtcIsoDateTimeString } from "./noop-CaQxI-Js.mjs";
2
+ import { Jt as formatDate$1, Xt as formatDateTime, fn as parseBookingLocalDate, mn as parseUtcIsoDateTimeString } from "./noop-D11X-B6n.mjs";
3
3
  //#region ../blocks/src/bindings/formatDate.ts
4
4
  /** Admit stored civil dates or offset-aware instants before core projection. */
5
5
  function formatDate(value, context, options) {
@@ -1,11 +1,12 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Kt as formatDate, fn as resolveBookingTimeZoneId, hn as toUtcIsoDateTimeString, t as logger, xn as formatGiftCardAmountLabel } from "../noop-CaQxI-Js.mjs";
4
- import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-R9p5c8IH.mjs";
3
+ import { Cn as formatGiftCardAmountLabel, Jt as formatDate, _n as resolveBookingTimeZoneId, hn as toUtcIsoDateTimeString, t as logger } from "../noop-D11X-B6n.mjs";
4
+ import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-CJIz4FdL.mjs";
5
5
  import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-DuaYtnvG.mjs";
6
6
  import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
7
- import { s as readChosenGiftAmounts } from "../gifting.parts-CTA1sDW6.mjs";
8
- import { t as GiftingClient } from "../gifting.client-B__bGhFc.mjs";
7
+ import { s as readChosenGiftAmounts } from "../gifting.parts-ffP6mjMd.mjs";
8
+ import { n as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-6CgFZNvu.mjs";
9
+ import { t as GiftingClient } from "../gifting.client-CjT5PrAZ.mjs";
9
10
  import React from "react";
10
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
12
  import { useRouter } from "next/navigation";
@@ -138,7 +139,7 @@ function claimErrorAction(error) {
138
139
  }
139
140
  async function completeSignIn(code, props) {
140
141
  try {
141
- const response = await fetch(props.callbackPath ?? "/api/portal/callback", {
142
+ const response = await fetch(PORTAL_CALLBACK_PATH, {
142
143
  method: "POST",
143
144
  headers: { "Content-Type": "application/json" },
144
145
  body: JSON.stringify({ portalCode: code }),
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
4
- import { s as readChosenGiftAmounts } from "./gifting.parts-CTA1sDW6.mjs";
5
- import { t as GiftingClient } from "./gifting.client-B__bGhFc.mjs";
2
+ import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
4
+ import { s as readChosenGiftAmounts } from "./gifting.parts-ffP6mjMd.mjs";
5
+ import { t as GiftingClient } from "./gifting.client-CjT5PrAZ.mjs";
6
6
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { bn as formatCurrencyAmount, n as assertNever } from "./noop-CaQxI-Js.mjs";
3
- import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BYACYP0T.mjs";
4
- import { n as useBlockApi } from "./context-R9p5c8IH.mjs";
2
+ import { Sn as formatCurrencyAmount, n as assertNever } from "./noop-D11X-B6n.mjs";
3
+ import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-DkFnbzf_.mjs";
4
+ import { n as useBlockApi } from "./context-CJIz4FdL.mjs";
5
5
  import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
7
- import { a as giftingEyebrow, i as firstGiftAmountChoice, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-CTA1sDW6.mjs";
7
+ import { a as giftingEyebrow, i as firstGiftAmountChoice, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-ffP6mjMd.mjs";
8
8
  import { startTransition, useEffect, useReducer, useRef, useState } from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region ../blocks/src/system/runtime/nodes/gifting.client.state.ts
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { bn as formatCurrencyAmount } from "./noop-CaQxI-Js.mjs";
3
- import { r as listLookSlot } from "./lookSurfaces-BwiNdgMU.mjs";
2
+ import { Sn as formatCurrencyAmount } from "./noop-D11X-B6n.mjs";
3
+ import { r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
4
4
  import "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region ../blocks/src/system/runtime/nodes/gifting.parts.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
3
- import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-DEYDI54E.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
3
+ import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-DaMo6len.mjs";
4
4
  //#region src/rendering/islands/enhancers/headerSection.ts
5
5
  const decode = defineIslandPropsDecoder("headerSection");
6
6
  const enhance = (root, props) => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { B as headingDecorationOverrideValues, F as arrangementModes, H as tileTreatmentValues, I as decorativeTransitionIntentValues, L as eventListTreatmentValues, M as accordionIconColorTokenValues, N as accordionIconMotionValues, P as accordionIconSetValues, R as eyebrowTreatmentValues, U as visibleHeadingDecorationFamilyValues, V as isArrangementMode, ct as imageMediaSchema, ft as videoMediaSchema, lt as mediaSchema, ot as assetMediaSchema, st as externalMediaSchema, z as headingDecorationColorTokenValues } from "./noop-CaQxI-Js.mjs";
2
+ import { B as headingDecorationOverrideValues, F as arrangementModes, H as tileTreatmentValues, I as decorativeTransitionIntentValues, L as eventListTreatmentValues, M as accordionIconColorTokenValues, N as accordionIconMotionValues, P as accordionIconSetValues, R as eyebrowTreatmentValues, U as visibleHeadingDecorationFamilyValues, V as isArrangementMode, ct as imageMediaSchema, ft as videoMediaSchema, lt as mediaSchema, ot as assetMediaSchema, st as externalMediaSchema, z as headingDecorationColorTokenValues } from "./noop-D11X-B6n.mjs";
3
3
  import { At as featuresFromHex, Ct as resolveOpaqueSurfaceHex, Et as requirePaletteColorsFromEntries, F as defineButtonStyleRecipe, I as mapButtonRoleAppearances, K as rgbColorValue, L as mapButtonVisualAppearances, Ot as preparePaletteColourIndex, St as resolveConcreteColorHex, Tt as paletteValueKeySchema, Y as resolveSurfaceForeground, _ as contextualButtonSurfaceResetStyles, _t as surfaceInkDeclarations, a as requireResolvedSurface, b as BUTTON_CONTRAST_POLICY, bt as freezeOwnedThemeValue, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, dt as SURFACE_INK_CSS_VARS, ft as surfaceForegroundDeclarations, h as scrimTone, ht as surfaceForegroundValue, i as prepareThemeSurfaceRevision, it as contrastThresholdByPolicy, j as ELEVATION_OFFSET, m as minimumScrimOpacity, o as resolveSurface, ot as expandPalette, p as gradientScrimSamples, t as parseResolvedSurface, u as surfaceTransportContext, ut as SURFACE_FOREGROUND_CSS_VARS, wt as paletteValueKey, xt as ownedThemeSnapshot } from "./accessibleSurfaces-DN8it_Cx.mjs";
4
4
  import { C as paletteColorsFromEntries, D as parseThemeColorToken, E as parseColorTokenParts, O as themeColorTokenSchema, S as paletteColorEntries, T as paletteModeSchema, b as isThemeColorToken, c as buttonEffectApplicationSchema, f as buttonVisualStatesSchema, g as VARIANT_ROLES, l as buttonPressOffsetSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, w as paletteColorsSchema, y as hexColorSchema } from "./types-DjWUR_O6.mjs";
5
5
  import { z } from "zod";