@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
@@ -1,20 +1,26 @@
1
1
  "use client";
2
- import { $ as getEligibilityFlowFlags, At as getTicketSelectionTotal, C as resolveGuestNextStepCheck, E as resolveRegistrationTicketContinuation, Er as resolveEventRegistrationScopedEvents, Ft as getRegistrationStartAt, G as resolveRegistrationTarget, H as findPreSelectedEvent, It as toRegistrationEvents, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, Kr as resolveBookingSignupOffer, L as calculateEventRegistrationPreviewTotal, M as resolveEventRegistrationSubmitPlan, Mt as hasValidPricingOptionSelection, Nt as normalizeTicketSelectionLines, O as visitorHoldsOwnPlace, Ot as getSingleSelectedPricingOptionId, Q as getCurrentTicketSelection, Rt as toWholeSeriesRegistrationEvents, S as planRegistrationDetailsContinuation, St as getVisibleTicketTypes, U as resolveDiscountContext, W as resolveEventRequiresPayment, X as invitationSubmission, Y as createRegistrationDraftData, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, bt as getPortalSubjectEmail, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, ft as findSelectedTicketType, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, ii as publicEventPricingStrategy, it as parseCurrencyInputToCents, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as validateFormData, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, wt as transformRegistrationOptionsResponse, x as planRegistrationDetailsCheck, y as getTicketSelectionPurpose, yt as getImplicitSingleTicketType } from "./wizardSteps-DtkhwKXK.mjs";
3
- import { Mt as resolveBookingBusinessTimeZone, bt as inferSiteDateLocale } from "./noop-ByVtIWf4.mjs";
4
- import { t as assertNever } from "./src-DjnxOjXG.mjs";
5
- import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-DdkY86qI.mjs";
2
+ import { A as createInitialRegistrationFlowState, Ai as leavePage, Ct as getTicketSelectionRemainingPlaces, Dt as withRegistrationAvailability, E as registrationRoute, Et as shouldLoadRegistrationOptions, F as buildEventRegistrationPaymentOptionsViewModel, H as planRegistrationDetailsContinuation, Hr as decideBookingQuestionsRestoration, Ht as getPortalSubjectEmail, I as decideEventRegistrationPayment, J as visitorHoldsOwnPlace, K as resolveRegistrationTicketContinuation, Kt as transformRegistrationOptionsResponse, M as getDeclinedPass, Mi as requestSignIn, N as isRegistrationLocked, Oi as PAGE_NAVIGATION, Ot as registrationQuestionsMessage, P as registrationFlowReducer, Po as publicEventPricingStrategy, Pt as findSelectedTicketType, Q as resolveEventRegistrationSubmitPlan, Qt as getTicketSelectionTotal, Ri as resolveEventRegistrationScopedEvents, So as resolveBookingSignupOffer, St as getSlidingScaleSelectionMessage, T as registrationPresentation, Tt as resolveHeldTicketPlaces, U as resolveGuestNextStepCheck, Ur as deriveBookingQuestions, V as planRegistrationDetailsCheck, Vr as bookingQuestionsPaymentSnapshotSchema, Vt as getImplicitSingleTicketType, W as resolveRegistrationAdmission, Wr as needsBookingQuestionsRefresh, Wt as getVisibleTicketTypes, Xt as getSingleSelectedPricingOptionId, _t as formatCentsAsCurrencyInput, bt as getRegistrationOccurrenceId, cn as eventSignInDraftStore, ct as findPreSelectedEvent, dn as toEventSignInDraft, dt as resolveRegistrationTarget, en as hasValidPricingOptionSelection, ft as resolveRouteRequiresPayment, gt as invitationSubmission, ht as createRegistrationDraftData, in as toRegistrationEvents, j as decideEventChoice, kt as validateFormData, ln as eventSignInEnds, lt as resolveDiscountContext, mt as beginWaitlistInvitation, on as toWholeSeriesRegistrationEvents, pt as toRegistrationRequestSubject, qr as toBookingQuestionsPaymentSnapshot, rn as getRegistrationStartAt, rt as calculateEventRegistrationPreviewTotal, sn as EVENT_SIGN_IN_FORM_ID, tn as normalizeTicketSelectionLines, un as eventSignInRestoration, ut as resolveEventRequiresPayment, vt as getCurrentTicketSelection, w as registrationPaymentRoute, wt as parseCurrencyInputToCents, xt as getSlidingScaleForEvent, yt as getEligibilityFlowFlags, z as getTicketSelectionPurpose } from "./display-CT8KMSpH.mjs";
3
+ import { Zt as resolveBookingBusinessTimeZone, zt as inferSiteDateLocale } from "./noop-B_f7RqLD.mjs";
4
+ import { c as checkBookingQuestionsAnswered, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
5
+ import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
6
6
  import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
7
- import { t as useDiscountCodeUi } from "./useDiscountCodeUi-CM-DTX5X.mjs";
8
- import { r as usePolling } from "./BookingMailingListNote-CCVXX1LN.mjs";
7
+ import { i as BlockApiError, n as useBlockApi } from "./context-DQnTyApV.mjs";
8
+ import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
9
+ import { i as useBookingNowIso, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-DjLjd0vc.mjs";
10
+ import { t as useDiscountCodeUi } from "./useDiscountCodeUi-AEifktGO.mjs";
11
+ import { a as usePolling, c as useBookingQuestionsRefresh, o as portalSessionIdentity, s as useSignInReturn } from "./BookingMailingListNote-y3qWjnOo.mjs";
9
12
  import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
10
- import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
11
- import { t as useBookingNowIso } from "./useBookingNowIso-BDmWkYUW.mjs";
12
- import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-CXWZoV-d.mjs";
13
+ import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-3uVu3WgG.mjs";
13
14
  import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
14
15
  import { z } from "zod";
15
16
  import { jsx } from "react/jsx-runtime";
16
17
  //#region ../commerce/src/purchase/event-registration-errors.ts
17
18
  const eventRegistrationErrors = {
19
+ invalidAnswers: {
20
+ endsCommand: false,
21
+ message: "Some questions still need an answer.",
22
+ action: "details"
23
+ },
18
24
  wholeCourseOnly: {
19
25
  endsCommand: false,
20
26
  message: "This course is booked as a whole course, so single dates can’t be booked on their own. Please go back to the event and book the full course.",
@@ -140,32 +146,6 @@ function logoutPortal(anchorId) {
140
146
  form.submit();
141
147
  }
142
148
  //#endregion
143
- //#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.ts
144
- /** Owns admission and its navigation commands; renderers receive decisions. */
145
- function useRegistrationAdmission(input) {
146
- const { admission, isAuthenticated, dispatchFlow } = input;
147
- const ticketContinuation = resolveRegistrationTicketContinuation({
148
- admission,
149
- ticketSelectionRequired: input.ticketSelectionRequired,
150
- hasValidTicketSelection: input.hasValidTicketSelection,
151
- isCheckingExistingRegistration: isAuthenticated && input.existingRegistrationLoading
152
- });
153
- const handleTicketsComplete = () => {
154
- if (ticketContinuation.kind === "blocked") return {
155
- ok: false,
156
- reason: "blocked",
157
- message: ticketContinuation.message
158
- };
159
- dispatchFlow({ type: "tickets-completed" });
160
- return { ok: true };
161
- };
162
- return {
163
- admission,
164
- ticketContinuation,
165
- handleTicketsComplete
166
- };
167
- }
168
- //#endregion
169
149
  //#region ../blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.ts
170
150
  function resolveRegistrationRecoveryAction(step, action) {
171
151
  if (step === "payment-failed") return "payment-options";
@@ -188,36 +168,247 @@ function resetRegistrationAfterExpiry(input) {
188
168
  input.setErrorMessage("");
189
169
  }
190
170
  /** Retry the retained submission in place; explicit payment uncertainty stays status-only. */
191
- function recoverRegistrationError(action, handlers) {
171
+ function recoverRegistrationError(action, handlers, navigation) {
192
172
  switch (action) {
193
- case "none": return;
194
- case "portal":
195
- window.location.assign(CUSTOMER_PORTAL_PATH);
196
- return;
197
- case "event":
198
- window.location.assign(window.location.pathname);
199
- return;
173
+ case "none": return { kind: "navigated" };
174
+ case "portal": return leavePage(CUSTOMER_PORTAL_PATH, navigation);
175
+ case "event": return leavePage(window.location.pathname, navigation);
200
176
  case "retry":
201
177
  handlers.clearError();
202
178
  handlers.setStep("select-payment");
203
- return;
179
+ return { kind: "navigated" };
204
180
  case "details":
205
181
  handlers.clearError();
206
182
  handlers.setStep("enter-details");
207
- return;
183
+ return { kind: "navigated" };
208
184
  case "payment-options":
209
185
  case "places":
210
186
  handlers.refreshOptions();
211
187
  handlers.clearError();
212
188
  handlers.setStep(action === "places" ? handlers.canJoinWaitlist ? "enter-details" : "select-tickets" : "select-payment");
213
- return;
189
+ return { kind: "navigated" };
214
190
  case "start":
215
191
  handlers.refreshOptions();
216
192
  handlers.reset();
217
- return;
193
+ return { kind: "navigated" };
218
194
  }
219
195
  }
220
196
  //#endregion
197
+ //#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationNavigation.ts
198
+ function signInBookingPath(target) {
199
+ const subject = target?.subject;
200
+ return resolveDedicatedBookingHref("/", subject?.kind === "wholeSeries" ? {
201
+ kind: "event_series",
202
+ eventId: subject.eventSeriesId
203
+ } : subject ? {
204
+ kind: "event_occurrence",
205
+ occurrenceId: subject.occurrenceId
206
+ } : { kind: "chooser" });
207
+ }
208
+ /** Presentation state for leaving the frame stays outside registration's state machine. */
209
+ function useRegistrationNavigation(input) {
210
+ const navigation = input.pageNavigation ?? PAGE_NAVIGATION;
211
+ const [showMagicLinkModal, openMagicLinkModal] = useState(false);
212
+ const [handOff, setHandOff] = useState(null);
213
+ const returnPath = signInBookingPath(input.target);
214
+ const changeSignInVisibility = useCallback((show) => {
215
+ if (!show) {
216
+ openMagicLinkModal(false);
217
+ return;
218
+ }
219
+ const outcome = requestSignIn(returnPath, () => openMagicLinkModal(true), navigation);
220
+ if (outcome.kind === "handOff") setHandOff({
221
+ ...outcome,
222
+ purpose: "signIn"
223
+ });
224
+ }, [navigation, returnPath]);
225
+ const recover = (action, handlers) => {
226
+ receiveHandOff(recoverRegistrationError(action, handlers, navigation), setHandOff);
227
+ };
228
+ return {
229
+ showMagicLinkModal,
230
+ changeSignInVisibility,
231
+ recover,
232
+ interceptPaymentSelection: useCallback((selection) => {
233
+ if (navigation.kind === "page" || selection.method === null || selection.method === "stripe" || selection.method === "free") return false;
234
+ changeSignInVisibility(true);
235
+ return true;
236
+ }, [navigation, changeSignInVisibility]),
237
+ presentation: handOff ? {
238
+ handOff,
239
+ dismissHandOff: () => setHandOff(null),
240
+ handOffBusinessName: input.businessName,
241
+ handOffOfferingLabel: input.offeringNoun?.label
242
+ } : {}
243
+ };
244
+ }
245
+ function receiveHandOff(outcome, receive) {
246
+ if (outcome.kind === "handOff") receive({
247
+ ...outcome,
248
+ purpose: "navigation"
249
+ });
250
+ }
251
+ //#endregion
252
+ //#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.ts
253
+ /** Owns admission and its navigation commands; renderers receive decisions. */
254
+ function useRegistrationAdmission(input) {
255
+ const { admission, isAuthenticated, dispatchFlow } = input;
256
+ const ticketContinuation = resolveRegistrationTicketContinuation({
257
+ admission,
258
+ ticketSelectionRequired: input.ticketSelectionRequired,
259
+ hasValidTicketSelection: input.hasValidTicketSelection,
260
+ isCheckingExistingRegistration: isAuthenticated && input.existingRegistrationLoading
261
+ });
262
+ const handleTicketsComplete = () => {
263
+ if (ticketContinuation.kind === "blocked") return {
264
+ ok: false,
265
+ reason: "blocked",
266
+ message: ticketContinuation.message
267
+ };
268
+ dispatchFlow({ type: "tickets-completed" });
269
+ return { ok: true };
270
+ };
271
+ return {
272
+ admission,
273
+ ticketContinuation,
274
+ handleTicketsComplete
275
+ };
276
+ }
277
+ //#endregion
278
+ //#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationQuestions.ts
279
+ /** The event series is the booking target: its question set applies to every date. */
280
+ function eventTarget(event) {
281
+ return event ? {
282
+ targetKey: event.seriesId,
283
+ publicPresentation: event.bookingQuestions
284
+ } : null;
285
+ }
286
+ /**
287
+ * Event registration's during-booking questions: what to show, the
288
+ * authenticated refresh, and keeping progress across a sign-in link. The
289
+ * answer state and both lifecycles are the ones the appointment form uses.
290
+ */
291
+ function useEventRegistrationQuestions(input) {
292
+ const { api, flow, dispatch, event, identity } = input;
293
+ const answers = flow.draft.bookingQuestions;
294
+ const target = useMemo(() => eventTarget(event), [event]);
295
+ const view = useMemo(() => deriveBookingQuestions(answers, target, identity), [
296
+ answers,
297
+ target,
298
+ identity
299
+ ]);
300
+ const dispatchAnswer = useCallback((answerEvent) => dispatch({
301
+ type: "booking-questions",
302
+ event: answerEvent
303
+ }), [dispatch]);
304
+ const refreshKey = needsBookingQuestionsRefresh({
305
+ target,
306
+ identity,
307
+ refreshed: answers.refreshed
308
+ }) ? target?.targetKey ?? null : null;
309
+ useBookingQuestionsRefresh({
310
+ api,
311
+ target: refreshKey ? {
312
+ kind: "event_series",
313
+ eventSeriesId: refreshKey
314
+ } : null,
315
+ targetKey: refreshKey,
316
+ identity,
317
+ dispatch: dispatchAnswer
318
+ });
319
+ const signIn = useEventSignInReturn(input);
320
+ const { scope } = view;
321
+ const answer = useCallback((fieldId, value) => dispatchAnswer({
322
+ type: "booking-question-answered",
323
+ scope,
324
+ fieldId,
325
+ value
326
+ }), [dispatchAnswer, scope]);
327
+ const chooseAnswerMode = useCallback((mode) => dispatchAnswer({
328
+ type: "booking-questions-answer-mode-set",
329
+ scope,
330
+ mode
331
+ }), [dispatchAnswer, scope]);
332
+ const keepRefused = useCallback(() => dispatchAnswer({
333
+ type: "booking-questions-keep-refused",
334
+ scope
335
+ }), [dispatchAnswer, scope]);
336
+ return {
337
+ presentation: view.presentation,
338
+ values: view.values,
339
+ answerMode: view.answerMode,
340
+ submission: view.submission,
341
+ fieldErrors: flow.questionFieldErrors,
342
+ answer,
343
+ chooseAnswerMode,
344
+ keepRefused,
345
+ paymentSnapshot: toBookingQuestionsPaymentSnapshot(view),
346
+ ...signIn
347
+ };
348
+ }
349
+ /**
350
+ * The shared sign-in owner, with event registration's draft. A returned draft
351
+ * waits for the page's events as well as the session check, so its event can
352
+ * be found again.
353
+ */
354
+ function useEventSignInReturn(input) {
355
+ const { flow, discountCode, dispatch, setDiscountCode } = input;
356
+ const events = input.eventSource.kind === "ready" ? input.registrationEvents : null;
357
+ const source = useMemo(() => ({
358
+ flow,
359
+ discountCode
360
+ }), [flow, discountCode]);
361
+ const restore = useCallback((draft, verifiedIdentity) => {
362
+ const restoration = eventSignInRestoration(draft, events ?? [], verifiedIdentity);
363
+ dispatch({
364
+ type: "sign-in-draft-restored",
365
+ restoration
366
+ });
367
+ if (restoration.selectionFound) setDiscountCode(draft.discountCode);
368
+ }, [
369
+ dispatch,
370
+ events,
371
+ setDiscountCode
372
+ ]);
373
+ return useSignInReturn({
374
+ siteId: input.siteId ?? "",
375
+ formId: EVENT_SIGN_IN_FORM_ID,
376
+ state: source,
377
+ store: eventSignInDraftStore,
378
+ toDraft: toEventSignInDraft,
379
+ ends: eventSignInEnds,
380
+ session: {
381
+ api: input.api,
382
+ identity: input.identity
383
+ },
384
+ ready: events !== null,
385
+ restore
386
+ });
387
+ }
388
+ //#endregion
389
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationPaymentReturn.ts
390
+ /**
391
+ * How a saved checkout lands once the page's events are ready. Its answers
392
+ * come back only for the session (or signed-out visitor) that started it.
393
+ */
394
+ function paymentReturnRestoration(pending, events, currentIdentity) {
395
+ return {
396
+ event: events.find((event) => event.selectionId === pending.selectedEventId) ?? null,
397
+ ticketLines: pending.ticketSelections,
398
+ ticketsCount: getTicketSelectionTotal(pending.ticketSelections),
399
+ formData: pending.formData,
400
+ guests: pending.guests,
401
+ slidingAmountInput: pending.selectedSlidingAmount === null ? "" : formatCentsAsCurrencyInput(pending.selectedSlidingAmount),
402
+ attendanceMode: pending.selectedAttendanceMode ?? null,
403
+ paymentSelection: pending.paymentSelection,
404
+ questions: pending.bookingQuestions ? decideBookingQuestionsRestoration({
405
+ kind: "payment_snapshot",
406
+ snapshot: pending.bookingQuestions,
407
+ currentIdentity
408
+ }) : null
409
+ };
410
+ }
411
+ //#endregion
221
412
  //#region ../blocks/src/system/runtime/nodes/event-registration/useTicketSelectionInitialization.ts
222
413
  /** Pick the single default once; removing or refreshing a line never picks it again. */
223
414
  function useTicketSelectionInitialization(input) {
@@ -278,18 +469,18 @@ function eligibilityLookupReducer(state, action) {
278
469
  }
279
470
  const initialExistingRegistrationLookupState = {
280
471
  tag: "idle",
281
- registration: null
472
+ registrations: []
282
473
  };
283
474
  function existingRegistrationLookupReducer(state, action) {
284
475
  switch (action.type) {
285
476
  case "reset": return initialExistingRegistrationLookupState;
286
477
  case "loading-started": return {
287
478
  tag: "loading",
288
- registration: state.registration
479
+ registrations: state.registrations
289
480
  };
290
481
  case "resolved": return {
291
482
  tag: "resolved",
292
- registration: action.registration
483
+ registrations: action.registrations
293
484
  };
294
485
  default: return assertNever(action);
295
486
  }
@@ -483,13 +674,13 @@ function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId },
483
674
  if (cancelled || requestIdRef.current !== requestId) return;
484
675
  dispatch({
485
676
  type: "resolved",
486
- registration: events.find((event) => event.occurrenceId === occurrenceId && event.status !== "cancelled" && event.transferState !== "transferred_out") ?? null
677
+ registrations: events.filter((event) => event.occurrenceId === occurrenceId && event.status !== "cancelled" && event.transferState !== "transferred_out")
487
678
  });
488
679
  } catch {
489
680
  if (cancelled || requestIdRef.current !== requestId) return;
490
681
  dispatch({
491
682
  type: "resolved",
492
- registration: null
683
+ registrations: []
493
684
  });
494
685
  }
495
686
  }
@@ -504,7 +695,7 @@ function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId },
504
695
  ]);
505
696
  return {
506
697
  state,
507
- registration: state.registration,
698
+ registrations: state.registrations,
508
699
  isLoading: state.tag === "loading"
509
700
  };
510
701
  }
@@ -701,6 +892,7 @@ const schema = z.object({
701
892
  selectedSlidingAmount: z.number().nullable(),
702
893
  discountCode: z.string(),
703
894
  mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
895
+ bookingQuestions: bookingQuestionsPaymentSnapshotSchema.optional(),
704
896
  timestamp: z.number().finite()
705
897
  });
706
898
  function key(siteId, submissionId) {
@@ -798,8 +990,20 @@ function clearEventPayment(siteId) {
798
990
  }
799
991
  //#endregion
800
992
  //#region ../blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.ts
801
- function registrationErrorPresentation(error) {
802
- const reason = error instanceof BlockApiError ? parseEventRegistrationErrorReason(error.tag) : null;
993
+ function parseEventRegistrationFailure(error) {
994
+ return {
995
+ ...parseBookingSubmissionFailure(error, "Something went wrong. Please try again."),
996
+ reason: error instanceof BlockApiError ? parseEventRegistrationErrorReason(error.tag) : null,
997
+ siteTermsFailure: siteTermsFailureKind(error),
998
+ isClientError: error instanceof BlockApiError && error.status < 500 && error.code !== "invalid_booking_response"
999
+ };
1000
+ }
1001
+ function registrationErrorPresentation(failure) {
1002
+ if (failure.reason === "invalidAnswers" || failure.answersNeeded || Object.keys(failure.questionFieldErrors).length > 0) return {
1003
+ message: failure.message,
1004
+ action: "details"
1005
+ };
1006
+ const reason = failure.reason;
803
1007
  if (reason) {
804
1008
  const { message, action } = eventRegistrationErrors[reason];
805
1009
  return {
@@ -807,7 +1011,7 @@ function registrationErrorPresentation(error) {
807
1011
  action
808
1012
  };
809
1013
  }
810
- if (error instanceof BlockApiError && error.status < 500 && error.code !== "invalid_booking_response") {
1014
+ if (failure.isClientError) {
811
1015
  const { message, action } = eventRegistrationErrors.invalidCommitInput;
812
1016
  return {
813
1017
  message,
@@ -893,15 +1097,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
893
1097
  }));
894
1098
  } catch (error) {
895
1099
  if (error instanceof BlockApiError && eventRegistrationErrorEndsCommand(error.tag)) commandRef.current = null;
896
- const { message, action } = registrationErrorPresentation(error);
897
- options.setErrorAction?.(action);
898
- options.setErrorMessage(message);
899
- options.setStep(failedRegistrationStep(error, method));
900
- return {
901
- ok: false,
902
- reason: "submission-failed",
903
- message
904
- };
1100
+ return reportFailedRegistration(options, error, method);
905
1101
  }
906
1102
  };
907
1103
  return (...args) => {
@@ -1032,7 +1228,8 @@ function savePendingCheckout(options, deps, prepared, checkoutAttemptId, referen
1032
1228
  guests: options.guests,
1033
1229
  selectedSlidingAmount: options.selectedSlidingAmount,
1034
1230
  discountCode: options.discountCode,
1035
- mailingListSignupNote
1231
+ mailingListSignupNote,
1232
+ ...options.bookingQuestionsSnapshot ? { bookingQuestions: options.bookingQuestionsSnapshot } : {}
1036
1233
  });
1037
1234
  }
1038
1235
  function registrationRequestIntentKey(request) {
@@ -1061,6 +1258,7 @@ function buildRegistrationRequest(options, prepared, invitation, method, passId,
1061
1258
  phone: options.formData.phone.trim() || void 0,
1062
1259
  notes: options.formData.notes.trim() || void 0,
1063
1260
  consentAccepted: options.formData.consentAccepted,
1261
+ bookingQuestions: options.bookingQuestions,
1064
1262
  mailingListOptIn: wantsMailingListSignup(options),
1065
1263
  paymentMethod: method,
1066
1264
  customerPassId: method === "pass" ? passId : void 0,
@@ -1078,10 +1276,30 @@ function invitationRequestCredential(credential) {
1078
1276
  }
1079
1277
  }
1080
1278
  /** Legal rejection returns to the intact draft, before any payment effect. */
1081
- function failedRegistrationStep(error, method) {
1082
- if (!siteTermsFailureKind(error)) return "error";
1279
+ function failedRegistrationStep(failure, method) {
1280
+ if (failure.reason === "invalidAnswers") return "enter-details";
1281
+ if (!failure.siteTermsFailure) return "error";
1083
1282
  return method === "pass_bundle" || method === "membership_bundle" ? "select-payment" : "enter-details";
1084
1283
  }
1284
+ /** Keep feedback, field errors and navigation together when a submission fails. */
1285
+ function reportFailedRegistration(options, error, method) {
1286
+ const parsed = parseEventRegistrationFailure(error);
1287
+ const { message, action } = registrationErrorPresentation(parsed);
1288
+ const failure = {
1289
+ message,
1290
+ questionFieldErrors: parsed.questionFieldErrors,
1291
+ answersNeeded: parsed.answersNeeded
1292
+ };
1293
+ options.setErrorAction?.(action);
1294
+ options.setErrorMessage(message);
1295
+ options.setSubmissionFailure(failure);
1296
+ options.setStep(failedRegistrationStep(parsed, method));
1297
+ return {
1298
+ ok: false,
1299
+ reason: "submission-failed",
1300
+ ...failure
1301
+ };
1302
+ }
1085
1303
  //#endregion
1086
1304
  //#region ../blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.ts
1087
1305
  function buildCandidate(input) {
@@ -1806,6 +2024,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
1806
2024
  const [submissionErrorAction, setErrorAction] = useState("retry");
1807
2025
  const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
1808
2026
  const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
2027
+ const portalIdentity = portalSessionIdentity(api.config);
1809
2028
  const waitlistClaim = flowState.invitation;
1810
2029
  const claimLookup = deps.useWaitlistClaim(waitlistClaim.kind === "none" ? null : waitlistClaim.request);
1811
2030
  useEffect(() => {
@@ -1828,7 +2047,6 @@ function useEventRegistrationWizardWithDeps(options, deps) {
1828
2047
  ]);
1829
2048
  const errorMessage = waitlistClaim.kind === "error" ? waitlistClaim.message : submissionErrorMessage;
1830
2049
  const errorAction = waitlistClaim.kind === "error" ? waitlistClaim.action : submissionErrorAction;
1831
- const [showMagicLinkModal, setShowMagicLinkModal] = useState(false);
1832
2050
  const selectionLocked = isRegistrationLocked(step);
1833
2051
  useEffect(() => {
1834
2052
  if (selectionLocked || portalAuthState !== "authenticated" || !portalProfile) return;
@@ -1845,6 +2063,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
1845
2063
  selectedEvent
1846
2064
  }), [options.occurrenceContext, selectedEvent]);
1847
2065
  const registrationOccurrenceId = getRegistrationOccurrenceId(registrationTarget);
2066
+ const registrationNavigation = useRegistrationNavigation({
2067
+ pageNavigation: options.pageNavigation,
2068
+ target: registrationTarget,
2069
+ businessName: options.siteName,
2070
+ offeringNoun: options.offeringNoun
2071
+ });
2072
+ const { showMagicLinkModal, changeSignInVisibility: setShowMagicLinkModal, interceptPaymentSelection } = registrationNavigation;
1848
2073
  const currentEvent = selectedEvent ?? preSelectedEvent;
1849
2074
  const commandRef = useRef(null);
1850
2075
  const setStep = useCallback((nextStep) => {
@@ -1900,6 +2125,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
1900
2125
  isAuthenticated: portalAuthState === "authenticated",
1901
2126
  occurrenceId: registrationOccurrenceId
1902
2127
  });
2128
+ const existingRegistrations = useMemo(() => existingRegistrationResult.registrations.filter((registration) => registration.occurrenceId === registrationOccurrenceId), [existingRegistrationResult.registrations, registrationOccurrenceId]);
1903
2129
  const eligibility = eligibilityResult.eligibility;
1904
2130
  const eligibilityLoading = eligibilityResult.isLoading;
1905
2131
  const eligibilityError = eligibilityResult.error;
@@ -1940,26 +2166,29 @@ function useEventRegistrationWizardWithDeps(options, deps) {
1940
2166
  });
1941
2167
  }, [eligibility]);
1942
2168
  const verification = paymentController.verification;
2169
+ const [paymentReturn, setPaymentReturn] = useState(null);
1943
2170
  deps.useEventRegistrationStripeReturn({
1944
2171
  siteId: api.config.siteId,
1945
2172
  verify: paymentController.verify,
1946
2173
  restore: (pending) => {
1947
2174
  paymentController.restoreMailingListNote(pending.mailingListSignupNote);
1948
- setFormData(pending.formData);
1949
- setSelectedTicketLines(pending.ticketSelections);
1950
- setTicketsCount(getTicketSelectionTotal(pending.ticketSelections));
1951
- setGuests(pending.guests);
1952
2175
  discountUi.setDiscountCode(pending.discountCode);
1953
- setSelectedSlidingAmountInput(pending.selectedSlidingAmount === null ? "" : formatCentsAsCurrencyInput(pending.selectedSlidingAmount));
1954
- setSelectedAttendanceMode(pending.selectedAttendanceMode ?? null);
1955
- const event = registrationEvents.find((item) => item.selectionId === pending.selectedEventId);
1956
- if (event) setSelectedEvent(event);
1957
- dispatchFlow({
1958
- type: "set-manual-payment-selection",
1959
- selection: pending.paymentSelection
1960
- });
2176
+ setPaymentReturn(pending);
1961
2177
  }
1962
2178
  });
2179
+ useEffect(() => {
2180
+ if (!paymentReturn || options.eventSource.kind !== "ready") return;
2181
+ setPaymentReturn(null);
2182
+ dispatchFlow({
2183
+ type: "payment-return-restored",
2184
+ restoration: paymentReturnRestoration(paymentReturn, registrationEvents, portalIdentity)
2185
+ });
2186
+ }, [
2187
+ options.eventSource.kind,
2188
+ paymentReturn,
2189
+ portalIdentity,
2190
+ registrationEvents
2191
+ ]);
1963
2192
  const requireGuestDetails = useMemo(() => {
1964
2193
  return (selectedEvent ?? preSelectedEvent)?.requireGuestDetails === true;
1965
2194
  }, [selectedEvent, preSelectedEvent]);
@@ -2115,14 +2344,27 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2115
2344
  formData,
2116
2345
  requiresConsent: Boolean(currentEvent?.consent),
2117
2346
  requireGuestDetails,
2118
- guests
2347
+ guests,
2348
+ questions: checkBookingQuestionsAnswered(questions)
2119
2349
  });
2120
2350
  if (check.kind === "blocked") return blockDetailsCompletion(check.blocker);
2121
2351
  setErrors(check.errors);
2122
2352
  setGuestErrors(check.guestErrors);
2353
+ dispatchFlow({
2354
+ type: "question-errors-set",
2355
+ fieldErrors: check.questionFieldErrors
2356
+ });
2123
2357
  const siteTermsAgreed = siteTerms.requireAgreement();
2124
- if (check.kind === "invalid") setGuestSectionShake(true);
2125
- if (check.kind === "invalid" || !siteTermsAgreed) return {
2358
+ if (check.kind === "invalid") {
2359
+ setGuestSectionShake(true);
2360
+ setErrorMessage(check.message);
2361
+ return {
2362
+ ok: false,
2363
+ reason: "validation-failed",
2364
+ message: check.message
2365
+ };
2366
+ }
2367
+ if (!siteTermsAgreed) return {
2126
2368
  ok: false,
2127
2369
  reason: "validation-failed",
2128
2370
  message: "Check the highlighted fields and try again."
@@ -2227,9 +2469,28 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2227
2469
  });
2228
2470
  const selectionMethod = paymentSelection.method;
2229
2471
  const shouldShowDiscountToggle = discountContext !== null && discountUi.manualCodeEntryAllowed && (selectionMethod === "stripe" || selectionMethod === "pass_bundle" || selectionMethod === "membership_bundle");
2472
+ const questions = useEventRegistrationQuestions({
2473
+ api,
2474
+ siteId: api.config.siteId,
2475
+ flow: flowState,
2476
+ dispatch: dispatchFlow,
2477
+ event: currentEvent,
2478
+ identity: portalIdentity,
2479
+ eventSource: options.eventSource,
2480
+ registrationEvents,
2481
+ discountCode: discountUi.discountCode,
2482
+ setDiscountCode: discountUi.setDiscountCode
2483
+ });
2230
2484
  const handleSubmit = deps.useEventRegistrationSubmit({
2231
2485
  openPayment: paymentController.openPayment,
2232
2486
  commandRef,
2487
+ setSubmissionFailure: (failure) => {
2488
+ if (failure.answersNeeded) questions.keepRefused();
2489
+ dispatchFlow({
2490
+ type: "submission-failed",
2491
+ failure
2492
+ });
2493
+ },
2233
2494
  setErrorAction,
2234
2495
  api: siteTerms.api,
2235
2496
  registrationTarget,
@@ -2237,6 +2498,8 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2237
2498
  ticketSelections,
2238
2499
  selectedSlidingAmount,
2239
2500
  formData,
2501
+ bookingQuestions: questions.submission,
2502
+ bookingQuestionsSnapshot: questions.paymentSnapshot,
2240
2503
  mailingListSignup,
2241
2504
  requireGuestDetails,
2242
2505
  guests,
@@ -2284,7 +2547,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2284
2547
  commandRef.current = null;
2285
2548
  setOptionsRefreshKey((value) => value + 1);
2286
2549
  };
2287
- const handleRetry = () => recoverRegistrationError(resolveRegistrationRecoveryAction(step, errorAction), {
2550
+ const handleRetry = () => registrationNavigation.recover(resolveRegistrationRecoveryAction(step, errorAction), {
2288
2551
  canJoinWaitlist: admission.kind === "waitlist",
2289
2552
  refreshOptions: () => setOptionsRefreshKey((value) => value + 1),
2290
2553
  clearError: () => setErrorMessage(""),
@@ -2303,11 +2566,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2303
2566
  }
2304
2567
  });
2305
2568
  const handlePaymentSelectionChange = useCallback((selection) => {
2569
+ if (interceptPaymentSelection(selection)) return;
2306
2570
  dispatchFlow({
2307
2571
  type: "set-manual-payment-selection",
2308
2572
  selection
2309
2573
  });
2310
- }, []);
2574
+ }, [interceptPaymentSelection]);
2311
2575
  const presentation = presentWizardStep({
2312
2576
  step,
2313
2577
  flow: flowState,
@@ -2326,7 +2590,9 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2326
2590
  ticketsCount,
2327
2591
  paymentMethod: paymentSelection.method
2328
2592
  });
2593
+ const displayEvent = withRegistrationAvailability(currentEvent, eligibilityLoading ? null : eligibility, selectedAttendanceMode);
2329
2594
  return {
2595
+ ...registrationNavigation.presentation,
2330
2596
  api,
2331
2597
  nowIso,
2332
2598
  directPaymentOptions,
@@ -2338,7 +2604,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2338
2604
  events,
2339
2605
  maxTicketsNum: waitlistClaim.kind === "ready" ? waitlistClaim.restoration.ticketsCount : options.maxTicketsNum,
2340
2606
  scopedEvents,
2341
- preSelectedEvent,
2607
+ preSelectedEvent: preSelectedEvent?.selectionId === currentEvent?.selectionId ? displayEvent : preSelectedEvent,
2342
2608
  hasPreSelectedContext,
2343
2609
  presentation,
2344
2610
  flow: flowState,
@@ -2349,7 +2615,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2349
2615
  admission,
2350
2616
  ticketContinuation,
2351
2617
  handleTicketsComplete,
2352
- selectedEvent,
2618
+ selectedEvent: selectedEvent ? displayEvent : null,
2353
2619
  setSelectedEvent: (value) => {
2354
2620
  if (!selectionLocked) setSelectedEvent(value);
2355
2621
  },
@@ -2399,6 +2665,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2399
2665
  guestSectionShake,
2400
2666
  handleGuestShakeEnd,
2401
2667
  errorMessage,
2668
+ questionFieldErrors: flowState.questionFieldErrors,
2669
+ bookingQuestions: questions,
2670
+ /** Where a sign-in link brings the booker back to, keeping this booking for that attempt. */
2671
+ signInReturnPath: questions.signInReturnPath,
2672
+ /** The message under the details form while questions there need attention. */
2673
+ questionsMessage: registrationQuestionsMessage(flowState.questionFieldErrors, errorMessage),
2402
2674
  errorAction,
2403
2675
  portalAuthState,
2404
2676
  portalProfile,
@@ -2418,7 +2690,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
2418
2690
  registrationOptionsState: eligibilityResult.state,
2419
2691
  eligibilityLoading: eligibilityLoading || checkingNextStep,
2420
2692
  eligibilityError,
2421
- existingRegistration: existingRegistrationResult.registration,
2693
+ existingRegistrations,
2422
2694
  existingRegistrationLoading: existingRegistrationResult.isLoading || portalAuthState === "authenticated" && eligibilityLoading,
2423
2695
  existingRegistrationState: existingRegistrationResult.state,
2424
2696
  registrationState,
@@ -2527,7 +2799,7 @@ function resolveWizardPaymentView(input) {
2527
2799
  }
2528
2800
  //#endregion
2529
2801
  //#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
2530
- const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-D_14yqAU.mjs"));
2802
+ const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-Cf-HRHtb.mjs"));
2531
2803
  /** The one Stripe mount, shared by the standard wizard and headless arrangements. */
2532
2804
  function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
2533
2805
  if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {