@riverbankcms/sdk 0.168.0 → 0.169.1

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 (211) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CiD_VVGM.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-BhCfStX1.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
  4. package/dist/_dts/{client-C8mfUxrJ.d.ts → client-BZMn4Y99.d.ts} +39 -397
  5. package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-DjYsGY3B.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
  9. package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BR0i0c3G.d.ts} +4 -4
  10. package/dist/_dts/{index-Bpr-wT5k.d.ts → index-BV-qVnt7.d.ts} +2 -2
  11. package/dist/_dts/{index-C7_Rz8EY.d.ts → index-BYYhTQ_b.d.ts} +3 -3
  12. package/dist/_dts/{index-Vh8B9FSa.d.ts → index-BzguBJzR.d.ts} +1 -1
  13. package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
  14. package/dist/_dts/{index-Cx2BQlHL.d.ts → index-NaRauKDR.d.ts} +1 -1
  15. package/dist/_dts/{index-vR3p9Bu-.d.ts → index-QIbYMeI7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
  17. package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DssgRQSm.d.ts} +9558 -7863
  18. package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-DIuwuFA7.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-BB33-Spd.d.ts → types-DrAWDtqR.d.ts} +3 -3
  54. package/dist/_dts/{types-BVFXYtRg.d.ts → types-Z388-GR1.d.ts} +7 -7
  55. package/dist/_dts/{types-FOsJ-KYb.d.ts → types-cObpvZGF.d.ts} +2 -2
  56. package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-hLr8zVrc.d.ts} +4 -4
  57. package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
  58. package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-Br1VyHkP.mjs} +17 -6
  59. package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-LLGCWjvU.mjs} +3 -3
  60. package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +7 -7
  61. package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +65 -9
  62. package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-ucgdMS35.mjs} +9 -9
  63. package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-BEdfJGpx.mjs} +7 -7
  64. package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-OpLehMpT.mjs} +4 -4
  65. package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
  66. package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
  67. package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BCvRqU86.mjs} +6 -6
  68. package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +132 -62
  69. package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
  70. package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
  71. package/dist/client/{Page-D_M2Vxz3.mjs → Page-Bu5TJU3L.mjs} +53 -22
  72. package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-CR7_0yu4.mjs} +5 -4
  73. package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
  74. package/dist/client/{accordion-DE7OG--d.mjs → accordion-DMItWylU.mjs} +6 -1
  75. package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-wd71DG19.mjs} +505 -217
  76. package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-Cyr2qeS1.mjs} +17 -17
  77. package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
  78. package/dist/client/bookings.mjs +16 -13
  79. package/dist/client/{carousel-DZyUdnFh.mjs → carousel-B5-Hzzif.mjs} +7 -9
  80. package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
  81. package/dist/client/{cart-D7HkkNwe.mjs → cart-B-M5l__W.mjs} +3 -3
  82. package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-COAP4CEy.mjs} +1 -1
  83. package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-ZHc8GfaG.mjs} +3 -3
  84. package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-DRralR3e.mjs} +1 -1
  85. package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-CY8qywXl.mjs} +3 -2
  86. package/dist/client/client.mjs +87 -4
  87. package/dist/client/{context-DXmIbXCK.mjs → context-Xhf81Q-c.mjs} +25 -3
  88. package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
  89. package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
  90. package/dist/client/{cta-DP_IBnq3.mjs → cta-CfuyGqXL.mjs} +2 -2
  91. package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
  93. package/dist/client/{wizardSteps-CFulHWnT.mjs → display-DDNmyb0z.mjs} +920 -870
  94. package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -2
  95. package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
  96. package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-CLBdHUfd.mjs} +59 -18
  97. package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
  98. package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
  99. package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
  100. package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
  101. package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-DyseP_sY.mjs} +19 -19
  102. package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
  103. package/dist/client/{form-DgQqm7T2.mjs → form-RTqunrpz.mjs} +9 -14
  104. package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-D3_RF29v.mjs} +4 -4
  105. package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-DWLf_3PF.mjs} +1 -1
  106. package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +2 -2
  108. package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-CyNGt23J.mjs} +2 -2
  109. package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs} +5 -5
  110. package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
  111. package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
  112. package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
  113. package/dist/client/portal/client.mjs +21 -13
  114. package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
  115. package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-c-777ohj.mjs} +1 -1
  116. package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-hXttfQhE.mjs} +3 -3
  117. package/dist/client/{productList-B8o5AOMX.mjs → productList-BPsYP_jA.mjs} +3 -3
  118. package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-Dc8j5i79.mjs} +3 -3
  119. package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
  120. package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-CMrdUGGv.mjs} +338 -289
  121. package/dist/client/rendering/client.mjs +39 -39
  122. package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +5 -5
  125. package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
  127. package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
  128. package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
  129. package/dist/client/{shop-rRXplPGZ.mjs → shop-Ds47onRS.mjs} +3 -3
  130. package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-B3PyRHaN.mjs} +12 -12
  131. package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
  132. package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-RljK0qPB.mjs} +110 -31
  133. package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-BH0xDlMF.mjs} +42 -533
  134. package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-BEfD0e4m.mjs} +12 -15
  135. package/dist/client/src-BozhJ43Z.mjs +3 -0
  136. package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
  137. package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-BG7Ejxdr.mjs} +12 -12
  138. package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-GP8tnAVW.mjs} +3 -3
  139. package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Cq07nTyG.mjs} +5 -3
  140. package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
  141. package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-spj7sGQP.mjs} +6 -6
  142. package/dist/client/{view-L_mkgtnk.mjs → view-aAP2WbCR.mjs} +2 -3
  143. package/dist/client/{view-448wvvEY.mjs → view-oToSpu1N.mjs} +7 -7
  144. package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-CoWdilcI.mjs} +7 -7
  145. package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
  146. package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
  147. package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +201 -151
  148. package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
  149. package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
  150. package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +12 -9
  151. package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +1418 -598
  152. package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
  153. package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +684 -930
  154. package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
  155. package/dist/preview-next/client/runtime.mjs +3 -3
  156. package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
  157. package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
  158. package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
  159. package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
  160. package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
  161. package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-BpZnBznt.mjs} +1 -1
  162. package/dist/preview-next/keepAlive.mjs +1 -1
  163. package/dist/preview-next/middleware.mjs +3 -4
  164. package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-jc2Bug-h.mjs} +83 -0
  165. package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-BHgQjX16.mjs} +4 -4
  166. package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +31 -5
  167. package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
  168. package/dist/server/{bindings-DLoZYUxG.mjs → bindings-CAbTvrCZ.mjs} +1 -1
  169. package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
  170. package/dist/server/{client-Bc8jI8zN.mjs → client-C-asG6Cf.mjs} +85 -2
  171. package/dist/server/config-validation.mjs +1 -1
  172. package/dist/server/config.mjs +1 -1
  173. package/dist/server/data/resolveBlockData.mjs +1 -1
  174. package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
  175. package/dist/server/index.mjs +2 -2
  176. package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-DKerbSnI.mjs} +4 -4
  177. package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-XgtQR90Z.mjs} +2 -2
  178. package/dist/server/next.mjs +6 -6
  179. package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
  180. package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
  181. package/dist/server/page-converter.mjs +1 -1
  182. package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DQAo35og.mjs} +9 -8
  183. package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +2 -2
  184. package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-7mPhqqXX.mjs} +345 -289
  185. package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
  186. package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C0m4KOT9.mjs} +1 -1
  187. package/dist/server/prebuild.mjs +1 -1
  188. package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
  189. package/dist/server/{registry-Bh0Y25zH.mjs → registry-7_0_lUrh.mjs} +305 -844
  190. package/dist/server/rendering/components/pageShared.mjs +1 -1
  191. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  192. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  193. package/dist/server/rendering/islandDelivery.script.mjs +19 -0
  194. package/dist/server/rendering/server.mjs +3 -3
  195. package/dist/server/rendering.mjs +7 -7
  196. package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
  197. package/dist/server/server.mjs +3 -3
  198. package/dist/server/theme-bridge.mjs +2 -2
  199. package/dist/server/theme.mjs +1 -1
  200. package/dist/server/{validation-D2bHWSxJ.mjs → validation-CSMS6XmP.mjs} +4 -4
  201. package/dist/server/{version-DkM1eAxG.mjs → version-DWeqmTXc.mjs} +1 -1
  202. package/dist/styles/index.css +15 -3
  203. package/package.json +10 -6
  204. package/dist/client/BlocksIslandsHydrator-DcwEaliO.mjs +0 -296
  205. package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
  206. package/dist/client/eventCombined-DoSi8p_l.mjs +0 -28
  207. package/dist/client/eventListing-CkiMjl0g.mjs +0 -29
  208. package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
  209. package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
  210. package/dist/client/src-CdRISvQp.mjs +0 -3
  211. package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
@@ -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-RTqunrpz.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-8jS0qGGC.mjs"),
88
+ "event-calendar": () => import("./eventCalendar-BY3AfYkK.mjs"),
89
+ "event-combined": () => import("./eventCombined-86P2vQCb.mjs"),
90
+ "product-list": () => import("./productList-BPsYP_jA.mjs"),
91
+ "product-detail": () => import("./productDetail-hXttfQhE.mjs"),
92
+ "cart": () => import("./cart-B-M5l__W.mjs"),
93
+ "checkout": () => import("./checkout-ZHc8GfaG.mjs"),
94
+ shop: () => import("./shop-Ds47onRS.mjs"),
95
+ "newsletter-form": () => import("./newsletterForm-o5wFBVHv.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,11 +1,12 @@
1
1
  "use client";
2
- import { Gt as clearSignInReturnDrafts, Jt as nextSignInReturnExpiry, Xt as signInReturnPath, Yt as readSignInReturn, Zt as sweepExpiredSignInReturnDrafts, nn as RichText, qt as decideSignInReturn } from "./wizardSteps-CFulHWnT.mjs";
3
- import { d as assertNever } from "./bookingQuestionValues-BjcyCru5.mjs";
4
- import { n as useBlockApi, r as BlockApiError } from "./context-DXmIbXCK.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
+ import { h as assertNever } from "./creditProducts-CMOmhWm2.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";
5
6
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
6
- import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-Bhh0cvsl.mjs";
7
+ import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-LLGCWjvU.mjs";
7
8
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
8
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
9
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-DQtwf_s2.mjs";
9
10
  import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
10
11
  import * as React$1 from "react";
11
12
  import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
@@ -891,7 +892,17 @@ function AlreadyAnswered(input) {
891
892
  }
892
893
  function SignInNotice(props) {
893
894
  const [open, setOpen] = React$1.useState(false);
895
+ const [handOff, setHandOff] = React$1.useState(null);
896
+ const api = useBlockApiOptional();
897
+ const signIn = () => {
898
+ const outcome = requestSignIn(window.location.href, () => setOpen(true), api?.config.pageNavigation);
899
+ if (outcome.kind === "handOff") setHandOff(outcome);
900
+ };
894
901
  const titleId = `${React$1.useId()}-sign-in-title`;
902
+ if (handOff) return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
903
+ handOff,
904
+ onBack: () => setHandOff(null)
905
+ });
895
906
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
896
907
  className: "rb-bq-note",
897
908
  children: [
@@ -900,7 +911,7 @@ function SignInNotice(props) {
900
911
  /* @__PURE__ */ jsx("button", {
901
912
  type: "button",
902
913
  className: "rb-bq-link",
903
- onClick: () => setOpen(true),
914
+ onClick: signIn,
904
915
  children: "Sign in"
905
916
  }),
906
917
  " ",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Jt as toUtcIsoDateTimeString } from "./noop-ByFRHYQ2.mjs";
3
- import { a as getInitialFieldValue } from "./bookingQuestionValues-BjcyCru5.mjs";
4
- import { r as BlockApiError } from "./context-DXmIbXCK.mjs";
2
+ import { tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
3
+ import { l as getInitialFieldValue } from "./creditProducts-CMOmhWm2.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 { on as formatEventPrice } from "./shop.interactive-C8OvFY06.mjs";
3
- import { Dn as formatTime, Nn as formatEventRemainingPlaces, On as groupEventsByDate, _n as eventDateOptions, ii as listItemPresentation, kn as resolveEventTimeZone, oi as listLookSlot, zn as isEventFull } from "./wizardSteps-CFulHWnT.mjs";
4
- import { Ht as parseBookingLocalDate, Tt as formatDate } from "./noop-ByFRHYQ2.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
+ import { Mt as formatDate, Yt as parseBookingLocalDate } from "./noop-B_f7RqLD.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
- import { d as formatDateKey, v as isToday } from "./src-1PJxc8KO.mjs";
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-DP_IBnq3.mjs";
9
- import { o as formatEventLocation } from "./MapDrawingSvg-13JQI7_z.mjs";
10
- import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-BIc4gjiD.mjs";
8
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
9
+ import { o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
10
+ import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-OpLehMpT.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,14 @@
1
1
  "use client";
2
- import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-ByFRHYQ2.mjs";
3
- import { d as assertNever } from "./bookingQuestionValues-BjcyCru5.mjs";
4
- import { n as useBlockApi, r as BlockApiError } from "./context-DXmIbXCK.mjs";
2
+ import { Ai as leavePage } from "./display-DDNmyb0z.mjs";
3
+ import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-B_f7RqLD.mjs";
4
+ import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
5
+ import { i as BlockApiError, n as useBlockApi } from "./context-Xhf81Q-c.mjs";
5
6
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
6
7
  import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
7
8
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
8
9
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
9
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
10
- import React, { useCallback, useEffect, useId, useMemo, useReducer } from "react";
10
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQtwf_s2.mjs";
11
+ import React, { useCallback, useEffect, useId, useMemo, useReducer, useState } from "react";
11
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
13
  //#region ../core/src/site-terms.ts
13
14
  function siteTermsApplies(operation, items) {
@@ -152,6 +153,52 @@ function getAutoAppliedDiscountPreview(availability) {
152
153
  }
153
154
  }
154
155
  //#endregion
156
+ //#region ../blocks/src/system/runtime/shared/navigation/NavigationHandOffPanel.tsx
157
+ function NavigationHandOffPanel(props) {
158
+ const [opened, setOpened] = useState(false);
159
+ const payment = props.purpose === "payment";
160
+ const offering = props.offeringLabel?.toLowerCase() ?? "event";
161
+ return /* @__PURE__ */ jsxs("section", {
162
+ className: "rb-reg-stack er-stack",
163
+ "aria-live": "polite",
164
+ children: [
165
+ /* @__PURE__ */ jsx("h3", {
166
+ className: "er-title",
167
+ children: opened ? "Finish booking in the new tab" : payment ? "Finish paying in a new tab" : "Continue in a new tab"
168
+ }),
169
+ !opened && /* @__PURE__ */ jsx("p", {
170
+ className: "er-text",
171
+ children: handOffDescription(props, offering)
172
+ }),
173
+ opened && /* @__PURE__ */ jsxs("p", { children: ["Tab didn't open? ", /* @__PURE__ */ jsx("a", {
174
+ href: props.handOff.url,
175
+ target: "_blank",
176
+ rel: "noopener",
177
+ children: "Open the booking page"
178
+ })] }),
179
+ !opened && /* @__PURE__ */ jsx("a", {
180
+ className: "rb-button",
181
+ href: props.handOff.url,
182
+ target: "_blank",
183
+ rel: "noopener",
184
+ onClick: () => setOpened(true),
185
+ children: payment ? "Pay in a new tab" : "Continue in a new tab"
186
+ }),
187
+ /* @__PURE__ */ jsx("button", {
188
+ type: "button",
189
+ className: "er-portal-auth-link",
190
+ onClick: props.onBack,
191
+ children: props.purpose === "signIn" ? `Back to pay for this ${offering} instead` : "Back to my booking"
192
+ })
193
+ ]
194
+ });
195
+ }
196
+ function handOffDescription(props, offering) {
197
+ if (props.purpose === "payment") return "We'll open a secure payment page in a new tab. Your booking is confirmed once you've paid.";
198
+ if (props.purpose === "signIn") return `You'll need to sign in to use a pass or membership. We'll open ${props.businessName ?? "the business"}'s booking page in a new tab, with this ${offering} already picked, and you can finish booking there. You'll need to enter your booking details again.`;
199
+ return "Open the booking page in a new tab to continue.";
200
+ }
201
+ //#endregion
155
202
  //#region ../blocks/src/system/runtime/shared/siteTermsAgreement.ts
156
203
  /** Submission evidence is derived exclusively from the displayed state. */
157
204
  function siteTermsSubmission(view) {
@@ -591,7 +638,11 @@ function BookingConfirmation(props) {
591
638
  })] });
592
639
  }
593
640
  function DemoBookingPortalAccess(props) {
594
- const { state, openPortal } = useDemoBookingPortalAccess(props.email);
641
+ const { state, openPortal, back } = useDemoBookingPortalAccess(props.email);
642
+ if (state.tag === "handOff") return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
643
+ handOff: state.handOff,
644
+ onBack: back
645
+ });
595
646
  return /* @__PURE__ */ jsxs("div", {
596
647
  className: "rb-mt-4 rb-flex rb-flex-col rb-items-start rb-gap-3",
597
648
  "data-testid": "demo-booking-portal-access",
@@ -650,7 +701,11 @@ function useDemoBookingPortalAccess(email) {
650
701
  });
651
702
  switch (result.kind) {
652
703
  case "demo_sign_in":
653
- window.location.assign(result.url);
704
+ const outcome = leavePage(result.url, api.config.pageNavigation);
705
+ if (outcome.kind === "handOff") setState({
706
+ tag: "handOff",
707
+ handOff: outcome
708
+ });
654
709
  return;
655
710
  case "refused":
656
711
  setState({
@@ -668,7 +723,8 @@ function useDemoBookingPortalAccess(email) {
668
723
  };
669
724
  return {
670
725
  state,
671
- openPortal
726
+ openPortal,
727
+ back: () => setState({ tag: "idle" })
672
728
  };
673
729
  }
674
730
  function handlePortalAccessError(error) {
@@ -685,4 +741,4 @@ function handlePortalAccessError(error) {
685
741
  };
686
742
  }
687
743
  //#endregion
688
- export { siteTermsFailureKind as a, discountAvailabilityAllowsManualEntry as c, DiscountCodeDisclosure as d, SiteTermsChangedNotice as i, discountAvailabilityHasDiscounts as l, DemoBookingPortalAccess as n, useSiteTermsAgreement as o, SiteTermsAgreementField as r, eventSiteTermsSurface as s, BookingConfirmation as t, getAutoAppliedDiscountPreview as u };
744
+ export { siteTermsFailureKind as a, NavigationHandOffPanel as c, getAutoAppliedDiscountPreview as d, DiscountCodeDisclosure as f, SiteTermsChangedNotice as i, discountAvailabilityAllowsManualEntry as l, DemoBookingPortalAccess as n, useSiteTermsAgreement as o, SiteTermsAgreementField as r, eventSiteTermsSurface as s, BookingConfirmation as t, discountAvailabilityHasDiscounts as u };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { Ht as buildEventRuntimeFilters, Tt as buildEventCalendarListingRender, in as eventListWeekDays, rn as buildEventListWeek } from "./shop.interactive-C8OvFY06.mjs";
3
- import { On as groupEventsByDate, wn as formatEventHourLabel } from "./wizardSteps-CFulHWnT.mjs";
4
- import { p as resolveCalendarReadProfile } from "./noop-ByFRHYQ2.mjs";
5
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-Cko9LRKy.mjs";
6
- import { d as formatDateKey, m as getOrderedDayNames } from "./src-1PJxc8KO.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
+ 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-BG7Ejxdr.mjs";
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-CNe3ZjdC.mjs";
9
- import { i as useEventCollectionFilters } from "./useEventPagination-PhTIoFVX.mjs";
10
- import { n as EventListingController } from "./EventListing.client-CEFTC3jH.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-BFVxECTp.mjs";
8
+ import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-DSnSBNeq.mjs";
9
+ import { i as useEventCollectionFilters } from "./useEventPagination-spj7sGQP.mjs";
10
+ import { n as EventListingController } from "./EventListing.client-8MFGI9BA.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-BEdfJGpx.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 { Ht as buildEventRuntimeFilters, Mt as eventListingBlockRuntime, Ut as getEventRuntimeFiltersKey, Vt as toError } from "./shop.interactive-C8OvFY06.mjs";
3
- import { Dn as formatTime, On as groupEventsByDate, _n as eventDateOptions, hn as eventCalendarWeekStart, mn as buildCalendarViewport, oi as listLookSlot, qr as getBlockApiReadStage } from "./wizardSteps-CFulHWnT.mjs";
4
- import { Tt as formatDate, Vt as getLocalScheduleDate, c as calendarQueryKey, ct as calendarMonthDate, f as planCalendarMonthRanges, l as calendarWindowBounds, o as calendarMonthKey, s as calendarPageResponseError, u as calendarWindowMonths$1 } from "./noop-ByFRHYQ2.mjs";
5
- import { n as useBlockApi } from "./context-DXmIbXCK.mjs";
6
- import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-1PJxc8KO.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
+ 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-Xhf81Q-c.mjs";
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-CNe3ZjdC.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-DSnSBNeq.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-PhTIoFVX.mjs";
12
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-spj7sGQP.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