@riverbankcms/sdk 0.174.0 → 0.174.1

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 (171) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-GqVX3I8E.d.ts → BlocksIslandsHydrator-YRmc-Yxz.d.ts} +1 -1
  2. package/dist/_dts/{Page-BhUH31M-.d.ts → Page-Du0zX1B-.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-4L8v3FkY.d.ts} +2 -2
  4. package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B1J6Akyf.d.ts} +1 -1
  5. package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-CGGYI0u_.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-CHMlw9hT.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-DIHSU1Vr.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-JITXD6BU.d.ts} +2 -2
  9. package/dist/_dts/{index-Bq-488M7.d.ts → index-BLEKFHt1.d.ts} +1 -1
  10. package/dist/_dts/{index-DYsP4k6S.d.ts → index-BgOr1Xyz.d.ts} +3 -3
  11. package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-CF62FntA.d.ts} +2 -2
  12. package/dist/_dts/{index-3GzargmS.d.ts → index-CXZSy_9M.d.ts} +2 -2
  13. package/dist/_dts/{index-DYlfdT1O.d.ts → index-D9ZYmGAJ.d.ts} +1 -1
  14. package/dist/_dts/{index-DdEi2iXd.d.ts → index-DpJm0NpL.d.ts} +4 -4
  15. package/dist/_dts/{index--39uLjrr.d.ts → index-yWDbUojb.d.ts} +1 -1
  16. package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-M-s0p0rq.d.ts} +7 -7
  17. package/dist/_dts/{request-Be1E-H-V.d.ts → request-BK-pHf0P.d.ts} +449 -118
  18. package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-DZAlnhwt.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-DXUCWJ3y.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 +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-5MeDI1w8.d.ts → types-CwmB2NHU.d.ts} +7 -7
  54. package/dist/_dts/{types-Bm5_3VEd.d.ts → types-DjVNADXR.d.ts} +3 -3
  55. package/dist/_dts/{types-CVoCc_Ia.d.ts → types-Dmow_FI6.d.ts} +2 -2
  56. package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-h8t1HLlL.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-DRVx_XLi.mjs} +16 -16
  58. package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-CwrMzj-k.mjs} +2 -2
  59. package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-C2_hFT6K.mjs} +1 -1
  60. package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Az1-TIEI.mjs} +4 -4
  61. package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → DemoBookingPortalAccess-1p-pJ1lg.mjs} +1 -1
  62. package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-CDkkP-Lv.mjs} +8 -8
  63. package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-DK3aaz62.mjs} +5 -5
  64. package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-WeUipfIP.mjs} +3 -3
  65. package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-D3sbAeDo.mjs} +1 -1
  66. package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DL3gGGmF.mjs} +3 -3
  67. package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-DKFImKOx.mjs} +5 -5
  68. package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-Dn9TpWyL.mjs} +39 -13
  69. package/dist/client/{Page--xJ23nA5.mjs → Page-BpeP9xdt.mjs} +58 -1011
  70. package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-CP6zrwkl.mjs} +4 -241
  71. package/dist/client/{accordion-BQtTkDN8.mjs → accordion-nR7D4m1a.mjs} +1 -1
  72. package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-Ce-mQZ7W.mjs} +6 -6
  73. package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-B-qT_AQB.mjs} +3 -3
  74. package/dist/client/bookings.mjs +3 -3
  75. package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-CrE3TDpW.mjs} +2 -29
  76. package/dist/client/{carousel-CPsW-FPh.mjs → carousel-CVUOatsY.mjs} +1 -1
  77. package/dist/client/{cart-CwElmocm.mjs → cart-DE0K6E0R.mjs} +3 -3
  78. package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-C23E6WQ5.mjs} +1 -1
  79. package/dist/client/{checkout-CfMgqY8H.mjs → checkout-76cdHyPL.mjs} +3 -3
  80. package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-DJOzqb26.mjs} +1 -1
  81. package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-CvIP5DCO.mjs} +1 -1
  82. package/dist/client/client.mjs +4 -3
  83. package/dist/client/{course-q1sA4Cj-.mjs → course-DHIrXqNT.mjs} +1 -1
  84. package/dist/client/{display-D8MW2b0e.mjs → display-Cf_j5stk.mjs} +1972 -382
  85. package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-5GD5o4Mt.mjs} +3 -3
  86. package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-D7Oz1q2L.mjs} +1 -1
  87. package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-zbuX36aA.mjs} +133 -127
  88. package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-uZrksODt.mjs} +3 -3
  89. package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-DxhvNAx8.mjs} +3 -3
  90. package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-DCIH4BYG.mjs} +2 -2
  91. package/dist/client/{eventListing-_14atrj8.mjs → eventListing-B9KrnPvc.mjs} +3 -3
  92. package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-TjnURMKl.mjs} +3 -3
  93. package/dist/client/{form-DfAB-llc.mjs → form-CfqIAhfN.mjs} +2 -2
  94. package/dist/client/{form.client-DN-I9_qC.mjs → form.client-CL6fF0cW.mjs} +2 -2
  95. package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Bf-L66Gg.mjs} +1 -1
  96. package/dist/client/{headerSection-Dces54pb.mjs → headerSection-WVXtOcuW.mjs} +2 -2
  97. package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-Bb7GAZpO.mjs} +3 -3
  98. package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-BqOVRdIc.mjs} +1 -1
  99. package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-DOVe-qY3.mjs} +2 -2
  100. package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-CNzeFnFf.mjs} +1 -1
  101. package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-LKpzC7pj.mjs} +1 -1
  102. package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-D2JNeEgx.mjs} +3 -3
  103. package/dist/client/{productList-Df5qDD0z.mjs → productList-DTgZXOEq.mjs} +3 -3
  104. package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-mpBQt2AT.mjs} +2 -2
  105. package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-DdTJyar2.mjs} +19 -37
  106. package/dist/client/rendering/client.mjs +20 -20
  107. package/dist/client/rendering/islands.mjs +1 -1
  108. package/dist/client/rendering.mjs +5 -6
  109. package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-8cfSgT0E.mjs} +1 -1
  110. package/dist/client/{shop-gteEpeO5.mjs → shop-5LBhftWx.mjs} +3 -3
  111. package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-DkValjZj.mjs} +8 -8
  112. package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-BOmXFmk_.mjs} +1 -1
  113. package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-discount-apply.state-D0ifS6KX.mjs} +1 -1
  114. package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BTtZqNmv.mjs} +8 -8
  115. package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-DNRqG4aX.mjs} +6 -5
  116. package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-Nky6kPYr.mjs} +1 -1
  117. package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DZArznD_.mjs} +5 -142
  118. package/dist/client/{useDiscountApply-BZU5DWZQ.mjs → useDiscountApply-BBnStWXU.mjs} +1 -1
  119. package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-d7viY_mu.mjs} +1 -1
  120. package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Da2JqxGC.mjs} +4 -4
  121. package/dist/client/{view-CvlTplao.mjs → view-BvuYmQJ5.mjs} +2 -2
  122. package/dist/client/{view-CxUpgcM6.mjs → view-D9ObkFtz.mjs} +5 -6
  123. package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-DwxHT-2k.mjs} +3 -3
  124. package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-D4SBxGU6.mjs} +9 -9
  125. package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-D8mUct32.mjs} +4 -4
  126. package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-L2AEdNUQ.mjs} +5 -5
  127. package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-bhVAU2D2.mjs} +5 -5
  128. package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-Jpj_HDra.mjs} +852 -610
  129. package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-CYTDvx4u.mjs} +1 -1
  130. package/dist/preview-next/client/runtime.mjs +3 -3
  131. package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-CZHX6J_4.mjs} +2 -2
  132. package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-DmGIG9Hk.mjs} +3 -3
  133. package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-DQCyswQ-.mjs} +1 -1
  134. package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-LwE5yXvL.mjs} +13 -2
  135. package/dist/preview-next/keepAlive.mjs +1 -1
  136. package/dist/preview-next/middleware.mjs +1 -1
  137. package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-BOuNcOcN.mjs} +1 -0
  138. package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-wfJfhs08.mjs} +4 -4
  139. package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-BtrJNHTB.mjs} +1 -1
  140. package/dist/server/{bindings-CQg2lzZn.mjs → bindings-P1CF2Gm6.mjs} +4 -4
  141. package/dist/server/{client-aYRTVneD.mjs → client-CGtU5fHI.mjs} +2 -1
  142. package/dist/server/config-validation.mjs +1 -1
  143. package/dist/server/config.mjs +2 -2
  144. package/dist/server/data/resolveBlockData.mjs +1 -1
  145. package/dist/server/index.mjs +2 -2
  146. package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-ChnkJSay.mjs} +4 -4
  147. package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-DesHhgxj.mjs} +2 -2
  148. package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-BBr0mkze.mjs} +106 -8
  149. package/dist/server/next.mjs +6 -6
  150. package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-DHEkHcZs.mjs} +1 -1
  151. package/dist/server/page-converter.mjs +1 -1
  152. package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-0jvm0RBk.mjs} +13 -323
  153. package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-8-f1Zr9e.mjs} +1 -1
  154. package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-CuVFoV4z.mjs} +7 -243
  155. package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-Bms_Y7wQ.mjs} +1 -1
  156. package/dist/server/prebuild.mjs +1 -1
  157. package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-5oC5kyHe.mjs} +2 -2
  158. package/dist/server/{registry-34rkAfaU.mjs → registry-DmqxC8th.mjs} +663 -48
  159. package/dist/server/rendering/components/pageShared.mjs +1 -1
  160. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  161. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  162. package/dist/server/rendering/server.mjs +3 -3
  163. package/dist/server/rendering.mjs +7 -7
  164. package/dist/server/{resolveBlockData-D7VeoWgr.mjs → resolveBlockData-EYogtwQc.mjs} +1 -1
  165. package/dist/server/server.mjs +3 -3
  166. package/dist/server/theme-bridge.mjs +1 -1
  167. package/dist/server/{validation-CLVKoJrX.mjs → validation-Bt_8IL1g.mjs} +3 -3
  168. package/dist/server/{version-HVfdvBJ0.mjs → version-DT_efohp.mjs} +1 -1
  169. package/dist/styles/index.css +66 -20
  170. package/package.json +1 -1
  171. package/dist/client/bookability-CE637yDE.mjs +0 -17
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { cr as decideSignInReturn, dr as signInReturnPath, fr as sweepExpiredSignInReturnDrafts, ja as requestSignIn, lr as nextSignInReturnExpiry, or as clearSignInReturnDrafts, ur as readSignInReturn, vr as RichText } from "./display-D8MW2b0e.mjs";
2
+ import { Pa as requestSignIn, cr as decideSignInReturn, dr as signInReturnPath, fr as sweepExpiredSignInReturnDrafts, lr as nextSignInReturnExpiry, or as clearSignInReturnDrafts, ur as readSignInReturn, vr as RichText } from "./display-Cf_j5stk.mjs";
3
3
  import { p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
4
- import { c as NavigationHandOffPanel } from "./DemoBookingPortalAccess-BnEgvJas.mjs";
4
+ import { c as NavigationHandOffPanel } from "./DemoBookingPortalAccess-1p-pJ1lg.mjs";
5
5
  import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-CNlesLfF.mjs";
6
6
  import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
7
7
  import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-DZMrGvBh.mjs";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { pr as bookingPresentation } from "./display-D8MW2b0e.mjs";
2
+ import { pr as bookingPresentation } from "./display-Cf_j5stk.mjs";
3
3
  import "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/StepIndicator.tsx
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { rn as formatEventPrice } from "./shop.interactive-CKFORzux.mjs";
3
- import { Ga as listLookSlot, Gr as formatTime, Kr as groupEventsByDate, Nr as eventDateOptions, Ua as listItemPresentation, Zr as formatEventRemainingPlaces, qr as resolveEventTimeZone, ri as isEventFull } from "./display-D8MW2b0e.mjs";
2
+ import { rn as formatEventPrice } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { Jr as eventDateOptions, ci as resolveEventTimeZone, co as isEventFull, go as listItemPresentation, no as formatEventRemainingPlaces, oi as formatTime, si as groupEventsByDate, vo as listLookSlot } from "./display-Cf_j5stk.mjs";
4
4
  import { Bt as formatDate, rn as parseBookingLocalDate } from "./noop-D5mFWXtN.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
6
  import { d as formatDateKey, v as isToday } from "./src-xrjaKaCj.mjs";
7
7
  import { i as ThemedButtonLink } from "./ThemedButton-DuaYtnvG.mjs";
8
- import { c as resolveEventLinkProps, n as eventDisplayTitleText, s as resolveEventCta, t as eventDisplayTitle } from "./course-q1sA4Cj-.mjs";
8
+ import { c as resolveEventLinkProps, n as eventDisplayTitleText, s as resolveEventCta, t as eventDisplayTitle } from "./course-DHIrXqNT.mjs";
9
9
  import { o as formatEventLocation } from "./MapDrawingSvg-DCIwlON6.mjs";
10
- import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-C-mxXpX_.mjs";
10
+ import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-WeUipfIP.mjs";
11
11
  import "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region ../blocks/src/system/runtime/nodes/events/domain/monthDay.ts
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { ka as leavePage } from "./display-D8MW2b0e.mjs";
2
+ import { Ma as leavePage } from "./display-Cf_j5stk.mjs";
3
3
  import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-D5mFWXtN.mjs";
4
4
  import { p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
5
5
  import { i as BlockApiError, n as useBlockApi } from "./context-CNlesLfF.mjs";
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Nt as buildEventRuntimeFilters, Qt as eventListWeekDays, Zt as buildEventListWeek, gt as buildEventCalendarListingRender } from "./shop.interactive-CKFORzux.mjs";
3
- import { Br as formatEventHourLabel, Kr as groupEventsByDate } from "./display-D8MW2b0e.mjs";
2
+ import { Nt as buildEventRuntimeFilters, Qt as eventListWeekDays, Zt as buildEventListWeek, gt as buildEventCalendarListingRender } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { si as groupEventsByDate, ti as formatEventHourLabel } from "./display-Cf_j5stk.mjs";
4
4
  import { h as resolveCalendarReadProfile } from "./noop-D5mFWXtN.mjs";
5
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-CtZiIj9q.mjs";
5
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DZArznD_.mjs";
6
6
  import { d as formatDateKey, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
8
- import { n as eventDisplayTitleText } from "./course-q1sA4Cj-.mjs";
9
- import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-BPQU5Snc.mjs";
10
- import { i as useEventCollectionFilters } from "./useEventPagination-B4VPtSEF.mjs";
11
- import { n as EventListingController } from "./EventListing.client-Bs_8im5_.mjs";
12
- import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-B_ytWQtn.mjs";
8
+ import { n as eventDisplayTitleText } from "./course-DHIrXqNT.mjs";
9
+ import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-Az1-TIEI.mjs";
10
+ import { i as useEventCollectionFilters } from "./useEventPagination-Da2JqxGC.mjs";
11
+ import { n as EventListingController } from "./EventListing.client-DL3gGGmF.mjs";
12
+ import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-DK3aaz62.mjs";
13
13
  import { useEffect, useMemo, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { Ct as eventListingBlockRuntime, Mt as toError, Nt as buildEventRuntimeFilters, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-CKFORzux.mjs";
3
- import { Ar as buildCalendarViewport, Ea as getBlockApiReadStage, Ga as listLookSlot, Gr as formatTime, Kr as groupEventsByDate, Nr as eventDateOptions, jr as eventCalendarWeekStart } from "./display-D8MW2b0e.mjs";
2
+ import { Ct as eventListingBlockRuntime, Mt as toError, Nt as buildEventRuntimeFilters, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { Gr as buildCalendarViewport, Jr as eventDateOptions, Kr as eventCalendarWeekStart, ka as getBlockApiReadStage, oi as formatTime, si as groupEventsByDate, vo as listLookSlot } from "./display-Cf_j5stk.mjs";
4
4
  import { Bt as formatDate, c as calendarMonthKey, d as calendarWindowBounds, f as calendarWindowMonths$1, l as calendarPageResponseError, m as planCalendarMonthRanges, nn as getLocalScheduleDate, u as calendarQueryKey, vt as calendarMonthDate } from "./noop-D5mFWXtN.mjs";
5
5
  import { n as useBlockApi } from "./context-CNlesLfF.mjs";
6
6
  import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-xrjaKaCj.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
8
- import { n as eventDisplayTitleText } from "./course-q1sA4Cj-.mjs";
9
- import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-BPQU5Snc.mjs";
8
+ import { n as eventDisplayTitleText } from "./course-DHIrXqNT.mjs";
9
+ import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-Az1-TIEI.mjs";
10
10
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
11
11
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
12
12
  import { t as TabBarFragment } from "./TabBarFragment-BqfRLojo.mjs";
13
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-B4VPtSEF.mjs";
13
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Da2JqxGC.mjs";
14
14
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  //#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { Bt as CardListContentPart, Kt as EventQuickFacts, Ut as resolveCardListSchedule, Vt as CardListLeadDate, Wt as selectCardListPresentation, rn as formatEventPrice } from "./shop.interactive-CKFORzux.mjs";
3
- import { Ga as listLookSlot, Nr as eventDateOptions, Rr as formatEventCompactDateRail, Ua as listItemPresentation, Ur as formatEventTimeRange, Wr as formatEventWeekdayTime, Zr as formatEventRemainingPlaces, ti as getEventAvailabilityStatus } from "./display-D8MW2b0e.mjs";
2
+ import { Bt as CardListContentPart, Kt as EventQuickFacts, Ut as resolveCardListSchedule, Vt as CardListLeadDate, Wt as selectCardListPresentation, rn as formatEventPrice } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { $r as formatEventCompactDateRail, Jr as eventDateOptions, ai as formatEventWeekdayTime, go as listItemPresentation, ii as formatEventTimeRange, no as formatEventRemainingPlaces, oo as getEventAvailabilityStatus, vo as listLookSlot } from "./display-Cf_j5stk.mjs";
4
4
  import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue, st as getTextColorForBackground, z as resolveOnColorForThemeToken } from "./accessibleSurfaces-DN8it_Cx.mjs";
5
5
  import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-DuaYtnvG.mjs";
6
- import { c as resolveEventLinkProps, s as resolveEventCta, t as eventDisplayTitle } from "./course-q1sA4Cj-.mjs";
6
+ import { c as resolveEventLinkProps, s as resolveEventCta, t as eventDisplayTitle } from "./course-DHIrXqNT.mjs";
7
7
  import React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Ga as listLookSlot } from "./display-D8MW2b0e.mjs";
2
+ import { vo as listLookSlot } from "./display-Cf_j5stk.mjs";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Nt as buildEventRuntimeFilters } from "./shop.interactive-CKFORzux.mjs";
3
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-Bm3Ap1Rd.mjs";
4
- import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-B4VPtSEF.mjs";
2
+ import { Nt as buildEventRuntimeFilters } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D3sbAeDo.mjs";
4
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-Da2JqxGC.mjs";
5
5
  import { useMemo } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Gt as MediaNodeServer, Kt as EventQuickFacts, en as groupEventsByWeek, rn as formatEventPrice, tn as weekColumnDays } from "./shop.interactive-CKFORzux.mjs";
3
- import { Ga as listLookSlot, Ir as formatDate, Kr as groupEventsByDate, Nr as eventDateOptions, Pr as eventLocalDateKey, Rr as formatEventCompactDateRail, Ua as listItemPresentation, Ur as formatEventTimeRange, Vr as formatEventNextDateFact, yr as ImagePresets } from "./display-D8MW2b0e.mjs";
4
- import { r as boxStyleClassNames } from "./boxStyleClassNames-CNDLpT06.mjs";
2
+ import { Gt as MediaNodeServer, Kt as EventQuickFacts, en as groupEventsByWeek, rn as formatEventPrice, tn as weekColumnDays } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { $r as formatEventCompactDateRail, Jr as eventDateOptions, Yr as eventLocalDateKey, Zr as formatDate, go as listItemPresentation, ii as formatEventTimeRange, ni as formatEventNextDateFact, si as groupEventsByDate, vo as listLookSlot, yr as ImagePresets } from "./display-Cf_j5stk.mjs";
4
+ import { r as boxStyleClassNames } from "./boxStyleClassNames-CrE3TDpW.mjs";
5
5
  import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-DuaYtnvG.mjs";
6
- import { c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, r as formatCourseDatesAfter, s as resolveEventCta, t as eventDisplayTitle } from "./course-q1sA4Cj-.mjs";
6
+ import { c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, r as formatCourseDatesAfter, s as resolveEventCta, t as eventDisplayTitle } from "./course-DHIrXqNT.mjs";
7
7
  import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DCIwlON6.mjs";
8
- import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-C-mxXpX_.mjs";
8
+ import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-WeUipfIP.mjs";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { $n as getSingleSelectedPricingOptionId, A as createInitialRegistrationFlowState, At as toEventSignInDraft, Bi as bookingQuestionsPaymentSnapshotSchema, Bn as transformRegistrationOptionsResponse, Bt as toRunRequirementsSnapshots, Cn as selectionPreviewKey, Ct as toRegistrationEvents, Da as PAGE_NAVIGATION, Dt as eventSignInDraftStore, E as registrationRoute, Et as EVENT_SIGN_IN_FORM_ID, F as buildEventRegistrationPaymentOptionsViewModel, Fn as getImplicitSingleTicketType, Ft as deriveRunRequirements, Gn as getSlidingScaleForEvent, Gt as decideSelectionPayment, H as planRegistrationDetailsContinuation, Hi as deriveBookingQuestions, Hn as getCurrentTicketSelection, I as decideEventRegistrationPayment, In as getPortalSubjectEmail, It as nextRunToRead, J as visitorHoldsOwnPlace, Jn as parseCurrencyInputToCents, Jt as planSelectionPrice, K as resolveRegistrationTicketContinuation, Ki as toBookingQuestionsPaymentSnapshot, Kn as getSlidingScaleSelectionMessage, Kt as effectiveSelection, Lt as runFieldErrors, M as getDeclinedPass, Mt as buildSelectionRequirementsSubmission, N as isRegistrationLocked, Nt as checkRunRequirements, Oc as publicEventPricingCurrency, On as findSelectedTicketType, Ot as eventSignInEnds, P as registrationFlowReducer, Pt as decideSelectionRequirementsLayout, Q as resolveEventRegistrationSubmitPlan, Ra as resolveEventRegistrationScopedEvents, Rn as getVisibleTicketTypes, Rt as runRequirementsSnapshotSchema, St as getRegistrationStartAt, T as registrationPresentation, Tn as serverPricedTotalCents, Tt as toWholeSeriesRegistrationEvents, U as resolveGuestNextStepCheck, Ui as needsBookingQuestionsRefresh, Un as getEligibilityFlowFlags, V as planRegistrationDetailsCheck, Vt as withoutKeptAnswers, W as resolveRegistrationAdmission, Wn as getRegistrationOccurrenceId, Wt as canToggleSelectionItem, Xn as shouldLoadRegistrationOptions, Xt as registrationSelectionMode, Yn as resolveHeldTicketPlaces, Yt as primarySelectionItem, Zn as withRegistrationAvailability, _n as combinationHintCopy, _t as invitationSubmission, an as selectionIncludes, bn as combinationWorking, cc as decideSelectionAttendance, ct as buildRegistrationSelectionRequest, dn as selectionTicketInputs, dt as resolveEventRequiresPayment, ft as resolveRegistrationTarget, gc as resolveBookingSignupOffer, gn as toggleSelectionItem, gt as createRegistrationDraftData, hn as summariseSelectionPayment, ht as beginWaitlistInvitation, ir as normalizeTicketSelectionLines, j as decideEventChoice, ja as requestSignIn, jt as paymentReturnRestoration, ka as leavePage, ki as formatCentsAsCurrencyInput, kt as eventSignInRestoration, lt as findPreSelectedEvent, mn as severalRunsChoiceMessage, mt as toRegistrationRequestSubject, on as selectionItemPrice, pn as severalItemsOf, pt as resolveRouteRequiresPayment, qn as getTicketSelectionRemainingPlaces, qt as incompleteRunChoiceMessage, rr as hasValidPricingOptionSelection, rt as calculateEventRegistrationPreviewTotal, ut as resolveDiscountContext, vt as registrationQuestionsMessage, w as registrationPaymentRoute, wn as selectionPreviewLines, xn as selectionCombinationHint, yn as combinationOffersOf, yt as validateFormData, z as getTicketSelectionPurpose, zt as runsKeepingAnswers } from "./display-D8MW2b0e.mjs";
2
+ import { $c as publicEventPricingCurrency, $n as getSingleSelectedPricingOptionId, A as createInitialRegistrationFlowState, Aa as PAGE_NAVIGATION, At as toEventSignInDraft, Bn as transformRegistrationOptionsResponse, Bt as toRunRequirementsSnapshots, Cn as selectionPreviewKey, Ct as toRegistrationEvents, Dt as eventSignInDraftStore, E as registrationRoute, Et as EVENT_SIGN_IN_FORM_ID, F as buildEventRegistrationPaymentOptionsViewModel, Fn as getImplicitSingleTicketType, Ft as deriveRunRequirements, Gi as deriveBookingQuestions, Gn as getSlidingScaleForEvent, Gt as decideSelectionPayment, H as planRegistrationDetailsContinuation, Hn as getCurrentTicketSelection, I as decideEventRegistrationPayment, In as getPortalSubjectEmail, It as nextRunToRead, J as visitorHoldsOwnPlace, Jn as parseCurrencyInputToCents, Jt as planSelectionPrice, K as resolveRegistrationTicketContinuation, Ki as needsBookingQuestionsRefresh, Kn as getSlidingScaleSelectionMessage, Kt as effectiveSelection, Lt as runFieldErrors, M as getDeclinedPass, Ma as leavePage, Mi as formatCentsAsCurrencyInput, Mt as buildSelectionRequirementsSubmission, N as isRegistrationLocked, Nt as checkRunRequirements, On as findSelectedTicketType, Ot as eventSignInEnds, P as registrationFlowReducer, Pa as requestSignIn, Pc as decideSelectionAttendance, Pt as decideSelectionRequirementsLayout, Q as resolveEventRegistrationSubmitPlan, Rn as getVisibleTicketTypes, Rt as runRequirementsSnapshotSchema, St as getRegistrationStartAt, T as registrationPresentation, Tn as serverPricedTotalCents, Tt as toWholeSeriesRegistrationEvents, U as resolveGuestNextStepCheck, Ui as bookingQuestionsPaymentSnapshotSchema, Un as getEligibilityFlowFlags, V as planRegistrationDetailsCheck, Va as resolveEventRegistrationChoices, Vc as resolveBookingSignupOffer, Vt as withoutKeptAnswers, W as resolveRegistrationAdmission, Wn as getRegistrationOccurrenceId, Wt as canToggleSelectionItem, Xn as shouldLoadRegistrationOptions, Xt as registrationSelectionMode, Yi as toBookingQuestionsPaymentSnapshot, Yn as resolveHeldTicketPlaces, Yt as primarySelectionItem, Zn as withRegistrationAvailability, _n as combinationHintCopy, _t as invitationSubmission, an as selectionIncludes, bn as combinationWorking, ct as buildRegistrationSelectionRequest, dn as selectionTicketInputs, dt as resolveEventRequiresPayment, ft as resolveRegistrationTarget, gn as toggleSelectionItem, gt as createRegistrationDraftData, hn as summariseSelectionPayment, ht as beginWaitlistInvitation, ir as normalizeTicketSelectionLines, j as decideEventChoice, jt as paymentReturnRestoration, kt as eventSignInRestoration, lt as findPreSelectedEvent, mn as severalRunsChoiceMessage, mt as toRegistrationRequestSubject, on as selectionItemPrice, pn as severalItemsOf, pt as resolveRouteRequiresPayment, qn as getTicketSelectionRemainingPlaces, qt as incompleteRunChoiceMessage, rr as hasValidPricingOptionSelection, rt as calculateEventRegistrationPreviewTotal, ut as resolveDiscountContext, vt as registrationQuestionsMessage, w as registrationPaymentRoute, wn as selectionPreviewLines, xn as selectionCombinationHint, yn as combinationOffersOf, yt as validateFormData, z as getTicketSelectionPurpose, zt as runsKeepingAnswers } from "./display-Cf_j5stk.mjs";
3
3
  import { an as resolveBookingBusinessTimeZone, qt as inferSiteDateLocale } from "./noop-D5mFWXtN.mjs";
4
4
  import { o as checkBookingQuestionsAnswered, p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
5
- import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-BnEgvJas.mjs";
5
+ import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-1p-pJ1lg.mjs";
6
6
  import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
7
7
  import { i as BlockApiError, n as useBlockApi } from "./context-CNlesLfF.mjs";
8
8
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
9
9
  import { i as useBookingNowIso, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-DZMrGvBh.mjs";
10
- import { t as useDiscountCodeUi } from "./useDiscountCodeUi-BuLgof7O.mjs";
11
- import { a as usePolling, c as useBookingQuestionsRefresh, o as portalSessionIdentity, s as useSignInReturn } from "./BookingMailingListNote-CAyoiAGD.mjs";
10
+ import { t as useDiscountCodeUi } from "./useDiscountCodeUi-d7viY_mu.mjs";
11
+ import { a as usePolling, c as useBookingQuestionsRefresh, o as portalSessionIdentity, s as useSignInReturn } from "./BookingMailingListNote-CwrMzj-k.mjs";
12
12
  import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
13
13
  import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-BVbLD4pi.mjs";
14
- import { t as DISCOUNT_APPLY_MESSAGES } from "./useDiscountApply-BZU5DWZQ.mjs";
14
+ import { t as DISCOUNT_APPLY_MESSAGES } from "./useDiscountApply-BBnStWXU.mjs";
15
15
  import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
16
16
  import { jsx } from "react/jsx-runtime";
17
17
  import { z } from "zod";
@@ -32,6 +32,11 @@ const eventRegistrationErrors = {
32
32
  message: "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.",
33
33
  action: "none"
34
34
  },
35
+ siteNotTakingBookings: {
36
+ endsCommand: false,
37
+ message: "This business isn’t taking online bookings right now. Please contact them if you’d like to book.",
38
+ action: "none"
39
+ },
35
40
  paymentInvestigationRequired: {
36
41
  endsCommand: false,
37
42
  message: "We still can’t confirm your payment. Please don’t make another payment. Contact the organiser so they can check your booking.",
@@ -1167,10 +1172,18 @@ function clearEventPayment(siteId) {
1167
1172
  //#region ../blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.ts
1168
1173
  /** The tag the server gives a refused booking request, with a message meant for the booker. */
1169
1174
  const REFUSED_INPUT_TAG = "REGISTRATION_INVALID_INPUT";
1175
+ /**
1176
+ * Public-site admission refusals: the site isn't open for online bookings.
1177
+ * The booker's details were fine, so these never ask them to check them.
1178
+ */
1179
+ const SITE_UNAVAILABLE_TAGS = /* @__PURE__ */ new Set(["PUBLIC_SITE_UNAVAILABLE", "PUBLIC_SITE_NOT_FOUND"]);
1180
+ function siteUnavailable(error) {
1181
+ return error.tag !== void 0 && SITE_UNAVAILABLE_TAGS.has(error.tag);
1182
+ }
1170
1183
  function parseEventRegistrationFailure(error) {
1171
1184
  return {
1172
1185
  ...parseBookingSubmissionFailure(error, "Something went wrong. Please try again."),
1173
- reason: error instanceof BlockApiError ? parseEventRegistrationErrorReason(error.tag) : null,
1186
+ reason: !(error instanceof BlockApiError) ? null : siteUnavailable(error) ? "siteNotTakingBookings" : parseEventRegistrationErrorReason(error.tag),
1174
1187
  siteTermsFailure: siteTermsFailureKind(error),
1175
1188
  isClientError: error instanceof BlockApiError && error.status < 500 && error.code !== "invalid_booking_response",
1176
1189
  refusedInput: error instanceof BlockApiError && error.tag === REFUSED_INPUT_TAG && error.message.trim().length > 0
@@ -2369,21 +2382,34 @@ function initialSlidingAmountInput(event) {
2369
2382
  function useEventRegistrationWizard(options) {
2370
2383
  return useEventRegistrationWizardWithDeps(options, eventRegistrationWizardDeps);
2371
2384
  }
2372
- /** Preserve source availability through event adaptation and page scoping. */
2373
- function useRegistrationEventSource(options) {
2385
+ const CHOOSER_CLOCK = { kind: "relative" };
2386
+ /**
2387
+ * Preserve source availability through event adaptation and page scoping.
2388
+ *
2389
+ * `choiceNowIso` is the chooser's clock: it starts at the server snapshot so hydration matches, then
2390
+ * follows the browser, so a date that starts while the page is open leaves the chooser.
2391
+ * `registrationEvents` stays the full set, so payment recovery still finds a date that has started.
2392
+ */
2393
+ function useRegistrationEventSource(options, choiceNowIso) {
2374
2394
  const events = options.eventSource.kind === "ready" ? options.eventSource.events : NO_EVENTS;
2375
2395
  const registrationEvents = useMemo(() => [...toRegistrationEvents(events), ...toWholeSeriesRegistrationEvents(events)], [events]);
2376
- const scopedEvents = useMemo(() => {
2377
- return resolveEventRegistrationScopedEvents(registrationEvents, {
2396
+ const choiceKey = useMemo(() => {
2397
+ const choices = resolveEventRegistrationChoices(events, {
2378
2398
  occurrenceContext: options.occurrenceContext,
2379
2399
  subject: options.subject
2380
- });
2400
+ }, new Date(choiceNowIso));
2401
+ return [...toRegistrationEvents(choices), ...toWholeSeriesRegistrationEvents(choices)].map((event) => event.selectionId).join("\n");
2381
2402
  }, [
2382
- registrationEvents,
2403
+ events,
2404
+ choiceNowIso,
2383
2405
  options.occurrenceContext?.seriesId,
2384
2406
  options.subject?.kind,
2385
2407
  options.subject?.kind === "eventSeries" ? options.subject.eventSeriesId : options.subject?.kind === "eventOffering" ? `${options.subject.eventOfferingId}:${options.subject.catalogueEventSeriesIds.join(",")}` : options.subject?.reason
2386
2408
  ]);
2409
+ const scopedEvents = useMemo(() => {
2410
+ const choiceIds = new Set(choiceKey.split("\n"));
2411
+ return registrationEvents.filter((event) => choiceIds.has(event.selectionId));
2412
+ }, [registrationEvents, choiceKey]);
2387
2413
  return {
2388
2414
  events,
2389
2415
  registrationEvents,
@@ -2406,7 +2432,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2406
2432
  const api = useBlockApi();
2407
2433
  const arrivalCredential = deps.useWaitlistClaimCredential();
2408
2434
  const nowIso = deps.useBookingNowIso(options.now);
2409
- const { events, registrationEvents, scopedEvents, scopedEventSource } = useRegistrationEventSource(options);
2435
+ const { events, registrationEvents, scopedEvents, scopedEventSource } = useRegistrationEventSource(options, deps.useBookingNowIso(options.now, CHOOSER_CLOCK));
2410
2436
  const preSelectedEvent = useMemo(() => findPreSelectedEvent({
2411
2437
  scopedEvents,
2412
2438
  occurrenceContext: options.occurrenceContext