@riverbankcms/sdk 0.171.0 → 0.172.0

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