@riverbankcms/sdk 0.171.1 → 0.173.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 (220) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
  2. package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-Bk99sJwV.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
  4. package/dist/_dts/{client-CXPH5esD.d.ts → client-ZlNEIvlU.d.ts} +1002 -140
  5. package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DBXPNc0h.d.ts} +3 -3
  6. package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
  9. package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-BnatulTs.d.ts} +3 -3
  10. package/dist/_dts/{index-Sua-7CF1.d.ts → index-C611wjIL.d.ts} +1 -1
  11. package/dist/_dts/{index-C9_OTCFQ.d.ts → index-CJzs-yIJ.d.ts} +2 -2
  12. package/dist/_dts/{index-B3gfKNI-.d.ts → index-DW3eeNph.d.ts} +4 -4
  13. package/dist/_dts/{index-DlABXDte.d.ts → index-Dq_AboWN.d.ts} +1 -1
  14. package/dist/_dts/{index-DScYSl03.d.ts → index-DutLU2d2.d.ts} +49 -38
  15. package/dist/_dts/{index-BQPJbOkU.d.ts → index-KXh8FQ2s.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-Bde2y870.d.ts} +7 -7
  17. package/dist/_dts/{request-DUTkELQn.d.ts → request-Bysk4QPI.d.ts} +2862 -508
  18. package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-CGa6QMgc.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 +6 -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-JD-36x3P.d.ts → types-BoEk9ZON.d.ts} +3 -3
  54. package/dist/_dts/{types-BCzfYDW2.d.ts → types-BwitGNTl.d.ts} +7 -7
  55. package/dist/_dts/{types-CPHk5Voq.d.ts → types-kpp8XyXv.d.ts} +2 -2
  56. package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-ChftKX-o.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-LHQMODqB.mjs} +14 -8
  59. package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-BewbU_cV.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +42 -35
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +23 -23
  64. package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-CaI6upCX.mjs} +12 -11
  65. package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-CoRUaYHY.mjs} +12 -11
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-Doe4KodB.mjs} +60 -25
  68. package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BmfyK7S5.mjs} +220 -81
  71. package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +847 -146
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-CdRPU6gp.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
  74. package/dist/client/{Page-CT4HaEMr.mjs → Page-D46Dmr7b.mjs} +1976 -532
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CrSZCZn1.mjs} +83 -12
  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-D4DhWo9j.mjs} +37 -38
  80. package/dist/client/{accordion-BOApxi9U.mjs → accordion-P8xcfKxq.mjs} +1 -1
  81. package/dist/client/bookability-SargNwlO.mjs +17 -0
  82. package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-BM2s-NqR.mjs} +33 -29
  83. package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-JnaZPZge.mjs} +4 -4
  84. package/dist/client/bookings.mjs +5 -5
  85. package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
  86. package/dist/client/{carousel-DeI76SEP.mjs → carousel-CQQ_m0KA.mjs} +2 -2
  87. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  88. package/dist/client/{cart-D_uxULCO.mjs → cart-0Q4fjw_K.mjs} +3 -3
  89. package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BI0IaHX3.mjs} +1 -1
  90. package/dist/client/{checkout-DIbh4g5e.mjs → checkout-1J-3ftxF.mjs} +3 -3
  91. package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
  93. package/dist/client/client.mjs +183 -4
  94. package/dist/client/{context-Dzjv2CpA.mjs → context-D0KCgbOq.mjs} +94 -14
  95. package/dist/client/course-CmOuoZHN.mjs +237 -0
  96. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
  97. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
  98. package/dist/client/{display-ChgDe9Da.mjs → display-lL-YRApN.mjs} +4460 -888
  99. package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +139 -16
  100. package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
  101. package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-GuuElczW.mjs} +1316 -554
  102. package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
  103. package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
  104. package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BJpAD10-.mjs} +2 -2
  105. package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-jLB8iRqp.mjs} +4 -4
  106. package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
  107. package/dist/client/{form-ERv_X_oZ.mjs → form-DO6qKH3M.mjs} +3 -3
  108. package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D12ljYiX.mjs} +4 -4
  109. package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-C8QHaQOI.mjs} +3 -3
  110. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-BnhfIpCa.mjs} +1 -1
  111. package/dist/client/gifting/client.mjs +3 -3
  112. package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BtFWtoUm.mjs} +2 -2
  113. package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-oHrqM_Ao.mjs} +5 -5
  114. package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-D5U-FuVy.mjs} +2 -2
  115. package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
  116. package/dist/client/{noop-poI1m2yW.mjs → noop-CN0o0yjH.mjs} +131 -12
  117. package/dist/client/portal/client.mjs +231 -117
  118. package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
  119. package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
  120. package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-DaqM-LgL.mjs} +3 -3
  121. package/dist/client/{productList-HoFGQXFl.mjs → productList-CMx4-XlG.mjs} +3 -3
  122. package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
  123. package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cdot3dMk.mjs} +2705 -2397
  124. package/dist/client/rendering/client.mjs +27 -27
  125. package/dist/client/rendering/islands.mjs +1 -1
  126. package/dist/client/rendering.mjs +38 -63
  127. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
  128. package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
  129. package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
  130. package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
  131. package/dist/client/{shop-DXyeSNgi.mjs → shop-Cy6xXDM7.mjs} +3 -3
  132. package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-oDR76k1q.mjs} +13 -12
  133. package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
  134. package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
  135. package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-Brha4BSM.mjs} +13 -12
  136. package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-CXhYl0DW.mjs} +218 -89
  137. package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-JCa_SRhP.mjs} +2 -2
  138. package/dist/client/spam-protection.mjs +1 -1
  139. package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
  140. package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-CZeJwMxP.mjs} +11 -11
  141. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  142. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
  143. package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
  144. package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
  145. package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-CCAGQHsD.mjs} +6 -6
  146. package/dist/client/{view-DhEwiTJG.mjs → view-D6yebI4r.mjs} +223 -65
  147. package/dist/client/{view-C_brMDU2.mjs → view-Sw075FOY.mjs} +3 -3
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-DG2rXUmo.mjs} +48 -36
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +113 -416
  153. package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI-CqZCfOaz.mjs} +5 -5
  154. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  155. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  156. package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bv2HZ7JY.mjs} +313 -64
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +300 -174
  158. package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +3246 -1079
  159. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  160. package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  161. package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-La6MerV_.mjs} +11994 -6013
  162. package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
  163. package/dist/preview-next/client/runtime.mjs +5 -4
  164. package/dist/preview-next/client/sdk-runtime-BkckHox4.mjs +6 -0
  165. package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CPAHgGqI.mjs} +2 -2
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +20 -8
  167. package/dist/preview-next/container-responsive.css +215 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-CPV30ABr.mjs} +179 -0
  171. package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-BaMMstO1.mjs} +5 -5
  172. package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
  173. package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  174. package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Dge4sqel.mjs} +109 -20
  175. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  176. package/dist/server/{client-DCwLR0kQ.mjs → client-VVIQjC4r.mjs} +183 -4
  177. package/dist/server/config-template-validation.mjs +3 -0
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -3
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
  182. package/dist/server/index.mjs +4 -4
  183. package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-BIJb3WAK.mjs} +19 -15
  184. package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-DjTU19y7.mjs} +2 -2
  185. package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
  186. package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
  187. package/dist/server/navigation.mjs +1 -1
  188. package/dist/server/next.mjs +6 -6
  189. package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  190. package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
  191. package/dist/server/page-converter.mjs +1 -1
  192. package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-CytPhrI9.mjs} +1084 -351
  193. package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +4 -3
  194. package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-Bhx8bVe1.mjs} +1187 -902
  195. package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +2 -2
  196. package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-BjvFb0CA.mjs} +1 -1
  197. package/dist/server/prebuild.mjs +1 -1
  198. package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
  199. package/dist/server/{registry-CaeRTf4E.mjs → registry-BMCfcev6.mjs} +10282 -7366
  200. package/dist/server/rendering/components/pageShared.mjs +1 -1
  201. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  202. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  203. package/dist/server/rendering/server.mjs +3 -3
  204. package/dist/server/rendering.mjs +8 -8
  205. package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData--yUbI-Ll.mjs} +2 -2
  206. package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
  207. package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
  208. package/dist/server/{schema-CxBsE9Dv.mjs → schema-D5Vfmqzw.mjs} +396 -2
  209. package/dist/server/server.mjs +3 -3
  210. package/dist/server/theme-bridge.mjs +2 -2
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{validation-CvmhnkDr.mjs → validation-EgTtnTcY.mjs} +5 -5
  213. package/dist/server/{version-Clp2evCf.mjs → version-LjgU0Cq1.mjs} +1 -1
  214. package/dist/styles/index.css +1434 -15
  215. package/package.json +1 -1
  216. package/dist/client/cta-CP9l112u.mjs +0 -121
  217. package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
  218. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  219. package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
  220. package/dist/server/rich-text-CRcONdyM.mjs +0 -33
@@ -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, En as parseContentVersionId, G as isOfferingsPreviewSourceKey, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, K as normalizeOfferingsPreviewContentForWrite, Kt as quickFactSlots, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Sn as parseMailingListPlacementTargeting, Tn as sameMailingListPlacementTargeting, Vt as cardListPresentationSchemaShape, W as groupOfferingRunsByCourse, Xt as buildEventListWeek, Y as offeringsListingFor, _n as parseHeaderPositioning, an as formatEventStartingPrice, bn as buildMailingListSignupBlockSourceRef, bt as combinedLookSchema, hn as resolveHeaderChromeRuntimeContract, mn as isHeaderScrollRuntimeEnabled, st as occurrenceContextSchema, vn as planSiteChromePlacement, vt as projectRecurringSchedule, yt as recurringScheduleProjectionSchema } from "./shop.interactive-CXhYl0DW.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 arrangementStyleAvailability, $o as transitionCatalogueEntries, $s as asPageFlowPresetId, Ao as buildTextContrastShadow, As as arrangementSlotNames, Bo as sectionShapeForGround, Cc as formatBookingPriceDisplay, Co as gradientToCss, Cs as toNonEmptyReadonlyArray, Do as generateFooterCss, Ds as opaqueSurfaceDeclarations, Eo as generateDefaultCardSystem, Es as opaqueSurfaceContextFromTheme, Fo as navLinkOwnsHoverForeground, Fs as blockCustomCssRuleSchema, Go as boundaryRuntimeMetricsForDecorativeTransition, Gs as surfaceCardRoleValues, Ho as sectionShapeHook, Hs as cardVariantRoleValues, Ia as normalizeEventRegistrationPageSurfaceSubject, Io as navLinkOwnsUnderline, Is as customCssRuleSchema, Ja as lookPresentationOnPalette, Jo as noneBoundaryOption, Js as asHeaderStyleId, Ka as resolvedItemSurfaceProps, Ko as boundaryTreatmentForBoundaryOptionId, Ks as parseGradientPresetId, Mo as generateEffectsCSS, Ms as sectionStylesOverrideSchema, No as generateInteractiveChildInheritanceCSS, Ns as themeSchema, Oo as footerForegroundCandidates, Os as selectLogoVariant, Po as navLinkHoverColorCandidate, Ps as headerVariantValues, Qa as arrangementLookHooks, Qo as anglePolygonCss, Qs as asLayoutVariantKey, Ro as resolvePageDesignBlockLookChoice, Rs as boxBackgroundSchema, Sa as resolveDateRuntimeContext, Ss as testimonialsCompositionTreatmentValues, To as resolveCardRole, Ts as cardListKnobBlocks, Uo as boundaryOptionForTransitionIntent, Vo as sectionShapeFromContent, Wo as boundaryOptions, Xa as selectItemSurfacePresentation, Xo as spaciousBoundaryOption, Ya as resolveLookSurfacePresentation, Yo as softBoundaryOption, Ys as siteChromeBackgroundOverrideOwner, Za as arrangementAppearancePresets, Zo as transitionIntentForTreatment, Zs as asDesignBlockId, _o as getCuratedSiteStyle, _s as featureCardCompositionTreatmentValues, ao as styleSectionBackgroundForColour, as as sectionSurfaceBase, ba as isBlockButtonRole, br as MediaPlaceholder, bs as plainFrame, co as resolveEffectiveArrangement, ds as assertNever$1, ec as asSiteStyleId, eo as automaticArrangementLook, es as applyLookPhotoTreatment, fo as deriveSiteStyleBlockPolicy, fs as defineBlockDesignCapability, gs as designIssueSeverityForPolicy, hs as defineNoBlockDesignCapability, ic as isRecord$8, io as resolveLookForBlock, is as sectionForegroundBackground, jo as generateNavLinkCSS, jr as eventCalendarWeekStart, js as TokenResolver, ko as getNavLinkPreset, ks as surfaceToneFromForegroundToken, lo as resolveModeArrangement, ls as resolveEffectiveKnobs, mo as filterLookIdsForPolicy, ms as defineFrameCapability, no as getCompatibleBlockAppearancePresets, ns as parseCanonicalRuntimeBackground, oo as arrangementManifestFromVariants, os as stripStaleTransitionStyleGroup, po as filterLayoutProfilesForPolicy, ps as defineExactCatalog, qa as itemRole, qo as isDecorativeTransitionIntent, qs as asHeaderLayoutId, ro as resolveArrangementLookForBlock, rs as resolveSectionBackground, so as readStoredMode, ss as themeV2CompilerOwnedFieldNames, tc as makeBoundaryId, to as compileArrangementLookRuntime, ts as deriveSectionGround, uo as resolvePublishedLook, us as lookModes, vo as requireCuratedSiteStyle, vs as introCompositionTreatmentValues, wo as getGradientPreset, ws as cardListFamilyBlocks, xa as readRuntimeNow, xo as stripCompiledRuntimeStyleFields, xr as computeMediaTransformStyle, xs as sectionBackgroundPaintValues, yo as compilePageRuntimeFields, ys as offeringsPreviewCompositionTreatmentValues, zo as resolvePageDesignBoundaryChoice, zs as runtimeBoxBackgroundSchema } from "./display-lL-YRApN.mjs";
5
+ import { A as eyebrowTreatmentValues, At as locationValueSchema, B as publicEventsArraySchema, Et as isRecord$9, F as visibleHeadingDecorationFamilyValues, I as eventVenueDrawingSchema, It as trimmedStringOrNull, J as RichTextDocSchema, Mt as parseLocationValue, N as isArrangementMode, Nt as projectPublicLocation, Ot as WHOLE_SERIES_EVENT_PRESET_VALUES, P as tileTreatmentValues, Pt as publicLocationSchema, R as publicEventPricingSchema, Rt as formatDate, U as bookingConsentCarrierSchema, Z as isRichTextDoc, _ as eventCalendarListLayoutOptions, a as eventAutoApplyDiscountPreviewSchema, at as PUBLIC_FILE_FIELD_KINDS, en as getLocalScheduleDate, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, j as headingDecorationColorTokenValues, k as eventListTreatmentValues, kt as decideLocationSourcePermission, o as publicMembershipProductCollectionSchema, rn as resolveBookingBusinessTimeZone, rt as runtimeMediaSchema, s as publicPassProductCollectionSchema, sn as toUtcIsoDateTimeString, t as logger, tt as mediaSchema, ut as eventCalendarListLayoutCompatibleDisplayModeValues, vt as calendarWindowQuerySchema, w as resolveEventCalendarReadPlan } from "./noop-CN0o0yjH.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 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-Cdot3dMk.mjs";
8
+ import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-CZeJwMxP.mjs";
9
+ 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-D4DhWo9j.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-Cahps5kR.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-D6yebI4r.mjs";
15
+ import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-Doe4KodB.mjs";
16
+ import { s as monthSlotParents } from "./CalendarNavigationChevron-BMZp3RS3.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-BmfyK7S5.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-BnhfIpCa.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-ByApwB4q.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;
@@ -829,6 +842,10 @@ function headerRootPaint(header) {
829
842
  if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
830
843
  return header?.variant === "floating" ? "overlay" : "own-surface";
831
844
  }
845
+ /** The root is transparent for detached chrome or an explicitly transparent bar. */
846
+ function headerRootIsTransparent(header) {
847
+ return headerRootPaint(header) !== "own-surface" || header?.background?.type === "color" && header.background.color === "transparent";
848
+ }
832
849
  //#endregion
833
850
  //#region ../theme-core/src/cards/constants.ts
834
851
  /**
@@ -1552,6 +1569,481 @@ function resolveBlockDesignPlan(input) {
1552
1569
  };
1553
1570
  }
1554
1571
  //#endregion
1572
+ //#region ../theme-core/src/site-styles/headerLayoutTypes.ts
1573
+ function deriveHeaderLogoShapeFromDimensions({ width, height }) {
1574
+ if (!width || !height) return "horizontal";
1575
+ const ratio = width / height;
1576
+ if (ratio > 1.4) return "horizontal";
1577
+ if (ratio < .8) return "tall";
1578
+ return "square";
1579
+ }
1580
+ //#endregion
1581
+ //#region ../theme-core/src/site-styles/logoBranding.ts
1582
+ const logoTextConfidenceValues = [
1583
+ "low",
1584
+ "medium",
1585
+ "high"
1586
+ ];
1587
+ const logoAssetShapeValues = [
1588
+ "none",
1589
+ "horizontal",
1590
+ "square",
1591
+ "portrait",
1592
+ "tall"
1593
+ ];
1594
+ const logoKindValues = [
1595
+ "mark",
1596
+ "wordmark",
1597
+ "lockup",
1598
+ "badge",
1599
+ "stacked-wordmark",
1600
+ "unknown"
1601
+ ];
1602
+ const logoDensityValues = [
1603
+ "simple",
1604
+ "detailed",
1605
+ "unknown"
1606
+ ];
1607
+ const logoContainsTextSchema = z.discriminatedUnion("kind", [
1608
+ z.object({
1609
+ kind: z.literal("contains-text"),
1610
+ confidence: z.enum(logoTextConfidenceValues),
1611
+ text: z.string().trim().min(1).max(200).optional()
1612
+ }),
1613
+ z.object({
1614
+ kind: z.literal("no-text"),
1615
+ confidence: z.enum(logoTextConfidenceValues)
1616
+ }),
1617
+ z.object({
1618
+ kind: z.literal("unknown"),
1619
+ reason: z.enum([
1620
+ "analysis-unavailable",
1621
+ "unsupported-file",
1622
+ "low-confidence"
1623
+ ])
1624
+ })
1625
+ ]);
1626
+ const logoAnalysisSourceSchema = z.discriminatedUnion("kind", [
1627
+ z.object({ kind: z.literal("none") }),
1628
+ z.object({
1629
+ kind: z.literal("deterministic"),
1630
+ reason: z.enum(["dimensions", "fallback"])
1631
+ }),
1632
+ z.object({
1633
+ kind: z.literal("llm"),
1634
+ model: z.literal("gpt-5.4-mini"),
1635
+ analyzedAt: z.string().trim().min(1).max(80).optional()
1636
+ }),
1637
+ z.object({ kind: z.literal("manual-override") })
1638
+ ]);
1639
+ /** Failed preparation supplies no measured geometry; its synthetic square is not asset evidence. */
1640
+ function parseStoredLogoFacts(value) {
1641
+ const parsed = logoFactsSchema.safeParse(value);
1642
+ if (!parsed.success) return null;
1643
+ const facts = parsed.data;
1644
+ return facts.source.kind === "deterministic" && facts.source.reason === "fallback" ? null : facts;
1645
+ }
1646
+ const logoFactsSchema = z.object({
1647
+ shape: z.enum(logoAssetShapeValues),
1648
+ containsText: logoContainsTextSchema,
1649
+ kind: z.enum(logoKindValues),
1650
+ density: z.enum(logoDensityValues),
1651
+ source: logoAnalysisSourceSchema
1652
+ });
1653
+ const defaultNoLogoFacts = {
1654
+ shape: "none",
1655
+ containsText: {
1656
+ kind: "no-text",
1657
+ confidence: "high"
1658
+ },
1659
+ kind: "unknown",
1660
+ density: "unknown",
1661
+ source: { kind: "none" }
1662
+ };
1663
+ function deterministicLogoFactsForShape(shape) {
1664
+ if (shape === "none") return defaultNoLogoFacts;
1665
+ return {
1666
+ shape,
1667
+ containsText: {
1668
+ kind: "unknown",
1669
+ reason: "analysis-unavailable"
1670
+ },
1671
+ kind: "unknown",
1672
+ density: "unknown",
1673
+ source: {
1674
+ kind: "deterministic",
1675
+ reason: "dimensions"
1676
+ }
1677
+ };
1678
+ }
1679
+ function resolveBrandDisplay(mode, logoFacts) {
1680
+ if (logoFacts.shape === "none") return "title-only";
1681
+ switch (mode) {
1682
+ case "logo-only": return "logo-only";
1683
+ case "logo-plus-title": return "logo-plus-title";
1684
+ case "title-only": return "title-only";
1685
+ case "auto": return resolveAutoBrandDisplay(logoFacts);
1686
+ default: return assertNever$1(mode, "Unhandled brand display mode");
1687
+ }
1688
+ }
1689
+ /** Evidence that the artwork already supplies the brand's readable identity. */
1690
+ function hasLogoTextEvidence(logoFacts) {
1691
+ return logoFacts.containsText.kind === "contains-text" || logoFacts.kind === "wordmark" || logoFacts.kind === "lockup" || logoFacts.kind === "badge" || logoFacts.kind === "stacked-wordmark";
1692
+ }
1693
+ function resolveAutoBrandDisplay(logoFacts) {
1694
+ return hasLogoTextEvidence(logoFacts) ? "logo-only" : "logo-plus-title";
1695
+ }
1696
+ //#endregion
1697
+ //#region ../theme-core/src/site-styles/headerLayoutCatalog.ts
1698
+ const titleOnlyLogoAccommodation = {
1699
+ pattern: "title-only",
1700
+ supportedShapes: [
1701
+ "none",
1702
+ "horizontal",
1703
+ "square",
1704
+ "portrait",
1705
+ "tall"
1706
+ ],
1707
+ supportedTextPresence: [
1708
+ "contains-text",
1709
+ "no-text",
1710
+ "unknown"
1711
+ ],
1712
+ supportedDisplayModes: ["title-only"],
1713
+ size: "compact"
1714
+ };
1715
+ const inlineWordmarkLogoAccommodation = {
1716
+ pattern: "inline-wordmark",
1717
+ supportedShapes: ["horizontal"],
1718
+ supportedTextPresence: [
1719
+ "contains-text",
1720
+ "no-text",
1721
+ "unknown"
1722
+ ],
1723
+ supportedDisplayModes: ["logo-only"],
1724
+ size: "standard",
1725
+ maxDensity: "detailed"
1726
+ };
1727
+ const inlineMarkWithTitleLogoAccommodation = {
1728
+ pattern: "inline-mark-with-title",
1729
+ supportedShapes: [
1730
+ "horizontal",
1731
+ "square",
1732
+ "portrait",
1733
+ "tall"
1734
+ ],
1735
+ supportedTextPresence: [
1736
+ "contains-text",
1737
+ "no-text",
1738
+ "unknown"
1739
+ ],
1740
+ supportedDisplayModes: ["logo-plus-title"],
1741
+ size: "compact",
1742
+ maxDensity: "detailed"
1743
+ };
1744
+ const logoPlateAccommodation = {
1745
+ pattern: "logo-plate",
1746
+ supportedShapes: [
1747
+ "square",
1748
+ "portrait",
1749
+ "tall"
1750
+ ],
1751
+ supportedTextPresence: [
1752
+ "contains-text",
1753
+ "no-text",
1754
+ "unknown"
1755
+ ],
1756
+ supportedDisplayModes: ["logo-only"],
1757
+ size: "display",
1758
+ providesBacking: true
1759
+ };
1760
+ const centeredBadgeAccommodation = {
1761
+ pattern: "centered-badge",
1762
+ supportedShapes: [
1763
+ "square",
1764
+ "portrait",
1765
+ "tall"
1766
+ ],
1767
+ supportedTextPresence: [
1768
+ "contains-text",
1769
+ "no-text",
1770
+ "unknown"
1771
+ ],
1772
+ supportedDisplayModes: ["logo-only"],
1773
+ size: "display",
1774
+ providesBacking: true
1775
+ };
1776
+ const popoutBadgeAccommodation = {
1777
+ pattern: "popout-badge",
1778
+ supportedShapes: [
1779
+ "square",
1780
+ "portrait",
1781
+ "tall"
1782
+ ],
1783
+ supportedTextPresence: [
1784
+ "contains-text",
1785
+ "no-text",
1786
+ "unknown"
1787
+ ],
1788
+ supportedDisplayModes: ["logo-only"],
1789
+ size: "display",
1790
+ providesBacking: true
1791
+ };
1792
+ const centeredMastheadAccommodation = {
1793
+ pattern: "centered-masthead",
1794
+ supportedShapes: [
1795
+ "square",
1796
+ "portrait",
1797
+ "tall"
1798
+ ],
1799
+ supportedTextPresence: [
1800
+ "contains-text",
1801
+ "no-text",
1802
+ "unknown"
1803
+ ],
1804
+ supportedDisplayModes: ["logo-only"],
1805
+ size: "display",
1806
+ providesBacking: true
1807
+ };
1808
+ const unbackedOverlayLogoAccommodation = {
1809
+ pattern: "inline-logo-only",
1810
+ supportedShapes: ["square"],
1811
+ supportedTextPresence: [
1812
+ "contains-text",
1813
+ "no-text",
1814
+ "unknown"
1815
+ ],
1816
+ supportedDisplayModes: ["logo-only"],
1817
+ size: "compact",
1818
+ providesBacking: false
1819
+ };
1820
+ const inlineClassicLogoAccommodations = [
1821
+ titleOnlyLogoAccommodation,
1822
+ inlineWordmarkLogoAccommodation,
1823
+ inlineMarkWithTitleLogoAccommodation,
1824
+ popoutBadgeAccommodation,
1825
+ logoPlateAccommodation
1826
+ ];
1827
+ const centeredLogoAccommodations = [
1828
+ titleOnlyLogoAccommodation,
1829
+ inlineWordmarkLogoAccommodation,
1830
+ inlineMarkWithTitleLogoAccommodation,
1831
+ centeredMastheadAccommodation,
1832
+ centeredBadgeAccommodation
1833
+ ];
1834
+ const overlayLogoAccommodations = [
1835
+ titleOnlyLogoAccommodation,
1836
+ inlineWordmarkLogoAccommodation,
1837
+ inlineMarkWithTitleLogoAccommodation,
1838
+ unbackedOverlayLogoAccommodation
1839
+ ];
1840
+ const allCuratedLogoAccommodations = [
1841
+ ...inlineClassicLogoAccommodations,
1842
+ ...centeredLogoAccommodations,
1843
+ ...overlayLogoAccommodations
1844
+ ];
1845
+ /**
1846
+ * Whether an accommodation pattern draws its own backing behind the logo.
1847
+ * Derived from the catalogue above rather than restated, so a new backing
1848
+ * accommodation cannot drift out of sync with this answer. Patterns declared in
1849
+ * `LogoAccommodationPattern` but not offered by any layout resolve to `false`,
1850
+ * which is the honest answer: nothing can select them.
1851
+ */
1852
+ const backingLogoAccommodationPatterns = new Set(allCuratedLogoAccommodations.filter((option) => option.providesBacking === true).map((option) => option.pattern));
1853
+ function logoAccommodationProvidesBacking(pattern) {
1854
+ return backingLogoAccommodationPatterns.has(pattern);
1855
+ }
1856
+ /**
1857
+ * The single answer to "what shape is this site's logo" (#1318 Phase 4b).
1858
+ *
1859
+ * The server and the public frontend each had their own copy of this, and they
1860
+ * disagreed on the one case that matters: a logo whose dimensions are unknown.
1861
+ * The server assumed `horizontal`; the frontend asked whether the persisted
1862
+ * accommodation brings its own backing and answered `square` if it does. The
1863
+ * richer rule is the correct one — a badge or masthead accommodation is
1864
+ * evidence about the asset that raw dimensions would otherwise supply — and it
1865
+ * reduces to `horizontal` whenever there is no backing, so it subsumes the
1866
+ * server's rule rather than contradicting it. The backing question goes through
1867
+ * `logoAccommodationProvidesBacking`, so the pattern list has one home.
1868
+ */
1869
+ function deriveHeaderLogoShape({ asset, accommodation }) {
1870
+ if (!asset) return "text-only";
1871
+ if (!asset.width || !asset.height) return accommodation !== void 0 && logoAccommodationProvidesBacking(accommodation) ? "square" : "horizontal";
1872
+ return deriveHeaderLogoShapeFromDimensions(asset);
1873
+ }
1874
+ /**
1875
+ * The site's logo as the header pipeline sees it. Stored asset facts win; older
1876
+ * assets without facts use the shape-only context with unknown text presence.
1877
+ * Geometry still comes from the two database values
1878
+ * that describe it: the asset (or its absence) and the accommodation the row
1879
+ * currently persists, which is evidence about the asset when its dimensions are
1880
+ * missing.
1881
+ *
1882
+ * One definition, shared by every shell that has to answer it — the dashboard's
1883
+ * `loadHeaderLogoContextForSite`, the public frontend, and the Phase 4c repair
1884
+ * generator — because a second copy is a second answer to "what shape is this
1885
+ * site's logo", and the two former copies disagreed on exactly the case this
1886
+ * one is careful about (#1318 Phase 4b/4c).
1887
+ */
1888
+ function headerLogoShapeContext(input) {
1889
+ const facts = input.asset ? parseStoredLogoFacts(input.asset.logoFacts) : null;
1890
+ return {
1891
+ ...facts ? {
1892
+ kind: "facts",
1893
+ facts
1894
+ } : {
1895
+ kind: "shape",
1896
+ shape: deriveHeaderLogoShape(input)
1897
+ },
1898
+ ...input.brand?.brandDisplay === void 0 ? {} : { brandDisplayMode: input.brand.brandDisplay },
1899
+ ...input.brand?.logoSize === void 0 ? {} : { sizePolicy: input.brand.logoSize }
1900
+ };
1901
+ }
1902
+ function logoFactsForHeaderContext(logo) {
1903
+ if (logo.kind === "facts") return logo.facts;
1904
+ switch (logo.shape) {
1905
+ case "none":
1906
+ case "text-only": return deterministicLogoFactsForShape("none");
1907
+ case "horizontal":
1908
+ case "square":
1909
+ case "tall": return deterministicLogoFactsForShape(logo.shape);
1910
+ default: return assertNever$1(logo.shape, "Unhandled header logo shape");
1911
+ }
1912
+ }
1913
+ const headerLayoutCatalog = defineExactCatalog()([
1914
+ {
1915
+ id: asHeaderLayoutId("classic"),
1916
+ label: "Classic",
1917
+ description: "Logo and navigation in one practical horizontal row.",
1918
+ variant: "classic",
1919
+ defaultPositioning: "sticky",
1920
+ shrinkOnScroll: false,
1921
+ logoAccommodations: inlineClassicLogoAccommodations,
1922
+ openingRequirement: "none"
1923
+ },
1924
+ {
1925
+ id: asHeaderLayoutId("centered"),
1926
+ label: "Centered",
1927
+ description: "Logo centered above a balanced navigation row.",
1928
+ variant: "centered",
1929
+ defaultPositioning: "static",
1930
+ shrinkOnScroll: false,
1931
+ logoAccommodations: centeredLogoAccommodations,
1932
+ openingRequirement: "none"
1933
+ },
1934
+ {
1935
+ id: asHeaderLayoutId("floating"),
1936
+ label: "Floating",
1937
+ description: "Detached header chrome that sits over the opening section.",
1938
+ variant: "floating",
1939
+ defaultPositioning: "sticky",
1940
+ shrinkOnScroll: true,
1941
+ logoAccommodations: overlayLogoAccommodations,
1942
+ openingRequirement: "requires-image-hero-with-contrast-overlay"
1943
+ }
1944
+ ]);
1945
+ function supportedLayouts(ids) {
1946
+ return ids.map(asHeaderLayoutId);
1947
+ }
1948
+ const headerStyleCatalog = defineExactCatalog()([
1949
+ {
1950
+ id: asHeaderStyleId("minimal"),
1951
+ label: "Minimal",
1952
+ description: "Quiet surface with simple color-change navigation.",
1953
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
1954
+ },
1955
+ {
1956
+ id: asHeaderStyleId("fine-line"),
1957
+ label: "Seamless",
1958
+ description: "Borderless surface with underline hover for a quieter page transition.",
1959
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
1960
+ },
1961
+ {
1962
+ id: asHeaderStyleId("soft-bar"),
1963
+ label: "Soft Bar",
1964
+ description: "Soft tinted surface with gentle pill hover states.",
1965
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
1966
+ },
1967
+ {
1968
+ id: asHeaderStyleId("pill-nav"),
1969
+ label: "Pill Nav",
1970
+ description: "A calm pill navigation rail over a neutral header.",
1971
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
1972
+ },
1973
+ {
1974
+ id: asHeaderStyleId("brand-bar"),
1975
+ label: "Brand Bar",
1976
+ description: "Solid brand surface with high-contrast navigation.",
1977
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
1978
+ },
1979
+ {
1980
+ id: asHeaderStyleId("brand-underline"),
1981
+ label: "Brand Underline",
1982
+ description: "Brand surface with underline-grow navigation.",
1983
+ supportedLayoutIds: supportedLayouts(["classic"])
1984
+ },
1985
+ {
1986
+ id: asHeaderStyleId("brand-pill"),
1987
+ label: "Brand Pill",
1988
+ description: "Solid brand surface with rounded active and hover states.",
1989
+ supportedLayoutIds: supportedLayouts([
1990
+ "classic",
1991
+ "centered",
1992
+ "floating"
1993
+ ])
1994
+ },
1995
+ {
1996
+ id: asHeaderStyleId("brand-capsule"),
1997
+ label: "Brand Capsule",
1998
+ description: "Solid brand chrome designed as a floating capsule, with quiet-caps nav, a soft pill active state, and an inverted CTA pill.",
1999
+ supportedLayoutIds: supportedLayouts(["classic"])
2000
+ },
2001
+ {
2002
+ id: asHeaderStyleId("serif-line"),
2003
+ label: "Serif Line",
2004
+ description: "Typographic logo treatment with understated underline navigation.",
2005
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
2006
+ },
2007
+ {
2008
+ id: asHeaderStyleId("flat-tabs"),
2009
+ label: "Flat Tabs",
2010
+ description: "Flat block hover and active states with a Swiss utility feel.",
2011
+ supportedLayoutIds: supportedLayouts(["classic", "centered"])
2012
+ },
2013
+ {
2014
+ id: asHeaderStyleId("glass"),
2015
+ label: "Glass",
2016
+ description: "Translucent chrome with frosted navigation backing.",
2017
+ supportedLayoutIds: supportedLayouts(["floating"])
2018
+ },
2019
+ {
2020
+ id: asHeaderStyleId("minimal-surface"),
2021
+ label: "Clear Split",
2022
+ description: "Floating logo with transparent navigation and no shared shell.",
2023
+ supportedLayoutIds: supportedLayouts(["floating"])
2024
+ },
2025
+ {
2026
+ id: asHeaderStyleId("soft-shell"),
2027
+ label: "Soft Shell",
2028
+ description: "Floating rounded shell with soft pill navigation states.",
2029
+ supportedLayoutIds: supportedLayouts(["floating"])
2030
+ },
2031
+ {
2032
+ id: asHeaderStyleId("split-glass"),
2033
+ label: "Split Glass",
2034
+ description: "Logo floats independently while the navigation sits in a glass rail.",
2035
+ supportedLayoutIds: supportedLayouts(["floating"])
2036
+ },
2037
+ {
2038
+ id: asHeaderStyleId("split-pill"),
2039
+ label: "Split Pill",
2040
+ description: "Logo floats independently with a soft pill-backed navigation rail.",
2041
+ supportedLayoutIds: supportedLayouts(["floating"])
2042
+ }
2043
+ ]);
2044
+ new Map(headerLayoutCatalog.map((layout) => [layout.id, layout]));
2045
+ new Map(headerStyleCatalog.map((style) => [style.id, style]));
2046
+ //#endregion
1555
2047
  //#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
1556
2048
  /**
1557
2049
  * Applies the user's nav font-role/size overrides on top of a style-resolved
@@ -1778,10 +2270,13 @@ function requiresPhoto(option) {
1778
2270
  const treatment = boundaryTreatmentForBoundaryOptionId(option);
1779
2271
  return treatment?.kind === "wave-edge" && treatment.echo === true;
1780
2272
  }
1781
- /** A rule claims blocks before later rules count their first occurrence. */
2273
+ /**
2274
+ * A rule claims blocks on its side before later rules on that side count their first occurrence.
2275
+ * Claims are per side, so one style can join into a block and out of it.
2276
+ */
1782
2277
  function matchedRuleBlocks(rule, blocks, claimed) {
1783
2278
  const matches = blocks.flatMap((block, index) => {
1784
- if (claimed.has(index) || rule.position === "opening" && index !== 0) return [];
2279
+ if (claimed.has(`${rule.side}:${index}`) || rule.position === "opening" && index !== 0) return [];
1785
2280
  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
2281
  });
1787
2282
  return rule.occurrence === "first" ? matches.slice(0, 1) : matches;
@@ -1791,7 +2286,7 @@ function pageRuleOptions(rules, blocks) {
1791
2286
  const matched = matchedRuleBlocks(rule, blocks, state.claimed);
1792
2287
  const options = matched.map((index) => rule.side === "after" ? index : index - 1).filter((index) => index >= 0 && index < blocks.length - 1 && !state.options.has(index));
1793
2288
  return {
1794
- claimed: /* @__PURE__ */ new Set([...state.claimed, ...matched]),
2289
+ claimed: /* @__PURE__ */ new Set([...state.claimed, ...matched.map((index) => `${rule.side}:${index}`)]),
1795
2290
  options: new Map([...state.options, ...options.map((index) => [index, rule.join])])
1796
2291
  };
1797
2292
  }, {
@@ -1918,12 +2413,33 @@ function runtimeJoinForEditorBoundary(boundary) {
1918
2413
  }] : [];
1919
2414
  }
1920
2415
  function applyCompiledRuntimeFieldsToContent(content, fields) {
1921
- const runtimeFields = fields ? preserveContentOwnedBackgroundFields(content, fields) : fields;
2416
+ const runtimeFields = fields ? preserveContentOwnedBackgroundFields(content, preserveArrangementSectionSpacing(content, fields)) : fields;
1922
2417
  return {
1923
2418
  ...stripCompiledRuntimeStyleFields(content),
1924
2419
  ...runtimeFields
1925
2420
  };
1926
2421
  }
2422
+ /**
2423
+ * An arrangement Look compiles no section spacing, because its skin owns the
2424
+ * padding. The spacing the owner chose still travels with the content so the
2425
+ * renderer can hand it to the skin as a hook; the render plan takes it back out
2426
+ * before the section's padding class is chosen, so the padding itself is
2427
+ * unchanged.
2428
+ */
2429
+ function preserveArrangementSectionSpacing(content, fields) {
2430
+ if (!fields._arrangementLooks || fields._sectionStyles?.spacing != null) return fields;
2431
+ const sectionStyles = content._sectionStyles;
2432
+ const spacing = typeof sectionStyles === "object" && sectionStyles !== null && "spacing" in sectionStyles ? sectionStyles.spacing : void 0;
2433
+ const parsed = sectionStylesOverrideSchema.shape.spacing.safeParse(spacing);
2434
+ if (!parsed.success || parsed.data == null) return fields;
2435
+ return {
2436
+ ...fields,
2437
+ _sectionStyles: {
2438
+ ...fields._sectionStyles,
2439
+ spacing: parsed.data
2440
+ }
2441
+ };
2442
+ }
1927
2443
  function preserveContentOwnedBackgroundFields(content, fields) {
1928
2444
  const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), fields._sectionStyles?.background);
1929
2445
  if (resolved.kind === "look-surface" || resolved.kind === "base") return fields;
@@ -2047,6 +2563,134 @@ function capabilitySupportFor(capability) {
2047
2563
  };
2048
2564
  }
2049
2565
  //#endregion
2566
+ //#region ../theme-core/src/site-styles/sectionPhoto.ts
2567
+ /** The photo a section keeps, wherever its background `type` points. */
2568
+ function storedSectionPhoto(content) {
2569
+ return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
2570
+ }
2571
+ function readRecord(value) {
2572
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
2573
+ }
2574
+ //#endregion
2575
+ //#region ../theme-core/src/site-styles/sectionPhotoGround.ts
2576
+ /**
2577
+ * How the Looks built on an arrangement use the photo. Looks that share an
2578
+ * arrangement render the same tree, so they agree (a catalogue test holds
2579
+ * them to it). Null for keys no arrangement Look uses.
2580
+ */
2581
+ function arrangementPhotoUse(blockKind, arrangementKey) {
2582
+ return arrangementAppearancePresets.find((entry) => entry.blockKinds.some((kind) => kind === blockKind) && Object.values(entry.structure.byMode).includes(arrangementKey))?.structure.photoUse ?? null;
2583
+ }
2584
+ /** Older hero layouts no arrangement Look is built on, which show the photo beside the text. */
2585
+ const recipeOnlyHeroLayoutsWithPhotoBeside = ["splitReverse"];
2586
+ /** One photo-placement decision for the hero's renderers: does the photo paint the section ground? */
2587
+ function heroPhotoPaintsGround(variant) {
2588
+ const key = variant ?? "classic";
2589
+ const use = arrangementPhotoUse("block.hero", key);
2590
+ return use === null ? !recipeOnlyHeroLayoutsWithPhotoBeside.includes(key) : use === "behind";
2591
+ }
2592
+ //#endregion
2593
+ //#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
2594
+ /**
2595
+ * The one owner of the facts `whenMissing` rules read from block content.
2596
+ * Content facts also become `data-has-*` hooks; setting facts never do.
2597
+ */
2598
+ function arrangementContentFacts(content) {
2599
+ const photoCount = arrangementPhotoCount(content);
2600
+ const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
2601
+ return {
2602
+ photoCount,
2603
+ facts: {
2604
+ content: {
2605
+ photo: photoCount > 0,
2606
+ facts: Array.isArray(content.facts) && content.facts.length > 0,
2607
+ featured,
2608
+ outcome: typeof content.outcome === "string" && content.outcome.length > 0,
2609
+ figure: typeof content.figure === "string" && content.figure.trim().length > 0,
2610
+ entrance: isRecord$9(content.entrancePhoto)
2611
+ },
2612
+ settings: { "listed-by-week": content.listBy === "week" }
2613
+ }
2614
+ };
2615
+ }
2616
+ /** What an automatic Look choice weighs, read by the same owner as the `whenMissing` facts. */
2617
+ function lookFillPartsFromContent(content) {
2618
+ return {
2619
+ photo: arrangementPhotoCount(content) > 0,
2620
+ statement: typeof content.title === "string" && content.title.trim().length > 0
2621
+ };
2622
+ }
2623
+ /** The content stage owns media presence for every arrangement consumer. */
2624
+ function arrangementPhotoCount(content) {
2625
+ if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$9(card) && isRecord$9(card.media)).length;
2626
+ if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$9(member) && isRecord$9(member.photo)).length;
2627
+ if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$9(item) && isRecord$9(item.image)).length;
2628
+ if (isRecord$9(content.media) || isRecord$9(content.entrancePhoto)) return 1;
2629
+ return storedSectionPhoto(content) === null ? 0 : 1;
2630
+ }
2631
+ /** Both rendering and join matching ask the publication-fallback owner. */
2632
+ function resolveArrangementContentLook(runtime, mode, content, audience) {
2633
+ const selected = runtime.byMode[mode ?? "default"];
2634
+ if (!selected) return null;
2635
+ const published = resolvePublishedLook({
2636
+ look: selected.look,
2637
+ facts: arrangementContentFacts(content).facts,
2638
+ audience,
2639
+ catalogue: runtime.available.map((entry) => entry.look)
2640
+ });
2641
+ return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
2642
+ }
2643
+ /** Section paint is decided here, after the effective Look, at its admitted render position. */
2644
+ function resolveRuntimeSection(input) {
2645
+ 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;
2646
+ const photo = input.runtime && input.look && input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
2647
+ const background = input.placement === "column" ? resolveSectionBackground({ kind: "none" }, null, null) : resolveSectionBackground(withStyleGroundInks(parseCanonicalRuntimeBackground(input.content), input.runtime), null, rhythm, photo);
2648
+ return {
2649
+ background,
2650
+ ground: deriveSectionGround(background, input.palette),
2651
+ paint: sectionPaint(background),
2652
+ styleBackground: sectionGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm))
2653
+ };
2654
+ }
2655
+ /**
2656
+ * An owner's plain colour that is one of the style's section grounds takes that ground's inks
2657
+ * (headings, links, supporting text), so a section painted by hand reads like one the style painted.
2658
+ * An owner who set any ink keeps all their own; any other colour keeps the generic contrast resolution.
2659
+ */
2660
+ function withStyleGroundInks(source, runtime) {
2661
+ if (source.kind === "none" || !runtime || source.background.type !== "color" || !source.background.color) return source;
2662
+ const { textColor, headingColor, linkColor, supportingColor } = source.background;
2663
+ if ([
2664
+ textColor,
2665
+ headingColor,
2666
+ linkColor,
2667
+ supportingColor
2668
+ ].some((ink) => ink !== void 0)) return source;
2669
+ const style = styleSectionBackgroundForColour(runtime, source.background.color);
2670
+ return style ? {
2671
+ ...source,
2672
+ background: {
2673
+ ...style,
2674
+ ...source.background
2675
+ }
2676
+ } : source;
2677
+ }
2678
+ function sectionPaint(resolved) {
2679
+ if (resolved.kind === "base" || resolved.kind === "content-media") return "paint";
2680
+ const background = resolved.background;
2681
+ if (background.type === "color") return "paint";
2682
+ return background.type === "image" && background.image != null ? "photo" : "other";
2683
+ }
2684
+ function sectionGroundToken(resolved) {
2685
+ if (resolved.kind === "base") return "background";
2686
+ switch (resolved.background.type) {
2687
+ case "image":
2688
+ case "video": return "media";
2689
+ case "color": return resolved.background.color ?? "background";
2690
+ case "gradient": return "gradient";
2691
+ }
2692
+ }
2693
+ //#endregion
2050
2694
  //#region ../theme-core/src/site-styles/pageDesignEditorOptions.ts
2051
2695
  function isRecipeLookOption(option) {
2052
2696
  return option.kind === "recipe";
@@ -2206,15 +2850,6 @@ function effectiveBreak(resolution) {
2206
2850
  return resolution.selectedSource ? noneBoundaryOption.id : null;
2207
2851
  }
2208
2852
  //#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
2853
  //#region ../theme-core/src/site-styles/pageDesignEditorModel.ts
2219
2854
  function autoEditorChoice(effectiveValue) {
2220
2855
  return {
@@ -2367,13 +3002,18 @@ function lookOptionsByLayoutForBlock(input) {
2367
3002
  return {
2368
3003
  layoutVariantKey: layout.id,
2369
3004
  availableLooks,
2370
- autoLookId: recommendedLookIdForOptions(input.siteStyle, availableLooks)
3005
+ autoLookId: recommendedLookIdForOptions(input.siteStyle, availableLooks, input.block)
2371
3006
  };
2372
3007
  });
2373
3008
  }
2374
- function recommendedLookIdForOptions(siteStyle, availableLooks) {
3009
+ function recommendedLookIdForOptions(siteStyle, availableLooks, block) {
2375
3010
  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;
3011
+ if (siteStyle.looks.kind === "offers") return automaticArrangementLook(availableLooks.flatMap((option) => arrangementAppearancePresets.filter((look) => look.id === option.id)), editorContentParts(block))?.id ?? null;
3012
+ return siteStyle.looks.recommendedAppearancePresetIds.find((id) => availableLooks.some((look) => look.id === id)) ?? null;
3013
+ }
3014
+ /** The fill parts the automatic Look weighs; none without content, so catalogue readers keep the style's first offer. */
3015
+ function editorContentParts(block) {
3016
+ return block.content === void 0 ? void 0 : lookFillPartsFromContent(block.content);
2377
3017
  }
2378
3018
  function availableLooksForLayout(looksByLayout, layoutVariantKey) {
2379
3019
  if (!layoutVariantKey) return [];
@@ -2457,7 +3097,7 @@ function buildEditorBlockResult(block, siteStyleId, intent, siteStyle) {
2457
3097
  layoutChoice: layoutResult.choice,
2458
3098
  availableLayouts,
2459
3099
  availableLooksByLayout,
2460
- autoLookId: recommendedLookIdForOptions(siteStyle, availableLooks),
3100
+ autoLookId: recommendedLookIdForOptions(siteStyle, availableLooks, block),
2461
3101
  ...lookState
2462
3102
  },
2463
3103
  issues: compactIssues([
@@ -2467,18 +3107,28 @@ function buildEditorBlockResult(block, siteStyleId, intent, siteStyle) {
2467
3107
  ])
2468
3108
  };
2469
3109
  }
2470
- /** A block can support arrangement Looks without having a recipe Look catalogue. */
3110
+ /**
3111
+ * A block can support arrangement Looks without having a recipe Look catalogue, and an arrangement
3112
+ * style can keep a block on its own layout.
3113
+ */
2471
3114
  function editorLookCapability(block, style) {
2472
3115
  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 ? {
3116
+ if (capability?.kind !== "designed") return capability;
3117
+ return blockHasNoLooksInStyle(block.blockKind, style) ? {
2478
3118
  ...capability,
2479
3119
  looks: "not-applicable"
2480
3120
  } : capability;
2481
3121
  }
3122
+ function blockHasNoLooksInStyle(blockKind, style) {
3123
+ if (style?.looks.kind === "offers") return (style.looks.ownLayoutBlocks ?? []).some((kind) => kind === blockKind);
3124
+ return style?.looks.kind === "recipe" && hasOnlyArrangementLooks(blockKind);
3125
+ }
3126
+ function hasOnlyArrangementLooks(blockKind) {
3127
+ return getCompatibleBlockAppearancePresets({
3128
+ blockKind,
3129
+ allowLayoutConstrainedPresetWithoutProfile: true
3130
+ }).length === 0 && arrangementAppearancePresets.some((look) => look.blockKinds.some((kind) => kind === blockKind));
3131
+ }
2482
3132
  function editorBlockConfigurationIssues(block, availability, layouts) {
2483
3133
  const noLooksIssue = availability.kind === "misconfigured" ? {
2484
3134
  kind: "no-appearance-presets-for-block-kind",
@@ -2542,9 +3192,14 @@ function editorArrangementCapabilities(block, mode, style) {
2542
3192
  "highlight"
2543
3193
  ],
2544
3194
  declaredSurfaces: style?.looks.kind === "offers" ? Object.keys(style.looks.surfaces) : [],
2545
- knobBuffet: block.knobBuffet ?? []
3195
+ knobBuffet: block.knobBuffet ?? [],
3196
+ ...contentPartsCapability(block)
2546
3197
  };
2547
3198
  }
3199
+ function contentPartsCapability(block) {
3200
+ const contentParts = editorContentParts(block);
3201
+ return contentParts === void 0 ? {} : { contentParts };
3202
+ }
2548
3203
  function resolvedLookPreservesPin(resolved) {
2549
3204
  switch (resolved.kind) {
2550
3205
  case "offered":
@@ -2757,95 +3412,6 @@ function parseListLook(kind, value) {
2757
3412
  return listLooksByKind[kind].find((look) => look === value) ?? null;
2758
3413
  }
2759
3414
  //#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
3415
  //#region ../theme-core/src/accordions/defaults.ts
2850
3416
  /**
2851
3417
  * Generate default accordion system based on theme configuration
@@ -5375,26 +5941,22 @@ function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTre
5375
5941
  //#endregion
5376
5942
  //#region ../theme-core/src/header/generateHeaderLogoStyles.ts
5377
5943
  function generateHeaderLogoStyles(input) {
5378
- const { logo, themeId, tokens } = input;
5944
+ const { logo, themeId } = input;
5379
5945
  return `\n${`:where([data-theme-scope="${themeId}"]) .header-logo-text`} {\n ${[
5380
5946
  ...logoTextColorRules(input),
5381
5947
  logo?.fontFamily === "body" ? "font-family: var(--font-body);" : "font-family: var(--font-heading);",
5382
5948
  ...logoLetterSpacingRules(logo),
5383
- ...logoGradientRules(logo, tokens),
5384
5949
  ...logoContrastRules(input)
5385
5950
  ].join("\n ")}\n}\n${mobilePanelLogoColor(input)}`;
5386
5951
  }
5387
5952
  function mobilePanelLogoColor(input) {
5388
- if (input.logo?.gradient) return "";
5389
5953
  const { themeId, tokens, textColor, fallbackTextColor } = input;
5390
5954
  const fallback = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
5391
5955
  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
5956
  }
5393
5957
  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};`];
5958
+ const { textColor, fallbackTextColor, tokens } = input;
5959
+ return [`color: ${surfaceForegroundValue("text", tokens.getColor(textColor ?? fallbackTextColor ?? "text"))};`];
5398
5960
  }
5399
5961
  function logoLetterSpacingRules(logo) {
5400
5962
  const spacing = logo?.letterSpacing;
@@ -5405,18 +5967,7 @@ function logoLetterSpacingRules(logo) {
5405
5967
  widest: "0.15em"
5406
5968
  }[spacing]};`];
5407
5969
  }
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
5970
  function logoContrastRules(input) {
5419
- if (input.logo?.gradient || input.useSurfaceTextColor) return [];
5420
5971
  const colorToken = input.textColor?.trim() || input.fallbackTextColor?.trim() || "text";
5421
5972
  const shadow = buildTextContrastShadow({
5422
5973
  theme: input.theme,
@@ -5451,8 +6002,7 @@ function generateHeaderCss(options) {
5451
6002
  theme,
5452
6003
  textColor: header.textColor,
5453
6004
  fallbackTextColor: header.navLinkStyle?.colorToken,
5454
- contrastTreatment: headerContrastTreatment ?? void 0,
5455
- useSurfaceTextColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
6005
+ contrastTreatment: header.background?.contentOwner === "site-chrome-editor" ? void 0 : headerContrastTreatment ?? void 0
5456
6006
  }));
5457
6007
  cssChunks.push(generateLogoTextBehaviorStyles(header.logoText, themeId));
5458
6008
  cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
@@ -5464,7 +6014,7 @@ function generateHeaderCss(options) {
5464
6014
  cssChunks.push(generateMobilePanelStyles(themeId, dropdown));
5465
6015
  if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens, responsiveMode));
5466
6016
  cssChunks.push(generateNavContainerStyles(header, themeId, tokens, theme, solvedInks));
5467
- cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
6017
+ cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens, headerGroundButton(header, theme)));
5468
6018
  cssChunks.push(generateCtaGapStyles(header, themeId));
5469
6019
  return cssChunks.filter(Boolean).join("\n\n");
5470
6020
  }
@@ -5796,10 +6346,10 @@ const HEADER_CTA_GAP_MAP = {
5796
6346
  * Keep the shared button's structure/effects while making the header own the
5797
6347
  * palette relationship for both desktop and mobile CTAs.
5798
6348
  */
5799
- function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
6349
+ function generateHeaderCtaTreatmentStyles(header, themeId, tokens, groundButton) {
5800
6350
  if (header.ctaTreatment !== "inverted") return "";
5801
6351
  const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
5802
- const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
6352
+ const mobileSelector = `:where([data-theme-scope="${themeId}"]) :is(.nav-mobile-cta, .header-mobile-bar-cta)`;
5803
6353
  const selectors = `${desktopSelector},\n${mobileSelector}`;
5804
6354
  const hoverSelectors = [
5805
6355
  `${desktopSelector}:hover`,
@@ -5810,10 +6360,10 @@ function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
5810
6360
  const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
5811
6361
  return `
5812
6362
  ${selectors} {
5813
- background-color: ${tokens.getColor("background")};
6363
+ background-color: ${groundButton?.backgroundCss ?? tokens.getColor("background")};
5814
6364
  background-image: none;
5815
- color: ${tokens.getColor("onBackground")};
5816
- border-color: currentColor;
6365
+ color: ${groundButton?.foregroundCss ?? tokens.getColor("onBackground")};
6366
+ border-color: ${groundButton?.backgroundCss ?? "currentColor"};
5817
6367
  }
5818
6368
 
5819
6369
  ${hoverSelectors} {
@@ -5830,6 +6380,24 @@ ${focusSelectors} {
5830
6380
  `;
5831
6381
  }
5832
6382
  /**
6383
+ * A style that names the main button's label colour on the header's own
6384
+ * ground (issue 1713) dresses the inverted CTA as that button, with its fill
6385
+ * as the edge. The colours come from the shared solid-button resolution, so the
6386
+ * label falls back exactly as that button's would. Styles that name only a fill
6387
+ * keep the page-colour CTA with its outline.
6388
+ */
6389
+ function headerGroundButton(header, theme) {
6390
+ const ground = header.background?.type === "color" ? header.background.color : void 0;
6391
+ const request = typeof ground === "string" ? theme.buttons?.surfaceContexts?.[ground] : void 0;
6392
+ if (!request?.primaryText) return null;
6393
+ const resolved = resolveSolidButtonColour({
6394
+ variantId: "primary",
6395
+ state: "base",
6396
+ palette: expandPalette(theme.palette)
6397
+ }, request.primary, request.primaryText);
6398
+ return resolved.ok ? resolved.colour : null;
6399
+ }
6400
+ /**
5833
6401
  * Generate CTA button gap styles (left margin between nav links and CTA)
5834
6402
  */
5835
6403
  function generateCtaGapStyles(header, themeId) {
@@ -5874,6 +6442,14 @@ function headerPaintInks(header, theme, policy) {
5874
6442
  return surfaceInkDeclarations(surfaceInkPublication(resolveSurfaceForeground(header.background, expandPalette(theme.palette)), policy));
5875
6443
  }
5876
6444
  //#endregion
6445
+ //#region ../theme-core/src/header/logoSurfaceTone.ts
6446
+ /** The brand uses the root surface, even when navigation owns a separate capsule. */
6447
+ function resolveHeaderLogoSurfaceTone(header, palette, surface) {
6448
+ if (surface === "header-mobile-panel") return surfaceToneFromForegroundToken(palette, header?.dropdownStyle?.textColor ?? "text");
6449
+ const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
6450
+ return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header));
6451
+ }
6452
+ //#endregion
5877
6453
  //#region ../theme-core/src/layout/boundaryCss.ts
5878
6454
  /**
5879
6455
  * Section-break CSS, generated from the transition catalogue (issue 1422).
@@ -5897,6 +6473,18 @@ const waveMaskSvgPaths = {
5897
6473
  bold: "M0 72V44C90 14 270 14 360 44C450 74 630 74 720 44C810 14 990 14 1080 44C1170 74 1350 74 1440 44V72H0Z",
5898
6474
  drift: "M0 72V39C115 31 205 54 340 48C505 41 610 16 760 33C920 51 1015 64 1160 44C1280 27 1375 35 1440 50V72H0Z"
5899
6475
  };
6476
+ /**
6477
+ * The arc (issue 1713): the next section's colour rises to a shallow peak in the
6478
+ * middle. With echo, two lines follow the arc below it, cut part-way into the
6479
+ * shape so the colour behind shows through them; that keeps them a blend of the
6480
+ * two sections' colours, whatever the palette. They fade out towards the peak.
6481
+ */
6482
+ const arcShapePath = "M0 110V60Q720 -30 1440 60V110Z";
6483
+ const arcEchoLinePaths = ["M0 84Q720 -6 1440 84", "M0 102Q720 12 1440 102"];
6484
+ function arcMaskDataUrl(echo) {
6485
+ const lines = arcEchoLinePaths.map((d) => `<path d='${d}' fill='none' stroke='url(#fade)' stroke-width='1.5' vector-effect='non-scaling-stroke'/>`).join("");
6486
+ 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>`);
6487
+ }
5900
6488
  function waveMaskDataUrl(mask) {
5901
6489
  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
6490
  }
@@ -5976,18 +6564,8 @@ function shapeDeclarations(entry) {
5976
6564
  "background: linear-gradient(to bottom, transparent 0%, var(--boundary-shape-paint) 100%);",
5977
6565
  "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
6566
  ];
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
- }
6567
+ case "wave": return maskDeclarations(waveMaskDataUrl(entry.shape.mask));
6568
+ case "arc": return [...maskDeclarations(arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
5991
6569
  case "angle": return [
5992
6570
  "height: calc(var(--boundary-height) + 2px);",
5993
6571
  "background: var(--boundary-shape-paint);",
@@ -5995,6 +6573,17 @@ function shapeDeclarations(entry) {
5995
6573
  ];
5996
6574
  }
5997
6575
  }
6576
+ function maskDeclarations(mask) {
6577
+ return [
6578
+ "background: var(--boundary-shape-paint);",
6579
+ `mask-image: url("${mask}");`,
6580
+ "mask-repeat: no-repeat;",
6581
+ "mask-size: 100% 100%;",
6582
+ `-webkit-mask-image: url("${mask}");`,
6583
+ "-webkit-mask-repeat: no-repeat;",
6584
+ "-webkit-mask-size: 100% 100%;"
6585
+ ];
6586
+ }
5998
6587
  function rule(selector, declarations) {
5999
6588
  return `${selector} {\n ${declarations.join("\n ")}\n}`;
6000
6589
  }
@@ -6398,7 +6987,8 @@ ${root} :where(h1.heading-display) {
6398
6987
  font-size: var(--fs-h1-display-fluid, var(--fs-h1-display, calc(var(--fs-h1) * 1.5)));
6399
6988
  }
6400
6989
 
6401
- ${root} :where(h2.heading-display) {
6990
+ ${root} :where(h2.heading-display),
6991
+ ${root} :where(h1.rb-heading-level-2.heading-display) {
6402
6992
  font-size: var(--fs-h2-display-fluid, var(--fs-h2-display, calc(var(--fs-h2) * 1.35)));
6403
6993
  }`;
6404
6994
  }
@@ -6412,7 +7002,8 @@ ${root} :where(h1.heading-compact) {
6412
7002
  font-size: calc(var(--fs-h1) * 0.75);
6413
7003
  }
6414
7004
 
6415
- ${root} :where(h2.heading-compact) {
7005
+ ${root} :where(h2.heading-compact),
7006
+ ${root} :where(h1.rb-heading-level-2.heading-compact) {
6416
7007
  font-size: calc(var(--fs-h2) * 0.8);
6417
7008
  }
6418
7009
 
@@ -6439,15 +7030,18 @@ ${root} :where(p, li, td, th, label, span) {
6439
7030
  }`;
6440
7031
  }
6441
7032
  function headingLevelsCss(root) {
6442
- return `/* Heading level styles with fluid typography */\n${[
7033
+ return `/* Heading level styles with fluid typography */\n${[...[
6443
7034
  1,
6444
7035
  2,
6445
7036
  3,
6446
7037
  4,
6447
7038
  5,
6448
7039
  6
6449
- ].map((level) => {
6450
- return `${root} :where(h${level}) {
7040
+ ].map((level) => headingLevelCss(root, level, `h${level}`)), headingLevelCss(root, 2, "h1.rb-heading-level-2")].join("\n\n")}`;
7041
+ }
7042
+ /** The semantic tag and visual heading role can differ for a promoted page title. */
7043
+ function headingLevelCss(root, level, selector) {
7044
+ return `${root} :where(${selector}) {
6451
7045
  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
7046
  font-weight: var(--fw-h${level}, var(--font-weight-heading));
6453
7047
  font-style: var(--fi-h${level}, var(--fi-heading, normal));
@@ -6455,7 +7049,6 @@ function headingLevelsCss(root) {
6455
7049
  line-height: var(--lh-h${level}, var(--lh-heading));
6456
7050
  color: ${surfaceForegroundValue("heading", globalHeadingColorFallback(level))};
6457
7051
  }`;
6458
- }).join("\n\n")}`;
6459
7052
  }
6460
7053
  /** Optional width rules leave the historical CSS bytes unchanged. */
6461
7054
  function generateFontWidthCss(root, typography) {
@@ -6489,6 +7082,7 @@ function generateFontWidthCss(root, typography) {
6489
7082
  "h5",
6490
7083
  "h6"
6491
7084
  ].map((level) => rule(`${root} :where(${level})`, typography.headings[level]?.width)),
7085
+ rule(`${root} :where(h1.rb-heading-level-2)`, typography.headings.h2?.width ?? headingWidth),
6492
7086
  `${root} :where(h1, h2, h3, h4, h5, h6) :where(span) { font-stretch: inherit; }`,
6493
7087
  rule(`${root} :where(.rb-eyebrow)`, typography.eyebrow ? typography.eyebrow.width ?? 100 : bodyWidth)
6494
7088
  ].filter(Boolean).join("\n");
@@ -9630,6 +10224,7 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
9630
10224
  const strictStoredSchema = deriveStrictContentZodFromPlans(plans);
9631
10225
  return Object.freeze({
9632
10226
  fields: Array.isArray(manifestOrFields) ? manifestOrFields : manifestOrFields.fields,
10227
+ contentPresence: Array.isArray(manifestOrFields) ? void 0 : manifestOrFields.contentPresence,
9633
10228
  [compiledManifestContentContract]: Object.freeze({
9634
10229
  plans,
9635
10230
  strictStoredSchema,
@@ -10509,7 +11104,7 @@ const cardRoleClassTransform = {
10509
11104
  run: (value, options, context) => {
10510
11105
  const baseClass = options?.baseClass ?? "";
10511
11106
  const stylesPath = options?.stylesPath ?? "content._cardStyles";
10512
- const stylesInput = asPartialObject(readPath(context.viewModel, stylesPath)) ?? {};
11107
+ const stylesInput = asPartialObject(readPath$1(context.viewModel, stylesPath)) ?? {};
10513
11108
  const itemRole = resolveItemCardRole(value, options?.itemRoleAliases);
10514
11109
  const emit = options?.emit ?? "surface";
10515
11110
  if (emit === "surface") return boxStylesCompositeTransform.run(stylesInput, {
@@ -10539,7 +11134,7 @@ const cardSlotRoleTransform = {
10539
11134
  })
10540
11135
  };
10541
11136
  function resolveBorderColorState(value, options, viewModel) {
10542
- const input = asPartialObject(options?.stylesPath ? readPath(viewModel, options.stylesPath) : value);
11137
+ const input = asPartialObject(options?.stylesPath ? readPath$1(viewModel, options.stylesPath) : value);
10543
11138
  if (!input) return null;
10544
11139
  return {
10545
11140
  input,
@@ -10568,7 +11163,7 @@ const boxStylesBorderColorTransform = {
10568
11163
  return rgbColorValue(parseBlockColorToken(fallbackToken) ?? "border");
10569
11164
  }
10570
11165
  };
10571
- function readPath(source, path) {
11166
+ function readPath$1(source, path) {
10572
11167
  if (!source || !path) return void 0;
10573
11168
  if (!path.includes(".")) return source[path];
10574
11169
  return path.split(".").reduce((acc, segment) => {
@@ -10630,9 +11225,9 @@ const sectionClassNameTransform = {
10630
11225
  const defaultSpacing = options?.defaultSpacing;
10631
11226
  const fullWidthPath = options?.fullWidthPath;
10632
11227
  const contextData = context.data;
10633
- const containerStylesValue = readPath(contextData, containerStylesPath);
11228
+ const containerStylesValue = readPath$1(contextData, containerStylesPath);
10634
11229
  const fullWidthFromContainerStyles = (containerStylesValue && typeof containerStylesValue === "object" ? containerStylesValue : void 0)?.fullWidth === true;
10635
- const fullWidthFromPath = fullWidthPath ? readPath(contextData, fullWidthPath) === true : false;
11230
+ const fullWidthFromPath = fullWidthPath ? readPath$1(contextData, fullWidthPath) === true : false;
10636
11231
  const fullWidth = fullWidthFromContainerStyles || fullWidthFromPath;
10637
11232
  let adjustedBaseClass = baseClass;
10638
11233
  if (fullWidth && baseClass) adjustedBaseClass = baseClass.split(" ").filter((cls) => !cls.startsWith("rb-px-")).join(" ").trim();
@@ -12930,51 +13525,330 @@ const teamMemberFragment = defineFragment({
12930
13525
  required: true,
12931
13526
  maxLength: 120
12932
13527
  },
12933
- {
12934
- id: "role",
12935
- type: "text",
12936
- label: "Role",
12937
- required: false,
12938
- maxLength: 120
13528
+ {
13529
+ id: "role",
13530
+ type: "text",
13531
+ label: "Role",
13532
+ required: false,
13533
+ maxLength: 120
13534
+ },
13535
+ {
13536
+ id: "bio",
13537
+ type: "richText",
13538
+ label: "Bio",
13539
+ required: false,
13540
+ ui: { variant: "limited" }
13541
+ }
13542
+ ],
13543
+ layout: stack({
13544
+ gap: "sm",
13545
+ className: "rb-team-member rb-items-center rb-text-center"
13546
+ }, [
13547
+ el("div", { className: cardRoleChildClass({
13548
+ emit: "media",
13549
+ baseClass: "rb-team-member-photo-wrap rb-w-full",
13550
+ stylesFrom: "content._cardStyles"
13551
+ }) }, [media({
13552
+ className: "rb-team-member-photo rb-w-full rb-object-cover",
13553
+ style: { aspectRatio: "1 / 1" },
13554
+ size: {
13555
+ width: 600,
13556
+ height: 600,
13557
+ quality: 85,
13558
+ resize: "cover"
13559
+ }
13560
+ }, when("photo"), bind("photo"))]),
13561
+ link({
13562
+ href: { $bind: { from: "profilePath" } },
13563
+ className: "rb-team-member-name-link"
13564
+ }, [text({ as: "h3" }, bind("name"))], when("profilePath")),
13565
+ text({ as: "h3" }, when("profilePath", { not: true }), bind("name")),
13566
+ text({
13567
+ as: "p",
13568
+ className: "rb-team-member-role"
13569
+ }, when("role"), bind("role")),
13570
+ richText({ className: "rb-prose rb-max-w-none" }, when("bio"), bind("bio"))
13571
+ ])
13572
+ });
13573
+ //#endregion
13574
+ //#region ../blocks/src/system/blocks/class-prices.model.ts
13575
+ const classPricingSchema = z.object({
13576
+ seriesId: z.string(),
13577
+ bookingScope: z.enum(["single_occurrence", "whole_series"]).optional(),
13578
+ pricing: publicEventPricingSchema
13579
+ });
13580
+ const classPricesDataSchema = z.object({
13581
+ classPricing: classPricingSchema.optional(),
13582
+ sitePasses: publicPassProductCollectionSchema,
13583
+ autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional()
13584
+ });
13585
+ const classPricesCopySchema = z.object({
13586
+ sessionLabel: z.string().nullish(),
13587
+ sessionText: z.string().nullish(),
13588
+ discountLabel: z.string().nullish(),
13589
+ discountText: z.string().nullish(),
13590
+ passesLabel: z.string().nullish(),
13591
+ passesText: z.string().nullish(),
13592
+ sessionLinkLabel: z.string().nullish(),
13593
+ sessionLink: linkSchema.nullish().catch(void 0),
13594
+ discountLinkLabel: z.string().nullish(),
13595
+ discountLink: linkSchema.nullish().catch(void 0),
13596
+ passesLinkLabel: z.string().nullish(),
13597
+ passesLink: linkSchema.nullish().catch(void 0),
13598
+ passPriceMode: z.enum(["per-class", "pass-price"]).nullish()
13599
+ });
13600
+ function itemLink(kind, copy) {
13601
+ const label = copy[`${kind}LinkLabel`]?.trim();
13602
+ const href = copy[`${kind}Link`];
13603
+ return label && href ? { link: {
13604
+ label,
13605
+ href
13606
+ } } : {};
13607
+ }
13608
+ const money = (amount, currency) => formatBookingPriceDisplay({
13609
+ kind: "exact",
13610
+ amount,
13611
+ currency
13612
+ }, { decimals: "auto" });
13613
+ function discountItem(discount, currency, copy) {
13614
+ if (!discount) return [];
13615
+ const figure = discount.discountType === "percent" ? `${discount.discountPercent}% off` : `${money(discount.discountAmountCents, currency)} off`;
13616
+ const minimum = discount.minTicketsRequired;
13617
+ return [{
13618
+ kind: "discount",
13619
+ figure,
13620
+ label: copy.discountLabel?.trim() || discount.publicLabel,
13621
+ text: copy.discountText?.trim() || (minimum ? `When you buy ${minimum} or more tickets.` : "Applied automatically when you book."),
13622
+ ...itemLink("discount", copy)
13623
+ }];
13624
+ }
13625
+ function passItem(passes, currency, copy) {
13626
+ const amounts = passes.filter((pass) => pass.currency === currency).map((pass) => copy.passPriceMode === "pass-price" ? pass.price : pass.pricePerCredit);
13627
+ if (!amounts.length) return [];
13628
+ const amount = money(Math.min(...amounts), currency);
13629
+ return [{
13630
+ kind: "passes",
13631
+ figure: copy.passPriceMode === "pass-price" ? `From ${amount}` : `${amount} a class`,
13632
+ label: copy.passesLabel?.trim() || "Class passes",
13633
+ text: copy.passesText?.trim() || "Save when you come regularly.",
13634
+ ...itemLink("passes", copy)
13635
+ }];
13636
+ }
13637
+ /** One decision for visibility, figures and default copy; authored copy never creates a fact. */
13638
+ function resolveClassPriceItems(data, copy = {}) {
13639
+ const subject = data.classPricing;
13640
+ if (!subject || subject.bookingScope !== "single_occurrence") return [];
13641
+ const pricing = subject.pricing;
13642
+ if (pricing.kind === "external") return [];
13643
+ const figure = formatEventStartingPrice(pricing);
13644
+ return [
13645
+ ...figure ? [{
13646
+ kind: "session",
13647
+ figure,
13648
+ label: copy.sessionLabel?.trim() || "Drop in",
13649
+ text: copy.sessionText?.trim() || "Book one class at a time.",
13650
+ ...itemLink("session", copy)
13651
+ }] : [],
13652
+ ...discountItem(data.autoApplyDiscount, pricing.currency, copy),
13653
+ ...passItem(data.sitePasses.passes, pricing.currency, copy)
13654
+ ];
13655
+ }
13656
+ //#endregion
13657
+ //#region ../blocks/src/system/blocks/class-prices.ts
13658
+ const itemNames = {
13659
+ session: "Drop in",
13660
+ discount: "Discount",
13661
+ passes: "Passes"
13662
+ };
13663
+ const copyFields = [
13664
+ "session",
13665
+ "discount",
13666
+ "passes"
13667
+ ].flatMap((item) => [
13668
+ {
13669
+ id: `${item}Label`,
13670
+ type: "text",
13671
+ label: `${itemNames[item]} label`,
13672
+ required: false,
13673
+ multiline: false,
13674
+ description: "Leave blank to use the live details."
13675
+ },
13676
+ {
13677
+ id: `${item}Text`,
13678
+ type: "text",
13679
+ label: `${itemNames[item]} supporting text`,
13680
+ required: false,
13681
+ multiline: false,
13682
+ description: "Leave blank to use the live details."
13683
+ },
13684
+ {
13685
+ id: `${item}LinkLabel`,
13686
+ type: "text",
13687
+ label: `${itemNames[item]} link text`,
13688
+ required: false,
13689
+ multiline: false,
13690
+ maxLength: 80,
13691
+ description: "Optional. A link under the text, such as \"See passes and prices\"."
13692
+ },
13693
+ {
13694
+ id: `${item}Link`,
13695
+ type: "link",
13696
+ label: `${itemNames[item]} link destination`,
13697
+ required: false
13698
+ }
13699
+ ]);
13700
+ const priceItem = styledCard([
13701
+ text({
13702
+ as: "p",
13703
+ ...lookSlot("item-meta")
13704
+ }, bind("price.figure")),
13705
+ text({
13706
+ as: "h3",
13707
+ ...lookSlot("item-title")
13708
+ }, bind("price.label")),
13709
+ text({
13710
+ as: "p",
13711
+ ...lookSlot("item-text")
13712
+ }, bind("price.text"), when("price.text")),
13713
+ el("div", lookSlot("item-actions"), [link({
13714
+ className: "rb-item-text-link",
13715
+ linkRequired: true,
13716
+ href: { $bind: {
13717
+ from: "price.link.href",
13718
+ transforms: [{ id: "links.resolve" }]
13719
+ } }
13720
+ }, [text({ as: "span" }, bind("price.link.label"))])], when("price.link"))
13721
+ ], {
13722
+ stylesFrom: "content._cardStyles",
13723
+ backgroundFrom: "content._cardStyles.background",
13724
+ dataProps: {
13725
+ ...lookSlot("item"),
13726
+ "data-card-list-item": true
13727
+ }
13728
+ });
13729
+ const items = el("div", {
13730
+ ...lookSlot("items"),
13731
+ "data-meta-position": "end",
13732
+ "data-card-list": true
13733
+ }, [{
13734
+ ...priceItem,
13735
+ $repeat: {
13736
+ collection: {
13737
+ from: "data.classPrices",
13738
+ transforms: [{ id: "events.classPriceItems" }],
13739
+ pick: "collection"
13740
+ },
13741
+ itemName: "price"
13742
+ }
13743
+ }]);
13744
+ const layout = styledSection({
13745
+ baseClass: "",
13746
+ spacing: "medium",
13747
+ children: styledContainer({
13748
+ rootType: "stack",
13749
+ rootProps: {
13750
+ gap: "lg",
13751
+ ...lookSlot("layout")
13752
+ },
13753
+ children: [
13754
+ text({
13755
+ as: "h2",
13756
+ ...lookSlot("heading")
13757
+ }, bind("content.heading"), when("content.heading")),
13758
+ items,
13759
+ cardListSectionAction()
13760
+ ]
13761
+ })
13762
+ });
13763
+ const classPricesBlockDefinition = {
13764
+ manifest: createBlockManifest({
13765
+ id: "block.class-prices",
13766
+ version: "1.0.0",
13767
+ title: "Class prices",
13768
+ titleSource: "heading",
13769
+ description: "Live drop-in prices, automatic discounts and passes for a class.",
13770
+ category: "events-and-bookings",
13771
+ contentSource: { kind: "entries" },
13772
+ requiredFeatures: ["bookings.events"],
13773
+ icon: "Ticket",
13774
+ tags: [
13775
+ "class",
13776
+ "prices",
13777
+ "passes"
13778
+ ],
13779
+ behaviours: {
13780
+ supportsThemeSwitching: true,
13781
+ inlineEditing: false,
13782
+ animation: false,
13783
+ paletteHidden: false
13784
+ },
13785
+ additionalFields: [
13786
+ createSiteOptionSelectField({
13787
+ id: "seriesId",
13788
+ label: "Class",
13789
+ required: false,
13790
+ multiple: false,
13791
+ optionSource: "eventSeries",
13792
+ ui: {
13793
+ intent: "behavior",
13794
+ searchThreshold: 1
13795
+ },
13796
+ description: "Choose a class booked one session at a time."
13797
+ }),
13798
+ {
13799
+ id: "heading",
13800
+ type: "text",
13801
+ label: "Heading",
13802
+ required: false,
13803
+ multiline: false
13804
+ },
13805
+ ...copyFields,
13806
+ ...cardListSectionActionFields,
13807
+ {
13808
+ id: "passPriceMode",
13809
+ type: "select",
13810
+ label: "Pass price to show",
13811
+ required: false,
13812
+ multiple: false,
13813
+ defaultValue: "per-class",
13814
+ ui: { intent: "behavior" },
13815
+ options: [{
13816
+ value: "per-class",
13817
+ label: "Cheapest price per class"
13818
+ }, {
13819
+ value: "pass-price",
13820
+ label: "Cheapest pass price"
13821
+ }]
13822
+ }
13823
+ ],
13824
+ layout,
13825
+ variants: {
13826
+ cards: layout,
13827
+ index: layout
12939
13828
  },
12940
- {
12941
- id: "bio",
12942
- type: "richText",
12943
- label: "Bio",
12944
- required: false,
12945
- ui: { variant: "limited" }
13829
+ defaultVariant: "cards",
13830
+ variantMeaning: {
13831
+ kind: "arrangement",
13832
+ lookOnlyKeys: ["cards", "index"]
12946
13833
  }
12947
- ],
12948
- layout: stack({
12949
- gap: "sm",
12950
- className: "rb-team-member rb-items-center rb-text-center"
12951
- }, [
12952
- el("div", { className: cardRoleChildClass({
12953
- emit: "media",
12954
- baseClass: "rb-team-member-photo-wrap rb-w-full",
12955
- stylesFrom: "content._cardStyles"
12956
- }) }, [media({
12957
- className: "rb-team-member-photo rb-w-full rb-object-cover",
12958
- style: { aspectRatio: "1 / 1" },
12959
- size: {
12960
- width: 600,
12961
- height: 600,
12962
- quality: 85,
12963
- resize: "cover"
12964
- }
12965
- }, when("photo"), bind("photo"))]),
12966
- link({
12967
- href: { $bind: { from: "profilePath" } },
12968
- className: "rb-team-member-name-link"
12969
- }, [text({ as: "h3" }, bind("name"))], when("profilePath")),
12970
- text({ as: "h3" }, when("profilePath", { not: true }), bind("name")),
12971
- text({
12972
- as: "p",
12973
- className: "rb-team-member-role"
12974
- }, when("role"), bind("role")),
12975
- richText({ className: "rb-prose rb-max-w-none" }, when("bio"), bind("bio"))
12976
- ])
12977
- });
13834
+ }),
13835
+ dataSchemas: { classPrices: classPricesDataSchema.optional() },
13836
+ dataLoaders: { classPrices: {
13837
+ endpoint: "getPublicEventDetails",
13838
+ mode: "server",
13839
+ requiredParams: ["seriesId"],
13840
+ params: {
13841
+ siteId: { $bind: { from: "$root.siteId" } },
13842
+ stage: { $bind: {
13843
+ from: "$root.previewStage",
13844
+ fallback: "published"
13845
+ } },
13846
+ seriesId: { $bind: { from: "content.seriesId" } },
13847
+ readProfile: "details",
13848
+ limit: "1"
13849
+ }
13850
+ } }
13851
+ };
12978
13852
  //#endregion
12979
13853
  //#region ../blocks/src/system/node/fragments/offeringDetailsSection.ts
12980
13854
  /** Details blocks share their heading, section and column-aware container. */
@@ -13430,6 +14304,28 @@ const headlineRowLayout = heroLookLayout([
13430
14304
  ]);
13431
14305
  const copyOverGalleryLayout = heroLookLayout([lookCopy, el("div", lookSlot("gallery"), [lookPhoto])]);
13432
14306
  const pageHeadLayout = heroLookLayout([lookCopy]);
14307
+ /**
14308
+ * Issue 1713: the words beside three photos, the hero photo first and the two
14309
+ * more photos after it. Each photo's frame is left out when it has no photo, so
14310
+ * visitors see only the photos that are set; the editor shows a placeholder for each.
14311
+ */
14312
+ const heroPhotoTrioArrangement = "photo-trio";
14313
+ const morePhotosField = "morePhotos";
14314
+ /** How many of the hero's more photos are set. Only the photo-trio arrangement shows them (see lookParts). */
14315
+ function heroMorePhotoCount(content) {
14316
+ const photos = content[morePhotosField];
14317
+ return Array.isArray(photos) ? photos.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length : 0;
14318
+ }
14319
+ const trioPhoto = (path, mediaProps) => el("figure", lookSlot("media"), [media({
14320
+ className: "rb-h-full rb-w-full rb-object-cover",
14321
+ ...mediaProps,
14322
+ ...lookSlot("photo")
14323
+ }, bind(path))], when(path));
14324
+ const photoTrioLayout = heroLookLayout([lookCopy, el("div", lookSlot("gallery"), [
14325
+ trioPhoto("_sectionStyles.background.image", heroPriorityMediaProps),
14326
+ trioPhoto(`content.${morePhotosField}[0].image`, { loading: "eager" }),
14327
+ trioPhoto(`content.${morePhotosField}[1].image`, { loading: "eager" })
14328
+ ])]);
13433
14329
  const heroBlockDefinition = { manifest: createBlockManifest({
13434
14330
  id: "block.hero",
13435
14331
  title: "Hero",
@@ -13540,6 +14436,33 @@ const heroBlockDefinition = { manifest: createBlockManifest({
13540
14436
  richTextVariant: "limited"
13541
14437
  }
13542
14438
  },
14439
+ {
14440
+ id: morePhotosField,
14441
+ type: "repeater",
14442
+ label: "More photos",
14443
+ description: "The hero photo goes at the top, and these two sit under it.",
14444
+ required: false,
14445
+ itemLabel: "Photo",
14446
+ minItems: 0,
14447
+ maxItems: 2,
14448
+ allowConversion: false,
14449
+ ui: {
14450
+ intent: "content",
14451
+ repeaterPreset: "thumbnailGrid",
14452
+ thumbnailField: "image",
14453
+ visibleWhen: {
14454
+ field: "variant",
14455
+ equals: heroPhotoTrioArrangement
14456
+ }
14457
+ },
14458
+ schema: { fields: [{
14459
+ id: "image",
14460
+ type: "media",
14461
+ label: "Photo",
14462
+ required: true,
14463
+ mediaKinds: ["image"]
14464
+ }] }
14465
+ },
13543
14466
  createImageShapeField({
13544
14467
  id: "imageShape",
13545
14468
  label: "Image shape",
@@ -13556,6 +14479,7 @@ const heroBlockDefinition = { manifest: createBlockManifest({
13556
14479
  "headline-row": headlineRowLayout,
13557
14480
  "copy-over-gallery": copyOverGalleryLayout,
13558
14481
  "page-head": pageHeadLayout,
14482
+ "photo-trio": photoTrioLayout,
13559
14483
  classic: classicLayout$1,
13560
14484
  micro: microLayout,
13561
14485
  split: splitLayout,
@@ -13566,7 +14490,8 @@ const heroBlockDefinition = { manifest: createBlockManifest({
13566
14490
  lookOnlyKeys: [
13567
14491
  "headline-row",
13568
14492
  "copy-over-gallery",
13569
- "page-head"
14493
+ "page-head",
14494
+ "photo-trio"
13570
14495
  ]
13571
14496
  },
13572
14497
  defaultVariant: "classic",
@@ -13715,6 +14640,14 @@ function introHeading(className) {
13715
14640
  placeholder: "Add heading"
13716
14641
  } }), bind("content.title"));
13717
14642
  }
14643
+ /** The optional small heading above the title. It renders only when filled, so intros without one keep their markup. */
14644
+ function introEyebrow(className = "rb-eyebrow heading-eyebrow") {
14645
+ return text({
14646
+ as: "p",
14647
+ className,
14648
+ ...lookSlot("eyebrow")
14649
+ }, when("content.eyebrow"), bind("content.eyebrow"));
14650
+ }
13718
14651
  function introBody(className = "rb-prose rb-max-w-none") {
13719
14652
  return richText({
13720
14653
  className,
@@ -13742,6 +14675,7 @@ function introCopyStack(options = {}) {
13742
14675
  gap: "md",
13743
14676
  className: options.className ?? "rb-intro-copy"
13744
14677
  }, [
14678
+ introEyebrow(),
13745
14679
  introHeading(options.headingClassName ?? "rb-intro-title"),
13746
14680
  introBody(options.bodyClassName),
13747
14681
  introCtas(options.ctaJustify)
@@ -13780,16 +14714,21 @@ const statementCopyLayout = styledSection({
13780
14714
  children: styledContainer({ children: [el("div", {
13781
14715
  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
14716
  ...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")])])] }),
14717
+ }, [
14718
+ introEyebrow("rb-eyebrow heading-eyebrow rb-col-span-full"),
14719
+ introHeading("rb-intro-title rb-max-w-xl"),
14720
+ stack({
14721
+ gap: "md",
14722
+ className: "rb-intro-copy rb-max-w-xl",
14723
+ ...lookSlot("copy")
14724
+ }, [introBody(), introCtas("start")])
14725
+ ])] }),
13788
14726
  baseClass: "",
13789
14727
  spacing: "medium"
13790
14728
  });
13791
14729
  const statementMediaLayout = styledSection({
13792
14730
  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" }, [
14731
+ introEyebrow("rb-eyebrow heading-eyebrow rb-col-span-full"),
13793
14732
  introHeading("rb-intro-title rb-intro-statement-media-title rb-max-w-xl"),
13794
14733
  stack({
13795
14734
  gap: "md",
@@ -13826,6 +14765,15 @@ const introBlockDefinition = { manifest: createBlockManifest({
13826
14765
  includeContainerStyles: true,
13827
14766
  titleSource: "title",
13828
14767
  additionalFields: [
14768
+ {
14769
+ id: "eyebrow",
14770
+ type: "text",
14771
+ label: "Small heading above the title",
14772
+ description: "Optional short label above the title, such as a date",
14773
+ required: false,
14774
+ multiline: false,
14775
+ maxLength: 80
14776
+ },
13829
14777
  {
13830
14778
  id: "title",
13831
14779
  type: "text",
@@ -13962,6 +14910,7 @@ const bodyTextBlockDefinition = { manifest: createBlockManifest({
13962
14910
  id: "block.body-text",
13963
14911
  title: "Body text",
13964
14912
  titleSource: "heading",
14913
+ contentPresence: ["heading", "body"],
13965
14914
  category: "text-and-images",
13966
14915
  contentSource: { kind: "inline" },
13967
14916
  fragments: [{
@@ -15589,6 +16538,7 @@ function footerBottomBarBorderColorStyle(footer) {
15589
16538
  //#endregion
15590
16539
  //#region ../blocks/src/system/transforms/registry/layout.ts
15591
16540
  const joinClasses = (parts) => parts.filter((part) => typeof part === "string" && part.trim().length > 0).join(" ").replace(/\s+/g, " ").trim();
16541
+ /** How the header brand renders; the logo media is hidden for `title-only`. */
15592
16542
  function resolveHeaderBrandDisplay(logo) {
15593
16543
  const display = logo?.brandDisplay ?? "logo-plus-title";
15594
16544
  if (display === "logo-only" || display === "title-only") return display;
@@ -15692,7 +16642,7 @@ function resolveBackgroundVisualStyles(backgroundColor, defaultToken = "surface"
15692
16642
  };
15693
16643
  }
15694
16644
  function resolveHeaderVisualStyles(header) {
15695
- if (headerRootPaint(header) !== "own-surface") return {
16645
+ if (headerRootIsTransparent(header)) return {
15696
16646
  backgroundToken: "transparent",
15697
16647
  isTransparent: true
15698
16648
  };
@@ -15786,10 +16736,20 @@ const headerSectionBackgroundTransform = {
15786
16736
  id: "layout.headerSectionBackground",
15787
16737
  kind: "string",
15788
16738
  summary: "Resolve the inner site-header section background token",
15789
- run: (value) => {
15790
- return headerRootPaint(asPartialObject(value)) !== "own-surface" ? "raw:transparent" : "background";
15791
- }
16739
+ run: (value) => headerSectionBackground(asPartialObject(value))
15792
16740
  };
16741
+ /**
16742
+ * The header's own section takes the colour its ink is solved against
16743
+ * (`resolveHeaderVisualStyles`, which `layout.headerRootStyle` also reads), so
16744
+ * the bar's ground and text agree even where the root's painted layer doesn't
16745
+ * cover it. A translucent, gradient or transparent bar keeps the page colour
16746
+ * underneath, as before, so nothing shows through a sticky header.
16747
+ */
16748
+ function headerSectionBackground(header) {
16749
+ if (headerRootPaint(header) !== "own-surface") return "raw:transparent";
16750
+ const visuals = resolveHeaderVisualStyles(header);
16751
+ return header?.background?.type === "color" && !visuals.isTransparent && !visuals.backgroundToken.includes("/") ? visuals.backgroundToken : "background";
16752
+ }
15793
16753
  const footerRootStyleTransform = {
15794
16754
  id: "layout.footerRootStyle",
15795
16755
  kind: "formatter",
@@ -15924,40 +16884,66 @@ const chromeLogoSchema = z.object({ surface: z.enum([
15924
16884
  "header-mobile-panel",
15925
16885
  "footer-root"
15926
16886
  ]) });
15927
- /** The brand foreground shares the logo's surface; navigation may own a separate capsule. */
15928
- function chromeSurfaceTextToken(surface, theme, palette) {
15929
- switch (surface) {
15930
- case "header-root": {
15931
- const header = theme.header;
15932
- const foreground = resolveHeaderRootForeground(header, palette, resolveHeaderVisualStyles(header).isTransparent);
15933
- return foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header);
15934
- }
15935
- case "header-mobile-panel": return theme.header?.dropdownStyle?.textColor ?? "text";
15936
- case "footer-root": {
15937
- const foreground = resolveFooterRootForeground(theme.footer, palette);
15938
- return foreground.kind === "known" ? foreground.roles.text : void 0;
15939
- }
15940
- }
15941
- }
15942
16887
  function readChromeTheme(viewModel) {
15943
16888
  return asPartialObject(asPartialObject(viewModel?.["$root"])?.theme) ?? {};
15944
16889
  }
16890
+ /**
16891
+ * Tone of a chrome surface for a theme and its expanded palette. The logo
16892
+ * transform and the editor's logo notice both judge "is this dark" here.
16893
+ */
16894
+ function resolveChromeSurfaceToneForTheme(surface, theme, palette) {
16895
+ if (surface !== "footer-root") return resolveHeaderLogoSurfaceTone(theme.header, palette, surface);
16896
+ const foreground = resolveFooterRootForeground(theme.footer, palette);
16897
+ return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : void 0);
16898
+ }
15945
16899
  function resolveChromeSurfaceTone(surface, context) {
15946
- return surfaceToneFromForegroundToken(context.theme.palette, chromeSurfaceTextToken(surface, readChromeTheme(context.viewModel), context.theme.palette));
16900
+ return resolveChromeSurfaceToneForTheme(surface, readChromeTheme(context.viewModel), context.theme.palette);
16901
+ }
16902
+ /** Both logos from the bound block content, or null when a caller passed a single `logo`. */
16903
+ function readLogoVariants(value) {
16904
+ const variants = asPartialObject(asPartialObject(value)?.logoVariants);
16905
+ if (!variants) return null;
16906
+ return {
16907
+ forLightBackgrounds: variants.forLightBackgrounds ?? null,
16908
+ forDarkBackgrounds: variants.forDarkBackgrounds ?? null
16909
+ };
15947
16910
  }
15948
- const chromeLogoTransforms = [{
16911
+ /**
16912
+ * Picks the site logo for the surface it is drawn on. Bound from block
16913
+ * `content`: `logoVariants` when the renderer supplies both logos, otherwise
16914
+ * the single `logo` older callers pass.
16915
+ */
16916
+ const chromeLogoTransform = {
15949
16917
  id: "layout.chromeLogo",
15950
16918
  kind: "formatter",
15951
16919
  summary: "Select the light- or dark-background site logo for a header or footer surface",
15952
16920
  schema: chromeLogoSchema,
15953
16921
  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
16922
+ const variants = readLogoVariants(value);
16923
+ if (!variants) return asPartialObject(value)?.logo ?? null;
16924
+ return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), variants);
16925
+ }
16926
+ };
16927
+ const chromeLogoTransforms = [chromeLogoTransform, {
16928
+ id: "layout.headerBrandSettings",
16929
+ kind: "formatter",
16930
+ summary: "Resolve header brand display using the selected logo asset facts",
16931
+ schema: chromeLogoSchema,
16932
+ run: (content, options, context) => {
16933
+ const settings = readChromeTheme(context.viewModel).header?.logo;
16934
+ const selected = asPartialObject(chromeLogoTransform.run(content, options, context));
16935
+ const logo = headerLogoShapeContext({
16936
+ asset: selected ? {
16937
+ width: selected.width ?? null,
16938
+ height: selected.height ?? null,
16939
+ logoFacts: selected.logoFacts
16940
+ } : null,
16941
+ accommodation: settings?.accommodation
15960
16942
  });
16943
+ return {
16944
+ ...settings,
16945
+ brandDisplay: resolveBrandDisplay(settings?.brandDisplay ?? "auto", logoFactsForHeaderContext(logo))
16946
+ };
15961
16947
  }
15962
16948
  }];
15963
16949
  const headerRuntimeTransforms = [{
@@ -16135,12 +17121,15 @@ function bindProp(from, opts) {
16135
17121
  const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
16136
17122
  //#endregion
16137
17123
  //#region ../blocks/src/system/blocks/site-header.ts
16138
- const whenTransformed = (from, transformId, equals = true) => (node) => ({
17124
+ const whenTransformed = (surface, transformId, equals = true) => (node) => ({
16139
17125
  ...node,
16140
17126
  $when: {
16141
17127
  when: {
16142
- from,
16143
- transforms: [{ id: transformId }]
17128
+ from: "content",
17129
+ transforms: [{
17130
+ id: "layout.headerBrandSettings",
17131
+ options: { surface }
17132
+ }, { id: transformId }]
16144
17133
  },
16145
17134
  equals
16146
17135
  }
@@ -16156,31 +17145,31 @@ const bindChromeLogo = (surface) => bind("content", { transforms: [{
16156
17145
  */
16157
17146
  const createLogoRow = (surface) => link({
16158
17147
  href: "/",
16159
- className: bindProp("$root.theme.header.logo", {
16160
- transforms: pipe(tx("layout.headerLogoClass")),
17148
+ className: bindProp("content", {
17149
+ transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoClass")),
16161
17150
  fallback: "header-logo rb-flex rb-min-w-0 rb-items-center rb-gap-3 rb-no-underline rb-transition-opacity rb-hover-opacity-80"
16162
17151
  })
16163
- }, [media({ className: bindProp("$root.theme.header.logo", {
16164
- transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
17152
+ }, [media({ className: bindProp("content", {
17153
+ transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
16165
17154
  fallback: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300"
16166
17155
  }) }, when("content.logo"), bindChromeLogo(surface)), text({
16167
17156
  as: "strong",
16168
17157
  className: "header-logo-text rb-truncate"
16169
- }, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
17158
+ }, whenTransformed(surface, "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
16170
17159
  const logoRow = createLogoRow("header-root");
16171
17160
  const centeredLogoRow = link({
16172
17161
  href: "/",
16173
- className: bindProp("$root.theme.header.logo", {
16174
- transforms: pipe(tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
17162
+ className: bindProp("content", {
17163
+ transforms: pipe(tx("layout.headerBrandSettings", { surface: "header-root" }), tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
16175
17164
  fallback: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80"
16176
17165
  })
16177
- }, [media({ className: bindProp("$root.theme.header.logo", {
16178
- transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
17166
+ }, [media({ className: bindProp("content", {
17167
+ transforms: pipe(tx("layout.headerBrandSettings", { surface: "header-root" }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
16179
17168
  fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
16180
17169
  }) }, when("content.logo"), bindChromeLogo("header-root")), text({
16181
17170
  as: "strong",
16182
17171
  className: "header-logo-text"
16183
- }, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
17172
+ }, whenTransformed("header-root", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
16184
17173
  const createNavRow = (className, align = "end") => navRow({
16185
17174
  className: `${className} header-nav-row`,
16186
17175
  align,
@@ -16202,6 +17191,22 @@ const mobileCta = ctaButton({
16202
17191
  sizeFallback: "md",
16203
17192
  className: "nav-mobile-cta rb-w-full"
16204
17193
  });
17194
+ /**
17195
+ * The CTA in the phone bar, between the logo and the menu button, for header
17196
+ * styles that opt in (`ctaInMobileBar`). It sits at the end of the bar, so the
17197
+ * bar's space-between still puts the logo at the start.
17198
+ */
17199
+ const mobileBarCta = inline({
17200
+ className: "header-mobile-cta",
17201
+ align: "center"
17202
+ }, [ctaButton({
17203
+ basePath: "menu.ctaItem",
17204
+ whenPath: "menu.ctaItem.label",
17205
+ variantPath: "$root.theme.header.ctaVariant",
17206
+ linkPath: "menu.ctaItem.link",
17207
+ sizeFallback: "sm",
17208
+ className: "header-mobile-bar-cta"
17209
+ })], when("$root.theme.header.ctaInMobileBar", { equals: true }));
16205
17210
  const mobileToggleIcon = stack({
16206
17211
  gap: "xs",
16207
17212
  className: "nav-mobile-icon"
@@ -16296,11 +17301,15 @@ const mobileHeaderBar = inline({
16296
17301
  }),
16297
17302
  align: "start",
16298
17303
  justify: "between"
16299
- }, [logoRow, mobileToggleButton]);
17304
+ }, [
17305
+ logoRow,
17306
+ mobileBarCta,
17307
+ mobileToggleButton
17308
+ ]);
16300
17309
  const classicLayout = inline({
16301
17310
  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`
17311
+ transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-items-center rb-gap-6` })),
17312
+ fallback: `rb-container rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-items-center rb-gap-6`
16304
17313
  }),
16305
17314
  align: "center"
16306
17315
  }, [
@@ -16312,19 +17321,19 @@ const centeredLayout = stack({
16312
17321
  gap: "md",
16313
17322
  align: "center",
16314
17323
  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`
17324
+ 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` })),
17325
+ 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
17326
  })
16318
17327
  }, [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
17328
  const floatingLayout = inline({
16320
17329
  [SITE_CHROME_VISIBLE_HEADER_ATTR]: "true",
16321
17330
  className: bindProp("$root.theme.header.maxWidth", {
16322
17331
  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`,
17332
+ 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
17333
  container: "",
16325
17334
  full: ""
16326
17335
  })),
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`
17336
+ 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
17337
  }),
16329
17338
  align: "start"
16330
17339
  }, [
@@ -17478,6 +18487,7 @@ function featureCardActions() {
17478
18487
  }
17479
18488
  };
17480
18489
  }
18490
+ const featuredCardHook = { "data-has-featured": { $bind: { from: "card.featured" } } };
17481
18491
  const featureCard = styledCard([el("div", {
17482
18492
  ...lookSlot("item-media"),
17483
18493
  className: featureCardChildClass("media", "rb-feature-card-media-frame rb-overflow-hidden rb-w-full")
@@ -17507,6 +18517,11 @@ const featureCard = styledCard([el("div", {
17507
18517
  ...lookSlot("numeral"),
17508
18518
  "aria-hidden": "true"
17509
18519
  }, null),
18520
+ text({
18521
+ as: "p",
18522
+ ...lookSlot("item-meta"),
18523
+ className: "rb-feature-card-label"
18524
+ }, when("card.label"), bind("card.label")),
17510
18525
  text({
17511
18526
  as: "h3",
17512
18527
  ...lookSlot("item-title"),
@@ -17525,6 +18540,7 @@ const featureCard = styledCard([el("div", {
17525
18540
  itemRole: featureCardItemRole,
17526
18541
  dataProps: {
17527
18542
  ...lookSlot("item"),
18543
+ ...featuredCardHook,
17528
18544
  "data-surface-role": { $bind: {
17529
18545
  from: "card.surfaceRole",
17530
18546
  fallback: "open"
@@ -17646,11 +18662,19 @@ const carouselCardsLayout = (arrangement) => arrangementCardsLayout(el("carousel
17646
18662
  }]
17647
18663
  }]));
17648
18664
  const leadSupportLayout = arrangementCardsLayout(el("div", lookSlot("items"), [leadCard]));
17649
- const indexRow = el("li", lookSlot("item"), [
18665
+ const indexRow = el("li", {
18666
+ ...lookSlot("item"),
18667
+ ...featuredCardHook
18668
+ }, [
17650
18669
  el("div", {
17651
18670
  ...lookSlot("numeral"),
17652
18671
  "aria-hidden": "true"
17653
18672
  }),
18673
+ text({
18674
+ as: "p",
18675
+ ...lookSlot("item-meta"),
18676
+ className: "rb-feature-card-label"
18677
+ }, when("card.label"), bind("card.label")),
17654
18678
  text({
17655
18679
  as: "h3",
17656
18680
  ...lookSlot("item-title")
@@ -17705,7 +18729,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17705
18729
  label: "Cards",
17706
18730
  required: false,
17707
18731
  minItems: 1,
17708
- maxItems: 8,
18732
+ maxItems: 12,
17709
18733
  itemLabel: "Card",
17710
18734
  itemLabelSource: "title",
17711
18735
  allowConversion: true,
@@ -17729,7 +18753,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17729
18753
  ui: {
17730
18754
  intent: "style",
17731
18755
  visibleWhen: {
17732
- field: "variant",
18756
+ field: "$root.variant",
17733
18757
  equals: "editorial-diptych"
17734
18758
  }
17735
18759
  }
@@ -17760,6 +18784,30 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17760
18784
  iconPickerPreset: "feature"
17761
18785
  }
17762
18786
  },
18787
+ {
18788
+ id: "featured",
18789
+ type: "boolean",
18790
+ label: "Highlight this step",
18791
+ description: "Makes this step stand out from the others, for example the one to start with.",
18792
+ required: false,
18793
+ defaultValue: false,
18794
+ ui: {
18795
+ intent: "content",
18796
+ visibleWhen: {
18797
+ field: "$root.variant",
18798
+ equals: "sequence"
18799
+ }
18800
+ }
18801
+ },
18802
+ {
18803
+ id: "label",
18804
+ type: "text",
18805
+ label: "Short label above the title",
18806
+ description: "Optional. For example, a year such as 2019.",
18807
+ required: false,
18808
+ multiline: false,
18809
+ maxLength: 40
18810
+ },
17763
18811
  {
17764
18812
  id: "title",
17765
18813
  type: "text",
@@ -17773,7 +18821,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
17773
18821
  type: "richText",
17774
18822
  label: "Text",
17775
18823
  required: false,
17776
- ui: { richTextVariant: "limited" }
18824
+ ui: { richTextVariant: "notes" }
17777
18825
  },
17778
18826
  createCtasRepeater({
17779
18827
  label: "Buttons",
@@ -19494,9 +20542,7 @@ const recurringScheduleBlockDefinition = {
19494
20542
  } },
19495
20543
  detailLevel: "listing",
19496
20544
  readProfile: "compact-list",
19497
- eventSurface: "custom",
19498
- eventPresets: "class",
19499
- scheduleScope: "any"
20545
+ ...eventWeekReadScope
19500
20546
  },
19501
20547
  mode: "server"
19502
20548
  } }
@@ -19545,6 +20591,14 @@ const groupOverrideFields = [
19545
20591
  defaultValue: false,
19546
20592
  ui: { intent: "behavior" }
19547
20593
  },
20594
+ {
20595
+ id: "hideWhenEmpty",
20596
+ type: "boolean",
20597
+ label: "Hide when nothing is coming up",
20598
+ required: false,
20599
+ defaultValue: false,
20600
+ ui: { intent: "behavior" }
20601
+ },
19548
20602
  {
19549
20603
  id: "presentation",
19550
20604
  type: "select",
@@ -19697,7 +20751,6 @@ const offeringsPreviewFields = [
19697
20751
  label: "Item button text",
19698
20752
  required: false,
19699
20753
  multiline: false,
19700
- defaultValue: OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT,
19701
20754
  maxLength: 40,
19702
20755
  ui: { intent: "content" }
19703
20756
  },
@@ -19791,6 +20844,7 @@ const offeringsPreviewLayout = [styledSection({
19791
20844
  ...cardListPresentationBindings,
19792
20845
  carouselRegion: { $bind: { from: "content.heading" } },
19793
20846
  renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
20847
+ showHiddenPlaceholder: { $bind: { from: "content._offeringsPreviewShowHiddenPlaceholder" } },
19794
20848
  displayMode: { $bind: displayModeBinding },
19795
20849
  oneOffering: { $bind: {
19796
20850
  from: "content.oneOffering",
@@ -19817,10 +20871,7 @@ const offeringsPreviewLayout = [styledSection({
19817
20871
  from: "content.buttonVariant",
19818
20872
  fallback: "primary"
19819
20873
  } },
19820
- buttonText: { $bind: {
19821
- from: "content.buttonText",
19822
- fallback: OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT
19823
- } },
20874
+ buttonText: { $bind: { from: "content.buttonText" } },
19824
20875
  emptyMessage: { $bind: {
19825
20876
  from: "content.emptyMessage",
19826
20877
  fallback: OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE
@@ -19846,7 +20897,9 @@ const offeringsPreviewManifest = createBlockManifest({
19846
20897
  "plates",
19847
20898
  "slides",
19848
20899
  "track",
19849
- "type-columns"
20900
+ "type-columns",
20901
+ "next-cards",
20902
+ "course-groups"
19850
20903
  ]
19851
20904
  },
19852
20905
  id: "block.offerings-preview",
@@ -20023,18 +21076,29 @@ function normalizeOfferingsPreviewDisplayMode(value) {
20023
21076
  function isOfferingsPreviewItemLimit(value) {
20024
21077
  return value === "1" || value === "2" || value === "3" || value === "4" || value === "5" || value === "6" || value === null;
20025
21078
  }
21079
+ const groupOverrideSchema = z.object({
21080
+ sourceKey: z.custom(isOfferingsPreviewSourceKey).nullish().catch(void 0),
21081
+ title: z.string().nullish().catch(void 0),
21082
+ intro: z.string().nullish().catch(void 0),
21083
+ hidden: z.boolean().nullish().catch(void 0),
21084
+ hideWhenEmpty: z.boolean().nullish().catch(void 0),
21085
+ presentation: z.enum([
21086
+ "compact-list",
21087
+ "single-card",
21088
+ "featured-summary"
21089
+ ]).nullish().catch(void 0),
21090
+ ctaMode: z.enum([
21091
+ "auto",
21092
+ "custom",
21093
+ "hidden"
21094
+ ]).nullish().catch(void 0),
21095
+ ctaHref: z.string().nullish().catch(void 0),
21096
+ ctaLabel: z.string().nullish().catch(void 0)
21097
+ });
20026
21098
  function normalizeOfferingsPreviewGroupOverride(value) {
20027
21099
  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];
21100
+ const parsed = groupOverrideSchema.parse(value);
21101
+ return [Object.fromEntries(Object.entries(parsed).filter(([, field]) => field !== void 0))];
20038
21102
  }
20039
21103
  function isButtonVariant(value) {
20040
21104
  return value === null || isBlockButtonRole(value);
@@ -21100,6 +22164,7 @@ const movingRowEcho = el("li", {
21100
22164
  "aria-hidden": "true"
21101
22165
  }, [el("figure", lookSlot("figure"), [el("div", lookSlot("media"), [media(lookSlot("photo"), bind("item.image"))])])], when("item.image"), (node) => ({
21102
22166
  ...node,
22167
+ key: "echo",
21103
22168
  $repeat: {
21104
22169
  collection: {
21105
22170
  from: "content.images",
@@ -21280,35 +22345,70 @@ const emptyState = {
21280
22345
  equals: 0
21281
22346
  }
21282
22347
  };
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" })]);
22348
+ const videoGridLayout = styledSection({
22349
+ children: sectionContainer([
22350
+ stack({
22351
+ gap: "sm",
22352
+ className: "rb-text-center rb-mb-8"
22353
+ }, [text({
22354
+ as: "h2",
22355
+ style: textColorStyle("heading")
22356
+ }, bind("content.heading"), when("content.heading")), text({
22357
+ as: "p",
22358
+ className: "rb-max-w-2xl rb-mx-auto",
22359
+ style: textColorStyle("text")
22360
+ }, bind("content.subheading"), when("content.subheading"))]),
22361
+ gridLayout1,
22362
+ gridLayout2,
22363
+ gridLayout3,
22364
+ gridLayout4,
22365
+ emptyState
22366
+ ], { gap: "md" }),
22367
+ baseClass: "",
22368
+ spacing: "medium",
22369
+ background: "background"
22370
+ });
22371
+ const tallVideoEmbed = (aspectRatio, ...mods) => videoEmbed({
22372
+ ...lookSlot("media"),
22373
+ style: { aspectRatio }
22374
+ }, bind("item.url"), ...mods);
22375
+ const tallTile = el("li", lookSlot("item"), [el("figure", lookSlot("figure"), [
22376
+ tallVideoEmbed({ $bind: { from: "item.aspectRatio" } }, when("item.aspectRatio")),
22377
+ tallVideoEmbed("9/16", when("item.aspectRatio", { not: true })),
22378
+ text({
22379
+ as: "figcaption",
22380
+ ...lookSlot("caption")
22381
+ }, bind("item.caption"), when("item.caption"))
22382
+ ])], repeat("content.videos", "item"));
22383
+ const tallTilesLayout = styledSection({
22384
+ children: el("div", {
22385
+ className: "rb-container",
22386
+ ...lookSlot("layout")
22387
+ }, [
22388
+ el("div", lookSlot("head"), [text({
22389
+ as: "h2",
22390
+ ...lookSlot("heading")
22391
+ }, bind("content.heading"), when("content.heading")), text({
22392
+ as: "p",
22393
+ ...lookSlot("intro")
22394
+ }, bind("content.subheading"), when("content.subheading"))]),
22395
+ el("ol", lookSlot("items"), [tallTile]),
22396
+ emptyState
22397
+ ]),
22398
+ baseClass: "",
22399
+ spacing: "medium",
22400
+ background: "background"
22401
+ });
21304
22402
  const videoGridBlockDefinition = { manifest: createBlockManifest({
21305
- variantMeaning: { kind: "arrangement" },
22403
+ variantMeaning: {
22404
+ kind: "arrangement",
22405
+ lookOnlyKeys: ["tall-tiles"]
22406
+ },
21306
22407
  id: "block.video-grid",
21307
22408
  promotedFields: ["videos"],
21308
22409
  title: "Video grid",
21309
22410
  category: "photos",
21310
22411
  contentSource: { kind: "inline" },
21311
- skipSectionStyles: true,
21312
22412
  additionalFields: parseFieldDefinitions([
21313
22413
  {
21314
22414
  id: "heading",
@@ -21348,7 +22448,10 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21348
22448
  label: "4 columns"
21349
22449
  }
21350
22450
  ],
21351
- ui: { intent: "display" }
22451
+ ui: {
22452
+ intent: "display",
22453
+ underLooks: "owner"
22454
+ }
21352
22455
  },
21353
22456
  {
21354
22457
  id: "aspectRatio",
@@ -21382,7 +22485,10 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21382
22485
  label: "21:9 (Ultrawide)"
21383
22486
  }
21384
22487
  ],
21385
- ui: { intent: "display" }
22488
+ ui: {
22489
+ intent: "display",
22490
+ underLooks: "owner"
22491
+ }
21386
22492
  },
21387
22493
  {
21388
22494
  id: "videos",
@@ -21406,7 +22512,10 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21406
22512
  label: "Shape for this video",
21407
22513
  description: "Give this video its own shape, which helps when you're mixing wide videos and Shorts.",
21408
22514
  defaultValue: "",
21409
- ui: { intent: "display" },
22515
+ ui: {
22516
+ intent: "display",
22517
+ underLooks: "owner"
22518
+ },
21410
22519
  options: [
21411
22520
  {
21412
22521
  value: "",
@@ -21454,10 +22563,11 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
21454
22563
  description: "What visitors see before any videos are added.",
21455
22564
  defaultValue: "Add videos to create your gallery",
21456
22565
  maxLength: 100,
21457
- ui: { intent: "display" }
22566
+ ui: { intent: "content" }
21458
22567
  }
21459
22568
  ]),
21460
22569
  layout: videoGridLayout,
22570
+ variants: { "tall-tiles": tallTilesLayout },
21461
22571
  description: "Videos from YouTube, Vimeo or Instagram, laid out in a grid.",
21462
22572
  tags: [
21463
22573
  "video",
@@ -23021,6 +24131,18 @@ const systemBlockDefinitions = [
23021
24131
  weight: "standard"
23022
24132
  })]
23023
24133
  })),
24134
+ withDesignCapability("block.class-prices", classPricesBlockDefinition, withLookCapability(plainItemsCapable()), defineBlockDesignMetadata({
24135
+ flow: offeringsFlow,
24136
+ layoutProfiles: [layoutProfile({
24137
+ variantKey: "cards",
24138
+ family: "grid",
24139
+ weight: "standard"
24140
+ }), layoutProfile({
24141
+ variantKey: "index",
24142
+ family: "stack",
24143
+ weight: "standard"
24144
+ })]
24145
+ })),
23024
24146
  withDesignCapability("block.feature-cards", featureCardsBlockDefinition, declareBlockDesignCapability({
23025
24147
  looks: "supported",
23026
24148
  sectionSurfaces: "supported",
@@ -23237,9 +24359,14 @@ const systemBlockDefinitions = [
23237
24359
  })
23238
24360
  ]
23239
24361
  })),
23240
- withDesignCapability("block.video-grid", videoGridBlockDefinition, declareNoBlockDesignCapability("legacy-layout"), defineBlockDesignMetadata({
24362
+ withDesignCapability("block.video-grid", videoGridBlockDefinition, withLookCapability(sectionOnly()), defineBlockDesignMetadata({
23241
24363
  flow: mediaFlow,
23242
- layoutProfiles: []
24364
+ layoutProfiles: [layoutProfile({
24365
+ variantKey: "default",
24366
+ family: "grid",
24367
+ weight: "standard",
24368
+ bias: "soft"
24369
+ })]
23243
24370
  })),
23244
24371
  withDesignCapability("block.audio-player", audioPlayerBlockDefinition, sectionOnly(), defineBlockDesignMetadata({
23245
24372
  flow: mediaFlow,
@@ -23364,6 +24491,7 @@ function readinessFactsFromLoaders(stage, input) {
23364
24491
  const facts = {
23365
24492
  mailingList: loaderFactProducers.mailingList(input),
23366
24493
  testimonials: loaderFactProducers.testimonials(input),
24494
+ events: loaderFactProducers.events(input),
23367
24495
  team: loaderFactProducers.team(input),
23368
24496
  forms: loaderFactProducers.forms(input),
23369
24497
  products: loaderFactProducers.products(input),
@@ -23380,6 +24508,7 @@ const loaderFactProducers = {
23380
24508
  count,
23381
24509
  total: "unknown"
23382
24510
  })),
24511
+ events: (input) => new Map(projections(input, "events").map(({ id, block }) => [id, loaderFact(input, id, eventReadinessLoaderKey(block.content), eventReadinessResultSchema)])),
23383
24512
  team: (input) => firstLoaderFact(input, "team", "members", countSchema),
23384
24513
  forms: (input) => new Map(projections(input, "forms").flatMap(({ id, block }) => {
23385
24514
  const selection = chosenString(block.requests.form?.params.formSlug ?? block.requests.form?.params.formId);
@@ -23521,7 +24650,7 @@ function arrangementSlotParents(input) {
23521
24650
  const { target, arrangement } = input;
23522
24651
  if (target === "events") return {
23523
24652
  ...derived,
23524
- ...eventListSlotParents(arrangement, "layout" in derived ? "layout" : null),
24653
+ ...eventListSlotParents(arrangement, "layout" in derived ? "layout" : null, input.eventRows),
23525
24654
  ...eventItemSlotParents(arrangement),
23526
24655
  ...arrangement === "month-grid" || arrangement === "month-day" ? monthSlotParents(arrangement) : {}
23527
24656
  };
@@ -23529,6 +24658,10 @@ function arrangementSlotParents(input) {
23529
24658
  ...derived,
23530
24659
  ...eventHeaderSlotParents
23531
24660
  };
24661
+ if (arrangement === "course-groups") return {
24662
+ ...derived,
24663
+ ...offeringCourseSlotParents
24664
+ };
23532
24665
  if (target === "feature-cards") return {
23533
24666
  ...derived,
23534
24667
  ...cardItemSlotParents(arrangement)
@@ -23536,11 +24669,12 @@ function arrangementSlotParents(input) {
23536
24669
  return derived;
23537
24670
  }
23538
24671
  /** The selected layout is shared by the planner and its diagnostic consumers. */
23539
- function arrangementSlotParentsForManifest(manifest, target, arrangement) {
24672
+ function arrangementSlotParentsForManifest(manifest, target, arrangement, eventRows) {
23540
24673
  return arrangementSlotParents({
23541
24674
  tree: manifest?.variants?.[arrangement] ?? manifest?.layout,
23542
24675
  target,
23543
- arrangement
24676
+ arrangement,
24677
+ eventRows
23544
24678
  });
23545
24679
  }
23546
24680
  //#endregion
@@ -23952,6 +25086,18 @@ function childFields(field) {
23952
25086
  return [];
23953
25087
  }
23954
25088
  //#endregion
25089
+ //#region ../blocks/src/system/transforms/registry/classPrices.ts
25090
+ const classPriceItemsTransform = {
25091
+ id: "events.classPriceItems",
25092
+ kind: "collection",
25093
+ summary: "Live class price items with editable copy",
25094
+ run(value, _options, context) {
25095
+ const data = classPricesDataSchema.safeParse(value);
25096
+ const copy = classPricesCopySchema.safeParse(context.viewModel?.content);
25097
+ return data.success ? resolveClassPriceItems(data.data, copy.success ? copy.data : {}) : [];
25098
+ }
25099
+ };
25100
+ //#endregion
23955
25101
  //#region ../blocks/src/system/transforms/registry/eventRegistrationPageKind.ts
23956
25102
  const eventRegistrationPageReadAdmission = {
23957
25103
  id: "events.registrationPageReadAdmission",
@@ -24369,6 +25515,7 @@ const serviceDetailsSourceSchema = z.object({
24369
25515
  pricing: publicAppointmentPricingSchema.optional(),
24370
25516
  priceAmount: z.number().nullable(),
24371
25517
  priceCurrency: z.string().nullable(),
25518
+ requiresApproval: z.boolean().optional(),
24372
25519
  onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
24373
25520
  location: publicAppointmentLocationSchema,
24374
25521
  cancellationPolicy: z.object({ refunds: z.object({
@@ -24396,6 +25543,10 @@ function serviceDetailsFacts(service) {
24396
25543
  const location = formatAppointmentLocation(service.location);
24397
25544
  const practitioners = service.practitioners ?? [];
24398
25545
  return [
25546
+ ...service.requiresApproval ? [{
25547
+ label: "Booking",
25548
+ value: "You ask for a time, and it’s booked once it’s accepted."
25549
+ }] : [],
24399
25550
  {
24400
25551
  label: "How long",
24401
25552
  value: formatAppointmentDuration(service.durationMinutes)
@@ -24434,24 +25585,26 @@ const serviceDetailsFactsTransform = {
24434
25585
  summary: "Read the facts shown for one appointment service",
24435
25586
  run: (value) => readServiceDetailsFacts(value)
24436
25587
  };
25588
+ /** Display props for the client: the section's scope in content-field shape. */
24437
25589
  const eventCalendarSelectionParam = {
24438
25590
  id: "events.calendarSelectionParam",
24439
25591
  kind: "formatter",
24440
25592
  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
- ]) }),
25593
+ schema: z.object({ key: z.enum(["seriesIds", ...eventDiscoveryFilterKeys]) }),
24450
25594
  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];
25595
+ const scope = resolveEventScope(asPartialObject(value) ?? {});
25596
+ if (scope.kind === "selected") return key === "seriesIds" ? scope.seriesIds : void 0;
25597
+ return key === "seriesIds" ? void 0 : scope.filters[key];
25598
+ }
25599
+ };
25600
+ /** Public event query params for the section's scope, shared by render loaders and readiness. */
25601
+ const eventScopeParam = {
25602
+ id: "events.scopeParam",
25603
+ kind: "formatter",
25604
+ summary: "Public event query params for the section scope",
25605
+ schema: z.object({ key: z.enum(eventScopeQueryKeys) }),
25606
+ run(value, { key }) {
25607
+ return eventScopeLoaderParam(eventScopeQuery(resolveEventScope(asPartialObject(value) ?? {})), key);
24455
25608
  }
24456
25609
  };
24457
25610
  const readJobSchema = z.object({ job: z.enum([
@@ -24477,7 +25630,41 @@ const eventCalendarReadEnabled = {
24477
25630
  return plan.jobs === options.job || plan.jobs === "both" && options.job !== "schedule";
24478
25631
  }
24479
25632
  };
25633
+ /**
25634
+ * The week board's authored band paints `surfaceAlt` across the whole
25635
+ * section, under whatever foreground the section resolved. That foreground is
25636
+ * the page's only when the section paints nothing itself, so the band is
25637
+ * honoured on a plain section and dropped when a Look or override already
25638
+ * paints one (light band text on a pale board band otherwise).
25639
+ */
25640
+ const eventCalendarBanded = {
25641
+ id: "events.calendarBanded",
25642
+ kind: "formatter",
25643
+ summary: "Paint the week-board band only on a section with no background of its own",
25644
+ run(value) {
25645
+ const content = asPartialObject(value) ?? {};
25646
+ const sectionStyles = asPartialObject(content._sectionStyles);
25647
+ return content.banded === true && parseBackgroundContent(sectionStyles?.background) === null;
25648
+ }
25649
+ };
25650
+ /** The list loader keeps its one request and adds bounds only for weekly lists. */
25651
+ const eventCalendarListWindow = {
25652
+ id: "events.calendarListWindow",
25653
+ kind: "formatter",
25654
+ schema: z.object({ key: z.enum(["from", "to"]) }),
25655
+ run(_value, { key }, context) {
25656
+ const content = context.data ?? {};
25657
+ if (eventCalendarListGroupingDecision({
25658
+ ...content,
25659
+ arrangementLooks: content._lookSlots !== void 0
25660
+ }).grouping !== "week") return void 0;
25661
+ const timeZone = context.dateContext.timeZone;
25662
+ const startOfWeek = eventCalendarWeekStart(timeZone, content.startOfWeek === "sunday" || content.startOfWeek === "monday" ? content.startOfWeek : void 0);
25663
+ return buildEventListWeek(getLocalScheduleDate(new Date(readRuntimeNow(context.now)), timeZone), startOfWeek, timeZone)[key];
25664
+ }
25665
+ };
24480
25666
  const defaultTransforms = createTransformRegistry([
25667
+ classPriceItemsTransform,
24481
25668
  eventRegistrationPageReadAdmission,
24482
25669
  offeringsPreviewDatesReadEnabled,
24483
25670
  lookLeadSlotTransform,
@@ -24485,33 +25672,27 @@ const defaultTransforms = createTransformRegistry([
24485
25672
  lookCarouselRegionTransform,
24486
25673
  lookSkinSlotTransform,
24487
25674
  {
24488
- id: "events.calendarListWindow",
25675
+ id: "events.readinessEnabled",
24489
25676
  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];
25677
+ run(value) {
25678
+ const content = asPartialObject(value) ?? {};
25679
+ return content.emptyBehavior === "hide" && eventReadinessLoaderKey(content) !== "schedule";
24500
25680
  }
24501
25681
  },
24502
- eventCalendarSelectionParam,
24503
- eventCalendarReadEnabled,
24504
- eventCalendarReadProfile,
24505
25682
  {
24506
- id: "events.calendarBanded",
25683
+ id: "events.readinessParam",
24507
25684
  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;
25685
+ schema: z.object({ key: z.enum(eventReadinessQueryKeys) }),
25686
+ run(value, { key }) {
25687
+ return eventScopeLoaderParam(eventReadinessQuery(asPartialObject(value) ?? {}), key);
24513
25688
  }
24514
25689
  },
25690
+ eventCalendarListWindow,
25691
+ eventCalendarSelectionParam,
25692
+ eventScopeParam,
25693
+ eventCalendarReadEnabled,
25694
+ eventCalendarReadProfile,
25695
+ eventCalendarBanded,
24515
25696
  ...formattingTransforms,
24516
25697
  ...layoutTransforms,
24517
25698
  ...chromeLogoTransforms,
@@ -24895,6 +26076,10 @@ const META_PATH_TO_STORE_KEY = {
24895
26076
  function mapMetaPathToStoreKey(path) {
24896
26077
  return META_PATH_TO_STORE_KEY[path] ?? path;
24897
26078
  }
26079
+ /** Named bindings follow lexical scope: the nearest declaration wins. */
26080
+ function findNamedScope(context, name) {
26081
+ return [...context.scopes].reverse().find((entry) => entry.name === name);
26082
+ }
24898
26083
  const PATH_SEPARATOR_REGEX = /\./g;
24899
26084
  const BRACKET_ACCESS_REGEX = /\[([^\]]+)\]/g;
24900
26085
  /**
@@ -24978,7 +26163,7 @@ function derivePreviewLinkedEntryFieldBinding(node, parsedBinding, context) {
24978
26163
  const [scopeName, ...displaySegments] = splitPath$1(parsedBinding.from);
24979
26164
  if (typeof scopeName !== "string") return null;
24980
26165
  if (displaySegments.length === 0) return null;
24981
- const scoped = [...context.scopes].reverse().find((entry) => entry.name === scopeName);
26166
+ const scoped = findNamedScope(context, scopeName);
24982
26167
  if (!scoped) return null;
24983
26168
  const displayPath = segmentsToPath(displaySegments);
24984
26169
  if (!displayPath) return null;
@@ -25036,7 +26221,7 @@ function contentFieldSegments(fromPath, context) {
25036
26221
  const [first, ...rest] = splitPath$1(fromPath);
25037
26222
  if (typeof first !== "string" || first === "$root") return void 0;
25038
26223
  if (first === "content") return rest;
25039
- const named = [...context.scopes].reverse().find((entry) => entry.name === first);
26224
+ const named = findNamedScope(context, first);
25040
26225
  if (named) return scopedContentSegments(named, rest);
25041
26226
  const innermost = [...context.scopes].reverse().find((entry) => isPlainObject$1(entry.value) || Array.isArray(entry.value));
25042
26227
  if (!innermost || first in context.viewModel) return void 0;
@@ -25181,7 +26366,7 @@ function applyTransformsAndFallback(value, binding, context) {
25181
26366
  function resolveTransformData(context, bindingPath) {
25182
26367
  const [first] = splitPath$1(bindingPath);
25183
26368
  if (typeof first === "string" && first !== "$root") {
25184
- const namedScope = context.scopes.find((entry) => entry.name === first);
26369
+ const namedScope = findNamedScope(context, first);
25185
26370
  if (namedScope && isPlainObject$1(namedScope.value)) return namedScope.value;
25186
26371
  }
25187
26372
  for (let i = context.scopes.length - 1; i >= 0; i -= 1) {
@@ -25349,7 +26534,7 @@ function resolveReadBindingValue(binding, context) {
25349
26534
  source = currentScope.value;
25350
26535
  const value = readFromSource$1(source, segments);
25351
26536
  if (value !== void 0) return applyTransformsAndFallback(value, binding, context);
25352
- const namedScope = context.scopes.find((entry) => entry.name === first);
26537
+ const namedScope = findNamedScope(context, first);
25353
26538
  if (namedScope) {
25354
26539
  source = namedScope.value;
25355
26540
  const namedValue = readFromSource$1(source, rest);
@@ -25357,7 +26542,7 @@ function resolveReadBindingValue(binding, context) {
25357
26542
  }
25358
26543
  return applyTransformsAndFallback(readFromSource$1(context.viewModel, segments), binding, context);
25359
26544
  }
25360
- const namedScope = context.scopes.find((entry) => entry.name === first);
26545
+ const namedScope = findNamedScope(context, first);
25361
26546
  if (namedScope) {
25362
26547
  source = namedScope.value;
25363
26548
  return applyTransformsAndFallback(readFromSource$1(source, rest), binding, context);
@@ -25446,9 +26631,11 @@ function resolveRepeater(node, context) {
25446
26631
  ...context,
25447
26632
  scopes
25448
26633
  };
26634
+ const itemKey = node.key === void 0 ? void 0 : `${node.key}-${idx}`;
25449
26635
  const resolved = resolveNode({
25450
26636
  ...node,
25451
- $repeat: void 0
26637
+ $repeat: void 0,
26638
+ key: itemKey
25452
26639
  }, repeatedContext, idx);
25453
26640
  if (resolved === null) return null;
25454
26641
  const target = buildLinkedContentEditTarget({
@@ -25461,7 +26648,7 @@ function resolveRepeater(node, context) {
25461
26648
  const frame = context.registry.linkedEntryEditFrame;
25462
26649
  if (!frame) return resolved;
25463
26650
  return React.createElement(frame, {
25464
- key: idx,
26651
+ key: itemKey ?? idx,
25465
26652
  target,
25466
26653
  blockId: context.blockId,
25467
26654
  blockKind: context.blockKind
@@ -26101,36 +27288,40 @@ function makeDefaultBlockComponent(args) {
26101
27288
  }
26102
27289
  function createDefaultBlockComponent(manifest) {
26103
27290
  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
- };
27291
+ return resolveDefaultBlockTree(manifest, props);
27292
+ };
27293
+ }
27294
+ /** Resolve declarative markup once so page-wide semantics can inspect the same tree that renders. */
27295
+ function resolveDefaultBlockTree(manifest, props) {
27296
+ const perf = beginBlockRenderMeasurement();
27297
+ const prepared = prepareDefaultBlockRender(manifest, props);
27298
+ const result = resolveTree(prepared.layout, {
27299
+ registry: prepared.registry,
27300
+ viewModel: prepared.viewModel,
27301
+ dateContext: prepared.dateContext,
27302
+ now: prepared.now,
27303
+ transforms: props.transforms,
27304
+ theme: prepared.themeForTransforms,
27305
+ proseHoverCandidate: prepared.proseHoverCandidate,
27306
+ pathBase: props.pathBase,
27307
+ blockId: props.blockId,
27308
+ newsletterBlockSubmission: props.newsletterBlockSubmission,
27309
+ blockKind: props.blockKind,
27310
+ blockContent: prepared.mergedContent,
27311
+ blockBindings: props.blockBindings,
27312
+ editableRouteMetadataFieldIds: props.editableRouteMetadataFieldIds,
27313
+ fragmentRegistry: props.fragmentRegistry,
27314
+ fieldConstraints: prepared.fieldConstraints,
27315
+ imageResolveContext: props.imageResolveContext,
27316
+ previewAuthoring: props.previewAuthoring
27317
+ });
27318
+ reportSlowBlockRender(perf, {
27319
+ content: props.content,
27320
+ blockId: props.blockId,
27321
+ blockKind: props.blockKind ?? manifest.name,
27322
+ manifestName: manifest.name
27323
+ });
27324
+ return result;
26134
27325
  }
26135
27326
  function prepareBlockRender(input) {
26136
27327
  const mergedContent = mergeContentWithBlockStyleOverrides(input.content, input.themeConfig, input.blockKind);
@@ -26724,9 +27915,11 @@ function effectiveLookFromContent(content) {
26724
27915
  const value = content._effectiveLook;
26725
27916
  return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
26726
27917
  }
26727
- function planArrangementContent(blockKind, manifest, content, audience) {
26728
- const runtime = arrangementRuntime(content);
26729
- if (!runtime) return content;
27918
+ function planArrangementContent(blockKind, manifest, authored, audience) {
27919
+ const runtime = arrangementRuntime(authored);
27920
+ if (!runtime) return authored;
27921
+ const spacingHook = authoredSectionSpacingHook(authored);
27922
+ const content = withoutSectionSpacing(authored);
26730
27923
  const mode = readStoredMode({
26731
27924
  ...arrangementManifestFromVariants(manifest),
26732
27925
  variantMeaning: manifest.variantMeaning
@@ -26748,11 +27941,11 @@ function planArrangementContent(blockKind, manifest, content, audience) {
26748
27941
  }), ["look"]);
26749
27942
  const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind !== "kept")), lookOwnedPaths);
26750
27943
  const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
26751
- const visiblePhotos = arrangementContentFacts({
27944
+ const photoCount = arrangementContentFacts({
26752
27945
  ...activeContent,
26753
27946
  ...effectiveContent,
26754
27947
  ...photoContent
26755
- });
27948
+ }).photoCount + lookPartPhotoCount(blockKind, activeContent, effective.look.structure.byMode[mode ?? "default"] ?? null);
26756
27949
  return {
26757
27950
  ...activeContent,
26758
27951
  ...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
@@ -26764,10 +27957,13 @@ function planArrangementContent(blockKind, manifest, content, audience) {
26764
27957
  ...arrangementQuoteContent(blockKind, effective, values),
26765
27958
  _arrangementLooks: runtime,
26766
27959
  _effectiveLook: effective,
26767
- _lookHooks: arrangementContentHooks(effective, mode, length, {
26768
- ...facts.content,
26769
- photo: visiblePhotos.facts.content.photo
26770
- }, values, visiblePhotos.photoCount),
27960
+ _lookHooks: {
27961
+ ...arrangementContentHooks(effective, mode, length, {
27962
+ ...facts.content,
27963
+ photo: photoCount > 0
27964
+ }, values, photoCount),
27965
+ ...spacingHook
27966
+ },
26771
27967
  _effectiveKnobs: knobs,
26772
27968
  _lookOwnedPaths: lookOwnedPaths,
26773
27969
  _lookAudience: audience,
@@ -26775,6 +27971,25 @@ function planArrangementContent(blockKind, manifest, content, audience) {
26775
27971
  blockLook: effective.look.id
26776
27972
  };
26777
27973
  }
27974
+ /**
27975
+ * The section spacing an owner chose, as a hook, so a skin that sets its own
27976
+ * section padding can still honour it. Absent when the spacing was not chosen.
27977
+ * The compiler carries it through for Look blocks only for this hook (see
27978
+ * applyCompiledRuntimeFieldsToContent); the Look keeps its own padding, so the
27979
+ * value is taken out of the content before the section class reads it.
27980
+ */
27981
+ function authoredSectionSpacingHook(content) {
27982
+ const spacing = isObjectRecord(content._sectionStyles) ? content._sectionStyles.spacing : void 0;
27983
+ return isSemanticSpacing(spacing) ? { "data-section-spacing": spacing } : {};
27984
+ }
27985
+ function withoutSectionSpacing(content) {
27986
+ if (!isObjectRecord(content._sectionStyles) || !("spacing" in content._sectionStyles)) return content;
27987
+ const { spacing: _spacing, ...sectionStyles } = content._sectionStyles;
27988
+ return {
27989
+ ...content,
27990
+ _sectionStyles: sectionStyles
27991
+ };
27992
+ }
26778
27993
  /** Typed Look composition owns contrast treatment; parsing preserves authored paint. */
26779
27994
  function arrangementPhotoTreatmentContent(content, look, palette, tint) {
26780
27995
  if (!look.look.structure.photoTreatment) return {};
@@ -26816,6 +28031,14 @@ function arrangementPanelContent(content, effective, mode) {
26816
28031
  _lookPanelHeading: content.heading
26817
28032
  };
26818
28033
  }
28034
+ /**
28035
+ * Photos a Look shows beside the block's own: the hero's more photos, where its
28036
+ * arrangement shows them. They count towards the photo hooks only; the photo fact
28037
+ * that published fallbacks read stays the block's own photo.
28038
+ */
28039
+ function lookPartPhotoCount(blockKind, content, arrangement) {
28040
+ return blockKind === "block.hero" && lookPartShown(blockKind, "morePhotos", arrangement) ? heroMorePhotoCount(content) : 0;
28041
+ }
26819
28042
  function arrangementPhotoContent(content, knobs) {
26820
28043
  if (knobs.showPhotos !== false || !Array.isArray(content.cards)) return {};
26821
28044
  return { cards: content.cards.map((card) => {
@@ -27006,10 +28229,10 @@ function resolveCombinedLook(entry, list, runtime, section, content) {
27006
28229
  }
27007
28230
  function plannedSlotParents(entry, look) {
27008
28231
  const fallback = Object.values(look.look.structure.byMode)[0] ?? "";
27009
- if (entry.kind !== "renderable") return arrangementSlotParentsForManifest(void 0, look.look.target, fallback);
28232
+ if (entry.kind !== "renderable") return arrangementSlotParentsForManifest(void 0, look.look.target, fallback, look.look.structure.eventRows);
27010
28233
  const month = entry.renderableContent._lookMonthArrangement;
27011
28234
  const arrangement = entry.effectiveListArrangementKey ?? (typeof month === "string" ? month : entry.effectiveArrangementKey) ?? fallback;
27012
- return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement);
28235
+ return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
27013
28236
  }
27014
28237
  //#endregion
27015
28238
  //#region ../blocks/src/system/data/utils.ts
@@ -27831,6 +29054,88 @@ function requireSdkTheme(theme, siteId, reason = "cms_theme_absent") {
27831
29054
  return theme;
27832
29055
  }
27833
29056
  //#endregion
29057
+ //#region ../blocks/src/pageHeadingSemantics.tsx
29058
+ /** Inspect resolved declarative markup, after conditions, bindings and repeaters. Never invoke arbitrary React components. */
29059
+ function elements(tree) {
29060
+ if (Array.isArray(tree)) return tree.flatMap(elements);
29061
+ return React.isValidElement(tree) ? [tree, ...elements(tree.props.children)] : [];
29062
+ }
29063
+ function hasText(value) {
29064
+ if (typeof value === "string") return value.trim().length > 0;
29065
+ const inline = parseInlineTextFromUnknown(value);
29066
+ return inline.ok && inlineTextToPlainText(inline.value).trim().length > 0;
29067
+ }
29068
+ function richTextHasH1(value) {
29069
+ if (!value || typeof value !== "object") return false;
29070
+ const level = Reflect.get(value, "attrs");
29071
+ if (Reflect.get(value, "type") === "heading" && level && typeof level === "object" && Reflect.get(level, "level") === 1) return true;
29072
+ const content = Reflect.get(value, "content");
29073
+ return Array.isArray(content) && content.some(richTextHasH1);
29074
+ }
29075
+ function ownsH1(node, eventDetailsComponent) {
29076
+ if ((node.type === "h1" || node.props.as === "h1") && (hasText(node.props.value) || React.Children.count(node.props.children) > 0)) return true;
29077
+ if (richTextHasH1(node.props.value)) return true;
29078
+ if (node.type !== eventDetailsComponent || !React.isValidElement(node)) return false;
29079
+ const presentation = resolveEventDetailsPresentation({
29080
+ ...node.props,
29081
+ subject: normalizeEventRegistrationPageSurfaceSubject(node.props.subject)
29082
+ });
29083
+ return presentation.arrangement === "event-header" && (presentation.selection.kind !== "empty" || Boolean(presentation.entryTitle));
29084
+ }
29085
+ function isSectionHeading(node) {
29086
+ if (node.props.as !== "h2" || !hasText(node.props.value)) return false;
29087
+ const slot = node.props["data-slot"];
29088
+ const path = node.props.path;
29089
+ return slot === "heading" || slot === "headline" || typeof path === "string" && /^blocks\.[^.]+\.[^.]+$/.test(path);
29090
+ }
29091
+ function promote(tree, heading) {
29092
+ if (Array.isArray(tree)) {
29093
+ const items = tree;
29094
+ const children = items.map((child) => promote(child, heading));
29095
+ return children.every((child, index) => child === items[index]) ? items : children;
29096
+ }
29097
+ if (!React.isValidElement(tree)) return tree;
29098
+ if (tree === heading) return React.cloneElement(tree, {
29099
+ as: "h1",
29100
+ className: [tree.props.className, "rb-heading-level-2"].filter(Boolean).join(" ")
29101
+ });
29102
+ const children = promote(tree.props.children, heading);
29103
+ return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
29104
+ }
29105
+ /** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
29106
+ function applyPageHeadingSemantics(trees, eventDetailsComponent) {
29107
+ const nodes = [...trees.values()].flatMap(elements);
29108
+ if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
29109
+ trees,
29110
+ needsPageTitle: false
29111
+ };
29112
+ const heading = nodes.find(isSectionHeading);
29113
+ return heading ? {
29114
+ trees: new Map([...trees].map(([id, tree]) => [id, promote(tree, heading)])),
29115
+ needsPageTitle: false
29116
+ } : {
29117
+ trees,
29118
+ needsPageTitle: true
29119
+ };
29120
+ }
29121
+ /** Inline hiding also works in SDK sites that do not load utility CSS. */
29122
+ function PageTitleFallback({ name }) {
29123
+ return /* @__PURE__ */ jsx("h1", {
29124
+ style: {
29125
+ position: "absolute",
29126
+ width: 1,
29127
+ height: 1,
29128
+ padding: 0,
29129
+ margin: -1,
29130
+ overflow: "hidden",
29131
+ clipPath: "inset(50%)",
29132
+ whiteSpace: "nowrap",
29133
+ border: 0
29134
+ },
29135
+ children: name
29136
+ });
29137
+ }
29138
+ //#endregion
27834
29139
  //#region ../blocks/src/pageRenderAudience.tsx
27835
29140
  /**
27836
29141
  * The single policy for what a non-renderable block looks like.
@@ -28168,6 +29473,7 @@ function offeringsPreviewPhotoCount(listing) {
28168
29473
  case "no-groups":
28169
29474
  case "nothing-to-show": return 0;
28170
29475
  case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
29476
+ case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
28171
29477
  case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
28172
29478
  default: return assertNever$2(listing);
28173
29479
  }
@@ -28187,6 +29493,113 @@ function hasPhoto(item) {
28187
29493
  default: return assertNever$2(item);
28188
29494
  }
28189
29495
  }
29496
+ function courseGroupPhotoCount(load) {
29497
+ if (load.kind !== "items") return 0;
29498
+ const courses = groupOfferingRunsByCourse(load.items);
29499
+ const ungrouped = load.items.filter((item) => item.kind !== "run" || !item.run.run.listing);
29500
+ return courses.filter(({ course }) => course.presentation?.image).length + ungrouped.filter(hasPhoto).length;
29501
+ }
29502
+ //#endregion
29503
+ //#region ../blocks/src/blockContentPreparation.ts
29504
+ function prepareBlockContent(kind, content, data, context, audience) {
29505
+ return {
29506
+ ...arrangementResolvedContent(kind, content, data, context, audience),
29507
+ data: arrangementResolvedData(kind, content, data)
29508
+ };
29509
+ }
29510
+ function arrangementResolvedData(kind, content, data) {
29511
+ if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
29512
+ return {
29513
+ ...data,
29514
+ entries: content._quoteCount === null ? data.entries : data.entries.slice(0, Number(content._quoteCount))
29515
+ };
29516
+ }
29517
+ function arrangementResolvedContent(kind, content, data, context, audience) {
29518
+ if (!data) return {
29519
+ content,
29520
+ publicVisibility: "shown"
29521
+ };
29522
+ if (kind === "block.offerings-preview") return offeringArrangementContent(content, data, context, audience);
29523
+ if (kind === "block.appointment-services" && content._effectiveLook !== void 0) return {
29524
+ content: appointmentArrangementContent(content, data, context),
29525
+ publicVisibility: "shown"
29526
+ };
29527
+ return {
29528
+ content,
29529
+ publicVisibility: "shown"
29530
+ };
29531
+ }
29532
+ /** One listing owns card visibility, public section omission and photo counting. */
29533
+ function offeringArrangementContent(content, data, context, audience) {
29534
+ const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
29535
+ if (!needsOfferingListing(content, normalized)) return {
29536
+ content,
29537
+ publicVisibility: "shown"
29538
+ };
29539
+ const now = new Date(readRuntimeNow(context?.now));
29540
+ const listing = buildLoadedOfferingsPreviewListing({
29541
+ now,
29542
+ listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
29543
+ routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
29544
+ ...normalized,
29545
+ presets: context?.bookingOfferingPresets,
29546
+ catalogueEvents: readPublicEvents(data.catalogueEvents),
29547
+ wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
29548
+ ...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
29549
+ });
29550
+ const prepared = {
29551
+ ...content,
29552
+ _offeringsPreviewInput: {
29553
+ kind: "prepared",
29554
+ listing,
29555
+ now
29556
+ },
29557
+ ...audience === "authoring" ? { _offeringsPreviewShowHiddenPlaceholder: true } : {}
29558
+ };
29559
+ return {
29560
+ content: content._effectiveLook === void 0 ? prepared : withCardListPhotoCount(prepared, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing)),
29561
+ publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
29562
+ };
29563
+ }
29564
+ /** Older blocks opt into preparation only when public visibility needs their listing. */
29565
+ function needsOfferingListing(content, normalized) {
29566
+ return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
29567
+ }
29568
+ function readPublicEvents(value) {
29569
+ const parsed = publicEventsArraySchema.safeParse(value);
29570
+ return parsed.success ? parsed.data : void 0;
29571
+ }
29572
+ function appointmentArrangementContent(content, data, context) {
29573
+ const view = buildAppointmentServicesView({
29574
+ arrangement: cardListArrangementForContent(content),
29575
+ services: data.services,
29576
+ categoryId: content.categoryId,
29577
+ pathname: context?.pathname,
29578
+ servicePathPrefix: context?.appointmentServicePathPrefix
29579
+ });
29580
+ const rows = view.kind === "items" ? view.rows : view.kind === "groups" ? view.groups.flatMap((group) => group.rows) : [];
29581
+ const photoCount = content.showPhotos === false ? 0 : rows.filter((row) => row.media).length;
29582
+ return withCardListPhotoCount({
29583
+ ...content,
29584
+ _appointmentServicesView: view
29585
+ }, photoCount);
29586
+ }
29587
+ function withCardListPhotoCount(content, photoCount) {
29588
+ const hooks = typeof content._lookHooks === "object" && content._lookHooks !== null ? content._lookHooks : {};
29589
+ return {
29590
+ ...content,
29591
+ _lookHooks: {
29592
+ ...hooks,
29593
+ "data-has-photo": String(photoCount > 0),
29594
+ "data-photo-count": String(photoCount)
29595
+ }
29596
+ };
29597
+ }
29598
+ function cardListArrangementForContent(content) {
29599
+ const hooks = content._lookHooks;
29600
+ if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
29601
+ return cardListPresentationSchemaShape.cardArrangement.safeParse(hooks["data-arrangement"]).data;
29602
+ }
28190
29603
  //#endregion
28191
29604
  //#region ../blocks/src/system/manifest/hydrateLinks.ts
28192
29605
  /**
@@ -28360,7 +29773,7 @@ function preparePageRenderEntries(input, previous = null) {
28360
29773
  const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
28361
29774
  const entries = prepared.map(([, value]) => value);
28362
29775
  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");
29776
+ 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
29777
  const surviving = new Set(survivors);
28365
29778
  const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
28366
29779
  const regions = {
@@ -28396,7 +29809,7 @@ function preparationAdmission(input) {
28396
29809
  const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
28397
29810
  return {
28398
29811
  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")
29812
+ 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
29813
  };
28401
29814
  }
28402
29815
  function readPreparedPlanEntry(entry, input, previous, permission) {
@@ -28435,8 +29848,11 @@ function isPublicSourcePermitted(entry, permission) {
28435
29848
  const rawSource = entry.renderableContent.locationSource;
28436
29849
  return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
28437
29850
  }
28438
- function entryNeedsSetup(entry, facts, interaction) {
28439
- return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts, interaction).kind === "NeedsSetup";
29851
+ function entryHiddenFromVisitors(entry, facts, interaction) {
29852
+ return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
29853
+ blockId: entry.block.id ?? null,
29854
+ interaction
29855
+ }));
28440
29856
  }
28441
29857
  /**
28442
29858
  * The only place joins are composed. Plan-time omissions were already
@@ -28494,26 +29910,32 @@ function buildPreparedContent(entry, content, input) {
28494
29910
  const routes = input.routeMap ?? dataContext?.routes;
28495
29911
  const hydratedContent = routes ? hydrateManifestLinks(entry.definition.manifest, content, routes, dataContext?.pagesByIdentifier, dataContext?.entriesByIdentifier) : content;
28496
29912
  const resolved = resolveBlockData(block.id, entry.definition.dataLoaders, dataContext, routes);
29913
+ const { baseProps, publicVisibility } = preparedBlockProps(entry, hydratedContent, resolved, input);
28497
29914
  return {
28498
29915
  kind: "content",
28499
- baseProps: preparedBlockProps(entry, hydratedContent, resolved, input),
29916
+ baseProps,
29917
+ publicVisibility,
28500
29918
  component: entry.override ? void 0 : makeDefaultBlockComponent({ manifest: entry.definition.manifest }),
28501
29919
  hasResolvedData: !!resolved && typeof resolved === "object" && Object.keys(resolved).length > 0,
28502
29920
  routes
28503
29921
  };
28504
29922
  }
28505
29923
  function preparedBlockProps(entry, content, data, input) {
29924
+ const prepared = prepareBlockContent(entry.block.kind, content, data, input.dataContext, input.audience);
28506
29925
  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
29926
+ baseProps: {
29927
+ ...buildBlockOverrideProps({
29928
+ content: prepared.content,
29929
+ data: prepared.data,
29930
+ block: entry.block,
29931
+ themeResources: input.themeResources,
29932
+ dataContext: input.dataContext,
29933
+ imageResolveContext: input.imageResolveContext,
29934
+ routeMap: input.routeMap
29935
+ }),
29936
+ bookingTimeZone: input.dataContext?.bookingTimeZone
29937
+ },
29938
+ publicVisibility: prepared.publicVisibility
28517
29939
  };
28518
29940
  }
28519
29941
  /**
@@ -28580,82 +30002,6 @@ function blockSubjectProps(dataContext) {
28580
30002
  subject
28581
30003
  };
28582
30004
  }
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
30005
  function preparedPlanEntry(entry, prepared) {
28660
30006
  return {
28661
30007
  entry: entry.kind === "renderable" && prepared.kind === "content" ? {
@@ -28785,12 +30131,32 @@ function PageRendererCore(props) {
28785
30131
  dataContext,
28786
30132
  themeResources
28787
30133
  });
28788
- if (!page || preparation.entries.length === 0) return props.wrapPage ? props.wrapPage(plan, presentEmptyPage(audience)) : presentEmptyPage(audience);
28789
30134
  setContextResolveImageUrlContext(imageResolveContext);
28790
- const rendered = renderPreparedPage(props, preparation, themeResources, imageResolveContext);
30135
+ const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
30136
+ const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
30137
+ const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
30138
+ preparation,
30139
+ dataContext,
30140
+ registry: resolvedRegistry,
30141
+ previewAuthoring: props.previewAuthoring,
30142
+ imageResolveContext
30143
+ }), resolvedRegistry["event-details"]), [
30144
+ preparation,
30145
+ dataContext,
30146
+ resolvedRegistry,
30147
+ props.previewAuthoring,
30148
+ imageResolveContext,
30149
+ readSystemTrees
30150
+ ]);
30151
+ return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
30152
+ }
30153
+ function renderEmptyPage(page, audience) {
30154
+ return /* @__PURE__ */ jsxs(Fragment, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
30155
+ }
30156
+ function wrapRenderedPage(props, plan, rendered) {
28791
30157
  return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
28792
30158
  }
28793
- function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
30159
+ function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
28794
30160
  const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
28795
30161
  const joinSlots = joinSlotsByPair(preparation.joins);
28796
30162
  const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
@@ -28801,24 +30167,30 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
28801
30167
  themeResources,
28802
30168
  imageResolveContext,
28803
30169
  resolvedRegistry,
30170
+ systemTrees: headingPresentation.trees,
28804
30171
  joinSlots: joins,
28805
30172
  wrapBlock: props.wrapBlock,
28806
30173
  renderJoin: props.renderJoin
28807
30174
  }));
28808
30175
  const { main, aside } = preparation.regions;
28809
- if (aside.length === 0) return /* @__PURE__ */ jsx("div", { children: renderRegion(main, joinSlots) });
30176
+ const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
30177
+ if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
28810
30178
  return /* @__PURE__ */ jsxs("div", {
28811
30179
  className: "rb-page-layout",
28812
30180
  "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
- })]
30181
+ children: [
30182
+ title,
30183
+ /* @__PURE__ */ jsx("div", {
30184
+ className: "rb-page-layout__main",
30185
+ "data-page-region": "main",
30186
+ children: renderRegion(main, joinSlots)
30187
+ }),
30188
+ /* @__PURE__ */ jsx("aside", {
30189
+ className: "rb-page-layout__aside rb-sticky-below-site-chrome",
30190
+ "data-page-region": "aside",
30191
+ children: renderRegion(aside, /* @__PURE__ */ new Map())
30192
+ })
30193
+ ]
28822
30194
  });
28823
30195
  }
28824
30196
  /**
@@ -28938,7 +30310,8 @@ function renderPlanEntry(input) {
28938
30310
  entry: input.entry,
28939
30311
  blockKey,
28940
30312
  imageResolveContext,
28941
- registry: resolvedRegistry
30313
+ registry: resolvedRegistry,
30314
+ systemTree: input.systemTrees.get(entry)
28942
30315
  });
28943
30316
  if (!shouldUseWrapper) {
28944
30317
  const rendered = /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }, `${blockKey}:block`);
@@ -28985,6 +30358,7 @@ function resolvePageRendererImageResolveContext(dataContext) {
28985
30358
  }
28986
30359
  function buildBlockSectionProps(input) {
28987
30360
  return {
30361
+ systemTree: input.systemTree,
28988
30362
  themeResources: input.themeResources,
28989
30363
  entry: input.entry,
28990
30364
  audience: input.props.audience,
@@ -29024,14 +30398,13 @@ function blockRootLookups(dataContext, routes) {
29024
30398
  function renderSystemBlockElement(input) {
29025
30399
  const { prepared, dataContext } = input;
29026
30400
  const block = input.entry.block;
29027
- const BlockComponent = prepared.component;
29028
- if (!BlockComponent) return null;
30401
+ if (!prepared.component) return null;
29029
30402
  const rootContext = { $root: {
29030
30403
  ...buildPageRendererRootRuntime(dataContext),
29031
30404
  ...blockRootLookups(dataContext, prepared.routes),
29032
30405
  ...blockSubjectProps(dataContext)
29033
30406
  } };
29034
- return /* @__PURE__ */ jsx(BlockComponent, {
30407
+ return resolveDefaultBlockTree(input.entry.definition.manifest, {
29035
30408
  ...prepared.baseProps,
29036
30409
  dateContext: rootContext.$root.dateContext,
29037
30410
  now: rootContext.$root.now,
@@ -29047,6 +30420,39 @@ function renderSystemBlockElement(input) {
29047
30420
  previewAuthoring: input.previewAuthoring
29048
30421
  });
29049
30422
  }
30423
+ /** Keep resolution failures inside the existing per-block React error boundary. */
30424
+ function FailedSystemBlockTree({ error }) {
30425
+ throw error;
30426
+ }
30427
+ function resolveSystemBlockTree(input) {
30428
+ try {
30429
+ return renderSystemBlockElement(input);
30430
+ } catch (error) {
30431
+ return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
30432
+ }
30433
+ }
30434
+ /** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
30435
+ function createPageSystemTreeReader() {
30436
+ const memo = {};
30437
+ return (input) => {
30438
+ const previous = memo.current;
30439
+ const sameSettings = previous && previous.input.registry === input.registry && previous.input.previewAuthoring === input.previewAuthoring && previous.input.imageResolveContext === input.imageResolveContext;
30440
+ const trees = new Map([...input.preparation.regions.main, ...input.preparation.regions.aside].flatMap((candidate) => {
30441
+ const { entry, prepared } = candidate;
30442
+ if (entry.kind !== "renderable" || entry.override || prepared.kind !== "content") return [];
30443
+ return [[candidate, sameSettings && previous.trees.has(candidate) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id) ? previous.trees.get(candidate) : resolveSystemBlockTree({
30444
+ ...input,
30445
+ entry,
30446
+ prepared
30447
+ })]];
30448
+ }));
30449
+ memo.current = {
30450
+ input,
30451
+ trees
30452
+ };
30453
+ return new Map([...trees].map(([candidate, tree]) => [candidate.entry, tree]));
30454
+ };
30455
+ }
29050
30456
  /** Pure diagnostic choice; the audience owner controls its presentation. */
29051
30457
  function preparationDiagnostic(prepared, blockKind) {
29052
30458
  switch (prepared.kind) {
@@ -29112,7 +30518,7 @@ function finishBlockRender(node, block, perfStart, meta) {
29112
30518
  * referential equality of all props that affect rendering. Standard React.memo
29113
30519
  * wouldn't catch all the render triggers from the editor store.
29114
30520
  */
29115
- const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources, entry: preparedEntry, routeMap, audience, dataContext, registry, wrapBlock, imageResolveContext, previewAuthoring }) {
30521
+ const MemoBlockSection = React$1.memo(function MemoBlockSection({ systemTree, themeResources, entry: preparedEntry, routeMap, audience, dataContext, wrapBlock, imageResolveContext }) {
29116
30522
  const { entry, prepared } = preparedEntry;
29117
30523
  const block = entry.block;
29118
30524
  const perfStart = globalThis.process?.env?.DEBUG_PERF === "1" && typeof window === "undefined" ? Date.now() : 0;
@@ -29162,21 +30568,14 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
29162
30568
  if (OverrideComponent) rendered = /* @__PURE__ */ jsx(OverrideComponent, { ...prepared.baseProps });
29163
30569
  else {
29164
30570
  requireThemeResources(themeResources, block.kind);
29165
- rendered = renderSystemBlockElement({
29166
- prepared,
29167
- entry,
29168
- dataContext,
29169
- registry,
29170
- previewAuthoring,
29171
- imageResolveContext: resolvedImageResolveContext
29172
- });
30571
+ rendered = systemTree;
29173
30572
  }
29174
30573
  return finish(wrapped(rendered), {
29175
30574
  override: Boolean(OverrideComponent),
29176
30575
  hasResolvedData: prepared.hasResolvedData
29177
30576
  });
29178
30577
  }, (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;
30578
+ 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
30579
  });
29181
30580
  /** Every plan input participates in memo identity; the builder owns all rules. */
29182
30581
  function usePageRenderPlan(props) {
@@ -29652,6 +31051,51 @@ function joinPresentationBlock(block) {
29652
31051
  };
29653
31052
  }
29654
31053
  //#endregion
31054
+ //#region ../blocks/src/bindings/entryBoundContent.ts
31055
+ /** The manifest owns meaningful emptiness; bindings alone cannot prove it. */
31056
+ function isEntryBoundBlockEmpty(content, bindings, contract) {
31057
+ return contract.contentPresence !== void 0 && entryBoundPaths(bindings, "").length > 0 && contract.contentPresence.every((path) => !hasVisibleValue(readPath(content, path)));
31058
+ }
31059
+ function entryBoundPaths(bindings, prefix) {
31060
+ return Object.entries(bindings).flatMap(([key, spec]) => {
31061
+ const path = prefix ? `${prefix}.${key}` : key;
31062
+ if (typeof spec === "string") return [path];
31063
+ if (isDescriptor(spec)) return spec.source === "literal" ? [] : [path];
31064
+ return isRecord$6(spec) ? entryBoundPaths(spec, path) : [];
31065
+ });
31066
+ }
31067
+ function isDescriptor(value) {
31068
+ return isRecord$6(value) && typeof value.source === "string";
31069
+ }
31070
+ function readPath(source, path) {
31071
+ return path.split(".").reduce((current, segment) => isRecord$6(current) || Array.isArray(current) ? current[segment] : void 0, source);
31072
+ }
31073
+ const STRUCTURAL_RICH_TEXT_NODES = /* @__PURE__ */ new Set([
31074
+ "doc",
31075
+ "paragraph",
31076
+ "heading",
31077
+ "hardBreak",
31078
+ "text",
31079
+ "bulletList",
31080
+ "orderedList",
31081
+ "listItem",
31082
+ "blockquote"
31083
+ ]);
31084
+ function hasVisibleRichTextNode(node) {
31085
+ if (!isRecord$6(node)) return false;
31086
+ if (typeof node.type === "string" && !STRUCTURAL_RICH_TEXT_NODES.has(node.type)) return true;
31087
+ if (typeof node.text === "string" && node.text.trim() !== "") return true;
31088
+ return Array.isArray(node.content) && node.content.some(hasVisibleRichTextNode);
31089
+ }
31090
+ function hasVisibleValue(value) {
31091
+ if (value === null || value === void 0) return false;
31092
+ if (typeof value === "string") return value.trim() !== "";
31093
+ if (Array.isArray(value)) return value.some(hasVisibleValue);
31094
+ if (isRichTextDoc(value)) return hasVisibleRichTextNode(value);
31095
+ if (isRecord$6(value)) return typeof value.text === "string" ? value.text.trim() !== "" : Object.keys(value).length > 0;
31096
+ return true;
31097
+ }
31098
+ //#endregion
29655
31099
  //#region ../blocks/src/bindings/index.ts
29656
31100
  /**
29657
31101
  * Resolves a binding map to actual content values.
@@ -30239,4 +31683,4 @@ function Page(props) {
30239
31683
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HydratorWithContextProps, { ...toPageHydrationBootstrapConfig(props) }), /* @__PURE__ */ jsx(PageContent, { ...props })] });
30240
31684
  }
30241
31685
  //#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 };
31686
+ 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 };