@riverbankcms/sdk 0.176.0 → 0.178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/README.md +12 -4
  2. package/dist/_dts/{BlocksIslandsHydrator-DvoTk7Py.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
  3. package/dist/_dts/{Page-D-l374tU.d.ts → Page-C9i27wZA.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
  5. package/dist/_dts/{client-D4p0J1lK.d.ts → client-BnYN6XsH.d.ts} +31 -7
  6. package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-CXj6lp3d.d.ts} +4 -8
  7. package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
  8. package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
  10. package/dist/_dts/{index-ZKEDvLuN.d.ts → index-0HFgCnGz.d.ts} +1 -1
  11. package/dist/_dts/{index-tcPtGdag.d.ts → index-BE9dWIsr.d.ts} +3 -3
  12. package/dist/_dts/{index-D-ai8IQd.d.ts → index-CKDRr54L.d.ts} +4 -4
  13. package/dist/_dts/{index-CoLcwjqJ.d.ts → index-D9-N1d9v.d.ts} +1 -1
  14. package/dist/_dts/{index-CKkkCgb6.d.ts → index-DCa-8TEY.d.ts} +1 -1
  15. package/dist/_dts/{index-DDsfmM4d.d.ts → index-cTpvQg_Q.d.ts} +2 -2
  16. package/dist/_dts/{index-EJMo-KSo.d.ts → index-nnEdgc3Z.d.ts} +2 -15
  17. package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
  18. package/dist/_dts/{request-B8jVdvgI.d.ts → request-B20VRWHH.d.ts} +55384 -55036
  19. package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-Be4iL6-F.d.ts → resolvePageContent-YT6ndha1.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  30. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/next/index.d.ts +24 -12
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  38. package/dist/_dts/sdk/src/portal/client.d.ts +56 -4
  39. package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-lwSgCWZ4.d.ts → types-CMZ5mkpv.d.ts} +11 -3
  57. package/dist/_dts/{types-BXMX4z2j.d.ts → types-CYcd15BQ.d.ts} +7 -7
  58. package/dist/_dts/{types-DXY64Xh4.d.ts → types-rm2M4LGx.d.ts} +4 -4
  59. package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BSxnRhyy.d.ts} +4 -6
  60. package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
  61. package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
  62. package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
  63. package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
  64. package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
  65. package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
  66. package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
  67. package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
  68. package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
  69. package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
  70. package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
  71. package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
  72. package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
  73. package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
  74. package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
  75. package/dist/client/{Page-F3lhDvw1.mjs → Page-DqETUt-U.mjs} +22 -13
  76. package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
  77. package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
  78. package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
  79. package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
  80. package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
  81. package/dist/client/bookings.mjs +5 -5
  82. package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
  83. package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
  84. package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
  85. package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
  86. package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
  87. package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
  88. package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
  89. package/dist/client/client.mjs +93 -12
  90. package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
  91. package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
  92. package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
  93. package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
  94. package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
  95. package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
  96. package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
  97. package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
  98. package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
  99. package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
  100. package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
  101. package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
  102. package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
  103. package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
  104. package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
  105. package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
  106. package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +6 -5
  108. package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
  109. package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
  110. package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
  111. package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
  112. package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
  113. package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
  114. package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
  115. package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
  116. package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
  117. package/dist/client/portal/client.mjs +384 -38
  118. package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
  119. package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
  120. package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
  121. package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
  122. package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
  123. package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
  124. package/dist/client/rendering/client.mjs +23 -23
  125. package/dist/client/rendering/islands.mjs +1 -1
  126. package/dist/client/rendering.mjs +7 -7
  127. package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
  128. package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
  129. package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
  130. package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
  131. package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
  132. package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
  133. package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
  134. package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
  135. package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
  136. package/dist/client/src-DqMbCjI1.mjs +3 -0
  137. package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
  138. package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
  139. package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
  140. package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
  141. package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
  142. package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
  143. package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
  144. package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
  145. package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
  146. package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D-Le7O3o.mjs} +52 -8
  147. package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +34 -39
  148. package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-CzJvgbqt.mjs} +10 -10
  149. package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-xhJ6ca1i.mjs} +9 -8
  150. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +16 -7
  151. package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
  152. package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-BN93X9o1.mjs} +1211 -600
  153. package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
  154. package/dist/preview-next/client/runtime.mjs +3 -3
  155. package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
  156. package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-BGTAcPud.mjs} +27 -17
  157. package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
  158. package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
  159. package/dist/preview-next/client/{useAutosaveStatus-D9s6dyMW.mjs → useAutosaveStatus-BMGXjGZq.mjs} +3 -30
  160. package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +2 -2
  161. package/dist/preview-next/container-responsive.css +3 -0
  162. package/dist/preview-next/editor-chrome.css +4 -2
  163. package/dist/preview-next/keepAlive.mjs +1 -1
  164. package/dist/preview-next/middleware.mjs +1 -1
  165. package/dist/preview-next/{route-contract-BYezcMx5.mjs → route-contract-BtdzkSUg.mjs} +71 -4
  166. package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
  167. package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
  168. package/dist/server/{client-Bvag5OtW.mjs → client-Bf06n9oj.mjs} +90 -9
  169. package/dist/server/config-validation.mjs +1 -1
  170. package/dist/server/config.mjs +2 -2
  171. package/dist/server/constants-Cj7hfbrA.mjs +41 -0
  172. package/dist/server/data/resolveBlockData.mjs +1 -1
  173. package/dist/server/index.mjs +2 -2
  174. package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
  175. package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
  176. package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
  177. package/dist/server/navigation.mjs +1 -1
  178. package/dist/server/next/revalidate.mjs +15 -8
  179. package/dist/server/next.mjs +56 -13
  180. package/dist/server/{overrideResolution-BqVLO4gX.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
  181. package/dist/server/page-converter.mjs +1 -1
  182. package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
  183. package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
  184. package/dist/server/{pageShared-D23o5QgC.mjs → pageShared-tz-GVWft.mjs} +96 -39
  185. package/dist/server/portal-B4JVkdjc.mjs +783 -0
  186. package/dist/server/portal.mjs +3 -3
  187. package/dist/server/{prebuild-BuoXWT9y.mjs → prebuild-JmsuYCIH.mjs} +1 -1
  188. package/dist/server/prebuild.mjs +1 -1
  189. package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
  190. package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
  191. package/dist/server/rendering/components/pageShared.mjs +1 -1
  192. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  193. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  194. package/dist/server/rendering/server.mjs +3 -3
  195. package/dist/server/rendering.mjs +7 -7
  196. package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
  197. package/dist/server/server.mjs +3 -3
  198. package/dist/server/{validation-CozQ7wE0.mjs → validation-CLq5cw6M.mjs} +3 -5
  199. package/dist/server/{version-CgCWRFEY.mjs → version-oPbhAx8E.mjs} +1 -1
  200. package/dist/styles/index.css +27 -1
  201. package/package.json +1 -1
  202. package/dist/client/src-BozhJ43Z.mjs +0 -3
  203. package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
  204. package/dist/server/constants-hl17xz6x.mjs +0 -22
  205. package/dist/server/portal-BjVHMAUC.mjs +0 -371
@@ -1,7 +1,7 @@
1
1
  import { n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
2
2
  import { o as isSupportedLoaderEndpoint, r as encodePublicProductCategorySelector, t as materializeEntriesMedia } from "./responseMedia-F-ElH2Rd.mjs";
3
3
  import { f as parseSiteId, t as publicMapLocationParamsSchema } from "./mapLocation-BM5WX7FY.mjs";
4
- import { t as SDK_VERSION } from "./version-CgCWRFEY.mjs";
4
+ import { t as SDK_VERSION } from "./version-oPbhAx8E.mjs";
5
5
  import { z } from "zod";
6
6
  /**
7
7
  * How long a rendered page may hold availability it read through the batch
@@ -851,8 +851,10 @@ const arrangementEndRequestSchema = z.object({
851
851
  ...recordedReturn,
852
852
  lastDate: localDate
853
853
  }).strict();
854
- z.object({
854
+ /** `expectedUpdatedAt` is the version the dialog was showing, so a save can't overwrite a newer change. */
855
+ const arrangementEditSchema = z.object({
855
856
  ...operation,
857
+ expectedUpdatedAt: z.string().min(1),
856
858
  serviceId: z.string().uuid(),
857
859
  holdsTime: z.boolean(),
858
860
  payment: arrangementPaymentSchema
@@ -886,6 +888,11 @@ z.discriminatedUnion("kind", [
886
888
  kind: z.literal("end"),
887
889
  arrangementId: z.string().uuid(),
888
890
  request: arrangementEndRequestSchema
891
+ }).strict(),
892
+ z.object({
893
+ kind: z.literal("edit"),
894
+ arrangementId: z.string().uuid(),
895
+ request: arrangementEditSchema
889
896
  }).strict()
890
897
  ]);
891
898
  const arrangementTimeOffChoiceSchema = z.discriminatedUnion("kind", [
@@ -996,7 +1003,8 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
996
1003
  ]) }),
997
1004
  z.object({
998
1005
  code: z.literal("clash"),
999
- customerFirstName: z.string().nullable()
1006
+ customerFirstName: z.string().nullable(),
1007
+ clashKind: z.enum(["appointment", "arrangement_hold"]).optional()
1000
1008
  }),
1001
1009
  z.object({
1002
1010
  code: z.literal("command_failed"),
@@ -1585,6 +1593,20 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1585
1593
  auth: "user",
1586
1594
  responseKind: "json"
1587
1595
  },
1596
+ listStaffServiceOnlineDetails: {
1597
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/services/online-details",
1598
+ method: "GET",
1599
+ auth: "user",
1600
+ responseKind: "json",
1601
+ errors: []
1602
+ },
1603
+ setStaffServiceOnlineDetails: {
1604
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/services/online-details",
1605
+ method: "PUT",
1606
+ auth: "user",
1607
+ responseKind: "json",
1608
+ errors: []
1609
+ },
1588
1610
  getServiceResources: {
1589
1611
  path: "/sites/{siteId}/bookings/services/{serviceId}/resources",
1590
1612
  method: "GET",
@@ -1982,6 +2004,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
1982
2004
  "server:internal_error"
1983
2005
  ]
1984
2006
  },
2007
+ setEventAttendeesNoShow: {
2008
+ path: "/sites/{siteId}/bookings/attendees/no-show",
2009
+ method: "POST",
2010
+ auth: "user",
2011
+ responseKind: "json",
2012
+ errors: [
2013
+ "validation:invalid_input",
2014
+ "auth:forbidden",
2015
+ "resource:conflict",
2016
+ "server:internal_error"
2017
+ ]
2018
+ },
1985
2019
  listEventOfferingCombinationPrices: {
1986
2020
  path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
1987
2021
  method: "GET",
@@ -3583,7 +3617,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3583
3617
  path: "/public/content/{siteId}/{type}/{slug}/preview",
3584
3618
  method: "GET",
3585
3619
  revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
3586
- tags: ["content-{siteId}-{type}-{slug}"],
3620
+ tags: [TAG_TEMPLATES.siteRoutableContent],
3587
3621
  auth: "public",
3588
3622
  responseKind: "json"
3589
3623
  },
@@ -3591,7 +3625,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3591
3625
  path: "/public/content/{siteId}/{type}/entries",
3592
3626
  method: "GET",
3593
3627
  revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
3594
- tags: ["content-{siteId}-{type}"],
3628
+ tags: [TAG_TEMPLATES.siteRoutableContent],
3595
3629
  auth: "public",
3596
3630
  responseKind: "json"
3597
3631
  },
@@ -7721,6 +7755,18 @@ const API_ENDPOINTS$1 = {
7721
7755
  auth: "admin",
7722
7756
  responseKind: "json"
7723
7757
  },
7758
+ adminSyncPriceOverride: {
7759
+ path: "/admin/billing/price-override",
7760
+ method: "PUT",
7761
+ tags: [
7762
+ "admin",
7763
+ "billing",
7764
+ "price-override"
7765
+ ],
7766
+ auth: "admin",
7767
+ responseKind: "json",
7768
+ errors: []
7769
+ },
7724
7770
  ...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS,
7725
7771
  getEventSeries: {
7726
7772
  path: "/sites/{siteId}/bookings/events/{eventId}/schedules/{seriesId}",
@@ -9880,6 +9926,27 @@ const API_ENDPOINTS$1 = {
9880
9926
  responseKind: "json",
9881
9927
  errors: []
9882
9928
  },
9929
+ portalEntryPreview: {
9930
+ path: "/portal/auth/entry/preview",
9931
+ method: "POST",
9932
+ auth: "public",
9933
+ responseKind: "json",
9934
+ errors: []
9935
+ },
9936
+ portalEntryRedeem: {
9937
+ path: "/portal/auth/entry/redeem",
9938
+ method: "POST",
9939
+ auth: "public",
9940
+ responseKind: "json",
9941
+ errors: []
9942
+ },
9943
+ portalEntryResend: {
9944
+ path: "/portal/auth/entry/resend",
9945
+ method: "POST",
9946
+ auth: "public",
9947
+ responseKind: "json",
9948
+ errors: []
9949
+ },
9883
9950
  portalLogout: {
9884
9951
  path: "/portal/auth/logout",
9885
9952
  method: "POST",
@@ -11368,7 +11435,7 @@ const API_ENDPOINTS = Object.freeze({
11368
11435
  path: "/public/content/{siteId}/{type}/entries",
11369
11436
  method: "GET",
11370
11437
  revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
11371
- tags: ["content-{siteId}-{type}"],
11438
+ tags: [TAG_TEMPLATES.siteRoutableContent],
11372
11439
  auth: "public",
11373
11440
  responseKind: "json"
11374
11441
  },
@@ -11376,7 +11443,7 @@ const API_ENDPOINTS = Object.freeze({
11376
11443
  path: "/public/content/{siteId}/{type}/{slug}/preview",
11377
11444
  method: "GET",
11378
11445
  revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
11379
- tags: ["content-{siteId}-{type}-{slug}"],
11446
+ tags: [TAG_TEMPLATES.siteRoutableContent],
11380
11447
  auth: "public",
11381
11448
  responseKind: "json"
11382
11449
  },
@@ -12384,13 +12451,27 @@ const defaultRiverbankClientDeps = {
12384
12451
  * const site = await client.getSite({ slug: 'my-site' });
12385
12452
  * ```
12386
12453
  */
12454
+ /**
12455
+ * A memory hit skips fetch, so Next never sees the read's tags: an ISR render would store old
12456
+ * content under a page no webhook can reach. Next's tagged fetch cache already covers these reads.
12457
+ */
12458
+ function isRunningInNextServer() {
12459
+ return typeof window === "undefined" && typeof process !== "undefined" && Boolean(process.env.NEXT_RUNTIME);
12460
+ }
12461
+ function resolveMemoryCachePolicy(config) {
12462
+ const enabled = config.cache?.enabled;
12463
+ return {
12464
+ cacheEnabled: enabled ?? true,
12465
+ servesFreshMemoryHits: enabled ?? !isRunningInNextServer()
12466
+ };
12467
+ }
12387
12468
  function createRiverbankClient(config) {
12388
12469
  return createRiverbankClientWithDeps(defaultRiverbankClientDeps, config);
12389
12470
  }
12390
12471
  function createRiverbankClientWithDeps(deps, config) {
12391
12472
  if (!config.baseUrl) throw new Error("baseUrl is required when creating a Riverbank client. Expected format: https://dashboard.example.com/api (must include /api path)");
12392
12473
  if (!config.baseUrl.endsWith("/api")) throw new Error(`baseUrl must end with '/api'. Received: ${config.baseUrl}. Expected format: https://dashboard.example.com/api`);
12393
- const cacheEnabled = config.cache?.enabled ?? true;
12474
+ const { cacheEnabled, servesFreshMemoryHits } = resolveMemoryCachePolicy(config);
12394
12475
  const cacheTTL = (config.cache?.ttl ?? 300) * 1e3;
12395
12476
  const cacheMaxSize = config.cache?.maxSize ?? 100;
12396
12477
  const resilienceEnabled = config.resilience?.enabled ?? true;
@@ -12539,7 +12620,7 @@ function createRiverbankClientWithDeps(deps, config) {
12539
12620
  durationMs: Date.now() - startTime,
12540
12621
  ...extra
12541
12622
  });
12542
- if (cacheEnabled && !options.force) {
12623
+ if (servesFreshMemoryHits && !options.force) {
12543
12624
  const fresh = cache.getFresh(cacheKey);
12544
12625
  if (fresh !== null) return emitStatus("cache", fresh, statusDetails({ cacheTier: "memory-fresh" }));
12545
12626
  }
@@ -1,2 +1,2 @@
1
- import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-CozQ7wE0.mjs";
1
+ import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-CLq5cw6M.mjs";
2
2
  export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
@@ -1,5 +1,5 @@
1
- import { js as isCanonicalRichTextDoc } from "./registry-CXRXsFSx.mjs";
2
- import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-CozQ7wE0.mjs";
1
+ import { Ps as isCanonicalRichTextDoc } from "./registry-D12XF_h1.mjs";
2
+ import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-CLq5cw6M.mjs";
3
3
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
4
4
  //#region src/config/bindings.ts
5
5
  function fieldBinding(path) {
@@ -0,0 +1,41 @@
1
+ //#region src/portal/constants.ts
2
+ /**
3
+ * Portal Authentication Constants
4
+ */
5
+ /** Cookie name for storing the portal session token */
6
+ const PORTAL_TOKEN_COOKIE = "portal_token";
7
+ /** Cookie max age in seconds (30 days) */
8
+ const PORTAL_COOKIE_MAX_AGE = 720 * 60 * 60;
9
+ /** Query parameter carrying an emailed sign-in token to the callback. GET stores it and consumes nothing. */
10
+ const PORTAL_ENTRY_PARAM = "portal_entry";
11
+ /** Short-lived private cookie holding the token and its destination, so neither is in the page's URL */
12
+ const PORTAL_ENTRY_COOKIE = "rb_portal_entry";
13
+ /**
14
+ * Entry cookie max age in seconds (one day). People often open the email, get distracted and press
15
+ * Continue later. The token already sits in their inbox for 30 days, so a day in a private cookie
16
+ * on the same device adds little.
17
+ */
18
+ const PORTAL_ENTRY_COOKIE_MAX_AGE = 1440 * 60;
19
+ /** The fixed callback address on every site */
20
+ const PORTAL_CALLBACK_PATH = "/api/portal/callback";
21
+ /** The site page that shows Continue */
22
+ const PORTAL_ENTRY_PATH = "/portal/continue";
23
+ /** Query/form parameter name for redirect destination */
24
+ const REDIRECT_TO_PARAM = "redirect_to";
25
+ /** Canonical published-site path for the customer portal */
26
+ const CUSTOMER_PORTAL_PATH = "/portal";
27
+ /** Default redirect path for callback */
28
+ const DEFAULT_PORTAL_REDIRECT = CUSTOMER_PORTAL_PATH;
29
+ /** Default redirect path for logout */
30
+ const DEFAULT_LOGOUT_REDIRECT = "/";
31
+ /** Query parameter added to the redirect URL after a successful magic link login */
32
+ const PORTAL_LOGIN_SUCCESS_PARAM = "portal_login";
33
+ /** Where a booking email lands. The tab also tells the Continue page to say "See my booking". */
34
+ const PORTAL_TAB_PARAM = "portal_tab";
35
+ const PORTAL_EVENTS_TAB = "events";
36
+ const PORTAL_APPOINTMENTS_TAB = "appointments";
37
+ const PORTAL_MEMBERSHIPS_TAB = "passes-memberships";
38
+ const PORTAL_EVENTS_PATH = `${CUSTOMER_PORTAL_PATH}?${PORTAL_TAB_PARAM}=${PORTAL_EVENTS_TAB}`;
39
+ const PORTAL_APPOINTMENTS_PATH = `${CUSTOMER_PORTAL_PATH}?${PORTAL_TAB_PARAM}=${PORTAL_APPOINTMENTS_TAB}`;
40
+ //#endregion
41
+ export { PORTAL_TOKEN_COOKIE as _, PORTAL_APPOINTMENTS_TAB as a, PORTAL_ENTRY_COOKIE as c, PORTAL_ENTRY_PATH as d, PORTAL_EVENTS_PATH as f, PORTAL_TAB_PARAM as g, PORTAL_MEMBERSHIPS_TAB as h, PORTAL_APPOINTMENTS_PATH as i, PORTAL_ENTRY_COOKIE_MAX_AGE as l, PORTAL_LOGIN_SUCCESS_PARAM as m, DEFAULT_LOGOUT_REDIRECT as n, PORTAL_CALLBACK_PATH as o, PORTAL_EVENTS_TAB as p, DEFAULT_PORTAL_REDIRECT as r, PORTAL_COOKIE_MAX_AGE as s, CUSTOMER_PORTAL_PATH as t, PORTAL_ENTRY_PARAM as u, REDIRECT_TO_PARAM as v };
@@ -1,2 +1,2 @@
1
- import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-yfe8WLEA.mjs";
1
+ import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-D9yZIN3V.mjs";
2
2
  export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
@@ -1,8 +1,8 @@
1
1
  import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
2
- import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-Bvag5OtW.mjs";
2
+ import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-Bf06n9oj.mjs";
3
3
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
4
4
  import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
5
- import { t as prebuildCache } from "./prebuild-BuoXWT9y.mjs";
5
+ import { t as prebuildCache } from "./prebuild-JmsuYCIH.mjs";
6
6
  import * as path from "path";
7
7
  import * as fs from "fs";
8
8
  //#region src/prebuild/loader.ts
@@ -1,10 +1,10 @@
1
- import { Ar as blockDesignCapabilityMapFromDefinitions, Fo as appearancePresets, Gi as plainTextToInlineText, Ha as buildInitialPolicyPageDesignIntent, Hi as inlineTextToPlainText, Jn as siteHeaderManifest, Jo as resolveRepeaterGridSpanFieldId, Ka as componentRuntimeRulesForSiteStyle, Ko as resolveRepeaterGridColumnFieldId, Qa as surfaceResolutionContextFromTheme, Qi as isRecord, Wi as parseInlineTextFromUnknown, Ya as requireCuratedSiteStyle, ba as parseListLook, i as systemBlockDefinitions, ic as unsafeAsEventCategoryId, js as isCanonicalRichTextDoc, li as parseBackgroundContent, qa as designRuntimeRulesForSiteStyle, qi as parseFieldDefinition, qo as resolveRepeaterGridRowFieldId, qs as offeringLabelForPageSurfaceSubject, rc as unsafeAsContentEntryId, rr as resolveDateRuntimeContext, t as getBlockDefinition, uo as parsePageDesignIntent, xs as EVENT_PRESET_VALUES } from "./registry-CXRXsFSx.mjs";
1
+ import { Ca as parseListLook, Ga as buildInitialPolicyPageDesignIntent, Gi as inlineTextToPlainText, Ji as plainTextToInlineText, Nr as blockDesignCapabilityMapFromDefinitions, Ps as isCanonicalRichTextDoc, Qa as requireCuratedSiteStyle, Ro as appearancePresets, Xa as designRuntimeRulesForSiteStyle, Xi as parseFieldDefinition, Xo as resolveRepeaterGridRowFieldId, Xs as offeringLabelForPageSurfaceSubject, Ya as componentRuntimeRulesForSiteStyle, Yo as resolveRepeaterGridColumnFieldId, Zn as siteHeaderManifest, Zo as resolveRepeaterGridSpanFieldId, fi as parseBackgroundContent, i as systemBlockDefinitions, oc as unsafeAsContentEntryId, or as resolveDateRuntimeContext, po as parsePageDesignIntent, qi as parseInlineTextFromUnknown, sc as unsafeAsEventCategoryId, t as getBlockDefinition, ta as isRecord, to as surfaceResolutionContextFromTheme, ws as EVENT_PRESET_VALUES } from "./registry-D12XF_h1.mjs";
2
2
  import { S as asDesignBlockId, T as asLayoutVariantKey, b as asAppearancePresetId } from "./customCss-BZ8YSrQg.mjs";
3
- import { C as normalizeRepeaterGridSpan, S as flowRepeaterGridItems, a as invalidRenderableBlock$1, d as siteBlockRenderContext, h as registeredManifestContentContract, i as collectMediaAssetSidecar, j as readPublishedBlockPlacement, l as resolveSdkBlockManifest, m as compileManifestContentContract, n as buildRenderablePageOutline, o as projectRenderablePageOutline, p as admitTransportedRenderableManifestContent, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent, v as deriveFieldValidationPlan, w as resolveRepeaterGridAcceptedSpans, y as fieldPlanToZod } from "./pageRuntimeSupport-uz4gzBOo.mjs";
3
+ import { C as normalizeRepeaterGridSpan, S as flowRepeaterGridItems, a as invalidRenderableBlock$1, d as siteBlockRenderContext, h as registeredManifestContentContract, i as collectMediaAssetSidecar, j as readPublishedBlockPlacement, l as resolveSdkBlockManifest, m as compileManifestContentContract, n as buildRenderablePageOutline, o as projectRenderablePageOutline, p as admitTransportedRenderableManifestContent, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent, v as deriveFieldValidationPlan, w as resolveRepeaterGridAcceptedSpans, y as fieldPlanToZod } from "./pageRuntimeSupport-Dd8LFzfa.mjs";
4
4
  import { i as createRichTextDoc, o as isRecord$1, r as buildRichTextSchema } from "./richTextSchema-QLaQrbII.mjs";
5
- import { a as buildPageDesignEditorReadModel, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as applyCompiledRuntimeFieldsToContent, r as resolveRuntimeJoinFacts, s as compileEditorModelRuntime, t as applyBindingsToContent } from "./bindings-VGgS6UvF.mjs";
5
+ import { a as buildPageDesignEditorReadModel, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as applyCompiledRuntimeFieldsToContent, r as resolveRuntimeJoinFacts, s as compileEditorModelRuntime, t as applyBindingsToContent } from "./bindings-DrbJuftt.mjs";
6
6
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
7
- import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-yfe8WLEA.mjs";
7
+ import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-D9yZIN3V.mjs";
8
8
  import { z } from "zod";
9
9
  //#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
10
10
  function asContentTemplateDesignBlockId(value) {
@@ -1,7 +1,7 @@
1
- import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-uz4gzBOo.mjs";
1
+ import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-Dd8LFzfa.mjs";
2
2
  import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
3
3
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
4
- import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-yfe8WLEA.mjs";
4
+ import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-D9yZIN3V.mjs";
5
5
  //#region src/rendering/helpers/loadPage.ts
6
6
  /**
7
7
  * Server-side helper to fetch all data needed for <Page> component.
@@ -1,5 +1,5 @@
1
1
  import { n as normalizeRenderStage, r as resolveRouteHrefForStage, t as isRouteVisibleInStage } from "./dist-Xevqwf1U.mjs";
2
- import "./constants-hl17xz6x.mjs";
2
+ import "./constants-Cj7hfbrA.mjs";
3
3
  //#region ../core/src/navigation-portal-labels.ts
4
4
  /**
5
5
  * What a customer sign-in link in a site's menu says when the site hasn't set
@@ -1,2 +1,2 @@
1
- import { _ as transformToNavItems, a as buildLogoVariants, c as buildMenuViewModel, d as getNavigationByLocation, f as getPrimaryNavItems, g as resolveNavigationLinkHref, h as isNavLink, i as buildLogo, l as getFooterNavigation, m as isNavDropdown, n as buildFooterMenu, o as buildLogoViewModel, p as getPrimaryNavigation, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent, u as getFooterNavigationByRole } from "./navigation-iC_hXjJI.mjs";
1
+ import { _ as transformToNavItems, a as buildLogoVariants, c as buildMenuViewModel, d as getNavigationByLocation, f as getPrimaryNavItems, g as resolveNavigationLinkHref, h as isNavLink, i as buildLogo, l as getFooterNavigation, m as isNavDropdown, n as buildFooterMenu, o as buildLogoViewModel, p as getPrimaryNavigation, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent, u as getFooterNavigationByRole } from "./navigation-BcNfYYuu.mjs";
2
2
  export { buildChromeLogoContent, buildFooterMenu, buildFooterMenuForRole, buildLogo, buildLogoVariants, buildLogoViewModel, buildMenu, buildMenuViewModel, getFooterNavigation, getFooterNavigationByRole, getNavigationByLocation, getPrimaryNavItems, getPrimaryNavigation, isNavDropdown, isNavLink, resolveNavigationLinkHref, transformToNavItems };
@@ -154,11 +154,8 @@ function createRevalidateHandler(options = {}) {
154
154
  invalidPathCount: normalizedPaths.invalidPaths.length
155
155
  });
156
156
  const normalizedTags = normalizeRevalidationTags(payload.tags);
157
- revalidated.push(...revalidateWebhookTags(payload.event, normalizedTags));
158
- for (const path of normalizedPaths.paths) {
159
- revalidatePath(path);
160
- revalidated.push(`path:${path}`);
161
- }
157
+ revalidated.push(...revalidateWebhookTags(payload, normalizedTags));
158
+ revalidated.push(...revalidateWebhookPaths(normalizedPaths.paths));
162
159
  const metadata = getRevalidationRequestMetadata(request, payload, {
163
160
  pathCount: normalizedPaths.paths.length,
164
161
  tagCount: normalizedTags.length,
@@ -193,9 +190,19 @@ function createRevalidateHandler(options = {}) {
193
190
  });
194
191
  };
195
192
  }
196
- /** The accepted process-memory lag does not permit stale Next fetch-cache copies. */
197
- function revalidateWebhookTags(event, tags) {
198
- const profile = event === "site.settings_updated" ? { expire: 0 } : "max";
193
+ function revalidateWebhookPaths(paths) {
194
+ return paths.map((path) => {
195
+ revalidatePath(path);
196
+ return `path:${path}`;
197
+ });
198
+ }
199
+ /**
200
+ * Most events expire at once, so the first view after a delivered webhook re-renders and shows the
201
+ * change. A booking fires events.updated too, and a page's spaces are only advisory (checkout
202
+ * enforces capacity), so those visitors keep the fast stale page while it refreshes behind them.
203
+ */
204
+ function revalidateWebhookTags(payload, tags) {
205
+ const profile = payload.event === "events.updated" && payload.data.entity === "registration" ? "max" : { expire: 0 };
199
206
  return tags.map((tag) => {
200
207
  revalidateTag(tag, profile);
201
208
  return `tag:${tag}`;
@@ -1,22 +1,23 @@
1
- import { Is as inferSiteDateLocale, Ks as toUtcIsoDateTimeString, Ws as resolveBookingBusinessTimeZone } from "./registry-CXRXsFSx.mjs";
2
- import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-D23o5QgC.mjs";
3
- import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-Bvag5OtW.mjs";
4
- import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-CxASA3PE.mjs";
1
+ import { Js as resolveBookingBusinessTimeZone, qs as toUtcIsoDateTimeString, zs as inferSiteDateLocale } from "./registry-D12XF_h1.mjs";
2
+ import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-tz-GVWft.mjs";
3
+ import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-Bf06n9oj.mjs";
4
+ import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-eaTY7RPg.mjs";
5
5
  import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
6
6
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
7
7
  import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
8
+ import { c as PORTAL_ENTRY_COOKIE } from "./constants-Cj7hfbrA.mjs";
8
9
  import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
9
- import { t as getPortalToken } from "./portal-BjVHMAUC.mjs";
10
+ import { c as parsePortalEntryArrival, f as previewPortalEntryToken, l as planPortalEntryPage, s as decodePortalEntryCookieValue, t as getPortalToken, u as portalEntryFingerprint } from "./portal-B4JVkdjc.mjs";
10
11
  import { _ as toRoutingInfo, a as resolvePageContent, i as contentNotFound, n as contentFound, o as defaultShouldAttemptEntrySubroute, t as RiverbankContentLoadError } from "./resolvePageContent-CAELMBEJ.mjs";
11
- import { t as SDK_VERSION } from "./version-CgCWRFEY.mjs";
12
+ import { t as SDK_VERSION } from "./version-oPbhAx8E.mjs";
12
13
  import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
13
- import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-BqVLO4gX.mjs";
14
+ import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-CUHtm7tW.mjs";
14
15
  import { cache } from "react";
15
16
  import { jsx, jsxs } from "react/jsx-runtime";
16
17
  import { BlocksIslandsHydrator } from "#sdk-rendering-client";
17
18
  import { notFound, permanentRedirect, redirect } from "next/navigation";
18
19
  import { cookies } from "next/headers";
19
- import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalTicketView } from "#sdk-portal-client";
20
+ import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalEntryContent, PortalTicketView } from "#sdk-portal-client";
20
21
  import { RedeemGiftCardRouteClient } from "#sdk-gifting-client";
21
22
  //#region src/next/requestReadMemo.ts
22
23
  /**
@@ -1142,7 +1143,6 @@ function accessPage(context, kind, state, redirectTo) {
1142
1143
  return /* @__PURE__ */ jsx(PortalAccessState, {
1143
1144
  siteId: context.siteId,
1144
1145
  apiBaseUrl: context.apiBaseUrl,
1145
- callbackPath: context.callbackPath,
1146
1146
  demoEmailSuppressed: context.demoEmailSuppressed,
1147
1147
  kind,
1148
1148
  state,
@@ -1186,6 +1186,33 @@ async function renderPortalDigitalProductFilePage(context, entitlementId, assetI
1186
1186
  if (result.kind === "loaded") redirect(result.value.signedUrl);
1187
1187
  return accessPage(context, "file", result.kind, `/portal/digital-products/${entitlementId}/files/${assetId}`);
1188
1188
  }
1189
+ /**
1190
+ * The Continue page's content, on the site's own layout. Reading this page authenticates nobody and
1191
+ * consumes nothing: its form POSTs to the callback.
1192
+ */
1193
+ async function renderPortalEntryContent(context, searchParams) {
1194
+ const entry = decodePortalEntryCookieValue((await cookies()).get(PORTAL_ENTRY_COOKIE)?.value);
1195
+ const plan = planPortalEntryPage({
1196
+ arrival: parsePortalEntryArrival(searchParams),
1197
+ pending: entry ? {
1198
+ entry,
1199
+ fingerprint: await portalEntryFingerprint(entry),
1200
+ preview: await previewPortalEntryToken({
1201
+ apiBaseUrl: context.apiBaseUrl,
1202
+ siteId: context.siteId,
1203
+ token: entry.token,
1204
+ sessionToken: context.portalToken
1205
+ })
1206
+ } : null
1207
+ });
1208
+ if (plan.kind === "redirect") redirect(plan.destination);
1209
+ return /* @__PURE__ */ jsx(PortalEntryContent, {
1210
+ view: plan.view,
1211
+ siteId: context.siteId,
1212
+ siteTitle: context.siteTitle,
1213
+ contactEmail: context.contactEmail
1214
+ });
1215
+ }
1189
1216
  async function loadPortalPageHost(options, path, searchParams) {
1190
1217
  const client = await options.getClient();
1191
1218
  const site = await client.getSite({ id: options.config.siteId });
@@ -1228,7 +1255,6 @@ async function loadPortalPageHost(options, path, searchParams) {
1228
1255
  siteId: options.config.siteId,
1229
1256
  apiBaseUrl: client.getBaseUrl(),
1230
1257
  portalToken: getPortalToken(await cookies()),
1231
- callbackPath: options.portal?.callbackPath,
1232
1258
  demoEmailSuppressed: site.demoEmailSuppressed === true,
1233
1259
  siteTitle: site.site.title,
1234
1260
  businessPerson: site.bookingPerson ?? null
@@ -1236,7 +1262,7 @@ async function loadPortalPageHost(options, path, searchParams) {
1236
1262
  };
1237
1263
  }
1238
1264
  function createPortalPage(options) {
1239
- return async function PortalPage({ searchParams } = {}) {
1265
+ return async function PortalPage({ searchParams }) {
1240
1266
  const host = await loadPortalPageHost(options, "/portal", await searchParams ?? {});
1241
1267
  return /* @__PURE__ */ jsx(ThemeScope, {
1242
1268
  theme: host.theme,
@@ -1247,6 +1273,23 @@ function createPortalPage(options) {
1247
1273
  });
1248
1274
  };
1249
1275
  }
1276
+ /** Add at /portal/continue in a layout of your own that has the site's header. */
1277
+ function createPortalContinuePage(options) {
1278
+ return async function PortalContinuePage({ searchParams }) {
1279
+ const params = await searchParams ?? {};
1280
+ const host = await loadPortalPageHost(options, "/portal/continue", params);
1281
+ return /* @__PURE__ */ jsx(ThemeScope, {
1282
+ theme: host.theme,
1283
+ children: await renderPortalEntryContent({
1284
+ siteId: host.context.siteId,
1285
+ apiBaseUrl: host.context.apiBaseUrl,
1286
+ portalToken: host.context.portalToken,
1287
+ siteTitle: host.site.site.title,
1288
+ contactEmail: host.site.businessDetails?.contact?.email ?? null
1289
+ }, params)
1290
+ });
1291
+ };
1292
+ }
1250
1293
  function createPortalTicketPage(options) {
1251
1294
  return async function PortalTicketPage({ params, searchParams }) {
1252
1295
  const { registrationId } = await params;
@@ -1284,7 +1327,7 @@ function firstParam(value) {
1284
1327
  }
1285
1328
  /** Reserved redeem route. Configure Referrer-Policy: no-referrer for /redeem in the host. */
1286
1329
  function createRedeemPage(options) {
1287
- return async function RedeemPage({ searchParams } = {}) {
1330
+ return async function RedeemPage({ searchParams }) {
1288
1331
  const query = await searchParams ?? {};
1289
1332
  const host = await loadPortalPageHost(options, "/redeem", query);
1290
1333
  return /* @__PURE__ */ jsx(ThemeScope, {
@@ -1368,4 +1411,4 @@ function getISRConfig() {
1368
1411
  };
1369
1412
  }
1370
1413
  //#endregion
1371
- export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalDigitalProductFilePage, createPortalDigitalProductPage, createPortalPage, createPortalTicketPage, createRedeemPage, createRobots, createSitemap, generateAllStaticParams, getISRConfig, isSdkContentLoadError, normalizeStaticRoutePath, pathToSlugArray, renderPortalDigitalProductFilePage, renderPortalDigitalProductPage, renderPortalTicketPage, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
1414
+ export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalContinuePage, createPortalDigitalProductFilePage, createPortalDigitalProductPage, createPortalPage, createPortalTicketPage, createRedeemPage, createRobots, createSitemap, generateAllStaticParams, getISRConfig, isSdkContentLoadError, normalizeStaticRoutePath, pathToSlugArray, renderPortalDigitalProductFilePage, renderPortalDigitalProductPage, renderPortalEntryContent, renderPortalTicketPage, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
@@ -1,4 +1,4 @@
1
- import { t as PageContent } from "./pageShared-D23o5QgC.mjs";
1
+ import { t as PageContent } from "./pageShared-tz-GVWft.mjs";
2
2
  import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
3
3
  import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { li as parseBackgroundContent, n as listBlockDescriptors } from "./registry-CXRXsFSx.mjs";
1
+ import { fi as parseBackgroundContent, n as listBlockDescriptors } from "./registry-D12XF_h1.mjs";
2
2
  import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
3
3
  import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
4
4
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
@@ -1,5 +1,5 @@
1
1
  import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
- import { $ as resolveCardListSchedule, $a as gradientToCss, $s as resolveExactOrFreePriceDisplay, Ao as resolveSectionBackground, At as groupOfferingRunsByCourse, Ba as resolveModeArrangement, Bn as getEventAvailability, Br as formatEventStartingPrice, Bt as ThemedButtonLink, Ci as asPartialObject, Cs as nextLiveRunSessionStartMs, Do as applyLookPhotoTreatment, Fi as ClockIcon, Fr as formatCoursePrice, Fs as formatDateTimeRange, Hn as isEventFull, Hr as getAnchorClasses, Hs as parseBookingLocalDate, Ia as styleSectionBackgroundForColour, In as isBookableEvent, Ir as formatEventDepositNote, Js as formatBookingPriceDisplay, Jt as weekColumnDays, Ks as toUtcIsoDateTimeString, La as arrangementManifestFromVariants, Ln as canJoinEventWaitlistOnAnyMode, Lr as formatEventPrice, Mr as classPricesCopySchema, No as stripStaleTransitionStyleGroup, Nr as classPricesDataSchema, Ns as formatDate, Oa as arrangementAppearancePresets, Oo as deriveSectionGround, Or as heroMorePhotoCount, Po as themeV2CompilerOwnedFieldNames, Pr as resolveClassPriceItems, Ps as formatDateRange, Qn as contentTransforms, Qo as formatDateKey, Qt as eventLocalDateKey, Ra as readStoredMode, Rn as formatEventRemainingPlaces, Si as lookSkinSlotTransform, Sn as closedRunCopy, Sr as listLookSlot, Ts as resolveWholeSeriesBookingPhase, Ua as deriveSiteStyleBlockPolicy, Va as resolvePublishedLook, Vn as getEventAvailabilityStatus, Vr as BACKGROUND_POSITION_PRESET_VALUES, Vs as getLocalScheduleDate, Ws as resolveBookingBusinessTimeZone, Wt as buildEventListWeek, X as CardListContentPart, Xi as augmentManifest, Xt as eventCalendarWeekStart, Z as CardListLeadDate, Zi as isObjectRecord, Zt as eventDateOptions, _a as lookPresentationOnPalette, aa as eventDiscoveryFilterKeys, ac as parseGradientPresetId, ai as boxStylesTransforms, ar as headerRuntimeTransforms, at as computeMediaTransformStyle, bi as lookLeadSlotTransform, br as listItemPresentation, ca as eventScopeQueryKeys, cn as formatEventWeekdayTime, da as eventCalendarListGroupingDecision, di as parseRuntimeBackgroundContent, dn as resolveEventTimeZone, dt as systemCustomizeFacetDefinitionsForBlock, ea as blockChecksForEvents, ec as resolvePricingOptionsPriceDisplay, eo as getGradientPreset, et as selectCardListPresentation, fa as resolveEventCalendarReadPlan, fi as resolveSectionSurfaceForeground, fn as resolveRuntimeEventDestination, gi as isSemanticSpacing, ho as sectionShapeHook, ht as EventQuickFacts, ir as mediaTransforms, is as isToday, jo as sectionSurfaceBase, ko as parseCanonicalRuntimeBackground, la as resolveEventScope, li as parseBackgroundContent, ln as formatTime, lr as uiTransforms, mi as resolveBackgroundColorValue, mo as sectionShapeFromContent, na as eventReadinessQuery, nn as formatEventCompactDateRail, nr as readRuntimeNow, oa as eventScopeLoaderParam, oc as arrangementSlotNames, on as formatEventRunDates, or as chromeLogoTransforms, pi as resolveSurfaceForegroundStyles, pn as formatBookingSchedulePresentation, po as sectionShapeForGround, qt as groupEventsByWeek, ra as eventReadinessQueryKeys, rn as formatEventDateParts, rt as ImagePresets, sa as eventScopeQuery, sn as formatEventTimeRange, sr as layoutTransforms, t as getBlockDefinition, ta as eventReadinessLoaderKey, tt as MediaNodeServer, ua as resolveCalendarReadProfile, ui as parseBackgroundOverlay, un as groupEventsByDate, ur as formattingTransforms, ut as resolveArrangementKnobs, va as resolveLookSurfacePresentation, vo as boundaryRuntimeMetricsForDecorativeTransition, wa as heroPhotoPaintsGround, wi as createTransformRegistry, ws as orderedLiveRunSessions, xi as lookQuoteLimitTransform, yi as lookCarouselRegionTransform, yn as formatEventLocation, z as combinedLookSchema, za as resolveEffectiveArrangement, zn as formatTotalCapacity, zr as formatEventPriceDisplay, zs as compareLocalScheduleDates } from "./registry-CXRXsFSx.mjs";
2
+ import { $ as resolveCardListSchedule, $i as augmentManifest, Ao as applyLookPhotoTreatment, At as groupOfferingRunsByCourse, Ba as arrangementManifestFromVariants, Bn as canJoinEventWaitlistOnAnyMode, Br as formatEventPrice, Bt as ThemedButtonLink, Ci as lookLeadSlotTransform, Cn as groupEventsByDate, Cr as listItemPresentation, Da as heroPhotoPaintsGround, Di as createTransformRegistry, Ds as orderedLiveRunSessions, Ei as asPartialObject, Es as nextLiveRunSessionStartMs, Fr as classPricesCopySchema, Gn as isEventFull, Gr as getAnchorClasses, Gs as parseBookingLocalDate, Ha as resolveEffectiveArrangement, Hn as formatTotalCapacity, Hr as formatEventPriceDisplay, Hs as compareLocalScheduleDates, Io as stripStaleTransitionStyleGroup, Ir as classPricesDataSchema, Is as formatDate, Js as resolveBookingBusinessTimeZone, Jt as weekColumnDays, Ka as deriveSiteStyleBlockPolicy, Lo as themeV2CompilerOwnedFieldNames, Lr as resolveClassPriceItems, Ls as formatDateRange, Mo as parseCanonicalRuntimeBackground, No as resolveSectionBackground, Os as resolveWholeSeriesBookingPhase, Po as sectionSurfaceBase, Ri as ClockIcon, Rn as hasEventBookingClosedEarly, Rr as formatCoursePrice, Rs as formatDateTimeRange, Si as lookCarouselRegionTransform, Sn as formatTime, Ti as lookSkinSlotTransform, Tr as listLookSlot, Ua as resolveModeArrangement, Un as getEventAvailability, Ur as formatEventStartingPrice, Va as readStoredMode, Vn as formatEventRemainingPlaces, Wa as resolvePublishedLook, Wn as getEventAvailabilityStatus, Wr as BACKGROUND_POSITION_PRESET_VALUES, Ws as getLocalScheduleDate, Wt as buildEventListWeek, X as CardListContentPart, Xt as formatBookingSchedulePresentation, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, Zs as formatBookingPriceDisplay, _i as resolveBackgroundColorValue, _o as sectionShapeFromContent, aa as eventReadinessQuery, ar as readRuntimeNow, at as computeMediaTransformStyle, ba as lookPresentationOnPalette, bn as formatEventTimeRange, ca as eventDiscoveryFilterKeys, cc as parseGradientPresetId, ci as boxStylesTransforms, cr as headerRuntimeTransforms, da as eventScopeQueryKeys, dn as eventLocalDateKey, dt as systemCustomizeFacetDefinitionsForBlock, ea as isObjectRecord, et as selectCardListPresentation, fa as resolveEventScope, fi as parseBackgroundContent, fr as uiTransforms, gi as resolveSurfaceForegroundStyles, gn as formatEventDateParts, go as sectionShapeForGround, ha as resolveEventCalendarReadPlan, hi as resolveSectionSurfaceForeground, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as eventReadinessLoaderKey, ja as arrangementAppearancePresets, jo as deriveSectionGround, jr as heroMorePhotoCount, la as eventScopeLoaderParam, lc as arrangementSlotNames, ln as eventCalendarWeekStart, lr as chromeLogoTransforms, ma as eventCalendarListGroupingDecision, mi as parseRuntimeBackgroundContent, nc as resolveExactOrFreePriceDisplay, nn as formatEventLocation, no as gradientToCss, oa as eventReadinessQueryKeys, on as closedRunCopy, pa as resolveCalendarReadProfile, pi as parseBackgroundOverlay, pr as formattingTransforms, qs as toUtcIsoDateTimeString, qt as groupEventsByWeek, ra as blockChecksForEvents, rc as resolvePricingOptionsPriceDisplay, ro as getGradientPreset, rt as ImagePresets, sr as mediaTransforms, ss as isToday, t as getBlockDefinition, tr as contentTransforms, ts as formatDateKey, tt as MediaNodeServer, ua as eventScopeQuery, un as eventDateOptions, ur as layoutTransforms, ut as resolveArrangementKnobs, vo as sectionShapeHook, wi as lookQuoteLimitTransform, wn as resolveEventTimeZone, xa as resolveLookSurfacePresentation, xn as formatEventWeekdayTime, xo as boundaryRuntimeMetricsForDecorativeTransition, yi as isSemanticSpacing, yn as formatEventRunDates, z as combinedLookSchema, za as styleSectionBackgroundForColour, zn as isBookableEvent, zr as formatEventDepositNote } from "./registry-D12XF_h1.mjs";
3
3
  import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
4
4
  import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
5
5
  import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
@@ -945,9 +945,15 @@ function occurrenceCardAvailability(event, count) {
945
945
  status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
946
946
  } : null;
947
947
  }
948
- /** Preserve projected closure reasons; only an open native run needs its clock rechecked. */
948
+ /** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
949
949
  function renderClockClosedCta(event, now) {
950
- if (!now || event.bookingScope !== "whole_series" || event.destination.kind !== "native") return null;
950
+ if (!now || event.destination.kind !== "native") return null;
951
+ if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
952
+ label: "Registration closed",
953
+ href: resolveEventHref(event),
954
+ external: false,
955
+ hidden: true
956
+ } : null;
951
957
  const phase = resolveWholeSeriesBookingPhase(event.run, now);
952
958
  if (phase.kind === "open") return null;
953
959
  return {
@@ -956,6 +962,7 @@ function renderClockClosedCta(event, now) {
956
962
  case "cancelled": return "Cancelled";
957
963
  case "completed": return "Completed";
958
964
  case "in-progress":
965
+ case "bookings-closed":
959
966
  case "enrolment-closed":
960
967
  case "no-sessions": return "Registration closed";
961
968
  default: return assertNever(phase.reason);
@@ -963,7 +970,7 @@ function renderClockClosedCta(event, now) {
963
970
  })(),
964
971
  href: resolveEventHref(event),
965
972
  external: false,
966
- hidden: phase.reason !== "enrolment-closed"
973
+ hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
967
974
  };
968
975
  }
969
976
  //#endregion
@@ -1008,8 +1015,8 @@ function formatEventTeacherLine(event) {
1008
1015
  * Sorting before deduplication means a duplicate occurrence keeps its earliest
1009
1016
  * deterministic representation.
1010
1017
  */
1011
- function selectQuickDateEvents(events) {
1012
- return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
1018
+ function selectQuickDateEvents(events, now) {
1019
+ return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event, now))).slice(0, 4);
1013
1020
  }
1014
1021
  /** Shared ordering and identity selection, independent of booking capacity. */
1015
1022
  function orderedUniqueEventOccurrences(events) {
@@ -1,4 +1,4 @@
1
- import { Gi as plainTextToInlineText, Go as parseRepeaterGridInteger, Hi as inlineTextToPlainText, Ji as parseFieldDefinitions, Jo as resolveRepeaterGridSpanFieldId, Ki as normalizeSelectSource, Ko as resolveRepeaterGridColumnFieldId, Ks as toUtcIsoDateTimeString, Ro as DEFAULT_MEDIA_FIELD_KINDS, Wi as parseInlineTextFromUnknown, Wo as isAcceptedRepeaterGridSpan, Ws as resolveBookingBusinessTimeZone, bs as isRecord$1, f as sanitizeNewsletterSignupPublicContent, ki as parseBlockIconValue, nc as parseContentVersionId, ps as linkSchema, qo as resolveRepeaterGridRowFieldId, t as getBlockDefinition } from "./registry-CXRXsFSx.mjs";
1
+ import { Cs as isRecord$1, Gi as inlineTextToPlainText, Ji as plainTextToInlineText, Jo as parseRepeaterGridInteger, Js as resolveBookingBusinessTimeZone, Mi as parseBlockIconValue, Vo as DEFAULT_MEDIA_FIELD_KINDS, Xo as resolveRepeaterGridRowFieldId, Yi as normalizeSelectSource, Yo as resolveRepeaterGridColumnFieldId, Zi as parseFieldDefinitions, Zo as resolveRepeaterGridSpanFieldId, ac as parseContentVersionId, f as sanitizeNewsletterSignupPublicContent, gs as linkSchema, qi as parseInlineTextFromUnknown, qo as isAcceptedRepeaterGridSpan, qs as toUtcIsoDateTimeString, t as getBlockDefinition } from "./registry-D12XF_h1.mjs";
2
2
  import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
3
3
  import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
4
4
  import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";