@riverbankcms/sdk 0.171.1 → 0.172.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 (210) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
  2. package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-DViYbakk.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
  4. package/dist/_dts/{client-CXPH5esD.d.ts → client-DZBOzd3U.d.ts} +1 -2
  5. package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
  6. package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
  9. package/dist/_dts/{index-BQPJbOkU.d.ts → index-BnMavhoh.d.ts} +2 -2
  10. package/dist/_dts/{index-DScYSl03.d.ts → index-C0zjLMAW.d.ts} +49 -38
  11. package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-CpOkfBt1.d.ts} +3 -3
  12. package/dist/_dts/{index-C9_OTCFQ.d.ts → index-Da4UMgbs.d.ts} +2 -2
  13. package/dist/_dts/{index-DlABXDte.d.ts → index-DkFV_1Bc.d.ts} +1 -1
  14. package/dist/_dts/{index-Sua-7CF1.d.ts → index-Dns7OHyl.d.ts} +1 -1
  15. package/dist/_dts/{index-B3gfKNI-.d.ts → index-MuMYjetm.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
  17. package/dist/_dts/{request-DUTkELQn.d.ts → request-wQ28JWbr.d.ts} +1021 -247
  18. package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-Cc4zqaEC.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 +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
  53. package/dist/_dts/{types-BCzfYDW2.d.ts → types-CpjyP5I4.d.ts} +7 -7
  54. package/dist/_dts/{types-JD-36x3P.d.ts → types-DrinAfeW.d.ts} +3 -3
  55. package/dist/_dts/{types-CPHk5Voq.d.ts → types-ZuZoGsZV.d.ts} +2 -2
  56. package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
  59. package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
  64. package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-sKBofjiW.mjs} +40 -14
  68. package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
  71. package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
  74. package/dist/client/{Page-CT4HaEMr.mjs → Page-Ds1s3DuC.mjs} +1426 -486
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
  77. package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
  78. package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
  79. package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-OsAseM7H.mjs} +36 -18
  80. package/dist/client/{accordion-BOApxi9U.mjs → accordion-DgwFZJSx.mjs} +1 -1
  81. package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
  82. package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
  83. package/dist/client/bookings.mjs +5 -5
  84. package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
  85. package/dist/client/{carousel-DeI76SEP.mjs → carousel-0sw2Kc3a.mjs} +2 -2
  86. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  87. package/dist/client/{cart-D_uxULCO.mjs → cart-CPfvMDGJ.mjs} +3 -3
  88. package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BJBPUTmg.mjs} +1 -1
  89. package/dist/client/{checkout-DIbh4g5e.mjs → checkout-DU4JFjGT.mjs} +3 -3
  90. package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
  91. package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
  92. package/dist/client/client.mjs +135 -4
  93. package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
  94. package/dist/client/{cta-CP9l112u.mjs → cta-CNVQHLKs.mjs} +53 -11
  95. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
  96. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
  97. package/dist/client/{display-ChgDe9Da.mjs → display-B5DfNb6A.mjs} +1869 -333
  98. package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
  99. package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
  100. package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
  101. package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
  102. package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
  103. package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
  104. package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-EhSDk4UL.mjs} +4 -4
  105. package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
  106. package/dist/client/{form-ERv_X_oZ.mjs → form-BfChzSkS.mjs} +3 -3
  107. package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D1zehtPk.mjs} +4 -4
  108. package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-rMDlUQIv.mjs} +3 -3
  109. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
  110. package/dist/client/gifting/client.mjs +3 -3
  111. package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BX9bQ84k.mjs} +2 -2
  112. package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
  113. package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
  114. package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
  115. package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
  116. package/dist/client/portal/client.mjs +231 -117
  117. package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
  118. package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-CDL-jihv.mjs} +1 -1
  119. package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-B97m0uZy.mjs} +3 -3
  120. package/dist/client/{productList-HoFGQXFl.mjs → productList-DE4vSSG_.mjs} +3 -3
  121. package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
  122. package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cn8XjRte.mjs} +1458 -1178
  123. package/dist/client/rendering/client.mjs +27 -27
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +22 -16
  126. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
  128. package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
  129. package/dist/client/runtimeResponse-CPcA8xSm.mjs +3 -0
  130. package/dist/client/{shop-DXyeSNgi.mjs → shop-BC4H0oYT.mjs} +3 -3
  131. package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
  132. package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
  133. package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-WgGVGelc.mjs} +12 -12
  134. package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
  135. package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-BE6TEk2A.mjs} +2 -2
  136. package/dist/client/spam-protection.mjs +1 -1
  137. package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
  138. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  139. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
  140. package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
  141. package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
  142. package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
  143. package/dist/client/{view-DhEwiTJG.mjs → view-B0TFnP4y.mjs} +198 -60
  144. package/dist/client/{view-C_brMDU2.mjs → view-DNNNbnNj.mjs} +3 -3
  145. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  146. package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  147. package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  148. package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-D59tHj_L.mjs} +25 -20
  149. package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +100 -70
  150. package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI--kS9Cwsc.mjs} +5 -5
  151. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  152. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  153. package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bi8-rclb.mjs} +311 -62
  154. package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +301 -125
  155. package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +584 -286
  156. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  157. package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-Caofnr1Z.mjs} +7190 -4065
  159. package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +5 -4
  161. package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
  162. package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
  163. package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +20 -8
  164. package/dist/preview-next/container-responsive.css +215 -4
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-DsKDQoVW.mjs} +131 -0
  168. package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
  169. package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
  170. package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  171. package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Bp6OnR3n.mjs} +109 -20
  172. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  173. package/dist/server/{client-DCwLR0kQ.mjs → client-dROAfMRa.mjs} +133 -2
  174. package/dist/server/config-template-validation.mjs +3 -0
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/data/resolveBlockData.mjs +1 -1
  178. package/dist/server/index.mjs +3 -3
  179. package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-zOIrtqz-.mjs} +19 -14
  180. package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
  181. package/dist/server/next.mjs +6 -6
  182. package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  183. package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-DjboggbB.mjs} +1 -1
  184. package/dist/server/page-converter.mjs +1 -1
  185. package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
  186. package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
  187. package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-BJjptSGp.mjs} +1039 -853
  188. package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
  189. package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-CntSkZQI.mjs} +1 -1
  190. package/dist/server/prebuild.mjs +1 -1
  191. package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
  192. package/dist/server/{registry-CaeRTf4E.mjs → registry-wYH0LH5f.mjs} +7257 -4959
  193. package/dist/server/rendering/components/pageShared.mjs +1 -1
  194. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  195. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  196. package/dist/server/rendering/server.mjs +3 -3
  197. package/dist/server/rendering.mjs +7 -7
  198. package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
  199. package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
  200. package/dist/server/{schema-CxBsE9Dv.mjs → schema-BFOqYIMQ.mjs} +2 -1
  201. package/dist/server/server.mjs +3 -3
  202. package/dist/server/theme-bridge.mjs +2 -2
  203. package/dist/server/theme.mjs +2 -2
  204. package/dist/server/{validation-CvmhnkDr.mjs → validation-DAQdPDku.mjs} +4 -4
  205. package/dist/server/{version-Clp2evCf.mjs → version-DAB0O3yx.mjs} +1 -1
  206. package/dist/styles/index.css +1260 -15
  207. package/package.json +1 -1
  208. package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
  209. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  210. package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { Bi as resolveEventRegistrationScopedEvents, Bo as cardRoleSchema, Cn as ImagePresets, Co as toNonEmptyReadonlyArray, D as registrationStepLabel, Dn as renderAudio, Ds as parseEventSeriesId, E as registrationRoute, Ei as browserReadAuthoritySchema, En as mediaImageHostProps, Fi as buildInteractiveIslandProps, Fn as eventCalendarWeekStart, Gi as listItemPresentation, Hi as defineClientOwnedBlockRuntime, Hn as formatEventCompactDateRail, Ii as createInteractiveIslandCodec, In as eventDateLocale, Ji as lookListPresentationSchemaShape, Kt as withOccurrenceTitle, Li as defineInteractiveIslandMetaKeys, Ln as eventDateOptions, Mi as pageNavigationSchema, Mn as resolveMediaNodeResponsiveImage, N as isRegistrationLocked, O as registrationStepLabelContext, On as renderVideo, Pi as bookingPageKindSchema, Pt as formatBookingWhen, Ri as eventRegistrationPageSurfaceSubjectSchema, Rn as eventLocalDateKey, Rt as formatRegistrationSchedule, S as getEventSelectionMode, Si as blockButtonRoleSchema, Sn as RichText, Ti as resolveDateRuntimeContext, Tn as computeMediaTransformStyle, Ui as defineProgressiveBlockRuntime, Vi as createZodCodec, Wi as isDecodeSuccess, Zn as resolveRuntimeEventDestination, _i as filterAutoShowSchema, _n as bookingPresentation, _s as formatEventPricing, a as buildProductDetailDisplay, b as resolveSelectedProduct, bi as weekStartSchema, bn as resolveRegistrationDisplay, bs as publicEventPricingDisplay, cs as parseMailingListRuntimeContext, ct as findPreSelectedEvent, di as calendarTabViewsSchema, ds as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, fi as columnOptionSchema, fo as assertNever, fs as parseBrevoListId, g as deriveCommerceCheckoutState, gi as eventLayoutSchema, gs as formatBookingPriceDisplay, hi as eventCalendarDisplayModeSchema, hs as parseNewsletterListId, in as toWholeSeriesRegistrationEvents, is as nextLiveRunSessionStartMs, lr as groupPublicEventsByRun, mi as eventCalendarDefaultViewSchema, ms as parseMailchimpInterestId, n as buildCheckoutDisplay, nn as toRegistrationEvents, o as buildProductListDisplay, os as resolveWholeSeriesBookingPhase, pi as eventButtonVariantSchema, ps as parseMailchimpAudienceId, qi as listLookSlot, r as buildPassesMembershipsDisplay, rn as toWholeSeriesRegistrationEvent, sr as selectEventCapacitySource, ss as resolveWholeSeriesRunLifecycle, t as buildCartDisplay, tr as formatRemainingPlaces, ua as resolveModeArrangement, ui as bookingNowSchema, us as DEFAULT_MAILING_LIST_PRIVACY_NOTE, ut as resolveEventRequiresPayment, vi as previewStageSchema, vn as placesLeftLabel, wn as MediaPlaceholder, x as REGISTRATION_STEP_LABELS, xn as shownVenue, yi as registrationButtonVariantSchema, yn as registrationDisplaySchema } from "./display-ChgDe9Da.mjs";
4
- import { Ft as formatDate, Ht as inferSiteDateLocale, It as formatDateRange, Kt as buildBookingUtcDateWindow, L as publicEventDestinationSchema, Qt as parseBookingLocalDate, R as publicEventSchema, S as isEventCalendarListLayout, St as publicEventLoaderQuerySchemaShape, Zt as getLocalScheduleDate, bt as eventSurfacePresetValues, en as resolveBookingBusinessTimeZone, ft as publicMembershipProductSchema, g as eventCalendarListGroupingDecision, gt as purchasablePublicPassProductSchema, ht as purchasablePublicMembershipProductSchema, in as toUtcIsoDateTimeString, mt as publicProductSchema, n as blockSiteTermsSchema, p as calendarWindowPageSchema, pt as publicPassProductSchema, rn as parseUtcIsoDateTimeString, tn as resolveBookingTimeZoneId, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, xt as eventSurfaceScopeValues, y as eventListArrangementValues, yt as eventScheduleScopeValues, zt as formatTime } from "./noop-poI1m2yW.mjs";
3
+ import { Ci as blockButtonRoleSchema, Cn as ImagePresets, Cs as formatEventPricing, D as registrationStepLabel, Di as browserReadAuthoritySchema, Dn as renderAudio, E as registrationRoute, Ei as resolveDateRuntimeContext, En as mediaImageHostProps, Eo as toNonEmptyReadonlyArray, Es as publicEventPricingDisplay, Fi as bookingPageKindSchema, Fn as eventCalendarWeekStart, Gi as isDecodeSuccess, Hi as createZodCodec, Hn as formatEventCompactDateRail, Ii as buildInteractiveIslandProps, In as eventDateLocale, Ji as listLookSlot, Ki as listItemPresentation, Kt as withOccurrenceTitle, Li as createInteractiveIslandCodec, Ln as eventDateOptions, Mn as resolveMediaNodeResponsiveImage, N as isRegistrationLocked, Ni as pageNavigationSchema, Ns as parseEventSeriesId, O as registrationStepLabelContext, On as renderVideo, Pt as formatBookingWhen, Qn as resolveRuntimeEventDestination, Ri as defineInteractiveIslandMetaKeys, Rn as eventLocalDateKey, Rt as formatRegistrationSchedule, S as getEventSelectionMode, Sn as RichText, Ss as formatBookingPriceDisplay, Tn as computeMediaTransformStyle, Ui as defineClientOwnedBlockRuntime, Vi as resolveEventRegistrationScopedEvents, Wi as defineProgressiveBlockRuntime, Wo as cardRoleSchema, Yi as lookListPresentationSchemaShape, _i as eventLayoutSchema, _n as bookingPresentation, _s as parseMailchimpAudienceId, a as buildProductDetailDisplay, b as resolveSelectedProduct, bi as registrationButtonVariantSchema, bn as resolveRegistrationDisplay, cr as selectEventCapacitySource, cs as nextLiveRunSessionStartMs, ct as findPreSelectedEvent, di as bookingNowSchema, ds as resolveWholeSeriesRunLifecycle, fi as calendarTabViewsSchema, fs as parseMailingListRuntimeContext, g as deriveCommerceCheckoutState, gi as eventCalendarDisplayModeSchema, gs as parseBrevoListId, hi as eventCalendarDefaultViewSchema, ho as assertNever, hs as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, in as toWholeSeriesRegistrationEvents, mi as eventButtonVariantSchema, ms as DEFAULT_MAILING_LIST_PRIVACY_NOTE, n as buildCheckoutDisplay, nn as toRegistrationEvents, nr as formatRemainingPlaces, o as buildProductListDisplay, or as getRemainingPlaces, pa as resolveModeArrangement, pi as columnOptionSchema, r as buildPassesMembershipsDisplay, rn as toWholeSeriesRegistrationEvent, t as buildCartDisplay, ur as groupPublicEventsByRun, us as resolveWholeSeriesBookingPhase, ut as resolveEventRequiresPayment, vi as filterAutoShowSchema, vn as placesLeftLabel, vs as parseMailchimpInterestId, wn as MediaPlaceholder, x as REGISTRATION_STEP_LABELS, xi as weekStartSchema, xn as shownVenue, xs as EVENT_PRESET_VOCABULARY, yi as previewStageSchema, yn as registrationDisplaySchema, ys as parseNewsletterListId, zi as eventRegistrationPageSurfaceSubjectSchema } from "./display-B5DfNb6A.mjs";
4
+ import { $t as parseBookingLocalDate, Bt as formatTime, Ct as publicEventLoaderQuerySchemaShape, It as formatDate, L as publicEventDestinationSchema, Lt as formatDateRange, Qt as getLocalScheduleDate, S as isEventCalendarListLayout, St as eventSurfaceScopeValues, Ut as inferSiteDateLocale, _t as purchasablePublicPassProductSchema, an as toUtcIsoDateTimeString, bt as eventScheduleScopeValues, g as eventCalendarListGroupingDecision, gt as purchasablePublicMembershipProductSchema, ht as publicProductSchema, in as parseUtcIsoDateTimeString, mt as publicPassProductSchema, n as blockSiteTermsSchema, nn as resolveBookingTimeZoneId, p as calendarWindowPageSchema, pt as publicMembershipProductSchema, qt as buildBookingUtcDateWindow, tn as resolveBookingBusinessTimeZone, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, xt as eventSurfacePresetValues, y as eventListArrangementValues, z as publicEventSchema } from "./noop-CamIX2yK.mjs";
5
5
  import { N as assertNever$2, p as assertNever$1 } from "./creditProducts-BTRX4edc.mjs";
6
- import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-xrjaKaCj.mjs";
7
- import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BMDHwnM6.mjs";
6
+ import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-xrjaKaCj.mjs";
7
+ import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DuaYtnvG.mjs";
8
8
  import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -357,45 +357,6 @@ function buildMailingListSignupBlockSourceRef(blockId, contentVersionId) {
357
357
  } : null;
358
358
  }
359
359
  //#endregion
360
- //#region ../core/src/event-preset-vocabulary.ts
361
- const EVENT_PRESET_VOCABULARY = {
362
- event: {
363
- label: "Event",
364
- pluralLabel: "Events",
365
- description: "Any event, repeating or manually dated, that does not fit the other categories."
366
- },
367
- class: {
368
- label: "Class",
369
- pluralLabel: "Classes",
370
- description: "Regular scheduled classes and group sessions."
371
- },
372
- course: {
373
- label: "Course",
374
- pluralLabel: "Courses",
375
- description: "A fixed set of dates that people book together."
376
- },
377
- term: {
378
- label: "Term",
379
- pluralLabel: "Terms",
380
- description: "A fixed term of sessions that people book together."
381
- },
382
- workshop: {
383
- label: "Workshop",
384
- pluralLabel: "Workshops",
385
- description: "One-off workshops, day sessions, or special events."
386
- },
387
- retreat: {
388
- label: "Retreat",
389
- pluralLabel: "Retreats",
390
- description: "Multi-day or residential immersive experiences."
391
- },
392
- performance: {
393
- label: "Performance",
394
- pluralLabel: "Performances",
395
- description: "Audience-facing shows, concerts, recitals, or showcases."
396
- }
397
- };
398
- //#endregion
399
360
  //#region ../theme-core/src/siteChromePlacement.ts
400
361
  const SITE_CHROME_PLACEMENT_CLASSES = [
401
362
  "rb-sticky",
@@ -559,7 +520,7 @@ function normalizeEventStaffMemberId(value) {
559
520
  //#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
560
521
  /**
561
522
  * Format event price for display.
562
- * @returns "Free", "£25", "£12 - £25", "Free / £12 - £25", "Course (From £40)", etc.
523
+ * @returns "Free", "£25", "£12–£25", "Free / £12–£25", "Course (From £40)", etc.
563
524
  *
564
525
  * Events render compact amounts (no trailing ".00"); the actual ADT→string
565
526
  * mapping lives in `formatBookingPriceDisplay` in @riverbankcms/core so all
@@ -597,6 +558,31 @@ function formatEventPriceAmount(amount, currency, locale) {
597
558
  locale
598
559
  });
599
560
  }
561
+ /** Compact headline for a grouped course part or a class price figure. */
562
+ function formatEventStartingPrice(pricing) {
563
+ const display = publicEventPricingDisplay(pricing);
564
+ if (pricing.kind !== "tiered") return formatEventPriceDisplay(pricing);
565
+ switch (display.kind) {
566
+ case "exact":
567
+ case "from": return formatBookingPriceDisplay({
568
+ ...display,
569
+ kind: "from"
570
+ }, { decimals: "auto" });
571
+ case "range": return formatBookingPriceDisplay({
572
+ kind: "from",
573
+ amount: display.minAmount,
574
+ currency: display.currency
575
+ }, { decimals: "auto" });
576
+ case "mixed": return formatBookingPriceDisplay({
577
+ kind: "from",
578
+ amount: 0,
579
+ currency: display.currency
580
+ }, { decimals: "auto" });
581
+ case "unavailable":
582
+ case "external": return null;
583
+ case "free": return "Free";
584
+ }
585
+ }
600
586
  //#endregion
601
587
  //#region ../blocks/src/system/runtime/nodes/events/domain/listWeek.ts
602
588
  /** Civil weeks use the site zone, including weeks containing a clock change. */
@@ -700,6 +686,38 @@ function weekColumnDays(week, events, allLoaded) {
700
686
  };
701
687
  });
702
688
  }
689
+ /** Group the entire loaded list: later cursor pages extend an existing week, never repeat its heading. */
690
+ function groupEventsByWeek(events, context) {
691
+ const weekKey = (date) => formatDateKey(getWeekCalendarDayTuple(date, context.startOfWeek)[0]);
692
+ const thisWeek = weekKey(context.today);
693
+ const nextWeek = weekKey(addDays(context.today, 7));
694
+ const groups = events.reduce((grouped, event) => {
695
+ const key = weekKey(getLocalScheduleDate(new Date(event.startsAt), resolveBookingBusinessTimeZone(context.timeZone)));
696
+ return grouped.set(key, [...grouped.get(key) ?? [], event]);
697
+ }, /* @__PURE__ */ new Map());
698
+ const options = eventDateOptions({
699
+ siteTimeZone: context.timeZone,
700
+ timeZone: context.timeZone
701
+ });
702
+ return [...groups].sort(([left], [right]) => left.localeCompare(right)).map(([key, entries]) => ({
703
+ key,
704
+ label: key === thisWeek ? "This week" : key === nextWeek ? "Next week" : `Week of ${formatDate({
705
+ kind: "civil",
706
+ value: parseBookingLocalDate(key)
707
+ }, options, {
708
+ date: "long",
709
+ year: "omit"
710
+ })}`,
711
+ events: [...entries].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))
712
+ }));
713
+ }
714
+ function eventWeekGroupingContext(today, timeZone, startOfWeek = eventCalendarWeekStart(timeZone)) {
715
+ return {
716
+ today,
717
+ timeZone,
718
+ startOfWeek
719
+ };
720
+ }
703
721
  /**
704
722
  * Canonical responsive ladder for a user-configured column count: 1 column at
705
723
  * base, 2 from `sm`, 3 from `lg` (when the count allows), and the full count
@@ -824,6 +842,7 @@ function getCardOrientation(layout) {
824
842
  case "ledger":
825
843
  case "timetable-rows":
826
844
  case "day-groups":
845
+ case "week-groups":
827
846
  case "week-columns":
828
847
  case "compact": return "vertical";
829
848
  }
@@ -840,9 +859,20 @@ const quickFactSlots = {
840
859
  //#endregion
841
860
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventQuickFacts.tsx
842
861
  /** No empty wrapper: site styles own the layout through these slots. */
843
- function EventQuickFacts({ facts, context = "page" }) {
862
+ function EventQuickFacts({ facts, context = "page", chips, eyebrow = false }) {
844
863
  if (!facts?.length) return null;
845
- return /* @__PURE__ */ jsx("dl", {
864
+ if (chips) return /* @__PURE__ */ jsx("dl", {
865
+ ...chips.list,
866
+ "data-context": context,
867
+ children: facts.map((fact, index) => /* @__PURE__ */ jsxs("div", {
868
+ ...chips.item,
869
+ children: [/* @__PURE__ */ jsx("dt", {
870
+ className: "rb-sr-only",
871
+ children: fact.label
872
+ }), /* @__PURE__ */ jsx("dd", { children: fact.value })]
873
+ }, `${fact.label}-${index}`))
874
+ });
875
+ const line = /* @__PURE__ */ jsx("dl", {
846
876
  "data-slot": quickFactSlots.list,
847
877
  "data-context": context,
848
878
  children: facts.map((fact, index) => /* @__PURE__ */ jsxs("div", {
@@ -856,6 +886,10 @@ function EventQuickFacts({ facts, context = "page" }) {
856
886
  })]
857
887
  }, `${fact.label}-${index}`))
858
888
  });
889
+ return eyebrow ? /* @__PURE__ */ jsx("div", {
890
+ "data-slot": "eyebrow",
891
+ children: line
892
+ }) : line;
859
893
  }
860
894
  //#endregion
861
895
  //#region ../blocks/src/system/runtime/nodes/media.server.tsx
@@ -902,7 +936,9 @@ const cardListArrangements = [
902
936
  "plates",
903
937
  "slides",
904
938
  "track",
905
- "type-columns"
939
+ "type-columns",
940
+ "next-cards",
941
+ "course-groups"
906
942
  ];
907
943
  const cardListPresentationSchemaShape = {
908
944
  ...lookListPresentationSchemaShape,
@@ -1043,19 +1079,27 @@ function cardListItemLink(item) {
1043
1079
  }
1044
1080
  function CardListTitle({ item, presentation, Title = "h3" }) {
1045
1081
  const link = cardListItemLink(item);
1046
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Title, {
1047
- ...listLookSlot(presentation, "item-title"),
1048
- children: link ? /* @__PURE__ */ jsx("a", {
1049
- ...link,
1050
- children: /* @__PURE__ */ jsx(LinkedLabel, {
1051
- label: item.title,
1052
- newTabHint: item.newTabHint
1053
- })
1054
- }) : item.title
1055
- }), /* @__PURE__ */ jsx(EventQuickFacts, {
1056
- facts: item.quickFacts,
1057
- context: "card"
1058
- })] });
1082
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1083
+ /* @__PURE__ */ jsx(EventQuickFacts, {
1084
+ facts: item.eyebrowFacts,
1085
+ context: "card",
1086
+ eyebrow: true
1087
+ }),
1088
+ /* @__PURE__ */ jsx(Title, {
1089
+ ...listLookSlot(presentation, "item-title"),
1090
+ children: link ? /* @__PURE__ */ jsx("a", {
1091
+ ...link,
1092
+ children: /* @__PURE__ */ jsx(LinkedLabel, {
1093
+ label: item.title,
1094
+ newTabHint: item.newTabHint
1095
+ })
1096
+ }) : item.title
1097
+ }),
1098
+ /* @__PURE__ */ jsx(EventQuickFacts, {
1099
+ facts: item.quickFacts,
1100
+ context: "card"
1101
+ })
1102
+ ] });
1059
1103
  }
1060
1104
  function CardListMedia({ item, presentation }) {
1061
1105
  if (!item.media) return null;
@@ -1545,6 +1589,7 @@ function buildEventCollectionDisplay(source) {
1545
1589
  ...buildEventCollectionListDisplay(source),
1546
1590
  panelHeading: source.panelHeading,
1547
1591
  lookSlots: source.lookSlots,
1592
+ eventRows: source.eventRows,
1548
1593
  itemActionStyle: source.itemActionStyle,
1549
1594
  itemRoles: source.itemRoles,
1550
1595
  surfacePresentation: source.surfacePresentation,
@@ -1634,6 +1679,7 @@ function buildEventCollectionListingDisplay(display, prefetchedEvents, className
1634
1679
  sectionAction: display.sectionAction,
1635
1680
  panelHeading: display.panelHeading,
1636
1681
  lookSlots: display.lookSlots,
1682
+ eventRows: display.eventRows,
1637
1683
  itemActionStyle: display.itemActionStyle,
1638
1684
  itemRoles: display.itemRoles,
1639
1685
  surfacePresentation: display.surfacePresentation,
@@ -1712,6 +1758,15 @@ const eventListingDisplaySchema = z.object({
1712
1758
  today: z.string(),
1713
1759
  timeZone: z.string()
1714
1760
  }).optional(),
1761
+ weekGrouping: z.object({
1762
+ today: z.object({
1763
+ year: z.number(),
1764
+ month: z.number(),
1765
+ day: z.number()
1766
+ }),
1767
+ timeZone: z.string(),
1768
+ startOfWeek: z.enum(["monday", "sunday"])
1769
+ }).optional(),
1715
1770
  allLoaded: z.boolean().optional()
1716
1771
  });
1717
1772
  const eventListingHydrationSchema = z.object({
@@ -2206,7 +2261,10 @@ function buildEventCalendarListingRender(render, className = render.display.clas
2206
2261
  const { display, hydration } = render;
2207
2262
  return {
2208
2263
  mode: "event-listing",
2209
- display: buildEventCalendarListingDisplay(display, hydration.prefetchedEvents, className),
2264
+ display: {
2265
+ ...buildEventCalendarListingDisplay(display, hydration.prefetchedEvents, className),
2266
+ weekGrouping: eventWeekGroupingContext(hydration.calendarContext.initialToday, hydration.calendarContext.timeZone, display.startOfWeek)
2267
+ },
2210
2268
  hydration: {
2211
2269
  siteId: hydration.siteId,
2212
2270
  eventsPerPage: display.eventsPerPage,
@@ -2554,6 +2612,7 @@ function runName(event, courseTitle) {
2554
2612
  }
2555
2613
  function singleEntry(event, input) {
2556
2614
  const isCourse = event.registrationSubject.kind === "wholeSeries";
2615
+ const remaining = getRemainingPlaces(selectEventCapacitySource(event, input.attendanceMode));
2557
2616
  return {
2558
2617
  kind: "single",
2559
2618
  title: input.courseTitle ?? event.title,
@@ -2564,7 +2623,7 @@ function singleEntry(event, input) {
2564
2623
  price: priceLabel(event),
2565
2624
  places: placesLabel(event, input, false),
2566
2625
  tile: dateTile(event),
2567
- action: isCourse ? `Book the ${input.noun.label}` : bookingButtonText(input.buttonText)
2626
+ action: remaining.kind === "full" ? remaining.waitlist ? "Join waitlist" : "Full" : isCourse ? `Book the ${input.noun.label}` : bookingButtonText(input.buttonText)
2568
2627
  };
2569
2628
  }
2570
2629
  function chooseDateEntry(input) {
@@ -2589,20 +2648,24 @@ function chooseDateEntry(input) {
2589
2648
  action: "Choose a date"
2590
2649
  };
2591
2650
  }
2592
- /** The card before a booking starts; the server renders this too. */
2593
- function idleBookingEntry(input) {
2594
- if (input.event) return singleEntry(input.event, input);
2595
- const only = input.events.length === 1 ? input.events[0] : void 0;
2596
- if (only) return singleEntry(only, input);
2597
- if (getEventSelectionMode(input.events) === "date") return chooseDateEntry(input);
2651
+ /** The picker for several events, or the runs of the page's course. */
2652
+ function chooseEventEntry(input) {
2598
2653
  return {
2599
2654
  kind: "chooseEvent",
2600
2655
  title: input.courseTitle ?? input.events[0]?.title ?? "",
2601
2656
  count: input.events.length,
2602
2657
  countLabel: input.courseTitle ? `${input.events.length} to choose from` : `${input.events.length} ${input.noun.pluralLabel}`,
2603
- action: "Choose an event"
2658
+ action: input.courseTitle && input.events.length > 0 && input.events.every((event) => event.registrationSubject.kind === "wholeSeries") ? "Choose dates" : "Choose an event"
2604
2659
  };
2605
2660
  }
2661
+ /** The card before a booking starts; the server renders this too. */
2662
+ function idleBookingEntry(input) {
2663
+ if (input.event) return singleEntry(input.event, input);
2664
+ const only = input.events.length === 1 ? input.events[0] : void 0;
2665
+ if (only) return singleEntry(only, input);
2666
+ if (getEventSelectionMode(input.events) === "date") return chooseDateEntry(input);
2667
+ return chooseEventEntry(input);
2668
+ }
2606
2669
  /** The card and bar's content for the visitor's current position. */
2607
2670
  function bookingEntry(input) {
2608
2671
  if (input.finished) return {
@@ -2758,6 +2821,8 @@ const OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS = [...OFFERINGS_PREVIEW_EVENT_PRE
2758
2821
  const OFFERINGS_PREVIEW_SOURCE_KEYS = OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS;
2759
2822
  function offeringsListingFor(arrangement) {
2760
2823
  switch (arrangement) {
2824
+ case "course-groups": return "by-course";
2825
+ case "next-cards": return "next-per-type";
2761
2826
  case "slides":
2762
2827
  case "track": return "by-date";
2763
2828
  case "legacy":
@@ -2824,6 +2889,7 @@ function resolveOfferingsPreviewGroups(input) {
2824
2889
  title,
2825
2890
  intro,
2826
2891
  hidden: override?.hidden ?? defaultGroup.hidden,
2892
+ ...override?.hideWhenEmpty === true ? { hideWhenEmpty: true } : {},
2827
2893
  presentation: normalizeGroupPresentation(override?.presentation),
2828
2894
  cta: resolveGroupCtaConfig(override)
2829
2895
  };
@@ -2909,13 +2975,14 @@ function resolveOfferingsPreviewGroupCta(input) {
2909
2975
  } : null;
2910
2976
  }
2911
2977
  function buildOfferingsPreviewRenderStates(input) {
2978
+ const now = input.now;
2912
2979
  return input.groups.filter((group) => !group.hidden).map((group) => {
2913
2980
  const data = input.itemsBySourceKey.get(group.sourceKey);
2914
2981
  if (!data || data.kind === "failed") return {
2915
2982
  kind: "failed",
2916
2983
  group
2917
2984
  };
2918
- const items = toNonEmptyReadonlyArray(data.items.slice(0, input.itemLimit));
2985
+ const items = toNonEmptyReadonlyArray(limitOfferingItems(group.hideWhenEmpty || input.listingMode === "next-per-type" ? data.items.filter((item) => offeringHasComingUpDates(item, now)) : data.items, input.listingMode, input.itemLimit));
2919
2986
  return items ? {
2920
2987
  kind: "items",
2921
2988
  group,
@@ -2926,13 +2993,20 @@ function buildOfferingsPreviewRenderStates(input) {
2926
2993
  };
2927
2994
  });
2928
2995
  }
2996
+ function offeringHasComingUpDates(item, now) {
2997
+ if (nextOfferingStartMs(item, now) !== null) return true;
2998
+ return offeringRunLifecycle(item.kind === "event" ? item.event : item.run.representative, now) === "in_progress";
2999
+ }
2929
3000
  /** One selected listing for preview, catalogue and render preparation. */
2930
3001
  function buildOfferingsPreviewListing(input) {
2931
- const groups = toNonEmptyReadonlyArray(buildOfferingsPreviewRenderStates({
3002
+ const loads = buildOfferingsPreviewRenderStates({
2932
3003
  groups: input.groups,
3004
+ listingMode: input.listingMode,
2933
3005
  itemsBySourceKey: input.loads,
2934
- itemLimit: input.itemLimit
2935
- }).map((load) => {
3006
+ itemLimit: input.itemLimit,
3007
+ now: input.now
3008
+ });
3009
+ const groups = toNonEmptyReadonlyArray(loads.filter((load) => load.kind !== "empty" || !load.group.hideWhenEmpty).map((load) => {
2936
3010
  switch (load.kind) {
2937
3011
  case "empty":
2938
3012
  case "failed": return load;
@@ -2943,9 +3017,12 @@ function buildOfferingsPreviewListing(input) {
2943
3017
  default: return assertNever$2(load);
2944
3018
  }
2945
3019
  }));
2946
- if (!groups) return { kind: "no-groups" };
2947
- if (input.listingMode === "by-type") return {
2948
- kind: "by-type",
3020
+ if (!groups) return loads.length > 0 ? {
3021
+ kind: "no-groups",
3022
+ reason: "empty-hidden"
3023
+ } : { kind: "no-groups" };
3024
+ if (input.listingMode !== "by-date") return {
3025
+ kind: input.listingMode === "by-course" ? "by-course" : "by-type",
2949
3026
  groups
2950
3027
  };
2951
3028
  const items = toNonEmptyReadonlyArray(groups.flatMap((load, groupIndex) => {
@@ -2979,15 +3056,20 @@ function nextOfferingStartMs(item, now) {
2979
3056
  }
2980
3057
  function nextOfferingEventStartMs(event, now) {
2981
3058
  if (event.bookingScope === "whole_series") {
2982
- const lifecycle = resolveWholeSeriesRunLifecycle({
2983
- seriesStatus: event.run.lifecycle === "completed" || event.run.lifecycle === "cancelled" ? event.run.lifecycle : event.status ?? "active",
2984
- sessions: event.run.sessions
2985
- }, now);
3059
+ const lifecycle = offeringRunLifecycle(event, now);
2986
3060
  return lifecycle === "completed" || lifecycle === "cancelled" ? null : nextLiveRunSessionStartMs(event.run.sessions, now);
2987
3061
  }
2988
3062
  const startsAt = Date.parse(event.startsAt);
2989
3063
  return startsAt >= now.getTime() ? startsAt : null;
2990
3064
  }
3065
+ /** Respect terminal projection states while rechecking live schedules against the render clock. */
3066
+ function offeringRunLifecycle(event, now) {
3067
+ if (event.bookingScope !== "whole_series") return null;
3068
+ return resolveWholeSeriesRunLifecycle({
3069
+ seriesStatus: event.run.lifecycle === "completed" || event.run.lifecycle === "cancelled" ? event.run.lifecycle : event.status ?? "active",
3070
+ sessions: event.run.sessions
3071
+ }, now);
3072
+ }
2991
3073
  function offeringItemTitle(item) {
2992
3074
  return (item.kind === "event" ? item.event : item.run.representative).title;
2993
3075
  }
@@ -3088,6 +3170,30 @@ function resolveOfferingsRenderInput(input) {
3088
3170
  now: new Date(input.now)
3089
3171
  };
3090
3172
  }
3173
+ /** A course limit keeps all its loaded parts together; other lists still limit individual items. */
3174
+ function limitOfferingItems(items, mode, limit) {
3175
+ if (mode !== "by-course") return items.slice(0, mode === "next-per-type" ? 1 : limit);
3176
+ const identity = (item) => item.kind === "run" ? item.run.run.eventOfferingId : item.event.occurrenceId;
3177
+ const selected = new Set([...new Set(items.map(identity))].slice(0, limit));
3178
+ return items.filter((item) => selected.has(identity(item)));
3179
+ }
3180
+ /** The offering ID owns membership; display names never act as grouping keys. */
3181
+ function groupOfferingRunsByCourse(items) {
3182
+ const runs = items.flatMap((item) => item.kind === "run" && item.run.run.listing ? [{
3183
+ item,
3184
+ id: item.run.run.eventOfferingId,
3185
+ course: item.run.run.listing.course
3186
+ }] : []);
3187
+ return [...new Set(runs.map((run) => run.id))].flatMap((id) => {
3188
+ const parts = runs.filter((run) => run.id === id);
3189
+ const first = parts[0];
3190
+ return first ? [{
3191
+ id,
3192
+ course: first.course,
3193
+ parts: parts.map((run) => run.item)
3194
+ }] : [];
3195
+ });
3196
+ }
3091
3197
  //#endregion
3092
3198
  //#region ../blocks/src/system/runtime/nodes/event-registration/offeringNoun.ts
3093
3199
  function offeringKindForEvent(event) {
@@ -4740,4 +4846,4 @@ function shopProductPresentation(hydration, productId, index, count) {
4740
4846
  };
4741
4847
  }
4742
4848
  //#endregion
4743
- export { bookingCardEntry as $, normalizeEventCategoryIds as $t, formInteractiveIslandPropsCodec as A, buildEventRuntimeFilters as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, selectCardListPresentation as Bt, newsletterFormInteractiveIslandPropsCodec as C, eventPageOperationQuery as Ct, publicGiftingOffersResponseSchema as D, planEventPageOperation as Dt, giftingInteractiveIslandPropsCodec as E, getEventPaginationView as Et, eventRegistrationInteractiveIslandPropsCodec as F, catalogueEventCardProps as Ft, normalizeOfferingsPreviewContentForWrite as G, getContainerClass as Gt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as H, EventQuickFacts as Ht, resolveEventRegistrationEventSource as I, listingEventCardProps as It, resolveOfferingsPreviewGroupCta as J, eventListWeekDays as Jt, normalizeOfferingsPreviewItemLimit as K, Grid as Kt, offeringNounForEvent as L, CardListContentPart as Lt, buildEventRegistrationInteractiveIslandProps as M, normalizeCsvIds as Mt, displayButtonText as N, normalizeCsvString as Nt, buildFormInteractiveIslandProps as O, toEventPaginationLoadError as Ot, eventRegistrationBlockRuntime as P, normalizeOptionalId as Pt, bookingBarPlacement as Q, formatEventPriceDisplay as Qt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as R, CardListLeadDate as Rt, newsletterFormBlockRuntime as S, createInitialEventPaginationLoadState as St, giftingBlockRuntime as T, getEventIdentity as Tt, buildOfferingsPreviewListing as U, quickFactSlots as Ut, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as V, MediaNodeServer as Vt, isOfferingsPreviewSourceKey as W, getCardOrientation as Wt, resolveOfferingsRenderInput as X, formatEventPrice as Xt, resolveOfferingsPreviewGroups as Y, weekColumnDays as Yt, DEFAULT_BOOKING_BUTTON_TEXT as Z, formatEventPriceAmount as Zt, shopProductPresentation as _, DEFAULT_MAILING_LIST_TARGETING as _n, recurringScheduleProjectionSchema as _t, buildShopInteractiveIslandProps as a, resolveEventSelection as an, occurrenceContextSchema as at, buildNewsletterFormInteractiveIslandProps as b, unsafeAsContentEntryId as bn, eventListingBlockRuntime as bt, checkoutBlockRuntime as c, resolveHeaderChromeRuntimeContract as cn, buildEventCombinedListingDisplay as ct, productDetailBlockRuntime as d, planSiteChromePlacement as dn, buildEventCalendarInteractiveIslandProps as dt, normalizeEventScheduleScope as en, bookingEntry as et, productDetailInteractiveIslandPropsCodec as f, splitSiteChromePlacementClasses as fn, buildEventCalendarListingDisplay as ft, shopInteractiveIslandPropsCodec as g, parseMailingListVisitorSelection as gn, projectRecurringSchedule as gt, shopBlockRuntime as h, parseMailingListPlacementTargeting as hn, eventCalendarInteractiveIslandPropsCodec as ht, buildProductListInteractiveIslandProps as i, normalizeEventVenueId as in, formatBookingSchedulePresentation as it, buildEventRegistrationDisplayFromScopedEvents as j, getEventRuntimeFiltersKey as jt, formBlockRuntime as k, toError as kt, checkoutInteractiveIslandPropsCodec as l, staticHeaderChromeRuntime as ln, eventCombinedBlockRuntime as lt, productListInteractiveIslandPropsCodec as m, assessMailingListTargeting as mn, eventCalendarBlockRuntime as mt, buildCheckoutInteractiveIslandProps as n, normalizeEventSurfacePresets as nn, bookingPanelHeading as nt, cartBlockRuntime as o, headerChromeRuntimeContractSchema as on, closedRunCopy as ot, productListBlockRuntime as p, buildMailingListSignupBlockSourceRef as pn, buildEventCalendarListingRender as pt, offeringsListingFor as q, buildEventListWeek as qt, buildProductDetailInteractiveIslandProps as r, normalizeEventSurfaceScope as rn, courseTitleOf as rt, cartInteractiveIslandPropsCodec as s, isHeaderScrollRuntimeEnabled as sn, buildEventCombinedInteractiveIslandProps as st, buildCartInteractiveIslandProps as t, normalizeEventStaffMemberId as tn, bookingEntryProgress as tt, getShopDisplayForItems as u, parseHeaderPositioning as un, eventCombinedInteractiveIslandPropsCodec as ut, publicProductsResponseSchema as v, sameMailingListPlacementTargeting as vn, combinedLookSchema as vt, buildGiftingInteractiveIslandProps as w, eventPaginationLoadReducer as wt, newsletterBlockSubmissionMessage as x, eventListingInteractiveIslandPropsCodec as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, parseContentVersionId as yn, buildEventListingInteractiveIslandProps as yt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as z, resolveCardListSchedule as zt };
4849
+ export { DEFAULT_BOOKING_BUTTON_TEXT as $, groupEventsByWeek as $t, formInteractiveIslandPropsCodec as A, toEventPaginationLoadError as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, CardListLeadDate as Bt, newsletterFormInteractiveIslandPropsCodec as C, DEFAULT_MAILING_LIST_TARGETING as Cn, eventListingInteractiveIslandPropsCodec as Ct, publicGiftingOffersResponseSchema as D, getEventIdentity as Dt, giftingInteractiveIslandPropsCodec as E, unsafeAsContentEntryId as En, eventPaginationLoadReducer as Et, eventRegistrationInteractiveIslandPropsCodec as F, normalizeCsvString as Ft, isOfferingsPreviewSourceKey as G, EventQuickFacts as Gt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as H, resolveCardListSchedule as Ht, resolveEventRegistrationEventSource as I, normalizeOptionalId as It, offeringRunLifecycle as J, getContainerClass as Jt, normalizeOfferingsPreviewContentForWrite as K, quickFactSlots as Kt, offeringNounForEvent as L, catalogueEventCardProps as Lt, buildEventRegistrationInteractiveIslandProps as M, buildEventRuntimeFilters as Mt, displayButtonText as N, getEventRuntimeFiltersKey as Nt, buildFormInteractiveIslandProps as O, getEventPaginationView as Ot, eventRegistrationBlockRuntime as P, normalizeCsvIds as Pt, resolveOfferingsRenderInput as Q, eventWeekGroupingContext as Qt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as R, listingEventCardProps as Rt, newsletterFormBlockRuntime as S, parseMailingListVisitorSelection as Sn, eventListingBlockRuntime as St, giftingBlockRuntime as T, parseContentVersionId as Tn, eventPageOperationQuery as Tt, buildOfferingsPreviewListing as U, selectCardListPresentation as Ut, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as V, cardListPresentationSchemaShape as Vt, groupOfferingRunsByCourse as W, MediaNodeServer as Wt, resolveOfferingsPreviewGroupCta as X, buildEventListWeek as Xt, offeringsListingFor as Y, Grid as Yt, resolveOfferingsPreviewGroups as Z, eventListWeekDays as Zt, shopProductPresentation as _, planSiteChromePlacement as _n, eventCalendarInteractiveIslandPropsCodec as _t, buildShopInteractiveIslandProps as a, normalizeEventCategoryIds as an, courseTitleOf as at, buildNewsletterFormInteractiveIslandProps as b, assessMailingListTargeting as bn, combinedLookSchema as bt, checkoutBlockRuntime as c, normalizeEventSurfacePresets as cn, closedRunCopy as ct, productDetailBlockRuntime as d, resolveEventSelection as dn, eventCombinedBlockRuntime as dt, weekColumnDays as en, bookingBarPlacement as et, productDetailInteractiveIslandPropsCodec as f, headerChromeRuntimeContractSchema as fn, eventCombinedInteractiveIslandPropsCodec as ft, shopInteractiveIslandPropsCodec as g, parseHeaderPositioning as gn, eventCalendarBlockRuntime as gt, shopBlockRuntime as h, staticHeaderChromeRuntime as hn, buildEventCalendarListingRender as ht, buildProductListInteractiveIslandProps as i, formatEventStartingPrice as in, bookingPanelHeading as it, buildEventRegistrationDisplayFromScopedEvents as j, toError as jt, formBlockRuntime as k, planEventPageOperation as kt, checkoutInteractiveIslandPropsCodec as l, normalizeEventSurfaceScope as ln, buildEventCombinedInteractiveIslandProps as lt, productListInteractiveIslandPropsCodec as m, resolveHeaderChromeRuntimeContract as mn, buildEventCalendarListingDisplay as mt, buildCheckoutInteractiveIslandProps as n, formatEventPriceAmount as nn, bookingEntry as nt, cartBlockRuntime as o, normalizeEventScheduleScope as on, formatBookingSchedulePresentation as ot, productListBlockRuntime as p, isHeaderScrollRuntimeEnabled as pn, buildEventCalendarInteractiveIslandProps as pt, normalizeOfferingsPreviewItemLimit as q, getCardOrientation as qt, buildProductDetailInteractiveIslandProps as r, formatEventPriceDisplay as rn, bookingEntryProgress as rt, cartInteractiveIslandPropsCodec as s, normalizeEventStaffMemberId as sn, occurrenceContextSchema as st, buildCartInteractiveIslandProps as t, formatEventPrice as tn, bookingCardEntry as tt, getShopDisplayForItems as u, normalizeEventVenueId as un, buildEventCombinedListingDisplay as ut, publicProductsResponseSchema as v, splitSiteChromePlacementClasses as vn, projectRecurringSchedule as vt, buildGiftingInteractiveIslandProps as w, sameMailingListPlacementTargeting as wn, createInitialEventPaginationLoadState as wt, newsletterBlockSubmissionMessage as x, parseMailingListPlacementTargeting as xn, buildEventListingInteractiveIslandProps as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, buildMailingListSignupBlockSourceRef as yn, recurringScheduleProjectionSchema as yt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as z, CardListContentPart as zt };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
2
+ import { t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CBUO-xuz.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BjRoLoMD.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/rendering/islands/enhancers/shopShared.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-AOUzjDK9.mjs";
3
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
4
4
  import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
5
5
  import { i as hasSpamProtection, n as useSpamProtection, r as getChallengeUrl, t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
6
6
  export { ProtectedSubmitButton, SpamProtectionWidget, getChallengeUrl, hasSpamProtection, submissionProof, useSpamProtection };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { Ln as eventDateOptions, Sn as RichText, Ti as resolveDateRuntimeContext, Vn as formatEventClockLabel, Xn as resolveEventTimeZone, Yn as groupEventsByDate, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, or as isEventFull, qn as formatEventTimeRange } from "./display-ChgDe9Da.mjs";
3
- import { $t as parseLocalScheduleTime, Ft as formatDate, Gt as toScheduledBookingDateTime, Wt as formatBookingCompactEnglishTime } from "./noop-poI1m2yW.mjs";
2
+ import { Ei as resolveDateRuntimeContext, Ln as eventDateOptions, Sn as RichText, Vn as formatEventClockLabel, Xn as groupEventsByDate, Zn as resolveEventTimeZone, ar as getEventAvailabilityStatus, qn as formatEventTimeRange, sr as isEventFull, tr as formatEventRemainingPlaces } from "./display-B5DfNb6A.mjs";
3
+ import { Gt as formatBookingCompactEnglishTime, It as formatDate, Kt as toScheduledBookingDateTime, en as parseLocalScheduleTime } from "./noop-CamIX2yK.mjs";
4
4
  import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
5
- import { t as LocationMapActions } from "./LocationMapActions-QahdLtdE.mjs";
6
- import { q as textColorStyle } from "./accessibleSurfaces-BnyVRqdU.mjs";
5
+ import { t as LocationMapActions } from "./LocationMapActions-Hsj2HC_1.mjs";
6
+ import { J as textColorStyle } from "./accessibleSurfaces-OsAseM7H.mjs";
7
7
  import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-xrjaKaCj.mjs";
8
- import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
9
- import { r as resolveEventLinkProps } from "./cta-CP9l112u.mjs";
10
- import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-Dy6UMuIw.mjs";
11
- import { l as formatEventTeacherLine } from "./EventItem-DKdZSW_R.mjs";
12
- import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-DRH9qFny.mjs";
13
- import { t as coerceRichTextDoc } from "./richText-coerce-CtoGLZ_e.mjs";
8
+ import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
9
+ import { r as resolveEventLinkProps } from "./cta-CNVQHLKs.mjs";
10
+ import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-C7E7Lyfa.mjs";
11
+ import { l as formatEventTeacherLine } from "./EventItem-sKBofjiW.mjs";
12
+ import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CNckKZct.mjs";
13
+ import { t as coerceRichTextDoc } from "./richText-coerce-Bcl3vTb4.mjs";
14
14
  import "react";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  import { z } from "zod";
@@ -255,6 +255,7 @@ const SYSTEM_BLOCK_KINDS = [
255
255
  "block.intro",
256
256
  "block.columns",
257
257
  "block.collection",
258
+ "block.class-prices",
258
259
  "block.feature-cards",
259
260
  "block.media-text",
260
261
  "block.cta-full",
@@ -434,6 +435,7 @@ const buttonEffectApplicationSchema = z.discriminatedUnion("effectId", [
434
435
  effectId: z.literal("pop"),
435
436
  options: z.strictObject({ intensity: z.enum([
436
437
  "subtle",
438
+ "gentle",
437
439
  "medium",
438
440
  "dramatic"
439
441
  ]).optional() }).optional()
@@ -584,7 +586,8 @@ const gradientDirectionSchema = z.enum([
584
586
  const buttonColourTreatmentSchema = z.discriminatedUnion("type", [
585
587
  z.strictObject({
586
588
  type: z.literal("solid"),
587
- colorToken: opaqueButtonColourTokenSchema
589
+ colorToken: opaqueButtonColourTokenSchema,
590
+ foregroundToken: opaqueButtonColourTokenSchema.optional()
588
591
  }),
589
592
  z.strictObject({
590
593
  type: z.literal("gradient"),
@@ -709,7 +712,10 @@ const buttonSystemSchema = z.strictObject({
709
712
  variants: z.array(buttonVariantSchema).min(1).max(6),
710
713
  sizes: buttonSizesSchema.optional(),
711
714
  surfacePolicy: buttonSurfacePolicySchema.optional(),
712
- surfaceContexts: z.record(z.string(), z.strictObject({ primary: opaqueButtonColourTokenSchema })).optional()
715
+ surfaceContexts: z.record(z.string(), z.strictObject({
716
+ primary: opaqueButtonColourTokenSchema,
717
+ primaryText: opaqueButtonColourTokenSchema.optional()
718
+ })).optional()
713
719
  }).superRefine((system, ctx) => {
714
720
  const seen = /* @__PURE__ */ new Set();
715
721
  system.variants.forEach((variant, index) => {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Ft as formatDate$1, Qt as parseBookingLocalDate, Yt as formatLocalScheduleDate, Zt as getLocalScheduleDate, qt as addLocalScheduleDays, rn as parseUtcIsoDateTimeString, tn as resolveBookingTimeZoneId, zt as formatTime$1 } from "./noop-poI1m2yW.mjs";
2
+ import { $t as parseBookingLocalDate, Bt as formatTime$1, It as formatDate$1, Jt as addLocalScheduleDays, Qt as getLocalScheduleDate, Xt as formatLocalScheduleDate, in as parseUtcIsoDateTimeString, nn as resolveBookingTimeZoneId } from "./noop-CamIX2yK.mjs";
3
3
  import { F as unsafeAsAppointmentResourceId, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
4
- import { n as useBlockApi } from "./context-Dzjv2CpA.mjs";
4
+ import { n as useBlockApi } from "./context-xNC1Cyjw.mjs";
5
5
  import { useCallback, useEffect, useReducer, useRef } from "react";
6
6
  //#region ../blocks/src/utils/date-formatting.ts
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
3
  import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
4
- import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-DPGZArG9.mjs";
4
+ import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-CmZLVXOy.mjs";
5
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
6
6
  import * as React$1 from "react";
7
7
  import { useCallback } from "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-DPGZArG9.mjs";
2
+ import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-CmZLVXOy.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Ct as eventPageOperationQuery, Dt as planEventPageOperation, Et as getEventPaginationView, Mt as normalizeCsvIds, Nt as normalizeCsvString, Ot as toEventPaginationLoadError, Pt as normalizeOptionalId, St as createInitialEventPaginationLoadState, Tt as getEventIdentity, jt as getEventRuntimeFiltersKey, kt as toError, wt as eventPaginationLoadReducer } from "./shop.interactive-C0IjiWOs.mjs";
3
- import { Gi as listItemPresentation, Oi as getBlockApiReadStage, qi as listLookSlot } from "./display-ChgDe9Da.mjs";
2
+ import { At as toEventPaginationLoadError, Dt as getEventIdentity, Et as eventPaginationLoadReducer, Ft as normalizeCsvString, It as normalizeOptionalId, Nt as getEventRuntimeFiltersKey, Ot as getEventPaginationView, Pt as normalizeCsvIds, Tt as eventPageOperationQuery, jt as toError, kt as planEventPageOperation, wt as createInitialEventPaginationLoadState } from "./shop.interactive-Bb67gPLL.mjs";
3
+ import { Ji as listLookSlot, Ki as listItemPresentation, ki as getBlockApiReadStage } from "./display-B5DfNb6A.mjs";
4
4
  import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
5
- import { n as useBlockApi } from "./context-Dzjv2CpA.mjs";
6
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
7
- import { r as EventItem } from "./EventItem-DKdZSW_R.mjs";
8
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BVoHnVZA.mjs";
5
+ import { n as useBlockApi } from "./context-xNC1Cyjw.mjs";
6
+ import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
7
+ import { r as EventItem } from "./EventItem-sKBofjiW.mjs";
8
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BZ4l_rmT.mjs";
9
9
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts