@riverbankcms/sdk 0.163.0 → 0.165.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 (204) hide show
  1. package/README.md +12 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
  3. package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
  4. package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
  5. package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
  6. package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
  7. package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
  8. package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
  10. package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
  11. package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
  12. package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
  13. package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
  14. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  15. package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
  16. package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
  17. package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
  18. package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
  19. package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
  20. package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +6 -6
  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/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  40. package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
  41. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  43. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  44. package/dist/_dts/sdk/src/server.d.ts +5 -5
  45. package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
  46. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
  48. package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
  49. package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
  50. package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
  51. package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
  52. package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
  53. package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
  54. package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
  55. package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
  56. package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
  57. package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
  58. package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
  59. package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
  60. package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
  61. package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
  62. package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
  63. package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
  64. package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
  65. package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
  66. package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
  67. package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
  68. package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
  69. package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
  70. package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
  72. package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
  73. package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
  74. package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
  75. package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
  76. package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
  77. package/dist/client/bookings.mjs +23 -32
  78. package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
  79. package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
  80. package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
  81. package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
  82. package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
  83. package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
  84. package/dist/client/client.mjs +216 -109
  85. package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
  86. package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
  87. package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
  88. package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
  89. package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
  90. package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
  91. package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
  92. package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
  93. package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
  94. package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
  95. package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
  96. package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
  97. package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
  98. package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
  99. package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
  100. package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
  101. package/dist/client/gifting/client.mjs +5 -4
  102. package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
  103. package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
  104. package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
  105. package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
  106. package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
  107. package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
  108. package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
  109. package/dist/client/portal/client.mjs +13 -12
  110. package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
  111. package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
  112. package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
  113. package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
  114. package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
  115. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  116. package/dist/client/purchase-BV5xfaZH.mjs +894 -0
  117. package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
  118. package/dist/client/rendering/client.mjs +27 -26
  119. package/dist/client/rendering/islands.mjs +1 -1
  120. package/dist/client/rendering.mjs +11 -7
  121. package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
  122. package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
  123. package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
  124. package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
  125. package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
  126. package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
  127. package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
  128. package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
  129. package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
  130. package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
  131. package/dist/client/spam-protection.mjs +4 -69
  132. package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
  133. package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
  134. package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
  135. package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
  136. package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
  137. package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
  138. package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
  139. package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
  140. package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
  141. package/dist/preview-next/before-render.mjs +2 -2
  142. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
  143. package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
  144. package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
  145. package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
  146. package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
  149. package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
  150. package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
  151. package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
  152. package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
  153. package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
  154. package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
  155. package/dist/preview-next/client/runtime.mjs +3 -3
  156. package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
  157. package/dist/preview-next/keepAlive.mjs +3 -3
  158. package/dist/preview-next/middleware.mjs +2 -2
  159. package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
  160. package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
  161. package/dist/preview-next/session.mjs +1 -1
  162. package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
  163. package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
  164. package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
  165. package/dist/server/config-validation.mjs +1 -1
  166. package/dist/server/config.mjs +2 -2
  167. package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
  168. package/dist/server/index.mjs +3 -3
  169. package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
  170. package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
  171. package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
  172. package/dist/server/next/middleware.mjs +1 -1
  173. package/dist/server/next/revalidate.mjs +1 -1
  174. package/dist/server/next.mjs +11 -11
  175. package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
  176. package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
  177. package/dist/server/page-converter.mjs +1 -1
  178. package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
  179. package/dist/server/prebuild.mjs +1 -1
  180. package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
  181. package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
  182. package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
  183. package/dist/server/rendering/server.mjs +4 -4
  184. package/dist/server/rendering.mjs +8 -8
  185. package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
  186. package/dist/server/routing.mjs +1 -1
  187. package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
  188. package/dist/server/server.mjs +3 -3
  189. package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
  190. package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
  191. package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
  192. package/dist/server/theme-bridge.mjs +1 -1
  193. package/dist/server/theme.mjs +1 -1
  194. package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
  195. package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
  196. package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
  197. package/dist/styles/index.css +1173 -72
  198. package/package.json +2 -3
  199. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  200. package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
  201. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
  202. package/dist/client/src-BNZzXgWu.mjs +0 -102
  203. package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
  204. package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
@@ -1,25 +1,24 @@
1
1
  "use client";
2
- import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-DclwabI7.mjs";
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
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 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 selectEventCapacitySource, jt as getTicketTypeLineMax, kn as getRemainingPlaces, 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, xt as getTicketTypeAvailabilityLabel, zt as placesLeftLabel } from "./wizardSteps-kbONzKUv.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-B3caCnTT.mjs";
6
- import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents, Z as offeringNounForEvent, Zt 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-Cf_kASpd.mjs";
7
- import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-Dfu3RSL2.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";
8
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
9
- import { t as CheckboxChoice } from "./CheckboxChoice-Dtgp3OU8.mjs";
9
+ import { t as CheckboxChoice } from "./CheckboxChoice-DlTC4J2a.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-Ct8JMKW0.mjs";
14
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-B0Z7n2tZ.mjs";
13
+ import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-BaFg2Uit.mjs";
14
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-Uvum8q9d.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-BV5-50F0.mjs";
16
+ import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-rUqsBN7L.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-Bjx4faaw.mjs";
19
- import { n as useBlockApi, r as BlockApiError } from "./context-Bg0SFWcM.mjs";
20
- import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
21
- import { t as useBookingNowIso } from "./useBookingNowIso-CWIiqPd0.mjs";
22
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-CDWheSjI.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";
23
22
  import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
24
23
  import React, { useCallback, useEffect, useId, useLayoutEffect, useReducer, useRef, useState } from "react";
25
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -151,10 +150,19 @@ function measureBar(card, bar, cardNear, panelOpen) {
151
150
  bottom: rect.bottom
152
151
  } : null,
153
152
  viewportHeight: viewportHeight(),
154
- barHeight: bar?.offsetHeight ?? 0,
153
+ barHeight: barStripHeight(bar),
155
154
  reducedMotion: window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false
156
155
  });
157
156
  }
157
+ /**
158
+ * The bar's height plus the inset a site style may set below it, so the push
159
+ * and the hand-over travel the whole way off screen. Zero inset is today's bar.
160
+ */
161
+ function barStripHeight(bar) {
162
+ if (!bar) return 0;
163
+ const inset = Number.parseFloat(window.getComputedStyle(bar).bottom);
164
+ return bar.offsetHeight + (Number.isFinite(inset) && inset > 0 ? inset : 0);
165
+ }
158
166
  /** Writes the push straight onto the bar, so following the scroll never re-renders. */
159
167
  function applyPush(bar, push) {
160
168
  if (!bar) return;
@@ -2926,39 +2934,29 @@ function ExistingRegistrationNotice(props) {
2926
2934
  function AttendeeDetailsContent(props) {
2927
2935
  const { wizard } = props;
2928
2936
  const membership = wizard.portalAuthState === "authenticated" && wizard.ticketsCount === 1 ? wizard.eligibility?.eligibleMemberships[0] : void 0;
2929
- return /* @__PURE__ */ jsxs(Fragment, { children: [
2930
- membership && /* @__PURE__ */ jsx(MembershipHero, { membershipName: membership.membershipName }),
2931
- /* @__PURE__ */ jsx(AttendeeDetailsStep, {
2932
- formData: wizard.formData,
2933
- onChange: wizard.setFormData,
2934
- errors: wizard.errors,
2935
- emailLocked: wizard.portalAuthState === "authenticated",
2936
- onLogout: wizard.portalAuthState === "authenticated" ? wizard.handleLogout : void 0,
2937
- ticketsCount: wizard.ticketsCount,
2938
- requireGuestDetails: wizard.requireGuestDetails,
2939
- guests: wizard.guests,
2940
- onGuestsChange: wizard.setGuests,
2941
- guestErrors: wizard.guestErrors,
2942
- guestSectionShake: wizard.guestSectionShake,
2943
- onGuestShakeEnd: wizard.handleGuestShakeEnd,
2944
- consent: (wizard.selectedEvent ?? wizard.preSelectedEvent)?.consent ?? null,
2945
- mailingListSignup: wizard.mailingListSignup,
2946
- siteTerms: /* @__PURE__ */ jsx(SiteTermsAgreementField, {
2947
- agreement: wizard.siteTerms.view,
2948
- onChange: wizard.siteTerms.onChange,
2949
- error: wizard.siteTerms.error,
2950
- disabled: wizard.siteTerms.disabled
2951
- }),
2952
- siteTermsNotice: /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice })
2937
+ return /* @__PURE__ */ jsxs(Fragment, { children: [membership && /* @__PURE__ */ jsx(MembershipHero, { membershipName: membership.membershipName }), /* @__PURE__ */ jsx(AttendeeDetailsStep, {
2938
+ formData: wizard.formData,
2939
+ onChange: wizard.setFormData,
2940
+ errors: wizard.errors,
2941
+ emailLocked: wizard.portalAuthState === "authenticated",
2942
+ onLogout: wizard.portalAuthState === "authenticated" ? wizard.handleLogout : void 0,
2943
+ ticketsCount: wizard.ticketsCount,
2944
+ requireGuestDetails: wizard.requireGuestDetails,
2945
+ guests: wizard.guests,
2946
+ onGuestsChange: wizard.setGuests,
2947
+ guestErrors: wizard.guestErrors,
2948
+ guestSectionShake: wizard.guestSectionShake,
2949
+ onGuestShakeEnd: wizard.handleGuestShakeEnd,
2950
+ consent: (wizard.selectedEvent ?? wizard.preSelectedEvent)?.consent ?? null,
2951
+ mailingListSignup: wizard.mailingListSignup,
2952
+ siteTerms: /* @__PURE__ */ jsx(SiteTermsAgreementField, {
2953
+ agreement: wizard.siteTerms.view,
2954
+ onChange: wizard.siteTerms.onChange,
2955
+ error: wizard.siteTerms.error,
2956
+ disabled: wizard.siteTerms.disabled
2953
2957
  }),
2954
- props.showSpamProtection && /* @__PURE__ */ jsx("div", {
2955
- className: "er-altcha",
2956
- children: /* @__PURE__ */ jsx(AltchaWidget, {
2957
- challengeUrl: getChallengeUrl(),
2958
- onSolutionChange: wizard.setAltchaSolution
2959
- })
2960
- })
2961
- ] });
2958
+ siteTermsNotice: /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice })
2959
+ })] });
2962
2960
  }
2963
2961
  function EventDiscountCodeDisclosure(props) {
2964
2962
  const { wizard } = props;
@@ -3066,7 +3064,6 @@ function TicketSelectionContent({ wizard, display }) {
3066
3064
  }
3067
3065
  function EventRegistrationWizardContent(props) {
3068
3066
  const { wizard } = props;
3069
- const showSpamProtection = props.showSpamProtection ?? isSpamProtectionEnabled();
3070
3067
  switch (wizard.step) {
3071
3068
  case "payment": return /* @__PURE__ */ jsx(EventPaymentMount, {
3072
3069
  state: wizard.paymentController.state,
@@ -3092,10 +3089,7 @@ function EventRegistrationWizardContent(props) {
3092
3089
  wizard,
3093
3090
  display: props.display
3094
3091
  });
3095
- case "enter-details": return /* @__PURE__ */ jsx(AttendeeDetailsContent, {
3096
- wizard,
3097
- showSpamProtection
3098
- });
3092
+ case "enter-details": return /* @__PURE__ */ jsx(AttendeeDetailsContent, { wizard });
3099
3093
  case "select-payment": return /* @__PURE__ */ jsx(PaymentSelectionContent, { wizard });
3100
3094
  default: return null;
3101
3095
  }
@@ -3339,7 +3333,6 @@ function EventRegistrationStepLayout(props) {
3339
3333
  /* @__PURE__ */ jsx(EventRegistrationWizardContent, {
3340
3334
  wizard,
3341
3335
  display: props.display,
3342
- showSpamProtection: props.showSpamProtection,
3343
3336
  buttonVariant: props.buttonVariant
3344
3337
  }),
3345
3338
  props.showPortalAuthPrompt && props.portalAuthCopy.placement === "after" ? prompt : null
@@ -3562,8 +3555,7 @@ function overlayProgress(presentation, stepLabelContext) {
3562
3555
  }
3563
3556
  function EventRegistrationWizardView(viewProps) {
3564
3557
  const { wizard, ...props } = viewProps;
3565
- const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, spamProtectionEnabled, supportEmail } = props;
3566
- const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
3558
+ const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, supportEmail } = props;
3567
3559
  const registrationRootClassName = `event-registration ${className || ""}`;
3568
3560
  const registrationRootRef = React.useRef(null);
3569
3561
  const [bookingOverlayOpen, setBookingOverlayOpen] = useBookingPanelOpen(wizard.step, wizard.waitlistClaim.kind !== "none");
@@ -3623,7 +3615,6 @@ function EventRegistrationWizardView(viewProps) {
3623
3615
  showPortalAuthPrompt,
3624
3616
  portalAuthCopy,
3625
3617
  display,
3626
- showSpamProtection,
3627
3618
  buttonText,
3628
3619
  buttonVariant,
3629
3620
  supportEmail,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
3
- import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
4
- import { t as EventCalendarClient } from "./EventCalendar.client-ffa6920T.mjs";
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";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.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-VD4arFq1.mjs";
3
- import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
4
- import { n as EventCombinedIslandClient } from "./EventCombined.client-zm0W2G79.mjs";
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";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.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-VD4arFq1.mjs";
3
- import { t as EventDetailsIslandClient } from "./event-details.client-SFtS9OkF.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
+ import { t as EventDetailsIslandClient } from "./event-details.client-Bk2kQ7ax.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-VD4arFq1.mjs";
3
- import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
4
- import { t as EventListingClient } from "./EventListing.client-CaoRZUI9.mjs";
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";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.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-VD4arFq1.mjs";
3
- import { t as EventRegistrationIslandClient } from "./event-registration.client-CguNVIFY.mjs";
4
- import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
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";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.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-VD4arFq1.mjs";
3
- import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
4
- import { t as FormNodeClient } from "./form.client-BoAkhoh_.mjs";
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";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";
@@ -1,12 +1,13 @@
1
1
  "use client";
2
- import { C as clsx } from "./ThemedButton-DclwabI7.mjs";
3
2
  import { n as err, r as ok, t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
3
+ import { Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
4
+ import { C as clsx } from "./ThemedButton-Cfbo1bfh.mjs";
5
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
6
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-1VnasOK8.mjs";
7
- import { n as useBlockApi } from "./context-Bg0SFWcM.mjs";
8
- import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
9
- import { useReducer, useRef, useState } from "react";
6
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Djos5Un4.mjs";
7
+ import { n as useBlockApi } from "./context-CBV21-9L.mjs";
8
+ import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
9
+ import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
10
+ import { useReducer, useRef } from "react";
10
11
  import { jsx, jsxs } from "react/jsx-runtime";
11
12
  //#region ../blocks/src/system/runtime/hooks/useFormSubmission.state.ts
12
13
  const initialFormSubmissionState = { tag: "idle" };
@@ -44,7 +45,7 @@ function formSubmissionReducer(_state, action) {
44
45
  * const result = await submit({
45
46
  * formId: 'contact-form',
46
47
  * data: formData,
47
- * meta: { altchaSolution },
48
+ * authorization: protection.submission.authorization,
48
49
  * });
49
50
  *
50
51
  * if (!result.ok) {
@@ -91,8 +92,10 @@ function useFormSubmission() {
91
92
  const FormNodeClient = ({ render }) => {
92
93
  const form = render.display.form;
93
94
  const { submit, state } = useFormSubmission();
94
- const [altchaSolution, setAltchaSolution] = useState(null);
95
- const showSpamProtection = render.hydration.spamProtectionEnabled ?? isSpamProtectionEnabled();
95
+ const protection = useAltchaProtection({
96
+ apiBaseUrl: useBlockApi().config.baseUrl,
97
+ enabled: render.hydration.spamProtectionEnabled
98
+ });
96
99
  if (!form) return /* @__PURE__ */ jsx(FeedbackMessage, {
97
100
  tone: "warning",
98
101
  className: clsx("fb-empty", render.display.className ?? void 0),
@@ -101,23 +104,16 @@ const FormNodeClient = ({ render }) => {
101
104
  });
102
105
  const handleSubmit = async (e) => {
103
106
  e.preventDefault();
107
+ if (protection.submission.kind !== "ready") return;
104
108
  const formData = new FormData(e.currentTarget);
105
109
  const honeypot = formData.get("company");
106
- if (honeypot?.trim()) return;
107
- const data = {};
108
- for (const [key, fieldValue] of formData.entries()) {
109
- if (key === "company" || key === "altcha-solution") continue;
110
- if (key in data) {
111
- const existing = data[key];
112
- data[key] = isUnknownArray(existing) ? [...existing, fieldValue] : [existing, fieldValue];
113
- } else data[key] = fieldValue;
114
- }
110
+ if (typeof honeypot !== "string" || honeypot.trim()) return;
115
111
  await submit({
112
+ authorization: protection.submission.authorization,
116
113
  formId: form.id,
117
- data,
114
+ data: submittedFormFields(formData),
118
115
  meta: {
119
116
  honeypot,
120
- altchaSolution,
121
117
  referer: typeof window !== "undefined" ? window.location.href : void 0,
122
118
  userAgent: typeof navigator !== "undefined" ? navigator.userAgent : void 0
123
119
  }
@@ -152,11 +148,9 @@ const FormNodeClient = ({ render }) => {
152
148
  groups: render.display.groups,
153
149
  lookSlots: render.display.lookSlots
154
150
  }),
155
- showSpamProtection && /* @__PURE__ */ jsx(AltchaWidget, {
156
- challengeUrl: getChallengeUrl(),
157
- onSolutionChange: setAltchaSolution
158
- }),
151
+ /* @__PURE__ */ jsx(SpamProtectionWidget, { protection }),
159
152
  /* @__PURE__ */ jsx(FormSubmitAction, {
153
+ submission: protection.submission,
160
154
  lookSlots: render.display.lookSlots,
161
155
  disabled: state.tag === "submitting",
162
156
  submitLabel: state.tag === "submitting" ? "Submitting..." : render.display.submitLabel
@@ -164,6 +158,21 @@ const FormNodeClient = ({ render }) => {
164
158
  ]
165
159
  });
166
160
  };
161
+ /** Keep repeated visitor fields while excluding the provider's internal controls. */
162
+ function submittedFormFields(formData) {
163
+ return Array.from(formData.entries()).filter(([key]) => ![
164
+ "company",
165
+ "altcha",
166
+ "altcha-solution"
167
+ ].includes(key)).reduce((fields, [key, value]) => {
168
+ const existing = fields[key];
169
+ const combined = Object.prototype.hasOwnProperty.call(fields, key) ? isUnknownArray(existing) ? [...existing, value] : [existing, value] : value;
170
+ return {
171
+ ...fields,
172
+ [key]: combined
173
+ };
174
+ }, {});
175
+ }
167
176
  function FormSuccessMessage({ display }) {
168
177
  const message = display.successMessage?.trim() || "Thanks — we received your submission.";
169
178
  return display.lookSlots ? /* @__PURE__ */ jsx("p", {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
3
- import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
4
- import { t as CheckboxChoice } from "./CheckboxChoice-Dtgp3OU8.mjs";
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";
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
@@ -182,14 +182,15 @@ function FormFieldGroups({ groups, lookSlots }) {
182
182
  children: group.fields.map(renderField)
183
183
  }, group.key) : renderField(group.field)) });
184
184
  }
185
- function FormSubmitAction({ lookSlots, submitLabel, disabled }) {
185
+ function FormSubmitAction({ lookSlots, submitLabel, disabled, submission }) {
186
186
  return /* @__PURE__ */ jsx("div", {
187
187
  className: "fb-actions",
188
188
  ...listLookSlot({ lookSlots }, "actions"),
189
189
  children: /* @__PURE__ */ jsx("div", {
190
190
  className: "fb-actions-inner",
191
191
  ...listLookSlot({ lookSlots }, "inline"),
192
- children: /* @__PURE__ */ jsx(ThemedButton, {
192
+ children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
193
+ submission,
193
194
  ...listLookSlot({ lookSlots }, "action"),
194
195
  type: "submit",
195
196
  variant: "primary",
@@ -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-4XFGzJpT.mjs";
2
+ import { Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, ft as formatDateTime, ut as formatDate$1 } from "./noop-CQU7tiMg.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,12 +1,13 @@
1
1
  "use client";
2
2
  "use client";
3
- import { W as formatGiftCardAmountLabel, i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-DclwabI7.mjs";
4
- import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, t as logger, ut as formatDate } from "../noop-4XFGzJpT.mjs";
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";
5
6
  import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
6
- import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-Bg0SFWcM.mjs";
7
+ import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-CBV21-9L.mjs";
7
8
  import React from "react";
8
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
- import { useRouter } from "next/navigation.js";
10
+ import { useRouter } from "next/navigation";
10
11
  //#region ../core/src/gift-expiry.ts
11
12
  /** Gifts expire at an exclusive boundary; vouchers include their end instant. */
12
13
  function formatGiftExpiryDate(expiresAt, context, kind = "gift_card") {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
3
- import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-BqVDXL0D.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
3
+ import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-CEqqq92r.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 { lr as renderableMediaAssetSchema } from "./schema-BFwQDvJL.mjs";
2
+ import { ur as renderableMediaAssetSchema } from "./schema-BdSglH2X.mjs";
3
3
  //#region src/rendering/mediaAssets.ts
4
4
  function toBlocksMediaAssets(assets) {
5
5
  if (!assets) return void 0;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { cr as buildRenderableMediaAssetIndex } from "./schema-BFwQDvJL.mjs";
2
+ import { lr as buildRenderableMediaAssetIndex } from "./schema-BdSglH2X.mjs";
3
3
  //#region ../blocks/src/system/runtime/nodes/mediaContext.ts
4
4
  function buildMediaAssetIndex(assets) {
5
5
  return buildRenderableMediaAssetIndex(assets);