@riverbankcms/sdk 0.180.0 → 0.181.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 (232) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
  2. package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +2 -2
  4. package/dist/_dts/{client-BP7VBRvs.d.ts → client-Chr9pNVW.d.ts} +58 -70
  5. package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-kjccgopX.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-BodaiS00.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
  8. package/dist/_dts/{index-BeM5Ylwf.d.ts → index-Brl6_I2j.d.ts} +1 -2
  9. package/dist/_dts/{index-CB5Csefo.d.ts → index-CJkefwYh.d.ts} +2 -2
  10. package/dist/_dts/{index-DQBGwBPx.d.ts → index-D1WpKwQe.d.ts} +1 -1
  11. package/dist/_dts/{index-DQr358-m.d.ts → index-DG0OvBs0.d.ts} +8 -8
  12. package/dist/_dts/{index-Blrw2oVk.d.ts → index-Diqt0PvG.d.ts} +1 -1
  13. package/dist/_dts/{index-DCcxLa8p.d.ts → index-Dy50xUMK.d.ts} +2 -2
  14. package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
  15. package/dist/_dts/{request-P08l6mkr.d.ts → request-CA0izds5.d.ts} +2498 -1108
  16. package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-BvGyvblj.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  28. package/dist/_dts/sdk/src/index.d.ts +104 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +83 -52
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  36. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  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 +6 -6
  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/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +6 -6
  54. package/dist/_dts/{types-HAy1-Jjo.d.ts → types-CQrsP1x_.d.ts} +3 -3
  55. package/dist/_dts/{types-DpEAnP4F.d.ts → types-CgS3xLk8.d.ts} +2 -2
  56. package/dist/_dts/{types-BrK6SS5c.d.ts → types-R65DKjPn.d.ts} +7 -7
  57. package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-6LTIbuBA.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
  59. package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-uWfR2kaG.mjs} +93 -18
  60. package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-CyNIKw6k.mjs} +7 -87
  61. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  62. package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
  63. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +9 -6
  65. package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  68. package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-CwzrjcRw.mjs} +6 -6
  69. package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DZ0qMFF4.mjs} +6 -6
  72. package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +700 -514
  73. package/dist/client/{Page-bX7iy_MK.mjs → Page-C7mygH_f.mjs} +389 -248
  74. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +7 -11
  76. package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
  77. package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-atfDU82W.mjs} +21 -13
  78. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  79. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
  80. package/dist/client/{accordion-wofJY8xY.mjs → accordion-CsW8U3ff.mjs} +1 -1
  81. package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-cBWM392H.mjs} +52 -29
  82. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  83. package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DgySpp6C.mjs} +4 -4
  84. package/dist/client/bookings.mjs +17 -11
  85. package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
  86. package/dist/client/{carousel-BE1dEFsD.mjs → carousel-DJoleFV3.mjs} +2 -2
  87. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  88. package/dist/client/{cart-BsjsdGZE.mjs → cart-EO5o6uPH.mjs} +3 -3
  89. package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-D_gPw45z.mjs} +1 -1
  90. package/dist/client/{checkout-B5KxEUDr.mjs → checkout-NVfZW0kR.mjs} +3 -3
  91. package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
  93. package/dist/client/client.mjs +87 -43
  94. package/dist/client/{constants-PfYJsEZF.mjs → constants-CoOkvw__.mjs} +1 -2
  95. package/dist/client/{context-DtKdUdkO.mjs → context-CRhn9qzS.mjs} +732 -370
  96. package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
  97. package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
  98. package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
  99. package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-D7YYKySQ.mjs} +191 -210
  100. package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
  101. package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
  102. package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-B3KIZNfY.mjs} +4 -4
  103. package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
  104. package/dist/client/{form-Zl1_8RJ6.mjs → form-DM8Zbxbv.mjs} +3 -3
  105. package/dist/client/{form.client-TaMUys6I.mjs → form.client-e2z_Tlgk.mjs} +5 -5
  106. package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-Ctljy1a3.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +32 -29
  108. package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-DWIsqQru.mjs} +4 -4
  109. package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
  110. package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
  111. package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DAkRkwb-.mjs} +2 -2
  112. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  113. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
  115. package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-RuM86VAv.mjs} +23 -24
  116. package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
  117. package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
  118. package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-Dl4mZ-rr.mjs} +167 -49
  119. package/dist/client/portal/client.mjs +13040 -8190
  120. package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
  121. package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
  122. package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-pOAryevt.mjs} +1 -1
  123. package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CcUpUiud.mjs} +1 -1
  124. package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-BZJCfqat.mjs} +3 -3
  125. package/dist/client/{productList-BAdJ6z5S.mjs → productList-CiRs3mNb.mjs} +3 -3
  126. package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
  127. package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-CDNNd8wC.mjs} +247 -203
  128. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  129. package/dist/client/rendering/client.mjs +26 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +16 -8
  132. package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
  133. package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
  136. package/dist/client/{shop-BKsgxm_-.mjs → shop-Rx_gEMK8.mjs} +3 -3
  137. package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
  138. package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
  139. package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
  140. package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
  141. package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-Al4ooTl_.mjs +164 -0
  144. package/dist/client/{src-o7WEvbK1.mjs → src-ZSqRK3dD.mjs} +228 -90
  145. package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-BQJrSK0K.mjs} +9 -78
  146. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  147. package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-Dm3lKJKR.mjs} +2 -3
  148. package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
  149. package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
  150. package/dist/client/{view-CTBwSpKv.mjs → view-CC_yQLSA.mjs} +4 -4
  151. package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-BliJOzEX.mjs} +953 -279
  152. package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BhL0uADo.mjs} +3 -3
  153. package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +5 -5
  154. package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-BS32G4V9.mjs} +4 -4
  155. package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-RL0WfZXD.mjs} +5 -5
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +29 -5
  157. package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-CQyS8pcq.mjs} +5011 -2074
  158. package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlmbvbLN.mjs} +3 -3
  162. package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +1 -1
  164. package/dist/preview-next/container-responsive.css +203 -174
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-R3PcMmax.mjs} +71 -37
  168. package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-CniF9tSu.mjs} +5 -5
  169. package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BQWsnGT6.mjs} +126 -120
  170. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
  171. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  172. package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DxojjtK3.mjs} +7 -7
  173. package/dist/server/{client-m0ylCj_f.mjs → client-CDndhbYO.mjs} +86 -42
  174. package/dist/server/config-validation.mjs +1 -1
  175. package/dist/server/config.mjs +2 -2
  176. package/dist/server/constants-VyF5nEhL.mjs +1474 -0
  177. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-BKstMBmX.mjs} +5 -4
  181. package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-IgNnZaqr.mjs} +3 -3
  182. package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-TFjgNG61.mjs} +38 -18
  183. package/dist/server/manifest.mjs +36 -25
  184. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  185. package/dist/server/media-BRmYrnzb.mjs +31 -0
  186. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  187. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
  188. package/dist/server/navigation.mjs +1 -1
  189. package/dist/server/next.mjs +134 -81
  190. package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
  191. package/dist/server/page-converter.mjs +3 -3
  192. package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-B7iULvKe.mjs} +8 -7
  193. package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-BytMroxn.mjs} +5 -5
  194. package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-Dcs_XTIO.mjs} +243 -323
  195. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
  196. package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
  197. package/dist/server/portal.mjs +3 -3
  198. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  199. package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-agaH-vZV.mjs} +1 -1
  200. package/dist/server/prebuild.mjs +1 -1
  201. package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-DwpRjqw4.mjs} +4 -3
  202. package/dist/server/{registry-CvhFwbXJ.mjs → registry-DM9dHfDC.mjs} +345 -449
  203. package/dist/server/rendering/components/pageShared.mjs +1 -1
  204. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  205. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  206. package/dist/server/rendering/server.mjs +4 -4
  207. package/dist/server/rendering.mjs +10 -9
  208. package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-CinHGf8l.mjs} +2 -2
  209. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
  210. package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
  211. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BBBhOtdE.mjs} +21 -20
  214. package/dist/server/theme-bridge.mjs +3 -2
  215. package/dist/server/theme.mjs +2 -2
  216. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  217. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  218. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  219. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  220. package/dist/server/{validation-DCl-FCk_.mjs → validation-DG5jX3jH.mjs} +70 -17
  221. package/dist/server/{version-DT_R5JAR.mjs → version-CipbxPHL.mjs} +1 -1
  222. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  223. package/dist/styles/index.css +1013 -1840
  224. package/package.json +2 -1
  225. package/dist/_dts/index-B0_2-65A.d.ts +0 -101
  226. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  227. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  228. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  229. package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
  230. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  231. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  232. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -1,23 +1,25 @@
1
1
  "use client";
2
- import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, Sn as formatEventPriceDisplay, T as DEFAULT_BOOKING_BUTTON_TEXT, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
- import { $n as getTicketSelectionTotal, $t as runNeedsPricingChoice, An as formatEventDateTime, Ba as canJoinEventWaitlistOnAnyMode, C as registrationStopsHere, E as resolveRegistrationAvailabilityBlocker, Fn as getTicketTypeAvailabilityLabel, Hi as formatPrice, Ht as SELECTION_LIMIT_NOTE, In as getVisibleTicketTypes, Ja as selectEventCapacitySource, Ka as getRemainingPlaces, Ln as occurrenceTitleOverride, M as isEventRegistrationAvailable, Mn as formatTime, Ms as publicEventPricingType, N as normalizeEventRegistrationMaxTickets, O as settledRemainingPlaces, On as formatBookingWhen, Qn as getTicketLineQuantity, Qo as INCOMPATIBLE_ATTENDANCE_MESSAGE, Qt as runChoiceUsable, St as resolveFinishedPresentation, U as paymentChoiceDetails, Ur as resolveEventRegistrationScopedEvents, Ut as SEVERAL_BOOKINGS_ACCOUNT_NOTE, Vi as formatCentsAsCurrencyInput, W as paymentChoicePrice, Wa as getEventAvailability, Wt as canToggleSelectionItem, Xn as canRequestTicketOption, Ya as selectMostOpenCapacitySource, _ as closedAdmissionLabel, an as selectionEntitlementNote, b as placeCountCeiling, bn as combinationOffersOf, c as registrationStepLabelContext, cn as selectionItemsLabel, dn as selectionRowAvailability, en as runPricingChoice, er as getTicketTypeLineMax, es as setRoomChoicePeople, fr as placesLeftLabel, g as shouldPromptForLogin, hr as shownVenue, in as selectionConsentLabel, ja as bookingPresentation, jn as formatRegistrationSchedule, js as publicEventPricingStrategy, kn as formatDate, ks as publicEventPricingCurrency, l as areEventRegistrationPaymentSelectionsEqual, li as getRegistrationSuccessCopy, ln as selectionPlacesLabel, lt as ADD_A_PLACE, n as getEventSelectionMode, nn as selectionAtLimit, on as selectionIncludes, pn as severalConfirmationSentence, qa as isEventFull, r as panelShouldOpen, rn as selectionConfirmationHint, rr as setTicketLineQuantity, s as registrationStepLabel, tn as runUnitPriceCents, un as selectionPlacesNote, v as fullyBookedLabel, wn as selectionItemName, xt as confirmationPaymentRows, yn as combinationOfferLine, za as canJoinEventWaitlist, zn as withOccurrenceTitle } from "./wizardSteps-CWIQyRIw.mjs";
4
- import { Tn as formatCurrencyAmount, t as assertNever } from "./src-o7WEvbK1.mjs";
5
- import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BAdW5DvE.mjs";
6
- import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-DiD9uYs6.mjs";
7
- import { n as useBlockApi } from "./context-DtKdUdkO.mjs";
8
- import { r as ThemedButton, x as SpinnerNode } from "./ThemedButton-CnSa7o-I.mjs";
9
- import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-PfYJsEZF.mjs";
10
- import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-0Ua44F1j.mjs";
2
+ import { A as bookingPanelHeading, Cn as formatEventPriceDisplay, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-RuM86VAv.mjs";
3
+ import { An as formatCurrencyAmount, t as assertNever } from "./src-ZSqRK3dD.mjs";
4
+ import { An as selectionConfirmationHint, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as selectMostOpenCapacitySource, Dn as runPricingChoice, Dr as getTicketSelectionTotal, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Es as INCOMPATIBLE_ATTENDANCE_MESSAGE, Fn as selectionItemsLabel, In as selectionPlacesLabel, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Li as getRegistrationSuccessCopy, Ln as selectionPlacesNote, Mn as selectionEntitlementNote, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Os as setRoomChoicePeople, Rn as selectionRowAvailability, So as selectEventCapacitySource, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _i as resolveEventRegistrationScopedEvents, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ao as bookingPresentation, ar as formatRunScheduleLines, bo as getRemainingPlaces, c as registrationStepLabelContext, dc as publicEventPricingStrategy, dr as occurrenceTitleOverride, dt as paymentChoiceDetails, et as isEventRegistrationAvailable, fc as publicEventPricingType, ft as paymentChoicePrice, ga as formatPrice, gn as SELECTION_LIMIT_NOTE, ha as formatCentsAsCurrencyInput, ir as formatRegistrationSchedule, jn as selectionConsentLabel, jr as setTicketLineQuantity, kn as selectionAtLimit, l as areEventRegistrationPaymentSelectionsEqual, lc as publicEventPricingCurrency, lr as getTicketTypeAvailabilityLabel, mo as canJoinEventWaitlistOnAnyMode, n as getEventSelectionMode, nr as formatDate, or as formatTime, po as canJoinEventWaitlist, pr as withOccurrenceTitle, qn as combinationOffersOf, r as panelShouldOpen, rr as formatEventDateTime, s as registrationStepLabel, tr as formatBookingWhen, tt as normalizeEventRegistrationMaxTickets, ur as getVisibleTicketTypes, vo as getEventAvailability, wr as canRequestTicketOption, xo as isEventFull, yn as canToggleSelectionItem, yt as entryChoosesEvent, z as shouldPromptForLogin } from "./wizardSteps-BliJOzEX.mjs";
5
+ import { i as portalPath } from "./portalRoutes-D72yvtDh.mjs";
6
+ import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-B4z-e4Wq.mjs";
7
+ import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-DSqCJL8E.mjs";
8
+ import { n as useBlockApi } from "./context-CRhn9qzS.mjs";
9
+ import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
10
+ import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CoOkvw__.mjs";
11
+ import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-DFLPyuqe.mjs";
11
12
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
12
- import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
13
+ import { t as CheckboxChoice } from "./CheckboxChoice-C8i4NraK.mjs";
13
14
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
14
15
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
15
16
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
16
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-BcFQRI_7.mjs";
17
+ import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-uWfR2kaG.mjs";
18
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-klgfGn7f.mjs";
17
19
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
18
- import { a as MagicLinkForm, d as PaymentChoiceRows, n as OrganiserContactLine, o as BookingConsentAgreement, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-CGxg37zx.mjs";
19
- import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DCqorVne.mjs";
20
+ import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-atfDU82W.mjs";
20
21
  import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
22
+ import { t as CalendarAction } from "./CalendarAction-D_Glwvz2.mjs";
21
23
  import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
22
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
25
  import { createPortal } from "react-dom";
@@ -1242,7 +1244,7 @@ const ErrorStep = ({ message, onRetry, action = "retry", canJoinWaitlist = false
1242
1244
  children: offerWaitlist ? "Sorry, this event is now full. You can join the waiting list, and we’ll email you if a place becomes available." : message
1243
1245
  }),
1244
1246
  actions: action === "none" ? void 0 : action === "portal" ? /* @__PURE__ */ jsx("a", {
1245
- href: "/portal",
1247
+ href: portalPath({ page: "bookings" }),
1246
1248
  className: "er-retry-btn",
1247
1249
  children: labels[action]
1248
1250
  }) : /* @__PURE__ */ jsx("button", {
@@ -1679,7 +1681,7 @@ function SelectTicketsActions(props) {
1679
1681
  return /* @__PURE__ */ jsxs("div", {
1680
1682
  className: "rb-wizard-actions er-actions",
1681
1683
  children: [
1682
- !wizard.hasPreSelectedContext && /* @__PURE__ */ jsx("button", {
1684
+ entryChoosesEvent(wizard.entry) && /* @__PURE__ */ jsx("button", {
1683
1685
  type: "button",
1684
1686
  onClick: () => wizard.setStep("select-event"),
1685
1687
  className: "er-back-btn",
@@ -1885,7 +1887,10 @@ function renderRegistrationAvailabilityBlocker(admission) {
1885
1887
  heading: blocker.heading,
1886
1888
  message: blocker.message
1887
1889
  });
1888
- case "closed": return /* @__PURE__ */ jsx(ClosedPaymentPanel, { message: blocker.message });
1890
+ case "closed": return /* @__PURE__ */ jsx(ClosedPaymentPanel, {
1891
+ message: blocker.message,
1892
+ contact: admission.kind === "closed" ? admission.contact : void 0
1893
+ });
1889
1894
  }
1890
1895
  }
1891
1896
  function PaymentBlockingPanel(props) {
@@ -1935,7 +1940,7 @@ function AlreadyWaitlistedPaymentPanel() {
1935
1940
  className: "er-text er-text--muted",
1936
1941
  children: "You're already on the waitlist for this event."
1937
1942
  }), /* @__PURE__ */ jsx("a", {
1938
- href: "/portal",
1943
+ href: portalPath({ page: "bookings" }),
1939
1944
  className: "er-retry-btn",
1940
1945
  children: "View my bookings"
1941
1946
  })]
@@ -1964,15 +1969,16 @@ function FreePaymentSummary({ ticketsCount }) {
1964
1969
  })]
1965
1970
  });
1966
1971
  }
1967
- function ClosedPaymentPanel({ message }) {
1972
+ /** Why this can't be paid for here, and who to contact when the business can take the booking directly. */
1973
+ function ClosedPaymentPanel({ message, contact }) {
1968
1974
  return /* @__PURE__ */ jsx("div", {
1969
1975
  className: "rb-reg-stack er-stack",
1970
- children: /* @__PURE__ */ jsx("div", {
1976
+ children: /* @__PURE__ */ jsxs("div", {
1971
1977
  className: "er-center",
1972
- children: /* @__PURE__ */ jsx("p", {
1978
+ children: [/* @__PURE__ */ jsx("p", {
1973
1979
  className: "er-text er-error",
1974
1980
  children: message
1975
- })
1981
+ }), contact ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact }) : null]
1976
1982
  })
1977
1983
  });
1978
1984
  }
@@ -1981,19 +1987,18 @@ function ClosedPaymentPanel({ message }) {
1981
1987
  function places(count) {
1982
1988
  return count === 1 ? "1 place" : `${count} places`;
1983
1989
  }
1984
- /** Waitlist entries have their own notice, so only confirmed bookings count here. */
1990
+ /** Only confirmed bookings come back for a date; waitlist places have their own notice. */
1985
1991
  function summariseExistingBookings(registrations) {
1986
- const confirmed = registrations.filter((registration) => registration.status === "confirmed");
1987
- const [only] = confirmed;
1992
+ const [only] = registrations;
1988
1993
  if (!only) return { kind: "none" };
1989
- if (confirmed.length === 1) return {
1994
+ if (registrations.length === 1) return {
1990
1995
  kind: "booked",
1991
1996
  detail: only.ticketBreakdown ?? places(only.ticketsCount)
1992
1997
  };
1993
- const placeCount = confirmed.reduce((total, registration) => total + registration.ticketsCount, 0);
1998
+ const placeCount = registrations.reduce((total, registration) => total + registration.ticketsCount, 0);
1994
1999
  return {
1995
2000
  kind: "booked",
1996
- detail: `${confirmed.length} bookings · ${places(placeCount)}`
2001
+ detail: `${registrations.length} bookings · ${places(placeCount)}`
1997
2002
  };
1998
2003
  }
1999
2004
  //#endregion
@@ -2419,10 +2424,7 @@ function LoadedFundingStep(props) {
2419
2424
  props.signInPrompt,
2420
2425
  layout.options ? /* @__PURE__ */ jsxs("div", {
2421
2426
  className: "rb-reg-stack er-stack er-funding-options",
2422
- children: [/* @__PURE__ */ jsx(StepHeading, {
2423
- title: PAY_HEADING,
2424
- changeDates: layout.changeDatesOn === "options" ? changeDates : void 0
2425
- }), /* @__PURE__ */ jsx(PaymentChoiceRows, {
2427
+ children: [/* @__PURE__ */ jsx(StepHeading, { title: PAY_HEADING }), /* @__PURE__ */ jsx(PaymentChoiceRows, {
2426
2428
  label: PAY_HEADING,
2427
2429
  rows: view.rows.map((row) => ({
2428
2430
  id: row.key,
@@ -2475,7 +2477,7 @@ function fundingStepLayout(view, oneDate, hasCardSummary) {
2475
2477
  return {
2476
2478
  options,
2477
2479
  breakdown,
2478
- changeDatesOn: options ? "options" : breakdown ? "breakdown" : "alone"
2480
+ changeDatesOn: breakdown ? "breakdown" : "alone"
2479
2481
  };
2480
2482
  }
2481
2483
  function showsPaymentOptions(view) {
@@ -2617,14 +2619,23 @@ function DateSelectionList(props) {
2617
2619
  */
2618
2620
  const EventSelectionStep = (props) => {
2619
2621
  const { events, selectedEvent, onSelect, onChoose, display } = props;
2620
- if ("selection" in props) return /* @__PURE__ */ jsx(SeveralSelection, {
2621
- items: props.mode.items,
2622
- events,
2623
- selection: props.selection,
2624
- display,
2625
- onToggle: props.onToggle,
2626
- onJoinWaitlist: props.onJoinWaitlist
2627
- });
2622
+ if ("selection" in props) {
2623
+ const rows = {
2624
+ selection: props.selection,
2625
+ display,
2626
+ onToggle: props.onToggle,
2627
+ onJoinWaitlist: props.onJoinWaitlist
2628
+ };
2629
+ return props.pageDate ? /* @__PURE__ */ jsx(PageDateFirstSelection, {
2630
+ pageDate: props.pageDate,
2631
+ events,
2632
+ rows
2633
+ }) : /* @__PURE__ */ jsx(SeveralSelection, {
2634
+ items: props.mode.items,
2635
+ events,
2636
+ rows
2637
+ });
2638
+ }
2628
2639
  if (getEventSelectionMode(events) === "date") return /* @__PURE__ */ jsxs("div", {
2629
2640
  className: "rb-reg-stack er-stack",
2630
2641
  children: [
@@ -2736,19 +2747,51 @@ const SEVERAL_HEADINGS = {
2736
2747
  label: "What to book"
2737
2748
  }
2738
2749
  };
2739
- /**
2740
- * Booking several (issue 1725): one checkbox row per date or run. A full row
2741
- * can't be ticked; when it has a waitlist, its link books that one item.
2742
- */
2743
- function SeveralSelection(props) {
2744
- const heading = SEVERAL_HEADINGS[props.items];
2745
- const sorted = [...props.events].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
2750
+ function byStart(left, right) {
2751
+ return Date.parse(left.startsAt) - Date.parse(right.startsAt);
2752
+ }
2753
+ /** One checkbox row per item, under month labels when dates span more than one month. */
2754
+ function SeveralOptionList(props) {
2755
+ const sorted = [...props.events].sort(byStart);
2746
2756
  const groups = props.items === "dates" ? groupByMonth(sorted) : [{
2747
2757
  key: "runs",
2748
2758
  label: "",
2749
2759
  events: sorted
2750
2760
  }];
2751
2761
  const showMonths = groups.length > 1;
2762
+ const { rows } = props;
2763
+ return /* @__PURE__ */ jsx("div", {
2764
+ className: "er-date-list",
2765
+ role: "group",
2766
+ "aria-label": props.label,
2767
+ children: groups.map((group) => /* @__PURE__ */ jsxs(React.Fragment, { children: [showMonths ? /* @__PURE__ */ jsx("p", {
2768
+ className: "er-date-list__month",
2769
+ "aria-hidden": "true",
2770
+ children: group.label
2771
+ }) : null, group.events.map((event) => /* @__PURE__ */ jsx(SeveralOption, {
2772
+ items: props.items,
2773
+ event,
2774
+ checked: selectionIncludes(rows.selection, event),
2775
+ canToggle: canToggleSelectionItem(rows.selection, event),
2776
+ display: rows.display,
2777
+ onToggle: rows.onToggle,
2778
+ onJoinWaitlist: rows.onJoinWaitlist
2779
+ }, event.selectionId))] }, group.key))
2780
+ });
2781
+ }
2782
+ function SelectionLimitNote({ selection }) {
2783
+ return selectionAtLimit(selection) ? /* @__PURE__ */ jsx("p", {
2784
+ className: "er-text er-text--muted",
2785
+ role: "status",
2786
+ children: SELECTION_LIMIT_NOTE
2787
+ }) : null;
2788
+ }
2789
+ /**
2790
+ * Booking several (issue 1725): one checkbox row per date or run. A full row
2791
+ * can't be ticked; when it has a waitlist, its link books that one item.
2792
+ */
2793
+ function SeveralSelection(props) {
2794
+ const heading = SEVERAL_HEADINGS[props.items];
2752
2795
  return /* @__PURE__ */ jsxs("div", {
2753
2796
  className: "rb-reg-stack er-stack",
2754
2797
  children: [
@@ -2763,29 +2806,53 @@ function SeveralSelection(props) {
2763
2806
  }),
2764
2807
  /* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
2765
2808
  /* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
2766
- /* @__PURE__ */ jsx("div", {
2767
- className: "er-date-list",
2768
- role: "group",
2769
- "aria-label": heading.label,
2770
- children: groups.map((group) => /* @__PURE__ */ jsxs(React.Fragment, { children: [showMonths ? /* @__PURE__ */ jsx("p", {
2771
- className: "er-date-list__month",
2772
- "aria-hidden": "true",
2773
- children: group.label
2774
- }) : null, group.events.map((event) => /* @__PURE__ */ jsx(SeveralOption, {
2775
- items: props.items,
2776
- event,
2777
- checked: selectionIncludes(props.selection, event),
2778
- canToggle: canToggleSelectionItem(props.selection, event),
2779
- display: props.display,
2780
- onToggle: props.onToggle,
2781
- onJoinWaitlist: props.onJoinWaitlist
2782
- }, event.selectionId))] }, group.key))
2809
+ /* @__PURE__ */ jsx(SeveralOptionList, {
2810
+ items: props.items,
2811
+ events: props.events,
2812
+ label: heading.label,
2813
+ rows: props.rows
2783
2814
  }),
2784
- selectionAtLimit(props.selection) ? /* @__PURE__ */ jsx("p", {
2785
- className: "er-text er-text--muted",
2786
- role: "status",
2787
- children: SELECTION_LIMIT_NOTE
2788
- }) : null
2815
+ /* @__PURE__ */ jsx(SelectionLimitNote, { selection: props.rows.selection })
2816
+ ]
2817
+ });
2818
+ }
2819
+ /**
2820
+ * A date's own page: its date comes first, ticked to start with, and the
2821
+ * class's other dates follow as the class's own page lists them.
2822
+ */
2823
+ function PageDateFirstSelection(props) {
2824
+ const others = props.events.filter((event) => event.selectionId !== props.pageDate.selectionId);
2825
+ return /* @__PURE__ */ jsxs("div", {
2826
+ className: "rb-reg-stack er-stack",
2827
+ children: [
2828
+ /* @__PURE__ */ jsx("h3", {
2829
+ tabIndex: -1,
2830
+ className: "er-title",
2831
+ children: "Your date"
2832
+ }),
2833
+ /* @__PURE__ */ jsx(SeveralOptionList, {
2834
+ items: "dates",
2835
+ events: [props.pageDate],
2836
+ label: "Your date",
2837
+ rows: props.rows
2838
+ }),
2839
+ /* @__PURE__ */ jsx("h3", {
2840
+ className: "er-title er-title--sub",
2841
+ children: "Add more dates"
2842
+ }),
2843
+ /* @__PURE__ */ jsx("p", {
2844
+ className: "er-text er-text--muted er-selection-lede",
2845
+ children: "Tick any others you’d like to book at the same time."
2846
+ }),
2847
+ /* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
2848
+ /* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
2849
+ /* @__PURE__ */ jsx(SeveralOptionList, {
2850
+ items: "dates",
2851
+ events: others,
2852
+ label: "More dates",
2853
+ rows: props.rows
2854
+ }),
2855
+ /* @__PURE__ */ jsx(SelectionLimitNote, { selection: props.rows.selection })
2789
2856
  ]
2790
2857
  });
2791
2858
  }
@@ -2800,17 +2867,17 @@ function CombinationOfferLine(props) {
2800
2867
  function runPriceLabel(event) {
2801
2868
  return publicEventPricingCurrency(event.pricing) === null ? null : formatEventPriceDisplay(event.pricing).trim() || null;
2802
2869
  }
2803
- /** The words on a row: a date and time for dates, a title, schedule and price for runs. */
2870
+ /** The words on a row: a date and its time for dates; a title, schedule lines, venue and price for runs. */
2804
2871
  function severalOptionText(items, event, display) {
2805
2872
  if (items === "dates") return {
2806
2873
  title: formatBookingWhen(event, "dayLong"),
2807
- detail: formatBookingWhen(event, "timeRange"),
2874
+ lines: [formatBookingWhen(event, "timeRange")],
2808
2875
  price: null
2809
2876
  };
2810
- const detail = [formatRegistrationSchedule(event), shownVenue(event, display)].filter(Boolean).join(" · ");
2877
+ const venue = shownVenue(event, display);
2811
2878
  return {
2812
2879
  title: event.title,
2813
- detail,
2880
+ lines: [...formatRunScheduleLines(event), ...venue ? [venue] : []],
2814
2881
  price: runPriceLabel(event)
2815
2882
  };
2816
2883
  }
@@ -2843,6 +2910,10 @@ function SeveralOptionStatus(props) {
2843
2910
  }
2844
2911
  }
2845
2912
  }
2913
+ /**
2914
+ * One row in the list: the checkbox level with the title, the details under
2915
+ * it, and places or price to the side (under the details on a phone).
2916
+ */
2846
2917
  function SeveralOption(props) {
2847
2918
  const { event } = props;
2848
2919
  const availability = selectionRowAvailability(event);
@@ -2850,10 +2921,13 @@ function SeveralOption(props) {
2850
2921
  const className = [
2851
2922
  "er-event-card",
2852
2923
  "er-date-option",
2924
+ "er-date-option--grid",
2925
+ props.items === "dates" && "er-date-option--dates",
2926
+ props.items === "runs" && "er-date-option--run",
2853
2927
  props.checked && "er-event-card--selected",
2854
2928
  !open && "er-date-option--full"
2855
2929
  ].filter(Boolean).join(" ");
2856
- const { title, detail, price } = severalOptionText(props.items, event, props.display);
2930
+ const { title, lines, price } = severalOptionText(props.items, event, props.display);
2857
2931
  const Row = availability === "waitlist" ? "div" : "label";
2858
2932
  return /* @__PURE__ */ jsxs(Row, {
2859
2933
  className,
@@ -2864,27 +2938,30 @@ function SeveralOption(props) {
2864
2938
  value: event.selectionId,
2865
2939
  checked: props.checked,
2866
2940
  disabled: !props.canToggle,
2867
- "aria-label": Row === "div" ? [title, detail].filter(Boolean).join(", ") : void 0,
2941
+ "aria-label": Row === "div" ? [title, ...lines].join(", ") : void 0,
2868
2942
  onChange: () => props.onToggle(event)
2869
2943
  }),
2944
+ /* @__PURE__ */ jsx("span", {
2945
+ className: "er-date-option__date",
2946
+ children: title
2947
+ }),
2870
2948
  /* @__PURE__ */ jsxs("span", {
2871
- className: "er-date-option__main",
2872
- children: [/* @__PURE__ */ jsx("span", {
2873
- className: "er-date-option__date",
2874
- children: title
2875
- }), detail ? /* @__PURE__ */ jsx("span", {
2876
- className: "er-date-option__time",
2877
- children: detail
2949
+ className: "er-date-option__aside",
2950
+ children: [/* @__PURE__ */ jsx(SeveralOptionStatus, {
2951
+ event,
2952
+ display: props.display,
2953
+ onJoinWaitlist: props.onJoinWaitlist
2954
+ }), price && open ? /* @__PURE__ */ jsx("span", {
2955
+ className: "er-date-option__price",
2956
+ children: price
2878
2957
  }) : null]
2879
2958
  }),
2880
- /* @__PURE__ */ jsx(SeveralOptionStatus, {
2881
- event,
2882
- display: props.display,
2883
- onJoinWaitlist: props.onJoinWaitlist
2884
- }),
2885
- price && open ? /* @__PURE__ */ jsx("span", {
2886
- className: "er-date-option__price",
2887
- children: price
2959
+ lines.length > 0 ? /* @__PURE__ */ jsx("span", {
2960
+ className: "er-date-option__body",
2961
+ children: lines.map((line) => /* @__PURE__ */ jsx("span", {
2962
+ className: "er-date-option__time",
2963
+ children: line
2964
+ }, line))
2888
2965
  }) : null
2889
2966
  ]
2890
2967
  });
@@ -3491,106 +3568,6 @@ function UnavailableEntitlementNotes({ eligibility }) {
3491
3568
  }, note)) });
3492
3569
  }
3493
3570
  //#endregion
3494
- //#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
3495
- /** Download effects happen only after a click, including in editor preview. */
3496
- async function downloadCalendar(calendar) {
3497
- const { renderCalendarFeedIcs } = await import("./src-DqMbCjI1.mjs");
3498
- const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
3499
- const link = document.createElement("a");
3500
- link.href = url;
3501
- link.download = calendar.fileName;
3502
- document.body.append(link);
3503
- link.click();
3504
- link.remove();
3505
- setTimeout(() => URL.revokeObjectURL(url), 0);
3506
- }
3507
- function CalendarAction({ calendar }) {
3508
- const [open, setOpen] = useState(false);
3509
- const [downloadFailed, setDownloadFailed] = useState(false);
3510
- const id = useId();
3511
- const choicesRef = useRef(null);
3512
- useEffect(() => {
3513
- if (open) choicesRef.current?.scrollIntoView({ block: "nearest" });
3514
- }, [open]);
3515
- const close = () => setOpen(false);
3516
- const download = async (value) => {
3517
- setDownloadFailed(false);
3518
- try {
3519
- await downloadCalendar(value);
3520
- close();
3521
- } catch {
3522
- setDownloadFailed(true);
3523
- }
3524
- };
3525
- if (!calendar) return null;
3526
- return /* @__PURE__ */ jsxs("div", {
3527
- className: "er-calendar-action",
3528
- onBlur: (event) => {
3529
- if (!event.currentTarget.contains(event.relatedTarget)) close();
3530
- },
3531
- onKeyDown: (event) => {
3532
- if (event.key === "Escape" && open) {
3533
- event.stopPropagation();
3534
- close();
3535
- event.currentTarget.querySelector("button")?.focus();
3536
- }
3537
- },
3538
- children: [calendar.kind === "sessions" ? /* @__PURE__ */ jsx(ThemedButton, {
3539
- type: "button",
3540
- variant: "outline",
3541
- size: "md",
3542
- extraClassName: "er-calendar-action__trigger",
3543
- label: calendar.sessionCount === 2 ? "Add both sessions to your calendar" : `Add all ${calendar.sessionCount} sessions to your calendar`,
3544
- onClick: () => {
3545
- download(calendar);
3546
- }
3547
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
3548
- type: "button",
3549
- variant: "outline",
3550
- size: "md",
3551
- extraClassName: "er-calendar-action__trigger er-calendar-action__trigger--disclosure",
3552
- label: "Add to calendar",
3553
- "aria-expanded": open,
3554
- "aria-controls": id,
3555
- onClick: () => setOpen(!open)
3556
- }), open ? /* @__PURE__ */ jsxs("div", {
3557
- id,
3558
- ref: choicesRef,
3559
- className: "er-calendar-action__choices",
3560
- children: [
3561
- /* @__PURE__ */ jsx("a", {
3562
- className: "er-calendar-action__choice",
3563
- href: calendar.googleUrl,
3564
- target: "_blank",
3565
- rel: "noopener noreferrer",
3566
- onClick: close,
3567
- children: "Google Calendar"
3568
- }),
3569
- /* @__PURE__ */ jsx("a", {
3570
- className: "er-calendar-action__choice",
3571
- href: calendar.outlookUrl,
3572
- target: "_blank",
3573
- rel: "noopener noreferrer",
3574
- onClick: close,
3575
- children: "Outlook.com"
3576
- }),
3577
- /* @__PURE__ */ jsx("button", {
3578
- type: "button",
3579
- className: "er-calendar-action__choice",
3580
- onClick: () => {
3581
- download(calendar);
3582
- },
3583
- children: "Apple Calendar or other (.ics file)"
3584
- })
3585
- ]
3586
- }) : null] }), downloadFailed ? /* @__PURE__ */ jsx("p", {
3587
- role: "alert",
3588
- className: "er-calendar-action__error",
3589
- children: "We couldn't create the calendar file. Please try again."
3590
- }) : null]
3591
- });
3592
- }
3593
- //#endregion
3594
3571
  //#region ../blocks/src/system/runtime/nodes/event-registration/SuccessStep.tsx
3595
3572
  function ConfirmationSummary({ rows }) {
3596
3573
  if (!rows || rows.length === 0) return null;
@@ -3828,7 +3805,7 @@ function ExistingRegistrationNotice(props) {
3828
3805
  body: isBooked ? props.detail : "Sign out to book for someone else.",
3829
3806
  secondaryBody: isBooked ? "Need more tickets? You can book them below. They'll come as a new booking with its own confirmation email, and your first booking won't change." : void 0,
3830
3807
  actions: isBooked ? /* @__PURE__ */ jsx("a", {
3831
- href: "/portal",
3808
+ href: portalPath({ page: "bookings" }),
3832
3809
  className: "er-existing-registration-link",
3833
3810
  children: "View my bookings"
3834
3811
  }) : /* @__PURE__ */ jsx("button", {
@@ -3913,8 +3890,8 @@ function AttendeeDetailsContent(props) {
3913
3890
  }
3914
3891
  function EventDiscountCodeDisclosure(props) {
3915
3892
  const { wizard } = props;
3916
- const coverSelected = wizard.discountCardOnly;
3917
- const preview = coverSelected ? null : wizard.combinationCodeField;
3893
+ if (wizard.discountAccess === "notOffered") return null;
3894
+ const preview = wizard.combinationCodeField;
3918
3895
  if (preview?.failed) return /* @__PURE__ */ jsxs("div", {
3919
3896
  role: "alert",
3920
3897
  children: [/* @__PURE__ */ jsx("p", { children: "We couldn’t check your price. Try again." }), /* @__PURE__ */ jsx("button", {
@@ -3923,17 +3900,16 @@ function EventDiscountCodeDisclosure(props) {
3923
3900
  children: "Try again"
3924
3901
  })]
3925
3902
  });
3926
- if (!coverSelected && (wizard.discountsAvailableLoading || !wizard.shouldShowDiscountToggle)) return null;
3903
+ if (wizard.discountsAvailableLoading || !wizard.shouldShowDiscountToggle) return null;
3927
3904
  return /* @__PURE__ */ jsx(EventDiscountField, {
3928
3905
  wizard,
3929
- coverSelected,
3930
3906
  preview
3931
3907
  });
3932
3908
  }
3933
- function EventDiscountField({ wizard, coverSelected, preview }) {
3909
+ function EventDiscountField({ wizard, preview }) {
3934
3910
  return /* @__PURE__ */ jsx(DiscountCodeDisclosure, {
3935
3911
  surface: "event-registration",
3936
- isOpen: coverSelected || wizard.discountUiOpen,
3912
+ isOpen: wizard.discountUiOpen,
3937
3913
  code: wizard.discountCode,
3938
3914
  onOpen: () => wizard.setDiscountUiOpen(true),
3939
3915
  onChange: wizard.setDiscountCode,
@@ -3943,8 +3919,6 @@ function EventDiscountField({ wizard, coverSelected, preview }) {
3943
3919
  },
3944
3920
  applied: preview?.feedback?.tone === "success",
3945
3921
  id: "er-discount-code",
3946
- disabled: coverSelected,
3947
- hint: coverSelected ? "Codes apply to card payments. Choose Pay by card to use one." : void 0,
3948
3922
  ...preview ? {
3949
3923
  onApply: () => void preview.apply(),
3950
3924
  isApplying: preview.applying,
@@ -3967,8 +3941,8 @@ function PaymentSelectionContent(props) {
3967
3941
  if (subtotalCents === null) return /* @__PURE__ */ jsx(PaymentBlockingPanel, {
3968
3942
  eligibility: wizard.eligibility,
3969
3943
  admission: wizard.admission,
3970
- eligibilityLoading: wizard.eligibilityLoading,
3971
- eligibilityError: wizard.eligibilityError,
3944
+ eligibilityLoading: wizard.paymentOptionsLoading,
3945
+ eligibilityError: wizard.paymentOptionsError,
3972
3946
  paysNothing: wizard.paymentDecision.paysNothing,
3973
3947
  email: wizard.formData.email,
3974
3948
  ticketsCount: wizard.ticketsCount,
@@ -3986,8 +3960,8 @@ function PaymentSelectionContent(props) {
3986
3960
  onSelectionChange: wizard.handlePaymentSelectionChange,
3987
3961
  eligibility: wizard.eligibility,
3988
3962
  admission: wizard.admission,
3989
- eligibilityLoading: wizard.eligibilityLoading,
3990
- eligibilityError: wizard.eligibilityError,
3963
+ eligibilityLoading: wizard.paymentOptionsLoading,
3964
+ eligibilityError: wizard.paymentOptionsError,
3991
3965
  onRequestLogin: () => wizard.setShowMagicLinkModal(true),
3992
3966
  decision: wizard.paymentDecision
3993
3967
  }),
@@ -3997,12 +3971,12 @@ function PaymentSelectionContent(props) {
3997
3971
  ] });
3998
3972
  }
3999
3973
  /**
4000
- * The note under the ways to pay, in both payment layouts. Several items: what
4001
- * the places booked entitle the visitor to (a date's pass and membership notes
4002
- * come with its ways to pay). One booking: why it's paid in full.
3974
+ * The note under the ways to pay, in both payment layouts. Several runs: that
3975
+ * passes and memberships are for one run at a time (a date's pass and membership
3976
+ * notes come with its ways to pay). One booking: why it's paid in full.
4003
3977
  */
4004
3978
  function PaymentStepNote({ wizard }) {
4005
- const note = wizard.severalItems === null ? wizard.paymentInFullNote : selectionEntitlementNote(wizard.severalItems, wizard.paymentDecision.paysInFullBecauseSeveral);
3979
+ const note = wizard.severalItems === null ? wizard.paymentInFullNote : selectionEntitlementNote(wizard.severalItems);
4006
3980
  return note ? /* @__PURE__ */ jsx("p", {
4007
3981
  className: "er-entitlement-note",
4008
3982
  children: note
@@ -4054,6 +4028,11 @@ function TicketSelectionContent({ wizard, display }) {
4054
4028
  kind: "waitlisted",
4055
4029
  onBookForSomeoneElse: wizard.handleBookForSomeoneElse
4056
4030
  }),
4031
+ wizard.portalAuthState === "authenticated" && wizard.existingRegistrationState.tag === "failed" && !isWaitlisted && /* @__PURE__ */ jsx("p", {
4032
+ role: "status",
4033
+ className: "er-text",
4034
+ children: "We couldn’t check whether you’ve already booked this date. If you have, this will be a separate booking."
4035
+ }),
4057
4036
  /* @__PURE__ */ jsx(ClosedAdmissionNotice, { wizard }),
4058
4037
  /* @__PURE__ */ jsx(TicketStepBookingCloseLine, { wizard }),
4059
4038
  /* @__PURE__ */ jsx(TicketChooser, {
@@ -4068,6 +4047,7 @@ function TicketSelectionContent({ wizard, display }) {
4068
4047
  * or another room or run might not need one.
4069
4048
  */
4070
4049
  function selectionCouldChangePrice(wizard) {
4050
+ if (wizard.admission.kind === "closed" && wizard.admission.reason === "bookingsClosed") return false;
4071
4051
  return wizard.selectedEventSlidingScale != null || wizard.visibleTicketTypes.length > 1 || wizard.roomChooser != null || wizard.severalItems === "runs";
4072
4052
  }
4073
4053
  /**
@@ -4138,6 +4118,7 @@ function EventRegistrationWizardContent(props) {
4138
4118
  ...wizard.selectionMode.kind === "several" ? {
4139
4119
  mode: wizard.selectionMode,
4140
4120
  selection: wizard.selection,
4121
+ pageDate: wizard.entry.kind === "pageDateAndMore" ? wizard.entry.event : null,
4141
4122
  onToggle: wizard.handleSelectionToggle,
4142
4123
  onJoinWaitlist: wizard.handleWaitlistChoose
4143
4124
  } : { mode: wizard.selectionMode },
@@ -4187,7 +4168,7 @@ function SelectionFundingPayment(props) {
4187
4168
  creditPreview: wizard.paymentDecision.preview,
4188
4169
  signInPrompt: props.signInPrompt,
4189
4170
  afterOptions: /* @__PURE__ */ jsx(EventDiscountCodeDisclosure, { wizard }),
4190
- onChangeDates: wizard.hasPreSelectedContext ? void 0 : wizard.handleChangeDates
4171
+ onChangeDates: entryChoosesEvent(wizard.entry) ? wizard.handleChangeDates : void 0
4191
4172
  }),
4192
4173
  /* @__PURE__ */ jsx(PaymentStepNote, { wizard }),
4193
4174
  /* @__PURE__ */ jsx(BundleSiteTerms, { wizard })
@@ -4439,7 +4420,6 @@ function EventRegistrationStepLayout(props) {
4439
4420
  });
4440
4421
  return /* @__PURE__ */ jsxs("div", {
4441
4422
  className: "er-payment-layout er-payment-layout--no-sidebar",
4442
- "data-room-chooser": wizard.roomChooser ? "" : void 0,
4443
4423
  children: [/* @__PURE__ */ jsxs("div", {
4444
4424
  className: "er-payment-layout-main",
4445
4425
  children: [
@@ -4730,7 +4710,8 @@ function useConfiguredEventRegistrationWizard(props) {
4730
4710
  siteTerms: props.siteTerms,
4731
4711
  pageNavigation: props.pageNavigation,
4732
4712
  offeringNoun: props.offeringNoun,
4733
- siteName: props.siteName
4713
+ siteName: props.siteName,
4714
+ datePageOffer: "addMoreDates"
4734
4715
  });
4735
4716
  }
4736
4717
  function EventRegistrationWizard(props) {