@riverbankcms/sdk 0.158.0 → 0.160.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 (196) hide show
  1. package/README.md +25 -6
  2. package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
  3. package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
  4. package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
  5. package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
  6. package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
  7. package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
  8. package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
  10. package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
  11. package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
  12. package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
  13. package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
  14. package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
  15. package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
  16. package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
  17. package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
  19. package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
  20. package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
  21. package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +12 -6
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/index.d.ts +8 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  42. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  44. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  45. package/dist/_dts/sdk/src/server.d.ts +5 -5
  46. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
  48. package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
  49. package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
  50. package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
  51. package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
  53. package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
  54. package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
  57. package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
  59. package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
  61. package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
  62. package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
  63. package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
  64. package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
  65. package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
  66. package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
  67. package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
  68. package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
  69. package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
  70. package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
  71. package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
  72. package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
  73. package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
  74. package/dist/client/bookings.mjs +6 -6
  75. package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
  76. package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
  77. package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
  78. package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
  79. package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
  80. package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
  81. package/dist/client/client.mjs +25 -13
  82. package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
  83. package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
  84. package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
  85. package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
  86. package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
  87. package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
  88. package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
  89. package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
  90. package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
  91. package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
  92. package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
  93. package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
  94. package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
  95. package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
  96. package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
  97. package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
  98. package/dist/client/gifting/client.mjs +3 -3
  99. package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
  100. package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
  101. package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
  102. package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
  103. package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
  104. package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
  105. package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
  106. package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
  107. package/dist/client/portal/client.mjs +4562 -174
  108. package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
  109. package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
  110. package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
  111. package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
  112. package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
  113. package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
  114. package/dist/client/rendering/client.mjs +27 -26
  115. package/dist/client/rendering/islands.mjs +1 -1
  116. package/dist/client/rendering.mjs +47 -28
  117. package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
  118. package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
  119. package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
  120. package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
  121. package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
  122. package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
  123. package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
  124. package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
  125. package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
  126. package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
  127. package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
  128. package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
  129. package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
  130. package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
  131. package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
  132. package/dist/client/uuid-BETKW8rS.mjs +12 -0
  133. package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
  134. package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
  135. package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
  136. package/dist/preview-next/before-render.mjs +1 -1
  137. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
  138. package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
  139. package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
  141. package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
  142. package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
  143. package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
  144. package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
  145. package/dist/preview-next/client/runtime.mjs +3 -3
  146. package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
  147. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
  148. package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
  149. package/dist/preview-next/editor-base.css +62 -0
  150. package/dist/preview-next/editor-chrome.css +85 -0
  151. package/dist/preview-next/keepAlive.mjs +1 -1
  152. package/dist/preview-next/middleware.mjs +1 -1
  153. package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
  154. package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
  155. package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
  156. package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
  157. package/dist/server/config-template-validation.mjs +50 -10
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
  161. package/dist/server/index.mjs +2 -2
  162. package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
  163. package/dist/server/loadPage-DUPP51C-.mjs +2 -0
  164. package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
  165. package/dist/server/manifest.mjs +1 -1
  166. package/dist/server/metadata.mjs +2 -2
  167. package/dist/server/next.mjs +13 -12
  168. package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
  169. package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
  170. package/dist/server/page-converter.mjs +8 -10
  171. package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
  172. package/dist/server/prebuild.mjs +1 -1
  173. package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
  174. package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
  175. package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
  176. package/dist/server/rendering/server.mjs +4 -4
  177. package/dist/server/rendering.mjs +7 -7
  178. package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
  179. package/dist/server/routing.mjs +1 -1
  180. package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
  181. package/dist/server/server.mjs +3 -3
  182. package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
  183. package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
  184. package/dist/server/theme-bridge.mjs +1 -1
  185. package/dist/server/theme.mjs +1 -1
  186. package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
  187. package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
  188. package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
  189. package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
  190. package/dist/styles/index.css +78 -0
  191. package/package.json +8 -3
  192. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  193. package/dist/_dts/index-cnymEAZY.d.ts +0 -1
  194. package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
  195. package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
  196. package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
@@ -1,12 +1,12 @@
1
1
  import { D as ok, E as err, s as runtimeMediaSchema, u as renderableMediaAssetSchema } from "./media-CcHwZkdJ.mjs";
2
2
  import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
3
- import { $i as buildMailingListSignupBlockSourceRef, $n as resolvedItemSurfaceProps, $r as CirclePlusIcon, $t as groupEventsByDate, A as buildEventCalendarInteractiveIslandProps, An as composeHeaderSectionWrapperClassName, Ar as resolveBackgroundColorValue, At as resolveOfferingsRenderInput, Bt as formatEventPriceDisplay, C as membershipClassesLabel, Ca as resolvePricingOptionsPriceDisplay, Ci as PUBLIC_DOWNLOAD_MEDIA_TYPES, Cn as bookingConsentCarrierSchema, Cr as boxStyleClassNames, Ct as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, D as buildOfferingsCatalogueListing, Dn as shouldReserveFeatureCardIconZone, Dt as resolveOfferingsPreviewGroupCta, E as publicRouteCandidatesSchema, En as resolveFeatureCardGeneratedIconSizePx, Et as offeringsListingFor, F as buildEventCollectionHydration, Fi as resolveEffectiveArrangement, Ft as getIconComponent, G as CardListLeadDate, Gn as createInteractiveIslandCodec, Gt as formatCalendarTitle, H as catalogueEventCardProps, Hn as formBlockDefinition, I as buildEventCollectionListingDisplay, It as SpinnerNode, J as MediaNodeServer, Ji as resolveDateRuntimeContext, Jn as defineClientOwnedBlockRuntime, Jr as parseBlockIconValue, Jt as formatEventDateParts, K as resolveCardListSchedule, Kn as defineInteractiveIslandMetaKeys, Kr as normalizeBlockContent, Kt as formatDate, L as eventCollectionDisplaySchemaShape, Lt as buildEventListWeek, M as eventListingBlockDefinition, Mn as splitPositioningClasses, Mr as el, Mt as ThemedButton, N as buildEventListingInteractiveIslandProps, Ni as arrangementManifestFromVariants, Nr as when, Nt as ThemedButtonLink, Ot as resolveOfferingsPreviewGroups, P as buildEventCollectionDisplay, Pt as ThemedDownloadLink, Qi as resolveWholeSeriesBookingPhase, Qn as listLookSlot, Qr as CircleMinusIcon, Qt as formatTime, R as eventCollectionHydrationSchema, Rn as staticHeaderChromeRuntime, Rt as formatEventPrice, S as membershipCardListContent, Sa as resolveExactOrFreePriceDisplay, Sn as blockBookingConsentSchema, T as offeringsPreviewBlockDefinition, Ta as parseCurrencyCode, Tn as FEATURE_CARD_ICON_TREATMENTS, Tr as resolveCardRoleForBoxStyles, Tt as normalizeOfferingsPreviewItemLimit, U as listingEventCardProps, Un as buildFormInteractiveIslandProps, Ur as runTransforms, Ut as eventDateOptions, Vt as buildCalendarViewport, W as CardListContentPart, Wn as buildInteractiveIslandProps, Wt as eventLocalDateKey, X as ImagePresets, Xi as nextLiveRunSessionStartMs, Xn as listItemPresentation, Xr as ArrowDownIcon, Xt as formatEventNextDateFact, Y as RichText, Yi as CANCELLED_SESSION_STATUS, Yn as defineProgressiveBlockRuntime, Yr as resolveBlockIconRenderValue, Yt as formatEventHourLabel, Z as MediaPlaceholder, Zi as orderedLiveRunSessions, Zn as listLookControl, Zr as ChevronDownIcon, Zt as formatEventTimeRange, _ as buildCheckoutInteractiveIslandProps, _a as formatBookingPriceDisplay, _i as parseFieldDefinitions, _n as getEventAvailabilityStatus, _r as ctaRowFragment, aa as formatDateRange, ai as MinusIcon, an as getDayOfWeek, ar as headingFragment, at as setContextResolveImageUrlContext, b as buildShopInteractiveIslandProps, ba as publicEventPricingDisplay, bi as bindingSchema, bn as groupPublicEventsByRun, br as bodyCopyFragment, c as newsletterBlockSubmissionMessage, ca as formatBookingCompactEnglishTime, ci as isInlineTextEmpty, cn as getWeekCalendarDays, cr as faqHeadingFragment, ct as getContainerClass, d as checkoutBlockDefinition, da as parseBookingLocalDate, dn as resolveRuntimeEventDestination, dr as formEmbedFragment, dt as buildEventRegistrationInteractiveIslandProps, ea as parseMailingListRuntimeContext, ei as ClockIcon, en as resolveEventTimeZone, er as itemRole, f as cartBlockDefinition, fa as parseLocalScheduleTime, fn as browserReadAuthoritySchema, fr as formCopyFragment, ft as bookingNowSchema, g as buildCartInteractiveIslandProps, ga as toUtcIsoDateTimeString, gn as getEventAvailability, gr as heroCtaRowFragment, h as shopBlockDefinition, ha as toScheduledBookingDateTime, hn as formatTotalCapacity, hr as ctaCopyFragment, i as newsletterSignupBlockDefinition, ia as formatDate$1, ii as FileTextIcon, in as formatDateKey, ir as richTextFragment, it as getCurrentResolveImageUrlContext, j as buildEventCalendarListingDisplay, jn as markEditableSurfaceForwarding, jr as ctaButton, jt as ThemedAuthoredButton, k as eventCalendarBlockDefinition, kt as resolveOfferingsPreviewRunPath, l as giftingBlockDefinition, la as getBookingLocalDateKey, li as parseInlineTextFromUnknown, ln as isSameCalendarDay, lr as blogFeaturedPostFragment, m as productListBlockDefinition, ma as toBookingTimeZone, mn as formatEventRemainingPlaces, mr as testimonialsHeadingFragment, n as normalizeLocationMapProps, na as parseMailingListPlacementTargeting, ni as FileAudioIcon, nn as getLocalMinuteOfDay, nr as Grid, nt as resolvePublicMediaUrl, o as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, oa as formatDateTimeRange, oi as PlusIcon, on as getOrderedDayNames, or as cardFragment, ot as sanitizeHref, p as productDetailBlockDefinition, pa as resolveBookingBusinessTimeZone, pn as canJoinEventWaitlistOnAnyMode, pr as testimonialsCarouselFragment, pt as previewStageSchema, q as selectCardListPresentation, qi as readRuntimeNow, qn as createZodCodec, qr as buildGeneratedBlockIconRenderAssetLookupFromUnknown, qt as formatEventCompactDateRail, r as toLocationMapHydrationProps, ra as sameMailingListPlacementTargeting, ri as FileSpreadsheetIcon, rn as addDays, rr as clsx, rt as buildResolveImageUrlContext, s as buildNewsletterFormInteractiveIslandProps, si as inlineTextToPlainText, sn as getWeekCalendarDayTuple, sr as faqAccordionFragment, st as getCardOrientation, t as buildGoogleMapsDirectionsUrl, ti as FileArchiveIcon, tn as getLocalDateKey, u as buildGiftingInteractiveIslandProps, ua as getLocalScheduleDate, un as isToday, ur as singleButtonFragment, ut as eventRegistrationBlockDefinition, v as buildProductDetailInteractiveIslandProps, va as isPublicEventPricingOptionDisplayable, vn as isEventFull, vr as isBlockButtonRole, vt as normalizeEventRegistrationPageSurfaceSubject, w as passCardListContent, wa as formatCurrencyAmount, wn as blockBookingPaymentTermsSchema, wr as normalizeBoxStylesBorder, wt as buildOfferingsPreviewListing, x as shopProductPresentation, xa as publicEventPricingType, xn as publicEventsArraySchema, xr as defineFragment, y as buildProductListInteractiveIslandProps, ya as publicEventPricingCurrency, yn as blockSiteTermsSchema, yr as heroCopyFragment, yt as resolveEventRegistrationScopedEvents, z as eventCollectionSourceSchemaShape, zt as formatEventPriceAmount } from "./blocks-jlIm0PWc.mjs";
4
- import { g as validateManifestDraft, h as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-D2-BnmDO.mjs";
5
- import { C as resolvePageRouteTarget, D as parseStoredVariant, E as resolveLinkedEntryInlineFieldEligibility, S as resolveEntryRouteTarget, T as buildLinkedContentEditTarget, _ as renderedJoinLayout, b as defaultTransforms, f as buildPageRenderPlan, g as joinSlotKey, h as composePageJoins, m as toPresentationPage, p as toEditorPresentationPage, v as retargetJoinsAcrossOmissions, w as resolveRouteTarget } from "./prefetchBlockData-Bjya-X9t.mjs";
6
- import { E as ICON_CONFIG, En as defaultThemeTokens, Jn as parseThemeColorToken, Jt as testimonialsCompositionTreatmentValues, Ln as getTextColorForBackground, N as generateDefaultButtonSystem, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Rt as featureCardCompositionTreatmentValues, Vt as introCompositionTreatmentValues, Wt as offeringsPreviewCompositionTreatmentValues, cn as rgbColorValue, gn as resolveOnColorForThemeToken, hn as isCssColorLiteral, in as backgroundColorStyle, ln as textColorStyle, sn as mergeStyles, vn as resolveTokenOrCssColorValue } from "./schema-Bs735S27.mjs";
7
- import { A as arrangementLookHooks } from "./siteChromeOverlayClearance-BangtD8A.mjs";
3
+ import { $ as ImagePresets, $n as createInteractiveIslandCodec, $r as parseBlockIconValue, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as isPublicEventPricingOptionDisplayable, An as FEATURE_CARD_ICON_TREATMENTS, At as resolveOfferingsPreviewGroupCta, B as eventCollectionDisplaySchemaShape, Bn as resolveDateRuntimeContext, Br as el, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseBookingLocalDate, Cn as isEventFull, Cr as ctaCopyFragment, D as passCardListContent, Da as toScheduledBookingDateTime, Dn as blockBookingConsentSchema, Dr as heroCopyFragment, Dt as buildOfferingsPreviewListing, E as membershipClassesLabel, Ea as toBookingTimeZone, En as publicEventsArraySchema, Er as isBlockButtonRole, Et as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, F as eventListingBlockDefinition, Fa as resolvePricingOptionsPriceDisplay, Fn as composeHeaderSectionWrapperClassName, Ft as ThemedButton, G as catalogueEventCardProps, Gn as staticHeaderChromeRuntime, H as eventCollectionSourceSchemaShape, Hi as arrangementManifestFromVariants, Ht as formatEventPriceAmount, I as buildEventListingInteractiveIslandProps, Ia as formatCurrencyAmount, In as markEditableSurfaceForwarding, It as ThemedButtonLink, J as CardListLeadDate, Jt as formatCalendarTitle, K as listingEventCardProps, Kt as eventDateOptions, L as buildEventCollectionDisplay, La as parseCurrencyCode, Ln as splitPositioningClasses, Lt as ThemedDownloadLink, M as buildEventCalendarInteractiveIslandProps, Ma as publicEventPricingDisplay, Mi as PUBLIC_DOWNLOAD_MEDIA_TYPES, Mn as shouldReserveFeatureCardIconZone, Mr as normalizeBoxStylesBorder, Mt as resolveOfferingsPreviewRunPath, N as buildEventCalendarListingDisplay, Na as publicEventPricingType, Nr as resolveCardRoleForBoxStyles, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as toUtcIsoDateTimeString, On as bookingConsentCarrierSchema, Or as bodyCopyFragment, Ot as normalizeOfferingsPreviewItemLimit, Pa as resolveExactOrFreePriceDisplay, Pt as ThemedAuthoredButton, Q as RichText, Qn as buildInteractiveIslandProps, Qr as buildGeneratedBlockIconRenderAssetLookupFromUnknown, Qt as formatEventDateParts, R as buildEventCollectionHydration, Rr as resolveBackgroundColorValue, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as getLocalScheduleDate, Sn as getEventAvailabilityStatus, Sr as testimonialsHeadingFragment, St as resolveEventRegistrationScopedEvents, T as membershipCardListContent, Ta as resolveBookingBusinessTimeZone, Tn as groupPublicEventsByRun, Tr as ctaRowFragment, Ut as formatEventPriceDisplay, V as eventCollectionHydrationSchema, Vr as when, Vt as formatEventPrice, Wi as resolveEffectiveArrangement, Wt as buildCalendarViewport, X as selectCardListPresentation, Xn as formBlockDefinition, Xt as formatEventClockLabel, Y as resolveCardListSchedule, Yt as formatDate, Z as MediaNodeServer, Zn as buildFormInteractiveIslandProps, Zr as runTransforms, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _a as formatDateTimeRange, _n as browserReadAuthoritySchema, _r as blogFeaturedPostFragment, a as normalizeLocationMapProps, aa as unavailableReadinessFact, ai as ClockIcon, an as getLocalDateKey, ar as listLookControl, at as resolvePublicMediaUrl, b as buildCheckoutInteractiveIslandProps, ba as formatBookingCompactEnglishTime, bn as formatTotalCapacity, br as formCopyFragment, ca as orderedLiveRunSessions, ci as FileSpreadsheetIcon, cn as formatDateKey, cr as itemRole, ct as setContextResolveImageUrlContext, d as newsletterBlockSubmissionMessage, da as parseMailingListRuntimeContext, di as PlusIcon, dn as getWeekCalendarDayTuple, dr as clsx, dt as getContainerClass, ei as resolveBlockIconRenderValue, en as formatEventNextDateFact, er as defineInteractiveIslandMetaKeys, et as MediaPlaceholder, f as giftingBlockDefinition, fi as inlineTextToPlainText, fn as getWeekCalendarDays, fr as richTextFragment, g as productDetailBlockDefinition, ga as formatDateRange, gn as formatBookingSchedulePresentation, gr as faqHeadingFragment, gt as previewStageSchema, h as cartBlockDefinition, ha as formatDate$1, hn as resolveRuntimeEventDestination, hr as faqAccordionFragment, ht as bookingNowSchema, i as buildGoogleMapsDirectionsUrl, ia as pageTemplateFromEntry, ii as CirclePlusIcon, in as resolveEventTimeZone, ir as listItemPresentation, j as eventCalendarBlockDefinition, ja as publicEventPricingCurrency, jn as resolveFeatureCardGeneratedIconSizePx, jr as boxStyleClassNames, jt as resolveOfferingsPreviewGroups, k as publicRouteCandidatesSchema, ka as formatBookingPriceDisplay, ki as bindingSchema, kn as blockBookingPaymentTermsSchema, kr as defineFragment, kt as offeringsListingFor, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, la as resolveWholeSeriesBookingPhase, li as FileTextIcon, ln as getDayOfWeek, lt as sanitizeHref, m as checkoutBlockDefinition, ma as sameMailingListPlacementTargeting, mi as parseInlineTextFromUnknown, mn as isToday, mr as cardFragment, mt as buildEventRegistrationInteractiveIslandProps, na as admitReadinessFacts, ni as ChevronDownIcon, nn as formatTime, nr as defineClientOwnedBlockRuntime, o as toLocationMapHydrationProps, oa as CANCELLED_SESSION_STATUS, oi as FileArchiveIcon, on as getLocalMinuteOfDay, or as listLookSlot, ot as buildResolveImageUrlContext, p as buildGiftingInteractiveIslandProps, pa as parseMailingListPlacementTargeting, pi as isInlineTextEmpty, pn as isSameCalendarDay, pr as headingFragment, pt as eventRegistrationBlockDefinition, q as CardListContentPart, qt as eventLocalDateKey, r as normalizeBlockContent, ra as loadedReadinessFact, ri as CircleMinusIcon, rn as groupEventsByDate, rr as defineProgressiveBlockRuntime, s as newsletterSignupBlockDefinition, sa as nextLiveRunSessionStartMs, si as FileAudioIcon, sn as addDays, sr as resolvedItemSurfaceProps, st as getCurrentResolveImageUrlContext, t as getBlockDefinition, ta as chosenString, ti as ArrowDownIcon, tn as formatEventTimeRange, tr as createZodCodec, u as buildNewsletterFormInteractiveIslandProps, ua as buildMailingListSignupBlockSourceRef, ui as MinusIcon, un as getOrderedDayNames, ur as Grid, ut as getCardOrientation, v as shopBlockDefinition, vn as canJoinEventWaitlistOnAnyMode, vr as singleButtonFragment, w as shopProductPresentation, wa as parseLocalScheduleTime, wi as parseFieldDefinitions, wn as blockSiteTermsSchema, wr as heroCtaRowFragment, x as buildProductDetailInteractiveIslandProps, xa as getBookingLocalDateKey, xn as getEventAvailability, xr as testimonialsCarouselFragment, xt as normalizeEventRegistrationPageSurfaceSubject, y as buildCartInteractiveIslandProps, ya as compareLocalScheduleDates, yn as formatEventRemainingPlaces, yr as formEmbedFragment, z as buildEventCollectionListingDisplay, zn as readRuntimeNow, zr as ctaButton, zt as SpinnerNode } from "./registry-eFjKtEhF.mjs";
4
+ import { g as validateManifestDraft, h as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-ruoyXb_0.mjs";
5
+ import { C as resolvePageRouteTarget, D as parseStoredVariant, E as toPresentationPage, S as resolveEntryRouteTarget, T as toEditorPresentationPage, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as buildPageRenderPlan, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-B7ukYXXR.mjs";
6
+ import { E as ICON_CONFIG, En as defaultThemeTokens, Jn as parseThemeColorToken, Jt as testimonialsCompositionTreatmentValues, Ln as getTextColorForBackground, N as generateDefaultButtonSystem, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Rt as featureCardCompositionTreatmentValues, Vt as introCompositionTreatmentValues, Wt as offeringsPreviewCompositionTreatmentValues, cn as rgbColorValue, gn as resolveOnColorForThemeToken, hn as isCssColorLiteral, in as backgroundColorStyle, ln as textColorStyle, sn as mergeStyles, vn as resolveTokenOrCssColorValue } from "./schema-C3dJ5UkL.mjs";
7
+ import { A as arrangementLookHooks } from "./siteChromeOverlayClearance-DALIAMwo.mjs";
8
8
  import { a as isRecord$4, i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
9
- import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-B935_bzN.mjs";
9
+ import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-C5Mu-z0F.mjs";
10
10
  import { t as getAtPath } from "./src-Cxucn-1P.mjs";
11
11
  import { z } from "zod";
12
12
  import * as React$1 from "react";
@@ -1171,6 +1171,7 @@ const eventItemParts = {
1171
1171
  "action"
1172
1172
  ],
1173
1173
  grid: [
1174
+ "image",
1174
1175
  "date",
1175
1176
  "title",
1176
1177
  "meta",
@@ -1197,7 +1198,11 @@ function eventItemFacts(props) {
1197
1198
  date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
1198
1199
  time: formatEventTimeRange(props.event, options),
1199
1200
  price: formatEventPrice(props.event),
1200
- meta: (props.parts ?? eventItemParts[props.arrangement]).includes("time") ? formatEventTeacherLine(props.event) : [formatEventTimeRange(props.event, options), formatEventTeacherLine(props.event)].filter(Boolean).join(" · "),
1201
+ meta: [
1202
+ ...(props.parts ?? eventItemParts[props.arrangement]).includes("time") ? [] : [formatEventTimeRange(props.event, options)],
1203
+ formatEventTeacherLine(props.event),
1204
+ props.showVenue !== false ? props.event.venue?.name : null
1205
+ ].filter(Boolean).join(" · "),
1201
1206
  places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
1202
1207
  availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
1203
1208
  description: props.event.presentation?.summary ?? props.event.description
@@ -1213,7 +1218,7 @@ function EventItem(props) {
1213
1218
  return "item" in props ? renderCardItem(props) : renderCalendarItem(props);
1214
1219
  }
1215
1220
  function renderCalendarItem(props) {
1216
- const parts = props.parts ?? eventItemParts[props.arrangement];
1221
+ const parts = (props.parts ?? eventItemParts[props.arrangement]).filter((part) => part !== "image" || props.showPhotos !== false);
1217
1222
  const facts = eventItemFacts(props);
1218
1223
  const Tag = props.as ?? eventItemTag(props.arrangement);
1219
1224
  const root = props.arrangement === "grid" ? "item" : props.continued ? "row-continued" : "row";
@@ -1907,7 +1912,7 @@ const EventCompactRow = (props) => props.lookSlots === void 0 ? /* @__PURE__ */
1907
1912
  buttonText: props.buttonText ?? "Book",
1908
1913
  as: "article"
1909
1914
  });
1910
- const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
1915
+ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, showVenue = true }) => {
1911
1916
  event.timeZone;
1912
1917
  const dateRail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
1913
1918
  const formattedTime = formatEventTimeRange(event, eventDateOptions(event));
@@ -1948,7 +1953,7 @@ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText })
1948
1953
  }), /* @__PURE__ */ jsxs("div", {
1949
1954
  className: "event-compact-row-meta",
1950
1955
  children: [
1951
- event.venue && /* @__PURE__ */ jsxs("span", {
1956
+ showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
1952
1957
  className: "event-compact-row-venue",
1953
1958
  children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
1954
1959
  }),
@@ -2151,43 +2156,64 @@ function OfferingTitle({ className, path, title }) {
2151
2156
  });
2152
2157
  }
2153
2158
  //#endregion
2154
- //#region ../blocks/src/system/runtime/blockComposition.ts
2155
- const compositionTreatments = {
2156
- intro: introCompositionTreatmentValues,
2157
- "feature-cards": featureCardCompositionTreatmentValues,
2158
- testimonials: testimonialsCompositionTreatmentValues,
2159
- "offerings-preview": offeringsPreviewCompositionTreatmentValues
2160
- };
2161
- function isCompositionKind(value) {
2162
- return Object.prototype.hasOwnProperty.call(compositionTreatments, value);
2163
- }
2164
- /**
2165
- * Narrow one kind's treatment. Written per-kind so the returned intent is a
2166
- * real union member rather than a cast: `kind` and `treatment` are only known
2167
- * to belong together inside a scope where `Kind` is a single kind.
2168
- */
2169
- function readTreatment(kind, value) {
2170
- const treatment = compositionTreatments[kind].find((candidate) => candidate === value);
2171
- return treatment === void 0 ? null : {
2172
- kind,
2173
- treatment
2174
- };
2159
+ //#region ../blocks/src/system/data/readinessFacts.ts
2160
+ const countSchema = z.array(z.unknown()).transform((entries) => entries.length);
2161
+ const formSchema = z.union([z.null(), z.object({
2162
+ id: z.string(),
2163
+ slug: z.string().optional()
2164
+ })]).transform((form) => form !== null);
2165
+ const productsSchema = z.object({ products: z.array(z.object({ slug: z.string() })) });
2166
+ /** Both producers pass raw facts through the same stage admission. */
2167
+ function readinessFactsFromLoaders(stage, input) {
2168
+ const facts = {
2169
+ mailingList: loaderFactProducers.mailingList(input),
2170
+ testimonials: loaderFactProducers.testimonials(input),
2171
+ team: loaderFactProducers.team(input),
2172
+ forms: loaderFactProducers.forms(input),
2173
+ products: loaderFactProducers.products(input),
2174
+ template: loaderFactProducers.template(input)
2175
+ };
2176
+ return admitReadinessFacts(stage, {
2177
+ stage: input.prefetched?.loaderSnapshot?.stage ?? (input.previewStage === "preview" ? "draft" : "published"),
2178
+ facts
2179
+ });
2175
2180
  }
2176
- function readBlockComposition(value) {
2177
- if (!isRecord$3(value) || typeof value.kind !== "string") return null;
2178
- if (!isCompositionKind(value.kind)) return null;
2179
- return readTreatment(value.kind, value.treatment);
2181
+ const loaderFactProducers = {
2182
+ mailingList: (input) => input.mailingList === void 0 ? unavailableReadinessFact : loadedReadinessFact(input.mailingList),
2183
+ testimonials: (input) => mapFact(firstLoaderFact(input, "testimonials", "entries", countSchema), (count) => ({
2184
+ count,
2185
+ total: "unknown"
2186
+ })),
2187
+ team: (input) => firstLoaderFact(input, "team", "members", countSchema),
2188
+ forms: (input) => new Map(projections(input, "forms").flatMap(({ id, block }) => {
2189
+ const selection = chosenString(block.requests.form?.params.formSlug ?? block.requests.form?.params.formId);
2190
+ return selection ? [[selection, loaderFact(input, id, "form", formSchema)]] : [];
2191
+ })),
2192
+ products: (input) => new Map(projections(input, "products").flatMap(({ id, block }) => {
2193
+ const selection = chosenString(block.content.productSlug);
2194
+ return selection ? [[selection, mapFact(loaderFact(input, id, "products", productsSchema), ({ products }) => products.some((product) => product.slug === selection))]] : [];
2195
+ })),
2196
+ template: (input) => loadedReadinessFact(input.template)
2197
+ };
2198
+ function projections(input, need) {
2199
+ return Object.entries(input.prefetched?.loaderSnapshot?.blocks ?? {}).flatMap(([id, block]) => getBlockDefinition(block.kind)?.readiness?.needs.includes(need) ? [{
2200
+ id,
2201
+ block
2202
+ }] : []);
2180
2203
  }
2181
- function isRecord$3(value) {
2182
- return typeof value === "object" && value !== null && !Array.isArray(value);
2204
+ function firstLoaderFact(input, need, key, schema) {
2205
+ const source = projections(input, need)[0];
2206
+ return source ? loaderFact(input, source.id, key, schema) : unavailableReadinessFact;
2183
2207
  }
2184
- function arrangementHooksFromContent(content) {
2185
- const value = content._lookHooks;
2186
- if (typeof value !== "object" || value === null || Array.isArray(value)) return {};
2187
- return Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string" && arrangementLookHooks.some((hook) => hook.endsWith("*") ? entry[0].startsWith(hook.slice(0, -1)) : entry[0] === hook)));
2208
+ function loaderFact(input, id, key, schema) {
2209
+ const prefetched = input.prefetched;
2210
+ if (!prefetched) return unavailableReadinessFact;
2211
+ if (!prefetched.loaderSnapshot.blocks[id]?.requests[key] || prefetched.loaderFailures[id]?.[key]) return unavailableReadinessFact;
2212
+ const parsed = schema.safeParse(prefetched.resolvedData[id]?.[key]);
2213
+ return parsed.success ? loadedReadinessFact(parsed.data) : unavailableReadinessFact;
2188
2214
  }
2189
- function blockLookFromContent(content) {
2190
- return typeof content.blockLook === "string" ? content.blockLook : void 0;
2215
+ function mapFact(fact, project) {
2216
+ return fact.kind === "Loaded" ? loadedReadinessFact(project(fact.value)) : fact;
2191
2217
  }
2192
2218
  //#endregion
2193
2219
  //#region ../blocks/src/system/runtime/nodes/carousel.shared.ts
@@ -2417,11 +2443,32 @@ function truncate(input, maxLength) {
2417
2443
  if (input.length <= maxLength) return input;
2418
2444
  return input.slice(0, maxLength) + "…";
2419
2445
  }
2446
+ const PRIVATE_LOG_KEYS = /* @__PURE__ */ new Set([
2447
+ "requestbodyvalues",
2448
+ "provideroptions",
2449
+ "byok",
2450
+ "apikey"
2451
+ ]);
2452
+ function logJsonValue(key, value, seen) {
2453
+ if (PRIVATE_LOG_KEYS.has(key.toLowerCase())) return void 0;
2454
+ if (typeof value === "bigint") return String(value);
2455
+ if (value === null || typeof value !== "object") return value;
2456
+ if (seen.has(value)) return "[circular]";
2457
+ seen.add(value);
2458
+ return value instanceof Error ? {
2459
+ ...value,
2460
+ name: value.name,
2461
+ message: value.message,
2462
+ stack: value.stack,
2463
+ cause: "cause" in value ? value.cause : void 0
2464
+ } : value;
2465
+ }
2420
2466
  function safeStringify(value, maxLength) {
2421
2467
  try {
2422
- return truncate(JSON.stringify(value), maxLength);
2468
+ const seen = /* @__PURE__ */ new WeakSet();
2469
+ return truncate(JSON.stringify(value, (key, nested) => logJsonValue(key, nested, seen)), maxLength);
2423
2470
  } catch {
2424
- return truncate(String(value), maxLength);
2471
+ return "[unserializable]";
2425
2472
  }
2426
2473
  }
2427
2474
  function toScalar(value, maxLength) {
@@ -2437,7 +2484,7 @@ function sanitizeV2(fields, maxStringLength) {
2437
2484
  const allowed = {};
2438
2485
  const extra = {};
2439
2486
  for (const [key, value] of Object.entries(fields)) {
2440
- if (value === void 0) continue;
2487
+ if (value === void 0 || PRIVATE_LOG_KEYS.has(key.toLowerCase())) continue;
2441
2488
  if (STRUCTURED_KEYS.has(key)) {
2442
2489
  allowed[key] = toScalar(value, maxStringLength);
2443
2490
  continue;
@@ -3928,7 +3975,7 @@ function teamMemberCardContent(member, index, biographySource) {
3928
3975
  }
3929
3976
  function TeamMembersNode(props) {
3930
3977
  const parsed = z.array(teamMemberCardSchema).safeParse(props.source === "site_staff" ? props.siteMembers : props.members);
3931
- if (!parsed.success || parsed.data.length === 0) return null;
3978
+ if (!parsed.success) return null;
3932
3979
  return /* @__PURE__ */ jsx(CardListItems, {
3933
3980
  Carousel: props.Carousel,
3934
3981
  items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource)),
@@ -3956,12 +4003,12 @@ function toTrimmedString(value) {
3956
4003
  return trimmed ? trimmed : void 0;
3957
4004
  }
3958
4005
  function normalizeBookingFormConfig(form) {
3959
- if (!isRecord$2(form)) return null;
4006
+ if (!isRecord$3(form)) return null;
3960
4007
  const id = readNonEmptyString(form.id);
3961
4008
  const name = readNonEmptyString(form.name);
3962
4009
  if (!id || !name) return null;
3963
- const schemaSource = isRecord$2(form.schema) ? form.schema : isRecord$2(form.schemaJson) ? form.schemaJson : null;
3964
- const settingsSource = isRecord$2(form.settings) ? form.settings : isRecord$2(form.settingsJson) ? form.settingsJson : null;
4010
+ const schemaSource = isRecord$3(form.schema) ? form.schema : isRecord$3(form.schemaJson) ? form.schemaJson : null;
4011
+ const settingsSource = isRecord$3(form.settings) ? form.settings : isRecord$3(form.settingsJson) ? form.settingsJson : null;
3965
4012
  return {
3966
4013
  id,
3967
4014
  name,
@@ -3981,8 +4028,8 @@ function normalizeBookingServices(services) {
3981
4028
  };
3982
4029
  if (!services) return [];
3983
4030
  if (Array.isArray(services)) return services.filter(isBookingFormService).map(normalizeService);
3984
- if (isRecord$2(services) && "services" in services) return Array.isArray(services.services) ? services.services.filter(isBookingFormService).map(normalizeService) : [];
3985
- return isRecord$2(services) ? Object.values(services).filter(isBookingFormService).map(normalizeService) : [];
4031
+ if (isRecord$3(services) && "services" in services) return Array.isArray(services.services) ? services.services.filter(isBookingFormService).map(normalizeService) : [];
4032
+ return isRecord$3(services) ? Object.values(services).filter(isBookingFormService).map(normalizeService) : [];
3986
4033
  }
3987
4034
  function normalizeBookingSchema(value) {
3988
4035
  if (!value) return void 0;
@@ -3993,7 +4040,7 @@ function normalizeBookingSchema(value) {
3993
4040
  };
3994
4041
  }
3995
4042
  function readBookingFormField(value) {
3996
- if (!isRecord$2(value)) return null;
4043
+ if (!isRecord$3(value)) return null;
3997
4044
  const id = readNonEmptyString(value.id);
3998
4045
  const label = readNonEmptyString(value.label);
3999
4046
  const type = readBookingFieldType(value.type);
@@ -4036,7 +4083,7 @@ function readBookingFieldOptions(value) {
4036
4083
  return options.length > 0 ? options : void 0;
4037
4084
  }
4038
4085
  function readBookingFieldOption(value) {
4039
- if (!isRecord$2(value)) return null;
4086
+ if (!isRecord$3(value)) return null;
4040
4087
  const optionValue = readNonEmptyString(value.value);
4041
4088
  const label = readNonEmptyString(value.label);
4042
4089
  return optionValue && label ? {
@@ -4056,7 +4103,7 @@ function normalizeBookingSettings(value) {
4056
4103
  };
4057
4104
  }
4058
4105
  function isBookingFormService(value) {
4059
- return isRecord$2(value) && typeof value.id === "string" && typeof value.siteId === "string" && typeof value.title === "string" && (value.asksSiteTerms === void 0 || typeof value.asksSiteTerms === "boolean") && (value.consent === void 0 || blockBookingConsentSchema.safeParse(value.consent).success);
4106
+ return isRecord$3(value) && typeof value.id === "string" && typeof value.siteId === "string" && typeof value.title === "string" && (value.asksSiteTerms === void 0 || typeof value.asksSiteTerms === "boolean") && (value.consent === void 0 || blockBookingConsentSchema.safeParse(value.consent).success);
4060
4107
  }
4061
4108
  function readNonEmptyString(value) {
4062
4109
  if (typeof value !== "string") return null;
@@ -4074,16 +4121,16 @@ function readStringArray(value) {
4074
4121
  const strings = value.filter((item) => typeof item === "string");
4075
4122
  return strings.length > 0 ? strings : void 0;
4076
4123
  }
4077
- function isRecord$2(value) {
4124
+ function isRecord$3(value) {
4078
4125
  return typeof value === "object" && value !== null;
4079
4126
  }
4080
4127
  //#endregion
4081
4128
  //#region ../blocks/src/system/runtime/nodes/booking-form.service-categories.ts
4082
- function isRecord$1(value) {
4129
+ function isRecord$2(value) {
4083
4130
  return typeof value === "object" && value !== null && !Array.isArray(value);
4084
4131
  }
4085
4132
  function readCategory(value) {
4086
- if (!isRecord$1(value)) return [];
4133
+ if (!isRecord$2(value)) return [];
4087
4134
  const { id, name, description } = value;
4088
4135
  if (typeof id !== "string" || id.trim() === "" || typeof name !== "string") return [];
4089
4136
  return [{
@@ -4099,7 +4146,7 @@ function readCategory(value) {
4099
4146
  * it.
4100
4147
  */
4101
4148
  function normalizeBookingServiceCategories(services) {
4102
- if (!isRecord$1(services) || !Array.isArray(services.categories)) return [];
4149
+ if (!isRecord$2(services) || !Array.isArray(services.categories)) return [];
4103
4150
  return services.categories.flatMap(readCategory);
4104
4151
  }
4105
4152
  //#endregion
@@ -4665,7 +4712,7 @@ function resolveEventDetailsPresentation(input) {
4665
4712
  //#region ../blocks/src/system/blocks/offerings-preview/scheduleSummary.ts
4666
4713
  function deriveEventScheduleSummary(event) {
4667
4714
  const occurrence = occurrenceFromEvent(event);
4668
- return localDayNumber(occurrence.endsAt, occurrence.timeZone) > localDayNumber(occurrence.startsAt, occurrence.timeZone) ? {
4715
+ return compareLocalScheduleDates(getLocalScheduleDate(new Date(occurrence.endsAt), resolveBookingBusinessTimeZone(occurrence.timeZone)), getLocalScheduleDate(new Date(occurrence.startsAt), resolveBookingBusinessTimeZone(occurrence.timeZone))) > 0 ? {
4669
4716
  kind: "multi-day-span",
4670
4717
  occurrence
4671
4718
  } : {
@@ -4673,23 +4720,18 @@ function deriveEventScheduleSummary(event) {
4673
4720
  occurrence
4674
4721
  };
4675
4722
  }
4676
- function derivePreviewRunSchedule(runSessions) {
4677
- const sessions = orderedLiveRunSessions(runSessions).filter(isValidOccurrence);
4723
+ function derivePreviewRunSchedule(event) {
4724
+ const sessions = orderedLiveRunSessions(event.run.sessions).filter(isValidOccurrence);
4678
4725
  const first = sessions[0];
4679
4726
  const last = sessions[sessions.length - 1];
4680
4727
  if (!first || !last) return { kind: "no-live-sessions" };
4681
- const recurrence = sessions.length > 1 ? deriveFixedRecurrence(sessions) : null;
4682
- const summary = sessions.length === 1 ? deriveEventScheduleSummary(first) : recurrence ? {
4683
- kind: "fixed-recurring-run",
4728
+ const authoredSummary = formatBookingSchedulePresentation("representative" in event ? event.representative : event);
4729
+ const summary = !authoredSummary && sessions.length === 1 ? deriveEventScheduleSummary(first) : {
4730
+ kind: "scheduled-run",
4684
4731
  first,
4685
4732
  last,
4686
4733
  sessionCount: sessions.length,
4687
- recurrenceLabel: recurrence
4688
- } : {
4689
- kind: "irregular-multi-session-run",
4690
- first,
4691
- last,
4692
- sessionCount: sessions.length
4734
+ authoredSummary
4693
4735
  };
4694
4736
  return {
4695
4737
  kind: "scheduled",
@@ -4705,59 +4747,9 @@ function occurrenceFromEvent(event) {
4705
4747
  timeZone: event.timeZone
4706
4748
  };
4707
4749
  }
4708
- function deriveFixedRecurrence(sessions) {
4709
- const [first, second] = sessions;
4710
- if (!first || !second) return null;
4711
- if (!sessions.every((session) => sameLocalTime(first, session))) return null;
4712
- const intervalDays = localDayNumber(second.startsAt, second.timeZone) - localDayNumber(first.startsAt, first.timeZone);
4713
- if (intervalDays <= 0) return null;
4714
- for (let index = 2; index < sessions.length; index += 1) {
4715
- const previous = sessions[index - 1];
4716
- const current = sessions[index];
4717
- if (!previous || !current) return null;
4718
- if (localDayNumber(current.startsAt, current.timeZone) - localDayNumber(previous.startsAt, previous.timeZone) !== intervalDays) return null;
4719
- }
4720
- if (intervalDays === 1) return "Every day";
4721
- const weekday = localDateParts(first.startsAt, first.timeZone).weekday;
4722
- if (intervalDays === 7) return `Every ${weekday}`;
4723
- if (intervalDays % 7 === 0) return `Every ${intervalDays / 7} weeks on ${weekday}`;
4724
- return `Every ${intervalDays} days`;
4725
- }
4726
- function sameLocalTime(reference, candidate) {
4727
- const referenceStart = localDateParts(reference.startsAt, reference.timeZone);
4728
- const candidateStart = localDateParts(candidate.startsAt, candidate.timeZone);
4729
- const referenceEnd = localDateParts(reference.endsAt, reference.timeZone);
4730
- const candidateEnd = localDateParts(candidate.endsAt, candidate.timeZone);
4731
- return referenceStart.hour === candidateStart.hour && referenceStart.minute === candidateStart.minute && referenceEnd.hour === candidateEnd.hour && referenceEnd.minute === candidateEnd.minute;
4732
- }
4733
4750
  function isValidOccurrence(value) {
4734
4751
  return Number.isFinite(Date.parse(value.startsAt)) && Number.isFinite(Date.parse(value.endsAt));
4735
4752
  }
4736
- function localDayNumber(isoTimestamp, timeZone) {
4737
- const parts = localDateParts(isoTimestamp, timeZone);
4738
- return Math.floor(Date.UTC(parts.year, parts.month - 1, parts.day) / 864e5);
4739
- }
4740
- function localDateParts(isoTimestamp, timeZone) {
4741
- const parts = new Intl.DateTimeFormat("en-GB", {
4742
- timeZone,
4743
- year: "numeric",
4744
- month: "numeric",
4745
- day: "numeric",
4746
- hour: "2-digit",
4747
- minute: "2-digit",
4748
- hourCycle: "h23",
4749
- weekday: "long"
4750
- }).formatToParts(new Date(isoTimestamp));
4751
- const value = (type) => parts.find((part) => part.type === type)?.value ?? "";
4752
- return {
4753
- year: Number(value("year")),
4754
- month: Number(value("month")),
4755
- day: Number(value("day")),
4756
- hour: Number(value("hour")),
4757
- minute: Number(value("minute")),
4758
- weekday: value("weekday")
4759
- };
4760
- }
4761
4753
  //#endregion
4762
4754
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
4763
4755
  /** Live offering data only; editorial cards never acquire booking fields. */
@@ -4811,7 +4803,7 @@ function offeringLeadDate(event, startMs) {
4811
4803
  };
4812
4804
  }
4813
4805
  function offeringSchedule(event, now) {
4814
- const run = event.bookingScope === "whole_series" ? derivePreviewRunSchedule(event.run.sessions) : null;
4806
+ const run = event.bookingScope === "whole_series" ? derivePreviewRunSchedule(event) : null;
4815
4807
  if (run?.kind === "no-live-sessions") return {
4816
4808
  numeral: null,
4817
4809
  schedule: null
@@ -4864,8 +4856,7 @@ function scheduleLine(summary, event, now) {
4864
4856
  zone
4865
4857
  }) : date(summary.occurrence.startsAt);
4866
4858
  case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
4867
- case "fixed-recurring-run": return `${dates(summary.first.startsAt, summary.last.startsAt, "session")} · ${summary.recurrenceLabel}`;
4868
- case "irregular-multi-session-run": return `${dates(summary.first.startsAt, summary.last.startsAt, "session")} · ${summary.sessionCount} dates`;
4859
+ case "scheduled-run": return `${dates(summary.first.startsAt, summary.last.startsAt, "session")} · ${summary.authoredSummary?.text ?? `${summary.sessionCount} dates`}`;
4869
4860
  }
4870
4861
  }
4871
4862
  function offeringAvailability(event) {
@@ -5705,6 +5696,7 @@ function renderEventListItem(event, source) {
5705
5696
  lookSlots: display.lookSlots,
5706
5697
  itemSurfaces: display.itemSurfaces,
5707
5698
  showCapacity: display.showCapacity,
5699
+ showVenue: display.showVenue,
5708
5700
  buttonVariant: display.buttonVariant,
5709
5701
  buttonText: display.buttonText
5710
5702
  }, event.occurrenceId || event.id);
@@ -6182,7 +6174,7 @@ function FeaturedOfferingSummary({ item }) {
6182
6174
  children: [
6183
6175
  details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
6184
6176
  details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
6185
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }),
6177
+ details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
6186
6178
  details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
6187
6179
  ]
6188
6180
  })]
@@ -6196,7 +6188,7 @@ function featuredSummaryDetails(item) {
6196
6188
  deliveryMode: item.event.deliveryMode
6197
6189
  });
6198
6190
  case "run": {
6199
- const schedule = derivePreviewRunSchedule(item.run.run.sessions);
6191
+ const schedule = derivePreviewRunSchedule(item.run);
6200
6192
  return schedule.kind === "scheduled" ? formatFeaturedSummary(schedule.summary, {
6201
6193
  venue: item.run.representative.venue?.name ?? null,
6202
6194
  siteTimeZone: item.run.representative.siteTimeZone,
@@ -6210,33 +6202,33 @@ function formatFeaturedSummary(summary, place) {
6210
6202
  switch (summary.kind) {
6211
6203
  case "single-occurrence": return detailsFromOccurrences({
6212
6204
  first: summary.occurrence,
6213
- last: null,
6205
+ end: null,
6214
6206
  place
6215
6207
  });
6216
6208
  case "multi-day-span": return detailsFromOccurrences({
6217
6209
  first: summary.occurrence,
6218
- last: summary.occurrence,
6219
- place,
6220
- spanUsesEndDate: true
6221
- });
6222
- case "fixed-recurring-run": return detailsFromOccurrences({
6223
- first: summary.first,
6224
- last: summary.last,
6225
- place,
6226
- recurrence: summary.recurrenceLabel
6210
+ end: {
6211
+ dateTime: summary.occurrence.endsAt,
6212
+ timeZone: summary.occurrence.timeZone
6213
+ },
6214
+ place
6227
6215
  });
6228
- case "irregular-multi-session-run": return detailsFromOccurrences({
6216
+ case "scheduled-run": return detailsFromOccurrences({
6229
6217
  first: summary.first,
6230
- last: summary.last,
6218
+ end: {
6219
+ dateTime: summary.last.startsAt,
6220
+ timeZone: summary.last.timeZone
6221
+ },
6231
6222
  place,
6232
- sessionCount: `${summary.sessionCount} dates`
6223
+ recurrence: summary.authoredSummary ?? void 0,
6224
+ sessionCount: `${summary.sessionCount} date${summary.sessionCount === 1 ? "" : "s"}`
6233
6225
  });
6234
6226
  default: return assertNever$1(summary, "Unhandled offerings preview schedule summary");
6235
6227
  }
6236
6228
  }
6237
6229
  function detailsFromOccurrences(input) {
6238
- const { first, last, place } = input;
6239
- const endDateTime = input.spanUsesEndDate ? first.endsAt : last?.startsAt ?? first.startsAt;
6230
+ const { first, end, place } = input;
6231
+ const endDateTime = end?.dateTime ?? first.startsAt;
6240
6232
  const options = eventDateOptions({
6241
6233
  timeZone: first.timeZone,
6242
6234
  siteTimeZone: place.siteTimeZone,
@@ -6246,13 +6238,15 @@ function detailsFromOccurrences(input) {
6246
6238
  timeZone,
6247
6239
  locale: options.locale
6248
6240
  });
6241
+ const startDate = summaryDate(first.startsAt, first.timeZone);
6242
+ const endDate = end ? summaryDate(end.dateTime, end.timeZone) : null;
6249
6243
  return {
6250
- startDate: summaryDate(first.startsAt, first.timeZone),
6244
+ startDate,
6251
6245
  startDateTime: first.startsAt,
6252
- endDate: last ? summaryDate(endDateTime, last.timeZone) : null,
6246
+ endDate: endDate === startDate ? null : endDate,
6253
6247
  endDateTime,
6254
- timeRange: formatEventTimeRange(first, options),
6255
- recurrence: input.recurrence ?? null,
6248
+ timeRange: input.recurrence?.clock ? null : formatEventTimeRange(first, options),
6249
+ recurrence: input.recurrence?.text ?? null,
6256
6250
  sessionCount: input.sessionCount ?? null,
6257
6251
  venue: place.venue
6258
6252
  };
@@ -6302,8 +6296,13 @@ function renderSingleOfferingCard(item, options) {
6302
6296
  }, item.run.eventSeriesId);
6303
6297
  }
6304
6298
  }
6299
+ /** The authored clock replaces live time only when it was successfully formatted. */
6300
+ function formatRunScheduleTime(schedule, options) {
6301
+ const authored = schedule.summary.kind === "scheduled-run" ? schedule.summary.authoredSummary : null;
6302
+ return [authored?.text, authored?.clock ? null : formatEventTimeRange(schedule.firstSession, options)].filter(Boolean).join(" · ");
6303
+ }
6305
6304
  function WholeSeriesRunCompactRow({ group, path, now }) {
6306
- const schedule = derivePreviewRunSchedule(group.run.sessions);
6305
+ const schedule = derivePreviewRunSchedule(group);
6307
6306
  if (schedule.kind === "no-live-sessions") return /* @__PURE__ */ jsx(RunWithoutLiveDates, {
6308
6307
  group,
6309
6308
  path
@@ -6315,7 +6314,7 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
6315
6314
  deliveryMode: group.representative.deliveryMode
6316
6315
  });
6317
6316
  const dateRail = formatEventCompactDateRail(firstSession.startsAt, options);
6318
- const timeRange = formatEventTimeRange(firstSession, options);
6317
+ const timeRange = formatRunScheduleTime(schedule, options);
6319
6318
  const price = formatEventPriceDisplay(group.representative.pricing);
6320
6319
  const statusLabel = resolveWholeSeriesBookingPhase(group.run, now).kind === "open" ? null : "Registration closed";
6321
6320
  return /* @__PURE__ */ jsxs("article", {
@@ -6389,7 +6388,7 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
6389
6388
  });
6390
6389
  }
6391
6390
  function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText }) {
6392
- const schedule = derivePreviewRunSchedule(group.run.sessions);
6391
+ const schedule = derivePreviewRunSchedule(group);
6393
6392
  if (schedule.kind === "no-live-sessions") return /* @__PURE__ */ jsx(RunWithoutLiveDates, {
6394
6393
  group,
6395
6394
  path
@@ -6401,7 +6400,7 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
6401
6400
  deliveryMode: group.representative.deliveryMode
6402
6401
  });
6403
6402
  const formattedDate = formatEventCompactDateRail(firstSession.startsAt, options).label;
6404
- const timeRange = formatEventTimeRange(firstSession, options);
6403
+ const timeRange = formatRunScheduleTime(schedule, options);
6405
6404
  const price = formatEventPriceDisplay(group.representative.pricing);
6406
6405
  const statusLabel = resolveWholeSeriesBookingPhase(group.run, now).kind === "open" ? null : "Registration closed";
6407
6406
  const description = group.representative.description;
@@ -6717,7 +6716,7 @@ function bookingActionContent(input) {
6717
6716
  default: return assertNever$1(input.booking);
6718
6717
  }
6719
6718
  }
6720
- function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "primary", showVenue = true, emptyMessage = "Regular schedule details will be added shortly." }) {
6719
+ function RecurringSchedule({ dateContext = resolveDateRuntimeContext(void 0), schedule, buttonText = "Book", buttonVariant = "primary", showVenue = true, emptyMessage = "Regular schedule details will be added shortly." }) {
6721
6720
  const projection = schedule ?? {
6722
6721
  items: [],
6723
6722
  diagnostics: []
@@ -6727,18 +6726,39 @@ function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "pri
6727
6726
  "data-diagnostic-count": projection.diagnostics.length,
6728
6727
  children: emptyMessage
6729
6728
  });
6730
- const renderRow = (item) => {
6731
- const rowContent = /* @__PURE__ */ jsxs(Fragment, { children: [
6729
+ return /* @__PURE__ */ jsx("div", {
6730
+ className: "recurring-schedule",
6731
+ "data-diagnostic-count": projection.diagnostics.length,
6732
+ role: "list",
6733
+ children: projection.items.map((item) => /* @__PURE__ */ jsx(RecurringScheduleRow, {
6734
+ item,
6735
+ locale: dateContext.locale,
6736
+ buttonText: buttonText ?? "Book",
6737
+ buttonVariant: buttonVariant ?? "primary",
6738
+ showVenue: showVenue ?? true
6739
+ }, item.seriesId))
6740
+ });
6741
+ }
6742
+ function RecurringScheduleRow({ item, locale, buttonText, buttonVariant, showVenue }) {
6743
+ const startLabel = formatEventClockLabel(item.cadence.startTime, locale);
6744
+ const endLabel = formatEventClockLabel(item.cadence.endTime, locale);
6745
+ const weekdays = item.cadence.weekdays?.join(", ") ?? item.cadence.weekday;
6746
+ const description = `${item.title}, ${weekdays} at ${startLabel}`;
6747
+ return /* @__PURE__ */ jsxs("article", {
6748
+ className: "recurring-schedule-row",
6749
+ role: "listitem",
6750
+ "aria-label": description,
6751
+ children: [
6732
6752
  /* @__PURE__ */ jsx("p", {
6733
6753
  className: "recurring-schedule-day",
6734
- children: item.cadence.weekday
6754
+ children: weekdays
6735
6755
  }),
6736
6756
  /* @__PURE__ */ jsxs("p", {
6737
6757
  className: "recurring-schedule-time",
6738
6758
  children: [
6739
6759
  /* @__PURE__ */ jsx("time", {
6740
6760
  dateTime: item.cadence.startTime,
6741
- children: item.cadence.startTime
6761
+ children: startLabel
6742
6762
  }),
6743
6763
  /* @__PURE__ */ jsx("span", {
6744
6764
  "aria-hidden": "true",
@@ -6746,7 +6766,7 @@ function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "pri
6746
6766
  }),
6747
6767
  /* @__PURE__ */ jsx("time", {
6748
6768
  dateTime: item.cadence.endTime,
6749
- children: item.cadence.endTime
6769
+ children: endLabel
6750
6770
  })
6751
6771
  ]
6752
6772
  }),
@@ -6764,24 +6784,12 @@ function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "pri
6764
6784
  className: "recurring-schedule-action",
6765
6785
  children: bookingActionContent({
6766
6786
  booking: item.booking,
6767
- buttonVariant: buttonVariant ?? "primary",
6768
- buttonText: buttonText ?? "Book",
6769
- accessibleName: `${buttonText ?? "Book"} ${item.title}, ${item.cadence.weekday} at ${item.cadence.startTime}`
6787
+ buttonVariant,
6788
+ buttonText,
6789
+ accessibleName: `${buttonText} ${description}`
6770
6790
  })
6771
6791
  })
6772
- ] });
6773
- return /* @__PURE__ */ jsx("article", {
6774
- className: "recurring-schedule-row",
6775
- role: "listitem",
6776
- "aria-label": `${item.title}, ${item.cadence.weekday} at ${item.cadence.startTime}`,
6777
- children: rowContent
6778
- });
6779
- };
6780
- return /* @__PURE__ */ jsx("div", {
6781
- className: "recurring-schedule",
6782
- "data-diagnostic-count": projection.diagnostics.length,
6783
- role: "list",
6784
- children: projection.items.map((item) => /* @__PURE__ */ jsx(React.Fragment, { children: renderRow(item) }, item.seriesId))
6792
+ ]
6785
6793
  });
6786
6794
  }
6787
6795
  //#endregion
@@ -7419,6 +7427,27 @@ function GiftingSSR({ blockId, ...rest }) {
7419
7427
  });
7420
7428
  }
7421
7429
  //#endregion
7430
+ //#region ../blocks/src/system/runtime/nodes/events/shared/CalendarRecurringWeek.tsx
7431
+ /** Week mode keeps the series projection and booking destinations from issue 1586. */
7432
+ function CalendarRecurringWeek({ display }) {
7433
+ return /* @__PURE__ */ jsxs("div", {
7434
+ className: "event-calendar event-calendar--recurring-week",
7435
+ children: [display.seeAllUrl ? /* @__PURE__ */ jsx(ThemedButtonLink, {
7436
+ href: display.seeAllUrl,
7437
+ variant: display.seeAllButtonVariant,
7438
+ size: "md",
7439
+ label: display.loadMoreText ?? "See all classes"
7440
+ }) : null, /* @__PURE__ */ jsx(RecurringSchedule, {
7441
+ schedule: display.schedule,
7442
+ dateContext: display.dateContext,
7443
+ buttonText: display.buttonText,
7444
+ buttonVariant: display.buttonVariant,
7445
+ showVenue: display.showVenue,
7446
+ emptyMessage: display.emptyMessage
7447
+ })]
7448
+ });
7449
+ }
7450
+ //#endregion
7422
7451
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
7423
7452
  function EventListWeekNavigation(props) {
7424
7453
  return /* @__PURE__ */ jsxs("nav", {
@@ -8621,32 +8650,22 @@ function hourToTickPercent(hour, hours) {
8621
8650
  const range = Math.max(1, endHour - startHour);
8622
8651
  return (hour - startHour) / range * 100;
8623
8652
  }
8624
- const EventCalendarSSR = (props) => {
8625
- const islandProps = buildEventCalendarInteractiveIslandProps(props);
8626
- const display = islandProps.render.display;
8627
- const hydration = islandProps.render.hydration;
8628
- let content;
8653
+ function renderEventCalendarMode(display, hydration) {
8629
8654
  switch (display.displayMode) {
8630
- case "combined":
8631
- content = renderCombinedSsr(display, hydration.prefetchedEvents);
8632
- break;
8633
- case "list":
8634
- content = renderListSsr(display, hydration);
8635
- break;
8636
- case "timetable":
8637
- content = renderTimetableSsr(display, hydration);
8638
- break;
8639
- case "week-board":
8640
- content = renderWeekBoardSsr(display, hydration);
8641
- break;
8642
- case "calendar":
8643
- content = renderCalendarSsr(display, hydration);
8644
- break;
8645
- default: content = assertNeverDisplayMode(display.displayMode);
8655
+ case "week": return /* @__PURE__ */ jsx(CalendarRecurringWeek, { display });
8656
+ case "combined": return renderCombinedSsr(display, hydration.prefetchedEvents);
8657
+ case "list": return renderListSsr(display, hydration);
8658
+ case "timetable": return renderTimetableSsr(display, hydration);
8659
+ case "week-board": return renderWeekBoardSsr(display, hydration);
8660
+ case "calendar": return renderCalendarSsr(display, hydration);
8661
+ default: return assertNeverDisplayMode(display.displayMode);
8646
8662
  }
8663
+ }
8664
+ const EventCalendarSSR = (props) => {
8665
+ const islandProps = buildEventCalendarInteractiveIslandProps(props);
8647
8666
  return /* @__PURE__ */ jsxs("div", {
8648
8667
  ...getIslandRootProps("event-calendar", props.blockId),
8649
- children: [/* @__PURE__ */ jsx(IslandPropsScript, { value: islandProps }), content]
8668
+ children: [/* @__PURE__ */ jsx(IslandPropsScript, { value: islandProps }), renderEventCalendarMode(islandProps.render.display, islandProps.render.hydration)]
8650
8669
  });
8651
8670
  };
8652
8671
  //#endregion
@@ -9739,14 +9758,14 @@ function isDecoratedHeadingBlockKind(blockKind) {
9739
9758
  return blockKind === "block.intro" || blockKind === "block.feature-cards" || blockKind === "block.testimonials" || blockKind === "block.faq";
9740
9759
  }
9741
9760
  function readVariant(blockContent) {
9742
- if (!isRecord(blockContent)) return void 0;
9761
+ if (!isRecord$1(blockContent)) return void 0;
9743
9762
  const variant = blockContent.variant;
9744
9763
  return typeof variant === "string" ? variant : void 0;
9745
9764
  }
9746
9765
  function isFaqDecoratedVariant(variant) {
9747
9766
  return variant === "default" || variant === "question-columns";
9748
9767
  }
9749
- function isRecord(value) {
9768
+ function isRecord$1(value) {
9750
9769
  return typeof value === "object" && value !== null && !Array.isArray(value);
9751
9770
  }
9752
9771
  function buildHeadingDecorationWrapperClassName(className) {
@@ -10749,332 +10768,82 @@ function getDefaultComponentRegistry() {
10749
10768
  return serverComponentRegistry;
10750
10769
  }
10751
10770
  //#endregion
10752
- //#region ../blocks/src/pageRenderingMode.ts
10753
- var MissingBlockOverrideError$1 = class extends Error {
10754
- constructor(blockKind) {
10755
- super(`Override-only rendering requires an override for block kind "${blockKind}".`);
10756
- this.blockKind = blockKind;
10757
- this.code = "missing_block_override";
10758
- this.name = "MissingBlockOverrideError";
10759
- }
10771
+ //#region ../blocks/src/system/runtime/blockComposition.ts
10772
+ const compositionTreatments = {
10773
+ intro: introCompositionTreatmentValues,
10774
+ "feature-cards": featureCardCompositionTreatmentValues,
10775
+ testimonials: testimonialsCompositionTreatmentValues,
10776
+ "offerings-preview": offeringsPreviewCompositionTreatmentValues
10760
10777
  };
10761
- function isOverrideOnlyResourceInput(props) {
10762
- return props.rendering?.kind === "overrides-only";
10763
- }
10764
- function isTokensOnlyResourceInput(props) {
10765
- return props.rendering?.kind === "tokens-only";
10778
+ function isCompositionKind(value) {
10779
+ return Object.prototype.hasOwnProperty.call(compositionTreatments, value);
10766
10780
  }
10767
- function resolvePageThemeResources(props) {
10768
- if (isOverrideOnlyResourceInput(props)) return { kind: "unavailable" };
10769
- if (isTokensOnlyResourceInput(props)) return {
10770
- kind: "available",
10771
- tokens: props.themeTokens
10772
- };
10773
- return {
10774
- kind: "available",
10775
- tokens: props.themeTokens ?? buildThemeRuntime$1(props.theme).tokens,
10776
- config: props.theme
10781
+ /**
10782
+ * Narrow one kind's treatment. Written per-kind so the returned intent is a
10783
+ * real union member rather than a cast: `kind` and `treatment` are only known
10784
+ * to belong together inside a scope where `Kind` is a single kind.
10785
+ */
10786
+ function readTreatment(kind, value) {
10787
+ const treatment = compositionTreatments[kind].find((candidate) => candidate === value);
10788
+ return treatment === void 0 ? null : {
10789
+ kind,
10790
+ treatment
10777
10791
  };
10778
10792
  }
10779
- function requireBlockOverride(resources, override, blockKind) {
10780
- if (resources.kind === "unavailable" && !override) throw new MissingBlockOverrideError$1(blockKind);
10781
- }
10782
- function overrideThemeProps(resources) {
10783
- return resources.kind === "available" ? {
10784
- theme: resources.tokens,
10785
- ...resources.config ? { themeConfig: resources.config } : {}
10786
- } : {};
10787
- }
10788
- function requireThemeResources(resources, blockKind) {
10789
- if (resources.kind === "unavailable") throw new MissingBlockOverrideError$1(blockKind);
10790
- return resources;
10793
+ function readBlockComposition(value) {
10794
+ if (!isRecord(value) || typeof value.kind !== "string") return null;
10795
+ if (!isCompositionKind(value.kind)) return null;
10796
+ return readTreatment(value.kind, value.treatment);
10791
10797
  }
10792
- //#endregion
10793
- //#region ../blocks/src/pageRendererBoundaries.tsx
10794
- function joinSlotsByPair(slots) {
10795
- return new Map(slots.map((slot) => [joinSlotKey(slot.previousBlockId, slot.nextBlockId), slot]));
10798
+ function isRecord(value) {
10799
+ return typeof value === "object" && value !== null && !Array.isArray(value);
10796
10800
  }
10797
- function joinSlotBetween(previousBlockId, nextBlockId, slots) {
10798
- if (!previousBlockId || !nextBlockId) return null;
10799
- return slots.get(joinSlotKey(previousBlockId, nextBlockId)) ?? null;
10801
+ function arrangementHooksFromContent(content) {
10802
+ const value = content._lookHooks;
10803
+ if (typeof value !== "object" || value === null || Array.isArray(value)) return {};
10804
+ return Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string" && arrangementLookHooks.some((hook) => hook.endsWith("*") ? entry[0].startsWith(hook.slice(0, -1)) : entry[0] === hook)));
10800
10805
  }
10801
- /**
10802
- * The markup at one join: the painted boundary element when the join draws,
10803
- * then whatever `renderJoin` adds. Null when there is nothing to render.
10804
- */
10805
- function renderJoinSlot(input) {
10806
- const { slot } = input;
10807
- if (!slot) return null;
10808
- const layout = renderedJoinLayout(slot.join);
10809
- const painted = slot.join && layout ? /* @__PURE__ */ jsx("div", {
10810
- "aria-hidden": "true",
10811
- "data-block-boundary": "",
10812
- "data-boundary-id": slot.join.boundaryId,
10813
- "data-boundary-previous-block-id": slot.previousBlockId,
10814
- "data-boundary-next-block-id": slot.nextBlockId,
10815
- "data-boundary-treatment": slot.join.treatment,
10816
- "data-boundary-placement": layout.placement,
10817
- style: boundaryPaintStyle(layout.paint)
10818
- }, `${input.blockKey}:boundary`) : null;
10819
- const extra = input.renderJoin?.({
10820
- previousBlockId: slot.previousBlockId,
10821
- nextBlockId: slot.nextBlockId,
10822
- join: slot.join
10823
- });
10824
- if (!painted && (extra === null || extra === void 0)) return null;
10825
- return /* @__PURE__ */ jsxs(React.Fragment, { children: [painted, extra] }, `${input.blockKey}:join`);
10806
+ function blockLookFromContent(content) {
10807
+ return typeof content.blockLook === "string" ? content.blockLook : void 0;
10826
10808
  }
10809
+ //#endregion
10810
+ //#region ../blocks/src/system/componentFactory.ts
10827
10811
  /**
10828
- * The one render-edge place a theme token becomes CSS.
10812
+ * Resolves the layout definition for a block based on its manifest and content.
10813
+ *
10814
+ * Fallback chain:
10815
+ * 1. content.variant (if manifest.variants exists and contains the key)
10816
+ * 2. content.layout (legacy blog listing support)
10817
+ * 3. manifest.defaultVariant (if manifest.variants exists)
10818
+ * 4. First key in manifest.variants
10819
+ * 5. manifest.layout
10820
+ *
10821
+ * @param manifest - The block manifest
10822
+ * @param content - The block content object
10823
+ * @returns The resolved NodeDefinition layout or null if none found
10829
10824
  */
10830
- function themeTokenCss(token) {
10831
- return `rgb(var(--tb-${token}))`;
10825
+ function resolveBlockVariantKey(manifest, content) {
10826
+ const runtimeLook = content._effectiveLook;
10827
+ const look = isObjectRecord(runtimeLook) && isObjectRecord(runtimeLook.look) && isObjectRecord(runtimeLook.look.structure) && runtimeLook.look.structure.kind === "arrangement" ? runtimeLook.look : null;
10828
+ return resolveEffectiveArrangement({
10829
+ manifest: arrangementManifestFromVariants(manifest),
10830
+ look,
10831
+ storedVariant: parseStoredVariant(manifest, content)
10832
+ }).key;
10832
10833
  }
10833
- function boundaryPaintStyle(paint) {
10834
- return {
10835
- "--boundary-shape-paint": themeTokenCss(paint.shape),
10836
- ...paint.band ? { "--boundary-band-paint": themeTokenCss(paint.band) } : {}
10837
- };
10834
+ function resolveBlockLayout(manifest, effectiveKey) {
10835
+ if (!manifest.variants) return manifest.layout ?? null;
10836
+ const variantKey = effectiveKey;
10837
+ if (variantKey) {
10838
+ const variant = manifest.variants[variantKey];
10839
+ if (variant) return variant;
10840
+ }
10841
+ return manifest.layout ?? null;
10838
10842
  }
10839
- /**
10840
- * Reserve attributes and variables for a block wrapper, from the joins on
10841
- * either side. A join's `before` reserve sits inside its previous section, so
10842
- * it pads the bottom of the block above the join; its `after` reserve pads the
10843
- * top of the block below. Joins that do not draw reserve nothing.
10844
- */
10845
- function blockBoundaryReserves(input) {
10846
- const top = reserveOnSide(input.before, "after");
10847
- const bottom = reserveOnSide(input.after, "before");
10848
- const style = {
10849
- ...top ? { "--site-style-boundary-before-reserve": top.length } : {},
10850
- ...bottom ? { "--site-style-boundary-after-reserve": bottom.length } : {}
10851
- };
10852
- return {
10853
- topPlacement: top?.placement,
10854
- bottomPlacement: bottom?.placement,
10855
- style: top || bottom ? style : void 0
10856
- };
10857
- }
10858
- /** The reserve one join needs on one side of itself, if it draws at all. */
10859
- function reserveOnSide(slot, side) {
10860
- const layout = renderedJoinLayout(slot?.join ?? null);
10861
- const length = layout?.reserves[side] ?? null;
10862
- return layout && length ? {
10863
- length,
10864
- placement: layout.placement
10865
- } : null;
10866
- }
10867
- function pageBlockPosition(index, blockCount) {
10868
- if (blockCount <= 1) return "only";
10869
- if (index === 0) return "first";
10870
- if (index === blockCount - 1) return "last";
10871
- return "middle";
10872
- }
10873
- //#endregion
10874
- //#region ../blocks/src/pageRendererContracts.ts
10875
- function buildPageRendererRootRuntime(dataContext) {
10876
- const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
10877
- return {
10878
- siteId,
10879
- demoEmailSuppressed: resolveDemoEmailSuppression(dataContext),
10880
- siteName,
10881
- pageId,
10882
- pathname,
10883
- bookingTimeZone,
10884
- ...pageDateRuntime(dataContext),
10885
- previewStage,
10886
- apiBaseUrl,
10887
- portalToken,
10888
- readAuthority,
10889
- bookingOfferingPresets,
10890
- appointmentServicePathPrefix,
10891
- openingHours,
10892
- siteTerms,
10893
- mailingList,
10894
- loaderFailures
10895
- };
10896
- }
10897
- function resolveDemoEmailSuppression(dataContext) {
10898
- return dataContext?.demoEmailSuppressed === true;
10899
- }
10900
- function pageDateRuntime(dataContext) {
10901
- return {
10902
- dateContext: pageDateRuntimeContext(dataContext),
10903
- now: dataContext?.now
10904
- };
10905
- }
10906
- function pageDateRuntimeContext(dataContext) {
10907
- return dataContext?.dateContext ?? resolveDateRuntimeContext(dataContext?.bookingTimeZone);
10908
- }
10909
- //#endregion
10910
- //#region ../blocks/src/pageRenderAudience.tsx
10911
- /**
10912
- * The single policy for what a non-renderable block looks like.
10913
- *
10914
- * Public visitors never see renderer diagnostics, so every reason omits.
10915
- * Authoring surfaces keep the wording they have always had — the strings below
10916
- * are moved verbatim from the five former `fallback()` call sites.
10917
- */
10918
- function presentNotRenderableBlock(reason, audience) {
10919
- if (audience === "public") return null;
10920
- return diagnostic(authoringMessage(reason));
10921
- }
10922
- function authoringMessage(reason) {
10923
- switch (reason.kind) {
10924
- case "invalid-admission": return `Invalid content for block kind "${reason.blockKind}".`;
10925
- case "missing-definition": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". The custom block definition was not found (missing manifest).` : `No renderer available for block kind "${reason.blockKind}".`;
10926
- case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
10927
- case "editor-unpreviewable":
10928
- case "render-threw": return `Unable to render block kind "${reason.blockKind}".`;
10929
- }
10930
- }
10931
- /**
10932
- * The empty-page notice. Authoring-only for the same reason as the block
10933
- * diagnostics: "No blocks found." is a message for whoever is building the
10934
- * page, not for whoever is reading it.
10935
- */
10936
- function presentEmptyPage(audience) {
10937
- if (audience === "public") return null;
10938
- return diagnostic("No blocks found.");
10939
- }
10940
- function diagnostic(message) {
10941
- return /* @__PURE__ */ jsx("div", {
10942
- className: "rb-p-6 rb-caption",
10943
- style: textColorStyle("mutedText"),
10944
- children: message
10945
- });
10946
- }
10947
- //#endregion
10948
- //#region ../blocks/src/pageRenderDiagnostics.ts
10949
- /**
10950
- * Emits one structured record per omitted block, per server render pass.
10951
- *
10952
- * Server-only by decision D3: public pages are server-rendered, and this is the
10953
- * runtime whose logger transport reaches centralised collection. A browser-side
10954
- * record would not, and re-render/hydration would multiply it. The cost is that
10955
- * an omission only a client navigation can see goes unlogged.
10956
- *
10957
- * Deliberately *not* inside the plan's `useMemo` — React makes no promises about
10958
- * when a memo recomputes, so a log placed there is neither reliable nor bounded.
10959
- */
10960
- function logOmittedBlocks(plan, dataContext) {
10961
- if (typeof window !== "undefined") return;
10962
- if (plan.omitted.length === 0) return;
10963
- const page = {
10964
- siteId: dataContext?.siteId ?? null,
10965
- pageId: dataContext?.pageId ?? null
10966
- };
10967
- if (plan.entries.length === 0) {
10968
- logger.error("blocks.pageRenderer.pageFullyOmitted", {
10969
- ...page,
10970
- omittedCount: plan.omitted.length,
10971
- blocks: plan.omitted.map((omission) => ({
10972
- blockId: omission.blockId,
10973
- blockKind: omission.blockKind,
10974
- reason: omission.reason.kind
10975
- }))
10976
- });
10977
- debugOmittedCustomBlocks(plan);
10978
- return;
10979
- }
10980
- for (const omission of plan.omitted) logger.warn("blocks.pageRenderer.blockOmitted", {
10981
- ...page,
10982
- blockId: omission.blockId,
10983
- blockKind: omission.blockKind,
10984
- reason: omission.reason.kind,
10985
- admissionError: omission.reason.kind === "invalid-admission" ? omission.reason.error.kind : null
10986
- });
10987
- debugOmittedCustomBlocks(plan);
10988
- }
10989
- /**
10990
- * Unlike the plan-time omissions this one genuinely can fire per re-render —
10991
- * it is raised where the failure happens, and no once-ness is claimed for it.
10992
- */
10993
- function logRenderThrew(block, dataContext) {
10994
- if (typeof window !== "undefined") return;
10995
- logger.warn("blocks.pageRenderer.blockRenderThrew", {
10996
- siteId: dataContext?.siteId ?? null,
10997
- pageId: dataContext?.pageId ?? null,
10998
- blockId: block.id ?? null,
10999
- blockKind: block.kind
11000
- });
11001
- }
11002
- /**
11003
- * Opt-in developer affordance for tracking down custom-block resolution.
11004
- *
11005
- * Driven off the plan's omissions so it stays reachable on **public** renders —
11006
- * "my custom block doesn't show up on the live site" is the exact situation it
11007
- * exists for, and that is the render where the block is now silently absent.
11008
- */
11009
- function debugOmittedCustomBlocks(plan) {
11010
- if (!shouldDebugCustomBlocks()) return;
11011
- for (const omission of plan.omitted) {
11012
- if (!omission.blockKind.startsWith("custom.")) continue;
11013
- debugCustomBlockResolution(omission.reason.kind, omission.blockId, omission.blockKind, omission.debug);
11014
- }
11015
- }
11016
- /** The authoring-side equivalent, where the block stays in the entry list. */
11017
- function debugCustomBlockDiagnostic(reason, block, debug) {
11018
- if (!block.kind.startsWith("custom.") || !shouldDebugCustomBlocks()) return;
11019
- debugCustomBlockResolution(reason.kind, block.id ?? null, block.kind, debug);
11020
- }
11021
- function debugCustomBlockResolution(reasonKind, blockId, blockKind, debug) {
11022
- try {
11023
- console.warn(reasonKind === "missing-definition" ? "[blocks:PageRenderer] custom block definition missing" : "[blocks:PageRenderer] custom block has no layout/variants and no override", {
11024
- blockId,
11025
- blockKind,
11026
- hasOverride: debug.hasOverride,
11027
- sdkCustomBlocksCount: debug.sdkCustomBlocksCount,
11028
- dbCustomBlocksCount: debug.dbCustomBlocksCount,
11029
- manifestKeys: debug.manifestKeys
11030
- });
11031
- } catch {}
11032
- }
11033
- function shouldDebugCustomBlocks() {
11034
- try {
11035
- return globalThis.process?.env?.DEBUG_CUSTOM_BLOCKS === "1";
11036
- } catch {
11037
- return false;
11038
- }
11039
- }
11040
- //#endregion
11041
- //#region ../blocks/src/system/componentFactory.ts
11042
- /**
11043
- * Resolves the layout definition for a block based on its manifest and content.
11044
- *
11045
- * Fallback chain:
11046
- * 1. content.variant (if manifest.variants exists and contains the key)
11047
- * 2. content.layout (legacy blog listing support)
11048
- * 3. manifest.defaultVariant (if manifest.variants exists)
11049
- * 4. First key in manifest.variants
11050
- * 5. manifest.layout
11051
- *
11052
- * @param manifest - The block manifest
11053
- * @param content - The block content object
11054
- * @returns The resolved NodeDefinition layout or null if none found
11055
- */
11056
- function resolveBlockVariantKey(manifest, content) {
11057
- const runtimeLook = content._effectiveLook;
11058
- const look = isObjectRecord(runtimeLook) && isObjectRecord(runtimeLook.look) && isObjectRecord(runtimeLook.look.structure) && runtimeLook.look.structure.kind === "arrangement" ? runtimeLook.look : null;
11059
- return resolveEffectiveArrangement({
11060
- manifest: arrangementManifestFromVariants(manifest),
11061
- look,
11062
- storedVariant: parseStoredVariant(manifest, content)
11063
- }).key;
11064
- }
11065
- function resolveBlockLayout(manifest, effectiveKey) {
11066
- if (!manifest.variants) return manifest.layout ?? null;
11067
- const variantKey = effectiveKey;
11068
- if (variantKey) {
11069
- const variant = manifest.variants[variantKey];
11070
- if (variant) return variant;
11071
- }
11072
- return manifest.layout ?? null;
11073
- }
11074
- function buildPreviewFieldConstraints(manifest) {
11075
- const entries = collectPreviewFieldConstraintEntries(manifest.fields ?? []);
11076
- if (entries.length === 0) return void 0;
11077
- return Object.fromEntries(entries);
10843
+ function buildPreviewFieldConstraints(manifest) {
10844
+ const entries = collectPreviewFieldConstraintEntries(manifest.fields ?? []);
10845
+ if (entries.length === 0) return void 0;
10846
+ return Object.fromEntries(entries);
11078
10847
  }
11079
10848
  function collectPreviewFieldConstraintEntries(fields, prefix = "") {
11080
10849
  return fields.flatMap((field) => {
@@ -11320,6 +11089,296 @@ function runtimeDateContext(viewModel) {
11320
11089
  return resolveDateRuntimeContext(typeof root.bookingTimeZone === "string" ? root.bookingTimeZone : void 0);
11321
11090
  }
11322
11091
  //#endregion
11092
+ //#region ../blocks/src/pageRenderingMode.ts
11093
+ var MissingBlockOverrideError$1 = class extends Error {
11094
+ constructor(blockKind) {
11095
+ super(`Override-only rendering requires an override for block kind "${blockKind}".`);
11096
+ this.blockKind = blockKind;
11097
+ this.code = "missing_block_override";
11098
+ this.name = "MissingBlockOverrideError";
11099
+ }
11100
+ };
11101
+ function isOverrideOnlyResourceInput(props) {
11102
+ return props.rendering?.kind === "overrides-only";
11103
+ }
11104
+ function isTokensOnlyResourceInput(props) {
11105
+ return props.rendering?.kind === "tokens-only";
11106
+ }
11107
+ function resolvePageThemeResources(props) {
11108
+ if (isOverrideOnlyResourceInput(props)) return { kind: "unavailable" };
11109
+ if (isTokensOnlyResourceInput(props)) return {
11110
+ kind: "available",
11111
+ tokens: props.themeTokens
11112
+ };
11113
+ return {
11114
+ kind: "available",
11115
+ tokens: props.themeTokens ?? buildThemeRuntime$1(props.theme).tokens,
11116
+ config: props.theme
11117
+ };
11118
+ }
11119
+ function requireBlockOverride(resources, override, blockKind) {
11120
+ if (resources.kind === "unavailable" && !override) throw new MissingBlockOverrideError$1(blockKind);
11121
+ }
11122
+ function overrideThemeProps(resources) {
11123
+ return resources.kind === "available" ? {
11124
+ theme: resources.tokens,
11125
+ ...resources.config ? { themeConfig: resources.config } : {}
11126
+ } : {};
11127
+ }
11128
+ function requireThemeResources(resources, blockKind) {
11129
+ if (resources.kind === "unavailable") throw new MissingBlockOverrideError$1(blockKind);
11130
+ return resources;
11131
+ }
11132
+ //#endregion
11133
+ //#region ../blocks/src/pageRendererBoundaries.tsx
11134
+ function joinSlotsByPair(slots) {
11135
+ return new Map(slots.map((slot) => [joinSlotKey(slot.previousBlockId, slot.nextBlockId), slot]));
11136
+ }
11137
+ function joinSlotBetween(previousBlockId, nextBlockId, slots) {
11138
+ if (!previousBlockId || !nextBlockId) return null;
11139
+ return slots.get(joinSlotKey(previousBlockId, nextBlockId)) ?? null;
11140
+ }
11141
+ /**
11142
+ * The markup at one join: the painted boundary element when the join draws,
11143
+ * then whatever `renderJoin` adds. Null when there is nothing to render.
11144
+ */
11145
+ function renderJoinSlot(input) {
11146
+ const { slot } = input;
11147
+ if (!slot) return null;
11148
+ const layout = renderedJoinLayout(slot.join);
11149
+ const painted = slot.join && layout ? /* @__PURE__ */ jsx("div", {
11150
+ "aria-hidden": "true",
11151
+ "data-block-boundary": "",
11152
+ "data-boundary-id": slot.join.boundaryId,
11153
+ "data-boundary-previous-block-id": slot.previousBlockId,
11154
+ "data-boundary-next-block-id": slot.nextBlockId,
11155
+ "data-boundary-treatment": slot.join.treatment,
11156
+ "data-boundary-placement": layout.placement,
11157
+ style: boundaryPaintStyle(layout.paint)
11158
+ }, `${input.blockKey}:boundary`) : null;
11159
+ const extra = input.renderJoin?.({
11160
+ previousBlockId: slot.previousBlockId,
11161
+ nextBlockId: slot.nextBlockId,
11162
+ join: slot.join
11163
+ });
11164
+ if (!painted && (extra === null || extra === void 0)) return null;
11165
+ return /* @__PURE__ */ jsxs(React.Fragment, { children: [painted, extra] }, `${input.blockKey}:join`);
11166
+ }
11167
+ /**
11168
+ * The one render-edge place a theme token becomes CSS.
11169
+ */
11170
+ function themeTokenCss(token) {
11171
+ return `rgb(var(--tb-${token}))`;
11172
+ }
11173
+ function boundaryPaintStyle(paint) {
11174
+ return {
11175
+ "--boundary-shape-paint": themeTokenCss(paint.shape),
11176
+ ...paint.band ? { "--boundary-band-paint": themeTokenCss(paint.band) } : {}
11177
+ };
11178
+ }
11179
+ /**
11180
+ * Reserve attributes and variables for a block wrapper, from the joins on
11181
+ * either side. A join's `before` reserve sits inside its previous section, so
11182
+ * it pads the bottom of the block above the join; its `after` reserve pads the
11183
+ * top of the block below. Joins that do not draw reserve nothing.
11184
+ */
11185
+ function blockBoundaryReserves(input) {
11186
+ const top = reserveOnSide(input.before, "after");
11187
+ const bottom = reserveOnSide(input.after, "before");
11188
+ const style = {
11189
+ ...top ? { "--site-style-boundary-before-reserve": top.length } : {},
11190
+ ...bottom ? { "--site-style-boundary-after-reserve": bottom.length } : {}
11191
+ };
11192
+ return {
11193
+ topPlacement: top?.placement,
11194
+ bottomPlacement: bottom?.placement,
11195
+ style: top || bottom ? style : void 0
11196
+ };
11197
+ }
11198
+ /** The reserve one join needs on one side of itself, if it draws at all. */
11199
+ function reserveOnSide(slot, side) {
11200
+ const layout = renderedJoinLayout(slot?.join ?? null);
11201
+ const length = layout?.reserves[side] ?? null;
11202
+ return layout && length ? {
11203
+ length,
11204
+ placement: layout.placement
11205
+ } : null;
11206
+ }
11207
+ function pageBlockPosition(index, blockCount) {
11208
+ if (blockCount <= 1) return "only";
11209
+ if (index === 0) return "first";
11210
+ if (index === blockCount - 1) return "last";
11211
+ return "middle";
11212
+ }
11213
+ //#endregion
11214
+ //#region ../blocks/src/pageRendererContracts.ts
11215
+ function buildPageRendererRootRuntime(dataContext) {
11216
+ const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
11217
+ return {
11218
+ siteId,
11219
+ demoEmailSuppressed: resolveDemoEmailSuppression(dataContext),
11220
+ siteName,
11221
+ pageId,
11222
+ pathname,
11223
+ bookingTimeZone,
11224
+ ...pageRuntimeContext(dataContext),
11225
+ previewStage,
11226
+ apiBaseUrl,
11227
+ portalToken,
11228
+ readAuthority,
11229
+ bookingOfferingPresets,
11230
+ appointmentServicePathPrefix,
11231
+ openingHours,
11232
+ siteTerms,
11233
+ mailingList,
11234
+ loaderFailures
11235
+ };
11236
+ }
11237
+ function resolveDemoEmailSuppression(dataContext) {
11238
+ return dataContext?.demoEmailSuppressed === true;
11239
+ }
11240
+ function pageRuntimeContext(dataContext) {
11241
+ return {
11242
+ dateContext: pageDateRuntimeContext(dataContext),
11243
+ now: dataContext?.now,
11244
+ template: dataContext?.template ?? { kind: "page" }
11245
+ };
11246
+ }
11247
+ function pageDateRuntimeContext(dataContext) {
11248
+ return dataContext?.dateContext ?? resolveDateRuntimeContext(dataContext?.bookingTimeZone);
11249
+ }
11250
+ //#endregion
11251
+ //#region ../blocks/src/pageRenderAudience.tsx
11252
+ /**
11253
+ * The single policy for what a non-renderable block looks like.
11254
+ *
11255
+ * Public visitors never see renderer diagnostics, so every reason omits.
11256
+ * Authoring surfaces keep the wording they have always had — the strings below
11257
+ * are moved verbatim from the five former `fallback()` call sites.
11258
+ */
11259
+ function presentNotRenderableBlock(reason, audience) {
11260
+ if (audience === "public") return null;
11261
+ return diagnostic(authoringMessage(reason));
11262
+ }
11263
+ function authoringMessage(reason) {
11264
+ switch (reason.kind) {
11265
+ case "invalid-admission": return `Invalid content for block kind "${reason.blockKind}".`;
11266
+ case "missing-definition": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". The custom block definition was not found (missing manifest).` : `No renderer available for block kind "${reason.blockKind}".`;
11267
+ case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
11268
+ case "editor-unpreviewable":
11269
+ case "render-threw": return `Unable to render block kind "${reason.blockKind}".`;
11270
+ }
11271
+ }
11272
+ /**
11273
+ * The empty-page notice. Authoring-only for the same reason as the block
11274
+ * diagnostics: "No blocks found." is a message for whoever is building the
11275
+ * page, not for whoever is reading it.
11276
+ */
11277
+ function presentEmptyPage(audience) {
11278
+ if (audience === "public") return null;
11279
+ return diagnostic("No blocks found.");
11280
+ }
11281
+ function diagnostic(message) {
11282
+ return /* @__PURE__ */ jsx("div", {
11283
+ className: "rb-p-6 rb-caption",
11284
+ style: textColorStyle("mutedText"),
11285
+ children: message
11286
+ });
11287
+ }
11288
+ //#endregion
11289
+ //#region ../blocks/src/pageRenderDiagnostics.ts
11290
+ /**
11291
+ * Emits one structured record per omitted block, per server render pass.
11292
+ *
11293
+ * Server-only by decision D3: public pages are server-rendered, and this is the
11294
+ * runtime whose logger transport reaches centralised collection. A browser-side
11295
+ * record would not, and re-render/hydration would multiply it. The cost is that
11296
+ * an omission only a client navigation can see goes unlogged.
11297
+ *
11298
+ * Deliberately *not* inside the plan's `useMemo` — React makes no promises about
11299
+ * when a memo recomputes, so a log placed there is neither reliable nor bounded.
11300
+ */
11301
+ function logOmittedBlocks(plan, dataContext) {
11302
+ if (typeof window !== "undefined") return;
11303
+ if (plan.omitted.length === 0) return;
11304
+ const page = {
11305
+ siteId: dataContext?.siteId ?? null,
11306
+ pageId: dataContext?.pageId ?? null
11307
+ };
11308
+ if (plan.entries.length === 0) {
11309
+ logger.error("blocks.pageRenderer.pageFullyOmitted", {
11310
+ ...page,
11311
+ omittedCount: plan.omitted.length,
11312
+ blocks: plan.omitted.map((omission) => ({
11313
+ blockId: omission.blockId,
11314
+ blockKind: omission.blockKind,
11315
+ reason: omission.reason.kind
11316
+ }))
11317
+ });
11318
+ debugOmittedCustomBlocks(plan);
11319
+ return;
11320
+ }
11321
+ for (const omission of plan.omitted) logger.warn("blocks.pageRenderer.blockOmitted", {
11322
+ ...page,
11323
+ blockId: omission.blockId,
11324
+ blockKind: omission.blockKind,
11325
+ reason: omission.reason.kind,
11326
+ admissionError: omission.reason.kind === "invalid-admission" ? omission.reason.error.kind : null
11327
+ });
11328
+ debugOmittedCustomBlocks(plan);
11329
+ }
11330
+ /**
11331
+ * Unlike the plan-time omissions this one genuinely can fire per re-render —
11332
+ * it is raised where the failure happens, and no once-ness is claimed for it.
11333
+ */
11334
+ function logRenderThrew(block, dataContext) {
11335
+ if (typeof window !== "undefined") return;
11336
+ logger.warn("blocks.pageRenderer.blockRenderThrew", {
11337
+ siteId: dataContext?.siteId ?? null,
11338
+ pageId: dataContext?.pageId ?? null,
11339
+ blockId: block.id ?? null,
11340
+ blockKind: block.kind
11341
+ });
11342
+ }
11343
+ /**
11344
+ * Opt-in developer affordance for tracking down custom-block resolution.
11345
+ *
11346
+ * Driven off the plan's omissions so it stays reachable on **public** renders —
11347
+ * "my custom block doesn't show up on the live site" is the exact situation it
11348
+ * exists for, and that is the render where the block is now silently absent.
11349
+ */
11350
+ function debugOmittedCustomBlocks(plan) {
11351
+ if (!shouldDebugCustomBlocks()) return;
11352
+ for (const omission of plan.omitted) {
11353
+ if (!omission.blockKind.startsWith("custom.")) continue;
11354
+ debugCustomBlockResolution(omission.reason.kind, omission.blockId, omission.blockKind, omission.debug);
11355
+ }
11356
+ }
11357
+ /** The authoring-side equivalent, where the block stays in the entry list. */
11358
+ function debugCustomBlockDiagnostic(reason, block, debug) {
11359
+ if (!block.kind.startsWith("custom.") || !shouldDebugCustomBlocks()) return;
11360
+ debugCustomBlockResolution(reason.kind, block.id ?? null, block.kind, debug);
11361
+ }
11362
+ function debugCustomBlockResolution(reasonKind, blockId, blockKind, debug) {
11363
+ try {
11364
+ console.warn(reasonKind === "missing-definition" ? "[blocks:PageRenderer] custom block definition missing" : "[blocks:PageRenderer] custom block has no layout/variants and no override", {
11365
+ blockId,
11366
+ blockKind,
11367
+ hasOverride: debug.hasOverride,
11368
+ sdkCustomBlocksCount: debug.sdkCustomBlocksCount,
11369
+ dbCustomBlocksCount: debug.dbCustomBlocksCount,
11370
+ manifestKeys: debug.manifestKeys
11371
+ });
11372
+ } catch {}
11373
+ }
11374
+ function shouldDebugCustomBlocks() {
11375
+ try {
11376
+ return globalThis.process?.env?.DEBUG_CUSTOM_BLOCKS === "1";
11377
+ } catch {
11378
+ return false;
11379
+ }
11380
+ }
11381
+ //#endregion
11323
11382
  //#region ../blocks/src/system/blocks/offerings-preview/photoCount.ts
11324
11383
  /** Count the selected cards, without loading or selecting again. */
11325
11384
  function offeringsPreviewPhotoCount(listing) {
@@ -11526,13 +11585,14 @@ function planNewsletterPreviewSubmission(placement) {
11526
11585
  * stays at the edge (decision D3), matching `buildPageRenderPlan`.
11527
11586
  */
11528
11587
  function preparePageRender(input) {
11529
- const entries = [];
11530
- const constructionFailures = [];
11531
- for (const entry of input.plan.entries) {
11532
- const prepared = prepareEntry(entry, input);
11533
- if (prepared.kind === "render-threw") constructionFailures.push(entry);
11534
- entries.push(preparedPlanEntry(entry, prepared));
11535
- }
11588
+ const facts = readinessFactsFromLoaders("published", {
11589
+ prefetched: input.dataContext?.prefetchedBlockData,
11590
+ previewStage: input.dataContext?.previewStage,
11591
+ mailingList: input.dataContext?.mailingList,
11592
+ template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
11593
+ });
11594
+ const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts)).map((entry) => preparedPlanEntry(entry, prepareEntry(entry, input)));
11595
+ const constructionFailures = entries.filter(({ prepared }) => prepared.kind === "render-threw").map(({ entry }) => entry);
11536
11596
  const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw");
11537
11597
  return {
11538
11598
  entries: survivors,
@@ -11546,6 +11606,9 @@ function preparePageRender(input) {
11546
11606
  * same primitive, so `[A, B, C]` losing B still gets an A→C join. Each
11547
11607
  * survivor is then classified from its final content.
11548
11608
  */
11609
+ function entryNeedsSetup(entry, facts) {
11610
+ return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts).kind === "NeedsSetup";
11611
+ }
11549
11612
  function composeSurvivorJoins(plan, survivors, themeResources) {
11550
11613
  return composePageJoins({
11551
11614
  joins: retargetJoinsAcrossOmissions({
@@ -12254,7 +12317,8 @@ function usePageDateRuntime(props) {
12254
12317
  const dateContext = React$1.useMemo(() => supplied ?? resolveDateRuntimeContext(zone), [supplied, zone]);
12255
12318
  const dataContext = React$1.useMemo(() => props.dataContext ? {
12256
12319
  ...props.dataContext,
12257
- dateContext
12320
+ dateContext,
12321
+ template: props.dataContext.template ?? pageTemplateFromEntry(props.dataContext.contentEntry)
12258
12322
  } : void 0, [props.dataContext, dateContext]);
12259
12323
  return {
12260
12324
  ...props,
@@ -12458,7 +12522,11 @@ function buildPageRouteRenderContext(dataContext) {
12458
12522
  pageSurface: dataContext.pageSurface ?? null,
12459
12523
  subject: dataContext.subject ?? null,
12460
12524
  editableRouteMetadataFieldIds: dataContext.editableRouteMetadataFieldIds ?? null,
12461
- previewStage: dataContext.previewStage
12525
+ previewStage: dataContext.previewStage,
12526
+ prefetchedBlockData: dataContext.prefetchedBlockData,
12527
+ loaderSnapshot: dataContext.loaderSnapshot,
12528
+ loaderFailures: dataContext.loaderFailures,
12529
+ template: pageTemplateFromEntry(dataContext.contentEntry)
12462
12530
  };
12463
12531
  }
12464
12532
  function buildPageIdentityRenderContext(dataContext) {