@riverbankcms/sdk 0.169.0 → 0.170.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 (203) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DpROiz12.d.ts → BlocksIslandsHydrator-B2i5CY_X.d.ts} +1 -1
  2. package/dist/_dts/{Page-DHBBDRC_.d.ts → Page-BSZjbeRK.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-CG7Qib7u.d.ts → SdkPreviewMode-BZpPBMcu.d.ts} +2 -2
  4. package/dist/_dts/{client-MURxFla9.d.ts → client-x82SZgwK.d.ts} +1 -1
  5. package/dist/_dts/{content-types-ClBGjxBV.d.ts → content-types-CODkxsZy.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CHNvzh0y.d.ts → contracts-Lyfhmbjf.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DQM934Fm.d.ts → footerPageOutline-BShG2GAV.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-ConZaEqB.d.ts → generatePageMetadata-DLhUW3xK.d.ts} +2 -2
  9. package/dist/_dts/{index-BaDqRekr.d.ts → index-B7Mq5M6P.d.ts} +4 -4
  10. package/dist/_dts/{index-CovKPftP.d.ts → index-B82pqQAC.d.ts} +2 -2
  11. package/dist/_dts/{index-CiR_oPYT.d.ts → index-BisbMZTW.d.ts} +1 -1
  12. package/dist/_dts/{index-CVB5wgbz.d.ts → index-C3rMEJ5a.d.ts} +2 -2
  13. package/dist/_dts/{index-DDaX-K2D.d.ts → index-CCugONHM.d.ts} +1 -1
  14. package/dist/_dts/{index-rfAssXq0.d.ts → index-CstY6ZMa.d.ts} +3 -3
  15. package/dist/_dts/{index-DCw8LO4M.d.ts → index-DXc_ewhR.d.ts} +1 -1
  16. package/dist/_dts/{loadContent-CRLKVVDP.d.ts → loadContent-BoqtbbhP.d.ts} +7 -7
  17. package/dist/_dts/{request-DeVetKBr.d.ts → request-CJ_ClHLv.d.ts} +39255 -37305
  18. package/dist/_dts/{resolveBlockData-C5KYFeig.d.ts → resolveBlockData-DFExYkJ4.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-D8MZWyNO.d.ts → resolvePageContent-D-WvpC_d.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  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 +5 -5
  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/{types-Fj31kIi2.d.ts → types-990t4t99.d.ts} +7 -7
  54. package/dist/_dts/{types-B4MBlP_B.d.ts → types-CbjK5ZLy.d.ts} +2 -2
  55. package/dist/_dts/{types-OwqfS8Gn.d.ts → types-CpuxuS40.d.ts} +3 -3
  56. package/dist/_dts/{validation-B1Fa8o_b.d.ts → validation-BN95LiS0.d.ts} +4 -4
  57. package/dist/client/BlocksIslandsHydrator-B1Tkg-ZW.mjs +410 -0
  58. package/dist/client/{BookingMailingListNote-y3qWjnOo.mjs → BookingMailingListNote-Br1VyHkP.mjs} +5 -5
  59. package/dist/client/{BookingQuestionFields-DjLjd0vc.mjs → BookingQuestionFields-LLGCWjvU.mjs} +1 -1
  60. package/dist/client/{CalendarNavigationChevron-VM7C2fdh.mjs → CalendarNavigationChevron-CH7z2m47.mjs} +4 -4
  61. package/dist/client/{DemoBookingPortalAccess-C2QCj_Ta.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +3 -3
  62. package/dist/client/{EventCalendar.client-DDjz7tuX.mjs → EventCalendar.client-LXUHJEi7.mjs} +7 -7
  63. package/dist/client/{EventCombined.client-CeYbNsch.mjs → EventCombined.client-DpugEJLB.mjs} +5 -5
  64. package/dist/client/{EventItem-B5J0IeF4.mjs → EventItem-gFuZn-dE.mjs} +7 -6
  65. package/dist/client/{EventListWeekNavigation-eH04D8-V.mjs → EventListWeekNavigation-D-kLg1jQ.mjs} +2 -1
  66. package/dist/client/{EventListing.client-slpvrTrM.mjs → EventListing.client-BNACUaxV.mjs} +3 -3
  67. package/dist/client/{EventListing.view-BYBaElec.mjs → EventListing.view-CtVfe3VG.mjs} +5 -6
  68. package/dist/client/{EventRegistrationPayment-Do7Q0wRG.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +18 -10
  69. package/dist/client/Page-PW4Ojv9r.mjs +29977 -0
  70. package/dist/client/{StepIndicator-BZNUd0-v.mjs → StepIndicator-CR7_0yu4.mjs} +4 -3
  71. package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
  72. package/dist/client/{accordion-BCtVxnDZ.mjs → accordion-DMItWylU.mjs} +6 -1
  73. package/dist/client/{booking-form.client-Cr5G-HHO.mjs → booking-form.client-wd71DG19.mjs} +10 -10
  74. package/dist/client/bookingForm-Cyr2qeS1.mjs +31 -0
  75. package/dist/client/bookings.mjs +4 -4
  76. package/dist/client/{carousel-DW-HgjvT.mjs → carousel-B5-Hzzif.mjs} +7 -9
  77. package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
  78. package/dist/client/{cart-D1zWe4R7.mjs → cart-wlRXnOjO.mjs} +3 -3
  79. package/dist/client/{cart.client-CIfbTLHS.mjs → cart.client-CfpnxTUZ.mjs} +1 -1
  80. package/dist/client/{checkout-fDCNZ3IT.mjs → checkout-Dnu9W8IA.mjs} +3 -3
  81. package/dist/client/{checkout.client-C4l2KjtV.mjs → checkout.client-ovtyXyn0.mjs} +1 -1
  82. package/dist/client/{checkoutUrls-cWL6I-Vz.mjs → checkoutUrls-CY8qywXl.mjs} +1 -1
  83. package/dist/client/client.mjs +40 -12
  84. package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
  85. package/dist/client/{cta-Bj5WHgcv.mjs → cta-CfuyGqXL.mjs} +1 -1
  86. package/dist/client/{demoPortalMagicLink-3uVu3WgG.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
  87. package/dist/client/{display-CT8KMSpH.mjs → display-DDNmyb0z.mjs} +18 -793
  88. package/dist/client/{enhanceHeaderSection-B27KFGDv.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -3
  89. package/dist/client/{event-details.client-CL4Lqz2c.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
  90. package/dist/client/{event-registration.client-Dj3Kyp5X.mjs → event-registration.client-CLBdHUfd.mjs} +12 -11
  91. package/dist/client/{eventCalendar-DGsdSF8J.mjs → eventCalendar-B4VbblGN.mjs} +14 -17
  92. package/dist/client/eventCombined-e2AvbA0u.mjs +25 -0
  93. package/dist/client/{eventDetails-DzMskXYA.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
  94. package/dist/client/eventListing-C0bpAR1t.mjs +26 -0
  95. package/dist/client/eventRegistration-DyseP_sY.mjs +31 -0
  96. package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
  97. package/dist/client/form-Cfl8d6qc.mjs +27 -0
  98. package/dist/client/{form.client-CCl6CpRJ.mjs → form.client-D3_RF29v.mjs} +3 -3
  99. package/dist/client/{form.parts-BOJ1yDDf.mjs → form.parts-DWLf_3PF.mjs} +1 -1
  100. package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
  101. package/dist/client/gifting/client.mjs +1 -1
  102. package/dist/client/{headerSection-q_bEzfhW.mjs → headerSection-CyNGt23J.mjs} +2 -2
  103. package/dist/client/{newsletter-form.client-CiqKAmPs.mjs → newsletter-form.client-IfLup4o0.mjs} +4 -4
  104. package/dist/client/{newsletter-form.parts-x1RzAMNO.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
  105. package/dist/client/newsletterForm-Bn7HVbuq.mjs +27 -0
  106. package/dist/client/portal/client.mjs +5 -5
  107. package/dist/client/{product-detail.client-rWUvpVvZ.mjs → product-detail.client-BXeLqkCE.mjs} +1 -1
  108. package/dist/client/{product-list.client-J0wDOmKv.mjs → product-list.client-C627X8DQ.mjs} +1 -1
  109. package/dist/client/{productDetail-LtCkMrJ0.mjs → productDetail-B-K_hd7Y.mjs} +3 -3
  110. package/dist/client/{productList-C0MLeh-v.mjs → productList-BNZAsfaP.mjs} +3 -3
  111. package/dist/client/{propsDecoder-CAmEkJ6Y.mjs → propsDecoder-Dc8j5i79.mjs} +2 -2
  112. package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
  113. package/dist/client/{registry.server-Bf2YX_4v.mjs → registry.server-CBg2M6Uj.mjs} +352 -288
  114. package/dist/client/rendering/client.mjs +36 -36
  115. package/dist/client/rendering/islandDelivery.flight.mjs +132 -0
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +4 -4
  118. package/dist/client/{routeIslandApiConfig-UdAlnZGQ.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
  119. package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
  120. package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
  121. package/dist/client/{shop-Dkn6EasY.mjs → shop-PgmiVKSV.mjs} +3 -3
  122. package/dist/client/{shop-commerce-bo0Z6kwf.mjs → shop-commerce-DkgvZAQS.mjs} +10 -10
  123. package/dist/client/{shop-commerce-store-Ckxa4_jI.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
  124. package/dist/client/{shop.client-B_GqU6_U.mjs → shop.client-DDFRt6OU.mjs} +10 -10
  125. package/dist/client/{shop.interactive-C6L_Ig5F.mjs → shop.interactive-BH0xDlMF.mjs} +37 -12
  126. package/dist/client/{shopShared-CO1Y8lFd.mjs → shopShared-BEfD0e4m.mjs} +12 -15
  127. package/dist/client/{timetableModel-D62jfOxZ.mjs → timetableModel-GsDrJxxw.mjs} +6 -6
  128. package/dist/client/{useAvailableSlots-CStfVmyY.mjs → useAvailableSlots-GP8tnAVW.mjs} +1 -1
  129. package/dist/client/{useDiscountApply-Ca2pHUDu.mjs → useDiscountApply-Cq07nTyG.mjs} +1 -1
  130. package/dist/client/{useDiscountCodeUi-AEifktGO.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
  131. package/dist/client/{useEventPagination-uxnUWI2v.mjs → useEventPagination-DGl4Jeuz.mjs} +5 -5
  132. package/dist/client/{view-SVnWic7i.mjs → view-CgComegl.mjs} +2 -2
  133. package/dist/client/{view-B6KSxQMO.mjs → view-oToSpu1N.mjs} +3 -3
  134. package/dist/preview-next/chrome.css +4 -0
  135. package/dist/preview-next/client/{ArrangementLookControls-kbdqYkWM.mjs → ArrangementLookControls-DJQrgD5f.mjs} +12 -19
  136. package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
  137. package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
  138. package/dist/preview-next/client/{PreviewEditorSidebar-DI_LhsMQ.mjs → PreviewEditorSidebar-DWU6X6Y-.mjs} +119 -133
  139. package/dist/preview-next/client/{PreviewEditorUI-yyD-ZREP.mjs → PreviewEditorUI-C-X0ptC3.mjs} +7 -39
  140. package/dist/preview-next/client/{PreviewShell-YauP65Gi.mjs → PreviewShell-C1WUNsj9.mjs} +40 -46
  141. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bl7jQMI1.mjs → SdkPreviewModeRuntime-Cs2QFT7k.mjs} +11 -9
  142. package/dist/preview-next/client/{SiteChromeCustomizeButton-CQFRP9aM.mjs → SiteChromeCustomizeButton-CcZ_ERvZ.mjs} +844 -23038
  143. package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
  144. package/dist/preview-next/client/{previewAssistantSlot-DSR0IdAw.mjs → previewAssistantSlot-CSs9S8wr.mjs} +357 -924
  145. package/dist/preview-next/client/{previewChromeSurface-uSnVzeNs.mjs → previewChromeRoot-B2OTurZH.mjs} +52 -14
  146. package/dist/preview-next/client/runtime.mjs +3 -3
  147. package/dist/preview-next/client/{sdk-runtime-6Q0RVJTQ.mjs → sdk-runtime-CBIwYDyi.mjs} +2 -2
  148. package/dist/preview-next/client/{useAutosaveStatus-Cdx3kAGm.mjs → useAutosaveStatus-DoWvGNPA.mjs} +3 -3
  149. package/dist/preview-next/client/{useBlockCustomizeControls-ZrWdhcB6.mjs → useBlockCustomizeControls-WOs8Atje.mjs} +17 -23
  150. package/dist/preview-next/client/{useOpenBlockForSetup-CK-GWb9k.mjs → useOpenBlockForSetup-CipKCK2O.mjs} +1 -1
  151. package/dist/preview-next/container-responsive.css +3050 -0
  152. package/dist/preview-next/editor-base.css +90 -178
  153. package/dist/preview-next/editor-chrome.css +25 -8
  154. package/dist/preview-next/keepAlive.mjs +1 -1
  155. package/dist/preview-next/middleware.mjs +3 -4
  156. package/dist/preview-next/{route-contract-BU1m9SV3.mjs → route-contract-BLYaenrK.mjs} +36 -8
  157. package/dist/server/{Block.shared-4vx7wzxj.mjs → Block.shared-Dx4j9CJT.mjs} +4 -4
  158. package/dist/server/ThemeScopeCore-B0IfeNNZ.mjs +1983 -0
  159. package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
  160. package/dist/server/{bindings-TAQbo2P5.mjs → bindings-C1-MNwwS.mjs} +1 -1
  161. package/dist/server/{client-DzCxEl3L.mjs → client-Djjv-NuA.mjs} +38 -10
  162. package/dist/server/config-validation.mjs +1 -1
  163. package/dist/server/config.mjs +1 -1
  164. package/dist/server/data/resolveBlockData.mjs +1 -1
  165. package/dist/server/index.mjs +2 -2
  166. package/dist/server/{loadContent-BO1M9Hdf.mjs → loadContent-DhraQ_Fi.mjs} +4 -4
  167. package/dist/server/{loadPage-BvWzmZcD.mjs → loadPage-QXSdPSYY.mjs} +2 -2
  168. package/dist/server/next.mjs +6 -6
  169. package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
  170. package/dist/server/{overrideResolution-fxuB1zZg.mjs → overrideResolution-CMNx5tQg.mjs} +1 -1
  171. package/dist/server/page-converter.mjs +1 -1
  172. package/dist/server/{pageRenderPlan-DzduDSqY.mjs → pageRenderPlan-Bv6NbFeM.mjs} +11 -9
  173. package/dist/server/{pageRuntimeSupport-BU8pwTNx.mjs → pageRuntimeSupport-B2laBtff.mjs} +1 -1
  174. package/dist/server/{pageShared-CSOJ8p8E.mjs → pageShared-CE9EBNSH.mjs} +352 -290
  175. package/dist/server/{prebuild-C5ZYo7wA.mjs → prebuild-FBA6Y1K7.mjs} +1 -1
  176. package/dist/server/prebuild.mjs +1 -1
  177. package/dist/server/{prefetchBlockData-BvbxqeKn.mjs → prefetchBlockData-yL2hB2l_.mjs} +2 -2
  178. package/dist/server/{registry-Fv-7D8o2.mjs → registry-Djrj9gWy.mjs} +56 -816
  179. package/dist/server/rendering/components/pageShared.mjs +1 -1
  180. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  181. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  182. package/dist/server/rendering/islandDelivery.script.mjs +19 -0
  183. package/dist/server/rendering/server.mjs +3 -3
  184. package/dist/server/rendering.mjs +7 -7
  185. package/dist/server/{resolveBlockData-xPgkvoWS.mjs → resolveBlockData-CyeIjmqx.mjs} +1 -1
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/theme-bridge.mjs +2 -2
  188. package/dist/server/{validation-DddhgNdb.mjs → validation-Dh8htd6l.mjs} +3 -3
  189. package/dist/server/{version-D_W2mt8w.mjs → version-LMwnoksN.mjs} +1 -1
  190. package/dist/styles/index.css +122 -49
  191. package/package.json +10 -6
  192. package/dist/client/BlocksIslandsHydrator-qq4Vhs7k.mjs +0 -296
  193. package/dist/client/Page-Dv9eIOGr.mjs +0 -52213
  194. package/dist/client/bookingForm-B1Fc62Sl.mjs +0 -34
  195. package/dist/client/eventCombined-DFSVDJ3D.mjs +0 -28
  196. package/dist/client/eventListing-CpFFcAUr.mjs +0 -29
  197. package/dist/client/eventRegistration-BipMUOCw.mjs +0 -34
  198. package/dist/client/form-57k2JQnm.mjs +0 -90
  199. package/dist/client/newsletterForm-Cn7h4zFe.mjs +0 -53
  200. package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
  201. package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
  202. package/dist/server/ThemeScopeCore-C3HLgqBF.mjs +0 -24213
  203. package/dist/client/{context-DQnTyApV.mjs → context-Xhf81Q-c.mjs} +1 -1
@@ -0,0 +1,410 @@
1
+ "use client";
2
+ import { n as subscribeFlightIslands } from "./flightRegistrations-DjYm0Wz6.mjs";
3
+ import { n as containsSurfaceTransport } from "./surfaceTransportMarker-BuwkYxsI.mjs";
4
+ import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
5
+ import { r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
6
+ import { useEffect } from "react";
7
+ //#region src/rendering/islands/deferredVideoEmbeds.ts
8
+ const DEFERRED_IFRAME_SELECTOR = "iframe[data-rb-video-embed-deferred=\"true\"]";
9
+ const WRAPPER_SELECTOR = "[data-rb-video-embed-wrapper=\"true\"]";
10
+ const DEFERRED_SRC_ATTRIBUTE = "data-rb-video-embed-src";
11
+ const LOADED_ATTRIBUTE = "data-rb-video-embed-loaded";
12
+ const OBSERVER_ROOT_MARGIN = "800px";
13
+ let observer = null;
14
+ let observedTargets = /* @__PURE__ */ new WeakMap();
15
+ function enhanceDeferredVideoEmbeds(root = document) {
16
+ const iframes = Array.from(root.querySelectorAll(DEFERRED_IFRAME_SELECTOR));
17
+ if (iframes.length === 0) return;
18
+ if (typeof IntersectionObserver === "undefined") {
19
+ iframes.forEach(loadDeferredIframe);
20
+ return;
21
+ }
22
+ const sharedObserver = getOrCreateObserver();
23
+ iframes.forEach((iframe) => {
24
+ if (iframe.getAttribute("src")) {
25
+ markLoaded(iframe);
26
+ return;
27
+ }
28
+ const target = getObservationTarget(iframe);
29
+ if (observedTargets.has(target)) return;
30
+ observedTargets.set(target, iframe);
31
+ sharedObserver.observe(target);
32
+ });
33
+ }
34
+ function getOrCreateObserver() {
35
+ if (observer) return observer;
36
+ observer = new IntersectionObserver((entries) => {
37
+ for (const entry of entries) {
38
+ if (!entry.isIntersecting) continue;
39
+ const iframe = observedTargets.get(entry.target) ?? findDeferredIframe(entry.target);
40
+ observer?.unobserve(entry.target);
41
+ observedTargets.delete(entry.target);
42
+ if (!iframe) continue;
43
+ loadDeferredIframe(iframe);
44
+ }
45
+ }, { rootMargin: OBSERVER_ROOT_MARGIN });
46
+ return observer;
47
+ }
48
+ function getObservationTarget(iframe) {
49
+ return iframe.closest(WRAPPER_SELECTOR) ?? iframe;
50
+ }
51
+ function findDeferredIframe(target) {
52
+ if (target instanceof HTMLIFrameElement) return target.matches(DEFERRED_IFRAME_SELECTOR) ? target : null;
53
+ return target.querySelector(DEFERRED_IFRAME_SELECTOR);
54
+ }
55
+ function loadDeferredIframe(iframe) {
56
+ if (iframe.getAttribute("src")) {
57
+ markLoaded(iframe);
58
+ return;
59
+ }
60
+ const src = iframe.getAttribute(DEFERRED_SRC_ATTRIBUTE);
61
+ if (!isSafeHttpsUrl(src)) return;
62
+ iframe.setAttribute("src", src);
63
+ markLoaded(iframe);
64
+ }
65
+ function markLoaded(iframe) {
66
+ iframe.removeAttribute("data-rb-video-embed-deferred");
67
+ iframe.setAttribute(LOADED_ATTRIBUTE, "true");
68
+ }
69
+ function isSafeHttpsUrl(value) {
70
+ if (!value) return false;
71
+ try {
72
+ return new URL(value).protocol === "https:";
73
+ } catch {
74
+ return false;
75
+ }
76
+ }
77
+ //#endregion
78
+ //#region src/rendering/islands/hydrateBlocksIslands.ts
79
+ const defaultEnhancerLoaders = {
80
+ accordion: () => import("./accordion-DMItWylU.mjs"),
81
+ headerSection: () => import("./headerSection-CyNGt23J.mjs"),
82
+ carousel: () => import("./carousel-B5-Hzzif.mjs"),
83
+ form: () => import("./form-Cfl8d6qc.mjs"),
84
+ "booking-form": () => import("./bookingForm-Cyr2qeS1.mjs"),
85
+ "event-registration": () => import("./eventRegistration-DyseP_sY.mjs"),
86
+ "event-details": () => import("./eventDetails-DIJYMzVg.mjs"),
87
+ "event-listing": () => import("./eventListing-C0bpAR1t.mjs"),
88
+ "event-calendar": () => import("./eventCalendar-B4VbblGN.mjs"),
89
+ "event-combined": () => import("./eventCombined-e2AvbA0u.mjs"),
90
+ "product-list": () => import("./productList-BNZAsfaP.mjs"),
91
+ "product-detail": () => import("./productDetail-B-K_hd7Y.mjs"),
92
+ "cart": () => import("./cart-wlRXnOjO.mjs"),
93
+ "checkout": () => import("./checkout-Dnu9W8IA.mjs"),
94
+ shop: () => import("./shop-PgmiVKSV.mjs"),
95
+ "newsletter-form": () => import("./newsletterForm-Bn7HVbuq.mjs")
96
+ };
97
+ const DEFAULT_MAX_RETRIES = 2;
98
+ const RETRY_DELAYS_MS = [250, 1e3];
99
+ const EAGER_ISLAND_KINDS = /* @__PURE__ */ new Set([
100
+ "headerSection",
101
+ "event-registration",
102
+ "checkout"
103
+ ]);
104
+ const RETRYABLE_ERROR_PATTERNS = [
105
+ /chunkloaderror/i,
106
+ /loading chunk/i,
107
+ /failed to fetch dynamically imported module/i,
108
+ /importing a module script failed/i
109
+ ];
110
+ const DEFAULT_REQUIRED_ERROR_MESSAGE = "This section failed to load. Please refresh the page.";
111
+ function getNodeEnv() {
112
+ return globalThis.process?.env?.NODE_ENV;
113
+ }
114
+ function shouldShowRequiredFallback(element) {
115
+ return element.dataset.rbIslandRequired === "true";
116
+ }
117
+ function renderRequiredFallback(element) {
118
+ if (!shouldShowRequiredFallback(element)) return;
119
+ const message = element.dataset.rbIslandErrorMessage || DEFAULT_REQUIRED_ERROR_MESSAGE;
120
+ const className = element.dataset.rbIslandErrorClass || "rb-island-error";
121
+ const wrapper = document.createElement("div");
122
+ wrapper.className = className;
123
+ wrapper.setAttribute("role", "alert");
124
+ wrapper.textContent = message;
125
+ element.replaceChildren(wrapper);
126
+ }
127
+ function resolveLoaders(options) {
128
+ if (!options.loaders) return defaultEnhancerLoaders;
129
+ return {
130
+ ...defaultEnhancerLoaders,
131
+ ...options.loaders
132
+ };
133
+ }
134
+ function isIslandKind(value, loaders) {
135
+ return value in loaders;
136
+ }
137
+ async function loadEnhancer(kind, loaders) {
138
+ return loaders[kind]();
139
+ }
140
+ function getIslandPropsScript(root) {
141
+ return root.querySelector("script[type=\"application/json\"][data-rb-island-props]");
142
+ }
143
+ function parseIslandProps(root) {
144
+ const script = getIslandPropsScript(root);
145
+ if (!script) return {};
146
+ const raw = script.textContent ?? "";
147
+ if (!raw.trim()) return {};
148
+ try {
149
+ return JSON.parse(raw);
150
+ } catch (error) {
151
+ if (getNodeEnv() !== "production") console.warn("[sdk:islands] Failed to parse island props JSON", error);
152
+ throw error;
153
+ }
154
+ }
155
+ function isRetryableError(error) {
156
+ if (!error) return false;
157
+ if (error instanceof Error) {
158
+ if (error.name && /chunkloaderror/i.test(error.name)) return true;
159
+ return RETRYABLE_ERROR_PATTERNS.some((pattern) => pattern.test(error.message));
160
+ }
161
+ if (typeof error === "string") return RETRYABLE_ERROR_PATTERNS.some((pattern) => pattern.test(error));
162
+ return false;
163
+ }
164
+ /**
165
+ * Restore owner-produced surfaces before every codec, including custom loaders.
166
+ * The surface resolver is heavy, so callers load it only for props that carry
167
+ * a transport envelope, which keeps it out of the hydrator's first-load graph.
168
+ */
169
+ async function restoreSurfaceTransport(rawProps) {
170
+ const { restoreRuntimeResponse } = await import("./runtimeResponse-D2LT--Gj.mjs");
171
+ return restoreRuntimeResponse(rawProps);
172
+ }
173
+ function decodeLoadedProps(mod, props) {
174
+ if (mod.decode) return mod.decode(props);
175
+ return props;
176
+ }
177
+ const registrations = /* @__PURE__ */ new Map();
178
+ const documentObserver = { current: null };
179
+ const intersectionObserver = { current: null };
180
+ /** The DOM markers are a projection of the phase, for styling, tests and other runtimes. */
181
+ function enterPhase(registration, phase) {
182
+ registration.phase = phase;
183
+ const { dataset } = registration.element;
184
+ if (phase.kind === "mounted") dataset.rbIslandMounted = "true";
185
+ else delete dataset.rbIslandMounted;
186
+ if (phase.kind === "loading") dataset.rbIslandEnhancing = "true";
187
+ else delete dataset.rbIslandEnhancing;
188
+ if (phase.kind === "failed") dataset.rbIslandError = "true";
189
+ else delete dataset.rbIslandError;
190
+ }
191
+ function disposeIsland(registration) {
192
+ const { phase } = registration;
193
+ if (phase.kind === "disposed") return;
194
+ if (phase.kind === "scheduled") intersectionObserver.current?.unobserve(registration.element);
195
+ if (phase.kind === "retrying") clearTimeout(phase.timer);
196
+ enterPhase(registration, { kind: "disposed" });
197
+ registrations.delete(registration.element);
198
+ if (phase.kind === "mounted" && phase.cleanup) queueMicrotask(phase.cleanup);
199
+ if (registrations.size === 0) {
200
+ documentObserver.current?.disconnect();
201
+ documentObserver.current = null;
202
+ intersectionObserver.current?.disconnect();
203
+ intersectionObserver.current = null;
204
+ }
205
+ }
206
+ /** Script islands end when they leave the document; boundary islands that come back resume. */
207
+ function reconcileWithDocument() {
208
+ registrations.forEach((registration) => {
209
+ const connected = registration.element.isConnected;
210
+ if (!connected && registration.owner === "document") disposeIsland(registration);
211
+ else if (connected && registration.phase.kind === "awaitingDocument") scheduleIsland(registration);
212
+ });
213
+ }
214
+ /**
215
+ * Whether enhancement may start. Until it does, the server fallback is untouched, so a
216
+ * detached boundary-owned root can simply wait for the document and start again.
217
+ */
218
+ function admitMountStep(registration, loading) {
219
+ if (registration.phase !== loading) return false;
220
+ if (registration.element.isConnected) return true;
221
+ if (registration.owner === "document") disposeIsland(registration);
222
+ else enterPhase(registration, { kind: "awaitingDocument" });
223
+ return false;
224
+ }
225
+ /**
226
+ * Whether a finished enhancement stands. Enhancing may already have replaced the fallback,
227
+ * so a boundary-owned island keeps what it built, detached or not, until its boundary
228
+ * disposes it. A script island whose root has left the document ends.
229
+ */
230
+ function acceptEnhancement(registration, loading) {
231
+ if (registration.phase !== loading) return false;
232
+ if (registration.owner === "boundary" || registration.element.isConnected) return true;
233
+ disposeIsland(registration);
234
+ return false;
235
+ }
236
+ function handleMountError(registration, loading, error) {
237
+ if (!admitMountStep(registration, loading)) return;
238
+ const { attempt } = loading;
239
+ const { element, kind, options } = registration;
240
+ options.onError?.(error);
241
+ if (getNodeEnv() !== "production") console.warn(`[sdk:islands] Failed to enhance island kind="${kind}"`, error);
242
+ if (attempt <= (options.maxRetries ?? DEFAULT_MAX_RETRIES) && isRetryableError(error)) {
243
+ const delay = RETRY_DELAYS_MS[Math.min(attempt - 1, RETRY_DELAYS_MS.length - 1)];
244
+ enterPhase(registration, {
245
+ kind: "retrying",
246
+ attempt,
247
+ timer: setTimeout(() => {
248
+ mountIsland(registration, attempt + 1);
249
+ }, delay)
250
+ });
251
+ } else {
252
+ enterPhase(registration, { kind: "failed" });
253
+ renderRequiredFallback(element);
254
+ }
255
+ }
256
+ /** The enhancer and the restored props load together; surfaces need restoring only when transported. */
257
+ async function loadIsland(registration) {
258
+ const rawProps = registration.readTransportProps();
259
+ const loaders = resolveLoaders(registration.options);
260
+ const [mod, restoredProps] = containsSurfaceTransport(rawProps) ? await Promise.all([loadEnhancer(registration.kind, loaders), restoreSurfaceTransport(rawProps)]) : [await loadEnhancer(registration.kind, loaders), rawProps];
261
+ return {
262
+ mod,
263
+ restoredProps
264
+ };
265
+ }
266
+ async function mountIsland(registration, attempt = 1) {
267
+ if (registration.phase.kind !== "scheduled" && registration.phase.kind !== "retrying") return;
268
+ const loading = {
269
+ kind: "loading",
270
+ attempt
271
+ };
272
+ enterPhase(registration, loading);
273
+ if (!admitMountStep(registration, loading)) return;
274
+ try {
275
+ const { mod, restoredProps } = await loadIsland(registration);
276
+ if (!admitMountStep(registration, loading)) return;
277
+ const cleanup = await mod.enhance(registration.element, decodeLoadedProps(mod, restoredProps));
278
+ if (!acceptEnhancement(registration, loading)) {
279
+ cleanup?.();
280
+ return;
281
+ }
282
+ enterPhase(registration, {
283
+ kind: "mounted",
284
+ cleanup: cleanup ?? void 0
285
+ });
286
+ } catch (error) {
287
+ handleMountError(registration, loading, error);
288
+ }
289
+ }
290
+ function lazyIslandObserver() {
291
+ if (intersectionObserver.current) return intersectionObserver.current;
292
+ const observer = new IntersectionObserver((entries) => {
293
+ entries.filter((entry) => entry.isIntersecting).forEach((entry) => {
294
+ const registration = registrations.get(entry.target);
295
+ if (registration?.phase.kind !== "scheduled") return;
296
+ observer.unobserve(registration.element);
297
+ mountIsland(registration);
298
+ });
299
+ }, { rootMargin: "200px" });
300
+ intersectionObserver.current = observer;
301
+ return observer;
302
+ }
303
+ function scheduleIsland(registration) {
304
+ enterPhase(registration, { kind: "scheduled" });
305
+ if (EAGER_ISLAND_KINDS.has(registration.kind) || typeof IntersectionObserver === "undefined") {
306
+ mountIsland(registration);
307
+ return;
308
+ }
309
+ lazyIslandObserver().observe(registration.element);
310
+ }
311
+ /** Both deliveries hand their transport to this one lifecycle, once per element. */
312
+ function registerIsland(island, owner, options) {
313
+ const existing = registrations.get(island.element);
314
+ if (existing) return () => disposeIsland(existing);
315
+ const registration = {
316
+ ...island,
317
+ owner,
318
+ options,
319
+ phase: { kind: "scheduled" }
320
+ };
321
+ registrations.set(island.element, registration);
322
+ if (!documentObserver.current) {
323
+ documentObserver.current = new MutationObserver(reconcileWithDocument);
324
+ documentObserver.current.observe(document.documentElement, {
325
+ childList: true,
326
+ subtree: true
327
+ });
328
+ }
329
+ scheduleIsland(registration);
330
+ return () => disposeIsland(registration);
331
+ }
332
+ /** Called by the host bootstrap only; a boundary registration alone stays inert. */
333
+ function subscribeFlightIslandHydration(options = {}) {
334
+ const disposers = /* @__PURE__ */ new Map();
335
+ const unsubscribe = subscribeFlightIslands((event) => {
336
+ if (event.type === "disposed") {
337
+ disposers.get(event.element)?.();
338
+ disposers.delete(event.element);
339
+ return;
340
+ }
341
+ const { element, kind, readTransport } = event.registration;
342
+ if (!isIslandKind(kind, resolveLoaders(options))) return;
343
+ disposers.set(element, registerIsland({
344
+ element,
345
+ kind,
346
+ readTransportProps: readTransport
347
+ }, "boundary", options));
348
+ });
349
+ return () => {
350
+ unsubscribe();
351
+ disposers.forEach((dispose) => dispose());
352
+ };
353
+ }
354
+ function hydrateBlocksIslands(options = {}) {
355
+ const root = options.root ?? document;
356
+ enhanceDeferredVideoEmbeds(root);
357
+ reconcileWithDocument();
358
+ const loaders = resolveLoaders(options);
359
+ Array.from(root.querySelectorAll("[data-rb-island]")).forEach((element) => {
360
+ if (element.dataset.rbIslandDelivery === "flight" || registrations.has(element)) return;
361
+ if (element.dataset.rbIslandMounted === "true" || element.dataset.rbIslandError === "true" || element.dataset.rbIslandEnhancing === "true") return;
362
+ const kind = element.dataset.rbIsland ?? "";
363
+ if (!isIslandKind(kind, loaders)) return;
364
+ registerIsland({
365
+ element,
366
+ kind,
367
+ readTransportProps: () => parseIslandProps(element)
368
+ }, "document", options);
369
+ });
370
+ }
371
+ //#endregion
372
+ //#region src/rendering/islands/BlocksIslandsHydrator.tsx
373
+ let hasStartedGlobalHydration = false;
374
+ let globalObserver = null;
375
+ let globalQueued = false;
376
+ function startGlobalHydration() {
377
+ if (hasStartedGlobalHydration) return;
378
+ hasStartedGlobalHydration = true;
379
+ subscribeFlightIslandHydration();
380
+ const schedule = () => {
381
+ if (globalQueued) return;
382
+ globalQueued = true;
383
+ requestAnimationFrame(() => {
384
+ globalQueued = false;
385
+ hydrateBlocksIslands();
386
+ });
387
+ };
388
+ schedule();
389
+ globalObserver = new MutationObserver(() => {
390
+ schedule();
391
+ });
392
+ globalObserver.observe(document.documentElement, {
393
+ childList: true,
394
+ subtree: true
395
+ });
396
+ }
397
+ function BlocksIslandsHydrator(props = {}) {
398
+ const imageResolveContext = buildResolveImageUrlContext({
399
+ ...props,
400
+ mediaAssets: toBlocksMediaAssets(props.mediaAssets)
401
+ });
402
+ if (props.siteId || props.supabaseUrl || props.mediaAssets?.length) setContextResolveImageUrlContext(imageResolveContext);
403
+ useEffect(() => {
404
+ startGlobalHydration();
405
+ return () => {};
406
+ }, []);
407
+ return null;
408
+ }
409
+ //#endregion
410
+ export { BlocksIslandsHydrator as t };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { Cn as RichText, Mi as requestSignIn, _n as signInReturnPath, fn as clearSignInReturnDrafts, gn as readSignInReturn, hn as nextSignInReturnExpiry, mn as decideSignInReturn, vn as sweepExpiredSignInReturnDrafts } from "./display-CT8KMSpH.mjs";
2
+ import { Cn as RichText, Mi as requestSignIn, _n as signInReturnPath, fn as clearSignInReturnDrafts, gn as readSignInReturn, hn as nextSignInReturnExpiry, mn as decideSignInReturn, vn as sweepExpiredSignInReturnDrafts } from "./display-DDNmyb0z.mjs";
3
3
  import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
4
- import { c as NavigationHandOffPanel } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
5
- import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-DQnTyApV.mjs";
4
+ import { c as NavigationHandOffPanel } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
5
+ import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-Xhf81Q-c.mjs";
6
6
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
7
- import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-DjLjd0vc.mjs";
7
+ import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-LLGCWjvU.mjs";
8
8
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
9
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-3uVu3WgG.mjs";
9
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-DQtwf_s2.mjs";
10
10
  import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
11
11
  import * as React$1 from "react";
12
12
  import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
3
3
  import { l as getInitialFieldValue } from "./creditProducts-CMOmhWm2.mjs";
4
- import { i as BlockApiError } from "./context-DQnTyApV.mjs";
4
+ import { i as BlockApiError } from "./context-Xhf81Q-c.mjs";
5
5
  import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
6
6
  import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
7
7
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Gt as formatEventPrice } from "./shop.interactive-C6L_Ig5F.mjs";
3
- import { Gi as listLookSlot, Jn as formatTime, Rn as eventDateOptions, Ui as listItemPresentation, Xn as resolveEventTimeZone, Yn as groupEventsByDate, er as formatEventRemainingPlaces, or as isEventFull } from "./display-CT8KMSpH.mjs";
2
+ import { Kt as formatEventPrice } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { Gi as listLookSlot, Jn as formatTime, Rn as eventDateOptions, Ui as listItemPresentation, Xn as resolveEventTimeZone, Yn as groupEventsByDate, er as formatEventRemainingPlaces, or as isEventFull } from "./display-DDNmyb0z.mjs";
4
4
  import { Mt as formatDate, Yt as parseBookingLocalDate } from "./noop-B_f7RqLD.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
6
  import { d as formatDateKey, v as isToday } from "./src-xrjaKaCj.mjs";
7
7
  import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
8
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
8
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
9
9
  import { o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
10
- import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-B5J0IeF4.mjs";
10
+ import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-gFuZn-dE.mjs";
11
11
  import "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region ../blocks/src/system/runtime/nodes/events/domain/monthDay.ts
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Ai as leavePage } from "./display-CT8KMSpH.mjs";
2
+ import { Ai as leavePage } from "./display-DDNmyb0z.mjs";
3
3
  import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-B_f7RqLD.mjs";
4
4
  import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
5
- import { i as BlockApiError, n as useBlockApi } from "./context-DQnTyApV.mjs";
5
+ import { i as BlockApiError, n as useBlockApi } from "./context-Xhf81Q-c.mjs";
6
6
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
7
7
  import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
8
8
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
9
9
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
10
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-3uVu3WgG.mjs";
10
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQtwf_s2.mjs";
11
11
  import React, { useCallback, useEffect, useId, useMemo, useReducer, useState } from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region ../core/src/site-terms.ts
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { Dt as buildEventRuntimeFilters, Ht as buildEventListWeek, Ut as eventListWeekDays, ut as buildEventCalendarListingRender } from "./shop.interactive-C6L_Ig5F.mjs";
3
- import { Gn as formatEventHourLabel, Yn as groupEventsByDate } from "./display-CT8KMSpH.mjs";
2
+ import { Ot as buildEventRuntimeFilters, Ut as buildEventListWeek, Wt as eventListWeekDays, dt as buildEventCalendarListingRender } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { Gn as formatEventHourLabel, Yn as groupEventsByDate } from "./display-DDNmyb0z.mjs";
4
4
  import { h as resolveCalendarReadProfile } from "./noop-B_f7RqLD.mjs";
5
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-D62jfOxZ.mjs";
5
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-GsDrJxxw.mjs";
6
6
  import { d as formatDateKey, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
8
- import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-VM7C2fdh.mjs";
9
- import { i as useEventCollectionFilters } from "./useEventPagination-uxnUWI2v.mjs";
10
- import { n as EventListingController } from "./EventListing.client-slpvrTrM.mjs";
11
- import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-CeYbNsch.mjs";
8
+ import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CH7z2m47.mjs";
9
+ import { i as useEventCollectionFilters } from "./useEventPagination-DGl4Jeuz.mjs";
10
+ import { n as EventListingController } from "./EventListing.client-BNACUaxV.mjs";
11
+ import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-DpugEJLB.mjs";
12
12
  import { useEffect, useMemo, useState } from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
14
  //#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Dt as buildEventRuntimeFilters, Et as toError, Ot as getEventRuntimeFiltersKey, _t as eventListingBlockRuntime } from "./shop.interactive-C6L_Ig5F.mjs";
3
- import { Di as getBlockApiReadStage, Fn as buildCalendarViewport, Gi as listLookSlot, In as eventCalendarWeekStart, Jn as formatTime, Rn as eventDateOptions, Yn as groupEventsByDate } from "./display-CT8KMSpH.mjs";
2
+ import { Dt as toError, Ot as buildEventRuntimeFilters, kt as getEventRuntimeFiltersKey, vt as eventListingBlockRuntime } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { Di as getBlockApiReadStage, Fn as buildCalendarViewport, Gi as listLookSlot, In as eventCalendarWeekStart, Jn as formatTime, Rn as eventDateOptions, Yn as groupEventsByDate } from "./display-DDNmyb0z.mjs";
4
4
  import { Jt as getLocalScheduleDate, Mt as formatDate, c as calendarMonthKey, d as calendarWindowBounds, f as calendarWindowMonths$1, ht as calendarMonthDate, l as calendarPageResponseError, m as planCalendarMonthRanges, u as calendarQueryKey } from "./noop-B_f7RqLD.mjs";
5
- import { n as useBlockApi } from "./context-DQnTyApV.mjs";
5
+ import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
6
6
  import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-xrjaKaCj.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
8
- import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-VM7C2fdh.mjs";
8
+ import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CH7z2m47.mjs";
9
9
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
10
10
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
11
11
  import { t as TabBarFragment } from "./TabBarFragment-DkVKtK5a.mjs";
12
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-uxnUWI2v.mjs";
12
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-DGl4Jeuz.mjs";
13
13
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { Ft as CardListLeadDate, Gt as formatEventPrice, It as resolveCardListSchedule, Lt as selectCardListPresentation, Pt as CardListContentPart } from "./shop.interactive-C6L_Ig5F.mjs";
3
- import { Gi as listLookSlot, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, qn as formatEventTimeRange } from "./display-CT8KMSpH.mjs";
4
- import { I as resolveTokenOrCssColorValue, N as isCssColorLiteral, P as resolveOnColorForThemeToken, nt as getTextColorForBackground } from "./accessibleSurfaces-chpD4C2c.mjs";
2
+ import { Ft as CardListContentPart, It as CardListLeadDate, Kt as formatEventPrice, Lt as resolveCardListSchedule, Rt as selectCardListPresentation } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { Gi as listLookSlot, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, qn as formatEventTimeRange } from "./display-DDNmyb0z.mjs";
4
+ import { I as resolveTokenOrCssColorValue, N as isCssColorLiteral, P as resolveOnColorForThemeToken, nt as getTextColorForBackground } from "./accessibleSurfaces-_7jkuinl.mjs";
5
5
  import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
6
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
6
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
7
7
  import React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
@@ -314,7 +314,7 @@ function renderEventItemContentPart({ part, props, facts }) {
314
314
  },
315
315
  presentation: props
316
316
  });
317
- case "action": return renderEventItemAction(props);
317
+ case "action": return renderEventItemAction(props, facts);
318
318
  }
319
319
  }
320
320
  function renderEventItemMeta({ props, facts }) {
@@ -357,8 +357,9 @@ function renderEventItemCategory(props) {
357
357
  })
358
358
  }) : null;
359
359
  }
360
- function renderEventItemAction(props) {
360
+ function renderEventItemAction(props, facts) {
361
361
  const cta = resolveEventCta(props.event, props.buttonText);
362
+ if (cta.hidden && facts.places === cta.label) return null;
362
363
  const slot = props.arrangement === "grid" ? "item-actions" : "action";
363
364
  const link = {
364
365
  href: cta.href,
@@ -1,11 +1,12 @@
1
1
  "use client";
2
- import { Gi as listLookSlot } from "./display-CT8KMSpH.mjs";
2
+ import { Gi as listLookSlot } from "./display-DDNmyb0z.mjs";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
6
6
  function EventListWeekNavigation(props) {
7
7
  return /* @__PURE__ */ jsxs("nav", {
8
8
  ...listLookSlot(props, "navigation"),
9
+ "data-event-week-nav": true,
9
10
  "aria-label": "Event weeks",
10
11
  children: [
11
12
  /* @__PURE__ */ jsx("button", {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Dt as buildEventRuntimeFilters } from "./shop.interactive-C6L_Ig5F.mjs";
3
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-eH04D8-V.mjs";
4
- import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-uxnUWI2v.mjs";
2
+ import { Ot as buildEventRuntimeFilters } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D-kLg1jQ.mjs";
4
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-DGl4Jeuz.mjs";
5
5
  import { useMemo } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Gt as formatEventPrice, Rt as MediaNodeServer, Wt as weekColumnDays } from "./shop.interactive-C6L_Ig5F.mjs";
3
- import { $a as runtimeBoxBackgroundSchema, Gi as listLookSlot, Kn as formatEventNextDateFact, Qa as boxBackgroundSchema, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vn as formatDate, Za as boxBackgroundOverlaySchema, ao as itemRoleValues, io as cardVariantRoleValues, oo as openCardRoleValue, qn as formatEventTimeRange, to as boxlessCardVariantValue, wn as ImagePresets, zn as eventLocalDateKey } from "./display-CT8KMSpH.mjs";
2
+ import { Gt as weekColumnDays, Kt as formatEventPrice, zt as MediaNodeServer } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { $a as runtimeBoxBackgroundSchema, Gi as listLookSlot, Kn as formatEventNextDateFact, Qa as boxBackgroundSchema, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vn as formatDate, Za as boxBackgroundOverlaySchema, ao as itemRoleValues, io as cardVariantRoleValues, oo as openCardRoleValue, qn as formatEventTimeRange, to as boxlessCardVariantValue, wn as ImagePresets, zn as eventLocalDateKey } from "./display-DDNmyb0z.mjs";
4
4
  import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
5
- import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-Bj5WHgcv.mjs";
5
+ import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-CfuyGqXL.mjs";
6
6
  import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DDWfmgpA.mjs";
7
- import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-B5J0IeF4.mjs";
7
+ import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-gFuZn-dE.mjs";
8
8
  import "react";
9
- import { z } from "zod";
10
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import { z } from "zod";
11
11
  z.enum(itemRoleValues);
12
12
  z.enum(cardVariantRoleValues);
13
13
  function isCardVariantRole(value) {
@@ -696,7 +696,6 @@ const EventCompactRow = (props) => props.lookSlots === void 0 ? /* @__PURE__ */
696
696
  as: "article"
697
697
  });
698
698
  const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, showVenue = true }) => {
699
- event.timeZone;
700
699
  const dateRail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
701
700
  const formattedTime = formatEventTimeRange(event, eventDateOptions(event));
702
701
  const price = formatEventPrice(event);