@riverbankcms/sdk 0.181.0 → 0.183.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 (226) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +49 -3
  3. package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-Chr9pNVW.d.ts → client-B_B_amKD.d.ts} +2 -3
  7. package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-Brl6_I2j.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-CJkefwYh.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Diqt0PvG.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-DG0OvBs0.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-D1WpKwQe.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-Dy50xUMK.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-CA0izds5.d.ts → request-Gn0O1blj.d.ts} +25042 -23761
  18. package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
  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 +7 -7
  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/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +91 -2
  55. package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-CgS3xLk8.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-CQrsP1x_.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-R65DKjPn.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +27 -10
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Fr2qi2C2.mjs} +33 -186
  71. package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-COuEJzbO.mjs} +8 -8
  74. package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +41 -195
  75. package/dist/client/{Page-C7mygH_f.mjs → Page-CgbQZP5g.mjs} +2947 -1018
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-DyXoI3ob.mjs} +221 -20
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-wj4Rloo5.mjs} +1214 -724
  82. package/dist/client/{accordion-CsW8U3ff.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-DJoleFV3.mjs → carousel-DyCLMP8s.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
  90. package/dist/client/{cart-EO5o6uPH.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-NVfZW0kR.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +466 -94
  96. package/dist/client/{constants-CoOkvw__.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-CRhn9qzS.mjs → context-D1L0pe__.mjs} +23 -5
  98. package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DM8Zbxbv.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-DWIsqQru.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client--N1GaSY8.mjs} +155 -84
  112. package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
  113. package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
  114. package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-Dl4mZ-rr.mjs → islands-DJDLGQEm.mjs} +16008 -8676
  116. package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +384 -326
  118. package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +291 -101
  121. package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-DTHlWg_F.mjs} +33 -7
  123. package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-CiRs3mNb.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-C3OBRg7x.mjs} +2305 -873
  129. package/dist/client/rendering/client.mjs +29 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +5 -5
  132. package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-Rx_gEMK8.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-ZSqRK3dD.mjs → src-Do_s2lqH.mjs} +16 -19
  144. package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-Dy3nNfTG.mjs} +13 -17
  145. package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-CC_yQLSA.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-DDvL3iza.mjs} +375 -186
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
  151. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
  153. package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3871 -1947
  155. package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +51 -20
  158. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
  159. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-CqH91EwA.mjs} +20687 -8562
  161. package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
  167. package/dist/preview-next/container-responsive.css +320 -0
  168. package/dist/preview-next/editor-chrome.css +23 -2
  169. package/dist/preview-next/keepAlive.mjs +1 -1
  170. package/dist/preview-next/middleware.mjs +1 -1
  171. package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-Ch0X99vE.mjs} +183 -18
  172. package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-DtAyv9qA.mjs} +51 -29
  174. package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-BtPqb76u.mjs} +509 -389
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DxojjtK3.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-CDndhbYO.mjs → client-DC7cjiSw.mjs} +489 -93
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-VyF5nEhL.mjs → constants-d6nPNJpe.mjs} +33 -6
  181. package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
  182. package/dist/server/data/resolveBlockData.mjs +1 -1
  183. package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-DxPrNOAB.mjs} +950 -316
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-quBYlSKD.mjs → navigation-B2WhGofA.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +8 -8
  192. package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +242 -336
  195. package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-m80Xu2pd.mjs} +1292 -877
  197. package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-CMW_b9mG.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-DM9dHfDC.mjs → registry-KtsOsAzY.mjs} +21703 -10936
  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 +4 -4
  208. package/dist/server/rendering.mjs +9 -9
  209. package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
  210. package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
  211. package/dist/server/server.mjs +3 -3
  212. package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-ChEZDRwU.mjs} +38 -15
  213. package/dist/server/theme-bridge.mjs +34 -9
  214. package/dist/server/theme.mjs +2 -2
  215. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
  216. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
  217. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  218. package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
  219. package/dist/server/{validation-DG5jX3jH.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-CipbxPHL.mjs → version-B-icAIV1.mjs} +1 -1
  221. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  222. package/dist/styles/index.css +2568 -154
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-CedLgwa_.mjs +0 -86
  225. package/dist/client/runtimeResponse-DL_ARBpa.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -1,12 +1,12 @@
1
- import { Y as parseThemeColorToken } from "./types-BKaBZFjD.mjs";
2
- import { C as contrastRatio, I as rgbToHex, L as srgbToOklab, M as oklabToOklch, N as oklabToSrgb, P as oklchToHexGamut, j as hexToRgb, y as getTextColorForBackground } from "./resolveButtonColourStates-B0O1IM16.mjs";
3
- import { $ as resolveCardListSchedule, $s as resolveBookingBusinessTimeZone, Aa as arrangementAppearancePresets, As as resolveWholeSeriesBookingPhase, Ba as readStoredMode, Bn as isBookableEvent, Br as formatEventDepositNote, Bs as formatDateRange, Bt as ThemedButtonLink, Ci as lookCarouselRegionTransform, Cn as groupEventsByDate, Co as sectionShapeHook, Di as asPartialObject, Ea as heroPhotoPaintsGround, Ei as lookSkinSlotTransform, Eo as boundaryRuntimeMetricsForDecorativeTransition, Er as listLookSlot, Fo as applyLookPhotoTreatment, Gn as getEventAvailabilityStatus, Gr as BACKGROUND_POSITION_PRESET_VALUES, Ha as resolveModeArrangement, Hn as formatEventRemainingPlaces, Ho as themeV2CompilerOwnedFieldNames, Io as deriveSectionGround, Ir as classPricesCopySchema, Jt as weekColumnDays, Kn as isEventFull, Kr as getAnchorClasses, Ks as compareLocalScheduleDates, Lo as parseCanonicalRuntimeBackground, Lr as classPricesDataSchema, Mr as heroMorePhotoCount, Oi as createTransformRegistry, Os as nextLiveRunSessionStartMs, Ot as groupOfferingRunsByCourse, Qs as toUtcIsoDateTimeString, Ra as styleSectionBackgroundForColour, Ro as resolveSectionBackground, Rr as resolveClassPriceItems, Sn as formatTime, So as sectionShapeFromContent, Ti as lookQuoteLimitTransform, Ua as resolvePublishedLook, Un as formatTotalCapacity, Ur as formatEventPriceDisplay, Va as resolveEffectiveArrangement, Vn as canJoinEventWaitlistOnAnyMode, Vo as stripStaleTransitionStyleGroup, Vr as formatEventPrice, Vs as formatDateTimeRange, Wn as getEventAvailability, Wr as formatEventStartingPrice, Wt as buildEventListWeek, X as CardListContentPart, Xs as parseBookingLocalDate, Xt as formatBookingSchedulePresentation, Ys as getLocalScheduleDate, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, _i as resolveSurfaceForegroundStyles, aa as eventReadinessQueryKeys, ao as gradientToCss, at as computeMediaTransformStyle, ba as resolveLookSurfacePresentation, bi as isSemanticSpacing, bn as formatEventTimeRange, ca as eventScopeLoaderParam, cc as resolvePricingOptionsPriceDisplay, cr as mediaTransforms, da as resolveEventScope, dn as eventLocalDateKey, dr as layoutTransforms, dt as systemCustomizeFacetDefinitionsForBlock, ea as augmentManifest, et as selectCardListPresentation, fa as resolveCalendarReadProfile, fc as parseGradientPresetId, gi as resolveSectionSurfaceForeground, gn as formatEventDateParts, hi as parseRuntimeBackgroundContent, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as eventReadinessQuery, is as formatDateKey, ks as orderedLiveRunSessions, la as eventScopeQuery, li as boxStylesTransforms, ln as eventCalendarWeekStart, lr as headerRuntimeTransforms, ma as resolveEventCalendarReadPlan, mi as parseBackgroundOverlay, mr as formattingTransforms, na as blockChecksForEvents, nc as formatBookingPriceDisplay, nn as formatEventLocation, nr as contentTransforms, on as closedRunCopy, oo as getGradientPreset, or as readRuntimeNow, pa as eventCalendarListGroupingDecision, pc as arrangementSlotNames, pi as parseBackgroundContent, pr as uiTransforms, qa as deriveSiteStyleBlockPolicy, qt as groupEventsByWeek, ra as eventReadinessLoaderKey, rt as ImagePresets, sa as eventDiscoveryFilterKeys, sc as resolveExactOrFreePriceDisplay, t as getBlockDefinition, tt as MediaNodeServer, ua as eventScopeQueryKeys, un as eventDateOptions, ur as chromeLogoTransforms, us as isToday, ut as resolveArrangementKnobs, vi as resolveBackgroundColorValue, wi as lookLeadSlotTransform, wn as resolveEventTimeZone, wr as listItemPresentation, xn as formatEventWeekdayTime, xo as sectionShapeForGround, ya as lookPresentationOnPalette, yn as formatEventRunDates, z as combinedLookSchema, za as arrangementManifestFromVariants, zi as ClockIcon, zn as hasEventBookingClosedEarly, zo as sectionSurfaceBase, zr as formatCoursePrice, zs as formatDate } from "./registry-DM9dHfDC.mjs";
4
- import { A as resolveOnColorForThemeToken, K as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-WPzUAHp4.mjs";
5
- import { A as makeBoundaryId, D as asLayoutVariantKey, k as asSiteStyleId, w as asDesignBlockId } from "./customCss-C9kgPHvr.mjs";
1
+ import { $ as parseThemeColorToken } from "./types-vyz09w64.mjs";
2
+ import { G as oklabToSrgb, J as rgbToHex, K as oklchToHexGamut, L as contrastRatio, U as hexToRgb, W as oklabToOklch, Y as srgbToOklab, b as pickBlackOrWhiteTextColor, j as resolveConcreteColorHex } from "./expandPalette-DxPrNOAB.mjs";
3
+ import { $r as heroMorePhotoCount, Aa as resolveEventScopeRead, Ai as boxStylesTransforms, Ar as headerRuntimeTransforms, B as combinedLookSchema, Bo as groundPaint, Cr as contentTransforms, Da as eventReadinessQueryKeys, Dc as resolvePricingOptionsPriceDisplay, Dn as formatTime, Dr as readRuntimeNow, Ea as eventReadinessQuery, Ec as resolveExactOrFreePriceDisplay, En as formatEventWeekdayTime, Fi as parseBackgroundOverlay, Fr as formattingTransforms, Ga as heroPhotoPaintsGround, Gi as lookCarouselRegionTransform, Gn as isDropInPublicEvent, Gr as listItemPresentation, Hi as isSemanticSpacing, Ho as sectionShapeForGround, Ii as parseRuntimeBackgroundContent, Ji as lookSkinSlotTransform, Js as orderedLiveRunSessions, Ka as sectionPhotoPath, Ki as lookLeadSlotTransform, Li as resolveSectionSurfaceForeground, Ma as eventCalendarLookViews, Mr as layoutTransforms, Na as resolveEventCalendarReadPlan, Nn as formatDateKey, On as groupEventsByDate, Pi as parseBackgroundContent, Pr as uiTransforms, Q as CardListLeadDate, Qt as formatBookingSchedulePresentation, Ra as lookPresentationOnPalette, Ri as resolveSurfaceForegroundStyles, Sa as augmentManifest, Ta as eventReadinessLoaderKey, Tn as formatEventTimeRange, Uo as sectionShapeFromContent, Ut as ThemedButtonLink, Vo as pageGround, Wo as sectionShapeHook, Xi as createTransformRegistry, Xt as groupEventsByWeek, Yi as asPartialObject, Z as CardListContentPart, Za as arrangementAppearancePresets, Zt as weekColumnDays, _c as toUtcIsoDateTimeString, ac as formatDateRange, ai as resolveClassPriceItems, ao as styleSectionBackgroundForColour, ar as resolveEventPageLink, as as resolveSectionBackground, bn as formatEventCompactDateRail, bt as lookPartShown, ci as formatEventPrice, co as resolveEffectiveArrangement, cs as stripStaleTransitionStyleGroup, dc as compareLocalScheduleDates, di as formatEventStartingPrice, dr as getEventAvailability, ds as eventDiscoveryFilterKeys, dt as resolveArrangementKnobs, et as resolveCardListSchedule, fi as BACKGROUND_POSITION_PRESET_VALUES, fr as getEventAvailabilityStatus, fs as eventScopeLoaderParam, ft as systemCustomizeFacetDefinitionsForBlock, gn as eventLocalDateKey, gt as EventQuickFacts, hc as parseBookingLocalDate, hn as eventDateOptions, ic as formatDate, ii as classPricesDataSchema, in as formatEventLocation, ir as resolveEventCta, is as parseCanonicalRuntimeBackground, it as ImagePresets, ja as eventCalendarListGroupingDecision, jc as arrangementSlotNames, jr as chromeLogoTransforms, js as placedEditingPaths, jt as groupOfferingRunsByCourse, ka as resolveEventCalendarRead, kn as resolveEventTimeZone, kr as mediaTransforms, ln as closedRunCopy, lo as resolveModeArrangement, lr as formatEventRemainingPlaces, ls as themeV2CompilerOwnedFieldNames, mc as getLocalScheduleDate, mn as eventCalendarWeekStart, mo as deriveSiteStyleBlockPolicy, ms as resolveEventScope, ns as applyLookPhotoTreatment, nt as MediaNodeServer, oc as formatDateTimeRange, oi as formatCoursePrice, oo as arrangementManifestFromVariants, os as sectionSurfaceBase, ot as computeMediaTransformStyle, pi as getAnchorClasses, ps as eventScopeQueryKeys, qa as storedSectionPhoto, qi as lookQuoteLimitTransform, qo as boundaryRuntimeMetricsForDecorativeTransition, qr as listLookSlot, qs as nextLiveRunSessionStartMs, qt as buildEventListWeek, ri as classPricesCopySchema, rr as resolveEventCardBooking, rs as deriveSectionGround, sa as ClockIcon, si as formatEventDepositNote, so as readStoredMode, sr as isBookableEvent, t as getBlockDefinition, tt as selectCardListPresentation, ui as formatEventPriceDisplay, uo as resolvePublishedLook, ur as formatTotalCapacity, vc as resolveBookingBusinessTimeZone, wa as blockChecksForEvents, wn as formatEventRunDates, xc as formatBookingPriceDisplay, xn as formatEventDateParts, yt as resolveCalendarReadProfile, za as resolveLookSurfacePresentation, zi as resolveBackgroundColorValue, zn as isToday } from "./registry-KtsOsAzY.mjs";
4
+ import { M as resolveOnColorForThemeToken, P as resolveTokenOrCssColorValue, j as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-BtPqb76u.mjs";
5
+ import { C as asDesignBlockId, E as asLayoutVariantKey, O as asSiteStyleId, k as makeBoundaryId } from "./customCss-rtIfEYwQ.mjs";
6
6
  import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
7
- import { h as isRecord$2, t as isObjectRecord } from "./typeGuards-CTW_9AXq.mjs";
7
+ import { h as isRecord$2, t as isObjectRecord } from "./typeGuards-DZOaGTEv.mjs";
8
8
  import { o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
9
- import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-TFjgNG61.mjs";
9
+ import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-CTsycLLK.mjs";
10
10
  import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
11
11
  import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
12
12
  import React from "react";
@@ -496,28 +496,20 @@ function mapDrawingStyle(input) {
496
496
  }
497
497
  //#endregion
498
498
  //#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
499
- const backgroundToken = requireThemeColorToken("background");
500
499
  /**
501
500
  * Classifies a section from its final render content. `_sectionStyles`
502
501
  * already holds the effective background (Look default, page-design override
503
502
  * and block-authored media merged by `resolveSectionBackground`), so this only
504
- * reads it and never re-decides precedence. A missing or unparseable
505
- * background is the page background, as it is for the renderer.
503
+ * reads it and never re-decides precedence. What it paints comes from
504
+ * `groundPaint`, the same decision the background layer paints from, given
505
+ * the ground the section declares for when its content sets no colour.
506
506
  */
507
- function boundaryEndpointForSectionContent(content) {
507
+ function boundaryEndpointForSectionContent(content, ground) {
508
508
  const background = parseCanonicalRuntimeBackground(content);
509
- if (background.kind === "none") return {
510
- kind: "paint",
511
- token: backgroundToken
512
- };
513
- const effective = background.background;
514
- switch (effective.type) {
515
- case "color": {
516
- if (effective.color === null || effective.color === void 0) return {
517
- kind: "paint",
518
- token: backgroundToken
519
- };
520
- const token = parseThemeColorToken(effective.color);
509
+ const paint = groundPaint(background.kind === "none" ? null : background.background, ground.fallback);
510
+ switch (paint.kind) {
511
+ case "fill": {
512
+ const token = parseThemeColorToken(paint.colour);
521
513
  return token ? {
522
514
  kind: "paint",
523
515
  token
@@ -530,26 +522,30 @@ function boundaryEndpointForSectionContent(content) {
530
522
  kind: "unpainted",
531
523
  reason: "gradient"
532
524
  };
533
- case "image":
534
- case "video": return {
525
+ case "media": return {
535
526
  kind: "unpainted",
536
527
  reason: "media"
537
528
  };
538
- default: return assertNever$1(effective, "Unhandled section background type");
529
+ case "bare": return {
530
+ kind: "paint",
531
+ token: pageGround.fallback
532
+ };
533
+ default: return assertNever$1(paint, "Unhandled ground paint");
539
534
  }
540
535
  }
541
536
  /**
542
537
  * Reads every fact from final render content in one place. `_frameStyles` is
543
538
  * the compiled frame; content without one (no page design, an SDK block)
544
- * draws a plain frame.
539
+ * draws a plain frame. `ground` is what the section declares it paints when
540
+ * its content sets no colour (`pageGround` for a section that declares none).
545
541
  */
546
- function sectionFactsForContent(content) {
542
+ function sectionFactsForContent(content, ground) {
547
543
  const photoGround = isLookPhotoGround(content);
548
544
  return {
549
545
  endpoint: photoGround ? {
550
546
  kind: "unpainted",
551
547
  reason: "media"
552
- } : boundaryEndpointForSectionContent(content),
548
+ } : boundaryEndpointForSectionContent(content, ground),
553
549
  ...photoGround || isPhotoBackground(content) ? { photo: true } : {},
554
550
  frame: frameKindForContent(content),
555
551
  shape: sectionShapeFromContent(content)
@@ -627,6 +623,26 @@ function composeBoundary(previous, next, treatment) {
627
623
  reason: "both-unpainted"
628
624
  };
629
625
  }
626
+ /**
627
+ * Decides the seam between two adjacent sections from the same facts that
628
+ * decide the boundary. Shared ground needs two platform sections painting the
629
+ * identical theme token, with no field, flush panel or photo on either side;
630
+ * gradients and literal colours are unpainted, so they never merge. A shared
631
+ * ground is always a `same-paint` join, so a seam never sits beside a drawn
632
+ * boundary or its reserves.
633
+ */
634
+ function sectionSeam(previous, next) {
635
+ if (previous.facts.shape === "field" && next.facts.shape === "field") return "fields";
636
+ return mergesGround(previous) && mergesGround(next) && samePaint(previous.facts.endpoint, next.facts.endpoint) ? "shared-ground" : "none";
637
+ }
638
+ /** A side can share its ground only when the platform paints it edge to edge, with no flush panel or photo. */
639
+ function mergesGround(side) {
640
+ const { facts } = side;
641
+ return side.section === "platform" && facts.shape !== "field" && facts.frame !== "flush-panel" && !facts.photo;
642
+ }
643
+ function samePaint(previous, next) {
644
+ return previous.kind === "paint" && next.kind === "paint" && previous.token === next.token;
645
+ }
630
646
  /** Treatment-specific placement and indistinguishable paint are composition decisions. */
631
647
  function paintNotShownReason(previous, next, treatment) {
632
648
  if (treatment === "wave-edge-echo" && (!previous.photo || next.endpoint.kind !== "paint")) return "photo-required";
@@ -675,20 +691,6 @@ function boundaryLayout(intent, composition) {
675
691
  default: return assertNever$1(composition, "Unhandled boundary composition");
676
692
  }
677
693
  }
678
- function requireThemeColorToken(value) {
679
- const token = parseThemeColorToken(value);
680
- if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
681
- return token;
682
- }
683
- //#endregion
684
- //#region ../theme-core/src/site-styles/sectionPhoto.ts
685
- /** The photo a section keeps, wherever its background `type` points. */
686
- function storedSectionPhoto(content) {
687
- return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
688
- }
689
- function readRecord(value) {
690
- return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
691
- }
692
694
  //#endregion
693
695
  //#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
694
696
  /**
@@ -809,172 +811,6 @@ function parseStoredVariant(manifest, content) {
809
811
  } : { kind: "absent" };
810
812
  }
811
813
  //#endregion
812
- //#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
813
- /**
814
- * Booking call-to-action resolution for events: where an event links to and
815
- * what the button says. Sold-out and waitlist decisions come from capacity.ts
816
- * so cards, rows and the wizard never disagree.
817
- */
818
- function closedEventBookingLabel(reason) {
819
- switch (reason) {
820
- case "occurrence_cancelled":
821
- case "series_cancelled": return "Cancelled";
822
- case "occurrence_completed":
823
- case "series_completed": return "Completed";
824
- case "series_draft":
825
- case "series_archived":
826
- case "parent_archived":
827
- case "parent_inconsistent":
828
- case "already_started":
829
- case "enrollment_closed": return "Registration closed";
830
- default: return assertNever(reason);
831
- }
832
- }
833
- function resolveEventHref(event) {
834
- const destination = resolveRuntimeEventDestination(event);
835
- return destination.kind === "external" ? destination.url : destination.path;
836
- }
837
- function resolveEventLinkProps(event) {
838
- const href = resolveEventHref(event);
839
- return resolveRuntimeEventDestination(event).kind === "external" ? {
840
- href,
841
- target: "_blank",
842
- rel: "noopener noreferrer"
843
- } : { href };
844
- }
845
- /**
846
- * Resolve the CTA state for an event.
847
- * Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
848
- * and course-specific defaults consistent.
849
- */
850
- function resolveEventCta(event, buttonText) {
851
- const isSoldOut = isEventFull(event);
852
- const isExternal = resolveRuntimeEventDestination(event).kind === "external";
853
- const href = resolveEventHref(event);
854
- if (event.bookingAvailability.kind === "closed") {
855
- const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
856
- return {
857
- label: closedEventBookingLabel(event.bookingAvailability.reason),
858
- href,
859
- external: isExternal,
860
- hidden: !linksToClosedWholeSeriesDetails
861
- };
862
- }
863
- if (!isExternal && isSoldOut) {
864
- if (canJoinEventWaitlistOnAnyMode(event)) return {
865
- label: "Join waitlist",
866
- href,
867
- external: false,
868
- hidden: false
869
- };
870
- return {
871
- label: "Sold out",
872
- href,
873
- external: false,
874
- hidden: true
875
- };
876
- }
877
- return destinationCta(event, buttonText);
878
- }
879
- function destinationCta(event, buttonText) {
880
- const destination = resolveRuntimeEventDestination(event);
881
- return {
882
- label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
883
- href: resolveEventHref(event),
884
- external: destination.kind === "external",
885
- hidden: false
886
- };
887
- }
888
- /**
889
- * A bounded date strip cannot prove a series sold out. Its destination owns date selection,
890
- * so the card offers that destination and leaves capacity with the individual date rows.
891
- * Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
892
- */
893
- function resolveEventCardBooking(event, scope, buttonText, options) {
894
- const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
895
- if (scope === "series" && event.bookingScope === "single_occurrence") {
896
- const closed = seriesBookingClosed(event);
897
- return {
898
- cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
899
- availability: null,
900
- closed
901
- };
902
- }
903
- return closedCta ? {
904
- cta: closedCta,
905
- availability: null,
906
- closed: true
907
- } : {
908
- cta: withoutPage(resolveEventCta(event, buttonText)),
909
- availability: occurrenceCardAvailability(event, options.count),
910
- closed: false
911
- };
912
- }
913
- /** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
914
- function withoutPage(cta) {
915
- return !cta.external && !cta.hidden && cta.href === "" ? {
916
- ...cta,
917
- label: "Details coming soon",
918
- hidden: true
919
- } : cta;
920
- }
921
- /** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
922
- function seriesBookingClosed(event) {
923
- if (event.bookingAvailability.kind !== "closed") return false;
924
- switch (event.bookingAvailability.reason) {
925
- case "occurrence_cancelled":
926
- case "occurrence_completed":
927
- case "already_started": return false;
928
- case "series_cancelled":
929
- case "series_completed":
930
- case "series_draft":
931
- case "series_archived":
932
- case "parent_archived":
933
- case "parent_inconsistent":
934
- case "enrollment_closed": return true;
935
- default: return assertNever(event.bookingAvailability.reason);
936
- }
937
- }
938
- function occurrenceCardAvailability(event, count) {
939
- const label = formatEventRemainingPlaces(event, {
940
- full: "Sold out",
941
- count
942
- });
943
- const availability = getEventAvailabilityStatus(event);
944
- return label ? {
945
- label,
946
- status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
947
- } : null;
948
- }
949
- /** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
950
- function renderClockClosedCta(event, now) {
951
- if (!now || event.destination.kind !== "native") return null;
952
- if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
953
- label: "Registration closed",
954
- href: resolveEventHref(event),
955
- external: false,
956
- hidden: true
957
- } : null;
958
- const phase = resolveWholeSeriesBookingPhase(event.run, now);
959
- if (phase.kind === "open") return null;
960
- return {
961
- label: (() => {
962
- switch (phase.reason) {
963
- case "cancelled": return "Cancelled";
964
- case "completed": return "Completed";
965
- case "in-progress":
966
- case "bookings-closed":
967
- case "enrolment-closed":
968
- case "no-sessions": return "Registration closed";
969
- default: return assertNever(phase.reason);
970
- }
971
- })(),
972
- href: resolveEventHref(event),
973
- external: false,
974
- hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
975
- };
976
- }
977
- //#endregion
978
814
  //#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
979
815
  function formatEventDuration(event, style = "legacy") {
980
816
  const durationMinutes = Math.max(0, Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4));
@@ -1214,7 +1050,7 @@ function categoryBadgeStyle(background) {
1214
1050
  }
1215
1051
  function readableTextColor(background) {
1216
1052
  try {
1217
- return getTextColorForBackground(background);
1053
+ return pickBlackOrWhiteTextColor(background);
1218
1054
  } catch {
1219
1055
  return "rgb(var(--tb-onAccent, 255 255 255))";
1220
1056
  }
@@ -1300,8 +1136,8 @@ function eventItemFacts(props) {
1300
1136
  date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
1301
1137
  time,
1302
1138
  price,
1303
- link: resolveEventLinkProps(props.event),
1304
- meta: eventItemMeta(props, {
1139
+ link: resolveEventPageLink(props.event),
1140
+ metaParts: eventItemMetaParts(props, {
1305
1141
  time,
1306
1142
  price
1307
1143
  }),
@@ -1316,7 +1152,7 @@ function eventItemFacts(props) {
1316
1152
  };
1317
1153
  }
1318
1154
  /** Rows with a rail keep pricing in the details and time in the action rail. */
1319
- function eventItemMeta(props, formatted) {
1155
+ function eventItemMetaParts(props, formatted) {
1320
1156
  const parts = props.parts ?? eventItemParts[props.arrangement];
1321
1157
  const venue = props.showVenue !== false ? props.event.venue?.name : null;
1322
1158
  const teacher = formatEventTeacherLine(props.event);
@@ -1331,8 +1167,9 @@ function eventItemMeta(props, formatted) {
1331
1167
  time,
1332
1168
  teacher,
1333
1169
  venue
1334
- ]).filter(Boolean).join(" · ");
1170
+ ]).filter((part) => Boolean(part));
1335
1171
  }
1172
+ const META_SEPARATOR = " · ";
1336
1173
  /**
1337
1174
  * Keep one RSC component boundary per item. Re-forwarding shared presentation
1338
1175
  * props through layout/part components multiplies React's development debug
@@ -1466,20 +1303,34 @@ function renderEventItemContentPart({ part, props, facts }) {
1466
1303
  case "action": return renderEventItemAction(props, facts);
1467
1304
  }
1468
1305
  }
1306
+ /**
1307
+ * Without the part slots the line is one run of text, as it always was. With them, each part and each
1308
+ * separator is an element, so a skin can put a part on its own line or drop a separator that would dangle.
1309
+ */
1469
1310
  function renderEventItemMeta({ props, facts }) {
1470
1311
  const places = (props.parts ?? eventItemParts[props.arrangement]).includes("places") ? null : facts.places;
1471
- return facts.meta || places ? /* @__PURE__ */ jsxs("p", {
1312
+ const { metaParts } = facts;
1313
+ if (metaParts.length === 0 && !places) return null;
1314
+ const slotted = props.lookSlots?.separator !== void 0;
1315
+ const separator = (key) => slotted ? /* @__PURE__ */ jsx("span", {
1316
+ ...listLookSlot(props, "separator"),
1317
+ children: META_SEPARATOR
1318
+ }, key) : META_SEPARATOR;
1319
+ const line = slotted ? metaParts.map((part, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [index > 0 ? separator(`separator-${index}`) : null, /* @__PURE__ */ jsx("span", {
1320
+ ...listLookSlot(props, "meta-part"),
1321
+ children: part
1322
+ })] }, `part-${index}`)) : metaParts.join(META_SEPARATOR);
1323
+ return /* @__PURE__ */ jsxs("p", {
1472
1324
  ...listLookSlot(props, "item-meta"),
1473
1325
  children: [
1474
1326
  facts.venueIcon ? /* @__PURE__ */ jsx(MapPinIcon, {}) : null,
1475
- facts.meta,
1476
- facts.meta && places ? " · " : null,
1477
- places ? /* @__PURE__ */ jsx("span", {
1327
+ line,
1328
+ places ? /* @__PURE__ */ jsxs(Fragment, { children: [metaParts.length > 0 ? separator("separator-places") : null, /* @__PURE__ */ jsx("span", {
1478
1329
  "data-event-places": true,
1479
1330
  children: places
1480
- }) : null
1331
+ })] }) : null
1481
1332
  ]
1482
- }) : null;
1333
+ });
1483
1334
  }
1484
1335
  function renderEventItemImage(props, link) {
1485
1336
  return /* @__PURE__ */ jsx(CardListContentPart, {
@@ -1488,8 +1339,7 @@ function renderEventItemImage(props, link) {
1488
1339
  id: props.event.id,
1489
1340
  title: eventDisplayTitle(props.event).title,
1490
1341
  media: props.event.presentation?.image,
1491
- titleLink: link,
1492
- newTabHint: link.target === "_blank"
1342
+ titleLink: link
1493
1343
  },
1494
1344
  presentation: props
1495
1345
  });
@@ -1890,13 +1740,12 @@ function occurrencePlaces(event) {
1890
1740
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
1891
1741
  /** Live offering data only; editorial cards never acquire booking fields. */
1892
1742
  function eventCardListContent(event, context, buttonText) {
1893
- const { content, external } = cardProjectionBase(event, buttonText, context);
1743
+ const content = cardProjectionBase(event, buttonText, context);
1894
1744
  switch (context.kind) {
1895
1745
  case "event-details": return {
1896
1746
  ...content,
1897
1747
  chips: offeringTypeChips(event),
1898
1748
  leadDate: null,
1899
- newTabHint: false,
1900
1749
  ...offeringSchedule(event)
1901
1750
  };
1902
1751
  case "catalogue":
@@ -1904,7 +1753,6 @@ function eventCardListContent(event, context, buttonText) {
1904
1753
  ...content,
1905
1754
  chips: offeringTypeChips(event, context.typeLabel),
1906
1755
  leadDate: offeringLeadDate(event, context.nextStartMs),
1907
- newTabHint: external,
1908
1756
  ...offeringSchedule(event, context.now),
1909
1757
  ...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
1910
1758
  };
@@ -1914,23 +1762,20 @@ function eventCardListContent(event, context, buttonText) {
1914
1762
  function cardProjectionBase(event, buttonText, context) {
1915
1763
  const offering = context.kind !== "event-details";
1916
1764
  const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
1917
- const titleLink = resolveEventLinkProps(event);
1765
+ const titleLink = resolveEventPageLink(event);
1918
1766
  const { title, runName } = eventDisplayTitle(event);
1919
1767
  return {
1920
- external: cta.external,
1921
- content: {
1922
- id: event.occurrenceId || event.id,
1923
- title,
1924
- subtitle: runName,
1925
- ...titleLink.href ? { titleLink } : {},
1926
- quickFacts: event.facts,
1927
- text: event.presentation?.summary ?? event.description,
1928
- media: event.presentation?.image,
1929
- facts: offeringFacts(event, places?.label, offering),
1930
- availability: places,
1931
- action: cardAction(cta),
1932
- bookingClosed: closed ? cta.label : null
1933
- }
1768
+ id: event.occurrenceId || event.id,
1769
+ title,
1770
+ subtitle: runName,
1771
+ ...titleLink.href ? { titleLink } : {},
1772
+ quickFacts: event.facts,
1773
+ text: event.presentation?.summary ?? event.description,
1774
+ media: event.presentation?.image,
1775
+ facts: offeringFacts(event, places?.label, offering),
1776
+ availability: places,
1777
+ action: cardAction(cta),
1778
+ bookingClosed: closed ? cta.label : null
1934
1779
  };
1935
1780
  }
1936
1781
  /** Offering cards carry the render clock; an event's own details show its projected booking state. */
@@ -2038,7 +1883,7 @@ function offeringFacts(event, places, offering) {
2038
1883
  value: places,
2039
1884
  kind: "availability"
2040
1885
  }] : [],
2041
- ...offering && event.pricing.kind === "external" ? [] : [{
1886
+ ...event.pricing.kind === "external" ? [] : [{
2042
1887
  label: "Price",
2043
1888
  value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
2044
1889
  }]
@@ -2489,10 +2334,12 @@ function DaySchedule({ display }) {
2489
2334
  }
2490
2335
  //#endregion
2491
2336
  //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
2492
- function MonthEvent({ event, timeZone, locale, presentation }) {
2337
+ function MonthEvent({ event, timeZone, locale, presentation, showCapacity }) {
2338
+ const places = showCapacity ? formatEventRemainingPlaces(event, { full: "Sold out" }) : null;
2493
2339
  return /* @__PURE__ */ jsxs("a", {
2494
- ...resolveEventLinkProps(event),
2340
+ ...resolveEventPageLink(event),
2495
2341
  ...listLookSlot(presentation, "item"),
2342
+ "data-availability": monthEventAvailability(event),
2496
2343
  children: [
2497
2344
  /* @__PURE__ */ jsx("span", {
2498
2345
  ...listLookSlot(presentation, "time"),
@@ -2508,10 +2355,23 @@ function MonthEvent({ event, timeZone, locale, presentation }) {
2508
2355
  /* @__PURE__ */ jsx("span", {
2509
2356
  ...listLookSlot(presentation, "what"),
2510
2357
  children: eventDisplayTitleText(event)
2511
- })
2358
+ }),
2359
+ places ? /* @__PURE__ */ jsxs(Fragment, { children: [" ", /* @__PURE__ */ jsx("span", {
2360
+ ...listLookSlot(presentation, "places"),
2361
+ children: places
2362
+ })] }) : null
2512
2363
  ]
2513
2364
  });
2514
2365
  }
2366
+ /** The same three states a list row carries, so a skin marks a full session the same way in both. */
2367
+ function monthEventAvailability(event) {
2368
+ const availability = getEventAvailabilityStatus(event);
2369
+ return availability.isFull ? "full" : availability.status === "filling" ? "low" : "available";
2370
+ }
2371
+ /** A day before today, by the calendar's own today, so the server and the client agree. */
2372
+ function isPastDay(day, today) {
2373
+ return formatDateKey(day) < formatDateKey(today);
2374
+ }
2515
2375
  function dateLabel(key, timeZone, date = "short") {
2516
2376
  return formatDate({
2517
2377
  kind: "civil",
@@ -2532,6 +2392,7 @@ function MonthDay(props) {
2532
2392
  ...listLookSlot(selection, "date"),
2533
2393
  "data-current": String(selected),
2534
2394
  "data-today": String(day.isToday),
2395
+ "data-past": String(isPastDay(day.date, selection.today)),
2535
2396
  "data-other-month": String(!day.isCurrentMonth),
2536
2397
  children: [selection.arrangement === "month-day" ? /* @__PURE__ */ jsx("button", {
2537
2398
  type: "button",
@@ -2544,6 +2405,7 @@ function MonthDay(props) {
2544
2405
  ...listLookSlot(selection, "date-label"),
2545
2406
  children: day.date.day
2546
2407
  }), selection.arrangement === "month-grid" ? /* @__PURE__ */ jsxs(Fragment, { children: [day.visibleEntries.map(({ event, timeZone }, index, entries) => /* @__PURE__ */ jsx(MonthEvent, {
2408
+ showCapacity: selection.showCapacity,
2547
2409
  presentation: listItemPresentation(selection, index, entries.length),
2548
2410
  event,
2549
2411
  timeZone,
@@ -2640,7 +2502,11 @@ const EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
2640
2502
  /** Project selected live data; booking decisions stay with the existing event owners. */
2641
2503
  function eventHeaderContent(selection, show) {
2642
2504
  const event = selection.selected;
2643
- const item = eventCardListContent(event, { kind: "event-details" });
2505
+ const card = eventCardListContent(event, { kind: "event-details" });
2506
+ const item = selection.kind === "ordinary" && selection.bookedElsewhere ? {
2507
+ ...card,
2508
+ ...bookedElsewhereAction(selection.bookedElsewhere)
2509
+ } : card;
2644
2510
  const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
2645
2511
  const { timeRange } = formatEventDateParts({
2646
2512
  startsAt: event.startsAt,
@@ -2656,6 +2522,7 @@ function eventHeaderContent(selection, show) {
2656
2522
  label: "Time",
2657
2523
  value: timeRange
2658
2524
  },
2525
+ ...laterBookingFact(event, selection),
2659
2526
  ...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
2660
2527
  ...groupSize === null ? [] : [{
2661
2528
  label: "Group size",
@@ -2698,11 +2565,72 @@ function headerDateFact(selection) {
2698
2565
  value: date
2699
2566
  };
2700
2567
  }
2568
+ /**
2569
+ * Dates booked elsewhere take the page's shared booking decision, the one the
2570
+ * registration panel shows. A later booking date is named by
2571
+ * `laterBookingFact`, not in the button.
2572
+ */
2573
+ function bookedElsewhereAction(booking) {
2574
+ switch (booking.kind) {
2575
+ case "open": {
2576
+ const { destination } = booking;
2577
+ return {
2578
+ action: {
2579
+ label: destination.label,
2580
+ href: destination.url,
2581
+ external: true
2582
+ },
2583
+ bookingClosed: null
2584
+ };
2585
+ }
2586
+ case "closed": {
2587
+ const label = bookedElsewhereClosedLabel(booking.closure);
2588
+ return {
2589
+ action: { label },
2590
+ bookingClosed: label
2591
+ };
2592
+ }
2593
+ default: return assertNever(booking);
2594
+ }
2595
+ }
2596
+ /**
2597
+ * When the shared decision books a later date than the one described (today's
2598
+ * is past its cut-off), say which, so the button isn't read as booking today.
2599
+ * The button keeps the owner's own label ("Find out more", "Book via studio").
2600
+ */
2601
+ function laterBookingFact(described, selection) {
2602
+ const booking = selection.kind === "ordinary" ? selection.bookedElsewhere : null;
2603
+ if (booking?.kind !== "open" || booking.target.occurrenceId === described.occurrenceId) return [];
2604
+ return [{
2605
+ label: "Next date to book",
2606
+ value: shortDate(booking.target)
2607
+ }];
2608
+ }
2609
+ function shortDate(event) {
2610
+ return formatDate({
2611
+ kind: "instant",
2612
+ value: toUtcIsoDateTimeString(event.startsAt)
2613
+ }, eventDateOptions(event), {
2614
+ date: "short",
2615
+ weekday: "short",
2616
+ year: "omit"
2617
+ });
2618
+ }
2619
+ function bookedElsewhereClosedLabel(closure) {
2620
+ switch (closure.kind) {
2621
+ case "bookingClosed": return closure.detail.kind === "opensSoon" ? "Bookings open soon" : "Registration closed";
2622
+ case "date": return closure.closure.kind === "finished" ? "Completed" : "Registration closed";
2623
+ case "run": return closedRunCopy(closure.reason).titleText;
2624
+ case "datesCutOff":
2625
+ case "unavailable": return "Registration closed";
2626
+ default: return assertNever(closure);
2627
+ }
2628
+ }
2701
2629
  /** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
2702
2630
  function headerAction(selection, action) {
2703
- if (action.external) return action;
2704
- if (!selection.selected.requiresRegistration) return { label: "No registration required — just show up" };
2705
2631
  if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: closedRunCopy(selection.bookingPhase.reason).titleText };
2632
+ if (action.external) return action;
2633
+ if (isDropInPublicEvent(selection.selected)) return { label: "No registration required — just show up" };
2706
2634
  if (!action.href) return action;
2707
2635
  return {
2708
2636
  ...action,
@@ -2751,8 +2679,10 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
2751
2679
  "aria-label": "At a glance",
2752
2680
  children: part("facts")
2753
2681
  }),
2754
- part("availability"),
2755
- part("action")
2682
+ item.availability || item.action ? /* @__PURE__ */ jsxs("div", {
2683
+ ...listLookSlot(presentation, "booking"),
2684
+ children: [part("availability"), part("action")]
2685
+ }) : null
2756
2686
  ]
2757
2687
  }),
2758
2688
  part("numeral")
@@ -2762,7 +2692,8 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
2762
2692
  const eventHeaderSlotParents = {
2763
2693
  frame: null,
2764
2694
  copy: "frame",
2765
- availability: "copy",
2695
+ booking: "copy",
2696
+ availability: "booking",
2766
2697
  "item-media": "frame"
2767
2698
  };
2768
2699
  //#endregion
@@ -2800,7 +2731,8 @@ function arrangementSlotParents(input) {
2800
2731
  ...derived,
2801
2732
  ...eventListSlotParents(arrangement, "layout" in derived ? "layout" : null, input.eventRows),
2802
2733
  ...eventItemSlotParents(arrangement),
2803
- ...arrangement === "month-grid" || arrangement === "month-day" ? monthSlotParents(arrangement) : {}
2734
+ ...arrangement === "month-grid" || arrangement === "month-day" ? monthSlotParents(arrangement) : {},
2735
+ ...arrangement === "event-header" ? eventHeaderSlotParents : {}
2804
2736
  };
2805
2737
  if (arrangement === "event-header") return {
2806
2738
  ...derived,
@@ -2941,53 +2873,6 @@ function childFields(field) {
2941
2873
  return [];
2942
2874
  }
2943
2875
  //#endregion
2944
- //#region ../blocks/src/system/customize/lookParts.ts
2945
- const lookParts = {
2946
- "block.hero": [{
2947
- part: "more photos",
2948
- fields: ["morePhotos"],
2949
- shownIn: ["photo-trio"]
2950
- }],
2951
- "block.cta-full": [{
2952
- part: "figure",
2953
- fields: ["figure", "figureNote"],
2954
- shownIn: ["figure"]
2955
- }],
2956
- "block.location-map": [{
2957
- part: "entrance photo",
2958
- fields: ["entrancePhoto"],
2959
- shownIn: ["photo-and-details"]
2960
- }],
2961
- "block.feature-cards": [{
2962
- part: "eyebrow",
2963
- fields: ["eyebrow"],
2964
- shownIn: [
2965
- "lead-support",
2966
- "index",
2967
- "sequence",
2968
- "slides",
2969
- "track"
2970
- ]
2971
- }],
2972
- "block.event-details": [{
2973
- part: "title",
2974
- fields: ["showTitle"],
2975
- shownIn: ["details-panel"]
2976
- }, {
2977
- part: "description",
2978
- fields: ["showDescription"],
2979
- shownIn: ["details-panel"]
2980
- }]
2981
- };
2982
- /** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
2983
- function fieldsNotShownIn(blockKind, arrangement) {
2984
- if (arrangement === null) return [];
2985
- return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
2986
- }
2987
- function lookPartShown(blockKind, field, arrangement) {
2988
- return !fieldsNotShownIn(blockKind, arrangement).includes(field);
2989
- }
2990
- //#endregion
2991
2876
  //#region ../blocks/src/system/transforms/registry/classPrices.ts
2992
2877
  const classPriceItemsTransform = {
2993
2878
  id: "events.classPriceItems",
@@ -3058,12 +2943,6 @@ function appendBackgroundMediaClasses(baseClassName, input) {
3058
2943
  backgroundVideoMobileClassNames(input)
3059
2944
  ].filter(Boolean).join(" ");
3060
2945
  }
3061
- function gradientPresetCss(value) {
3062
- const presetId = parseGradientPresetId(value);
3063
- if (!presetId) return null;
3064
- const preset = getGradientPreset(presetId);
3065
- return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
3066
- }
3067
2946
  const backgroundTransforms = [
3068
2947
  {
3069
2948
  id: "background.resolveMedia",
@@ -3196,12 +3075,11 @@ function parseMediaBackground(value) {
3196
3075
  }
3197
3076
  function resolveBackgroundLayerStyle(value, fallbackToken, context) {
3198
3077
  const background = parseRuntimeBackgroundContent(value);
3078
+ const paint = groundPaint(background, fallbackToken ?? null);
3199
3079
  const style = {};
3200
- const gradient = background?.type === "gradient" ? isString(background.gradient) ? background.gradient.trim() : gradientPresetCss(background.gradientPresetId) : null;
3201
- const color = background?.type === "color" && isString(background.color) ? background.color.trim() : null;
3202
- const resolvedColor = color ? resolveBackgroundColorValue(color, context) : !gradient && isString(fallbackToken) ? resolveBackgroundColorValue(fallbackToken.trim(), context) : null;
3203
- if (resolvedColor) style.backgroundColor = resolvedColor;
3204
- if (gradient) style.backgroundImage = gradient;
3080
+ const fill = paint.kind === "fill" ? paint.colour : paint.kind === "media" ? paint.fill : null;
3081
+ if (fill) style.backgroundColor = resolveBackgroundColorValue(fill, context);
3082
+ if (paint.kind === "gradient") style.backgroundImage = paint.gradient;
3205
3083
  const opacity = backgroundMediaOpacity(background);
3206
3084
  if (opacity !== null) style.opacity = String(opacity);
3207
3085
  return style;
@@ -3553,14 +3431,25 @@ const eventCalendarSelectionParam = {
3553
3431
  return key === "seriesIds" ? void 0 : scope.filters[key];
3554
3432
  }
3555
3433
  };
3434
+ const scopeParamSchema = z.object({ key: z.enum(eventScopeQueryKeys) });
3556
3435
  /** Public event query params for the section's scope, shared by render loaders and readiness. */
3557
3436
  const eventScopeParam = {
3558
3437
  id: "events.scopeParam",
3559
3438
  kind: "formatter",
3560
3439
  summary: "Public event query params for the section scope",
3561
- schema: z.object({ key: z.enum(eventScopeQueryKeys) }),
3440
+ schema: scopeParamSchema,
3562
3441
  run(value, { key }) {
3563
- return eventScopeLoaderParam(eventScopeQuery(resolveEventScope(asPartialObject(value) ?? {})), key);
3442
+ return eventScopeLoaderParam(resolveEventScopeRead(asPartialObject(value) ?? {}).query, key);
3443
+ }
3444
+ };
3445
+ /** Public event query params for whatever the calendar's display mode reads (see resolveEventCalendarRead). */
3446
+ const eventCalendarReadParam = {
3447
+ id: "events.calendarReadParam",
3448
+ kind: "formatter",
3449
+ summary: "Public event query params for the calendar display mode",
3450
+ schema: scopeParamSchema,
3451
+ run(value, { key }) {
3452
+ return eventScopeLoaderParam(resolveEventCalendarRead(asPartialObject(value) ?? {}).query, key);
3564
3453
  }
3565
3454
  };
3566
3455
  const readJobSchema = z.object({ job: z.enum([
@@ -3647,6 +3536,7 @@ const builtinTransformDefinitions = [
3647
3536
  eventCalendarListWindow,
3648
3537
  eventCalendarSelectionParam,
3649
3538
  eventScopeParam,
3539
+ eventCalendarReadParam,
3650
3540
  eventCalendarReadEnabled,
3651
3541
  eventCalendarReadProfile,
3652
3542
  eventCalendarBanded,
@@ -3974,8 +3864,9 @@ function transformSdkBlockToManifest(sdkBlock) {
3974
3864
  variants: sdkBlock.variants,
3975
3865
  defaultVariant: sdkBlock.defaultVariant,
3976
3866
  variantOptions: sdkBlock.variantOptions,
3977
- promotedFields: sdkBlock.promotedFields,
3867
+ ...sdkBlock.editing && placedEditingPaths(sdkBlock.editing).includes("_sectionStyles.background.image") ? { sectionPhoto: { path: sectionPhotoPath } } : {},
3978
3868
  lookField: sdkBlock.lookField,
3869
+ editing: sdkBlock.editing,
3979
3870
  behaviours: {
3980
3871
  supportsThemeSwitching: true,
3981
3872
  inlineEditing: hasLayout,
@@ -4025,27 +3916,35 @@ function toResolvedCustomBlock(manifest, source) {
4025
3916
  function planCustomBlockRegistryResolution({ sdkConfig, customBlocks = [], policy = defaultCustomBlockSourcePolicy }) {
4026
3917
  switch (policy.kind) {
4027
3918
  case "canonical-db-fallback-sdk": {
4028
- const entriesByKind = /* @__PURE__ */ new Map();
4029
- const conflicts = [];
4030
- for (const customBlock of customBlocks) entriesByKind.set(customBlock.manifest.id, toResolvedCustomBlock(customBlock.manifest, customBlock.source));
4031
- for (const sdkBlock of sdkConfig?.customBlocks ?? []) {
4032
- const existing = entriesByKind.get(sdkBlock.id);
4033
- if (existing) {
4034
- conflicts.push({
3919
+ const initial = {
3920
+ entriesByKind: new Map(customBlocks.map((entry) => [entry.manifest ? entry.manifest.id : entry.blockKind, entry])),
3921
+ conflicts: []
3922
+ };
3923
+ const resolution = (sdkConfig?.customBlocks ?? []).reduce((current, sdkBlock) => {
3924
+ const existing = current.entriesByKind.get(sdkBlock.id);
3925
+ if (existing) return {
3926
+ ...current,
3927
+ conflicts: [...current.conflicts, {
4035
3928
  kind: "conflict",
4036
- blockKind: existing.blockKind,
3929
+ blockKind: sdkBlock.id,
4037
3930
  winner: existing.source,
4038
3931
  loser: { kind: "sdk-config" },
4039
3932
  reason: "db-canonical-sdk-fallback"
4040
- });
4041
- continue;
4042
- }
4043
- entriesByKind.set(sdkBlock.id, toResolvedCustomBlock(sdkBlock, { kind: "sdk-config" }));
4044
- }
3933
+ }]
3934
+ };
3935
+ const entry = {
3936
+ manifest: sdkBlock,
3937
+ source: { kind: "sdk-config" }
3938
+ };
3939
+ return {
3940
+ ...current,
3941
+ entriesByKind: new Map([...current.entriesByKind, [sdkBlock.id, entry]])
3942
+ };
3943
+ }, initial);
4045
3944
  return {
4046
3945
  policy,
4047
- entries: Array.from(entriesByKind.values()),
4048
- conflicts
3946
+ entries: [...resolution.entriesByKind.values()].flatMap((entry) => entry.manifest ? [toResolvedCustomBlock(entry.manifest, entry.source)] : []),
3947
+ conflicts: [...resolution.conflicts]
4049
3948
  };
4050
3949
  }
4051
3950
  }
@@ -4057,7 +3956,7 @@ function createCustomBlockRegistry({ sdkConfig, customBlocks = [], policy = defa
4057
3956
  policy
4058
3957
  });
4059
3958
  const entriesByKind = new Map(plan.entries.map((entry) => [entry.blockKind, entry]));
4060
- for (const conflict of plan.conflicts) onConflict?.(`Using ${sourceLabel(conflict.winner)} custom block "${conflict.blockKind}" - ${sourceLabel(conflict.loser)} block is fallback only`);
3959
+ for (const conflict of plan.conflicts) onConflict?.(`Canonical ${sourceLabel(conflict.winner)} definition for "${conflict.blockKind}" takes precedence; ${sourceLabel(conflict.loser)} fallback ignored`);
4061
3960
  return {
4062
3961
  entries: plan.entries,
4063
3962
  conflicts: plan.conflicts,
@@ -4126,20 +4025,27 @@ function joinAcrossRun(byPair, previousBlockId, nextBlockId, run) {
4126
4025
  }
4127
4026
  /**
4128
4027
  * The single composition site. For every adjacent pair of survivors with ids,
4129
- * finds its join and composes it from both survivors' final content: what
4130
- * each paints with and the frame each draws.
4028
+ * finds its join and composes it, and decides their seam, from the same facts
4029
+ * read once from each survivor's final content: what each paints with and the
4030
+ * frame each draws.
4131
4031
  */
4132
4032
  function composePageJoins(input) {
4133
4033
  const byPair = joinsByPair(input.joins);
4034
+ const sides = input.survivors.map((survivor) => ({
4035
+ facts: sectionFactsForContent(survivor.content, survivor.ground),
4036
+ section: survivor.section
4037
+ }));
4134
4038
  return input.survivors.flatMap((previous, index) => {
4135
4039
  const next = input.survivors[index + 1];
4136
- if (!next || !previous.id || !next.id) return [];
4040
+ const before = sides[index];
4041
+ const after = sides[index + 1];
4042
+ if (!next || !before || !after || !previous.id || !next.id) return [];
4137
4043
  const join = byPair.get(pairKey(previous.id, next.id));
4138
4044
  return [{
4139
4045
  previousBlockId: previous.id,
4140
4046
  nextBlockId: next.id,
4141
- join: join ? composeJoin(join, previous, next) : null,
4142
- fieldsMeet: sectionShapeFromContent(previous.content) === "field" && sectionShapeFromContent(next.content) === "field"
4047
+ join: join ? composeJoin(join, before.facts, after.facts) : null,
4048
+ seam: sectionSeam(before, after)
4143
4049
  }];
4144
4050
  });
4145
4051
  }
@@ -4149,7 +4055,7 @@ function composeJoin(join, previous, next) {
4149
4055
  previousBlockId: join.previousBlockId,
4150
4056
  nextBlockId: join.nextBlockId,
4151
4057
  treatment: join.treatment,
4152
- outcome: composeBoundary(sectionFactsForContent(previous.content), sectionFactsForContent(next.content), join.treatment)
4058
+ outcome: composeBoundary(previous, next, join.treatment)
4153
4059
  };
4154
4060
  }
4155
4061
  /** Placement, reserves and paint for a join that draws; null otherwise. */
@@ -4536,7 +4442,7 @@ function arrangementQuoteContent(blockKind, effective, values) {
4536
4442
  function arrangementPanelContent(content, effective, mode) {
4537
4443
  if (mode === "calendar") return {
4538
4444
  _lookMonthArrangement: effective.look.structure.byMode.calendar,
4539
- defaultCalendarView: "month"
4445
+ defaultCalendarView: eventCalendarLookViews.defaultCalendarView
4540
4446
  };
4541
4447
  const arrangement = effective.look.structure.byMode[mode ?? "default"];
4542
4448
  if (arrangement === "event-header") return { heading: void 0 };
@@ -4750,4 +4656,4 @@ function plannedSlotParents(entry, look) {
4750
4656
  return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
4751
4657
  }
4752
4658
  //#endregion
4753
- export { formatEventDuration as $, OfferingCourseCards as A, EventItem as B, resolvePageRouteTarget as C, EVENT_REGISTRATION_ANCHOR_ID as D, EventHeader as E, createEditorPresentationPageReader as F, eventDisplayTitleText as G, CalendarIcon as H, createPresentationPageReader as I, buildMonthDay as J, formatCourseDatesAfter as K, EmptyState as L, offeringDatesBySeries as M, deriveEventScheduleSummary as N, MonthLookView as O, derivePreviewRunSchedule as P, formatEventTeacherLine as Q, CardListCollection as R, resolveEntryRouteTarget as S, lookPartShown as T, MapPinIcon as U, eventCategoryBadge as V, eventDisplayTitle as W, formatEventQuickDate as X, resolveMonthSelectedDay as Y, selectQuickDateEvents as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, arrangementContentFacts as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, buildThemeTokens as ct, resolveLinkedEntryInlineFieldEligibility as d, resolveEventCardBooking as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, selectBlockContent as it, eventCardListContent as j, EventListingFrameView as k, buildLinkedContentEditTarget as l, defaultThemeTokens as lt, formatAppointmentDuration as m, createPageRenderPlanReader as n, resolveEventLinkProps as nt, renderedJoinLayout as o, lookFillPartsFromContent as ot, defaultTransforms as p, formatCourseSessions as q, planArrangementContent as r, parseStoredVariant as rt, retargetJoinsAcrossOmissions as s, resolveRuntimeSection as st, buildPageRenderPlan as t, resolveEventCta as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, CardListItems as z };
4659
+ export { parseStoredVariant as $, eventCardListContent as A, eventCategoryBadge as B, resolvePageRouteTarget as C, MonthLookView as D, EVENT_REGISTRATION_ANCHOR_ID as E, createPresentationPageReader as F, formatCourseDatesAfter as G, MapPinIcon as H, EmptyState as I, resolveMonthSelectedDay as J, formatCourseSessions as K, CardListCollection as L, deriveEventScheduleSummary as M, derivePreviewRunSchedule as N, EventListingFrameView as O, createEditorPresentationPageReader as P, formatEventDuration as Q, CardListItems as R, resolveEntryRouteTarget as S, EventHeader as T, eventDisplayTitle as U, CalendarIcon as V, eventDisplayTitleText as W, selectQuickDateEvents as X, formatEventQuickDate as Y, formatEventTeacherLine as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, defaultThemeTokens as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, resolveLinkedEntryInlineFieldEligibility as d, selectBlockContent as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, buildThemeTokens as it, offeringDatesBySeries as j, OfferingCourseCards as k, buildLinkedContentEditTarget as l, formatAppointmentDuration as m, createPageRenderPlanReader as n, lookFillPartsFromContent as nt, renderedJoinLayout as o, defaultTransforms as p, buildMonthDay as q, planArrangementContent as r, resolveRuntimeSection as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, arrangementContentFacts as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, EventItem as z };