@riverbankcms/sdk 0.171.1 → 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 (220) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
  2. package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-Bk99sJwV.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
  4. package/dist/_dts/{client-CXPH5esD.d.ts → client-ZlNEIvlU.d.ts} +1002 -140
  5. package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DBXPNc0h.d.ts} +3 -3
  6. package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
  9. package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-BnatulTs.d.ts} +3 -3
  10. package/dist/_dts/{index-Sua-7CF1.d.ts → index-C611wjIL.d.ts} +1 -1
  11. package/dist/_dts/{index-C9_OTCFQ.d.ts → index-CJzs-yIJ.d.ts} +2 -2
  12. package/dist/_dts/{index-B3gfKNI-.d.ts → index-DW3eeNph.d.ts} +4 -4
  13. package/dist/_dts/{index-DlABXDte.d.ts → index-Dq_AboWN.d.ts} +1 -1
  14. package/dist/_dts/{index-DScYSl03.d.ts → index-DutLU2d2.d.ts} +49 -38
  15. package/dist/_dts/{index-BQPJbOkU.d.ts → index-KXh8FQ2s.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-Bde2y870.d.ts} +7 -7
  17. package/dist/_dts/{request-DUTkELQn.d.ts → request-Bysk4QPI.d.ts} +2862 -508
  18. package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-zf6-E-C3.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 +18 -1
  53. package/dist/_dts/{types-JD-36x3P.d.ts → types-BoEk9ZON.d.ts} +3 -3
  54. package/dist/_dts/{types-BCzfYDW2.d.ts → types-BwitGNTl.d.ts} +7 -7
  55. package/dist/_dts/{types-CPHk5Voq.d.ts → types-kpp8XyXv.d.ts} +2 -2
  56. package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-ChftKX-o.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-LHQMODqB.mjs} +14 -8
  59. package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-BewbU_cV.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +42 -35
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +23 -23
  64. package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-CaI6upCX.mjs} +12 -11
  65. package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-CoRUaYHY.mjs} +12 -11
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-Doe4KodB.mjs} +60 -25
  68. package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BmfyK7S5.mjs} +220 -81
  71. package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +847 -146
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-CdRPU6gp.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
  74. package/dist/client/{Page-CT4HaEMr.mjs → Page-D46Dmr7b.mjs} +1976 -532
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CrSZCZn1.mjs} +83 -12
  77. package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
  78. package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
  79. package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-D4DhWo9j.mjs} +37 -38
  80. package/dist/client/{accordion-BOApxi9U.mjs → accordion-P8xcfKxq.mjs} +1 -1
  81. package/dist/client/bookability-SargNwlO.mjs +17 -0
  82. package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-BM2s-NqR.mjs} +33 -29
  83. package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-JnaZPZge.mjs} +4 -4
  84. package/dist/client/bookings.mjs +5 -5
  85. package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
  86. package/dist/client/{carousel-DeI76SEP.mjs → carousel-CQQ_m0KA.mjs} +2 -2
  87. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  88. package/dist/client/{cart-D_uxULCO.mjs → cart-0Q4fjw_K.mjs} +3 -3
  89. package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BI0IaHX3.mjs} +1 -1
  90. package/dist/client/{checkout-DIbh4g5e.mjs → checkout-1J-3ftxF.mjs} +3 -3
  91. package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
  93. package/dist/client/client.mjs +183 -4
  94. package/dist/client/{context-Dzjv2CpA.mjs → context-D0KCgbOq.mjs} +94 -14
  95. package/dist/client/course-CmOuoZHN.mjs +237 -0
  96. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
  97. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
  98. package/dist/client/{display-ChgDe9Da.mjs → display-lL-YRApN.mjs} +4460 -888
  99. package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +139 -16
  100. package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
  101. package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-GuuElczW.mjs} +1316 -554
  102. package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
  103. package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
  104. package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BJpAD10-.mjs} +2 -2
  105. package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-jLB8iRqp.mjs} +4 -4
  106. package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
  107. package/dist/client/{form-ERv_X_oZ.mjs → form-DO6qKH3M.mjs} +3 -3
  108. package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D12ljYiX.mjs} +4 -4
  109. package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-C8QHaQOI.mjs} +3 -3
  110. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-BnhfIpCa.mjs} +1 -1
  111. package/dist/client/gifting/client.mjs +3 -3
  112. package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BtFWtoUm.mjs} +2 -2
  113. package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-oHrqM_Ao.mjs} +5 -5
  114. package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-D5U-FuVy.mjs} +2 -2
  115. package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
  116. package/dist/client/{noop-poI1m2yW.mjs → noop-CN0o0yjH.mjs} +131 -12
  117. package/dist/client/portal/client.mjs +231 -117
  118. package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
  119. package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
  120. package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-DaqM-LgL.mjs} +3 -3
  121. package/dist/client/{productList-HoFGQXFl.mjs → productList-CMx4-XlG.mjs} +3 -3
  122. package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
  123. package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cdot3dMk.mjs} +2705 -2397
  124. package/dist/client/rendering/client.mjs +27 -27
  125. package/dist/client/rendering/islands.mjs +1 -1
  126. package/dist/client/rendering.mjs +38 -63
  127. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
  128. package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
  129. package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
  130. package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
  131. package/dist/client/{shop-DXyeSNgi.mjs → shop-Cy6xXDM7.mjs} +3 -3
  132. package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-oDR76k1q.mjs} +13 -12
  133. package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
  134. package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
  135. package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-Brha4BSM.mjs} +13 -12
  136. package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-CXhYl0DW.mjs} +218 -89
  137. package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-JCa_SRhP.mjs} +2 -2
  138. package/dist/client/spam-protection.mjs +1 -1
  139. package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
  140. package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-CZeJwMxP.mjs} +11 -11
  141. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  142. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
  143. package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
  144. package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
  145. package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-CCAGQHsD.mjs} +6 -6
  146. package/dist/client/{view-DhEwiTJG.mjs → view-D6yebI4r.mjs} +223 -65
  147. package/dist/client/{view-C_brMDU2.mjs → view-Sw075FOY.mjs} +3 -3
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-DG2rXUmo.mjs} +48 -36
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +113 -416
  153. package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI-CqZCfOaz.mjs} +5 -5
  154. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  155. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  156. package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bv2HZ7JY.mjs} +313 -64
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +300 -174
  158. package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +3246 -1079
  159. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  160. package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  161. package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-La6MerV_.mjs} +11994 -6013
  162. package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
  163. package/dist/preview-next/client/runtime.mjs +5 -4
  164. package/dist/preview-next/client/sdk-runtime-BkckHox4.mjs +6 -0
  165. package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CPAHgGqI.mjs} +2 -2
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +20 -8
  167. package/dist/preview-next/container-responsive.css +215 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-CPV30ABr.mjs} +179 -0
  171. package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-BaMMstO1.mjs} +5 -5
  172. package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
  173. package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  174. package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Dge4sqel.mjs} +109 -20
  175. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  176. package/dist/server/{client-DCwLR0kQ.mjs → client-VVIQjC4r.mjs} +183 -4
  177. package/dist/server/config-template-validation.mjs +3 -0
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -3
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
  182. package/dist/server/index.mjs +4 -4
  183. package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-BIJb3WAK.mjs} +19 -15
  184. package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-DjTU19y7.mjs} +2 -2
  185. package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
  186. package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
  187. package/dist/server/navigation.mjs +1 -1
  188. package/dist/server/next.mjs +6 -6
  189. package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  190. package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
  191. package/dist/server/page-converter.mjs +1 -1
  192. package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-CytPhrI9.mjs} +1084 -351
  193. package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +4 -3
  194. package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-Bhx8bVe1.mjs} +1187 -902
  195. package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +2 -2
  196. package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-BjvFb0CA.mjs} +1 -1
  197. package/dist/server/prebuild.mjs +1 -1
  198. package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
  199. package/dist/server/{registry-CaeRTf4E.mjs → registry-BMCfcev6.mjs} +10282 -7366
  200. package/dist/server/rendering/components/pageShared.mjs +1 -1
  201. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  202. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  203. package/dist/server/rendering/server.mjs +3 -3
  204. package/dist/server/rendering.mjs +8 -8
  205. package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData--yUbI-Ll.mjs} +2 -2
  206. package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
  207. package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
  208. package/dist/server/{schema-CxBsE9Dv.mjs → schema-D5Vfmqzw.mjs} +396 -2
  209. package/dist/server/server.mjs +3 -3
  210. package/dist/server/theme-bridge.mjs +2 -2
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{validation-CvmhnkDr.mjs → validation-EgTtnTcY.mjs} +5 -5
  213. package/dist/server/{version-Clp2evCf.mjs → version-LjgU0Cq1.mjs} +1 -1
  214. package/dist/styles/index.css +1434 -15
  215. package/package.json +1 -1
  216. package/dist/client/cta-CP9l112u.mjs +0 -121
  217. package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
  218. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  219. package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
  220. package/dist/server/rich-text-CRcONdyM.mjs +0 -33
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { Bi as resolveEventRegistrationScopedEvents, Bo as cardRoleSchema, Cn as ImagePresets, Co as toNonEmptyReadonlyArray, D as registrationStepLabel, Dn as renderAudio, Ds as parseEventSeriesId, E as registrationRoute, Ei as browserReadAuthoritySchema, En as mediaImageHostProps, Fi as buildInteractiveIslandProps, Fn as eventCalendarWeekStart, Gi as listItemPresentation, Hi as defineClientOwnedBlockRuntime, Hn as formatEventCompactDateRail, Ii as createInteractiveIslandCodec, In as eventDateLocale, Ji as lookListPresentationSchemaShape, Kt as withOccurrenceTitle, Li as defineInteractiveIslandMetaKeys, Ln as eventDateOptions, Mi as pageNavigationSchema, Mn as resolveMediaNodeResponsiveImage, N as isRegistrationLocked, O as registrationStepLabelContext, On as renderVideo, Pi as bookingPageKindSchema, Pt as formatBookingWhen, Ri as eventRegistrationPageSurfaceSubjectSchema, Rn as eventLocalDateKey, Rt as formatRegistrationSchedule, S as getEventSelectionMode, Si as blockButtonRoleSchema, Sn as RichText, Ti as resolveDateRuntimeContext, Tn as computeMediaTransformStyle, Ui as defineProgressiveBlockRuntime, Vi as createZodCodec, Wi as isDecodeSuccess, Zn as resolveRuntimeEventDestination, _i as filterAutoShowSchema, _n as bookingPresentation, _s as formatEventPricing, a as buildProductDetailDisplay, b as resolveSelectedProduct, bi as weekStartSchema, bn as resolveRegistrationDisplay, bs as publicEventPricingDisplay, cs as parseMailingListRuntimeContext, ct as findPreSelectedEvent, di as calendarTabViewsSchema, ds as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, fi as columnOptionSchema, fo as assertNever, fs as parseBrevoListId, g as deriveCommerceCheckoutState, gi as eventLayoutSchema, gs as formatBookingPriceDisplay, hi as eventCalendarDisplayModeSchema, hs as parseNewsletterListId, in as toWholeSeriesRegistrationEvents, is as nextLiveRunSessionStartMs, lr as groupPublicEventsByRun, mi as eventCalendarDefaultViewSchema, ms as parseMailchimpInterestId, n as buildCheckoutDisplay, nn as toRegistrationEvents, o as buildProductListDisplay, os as resolveWholeSeriesBookingPhase, pi as eventButtonVariantSchema, ps as parseMailchimpAudienceId, qi as listLookSlot, r as buildPassesMembershipsDisplay, rn as toWholeSeriesRegistrationEvent, sr as selectEventCapacitySource, ss as resolveWholeSeriesRunLifecycle, t as buildCartDisplay, tr as formatRemainingPlaces, ua as resolveModeArrangement, ui as bookingNowSchema, us as DEFAULT_MAILING_LIST_PRIVACY_NOTE, ut as resolveEventRequiresPayment, vi as previewStageSchema, vn as placesLeftLabel, wn as MediaPlaceholder, x as REGISTRATION_STEP_LABELS, xn as shownVenue, yi as registrationButtonVariantSchema, yn as registrationDisplaySchema } from "./display-ChgDe9Da.mjs";
4
- import { Ft as formatDate, Ht as inferSiteDateLocale, It as formatDateRange, Kt as buildBookingUtcDateWindow, L as publicEventDestinationSchema, Qt as parseBookingLocalDate, R as publicEventSchema, S as isEventCalendarListLayout, St as publicEventLoaderQuerySchemaShape, Zt as getLocalScheduleDate, bt as eventSurfacePresetValues, en as resolveBookingBusinessTimeZone, ft as publicMembershipProductSchema, g as eventCalendarListGroupingDecision, gt as purchasablePublicPassProductSchema, ht as purchasablePublicMembershipProductSchema, in as toUtcIsoDateTimeString, mt as publicProductSchema, n as blockSiteTermsSchema, p as calendarWindowPageSchema, pt as publicPassProductSchema, rn as parseUtcIsoDateTimeString, tn as resolveBookingTimeZoneId, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, xt as eventSurfaceScopeValues, y as eventListArrangementValues, yt as eventScheduleScopeValues, zt as formatTime } from "./noop-poI1m2yW.mjs";
3
+ import { Ba as defineProgressiveBlockRuntime, Ca as browserReadAuthoritySchema, Cc as formatBookingPriceDisplay, Cr as renderAudio, Cs as toNonEmptyReadonlyArray, Ct as toRegistrationEvents, D as registrationStepLabel, Dc as publicEventPricingDisplay, E as registrationRoute, Fa as eventRegistrationPageSurfaceSubjectSchema, Ga as lookListPresentationSchemaShape, Ha as listItemPresentation, Jr as resolveRuntimeEventDestination, La as resolveEventRegistrationScopedEvents, Ma as buildInteractiveIslandProps, Mr as eventDateLocale, N as isRegistrationLocked, Na as createInteractiveIslandCodec, Nn as formatRegistrationSchedule, Nr as eventDateOptions, O as registrationStepLabelContext, Or as resolveMediaNodeResponsiveImage, Pa as defineInteractiveIslandMetaKeys, Pc as parseEventSeriesId, Pr as eventLocalDateKey, Qr as formatRemainingPlaces, Ra as createZodCodec, Rr as formatEventCompactDateRail, S as getEventSelectionMode, Sa as resolveDateRuntimeContext, Sc as EVENT_PRESET_VOCABULARY, Sr as mediaImageHostProps, Tt as toWholeSeriesRegistrationEvents, Va as isDecodeSuccess, Vn as withOccurrenceTitle, Vs as cardRoleSchema, Wa as listLookSlot, _a as weekStartSchema, _c as parseBrevoListId, _r as shownVenue, a as buildProductDetailDisplay, b as resolveSelectedProduct, bc as parseNewsletterListId, br as MediaPlaceholder, ca as calendarTabViewsSchema, da as eventCalendarDefaultViewSchema, dc as resolveWholeSeriesBookingPhase, ds as assertNever, dt as resolveEventRequiresPayment, fa as eventCalendarDisplayModeSchema, fc as resolveWholeSeriesRunLifecycle, g as deriveCommerceCheckoutState, ga as registrationButtonVariantSchema, gc as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, gr as resolveRegistrationDisplay, ha as previewStageSchema, hc as DEFAULT_MAILING_LIST_PRIVACY_NOTE, hr as registrationDisplaySchema, ii as selectEventCapacitySource, ja as bookingPageKindSchema, jr as eventCalendarWeekStart, ka as pageNavigationSchema, kn as formatBookingWhen, la as columnOptionSchema, lc as nextLiveRunSessionStartMs, lo as resolveModeArrangement, lt as findPreSelectedEvent, ma as filterAutoShowSchema, mr as placesLeftLabel, n as buildCheckoutDisplay, ni as getRemainingPlaces, o as buildProductListDisplay, oi as groupPublicEventsByRun, pa as eventLayoutSchema, pc as parseMailingListRuntimeContext, pr as bookingPresentation, r as buildPassesMembershipsDisplay, sa as bookingNowSchema, t as buildCartDisplay, ua as eventButtonVariantSchema, vc as parseMailchimpAudienceId, vr as RichText, wc as formatEventPricing, wr as renderVideo, wt as toWholeSeriesRegistrationEvent, x as REGISTRATION_STEP_LABELS, xr as computeMediaTransformStyle, ya as blockButtonRoleSchema, yc as parseMailchimpInterestId, yr as ImagePresets, za as defineClientOwnedBlockRuntime } from "./display-lL-YRApN.mjs";
4
+ import { Gt as inferSiteDateLocale, Ht as formatTime, L as publicEventDestinationSchema, Rt as formatDate, S as isEventCalendarListLayout, St as publicEventLoaderQuerySchemaShape, Yt as buildBookingUtcDateWindow, bt as eventSurfacePresetValues, en as getLocalScheduleDate, ft as publicMembershipProductSchema, g as eventCalendarListGroupingDecision, gt as purchasablePublicPassProductSchema, ht as purchasablePublicMembershipProductSchema, in as resolveBookingTimeZoneId, mt as publicProductSchema, n as blockSiteTermsSchema, on as parseUtcIsoDateTimeString, p as calendarWindowPageSchema, pt as publicPassProductSchema, rn as resolveBookingBusinessTimeZone, sn as toUtcIsoDateTimeString, tn as parseBookingLocalDate, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, xt as eventSurfaceScopeValues, y as eventListArrangementValues, yt as eventScheduleScopeValues, z as publicEventSchema, zt as formatDateRange } from "./noop-CN0o0yjH.mjs";
5
5
  import { N as assertNever$2, p as assertNever$1 } from "./creditProducts-BTRX4edc.mjs";
6
- import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-xrjaKaCj.mjs";
7
- import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BMDHwnM6.mjs";
6
+ import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-xrjaKaCj.mjs";
7
+ import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DuaYtnvG.mjs";
8
8
  import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -357,45 +357,6 @@ function buildMailingListSignupBlockSourceRef(blockId, contentVersionId) {
357
357
  } : null;
358
358
  }
359
359
  //#endregion
360
- //#region ../core/src/event-preset-vocabulary.ts
361
- const EVENT_PRESET_VOCABULARY = {
362
- event: {
363
- label: "Event",
364
- pluralLabel: "Events",
365
- description: "Any event, repeating or manually dated, that does not fit the other categories."
366
- },
367
- class: {
368
- label: "Class",
369
- pluralLabel: "Classes",
370
- description: "Regular scheduled classes and group sessions."
371
- },
372
- course: {
373
- label: "Course",
374
- pluralLabel: "Courses",
375
- description: "A fixed set of dates that people book together."
376
- },
377
- term: {
378
- label: "Term",
379
- pluralLabel: "Terms",
380
- description: "A fixed term of sessions that people book together."
381
- },
382
- workshop: {
383
- label: "Workshop",
384
- pluralLabel: "Workshops",
385
- description: "One-off workshops, day sessions, or special events."
386
- },
387
- retreat: {
388
- label: "Retreat",
389
- pluralLabel: "Retreats",
390
- description: "Multi-day or residential immersive experiences."
391
- },
392
- performance: {
393
- label: "Performance",
394
- pluralLabel: "Performances",
395
- description: "Audience-facing shows, concerts, recitals, or showcases."
396
- }
397
- };
398
- //#endregion
399
360
  //#region ../theme-core/src/siteChromePlacement.ts
400
361
  const SITE_CHROME_PLACEMENT_CLASSES = [
401
362
  "rb-sticky",
@@ -559,7 +520,7 @@ function normalizeEventStaffMemberId(value) {
559
520
  //#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
560
521
  /**
561
522
  * Format event price for display.
562
- * @returns "Free", "£25", "£12 - £25", "Free / £12 - £25", "Course (From £40)", etc.
523
+ * @returns "Free", "£25", "£12–£25", "Free / £12–£25", "£220 for the course", etc.
563
524
  *
564
525
  * Events render compact amounts (no trailing ".00"); the actual ADT→string
565
526
  * mapping lives in `formatBookingPriceDisplay` in @riverbankcms/core so all
@@ -567,8 +528,16 @@ function normalizeEventStaffMemberId(value) {
567
528
  */
568
529
  function formatEventPrice(event) {
569
530
  const label = formatEventPricing(event.pricing, { decimals: "auto" });
570
- if (event.bookingScope !== "whole_series") return label;
571
- return publicEventPricingDisplay(event.pricing).kind === "free" ? "Course" : `Course (${label})`;
531
+ return event.bookingScope === "whole_series" ? formatCoursePrice(event.pricing) : label;
532
+ }
533
+ /**
534
+ * A course's price, said for the whole course: one booking covers every
535
+ * session, so "£72 for the course" rather than a bare "£72" next to one
536
+ * session's length.
537
+ */
538
+ function formatCoursePrice(pricing) {
539
+ const label = formatEventPricing(pricing, { decimals: "auto" });
540
+ return publicEventPricingDisplay(pricing).kind === "free" ? label : `${label} for the course`;
572
541
  }
573
542
  /**
574
543
  * Format an event's price directly from its pricing value (without the full
@@ -597,6 +566,31 @@ function formatEventPriceAmount(amount, currency, locale) {
597
566
  locale
598
567
  });
599
568
  }
569
+ /** Compact headline for a grouped course part or a class price figure. */
570
+ function formatEventStartingPrice(pricing) {
571
+ const display = publicEventPricingDisplay(pricing);
572
+ if (pricing.kind !== "tiered") return formatEventPriceDisplay(pricing);
573
+ switch (display.kind) {
574
+ case "exact":
575
+ case "from": return formatBookingPriceDisplay({
576
+ ...display,
577
+ kind: "from"
578
+ }, { decimals: "auto" });
579
+ case "range": return formatBookingPriceDisplay({
580
+ kind: "from",
581
+ amount: display.minAmount,
582
+ currency: display.currency
583
+ }, { decimals: "auto" });
584
+ case "mixed": return formatBookingPriceDisplay({
585
+ kind: "from",
586
+ amount: 0,
587
+ currency: display.currency
588
+ }, { decimals: "auto" });
589
+ case "unavailable":
590
+ case "external": return null;
591
+ case "free": return "Free";
592
+ }
593
+ }
600
594
  //#endregion
601
595
  //#region ../blocks/src/system/runtime/nodes/events/domain/listWeek.ts
602
596
  /** Civil weeks use the site zone, including weeks containing a clock change. */
@@ -700,6 +694,38 @@ function weekColumnDays(week, events, allLoaded) {
700
694
  };
701
695
  });
702
696
  }
697
+ /** Group the entire loaded list: later cursor pages extend an existing week, never repeat its heading. */
698
+ function groupEventsByWeek(events, context) {
699
+ const weekKey = (date) => formatDateKey(getWeekCalendarDayTuple(date, context.startOfWeek)[0]);
700
+ const thisWeek = weekKey(context.today);
701
+ const nextWeek = weekKey(addDays(context.today, 7));
702
+ const groups = events.reduce((grouped, event) => {
703
+ const key = weekKey(getLocalScheduleDate(new Date(event.startsAt), resolveBookingBusinessTimeZone(context.timeZone)));
704
+ return grouped.set(key, [...grouped.get(key) ?? [], event]);
705
+ }, /* @__PURE__ */ new Map());
706
+ const options = eventDateOptions({
707
+ siteTimeZone: context.timeZone,
708
+ timeZone: context.timeZone
709
+ });
710
+ return [...groups].sort(([left], [right]) => left.localeCompare(right)).map(([key, entries]) => ({
711
+ key,
712
+ label: key === thisWeek ? "This week" : key === nextWeek ? "Next week" : `Week of ${formatDate({
713
+ kind: "civil",
714
+ value: parseBookingLocalDate(key)
715
+ }, options, {
716
+ date: "long",
717
+ year: "omit"
718
+ })}`,
719
+ events: [...entries].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))
720
+ }));
721
+ }
722
+ function eventWeekGroupingContext(today, timeZone, startOfWeek = eventCalendarWeekStart(timeZone)) {
723
+ return {
724
+ today,
725
+ timeZone,
726
+ startOfWeek
727
+ };
728
+ }
703
729
  /**
704
730
  * Canonical responsive ladder for a user-configured column count: 1 column at
705
731
  * base, 2 from `sm`, 3 from `lg` (when the count allows), and the full count
@@ -824,6 +850,7 @@ function getCardOrientation(layout) {
824
850
  case "ledger":
825
851
  case "timetable-rows":
826
852
  case "day-groups":
853
+ case "week-groups":
827
854
  case "week-columns":
828
855
  case "compact": return "vertical";
829
856
  }
@@ -840,9 +867,20 @@ const quickFactSlots = {
840
867
  //#endregion
841
868
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventQuickFacts.tsx
842
869
  /** No empty wrapper: site styles own the layout through these slots. */
843
- function EventQuickFacts({ facts, context = "page" }) {
870
+ function EventQuickFacts({ facts, context = "page", chips, eyebrow = false }) {
844
871
  if (!facts?.length) return null;
845
- return /* @__PURE__ */ jsx("dl", {
872
+ if (chips) return /* @__PURE__ */ jsx("dl", {
873
+ ...chips.list,
874
+ "data-context": context,
875
+ children: facts.map((fact, index) => /* @__PURE__ */ jsxs("div", {
876
+ ...chips.item,
877
+ children: [/* @__PURE__ */ jsx("dt", {
878
+ className: "rb-sr-only",
879
+ children: fact.label
880
+ }), /* @__PURE__ */ jsx("dd", { children: fact.value })]
881
+ }, `${fact.label}-${index}`))
882
+ });
883
+ const line = /* @__PURE__ */ jsx("dl", {
846
884
  "data-slot": quickFactSlots.list,
847
885
  "data-context": context,
848
886
  children: facts.map((fact, index) => /* @__PURE__ */ jsxs("div", {
@@ -856,6 +894,10 @@ function EventQuickFacts({ facts, context = "page" }) {
856
894
  })]
857
895
  }, `${fact.label}-${index}`))
858
896
  });
897
+ return eyebrow ? /* @__PURE__ */ jsx("div", {
898
+ "data-slot": "eyebrow",
899
+ children: line
900
+ }) : line;
859
901
  }
860
902
  //#endregion
861
903
  //#region ../blocks/src/system/runtime/nodes/media.server.tsx
@@ -902,7 +944,9 @@ const cardListArrangements = [
902
944
  "plates",
903
945
  "slides",
904
946
  "track",
905
- "type-columns"
947
+ "type-columns",
948
+ "next-cards",
949
+ "course-groups"
906
950
  ];
907
951
  const cardListPresentationSchemaShape = {
908
952
  ...lookListPresentationSchemaShape,
@@ -923,9 +967,16 @@ function selectCardListPresentation(source) {
923
967
  [key]: source[key]
924
968
  }), {});
925
969
  }
926
- /** Actual date rows own availability; a missing batch still uses the summary. */
970
+ /**
971
+ * Date rows that carry places own availability; a course's rows don't, since
972
+ * its places belong to the whole course. A missing batch still uses the summary.
973
+ */
927
974
  function resolveCardListSchedule(item, mode) {
928
- return mode === "next-dates" && item.dates?.length ? {
975
+ if (mode !== "next-dates" || !item.dates?.length) return {
976
+ part: "schedule",
977
+ item
978
+ };
979
+ return item.dates.some((date) => date.places) ? {
929
980
  part: "dates",
930
981
  item: {
931
982
  ...item,
@@ -933,7 +984,7 @@ function resolveCardListSchedule(item, mode) {
933
984
  availability: null
934
985
  }
935
986
  } : {
936
- part: "schedule",
987
+ part: "dates",
937
988
  item
938
989
  };
939
990
  }
@@ -983,9 +1034,9 @@ const partRenderers = {
983
1034
  ...listLookSlot(presentation, "schedule"),
984
1035
  children: item.schedule
985
1036
  }) : null,
986
- dates: ({ item, presentation }) => item.dates?.length ? /* @__PURE__ */ jsx("ul", {
1037
+ dates: ({ item, presentation }) => item.dates?.length ? /* @__PURE__ */ jsxs("ul", {
987
1038
  ...listLookSlot(presentation, "dates"),
988
- children: item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
1039
+ children: [item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
989
1040
  ...listLookSlot(presentation, "date"),
990
1041
  children: [
991
1042
  /* @__PURE__ */ jsx("time", {
@@ -1004,7 +1055,10 @@ const partRenderers = {
1004
1055
  extraClassName: "rb-card-list-date-booking"
1005
1056
  }) : null
1006
1057
  ]
1007
- }, `${date.startsAt}-${index}`))
1058
+ }, `${date.startsAt}-${index}`)), item.datesMore ? /* @__PURE__ */ jsx("li", {
1059
+ "data-dates-more": true,
1060
+ children: item.datesMore
1061
+ }) : null]
1008
1062
  }) : null,
1009
1063
  availability: ({ item, presentation }) => item.availability ? /* @__PURE__ */ jsx("p", {
1010
1064
  ...listLookSlot(presentation, "availability"),
@@ -1043,19 +1097,32 @@ function cardListItemLink(item) {
1043
1097
  }
1044
1098
  function CardListTitle({ item, presentation, Title = "h3" }) {
1045
1099
  const link = cardListItemLink(item);
1046
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Title, {
1047
- ...listLookSlot(presentation, "item-title"),
1048
- children: link ? /* @__PURE__ */ jsx("a", {
1049
- ...link,
1050
- children: /* @__PURE__ */ jsx(LinkedLabel, {
1051
- label: item.title,
1052
- newTabHint: item.newTabHint
1053
- })
1054
- }) : item.title
1055
- }), /* @__PURE__ */ jsx(EventQuickFacts, {
1056
- facts: item.quickFacts,
1057
- context: "card"
1058
- })] });
1100
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1101
+ /* @__PURE__ */ jsx(EventQuickFacts, {
1102
+ facts: item.eyebrowFacts,
1103
+ context: "card",
1104
+ eyebrow: true
1105
+ }),
1106
+ /* @__PURE__ */ jsx(Title, {
1107
+ ...listLookSlot(presentation, "item-title"),
1108
+ children: link ? /* @__PURE__ */ jsx("a", {
1109
+ ...link,
1110
+ children: /* @__PURE__ */ jsx(LinkedLabel, {
1111
+ label: item.title,
1112
+ newTabHint: item.newTabHint
1113
+ })
1114
+ }) : item.title
1115
+ }),
1116
+ item.subtitle ? /* @__PURE__ */ jsx("p", {
1117
+ className: "rb-card-list-subtitle rb-caption",
1118
+ "data-card-subtitle": true,
1119
+ children: item.subtitle
1120
+ }) : null,
1121
+ /* @__PURE__ */ jsx(EventQuickFacts, {
1122
+ facts: item.quickFacts,
1123
+ context: "card"
1124
+ })
1125
+ ] });
1059
1126
  }
1060
1127
  function CardListMedia({ item, presentation }) {
1061
1128
  if (!item.media) return null;
@@ -1545,6 +1612,7 @@ function buildEventCollectionDisplay(source) {
1545
1612
  ...buildEventCollectionListDisplay(source),
1546
1613
  panelHeading: source.panelHeading,
1547
1614
  lookSlots: source.lookSlots,
1615
+ eventRows: source.eventRows,
1548
1616
  itemActionStyle: source.itemActionStyle,
1549
1617
  itemRoles: source.itemRoles,
1550
1618
  surfacePresentation: source.surfacePresentation,
@@ -1634,6 +1702,7 @@ function buildEventCollectionListingDisplay(display, prefetchedEvents, className
1634
1702
  sectionAction: display.sectionAction,
1635
1703
  panelHeading: display.panelHeading,
1636
1704
  lookSlots: display.lookSlots,
1705
+ eventRows: display.eventRows,
1637
1706
  itemActionStyle: display.itemActionStyle,
1638
1707
  itemRoles: display.itemRoles,
1639
1708
  surfacePresentation: display.surfacePresentation,
@@ -1712,6 +1781,15 @@ const eventListingDisplaySchema = z.object({
1712
1781
  today: z.string(),
1713
1782
  timeZone: z.string()
1714
1783
  }).optional(),
1784
+ weekGrouping: z.object({
1785
+ today: z.object({
1786
+ year: z.number(),
1787
+ month: z.number(),
1788
+ day: z.number()
1789
+ }),
1790
+ timeZone: z.string(),
1791
+ startOfWeek: z.enum(["monday", "sunday"])
1792
+ }).optional(),
1715
1793
  allLoaded: z.boolean().optional()
1716
1794
  });
1717
1795
  const eventListingHydrationSchema = z.object({
@@ -2206,7 +2284,10 @@ function buildEventCalendarListingRender(render, className = render.display.clas
2206
2284
  const { display, hydration } = render;
2207
2285
  return {
2208
2286
  mode: "event-listing",
2209
- display: buildEventCalendarListingDisplay(display, hydration.prefetchedEvents, className),
2287
+ display: {
2288
+ ...buildEventCalendarListingDisplay(display, hydration.prefetchedEvents, className),
2289
+ weekGrouping: eventWeekGroupingContext(hydration.calendarContext.initialToday, hydration.calendarContext.timeZone, display.startOfWeek)
2290
+ },
2210
2291
  hydration: {
2211
2292
  siteId: hydration.siteId,
2212
2293
  eventsPerPage: display.eventsPerPage,
@@ -2554,6 +2635,7 @@ function runName(event, courseTitle) {
2554
2635
  }
2555
2636
  function singleEntry(event, input) {
2556
2637
  const isCourse = event.registrationSubject.kind === "wholeSeries";
2638
+ const remaining = getRemainingPlaces(selectEventCapacitySource(event, input.attendanceMode));
2557
2639
  return {
2558
2640
  kind: "single",
2559
2641
  title: input.courseTitle ?? event.title,
@@ -2564,7 +2646,7 @@ function singleEntry(event, input) {
2564
2646
  price: priceLabel(event),
2565
2647
  places: placesLabel(event, input, false),
2566
2648
  tile: dateTile(event),
2567
- action: isCourse ? `Book the ${input.noun.label}` : bookingButtonText(input.buttonText)
2649
+ action: remaining.kind === "full" ? remaining.waitlist ? "Join waitlist" : "Full" : isCourse ? `Book the ${input.noun.label}` : bookingButtonText(input.buttonText)
2568
2650
  };
2569
2651
  }
2570
2652
  function chooseDateEntry(input) {
@@ -2589,20 +2671,24 @@ function chooseDateEntry(input) {
2589
2671
  action: "Choose a date"
2590
2672
  };
2591
2673
  }
2592
- /** The card before a booking starts; the server renders this too. */
2593
- function idleBookingEntry(input) {
2594
- if (input.event) return singleEntry(input.event, input);
2595
- const only = input.events.length === 1 ? input.events[0] : void 0;
2596
- if (only) return singleEntry(only, input);
2597
- if (getEventSelectionMode(input.events) === "date") return chooseDateEntry(input);
2674
+ /** The picker for several events, or the runs of the page's course. */
2675
+ function chooseEventEntry(input) {
2598
2676
  return {
2599
2677
  kind: "chooseEvent",
2600
2678
  title: input.courseTitle ?? input.events[0]?.title ?? "",
2601
2679
  count: input.events.length,
2602
2680
  countLabel: input.courseTitle ? `${input.events.length} to choose from` : `${input.events.length} ${input.noun.pluralLabel}`,
2603
- action: "Choose an event"
2681
+ action: input.courseTitle && input.events.length > 0 && input.events.every((event) => event.registrationSubject.kind === "wholeSeries") ? "Choose dates" : "Choose an event"
2604
2682
  };
2605
2683
  }
2684
+ /** The card before a booking starts; the server renders this too. */
2685
+ function idleBookingEntry(input) {
2686
+ if (input.event) return singleEntry(input.event, input);
2687
+ const only = input.events.length === 1 ? input.events[0] : void 0;
2688
+ if (only) return singleEntry(only, input);
2689
+ if (getEventSelectionMode(input.events) === "date") return chooseDateEntry(input);
2690
+ return chooseEventEntry(input);
2691
+ }
2606
2692
  /** The card and bar's content for the visitor's current position. */
2607
2693
  function bookingEntry(input) {
2608
2694
  if (input.finished) return {
@@ -2758,6 +2844,8 @@ const OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS = [...OFFERINGS_PREVIEW_EVENT_PRE
2758
2844
  const OFFERINGS_PREVIEW_SOURCE_KEYS = OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS;
2759
2845
  function offeringsListingFor(arrangement) {
2760
2846
  switch (arrangement) {
2847
+ case "course-groups": return "by-course";
2848
+ case "next-cards": return "next-per-type";
2761
2849
  case "slides":
2762
2850
  case "track": return "by-date";
2763
2851
  case "legacy":
@@ -2824,6 +2912,7 @@ function resolveOfferingsPreviewGroups(input) {
2824
2912
  title,
2825
2913
  intro,
2826
2914
  hidden: override?.hidden ?? defaultGroup.hidden,
2915
+ ...override?.hideWhenEmpty === true ? { hideWhenEmpty: true } : {},
2827
2916
  presentation: normalizeGroupPresentation(override?.presentation),
2828
2917
  cta: resolveGroupCtaConfig(override)
2829
2918
  };
@@ -2909,13 +2998,14 @@ function resolveOfferingsPreviewGroupCta(input) {
2909
2998
  } : null;
2910
2999
  }
2911
3000
  function buildOfferingsPreviewRenderStates(input) {
3001
+ const now = input.now;
2912
3002
  return input.groups.filter((group) => !group.hidden).map((group) => {
2913
3003
  const data = input.itemsBySourceKey.get(group.sourceKey);
2914
3004
  if (!data || data.kind === "failed") return {
2915
3005
  kind: "failed",
2916
3006
  group
2917
3007
  };
2918
- const items = toNonEmptyReadonlyArray(data.items.slice(0, input.itemLimit));
3008
+ const items = toNonEmptyReadonlyArray(limitOfferingItems(group.hideWhenEmpty || input.listingMode === "next-per-type" ? data.items.filter((item) => offeringHasComingUpDates(item, now)) : data.items, input.listingMode, input.itemLimit));
2919
3009
  return items ? {
2920
3010
  kind: "items",
2921
3011
  group,
@@ -2926,13 +3016,20 @@ function buildOfferingsPreviewRenderStates(input) {
2926
3016
  };
2927
3017
  });
2928
3018
  }
3019
+ function offeringHasComingUpDates(item, now) {
3020
+ if (nextOfferingStartMs(item, now) !== null) return true;
3021
+ return offeringRunLifecycle(item.kind === "event" ? item.event : item.run.representative, now) === "in_progress";
3022
+ }
2929
3023
  /** One selected listing for preview, catalogue and render preparation. */
2930
3024
  function buildOfferingsPreviewListing(input) {
2931
- const groups = toNonEmptyReadonlyArray(buildOfferingsPreviewRenderStates({
3025
+ const loads = buildOfferingsPreviewRenderStates({
2932
3026
  groups: input.groups,
3027
+ listingMode: input.listingMode,
2933
3028
  itemsBySourceKey: input.loads,
2934
- itemLimit: input.itemLimit
2935
- }).map((load) => {
3029
+ itemLimit: input.itemLimit,
3030
+ now: input.now
3031
+ });
3032
+ const groups = toNonEmptyReadonlyArray(loads.filter((load) => load.kind !== "empty" || !load.group.hideWhenEmpty).map((load) => {
2936
3033
  switch (load.kind) {
2937
3034
  case "empty":
2938
3035
  case "failed": return load;
@@ -2943,9 +3040,12 @@ function buildOfferingsPreviewListing(input) {
2943
3040
  default: return assertNever$2(load);
2944
3041
  }
2945
3042
  }));
2946
- if (!groups) return { kind: "no-groups" };
2947
- if (input.listingMode === "by-type") return {
2948
- kind: "by-type",
3043
+ if (!groups) return loads.length > 0 ? {
3044
+ kind: "no-groups",
3045
+ reason: "empty-hidden"
3046
+ } : { kind: "no-groups" };
3047
+ if (input.listingMode !== "by-date") return {
3048
+ kind: input.listingMode === "by-course" ? "by-course" : "by-type",
2949
3049
  groups
2950
3050
  };
2951
3051
  const items = toNonEmptyReadonlyArray(groups.flatMap((load, groupIndex) => {
@@ -2979,15 +3079,20 @@ function nextOfferingStartMs(item, now) {
2979
3079
  }
2980
3080
  function nextOfferingEventStartMs(event, now) {
2981
3081
  if (event.bookingScope === "whole_series") {
2982
- const lifecycle = resolveWholeSeriesRunLifecycle({
2983
- seriesStatus: event.run.lifecycle === "completed" || event.run.lifecycle === "cancelled" ? event.run.lifecycle : event.status ?? "active",
2984
- sessions: event.run.sessions
2985
- }, now);
3082
+ const lifecycle = offeringRunLifecycle(event, now);
2986
3083
  return lifecycle === "completed" || lifecycle === "cancelled" ? null : nextLiveRunSessionStartMs(event.run.sessions, now);
2987
3084
  }
2988
3085
  const startsAt = Date.parse(event.startsAt);
2989
3086
  return startsAt >= now.getTime() ? startsAt : null;
2990
3087
  }
3088
+ /** Respect terminal projection states while rechecking live schedules against the render clock. */
3089
+ function offeringRunLifecycle(event, now) {
3090
+ if (event.bookingScope !== "whole_series") return null;
3091
+ return resolveWholeSeriesRunLifecycle({
3092
+ seriesStatus: event.run.lifecycle === "completed" || event.run.lifecycle === "cancelled" ? event.run.lifecycle : event.status ?? "active",
3093
+ sessions: event.run.sessions
3094
+ }, now);
3095
+ }
2991
3096
  function offeringItemTitle(item) {
2992
3097
  return (item.kind === "event" ? item.event : item.run.representative).title;
2993
3098
  }
@@ -3088,6 +3193,30 @@ function resolveOfferingsRenderInput(input) {
3088
3193
  now: new Date(input.now)
3089
3194
  };
3090
3195
  }
3196
+ /** A course limit keeps all its loaded parts together; other lists still limit individual items. */
3197
+ function limitOfferingItems(items, mode, limit) {
3198
+ if (mode !== "by-course") return items.slice(0, mode === "next-per-type" ? 1 : limit);
3199
+ const identity = (item) => item.kind === "run" ? item.run.run.eventOfferingId : item.event.occurrenceId;
3200
+ const selected = new Set([...new Set(items.map(identity))].slice(0, limit));
3201
+ return items.filter((item) => selected.has(identity(item)));
3202
+ }
3203
+ /** The offering ID owns membership; display names never act as grouping keys. */
3204
+ function groupOfferingRunsByCourse(items) {
3205
+ const runs = items.flatMap((item) => item.kind === "run" && item.run.run.listing ? [{
3206
+ item,
3207
+ id: item.run.run.eventOfferingId,
3208
+ course: item.run.run.listing.course
3209
+ }] : []);
3210
+ return [...new Set(runs.map((run) => run.id))].flatMap((id) => {
3211
+ const parts = runs.filter((run) => run.id === id);
3212
+ const first = parts[0];
3213
+ return first ? [{
3214
+ id,
3215
+ course: first.course,
3216
+ parts: parts.map((run) => run.item)
3217
+ }] : [];
3218
+ });
3219
+ }
3091
3220
  //#endregion
3092
3221
  //#region ../blocks/src/system/runtime/nodes/event-registration/offeringNoun.ts
3093
3222
  function offeringKindForEvent(event) {
@@ -4740,4 +4869,4 @@ function shopProductPresentation(hydration, productId, index, count) {
4740
4869
  };
4741
4870
  }
4742
4871
  //#endregion
4743
- export { bookingCardEntry as $, normalizeEventCategoryIds as $t, formInteractiveIslandPropsCodec as A, buildEventRuntimeFilters as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, selectCardListPresentation as Bt, newsletterFormInteractiveIslandPropsCodec as C, eventPageOperationQuery as Ct, publicGiftingOffersResponseSchema as D, planEventPageOperation as Dt, giftingInteractiveIslandPropsCodec as E, getEventPaginationView as Et, eventRegistrationInteractiveIslandPropsCodec as F, catalogueEventCardProps as Ft, normalizeOfferingsPreviewContentForWrite as G, getContainerClass as Gt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as H, EventQuickFacts as Ht, resolveEventRegistrationEventSource as I, listingEventCardProps as It, resolveOfferingsPreviewGroupCta as J, eventListWeekDays as Jt, normalizeOfferingsPreviewItemLimit as K, Grid as Kt, offeringNounForEvent as L, CardListContentPart as Lt, buildEventRegistrationInteractiveIslandProps as M, normalizeCsvIds as Mt, displayButtonText as N, normalizeCsvString as Nt, buildFormInteractiveIslandProps as O, toEventPaginationLoadError as Ot, eventRegistrationBlockRuntime as P, normalizeOptionalId as Pt, bookingBarPlacement as Q, formatEventPriceDisplay as Qt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as R, CardListLeadDate as Rt, newsletterFormBlockRuntime as S, createInitialEventPaginationLoadState as St, giftingBlockRuntime as T, getEventIdentity as Tt, buildOfferingsPreviewListing as U, quickFactSlots as Ut, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as V, MediaNodeServer as Vt, isOfferingsPreviewSourceKey as W, getCardOrientation as Wt, resolveOfferingsRenderInput as X, formatEventPrice as Xt, resolveOfferingsPreviewGroups as Y, weekColumnDays as Yt, DEFAULT_BOOKING_BUTTON_TEXT as Z, formatEventPriceAmount as Zt, shopProductPresentation as _, DEFAULT_MAILING_LIST_TARGETING as _n, recurringScheduleProjectionSchema as _t, buildShopInteractiveIslandProps as a, resolveEventSelection as an, occurrenceContextSchema as at, buildNewsletterFormInteractiveIslandProps as b, unsafeAsContentEntryId as bn, eventListingBlockRuntime as bt, checkoutBlockRuntime as c, resolveHeaderChromeRuntimeContract as cn, buildEventCombinedListingDisplay as ct, productDetailBlockRuntime as d, planSiteChromePlacement as dn, buildEventCalendarInteractiveIslandProps as dt, normalizeEventScheduleScope as en, bookingEntry as et, productDetailInteractiveIslandPropsCodec as f, splitSiteChromePlacementClasses as fn, buildEventCalendarListingDisplay as ft, shopInteractiveIslandPropsCodec as g, parseMailingListVisitorSelection as gn, projectRecurringSchedule as gt, shopBlockRuntime as h, parseMailingListPlacementTargeting as hn, eventCalendarInteractiveIslandPropsCodec as ht, buildProductListInteractiveIslandProps as i, normalizeEventVenueId as in, formatBookingSchedulePresentation as it, buildEventRegistrationDisplayFromScopedEvents as j, getEventRuntimeFiltersKey as jt, formBlockRuntime as k, toError as kt, checkoutInteractiveIslandPropsCodec as l, staticHeaderChromeRuntime as ln, eventCombinedBlockRuntime as lt, productListInteractiveIslandPropsCodec as m, assessMailingListTargeting as mn, eventCalendarBlockRuntime as mt, buildCheckoutInteractiveIslandProps as n, normalizeEventSurfacePresets as nn, bookingPanelHeading as nt, cartBlockRuntime as o, headerChromeRuntimeContractSchema as on, closedRunCopy as ot, productListBlockRuntime as p, buildMailingListSignupBlockSourceRef as pn, buildEventCalendarListingRender as pt, offeringsListingFor as q, buildEventListWeek as qt, buildProductDetailInteractiveIslandProps as r, normalizeEventSurfaceScope as rn, courseTitleOf as rt, cartInteractiveIslandPropsCodec as s, isHeaderScrollRuntimeEnabled as sn, buildEventCombinedInteractiveIslandProps as st, buildCartInteractiveIslandProps as t, normalizeEventStaffMemberId as tn, bookingEntryProgress as tt, getShopDisplayForItems as u, parseHeaderPositioning as un, eventCombinedInteractiveIslandPropsCodec as ut, publicProductsResponseSchema as v, sameMailingListPlacementTargeting as vn, combinedLookSchema as vt, buildGiftingInteractiveIslandProps as w, eventPaginationLoadReducer as wt, newsletterBlockSubmissionMessage as x, eventListingInteractiveIslandPropsCodec as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, parseContentVersionId as yn, buildEventListingInteractiveIslandProps as yt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as z, resolveCardListSchedule as zt };
4872
+ export { DEFAULT_BOOKING_BUTTON_TEXT as $, groupEventsByWeek as $t, formInteractiveIslandPropsCodec as A, toEventPaginationLoadError as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, CardListLeadDate as Bt, newsletterFormInteractiveIslandPropsCodec as C, parseMailingListVisitorSelection as Cn, eventListingInteractiveIslandPropsCodec as Ct, publicGiftingOffersResponseSchema as D, unsafeAsContentEntryId as Dn, getEventIdentity as Dt, giftingInteractiveIslandPropsCodec as E, parseContentVersionId as En, eventPaginationLoadReducer as Et, eventRegistrationInteractiveIslandPropsCodec as F, normalizeCsvString as Ft, isOfferingsPreviewSourceKey as G, EventQuickFacts as Gt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as H, resolveCardListSchedule as Ht, resolveEventRegistrationEventSource as I, normalizeOptionalId as It, offeringRunLifecycle as J, getContainerClass as Jt, normalizeOfferingsPreviewContentForWrite as K, quickFactSlots as Kt, offeringNounForEvent as L, catalogueEventCardProps as Lt, buildEventRegistrationInteractiveIslandProps as M, buildEventRuntimeFilters as Mt, displayButtonText as N, getEventRuntimeFiltersKey as Nt, buildFormInteractiveIslandProps as O, getEventPaginationView as Ot, eventRegistrationBlockRuntime as P, normalizeCsvIds as Pt, resolveOfferingsRenderInput as Q, eventWeekGroupingContext as Qt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as R, listingEventCardProps as Rt, newsletterFormBlockRuntime as S, parseMailingListPlacementTargeting as Sn, eventListingBlockRuntime as St, giftingBlockRuntime as T, sameMailingListPlacementTargeting as Tn, eventPageOperationQuery as Tt, buildOfferingsPreviewListing as U, selectCardListPresentation as Ut, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as V, cardListPresentationSchemaShape as Vt, groupOfferingRunsByCourse as W, MediaNodeServer as Wt, resolveOfferingsPreviewGroupCta as X, buildEventListWeek as Xt, offeringsListingFor as Y, Grid as Yt, resolveOfferingsPreviewGroups as Z, eventListWeekDays as Zt, shopProductPresentation as _, parseHeaderPositioning as _n, eventCalendarInteractiveIslandPropsCodec as _t, buildShopInteractiveIslandProps as a, formatEventStartingPrice as an, courseTitleOf as at, buildNewsletterFormInteractiveIslandProps as b, buildMailingListSignupBlockSourceRef as bn, combinedLookSchema as bt, checkoutBlockRuntime as c, normalizeEventStaffMemberId as cn, closedRunCopy as ct, productDetailBlockRuntime as d, normalizeEventVenueId as dn, eventCombinedBlockRuntime as dt, weekColumnDays as en, bookingBarPlacement as et, productDetailInteractiveIslandPropsCodec as f, resolveEventSelection as fn, eventCombinedInteractiveIslandPropsCodec as ft, shopInteractiveIslandPropsCodec as g, staticHeaderChromeRuntime as gn, eventCalendarBlockRuntime as gt, shopBlockRuntime as h, resolveHeaderChromeRuntimeContract as hn, buildEventCalendarListingRender as ht, buildProductListInteractiveIslandProps as i, formatEventPriceDisplay as in, bookingPanelHeading as it, buildEventRegistrationDisplayFromScopedEvents as j, toError as jt, formBlockRuntime as k, planEventPageOperation as kt, checkoutInteractiveIslandPropsCodec as l, normalizeEventSurfacePresets as ln, buildEventCombinedInteractiveIslandProps as lt, productListInteractiveIslandPropsCodec as m, isHeaderScrollRuntimeEnabled as mn, buildEventCalendarListingDisplay as mt, buildCheckoutInteractiveIslandProps as n, formatEventPrice as nn, bookingEntry as nt, cartBlockRuntime as o, normalizeEventCategoryIds as on, formatBookingSchedulePresentation as ot, productListBlockRuntime as p, headerChromeRuntimeContractSchema as pn, buildEventCalendarInteractiveIslandProps as pt, normalizeOfferingsPreviewItemLimit as q, getCardOrientation as qt, buildProductDetailInteractiveIslandProps as r, formatEventPriceAmount as rn, bookingEntryProgress as rt, cartInteractiveIslandPropsCodec as s, normalizeEventScheduleScope as sn, occurrenceContextSchema as st, buildCartInteractiveIslandProps as t, formatCoursePrice as tn, bookingCardEntry as tt, getShopDisplayForItems as u, normalizeEventSurfaceScope as un, buildEventCombinedListingDisplay as ut, publicProductsResponseSchema as v, planSiteChromePlacement as vn, projectRecurringSchedule as vt, buildGiftingInteractiveIslandProps as w, DEFAULT_MAILING_LIST_TARGETING as wn, createInitialEventPaginationLoadState as wt, newsletterBlockSubmissionMessage as x, assessMailingListTargeting as xn, buildEventListingInteractiveIslandProps as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, splitSiteChromePlacementClasses as yn, recurringScheduleProjectionSchema as yt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as z, CardListContentPart as zt };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
2
+ import { t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CBUO-xuz.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/rendering/islands/enhancers/shopShared.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-AOUzjDK9.mjs";
3
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
4
4
  import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
5
5
  import { i as hasSpamProtection, n as useSpamProtection, r as getChallengeUrl, t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
6
6
  export { ProtectedSubmitButton, SpamProtectionWidget, getChallengeUrl, hasSpamProtection, submissionProof, useSpamProtection };
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ //#region ../core/src/stable-json.ts
3
+ function stableJsonStringify(value) {
4
+ return JSON.stringify(sortStableJsonValue(value));
5
+ }
6
+ function sortStableJsonValue(value) {
7
+ if (value === null) return null;
8
+ if (typeof value === "string" || typeof value === "boolean") return value;
9
+ if (typeof value === "number") {
10
+ if (!Number.isFinite(value)) throw new TypeError("Stable JSON only supports finite numbers");
11
+ return value;
12
+ }
13
+ if (Array.isArray(value)) return value.map(sortStableJsonValue);
14
+ if (typeof value === "object") {
15
+ const prototype = Object.getPrototypeOf(value);
16
+ if (prototype !== Object.prototype && prototype !== null) throw new TypeError("Stable JSON only supports plain objects");
17
+ return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([key, child]) => [key, sortStableJsonValue(child)]));
18
+ }
19
+ throw new TypeError(`Stable JSON does not support ${typeof value}`);
20
+ }
21
+ //#endregion
22
+ export { stableJsonStringify as t };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { Ln as eventDateOptions, Sn as RichText, Ti as resolveDateRuntimeContext, Vn as formatEventClockLabel, Xn as resolveEventTimeZone, Yn as groupEventsByDate, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, or as isEventFull, qn as formatEventTimeRange } from "./display-ChgDe9Da.mjs";
3
- import { $t as parseLocalScheduleTime, Ft as formatDate, Gt as toScheduledBookingDateTime, Wt as formatBookingCompactEnglishTime } from "./noop-poI1m2yW.mjs";
2
+ import { Kr as groupEventsByDate, Lr as formatEventClockLabel, Nr as eventDateOptions, Sa as resolveDateRuntimeContext, Ur as formatEventTimeRange, Zr as formatEventRemainingPlaces, qr as resolveEventTimeZone, ri as isEventFull, ti as getEventAvailabilityStatus, vr as RichText } from "./display-lL-YRApN.mjs";
3
+ import { Jt as toScheduledBookingDateTime, Rt as formatDate, nn as parseLocalScheduleTime, qt as formatBookingCompactEnglishTime } from "./noop-CN0o0yjH.mjs";
4
4
  import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
5
- import { t as LocationMapActions } from "./LocationMapActions-QahdLtdE.mjs";
6
- import { q as textColorStyle } from "./accessibleSurfaces-BnyVRqdU.mjs";
5
+ import { t as LocationMapActions } from "./LocationMapActions-CdRPU6gp.mjs";
7
6
  import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-xrjaKaCj.mjs";
8
- import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
9
- import { r as resolveEventLinkProps } from "./cta-CP9l112u.mjs";
10
- import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-Dy6UMuIw.mjs";
11
- import { l as formatEventTeacherLine } from "./EventItem-DKdZSW_R.mjs";
12
- import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-DRH9qFny.mjs";
13
- import { t as coerceRichTextDoc } from "./richText-coerce-CtoGLZ_e.mjs";
7
+ import { J as textColorStyle } from "./accessibleSurfaces-D4DhWo9j.mjs";
8
+ import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
9
+ import { c as resolveEventLinkProps, n as eventDisplayTitleText } from "./course-CmOuoZHN.mjs";
10
+ import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-DCLtxOnt.mjs";
11
+ import { l as formatEventTeacherLine } from "./EventItem-Doe4KodB.mjs";
12
+ import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-BMZp3RS3.mjs";
13
+ import { t as coerceRichTextDoc } from "./richText-coerce-ByApwB4q.mjs";
14
14
  import "react";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  import { z } from "zod";
@@ -698,7 +698,7 @@ const WeekBoardCard = ({ event, showCapacity, calendarTimeZone }) => {
698
698
  children: [
699
699
  /* @__PURE__ */ jsx("span", {
700
700
  className: "event-week-board-card-title",
701
- children: event.title
701
+ children: eventDisplayTitleText(event)
702
702
  }),
703
703
  /* @__PURE__ */ jsx("span", {
704
704
  className: "event-week-board-card-time",