@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,25 +1,25 @@
1
1
  "use client";
2
- import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, G as normalizeOfferingsPreviewContentForWrite, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Ut as quickFactSlots, W as isOfferingsPreviewSourceKey, _t as recurringScheduleProjectionSchema, an as resolveEventSelection, at as occurrenceContextSchema, cn as resolveHeaderChromeRuntimeContract, dn as planSiteChromePlacement, gt as projectRecurringSchedule, hn as parseMailingListPlacementTargeting, pn as buildMailingListSignupBlockSourceRef, q as offeringsListingFor, qt as buildEventListWeek, sn as isHeaderScrollRuntimeEnabled, un as parseHeaderPositioning, vn as sameMailingListPlacementTargeting, vt as combinedLookSchema, yn as parseContentVersionId, z as OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT } from "./shop.interactive-C0IjiWOs.mjs";
2
+ import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, G as isOfferingsPreviewSourceKey, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, K as normalizeOfferingsPreviewContentForWrite, Kt as quickFactSlots, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Tn as parseContentVersionId, Vt as cardListPresentationSchemaShape, W as groupOfferingRunsByCourse, Xt as buildEventListWeek, Y as offeringsListingFor, _n as planSiteChromePlacement, bt as combinedLookSchema, gn as parseHeaderPositioning, in as formatEventStartingPrice, mn as resolveHeaderChromeRuntimeContract, pn as isHeaderScrollRuntimeEnabled, st as occurrenceContextSchema, vt as projectRecurringSchedule, wn as sameMailingListPlacementTargeting, xn as parseMailingListPlacementTargeting, yn as buildMailingListSignupBlockSourceRef, yt as recurringScheduleProjectionSchema } from "./shop.interactive-Bb67gPLL.mjs";
3
3
  import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
- import { $a as anglePolygonCss, $i as selectItemSurfacePresentation, Aa as getNavLinkPreset, Ao as arrangementSlotNames, Ba as resolvePageDesignBoundaryChoice, Ci as isBlockButtonRole, Co as toNonEmptyReadonlyArray, Da as generateDefaultCardSystem, Do as opaqueSurfaceDeclarations, Ea as resolveCardRole, Eo as opaqueSurfaceContextFromTheme, Fa as navLinkHoverColorCandidate, Fn as eventCalendarWeekStart, Fo as customCssRuleSchema, Ga as boundaryOptions, Go as parseGradientPresetId, Ha as sectionShapeFromContent, Ia as navLinkOwnsHoverForeground, Ja as isDecorativeTransitionIntent, Jo as asDesignBlockId, Ka as boundaryRuntimeMetricsForDecorativeTransition, Ko as siteChromeBackgroundOverrideOwner, La as navLinkOwnsUnderline, Lo as boxBackgroundSchema, Ma as generateNavLinkCSS, Mo as themeSchema, Na as generateEffectsCSS, No as headerVariantValues, Oa as generateFooterCss, Oo as selectLogoVariant, Pa as generateInteractiveChildInheritanceCSS, Po as blockCustomCssRuleSchema, Qa as transitionIntentForTreatment, Qi as resolveLookSurfacePresentation, Qo as makeBoundaryId, Ro as runtimeBoxBackgroundSchema, Sa as stripCompiledRuntimeStyleFields, So as testimonialsCompositionTreatmentValues, Ta as getGradientPreset, Ti as resolveDateRuntimeContext, Tn as computeMediaTransformStyle, To as cardListKnobBlocks, Ua as sectionShapeHook, Va as sectionShapeForGround, Vo as cardVariantRoleValues, Wa as boundaryOptionForTransitionIntent, Wo as surfaceCardRoleValues, Xa as softBoundaryOption, Xi as itemRole, Xo as asPageFlowPresetId, Ya as noneBoundaryOption, Yi as resolvedItemSurfaceProps, Yo as asLayoutVariantKey, Za as spaciousBoundaryOption, Zi as lookPresentationOnPalette, Zo as asSiteStyleId, _o as featureCardCompositionTreatmentValues, aa as resolveArrangementLookForBlock, ao as sectionForegroundBackground, ba as compilePageRuntimeFields, bo as plainFrame, ca as readStoredMode, co as themeV2CompilerOwnedFieldNames, da as resolvePublishedLook, do as lookModes, ea as arrangementAppearancePresets, eo as transitionCatalogueEntries, fo as assertNever$1, go as designIssueSeverityForPolicy, ha as filterLookIdsForPolicy, ho as defineNoBlockDesignCapability, ia as getCompatibleBlockAppearancePresets, io as resolveSectionBackground, ja as buildTextContrastShadow, jo as TokenResolver, ka as footerForegroundCandidates, ko as surfaceToneFromForegroundToken, la as resolveEffectiveArrangement, ma as filterLayoutProfilesForPolicy, mo as defineFrameCapability, na as arrangementStyleAvailability, no as deriveSectionGround, oa as resolveLookForBlock, oo as sectionSurfaceBase, pa as deriveSiteStyleBlockPolicy, po as defineBlockDesignCapability, qa as boundaryTreatmentForBoundaryOptionId, ra as compileArrangementLookRuntime, ro as parseCanonicalRuntimeBackground, sa as arrangementManifestFromVariants, so as stripStaleTransitionStyleGroup, ta as arrangementLookHooks, to as applyLookPhotoTreatment, ts as isRecord$7, ua as resolveModeArrangement, uo as resolveEffectiveKnobs, va as getCuratedSiteStyle, vo as introCompositionTreatmentValues, wa as gradientToCss, wi as readRuntimeNow, wn as MediaPlaceholder, wo as cardListFamilyBlocks, xo as sectionBackgroundPaintValues, ya as requireCuratedSiteStyle, yo as offeringsPreviewCompositionTreatmentValues, za as resolvePageDesignBlockLookChoice } from "./display-ChgDe9Da.mjs";
5
- import { A as eyebrowTreatmentValues, At as projectPublicLocation, Ct as isRecord$8, Dt as locationValueSchema, Et as decideLocationSourcePermission, F as visibleHeadingDecorationFamilyValues, Ft as formatDate, H as bookingConsentCarrierSchema, I as eventVenueDrawingSchema, N as isArrangementMode, Nt as trimmedStringOrNull, P as tileTreatmentValues, Tt as WHOLE_SERIES_EVENT_PRESET_VALUES, X as isRichTextDoc, Zt as getLocalScheduleDate, _ as eventCalendarListLayoutOptions, a as eventAutoApplyDiscountPreviewSchema, en as resolveBookingBusinessTimeZone, et as mediaSchema, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, in as toUtcIsoDateTimeString, it as PUBLIC_FILE_FIELD_KINDS, j as headingDecorationColorTokenValues, jt as publicLocationSchema, k as eventListTreatmentValues, kt as parseLocationValue, nt as runtimeMediaSchema, o as publicMembershipProductCollectionSchema, q as RichTextDocSchema, s as publicPassProductCollectionSchema, t as logger, ut as eventCalendarListLayoutCompatibleDisplayModeValues, vt as calendarWindowQuerySchema, w as resolveEventCalendarReadPlan, z as publicEventsArraySchema } from "./noop-poI1m2yW.mjs";
4
+ import { $a as softBoundaryOption, $i as resolveLookSurfacePresentation, $o as asLayoutVariantKey, Aa as generateDefaultCardSystem, Ao as opaqueSurfaceDeclarations, Ba as navLinkOwnsUnderline, Bi as normalizeEventRegistrationPageSurfaceSubject, Ca as compilePageRuntimeFields, Co as plainFrame, Da as gradientToCss, Do as cardListFamilyBlocks, Ei as resolveDateRuntimeContext, Eo as toNonEmptyReadonlyArray, Fa as generateNavLinkCSS, Fn as eventCalendarWeekStart, Fo as sectionStylesOverrideSchema, Ga as sectionShapeFromContent, Go as cardVariantRoleValues, Ha as resolvePageDesignBlockLookChoice, Ho as runtimeBoxBackgroundSchema, Ia as generateEffectsCSS, Io as themeSchema, Ja as boundaryOptions, Jo as surfaceCardRoleValues, Ka as sectionShapeHook, La as generateInteractiveChildInheritanceCSS, Lo as headerVariantValues, Ma as footerForegroundCandidates, Mo as surfaceToneFromForegroundToken, Na as getNavLinkPreset, No as arrangementSlotNames, Oa as getGradientPreset, Oo as cardListKnobBlocks, Pa as buildTextContrastShadow, Po as TokenResolver, Qa as noneBoundaryOption, Qi as lookPresentationOnPalette, Qo as asDesignBlockId, Ra as navLinkHoverColorCandidate, Ro as blockCustomCssRuleSchema, Sa as requireCuratedSiteStyle, So as offeringsPreviewCompositionTreatmentValues, Ss as formatBookingPriceDisplay, Ta as stripCompiledRuntimeStyleFields, Ti as readRuntimeNow, Tn as computeMediaTransformStyle, To as testimonialsCompositionTreatmentValues, Ua as resolvePageDesignBoundaryChoice, Vo as boxBackgroundSchema, Wa as sectionShapeForGround, Xa as boundaryTreatmentForBoundaryOptionId, Xi as resolvedItemSurfaceProps, Xo as siteChromeBackgroundOverrideOwner, Ya as boundaryRuntimeMetricsForDecorativeTransition, Yo as parseGradientPresetId, Za as isDecorativeTransitionIntent, Zi as itemRole, _a as filterLayoutProfilesForPolicy, _o as defineFrameCapability, aa as compileArrangementLookRuntime, ao as deriveSectionGround, as as isRecord$8, bo as featureCardCompositionTreatmentValues, ca as resolveLookForBlock, co as sectionForegroundBackground, da as readStoredMode, do as themeV2CompilerOwnedFieldNames, ea as selectItemSurfacePresentation, eo as spaciousBoundaryOption, es as asPageFlowPresetId, fa as resolveEffectiveArrangement, ga as deriveSiteStyleBlockPolicy, go as defineBlockDesignCapability, ho as assertNever$1, ia as automaticArrangementLook, io as applyLookPhotoTreatment, ja as generateFooterCss, jo as selectLogoVariant, ka as resolveCardRole, ko as opaqueSurfaceContextFromTheme, la as styleSectionBackgroundForColour, lo as sectionSurfaceBase, ma as resolvePublishedLook, mo as lookModes, na as arrangementLookHooks, no as anglePolygonCss, ns as makeBoundaryId, oa as getCompatibleBlockAppearancePresets, oo as parseCanonicalRuntimeBackground, pa as resolveModeArrangement, po as resolveEffectiveKnobs, qa as boundaryOptionForTransitionIntent, ra as arrangementStyleAvailability, ro as transitionCatalogueEntries, sa as resolveArrangementLookForBlock, so as resolveSectionBackground, ta as arrangementAppearancePresets, to as transitionIntentForTreatment, ts as asSiteStyleId, ua as arrangementManifestFromVariants, uo as stripStaleTransitionStyleGroup, va as filterLookIdsForPolicy, vo as defineNoBlockDesignCapability, wi as isBlockButtonRole, wn as MediaPlaceholder, wo as sectionBackgroundPaintValues, xa as getCuratedSiteStyle, xo as introCompositionTreatmentValues, yo as designIssueSeverityForPolicy, za as navLinkOwnsHoverForeground, zo as customCssRuleSchema } from "./display-B5DfNb6A.mjs";
5
+ import { A as eyebrowTreatmentValues, At as parseLocationValue, B as publicEventsArraySchema, Dt as decideLocationSourcePermission, Et as WHOLE_SERIES_EVENT_PRESET_VALUES, F as visibleHeadingDecorationFamilyValues, I as eventVenueDrawingSchema, It as formatDate, J as RichTextDocSchema, Mt as publicLocationSchema, N as isArrangementMode, Ot as locationValueSchema, P as tileTreatmentValues, Pt as trimmedStringOrNull, Qt as getLocalScheduleDate, R as publicEventPricingSchema, U as bookingConsentCarrierSchema, Z as isRichTextDoc, _ as eventCalendarListLayoutOptions, a as eventAutoApplyDiscountPreviewSchema, an as toUtcIsoDateTimeString, at as PUBLIC_FILE_FIELD_KINDS, dt as eventCalendarListLayoutCompatibleDisplayModeValues, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, j as headingDecorationColorTokenValues, jt as projectPublicLocation, k as eventListTreatmentValues, o as publicMembershipProductCollectionSchema, rt as runtimeMediaSchema, s as publicPassProductCollectionSchema, t as logger, tn as resolveBookingBusinessTimeZone, tt as mediaSchema, w as resolveEventCalendarReadPlan, wt as isRecord$9, yt as calendarWindowQuerySchema } from "./noop-CamIX2yK.mjs";
6
6
  import { N as assertNever$2 } from "./creditProducts-BTRX4edc.mjs";
7
- import { At as oklabToOklch, C as buttonShadow, D as paddingDeclarations, E as materializeRuntimeButtonAppearance, G as rgbColorValue, H as borderColorStyle, I as mapButtonVisualAppearances, J as textColorValue, K as surfaceRoleForTextToken, M as generateShadowValue$1, Mt as oklchToHexGamut, Nt as rgbToHex, O as BORDER_WIDTH_MAP, Pt as srgbToOklab, Q as solveSurfaceInks, S as buttonRadius, T as buttonTypographyDeclarations, Tt as contrastRatio, U as cssVarValue, V as backgroundColorStyle, W as mergeStyles, X as safeTokenOr, Y as resolveSurfaceForeground, Z as surfaceInkPublication, _t as surfaceInkStyle, at as expandPalette, b as formatButtonColourContractError, bt as resolveConcreteColorHex, ct as DEFAULT_SURFACE_TEXT_COLOR, dt as surfaceForegroundDeclarations, f as compositeHex, ft as surfaceForegroundInputFromResolved, g as actionVariableFallback, gt as surfaceInkDeclarations, ht as surfaceForegroundValueWithOpacity, it as inkReference, j as FONT_SIZE_MAP, jt as oklabToSrgb, k as DEFAULT_BUTTON_SIZES, kt as hexToRgb, l as surfaceDecorationColors, lt as SURFACE_FOREGROUND_CSS_VARS, mt as surfaceForegroundValue, n as parseSurfaceTree, nt as certifyPaint, o as resolveSurface, pt as surfaceForegroundStyle, q as textColorStyle, r as prepareSurfaceIndex, rt as contrastThresholdByPolicy, st as planForegroundHover, tt as HOVER_TEXT_THRESHOLD, ut as SURFACE_INK_CSS_VARS, v as compileButtonColourStates, vt as freezeOwnedThemeValue, w as buttonStateAppearanceDeclarations, x as buttonBorder, xt as resolveOpaqueSurfaceHex, y as BUTTON_CONTRAST_POLICY, yt as ownedThemeSnapshot } from "./accessibleSurfaces-BnyVRqdU.mjs";
8
- import { $ as sectionHeaderLayoutNodes, $t as normalizeLocationMapSource, A as eventRegistrationBlockDefinition, At as lookSlot, Bt as PUBLIC_DOWNLOAD_MEDIA_TYPES, C as cartBlockDefinition, Cn as resolveRepeaterGridColumnFieldId, Ct as text, D as eventCalendarBlockDefinition, Dn as linkSchema, Dt as lookLeadSlotTransform, E as shopBlockDefinition, En as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Et as lookCarouselRegionTransform, F as cardListPhotoNumberFields, Ft as createSdkSelectField, G as normalizeMailingListBlockContent, Gt as testimonialsReadiness, H as desktopOnlyDisplay, Ht as chosenString, I as cardListPresentationBindings, It as createSiteOptionSelectField, J as createBlockManifest, Jt as pageTemplateFromEntry, K as formBlockDefinition, Kt as admitReadinessFacts, L as cardListSectionActionFields, Lt as normalizeSelectSource, M as FEATURE_CARD_ICON_TREATMENTS, Mt as composeFragments, N as cardListSectionAction, Nt as defineFragment, O as eventListingBlockDefinition, Ot as lookQuoteLimitTransform, P as cardListKnobFields, Pt as parseBlockIconValue, Q as sectionHeaderFields, Qt as normalizeLocationMapProps, R as normalizeCardListContent, Rt as parseFieldDefinition, S as checkoutBlockDefinition, Sn as parseRepeaterGridInteger, St as stack, T as productListBlockDefinition, Tn as resolveRepeaterGridSpanFieldId, Tt as when, U as mobileOnlyDisplay, Ut as galleryReadiness, Vt as augmentManifest, W as teamMemberCardBiographyFallback, Wt as teamReadiness, X as withApiBindings, Xt as LOCATION_MAP_DEFAULTS, Y as formEmbedFragment, Yt as unavailableReadinessFact, Z as formCopyFragment, Zt as LOCATION_MAP_LIMITS, _ as publicAppointmentLocationSchema, _n as ICON_CONFIG, _t as media, a as buildLoadedOfferingsPreviewListing, an as layoutField, at as accordionList, b as sanitizeNewsletterSignupPublicContent, bn as DEFAULT_MEDIA_FIELD_KINDS, bt as richText, cn as sectionStylesField, ct as button, dn as createButtonGroup, dt as fileDownload, en as resolveLocationMapLocation, et as resolveBackgroundColorValue, fn as createButtonVariantField, ft as form, g as formatAppointmentPrice, gn as ACCORDION_TRIGGER_LETTER_SPACING, gt as link, h as formatAppointmentLocation, hn as ACCORDION_TRIGGER_FONT_SCALE, ht as inline, in as eventDisplayFields, it as backgroundFrame, j as FEATURE_CARD_GENERATED_ICON_SIZE_PX, jt as buildFragmentDataLoaders, k as mapDrawingStyleBinding, kt as lookSkinSlotTransform, ln as BACKGROUND_POSITION_PRESET_VALUES, lt as carousel, m as formatAppointmentDuration, mn as ACCORDION_SPACING_MAP, mt as icon, nn as columnsField, nt as styledContainer, on as cardStylesField, ot as bind, p as SectionNode, pn as ACCORDION_OPEN_ACCENT_THICKNESS, pt as headerSection, q as formDataSchema, qt as loadedReadinessFact, rn as emptyStateField, rt as sectionContainer, s as buildAppointmentServicesView, sn as containerStylesField, st as bookingForm, t as serverComponentRegistry, tn as cardStylingFields, tt as styledSection, un as getAnchorClasses, ut as el, v as publicAppointmentPricingSchema, vn as ICON_SIZE_PX, vt as props, w as productDetailBlockDefinition, wn as resolveRepeaterGridRowFieldId, wt as videoEmbed, x as giftingBlockDefinition, xn as isAcceptedRepeaterGridSpan, xt as section, y as newsletterSignupBlockDefinition, yn as bindingSchema, yt as repeat, zt as parseFieldDefinitions } from "./registry.server-ed20Q7bV.mjs";
9
- import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-BxbnEJCi.mjs";
10
- import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, v as blockColorTokenNames } from "./types-B0hJldSt.mjs";
11
- import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-7MVCNWgc.mjs";
12
- import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-BMDHwnM6.mjs";
7
+ import { $ as solveSurfaceInks, A as DEFAULT_BUTTON_SIZES, At as hexToRgb, C as buttonRadius, D as materializeRuntimeButtonAppearance, E as buttonTypographyDeclarations, Et as contrastRatio, Ft as srgbToOklab, G as mergeStyles, H as backgroundColorStyle, J as textColorStyle, K as rgbColorValue, L as mapButtonVisualAppearances, M as FONT_SIZE_MAP, Mt as oklabToSrgb, N as generateShadowValue$1, Nt as oklchToHexGamut, O as paddingDeclarations, Pt as rgbToHex, Q as surfaceInkPublication, S as buttonBorder, St as resolveOpaqueSurfaceHex, T as buttonStateAppearanceDeclarations, U as borderColorStyle, W as cssVarValue, X as resolveSurfaceForeground, Y as textColorValue, Z as safeTokenOr, _t as surfaceInkDeclarations, at as inkReference, b as BUTTON_CONTRAST_POLICY, bt as ownedThemeSnapshot, ct as planForegroundHover, dt as SURFACE_INK_CSS_VARS, f as compositeHex, ft as surfaceForegroundDeclarations, g as actionVariableFallback, gt as surfaceForegroundValueWithOpacity, ht as surfaceForegroundValue, it as contrastThresholdByPolicy, jt as oklabToOklch, k as BORDER_WIDTH_MAP, l as surfaceDecorationColors, lt as DEFAULT_SURFACE_TEXT_COLOR, mt as surfaceForegroundStyle, n as parseSurfaceTree, nt as HOVER_TEXT_THRESHOLD, o as resolveSurface, ot as expandPalette, pt as surfaceForegroundInputFromResolved, q as surfaceRoleForTextToken, r as prepareSurfaceIndex, rt as certifyPaint, ut as SURFACE_FOREGROUND_CSS_VARS, v as compileButtonColourStates, vt as surfaceInkStyle, w as buttonShadow, x as formatButtonColourContractError, xt as resolveConcreteColorHex, y as resolveSolidButtonColour, yt as freezeOwnedThemeValue } from "./accessibleSurfaces-OsAseM7H.mjs";
8
+ import { $ as backgroundFrame, $t as chosenString, A as mapDrawingStyleBinding, An as ICON_SIZE_PX, At as cardListKnobFields, B as normalizeMailingListBlockContent, Bt as parseFieldDefinitions, C as checkoutBlockDefinition, Cn as createButtonGroup, Ct as repeat, D as shopBlockDefinition, Dn as ACCORDION_TRIGGER_FONT_SCALE, Dt as text, E as productListBlockDefinition, En as ACCORDION_SPACING_MAP, Et as stack, Fn as resolveRepeaterGridColumnFieldId, Ft as parseBlockIconValue, G as withApiBindings, Gt as eventReadinessQueryKeys, H as formDataSchema, Ht as augmentManifest, In as resolveRepeaterGridRowFieldId, It as createSdkSelectField, J as sectionHeaderLayoutNodes, Jt as eventDiscoveryFilterKeys, K as formCopyFragment, Kt as eventReadinessResultSchema, L as desktopOnlyDisplay, Ln as resolveRepeaterGridSpanFieldId, Lt as createSiteOptionSelectField, M as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Mn as DEFAULT_MEDIA_FIELD_KINDS, Mt as cardListPresentationBindings, N as FEATURE_CARD_ICON_TREATMENTS, Nn as isAcceptedRepeaterGridSpan, Nt as cardListSectionActionFields, O as eventCalendarBlockDefinition, On as ACCORDION_TRIGGER_LETTER_SPACING, Ot as videoEmbed, Pn as parseRepeaterGridInteger, Pt as normalizeCardListContent, Q as sectionContainer, Qt as resolveEventScope, R as mobileOnlyDisplay, Rn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Rt as normalizeSelectSource, S as giftingBlockDefinition, Sn as getAnchorClasses, St as props, T as productDetailBlockDefinition, Tn as ACCORDION_OPEN_ACCENT_THICKNESS, Tt as section, U as createBlockManifest, Ut as eventReadinessLoaderKey, V as formBlockDefinition, Vt as PUBLIC_DOWNLOAD_MEDIA_TYPES, W as formEmbedFragment, Wt as eventReadinessQuery, X as styledSection, Xt as eventScopeQuery, Y as resolveBackgroundColorValue, Yt as eventScopeLoaderParam, Z as styledContainer, Zt as eventScopeQueryKeys, _ as publicAppointmentLocationSchema, _n as layoutField, _t as headerSection, a as buildLoadedOfferingsPreviewListing, an as loadedReadinessFact, at as lookLeadSlotTransform, b as newsletterSignupBlockDefinition, bn as sectionStylesField, bt as link, cn as LOCATION_MAP_DEFAULTS, ct as lookSlot, dn as normalizeLocationMapSource, dt as bookingForm, en as galleryReadiness, et as buildFragmentDataLoaders, fn as resolveLocationMapLocation, ft as button, g as formatAppointmentPrice, gn as eventDisplayFields, gt as form, h as formatAppointmentLocation, hn as emptyStateField, ht as fileDownload, in as hiddenFromVisitors, it as lookCarouselRegionTransform, j as eventRegistrationBlockDefinition, jn as bindingSchema, jt as cardListPhotoNumberFields, k as eventListingBlockDefinition, kn as ICON_CONFIG, kt as when, ln as LOCATION_MAP_LIMITS, lt as accordionList, m as formatAppointmentDuration, mn as columnsField, mt as el, nn as testimonialsReadiness, nt as defineFragment, on as pageTemplateFromEntry, ot as lookQuoteLimitTransform, p as SectionNode, pn as cardStylingFields, pt as carousel, q as sectionHeaderFields, qt as eventWeekReadScope, rn as admitReadinessFacts, rt as cardListSectionAction, s as buildAppointmentServicesView, sn as unavailableReadinessFact, st as lookSkinSlotTransform, t as serverComponentRegistry, tn as teamReadiness, tt as composeFragments, un as normalizeLocationMapProps, ut as bind, v as publicAppointmentPricingSchema, vn as cardStylesField, vt as icon, w as cartBlockDefinition, wn as createButtonVariantField, wt as richText, x as sanitizeNewsletterSignupPublicContent, xn as BACKGROUND_POSITION_PRESET_VALUES, xt as media, y as offeringCourseSlotParents, yn as containerStylesField, yt as inline, z as teamMemberCardBiographyFallback, zn as linkSchema, zt as parseFieldDefinition } from "./registry.server-Cn8XjRte.mjs";
9
+ import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-Bbz_ECL5.mjs";
10
+ import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, v as blockColorTokenNames } from "./types-DjWUR_O6.mjs";
11
+ import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-B1Z_TGAe.mjs";
12
+ import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-DuaYtnvG.mjs";
13
13
  import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
14
- import { r as eventHeaderSlotParents } from "./view-DhEwiTJG.mjs";
15
- import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-DKdZSW_R.mjs";
16
- import { s as monthSlotParents } from "./CalendarNavigationChevron-DRH9qFny.mjs";
14
+ import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-B0TFnP4y.mjs";
15
+ import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-sKBofjiW.mjs";
16
+ import { s as monthSlotParents } from "./CalendarNavigationChevron-CNckKZct.mjs";
17
17
  import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
18
- import { n as eventListSlotParents } from "./EventListing.view-BVoHnVZA.mjs";
18
+ import { n as eventListSlotParents } from "./EventListing.view-BZ4l_rmT.mjs";
19
19
  import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
20
- import { t as formatDate$1 } from "./formatDate-Cjouxh4Y.mjs";
20
+ import { t as formatDate$1 } from "./formatDate-ymSVT9Y5.mjs";
21
21
  import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
22
- import { t as coerceRichTextDoc } from "./richText-coerce-CtoGLZ_e.mjs";
22
+ import { t as coerceRichTextDoc } from "./richText-coerce-Bcl3vTb4.mjs";
23
23
  import { t as resolveBlocksPageMediaContext } from "./mediaAssets-B99AP7ai.mjs";
24
24
  import * as React$1 from "react";
25
25
  import React from "react";
@@ -116,8 +116,8 @@ function walkAndCollectImageAttrs(value, out, location = "") {
116
116
  value.forEach((item, index) => walkAndCollectImageAttrs(item, out, `${location}[${index}]`));
117
117
  return;
118
118
  }
119
- if (!isRecord$7(value)) return;
120
- if (value.type === "image" && isRecord$7(value.attrs)) out.push({
119
+ if (!isRecord$8(value)) return;
120
+ if (value.type === "image" && isRecord$8(value.attrs)) out.push({
121
121
  attrs: value.attrs,
122
122
  location: location ? `${location}.attrs` : "attrs"
123
123
  });
@@ -694,13 +694,26 @@ function boundaryEndpointForSectionContent(content) {
694
694
  * draws a plain frame.
695
695
  */
696
696
  function sectionFactsForContent(content) {
697
+ const photoGround = isLookPhotoGround(content);
697
698
  return {
698
- endpoint: boundaryEndpointForSectionContent(content),
699
- ...isPhotoBackground(content) ? { photo: true } : {},
699
+ endpoint: photoGround ? {
700
+ kind: "unpainted",
701
+ reason: "media"
702
+ } : boundaryEndpointForSectionContent(content),
703
+ ...photoGround || isPhotoBackground(content) ? { photo: true } : {},
700
704
  frame: frameKindForContent(content),
701
705
  shape: sectionShapeFromContent(content)
702
706
  };
703
707
  }
708
+ /** A Look whose photo covers the section (`photoGround`) meets its joins as a photo does, once it has a photo to show. */
709
+ function isLookPhotoGround(content) {
710
+ const look = content._effectiveLook;
711
+ const hooks = content._lookHooks;
712
+ return isRecord$7(look) && look.photoGround === true && isRecord$7(hooks) && hooks["data-has-photo"] === "true";
713
+ }
714
+ function isRecord$7(value) {
715
+ return typeof value === "object" && value !== null;
716
+ }
704
717
  function isPhotoBackground(content) {
705
718
  const source = parseCanonicalRuntimeBackground(content);
706
719
  return source.kind !== "none" && source.background.type === "image" && source.background.image != null;
@@ -1778,10 +1791,13 @@ function requiresPhoto(option) {
1778
1791
  const treatment = boundaryTreatmentForBoundaryOptionId(option);
1779
1792
  return treatment?.kind === "wave-edge" && treatment.echo === true;
1780
1793
  }
1781
- /** A rule claims blocks before later rules count their first occurrence. */
1794
+ /**
1795
+ * A rule claims blocks on its side before later rules on that side count their first occurrence.
1796
+ * Claims are per side, so one style can join into a block and out of it.
1797
+ */
1782
1798
  function matchedRuleBlocks(rule, blocks, claimed) {
1783
1799
  const matches = blocks.flatMap((block, index) => {
1784
- if (claimed.has(index) || rule.position === "opening" && index !== 0) return [];
1800
+ if (claimed.has(`${rule.side}:${index}`) || rule.position === "opening" && index !== 0) return [];
1785
1801
  return (rule.match.kind === "look" ? block.lookId !== null && rule.match.looks.includes(block.lookId) && (!requiresPhoto(rule.join) || block.paint === "photo") : block.paint === "paint" && rule.match.grounds.includes(block.ground)) ? [index] : [];
1786
1802
  });
1787
1803
  return rule.occurrence === "first" ? matches.slice(0, 1) : matches;
@@ -1791,7 +1807,7 @@ function pageRuleOptions(rules, blocks) {
1791
1807
  const matched = matchedRuleBlocks(rule, blocks, state.claimed);
1792
1808
  const options = matched.map((index) => rule.side === "after" ? index : index - 1).filter((index) => index >= 0 && index < blocks.length - 1 && !state.options.has(index));
1793
1809
  return {
1794
- claimed: /* @__PURE__ */ new Set([...state.claimed, ...matched]),
1810
+ claimed: /* @__PURE__ */ new Set([...state.claimed, ...matched.map((index) => `${rule.side}:${index}`)]),
1795
1811
  options: new Map([...state.options, ...options.map((index) => [index, rule.join])])
1796
1812
  };
1797
1813
  }, {
@@ -1918,12 +1934,33 @@ function runtimeJoinForEditorBoundary(boundary) {
1918
1934
  }] : [];
1919
1935
  }
1920
1936
  function applyCompiledRuntimeFieldsToContent(content, fields) {
1921
- const runtimeFields = fields ? preserveContentOwnedBackgroundFields(content, fields) : fields;
1937
+ const runtimeFields = fields ? preserveContentOwnedBackgroundFields(content, preserveArrangementSectionSpacing(content, fields)) : fields;
1922
1938
  return {
1923
1939
  ...stripCompiledRuntimeStyleFields(content),
1924
1940
  ...runtimeFields
1925
1941
  };
1926
1942
  }
1943
+ /**
1944
+ * An arrangement Look compiles no section spacing, because its skin owns the
1945
+ * padding. The spacing the owner chose still travels with the content so the
1946
+ * renderer can hand it to the skin as a hook; the render plan takes it back out
1947
+ * before the section's padding class is chosen, so the padding itself is
1948
+ * unchanged.
1949
+ */
1950
+ function preserveArrangementSectionSpacing(content, fields) {
1951
+ if (!fields._arrangementLooks || fields._sectionStyles?.spacing != null) return fields;
1952
+ const sectionStyles = content._sectionStyles;
1953
+ const spacing = typeof sectionStyles === "object" && sectionStyles !== null && "spacing" in sectionStyles ? sectionStyles.spacing : void 0;
1954
+ const parsed = sectionStylesOverrideSchema.shape.spacing.safeParse(spacing);
1955
+ if (!parsed.success || parsed.data == null) return fields;
1956
+ return {
1957
+ ...fields,
1958
+ _sectionStyles: {
1959
+ ...fields._sectionStyles,
1960
+ spacing: parsed.data
1961
+ }
1962
+ };
1963
+ }
1927
1964
  function preserveContentOwnedBackgroundFields(content, fields) {
1928
1965
  const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), fields._sectionStyles?.background);
1929
1966
  if (resolved.kind === "look-surface" || resolved.kind === "base") return fields;
@@ -2047,6 +2084,134 @@ function capabilitySupportFor(capability) {
2047
2084
  };
2048
2085
  }
2049
2086
  //#endregion
2087
+ //#region ../theme-core/src/site-styles/sectionPhoto.ts
2088
+ /** The photo a section keeps, wherever its background `type` points. */
2089
+ function storedSectionPhoto(content) {
2090
+ return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
2091
+ }
2092
+ function readRecord(value) {
2093
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
2094
+ }
2095
+ //#endregion
2096
+ //#region ../theme-core/src/site-styles/sectionPhotoGround.ts
2097
+ /**
2098
+ * How the Looks built on an arrangement use the photo. Looks that share an
2099
+ * arrangement render the same tree, so they agree (a catalogue test holds
2100
+ * them to it). Null for keys no arrangement Look uses.
2101
+ */
2102
+ function arrangementPhotoUse(blockKind, arrangementKey) {
2103
+ return arrangementAppearancePresets.find((entry) => entry.blockKinds.some((kind) => kind === blockKind) && Object.values(entry.structure.byMode).includes(arrangementKey))?.structure.photoUse ?? null;
2104
+ }
2105
+ /** Older hero layouts no arrangement Look is built on, which show the photo beside the text. */
2106
+ const recipeOnlyHeroLayoutsWithPhotoBeside = ["splitReverse"];
2107
+ /** One photo-placement decision for the hero's renderers: does the photo paint the section ground? */
2108
+ function heroPhotoPaintsGround(variant) {
2109
+ const key = variant ?? "classic";
2110
+ const use = arrangementPhotoUse("block.hero", key);
2111
+ return use === null ? !recipeOnlyHeroLayoutsWithPhotoBeside.includes(key) : use === "behind";
2112
+ }
2113
+ //#endregion
2114
+ //#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
2115
+ /**
2116
+ * The one owner of the facts `whenMissing` rules read from block content.
2117
+ * Content facts also become `data-has-*` hooks; setting facts never do.
2118
+ */
2119
+ function arrangementContentFacts(content) {
2120
+ const photoCount = arrangementPhotoCount(content);
2121
+ const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
2122
+ return {
2123
+ photoCount,
2124
+ facts: {
2125
+ content: {
2126
+ photo: photoCount > 0,
2127
+ facts: Array.isArray(content.facts) && content.facts.length > 0,
2128
+ featured,
2129
+ outcome: typeof content.outcome === "string" && content.outcome.length > 0,
2130
+ figure: typeof content.figure === "string" && content.figure.trim().length > 0,
2131
+ entrance: isRecord$9(content.entrancePhoto)
2132
+ },
2133
+ settings: { "listed-by-week": content.listBy === "week" }
2134
+ }
2135
+ };
2136
+ }
2137
+ /** What an automatic Look choice weighs, read by the same owner as the `whenMissing` facts. */
2138
+ function lookFillPartsFromContent(content) {
2139
+ return {
2140
+ photo: arrangementPhotoCount(content) > 0,
2141
+ statement: typeof content.title === "string" && content.title.trim().length > 0
2142
+ };
2143
+ }
2144
+ /** The content stage owns media presence for every arrangement consumer. */
2145
+ function arrangementPhotoCount(content) {
2146
+ if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$9(card) && isRecord$9(card.media)).length;
2147
+ if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$9(member) && isRecord$9(member.photo)).length;
2148
+ if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$9(item) && isRecord$9(item.image)).length;
2149
+ if (isRecord$9(content.media) || isRecord$9(content.entrancePhoto)) return 1;
2150
+ return storedSectionPhoto(content) === null ? 0 : 1;
2151
+ }
2152
+ /** Both rendering and join matching ask the publication-fallback owner. */
2153
+ function resolveArrangementContentLook(runtime, mode, content, audience) {
2154
+ const selected = runtime.byMode[mode ?? "default"];
2155
+ if (!selected) return null;
2156
+ const published = resolvePublishedLook({
2157
+ look: selected.look,
2158
+ facts: arrangementContentFacts(content).facts,
2159
+ audience,
2160
+ catalogue: runtime.available.map((entry) => entry.look)
2161
+ });
2162
+ return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
2163
+ }
2164
+ /** Section paint is decided here, after the effective Look, at its admitted render position. */
2165
+ function resolveRuntimeSection(input) {
2166
+ const rhythm = input.runtime && input.look ? input.placement === "column" ? null : input.look.sectionGround ?? input.runtime.rhythm[input.position % input.runtime.rhythm.length] ?? null : void 0;
2167
+ const photo = input.runtime && input.look && input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
2168
+ const background = input.placement === "column" ? resolveSectionBackground({ kind: "none" }, null, null) : resolveSectionBackground(withStyleGroundInks(parseCanonicalRuntimeBackground(input.content), input.runtime), null, rhythm, photo);
2169
+ return {
2170
+ background,
2171
+ ground: deriveSectionGround(background, input.palette),
2172
+ paint: sectionPaint(background),
2173
+ styleBackground: sectionGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm))
2174
+ };
2175
+ }
2176
+ /**
2177
+ * An owner's plain colour that is one of the style's section grounds takes that ground's inks
2178
+ * (headings, links, supporting text), so a section painted by hand reads like one the style painted.
2179
+ * An owner who set any ink keeps all their own; any other colour keeps the generic contrast resolution.
2180
+ */
2181
+ function withStyleGroundInks(source, runtime) {
2182
+ if (source.kind === "none" || !runtime || source.background.type !== "color" || !source.background.color) return source;
2183
+ const { textColor, headingColor, linkColor, supportingColor } = source.background;
2184
+ if ([
2185
+ textColor,
2186
+ headingColor,
2187
+ linkColor,
2188
+ supportingColor
2189
+ ].some((ink) => ink !== void 0)) return source;
2190
+ const style = styleSectionBackgroundForColour(runtime, source.background.color);
2191
+ return style ? {
2192
+ ...source,
2193
+ background: {
2194
+ ...style,
2195
+ ...source.background
2196
+ }
2197
+ } : source;
2198
+ }
2199
+ function sectionPaint(resolved) {
2200
+ if (resolved.kind === "base" || resolved.kind === "content-media") return "paint";
2201
+ const background = resolved.background;
2202
+ if (background.type === "color") return "paint";
2203
+ return background.type === "image" && background.image != null ? "photo" : "other";
2204
+ }
2205
+ function sectionGroundToken(resolved) {
2206
+ if (resolved.kind === "base") return "background";
2207
+ switch (resolved.background.type) {
2208
+ case "image":
2209
+ case "video": return "media";
2210
+ case "color": return resolved.background.color ?? "background";
2211
+ case "gradient": return "gradient";
2212
+ }
2213
+ }
2214
+ //#endregion
2050
2215
  //#region ../theme-core/src/site-styles/pageDesignEditorOptions.ts
2051
2216
  function isRecipeLookOption(option) {
2052
2217
  return option.kind === "recipe";
@@ -2206,15 +2371,6 @@ function effectiveBreak(resolution) {
2206
2371
  return resolution.selectedSource ? noneBoundaryOption.id : null;
2207
2372
  }
2208
2373
  //#endregion
2209
- //#region ../theme-core/src/site-styles/sectionPhoto.ts
2210
- /** The photo a section keeps, wherever its background `type` points. */
2211
- function storedSectionPhoto(content) {
2212
- return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
2213
- }
2214
- function readRecord(value) {
2215
- return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
2216
- }
2217
- //#endregion
2218
2374
  //#region ../theme-core/src/site-styles/pageDesignEditorModel.ts
2219
2375
  function autoEditorChoice(effectiveValue) {
2220
2376
  return {
@@ -2367,13 +2523,18 @@ function lookOptionsByLayoutForBlock(input) {
2367
2523
  return {
2368
2524
  layoutVariantKey: layout.id,
2369
2525
  availableLooks,
2370
- autoLookId: recommendedLookIdForOptions(input.siteStyle, availableLooks)
2526
+ autoLookId: recommendedLookIdForOptions(input.siteStyle, availableLooks, input.block)
2371
2527
  };
2372
2528
  });
2373
2529
  }
2374
- function recommendedLookIdForOptions(siteStyle, availableLooks) {
2530
+ function recommendedLookIdForOptions(siteStyle, availableLooks, block) {
2375
2531
  if (siteStyle === null) return null;
2376
- return (siteStyle.looks.kind === "recipe" ? siteStyle.looks.recommendedAppearancePresetIds : siteStyle.looks.offers.map((offer) => offer.id)).find((id) => availableLooks.some((look) => look.id === id)) ?? null;
2532
+ if (siteStyle.looks.kind === "offers") return automaticArrangementLook(availableLooks.flatMap((option) => arrangementAppearancePresets.filter((look) => look.id === option.id)), editorContentParts(block))?.id ?? null;
2533
+ return siteStyle.looks.recommendedAppearancePresetIds.find((id) => availableLooks.some((look) => look.id === id)) ?? null;
2534
+ }
2535
+ /** The fill parts the automatic Look weighs; none without content, so catalogue readers keep the style's first offer. */
2536
+ function editorContentParts(block) {
2537
+ return block.content === void 0 ? void 0 : lookFillPartsFromContent(block.content);
2377
2538
  }
2378
2539
  function availableLooksForLayout(looksByLayout, layoutVariantKey) {
2379
2540
  if (!layoutVariantKey) return [];
@@ -2457,7 +2618,7 @@ function buildEditorBlockResult(block, siteStyleId, intent, siteStyle) {
2457
2618
  layoutChoice: layoutResult.choice,
2458
2619
  availableLayouts,
2459
2620
  availableLooksByLayout,
2460
- autoLookId: recommendedLookIdForOptions(siteStyle, availableLooks),
2621
+ autoLookId: recommendedLookIdForOptions(siteStyle, availableLooks, block),
2461
2622
  ...lookState
2462
2623
  },
2463
2624
  issues: compactIssues([
@@ -2467,18 +2628,28 @@ function buildEditorBlockResult(block, siteStyleId, intent, siteStyle) {
2467
2628
  ])
2468
2629
  };
2469
2630
  }
2470
- /** A block can support arrangement Looks without having a recipe Look catalogue. */
2631
+ /**
2632
+ * A block can support arrangement Looks without having a recipe Look catalogue, and an arrangement
2633
+ * style can keep a block on its own layout.
2634
+ */
2471
2635
  function editorLookCapability(block, style) {
2472
2636
  const capability = block.designCapability ?? null;
2473
- const arrangementOnly = getCompatibleBlockAppearancePresets({
2474
- blockKind: block.blockKind,
2475
- allowLayoutConstrainedPresetWithoutProfile: true
2476
- }).length === 0 && arrangementAppearancePresets.some((look) => look.blockKinds.some((kind) => kind === block.blockKind));
2477
- return style?.looks.kind === "recipe" && capability?.kind === "designed" && arrangementOnly ? {
2637
+ if (capability?.kind !== "designed") return capability;
2638
+ return blockHasNoLooksInStyle(block.blockKind, style) ? {
2478
2639
  ...capability,
2479
2640
  looks: "not-applicable"
2480
2641
  } : capability;
2481
2642
  }
2643
+ function blockHasNoLooksInStyle(blockKind, style) {
2644
+ if (style?.looks.kind === "offers") return (style.looks.ownLayoutBlocks ?? []).some((kind) => kind === blockKind);
2645
+ return style?.looks.kind === "recipe" && hasOnlyArrangementLooks(blockKind);
2646
+ }
2647
+ function hasOnlyArrangementLooks(blockKind) {
2648
+ return getCompatibleBlockAppearancePresets({
2649
+ blockKind,
2650
+ allowLayoutConstrainedPresetWithoutProfile: true
2651
+ }).length === 0 && arrangementAppearancePresets.some((look) => look.blockKinds.some((kind) => kind === blockKind));
2652
+ }
2482
2653
  function editorBlockConfigurationIssues(block, availability, layouts) {
2483
2654
  const noLooksIssue = availability.kind === "misconfigured" ? {
2484
2655
  kind: "no-appearance-presets-for-block-kind",
@@ -2542,9 +2713,14 @@ function editorArrangementCapabilities(block, mode, style) {
2542
2713
  "highlight"
2543
2714
  ],
2544
2715
  declaredSurfaces: style?.looks.kind === "offers" ? Object.keys(style.looks.surfaces) : [],
2545
- knobBuffet: block.knobBuffet ?? []
2716
+ knobBuffet: block.knobBuffet ?? [],
2717
+ ...contentPartsCapability(block)
2546
2718
  };
2547
2719
  }
2720
+ function contentPartsCapability(block) {
2721
+ const contentParts = editorContentParts(block);
2722
+ return contentParts === void 0 ? {} : { contentParts };
2723
+ }
2548
2724
  function resolvedLookPreservesPin(resolved) {
2549
2725
  switch (resolved.kind) {
2550
2726
  case "offered":
@@ -2757,95 +2933,6 @@ function parseListLook(kind, value) {
2757
2933
  return listLooksByKind[kind].find((look) => look === value) ?? null;
2758
2934
  }
2759
2935
  //#endregion
2760
- //#region ../theme-core/src/site-styles/sectionPhotoGround.ts
2761
- /**
2762
- * How the Looks built on an arrangement use the photo. Looks that share an
2763
- * arrangement render the same tree, so they agree (a catalogue test holds
2764
- * them to it). Null for keys no arrangement Look uses.
2765
- */
2766
- function arrangementPhotoUse(blockKind, arrangementKey) {
2767
- return arrangementAppearancePresets.find((entry) => entry.blockKinds.some((kind) => kind === blockKind) && Object.values(entry.structure.byMode).includes(arrangementKey))?.structure.photoUse ?? null;
2768
- }
2769
- /** Older hero layouts no arrangement Look is built on, which show the photo beside the text. */
2770
- const recipeOnlyHeroLayoutsWithPhotoBeside = ["splitReverse"];
2771
- /** One photo-placement decision for the hero's renderers: does the photo paint the section ground? */
2772
- function heroPhotoPaintsGround(variant) {
2773
- const key = variant ?? "classic";
2774
- const use = arrangementPhotoUse("block.hero", key);
2775
- return use === null ? !recipeOnlyHeroLayoutsWithPhotoBeside.includes(key) : use === "behind";
2776
- }
2777
- //#endregion
2778
- //#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
2779
- /**
2780
- * The one owner of the facts `whenMissing` rules read from block content.
2781
- * Content facts also become `data-has-*` hooks; setting facts never do.
2782
- */
2783
- function arrangementContentFacts(content) {
2784
- const photoCount = arrangementPhotoCount(content);
2785
- const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
2786
- return {
2787
- photoCount,
2788
- facts: {
2789
- content: {
2790
- photo: photoCount > 0,
2791
- facts: Array.isArray(content.facts) && content.facts.length > 0,
2792
- featured,
2793
- outcome: typeof content.outcome === "string" && content.outcome.length > 0,
2794
- figure: typeof content.figure === "string" && content.figure.trim().length > 0,
2795
- entrance: isRecord$8(content.entrancePhoto)
2796
- },
2797
- settings: { "listed-by-week": content.listBy === "week" }
2798
- }
2799
- };
2800
- }
2801
- /** The content stage owns media presence for every arrangement consumer. */
2802
- function arrangementPhotoCount(content) {
2803
- if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$8(card) && isRecord$8(card.media)).length;
2804
- if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$8(member) && isRecord$8(member.photo)).length;
2805
- if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$8(item) && isRecord$8(item.image)).length;
2806
- if (isRecord$8(content.media) || isRecord$8(content.entrancePhoto)) return 1;
2807
- return storedSectionPhoto(content) === null ? 0 : 1;
2808
- }
2809
- /** Both rendering and join matching ask the publication-fallback owner. */
2810
- function resolveArrangementContentLook(runtime, mode, content, audience) {
2811
- const selected = runtime.byMode[mode ?? "default"];
2812
- if (!selected) return null;
2813
- const published = resolvePublishedLook({
2814
- look: selected.look,
2815
- facts: arrangementContentFacts(content).facts,
2816
- audience,
2817
- catalogue: runtime.available.map((entry) => entry.look)
2818
- });
2819
- return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
2820
- }
2821
- /** Section paint is decided here, after the effective Look, at its admitted render position. */
2822
- function resolveRuntimeSection(input) {
2823
- const rhythm = input.runtime && input.look ? input.placement === "column" ? null : input.runtime.rhythm[input.position % input.runtime.rhythm.length] ?? null : void 0;
2824
- const photo = input.runtime && input.look && input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
2825
- const background = input.placement === "column" ? resolveSectionBackground({ kind: "none" }, null, null) : resolveSectionBackground(parseCanonicalRuntimeBackground(input.content), null, rhythm, photo);
2826
- return {
2827
- background,
2828
- ground: deriveSectionGround(background, input.palette),
2829
- paint: sectionPaint(background),
2830
- styleBackground: sectionGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm))
2831
- };
2832
- }
2833
- function sectionPaint(resolved) {
2834
- if (resolved.kind === "base" || resolved.kind === "content-media") return "paint";
2835
- const background = resolved.background;
2836
- if (background.type === "color") return "paint";
2837
- return background.type === "image" && background.image != null ? "photo" : "other";
2838
- }
2839
- function sectionGroundToken(resolved) {
2840
- if (resolved.kind === "base") return "background";
2841
- switch (resolved.background.type) {
2842
- case "image":
2843
- case "video": return "media";
2844
- case "color": return resolved.background.color ?? "background";
2845
- case "gradient": return "gradient";
2846
- }
2847
- }
2848
- //#endregion
2849
2936
  //#region ../theme-core/src/accordions/defaults.ts
2850
2937
  /**
2851
2938
  * Generate default accordion system based on theme configuration
@@ -5375,26 +5462,22 @@ function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTre
5375
5462
  //#endregion
5376
5463
  //#region ../theme-core/src/header/generateHeaderLogoStyles.ts
5377
5464
  function generateHeaderLogoStyles(input) {
5378
- const { logo, themeId, tokens } = input;
5465
+ const { logo, themeId } = input;
5379
5466
  return `\n${`:where([data-theme-scope="${themeId}"]) .header-logo-text`} {\n ${[
5380
5467
  ...logoTextColorRules(input),
5381
5468
  logo?.fontFamily === "body" ? "font-family: var(--font-body);" : "font-family: var(--font-heading);",
5382
5469
  ...logoLetterSpacingRules(logo),
5383
- ...logoGradientRules(logo, tokens),
5384
5470
  ...logoContrastRules(input)
5385
5471
  ].join("\n ")}\n}\n${mobilePanelLogoColor(input)}`;
5386
5472
  }
5387
5473
  function mobilePanelLogoColor(input) {
5388
- if (input.logo?.gradient) return "";
5389
5474
  const { themeId, tokens, textColor, fallbackTextColor } = input;
5390
5475
  const fallback = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
5391
5476
  return `\n${`:where([data-theme-scope="${themeId}"]) .nav-mobile-panel .header-logo-text`},\n${`:where(.nav-mobile-panel[data-theme-scope="${themeId}"]) .header-logo-text`} {\n color: ${surfaceForegroundValue("text", fallback)};\n}\n`;
5392
5477
  }
5393
5478
  function logoTextColorRules(input) {
5394
- const { logo, textColor, fallbackTextColor, tokens, useSurfaceTextColor } = input;
5395
- if (logo?.gradient || !textColor && !useSurfaceTextColor) return [];
5396
- const authoredColor = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
5397
- return [`color: ${useSurfaceTextColor ? surfaceForegroundValue("text", authoredColor) : authoredColor};`];
5479
+ const { textColor, fallbackTextColor, tokens } = input;
5480
+ return [`color: ${surfaceForegroundValue("text", tokens.getColor(textColor ?? fallbackTextColor ?? "text"))};`];
5398
5481
  }
5399
5482
  function logoLetterSpacingRules(logo) {
5400
5483
  const spacing = logo?.letterSpacing;
@@ -5405,18 +5488,7 @@ function logoLetterSpacingRules(logo) {
5405
5488
  widest: "0.15em"
5406
5489
  }[spacing]};`];
5407
5490
  }
5408
- function logoGradientRules(logo, tokens) {
5409
- if (!logo?.gradient) return [];
5410
- return [
5411
- `background: linear-gradient(to right, ${tokens.getColor("primary")}, ${tokens.getColor("accent")});`,
5412
- "-webkit-background-clip: text;",
5413
- "-webkit-text-fill-color: transparent;",
5414
- "background-clip: text;",
5415
- "color: transparent;"
5416
- ];
5417
- }
5418
5491
  function logoContrastRules(input) {
5419
- if (input.logo?.gradient || input.useSurfaceTextColor) return [];
5420
5492
  const colorToken = input.textColor?.trim() || input.fallbackTextColor?.trim() || "text";
5421
5493
  const shadow = buildTextContrastShadow({
5422
5494
  theme: input.theme,
@@ -5451,8 +5523,7 @@ function generateHeaderCss(options) {
5451
5523
  theme,
5452
5524
  textColor: header.textColor,
5453
5525
  fallbackTextColor: header.navLinkStyle?.colorToken,
5454
- contrastTreatment: headerContrastTreatment ?? void 0,
5455
- useSurfaceTextColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
5526
+ contrastTreatment: header.background?.contentOwner === "site-chrome-editor" ? void 0 : headerContrastTreatment ?? void 0
5456
5527
  }));
5457
5528
  cssChunks.push(generateLogoTextBehaviorStyles(header.logoText, themeId));
5458
5529
  cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
@@ -5464,7 +5535,7 @@ function generateHeaderCss(options) {
5464
5535
  cssChunks.push(generateMobilePanelStyles(themeId, dropdown));
5465
5536
  if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens, responsiveMode));
5466
5537
  cssChunks.push(generateNavContainerStyles(header, themeId, tokens, theme, solvedInks));
5467
- cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
5538
+ cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens, headerGroundButton(header, theme)));
5468
5539
  cssChunks.push(generateCtaGapStyles(header, themeId));
5469
5540
  return cssChunks.filter(Boolean).join("\n\n");
5470
5541
  }
@@ -5796,10 +5867,10 @@ const HEADER_CTA_GAP_MAP = {
5796
5867
  * Keep the shared button's structure/effects while making the header own the
5797
5868
  * palette relationship for both desktop and mobile CTAs.
5798
5869
  */
5799
- function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
5870
+ function generateHeaderCtaTreatmentStyles(header, themeId, tokens, groundButton) {
5800
5871
  if (header.ctaTreatment !== "inverted") return "";
5801
5872
  const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
5802
- const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
5873
+ const mobileSelector = `:where([data-theme-scope="${themeId}"]) :is(.nav-mobile-cta, .header-mobile-bar-cta)`;
5803
5874
  const selectors = `${desktopSelector},\n${mobileSelector}`;
5804
5875
  const hoverSelectors = [
5805
5876
  `${desktopSelector}:hover`,
@@ -5810,10 +5881,10 @@ function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
5810
5881
  const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
5811
5882
  return `
5812
5883
  ${selectors} {
5813
- background-color: ${tokens.getColor("background")};
5884
+ background-color: ${groundButton?.backgroundCss ?? tokens.getColor("background")};
5814
5885
  background-image: none;
5815
- color: ${tokens.getColor("onBackground")};
5816
- border-color: currentColor;
5886
+ color: ${groundButton?.foregroundCss ?? tokens.getColor("onBackground")};
5887
+ border-color: ${groundButton?.backgroundCss ?? "currentColor"};
5817
5888
  }
5818
5889
 
5819
5890
  ${hoverSelectors} {
@@ -5830,6 +5901,24 @@ ${focusSelectors} {
5830
5901
  `;
5831
5902
  }
5832
5903
  /**
5904
+ * A style that names the main button's label colour on the header's own
5905
+ * ground (issue 1713) dresses the inverted CTA as that button, with its fill
5906
+ * as the edge. The colours come from the shared solid-button resolution, so the
5907
+ * label falls back exactly as that button's would. Styles that name only a fill
5908
+ * keep the page-colour CTA with its outline.
5909
+ */
5910
+ function headerGroundButton(header, theme) {
5911
+ const ground = header.background?.type === "color" ? header.background.color : void 0;
5912
+ const request = typeof ground === "string" ? theme.buttons?.surfaceContexts?.[ground] : void 0;
5913
+ if (!request?.primaryText) return null;
5914
+ const resolved = resolveSolidButtonColour({
5915
+ variantId: "primary",
5916
+ state: "base",
5917
+ palette: expandPalette(theme.palette)
5918
+ }, request.primary, request.primaryText);
5919
+ return resolved.ok ? resolved.colour : null;
5920
+ }
5921
+ /**
5833
5922
  * Generate CTA button gap styles (left margin between nav links and CTA)
5834
5923
  */
5835
5924
  function generateCtaGapStyles(header, themeId) {
@@ -5897,6 +5986,18 @@ const waveMaskSvgPaths = {
5897
5986
  bold: "M0 72V44C90 14 270 14 360 44C450 74 630 74 720 44C810 14 990 14 1080 44C1170 74 1350 74 1440 44V72H0Z",
5898
5987
  drift: "M0 72V39C115 31 205 54 340 48C505 41 610 16 760 33C920 51 1015 64 1160 44C1280 27 1375 35 1440 50V72H0Z"
5899
5988
  };
5989
+ /**
5990
+ * The arc (issue 1713): the next section's colour rises to a shallow peak in the
5991
+ * middle. With echo, two lines follow the arc below it, cut part-way into the
5992
+ * shape so the colour behind shows through them; that keeps them a blend of the
5993
+ * two sections' colours, whatever the palette. They fade out towards the peak.
5994
+ */
5995
+ const arcShapePath = "M0 110V60Q720 -30 1440 60V110Z";
5996
+ const arcEchoLinePaths = ["M0 84Q720 -6 1440 84", "M0 102Q720 12 1440 102"];
5997
+ function arcMaskDataUrl(echo) {
5998
+ const lines = arcEchoLinePaths.map((d) => `<path d='${d}' fill='none' stroke='url(#fade)' stroke-width='1.5' vector-effect='non-scaling-stroke'/>`).join("");
5999
+ return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'>${echo ? `<defs><linearGradient id='fade' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'><stop offset='0' stop-color='black' stop-opacity='0.42'/><stop offset='0.5' stop-color='black' stop-opacity='0'/><stop offset='1' stop-color='black' stop-opacity='0.42'/></linearGradient><mask id='lines'><rect width='1440' height='110' fill='white'/>${lines}</mask></defs><path d='${arcShapePath}' fill='white' mask='url(#lines)'/>` : `<path d='${arcShapePath}' fill='white'/>`}</svg>`);
6000
+ }
5900
6001
  function waveMaskDataUrl(mask) {
5901
6002
  return svgDataUrl(`<svg viewBox='0 0 1440 72' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='${waveMaskSvgPaths[mask]}' fill='white'/></svg>`);
5902
6003
  }
@@ -5976,18 +6077,8 @@ function shapeDeclarations(entry) {
5976
6077
  "background: linear-gradient(to bottom, transparent 0%, var(--boundary-shape-paint) 100%);",
5977
6078
  "background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--boundary-shape-paint) 16%, transparent) 34%, color-mix(in srgb, var(--boundary-shape-paint) 68%, transparent) 78%, var(--boundary-shape-paint) 100%);"
5978
6079
  ];
5979
- case "wave": {
5980
- const mask = waveMaskDataUrl(entry.shape.mask);
5981
- return [
5982
- "background: var(--boundary-shape-paint);",
5983
- `mask-image: url("${mask}");`,
5984
- "mask-repeat: no-repeat;",
5985
- "mask-size: 100% 100%;",
5986
- `-webkit-mask-image: url("${mask}");`,
5987
- "-webkit-mask-repeat: no-repeat;",
5988
- "-webkit-mask-size: 100% 100%;"
5989
- ];
5990
- }
6080
+ case "wave": return maskDeclarations(waveMaskDataUrl(entry.shape.mask));
6081
+ case "arc": return [...maskDeclarations(arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
5991
6082
  case "angle": return [
5992
6083
  "height: calc(var(--boundary-height) + 2px);",
5993
6084
  "background: var(--boundary-shape-paint);",
@@ -5995,6 +6086,17 @@ function shapeDeclarations(entry) {
5995
6086
  ];
5996
6087
  }
5997
6088
  }
6089
+ function maskDeclarations(mask) {
6090
+ return [
6091
+ "background: var(--boundary-shape-paint);",
6092
+ `mask-image: url("${mask}");`,
6093
+ "mask-repeat: no-repeat;",
6094
+ "mask-size: 100% 100%;",
6095
+ `-webkit-mask-image: url("${mask}");`,
6096
+ "-webkit-mask-repeat: no-repeat;",
6097
+ "-webkit-mask-size: 100% 100%;"
6098
+ ];
6099
+ }
5998
6100
  function rule(selector, declarations) {
5999
6101
  return `${selector} {\n ${declarations.join("\n ")}\n}`;
6000
6102
  }
@@ -6398,7 +6500,8 @@ ${root} :where(h1.heading-display) {
6398
6500
  font-size: var(--fs-h1-display-fluid, var(--fs-h1-display, calc(var(--fs-h1) * 1.5)));
6399
6501
  }
6400
6502
 
6401
- ${root} :where(h2.heading-display) {
6503
+ ${root} :where(h2.heading-display),
6504
+ ${root} :where(h1.rb-heading-level-2.heading-display) {
6402
6505
  font-size: var(--fs-h2-display-fluid, var(--fs-h2-display, calc(var(--fs-h2) * 1.35)));
6403
6506
  }`;
6404
6507
  }
@@ -6412,7 +6515,8 @@ ${root} :where(h1.heading-compact) {
6412
6515
  font-size: calc(var(--fs-h1) * 0.75);
6413
6516
  }
6414
6517
 
6415
- ${root} :where(h2.heading-compact) {
6518
+ ${root} :where(h2.heading-compact),
6519
+ ${root} :where(h1.rb-heading-level-2.heading-compact) {
6416
6520
  font-size: calc(var(--fs-h2) * 0.8);
6417
6521
  }
6418
6522
 
@@ -6439,15 +6543,18 @@ ${root} :where(p, li, td, th, label, span) {
6439
6543
  }`;
6440
6544
  }
6441
6545
  function headingLevelsCss(root) {
6442
- return `/* Heading level styles with fluid typography */\n${[
6546
+ return `/* Heading level styles with fluid typography */\n${[...[
6443
6547
  1,
6444
6548
  2,
6445
6549
  3,
6446
6550
  4,
6447
6551
  5,
6448
6552
  6
6449
- ].map((level) => {
6450
- return `${root} :where(h${level}) {
6553
+ ].map((level) => headingLevelCss(root, level, `h${level}`)), headingLevelCss(root, 2, "h1.rb-heading-level-2")].join("\n\n")}`;
6554
+ }
6555
+ /** The semantic tag and visual heading role can differ for a promoted page title. */
6556
+ function headingLevelCss(root, level, selector) {
6557
+ return `${root} :where(${selector}) {
6451
6558
  font-size: var(--fs-h${level}-fluid, ${level < 4 ? `var(--fs-h${level})` : `var(--fs-h${level}, ${level === 4 ? "var(--fs-h3)" : "var(--fs-body)"})`});
6452
6559
  font-weight: var(--fw-h${level}, var(--font-weight-heading));
6453
6560
  font-style: var(--fi-h${level}, var(--fi-heading, normal));
@@ -6455,7 +6562,6 @@ function headingLevelsCss(root) {
6455
6562
  line-height: var(--lh-h${level}, var(--lh-heading));
6456
6563
  color: ${surfaceForegroundValue("heading", globalHeadingColorFallback(level))};
6457
6564
  }`;
6458
- }).join("\n\n")}`;
6459
6565
  }
6460
6566
  /** Optional width rules leave the historical CSS bytes unchanged. */
6461
6567
  function generateFontWidthCss(root, typography) {
@@ -6489,6 +6595,7 @@ function generateFontWidthCss(root, typography) {
6489
6595
  "h5",
6490
6596
  "h6"
6491
6597
  ].map((level) => rule(`${root} :where(${level})`, typography.headings[level]?.width)),
6598
+ rule(`${root} :where(h1.rb-heading-level-2)`, typography.headings.h2?.width ?? headingWidth),
6492
6599
  `${root} :where(h1, h2, h3, h4, h5, h6) :where(span) { font-stretch: inherit; }`,
6493
6600
  rule(`${root} :where(.rb-eyebrow)`, typography.eyebrow ? typography.eyebrow.width ?? 100 : bodyWidth)
6494
6601
  ].filter(Boolean).join("\n");
@@ -9630,6 +9737,7 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
9630
9737
  const strictStoredSchema = deriveStrictContentZodFromPlans(plans);
9631
9738
  return Object.freeze({
9632
9739
  fields: Array.isArray(manifestOrFields) ? manifestOrFields : manifestOrFields.fields,
9740
+ contentPresence: Array.isArray(manifestOrFields) ? void 0 : manifestOrFields.contentPresence,
9633
9741
  [compiledManifestContentContract]: Object.freeze({
9634
9742
  plans,
9635
9743
  strictStoredSchema,
@@ -10509,7 +10617,7 @@ const cardRoleClassTransform = {
10509
10617
  run: (value, options, context) => {
10510
10618
  const baseClass = options?.baseClass ?? "";
10511
10619
  const stylesPath = options?.stylesPath ?? "content._cardStyles";
10512
- const stylesInput = asPartialObject(readPath(context.viewModel, stylesPath)) ?? {};
10620
+ const stylesInput = asPartialObject(readPath$1(context.viewModel, stylesPath)) ?? {};
10513
10621
  const itemRole = resolveItemCardRole(value, options?.itemRoleAliases);
10514
10622
  const emit = options?.emit ?? "surface";
10515
10623
  if (emit === "surface") return boxStylesCompositeTransform.run(stylesInput, {
@@ -10539,7 +10647,7 @@ const cardSlotRoleTransform = {
10539
10647
  })
10540
10648
  };
10541
10649
  function resolveBorderColorState(value, options, viewModel) {
10542
- const input = asPartialObject(options?.stylesPath ? readPath(viewModel, options.stylesPath) : value);
10650
+ const input = asPartialObject(options?.stylesPath ? readPath$1(viewModel, options.stylesPath) : value);
10543
10651
  if (!input) return null;
10544
10652
  return {
10545
10653
  input,
@@ -10568,7 +10676,7 @@ const boxStylesBorderColorTransform = {
10568
10676
  return rgbColorValue(parseBlockColorToken(fallbackToken) ?? "border");
10569
10677
  }
10570
10678
  };
10571
- function readPath(source, path) {
10679
+ function readPath$1(source, path) {
10572
10680
  if (!source || !path) return void 0;
10573
10681
  if (!path.includes(".")) return source[path];
10574
10682
  return path.split(".").reduce((acc, segment) => {
@@ -10630,9 +10738,9 @@ const sectionClassNameTransform = {
10630
10738
  const defaultSpacing = options?.defaultSpacing;
10631
10739
  const fullWidthPath = options?.fullWidthPath;
10632
10740
  const contextData = context.data;
10633
- const containerStylesValue = readPath(contextData, containerStylesPath);
10741
+ const containerStylesValue = readPath$1(contextData, containerStylesPath);
10634
10742
  const fullWidthFromContainerStyles = (containerStylesValue && typeof containerStylesValue === "object" ? containerStylesValue : void 0)?.fullWidth === true;
10635
- const fullWidthFromPath = fullWidthPath ? readPath(contextData, fullWidthPath) === true : false;
10743
+ const fullWidthFromPath = fullWidthPath ? readPath$1(contextData, fullWidthPath) === true : false;
10636
10744
  const fullWidth = fullWidthFromContainerStyles || fullWidthFromPath;
10637
10745
  let adjustedBaseClass = baseClass;
10638
10746
  if (fullWidth && baseClass) adjustedBaseClass = baseClass.split(" ").filter((cls) => !cls.startsWith("rb-px-")).join(" ").trim();
@@ -12976,23 +13084,302 @@ const teamMemberFragment = defineFragment({
12976
13084
  ])
12977
13085
  });
12978
13086
  //#endregion
12979
- //#region ../blocks/src/system/node/fragments/offeringDetailsSection.ts
12980
- /** Details blocks share their heading, section and column-aware container. */
12981
- function offeringDetailsSection(details) {
12982
- return styledSection({
12983
- baseClass: "",
12984
- spacing: "spacious",
12985
- children: sectionContainer([text({
12986
- as: "h2",
12987
- "data-slot": "details-heading"
12988
- }, bind("content.heading"), when("content.heading")), details], { gap: "lg" })
12989
- });
13087
+ //#region ../blocks/src/system/blocks/class-prices.model.ts
13088
+ const classPricingSchema = z.object({
13089
+ seriesId: z.string(),
13090
+ bookingScope: z.enum(["single_occurrence", "whole_series"]).optional(),
13091
+ pricing: publicEventPricingSchema
13092
+ });
13093
+ const classPricesDataSchema = z.object({
13094
+ classPricing: classPricingSchema.optional(),
13095
+ sitePasses: publicPassProductCollectionSchema,
13096
+ autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional()
13097
+ });
13098
+ const classPricesCopySchema = z.object({
13099
+ sessionLabel: z.string().nullish(),
13100
+ sessionText: z.string().nullish(),
13101
+ discountLabel: z.string().nullish(),
13102
+ discountText: z.string().nullish(),
13103
+ passesLabel: z.string().nullish(),
13104
+ passesText: z.string().nullish(),
13105
+ sessionLinkLabel: z.string().nullish(),
13106
+ sessionLink: linkSchema.nullish().catch(void 0),
13107
+ discountLinkLabel: z.string().nullish(),
13108
+ discountLink: linkSchema.nullish().catch(void 0),
13109
+ passesLinkLabel: z.string().nullish(),
13110
+ passesLink: linkSchema.nullish().catch(void 0),
13111
+ passPriceMode: z.enum(["per-class", "pass-price"]).nullish()
13112
+ });
13113
+ function itemLink(kind, copy) {
13114
+ const label = copy[`${kind}LinkLabel`]?.trim();
13115
+ const href = copy[`${kind}Link`];
13116
+ return label && href ? { link: {
13117
+ label,
13118
+ href
13119
+ } } : {};
13120
+ }
13121
+ const money = (amount, currency) => formatBookingPriceDisplay({
13122
+ kind: "exact",
13123
+ amount,
13124
+ currency
13125
+ }, { decimals: "auto" });
13126
+ function discountItem(discount, currency, copy) {
13127
+ if (!discount) return [];
13128
+ const figure = discount.discountType === "percent" ? `${discount.discountPercent}% off` : `${money(discount.discountAmountCents, currency)} off`;
13129
+ const minimum = discount.minTicketsRequired;
13130
+ return [{
13131
+ kind: "discount",
13132
+ figure,
13133
+ label: copy.discountLabel?.trim() || discount.publicLabel,
13134
+ text: copy.discountText?.trim() || (minimum ? `When you buy ${minimum} or more tickets.` : "Applied automatically when you book."),
13135
+ ...itemLink("discount", copy)
13136
+ }];
12990
13137
  }
12991
- //#endregion
12992
- //#region ../blocks/src/system/blocks/service-details.ts
12993
- /** The facts come from the service read; a section with none isn't shown, heading included. */
12994
- const facts = {
12995
- from: "data.service",
13138
+ function passItem(passes, currency, copy) {
13139
+ const amounts = passes.filter((pass) => pass.currency === currency).map((pass) => copy.passPriceMode === "pass-price" ? pass.price : pass.pricePerCredit);
13140
+ if (!amounts.length) return [];
13141
+ const amount = money(Math.min(...amounts), currency);
13142
+ return [{
13143
+ kind: "passes",
13144
+ figure: copy.passPriceMode === "pass-price" ? `From ${amount}` : `${amount} a class`,
13145
+ label: copy.passesLabel?.trim() || "Class passes",
13146
+ text: copy.passesText?.trim() || "Save when you come regularly.",
13147
+ ...itemLink("passes", copy)
13148
+ }];
13149
+ }
13150
+ /** One decision for visibility, figures and default copy; authored copy never creates a fact. */
13151
+ function resolveClassPriceItems(data, copy = {}) {
13152
+ const subject = data.classPricing;
13153
+ if (!subject || subject.bookingScope !== "single_occurrence") return [];
13154
+ const pricing = subject.pricing;
13155
+ if (pricing.kind === "external") return [];
13156
+ const figure = formatEventStartingPrice(pricing);
13157
+ return [
13158
+ ...figure ? [{
13159
+ kind: "session",
13160
+ figure,
13161
+ label: copy.sessionLabel?.trim() || "Drop in",
13162
+ text: copy.sessionText?.trim() || "Book one class at a time.",
13163
+ ...itemLink("session", copy)
13164
+ }] : [],
13165
+ ...discountItem(data.autoApplyDiscount, pricing.currency, copy),
13166
+ ...passItem(data.sitePasses.passes, pricing.currency, copy)
13167
+ ];
13168
+ }
13169
+ //#endregion
13170
+ //#region ../blocks/src/system/blocks/class-prices.ts
13171
+ const itemNames = {
13172
+ session: "Drop in",
13173
+ discount: "Discount",
13174
+ passes: "Passes"
13175
+ };
13176
+ const copyFields = [
13177
+ "session",
13178
+ "discount",
13179
+ "passes"
13180
+ ].flatMap((item) => [
13181
+ {
13182
+ id: `${item}Label`,
13183
+ type: "text",
13184
+ label: `${itemNames[item]} label`,
13185
+ required: false,
13186
+ multiline: false,
13187
+ description: "Leave blank to use the live details."
13188
+ },
13189
+ {
13190
+ id: `${item}Text`,
13191
+ type: "text",
13192
+ label: `${itemNames[item]} supporting text`,
13193
+ required: false,
13194
+ multiline: false,
13195
+ description: "Leave blank to use the live details."
13196
+ },
13197
+ {
13198
+ id: `${item}LinkLabel`,
13199
+ type: "text",
13200
+ label: `${itemNames[item]} link text`,
13201
+ required: false,
13202
+ multiline: false,
13203
+ maxLength: 80,
13204
+ description: "Optional. A link under the text, such as \"See passes and prices\"."
13205
+ },
13206
+ {
13207
+ id: `${item}Link`,
13208
+ type: "link",
13209
+ label: `${itemNames[item]} link destination`,
13210
+ required: false
13211
+ }
13212
+ ]);
13213
+ const priceItem = styledCard([
13214
+ text({
13215
+ as: "p",
13216
+ ...lookSlot("item-meta")
13217
+ }, bind("price.figure")),
13218
+ text({
13219
+ as: "h3",
13220
+ ...lookSlot("item-title")
13221
+ }, bind("price.label")),
13222
+ text({
13223
+ as: "p",
13224
+ ...lookSlot("item-text")
13225
+ }, bind("price.text"), when("price.text")),
13226
+ el("div", lookSlot("item-actions"), [link({
13227
+ className: "rb-item-text-link",
13228
+ linkRequired: true,
13229
+ href: { $bind: {
13230
+ from: "price.link.href",
13231
+ transforms: [{ id: "links.resolve" }]
13232
+ } }
13233
+ }, [text({ as: "span" }, bind("price.link.label"))])], when("price.link"))
13234
+ ], {
13235
+ stylesFrom: "content._cardStyles",
13236
+ backgroundFrom: "content._cardStyles.background",
13237
+ dataProps: {
13238
+ ...lookSlot("item"),
13239
+ "data-card-list-item": true
13240
+ }
13241
+ });
13242
+ const items = el("div", {
13243
+ ...lookSlot("items"),
13244
+ "data-meta-position": "end",
13245
+ "data-card-list": true
13246
+ }, [{
13247
+ ...priceItem,
13248
+ $repeat: {
13249
+ collection: {
13250
+ from: "data.classPrices",
13251
+ transforms: [{ id: "events.classPriceItems" }],
13252
+ pick: "collection"
13253
+ },
13254
+ itemName: "price"
13255
+ }
13256
+ }]);
13257
+ const layout = styledSection({
13258
+ baseClass: "",
13259
+ spacing: "medium",
13260
+ children: styledContainer({
13261
+ rootType: "stack",
13262
+ rootProps: {
13263
+ gap: "lg",
13264
+ ...lookSlot("layout")
13265
+ },
13266
+ children: [
13267
+ text({
13268
+ as: "h2",
13269
+ ...lookSlot("heading")
13270
+ }, bind("content.heading"), when("content.heading")),
13271
+ items,
13272
+ cardListSectionAction()
13273
+ ]
13274
+ })
13275
+ });
13276
+ const classPricesBlockDefinition = {
13277
+ manifest: createBlockManifest({
13278
+ id: "block.class-prices",
13279
+ version: "1.0.0",
13280
+ title: "Class prices",
13281
+ titleSource: "heading",
13282
+ description: "Live drop-in prices, automatic discounts and passes for a class.",
13283
+ category: "events-and-bookings",
13284
+ contentSource: { kind: "entries" },
13285
+ requiredFeatures: ["bookings.events"],
13286
+ icon: "Ticket",
13287
+ tags: [
13288
+ "class",
13289
+ "prices",
13290
+ "passes"
13291
+ ],
13292
+ behaviours: {
13293
+ supportsThemeSwitching: true,
13294
+ inlineEditing: false,
13295
+ animation: false,
13296
+ paletteHidden: false
13297
+ },
13298
+ additionalFields: [
13299
+ createSiteOptionSelectField({
13300
+ id: "seriesId",
13301
+ label: "Class",
13302
+ required: false,
13303
+ multiple: false,
13304
+ optionSource: "eventSeries",
13305
+ ui: {
13306
+ intent: "behavior",
13307
+ searchThreshold: 1
13308
+ },
13309
+ description: "Choose a class booked one session at a time."
13310
+ }),
13311
+ {
13312
+ id: "heading",
13313
+ type: "text",
13314
+ label: "Heading",
13315
+ required: false,
13316
+ multiline: false
13317
+ },
13318
+ ...copyFields,
13319
+ ...cardListSectionActionFields,
13320
+ {
13321
+ id: "passPriceMode",
13322
+ type: "select",
13323
+ label: "Pass price to show",
13324
+ required: false,
13325
+ multiple: false,
13326
+ defaultValue: "per-class",
13327
+ ui: { intent: "behavior" },
13328
+ options: [{
13329
+ value: "per-class",
13330
+ label: "Cheapest price per class"
13331
+ }, {
13332
+ value: "pass-price",
13333
+ label: "Cheapest pass price"
13334
+ }]
13335
+ }
13336
+ ],
13337
+ layout,
13338
+ variants: {
13339
+ cards: layout,
13340
+ index: layout
13341
+ },
13342
+ defaultVariant: "cards",
13343
+ variantMeaning: {
13344
+ kind: "arrangement",
13345
+ lookOnlyKeys: ["cards", "index"]
13346
+ }
13347
+ }),
13348
+ dataSchemas: { classPrices: classPricesDataSchema.optional() },
13349
+ dataLoaders: { classPrices: {
13350
+ endpoint: "getPublicEventDetails",
13351
+ mode: "server",
13352
+ requiredParams: ["seriesId"],
13353
+ params: {
13354
+ siteId: { $bind: { from: "$root.siteId" } },
13355
+ stage: { $bind: {
13356
+ from: "$root.previewStage",
13357
+ fallback: "published"
13358
+ } },
13359
+ seriesId: { $bind: { from: "content.seriesId" } },
13360
+ readProfile: "details",
13361
+ limit: "1"
13362
+ }
13363
+ } }
13364
+ };
13365
+ //#endregion
13366
+ //#region ../blocks/src/system/node/fragments/offeringDetailsSection.ts
13367
+ /** Details blocks share their heading, section and column-aware container. */
13368
+ function offeringDetailsSection(details) {
13369
+ return styledSection({
13370
+ baseClass: "",
13371
+ spacing: "spacious",
13372
+ children: sectionContainer([text({
13373
+ as: "h2",
13374
+ "data-slot": "details-heading"
13375
+ }, bind("content.heading"), when("content.heading")), details], { gap: "lg" })
13376
+ });
13377
+ }
13378
+ //#endregion
13379
+ //#region ../blocks/src/system/blocks/service-details.ts
13380
+ /** The facts come from the service read; a section with none isn't shown, heading included. */
13381
+ const facts = {
13382
+ from: "data.service",
12996
13383
  transforms: [{ id: "appointments.serviceDetailsFacts" }]
12997
13384
  };
12998
13385
  function whenServiceHasFacts(node) {
@@ -13430,6 +13817,28 @@ const headlineRowLayout = heroLookLayout([
13430
13817
  ]);
13431
13818
  const copyOverGalleryLayout = heroLookLayout([lookCopy, el("div", lookSlot("gallery"), [lookPhoto])]);
13432
13819
  const pageHeadLayout = heroLookLayout([lookCopy]);
13820
+ /**
13821
+ * Issue 1713: the words beside three photos, the hero photo first and the two
13822
+ * more photos after it. Each photo's frame is left out when it has no photo, so
13823
+ * visitors see only the photos that are set; the editor shows a placeholder for each.
13824
+ */
13825
+ const heroPhotoTrioArrangement = "photo-trio";
13826
+ const morePhotosField = "morePhotos";
13827
+ /** How many of the hero's more photos are set. Only the photo-trio arrangement shows them (see lookParts). */
13828
+ function heroMorePhotoCount(content) {
13829
+ const photos = content[morePhotosField];
13830
+ return Array.isArray(photos) ? photos.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length : 0;
13831
+ }
13832
+ const trioPhoto = (path, mediaProps) => el("figure", lookSlot("media"), [media({
13833
+ className: "rb-h-full rb-w-full rb-object-cover",
13834
+ ...mediaProps,
13835
+ ...lookSlot("photo")
13836
+ }, bind(path))], when(path));
13837
+ const photoTrioLayout = heroLookLayout([lookCopy, el("div", lookSlot("gallery"), [
13838
+ trioPhoto("_sectionStyles.background.image", heroPriorityMediaProps),
13839
+ trioPhoto(`content.${morePhotosField}[0].image`, { loading: "eager" }),
13840
+ trioPhoto(`content.${morePhotosField}[1].image`, { loading: "eager" })
13841
+ ])]);
13433
13842
  const heroBlockDefinition = { manifest: createBlockManifest({
13434
13843
  id: "block.hero",
13435
13844
  title: "Hero",
@@ -13540,6 +13949,33 @@ const heroBlockDefinition = { manifest: createBlockManifest({
13540
13949
  richTextVariant: "limited"
13541
13950
  }
13542
13951
  },
13952
+ {
13953
+ id: morePhotosField,
13954
+ type: "repeater",
13955
+ label: "More photos",
13956
+ description: "The hero photo goes at the top, and these two sit under it.",
13957
+ required: false,
13958
+ itemLabel: "Photo",
13959
+ minItems: 0,
13960
+ maxItems: 2,
13961
+ allowConversion: false,
13962
+ ui: {
13963
+ intent: "content",
13964
+ repeaterPreset: "thumbnailGrid",
13965
+ thumbnailField: "image",
13966
+ visibleWhen: {
13967
+ field: "variant",
13968
+ equals: heroPhotoTrioArrangement
13969
+ }
13970
+ },
13971
+ schema: { fields: [{
13972
+ id: "image",
13973
+ type: "media",
13974
+ label: "Photo",
13975
+ required: true,
13976
+ mediaKinds: ["image"]
13977
+ }] }
13978
+ },
13543
13979
  createImageShapeField({
13544
13980
  id: "imageShape",
13545
13981
  label: "Image shape",
@@ -13556,6 +13992,7 @@ const heroBlockDefinition = { manifest: createBlockManifest({
13556
13992
  "headline-row": headlineRowLayout,
13557
13993
  "copy-over-gallery": copyOverGalleryLayout,
13558
13994
  "page-head": pageHeadLayout,
13995
+ "photo-trio": photoTrioLayout,
13559
13996
  classic: classicLayout$1,
13560
13997
  micro: microLayout,
13561
13998
  split: splitLayout,
@@ -13566,7 +14003,8 @@ const heroBlockDefinition = { manifest: createBlockManifest({
13566
14003
  lookOnlyKeys: [
13567
14004
  "headline-row",
13568
14005
  "copy-over-gallery",
13569
- "page-head"
14006
+ "page-head",
14007
+ "photo-trio"
13570
14008
  ]
13571
14009
  },
13572
14010
  defaultVariant: "classic",
@@ -13715,6 +14153,14 @@ function introHeading(className) {
13715
14153
  placeholder: "Add heading"
13716
14154
  } }), bind("content.title"));
13717
14155
  }
14156
+ /** The optional small heading above the title. It renders only when filled, so intros without one keep their markup. */
14157
+ function introEyebrow(className = "rb-eyebrow heading-eyebrow") {
14158
+ return text({
14159
+ as: "p",
14160
+ className,
14161
+ ...lookSlot("eyebrow")
14162
+ }, when("content.eyebrow"), bind("content.eyebrow"));
14163
+ }
13718
14164
  function introBody(className = "rb-prose rb-max-w-none") {
13719
14165
  return richText({
13720
14166
  className,
@@ -13742,6 +14188,7 @@ function introCopyStack(options = {}) {
13742
14188
  gap: "md",
13743
14189
  className: options.className ?? "rb-intro-copy"
13744
14190
  }, [
14191
+ introEyebrow(),
13745
14192
  introHeading(options.headingClassName ?? "rb-intro-title"),
13746
14193
  introBody(options.bodyClassName),
13747
14194
  introCtas(options.ctaJustify)
@@ -13780,16 +14227,21 @@ const statementCopyLayout = styledSection({
13780
14227
  children: styledContainer({ children: [el("div", {
13781
14228
  className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start",
13782
14229
  ...lookSlot("frame")
13783
- }, [introHeading("rb-intro-title rb-max-w-xl"), stack({
13784
- gap: "md",
13785
- className: "rb-intro-copy rb-max-w-xl",
13786
- ...lookSlot("copy")
13787
- }, [introBody(), introCtas("start")])])] }),
14230
+ }, [
14231
+ introEyebrow("rb-eyebrow heading-eyebrow rb-col-span-full"),
14232
+ introHeading("rb-intro-title rb-max-w-xl"),
14233
+ stack({
14234
+ gap: "md",
14235
+ className: "rb-intro-copy rb-max-w-xl",
14236
+ ...lookSlot("copy")
14237
+ }, [introBody(), introCtas("start")])
14238
+ ])] }),
13788
14239
  baseClass: "",
13789
14240
  spacing: "medium"
13790
14241
  });
13791
14242
  const statementMediaLayout = styledSection({
13792
14243
  children: styledContainer({ children: [el("div", { className: "rb-intro rb-intro-statement-media rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-lg-grid-cols-3 rb-lg-items-center" }, [
14244
+ introEyebrow("rb-eyebrow heading-eyebrow rb-col-span-full"),
13793
14245
  introHeading("rb-intro-title rb-intro-statement-media-title rb-max-w-xl"),
13794
14246
  stack({
13795
14247
  gap: "md",
@@ -13826,6 +14278,15 @@ const introBlockDefinition = { manifest: createBlockManifest({
13826
14278
  includeContainerStyles: true,
13827
14279
  titleSource: "title",
13828
14280
  additionalFields: [
14281
+ {
14282
+ id: "eyebrow",
14283
+ type: "text",
14284
+ label: "Small heading above the title",
14285
+ description: "Optional short label above the title, such as a date",
14286
+ required: false,
14287
+ multiline: false,
14288
+ maxLength: 80
14289
+ },
13829
14290
  {
13830
14291
  id: "title",
13831
14292
  type: "text",
@@ -13962,6 +14423,7 @@ const bodyTextBlockDefinition = { manifest: createBlockManifest({
13962
14423
  id: "block.body-text",
13963
14424
  title: "Body text",
13964
14425
  titleSource: "heading",
14426
+ contentPresence: ["heading", "body"],
13965
14427
  category: "text-and-images",
13966
14428
  contentSource: { kind: "inline" },
13967
14429
  fragments: [{
@@ -15589,6 +16051,7 @@ function footerBottomBarBorderColorStyle(footer) {
15589
16051
  //#endregion
15590
16052
  //#region ../blocks/src/system/transforms/registry/layout.ts
15591
16053
  const joinClasses = (parts) => parts.filter((part) => typeof part === "string" && part.trim().length > 0).join(" ").replace(/\s+/g, " ").trim();
16054
+ /** How the header brand renders; the logo media is hidden for `title-only`. */
15592
16055
  function resolveHeaderBrandDisplay(logo) {
15593
16056
  const display = logo?.brandDisplay ?? "logo-plus-title";
15594
16057
  if (display === "logo-only" || display === "title-only") return display;
@@ -15786,10 +16249,20 @@ const headerSectionBackgroundTransform = {
15786
16249
  id: "layout.headerSectionBackground",
15787
16250
  kind: "string",
15788
16251
  summary: "Resolve the inner site-header section background token",
15789
- run: (value) => {
15790
- return headerRootPaint(asPartialObject(value)) !== "own-surface" ? "raw:transparent" : "background";
15791
- }
16252
+ run: (value) => headerSectionBackground(asPartialObject(value))
15792
16253
  };
16254
+ /**
16255
+ * The header's own section takes the colour its ink is solved against
16256
+ * (`resolveHeaderVisualStyles`, which `layout.headerRootStyle` also reads), so
16257
+ * the bar's ground and text agree even where the root's painted layer doesn't
16258
+ * cover it. A translucent, gradient or transparent bar keeps the page colour
16259
+ * underneath, as before, so nothing shows through a sticky header.
16260
+ */
16261
+ function headerSectionBackground(header) {
16262
+ if (headerRootPaint(header) !== "own-surface") return "raw:transparent";
16263
+ const visuals = resolveHeaderVisualStyles(header);
16264
+ return header?.background?.type === "color" && !visuals.isTransparent && !visuals.backgroundToken.includes("/") ? visuals.backgroundToken : "background";
16265
+ }
15793
16266
  const footerRootStyleTransform = {
15794
16267
  id: "layout.footerRootStyle",
15795
16268
  kind: "formatter",
@@ -15942,8 +16415,24 @@ function chromeSurfaceTextToken(surface, theme, palette) {
15942
16415
  function readChromeTheme(viewModel) {
15943
16416
  return asPartialObject(asPartialObject(viewModel?.["$root"])?.theme) ?? {};
15944
16417
  }
16418
+ /**
16419
+ * Tone of a chrome surface for a theme and its expanded palette. The logo
16420
+ * transform and the editor's logo notice both judge "is this dark" here.
16421
+ */
16422
+ function resolveChromeSurfaceToneForTheme(surface, theme, palette) {
16423
+ return surfaceToneFromForegroundToken(palette, chromeSurfaceTextToken(surface, theme, palette));
16424
+ }
15945
16425
  function resolveChromeSurfaceTone(surface, context) {
15946
- return surfaceToneFromForegroundToken(context.theme.palette, chromeSurfaceTextToken(surface, readChromeTheme(context.viewModel), context.theme.palette));
16426
+ return resolveChromeSurfaceToneForTheme(surface, readChromeTheme(context.viewModel), context.theme.palette);
16427
+ }
16428
+ /** Both logos from the bound block content, or null when a caller passed a single `logo`. */
16429
+ function readLogoVariants(value) {
16430
+ const variants = asPartialObject(asPartialObject(value)?.logoVariants);
16431
+ if (!variants) return null;
16432
+ return {
16433
+ forLightBackgrounds: variants.forLightBackgrounds ?? null,
16434
+ forDarkBackgrounds: variants.forDarkBackgrounds ?? null
16435
+ };
15947
16436
  }
15948
16437
  const chromeLogoTransforms = [{
15949
16438
  id: "layout.chromeLogo",
@@ -15951,13 +16440,9 @@ const chromeLogoTransforms = [{
15951
16440
  summary: "Select the light- or dark-background site logo for a header or footer surface",
15952
16441
  schema: chromeLogoSchema,
15953
16442
  run: (value, options, context) => {
15954
- const content = asPartialObject(value);
15955
- const variants = asPartialObject(content?.logoVariants);
15956
- if (!variants) return content?.logo ?? null;
15957
- return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), {
15958
- forLightBackgrounds: variants.forLightBackgrounds ?? null,
15959
- forDarkBackgrounds: variants.forDarkBackgrounds ?? null
15960
- });
16443
+ const variants = readLogoVariants(value);
16444
+ if (!variants) return asPartialObject(value)?.logo ?? null;
16445
+ return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), variants);
15961
16446
  }
15962
16447
  }];
15963
16448
  const headerRuntimeTransforms = [{
@@ -16202,6 +16687,22 @@ const mobileCta = ctaButton({
16202
16687
  sizeFallback: "md",
16203
16688
  className: "nav-mobile-cta rb-w-full"
16204
16689
  });
16690
+ /**
16691
+ * The CTA in the phone bar, between the logo and the menu button, for header
16692
+ * styles that opt in (`ctaInMobileBar`). It sits at the end of the bar, so the
16693
+ * bar's space-between still puts the logo at the start.
16694
+ */
16695
+ const mobileBarCta = inline({
16696
+ className: "header-mobile-cta",
16697
+ align: "center"
16698
+ }, [ctaButton({
16699
+ basePath: "menu.ctaItem",
16700
+ whenPath: "menu.ctaItem.label",
16701
+ variantPath: "$root.theme.header.ctaVariant",
16702
+ linkPath: "menu.ctaItem.link",
16703
+ sizeFallback: "sm",
16704
+ className: "header-mobile-bar-cta"
16705
+ })], when("$root.theme.header.ctaInMobileBar", { equals: true }));
16205
16706
  const mobileToggleIcon = stack({
16206
16707
  gap: "xs",
16207
16708
  className: "nav-mobile-icon"
@@ -16296,11 +16797,15 @@ const mobileHeaderBar = inline({
16296
16797
  }),
16297
16798
  align: "start",
16298
16799
  justify: "between"
16299
- }, [logoRow, mobileToggleButton]);
16800
+ }, [
16801
+ logoRow,
16802
+ mobileBarCta,
16803
+ mobileToggleButton
16804
+ ]);
16300
16805
  const classicLayout = inline({
16301
16806
  className: bindProp("$root.theme.header.maxWidth", {
16302
- transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout ${desktopOnlyDisplay("flex")} rb-w-full rb-items-center rb-gap-6` })),
16303
- fallback: `rb-container rb-header-layout ${desktopOnlyDisplay("flex")} rb-w-full rb-items-center rb-gap-6`
16807
+ transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-items-center rb-gap-6` })),
16808
+ fallback: `rb-container rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-items-center rb-gap-6`
16304
16809
  }),
16305
16810
  align: "center"
16306
16811
  }, [
@@ -16312,19 +16817,19 @@ const centeredLayout = stack({
16312
16817
  gap: "md",
16313
16818
  align: "center",
16314
16819
  className: bindProp("$root.theme.header.maxWidth", {
16315
- transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center` })),
16316
- fallback: `rb-container rb-header-layout ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center`
16820
+ transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center` })),
16821
+ fallback: `rb-container rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center`
16317
16822
  })
16318
16823
  }, [centeredLogoRow, createNavRow(`${desktopOnlyDisplay("flex")} rb-flex-wrap rb-justify-center rb-gap-x-6 rb-gap-y-3`, "center")], when("$root.theme.header.variant", { equals: "centered" }));
16319
16824
  const floatingLayout = inline({
16320
16825
  [SITE_CHROME_VISIBLE_HEADER_ATTR]: "true",
16321
16826
  className: bindProp("$root.theme.header.maxWidth", {
16322
16827
  transforms: pipe(tx("layout.maxWidthClass", {
16323
- base: `rb-header-layout header-floating-container rb-absolute rb-left-1/2 rb-top-4 ${desktopOnlyDisplay("flex")} rb-w-calc-100-minus-2rem rb-max-w-7xl rb-translate-x-neg-1/2 rb-items-start rb-gap-6 rb-px-6`,
16828
+ base: `rb-header-layout header-desktop-bar header-floating-container rb-absolute rb-left-1/2 rb-top-4 ${desktopOnlyDisplay("flex")} rb-w-calc-100-minus-2rem rb-max-w-7xl rb-translate-x-neg-1/2 rb-items-start rb-gap-6 rb-px-6`,
16324
16829
  container: "",
16325
16830
  full: ""
16326
16831
  })),
16327
- fallback: `rb-header-layout header-floating-container rb-absolute rb-left-1/2 rb-top-4 ${desktopOnlyDisplay("flex")} rb-w-calc-100-minus-2rem rb-max-w-7xl rb-translate-x-neg-1/2 rb-items-start rb-gap-6 rb-px-6`
16832
+ fallback: `rb-header-layout header-desktop-bar header-floating-container rb-absolute rb-left-1/2 rb-top-4 ${desktopOnlyDisplay("flex")} rb-w-calc-100-minus-2rem rb-max-w-7xl rb-translate-x-neg-1/2 rb-items-start rb-gap-6 rb-px-6`
16328
16833
  }),
16329
16834
  align: "start"
16330
16835
  }, [
@@ -17478,6 +17983,7 @@ function featureCardActions() {
17478
17983
  }
17479
17984
  };
17480
17985
  }
17986
+ const featuredCardHook = { "data-has-featured": { $bind: { from: "card.featured" } } };
17481
17987
  const featureCard = styledCard([el("div", {
17482
17988
  ...lookSlot("item-media"),
17483
17989
  className: featureCardChildClass("media", "rb-feature-card-media-frame rb-overflow-hidden rb-w-full")
@@ -17507,6 +18013,11 @@ const featureCard = styledCard([el("div", {
17507
18013
  ...lookSlot("numeral"),
17508
18014
  "aria-hidden": "true"
17509
18015
  }, null),
18016
+ text({
18017
+ as: "p",
18018
+ ...lookSlot("item-meta"),
18019
+ className: "rb-feature-card-label"
18020
+ }, when("card.label"), bind("card.label")),
17510
18021
  text({
17511
18022
  as: "h3",
17512
18023
  ...lookSlot("item-title"),
@@ -17525,6 +18036,7 @@ const featureCard = styledCard([el("div", {
17525
18036
  itemRole: featureCardItemRole,
17526
18037
  dataProps: {
17527
18038
  ...lookSlot("item"),
18039
+ ...featuredCardHook,
17528
18040
  "data-surface-role": { $bind: {
17529
18041
  from: "card.surfaceRole",
17530
18042
  fallback: "open"
@@ -17646,11 +18158,19 @@ const carouselCardsLayout = (arrangement) => arrangementCardsLayout(el("carousel
17646
18158
  }]
17647
18159
  }]));
17648
18160
  const leadSupportLayout = arrangementCardsLayout(el("div", lookSlot("items"), [leadCard]));
17649
- const indexRow = el("li", lookSlot("item"), [
18161
+ const indexRow = el("li", {
18162
+ ...lookSlot("item"),
18163
+ ...featuredCardHook
18164
+ }, [
17650
18165
  el("div", {
17651
18166
  ...lookSlot("numeral"),
17652
18167
  "aria-hidden": "true"
17653
18168
  }),
18169
+ text({
18170
+ as: "p",
18171
+ ...lookSlot("item-meta"),
18172
+ className: "rb-feature-card-label"
18173
+ }, when("card.label"), bind("card.label")),
17654
18174
  text({
17655
18175
  as: "h3",
17656
18176
  ...lookSlot("item-title")
@@ -17705,7 +18225,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17705
18225
  label: "Cards",
17706
18226
  required: false,
17707
18227
  minItems: 1,
17708
- maxItems: 8,
18228
+ maxItems: 12,
17709
18229
  itemLabel: "Card",
17710
18230
  itemLabelSource: "title",
17711
18231
  allowConversion: true,
@@ -17729,7 +18249,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17729
18249
  ui: {
17730
18250
  intent: "style",
17731
18251
  visibleWhen: {
17732
- field: "variant",
18252
+ field: "$root.variant",
17733
18253
  equals: "editorial-diptych"
17734
18254
  }
17735
18255
  }
@@ -17760,6 +18280,30 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17760
18280
  iconPickerPreset: "feature"
17761
18281
  }
17762
18282
  },
18283
+ {
18284
+ id: "featured",
18285
+ type: "boolean",
18286
+ label: "Highlight this step",
18287
+ description: "Makes this step stand out from the others, for example the one to start with.",
18288
+ required: false,
18289
+ defaultValue: false,
18290
+ ui: {
18291
+ intent: "content",
18292
+ visibleWhen: {
18293
+ field: "$root.variant",
18294
+ equals: "sequence"
18295
+ }
18296
+ }
18297
+ },
18298
+ {
18299
+ id: "label",
18300
+ type: "text",
18301
+ label: "Short label above the title",
18302
+ description: "Optional. For example, a year such as 2019.",
18303
+ required: false,
18304
+ multiline: false,
18305
+ maxLength: 40
18306
+ },
17763
18307
  {
17764
18308
  id: "title",
17765
18309
  type: "text",
@@ -17773,7 +18317,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17773
18317
  type: "richText",
17774
18318
  label: "Text",
17775
18319
  required: false,
17776
- ui: { richTextVariant: "limited" }
18320
+ ui: { richTextVariant: "notes" }
17777
18321
  },
17778
18322
  createCtasRepeater({
17779
18323
  label: "Buttons",
@@ -19494,9 +20038,7 @@ const recurringScheduleBlockDefinition = {
19494
20038
  } },
19495
20039
  detailLevel: "listing",
19496
20040
  readProfile: "compact-list",
19497
- eventSurface: "custom",
19498
- eventPresets: "class",
19499
- scheduleScope: "any"
20041
+ ...eventWeekReadScope
19500
20042
  },
19501
20043
  mode: "server"
19502
20044
  } }
@@ -19545,6 +20087,14 @@ const groupOverrideFields = [
19545
20087
  defaultValue: false,
19546
20088
  ui: { intent: "behavior" }
19547
20089
  },
20090
+ {
20091
+ id: "hideWhenEmpty",
20092
+ type: "boolean",
20093
+ label: "Hide when nothing is coming up",
20094
+ required: false,
20095
+ defaultValue: false,
20096
+ ui: { intent: "behavior" }
20097
+ },
19548
20098
  {
19549
20099
  id: "presentation",
19550
20100
  type: "select",
@@ -19697,7 +20247,6 @@ const offeringsPreviewFields = [
19697
20247
  label: "Item button text",
19698
20248
  required: false,
19699
20249
  multiline: false,
19700
- defaultValue: OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT,
19701
20250
  maxLength: 40,
19702
20251
  ui: { intent: "content" }
19703
20252
  },
@@ -19791,6 +20340,7 @@ const offeringsPreviewLayout = [styledSection({
19791
20340
  ...cardListPresentationBindings,
19792
20341
  carouselRegion: { $bind: { from: "content.heading" } },
19793
20342
  renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
20343
+ showHiddenPlaceholder: { $bind: { from: "content._offeringsPreviewShowHiddenPlaceholder" } },
19794
20344
  displayMode: { $bind: displayModeBinding },
19795
20345
  oneOffering: { $bind: {
19796
20346
  from: "content.oneOffering",
@@ -19817,10 +20367,7 @@ const offeringsPreviewLayout = [styledSection({
19817
20367
  from: "content.buttonVariant",
19818
20368
  fallback: "primary"
19819
20369
  } },
19820
- buttonText: { $bind: {
19821
- from: "content.buttonText",
19822
- fallback: OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT
19823
- } },
20370
+ buttonText: { $bind: { from: "content.buttonText" } },
19824
20371
  emptyMessage: { $bind: {
19825
20372
  from: "content.emptyMessage",
19826
20373
  fallback: OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE
@@ -19846,7 +20393,9 @@ const offeringsPreviewManifest = createBlockManifest({
19846
20393
  "plates",
19847
20394
  "slides",
19848
20395
  "track",
19849
- "type-columns"
20396
+ "type-columns",
20397
+ "next-cards",
20398
+ "course-groups"
19850
20399
  ]
19851
20400
  },
19852
20401
  id: "block.offerings-preview",
@@ -20023,18 +20572,29 @@ function normalizeOfferingsPreviewDisplayMode(value) {
20023
20572
  function isOfferingsPreviewItemLimit(value) {
20024
20573
  return value === "1" || value === "2" || value === "3" || value === "4" || value === "5" || value === "6" || value === null;
20025
20574
  }
20575
+ const groupOverrideSchema = z.object({
20576
+ sourceKey: z.custom(isOfferingsPreviewSourceKey).nullish().catch(void 0),
20577
+ title: z.string().nullish().catch(void 0),
20578
+ intro: z.string().nullish().catch(void 0),
20579
+ hidden: z.boolean().nullish().catch(void 0),
20580
+ hideWhenEmpty: z.boolean().nullish().catch(void 0),
20581
+ presentation: z.enum([
20582
+ "compact-list",
20583
+ "single-card",
20584
+ "featured-summary"
20585
+ ]).nullish().catch(void 0),
20586
+ ctaMode: z.enum([
20587
+ "auto",
20588
+ "custom",
20589
+ "hidden"
20590
+ ]).nullish().catch(void 0),
20591
+ ctaHref: z.string().nullish().catch(void 0),
20592
+ ctaLabel: z.string().nullish().catch(void 0)
20593
+ });
20026
20594
  function normalizeOfferingsPreviewGroupOverride(value) {
20027
20595
  if (!isRecord$5(value)) return [];
20028
- const override = {};
20029
- if (isOfferingsPreviewSourceKey(value.sourceKey) || value.sourceKey === null) override.sourceKey = value.sourceKey;
20030
- if (typeof value.title === "string" || value.title === null) override.title = value.title;
20031
- if (typeof value.intro === "string" || value.intro === null) override.intro = value.intro;
20032
- if (typeof value.hidden === "boolean" || value.hidden === null) override.hidden = value.hidden;
20033
- if (value.presentation === "compact-list" || value.presentation === "single-card" || value.presentation === "featured-summary" || value.presentation === null) override.presentation = value.presentation;
20034
- if (value.ctaMode === "auto" || value.ctaMode === "custom" || value.ctaMode === "hidden" || value.ctaMode === null) override.ctaMode = value.ctaMode;
20035
- if (typeof value.ctaHref === "string" || value.ctaHref === null) override.ctaHref = value.ctaHref;
20036
- if (typeof value.ctaLabel === "string" || value.ctaLabel === null) override.ctaLabel = value.ctaLabel;
20037
- return [override];
20596
+ const parsed = groupOverrideSchema.parse(value);
20597
+ return [Object.fromEntries(Object.entries(parsed).filter(([, field]) => field !== void 0))];
20038
20598
  }
20039
20599
  function isButtonVariant(value) {
20040
20600
  return value === null || isBlockButtonRole(value);
@@ -21100,6 +21660,7 @@ const movingRowEcho = el("li", {
21100
21660
  "aria-hidden": "true"
21101
21661
  }, [el("figure", lookSlot("figure"), [el("div", lookSlot("media"), [media(lookSlot("photo"), bind("item.image"))])])], when("item.image"), (node) => ({
21102
21662
  ...node,
21663
+ key: "echo",
21103
21664
  $repeat: {
21104
21665
  collection: {
21105
21666
  from: "content.images",
@@ -21280,39 +21841,74 @@ const emptyState = {
21280
21841
  equals: 0
21281
21842
  }
21282
21843
  };
21283
- const videoGridLayout = section({
21284
- background: "background",
21285
- className: "rb-py-12 rb-sm-py-16 rb-md-py-20"
21286
- }, [sectionContainer([
21287
- stack({
21288
- gap: "sm",
21289
- className: "rb-text-center rb-mb-8"
21290
- }, [text({
21291
- as: "h2",
21292
- style: textColorStyle("heading")
21293
- }, bind("content.heading"), when("content.heading")), text({
21294
- as: "p",
21295
- className: "rb-max-w-2xl rb-mx-auto",
21296
- style: textColorStyle("text")
21297
- }, bind("content.subheading"), when("content.subheading"))]),
21298
- gridLayout1,
21299
- gridLayout2,
21300
- gridLayout3,
21301
- gridLayout4,
21302
- emptyState
21303
- ], { gap: "md" })]);
21304
- const videoGridBlockDefinition = { manifest: createBlockManifest({
21305
- variantMeaning: { kind: "arrangement" },
21306
- id: "block.video-grid",
21307
- promotedFields: ["videos"],
21308
- title: "Video grid",
21309
- category: "photos",
21310
- contentSource: { kind: "inline" },
21311
- skipSectionStyles: true,
21312
- additionalFields: parseFieldDefinitions([
21313
- {
21314
- id: "heading",
21315
- type: "text",
21844
+ const videoGridLayout = styledSection({
21845
+ children: sectionContainer([
21846
+ stack({
21847
+ gap: "sm",
21848
+ className: "rb-text-center rb-mb-8"
21849
+ }, [text({
21850
+ as: "h2",
21851
+ style: textColorStyle("heading")
21852
+ }, bind("content.heading"), when("content.heading")), text({
21853
+ as: "p",
21854
+ className: "rb-max-w-2xl rb-mx-auto",
21855
+ style: textColorStyle("text")
21856
+ }, bind("content.subheading"), when("content.subheading"))]),
21857
+ gridLayout1,
21858
+ gridLayout2,
21859
+ gridLayout3,
21860
+ gridLayout4,
21861
+ emptyState
21862
+ ], { gap: "md" }),
21863
+ baseClass: "",
21864
+ spacing: "medium",
21865
+ background: "background"
21866
+ });
21867
+ const tallVideoEmbed = (aspectRatio, ...mods) => videoEmbed({
21868
+ ...lookSlot("media"),
21869
+ style: { aspectRatio }
21870
+ }, bind("item.url"), ...mods);
21871
+ const tallTile = el("li", lookSlot("item"), [el("figure", lookSlot("figure"), [
21872
+ tallVideoEmbed({ $bind: { from: "item.aspectRatio" } }, when("item.aspectRatio")),
21873
+ tallVideoEmbed("9/16", when("item.aspectRatio", { not: true })),
21874
+ text({
21875
+ as: "figcaption",
21876
+ ...lookSlot("caption")
21877
+ }, bind("item.caption"), when("item.caption"))
21878
+ ])], repeat("content.videos", "item"));
21879
+ const tallTilesLayout = styledSection({
21880
+ children: el("div", {
21881
+ className: "rb-container",
21882
+ ...lookSlot("layout")
21883
+ }, [
21884
+ el("div", lookSlot("head"), [text({
21885
+ as: "h2",
21886
+ ...lookSlot("heading")
21887
+ }, bind("content.heading"), when("content.heading")), text({
21888
+ as: "p",
21889
+ ...lookSlot("intro")
21890
+ }, bind("content.subheading"), when("content.subheading"))]),
21891
+ el("ol", lookSlot("items"), [tallTile]),
21892
+ emptyState
21893
+ ]),
21894
+ baseClass: "",
21895
+ spacing: "medium",
21896
+ background: "background"
21897
+ });
21898
+ const videoGridBlockDefinition = { manifest: createBlockManifest({
21899
+ variantMeaning: {
21900
+ kind: "arrangement",
21901
+ lookOnlyKeys: ["tall-tiles"]
21902
+ },
21903
+ id: "block.video-grid",
21904
+ promotedFields: ["videos"],
21905
+ title: "Video grid",
21906
+ category: "photos",
21907
+ contentSource: { kind: "inline" },
21908
+ additionalFields: parseFieldDefinitions([
21909
+ {
21910
+ id: "heading",
21911
+ type: "text",
21316
21912
  label: "Heading",
21317
21913
  description: "Optional section title.",
21318
21914
  maxLength: 100
@@ -21348,7 +21944,10 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21348
21944
  label: "4 columns"
21349
21945
  }
21350
21946
  ],
21351
- ui: { intent: "display" }
21947
+ ui: {
21948
+ intent: "display",
21949
+ underLooks: "owner"
21950
+ }
21352
21951
  },
21353
21952
  {
21354
21953
  id: "aspectRatio",
@@ -21382,7 +21981,10 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21382
21981
  label: "21:9 (Ultrawide)"
21383
21982
  }
21384
21983
  ],
21385
- ui: { intent: "display" }
21984
+ ui: {
21985
+ intent: "display",
21986
+ underLooks: "owner"
21987
+ }
21386
21988
  },
21387
21989
  {
21388
21990
  id: "videos",
@@ -21406,7 +22008,10 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21406
22008
  label: "Shape for this video",
21407
22009
  description: "Give this video its own shape, which helps when you're mixing wide videos and Shorts.",
21408
22010
  defaultValue: "",
21409
- ui: { intent: "display" },
22011
+ ui: {
22012
+ intent: "display",
22013
+ underLooks: "owner"
22014
+ },
21410
22015
  options: [
21411
22016
  {
21412
22017
  value: "",
@@ -21454,10 +22059,11 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21454
22059
  description: "What visitors see before any videos are added.",
21455
22060
  defaultValue: "Add videos to create your gallery",
21456
22061
  maxLength: 100,
21457
- ui: { intent: "display" }
22062
+ ui: { intent: "content" }
21458
22063
  }
21459
22064
  ]),
21460
22065
  layout: videoGridLayout,
22066
+ variants: { "tall-tiles": tallTilesLayout },
21461
22067
  description: "Videos from YouTube, Vimeo or Instagram, laid out in a grid.",
21462
22068
  tags: [
21463
22069
  "video",
@@ -23021,6 +23627,18 @@ const systemBlockDefinitions = [
23021
23627
  weight: "standard"
23022
23628
  })]
23023
23629
  })),
23630
+ withDesignCapability("block.class-prices", classPricesBlockDefinition, withLookCapability(plainItemsCapable()), defineBlockDesignMetadata({
23631
+ flow: offeringsFlow,
23632
+ layoutProfiles: [layoutProfile({
23633
+ variantKey: "cards",
23634
+ family: "grid",
23635
+ weight: "standard"
23636
+ }), layoutProfile({
23637
+ variantKey: "index",
23638
+ family: "stack",
23639
+ weight: "standard"
23640
+ })]
23641
+ })),
23024
23642
  withDesignCapability("block.feature-cards", featureCardsBlockDefinition, declareBlockDesignCapability({
23025
23643
  looks: "supported",
23026
23644
  sectionSurfaces: "supported",
@@ -23237,9 +23855,14 @@ const systemBlockDefinitions = [
23237
23855
  })
23238
23856
  ]
23239
23857
  })),
23240
- withDesignCapability("block.video-grid", videoGridBlockDefinition, declareNoBlockDesignCapability("legacy-layout"), defineBlockDesignMetadata({
23858
+ withDesignCapability("block.video-grid", videoGridBlockDefinition, withLookCapability(sectionOnly()), defineBlockDesignMetadata({
23241
23859
  flow: mediaFlow,
23242
- layoutProfiles: []
23860
+ layoutProfiles: [layoutProfile({
23861
+ variantKey: "default",
23862
+ family: "grid",
23863
+ weight: "standard",
23864
+ bias: "soft"
23865
+ })]
23243
23866
  })),
23244
23867
  withDesignCapability("block.audio-player", audioPlayerBlockDefinition, sectionOnly(), defineBlockDesignMetadata({
23245
23868
  flow: mediaFlow,
@@ -23364,6 +23987,7 @@ function readinessFactsFromLoaders(stage, input) {
23364
23987
  const facts = {
23365
23988
  mailingList: loaderFactProducers.mailingList(input),
23366
23989
  testimonials: loaderFactProducers.testimonials(input),
23990
+ events: loaderFactProducers.events(input),
23367
23991
  team: loaderFactProducers.team(input),
23368
23992
  forms: loaderFactProducers.forms(input),
23369
23993
  products: loaderFactProducers.products(input),
@@ -23380,6 +24004,7 @@ const loaderFactProducers = {
23380
24004
  count,
23381
24005
  total: "unknown"
23382
24006
  })),
24007
+ events: (input) => new Map(projections(input, "events").map(({ id, block }) => [id, loaderFact(input, id, eventReadinessLoaderKey(block.content), eventReadinessResultSchema)])),
23383
24008
  team: (input) => firstLoaderFact(input, "team", "members", countSchema),
23384
24009
  forms: (input) => new Map(projections(input, "forms").flatMap(({ id, block }) => {
23385
24010
  const selection = chosenString(block.requests.form?.params.formSlug ?? block.requests.form?.params.formId);
@@ -23521,7 +24146,7 @@ function arrangementSlotParents(input) {
23521
24146
  const { target, arrangement } = input;
23522
24147
  if (target === "events") return {
23523
24148
  ...derived,
23524
- ...eventListSlotParents(arrangement, "layout" in derived ? "layout" : null),
24149
+ ...eventListSlotParents(arrangement, "layout" in derived ? "layout" : null, input.eventRows),
23525
24150
  ...eventItemSlotParents(arrangement),
23526
24151
  ...arrangement === "month-grid" || arrangement === "month-day" ? monthSlotParents(arrangement) : {}
23527
24152
  };
@@ -23529,6 +24154,10 @@ function arrangementSlotParents(input) {
23529
24154
  ...derived,
23530
24155
  ...eventHeaderSlotParents
23531
24156
  };
24157
+ if (arrangement === "course-groups") return {
24158
+ ...derived,
24159
+ ...offeringCourseSlotParents
24160
+ };
23532
24161
  if (target === "feature-cards") return {
23533
24162
  ...derived,
23534
24163
  ...cardItemSlotParents(arrangement)
@@ -23536,11 +24165,12 @@ function arrangementSlotParents(input) {
23536
24165
  return derived;
23537
24166
  }
23538
24167
  /** The selected layout is shared by the planner and its diagnostic consumers. */
23539
- function arrangementSlotParentsForManifest(manifest, target, arrangement) {
24168
+ function arrangementSlotParentsForManifest(manifest, target, arrangement, eventRows) {
23540
24169
  return arrangementSlotParents({
23541
24170
  tree: manifest?.variants?.[arrangement] ?? manifest?.layout,
23542
24171
  target,
23543
- arrangement
24172
+ arrangement,
24173
+ eventRows
23544
24174
  });
23545
24175
  }
23546
24176
  //#endregion
@@ -23952,6 +24582,18 @@ function childFields(field) {
23952
24582
  return [];
23953
24583
  }
23954
24584
  //#endregion
24585
+ //#region ../blocks/src/system/transforms/registry/classPrices.ts
24586
+ const classPriceItemsTransform = {
24587
+ id: "events.classPriceItems",
24588
+ kind: "collection",
24589
+ summary: "Live class price items with editable copy",
24590
+ run(value, _options, context) {
24591
+ const data = classPricesDataSchema.safeParse(value);
24592
+ const copy = classPricesCopySchema.safeParse(context.viewModel?.content);
24593
+ return data.success ? resolveClassPriceItems(data.data, copy.success ? copy.data : {}) : [];
24594
+ }
24595
+ };
24596
+ //#endregion
23955
24597
  //#region ../blocks/src/system/transforms/registry/eventRegistrationPageKind.ts
23956
24598
  const eventRegistrationPageReadAdmission = {
23957
24599
  id: "events.registrationPageReadAdmission",
@@ -24369,6 +25011,7 @@ const serviceDetailsSourceSchema = z.object({
24369
25011
  pricing: publicAppointmentPricingSchema.optional(),
24370
25012
  priceAmount: z.number().nullable(),
24371
25013
  priceCurrency: z.string().nullable(),
25014
+ requiresApproval: z.boolean().optional(),
24372
25015
  onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
24373
25016
  location: publicAppointmentLocationSchema,
24374
25017
  cancellationPolicy: z.object({ refunds: z.object({
@@ -24396,6 +25039,10 @@ function serviceDetailsFacts(service) {
24396
25039
  const location = formatAppointmentLocation(service.location);
24397
25040
  const practitioners = service.practitioners ?? [];
24398
25041
  return [
25042
+ ...service.requiresApproval ? [{
25043
+ label: "Booking",
25044
+ value: "You ask for a time, and it’s booked once it’s accepted."
25045
+ }] : [],
24399
25046
  {
24400
25047
  label: "How long",
24401
25048
  value: formatAppointmentDuration(service.durationMinutes)
@@ -24434,24 +25081,26 @@ const serviceDetailsFactsTransform = {
24434
25081
  summary: "Read the facts shown for one appointment service",
24435
25082
  run: (value) => readServiceDetailsFacts(value)
24436
25083
  };
25084
+ /** Display props for the client: the section's scope in content-field shape. */
24437
25085
  const eventCalendarSelectionParam = {
24438
25086
  id: "events.calendarSelectionParam",
24439
25087
  kind: "formatter",
24440
25088
  summary: "Resolve selected events instead of discovery filters",
24441
- schema: z.object({ key: z.enum([
24442
- "seriesIds",
24443
- "eventSurface",
24444
- "filterEventPresets",
24445
- "scheduleScope",
24446
- "filterCategoryIds",
24447
- "filterStaffMemberId",
24448
- "filterVenueId"
24449
- ]) }),
25089
+ schema: z.object({ key: z.enum(["seriesIds", ...eventDiscoveryFilterKeys]) }),
24450
25090
  run(value, { key }) {
24451
- const content = asPartialObject(value) ?? {};
24452
- const selection = resolveEventSelection(content.eventSelection, content.selectedEventSeriesIds);
24453
- if (selection.kind === "selected") return key === "seriesIds" ? selection.seriesIds : void 0;
24454
- return key === "seriesIds" ? void 0 : content[key];
25091
+ const scope = resolveEventScope(asPartialObject(value) ?? {});
25092
+ if (scope.kind === "selected") return key === "seriesIds" ? scope.seriesIds : void 0;
25093
+ return key === "seriesIds" ? void 0 : scope.filters[key];
25094
+ }
25095
+ };
25096
+ /** Public event query params for the section's scope, shared by render loaders and readiness. */
25097
+ const eventScopeParam = {
25098
+ id: "events.scopeParam",
25099
+ kind: "formatter",
25100
+ summary: "Public event query params for the section scope",
25101
+ schema: z.object({ key: z.enum(eventScopeQueryKeys) }),
25102
+ run(value, { key }) {
25103
+ return eventScopeLoaderParam(eventScopeQuery(resolveEventScope(asPartialObject(value) ?? {})), key);
24455
25104
  }
24456
25105
  };
24457
25106
  const readJobSchema = z.object({ job: z.enum([
@@ -24477,7 +25126,41 @@ const eventCalendarReadEnabled = {
24477
25126
  return plan.jobs === options.job || plan.jobs === "both" && options.job !== "schedule";
24478
25127
  }
24479
25128
  };
25129
+ /**
25130
+ * The week board's authored band paints `surfaceAlt` across the whole
25131
+ * section, under whatever foreground the section resolved. That foreground is
25132
+ * the page's only when the section paints nothing itself, so the band is
25133
+ * honoured on a plain section and dropped when a Look or override already
25134
+ * paints one (light band text on a pale board band otherwise).
25135
+ */
25136
+ const eventCalendarBanded = {
25137
+ id: "events.calendarBanded",
25138
+ kind: "formatter",
25139
+ summary: "Paint the week-board band only on a section with no background of its own",
25140
+ run(value) {
25141
+ const content = asPartialObject(value) ?? {};
25142
+ const sectionStyles = asPartialObject(content._sectionStyles);
25143
+ return content.banded === true && parseBackgroundContent(sectionStyles?.background) === null;
25144
+ }
25145
+ };
25146
+ /** The list loader keeps its one request and adds bounds only for weekly lists. */
25147
+ const eventCalendarListWindow = {
25148
+ id: "events.calendarListWindow",
25149
+ kind: "formatter",
25150
+ schema: z.object({ key: z.enum(["from", "to"]) }),
25151
+ run(_value, { key }, context) {
25152
+ const content = context.data ?? {};
25153
+ if (eventCalendarListGroupingDecision({
25154
+ ...content,
25155
+ arrangementLooks: content._lookSlots !== void 0
25156
+ }).grouping !== "week") return void 0;
25157
+ const timeZone = context.dateContext.timeZone;
25158
+ const startOfWeek = eventCalendarWeekStart(timeZone, content.startOfWeek === "sunday" || content.startOfWeek === "monday" ? content.startOfWeek : void 0);
25159
+ return buildEventListWeek(getLocalScheduleDate(new Date(readRuntimeNow(context.now)), timeZone), startOfWeek, timeZone)[key];
25160
+ }
25161
+ };
24480
25162
  const defaultTransforms = createTransformRegistry([
25163
+ classPriceItemsTransform,
24481
25164
  eventRegistrationPageReadAdmission,
24482
25165
  offeringsPreviewDatesReadEnabled,
24483
25166
  lookLeadSlotTransform,
@@ -24485,33 +25168,27 @@ const defaultTransforms = createTransformRegistry([
24485
25168
  lookCarouselRegionTransform,
24486
25169
  lookSkinSlotTransform,
24487
25170
  {
24488
- id: "events.calendarListWindow",
25171
+ id: "events.readinessEnabled",
24489
25172
  kind: "formatter",
24490
- schema: z.object({ key: z.enum(["from", "to"]) }),
24491
- run(_value, { key }, context) {
24492
- const content = context.data ?? {};
24493
- if (eventCalendarListGroupingDecision({
24494
- ...content,
24495
- arrangementLooks: content._lookSlots !== void 0
24496
- }).grouping !== "week") return void 0;
24497
- const timeZone = context.dateContext.timeZone;
24498
- const startOfWeek = eventCalendarWeekStart(timeZone, content.startOfWeek === "sunday" || content.startOfWeek === "monday" ? content.startOfWeek : void 0);
24499
- return buildEventListWeek(getLocalScheduleDate(new Date(readRuntimeNow(context.now)), timeZone), startOfWeek, timeZone)[key];
25173
+ run(value) {
25174
+ const content = asPartialObject(value) ?? {};
25175
+ return content.emptyBehavior === "hide" && eventReadinessLoaderKey(content) !== "schedule";
24500
25176
  }
24501
25177
  },
24502
- eventCalendarSelectionParam,
24503
- eventCalendarReadEnabled,
24504
- eventCalendarReadProfile,
24505
25178
  {
24506
- id: "events.calendarBanded",
25179
+ id: "events.readinessParam",
24507
25180
  kind: "formatter",
24508
- summary: "Paint the week-board band only on a section with no background of its own",
24509
- run(value) {
24510
- const content = asPartialObject(value) ?? {};
24511
- const sectionStyles = asPartialObject(content._sectionStyles);
24512
- return content.banded === true && parseBackgroundContent(sectionStyles?.background) === null;
25181
+ schema: z.object({ key: z.enum(eventReadinessQueryKeys) }),
25182
+ run(value, { key }) {
25183
+ return eventScopeLoaderParam(eventReadinessQuery(asPartialObject(value) ?? {}), key);
24513
25184
  }
24514
25185
  },
25186
+ eventCalendarListWindow,
25187
+ eventCalendarSelectionParam,
25188
+ eventScopeParam,
25189
+ eventCalendarReadEnabled,
25190
+ eventCalendarReadProfile,
25191
+ eventCalendarBanded,
24515
25192
  ...formattingTransforms,
24516
25193
  ...layoutTransforms,
24517
25194
  ...chromeLogoTransforms,
@@ -24895,6 +25572,10 @@ const META_PATH_TO_STORE_KEY = {
24895
25572
  function mapMetaPathToStoreKey(path) {
24896
25573
  return META_PATH_TO_STORE_KEY[path] ?? path;
24897
25574
  }
25575
+ /** Named bindings follow lexical scope: the nearest declaration wins. */
25576
+ function findNamedScope(context, name) {
25577
+ return [...context.scopes].reverse().find((entry) => entry.name === name);
25578
+ }
24898
25579
  const PATH_SEPARATOR_REGEX = /\./g;
24899
25580
  const BRACKET_ACCESS_REGEX = /\[([^\]]+)\]/g;
24900
25581
  /**
@@ -24978,7 +25659,7 @@ function derivePreviewLinkedEntryFieldBinding(node, parsedBinding, context) {
24978
25659
  const [scopeName, ...displaySegments] = splitPath$1(parsedBinding.from);
24979
25660
  if (typeof scopeName !== "string") return null;
24980
25661
  if (displaySegments.length === 0) return null;
24981
- const scoped = [...context.scopes].reverse().find((entry) => entry.name === scopeName);
25662
+ const scoped = findNamedScope(context, scopeName);
24982
25663
  if (!scoped) return null;
24983
25664
  const displayPath = segmentsToPath(displaySegments);
24984
25665
  if (!displayPath) return null;
@@ -25036,7 +25717,7 @@ function contentFieldSegments(fromPath, context) {
25036
25717
  const [first, ...rest] = splitPath$1(fromPath);
25037
25718
  if (typeof first !== "string" || first === "$root") return void 0;
25038
25719
  if (first === "content") return rest;
25039
- const named = [...context.scopes].reverse().find((entry) => entry.name === first);
25720
+ const named = findNamedScope(context, first);
25040
25721
  if (named) return scopedContentSegments(named, rest);
25041
25722
  const innermost = [...context.scopes].reverse().find((entry) => isPlainObject$1(entry.value) || Array.isArray(entry.value));
25042
25723
  if (!innermost || first in context.viewModel) return void 0;
@@ -25181,7 +25862,7 @@ function applyTransformsAndFallback(value, binding, context) {
25181
25862
  function resolveTransformData(context, bindingPath) {
25182
25863
  const [first] = splitPath$1(bindingPath);
25183
25864
  if (typeof first === "string" && first !== "$root") {
25184
- const namedScope = context.scopes.find((entry) => entry.name === first);
25865
+ const namedScope = findNamedScope(context, first);
25185
25866
  if (namedScope && isPlainObject$1(namedScope.value)) return namedScope.value;
25186
25867
  }
25187
25868
  for (let i = context.scopes.length - 1; i >= 0; i -= 1) {
@@ -25349,7 +26030,7 @@ function resolveReadBindingValue(binding, context) {
25349
26030
  source = currentScope.value;
25350
26031
  const value = readFromSource$1(source, segments);
25351
26032
  if (value !== void 0) return applyTransformsAndFallback(value, binding, context);
25352
- const namedScope = context.scopes.find((entry) => entry.name === first);
26033
+ const namedScope = findNamedScope(context, first);
25353
26034
  if (namedScope) {
25354
26035
  source = namedScope.value;
25355
26036
  const namedValue = readFromSource$1(source, rest);
@@ -25357,7 +26038,7 @@ function resolveReadBindingValue(binding, context) {
25357
26038
  }
25358
26039
  return applyTransformsAndFallback(readFromSource$1(context.viewModel, segments), binding, context);
25359
26040
  }
25360
- const namedScope = context.scopes.find((entry) => entry.name === first);
26041
+ const namedScope = findNamedScope(context, first);
25361
26042
  if (namedScope) {
25362
26043
  source = namedScope.value;
25363
26044
  return applyTransformsAndFallback(readFromSource$1(source, rest), binding, context);
@@ -25446,9 +26127,11 @@ function resolveRepeater(node, context) {
25446
26127
  ...context,
25447
26128
  scopes
25448
26129
  };
26130
+ const itemKey = node.key === void 0 ? void 0 : `${node.key}-${idx}`;
25449
26131
  const resolved = resolveNode({
25450
26132
  ...node,
25451
- $repeat: void 0
26133
+ $repeat: void 0,
26134
+ key: itemKey
25452
26135
  }, repeatedContext, idx);
25453
26136
  if (resolved === null) return null;
25454
26137
  const target = buildLinkedContentEditTarget({
@@ -25461,7 +26144,7 @@ function resolveRepeater(node, context) {
25461
26144
  const frame = context.registry.linkedEntryEditFrame;
25462
26145
  if (!frame) return resolved;
25463
26146
  return React.createElement(frame, {
25464
- key: idx,
26147
+ key: itemKey ?? idx,
25465
26148
  target,
25466
26149
  blockId: context.blockId,
25467
26150
  blockKind: context.blockKind
@@ -26101,36 +26784,40 @@ function makeDefaultBlockComponent(args) {
26101
26784
  }
26102
26785
  function createDefaultBlockComponent(manifest) {
26103
26786
  return function DefaultBlockComponent(props) {
26104
- const perf = beginBlockRenderMeasurement();
26105
- const prepared = prepareDefaultBlockRender(manifest, props);
26106
- const result = resolveTree(prepared.layout, {
26107
- registry: prepared.registry,
26108
- viewModel: prepared.viewModel,
26109
- dateContext: prepared.dateContext,
26110
- now: prepared.now,
26111
- transforms: props.transforms,
26112
- theme: prepared.themeForTransforms,
26113
- proseHoverCandidate: prepared.proseHoverCandidate,
26114
- pathBase: props.pathBase,
26115
- blockId: props.blockId,
26116
- newsletterBlockSubmission: props.newsletterBlockSubmission,
26117
- blockKind: props.blockKind,
26118
- blockContent: prepared.mergedContent,
26119
- blockBindings: props.blockBindings,
26120
- editableRouteMetadataFieldIds: props.editableRouteMetadataFieldIds,
26121
- fragmentRegistry: props.fragmentRegistry,
26122
- fieldConstraints: prepared.fieldConstraints,
26123
- imageResolveContext: props.imageResolveContext,
26124
- previewAuthoring: props.previewAuthoring
26125
- });
26126
- reportSlowBlockRender(perf, {
26127
- content: props.content,
26128
- blockId: props.blockId,
26129
- blockKind: props.blockKind ?? manifest.name,
26130
- manifestName: manifest.name
26131
- });
26132
- return result;
26133
- };
26787
+ return resolveDefaultBlockTree(manifest, props);
26788
+ };
26789
+ }
26790
+ /** Resolve declarative markup once so page-wide semantics can inspect the same tree that renders. */
26791
+ function resolveDefaultBlockTree(manifest, props) {
26792
+ const perf = beginBlockRenderMeasurement();
26793
+ const prepared = prepareDefaultBlockRender(manifest, props);
26794
+ const result = resolveTree(prepared.layout, {
26795
+ registry: prepared.registry,
26796
+ viewModel: prepared.viewModel,
26797
+ dateContext: prepared.dateContext,
26798
+ now: prepared.now,
26799
+ transforms: props.transforms,
26800
+ theme: prepared.themeForTransforms,
26801
+ proseHoverCandidate: prepared.proseHoverCandidate,
26802
+ pathBase: props.pathBase,
26803
+ blockId: props.blockId,
26804
+ newsletterBlockSubmission: props.newsletterBlockSubmission,
26805
+ blockKind: props.blockKind,
26806
+ blockContent: prepared.mergedContent,
26807
+ blockBindings: props.blockBindings,
26808
+ editableRouteMetadataFieldIds: props.editableRouteMetadataFieldIds,
26809
+ fragmentRegistry: props.fragmentRegistry,
26810
+ fieldConstraints: prepared.fieldConstraints,
26811
+ imageResolveContext: props.imageResolveContext,
26812
+ previewAuthoring: props.previewAuthoring
26813
+ });
26814
+ reportSlowBlockRender(perf, {
26815
+ content: props.content,
26816
+ blockId: props.blockId,
26817
+ blockKind: props.blockKind ?? manifest.name,
26818
+ manifestName: manifest.name
26819
+ });
26820
+ return result;
26134
26821
  }
26135
26822
  function prepareBlockRender(input) {
26136
26823
  const mergedContent = mergeContentWithBlockStyleOverrides(input.content, input.themeConfig, input.blockKind);
@@ -26724,9 +27411,11 @@ function effectiveLookFromContent(content) {
26724
27411
  const value = content._effectiveLook;
26725
27412
  return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
26726
27413
  }
26727
- function planArrangementContent(blockKind, manifest, content, audience) {
26728
- const runtime = arrangementRuntime(content);
26729
- if (!runtime) return content;
27414
+ function planArrangementContent(blockKind, manifest, authored, audience) {
27415
+ const runtime = arrangementRuntime(authored);
27416
+ if (!runtime) return authored;
27417
+ const spacingHook = authoredSectionSpacingHook(authored);
27418
+ const content = withoutSectionSpacing(authored);
26730
27419
  const mode = readStoredMode({
26731
27420
  ...arrangementManifestFromVariants(manifest),
26732
27421
  variantMeaning: manifest.variantMeaning
@@ -26748,11 +27437,11 @@ function planArrangementContent(blockKind, manifest, content, audience) {
26748
27437
  }), ["look"]);
26749
27438
  const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind !== "kept")), lookOwnedPaths);
26750
27439
  const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
26751
- const visiblePhotos = arrangementContentFacts({
27440
+ const photoCount = arrangementContentFacts({
26752
27441
  ...activeContent,
26753
27442
  ...effectiveContent,
26754
27443
  ...photoContent
26755
- });
27444
+ }).photoCount + lookPartPhotoCount(blockKind, activeContent, effective.look.structure.byMode[mode ?? "default"] ?? null);
26756
27445
  return {
26757
27446
  ...activeContent,
26758
27447
  ...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
@@ -26764,10 +27453,13 @@ function planArrangementContent(blockKind, manifest, content, audience) {
26764
27453
  ...arrangementQuoteContent(blockKind, effective, values),
26765
27454
  _arrangementLooks: runtime,
26766
27455
  _effectiveLook: effective,
26767
- _lookHooks: arrangementContentHooks(effective, mode, length, {
26768
- ...facts.content,
26769
- photo: visiblePhotos.facts.content.photo
26770
- }, values, visiblePhotos.photoCount),
27456
+ _lookHooks: {
27457
+ ...arrangementContentHooks(effective, mode, length, {
27458
+ ...facts.content,
27459
+ photo: photoCount > 0
27460
+ }, values, photoCount),
27461
+ ...spacingHook
27462
+ },
26771
27463
  _effectiveKnobs: knobs,
26772
27464
  _lookOwnedPaths: lookOwnedPaths,
26773
27465
  _lookAudience: audience,
@@ -26775,6 +27467,25 @@ function planArrangementContent(blockKind, manifest, content, audience) {
26775
27467
  blockLook: effective.look.id
26776
27468
  };
26777
27469
  }
27470
+ /**
27471
+ * The section spacing an owner chose, as a hook, so a skin that sets its own
27472
+ * section padding can still honour it. Absent when the spacing was not chosen.
27473
+ * The compiler carries it through for Look blocks only for this hook (see
27474
+ * applyCompiledRuntimeFieldsToContent); the Look keeps its own padding, so the
27475
+ * value is taken out of the content before the section class reads it.
27476
+ */
27477
+ function authoredSectionSpacingHook(content) {
27478
+ const spacing = isObjectRecord(content._sectionStyles) ? content._sectionStyles.spacing : void 0;
27479
+ return isSemanticSpacing(spacing) ? { "data-section-spacing": spacing } : {};
27480
+ }
27481
+ function withoutSectionSpacing(content) {
27482
+ if (!isObjectRecord(content._sectionStyles) || !("spacing" in content._sectionStyles)) return content;
27483
+ const { spacing: _spacing, ...sectionStyles } = content._sectionStyles;
27484
+ return {
27485
+ ...content,
27486
+ _sectionStyles: sectionStyles
27487
+ };
27488
+ }
26778
27489
  /** Typed Look composition owns contrast treatment; parsing preserves authored paint. */
26779
27490
  function arrangementPhotoTreatmentContent(content, look, palette, tint) {
26780
27491
  if (!look.look.structure.photoTreatment) return {};
@@ -26816,6 +27527,14 @@ function arrangementPanelContent(content, effective, mode) {
26816
27527
  _lookPanelHeading: content.heading
26817
27528
  };
26818
27529
  }
27530
+ /**
27531
+ * Photos a Look shows beside the block's own: the hero's more photos, where its
27532
+ * arrangement shows them. They count towards the photo hooks only; the photo fact
27533
+ * that published fallbacks read stays the block's own photo.
27534
+ */
27535
+ function lookPartPhotoCount(blockKind, content, arrangement) {
27536
+ return blockKind === "block.hero" && lookPartShown(blockKind, "morePhotos", arrangement) ? heroMorePhotoCount(content) : 0;
27537
+ }
26819
27538
  function arrangementPhotoContent(content, knobs) {
26820
27539
  if (knobs.showPhotos !== false || !Array.isArray(content.cards)) return {};
26821
27540
  return { cards: content.cards.map((card) => {
@@ -27006,10 +27725,10 @@ function resolveCombinedLook(entry, list, runtime, section, content) {
27006
27725
  }
27007
27726
  function plannedSlotParents(entry, look) {
27008
27727
  const fallback = Object.values(look.look.structure.byMode)[0] ?? "";
27009
- if (entry.kind !== "renderable") return arrangementSlotParentsForManifest(void 0, look.look.target, fallback);
27728
+ if (entry.kind !== "renderable") return arrangementSlotParentsForManifest(void 0, look.look.target, fallback, look.look.structure.eventRows);
27010
27729
  const month = entry.renderableContent._lookMonthArrangement;
27011
27730
  const arrangement = entry.effectiveListArrangementKey ?? (typeof month === "string" ? month : entry.effectiveArrangementKey) ?? fallback;
27012
- return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement);
27731
+ return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
27013
27732
  }
27014
27733
  //#endregion
27015
27734
  //#region ../blocks/src/system/data/utils.ts
@@ -27831,6 +28550,88 @@ function requireSdkTheme(theme, siteId, reason = "cms_theme_absent") {
27831
28550
  return theme;
27832
28551
  }
27833
28552
  //#endregion
28553
+ //#region ../blocks/src/pageHeadingSemantics.tsx
28554
+ /** Inspect resolved declarative markup, after conditions, bindings and repeaters. Never invoke arbitrary React components. */
28555
+ function elements(tree) {
28556
+ if (Array.isArray(tree)) return tree.flatMap(elements);
28557
+ return React.isValidElement(tree) ? [tree, ...elements(tree.props.children)] : [];
28558
+ }
28559
+ function hasText(value) {
28560
+ if (typeof value === "string") return value.trim().length > 0;
28561
+ const inline = parseInlineTextFromUnknown(value);
28562
+ return inline.ok && inlineTextToPlainText(inline.value).trim().length > 0;
28563
+ }
28564
+ function richTextHasH1(value) {
28565
+ if (!value || typeof value !== "object") return false;
28566
+ const level = Reflect.get(value, "attrs");
28567
+ if (Reflect.get(value, "type") === "heading" && level && typeof level === "object" && Reflect.get(level, "level") === 1) return true;
28568
+ const content = Reflect.get(value, "content");
28569
+ return Array.isArray(content) && content.some(richTextHasH1);
28570
+ }
28571
+ function ownsH1(node, eventDetailsComponent) {
28572
+ if ((node.type === "h1" || node.props.as === "h1") && (hasText(node.props.value) || React.Children.count(node.props.children) > 0)) return true;
28573
+ if (richTextHasH1(node.props.value)) return true;
28574
+ if (node.type !== eventDetailsComponent || !React.isValidElement(node)) return false;
28575
+ const presentation = resolveEventDetailsPresentation({
28576
+ ...node.props,
28577
+ subject: normalizeEventRegistrationPageSurfaceSubject(node.props.subject)
28578
+ });
28579
+ return presentation.arrangement === "event-header" && (presentation.selection.kind !== "empty" || Boolean(presentation.entryTitle));
28580
+ }
28581
+ function isSectionHeading(node) {
28582
+ if (node.props.as !== "h2" || !hasText(node.props.value)) return false;
28583
+ const slot = node.props["data-slot"];
28584
+ const path = node.props.path;
28585
+ return slot === "heading" || slot === "headline" || typeof path === "string" && /^blocks\.[^.]+\.[^.]+$/.test(path);
28586
+ }
28587
+ function promote(tree, heading) {
28588
+ if (Array.isArray(tree)) {
28589
+ const items = tree;
28590
+ const children = items.map((child) => promote(child, heading));
28591
+ return children.every((child, index) => child === items[index]) ? items : children;
28592
+ }
28593
+ if (!React.isValidElement(tree)) return tree;
28594
+ if (tree === heading) return React.cloneElement(tree, {
28595
+ as: "h1",
28596
+ className: [tree.props.className, "rb-heading-level-2"].filter(Boolean).join(" ")
28597
+ });
28598
+ const children = promote(tree.props.children, heading);
28599
+ return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
28600
+ }
28601
+ /** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
28602
+ function applyPageHeadingSemantics(trees, eventDetailsComponent) {
28603
+ const nodes = [...trees.values()].flatMap(elements);
28604
+ if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
28605
+ trees,
28606
+ needsPageTitle: false
28607
+ };
28608
+ const heading = nodes.find(isSectionHeading);
28609
+ return heading ? {
28610
+ trees: new Map([...trees].map(([id, tree]) => [id, promote(tree, heading)])),
28611
+ needsPageTitle: false
28612
+ } : {
28613
+ trees,
28614
+ needsPageTitle: true
28615
+ };
28616
+ }
28617
+ /** Inline hiding also works in SDK sites that do not load utility CSS. */
28618
+ function PageTitleFallback({ name }) {
28619
+ return /* @__PURE__ */ jsx("h1", {
28620
+ style: {
28621
+ position: "absolute",
28622
+ width: 1,
28623
+ height: 1,
28624
+ padding: 0,
28625
+ margin: -1,
28626
+ overflow: "hidden",
28627
+ clipPath: "inset(50%)",
28628
+ whiteSpace: "nowrap",
28629
+ border: 0
28630
+ },
28631
+ children: name
28632
+ });
28633
+ }
28634
+ //#endregion
27834
28635
  //#region ../blocks/src/pageRenderAudience.tsx
27835
28636
  /**
27836
28637
  * The single policy for what a non-renderable block looks like.
@@ -28168,6 +28969,7 @@ function offeringsPreviewPhotoCount(listing) {
28168
28969
  case "no-groups":
28169
28970
  case "nothing-to-show": return 0;
28170
28971
  case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
28972
+ case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
28171
28973
  case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
28172
28974
  default: return assertNever$2(listing);
28173
28975
  }
@@ -28187,6 +28989,113 @@ function hasPhoto(item) {
28187
28989
  default: return assertNever$2(item);
28188
28990
  }
28189
28991
  }
28992
+ function courseGroupPhotoCount(load) {
28993
+ if (load.kind !== "items") return 0;
28994
+ const courses = groupOfferingRunsByCourse(load.items);
28995
+ const ungrouped = load.items.filter((item) => item.kind !== "run" || !item.run.run.listing);
28996
+ return courses.filter(({ course }) => course.presentation?.image).length + ungrouped.filter(hasPhoto).length;
28997
+ }
28998
+ //#endregion
28999
+ //#region ../blocks/src/blockContentPreparation.ts
29000
+ function prepareBlockContent(kind, content, data, context, audience) {
29001
+ return {
29002
+ ...arrangementResolvedContent(kind, content, data, context, audience),
29003
+ data: arrangementResolvedData(kind, content, data)
29004
+ };
29005
+ }
29006
+ function arrangementResolvedData(kind, content, data) {
29007
+ if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
29008
+ return {
29009
+ ...data,
29010
+ entries: content._quoteCount === null ? data.entries : data.entries.slice(0, Number(content._quoteCount))
29011
+ };
29012
+ }
29013
+ function arrangementResolvedContent(kind, content, data, context, audience) {
29014
+ if (!data) return {
29015
+ content,
29016
+ publicVisibility: "shown"
29017
+ };
29018
+ if (kind === "block.offerings-preview") return offeringArrangementContent(content, data, context, audience);
29019
+ if (kind === "block.appointment-services" && content._effectiveLook !== void 0) return {
29020
+ content: appointmentArrangementContent(content, data, context),
29021
+ publicVisibility: "shown"
29022
+ };
29023
+ return {
29024
+ content,
29025
+ publicVisibility: "shown"
29026
+ };
29027
+ }
29028
+ /** One listing owns card visibility, public section omission and photo counting. */
29029
+ function offeringArrangementContent(content, data, context, audience) {
29030
+ const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
29031
+ if (!needsOfferingListing(content, normalized)) return {
29032
+ content,
29033
+ publicVisibility: "shown"
29034
+ };
29035
+ const now = new Date(readRuntimeNow(context?.now));
29036
+ const listing = buildLoadedOfferingsPreviewListing({
29037
+ now,
29038
+ listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
29039
+ routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
29040
+ ...normalized,
29041
+ presets: context?.bookingOfferingPresets,
29042
+ catalogueEvents: readPublicEvents(data.catalogueEvents),
29043
+ wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
29044
+ ...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
29045
+ });
29046
+ const prepared = {
29047
+ ...content,
29048
+ _offeringsPreviewInput: {
29049
+ kind: "prepared",
29050
+ listing,
29051
+ now
29052
+ },
29053
+ ...audience === "authoring" ? { _offeringsPreviewShowHiddenPlaceholder: true } : {}
29054
+ };
29055
+ return {
29056
+ content: content._effectiveLook === void 0 ? prepared : withCardListPhotoCount(prepared, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing)),
29057
+ publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
29058
+ };
29059
+ }
29060
+ /** Older blocks opt into preparation only when public visibility needs their listing. */
29061
+ function needsOfferingListing(content, normalized) {
29062
+ return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
29063
+ }
29064
+ function readPublicEvents(value) {
29065
+ const parsed = publicEventsArraySchema.safeParse(value);
29066
+ return parsed.success ? parsed.data : void 0;
29067
+ }
29068
+ function appointmentArrangementContent(content, data, context) {
29069
+ const view = buildAppointmentServicesView({
29070
+ arrangement: cardListArrangementForContent(content),
29071
+ services: data.services,
29072
+ categoryId: content.categoryId,
29073
+ pathname: context?.pathname,
29074
+ servicePathPrefix: context?.appointmentServicePathPrefix
29075
+ });
29076
+ const rows = view.kind === "items" ? view.rows : view.kind === "groups" ? view.groups.flatMap((group) => group.rows) : [];
29077
+ const photoCount = content.showPhotos === false ? 0 : rows.filter((row) => row.media).length;
29078
+ return withCardListPhotoCount({
29079
+ ...content,
29080
+ _appointmentServicesView: view
29081
+ }, photoCount);
29082
+ }
29083
+ function withCardListPhotoCount(content, photoCount) {
29084
+ const hooks = typeof content._lookHooks === "object" && content._lookHooks !== null ? content._lookHooks : {};
29085
+ return {
29086
+ ...content,
29087
+ _lookHooks: {
29088
+ ...hooks,
29089
+ "data-has-photo": String(photoCount > 0),
29090
+ "data-photo-count": String(photoCount)
29091
+ }
29092
+ };
29093
+ }
29094
+ function cardListArrangementForContent(content) {
29095
+ const hooks = content._lookHooks;
29096
+ if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
29097
+ return cardListPresentationSchemaShape.cardArrangement.safeParse(hooks["data-arrangement"]).data;
29098
+ }
28190
29099
  //#endregion
28191
29100
  //#region ../blocks/src/system/manifest/hydrateLinks.ts
28192
29101
  /**
@@ -28360,7 +29269,7 @@ function preparePageRenderEntries(input, previous = null) {
28360
29269
  const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
28361
29270
  const entries = prepared.map(([, value]) => value);
28362
29271
  const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
28363
- const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
29272
+ const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
28364
29273
  const surviving = new Set(survivors);
28365
29274
  const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
28366
29275
  const regions = {
@@ -28396,7 +29305,7 @@ function preparationAdmission(input) {
28396
29305
  const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
28397
29306
  return {
28398
29307
  permission,
28399
- 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")
29308
+ entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
28400
29309
  };
28401
29310
  }
28402
29311
  function readPreparedPlanEntry(entry, input, previous, permission) {
@@ -28435,8 +29344,11 @@ function isPublicSourcePermitted(entry, permission) {
28435
29344
  const rawSource = entry.renderableContent.locationSource;
28436
29345
  return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
28437
29346
  }
28438
- function entryNeedsSetup(entry, facts, interaction) {
28439
- return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts, interaction).kind === "NeedsSetup";
29347
+ function entryHiddenFromVisitors(entry, facts, interaction) {
29348
+ return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
29349
+ blockId: entry.block.id ?? null,
29350
+ interaction
29351
+ }));
28440
29352
  }
28441
29353
  /**
28442
29354
  * The only place joins are composed. Plan-time omissions were already
@@ -28494,26 +29406,32 @@ function buildPreparedContent(entry, content, input) {
28494
29406
  const routes = input.routeMap ?? dataContext?.routes;
28495
29407
  const hydratedContent = routes ? hydrateManifestLinks(entry.definition.manifest, content, routes, dataContext?.pagesByIdentifier, dataContext?.entriesByIdentifier) : content;
28496
29408
  const resolved = resolveBlockData(block.id, entry.definition.dataLoaders, dataContext, routes);
29409
+ const { baseProps, publicVisibility } = preparedBlockProps(entry, hydratedContent, resolved, input);
28497
29410
  return {
28498
29411
  kind: "content",
28499
- baseProps: preparedBlockProps(entry, hydratedContent, resolved, input),
29412
+ baseProps,
29413
+ publicVisibility,
28500
29414
  component: entry.override ? void 0 : makeDefaultBlockComponent({ manifest: entry.definition.manifest }),
28501
29415
  hasResolvedData: !!resolved && typeof resolved === "object" && Object.keys(resolved).length > 0,
28502
29416
  routes
28503
29417
  };
28504
29418
  }
28505
29419
  function preparedBlockProps(entry, content, data, input) {
29420
+ const prepared = prepareBlockContent(entry.block.kind, content, data, input.dataContext, input.audience);
28506
29421
  return {
28507
- ...buildBlockOverrideProps({
28508
- content: arrangementResolvedContent(entry.block.kind, content, data, input.dataContext),
28509
- data: arrangementResolvedData(entry.block.kind, content, data),
28510
- block: entry.block,
28511
- themeResources: input.themeResources,
28512
- dataContext: input.dataContext,
28513
- imageResolveContext: input.imageResolveContext,
28514
- routeMap: input.routeMap
28515
- }),
28516
- bookingTimeZone: input.dataContext?.bookingTimeZone
29422
+ baseProps: {
29423
+ ...buildBlockOverrideProps({
29424
+ content: prepared.content,
29425
+ data: prepared.data,
29426
+ block: entry.block,
29427
+ themeResources: input.themeResources,
29428
+ dataContext: input.dataContext,
29429
+ imageResolveContext: input.imageResolveContext,
29430
+ routeMap: input.routeMap
29431
+ }),
29432
+ bookingTimeZone: input.dataContext?.bookingTimeZone
29433
+ },
29434
+ publicVisibility: prepared.publicVisibility
28517
29435
  };
28518
29436
  }
28519
29437
  /**
@@ -28580,82 +29498,6 @@ function blockSubjectProps(dataContext) {
28580
29498
  subject
28581
29499
  };
28582
29500
  }
28583
- function arrangementResolvedData(kind, content, data) {
28584
- if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
28585
- return {
28586
- ...data,
28587
- entries: content._quoteCount === null ? data.entries : data.entries.slice(0, Number(content._quoteCount))
28588
- };
28589
- }
28590
- function arrangementResolvedContent(kind, content, data, context) {
28591
- if (content._effectiveLook === void 0 || !data || kind !== "block.offerings-preview" && kind !== "block.appointment-services") return content;
28592
- if (kind === "block.appointment-services") return appointmentArrangementContent(content, data, context);
28593
- const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
28594
- const now = new Date(readRuntimeNow(context?.now));
28595
- const listing = buildLoadedOfferingsPreviewListing({
28596
- now,
28597
- listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
28598
- routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
28599
- ...normalized,
28600
- presets: context?.bookingOfferingPresets,
28601
- catalogueEvents: readPublicEvents(data.catalogueEvents),
28602
- wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
28603
- ...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
28604
- });
28605
- return withCardListPhotoCount({
28606
- ...content,
28607
- _offeringsPreviewInput: {
28608
- kind: "prepared",
28609
- listing,
28610
- now
28611
- }
28612
- }, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing));
28613
- }
28614
- function readPublicEvents(value) {
28615
- const parsed = publicEventsArraySchema.safeParse(value);
28616
- return parsed.success ? parsed.data : void 0;
28617
- }
28618
- function appointmentArrangementContent(content, data, context) {
28619
- const view = buildAppointmentServicesView({
28620
- arrangement: cardListArrangementForContent(content),
28621
- services: data.services,
28622
- categoryId: content.categoryId,
28623
- pathname: context?.pathname,
28624
- servicePathPrefix: context?.appointmentServicePathPrefix
28625
- });
28626
- const rows = view.kind === "items" ? view.rows : view.kind === "groups" ? view.groups.flatMap((group) => group.rows) : [];
28627
- const photoCount = content.showPhotos === false ? 0 : rows.filter((row) => row.media).length;
28628
- return withCardListPhotoCount({
28629
- ...content,
28630
- _appointmentServicesView: view
28631
- }, photoCount);
28632
- }
28633
- function withCardListPhotoCount(content, photoCount) {
28634
- const hooks = typeof content._lookHooks === "object" && content._lookHooks !== null ? content._lookHooks : {};
28635
- return {
28636
- ...content,
28637
- _lookHooks: {
28638
- ...hooks,
28639
- "data-has-photo": String(photoCount > 0),
28640
- "data-photo-count": String(photoCount)
28641
- }
28642
- };
28643
- }
28644
- function cardListArrangementForContent(content) {
28645
- const hooks = content._lookHooks;
28646
- if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
28647
- const arrangement = hooks["data-arrangement"];
28648
- switch (arrangement) {
28649
- case "cards":
28650
- case "lead-support":
28651
- case "index":
28652
- case "sequence":
28653
- case "plates":
28654
- case "slides":
28655
- case "track": return arrangement;
28656
- default: return;
28657
- }
28658
- }
28659
29501
  function preparedPlanEntry(entry, prepared) {
28660
29502
  return {
28661
29503
  entry: entry.kind === "renderable" && prepared.kind === "content" ? {
@@ -28785,12 +29627,32 @@ function PageRendererCore(props) {
28785
29627
  dataContext,
28786
29628
  themeResources
28787
29629
  });
28788
- if (!page || preparation.entries.length === 0) return props.wrapPage ? props.wrapPage(plan, presentEmptyPage(audience)) : presentEmptyPage(audience);
28789
29630
  setContextResolveImageUrlContext(imageResolveContext);
28790
- const rendered = renderPreparedPage(props, preparation, themeResources, imageResolveContext);
29631
+ const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
29632
+ const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
29633
+ const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
29634
+ preparation,
29635
+ dataContext,
29636
+ registry: resolvedRegistry,
29637
+ previewAuthoring: props.previewAuthoring,
29638
+ imageResolveContext
29639
+ }), resolvedRegistry["event-details"]), [
29640
+ preparation,
29641
+ dataContext,
29642
+ resolvedRegistry,
29643
+ props.previewAuthoring,
29644
+ imageResolveContext,
29645
+ readSystemTrees
29646
+ ]);
29647
+ return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
29648
+ }
29649
+ function renderEmptyPage(page, audience) {
29650
+ return /* @__PURE__ */ jsxs(Fragment, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
29651
+ }
29652
+ function wrapRenderedPage(props, plan, rendered) {
28791
29653
  return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
28792
29654
  }
28793
- function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
29655
+ function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
28794
29656
  const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
28795
29657
  const joinSlots = joinSlotsByPair(preparation.joins);
28796
29658
  const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
@@ -28801,24 +29663,30 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
28801
29663
  themeResources,
28802
29664
  imageResolveContext,
28803
29665
  resolvedRegistry,
29666
+ systemTrees: headingPresentation.trees,
28804
29667
  joinSlots: joins,
28805
29668
  wrapBlock: props.wrapBlock,
28806
29669
  renderJoin: props.renderJoin
28807
29670
  }));
28808
29671
  const { main, aside } = preparation.regions;
28809
- if (aside.length === 0) return /* @__PURE__ */ jsx("div", { children: renderRegion(main, joinSlots) });
29672
+ const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
29673
+ if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
28810
29674
  return /* @__PURE__ */ jsxs("div", {
28811
29675
  className: "rb-page-layout",
28812
29676
  "data-page-layout": "main-aside",
28813
- children: [/* @__PURE__ */ jsx("div", {
28814
- className: "rb-page-layout__main",
28815
- "data-page-region": "main",
28816
- children: renderRegion(main, joinSlots)
28817
- }), /* @__PURE__ */ jsx("aside", {
28818
- className: "rb-page-layout__aside rb-sticky-below-site-chrome",
28819
- "data-page-region": "aside",
28820
- children: renderRegion(aside, /* @__PURE__ */ new Map())
28821
- })]
29677
+ children: [
29678
+ title,
29679
+ /* @__PURE__ */ jsx("div", {
29680
+ className: "rb-page-layout__main",
29681
+ "data-page-region": "main",
29682
+ children: renderRegion(main, joinSlots)
29683
+ }),
29684
+ /* @__PURE__ */ jsx("aside", {
29685
+ className: "rb-page-layout__aside rb-sticky-below-site-chrome",
29686
+ "data-page-region": "aside",
29687
+ children: renderRegion(aside, /* @__PURE__ */ new Map())
29688
+ })
29689
+ ]
28822
29690
  });
28823
29691
  }
28824
29692
  /**
@@ -28938,7 +29806,8 @@ function renderPlanEntry(input) {
28938
29806
  entry: input.entry,
28939
29807
  blockKey,
28940
29808
  imageResolveContext,
28941
- registry: resolvedRegistry
29809
+ registry: resolvedRegistry,
29810
+ systemTree: input.systemTrees.get(entry)
28942
29811
  });
28943
29812
  if (!shouldUseWrapper) {
28944
29813
  const rendered = /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }, `${blockKey}:block`);
@@ -28985,6 +29854,7 @@ function resolvePageRendererImageResolveContext(dataContext) {
28985
29854
  }
28986
29855
  function buildBlockSectionProps(input) {
28987
29856
  return {
29857
+ systemTree: input.systemTree,
28988
29858
  themeResources: input.themeResources,
28989
29859
  entry: input.entry,
28990
29860
  audience: input.props.audience,
@@ -29024,14 +29894,13 @@ function blockRootLookups(dataContext, routes) {
29024
29894
  function renderSystemBlockElement(input) {
29025
29895
  const { prepared, dataContext } = input;
29026
29896
  const block = input.entry.block;
29027
- const BlockComponent = prepared.component;
29028
- if (!BlockComponent) return null;
29897
+ if (!prepared.component) return null;
29029
29898
  const rootContext = { $root: {
29030
29899
  ...buildPageRendererRootRuntime(dataContext),
29031
29900
  ...blockRootLookups(dataContext, prepared.routes),
29032
29901
  ...blockSubjectProps(dataContext)
29033
29902
  } };
29034
- return /* @__PURE__ */ jsx(BlockComponent, {
29903
+ return resolveDefaultBlockTree(input.entry.definition.manifest, {
29035
29904
  ...prepared.baseProps,
29036
29905
  dateContext: rootContext.$root.dateContext,
29037
29906
  now: rootContext.$root.now,
@@ -29047,6 +29916,39 @@ function renderSystemBlockElement(input) {
29047
29916
  previewAuthoring: input.previewAuthoring
29048
29917
  });
29049
29918
  }
29919
+ /** Keep resolution failures inside the existing per-block React error boundary. */
29920
+ function FailedSystemBlockTree({ error }) {
29921
+ throw error;
29922
+ }
29923
+ function resolveSystemBlockTree(input) {
29924
+ try {
29925
+ return renderSystemBlockElement(input);
29926
+ } catch (error) {
29927
+ return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
29928
+ }
29929
+ }
29930
+ /** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
29931
+ function createPageSystemTreeReader() {
29932
+ const memo = {};
29933
+ return (input) => {
29934
+ const previous = memo.current;
29935
+ const sameSettings = previous && previous.input.registry === input.registry && previous.input.previewAuthoring === input.previewAuthoring && previous.input.imageResolveContext === input.imageResolveContext;
29936
+ const trees = new Map([...input.preparation.regions.main, ...input.preparation.regions.aside].flatMap((candidate) => {
29937
+ const { entry, prepared } = candidate;
29938
+ if (entry.kind !== "renderable" || entry.override || prepared.kind !== "content") return [];
29939
+ return [[candidate, sameSettings && previous.trees.has(candidate) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id) ? previous.trees.get(candidate) : resolveSystemBlockTree({
29940
+ ...input,
29941
+ entry,
29942
+ prepared
29943
+ })]];
29944
+ }));
29945
+ memo.current = {
29946
+ input,
29947
+ trees
29948
+ };
29949
+ return new Map([...trees].map(([candidate, tree]) => [candidate.entry, tree]));
29950
+ };
29951
+ }
29050
29952
  /** Pure diagnostic choice; the audience owner controls its presentation. */
29051
29953
  function preparationDiagnostic(prepared, blockKind) {
29052
29954
  switch (prepared.kind) {
@@ -29112,7 +30014,7 @@ function finishBlockRender(node, block, perfStart, meta) {
29112
30014
  * referential equality of all props that affect rendering. Standard React.memo
29113
30015
  * wouldn't catch all the render triggers from the editor store.
29114
30016
  */
29115
- const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources, entry: preparedEntry, routeMap, audience, dataContext, registry, wrapBlock, imageResolveContext, previewAuthoring }) {
30017
+ const MemoBlockSection = React$1.memo(function MemoBlockSection({ systemTree, themeResources, entry: preparedEntry, routeMap, audience, dataContext, wrapBlock, imageResolveContext }) {
29116
30018
  const { entry, prepared } = preparedEntry;
29117
30019
  const block = entry.block;
29118
30020
  const perfStart = globalThis.process?.env?.DEBUG_PERF === "1" && typeof window === "undefined" ? Date.now() : 0;
@@ -29162,21 +30064,14 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
29162
30064
  if (OverrideComponent) rendered = /* @__PURE__ */ jsx(OverrideComponent, { ...prepared.baseProps });
29163
30065
  else {
29164
30066
  requireThemeResources(themeResources, block.kind);
29165
- rendered = renderSystemBlockElement({
29166
- prepared,
29167
- entry,
29168
- dataContext,
29169
- registry,
29170
- previewAuthoring,
29171
- imageResolveContext: resolvedImageResolveContext
29172
- });
30067
+ rendered = systemTree;
29173
30068
  }
29174
30069
  return finish(wrapped(rendered), {
29175
30070
  override: Boolean(OverrideComponent),
29176
30071
  hasResolvedData: prepared.hasResolvedData
29177
30072
  });
29178
30073
  }, (prev, next) => {
29179
- 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;
30074
+ return prev.entry === next.entry && prev.systemTree === next.systemTree && 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;
29180
30075
  });
29181
30076
  /** Every plan input participates in memo identity; the builder owns all rules. */
29182
30077
  function usePageRenderPlan(props) {
@@ -29652,6 +30547,51 @@ function joinPresentationBlock(block) {
29652
30547
  };
29653
30548
  }
29654
30549
  //#endregion
30550
+ //#region ../blocks/src/bindings/entryBoundContent.ts
30551
+ /** The manifest owns meaningful emptiness; bindings alone cannot prove it. */
30552
+ function isEntryBoundBlockEmpty(content, bindings, contract) {
30553
+ return contract.contentPresence !== void 0 && entryBoundPaths(bindings, "").length > 0 && contract.contentPresence.every((path) => !hasVisibleValue(readPath(content, path)));
30554
+ }
30555
+ function entryBoundPaths(bindings, prefix) {
30556
+ return Object.entries(bindings).flatMap(([key, spec]) => {
30557
+ const path = prefix ? `${prefix}.${key}` : key;
30558
+ if (typeof spec === "string") return [path];
30559
+ if (isDescriptor(spec)) return spec.source === "literal" ? [] : [path];
30560
+ return isRecord$6(spec) ? entryBoundPaths(spec, path) : [];
30561
+ });
30562
+ }
30563
+ function isDescriptor(value) {
30564
+ return isRecord$6(value) && typeof value.source === "string";
30565
+ }
30566
+ function readPath(source, path) {
30567
+ return path.split(".").reduce((current, segment) => isRecord$6(current) || Array.isArray(current) ? current[segment] : void 0, source);
30568
+ }
30569
+ const STRUCTURAL_RICH_TEXT_NODES = /* @__PURE__ */ new Set([
30570
+ "doc",
30571
+ "paragraph",
30572
+ "heading",
30573
+ "hardBreak",
30574
+ "text",
30575
+ "bulletList",
30576
+ "orderedList",
30577
+ "listItem",
30578
+ "blockquote"
30579
+ ]);
30580
+ function hasVisibleRichTextNode(node) {
30581
+ if (!isRecord$6(node)) return false;
30582
+ if (typeof node.type === "string" && !STRUCTURAL_RICH_TEXT_NODES.has(node.type)) return true;
30583
+ if (typeof node.text === "string" && node.text.trim() !== "") return true;
30584
+ return Array.isArray(node.content) && node.content.some(hasVisibleRichTextNode);
30585
+ }
30586
+ function hasVisibleValue(value) {
30587
+ if (value === null || value === void 0) return false;
30588
+ if (typeof value === "string") return value.trim() !== "";
30589
+ if (Array.isArray(value)) return value.some(hasVisibleValue);
30590
+ if (isRichTextDoc(value)) return hasVisibleRichTextNode(value);
30591
+ if (isRecord$6(value)) return typeof value.text === "string" ? value.text.trim() !== "" : Object.keys(value).length > 0;
30592
+ return true;
30593
+ }
30594
+ //#endregion
29655
30595
  //#region ../blocks/src/bindings/index.ts
29656
30596
  /**
29657
30597
  * Resolves a binding map to actual content values.
@@ -30239,4 +31179,4 @@ function Page(props) {
30239
31179
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HydratorWithContextProps, { ...toPageHydrationBootstrapConfig(props) }), /* @__PURE__ */ jsx(PageContent, { ...props })] });
30240
31180
  }
30241
31181
  //#endregion
30242
- export { normalizeRepeaterGridSpan as $, materializeEntriesMedia as A, systemBlockDefinitions as B, sanitizeSdkRuntimeBlockContent as C, MissingSdkThemeError as D, MISSING_SDK_THEME_ERROR_CODE as E, isRouteVisibleInStage as F, compileManifestContentContract as G, siteHeaderManifest as H, normalizeRenderStage as I, deriveFieldValidationPlan as J, registeredManifestContentContract as K, resolveRouteHrefForStage as L, renderBlock as M, getDefaultComponentRegistry as N, requireSdkTheme as O, resolveAuthoredLinkHref as P, flowRepeaterGridItems as Q, allOutlineBlocks as R, resolveSdkBlockManifest as S, resolveSiteCustomBlocks as T, blockDesignCapabilityMapFromDefinitions as U, siteFooterManifest as V, admitTransportedRenderableManifestContent as W, projectRepeaterGridLayout as X, fieldPlanToZod as Y, projectRepeaterGridLayoutForRendering as Z, buildSiteRenderSupport as _, solvedInksForThemeRuntime as a, applyCompiledRuntimeFieldsToContent as at, projectRenderablePageOutline as b, MissingBlockOverrideError as c, readPublishedBlockPlacement as ct, buildThemeRuntime as d, resolveRepeaterGridAcceptedSpans as et, parseBlocksTheme as f, buildRenderablePageOutline as g, blockDesignInputsForDefinition as h, renderWithSdkThemeRuntime as i, buildPageDesignEditorReadModel as it, makeDefaultBlockComponent as j, prefetchBlockDataWithFailures as k, PageRenderer as l, resolveRuntimeJoinFacts as m, planLayoutThemeRuntime as n, encodePublicProductCategorySelector as nt, ThemeScope as o, compileEditorModelRuntime as ot, applyBindingsToContent as p, admitLayoutGridForPlan as q, renderWithOverrideOnlyRuntime as r, parseListLook as rt, EditorPageRenderer as s, isSupportedLoaderEndpoint$1 as st, Page as t, isRecord$6 as tt, toBlocksPageRendererDataContext as u, collectMediaAssetSidecar as v, siteLocationRenderContext as w, readInvalidBlockAdmission as x, invalidRenderableBlock as y, getBlockDefinition as z };
31182
+ export { flowRepeaterGridItems as $, prefetchBlockDataWithFailures as A, getBlockDefinition as B, resolveSdkBlockManifest as C, MISSING_SDK_THEME_ERROR_CODE as D, resolveSiteCustomBlocks as E, resolveAuthoredLinkHref as F, admitTransportedRenderableManifestContent as G, siteFooterManifest as H, isRouteVisibleInStage as I, admitLayoutGridForPlan as J, compileManifestContentContract as K, normalizeRenderStage as L, makeDefaultBlockComponent as M, renderBlock as N, MissingSdkThemeError as O, getDefaultComponentRegistry as P, projectRepeaterGridLayoutForRendering as Q, resolveRouteHrefForStage as R, readInvalidBlockAdmission as S, siteLocationRenderContext as T, siteHeaderManifest as U, systemBlockDefinitions as V, blockDesignCapabilityMapFromDefinitions as W, fieldPlanToZod as X, deriveFieldValidationPlan as Y, projectRepeaterGridLayout as Z, buildRenderablePageOutline as _, solvedInksForThemeRuntime as a, buildPageDesignEditorReadModel as at, invalidRenderableBlock as b, MissingBlockOverrideError as c, isSupportedLoaderEndpoint$1 as ct, buildThemeRuntime as d, normalizeRepeaterGridSpan as et, parseBlocksTheme as f, blockDesignInputsForDefinition as g, resolveRuntimeJoinFacts as h, renderWithSdkThemeRuntime as i, parseListLook as it, materializeEntriesMedia as j, requireSdkTheme as k, PageRenderer as l, readPublishedBlockPlacement as lt, isEntryBoundBlockEmpty as m, planLayoutThemeRuntime as n, isRecord$6 as nt, ThemeScope as o, applyCompiledRuntimeFieldsToContent as ot, applyBindingsToContent as p, registeredManifestContentContract as q, renderWithOverrideOnlyRuntime as r, encodePublicProductCategorySelector as rt, EditorPageRenderer as s, compileEditorModelRuntime as st, Page as t, resolveRepeaterGridAcceptedSpans as tt, toBlocksPageRendererDataContext as u, buildSiteRenderSupport as v, sanitizeSdkRuntimeBlockContent as w, projectRenderablePageOutline as x, collectMediaAssetSidecar as y, allOutlineBlocks as z };