@riverbankcms/sdk 0.172.0 → 0.173.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 (194) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
  2. package/dist/_dts/{Page-DViYbakk.d.ts → Page-Bk99sJwV.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
  4. package/dist/_dts/{client-DZBOzd3U.d.ts → client-ZlNEIvlU.d.ts} +1002 -139
  5. package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DBXPNc0h.d.ts} +2 -2
  6. package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
  9. package/dist/_dts/{index-CpOkfBt1.d.ts → index-BnatulTs.d.ts} +3 -3
  10. package/dist/_dts/{index-Dns7OHyl.d.ts → index-C611wjIL.d.ts} +1 -1
  11. package/dist/_dts/{index-Da4UMgbs.d.ts → index-CJzs-yIJ.d.ts} +2 -2
  12. package/dist/_dts/{index-MuMYjetm.d.ts → index-DW3eeNph.d.ts} +4 -4
  13. package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Dq_AboWN.d.ts} +1 -1
  14. package/dist/_dts/{index-C0zjLMAW.d.ts → index-DutLU2d2.d.ts} +1 -1
  15. package/dist/_dts/{index-BnMavhoh.d.ts → index-KXh8FQ2s.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-Bde2y870.d.ts} +7 -7
  17. package/dist/_dts/{request-wQ28JWbr.d.ts → request-Bysk4QPI.d.ts} +1842 -262
  18. package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-CGa6QMgc.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/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +6 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-DrinAfeW.d.ts → types-BoEk9ZON.d.ts} +3 -3
  54. package/dist/_dts/{types-CpjyP5I4.d.ts → types-BwitGNTl.d.ts} +7 -7
  55. package/dist/_dts/{types-ZuZoGsZV.d.ts → types-kpp8XyXv.d.ts} +2 -2
  56. package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-ChftKX-o.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-LHQMODqB.mjs} +13 -7
  59. package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-BewbU_cV.mjs} +2 -2
  61. package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +41 -34
  62. package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +21 -21
  63. package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-CaI6upCX.mjs} +11 -10
  64. package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-CoRUaYHY.mjs} +10 -9
  65. package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-Doe4KodB.mjs} +25 -16
  66. package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
  67. package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
  68. package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-BmfyK7S5.mjs} +37 -14
  69. package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +846 -145
  70. package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-CdRPU6gp.mjs} +1 -1
  71. package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
  72. package/dist/client/{Page-Ds1s3DuC.mjs → Page-D46Dmr7b.mjs} +548 -44
  73. package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-CrSZCZn1.mjs} +82 -11
  74. package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-D4DhWo9j.mjs} +1 -20
  75. package/dist/client/{accordion-DgwFZJSx.mjs → accordion-P8xcfKxq.mjs} +1 -1
  76. package/dist/client/bookability-SargNwlO.mjs +17 -0
  77. package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-BM2s-NqR.mjs} +11 -11
  78. package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-JnaZPZge.mjs} +4 -4
  79. package/dist/client/bookings.mjs +5 -5
  80. package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
  81. package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CQQ_m0KA.mjs} +1 -1
  82. package/dist/client/{cart-CPfvMDGJ.mjs → cart-0Q4fjw_K.mjs} +3 -3
  83. package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-BI0IaHX3.mjs} +1 -1
  84. package/dist/client/{checkout-DU4JFjGT.mjs → checkout-1J-3ftxF.mjs} +3 -3
  85. package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
  87. package/dist/client/client.mjs +52 -4
  88. package/dist/client/{context-xNC1Cyjw.mjs → context-D0KCgbOq.mjs} +81 -14
  89. package/dist/client/{cta-CNVQHLKs.mjs → course-CmOuoZHN.mjs} +76 -2
  90. package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
  91. package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
  92. package/dist/client/{display-B5DfNb6A.mjs → display-lL-YRApN.mjs} +2462 -426
  93. package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +3 -3
  94. package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
  95. package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-GuuElczW.mjs} +1314 -552
  96. package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
  97. package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
  98. package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-BJpAD10-.mjs} +2 -2
  99. package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-jLB8iRqp.mjs} +4 -4
  100. package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
  101. package/dist/client/{form-BfChzSkS.mjs → form-DO6qKH3M.mjs} +3 -3
  102. package/dist/client/{form.client-D1zehtPk.mjs → form.client-D12ljYiX.mjs} +3 -3
  103. package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-C8QHaQOI.mjs} +1 -1
  104. package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-BnhfIpCa.mjs} +1 -1
  105. package/dist/client/gifting/client.mjs +2 -2
  106. package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-BtFWtoUm.mjs} +2 -2
  107. package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-oHrqM_Ao.mjs} +4 -4
  108. package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-D5U-FuVy.mjs} +1 -1
  109. package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
  110. package/dist/client/{noop-CamIX2yK.mjs → noop-CN0o0yjH.mjs} +115 -12
  111. package/dist/client/portal/client.mjs +7 -7
  112. package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
  113. package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
  114. package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-DaqM-LgL.mjs} +3 -3
  115. package/dist/client/{productList-DE4vSSG_.mjs → productList-CMx4-XlG.mjs} +3 -3
  116. package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
  117. package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-Cdot3dMk.mjs} +85 -57
  118. package/dist/client/rendering/client.mjs +25 -25
  119. package/dist/client/rendering/islands.mjs +1 -1
  120. package/dist/client/rendering.mjs +24 -55
  121. package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
  122. package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
  123. package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
  124. package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
  125. package/dist/client/{shop-BC4H0oYT.mjs → shop-Cy6xXDM7.mjs} +3 -3
  126. package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-oDR76k1q.mjs} +11 -10
  127. package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
  128. package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
  129. package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-Brha4BSM.mjs} +11 -10
  130. package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CXhYl0DW.mjs} +35 -12
  131. package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-JCa_SRhP.mjs} +2 -2
  132. package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
  133. package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CZeJwMxP.mjs} +10 -10
  134. package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
  135. package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
  136. package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
  137. package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-CCAGQHsD.mjs} +5 -5
  138. package/dist/client/{view-B0TFnP4y.mjs → view-D6yebI4r.mjs} +51 -31
  139. package/dist/client/{view-DNNNbnNj.mjs → view-Sw075FOY.mjs} +2 -2
  140. package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-DG2rXUmo.mjs} +26 -19
  141. package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +27 -360
  142. package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-CqZCfOaz.mjs} +4 -4
  143. package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-Bv2HZ7JY.mjs} +7 -7
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +5 -55
  145. package/dist/preview-next/client/{SiteChromeCustomizeButton-CrgS3I8d.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +2668 -799
  146. package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-La6MerV_.mjs} +3540 -684
  147. package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
  148. package/dist/preview-next/client/runtime.mjs +3 -3
  149. package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-BkckHox4.mjs} +2 -2
  150. package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-CPAHgGqI.mjs} +1 -1
  151. package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +1 -1
  152. package/dist/preview-next/keepAlive.mjs +1 -1
  153. package/dist/preview-next/middleware.mjs +1 -1
  154. package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-CPV30ABr.mjs} +48 -0
  155. package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-BaMMstO1.mjs} +5 -5
  156. package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-Dge4sqel.mjs} +4 -4
  157. package/dist/server/{client-dROAfMRa.mjs → client-VVIQjC4r.mjs} +51 -3
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/server/data/resolveBlockData.mjs +1 -1
  161. package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
  162. package/dist/server/index.mjs +3 -3
  163. package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-BIJb3WAK.mjs} +5 -6
  164. package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-DjTU19y7.mjs} +2 -2
  165. package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
  166. package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
  167. package/dist/server/navigation.mjs +1 -1
  168. package/dist/server/next.mjs +6 -6
  169. package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
  170. package/dist/server/page-converter.mjs +1 -1
  171. package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CytPhrI9.mjs} +143 -27
  172. package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +3 -3
  173. package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-Bhx8bVe1.mjs} +166 -67
  174. package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +1 -1
  175. package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-BjvFb0CA.mjs} +1 -1
  176. package/dist/server/prebuild.mjs +1 -1
  177. package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
  178. package/dist/server/{registry-wYH0LH5f.mjs → registry-BMCfcev6.mjs} +809 -191
  179. package/dist/server/rendering/components/pageShared.mjs +1 -1
  180. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  181. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  182. package/dist/server/rendering/server.mjs +3 -3
  183. package/dist/server/rendering.mjs +8 -8
  184. package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData--yUbI-Ll.mjs} +1 -1
  185. package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
  186. package/dist/server/{schema-BFOqYIMQ.mjs → schema-D5Vfmqzw.mjs} +394 -1
  187. package/dist/server/server.mjs +3 -3
  188. package/dist/server/theme.mjs +2 -2
  189. package/dist/server/{validation-DAQdPDku.mjs → validation-EgTtnTcY.mjs} +4 -4
  190. package/dist/server/{version-DAB0O3yx.mjs → version-LjgU0Cq1.mjs} +1 -1
  191. package/dist/styles/index.css +174 -0
  192. package/package.json +1 -1
  193. package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
  194. package/dist/server/rich-text-CRcONdyM.mjs +0 -33
@@ -1,11 +1,12 @@
1
1
  "use client";
2
- import { I as resolveEventRegistrationEventSource, ct as closedRunCopy } from "./shop.interactive-Bb67gPLL.mjs";
3
- import { Bi as normalizeEventRegistrationPageSurfaceSubject, Ln as eventDateOptions, Vi as resolveEventRegistrationScopedEvents, _n as bookingPresentation, ls as orderedLiveRunSessions, ss as firstLiveRunSessionStartMs, ur as groupPublicEventsByRun, us as resolveWholeSeriesBookingPhase } from "./display-B5DfNb6A.mjs";
4
- import { It as formatDate, an as toUtcIsoDateTimeString } from "./noop-CamIX2yK.mjs";
2
+ import { I as resolveEventRegistrationEventSource, ct as closedRunCopy } from "./shop.interactive-CXhYl0DW.mjs";
3
+ import { Ia as normalizeEventRegistrationPageSurfaceSubject, La as resolveEventRegistrationScopedEvents, Nr as eventDateOptions, cc as firstLiveRunSessionStartMs, dc as resolveWholeSeriesBookingPhase, oi as groupPublicEventsByRun, pr as bookingPresentation, uc as orderedLiveRunSessions } from "./display-lL-YRApN.mjs";
4
+ import { Rt as formatDate, sn as toUtcIsoDateTimeString } from "./noop-CN0o0yjH.mjs";
5
5
  import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
6
- import { r as boxStyleClassNames } from "./boxStyleClassNames-B1Z_TGAe.mjs";
6
+ import { r as boxStyleClassNames } from "./boxStyleClassNames-Cahps5kR.mjs";
7
7
  import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
8
- import { n as StepIndicator$1, t as BookingPanelArrangement } from "./BookingPanelArrangement-DpqnRo-t.mjs";
8
+ import { t as isBookableEvent } from "./bookability-SargNwlO.mjs";
9
+ import { n as StepIndicator$1, t as BookingPanelArrangement } from "./BookingPanelArrangement-Be704P85.mjs";
9
10
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
10
11
  import React from "react";
11
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -29,10 +30,18 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
29
30
  * booking.
30
31
  */
31
32
  function planWholeSeriesParentBooking(eligibleRuns) {
32
- const [first, ...rest] = eligibleRuns;
33
- return rest.length === 0 ? {
33
+ const [first, second, ...rest] = eligibleRuns;
34
+ if (!second) return {
34
35
  kind: "single",
35
36
  run: first
37
+ };
38
+ return eligibleRuns.every((group) => group.representative.allowsMultipleBooking) ? {
39
+ kind: "bookTogether",
40
+ runs: [
41
+ first,
42
+ second,
43
+ ...rest
44
+ ]
36
45
  } : {
37
46
  kind: "choice",
38
47
  runs: eligibleRuns
@@ -42,6 +51,45 @@ function isOrdinaryPublicEvent(event) {
42
51
  return event.bookingScope === "single_occurrence";
43
52
  }
44
53
  /**
54
+ * What a series' own page shows when its URL names no date.
55
+ *
56
+ * Two or more dates a visitor can book make a choice: the page lists every
57
+ * date whose booking is open and lets the visitor pick, so a full date still
58
+ * shows as full rather than vanishing. One bookable date isn't a choice, so the
59
+ * page books that date. With none, the first date speaks for the page and shows
60
+ * its own full or closed state.
61
+ *
62
+ * The caller passes every date it read for the series, not the cards a listing
63
+ * happened to show, so the one-date shortcut is decided on the complete set.
64
+ * "Has places" isn't enough on its own: only a date whose booking is open
65
+ * counts, and a drop-in date never does.
66
+ */
67
+ function planOrdinarySeriesSelection(events) {
68
+ const ordinary = events.filter(isOrdinaryPublicEvent);
69
+ const firstSeriesId = ordinary[0]?.seriesId;
70
+ if (!firstSeriesId || ordinary.some((event) => event.seriesId !== firstSeriesId)) return null;
71
+ const [first, second] = ordinary.filter(isBookableEvent);
72
+ if (first && second) {
73
+ const [a, b, ...rest] = [...ordinary].filter(isOpenForBooking).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
74
+ if (a && b) return {
75
+ kind: "dateChoice",
76
+ dates: [
77
+ a,
78
+ b,
79
+ ...rest
80
+ ]
81
+ };
82
+ }
83
+ const event = first ?? ordinary[0];
84
+ return event ? {
85
+ kind: "occurrence",
86
+ event
87
+ } : null;
88
+ }
89
+ function isOpenForBooking(event) {
90
+ return event.requiresRegistration && event.bookingAvailability.kind === "open";
91
+ }
92
+ /**
45
93
  * Whether a parent Event page advertises this run.
46
94
  *
47
95
  * Visibility admission belongs to the scoped public read. Active, still-open
@@ -154,6 +202,7 @@ function planWholeSeriesRunSelection(input) {
154
202
  function selectionRepresentativeEvent(selection) {
155
203
  switch (selection.kind) {
156
204
  case "occurrence": return selection.event;
205
+ case "dateChoice": return selection.dates[0];
157
206
  case "wholeSeriesParent": return selection.eligibleRuns[0].representative;
158
207
  case "wholeSeriesParentUnavailable": return selection.informationalRun.representative;
159
208
  case "wholeSeriesRun": return selection.run.representative;
@@ -169,6 +218,7 @@ function resolveSelectionBookingClosedDetail(selection) {
169
218
  switch (selection.kind) {
170
219
  case "occurrence": return selection.event.bookingClosedDetail ?? null;
171
220
  case "wholeSeriesRun": return selection.run.representative.bookingClosedDetail ?? null;
221
+ case "dateChoice":
172
222
  case "wholeSeriesParent": return null;
173
223
  case "wholeSeriesParentUnavailable": return selection.bookingClosedDetail;
174
224
  }
@@ -392,6 +442,7 @@ function selectPagePanel(source, events) {
392
442
  eventSeriesId: source.subject.eventSeriesId,
393
443
  events
394
444
  });
445
+ if (!source.occurrenceContext && source.subject?.kind === "eventSeries") return planOrdinarySeriesSelection(events);
395
446
  return selectOccurrenceForPanel(events, source.occurrenceContext?.id);
396
447
  }
397
448
  /** The decided target is also retained for recovery when fresh booking is closed. */
@@ -415,6 +466,7 @@ function planEventBookingPanel({ selection, subject }, now) {
415
466
  const nonBookingPanel = planNonBookingPanel(selection);
416
467
  switch (selection.kind) {
417
468
  case "occurrence":
469
+ case "dateChoice":
418
470
  case "wholeSeriesRun": {
419
471
  const registration = selectionRegistrationTarget(selection, subject);
420
472
  if (nonBookingPanel) return {
@@ -431,10 +483,24 @@ function planEventBookingPanel({ selection, subject }, now) {
431
483
  registration
432
484
  };
433
485
  }
434
- case "wholeSeriesParent": return {
435
- ...nonBookingPanel ?? planWholeSeriesParentBooking(selection.eligibleRuns),
436
- registration: null
437
- };
486
+ case "wholeSeriesParent": {
487
+ if (nonBookingPanel) return {
488
+ ...nonBookingPanel,
489
+ registration: null
490
+ };
491
+ const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
492
+ return panel.kind === "bookTogether" ? {
493
+ kind: "registration",
494
+ registration: {
495
+ events: panel.runs.map((run) => run.representative),
496
+ subject,
497
+ occurrenceContext: null
498
+ }
499
+ } : {
500
+ ...panel,
501
+ registration: null
502
+ };
503
+ }
438
504
  case "wholeSeriesParentUnavailable": return {
439
505
  ...nonBookingPanel ?? { kind: "unavailable" },
440
506
  registration: null
@@ -460,6 +526,11 @@ function selectionRegistrationTarget(selection, subject) {
460
526
  occurrenceContext: eventOccurrenceContext(selection.event),
461
527
  subject
462
528
  };
529
+ case "dateChoice": return {
530
+ events: [...selection.dates],
531
+ occurrenceContext: null,
532
+ subject
533
+ };
463
534
  case "wholeSeriesRun": return {
464
535
  events: [selection.run.representative],
465
536
  occurrenceContext: null,
@@ -1,27 +1,8 @@
1
1
  "use client";
2
+ import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
2
3
  import { C as paletteColorsFromEntries, D as parseThemeColorToken, E as parseColorTokenParts, T as paletteModeSchema, _ as PALETTE_TOKEN_NAMES, c as buttonEffectApplicationSchema, g as VARIANT_ROLES, m as parseOpaqueButtonColourToken, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, x as normalizePaletteHex, y as hexColorSchema } from "./types-DjWUR_O6.mjs";
3
4
  import { t as SURFACE_TRANSPORT_KEY } from "./surfaceTransportMarker-BuwkYxsI.mjs";
4
5
  import { z } from "zod";
5
- //#region ../core/src/stable-json.ts
6
- function stableJsonStringify(value) {
7
- return JSON.stringify(sortStableJsonValue(value));
8
- }
9
- function sortStableJsonValue(value) {
10
- if (value === null) return null;
11
- if (typeof value === "string" || typeof value === "boolean") return value;
12
- if (typeof value === "number") {
13
- if (!Number.isFinite(value)) throw new TypeError("Stable JSON only supports finite numbers");
14
- return value;
15
- }
16
- if (Array.isArray(value)) return value.map(sortStableJsonValue);
17
- if (typeof value === "object") {
18
- const prototype = Object.getPrototypeOf(value);
19
- if (prototype !== Object.prototype && prototype !== null) throw new TypeError("Stable JSON only supports plain objects");
20
- return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([key, child]) => [key, sortStableJsonValue(child)]));
21
- }
22
- throw new TypeError(`Stable JSON does not support ${typeof value}`);
23
- }
24
- //#endregion
25
6
  //#region ../theme-core/src/palette/utils/colorConversion.ts
26
7
  const clamp01 = (x) => Math.max(0, Math.min(1, x));
27
8
  const mod = (a, n) => (a % n + n) % n;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
3
3
  //#region src/rendering/islands/enhancers/accordion.ts
4
4
  const decode = defineIslandPropsDecoder("accordion");
5
5
  function parseDefaultValues(value) {
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { Xr as canJoinEventWaitlistOnAnyMode, ri as isEventFull } from "./display-lL-YRApN.mjs";
3
+ //#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
4
+ /**
5
+ * Whether a public event has a registration path a visitor can take.
6
+ *
7
+ * Lifecycle admission comes from the public booking-availability contract;
8
+ * capacity comes from the shared event-domain helpers so uncapped, fallback,
9
+ * and hybrid attendance-mode cases agree with the registration runtime.
10
+ */
11
+ function isBookableEvent(event) {
12
+ if (!event.requiresRegistration) return false;
13
+ if (event.bookingAvailability.kind !== "open") return false;
14
+ return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
15
+ }
16
+ //#endregion
17
+ export { isBookableEvent as t };
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { $r as bookingHasPackagePaymentChoices, Ar as selectedBookingCollectionOptionKind, Br as isAppointmentBookingQuestionsEvent, Cr as parseBookingCurrencyInputToCents, Dr as resolveBookingSelectedService, Ei as resolveDateRuntimeContext, Er as resolveBookingPaymentStep, Fr as resolveSelectedAppointmentConsent, Hr as bookingQuestionsAnswerDraftSchema, Ir as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, Jr as toBookingQuestionsAnswerDraft, Lr as applyAppointmentBookingQuestionsEvent, Mi as leavePage, Mr as formatCentsAsCurrencyInput, Ms as unsafeAsSiteId, Or as resolveBookingSiteId, Pr as projectSelectedAppointmentConsentIntoForm, Qr as applyBookingPaymentAdmission, Rr as appointmentQuestionsRefusal, Sr as normalizeBookingServices, Ti as readRuntimeNow, Tr as resolveAppointmentCheckoutVerificationState, Vr as needsAppointmentQuestionsRefresh, Wr as decideBookingQuestionsRestoration, Xr as BOOKING_FORM_DATA_RESERVED_KEYS, _n as bookingPresentation, _r as getBookingSuccessCopy, ai as resolveBookingPaymentAvailability, at as buildReviewedBookingPaymentViewModel, br as isBookingServiceSlidingAmountInRange, ci as resolveBookingPurchasablePackages, dn as createSignInReturnDraftStore, ei as bookingPackageRequestKey, fr as buildBookingFormInteractiveIslandProps, gr as getBookingRedirectStateFromLocation, hr as formatBookingSubmissionPreparationError, ii as resolveBookingPackageSources, it as buildBookingPaymentSelectionViewModel, jr as toSelectedCollectionOptionKind, kr as resolveDefaultBookingServiceId, l as formatValidity, li as toBookingPurchasablePackages, mr as deriveBookingFormViewState, ni as reconcileBookingPackagePurchase, oi as resolveBookingPaymentChoice, ot as paymentChoiceDetails, pr as readOverrideServiceCategories, ps as resolveBookingSignupOffer, qr as restoreBookingQuestionsAnswers, ri as resolveBookingPackagePaymentSelection, si as resolveBookingPaymentMode, st as paymentChoicePrice, ti as bookingRequiresResourceSelection, ui as getBookingServiceSlidingScale, wr as prepareBookingSubmission, xr as normalizeBookingFormConfig, zr as deriveAppointmentBookingQuestions } from "./display-B5DfNb6A.mjs";
3
- import { Bt as formatTime, Ht as formatTimeZoneCityLabel, It as formatDate, W as isBookingRequirementConsentFieldId, Wt as resolveBookingDisplayContext, an as toUtcIsoDateTimeString, in as parseUtcIsoDateTimeString, nn as resolveBookingTimeZoneId, t as logger, tn as resolveBookingBusinessTimeZone, un as formatCurrencyAmount, zt as formatDateTimeRange } from "./noop-CamIX2yK.mjs";
2
+ import { $i as resolveBookingPackagePaymentSelection, Ai as projectSelectedAppointmentConsentIntoForm, Bi as decideBookingQuestionsRestoration, Ci as resolveBookingSelectedService, Di as toSelectedCollectionOptionKind, Ei as selectedBookingCollectionOptionKind, Fi as deriveAppointmentBookingQuestions, Ii as isAppointmentBookingQuestionsEvent, Ji as applyBookingPaymentAdmission, Ki as BOOKING_FORM_DATA_RESERVED_KEYS, Li as needsAppointmentQuestionsRefresh, Mi as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, Nc as unsafeAsSiteId, Ni as applyAppointmentBookingQuestionsEvent, Oa as leavePage, Oi as formatCentsAsCurrencyInput, Pi as appointmentQuestionsRefusal, Qi as reconcileBookingPackagePurchase, Ri as bookingQuestionsAnswerDraftSchema, Sa as resolveDateRuntimeContext, Si as resolveBookingPaymentStep, Ti as resolveDefaultBookingServiceId, Ui as restoreBookingQuestionsAnswers, Wi as toBookingQuestionsAnswerDraft, Xi as bookingPackageRequestKey, Yi as bookingHasPackagePaymentChoices, Zi as bookingRequiresResourceSelection, _i as normalizeBookingFormConfig, aa as toBookingPurchasablePackages, at as buildReviewedBookingPaymentViewModel, bi as prepareBookingSubmission, ci as buildBookingFormInteractiveIslandProps, di as formatBookingSubmissionPreparationError, ea as resolveBookingPackageSources, fi as getBookingRedirectStateFromLocation, gi as isBookingServiceSlidingAmountInRange, ia as resolveBookingPurchasablePackages, it as buildBookingPaymentSelectionViewModel, ji as resolveSelectedAppointmentConsent, l as formatValidity, li as readOverrideServiceCategories, mc as resolveBookingSignupOffer, na as resolveBookingPaymentChoice, oa as getBookingServiceSlidingScale, ot as paymentChoiceDetails, pi as getBookingSuccessCopy, pr as bookingPresentation, ra as resolveBookingPaymentMode, sr as createSignInReturnDraftStore, st as paymentChoicePrice, ta as resolveBookingPaymentAvailability, ui as deriveBookingFormViewState, vi as normalizeBookingServices, wi as resolveBookingSiteId, xa as readRuntimeNow, xi as resolveAppointmentCheckoutVerificationState, yi as parseBookingCurrencyInputToCents } from "./display-lL-YRApN.mjs";
3
+ import { Ht as formatTime, Kt as resolveBookingDisplayContext, Rt as formatDate, Vt as formatDateTimeRange, W as isBookingRequirementConsentFieldId, Wt as formatTimeZoneCityLabel, fn as formatCurrencyAmount, in as resolveBookingTimeZoneId, on as parseUtcIsoDateTimeString, rn as resolveBookingBusinessTimeZone, sn as toUtcIsoDateTimeString, t as logger } from "./noop-CN0o0yjH.mjs";
4
4
  import { F as unsafeAsAppointmentResourceId, I as unsafeAsAppointmentServiceId, S as formatCreditProductUnits, _ as clearWorkflowFeedback, g as okWith, m as err, o as checkBookingQuestionsAnswered, p as assertNever, v as reportWorkflowError, x as formatCreditProductBalance, y as reportWorkflowSuccess } from "./creditProducts-BTRX4edc.mjs";
5
- import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CmZLVXOy.mjs";
5
+ import { c as NavigationHandOffPanel, i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CARUWQ_E.mjs";
6
6
  import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
7
- import { n as useBlockApi, t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
7
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
8
8
  import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
9
- import { t as buildCheckoutReturnUrls } from "./checkoutUrls-BQ3OlWlM.mjs";
9
+ import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CwHqcqzP.mjs";
10
10
  import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
11
11
  import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
12
12
  import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
13
13
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
14
14
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
15
- import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-CzOT8ZWo.mjs";
16
- import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-B4fRd2jy.mjs";
17
- import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-VjRYhx1c.mjs";
18
- import { n as StepIndicator, t as BookingPanelArrangement } from "./BookingPanelArrangement-DpqnRo-t.mjs";
19
- import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-CdP14E_b.mjs";
20
- import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-BhjGxhX3.mjs";
15
+ import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-BewbU_cV.mjs";
16
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Cyy0meCH.mjs";
17
+ import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-LHQMODqB.mjs";
18
+ import { n as StepIndicator, t as BookingPanelArrangement } from "./BookingPanelArrangement-Be704P85.mjs";
19
+ import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-DfbSkWop.mjs";
20
+ import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-CL7KGRta.mjs";
21
21
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
22
22
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
23
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BookingFormClient } from "./booking-form.client-CKY9oksp.mjs";
3
- import { t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
2
+ import { t as BookingFormClient } from "./booking-form.client-BM2s-NqR.mjs";
3
+ import { t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BjRoLoMD.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/bookingForm.tsx
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { $ as resolveHeadlessEventRegistrationStatus, Bi as normalizeEventRegistrationPageSurfaceSubject, Jt as getSingleSelectedPricingOptionId, Oi as createHostedBlockApiConfig, Q as resolveEventRegistrationSubmitPlan, Qn as resolveRuntimeEventDestination, Sr as normalizeBookingServices, Ti as readRuntimeNow, Y as deriveEventRegistrationSteps, Z as normalizeEventRegistrationMaxTickets, Zr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, bn as resolveRegistrationDisplay, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, xr as normalizeBookingFormConfig } from "./display-B5DfNb6A.mjs";
3
- import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-CKY9oksp.mjs";
4
- import { z as publicEventSchema } from "./noop-CamIX2yK.mjs";
2
+ import { $ as resolveHeadlessEventRegistrationStatus, $n as getSingleSelectedPricingOptionId, Ia as normalizeEventRegistrationPageSurfaceSubject, Jr as resolveRuntimeEventDestination, Q as resolveEventRegistrationSubmitPlan, Y as deriveEventRegistrationSteps, Z as normalizeEventRegistrationMaxTickets, _i as normalizeBookingFormConfig, et as resolveHeadlessEventRegistrationView, gr as resolveRegistrationDisplay, nt as toInternalPaymentSelection, qi as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, tt as toHeadlessPaymentSelection, vi as normalizeBookingServices, wa as createHostedBlockApiConfig, xa as readRuntimeNow } from "./display-lL-YRApN.mjs";
3
+ import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-BM2s-NqR.mjs";
4
+ import { z as publicEventSchema } from "./noop-CN0o0yjH.mjs";
5
5
  import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
6
- import { n as useBlockApi, t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
7
- import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-BWb295cD.mjs";
6
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
7
+ import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-DwMlJB2V.mjs";
8
8
  import * as React$1 from "react";
9
9
  import React, { useCallback, useEffect, useMemo, useReducer } from "react";
10
10
  //#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Bo as boxBackgroundOverlaySchema, Go as cardVariantRoleValues, Ho as runtimeBoxBackgroundSchema, Ko as itemRoleValues, Uo as boxlessCardVariantValue, Vo as boxBackgroundSchema, qo as openCardRoleValue } from "./display-B5DfNb6A.mjs";
2
+ import { Bs as boxlessCardVariantValue, Hs as cardVariantRoleValues, Ls as boxBackgroundOverlaySchema, Rs as boxBackgroundSchema, Us as itemRoleValues, Ws as openCardRoleValue, zs as runtimeBoxBackgroundSchema } from "./display-lL-YRApN.mjs";
3
3
  import { z } from "zod";
4
4
  z.enum(itemRoleValues);
5
5
  z.enum(cardVariantRoleValues);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
3
3
  import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
4
4
  import { t as CarouselNodeClient } from "./carousel.client-h65clfUO.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
3
- import { t as CartClient } from "./cart.client-BJBPUTmg.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BE6TEk2A.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
3
+ import { t as CartClient } from "./cart.client-BI0IaHX3.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-JCa_SRhP.mjs";
5
5
  //#region src/rendering/islands/enhancers/cart.tsx
6
6
  const decode = defineIslandPropsDecoder("cart");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as CartController } from "./shop-commerce-BsY7a71m.mjs";
2
+ import { t as CartController } from "./shop-commerce-oDR76k1q.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/cart.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
3
- import { t as CheckoutClient } from "./checkout.client-BbNCO4xa.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BE6TEk2A.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
3
+ import { t as CheckoutClient } from "./checkout.client-DOGYDlDk.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-JCa_SRhP.mjs";
5
5
  //#region src/rendering/islands/enhancers/checkout.tsx
6
6
  const decode = defineIslandPropsDecoder("checkout");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as CheckoutController } from "./shop-commerce-BsY7a71m.mjs";
2
+ import { n as CheckoutController } from "./shop-commerce-oDR76k1q.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { ji as canonicalUrl } from "./display-B5DfNb6A.mjs";
2
+ import { Da as canonicalUrl } from "./display-lL-YRApN.mjs";
3
3
  //#region ../blocks/src/system/runtime/shared/utils/checkoutUrls.ts
4
4
  /**
5
5
  * Build return URLs for Stripe checkout redirect.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { js as parseSiteId } from "./display-B5DfNb6A.mjs";
3
- import { A as prefetchBlockDataWithFailures, E as resolveSiteCustomBlocks, T as siteLocationRenderContext, _ as buildRenderablePageOutline, ct as isSupportedLoaderEndpoint, j as materializeEntriesMedia, k as requireSdkTheme, rt as encodePublicProductCategorySelector, t as Page, v as buildSiteRenderSupport, x as projectRenderablePageOutline, y as collectMediaAssetSidecar } from "./Page-Ds1s3DuC.mjs";
2
+ import { Mc as parseSiteId } from "./display-lL-YRApN.mjs";
3
+ import { A as prefetchBlockDataWithFailures, E as resolveSiteCustomBlocks, T as siteLocationRenderContext, _ as buildRenderablePageOutline, ct as isSupportedLoaderEndpoint, j as materializeEntriesMedia, k as requireSdkTheme, rt as encodePublicProductCategorySelector, t as Page, v as buildSiteRenderSupport, x as projectRenderablePageOutline, y as collectMediaAssetSidecar } from "./Page-D46Dmr7b.mjs";
4
4
  import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
5
- import { t as restoreRuntimeResponse } from "./runtimeResponse-B-lrAGhX.mjs";
5
+ import { t as restoreRuntimeResponse } from "./runtimeResponse-IkOwKZD0.mjs";
6
6
  import { useEffect, useState } from "react";
7
7
  import { z } from "zod";
8
8
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
@@ -1888,6 +1888,54 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
1888
1888
  "server:internal_error"
1889
1889
  ]
1890
1890
  },
1891
+ listEventOfferingCombinationPrices: {
1892
+ path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
1893
+ method: "GET",
1894
+ auth: "user",
1895
+ responseKind: "json",
1896
+ errors: [
1897
+ "validation:invalid_input",
1898
+ "auth:forbidden",
1899
+ "resource:not_found",
1900
+ "server:internal_error"
1901
+ ]
1902
+ },
1903
+ createEventOfferingCombinationPrice: {
1904
+ path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
1905
+ method: "POST",
1906
+ auth: "user",
1907
+ responseKind: "json",
1908
+ errors: [
1909
+ "validation:invalid_input",
1910
+ "auth:forbidden",
1911
+ "resource:not_found",
1912
+ "server:internal_error"
1913
+ ]
1914
+ },
1915
+ updateEventOfferingCombinationPrice: {
1916
+ path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices/{combinationPriceId}",
1917
+ method: "PUT",
1918
+ auth: "user",
1919
+ responseKind: "json",
1920
+ errors: [
1921
+ "validation:invalid_input",
1922
+ "auth:forbidden",
1923
+ "resource:not_found",
1924
+ "server:internal_error"
1925
+ ]
1926
+ },
1927
+ deleteEventOfferingCombinationPrice: {
1928
+ path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices/{combinationPriceId}",
1929
+ method: "DELETE",
1930
+ auth: "user",
1931
+ responseKind: "json",
1932
+ errors: [
1933
+ "validation:invalid_input",
1934
+ "auth:forbidden",
1935
+ "resource:not_found",
1936
+ "server:internal_error"
1937
+ ]
1938
+ },
1891
1939
  deleteEventOffering: {
1892
1940
  path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}",
1893
1941
  method: "DELETE",
@@ -10927,7 +10975,7 @@ var SimpleCache = class {
10927
10975
  //#endregion
10928
10976
  //#region src/request-options.ts
10929
10977
  /** Every API client the SDK creates sends its version as `x-sdk-version`. */
10930
- const sdkRequestOptions = { sdkVersion: "0.172.0" };
10978
+ const sdkRequestOptions = { sdkVersion: "0.173.0" };
10931
10979
  //#endregion
10932
10980
  //#region src/client/error.ts
10933
10981
  let _Symbol$for;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { K as beforeBookingQuestionsPresentationSchema, ct as normalizeCurrencyCode, i as EVENT_BOOKING_ARRIVAL_QUERY, ln as toNonNegativeCents, n as blockSiteTermsSchema, p as calendarWindowPageSchema, s as publicPassProductCollectionSchema, sn as parsePositiveCents } from "./noop-CamIX2yK.mjs";
2
+ import { K as beforeBookingQuestionsPresentationSchema, dn as toNonNegativeCents, i as EVENT_BOOKING_ARRIVAL_QUERY, ln as parsePositiveCents, n as blockSiteTermsSchema, p as calendarWindowPageSchema, s as publicPassProductCollectionSchema, wt as normalizeCurrencyCode } from "./noop-CN0o0yjH.mjs";
3
+ import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
3
4
  import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
4
5
  import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
5
6
  import { createContext, useContext, useMemo } from "react";
@@ -117,7 +118,13 @@ const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
117
118
  identity: confirmedBookingIdentitySchema,
118
119
  ...arrivalFields
119
120
  }).strict()]);
121
+ const priceReductionSummarySchema = z.object({
122
+ kind: z.enum(["discount_code", "combination_price"]),
123
+ label: z.string(),
124
+ amountCents: z.number().int().nonnegative()
125
+ }).strict();
120
126
  const eventEmbeddedCheckoutSchema = z.object({
127
+ priceReductions: z.tuple([priceReductionSummarySchema]).rest(priceReductionSummarySchema).readonly().optional(),
121
128
  kind: z.literal("embedded"),
122
129
  sessionId: z.string().min(1),
123
130
  clientSecret: z.string().min(1),
@@ -140,16 +147,21 @@ const eventRegistrationSummarySchema = z.object({
140
147
  message: z.string(),
141
148
  passCreditsRemaining: z.number().int().nonnegative().optional()
142
149
  }).strict();
150
+ const bookingOutcomesSchema = z.tuple([eventBookingOutcomeSchema]).rest(eventBookingOutcomeSchema).readonly().refine((outcomes) => outcomes.length <= 20, "Too many booking outcomes");
151
+ const bookingReferencesSchema = z.tuple([eventRegistrationStatusReferenceSchema]).rest(eventRegistrationStatusReferenceSchema).readonly().refine((references) => references.length <= 20, "Too many booking references");
152
+ const registrationIdsSchema = z.tuple([uuid]).rest(uuid).readonly().refine((ids) => ids.length <= 20, "Too many registrations");
143
153
  const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
144
154
  z.object({
145
155
  kind: z.literal("bookingComplete"),
146
156
  outcome: eventBookingOutcomeSchema,
157
+ outcomes: bookingOutcomesSchema.optional(),
147
158
  summary: eventRegistrationSummarySchema,
148
159
  ...decorations
149
160
  }).strict(),
150
161
  z.object({
151
162
  kind: z.literal("checkoutRequired"),
152
163
  reference: eventRegistrationStatusReferenceSchema,
164
+ references: bookingReferencesSchema.optional(),
153
165
  checkout: eventEmbeddedCheckoutSchema,
154
166
  submissionId: uuid,
155
167
  ...decorations
@@ -175,12 +187,16 @@ const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
175
187
  }).strict(),
176
188
  ...decorations
177
189
  }).strict()
178
- ]);
190
+ ]).superRefine((response, ctx) => {
191
+ if (response.kind === "bookingComplete") validateOutcomeList(response, ctx);
192
+ if (response.kind === "checkoutRequired") validateReferenceList(response, ctx);
193
+ });
179
194
  const checkoutStatusArms = [
180
195
  z.object({
181
196
  kind: z.literal("resolved"),
182
- outcome: eventBookingOutcomeSchema
183
- }).strict(),
197
+ outcome: eventBookingOutcomeSchema,
198
+ outcomes: bookingOutcomesSchema.optional()
199
+ }).strict().superRefine(validateOutcomeList),
184
200
  z.object({ kind: z.literal("abandoned") }).strict(),
185
201
  z.object({ kind: z.literal("reconciliationRequired") }).strict(),
186
202
  z.object({
@@ -189,6 +205,7 @@ const checkoutStatusArms = [
189
205
  }).strict(),
190
206
  z.object({
191
207
  kind: z.literal("paymentAvailable"),
208
+ references: bookingReferencesSchema.optional(),
192
209
  checkout: eventEmbeddedCheckoutSchema,
193
210
  recoverableUntil: z.string().optional()
194
211
  }).strict(),
@@ -212,8 +229,7 @@ const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
212
229
  z.object({ kind: z.literal("reconciliationRequired") }).strict()
213
230
  ]).superRefine((response, ctx) => {
214
231
  if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
215
- const identity = response.outcome.outcome.identity;
216
- 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({
232
+ if (!identityMatchesSubject(response.outcome.outcome.identity, response.subject)) ctx.addIssue({
217
233
  code: "custom",
218
234
  message: "Confirmed booking does not match checkout subject",
219
235
  path: ["outcome"]
@@ -231,6 +247,7 @@ const eventCheckoutResponseSchema = z.union([
231
247
  kind: z.literal("completed"),
232
248
  scope: z.literal("wholeSeries"),
233
249
  outcome: eventBookingOutcomeSchema,
250
+ outcomes: bookingOutcomesSchema.optional(),
234
251
  ...checkoutDecorations
235
252
  }).strict(),
236
253
  z.object({
@@ -244,6 +261,7 @@ const eventCheckoutResponseSchema = z.union([
244
261
  kind: z.literal("checkoutRequired"),
245
262
  scope: z.literal("wholeSeries"),
246
263
  registrationId: uuid,
264
+ registrationIds: registrationIdsSchema.optional(),
247
265
  checkoutAttemptId: uuid,
248
266
  checkout: eventEmbeddedCheckoutSchema,
249
267
  recoverableUntil: z.string().optional(),
@@ -265,16 +283,65 @@ const eventCheckoutResponseSchema = z.union([
265
283
  ...checkoutDecorations
266
284
  }).strict()
267
285
  ]).superRefine((response, ctx) => {
268
- if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
286
+ if (!("kind" in response)) return;
287
+ if (response.kind === "completed") {
288
+ if (response.scope !== response.outcome.identity.scope) ctx.addIssue({
289
+ code: "custom",
290
+ message: "Confirmed booking scope mismatch",
291
+ path: [
292
+ "outcome",
293
+ "identity",
294
+ "scope"
295
+ ]
296
+ });
297
+ validateOutcomeList(response, ctx);
298
+ }
299
+ if (response.kind === "checkoutRequired" && response.scope === "wholeSeries" && response.registrationIds) {
300
+ if (response.registrationIds[0] !== response.registrationId || new Set(response.registrationIds).size !== response.registrationIds.length) ctx.addIssue({
301
+ code: "custom",
302
+ message: "Registration list does not match its first reference or repeats a booking",
303
+ path: ["registrationIds"]
304
+ });
305
+ }
306
+ });
307
+ function bookingReferenceKey(reference) {
308
+ return reference.scope === "wholeSeries" ? `run:${reference.registrationId}` : `date:${reference.attendeeId}`;
309
+ }
310
+ /** Singular fields are aliases of the first member; every member belongs to one submission. */
311
+ function validateOutcomeList(response, ctx) {
312
+ const outcomes = response.outcomes;
313
+ if (!outcomes) return;
314
+ if (stableJsonStringify(outcomes[0]) !== stableJsonStringify(response.outcome)) ctx.addIssue({
269
315
  code: "custom",
270
- message: "Confirmed booking scope mismatch",
271
- path: [
272
- "outcome",
273
- "identity",
274
- "scope"
275
- ]
316
+ message: "First booking outcome does not match the single-booking alias",
317
+ path: ["outcomes", 0]
276
318
  });
277
- });
319
+ const identity = response.outcome.identity;
320
+ if (outcomes.some((outcome) => outcome.identity.scope !== identity.scope || outcome.identity.submissionId !== identity.submissionId)) ctx.addIssue({
321
+ code: "custom",
322
+ message: "Booking outcomes must belong to the same submission and scope",
323
+ path: ["outcomes"]
324
+ });
325
+ const keys = outcomes.map((outcome) => bookingReferenceKey(outcome.identity));
326
+ if (new Set(keys).size !== keys.length) ctx.addIssue({
327
+ code: "custom",
328
+ message: "Booking outcomes repeat a booking",
329
+ path: ["outcomes"]
330
+ });
331
+ }
332
+ function validateReferenceList(response, ctx) {
333
+ const references = response.references;
334
+ if (!references) return;
335
+ const keys = references.map(bookingReferenceKey);
336
+ if (keys[0] !== bookingReferenceKey(response.reference) || new Set(keys).size !== keys.length || references.some((reference) => reference.scope !== response.reference.scope)) ctx.addIssue({
337
+ code: "custom",
338
+ message: "Booking references must be distinct, share a scope and match the first reference",
339
+ path: ["references"]
340
+ });
341
+ }
342
+ function identityMatchesSubject(identity, subject) {
343
+ return identity.scope === subject.scope && identity.submissionId === subject.submissionId && (identity.scope !== "occurrence" || subject.scope !== "occurrence" || identity.attendeeId === subject.attendeeId);
344
+ }
278
345
  //#endregion
279
346
  //#region ../blocks/src/system/runtime/api/schemas/waitlist-claims.ts
280
347
  const attendanceMode = z.enum(["in_person", "online"]);