@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,9 +1,9 @@
1
1
  "use client";
2
- import { t as BookingFormClient } from "./booking-form.client-BCXwOnhc.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
4
- import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
2
+ import { t as BookingFormClient } from "./booking-form.client-Cr5G-HHO.mjs";
3
+ import { t as BlockApiProvider } from "./context-DQnTyApV.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DbHX4JOS.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UdAlnZGQ.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/bookingForm.tsx
@@ -16,12 +16,16 @@ const enhance = (root, props) => {
16
16
  if (!apiBaseUrl) throw new Error("[sdk:islands] booking-form requires apiBaseUrl");
17
17
  const apiConfig = buildRouteIslandApiConfig({
18
18
  apiBaseUrl,
19
+ readAuthority: props.readAuthority,
19
20
  portalToken,
20
21
  siteId
21
22
  });
22
23
  return mountReactIsland(root, ({ root: reactRoot }) => {
23
24
  reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
24
- config: apiConfig,
25
+ config: {
26
+ ...apiConfig,
27
+ pageNavigation: props.render.hydration.pageNavigation
28
+ },
25
29
  children: /* @__PURE__ */ jsx(BookingFormClient, { ...props })
26
30
  }));
27
31
  });
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ //#region ../site-contracts/src/siteData/bookingQuestions.ts
3
+ /**
4
+ * The read a booking flow makes for a question set's presentation. This is
5
+ * its one definition: the block client and `@riverbankcms/api`'s endpoint
6
+ * both build on it.
7
+ */
8
+ const BEFORE_BOOKING_QUESTIONS_ROUTE = {
9
+ path: "/public/sites/{siteId}/bookings/questions",
10
+ method: "POST"
11
+ };
12
+ //#endregion
13
+ export { BEFORE_BOOKING_QUESTIONS_ROUTE as t };
@@ -4,9 +4,11 @@ const BOOK_TARGET_PARAMS = {
4
4
  service: "service",
5
5
  resource: "resource",
6
6
  occurrence: "occurrence",
7
- event: "event"
7
+ event: "event",
8
+ category: "category"
8
9
  };
9
10
  function resolveDedicatedBookingTarget(pathname) {
11
+ if (pathname === "/embed" || pathname.startsWith("/embed/")) return { kind: "embed" };
10
12
  const internalPublishedMatch = pathname.match(/^\/internal-sites\/([^/]+)\/([^/]+)\/published(?:\/.*)?$/);
11
13
  if (internalPublishedMatch) {
12
14
  const hostKey = internalPublishedMatch[1];
@@ -22,7 +24,7 @@ function resolveDedicatedBookingTarget(pathname) {
22
24
  function resolveDedicatedBookingPath(pathname) {
23
25
  const target = resolveDedicatedBookingTarget(pathname);
24
26
  if (target.kind === "internal_published_preview") return `/internal-sites/${target.hostKey}/${target.siteIdentifier}/published/book`;
25
- return "/book";
27
+ return target.kind === "embed" ? "/embed/book" : "/book";
26
28
  }
27
29
  function resolveDedicatedBookingHref(pathname, bookingTarget = { kind: "chooser" }) {
28
30
  const bookingPath = resolveDedicatedBookingPath(pathname);
@@ -44,5 +46,7 @@ function resolveDedicatedBookingHref(pathname, bookingTarget = { kind: "chooser"
44
46
  const queryString = params.toString();
45
47
  return queryString ? `${bookingPath}?${queryString}` : bookingPath;
46
48
  }
49
+ const EMBED_SEGMENT = "[a-z0-9][a-z0-9-]*";
50
+ new RegExp(`^/(?:events/${EMBED_SEGMENT}(?:/${EMBED_SEGMENT})?|services/${EMBED_SEGMENT})$`, "i");
47
51
  //#endregion
48
52
  export { resolveDedicatedBookingHref as t };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { F as toHeadlessPaymentSelection, Gn as normalizeBookingFormConfig, I as toInternalPaymentSelection, Kn as normalizeBookingServices, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Tr as normalizeEventRegistrationPageSurfaceSubject, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, bn as resolveRuntimeEventDestination, ir as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, yr as readRuntimeNow } from "./wizardSteps-DtkhwKXK.mjs";
3
- import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-BCXwOnhc.mjs";
4
- import { q as publicEventSchema } from "./noop-ByVtIWf4.mjs";
5
- import { t as assertNever } from "./src-DjnxOjXG.mjs";
6
- import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-CIQw6vNy.mjs";
7
- import { n as useBlockApi, t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
2
+ import { $ as resolveHeadlessEventRegistrationStatus, Ci as readRuntimeNow, Ei as createHostedBlockApiConfig, Li as normalizeEventRegistrationPageSurfaceSubject, Q as resolveEventRegistrationSubmitPlan, Sr as normalizeBookingServices, Xt as getSingleSelectedPricingOptionId, Y as deriveEventRegistrationSteps, Yr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Z as normalizeEventRegistrationMaxTickets, Zn as resolveRuntimeEventDestination, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, xn as resolveRegistrationDisplay, xr as normalizeBookingFormConfig } from "./display-CT8KMSpH.mjs";
3
+ import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-Cr5G-HHO.mjs";
4
+ import { R as publicEventSchema } from "./noop-B_f7RqLD.mjs";
5
+ import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
6
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-DQnTyApV.mjs";
7
+ import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-Do7Q0wRG.mjs";
8
8
  import * as React$1 from "react";
9
9
  import React, { useCallback, useEffect, useMemo, useReducer } from "react";
10
10
  //#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
@@ -185,17 +185,9 @@ function useEventRegistrationControllerWithDeps(options, deps) {
185
185
  isAuthenticated: wizard.portalAuthState === "authenticated",
186
186
  showMagicLinkModal: wizard.showMagicLinkModal
187
187
  },
188
- existingRegistration: {
189
- state: resolveExistingRegistrationState(wizard),
190
- registration: wizard.existingRegistration
191
- },
188
+ existingRegistrations: resolveExistingRegistrations(wizard),
192
189
  waitlistClaim: wizard.waitlistClaim,
193
- terminal: {
194
- result: wizard.registrationResult,
195
- errorMessage: wizard.errorMessage,
196
- verification: wizard.verification,
197
- paymentStatusRecovery: wizard.paymentStatusRecovery
198
- },
190
+ terminal: projectRegistrationTerminal(wizard),
199
191
  actions: {
200
192
  selectEvent: wizard.handleEventSelect,
201
193
  selectAttendanceMode: wizard.setSelectedAttendanceMode,
@@ -339,19 +331,25 @@ function useEventRegistrationWizardControllerWithDeps(options, deps) {
339
331
  siteName: options.siteName
340
332
  }) };
341
333
  }
334
+ function resolveExistingRegistrations(wizard) {
335
+ return {
336
+ state: resolveExistingRegistrationState(wizard),
337
+ registrations: wizard.existingRegistrations
338
+ };
339
+ }
342
340
  function resolveExistingRegistrationState(wizard) {
343
341
  switch (wizard.existingRegistrationState.tag) {
344
342
  case "idle": return {
345
343
  tag: "idle",
346
- value: wizard.existingRegistration
344
+ value: wizard.existingRegistrations
347
345
  };
348
346
  case "loading": return {
349
347
  tag: "loading",
350
- value: wizard.existingRegistration
348
+ value: wizard.existingRegistrations
351
349
  };
352
350
  case "resolved": return {
353
351
  tag: "loaded",
354
- value: wizard.existingRegistration
352
+ value: wizard.existingRegistrations
355
353
  };
356
354
  }
357
355
  }
@@ -382,7 +380,17 @@ function projectRegistrationAttendee(wizard) {
382
380
  values: wizard.formData,
383
381
  errors: wizard.errors,
384
382
  siteTerms: wizard.siteTerms,
385
- mailingListSignup: wizard.mailingListSignup
383
+ mailingListSignup: wizard.mailingListSignup,
384
+ bookingQuestions: wizard.bookingQuestions
385
+ };
386
+ }
387
+ function projectRegistrationTerminal(wizard) {
388
+ return {
389
+ result: wizard.registrationResult,
390
+ errorMessage: wizard.errorMessage,
391
+ questionFieldErrors: wizard.questionFieldErrors,
392
+ verification: wizard.verification,
393
+ paymentStatusRecovery: wizard.paymentStatusRecovery
386
394
  };
387
395
  }
388
396
  //#endregion
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
- import { i as carouselRegionAttributes } from "./carousel.shared-DBnWEJzo.mjs";
4
- import { t as CarouselNodeClient } from "./carousel.client-BO7sCEpH.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
3
+ import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
4
+ import { t as CarouselNodeClient } from "./carousel.client-BD4DXMtI.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
3
- import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
2
+ import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
3
+ import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
4
4
  import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
5
5
  import React, { useCallback, useEffect, useRef, useState } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1667,19 +1667,56 @@ function useCarouselSelection(api) {
1667
1667
  }, [api]);
1668
1668
  return selection;
1669
1669
  }
1670
- function useAutoplayVisibility(api, enabled) {
1670
+ /** Subscribe so a changed visitor preference also stops an already-running carousel. */
1671
+ function useCarouselReducedMotion() {
1672
+ return React.useSyncExternalStore(subscribeReducedMotion, prefersReducedMotion, () => true);
1673
+ }
1674
+ function prefersReducedMotion() {
1675
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1676
+ }
1677
+ function subscribeReducedMotion(onChange) {
1678
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)");
1679
+ query.addEventListener("change", onChange);
1680
+ return () => query.removeEventListener("change", onChange);
1681
+ }
1682
+ /**
1683
+ * One answer to "should it move now": not while the pointer is over the carousel or keyboard focus
1684
+ * is anywhere in it, arrows and dots included. Embla pauses for the pointer and for a hidden tab
1685
+ * (resuming only if it was playing); these listeners run after its own, so a pointer leaving or
1686
+ * releasing never restarts a carousel that still holds focus, and losing focus never restarts one
1687
+ * that's still hovered.
1688
+ */
1689
+ function useAutoplayPauses(api, enabled) {
1671
1690
  React.useEffect(() => {
1672
1691
  if (!api || !enabled) return;
1673
1692
  const autoplay = api.plugins().autoplay;
1674
1693
  if (!autoplay) return;
1675
- const handleVisibility = () => {
1676
- if (document.hidden) autoplay.stop();
1677
- else autoplay.play();
1694
+ const root = carouselRoot(api.rootNode());
1695
+ const held = (focusTarget = document.activeElement) => root.matches(":hover") || focusTarget instanceof Node && root.contains(focusTarget);
1696
+ const onFocusIn = () => autoplay.stop();
1697
+ const onFocusOut = (event) => {
1698
+ if (held(event.relatedTarget)) autoplay.stop();
1699
+ else if (!document.hidden) autoplay.play();
1700
+ };
1701
+ const onRelease = () => {
1702
+ if (held()) autoplay.stop();
1703
+ };
1704
+ root.addEventListener("focusin", onFocusIn);
1705
+ root.addEventListener("focusout", onFocusOut);
1706
+ root.addEventListener("mouseleave", onRelease);
1707
+ api.on("pointerUp", onRelease);
1708
+ return () => {
1709
+ root.removeEventListener("focusin", onFocusIn);
1710
+ root.removeEventListener("focusout", onFocusOut);
1711
+ root.removeEventListener("mouseleave", onRelease);
1712
+ api.off("pointerUp", onRelease);
1678
1713
  };
1679
- document.addEventListener("visibilitychange", handleVisibility);
1680
- return () => document.removeEventListener("visibilitychange", handleVisibility);
1681
1714
  }, [api, enabled]);
1682
1715
  }
1716
+ /** Pointer and focus pauses cover the whole carousel, not only its viewport. */
1717
+ function carouselRoot(emblaRoot) {
1718
+ return emblaRoot.closest(".carousel-root") ?? emblaRoot;
1719
+ }
1683
1720
  //#endregion
1684
1721
  //#region ../blocks/src/system/runtime/nodes/carousel.client.tsx
1685
1722
  function normalizeCarouselProps(input) {
@@ -1717,7 +1754,7 @@ const CarouselNodeClient = (props) => {
1717
1754
  function EnhancedCarousel(props) {
1718
1755
  const slides = carouselContents(props);
1719
1756
  const [status, setStatus] = React.useState("");
1720
- const { normalized, plugins, canAutoplay } = useCarouselSettings(props, slides.length);
1757
+ const { normalized, plugins, canAutoplay, arrangement } = useCarouselSettings(props, slides.length);
1721
1758
  const [viewportRef, api] = useEmblaCarousel({
1722
1759
  align: "start",
1723
1760
  axis: "x",
@@ -1726,8 +1763,7 @@ function EnhancedCarousel(props) {
1726
1763
  loop: normalized.loop
1727
1764
  }, plugins);
1728
1765
  const selection = useCarouselSelection(api);
1729
- useAutoplayVisibility(api, canAutoplay);
1730
- const arrangement = props.mode === "arrangement" ? props : void 0;
1766
+ useAutoplayPauses(api, canAutoplay);
1731
1767
  const announce = () => {
1732
1768
  if (arrangement && api) setStatus(carouselStatus(api.selectedScrollSnap(), arrangement.slides));
1733
1769
  };
@@ -1791,19 +1827,29 @@ function CarouselRoot({ props, normalized, canAutoplay, children }) {
1791
1827
  children
1792
1828
  });
1793
1829
  }
1794
- /** Arrangement carousels have visible controls and never auto-rotate. */
1830
+ /** The shared owner resolves arrangement behavior; the client applies visitor preferences. */
1795
1831
  function useCarouselSettings(props, count) {
1796
- const normalized = normalizeCarouselProps(props.mode === "arrangement" ? arrangementCarouselSettings(props) : props);
1797
- const canAutoplay = normalized.autoplay && count > 1;
1832
+ const settings = props.mode === "arrangement" ? arrangementCarouselSettings(props) : {
1833
+ ...props,
1834
+ indicator: void 0
1835
+ };
1836
+ const normalized = normalizeCarouselProps(settings);
1837
+ const reducedMotion = useCarouselReducedMotion();
1838
+ const canAutoplay = normalized.autoplay && count > 1 && !reducedMotion;
1798
1839
  return {
1799
1840
  normalized,
1800
1841
  plugins: React.useMemo(() => canAutoplay ? [Autoplay({
1801
1842
  delay: normalized.autoplayDelay,
1802
1843
  stopOnMouseEnter: true,
1803
1844
  stopOnFocusIn: true,
1804
- stopOnInteraction: false
1845
+ stopOnInteraction: false,
1846
+ rootNode: carouselRoot
1805
1847
  })] : void 0, [canAutoplay, normalized.autoplayDelay]),
1806
- canAutoplay
1848
+ canAutoplay,
1849
+ arrangement: props.mode === "arrangement" ? {
1850
+ ...props,
1851
+ indicator: settings.indicator ?? props.indicator
1852
+ } : void 0
1807
1853
  };
1808
1854
  }
1809
1855
  function CarouselFrame(props) {
@@ -45,6 +45,8 @@ function carouselShape(count, _arrangement) {
45
45
  return count <= 1 ? "static" : "carousel";
46
46
  }
47
47
  function arrangementCarouselSettings(props) {
48
+ const autoAdvance = props.arrangement === "track" && props.autoAdvance === true;
49
+ const indicator = autoAdvance ? "dots" : props.indicator;
48
50
  return {
49
51
  slidesToShow: props.arrangement === "slides" ? 1 : {
50
52
  mobile: 1,
@@ -53,11 +55,12 @@ function arrangementCarouselSettings(props) {
53
55
  },
54
56
  transition: "slide",
55
57
  showControls: true,
56
- showDots: props.indicator === "dots",
58
+ showDots: indicator === "dots",
57
59
  arrowVisibility: "always",
58
- autoplay: false,
60
+ autoplay: autoAdvance,
59
61
  autoplayDelay: 5e3,
60
- loop: false
62
+ loop: autoAdvance,
63
+ indicator
61
64
  };
62
65
  }
63
66
  function carouselStatus(index, slides) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
- import { t as CartClient } from "./cart.client-B7JfA19I.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-CXF5wxdg.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
3
+ import { t as CartClient } from "./cart.client-CIfbTLHS.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-CO1Y8lFd.mjs";
5
5
  //#region src/rendering/islands/enhancers/cart.tsx
6
6
  const decode = defineIslandPropsDecoder("cart");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as CartController } from "./shop-commerce-B2UmrQg_.mjs";
2
+ import { t as CartController } from "./shop-commerce-bo0Z6kwf.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/cart.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
- import { t as CheckoutClient } from "./checkout.client-DraalWdH.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-CXF5wxdg.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
3
+ import { t as CheckoutClient } from "./checkout.client-C4l2KjtV.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-CO1Y8lFd.mjs";
5
5
  //#region src/rendering/islands/enhancers/checkout.tsx
6
6
  const decode = defineIslandPropsDecoder("checkout");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as CheckoutController } from "./shop-commerce-B2UmrQg_.mjs";
2
+ import { n as CheckoutController } from "./shop-commerce-bo0Z6kwf.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { ki as canonicalUrl } from "./display-CT8KMSpH.mjs";
2
3
  //#region ../blocks/src/system/runtime/shared/utils/checkoutUrls.ts
3
4
  /**
4
5
  * Build return URLs for Stripe checkout redirect.
@@ -10,8 +11,8 @@
10
11
  * @param anchorId - Block anchor ID for the return URL hash fragment.
11
12
  * @returns Object with success and cancel URLs
12
13
  */
13
- function buildCheckoutReturnUrls(paramName, anchorId, returnParams = {}) {
14
- const currentUrl = new URL(window.location.href);
14
+ function buildCheckoutReturnUrls(paramName, anchorId, returnParams = {}, navigation) {
15
+ const currentUrl = new URL(canonicalUrl(window.location.href, navigation));
15
16
  const hash = `#${anchorId}`;
16
17
  const successParams = new URLSearchParams(currentUrl.search);
17
18
  successParams.set(paramName, "success");