@riverbankcms/sdk 0.164.0 → 0.165.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 (198) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CubPwupc.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
  2. package/dist/_dts/{Page-CDzsagB2.d.ts → Page-D6gp2Ipb.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -71
  4. package/dist/_dts/{client-CbeYTSry.d.ts → client-BkkExozE.d.ts} +1 -1
  5. package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
  6. package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-XRXhbLWP.d.ts} +4 -4
  7. package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
  9. package/dist/_dts/{index-D_pQO-AS.d.ts → index-B4ozSzFP.d.ts} +35642 -35443
  10. package/dist/_dts/{index-DYQFmf--.d.ts → index-BdkHhyf8.d.ts} +1 -1
  11. package/dist/_dts/{index-BZE-1azr.d.ts → index-CQfJhOEA.d.ts} +2 -2
  12. package/dist/_dts/{index-BpEbwDM7.d.ts → index-CRRiddNp.d.ts} +4 -4
  13. package/dist/_dts/{index-CjdIn9-_.d.ts → index-C_3kdrUb.d.ts} +2 -2
  14. package/dist/_dts/{index-JS8WYgD3.d.ts → index-DAPTSmBM.d.ts} +401 -569
  15. package/dist/_dts/{index-DriYVLfT.d.ts → index-DKNEgSOS.d.ts} +2 -2
  16. package/dist/_dts/{index-wegfy7lf.d.ts → index-RXkE3a7M.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-B9vJMq3s.d.ts} +6 -6
  18. package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/index.d.ts +8 -8
  26. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  27. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  28. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  29. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  31. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  33. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  35. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  37. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  38. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  39. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  41. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  42. package/dist/_dts/sdk/src/server.d.ts +5 -5
  43. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  44. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  45. package/dist/_dts/{types-W40f2olO.d.ts → types-BDF73NzM.d.ts} +2 -2
  46. package/dist/_dts/{types-DiciZDrk.d.ts → types-Cl0nP6al.d.ts} +3 -3
  47. package/dist/_dts/{types-DubJnBnI.d.ts → types-mstFvhK4.d.ts} +7 -7
  48. package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-DVWqSvjK.d.ts} +4 -4
  49. package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
  50. package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
  51. package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
  52. package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
  53. package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
  54. package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
  55. package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
  56. package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
  57. package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -2
  58. package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-dILw2PN_.mjs} +11 -5
  59. package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
  60. package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
  61. package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
  62. package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +10 -10
  63. package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
  64. package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
  65. package/dist/client/{Page-Dub71o3c.mjs → Page-DUr2YhFR.mjs} +1521 -235
  66. package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-2fJqT_NR.mjs} +1 -1
  67. package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
  68. package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
  69. package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
  70. package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-Cfbo1bfh.mjs} +1 -1
  71. package/dist/client/{accordion-vCG_JC5t.mjs → accordion-3CYNWzTS.mjs} +1 -1
  72. package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
  73. package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-BSbWgLyx.mjs} +13 -13
  74. package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
  75. package/dist/client/bookings.mjs +5 -5
  76. package/dist/client/{carousel-FM1mkkL0.mjs → carousel-Cu5mcpO-.mjs} +2 -2
  77. package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
  78. package/dist/client/{cart-BDFhbh9j.mjs → cart-CDc6x9cR.mjs} +3 -3
  79. package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
  80. package/dist/client/{checkout-BibhwnTd.mjs → checkout-CkxPqSwD.mjs} +3 -3
  81. package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DJfomKQc.mjs} +1 -1
  82. package/dist/client/client.mjs +2 -2
  83. package/dist/client/{context-BNAM7NsW.mjs → context-CBV21-9L.mjs} +1 -1
  84. package/dist/client/{cta-ChiN1Vgg.mjs → cta-Bw-al3cs.mjs} +26 -2
  85. package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
  86. package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
  87. package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
  88. package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
  89. package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-QMqtIywj.mjs} +23 -14
  90. package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
  91. package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-BC7a709c.mjs} +4 -4
  92. package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-DL08GpUc.mjs} +2 -2
  93. package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-BfzuEQp_.mjs} +4 -4
  94. package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
  95. package/dist/client/{form-GXqjObPC.mjs → form-L-xZOBUS.mjs} +3 -3
  96. package/dist/client/{form.client-CoKNba2e.mjs → form.client-BtpK3TZW.mjs} +6 -6
  97. package/dist/client/{form.parts-magB_epJ.mjs → form.parts-Djos5Un4.mjs} +3 -3
  98. package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-DGmrm7YB.mjs} +1 -1
  99. package/dist/client/gifting/client.mjs +5 -5
  100. package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-f16OGkz-.mjs} +2 -2
  101. package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
  102. package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
  103. package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-DpHNZc7k.mjs} +8 -8
  104. package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-CLGH20PL.mjs} +2 -2
  105. package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
  106. package/dist/client/{noop-C2vZse15.mjs → noop-CQU7tiMg.mjs} +8 -4
  107. package/dist/client/portal/client.mjs +13 -13
  108. package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
  109. package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
  110. package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-BD42UOmG.mjs} +3 -3
  111. package/dist/client/{productList-Cc-PmbEe.mjs → productList-CSk8sXCl.mjs} +3 -3
  112. package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
  113. package/dist/client/{purchase-BMsWpx8y.mjs → purchase-BV5xfaZH.mjs} +1 -1
  114. package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CIKtTsCl.mjs} +189 -162
  115. package/dist/client/rendering/client.mjs +27 -27
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +7 -7
  118. package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-spWtx86G.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
  120. package/dist/client/{schema-DMUkBtIO.mjs → schema-BdSglH2X.mjs} +189 -20
  121. package/dist/client/{shop-DyXtB5TD.mjs → shop-DscvMz86.mjs} +3 -3
  122. package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
  124. package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-M3kNsVPi.mjs} +12 -12
  125. package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BGmkdIAZ.mjs} +251 -24
  126. package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-BdWp6LHa.mjs} +2 -2
  127. package/dist/client/{site-styles-BLHYJ8S7.mjs → site-styles-CWHmlVT5.mjs} +2612 -448
  128. package/dist/client/spam-protection.mjs +2 -2
  129. package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
  130. package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
  131. package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
  132. package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
  133. package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
  134. package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
  135. package/dist/client/{view-BnaOmrap.mjs → view-DXOuduIr.mjs} +4 -4
  136. package/dist/client/{view-vhKGFfC3.mjs → view-DlkCDfuN.mjs} +45 -32
  137. package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DManVJpc.mjs} +49 -39
  138. package/dist/preview-next/before-render.mjs +2 -2
  139. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
  140. package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
  141. package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
  142. package/dist/preview-next/client/{PreviewEditorSidebar-C3AQVxQt.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3566 -3197
  143. package/dist/preview-next/client/{PreviewEditorUI-C-1zDCR_.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-C6Rhm2NQ.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-B47yHFL0.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3811 -4882
  146. package/dist/preview-next/client/{siteStyleAccess-BiSyYyyr.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +8506 -13317
  147. package/dist/preview-next/client/{ThemedButton-g7NPrsGp.mjs → ThemedButton-Dc6aJ34Z.mjs} +214 -23
  148. package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
  149. package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
  150. package/dist/preview-next/client/{previewChromeSurface-Cjwxv90x.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
  151. package/dist/preview-next/client/{previewAuthStore-By_zfrS5.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +205988 -193500
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-BG2HYvQj.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
  154. package/dist/preview-next/keepAlive.mjs +3 -3
  155. package/dist/preview-next/middleware.mjs +2 -2
  156. package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-BBAJjFIz.mjs} +11 -8
  157. package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
  158. package/dist/preview-next/session.mjs +1 -1
  159. package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-ClFI3qpX.mjs} +4 -4
  160. package/dist/server/{bindings-BVJGgUT0.mjs → bindings-Bi8EoRZD.mjs} +2 -2
  161. package/dist/server/{client-CiKaE8ms.mjs → client-DfMDbZ41.mjs} +2 -2
  162. package/dist/server/config-validation.mjs +1 -1
  163. package/dist/server/config.mjs +2 -2
  164. package/dist/server/{effectiveNavLinkStyle-EDSdd_oK.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2353 -214
  165. package/dist/server/index.mjs +3 -3
  166. package/dist/server/{loadContent-BuintpdO.mjs → loadContent-dEEhQxL7.mjs} +4 -4
  167. package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
  168. package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-DBFBad8A.mjs} +2 -2
  169. package/dist/server/next/middleware.mjs +1 -1
  170. package/dist/server/next/revalidate.mjs +1 -1
  171. package/dist/server/next.mjs +11 -11
  172. package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
  173. package/dist/server/{overrides-DVemf-GV.mjs → overrides-DhF87Vsd.mjs} +294 -103
  174. package/dist/server/page-converter.mjs +1 -1
  175. package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-DaemmWQL.mjs} +1 -1
  176. package/dist/server/prebuild.mjs +1 -1
  177. package/dist/server/{prefetchBlockData-Bnbwoe5n.mjs → prefetchBlockData-FwcsT5H2.mjs} +293 -90
  178. package/dist/server/{publicProducts-D3Fc5TKk.mjs → publicProducts-Bz8loTRn.mjs} +13 -10
  179. package/dist/server/{registry-zjd1P2Dl.mjs → registry-Cdvz1OtL.mjs} +499 -374
  180. package/dist/server/rendering/server.mjs +4 -4
  181. package/dist/server/rendering.mjs +8 -8
  182. package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
  183. package/dist/server/routing.mjs +1 -1
  184. package/dist/server/{schema-BlTWmTSl.mjs → schema-uSA_x1Zh.mjs} +189 -20
  185. package/dist/server/server.mjs +3 -3
  186. package/dist/server/{site-styles-yHytcXIB.mjs → site-styles-CntHn2KI.mjs} +55 -30
  187. package/dist/server/{siteChromeOverlayClearance-D0uCNZ7E.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +2 -2
  188. package/dist/server/{src-cbbK3Bho.mjs → src-DsYPhTbs.mjs} +1009 -25
  189. package/dist/server/theme-bridge.mjs +1 -1
  190. package/dist/server/theme.mjs +1 -1
  191. package/dist/server/{themeAdmission-BdY8lP-K.mjs → themeAdmission-CSknYpxk.mjs} +2 -2
  192. package/dist/server/{validation-CGH-Xs4E.mjs → validation-DYxhLzqQ.mjs} +2 -2
  193. package/dist/server/{version-DoOG6F13.mjs → version-Beu4q-Gv.mjs} +1 -1
  194. package/dist/styles/index.css +914 -10
  195. package/package.json +1 -1
  196. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
  197. package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
  198. package/dist/server/loadPage-BwjncpJf.mjs +0 -2
@@ -1,12 +1,12 @@
1
- import { $n as getTextColorForBackground, $t as introCompositionTreatmentValues, An as serializeSurfaceTree, Cn as ok, Cr as surfaceInkStyle, Dr as mergeStyles, E as ICON_CONFIG, Et as renderableMediaAssetSchema, In as isCssColorLiteral, Ln as resolveOnColorForThemeToken, N as generateDefaultButtonSystem, On as parseSurfaceTree, Or as rgbColorValue, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Sn as err, Xt as featureCardCompositionTreatmentValues, dr as defaultThemeTokens, jr as parseThemeColorToken, kr as textColorStyle, rn as offeringsPreviewCompositionTreatmentValues, sn as testimonialsCompositionTreatmentValues, wr as backgroundColorStyle, wt as runtimeMediaSchema, zn as resolveTokenOrCssColorValue } from "./schema-BlTWmTSl.mjs";
2
- import { $ as RichText, $i as CANCELLED_SESSION_STATUS, $n as formBlockDefinition, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as publicEventPricingCurrency, An as FEATURE_CARD_ICON_TREATMENTS, Ar as isBlockButtonRole, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bn as teamMemberBiography, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseLocalScheduleTime, Cn as isEventFull, Cr as formEmbedFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toUtcIsoDateTimeString, Dn as blockBookingConsentSchema, Dr as ctaCopyFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as toScheduledBookingDateTime, En as publicEventsArraySchema, Er as testimonialsHeadingFragment, Fa as formatCurrencyAmount, Fn as composeHeaderSectionWrapperClassName, Fr as boxStyleClassNames, Ft as ThemedButton, Gr as el, H as eventCollectionHydrationSchema, Hn as readRuntimeNow, Ht as formatEventPriceAmount, I as eventListingBlockDefinition, Ia as parseCurrencyCode, In as markEditableSurfaceForwarding, Ir as normalizeBoxStylesBorder, It as ThemedButtonLink, J as CardListContentPart, Ji as chosenString, Jn as staticHeaderChromeRuntime, Jt as formatCalendarTitle, K as catalogueEventCardProps, Kr as when, Kt as eventDateOptions, L as buildEventListingInteractiveIslandProps, Li as PUBLIC_DOWNLOAD_MEDIA_TYPES, Ln as splitPositioningClasses, Lr as resolveCardRoleForBoxStyles, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingType, Mn as shouldReserveFeatureCardIconZone, Mr as bodyCopyFragment, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as resolveExactOrFreePriceDisplay, Nr as defineFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as formatBookingPriceDisplay, On as bookingConsentCarrierSchema, Or as heroCtaRowFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as resolvePricingOptionsPriceDisplay, Pi as bindingSchema, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as unavailableReadinessFact, Qt as formatEventDateParts, R as buildEventCollectionDisplay, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as parseBookingLocalDate, Sn as getEventAvailabilityStatus, Sr as singleButtonFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as toBookingTimeZone, Tn as groupPublicEventsByRun, Tr as testimonialsCarouselFragment, U as eventCollectionSourceSchemaShape, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Ut as formatEventPriceDisplay, V as eventCollectionDisplaySchemaShape, Vn as teamMemberCardBiography, Vt as formatEventPrice, Wr as ctaButton, Wt as buildCalendarViewport, X as resolveCardListSchedule, Xi as loadedReadinessFact, Xt as formatEventClockLabel, Y as CardListLeadDate, Yi as admitReadinessFacts, Yt as formatDate, Z as selectCardListPresentation, Zi as pageTemplateFromEntry, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _i as inlineTextToPlainText, _n as browserReadAuthoritySchema, _r as headingFragment, _t as previewStageSchema, a as normalizeLocationMapSource, ai as resolveBlockIconRenderValue, an as getLocalDateKey, ar as defineClientOwnedBlockRuntime, b as buildCheckoutInteractiveIslandProps, ba as getBookingLocalDateKey, bn as formatTotalCapacity, br as faqHeadingFragment, ca as decideLocationSourcePermission, ci as CircleMinusIcon, cn as formatDateKey, cr as listLookControl, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as FileArchiveIcon, dn as getWeekCalendarDayTuple, dr as resolvedItemSurfaceProps, dt as getCardOrientation, ea as nextLiveRunSessionStartMs, en as formatEventNextDateFact, er as buildFormInteractiveIslandProps, et as ImagePresets, f as giftingBlockDefinition, fi as FileAudioIcon, fn as getWeekCalendarDays, fr as itemRole, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDateTimeRange, gi as PlusIcon, gn as formatBookingSchedulePresentation, gr as richTextFragment, gt as bookingNowSchema, h as cartBlockDefinition, ha as formatDateRange, hi as MinusIcon, hn as resolveRuntimeEventDestination, hr as clsx, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as parseMailingListRuntimeContext, ii as parseBlockIconValue, in as resolveEventTimeZone, ir as createZodCodec, j as offeringsCatalogueShape, ja as publicEventPricingDisplay, jn as resolveFeatureCardGeneratedIconSizePx, jr as heroCopyFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as isPublicEventPricingOptionDisplayable, ki as parseFieldDefinitions, kn as blockBookingPaymentTermsSchema, kr as ctaRowFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, li as CirclePlusIcon, ln as getDayOfWeek, lr as listLookSlot, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, ma as formatDate$1, mi as FileTextIcon, mn as isToday, mr as Grid, mt as eventRegistrationBlockDefinition, na as resolveWholeSeriesBookingPhase, ni as runTransforms, nn as formatTime, nr as createInteractiveIslandCodec, o as resolveLocationMapLocation, oa as parseMailingListPlacementTargeting, oi as ArrowDownIcon, on as getLocalMinuteOfDay, or as defineProgressiveBlockRuntime, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pa as mapDrawingSchema, pi as FileSpreadsheetIcon, pn as isSameCalendarDay, q as listingEventCardProps, qt as eventLocalDateKey, r as normalizeBlockContent, ra as buildMailingListSignupBlockSourceRef, ri as buildGeneratedBlockIconRenderAssetLookupFromUnknown, rn as groupEventsByDate, rr as defineInteractiveIslandMetaKeys, s as newsletterSignupBlockDefinition, sa as sameMailingListPlacementTargeting, si as ChevronDownIcon, sn as addDays, sr as listItemPresentation, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as orderedLiveRunSessions, tn as formatEventTimeRange, tr as buildInteractiveIslandProps, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as normalizeLocationAddressText, ui as ClockIcon, un as getOrderedDayNames, ur as lookListPresentationSchemaShape, ut as sanitizeHref, v as shopBlockDefinition, va as compareLocalScheduleDates, vi as isInlineTextEmpty, vn as canJoinEventWaitlistOnAnyMode, vr as cardFragment, w as shopProductPresentation, wa as resolveBookingBusinessTimeZone, wn as blockSiteTermsSchema, wr as formCopyFragment, x as buildProductDetailInteractiveIslandProps, xa as getLocalScheduleDate, xn as getEventAvailability, xr as blogFeaturedPostFragment, y as buildCartInteractiveIslandProps, ya as formatBookingCompactEnglishTime, yi as parseInlineTextFromUnknown, yn as formatEventRemainingPlaces, yr as faqAccordionFragment, z as buildEventCollectionHydration, zn as parseTeamMemberSpecialties, zt as SpinnerNode } from "./registry-zjd1P2Dl.mjs";
1
+ import { Ar as textColorStyle, Bn as resolveTokenOrCssColorValue, Cn as err, Dt as renderableMediaAssetSchema, E as ICON_CONFIG, Ln as isCssColorLiteral, Mr as parseThemeColorToken, N as generateDefaultButtonSystem, Or as mergeStyles, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Rn as resolveOnColorForThemeToken, Tr as backgroundColorStyle, Tt as runtimeMediaSchema, Zt as featureCardCompositionTreatmentValues, cn as testimonialsCompositionTreatmentValues, en as introCompositionTreatmentValues, er as getTextColorForBackground, fr as defaultThemeTokens, in as offeringsPreviewCompositionTreatmentValues, jn as serializeSurfaceTree, kn as parseSurfaceTree, kr as rgbColorValue, wn as ok, wr as surfaceInkStyle } from "./schema-uSA_x1Zh.mjs";
2
+ import { $ as RichText, $i as pageTemplateFromEntry, $t as formatEventCompactDateRail, A as buildOfferingsCatalogueListing, Aa as formatBookingPriceDisplay, An as bookingConsentCarrierSchema, Ar as heroCtaRowFragment, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as getLocalScheduleDate, Cn as getEventAvailability, Cr as blogFeaturedPostFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toBookingTimeZone, Dn as groupPublicEventsByRun, Dr as testimonialsCarouselFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as resolveBookingBusinessTimeZone, En as blockSiteTermsSchema, Er as formCopyFragment, Fa as resolveExactOrFreePriceDisplay, Fr as defineFragment, Ft as ThemedButton, Gn as resolveDateRuntimeContext, Gr as resolveBackgroundColorValue, Gt as formatEventPriceDisplay, H as eventCollectionHydrationSchema, Hn as teamMemberBiography, Ht as weekColumnDays, I as eventListingBlockDefinition, Ia as resolvePricingOptionsPriceDisplay, Ii as bindingSchema, It as ThemedButtonLink, J as CardListContentPart, Jt as eventDateOptions, K as catalogueEventCardProps, Kr as ctaButton, Kt as buildCalendarViewport, L as buildEventListingInteractiveIslandProps, La as formatCurrencyAmount, Ln as composeHeaderSectionWrapperClassName, Lr as boxStyleClassNames, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingCurrency, Mn as FEATURE_CARD_ICON_TREATMENTS, Mr as isBlockButtonRole, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as publicEventPricingDisplay, Nn as resolveFeatureCardGeneratedIconSizePx, Nr as heroCopyFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as toScheduledBookingDateTime, On as publicEventsArraySchema, Or as testimonialsHeadingFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as publicEventPricingType, Pn as shouldReserveFeatureCardIconZone, Pr as bodyCopyFragment, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as loadedReadinessFact, Qt as formatEventClockLabel, R as buildEventCollectionDisplay, Ra as parseCurrencyCode, Rn as markEditableSurfaceForwarding, Rr as normalizeBoxStylesBorder, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as getBookingLocalDateKey, Sn as formatTotalCapacity, Sr as faqHeadingFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as parseLocalScheduleTime, Tn as isEventFull, Tr as formEmbedFragment, U as eventCollectionSourceSchemaShape, Un as teamMemberCardBiography, Ut as formatEventPrice, V as eventCollectionDisplaySchemaShape, Vn as parseTeamMemberSpecialties, Vt as eventListWeekDays, Wn as readRuntimeNow, Wt as formatEventPriceAmount, X as resolveCardListSchedule, Xi as chosenString, Xn as staticHeaderChromeRuntime, Xt as formatCalendarTitle, Y as CardListLeadDate, Yt as eventLocalDateKey, Z as selectCardListPresentation, Zi as admitReadinessFacts, Zt as formatDate, _ as productListBlockDefinition, _a as formatDateRange, _i as MinusIcon, _n as resolveRuntimeEventDestination, _r as clsx, _t as previewStageSchema, a as normalizeLocationMapSource, aa as buildMailingListSignupBlockSourceRef, ai as buildGeneratedBlockIconRenderAssetLookupFromUnknown, an as groupEventsByDate, ar as defineInteractiveIslandMetaKeys, b as buildCheckoutInteractiveIslandProps, ba as compareLocalScheduleDates, bi as isInlineTextEmpty, bn as canJoinEventWaitlistOnAnyMode, br as cardFragment, ca as parseMailingListPlacementTargeting, ci as ArrowDownIcon, cn as getLocalMinuteOfDay, cr as defineProgressiveBlockRuntime, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as CirclePlusIcon, dn as getDayOfWeek, dr as listLookSlot, dt as getCardOrientation, ea as unavailableReadinessFact, en as formatEventDateParts, et as ImagePresets, f as giftingBlockDefinition, fa as normalizeLocationAddressText, fi as ClockIcon, fn as getOrderedDayNames, fr as lookListPresentationSchemaShape, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDate$1, gi as FileTextIcon, gn as isToday, gr as Grid, gt as bookingNowSchema, h as cartBlockDefinition, ha as mapDrawingSchema, hi as FileSpreadsheetIcon, hn as isSameCalendarDay, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as resolveWholeSeriesBookingPhase, ii as when, in as formatTime, ir as createInteractiveIslandCodec, j as offeringsCatalogueShape, ja as isPublicEventPricingOptionDisplayable, ji as parseFieldDefinitions, jn as blockBookingPaymentTermsSchema, jr as ctaRowFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as toUtcIsoDateTimeString, kn as blockBookingConsentSchema, kr as ctaCopyFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, la as sameMailingListPlacementTargeting, li as ChevronDownIcon, ln as addDays, lr as listItemPresentation, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, mi as FileAudioIcon, mn as getWeekCalendarDays, mr as itemRole, mt as eventRegistrationBlockDefinition, na as nextLiveRunSessionStartMs, ni as runTransforms, nn as formatEventNextDateFact, nr as buildFormInteractiveIslandProps, o as resolveLocationMapLocation, oa as parseMailingListRuntimeContext, oi as parseBlockIconValue, on as resolveEventTimeZone, or as createZodCodec, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pi as FileArchiveIcon, pn as getWeekCalendarDayTuple, pr as resolvedItemSurfaceProps, q as listingEventCardProps, r as normalizeBlockContent, ra as orderedLiveRunSessions, ri as el, rn as formatEventTimeRange, rr as buildInteractiveIslandProps, s as newsletterSignupBlockDefinition, si as resolveBlockIconRenderValue, sn as getLocalDateKey, sr as defineClientOwnedBlockRuntime, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as CANCELLED_SESSION_STATUS, tn as formatEventHourLabel, tr as formBlockDefinition, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as decideLocationSourcePermission, ui as CircleMinusIcon, un as formatDateKey, ur as listLookControl, ut as sanitizeHref, v as shopBlockDefinition, va as formatDateTimeRange, vi as PlusIcon, vn as formatBookingSchedulePresentation, vr as richTextFragment, w as shopProductPresentation, wa as parseBookingLocalDate, wn as getEventAvailabilityStatus, wr as singleButtonFragment, x as buildProductDetailInteractiveIslandProps, xa as formatBookingCompactEnglishTime, xi as parseInlineTextFromUnknown, xn as formatEventRemainingPlaces, xr as faqAccordionFragment, y as buildCartInteractiveIslandProps, yi as inlineTextToPlainText, yn as browserReadAuthoritySchema, yr as headingFragment, z as buildEventCollectionHydration, zi as PUBLIC_DOWNLOAD_MEDIA_TYPES, zn as splitPositioningClasses, zr as resolveCardRoleForBoxStyles, zt as SpinnerNode } from "./registry-Cdvz1OtL.mjs";
3
3
  import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
4
- import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-BdY8lP-K.mjs";
5
- import { C as resolvePageRouteTarget, D as parseStoredVariant, E as toPresentationPage, S as resolveEntryRouteTarget, T as toEditorPresentationPage, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as buildPageRenderPlan, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-Bnbwoe5n.mjs";
6
- import { f as arrangementLookHooks, g as arrangementManifestFromVariants, v as resolveEffectiveArrangement } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
7
- import "./site-styles-yHytcXIB.mjs";
4
+ import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-CSknYpxk.mjs";
5
+ import { C as resolvePageRouteTarget, D as parseStoredVariant, E as createPresentationPageReader, S as resolveEntryRouteTarget, T as createEditorPresentationPageReader, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as createPageRenderPlanReader, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-FwcsT5H2.mjs";
6
+ import { _ as arrangementManifestFromVariants, p as arrangementLookHooks, y as resolveEffectiveArrangement } from "./effectiveNavLinkStyle-BHIYPVG1.mjs";
7
+ import "./site-styles-CntHn2KI.mjs";
8
8
  import { a as isRecord$4, i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
9
- import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-cbbK3Bho.mjs";
9
+ import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-DsYPhTbs.mjs";
10
10
  import { t as getAtPath } from "./src-Cxucn-1P.mjs";
11
11
  import { z } from "zod";
12
12
  import * as React$1 from "react";
@@ -451,6 +451,30 @@ function resolveEventCta(event, buttonText) {
451
451
  hidden: false
452
452
  };
453
453
  }
454
+ /**
455
+ * The CTA for a catalogue card that stands for a whole dated series. The card
456
+ * carries the next occurrence's capacity, but the visitor picks from the
457
+ * series' upcoming dates, so it says "Sold out" (or offers the waitlist) only
458
+ * when none of `upcomingDates` can be booked. The first date with places
459
+ * decides; failing that, the first full date with a waitlist; failing both,
460
+ * the next occurrence as {@link resolveEventCta} reads it. The link always
461
+ * goes to the series, never to the date that decided.
462
+ *
463
+ * Whole-series events share one run capacity, so they need no dates and read
464
+ * exactly as {@link resolveEventCta}; so does a dated series with none listed.
465
+ */
466
+ function resolveDatedSeriesCta(series, upcomingDates, buttonText) {
467
+ const deciding = series.bookingScope === "single_occurrence" ? upcomingDates.find((date) => isOpenForBooking(date) && !isEventFull(date)) ?? upcomingDates.find((date) => isOpenForBooking(date) && isEventFull(date) && canJoinEventWaitlistOnAnyMode(date)) : void 0;
468
+ if (!deciding) return resolveEventCta(series, buttonText);
469
+ return {
470
+ ...resolveEventCta(deciding, buttonText),
471
+ href: resolveEventHref(series),
472
+ external: resolveRuntimeEventDestination(series).kind === "external"
473
+ };
474
+ }
475
+ function isOpenForBooking(event) {
476
+ return event.bookingAvailability.kind !== "closed";
477
+ }
454
478
  //#endregion
455
479
  //#region ../calendar/src/lane-packing.ts
456
480
  /**
@@ -1283,6 +1307,12 @@ const eventItemParts = {
1283
1307
  "description",
1284
1308
  "action"
1285
1309
  ],
1310
+ "week-columns": [
1311
+ "time",
1312
+ "title",
1313
+ "meta",
1314
+ "places"
1315
+ ],
1286
1316
  grid: [
1287
1317
  "image",
1288
1318
  "date",
@@ -1394,7 +1424,7 @@ function renderCalendarTrailingParts(props, parts, renderPart) {
1394
1424
  }) : content;
1395
1425
  }
1396
1426
  function eventItemTag(arrangement) {
1397
- return arrangement === "ledger" || arrangement === "day-groups" ? "li" : "article";
1427
+ return arrangement === "ledger" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
1398
1428
  }
1399
1429
  function renderEventItemContentPart({ part, props, facts }) {
1400
1430
  switch (part) {
@@ -1876,7 +1906,7 @@ function eventCardCategoryBadge(category) {
1876
1906
  *
1877
1907
  * This component is server-safe (uses no client APIs like Intl).
1878
1908
  */
1879
- const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, itemSurfaces, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext }) => {
1909
+ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, itemSurfaces, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext, upcomingDates }) => {
1880
1910
  const { presentationClass, cardHeadingLevel, formattedDate, formattedTime, cta, cardClass, title, summary, image, category, categoryBadge, hasImage, dateFact, priceText, teacherLine, capacityText, orientationClass } = eventCardFacts({
1881
1911
  event,
1882
1912
  presentation,
@@ -1886,7 +1916,8 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
1886
1916
  showCategory,
1887
1917
  showImage,
1888
1918
  showCapacity,
1889
- orientation
1919
+ orientation,
1920
+ upcomingDates
1890
1921
  });
1891
1922
  return /* @__PURE__ */ jsxs("article", {
1892
1923
  ...listLookSlot({
@@ -2155,13 +2186,13 @@ function EventLookDate({ event, ...presentation }) {
2155
2186
  })]
2156
2187
  });
2157
2188
  }
2158
- function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation }) {
2189
+ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation, upcomingDates }) {
2159
2190
  const { presentation: cardPresentation, presentationClass, headingLevel: cardHeadingLevel } = resolveEventCardOptions({
2160
2191
  presentation,
2161
2192
  headingLevel
2162
2193
  });
2163
2194
  const { formattedDate, formattedTime } = formatEventCardWhen(event);
2164
- const cta = resolveEventCta(event, buttonText);
2195
+ const cta = resolveDatedSeriesCta(event, upcomingDates ?? [], buttonText);
2165
2196
  const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
2166
2197
  const title = event.title;
2167
2198
  const summary = event.presentation?.summary ?? event.description;
@@ -5129,7 +5160,7 @@ function isValidOccurrence(value) {
5129
5160
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
5130
5161
  /** Live offering data only; editorial cards never acquire booking fields. */
5131
5162
  function eventCardListContent(event, context, buttonText) {
5132
- const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering");
5163
+ const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering", context.kind === "offering" ? context.upcomingDates ?? [] : []);
5133
5164
  switch (context.kind) {
5134
5165
  case "event-details": return {
5135
5166
  ...content,
@@ -5148,8 +5179,8 @@ function eventCardListContent(event, context, buttonText) {
5148
5179
  default: return assertNever$1(context);
5149
5180
  }
5150
5181
  }
5151
- function cardProjectionBase(event, buttonText, offering) {
5152
- const cta = offeringCardCta(event, buttonText, offering);
5182
+ function cardProjectionBase(event, buttonText, offering, upcomingDates) {
5183
+ const cta = offeringCardCta(event, buttonText, offering, upcomingDates);
5153
5184
  const places = offeringAvailability(event);
5154
5185
  return {
5155
5186
  external: cta.external,
@@ -5259,8 +5290,8 @@ function offeringFacts(event, places, offering) {
5259
5290
  }]
5260
5291
  ];
5261
5292
  }
5262
- function offeringCardCta(event, buttonText, offering) {
5263
- return resolveEventCta(event, offering && event.destination.kind === "external" ? void 0 : buttonText);
5293
+ function offeringCardCta(event, buttonText, offering, upcomingDates) {
5294
+ return resolveDatedSeriesCta(event, upcomingDates, offering && event.destination.kind === "external" ? void 0 : buttonText);
5264
5295
  }
5265
5296
  function offeringTypeChips(event, typeLabel) {
5266
5297
  return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
@@ -5329,26 +5360,39 @@ function EventHeader({ selection, presentation, showCost }) {
5329
5360
  });
5330
5361
  return /* @__PURE__ */ jsxs("header", {
5331
5362
  ...listLookSlot(presentation, "frame"),
5332
- children: [/* @__PURE__ */ jsxs("div", {
5333
- ...listLookSlot(presentation, "copy"),
5334
- children: [
5335
- part("chips"),
5336
- /* @__PURE__ */ jsx("h1", {
5337
- ...listLookSlot(presentation, "headline"),
5338
- children: item.title
5339
- }),
5340
- item.text ? /* @__PURE__ */ jsx("p", {
5341
- ...listLookSlot(presentation, "lede"),
5342
- children: item.text
5343
- }) : null,
5344
- /* @__PURE__ */ jsx("div", {
5345
- "aria-label": "At a glance",
5346
- children: part("facts")
5347
- }),
5348
- part("availability"),
5349
- part("action")
5350
- ]
5351
- }), part("numeral")]
5363
+ children: [
5364
+ item.media ? /* @__PURE__ */ jsx("figure", {
5365
+ ...listLookSlot(presentation, "item-media"),
5366
+ children: /* @__PURE__ */ jsx(MediaNodeServer, {
5367
+ value: item.media,
5368
+ size: ImagePresets.full,
5369
+ loading: "eager",
5370
+ fetchPriority: "high",
5371
+ ...listLookSlot(presentation, "photo")
5372
+ })
5373
+ }) : null,
5374
+ /* @__PURE__ */ jsxs("div", {
5375
+ ...listLookSlot(presentation, "copy"),
5376
+ children: [
5377
+ part("chips"),
5378
+ /* @__PURE__ */ jsx("h1", {
5379
+ ...listLookSlot(presentation, "headline"),
5380
+ children: item.title
5381
+ }),
5382
+ item.text ? /* @__PURE__ */ jsx("p", {
5383
+ ...listLookSlot(presentation, "lede"),
5384
+ children: item.text
5385
+ }) : null,
5386
+ /* @__PURE__ */ jsx("div", {
5387
+ "aria-label": "At a glance",
5388
+ children: part("facts")
5389
+ }),
5390
+ part("availability"),
5391
+ part("action")
5392
+ ]
5393
+ }),
5394
+ part("numeral")
5395
+ ]
5352
5396
  });
5353
5397
  }
5354
5398
  //#endregion
@@ -6107,10 +6151,22 @@ function buildLoadedOfferingsPreviewListing(input) {
6107
6151
  }
6108
6152
  //#endregion
6109
6153
  //#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
6154
+ /**
6155
+ * The upcoming dates a dated series' card lists: its next three live
6156
+ * occurrences from the block's one occurrence batch. The date rows and the
6157
+ * card's own booking button both read from this, so they can't disagree.
6158
+ */
6159
+ function upcomingOccurrencesBySeries(events, now) {
6160
+ const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
6161
+ return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3)]));
6162
+ }
6110
6163
  /** One occurrence batch supplies every occurrence-targeted card in the block. */
6111
6164
  function offeringDatesBySeries(events, now, booking) {
6112
- const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
6113
- return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, booking))]));
6165
+ return offeringDateRowsBySeries(upcomingOccurrencesBySeries(events, now), booking);
6166
+ }
6167
+ /** Date rows for occurrences already chosen by {@link upcomingOccurrencesBySeries}. */
6168
+ function offeringDateRowsBySeries(upcoming, booking) {
6169
+ return new Map([...upcoming].map(([seriesId, occurrences]) => [seriesId, occurrences.map((event) => offeringDateRow(event, event, booking))]));
6114
6170
  }
6115
6171
  /** Whole-series sessions share the run-level booking capacity, by contract. */
6116
6172
  function offeringRunDates(event, now) {
@@ -6242,25 +6298,31 @@ function renderOfferingsCatalogueGroups({ props, groups, shape }) {
6242
6298
  }
6243
6299
  function renderCatalogueItems({ props, items, shape, groupTitle }) {
6244
6300
  const events = items.map((item) => item.kind === "event" ? item.event : item.run.representative);
6245
- if (props.lookSlots) {
6246
- const now = props.now;
6247
- const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
6248
- return CardListItems({
6249
- Carousel: props.Carousel,
6250
- Title: shape === "single" ? "h3" : "h4",
6251
- presentation: props,
6252
- items: items.map((item) => catalogueCardContent(item, now, dates, shape === "single" ? groupTitle : void 0))
6253
- });
6254
- }
6301
+ const dates = catalogueDates(props.quickDateEvents ?? [], props.now, shape, props.pathname);
6302
+ if (props.lookSlots) return CardListItems({
6303
+ Carousel: props.Carousel,
6304
+ Title: shape === "single" ? "h3" : "h4",
6305
+ presentation: props,
6306
+ items: items.map((item) => catalogueCardContent(item, props.now, dates, shape === "single" ? groupTitle : void 0))
6307
+ });
6255
6308
  return /* @__PURE__ */ jsx("div", {
6256
6309
  className: "rb-grid rb-gap-6",
6257
6310
  style: { gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 18rem), 1fr))" },
6258
6311
  children: events.map((event) => /* @__PURE__ */ jsx(EventCard, {
6259
6312
  event,
6313
+ upcomingDates: dates.upcoming.get(event.seriesId),
6260
6314
  ...catalogueEventCardProps(event, props.buttonVariant ?? "primary")
6261
6315
  }, event.seriesId))
6262
6316
  });
6263
6317
  }
6318
+ /** The listed dates and their rows, from one reading so the button and the rows agree. */
6319
+ function catalogueDates(events, now, shape, pathname) {
6320
+ const upcoming = upcomingOccurrencesBySeries(events, now);
6321
+ return {
6322
+ upcoming,
6323
+ rows: offeringDateRowsBySeries(upcoming, catalogueDateBooking(shape, pathname))
6324
+ };
6325
+ }
6264
6326
  function catalogueCardContent(item, now, dates, typeLabel) {
6265
6327
  const event = item.kind === "event" ? item.event : item.run.representative;
6266
6328
  return {
@@ -6268,9 +6330,10 @@ function catalogueCardContent(item, now, dates, typeLabel) {
6268
6330
  kind: "offering",
6269
6331
  now,
6270
6332
  nextStartMs: item.nextStartMs,
6271
- typeLabel
6333
+ typeLabel,
6334
+ upcomingDates: dates.upcoming.get(event.seriesId)
6272
6335
  }, catalogueEventCardProps(event).buttonText),
6273
- dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.get(event.seriesId)
6336
+ dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.rows.get(event.seriesId)
6274
6337
  };
6275
6338
  }
6276
6339
  function renderCatalogueEmpty({ props, failed }) {
@@ -6285,7 +6348,7 @@ function renderCatalogueEmpty({ props, failed }) {
6285
6348
  });
6286
6349
  }
6287
6350
  function renderCatalogueMergedList({ props, listing, now, shape }) {
6288
- const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
6351
+ const dates = catalogueDates(props.quickDateEvents ?? [], now, shape, props.pathname);
6289
6352
  const items = listing.items.map(({ item, group }) => catalogueCardContent(item, now, dates, group.singularLabel));
6290
6353
  return /* @__PURE__ */ jsxs("div", {
6291
6354
  ...listLookSlot(props, "layout"),
@@ -7986,7 +8049,11 @@ function EventListBody({ display, renderEventCard, footer }) {
7986
8049
  className: display.containerClass,
7987
8050
  children: display.events.map(renderEventCard)
7988
8051
  });
7989
- if (display.listLayout === "day-groups") return /* @__PURE__ */ jsx("ol", {
8052
+ if (display.listLayout === "week-columns" && display.week !== void 0) return /* @__PURE__ */ jsx(WeekColumns, {
8053
+ display,
8054
+ week: display.week
8055
+ });
8056
+ if (display.listLayout === "day-groups" || display.listLayout === "week-columns") return /* @__PURE__ */ jsx("ol", {
7990
8057
  ...listLookSlot(display, "list"),
7991
8058
  children: display.events.filter((event, index, events) => events.findIndex((candidate) => eventLocalDateKey(candidate) === eventLocalDateKey(event)) === index).map((first) => {
7992
8059
  const date = formatEventCompactDateRail(first.startsAt, eventDateOptions(first), "as-written");
@@ -8043,6 +8110,45 @@ function EventListBody({ display, renderEventCard, footer }) {
8043
8110
  children: display.events.map(renderEventCard)
8044
8111
  });
8045
8112
  }
8113
+ /** All seven days of the shown week; a day known to be empty says so, and a wholly empty week never reaches here. */
8114
+ function WeekColumns({ display, week }) {
8115
+ const todayMark = display.itemSurfaces?.today;
8116
+ return /* @__PURE__ */ jsx("ol", {
8117
+ ...listLookSlot(display, "list"),
8118
+ children: weekColumnDays(week, display.events, display.allLoaded === true).map((day) => /* @__PURE__ */ jsxs("li", {
8119
+ ...listLookSlot(display, "group"),
8120
+ ...day.isToday ? { "data-today": "true" } : {},
8121
+ children: [/* @__PURE__ */ jsxs("h3", {
8122
+ ...listLookSlot(display, "group-label"),
8123
+ children: [
8124
+ /* @__PURE__ */ jsxs("span", {
8125
+ ...listLookSlot(display, "group-day"),
8126
+ children: [/* @__PURE__ */ jsx("span", {
8127
+ "aria-hidden": "true",
8128
+ children: day.label.weekday
8129
+ }), /* @__PURE__ */ jsx("span", {
8130
+ className: "rb-sr-only",
8131
+ children: day.label.fullWeekday
8132
+ })]
8133
+ }),
8134
+ " ",
8135
+ /* @__PURE__ */ jsx("span", {
8136
+ ...listLookSlot(display, "group-date"),
8137
+ ...day.isToday && todayMark !== void 0 && display.lookSlots?.["group-date"] !== void 0 ? resolvedItemSurfaceProps(todayMark, "group-date") : {},
8138
+ children: day.label.day
8139
+ })
8140
+ ]
8141
+ }), day.sessions.kind === "some" ? /* @__PURE__ */ jsx("ol", { children: day.sessions.events.map((event) => /* @__PURE__ */ jsx(EventItem, {
8142
+ ...listItemPresentation(display, display.events.indexOf(event), display.events.length),
8143
+ event,
8144
+ arrangement: "week-columns"
8145
+ }, event.occurrenceId || event.id)) }) : day.sessions.kind === "none" ? /* @__PURE__ */ jsx("p", {
8146
+ ...listLookSlot(display, "group-empty"),
8147
+ children: "Nothing on"
8148
+ }) : null]
8149
+ }, day.dateKey))
8150
+ });
8151
+ }
8046
8152
  function hasArrangementPanel(display) {
8047
8153
  return display.state === "ready" && display.lookSlots !== void 0 && display.listLayout === "compact";
8048
8154
  }
@@ -8719,13 +8825,19 @@ function renderCombinedSsr(display, prefetchedEvents) {
8719
8825
  });
8720
8826
  }
8721
8827
  function renderListSsr(display, hydration) {
8722
- const listDisplay = buildEventCalendarListingDisplay(display, hydration.prefetchedEvents);
8723
- return /* @__PURE__ */ jsxs(Fragment, { children: [display.listBy === "week" ? /* @__PURE__ */ jsx(EventListWeekNavigation, {
8828
+ const { initialToday, timeZone } = hydration.calendarContext;
8829
+ const week = display.listBy === "week" ? buildEventListWeek(initialToday, display.startOfWeek, timeZone) : null;
8830
+ const listing = buildEventCalendarListingDisplay(display, hydration.prefetchedEvents);
8831
+ const listDisplay = week === null ? listing : {
8832
+ ...listing,
8833
+ week: eventListWeekDays(week, initialToday, timeZone)
8834
+ };
8835
+ return /* @__PURE__ */ jsxs(Fragment, { children: [week !== null ? /* @__PURE__ */ jsx(EventListWeekNavigation, {
8724
8836
  ...display,
8725
- title: buildEventListWeek(hydration.calendarContext.initialToday, display.startOfWeek, hydration.calendarContext.timeZone).title
8837
+ title: week.title
8726
8838
  }) : null, /* @__PURE__ */ jsx(EventListingFrameView, {
8727
8839
  display: listDisplay,
8728
- emptyState: display.listBy === "week" && display.lookSlots !== void 0 ? /* @__PURE__ */ jsx(EventListWeekEmptyState, {
8840
+ emptyState: week !== null && display.lookSlots !== void 0 ? /* @__PURE__ */ jsx(EventListWeekEmptyState, {
8729
8841
  ...display,
8730
8842
  nextWeek: {}
8731
8843
  }) : void 0,
@@ -10240,6 +10352,47 @@ function derivePreviewLinkedEntryFieldBinding(node, parsedBinding, context) {
10240
10352
  function stripNumericPathSegments(path) {
10241
10353
  return path.split(".").filter((segment) => !/^\d+$/.test(segment)).join(".");
10242
10354
  }
10355
+ const lookOwnedPathCache = /* @__PURE__ */ new WeakMap();
10356
+ function lookOwnedPathsOf(content) {
10357
+ if (!isPlainObject(content)) return [];
10358
+ const cached = lookOwnedPathCache.get(content);
10359
+ if (cached) return cached;
10360
+ const value = content._lookOwnedPaths;
10361
+ const paths = Array.isArray(value) ? value.filter((path) => typeof path === "string") : [];
10362
+ lookOwnedPathCache.set(content, paths);
10363
+ return paths;
10364
+ }
10365
+ /**
10366
+ * Under an arrangement Look, the render plan has already removed the owner's
10367
+ * values for presentation the Look owns, and lists those field paths. A binding
10368
+ * on one of them skips its own default, so the Look decides: its CSS, or a
10369
+ * value the Look wrote itself (the crop its shape knob implies). Transforms
10370
+ * still run, which keeps the base classes they compose. Older styles list none
10371
+ * and bind as before.
10372
+ */
10373
+ function readsLookOwnedField(fromPath, context) {
10374
+ const owned = lookOwnedPathsOf(context.viewModel.content);
10375
+ if (owned.length === 0) return false;
10376
+ const segments = contentFieldSegments(fromPath, context);
10377
+ if (!segments) return false;
10378
+ const path = segments.filter((segment) => typeof segment === "string").join(".");
10379
+ return owned.some((ownedPath) => path === ownedPath || path.startsWith(`${ownedPath}.`));
10380
+ }
10381
+ /** The block-content path a binding reads, or undefined when it reads something else. */
10382
+ function contentFieldSegments(fromPath, context) {
10383
+ const [first, ...rest] = splitPath(fromPath);
10384
+ if (typeof first !== "string" || first === "$root") return void 0;
10385
+ if (first === "content") return rest;
10386
+ const named = [...context.scopes].reverse().find((entry) => entry.name === first);
10387
+ if (named) return scopedContentSegments(named, rest);
10388
+ const innermost = [...context.scopes].reverse().find((entry) => isPlainObject(entry.value) || Array.isArray(entry.value));
10389
+ if (!innermost || first in context.viewModel) return void 0;
10390
+ return innermost.name === "content" ? [first, ...rest] : scopedContentSegments(innermost, [first, ...rest]);
10391
+ }
10392
+ function scopedContentSegments(scope, rest) {
10393
+ const [root, ...base] = scope.basePathSegments ?? [];
10394
+ return root === "content" ? [...base, ...rest] : void 0;
10395
+ }
10243
10396
  /**
10244
10397
  * Resolves a binding path to absolute segments for editor/media metadata injection.
10245
10398
  *
@@ -10515,6 +10668,12 @@ function previewAuthoringFieldsEqual(left, right) {
10515
10668
  * @internal Exported for testing
10516
10669
  */
10517
10670
  function resolveBindingValue(binding, context) {
10671
+ return resolveReadBindingValue(readsLookOwnedField(binding.from, context) ? {
10672
+ ...binding,
10673
+ fallback: void 0
10674
+ } : binding, context);
10675
+ }
10676
+ function resolveReadBindingValue(binding, context) {
10518
10677
  const fullPath = binding.from;
10519
10678
  const segments = splitPath(fullPath);
10520
10679
  if (!segments.length) return void 0;
@@ -11264,10 +11423,19 @@ function prepareDefaultBlockRender(manifest, props) {
11264
11423
  fieldConstraints: buildPreviewFieldConstraints(manifest)
11265
11424
  };
11266
11425
  }
11426
+ const blockComponentCache = /* @__PURE__ */ new WeakMap();
11427
+ /** One React component type per manifest, shared by page and standalone rendering. */
11267
11428
  function makeDefaultBlockComponent(args) {
11429
+ const cached = blockComponentCache.get(args.manifest);
11430
+ if (cached) return cached;
11431
+ const component = createDefaultBlockComponent(args.manifest);
11432
+ blockComponentCache.set(args.manifest, component);
11433
+ return component;
11434
+ }
11435
+ function createDefaultBlockComponent(manifest) {
11268
11436
  return function DefaultBlockComponent(props) {
11269
11437
  const perf = beginBlockRenderMeasurement();
11270
- const prepared = prepareDefaultBlockRender(args.manifest, props);
11438
+ const prepared = prepareDefaultBlockRender(manifest, props);
11271
11439
  const result = resolveTree(prepared.layout, {
11272
11440
  registry: prepared.registry,
11273
11441
  viewModel: prepared.viewModel,
@@ -11291,8 +11459,8 @@ function makeDefaultBlockComponent(args) {
11291
11459
  reportSlowBlockRender(perf, {
11292
11460
  content: props.content,
11293
11461
  blockId: props.blockId,
11294
- blockKind: props.blockKind ?? args.manifest.name,
11295
- manifestName: args.manifest.name
11462
+ blockKind: props.blockKind ?? manifest.name,
11463
+ manifestName: manifest.name
11296
11464
  });
11297
11465
  return result;
11298
11466
  };
@@ -11580,6 +11748,7 @@ function blockBoundaryReserves(input) {
11580
11748
  return {
11581
11749
  topPlacement: top?.placement,
11582
11750
  bottomPlacement: bottom?.placement,
11751
+ fieldSeam: input.before?.fieldsMeet ? "top" : void 0,
11583
11752
  style: top || bottom ? style : void 0
11584
11753
  };
11585
11754
  }
@@ -11600,6 +11769,16 @@ function pageBlockPosition(index, blockCount) {
11600
11769
  }
11601
11770
  //#endregion
11602
11771
  //#region ../blocks/src/pageRendererContracts.ts
11772
+ /** Loader provenance gates admission; block rendering reads its own resolved data and shared runtime. */
11773
+ function sameBlockRenderDataContext(previous, current, blockId) {
11774
+ if (previous === current) return true;
11775
+ if (!previous || !current) return false;
11776
+ const keys = Object.keys(previous).filter(isSharedRenderContextKey);
11777
+ return keys.length === Object.keys(current).filter(isSharedRenderContextKey).length && keys.every((key) => Object.prototype.hasOwnProperty.call(current, key) && Object.is(Reflect.get(previous, key), Reflect.get(current, key))) && (!blockId || previous.resolvedData?.[blockId] === current.resolvedData?.[blockId]);
11778
+ }
11779
+ function isSharedRenderContextKey(key) {
11780
+ return key !== "resolvedData" && key !== "prefetchedBlockData" && key !== "loaderSnapshot";
11781
+ }
11603
11782
  function buildPageRendererRootRuntime(dataContext) {
11604
11783
  const { siteId = null, siteName, pageId = null, pathname = null, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
11605
11784
  return {
@@ -11931,26 +12110,32 @@ function planNewsletterPreviewSubmission(placement) {
11931
12110
  }
11932
12111
  //#endregion
11933
12112
  //#region ../blocks/src/pageRenderPreparation.ts
11934
- /**
11935
- * Stage two of the render plan.
11936
- *
11937
- * `buildPageRenderPlan` decides everything knowable from the page and the block
11938
- * registries. This pass decides everything knowable once the *render* inputs are
11939
- * in scope — routes, resolved data, theme resources — which is where content
11940
- * parsing, link hydration and data resolution can throw.
11941
- *
11942
- * Why a second stage rather than folding `render-threw` into `buildPageRenderPlan`
11943
- * with the other three reasons: the work that throws reads `dataContext`,
11944
- * `routeMap` and `themeResources`, none of which are plan inputs. Adding them
11945
- * would make every plan entry a fresh object on every render whose `dataContext`
11946
- * identity changed, and entry identity is exactly what `MemoBlockSection`'s
11947
- * comparator uses to skip a block subtree. So the decision moves as early as its
11948
- * inputs allow — before any wrapper markup exists — and no earlier.
11949
- *
11950
- * Pure, and memoised by the caller. Failures come back as data so the logging
11951
- * stays at the edge (decision D3), matching `buildPageRenderPlan`.
11952
- */
11953
- function preparePageRender(input) {
12113
+ /** Reuse block preparation while keeping survivor/adjacency decisions page-wide. */
12114
+ function createPageRenderPreparationReader() {
12115
+ const memo = { current: null };
12116
+ return (input) => {
12117
+ memo.current = preparePageRenderEntries(input, memo.current);
12118
+ return memo.current.preparation;
12119
+ };
12120
+ }
12121
+ function preparePageRenderEntries(input, previous = null) {
12122
+ const admission = preparationAdmission(input);
12123
+ const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
12124
+ const entries = prepared.map(([, value]) => value);
12125
+ const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
12126
+ const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
12127
+ return {
12128
+ input,
12129
+ byEntry: new Map(prepared),
12130
+ preparation: {
12131
+ entries: survivors,
12132
+ constructionFailures,
12133
+ joins: composeSurvivorJoins(input.plan, survivors, input.themeResources)
12134
+ }
12135
+ };
12136
+ }
12137
+ /** Admission always sees current loader provenance, even when block preparation can be reused. */
12138
+ function preparationAdmission(input) {
11954
12139
  const facts = readinessFactsFromLoaders("published", {
11955
12140
  prefetched: input.dataContext?.prefetchedBlockData,
11956
12141
  previewStage: input.dataContext?.previewStage,
@@ -11958,15 +12143,19 @@ function preparePageRender(input) {
11958
12143
  template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
11959
12144
  });
11960
12145
  const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
11961
- const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
11962
- const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
11963
- const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
11964
12146
  return {
11965
- entries: survivors,
11966
- constructionFailures,
11967
- joins: composeSurvivorJoins(input.plan, survivors, input.themeResources)
12147
+ permission,
12148
+ entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
11968
12149
  };
11969
12150
  }
12151
+ function readPreparedPlanEntry(entry, input, previous, permission) {
12152
+ const cached = previous?.byEntry.get(entry);
12153
+ if (cached && previous && samePreparationSettings(previous.input, input) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id)) return cached;
12154
+ return preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission));
12155
+ }
12156
+ function samePreparationSettings(previous, current) {
12157
+ return previous.audience === current.audience && previous.routeMap === current.routeMap && previous.themeResources === current.themeResources && previous.imageResolveContext === current.imageResolveContext;
12158
+ }
11970
12159
  /** Source availability is decided before constructing the block or its hydration props. */
11971
12160
  function prepareSourceEntry(entry, input, permission) {
11972
12161
  if (!isPublicSourcePermitted(entry, permission)) return {
@@ -12057,7 +12246,7 @@ function buildPreparedContent(entry, content, input) {
12057
12246
  return {
12058
12247
  kind: "content",
12059
12248
  baseProps: preparedBlockProps(entry, hydratedContent, resolved, input),
12060
- component: entry.override ? void 0 : getCachedBlockComponent(entry.definition.manifest),
12249
+ component: entry.override ? void 0 : makeDefaultBlockComponent({ manifest: entry.definition.manifest }),
12061
12250
  hasResolvedData: !!resolved && typeof resolved === "object" && Object.keys(resolved).length > 0,
12062
12251
  routes
12063
12252
  };
@@ -12139,14 +12328,6 @@ function blockSubjectProps(dataContext) {
12139
12328
  subject: dataContext?.subject ?? null
12140
12329
  };
12141
12330
  }
12142
- const blockComponentCache = /* @__PURE__ */ new WeakMap();
12143
- function getCachedBlockComponent(manifest) {
12144
- const cached = blockComponentCache.get(manifest);
12145
- if (cached) return cached;
12146
- const created = makeDefaultBlockComponent({ manifest });
12147
- blockComponentCache.set(manifest, created);
12148
- return created;
12149
- }
12150
12331
  function arrangementResolvedData(kind, content, data) {
12151
12332
  if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
12152
12333
  return {
@@ -12297,7 +12478,8 @@ const BlockErrorBoundary = createBlockErrorBoundary();
12297
12478
  //#endregion
12298
12479
  //#region ../blocks/src/PageRenderer.tsx
12299
12480
  function PageRenderer$1(props) {
12300
- const page = React$1.useMemo(() => toPresentationPage(props.page), [props.page]);
12481
+ const readPage = React$1.useMemo(createPresentationPageReader, []);
12482
+ const page = React$1.useMemo(() => readPage(props.page), [props.page, readPage]);
12301
12483
  return /* @__PURE__ */ jsx(PageRendererCore, { ...usePageDateRuntime({
12302
12484
  ...props,
12303
12485
  page,
@@ -12305,7 +12487,8 @@ function PageRenderer$1(props) {
12305
12487
  }) });
12306
12488
  }
12307
12489
  function EditorPageRenderer$1(props) {
12308
- const page = React$1.useMemo(() => toEditorPresentationPage(props.page), [props.page]);
12490
+ const readPage = React$1.useMemo(createEditorPresentationPageReader, []);
12491
+ const page = React$1.useMemo(() => readPage(props.page), [props.page, readPage]);
12309
12492
  const { previewAs, ...rendererProps } = props;
12310
12493
  return /* @__PURE__ */ jsx(PageRendererCore, { ...usePageDateRuntime({
12311
12494
  ...rendererProps,
@@ -12322,12 +12505,13 @@ function PageRendererCore(props) {
12322
12505
  dataContext?.supabaseUrl
12323
12506
  ]);
12324
12507
  const plan = usePageRenderPlan(props);
12508
+ const readPreparation = React$1.useMemo(createPageRenderPreparationReader, []);
12325
12509
  const themeResources = React$1.useMemo(() => resolvePageThemeResources(props), [
12326
12510
  props.rendering,
12327
12511
  props.theme,
12328
12512
  props.themeTokens
12329
12513
  ]);
12330
- const preparation = React$1.useMemo(() => preparePageRender({
12514
+ const preparation = React$1.useMemo(() => readPreparation({
12331
12515
  plan,
12332
12516
  audience,
12333
12517
  dataContext,
@@ -12340,7 +12524,8 @@ function PageRendererCore(props) {
12340
12524
  dataContext,
12341
12525
  routeMap,
12342
12526
  themeResources,
12343
- imageResolveContext
12527
+ imageResolveContext,
12528
+ readPreparation
12344
12529
  ]);
12345
12530
  reportAndReplayOmissions({
12346
12531
  plan,
@@ -12514,6 +12699,7 @@ function renderPlanEntry(input) {
12514
12699
  "data-page-block-position": blockPosition,
12515
12700
  "data-site-style-boundary-before": reserves.topPlacement,
12516
12701
  "data-site-style-boundary-after": reserves.bottomPlacement,
12702
+ "data-site-style-field-seam": reserves.fieldSeam,
12517
12703
  "data-style-group": styleGroup,
12518
12704
  style: reserves.style,
12519
12705
  children: /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps })
@@ -12666,7 +12852,10 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
12666
12852
  const resolvedImageResolveContext = imageResolveContext ?? getCurrentResolveImageUrlContext();
12667
12853
  const finish = (node, meta) => finishBlockRender(node, block, perfStart, meta);
12668
12854
  function wrapped(node) {
12669
- return wrapBlock && block.id ? /* @__PURE__ */ jsx(Fragment, { children: wrapBlock(block.id, node) }) : /* @__PURE__ */ jsx(Fragment, { children: node });
12855
+ return wrapBlock && block.id ? /* @__PURE__ */ jsx(Fragment, { children: wrapBlock(block.id, node, {
12856
+ block,
12857
+ content: entry.renderableContent
12858
+ }) }) : /* @__PURE__ */ jsx(Fragment, { children: node });
12670
12859
  }
12671
12860
  if (entry.kind === "diagnostic" && entry.reason.kind === "invalid-admission") return finish(presentNotRenderableBlock(entry.reason, audience), {
12672
12861
  outcome: "invalidContent",
@@ -12720,14 +12909,15 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
12720
12909
  hasResolvedData: prepared.hasResolvedData
12721
12910
  });
12722
12911
  }, (prev, next) => {
12723
- return prev.entry === next.entry && prev.audience === next.audience && prev.registry === next.registry && prev.dataContext === next.dataContext && prev.themeResources === next.themeResources && prev.routeMap === next.routeMap && prev.wrapBlock === next.wrapBlock && prev.imageResolveContext === next.imageResolveContext && prev.previewAuthoring === next.previewAuthoring;
12912
+ return prev.entry === next.entry && prev.audience === next.audience && prev.registry === next.registry && sameBlockRenderDataContext(prev.dataContext, next.dataContext, next.entry.entry.block.id) && prev.themeResources === next.themeResources && prev.routeMap === next.routeMap && prev.wrapBlock === next.wrapBlock && prev.imageResolveContext === next.imageResolveContext && prev.previewAuthoring === next.previewAuthoring;
12724
12913
  });
12725
12914
  /** Every plan input participates in memo identity; the builder owns all rules. */
12726
12915
  function usePageRenderPlan(props) {
12916
+ const readPlan = React$1.useMemo(createPageRenderPlanReader, []);
12727
12917
  const { page, audience, runtimeJoins, sdkConfig, customBlocks, blockOverrides } = props;
12728
12918
  const siteStyleId = props.theme?.siteStyleId ?? null;
12729
12919
  const previewStage = props.dataContext?.previewStage ?? "published";
12730
- return React$1.useMemo(() => buildPageRenderPlan({
12920
+ return React$1.useMemo(() => readPlan({
12731
12921
  page: page ?? {
12732
12922
  name: "",
12733
12923
  path: "",
@@ -12749,7 +12939,8 @@ function usePageRenderPlan(props) {
12749
12939
  previewStage,
12750
12940
  sdkConfig,
12751
12941
  customBlocks,
12752
- blockOverrides
12942
+ blockOverrides,
12943
+ readPlan
12753
12944
  ]);
12754
12945
  }
12755
12946
  function usePageDateRuntime(props) {