@riverbankcms/sdk 0.180.0 → 0.182.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 (232) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
  2. package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
  4. package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
  5. package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
  8. package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
  9. package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
  10. package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
  11. package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
  12. package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
  13. package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
  14. package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
  15. package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
  16. package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  28. package/dist/_dts/sdk/src/index.d.ts +104 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +83 -52
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  36. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
  54. package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
  55. package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
  56. package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
  57. package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
  59. package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
  60. package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
  61. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  62. package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
  63. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
  65. package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  68. package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
  69. package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
  72. package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
  73. package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
  74. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
  76. package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
  77. package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
  78. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  79. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
  80. package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
  81. package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
  82. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  83. package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
  84. package/dist/client/bookings.mjs +17 -11
  85. package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
  86. package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
  87. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  88. package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
  89. package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
  90. package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
  91. package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
  93. package/dist/client/client.mjs +106 -43
  94. package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
  95. package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
  96. package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
  97. package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
  98. package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
  99. package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
  100. package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
  101. package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
  102. package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
  103. package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
  104. package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
  105. package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
  106. package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +32 -29
  108. package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
  109. package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
  110. package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
  111. package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
  112. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  113. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
  115. package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
  116. package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
  117. package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
  118. package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
  119. package/dist/client/portal/client.mjs +12202 -7166
  120. package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
  121. package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
  122. package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
  123. package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
  124. package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
  125. package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
  126. package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
  127. package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
  128. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  129. package/dist/client/rendering/client.mjs +26 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +16 -8
  132. package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
  133. package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
  136. package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
  137. package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
  138. package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
  139. package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
  140. package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
  141. package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-Al4ooTl_.mjs +164 -0
  144. package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
  145. package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
  146. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  147. package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
  148. package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
  149. package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
  150. package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
  151. package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
  152. package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
  153. package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
  154. package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
  155. package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
  157. package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
  158. package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
  162. package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
  164. package/dist/preview-next/container-responsive.css +203 -174
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
  168. package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
  169. package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
  170. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
  171. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  172. package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
  173. package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
  174. package/dist/server/config-validation.mjs +1 -1
  175. package/dist/server/config.mjs +2 -2
  176. package/dist/server/constants-CeMywaiD.mjs +1485 -0
  177. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
  182. package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
  183. package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
  184. package/dist/server/manifest.mjs +36 -25
  185. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  186. package/dist/server/media-BRmYrnzb.mjs +31 -0
  187. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  188. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
  189. package/dist/server/navigation.mjs +1 -1
  190. package/dist/server/next.mjs +134 -81
  191. package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
  192. package/dist/server/page-converter.mjs +3 -3
  193. package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
  194. package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
  195. package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
  196. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
  197. package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
  198. package/dist/server/portal.mjs +3 -3
  199. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  200. package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
  203. package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +10 -9
  209. package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
  210. package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
  211. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
  214. package/dist/server/theme-bridge.mjs +34 -8
  215. package/dist/server/theme.mjs +2 -2
  216. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  217. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  218. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  219. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  220. package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
  221. package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
  222. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  223. package/dist/styles/index.css +1098 -1885
  224. package/package.json +2 -1
  225. package/dist/_dts/index-B0_2-65A.d.ts +0 -101
  226. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  227. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  228. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  229. package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
  230. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  231. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  232. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -1,32 +1,32 @@
1
1
  "use client";
2
- import { $ as shopBlockRuntime, $t as eventListWeekDays, At as normalizeEventSurfaceScope, B as buildCheckoutInteractiveIslandProps, Bt as getCardOrientation, Cn as formatEventStartingPrice, Ct as buildEventCombinedListingDisplay, Dt as normalizeEventScheduleScope, En as parseMailingListPlacementTargeting, Et as normalizeEventCategoryIds, F as buildGiftingInteractiveIslandProps, H as buildProductListInteractiveIslandProps, Ht as formatBookingSchedulePresentation, I as giftingBlockRuntime, Jt as EventQuickFacts, K as checkoutBlockRuntime, On as DEFAULT_MAILING_LIST_TARGETING, Ot as normalizeEventStaffMemberId, P as occurrenceContextSchema, Qt as buildEventListWeek, R as publicGiftingOffersResponseSchema, Sn as formatEventPriceDisplay, St as buildEventCombinedInteractiveIslandProps, Tn as assessMailingListTargeting, U as buildShopInteractiveIslandProps, Ut as CardListContentPart, V as buildProductDetailInteractiveIslandProps, Vt as getContainerClass, W as cartBlockRuntime, Xt as MediaNodeServer, Y as productDetailBlockRuntime, Z as productListBlockRuntime, Zt as Grid, _n as splitSiteChromePlacementClasses, _t as resolveOfferingsPreviewGroupCta, bn as formatEventPrice, bt as catalogueEventCardProps, ct as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, en as eventWeekGroupingContext, f as eventCalendarBlockRuntime, g as formBlockRuntime, gt as readOfferingsGrouping, h as buildFormInteractiveIslandProps, ht as offeringsListingFor, i as newsletterFormBlockRuntime, jt as normalizeEventVenueId, kt as normalizeEventSurfacePresets, l as buildEventCalendarInteractiveIslandProps, lt as buildOfferingsPreviewListing, mn as staticHeaderChromeRuntime, mt as offeringRunLifecycle, n as buildNewsletterFormInteractiveIslandProps, nt as publicProductsResponseSchema, o as buildEventListingInteractiveIslandProps, pt as normalizeOfferingsPreviewItemLimit, r as newsletterBlockSubmissionMessage, rn as resolveEventSelection, rt as DEFAULT_GROUP_CTA, s as eventListingBlockRuntime, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tt as shopProductPresentation, u as buildEventCalendarListingDisplay, un as recurringScheduleProjectionSchema, ut as groupOfferingRunsByCourse, vn as formatCoursePrice, vt as resolveOfferingsPreviewGroups, wt as eventCombinedBlockRuntime, x as eventRegistrationBlockRuntime, xn as formatEventPriceAmount, xt as listingEventCardProps, y as buildEventRegistrationInteractiveIslandProps, yn as formatEventDepositNote, yt as resolveOfferingsRenderInput, z as buildCartInteractiveIslandProps } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
- import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
- import { $a as RichText, As as publicEventPricingDisplay, Cs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Es as formatBookingPriceDisplay, Fa as formatEventLocation, Ga as getEventAvailabilityStatus, Ia as resolveRuntimeEventDestination, Lo as asPartialObject, Ma as eventOnlinePlace, Ms as publicEventPricingType, Ns as resolveExactOrFreePriceDisplay, Oo as resolvePublicMediaUrl, Os as isPublicEventPricingOptionDisplayable, Pa as eventVenuePlace, Ps as resolvePricingOptionsPriceDisplay, Qa as isBlockButtonRole, Ra as isBookableEvent, Rr as closedRunCopy, Ua as formatTotalCapacity, Ur as resolveEventRegistrationScopedEvents, Va as formatEventRemainingPlaces, Vr as normalizeEventRegistrationPageSurfaceSubject, Wa as getEventAvailability, Xa as BLOCK_BUTTON_ROLE_OPTIONS, Xo as parseAspectRatioValue, Yo as sanitizeHref, ao as formatCalendarTitle, co as formatEventCompactDateRail, ds as orderedLiveRunSessions, eo as buildCalendarViewport, fo as formatEventRunDates, fs as resolveWholeSeriesBookingPhase, go as groupEventsByDate, ho as formatTime, ja as bookingPresentation, ks as publicEventPricingCurrency, lo as formatEventDateParts, ls as CANCELLED_SESSION_STATUS, po as formatEventTimeRange, qa as isEventFull, ri as buildBookingFormInteractiveIslandProps, ro as eventDateOptions, ti as groupPublicEventsByRun, uo as formatEventHourLabel, us as nextLiveRunSessionStartMs, vo as ImagePresets } from "./wizardSteps-CWIQyRIw.mjs";
5
- import { $ as PUBLIC_FILE_FIELD_KINDS, B as normalizeEventCalendarDisplayMode$1, Bt as normalizeLocationAddressText, F as eventCalendarVariantMeaning, H as RichTextDocSchema, Ht as projectPublicLocation, L as isEventCalendarDefaultView, P as eventCalendarListLayoutOptions, Qt as formatDateRange, R as isEventCalendarDisplayMode, T as publicEventsArraySchema, Ut as publicLocationSchema, V as resolveEventCalendarReadPlan, Vt as parseLocationValue, Wt as toLocationCoordinates, Z as runtimeMediaSchema, Zt as formatDate, at as arrangementModes, b as publicPassProductCollectionSchema, dn as compareLocalScheduleDates, en as formatDateTimeRange, et as isDisplayMediaKind, g as calendarWindowPageSchema, ln as toScheduledBookingDateTime, mn as getLocalScheduleDate, pn as getBookingLocalDateKey, qt as trimmedStringOrNull, tt as mediaTypeDiscriminants, vn as toUtcIsoDateTimeString, xn as toBookingTimeZone, y as publicMembershipProductCollectionSchema, yn as resolveBookingBusinessTimeZone, z as isEventCalendarListLayout } from "./src-o7WEvbK1.mjs";
6
- import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
7
- import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-VfP50sYm.mjs";
2
+ import { An as DEFAULT_MAILING_LIST_TARGETING, B as buildCartInteractiveIslandProps, Cn as formatEventPriceAmount, Ct as listingEventCardProps, Dn as assessMailingListTargeting, Et as eventCombinedBlockRuntime, F as buildGiftingInteractiveIslandProps, Ft as normalizeEventStaffMemberId, G as cartBlockRuntime, H as buildProductDetailInteractiveIslandProps, I as giftingBlockRuntime, It as normalizeEventSurfacePresets, Jt as getContainerClass, Lt as normalizeEventSurfaceScope, Nt as normalizeEventCategoryIds, On as parseMailingListPlacementTargeting, P as occurrenceContextSchema, Pt as normalizeEventScheduleScope, Q as productListBlockRuntime, R as publicGiftingOffersResponseSchema, Rt as normalizeEventVenueId, Sn as formatEventPrice, St as catalogueEventCardProps, Tn as formatEventStartingPrice, Tt as buildEventCombinedListingDisplay, U as buildProductListInteractiveIslandProps, V as buildCheckoutInteractiveIslandProps, W as buildShopInteractiveIslandProps, X as productDetailBlockRuntime, Xt as CardListContentPart, Yt as formatBookingSchedulePresentation, an as buildEventListWeek, bn as formatCoursePrice, bt as resolveOfferingsPreviewGroups, dt as groupOfferingRunsByCourse, et as shopBlockRuntime, f as eventCalendarBlockRuntime, fn as recurringScheduleProjectionSchema, g as formBlockRuntime, gn as staticHeaderChromeRuntime, gt as offeringsListingFor, h as buildFormInteractiveIslandProps, ht as offeringRunLifecycle, i as newsletterFormBlockRuntime, in as Grid, it as DEFAULT_GROUP_CTA, l as buildEventCalendarInteractiveIslandProps, lt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, mt as normalizeOfferingsPreviewItemLimit, n as buildNewsletterFormInteractiveIslandProps, nt as shopProductPresentation, o as buildEventListingInteractiveIslandProps, on as eventListWeekDays, q as checkoutBlockRuntime, qt as getCardOrientation, r as newsletterBlockSubmissionMessage, rn as MediaNodeServer, rt as publicProductsResponseSchema, s as eventListingBlockRuntime, sn as eventWeekGroupingContext, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tn as EventQuickFacts, u as buildEventCalendarListingDisplay, un as resolveEventSelection, ut as buildOfferingsPreviewListing, vt as readOfferingsGrouping, wn as formatEventPriceDisplay, wt as buildEventCombinedInteractiveIslandProps, x as eventRegistrationBlockRuntime, xn as formatEventDepositNote, xt as resolveOfferingsRenderInput, y as buildEventRegistrationInteractiveIslandProps, yn as splitSiteChromePlacementClasses, yt as resolveOfferingsPreviewGroupCta, z as DEFAULT_PASS_BUY_BUTTON_TEXT } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
+ import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
4
+ import { C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, En as toBookingTimeZone, F as isEventCalendarDisplayMode, Gt as normalizeLocationAddressText, I as isEventCalendarListLayout, J as runtimeMediaSchema, Jt as publicLocationSchema, Kt as parseLocationValue, L as normalizeEventCalendarDisplayMode$1, M as eventCalendarVariantMeaning, P as isEventCalendarDefaultView, Q as mediaTypeDiscriminants, Qt as trimmedStringOrNull, R as resolveEventCalendarReadPlan, X as PUBLIC_FILE_FIELD_KINDS, Yt as toLocationCoordinates, Z as isDisplayMediaKind, _ as publicMembershipProductCollectionSchema, an as formatDateTimeRange, gn as compareLocalScheduleDates, j as eventCalendarListLayoutOptions, m as calendarWindowPageSchema, mn as toScheduledBookingDateTime, nn as formatDate, nt as arrangementModes, qt as projectPublicLocation, rn as formatDateRange, v as publicPassProductCollectionSchema, vn as getBookingLocalDateKey, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as RichTextDocSchema } from "./src-CmXh3JWs.mjs";
5
+ import { $o as groupEventsByDate, $s as resolveWholeSeriesBookingPhase, Ao as isEventFull, Bo as eventDateOptions, Ci as isDropInPublicEvent, Do as getEventAvailability, Eo as formatTotalCapacity, Fi as buildBookingFormInteractiveIslandProps, Fo as isBlockButtonRole, Go as formatEventCompactDateRail, Ho as formatCalendarTitle, Io as RichText, Ko as formatEventDateParts, Lo as buildCalendarViewport, Ms as sanitizeHref, Ni as groupPublicEventsByRun, No as BLOCK_BUTTON_ROLE_OPTIONS, Ns as parseAspectRatioValue, Oo as getEventAvailabilityStatus, Qo as formatTime, Qs as orderedLiveRunSessions, Sc as resolvePricingOptionsPriceDisplay, Xo as formatEventTimeRange, Xs as CANCELLED_SESSION_STATUS, Yo as formatEventRunDates, Zs as nextLiveRunSessionStartMs, _c as publicEventPricingCurrency, _o as resolveEventCta, bc as publicEventPricingType, bi as resolveEventRegistrationScopedEvents, bo as isBookableEvent, bs as asPartialObject, ds as resolvePublicMediaUrl, fo as eventVenuePlace, gc as isPublicEventPricingOptionDisplayable, go as resolveEventCardBooking, ho as eventDestinationPagePath, lo as bookingPresentation, mc as formatBookingPriceDisplay, pi as closedRunCopy, po as formatEventLocation, qo as formatEventHourLabel, ts as ImagePresets, uc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, uo as eventOnlinePlace, vc as publicEventPricingDisplay, vi as normalizeEventRegistrationPageSurfaceSubject, vo as resolveEventPageLink, wo as formatEventRemainingPlaces, xc as resolveExactOrFreePriceDisplay, yo as resolveRuntimeEventDestination } from "./wizardSteps-B952ify5.mjs";
6
+ import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-DPUD6wjy.mjs";
7
+ import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
8
8
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
9
- import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-BOff1Kk5.mjs";
10
- import { L as compiledRuntimeStyleFieldNames, Zt as arrangementSlotNames, dn as cardVariantRoleValues, i as lookListPresentationSchemaShape, r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
11
- import { D as SYSTEM_BLOCK_KINDS } from "./types-BEaKfam_.mjs";
12
- import { B as resolveThemeColorReferenceValue, G as mergeStyles, H as backgroundColorStyle, K as rgbColorValue, q as textColorStyle, s as serializeSurfaceTree } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
13
- import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-CQHWz5gJ.mjs";
14
- import { S as clsx, _ as FileSpreadsheetIcon, a as ThemedDownloadLink, b as PlusIcon, c as isSemanticIconId, d as CircleMinusIcon, f as CirclePlusIcon, g as FileAudioIcon, h as FileArchiveIcon, i as ThemedButtonLink, l as ArrowDownIcon, r as ThemedButton, s as getIconComponent, u as ChevronDownIcon, v as FileTextIcon, x as SpinnerNode, y as MinusIcon } from "./ThemedButton-CnSa7o-I.mjs";
9
+ import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-GA-hn1qM.mjs";
10
+ import { Qt as arrangementSlotNames, R as compiledRuntimeStyleFieldNames, a as lookListPresentationSchemaShape, fn as cardVariantRoleValues, gn as parseGradientPresetId, i as listLookSlot, n as listItemPresentation, ot as gradientToCss, st as getGradientPreset } from "./noop-jesvJXEE.mjs";
11
+ import { D as SYSTEM_BLOCK_KINDS, T as parseThemeColorToken } from "./types-BEaKfam_.mjs";
12
+ import { H as rgbColorValue, I as resolveThemeColorReferenceValue, R as backgroundColorStyle, U as textColorStyle, V as mergeStyles, s as serializeSurfaceTree } from "./accessibleSurfaces-BogaGutk.mjs";
13
+ import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-BFuqZCfz.mjs";
14
+ import { _ as FileTextIcon, b as SpinnerNode, c as ArrowDownIcon, d as CirclePlusIcon, g as FileSpreadsheetIcon, h as FileAudioIcon, i as ThemedDownloadLink, l as ChevronDownIcon, m as FileArchiveIcon, n as ThemedButton, o as getIconComponent, r as ThemedButtonLink, s as isSemanticIconId, u as CircleMinusIcon, v as MinusIcon, x as clsx, y as PlusIcon } from "./ThemedButton-PFOhXktM.mjs";
15
15
  import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
16
16
  import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
17
- import { t as coerceRichTextDoc } from "./richText-coerce-Z45OLLEX.mjs";
18
- import { _ as resolveEventLinkProps, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
19
- import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-PfYJsEZF.mjs";
17
+ import { t as coerceRichTextDoc } from "./richText-coerce-Bnng7JFA.mjs";
18
+ import { f as formatCourseSessions, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
19
+ import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DdxFG3Ic.mjs";
20
20
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
21
- import { n as BookingPanelArrangement } from "./StepIndicator-DCfdcb7s.mjs";
22
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CXfb7RRy.mjs";
21
+ import { n as BookingPanelArrangement } from "./StepIndicator-B6o5B7g3.mjs";
22
+ import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, l as decideBookedElsewhereDatesPage, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-BTqO7cJl.mjs";
23
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-DsqvuulZ.mjs";
23
24
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
24
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CTBwSpKv.mjs";
25
- import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-CDQvxA4A.mjs";
26
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BlEm_xjq.mjs";
27
- import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DCqorVne.mjs";
28
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-CpNPbPPM.mjs";
29
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-OBqsfT24.mjs";
25
+ import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-DOyZc-DF.mjs";
26
+ import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-Bak93gD2.mjs";
27
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DMryCaNV.mjs";
28
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-C-G6N_MK.mjs";
29
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CH6dGfdn.mjs";
30
30
  import React, { forwardRef } from "react";
31
31
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
32
32
  import { z } from "zod";
@@ -940,6 +940,13 @@ const dataScopeSchema = z.object({
940
940
  from: bindingSchema
941
941
  });
942
942
  const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
943
+ /**
944
+ * A plain `z.object`, so a key it does not list is stripped from the parsed
945
+ * node. For custom-block layouts that strip is part of the protection (issue
946
+ * 1185): the renderer treats unknown top-level keys as props, and only the
947
+ * parsed value has been through the layout gate. Store and render the parsed
948
+ * value, never the raw manifest.
949
+ */
943
950
  const nodeSchema = z.object({
944
951
  type: z.string().min(1, "Node type is required"),
945
952
  key: z.string().optional(),
@@ -950,10 +957,121 @@ const nodeSchema = z.object({
950
957
  $when: conditionSchema.optional(),
951
958
  $scopes: dataScopeSchema.array().optional()
952
959
  });
960
+ const MAX_CUSTOM_LAYOUT_NODES = 1e3;
961
+ const NODE_KEYS = /* @__PURE__ */ new Set([
962
+ "type",
963
+ "key",
964
+ "props",
965
+ "children",
966
+ "$bind",
967
+ "$repeat",
968
+ "$when",
969
+ "$scopes"
970
+ ]);
971
+ const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
972
+ const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
973
+ /** Whether the tree nests deeper than `levels`, looking no further down than that. */
974
+ const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
975
+ /** Nodes in a tree already known to be no deeper than the limit. */
976
+ const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
977
+ /** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
978
+ function customLayoutSizeProblem(layout) {
979
+ if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
980
+ const count = countNodes(layout);
981
+ return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
982
+ }
983
+ /** Keys on a node (or any node below it) that `nodeSchema` would strip. */
984
+ function unknownNodeKeys(node, path) {
985
+ if (!isRawNode(node)) return [];
986
+ return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
987
+ path: [...path, key],
988
+ key
989
+ })), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
990
+ ...path,
991
+ "children",
992
+ index
993
+ ]))];
994
+ }
995
+ function reportRawLayoutShape(layout, ctx) {
996
+ const sizeProblem = customLayoutSizeProblem(layout);
997
+ if (sizeProblem !== null) {
998
+ ctx.addIssue({
999
+ code: "custom",
1000
+ message: sizeProblem,
1001
+ continue: false
1002
+ });
1003
+ return;
1004
+ }
1005
+ unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
1006
+ code: "custom",
1007
+ path: [...path],
1008
+ message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
1009
+ }));
1010
+ }
1011
+ z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
953
1012
  const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
954
1013
  const NodeSchema = nodeSchema;
955
1014
  const NodeTreeSchema = nodeTreeSchema;
956
1015
  //#endregion
1016
+ //#region ../theme-core/src/site-styles/sectionGround.ts
1017
+ /** A section that declares no ground of its own sits on the page background. */
1018
+ const pageGround = { fallback: requireGroundToken("background") };
1019
+ /** A section's declared ground. A non-token fallback is a layout bug, so it throws when the layout is built. */
1020
+ function sectionGround(fallback) {
1021
+ return { fallback: requireGroundToken(fallback) };
1022
+ }
1023
+ /**
1024
+ * The one paint decision for a ground: the background layer paints from it,
1025
+ * and boundary and seam composition classify from it. A colour that is unset
1026
+ * or blank, a gradient with nothing to draw, or no background at all paints
1027
+ * the fallback.
1028
+ */
1029
+ function groundPaint(background, fallback) {
1030
+ const fill = nonBlank(fallback);
1031
+ switch (background?.type) {
1032
+ case "color": {
1033
+ const colour = nonBlank(background.color);
1034
+ return colour ? {
1035
+ kind: "fill",
1036
+ colour
1037
+ } : fillOrBare(fill);
1038
+ }
1039
+ case "gradient": {
1040
+ const gradient = nonBlank(background.gradient) ?? gradientPresetCss(background.gradientPresetId);
1041
+ return gradient ? {
1042
+ kind: "gradient",
1043
+ gradient
1044
+ } : fillOrBare(fill);
1045
+ }
1046
+ case "image":
1047
+ case "video": return {
1048
+ kind: "media",
1049
+ fill
1050
+ };
1051
+ case void 0: return fillOrBare(fill);
1052
+ }
1053
+ }
1054
+ function fillOrBare(colour) {
1055
+ return colour ? {
1056
+ kind: "fill",
1057
+ colour
1058
+ } : { kind: "bare" };
1059
+ }
1060
+ function nonBlank(value) {
1061
+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
1062
+ }
1063
+ function gradientPresetCss(value) {
1064
+ const presetId = parseGradientPresetId(value);
1065
+ if (!presetId) return null;
1066
+ const preset = getGradientPreset(presetId);
1067
+ return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
1068
+ }
1069
+ function requireGroundToken(value) {
1070
+ const token = parseThemeColorToken(value);
1071
+ if (!token) throw new Error(`A section ground must be a theme color token. Received: ${value}`);
1072
+ return token;
1073
+ }
1074
+ //#endregion
957
1075
  //#region ../theme-core/src/accordions/types.ts
958
1076
  /**
959
1077
  * Icon configuration mapping icon styles to Lucide icons and behavior
@@ -1023,6 +1141,168 @@ const ACCORDION_OPEN_ACCENT_THICKNESS = {
1023
1141
  thick: "4px"
1024
1142
  };
1025
1143
  //#endregion
1144
+ //#region ../blocks/src/lib/video.ts
1145
+ /**
1146
+ * Parse a video URL and extract provider and video ID.
1147
+ * Uses URL constructor for safe parsing.
1148
+ *
1149
+ * @param url - Video URL to parse
1150
+ * @returns VideoInfo if valid, null otherwise
1151
+ *
1152
+ * Supported formats:
1153
+ * - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
1154
+ * - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
1155
+ * - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
1156
+ */
1157
+ function parseVideoUrl(url) {
1158
+ if (!url || typeof url !== "string") return null;
1159
+ try {
1160
+ const parsed = new URL(url);
1161
+ const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
1162
+ if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
1163
+ const id = extractYouTubeId(parsed);
1164
+ if (id) return {
1165
+ provider: "youtube",
1166
+ id,
1167
+ url
1168
+ };
1169
+ }
1170
+ if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
1171
+ const id = extractVimeoId(parsed);
1172
+ if (id) return {
1173
+ provider: "vimeo",
1174
+ id,
1175
+ url
1176
+ };
1177
+ }
1178
+ if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
1179
+ const instagram = extractInstagramShortcode(parsed);
1180
+ if (instagram) return {
1181
+ provider: "instagram",
1182
+ id: instagram.shortcode,
1183
+ kind: instagram.kind,
1184
+ url
1185
+ };
1186
+ }
1187
+ return null;
1188
+ } catch {
1189
+ return null;
1190
+ }
1191
+ }
1192
+ /**
1193
+ * Extract YouTube video ID from parsed URL.
1194
+ */
1195
+ function extractYouTubeId(url) {
1196
+ if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
1197
+ const id = url.pathname.slice(1).split("/")[0] ?? "";
1198
+ return isValidYouTubeId(id) ? id : null;
1199
+ }
1200
+ const vParam = url.searchParams.get("v");
1201
+ if (vParam && isValidYouTubeId(vParam)) return vParam;
1202
+ const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
1203
+ if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
1204
+ const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
1205
+ if (embedId && isValidYouTubeId(embedId)) return embedId;
1206
+ const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
1207
+ if (vId && isValidYouTubeId(vId)) return vId;
1208
+ return null;
1209
+ }
1210
+ /**
1211
+ * Validate YouTube video ID format.
1212
+ * YouTube IDs are 11 characters, alphanumeric plus - and _
1213
+ */
1214
+ function isValidYouTubeId(id) {
1215
+ return /^[a-zA-Z0-9_-]{11}$/.test(id);
1216
+ }
1217
+ /**
1218
+ * Extract Vimeo video ID from parsed URL.
1219
+ */
1220
+ function extractVimeoId(url) {
1221
+ const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
1222
+ if (playerId) return playerId;
1223
+ const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
1224
+ if (pathId) return pathId;
1225
+ return null;
1226
+ }
1227
+ function extractInstagramShortcode(url) {
1228
+ const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
1229
+ const rawKind = match?.[1];
1230
+ const shortcode = match?.[2];
1231
+ if (!rawKind || !shortcode) return null;
1232
+ const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
1233
+ if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
1234
+ const kind = normalizedKind;
1235
+ if (!isValidInstagramShortcode(shortcode)) return null;
1236
+ return {
1237
+ kind,
1238
+ shortcode
1239
+ };
1240
+ }
1241
+ function isValidInstagramShortcode(shortcode) {
1242
+ return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
1243
+ }
1244
+ /**
1245
+ * Generate privacy-enhanced embed URL for a video.
1246
+ *
1247
+ * @param info - VideoInfo from parseVideoUrl
1248
+ * @returns Embed URL suitable for iframe src
1249
+ */
1250
+ function getEmbedUrl(info) {
1251
+ switch (info.provider) {
1252
+ case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
1253
+ case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
1254
+ case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
1255
+ }
1256
+ return info.provider;
1257
+ }
1258
+ /**
1259
+ * Generate thumbnail URL for a video.
1260
+ *
1261
+ * @param info - VideoInfo from parseVideoUrl
1262
+ * @returns Thumbnail image URL
1263
+ *
1264
+ * Note: YouTube maxresdefault.jpg may 404 for some videos.
1265
+ * Consider using hqdefault.jpg as a more reliable fallback.
1266
+ */
1267
+ function getThumbnailUrl(info) {
1268
+ switch (info.provider) {
1269
+ case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
1270
+ case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
1271
+ case "instagram": return "";
1272
+ }
1273
+ return info.provider;
1274
+ }
1275
+ function getVideoEmbedLoadingStrategy(provider) {
1276
+ switch (provider) {
1277
+ case "youtube":
1278
+ case "vimeo": return "native-lazy";
1279
+ case "instagram": return "defer-until-near-viewport";
1280
+ }
1281
+ return provider;
1282
+ }
1283
+ /**
1284
+ * Parse URL and get complete embed information.
1285
+ * Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
1286
+ *
1287
+ * @param url - Video URL to parse
1288
+ * @returns EmbedInfo if valid, null otherwise
1289
+ */
1290
+ function getVideoEmbed(url) {
1291
+ const info = parseVideoUrl(url);
1292
+ if (!info) return null;
1293
+ return {
1294
+ ...info,
1295
+ embedUrl: getEmbedUrl(info),
1296
+ thumbnailUrl: getThumbnailUrl(info)
1297
+ };
1298
+ }
1299
+ /**
1300
+ * A video frame's aspect ratio: `16/9`, `4 / 3`, `1.5` or `auto`. The video
1301
+ * node writes the value into a style attribute, so anything else is dropped at
1302
+ * render and refused in a custom-block layout (issue 1185).
1303
+ */
1304
+ const VIDEO_ASPECT_RATIO_PATTERN = /^(?:auto|\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?)$/;
1305
+ //#endregion
1026
1306
  //#region ../blocks/src/system/customize/testimonialCount.ts
1027
1307
  /** The loader consumes the content-stage plan; it never selects a Look. */
1028
1308
  function testimonialLoaderLimit(content) {
@@ -1414,101 +1694,34 @@ function eventScopeQuery(scope) {
1414
1694
  function eventScopeLoaderParam(query, key) {
1415
1695
  return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
1416
1696
  }
1417
- //#endregion
1418
- //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
1419
- const eventWeekReadScope = {
1420
- eventSurface: "custom",
1421
- eventPresets: "class",
1422
- scheduleScope: "any"
1423
- };
1424
- /** The section's event scope comes from resolveEventScope, the same owner readiness uses. */
1425
- const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
1426
- from: "content",
1427
- transforms: [{
1428
- id: "events.scopeParam",
1429
- options: { key }
1430
- }]
1431
- } }]));
1432
- const scopeParams = {
1433
- siteId: { $bind: { from: "$root.siteId" } },
1434
- stage: { $bind: {
1435
- from: "$root.previewStage",
1436
- fallback: "published"
1437
- } },
1438
- ...eventScopeLoaderParams
1439
- };
1440
- /** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
1441
- const eventCalendarDataLoaders = {
1442
- schedule: {
1443
- endpoint: "listPublicRecurringSchedule",
1444
- when: { $bind: {
1445
- from: "content",
1446
- transforms: [{
1447
- id: "events.calendarReadEnabled",
1448
- options: { job: "schedule" }
1449
- }]
1450
- } },
1451
- params: {
1452
- siteId: scopeParams.siteId,
1453
- stage: scopeParams.stage,
1454
- limit: "100",
1455
- detailLevel: "listing",
1456
- readProfile: "compact-list",
1457
- ...eventWeekReadScope
1458
- },
1459
- mode: "server"
1460
- },
1461
- events: {
1462
- endpoint: "listPublicEvents",
1463
- when: { $bind: {
1464
- from: "content",
1465
- transforms: [{
1466
- id: "events.calendarReadEnabled",
1467
- options: { job: "list" }
1468
- }]
1469
- } },
1470
- params: {
1471
- ...scopeParams,
1472
- limit: 100,
1473
- detailLevel: "listing",
1474
- readProfile: "listing-card",
1475
- from: { $bind: {
1476
- from: "$root",
1477
- transforms: [{
1478
- id: "events.calendarListWindow",
1479
- options: { key: "from" }
1480
- }]
1481
- } },
1482
- to: { $bind: {
1483
- from: "$root",
1484
- transforms: [{
1485
- id: "events.calendarListWindow",
1486
- options: { key: "to" }
1487
- }]
1488
- } }
1489
- },
1490
- mode: "server"
1491
- },
1492
- calendarWindow: {
1493
- endpoint: "listPublicEventCalendarWindow",
1494
- when: { $bind: {
1495
- from: "content",
1496
- transforms: [{
1497
- id: "events.calendarReadEnabled",
1498
- options: { job: "calendar" }
1499
- }]
1500
- } },
1501
- params: {
1502
- ...scopeParams,
1503
- limit: 100,
1504
- readProfile: { $bind: {
1505
- from: "content",
1506
- transforms: [{ id: "events.calendarReadProfile" }]
1507
- } }
1508
- },
1509
- mode: "server"
1697
+ const weeklyScheduleRead = {
1698
+ shape: "weeklySchedule",
1699
+ query: {
1700
+ eventSurface: "custom",
1701
+ eventPresets: "class",
1702
+ scheduleScope: "any"
1510
1703
  }
1511
1704
  };
1705
+ /** A recurring schedule section always paints the weekly class schedule. */
1706
+ function recurringScheduleRead() {
1707
+ return weeklyScheduleRead;
1708
+ }
1709
+ /** The events a section's scope selects: the series an author picked, or whatever matches its filters. */
1710
+ function resolveEventScopeRead(content) {
1711
+ return {
1712
+ shape: "events",
1713
+ query: eventScopeQuery(resolveEventScope(content))
1714
+ };
1715
+ }
1716
+ /**
1717
+ * What an events calendar reads, decided by its display mode. Week paints the
1718
+ * fixed class schedule whatever the section's own scope says; every other mode
1719
+ * reads the section's scope. The calendar's loaders, readiness and "which pages
1720
+ * list this event" all take their query from here.
1721
+ */
1722
+ function resolveEventCalendarRead(content) {
1723
+ return resolveEventCalendarReadPlan(content).jobs === "schedule" ? weeklyScheduleRead : resolveEventScopeRead(content);
1724
+ }
1512
1725
  //#endregion
1513
1726
  //#region ../blocks/src/system/blocks/events/eventReadiness.ts
1514
1727
  const eventReadinessResultSchema = z.union([z.array(z.unknown()), recurringScheduleProjectionSchema]).transform((result) => Array.isArray(result) ? result.length > 0 : result.items.length > 0);
@@ -1523,23 +1736,24 @@ function blockChecksForEvents(content) {
1523
1736
  return content.emptyBehavior === "hide" || showsWhenNothingComingUp(content);
1524
1737
  }
1525
1738
  function eventReadinessLoaderKey(content) {
1526
- return resolveEventCalendarReadPlan(content).mode === "week" ? "schedule" : "readinessEvents";
1739
+ return resolveEventCalendarRead(content).shape === "weeklySchedule" ? "schedule" : "readinessEvents";
1527
1740
  }
1528
1741
  /**
1529
- * Week uses its existing projected schedule; other modes ignore displayed date
1530
- * windows but share the render loaders' event scope (see resolveEventScope).
1742
+ * Readiness reads what the calendar's loaders read (resolveEventCalendarRead):
1743
+ * Week its projected schedule, other modes their scope without the displayed
1744
+ * date windows.
1531
1745
  */
1532
1746
  function eventReadinessQuery(content) {
1533
- if (eventReadinessLoaderKey(content) === "schedule") return {
1534
- ...eventWeekReadScope,
1747
+ const read = resolveEventCalendarRead(showsWhenNothingComingUp(content) ? {
1748
+ ...content,
1749
+ eventSelection: "selected"
1750
+ } : content);
1751
+ return read.shape === "weeklySchedule" ? {
1752
+ ...read.query,
1535
1753
  limit: "100"
1536
- };
1537
- return {
1754
+ } : {
1538
1755
  limit: "1",
1539
- ...eventScopeQuery(resolveEventScope(showsWhenNothingComingUp(content) ? {
1540
- ...content,
1541
- eventSelection: "selected"
1542
- } : content))
1756
+ ...read.query
1543
1757
  };
1544
1758
  }
1545
1759
  /** A one-row existence read shares the public event selection and stage contracts. */
@@ -1756,7 +1970,7 @@ function devValidate(node) {
1756
1970
  }
1757
1971
  //#endregion
1758
1972
  //#region ../blocks/src/primitives/layout/Section.tsx
1759
- 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) {
1973
+ const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-look": dataLook, "data-surface": dataSurface, "data-rb-section": geometryHook }, ref) {
1760
1974
  return /* @__PURE__ */ jsx(Comp, {
1761
1975
  ref,
1762
1976
  className: clsx("rb-relative rb-isolate rb-overflow-visible", className),
@@ -1765,6 +1979,7 @@ const Section = forwardRef(function Section({ as: Comp = "section", children, ba
1765
1979
  "data-surface": dataSurface,
1766
1980
  "data-arrangement": dataArrangement,
1767
1981
  "data-look": dataLook,
1982
+ "data-rb-section": geometryHook,
1768
1983
  children
1769
1984
  });
1770
1985
  });
@@ -2128,249 +2343,93 @@ const PUBLIC_DOWNLOAD_MEDIA_TYPES = [
2128
2343
  function isDownloadableMediaType(type) {
2129
2344
  return typeof type === "string" && PUBLIC_DOWNLOAD_MEDIA_TYPES.includes(type);
2130
2345
  }
2131
- function displayFilename(value) {
2132
- const filename = value.filename?.trim();
2133
- if (filename) return filename;
2134
- const alt = value.alt?.trim();
2135
- if (alt) return alt;
2136
- return "File";
2137
- }
2138
- function iconForMediaType(type) {
2139
- switch (type) {
2140
- case "audio": return /* @__PURE__ */ jsx(FileAudioIcon, {
2141
- "aria-hidden": "true",
2142
- size: 24
2143
- });
2144
- case "document": return /* @__PURE__ */ jsx(FileTextIcon, {
2145
- "aria-hidden": "true",
2146
- size: 24
2147
- });
2148
- case "spreadsheet": return /* @__PURE__ */ jsx(FileSpreadsheetIcon, {
2149
- "aria-hidden": "true",
2150
- size: 24
2151
- });
2152
- case "archive": return /* @__PURE__ */ jsx(FileArchiveIcon, {
2153
- "aria-hidden": "true",
2154
- size: 24
2155
- });
2156
- }
2157
- }
2158
- function parseButtonVariant(value) {
2159
- if (value === null || value === void 0) return "primary";
2160
- return isBlockButtonRole(value) ? value : null;
2161
- }
2162
- function FileDownloadNode({ value, title, description, buttonLabel, buttonVariant, className }) {
2163
- if (!value || !isDownloadableMediaType(value.type)) return null;
2164
- const href = resolvePublicMediaUrl(value);
2165
- if (!href) return null;
2166
- const filename = displayFilename(value);
2167
- const heading = title?.trim() || filename;
2168
- const body = description?.trim();
2169
- const label = buttonLabel?.trim() || "Download";
2170
- const variant = parseButtonVariant(buttonVariant);
2171
- if (!variant) {
2172
- console.error("[FileDownloadNode] Invalid button variant", { buttonVariant });
2173
- return null;
2174
- }
2175
- return /* @__PURE__ */ jsx("div", {
2176
- className,
2177
- children: /* @__PURE__ */ jsx("div", {
2178
- className: boxStyleClassNames({ role: "default" }, {}),
2179
- children: /* @__PURE__ */ jsxs("div", {
2180
- className: "rb-flex rb-flex-col rb-gap-4 rb-p-5 rb-sm-flex-row rb-sm-items-center rb-sm-justify-between",
2181
- children: [/* @__PURE__ */ jsxs("div", {
2182
- className: "rb-flex rb-min-w-0 rb-items-start rb-gap-3",
2183
- children: [/* @__PURE__ */ jsx("span", {
2184
- className: "rb-mt-1 rb-flex rb-h-10 rb-w-10 rb-shrink-0 rb-items-center rb-justify-center rb-rounded-full rb-border",
2185
- style: textColorStyle("primary"),
2186
- children: iconForMediaType(value.type)
2187
- }), /* @__PURE__ */ jsxs("div", {
2188
- className: "rb-min-w-0 rb-space-y-1",
2189
- children: [
2190
- /* @__PURE__ */ jsx("h2", {
2191
- className: "rb-m-0 rb-text-lg rb-font-semibold",
2192
- style: textColorStyle("heading"),
2193
- children: heading
2194
- }),
2195
- body ? /* @__PURE__ */ jsx("p", {
2196
- className: "rb-m-0 rb-text-sm",
2197
- style: textColorStyle("mutedText"),
2198
- children: body
2199
- }) : null,
2200
- /* @__PURE__ */ jsx("p", {
2201
- className: "rb-m-0 rb-truncate rb-text-xs",
2202
- style: mergeStyles(textColorStyle("mutedText"), { opacity: .8 }),
2203
- children: filename
2204
- })
2205
- ]
2206
- })]
2207
- }), /* @__PURE__ */ jsx(ThemedDownloadLink, {
2208
- href,
2209
- download: filename,
2210
- variant,
2211
- size: "md",
2212
- extraClassName: "rb-inline-flex rb-shrink-0 rb-items-center rb-justify-center rb-gap-2",
2213
- label
2214
- })]
2215
- })
2216
- })
2217
- });
2218
- }
2219
- //#endregion
2220
- //#region ../blocks/src/lib/video.ts
2221
- /**
2222
- * Parse a video URL and extract provider and video ID.
2223
- * Uses URL constructor for safe parsing.
2224
- *
2225
- * @param url - Video URL to parse
2226
- * @returns VideoInfo if valid, null otherwise
2227
- *
2228
- * Supported formats:
2229
- * - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
2230
- * - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
2231
- * - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
2232
- */
2233
- function parseVideoUrl(url) {
2234
- if (!url || typeof url !== "string") return null;
2235
- try {
2236
- const parsed = new URL(url);
2237
- const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
2238
- if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
2239
- const id = extractYouTubeId(parsed);
2240
- if (id) return {
2241
- provider: "youtube",
2242
- id,
2243
- url
2244
- };
2245
- }
2246
- if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
2247
- const id = extractVimeoId(parsed);
2248
- if (id) return {
2249
- provider: "vimeo",
2250
- id,
2251
- url
2252
- };
2253
- }
2254
- if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
2255
- const instagram = extractInstagramShortcode(parsed);
2256
- if (instagram) return {
2257
- provider: "instagram",
2258
- id: instagram.shortcode,
2259
- kind: instagram.kind,
2260
- url
2261
- };
2262
- }
2263
- return null;
2264
- } catch {
2265
- return null;
2266
- }
2267
- }
2268
- /**
2269
- * Extract YouTube video ID from parsed URL.
2270
- */
2271
- function extractYouTubeId(url) {
2272
- if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
2273
- const id = url.pathname.slice(1).split("/")[0] ?? "";
2274
- return isValidYouTubeId(id) ? id : null;
2275
- }
2276
- const vParam = url.searchParams.get("v");
2277
- if (vParam && isValidYouTubeId(vParam)) return vParam;
2278
- const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
2279
- if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
2280
- const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
2281
- if (embedId && isValidYouTubeId(embedId)) return embedId;
2282
- const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
2283
- if (vId && isValidYouTubeId(vId)) return vId;
2284
- return null;
2285
- }
2286
- /**
2287
- * Validate YouTube video ID format.
2288
- * YouTube IDs are 11 characters, alphanumeric plus - and _
2289
- */
2290
- function isValidYouTubeId(id) {
2291
- return /^[a-zA-Z0-9_-]{11}$/.test(id);
2292
- }
2293
- /**
2294
- * Extract Vimeo video ID from parsed URL.
2295
- */
2296
- function extractVimeoId(url) {
2297
- const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
2298
- if (playerId) return playerId;
2299
- const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
2300
- if (pathId) return pathId;
2301
- return null;
2302
- }
2303
- function extractInstagramShortcode(url) {
2304
- const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
2305
- const rawKind = match?.[1];
2306
- const shortcode = match?.[2];
2307
- if (!rawKind || !shortcode) return null;
2308
- const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
2309
- if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
2310
- const kind = normalizedKind;
2311
- if (!isValidInstagramShortcode(shortcode)) return null;
2312
- return {
2313
- kind,
2314
- shortcode
2315
- };
2316
- }
2317
- function isValidInstagramShortcode(shortcode) {
2318
- return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
2319
- }
2320
- /**
2321
- * Generate privacy-enhanced embed URL for a video.
2322
- *
2323
- * @param info - VideoInfo from parseVideoUrl
2324
- * @returns Embed URL suitable for iframe src
2325
- */
2326
- function getEmbedUrl(info) {
2327
- switch (info.provider) {
2328
- case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
2329
- case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
2330
- case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
2331
- }
2332
- return info.provider;
2333
- }
2334
- /**
2335
- * Generate thumbnail URL for a video.
2336
- *
2337
- * @param info - VideoInfo from parseVideoUrl
2338
- * @returns Thumbnail image URL
2339
- *
2340
- * Note: YouTube maxresdefault.jpg may 404 for some videos.
2341
- * Consider using hqdefault.jpg as a more reliable fallback.
2342
- */
2343
- function getThumbnailUrl(info) {
2344
- switch (info.provider) {
2345
- case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
2346
- case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
2347
- case "instagram": return "";
2348
- }
2349
- return info.provider;
2346
+ function displayFilename(value) {
2347
+ const filename = value.filename?.trim();
2348
+ if (filename) return filename;
2349
+ const alt = value.alt?.trim();
2350
+ if (alt) return alt;
2351
+ return "File";
2350
2352
  }
2351
- function getVideoEmbedLoadingStrategy(provider) {
2352
- switch (provider) {
2353
- case "youtube":
2354
- case "vimeo": return "native-lazy";
2355
- case "instagram": return "defer-until-near-viewport";
2353
+ function iconForMediaType(type) {
2354
+ switch (type) {
2355
+ case "audio": return /* @__PURE__ */ jsx(FileAudioIcon, {
2356
+ "aria-hidden": "true",
2357
+ size: 24
2358
+ });
2359
+ case "document": return /* @__PURE__ */ jsx(FileTextIcon, {
2360
+ "aria-hidden": "true",
2361
+ size: 24
2362
+ });
2363
+ case "spreadsheet": return /* @__PURE__ */ jsx(FileSpreadsheetIcon, {
2364
+ "aria-hidden": "true",
2365
+ size: 24
2366
+ });
2367
+ case "archive": return /* @__PURE__ */ jsx(FileArchiveIcon, {
2368
+ "aria-hidden": "true",
2369
+ size: 24
2370
+ });
2356
2371
  }
2357
- return provider;
2358
2372
  }
2359
- /**
2360
- * Parse URL and get complete embed information.
2361
- * Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
2362
- *
2363
- * @param url - Video URL to parse
2364
- * @returns EmbedInfo if valid, null otherwise
2365
- */
2366
- function getVideoEmbed(url) {
2367
- const info = parseVideoUrl(url);
2368
- if (!info) return null;
2369
- return {
2370
- ...info,
2371
- embedUrl: getEmbedUrl(info),
2372
- thumbnailUrl: getThumbnailUrl(info)
2373
- };
2373
+ function parseButtonVariant(value) {
2374
+ if (value === null || value === void 0) return "primary";
2375
+ return isBlockButtonRole(value) ? value : null;
2376
+ }
2377
+ function FileDownloadNode({ value, title, description, buttonLabel, buttonVariant, className }) {
2378
+ if (!value || !isDownloadableMediaType(value.type)) return null;
2379
+ const href = resolvePublicMediaUrl(value);
2380
+ if (!href) return null;
2381
+ const filename = displayFilename(value);
2382
+ const heading = title?.trim() || filename;
2383
+ const body = description?.trim();
2384
+ const label = buttonLabel?.trim() || "Download";
2385
+ const variant = parseButtonVariant(buttonVariant);
2386
+ if (!variant) {
2387
+ console.error("[FileDownloadNode] Invalid button variant", { buttonVariant });
2388
+ return null;
2389
+ }
2390
+ return /* @__PURE__ */ jsx("div", {
2391
+ className,
2392
+ children: /* @__PURE__ */ jsx("div", {
2393
+ className: boxStyleClassNames({ role: "default" }, {}),
2394
+ children: /* @__PURE__ */ jsxs("div", {
2395
+ className: "rb-flex rb-flex-col rb-gap-4 rb-p-5 rb-sm-flex-row rb-sm-items-center rb-sm-justify-between",
2396
+ children: [/* @__PURE__ */ jsxs("div", {
2397
+ className: "rb-flex rb-min-w-0 rb-items-start rb-gap-3",
2398
+ children: [/* @__PURE__ */ jsx("span", {
2399
+ className: "rb-mt-1 rb-flex rb-h-10 rb-w-10 rb-shrink-0 rb-items-center rb-justify-center rb-rounded-full rb-border",
2400
+ style: textColorStyle("primary"),
2401
+ children: iconForMediaType(value.type)
2402
+ }), /* @__PURE__ */ jsxs("div", {
2403
+ className: "rb-min-w-0 rb-space-y-1",
2404
+ children: [
2405
+ /* @__PURE__ */ jsx("h2", {
2406
+ className: "rb-m-0 rb-text-lg rb-font-semibold",
2407
+ style: textColorStyle("heading"),
2408
+ children: heading
2409
+ }),
2410
+ body ? /* @__PURE__ */ jsx("p", {
2411
+ className: "rb-m-0 rb-text-sm",
2412
+ style: textColorStyle("mutedText"),
2413
+ children: body
2414
+ }) : null,
2415
+ /* @__PURE__ */ jsx("p", {
2416
+ className: "rb-m-0 rb-truncate rb-text-xs",
2417
+ style: mergeStyles(textColorStyle("mutedText"), { opacity: .8 }),
2418
+ children: filename
2419
+ })
2420
+ ]
2421
+ })]
2422
+ }), /* @__PURE__ */ jsx(ThemedDownloadLink, {
2423
+ href,
2424
+ download: filename,
2425
+ variant,
2426
+ size: "md",
2427
+ extraClassName: "rb-inline-flex rb-shrink-0 rb-items-center rb-justify-center rb-gap-2",
2428
+ label
2429
+ })]
2430
+ })
2431
+ })
2432
+ });
2374
2433
  }
2375
2434
  //#endregion
2376
2435
  //#region ../blocks/src/system/runtime/nodes/video-embed.tsx
@@ -2453,10 +2512,10 @@ function getAspectRatio(propAspectRatio, style) {
2453
2512
  return normalizeAspectRatio(propAspectRatio) ?? normalizeAspectRatio(styleAspectRatio) ?? "16/9";
2454
2513
  }
2455
2514
  function normalizeAspectRatio(value) {
2456
- if (typeof value === "number") return value;
2515
+ if (typeof value === "number") return Number.isFinite(value) && value > 0 ? value : void 0;
2457
2516
  if (typeof value === "string") {
2458
2517
  const trimmed = value.trim();
2459
- return trimmed.length > 0 ? trimmed : void 0;
2518
+ return VIDEO_ASPECT_RATIO_PATTERN.test(trimmed) ? trimmed : void 0;
2460
2519
  }
2461
2520
  if (value && typeof value === "object" && "value" in value) return normalizeAspectRatio(value.value);
2462
2521
  }
@@ -3723,6 +3782,10 @@ function selectRelatedDates(input) {
3723
3782
  const dates = input.events.filter((event) => event.seriesId === input.seriesId).filter((event) => isWholeSeries || isFutureOrNow(event.startsAt, input.nowIso)).filter((event) => !selectedOccurrenceId || (event.occurrenceId || event.id) !== selectedOccurrenceId).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
3724
3783
  return isWholeSeries ? dates : dates.slice(0, input.limit);
3725
3784
  }
3785
+ /** The registration panel's own decision, read from the same scoped dates and clock. */
3786
+ function pageBookedElsewhere(events, occurrenceContext, nowIso) {
3787
+ return decideBookedElsewhereDatesPage(events, occurrenceContext?.id ?? null, new Date(nowIso));
3788
+ }
3726
3789
  function selectEventDetails(args) {
3727
3790
  const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
3728
3791
  occurrenceContext: args.occurrenceContext,
@@ -3766,7 +3829,8 @@ function selectEventDetails(args) {
3766
3829
  selected,
3767
3830
  otherDates: otherDates.filter(isOrdinaryEvent),
3768
3831
  timeZone,
3769
- depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso })
3832
+ depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso }),
3833
+ bookedElsewhere: pageBookedElsewhere(all, occurrenceContext, args.nowIso)
3770
3834
  };
3771
3835
  }
3772
3836
  //#endregion
@@ -3922,13 +3986,12 @@ function occurrencePlaces(event) {
3922
3986
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
3923
3987
  /** Live offering data only; editorial cards never acquire booking fields. */
3924
3988
  function eventCardListContent(event, context, buttonText) {
3925
- const { content, external } = cardProjectionBase(event, buttonText, context);
3989
+ const content = cardProjectionBase(event, buttonText, context);
3926
3990
  switch (context.kind) {
3927
3991
  case "event-details": return {
3928
3992
  ...content,
3929
3993
  chips: offeringTypeChips(event),
3930
3994
  leadDate: null,
3931
- newTabHint: false,
3932
3995
  ...offeringSchedule(event)
3933
3996
  };
3934
3997
  case "catalogue":
@@ -3936,7 +3999,6 @@ function eventCardListContent(event, context, buttonText) {
3936
3999
  ...content,
3937
4000
  chips: offeringTypeChips(event, context.typeLabel),
3938
4001
  leadDate: offeringLeadDate(event, context.nextStartMs),
3939
- newTabHint: external,
3940
4002
  ...offeringSchedule(event, context.now),
3941
4003
  ...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
3942
4004
  };
@@ -3946,23 +4008,20 @@ function eventCardListContent(event, context, buttonText) {
3946
4008
  function cardProjectionBase(event, buttonText, context) {
3947
4009
  const offering = context.kind !== "event-details";
3948
4010
  const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
3949
- const titleLink = resolveEventLinkProps(event);
4011
+ const titleLink = resolveEventPageLink(event);
3950
4012
  const { title, runName } = eventDisplayTitle(event);
3951
4013
  return {
3952
- external: cta.external,
3953
- content: {
3954
- id: event.occurrenceId || event.id,
3955
- title,
3956
- subtitle: runName,
3957
- ...titleLink.href ? { titleLink } : {},
3958
- quickFacts: event.facts,
3959
- text: event.presentation?.summary ?? event.description,
3960
- media: event.presentation?.image,
3961
- facts: offeringFacts(event, places?.label, offering),
3962
- availability: places,
3963
- action: cardAction(cta),
3964
- bookingClosed: closed ? cta.label : null
3965
- }
4014
+ id: event.occurrenceId || event.id,
4015
+ title,
4016
+ subtitle: runName,
4017
+ ...titleLink.href ? { titleLink } : {},
4018
+ quickFacts: event.facts,
4019
+ text: event.presentation?.summary ?? event.description,
4020
+ media: event.presentation?.image,
4021
+ facts: offeringFacts(event, places?.label, offering),
4022
+ availability: places,
4023
+ action: cardAction(cta),
4024
+ bookingClosed: closed ? cta.label : null
3966
4025
  };
3967
4026
  }
3968
4027
  /** Offering cards carry the render clock; an event's own details show its projected booking state. */
@@ -4070,7 +4129,7 @@ function offeringFacts(event, places, offering) {
4070
4129
  value: places,
4071
4130
  kind: "availability"
4072
4131
  }] : [],
4073
- ...offering && event.pricing.kind === "external" ? [] : [{
4132
+ ...event.pricing.kind === "external" ? [] : [{
4074
4133
  label: "Price",
4075
4134
  value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
4076
4135
  }]
@@ -4130,7 +4189,11 @@ function regularSessionClock(sessions, event) {
4130
4189
  /** Project selected live data; booking decisions stay with the existing event owners. */
4131
4190
  function eventHeaderContent(selection, show) {
4132
4191
  const event = selection.selected;
4133
- const item = eventCardListContent(event, { kind: "event-details" });
4192
+ const card = eventCardListContent(event, { kind: "event-details" });
4193
+ const item = selection.kind === "ordinary" && selection.bookedElsewhere ? {
4194
+ ...card,
4195
+ ...bookedElsewhereAction(selection.bookedElsewhere)
4196
+ } : card;
4134
4197
  const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
4135
4198
  const { timeRange } = formatEventDateParts({
4136
4199
  startsAt: event.startsAt,
@@ -4146,6 +4209,7 @@ function eventHeaderContent(selection, show) {
4146
4209
  label: "Time",
4147
4210
  value: timeRange
4148
4211
  },
4212
+ ...laterBookingFact(event, selection),
4149
4213
  ...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
4150
4214
  ...groupSize === null ? [] : [{
4151
4215
  label: "Group size",
@@ -4188,11 +4252,72 @@ function headerDateFact(selection) {
4188
4252
  value: date
4189
4253
  };
4190
4254
  }
4255
+ /**
4256
+ * Dates booked elsewhere take the page's shared booking decision, the one the
4257
+ * registration panel shows. A later booking date is named by
4258
+ * `laterBookingFact`, not in the button.
4259
+ */
4260
+ function bookedElsewhereAction(booking) {
4261
+ switch (booking.kind) {
4262
+ case "open": {
4263
+ const { destination } = booking;
4264
+ return {
4265
+ action: {
4266
+ label: destination.label,
4267
+ href: destination.url,
4268
+ external: true
4269
+ },
4270
+ bookingClosed: null
4271
+ };
4272
+ }
4273
+ case "closed": {
4274
+ const label = bookedElsewhereClosedLabel(booking.closure);
4275
+ return {
4276
+ action: { label },
4277
+ bookingClosed: label
4278
+ };
4279
+ }
4280
+ default: return assertNever$1(booking);
4281
+ }
4282
+ }
4283
+ /**
4284
+ * When the shared decision books a later date than the one described (today's
4285
+ * is past its cut-off), say which, so the button isn't read as booking today.
4286
+ * The button keeps the owner's own label ("Find out more", "Book via studio").
4287
+ */
4288
+ function laterBookingFact(described, selection) {
4289
+ const booking = selection.kind === "ordinary" ? selection.bookedElsewhere : null;
4290
+ if (booking?.kind !== "open" || booking.target.occurrenceId === described.occurrenceId) return [];
4291
+ return [{
4292
+ label: "Next date to book",
4293
+ value: shortDate(booking.target)
4294
+ }];
4295
+ }
4296
+ function shortDate(event) {
4297
+ return formatDate({
4298
+ kind: "instant",
4299
+ value: toUtcIsoDateTimeString(event.startsAt)
4300
+ }, eventDateOptions(event), {
4301
+ date: "short",
4302
+ weekday: "short",
4303
+ year: "omit"
4304
+ });
4305
+ }
4306
+ function bookedElsewhereClosedLabel(closure) {
4307
+ switch (closure.kind) {
4308
+ case "bookingClosed": return closure.detail.kind === "opensSoon" ? "Bookings open soon" : "Registration closed";
4309
+ case "date": return closure.closure.kind === "finished" ? "Completed" : "Registration closed";
4310
+ case "run": return closedRunCopy(closure.reason).titleText;
4311
+ case "datesCutOff":
4312
+ case "unavailable": return "Registration closed";
4313
+ default: return assertNever$1(closure);
4314
+ }
4315
+ }
4191
4316
  /** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
4192
4317
  function headerAction(selection, action) {
4193
- if (action.external) return action;
4194
- if (!selection.selected.requiresRegistration) return { label: "No registration required — just show up" };
4195
4318
  if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: closedRunCopy(selection.bookingPhase.reason).titleText };
4319
+ if (action.external) return action;
4320
+ if (isDropInPublicEvent(selection.selected)) return { label: "No registration required — just show up" };
4196
4321
  if (!action.href) return action;
4197
4322
  return {
4198
4323
  ...action,
@@ -4672,7 +4797,7 @@ function OtherEventDates({ selection }) {
4672
4797
  className: "rb-mt-2 rb-tiles-grid",
4673
4798
  children: dates.map((event) => /* @__PURE__ */ jsx("a", {
4674
4799
  className: "rb-tile rb-tile--interactive",
4675
- ...resolveEventLinkProps(event),
4800
+ ...resolveEventPageLink(event),
4676
4801
  children: /* @__PURE__ */ jsx(DateTimeTile, {
4677
4802
  startsAt: event.startsAt,
4678
4803
  endsAt: event.endsAt,
@@ -4707,7 +4832,7 @@ function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
4707
4832
  /** One pricing projection governs the selected panel, including drop-in and whole-series behavior. */
4708
4833
  function selectedEventPricing(selection, showCost) {
4709
4834
  const event = selection.selected;
4710
- const isDropIn = isDropInEvent(event);
4835
+ const isDropIn = isDropInPublicEvent(event);
4711
4836
  const wholeSeriesPricing = wholeSeriesPricingOf(event);
4712
4837
  const showEventCost = showCost && !isDropIn && wholeSeriesPricing === null;
4713
4838
  return {
@@ -4719,7 +4844,6 @@ function selectedEventPricing(selection, showCost) {
4719
4844
  ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
4720
4845
  };
4721
4846
  }
4722
- const isDropInEvent = (event) => event.bookingScope === "single_occurrence" && event.requiresRegistration === false;
4723
4847
  const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
4724
4848
  const isPaid = (event) => publicEventPricingType(event.pricing) !== "free";
4725
4849
  function SelectedEventDetailsView(props) {
@@ -5223,7 +5347,7 @@ function EventQuickDateCard(props) {
5223
5347
  className: "event-quick-date-title",
5224
5348
  children: /* @__PURE__ */ jsx("a", {
5225
5349
  className: "event-title-link",
5226
- ...resolveEventLinkProps(event),
5350
+ ...resolveEventPageLink(event),
5227
5351
  children: event.title
5228
5352
  })
5229
5353
  }),
@@ -6526,7 +6650,7 @@ function runDataFromMaybeArray(events) {
6526
6650
  items: [...groupPublicEventsByRun(events)].map((run) => ({
6527
6651
  kind: "run",
6528
6652
  run,
6529
- path: run.representative.destination.kind === "native" ? run.representative.destination.path : null
6653
+ path: eventDestinationPagePath(run.representative.destination)
6530
6654
  }))
6531
6655
  };
6532
6656
  }
@@ -7706,6 +7830,18 @@ function createBackgroundOverlayNode(path, className = "background-overlay rb-ab
7706
7830
  //#endregion
7707
7831
  //#region ../blocks/src/system/node/fragments/styledSection.ts
7708
7832
  /**
7833
+ * The geometry hook every styled section carries, whatever its Look or skin:
7834
+ * page-level spacing rules (section seams) target it, apart from the Look's
7835
+ * presentation slots, which come and go with the Look.
7836
+ */
7837
+ const styledSectionHook = { "data-rb-section": "" };
7838
+ /**
7839
+ * Where a styled section keeps the ground it declares. A symbol, so it is
7840
+ * never read as a prop, and it survives the spread copies node modifiers
7841
+ * (`when`, `props`) make.
7842
+ */
7843
+ const styledSectionGround = Symbol("styledSectionGround");
7844
+ /**
7709
7845
  * Create a styled section with automatic background layer and spacing bindings.
7710
7846
  *
7711
7847
  * This helper encapsulates the common pattern of:
@@ -7749,30 +7885,51 @@ function createBackgroundOverlayNode(path, className = "background-overlay rb-ab
7749
7885
  */
7750
7886
  function styledSection(config) {
7751
7887
  const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
7888
+ const ground = sectionGround(background);
7752
7889
  const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
7753
7890
  ...config.backgroundLookSlots ? {
7754
7891
  frameSlot: "background",
7755
7892
  imageSlot: "photo"
7756
7893
  } : {},
7757
7894
  imageClassName,
7758
- fallbackToken: background,
7895
+ fallbackToken: ground.fallback,
7759
7896
  omitImageLayer: !renderBackgroundImage,
7760
7897
  imageLoading: backgroundImageLoading,
7761
7898
  imageFetchPriority: backgroundImageFetchPriority
7762
7899
  });
7763
7900
  const childrenArray = Array.isArray(children) ? children : [children];
7764
- return section(sectionAppearanceProps({
7765
- bindFrom,
7766
- background,
7767
- baseClass,
7768
- spacing,
7769
- fullWidthPath,
7770
- photoPaintsGround: renderBackgroundImage,
7771
- skinSlot: config.skinSlot
7772
- }), [renderedBackgroundNode, ...childrenArray]);
7901
+ return {
7902
+ ...section(sectionAppearanceProps({
7903
+ bindFrom,
7904
+ background: ground.fallback,
7905
+ baseClass,
7906
+ spacing,
7907
+ fullWidthPath,
7908
+ photoPaintsGround: renderBackgroundImage,
7909
+ skinSlot: config.skinSlot
7910
+ }), [renderedBackgroundNode, ...childrenArray]),
7911
+ [styledSectionGround]: ground
7912
+ };
7913
+ }
7914
+ function isStyledSectionNode(node) {
7915
+ return styledSectionGround in node;
7916
+ }
7917
+ /**
7918
+ * The ground a block layout's section declares, when its root is a styled
7919
+ * section: then the platform paints the section and owns its padding. Null
7920
+ * for a layout that draws its own root (the header, footer or blog post),
7921
+ * or whose alternative roots declare different grounds.
7922
+ */
7923
+ function layoutSectionGround(layout) {
7924
+ if (!layout) return null;
7925
+ const [first, ...rest] = Array.isArray(layout) ? layout : [layout];
7926
+ if (!first || !isStyledSectionNode(first)) return null;
7927
+ const ground = first[styledSectionGround];
7928
+ return rest.every((root) => isStyledSectionNode(root) && root[styledSectionGround].fallback === ground.fallback) ? ground : null;
7773
7929
  }
7774
7930
  function sectionAppearanceProps(input) {
7775
7931
  return {
7932
+ ...styledSectionHook,
7776
7933
  ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
7777
7934
  "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
7778
7935
  style: { $bind: {
@@ -9811,6 +9968,100 @@ function withEventSelectionVisibility(field) {
9811
9968
  };
9812
9969
  }
9813
9970
  //#endregion
9971
+ //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
9972
+ /** The section's event scope comes from resolveEventScopeRead, the same owner readiness uses. */
9973
+ const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
9974
+ from: "content",
9975
+ transforms: [{
9976
+ id: "events.scopeParam",
9977
+ options: { key }
9978
+ }]
9979
+ } }]));
9980
+ const scopeParams = {
9981
+ siteId: { $bind: { from: "$root.siteId" } },
9982
+ stage: { $bind: {
9983
+ from: "$root.previewStage",
9984
+ fallback: "published"
9985
+ } },
9986
+ ...Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
9987
+ from: "content",
9988
+ transforms: [{
9989
+ id: "events.calendarReadParam",
9990
+ options: { key }
9991
+ }]
9992
+ } }]))
9993
+ };
9994
+ /** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
9995
+ const eventCalendarDataLoaders = {
9996
+ schedule: {
9997
+ endpoint: "listPublicRecurringSchedule",
9998
+ when: { $bind: {
9999
+ from: "content",
10000
+ transforms: [{
10001
+ id: "events.calendarReadEnabled",
10002
+ options: { job: "schedule" }
10003
+ }]
10004
+ } },
10005
+ params: {
10006
+ ...scopeParams,
10007
+ limit: "100",
10008
+ detailLevel: "listing",
10009
+ readProfile: "compact-list"
10010
+ },
10011
+ mode: "server"
10012
+ },
10013
+ events: {
10014
+ endpoint: "listPublicEvents",
10015
+ when: { $bind: {
10016
+ from: "content",
10017
+ transforms: [{
10018
+ id: "events.calendarReadEnabled",
10019
+ options: { job: "list" }
10020
+ }]
10021
+ } },
10022
+ params: {
10023
+ ...scopeParams,
10024
+ limit: 100,
10025
+ detailLevel: "listing",
10026
+ readProfile: "listing-card",
10027
+ from: { $bind: {
10028
+ from: "$root",
10029
+ transforms: [{
10030
+ id: "events.calendarListWindow",
10031
+ options: { key: "from" }
10032
+ }]
10033
+ } },
10034
+ to: { $bind: {
10035
+ from: "$root",
10036
+ transforms: [{
10037
+ id: "events.calendarListWindow",
10038
+ options: { key: "to" }
10039
+ }]
10040
+ } }
10041
+ },
10042
+ mode: "server"
10043
+ },
10044
+ calendarWindow: {
10045
+ endpoint: "listPublicEventCalendarWindow",
10046
+ when: { $bind: {
10047
+ from: "content",
10048
+ transforms: [{
10049
+ id: "events.calendarReadEnabled",
10050
+ options: { job: "calendar" }
10051
+ }]
10052
+ } },
10053
+ params: {
10054
+ ...scopeParams,
10055
+ limit: 100,
10056
+ readProfile: { $bind: {
10057
+ from: "content",
10058
+ transforms: [{ id: "events.calendarReadProfile" }]
10059
+ } }
10060
+ },
10061
+ mode: "server"
10062
+ }
10063
+ };
10064
+ //#endregion
9814
10065
  //#region ../blocks/src/system/blocks/events/event-calendar.ts
9815
10066
  function normalizeEventCalendarContent(content) {
9816
10067
  const record = typeof content === "object" && content !== null ? content : {};
@@ -11937,26 +12188,9 @@ const shopBlockDefinition = {
11937
12188
  description: "The text on the button to buy a pass.",
11938
12189
  required: false,
11939
12190
  multiline: false,
11940
- defaultValue: "Add to cart",
12191
+ defaultValue: DEFAULT_PASS_BUY_BUTTON_TEXT,
11941
12192
  maxLength: 40
11942
12193
  },
11943
- {
11944
- id: "passPurchaseMode",
11945
- type: "select",
11946
- label: "When someone buys a pass",
11947
- description: "Add the pass to their cart, or take them straight to checkout.",
11948
- required: false,
11949
- multiple: false,
11950
- defaultValue: "add_to_cart",
11951
- options: [{
11952
- value: "add_to_cart",
11953
- label: "Add to cart"
11954
- }, {
11955
- value: "buy_now",
11956
- label: "Buy now"
11957
- }],
11958
- ui: { intent: "behavior" }
11959
- },
11960
12194
  {
11961
12195
  id: "subscribeButtonText",
11962
12196
  type: "text",
@@ -12058,11 +12292,7 @@ const shopBlockDefinition = {
12058
12292
  } },
12059
12293
  buyButtonText: { $bind: {
12060
12294
  from: "content.buyButtonText",
12061
- fallback: "Add to cart"
12062
- } },
12063
- passPurchaseMode: { $bind: {
12064
- from: "content.passPurchaseMode",
12065
- fallback: "add_to_cart"
12295
+ fallback: DEFAULT_PASS_BUY_BUTTON_TEXT
12066
12296
  } },
12067
12297
  subscribeButtonText: { $bind: {
12068
12298
  from: "content.subscribeButtonText",
@@ -12461,7 +12691,7 @@ function renderCalendarSsr(display, hydration) {
12461
12691
  }), /* @__PURE__ */ jsxs("div", {
12462
12692
  className: "event-calendar-events",
12463
12693
  children: [day.visibleEntries.map(({ event, timeZone }) => /* @__PURE__ */ jsxs("a", {
12464
- ...resolveEventLinkProps(event),
12694
+ ...resolveEventPageLink(event),
12465
12695
  className: "event-calendar-event",
12466
12696
  title: `${eventDisplayTitleText(event)} at ${formatTime(event.startsAt, eventDateOptions({
12467
12697
  ...event,
@@ -12567,7 +12797,7 @@ function renderTimetableSsr(display, hydration) {
12567
12797
  className: "event-timetable-day-empty",
12568
12798
  children: "No classes"
12569
12799
  }) : day.events.map((cell) => /* @__PURE__ */ jsxs("a", {
12570
- ...resolveEventLinkProps(cell.event),
12800
+ ...resolveEventPageLink(cell.event),
12571
12801
  className: "event-timetable-event",
12572
12802
  title: `${eventDisplayTitleText(cell.event)}, ${cell.timeLabel}`,
12573
12803
  style: {
@@ -13193,4 +13423,4 @@ const serverComponentRegistry = {
13193
13423
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
13194
13424
  };
13195
13425
  //#endregion
13196
- export { WeeklySlotAvailabilityView as $, media as $t, eventRegistrationBlockDefinition as A, lookQuoteLimitTransform as An, desktopOnlyDisplay as At, defineFragment as B, DEFAULT_MEDIA_FIELD_KINDS as Bn, SectionNode as Bt, teamReadiness as C, publicAppointmentPricingSchema as Cn, eventHeaderSlotParents as Ct, loadedReadinessFact as D, resolveBackgroundColorValue as Dn, composeHeaderSectionWrapperClassName as Dt, hiddenFromVisitors as E, getAnchorClasses as En, HeaderSectionFrame as Et, augmentManifest as F, ACCORDION_TRIGGER_FONT_SCALE as Fn, resolveAccordionIconStyle as Ft, parseFieldDefinitions as G, resolveRepeaterGridSpanFieldId as Gn, carousel as Gt, createSiteOptionSelectField as H, parseRepeaterGridInteger as Hn, bind as Ht, formEmbedFragment as I, ACCORDION_TRIGGER_LETTER_SPACING as In, PUBLIC_DOWNLOAD_MEDIA_TYPES as It, sectionHeaderLayoutNodes as J, publicMapLocationParamsSchema as Jn, form as Jt, withApiBindings as K, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Kn, el as Kt, formCopyFragment as L, ICON_CONFIG as Ln, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Lt, checkoutBlockDefinition as M, lookSlot as Mn, accordionItemPartSlots as Mt, cartBlockDefinition as N, ACCORDION_OPEN_ACCENT_THICKNESS as Nn, accordionLookAttributes as Nt, pageTemplateFromEntry as O, lookCarouselRegionTransform as On, markEditableSurfaceForwarding as Ot, createBlockManifest as P, ACCORDION_SPACING_MAP as Pn, accordionIconColorStyle as Pt, backgroundFrame as Q, link as Qt, buildFragmentDataLoaders as R, ICON_SIZE_PX as Rn, FEATURE_CARD_ICON_TREATMENTS as Rt, galleryReadiness as S, publicAppointmentLocationSchema as Sn, lookPartShown as St, admitReadinessFacts as T, BACKGROUND_POSITION_PRESET_VALUES as Tn, buildAppointmentServicesView as Tt, normalizeSelectSource as U, resolveRepeaterGridColumnFieldId as Un, bookingForm as Ut, createSdkSelectField as V, isAcceptedRepeaterGridSpan as Vn, accordionList as Vt, parseFieldDefinition as W, resolveRepeaterGridRowFieldId as Wn, button as Wt, sectionContainer as X, isCanonicalRichTextDoc as Xn, icon as Xt, styledContainer as Y, publicMapLocationResultSchema as Yn, headerSection as Yt, styledSection as Z, inline as Zt, cardListSectionActionFields as _, eventScopeQueryKeys as _n, normalizeLocationMapProps as _t, cardListSectionAction as a, text as an, eventDisplayFields as at, formDataSchema as b, formatAppointmentLocation as bn, resolveLocationMapLocation as bt, newsletterSignupBlockDefinition as c, blockChecksForEvents as cn, containerStylesField as ct, eventListingBlockDefinition as d, eventReadinessQueryKeys as dn, createButtonVariantField as dt, props as en, buildLoadedOfferingsPreviewListing as et, mapDrawingStyleBinding as f, eventReadinessResultSchema as fn, LocationMapSSR as ft, cardListPresentationBindings as g, eventScopeQuery as gn, describeUnresolvedLocationMapLocation as gt, cardListPhotoNumberFields as h, eventScopeLoaderParam as hn, LOCATION_MAP_LOADER_KEYS as ht, shopBlockDefinition as i, stack as in, emptyStateField as it, giftingBlockDefinition as j, lookSkinSlotTransform as jn, mobileOnlyDisplay as jt, unavailableReadinessFact as k, lookLeadSlotTransform as kn, splitPositioningClasses as kt, sanitizeNewsletterSignupPublicContent as l, eventReadinessLoaderKey as ln, sectionStylesField as lt, cardListKnobFields as m, eventDiscoveryFilterKeys as mn, LOCATION_MAP_LIMITS as mt, runtimeBackedBlockModes as n, richText as nn, cardStylingFields as nt, productListBlockDefinition as o, videoEmbed as on, layoutField as ot, eventCalendarBlockDefinition as p, eventWeekReadScope as pn, LOCATION_MAP_DEFAULTS as pt, sectionHeaderFields as q, linkSchema as qn, fileDownload as qt, runtimeBackedBlockServerEntries as r, section as rn, columnsField as rt, productDetailBlockDefinition as s, when as sn, cardStylesField as st, serverComponentRegistry as t, repeat as tn, offeringCourseSlotParents as tt, normalizeMailingListBlockContent as u, eventReadinessQuery as un, createButtonGroup as ut, normalizeCardListContent as v, resolveEventScope as vn, normalizeLocationMapSource as vt, testimonialsReadiness as w, teamMemberCardBiographyFallback as wn, resolveEventDetailsPresentation as wt, chosenString as x, formatAppointmentPrice as xn, EventDetailsView as xt, formBlockDefinition as y, formatAppointmentDuration as yn, parseLocationMapLoaderResult as yt, composeFragments as z, bindingSchema as zn, parseBlockIconValue as zt };
13426
+ export { backgroundFrame as $, publicMapLocationResultSchema as $n, link as $t, eventRegistrationBlockDefinition as A, lookCarouselRegionTransform as An, splitPositioningClasses as At, defineFragment as B, ICON_SIZE_PX as Bn, parseBlockIconValue as Bt, teamReadiness as C, formatAppointmentPrice as Cn, lookPartShown as Ct, loadedReadinessFact as D, BACKGROUND_POSITION_PRESET_VALUES as Dn, HeaderSectionFrame as Dt, hiddenFromVisitors as E, teamMemberCardBiographyFallback as En, buildAppointmentServicesView as Et, augmentManifest as F, ACCORDION_OPEN_ACCENT_THICKNESS as Fn, accordionIconColorStyle as Ft, parseFieldDefinitions as G, isAcceptedRepeaterGridSpan as Gn, button as Gt, createSiteOptionSelectField as H, pageGround as Hn, accordionList as Ht, formEmbedFragment as I, ACCORDION_SPACING_MAP as In, resolveAccordionIconStyle as It, sectionHeaderLayoutNodes as J, resolveRepeaterGridRowFieldId as Jn, fileDownload as Jt, withApiBindings as K, parseRepeaterGridInteger as Kn, carousel as Kt, formCopyFragment as L, ACCORDION_TRIGGER_FONT_SCALE as Ln, PUBLIC_DOWNLOAD_MEDIA_TYPES as Lt, checkoutBlockDefinition as M, lookQuoteLimitTransform as Mn, mobileOnlyDisplay as Mt, cartBlockDefinition as N, lookSkinSlotTransform as Nn, accordionItemPartSlots as Nt, pageTemplateFromEntry as O, getAnchorClasses as On, composeHeaderSectionWrapperClassName as Ot, createBlockManifest as P, lookSlot as Pn, accordionLookAttributes as Pt, styledSection as Q, publicMapLocationParamsSchema as Qn, inline as Qt, buildFragmentDataLoaders as R, ACCORDION_TRIGGER_LETTER_SPACING as Rn, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Rt, galleryReadiness as S, formatAppointmentLocation as Sn, EventDetailsView as St, admitReadinessFacts as T, publicAppointmentPricingSchema as Tn, resolveEventDetailsPresentation as Tt, normalizeSelectSource as U, bindingSchema as Un, bind as Ut, createSdkSelectField as V, groundPaint as Vn, SectionNode as Vt, parseFieldDefinition as W, DEFAULT_MEDIA_FIELD_KINDS as Wn, bookingForm as Wt, sectionContainer as X, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Xn, headerSection as Xt, styledContainer as Y, resolveRepeaterGridSpanFieldId as Yn, form as Yt, layoutSectionGround as Z, linkSchema as Zn, icon as Zt, cardListSectionActionFields as _, eventDiscoveryFilterKeys as _n, describeUnresolvedLocationMapLocation as _t, cardListSectionAction as a, stack as an, emptyStateField as at, formDataSchema as b, resolveEventScope as bn, parseLocationMapLoaderResult as bt, newsletterSignupBlockDefinition as c, when as cn, cardStylesField as ct, eventListingBlockDefinition as d, eventReadinessQuery as dn, createButtonGroup as dt, media as en, isCanonicalRichTextDoc as er, WeeklySlotAvailabilityView as et, mapDrawingStyleBinding as f, eventReadinessQueryKeys as fn, createButtonVariantField as ft, cardListPresentationBindings as g, resolveEventScopeRead as gn, LOCATION_MAP_LOADER_KEYS as gt, cardListPhotoNumberFields as h, resolveEventCalendarRead as hn, LOCATION_MAP_LIMITS as ht, shopBlockDefinition as i, section as in, columnsField as it, giftingBlockDefinition as j, lookLeadSlotTransform as jn, desktopOnlyDisplay as jt, unavailableReadinessFact as k, resolveBackgroundColorValue as kn, markEditableSurfaceForwarding as kt, sanitizeNewsletterSignupPublicContent as l, blockChecksForEvents as ln, containerStylesField as lt, cardListKnobFields as m, recurringScheduleRead as mn, LOCATION_MAP_DEFAULTS as mt, runtimeBackedBlockModes as n, repeat as nn, offeringCourseSlotParents as nt, productListBlockDefinition as o, text as on, eventDisplayFields as ot, eventCalendarBlockDefinition as p, eventReadinessResultSchema as pn, LocationMapSSR as pt, sectionHeaderFields as q, resolveRepeaterGridColumnFieldId as qn, el as qt, runtimeBackedBlockServerEntries as r, richText as rn, cardStylingFields as rt, productDetailBlockDefinition as s, videoEmbed as sn, layoutField as st, serverComponentRegistry as t, props as tn, buildLoadedOfferingsPreviewListing as tt, normalizeMailingListBlockContent as u, eventReadinessLoaderKey as un, sectionStylesField as ut, normalizeCardListContent as v, eventScopeLoaderParam as vn, normalizeLocationMapProps as vt, testimonialsReadiness as w, publicAppointmentLocationSchema as wn, eventHeaderSlotParents as wt, chosenString as x, formatAppointmentDuration as xn, resolveLocationMapLocation as xt, formBlockDefinition as y, eventScopeQueryKeys as yn, normalizeLocationMapSource as yt, composeFragments as z, ICON_CONFIG as zn, FEATURE_CARD_ICON_TREATMENTS as zt };