@riverbankcms/sdk 0.170.0 → 0.171.1

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 (221) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
  10. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
  11. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
  12. package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
  13. package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
  14. package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
  16. package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
  55. package/dist/_dts/{types-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
  56. package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
  57. package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/{Page-PW4Ojv9r.mjs → Page-CT4HaEMr.mjs} +2706 -2441
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-DRJy4eU3.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-BnyVRqdU.mjs} +73 -26
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
  94. package/dist/client/client.mjs +656 -220
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-CP9l112u.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-ChgDe9Da.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.mjs} +3 -3
  112. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
  132. package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-dToQs9oY.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
  146. package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
  147. package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-X0DjcFij.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/editor-base.css +14 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-BLY4ycq6.mjs} +563 -190
  171. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
  172. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
  173. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
  174. package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
  175. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  176. package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
  177. package/dist/server/config-template-validation.mjs +30 -4
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -34
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/index.mjs +3 -3
  182. package/dist/server/loadContent-C4I3ltU_.mjs +2310 -0
  183. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.mjs} +2 -2
  184. package/dist/server/manifest.mjs +1 -1
  185. package/dist/server/next.mjs +8 -6
  186. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
  187. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.mjs} +3 -2
  188. package/dist/server/page-converter.mjs +3 -3
  189. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  190. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-CVCGTj5S.mjs} +306 -287
  191. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
  192. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
  193. package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
  194. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
  195. package/dist/server/prebuild.mjs +1 -1
  196. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
  197. package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
  198. package/dist/server/rendering/components/pageShared.mjs +1 -1
  199. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  200. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  201. package/dist/server/rendering/server.mjs +3 -3
  202. package/dist/server/rendering.mjs +7 -7
  203. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CUMjWbXQ.mjs} +4 -3
  204. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
  205. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  206. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  207. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-CxBsE9Dv.mjs} +463 -53
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/theme-bridge.mjs +2 -2
  210. package/dist/server/theme.mjs +2 -1
  211. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  212. package/dist/server/{validation-Dh8htd6l.mjs → validation-CvmhnkDr.mjs} +9 -9
  213. package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.mjs} +1 -1
  214. package/dist/styles/index.css +408 -10
  215. package/package.json +1 -1
  216. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  217. package/dist/client/runtimeResponse-D2LT--Gj.mjs +0 -3
  218. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  219. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  220. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  221. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { $ as pageEvidenceEvents, $c as formatTime$1, $f as anglePolygonCss, $g as oklabToOklch, $h as formatButtonColourContractError, $i as getEventIdentity, $m as Presence, $o as paymentChoiceDetails, $r as shopProductPresentation, $s as getTicketTypeLineMax, $v as resolvePricingOptionsPriceDisplay, Ac as toBookingQuestionsPaymentSnapshot, Ad as sanitizeHref, Af as requireCuratedSiteStyle, Ag as paddingDeclarations, Al as blockBookingPaymentTermsSchema, Am as DialogContent, Ao as getDeclinedPass, Ap as MQ_TABLET_ONLY, Ar as getBlockDefinition, As as confirmationPaymentRows, Au as lookListPresentationSchemaShape, Av as formatTimeZoneCityLabel, B_ as generateUuidV4, Ba as EVENT_BOOKING_ARRIVAL_QUERY, Bc as formatEventTeacherLine, Bd as coerceInlineTextWithFallback, Bf as generateDefaultCardSystem, Bg as surfaceInkPublication, Bi as eventCollectionHydrationSchema, Bo as planRegistrationDetailsContinuation, Bp as observeEditorAdmission, Br as giftingBlockDefinition, Bs as formatTime$3, Bv as parseLocalScheduleTime, Ca as computeMediaTransformStyle, Cc as bookingQuestionsRefusal, Cg as actionVariableFallback, Ci as buildEventCalendarListingDisplay, Cl as canonicalUrl, Co as registrationPresentation, Cs as assertNever$2, Cu as defineInteractiveIslandMetaKeys, D_ as siteChromeBackgroundOverrideOwner, Dc as needsBookingQuestionsRefresh, Dd as RichTextDocSchema, Df as headerStyleRecipeForTheme, Dg as buttonStateAppearanceDeclarations, Dh as useComposedRefs, Dl as publicPassProductCollectionSchema, Do as areEventRegistrationPaymentSelectionsEqual, Dp as MQ_MD_UP, Ds as clearWorkflowFeedback, Du as listItemPresentation, E_ as parseGradientPresetId, Ea as renderVideo, Ec as isBookingQuestionsAnswerEvent, Eg as buttonShadow, El as requestSignIn, Eo as registrationStepLabelContext, Ep as MQ_MD_DOWN, Es as okWith, Eu as defineProgressiveBlockRuntime, Ev as formatDate$2, F_ as authoredValuesEqual, Fc as buildMonthDay, Fd as resolveBlockIconRenderValue, Ff as getGradientPreset, Fg as mapButtonVisualAppearances, Fh as unmanagedSurfaceEditability, Fi as eventListingBlockRuntime, Fl as beforeBookingQuestionsPresentationSchema, Fm as DialogTrigger, Fo as shouldPromptForLogin, Fp as EDITOR_LOADING_NOTICE, Fs as formatBookingWhen, Fv as addLocalScheduleDays, Ga as bookingNowSchema, Gc as formatCalendarTitle, Gd as inlineTextToPlainText, Gf as formatSiteChromeBackgroundTokenLabel, Gg as inkReference, Gi as calendarWindowBounds, Gl as siteFooterManifest, Go as settledRemainingPlaces, Gr as productListBlockDefinition, Gs as occurrenceTitleOverride, Gv as toUtcIsoDateTimeString, Ha as buildEventRegistrationDisplayFromScopedEvents, Hc as buildCalendarViewport, Hf as generateFooterCss, Hg as HOVER_TEXT_THRESHOLD, Hi as calendarMonthKey, Hl as shouldReserveFeatureCardIconZone, Ho as resolveRegistrationAdmission, Hp as API_ENDPOINTS, Hr as checkoutBlockDefinition, Hs as getPortalSubjectEmail, Hv as resolveBookingTimeZoneId, I_ as CANCELLED_SESSION_STATUS, Ic as resolveMonthSelectedDay, Ig as freezeOwnedThemeValue, Ih as bindingSchema, Ii as buildEventCollectionDisplay, Io as fullyBookedLabel, Ir as newsletterSignupBlockDefinition, Is as formatDate$3, Iv as formatLocalScheduleDate, J_ as parseMailingListPlacementTargeting, Ja as resolveEventCalendarReadPlan, Jc as formatEventCompactDateRail, Jf as boundaryRuntimeMetricsForDecorativeTransition, Ji as planCalendarMonthRanges, Jn as planArrangementContent, Jo as normalizeEventRegistrationMaxTickets, Jp as ApiEnvelopeError, Jr as buildCheckoutInteractiveIslandProps, Js as formatPrice, Jv as publicEventPricingCurrency, K as createSessionJournalBindings, Ka as previewStageSchema, Kc as formatDate$1, Kd as isInlineTextEmpty, Kf as headerNeedsPhotoShade, Kg as resolveConcreteColorHex, Ki as calendarWindowMonths$1, Kl as siteHeaderManifest, Ko as visitorHoldsOwnPlace, Kp as pageCommitReasonMessage, Kr as shopBlockDefinition, Ks as transformRegistrationOptionsResponse, Kv as formatBookingPriceDisplay, L_ as nextLiveRunSessionStartMs, La as getCardOrientation, Lc as formatEventPrice, Lg as ownedThemeSnapshot, Li as buildEventCollectionHydration, Ll as FEATURE_CARD_ICON_TREATMENTS, Lo as getTicketSelectionPurpose, Lr as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Ls as formatEventDateTime, Lv as getBookingLocalDateKey, M_ as resolveAvailableBookingCollectionOptions, Mc as getInitialFieldValue, Mf as surfaceResolutionContextFromTheme, Mg as DEFAULT_BUTTON_SIZES, Mo as registrationFlowReducer, Ms as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, Mu as itemRole, Mv as resolveBookingDisplayContext, N_ as getBookingLaterInstalments, Nc as buildEventListWeek, Nf as gradientToCss, Ng as FONT_SIZE_MAP, Ni as eventListingBlockDefinition, Nl as isBookingRequirementConsentFieldId, Nm as DialogPortal, No as buildEventRegistrationPaymentOptionsViewModel, Np as isObjectRecord, Nr as normalizeLocationMapProps, Ns as areEntitlementsDisabledForTicketCount, Nv as formatBookingCompactEnglishTime, O_ as asDesignBlockId, Oc as restoreBookingQuestionsAnswers, Og as buttonTypographyDeclarations, Oh as cn$1, Ol as groupPublicEventsByRun, Om as Dialog, Oo as createInitialRegistrationFlowState, Op as MQ_SM_DOWN, Os as reportWorkflowError, Ou as listLookControl, Ov as formatDateTimeRange, P_ as journalReplayValue, Pc as eventListWeekDays, Pd as parseBlockIconValue, Pg as generateShadowValue$1, Pi as buildEventListingInteractiveIslandProps, Pl as toBookingRequirementConsentField, Pm as DialogTitle, Po as decideEventRegistrationPayment, Pp as isRecord$14, Ps as findSelectedTicketType, Pu as Grid, Pv as toScheduledBookingDateTime, Q_ as sameMailingListPlacementTargeting, Qc as formatEventTimeRange, Qg as hexToRgb, Qh as BUTTON_CONTRAST_POLICY, Qi as eventPaginationLoadReducer, Ql as measureSiteTopChromeBottomPx, Qm as createRovingFocusGroupScope, Qo as buildReviewedBookingPaymentViewModel, Qr as getShopDisplayForItems, Qs as getTicketSelectionTotal, Qv as resolveExactOrFreePriceDisplay, R_ as orderedLiveRunSessions, Ra as getContainerClass, Rc as formatEventPriceAmount, Rg as resolveSurfaceForeground, Ri as buildEventCollectionListingDisplay, Ro as placeCountCeiling, Rp as editorAdmissionRefusal, Rr as buildNewsletterFormInteractiveIslandProps, Rs as formatPassCreditUsageLabel, Rv as getLocalScheduleDate, Sa as MediaPlaceholder, Sc as bookingQuestionsPaymentSnapshotSchema, Sd as parseStoredVariant, Sf as resolveEffectiveArrangement, Sg as compositeHex, Sh as useControlReadiness, Si as buildEventCalendarInteractiveIslandProps, Sl as PAGE_NAVIGATION, So as registrationPaymentRoute, Ss as validateFormData, Su as createInteractiveIslandCodec, T_ as surfaceCardRoleValues, Ta as renderAudio, Tc as deriveBookingQuestions, Tf as designRuntimeRulesForTheme, Tg as buttonRadius, Tl as pageNavigationSchema, To as registrationStepLabel, Tp as MQ_LG_UP, Ts as ok, Tu as defineClientOwnedBlockRuntime, U_ as parseMailingListRuntimeContext, Ua as buildEventRegistrationInteractiveIslandProps, Uc as eventCalendarWeekStart, Uf as buildTextContrastShadow, Ug as certifyPaint, Ui as calendarPageResponseError, Uo as resolveRegistrationAvailabilityBlocker, Up as BEFORE_BOOKING_QUESTIONS_ROUTE, Ur as cartBlockDefinition, Us as getTicketTypeAvailabilityLabel, Uv as toBookingTimeZone, Va as eventRegistrationBlockDefinition, Vc as formatEventDuration, Vd as deriveInlineTextFieldChanges, Vg as solveSurfaceInks, Vi as eventCollectionSourceSchemaShape, Vl as resolveFeatureCardGeneratedIconSizePx, Vo as resolveGuestNextStepCheck, Vr as buildGiftingInteractiveIslandProps, Vs as getImplicitSingleTicketType, Vv as resolveBookingBusinessTimeZone, W_ as resolveBookingSignupOffer, Wa as displayButtonText, Wc as eventDateOptions, Wf as generateNavLinkCSS, Wg as contrastThresholdByPolicy, Wi as calendarQueryKey, Wo as resolveRegistrationTicketContinuation, Wp as calendarMonthDate, Wr as productDetailBlockDefinition, Ws as getVisibleTicketTypes, Wt as ApiRequestError, Wv as parseUtcIsoDateTimeString, Xa as resolveEventRegistrationScopedEvents, Xc as formatEventHourLabel, Xg as expandPalette, Xh as generateInteractiveChildInheritanceCSS, Xi as createInitialEventPaginationLoadState, Xm as Item$1, Xo as calculateEventRegistrationPreviewTotal, Xp as unwrapResponse, Xr as buildProductListInteractiveIslandProps, Xs as getSingleSelectedPricingOptionId, Xu as isBlockButtonRole, Xv as publicEventPricingStrategy, Y as SessionJournalProvider, Y_ as parseMailingListVisitorSelection, Ya as normalizeEventRegistrationPageSurfaceSubject, Yc as formatEventDateParts, Yd as parseInlineTextFromUnknown, Yg as TokenResolver, Yh as generateEffectsCSS, Yi as resolveCalendarReadProfile, Yo as resolveEventRegistrationSubmitPlan, Yp as extractApiEnvelopeErrorDetails, Yr as buildProductDetailInteractiveIslandProps, Ys as canRequestTicketOption, Yv as publicEventPricingDisplay, Za as offeringNounForEvent, Zc as formatEventNextDateFact, Zg as contrastRatio, Zh as compileButtonColourStates, Zi as eventPageOperationQuery, Zm as Root$1, Zo as buildBookingPaymentSelectionViewModel, Zr as buildShopInteractiveIslandProps, Zs as getTicketLineQuantity, Zv as publicEventPricingType, _ as applyBindingsToContent, _a as MapPinIcon, _c as sweepExpiredSignInReturnDrafts, _d as asPartialObject, _g as opaqueSurfaceDeclarations, _h as composeEventHandlers, _l as isEventFull, _m as FIELD_SURFACE_CLASS, _n as renderSourceFor, _o as bookingEntryProgress, _s as parseCurrencyInputToCents, _u as uiTransforms, a_ as blockCustomCssRuleSchema, aa as getEventRuntimeFiltersKey, ac as toWholeSeriesRegistrationEvents, ad as parseBackgroundOverlay, ag as surfaceForegroundStyle, ai as formatValidity, al as resolveRuntimeEventDestination, am as SelectTrigger, as as resolveRouteRequiresPayment, au as contentTransforms, bc as applyBookingQuestionsAnswerEvent, bd as el, bf as arrangementManifestFromVariants, bg as resolveSurface, bh as Button, bi as eventCalendarBlockDefinition, bl as blockSiteTermsSchema, bo as getEventSelectionMode, bs as withRegistrationAvailability, bu as buildFormInteractiveIslandProps, c as usePreviewShownTheme, ca as normalizeOptionalId, cc as eventSignInEnds, cd as resolveSurfaceForegroundStyles, cg as surfaceInkDeclarations, ci as passCardListContent, cl as placesLeftLabel, cm as usePrevious, cp as introCompositionTreatmentValues, cr as EVENT_REGISTRATION_ANCHOR_ID, cs as createRegistrationDraftData, cu as teamMemberCardBiography, da as EmptyState, dc as clearSignInReturnDrafts, dd as BACKGROUND_POSITION_PRESET_VALUES, dg as cssVarValue, di as buildProductCartItem, dl as canJoinEventWaitlistOnAnyMode, do as resolveOfferingsPreviewGroups, dr as deriveEventScheduleSummary, ds as getCurrentTicketSelection, dt as JournalWriteRefused, du as mediaTransforms, dy as parseUuidBrand, e_ as oklabToSrgb, ea as getEventPaginationView, ec as hasValidPricingOptionSelection, ed as boxStylesTransforms, eg as DEFAULT_SURFACE_TEXT_COLOR, ei as buildCartDisplay, el as groupEventsByDate, ep as transitionCatalogueEntries, es as paymentChoicePrice, eu as siteTopChromeMeasurementTargets$1, ey as parsePositiveCents, fa as CardListCollection, fc as createSignInReturnDraftStore, fd as getAnchorClasses, ff as restoreCompiledRuntimeFieldsFromContent, fg as mergeStyles, fh as useDirection, fi as deriveCommerceCheckoutState, fl as formatEventRemainingPlaces, fo as resolveOfferingsRenderInput, fr as derivePreviewRunSchedule, fs as getEligibilityFlowFlags, ft as journalFailureReason, fu as headerRuntimeTransforms, fv as EDITOR_SESSION_GENERATION_HEADER, g_ as runtimeMediaSchema, ga as CalendarIcon, gc as signInReturnPath, gd as lookSkinSlotTransform, gg as opaqueSurfaceContextFromTheme, gh as createContextScope, gl as getRemainingPlaces, gn as remoteDraftValues, go as bookingEntry, gs as getTicketSelectionRemainingPlaces, h as composePreviewTheme, ha as eventCategoryBadge, hc as readSignInReturn, hd as lookQuoteLimitTransform, hf as readHeaderNavFontSizePreference, hg as textColorValue, hh as useLayoutEffect2, hi as reduceCommerceCart, hl as getEventAvailabilityStatus, hm as FIELD_FOCUS_CLASS, ho as bookingCardEntry, hs as getSlidingScaleSelectionMessage, hu as staticHeaderChromeRuntime, ia as buildEventRuntimeFilters, ic as toRegistrationEvents, id as parseBackgroundContent, if as readOpeningToneProjection, ig as surfaceForegroundInputFromResolved, ii as formatInterval, il as resolveEventLinkProps, im as SelectItem, ir as getAtPath, is as resolveRegistrationTarget, iu as splitPositioningClasses, j_ as normalizeCurrencyCode, ja as resolvePublicMediaUrl, jc as checkBookingQuestionsAnswered, jd as buildGeneratedBlockIconRenderAssetLookupFromUnknown, jf as compiledRuntimeStyleFieldNames, jg as BORDER_WIDTH_MAP, jl as blockBookingConsentSchema, jo as isRegistrationLocked, js as resolveFinishedPresentation, ju as resolvedItemSurfaceProps, jv as inferSiteDateLocale, ka as resolveMediaNodeResponsiveImage, kc as toBookingQuestionsAnswerDraft, kg as materializeRuntimeButtonAppearance, km as DialogClose, ko as decideEventChoice, kp as MQ_SM_UP, ks as reportWorkflowSuccess, ku as listLookSlot, kv as formatTime$2, la as catalogueEventCardProps, lc as eventSignInRestoration, ld as resolveBackgroundColorValue, lf as applyCompiledRuntimeFieldsToContent, lg as surfaceInkStyle, li as EMPTY_COMMERCE_CART_STATE, ll as shownVenue, lo as resolveOfferingsPreviewGroupCta, lp as offeringsPreviewCompositionTreatmentValues, lr as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, ls as invitationSubmission, lt as getEditorClientId, lu as readRuntimeNow, ly as unsafeAsSiteId, ma as EventItem, mc as nextSignInReturnExpiry, md as lookLeadSlotTransform, mf as mergeHeaderNavTypographyPreference, mg as textColorStyle, mh as useControllableState, mi as productItemKey, ml as getEventAvailability, mm as FIELD_CONTROL_CLASS, mo as bookingBarPlacement, mr as EventListingFrameView, ms as getSlidingScaleForEvent, mu as layoutTransforms, n_ as rgbToHex, na as toEventPaginationLoadError, nc as setTicketLineQuantity, nd as normalizeBoxStylesBorder, nf as heroPhotoPaintsGround, ng as SURFACE_INK_CSS_VARS, ni as buildProductDetailDisplay, nl as resolveEventCardBooking, nm as Select, no as buildOfferingsPreviewListing, ns as resolveDiscountContext, nu as composeHeaderSectionWrapperClassName, ny as formatCurrencyAmount, o_ as customCssRuleSchema, oa as normalizeCsvIds, oc as EVENT_SIGN_IN_FORM_ID, od as parseRuntimeBackgroundContent, og as surfaceForegroundValue, oh as useSize, oi as membershipCardListContent, ol as browserReadAuthoritySchema, om as SelectValue, oo as normalizeOfferingsPreviewItemLimit, or as withValueAtPath, os as toRegistrationRequestSubject, ou as parseTeamMemberSpecialties, oy as unsafeAsPositiveByteCount, pa as CardListItems, pc as decideSignInReturn, pd as lookCarouselRegionTransform, pf as skinTokenCssVars, pg as rgbColorValue, ph as createCollection, pi as parseStoredCommerceCartState, pl as formatTotalCapacity, po as DEFAULT_BOOKING_BUTTON_TEXT, pp as PUBLIC_DOWNLOAD_MEDIA_TYPES, pr as MonthLookView, ps as getRegistrationOccurrenceId, pt as sendPageCommand, pu as chromeLogoTransforms, qa as eventCalendarListGroupingDecision, qc as formatEventClockLabel, qf as headerRootPaint, qg as resolveOpaqueSurfaceHex, qi as calendarWindowPageSchema, ql as SITE_CHROME_VISIBLE_HEADER_SELECTOR, qo as isEventRegistrationAvailable, qp as pageCommitReasonTag, qr as buildCartInteractiveIslandProps, qs as withOccurrenceTitle, qv as isPublicEventPricingOptionDisplayable, r_ as srgbToOklab, ra as toError, rc as getRegistrationStartAt, rd as resolveCardRoleForBoxStyles, rf as effectiveHeaderNavLinkStyle, rg as surfaceForegroundDeclarations, ri as formatCommercePrice, rl as resolveEventCta, rm as SelectContent, rr as lookPartShown, rs as resolveEventRequiresPayment, ru as markEditableSurfaceForwarding, rv as knownSocialPlatformLabels, ry as assertNever$1, s as usePreviewPageDesignRenderState, s_ as boxBackgroundSchema, sa as normalizeCsvString, sc as eventSignInDraftStore, sd as resolveSectionSurfaceForeground, sg as surfaceForegroundValueWithOpacity, sh as useId$1, si as membershipClassesLabel, sl as getBlockApiReadStage, so as offeringsListingFor, sp as featureCardCompositionTreatmentValues, sr as EventHeader, ss as beginWaitlistInvitation, su as teamMemberBiography, sv as publishedContactDetails, sy as unsafeAsPositiveSeconds, t_ as oklchToHexGamut, ta as planEventPageOperation, tc as normalizeTicketSelectionLines, td as boxStyleClassNames, tf as selectItemSurfacePresentation, tg as SURFACE_FOREGROUND_CSS_VARS, ti as buildProductCardDisplay, tl as resolveEventTimeZone, tm as trustedJournalState, tn as useOptionalEditorUiStoreInstance, to as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, tp as resolveCompiledSectionContextFromContent, ts as findPreSelectedEvent, ty as toNonNegativeCents, u as useSiteChromeCustomizeOptional, ua as listingEventCardProps, uc as toEventSignInDraft, uf as compileEditorModelRuntime, ug as backgroundColorStyle, ui as buildPassCartItem, ul as canJoinEventWaitlist, up as testimonialsCompositionTreatmentValues, ur as eventCardListContent, us as formatCentsAsCurrencyInput, ut as createSessionJournal, uu as resolveDateRuntimeContext, va as MediaNodeServer, vc as EMPTY_BOOKING_QUESTIONS_ANSWERS, vd as createTransformRegistry, vf as arrangementLookHooks, vg as parseSurfaceTree, vh as Primitive, vi as buildOfferingsCatalogueListing, vl as selectEventCapacitySource, vm as FIELD_TEXTAREA_CLASS, vo as bookingPanelHeading, vs as resolveHeldTicketPlaces, vu as formattingTransforms, wa as mediaImageHostProps, wc as decideBookingQuestionsRestoration, wf as componentRuntimeRulesForTheme, wg as buttonBorder, wi as buildEventCalendarListingRender, wl as leavePage, wo as registrationRoute, ws as err, wu as createZodCodec, wv as unsafeAsEditorBlockId, xa as ImagePresets, xc as bookingQuestionsAnswerDraftSchema, xd as when, xg as serializeSurfaceTree, xl as verifiedSiteTermsAcceptanceSchema, xo as panelShouldOpen, xs as registrationQuestionsMessage, xu as buildInteractiveIslandProps, y_ as indexRenderableMediaAssets, ya as RichText, yc as NO_BOOKING_QUESTIONS, yd as runTransforms, yg as prepareSurfaceIndex, yi as offeringsCatalogueShape, yl as selectMostOpenCapacitySource, ym as NATIVE_CHOICE_CLASS, yn as resolveRenderedValues, yo as courseTitleOf, ys as shouldLoadRegistrationOptions, yu as formBlockDefinition, z_ as resolveWholeSeriesBookingPhase, za as resolveEventSelection, zc as formatEventPriceDisplay, zf as resolveCardRole, zg as safeTokenOr, zi as eventCollectionDisplaySchemaShape, zo as planRegistrationDetailsCheck, zp as editorAdmissionSession, zr as newsletterBlockSubmissionMessage, zs as formatRegistrationSchedule, zv as parseBookingLocalDate } from "./previewAssistantSlot-CSs9S8wr.mjs";
3
- import { At as sameMeaningfulAddress, Ct as LOCATION_MATCH_THRESHOLDS_METRES, D as Minus, Dt as editLocationValue, Et as decideLocationSave, Ft as locationPinSchema, Gt as err$1, Kt as ok$1, Lt as normalizeLocationAddressText, Mt as decideLocationSourcePermission, Nt as formatLocationAddress, Ot as locationDistanceMetres, Pt as locationAddressSchema, R as Info, Rt as parseLocationValue, T as Mountain, Tt as decideLocationRelationship, U as House, Wt as mapDrawingSchema, _ as RotateCcw, _t as Building2, b as Pencil, c as Trash2, ct as CircleMinus, d as Sparkles, ft as ChevronRight, g as Route, h as Search, k as MapPin, kt as sameLocationSpatialPair, lt as CircleCheck, mt as ChevronDown, n as X, ot as Circle, pt as ChevronLeft, r as WifiOff, s as TriangleAlert, st as CirclePlus, tt as Crosshair, u as Store, w as Move, wt as confirmLocationPair, xt as ArrowDown, y as Plus } from "./lucide-react-DbC1o6_9.mjs";
4
- import { A as buttonSizeNameSchema, C as MinusIcon, D as AFFORDANCE_SUPPRESS_CLASS, E as themeButtonSelector, M as unsafeAsOpaqueButtonColourToken, O as DEFAULT_VARIANT_ALIAS_ID, S as FileTextIcon, T as parseThemeButtonVariantId, X as parseThemeColorToken, Y as parseColorTokenParts, _ as ClockIcon$1, a as ThemedDownloadLink, b as FileAudioIcon, g as CirclePlusIcon, h as CircleMinusIcon, j as createStandardButtonSurfacePolicy, m as ChevronDownIcon, n as ThemedButton, nt as SpinnerNode, o as getIconComponent, p as ArrowDownIcon, r as ThemedButtonLink, rt as clsx, t as ThemedAuthoredButton, w as PlusIcon, x as FileSpreadsheetIcon, y as FileArchiveIcon } from "./ThemedButton-BQU45t-E.mjs";
2
+ import { $ as pageEvidenceEvents, $_ as sameMailingListPlacementTargeting, $a as eventCalendarListGroupingDecision, $c as formatEventClockLabel, $d as inlineTextToPlainText, $f as formatSiteChromeBackgroundTokenLabel, $g as rgbToHex, $h as SURFACE_INK_CSS_VARS, $i as createInitialEventPaginationLoadState, $l as siteFooterManifest, $m as Arrow, $o as isEventRegistrationAvailable, $r as buildProductListInteractiveIslandProps, $s as formatCentsAsCurrencyInput, $v as resolveExactOrFreePriceDisplay, A_ as resolveAvailableBookingCollectionOptions, Ac as decideBookingQuestionsRestoration, Ad as parseStoredVariant, Af as arrangementManifestFromVariants, Ag as FONT_SIZE_MAP, Al as canonicalUrl, Am as DialogPortal, Ao as registrationRoute, As as ok, Au as createInteractiveIslandCodec, Av as formatTime$2, B_ as resolveWholeSeriesBookingPhase, Ba as EventQuickFacts, Bc as eventListWeekDays, Bf as requireCuratedSiteStyle, Bg as certifyPaint, Bi as buildEventCollectionHydration, Bo as decideEventRegistrationPayment, Br as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Bs as formatBookingWhen, Bu as itemRole, Bv as parseBookingLocalDate, C_ as parseGradientPresetId, Cc as sweepExpiredSignInReturnDrafts, Cd as lookLeadSlotTransform, Cf as readHeaderNavFontSizePreference, Cg as buttonShadow, Ci as eventCalendarBlockDefinition, Cl as getRemainingPlaces, Co as bookingEntryProgress, Cs as resolveHeldTicketPlaces, Cu as staticHeaderChromeRuntime, Da as mediaImageHostProps, Dc as bookingQuestionsAnswerDraftSchema, Dd as createTransformRegistry, Dg as paddingDeclarations, Di as buildEventCalendarListingRender, Dl as blockSiteTermsSchema, Dm as DialogContent, Do as panelShouldOpen, Ds as validateFormData, Du as formBlockDefinition, Dv as formatDate$2, E_ as asDesignBlockId, Ea as computeMediaTransformStyle, Ec as applyBookingQuestionsAnswerEvent, Ed as asPartialObject, Eg as materializeRuntimeButtonAppearance, Ei as buildEventCalendarListingDisplay, El as selectMostOpenCapacitySource, Em as DialogClose, Eo as getEventSelectionMode, Es as registrationQuestionsMessage, Eu as formattingTransforms, F_ as formatCreditProductUnits, Fc as toBookingQuestionsAnswerDraft, Fd as RichTextDocSchema, Ff as designRuntimeRulesForTheme, Fg as resolveSurfaceForeground, Fl as bookingPageKindSchema, Fo as decideEventChoice, Fp as MQ_MD_UP, Fs as confirmationPaymentRows, Fu as listItemPresentation, Fv as toScheduledBookingDateTime, G_ as resolveBookingSignupOffer, Ga as EVENT_BOOKING_ARRIVAL_QUERY, Gc as formatEventPriceDisplay, Gf as getGradientPreset, Gi as calendarMonthKey, Gl as FEATURE_CARD_ICON_TREATMENTS, Go as planRegistrationDetailsCheck, Gr as checkoutBlockDefinition, Gs as formatTime$3, Gv as parseUtcIsoDateTimeString, Ha as getContainerClass, Hc as resolveMonthSelectedDay, Hd as parseBlockIconValue, Hf as surfaceResolutionContextFromTheme, Hg as inkReference, Hi as eventCollectionDisplaySchemaShape, Hl as toBookingRequirementConsentField, Ho as fullyBookedLabel, Hp as isRecord$14, Hr as newsletterBlockSubmissionMessage, Hs as formatEventDateTime, Hu as Grid, Hv as resolveBookingBusinessTimeZone, I_ as CANCELLED_SESSION_STATUS, Ic as toBookingQuestionsPaymentSnapshot, Ig as safeTokenOr, Ii as eventListingBlockDefinition, Il as groupPublicEventsByRun, Im as usePortalContainer, Io as getDeclinedPass, Ip as MQ_SM_DOWN, Ir as normalizeLocationMapProps, Is as resolveFinishedPresentation, Iu as listLookControl, Iv as addLocalScheduleDays, Ja as buildEventRegistrationInteractiveIslandProps, Jc as buildCalendarViewport, Jd as coerceInlineTextWithFallback, Jf as generateDefaultCardSystem, Jg as contrastRatio, Jh as compileButtonColourStates, Ji as calendarWindowBounds, Jm as Root$1, Jn as planArrangementContent, Jo as resolveRegistrationAdmission, Jp as observeEditorAdmission, Jr as productListBlockDefinition, Js as getTicketTypeAvailabilityLabel, Jv as isPublicEventPricingOptionDisplayable, K as createSessionJournalBindings, Ka as eventRegistrationBlockDefinition, Kc as formatEventTeacherLine, Kg as TokenResolver, Kh as generateEffectsCSS, Ki as calendarPageResponseError, Km as hideOthers, Ko as planRegistrationDetailsContinuation, Kp as editorAdmissionRefusal, Kr as cartBlockDefinition, Ks as getImplicitSingleTicketType, Kv as toUtcIsoDateTimeString, L_ as firstLiveRunSessionStartMs, Lc as checkBookingQuestionsAnswered, Lf as headerStyleRecipeForTheme, Lg as surfaceInkPublication, Li as buildEventListingInteractiveIslandProps, Lm as ReactRemoveScroll, Lo as isRegistrationLocked, Lp as MQ_SM_UP, Ls as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, Lu as listLookSlot, Lv as formatLocalScheduleDate, M_ as journalReplayValue, Ma as resolveMediaNodeResponsiveImage, Mc as isBookingQuestionsAnswerEvent, Mf as resolveEffectiveArrangement, Mg as mapButtonVisualAppearances, Mh as unmanagedSurfaceEditability, Ml as pageNavigationSchema, Mm as DialogTrigger, Mo as registrationStepLabelContext, Ms as clearWorkflowFeedback, Mu as createZodCodec, Mv as inferSiteDateLocale, N_ as authoredValuesEqual, Nc as needsBookingQuestionsRefresh, Ng as freezeOwnedThemeValue, Nh as bindingSchema, Nl as requestSignIn, Nm as menuItemInteractionClassName, No as areEventRegistrationPaymentSelectionsEqual, Np as MQ_LG_UP, Nr as getBlockDefinition, Ns as reportWorkflowError, Nu as defineClientOwnedBlockRuntime, Nv as resolveBookingDisplayContext, Oa as renderAudio, Oc as bookingQuestionsPaymentSnapshotSchema, Od as runTransforms, Of as arrangementLookHooks, Og as BORDER_WIDTH_MAP, Ol as verifiedSiteTermsAcceptanceSchema, Oo as registrationPaymentRoute, Os as assertNever$2, Ou as buildFormInteractiveIslandProps, P_ as formatCreditProductBalance, Pa as resolvePublicMediaUrl, Pc as restoreBookingQuestionsAnswers, Pf as componentRuntimeRulesForTheme, Pg as ownedThemeSnapshot, Pl as closedRunCopy, Po as createInitialRegistrationFlowState, Pp as MQ_MD_DOWN, Ps as reportWorkflowSuccess, Pu as defineProgressiveBlockRuntime, Pv as formatBookingCompactEnglishTime, Qa as previewStageSchema, Qc as formatDate$1, Qf as generateNavLinkCSS, Qg as oklchToHexGamut, Qh as SURFACE_FOREGROUND_CSS_VARS, Qi as resolveCalendarReadProfile, Qm as Anchor, Qo as visitorHoldsOwnPlace, Qp as calendarMonthDate, Qr as buildProductDetailInteractiveIslandProps, Qs as withOccurrenceTitle, Qv as publicEventPricingType, R_ as nextLiveRunSessionStartMs, Rc as getInitialFieldValue, Rd as sanitizeHref, Rg as solveSurfaceInks, Ri as eventListingBlockRuntime, Rl as blockBookingPaymentTermsSchema, Ro as registrationFlowReducer, Rp as MQ_TABLET_ONLY, Rs as areEntitlementsDisabledForTicketCount, Ru as lookListPresentationSchemaShape, Rv as getBookingLocalDateKey, S_ as surfaceCardRoleValues, Sa as RichText, Sc as signInReturnPath, Sd as lookCarouselRegionTransform, Sf as mergeHeaderNavTypographyPreference, Sg as buttonRadius, Si as offeringsCatalogueShape, Sl as getEventAvailabilityStatus, So as bookingEntry, Ss as parseCurrencyInputToCents, Su as layoutTransforms, Ta as MediaPlaceholder, Tc as NO_BOOKING_QUESTIONS, Td as lookSkinSlotTransform, Tg as buttonTypographyDeclarations, Th as cn$1, Ti as buildEventCalendarInteractiveIslandProps, Tl as selectEventCapacitySource, Tm as Dialog, To as courseTitleOf, Ts as withRegistrationAvailability, Tu as uiTransforms, Tv as unsafeAsEditorBlockId, Ua as resolveEventSelection, Uc as formatEventPrice, Ud as resolveBlockIconRenderValue, Uf as gradientToCss, Ug as resolveConcreteColorHex, Ui as eventCollectionHydrationSchema, Ul as beforeBookingQuestionsPresentationSchema, Uo as getTicketSelectionPurpose, Up as EDITOR_LOADING_NOTICE, Ur as giftingBlockDefinition, Us as formatPassCreditUsageLabel, Uu as BACKGROUND_POSITION_PRESET_VALUES, Uv as resolveBookingTimeZoneId, V_ as generateUuidV4, Va as getCardOrientation, Vc as buildMonthDay, Vf as compiledRuntimeStyleFieldNames, Vg as contrastThresholdByPolicy, Vi as buildEventCollectionListingDisplay, Vl as isBookingRequirementConsentFieldId, Vo as shouldPromptForLogin, Vp as isObjectRecord, Vr as buildNewsletterFormInteractiveIslandProps, Vs as formatDate$3, Vv as parseLocalScheduleTime, W_ as parseMailingListRuntimeContext, Wa as publicPassProductCollectionSchema, Wc as formatEventPriceAmount, Wg as resolveOpaqueSurfaceHex, Wi as eventCollectionSourceSchemaShape, Wo as placeCountCeiling, Wr as buildGiftingInteractiveIslandProps, Ws as formatRegistrationSchedule, Wt as ApiRequestError, Wu as getAnchorClasses, Wv as toBookingTimeZone, X_ as parseMailingListVisitorSelection, Xa as resolveEventRegistrationEventSource, Xc as eventDateOptions, Xf as generateFooterCss, Xg as oklabToOklch, Xh as formatButtonColourContractError, Xi as calendarWindowPageSchema, Xl as shouldReserveFeatureCardIconZone, Xm as Presence, Xo as resolveRegistrationTicketContinuation, Xp as API_ENDPOINTS, Xr as buildCartInteractiveIslandProps, Xs as occurrenceTitleOverride, Xv as publicEventPricingDisplay, Y as SessionJournalProvider, Y_ as parseMailingListPlacementTargeting, Ya as displayButtonText, Yc as eventCalendarWeekStart, Yd as deriveInlineTextFieldChanges, Yg as hexToRgb, Yh as BUTTON_CONTRAST_POLICY, Yi as calendarWindowMonths$1, Yl as resolveFeatureCardGeneratedIconSizePx, Ym as createRovingFocusGroupScope, Yo as resolveRegistrationAvailabilityBlocker, Yr as shopBlockDefinition, Ys as getVisibleTicketTypes, Yv as publicEventPricingCurrency, Za as bookingNowSchema, Zc as formatCalendarTitle, Zf as buildTextContrastShadow, Zg as oklabToSrgb, Zh as DEFAULT_SURFACE_TEXT_COLOR, Zi as planCalendarMonthRanges, Zm as Portal, Zo as settledRemainingPlaces, Zp as BEFORE_BOOKING_QUESTIONS_ROUTE, Zr as buildCheckoutInteractiveIslandProps, Zs as transformRegistrationOptionsResponse, Zv as publicEventPricingStrategy, _ as applyBindingsToContent, _a as EventItem, _c as clearSignInReturnDrafts, _d as resolveBackgroundColorValue, _f as applyCompiledRuntimeFieldsToContent, _g as resolveSurface, _h as Button, _i as productItemKey, _l as canJoinEventWaitlist, _n as renderSourceFor, _o as resolveOfferingsPreviewGroups, _p as offeringsPreviewCompositionTreatmentValues, _s as getEligibilityFlowFlags, _u as readRuntimeNow, aa as toEventPaginationLoadError, ac as getTicketTypeLineMax, ag as surfaceInkDeclarations, ah as FocusScope, ai as buildProductDetailDisplay, al as formatTime$1, as as paymentChoiceDetails, ay as unsafeAsAppointmentResourceId, ba as MapPinIcon, bc as nextSignInReturnExpiry, bd as el, bf as restoreCompiledRuntimeFieldsFromContent, bg as actionVariableFallback, bl as formatTotalCapacity, bo as bookingBarPlacement, bs as getSlidingScaleSelectionMessage, bu as headerRuntimeTransforms, c as usePreviewShownTheme, ca as getEventRuntimeFiltersKey, cc as setTicketLineQuantity, cd as boxStylesTransforms, cg as cssVarValue, ch as useCallbackRef, ci as formatValidity, cl as resolveEventCardBooking, co as buildOfferingsPreviewListing, cp as transitionCatalogueEntries, cr as EVENT_REGISTRATION_ANCHOR_ID, cs as resolveDiscountContext, cu as siteTopChromeMeasurementTargets$1, cv as publishedContactDetails, da as normalizeOptionalId, dc as toWholeSeriesRegistrationEvents, dd as resolveCardRoleForBoxStyles, df as effectiveHeaderNavLinkStyle, dg as textColorStyle, dh as useControllableState, di as passCardListContent, dl as resolveRuntimeEventDestination, dr as deriveEventScheduleSummary, ds as resolveRouteRequiresPayment, dt as JournalWriteRefused, du as markEditableSurfaceForwarding, e_ as srgbToOklab, ea as eventPageOperationQuery, ec as formatPrice, ef as isInlineTextEmpty, eg as surfaceForegroundDeclarations, eh as Content$2, ei as buildShopInteractiveIslandProps, el as formatEventCompactDateRail, em as pageCommitReasonMessage, eo as resolveEventCalendarReadPlan, ep as headerNeedsPhotoShade, es as normalizeEventRegistrationMaxTickets, eu as siteHeaderManifest, ey as resolvePricingOptionsPriceDisplay, fa as catalogueEventCardProps, fc as EVENT_SIGN_IN_FORM_ID, fd as parseBackgroundContent, ff as readOpeningToneProjection, fg as textColorValue, fh as useLayoutEffect2, fi as EMPTY_COMMERCE_CART_STATE, fl as bookingPresentation, fm as VISUALLY_HIDDEN_STYLES, fo as normalizeOfferingsPreviewItemLimit, fr as derivePreviewRunSchedule, fs as toRegistrationRequestSubject, ft as journalFailureReason, fu as splitPositioningClasses, fy as unsafeAsSiteId, g_ as indexRenderableMediaAssets, ga as CardListItems, gc as toEventSignInDraft, gd as resolveSurfaceForegroundStyles, gg as prepareSurfaceIndex, gi as parseStoredCommerceCartState, gl as shownVenue, gn as remoteDraftValues, gp as introCompositionTreatmentValues, gs as getCurrentTicketSelection, gu as teamMemberCardBiography, h as composePreviewTheme, ha as CardListCollection, hc as eventSignInRestoration, hd as resolveSectionSurfaceForeground, hg as parseSurfaceTree, hh as Primitive, hi as deriveCommerceCheckoutState, hl as placesLeftLabel, ho as resolveOfferingsPreviewGroupCta, hp as featureCardCompositionTreatmentValues, hs as invitationSubmission, hu as teamMemberBiography, i_ as boxBackgroundSchema, ia as planEventPageOperation, ic as getTicketSelectionTotal, ig as surfaceForegroundValueWithOpacity, ih as useId$1, ii as buildProductCardDisplay, il as formatEventTimeRange, im as unwrapResponse, ir as getAtPath, is as buildReviewedBookingPaymentViewModel, iv as knownSocialPlatformLabels, iy as assertNever$1, j_ as getBookingLaterInstalments, jc as deriveBookingQuestions, jg as generateShadowValue$1, jl as leavePage, jm as DialogTitle, jo as registrationStepLabel, js as okWith, ju as defineInteractiveIslandMetaKeys, jv as formatTimeZoneCityLabel, k_ as normalizeCurrencyCode, ka as renderVideo, kc as bookingQuestionsRefusal, kg as DEFAULT_BUTTON_SIZES, kl as PAGE_NAVIGATION, ko as registrationPresentation, ks as err, ku as buildInteractiveIslandProps, kv as formatDateTimeRange, la as normalizeCsvIds, lc as getRegistrationStartAt, ld as boxStyleClassNames, lf as selectItemSurfacePresentation, lg as mergeStyles, lh as useDirection, li as membershipCardListContent, ll as resolveEventCta, lp as resolveCompiledSectionContextFromContent, lr as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, ls as resolveEventRequiresPayment, lt as getEditorClientId, ly as unsafeAsPositiveByteCount, ma as EmptyState, mc as eventSignInEnds, md as parseRuntimeBackgroundContent, mg as opaqueSurfaceDeclarations, mh as composeEventHandlers, mi as buildProductCartItem, ml as getBlockApiReadStage, mr as EventListingFrameView, ms as createRegistrationDraftData, mu as parseTeamMemberSpecialties, my as parseUuidBrand, n_ as blockCustomCssRuleSchema, na as getEventIdentity, nc as getSingleSelectedPricingOptionId, ng as surfaceForegroundStyle, nh as createPopperScope, ni as shopProductPresentation, nl as formatEventHourLabel, nm as ApiEnvelopeError, no as resolveEventRegistrationScopedEvents, np as boundaryRuntimeMetricsForDecorativeTransition, ns as calculateEventRegistrationPreviewTotal, ny as toNonNegativeCents, oa as toError, oc as hasValidPricingOptionSelection, od as isBlockButtonRole, og as surfaceInkStyle, oh as useFocusGuards, oi as formatCommercePrice, ol as groupEventsByDate, or as withValueAtPath, os as paymentChoicePrice, ou as measureSiteTopChromeBottomPx, oy as unsafeAsAppointmentServiceId, p_ as runtimeMediaSchema, pa as listingEventCardProps, pc as eventSignInDraftStore, pd as parseBackgroundOverlay, pg as opaqueSurfaceContextFromTheme, ph as createContextScope, pi as buildPassCartItem, pl as browserReadAuthoritySchema, po as offeringsListingFor, pr as MonthLookView, ps as beginWaitlistInvitation, pt as sendPageCommand, pu as contentTransforms, pv as EDITOR_SESSION_GENERATION_HEADER, qa as buildEventRegistrationDisplayFromScopedEvents, qc as formatEventDuration, qf as resolveCardRole, qg as expandPalette, qh as generateInteractiveChildInheritanceCSS, qi as calendarQueryKey, qm as Item$1, qo as resolveGuestNextStepCheck, qp as editorAdmissionSession, qr as productDetailBlockDefinition, qs as getPortalSubjectEmail, qv as formatBookingPriceDisplay, r_ as customCssRuleSchema, ra as getEventPaginationView, rc as getTicketLineQuantity, rf as parseInlineTextFromUnknown, rg as surfaceForegroundValue, rh as useSize, ri as buildCartDisplay, rl as formatEventNextDateFact, rm as extractApiEnvelopeErrorDetails, ro as offeringNounForEvent, rr as lookPartShown, rs as buildBookingPaymentSelectionViewModel, ry as formatCurrencyAmount, s as usePreviewPageDesignRenderState, sa as buildEventRuntimeFilters, sc as normalizeTicketSelectionLines, sg as backgroundColorStyle, sh as DismissableLayer, si as formatInterval, sl as resolveEventTimeZone, so as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, sp as anglePolygonCss, sr as EventHeader, ss as findPreSelectedEvent, ta as eventPaginationLoadReducer, tc as canRequestTicketOption, tg as surfaceForegroundInputFromResolved, th as Root2$2, ti as getShopDisplayForItems, tl as formatEventDateParts, tm as pageCommitReasonTag, tn as useOptionalEditorUiStoreInstance, to as normalizeEventRegistrationPageSurfaceSubject, tp as headerRootPaint, ts as resolveEventRegistrationSubmitPlan, tu as SITE_CHROME_VISIBLE_HEADER_SELECTOR, ty as parsePositiveCents, u as useSiteChromeCustomizeOptional, ua as normalizeCsvString, uc as toRegistrationEvents, ud as normalizeBoxStylesBorder, uf as heroPhotoPaintsGround, ug as rgbColorValue, uh as createCollection, ui as membershipClassesLabel, ul as resolveEventLinkProps, um as trustedJournalState, ur as eventCardListContent, us as resolveRegistrationTarget, ut as createSessionJournal, uu as composeHeaderSectionWrapperClassName, uy as unsafeAsPositiveSeconds, va as eventCategoryBadge, vc as createSignInReturnDraftStore, vf as compileEditorModelRuntime, vg as serializeSurfaceTree, vi as reduceCommerceCart, vl as canJoinEventWaitlistOnAnyMode, vo as resolveOfferingsRenderInput, vp as testimonialsCompositionTreatmentValues, vs as getRegistrationOccurrenceId, vu as resolveDateRuntimeContext, w_ as siteChromeBackgroundOverrideOwner, wa as ImagePresets, wc as EMPTY_BOOKING_QUESTIONS_ANSWERS, wd as lookQuoteLimitTransform, wg as buttonStateAppearanceDeclarations, wh as useComposedRefs, wl as isEventFull, wo as bookingPanelHeading, ws as shouldLoadRegistrationOptions, xa as MediaNodeServer, xc as readSignInReturn, xd as when, xf as skinTokenCssVars, xg as buttonBorder, xh as createSlot, xi as buildOfferingsCatalogueListing, xl as getEventAvailability, xo as bookingCardEntry, xp as PUBLIC_DOWNLOAD_MEDIA_TYPES, xs as getTicketSelectionRemainingPlaces, xu as chromeLogoTransforms, ya as CalendarIcon, yc as decideSignInReturn, yg as compositeHex, yh as useControlReadiness, yl as formatEventRemainingPlaces, yn as resolveRenderedValues, yo as DEFAULT_BOOKING_BUTTON_TEXT, ys as getSlidingScaleForEvent, yu as mediaTransforms, z_ as orderedLiveRunSessions, zc as buildEventListWeek, zd as buildGeneratedBlockIconRenderAssetLookupFromUnknown, zg as HOVER_TEXT_THRESHOLD, zi as buildEventCollectionDisplay, zl as blockBookingConsentSchema, zo as buildEventRegistrationPaymentOptionsViewModel, zr as newsletterSignupBlockDefinition, zs as findSelectedTicketType, zu as resolvedItemSurfaceProps, zv as getLocalScheduleDate } from "./previewAssistantSlot-3FZrzbK8.mjs";
3
+ import { $ as Crosshair, C as Move, Ct as confirmLocationPair, D as MapPin, Dt as locationDistanceMetres, Et as editLocationValue, Gt as ok$1, I as Info, It as normalizeLocationAddressText, Lt as parseLocationValue, Mt as formatLocationAddress, Nt as locationAddressSchema, Ot as sameLocationSpatialPair, Pt as locationPinSchema, St as LOCATION_MATCH_THRESHOLDS_METRES, T as Minus, Tt as decideLocationSave, Ut as mapDrawingSchema, V as House, Wt as err$1, at as CirclePlus, bt as ArrowDown, c as Trash2, dt as ChevronLeft, ft as ChevronDown, g as RotateCcw, h as Route, ht as Building2, it as Circle, jt as decideLocationSourcePermission, kt as sameMeaningfulAddress, l as Store, lt as ChevronUp, n as X, ot as CircleMinus, p as Search, pt as Check, r as WifiOff, s as TriangleAlert, st as CircleCheck, u as Sparkles, ut as ChevronRight, v as Plus, w as Mountain, wt as decideLocationRelationship, y as Pencil } from "./lucide-react-X0DjcFij.mjs";
4
+ import { A as buttonSizeNameSchema, C as MinusIcon, D as AFFORDANCE_SUPPRESS_CLASS, E as themeButtonSelector, M as unsafeAsOpaqueButtonColourToken, O as DEFAULT_VARIANT_ALIAS_ID, S as FileTextIcon, T as parseThemeButtonVariantId, X as parseThemeColorToken, Y as parseColorTokenParts, _ as ClockIcon$1, a as ThemedDownloadLink, b as FileAudioIcon, g as CirclePlusIcon, h as CircleMinusIcon, j as createStandardButtonSurfacePolicy, m as ChevronDownIcon, n as ThemedButton, nt as SpinnerNode, o as getIconComponent, p as ArrowDownIcon, r as ThemedButtonLink, rt as clsx, t as ThemedAuthoredButton, w as PlusIcon, x as FileSpreadsheetIcon, y as FileArchiveIcon } from "./ThemedButton-CKYjeU_M.mjs";
5
5
  import { a as buildTimetableModel$1, b as shiftCalendarAnchorDate, f as formatDateKey, g as getWeekCalendarDayTuple, h as getOrderedDayNames, l as addMonths, p as getDayOfWeek, v as isSameCalendarDay, y as isToday } from "./src-DzXUmsyK.mjs";
6
- import { a as NO_EDIT_MAP_OVERLAY, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, r as useLocationPickerWidgetContext, t as LocationDashboardLink } from "./LocationPickerEnvironment-CwxRbAs2.mjs";
6
+ import { a as NO_EDIT_MAP_OVERLAY, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, r as useLocationPickerWidgetContext, t as LocationDashboardLink } from "./LocationPickerEnvironment-OwAxA2C0.mjs";
7
7
  import * as React$1 from "react";
8
8
  import React, { Suspense, cloneElement, createContext, createElement, forwardRef, isValidElement, lazy, startTransition, useCallback, useContext, useEffect, useEffectEvent, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { z } from "zod";
11
+ import * as ReactDOM$1 from "react-dom";
11
12
  import ReactDOM, { createPortal } from "react-dom";
12
13
  import deepEqual from "fast-deep-equal";
13
14
  import { IslandDelivery } from "#island-delivery";
@@ -20,10 +21,6 @@ const unsafeAsCustomerPassId = (id) => id;
20
21
  const unsafeAsFormId = (id) => id;
21
22
  const parseFormId = (value) => parseUuidBrand(value, unsafeAsFormId);
22
23
  //#endregion
23
- //#region ../core/src/branded/appointments.ts
24
- const unsafeAsAppointmentServiceId = (id) => id;
25
- const unsafeAsAppointmentResourceId = (id) => id;
26
- //#endregion
27
24
  //#region ../core/src/site-terms.ts
28
25
  function siteTermsApplies(operation, items) {
29
26
  if (operation === "join_waitlist" || operation === "pay_existing_order") return false;
@@ -687,7 +684,7 @@ const defaultSections = (legacy, options) => {
687
684
  id: unsafeAsFooterModuleId("legal-navigation"),
688
685
  kind: "legal-navigation",
689
686
  heading: null,
690
- selected: false,
687
+ selected: footerVisible,
691
688
  source: {
692
689
  kind: "menu-role",
693
690
  role: "legal-policy"
@@ -2295,10 +2292,10 @@ var Collapsible = React$1.forwardRef((props, forwardedRef) => {
2295
2292
  });
2296
2293
  });
2297
2294
  Collapsible.displayName = COLLAPSIBLE_NAME;
2298
- var TRIGGER_NAME$3 = "CollapsibleTrigger";
2295
+ var TRIGGER_NAME$4 = "CollapsibleTrigger";
2299
2296
  var CollapsibleTrigger = React$1.forwardRef((props, forwardedRef) => {
2300
2297
  const { __scopeCollapsible, ...triggerProps } = props;
2301
- const context = useCollapsibleContext(TRIGGER_NAME$3, __scopeCollapsible);
2298
+ const context = useCollapsibleContext(TRIGGER_NAME$4, __scopeCollapsible);
2302
2299
  return /* @__PURE__ */ jsx(Primitive.button, {
2303
2300
  type: "button",
2304
2301
  "aria-controls": context.open ? context.contentId : void 0,
@@ -2311,11 +2308,11 @@ var CollapsibleTrigger = React$1.forwardRef((props, forwardedRef) => {
2311
2308
  onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
2312
2309
  });
2313
2310
  });
2314
- CollapsibleTrigger.displayName = TRIGGER_NAME$3;
2315
- var CONTENT_NAME$2 = "CollapsibleContent";
2311
+ CollapsibleTrigger.displayName = TRIGGER_NAME$4;
2312
+ var CONTENT_NAME$3 = "CollapsibleContent";
2316
2313
  var CollapsibleContent = React$1.forwardRef((props, forwardedRef) => {
2317
2314
  const { forceMount, ...contentProps } = props;
2318
- const context = useCollapsibleContext(CONTENT_NAME$2, props.__scopeCollapsible);
2315
+ const context = useCollapsibleContext(CONTENT_NAME$3, props.__scopeCollapsible);
2319
2316
  return /* @__PURE__ */ jsx(Presence, {
2320
2317
  present: forceMount || context.open,
2321
2318
  children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, {
@@ -2325,10 +2322,10 @@ var CollapsibleContent = React$1.forwardRef((props, forwardedRef) => {
2325
2322
  })
2326
2323
  });
2327
2324
  });
2328
- CollapsibleContent.displayName = CONTENT_NAME$2;
2325
+ CollapsibleContent.displayName = CONTENT_NAME$3;
2329
2326
  var CollapsibleContentImpl = React$1.forwardRef((props, forwardedRef) => {
2330
2327
  const { __scopeCollapsible, present, children, ...contentProps } = props;
2331
- const context = useCollapsibleContext(CONTENT_NAME$2, __scopeCollapsible);
2328
+ const context = useCollapsibleContext(CONTENT_NAME$3, __scopeCollapsible);
2332
2329
  const [isPresent, setIsPresent] = React$1.useState(present);
2333
2330
  const ref = React$1.useRef(null);
2334
2331
  const composedRefs = useComposedRefs(forwardedRef, ref);
@@ -2434,10 +2431,10 @@ var TabsList$1 = React$1.forwardRef((props, forwardedRef) => {
2434
2431
  });
2435
2432
  });
2436
2433
  TabsList$1.displayName = TAB_LIST_NAME;
2437
- var TRIGGER_NAME$2 = "TabsTrigger";
2434
+ var TRIGGER_NAME$3 = "TabsTrigger";
2438
2435
  var TabsTrigger$1 = React$1.forwardRef((props, forwardedRef) => {
2439
2436
  const { __scopeTabs, value, disabled = false, ...triggerProps } = props;
2440
- const context = useTabsContext(TRIGGER_NAME$2, __scopeTabs);
2437
+ const context = useTabsContext(TRIGGER_NAME$3, __scopeTabs);
2441
2438
  const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeTabs);
2442
2439
  const triggerId = makeTriggerId(context.baseId, value);
2443
2440
  const contentId = makeContentId(context.baseId, value);
@@ -2472,11 +2469,11 @@ var TabsTrigger$1 = React$1.forwardRef((props, forwardedRef) => {
2472
2469
  })
2473
2470
  });
2474
2471
  });
2475
- TabsTrigger$1.displayName = TRIGGER_NAME$2;
2476
- var CONTENT_NAME$1 = "TabsContent";
2472
+ TabsTrigger$1.displayName = TRIGGER_NAME$3;
2473
+ var CONTENT_NAME$2 = "TabsContent";
2477
2474
  var TabsContent$1 = React$1.forwardRef((props, forwardedRef) => {
2478
2475
  const { __scopeTabs, value, forceMount, children, ...contentProps } = props;
2479
- const context = useTabsContext(CONTENT_NAME$1, __scopeTabs);
2476
+ const context = useTabsContext(CONTENT_NAME$2, __scopeTabs);
2480
2477
  const triggerId = makeTriggerId(context.baseId, value);
2481
2478
  const contentId = makeContentId(context.baseId, value);
2482
2479
  const isSelected = value === context.value;
@@ -2505,7 +2502,7 @@ var TabsContent$1 = React$1.forwardRef((props, forwardedRef) => {
2505
2502
  })
2506
2503
  });
2507
2504
  });
2508
- TabsContent$1.displayName = CONTENT_NAME$1;
2505
+ TabsContent$1.displayName = CONTENT_NAME$2;
2509
2506
  function makeTriggerId(baseId, value) {
2510
2507
  return `${baseId}-trigger-${value}`;
2511
2508
  }
@@ -2517,17 +2514,40 @@ var List = TabsList$1;
2517
2514
  var Trigger = TabsTrigger$1;
2518
2515
  var Content = TabsContent$1;
2519
2516
  //#endregion
2517
+ //#region ../ui/src/tab-underline.ts
2518
+ /**
2519
+ * The one underline tab style, shared by Tabs and NavigationTabs: a hairline
2520
+ * under the row of tabs, and a 2px green line on the open tab that sits over
2521
+ * the hairline. The hairline is an inset shadow on the list rather than a
2522
+ * border, so the open tab's own border paints over it without negative
2523
+ * margins, which a scrolling tab strip would clip. A caller that wants no
2524
+ * hairline passes `shadow-none`.
2525
+ */
2526
+ /** The hairline under the row of tabs. */
2527
+ const TAB_HAIRLINE_CLASS = "shadow-[inset_0_-1px_0_var(--border)]";
2528
+ /** The space between tabs. */
2529
+ const TAB_GAP_CLASS = "gap-5";
2530
+ /** One tab. The open one is marked by `aria-selected`, which Radix Tabs and NavigationTabs both set. */
2531
+ const TAB_TRIGGER_CLASS = [
2532
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap",
2533
+ "border-b-2 border-transparent px-1 pt-1 pb-2 text-sm font-medium text-muted-foreground transition-colors",
2534
+ "hover:border-muted-foreground/30 hover:text-foreground",
2535
+ "aria-selected:border-primary aria-selected:text-foreground",
2536
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
2537
+ "disabled:pointer-events-none disabled:opacity-50"
2538
+ ].join(" ");
2539
+ //#endregion
2520
2540
  //#region ../ui/src/tabs.tsx
2521
2541
  const Tabs = Root2$1;
2522
2542
  const TabsList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(List, {
2523
2543
  ref,
2524
- className: cn$1("inline-flex w-fit max-w-full items-center justify-start rounded-[var(--item-radius)] bg-transparent p-1 text-muted-foreground [&>[role=tab]:not(:last-child)]:mr-3", className),
2544
+ className: cn$1("inline-flex w-fit max-w-full items-end justify-start text-muted-foreground", TAB_GAP_CLASS, TAB_HAIRLINE_CLASS, className),
2525
2545
  ...props
2526
2546
  }));
2527
2547
  TabsList.displayName = List.displayName;
2528
2548
  const TabsTrigger = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Trigger, {
2529
2549
  ref,
2530
- className: cn$1("inline-flex h-9 cursor-pointer items-center justify-center whitespace-nowrap rounded-[var(--item-radius)] px-4 py-2 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-button-outline-hover data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-[var(--tab-active-glow-shadow)]", className),
2550
+ className: cn$1(TAB_TRIGGER_CLASS, className),
2531
2551
  ...props
2532
2552
  }));
2533
2553
  TabsTrigger.displayName = Trigger.displayName;
@@ -2538,15 +2558,87 @@ const TabsContent = React$1.forwardRef(({ className, ...props }, ref) => /* @__P
2538
2558
  }));
2539
2559
  TabsContent.displayName = Content.displayName;
2540
2560
  //#endregion
2561
+ //#region ../ui/src/field-description.tsx
2562
+ const FieldDescriptionContext = React$1.createContext(null);
2563
+ function FieldDescriptionProvider({ value, children }) {
2564
+ return /* @__PURE__ */ jsx(FieldDescriptionContext.Provider, {
2565
+ value,
2566
+ children
2567
+ });
2568
+ }
2569
+ /** Joins id lists for `aria-describedby`, dropping blanks and repeats. */
2570
+ function joinDescribedBy(...lists) {
2571
+ const ids = lists.flatMap((list) => list ? list.split(/\s+/u).filter(Boolean) : []);
2572
+ return [...new Set(ids)].join(" ") || void 0;
2573
+ }
2574
+ /**
2575
+ * A control's `aria-describedby`: its own ids, plus the surrounding field's
2576
+ * when the control is the one that field labels (the ids match). A control
2577
+ * nested deeper in the field, with a different id, keeps only its own.
2578
+ */
2579
+ function useFieldDescribedBy(id, own) {
2580
+ const field = React$1.useContext(FieldDescriptionContext);
2581
+ if (!field || id === void 0 || id !== field.controlId) return own;
2582
+ return joinDescribedBy(field.describedBy, own);
2583
+ }
2584
+ //#endregion
2585
+ //#region ../ui/src/fieldControl.ts
2586
+ /**
2587
+ * The one field shape, as class strings, so Input, Textarea, SelectTrigger
2588
+ * and the date picker's trigger cannot drift apart. The sizes come from the
2589
+ * `--field-*` tokens in styles/editor-base.css (compact by default, roomy
2590
+ * under `data-field-size="roomy"`); the colours come from the surface's
2591
+ * palette.
2592
+ *
2593
+ * The focus glow and the placeholder are mixed from palette tokens here,
2594
+ * rather than in derived tokens on `:root`, so they follow a surface that
2595
+ * retunes its colours on an inner element.
2596
+ */
2597
+ /** Keyboard focus on a field-like control: the focus border and a soft glow in its colour, no outline. */
2598
+ const FIELD_FOCUS_CLASS = "focus-visible:outline-none focus-visible:border-field-border-focus focus-visible:shadow-[0_0_0_4px_color-mix(in_srgb,var(--field-border-strong)_18%,transparent)]";
2599
+ /** The same focus for a wrapper that draws the border around an inner input (a composite field). */
2600
+ const FIELD_FOCUS_WITHIN_CLASS = "focus-within:border-field-border-focus focus-within:shadow-[0_0_0_4px_color-mix(in_srgb,var(--field-border-strong)_18%,transparent)]";
2601
+ /**
2602
+ * A native checkbox or radio, for the few places the shared Checkbox and
2603
+ * RadioGroup can't go (native `required`, a radio group split across
2604
+ * sections, packages/ui itself).
2605
+ */
2606
+ const NATIVE_CHOICE_CLASS = "size-[1.125rem] shrink-0 cursor-pointer accent-[var(--primary)]";
2607
+ /**
2608
+ * The unchecked border of a checkbox or radio. The field border is too faint
2609
+ * for a small box on a cream page, so it's mixed from the muted text colour.
2610
+ */
2611
+ const CHOICE_BORDER_CLASS = "border-[color:color-mix(in_srgb,var(--muted-foreground)_55%,var(--field-background))]";
2612
+ /**
2613
+ * Border, fill, radius, type, focus glow and the invalid state. No height or
2614
+ * padding. What's typed or chosen in a field is regular weight; the semibold
2615
+ * `--control-font-weight` is for buttons.
2616
+ */
2617
+ const FIELD_SURFACE_CLASS = [
2618
+ "rounded-[var(--field-radius)] border border-input bg-field-background",
2619
+ "text-[length:var(--field-font-size)] font-normal tracking-[var(--control-letter-spacing)]",
2620
+ "placeholder:text-[color:color-mix(in_srgb,var(--muted-foreground)_78%,var(--field-background))]",
2621
+ "transition-[color,border-color,box-shadow] outline-none",
2622
+ FIELD_FOCUS_CLASS,
2623
+ "aria-invalid:border-destructive aria-invalid:focus-visible:shadow-[0_0_0_4px_color-mix(in_srgb,var(--destructive)_16%,transparent)]",
2624
+ "disabled:cursor-not-allowed disabled:opacity-50"
2625
+ ].join(" ");
2626
+ /** A single-line control: the surface at the field height. */
2627
+ const FIELD_CONTROL_CLASS = `${FIELD_SURFACE_CLASS} h-[var(--field-height)] px-[var(--field-padding-x)]`;
2628
+ /** A multi-line control: the surface with room to grow. */
2629
+ const FIELD_TEXTAREA_CLASS = `${FIELD_SURFACE_CLASS} min-h-[var(--field-textarea-min-height)] px-[var(--field-padding-x)] py-[calc(var(--field-padding-x)*0.8)] leading-[1.45]`;
2630
+ //#endregion
2541
2631
  //#region ../ui/src/input.tsx
2542
- const Input = React$1.forwardRef(({ className, type, disabled, ...props }, ref) => {
2632
+ const Input = React$1.forwardRef(({ className, type, disabled, "aria-describedby": ariaDescribedBy, ...props }, ref) => {
2543
2633
  const readiness = useControlReadiness(disabled);
2634
+ const describedBy = useFieldDescribedBy(props.id, ariaDescribedBy);
2544
2635
  return /* @__PURE__ */ jsx("input", {
2545
2636
  ref,
2546
2637
  type,
2547
2638
  "data-slot": "input",
2548
2639
  className: cn$1(FIELD_CONTROL_CLASS, "file:text-foreground selection:bg-primary selection:text-primary-foreground flex w-full min-w-0 py-1 file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none", className),
2549
2640
  ...props,
2641
+ "aria-describedby": describedBy,
2550
2642
  ...readiness
2551
2643
  });
2552
2644
  });
@@ -2573,6 +2665,45 @@ const NativeSelect = React$1.forwardRef(({ className, containerClassName, disabl
2573
2665
  });
2574
2666
  NativeSelect.displayName = "NativeSelect";
2575
2667
  //#endregion
2668
+ //#region ../ui/src/field-trigger.tsx
2669
+ /**
2670
+ * A field that opens a list or calendar: the shared field surface (see
2671
+ * fieldControl.ts), laid out as a button with a value and an icon, so a
2672
+ * picker reads as a field beside the inputs around it rather than as a
2673
+ * button. `SelectTrigger` and `FieldTrigger` both build on it.
2674
+ */
2675
+ const fieldTriggerClassName = [
2676
+ FIELD_SURFACE_CLASS,
2677
+ "flex items-center justify-between gap-2 px-[var(--field-padding-x)] py-2 text-left whitespace-nowrap cursor-pointer",
2678
+ "hover:border-field-border-focus disabled:hover:border-input",
2679
+ "[&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
2680
+ ].join(" ");
2681
+ /**
2682
+ * The button that opens a popover picker (a combobox, a multi-select, a date
2683
+ * picker), styled as a field. Spreads the props and ref a Radix trigger passes
2684
+ * through `asChild`.
2685
+ */
2686
+ const FieldTrigger = forwardRef(function FieldTrigger({ children, isPlaceholder = false, leading, trailing = /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 opacity-50" }), active = false, size = "default", className, type = "button", "aria-describedby": ariaDescribedBy, ...props }, ref) {
2687
+ const describedBy = useFieldDescribedBy(props.id, ariaDescribedBy);
2688
+ return /* @__PURE__ */ jsxs("button", {
2689
+ ...props,
2690
+ "aria-describedby": describedBy,
2691
+ ref,
2692
+ type,
2693
+ "data-slot": "field-trigger",
2694
+ "data-size": size,
2695
+ "data-placeholder": isPlaceholder ? "" : void 0,
2696
+ className: cn$1(fieldTriggerClassName, size === "sm" ? "h-[2rem]" : "h-[var(--field-height)]", "w-fit", active ? "border-field-border-focus" : void 0, className),
2697
+ children: [/* @__PURE__ */ jsxs("span", {
2698
+ className: "flex min-w-0 flex-1 items-center gap-2",
2699
+ children: [leading, /* @__PURE__ */ jsx("span", {
2700
+ className: cn$1("truncate", isPlaceholder ? "text-muted-foreground" : void 0),
2701
+ children
2702
+ })]
2703
+ }), trailing]
2704
+ });
2705
+ });
2706
+ //#endregion
2576
2707
  //#region ../ui/src/search-input.tsx
2577
2708
  function SearchInput({ wrapperClassName, iconClassName, rightSlot, rightSlotClassName, className, placeholder = "Search…", "aria-label": ariaLabel, ...props }) {
2578
2709
  return /* @__PURE__ */ jsxs("div", {
@@ -2583,7 +2714,7 @@ function SearchInput({ wrapperClassName, iconClassName, rightSlot, rightSlotClas
2583
2714
  type: "search",
2584
2715
  placeholder,
2585
2716
  "aria-label": ariaLabel ?? placeholder,
2586
- className: cn$1("h-8 pl-9 text-sm", className),
2717
+ className: cn$1("pl-9", className),
2587
2718
  ...props
2588
2719
  }),
2589
2720
  /* @__PURE__ */ jsx(Search, {
@@ -4121,14 +4252,1095 @@ function useEmblaCarousel(options = {}, plugins = []) {
4121
4252
  }
4122
4253
  useEmblaCarousel.globalOptions = void 0;
4123
4254
  //#endregion
4255
+ //#region ../../node_modules/.pnpm/@radix-ui+number@1.1.2/node_modules/@radix-ui/number/dist/index.mjs
4256
+ function clamp(value, [min, max]) {
4257
+ return Math.min(max, Math.max(min, value));
4258
+ }
4259
+ //#endregion
4260
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
4261
+ function usePrevious(value) {
4262
+ const ref = React$1.useRef({
4263
+ value,
4264
+ previous: value
4265
+ });
4266
+ return React$1.useMemo(() => {
4267
+ if (ref.current.value !== value) {
4268
+ ref.current.previous = ref.current.value;
4269
+ ref.current.value = value;
4270
+ }
4271
+ return ref.current.previous;
4272
+ }, [value]);
4273
+ }
4274
+ //#endregion
4275
+ //#region ../../node_modules/.pnpm/@radix-ui+react-select@2.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_68ca3d8e6bdaaaf66edd7a9f64ec79a6/node_modules/@radix-ui/react-select/dist/index.mjs
4276
+ var OPEN_KEYS = [
4277
+ " ",
4278
+ "Enter",
4279
+ "ArrowUp",
4280
+ "ArrowDown"
4281
+ ];
4282
+ var SELECTION_KEYS = [" ", "Enter"];
4283
+ var SELECT_NAME = "Select";
4284
+ var [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(SELECT_NAME);
4285
+ var [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [createCollectionScope$1, createPopperScope]);
4286
+ var usePopperScope = createPopperScope();
4287
+ var [SelectProviderImpl, useSelectContext] = createSelectContext(SELECT_NAME);
4288
+ var [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);
4289
+ var PROVIDER_NAME = "SelectProvider";
4290
+ function SelectProvider(props) {
4291
+ const { __scopeSelect, children, open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, dir, name, autoComplete, disabled, required, form, internal_do_not_use_render } = props;
4292
+ const popperScope = usePopperScope(__scopeSelect);
4293
+ const [trigger, setTrigger] = React$1.useState(null);
4294
+ const [valueNode, setValueNode] = React$1.useState(null);
4295
+ const [valueNodeHasChildren, setValueNodeHasChildren] = React$1.useState(false);
4296
+ const direction = useDirection(dir);
4297
+ const [open, setOpen] = useControllableState({
4298
+ prop: openProp,
4299
+ defaultProp: defaultOpen ?? false,
4300
+ onChange: onOpenChange,
4301
+ caller: SELECT_NAME
4302
+ });
4303
+ const [value, setValue] = useControllableState({
4304
+ prop: valueProp,
4305
+ defaultProp: defaultValue,
4306
+ onChange: onValueChange,
4307
+ caller: SELECT_NAME
4308
+ });
4309
+ const triggerPointerDownPosRef = React$1.useRef(null);
4310
+ const isFormControl = trigger ? !!form || !!trigger.closest("form") : true;
4311
+ const [nativeOptionsSet, setNativeOptionsSet] = React$1.useState(/* @__PURE__ */ new Set());
4312
+ const contentId = useId$1();
4313
+ const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
4314
+ const handleNativeOptionAdd = React$1.useCallback((option) => {
4315
+ setNativeOptionsSet((prev) => new Set(prev).add(option));
4316
+ }, []);
4317
+ const handleNativeOptionRemove = React$1.useCallback((option) => {
4318
+ setNativeOptionsSet((prev) => {
4319
+ const optionsSet = new Set(prev);
4320
+ optionsSet.delete(option);
4321
+ return optionsSet;
4322
+ });
4323
+ }, []);
4324
+ const context = {
4325
+ required,
4326
+ trigger,
4327
+ onTriggerChange: setTrigger,
4328
+ valueNode,
4329
+ onValueNodeChange: setValueNode,
4330
+ valueNodeHasChildren,
4331
+ onValueNodeHasChildrenChange: setValueNodeHasChildren,
4332
+ contentId,
4333
+ value,
4334
+ onValueChange: setValue,
4335
+ open,
4336
+ onOpenChange: setOpen,
4337
+ dir: direction,
4338
+ triggerPointerDownPosRef,
4339
+ disabled,
4340
+ name,
4341
+ autoComplete,
4342
+ form,
4343
+ nativeOptions: nativeOptionsSet,
4344
+ nativeSelectKey,
4345
+ isFormControl
4346
+ };
4347
+ return /* @__PURE__ */ jsx(Root2$2, {
4348
+ ...popperScope,
4349
+ children: /* @__PURE__ */ jsx(SelectProviderImpl, {
4350
+ scope: __scopeSelect,
4351
+ ...context,
4352
+ children: /* @__PURE__ */ jsx(Collection$1.Provider, {
4353
+ scope: __scopeSelect,
4354
+ children: /* @__PURE__ */ jsx(SelectNativeOptionsProvider, {
4355
+ scope: __scopeSelect,
4356
+ onNativeOptionAdd: handleNativeOptionAdd,
4357
+ onNativeOptionRemove: handleNativeOptionRemove,
4358
+ children: isFunction$1(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
4359
+ })
4360
+ })
4361
+ })
4362
+ });
4363
+ }
4364
+ SelectProvider.displayName = PROVIDER_NAME;
4365
+ var Select$1 = (props) => {
4366
+ const { __scopeSelect, children, ...providerProps } = props;
4367
+ return /* @__PURE__ */ jsx(SelectProvider, {
4368
+ __scopeSelect,
4369
+ ...providerProps,
4370
+ internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [children, isFormControl ? /* @__PURE__ */ jsx(SelectBubbleInput, { __scopeSelect }) : null] })
4371
+ });
4372
+ };
4373
+ Select$1.displayName = SELECT_NAME;
4374
+ var TRIGGER_NAME$2 = "SelectTrigger";
4375
+ var SelectTrigger$1 = React$1.forwardRef((props, forwardedRef) => {
4376
+ const { __scopeSelect, disabled = false, ...triggerProps } = props;
4377
+ const popperScope = usePopperScope(__scopeSelect);
4378
+ const context = useSelectContext(TRIGGER_NAME$2, __scopeSelect);
4379
+ const isDisabled = context.disabled || disabled;
4380
+ const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);
4381
+ const getItems = useCollection$1(__scopeSelect);
4382
+ const pointerTypeRef = React$1.useRef("touch");
4383
+ const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
4384
+ const enabledItems = getItems().filter((item) => !item.disabled);
4385
+ const nextItem = findNextItem(enabledItems, search, enabledItems.find((item) => item.value === context.value));
4386
+ if (nextItem !== void 0) context.onValueChange(nextItem.value);
4387
+ });
4388
+ const handleOpen = (pointerEvent) => {
4389
+ if (!isDisabled) {
4390
+ context.onOpenChange(true);
4391
+ resetTypeahead();
4392
+ }
4393
+ if (pointerEvent) context.triggerPointerDownPosRef.current = {
4394
+ x: Math.round(pointerEvent.pageX),
4395
+ y: Math.round(pointerEvent.pageY)
4396
+ };
4397
+ };
4398
+ return /* @__PURE__ */ jsx(Anchor, {
4399
+ asChild: true,
4400
+ ...popperScope,
4401
+ children: /* @__PURE__ */ jsx(Primitive.button, {
4402
+ type: "button",
4403
+ role: "combobox",
4404
+ "aria-controls": context.open ? context.contentId : void 0,
4405
+ "aria-expanded": context.open,
4406
+ "aria-required": context.required,
4407
+ "aria-autocomplete": "none",
4408
+ dir: context.dir,
4409
+ "data-state": context.open ? "open" : "closed",
4410
+ disabled: isDisabled,
4411
+ "data-disabled": isDisabled ? "" : void 0,
4412
+ "data-placeholder": shouldShowPlaceholder(context.value) ? "" : void 0,
4413
+ ...triggerProps,
4414
+ ref: composedRefs,
4415
+ onClick: composeEventHandlers(triggerProps.onClick, (event) => {
4416
+ event.currentTarget.focus();
4417
+ if (pointerTypeRef.current !== "mouse") handleOpen(event);
4418
+ }),
4419
+ onPointerDown: composeEventHandlers(triggerProps.onPointerDown, (event) => {
4420
+ pointerTypeRef.current = event.pointerType;
4421
+ const target = event.target;
4422
+ if (target.hasPointerCapture(event.pointerId)) target.releasePointerCapture(event.pointerId);
4423
+ if (event.button === 0 && event.ctrlKey === false && event.pointerType === "mouse") {
4424
+ handleOpen(event);
4425
+ event.preventDefault();
4426
+ }
4427
+ }),
4428
+ onKeyDown: composeEventHandlers(triggerProps.onKeyDown, (event) => {
4429
+ const isTypingAhead = searchRef.current !== "";
4430
+ if (!(event.ctrlKey || event.altKey || event.metaKey) && event.key.length === 1) handleTypeaheadSearch(event.key);
4431
+ if (isTypingAhead && event.key === " ") return;
4432
+ if (OPEN_KEYS.includes(event.key)) {
4433
+ handleOpen();
4434
+ event.preventDefault();
4435
+ }
4436
+ })
4437
+ })
4438
+ });
4439
+ });
4440
+ SelectTrigger$1.displayName = TRIGGER_NAME$2;
4441
+ var VALUE_NAME = "SelectValue";
4442
+ var SelectValue$1 = React$1.forwardRef((props, forwardedRef) => {
4443
+ const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
4444
+ const context = useSelectContext(VALUE_NAME, __scopeSelect);
4445
+ const { onValueNodeHasChildrenChange } = context;
4446
+ const hasChildren = children !== void 0;
4447
+ const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);
4448
+ useLayoutEffect2(() => {
4449
+ onValueNodeHasChildrenChange(hasChildren);
4450
+ }, [onValueNodeHasChildrenChange, hasChildren]);
4451
+ const showPlaceholder = shouldShowPlaceholder(context.value);
4452
+ return /* @__PURE__ */ jsx(Primitive.span, {
4453
+ ...valueProps,
4454
+ asChild: showPlaceholder ? false : valueProps.asChild,
4455
+ ref: composedRefs,
4456
+ style: { pointerEvents: "none" },
4457
+ children: /* @__PURE__ */ jsx(React$1.Fragment, { children: showPlaceholder ? placeholder : children }, showPlaceholder ? "placeholder" : "value")
4458
+ });
4459
+ });
4460
+ SelectValue$1.displayName = VALUE_NAME;
4461
+ var ICON_NAME = "SelectIcon";
4462
+ var SelectIcon = React$1.forwardRef((props, forwardedRef) => {
4463
+ const { __scopeSelect, children, ...iconProps } = props;
4464
+ return /* @__PURE__ */ jsx(Primitive.span, {
4465
+ "aria-hidden": true,
4466
+ ...iconProps,
4467
+ ref: forwardedRef,
4468
+ children: children || "▼"
4469
+ });
4470
+ });
4471
+ SelectIcon.displayName = ICON_NAME;
4472
+ var PORTAL_NAME = "SelectPortal";
4473
+ var [PortalProvider, usePortalContext] = createSelectContext(PORTAL_NAME, { forceMount: void 0 });
4474
+ var SelectPortal = (props) => {
4475
+ const { __scopeSelect, forceMount, ...portalProps } = props;
4476
+ return /* @__PURE__ */ jsx(PortalProvider, {
4477
+ scope: props.__scopeSelect,
4478
+ forceMount,
4479
+ children: /* @__PURE__ */ jsx(Portal, {
4480
+ asChild: true,
4481
+ ...portalProps
4482
+ })
4483
+ });
4484
+ };
4485
+ SelectPortal.displayName = PORTAL_NAME;
4486
+ var CONTENT_NAME$1 = "SelectContent";
4487
+ var SelectContent$1 = React$1.forwardRef((props, forwardedRef) => {
4488
+ const portalContext = usePortalContext(CONTENT_NAME$1, props.__scopeSelect);
4489
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
4490
+ const context = useSelectContext(CONTENT_NAME$1, props.__scopeSelect);
4491
+ const [fragment, setFragment] = React$1.useState();
4492
+ useLayoutEffect2(() => {
4493
+ setFragment(new DocumentFragment());
4494
+ }, []);
4495
+ return /* @__PURE__ */ jsx(Presence, {
4496
+ present: forceMount || context.open,
4497
+ children: ({ present }) => present ? /* @__PURE__ */ jsx(SelectContentImpl, {
4498
+ ...contentProps,
4499
+ ref: forwardedRef
4500
+ }) : /* @__PURE__ */ jsx(SelectContentFragment, {
4501
+ ...contentProps,
4502
+ fragment
4503
+ })
4504
+ });
4505
+ });
4506
+ SelectContent$1.displayName = CONTENT_NAME$1;
4507
+ var SelectContentFragment = React$1.forwardRef((props, forwardedRef) => {
4508
+ const { __scopeSelect, children, fragment } = props;
4509
+ if (!fragment) return null;
4510
+ return ReactDOM$1.createPortal(/* @__PURE__ */ jsx(SelectContentProvider, {
4511
+ scope: __scopeSelect,
4512
+ children: /* @__PURE__ */ jsx(Collection$1.Slot, {
4513
+ scope: __scopeSelect,
4514
+ children: /* @__PURE__ */ jsx("div", {
4515
+ ref: forwardedRef,
4516
+ children
4517
+ })
4518
+ })
4519
+ }), fragment);
4520
+ });
4521
+ SelectContentFragment.displayName = "SelectContentFragment";
4522
+ var CONTENT_MARGIN = 10;
4523
+ var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$1);
4524
+ var CONTENT_IMPL_NAME = "SelectContentImpl";
4525
+ var Slot = createSlot("SelectContent.RemoveScroll");
4526
+ var SelectContentImpl = React$1.forwardRef((props, forwardedRef) => {
4527
+ const { __scopeSelect } = props;
4528
+ const { position = "item-aligned", onCloseAutoFocus, onEscapeKeyDown, onPointerDownOutside, side, sideOffset, align, alignOffset, arrowPadding, collisionBoundary, collisionPadding, sticky, hideWhenDetached, avoidCollisions, ...contentProps } = props;
4529
+ const context = useSelectContext(CONTENT_NAME$1, __scopeSelect);
4530
+ const [content, setContent] = React$1.useState(null);
4531
+ const [viewport, setViewport] = React$1.useState(null);
4532
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
4533
+ const [selectedItem, setSelectedItem] = React$1.useState(null);
4534
+ const [selectedItemText, setSelectedItemText] = React$1.useState(null);
4535
+ const getItems = useCollection$1(__scopeSelect);
4536
+ const [isPositioned, setIsPositioned] = React$1.useState(false);
4537
+ const firstValidItemFoundRef = React$1.useRef(false);
4538
+ React$1.useEffect(() => {
4539
+ if (content) return hideOthers(content);
4540
+ }, [content]);
4541
+ useFocusGuards();
4542
+ const focusFirst = React$1.useCallback((candidates) => {
4543
+ const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
4544
+ const [lastItem] = restItems.slice(-1);
4545
+ const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
4546
+ for (const candidate of candidates) {
4547
+ if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
4548
+ candidate?.scrollIntoView({ block: "nearest" });
4549
+ if (candidate === firstItem && viewport) viewport.scrollTop = 0;
4550
+ if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;
4551
+ candidate?.focus();
4552
+ if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
4553
+ }
4554
+ }, [getItems, viewport]);
4555
+ const focusSelectedItem = React$1.useCallback(() => focusFirst([selectedItem, content]), [
4556
+ focusFirst,
4557
+ selectedItem,
4558
+ content
4559
+ ]);
4560
+ React$1.useEffect(() => {
4561
+ if (isPositioned) focusSelectedItem();
4562
+ }, [isPositioned, focusSelectedItem]);
4563
+ const { onOpenChange, triggerPointerDownPosRef } = context;
4564
+ React$1.useEffect(() => {
4565
+ if (content) {
4566
+ let pointerMoveDelta = {
4567
+ x: 0,
4568
+ y: 0
4569
+ };
4570
+ const handlePointerMove = (event) => {
4571
+ pointerMoveDelta = {
4572
+ x: Math.abs(Math.round(event.pageX) - (triggerPointerDownPosRef.current?.x ?? 0)),
4573
+ y: Math.abs(Math.round(event.pageY) - (triggerPointerDownPosRef.current?.y ?? 0))
4574
+ };
4575
+ };
4576
+ const handlePointerUp = (event) => {
4577
+ if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) event.preventDefault();
4578
+ else if (!event.composedPath().includes(content)) onOpenChange(false);
4579
+ document.removeEventListener("pointermove", handlePointerMove);
4580
+ triggerPointerDownPosRef.current = null;
4581
+ };
4582
+ if (triggerPointerDownPosRef.current !== null) {
4583
+ document.addEventListener("pointermove", handlePointerMove);
4584
+ document.addEventListener("pointerup", handlePointerUp, {
4585
+ capture: true,
4586
+ once: true
4587
+ });
4588
+ }
4589
+ return () => {
4590
+ document.removeEventListener("pointermove", handlePointerMove);
4591
+ document.removeEventListener("pointerup", handlePointerUp, { capture: true });
4592
+ };
4593
+ }
4594
+ }, [
4595
+ content,
4596
+ onOpenChange,
4597
+ triggerPointerDownPosRef
4598
+ ]);
4599
+ React$1.useEffect(() => {
4600
+ const close = () => onOpenChange(false);
4601
+ window.addEventListener("blur", close);
4602
+ window.addEventListener("resize", close);
4603
+ return () => {
4604
+ window.removeEventListener("blur", close);
4605
+ window.removeEventListener("resize", close);
4606
+ };
4607
+ }, [onOpenChange]);
4608
+ const [searchRef, handleTypeaheadSearch] = useTypeaheadSearch((search) => {
4609
+ const enabledItems = getItems().filter((item) => !item.disabled);
4610
+ const nextItem = findNextItem(enabledItems, search, enabledItems.find((item) => item.ref.current === document.activeElement));
4611
+ if (nextItem) setTimeout(() => nextItem.ref.current?.focus());
4612
+ });
4613
+ const itemRefCallback = React$1.useCallback((node, value, disabled) => {
4614
+ const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
4615
+ if (context.value !== void 0 && context.value === value || isFirstValidItem) {
4616
+ setSelectedItem(node);
4617
+ if (isFirstValidItem) firstValidItemFoundRef.current = true;
4618
+ }
4619
+ }, [context.value]);
4620
+ const handleItemLeave = React$1.useCallback(() => content?.focus(), [content]);
4621
+ const itemTextRefCallback = React$1.useCallback((node, value, disabled) => {
4622
+ const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
4623
+ if (context.value !== void 0 && context.value === value || isFirstValidItem) setSelectedItemText(node);
4624
+ }, [context.value]);
4625
+ const SelectPosition = position === "popper" ? SelectPopperPosition : SelectItemAlignedPosition;
4626
+ const popperContentProps = SelectPosition === SelectPopperPosition ? {
4627
+ side,
4628
+ sideOffset,
4629
+ align,
4630
+ alignOffset,
4631
+ arrowPadding,
4632
+ collisionBoundary,
4633
+ collisionPadding,
4634
+ sticky,
4635
+ hideWhenDetached,
4636
+ avoidCollisions
4637
+ } : {};
4638
+ return /* @__PURE__ */ jsx(SelectContentProvider, {
4639
+ scope: __scopeSelect,
4640
+ content,
4641
+ viewport,
4642
+ onViewportChange: setViewport,
4643
+ itemRefCallback,
4644
+ selectedItem,
4645
+ onItemLeave: handleItemLeave,
4646
+ itemTextRefCallback,
4647
+ focusSelectedItem,
4648
+ selectedItemText,
4649
+ position,
4650
+ isPositioned,
4651
+ searchRef,
4652
+ children: /* @__PURE__ */ jsx(ReactRemoveScroll, {
4653
+ as: Slot,
4654
+ allowPinchZoom: true,
4655
+ children: /* @__PURE__ */ jsx(FocusScope, {
4656
+ asChild: true,
4657
+ trapped: context.open,
4658
+ onMountAutoFocus: (event) => {
4659
+ event.preventDefault();
4660
+ },
4661
+ onUnmountAutoFocus: composeEventHandlers(onCloseAutoFocus, (event) => {
4662
+ context.trigger?.focus({ preventScroll: true });
4663
+ event.preventDefault();
4664
+ }),
4665
+ children: /* @__PURE__ */ jsx(DismissableLayer, {
4666
+ asChild: true,
4667
+ disableOutsidePointerEvents: true,
4668
+ onEscapeKeyDown,
4669
+ onPointerDownOutside,
4670
+ onFocusOutside: (event) => event.preventDefault(),
4671
+ onDismiss: () => context.onOpenChange(false),
4672
+ children: /* @__PURE__ */ jsx(SelectPosition, {
4673
+ role: "listbox",
4674
+ id: context.contentId,
4675
+ "data-state": context.open ? "open" : "closed",
4676
+ dir: context.dir,
4677
+ onContextMenu: (event) => event.preventDefault(),
4678
+ ...contentProps,
4679
+ ...popperContentProps,
4680
+ onPlaced: () => setIsPositioned(true),
4681
+ ref: composedRefs,
4682
+ style: {
4683
+ display: "flex",
4684
+ flexDirection: "column",
4685
+ outline: "none",
4686
+ ...contentProps.style
4687
+ },
4688
+ onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {
4689
+ const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
4690
+ if (event.key === "Tab") event.preventDefault();
4691
+ if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);
4692
+ if ([
4693
+ "ArrowUp",
4694
+ "ArrowDown",
4695
+ "Home",
4696
+ "End"
4697
+ ].includes(event.key)) {
4698
+ let candidateNodes = getItems().filter((item) => !item.disabled).map((item) => item.ref.current);
4699
+ if (["ArrowUp", "End"].includes(event.key)) candidateNodes = candidateNodes.slice().reverse();
4700
+ if (["ArrowUp", "ArrowDown"].includes(event.key)) {
4701
+ const currentElement = event.target;
4702
+ const currentIndex = candidateNodes.indexOf(currentElement);
4703
+ candidateNodes = candidateNodes.slice(currentIndex + 1);
4704
+ }
4705
+ setTimeout(() => focusFirst(candidateNodes));
4706
+ event.preventDefault();
4707
+ }
4708
+ })
4709
+ })
4710
+ })
4711
+ })
4712
+ })
4713
+ });
4714
+ });
4715
+ SelectContentImpl.displayName = CONTENT_IMPL_NAME;
4716
+ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
4717
+ var SelectItemAlignedPosition = React$1.forwardRef((props, forwardedRef) => {
4718
+ const { __scopeSelect, onPlaced, ...popperProps } = props;
4719
+ const context = useSelectContext(CONTENT_NAME$1, __scopeSelect);
4720
+ const contentContext = useSelectContentContext(CONTENT_NAME$1, __scopeSelect);
4721
+ const [contentWrapper, setContentWrapper] = React$1.useState(null);
4722
+ const [content, setContent] = React$1.useState(null);
4723
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
4724
+ const getItems = useCollection$1(__scopeSelect);
4725
+ const shouldExpandOnScrollRef = React$1.useRef(false);
4726
+ const shouldRepositionRef = React$1.useRef(true);
4727
+ const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
4728
+ const position = React$1.useCallback(() => {
4729
+ if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
4730
+ const triggerRect = context.trigger.getBoundingClientRect();
4731
+ const contentRect = content.getBoundingClientRect();
4732
+ const valueNodeRect = context.valueNode.getBoundingClientRect();
4733
+ const itemTextRect = selectedItemText.getBoundingClientRect();
4734
+ if (context.dir !== "rtl") {
4735
+ const itemTextOffset = itemTextRect.left - contentRect.left;
4736
+ const left = valueNodeRect.left - itemTextOffset;
4737
+ const leftDelta = triggerRect.left - left;
4738
+ const minContentWidth = triggerRect.width + leftDelta;
4739
+ const contentWidth = Math.max(minContentWidth, contentRect.width);
4740
+ const rightEdge = window.innerWidth - CONTENT_MARGIN;
4741
+ const clampedLeft = clamp(left, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, rightEdge - contentWidth)]);
4742
+ contentWrapper.style.minWidth = minContentWidth + "px";
4743
+ contentWrapper.style.left = clampedLeft + "px";
4744
+ } else {
4745
+ const itemTextOffset = contentRect.right - itemTextRect.right;
4746
+ const right = window.innerWidth - valueNodeRect.right - itemTextOffset;
4747
+ const rightDelta = window.innerWidth - triggerRect.right - right;
4748
+ const minContentWidth = triggerRect.width + rightDelta;
4749
+ const contentWidth = Math.max(minContentWidth, contentRect.width);
4750
+ const leftEdge = window.innerWidth - CONTENT_MARGIN;
4751
+ const clampedRight = clamp(right, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, leftEdge - contentWidth)]);
4752
+ contentWrapper.style.minWidth = minContentWidth + "px";
4753
+ contentWrapper.style.right = clampedRight + "px";
4754
+ }
4755
+ const items = getItems();
4756
+ const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;
4757
+ const itemsHeight = viewport.scrollHeight;
4758
+ const contentStyles = window.getComputedStyle(content);
4759
+ const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);
4760
+ const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);
4761
+ const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);
4762
+ const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);
4763
+ const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth;
4764
+ const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);
4765
+ const viewportStyles = window.getComputedStyle(viewport);
4766
+ const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);
4767
+ const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);
4768
+ const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - CONTENT_MARGIN;
4769
+ const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;
4770
+ const selectedItemHalfHeight = selectedItem.offsetHeight / 2;
4771
+ const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;
4772
+ const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;
4773
+ const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;
4774
+ if (contentTopToItemMiddle <= topEdgeToTriggerMiddle) {
4775
+ const isLastItem = items.length > 0 && selectedItem === items[items.length - 1].ref.current;
4776
+ contentWrapper.style.bottom = "0px";
4777
+ const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;
4778
+ const height = contentTopToItemMiddle + Math.max(triggerMiddleToBottomEdge, selectedItemHalfHeight + (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth);
4779
+ contentWrapper.style.height = height + "px";
4780
+ } else {
4781
+ const isFirstItem = items.length > 0 && selectedItem === items[0].ref.current;
4782
+ contentWrapper.style.top = "0px";
4783
+ const height = Math.max(topEdgeToTriggerMiddle, contentBorderTopWidth + viewport.offsetTop + (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight) + itemMiddleToContentBottom;
4784
+ contentWrapper.style.height = height + "px";
4785
+ viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;
4786
+ }
4787
+ contentWrapper.style.margin = `${CONTENT_MARGIN}px 0`;
4788
+ contentWrapper.style.minHeight = minContentHeight + "px";
4789
+ contentWrapper.style.maxHeight = availableHeight + "px";
4790
+ onPlaced?.();
4791
+ requestAnimationFrame(() => shouldExpandOnScrollRef.current = true);
4792
+ }
4793
+ }, [
4794
+ getItems,
4795
+ context.trigger,
4796
+ context.valueNode,
4797
+ contentWrapper,
4798
+ content,
4799
+ viewport,
4800
+ selectedItem,
4801
+ selectedItemText,
4802
+ context.dir,
4803
+ onPlaced
4804
+ ]);
4805
+ useLayoutEffect2(() => position(), [position]);
4806
+ const [contentZIndex, setContentZIndex] = React$1.useState();
4807
+ useLayoutEffect2(() => {
4808
+ if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
4809
+ }, [content]);
4810
+ return /* @__PURE__ */ jsx(SelectViewportProvider, {
4811
+ scope: __scopeSelect,
4812
+ contentWrapper,
4813
+ shouldExpandOnScrollRef,
4814
+ onScrollButtonChange: React$1.useCallback((node) => {
4815
+ if (node && shouldRepositionRef.current === true) {
4816
+ position();
4817
+ focusSelectedItem?.();
4818
+ shouldRepositionRef.current = false;
4819
+ }
4820
+ }, [position, focusSelectedItem]),
4821
+ children: /* @__PURE__ */ jsx("div", {
4822
+ ref: setContentWrapper,
4823
+ style: {
4824
+ display: "flex",
4825
+ flexDirection: "column",
4826
+ position: "fixed",
4827
+ zIndex: contentZIndex
4828
+ },
4829
+ children: /* @__PURE__ */ jsx(Primitive.div, {
4830
+ ...popperProps,
4831
+ ref: composedRefs,
4832
+ style: {
4833
+ boxSizing: "border-box",
4834
+ maxHeight: "100%",
4835
+ ...popperProps.style
4836
+ }
4837
+ })
4838
+ })
4839
+ });
4840
+ });
4841
+ SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
4842
+ var POPPER_POSITION_NAME = "SelectPopperPosition";
4843
+ var SelectPopperPosition = React$1.forwardRef((props, forwardedRef) => {
4844
+ const { __scopeSelect, align = "start", collisionPadding = CONTENT_MARGIN, ...popperProps } = props;
4845
+ return /* @__PURE__ */ jsx(Content$2, {
4846
+ ...usePopperScope(__scopeSelect),
4847
+ ...popperProps,
4848
+ ref: forwardedRef,
4849
+ align,
4850
+ collisionPadding,
4851
+ style: {
4852
+ boxSizing: "border-box",
4853
+ ...popperProps.style,
4854
+ "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
4855
+ "--radix-select-content-available-width": "var(--radix-popper-available-width)",
4856
+ "--radix-select-content-available-height": "var(--radix-popper-available-height)",
4857
+ "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
4858
+ "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
4859
+ }
4860
+ });
4861
+ });
4862
+ SelectPopperPosition.displayName = POPPER_POSITION_NAME;
4863
+ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$1, {});
4864
+ var VIEWPORT_NAME = "SelectViewport";
4865
+ var SelectViewport = React$1.forwardRef((props, forwardedRef) => {
4866
+ const { __scopeSelect, nonce, ...viewportProps } = props;
4867
+ const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
4868
+ const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
4869
+ const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
4870
+ const prevScrollTopRef = React$1.useRef(0);
4871
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("style", {
4872
+ dangerouslySetInnerHTML: { __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}` },
4873
+ nonce
4874
+ }), /* @__PURE__ */ jsx(Collection$1.Slot, {
4875
+ scope: __scopeSelect,
4876
+ children: /* @__PURE__ */ jsx(Primitive.div, {
4877
+ "data-radix-select-viewport": "",
4878
+ role: "presentation",
4879
+ ...viewportProps,
4880
+ ref: composedRefs,
4881
+ style: {
4882
+ position: "relative",
4883
+ flex: 1,
4884
+ overflow: "hidden auto",
4885
+ ...viewportProps.style
4886
+ },
4887
+ onScroll: composeEventHandlers(viewportProps.onScroll, (event) => {
4888
+ const viewport = event.currentTarget;
4889
+ const { contentWrapper, shouldExpandOnScrollRef } = viewportContext;
4890
+ if (shouldExpandOnScrollRef?.current && contentWrapper) {
4891
+ const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);
4892
+ if (scrolledBy > 0) {
4893
+ const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;
4894
+ const cssMinHeight = parseFloat(contentWrapper.style.minHeight);
4895
+ const cssHeight = parseFloat(contentWrapper.style.height);
4896
+ const prevHeight = Math.max(cssMinHeight, cssHeight);
4897
+ if (prevHeight < availableHeight) {
4898
+ const nextHeight = prevHeight + scrolledBy;
4899
+ const clampedNextHeight = Math.min(availableHeight, nextHeight);
4900
+ const heightDiff = nextHeight - clampedNextHeight;
4901
+ contentWrapper.style.height = clampedNextHeight + "px";
4902
+ if (contentWrapper.style.bottom === "0px") {
4903
+ viewport.scrollTop = heightDiff > 0 ? heightDiff : 0;
4904
+ contentWrapper.style.justifyContent = "flex-end";
4905
+ }
4906
+ }
4907
+ }
4908
+ }
4909
+ prevScrollTopRef.current = viewport.scrollTop;
4910
+ })
4911
+ })
4912
+ })] });
4913
+ });
4914
+ SelectViewport.displayName = VIEWPORT_NAME;
4915
+ var GROUP_NAME = "SelectGroup";
4916
+ var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
4917
+ var SelectGroup = React$1.forwardRef((props, forwardedRef) => {
4918
+ const { __scopeSelect, ...groupProps } = props;
4919
+ const groupId = useId$1();
4920
+ return /* @__PURE__ */ jsx(SelectGroupContextProvider, {
4921
+ scope: __scopeSelect,
4922
+ id: groupId,
4923
+ children: /* @__PURE__ */ jsx(Primitive.div, {
4924
+ role: "group",
4925
+ "aria-labelledby": groupId,
4926
+ ...groupProps,
4927
+ ref: forwardedRef
4928
+ })
4929
+ });
4930
+ });
4931
+ SelectGroup.displayName = GROUP_NAME;
4932
+ var LABEL_NAME = "SelectLabel";
4933
+ var SelectLabel = React$1.forwardRef((props, forwardedRef) => {
4934
+ const { __scopeSelect, ...labelProps } = props;
4935
+ const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
4936
+ return /* @__PURE__ */ jsx(Primitive.div, {
4937
+ id: groupContext.id,
4938
+ ...labelProps,
4939
+ ref: forwardedRef
4940
+ });
4941
+ });
4942
+ SelectLabel.displayName = LABEL_NAME;
4943
+ var ITEM_NAME$2 = "SelectItem";
4944
+ var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$2);
4945
+ var SelectItem$1 = React$1.forwardRef((props, forwardedRef) => {
4946
+ const { __scopeSelect, value, disabled = false, textValue: textValueProp, ...itemProps } = props;
4947
+ const context = useSelectContext(ITEM_NAME$2, __scopeSelect);
4948
+ const contentContext = useSelectContentContext(ITEM_NAME$2, __scopeSelect);
4949
+ const isSelected = context.value === value;
4950
+ const [textValue, setTextValue] = React$1.useState(textValueProp ?? "");
4951
+ const [isFocused, setIsFocused] = React$1.useState(false);
4952
+ const composedRefs = useComposedRefs(forwardedRef, (node) => contentContext.itemRefCallback?.(node, value, disabled));
4953
+ const textId = useId$1();
4954
+ const pointerTypeRef = React$1.useRef("touch");
4955
+ const handleSelect = () => {
4956
+ if (!disabled) {
4957
+ context.onValueChange(value);
4958
+ context.onOpenChange(false);
4959
+ }
4960
+ };
4961
+ return /* @__PURE__ */ jsx(SelectItemContextProvider, {
4962
+ scope: __scopeSelect,
4963
+ value,
4964
+ disabled,
4965
+ textId,
4966
+ isSelected,
4967
+ onItemTextChange: React$1.useCallback((node) => {
4968
+ setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
4969
+ }, []),
4970
+ children: /* @__PURE__ */ jsx(Collection$1.ItemSlot, {
4971
+ scope: __scopeSelect,
4972
+ value,
4973
+ disabled,
4974
+ textValue,
4975
+ children: /* @__PURE__ */ jsx(Primitive.div, {
4976
+ role: "option",
4977
+ "aria-labelledby": textId,
4978
+ "data-highlighted": isFocused ? "" : void 0,
4979
+ "aria-selected": isSelected && isFocused,
4980
+ "data-state": isSelected ? "checked" : "unchecked",
4981
+ "aria-disabled": disabled || void 0,
4982
+ "data-disabled": disabled ? "" : void 0,
4983
+ tabIndex: disabled ? void 0 : -1,
4984
+ ...itemProps,
4985
+ ref: composedRefs,
4986
+ onFocus: composeEventHandlers(itemProps.onFocus, () => setIsFocused(true)),
4987
+ onBlur: composeEventHandlers(itemProps.onBlur, () => setIsFocused(false)),
4988
+ onClick: composeEventHandlers(itemProps.onClick, () => {
4989
+ if (pointerTypeRef.current !== "mouse") handleSelect();
4990
+ }),
4991
+ onPointerUp: composeEventHandlers(itemProps.onPointerUp, () => {
4992
+ if (pointerTypeRef.current === "mouse") handleSelect();
4993
+ }),
4994
+ onPointerDown: composeEventHandlers(itemProps.onPointerDown, (event) => {
4995
+ pointerTypeRef.current = event.pointerType;
4996
+ }),
4997
+ onPointerMove: composeEventHandlers(itemProps.onPointerMove, (event) => {
4998
+ pointerTypeRef.current = event.pointerType;
4999
+ if (disabled) contentContext.onItemLeave?.();
5000
+ else if (pointerTypeRef.current === "mouse") event.currentTarget.focus({ preventScroll: true });
5001
+ }),
5002
+ onPointerLeave: composeEventHandlers(itemProps.onPointerLeave, (event) => {
5003
+ if (event.currentTarget === document.activeElement) contentContext.onItemLeave?.();
5004
+ }),
5005
+ onKeyDown: composeEventHandlers(itemProps.onKeyDown, (event) => {
5006
+ if (contentContext.searchRef?.current !== "" && event.key === " ") return;
5007
+ if (SELECTION_KEYS.includes(event.key)) handleSelect();
5008
+ if (event.key === " ") event.preventDefault();
5009
+ })
5010
+ })
5011
+ })
5012
+ });
5013
+ });
5014
+ SelectItem$1.displayName = ITEM_NAME$2;
5015
+ var ITEM_TEXT_NAME = "SelectItemText";
5016
+ var SelectItemText = React$1.forwardRef((props, forwardedRef) => {
5017
+ const { __scopeSelect, className, style, ...itemTextProps } = props;
5018
+ const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
5019
+ const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
5020
+ const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
5021
+ const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
5022
+ const [itemTextNode, setItemTextNode] = React$1.useState(null);
5023
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setItemTextNode(node), itemContext.onItemTextChange, (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled));
5024
+ const textContent = itemTextNode?.textContent;
5025
+ const nativeOption = React$1.useMemo(() => /* @__PURE__ */ jsx("option", {
5026
+ value: itemContext.value,
5027
+ disabled: itemContext.disabled,
5028
+ children: textContent
5029
+ }, itemContext.value), [
5030
+ itemContext.disabled,
5031
+ itemContext.value,
5032
+ textContent
5033
+ ]);
5034
+ const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
5035
+ useLayoutEffect2(() => {
5036
+ onNativeOptionAdd(nativeOption);
5037
+ return () => onNativeOptionRemove(nativeOption);
5038
+ }, [
5039
+ onNativeOptionAdd,
5040
+ onNativeOptionRemove,
5041
+ nativeOption
5042
+ ]);
5043
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Primitive.span, {
5044
+ id: itemContext.textId,
5045
+ ...itemTextProps,
5046
+ ref: composedRefs
5047
+ }), itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren && !shouldShowPlaceholder(context.value) ? ReactDOM$1.createPortal(itemTextProps.children, context.valueNode) : null] });
5048
+ });
5049
+ SelectItemText.displayName = ITEM_TEXT_NAME;
5050
+ var ITEM_INDICATOR_NAME = "SelectItemIndicator";
5051
+ var SelectItemIndicator = React$1.forwardRef((props, forwardedRef) => {
5052
+ const { __scopeSelect, ...itemIndicatorProps } = props;
5053
+ return useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect).isSelected ? /* @__PURE__ */ jsx(Primitive.span, {
5054
+ "aria-hidden": true,
5055
+ ...itemIndicatorProps,
5056
+ ref: forwardedRef
5057
+ }) : null;
5058
+ });
5059
+ SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
5060
+ var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
5061
+ var SelectScrollUpButton$1 = React$1.forwardRef((props, forwardedRef) => {
5062
+ const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
5063
+ const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
5064
+ const [canScrollUp, setCanScrollUp] = React$1.useState(false);
5065
+ const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
5066
+ useLayoutEffect2(() => {
5067
+ if (contentContext.viewport && contentContext.isPositioned) {
5068
+ let handleScroll2 = function() {
5069
+ setCanScrollUp(viewport.scrollTop > 0);
5070
+ };
5071
+ const viewport = contentContext.viewport;
5072
+ handleScroll2();
5073
+ viewport.addEventListener("scroll", handleScroll2);
5074
+ return () => viewport.removeEventListener("scroll", handleScroll2);
5075
+ }
5076
+ }, [contentContext.viewport, contentContext.isPositioned]);
5077
+ return canScrollUp ? /* @__PURE__ */ jsx(SelectScrollButtonImpl, {
5078
+ ...props,
5079
+ ref: composedRefs,
5080
+ onAutoScroll: () => {
5081
+ const { viewport, selectedItem } = contentContext;
5082
+ if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;
5083
+ }
5084
+ }) : null;
5085
+ });
5086
+ SelectScrollUpButton$1.displayName = SCROLL_UP_BUTTON_NAME;
5087
+ var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton";
5088
+ var SelectScrollDownButton$1 = React$1.forwardRef((props, forwardedRef) => {
5089
+ const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
5090
+ const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
5091
+ const [canScrollDown, setCanScrollDown] = React$1.useState(false);
5092
+ const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
5093
+ useLayoutEffect2(() => {
5094
+ if (contentContext.viewport && contentContext.isPositioned) {
5095
+ let handleScroll2 = function() {
5096
+ const maxScroll = viewport.scrollHeight - viewport.clientHeight;
5097
+ setCanScrollDown(Math.ceil(viewport.scrollTop) < maxScroll);
5098
+ };
5099
+ const viewport = contentContext.viewport;
5100
+ handleScroll2();
5101
+ viewport.addEventListener("scroll", handleScroll2);
5102
+ return () => viewport.removeEventListener("scroll", handleScroll2);
5103
+ }
5104
+ }, [contentContext.viewport, contentContext.isPositioned]);
5105
+ return canScrollDown ? /* @__PURE__ */ jsx(SelectScrollButtonImpl, {
5106
+ ...props,
5107
+ ref: composedRefs,
5108
+ onAutoScroll: () => {
5109
+ const { viewport, selectedItem } = contentContext;
5110
+ if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;
5111
+ }
5112
+ }) : null;
5113
+ });
5114
+ SelectScrollDownButton$1.displayName = SCROLL_DOWN_BUTTON_NAME;
5115
+ var SelectScrollButtonImpl = React$1.forwardRef((props, forwardedRef) => {
5116
+ const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
5117
+ const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
5118
+ const autoScrollTimerRef = React$1.useRef(null);
5119
+ const getItems = useCollection$1(__scopeSelect);
5120
+ const clearAutoScrollTimer = React$1.useCallback(() => {
5121
+ if (autoScrollTimerRef.current !== null) {
5122
+ window.clearInterval(autoScrollTimerRef.current);
5123
+ autoScrollTimerRef.current = null;
5124
+ }
5125
+ }, []);
5126
+ React$1.useEffect(() => {
5127
+ return () => clearAutoScrollTimer();
5128
+ }, [clearAutoScrollTimer]);
5129
+ useLayoutEffect2(() => {
5130
+ getItems().find((item) => item.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
5131
+ }, [getItems]);
5132
+ return /* @__PURE__ */ jsx(Primitive.div, {
5133
+ "aria-hidden": true,
5134
+ ...scrollIndicatorProps,
5135
+ ref: forwardedRef,
5136
+ style: {
5137
+ flexShrink: 0,
5138
+ ...scrollIndicatorProps.style
5139
+ },
5140
+ onPointerDown: composeEventHandlers(scrollIndicatorProps.onPointerDown, () => {
5141
+ if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);
5142
+ }),
5143
+ onPointerMove: composeEventHandlers(scrollIndicatorProps.onPointerMove, () => {
5144
+ contentContext.onItemLeave?.();
5145
+ if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);
5146
+ }),
5147
+ onPointerLeave: composeEventHandlers(scrollIndicatorProps.onPointerLeave, () => {
5148
+ clearAutoScrollTimer();
5149
+ })
5150
+ });
5151
+ });
5152
+ var SEPARATOR_NAME = "SelectSeparator";
5153
+ var SelectSeparator = React$1.forwardRef((props, forwardedRef) => {
5154
+ const { __scopeSelect, ...separatorProps } = props;
5155
+ return /* @__PURE__ */ jsx(Primitive.div, {
5156
+ "aria-hidden": true,
5157
+ ...separatorProps,
5158
+ ref: forwardedRef
5159
+ });
5160
+ });
5161
+ SelectSeparator.displayName = SEPARATOR_NAME;
5162
+ var ARROW_NAME = "SelectArrow";
5163
+ var SelectArrow = React$1.forwardRef((props, forwardedRef) => {
5164
+ const { __scopeSelect, ...arrowProps } = props;
5165
+ const popperScope = usePopperScope(__scopeSelect);
5166
+ return useSelectContentContext(ARROW_NAME, __scopeSelect).position === "popper" ? /* @__PURE__ */ jsx(Arrow, {
5167
+ ...popperScope,
5168
+ ...arrowProps,
5169
+ ref: forwardedRef
5170
+ }) : null;
5171
+ });
5172
+ SelectArrow.displayName = ARROW_NAME;
5173
+ var BUBBLE_INPUT_NAME$1 = "SelectBubbleInput";
5174
+ var SelectBubbleInput = React$1.forwardRef(({ __scopeSelect, ...props }, forwardedRef) => {
5175
+ const context = useSelectContext(BUBBLE_INPUT_NAME$1, __scopeSelect);
5176
+ const { value, onValueChange, required, disabled, name, autoComplete, form } = context;
5177
+ const { nativeOptions, nativeSelectKey } = context;
5178
+ const ref = React$1.useRef(null);
5179
+ const composedRefs = useComposedRefs(forwardedRef, ref);
5180
+ const selectValue = value ?? "";
5181
+ const prevValue = usePrevious(selectValue);
5182
+ const hasEmptyValueOption = Array.from(nativeOptions).some((option) => (option.props.value ?? "") === "");
5183
+ React$1.useEffect(() => {
5184
+ const select = ref.current;
5185
+ if (!select) return;
5186
+ const selectProto = window.HTMLSelectElement.prototype;
5187
+ const setValue = Object.getOwnPropertyDescriptor(selectProto, "value").set;
5188
+ if (prevValue !== selectValue && setValue) {
5189
+ const event = new Event("change", { bubbles: true });
5190
+ setValue.call(select, selectValue);
5191
+ select.dispatchEvent(event);
5192
+ }
5193
+ }, [prevValue, selectValue]);
5194
+ return /* @__PURE__ */ jsxs(Primitive.select, {
5195
+ "aria-hidden": true,
5196
+ required,
5197
+ tabIndex: -1,
5198
+ name,
5199
+ autoComplete,
5200
+ disabled,
5201
+ form,
5202
+ onChange: (event) => onValueChange(event.target.value),
5203
+ ...props,
5204
+ style: {
5205
+ ...VISUALLY_HIDDEN_STYLES,
5206
+ ...props.style
5207
+ },
5208
+ ref: composedRefs,
5209
+ defaultValue: selectValue,
5210
+ children: [shouldShowPlaceholder(value) && !hasEmptyValueOption ? /* @__PURE__ */ jsx("option", { value: "" }) : null, Array.from(nativeOptions)]
5211
+ }, nativeSelectKey);
5212
+ });
5213
+ SelectBubbleInput.displayName = BUBBLE_INPUT_NAME$1;
5214
+ function isFunction$1(value) {
5215
+ return typeof value === "function";
5216
+ }
5217
+ function shouldShowPlaceholder(value) {
5218
+ return value === "" || value === void 0;
5219
+ }
5220
+ function useTypeaheadSearch(onSearchChange) {
5221
+ const handleSearchChange = useCallbackRef(onSearchChange);
5222
+ const searchRef = React$1.useRef("");
5223
+ const timerRef = React$1.useRef(0);
5224
+ const handleTypeaheadSearch = React$1.useCallback((key) => {
5225
+ const search = searchRef.current + key;
5226
+ handleSearchChange(search);
5227
+ (function updateSearch(value) {
5228
+ searchRef.current = value;
5229
+ window.clearTimeout(timerRef.current);
5230
+ if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
5231
+ })(search);
5232
+ }, [handleSearchChange]);
5233
+ const resetTypeahead = React$1.useCallback(() => {
5234
+ searchRef.current = "";
5235
+ window.clearTimeout(timerRef.current);
5236
+ }, []);
5237
+ React$1.useEffect(() => {
5238
+ return () => window.clearTimeout(timerRef.current);
5239
+ }, []);
5240
+ return [
5241
+ searchRef,
5242
+ handleTypeaheadSearch,
5243
+ resetTypeahead
5244
+ ];
5245
+ }
5246
+ function findNextItem(items, search, currentItem) {
5247
+ const normalizedSearch = search.length > 1 && Array.from(search).every((char) => char === search[0]) ? search[0] : search;
5248
+ const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;
5249
+ let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));
5250
+ if (normalizedSearch.length === 1) wrappedItems = wrappedItems.filter((v) => v !== currentItem);
5251
+ const nextItem = wrappedItems.find((item) => item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase()));
5252
+ return nextItem !== currentItem ? nextItem : void 0;
5253
+ }
5254
+ function wrapArray(array, startIndex) {
5255
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
5256
+ }
5257
+ //#endregion
5258
+ //#region ../ui/src/select.tsx
5259
+ function Select({ ...props }) {
5260
+ return /* @__PURE__ */ jsx(Select$1, {
5261
+ "data-slot": "select",
5262
+ ...props
5263
+ });
5264
+ }
5265
+ function SelectValue({ ...props }) {
5266
+ return /* @__PURE__ */ jsx(SelectValue$1, {
5267
+ "data-slot": "select-value",
5268
+ ...props
5269
+ });
5270
+ }
5271
+ function SelectTrigger({ className, size = "default", children, disabled, "aria-describedby": ariaDescribedBy, ...props }) {
5272
+ const readiness = useControlReadiness(disabled);
5273
+ const describedBy = useFieldDescribedBy(props.id, ariaDescribedBy);
5274
+ return /* @__PURE__ */ jsxs(SelectTrigger$1, {
5275
+ "data-slot": "select-trigger",
5276
+ "data-size": size,
5277
+ className: cn$1(fieldTriggerClassName, "data-[placeholder]:text-muted-foreground w-fit max-w-full data-[size=default]:h-[var(--field-height)] data-[size=sm]:h-[2rem] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:min-w-0 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2", className),
5278
+ ...props,
5279
+ "aria-describedby": describedBy,
5280
+ ...readiness,
5281
+ children: [children, /* @__PURE__ */ jsx(SelectIcon, {
5282
+ asChild: true,
5283
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 opacity-50" })
5284
+ })]
5285
+ });
5286
+ }
5287
+ function SelectContent({ className, children, position = "popper", ...props }) {
5288
+ return /* @__PURE__ */ jsx(SelectPortal, {
5289
+ container: usePortalContainer(),
5290
+ children: /* @__PURE__ */ jsxs(SelectContent$1, {
5291
+ "data-slot": "select-content",
5292
+ className: cn$1("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-[100] max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--item-radius)] border border-border/60 shadow-md", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
5293
+ position,
5294
+ ...props,
5295
+ children: [
5296
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
5297
+ /* @__PURE__ */ jsx(SelectViewport, {
5298
+ className: cn$1("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
5299
+ children
5300
+ }),
5301
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
5302
+ ]
5303
+ })
5304
+ });
5305
+ }
5306
+ function SelectItem({ className, children, ...props }) {
5307
+ return /* @__PURE__ */ jsxs(SelectItem$1, {
5308
+ "data-slot": "select-item",
5309
+ className: cn$1(`[&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full items-center gap-2 rounded-[var(--item-radius)] py-1.5 pr-8 pl-2 text-sm outline-hidden select-none ${menuItemInteractionClassName} data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`, className),
5310
+ ...props,
5311
+ children: [/* @__PURE__ */ jsx("span", {
5312
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
5313
+ children: /* @__PURE__ */ jsx(SelectItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "size-4" }) })
5314
+ }), /* @__PURE__ */ jsx(SelectItemText, { children })]
5315
+ });
5316
+ }
5317
+ function SelectScrollUpButton({ className, ...props }) {
5318
+ return /* @__PURE__ */ jsx(SelectScrollUpButton$1, {
5319
+ "data-slot": "select-scroll-up-button",
5320
+ className: cn$1("flex cursor-default items-center justify-center py-1", className),
5321
+ ...props,
5322
+ children: /* @__PURE__ */ jsx(ChevronUp, { className: "size-4" })
5323
+ });
5324
+ }
5325
+ function SelectScrollDownButton({ className, ...props }) {
5326
+ return /* @__PURE__ */ jsx(SelectScrollDownButton$1, {
5327
+ "data-slot": "select-scroll-down-button",
5328
+ className: cn$1("flex cursor-default items-center justify-center py-1", className),
5329
+ ...props,
5330
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "size-4" })
5331
+ });
5332
+ }
5333
+ //#endregion
4124
5334
  //#region ../ui/src/textarea.tsx
4125
- const Textarea = React$1.forwardRef(({ className, disabled, ...props }, ref) => {
5335
+ const Textarea = React$1.forwardRef(({ className, disabled, "aria-describedby": ariaDescribedBy, ...props }, ref) => {
4126
5336
  const readiness = useControlReadiness(disabled);
5337
+ const describedBy = useFieldDescribedBy(props.id, ariaDescribedBy);
4127
5338
  return /* @__PURE__ */ jsx("textarea", {
4128
5339
  "data-slot": "textarea",
4129
5340
  className: cn$1(FIELD_TEXTAREA_CLASS, "flex w-full", className),
4130
5341
  ref,
4131
5342
  ...props,
5343
+ "aria-describedby": describedBy,
4132
5344
  ...readiness
4133
5345
  });
4134
5346
  });
@@ -5559,10 +6771,12 @@ var RadioGroupIndicator = React$1.forwardRef((props, forwardedRef) => {
5559
6771
  RadioGroupIndicator.displayName = INDICATOR_NAME2;
5560
6772
  //#endregion
5561
6773
  //#region ../ui/src/radio-group.tsx
5562
- const RadioGroup = React$1.forwardRef(({ className, ...props }, ref) => {
6774
+ const RadioGroup = React$1.forwardRef(({ className, "aria-describedby": ariaDescribedBy, ...props }, ref) => {
6775
+ const describedBy = useFieldDescribedBy(props.id, ariaDescribedBy);
5563
6776
  return /* @__PURE__ */ jsx(RadioGroup$1, {
5564
6777
  className: cn$1("grid gap-2", className),
5565
6778
  ...props,
6779
+ "aria-describedby": describedBy,
5566
6780
  ref
5567
6781
  });
5568
6782
  });
@@ -5571,7 +6785,7 @@ const RadioGroupItem = React$1.forwardRef(({ className, disabled, ...props }, re
5571
6785
  const readiness = useControlReadiness(disabled);
5572
6786
  return /* @__PURE__ */ jsx(RadioGroupItem$1, {
5573
6787
  ref,
5574
- className: cn$1(FIELD_FOCUS_CLASS, "aspect-square size-[1.125rem] rounded-full border border-input bg-field-background text-primary transition-[border-color,box-shadow] focus:outline-none data-[state=checked]:border-primary disabled:cursor-not-allowed disabled:opacity-50", className),
6788
+ className: cn$1(FIELD_FOCUS_CLASS, CHOICE_BORDER_CLASS, "aspect-square size-[1.125rem] rounded-full border bg-field-background text-primary transition-[border-color,box-shadow] focus:outline-none data-[state=checked]:border-primary disabled:cursor-not-allowed disabled:opacity-50", className),
5575
6789
  ...props,
5576
6790
  ...readiness,
5577
6791
  children: /* @__PURE__ */ jsx(RadioGroupIndicator, {
@@ -5582,6 +6796,62 @@ const RadioGroupItem = React$1.forwardRef(({ className, disabled, ...props }, re
5582
6796
  });
5583
6797
  RadioGroupItem.displayName = RadioGroupItem$1.displayName;
5584
6798
  //#endregion
6799
+ //#region ../ui/src/choice-tile-group.tsx
6800
+ /**
6801
+ * The one marker for a chosen option: a green ring and a light green tint.
6802
+ * Tiles and rows that can't be a ChoiceTileGroup (swatches, previews,
6803
+ * thumbnails) add it to their own classes when chosen, through `cn` so the
6804
+ * tint wins over a base hover fill. The tiles below draw the same thing on
6805
+ * `data-[state=checked]`; Tailwind needs both spelled out, so change them
6806
+ * together.
6807
+ */
6808
+ const CHOSEN_OPTION_CLASS = "border-primary bg-primary/5 ring-1 ring-primary hover:bg-primary/10";
6809
+ const TILE_CLASS = [
6810
+ "flex min-h-10 w-full cursor-pointer items-center justify-between gap-2 rounded-md border px-3 py-2 text-left text-xs font-medium leading-4 text-foreground transition-colors",
6811
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
6812
+ "disabled:cursor-not-allowed disabled:opacity-50",
6813
+ "border-border bg-background hover:bg-muted",
6814
+ "data-[state=checked]:border-primary data-[state=checked]:bg-primary/5 data-[state=checked]:ring-1 data-[state=checked]:ring-primary data-[state=checked]:hover:bg-primary/10"
6815
+ ].join(" ");
6816
+ /**
6817
+ * A short single choice drawn as a grid of text tiles, such as a block's
6818
+ * layout. The chosen tile has a green ring, a light tint and a tick, which is
6819
+ * the one way the editor marks "chosen". It's a radio group: Tab reaches the
6820
+ * chosen tile and the arrow keys move between tiles.
6821
+ */
6822
+ function ChoiceTileGroup({ label, options, value, onValueChange, id, describedBy, columns = 2, disabled, className, "data-field-path": fieldPath }) {
6823
+ const readiness = useControlReadiness(disabled);
6824
+ return /* @__PURE__ */ jsx(RadioGroup$1, {
6825
+ id,
6826
+ "aria-label": label,
6827
+ "aria-describedby": useFieldDescribedBy(id, describedBy),
6828
+ "data-field-path": fieldPath,
6829
+ value: value ?? "",
6830
+ onValueChange: (next) => {
6831
+ const chosen = options.find((option) => option.value === next);
6832
+ if (chosen) onValueChange(chosen.value);
6833
+ },
6834
+ ...readiness,
6835
+ className: cn$1("grid gap-2", columns === 2 ? "grid-cols-2" : "grid-cols-1", className),
6836
+ children: options.map((option) => /* @__PURE__ */ jsxs(RadioGroupItem$1, {
6837
+ value: option.value,
6838
+ disabled: option.disabled,
6839
+ className: TILE_CLASS,
6840
+ children: [/* @__PURE__ */ jsx("span", {
6841
+ className: "min-w-0",
6842
+ children: option.label
6843
+ }), /* @__PURE__ */ jsx(RadioGroupIndicator, {
6844
+ asChild: true,
6845
+ children: /* @__PURE__ */ jsx(Check, {
6846
+ className: "size-3.5 shrink-0 text-primary",
6847
+ strokeWidth: 2.5,
6848
+ "aria-hidden": "true"
6849
+ })
6850
+ })]
6851
+ }, option.value))
6852
+ });
6853
+ }
6854
+ //#endregion
5585
6855
  //#region ../site-contracts/src/siteData/eventCheckout.ts
5586
6856
  const uuid = z.string().uuid();
5587
6857
  const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
@@ -9358,7 +10628,7 @@ ${`:where([data-theme-scope="${themeId}"]) :where([data-block="event-calendar"])
9358
10628
  /* Event items - solid style (default) */
9359
10629
  --ec-event-solid-bg: rgb(var(--tb-primary));
9360
10630
  --ec-event-solid-hover-bg: rgb(var(--tb-primary-600, var(--tb-primary)));
9361
- --ec-event-solid-text: rgb(var(--tb-neutral-50, 255 255 255));
10631
+ --ec-event-solid-text: rgb(var(--tb-onPrimary, 255 255 255));
9362
10632
 
9363
10633
  /* Navigation */
9364
10634
  --ec-nav-hover-bg: rgb(var(--tb-text) / 0.1);
@@ -10752,6 +12022,192 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
10752
12022
  } : null;
10753
12023
  }
10754
12024
  //#endregion
12025
+ //#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
12026
+ /**
12027
+ * What a system-managed Event URL actually selected.
12028
+ *
12029
+ * The resolver used to assume that one returned `PublicEvent` meant one
12030
+ * occurrence. A whole-series Event breaks that assumption in two directions: a
12031
+ * parent Event path selects nothing concrete until a run is chosen, and a run
12032
+ * path selects a run whose identity spans every one of its sessions. This
12033
+ * module parses those cases once, so the renderer switches over a closed set of
12034
+ * page states instead of probing booking scopes at render time.
12035
+ *
12036
+ * Everything here is pure. Loading events and resolving run slugs is the
12037
+ * resolver's job; deciding what the page is and which runs the chooser
12038
+ * advertises happens here. When a run is open to join, and where it sits in its
12039
+ * own life, come from `@riverbankcms/core`: the same authority the
12040
+ * public read projection and the write-side run-facts loader use, so a run
12041
+ * cannot report itself open on the storefront and closed at the point of
12042
+ * booking.
12043
+ */
12044
+ function planWholeSeriesParentBooking(eligibleRuns) {
12045
+ const [first, ...rest] = eligibleRuns;
12046
+ return rest.length === 0 ? {
12047
+ kind: "single",
12048
+ run: first
12049
+ } : {
12050
+ kind: "choice",
12051
+ runs: eligibleRuns
12052
+ };
12053
+ }
12054
+ function isOrdinaryPublicEvent(event) {
12055
+ return event.bookingScope === "single_occurrence";
12056
+ }
12057
+ /**
12058
+ * Whether a parent Event page advertises this run.
12059
+ *
12060
+ * Visibility admission belongs to the scoped public read. Active, still-open
12061
+ * admitted runs are advertised, and a run that has started,
12062
+ * finished or been cancelled is informational wherever it appears.
12063
+ *
12064
+ * Capacity is deliberately not consulted (decision A24/A30): a full date is
12065
+ * still one of the dates on offer, and its own page shows the full or waitlist
12066
+ * state that the registration engine decides. Hiding it here would leave a
12067
+ * visitor unable to see that the date exists at all.
12068
+ */
12069
+ function resolveWholeSeriesChooserEligibility(group, now) {
12070
+ const status = group.representative.status;
12071
+ if (status !== void 0 && status !== "active") return {
12072
+ kind: "excluded",
12073
+ reason: "series-not-active"
12074
+ };
12075
+ const phase = resolveWholeSeriesBookingPhase(group.run, now);
12076
+ return phase.kind === "open" ? { kind: "eligible" } : {
12077
+ kind: "excluded",
12078
+ reason: phase.reason
12079
+ };
12080
+ }
12081
+ /**
12082
+ * Runs in the order a visitor reads them: soonest first session first.
12083
+ *
12084
+ * A run with no session left to attend has no place in the sequence, so it
12085
+ * sorts last rather than being given an arbitrary date.
12086
+ */
12087
+ function orderRunsBySchedule(groups) {
12088
+ return [...groups].sort((left, right) => {
12089
+ const leftStart = firstLiveRunSessionStartMs(left.run.sessions);
12090
+ const rightStart = firstLiveRunSessionStartMs(right.run.sessions);
12091
+ if (leftStart === null) return rightStart === null ? 0 : 1;
12092
+ if (rightStart === null) return -1;
12093
+ return leftStart - rightStart;
12094
+ });
12095
+ }
12096
+ function asNonEmpty(groups) {
12097
+ const [first, ...rest] = groups;
12098
+ return first ? [first, ...rest] : null;
12099
+ }
12100
+ /**
12101
+ * What a parent Event path selects.
12102
+ *
12103
+ * The scoped read admits public and unlisted runs for the offering's own page.
12104
+ * The chooser lists the ones still open; when none is, the most recent
12105
+ * admitted run supplies the page's name and copy. Runs from another offering
12106
+ * cannot speak for this page.
12107
+ */
12108
+ function planWholeSeriesParentSelection(input) {
12109
+ const offeringRuns = orderRunsBySchedule(groupPublicEventsByRun(input.events).filter((group) => group.run.eventOfferingId === input.offeringId));
12110
+ const eligibleRuns = asNonEmpty(offeringRuns.filter((group) => resolveWholeSeriesChooserEligibility(group, input.now).kind === "eligible"));
12111
+ if (eligibleRuns) return {
12112
+ kind: "wholeSeriesParent",
12113
+ admittedRuns: offeringRuns,
12114
+ offeringId: input.offeringId,
12115
+ eligibleRuns
12116
+ };
12117
+ const informationalRun = offeringRuns.at(-1);
12118
+ return informationalRun ? {
12119
+ kind: "wholeSeriesParentUnavailable",
12120
+ admittedRuns: offeringRuns,
12121
+ offeringId: input.offeringId,
12122
+ informationalRun,
12123
+ bookingClosedDetail: resolveParentBookingClosedDetail(offeringRuns, input.now)
12124
+ } : null;
12125
+ }
12126
+ /**
12127
+ * What a course page says when none of its runs is bookable.
12128
+ *
12129
+ * A run whose page is up without bookings carries its own reason, so the course
12130
+ * speaks for the runs it has: if any of them was live and has been taken
12131
+ * offline the course is closed for now, and otherwise it is waiting to open. A
12132
+ * course whose runs are simply cancelled, under way or finished carries no
12133
+ * reason at all, and the page keeps the words it already has for that.
12134
+ *
12135
+ * Only a run with a session still to come counts. A run that was paused a year
12136
+ * ago and whose dates have all passed says nothing about the course now, and
12137
+ * letting it speak would tell a visitor that a newly announced run is closed.
12138
+ */
12139
+ function resolveParentBookingClosedDetail(runs, now) {
12140
+ const details = runs.flatMap((group) => {
12141
+ const detail = group.representative.bookingClosedDetail;
12142
+ return detail && hasSessionAhead(group, now) ? [detail] : [];
12143
+ });
12144
+ if (details.length === 0) return null;
12145
+ return details.some((detail) => detail.kind === "paused") ? { kind: "paused" } : { kind: "opensSoon" };
12146
+ }
12147
+ /** Whether the run still has a session a visitor could attend. */
12148
+ function hasSessionAhead(group, now) {
12149
+ return orderedLiveRunSessions(group.run.sessions).some((session) => Date.parse(session.startsAt) > now.getTime());
12150
+ }
12151
+ /** What a targeted run path selects, when the named run projected any data. */
12152
+ function planWholeSeriesRunSelection(input) {
12153
+ const group = groupPublicEventsByRun(input.events).find((candidate) => candidate.eventSeriesId === input.eventSeriesId);
12154
+ if (!group) return null;
12155
+ return {
12156
+ kind: "wholeSeriesRun",
12157
+ offeringId: group.run.eventOfferingId,
12158
+ run: group
12159
+ };
12160
+ }
12161
+ /**
12162
+ * The Event record that speaks for a selection.
12163
+ *
12164
+ * Page metadata, the destination mode and the shared presentation all need one
12165
+ * record; every variant has one, so callers never re-derive it.
12166
+ */
12167
+ function selectionRepresentativeEvent(selection) {
12168
+ switch (selection.kind) {
12169
+ case "occurrence": return selection.event;
12170
+ case "wholeSeriesParent": return selection.eligibleRuns[0].representative;
12171
+ case "wholeSeriesParentUnavailable": return selection.informationalRun.representative;
12172
+ case "wholeSeriesRun": return selection.run.representative;
12173
+ }
12174
+ }
12175
+ /**
12176
+ * Why this page is not taking bookings, when its own state says so.
12177
+ *
12178
+ * A parent course page answers for its runs; everything else answers for the
12179
+ * record the page is about. `null` leaves the booking column exactly as it was.
12180
+ */
12181
+ function resolveSelectionBookingClosedDetail(selection) {
12182
+ switch (selection.kind) {
12183
+ case "occurrence": return selection.event.bookingClosedDetail ?? null;
12184
+ case "wholeSeriesRun": return selection.run.representative.bookingClosedDetail ?? null;
12185
+ case "wholeSeriesParent": return null;
12186
+ case "wholeSeriesParentUnavailable": return selection.bookingClosedDetail;
12187
+ }
12188
+ }
12189
+ function planDropInPanel(selection) {
12190
+ const detail = resolveSelectionBookingClosedDetail(selection);
12191
+ if (detail === null) return { kind: "comeAlong" };
12192
+ switch (detail.kind) {
12193
+ case "opensSoon":
12194
+ case "paused": return { kind: "notRunning" };
12195
+ }
12196
+ }
12197
+ function getPublicEventCanonicalPath(event) {
12198
+ if (event.path) return event.path;
12199
+ return event.destination.kind === "native" ? event.destination.path : null;
12200
+ }
12201
+ function eventOccurrenceContext(event) {
12202
+ return {
12203
+ id: event.occurrenceId,
12204
+ seriesId: event.seriesId,
12205
+ startsAt: event.startsAt,
12206
+ endsAt: event.endsAt,
12207
+ timeZone: event.timeZone
12208
+ };
12209
+ }
12210
+ //#endregion
10755
12211
  //#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
10756
12212
  /**
10757
12213
  * Whether a public event has a registration path a visitor can take.
@@ -11787,7 +13243,7 @@ function TerminalPanel({ tone, title, titleAs: Title = "h3", body, secondaryBody
11787
13243
  function slotClasses(slot, classPrefix, emitSharedClasses) {
11788
13244
  return [emitSharedClasses ? `rb-${slot}` : null, classPrefix ? `${classPrefix}-${slot}` : null].filter((name) => name !== null).join(" ");
11789
13245
  }
11790
- function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emitSharedClasses }) {
13246
+ function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emitSharedClasses, labelAs: Label = "span" }) {
11791
13247
  const slot = (name) => slotClasses(name, classPrefix, emitSharedClasses);
11792
13248
  const current = Math.min(Math.max(currentStep, 1), Math.max(totalSteps, 1));
11793
13249
  const label = stepLabels?.[current - 1];
@@ -11797,7 +13253,7 @@ function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emi
11797
13253
  className: slot("progress"),
11798
13254
  children: [/* @__PURE__ */ jsxs("div", {
11799
13255
  className: slot("progress__head"),
11800
- children: [label ? /* @__PURE__ */ jsx("span", {
13256
+ children: [label ? /* @__PURE__ */ jsx(Label, {
11801
13257
  className: slot("progress__label"),
11802
13258
  "aria-current": "step",
11803
13259
  children: label
@@ -12154,6 +13610,10 @@ function EventCardContent(props) {
12154
13610
  children: props.title
12155
13611
  })
12156
13612
  }),
13613
+ /* @__PURE__ */ jsx(EventQuickFacts, {
13614
+ facts: event.facts,
13615
+ context: "card"
13616
+ }),
12157
13617
  /* @__PURE__ */ jsx("div", {
12158
13618
  ...listLookSlot(props, "item-meta"),
12159
13619
  className: "rb-mb-2 rb-caption",
@@ -12372,30 +13832,37 @@ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, s
12372
13832
  className: "event-compact-row-body",
12373
13833
  children: [/* @__PURE__ */ jsxs("div", {
12374
13834
  className: "event-compact-row-content",
12375
- children: [/* @__PURE__ */ jsx("h3", {
12376
- className: "event-compact-row-title",
12377
- children: /* @__PURE__ */ jsx("a", {
12378
- className: "event-title-link",
12379
- ...resolveEventLinkProps(event),
12380
- children: event.title
12381
- })
12382
- }), /* @__PURE__ */ jsxs("div", {
12383
- className: "event-compact-row-meta",
12384
- children: [
12385
- showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
12386
- className: "event-compact-row-venue",
12387
- children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
12388
- }),
12389
- teacherLine && /* @__PURE__ */ jsx("span", {
12390
- className: "event-compact-row-teacher",
12391
- children: teacherLine
12392
- }),
12393
- /* @__PURE__ */ jsx("span", {
12394
- className: "event-compact-row-price",
12395
- children: price
13835
+ children: [
13836
+ /* @__PURE__ */ jsx("h3", {
13837
+ className: "event-compact-row-title",
13838
+ children: /* @__PURE__ */ jsx("a", {
13839
+ className: "event-title-link",
13840
+ ...resolveEventLinkProps(event),
13841
+ children: event.title
12396
13842
  })
12397
- ]
12398
- })]
13843
+ }),
13844
+ /* @__PURE__ */ jsx(EventQuickFacts, {
13845
+ facts: event.facts,
13846
+ context: "card"
13847
+ }),
13848
+ /* @__PURE__ */ jsxs("div", {
13849
+ className: "event-compact-row-meta",
13850
+ children: [
13851
+ showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
13852
+ className: "event-compact-row-venue",
13853
+ children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
13854
+ }),
13855
+ teacherLine && /* @__PURE__ */ jsx("span", {
13856
+ className: "event-compact-row-teacher",
13857
+ children: teacherLine
13858
+ }),
13859
+ /* @__PURE__ */ jsx("span", {
13860
+ className: "event-compact-row-price",
13861
+ children: price
13862
+ })
13863
+ ]
13864
+ })
13865
+ ]
12399
13866
  }), /* @__PURE__ */ jsxs("div", {
12400
13867
  className: "event-compact-row-action",
12401
13868
  children: [/* @__PURE__ */ jsxs("span", {
@@ -12572,6 +14039,17 @@ function OfferingTitle({ className, path, title }) {
12572
14039
  });
12573
14040
  }
12574
14041
  //#endregion
14042
+ //#region ../blocks/src/system/transforms/registry/eventRegistrationPageKind.ts
14043
+ const eventRegistrationPageReadAdmission = {
14044
+ id: "events.registrationPageReadAdmission",
14045
+ kind: "formatter",
14046
+ summary: "Read booking-page runs on their own page; retain full-page subject admission",
14047
+ run(value, _options, context) {
14048
+ if (context.data?.pageKind === "bookingPage") return "own-page";
14049
+ return asPartialObject(asPartialObject(value)?.subject)?.detailAdmission === "own-page" ? "own-page" : void 0;
14050
+ }
14051
+ };
14052
+ //#endregion
12575
14053
  //#region ../blocks/src/system/transforms/registry/offeringsPreview.ts
12576
14054
  /** Reuse the existing occurrence read for the date strip and card date rows. */
12577
14055
  const offeringsPreviewDatesReadEnabled = {
@@ -12967,6 +14445,194 @@ function sectionFallbackBackground(token) {
12967
14445
  color: token
12968
14446
  };
12969
14447
  }
14448
+ //#endregion
14449
+ //#region ../blocks/src/contracts/booking-policy.ts
14450
+ function describePublicRefundPolicy(refunds) {
14451
+ const refundDestination = refunds.method === "site_credit" ? "as credit to use with this business" : "to your original payment method";
14452
+ if (refunds.mode === "cutoff" && refunds.cutoffHours === 0) return `Cancel before the booking starts for a full refund ${refundDestination}.`;
14453
+ switch (refunds.mode) {
14454
+ case "always": return `Cancel before the booking starts for a full refund ${refundDestination}.`;
14455
+ case "never": return "Bookings are non-refundable.";
14456
+ case "cutoff": return `Cancel up to ${formatCutoff(refunds.cutoffHours)} before it starts for a full refund ${refundDestination}.`;
14457
+ }
14458
+ }
14459
+ function formatCutoff(cutoffHours) {
14460
+ const hours = Math.max(0, Math.round(cutoffHours));
14461
+ if (hours % 24 === 0) {
14462
+ const days = hours / 24;
14463
+ return `${days} ${days === 1 ? "day" : "days"}`;
14464
+ }
14465
+ return `${hours} ${hours === 1 ? "hour" : "hours"}`;
14466
+ }
14467
+ //#endregion
14468
+ //#region ../blocks/src/system/blocks/appointments/presentation.ts
14469
+ const publicVenueSchema = z.object({
14470
+ name: z.string(),
14471
+ area: z.string().nullable()
14472
+ });
14473
+ const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
14474
+ z.object({ mode: z.literal("online") }),
14475
+ z.object({
14476
+ mode: z.literal("in_person"),
14477
+ venue: publicVenueSchema.nullable()
14478
+ }),
14479
+ z.object({
14480
+ mode: z.literal("either"),
14481
+ venue: publicVenueSchema.nullable()
14482
+ })
14483
+ ]);
14484
+ const publicPricingOptionSchema = z.object({
14485
+ priceAmount: z.number().finite(),
14486
+ isActive: z.boolean(),
14487
+ saleStartsAt: z.string().nullable(),
14488
+ saleEndsAt: z.string().nullable()
14489
+ });
14490
+ const publicAppointmentPricingSchema = z.object({
14491
+ pricingStrategy: z.enum([
14492
+ "free",
14493
+ "single",
14494
+ "tiered",
14495
+ "sliding_scale"
14496
+ ]),
14497
+ currency: z.string().min(1),
14498
+ singlePriceAmount: z.number().nullable(),
14499
+ slidingMinAmount: z.number().nullable(),
14500
+ slidingMaxAmount: z.number().nullable(),
14501
+ options: z.array(publicPricingOptionSchema).readonly()
14502
+ });
14503
+ function formatAppointmentDuration(durationMinutes) {
14504
+ return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
14505
+ }
14506
+ function formatAppointmentLocation(location) {
14507
+ switch (location.mode) {
14508
+ case "online": return "Online";
14509
+ case "in_person": return formatVenue(location.venue);
14510
+ case "either": {
14511
+ const venue = formatVenue(location.venue);
14512
+ return venue ? `${venue} or online` : "In person or online";
14513
+ }
14514
+ default: return assertNever$1(location);
14515
+ }
14516
+ }
14517
+ function formatVenue(venue) {
14518
+ if (!venue) return null;
14519
+ return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
14520
+ }
14521
+ function formatAppointmentPrice(service) {
14522
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
14523
+ const pricing = service.pricing;
14524
+ if (pricing) {
14525
+ const display = appointmentPricingDisplay(pricing);
14526
+ return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
14527
+ }
14528
+ return formatAmountOrFree(service.priceAmount, service.priceCurrency);
14529
+ }
14530
+ function formatAmountOrFree(amount, currency) {
14531
+ if (amount === null || currency === null) return null;
14532
+ if (amount === 0) return "Free";
14533
+ return formatBookingPriceDisplay({
14534
+ kind: "exact",
14535
+ amount,
14536
+ currency
14537
+ }, { decimals: "auto" });
14538
+ }
14539
+ function appointmentPricingDisplay(pricing) {
14540
+ switch (pricing.pricingStrategy) {
14541
+ case "free": return {
14542
+ kind: "free",
14543
+ currency: pricing.currency
14544
+ };
14545
+ case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
14546
+ case "tiered": return resolvePricingOptionsPriceDisplay({
14547
+ options: pricing.options,
14548
+ currency: pricing.currency,
14549
+ purpose: "available_now"
14550
+ });
14551
+ case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
14552
+ kind: "unavailable",
14553
+ currency: pricing.currency
14554
+ } : {
14555
+ kind: "range",
14556
+ minAmount: pricing.slidingMinAmount,
14557
+ maxAmount: pricing.slidingMaxAmount,
14558
+ currency: pricing.currency
14559
+ };
14560
+ default: return assertNever$1(pricing.pricingStrategy);
14561
+ }
14562
+ }
14563
+ //#endregion
14564
+ //#region ../blocks/src/system/blocks/appointments/serviceDetailsFacts.ts
14565
+ /** Only the facts the details view uses, read from the public service payload. */
14566
+ const serviceDetailsSourceSchema = z.object({
14567
+ durationMinutes: z.number().int().positive(),
14568
+ pricing: publicAppointmentPricingSchema.optional(),
14569
+ priceAmount: z.number().nullable(),
14570
+ priceCurrency: z.string().nullable(),
14571
+ onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
14572
+ location: publicAppointmentLocationSchema,
14573
+ cancellationPolicy: z.object({ refunds: z.object({
14574
+ mode: z.enum([
14575
+ "always",
14576
+ "never",
14577
+ "cutoff"
14578
+ ]),
14579
+ cutoffHours: z.number(),
14580
+ method: z.enum(["original_payment_method", "site_credit"])
14581
+ }) }),
14582
+ practitioners: z.array(z.object({
14583
+ name: z.string(),
14584
+ roleLabel: z.string().nullable().optional()
14585
+ })).optional()
14586
+ });
14587
+ /**
14588
+ * The block reads services the way `getPublicBookingServices` returns them:
14589
+ * the catalogue `{ services }` or a bare list. A code-owned page hands over the
14590
+ * same shape, so both kinds of page show the same facts.
14591
+ */
14592
+ const serviceDetailsDataSchema = z.union([z.array(z.unknown()), z.object({ services: z.array(z.unknown()) }).transform((catalogue) => catalogue.services)]);
14593
+ function serviceDetailsFacts(service) {
14594
+ const price = formatAppointmentPrice(service);
14595
+ const location = formatAppointmentLocation(service.location);
14596
+ const practitioners = service.practitioners ?? [];
14597
+ return [
14598
+ {
14599
+ label: "How long",
14600
+ value: formatAppointmentDuration(service.durationMinutes)
14601
+ },
14602
+ ...price ? [{
14603
+ label: "Price",
14604
+ value: price
14605
+ }] : [],
14606
+ ...location ? [{
14607
+ label: "Where",
14608
+ value: location
14609
+ }] : [],
14610
+ {
14611
+ label: "Cancelling",
14612
+ value: describePublicRefundPolicy(service.cancellationPolicy.refunds)
14613
+ },
14614
+ ...practitioners.length ? [{
14615
+ label: practitioners.length === 1 ? "Practitioner" : "Practitioners",
14616
+ value: practitioners.map((person) => person.roleLabel ? `${person.name}, ${person.roleLabel}` : person.name).join("; ")
14617
+ }] : []
14618
+ ];
14619
+ }
14620
+ /** No facts when the read is missing, failed or doesn't hold exactly one service. */
14621
+ function readServiceDetailsFacts(data) {
14622
+ const services = serviceDetailsDataSchema.safeParse(data);
14623
+ if (!services.success || services.data.length !== 1) return [];
14624
+ const service = serviceDetailsSourceSchema.safeParse(services.data[0]);
14625
+ return service.success ? serviceDetailsFacts(service.data) : [];
14626
+ }
14627
+ //#endregion
14628
+ //#region ../blocks/src/system/transforms/registry/serviceDetails.ts
14629
+ /** The service details block lists these; none means the block has nothing to show. */
14630
+ const serviceDetailsFactsTransform = {
14631
+ id: "appointments.serviceDetailsFacts",
14632
+ kind: "collection",
14633
+ summary: "Read the facts shown for one appointment service",
14634
+ run: (value) => readServiceDetailsFacts(value)
14635
+ };
12970
14636
  const eventCalendarSelectionParam = {
12971
14637
  id: "events.calendarSelectionParam",
12972
14638
  kind: "formatter",
@@ -13011,6 +14677,7 @@ const eventCalendarReadEnabled = {
13011
14677
  }
13012
14678
  };
13013
14679
  const defaultTransforms = createTransformRegistry([
14680
+ eventRegistrationPageReadAdmission,
13014
14681
  offeringsPreviewDatesReadEnabled,
13015
14682
  lookLeadSlotTransform,
13016
14683
  lookQuoteLimitTransform,
@@ -13054,7 +14721,8 @@ const defaultTransforms = createTransformRegistry([
13054
14721
  ...boxStylesTransforms,
13055
14722
  ...contentTransforms,
13056
14723
  ...headerRuntimeTransforms,
13057
- mapDrawingStyleTransform
14724
+ mapDrawingStyleTransform,
14725
+ serviceDetailsFactsTransform
13058
14726
  ]);
13059
14727
  //#endregion
13060
14728
  //#region ../blocks/src/system/runtime/nodes/carousel.shared.ts
@@ -13506,8 +15174,10 @@ const GridNode = (props) => /* @__PURE__ */ jsx(Grid, { ...props });
13506
15174
  const DivNode = (props) => /* @__PURE__ */ jsx("div", { ...props });
13507
15175
  const FigureNode = (props) => /* @__PURE__ */ jsx("figure", { ...props });
13508
15176
  const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
15177
+ const UnorderedListNode = (props) => /* @__PURE__ */ jsx("ul", { ...props });
13509
15178
  const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
13510
15179
  const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
15180
+ const DescriptionListNode = (props) => /* @__PURE__ */ jsx("dl", { ...props });
13511
15181
  //#endregion
13512
15182
  //#region ../blocks/src/primitives/content/components/Text.tsx
13513
15183
  function Text({ as: Comp = "span", children, className = "", path, style, "data-slot": dataSlot, "data-surface": dataSurface, maxLength: _maxLength }) {
@@ -14660,40 +16330,6 @@ function ListGroup({ presentation, title, intro, Heading, sectionProps, children
14660
16330
  }
14661
16331
  //#endregion
14662
16332
  //#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
14663
- const publicVenueSchema = z.object({
14664
- name: z.string(),
14665
- area: z.string().nullable()
14666
- });
14667
- const publicLocationSchema = z.discriminatedUnion("mode", [
14668
- z.object({ mode: z.literal("online") }),
14669
- z.object({
14670
- mode: z.literal("in_person"),
14671
- venue: publicVenueSchema.nullable()
14672
- }),
14673
- z.object({
14674
- mode: z.literal("either"),
14675
- venue: publicVenueSchema.nullable()
14676
- })
14677
- ]);
14678
- const publicPricingOptionSchema = z.object({
14679
- priceAmount: z.number().finite(),
14680
- isActive: z.boolean(),
14681
- saleStartsAt: z.string().nullable(),
14682
- saleEndsAt: z.string().nullable()
14683
- });
14684
- const publicPricingSchema = z.object({
14685
- pricingStrategy: z.enum([
14686
- "free",
14687
- "single",
14688
- "tiered",
14689
- "sliding_scale"
14690
- ]),
14691
- currency: z.string().min(1),
14692
- singlePriceAmount: z.number().nullable(),
14693
- slidingMinAmount: z.number().nullable(),
14694
- slidingMaxAmount: z.number().nullable(),
14695
- options: z.array(publicPricingOptionSchema).readonly()
14696
- });
14697
16333
  const publicAppointmentServiceSchema = z.object({
14698
16334
  id: z.string().min(1),
14699
16335
  image: runtimeMediaSchema.nullable().optional(),
@@ -14701,11 +16337,11 @@ const publicAppointmentServiceSchema = z.object({
14701
16337
  title: z.string(),
14702
16338
  description: z.string().nullable().optional(),
14703
16339
  durationMinutes: z.number().int().positive(),
14704
- pricing: publicPricingSchema.optional(),
16340
+ pricing: publicAppointmentPricingSchema.optional(),
14705
16341
  priceAmount: z.number().nullable(),
14706
16342
  priceCurrency: z.string().nullable(),
14707
16343
  onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
14708
- location: publicLocationSchema,
16344
+ location: publicAppointmentLocationSchema,
14709
16345
  categoryId: z.string().nullable().optional().transform((value) => value ?? null)
14710
16346
  });
14711
16347
  const publicServiceCategorySchema = z.object({
@@ -14742,65 +16378,6 @@ function readCategoryFilter(value) {
14742
16378
  const trimmed = value.trim();
14743
16379
  return trimmed.length > 0 ? trimmed : null;
14744
16380
  }
14745
- function formatAppointmentDuration(durationMinutes) {
14746
- return `${durationMinutes} min`;
14747
- }
14748
- function formatAppointmentLocation(location) {
14749
- switch (location.mode) {
14750
- case "online": return "Online";
14751
- case "in_person": return formatVenue(location.venue);
14752
- case "either": {
14753
- const venue = formatVenue(location.venue);
14754
- return venue ? `${venue} or online` : "In person or online";
14755
- }
14756
- default: return assertNever$1(location);
14757
- }
14758
- }
14759
- function formatVenue(venue) {
14760
- if (!venue) return null;
14761
- return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
14762
- }
14763
- function formatAppointmentPrice(service) {
14764
- if (service.onlinePaymentMode === "package_only") return "Book with a package";
14765
- const pricing = service.pricing;
14766
- if (pricing) {
14767
- const display = (() => {
14768
- switch (pricing.pricingStrategy) {
14769
- case "free": return {
14770
- kind: "free",
14771
- currency: pricing.currency
14772
- };
14773
- case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
14774
- case "tiered": return resolvePricingOptionsPriceDisplay({
14775
- options: pricing.options,
14776
- currency: pricing.currency,
14777
- purpose: "available_now"
14778
- });
14779
- case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
14780
- kind: "unavailable",
14781
- currency: pricing.currency
14782
- } : {
14783
- kind: "range",
14784
- minAmount: pricing.slidingMinAmount,
14785
- maxAmount: pricing.slidingMaxAmount,
14786
- currency: pricing.currency
14787
- };
14788
- default: return assertNever$1(pricing.pricingStrategy);
14789
- }
14790
- })();
14791
- return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
14792
- }
14793
- return formatAmountOrFree(service.priceAmount, service.priceCurrency);
14794
- }
14795
- function formatAmountOrFree(amount, currency) {
14796
- if (amount === null || currency === null) return null;
14797
- if (amount === 0) return "Free";
14798
- return formatBookingPriceDisplay({
14799
- kind: "exact",
14800
- amount,
14801
- currency
14802
- }, { decimals: "auto" });
14803
- }
14804
16381
  function buildRows(services, pathname, servicePathPrefix) {
14805
16382
  return services.map((service) => ({
14806
16383
  id: service.id,
@@ -15208,6 +16785,16 @@ function TeamMembersNode(props) {
15208
16785
  });
15209
16786
  }
15210
16787
  //#endregion
16788
+ //#region ../blocks/src/system/runtime/shared/BookingPanelArrangement.tsx
16789
+ /** The `[data-arrangement]` ancestor skin card rules need around an in-place booking panel. */
16790
+ function BookingPanelArrangement({ pageKind, children }) {
16791
+ const attributes = bookingPresentation(pageKind).arrangementAttributes;
16792
+ return attributes ? /* @__PURE__ */ jsx("div", {
16793
+ ...attributes,
16794
+ children
16795
+ }) : /* @__PURE__ */ jsx(Fragment$1, { children });
16796
+ }
16797
+ //#endregion
15211
16798
  //#region ../blocks/src/system/runtime/nodes/booking-form.service-pricing.ts
15212
16799
  function getBookingServiceSlidingScale(service) {
15213
16800
  const pricing = service?.pricing;
@@ -15650,9 +17237,6 @@ function parseBookingCurrencyInputToCents(value) {
15650
17237
  if (!Number.isFinite(parsed) || parsed < 0) return null;
15651
17238
  return Math.round(parsed * 100);
15652
17239
  }
15653
- function formatBookingCentsAsCurrencyInput(amount) {
15654
- return amount % 100 === 0 ? String(amount / 100) : (amount / 100).toFixed(2);
15655
- }
15656
17240
  function isBookingServiceSlidingAmountInRange(slidingScale, selectedAmount) {
15657
17241
  return selectedAmount !== null && selectedAmount >= slidingScale.minAmount && selectedAmount <= slidingScale.maxAmount;
15658
17242
  }
@@ -16128,6 +17712,7 @@ const bookingDateContextSchema = z.object({
16128
17712
  timeZone: z.string().transform(resolveBookingBusinessTimeZone)
16129
17713
  });
16130
17714
  const bookingSourceSchema = z.object({
17715
+ pageKind: bookingPageKindSchema.optional(),
16131
17716
  dateContext: bookingDateContextSchema,
16132
17717
  now: bookingNowSchema,
16133
17718
  demoEmailSuppressed: z.boolean().optional(),
@@ -16164,6 +17749,7 @@ const bookingDisplaySchema = z.object({
16164
17749
  });
16165
17750
  const bookingHydrationSchema = z.object({
16166
17751
  now: bookingNowSchema,
17752
+ pageKind: bookingPageKindSchema.optional(),
16167
17753
  dateContext: bookingDateContextSchema,
16168
17754
  demoEmailSuppressed: z.boolean().optional(),
16169
17755
  mailingList: bookingMailingListContextSchema.optional(),
@@ -16216,6 +17802,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
16216
17802
  return {
16217
17803
  display: buildBookingFormDisplay(source, form),
16218
17804
  hydration: {
17805
+ pageKind: source.pageKind,
16219
17806
  now: source.now,
16220
17807
  dateContext: source.dateContext,
16221
17808
  demoEmailSuppressed: source.demoEmailSuppressed,
@@ -16293,48 +17880,53 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
16293
17880
  id: blockId,
16294
17881
  attributes: { "data-block": "appointment-booking" },
16295
17882
  value: islandProps,
16296
- children: [display.state === "missing" ? /* @__PURE__ */ jsx("div", {
16297
- className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
16298
- children: /* @__PURE__ */ jsx("div", {
16299
- className: "alert alert-error",
16300
- role: "alert",
16301
- children: /* @__PURE__ */ jsx("p", {
16302
- className: "ab-text",
16303
- children: display.message
17883
+ children: [/* @__PURE__ */ jsx(BookingPanelArrangement, {
17884
+ pageKind: sourceProps.pageKind,
17885
+ children: display.state === "missing" ? /* @__PURE__ */ jsx("div", {
17886
+ ...bookingPresentation(sourceProps.pageKind).panelAttributes,
17887
+ className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
17888
+ children: /* @__PURE__ */ jsx("div", {
17889
+ className: "alert alert-error",
17890
+ role: "alert",
17891
+ children: /* @__PURE__ */ jsx("p", {
17892
+ className: "ab-text",
17893
+ children: display.message
17894
+ })
16304
17895
  })
16305
- })
16306
- }) : /* @__PURE__ */ jsxs("div", {
16307
- className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
16308
- "aria-busy": true,
16309
- "aria-label": "Loading booking form",
16310
- role: "status",
16311
- children: [/* @__PURE__ */ jsx("span", {
16312
- className: "rb-sr-only",
16313
- children: "Loading booking form..."
16314
- }), /* @__PURE__ */ jsxs("div", {
16315
- className: "rb-reg-stack",
16316
- "aria-hidden": "true",
16317
- children: [
16318
- /* @__PURE__ */ jsx("div", {
16319
- className: "rb-reg-summary",
16320
- children: /* @__PURE__ */ jsxs("div", {
17896
+ }) : /* @__PURE__ */ jsxs("div", {
17897
+ ...bookingPresentation(sourceProps.pageKind).panelAttributes,
17898
+ className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
17899
+ "aria-busy": true,
17900
+ "aria-label": "Loading booking form",
17901
+ role: "status",
17902
+ children: [/* @__PURE__ */ jsx("span", {
17903
+ className: "rb-sr-only",
17904
+ children: "Loading booking form..."
17905
+ }), /* @__PURE__ */ jsxs("div", {
17906
+ className: "rb-reg-stack",
17907
+ "aria-hidden": "true",
17908
+ children: [
17909
+ bookingPresentation(sourceProps.pageKind).showShellHeading ? /* @__PURE__ */ jsx("div", {
17910
+ className: "rb-reg-summary",
17911
+ children: /* @__PURE__ */ jsxs("div", {
17912
+ className: "rb-reg-stack rb-reg-stack--sm",
17913
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
17914
+ })
17915
+ }) : null,
17916
+ /* @__PURE__ */ jsxs("div", {
16321
17917
  className: "rb-reg-stack rb-reg-stack--sm",
16322
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
16323
- })
16324
- }),
16325
- /* @__PURE__ */ jsxs("div", {
16326
- className: "rb-reg-stack rb-reg-stack--sm",
16327
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
16328
- }),
16329
- /* @__PURE__ */ jsx("div", {
16330
- className: "rb-wizard-actions",
16331
- children: /* @__PURE__ */ jsx("div", {
16332
- className: "ab-shell-button",
16333
- children: display.submitLabel
17918
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
17919
+ }),
17920
+ /* @__PURE__ */ jsx("div", {
17921
+ className: "rb-wizard-actions",
17922
+ children: /* @__PURE__ */ jsx("div", {
17923
+ className: "ab-shell-button",
17924
+ children: display.submitLabel
17925
+ })
16334
17926
  })
16335
- })
16336
- ]
16337
- })]
17927
+ ]
17928
+ })]
17929
+ })
16338
17930
  }), children]
16339
17931
  });
16340
17932
  }
@@ -16486,7 +18078,7 @@ function resolveSelection(input) {
16486
18078
  events: input.events ?? null,
16487
18079
  occurrenceContext: input.occurrenceContext ?? null,
16488
18080
  subject: input.subject,
16489
- nowIso: input.nowIso,
18081
+ nowIso: input.now,
16490
18082
  otherDatesLimit: input.otherDatesLimit
16491
18083
  });
16492
18084
  }
@@ -16519,6 +18111,7 @@ function resolveEventDetailsPresentation(input) {
16519
18111
  return {
16520
18112
  selection,
16521
18113
  arrangement: input.arrangement,
18114
+ quickFacts: input.quickFacts,
16522
18115
  entryTitle: input.entryTitle,
16523
18116
  actionSize: input.actionSize,
16524
18117
  lookSlots: input.lookSlots,
@@ -16532,8 +18125,12 @@ function resolveEventDetailsPresentation(input) {
16532
18125
  }
16533
18126
  //#endregion
16534
18127
  //#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
18128
+ /** A course lists every active option, whether or not its sale window is open. */
18129
+ function wholeSeriesPriceOptions(pricing) {
18130
+ return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
18131
+ }
16535
18132
  function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
16536
- const options = pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
18133
+ const options = wholeSeriesPriceOptions(pricing);
16537
18134
  return /* @__PURE__ */ jsxs("div", {
16538
18135
  className: "rb-mt-6",
16539
18136
  children: [
@@ -16552,7 +18149,7 @@ function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
16552
18149
  className: "rb-caption status-muted",
16553
18150
  children: option.description
16554
18151
  }) : null] }, option.id))
16555
- }) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: formatBookingPriceDisplay(publicEventPricingDisplay(pricing)) }) }),
18152
+ }) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }) }) }),
16556
18153
  acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
16557
18154
  className: "rb-caption rb-mt-1",
16558
18155
  children: ["You can also attend with: ", acceptedItems.join(", ")]
@@ -16620,7 +18217,7 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
16620
18217
  className: "rb-caption rb-mt-1",
16621
18218
  children: formatAutoApplyDiscountLine(autoApplyDiscount, eventPricingCurrency)
16622
18219
  }) : null,
16623
- eventPricingCurrency ? /* @__PURE__ */ jsx(TicketTypePriceList, {
18220
+ eventPricingCurrency && ticketTypes.length > 1 ? /* @__PURE__ */ jsx(TicketTypePriceList, {
16624
18221
  ticketTypes,
16625
18222
  currency: eventPricingCurrency
16626
18223
  }) : null,
@@ -16931,10 +18528,10 @@ function EventDetailsView(input) {
16931
18528
  });
16932
18529
  if (props.selection.kind === "empty") return /* @__PURE__ */ jsxs("div", {
16933
18530
  ...listLookSlot(props, "layout"),
16934
- children: [props.entryTitle ? /* @__PURE__ */ jsx("h1", {
18531
+ children: [props.entryTitle ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h1", {
16935
18532
  ...listLookSlot(props, "headline"),
16936
18533
  children: props.entryTitle
16937
- }) : null, /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props })]
18534
+ }), /* @__PURE__ */ jsx(EventQuickFacts, { facts: props.quickFacts })] }) : null, /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props })]
16938
18535
  });
16939
18536
  return /* @__PURE__ */ jsxs("div", {
16940
18537
  ...listLookSlot(props, "layout"),
@@ -16943,16 +18540,79 @@ function EventDetailsView(input) {
16943
18540
  presentation: props,
16944
18541
  showCost: props.showCost ?? true,
16945
18542
  showCapacity: props.showCapacity ?? false
16946
- }), /* @__PURE__ */ jsx("div", {
16947
- ...listLookSlot(props, "panel"),
16948
- children: /* @__PURE__ */ jsx(LegacyEventDetailsView, {
16949
- ...props,
16950
- showCost: props.showCost,
16951
- showCapacity: false
16952
- })
18543
+ }), /* @__PURE__ */ jsx(EventHeaderPanel, {
18544
+ ...props,
18545
+ selection: props.selection
16953
18546
  })]
16954
18547
  });
16955
18548
  }
18549
+ function EventHeaderPanel(props) {
18550
+ const content = headerPanelContent(props);
18551
+ if (!content.hasFacts && !content.hasMap && !content.hasDates) return null;
18552
+ return /* @__PURE__ */ jsx("div", {
18553
+ ...listLookSlot(props, "panel"),
18554
+ children: /* @__PURE__ */ jsxs("div", {
18555
+ className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
18556
+ children: [content.hasFacts || content.hasMap ? /* @__PURE__ */ jsxs("div", {
18557
+ className: "rb-grid rb-grid-cols-1 rb-gap-6 rb-items-start rb-sm-grid-cols-2",
18558
+ children: [content.hasFacts ? /* @__PURE__ */ jsx(HeaderPanelFacts, { ...content }) : null, /* @__PURE__ */ jsx(EventVenueMap, {
18559
+ venue: content.venue,
18560
+ showMap: props.showMap,
18561
+ drawing: props.selectedVenueDrawing,
18562
+ mapHeight: props.mapHeight ?? 200,
18563
+ mapClassName: props.mapClassName ?? "event-details-map"
18564
+ })]
18565
+ }) : null, content.hasDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection: props.selection }) : null]
18566
+ })
18567
+ });
18568
+ }
18569
+ function HeaderPanelFacts({ venue, teamMembers, pricing }) {
18570
+ return /* @__PURE__ */ jsxs("div", {
18571
+ className: "rb-flex rb-flex-col rb-gap-4",
18572
+ children: [
18573
+ /* @__PURE__ */ jsx(EventVenueFact, { venue }),
18574
+ /* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
18575
+ pricing ? /* @__PURE__ */ jsx(EventPricingDetails, { ...pricing }) : null
18576
+ ]
18577
+ });
18578
+ }
18579
+ /** What the panel has to add to the header, decided once. */
18580
+ function headerPanelContent(props) {
18581
+ const { selection } = props;
18582
+ const venue = props.showVenue ? selection.selected.venue : void 0;
18583
+ const teamMembers = selection.selected.teamMembers ?? [];
18584
+ const pricing = headerPanelPricing(props, selection.selected);
18585
+ const scheduled = selection.kind === "wholeSeries" ? selection.sessions.length : selection.otherDates.length;
18586
+ return {
18587
+ venue,
18588
+ teamMembers,
18589
+ pricing,
18590
+ hasMap: Boolean(props.showMap && venue && props.selectedVenueDrawing),
18591
+ hasFacts: Boolean(venue) || teamMembers.length > 0 || pricing !== null,
18592
+ hasDates: props.showOtherDates && scheduled > 0
18593
+ };
18594
+ }
18595
+ /**
18596
+ * Price detail beyond the header's one Price line: several options, a
18597
+ * discount, or passes that also admit. Decided from the same projection
18598
+ * `EventPricingDetails` renders, so a panel is only drawn when it will show something.
18599
+ */
18600
+ function headerPanelPricing(props, event) {
18601
+ const pricing = selectedEventPricing(event, props.showCost ?? true);
18602
+ if (pricing.isDropIn) return null;
18603
+ const detail = {
18604
+ ...pricing,
18605
+ acceptedItems: acceptedProductNames(props),
18606
+ autoApplyDiscount: props.autoApplyDiscount ?? null
18607
+ };
18608
+ return pricingAddsDetail(detail) ? detail : null;
18609
+ }
18610
+ /** True when `EventPricingDetails` would show more than the header's one price. */
18611
+ function pricingAddsDetail(pricing) {
18612
+ const priced = Boolean(pricing.eventCostLabel && pricing.eventPricingCurrency);
18613
+ const courseOptions = pricing.wholeSeriesPricingDisplay ? wholeSeriesPriceOptions(pricing.wholeSeriesPricingDisplay).length : 0;
18614
+ return pricing.acceptedItems.length > 0 || courseOptions > 1 || priced && (pricing.ticketTypes.length > 1 || pricing.autoApplyDiscount !== null);
18615
+ }
16956
18616
  /** Turns off the toggles the arrangement leaves out, as `lookParts` declares them. */
16957
18617
  function withLookParts(props, arrangement) {
16958
18618
  const shown = (field) => lookPartShown("block.event-details", field, arrangement);
@@ -16964,7 +18624,7 @@ function withLookParts(props, arrangement) {
16964
18624
  }
16965
18625
  //#endregion
16966
18626
  //#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
16967
- function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, nowIso }) {
18627
+ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
16968
18628
  return {
16969
18629
  ...props.arrangement ? {
16970
18630
  arrangement: props.arrangement,
@@ -16974,6 +18634,7 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
16974
18634
  surfacePresentation: props.surfacePresentation,
16975
18635
  panelHeading: props.panelHeading
16976
18636
  } : {},
18637
+ quickFacts: props.quickFacts,
16977
18638
  occurrenceContext: props.occurrenceContext ?? null,
16978
18639
  subject,
16979
18640
  events: scopedEvents,
@@ -16992,12 +18653,11 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
16992
18653
  siteMemberships: props.siteMemberships,
16993
18654
  autoApplyDiscount: presentation.autoApplyDiscount,
16994
18655
  className: props.className,
16995
- nowIso
18656
+ now: props.now
16996
18657
  };
16997
18658
  }
16998
18659
  function EventDetailsSSR(props) {
16999
18660
  const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
17000
- const nowIso = props.now;
17001
18661
  const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
17002
18662
  const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
17003
18663
  occurrenceContext,
@@ -17007,8 +18667,7 @@ function EventDetailsSSR(props) {
17007
18667
  ...props,
17008
18668
  events: scopedEvents,
17009
18669
  occurrenceContext,
17010
- subject: normalizedSubject,
17011
- nowIso
18670
+ subject: normalizedSubject
17012
18671
  });
17013
18672
  return /* @__PURE__ */ jsxs(IslandRoot, {
17014
18673
  kind: "event-details",
@@ -17021,8 +18680,7 @@ function EventDetailsSSR(props) {
17021
18680
  props,
17022
18681
  presentation,
17023
18682
  scopedEvents,
17024
- subject: normalizedSubject,
17025
- nowIso
18683
+ subject: normalizedSubject
17026
18684
  }),
17027
18685
  children: [/* @__PURE__ */ jsx(EventDetailsView, {
17028
18686
  ...presentation,
@@ -17682,27 +19340,34 @@ function FeaturedOfferingSummary({ item }) {
17682
19340
  if (!details) return null;
17683
19341
  return /* @__PURE__ */ jsxs("article", {
17684
19342
  className: "offerings-preview-summary rb-flex rb-flex-1 rb-flex-col",
17685
- children: [/* @__PURE__ */ jsxs("p", {
17686
- className: "offerings-preview-summary-date",
17687
- children: [/* @__PURE__ */ jsx("time", {
17688
- dateTime: details.startDateTime,
17689
- children: details.startDate
17690
- }), details.endDate ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
17691
- "aria-hidden": "true",
17692
- children: " – "
17693
- }), /* @__PURE__ */ jsx("time", {
17694
- dateTime: details.endDateTime,
17695
- children: details.endDate
17696
- })] }) : null]
17697
- }), /* @__PURE__ */ jsxs("dl", {
17698
- className: "offerings-preview-summary-facts",
17699
- children: [
17700
- details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
17701
- details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
17702
- details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
17703
- details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
17704
- ]
17705
- })]
19343
+ children: [
19344
+ /* @__PURE__ */ jsx(EventQuickFacts, {
19345
+ facts: item.kind === "event" ? item.event.facts : item.run.representative.facts,
19346
+ context: "card"
19347
+ }),
19348
+ /* @__PURE__ */ jsxs("p", {
19349
+ className: "offerings-preview-summary-date",
19350
+ children: [/* @__PURE__ */ jsx("time", {
19351
+ dateTime: details.startDateTime,
19352
+ children: details.startDate
19353
+ }), details.endDate ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
19354
+ "aria-hidden": "true",
19355
+ children: " – "
19356
+ }), /* @__PURE__ */ jsx("time", {
19357
+ dateTime: details.endDateTime,
19358
+ children: details.endDate
19359
+ })] }) : null]
19360
+ }),
19361
+ /* @__PURE__ */ jsxs("dl", {
19362
+ className: "offerings-preview-summary-facts",
19363
+ children: [
19364
+ details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
19365
+ details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
19366
+ details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
19367
+ details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
19368
+ ]
19369
+ })
19370
+ ]
17706
19371
  });
17707
19372
  }
17708
19373
  function featuredSummaryDetails(item) {
@@ -17866,31 +19531,38 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
17866
19531
  }),
17867
19532
  /* @__PURE__ */ jsxs("div", {
17868
19533
  className: "event-compact-row-content",
17869
- children: [/* @__PURE__ */ jsx(OfferingTitle, {
17870
- className: "event-compact-row-title",
17871
- path,
17872
- title: group.representative.title
17873
- }), /* @__PURE__ */ jsxs("div", {
17874
- className: "event-compact-row-meta",
17875
- children: [
17876
- group.representative.venue ? /* @__PURE__ */ jsx("span", {
17877
- className: "event-compact-row-venue",
17878
- children: group.representative.venue.name
17879
- }) : null,
17880
- /* @__PURE__ */ jsx("span", {
17881
- className: "event-compact-row-price",
17882
- children: price
17883
- }),
17884
- /* @__PURE__ */ jsxs("span", {
17885
- className: "event-compact-row-price",
17886
- children: [
17887
- sessionsCount,
17888
- " session",
17889
- sessionsCount === 1 ? "" : "s"
17890
- ]
17891
- })
17892
- ]
17893
- })]
19534
+ children: [
19535
+ /* @__PURE__ */ jsx(OfferingTitle, {
19536
+ className: "event-compact-row-title",
19537
+ path,
19538
+ title: group.representative.title
19539
+ }),
19540
+ /* @__PURE__ */ jsx(EventQuickFacts, {
19541
+ facts: group.representative.facts,
19542
+ context: "card"
19543
+ }),
19544
+ /* @__PURE__ */ jsxs("div", {
19545
+ className: "event-compact-row-meta",
19546
+ children: [
19547
+ group.representative.venue ? /* @__PURE__ */ jsx("span", {
19548
+ className: "event-compact-row-venue",
19549
+ children: group.representative.venue.name
19550
+ }) : null,
19551
+ /* @__PURE__ */ jsx("span", {
19552
+ className: "event-compact-row-price",
19553
+ children: price
19554
+ }),
19555
+ /* @__PURE__ */ jsxs("span", {
19556
+ className: "event-compact-row-price",
19557
+ children: [
19558
+ sessionsCount,
19559
+ " session",
19560
+ sessionsCount === 1 ? "" : "s"
19561
+ ]
19562
+ })
19563
+ ]
19564
+ })
19565
+ ]
17894
19566
  }),
17895
19567
  /* @__PURE__ */ jsxs("div", {
17896
19568
  className: "event-compact-row-action",
@@ -17939,6 +19611,10 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
17939
19611
  path,
17940
19612
  title: group.representative.title
17941
19613
  }),
19614
+ /* @__PURE__ */ jsx(EventQuickFacts, {
19615
+ facts: group.representative.facts,
19616
+ context: "card"
19617
+ }),
17942
19618
  /* @__PURE__ */ jsxs("div", {
17943
19619
  className: "rb-mb-2 rb-caption",
17944
19620
  children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", { children: timeRange })]
@@ -18033,6 +19709,10 @@ function RunWithoutLiveDates({ group, path }) {
18033
19709
  path,
18034
19710
  title: group.representative.title
18035
19711
  }),
19712
+ /* @__PURE__ */ jsx(EventQuickFacts, {
19713
+ facts: group.representative.facts,
19714
+ context: "card"
19715
+ }),
18036
19716
  /* @__PURE__ */ jsx("p", { children: "No dates available." }),
18037
19717
  /* @__PURE__ */ jsx("span", {
18038
19718
  className: "event-compact-row-status",
@@ -20024,6 +21704,279 @@ const EventListingSSR = (props) => {
20024
21704
  });
20025
21705
  };
20026
21706
  //#endregion
21707
+ //#region ../blocks/src/system/runtime/nodes/event-registration/BookingPanel.tsx
21708
+ function EventBookingPanelView({ panel, pageKind, children }) {
21709
+ const body = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(EventBookingPanelBody, { panel }), children] });
21710
+ return bookingPresentation(pageKind).wrapInCard ? /* @__PURE__ */ jsx(BookingPanelArrangement, {
21711
+ pageKind,
21712
+ children: /* @__PURE__ */ jsx("div", {
21713
+ ...bookingPresentation(pageKind).panelAttributes,
21714
+ className: boxStyleClassNames({}, {
21715
+ cardRoleFallback: "default",
21716
+ includeSpacing: false
21717
+ }),
21718
+ children: /* @__PURE__ */ jsx("div", {
21719
+ className: "card-content",
21720
+ children: body
21721
+ })
21722
+ })
21723
+ }) : body;
21724
+ }
21725
+ function EventBookingPanelBody({ panel }) {
21726
+ switch (panel.kind) {
21727
+ case "registration": return null;
21728
+ case "dropIn": return /* @__PURE__ */ jsx(DropInPanel, { panel: panel.panel });
21729
+ case "bookingClosed": return /* @__PURE__ */ jsx(BookingClosedPanel, { detail: panel.detail });
21730
+ case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, { reason: panel.reason });
21731
+ case "single": return /* @__PURE__ */ jsx(SingleDateBooking, { run: panel.run });
21732
+ case "choice": return /* @__PURE__ */ jsx(RunChooser, { runs: panel.runs });
21733
+ case "unavailable": return /* @__PURE__ */ jsxs("div", {
21734
+ className: "event-booking-panel__unavailable",
21735
+ children: [/* @__PURE__ */ jsx("h2", {
21736
+ className: "card-title rb-mb-3",
21737
+ children: "No dates open right now"
21738
+ }), /* @__PURE__ */ jsx("p", {
21739
+ className: "status-muted rb-text-base rb-leading-relaxed",
21740
+ children: "There is nothing to book at the moment. Please check back later for the next set of dates."
21741
+ })]
21742
+ });
21743
+ }
21744
+ }
21745
+ function SingleDateBooking({ run }) {
21746
+ const href = getPublicEventCanonicalPath(run.representative);
21747
+ return /* @__PURE__ */ jsxs("div", {
21748
+ className: "event-booking-panel__single-date",
21749
+ children: [
21750
+ /* @__PURE__ */ jsx("h2", {
21751
+ className: "card-title rb-mb-3",
21752
+ children: "Book your place"
21753
+ }),
21754
+ /* @__PURE__ */ jsx("p", {
21755
+ className: "event-booking-panel__run-dates status-muted rb-mb-4 rb-text-base rb-leading-relaxed",
21756
+ children: describeRun(run)
21757
+ }),
21758
+ href ? /* @__PURE__ */ jsx(ThemedButtonLink, {
21759
+ variant: "primary",
21760
+ size: "md",
21761
+ extraClassName: "event-booking-panel__book-link rb-block rb-w-full rb-text-center",
21762
+ href,
21763
+ label: "Book now"
21764
+ }) : null
21765
+ ]
21766
+ });
21767
+ }
21768
+ /** What a drop-in event's column says: come along, or not right now. */
21769
+ function DropInPanel({ panel }) {
21770
+ switch (panel.kind) {
21771
+ case "comeAlong": return /* @__PURE__ */ jsxs("div", {
21772
+ className: "event-booking-panel__drop-in",
21773
+ children: [/* @__PURE__ */ jsx("h2", {
21774
+ className: "card-title rb-mb-3",
21775
+ children: "No booking needed"
21776
+ }), /* @__PURE__ */ jsx("p", {
21777
+ className: "status-muted rb-text-base rb-leading-relaxed",
21778
+ children: "You can come along without reserving a place."
21779
+ })]
21780
+ });
21781
+ case "notRunning": return /* @__PURE__ */ jsx("div", {
21782
+ className: "event-booking-panel__drop-in",
21783
+ children: /* @__PURE__ */ jsx("p", {
21784
+ className: "status-muted rb-text-base rb-leading-relaxed",
21785
+ children: "This isn’t running at the moment."
21786
+ })
21787
+ });
21788
+ }
21789
+ }
21790
+ /** The page is up, but bookings are not open. One line, and why. */
21791
+ function BookingClosedPanel({ detail }) {
21792
+ return /* @__PURE__ */ jsx("div", {
21793
+ className: "event-booking-panel__booking-closed",
21794
+ children: /* @__PURE__ */ jsx("h2", {
21795
+ className: "card-title",
21796
+ children: detail.kind === "opensSoon" ? "Bookings open soon." : "Bookings are closed for now."
21797
+ })
21798
+ });
21799
+ }
21800
+ /** Dates that cannot be booked keep their details and say why. */
21801
+ function ClosedRunPanel({ reason }) {
21802
+ const copy = closedRunCopy(reason);
21803
+ return /* @__PURE__ */ jsxs("div", {
21804
+ className: "event-booking-panel__closed-run",
21805
+ children: [/* @__PURE__ */ jsx("h2", {
21806
+ className: "card-title rb-mb-3",
21807
+ children: copy.titleText
21808
+ }), /* @__PURE__ */ jsx("p", {
21809
+ className: "status-muted rb-text-base rb-leading-relaxed",
21810
+ children: copy.bodyText
21811
+ })]
21812
+ });
21813
+ }
21814
+ /**
21815
+ * Server-rendered run links.
21816
+ *
21817
+ * Choosing a run is a navigation, not client state: each entry is a plain link
21818
+ * to that run's canonical page, so the chooser works before hydration and the
21819
+ * chosen run gets a shareable URL.
21820
+ */
21821
+ function RunChooser({ runs }) {
21822
+ return /* @__PURE__ */ jsxs("div", {
21823
+ className: "event-booking-panel__run-chooser",
21824
+ children: [/* @__PURE__ */ jsx("h2", {
21825
+ className: "card-title rb-mb-4",
21826
+ children: "Choose your dates"
21827
+ }), /* @__PURE__ */ jsx("ul", {
21828
+ className: "rb-flex rb-flex-col rb-gap-3",
21829
+ children: runs.map((run) => {
21830
+ const href = getPublicEventCanonicalPath(run.representative);
21831
+ const label = describeRun(run);
21832
+ return /* @__PURE__ */ jsx("li", { children: href ? /* @__PURE__ */ jsxs("a", {
21833
+ className: "event-booking-panel__run-link rb-block rb-w-full",
21834
+ href,
21835
+ children: [/* @__PURE__ */ jsx("span", {
21836
+ className: "event-booking-panel__run-name",
21837
+ children: run.representative.title
21838
+ }), /* @__PURE__ */ jsx("span", {
21839
+ className: "event-booking-panel__run-dates status-muted rb-block rb-text-sm",
21840
+ children: label
21841
+ })]
21842
+ }) : /* @__PURE__ */ jsx("span", {
21843
+ className: "event-booking-panel__run-name",
21844
+ children: run.representative.title
21845
+ }) }, run.eventSeriesId);
21846
+ })
21847
+ })]
21848
+ });
21849
+ }
21850
+ /** "12 sessions from 5 March" — enough to tell two runs apart in a list. */
21851
+ function describeRun(run) {
21852
+ const sessionCount = run.run.sessions.length;
21853
+ const sessionLabel = sessionCount === 1 ? "1 session" : `${sessionCount} sessions`;
21854
+ const first = orderedLiveRunSessions(run.run.sessions)[0];
21855
+ if (!first) return sessionLabel;
21856
+ return `${sessionLabel} from ${formatDate$2({
21857
+ kind: "instant",
21858
+ value: toUtcIsoDateTimeString(first.startsAt)
21859
+ }, eventDateOptions({
21860
+ ...run.representative,
21861
+ timeZone: first.timeZone
21862
+ }), {
21863
+ date: "long",
21864
+ weekday: "long"
21865
+ })}`;
21866
+ }
21867
+ //#endregion
21868
+ //#region ../blocks/src/system/runtime/nodes/event-registration/bookingPanelSelection.ts
21869
+ /** Adapt a loaded page surface to the existing page planners. Catalogues keep their picker. */
21870
+ function resolveBookingPanelSelection(source) {
21871
+ const eventSource = resolveEventRegistrationEventSource({
21872
+ events: source.events,
21873
+ wholeSeriesRunEvents: source.wholeSeriesRunEvents,
21874
+ failures: source.eventLoaderFailures
21875
+ });
21876
+ if (eventSource.kind !== "loaded") return null;
21877
+ const subject = normalizeEventRegistrationPageSurfaceSubject(source.subject);
21878
+ const events = resolveEventRegistrationScopedEvents(eventSource.events, {
21879
+ occurrenceContext: source.occurrenceContext,
21880
+ subject
21881
+ });
21882
+ const selection = selectPagePanel({
21883
+ ...source,
21884
+ subject
21885
+ }, events);
21886
+ return selection ? {
21887
+ selection,
21888
+ subject
21889
+ } : null;
21890
+ }
21891
+ function selectPagePanel(source, events) {
21892
+ if (source.subject?.kind === "eventOffering" && source.subject.bookingScope === "whole_series") {
21893
+ if (source.pageKind !== "bookingPage") return null;
21894
+ return planWholeSeriesParentSelection({
21895
+ offeringId: source.subject.eventOfferingId,
21896
+ events,
21897
+ now: new Date(source.now)
21898
+ });
21899
+ }
21900
+ if (source.subject?.kind === "eventSeries" && source.subject.bookingScope === "whole_series") return planWholeSeriesRunSelection({
21901
+ eventSeriesId: source.subject.eventSeriesId,
21902
+ events
21903
+ });
21904
+ return selectOccurrenceForPanel(events, source.occurrenceContext?.id);
21905
+ }
21906
+ /** The decided target is also retained for recovery when fresh booking is closed. */
21907
+ function registrationSourceForPanel(source, panel) {
21908
+ if (!panel.registration) return null;
21909
+ return {
21910
+ ...source,
21911
+ ...panel.registration,
21912
+ wholeSeriesRunEvents: null,
21913
+ admission: panel.kind === "registration" ? "newBookings" : "recoveryOnly"
21914
+ };
21915
+ }
21916
+ function selectOccurrenceForPanel(events, occurrenceId) {
21917
+ const event = occurrenceId ? events.find((candidate) => candidate.occurrenceId === occurrenceId) : null;
21918
+ return event && isOrdinaryPublicEvent(event) ? {
21919
+ kind: "occurrence",
21920
+ event
21921
+ } : null;
21922
+ }
21923
+ function planEventBookingPanel({ selection, subject }, now) {
21924
+ const nonBookingPanel = planNonBookingPanel(selection);
21925
+ switch (selection.kind) {
21926
+ case "occurrence":
21927
+ case "wholeSeriesRun": {
21928
+ const registration = selectionRegistrationTarget(selection, subject);
21929
+ if (nonBookingPanel) return {
21930
+ ...nonBookingPanel,
21931
+ registration
21932
+ };
21933
+ const phase = selection.kind === "wholeSeriesRun" ? resolveWholeSeriesBookingPhase(selection.run.run, now) : null;
21934
+ return phase?.kind === "closed" ? {
21935
+ kind: "closedRun",
21936
+ reason: phase.reason,
21937
+ registration
21938
+ } : {
21939
+ kind: "registration",
21940
+ registration
21941
+ };
21942
+ }
21943
+ case "wholeSeriesParent": return {
21944
+ ...nonBookingPanel ?? planWholeSeriesParentBooking(selection.eligibleRuns),
21945
+ registration: null
21946
+ };
21947
+ case "wholeSeriesParentUnavailable": return {
21948
+ ...nonBookingPanel ?? { kind: "unavailable" },
21949
+ registration: null
21950
+ };
21951
+ }
21952
+ }
21953
+ /** Drop-in and page-level closure take precedence over fresh booking and run selection. */
21954
+ function planNonBookingPanel(selection) {
21955
+ if (!selectionRepresentativeEvent(selection).requiresRegistration) return {
21956
+ kind: "dropIn",
21957
+ panel: planDropInPanel(selection)
21958
+ };
21959
+ const detail = resolveSelectionBookingClosedDetail(selection);
21960
+ return detail ? {
21961
+ kind: "bookingClosed",
21962
+ detail
21963
+ } : null;
21964
+ }
21965
+ function selectionRegistrationTarget(selection, subject) {
21966
+ switch (selection.kind) {
21967
+ case "occurrence": return {
21968
+ events: [selection.event],
21969
+ occurrenceContext: eventOccurrenceContext(selection.event),
21970
+ subject
21971
+ };
21972
+ case "wholeSeriesRun": return {
21973
+ events: [selection.run.representative],
21974
+ occurrenceContext: null,
21975
+ subject
21976
+ };
21977
+ }
21978
+ }
21979
+ //#endregion
20027
21980
  //#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
20028
21981
  function RegistrationClosedState({ title, body }) {
20029
21982
  return /* @__PURE__ */ jsx("div", {
@@ -20452,35 +22405,76 @@ function StepIndicator(props) {
20452
22405
  * Server-safe placeholder for event registration.
20453
22406
  * Provides a static container for island hydration without importing client hooks.
20454
22407
  */
20455
- function EventRegistrationSSR({ blockId, subject, loaderFailures, children, ...sourceProps }) {
22408
+ function EventRegistrationSSR({ subject, loaderFailures, ...props }) {
22409
+ const selection = resolveBookingPanelSelection({
22410
+ ...props,
22411
+ subject,
22412
+ eventLoaderFailures: props.blockId ? loaderFailures?.[props.blockId] : void 0
22413
+ });
22414
+ if (!selection) return /* @__PURE__ */ jsx(BookingPanelArrangement, {
22415
+ pageKind: props.pageKind,
22416
+ children: /* @__PURE__ */ jsx(EventRegistrationIsland, {
22417
+ ...props,
22418
+ subject: normalizeEventRegistrationPageSurfaceSubject(subject),
22419
+ loaderFailures
22420
+ })
22421
+ });
22422
+ return /* @__PURE__ */ jsx(SelectedEventRegistration, {
22423
+ selection,
22424
+ island: {
22425
+ ...props,
22426
+ subject: selection.subject,
22427
+ loaderFailures
22428
+ }
22429
+ });
22430
+ }
22431
+ /** Once admitted, render the decided target without re-parsing its subject. */
22432
+ function SelectedEventRegistration({ selection, island }) {
22433
+ const panel = planEventBookingPanel(selection, new Date(island.now));
22434
+ const registration = registrationSourceForPanel(island, panel);
22435
+ return /* @__PURE__ */ jsx(EventBookingPanelView, {
22436
+ panel,
22437
+ pageKind: island.pageKind ?? "fullPage",
22438
+ children: registration ? /* @__PURE__ */ jsx(EventRegistrationIsland, {
22439
+ ...island,
22440
+ ...registration,
22441
+ insidePanel: true
22442
+ }) : null
22443
+ });
22444
+ }
22445
+ function EventRegistrationIsland({ blockId, subject, loaderFailures, children, insidePanel, ...sourceProps }) {
20456
22446
  const islandProps = buildEventRegistrationInteractiveIslandProps({
20457
22447
  ...sourceProps,
20458
22448
  eventLoaderFailures: blockId ? loaderFailures?.[blockId] : void 0,
20459
- subject: normalizeEventRegistrationPageSurfaceSubject(subject)
22449
+ subject
20460
22450
  });
20461
22451
  const display = islandProps.render.display;
20462
- const className = sourceProps.className;
22452
+ const className = display.className;
20463
22453
  return /* @__PURE__ */ jsxs(IslandRoot, {
20464
22454
  kind: "event-registration",
20465
22455
  id: blockId,
20466
22456
  attributes: {
20467
22457
  className: `event-registration ${className ?? ""}`.trim(),
20468
22458
  "data-block": "event-registration",
22459
+ ...insidePanel ? void 0 : bookingPresentation(sourceProps.pageKind).panelAttributes,
20469
22460
  "data-rb-island-required": "true",
20470
22461
  "data-rb-island-error-message": "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
20471
22462
  "data-rb-island-error-class": "event-registration__hydration-error"
20472
22463
  },
20473
22464
  value: islandProps,
20474
- children: [display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
22465
+ children: [islandProps.render.hydration.admission === "recoveryOnly" ? null : display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
20475
22466
  id: EVENT_REGISTRATION_ANCHOR_ID,
20476
22467
  children: /* @__PURE__ */ jsx(BookingEntryCard, {
20477
22468
  entry: display.entry,
20478
22469
  buttonVariant: display.buttonVariant ?? "primary"
20479
22470
  })
20480
- }) : /* @__PURE__ */ jsx(EventRegistrationShell, { display }), children]
22471
+ }) : /* @__PURE__ */ jsx(EventRegistrationShell, {
22472
+ display,
22473
+ showHeading: bookingPresentation(sourceProps.pageKind).showShellHeading
22474
+ }), children]
20481
22475
  });
20482
22476
  }
20483
- function EventRegistrationShell({ display }) {
22477
+ function EventRegistrationShell({ display, showHeading }) {
20484
22478
  if (display.state === "registration-closed") return /* @__PURE__ */ jsx(RegistrationClosedState, {
20485
22479
  title: display.titleText,
20486
22480
  body: display.bodyText
@@ -20502,32 +22496,9 @@ function EventRegistrationShell({ display }) {
20502
22496
  totalSteps: display.stepLabels.length,
20503
22497
  stepLabels: [...display.stepLabels]
20504
22498
  })
20505
- }), /* @__PURE__ */ jsxs("div", {
20506
- className: "rb-reg-stack er-stack",
20507
- children: [/* @__PURE__ */ jsxs("div", { children: [
20508
- /* @__PURE__ */ jsx("p", {
20509
- className: "er-registration-shell__eyebrow",
20510
- children: "Registration"
20511
- }),
20512
- /* @__PURE__ */ jsx("h3", {
20513
- className: "er-title er-registration-shell__title",
20514
- children: display.titleText
20515
- }),
20516
- /* @__PURE__ */ jsx("p", {
20517
- className: "er-text er-text--muted er-registration-shell__copy",
20518
- children: display.bodyText
20519
- })
20520
- ] }), /* @__PURE__ */ jsxs("div", {
20521
- className: "er-event-grid er-registration-shell__cards",
20522
- "aria-hidden": "true",
20523
- children: [/* @__PURE__ */ jsxs("div", {
20524
- className: "er-event-card er-registration-shell__card",
20525
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
20526
- }), /* @__PURE__ */ jsxs("div", {
20527
- className: "er-event-card er-registration-shell__card",
20528
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
20529
- })]
20530
- })]
22499
+ }), /* @__PURE__ */ jsx(RegistrationShellBody, {
22500
+ display,
22501
+ showHeading
20531
22502
  })]
20532
22503
  }), /* @__PURE__ */ jsx("div", {
20533
22504
  className: "er-payment-layout-footer",
@@ -20546,6 +22517,32 @@ function EventRegistrationShell({ display }) {
20546
22517
  })
20547
22518
  });
20548
22519
  }
22520
+ /** Copy and skeleton cards for the first step, before its island is ready. */
22521
+ function RegistrationShellBody({ display, showHeading }) {
22522
+ return /* @__PURE__ */ jsxs("div", {
22523
+ className: "rb-reg-stack er-stack",
22524
+ children: [/* @__PURE__ */ jsxs("div", { children: [showHeading ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("p", {
22525
+ className: "er-registration-shell__eyebrow",
22526
+ children: "Registration"
22527
+ }), /* @__PURE__ */ jsx("h3", {
22528
+ className: "er-title er-registration-shell__title",
22529
+ children: display.titleText
22530
+ })] }) : null, /* @__PURE__ */ jsx("p", {
22531
+ className: "er-text er-text--muted er-registration-shell__copy",
22532
+ children: display.bodyText
22533
+ })] }), /* @__PURE__ */ jsxs("div", {
22534
+ className: "er-event-grid er-registration-shell__cards",
22535
+ "aria-hidden": "true",
22536
+ children: [/* @__PURE__ */ jsxs("div", {
22537
+ className: "er-event-card er-registration-shell__card",
22538
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
22539
+ }), /* @__PURE__ */ jsxs("div", {
22540
+ className: "er-event-card er-registration-shell__card",
22541
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
22542
+ })]
22543
+ })]
22544
+ });
22545
+ }
20549
22546
  //#endregion
20550
22547
  //#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
20551
22548
  /** Verification readiness is decided here, never recomputed by individual forms. */
@@ -21234,9 +23231,11 @@ typedObjectKeys(runtimeBackedBlockServerEntries);
21234
23231
  //#region ../blocks/src/system/runtime/components/registry.server.ts
21235
23232
  const serverComponentRegistry = {
21236
23233
  div: DivNode,
23234
+ dl: DescriptionListNode,
21237
23235
  figure: FigureNode,
21238
23236
  figcaption: FigcaptionNode,
21239
23237
  ol: OrderedListNode,
23238
+ ul: UnorderedListNode,
21240
23239
  li: ListItemNode,
21241
23240
  svg: SvgNode,
21242
23241
  section: SectionNode,
@@ -22982,6 +24981,7 @@ function FieldFrame(props) {
22982
24981
  const marker = required ? "required" : optional ? "optional" : "none";
22983
24982
  const descriptionId = description ? `${controlId}-description` : void 0;
22984
24983
  const messageId = Boolean(error) || Boolean(hint) ? `${controlId}-message` : void 0;
24984
+ const describedBy = joinDescribedBy(descriptionId, messageId);
22985
24985
  return /* @__PURE__ */ jsxs("div", {
22986
24986
  "data-field-path": fieldPath,
22987
24987
  className: cn$1("space-y-0 text-sm text-foreground", className),
@@ -22991,10 +24991,17 @@ function FieldFrame(props) {
22991
24991
  beforeControl,
22992
24992
  /* @__PURE__ */ jsx("div", {
22993
24993
  className: "mt-2",
22994
- children: children({
22995
- id: controlId,
22996
- descriptionId,
22997
- messageId
24994
+ children: /* @__PURE__ */ jsx(FieldDescriptionProvider, {
24995
+ value: {
24996
+ controlId,
24997
+ describedBy
24998
+ },
24999
+ children: children({
25000
+ id: controlId,
25001
+ describedBy,
25002
+ descriptionId,
25003
+ messageId
25004
+ })
22998
25005
  })
22999
25006
  }),
23000
25007
  afterControl,
@@ -23758,6 +25765,12 @@ const PORTAL = {
23758
25765
  authScope: "portal",
23759
25766
  skipPreviewStage: true
23760
25767
  },
25768
+ getRegularSessions: {
25769
+ path: "/portal/appointments/regular-sessions",
25770
+ method: "GET",
25771
+ authScope: "portal",
25772
+ skipPreviewStage: true
25773
+ },
23761
25774
  getAppointmentBookingQuestions: {
23762
25775
  path: "/portal/appointments/{appointmentId}/booking-questions",
23763
25776
  method: "GET",
@@ -24522,6 +26535,9 @@ function createBlockApi(config) {
24522
26535
  async getPortalAppointments() {
24523
26536
  return (await request(PORTAL.getAppointments)).appointments;
24524
26537
  },
26538
+ async getPortalRegularSessions() {
26539
+ return (await request(PORTAL.getRegularSessions)).arrangements;
26540
+ },
24525
26541
  async getPortalAppointmentBookingQuestions(appointmentId) {
24526
26542
  const path = buildPath(PORTAL.getAppointmentBookingQuestions.path, { appointmentId });
24527
26543
  return (await request(PORTAL.getAppointmentBookingQuestions, { path })).task;
@@ -27184,7 +29200,7 @@ function changesBookingPaymentFacts(event) {
27184
29200
  }
27185
29201
  function bookingSlidingAmountDefault(services, serviceId) {
27186
29202
  const sliding = getBookingServiceSlidingScale(services.find((service) => service.id === serviceId) ?? null);
27187
- return sliding?.suggestedAmount !== null && sliding?.suggestedAmount !== void 0 ? formatBookingCentsAsCurrencyInput(sliding.suggestedAmount) : "";
29203
+ return sliding?.suggestedAmount !== null && sliding?.suggestedAmount !== void 0 ? formatCentsAsCurrencyInput(sliding.suggestedAmount) : "";
27188
29204
  }
27189
29205
  function planBookingNavigation(input) {
27190
29206
  if (input.direction === "next") return planBookingNext(input);
@@ -28698,7 +30714,7 @@ function DateFieldLabel({ labelId }) {
28698
30714
  return /* @__PURE__ */ jsx("span", {
28699
30715
  className: "form-label",
28700
30716
  id: labelId,
28701
- children: "Select Date"
30717
+ children: "Choose a date"
28702
30718
  });
28703
30719
  }
28704
30720
  /** Focus is the only effect: newly loaded dates continue keyboard selection. */
@@ -28863,7 +30879,7 @@ const TimeSlotSelector = ({ value, onChange, slots, isLoading, dateContext, zone
28863
30879
  /* @__PURE__ */ jsx("span", {
28864
30880
  className: "form-label",
28865
30881
  id: labelId,
28866
- children: "Select Time"
30882
+ children: "Choose a time"
28867
30883
  }),
28868
30884
  /* @__PURE__ */ jsx(TimeSlotZoneNote, {
28869
30885
  id: noteId,
@@ -29125,7 +31141,7 @@ function BookingReviewIdentity({ booking }) {
29125
31141
  /** Copy for one package the client can buy and use for this booking. */
29126
31142
  function purchasablePackageRowCopy(item, serviceTitle) {
29127
31143
  const heldWith = item.heldWithTeamMember;
29128
- const sessions = item.creditsTotal === 1 ? "1 session" : `${item.creditsTotal} sessions`;
31144
+ const sessions = formatCreditProductUnits("appointment_package", item.creditsTotal);
29129
31145
  return {
29130
31146
  label: heldWith ? `${item.name} with ${heldWith.name}` : item.name,
29131
31147
  details: [
@@ -29140,8 +31156,11 @@ function heldPackageRows(booking) {
29140
31156
  return booking.payment.appointmentPackages.items.map((held) => ({
29141
31157
  id: held.customerPassId,
29142
31158
  label: held.passName,
29143
- details: ["Use 1 package credit", `Balance: ${held.creditsRemaining} of ${held.creditsTotal} credits remaining`],
29144
- price: "1 credit",
31159
+ details: ["This booking uses one session.", formatCreditProductBalance("appointment_package", {
31160
+ remaining: held.creditsRemaining,
31161
+ total: held.creditsTotal
31162
+ })],
31163
+ price: formatCreditProductUnits("appointment_package", 1),
29145
31164
  selected: booking.payment.choice.kind === "held_package" && booking.payment.choice.customerPassId === held.customerPassId,
29146
31165
  onSelect: () => booking.actions.selectAppointmentPackage(held.customerPassId)
29147
31166
  }));
@@ -30350,10 +32369,18 @@ function toStringArray(value) {
30350
32369
  }
30351
32370
  //#endregion
30352
32371
  //#region ../blocks/src/system/runtime/nodes/booking-form.default-ui.tsx
32372
+ function BookingStepPrompt({ presentation, as: Heading, className, id, children }) {
32373
+ return /* @__PURE__ */ jsx(presentation.promptAsHeading ? Heading : "p", {
32374
+ id,
32375
+ className: presentation.promptAsHeading ? className : "form-label",
32376
+ children
32377
+ });
32378
+ }
30353
32379
  function formatBookingAmount(amount, currency) {
30354
32380
  return formatCurrencyAmount(amount, currency, { decimals: "auto" });
30355
32381
  }
30356
- function HeadlessBookingDefaultForm({ booking, onSubmit }) {
32382
+ function HeadlessBookingDefaultForm({ booking, onSubmit, pageKind }) {
32383
+ const presentation = bookingPresentation(pageKind);
30357
32384
  const currentStep = booking.currentStep;
30358
32385
  const errorSummaryId = React.useId();
30359
32386
  const currentStepIndex = currentStep?.visibleIndex ?? 0;
@@ -30371,14 +32398,16 @@ function HeadlessBookingDefaultForm({ booking, onSubmit }) {
30371
32398
  currentStep: currentStepIndex + 1,
30372
32399
  totalSteps: booking.steps.length,
30373
32400
  stepLabels: booking.steps.map((step) => step.label),
30374
- emitSharedClasses: true
32401
+ emitSharedClasses: true,
32402
+ labelAs: presentation.stepLabelAs
30375
32403
  }) : null,
30376
32404
  /* @__PURE__ */ jsx(DefaultQuestionsRefusal, { booking }),
30377
32405
  /* @__PURE__ */ jsx("div", {
30378
32406
  className: "step-content",
30379
32407
  children: /* @__PURE__ */ jsx(DefaultBookingStepContent, {
30380
32408
  booking,
30381
- errorSummaryId
32409
+ errorSummaryId,
32410
+ presentation
30382
32411
  })
30383
32412
  }),
30384
32413
  /* @__PURE__ */ jsx(DefaultBookingErrorSummary, {
@@ -30409,21 +32438,28 @@ function DefaultQuestionsRefusal({ booking }) {
30409
32438
  children: presentation.message
30410
32439
  });
30411
32440
  }
30412
- function DefaultBookingStepContent({ booking, errorSummaryId }) {
32441
+ function DefaultBookingStepContent({ booking, errorSummaryId, presentation }) {
30413
32442
  const stepId = booking.currentStep?.id;
30414
32443
  if (!stepId) return null;
30415
32444
  switch (stepId) {
30416
- case "service-selection": return /* @__PURE__ */ jsx(DefaultServiceSelectionStep, { booking });
32445
+ case "service-selection": return /* @__PURE__ */ jsx(DefaultServiceSelectionStep, {
32446
+ booking,
32447
+ presentation
32448
+ });
30417
32449
  case "datetime-selection": return /* @__PURE__ */ jsx(DefaultDateTimeSelectionStep, {
30418
32450
  booking,
30419
- errorSummaryId
32451
+ errorSummaryId,
32452
+ presentation
32453
+ });
32454
+ case "payment-selection": return /* @__PURE__ */ jsx(HeadlessBookingPaymentSelectionStep, {
32455
+ booking,
32456
+ presentation
30420
32457
  });
30421
- case "payment-selection": return /* @__PURE__ */ jsx(HeadlessBookingPaymentSelectionStep, { booking });
30422
32458
  case "custom-fields": return /* @__PURE__ */ jsx(DefaultBookingDetailsStep, { booking });
30423
32459
  default: return assertNever$2(stepId);
30424
32460
  }
30425
32461
  }
30426
- function DefaultServiceSelectionStep({ booking }) {
32462
+ function DefaultServiceSelectionStep({ booking, presentation }) {
30427
32463
  const services = booking.services.items;
30428
32464
  const resources = booking.resources.items;
30429
32465
  const selectedResourceId = booking.resources.selectedResourceId;
@@ -30433,7 +32469,9 @@ function DefaultServiceSelectionStep({ booking }) {
30433
32469
  return /* @__PURE__ */ jsxs("div", {
30434
32470
  className: "rb-reg-stack",
30435
32471
  children: [
30436
- showServiceSelect ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h2", {
32472
+ showServiceSelect ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(BookingStepPrompt, {
32473
+ presentation,
32474
+ as: "h2",
30437
32475
  className: "ab-title",
30438
32476
  children: "Choose a service"
30439
32477
  }), /* @__PURE__ */ jsx(DefaultServiceChoices, { booking })] }) : null,
@@ -30463,19 +32501,22 @@ function DefaultServiceSelectionStep({ booking }) {
30463
32501
  booking,
30464
32502
  resources,
30465
32503
  selectedResourceId,
30466
- allowAnyResource
32504
+ allowAnyResource,
32505
+ presentation
30467
32506
  }) : null
30468
32507
  ]
30469
32508
  });
30470
32509
  }
30471
- function DefaultResourceChoices({ allowAnyResource, booking, resources, selectedResourceId }) {
32510
+ function DefaultResourceChoices({ allowAnyResource, booking, resources, selectedResourceId, presentation }) {
30472
32511
  const headingId = React.useId();
30473
32512
  return /* @__PURE__ */ jsxs("div", {
30474
32513
  className: "rb-reg-stack rb-reg-stack--sm",
30475
32514
  role: "group",
30476
32515
  "aria-labelledby": headingId,
30477
32516
  children: [
30478
- /* @__PURE__ */ jsxs("h3", {
32517
+ /* @__PURE__ */ jsxs(BookingStepPrompt, {
32518
+ presentation,
32519
+ as: "h3",
30479
32520
  id: headingId,
30480
32521
  className: "ab-subtitle",
30481
32522
  children: ["Who would you like to see?", booking.resources.requiresSelection ? null : /* @__PURE__ */ jsx(OptionalMark$1, {})]
@@ -30544,7 +32585,7 @@ function BookingAvailabilityFeedback({ availability }) {
30544
32585
  children: error
30545
32586
  }) : null;
30546
32587
  }
30547
- function DefaultDateTimeSelectionStep({ booking, errorSummaryId }) {
32588
+ function DefaultDateTimeSelectionStep({ booking, errorSummaryId, presentation }) {
30548
32589
  const selectedDate = booking.availability.selectedDate ?? "";
30549
32590
  const selectedSlotKey = booking.availability.selectedSlot?.key ?? "";
30550
32591
  const slots = deriveBookingSlotDisplayOptions({
@@ -30556,7 +32597,7 @@ function DefaultDateTimeSelectionStep({ booking, errorSummaryId }) {
30556
32597
  return /* @__PURE__ */ jsxs("div", {
30557
32598
  className: "rb-reg-stack",
30558
32599
  children: [
30559
- /* @__PURE__ */ jsx(BookingSelectedServiceSummary, { services: booking.services }),
32600
+ presentation.showSelectedServiceSummary ? /* @__PURE__ */ jsx(BookingSelectedServiceSummary, { services: booking.services }) : null,
30560
32601
  /* @__PURE__ */ jsx(BookingAvailabilityFeedback, { availability: booking.availability }),
30561
32602
  /* @__PURE__ */ jsx(DatePicker, {
30562
32603
  dateContext: booking.availability.dateContext,
@@ -30615,7 +32656,7 @@ function paymentStepUnavailableMessage(booking) {
30615
32656
  function paymentStepTitle(booking) {
30616
32657
  return booking.payment.selection?.sectionTitle ?? "How would you like to pay?";
30617
32658
  }
30618
- function HeadlessBookingPaymentSelectionStep({ booking }) {
32659
+ function HeadlessBookingPaymentSelectionStep({ booking, presentation = bookingPresentation() }) {
30619
32660
  const service = booking.services.selected;
30620
32661
  const { perSessionOffered, perSessionOptions, otherRows, onlyOneWayToPay } = planPaymentStepChoices(booking);
30621
32662
  const unavailableMessage = paymentStepUnavailableMessage(booking);
@@ -30630,7 +32671,9 @@ function HeadlessBookingPaymentSelectionStep({ booking }) {
30630
32671
  children: [
30631
32672
  /* @__PURE__ */ jsxs("div", {
30632
32673
  className: "rb-reg-summary",
30633
- children: [/* @__PURE__ */ jsx("h3", {
32674
+ children: [/* @__PURE__ */ jsx(BookingStepPrompt, {
32675
+ presentation,
32676
+ as: "h3",
30634
32677
  className: "ab-subtitle",
30635
32678
  children: paymentStepTitle(booking)
30636
32679
  }), /* @__PURE__ */ jsx("p", {
@@ -31191,11 +33234,16 @@ function getBookingRedirectLocationSnapshot() {
31191
33234
  * Themed surface container for every booking view state (wizard, success,
31192
33235
  * verifying). Styled by the shared registration-surface layer.
31193
33236
  */
31194
- function BookingSurface({ id, className, children }) {
31195
- return /* @__PURE__ */ jsx("div", {
31196
- id,
31197
- className: ["rb-reg-surface", className ?? ""].join(" ").trim(),
31198
- children
33237
+ function BookingSurface({ id, className, pageKind, children }) {
33238
+ const classes = ["rb-reg-surface", className ?? ""].join(" ").trim();
33239
+ return /* @__PURE__ */ jsx(BookingPanelArrangement, {
33240
+ pageKind,
33241
+ children: /* @__PURE__ */ jsx("div", {
33242
+ id,
33243
+ ...bookingPresentation(pageKind).panelAttributes,
33244
+ className: classes,
33245
+ children
33246
+ })
31199
33247
  });
31200
33248
  }
31201
33249
  const BookingFormClient = ({ siteId: siteIdProp, render }) => {
@@ -31306,6 +33354,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
31306
33354
  setLocalCustomerEmail
31307
33355
  });
31308
33356
  if (viewState.kind === "success") return /* @__PURE__ */ jsx(BookingSurface, {
33357
+ pageKind: render.hydration.pageKind,
31309
33358
  id: bookingAnchorId,
31310
33359
  className: render.display.className,
31311
33360
  children: /* @__PURE__ */ jsx(BookingFormCompletion, {
@@ -31321,6 +33370,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
31321
33370
  })
31322
33371
  });
31323
33372
  if (viewState.kind === "verifying") return /* @__PURE__ */ jsx(BookingSurface, {
33373
+ pageKind: render.hydration.pageKind,
31324
33374
  id: bookingAnchorId,
31325
33375
  className: render.display.className,
31326
33376
  children: /* @__PURE__ */ jsx(FeedbackMessage, {
@@ -31334,6 +33384,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
31334
33384
  })
31335
33385
  });
31336
33386
  if (viewState.kind === "timeout") return /* @__PURE__ */ jsxs(BookingSurface, {
33387
+ pageKind: render.hydration.pageKind,
31337
33388
  id: bookingAnchorId,
31338
33389
  className: render.display.className,
31339
33390
  children: [/* @__PURE__ */ jsx(FeedbackMessage, {
@@ -31353,6 +33404,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
31353
33404
  })]
31354
33405
  });
31355
33406
  return /* @__PURE__ */ jsx(BookingSurface, {
33407
+ pageKind: render.hydration.pageKind,
31356
33408
  id: bookingAnchorId,
31357
33409
  className: render.display.className,
31358
33410
  children: /* @__PURE__ */ jsxs(AppointmentNavigationContent, {
@@ -31379,7 +33431,8 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
31379
33431
  }) : null,
31380
33432
  /* @__PURE__ */ jsx(HeadlessBookingDefaultForm, {
31381
33433
  booking,
31382
- onSubmit: handleComplete
33434
+ onSubmit: handleComplete,
33435
+ pageKind: render.hydration.pageKind
31383
33436
  })
31384
33437
  ]
31385
33438
  })
@@ -32229,7 +34282,7 @@ function key(siteId, submissionId) {
32229
34282
  }
32230
34283
  function savePendingRegistration(siteId, submissionId, data) {
32231
34284
  try {
32232
- const entry = schema.safeParse({
34285
+ const entry = z.safeParse(schema, {
32233
34286
  ...data,
32234
34287
  ticketSelections: normalizeTicketSelectionLines(data.ticketSelections),
32235
34288
  version: 6,
@@ -32241,7 +34294,7 @@ function savePendingRegistration(siteId, submissionId, data) {
32241
34294
  function getPendingRegistration(siteId, submissionId) {
32242
34295
  try {
32243
34296
  const stored = sessionStorage.getItem(key(siteId, submissionId));
32244
- const parsed = schema.safeParse(stored ? JSON.parse(stored) : null);
34297
+ const parsed = z.safeParse(schema, stored ? JSON.parse(stored) : null);
32245
34298
  if (!parsed.success || Date.now() - parsed.data.timestamp > STALE_THRESHOLD_MS) {
32246
34299
  clearPendingRegistration(siteId, submissionId);
32247
34300
  return null;
@@ -32260,7 +34313,7 @@ function cleanupStaleRegistrations() {
32260
34313
  try {
32261
34314
  Array.from({ length: sessionStorage.length }, (_, index) => sessionStorage.key(index)).filter((item) => item !== null && item.startsWith(STORAGE_PREFIX)).forEach((item) => {
32262
34315
  try {
32263
- const parsed = schema.safeParse(JSON.parse(sessionStorage.getItem(item) ?? "null"));
34316
+ const parsed = z.safeParse(schema, JSON.parse(sessionStorage.getItem(item) ?? "null"));
32264
34317
  if (!parsed.success || Date.now() - parsed.data.timestamp > STALE_THRESHOLD_MS) sessionStorage.removeItem(item);
32265
34318
  } catch {
32266
34319
  sessionStorage.removeItem(item);
@@ -34515,12 +36568,12 @@ function getSelectedPassCreditsRemaining(wizard) {
34515
36568
  function resolveEntitlementSummaryCopy(method, passCreditsRemaining) {
34516
36569
  switch (method) {
34517
36570
  case "pass": return {
34518
- productPrice: "1 credit",
36571
+ productPrice: formatCreditProductUnits("event_pass", 1),
34519
36572
  pricingNote: formatPassCreditUsageLabel(passCreditsRemaining)
34520
36573
  };
34521
36574
  case "pass_bundle": return {
34522
36575
  productPrice: null,
34523
- pricingNote: "1 pass credit"
36576
+ pricingNote: formatPassCreditUsageLabel(null)
34524
36577
  };
34525
36578
  case "membership": return {
34526
36579
  productPrice: "Included",
@@ -34588,11 +36641,15 @@ function DeclinedPassRow(props) {
34588
36641
  children: /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
34589
36642
  className: "er-summary-bar-product-name",
34590
36643
  children: props.passName
34591
- }), /* @__PURE__ */ jsx("button", {
36644
+ }), /* @__PURE__ */ jsxs("button", {
34592
36645
  type: "button",
34593
36646
  className: "er-summary-bar-pass-escape",
34594
36647
  onClick: props.onUsePass,
34595
- children: "Use 1 credit instead"
36648
+ children: [
36649
+ "Use ",
36650
+ formatCreditProductUnits("event_pass", 1),
36651
+ " from your pass instead"
36652
+ ]
34596
36653
  })] })
34597
36654
  });
34598
36655
  }
@@ -34929,7 +36986,7 @@ function EventRegistrationWizardActions(props) {
34929
36986
  }
34930
36987
  //#endregion
34931
36988
  //#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
34932
- const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-8-qtHjpb.mjs"));
36989
+ const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-CKe4cjZ4.mjs"));
34933
36990
  /** The one Stripe mount, shared by the standard wizard and headless arrangements. */
34934
36991
  function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
34935
36992
  if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
@@ -35394,7 +37451,7 @@ function TicketCounter(props) {
35394
37451
  onClick: () => onTicketsChange(stepNumber(ticketsCount, -1, { min: minAllowed })),
35395
37452
  disabled: ticketsCount <= minAllowed,
35396
37453
  className: "er-counter-btn",
35397
- children: "-"
37454
+ children: "−"
35398
37455
  }),
35399
37456
  /* @__PURE__ */ jsx("span", {
35400
37457
  className: "er-counter-value",
@@ -35426,7 +37483,7 @@ function TicketCounterLimit(props) {
35426
37483
  }
35427
37484
  function BookingUnitSessionHint(props) {
35428
37485
  const count = props.bookingUnit.includedSessionCount;
35429
- return props.bookingUnit.kind === "place" && count ? /* @__PURE__ */ jsxs("p", {
37486
+ return props.bookingUnit.kind === "place" && count && count > 1 ? /* @__PURE__ */ jsxs("p", {
35430
37487
  className: "er-text er-text--muted",
35431
37488
  children: [
35432
37489
  "Every place includes all ",
@@ -35450,10 +37507,6 @@ function BookingQuantityPrompt(props) {
35450
37507
  ]
35451
37508
  });
35452
37509
  }
35453
- function formatCurrencyInputAmount(amount) {
35454
- const major = amount / 100;
35455
- return Number.isInteger(major) ? String(major) : major.toFixed(2);
35456
- }
35457
37510
  function SlidingScaleAmountField(props) {
35458
37511
  const minLabel = formatPrice(props.slidingScale.minAmount, props.currency);
35459
37512
  const maxLabel = formatPrice(props.slidingScale.maxAmount, props.currency);
@@ -35469,8 +37522,8 @@ function SlidingScaleAmountField(props) {
35469
37522
  /* @__PURE__ */ jsx("input", {
35470
37523
  id: "er-sliding-amount",
35471
37524
  type: "number",
35472
- min: formatCurrencyInputAmount(props.slidingScale.minAmount),
35473
- max: formatCurrencyInputAmount(props.slidingScale.maxAmount),
37525
+ min: formatCentsAsCurrencyInput(props.slidingScale.minAmount),
37526
+ max: formatCentsAsCurrencyInput(props.slidingScale.maxAmount),
35474
37527
  step: "0.01",
35475
37528
  inputMode: "decimal",
35476
37529
  className: "form-input",
@@ -36382,8 +38435,8 @@ function ownedPassChoices(eligibility) {
36382
38435
  productName: pass.passName
36383
38436
  },
36384
38437
  label: pass.passName,
36385
- details: [`${pass.creditsRemaining} credit${pass.creditsRemaining !== 1 ? "s" : ""} left`],
36386
- price: "1 credit"
38438
+ details: [`${formatCreditProductUnits("event_pass", pass.creditsRemaining)} left`],
38439
+ price: formatCreditProductUnits("event_pass", 1)
36387
38440
  }));
36388
38441
  }
36389
38442
  function ownedMembershipChoices(eligibility) {
@@ -37699,6 +39752,18 @@ function waitForRetry(milliseconds, signal) {
37699
39752
  }
37700
39753
  //#endregion
37701
39754
  //#region ../blocks/src/system/runtime/nodes/event-registration.client.tsx
39755
+ /** Editor rendering uses the same panel as SSR; closed panels retain a recovery-only island. */
39756
+ function EventRegistrationBlockClient(props) {
39757
+ const selection = resolveBookingPanelSelection(props);
39758
+ if (!selection) return /* @__PURE__ */ jsx(EventRegistrationIslandClient, { ...props });
39759
+ const panel = planEventBookingPanel(selection, new Date(props.now));
39760
+ const registration = registrationSourceForPanel(props, panel);
39761
+ return /* @__PURE__ */ jsx(EventBookingPanelView, {
39762
+ panel,
39763
+ pageKind: props.pageKind ?? "fullPage",
39764
+ children: registration ? /* @__PURE__ */ jsx(EventRegistrationIslandClient, { ...buildEventRegistrationInteractiveIslandProps(registration) }) : null
39765
+ });
39766
+ }
37702
39767
  function toEventRegistrationClientProps(props, display) {
37703
39768
  return {
37704
39769
  ...props.render.hydration,
@@ -37749,7 +39814,7 @@ const EventRegistrationIslandClient = (props) => {
37749
39814
  const recoveryRequest = useEventRegistrationRecoveryRequest();
37750
39815
  const display = props.render.display;
37751
39816
  const surface = registrationAdmissionSurface({
37752
- availability: display.state === "registration-closed" ? "closed" : "open",
39817
+ availability: props.render.hydration.admission === "recoveryOnly" ? "empty" : display.state === "registration-closed" ? "closed" : "open",
37753
39818
  recoveryRequested: recoveryRequest !== "none"
37754
39819
  });
37755
39820
  switch (surface) {
@@ -37782,7 +39847,10 @@ function RecoverableEventRegistrationClient({ props, display, recoveryRequest })
37782
39847
  default: return assertNever$2(recoveryRequest);
37783
39848
  }
37784
39849
  switch (recovery.kind) {
37785
- case "loading": return /* @__PURE__ */ jsx(LoadingEventRegistrationSource, { display });
39850
+ case "loading": return /* @__PURE__ */ jsx(LoadingEventRegistrationSource, {
39851
+ display,
39852
+ pageKind: props.render.hydration.pageKind
39853
+ });
37786
39854
  case "exhausted": return /* @__PURE__ */ jsx(UnavailableEventRegistrationSource, {
37787
39855
  retry: recovery.retry,
37788
39856
  buttonVariant: props.render.hydration.buttonVariant
@@ -37795,21 +39863,20 @@ function RecoverableEventRegistrationClient({ props, display, recoveryRequest })
37795
39863
  default: return assertNever$2(recovery);
37796
39864
  }
37797
39865
  }
37798
- function LoadingEventRegistrationSource({ display }) {
39866
+ function LoadingEventRegistrationSource({ display, pageKind }) {
37799
39867
  return /* @__PURE__ */ jsxs("div", {
37800
39868
  id: EVENT_REGISTRATION_ANCHOR_ID,
37801
39869
  className: "rb-reg-surface er-container er-registration-shell",
37802
39870
  "aria-busy": "true",
37803
39871
  role: "status",
37804
39872
  children: [
37805
- /* @__PURE__ */ jsx("p", {
39873
+ bookingPresentation(pageKind).showShellHeading ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("p", {
37806
39874
  className: "er-registration-shell__eyebrow",
37807
39875
  children: "Registration"
37808
- }),
37809
- /* @__PURE__ */ jsx("h3", {
39876
+ }), /* @__PURE__ */ jsx("h3", {
37810
39877
  className: "er-title er-registration-shell__title",
37811
39878
  children: display.state === "generic-shell" ? display.titleText : "Event registration"
37812
- }),
39879
+ })] }) : null,
37813
39880
  /* @__PURE__ */ jsx("p", {
37814
39881
  className: "er-text er-text--muted",
37815
39882
  children: "Loading event dates…"
@@ -37861,6 +39928,7 @@ function RecoveredEventRegistrationClient({ props, display, events: recoveredEve
37861
39928
  function toEventDetailsClientProps(props) {
37862
39929
  return {
37863
39930
  arrangement: props.arrangement,
39931
+ quickFacts: props.quickFacts,
37864
39932
  entryTitle: props.entryTitle,
37865
39933
  actionSize: props.actionSize,
37866
39934
  lookSlots: props.lookSlots,
@@ -37884,7 +39952,7 @@ function toEventDetailsClientProps(props) {
37884
39952
  siteMemberships: props.siteMemberships ? { memberships: [...props.siteMemberships.memberships] } : props.siteMemberships,
37885
39953
  autoApplyDiscount: props.autoApplyDiscount ?? null,
37886
39954
  className: props.className,
37887
- nowIso: props.nowIso
39955
+ now: props.now
37888
39956
  };
37889
39957
  }
37890
39958
  function EventDetailsClient(props) {
@@ -40003,7 +42071,8 @@ function createInitialGiftingClientState(initialOffers) {
40003
42071
  offers: initialOffers,
40004
42072
  submittingOfferId: null,
40005
42073
  errorMessage: null,
40006
- purchaseNotice: null
42074
+ purchaseNotice: null,
42075
+ submissions: /* @__PURE__ */ new Map()
40007
42076
  };
40008
42077
  }
40009
42078
  function giftingClientReducer(state, action) {
@@ -40020,7 +42089,8 @@ function giftingClientReducer(state, action) {
40020
42089
  case "checkoutStarted": return {
40021
42090
  ...state,
40022
42091
  submittingOfferId: action.offerId,
40023
- errorMessage: null
42092
+ errorMessage: null,
42093
+ submissions: new Map([...state.submissions, [action.offerId, action.submission]])
40024
42094
  };
40025
42095
  case "checkoutFailed": return {
40026
42096
  ...state,
@@ -40031,6 +42101,10 @@ function giftingClientReducer(state, action) {
40031
42101
  ...state,
40032
42102
  purchaseNotice: action.notice
40033
42103
  };
42104
+ case "pageRestored": return {
42105
+ ...state,
42106
+ submittingOfferId: null
42107
+ };
40034
42108
  default: return assertNever$2(action);
40035
42109
  }
40036
42110
  }
@@ -40077,6 +42151,7 @@ function buildGiftingCheckoutInput(formData, input) {
40077
42151
  const customAmount = formData.get("customAmount");
40078
42152
  const amountCents = input.kind === "gift_card" ? selectedAmount === "custom" ? Math.round(Number(customAmount ?? 0) * 100) : Number(selectedAmount ?? 0) : null;
40079
42153
  return {
42154
+ purchaseToken: input.purchaseToken,
40080
42155
  offerId: input.offerId,
40081
42156
  purchaserName: readFormString("purchaserName") || null,
40082
42157
  purchaserEmail: readFormString("purchaserEmail"),
@@ -40089,6 +42164,13 @@ function buildGiftingCheckoutInput(formData, input) {
40089
42164
  cancelUrl: input.cancelUrl
40090
42165
  };
40091
42166
  }
42167
+ /** Retries of the same form keep one purchase; changed details start another. */
42168
+ function giftingSubmission(previous, fields, createToken) {
42169
+ return previous?.fields === fields ? previous : {
42170
+ fields,
42171
+ token: createToken()
42172
+ };
42173
+ }
40092
42174
  //#endregion
40093
42175
  //#region ../blocks/src/system/runtime/nodes/gifting.client.tsx
40094
42176
  function formatCurrency(amountCents, currency) {
@@ -40135,18 +42217,29 @@ function GiftingClient(props) {
40135
42217
  cancelled = true;
40136
42218
  };
40137
42219
  }, [api, state.offers]);
42220
+ useEffect(() => {
42221
+ const onPageShow = (event) => {
42222
+ if (event.persisted) dispatch({ type: "pageRestored" });
42223
+ };
42224
+ window.addEventListener("pageshow", onPageShow);
42225
+ return () => window.removeEventListener("pageshow", onPageShow);
42226
+ }, []);
40138
42227
  const hasOffers = hasPublicGiftingOffers(state.offers);
40139
42228
  async function handleSubmit(event, offerId, kind) {
40140
42229
  event.preventDefault();
40141
42230
  if (!siteTerms.requireAgreement("commerce")) return;
40142
42231
  const formData = new FormData(event.currentTarget);
42232
+ const fields = JSON.stringify([...formData.entries()]);
42233
+ const submission = giftingSubmission(state.submissions.get(offerId), fields, () => crypto.randomUUID());
40143
42234
  dispatch({
40144
42235
  type: "checkoutStarted",
40145
- offerId
42236
+ offerId,
42237
+ submission
40146
42238
  });
40147
42239
  try {
40148
42240
  const checkout = await siteTerms.api.createGiftingCheckout(buildGiftingCheckoutInput(formData, {
40149
42241
  offerId,
42242
+ purchaseToken: submission.token,
40150
42243
  kind,
40151
42244
  successUrl: buildGiftingCheckoutReturnUrl(window.location.href, "success"),
40152
42245
  cancelUrl: buildGiftingCheckoutReturnUrl(window.location.href, "cancelled")
@@ -44579,7 +46672,7 @@ const runtimeBackedBlockClientEntries = {
44579
46672
  cart: defineRuntimeBackedBlockClientEntry("cart", CartClient),
44580
46673
  checkout: defineRuntimeBackedBlockClientEntry("checkout", CheckoutClient),
44581
46674
  gifting: defineRuntimeBackedBlockClientEntry("gifting", GiftingClient),
44582
- "event-registration": defineRuntimeBackedBlockClientEntry("event-registration", EventRegistrationIslandClient),
46675
+ "event-registration": defineRuntimeBackedBlockClientEntry("event-registration", EventRegistrationBlockClient),
44583
46676
  shop: defineRuntimeBackedBlockClientEntry("shop", ShopClient)
44584
46677
  };
44585
46678
  const runtimeBackedBlockClientRegistry = {
@@ -47375,6 +49468,28 @@ function ChosenPlace({ address, chosenName, siteCountry, fieldsOpen, onToggleFie
47375
49468
  }
47376
49469
  //#endregion
47377
49470
  //#region ../bookings/dist/index.js
49471
+ const BOOKING_CURRENCY_OPTIONS = [
49472
+ {
49473
+ value: "GBP",
49474
+ label: "GBP"
49475
+ },
49476
+ {
49477
+ value: "EUR",
49478
+ label: "EUR"
49479
+ },
49480
+ {
49481
+ value: "USD",
49482
+ label: "USD"
49483
+ },
49484
+ {
49485
+ value: "AUD",
49486
+ label: "AUD"
49487
+ },
49488
+ {
49489
+ value: "CAD",
49490
+ label: "CAD"
49491
+ }
49492
+ ];
47378
49493
  const BASE_BOOKING_COUNTRY_OPTIONS = [
47379
49494
  {
47380
49495
  value: "GB",
@@ -47437,6 +49552,12 @@ const BASE_BOOKING_COUNTRY_OPTIONS = [
47437
49552
  label: "Spain"
47438
49553
  }
47439
49554
  ];
49555
+ /** Launch selection only; full locale support stays available for #1736. */
49556
+ const BOOKING_LAUNCH_LOCALES = [{
49557
+ countryCode: "GB",
49558
+ currency: "GBP"
49559
+ }];
49560
+ BOOKING_CURRENCY_OPTIONS.filter((option) => BOOKING_LAUNCH_LOCALES.some((locale) => locale.currency === option.value));
47440
49561
  function normalizeBookingCountryCode(value) {
47441
49562
  const normalized = value?.trim().toUpperCase() ?? "";
47442
49563
  return /^[A-Z]{2}$/.test(normalized) ? normalized : null;
@@ -47939,15 +50060,15 @@ function usePreviewTheme(siteId, enabled) {
47939
50060
  }
47940
50061
  //#endregion
47941
50062
  //#region ../editor-blocks/src/widgets/location/PickerMapArea.tsx
47942
- const LazyEditMap = lazy(() => import("./MapLibreEditMap-CKjYUp_E.mjs").then((mod) => ({ default: mod.MapLibreEditMap })));
50063
+ const LazyEditMap = lazy(() => import("./MapLibreEditMap-CaUOTCSh.mjs").then((mod) => ({ default: mod.MapLibreEditMap })));
47943
50064
  function EditMap(props) {
47944
50065
  return /* @__PURE__ */ jsx(Suspense, {
47945
50066
  fallback: null,
47946
50067
  children: /* @__PURE__ */ jsx(LazyEditMap, { ...props })
47947
50068
  });
47948
50069
  }
47949
- const TAB_LIST = "h-auto gap-0.5 rounded-full bg-[var(--surface,var(--muted))] p-[3px] [&>[role=tab]:not(:last-child)]:mr-0";
47950
- const TAB = "h-auto rounded-full px-3 py-[5px] text-[13px] font-medium data-[state=active]:shadow-[0_1px_3px_rgba(0,0,0,0.1)]";
50070
+ const TAB_LIST = "h-auto gap-0.5 rounded-full border-b-0 shadow-none bg-[var(--surface,var(--muted))] p-[3px]";
50071
+ const TAB = "h-auto rounded-full border-b-0 px-3 py-[5px] text-[13px] font-medium data-[state=active]:bg-background data-[state=active]:shadow-[0_1px_3px_rgba(0,0,0,0.1)]";
47951
50072
  /** "Place the pin" and "Preview on your site". The edit map unmounts while the preview shows. */
47952
50073
  function PickerMapArea(props) {
47953
50074
  const [tab, setTab] = useState("pin");
@@ -49353,6 +51474,20 @@ const locationWidgetOverrides = {
49353
51474
  locationSourceSelect: LocationSourceSelectField
49354
51475
  };
49355
51476
  //#endregion
51477
+ //#region ../preview-next/src/client/preview/siteColourCss.ts
51478
+ /** A token's colour as CSS: the site's value when known, otherwise the variable in scope. */
51479
+ function siteColourCss(variables, token) {
51480
+ const channels = variables?.[`--tb-${token}`];
51481
+ return channels ? `rgb(${channels})` : `rgb(var(--tb-${token}))`;
51482
+ }
51483
+ /**
51484
+ * The colour variables a compiled theme's CSS variables paint with, for
51485
+ * controls drawn outside the site (the preview sidebar, the dashboard).
51486
+ */
51487
+ function siteColourVariablesFrom(cssVars) {
51488
+ return Object.fromEntries(Object.entries(cssVars).flatMap(([key, value]) => key.startsWith("--tb-") && typeof value === "string" ? [[key, value]] : []));
51489
+ }
51490
+ //#endregion
49356
51491
  //#region ../preview-next/src/client/blocks/renderPrecedence.ts
49357
51492
  /** A block's content as the preview renders it, from the tab's render source. */
49358
51493
  function renderedBlockContent(uiStore, blockId) {
@@ -49603,7 +51738,7 @@ function PreviewCompiledThemeProvider({ children, responsiveMode }) {
49603
51738
  return {
49604
51739
  theme,
49605
51740
  runtime,
49606
- colourVariables: Object.fromEntries(Object.entries(runtime.cssVars).flatMap(([key, value]) => key.startsWith("--tb-") && typeof value === "string" ? [[key, value]] : []))
51741
+ colourVariables: siteColourVariablesFrom(runtime.cssVars)
49607
51742
  };
49608
51743
  }, [theme, responsiveMode]);
49609
51744
  return /* @__PURE__ */ jsx(CompiledPreviewThemeContext.Provider, {
@@ -49900,12 +52035,11 @@ function CustomizeBackgroundColorPicker({ title = "Colors", selectedToken, recom
49900
52035
  children: [/* @__PURE__ */ jsx("div", {
49901
52036
  className: "text-xs font-medium text-muted-foreground",
49902
52037
  children: title
49903
- }), onChooseDefault ? /* @__PURE__ */ jsx("button", {
49904
- type: "button",
49905
- className: `rounded-md border px-2 py-1 text-xs hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50 ${defaultSelected ? "border-foreground" : "bg-background"}`,
52038
+ }), onChooseDefault ? /* @__PURE__ */ jsx(DefaultChoiceButton, {
52039
+ label: defaultLabel,
52040
+ selected: defaultSelected,
49906
52041
  disabled,
49907
- onClick: onChooseDefault,
49908
- children: defaultLabel
52042
+ onClick: onChooseDefault
49909
52043
  }) : null]
49910
52044
  }), hasTokens ? /* @__PURE__ */ jsx(CustomizeColorTokenPicker, {
49911
52045
  title,
@@ -49920,10 +52054,19 @@ function CustomizeBackgroundColorPicker({ title = "Colors", selectedToken, recom
49920
52054
  showTitle: false
49921
52055
  }) : null] });
49922
52056
  }
52057
+ function DefaultChoiceButton({ label, selected, disabled, onClick }) {
52058
+ return /* @__PURE__ */ jsx("button", {
52059
+ type: "button",
52060
+ disabled,
52061
+ onClick,
52062
+ className: cn$1("rounded-md border px-2 py-1 text-xs hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50", selected ? CHOSEN_OPTION_CLASS : "bg-background"),
52063
+ children: label
52064
+ });
52065
+ }
49923
52066
  function ColorTokenButton({ token, label, swatchColor, selected, disabled, onClick }) {
49924
52067
  return /* @__PURE__ */ jsxs("button", {
49925
52068
  type: "button",
49926
- className: `flex min-w-0 items-center gap-2 rounded-md border px-2 py-1 text-left text-xs hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50 ${selected ? "border-foreground" : "bg-background"}`,
52069
+ className: cn$1("flex min-w-0 items-center gap-2 rounded-md border px-2 py-1 text-left text-xs hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50", selected ? CHOSEN_OPTION_CLASS : "bg-background"),
49927
52070
  disabled,
49928
52071
  "aria-label": `Choose ${label}`,
49929
52072
  onClick,
@@ -51090,4 +53233,4 @@ function tokenSwatchCss(token) {
51090
53233
  return `rgb(var(--tb-${token}))`;
51091
53234
  }
51092
53235
  //#endregion
51093
- export { useMediaEditorOptional as $, TabsTrigger as $t, applyPreviewRuntimeContentProjections as A, Text as At, resolveFooterLayoutHints as B, themeRuntimeScopeProps as Bt, isHeaderMenuSurfaceState as C, blockLookFromContent as Ct, usePreviewCompiledThemeOptional as D, buildAppointmentServicesView as Dt, usePreviewCompiledTheme as E, buildLoadedOfferingsPreviewListing as Et, locationWidgetOverrides as F, resolveEntryRouteTarget as Ft, getFooterEngagementAuthoringOptions as G, getResponsiveScopeSpec as Gt, SiteOptionWidgetProvider as H, escapeStyleContent as Ht, SessionJournalHost as I, resolvePageRouteTarget as It, updateFooterCredit as J, SearchInput as Jt, getPublicProfile as K, Toaster as Kt, useSiteEditorAdmission as L, resolveRouteTarget as Lt, runtimeContentDecorationProjectionFromServerPage as M, coerceLinkedContentEntriesPayload as Mt, mergeResolvedDataContext as N, getLinkedContentEntryMeta as Nt, pageDesignRuntimeProjectionFromSource as O, renderInlineText as Ot, withRenderedContentEntry as P, defaultTransforms as Pt, useMediaEditor as Q, TabsList as Qt, renderSiteChromeBlock as R, buildThemeDataAttrs as Rt, HeaderMenuControls as S, arrangementHooksFromContent as St, PreviewThemeRenderingProvider as T, getDefaultComponentRegistry as Tt, useSiteOptionWidgetContext as U, mergeContentWithBlockStyleOverrides as Ut, createEditorApiClientFactory as V, buildThemeRuntime as Vt, getFooterComposition as W, DEFAULT_THEME_RESPONSIVE_MODE as Wt, footerCreditLine as X, Tabs as Xt, updatePublicProfile as Y, Input as Yt, MediaEditorContextProvider as Z, TabsContent as Zt, resolvePreviewEditorGuidanceModel as _, validateFooterComposition as _n, useField as _t, PreviewChromeLayerProvider as a, Root as an, useImageResolveContextOptional as at, SiteFontStorageProvider as b, ThemeScopeCore as bt, PREVIEW_SITE_BANNER_ATTRIBUTE as c, classifyKnownMimeType as cn, BlockContextProvider as ct, CustomizeBackgroundColorPicker as d, parseFooterEngagementSection as dn, hasEmptyOption as dt, Content as en, useApiMediaUploader as et, canInspectSiteStyle as f, parseFooterModuleId as fn, mapCurrentValueForSelect as ft, sanitizeDashboardPath as g, upsertFooterEngagementSection as gn, FieldLabelText as gt, resolvePreviewDashboardSetupHandoff as h, setFooterSectionSelected as hn, FieldFrame as ht, PreviewChromeFloatingControl as i, Content$1 as in, ImageResolveContextProvider as it, entryFieldRebindingProjection as j, LINKED_CONTENT_ENTRY_META_KEY as jt, resolveRuntimePreviewSourceForTheme as k, logger as kt, planBlockToolbarPlacement as l, deriveFooterEditorOverview as ln, useBlockContext as lt, buildPreviewDashboardSetupUrl as m, resolveFooterSections as mn, unmapValueFromSelect as mt, SiteChromeSurfaceControls as n, Root2$1 as nn, clientComponentRegistry as nt, readThemeCustomProperties as o, Trigger$1 as on, FormNodeClient as ot, resolveSiteStyleAccess as p, removeFooterEngagementSection as pn, mapOptionValueForSelect as pt, updateFooterComposition as q, Textarea as qt, PreviewChromeFloatingBar as r, Trigger as rn, NewsletterFormClient as rt, measureSiteTopChromeClearance as s, defaultThemeTokens as sn, BlockApiProvider as st, SiteChromeCustomizeButton as t, List as tn, TransferError as tt, CustomizeBackgroundControlRows as u, normalizeLegacyFooterContentToV1 as un, SelectField as ut, resolvePreviewSetupBannerModel as v, footerArrangementPolicy as vn, useLinkedInlineTextField as vt, PreviewCompiledThemeProvider as w, readBlockComposition as wt, useSiteFontStorageUrl as x, makeDefaultBlockComponent as xt, resolvePreviewSidebarChromeModel as y, planFooterArrangement as yn, revealEditorElement as yt, buildFooterRuntimeViewModel as z, readThemeScopeContext as zt };
53236
+ export { useMediaEditor as $, SelectItem as $t, applyPreviewRuntimeContentProjections as A, upsertFooterEngagementSection as An, logger as At, buildFooterRuntimeViewModel as B, readThemeScopeContext as Bt, isHeaderMenuSurfaceState as C, deriveFooterEditorOverview as Cn, arrangementHooksFromContent as Ct, usePreviewCompiledThemeOptional as D, removeFooterEngagementSection as Dn, buildLoadedOfferingsPreviewListing as Dt, usePreviewCompiledTheme as E, parseFooterModuleId as En, getDefaultComponentRegistry as Et, siteColourCss as F, defaultTransforms as Ft, getFooterComposition as G, DEFAULT_THEME_RESPONSIVE_MODE as Gt, createEditorApiClientFactory as H, buildThemeRuntime as Ht, locationWidgetOverrides as I, resolveEntryRouteTarget as It, updateFooterComposition as J, ChoiceTileGroup as Jt, getFooterEngagementAuthoringOptions as K, getResponsiveScopeSpec as Kt, SessionJournalHost as L, resolvePageRouteTarget as Lt, runtimeContentDecorationProjectionFromServerPage as M, footerArrangementPolicy as Mn, LINKED_CONTENT_ENTRY_META_KEY as Mt, mergeResolvedDataContext as N, planFooterArrangement as Nn, coerceLinkedContentEntriesPayload as Nt, pageDesignRuntimeProjectionFromSource as O, resolveFooterSections as On, buildAppointmentServicesView as Ot, withRenderedContentEntry as P, getLinkedContentEntryMeta as Pt, MediaEditorContextProvider as Q, SelectContent as Qt, useSiteEditorAdmission as R, resolveRouteTarget as Rt, HeaderMenuControls as S, classifyKnownMimeType as Sn, makeDefaultBlockComponent as St, PreviewThemeRenderingProvider as T, parseFooterEngagementSection as Tn, readBlockComposition as Tt, SiteOptionWidgetProvider as U, escapeStyleContent as Ut, resolveFooterLayoutHints as V, themeRuntimeScopeProps as Vt, useSiteOptionWidgetContext as W, mergeContentWithBlockStyleOverrides as Wt, updatePublicProfile as X, Textarea as Xt, updateFooterCredit as Y, Toaster as Yt, footerCreditLine as Z, Select as Zt, resolvePreviewEditorGuidanceModel as _, Trigger as _n, FieldLabelText as _t, PreviewChromeLayerProvider as a, FieldTrigger as an, ImageResolveContextProvider as at, SiteFontStorageProvider as b, Trigger$1 as bn, revealEditorElement as bt, PREVIEW_SITE_BANNER_ATTRIBUTE as c, FIELD_SURFACE_CLASS as cn, BlockApiProvider as ct, CustomizeBackgroundColorPicker as d, TabsContent as dn, SelectField as dt, SelectTrigger as en, useMediaEditorOptional as et, canInspectSiteStyle as f, TabsList as fn, hasEmptyOption as ft, sanitizeDashboardPath as g, Root2$1 as gn, FieldFrame as gt, resolvePreviewDashboardSetupHandoff as h, List as hn, unmapValueFromSelect as ht, PreviewChromeFloatingControl as i, SearchInput as in, NewsletterFormClient as it, entryFieldRebindingProjection as j, validateFooterComposition as jn, Text as jt, resolveRuntimePreviewSourceForTheme as k, setFooterSectionSelected as kn, renderInlineText as kt, planBlockToolbarPlacement as l, useFieldDescribedBy as ln, BlockContextProvider as lt, buildPreviewDashboardSetupUrl as m, Content as mn, mapOptionValueForSelect as mt, SiteChromeSurfaceControls as n, usePrevious as nn, TransferError as nt, readThemeCustomProperties as o, Input as on, useImageResolveContextOptional as ot, resolveSiteStyleAccess as p, TabsTrigger as pn, mapCurrentValueForSelect as pt, getPublicProfile as q, CHOSEN_OPTION_CLASS as qt, PreviewChromeFloatingBar as r, clamp as rn, clientComponentRegistry as rt, measureSiteTopChromeClearance as s, FIELD_FOCUS_WITHIN_CLASS as sn, FormNodeClient as st, SiteChromeCustomizeButton as t, SelectValue as tn, useApiMediaUploader as tt, CustomizeBackgroundControlRows as u, Tabs as un, useBlockContext as ut, resolvePreviewSetupBannerModel as v, Content$1 as vn, useField as vt, PreviewCompiledThemeProvider as w, normalizeLegacyFooterContentToV1 as wn, blockLookFromContent as wt, useSiteFontStorageUrl as x, defaultThemeTokens as xn, ThemeScopeCore as xt, resolvePreviewSidebarChromeModel as y, Root as yn, useLinkedInlineTextField as yt, renderSiteChromeBlock as z, buildThemeDataAttrs as zt };