@riverbankcms/sdk 0.162.0 → 0.164.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 (201) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +12 -1
  3. package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
  4. package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
  5. package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
  6. package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
  7. package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
  8. package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
  9. package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
  11. package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
  12. package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
  13. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  14. package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
  15. package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
  16. package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
  17. package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
  18. package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
  19. package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
  20. package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
  21. package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +6 -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 +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  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 +3 -3
  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 +13 -7
  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/spam-protection/index.d.ts +32 -52
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{types-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
  49. package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
  50. package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
  51. package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
  53. package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
  54. package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
  57. package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
  59. package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
  61. package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
  62. package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
  63. package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
  64. package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
  65. package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
  66. package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
  67. package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
  68. package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
  69. package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
  70. package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
  71. package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
  72. package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
  73. package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
  74. package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
  75. package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
  76. package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
  77. package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
  78. package/dist/client/bookings.mjs +23 -32
  79. package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
  80. package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
  81. package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
  82. package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
  83. package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
  84. package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
  85. package/dist/client/client.mjs +216 -109
  86. package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
  87. package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
  88. package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
  90. package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
  91. package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
  92. package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
  93. package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
  94. package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
  95. package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
  96. package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
  97. package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
  98. package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
  99. package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
  100. package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
  101. package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
  102. package/dist/client/gifting/client.mjs +4 -3
  103. package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
  104. package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
  105. package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
  106. package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
  107. package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
  108. package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
  109. package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
  110. package/dist/client/portal/client.mjs +13 -12
  111. package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
  112. package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
  113. package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
  114. package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
  115. package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
  116. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  117. package/dist/client/purchase-BMsWpx8y.mjs +894 -0
  118. package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
  119. package/dist/client/rendering/client.mjs +27 -27
  120. package/dist/client/rendering/islands.mjs +1 -1
  121. package/dist/client/rendering.mjs +23 -19
  122. package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
  123. package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
  124. package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
  125. package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
  126. package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
  127. package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
  128. package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
  129. package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
  130. package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
  131. package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
  132. package/dist/client/spam-protection.mjs +4 -69
  133. package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
  134. package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
  135. package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
  136. package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
  137. package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
  138. package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
  139. package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
  140. package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
  141. package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
  142. package/dist/preview-next/before-render.mjs +1 -1
  143. package/dist/preview-next/chrome.css +1 -1
  144. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
  145. package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
  146. package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
  149. package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
  150. package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
  151. package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
  154. package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
  155. package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
  156. package/dist/preview-next/edit-map.css +37 -0
  157. package/dist/preview-next/keepAlive.mjs +1 -1
  158. package/dist/preview-next/maplibre-gl.css +1 -0
  159. package/dist/preview-next/middleware.mjs +1 -1
  160. package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
  161. package/dist/preview-next/upload-structure.css +18 -0
  162. package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
  163. package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
  164. package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.mjs} +215 -109
  165. package/dist/server/config-validation.mjs +1 -1
  166. package/dist/server/config.mjs +2 -2
  167. package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
  168. package/dist/server/index.mjs +3 -3
  169. package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
  170. package/dist/server/loadPage-BwjncpJf.mjs +2 -0
  171. package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
  172. package/dist/server/next.mjs +9 -9
  173. package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
  174. package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
  175. package/dist/server/page-converter.mjs +1 -1
  176. package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
  177. package/dist/server/prebuild.mjs +1 -1
  178. package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
  179. package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
  180. package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
  181. package/dist/server/rendering/server.mjs +4 -4
  182. package/dist/server/rendering.mjs +8 -8
  183. package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
  184. package/dist/server/routing.mjs +1 -1
  185. package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
  188. package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
  189. package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
  190. package/dist/server/theme-bridge.mjs +1 -1
  191. package/dist/server/theme.mjs +1 -1
  192. package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
  193. package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
  194. package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
  195. package/dist/styles/index.css +399 -112
  196. package/package.json +2 -3
  197. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  198. package/dist/_dts/index-C39F9KaB.d.ts +0 -77
  199. package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
  200. package/dist/client/src-BNZzXgWu.mjs +0 -102
  201. package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
@@ -1,12 +1,12 @@
1
- import { An as isCssColorLiteral, Cn as textColorStyle, Dr as ok, E as ICON_CONFIG, Er as err, Jt as featureCardCompositionTreatmentValues, N as generateDefaultButtonSystem, Nn as resolveTokenOrCssColorValue, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Sn as rgbColorValue, St as runtimeMediaSchema, Xn as getTextColorForBackground, Zt as introCompositionTreatmentValues, an as testimonialsCompositionTreatmentValues, dr as parseThemeColorToken, fn as serializeSurfaceTree, jn as resolveOnColorForThemeToken, tn as offeringsPreviewCompositionTreatmentValues, vn as backgroundColorStyle, wt as renderableMediaAssetSchema, xn as mergeStyles, zn as defaultThemeTokens } from "./schema-BiqpDRwB.mjs";
1
+ import { $n as getTextColorForBackground, $t as introCompositionTreatmentValues, An as serializeSurfaceTree, Cn as ok, Cr as surfaceInkStyle, Dr as mergeStyles, E as ICON_CONFIG, Et as renderableMediaAssetSchema, In as isCssColorLiteral, Ln as resolveOnColorForThemeToken, N as generateDefaultButtonSystem, On as parseSurfaceTree, Or as rgbColorValue, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Sn as err, Xt as featureCardCompositionTreatmentValues, dr as defaultThemeTokens, jr as parseThemeColorToken, kr as textColorStyle, rn as offeringsPreviewCompositionTreatmentValues, sn as testimonialsCompositionTreatmentValues, wr as backgroundColorStyle, wt as runtimeMediaSchema, zn as resolveTokenOrCssColorValue } from "./schema-BlTWmTSl.mjs";
2
+ import { $ as RichText, $i as CANCELLED_SESSION_STATUS, $n as formBlockDefinition, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as publicEventPricingCurrency, An as FEATURE_CARD_ICON_TREATMENTS, Ar as isBlockButtonRole, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bn as teamMemberBiography, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseLocalScheduleTime, Cn as isEventFull, Cr as formEmbedFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toUtcIsoDateTimeString, Dn as blockBookingConsentSchema, Dr as ctaCopyFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as toScheduledBookingDateTime, En as publicEventsArraySchema, Er as testimonialsHeadingFragment, Fa as formatCurrencyAmount, Fn as composeHeaderSectionWrapperClassName, Fr as boxStyleClassNames, Ft as ThemedButton, Gr as el, H as eventCollectionHydrationSchema, Hn as readRuntimeNow, Ht as formatEventPriceAmount, I as eventListingBlockDefinition, Ia as parseCurrencyCode, In as markEditableSurfaceForwarding, Ir as normalizeBoxStylesBorder, It as ThemedButtonLink, J as CardListContentPart, Ji as chosenString, Jn as staticHeaderChromeRuntime, Jt as formatCalendarTitle, K as catalogueEventCardProps, Kr as when, Kt as eventDateOptions, L as buildEventListingInteractiveIslandProps, Li as PUBLIC_DOWNLOAD_MEDIA_TYPES, Ln as splitPositioningClasses, Lr as resolveCardRoleForBoxStyles, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingType, Mn as shouldReserveFeatureCardIconZone, Mr as bodyCopyFragment, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as resolveExactOrFreePriceDisplay, Nr as defineFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as formatBookingPriceDisplay, On as bookingConsentCarrierSchema, Or as heroCtaRowFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as resolvePricingOptionsPriceDisplay, Pi as bindingSchema, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as unavailableReadinessFact, Qt as formatEventDateParts, R as buildEventCollectionDisplay, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as parseBookingLocalDate, Sn as getEventAvailabilityStatus, Sr as singleButtonFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as toBookingTimeZone, Tn as groupPublicEventsByRun, Tr as testimonialsCarouselFragment, U as eventCollectionSourceSchemaShape, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Ut as formatEventPriceDisplay, V as eventCollectionDisplaySchemaShape, Vn as teamMemberCardBiography, Vt as formatEventPrice, Wr as ctaButton, Wt as buildCalendarViewport, X as resolveCardListSchedule, Xi as loadedReadinessFact, Xt as formatEventClockLabel, Y as CardListLeadDate, Yi as admitReadinessFacts, Yt as formatDate, Z as selectCardListPresentation, Zi as pageTemplateFromEntry, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _i as inlineTextToPlainText, _n as browserReadAuthoritySchema, _r as headingFragment, _t as previewStageSchema, a as normalizeLocationMapSource, ai as resolveBlockIconRenderValue, an as getLocalDateKey, ar as defineClientOwnedBlockRuntime, b as buildCheckoutInteractiveIslandProps, ba as getBookingLocalDateKey, bn as formatTotalCapacity, br as faqHeadingFragment, ca as decideLocationSourcePermission, ci as CircleMinusIcon, cn as formatDateKey, cr as listLookControl, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as FileArchiveIcon, dn as getWeekCalendarDayTuple, dr as resolvedItemSurfaceProps, dt as getCardOrientation, ea as nextLiveRunSessionStartMs, en as formatEventNextDateFact, er as buildFormInteractiveIslandProps, et as ImagePresets, f as giftingBlockDefinition, fi as FileAudioIcon, fn as getWeekCalendarDays, fr as itemRole, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDateTimeRange, gi as PlusIcon, gn as formatBookingSchedulePresentation, gr as richTextFragment, gt as bookingNowSchema, h as cartBlockDefinition, ha as formatDateRange, hi as MinusIcon, hn as resolveRuntimeEventDestination, hr as clsx, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as parseMailingListRuntimeContext, ii as parseBlockIconValue, in as resolveEventTimeZone, ir as createZodCodec, j as offeringsCatalogueShape, ja as publicEventPricingDisplay, jn as resolveFeatureCardGeneratedIconSizePx, jr as heroCopyFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as isPublicEventPricingOptionDisplayable, ki as parseFieldDefinitions, kn as blockBookingPaymentTermsSchema, kr as ctaRowFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, li as CirclePlusIcon, ln as getDayOfWeek, lr as listLookSlot, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, ma as formatDate$1, mi as FileTextIcon, mn as isToday, mr as Grid, mt as eventRegistrationBlockDefinition, na as resolveWholeSeriesBookingPhase, ni as runTransforms, nn as formatTime, nr as createInteractiveIslandCodec, o as resolveLocationMapLocation, oa as parseMailingListPlacementTargeting, oi as ArrowDownIcon, on as getLocalMinuteOfDay, or as defineProgressiveBlockRuntime, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pa as mapDrawingSchema, pi as FileSpreadsheetIcon, pn as isSameCalendarDay, q as listingEventCardProps, qt as eventLocalDateKey, r as normalizeBlockContent, ra as buildMailingListSignupBlockSourceRef, ri as buildGeneratedBlockIconRenderAssetLookupFromUnknown, rn as groupEventsByDate, rr as defineInteractiveIslandMetaKeys, s as newsletterSignupBlockDefinition, sa as sameMailingListPlacementTargeting, si as ChevronDownIcon, sn as addDays, sr as listItemPresentation, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as orderedLiveRunSessions, tn as formatEventTimeRange, tr as buildInteractiveIslandProps, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as normalizeLocationAddressText, ui as ClockIcon, un as getOrderedDayNames, ur as lookListPresentationSchemaShape, ut as sanitizeHref, v as shopBlockDefinition, va as compareLocalScheduleDates, vi as isInlineTextEmpty, vn as canJoinEventWaitlistOnAnyMode, vr as cardFragment, w as shopProductPresentation, wa as resolveBookingBusinessTimeZone, wn as blockSiteTermsSchema, wr as formCopyFragment, x as buildProductDetailInteractiveIslandProps, xa as getLocalScheduleDate, xn as getEventAvailability, xr as blogFeaturedPostFragment, y as buildCartInteractiveIslandProps, ya as formatBookingCompactEnglishTime, yi as parseInlineTextFromUnknown, yn as formatEventRemainingPlaces, yr as faqAccordionFragment, z as buildEventCollectionHydration, zn as parseTeamMemberSpecialties, zt as SpinnerNode } from "./registry-zjd1P2Dl.mjs";
2
3
  import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
3
- import { $ as RichText, $i as CANCELLED_SESSION_STATUS, $n as formBlockDefinition, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as publicEventPricingCurrency, An as FEATURE_CARD_ICON_TREATMENTS, Ar as isBlockButtonRole, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bn as teamMemberBiography, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseLocalScheduleTime, Cn as isEventFull, Cr as formEmbedFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toUtcIsoDateTimeString, Dn as blockBookingConsentSchema, Dr as ctaCopyFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as toScheduledBookingDateTime, En as publicEventsArraySchema, Er as testimonialsHeadingFragment, Fa as formatCurrencyAmount, Fn as composeHeaderSectionWrapperClassName, Fr as boxStyleClassNames, Ft as ThemedButton, Gr as el, H as eventCollectionHydrationSchema, Hn as readRuntimeNow, Ht as formatEventPriceAmount, I as eventListingBlockDefinition, Ia as parseCurrencyCode, In as markEditableSurfaceForwarding, Ir as normalizeBoxStylesBorder, It as ThemedButtonLink, J as CardListContentPart, Ji as chosenString, Jn as staticHeaderChromeRuntime, Jt as formatCalendarTitle, K as catalogueEventCardProps, Kr as when, Kt as eventDateOptions, L as buildEventListingInteractiveIslandProps, Li as PUBLIC_DOWNLOAD_MEDIA_TYPES, Ln as splitPositioningClasses, Lr as resolveCardRoleForBoxStyles, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingType, Mn as shouldReserveFeatureCardIconZone, Mr as bodyCopyFragment, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as resolveExactOrFreePriceDisplay, Nr as defineFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as formatBookingPriceDisplay, On as bookingConsentCarrierSchema, Or as heroCtaRowFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as resolvePricingOptionsPriceDisplay, Pi as bindingSchema, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as unavailableReadinessFact, Qt as formatEventDateParts, R as buildEventCollectionDisplay, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as parseBookingLocalDate, Sn as getEventAvailabilityStatus, Sr as singleButtonFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as toBookingTimeZone, Tn as groupPublicEventsByRun, Tr as testimonialsCarouselFragment, U as eventCollectionSourceSchemaShape, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Ut as formatEventPriceDisplay, V as eventCollectionDisplaySchemaShape, Vn as teamMemberCardBiography, Vt as formatEventPrice, Wr as ctaButton, Wt as buildCalendarViewport, X as resolveCardListSchedule, Xi as loadedReadinessFact, Xt as formatEventClockLabel, Y as CardListLeadDate, Yi as admitReadinessFacts, Yt as formatDate, Z as selectCardListPresentation, Zi as pageTemplateFromEntry, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _i as inlineTextToPlainText, _n as browserReadAuthoritySchema, _r as headingFragment, _t as previewStageSchema, a as normalizeLocationMapSource, ai as resolveBlockIconRenderValue, an as getLocalDateKey, ar as defineClientOwnedBlockRuntime, b as buildCheckoutInteractiveIslandProps, ba as getBookingLocalDateKey, bn as formatTotalCapacity, br as faqHeadingFragment, ca as decideLocationSourcePermission, ci as CircleMinusIcon, cn as formatDateKey, cr as listLookControl, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as FileArchiveIcon, dn as getWeekCalendarDayTuple, dr as resolvedItemSurfaceProps, dt as getCardOrientation, ea as nextLiveRunSessionStartMs, en as formatEventNextDateFact, er as buildFormInteractiveIslandProps, et as ImagePresets, f as giftingBlockDefinition, fi as FileAudioIcon, fn as getWeekCalendarDays, fr as itemRole, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDateTimeRange, gi as PlusIcon, gn as formatBookingSchedulePresentation, gr as richTextFragment, gt as bookingNowSchema, h as cartBlockDefinition, ha as formatDateRange, hi as MinusIcon, hn as resolveRuntimeEventDestination, hr as clsx, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as parseMailingListRuntimeContext, ii as parseBlockIconValue, in as resolveEventTimeZone, ir as createZodCodec, j as offeringsCatalogueShape, ja as publicEventPricingDisplay, jn as resolveFeatureCardGeneratedIconSizePx, jr as heroCopyFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as isPublicEventPricingOptionDisplayable, ki as parseFieldDefinitions, kn as blockBookingPaymentTermsSchema, kr as ctaRowFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, li as CirclePlusIcon, ln as getDayOfWeek, lr as listLookSlot, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, ma as formatDate$1, mi as FileTextIcon, mn as isToday, mr as Grid, mt as eventRegistrationBlockDefinition, na as resolveWholeSeriesBookingPhase, ni as runTransforms, nn as formatTime, nr as createInteractiveIslandCodec, o as resolveLocationMapLocation, oa as parseMailingListPlacementTargeting, oi as ArrowDownIcon, on as getLocalMinuteOfDay, or as defineProgressiveBlockRuntime, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pa as mapDrawingSchema, pi as FileSpreadsheetIcon, pn as isSameCalendarDay, q as listingEventCardProps, qt as eventLocalDateKey, r as normalizeBlockContent, ra as buildMailingListSignupBlockSourceRef, ri as buildGeneratedBlockIconRenderAssetLookupFromUnknown, rn as groupEventsByDate, rr as defineInteractiveIslandMetaKeys, s as newsletterSignupBlockDefinition, sa as sameMailingListPlacementTargeting, si as ChevronDownIcon, sn as addDays, sr as listItemPresentation, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as orderedLiveRunSessions, tn as formatEventTimeRange, tr as buildInteractiveIslandProps, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as normalizeLocationAddressText, ui as ClockIcon, un as getOrderedDayNames, ur as lookListPresentationSchemaShape, ut as sanitizeHref, v as shopBlockDefinition, va as compareLocalScheduleDates, vi as isInlineTextEmpty, vn as canJoinEventWaitlistOnAnyMode, vr as cardFragment, w as shopProductPresentation, wa as resolveBookingBusinessTimeZone, wn as blockSiteTermsSchema, wr as formCopyFragment, x as buildProductDetailInteractiveIslandProps, xa as getLocalScheduleDate, xn as getEventAvailability, xr as blogFeaturedPostFragment, y as buildCartInteractiveIslandProps, ya as formatBookingCompactEnglishTime, yi as parseInlineTextFromUnknown, yn as formatEventRemainingPlaces, yr as faqAccordionFragment, z as buildEventCollectionHydration, zn as parseTeamMemberSpecialties, zt as SpinnerNode } from "./registry-Digv02oV.mjs";
4
- import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-CSd_Vusz.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-LfgxSJYE.mjs";
6
- import { _ as resolveEffectiveArrangement, d as arrangementLookHooks, h as arrangementManifestFromVariants } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
7
- import "./site-styles-DrkprQPL.mjs";
4
+ import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-BdY8lP-K.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-Bnbwoe5n.mjs";
6
+ import { f as arrangementLookHooks, g as arrangementManifestFromVariants, v as resolveEffectiveArrangement } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
7
+ import "./site-styles-yHytcXIB.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-08GY1njw.mjs";
9
+ import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-cbbK3Bho.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";
@@ -1214,6 +1214,55 @@ z.discriminatedUnion("kind", [
1214
1214
  })
1215
1215
  ]);
1216
1216
  //#endregion
1217
+ //#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
1218
+ function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
1219
+ return /* @__PURE__ */ jsxs("svg", {
1220
+ className,
1221
+ width: size,
1222
+ height: size,
1223
+ viewBox: "0 0 24 24",
1224
+ fill: "none",
1225
+ stroke: "currentColor",
1226
+ strokeWidth,
1227
+ strokeLinecap: "round",
1228
+ strokeLinejoin: "round",
1229
+ "aria-hidden": "true",
1230
+ focusable: "false",
1231
+ children: [/* @__PURE__ */ jsx("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }), /* @__PURE__ */ jsx("circle", {
1232
+ cx: "12",
1233
+ cy: "10",
1234
+ r: "3"
1235
+ })]
1236
+ });
1237
+ }
1238
+ function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
1239
+ return /* @__PURE__ */ jsxs("svg", {
1240
+ className,
1241
+ width: size,
1242
+ height: size,
1243
+ viewBox: "0 0 24 24",
1244
+ fill: "none",
1245
+ stroke: "currentColor",
1246
+ strokeWidth,
1247
+ strokeLinecap: "round",
1248
+ strokeLinejoin: "round",
1249
+ "aria-hidden": "true",
1250
+ focusable: "false",
1251
+ children: [
1252
+ /* @__PURE__ */ jsx("rect", {
1253
+ x: "3",
1254
+ y: "4",
1255
+ width: "18",
1256
+ height: "18",
1257
+ rx: "2"
1258
+ }),
1259
+ /* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
1260
+ /* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
1261
+ /* @__PURE__ */ jsx("path", { d: "M3 10h18" })
1262
+ ]
1263
+ });
1264
+ }
1265
+ //#endregion
1217
1266
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventItem.tsx
1218
1267
  /** Arrangement content choices are data, ready for other live offering lists to reuse. */
1219
1268
  const eventItemParts = {
@@ -1246,6 +1295,8 @@ const eventItemParts = {
1246
1295
  "date",
1247
1296
  "title",
1248
1297
  "meta",
1298
+ "time",
1299
+ "places",
1249
1300
  "action"
1250
1301
  ],
1251
1302
  "month-day": [
@@ -1258,20 +1309,41 @@ const eventItemParts = {
1258
1309
  function eventItemFacts(props) {
1259
1310
  const options = eventDateOptions(props.event);
1260
1311
  const availability = getEventAvailabilityStatus(props.event);
1312
+ const time = formatEventTimeRange(props.event, options);
1313
+ const price = formatEventPrice(props.event);
1261
1314
  return {
1262
1315
  date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
1263
- time: formatEventTimeRange(props.event, options),
1264
- price: formatEventPrice(props.event),
1265
- meta: [
1266
- ...(props.parts ?? eventItemParts[props.arrangement]).includes("time") ? [] : [formatEventTimeRange(props.event, options)],
1267
- formatEventTeacherLine(props.event),
1268
- props.showVenue !== false ? props.event.venue?.name : null
1269
- ].filter(Boolean).join(" · "),
1316
+ time,
1317
+ price,
1318
+ link: resolveEventLinkProps(props.event),
1319
+ meta: eventItemMeta(props, {
1320
+ time,
1321
+ price
1322
+ }),
1323
+ venueIcon: props.arrangement === "compact" && props.showVenue !== false && Boolean(props.event.venue),
1270
1324
  places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
1271
1325
  availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
1272
1326
  description: props.event.presentation?.summary ?? props.event.description
1273
1327
  };
1274
1328
  }
1329
+ /** Compact rows keep pricing in the details rail and time in the action rail. */
1330
+ function eventItemMeta(props, formatted) {
1331
+ const parts = props.parts ?? eventItemParts[props.arrangement];
1332
+ const venue = props.showVenue !== false ? props.event.venue?.name : null;
1333
+ const teacher = formatEventTeacherLine(props.event);
1334
+ const time = parts.includes("time") ? null : formatted.time;
1335
+ const price = props.arrangement === "compact" && !parts.includes("price") ? formatted.price : null;
1336
+ return (props.arrangement === "compact" ? [
1337
+ venue,
1338
+ teacher,
1339
+ price,
1340
+ time
1341
+ ] : [
1342
+ time,
1343
+ teacher,
1344
+ venue
1345
+ ]).filter(Boolean).join(" · ");
1346
+ }
1275
1347
  /**
1276
1348
  * Keep one RSC component boundary per item. Re-forwarding shared presentation
1277
1349
  * props through layout/part components multiplies React's development debug
@@ -1305,21 +1377,28 @@ function renderCalendarItem(props) {
1305
1377
  ...listLookSlot(props, props.arrangement === "grid" ? "item-body" : "what"),
1306
1378
  children: parts.filter(body).map(renderPart)
1307
1379
  }),
1308
- parts.filter((part) => [
1380
+ renderCalendarTrailingParts(props, parts.filter((part) => [
1309
1381
  "time",
1310
1382
  "places",
1311
1383
  "price",
1312
1384
  "action"
1313
- ].includes(part) && !body(part)).map(renderPart)
1385
+ ].includes(part) && !body(part)), renderPart)
1314
1386
  ]
1315
1387
  });
1316
1388
  }
1389
+ function renderCalendarTrailingParts(props, parts, renderPart) {
1390
+ const content = parts.map(renderPart);
1391
+ return props.arrangement === "compact" && parts.length > 0 ? /* @__PURE__ */ jsx("div", {
1392
+ ...listLookSlot(props, "item-actions"),
1393
+ children: content
1394
+ }) : content;
1395
+ }
1317
1396
  function eventItemTag(arrangement) {
1318
1397
  return arrangement === "ledger" || arrangement === "day-groups" ? "li" : "article";
1319
1398
  }
1320
1399
  function renderEventItemContentPart({ part, props, facts }) {
1321
1400
  switch (part) {
1322
- case "image": return renderEventItemImage(props);
1401
+ case "image": return renderEventItemImage(props, facts.link);
1323
1402
  case "date": return /* @__PURE__ */ jsxs("time", {
1324
1403
  ...listLookSlot(props, "date"),
1325
1404
  dateTime: props.event.startsAt,
@@ -1342,13 +1421,13 @@ function renderEventItemContentPart({ part, props, facts }) {
1342
1421
  case "title": return /* @__PURE__ */ jsx("h3", {
1343
1422
  ...listLookSlot(props, "item-title"),
1344
1423
  children: /* @__PURE__ */ jsx("a", {
1345
- ...resolveEventLinkProps(props.event),
1424
+ ...facts.link,
1346
1425
  children: props.event.title
1347
1426
  })
1348
1427
  });
1349
- case "time": return /* @__PURE__ */ jsx("p", {
1428
+ case "time": return /* @__PURE__ */ jsxs("p", {
1350
1429
  ...listLookSlot(props, "time"),
1351
- children: facts.time
1430
+ children: [props.arrangement === "compact" ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
1352
1431
  });
1353
1432
  case "places": return facts.places ? /* @__PURE__ */ jsx("p", {
1354
1433
  ...listLookSlot(props, "places"),
@@ -1370,8 +1449,7 @@ function renderEventItemContentPart({ part, props, facts }) {
1370
1449
  item: {
1371
1450
  id: props.event.id,
1372
1451
  title: props.event.title,
1373
- text: facts.description,
1374
- action: { label: "" }
1452
+ text: facts.description
1375
1453
  },
1376
1454
  presentation: props
1377
1455
  });
@@ -1383,6 +1461,7 @@ function renderEventItemMeta({ props, facts }) {
1383
1461
  return facts.meta || places ? /* @__PURE__ */ jsxs("p", {
1384
1462
  ...listLookSlot(props, "item-meta"),
1385
1463
  children: [
1464
+ facts.venueIcon ? /* @__PURE__ */ jsx(MapPinIcon, {}) : null,
1386
1465
  facts.meta,
1387
1466
  facts.meta && places ? " · " : null,
1388
1467
  places ? /* @__PURE__ */ jsx("span", {
@@ -1392,14 +1471,15 @@ function renderEventItemMeta({ props, facts }) {
1392
1471
  ]
1393
1472
  }) : null;
1394
1473
  }
1395
- function renderEventItemImage(props) {
1474
+ function renderEventItemImage(props, link) {
1396
1475
  return /* @__PURE__ */ jsx(CardListContentPart, {
1397
1476
  part: "media",
1398
1477
  item: {
1399
1478
  id: props.event.id,
1400
1479
  title: props.event.title,
1401
1480
  media: props.event.presentation?.image,
1402
- action: { label: "" }
1481
+ titleLink: link,
1482
+ newTabHint: link.target === "_blank"
1403
1483
  },
1404
1484
  presentation: props
1405
1485
  });
@@ -1780,55 +1860,6 @@ function cropHeightStyle(height, heightAs) {
1780
1860
  return heightAs === "minimum" ? { minHeight: height } : { height };
1781
1861
  }
1782
1862
  //#endregion
1783
- //#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
1784
- function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
1785
- return /* @__PURE__ */ jsxs("svg", {
1786
- className,
1787
- width: size,
1788
- height: size,
1789
- viewBox: "0 0 24 24",
1790
- fill: "none",
1791
- stroke: "currentColor",
1792
- strokeWidth,
1793
- strokeLinecap: "round",
1794
- strokeLinejoin: "round",
1795
- "aria-hidden": "true",
1796
- focusable: "false",
1797
- children: [/* @__PURE__ */ jsx("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }), /* @__PURE__ */ jsx("circle", {
1798
- cx: "12",
1799
- cy: "10",
1800
- r: "3"
1801
- })]
1802
- });
1803
- }
1804
- function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
1805
- return /* @__PURE__ */ jsxs("svg", {
1806
- className,
1807
- width: size,
1808
- height: size,
1809
- viewBox: "0 0 24 24",
1810
- fill: "none",
1811
- stroke: "currentColor",
1812
- strokeWidth,
1813
- strokeLinecap: "round",
1814
- strokeLinejoin: "round",
1815
- "aria-hidden": "true",
1816
- focusable: "false",
1817
- children: [
1818
- /* @__PURE__ */ jsx("rect", {
1819
- x: "3",
1820
- y: "4",
1821
- width: "18",
1822
- height: "18",
1823
- rx: "2"
1824
- }),
1825
- /* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
1826
- /* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
1827
- /* @__PURE__ */ jsx("path", { d: "M3 10h18" })
1828
- ]
1829
- });
1830
- }
1831
- //#endregion
1832
1863
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
1833
1864
  /** The category's badge, when the event has a category. */
1834
1865
  function eventCardCategoryBadge(category) {
@@ -4677,7 +4708,6 @@ const bookingSourceSchema = z.object({
4677
4708
  successMessage: z.string().nullable().optional(),
4678
4709
  form: bookingSourceFormSchema.nullable().optional(),
4679
4710
  services: bookingServicesSourceSchema.nullable().optional(),
4680
- spamProtectionEnabled: z.boolean().optional(),
4681
4711
  className: z.string().nullable().optional()
4682
4712
  });
4683
4713
  const bookingDisplaySchema = z.object({
@@ -4706,8 +4736,7 @@ const bookingHydrationSchema = z.object({
4706
4736
  rebookContext: z.object({ kind: z.literal("portal_rebook") }).nullable().optional(),
4707
4737
  form: bookingConfigSchema.nullable(),
4708
4738
  services: z.array(bookingServiceSchema),
4709
- serviceCategories: z.array(bookingServiceCategorySchema).optional(),
4710
- spamProtectionEnabled: z.boolean().optional()
4739
+ serviceCategories: z.array(bookingServiceCategorySchema).optional()
4711
4740
  });
4712
4741
  const bookingRenderSchema = z.object({
4713
4742
  display: bookingDisplaySchema,
@@ -4758,8 +4787,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
4758
4787
  rebookContext: source.rebookContext ?? null,
4759
4788
  form,
4760
4789
  services,
4761
- serviceCategories: normalizeBookingServiceCategories(source.services),
4762
- spamProtectionEnabled: source.spamProtectionEnabled
4790
+ serviceCategories: normalizeBookingServiceCategories(source.services)
4763
4791
  }
4764
4792
  };
4765
4793
  }
@@ -6864,13 +6892,12 @@ function previewCardContent(item, props, datesBySeries, typeLabel) {
6864
6892
  }
6865
6893
  function nativeRunCardContent(item, content, props) {
6866
6894
  const open = resolveWholeSeriesBookingPhase(item.run.run, props.now).kind === "open";
6895
+ const path = content.titleLink?.href ?? null;
6867
6896
  return {
6868
6897
  ...content,
6869
- href: item.path,
6870
- titleLink: void 0,
6871
6898
  action: {
6872
- label: open ? item.path ? props.buttonText || "Book" : "Details coming soon" : "Registration closed",
6873
- ...open && item.path ? { href: item.path } : {}
6899
+ label: open ? path ? props.buttonText || "Book" : "Details coming soon" : "Registration closed",
6900
+ ...open && path ? { href: path } : {}
6874
6901
  }
6875
6902
  };
6876
6903
  }
@@ -9313,6 +9340,15 @@ function EventRegistrationShell({ display }) {
9313
9340
  });
9314
9341
  }
9315
9342
  //#endregion
9343
+ //#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
9344
+ /** Verification readiness is decided here, never recomputed by individual forms. */
9345
+ function ProtectedSubmitButton({ submission, disabled, ...props }) {
9346
+ return /* @__PURE__ */ jsx(ThemedButton, {
9347
+ ...props,
9348
+ disabled: disabled || submission.kind === "waiting"
9349
+ });
9350
+ }
9351
+ //#endregion
9316
9352
  //#region ../blocks/src/system/runtime/nodes/form.fields.tsx
9317
9353
  function fieldBasics(field) {
9318
9354
  return {
@@ -9491,14 +9527,15 @@ function FormFieldGroups({ groups, lookSlots }) {
9491
9527
  children: group.fields.map(renderField)
9492
9528
  }, group.key) : renderField(group.field)) });
9493
9529
  }
9494
- function FormSubmitAction({ lookSlots, submitLabel, disabled }) {
9530
+ function FormSubmitAction({ lookSlots, submitLabel, disabled, submission }) {
9495
9531
  return /* @__PURE__ */ jsx("div", {
9496
9532
  className: "fb-actions",
9497
9533
  ...listLookSlot({ lookSlots }, "actions"),
9498
9534
  children: /* @__PURE__ */ jsx("div", {
9499
9535
  className: "fb-actions-inner",
9500
9536
  ...listLookSlot({ lookSlots }, "inline"),
9501
- children: /* @__PURE__ */ jsx(ThemedButton, {
9537
+ children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
9538
+ submission,
9502
9539
  ...listLookSlot({ lookSlots }, "action"),
9503
9540
  type: "submit",
9504
9541
  variant: "primary",
@@ -9560,6 +9597,7 @@ const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, c
9560
9597
  lookSlots: display.lookSlots
9561
9598
  }),
9562
9599
  /* @__PURE__ */ jsx(FormSubmitAction, {
9600
+ submission: { kind: "waiting" },
9563
9601
  submitLabel: display.submitLabel,
9564
9602
  lookSlots: display.lookSlots
9565
9603
  })
@@ -9623,7 +9661,7 @@ function NewsletterExtraField({ field, disabled, error, lookSlots }) {
9623
9661
  });
9624
9662
  }
9625
9663
  /** The email field and submit button sharing one input-styled shell. */
9626
- function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, disabled, error }) {
9664
+ function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, submission, disabled, error }) {
9627
9665
  const inputId = inputIdFor(field);
9628
9666
  const errorId = `${inputId}-error`;
9629
9667
  return /* @__PURE__ */ jsxs("div", {
@@ -9650,7 +9688,8 @@ function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, disabled, err
9650
9688
  messageId: errorId
9651
9689
  })
9652
9690
  }),
9653
- /* @__PURE__ */ jsx(ThemedButton, {
9691
+ /* @__PURE__ */ jsx(ProtectedSubmitButton, {
9692
+ submission,
9654
9693
  type: "submit",
9655
9694
  variant: buttonVariant,
9656
9695
  size: "md",
@@ -9669,7 +9708,7 @@ function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, disabled, err
9669
9708
  * The submit action: joined to the email field when the preset has one
9670
9709
  * (every current preset does), otherwise a plain themed button.
9671
9710
  */
9672
- function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel, disabled, error }) {
9711
+ function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel, submission, disabled, error }) {
9673
9712
  if (lookSlots) return /* @__PURE__ */ jsxs(Fragment, { children: [emailField && /* @__PURE__ */ jsx(NewsletterExtraField, {
9674
9713
  field: emailField,
9675
9714
  lookSlots,
@@ -9677,7 +9716,8 @@ function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel
9677
9716
  error
9678
9717
  }), /* @__PURE__ */ jsx("div", {
9679
9718
  ...listLookSlot({ lookSlots }, "actions"),
9680
- children: /* @__PURE__ */ jsx(ThemedButton, {
9719
+ children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
9720
+ submission,
9681
9721
  ...listLookSlot({ lookSlots }, "action"),
9682
9722
  type: "submit",
9683
9723
  variant: buttonVariant,
@@ -9690,12 +9730,14 @@ function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel
9690
9730
  field: emailField,
9691
9731
  buttonVariant,
9692
9732
  buttonLabel,
9733
+ submission,
9693
9734
  disabled,
9694
9735
  error
9695
9736
  });
9696
9737
  return /* @__PURE__ */ jsx("div", {
9697
9738
  className: "newsletter-submit",
9698
- children: /* @__PURE__ */ jsx(ThemedButton, {
9739
+ children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
9740
+ submission,
9699
9741
  type: "submit",
9700
9742
  variant: buttonVariant,
9701
9743
  size: "md",
@@ -9791,6 +9833,7 @@ function NewsletterFormSSR(props) {
9791
9833
  }, field.id))
9792
9834
  }) : null,
9793
9835
  /* @__PURE__ */ jsx(NewsletterSubmitRow, {
9836
+ submission: { kind: "waiting" },
9794
9837
  lookSlots: display.lookSlots,
9795
9838
  emailField,
9796
9839
  buttonVariant: display.buttonVariant,
@@ -11590,6 +11633,7 @@ function resolveDemoEmailSuppression(dataContext) {
11590
11633
  }
11591
11634
  function pageRuntimeContext(dataContext) {
11592
11635
  return {
11636
+ interactionContext: dataContext?.interactionContext,
11593
11637
  dateContext: pageDateRuntimeContext(dataContext),
11594
11638
  now: dataContext?.now,
11595
11639
  template: dataContext?.template ?? { kind: "page" }
@@ -11914,7 +11958,7 @@ function preparePageRender(input) {
11914
11958
  template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
11915
11959
  });
11916
11960
  const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
11917
- const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
11961
+ const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
11918
11962
  const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
11919
11963
  const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
11920
11964
  return {
@@ -11951,15 +11995,15 @@ function isPublicSourcePermitted(entry, permission) {
11951
11995
  const rawSource = entry.renderableContent.locationSource;
11952
11996
  return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
11953
11997
  }
11998
+ function entryNeedsSetup(entry, facts, interaction) {
11999
+ return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts, interaction).kind === "NeedsSetup";
12000
+ }
11954
12001
  /**
11955
12002
  * The only place joins are composed. Plan-time omissions were already
11956
12003
  * re-pointed by the plan; construction failures are re-pointed here by the
11957
12004
  * same primitive, so `[A, B, C]` losing B still gets an A→C join. Each
11958
12005
  * survivor is then classified from its final content.
11959
12006
  */
11960
- function entryNeedsSetup(entry, facts) {
11961
- return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts).kind === "NeedsSetup";
11962
- }
11963
12007
  function composeSurvivorJoins(plan, survivors, themeResources) {
11964
12008
  return composePageJoins({
11965
12009
  joins: retargetJoinsAcrossOmissions({
@@ -12041,7 +12085,7 @@ function preparedBlockProps(entry, content, data, input) {
12041
12085
  function buildBlockOverrideProps(input) {
12042
12086
  const { block, dataContext } = input;
12043
12087
  return {
12044
- content: input.content,
12088
+ content: bindArrangementInkPolicy(input.content, input.themeResources),
12045
12089
  dateContext: pageDateRuntimeContext(dataContext),
12046
12090
  now: dataContext?.now,
12047
12091
  ...overrideThemeProps(input.themeResources),
@@ -12073,14 +12117,16 @@ function newsletterBlockProps(block, renderedContent, stage) {
12073
12117
  }
12074
12118
  /** Site, transport and session context a block needs to call back to the API. */
12075
12119
  function blockSessionProps(dataContext) {
12120
+ const context = dataContext ?? {};
12076
12121
  return {
12077
- siteId: dataContext?.siteId,
12078
- apiBaseUrl: dataContext?.apiBaseUrl,
12079
- supabaseUrl: dataContext?.supabaseUrl,
12080
- portalToken: dataContext?.portalToken ?? null,
12081
- previewToken: dataContext?.previewToken ?? null,
12082
- readAuthority: dataContext?.readAuthority,
12083
- stage: dataContext?.previewStage
12122
+ siteId: context.siteId,
12123
+ interactionContext: context.interactionContext,
12124
+ apiBaseUrl: context.apiBaseUrl,
12125
+ supabaseUrl: context.supabaseUrl,
12126
+ portalToken: context.portalToken ?? null,
12127
+ previewToken: context.previewToken ?? null,
12128
+ readAuthority: context.readAuthority,
12129
+ stage: context.previewStage
12084
12130
  };
12085
12131
  }
12086
12132
  /** What this render is *about* — the entry, occurrence or surface in scope. */
@@ -12186,6 +12232,11 @@ function preparedPlanEntry(entry, prepared) {
12186
12232
  prepared
12187
12233
  };
12188
12234
  }
12235
+ /** Compiled Looks share the render's authority, including transported item contexts. */
12236
+ function bindArrangementInkPolicy(content, theme) {
12237
+ const policy = theme.kind === "available" ? theme.tokens.solvedInks ?? "withhold" : "withhold";
12238
+ return Object.fromEntries(Object.entries(content).map(([key, value]) => [key, key === "_effectiveLook" || key === "_arrangementLooks" ? parseSurfaceTree(value, policy) : value]));
12239
+ }
12189
12240
  //#endregion
12190
12241
  //#region ../blocks/src/BlockErrorBoundary.tsx
12191
12242
  /**
@@ -12263,7 +12314,7 @@ function EditorPageRenderer$1(props) {
12263
12314
  }) });
12264
12315
  }
12265
12316
  function PageRendererCore(props) {
12266
- const { page, audience, dataContext, routeMap, registry } = props;
12317
+ const { page, audience, dataContext, routeMap } = props;
12267
12318
  const imageResolveContext = React$1.useMemo(() => resolvePageRendererImageResolveContext(dataContext), [
12268
12319
  dataContext?.imageResolveContext,
12269
12320
  dataContext?.mediaAssets,
@@ -12291,16 +12342,20 @@ function PageRendererCore(props) {
12291
12342
  themeResources,
12292
12343
  imageResolveContext
12293
12344
  ]);
12294
- const joinSlots = React$1.useMemo(() => joinSlotsByPair(preparation.joins), [preparation.joins]);
12295
12345
  reportAndReplayOmissions({
12296
12346
  plan,
12297
12347
  preparation,
12298
12348
  dataContext,
12299
12349
  themeResources
12300
12350
  });
12301
- if (!page || preparation.entries.length === 0) return presentEmptyPage(audience);
12302
- const resolvedRegistry = registry ?? getDefaultComponentRegistry();
12351
+ if (!page || preparation.entries.length === 0) return props.wrapPage ? props.wrapPage(plan, presentEmptyPage(audience)) : presentEmptyPage(audience);
12303
12352
  setContextResolveImageUrlContext(imageResolveContext);
12353
+ const rendered = renderPreparedPage(props, preparation, themeResources, imageResolveContext);
12354
+ return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
12355
+ }
12356
+ function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
12357
+ const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
12358
+ const joinSlots = joinSlotsByPair(preparation.joins);
12304
12359
  return /* @__PURE__ */ jsx("div", { children: preparation.entries.map((entry, index) => renderGuardedPlanEntry({
12305
12360
  entry,
12306
12361
  index,
@@ -12718,8 +12773,17 @@ function parseBlocksTheme(theme) {
12718
12773
  if (!parsed.ok) throw new Error(`Theme does not satisfy the canonical runtime contract: ${parsed.error.kind}`);
12719
12774
  return parsed.value;
12720
12775
  }
12721
- function buildThemeRuntime(theme) {
12722
- return { tokens: buildThemeRuntime$1(parseBlocksTheme(theme)).tokens };
12776
+ /**
12777
+ * Block tokens for a stored theme. The SDK decides the ink policy itself: only
12778
+ * a render whose own scope emits the stored theme's CSS (`cms-theme`) may
12779
+ * publish solved inks. Anything else withholds, because a bridge or a
12780
+ * consumer's own CSS may give the tokens different values.
12781
+ */
12782
+ function buildThemeRuntime(theme, solvedInks = "withhold") {
12783
+ return { tokens: {
12784
+ ...buildThemeRuntime$1(parseBlocksTheme(theme)).tokens,
12785
+ solvedInks
12786
+ } };
12723
12787
  }
12724
12788
  //#endregion
12725
12789
  //#region src/rendering/mediaAssets.ts
@@ -12734,6 +12798,33 @@ function toBlocksImageResolveContextInput(context) {
12734
12798
  mediaAssets: toBlocksMediaAssets(context.mediaAssets)
12735
12799
  };
12736
12800
  }
12801
+ /** Admit loader sidecars once before sharing them with page and image rendering. */
12802
+ function collectLoaderMediaAssets(resolvedData) {
12803
+ return Object.values(resolvedData ?? {}).flatMap((block) => Object.values(block).flatMap((loader) => {
12804
+ if (!loader || typeof loader !== "object" || !("mediaAssets" in loader) || !Array.isArray(loader.mediaAssets)) return [];
12805
+ return renderableMediaAssetSchema.array().parse(loader.mediaAssets);
12806
+ }));
12807
+ }
12808
+ function mergeMediaAssets(preferred, fallback) {
12809
+ if (!fallback?.length) return preferred;
12810
+ return [...new Map([...fallback, ...preferred ?? []].map((asset) => [asset.id, asset])).values()];
12811
+ }
12812
+ /** Page and image rendering share the same admitted loader assets and precedence. */
12813
+ function resolveBlocksPageMediaContext(dataContext) {
12814
+ const loaderAssets = collectLoaderMediaAssets(dataContext.resolvedData);
12815
+ const mediaAssets = mergeMediaAssets(toBlocksMediaAssets(dataContext.mediaAssets), loaderAssets);
12816
+ const explicitImageContext = toBlocksImageResolveContextInput(dataContext.imageResolveContext);
12817
+ const imageAssets = mergeMediaAssets(explicitImageContext?.mediaAssets, mediaAssets);
12818
+ return {
12819
+ mediaAssets,
12820
+ imageResolveContext: explicitImageContext || dataContext.siteId || dataContext.supabaseUrl || imageAssets?.length ? {
12821
+ siteId: dataContext.siteId,
12822
+ supabaseUrl: dataContext.supabaseUrl,
12823
+ ...explicitImageContext,
12824
+ mediaAssets: imageAssets
12825
+ } : void 0
12826
+ };
12827
+ }
12737
12828
  //#endregion
12738
12829
  //#region src/rendering/blocks-page-renderer.ts
12739
12830
  const MissingBlockOverrideError = MissingBlockOverrideError$1;
@@ -12772,8 +12863,7 @@ function toBlocksPageRendererDataContext(dataContext) {
12772
12863
  ...resolveDateRuntimeContext(dataContext.dateContext?.timeZone ?? dataContext.bookingTimeZone),
12773
12864
  ...dataContext.dateContext?.locale ? { locale: dataContext.dateContext.locale } : {}
12774
12865
  },
12775
- mediaAssets: toBlocksMediaAssets(dataContext.mediaAssets),
12776
- imageResolveContext: toBlocksImageResolveContextInput(dataContext.imageResolveContext)
12866
+ ...resolveBlocksPageMediaContext(dataContext)
12777
12867
  };
12778
12868
  }
12779
12869
  function toBlocksCommonProps(props) {
@@ -12849,6 +12939,20 @@ function planLayoutThemeRuntime(input) {
12849
12939
  }
12850
12940
  return requested;
12851
12941
  }
12942
+ /**
12943
+ * The one SDK rule for solved surface inks: only the runtime that emits the
12944
+ * stored theme's own CSS publishes them. A page whose layout emits that CSS
12945
+ * but whose own runtime is `none` withholds, so its sections reset the inks
12946
+ * rather than disagree with the scope around them.
12947
+ */
12948
+ function solvedInksForThemeRuntime(themeRuntime) {
12949
+ switch (themeRuntime.kind) {
12950
+ case "cms-theme": return "publish";
12951
+ case "responsive-only":
12952
+ case "none": return "withhold";
12953
+ default: return assertNever$1(themeRuntime);
12954
+ }
12955
+ }
12852
12956
  function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
12853
12957
  switch (themeRuntime.kind) {
12854
12958
  case "cms-theme": return /* @__PURE__ */ jsx(ThemeScope, {
@@ -12880,7 +12984,11 @@ function isOverrideOnlyPage(props) {
12880
12984
  return props.rendering?.kind === "overrides-only";
12881
12985
  }
12882
12986
  function resolvePageThemeTokens(props) {
12883
- const baseTokens = props.themeTokens ?? buildThemeRuntime(props.theme).tokens;
12987
+ const solvedInks = solvedInksForThemeRuntime(props.themeRuntime ?? defaultPageThemeRuntime);
12988
+ const baseTokens = {
12989
+ ...props.themeTokens ?? buildThemeRuntime(props.theme).tokens,
12990
+ solvedInks
12991
+ };
12884
12992
  return props.sdkConfig?.theme?.palette ? {
12885
12993
  ...baseTokens,
12886
12994
  palette: {
@@ -12930,6 +13038,7 @@ function buildPageIdentityRenderContext(dataContext) {
12930
13038
  }
12931
13039
  function PageContent(props) {
12932
13040
  const rendererCommonProps = buildPageRendererProps(props);
13041
+ const themeTokens = isOverrideOnlyPage(props) ? void 0 : resolvePageThemeTokens(props);
12933
13042
  const content = isOverrideOnlyPage(props) ? /* @__PURE__ */ jsx(PageRenderer, {
12934
13043
  ...rendererCommonProps,
12935
13044
  rendering: { kind: "overrides-only" },
@@ -12937,16 +13046,23 @@ function PageContent(props) {
12937
13046
  }) : /* @__PURE__ */ jsx(PageRenderer, {
12938
13047
  ...rendererCommonProps,
12939
13048
  theme: props.theme,
12940
- themeTokens: resolvePageThemeTokens(props),
13049
+ themeTokens,
12941
13050
  blockOverrides: props.blockOverrides
12942
13051
  });
13052
+ const children = themeTokens?.solvedInks === "publish" ? content : /* @__PURE__ */ jsx("div", {
13053
+ style: {
13054
+ display: "contents",
13055
+ ...surfaceInkStyle({ kind: "reset" })
13056
+ },
13057
+ children: content
13058
+ });
12943
13059
  return isOverrideOnlyPage(props) ? renderWithOverrideOnlyRuntime({
12944
13060
  runtime: props.rendering.runtime,
12945
- children: content
13061
+ children
12946
13062
  }) : renderWithSdkThemeRuntime({
12947
13063
  themeRuntime: props.themeRuntime ?? defaultPageThemeRuntime,
12948
13064
  theme: props.theme,
12949
- children: content
13065
+ children
12950
13066
  });
12951
13067
  }
12952
13068
  /** The page shell owns the complete block context for both rendering modes. */
@@ -12975,6 +13091,7 @@ function buildPageDataContext(props) {
12975
13091
  openingHours: props.openingHours ?? props.dataContext.openingHours,
12976
13092
  siteTerms: props.siteTerms ?? props.dataContext.siteTerms,
12977
13093
  mailingList: props.mailingList ?? props.dataContext.mailingList,
13094
+ interactionContext: props.interactionContext ?? props.dataContext.interactionContext,
12978
13095
  bookingTimeZone: resolveSdkBookingTimeZone(props.bookingTimeZone),
12979
13096
  dateContext: resolveDateRuntimeContext(props.bookingTimeZone),
12980
13097
  routes: props.routeMap,
@@ -13166,4 +13283,4 @@ function defineBlockOverrideRegistrations(registrations) {
13166
13283
  return registrations;
13167
13284
  }
13168
13285
  //#endregion
13169
- export { toBlocksMediaAssets as C, renderBlock as D, makeDefaultBlockComponent as E, getDefaultComponentRegistry as O, toBlocksImageResolveContextInput as S, parseBlocksTheme as T, ThemeScope as _, defaultOverrideOnlyRuntime as a, PageRenderer as b, getRiverbankEnv as c, toPageHydrationBootstrapConfig as d, defaultCatchAllThemeRuntime as f, renderWithSdkThemeRuntime as g, renderWithOverrideOnlyRuntime as h, lazyBlockOverrideSymbol as i, isPreviewMode as l, planLayoutThemeRuntime as m, defineBlockOverrides as n, normalizeSdkRenderingMode as o, defaultLayoutThemeRuntime as p, defineLazyBlockOverride as r, themeRuntimeForRendering as s, defineBlockOverrideRegistrations as t, PageContent as u, EditorPageRenderer as v, buildThemeRuntime as w, toBlocksPageRendererDataContext as x, MissingBlockOverrideError as y };
13286
+ export { toBlocksImageResolveContextInput as C, makeDefaultBlockComponent as D, parseBlocksTheme as E, renderBlock as O, toBlocksPageRendererDataContext as S, buildThemeRuntime as T, solvedInksForThemeRuntime as _, defaultOverrideOnlyRuntime as a, MissingBlockOverrideError as b, getRiverbankEnv as c, toPageHydrationBootstrapConfig as d, defaultCatchAllThemeRuntime as f, renderWithSdkThemeRuntime as g, renderWithOverrideOnlyRuntime as h, lazyBlockOverrideSymbol as i, getDefaultComponentRegistry as k, isPreviewMode as l, planLayoutThemeRuntime as m, defineBlockOverrides as n, normalizeSdkRenderingMode as o, defaultLayoutThemeRuntime as p, defineLazyBlockOverride as r, themeRuntimeForRendering as s, defineBlockOverrideRegistrations as t, PageContent as u, ThemeScope as v, toBlocksMediaAssets as w, PageRenderer as x, EditorPageRenderer as y };