@riverbankcms/sdk 0.166.0 → 0.168.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 (230) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
  4. package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
  5. package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
  6. package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
  7. package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
  8. package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
  9. package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
  11. package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
  12. package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
  13. package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
  14. package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
  15. package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
  16. package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
  17. package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
  19. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  20. package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
  21. package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
  22. package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
  23. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  25. package/dist/_dts/sdk/src/client.d.ts +7 -7
  26. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  27. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  30. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  31. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  32. package/dist/_dts/sdk/src/index.d.ts +8 -8
  33. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  35. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  37. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  38. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  39. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -5
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
  57. package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
  58. package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
  59. package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
  61. package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
  62. package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
  63. package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
  64. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
  67. package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
  68. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  69. package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
  70. package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
  71. package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
  72. package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
  73. package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
  74. package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
  76. package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
  77. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  78. package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
  79. package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
  80. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  81. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  82. package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
  83. package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
  84. package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
  85. package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
  86. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  87. package/dist/client/bookings.mjs +18 -13
  88. package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
  89. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  90. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  91. package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
  92. package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
  93. package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
  94. package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
  95. package/dist/client/client.mjs +325 -65
  96. package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
  97. package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
  98. package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
  101. package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
  102. package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
  103. package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
  104. package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
  105. package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
  106. package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
  107. package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
  108. package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
  109. package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
  110. package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
  111. package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
  112. package/dist/client/gifting/client.mjs +3 -3
  113. package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
  114. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  115. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  116. package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
  118. package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
  119. package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
  120. package/dist/client/portal/client.mjs +76 -229
  121. package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
  122. package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
  123. package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
  124. package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
  125. package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
  126. package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
  127. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  128. package/dist/client/rendering/client.mjs +30 -30
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +10 -9
  131. package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
  133. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  134. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  135. package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
  136. package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
  137. package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
  138. package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
  140. package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  143. package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
  144. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  145. package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
  146. package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
  147. package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
  148. package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
  149. package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
  150. package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
  151. package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
  152. package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
  153. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  154. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  155. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  156. package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
  157. package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
  158. package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
  161. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  162. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
  164. package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
  169. package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
  170. package/dist/preview-next/keepAlive.mjs +1 -1
  171. package/dist/preview-next/middleware.mjs +1 -1
  172. package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
  173. package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
  174. package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
  175. package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
  176. package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
  177. package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +1 -1
  180. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  181. package/dist/server/data/resolveBlockData.mjs +1 -1
  182. package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
  183. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
  186. package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
  187. package/dist/server/manifest.mjs +1 -1
  188. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  189. package/dist/server/metadata.mjs +5 -1
  190. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  191. package/dist/server/next/revalidate.mjs +9 -4
  192. package/dist/server/next.mjs +6 -6
  193. package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  194. package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
  195. package/dist/server/page-converter.mjs +3 -3
  196. package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
  197. package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
  198. package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
  199. package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
  200. package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
  203. package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +3 -3
  208. package/dist/server/rendering.mjs +8 -8
  209. package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
  210. package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
  211. package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
  212. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/theme-bridge.mjs +2 -3
  215. package/dist/server/theme.mjs +1 -2
  216. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  217. package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
  218. package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
  219. package/dist/styles/index.css +991 -48
  220. package/package.json +4 -3
  221. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  222. package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
  223. package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
  224. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  225. package/dist/client/events-BmqPeeQm.mjs +0 -20
  226. package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
  227. package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
  228. package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
  229. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
  230. package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
@@ -1,10 +1,10 @@
1
- import { At as parseThemeColorToken, Z as contrastRatio, at as oklabToOklch, it as hexToRgb, lt as rgbToHex, ot as oklabToSrgb, st as oklchToHexGamut, ut as srgbToOklab } from "./resolveButtonColourStates-lry2ORwX.mjs";
2
- import { $r as lookSkinSlotTransform, $t as formatEventDateParts, Aa as deriveSectionGround, Br as parseBackgroundContent, Ca as sectionShapeForGround, Cn as getEventAvailabilityStatus, Ea as boundaryRuntimeMetricsForDecorativeTransition, Fa as cardListFamilyBlocks, Ft as ThemedButtonLink, G as resolveCalendarReadProfile, Gn as mediaTransforms, Gr as resolveBackgroundColorValue, Hr as parseRuntimeBackgroundContent, Ht as formatEventPrice, Ia as cardListKnobBlocks, Ir as boxStylesTransforms, J as CardListContentPart, Jn as layoutTransforms, Jr as BACKGROUND_POSITION_PRESET_VALUES, Jt as eventLocalDateKey, Kn as headerRuntimeTransforms, Kt as eventCalendarWeekStart, Ma as resolveSectionBackground, Pa as resolveEffectiveKnobs, Q as MediaNodeServer, Qi as heroPhotoPaintsGround, Qn as formattingTransforms, Qr as lookQuoteLimitTransform, Qt as formatEventCompactDateRail, Ta as sectionShapeHook, Un as readRuntimeNow, Ur as resolveSectionSurfaceForeground, Vr as parseBackgroundOverlay, Vt as weekColumnDays, Wa as orderedLiveRunSessions, Wr as resolveSurfaceForegroundStyles, Wt as formatEventPriceDisplay, X as resolveCardListSchedule, Xi as resolveLookSurfacePresentation, Xn as resolveHeroTitleLength, Xr as lookCarouselRegionTransform, Y as CardListLeadDate, Yi as augmentManifest, Yr as getAnchorClasses, Z as selectCardListPresentation, Zn as uiTransforms, Zr as lookLeadSlotTransform, _n as formatBookingSchedulePresentation, _r as heroTitleSizeOptions, _t as eventCalendarListGroupingDecision, aa as readStoredMode, an as resolveEventTimeZone, ao as formatDateTimeRange, bn as formatEventRemainingPlaces, bt as resolveEventCalendarReadPlan, ca as resolvePublishedLook, cr as listItemPresentation, do as getLocalScheduleDate, ei as asPartialObject, et as ImagePresets, fo as parseBookingLocalDate, ft as resolveEventSelection, gn as resolveRuntimeEventDestination, go as toUtcIsoDateTimeString, hn as isToday, ia as arrangementManifestFromVariants, io as formatDateRange, ja as parseCanonicalRuntimeBackground, ka as applyLookPhotoTreatment, la as deriveSiteStyleBlockPolicy, ln as formatDateKey, lo as compareLocalScheduleDates, mo as resolveBookingBusinessTimeZone, mr as standardAspectRatioOptions, nn as formatEventTimeRange, nt as computeMediaTransformStyle, oa as resolveEffectiveArrangement, pi as ClockIcon, qn as chromeLogoTransforms, qr as standardImageShapeOptions, qt as eventDateOptions, ra as arrangementSlotNames, rn as formatTime, ro as formatDate, sa as resolveModeArrangement, t as getBlockDefinition, ta as arrangementAppearancePresets, ti as createTransformRegistry, ur as listLookSlot, vt as eventCalendarListLayoutCompatibleDisplayModeValues, wa as sectionShapeFromContent, wn as isEventFull, xn as formatTotalCapacity, yn as canJoinEventWaitlistOnAnyMode, yt as eventCalendarListLayoutOptions, zn as contentTransforms, zt as buildEventListWeek } from "./registry-TFPJdGQi.mjs";
3
- import { D as resolveConcreteColorHex, n as parseSurfaceTree } from "./accessibleSurfaces-CuN8U_iU.mjs";
4
- import { o as runtimeMediaSchema } from "./media-DnlczCMA.mjs";
5
- import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
6
- import { $ as asSiteStyleId, G as themeV2CompilerOwnedFieldNames, W as stripStaleTransitionStyleGroup, Y as asDesignBlockId, Z as asLayoutVariantKey, dt as makeBoundaryId, et as assertNever$1 } from "./schema-C2PqHrMo.mjs";
7
- import { a as isObjectRecord } from "./richTextSchema-Euhuj-7V.mjs";
1
+ import { Et as parseThemeColorToken, G as oklabToOklch, K as oklabToSrgb, L as contrastRatio, N as getTextColorForBackground, W as hexToRgb, X as srgbToOklab, Y as rgbToHex, q as oklchToHexGamut } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
+ import { $r as lookLeadSlotTransform, Bt as weekColumnDays, Cn as isEventFull, Co as toUtcIsoDateTimeString, Da as cardListFamilyBlocks, F as combinedLookSchema, G as resolveCalendarReadProfile, Gn as mediaTransforms, Gr as resolveSectionSurfaceForeground, Gt as eventCalendarWeekStart, Hr as parseBackgroundContent, J as CardListContentPart, Ji as resolveEffectiveArrangement, Jn as layoutTransforms, Ki as arrangementManifestFromVariants, Kn as headerRuntimeTransforms, Kr as resolveSurfaceForegroundStyles, Kt as eventDateOptions, Mi as augmentManifest, Ni as isObjectRecord, No as arrangementSlotNames, Oa as cardListKnobBlocks, Pt as ThemedButtonLink, Q as MediaNodeServer, Qn as formattingTransforms, Qr as lookCarouselRegionTransform, Qt as formatEventDateParts, Ri as lookPresentationOnPalette, Rr as boxStylesTransforms, Rt as buildEventListWeek, Sa as assertNever, Sn as getEventAvailabilityStatus, Un as readRuntimeNow, Ur as parseBackgroundOverlay, Ut as formatEventPriceDisplay, Vi as heroPhotoPaintsGround, Vt as formatEventPrice, Wi as arrangementAppearancePresets, Wr as parseRuntimeBackgroundContent, X as resolveCardListSchedule, Xa as orderedLiveRunSessions, Xi as resolvePublishedLook, Xn as resolveHeroTitleLength, Xr as BACKGROUND_POSITION_PRESET_VALUES, Y as CardListLeadDate, Yi as resolveModeArrangement, Yr as standardImageShapeOptions, Z as selectCardListPresentation, Zi as deriveSiteStyleBlockPolicy, Zn as uiTransforms, Zr as getAnchorClasses, Zt as formatEventCompactDateRail, _a as resolveSectionBackground, _t as eventCalendarListGroupingDecision, ba as themeV2CompilerOwnedFieldNames, bn as formatTotalCapacity, ca as sectionShapeForGround, cn as formatDateKey, da as boundaryRuntimeMetricsForDecorativeTransition, do as formatDateRange, ei as lookQuoteLimitTransform, er as eventCalendarListLayoutCompatibleDisplayModeValues, et as ImagePresets, fo as formatDateTimeRange, fr as listLookSlot, ft as resolveEventSelection, ga as parseCanonicalRuntimeBackground, gn as formatBookingSchedulePresentation, go as compareLocalScheduleDates, gr as standardAspectRatioOptions, ha as deriveSectionGround, hi as ClockIcon, hn as resolveRuntimeEventDestination, in as resolveEventTimeZone, la as sectionShapeFromContent, ma as applyLookPhotoTreatment, mn as isToday, ni as asPartialObject, nn as formatTime, nt as computeMediaTransformStyle, qi as readStoredMode, qn as chromeLogoTransforms, qr as resolveBackgroundColorValue, qt as eventLocalDateKey, ri as createTransformRegistry, t as getBlockDefinition, ti as lookSkinSlotTransform, tn as formatEventTimeRange, ua as sectionShapeHook, uo as formatDate, ur as listItemPresentation, va as sectionSurfaceBase, vn as canJoinEventWaitlistOnAnyMode, vo as getLocalScheduleDate, vt as eventCalendarListLayoutOptions, xa as resolveEffectiveKnobs, xo as resolveBookingBusinessTimeZone, ya as stripStaleTransitionStyleGroup, yn as formatEventRemainingPlaces, yo as parseBookingLocalDate, yr as heroTitleSizeOptions, yt as resolveEventCalendarReadPlan, zi as resolveLookSurfacePresentation, zn as contentTransforms } from "./registry-Bh0Y25zH.mjs";
3
+ import { B as resolveConcreteColorHex, E as resolveOnColorForThemeToken, O as resolveTokenOrCssColorValue, T as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-108nxyGc.mjs";
4
+ import { I as asLayoutVariantKey, P as asDesignBlockId, R as asSiteStyleId, z as makeBoundaryId } from "./headerVariant-BwR9NV4b.mjs";
5
+ import { o as runtimeMediaSchema } from "./media-Brn9FW5s.mjs";
6
+ import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
7
+ import { a as isRecord$1 } from "./richTextSchema-DQ2NBP0n.mjs";
8
8
  import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
9
9
  import { z } from "zod";
10
10
  import React from "react";
@@ -146,6 +146,45 @@ function cloneThemeTokens(source) {
146
146
  return JSON.parse(JSON.stringify(source));
147
147
  }
148
148
  //#endregion
149
+ //#region ../site-contracts/src/identity/gradientPresets.ts
150
+ const gradientPresetIdValues = [
151
+ "primary-secondary",
152
+ "primary-accent",
153
+ "secondary-accent",
154
+ "primary-light-dark",
155
+ "primary-dark-light",
156
+ "secondary-light-dark",
157
+ "accent-light-dark",
158
+ "background-surface",
159
+ "neutral-fade",
160
+ "primary-glow",
161
+ "accent-glow",
162
+ "primary-secondary-accent"
163
+ ];
164
+ const gradientPresetIdSet = new Set(gradientPresetIdValues);
165
+ function parseGradientPresetId(value) {
166
+ if (typeof value !== "string") return null;
167
+ const normalized = value.trim();
168
+ return gradientPresetIdSet.has(normalized) ? normalized : null;
169
+ }
170
+ //#endregion
171
+ //#region ../core/src/duration.ts
172
+ const UNIT_LABELS_SINGULAR = {
173
+ minutes: "minute",
174
+ hours: "hour",
175
+ days: "day",
176
+ weeks: "week"
177
+ };
178
+ const UNIT_LABELS_PLURAL = {
179
+ minutes: "minutes",
180
+ hours: "hours",
181
+ days: "days",
182
+ weeks: "weeks"
183
+ };
184
+ function formatDurationUnitLabel(unit, count) {
185
+ return count === 1 ? UNIT_LABELS_SINGULAR[unit] : UNIT_LABELS_PLURAL[unit];
186
+ }
187
+ //#endregion
149
188
  //#region ../theme-core/src/surfaces/mapDrawingTokens.ts
150
189
  /**
151
190
  * The one map token contract (issue 1611). Drawings carry semantic classes only;
@@ -475,23 +514,6 @@ function mapDrawingStyle(input) {
475
514
  };
476
515
  }
477
516
  //#endregion
478
- //#region ../core/src/duration.ts
479
- const UNIT_LABELS_SINGULAR = {
480
- minutes: "minute",
481
- hours: "hour",
482
- days: "day",
483
- weeks: "week"
484
- };
485
- const UNIT_LABELS_PLURAL = {
486
- minutes: "minutes",
487
- hours: "hours",
488
- days: "days",
489
- weeks: "weeks"
490
- };
491
- function formatDurationUnitLabel(unit, count) {
492
- return count === 1 ? UNIT_LABELS_SINGULAR[unit] : UNIT_LABELS_PLURAL[unit];
493
- }
494
- //#endregion
495
517
  //#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
496
518
  const backgroundToken = requireThemeColorToken("background");
497
519
  /**
@@ -532,7 +554,7 @@ function boundaryEndpointForSectionContent(content) {
532
554
  kind: "unpainted",
533
555
  reason: "media"
534
556
  };
535
- default: return assertNever$1(effective, "Unhandled section background type");
557
+ default: return assertNever(effective, "Unhandled section background type");
536
558
  }
537
559
  }
538
560
  /**
@@ -543,10 +565,15 @@ function boundaryEndpointForSectionContent(content) {
543
565
  function sectionFactsForContent(content) {
544
566
  return {
545
567
  endpoint: boundaryEndpointForSectionContent(content),
568
+ ...isPhotoBackground(content) ? { photo: true } : {},
546
569
  frame: frameKindForContent(content),
547
570
  shape: sectionShapeFromContent(content)
548
571
  };
549
572
  }
573
+ function isPhotoBackground(content) {
574
+ const source = parseCanonicalRuntimeBackground(content);
575
+ return source.kind !== "none" && source.background.type === "image" && source.background.image != null;
576
+ }
550
577
  function frameKindForContent(content) {
551
578
  const frameStyles = content._frameStyles;
552
579
  const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
@@ -571,12 +598,17 @@ function shapeNotShownReason(previous, next) {
571
598
  * Decides whether and how a join draws. The frame and shape rules win before
572
599
  * paint is considered; two unpainted sides show nothing.
573
600
  */
574
- function composeBoundary(previous, next) {
601
+ function composeBoundary(previous, next, treatment) {
575
602
  const frameReason = frameNotShownReason(previous.frame, next.frame) ?? shapeNotShownReason(previous.shape, next.shape);
576
603
  if (frameReason) return {
577
604
  kind: "not-shown",
578
605
  reason: frameReason
579
606
  };
607
+ const paintReason = paintNotShownReason(previous, next, treatment);
608
+ if (paintReason) return {
609
+ kind: "not-shown",
610
+ reason: paintReason
611
+ };
580
612
  const from = previous.endpoint;
581
613
  const to = next.endpoint;
582
614
  if (from.kind === "paint") return {
@@ -601,6 +633,11 @@ function composeBoundary(previous, next) {
601
633
  reason: "both-unpainted"
602
634
  };
603
635
  }
636
+ /** Treatment-specific placement and indistinguishable paint are composition decisions. */
637
+ function paintNotShownReason(previous, next, treatment) {
638
+ if (treatment === "wave-edge-echo" && (!previous.photo || next.endpoint.kind !== "paint")) return "photo-required";
639
+ return previous.endpoint.kind === "paint" && next.endpoint.kind === "paint" && previous.endpoint.token === next.endpoint.token ? "same-paint" : null;
640
+ }
604
641
  /**
605
642
  * Placement, reserves and paint for a shown boundary, derived from the
606
643
  * composition and the catalogue's metrics for the treatment.
@@ -641,7 +678,7 @@ function boundaryLayout(intent, composition) {
641
678
  shape: composition.from
642
679
  }
643
680
  };
644
- default: return assertNever$1(composition, "Unhandled boundary composition");
681
+ default: return assertNever(composition, "Unhandled boundary composition");
645
682
  }
646
683
  }
647
684
  function requireThemeColorToken(value) {
@@ -649,13 +686,13 @@ function requireThemeColorToken(value) {
649
686
  if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
650
687
  return token;
651
688
  }
689
+ //#endregion
690
+ //#region ../theme-core/src/gradients/presets.ts
652
691
  /**
653
- * Curated library of gradient presets.
654
- * All gradients use theme color tokens, so they adapt to the site's palette.
692
+ * Curated gradient presets based on theme palette
655
693
  */
656
- const GRADIENT_PRESETS = [
657
- {
658
- id: "primary-secondary",
694
+ const gradientPresetData = {
695
+ "primary-secondary": {
659
696
  name: "Primary to Secondary",
660
697
  description: "Blend your primary and secondary brand colors",
661
698
  type: "linear",
@@ -668,8 +705,7 @@ const GRADIENT_PRESETS = [
668
705
  position: 100
669
706
  }]
670
707
  },
671
- {
672
- id: "primary-accent",
708
+ "primary-accent": {
673
709
  name: "Primary to Accent",
674
710
  description: "Energetic gradient from primary to accent",
675
711
  type: "linear",
@@ -682,8 +718,7 @@ const GRADIENT_PRESETS = [
682
718
  position: 100
683
719
  }]
684
720
  },
685
- {
686
- id: "secondary-accent",
721
+ "secondary-accent": {
687
722
  name: "Secondary to Accent",
688
723
  description: "Vibrant secondary to accent blend",
689
724
  type: "linear",
@@ -696,8 +731,7 @@ const GRADIENT_PRESETS = [
696
731
  position: 100
697
732
  }]
698
733
  },
699
- {
700
- id: "primary-light-dark",
734
+ "primary-light-dark": {
701
735
  name: "Primary Light to Dark",
702
736
  description: "Subtle primary color fade",
703
737
  type: "linear",
@@ -710,8 +744,7 @@ const GRADIENT_PRESETS = [
710
744
  position: 100
711
745
  }]
712
746
  },
713
- {
714
- id: "primary-dark-light",
747
+ "primary-dark-light": {
715
748
  name: "Primary Dark to Light",
716
749
  description: "Reverse primary fade",
717
750
  type: "linear",
@@ -724,8 +757,7 @@ const GRADIENT_PRESETS = [
724
757
  position: 100
725
758
  }]
726
759
  },
727
- {
728
- id: "secondary-light-dark",
760
+ "secondary-light-dark": {
729
761
  name: "Secondary Light to Dark",
730
762
  description: "Subtle secondary color fade",
731
763
  type: "linear",
@@ -738,8 +770,7 @@ const GRADIENT_PRESETS = [
738
770
  position: 100
739
771
  }]
740
772
  },
741
- {
742
- id: "accent-light-dark",
773
+ "accent-light-dark": {
743
774
  name: "Accent Light to Dark",
744
775
  description: "Accent color depth fade",
745
776
  type: "linear",
@@ -752,8 +783,7 @@ const GRADIENT_PRESETS = [
752
783
  position: 100
753
784
  }]
754
785
  },
755
- {
756
- id: "background-surface",
786
+ "background-surface": {
757
787
  name: "Background to Surface",
758
788
  description: "Subtle depth using base colors",
759
789
  type: "linear",
@@ -766,8 +796,7 @@ const GRADIENT_PRESETS = [
766
796
  position: 100
767
797
  }]
768
798
  },
769
- {
770
- id: "neutral-fade",
799
+ "neutral-fade": {
771
800
  name: "Neutral Gradient",
772
801
  description: "Elegant neutral color fade",
773
802
  type: "linear",
@@ -780,8 +809,7 @@ const GRADIENT_PRESETS = [
780
809
  position: 100
781
810
  }]
782
811
  },
783
- {
784
- id: "primary-glow",
812
+ "primary-glow": {
785
813
  name: "Primary glow",
786
814
  description: "A soft top-centred glow using your primary palette",
787
815
  type: "radial",
@@ -801,8 +829,7 @@ const GRADIENT_PRESETS = [
801
829
  supportingColor: "onPrimary900"
802
830
  }
803
831
  },
804
- {
805
- id: "accent-glow",
832
+ "accent-glow": {
806
833
  name: "Accent glow",
807
834
  description: "A soft top-centred glow using your accent palette",
808
835
  type: "radial",
@@ -822,8 +849,7 @@ const GRADIENT_PRESETS = [
822
849
  supportingColor: "onAccent900"
823
850
  }
824
851
  },
825
- {
826
- id: "primary-secondary-accent",
852
+ "primary-secondary-accent": {
827
853
  name: "Brand Trio",
828
854
  description: "All three brand colors in harmony",
829
855
  type: "linear",
@@ -843,20 +869,17 @@ const GRADIENT_PRESETS = [
843
869
  }
844
870
  ]
845
871
  }
846
- ].map((preset) => ({
847
- ...preset,
848
- id: preset.id,
849
- stops: preset.stops
872
+ };
873
+ const presetData = (id) => gradientPresetData[id];
874
+ /**
875
+ * Curated library of gradient presets.
876
+ * All gradients use theme color tokens, so they adapt to the site's palette.
877
+ */
878
+ const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
879
+ id,
880
+ ...presetData(id)
850
881
  }));
851
- const GRADIENT_PRESET_IDS = GRADIENT_PRESETS.map((preset) => preset.id);
852
- const gradientPresetIdSet = new Set(GRADIENT_PRESET_IDS);
853
882
  const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
854
- function parseGradientPresetId(value) {
855
- if (typeof value !== "string") return null;
856
- const normalized = value.trim();
857
- if (!gradientPresetIdSet.has(normalized)) return null;
858
- return normalized;
859
- }
860
883
  function getGradientPreset(id) {
861
884
  return gradientPresetById[id];
862
885
  }
@@ -894,6 +917,77 @@ function readRecord(value) {
894
917
  return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
895
918
  }
896
919
  //#endregion
920
+ //#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
921
+ /**
922
+ * The one owner of the facts `whenMissing` rules read from block content.
923
+ * Content facts also become `data-has-*` hooks; setting facts never do.
924
+ */
925
+ function arrangementContentFacts(content) {
926
+ const photoCount = arrangementPhotoCount(content);
927
+ const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
928
+ return {
929
+ photoCount,
930
+ facts: {
931
+ content: {
932
+ photo: photoCount > 0,
933
+ facts: Array.isArray(content.facts) && content.facts.length > 0,
934
+ featured,
935
+ outcome: typeof content.outcome === "string" && content.outcome.length > 0,
936
+ figure: typeof content.figure === "string" && content.figure.trim().length > 0,
937
+ entrance: isRecord$1(content.entrancePhoto)
938
+ },
939
+ settings: { "listed-by-week": content.listBy === "week" }
940
+ }
941
+ };
942
+ }
943
+ /** The content stage owns media presence for every arrangement consumer. */
944
+ function arrangementPhotoCount(content) {
945
+ if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$1(card) && isRecord$1(card.media)).length;
946
+ if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$1(member) && isRecord$1(member.photo)).length;
947
+ if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$1(item) && isRecord$1(item.image)).length;
948
+ if (isRecord$1(content.media) || isRecord$1(content.entrancePhoto)) return 1;
949
+ return storedSectionPhoto(content) === null ? 0 : 1;
950
+ }
951
+ /** Both rendering and join matching ask the publication-fallback owner. */
952
+ function resolveArrangementContentLook(runtime, mode, content, audience) {
953
+ const selected = runtime.byMode[mode ?? "default"];
954
+ if (!selected) return null;
955
+ const published = resolvePublishedLook({
956
+ look: selected.look,
957
+ facts: arrangementContentFacts(content).facts,
958
+ audience,
959
+ catalogue: runtime.available.map((entry) => entry.look)
960
+ });
961
+ return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
962
+ }
963
+ /** Section paint is decided here, after the effective Look, at its admitted render position. */
964
+ function resolveRuntimeSection(input) {
965
+ const rhythm = input.runtime && input.look ? input.runtime.rhythm[input.position % input.runtime.rhythm.length] ?? null : void 0;
966
+ const photo = input.runtime && input.look && input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
967
+ const background = resolveSectionBackground(parseCanonicalRuntimeBackground(input.content), null, rhythm, photo);
968
+ return {
969
+ background,
970
+ ground: deriveSectionGround(background, input.palette),
971
+ paint: sectionPaint(background),
972
+ styleBackground: sectionGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm))
973
+ };
974
+ }
975
+ function sectionPaint(resolved) {
976
+ if (resolved.kind === "base" || resolved.kind === "content-media") return "paint";
977
+ const background = resolved.background;
978
+ if (background.type === "color") return "paint";
979
+ return background.type === "image" && background.image != null ? "photo" : "other";
980
+ }
981
+ function sectionGroundToken(resolved) {
982
+ if (resolved.kind === "base") return "background";
983
+ switch (resolved.background.type) {
984
+ case "image":
985
+ case "video": return "media";
986
+ case "color": return resolved.background.color ?? "background";
987
+ case "gradient": return "gradient";
988
+ }
989
+ }
990
+ //#endregion
897
991
  //#region ../blocks/src/system/data/selectBlockContent.ts
898
992
  /** Canonical admitted content: legacy publishedContent never selects a version. */
899
993
  function selectBlockContent(block, stage = "published") {
@@ -930,7 +1024,7 @@ function closedEventBookingLabel(reason) {
930
1024
  case "parent_inconsistent":
931
1025
  case "already_started":
932
1026
  case "enrollment_closed": return "Registration closed";
933
- default: return assertNever(reason);
1027
+ default: return assertNever$1(reason);
934
1028
  }
935
1029
  }
936
1030
  function resolveEventHref(event) {
@@ -1017,7 +1111,7 @@ function seriesBookingClosed(event) {
1017
1111
  case "parent_archived":
1018
1112
  case "parent_inconsistent":
1019
1113
  case "enrollment_closed": return true;
1020
- default: return assertNever(event.bookingAvailability.reason);
1114
+ default: return assertNever$1(event.bookingAvailability.reason);
1021
1115
  }
1022
1116
  }
1023
1117
  function occurrenceCardAvailability(event) {
@@ -1136,6 +1230,37 @@ function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
1136
1230
  });
1137
1231
  }
1138
1232
  //#endregion
1233
+ //#region ../blocks/src/system/runtime/nodes/events/shared/eventCategoryBadge.ts
1234
+ /** The category's badge, when the event has a category: its name in its own colour, with readable text. */
1235
+ function eventCategoryBadge(category) {
1236
+ return category ? {
1237
+ label: category.name,
1238
+ style: categoryBadgeStyle(category.color ?? null)
1239
+ } : null;
1240
+ }
1241
+ function categoryBadgeStyle(background) {
1242
+ const normalized = background?.trim() ?? "";
1243
+ if (!normalized) return {
1244
+ backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
1245
+ color: "rgb(var(--tb-onAccent, 255 255 255))"
1246
+ };
1247
+ if (isCssColorLiteral(normalized)) return {
1248
+ backgroundColor: normalized,
1249
+ color: readableTextColor(normalized)
1250
+ };
1251
+ return {
1252
+ backgroundColor: resolveTokenOrCssColorValue(normalized),
1253
+ color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
1254
+ };
1255
+ }
1256
+ function readableTextColor(background) {
1257
+ try {
1258
+ return getTextColorForBackground(background);
1259
+ } catch {
1260
+ return "rgb(var(--tb-onAccent, 255 255 255))";
1261
+ }
1262
+ }
1263
+ //#endregion
1139
1264
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventItem.tsx
1140
1265
  /** Arrangement content choices are data, ready for other live offering lists to reuse. */
1141
1266
  const eventItemParts = {
@@ -1164,6 +1289,7 @@ const eventItemParts = {
1164
1289
  ],
1165
1290
  grid: [
1166
1291
  "image",
1292
+ "chips",
1167
1293
  "date",
1168
1294
  "title",
1169
1295
  "meta",
@@ -1178,6 +1304,15 @@ const eventItemParts = {
1178
1304
  "places",
1179
1305
  "action"
1180
1306
  ],
1307
+ "timetable-rows": [
1308
+ "date",
1309
+ "title",
1310
+ "meta",
1311
+ "description",
1312
+ "time",
1313
+ "places",
1314
+ "action"
1315
+ ],
1181
1316
  "month-day": [
1182
1317
  "title",
1183
1318
  "meta",
@@ -1185,6 +1320,10 @@ const eventItemParts = {
1185
1320
  "action"
1186
1321
  ]
1187
1322
  };
1323
+ /** Rows with a rail: the venue and price beside the title, the time and the button together at the end. */
1324
+ function hasActionRail(arrangement) {
1325
+ return arrangement === "compact" || arrangement === "timetable-rows";
1326
+ }
1188
1327
  function eventItemFacts(props) {
1189
1328
  const options = eventDateOptions(props.event);
1190
1329
  const availability = getEventAvailabilityStatus(props.event);
@@ -1199,20 +1338,20 @@ function eventItemFacts(props) {
1199
1338
  time,
1200
1339
  price
1201
1340
  }),
1202
- venueIcon: props.arrangement === "compact" && props.showVenue !== false && Boolean(props.event.venue),
1341
+ venueIcon: hasActionRail(props.arrangement) && props.showVenue !== false && Boolean(props.event.venue),
1203
1342
  places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
1204
1343
  availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
1205
1344
  description: props.event.presentation?.summary ?? props.event.description
1206
1345
  };
1207
1346
  }
1208
- /** Compact rows keep pricing in the details rail and time in the action rail. */
1347
+ /** Rows with a rail keep pricing in the details and time in the action rail. */
1209
1348
  function eventItemMeta(props, formatted) {
1210
1349
  const parts = props.parts ?? eventItemParts[props.arrangement];
1211
1350
  const venue = props.showVenue !== false ? props.event.venue?.name : null;
1212
1351
  const teacher = formatEventTeacherLine(props.event);
1213
1352
  const time = parts.includes("time") ? null : formatted.time;
1214
- const price = props.arrangement === "compact" && !parts.includes("price") ? formatted.price : null;
1215
- return (props.arrangement === "compact" ? [
1353
+ const price = hasActionRail(props.arrangement) && !parts.includes("price") ? formatted.price : null;
1354
+ return (hasActionRail(props.arrangement) ? [
1216
1355
  venue,
1217
1356
  teacher,
1218
1357
  price,
@@ -1237,11 +1376,12 @@ function renderCalendarItem(props) {
1237
1376
  const facts = eventItemFacts(props);
1238
1377
  const Tag = props.as ?? eventItemTag(props.arrangement);
1239
1378
  const root = props.arrangement === "grid" ? "item" : props.continued ? "row-continued" : "row";
1379
+ const chipsOnPhoto = parts.includes("image") && Boolean(props.event.presentation?.image);
1240
1380
  const body = (part) => [
1241
1381
  "title",
1242
1382
  "meta",
1243
1383
  "description"
1244
- ].includes(part) || part === "action" && props.arrangement === "grid";
1384
+ ].includes(part) || part === "chips" && !chipsOnPhoto || part === "action" && props.arrangement === "grid";
1245
1385
  const renderPart = (part) => /* @__PURE__ */ jsx(React.Fragment, { children: renderEventItemContentPart({
1246
1386
  part,
1247
1387
  props,
@@ -1251,7 +1391,7 @@ function renderCalendarItem(props) {
1251
1391
  ...listLookSlot(props, root),
1252
1392
  "data-availability": facts.availability,
1253
1393
  children: [
1254
- parts.filter((part) => part === "image" || part === "date").map(renderPart),
1394
+ parts.filter((part) => part === "image" || part === "chips" && chipsOnPhoto || part === "date").map(renderPart),
1255
1395
  /* @__PURE__ */ jsx("div", {
1256
1396
  ...listLookSlot(props, props.arrangement === "grid" ? "item-body" : "what"),
1257
1397
  children: parts.filter(body).map(renderPart)
@@ -1267,17 +1407,18 @@ function renderCalendarItem(props) {
1267
1407
  }
1268
1408
  function renderCalendarTrailingParts(props, parts, renderPart) {
1269
1409
  const content = parts.map(renderPart);
1270
- return props.arrangement === "compact" && parts.length > 0 ? /* @__PURE__ */ jsx("div", {
1410
+ return hasActionRail(props.arrangement) && parts.length > 0 ? /* @__PURE__ */ jsx("div", {
1271
1411
  ...listLookSlot(props, "item-actions"),
1272
1412
  children: content
1273
1413
  }) : content;
1274
1414
  }
1275
1415
  function eventItemTag(arrangement) {
1276
- return arrangement === "ledger" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
1416
+ return arrangement === "ledger" || arrangement === "timetable-rows" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
1277
1417
  }
1278
1418
  function renderEventItemContentPart({ part, props, facts }) {
1279
1419
  switch (part) {
1280
1420
  case "image": return renderEventItemImage(props, facts.link);
1421
+ case "chips": return renderEventItemCategory(props);
1281
1422
  case "date": return /* @__PURE__ */ jsxs("time", {
1282
1423
  ...listLookSlot(props, "date"),
1283
1424
  dateTime: props.event.startsAt,
@@ -1306,7 +1447,7 @@ function renderEventItemContentPart({ part, props, facts }) {
1306
1447
  });
1307
1448
  case "time": return /* @__PURE__ */ jsxs("p", {
1308
1449
  ...listLookSlot(props, "time"),
1309
- children: [props.arrangement === "compact" ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
1450
+ children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
1310
1451
  });
1311
1452
  case "places": return facts.places ? /* @__PURE__ */ jsx("p", {
1312
1453
  ...listLookSlot(props, "places"),
@@ -1363,6 +1504,18 @@ function renderEventItemImage(props, link) {
1363
1504
  presentation: props
1364
1505
  });
1365
1506
  }
1507
+ /** The same badge the older event cards show: the category's name in its own colour. */
1508
+ function renderEventItemCategory(props) {
1509
+ const badge = eventCategoryBadge(props.event.eventCategory);
1510
+ return badge ? /* @__PURE__ */ jsx("div", {
1511
+ ...listLookSlot(props, "chips"),
1512
+ children: /* @__PURE__ */ jsx("span", {
1513
+ ...listLookSlot(props, "chip"),
1514
+ style: badge.style,
1515
+ children: badge.label
1516
+ })
1517
+ }) : null;
1518
+ }
1366
1519
  function renderEventItemAction(props) {
1367
1520
  const cta = resolveEventCta(props.event, props.buttonText);
1368
1521
  const slot = props.arrangement === "grid" ? "item-actions" : "action";
@@ -1409,6 +1562,15 @@ const bodyParts = [
1409
1562
  "availability",
1410
1563
  "action"
1411
1564
  ];
1565
+ const datedRowParts = [
1566
+ "date-stamp",
1567
+ "title",
1568
+ "schedule",
1569
+ "dates",
1570
+ "facts",
1571
+ "availability",
1572
+ "action"
1573
+ ];
1412
1574
  function renderCardItem({ item, presentation, index, Title, actionNode, feedback }) {
1413
1575
  const layout = cardItemLayout(presentation, index);
1414
1576
  const body = cardItemBody(item, presentation);
@@ -1447,7 +1609,7 @@ function renderCardItem({ item, presentation, index, Title, actionNode, feedback
1447
1609
  }
1448
1610
  function cardItemLayout(presentation, index) {
1449
1611
  const arrangement = presentation.cardArrangement ?? "cards";
1450
- if (arrangement === "index" || arrangement === "sequence") return {
1612
+ if (arrangement === "index" || arrangement === "sequence" || arrangement === "type-columns") return {
1451
1613
  kind: "row",
1452
1614
  tag: "li",
1453
1615
  slot: "item"
@@ -1461,7 +1623,7 @@ function cardItemLayout(presentation, index) {
1461
1623
  function cardItemBody(item, presentation) {
1462
1624
  const schedule = resolveCardListSchedule(item, presentation.datesMode);
1463
1625
  const arrangement = presentation.cardArrangement ?? "cards";
1464
- const parts = (presentation.bodyParts ?? (arrangement === "slides" || arrangement === "track" ? carouselBodyParts : bodyParts)).filter((part) => part !== "schedule" && part !== "dates" || part === schedule.part);
1626
+ const parts = (presentation.bodyParts ?? (arrangement === "slides" || arrangement === "track" ? carouselBodyParts : arrangement === "type-columns" ? datedRowParts : bodyParts)).filter((part) => part !== "schedule" && part !== "dates" || part === schedule.part);
1465
1627
  return {
1466
1628
  item: schedule.item,
1467
1629
  parts
@@ -1513,7 +1675,7 @@ function CardListCollection({ Carousel, presentation, slides, photoCount = 0, la
1513
1675
  indicator: presentation.cardArrangement === "slides" ? "dots" : "none",
1514
1676
  slides
1515
1677
  });
1516
- return /* @__PURE__ */ jsx(presentation.cardArrangement === "index" || presentation.cardArrangement === "sequence" ? "ol" : "div", {
1678
+ return /* @__PURE__ */ jsx(presentation.cardArrangement === "index" || presentation.cardArrangement === "sequence" || presentation.cardArrangement === "type-columns" ? "ol" : "div", {
1517
1679
  ...listLookSlot(presentation, "items"),
1518
1680
  "data-card-list": true,
1519
1681
  "data-has-photo": String(photoCount > 0),
@@ -1695,15 +1857,18 @@ function EventListBody({ display, renderEventCard, footer }) {
1695
1857
  }, eventLocalDateKey(first));
1696
1858
  })
1697
1859
  });
1698
- if (display.listLayout === "ledger") return /* @__PURE__ */ jsx("ol", {
1699
- ...listLookSlot(display, "list"),
1700
- children: display.events.map((event, index, events) => /* @__PURE__ */ jsx(EventItem, {
1701
- ...listItemPresentation(display, index, events.length),
1702
- event,
1703
- arrangement: "ledger",
1704
- continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
1705
- }, event.occurrenceId || event.id))
1706
- });
1860
+ if (display.listLayout === "ledger" || display.listLayout === "timetable-rows") {
1861
+ const arrangement = display.listLayout;
1862
+ return /* @__PURE__ */ jsx("ol", {
1863
+ ...listLookSlot(display, "list"),
1864
+ children: display.events.map((event, index, events) => /* @__PURE__ */ jsx(EventItem, {
1865
+ ...listItemPresentation(display, index, events.length),
1866
+ event,
1867
+ arrangement,
1868
+ continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
1869
+ }, event.occurrenceId || event.id))
1870
+ });
1871
+ }
1707
1872
  if (display.listLayout === "compact") return /* @__PURE__ */ jsxs("aside", {
1708
1873
  ...listLookSlot(display, "panel"),
1709
1874
  className: display.containerClass,
@@ -1766,10 +1931,11 @@ function hasArrangementPanel(display) {
1766
1931
  return display.state === "ready" && display.lookSlots !== void 0 && display.listLayout === "compact";
1767
1932
  }
1768
1933
  /** Nearest slot parents in EventListBody and WeekColumns. */
1769
- function eventListSlotParents(arrangement) {
1934
+ /** `root` is the declared slot the listing renders inside (a Look may paint the block's layout), or null. */
1935
+ function eventListSlotParents(arrangement, root = null) {
1770
1936
  return {
1771
- list: arrangement === "compact" ? "panel" : null,
1772
- panel: null,
1937
+ list: arrangement === "compact" ? "panel" : root,
1938
+ panel: root,
1773
1939
  group: "list",
1774
1940
  "group-label": "group",
1775
1941
  "group-date": "group-label",
@@ -1986,7 +2152,7 @@ function eventCardListContent(event, context, buttonText) {
1986
2152
  newTabHint: external,
1987
2153
  ...offeringSchedule(event, context.now)
1988
2154
  };
1989
- default: return assertNever(context);
2155
+ default: return assertNever$1(context);
1990
2156
  }
1991
2157
  }
1992
2158
  function cardProjectionBase(event, buttonText, context) {
@@ -2081,6 +2247,10 @@ function offeringFacts(event, places, offering) {
2081
2247
  label: "Length",
2082
2248
  value: formatEventDuration(event, "readable")
2083
2249
  }] : [],
2250
+ ...offering && event.venue ? [{
2251
+ label: "Venue",
2252
+ value: event.venue.name
2253
+ }] : [],
2084
2254
  ...places ? [{
2085
2255
  label: "Places",
2086
2256
  value: places,
@@ -2236,7 +2406,7 @@ function arrangementSlotParents(input) {
2236
2406
  const { target, arrangement } = input;
2237
2407
  if (target === "events") return {
2238
2408
  ...derived,
2239
- ...eventListSlotParents(arrangement),
2409
+ ...eventListSlotParents(arrangement, "layout" in derived ? "layout" : null),
2240
2410
  ...eventItemSlotParents(arrangement),
2241
2411
  ...arrangement === "month-grid" || arrangement === "month-day" ? monthSlotParents(arrangement) : {}
2242
2412
  };
@@ -2454,6 +2624,10 @@ const systemCustomizeFacetDefinitions = [
2454
2624
  label: "All"
2455
2625
  }
2456
2626
  ], "3", true),
2627
+ {
2628
+ ...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
2629
+ description: "Moves to the next quote every few seconds, and stops while someone's reading."
2630
+ },
2457
2631
  fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
2458
2632
  {
2459
2633
  ...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
@@ -2463,6 +2637,13 @@ const systemCustomizeFacetDefinitions = [
2463
2637
  "block.form"
2464
2638
  ]
2465
2639
  },
2640
+ fixedKnob("block.hero", "photoTint", "Photo tint", [{
2641
+ value: "dark",
2642
+ label: "Dark"
2643
+ }, {
2644
+ value: "brand",
2645
+ label: "Brand colour"
2646
+ }], "dark"),
2466
2647
  fixedKnob("block.hero", "candleGlow", "Candle glow", onOff, "true", false, true),
2467
2648
  fixedKnob("block.hero", "columnGuides", "Column guides", onOff, "true", false, true),
2468
2649
  fixedKnob("block.hero", "titleSize", "Headline size", heroTitleSizeOptions, "auto", true),
@@ -2523,6 +2704,13 @@ const systemCustomizeFacetDefinitions = [
2523
2704
  ], "icons"),
2524
2705
  blockKinds: cardListFamilyBlocks
2525
2706
  },
2707
+ fixedKnob("block.body-text", "alignment", "Text alignment", [{
2708
+ value: "left",
2709
+ label: "Left"
2710
+ }, {
2711
+ value: "center",
2712
+ label: "Centre"
2713
+ }], "left"),
2526
2714
  {
2527
2715
  ...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
2528
2716
  description: "Show how many places are left on each event"
@@ -3255,7 +3443,7 @@ function resolveLinkedContentEditSupport(contentType) {
3255
3443
  kind: "unsupported-domain-backed",
3256
3444
  reason: metadata.reason
3257
3445
  };
3258
- default: return assertNever(metadata);
3446
+ default: return assertNever$1(metadata);
3259
3447
  }
3260
3448
  }
3261
3449
  function contentTypeKeyToLabel(key) {
@@ -3481,7 +3669,7 @@ function sourceLabel(source) {
3481
3669
  case "managed-database": return "DB";
3482
3670
  case "sdk-synced": return "SDK-synced DB";
3483
3671
  case "sdk-config": return "SDK config";
3484
- default: return assertNever(source);
3672
+ default: return assertNever$1(source);
3485
3673
  }
3486
3674
  }
3487
3675
  //#endregion
@@ -3558,7 +3746,7 @@ function composeJoin(join, previous, next) {
3558
3746
  previousBlockId: join.previousBlockId,
3559
3747
  nextBlockId: join.nextBlockId,
3560
3748
  treatment: join.treatment,
3561
- outcome: composeBoundary(sectionFactsForContent(previous.content), sectionFactsForContent(next.content))
3749
+ outcome: composeBoundary(sectionFactsForContent(previous.content), sectionFactsForContent(next.content), join.treatment)
3562
3750
  };
3563
3751
  }
3564
3752
  /** Placement, reserves and paint for a join that draws; null otherwise. */
@@ -3788,16 +3976,9 @@ function planArrangementContent(blockKind, manifest, content, audience) {
3788
3976
  ...arrangementManifestFromVariants(manifest),
3789
3977
  variantMeaning: manifest.variantMeaning
3790
3978
  }, content);
3791
- const selected = runtime.byMode[mode ?? "default"];
3792
- if (!selected) return content;
3979
+ const effective = resolveArrangementContentLook(runtime, mode, content, audience);
3980
+ if (!effective) return content;
3793
3981
  const { facts } = arrangementContentFacts(content);
3794
- const published = resolvePublishedLook({
3795
- look: selected.look,
3796
- facts,
3797
- audience,
3798
- catalogue: runtime.available.map((entry) => entry.look)
3799
- });
3800
- const effective = runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
3801
3982
  const { length, knobs } = resolveArrangementKnobs({
3802
3983
  blockKind,
3803
3984
  look: effective,
@@ -3819,7 +4000,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
3819
4000
  });
3820
4001
  return {
3821
4002
  ...activeContent,
3822
- ...arrangementPhotoTreatmentContent(activeContent, effective.look),
4003
+ ...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
3823
4004
  ...mode !== null ? { variant: mode } : {},
3824
4005
  ...effectiveContent,
3825
4006
  ...photoContent,
@@ -3840,13 +4021,13 @@ function planArrangementContent(blockKind, manifest, content, audience) {
3840
4021
  };
3841
4022
  }
3842
4023
  /** Typed Look composition owns contrast treatment; parsing preserves authored paint. */
3843
- function arrangementPhotoTreatmentContent(content, look) {
3844
- if (!look.structure.photoTreatment) return {};
4024
+ function arrangementPhotoTreatmentContent(content, look, palette, tint) {
4025
+ if (!look.look.structure.photoTreatment) return {};
3845
4026
  const authored = parseCanonicalRuntimeBackground(content);
3846
4027
  if (authored.kind === "none") return {};
3847
4028
  return { _sectionStyles: {
3848
4029
  ...isObjectRecord(content._sectionStyles) ? content._sectionStyles : {},
3849
- background: applyLookPhotoTreatment(authored.background, look.structure.photoTreatment)
4030
+ background: applyLookPhotoTreatment(authored.background, look.look.structure.photoTreatment, palette, tint, look.photoCopyPlacement)
3850
4031
  } };
3851
4032
  }
3852
4033
  /** Widget section hooks use the theme; hero background geometry never travels to list islands. */
@@ -3888,36 +4069,6 @@ function arrangementPhotoContent(content, knobs) {
3888
4069
  return copy;
3889
4070
  }) };
3890
4071
  }
3891
- /**
3892
- * The one owner of the facts `whenMissing` rules read from block content.
3893
- * Content facts also become `data-has-*` hooks; setting facts never do.
3894
- */
3895
- function arrangementContentFacts(content) {
3896
- const photoCount = arrangementPhotoCount(content);
3897
- const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
3898
- return {
3899
- photoCount,
3900
- facts: {
3901
- content: {
3902
- photo: photoCount > 0,
3903
- facts: Array.isArray(content.facts) && content.facts.length > 0,
3904
- featured,
3905
- outcome: typeof content.outcome === "string" && content.outcome.length > 0,
3906
- figure: typeof content.figure === "string" && content.figure.trim().length > 0,
3907
- entrance: isObjectRecord(content.entrancePhoto)
3908
- },
3909
- settings: { "listed-by-week": content.listBy === "week" }
3910
- }
3911
- };
3912
- }
3913
- /** The content stage owns media presence for every arrangement consumer. */
3914
- function arrangementPhotoCount(content) {
3915
- if (Array.isArray(content.cards)) return content.cards.filter((card) => isObjectRecord(card) && isObjectRecord(card.media)).length;
3916
- if (Array.isArray(content.members)) return content.members.filter((member) => isObjectRecord(member) && isObjectRecord(member.photo)).length;
3917
- if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length;
3918
- if (isObjectRecord(content.media) || isObjectRecord(content.entrancePhoto)) return 1;
3919
- return storedSectionPhoto(content) === null ? 0 : 1;
3920
- }
3921
4072
  function effectiveContentKnobValue(blockKind, key, value) {
3922
4073
  const facet = systemCustomizeFacetDefinitionsForBlock(blockKind).find((entry) => entry.target.kind === "content-field" && entry.target.field === key);
3923
4074
  return facet?.target.kind === "content-field" && facet.target.boolean ? value === "true" : value;
@@ -3925,8 +4076,10 @@ function effectiveContentKnobValue(blockKind, key, value) {
3925
4076
  function arrangementContentHooks(effective, mode, length, facts, values, photoCount) {
3926
4077
  return {
3927
4078
  "data-look": effective.look.id,
3928
- "data-treat": effective.treatment,
3929
- "data-arrangement": effective.look.structure.byMode[mode ?? "default"],
4079
+ ...mode === "combined" ? { "data-arrangement": "combined" } : {
4080
+ "data-treat": effective.treatment,
4081
+ "data-arrangement": effective.look.structure.byMode[mode ?? "default"]
4082
+ },
3930
4083
  ...mode !== null ? { "data-mode": mode } : {},
3931
4084
  ...length !== null ? { "data-length": length } : {},
3932
4085
  ...Object.fromEntries(Object.entries(facts).map(([key, value]) => [`data-has-${key}`, String(value)])),
@@ -3938,18 +4091,33 @@ function applyArrangementRhythm(entry, position) {
3938
4091
  const runtime = arrangementRuntime(entry.renderableContent);
3939
4092
  const look = effectiveLookFromContent(entry.renderableContent);
3940
4093
  if (!runtime || !look) return entry;
3941
- const rhythm = runtime.rhythm.length === 0 ? null : runtime.rhythm[position % runtime.rhythm.length];
3942
4094
  const content = entry.renderableContent;
3943
- const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), null, rhythm, heroPhotoGround(entry.block.kind, entry.kind === "renderable" ? entry.effectiveArrangementKey ?? void 0 : void 0));
4095
+ const section = resolveRuntimeSection({
4096
+ content,
4097
+ runtime,
4098
+ look,
4099
+ position,
4100
+ blockKind: entry.block.kind,
4101
+ arrangementKey: entry.kind === "renderable" ? entry.effectiveArrangementKey ?? void 0 : void 0,
4102
+ palette: runtime.surfaceContext.palette
4103
+ });
4104
+ const resolved = section.background;
3944
4105
  const updated = applyResolvedArrangementBackground(content, resolved);
3945
- const surface = arrangementGroundToken(resolved);
3946
- const grounded = resolveArrangementSurfaces(entry, look, runtime, resolved, updated);
4106
+ const surface = sectionGroundToken(resolved);
4107
+ const grounded = resolveArrangementSurfaces(entry, look, runtime, section, updated);
3947
4108
  const shape = sectionShapeHook(sectionShapeForGround(runtime.fieldGrounds, surface));
4109
+ const combined = resolveCombinedLook(entry, grounded, runtime, section, updated);
3948
4110
  return {
3949
4111
  ...entry,
3950
- styleBackground: arrangementGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm)),
4112
+ sectionDecision: {
4113
+ lookId: look.look.id,
4114
+ ground: section.ground,
4115
+ paint: section.paint
4116
+ },
4117
+ styleBackground: section.styleBackground,
3951
4118
  renderableContent: {
3952
4119
  ...updated,
4120
+ ...combined ? { _combinedLook: combined } : {},
3953
4121
  _effectiveLook: grounded,
3954
4122
  _lookHooks: {
3955
4123
  ...isObjectRecord(updated._lookHooks) ? updated._lookHooks : {},
@@ -3959,15 +4127,6 @@ function applyArrangementRhythm(entry, position) {
3959
4127
  }
3960
4128
  };
3961
4129
  }
3962
- function arrangementGroundToken(resolved) {
3963
- if (resolved.kind === "base") return "background";
3964
- switch (resolved.background.type) {
3965
- case "image":
3966
- case "video": return "media";
3967
- case "color": return resolved.background.color ?? "background";
3968
- case "gradient": return "gradient";
3969
- }
3970
- }
3971
4130
  function applyResolvedArrangementBackground(content, resolved) {
3972
4131
  const section = isObjectRecord(content._sectionStyles) ? content._sectionStyles : {};
3973
4132
  const photo = isObjectRecord(section.background) ? section.background.image : void 0;
@@ -4020,27 +4179,75 @@ function blockDiagnosticContext(resolved, input) {
4020
4179
  manifestKeys: resolved.definition ? Object.keys(resolved.definition.manifest).sort() : null
4021
4180
  };
4022
4181
  }
4023
- function resolveArrangementSurfaces(entry, look, runtime, background, content) {
4024
- const ground = deriveSectionGround(background, runtime.surfaceContext.palette);
4182
+ function resolveArrangementSurfaces(entry, look, runtime, section, content) {
4183
+ const ground = section.ground;
4025
4184
  const style = {
4026
4185
  roleMap: look.roleMap,
4027
4186
  surfaces: runtime.surfaces,
4028
4187
  context: runtime.surfaceContext
4029
4188
  };
4030
- const parents = plannedSlotParents(entry, look);
4189
+ const surfacePresentation = resolveLookSurfacePresentation({
4190
+ look,
4191
+ parents: plannedSlotParents(entry, look),
4192
+ ground,
4193
+ base: sectionSurfaceBase(section.background, runtime.surfaceContext.palette),
4194
+ style,
4195
+ content
4196
+ });
4197
+ if (!lookPresentationOnPalette(surfacePresentation, runtime.surfaceContext.palette)) throw new Error(`Look ${look.look.id} resolved its surfaces against a different palette from this page's theme`);
4031
4198
  return {
4032
4199
  ...look,
4033
4200
  ground,
4034
- surfacePresentation: resolveLookSurfacePresentation({
4035
- look,
4036
- parents,
4037
- ground,
4038
- base: arrangementGroundToken(background),
4039
- style,
4040
- content
4041
- })
4201
+ surfacePresentation
4042
4202
  };
4043
4203
  }
4204
+ /** The combined mode owns its resolved list and month, including independent paint. */
4205
+ function resolveCombinedLook(entry, list, runtime, section, content) {
4206
+ if (entry.block.kind !== "block.event-calendar" || content.variant !== "combined") return null;
4207
+ const month = runtime.byMode.calendar;
4208
+ if (!month) throw new Error("Combined calendar needs a month Look");
4209
+ const arrangement = month.look.structure.byMode.calendar;
4210
+ if (arrangement !== "month-grid" && arrangement !== "month-day") throw new Error("Invalid combined month arrangement");
4211
+ const ground = section.ground;
4212
+ const surfacePresentation = resolveLookSurfacePresentation({
4213
+ look: month,
4214
+ parents: arrangementSlotParentsForManifest(entry.kind === "renderable" ? entry.definition.manifest : void 0, month.look.target, arrangement),
4215
+ ground,
4216
+ base: sectionSurfaceBase(section.background, runtime.surfaceContext.palette),
4217
+ content,
4218
+ style: {
4219
+ roleMap: month.roleMap,
4220
+ surfaces: runtime.surfaces,
4221
+ context: runtime.surfaceContext
4222
+ }
4223
+ });
4224
+ const presentation = (look, mode, arrangement) => ({
4225
+ lookSlots: arrangementContentSlots(entry.block.kind),
4226
+ itemRoles: look.itemRoles,
4227
+ surfacePresentation: look.surfacePresentation,
4228
+ hooks: {
4229
+ "data-look": look.look.id,
4230
+ "data-treat": look.treatment,
4231
+ "data-mode": mode,
4232
+ "data-arrangement": arrangement
4233
+ }
4234
+ });
4235
+ return combinedLookSchema.parse({
4236
+ list: {
4237
+ ...presentation(list, "list", list.look.structure.byMode.combined),
4238
+ arrangement: list.look.structure.byMode.combined,
4239
+ panelHeading: content._lookPanelHeading,
4240
+ itemActionStyle: content.actionStyle
4241
+ },
4242
+ month: {
4243
+ ...presentation({
4244
+ ...month,
4245
+ surfacePresentation
4246
+ }, "calendar", arrangement),
4247
+ arrangement
4248
+ }
4249
+ });
4250
+ }
4044
4251
  function plannedSlotParents(entry, look) {
4045
4252
  const fallback = Object.values(look.look.structure.byMode)[0] ?? "";
4046
4253
  if (entry.kind !== "renderable") return arrangementSlotParentsForManifest(void 0, look.look.target, fallback);
@@ -4048,8 +4255,5 @@ function plannedSlotParents(entry, look) {
4048
4255
  const arrangement = entry.effectiveListArrangementKey ?? (typeof month === "string" ? month : entry.effectiveArrangementKey) ?? fallback;
4049
4256
  return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement);
4050
4257
  }
4051
- function heroPhotoGround(blockKind, arrangementKey) {
4052
- return blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(arrangementKey) } : void 0;
4053
- }
4054
4258
  //#endregion
4055
- export { MapPinIcon as A, buildThemeTokens as B, createEditorPresentationPageReader as C, CardListItems as D, CardListCollection as E, resolveEventCardBooking as F, resolveEventCta as I, resolveEventLinkProps as L, resolveMonthSelectedDay as M, formatEventTeacherLine as N, EventItem as O, formatEventDuration as P, parseStoredVariant as R, EventListingFrameView as S, EmptyState as T, defaultThemeTokens as V, EVENT_REGISTRATION_ANCHOR_ID as _, renderedJoinLayout as a, derivePreviewRunSchedule as b, coerceLinkedContentEntriesPayload as c, defaultTransforms as d, resolveAuthoredLinkHref as f, EventHeader as g, resolveRouteTarget as h, joinSlotKey as i, buildMonthDay as j, CalendarIcon as k, resolveLinkedEntryInlineFieldEligibility as l, resolvePageRouteTarget as m, planArrangementContent as n, retargetJoinsAcrossOmissions as o, resolveEntryRouteTarget as p, composePageJoins as r, buildLinkedContentEditTarget as s, createPageRenderPlanReader as t, builtinTransformDefinitions as u, eventCardListContent as v, createPresentationPageReader as w, MonthLookView as x, deriveEventScheduleSummary as y, selectBlockContent as z };
4259
+ export { CalendarIcon as A, selectBlockContent as B, createEditorPresentationPageReader as C, CardListItems as D, CardListCollection as E, formatEventDuration as F, defaultThemeTokens as H, resolveEventCardBooking as I, resolveEventCta as L, buildMonthDay as M, resolveMonthSelectedDay as N, EventItem as O, formatEventTeacherLine as P, resolveEventLinkProps as R, EventListingFrameView as S, EmptyState as T, buildThemeTokens as V, EVENT_REGISTRATION_ANCHOR_ID as _, renderedJoinLayout as a, derivePreviewRunSchedule as b, coerceLinkedContentEntriesPayload as c, defaultTransforms as d, resolveAuthoredLinkHref as f, EventHeader as g, resolveRouteTarget as h, joinSlotKey as i, MapPinIcon as j, eventCategoryBadge as k, resolveLinkedEntryInlineFieldEligibility as l, resolvePageRouteTarget as m, planArrangementContent as n, retargetJoinsAcrossOmissions as o, resolveEntryRouteTarget as p, composePageJoins as r, buildLinkedContentEditTarget as s, createPageRenderPlanReader as t, builtinTransformDefinitions as u, eventCardListContent as v, createPresentationPageReader as w, MonthLookView as x, deriveEventScheduleSummary as y, parseStoredVariant as z };