@riverbankcms/sdk 0.159.0 → 0.160.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 (194) hide show
  1. package/README.md +4 -4
  2. package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
  3. package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-C0ENVLCF.d.ts} +13 -6
  4. package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
  5. package/dist/_dts/{client-BOK-YHVJ.d.ts → client-uMMuPq9V.d.ts} +1 -1
  6. package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
  7. package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
  8. package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-nyU8q02J.d.ts} +2 -2
  10. package/dist/_dts/{index-DzUdUaJ-.d.ts → index-BaaGBY1v.d.ts} +2 -2
  11. package/dist/_dts/{index-CcaG6O13.d.ts → index-Bg64CkV-.d.ts} +4 -4
  12. package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
  13. package/dist/_dts/{index-DMOfW1A7.d.ts → index-C5xslEBn.d.ts} +2 -2
  14. package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CEaKil7G.d.ts} +2 -2
  15. package/dist/_dts/{index-BZ4fb2zz.d.ts → index-DahMwisK.d.ts} +3 -3
  16. package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
  17. package/dist/_dts/{index-Ci1PEk82.d.ts → index-nVoi_74l.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
  19. package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
  20. package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
  21. package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-D0bNcPWK.d.ts} +6907 -6762
  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 +12 -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 +6 -6
  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 +10 -28
  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 +6 -6
  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/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-CI9dYWJ8.d.ts → types-CFrYuXYP.d.ts} +2 -2
  48. package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-D8czmbQF.d.ts} +15911 -17318
  49. package/dist/_dts/{types--oWXIfyz.d.ts → types-DSgmJ15W.d.ts} +7 -7
  50. package/dist/_dts/{types-CMFIZGUI.d.ts → types-Dm-KW7nj.d.ts} +10 -13
  51. package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
  53. package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
  54. package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
  57. package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
  59. package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
  61. package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-CXhnT9pF.mjs} +11 -6
  62. package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
  63. package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
  64. package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
  65. package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +77 -96
  66. package/dist/client/{LeafletStaticMap-dlapZ6mi.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
  67. package/dist/client/{Page-Dqpv9Ggi.mjs → Page-7PkzO04N.mjs} +1941 -2069
  68. package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
  69. package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
  70. package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
  71. package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-2m27DsIk.mjs} +1 -1
  72. package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
  73. package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
  74. package/dist/client/bookings.mjs +6 -6
  75. package/dist/client/{carousel-C8ef0vnT.mjs → carousel-D7nj9I0y.mjs} +2 -2
  76. package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
  77. package/dist/client/{cart-BpH6jkUO.mjs → cart-PN6yCw1H.mjs} +3 -3
  78. package/dist/client/{cart.client-DV78Td13.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
  79. package/dist/client/{checkout-BJVb2RpL.mjs → checkout-CsTwXVSb.mjs} +3 -3
  80. package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
  81. package/dist/client/client.mjs +25 -13
  82. package/dist/client/{context-BRgBWthI.mjs → context-BLAvalAa.mjs} +1 -1
  83. package/dist/client/{cta-D8ucLsvX.mjs → cta-CUXhX_D7.mjs} +2 -1
  84. package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BHIHxNuo.mjs} +1 -1
  85. package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
  86. package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
  87. package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
  88. package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-BXndwsET.mjs} +14 -14
  89. package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
  90. package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
  91. package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-FFAknE4w.mjs} +2 -2
  92. package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-CGK6urk3.mjs} +4 -4
  93. package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
  94. package/dist/client/{form-DjNLfy2Z.mjs → form-C-B5O_ko.mjs} +3 -3
  95. package/dist/client/{form.client-Cj0By6ot.mjs → form.client-DoZVcl8d.mjs} +5 -5
  96. package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-mttKpgif.mjs} +3 -3
  97. package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-xUSCknEO.mjs} +1 -1
  98. package/dist/client/gifting/client.mjs +3 -3
  99. package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-BHUEXsaI.mjs} +2 -2
  100. package/dist/client/{location-map.client-DRN1JePj.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
  101. package/dist/client/{location-map.view-CuCvQdvp.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
  102. package/dist/client/{locationMap-B9srHHzZ.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
  103. package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
  104. package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
  105. package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
  106. package/dist/client/{noop-M8FTSgm2.mjs → noop-B610YKEx.mjs} +10 -3
  107. package/dist/client/portal/client.mjs +4559 -114
  108. package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
  109. package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
  110. package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-B8bBiogP.mjs} +3 -3
  111. package/dist/client/{productList-BSRlnwBW.mjs → productList-BKN4D-1z.mjs} +3 -3
  112. package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
  113. package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BAm4RPNJ.mjs} +819 -855
  114. package/dist/client/rendering/client.mjs +27 -26
  115. package/dist/client/rendering/islands.mjs +1 -1
  116. package/dist/client/rendering.mjs +47 -28
  117. package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
  118. package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
  119. package/dist/client/{shop-CnIJfdZA.mjs → shop-DZNC0VKk.mjs} +3 -3
  120. package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
  121. package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
  122. package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-DmDd-igg.mjs} +15 -15
  123. package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-5SnnDHz3.mjs} +368 -35
  124. package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-CPqUlAh9.mjs} +2 -2
  125. package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
  126. package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
  127. package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
  128. package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
  129. package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
  130. package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
  131. package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
  132. package/dist/client/uuid-BETKW8rS.mjs +12 -0
  133. package/dist/client/{view-BgPql2yH2.mjs → view-CkUn3Y0Y.mjs} +4 -4
  134. package/dist/client/{view-D1R3Lk05.mjs → view-CseyBW07.mjs} +6 -5
  135. package/dist/client/{wizardSteps-C0TsNqJc.mjs → wizardSteps-zgq10lN1.mjs} +162 -30
  136. package/dist/preview-next/before-render.mjs +1 -1
  137. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
  138. package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1281 -171
  139. package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
  141. package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +856 -2171
  142. package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +115951 -110090
  143. package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
  144. package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
  145. package/dist/preview-next/client/runtime.mjs +3 -3
  146. package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
  147. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
  148. package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-C4If5Y-O.mjs} +1 -1
  149. package/dist/preview-next/editor-base.css +62 -0
  150. package/dist/preview-next/editor-chrome.css +85 -0
  151. package/dist/preview-next/keepAlive.mjs +1 -1
  152. package/dist/preview-next/middleware.mjs +1 -1
  153. package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
  154. package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-D1_gonwM.mjs} +6 -6
  155. package/dist/server/{bindings-z2daXp-2.mjs → bindings-CFmJg5lm.mjs} +2 -2
  156. package/dist/server/{client-Cv-osXoU.mjs → client-DPsi0Dai.mjs} +9 -7
  157. package/dist/server/config-template-validation.mjs +50 -10
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/server/index.mjs +2 -2
  161. package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-RMCcuVU_.mjs} +33 -20
  162. package/dist/server/loadPage-DUPP51C-.mjs +2 -0
  163. package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-DhDGzj7t.mjs} +8 -5
  164. package/dist/server/manifest.mjs +1 -1
  165. package/dist/server/next.mjs +9 -9
  166. package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
  167. package/dist/server/{overrides-DxRC724a.mjs → overrides-Bz_A6sB9.mjs} +651 -542
  168. package/dist/server/page-converter.mjs +8 -10
  169. package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild-B_1vrSru.mjs} +1 -1
  170. package/dist/server/prebuild.mjs +1 -1
  171. package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
  172. package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
  173. package/dist/server/{blocks-BaG8Qpaa.mjs → registry-eFjKtEhF.mjs} +2049 -1451
  174. package/dist/server/rendering/server.mjs +4 -4
  175. package/dist/server/rendering.mjs +7 -7
  176. package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
  177. package/dist/server/routing.mjs +1 -1
  178. package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
  179. package/dist/server/server.mjs +3 -3
  180. package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
  181. package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
  182. package/dist/server/theme-bridge.mjs +1 -1
  183. package/dist/server/theme.mjs +1 -1
  184. package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-ruoyXb_0.mjs} +2 -2
  185. package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
  186. package/dist/server/{validation-BtHE2S_D.mjs → validation-B-Xar8QS.mjs} +22 -63
  187. package/dist/server/{version-CNCdL6id.mjs → version-Bg7VHK3i.mjs} +1 -1
  188. package/dist/styles/index.css +78 -0
  189. package/package.json +8 -3
  190. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  191. package/dist/_dts/index-cnymEAZY.d.ts +0 -1
  192. package/dist/client/timetableModel-D09jPdue.mjs +0 -480
  193. package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
  194. package/dist/server/loadPage-jade28Xh.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
3
- import { Xi as assertNever } from "./wizardSteps-C0TsNqJc.mjs";
4
- import "./shop.interactive-BxL_bshW.mjs";
2
+ import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
3
+ import { c as assertNever } from "./src-VIsPY-kw.mjs";
4
+ import "./shop.interactive-5SnnDHz3.mjs";
5
5
  import { t as StepIndicator$1 } from "./StepIndicator-BK0GEDoP.mjs";
6
6
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
7
7
  import React from "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { S as clsx } from "./ThemedButton-DVBC_pS9.mjs";
2
+ import { C as clsx } from "./ThemedButton-C22C9cCF.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
@@ -614,11 +614,33 @@ function relativeLuminance(r, g, b) {
614
614
  const R = srgbToLinear(r), G = srgbToLinear(g), B = srgbToLinear(b);
615
615
  return .2126 * R + .7152 * G + .0722 * B;
616
616
  }
617
- function contrastRatio(hex1, hex2) {
618
- const { r: r1, g: g1, b: b1 } = hexToRgb(hex1);
619
- const { r: r2, g: g2, b: b2 } = hexToRgb(hex2);
620
- const L1 = relativeLuminance(r1, g1, b1);
621
- const L2 = relativeLuminance(r2, g2, b2);
617
+ function preparePaletteColourIndex(palette) {
618
+ const colours = [.../* @__PURE__ */ new Set([
619
+ ...Object.values(palette),
620
+ "#000000",
621
+ "#ffffff",
622
+ "#FFFFFF"
623
+ ])];
624
+ return Object.freeze(Object.fromEntries(colours.flatMap(colourIndexEntry)));
625
+ }
626
+ /** An unused unsupported colour must not turn preparation into an eager validation failure. */
627
+ function colourIndexEntry(hex) {
628
+ try {
629
+ return [[hex, colourLuminance(hex)]];
630
+ } catch {
631
+ return [];
632
+ }
633
+ }
634
+ function colourLuminance(hex) {
635
+ const { r, g, b } = hexToRgb(hex);
636
+ return relativeLuminance(r, g, b);
637
+ }
638
+ function indexedLuminance(hex, index) {
639
+ return (index && Object.prototype.hasOwnProperty.call(index, hex) ? index[hex] : void 0) ?? colourLuminance(hex);
640
+ }
641
+ function contrastRatio(hex1, hex2, index) {
642
+ const L1 = indexedLuminance(hex1, index);
643
+ const L2 = indexedLuminance(hex2, index);
622
644
  const [hi, lo] = L1 >= L2 ? [L1, L2] : [L2, L1];
623
645
  return (hi + .05) / (lo + .05);
624
646
  }
@@ -2287,6 +2309,7 @@ function defineButtonStyleRecipe(recipe) {
2287
2309
  }
2288
2310
  function mapButtonVisualAppearances(states, transform) {
2289
2311
  return {
2312
+ ...states,
2290
2313
  base: transform(states.base, "base"),
2291
2314
  hover: transform(states.hover, "hover"),
2292
2315
  focus: transform(states.focus, "focus"),
@@ -3105,7 +3128,7 @@ function formatButtonColourContractError(error) {
3105
3128
  }
3106
3129
  }
3107
3130
  function validateButtonSurfaceContrast(input) {
3108
- const ratio = contrastRatio(input.buttonPaint, input.surfaceHex);
3131
+ const ratio = contrastRatio(input.buttonPaint, input.surfaceHex, input.colourIndex);
3109
3132
  return ratio >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio ? { ok: true } : {
3110
3133
  ok: false,
3111
3134
  error: {
@@ -3120,7 +3143,7 @@ function validateButtonSurfaceContrast(input) {
3120
3143
  };
3121
3144
  }
3122
3145
  function validateButtonTextContrast(input) {
3123
- const ratio = contrastRatio(input.backgroundHex, input.foregroundHex);
3146
+ const ratio = contrastRatio(input.backgroundHex, input.foregroundHex, input.colourIndex);
3124
3147
  return ratio >= BUTTON_CONTRAST_POLICY.textMinimumRatio ? { ok: true } : {
3125
3148
  ok: false,
3126
3149
  error: {
@@ -3142,7 +3165,7 @@ function solidForegroundToken(backgroundToken) {
3142
3165
  //#region ../theme-core/src/buttons/contextualHover.ts
3143
3166
  function resolveContextualHoverPreference(input) {
3144
3167
  const preferred = input.instruction.preferredToken;
3145
- if (preferred && isSafeCandidate(preferred, input.palette, input.surface)) return {
3168
+ if (preferred && isSafeCandidate(preferred, input.palette, input.surface, input.colourIndex)) return {
3146
3169
  kind: "resolved",
3147
3170
  token: preferred,
3148
3171
  repair: null
@@ -3170,7 +3193,7 @@ function resolveContextualHover(input) {
3170
3193
  kind: "unavailable",
3171
3194
  reason: "no-distinct-shade"
3172
3195
  };
3173
- const textSafe = candidates.filter((candidate) => hasSafeTextContrast(candidate.token, input.palette));
3196
+ const textSafe = candidates.filter((candidate) => hasSafeTextContrast(candidate.token, input.palette, input.colourIndex));
3174
3197
  if (textSafe.length === 0) return {
3175
3198
  kind: "unavailable",
3176
3199
  reason: "no-text-safe-candidate"
@@ -3187,17 +3210,12 @@ function resolveContextualHover(input) {
3187
3210
  reason: "no-text-safe-candidate"
3188
3211
  };
3189
3212
  }
3190
- const selected = textSafe.map((candidate) => ({
3191
- ...candidate,
3192
- surfaceContrast: contrastRatio(input.palette[candidate.token] ?? "", input.surface?.backgroundHex ?? "")
3193
- })).filter((candidate) => candidate.surfaceContrast !== null && candidate.surfaceContrast >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio).sort((left, right) => {
3194
- const distanceDifference = left.distance - right.distance;
3195
- if (distanceDifference !== 0) return distanceDifference;
3196
- const contrastDifference = (right.surfaceContrast ?? 0) - (left.surfaceContrast ?? 0);
3197
- if (contrastDifference !== 0) return contrastDifference;
3198
- if (left.direction === right.direction) return left.token.localeCompare(right.token);
3199
- return left.direction === input.instruction.fallbackDirection ? -1 : 1;
3200
- })[0];
3213
+ const selected = selectSurfaceSafeHover(textSafe, {
3214
+ palette: input.palette,
3215
+ surface: input.surface,
3216
+ colourIndex: input.colourIndex,
3217
+ fallbackDirection: input.instruction.fallbackDirection
3218
+ });
3201
3219
  return selected ? {
3202
3220
  kind: "resolved",
3203
3221
  token: selected.token,
@@ -3208,6 +3226,20 @@ function resolveContextualHover(input) {
3208
3226
  reason: "no-surface-safe-candidate"
3209
3227
  };
3210
3228
  }
3229
+ /** Rank the proven-surface candidates without mixing selection with fallback policy. */
3230
+ function selectSurfaceSafeHover(candidates, input) {
3231
+ return candidates.map((candidate) => ({
3232
+ ...candidate,
3233
+ surfaceContrast: contrastRatio(input.palette[candidate.token] ?? "", input.surface.backgroundHex, input.colourIndex)
3234
+ })).filter((candidate) => candidate.surfaceContrast !== null && candidate.surfaceContrast >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio).sort((left, right) => {
3235
+ const distanceDifference = left.distance - right.distance;
3236
+ if (distanceDifference !== 0) return distanceDifference;
3237
+ const contrastDifference = (right.surfaceContrast ?? 0) - (left.surfaceContrast ?? 0);
3238
+ if (contrastDifference !== 0) return contrastDifference;
3239
+ if (left.direction === right.direction) return left.token.localeCompare(right.token);
3240
+ return left.direction === input.fallbackDirection ? -1 : 1;
3241
+ })[0];
3242
+ }
3211
3243
  function shadeCandidates(seedToken, palette) {
3212
3244
  const match = String(seedToken).match(/^(.*?)(?:-(\d{2,3}))?$/);
3213
3245
  const family = match?.[1] ?? String(seedToken);
@@ -3233,14 +3265,14 @@ function candidate(family, shade, currentShade, direction, seedHex, palette) {
3233
3265
  surfaceContrast: null
3234
3266
  };
3235
3267
  }
3236
- function hasSafeTextContrast(token, palette) {
3268
+ function hasSafeTextContrast(token, palette, colourIndex) {
3237
3269
  const background = palette[token];
3238
3270
  const foreground = palette[solidForegroundToken(token)];
3239
- return typeof background === "string" && typeof foreground === "string" && contrastRatio(background, foreground) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
3271
+ return typeof background === "string" && typeof foreground === "string" && contrastRatio(background, foreground, colourIndex) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
3240
3272
  }
3241
- function isSafeCandidate(token, palette, surface) {
3242
- if (!hasSafeTextContrast(token, palette)) return false;
3243
- return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
3273
+ function isSafeCandidate(token, palette, surface, colourIndex) {
3274
+ if (!hasSafeTextContrast(token, palette, colourIndex)) return false;
3275
+ return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex, colourIndex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
3244
3276
  }
3245
3277
  function escapeRegExp(value) {
3246
3278
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -3252,6 +3284,7 @@ function resolveButtonHoverTreatment(input) {
3252
3284
  const contextual = resolveContextualHoverPreference({
3253
3285
  instruction: input.variant.contextualHover,
3254
3286
  palette: input.palette,
3287
+ colourIndex: input.colourIndex,
3255
3288
  surface: input.surface
3256
3289
  });
3257
3290
  if (contextual.kind === "resolved") return {
@@ -3303,7 +3336,8 @@ function compileButtonColourStates(input) {
3303
3336
  global: input.global,
3304
3337
  fallback: base.treatment,
3305
3338
  palette: input.palette,
3306
- surface: input.surface
3339
+ surface: input.surface,
3340
+ colourIndex: input.colourIndex
3307
3341
  });
3308
3342
  const edge = buttonEdge(input.variant);
3309
3343
  const colours = collectStateColours(mapVisualStates((state) => compileVisualState(input, state, state === "hover" ? hover.treatment : base.treatment, edge, base.nonColourEffects)));
@@ -3361,6 +3395,7 @@ function compileDeclaredVisualState(input, states, state, treatment) {
3361
3395
  treatment: transition.treatment,
3362
3396
  palette: input.palette,
3363
3397
  surface: input.surface,
3398
+ colourIndex: input.colourIndex,
3364
3399
  edge
3365
3400
  });
3366
3401
  return resolved.ok ? {
@@ -3387,6 +3422,7 @@ function compileVisualState(input, state, treatment, edge, baseEffects) {
3387
3422
  treatment: transition.treatment,
3388
3423
  palette: input.palette,
3389
3424
  surface: input.surface,
3425
+ colourIndex: input.colourIndex,
3390
3426
  edge
3391
3427
  });
3392
3428
  return resolved.ok ? {
@@ -3605,11 +3641,11 @@ function interpolateHex(startHex, endHex, position) {
3605
3641
  * Derive only what the rendered section can honestly prove about its backing.
3606
3642
  * Images, gradients, alpha/composite layers and arbitrary CSS remain unknown.
3607
3643
  */
3608
- function deriveButtonSurfaceContext(input, palette, fallbackToken) {
3644
+ function deriveButtonSurfaceContext(input, palette, fallbackToken, colourIndex) {
3609
3645
  const background = deriveKnownBackground(input, palette, fallbackToken);
3610
3646
  if (background.kind === "unknown") return background;
3611
3647
  const explicitForeground = resolveKnownColour(input.kind === "solid" || input.kind === "inherit" ? input.foreground ?? "" : "", palette);
3612
- const foreground = explicitForeground && contrastRatio(background.colour.hex, explicitForeground.hex) >= 4.5 ? explicitForeground : safestBlackOrWhite(background.colour.hex);
3648
+ const foreground = explicitForeground && contrastRatio(background.colour.hex, explicitForeground.hex, colourIndex) >= 4.5 ? explicitForeground : safestBlackOrWhite(background.colour.hex, colourIndex);
3613
3649
  return {
3614
3650
  kind: "known-solid",
3615
3651
  source: background.source,
@@ -3692,7 +3728,7 @@ function resolveSurfaceButtonContext(input) {
3692
3728
  kind: "inherit",
3693
3729
  styles: {}
3694
3730
  };
3695
- const context = deriveButtonSurfaceContext(input.surface, input.palette, input.fallbackToken);
3731
+ const context = deriveButtonSurfaceContext(input.surface, input.palette, input.fallbackToken, input.colourIndex);
3696
3732
  if (context.kind !== "known-solid") return context.reason === "missing-background" ? {
3697
3733
  kind: "inherit",
3698
3734
  styles: {}
@@ -3705,6 +3741,7 @@ function resolveSurfaceButtonContext(input) {
3705
3741
  styles: knownSurfaceButtonContextStyles({
3706
3742
  surface: context.surface,
3707
3743
  palette: input.palette,
3744
+ colourIndex: input.colourIndex,
3708
3745
  buttonSystem: surfaceButtonSystem(input.buttonSystem, input.primaryToken)
3709
3746
  })
3710
3747
  };
@@ -3715,6 +3752,7 @@ function knownSurfaceButtonContextStyles(input) {
3715
3752
  role,
3716
3753
  buttonSystem: input.buttonSystem,
3717
3754
  palette: input.palette,
3755
+ colourIndex: input.colourIndex,
3718
3756
  surface: input.surface
3719
3757
  })))));
3720
3758
  }
@@ -3725,57 +3763,53 @@ function resolveContextualButtonRole(input) {
3725
3763
  requestedRole: input.role,
3726
3764
  rejectedCandidates: []
3727
3765
  };
3728
- const rejected = [];
3729
- const preferred = compileCandidate(requested, input.buttonSystem, input.palette, input.surface);
3730
- if (preferred.ok) {
3731
- if (preferred.contextualHoverRepair) return {
3732
- kind: "repaired",
3733
- requestedRole: input.role,
3734
- candidate: "contextual-hover",
3735
- states: preferred.states,
3736
- focusIndicator: preferred.focusIndicator,
3737
- boundary: boundaryForVariant(requested),
3738
- rejectedCandidates: []
3739
- };
3740
- return {
3741
- kind: "preferred",
3742
- requestedRole: input.role,
3743
- states: preferred.states,
3744
- focusIndicator: preferred.focusIndicator,
3745
- boundary: boundaryForVariant(requested)
3746
- };
3747
- }
3748
- rejected.push({
3766
+ const preferred = compileCandidate(requested, input);
3767
+ if (preferred.ok) return preferredButtonResolution(requested, preferred, input.role);
3768
+ return resolveFallbackButtonRole(input, requested, (input.buttonSystem.surfacePolicy ?? STANDARD_BUTTON_SURFACE_POLICY)[input.role], [{
3749
3769
  candidate: "preferred",
3750
3770
  error: preferred.error
3751
- });
3752
- const policy = input.buttonSystem.surfacePolicy ?? STANDARD_BUTTON_SURFACE_POLICY;
3753
- for (const fallback of policy[input.role]) {
3754
- const candidate = candidateVariant(fallback, requested, input.buttonSystem);
3755
- if (!candidate) continue;
3756
- const compiled = compileCandidate(candidate.variant, input.buttonSystem, input.palette, input.surface);
3757
- if (!compiled.ok) {
3758
- rejected.push({
3759
- candidate: candidate.name,
3760
- error: compiled.error
3761
- });
3762
- continue;
3763
- }
3764
- return {
3765
- kind: "repaired",
3766
- requestedRole: input.role,
3767
- candidate: candidate.name,
3768
- states: candidate.name === "surface-outline" ? withSurfaceInversion(compiled.states, input.surface) : compiled.states,
3769
- focusIndicator: compiled.focusIndicator,
3770
- boundary: candidate.boundary,
3771
- rejectedCandidates: rejected
3772
- };
3773
- }
3774
- return {
3771
+ }]);
3772
+ }
3773
+ function preferredButtonResolution(requested, compiled, role) {
3774
+ const appearance = {
3775
+ requestedRole: role,
3776
+ states: compiled.states,
3777
+ focusIndicator: compiled.focusIndicator,
3778
+ boundary: boundaryForVariant(requested)
3779
+ };
3780
+ return compiled.contextualHoverRepair ? {
3781
+ ...appearance,
3782
+ kind: "repaired",
3783
+ candidate: "contextual-hover",
3784
+ rejectedCandidates: []
3785
+ } : {
3786
+ ...appearance,
3787
+ kind: "preferred"
3788
+ };
3789
+ }
3790
+ /** Ordered, lazy fallback selection; the rejected evidence belongs to this decision. */
3791
+ function resolveFallbackButtonRole(input, requested, fallbacks, rejected) {
3792
+ const [fallback, ...remaining] = fallbacks;
3793
+ if (!fallback) return {
3775
3794
  kind: "unresolved",
3776
3795
  requestedRole: input.role,
3777
3796
  rejectedCandidates: rejected
3778
3797
  };
3798
+ const candidate = candidateVariant(fallback, requested, input.buttonSystem);
3799
+ if (!candidate) return resolveFallbackButtonRole(input, requested, remaining, rejected);
3800
+ const compiled = compileCandidate(candidate.variant, input);
3801
+ return compiled.ok ? {
3802
+ kind: "repaired",
3803
+ requestedRole: input.role,
3804
+ candidate: candidate.name,
3805
+ states: candidate.name === "surface-outline" ? withSurfaceInversion(compiled.states, input.surface) : compiled.states,
3806
+ focusIndicator: compiled.focusIndicator,
3807
+ boundary: candidate.boundary,
3808
+ rejectedCandidates: rejected
3809
+ } : resolveFallbackButtonRole(input, requested, remaining, [...rejected, {
3810
+ candidate: candidate.name,
3811
+ error: compiled.error
3812
+ }]);
3779
3813
  }
3780
3814
  function contextualButtonSurfaceStyles(resolution) {
3781
3815
  if (resolution.kind === "unresolved") return resetActionVariables(resolution.requestedRole);
@@ -3840,12 +3874,13 @@ function actionVariableFallback(role, state, property, fallback) {
3840
3874
  function actionVariablePrefix(role, state) {
3841
3875
  return `--rb-action-${role}-${state}`;
3842
3876
  }
3843
- function compileCandidate(variant, system, palette, surface) {
3877
+ function compileCandidate(variant, context) {
3844
3878
  return compileButtonColourStates({
3845
3879
  variant,
3846
- global: system.global,
3847
- palette,
3848
- surface
3880
+ global: context.buttonSystem.global,
3881
+ palette: context.palette,
3882
+ surface: context.surface,
3883
+ colourIndex: context.colourIndex
3849
3884
  });
3850
3885
  }
3851
3886
  function candidateVariant(fallback, requested, system) {
@@ -3965,8 +4000,8 @@ function normalizeOpaqueHex(value) {
3965
4000
  if (!match?.[1]) return null;
3966
4001
  return `#${(match[1].length === 3 ? match[1].split("").map((digit) => `${digit}${digit}`).join("") : match[1]).toLowerCase()}`;
3967
4002
  }
3968
- function safestBlackOrWhite(backgroundHex) {
3969
- return contrastRatio(backgroundHex, "#000000") >= contrastRatio(backgroundHex, "#ffffff") ? {
4003
+ function safestBlackOrWhite(backgroundHex, colourIndex) {
4004
+ return contrastRatio(backgroundHex, "#000000", colourIndex) >= contrastRatio(backgroundHex, "#ffffff", colourIndex) ? {
3970
4005
  hex: "#000000",
3971
4006
  css: "#000000",
3972
4007
  source: "literal-css"
@@ -3992,8 +4027,10 @@ function contextualBoundaryStyles(boundary) {
3992
4027
  //#endregion
3993
4028
  //#region ../theme-core/src/surfaces/opaqueSurface.ts
3994
4029
  function opaqueSurfaceContextFromTheme(theme) {
4030
+ const palette = expandPalette(theme.palette);
3995
4031
  return {
3996
- palette: expandPalette(theme.palette),
4032
+ palette,
4033
+ colourIndex: preparePaletteColourIndex(palette),
3997
4034
  buttonSystem: theme.buttons,
3998
4035
  linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken
3999
4036
  };
@@ -4383,8 +4420,28 @@ function terminalFallbackSurface(input) {
4383
4420
  };
4384
4421
  }
4385
4422
  function resolveSurface(spec, context) {
4423
+ return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? resolveSurfaceSpec(spec, context);
4424
+ }
4425
+ function preparedSurfaceValue(spec, context) {
4426
+ const index = context.preparedSurfaces;
4427
+ if (!index || index.palette !== context.palette || index.buttonSystem !== context.buttonSystem || index.colourIndex !== context.colourIndex) return void 0;
4428
+ return index.values[surfaceResolutionKey(spec, context)];
4429
+ }
4430
+ function surfaceResolutionKey(spec, context) {
4431
+ const declaration = spec.kind === "tint" ? {
4432
+ ...spec,
4433
+ opacity: String(spec.opacity)
4434
+ } : spec;
4435
+ return JSON.stringify([
4436
+ declaration,
4437
+ context.linkHoverToken,
4438
+ context.foreground,
4439
+ context.compositeBase,
4440
+ context.buttonContext
4441
+ ]);
4442
+ }
4443
+ function resolveSurfaceSpec(spec, context) {
4386
4444
  switch (spec.kind) {
4387
- case "section": return resolveSectionSurface(spec.background, context);
4388
4445
  case "recipe": return resolveRecipeSurface(spec.intent, context);
4389
4446
  case "paint": return spec.paint.kind === "transparent" ? { kind: "inherit" } : resolveOwnedSurface(spec.paint, context);
4390
4447
  case "token": return resolveOwnedSurface({
@@ -4463,7 +4520,7 @@ function resolveOwnedSurface(paint, context) {
4463
4520
  decorations: surfaceDecorationColors(resolved, context.palette),
4464
4521
  hoverDecoration: resolved.kind === "known" ? resolved.hoverDecoration : "underline",
4465
4522
  buttonContext: resolveSurfaceButtons(paint, resolved, context),
4466
- contrast: surfaceContrast(resolved, context.palette)
4523
+ contrast: surfaceContrast(resolved, context.palette, context.colourIndex)
4467
4524
  };
4468
4525
  }
4469
4526
  /** Unprovable legacy paint retains its declared foreground instead of inventing one. */
@@ -4488,15 +4545,16 @@ function resolveSurfaceButtons(paint, foreground, context) {
4488
4545
  foreground: foreground.kind === "known" ? foreground.roles.link : void 0
4489
4546
  } : { kind: "gradient" },
4490
4547
  palette: context.palette,
4548
+ colourIndex: context.colourIndex,
4491
4549
  buttonSystem: context.buttonSystem,
4492
4550
  primaryToken: context.buttonContext?.primary ?? (paint.kind === "solid" ? context.buttonSystem?.surfaceContexts?.[paint.token]?.primary : void 0),
4493
4551
  withoutButtonSystem: "reset"
4494
4552
  });
4495
4553
  }
4496
- function surfaceContrast(foreground, palette) {
4554
+ function surfaceContrast(foreground, palette, colourIndex) {
4497
4555
  if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return { kind: "unmeasured" };
4498
4556
  const backdrop = foreground.provenance.backdropHex;
4499
- const ratio = (token) => contrastRatio(resolveConcreteColorHex(token, palette) ?? backdrop, backdrop);
4557
+ const ratio = (token) => contrastRatio(resolveConcreteColorHex(token, palette) ?? backdrop, backdrop, colourIndex);
4500
4558
  return {
4501
4559
  kind: "measured",
4502
4560
  ratios: {
@@ -4526,6 +4584,7 @@ function resolveSectionSurface(background, context) {
4526
4584
  foreground: foreground.kind === "known" ? foreground.roles.link : void 0
4527
4585
  } : background.type === "gradient" ? { kind: "gradient" } : { kind: "image" },
4528
4586
  palette: context.palette,
4587
+ colourIndex: context.colourIndex,
4529
4588
  buttonSystem: context.buttonSystem,
4530
4589
  primaryToken: sectionPrimaryButtonToken(background, context),
4531
4590
  fallbackToken: context.compositeBase,
@@ -4545,10 +4604,11 @@ function surfaceDecorationColors(foreground, palette) {
4545
4604
  }
4546
4605
  /** Composite the declared palette tint before checking every foreground role. */
4547
4606
  function resolveTintSurface(spec, context) {
4548
- const base = resolveOwnedSurface({
4549
- kind: "solid",
4607
+ const base = resolveSurface({
4608
+ kind: "token",
4550
4609
  token: spec.base
4551
4610
  }, context);
4611
+ if (base.kind !== "owned") throw new Error(`Cannot derive tint on ${spec.base}`);
4552
4612
  const source = spec.source === "text" ? base.foreground.text : base.decorations?.mark;
4553
4613
  const token = source ? resolveOpaqueSurfaceHex(`${source}/${spec.opacity}`, context.palette, spec.base) : null;
4554
4614
  const hex = source ? resolveConcreteColorHex(source, context.palette) : null;
@@ -6955,7 +7015,7 @@ const EFFECT_PRESETS = [
6955
7015
  customizableOption: {
6956
7016
  name: "solidOnHover",
6957
7017
  type: "select",
6958
- label: "Hover Behavior",
7018
+ label: "Hover behaviour",
6959
7019
  default: "false",
6960
7020
  options: ["false", "true"]
6961
7021
  },
@@ -15117,10 +15177,6 @@ const eventRegistrationErrors = {
15117
15177
  message: "Card payments aren’t available on this web address yet. Please contact the organiser to book.",
15118
15178
  action: "none"
15119
15179
  },
15120
- checkoutTemporarilyUnavailable: {
15121
- message: "Event payments are temporarily unavailable while we make an update. Please try again later.",
15122
- action: "retry"
15123
- },
15124
15180
  paymentPageUnavailable: {
15125
15181
  message: "We couldn’t open the payment page. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
15126
15182
  action: "retry"
@@ -16418,6 +16474,31 @@ function ThemedButtonLabel(props) {
16418
16474
  children: content
16419
16475
  }) : content;
16420
16476
  }
16477
+ /** A native file chooser with the same structural styling owner as themed buttons. */
16478
+ function ThemedFileChooser({ variant, size, extraClassName, label, inputRef, inputProps }) {
16479
+ return /* @__PURE__ */ jsxs("label", {
16480
+ className: themedButtonClasses(variant, size, extraClassName),
16481
+ children: [
16482
+ /* @__PURE__ */ jsx("input", {
16483
+ ...inputProps,
16484
+ ref: inputRef,
16485
+ type: "file",
16486
+ className: "rb-sr-only"
16487
+ }),
16488
+ /* @__PURE__ */ jsx("svg", {
16489
+ "aria-hidden": "true",
16490
+ width: "15",
16491
+ height: "15",
16492
+ viewBox: "0 0 24 24",
16493
+ fill: "none",
16494
+ stroke: "currentColor",
16495
+ strokeWidth: "2",
16496
+ children: /* @__PURE__ */ jsx("path", { d: "M12 16V4M6 10l6-6 6 6M4 20h16" })
16497
+ }),
16498
+ label
16499
+ ]
16500
+ });
16501
+ }
16421
16502
  function ThemedButton({ variant, size, extraClassName, screenReaderSuffix, labelClassName, pending, label, ...buttonProps }) {
16422
16503
  return /* @__PURE__ */ jsx("button", {
16423
16504
  ...buttonProps,
@@ -16517,4 +16598,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
16517
16598
  });
16518
16599
  }
16519
16600
  //#endregion
16520
- export { FONT_WEIGHT_MAP as $, borderColorStyle as $n, asDesignEntryId as $t, planFlexibleBalanceCreditFirst as A, resolveOnColorForThemeToken as An, resolveFlexibleBalancePaymentEligibility as Ar, navLinkOwnsHoverForeground as At, generateMobileOverlayBackdropFilterFix as B, expandPalette as Bn, generateCardCss as Bt, checkBrowserStripeKey as C, toNonEmptyReadonlyArray as Cn, mediaPosterSchema as Cr, generateInteractiveChildInheritanceCSS as Ct, getStripeMinimumChargeRequirement as D, opaqueSurfaceContextFromTheme as Dn, validateBookingPaymentOptionKinds as Dr, NAV_LINK_PADDING_X_MAP as Dt, checkoutCopy as E, surfaceDecorationColors as En, runtimeMediaSchema as Er, NAV_LINK_PADDING_MAP as Et, getBookingLaterInstalments as F, unsafeAsOpaqueButtonColourToken as Fn, runtimeBoxBackgroundSchema as Ft, MQ_SM_DOWN as G, hexColorSchema as Gn, cardVariantRoleValues as Gt, renderHeaderPaintTargetRules as H, planForegroundHover as Hn, generateShadowValue as Ht, corners as I, selectLogoVariant as In, pageDesignEditorBackgroundOverrideOwner as It, headerVariantValues as J, paletteValueKey as Jn, asBlockContentVersionId as Jt, MQ_SM_UP as K, paletteColorsSchema as Kn, normalizeCardRole as Kt, headerPositioningValues as L, surfaceToneFromForegroundToken as Ln, siteChromeBackgroundOverrideOwner as Lt, repriceBookingCollectionOptions as M, resolveTokenOrCssColorValue as Mn, formatCurrencyAmount as Mr, navEffectPolicy as Mt, resolveAvailableBookingCollectionOptions as N, generateShadowValue$1 as Nn, formatGiftCardAmountLabel as Nr, boxBackgroundOverlaySchema as Nt, confirmationPaymentSchema as O, opaqueSurfaceDeclarations as On, formatOrderInstalmentStatusLabel as Or, NAV_LINK_TEXT_SIZE_MAP as Ot, resolveBookingCollectionOptionFacts as P, PUBLIC_BUTTON_ROLES as Pn, boxBackgroundSchema as Pt, parseCustomCssRules as Q, backgroundColorStyle as Qn, asDesignBoundaryId as Qt, themeSchema as R, resolveSurfaceForeground as Rn, stripStaleTransitionStyleGroup as Rt, clsx as S, tileTreatmentValues as Sn, surfaceForegroundValueWithOpacity as Sr, generateBaseInteractiveCSS as St, parseEventRegistrationErrorReason as T, resolveSurface as Tn, persistableMediaSchema as Tr, NAV_LINK_LETTER_SPACING_MAP as Tt, MQ_LG_UP as U, resolveConcreteColorHex as Un, cardRoleSchema as Ut, getHeaderPaintTargets as V, getTextColorForBackground as Vn, renderCssDeclarations as Vt, MQ_MD_DOWN as W, resolveOpaqueSurfaceHex as Wn, cardRoleValues as Wt, getComponentShadowVar as X, requirePaletteColorsFromEntries as Xn, asBoundaryOptionId as Xt, getComponentBorderWidthPx as Y, paletteValueKeySchema as Yn, asBlockOrderIndex as Yt, parseBlockCustomCssRules as Z, TokenResolver as Zn, asDesignBlockId as Zt, FileAudioIcon as _, offeringsPreviewCompositionTreatmentValues as _n, SURFACE_FOREGROUND_CSS_VARS as _r, brandDisplayModeValues as _t, ThemedDownloadLink as a, assertNever$1 as an, parseThemeColorToken as ar, ACCORDION_TRIGGER_FONT_SCALE as at, MinusIcon as b, requireNonEmptyReadonlyArray as bn, surfaceForegroundStyle as br, buttonStyleSelectionSchema as bt, isSemanticIconId as c, defineFrameCapability as cn, buildThemeTokens as cr, ICON_SIZE_PX as ct, ChevronDownIcon as d, featureCardCompositionTreatmentValues as dn, contrastRatio as dr, generateDefaultButtonSystem as dt, asDesignPageId as en, cssVarValue as er, INPUT_FONT_SIZE_MAP as et, CircleMinusIcon as f, flushPanelFrame as fn, relativeLuminance as fr, parseThemeButtonVariantId as ft, FileArchiveIcon as g, noHeadingDecoration as gn, DEFAULT_SURFACE_TEXT_COLOR as gr, headerInteractionQuietPalette as gt, ExternalLinkIcon as h, makeBoundaryId as hn, rgbToHex as hr, headerInteractionPaletteValues as ht, ThemedButtonLink as i, asSiteStyleId as in, textColorValue as ir, ACCORDION_SPACING_MAP as it, isBookingCollectionEquivalentToUpfront as j, resolveThemeColorReferenceValue as jn, parsePositiveMoneyInputToCents as jr, navLinkOwnsUnderline as jt, planCheckoutPaymentFlow as k, isCssColorLiteral as kn, getBookingInstalmentPlanIntervalCount as kr, navLinkHoverColorCandidate as kt, SpinnerNode as l, eventListTreatmentValues as ln, defaultThemeTokens as lr, generateButtonActionLayoutCss as lt, ClockIcon as m, introCompositionTreatmentValues as mn, hexToRgb as mr, skinTokenCssVars as mt, ThemedAuthoredButton as n, asLayoutVariantKey as nn, rgbColorValue as nr, LABEL_FONT_SIZE_MAP as nt, getIconComponent as o, defineBlockDesignCapability as on, themeColorShadeSteps as or, ACCORDION_TRIGGER_LETTER_SPACING as ot, CirclePlusIcon as p, headingDecorationColorTokenValues as pn, featuresFromHex as pr, parseThemeForPersistence as pt, MQ_TABLET_ONLY as q, paletteModeSchema as qn, asAppearancePresetId as qt, ThemedButton as r, asPageFlowPresetId as rn, textColorStyle as rr, ACCORDION_OPEN_ACCENT_THICKNESS as rt, ICON_PICKER_PRESETS as s, defineExactCatalog as sn, parseBlockColorToken as sr, ICON_CONFIG as st, ThemedActionsButton as t, asDesignSystemTemplateId as tn, mergeStyles as tr, INPUT_SPACING_MAP as tt, ArrowDownIcon as u, eyebrowTreatmentValues as un, parseColorTokenParts as ur, generateButtonCss as ut, FileSpreadsheetIcon as v, panelFrame as vn, surfaceForegroundDeclarations as vr, logoSizePolicyValues as vt, eventRegistrationErrors as w, visibleHeadingDecorationFamilyValues as wn, mediaSchema as wr, NAV_LINK_BORDER_RADIUS_MAP as wt, PlusIcon as x, testimonialsCompositionTreatmentValues as xn, surfaceForegroundValue as xr, generateEffectsCSS as xt, FileTextIcon as y, plainFrame as yn, surfaceForegroundInputFromResolved as yr, defaultButtonStyleSelectionFor as yt, generateHeaderScrollTreatmentStyles as z, safeTokenOr as zn, themeV2RuntimeStyleFieldNames as zt };
16601
+ export { parseCustomCssRules as $, backgroundColorStyle as $n, asDesignBoundaryId as $t, planCheckoutPaymentFlow as A, isCssColorLiteral as An, getBookingInstalmentPlanIntervalCount as Ar, navLinkHoverColorCandidate as At, generateHeaderScrollTreatmentStyles as B, safeTokenOr as Bn, themeV2RuntimeStyleFieldNames as Bt, clsx as C, tileTreatmentValues as Cn, surfaceForegroundValueWithOpacity as Cr, generateBaseInteractiveCSS as Ct, checkoutCopy as D, surfaceDecorationColors as Dn, runtimeMediaSchema as Dr, NAV_LINK_PADDING_MAP as Dt, parseEventRegistrationErrorReason as E, resolveSurface as En, persistableMediaSchema as Er, NAV_LINK_LETTER_SPACING_MAP as Et, resolveBookingCollectionOptionFacts as F, PUBLIC_BUTTON_ROLES as Fn, boxBackgroundSchema as Ft, MQ_MD_DOWN as G, resolveOpaqueSurfaceHex as Gn, cardRoleValues as Gt, getHeaderPaintTargets as H, getTextColorForBackground as Hn, renderCssDeclarations as Ht, getBookingLaterInstalments as I, unsafeAsOpaqueButtonColourToken as In, runtimeBoxBackgroundSchema as It, MQ_TABLET_ONLY as J, paletteModeSchema as Jn, asAppearancePresetId as Jt, MQ_SM_DOWN as K, hexColorSchema as Kn, cardVariantRoleValues as Kt, corners as L, selectLogoVariant as Ln, pageDesignEditorBackgroundOverrideOwner as Lt, isBookingCollectionEquivalentToUpfront as M, resolveThemeColorReferenceValue as Mn, parsePositiveMoneyInputToCents as Mr, navLinkOwnsUnderline as Mt, repriceBookingCollectionOptions as N, resolveTokenOrCssColorValue as Nn, formatCurrencyAmount as Nr, navEffectPolicy as Nt, getStripeMinimumChargeRequirement as O, opaqueSurfaceContextFromTheme as On, validateBookingPaymentOptionKinds as Or, NAV_LINK_PADDING_X_MAP as Ot, resolveAvailableBookingCollectionOptions as P, generateShadowValue$1 as Pn, formatGiftCardAmountLabel as Pr, boxBackgroundOverlaySchema as Pt, parseBlockCustomCssRules as Q, TokenResolver as Qn, asDesignBlockId as Qt, headerPositioningValues as R, surfaceToneFromForegroundToken as Rn, siteChromeBackgroundOverrideOwner as Rt, PlusIcon as S, testimonialsCompositionTreatmentValues as Sn, surfaceForegroundValue as Sr, generateEffectsCSS as St, eventRegistrationErrors as T, visibleHeadingDecorationFamilyValues as Tn, mediaSchema as Tr, NAV_LINK_BORDER_RADIUS_MAP as Tt, renderHeaderPaintTargetRules as U, planForegroundHover as Un, generateShadowValue as Ut, generateMobileOverlayBackdropFilterFix as V, expandPalette as Vn, generateCardCss as Vt, MQ_LG_UP as W, resolveConcreteColorHex as Wn, cardRoleSchema as Wt, getComponentBorderWidthPx as X, paletteValueKeySchema as Xn, asBlockOrderIndex as Xt, headerVariantValues as Y, paletteValueKey as Yn, asBlockContentVersionId as Yt, getComponentShadowVar as Z, requirePaletteColorsFromEntries as Zn, asBoundaryOptionId as Zt, FileArchiveIcon as _, noHeadingDecoration as _n, DEFAULT_SURFACE_TEXT_COLOR as _r, headerInteractionQuietPalette as _t, ThemedDownloadLink as a, asSiteStyleId as an, textColorValue as ar, ACCORDION_SPACING_MAP as at, FileTextIcon as b, plainFrame as bn, surfaceForegroundInputFromResolved as br, defaultButtonStyleSelectionFor as bt, ICON_PICKER_PRESETS as c, defineExactCatalog as cn, parseBlockColorToken as cr, ICON_CONFIG as ct, ArrowDownIcon as d, eyebrowTreatmentValues as dn, parseColorTokenParts as dr, generateButtonCss as dt, asDesignEntryId as en, borderColorStyle as er, FONT_WEIGHT_MAP as et, ChevronDownIcon as f, featureCardCompositionTreatmentValues as fn, contrastRatio as fr, generateDefaultButtonSystem as ft, ExternalLinkIcon as g, makeBoundaryId as gn, rgbToHex as gr, headerInteractionPaletteValues as gt, ClockIcon as h, introCompositionTreatmentValues as hn, hexToRgb as hr, skinTokenCssVars as ht, ThemedButtonLink as i, asPageFlowPresetId as in, textColorStyle as ir, ACCORDION_OPEN_ACCENT_THICKNESS as it, planFlexibleBalanceCreditFirst as j, resolveOnColorForThemeToken as jn, resolveFlexibleBalancePaymentEligibility as jr, navLinkOwnsHoverForeground as jt, confirmationPaymentSchema as k, opaqueSurfaceDeclarations as kn, formatOrderInstalmentStatusLabel as kr, NAV_LINK_TEXT_SIZE_MAP as kt, isSemanticIconId as l, defineFrameCapability as ln, buildThemeTokens as lr, ICON_SIZE_PX as lt, CirclePlusIcon as m, headingDecorationColorTokenValues as mn, featuresFromHex as mr, parseThemeForPersistence as mt, ThemedAuthoredButton as n, asDesignSystemTemplateId as nn, mergeStyles as nr, INPUT_SPACING_MAP as nt, ThemedFileChooser as o, assertNever$1 as on, parseThemeColorToken as or, ACCORDION_TRIGGER_FONT_SCALE as ot, CircleMinusIcon as p, flushPanelFrame as pn, relativeLuminance as pr, parseThemeButtonVariantId as pt, MQ_SM_UP as q, paletteColorsSchema as qn, normalizeCardRole as qt, ThemedButton as r, asLayoutVariantKey as rn, rgbColorValue as rr, LABEL_FONT_SIZE_MAP as rt, getIconComponent as s, defineBlockDesignCapability as sn, themeColorShadeSteps as sr, ACCORDION_TRIGGER_LETTER_SPACING as st, ThemedActionsButton as t, asDesignPageId as tn, cssVarValue as tr, INPUT_FONT_SIZE_MAP as tt, SpinnerNode as u, eventListTreatmentValues as un, defaultThemeTokens as ur, generateButtonActionLayoutCss as ut, FileAudioIcon as v, offeringsPreviewCompositionTreatmentValues as vn, SURFACE_FOREGROUND_CSS_VARS as vr, brandDisplayModeValues as vt, checkBrowserStripeKey as w, toNonEmptyReadonlyArray as wn, mediaPosterSchema as wr, generateInteractiveChildInheritanceCSS as wt, MinusIcon as x, requireNonEmptyReadonlyArray as xn, surfaceForegroundStyle as xr, buttonStyleSelectionSchema as xt, FileSpreadsheetIcon as y, panelFrame as yn, surfaceForegroundDeclarations as yr, logoSizePolicyValues as yt, themeSchema as z, resolveSurfaceForeground as zn, stripStaleTransitionStyleGroup as zt };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-DhbGL302.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
3
3
  //#region src/rendering/islands/enhancers/accordion.ts
4
4
  const decode = defineIslandPropsDecoder("accordion");
5
5
  function parseDefaultValues(value) {
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  import { _ as unsafeAsCustomerPassId, b as unsafeAsPassId, g as unsafeAsAppointmentServiceId, h as unsafeAsAppointmentResourceId, v as unsafeAsFormId, x as unsafeAsSiteId } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
3
- import { Mr as formatCurrencyAmount, l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
4
- import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig, Ln as deriveBookingFormViewState, Pi as resolveBookingSignupOffer, Qn as resolveBookingSiteId, R as buildBookingPaymentSelectionViewModel, Rn as formatBookingCentsAsCurrencyInput, V as paymentChoicePrice, Vn as getBookingServiceSlidingScale, Xn as resolveAppointmentCheckoutVerificationState, Yn as prepareBookingSubmission, Zn as resolveBookingPaymentStep, br as readRuntimeNow, er as selectedBookingCollectionOptionKind, ir as BOOKING_FORM_DATA_RESERVED_KEYS, nr as projectSelectedAppointmentConsentIntoForm, qn as normalizeBookingServices, rr as resolveSelectedAppointmentConsent, tr as toSelectedCollectionOptionKind, xr as resolveDateRuntimeContext, z as buildReviewedBookingPaymentViewModel, zn as formatBookingSubmissionPreparationError } from "./wizardSteps-C0TsNqJc.mjs";
5
- import { Ct as toUtcIsoDateTimeString, at as formatTime, bt as resolveBookingTimeZoneId, ct as resolveBookingDisplayContext, it as formatDateTimeRange, q as isBookingRequirementConsentFieldId, t as logger, tt as formatDate, vt as parseUtcIsoDateTimeString, yt as resolveBookingBusinessTimeZone } from "./noop-M8FTSgm2.mjs";
6
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-BxRVCJG3.mjs";
3
+ import { Nr as formatCurrencyAmount, r as ThemedButton, u as SpinnerNode } from "./ThemedButton-C22C9cCF.mjs";
4
+ import { a as clearWorkflowFeedback, i as okWith, n as err, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever } from "./src-VIsPY-kw.mjs";
5
+ import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig, Ln as deriveBookingFormViewState, Pi as resolveBookingSignupOffer, Qn as resolveBookingSiteId, R as buildBookingPaymentSelectionViewModel, Rn as formatBookingCentsAsCurrencyInput, V as paymentChoicePrice, Vn as getBookingServiceSlidingScale, Xn as resolveAppointmentCheckoutVerificationState, Yn as prepareBookingSubmission, Zn as resolveBookingPaymentStep, br as readRuntimeNow, er as selectedBookingCollectionOptionKind, ir as BOOKING_FORM_DATA_RESERVED_KEYS, nr as projectSelectedAppointmentConsentIntoForm, qn as normalizeBookingServices, rr as resolveSelectedAppointmentConsent, tr as toSelectedCollectionOptionKind, xr as resolveDateRuntimeContext, z as buildReviewedBookingPaymentViewModel, zn as formatBookingSubmissionPreparationError } from "./wizardSteps-zgq10lN1.mjs";
6
+ import { Ct as toUtcIsoDateTimeString, at as formatTime, bt as resolveBookingTimeZoneId, ct as resolveBookingDisplayContext, it as formatDateTimeRange, q as isBookingRequirementConsentFieldId, t as logger, tt as formatDate, vt as parseUtcIsoDateTimeString, yt as resolveBookingBusinessTimeZone } from "./noop-B610YKEx.mjs";
7
+ import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
7
8
  import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
8
- import { a as clearWorkflowFeedback, i as okWith, n as err, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever } from "./src-7cXhT0G_.mjs";
9
9
  import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
10
10
  import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
11
- import { t as CheckboxChoice } from "./CheckboxChoice-BF9eCNno.mjs";
11
+ import { t as CheckboxChoice } from "./CheckboxChoice-Bhm6RAUL.mjs";
12
12
  import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
13
13
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
14
14
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
15
- import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DJhFP_rg.mjs";
16
- import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-Cg9v6d7Y.mjs";
15
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DK2w_i0a.mjs";
16
+ import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-C00sLLdL.mjs";
17
17
  import { t as StepIndicator } from "./StepIndicator-BK0GEDoP.mjs";
18
- import { n as useBlockApi, t as BlockApiProvider } from "./context-BRgBWthI.mjs";
18
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-BLAvalAa.mjs";
19
19
  import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
20
- import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-pTXuY3jV.mjs";
21
- import { t as useBookingNowIso } from "./useBookingNowIso-D14J-EhJ.mjs";
22
- import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-CjstiFPh.mjs";
20
+ import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-BjbJXotk.mjs";
21
+ import { t as useBookingNowIso } from "./useBookingNowIso-CMgfL7YJ.mjs";
22
+ import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-R-awbk_0.mjs";
23
23
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
24
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
25
25
  //#region ../blocks/src/system/runtime/nodes/booking-form.date-display.ts
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-DhbGL302.mjs";
3
- import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
4
- import { t as BookingFormClient } from "./booking-form.client-BLndwxpx.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
3
+ import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
4
+ import { t as BookingFormClient } from "./booking-form.client-BddWV5w1.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-96er7pIx.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/bookingForm.tsx
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-C0TsNqJc.mjs";
3
- import { U as publicEventSchema } from "./noop-M8FTSgm2.mjs";
4
- import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-e5XWtygG.mjs";
5
- import { t as assertNever } from "./src-7cXhT0G_.mjs";
6
- import { n as useBlockApi, t as BlockApiProvider } from "./context-BRgBWthI.mjs";
2
+ import { t as assertNever } from "./src-VIsPY-kw.mjs";
3
+ import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-zgq10lN1.mjs";
4
+ import { U as publicEventSchema } from "./noop-B610YKEx.mjs";
5
+ import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-Dc3Fnlnw.mjs";
6
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-BLAvalAa.mjs";
7
7
  import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
8
- import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-BLndwxpx.mjs";
8
+ import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-BddWV5w1.mjs";
9
9
  import * as React$1 from "react";
10
10
  import React, { useCallback, useEffect, useMemo, useReducer } from "react";
11
11
  //#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-DhbGL302.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
3
3
  import { i as carouselRegionAttributes } from "./carousel.shared-DBnWEJzo.mjs";
4
- import { t as CarouselNodeClient } from "./carousel.client-BJGoJVtg.mjs";
4
+ import { t as CarouselNodeClient } from "./carousel.client-AffDJo_s.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";