@riverbankcms/sdk 0.167.0 → 0.169.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 (235) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-Dgb-ptph.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-DHBBDRC_.d.ts} +7 -6
  3. package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
  4. package/dist/_dts/{client-CwsI23pj.d.ts → client-MURxFla9.d.ts} +90 -418
  5. package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
  6. package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CHNvzh0y.d.ts} +6 -4
  7. package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
  9. package/dist/_dts/{index-CS6b1B-c.d.ts → index-BaDqRekr.d.ts} +4 -4
  10. package/dist/_dts/{index-bDln38Hm.d.ts → index-CVB5wgbz.d.ts} +2 -2
  11. package/dist/_dts/{index-D7EbliE3.d.ts → index-CiR_oPYT.d.ts} +3 -3
  12. package/dist/_dts/{index-5_jf52sZ.d.ts → index-CovKPftP.d.ts} +2 -2
  13. package/dist/_dts/{index-C20yUyob.d.ts → index-DCw8LO4M.d.ts} +1 -1
  14. package/dist/_dts/index-DDaX-K2D.d.ts +14 -0
  15. package/dist/_dts/{index-DeHDwMfu.d.ts → index-rfAssXq0.d.ts} +3 -3
  16. package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
  17. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  18. package/dist/_dts/{index-ChpjHK0U.d.ts → request-DeVetKBr.d.ts} +81273 -46979
  19. package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -5
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  54. package/dist/_dts/{types-BlaCuPLr.d.ts → types-B4MBlP_B.d.ts} +4 -2
  55. package/dist/_dts/{types-D-WElMCy.d.ts → types-Fj31kIi2.d.ts} +7 -7
  56. package/dist/_dts/{types-CwtTcaQP.d.ts → types-OwqfS8Gn.d.ts} +3 -3
  57. package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +21 -21
  59. package/dist/client/BookingMailingListNote-y3qWjnOo.mjs +957 -0
  60. package/dist/client/BookingQuestionFields-DjLjd0vc.mjs +359 -0
  61. package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +8 -8
  62. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +68 -12
  64. package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-DDjz7tuX.mjs} +10 -10
  65. package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-CeYbNsch.mjs} +9 -9
  66. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  67. package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-B5J0IeF4.mjs} +37 -15
  68. package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
  69. package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
  70. package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-BYBaElec.mjs} +34 -16
  71. package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +362 -90
  72. package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-BFp2uQQQ.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
  74. package/dist/client/{Page-D4_H_u9V.mjs → Page-Dv9eIOGr.mjs} +4475 -1600
  75. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  76. package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-BZNUd0-v.mjs} +3 -3
  77. package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
  78. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  79. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  80. package/dist/client/{accordion--EUHmEGa.mjs → accordion-BCtVxnDZ.mjs} +1 -1
  81. package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-Cr5G-HHO.mjs} +1323 -567
  82. package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-B1Fc62Sl.mjs} +9 -5
  83. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  84. package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
  85. package/dist/client/bookings.mjs +28 -20
  86. package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DW-HgjvT.mjs} +3 -3
  87. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  88. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  89. package/dist/client/{cart-CCZZC-Lq.mjs → cart-D1zWe4R7.mjs} +3 -3
  90. package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-CIfbTLHS.mjs} +1 -1
  91. package/dist/client/{checkout-CipmYL4A.mjs → checkout-fDCNZ3IT.mjs} +3 -3
  92. package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
  94. package/dist/client/client.mjs +287 -63
  95. package/dist/client/{context-Cv3QHjAF.mjs → context-DQnTyApV.mjs} +320 -4
  96. package/dist/client/creditProducts-CMOmhWm2.mjs +364 -0
  97. package/dist/client/{cta-P2vJVTEn.mjs → cta-Bj5WHgcv.mjs} +2 -2
  98. package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
  100. package/dist/client/{site-styles-D56hT2u1.mjs → display-CT8KMSpH.mjs} +19832 -17912
  101. package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-B27KFGDv.mjs} +4 -3
  102. package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
  103. package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-Dj3Kyp5X.mjs} +118 -241
  104. package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
  105. package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
  106. package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzMskXYA.mjs} +2 -2
  107. package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CpFFcAUr.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
  109. package/dist/client/{form-Bw1uuiUs.mjs → form-57k2JQnm.mjs} +3 -3
  110. package/dist/client/{form.client-pZ-9gN33.mjs → form.client-CCl6CpRJ.mjs} +5 -5
  111. package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-BOJ1yDDf.mjs} +3 -3
  112. package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-BGlhrmhF.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-q_bEzfhW.mjs} +2 -2
  115. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  116. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  117. package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-CiqKAmPs.mjs} +6 -6
  118. package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-x1RzAMNO.mjs} +2 -2
  119. package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
  120. package/dist/client/{noop-ByVtIWf4.mjs → noop-B_f7RqLD.mjs} +544 -494
  121. package/dist/client/portal/client.mjs +86 -231
  122. package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
  123. package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
  124. package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
  125. package/dist/client/{productList-B21TGdpT.mjs → productList-C0MLeh-v.mjs} +3 -3
  126. package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-CAmEkJ6Y.mjs} +5 -4
  127. package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Bf2YX_4v.mjs} +2218 -2435
  128. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  129. package/dist/client/rendering/client.mjs +30 -30
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +10 -9
  132. package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-BTurYEao.mjs} +1 -1
  133. package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
  134. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  135. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  136. package/dist/client/{shop-mqyoOvOK.mjs → shop-Dkn6EasY.mjs} +3 -3
  137. package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-bo0Z6kwf.mjs} +13 -13
  138. package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
  139. package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-B_GqU6_U.mjs} +111 -32
  140. package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C6L_Ig5F.mjs} +87 -528
  141. package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-BozhJ43Z.mjs +3 -0
  144. package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
  145. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  146. package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-D62jfOxZ.mjs} +12 -12
  147. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  148. package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
  149. package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-Ca2pHUDu.mjs} +6 -4
  150. package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
  151. package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-uxnUWI2v.mjs} +7 -7
  152. package/dist/client/{view-BN-fxyfq.mjs → view-B6KSxQMO.mjs} +11 -7
  153. package/dist/client/{view-Dh2tGoS0.mjs → view-SVnWic7i.mjs} +3 -4
  154. package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-kbdqYkWM.mjs} +26 -17
  155. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  156. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  157. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  158. package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +212 -55
  159. package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-yyD-ZREP.mjs} +6 -6
  160. package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-YauP65Gi.mjs} +199 -155
  161. package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +32 -32
  162. package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +4772 -3687
  163. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  164. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  165. package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-DSR0IdAw.mjs} +16547 -13046
  166. package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
  167. package/dist/preview-next/client/runtime.mjs +3 -3
  168. package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
  169. package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
  170. package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
  171. package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +2 -2
  172. package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +2 -2
  173. package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
  174. package/dist/preview-next/keepAlive.mjs +1 -1
  175. package/dist/preview-next/middleware.mjs +1 -1
  176. package/dist/preview-next/{route-contract-Bv3nkdpV.mjs → route-contract-BU1m9SV3.mjs} +212 -0
  177. package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-4vx7wzxj.mjs} +5 -5
  178. package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-C3HLgqBF.mjs} +463 -127
  179. package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
  180. package/dist/server/{bindings-ConMYJ2U.mjs → bindings-TAQbo2P5.mjs} +2 -2
  181. package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
  182. package/dist/server/{client-Cot-H5fQ.mjs → client-DzCxEl3L.mjs} +308 -61
  183. package/dist/server/config-validation.mjs +1 -1
  184. package/dist/server/config.mjs +1 -1
  185. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  186. package/dist/server/data/resolveBlockData.mjs +1 -1
  187. package/dist/server/headerVariant-8O5MvxIU.mjs +464 -0
  188. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  189. package/dist/server/index.mjs +3 -3
  190. package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-BO1M9Hdf.mjs} +4 -5
  191. package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-BvWzmZcD.mjs} +2 -2
  192. package/dist/server/manifest.mjs +1 -1
  193. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  194. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  195. package/dist/server/next.mjs +6 -6
  196. package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  197. package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
  198. package/dist/server/page-converter.mjs +3 -3
  199. package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-DzduDSqY.mjs} +255 -158
  200. package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +291 -5
  201. package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-CSOJ8p8E.mjs} +1303 -907
  202. package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-BebSeE17.mjs} +593 -1592
  203. package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
  204. package/dist/server/prebuild.mjs +1 -1
  205. package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-BvbxqeKn.mjs} +5 -4
  206. package/dist/server/{registry-BPFcpn6k.mjs → registry-Fv-7D8o2.mjs} +4595 -4045
  207. package/dist/server/rendering/components/pageShared.mjs +1 -1
  208. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  209. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  210. package/dist/server/rendering/server.mjs +3 -3
  211. package/dist/server/rendering.mjs +8 -8
  212. package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
  213. package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
  214. package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
  215. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  216. package/dist/server/server.mjs +3 -3
  217. package/dist/server/theme-bridge.mjs +2 -3
  218. package/dist/server/theme.mjs +1 -2
  219. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  220. package/dist/server/{validation-bl6WcAi_.mjs → validation-DddhgNdb.mjs} +58 -9
  221. package/dist/server/{version-BLXZ31S-.mjs → version-D_W2mt8w.mjs} +1 -1
  222. package/dist/styles/index.css +342 -67
  223. package/package.json +4 -3
  224. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  225. package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
  226. package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
  227. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  228. package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
  229. package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
  230. package/dist/client/src-CdRISvQp.mjs +0 -3
  231. package/dist/client/src-DjnxOjXG.mjs +0 -217
  232. package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
  233. package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
  234. package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
  235. package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
@@ -0,0 +1,359 @@
1
+ "use client";
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-DQnTyApV.mjs";
5
+ import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
6
+ import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
7
+ import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
8
+ import { useCallback, useEffect, useState } from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ //#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
11
+ function DemoPortalSignInLink(props) {
12
+ return /* @__PURE__ */ jsxs("div", { children: [
13
+ /* @__PURE__ */ jsx("h3", { children: "Your sign-in link" }),
14
+ /* @__PURE__ */ jsx("p", { children: "In the demo we don’t send emails, so here’s the link we’d have sent you." }),
15
+ /* @__PURE__ */ jsx(ThemedButtonLink, {
16
+ variant: "default",
17
+ size: "md",
18
+ label: "Sign in to the portal",
19
+ href: props.url
20
+ })
21
+ ] });
22
+ }
23
+ //#endregion
24
+ //#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
25
+ const ANCHOR_CLOCK = { kind: "anchor" };
26
+ const MAX_TIMER_DELAY_MS = 2147483647;
27
+ const browserClock = () => toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString());
28
+ /** The effect owns one timer, including long-delay and early-timer retries. */
29
+ function scheduleBookingClockBoundary(boundary, refresh, clock) {
30
+ const timer = {};
31
+ const schedule = () => {
32
+ const delay = Date.parse(boundary) - Date.parse(clock());
33
+ if (!Number.isFinite(delay) || delay <= 0) return;
34
+ timer.current = setTimeout(() => {
35
+ refresh();
36
+ schedule();
37
+ }, Math.min(delay, MAX_TIMER_DELAY_MS));
38
+ };
39
+ schedule();
40
+ return () => {
41
+ if (timer.current !== void 0) clearTimeout(timer.current);
42
+ };
43
+ }
44
+ /**
45
+ * The supplied server clock snapshot for this booking or registration flow.
46
+ *
47
+ * Payment previews take this as their "now" so the pure view-model builders
48
+ * never read the clock themselves. The anchor stays fixed per mount. Lifecycle
49
+ * presentation starts with the same snapshot, then reconciles in effects.
50
+ */
51
+ function useBookingNowIso(snapshot, policy = ANCHOR_CLOCK, clock = browserClock) {
52
+ const [nowIso, setNowIso] = useState(snapshot);
53
+ const refresh = useCallback(() => setNowIso(clock()), [clock]);
54
+ const nextBoundary = policy.kind === "presentation" ? policy.nextBoundary : null;
55
+ useEffect(() => {
56
+ if (policy.kind === "anchor") return;
57
+ refresh();
58
+ const interval = policy.kind === "relative" ? setInterval(refresh, 6e4) : null;
59
+ window.addEventListener("focus", refresh);
60
+ document.addEventListener("visibilitychange", refresh);
61
+ return () => {
62
+ if (interval !== null) clearInterval(interval);
63
+ window.removeEventListener("focus", refresh);
64
+ document.removeEventListener("visibilitychange", refresh);
65
+ };
66
+ }, [policy.kind, refresh]);
67
+ useEffect(() => {
68
+ if (!nextBoundary) return;
69
+ return scheduleBookingClockBoundary(nextBoundary, refresh, clock);
70
+ }, [
71
+ nextBoundary,
72
+ clock,
73
+ refresh
74
+ ]);
75
+ return nowIso;
76
+ }
77
+ //#endregion
78
+ //#region ../blocks/src/system/runtime/shared/parseBookingSubmissionFailure.ts
79
+ /** `fieldPrefix` is where the server puts question field ids: booking flows send them under `bookingQuestions.`, the portal under `answers.`. */
80
+ function parseBookingSubmissionFailure(error, fallbackMessage, fieldPrefix = "bookingQuestions.") {
81
+ const fieldErrors = error instanceof BlockApiError ? error.fieldErrors : [];
82
+ return {
83
+ message: error instanceof Error ? error.message : fallbackMessage,
84
+ answersNeeded: fieldErrors.some(({ field, code }) => field === "bookingQuestions" && code === "validation:required"),
85
+ questionFieldErrors: Object.fromEntries(fieldErrors.flatMap(({ field, message }) => field.startsWith(fieldPrefix) && field.length > fieldPrefix.length ? [[field.slice(fieldPrefix.length), message]] : []))
86
+ };
87
+ }
88
+ //#endregion
89
+ //#region ../blocks/src/system/runtime/shared/components/BookingQuestionFields.tsx
90
+ /**
91
+ * Optional questions say so; required ones carry aria-required instead of an
92
+ * asterisk. The appointment booking form's own fields use it too, so a form
93
+ * never mixes the two conventions.
94
+ */
95
+ function OptionalMark() {
96
+ return /* @__PURE__ */ jsx("span", {
97
+ className: "rb-bq-optional status-muted",
98
+ children: " (optional)"
99
+ });
100
+ }
101
+ function toStringValue(value) {
102
+ return typeof value === "string" || typeof value === "number" ? String(value) : "";
103
+ }
104
+ /** Native scalar controls share value conversion and validation; choices and uploads have their own controls. */
105
+ function ScalarQuestionInput({ field, inputId, value, disabled, control, onChange }) {
106
+ const temporal = field.type === "date" || field.type === "time";
107
+ return /* @__PURE__ */ jsx("input", {
108
+ id: inputId,
109
+ type: field.type,
110
+ className: "form-input",
111
+ value: toStringValue(value),
112
+ placeholder: temporal ? void 0 : field.placeholder,
113
+ min: field.type === "number" ? field.min : void 0,
114
+ max: field.type === "number" ? field.max : void 0,
115
+ disabled,
116
+ ...control,
117
+ onChange: (event) => onChange(event.target.value)
118
+ });
119
+ }
120
+ function TextareaQuestionInput({ field, inputId, value, disabled, control, onChange }) {
121
+ return /* @__PURE__ */ jsx("textarea", {
122
+ id: inputId,
123
+ className: "form-textarea",
124
+ value: toStringValue(value),
125
+ rows: 4,
126
+ placeholder: field.placeholder,
127
+ disabled,
128
+ ...control,
129
+ onChange: (event) => onChange(event.target.value)
130
+ });
131
+ }
132
+ function SelectQuestionInput({ field, inputId, value, disabled, control, onChange }) {
133
+ const options = field.options?.map((option) => /* @__PURE__ */ jsx("option", {
134
+ value: option.value,
135
+ children: option.label
136
+ }, option.value));
137
+ if (field.multiple) return /* @__PURE__ */ jsx("select", {
138
+ id: inputId,
139
+ className: "form-select rb-h-32",
140
+ multiple: true,
141
+ disabled,
142
+ ...control,
143
+ value: Array.isArray(value) ? value : [],
144
+ onChange: (event) => onChange(Array.from(event.target.selectedOptions, (option) => option.value)),
145
+ children: options
146
+ });
147
+ return /* @__PURE__ */ jsxs("select", {
148
+ id: inputId,
149
+ className: "form-select",
150
+ disabled,
151
+ ...control,
152
+ value: toStringValue(value),
153
+ onChange: (event) => onChange(event.target.value),
154
+ children: [/* @__PURE__ */ jsx("option", {
155
+ value: "",
156
+ children: "Select an option..."
157
+ }), options]
158
+ });
159
+ }
160
+ function RadioQuestionInput({ field, inputId, value, disabled, control, onChange }) {
161
+ return /* @__PURE__ */ jsx("div", {
162
+ className: "rb-space-y-2",
163
+ children: field.options?.map((option) => /* @__PURE__ */ jsxs("label", {
164
+ className: "form-check",
165
+ children: [/* @__PURE__ */ jsx("input", {
166
+ type: "radio",
167
+ name: inputId,
168
+ value: option.value,
169
+ checked: value === option.value,
170
+ disabled,
171
+ className: "form-radio",
172
+ "aria-invalid": control["aria-invalid"],
173
+ onChange: (event) => onChange(event.target.value)
174
+ }), /* @__PURE__ */ jsx("span", {
175
+ className: "form-check-label",
176
+ children: option.label
177
+ })]
178
+ }, option.value))
179
+ });
180
+ }
181
+ function toggledValues(selected, value, checked) {
182
+ return checked ? [...selected, value] : selected.filter((entry) => entry !== value);
183
+ }
184
+ function CheckboxQuestionInput({ field, inputId, value, disabled, control, onChange }) {
185
+ if (!field.options || field.options.length <= 1) return /* @__PURE__ */ jsx(CheckboxChoice, {
186
+ id: inputId,
187
+ checked: Boolean(value),
188
+ disabled,
189
+ ...control,
190
+ onChange: (event) => onChange(event.target.checked),
191
+ label: field.placeholder || field.label
192
+ });
193
+ const selectedValues = Array.isArray(value) ? value : [];
194
+ return /* @__PURE__ */ jsx("div", {
195
+ className: "rb-space-y-2",
196
+ children: field.options.map((option) => /* @__PURE__ */ jsx(CheckboxChoice, {
197
+ name: inputId,
198
+ value: option.value,
199
+ checked: selectedValues.includes(option.value),
200
+ disabled,
201
+ "aria-invalid": control["aria-invalid"],
202
+ onChange: (event) => onChange(toggledValues(selectedValues, option.value, event.target.checked)),
203
+ label: option.label
204
+ }, option.value))
205
+ });
206
+ }
207
+ function BookingQuestionFieldInput(props) {
208
+ const { field } = props;
209
+ switch (field.type) {
210
+ case "textarea": return /* @__PURE__ */ jsx(TextareaQuestionInput, {
211
+ ...props,
212
+ field
213
+ });
214
+ case "select": return /* @__PURE__ */ jsx(SelectQuestionInput, {
215
+ ...props,
216
+ field
217
+ });
218
+ case "radio": return /* @__PURE__ */ jsx(RadioQuestionInput, {
219
+ ...props,
220
+ field
221
+ });
222
+ case "checkbox": return /* @__PURE__ */ jsx(CheckboxQuestionInput, {
223
+ ...props,
224
+ field
225
+ });
226
+ case "document_upload": return props.renderDocumentField?.({
227
+ field,
228
+ inputId: props.inputId,
229
+ value: props.value,
230
+ disabled: props.disabled,
231
+ error: props.error,
232
+ control: props.control,
233
+ onChange: props.onChange
234
+ }) ?? null;
235
+ case "number":
236
+ case "date":
237
+ case "time":
238
+ case "email":
239
+ case "tel":
240
+ case "text":
241
+ case "url": return /* @__PURE__ */ jsx(ScalarQuestionInput, {
242
+ ...props,
243
+ field
244
+ });
245
+ }
246
+ }
247
+ function questionControlProps(field, ids, error) {
248
+ return {
249
+ ...getFieldValidationControlProps({
250
+ message: error,
251
+ messageId: ids.errorId,
252
+ describedBy: ids.helpTextId
253
+ }),
254
+ ...field.required ? { "aria-required": "true" } : {}
255
+ };
256
+ }
257
+ /** Radios and multi-choice checkboxes answer one question with several controls, so they're a named group. */
258
+ function isChoiceGroup(field) {
259
+ return field.type === "radio" || field.type === "checkbox" && (field.options?.length ?? 0) > 1;
260
+ }
261
+ function QuestionLabel({ field, inputId }) {
262
+ const text = /* @__PURE__ */ jsxs(Fragment, { children: [field.label, field.required ? null : /* @__PURE__ */ jsx(OptionalMark, {})] });
263
+ return isChoiceGroup(field) ? /* @__PURE__ */ jsx("legend", {
264
+ className: "form-label rb-p-0",
265
+ children: text
266
+ }) : /* @__PURE__ */ jsx("label", {
267
+ htmlFor: inputId,
268
+ className: "form-label",
269
+ children: text
270
+ });
271
+ }
272
+ /** A choice group is a fieldset: the question is its legend, and the group carries required state and descriptions. */
273
+ function QuestionFrame({ field, control, children }) {
274
+ if (!isChoiceGroup(field)) return /* @__PURE__ */ jsx("div", {
275
+ className: "rb-space-y-2",
276
+ children
277
+ });
278
+ return /* @__PURE__ */ jsx("fieldset", {
279
+ className: "rb-space-y-2 rb-border-0 rb-p-0 rb-m-0 rb-min-w-0",
280
+ "aria-describedby": control["aria-describedby"],
281
+ ...field.type === "radio" ? {
282
+ role: "radiogroup",
283
+ "aria-required": control["aria-required"]
284
+ } : {},
285
+ children
286
+ });
287
+ }
288
+ function QuestionField({ field, value, error, disabled, idPrefix, onChange, renderDocumentField }) {
289
+ const inputId = `${idPrefix}${field.id}`;
290
+ const helpTextId = field.helpText ? `${inputId}-help` : void 0;
291
+ const errorId = `${inputId}-error`;
292
+ const control = questionControlProps(field, {
293
+ errorId,
294
+ helpTextId
295
+ }, error);
296
+ return /* @__PURE__ */ jsxs(QuestionFrame, {
297
+ field,
298
+ control,
299
+ children: [
300
+ /* @__PURE__ */ jsx(QuestionLabel, {
301
+ field,
302
+ inputId
303
+ }),
304
+ field.helpText ? /* @__PURE__ */ jsx("p", {
305
+ id: helpTextId,
306
+ className: "rb-caption status-muted",
307
+ children: field.helpText
308
+ }) : null,
309
+ /* @__PURE__ */ jsx(BookingQuestionFieldInput, {
310
+ field,
311
+ inputId,
312
+ value: value ?? getInitialFieldValue(field, {}),
313
+ disabled,
314
+ error,
315
+ control,
316
+ onChange: (next) => onChange(field.id, next),
317
+ renderDocumentField
318
+ }),
319
+ error ? /* @__PURE__ */ jsx(FieldValidationMessage, {
320
+ id: errorId,
321
+ className: "rb-caption status-error",
322
+ children: error
323
+ }) : null
324
+ ]
325
+ });
326
+ }
327
+ function SectionTitle({ section }) {
328
+ return /* @__PURE__ */ jsxs("div", {
329
+ className: "rb-space-y-1",
330
+ children: [/* @__PURE__ */ jsx("h4", {
331
+ className: "rb-font-medium",
332
+ children: section.title
333
+ }), section.description ? /* @__PURE__ */ jsx("p", {
334
+ className: "rb-caption status-muted",
335
+ children: section.description
336
+ }) : null]
337
+ });
338
+ }
339
+ /**
340
+ * The questions of a booking-question set, rendered the same way in the
341
+ * portal, the appointment booking form and event registration. Fields use
342
+ * the theme's `form-*` classes, so each site's input styling applies.
343
+ */
344
+ function BookingQuestionFields({ sections, values, fieldErrors = {}, onChange, disabled = false, idPrefix = "", showFirstSectionTitle = false, renderDocumentField }) {
345
+ return /* @__PURE__ */ jsx(Fragment, { children: sections.map((section, sectionIndex) => /* @__PURE__ */ jsxs("div", {
346
+ className: "rb-space-y-3",
347
+ children: [showFirstSectionTitle || sectionIndex > 0 ? /* @__PURE__ */ jsx(SectionTitle, { section }) : null, section.items.map((field) => /* @__PURE__ */ jsx(QuestionField, {
348
+ field,
349
+ value: values[field.id],
350
+ error: fieldErrors[field.id] ?? null,
351
+ disabled,
352
+ idPrefix,
353
+ onChange,
354
+ renderDocumentField
355
+ }, field.id))]
356
+ }, section.id)) });
357
+ }
358
+ //#endregion
359
+ export { DemoPortalSignInLink as a, useBookingNowIso as i, OptionalMark as n, parseBookingSubmissionFailure as r, BookingQuestionFields as t };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { on as formatEventPrice } from "./shop.interactive-mdM3UMWG.mjs";
3
- import { Cn as formatEventRemainingPlaces, Nr as listLookSlot, _n as formatTime, jr as listItemPresentation, kn as isEventFull, sn as eventDateOptions, vn as groupEventsByDate, yn as resolveEventTimeZone } from "./wizardSteps-DtkhwKXK.mjs";
4
- import { At as parseBookingLocalDate, pt as formatDate } from "./noop-ByVtIWf4.mjs";
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";
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";
7
- import { i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
8
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-P2vJVTEn.mjs";
9
- import { o as formatEventLocation } from "./MapDrawingSvg-CcGaFawl.mjs";
10
- import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-DPBLjGwj.mjs";
6
+ import { d as formatDateKey, v as isToday } from "./src-xrjaKaCj.mjs";
7
+ import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
8
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
9
+ import { o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
10
+ import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-B5J0IeF4.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,5 +1,5 @@
1
1
  "use client";
2
- import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
2
+ import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
3
3
  import React from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/CheckboxChoice.tsx
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-ByVtIWf4.mjs";
3
- import { t as assertNever } from "./src-DjnxOjXG.mjs";
4
- import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
5
- import { t as CheckboxChoice } from "./CheckboxChoice-CZ-anOqV.mjs";
2
+ import { Ai as leavePage } from "./display-CT8KMSpH.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-DQnTyApV.mjs";
6
+ import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
7
+ import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
6
8
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
7
9
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
8
- import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
9
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-CXWZoV-d.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-3uVu3WgG.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) {
@@ -553,7 +600,7 @@ function SiteTermsAgreementField(props) {
553
600
  }),
554
601
  presentation: "tile",
555
602
  label: /* @__PURE__ */ jsxs(Fragment, { children: ["I agree to ", `${view.terms.businessName}'s `] }),
556
- labelLink: /* @__PURE__ */ jsxs(Fragment, { children: [
603
+ labelLink: props.requiredMark === "none" ? link : /* @__PURE__ */ jsxs(Fragment, { children: [
557
604
  link,
558
605
  " ",
559
606
  /* @__PURE__ */ jsx("span", {
@@ -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-mdM3UMWG.mjs";
3
- import { mn as formatEventHourLabel, vn as groupEventsByDate } from "./wizardSteps-DtkhwKXK.mjs";
4
- import { y as resolveCalendarReadProfile } from "./noop-ByVtIWf4.mjs";
5
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-CrC80EOG.mjs";
6
- import { d as formatDateKey, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
7
- import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
8
- import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-DQwJ7BPx.mjs";
9
- import { i as useEventCollectionFilters } from "./useEventPagination-Bcs89BR5.mjs";
10
- import { n as EventListingController } from "./EventListing.client-Bogi_SnJ.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-Bus9R0bj.mjs";
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";
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";
6
+ import { d as formatDateKey, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
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";
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-mdM3UMWG.mjs";
3
- import { Gt as getBlockApiReadStage, Nr as listLookSlot, _n as formatTime, an as eventCalendarWeekStart, in as buildCalendarViewport, sn as eventDateOptions, vn as groupEventsByDate } from "./wizardSteps-DtkhwKXK.mjs";
4
- import { d as calendarMonthKey, f as calendarPageResponseError, h as calendarWindowMonths$1, kt as getLocalScheduleDate, m as calendarWindowBounds, p as calendarQueryKey, pt as formatDate, u as calendarMonthDate, v as planCalendarMonthRanges } from "./noop-ByVtIWf4.mjs";
5
- import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-1PJxc8KO.mjs";
6
- import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
7
- 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-DQwJ7BPx.mjs";
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";
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";
6
+ import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-xrjaKaCj.mjs";
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
9
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
9
10
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
10
- import { t as TabBarFragment } from "./TabBarFragment-BxEGsKUx.mjs";
11
- import { n as useBlockApi } from "./context-Cv3QHjAF.mjs";
12
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Bcs89BR5.mjs";
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";
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,5 +1,5 @@
1
1
  "use client";
2
- import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-8jUc02mZ.mjs";
2
+ import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region \0rolldown/runtime.js