@riverbankcms/sdk 0.179.0 → 0.181.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 (240) hide show
  1. package/README.md +2 -2
  2. package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
  3. package/dist/_dts/{Page-lWenra5i.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +3 -2
  5. package/dist/_dts/{client-qWn7xAwJ.d.ts → client-Chr9pNVW.d.ts} +288 -121
  6. package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-kjccgopX.d.ts} +2 -2
  7. package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-BodaiS00.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
  9. package/dist/_dts/{index-DCiSHd-C.d.ts → index-Brl6_I2j.d.ts} +5 -4
  10. package/dist/_dts/{index-CaCum9mM.d.ts → index-CJkefwYh.d.ts} +2 -2
  11. package/dist/_dts/{index-7CDBZGb-.d.ts → index-D1WpKwQe.d.ts} +1 -1
  12. package/dist/_dts/{index-BU9uAkHB.d.ts → index-DG0OvBs0.d.ts} +8 -8
  13. package/dist/_dts/{index-BYnG_vF5.d.ts → index-Diqt0PvG.d.ts} +1 -1
  14. package/dist/_dts/{index-CZgJrhzT.d.ts → index-Dy50xUMK.d.ts} +2 -2
  15. package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
  16. package/dist/_dts/{request-BjKBCS7t.d.ts → request-CA0izds5.d.ts} +4561 -1390
  17. package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-BvGyvblj.d.ts} +1 -1
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +7 -7
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  26. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  28. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  29. package/dist/_dts/sdk/src/index.d.ts +104 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +84 -53
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  37. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  54. package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +8 -7
  55. package/dist/_dts/{types-B7e6Lmo5.d.ts → types-CQrsP1x_.d.ts} +3 -3
  56. package/dist/_dts/{types-CT-KOxl_.d.ts → types-CgS3xLk8.d.ts} +7 -2
  57. package/dist/_dts/{types-BOxSq-Bq.d.ts → types-R65DKjPn.d.ts} +9 -8
  58. package/dist/_dts/{validation-Dz6qccue.d.ts → validation-6LTIbuBA.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
  60. package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-uWfR2kaG.mjs} +177 -70
  61. package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-CyNIKw6k.mjs} +23 -82
  62. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  63. package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
  64. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +18 -10
  66. package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
  67. package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
  68. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  69. package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CwzrjcRw.mjs} +8 -7
  70. package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
  71. package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
  72. package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-DZ0qMFF4.mjs} +8 -211
  73. package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +1657 -403
  74. package/dist/client/{Page-ChJ2TGVk.mjs → Page-C7mygH_f.mjs} +536 -287
  75. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  76. package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +27 -24
  77. package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
  78. package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-atfDU82W.mjs} +21 -13
  79. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  80. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
  81. package/dist/client/{accordion-B6SqU49k.mjs → accordion-CsW8U3ff.mjs} +1 -1
  82. package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-cBWM392H.mjs} +442 -86
  83. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  84. package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-DgySpp6C.mjs} +4 -4
  85. package/dist/client/bookings.mjs +51 -15
  86. package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
  87. package/dist/client/{carousel-C-YJliD-.mjs → carousel-DJoleFV3.mjs} +2 -2
  88. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  89. package/dist/client/{cart-acGFWK9R.mjs → cart-EO5o6uPH.mjs} +3 -3
  90. package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-D_gPw45z.mjs} +1 -1
  91. package/dist/client/{checkout-SEontwhy.mjs → checkout-NVfZW0kR.mjs} +3 -3
  92. package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
  94. package/dist/client/client.mjs +306 -196
  95. package/dist/client/constants-CoOkvw__.mjs +100 -0
  96. package/dist/client/{context-DTrwaQtg.mjs → context-CRhn9qzS.mjs} +922 -388
  97. package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
  98. package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
  99. package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
  100. package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-D7YYKySQ.mjs} +2084 -1640
  101. package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
  102. package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
  103. package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-B3KIZNfY.mjs} +4 -4
  104. package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
  105. package/dist/client/{form-DyH2juYT.mjs → form-DM8Zbxbv.mjs} +3 -3
  106. package/dist/client/{form.client-DBwzkB0M.mjs → form.client-e2z_Tlgk.mjs} +5 -5
  107. package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-Ctljy1a3.mjs} +3 -3
  108. package/dist/client/gifting/client.mjs +32 -29
  109. package/dist/client/{gifting-CIx4V378.mjs → gifting-DWIsqQru.mjs} +4 -4
  110. package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
  111. package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
  112. package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-DAkRkwb-.mjs} +2 -2
  113. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  114. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  115. package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
  116. package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-RuM86VAv.mjs} +37 -44
  117. package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
  118. package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
  119. package/dist/client/{lookSurfaces-IqT_SVnX.mjs → noop-Dl4mZ-rr.mjs} +257 -49
  120. package/dist/client/portal/client.mjs +11779 -6745
  121. package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
  122. package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
  123. package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-pOAryevt.mjs} +1 -1
  124. package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CcUpUiud.mjs} +1 -1
  125. package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-BZJCfqat.mjs} +3 -3
  126. package/dist/client/{productList-DE9GEFoZ.mjs → productList-CiRs3mNb.mjs} +3 -3
  127. package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
  128. package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-CDNNd8wC.mjs} +318 -235
  129. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  130. package/dist/client/rendering/client.mjs +26 -26
  131. package/dist/client/rendering/islands.mjs +1 -1
  132. package/dist/client/rendering.mjs +16 -8
  133. package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
  134. package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
  136. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
  137. package/dist/client/{shop-C3wM0Hr4.mjs → shop-Rx_gEMK8.mjs} +3 -3
  138. package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
  139. package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
  140. package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
  141. package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
  142. package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
  143. package/dist/client/spam-protection.mjs +1 -1
  144. package/dist/client/src-Al4ooTl_.mjs +164 -0
  145. package/dist/client/{src-CCtanNlD.mjs → src-ZSqRK3dD.mjs} +345 -92
  146. package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BQJrSK0K.mjs} +205 -80
  147. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  148. package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-Dm3lKJKR.mjs} +3 -24
  149. package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
  150. package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
  151. package/dist/client/{view-LJVHVqsy.mjs → view-CC_yQLSA.mjs} +4 -4
  152. package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-BliJOzEX.mjs} +2512 -675
  153. package/dist/preview-next/before-render.mjs +1 -0
  154. package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
  155. package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
  156. package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-BhL0uADo.mjs} +4 -4
  157. package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +8 -7
  158. package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-BS32G4V9.mjs} +5 -5
  159. package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-RL0WfZXD.mjs} +7 -7
  160. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +39 -7
  161. package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
  162. package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-CQyS8pcq.mjs} +10318 -3719
  163. package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
  164. package/dist/preview-next/client/runtime.mjs +3 -3
  165. package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
  166. package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-BlmbvbLN.mjs} +37 -25
  167. package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
  168. package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +2 -2
  169. package/dist/preview-next/container-responsive.css +292 -170
  170. package/dist/preview-next/keepAlive.mjs +1 -1
  171. package/dist/preview-next/middleware.mjs +1 -1
  172. package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-R3PcMmax.mjs} +114 -37
  173. package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-CniF9tSu.mjs} +5 -5
  174. package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQWsnGT6.mjs} +133 -120
  175. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
  176. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  177. package/dist/server/{bindings-Bly0dRs7.mjs → bindings-DxojjtK3.mjs} +7 -7
  178. package/dist/server/{client-CGJ2ztYp.mjs → client-CDndhbYO.mjs} +1412 -1307
  179. package/dist/server/config-validation.mjs +1 -1
  180. package/dist/server/config.mjs +2 -2
  181. package/dist/server/constants-VyF5nEhL.mjs +1474 -0
  182. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  183. package/dist/server/data/resolveBlockData.mjs +1 -1
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-BKstMBmX.mjs} +7 -4
  186. package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-IgNnZaqr.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-TFjgNG61.mjs} +74 -18
  188. package/dist/server/manifest.mjs +36 -25
  189. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  190. package/dist/server/media-BRmYrnzb.mjs +31 -0
  191. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  192. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
  193. package/dist/server/navigation.mjs +1 -1
  194. package/dist/server/next.mjs +170 -104
  195. package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
  196. package/dist/server/page-converter.mjs +3 -3
  197. package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-B7iULvKe.mjs} +15 -12
  198. package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BytMroxn.mjs} +9 -5
  199. package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-Dcs_XTIO.mjs} +836 -624
  200. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
  201. package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
  202. package/dist/server/portal.mjs +3 -3
  203. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  204. package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-agaH-vZV.mjs} +1 -1
  205. package/dist/server/prebuild.mjs +1 -1
  206. package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-DwpRjqw4.mjs} +5 -3
  207. package/dist/server/{registry-DH1VrsCl.mjs → registry-DM9dHfDC.mjs} +582 -526
  208. package/dist/server/rendering/components/pageShared.mjs +1 -1
  209. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  210. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  211. package/dist/server/rendering/server.mjs +4 -4
  212. package/dist/server/rendering.mjs +10 -9
  213. package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-CinHGf8l.mjs} +39 -31
  214. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
  215. package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
  216. package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-IfH65QAH.mjs} +57 -2
  217. package/dist/server/routing.mjs +1 -1
  218. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  219. package/dist/server/server.mjs +3 -3
  220. package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-BBBhOtdE.mjs} +31 -26
  221. package/dist/server/theme-bridge.mjs +3 -2
  222. package/dist/server/theme.mjs +2 -2
  223. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  224. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  225. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  226. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  227. package/dist/server/{validation-3jOzYdPL.mjs → validation-DG5jX3jH.mjs} +70 -17
  228. package/dist/server/{version-8t0o6_jd.mjs → version-CipbxPHL.mjs} +1 -1
  229. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  230. package/dist/styles/index.css +3446 -3796
  231. package/package.json +2 -1
  232. package/dist/_dts/index-DVSipdrT.d.ts +0 -101
  233. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  234. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  235. package/dist/client/constants-4o4_hl34.mjs +0 -6
  236. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  237. package/dist/client/formatDate-CTEN7gxW.mjs +0 -26
  238. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  239. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  240. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -1,17 +1,19 @@
1
- import { Dt as parseThemeColorToken, Et as parseColorTokenParts, G as hexToRgb, R as contrastRatio, a as formatButtonColourContractError, at as surfaceForegroundValue, c as DEFAULT_BUTTON_SIZES, ct as surfaceInkStyle, d as generateShadowValue$1, et as SURFACE_INK_CSS_VARS, f as DEFAULT_VARIANT_ALIAS_ID, ft as cssVarValue, g as createStandardButtonSurfacePolicy, gt as textColorValue, h as buttonSizeNameSchema, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, j as expandPalette, mt as rgbColorValue, n as compileButtonColourStates, nt as surfaceForegroundDeclarations, pt as mergeStyles, r as resolveSolidButtonColour, rt as surfaceForegroundInputFromResolved, s as BORDER_WIDTH_MAP, st as surfaceInkDeclarations, u as FONT_SIZE_MAP, ut as backgroundColorStyle, v as unsafeAsOpaqueButtonColourToken } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
- import { $ as formatEventDuration, A as OfferingCourseCards, B as EventItem, C as resolvePageRouteTarget, D as EVENT_REGISTRATION_ANCHOR_ID, E as EventHeader, F as createEditorPresentationPageReader, G as eventDisplayTitleText, H as CalendarIcon, I as createPresentationPageReader, J as buildMonthDay, K as formatCourseDatesAfter, L as EmptyState, M as offeringDatesBySeries, N as deriveEventScheduleSummary, O as MonthLookView, P as derivePreviewRunSchedule, Q as formatEventTeacherLine, R as CardListCollection, S as resolveEntryRouteTarget, T as lookPartShown, U as MapPinIcon, V as eventCategoryBadge, W as eventDisplayTitle, X as formatEventQuickDate, Y as resolveMonthSelectedDay, Z as selectQuickDateEvents, _ as publicAppointmentLocationSchema, a as joinSlotKey, ct as buildThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, et as resolveEventCardBooking, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as eventCardListContent, k as EventListingFrameView, l as buildLinkedContentEditTarget, lt as defaultThemeTokens, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as resolveEventLinkProps, o as renderedJoinLayout, p as defaultTransforms, q as formatCourseSessions, rt as parseStoredVariant, s as retargetJoinsAcrossOmissions, tt as resolveEventCta, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as CardListItems } from "./pageRenderPlan-JzxBnqfV.mjs";
3
- import { $i as PUBLIC_DOWNLOAD_MEDIA_TYPES, $n as composeHeaderSectionWrapperClassName, $r as singleButtonFragment, $s as parseLocalScheduleTime, $t as eventOnlinePlace, A as membershipClassesLabel, Aa as headerRootIsTransparent, Ai as el, An as isOrdinaryPublicEvent, Ar as Grid, At as groupOfferingRunsByCourse, B as eventListingBlockDefinition, Bi as FileArchiveIcon, Bn as isBookableEvent, Br as formatEventDepositNote, Bs as sameMailingListPlacementTargeting, Bt as ThemedButtonLink, C as buildCartInteractiveIslandProps, Ca as selectItemSurfacePresentation, Cn as groupEventsByDate, Cr as defineProgressiveBlockRuntime, Ct as normalizeEventRegistrationPageSurfaceSubject, D as buildShopInteractiveIslandProps, Da as readOpeningToneProjection, Dn as hasCancelledRegistrationDate, Dr as lookListPresentationSchemaShape, Ds as loadedReadinessFact, E as buildProductListInteractiveIslandProps, Ea as effectiveHeaderNavLinkStyle, En as cancelledDateCopy, Er as listLookSlot, Es as hiddenFromVisitors, F as offeringsCatalogueShape, Fi as ArrowDownIcon, Fn as planWholeSeriesRunSelection, Fo as anglePolygonCss, Fs as resolveWholeSeriesBookingPhase, Ft as resolveOfferingsPreviewGroupCta, G as eventCollectionDisplaySchemaShape, Gi as PlusIcon, Gn as getEventAvailabilityStatus, Gt as eventListWeekDays, H as buildEventCollectionDisplay, Hi as FileSpreadsheetIcon, Hn as formatEventRemainingPlaces, Hr as formatEventPriceAmount, Hs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Ht as getIconComponent, I as eventCalendarBlockDefinition, Ii as ChevronDownIcon, Io as transitionCatalogueEntries, Is as buildMailingListSignupBlockSourceRef, It as resolveOfferingsPreviewGroups, J as catalogueEventCardProps, Ji as parseInlineTextFromUnknown, Jn as FEATURE_CARD_ICON_TREATMENTS, Jr as headingFragment, Js as toScheduledBookingDateTime, K as eventCollectionHydrationSchema, Ki as inlineTextToPlainText, Kn as isEventFull, Kt as eventWeekGroupingContext, L as buildEventCalendarInteractiveIslandProps, Li as CircleMinusIcon, Ln as resolveSelectionBookingClosedDetail, Ls as parseMailingListRuntimeContext, Lt as resolveOfferingsRenderInput, M as offeringsPreviewBlockDefinition, Mi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, Mn as planOrdinarySeriesSelection, Ms as CANCELLED_SESSION_STATUS, Mt as offeringRunLifecycle, N as publicRouteCandidatesSchema, Na as arrangementLookHooks, Ni as parseBlockIconValue, Nn as planWholeSeriesParentBooking, Nt as offeringsListingFor, O as shopProductPresentation, On as eventOccurrenceContext, Oo as boundaryRuntimeMetricsForDecorativeTransition, Or as resolvedItemSurfaceProps, Os as pageTemplateFromEntry, Ot as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, P as buildOfferingsCatalogueListing, Pi as resolveBlockIconRenderValue, Pn as planWholeSeriesParentSelection, Ps as orderedLiveRunSessions, Pt as readOfferingsGrouping, Q as cardListPresentationSchemaShape, Qi as parseFieldDefinitions, Qr as blogFeaturedPostFragment, Qt as browserReadAuthoritySchema, R as buildEventCalendarListingDisplay, Ri as CirclePlusIcon, Rn as selectionRepresentativeEvent, Rt as ThemedAuthoredButton, S as shopBlockDefinition, Si as defineFragment, Sn as formatTime, Sr as defineClientOwnedBlockRuntime, St as previewStageSchema, T as buildProductDetailInteractiveIslandProps, Ta as authoredHeaderLinkForeground, Tn as bookingPageKindSchema, Tr as listLookControl, Ts as admitReadinessFacts, U as buildEventCollectionHydration, Ua as resolveEffectiveArrangement, Ui as FileTextIcon, Un as formatTotalCapacity, Us as formatDate$1, Ut as SpinnerNode, V as buildEventListingInteractiveIslandProps, Va as arrangementManifestFromVariants, Vi as FileAudioIcon, Vr as formatEventPrice, Vt as ThemedDownloadLink, W as buildEventCollectionListingDisplay, Wi as MinusIcon, Wt as buildEventListWeek, X as CardListContentPart, Xn as shouldReserveFeatureCardIconZone, Xr as faqAccordionFragment, Xs as getBookingLocalDateKey, Y as listingEventCardProps, Yn as resolveFeatureCardGeneratedIconSizePx, Yr as cardFragment, Yt as resolveRuntimeEventDestination, Zr as faqHeadingFragment, Zt as bookingPresentation, _ as buildGiftingInteractiveIslandProps, _a as parseThemeButtonVariantId, _c as TokenResolver, _n as formatEventHourLabel, _o as generateInteractiveChildInheritanceCSS, _r as buildFormInteractiveIslandProps, _s as blockBookingPaymentTermsSchema, _t as getContainerClass, a as LOCATION_MAP_LOADER_KEYS, aa as eventReadinessLoaderKey, ac as isPublicEventPricingOptionDisplayable, ai as heroCtaRowFragment, an as closedDatesCopy, ar as teamMemberCardBiography, as as getLocalDateKey, b as productDetailBlockDefinition, ba as resolveHeaderRootForeground, bn as formatEventTimeRange, br as defineInteractiveIslandMetaKeys, bs as beforeBookingQuestionsPresentationSchema, bt as resolveEventRegistrationEventSource, c as normalizeLocationMapSource, ca as eventReadinessResultSchema, cc as publicEventPricingType, ci as heroCopyFragment, cn as buildCalendarViewport, cs as formatDateKey, d as newsletterSignupBlockDefinition, dc as formatCurrencyAmount, di as normalizeBoxStylesBorder, do as generateFooterCss, ds as getWeekCalendarDayTuple, ec as toUtcIsoDateTimeString, ei as formEmbedFragment, en as eventPlaceName, er as markEditableSurfaceForwarding, fi as resolveCardRoleForBoxStyles, fn as formatCalendarTitle, fo as buildTextContrastShadow, fr as staticHeaderChromeRuntime, fs as getWeekCalendarDays, ft as buildResolveImageUrlContext, g as giftingBlockDefinition, gn as formatEventDateParts, go as resolveEffectPaint, gr as formBlockDefinition, gs as publicEventsArraySchema, gt as getCardOrientation, h as newsletterBlockSubmissionMessage, hn as formatEventCompactDateRail, ho as resolveEffectApplications, ht as EventQuickFacts, ic as formatBookingPriceDisplay, ii as ctaCopyFragment, in as pageNavigationSchema, ir as teamMemberBiography, it as MediaPlaceholder, j as passCardListContent, ja as headerRootPaint, ji as when, jn as planDropInPanel, jr as clsx, jt as normalizeOfferingsPreviewItemLimit, k as membershipCardListContent, ka as headerNeedsPhotoShade, ki as runTransforms, kn as getPublicEventCanonicalPath, kr as itemRole, ks as unavailableReadinessFact, kt as buildOfferingsPreviewListing, l as parseLocationMapLoaderResult, lc as resolveExactOrFreePriceDisplay, lo as resolveCardRole, ls as getDayOfWeek, lt as resolvePublicMediaUrl, m as buildNewsletterFormInteractiveIslandProps, mn as formatEventClockLabel, mo as generateEffectsCSS, ms as isToday, mt as setContextResolveImageUrlContext, na as isRecord$4, nc as toBookingTimeZone, ni as testimonialsCarouselFragment, nn as formatEventLocation, nt as RichText, o as describeUnresolvedLocationMapLocation, oc as publicEventPricingCurrency, oi as ctaRowFragment, on as closedRunCopy, or as readRuntimeNow, os as getLocalMinuteOfDay, p as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, pn as formatDate, po as generateNavLinkCSS, ps as isSameCalendarDay, pt as getCurrentResolveImageUrlContext, q as eventCollectionSourceSchemaShape, qi as isInlineTextEmpty, qn as groupPublicEventsByRun, qo as bindingSchema, qr as richTextFragment, qs as formatBookingCompactEnglishTime, r as normalizeBlockContent, ra as chosenString, ri as testimonialsHeadingFragment, rn as blockSiteTermsSchema, ro as requireCuratedSiteStyle, rr as parseTeamMemberSpecialties, rt as ImagePresets, s as normalizeLocationMapProps, sc as publicEventPricingDisplay, si as isBlockButtonRole, sn as closedDateCopy, sr as resolveDateRuntimeContext, ss as addDays, t as getBlockDefinition, ta as isObjectRecord, tc as resolveBookingBusinessTimeZone, ti as formCopyFragment, tn as eventVenuePlace, tr as splitPositioningClasses, tt as MediaNodeServer, u as resolveLocationMapLocation, ui as boxStyleClassNames, un as eventDateOptions, uo as generateDefaultCardSystem, us as getOrderedDayNames, v as checkoutBlockDefinition, va as themeButtonSelector, vi as resolveBackgroundColorValue, vn as formatEventNextDateFact, vr as buildInteractiveIslandProps, vs as blockBookingConsentSchema, vt as eventRegistrationBlockDefinition, w as buildCheckoutInteractiveIslandProps, wn as resolveEventTimeZone, wr as listItemPresentation, wt as resolveEventRegistrationScopedEvents, x as productListBlockDefinition, xi as bodyCopyFragment, xr as createZodCodec, xs as sanitizeHref, xt as bookingNowSchema, y as cartBlockDefinition, ya as AFFORDANCE_SUPPRESS_CLASS, yi as ctaButton, yr as createInteractiveIslandCodec, ys as bookingConsentCarrierSchema, yt as buildEventRegistrationInteractiveIslandProps, zi as ClockIcon, zr as formatCoursePrice, zs as parseMailingListPlacementTargeting, zt as ThemedButton } from "./registry-DH1VrsCl.mjs";
4
- import { B as HOVER_TEXT_THRESHOLD, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as inkReference, V as certifyPaint, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-CM3QANtw.mjs";
5
- import { b as siteChromeBackgroundOverrideOwner, m as surfaceCardRoleValues, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
6
- import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
7
- import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
8
- import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
9
- import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-DyNSd2Yj.mjs";
10
- import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
11
- import { M as opaqueSurfaceDeclarations, T as testimonialsCompositionTreatmentValues, j as opaqueSurfaceContextFromTheme, v as featureCardCompositionTreatmentValues, x as offeringsPreviewCompositionTreatmentValues, y as introCompositionTreatmentValues } from "./lookMediaFrame-CaH018pK.mjs";
12
- import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-Bly0dRs7.mjs";
13
- import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as prefixSelector, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as escapeStyleContent, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, n as compileBlockCustomCssRules, o as toKebabCase, p as generateProgressCss, r as compileCustomCssRules, s as parseBlockCustomCssRules, t as ThemeScopeCore, u as generateBlockCustomVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DFEM1a85.mjs";
14
- import { t as parseThemeForPersistence } from "./parseThemeForPersistence-DOsfofCy.mjs";
1
+ import { D as surfaceInkStyle, E as surfaceInkDeclarations, F as textColorValue, J as parseColorTokenParts, L as callsCssLoadingFunction, M as mergeStyles, N as rgbColorValue, P as textColorStyle, R as staysInsideDeclaration, S as surfaceForegroundInputFromResolved, Y as parseThemeColorToken, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, j as cssVarValue, k as backgroundColorStyle, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, w as surfaceForegroundValue, x as surfaceForegroundDeclarations, y as SURFACE_INK_CSS_VARS } from "./types-BKaBZFjD.mjs";
2
+ import { C as contrastRatio, a as formatButtonColourContractError, c as DEFAULT_BUTTON_SIZES, d as generateShadowValue$1, g as expandPalette, i as BUTTON_CONTRAST_POLICY, j as hexToRgb, n as compileButtonColourStates, r as resolveSolidButtonColour, s as BORDER_WIDTH_MAP, u as FONT_SIZE_MAP } from "./resolveButtonColourStates-B0O1IM16.mjs";
3
+ import { $ as formatEventDuration, A as OfferingCourseCards, B as EventItem, C as resolvePageRouteTarget, D as EVENT_REGISTRATION_ANCHOR_ID, E as EventHeader, F as createEditorPresentationPageReader, G as eventDisplayTitleText, H as CalendarIcon, I as createPresentationPageReader, J as buildMonthDay, K as formatCourseDatesAfter, L as EmptyState, M as offeringDatesBySeries, N as deriveEventScheduleSummary, O as MonthLookView, P as derivePreviewRunSchedule, Q as formatEventTeacherLine, R as CardListCollection, S as resolveEntryRouteTarget, T as lookPartShown, U as MapPinIcon, V as eventCategoryBadge, W as eventDisplayTitle, X as formatEventQuickDate, Y as resolveMonthSelectedDay, Z as selectQuickDateEvents, _ as publicAppointmentLocationSchema, a as joinSlotKey, ct as buildThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, et as resolveEventCardBooking, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as eventCardListContent, k as EventListingFrameView, l as buildLinkedContentEditTarget, lt as defaultThemeTokens, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as resolveEventLinkProps, o as renderedJoinLayout, p as defaultTransforms, q as formatCourseSessions, rt as parseStoredVariant, s as retargetJoinsAcrossOmissions, tt as resolveEventCta, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as CardListItems } from "./pageRenderPlan-B7iULvKe.mjs";
4
+ import { $i as PUBLIC_DOWNLOAD_MEDIA_TYPES, $n as composeHeaderSectionWrapperClassName, $r as singleButtonFragment, $s as resolveBookingBusinessTimeZone, $t as eventOnlinePlace, A as membershipClassesLabel, Ai as el, An as isOrdinaryPublicEvent, Ar as Grid, As as resolveWholeSeriesBookingPhase, At as offeringRunLifecycle, B as eventListingBlockDefinition, Bi as FileArchiveIcon, Bn as isBookableEvent, Br as formatEventDepositNote, Bt as ThemedButtonLink, C as buildCartInteractiveIslandProps, Ca as authoredHeaderLinkForeground, Cn as groupEventsByDate, Cr as defineProgressiveBlockRuntime, Cs as pageTemplateFromEntry, D as buildShopInteractiveIslandProps, Da as headerNeedsPhotoShade, Dn as hasCancelledRegistrationDate, Dr as lookListPresentationSchemaShape, Ds as CANCELLED_SESSION_STATUS, Dt as buildOfferingsPreviewListing, E as buildProductListInteractiveIslandProps, En as cancelledDateCopy, Eo as boundaryRuntimeMetricsForDecorativeTransition, Er as listLookSlot, Et as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, F as offeringsCatalogueShape, Fi as ArrowDownIcon, Fn as planWholeSeriesRunSelection, Fs as parseMailingListPlacementTargeting, Ft as resolveOfferingsRenderInput, G as eventCollectionDisplaySchemaShape, Gi as PlusIcon, Gn as getEventAvailabilityStatus, Gs as addLocalScheduleDays, Gt as eventListWeekDays, H as buildEventCollectionDisplay, Hi as FileSpreadsheetIcon, Hn as formatEventRemainingPlaces, Hr as formatEventPriceAmount, Ht as getIconComponent, I as eventCalendarBlockDefinition, Ii as ChevronDownIcon, Is as sameMailingListPlacementTargeting, It as normalizeEventRegistrationPageSurfaceSubject, J as catalogueEventCardProps, Ji as parseInlineTextFromUnknown, Jn as FEATURE_CARD_ICON_TREATMENTS, Jr as headingFragment, Js as getBookingLocalDateKey, K as eventCollectionHydrationSchema, Ki as inlineTextToPlainText, Kn as isEventFull, Kt as eventWeekGroupingContext, L as buildEventCalendarInteractiveIslandProps, Li as CircleMinusIcon, Ln as resolveSelectionBookingClosedDetail, Lt as resolveEventRegistrationScopedEvents, M as offeringsPreviewBlockDefinition, Mi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, Mn as planOrdinarySeriesSelection, Ms as buildMailingListSignupBlockSourceRef, Mt as readOfferingsGrouping, N as publicRouteCandidatesSchema, Ni as parseBlockIconValue, Nn as planWholeSeriesParentBooking, No as anglePolygonCss, Ns as parseMailingListRuntimeContext, Nt as resolveOfferingsPreviewGroupCta, O as shopProductPresentation, Oa as headerRootIsTransparent, On as eventOccurrenceContext, Or as resolvedItemSurfaceProps, Ot as groupOfferingRunsByCourse, P as buildOfferingsCatalogueListing, Pi as resolveBlockIconRenderValue, Pn as planWholeSeriesParentSelection, Po as transitionCatalogueEntries, Pt as resolveOfferingsPreviewGroups, Q as cardListPresentationSchemaShape, Qi as parseFieldDefinitions, Qr as blogFeaturedPostFragment, Qs as toUtcIsoDateTimeString, Qt as browserReadAuthoritySchema, R as buildEventCalendarListingDisplay, Ri as CirclePlusIcon, Rn as selectionRepresentativeEvent, Rs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Rt as ThemedAuthoredButton, S as shopBlockDefinition, Si as defineFragment, Sn as formatTime, Sr as defineClientOwnedBlockRuntime, Ss as loadedReadinessFact, St as previewStageSchema, T as buildProductDetailInteractiveIslandProps, Ta as readOpeningToneProjection, Tn as bookingPageKindSchema, Tr as listLookControl, U as buildEventCollectionHydration, Ui as FileTextIcon, Un as formatTotalCapacity, Us as formatBookingCompactEnglishTime, Ut as SpinnerNode, V as buildEventListingInteractiveIslandProps, Va as resolveEffectiveArrangement, Vi as FileAudioIcon, Vr as formatEventPrice, Vt as ThemedDownloadLink, W as buildEventCollectionListingDisplay, Wi as MinusIcon, Ws as toScheduledBookingDateTime, Wt as buildEventListWeek, X as CardListContentPart, Xn as shouldReserveFeatureCardIconZone, Xr as faqAccordionFragment, Xs as parseBookingLocalDate, Y as listingEventCardProps, Yn as resolveFeatureCardGeneratedIconSizePx, Yr as cardFragment, Ys as getLocalScheduleDate, Yt as resolveRuntimeEventDestination, Zr as faqHeadingFragment, Zs as parseLocalScheduleTime, Zt as bookingPresentation, _ as buildGiftingInteractiveIslandProps, _a as AFFORDANCE_SUPPRESS_CLASS, _n as formatEventHourLabel, _r as buildFormInteractiveIslandProps, _t as getContainerClass, a as LOCATION_MAP_LOADER_KEYS, ac as publicEventPricingDisplay, ai as heroCtaRowFragment, an as closedDatesCopy, ar as teamMemberCardBiography, as as getDayOfWeek, b as productDetailBlockDefinition, bn as formatEventTimeRange, br as defineInteractiveIslandMetaKeys, bs as admitReadinessFacts, bt as resolveEventRegistrationEventSource, c as normalizeLocationMapSource, ci as heroCopyFragment, cn as buildCalendarViewport, co as generateDefaultCardSystem, cs as getWeekCalendarDays, d as newsletterSignupBlockDefinition, di as normalizeBoxStylesBorder, do as generateNavLinkCSS, ec as toBookingTimeZone, ei as formEmbedFragment, en as eventPlaceName, er as markEditableSurfaceForwarding, fi as resolveCardRoleForBoxStyles, fn as formatCalendarTitle, fo as generateEffectsCSS, fr as staticHeaderChromeRuntime, fs as publicEventsArraySchema, ft as buildResolveImageUrlContext, g as giftingBlockDefinition, ga as themeButtonSelector, gn as formatEventDateParts, gr as formBlockDefinition, gs as beforeBookingQuestionsPresentationSchema, gt as getCardOrientation, h as newsletterBlockSubmissionMessage, ha as parseThemeButtonVariantId, hn as formatEventCompactDateRail, ho as generateInteractiveChildInheritanceCSS, hs as bookingConsentCarrierSchema, ht as EventQuickFacts, ic as publicEventPricingCurrency, ii as ctaCopyFragment, in as pageNavigationSchema, ir as teamMemberBiography, is as formatDateKey, it as MediaPlaceholder, j as passCardListContent, ja as arrangementLookHooks, ji as when, jn as planDropInPanel, jr as clsx, js as resolveWholeSeriesPaymentDates, jt as offeringsListingFor, k as membershipCardListContent, ka as headerRootPaint, ki as runTransforms, kn as getPublicEventCanonicalPath, kr as itemRole, ks as orderedLiveRunSessions, kt as normalizeOfferingsPreviewItemLimit, l as parseLocationMapLoaderResult, lc as formatCurrencyAmount, lo as generateFooterCss, ls as isSameCalendarDay, lt as resolvePublicMediaUrl, m as buildNewsletterFormInteractiveIslandProps, mc as TokenResolver, mn as formatEventClockLabel, mo as resolveEffectPaint, ms as blockBookingConsentSchema, mt as setContextResolveImageUrlContext, nc as formatBookingPriceDisplay, ni as testimonialsCarouselFragment, nn as formatEventLocation, ns as getLocalMinuteOfDay, nt as RichText, o as describeUnresolvedLocationMapLocation, oa as eventReadinessResultSchema, oc as publicEventPricingType, oi as ctaRowFragment, on as closedRunCopy, or as readRuntimeNow, os as getOrderedDayNames, p as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, pn as formatDate, po as resolveEffectApplications, ps as blockBookingPaymentTermsSchema, pt as getCurrentResolveImageUrlContext, q as eventCollectionSourceSchemaShape, qi as isInlineTextEmpty, qn as groupPublicEventsByRun, qr as richTextFragment, qs as formatLocalScheduleDate, r as normalizeBlockContent, ra as eventReadinessLoaderKey, rc as isPublicEventPricingOptionDisplayable, ri as testimonialsHeadingFragment, rn as blockSiteTermsSchema, rr as parseTeamMemberSpecialties, rs as addDays, rt as ImagePresets, s as normalizeLocationMapProps, sc as resolveExactOrFreePriceDisplay, si as isBlockButtonRole, sn as closedDateCopy, so as resolveCardRole, sr as resolveDateRuntimeContext, ss as getWeekCalendarDayTuple, t as getBlockDefinition, ta as chosenString, ti as formCopyFragment, tn as eventVenuePlace, to as requireCuratedSiteStyle, tr as splitPositioningClasses, ts as getLocalDateKey, tt as MediaNodeServer, u as resolveLocationMapLocation, ui as boxStyleClassNames, un as eventDateOptions, uo as buildTextContrastShadow, us as isToday, v as checkoutBlockDefinition, va as resolveHeaderRootForeground, vi as resolveBackgroundColorValue, vn as formatEventNextDateFact, vr as buildInteractiveIslandProps, vt as eventRegistrationBlockDefinition, w as buildCheckoutInteractiveIslandProps, wa as effectiveHeaderNavLinkStyle, wn as resolveEventTimeZone, wr as listItemPresentation, ws as unavailableReadinessFact, x as productListBlockDefinition, xa as selectItemSurfacePresentation, xi as bodyCopyFragment, xr as createZodCodec, xs as hiddenFromVisitors, xt as bookingNowSchema, y as cartBlockDefinition, yi as ctaButton, yr as createInteractiveIslandCodec, yt as buildEventRegistrationInteractiveIslandProps, za as arrangementManifestFromVariants, zi as ClockIcon, zr as formatCoursePrice, zs as formatDate$1, zt as ThemedButton } from "./registry-DM9dHfDC.mjs";
5
+ import { C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, H as certifyPaint, K as resolveConcreteColorHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as contrastThresholdByPolicy, V as HOVER_TEXT_THRESHOLD, W as inkReference, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, q as resolveOpaqueSurfaceHex, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-WPzUAHp4.mjs";
6
+ import { b as siteChromeBackgroundOverrideOwner, m as surfaceCardRoleValues, s as boxBackgroundSchema } from "./schema-CwfxQjc4.mjs";
7
+ import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-MDDSubTp.mjs";
8
+ import { t as assertNever$3 } from "./assert-never-ku-PUn9U.mjs";
9
+ import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-BytMroxn.mjs";
10
+ import { a as bindingSchema, l as RichTextDocSchema, m as sanitizeHref, n as isRecord$4, t as isObjectRecord } from "./typeGuards-CTW_9AXq.mjs";
11
+ import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
12
+ import { M as opaqueSurfaceDeclarations, T as testimonialsCompositionTreatmentValues, j as opaqueSurfaceContextFromTheme, v as featureCardCompositionTreatmentValues, x as offeringsPreviewCompositionTreatmentValues, y as introCompositionTreatmentValues } from "./lookMediaFrame-TFjgNG61.mjs";
13
+ import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-DxojjtK3.mjs";
14
+ import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as escapeStyleContent, b as INPUT_GROUP_SELECTOR, c as parseBlockCustomCssRules, d as generateBlockCustomVarsCss, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as compileCustomCssRules, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, o as prefixSelector, p as generateProgressCss, r as compileBlockCustomCssRules, s as toKebabCase, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-BQWsnGT6.mjs";
15
+ import { c as ACCORDION_SPACING_MAP, d as ICON_CONFIG, f as ICON_SIZE_PX, i as getNodeProps, l as ACCORDION_TRIGGER_FONT_SCALE, n as getVideoEmbed, r as getVideoEmbedLoadingStrategy, s as ACCORDION_OPEN_ACCENT_THICKNESS, t as VIDEO_ASPECT_RATIO_PATTERN, u as ACCORDION_TRIGGER_LETTER_SPACING } from "./video-Cdr3wh-q.mjs";
16
+ import { t as parseThemeForPersistence } from "./parseThemeForPersistence-Bihl4W5K.mjs";
15
17
  import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
16
18
  import { t as getAtPath } from "./src-DHK4JUlp.mjs";
17
19
  import * as React$1 from "react";
@@ -19,6 +21,69 @@ import React, { forwardRef } from "react";
19
21
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
20
22
  import { z } from "zod";
21
23
  import { IslandDelivery } from "#island-delivery";
24
+ //#region ../core/src/booking-flexible-balance.ts
25
+ function clampFlexibleBalanceConfiguredAmount(amountCents, totalAmountCents) {
26
+ return Math.max(0, Math.min(amountCents, totalAmountCents));
27
+ }
28
+ function resolveFlexibleBalanceInitialPaymentCents(input) {
29
+ return clampFlexibleBalanceConfiguredAmount(input.config.upfrontAmountCents, input.totalAmountCents);
30
+ }
31
+ //#endregion
32
+ //#region ../core/src/booking-instalments.ts
33
+ function isDepositBearingBookingInstalmentPlan(plan) {
34
+ switch (plan.kind) {
35
+ case "deposit_plus_one_remainder":
36
+ case "deposit_plus_scheduled_instalments": return true;
37
+ case "equal_scheduled_instalments": return false;
38
+ default: return assertNever$2(plan);
39
+ }
40
+ }
41
+ function getBookingInstalmentDepositRefundability(plan) {
42
+ return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositRefundability : null;
43
+ }
44
+ function getBookingInstalmentProtectedDepositAmountCents(plan) {
45
+ return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositAmountCents : null;
46
+ }
47
+ function clampConfiguredAmount(amountCents, totalAmountCents) {
48
+ return Math.max(0, Math.min(amountCents, totalAmountCents));
49
+ }
50
+ function splitAmountWithRemainderInFirst(totalAmountCents, partCount) {
51
+ if (partCount <= 0) return [];
52
+ const baseAmountCents = Math.floor(totalAmountCents / partCount);
53
+ const remainderCents = totalAmountCents - baseAmountCents * partCount;
54
+ return Array.from({ length: partCount }, (_, index) => index === 0 ? baseAmountCents + remainderCents : baseAmountCents);
55
+ }
56
+ function addIntervalPreservingMonthAnchor(isoString, intervalCount, intervalUnit) {
57
+ const date = new Date(isoString);
58
+ if (!Number.isFinite(date.getTime())) return isoString;
59
+ switch (intervalUnit) {
60
+ case "day":
61
+ date.setUTCDate(date.getUTCDate() + intervalCount);
62
+ return date.toISOString();
63
+ case "week":
64
+ date.setUTCDate(date.getUTCDate() + intervalCount * 7);
65
+ return date.toISOString();
66
+ case "month": return addMonthsPreservingAnchorDay(date, intervalCount).toISOString();
67
+ default: return assertNever$2(intervalUnit);
68
+ }
69
+ }
70
+ function omitZeroAmountFutureRows(rows) {
71
+ if (rows.length <= 1) return rows;
72
+ const firstRow = rows[0];
73
+ if (firstRow === void 0) return [];
74
+ return [firstRow, ...rows.slice(1).filter((row) => row.amountCents > 0)];
75
+ }
76
+ function addMonthsPreservingAnchorDay(date, intervalCount) {
77
+ const anchorDay = date.getUTCDate();
78
+ const nextMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + intervalCount, 1, date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()));
79
+ const lastDayOfTargetMonth = new Date(Date.UTC(nextMonth.getUTCFullYear(), nextMonth.getUTCMonth() + 1, 0)).getUTCDate();
80
+ nextMonth.setUTCDate(Math.min(anchorDay, lastDayOfTargetMonth));
81
+ return nextMonth;
82
+ }
83
+ function assertNever$2(value) {
84
+ throw new Error(`Unexpected value: ${String(value)}`);
85
+ }
86
+ //#endregion
22
87
  //#region ../core/src/appointment-service-categories.ts
23
88
  /**
24
89
  * Groups services under their categories.
@@ -160,6 +225,187 @@ function formatOpeningHoursRows(hours, options = {}) {
160
225
  }, []);
161
226
  }
162
227
  //#endregion
228
+ //#region ../commerce/src/utils/assertNever.ts
229
+ function assertNever$1(value, message) {
230
+ if (message) throw new Error(message);
231
+ throw new Error(`Unexpected value: ${String(value)}`);
232
+ }
233
+ //#endregion
234
+ //#region ../commerce/src/purchase/bookingInstalmentSchedule.ts
235
+ function resolveBookingInitialInstalmentAmountCents(input) {
236
+ const totalAmountCents = Math.max(0, input.totalAmountCents);
237
+ switch (input.plan.kind) {
238
+ case "deposit_plus_one_remainder":
239
+ case "deposit_plus_scheduled_instalments": return clampConfiguredAmount(input.plan.depositAmountCents, totalAmountCents);
240
+ case "equal_scheduled_instalments": return splitAmountWithRemainderInFirst(totalAmountCents, input.plan.instalmentCount)[0] ?? 0;
241
+ default: return assertNever$1(input.plan);
242
+ }
243
+ }
244
+ function buildBookingInstalmentSchedule(input) {
245
+ const totalAmountCents = Math.max(0, input.totalAmountCents);
246
+ switch (input.plan.kind) {
247
+ case "deposit_plus_one_remainder": {
248
+ const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
249
+ const remainderAmountCents = Math.max(0, totalAmountCents - depositAmountCents);
250
+ return omitZeroAmountFutureRows([createScheduleRow({
251
+ sequence: 1,
252
+ stateAtBooking: "paid_today",
253
+ dueAt: input.anchorAt,
254
+ amountCents: depositAmountCents
255
+ }), createScheduleRow({
256
+ sequence: 2,
257
+ stateAtBooking: "scheduled",
258
+ dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, input.plan.remainderDueCount, input.plan.intervalUnit),
259
+ amountCents: remainderAmountCents
260
+ })]);
261
+ }
262
+ case "deposit_plus_scheduled_instalments": {
263
+ const plan = input.plan;
264
+ const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
265
+ const instalmentAmounts = splitAmountWithRemainderInFirst(Math.max(0, totalAmountCents - depositAmountCents), plan.instalmentCount);
266
+ return omitZeroAmountFutureRows([createScheduleRow({
267
+ sequence: 1,
268
+ stateAtBooking: "paid_today",
269
+ dueAt: input.anchorAt,
270
+ amountCents: depositAmountCents
271
+ }), ...instalmentAmounts.map((amountCents, index) => createScheduleRow({
272
+ sequence: index + 2,
273
+ stateAtBooking: "scheduled",
274
+ dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * (index + 1), plan.intervalUnit),
275
+ amountCents
276
+ }))]);
277
+ }
278
+ case "equal_scheduled_instalments": {
279
+ const plan = input.plan;
280
+ return omitZeroAmountFutureRows(splitAmountWithRemainderInFirst(totalAmountCents, plan.instalmentCount).map((amountCents, index) => createScheduleRow({
281
+ sequence: index + 1,
282
+ stateAtBooking: index === 0 ? "paid_today" : "scheduled",
283
+ dueAt: index === 0 ? input.anchorAt : addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * index, plan.intervalUnit),
284
+ amountCents
285
+ })));
286
+ }
287
+ default: return assertNever$1(input.plan);
288
+ }
289
+ }
290
+ function createScheduleRow(input) {
291
+ return {
292
+ id: `payment-${input.sequence}`,
293
+ sequence: input.sequence,
294
+ stateAtBooking: input.stateAtBooking,
295
+ dueAt: input.dueAt,
296
+ amountCents: input.amountCents
297
+ };
298
+ }
299
+ /** Resolve real rows first: zero future payments do not extend the deadline. */
300
+ function canInstalmentPlanCompleteBefore(input) {
301
+ const deadline = Date.parse(input.deadline);
302
+ if (!Number.isFinite(Date.parse(input.now)) || !Number.isFinite(deadline)) return false;
303
+ return input.schedule.every((row) => Date.parse(row.dueAt) < deadline);
304
+ }
305
+ //#endregion
306
+ //#region ../commerce/src/purchase/bookingPaymentSelection.ts
307
+ function resolveBookingCollectionOptionFacts(input) {
308
+ const money = {
309
+ totalCents: input.totalCents,
310
+ anchorAt: input.anchorAt,
311
+ bookingStartAt: input.bookingStartAt,
312
+ timeZone: input.timeZone ?? "UTC"
313
+ };
314
+ switch (input.option.kind) {
315
+ case "upfront": return {
316
+ ...money,
317
+ kind: "upfront",
318
+ dueNowCents: input.totalCents
319
+ };
320
+ case "deferred_manual": return {
321
+ ...money,
322
+ kind: "deferred_manual",
323
+ dueNowCents: 0
324
+ };
325
+ case "instalment_plan": {
326
+ const schedule = buildBookingInstalmentSchedule({
327
+ anchorAt: input.anchorAt,
328
+ totalAmountCents: input.totalCents,
329
+ plan: input.option.plan
330
+ });
331
+ return {
332
+ ...money,
333
+ kind: "instalment_plan",
334
+ plan: input.option.plan,
335
+ schedule,
336
+ dueNowCents: schedule[0]?.amountCents ?? 0,
337
+ depositRefundability: getBookingInstalmentDepositRefundability(input.option.plan)
338
+ };
339
+ }
340
+ case "flexible_balance": {
341
+ const dueNowCents = resolveFlexibleBalanceInitialPaymentCents({
342
+ totalAmountCents: input.totalCents,
343
+ config: input.option.config
344
+ });
345
+ return {
346
+ ...money,
347
+ kind: "flexible_balance",
348
+ config: input.option.config,
349
+ dueNowCents,
350
+ remainingBalanceCents: Math.max(0, input.totalCents - dueNowCents),
351
+ balanceDueDay: flexibleBalanceDueDay(input.option.config, input.bookingStartAt ?? input.anchorAt, money.timeZone)
352
+ };
353
+ }
354
+ default: return assertNever$1(input.option);
355
+ }
356
+ }
357
+ /** The one date rule: whether an option's due dates still fall between now and the booking (or the owner's deadline). */
358
+ function collectionDatesOpen(option, deadline) {
359
+ if (option.kind === "upfront" || option.kind === "deferred_manual") return true;
360
+ const window = bookingCollectionWindow(option);
361
+ if (!window) return false;
362
+ if (option.kind === "flexible_balance") {
363
+ const localDay = (at) => formatLocalScheduleDate(getLocalScheduleDate(new Date(at), option.timeZone));
364
+ return option.balanceDueDay >= localDay(window.now) && option.balanceDueDay < localDay(window.start);
365
+ }
366
+ return deadline !== null && canInstalmentPlanCompleteBefore({
367
+ now: option.anchorAt,
368
+ deadline,
369
+ schedule: option.schedule
370
+ }) && option.schedule.every((row) => row.stateAtBooking !== "scheduled" || Date.parse(row.dueAt) > window.now);
371
+ }
372
+ function bookingCollectionWindow(option) {
373
+ const now = Date.parse(option.anchorAt);
374
+ const start = Date.parse(option.bookingStartAt ?? "");
375
+ return Number.isFinite(now) && Number.isFinite(start) && start > now ? {
376
+ now,
377
+ start
378
+ } : null;
379
+ }
380
+ /** Instalment due dates don't depend on the amount; this total keeps every row (zero rows are dropped). */
381
+ const SCHEDULE_DATES_TOTAL_CENTS = 1e9;
382
+ /**
383
+ * The date half of `canOfferBookingCollectionOption`, for a configured option
384
+ * before any total is known: whether its dates still allow it to be offered.
385
+ * Amount rules (Stripe minimums, a deposit below the total) are left out, so a
386
+ * `true` here is an offer the total may still refuse. Upfront and pay-directly
387
+ * options have no dates to miss.
388
+ */
389
+ function bookingCollectionDatesOpen(option, dates) {
390
+ if (option.kind === "upfront" || option.kind === "deferred_manual") return true;
391
+ if (!bookingCollectionWindow({
392
+ anchorAt: dates.nowIso,
393
+ bookingStartAt: dates.bookingStartAt
394
+ })) return false;
395
+ return collectionDatesOpen(resolveBookingCollectionOptionFacts({
396
+ option,
397
+ totalCents: SCHEDULE_DATES_TOTAL_CENTS,
398
+ anchorAt: dates.nowIso,
399
+ bookingStartAt: dates.bookingStartAt,
400
+ timeZone: dates.timeZone
401
+ }), dates.instalmentCollectionDeadlineAt === void 0 ? dates.bookingStartAt : dates.instalmentCollectionDeadlineAt);
402
+ }
403
+ /** Mirrors private.flexible_balance_due_day: fixed civil date, or local start minus calendar days. */
404
+ function flexibleBalanceDueDay(config, bookingStartAt, timeZone) {
405
+ const rule = config.dueDateRule;
406
+ return formatLocalScheduleDate(rule.kind === "fixed_calendar_date" ? parseBookingLocalDate(rule.dueAt.slice(0, 10)) : addLocalScheduleDays(getLocalScheduleDate(new Date(bookingStartAt), timeZone), -rule.daysBeforeStart));
407
+ }
408
+ //#endregion
163
409
  //#region ../calendar/src/lane-packing.ts
164
410
  /**
165
411
  * Assign lanes to a list of intervals.
@@ -1595,75 +1841,6 @@ function buttonRingDefaults(variant) {
1595
1841
  };
1596
1842
  }
1597
1843
  //#endregion
1598
- //#region ../theme-core/src/accordions/types.ts
1599
- /**
1600
- * Icon configuration mapping icon styles to Lucide icons and behavior
1601
- * Used by both CSS generation (for rotation) and component rendering (for icon selection)
1602
- */
1603
- const ICON_CONFIG = {
1604
- "plus-minus": {
1605
- closedIcon: "Plus",
1606
- openIcon: "Minus",
1607
- rotation: 0
1608
- },
1609
- "chevron": {
1610
- closedIcon: "ChevronDown",
1611
- rotation: 180
1612
- },
1613
- "caret": {
1614
- closedIcon: "ChevronDown",
1615
- rotation: 180
1616
- },
1617
- "arrow": {
1618
- closedIcon: "ArrowDown",
1619
- rotation: 180
1620
- },
1621
- "circle-plus-minus": {
1622
- closedIcon: "CirclePlus",
1623
- openIcon: "CircleMinus",
1624
- rotation: 0
1625
- }
1626
- };
1627
- /**
1628
- * Icon size mapping (px values for CSS and Lucide React)
1629
- */
1630
- const ICON_SIZE_PX = {
1631
- sm: "16px",
1632
- md: "20px",
1633
- lg: "24px"
1634
- };
1635
- /**
1636
- * Spacing map for accordion content padding
1637
- */
1638
- const ACCORDION_SPACING_MAP = {
1639
- none: "0",
1640
- compact: "0.75rem",
1641
- cozy: "1rem",
1642
- medium: "1.25rem",
1643
- comfortable: "1.5rem",
1644
- spacious: "2rem"
1645
- };
1646
- /**
1647
- * Question (trigger) font-size by scale step. Kept as self-contained clamps
1648
- * rather than the heading-scale CSS vars so question size stays predictable
1649
- * even when a theme configures very large headings.
1650
- */
1651
- const ACCORDION_TRIGGER_FONT_SCALE = {
1652
- body: "clamp(0.95rem, var(--fs-body), 1.0625rem)",
1653
- md: "clamp(1.0625rem, 0.98rem + 0.45vw, 1.3rem)",
1654
- lg: "clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem)"
1655
- };
1656
- const ACCORDION_TRIGGER_LETTER_SPACING = {
1657
- normal: "0",
1658
- tight: "-0.01em",
1659
- wide: "0.04em"
1660
- };
1661
- const ACCORDION_OPEN_ACCENT_THICKNESS = {
1662
- thin: "2px",
1663
- medium: "3px",
1664
- thick: "4px"
1665
- };
1666
- //#endregion
1667
1844
  //#region ../theme-core/src/styles/border.ts
1668
1845
  /**
1669
1846
  * Border width mapping from Tailwind class names to px values
@@ -3536,7 +3713,7 @@ function generateEventCalendarCss(_params) {
3536
3713
  //#endregion
3537
3714
  //#region ../theme-core/src/blockOverrides.ts
3538
3715
  const BLOCK_PREFIX = "block.";
3539
- function isPlainObject$1(value) {
3716
+ function isPlainObject(value) {
3540
3717
  return typeof value === "object" && value !== null && !Array.isArray(value);
3541
3718
  }
3542
3719
  function isUnknownArray(value) {
@@ -3544,7 +3721,7 @@ function isUnknownArray(value) {
3544
3721
  }
3545
3722
  function cloneValue(value) {
3546
3723
  if (isUnknownArray(value)) return value.map((item) => cloneValue(item));
3547
- if (isPlainObject$1(value)) {
3724
+ if (isPlainObject(value)) {
3548
3725
  const cloned = {};
3549
3726
  for (const [key, child] of Object.entries(value)) cloned[key] = cloneValue(child);
3550
3727
  return cloned;
@@ -3554,7 +3731,7 @@ function cloneValue(value) {
3554
3731
  function mergeDeep(defaultValue, overrideValue) {
3555
3732
  if (overrideValue === void 0) return cloneValue(defaultValue);
3556
3733
  if (overrideValue === null) return null;
3557
- if (isPlainObject$1(defaultValue) && isPlainObject$1(overrideValue)) {
3734
+ if (isPlainObject(defaultValue) && isPlainObject(overrideValue)) {
3558
3735
  const merged = {};
3559
3736
  const keys = /* @__PURE__ */ new Set([...Object.keys(defaultValue), ...Object.keys(overrideValue)]);
3560
3737
  for (const key of keys) merged[key] = mergeDeep(defaultValue[key], overrideValue[key]);
@@ -3611,7 +3788,7 @@ function mergeContentWithBlockStyleOverrides(content, theme, blockKind) {
3611
3788
  */
3612
3789
  function applyHeadingDecorationSignature(target, themeDecoration) {
3613
3790
  const existing = target["_sectionStyles"];
3614
- const existingObj = isPlainObject$1(existing) ? existing : void 0;
3791
+ const existingObj = isPlainObject(existing) ? existing : void 0;
3615
3792
  const rawOverride = existingObj?.["headingDecorationOverride"];
3616
3793
  const effective = resolveEffectiveHeadingDecoration(themeDecoration, rawOverride === "site-default" || rawOverride === "off" ? rawOverride : void 0);
3617
3794
  if (effective.kind === "none") {
@@ -3631,9 +3808,9 @@ function applyStyleOverride(target, key, defaults) {
3631
3808
  target[key] = mergeStyleOverride(defaults, target[key]);
3632
3809
  }
3633
3810
  function mergeStyleOverride(defaultValue, contentValue) {
3634
- if (!isPlainObject$1(defaultValue) || !isPlainObject$1(contentValue)) return mergeDeep(defaultValue, contentValue);
3811
+ if (!isPlainObject(defaultValue) || !isPlainObject(contentValue)) return mergeDeep(defaultValue, contentValue);
3635
3812
  const merged = mergeDeep(defaultValue, contentValue);
3636
- if (!isPlainObject$1(merged)) return merged;
3813
+ if (!isPlainObject(merged)) return merged;
3637
3814
  return {
3638
3815
  ...merged,
3639
3816
  background: mergeBoxBackground(defaultValue.background, contentValue.background)
@@ -4499,6 +4676,70 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
4499
4676
  } : null;
4500
4677
  }
4501
4678
  //#endregion
4679
+ //#region ../blocks/src/system/runtime/nodes/events/domain/depositOffer.ts
4680
+ const NO_DEPOSIT = { kind: "none" };
4681
+ /**
4682
+ * The event page's deposit note for an event, decided on dates and the prices
4683
+ * shown. A course's dates come from its live sessions, as the server reads
4684
+ * them for the booking panel; a single date starts when it starts.
4685
+ */
4686
+ function resolvePublicEventDepositOffer(event, input) {
4687
+ const prices = paidPriceSpan(event.pricing);
4688
+ const terms = event.paymentTerms;
4689
+ const payInFullOffered = terms.allowedOptions.some((option) => option.kind === "upfront");
4690
+ const applies = (option) => prices !== null && (depositCents(option) ?? Infinity) < (payInFullOffered ? prices.highestCents : prices.lowestCents);
4691
+ const deposits = depositOptions(terms).filter(applies);
4692
+ if (!prices || deposits.length === 0) return NO_DEPOSIT;
4693
+ const dates = {
4694
+ ...input.sessions ? resolveWholeSeriesPaymentDates({
4695
+ sessions: input.sessions,
4696
+ paymentTerms: terms
4697
+ }) : { bookingStartAt: event.startsAt },
4698
+ timeZone: event.siteTimeZone,
4699
+ nowIso: input.nowIso
4700
+ };
4701
+ const open = deposits.find((option) => bookingCollectionDatesOpen(option, dates));
4702
+ if (!open) return terms.allowedOptions.some((option) => option.kind === "deferred_manual") ? NO_DEPOSIT : { kind: "paid_in_full" };
4703
+ return {
4704
+ kind: "deposit",
4705
+ amountCents: depositCents(open) ?? 0,
4706
+ currency: prices.currency,
4707
+ payInFullOffered,
4708
+ balanceDueDay: open.kind === "flexible_balance" && dates.bookingStartAt ? flexibleBalanceDueDay(open.config, dates.bookingStartAt, dates.timeZone) : null
4709
+ };
4710
+ }
4711
+ function depositOptions(paymentTerms) {
4712
+ return paymentTerms.allowedOptions.filter((option) => depositCents(option) !== null);
4713
+ }
4714
+ /** A deposit is an amount taken up front that's less than the whole; equal instalments have none. */
4715
+ function depositCents(option) {
4716
+ switch (option.kind) {
4717
+ case "flexible_balance": return positive(option.config.upfrontAmountCents);
4718
+ case "instalment_plan": return positive(getBookingInstalmentProtectedDepositAmountCents(option.plan));
4719
+ case "upfront":
4720
+ case "deferred_manual": return null;
4721
+ }
4722
+ }
4723
+ const positive = (amount) => amount !== null && amount > 0 ? amount : null;
4724
+ /** The cheapest and dearest paid place shown; null when nothing shown is paid. */
4725
+ function paidPriceSpan(pricing) {
4726
+ const display = publicEventPricingDisplay(pricing);
4727
+ const span = (lowestCents, highestCents) => highestCents > 0 ? {
4728
+ lowestCents: Math.max(lowestCents, 0),
4729
+ highestCents,
4730
+ currency: "currency" in display ? display.currency : ""
4731
+ } : null;
4732
+ switch (display.kind) {
4733
+ case "exact": return span(display.amount, display.amount);
4734
+ case "from": return span(display.amount, Infinity);
4735
+ case "range": return span(display.minAmount, display.maxAmount);
4736
+ case "mixed": return span(display.paidFromAmount, display.paidToAmount);
4737
+ case "free":
4738
+ case "unavailable":
4739
+ case "external": return null;
4740
+ }
4741
+ }
4742
+ //#endregion
4502
4743
  //#region ../blocks/src/system/runtime/shared/utils/bookingRoute.ts
4503
4744
  const BOOK_TARGET_PARAMS = {
4504
4745
  service: "service",
@@ -4730,201 +4971,6 @@ function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emi
4730
4971
  });
4731
4972
  }
4732
4973
  //#endregion
4733
- //#region ../blocks/src/system/runtime/nodes/svg.tsx
4734
- /**
4735
- * Strict SVG-`transform` validator.
4736
- *
4737
- * Accepts only a whitespace/comma-separated list of the geometric transform
4738
- * functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
4739
- * arguments are plain numbers. This deliberately rejects anything else —
4740
- * `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
4741
- * so a persisted custom-block tree can't smuggle an executable or exfiltrating
4742
- * value into the attribute.
4743
- */
4744
- const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
4745
- const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
4746
- const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
4747
- const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
4748
- function safeTransform(value) {
4749
- if (typeof value !== "string") return void 0;
4750
- const trimmed = value.trim();
4751
- if (trimmed.length === 0) return void 0;
4752
- return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
4753
- }
4754
- /**
4755
- * Turn paint props into a CSS style object. Colour values pass through as-is so
4756
- * they may reference theme tokens via `var()`, which only resolves in a CSS
4757
- * property context (not in a bare presentation attribute).
4758
- */
4759
- function paintStyle(shape) {
4760
- const style = {};
4761
- if (shape.fill !== void 0) style.fill = shape.fill;
4762
- if (shape.stroke !== void 0) style.stroke = shape.stroke;
4763
- if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
4764
- if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
4765
- if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
4766
- if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
4767
- if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
4768
- if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
4769
- return style;
4770
- }
4771
- function renderShape(shape, key) {
4772
- const style = paintStyle(shape);
4773
- const transform = safeTransform(shape.transform);
4774
- switch (shape.kind) {
4775
- case "text": return /* @__PURE__ */ jsx("text", {
4776
- className: shape.className,
4777
- x: shape.x,
4778
- y: shape.y,
4779
- transform,
4780
- children: shape.text
4781
- }, key);
4782
- case "path": return /* @__PURE__ */ jsx("path", {
4783
- d: shape.d,
4784
- className: shape.className,
4785
- fillRule: shape.fillRule,
4786
- style,
4787
- transform
4788
- }, key);
4789
- case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
4790
- cx: shape.cx,
4791
- cy: shape.cy,
4792
- rx: shape.rx,
4793
- ry: shape.ry,
4794
- style,
4795
- transform
4796
- }, key);
4797
- case "circle": return /* @__PURE__ */ jsx("circle", {
4798
- cx: shape.cx,
4799
- cy: shape.cy,
4800
- r: shape.r,
4801
- style,
4802
- transform
4803
- }, key);
4804
- case "rect": return /* @__PURE__ */ jsx("rect", {
4805
- x: shape.x,
4806
- y: shape.y,
4807
- className: shape.className,
4808
- width: shape.width,
4809
- height: shape.height,
4810
- rx: shape.rx,
4811
- ry: shape.ry,
4812
- style,
4813
- transform
4814
- }, key);
4815
- case "line": return /* @__PURE__ */ jsx("line", {
4816
- x1: shape.x1,
4817
- y1: shape.y1,
4818
- x2: shape.x2,
4819
- y2: shape.y2,
4820
- style,
4821
- transform
4822
- }, key);
4823
- default: return null;
4824
- }
4825
- }
4826
- const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
4827
- return /* @__PURE__ */ jsx("svg", {
4828
- viewBox,
4829
- width,
4830
- height,
4831
- className,
4832
- style,
4833
- "aria-hidden": ariaHidden || void 0,
4834
- role: ariaLabel ? "img" : void 0,
4835
- "aria-label": ariaLabel,
4836
- xmlns: "http://www.w3.org/2000/svg",
4837
- fill: "none",
4838
- children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
4839
- });
4840
- };
4841
- //#endregion
4842
- //#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
4843
- const PIN_PATH = "M0 0C-3.5-9-13-15-13-25A13 13 0 1 1 13-25C13-15 3.5-9 0 0ZM0-20.5A4.5 4.5 0 1 0 0-29.5A4.5 4.5 0 1 0 0-20.5Z";
4844
- const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
4845
- function pathShape(path) {
4846
- return path.kind === "polygon" ? {
4847
- kind: "path",
4848
- className: path.className,
4849
- fillRule: path.fillRule,
4850
- d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
4851
- } : {
4852
- kind: "path",
4853
- className: path.className,
4854
- d: commands(path.points)
4855
- };
4856
- }
4857
- function labelShapes(label) {
4858
- const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
4859
- return [label.haloClassName, label.className].map((className) => ({
4860
- kind: "text",
4861
- className,
4862
- x,
4863
- y,
4864
- transform,
4865
- text: label.text
4866
- }));
4867
- }
4868
- /** The drawing the renderer below would show, or null when there's nothing it can draw. */
4869
- function readableMapDrawing(drawing) {
4870
- const parsed = mapDrawingSchema.safeParse(drawing);
4871
- return parsed.success ? parsed.data : null;
4872
- }
4873
- /** Untrusted standalone callers retain boundary admission. */
4874
- function MapDrawingSvg(props) {
4875
- const drawing = readableMapDrawing(props.drawing);
4876
- return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
4877
- ...props,
4878
- drawing
4879
- }) : null;
4880
- }
4881
- /** Render an already admitted value without allocating another validation copy. */
4882
- function AdmittedMapDrawingSvg(props) {
4883
- const drawing = props.drawing;
4884
- const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
4885
- const shapes = [
4886
- {
4887
- kind: "rect",
4888
- className: frame.backgroundClass,
4889
- x: 0,
4890
- y: 0,
4891
- width: 800,
4892
- height: 800
4893
- },
4894
- ...frame.paths.map(pathShape),
4895
- ...frame.labels.flatMap(labelShapes),
4896
- {
4897
- kind: "path",
4898
- className: frame.pin.className,
4899
- fillRule: "evenodd",
4900
- d: PIN_PATH,
4901
- transform: `translate(${frame.pin.point.join(" ")})`
4902
- }
4903
- ];
4904
- return /* @__PURE__ */ jsxs("figure", {
4905
- className: `rb-map-drawing ${props.className ?? ""}`.trim(),
4906
- children: [/* @__PURE__ */ jsx("div", {
4907
- className: "rb-map-drawing-crop",
4908
- style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
4909
- children: /* @__PURE__ */ jsx(SvgNode, {
4910
- className: `map-${name}`,
4911
- viewBox: frame.viewBox.join(" "),
4912
- shapes,
4913
- ariaHidden: false,
4914
- ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
4915
- })
4916
- }), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
4917
- href: "https://www.openstreetmap.org/copyright",
4918
- target: "_blank",
4919
- rel: "noreferrer",
4920
- children: "OpenStreetMap contributors"
4921
- })] })]
4922
- });
4923
- }
4924
- function cropHeightStyle(height, heightAs) {
4925
- return heightAs === "minimum" ? { minHeight: height } : { height };
4926
- }
4927
- //#endregion
4928
4974
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
4929
4975
  /**
4930
4976
  * EventCard Component
@@ -4980,7 +5026,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
4980
5026
  formattedTime,
4981
5027
  hasImage,
4982
5028
  headingLevel: cardHeadingLevel,
4983
- mapSlot: resolveVenueMapSlot(event.venue, mapSlot),
5029
+ mapSlot,
4984
5030
  priceText,
4985
5031
  showMap,
4986
5032
  showSummary,
@@ -4992,13 +5038,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
4992
5038
  })]
4993
5039
  });
4994
5040
  };
4995
- function resolveVenueMapSlot(venue, override) {
4996
- return override ?? (venue?.drawing ? /* @__PURE__ */ jsx(MapDrawingSvg, {
4997
- drawing: venue.drawing,
4998
- label: venue.name,
4999
- height: 255
5000
- }) : null);
5001
- }
5002
5041
  function EventCardMedia(props) {
5003
5042
  if (props.lookPresentation.lookSlots !== void 0) return /* @__PURE__ */ jsx(EventLookDate, {
5004
5043
  event: props.event,
@@ -5686,6 +5725,94 @@ function carouselContents(props) {
5686
5725
  return props.mode === "arrangement" ? React.Children.toArray(props.slides.map(({ content }) => content)) : React.Children.toArray(props.children).filter(Boolean);
5687
5726
  }
5688
5727
  //#endregion
5728
+ //#region ../blocks/src/system/runtime/inlineStyleGuard.ts
5729
+ /**
5730
+ * Server rendering writes a `style` object as one attribute string, joining
5731
+ * declarations with `;` and leaving each value as it is. A value that holds a
5732
+ * `;` (or a brace) therefore adds declarations nobody wrote, so a bound value
5733
+ * such as an aspect ratio of `1;position:fixed` would escape its property.
5734
+ *
5735
+ * Content can reach a node's `style` through bindings in first-party layouts
5736
+ * as well as custom ones (issue 1185), so the resolver passes every node's
5737
+ * resolved `style` through here before rendering. React also throws while
5738
+ * rendering a `style` that is not an object, which would fail the whole page.
5739
+ *
5740
+ * A value that calls `url()` or `image-set()` is dropped as well. Content is
5741
+ * not a safe place to take an address from (a custom block's author also
5742
+ * writes its field defaults), and no layout puts a file in a node's `style`:
5743
+ * images and video go through media nodes, which the platform serves.
5744
+ */
5745
+ /**
5746
+ * `linear-gradient(...);` pasted with its semicolon is the same value without
5747
+ * it, so trailing semicolons and the space around the value are trimmed away
5748
+ * rather than costing the owner their background.
5749
+ */
5750
+ const withoutTrailingSemicolons = (value) => value.trim().replace(/(?:\s*;)+$/, "");
5751
+ function stringDropReason(value) {
5752
+ if (!staysInsideDeclaration(value)) return "adds-declarations";
5753
+ return callsCssLoadingFunction(value) ? "loads-a-file" : null;
5754
+ }
5755
+ function judgeDeclaration(property, value) {
5756
+ if (value === null || value === void 0) return { skipped: true };
5757
+ if (typeof value === "number") return Number.isFinite(value) ? { kept: [property, value] } : { dropped: {
5758
+ property,
5759
+ reason: "not-a-value"
5760
+ } };
5761
+ if (typeof value !== "string") return { dropped: {
5762
+ property,
5763
+ reason: "not-a-value"
5764
+ } };
5765
+ const trimmed = withoutTrailingSemicolons(value);
5766
+ const reason = stringDropReason(trimmed);
5767
+ return reason === null ? { kept: [property, trimmed] } : { dropped: {
5768
+ property,
5769
+ reason
5770
+ } };
5771
+ }
5772
+ /** Which declarations of `style` render, and which are left out and why. */
5773
+ function decideInlineStyle(style) {
5774
+ if (!isRecord$4(style)) return {
5775
+ style: void 0,
5776
+ dropped: []
5777
+ };
5778
+ const judged = Object.entries(style).map(([property, value]) => judgeDeclaration(property, value));
5779
+ return {
5780
+ style: Object.fromEntries(judged.flatMap((entry) => "kept" in entry ? [entry.kept] : [])),
5781
+ dropped: judged.flatMap((entry) => "dropped" in entry ? [entry.dropped] : [])
5782
+ };
5783
+ }
5784
+ //#endregion
5785
+ //#region ../blocks/src/system/runtime/inlineStyleReport.ts
5786
+ /**
5787
+ * The effect half of the inline style guard: the resolver renders the style
5788
+ * `decideInlineStyle` allows and says what was left out (issue 1185).
5789
+ *
5790
+ * A dropped declaration is otherwise invisible. The owner sees a background
5791
+ * that isn't there, and the line logged here is how support finds out why, so
5792
+ * it is written in production too.
5793
+ */
5794
+ /**
5795
+ * Drops already reported by this process, as `property:reason`. A page of
5796
+ * repeated cards would otherwise log the same line for every card.
5797
+ */
5798
+ const reportedDrops = /* @__PURE__ */ new Set();
5799
+ function reportDrops(dropped, nodeType) {
5800
+ dropped.filter(({ property, reason }) => !reportedDrops.has(`${property}:${reason}`)).forEach(({ property, reason }) => {
5801
+ reportedDrops.add(`${property}:${reason}`);
5802
+ console.warn("[block-system] Left a style declaration out of the page", {
5803
+ nodeType,
5804
+ property,
5805
+ reason
5806
+ });
5807
+ });
5808
+ }
5809
+ /** The style a node renders with, after warning once per property and reason about anything left out. */
5810
+ function renderedInlineStyle(style, nodeType) {
5811
+ const decision = decideInlineStyle(style);
5812
+ reportDrops(decision.dropped, nodeType);
5813
+ return decision.style;
5814
+ }
5815
+ //#endregion
5689
5816
  //#region ../blocks/src/primitives/layout/Section.tsx
5690
5817
  const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-look": dataLook, "data-surface": dataSurface }, ref) {
5691
5818
  return /* @__PURE__ */ jsx(Comp, {
@@ -5930,89 +6057,284 @@ function createLogger(baseFields = {}) {
5930
6057
  })
5931
6058
  };
5932
6059
  }
5933
- const logger = createLogger();
6060
+ const logger = createLogger();
6061
+ //#endregion
6062
+ //#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
6063
+ function parseRichTextDoc(value) {
6064
+ const parsed = RichTextDocSchema.safeParse(value);
6065
+ if (parsed.success) return {
6066
+ kind: "valid",
6067
+ doc: parsed.data
6068
+ };
6069
+ return {
6070
+ kind: "invalid",
6071
+ issues: parsed.error.issues.map((issue) => ({
6072
+ path: issue.path.map((segment) => String(segment)),
6073
+ message: issue.message
6074
+ }))
6075
+ };
6076
+ }
6077
+ function coerceRichTextDoc(value, source) {
6078
+ const parsed = parseRichTextDoc(value);
6079
+ if (parsed.kind === "valid") return parsed.doc;
6080
+ if (value !== null && value !== void 0) logger.warn("blocks:rich-text:invalid-document", {
6081
+ source,
6082
+ issues: parsed.issues.slice(0, 3)
6083
+ });
6084
+ return null;
6085
+ }
6086
+ //#endregion
6087
+ //#region ../blocks/src/system/runtime/nodes/renderInlineText.tsx
6088
+ function renderInlineText(value) {
6089
+ return value.map((run, index) => renderRun(run, index));
6090
+ }
6091
+ function renderRun(run, key) {
6092
+ return (run.marks ?? []).reduceRight((child, mark, index) => renderMark(mark, `${String(key)}-${index}`, child), run.text);
6093
+ }
6094
+ function renderMark(mark, key, child) {
6095
+ switch (mark.kind) {
6096
+ case "strong": return /* @__PURE__ */ jsx("strong", { children: child }, key);
6097
+ case "emphasis": return /* @__PURE__ */ jsx("em", { children: child }, key);
6098
+ case "accent": return /* @__PURE__ */ jsx("span", {
6099
+ className: `rb-inline-text-accent rb-inline-text-accent-${mark.tone}`,
6100
+ children: child
6101
+ }, key);
6102
+ case "highlight": return /* @__PURE__ */ jsx("span", {
6103
+ className: `rb-inline-text-highlight rb-inline-text-highlight-${mark.tone}`,
6104
+ children: child
6105
+ }, key);
6106
+ }
6107
+ }
6108
+ //#endregion
6109
+ //#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
6110
+ /**
6111
+ * `compact` (event details) is one plain Google Maps text link under the venue;
6112
+ * `block` (the map block) leads with a secondary directions button and keeps
6113
+ * the same Google Maps text link beside it.
6114
+ */
6115
+ function LocationMapActions(props) {
6116
+ const links = locationMapLinks(props);
6117
+ const directionsLabel = props.directionsLabel ?? "Get directions";
6118
+ const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
6119
+ if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
6120
+ className: "rb-location-map-actions",
6121
+ children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
6122
+ href: links.directions,
6123
+ target: "_blank",
6124
+ rel: "noreferrer",
6125
+ variant: "secondary",
6126
+ size: "sm",
6127
+ label: directionsLabel
6128
+ }) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
6129
+ className: "rb-location-map-link",
6130
+ href: links.googleMaps,
6131
+ target: "_blank",
6132
+ rel: "noreferrer",
6133
+ children: googleMapsLabel
6134
+ }) : null]
6135
+ });
6136
+ return links.googleMaps ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
6137
+ className: "rb-location-map-link",
6138
+ href: links.googleMaps,
6139
+ target: "_blank",
6140
+ rel: "noreferrer",
6141
+ children: googleMapsLabel
6142
+ }) }) : null;
6143
+ }
6144
+ //#endregion
6145
+ //#region ../blocks/src/system/runtime/nodes/svg.tsx
6146
+ /**
6147
+ * Strict SVG-`transform` validator.
6148
+ *
6149
+ * Accepts only a whitespace/comma-separated list of the geometric transform
6150
+ * functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
6151
+ * arguments are plain numbers. This deliberately rejects anything else —
6152
+ * `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
6153
+ * so a persisted custom-block tree can't smuggle an executable or exfiltrating
6154
+ * value into the attribute.
6155
+ */
6156
+ const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
6157
+ const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
6158
+ const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
6159
+ const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
6160
+ function safeTransform(value) {
6161
+ if (typeof value !== "string") return void 0;
6162
+ const trimmed = value.trim();
6163
+ if (trimmed.length === 0) return void 0;
6164
+ return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
6165
+ }
6166
+ /**
6167
+ * Turn paint props into a CSS style object. Colour values pass through as-is so
6168
+ * they may reference theme tokens via `var()`, which only resolves in a CSS
6169
+ * property context (not in a bare presentation attribute).
6170
+ */
6171
+ function paintStyle(shape) {
6172
+ const style = {};
6173
+ if (shape.fill !== void 0) style.fill = shape.fill;
6174
+ if (shape.stroke !== void 0) style.stroke = shape.stroke;
6175
+ if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
6176
+ if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
6177
+ if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
6178
+ if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
6179
+ if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
6180
+ if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
6181
+ return style;
6182
+ }
6183
+ function renderShape(shape, key) {
6184
+ const style = paintStyle(shape);
6185
+ const transform = safeTransform(shape.transform);
6186
+ switch (shape.kind) {
6187
+ case "text": return /* @__PURE__ */ jsx("text", {
6188
+ className: shape.className,
6189
+ x: shape.x,
6190
+ y: shape.y,
6191
+ transform,
6192
+ children: shape.text
6193
+ }, key);
6194
+ case "path": return /* @__PURE__ */ jsx("path", {
6195
+ d: shape.d,
6196
+ className: shape.className,
6197
+ fillRule: shape.fillRule,
6198
+ style,
6199
+ transform
6200
+ }, key);
6201
+ case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
6202
+ cx: shape.cx,
6203
+ cy: shape.cy,
6204
+ rx: shape.rx,
6205
+ ry: shape.ry,
6206
+ style,
6207
+ transform
6208
+ }, key);
6209
+ case "circle": return /* @__PURE__ */ jsx("circle", {
6210
+ cx: shape.cx,
6211
+ cy: shape.cy,
6212
+ r: shape.r,
6213
+ style,
6214
+ transform
6215
+ }, key);
6216
+ case "rect": return /* @__PURE__ */ jsx("rect", {
6217
+ x: shape.x,
6218
+ y: shape.y,
6219
+ className: shape.className,
6220
+ width: shape.width,
6221
+ height: shape.height,
6222
+ rx: shape.rx,
6223
+ ry: shape.ry,
6224
+ style,
6225
+ transform
6226
+ }, key);
6227
+ case "line": return /* @__PURE__ */ jsx("line", {
6228
+ x1: shape.x1,
6229
+ y1: shape.y1,
6230
+ x2: shape.x2,
6231
+ y2: shape.y2,
6232
+ style,
6233
+ transform
6234
+ }, key);
6235
+ default: return null;
6236
+ }
6237
+ }
6238
+ const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
6239
+ return /* @__PURE__ */ jsx("svg", {
6240
+ viewBox,
6241
+ width,
6242
+ height,
6243
+ className,
6244
+ style,
6245
+ "aria-hidden": ariaHidden || void 0,
6246
+ role: ariaLabel ? "img" : void 0,
6247
+ "aria-label": ariaLabel,
6248
+ xmlns: "http://www.w3.org/2000/svg",
6249
+ fill: "none",
6250
+ children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
6251
+ });
6252
+ };
5934
6253
  //#endregion
5935
- //#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
5936
- function parseRichTextDoc(value) {
5937
- const parsed = RichTextDocSchema.safeParse(value);
5938
- if (parsed.success) return {
5939
- kind: "valid",
5940
- doc: parsed.data
5941
- };
5942
- return {
5943
- kind: "invalid",
5944
- issues: parsed.error.issues.map((issue) => ({
5945
- path: issue.path.map((segment) => String(segment)),
5946
- message: issue.message
5947
- }))
6254
+ //#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
6255
+ const PIN_PATH = "M0 0C-3.5-9-13-15-13-25A13 13 0 1 1 13-25C13-15 3.5-9 0 0ZM0-20.5A4.5 4.5 0 1 0 0-29.5A4.5 4.5 0 1 0 0-20.5Z";
6256
+ const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
6257
+ function pathShape(path) {
6258
+ return path.kind === "polygon" ? {
6259
+ kind: "path",
6260
+ className: path.className,
6261
+ fillRule: path.fillRule,
6262
+ d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
6263
+ } : {
6264
+ kind: "path",
6265
+ className: path.className,
6266
+ d: commands(path.points)
5948
6267
  };
5949
6268
  }
5950
- function coerceRichTextDoc(value, source) {
5951
- const parsed = parseRichTextDoc(value);
5952
- if (parsed.kind === "valid") return parsed.doc;
5953
- if (value !== null && value !== void 0) logger.warn("blocks:rich-text:invalid-document", {
5954
- source,
5955
- issues: parsed.issues.slice(0, 3)
5956
- });
5957
- return null;
5958
- }
5959
- //#endregion
5960
- //#region ../blocks/src/system/runtime/nodes/renderInlineText.tsx
5961
- function renderInlineText(value) {
5962
- return value.map((run, index) => renderRun(run, index));
6269
+ function labelShapes(label) {
6270
+ const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
6271
+ return [label.haloClassName, label.className].map((className) => ({
6272
+ kind: "text",
6273
+ className,
6274
+ x,
6275
+ y,
6276
+ transform,
6277
+ text: label.text
6278
+ }));
5963
6279
  }
5964
- function renderRun(run, key) {
5965
- return (run.marks ?? []).reduceRight((child, mark, index) => renderMark(mark, `${String(key)}-${index}`, child), run.text);
6280
+ /** The drawing the renderer below would show, or null when there's nothing it can draw. */
6281
+ function readableMapDrawing(drawing) {
6282
+ const parsed = mapDrawingSchema.safeParse(drawing);
6283
+ return parsed.success ? parsed.data : null;
5966
6284
  }
5967
- function renderMark(mark, key, child) {
5968
- switch (mark.kind) {
5969
- case "strong": return /* @__PURE__ */ jsx("strong", { children: child }, key);
5970
- case "emphasis": return /* @__PURE__ */ jsx("em", { children: child }, key);
5971
- case "accent": return /* @__PURE__ */ jsx("span", {
5972
- className: `rb-inline-text-accent rb-inline-text-accent-${mark.tone}`,
5973
- children: child
5974
- }, key);
5975
- case "highlight": return /* @__PURE__ */ jsx("span", {
5976
- className: `rb-inline-text-highlight rb-inline-text-highlight-${mark.tone}`,
5977
- children: child
5978
- }, key);
5979
- }
6285
+ /** Untrusted standalone callers retain boundary admission. */
6286
+ function MapDrawingSvg(props) {
6287
+ const drawing = readableMapDrawing(props.drawing);
6288
+ return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
6289
+ ...props,
6290
+ drawing
6291
+ }) : null;
5980
6292
  }
5981
- //#endregion
5982
- //#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
5983
- /**
5984
- * `compact` (event details) is one plain Google Maps text link under the venue;
5985
- * `block` (the map block) leads with a secondary directions button and keeps
5986
- * the same Google Maps text link beside it.
5987
- */
5988
- function LocationMapActions(props) {
5989
- const links = locationMapLinks(props);
5990
- const directionsLabel = props.directionsLabel ?? "Get directions";
5991
- const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
5992
- if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
5993
- className: "rb-location-map-actions",
5994
- children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
5995
- href: links.directions,
5996
- target: "_blank",
5997
- rel: "noreferrer",
5998
- variant: "secondary",
5999
- size: "sm",
6000
- label: directionsLabel
6001
- }) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
6002
- className: "rb-location-map-link",
6003
- href: links.googleMaps,
6293
+ /** Render an already admitted value without allocating another validation copy. */
6294
+ function AdmittedMapDrawingSvg(props) {
6295
+ const drawing = props.drawing;
6296
+ const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
6297
+ const shapes = [
6298
+ {
6299
+ kind: "rect",
6300
+ className: frame.backgroundClass,
6301
+ x: 0,
6302
+ y: 0,
6303
+ width: 800,
6304
+ height: 800
6305
+ },
6306
+ ...frame.paths.map(pathShape),
6307
+ ...frame.labels.flatMap(labelShapes),
6308
+ {
6309
+ kind: "path",
6310
+ className: frame.pin.className,
6311
+ fillRule: "evenodd",
6312
+ d: PIN_PATH,
6313
+ transform: `translate(${frame.pin.point.join(" ")})`
6314
+ }
6315
+ ];
6316
+ return /* @__PURE__ */ jsxs("figure", {
6317
+ className: `rb-map-drawing ${props.className ?? ""}`.trim(),
6318
+ children: [/* @__PURE__ */ jsx("div", {
6319
+ className: "rb-map-drawing-crop",
6320
+ style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
6321
+ children: /* @__PURE__ */ jsx(SvgNode, {
6322
+ className: `map-${name}`,
6323
+ viewBox: frame.viewBox.join(" "),
6324
+ shapes,
6325
+ ariaHidden: false,
6326
+ ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
6327
+ })
6328
+ }), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
6329
+ href: "https://www.openstreetmap.org/copyright",
6004
6330
  target: "_blank",
6005
6331
  rel: "noreferrer",
6006
- children: googleMapsLabel
6007
- }) : null]
6332
+ children: "OpenStreetMap contributors"
6333
+ })] })]
6008
6334
  });
6009
- return links.googleMaps ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
6010
- className: "rb-location-map-link",
6011
- href: links.googleMaps,
6012
- target: "_blank",
6013
- rel: "noreferrer",
6014
- children: googleMapsLabel
6015
- }) }) : null;
6335
+ }
6336
+ function cropHeightStyle(height, heightAs) {
6337
+ return heightAs === "minimum" ? { minHeight: height } : { height };
6016
6338
  }
6017
6339
  //#endregion
6018
6340
  //#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
@@ -6372,162 +6694,6 @@ function FileDownloadNode({ value, title, description, buttonLabel, buttonVarian
6372
6694
  });
6373
6695
  }
6374
6696
  //#endregion
6375
- //#region ../blocks/src/lib/video.ts
6376
- /**
6377
- * Parse a video URL and extract provider and video ID.
6378
- * Uses URL constructor for safe parsing.
6379
- *
6380
- * @param url - Video URL to parse
6381
- * @returns VideoInfo if valid, null otherwise
6382
- *
6383
- * Supported formats:
6384
- * - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
6385
- * - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
6386
- * - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
6387
- */
6388
- function parseVideoUrl(url) {
6389
- if (!url || typeof url !== "string") return null;
6390
- try {
6391
- const parsed = new URL(url);
6392
- const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
6393
- if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
6394
- const id = extractYouTubeId(parsed);
6395
- if (id) return {
6396
- provider: "youtube",
6397
- id,
6398
- url
6399
- };
6400
- }
6401
- if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
6402
- const id = extractVimeoId(parsed);
6403
- if (id) return {
6404
- provider: "vimeo",
6405
- id,
6406
- url
6407
- };
6408
- }
6409
- if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
6410
- const instagram = extractInstagramShortcode(parsed);
6411
- if (instagram) return {
6412
- provider: "instagram",
6413
- id: instagram.shortcode,
6414
- kind: instagram.kind,
6415
- url
6416
- };
6417
- }
6418
- return null;
6419
- } catch {
6420
- return null;
6421
- }
6422
- }
6423
- /**
6424
- * Extract YouTube video ID from parsed URL.
6425
- */
6426
- function extractYouTubeId(url) {
6427
- if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
6428
- const id = url.pathname.slice(1).split("/")[0] ?? "";
6429
- return isValidYouTubeId(id) ? id : null;
6430
- }
6431
- const vParam = url.searchParams.get("v");
6432
- if (vParam && isValidYouTubeId(vParam)) return vParam;
6433
- const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
6434
- if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
6435
- const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
6436
- if (embedId && isValidYouTubeId(embedId)) return embedId;
6437
- const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
6438
- if (vId && isValidYouTubeId(vId)) return vId;
6439
- return null;
6440
- }
6441
- /**
6442
- * Validate YouTube video ID format.
6443
- * YouTube IDs are 11 characters, alphanumeric plus - and _
6444
- */
6445
- function isValidYouTubeId(id) {
6446
- return /^[a-zA-Z0-9_-]{11}$/.test(id);
6447
- }
6448
- /**
6449
- * Extract Vimeo video ID from parsed URL.
6450
- */
6451
- function extractVimeoId(url) {
6452
- const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
6453
- if (playerId) return playerId;
6454
- const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
6455
- if (pathId) return pathId;
6456
- return null;
6457
- }
6458
- function extractInstagramShortcode(url) {
6459
- const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
6460
- const rawKind = match?.[1];
6461
- const shortcode = match?.[2];
6462
- if (!rawKind || !shortcode) return null;
6463
- const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
6464
- if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
6465
- const kind = normalizedKind;
6466
- if (!isValidInstagramShortcode(shortcode)) return null;
6467
- return {
6468
- kind,
6469
- shortcode
6470
- };
6471
- }
6472
- function isValidInstagramShortcode(shortcode) {
6473
- return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
6474
- }
6475
- /**
6476
- * Generate privacy-enhanced embed URL for a video.
6477
- *
6478
- * @param info - VideoInfo from parseVideoUrl
6479
- * @returns Embed URL suitable for iframe src
6480
- */
6481
- function getEmbedUrl(info) {
6482
- switch (info.provider) {
6483
- case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
6484
- case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
6485
- case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
6486
- }
6487
- return info.provider;
6488
- }
6489
- /**
6490
- * Generate thumbnail URL for a video.
6491
- *
6492
- * @param info - VideoInfo from parseVideoUrl
6493
- * @returns Thumbnail image URL
6494
- *
6495
- * Note: YouTube maxresdefault.jpg may 404 for some videos.
6496
- * Consider using hqdefault.jpg as a more reliable fallback.
6497
- */
6498
- function getThumbnailUrl(info) {
6499
- switch (info.provider) {
6500
- case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
6501
- case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
6502
- case "instagram": return "";
6503
- }
6504
- return info.provider;
6505
- }
6506
- function getVideoEmbedLoadingStrategy(provider) {
6507
- switch (provider) {
6508
- case "youtube":
6509
- case "vimeo": return "native-lazy";
6510
- case "instagram": return "defer-until-near-viewport";
6511
- }
6512
- return provider;
6513
- }
6514
- /**
6515
- * Parse URL and get complete embed information.
6516
- * Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
6517
- *
6518
- * @param url - Video URL to parse
6519
- * @returns EmbedInfo if valid, null otherwise
6520
- */
6521
- function getVideoEmbed(url) {
6522
- const info = parseVideoUrl(url);
6523
- if (!info) return null;
6524
- return {
6525
- ...info,
6526
- embedUrl: getEmbedUrl(info),
6527
- thumbnailUrl: getThumbnailUrl(info)
6528
- };
6529
- }
6530
- //#endregion
6531
6697
  //#region ../blocks/src/system/runtime/nodes/video-embed.tsx
6532
6698
  /**
6533
6699
  * Video embed node component.
@@ -6608,10 +6774,10 @@ function getAspectRatio(propAspectRatio, style) {
6608
6774
  return normalizeAspectRatio(propAspectRatio) ?? normalizeAspectRatio(styleAspectRatio) ?? "16/9";
6609
6775
  }
6610
6776
  function normalizeAspectRatio(value) {
6611
- if (typeof value === "number") return value;
6777
+ if (typeof value === "number") return Number.isFinite(value) && value > 0 ? value : void 0;
6612
6778
  if (typeof value === "string") {
6613
6779
  const trimmed = value.trim();
6614
- return trimmed.length > 0 ? trimmed : void 0;
6780
+ return VIDEO_ASPECT_RATIO_PATTERN.test(trimmed) ? trimmed : void 0;
6615
6781
  }
6616
6782
  if (value && typeof value === "object" && "value" in value) return normalizeAspectRatio(value.value);
6617
6783
  }
@@ -7159,7 +7325,7 @@ function viewFromLayout(layout, toRows) {
7159
7325
  groups: allGroups
7160
7326
  };
7161
7327
  }
7162
- default: return assertNever$1(layout);
7328
+ default: return assertNever$3(layout);
7163
7329
  }
7164
7330
  }
7165
7331
  function buildAppointmentServicesView(input) {
@@ -7184,7 +7350,7 @@ function categoryViewToListing(view, toRows) {
7184
7350
  };
7185
7351
  case "all":
7186
7352
  case "fallback-all": return viewFromLayout(view.layout, toRows);
7187
- default: return assertNever$1(view);
7353
+ default: return assertNever$3(view);
7188
7354
  }
7189
7355
  }
7190
7356
  function AppointmentServiceRows({ rows, RowTitle }) {
@@ -7332,7 +7498,7 @@ function AppointmentServicesContent({ view, hasSectionHeading, idPrefix }) {
7332
7498
  hasSectionHeading,
7333
7499
  idPrefix
7334
7500
  });
7335
- default: return assertNever$1(view);
7501
+ default: return assertNever$3(view);
7336
7502
  }
7337
7503
  }
7338
7504
  function appointmentCardContent(row) {
@@ -7402,21 +7568,55 @@ const teamMemberCardSchema = z.object({
7402
7568
  photo: runtimeMediaSchema.refine((value) => value.type === "image").nullish(),
7403
7569
  summary: z.string().nullish(),
7404
7570
  profilePath: z.string().nullish(),
7405
- specialties: z.unknown().transform(parseTeamMemberSpecialties)
7571
+ specialties: z.unknown().transform(parseTeamMemberSpecialties),
7572
+ facts: z.array(z.object({
7573
+ label: z.string(),
7574
+ value: z.string()
7575
+ })).nullish()
7406
7576
  });
7407
- /** Staff and manual members meet at one boundary; Look data chooses biography length. */
7408
- function teamMemberCardContent(member, index, biographySource, cardBiography) {
7409
- const biography = cardBiography === "any" ? cardText(teamMemberCardBiography(member)) : biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
7410
- const href = sanitizeHref(member.profilePath);
7577
+ /**
7578
+ * Staff and manual members meet at one boundary, and this is the one place
7579
+ * that decides what a person's card says and where. Look data chooses the bio's
7580
+ * length, and whether the facts are the person's own quick facts (with the role
7581
+ * above the name, after the bio, and no link to a profile) or the role on its own.
7582
+ */
7583
+ function teamMemberCards(members, choices = {}) {
7411
7584
  return {
7585
+ items: members.map((member, index) => teamMemberCardContent(member, index, choices)),
7586
+ bodyParts: choices.teamFacts === "person" ? [
7587
+ "title",
7588
+ "text",
7589
+ "facts"
7590
+ ] : [
7591
+ "title",
7592
+ "facts",
7593
+ "text",
7594
+ "chips",
7595
+ "action"
7596
+ ]
7597
+ };
7598
+ }
7599
+ function teamMemberCardContent(member, index, choices) {
7600
+ const biography = cardBiographyFor(member, choices);
7601
+ const role = member.role ? [{
7602
+ label: "Role",
7603
+ value: member.role
7604
+ }] : [];
7605
+ const card = {
7412
7606
  id: member.id ?? `member-${index}`,
7413
7607
  title: member.name,
7414
7608
  media: member.photo,
7415
- ...typeof biography === "string" ? { text: biography } : { textDocument: biography ?? void 0 },
7416
- facts: member.role ? [{
7417
- label: "Role",
7418
- value: member.role
7419
- }] : [],
7609
+ ...typeof biography === "string" ? { text: biography } : { textDocument: biography ?? void 0 }
7610
+ };
7611
+ if (choices.teamFacts === "person") return {
7612
+ ...card,
7613
+ eyebrowFacts: role,
7614
+ facts: member.facts ?? []
7615
+ };
7616
+ const href = sanitizeHref(member.profilePath);
7617
+ return {
7618
+ ...card,
7619
+ facts: role,
7420
7620
  chips: member.specialties,
7421
7621
  ...href ? { action: {
7422
7622
  label: `About ${member.name}`,
@@ -7424,6 +7624,10 @@ function teamMemberCardContent(member, index, biographySource, cardBiography) {
7424
7624
  } } : {}
7425
7625
  };
7426
7626
  }
7627
+ function cardBiographyFor(member, choices) {
7628
+ if (choices.cardBiography === "any") return cardText(teamMemberCardBiography(member));
7629
+ return choices.biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
7630
+ }
7427
7631
  function cardText(biography) {
7428
7632
  if (!biography) return null;
7429
7633
  return biography.kind === "document" ? biography.document : biography.paragraphs.join("\n\n");
@@ -7498,18 +7702,13 @@ function TeamMembersNode(props) {
7498
7702
  ...about,
7499
7703
  props
7500
7704
  });
7705
+ const cards = teamMemberCards(parsed.data, props);
7501
7706
  return /* @__PURE__ */ jsx(CardListItems, {
7502
7707
  Carousel: props.Carousel,
7503
- items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource, props.cardBiography)),
7708
+ items: cards.items,
7504
7709
  presentation: {
7505
7710
  ...props,
7506
- bodyParts: [
7507
- "title",
7508
- "facts",
7509
- "text",
7510
- "chips",
7511
- "action"
7512
- ]
7711
+ bodyParts: cards.bodyParts
7513
7712
  },
7514
7713
  Title: props.sectionHeading?.trim() ? "h3" : "h2",
7515
7714
  carouselLabels: {
@@ -7766,6 +7965,13 @@ const bookingServiceSchema = z.object({
7766
7965
  buyPackage: z.boolean(),
7767
7966
  anyAvailable: z.boolean()
7768
7967
  }).optional(),
7968
+ onlinePayments: z.discriminatedUnion("kind", [z.object({ kind: z.literal("available") }), z.object({
7969
+ kind: z.literal("unavailable"),
7970
+ organiserContact: z.object({
7971
+ email: z.string().nullable(),
7972
+ phone: z.string().nullable()
7973
+ }).optional()
7974
+ })]).optional(),
7769
7975
  pricing: z.custom().optional(),
7770
7976
  priceAmount: z.number().nullable().optional(),
7771
7977
  priceCurrency: z.string().nullable().optional(),
@@ -8171,7 +8377,11 @@ function selectEventDetails(args) {
8171
8377
  selected,
8172
8378
  run,
8173
8379
  sessions: run.sessions,
8174
- timeZone
8380
+ timeZone,
8381
+ depositOffer: resolvePublicEventDepositOffer(selected, {
8382
+ nowIso: args.nowIso,
8383
+ sessions: run.sessions
8384
+ })
8175
8385
  };
8176
8386
  }
8177
8387
  if (!isOrdinaryEvent(selected)) return emptySelection(timeZone);
@@ -8180,7 +8390,8 @@ function selectEventDetails(args) {
8180
8390
  mode: mode === "selected" ? "selected" : "next",
8181
8391
  selected,
8182
8392
  otherDates: otherDates.filter(isOrdinaryEvent),
8183
- timeZone
8393
+ timeZone,
8394
+ depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso })
8184
8395
  };
8185
8396
  }
8186
8397
  //#endregion
@@ -8298,7 +8509,8 @@ function formatTicketTypePrice(ticketType, currency) {
8298
8509
  return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
8299
8510
  }
8300
8511
  function getDisplayablePricingOptions(event) {
8301
- return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).sort((left, right) => left.sortOrder - right.sortOrder) : [];
8512
+ const roomPriceIds = event.rooms?.linkedOptionIds ?? [];
8513
+ return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
8302
8514
  }
8303
8515
  function TicketTypePriceList({ ticketTypes, currency }) {
8304
8516
  if (ticketTypes.length === 0) return null;
@@ -8618,7 +8830,8 @@ function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
8618
8830
  });
8619
8831
  }
8620
8832
  /** One pricing projection governs the selected panel, including drop-in and whole-series behavior. */
8621
- function selectedEventPricing(event, showCost) {
8833
+ function selectedEventPricing(selection, showCost) {
8834
+ const event = selection.selected;
8622
8835
  const isDropIn = isDropInEvent(event);
8623
8836
  const wholeSeriesPricing = wholeSeriesPricingOf(event);
8624
8837
  const showEventCost = showCost && !isDropIn && wholeSeriesPricing === null;
@@ -8626,7 +8839,7 @@ function selectedEventPricing(event, showCost) {
8626
8839
  isDropIn,
8627
8840
  wholeSeriesPricingDisplay: showCost ? wholeSeriesPricing : null,
8628
8841
  eventCostLabel: showEventCost ? formatEventPrice(event) : null,
8629
- depositNote: showCost && !isDropIn ? paidDepositNote(event) : null,
8842
+ depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
8630
8843
  eventPricingCurrency: publicEventPricingCurrency(event.pricing),
8631
8844
  ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
8632
8845
  };
@@ -8634,14 +8847,13 @@ function selectedEventPricing(event, showCost) {
8634
8847
  const isDropInEvent = (event) => event.bookingScope === "single_occurrence" && event.requiresRegistration === false;
8635
8848
  const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
8636
8849
  const isPaid = (event) => publicEventPricingType(event.pricing) !== "free";
8637
- const paidDepositNote = (event) => isPaid(event) ? formatEventDepositNote(event.pricing, event.paymentTerms, event) : null;
8638
8850
  function SelectedEventDetailsView(props) {
8639
8851
  const { selection, showVenue, showMap, showOtherDates, showTitle, showDescription, showCapacity, mapHeight, mapClassName, acceptedItems } = props;
8640
8852
  const selected = selection.selected;
8641
8853
  const venue = showVenue ? selected.venue : void 0;
8642
8854
  const online = eventOnlinePlaceShown(selected, showVenue);
8643
8855
  const addressAfterBooking = addressAfterBookingShown(selected, showVenue);
8644
- const pricing = selectedEventPricing(selected, props.showCost);
8856
+ const pricing = selectedEventPricing(selection, props.showCost);
8645
8857
  return /* @__PURE__ */ jsxs("div", {
8646
8858
  className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
8647
8859
  children: [
@@ -8772,7 +8984,7 @@ function headerPanelContent(props) {
8772
8984
  const venue = props.showVenue ? selection.selected.venue : void 0;
8773
8985
  const online = eventOnlinePlaceShown(selection.selected, props.showVenue);
8774
8986
  const teamMembers = selection.selected.teamMembers ?? [];
8775
- const pricing = headerPanelPricing(props, selection.selected);
8987
+ const pricing = headerPanelPricing(props, selection);
8776
8988
  const scheduled = selection.kind === "wholeSeries" ? selection.sessions.length : selection.otherDates.length;
8777
8989
  return {
8778
8990
  venue,
@@ -8790,8 +9002,8 @@ function headerPanelContent(props) {
8790
9002
  * discount, or passes that also admit. Decided from the same projection
8791
9003
  * `EventPricingDetails` renders, so a panel is only drawn when it will show something.
8792
9004
  */
8793
- function headerPanelPricing(props, event) {
8794
- const pricing = selectedEventPricing(event, props.showCost ?? true);
9005
+ function headerPanelPricing(props, selection) {
9006
+ const pricing = selectedEventPricing(selection, props.showCost ?? true);
8795
9007
  if (pricing.isDropIn) return null;
8796
9008
  const detail = {
8797
9009
  ...pricing,
@@ -9162,7 +9374,7 @@ function OfferingsCatalogue(props) {
9162
9374
  groups: state.groups,
9163
9375
  shape
9164
9376
  });
9165
- default: return assertNever$1(state);
9377
+ default: return assertNever$3(state);
9166
9378
  }
9167
9379
  }
9168
9380
  /** The hook the single-offering layout hangs from; absent for several. */
@@ -9296,7 +9508,7 @@ function catalogueGroupItems(load) {
9296
9508
  }];
9297
9509
  case "empty":
9298
9510
  case "failed": return [];
9299
- default: return assertNever$1(load);
9511
+ default: return assertNever$3(load);
9300
9512
  }
9301
9513
  }
9302
9514
  //#endregion
@@ -9425,7 +9637,7 @@ function renderOfferingsPreview(props, listing, now) {
9425
9637
  states: listing.groups,
9426
9638
  now
9427
9639
  });
9428
- default: return assertNever$1(listing);
9640
+ default: return assertNever$3(listing);
9429
9641
  }
9430
9642
  }
9431
9643
  function listingMessage(reason, props) {
@@ -9467,7 +9679,7 @@ function renderOfferingGroupItems(presentation, items, options) {
9467
9679
  children: items.map((item) => renderOfferingCompactItem(item, options))
9468
9680
  })
9469
9681
  });
9470
- default: return assertNever$1(presentation, "Unhandled offerings preview presentation");
9682
+ default: return assertNever$3(presentation, "Unhandled offerings preview presentation");
9471
9683
  }
9472
9684
  }
9473
9685
  function FeaturedOfferingSummary({ item }) {
@@ -9520,7 +9732,7 @@ function featuredSummaryDetails(item) {
9520
9732
  deliveryMode: item.run.representative.deliveryMode
9521
9733
  }) : null;
9522
9734
  }
9523
- default: return assertNever$1(item, "Unhandled offerings preview item");
9735
+ default: return assertNever$3(item, "Unhandled offerings preview item");
9524
9736
  }
9525
9737
  }
9526
9738
  function formatFeaturedSummary(summary, place) {
@@ -9548,7 +9760,7 @@ function formatFeaturedSummary(summary, place) {
9548
9760
  recurrence: summary.authoredSummary ?? void 0,
9549
9761
  sessionCount: `${summary.sessionCount} date${summary.sessionCount === 1 ? "" : "s"}`
9550
9762
  });
9551
- default: return assertNever$1(summary, "Unhandled offerings preview schedule summary");
9763
+ default: return assertNever$3(summary, "Unhandled offerings preview schedule summary");
9552
9764
  }
9553
9765
  }
9554
9766
  function detailsFromOccurrences(input) {
@@ -9923,7 +10135,7 @@ function offeringGroupCards(state, props, dates) {
9923
10135
  });
9924
10136
  case "empty":
9925
10137
  case "failed": return /* @__PURE__ */ jsx(EmptyState, { message: listingMessage(state.kind, props) });
9926
- default: return assertNever$1(state);
10138
+ default: return assertNever$3(state);
9927
10139
  }
9928
10140
  }
9929
10141
  /** The existing booking projection owns prices, availability and sold-out/waitlist actions. */
@@ -10113,7 +10325,7 @@ function bookingActionContent(input) {
10113
10325
  children: input.buttonText
10114
10326
  });
10115
10327
  case "unavailable": return null;
10116
- default: return assertNever$1(input.booking);
10328
+ default: return assertNever$3(input.booking);
10117
10329
  }
10118
10330
  }
10119
10331
  function RecurringSchedule({ dateContext = resolveDateRuntimeContext(void 0), schedule, buttonText = "Book", buttonVariant = "primary", showVenue = true, emptyMessage = "Regular schedule details will be added shortly." }) {
@@ -12173,7 +12385,8 @@ function resolveBookingPanelSelection(source) {
12173
12385
  }, events);
12174
12386
  return selection ? {
12175
12387
  selection,
12176
- subject
12388
+ subject,
12389
+ pageEvents: events
12177
12390
  } : null;
12178
12391
  }
12179
12392
  function selectPagePanel(source, events) {
@@ -12209,7 +12422,7 @@ function selectOccurrenceForPanel(events, occurrenceId) {
12209
12422
  event
12210
12423
  } : null;
12211
12424
  }
12212
- function planEventBookingPanel({ selection, subject }, now) {
12425
+ function planEventBookingPanel({ selection, subject, pageEvents }, now) {
12213
12426
  if (isCancelledDateSelection(selection)) return {
12214
12427
  kind: "cancelled",
12215
12428
  registration: null
@@ -12219,7 +12432,7 @@ function planEventBookingPanel({ selection, subject }, now) {
12219
12432
  case "occurrence":
12220
12433
  case "dateChoice":
12221
12434
  case "wholeSeriesRun": {
12222
- const registration = selectionRegistrationTarget(selection, subject);
12435
+ const registration = selectionRegistrationTarget(selection, subject, pageEvents);
12223
12436
  if (nonBookingPanel) return {
12224
12437
  ...nonBookingPanel,
12225
12438
  registration
@@ -12283,10 +12496,14 @@ function planNonBookingPanel(selection) {
12283
12496
  detail
12284
12497
  } : null;
12285
12498
  }
12286
- function selectionRegistrationTarget(selection, subject) {
12499
+ /**
12500
+ * A date's own page hands over its series' other dates as well as its own:
12501
+ * the wizard decides whether the visitor can add them (`decideRegistrationEntry`).
12502
+ */
12503
+ function selectionRegistrationTarget(selection, subject, pageEvents) {
12287
12504
  switch (selection.kind) {
12288
12505
  case "occurrence": return {
12289
- events: [selection.event],
12506
+ events: seriesDates(selection.event, pageEvents),
12290
12507
  occurrenceContext: eventOccurrenceContext(selection.event),
12291
12508
  subject
12292
12509
  };
@@ -12302,6 +12519,9 @@ function selectionRegistrationTarget(selection, subject) {
12302
12519
  };
12303
12520
  }
12304
12521
  }
12522
+ function seriesDates(pageDate, pageEvents) {
12523
+ return [pageDate, ...pageEvents.filter((event) => isOrdinaryPublicEvent(event) && event.seriesId === pageDate.seriesId && event.occurrenceId !== pageDate.occurrenceId)];
12524
+ }
12305
12525
  /**
12306
12526
  * Every run the course page admits, not just those still taking bookings. An
12307
12527
  * invitation emailed for a run links here, and stays good after that run closes.
@@ -12546,7 +12766,7 @@ function BookingEntryCard(props) {
12546
12766
  entry,
12547
12767
  ...rest
12548
12768
  });
12549
- default: return assertNever$1(entry);
12769
+ default: return assertNever$3(entry);
12550
12770
  }
12551
12771
  }
12552
12772
  //#endregion
@@ -13561,7 +13781,7 @@ function previewEditableTargetToPath(target) {
13561
13781
  case "current-entry-field":
13562
13782
  case "current-entry-metadata": return target.path;
13563
13783
  case "read-only": return;
13564
- default: return assertNever$1(target);
13784
+ default: return assertNever$3(target);
13565
13785
  }
13566
13786
  }
13567
13787
  function previewEditableTargetToFieldKey(target) {
@@ -13628,7 +13848,7 @@ function stripNumericPathSegments(path) {
13628
13848
  }
13629
13849
  const lookOwnedPathCache = /* @__PURE__ */ new WeakMap();
13630
13850
  function lookOwnedPathsOf(content) {
13631
- if (!isPlainObject(content)) return [];
13851
+ if (!isRecord$4(content)) return [];
13632
13852
  const cached = lookOwnedPathCache.get(content);
13633
13853
  if (cached) return cached;
13634
13854
  const value = content._lookOwnedPaths;
@@ -13659,7 +13879,7 @@ function contentFieldSegments(fromPath, context) {
13659
13879
  if (first === "content") return rest;
13660
13880
  const named = findNamedScope(context, first);
13661
13881
  if (named) return scopedContentSegments(named, rest);
13662
- const innermost = [...context.scopes].reverse().find((entry) => isPlainObject(entry.value) || Array.isArray(entry.value));
13882
+ const innermost = [...context.scopes].reverse().find((entry) => isRecord$4(entry.value) || Array.isArray(entry.value));
13663
13883
  if (!innermost || first in context.viewModel) return void 0;
13664
13884
  return innermost.name === "content" ? [first, ...rest] : scopedContentSegments(innermost, [first, ...rest]);
13665
13885
  }
@@ -13703,29 +13923,23 @@ function readFromSource(source, segments) {
13703
13923
  }, source);
13704
13924
  }
13705
13925
  /**
13706
- * Type guard for plain objects.
13707
- */
13708
- function isPlainObject(value) {
13709
- return typeof value === "object" && value !== null && !Array.isArray(value);
13710
- }
13711
- /**
13712
13926
  * Validates and converts a route entry from the viewModel.
13713
13927
  */
13714
13928
  function parseRouteEntry(routeId, value) {
13715
13929
  if (typeof routeId !== "string" || routeId.length === 0) return null;
13716
13930
  if (typeof value === "string") return [routeId, value];
13717
- if (isPlainObject(value)) return [routeId, value];
13931
+ if (isRecord$4(value)) return [routeId, value];
13718
13932
  return null;
13719
13933
  }
13720
13934
  /**
13721
13935
  * Extracts route map from $root.routes in the viewModel.
13722
13936
  */
13723
13937
  function extractRouteMapFromViewModel(viewModel) {
13724
- if (!isPlainObject(viewModel)) return void 0;
13938
+ if (!isRecord$4(viewModel)) return void 0;
13725
13939
  const root = viewModel.$root;
13726
- if (!isPlainObject(root)) return void 0;
13940
+ if (!isRecord$4(root)) return void 0;
13727
13941
  const routes = root.routes;
13728
- if (!isPlainObject(routes)) return void 0;
13942
+ if (!isRecord$4(routes)) return void 0;
13729
13943
  const entries = Object.entries(routes).map(([routeId, value]) => parseRouteEntry(routeId, value)).filter((entry) => entry !== null);
13730
13944
  if (entries.length === 0) return void 0;
13731
13945
  return Object.fromEntries(entries);
@@ -13734,22 +13948,22 @@ function extractRouteMapFromViewModel(viewModel) {
13734
13948
  * Extracts pagesByIdentifier from $root.pagesByIdentifier in the viewModel.
13735
13949
  */
13736
13950
  function extractPagesByIdentifierFromViewModel(viewModel) {
13737
- if (!isPlainObject(viewModel)) return void 0;
13951
+ if (!isRecord$4(viewModel)) return void 0;
13738
13952
  const root = viewModel.$root;
13739
- if (!isPlainObject(root)) return void 0;
13953
+ if (!isRecord$4(root)) return void 0;
13740
13954
  const pagesByIdentifier = root.pagesByIdentifier;
13741
- if (!isPlainObject(pagesByIdentifier)) return void 0;
13955
+ if (!isRecord$4(pagesByIdentifier)) return void 0;
13742
13956
  return pagesByIdentifier;
13743
13957
  }
13744
13958
  /**
13745
13959
  * Extracts entriesByIdentifier from $root.entriesByIdentifier in the viewModel.
13746
13960
  */
13747
13961
  function extractEntriesByIdentifierFromViewModel(viewModel) {
13748
- if (!isPlainObject(viewModel)) return void 0;
13962
+ if (!isRecord$4(viewModel)) return void 0;
13749
13963
  const root = viewModel.$root;
13750
- if (!isPlainObject(root)) return void 0;
13964
+ if (!isRecord$4(root)) return void 0;
13751
13965
  const entriesByIdentifier = root.entriesByIdentifier;
13752
- if (!isPlainObject(entriesByIdentifier)) return void 0;
13966
+ if (!isRecord$4(entriesByIdentifier)) return void 0;
13753
13967
  return entriesByIdentifier;
13754
13968
  }
13755
13969
  /**
@@ -13771,7 +13985,7 @@ function applyTransformsAndFallback(value, binding, context) {
13771
13985
  const routeMap = context.routes ?? extractRouteMapFromViewModel(context.viewModel);
13772
13986
  const pagesByIdentifier = context.pagesByIdentifier ?? extractPagesByIdentifierFromViewModel(context.viewModel);
13773
13987
  const entriesByIdentifier = context.entriesByIdentifier ?? extractEntriesByIdentifierFromViewModel(context.viewModel);
13774
- const stage = (isPlainObject(context.viewModel.$root) ? context.viewModel.$root : null)?.previewStage === "preview" ? "preview" : "published";
13988
+ const stage = (isRecord$4(context.viewModel.$root) ? context.viewModel.$root : null)?.previewStage === "preview" ? "preview" : "published";
13775
13989
  const transformed = runTransforms(value, binding.transforms?.map((step) => ({
13776
13990
  id: step.id,
13777
13991
  options: step.options
@@ -13803,15 +14017,15 @@ function resolveTransformData(context, bindingPath) {
13803
14017
  const [first] = splitPath(bindingPath);
13804
14018
  if (typeof first === "string" && first !== "$root") {
13805
14019
  const namedScope = findNamedScope(context, first);
13806
- if (namedScope && isPlainObject(namedScope.value)) return namedScope.value;
14020
+ if (namedScope && isRecord$4(namedScope.value)) return namedScope.value;
13807
14021
  }
13808
14022
  for (let i = context.scopes.length - 1; i >= 0; i -= 1) {
13809
14023
  const scope = context.scopes[i];
13810
- if (scope && isPlainObject(scope.value)) return scope.value;
14024
+ if (scope && isRecord$4(scope.value)) return scope.value;
13811
14025
  }
13812
14026
  const content = context.viewModel.content;
13813
- if (isPlainObject(content)) return content;
13814
- if (isPlainObject(context.viewModel)) return context.viewModel;
14027
+ if (isRecord$4(content)) return content;
14028
+ if (isRecord$4(context.viewModel)) return context.viewModel;
13815
14029
  }
13816
14030
  function coerceBindingValue(value, binding) {
13817
14031
  const mode = binding.coerce;
@@ -13898,7 +14112,7 @@ function richTextSelfPresence(node) {
13898
14112
  }
13899
14113
  }
13900
14114
  function hasResolvableRichTextImageSource(node) {
13901
- const attrs = isPlainObject(node.attrs) ? node.attrs : {};
14115
+ const attrs = isRecord$4(node.attrs) ? node.attrs : {};
13902
14116
  return hasNonBlankStringAttr(attrs, "src") || hasNonBlankStringAttr(attrs, "identifier");
13903
14117
  }
13904
14118
  function hasNonBlankStringAttr(attrs, key) {
@@ -14099,7 +14313,7 @@ function getNestedBinding(bindings, path) {
14099
14313
  const segments = path.split(".");
14100
14314
  let current = bindings;
14101
14315
  for (const segment of segments) {
14102
- if (!isPlainObject(current)) return void 0;
14316
+ if (!isRecord$4(current)) return void 0;
14103
14317
  current = current[segment];
14104
14318
  }
14105
14319
  return current;
@@ -14122,7 +14336,7 @@ function resolveBindingToEditorPath(fieldName, bindings, editableRouteMetadataFi
14122
14336
  };
14123
14337
  const binding = bindings[fieldName] ?? getNestedBinding(bindings, fieldName);
14124
14338
  if (!binding) return null;
14125
- if (isPlainObject(binding) && "source" in binding) {
14339
+ if (isRecord$4(binding) && "source" in binding) {
14126
14340
  const source = binding.source;
14127
14341
  if (source === "field" && "path" in binding) {
14128
14342
  const path = binding.path;
@@ -14139,7 +14353,7 @@ function resolveBindingToEditorPath(fieldName, bindings, editableRouteMetadataFi
14139
14353
  if (!Array.isArray(options)) return null;
14140
14354
  for (const option of options) {
14141
14355
  if (typeof option === "string") return `content.${option}`;
14142
- if (isPlainObject(option) && "source" in option) {
14356
+ if (isRecord$4(option) && "source" in option) {
14143
14357
  const optSource = option.source;
14144
14358
  if (optSource === "field" && "path" in option) {
14145
14359
  const path = option.path;
@@ -14191,7 +14405,7 @@ function derivePreviewTextEditableTarget(parsedBinding, context) {
14191
14405
  };
14192
14406
  }
14193
14407
  const root = context.viewModel?.$root;
14194
- if (isPlainObject(root) && root.contentEntry != null && context.pathBase) return {
14408
+ if (isRecord$4(root) && root.contentEntry != null && context.pathBase) return {
14195
14409
  kind: "read-only",
14196
14410
  reason: "entry-template-block-field"
14197
14411
  };
@@ -14250,7 +14464,7 @@ function injectMediaSlotPath(props, node, parsedBinding, context) {
14250
14464
  if (resolveBindingToEditorPath(fieldPath, context.blockBindings, context.editableRouteMetadataFieldIds)) return props;
14251
14465
  }
14252
14466
  const root = context.viewModel?.$root;
14253
- if (isPlainObject(root) && root.contentEntry != null && context.pathBase) return props;
14467
+ if (isRecord$4(root) && root.contentEntry != null && context.pathBase) return props;
14254
14468
  return {
14255
14469
  ...props,
14256
14470
  fieldPath
@@ -14368,7 +14582,7 @@ function resolveNode(node, context, indexFallback) {
14368
14582
  const parsedBinding = node.$bind ? parseBinding(node.$bind, "$bind") : void 0;
14369
14583
  const bindingValue = parsedBinding ? resolveBindingValue(parsedBinding, scopeContext) : void 0;
14370
14584
  let props = resolveProps(getNodeProps(node), scopeContext, bindingValue);
14371
- props = injectEditorPath(props, node, parsedBinding, scopeContext);
14585
+ props = injectEditorPath(guardResolvedStyle(props, node.type), node, parsedBinding, scopeContext);
14372
14586
  props = injectMediaSlotPath(props, node, parsedBinding, scopeContext);
14373
14587
  const headingDecorationPlan = planHeadingDecoration({
14374
14588
  node,
@@ -14453,19 +14667,12 @@ function resolveProps(props, context, bindingValue) {
14453
14667
  if (bindingValue !== void 0) resolved.value = bindingValue;
14454
14668
  return resolved;
14455
14669
  }
14456
- function getNodeProps(node) {
14457
- const raw = node;
14458
- const legacy = {};
14459
- for (const [key, value] of Object.entries(raw)) {
14460
- if (key === "type" || key === "key" || key === "children" || key === "props") continue;
14461
- if (key.startsWith("$")) continue;
14462
- legacy[key] = value;
14463
- }
14464
- const props = isPlainObject(node.props) ? node.props : {};
14465
- return {
14466
- ...legacy,
14467
- ...props
14468
- };
14670
+ /** A node's resolved `style` reaches the DOM only through the inline style guard. */
14671
+ function guardResolvedStyle(props, nodeType) {
14672
+ return "style" in props ? {
14673
+ ...props,
14674
+ style: renderedInlineStyle(props.style, nodeType)
14675
+ } : props;
14469
14676
  }
14470
14677
  /**
14471
14678
  * Main entry point for resolving node definitions into React elements.
@@ -14496,12 +14703,12 @@ function bindItemSurfacePresentation(node, context) {
14496
14703
  const slot = resolveProps({ "data-slot": declared }, context, void 0)["data-slot"];
14497
14704
  if (!["item", "lead"].includes(String(slot))) return context;
14498
14705
  const content = context.blockContent;
14499
- if (!isPlainObject(content) || !isPlainObject(content._effectiveLook)) return context;
14706
+ if (!isRecord$4(content) || !isRecord$4(content._effectiveLook)) return context;
14500
14707
  const look = content._effectiveLook;
14501
14708
  if (!look.surfacePresentation) return context;
14502
14709
  const itemScope = context.scopes.reduce((found, scope) => scope.repeater ? scope : found, void 0);
14503
14710
  const repeater = itemScope?.repeater;
14504
- const featured = isPlainObject(itemScope?.value) && itemScope.value.featured === true;
14711
+ const featured = isRecord$4(itemScope?.value) && itemScope.value.featured === true;
14505
14712
  const role = repeater ? itemRole(repeater.index, repeater.count, look.itemRoles, featured) : void 0;
14506
14713
  return {
14507
14714
  ...context,
@@ -14511,14 +14718,14 @@ function bindItemSurfacePresentation(node, context) {
14511
14718
  function arrangementSlotProps(props, context) {
14512
14719
  const content = context.blockContent;
14513
14720
  const slot = props["data-slot"];
14514
- if (typeof slot !== "string" || !isPlainObject(content) || !isPlainObject(content._effectiveLook)) return {};
14721
+ if (typeof slot !== "string" || !isRecord$4(content) || !isRecord$4(content._effectiveLook)) return {};
14515
14722
  const look = content._effectiveLook;
14516
14723
  const surface = (context.surfacePresentation ?? look.surfacePresentation)?.slots[slot];
14517
14724
  return surface ? resolvedItemSurfaceProps(surface, slot, props.style) : { "data-surface": "section" };
14518
14725
  }
14519
14726
  function arrangementMediaPlaceholder(node, context) {
14520
14727
  const content = context.blockContent;
14521
- if (!isPlainObject(content) || content._lookAudience !== "authoring" || content.showPhotos === false) return null;
14728
+ if (!isRecord$4(content) || content._lookAudience !== "authoring" || content.showPhotos === false) return null;
14522
14729
  const from = arrangementPlaceholderMediaPath(node);
14523
14730
  if (!from) return null;
14524
14731
  const fieldPath = arrangementPlaceholderFieldPath(from, context);
@@ -14666,7 +14873,7 @@ function collectNestedPreviewFieldConstraintEntries(field, path) {
14666
14873
  case "text":
14667
14874
  case "time":
14668
14875
  case "url": return [];
14669
- default: return assertNever$1(field);
14876
+ default: return assertNever$3(field);
14670
14877
  }
14671
14878
  }
14672
14879
  /** Share the supplied snapshot with transforms and manifest bindings, including standalone components. */
@@ -15321,7 +15528,7 @@ function offeringsPreviewPhotoCount(listing) {
15321
15528
  case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
15322
15529
  case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
15323
15530
  case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
15324
- default: return assertNever$1(listing);
15531
+ default: return assertNever$3(listing);
15325
15532
  }
15326
15533
  }
15327
15534
  function groupPhotoCount(load) {
@@ -15329,14 +15536,14 @@ function groupPhotoCount(load) {
15329
15536
  case "empty":
15330
15537
  case "failed": return 0;
15331
15538
  case "items": return load.items.filter(hasPhoto).length;
15332
- default: return assertNever$1(load);
15539
+ default: return assertNever$3(load);
15333
15540
  }
15334
15541
  }
15335
15542
  function hasPhoto(item) {
15336
15543
  switch (item.kind) {
15337
15544
  case "event": return Boolean(item.event.presentation?.image);
15338
15545
  case "run": return Boolean(item.run.representative.presentation?.image);
15339
- default: return assertNever$1(item);
15546
+ default: return assertNever$3(item);
15340
15547
  }
15341
15548
  }
15342
15549
  function courseGroupPhotoCount(load) {
@@ -16163,6 +16370,10 @@ function requireEntryBlockOverride(entry, themeResources) {
16163
16370
  function pageEndingAttribute(flow, position) {
16164
16371
  return flow === "main" && (position === "last" || position === "only") ? "" : void 0;
16165
16372
  }
16373
+ /** The block's stored identifier, emitted as its section `id` so `#identifier` links land on it. */
16374
+ function blockAnchorId(block) {
16375
+ return block.identifier || void 0;
16376
+ }
16166
16377
  /**
16167
16378
  * Renders one planned block: its wrapper, style-group data attributes,
16168
16379
  * boundary reserve space and the join markup that follows it.
@@ -16212,6 +16423,7 @@ function renderPlanEntry(input) {
16212
16423
  after: joinAfter
16213
16424
  });
16214
16425
  const blockElement = /* @__PURE__ */ jsx("div", {
16426
+ id: blockAnchorId(block),
16215
16427
  className: wrapperClassName,
16216
16428
  ...arrangementHooksFromContent(renderableContent),
16217
16429
  "data-block": cleanKind,
@@ -16747,7 +16959,7 @@ function solvedInksForThemeRuntime(themeRuntime) {
16747
16959
  case "cms-theme": return "publish";
16748
16960
  case "responsive-only":
16749
16961
  case "none": return "withhold";
16750
- default: return assertNever$1(themeRuntime);
16962
+ default: return assertNever$3(themeRuntime);
16751
16963
  }
16752
16964
  }
16753
16965
  function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
@@ -16762,7 +16974,7 @@ function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
16762
16974
  children
16763
16975
  });
16764
16976
  case "none": return /* @__PURE__ */ jsx(Fragment, { children });
16765
- default: return assertNever$1(themeRuntime);
16977
+ default: return assertNever$3(themeRuntime);
16766
16978
  }
16767
16979
  }
16768
16980
  function renderWithOverrideOnlyRuntime({ runtime, children }) {
@@ -16772,7 +16984,7 @@ function renderWithOverrideOnlyRuntime({ runtime, children }) {
16772
16984
  children
16773
16985
  });
16774
16986
  case "none": return /* @__PURE__ */ jsx(Fragment, { children });
16775
- default: return assertNever$1(runtime);
16987
+ default: return assertNever$3(runtime);
16776
16988
  }
16777
16989
  }
16778
16990
  //#endregion