@riverbankcms/sdk 0.165.0 → 0.167.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 (246) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
  4. package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-Bs3WxFgr.d.ts} +20 -258
  5. package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +26 -3
  6. package/dist/_dts/{client-BkkExozE.d.ts → client-CwsI23pj.d.ts} +13 -1
  7. package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-CAeP_-cV.d.ts} +3 -3
  8. package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
  9. package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
  11. package/dist/_dts/{index-DKNEgSOS.d.ts → index-5_jf52sZ.d.ts} +2 -2
  12. package/dist/_dts/{index-CQfJhOEA.d.ts → index-C20yUyob.d.ts} +1 -1
  13. package/dist/_dts/{index-CRRiddNp.d.ts → index-CS6b1B-c.d.ts} +4 -4
  14. package/dist/_dts/{index-B4ozSzFP.d.ts → index-ChpjHK0U.d.ts} +9737 -8316
  15. package/dist/_dts/{index-BdkHhyf8.d.ts → index-D7EbliE3.d.ts} +1 -1
  16. package/dist/_dts/{index-RXkE3a7M.d.ts → index-DeHDwMfu.d.ts} +4 -3
  17. package/dist/_dts/{index-DAPTSmBM.d.ts → index-RugyUnqR.d.ts} +2499 -2218
  18. package/dist/_dts/{index-C_3kdrUb.d.ts → index-bDln38Hm.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-CTqcL7CS.d.ts} +9 -6
  20. package/dist/_dts/resolveBlockData-C3s9WMPs.d.ts +136 -0
  21. package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-JPwgRxwh.d.ts} +3 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +9 -6
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
  30. package/dist/_dts/sdk/src/data/types.d.ts +54 -0
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +9 -8
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +260 -0
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  50. package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +7 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  55. package/dist/_dts/{types-BDF73NzM.d.ts → types-BlaCuPLr.d.ts} +2 -2
  56. package/dist/_dts/{types-Cl0nP6al.d.ts → types-CwtTcaQP.d.ts} +3 -3
  57. package/dist/_dts/{types-mstFvhK4.d.ts → types-D-WElMCy.d.ts} +8 -7
  58. package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +31 -24
  60. package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-CCVXX1LN.mjs} +2 -2
  61. package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +167 -18
  62. package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +6 -6
  64. package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
  65. package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-DAeQPV76.mjs} +11 -30
  66. package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-Bus9R0bj.mjs} +137 -61
  67. package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
  68. package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-DPBLjGwj.mjs} +75 -13
  69. package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
  71. package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-CEumpN7i.mjs} +35 -51
  72. package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +113 -11
  73. package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-BVO-qx4q.mjs} +2 -2
  74. package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
  75. package/dist/client/{Page-DUr2YhFR.mjs → Page-D4_H_u9V.mjs} +23892 -32266
  76. package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
  77. package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Dptantmg.mjs} +3 -3
  78. package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-BxEGsKUx.mjs} +19 -19
  79. package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
  80. package/dist/client/{accordion-3CYNWzTS.mjs → accordion--EUHmEGa.mjs} +1 -1
  81. package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-BCXwOnhc.mjs} +19 -14
  82. package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-sHHcdism.mjs} +4 -4
  83. package/dist/client/bookings.mjs +6 -6
  84. package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-Cp9xPBFZ.mjs} +2 -2
  85. package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
  86. package/dist/client/{cart-CDc6x9cR.mjs → cart-CCZZC-Lq.mjs} +3 -3
  87. package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-B7JfA19I.mjs} +1 -1
  88. package/dist/client/{checkout-CkxPqSwD.mjs → checkout-CipmYL4A.mjs} +3 -3
  89. package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DraalWdH.mjs} +1 -1
  90. package/dist/client/client.mjs +9550 -17
  91. package/dist/client/{context-CBV21-9L.mjs → context-Cv3QHjAF.mjs} +11 -6
  92. package/dist/client/{cta-Bw-al3cs.mjs → cta-P2vJVTEn.mjs} +45 -28
  93. package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
  94. package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
  95. package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +4 -4
  96. package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-dLmyuPap.mjs} +2 -2
  97. package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BEhC2_-Y.mjs} +34 -20
  98. package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
  99. package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
  100. package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
  101. package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-Bih-BgQM.mjs} +4 -4
  102. package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
  103. package/dist/client/{form-L-xZOBUS.mjs → form-Bw1uuiUs.mjs} +3 -3
  104. package/dist/client/{form.client-BtpK3TZW.mjs → form.client-pZ-9gN33.mjs} +5 -5
  105. package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-PXlu6XQO.mjs} +3 -3
  106. package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-DI3DP48e.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +3 -4
  108. package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-BpJYUMd6.mjs} +2 -2
  109. package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
  110. package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
  111. package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-CSoP0cGR.mjs} +6 -6
  112. package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +2 -2
  113. package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
  114. package/dist/client/{noop-CQU7tiMg.mjs → noop-ByVtIWf4.mjs} +420 -170
  115. package/dist/client/portal/client.mjs +13 -14
  116. package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
  117. package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-DEad-Pma.mjs} +1 -1
  118. package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-G1SMXG13.mjs} +3 -3
  119. package/dist/client/{productList-CSk8sXCl.mjs → productList-B21TGdpT.mjs} +3 -3
  120. package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-B3vIBkex.mjs} +4 -5
  121. package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-B8aQhJpO.mjs} +399 -473
  122. package/dist/client/rendering/client.mjs +29 -28
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +70 -8
  125. package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
  127. package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-B2UmrQg_.mjs} +12 -12
  128. package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
  129. package/dist/client/{shop-DscvMz86.mjs → shop-mqyoOvOK.mjs} +3 -3
  130. package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-BH-BBnA9.mjs} +13 -13
  131. package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-mdM3UMWG.mjs} +74 -36
  132. package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-CXF5wxdg.mjs} +2 -2
  133. package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
  134. package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-D56hT2u1.mjs} +26000 -16565
  135. package/dist/client/spam-protection.mjs +1 -1
  136. package/dist/client/src-DjnxOjXG.mjs +217 -0
  137. package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
  138. package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-CrC80EOG.mjs} +13 -140
  139. package/dist/client/types-sF-IrGQr.mjs +633 -0
  140. package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C4LOaI_Z.mjs} +8 -5
  141. package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
  142. package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-6Q0nToVA.mjs} +3 -3
  143. package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
  144. package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Bcs89BR5.mjs} +9 -9
  145. package/dist/client/{view-DlkCDfuN.mjs → view-BN-fxyfq.mjs} +287 -232
  146. package/dist/client/{view-DXOuduIr.mjs → view-Dh2tGoS0.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DtkhwKXK.mjs} +468 -149
  148. package/dist/preview-next/before-render.mjs +3 -140
  149. package/dist/preview-next/client/ArrangementLookControls-D4VjPs-r.mjs +31197 -0
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
  151. package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
  153. package/dist/preview-next/client/PreviewEditorSidebar-Ckr2zk_L.mjs +37247 -0
  154. package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-KOZgw_gS.mjs} +45 -17
  155. package/dist/preview-next/client/PreviewShell-CyO2V4kB.mjs +4757 -0
  156. package/dist/preview-next/client/SdkPreviewModeRuntime-DW3uKvNF.mjs +4258 -0
  157. package/dist/preview-next/client/SiteChromeCustomizeButton-CU9VD-7O.mjs +72202 -0
  158. package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
  159. package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
  160. package/dist/preview-next/client/previewAssistantSlot-DBi-WybM.mjs +112193 -0
  161. package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-BhkUJst9.mjs} +90 -28
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/sdk-runtime-BjCb6lOn.mjs +5 -0
  164. package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus-CKxTaC3j.mjs} +40 -3
  165. package/dist/preview-next/client/useBlockCustomizeControls-B7MLTjBX.mjs +2633 -0
  166. package/dist/preview-next/client/useOpenBlockForSetup-BTUc0g9X.mjs +28 -0
  167. package/dist/preview-next/keepAlive.mjs +25 -2
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bv3nkdpV.mjs} +215 -118
  170. package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-4fMqzltx.mjs} +7 -4
  171. package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-C72VC_lR.mjs} +894 -2556
  172. package/dist/server/accessibleSurfaces-B_Y_dA20.mjs +2305 -0
  173. package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-ConMYJ2U.mjs} +2 -3
  174. package/dist/server/{publicProducts-Bz8loTRn.mjs → client-Cot-H5fQ.mjs} +2558 -343
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +33 -2
  177. package/dist/server/data/dataLoaderContext.mjs +2 -0
  178. package/dist/server/data/resolveBlockData.mjs +2 -0
  179. package/dist/server/data/types.mjs +1 -0
  180. package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
  181. package/dist/server/identity-Bn9OQiT1.mjs +6 -0
  182. package/dist/server/index.mjs +3 -3
  183. package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-BkaWYEwt.mjs} +6 -5
  184. package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-kviUdH8c.mjs} +4 -2
  185. package/dist/server/manifest.mjs +1 -1
  186. package/dist/server/media-DnlczCMA.mjs +231 -0
  187. package/dist/server/metadata.mjs +5 -1
  188. package/dist/server/mode-Cv_TG9gP.mjs +63 -0
  189. package/dist/server/next/revalidate.mjs +9 -4
  190. package/dist/server/next.mjs +11 -11
  191. package/dist/server/opaqueSurface-BTnS09GS.mjs +54 -0
  192. package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-itXZCXs7.mjs} +2 -1
  193. package/dist/server/overrides-CD4d-1w7.mjs +177 -0
  194. package/dist/server/page-converter.mjs +243 -91
  195. package/dist/server/pageRenderPlan-CDyn7iLy.mjs +4162 -0
  196. package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +13 -28
  197. package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-Q_Vij87H.mjs} +3808 -1928
  198. package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +52 -0
  199. package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-DOG4MkOy.mjs} +1 -1
  200. package/dist/server/prebuild.mjs +1 -1
  201. package/dist/server/prefetchBlockData-DlprLLsc.mjs +756 -0
  202. package/dist/server/{registry-Cdvz1OtL.mjs → registry-BPFcpn6k.mjs} +21838 -709
  203. package/dist/server/rendering/components/pageShared.mjs +2 -0
  204. package/dist/server/rendering/helpers/loadPage.mjs +2 -0
  205. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
  206. package/dist/server/rendering/server.mjs +5 -4
  207. package/dist/server/rendering/themeAdmission.mjs +2 -0
  208. package/dist/server/rendering.mjs +11 -10
  209. package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
  210. package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-BHvfGD4y.mjs} +6 -48
  211. package/dist/server/resolveButtonColourStates-OXFRGn5M.mjs +2682 -0
  212. package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
  213. package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
  214. package/dist/server/routing.mjs +1 -1
  215. package/dist/server/schema-DEizlyi4.mjs +2524 -0
  216. package/dist/server/server.mjs +3 -3
  217. package/dist/server/theme-bridge.mjs +1031 -1
  218. package/dist/server/theme.mjs +2 -1
  219. package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
  220. package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
  221. package/dist/server/validation-CDd6m8Ry.mjs +140 -0
  222. package/dist/server/{validation-DYxhLzqQ.mjs → validation-bl6WcAi_.mjs} +419 -3
  223. package/dist/server/{version-Beu4q-Gv.mjs → version-BLXZ31S-.mjs} +1 -1
  224. package/dist/styles/index.css +710 -29
  225. package/package.json +39 -1
  226. package/dist/client/events-BmqPeeQm.mjs +0 -20
  227. package/dist/client/purchase-BV5xfaZH.mjs +0 -894
  228. package/dist/client/schema-BdSglH2X.mjs +0 -16084
  229. package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
  230. package/dist/client/src-VIsPY-kw.mjs +0 -62
  231. package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
  232. package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
  233. package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
  234. package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
  235. package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
  236. package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
  237. package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
  238. package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
  239. package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
  240. package/dist/server/client-DfMDbZ41.mjs +0 -2330
  241. package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
  242. package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
  243. package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
  244. package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
  245. package/dist/server/site-styles-CntHn2KI.mjs +0 -793
  246. package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as eventCheckoutReturnResponseSchema, i as eventCheckoutResponseSchema, n as blockSiteTermsSchema, o as eventRegisterResponseSchema, p as calendarWindowPageSchema } from "./noop-CQU7tiMg.mjs";
2
+ import { c as eventRegisterResponseSchema, g as calendarWindowPageSchema, i as EVENT_BOOKING_ARRIVAL_QUERY, n as blockSiteTermsSchema, o as eventCheckoutResponseSchema, s as eventCheckoutReturnResponseSchema } from "./noop-ByVtIWf4.mjs";
3
3
  import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
4
4
  import { createContext, useContext, useMemo } from "react";
5
5
  import { z } from "zod";
@@ -920,6 +920,7 @@ function createBlockApi(config) {
920
920
  const path = buildPath(EVENTS.register.path, { siteId: sid });
921
921
  return request(EVENTS.register, {
922
922
  decoder: eventRegisterResponseSchema,
923
+ query: { [EVENT_BOOKING_ARRIVAL_QUERY]: 1 },
923
924
  path,
924
925
  body: data
925
926
  });
@@ -930,6 +931,7 @@ function createBlockApi(config) {
930
931
  return request(EVENTS.checkout, {
931
932
  path,
932
933
  body: data,
934
+ query: { [EVENT_BOOKING_ARRIVAL_QUERY]: 1 },
933
935
  decoder: eventCheckoutResponseSchema
934
936
  });
935
937
  },
@@ -963,6 +965,7 @@ function createBlockApi(config) {
963
965
  return request(EVENTS.checkoutReturn, {
964
966
  path,
965
967
  body: data,
968
+ query: { [EVENT_BOOKING_ARRIVAL_QUERY]: 1 },
966
969
  decoder: eventCheckoutReturnResponseSchema
967
970
  });
968
971
  },
@@ -1304,17 +1307,19 @@ function protectedFormBody({ authorization, ...data }) {
1304
1307
  };
1305
1308
  }
1306
1309
  //#endregion
1310
+ //#region ../blocks/src/system/runtime/api/blockApiContext.ts
1311
+ function getGlobalContext() {
1312
+ if (!globalThis.__RIVERBANK_BLOCK_API_CONTEXT__) globalThis.__RIVERBANK_BLOCK_API_CONTEXT__ = createContext(null);
1313
+ return globalThis.__RIVERBANK_BLOCK_API_CONTEXT__;
1314
+ }
1315
+ const BlockApiContext = getGlobalContext();
1316
+ //#endregion
1307
1317
  //#region ../blocks/src/system/runtime/api/context.tsx
1308
1318
  /**
1309
1319
  * Block API React Context
1310
1320
  *
1311
1321
  * Provider and hook for accessing the Block API Client in React components.
1312
1322
  */
1313
- function getGlobalContext() {
1314
- if (!globalThis.__RIVERBANK_BLOCK_API_CONTEXT__) globalThis.__RIVERBANK_BLOCK_API_CONTEXT__ = createContext(null);
1315
- return globalThis.__RIVERBANK_BLOCK_API_CONTEXT__;
1316
- }
1317
- const BlockApiContext = getGlobalContext();
1318
1323
  /**
1319
1324
  * Provider for Block API Client
1320
1325
  *
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { c as assertNever } from "./src-VIsPY-kw.mjs";
3
- import { An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, xn as resolveRuntimeEventDestination } from "./wizardSteps-DManVJpc.mjs";
2
+ import { Cn as formatEventRemainingPlaces, Dn as getEventAvailabilityStatus, Sn as canJoinEventWaitlistOnAnyMode, bn as resolveRuntimeEventDestination, kn as isEventFull } from "./wizardSteps-DtkhwKXK.mjs";
3
+ import { v as assertNever } from "./src-DjnxOjXG.mjs";
4
4
  //#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
5
5
  /**
6
6
  * Booking call-to-action resolution for events: where an event links to and
@@ -41,10 +41,7 @@ function resolveEventLinkProps(event) {
41
41
  */
42
42
  function resolveEventCta(event, buttonText) {
43
43
  const isSoldOut = isEventFull(event);
44
- const destination = resolveRuntimeEventDestination(event);
45
- const isExternal = destination.kind === "external";
46
- const defaultButtonText = isExternal ? destination.label : "Book";
47
- const effectiveButtonText = buttonText ?? defaultButtonText;
44
+ const isExternal = resolveRuntimeEventDestination(event).kind === "external";
48
45
  const href = resolveEventHref(event);
49
46
  if (event.bookingAvailability.kind === "closed") {
50
47
  const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
@@ -69,36 +66,56 @@ function resolveEventCta(event, buttonText) {
69
66
  hidden: true
70
67
  };
71
68
  }
69
+ return destinationCta(event, buttonText);
70
+ }
71
+ function destinationCta(event, buttonText) {
72
+ const destination = resolveRuntimeEventDestination(event);
72
73
  return {
73
- label: effectiveButtonText,
74
- href,
75
- external: isExternal,
74
+ label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
75
+ href: resolveEventHref(event),
76
+ external: destination.kind === "external",
76
77
  hidden: false
77
78
  };
78
79
  }
79
80
  /**
80
- * The CTA for a catalogue card that stands for a whole dated series. The card
81
- * carries the next occurrence's capacity, but the visitor picks from the
82
- * series' upcoming dates, so it says "Sold out" (or offers the waitlist) only
83
- * when none of `upcomingDates` can be booked. The first date with places
84
- * decides; failing that, the first full date with a waitlist; failing both,
85
- * the next occurrence as {@link resolveEventCta} reads it. The link always
86
- * goes to the series, never to the date that decided.
87
- *
88
- * Whole-series events share one run capacity, so they need no dates and read
89
- * exactly as {@link resolveEventCta}; so does a dated series with none listed.
81
+ * A bounded date strip cannot prove a series sold out. Its destination owns date selection,
82
+ * so the card offers that destination and leaves capacity with the individual date rows.
83
+ * Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
90
84
  */
91
- function resolveDatedSeriesCta(series, upcomingDates, buttonText) {
92
- const deciding = series.bookingScope === "single_occurrence" ? upcomingDates.find((date) => isOpenForBooking(date) && !isEventFull(date)) ?? upcomingDates.find((date) => isOpenForBooking(date) && isEventFull(date) && canJoinEventWaitlistOnAnyMode(date)) : void 0;
93
- if (!deciding) return resolveEventCta(series, buttonText);
85
+ function resolveEventCardBooking(event, scope, buttonText) {
86
+ if (scope === "series" && event.bookingScope === "single_occurrence") return {
87
+ cta: seriesBookingClosed(event) ? resolveEventCta(event, buttonText) : destinationCta(event, buttonText),
88
+ availability: null
89
+ };
94
90
  return {
95
- ...resolveEventCta(deciding, buttonText),
96
- href: resolveEventHref(series),
97
- external: resolveRuntimeEventDestination(series).kind === "external"
91
+ cta: resolveEventCta(event, buttonText),
92
+ availability: occurrenceCardAvailability(event)
98
93
  };
99
94
  }
100
- function isOpenForBooking(event) {
101
- return event.bookingAvailability.kind !== "closed";
95
+ /** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
96
+ function seriesBookingClosed(event) {
97
+ if (event.bookingAvailability.kind !== "closed") return false;
98
+ switch (event.bookingAvailability.reason) {
99
+ case "occurrence_cancelled":
100
+ case "occurrence_completed":
101
+ case "already_started": return false;
102
+ case "series_cancelled":
103
+ case "series_completed":
104
+ case "series_draft":
105
+ case "series_archived":
106
+ case "parent_archived":
107
+ case "parent_inconsistent":
108
+ case "enrollment_closed": return true;
109
+ default: return assertNever(event.bookingAvailability.reason);
110
+ }
111
+ }
112
+ function occurrenceCardAvailability(event) {
113
+ const label = formatEventRemainingPlaces(event, { full: "Sold out" });
114
+ const availability = getEventAvailabilityStatus(event);
115
+ return label ? {
116
+ label,
117
+ status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
118
+ } : null;
102
119
  }
103
120
  //#endregion
104
- export { resolveEventCta as n, resolveEventLinkProps as r, resolveDatedSeriesCta as t };
121
+ export { resolveEventCta as n, resolveEventLinkProps as r, resolveEventCardBooking as t };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, ft as formatDateTime$1, mt as formatTime, pt as formatDateTimeRange, ut as formatDate$1, vt as resolveBookingDisplayContext } from "./noop-CQU7tiMg.mjs";
2
+ import { Ft as parseUtcIsoDateTimeString, It as toUtcIsoDateTimeString, Nt as resolveBookingTimeZoneId, _t as formatTime, gt as formatDateTimeRange, ht as formatDateTime$1, pt as formatDate$1, xt as resolveBookingDisplayContext } from "./noop-ByVtIWf4.mjs";
3
3
  //#region ../blocks/src/portal/dateFormatting.ts
4
4
  /** Optional API timestamps enter the display model here; invalid values never render a Date. */
5
5
  function readInstant(value) {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as BlockApiError } from "./context-CBV21-9L.mjs";
2
+ import { r as BlockApiError } from "./context-Cv3QHjAF.mjs";
3
3
  //#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
4
4
  const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
5
5
  const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { fn as staticHeaderChromeRuntime, v as buildCartDisplay } from "./shop.interactive-BGmkdIAZ.mjs";
3
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-Cfbo1bfh.mjs";
2
+ import { pn as staticHeaderChromeRuntime, v as buildCartDisplay } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
4
+ import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
4
5
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
5
6
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
6
- import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
7
- import { n as useCommerceCart } from "./shop-commerce-store-B9nw4lRP.mjs";
7
+ import { n as useCommerceCart } from "./shop-commerce-store-B7n-Z7nY.mjs";
8
8
  import * as React$1 from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { createPortal } from "react-dom";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-DlkCDfuN.mjs";
2
+ import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-BN-fxyfq.mjs";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
@@ -9,7 +9,7 @@ function toEventDetailsClientProps(props) {
9
9
  entryTitle: props.entryTitle,
10
10
  actionSize: props.actionSize,
11
11
  lookSlots: props.lookSlots,
12
- itemSurfaces: props.itemSurfaces,
12
+ surfacePresentation: props.surfacePresentation,
13
13
  panelHeading: props.panelHeading,
14
14
  occurrenceContext: props.occurrenceContext,
15
15
  subject: props.subject,
@@ -1,28 +1,45 @@
1
1
  "use client";
2
- import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents, Z as offeringNounForEvent, dt as DEFAULT_BOOKING_BUTTON_TEXT, ft as bookingBarPlacement, gt as bookingPanelHeading, ht as bookingEntryProgress, mt as bookingEntry, pt as bookingCardEntry, sn as formatEventPriceDisplay } from "./shop.interactive-BGmkdIAZ.mjs";
3
- import { t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { A as isEventRegistrationAvailable, An as isEventFull, At as getTicketSelectionTotal, B as paymentChoiceDetails, Cn as canJoinEventWaitlistOnAnyMode, Ct as occurrenceTitleOverride, D as settledRemainingPlaces, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Dt as canRequestTicketOption, Et as formatPrice, Ht as shownVenue, Mn as selectMostOpenCapacitySource, Nn as groupPublicEventsByRun, Pt as setTicketLineQuantity, Sn as canJoinEventWaitlist, St as getVisibleTicketTypes, T as resolveRegistrationAvailabilityBlocker, Tt as withOccurrenceTitle, Un as getRegistrationSuccessCopy, V as paymentChoicePrice, _ as shouldPromptForLogin, _t as formatRegistrationSchedule, ai as publicEventPricingStrategy, b as placeCountCeiling, c as registrationStepLabelContext, ct as confirmationPaymentRows, dt as areEntitlementsDisabledForTicketCount, gt as formatPassCreditUsageLabel, ht as formatEventDateTime, j as normalizeEventRegistrationMaxTickets, jn as selectEventCapacitySource, jt as getTicketTypeLineMax, kn as getRemainingPlaces, kt as getTicketLineQuantity, l as areEventRegistrationPaymentSelectionsEqual, lt as resolveFinishedPresentation, mt as formatDate, n as getEventSelectionMode, oi as publicEventPricingType, pt as formatBookingWhen, r as panelShouldOpen, ri as publicEventPricingCurrency, s as registrationStepLabel, ut as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, v as fullyBookedLabel, vt as formatTime, xt as getTicketTypeAvailabilityLabel, zt as placesLeftLabel } from "./wizardSteps-DManVJpc.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-D2LyS_Bi.mjs";
6
- import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-Cfbo1bfh.mjs";
7
- import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-CzkG0NSJ.mjs";
2
+ import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents, Z as offeringNounForEvent, cn as formatEventPriceDisplay, dt as DEFAULT_BOOKING_BUTTON_TEXT, ft as bookingBarPlacement, gt as bookingPanelHeading, ht as bookingEntryProgress, mt as bookingEntry, pt as bookingCardEntry } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { A as isEventRegistrationAvailable, An as selectEventCapacitySource, At as getTicketSelectionTotal, B as paymentChoiceDetails, Ct as occurrenceTitleOverride, D as settledRemainingPlaces, Dt as canRequestTicketOption, En as getEventAvailability, Er as resolveEventRegistrationScopedEvents, Et as formatPrice, Hn as getRegistrationSuccessCopy, Ht as shownVenue, Mn as groupPublicEventsByRun, On as getRemainingPlaces, Pt as setTicketLineQuantity, Sn as canJoinEventWaitlistOnAnyMode, St as getVisibleTicketTypes, T as resolveRegistrationAvailabilityBlocker, Tt as withOccurrenceTitle, V as paymentChoicePrice, _ as shouldPromptForLogin, _t as formatRegistrationSchedule, ai as publicEventPricingType, b as placeCountCeiling, c as registrationStepLabelContext, ct as confirmationPaymentRows, dt as areEntitlementsDisabledForTicketCount, gt as formatPassCreditUsageLabel, ht as formatEventDateTime, ii as publicEventPricingStrategy, j as normalizeEventRegistrationMaxTickets, jn as selectMostOpenCapacitySource, jt as getTicketTypeLineMax, kn as isEventFull, kt as getTicketLineQuantity, l as areEventRegistrationPaymentSelectionsEqual, lt as resolveFinishedPresentation, mt as formatDate, n as getEventSelectionMode, ni as publicEventPricingCurrency, pt as formatBookingWhen, r as panelShouldOpen, s as registrationStepLabel, ut as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, v as fullyBookedLabel, vt as formatTime, xn as canJoinEventWaitlist, xt as getTicketTypeAvailabilityLabel, zt as placesLeftLabel } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { t as assertNever } from "./src-DjnxOjXG.mjs";
5
+ import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-DdkY86qI.mjs";
6
+ import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-8jUc02mZ.mjs";
7
+ import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-CIQw6vNy.mjs";
8
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
9
- import { t as CheckboxChoice } from "./CheckboxChoice-DlTC4J2a.mjs";
9
+ import { t as CheckboxChoice } from "./CheckboxChoice-CZ-anOqV.mjs";
10
10
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
11
11
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
12
12
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
13
- import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-BaFg2Uit.mjs";
14
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-Uvum8q9d.mjs";
13
+ import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-B9YrzZt2.mjs";
14
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-CM-DTX5X.mjs";
15
15
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
16
- import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-rUqsBN7L.mjs";
16
+ import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-CCVXX1LN.mjs";
17
17
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
18
- import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-udNHcpOT.mjs";
19
- import { n as useBlockApi, r as BlockApiError } from "./context-CBV21-9L.mjs";
20
- import { t as useBookingNowIso } from "./useBookingNowIso-C9SF2rC6.mjs";
21
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-D0veHJyi.mjs";
18
+ import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-Dptantmg.mjs";
19
+ import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
20
+ import { t as useBookingNowIso } from "./useBookingNowIso-BDmWkYUW.mjs";
21
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-CXWZoV-d.mjs";
22
22
  import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
23
23
  import React, { useCallback, useEffect, useId, useLayoutEffect, useReducer, useRef, useState } from "react";
24
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
25
25
  import { createPortal } from "react-dom";
26
+ //#region ../core/src/number-input.ts
27
+ function clampToBounds(value, bounds) {
28
+ const floor = bounds.min ?? Number.NEGATIVE_INFINITY;
29
+ const ceiling = bounds.max ?? Number.POSITIVE_INFINITY;
30
+ return Math.min(ceiling, Math.max(floor, value));
31
+ }
32
+ /** Decimal places in a step, so 0.5 steps don't drift into 1.4999999. */
33
+ function stepPrecision(step) {
34
+ const [, decimals = ""] = String(step).split(".");
35
+ return decimals.length;
36
+ }
37
+ /** One press of − or +: moves by `step` and stays inside the bounds. */
38
+ function stepNumber(value, direction, bounds = {}) {
39
+ const step = bounds.step ?? 1;
40
+ return clampToBounds(Number((value + direction * step).toFixed(stepPrecision(step))), bounds);
41
+ }
42
+ //#endregion
26
43
  //#region ../blocks/src/system/runtime/shared/components/ClockIcon.tsx
27
44
  function ClockIcon({ className, strokeWidth = 2 }) {
28
45
  return /* @__PURE__ */ jsx("svg", {
@@ -1545,7 +1562,7 @@ function TicketCounter(props) {
1545
1562
  /* @__PURE__ */ jsx("button", {
1546
1563
  type: "button",
1547
1564
  "aria-label": `Decrease ${label}`,
1548
- onClick: () => onTicketsChange(Math.max(minAllowed, ticketsCount - 1)),
1565
+ onClick: () => onTicketsChange(stepNumber(ticketsCount, -1, { min: minAllowed })),
1549
1566
  disabled: ticketsCount <= minAllowed,
1550
1567
  className: "er-counter-btn",
1551
1568
  children: "-"
@@ -1557,7 +1574,7 @@ function TicketCounter(props) {
1557
1574
  /* @__PURE__ */ jsx("button", {
1558
1575
  type: "button",
1559
1576
  "aria-label": `Increase ${label}`,
1560
- onClick: () => onTicketsChange(Math.min(maxAllowed, ticketsCount + 1)),
1577
+ onClick: () => onTicketsChange(stepNumber(ticketsCount, 1, { max: maxAllowed })),
1561
1578
  disabled: ticketsCount >= maxAllowed,
1562
1579
  className: "er-counter-btn",
1563
1580
  children: "+"
@@ -2493,8 +2510,7 @@ const PaymentSelectionStep = (props) => {
2493
2510
  if (!eligibility || props.eligibilityLoading || props.eligibilityError || eligibility.isFree || view.stepState.status !== "ready") return /* @__PURE__ */ jsx(PaymentBlockingPanel, {
2494
2511
  ...props,
2495
2512
  isAuthenticated: props.isAuthenticated ?? false,
2496
- eligibilityError: props.eligibilityError ?? null,
2497
- occurrenceId: props.occurrenceContext?.id ?? (props.event?.registrationSubject.kind === "occurrence" ? props.event.registrationSubject.occurrenceId : "")
2513
+ eligibilityError: props.eligibilityError ?? null
2498
2514
  });
2499
2515
  return /* @__PURE__ */ jsxs("div", {
2500
2516
  className: "rb-reg-stack er-stack",
@@ -2987,7 +3003,6 @@ function PaymentSelectionContent(props) {
2987
3003
  admission: wizard.admission,
2988
3004
  eligibilityLoading: wizard.eligibilityLoading,
2989
3005
  eligibilityError: wizard.eligibilityError,
2990
- occurrenceId: wizard.occurrenceContext?.id ?? "",
2991
3006
  email: wizard.formData.email,
2992
3007
  ticketsCount: wizard.ticketsCount,
2993
3008
  isAuthenticated: wizard.portalAuthState === "authenticated",
@@ -2997,7 +3012,6 @@ function PaymentSelectionContent(props) {
2997
3012
  eventSiteTermsSurface(wizard.paymentSelection.method) === "commerce" ? /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice }) : null,
2998
3013
  /* @__PURE__ */ jsx(PaymentSelectionStep, {
2999
3014
  event: wizard.selectedEvent,
3000
- occurrenceContext: wizard.occurrenceContext,
3001
3015
  ticketsCount: wizard.ticketsCount,
3002
3016
  email: wizard.formData.email,
3003
3017
  isAuthenticated: wizard.portalAuthState === "authenticated",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
4
- import { t as EventCalendarClient } from "./EventCalendar.client-tRrhPscX.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
4
+ import { t as EventCalendarClient } from "./EventCalendar.client-DAeQPV76.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DbHX4JOS.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCalendar.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
4
- import { n as EventCombinedIslandClient } from "./EventCombined.client-6cfAVtnZ.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
4
+ import { n as EventCombinedIslandClient } from "./EventCombined.client-Bus9R0bj.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DbHX4JOS.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCombined.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as EventDetailsIslandClient } from "./event-details.client-Bk2kQ7ax.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as EventDetailsIslandClient } from "./event-details.client-dLmyuPap.mjs";
4
4
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
4
- import { t as EventListingClient } from "./EventListing.client-BNueAHmU.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
4
+ import { t as EventListingClient } from "./EventListing.client-Bogi_SnJ.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DbHX4JOS.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventListing.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as EventRegistrationIslandClient } from "./event-registration.client-QMqtIywj.mjs";
4
- import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
2
+ import { t as EventRegistrationIslandClient } from "./event-registration.client-BEhC2_-Y.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
4
+ import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DbHX4JOS.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventRegistration.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
4
- import { t as FormNodeClient } from "./form.client-BtpK3TZW.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
4
+ import { t as FormNodeClient } from "./form.client-pZ-9gN33.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { n as err, r as ok, t as assertNever } from "./src-VIsPY-kw.mjs";
3
- import { Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
4
- import { C as clsx } from "./ThemedButton-Cfbo1bfh.mjs";
2
+ import { Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.mjs";
3
+ import { n as err, r as ok, t as assertNever } from "./src-DjnxOjXG.mjs";
4
+ import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
5
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
6
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Djos5Un4.mjs";
7
- import { n as useBlockApi } from "./context-CBV21-9L.mjs";
6
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-PXlu6XQO.mjs";
7
+ import { n as useBlockApi } from "./context-Cv3QHjAF.mjs";
8
8
  import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
9
9
  import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
10
10
  import { useReducer, useRef } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
3
- import { t as CheckboxChoice } from "./CheckboxChoice-DlTC4J2a.mjs";
4
- import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-2fJqT_NR.mjs";
2
+ import { Mr as listLookControl, Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.mjs";
3
+ import { t as CheckboxChoice } from "./CheckboxChoice-CZ-anOqV.mjs";
4
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-8DuDw2ag.mjs";
5
5
  import "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/form.fields.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, ft as formatDateTime, ut as formatDate$1 } from "./noop-CQU7tiMg.mjs";
2
+ import { At as parseBookingLocalDate, Ft as parseUtcIsoDateTimeString, ht as formatDateTime, pt as formatDate$1 } from "./noop-ByVtIWf4.mjs";
3
3
  //#region ../blocks/src/bindings/formatDate.ts
4
4
  /** Admit stored civil dates or offset-aware instants before core projection. */
5
5
  function formatDate(value, context, options) {
@@ -1,10 +1,9 @@
1
1
  "use client";
2
2
  "use client";
3
- import { x as formatGiftCardAmountLabel } from "../purchase-BV5xfaZH.mjs";
4
- import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, t as logger, ut as formatDate } from "../noop-CQU7tiMg.mjs";
5
- import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-Cfbo1bfh.mjs";
3
+ import { It as toUtcIsoDateTimeString, Nt as resolveBookingTimeZoneId, Vt as formatGiftCardAmountLabel, pt as formatDate, t as logger } from "../noop-ByVtIWf4.mjs";
4
+ import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-8jUc02mZ.mjs";
6
5
  import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
7
- import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-CBV21-9L.mjs";
6
+ import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-Cv3QHjAF.mjs";
8
7
  import React from "react";
9
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
9
  import { useRouter } from "next/navigation";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-CEqqq92r.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-BkAro1DJ.mjs";
4
4
  //#region src/rendering/islands/enhancers/headerSection.ts
5
5
  const decode = defineIslandPropsDecoder("headerSection");
6
6
  const enhance = (root, props) => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { ur as renderableMediaAssetSchema } from "./schema-BdSglH2X.mjs";
2
+ import { i as renderableMediaAssetSchema } from "./surfaceTransportMarker-BXepAVF6.mjs";
3
3
  //#region src/rendering/mediaAssets.ts
4
4
  function toBlocksMediaAssets(assets) {
5
5
  if (!assets) return void 0;
@@ -1,5 +1,29 @@
1
1
  "use client";
2
- import { lr as buildRenderableMediaAssetIndex } from "./schema-BdSglH2X.mjs";
2
+ import { r as buildRenderableMediaAssetIndex } from "./surfaceTransportMarker-BXepAVF6.mjs";
3
+ //#region ../blocks/src/system/runtime/nodes/mediaContextStore.ts
4
+ /**
5
+ * Client-side context storage.
6
+ * Safe because browsers are single-threaded per tab.
7
+ *
8
+ * IMPORTANT: This must be shared across bundles.
9
+ * SDK preview mode can load multiple independently-bundled entrypoints
10
+ * (e.g. `@riverbankcms/sdk/rendering` + `@riverbankcms/sdk/preview-next/client`),
11
+ * which can otherwise each get their own module-scoped singleton.
12
+ *
13
+ * It lives in its own module, with no runtime imports, so the dashboard test
14
+ * lanes can create the shared global before their global-leak snapshots
15
+ * without loading the rest of the renderer.
16
+ */
17
+ const RB_MEDIA_CONTEXT_KEY = Symbol.for("riverbankcms.blocks.mediaContext");
18
+ function getClientContextStore() {
19
+ const g = globalThis;
20
+ const existing = g[RB_MEDIA_CONTEXT_KEY];
21
+ if (existing && typeof existing === "object") return existing;
22
+ const next = {};
23
+ g[RB_MEDIA_CONTEXT_KEY] = next;
24
+ return next;
25
+ }
26
+ //#endregion
3
27
  //#region ../blocks/src/system/runtime/nodes/mediaContext.ts
4
28
  function buildMediaAssetIndex(assets) {
5
29
  return buildRenderableMediaAssetIndex(assets);
@@ -42,24 +66,6 @@ function getServerStorage() {
42
66
  }
43
67
  }
44
68
  /**
45
- * Client-side context storage.
46
- * Safe because browsers are single-threaded per tab.
47
- *
48
- * IMPORTANT: This must be shared across bundles.
49
- * SDK preview mode can load multiple independently-bundled entrypoints
50
- * (e.g. `@riverbankcms/sdk/rendering` + `@riverbankcms/sdk/preview-next/client`),
51
- * which can otherwise each get their own module-scoped singleton.
52
- */
53
- const RB_MEDIA_CONTEXT_KEY = Symbol.for("riverbankcms.blocks.mediaContext");
54
- function getClientContextStore() {
55
- const g = globalThis;
56
- const existing = g[RB_MEDIA_CONTEXT_KEY];
57
- if (existing && typeof existing === "object") return existing;
58
- const next = {};
59
- g[RB_MEDIA_CONTEXT_KEY] = next;
60
- return next;
61
- }
62
- /**
63
69
  * Get the current media context.
64
70
  * Server-side: Uses AsyncLocalStorage for request isolation.
65
71
  * Client-side: Uses module-level state (safe in single-threaded browser).
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { I as newsletterBlockSubmissionMessage, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, xn as parseMailingListVisitorSelection } from "./shop.interactive-BGmkdIAZ.mjs";
3
- import { c as assertNever$1, t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
5
- import { C as clsx } from "./ThemedButton-Cfbo1bfh.mjs";
2
+ import { I as newsletterBlockSubmissionMessage, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Sn as parseMailingListVisitorSelection } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { t as assertNever, v as assertNever$1 } from "./src-DjnxOjXG.mjs";
5
+ import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
7
- import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CLGH20PL.mjs";
8
- import { n as useBlockApi, r as BlockApiError } from "./context-CBV21-9L.mjs";
7
+ import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DDbX_Sj0.mjs";
8
+ import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
9
9
  import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
10
10
  import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
11
11
  import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
2
+ import { Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.mjs";
3
3
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
4
- import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-2fJqT_NR.mjs";
4
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-8DuDw2ag.mjs";
5
5
  import "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/newsletter-form.parts.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
- import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
4
- import { t as NewsletterFormClient } from "./newsletter-form.client-DpHNZc7k.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B3vIBkex.mjs";
3
+ import { t as BlockApiProvider } from "./context-Cv3QHjAF.mjs";
4
+ import { t as NewsletterFormClient } from "./newsletter-form.client-CSoP0cGR.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";