@riverbankcms/sdk 0.162.0 → 0.164.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 (201) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +12 -1
  3. package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
  4. package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
  5. package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
  6. package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
  7. package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
  8. package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
  9. package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
  11. package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
  12. package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
  13. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  14. package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
  15. package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
  16. package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
  17. package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
  18. package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
  19. package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
  20. package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
  21. package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +6 -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/index.d.ts +8 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
  42. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  44. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  45. package/dist/_dts/sdk/src/server.d.ts +5 -5
  46. package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{types-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
  49. package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
  50. package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
  51. package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
  53. package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
  54. package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
  57. package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
  59. package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
  61. package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
  62. package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
  63. package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
  64. package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
  65. package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
  66. package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
  67. package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
  68. package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
  69. package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
  70. package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
  71. package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
  72. package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
  73. package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
  74. package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
  75. package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
  76. package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
  77. package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
  78. package/dist/client/bookings.mjs +23 -32
  79. package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
  80. package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
  81. package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
  82. package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
  83. package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
  84. package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
  85. package/dist/client/client.mjs +216 -109
  86. package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
  87. package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
  88. package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
  90. package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
  91. package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
  92. package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
  93. package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
  94. package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
  95. package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
  96. package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
  97. package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
  98. package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
  99. package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
  100. package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
  101. package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
  102. package/dist/client/gifting/client.mjs +4 -3
  103. package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
  104. package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
  105. package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
  106. package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
  107. package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
  108. package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
  109. package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
  110. package/dist/client/portal/client.mjs +13 -12
  111. package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
  112. package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
  113. package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
  114. package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
  115. package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
  116. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  117. package/dist/client/purchase-BMsWpx8y.mjs +894 -0
  118. package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
  119. package/dist/client/rendering/client.mjs +27 -27
  120. package/dist/client/rendering/islands.mjs +1 -1
  121. package/dist/client/rendering.mjs +23 -19
  122. package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
  123. package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
  124. package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
  125. package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
  126. package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
  127. package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
  128. package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
  129. package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
  130. package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
  131. package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
  132. package/dist/client/spam-protection.mjs +4 -69
  133. package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
  134. package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
  135. package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
  136. package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
  137. package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
  138. package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
  139. package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
  140. package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
  141. package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
  142. package/dist/preview-next/before-render.mjs +1 -1
  143. package/dist/preview-next/chrome.css +1 -1
  144. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
  145. package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
  146. package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
  149. package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
  150. package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
  151. package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
  154. package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
  155. package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
  156. package/dist/preview-next/edit-map.css +37 -0
  157. package/dist/preview-next/keepAlive.mjs +1 -1
  158. package/dist/preview-next/maplibre-gl.css +1 -0
  159. package/dist/preview-next/middleware.mjs +1 -1
  160. package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
  161. package/dist/preview-next/upload-structure.css +18 -0
  162. package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
  163. package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
  164. package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.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-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
  168. package/dist/server/index.mjs +3 -3
  169. package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
  170. package/dist/server/loadPage-BwjncpJf.mjs +2 -0
  171. package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
  172. package/dist/server/next.mjs +9 -9
  173. package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
  174. package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
  175. package/dist/server/page-converter.mjs +1 -1
  176. package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
  177. package/dist/server/prebuild.mjs +1 -1
  178. package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
  179. package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
  180. package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
  181. package/dist/server/rendering/server.mjs +4 -4
  182. package/dist/server/rendering.mjs +8 -8
  183. package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
  184. package/dist/server/routing.mjs +1 -1
  185. package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
  188. package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
  189. package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
  190. package/dist/server/theme-bridge.mjs +1 -1
  191. package/dist/server/theme.mjs +1 -1
  192. package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
  193. package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
  194. package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
  195. package/dist/styles/index.css +399 -112
  196. package/package.json +2 -3
  197. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  198. package/dist/_dts/index-C39F9KaB.d.ts +0 -77
  199. package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
  200. package/dist/client/src-BNZzXgWu.mjs +0 -102
  201. package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
@@ -1,25 +1,24 @@
1
1
  "use client";
2
- import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-BWsDgjMC.mjs";
2
+ 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-BQdm441g.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-BO2OmMO9.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-CvT0E9AR.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-CreQ0I7i.mjs";
7
- import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-C3g8_Hqb.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-xqU4q63H.mjs";
5
+ import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-pt2xXBQp.mjs";
6
+ import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-BGVwNwE-.mjs";
7
+ import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-ByT88VHR.mjs";
8
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
9
- import { t as CheckboxChoice } from "./CheckboxChoice-C7X9dJ8A.mjs";
9
+ import { t as CheckboxChoice } from "./CheckboxChoice-3PhxDxgR.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-EBOBN5dT.mjs";
14
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-Gn_m7e0o.mjs";
13
+ import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-Qw780EfW.mjs";
14
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-BEIvL31G.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-CFYPDEHH.mjs";
16
+ import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-CSQyFm9J.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-CFacB1z6.mjs";
19
- import { n as useBlockApi, r as BlockApiError } from "./context-BFwxgZpB.mjs";
20
- import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
21
- import { t as useBookingNowIso } from "./useBookingNowIso-DrTnGNzD.mjs";
22
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-WOiT5Ryi.mjs";
18
+ import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-Bp7MyutT.mjs";
19
+ import { n as useBlockApi, r as BlockApiError } from "./context-BNAM7NsW.mjs";
20
+ import { t as useBookingNowIso } from "./useBookingNowIso-CUExAee1.mjs";
21
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-NwKJk6gn.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";
@@ -2926,39 +2925,29 @@ function ExistingRegistrationNotice(props) {
2926
2925
  function AttendeeDetailsContent(props) {
2927
2926
  const { wizard } = props;
2928
2927
  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 })
2928
+ return /* @__PURE__ */ jsxs(Fragment, { children: [membership && /* @__PURE__ */ jsx(MembershipHero, { membershipName: membership.membershipName }), /* @__PURE__ */ jsx(AttendeeDetailsStep, {
2929
+ formData: wizard.formData,
2930
+ onChange: wizard.setFormData,
2931
+ errors: wizard.errors,
2932
+ emailLocked: wizard.portalAuthState === "authenticated",
2933
+ onLogout: wizard.portalAuthState === "authenticated" ? wizard.handleLogout : void 0,
2934
+ ticketsCount: wizard.ticketsCount,
2935
+ requireGuestDetails: wizard.requireGuestDetails,
2936
+ guests: wizard.guests,
2937
+ onGuestsChange: wizard.setGuests,
2938
+ guestErrors: wizard.guestErrors,
2939
+ guestSectionShake: wizard.guestSectionShake,
2940
+ onGuestShakeEnd: wizard.handleGuestShakeEnd,
2941
+ consent: (wizard.selectedEvent ?? wizard.preSelectedEvent)?.consent ?? null,
2942
+ mailingListSignup: wizard.mailingListSignup,
2943
+ siteTerms: /* @__PURE__ */ jsx(SiteTermsAgreementField, {
2944
+ agreement: wizard.siteTerms.view,
2945
+ onChange: wizard.siteTerms.onChange,
2946
+ error: wizard.siteTerms.error,
2947
+ disabled: wizard.siteTerms.disabled
2953
2948
  }),
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
- ] });
2949
+ siteTermsNotice: /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice })
2950
+ })] });
2962
2951
  }
2963
2952
  function EventDiscountCodeDisclosure(props) {
2964
2953
  const { wizard } = props;
@@ -3066,7 +3055,6 @@ function TicketSelectionContent({ wizard, display }) {
3066
3055
  }
3067
3056
  function EventRegistrationWizardContent(props) {
3068
3057
  const { wizard } = props;
3069
- const showSpamProtection = props.showSpamProtection ?? isSpamProtectionEnabled();
3070
3058
  switch (wizard.step) {
3071
3059
  case "payment": return /* @__PURE__ */ jsx(EventPaymentMount, {
3072
3060
  state: wizard.paymentController.state,
@@ -3092,10 +3080,7 @@ function EventRegistrationWizardContent(props) {
3092
3080
  wizard,
3093
3081
  display: props.display
3094
3082
  });
3095
- case "enter-details": return /* @__PURE__ */ jsx(AttendeeDetailsContent, {
3096
- wizard,
3097
- showSpamProtection
3098
- });
3083
+ case "enter-details": return /* @__PURE__ */ jsx(AttendeeDetailsContent, { wizard });
3099
3084
  case "select-payment": return /* @__PURE__ */ jsx(PaymentSelectionContent, { wizard });
3100
3085
  default: return null;
3101
3086
  }
@@ -3339,7 +3324,6 @@ function EventRegistrationStepLayout(props) {
3339
3324
  /* @__PURE__ */ jsx(EventRegistrationWizardContent, {
3340
3325
  wizard,
3341
3326
  display: props.display,
3342
- showSpamProtection: props.showSpamProtection,
3343
3327
  buttonVariant: props.buttonVariant
3344
3328
  }),
3345
3329
  props.showPortalAuthPrompt && props.portalAuthCopy.placement === "after" ? prompt : null
@@ -3562,8 +3546,7 @@ function overlayProgress(presentation, stepLabelContext) {
3562
3546
  }
3563
3547
  function EventRegistrationWizardView(viewProps) {
3564
3548
  const { wizard, ...props } = viewProps;
3565
- const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, spamProtectionEnabled, supportEmail } = props;
3566
- const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
3549
+ const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, supportEmail } = props;
3567
3550
  const registrationRootClassName = `event-registration ${className || ""}`;
3568
3551
  const registrationRootRef = React.useRef(null);
3569
3552
  const [bookingOverlayOpen, setBookingOverlayOpen] = useBookingPanelOpen(wizard.step, wizard.waitlistClaim.kind !== "none");
@@ -3623,7 +3606,6 @@ function EventRegistrationWizardView(viewProps) {
3623
3606
  showPortalAuthPrompt,
3624
3607
  portalAuthCopy,
3625
3608
  display,
3626
- showSpamProtection,
3627
3609
  buttonText,
3628
3610
  buttonVariant,
3629
3611
  supportEmail,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
3
- import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
4
- import { t as EventCalendarClient } from "./EventCalendar.client-U6pKcntV.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as BlockApiProvider } from "./context-BNAM7NsW.mjs";
4
+ import { t as EventCalendarClient } from "./EventCalendar.client-DWoboRW5.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DNx6b07x.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-CkSUep5a.mjs";
3
- import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
4
- import { n as EventCombinedIslandClient } from "./EventCombined.client-CNzwEHws.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as BlockApiProvider } from "./context-BNAM7NsW.mjs";
4
+ import { n as EventCombinedIslandClient } from "./EventCombined.client-C98ucpcP.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DNx6b07x.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-CkSUep5a.mjs";
3
- import { t as EventDetailsIslandClient } from "./event-details.client-BFgsLqTj.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as EventDetailsIslandClient } from "./event-details.client-jFyFjOIC.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-CkSUep5a.mjs";
3
- import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
4
- import { t as EventListingClient } from "./EventListing.client-B8F40Rmn.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as BlockApiProvider } from "./context-BNAM7NsW.mjs";
4
+ import { t as EventListingClient } from "./EventListing.client-Cp11sBX_.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DNx6b07x.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-CkSUep5a.mjs";
3
- import { t as EventRegistrationIslandClient } from "./event-registration.client-BaXZ1-Ky.mjs";
4
- import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as EventRegistrationIslandClient } from "./event-registration.client-BK_jVv3R.mjs";
4
+ import { t as BlockApiProvider } from "./context-BNAM7NsW.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DNx6b07x.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-CkSUep5a.mjs";
3
- import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
4
- import { t as FormNodeClient } from "./form.client-B0iancFK.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as BlockApiProvider } from "./context-BNAM7NsW.mjs";
4
+ import { t as FormNodeClient } from "./form.client-CoKNba2e.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-BWsDgjMC.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-BO2OmMO9.mjs";
3
+ import { Pr as listLookSlot } from "./wizardSteps-xqU4q63H.mjs";
4
+ import { C as clsx } from "./ThemedButton-BGVwNwE-.mjs";
5
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
6
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DMbolu9Y.mjs";
7
- import { n as useBlockApi } from "./context-BFwxgZpB.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-magB_epJ.mjs";
7
+ import { n as useBlockApi } from "./context-BNAM7NsW.mjs";
8
+ import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CRsKTQV-.mjs";
9
+ import { t as useAltchaProtection } from "./altchaProtection-BWchRM3v.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-BWsDgjMC.mjs";
3
- import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-BO2OmMO9.mjs";
4
- import { t as CheckboxChoice } from "./CheckboxChoice-C7X9dJ8A.mjs";
2
+ import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-xqU4q63H.mjs";
3
+ import { t as CheckboxChoice } from "./CheckboxChoice-3PhxDxgR.mjs";
4
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-DGbgGvdh.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-B3RNPVrt.mjs";
2
+ import { Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, ft as formatDateTime, ut as formatDate$1 } from "./noop-C2vZse15.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,9 +1,10 @@
1
1
  "use client";
2
2
  "use client";
3
- import { W as formatGiftCardAmountLabel, i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-BWsDgjMC.mjs";
4
- import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, t as logger, ut as formatDate } from "../noop-B3RNPVrt.mjs";
3
+ import { x as formatGiftCardAmountLabel } from "../purchase-BMsWpx8y.mjs";
4
+ import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, t as logger, ut as formatDate } from "../noop-C2vZse15.mjs";
5
+ import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-BGVwNwE-.mjs";
5
6
  import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
6
- import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-BFwxgZpB.mjs";
7
+ import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-BNAM7NsW.mjs";
7
8
  import React from "react";
8
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
10
  import { useRouter } from "next/navigation.js";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
3
- import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-Dh8c_Lq-.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-D4zqEBDl.mjs";
4
4
  //#region src/rendering/islands/enhancers/headerSection.ts
5
5
  const decode = defineIslandPropsDecoder("headerSection");
6
6
  const enhance = (root, props) => {
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { lr as renderableMediaAssetSchema } from "./schema-DMUkBtIO.mjs";
3
+ //#region src/rendering/mediaAssets.ts
4
+ function toBlocksMediaAssets(assets) {
5
+ if (!assets) return void 0;
6
+ return assets.map((asset) => renderableMediaAssetSchema.parse(asset));
7
+ }
8
+ function toBlocksImageResolveContextInput(context) {
9
+ if (!context) return void 0;
10
+ return {
11
+ ...context,
12
+ mediaAssets: toBlocksMediaAssets(context.mediaAssets)
13
+ };
14
+ }
15
+ /** Admit loader sidecars once before sharing them with page and image rendering. */
16
+ function collectLoaderMediaAssets(resolvedData) {
17
+ return Object.values(resolvedData ?? {}).flatMap((block) => Object.values(block).flatMap((loader) => {
18
+ if (!loader || typeof loader !== "object" || !("mediaAssets" in loader) || !Array.isArray(loader.mediaAssets)) return [];
19
+ return renderableMediaAssetSchema.array().parse(loader.mediaAssets);
20
+ }));
21
+ }
22
+ function mergeMediaAssets(preferred, fallback) {
23
+ if (!fallback?.length) return preferred;
24
+ return [...new Map([...fallback, ...preferred ?? []].map((asset) => [asset.id, asset])).values()];
25
+ }
26
+ /** Page and image rendering share the same admitted loader assets and precedence. */
27
+ function resolveBlocksPageMediaContext(dataContext) {
28
+ const loaderAssets = collectLoaderMediaAssets(dataContext.resolvedData);
29
+ const mediaAssets = mergeMediaAssets(toBlocksMediaAssets(dataContext.mediaAssets), loaderAssets);
30
+ const explicitImageContext = toBlocksImageResolveContextInput(dataContext.imageResolveContext);
31
+ const imageAssets = mergeMediaAssets(explicitImageContext?.mediaAssets, mediaAssets);
32
+ return {
33
+ mediaAssets,
34
+ imageResolveContext: explicitImageContext || dataContext.siteId || dataContext.supabaseUrl || imageAssets?.length ? {
35
+ siteId: dataContext.siteId,
36
+ supabaseUrl: dataContext.supabaseUrl,
37
+ ...explicitImageContext,
38
+ mediaAssets: imageAssets
39
+ } : void 0
40
+ };
41
+ }
42
+ //#endregion
43
+ export { toBlocksImageResolveContextInput as n, toBlocksMediaAssets as r, resolveBlocksPageMediaContext as t };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { $n as buildRenderableMediaAssetIndex } from "./schema-DNHLlze-.mjs";
2
+ import { cr as buildRenderableMediaAssetIndex } from "./schema-DMUkBtIO.mjs";
3
3
  //#region ../blocks/src/system/runtime/nodes/mediaContext.ts
4
4
  function buildMediaAssetIndex(assets) {
5
5
  return buildRenderableMediaAssetIndex(assets);