@riverbankcms/sdk 0.183.0 → 0.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
  9. package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
  10. package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
  11. package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
  12. package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
  13. package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
  14. package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +7 -7
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  26. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  28. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  29. package/dist/_dts/sdk/src/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
  54. package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
  55. package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
  56. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
  57. package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
  68. package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
  77. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
  78. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
  80. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  81. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
  82. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
  83. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
  84. package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
  85. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
  86. package/dist/client/bookings.mjs +5 -5
  87. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
  88. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
  89. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  90. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
  91. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  92. package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
  93. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
  94. package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
  95. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
  96. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
  97. package/dist/client/client.mjs +61 -48
  98. package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
  99. package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
  100. package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
  101. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
  102. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
  103. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
  104. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
  105. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
  106. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
  107. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
  108. package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
  109. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
  110. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
  111. package/dist/client/gifting/client.mjs +8 -8
  112. package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
  113. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
  114. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
  115. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
  116. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
  117. package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
  118. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
  119. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
  120. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
  121. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
  122. package/dist/client/portal/client.mjs +999 -81
  123. package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
  124. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
  125. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  126. package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
  127. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
  128. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
  129. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
  130. package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
  131. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
  132. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
  133. package/dist/client/rendering/client.mjs +28 -27
  134. package/dist/client/rendering/islands.mjs +1 -1
  135. package/dist/client/rendering.mjs +5 -5
  136. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
  137. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
  138. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
  139. package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
  140. package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
  141. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
  142. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
  143. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
  144. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
  145. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
  146. package/dist/client/spam-protection.mjs +1 -1
  147. package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
  148. package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
  149. package/dist/client/src-CXOxpNtj.mjs +3 -0
  150. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
  151. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
  152. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
  153. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
  154. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
  155. package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
  156. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
  157. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  158. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  159. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  160. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
  161. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
  162. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
  163. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
  164. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
  165. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  166. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  167. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
  168. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
  169. package/dist/preview-next/client/runtime.mjs +3 -3
  170. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
  171. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
  172. package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
  173. package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
  174. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
  175. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
  176. package/dist/preview-next/container-responsive.css +158 -3
  177. package/dist/preview-next/keepAlive.mjs +1 -1
  178. package/dist/preview-next/middleware.mjs +1 -1
  179. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
  180. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
  181. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
  182. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
  183. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
  184. package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
  185. package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
  186. package/dist/server/config-validation.mjs +1 -1
  187. package/dist/server/config.mjs +2 -2
  188. package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
  189. package/dist/server/data/resolveBlockData.mjs +1 -1
  190. package/dist/server/index.mjs +3 -3
  191. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
  192. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
  193. package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
  194. package/dist/server/manifest.mjs +2 -2
  195. package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
  196. package/dist/server/navigation.mjs +1 -1
  197. package/dist/server/next.mjs +9 -9
  198. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
  199. package/dist/server/page-converter.mjs +17 -4
  200. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
  201. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
  202. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
  203. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
  204. package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
  205. package/dist/server/portal.mjs +3 -3
  206. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
  207. package/dist/server/prebuild.mjs +1 -1
  208. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
  209. package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
  210. package/dist/server/rendering/components/pageShared.mjs +1 -1
  211. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  212. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  213. package/dist/server/rendering/server.mjs +4 -4
  214. package/dist/server/rendering.mjs +9 -9
  215. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
  216. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
  217. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
  218. package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
  219. package/dist/server/server.mjs +3 -3
  220. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
  221. package/dist/server/theme-bridge.mjs +5 -4
  222. package/dist/server/theme.mjs +2 -2
  223. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
  224. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
  225. package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
  226. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
  227. package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
  228. package/dist/styles/index.css +684 -181
  229. package/package.json +1 -1
  230. package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
  231. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  232. package/dist/client/src-DqMbCjI1.mjs +0 -3
  233. package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
  234. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  235. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  236. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,19 +1,18 @@
1
- import { $ as parseThemeColorToken, A as surfaceInkDeclarations, C as SURFACE_INK_CSS_VARS, E as surfaceForegroundInputFromResolved, F as cssVarValue, H as staysInsideDeclaration, I as mergeStyles, L as rgbColorValue, N as backgroundColorStyle, O as surfaceForegroundValue, Q as parseColorTokenParts, R as textColorStyle, T as surfaceForegroundDeclarations, V as callsCssLoadingFunction, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, j as surfaceInkStyle, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, z as textColorValue } from "./types-vyz09w64.mjs";
2
- import { L as contrastRatio, M as resolveOpaqueSurfaceHex, U as hexToRgb, a as compositeHex, d as resolveSolidButtonColour, f as BUTTON_CONTRAST_POLICY, g as DEFAULT_BUTTON_SIZES, h as BORDER_WIDTH_MAP, j as resolveConcreteColorHex, p as formatButtonColourContractError, r as expandPalette, u as compileButtonColourStates, v as FONT_SIZE_MAP, y as generateShadowValue$1 } from "./expandPalette-DxPrNOAB.mjs";
3
- import { $ as parseStoredVariant, A as eventCardListContent, B as eventCategoryBadge, C as resolvePageRouteTarget, D as MonthLookView, E as EVENT_REGISTRATION_ANCHOR_ID, F as createPresentationPageReader, G as formatCourseDatesAfter, H as MapPinIcon, I as EmptyState, J as resolveMonthSelectedDay, K as formatCourseSessions, L as CardListCollection, M as deriveEventScheduleSummary, N as derivePreviewRunSchedule, O as EventListingFrameView, P as createEditorPresentationPageReader, Q as formatEventDuration, R as CardListItems, S as resolveEntryRouteTarget, T as EventHeader, U as eventDisplayTitle, V as CalendarIcon, W as eventDisplayTitleText, X as selectQuickDateEvents, Y as formatEventQuickDate, Z as formatEventTeacherLine, _ as publicAppointmentLocationSchema, a as joinSlotKey, at as defaultThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, it as buildThemeTokens, j as offeringDatesBySeries, k as OfferingCourseCards, l as buildLinkedContentEditTarget, m as formatAppointmentDuration, n as createPageRenderPlanReader, o as renderedJoinLayout, p as defaultTransforms, q as buildMonthDay, s as retargetJoinsAcrossOmissions, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as EventItem } from "./pageRenderPlan-CdqJ1NQZ.mjs";
4
- import { $ as cardListPresentationSchemaShape, $i as when, $n as resolveSelectionBookingClosedDetail, $t as bookingPresentation, A as membershipCardListContent, An as getLocalDateKey, Ao as generateNavLinkCSS, At as buildOfferingsPreviewListing, Ba as selectItemSurfacePresentation, Bi as ctaButton, Bn as bookingPageKindSchema, Br as createInteractiveIslandCodec, Bt as resolveEventRegistrationScopedEvents, C as shopBlockDefinition, Ca as chosenString, Cc as publicEventPricingCurrency, Ci as testimonialsCarouselFragment, Cn as formatEventNextDateFact, Ct as resolveEventRegistrationEventSource, D as buildProductListInteractiveIslandProps, Di as ctaRowFragment, Dn as formatTime, Do as generateDefaultCardSystem, Dr as readRuntimeNow, Ds as pageTemplateFromEntry, E as buildProductDetailInteractiveIslandProps, Ec as resolveExactOrFreePriceDisplay, Ei as heroCtaRowFragment, Eo as resolveCardRole, Er as teamMemberCardBiography, Es as loadedReadinessFact, F as buildOfferingsCatalogueListing, Fa as themeButtonSelector, Fn as getOrderedDayNames, Ft as readOfferingsGrouping, G as buildEventCollectionListingDisplay, Gn as isDropInPublicEvent, Gr as listItemPresentation, Gt as getIconComponent, H as buildEventListingInteractiveIslandProps, Ha as authoredHeaderLinkForeground, Hn as hasCancelledRegistrationDate, Hr as createZodCodec, Ht as ThemedButton, I as offeringsCatalogueShape, Ia as AFFORDANCE_SUPPRESS_CLASS, In as getWeekCalendarDayTuple, It as resolveOfferingsPreviewGroupCta, J as eventCollectionSourceSchemaShape, Ja as headerNeedsPhotoShade, Jn as planOrdinarySeriesSelection, Jr as lookListPresentationSchemaShape, Js as orderedLiveRunSessions, Jt as eventListWeekDays, K as eventCollectionDisplaySchemaShape, Kn as isOrdinaryPublicEvent, Kr as listLookControl, Ks as CANCELLED_SESSION_STATUS, Kt as SpinnerNode, L as eventCalendarBlockDefinition, La as resolveHeaderRootForeground, Ln as getWeekCalendarDays, Lr as formBlockDefinition, Lt as resolveOfferingsPreviewGroups, M as passCardListContent, Mc as TokenResolver, Mi as normalizeBoxStylesBorder, Mn as addDays, Mo as resolveEffectApplications, Mt as normalizeOfferingsPreviewItemLimit, N as offeringsPreviewBlockDefinition, Ni as resolveCardRoleForBoxStyles, Nn as formatDateKey, No as resolveEffectPaint, Nr as staticHeaderChromeRuntime, Nt as offeringRunLifecycle, O as buildShopInteractiveIslandProps, Oa as eventReadinessResultSchema, Oc as formatCurrencyAmount, Oi as isBlockButtonRole, On as groupEventsByDate, Oo as generateFooterCss, Or as resolveDateRuntimeContext, Os as unavailableReadinessFact, P as publicRouteCandidatesSchema, Pa as parseThemeButtonVariantId, Pn as getDayOfWeek, Po as generateInteractiveChildInheritanceCSS, Pt as offeringsListingFor, Qa as arrangementLookHooks, Qi as el, Qr as clsx, Qs as parseMailingListRuntimeContext, R as buildEventCalendarInteractiveIslandProps, Rn as isSameCalendarDay, Rr as buildFormInteractiveIslandProps, Rt as resolveOfferingsRenderInput, S as productListBlockDefinition, Sc as isPublicEventPricingOptionDisplayable, Si as formCopyFragment, Sn as formatEventHourLabel, So as requireCuratedSiteStyle, Sr as splitPositioningClasses, St as buildEventRegistrationInteractiveIslandProps, T as buildCheckoutInteractiveIslandProps, Ta as eventReadinessLoaderKey, Tc as publicEventPricingType, Ti as ctaCopyFragment, Tn as formatEventTimeRange, Tr as teamMemberBiography, Ts as hiddenFromVisitors, Tt as previewStageSchema, U as buildEventCollectionDisplay, Ua as effectiveHeaderNavLinkStyle, Ui as bodyCopyFragment, Un as eventOccurrenceContext, Ur as defineClientOwnedBlockRuntime, Us as mapReadinessFact, Ut as ThemedButtonLink, V as eventListingBlockDefinition, Vi as layoutSectionGround, Vn as cancelledDateCopy, Vo as pageGround, Vr as defineInteractiveIslandMetaKeys, Vt as ThemedAuthoredButton, W as buildEventCollectionHydration, Wa as readOpeningToneProjection, Wi as defineFragment, Wn as getPublicEventCanonicalPath, Wr as defineProgressiveBlockRuntime, Wt as ThemedDownloadLink, X as listingEventCardProps, Xa as headerRootPaint, Xn as planWholeSeriesParentSelection, Xr as itemRole, Xs as resolveWholeSeriesPaymentDates, Y as catalogueEventCardProps, Ya as headerRootIsTransparent, Yn as planWholeSeriesParentBooking, Yr as resolvedItemSurfaceProps, Ys as resolveWholeSeriesBookingPhase, Yt as eventWeekGroupingContext, Z as CardListContentPart, Zi as runTransforms, Zn as planWholeSeriesRunSelection, Zr as Grid, Zs as buildMailingListSignupBlockSourceRef, _ as giftingBlockDefinition, _c as toUtcIsoDateTimeString, _i as faqAccordionFragment, _n as formatCalendarTitle, _r as shouldReserveFeatureCardIconZone, _s as blockBookingPaymentTermsSchema, _t as getCardOrientation, aa as CircleMinusIcon, an as blockSiteTermsSchema, ar as resolveEventPageLink, at as MediaPlaceholder, b as cartBlockDefinition, ba as parseFieldDefinitions, bi as singleButtonFragment, bn as formatEventCompactDateRail, br as composeHeaderSectionWrapperClassName, bs as beforeBookingQuestionsPresentationSchema, bt as lookPartShown, c as normalizeLocationMapProps, ca as FileArchiveIcon, cc as formatBookingCompactEnglishTime, ci as formatEventPrice, cn as closedDatesCopy, co as resolveEffectiveArrangement, cr as isInBookingCutOffWindow, d as resolveLocationMapLocation, da as FileTextIcon, dn as closedDateCopy, ea as buildGeneratedBlockIconRenderAssetLookupFromUnknown, ec as parseMailingListPlacementTargeting, en as browserReadAuthoritySchema, er as selectionRepresentativeEvent, es as anglePolygonCss, f as newsletterSignupBlockDefinition, fa as MinusIcon, fc as formatLocalScheduleDate, fn as cutOffDateCopy, fr as getEventAvailabilityStatus, g as newsletterBlockSubmissionMessage, ga as parseInlineTextFromUnknown, gc as parseLocalScheduleTime, gi as cardFragment, gr as resolveFeatureCardGeneratedIconSizePx, gs as publicEventsArraySchema, gt as EventQuickFacts, h as buildNewsletterFormInteractiveIslandProps, ha as isInlineTextEmpty, hc as parseBookingLocalDate, hi as headingFragment, hn as eventDateOptions, hr as FEATURE_CARD_ICON_TREATMENTS, ht as setContextResolveImageUrlContext, i as normalizeBlockContent, ia as ChevronDownIcon, ic as formatDate$1, in as formatEventLocation, ir as resolveEventCta, it as ImagePresets, j as membershipClassesLabel, ji as boxStyleClassNames, jn as getLocalMinuteOfDay, jo as generateEffectsCSS, jt as groupOfferingRunsByCourse, k as shopProductPresentation, ki as heroCopyFragment, kn as resolveEventTimeZone, ko as buildTextContrastShadow, kt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, l as normalizeLocationMapSource, la as FileAudioIcon, lc as toScheduledBookingDateTime, li as formatEventPriceAmount, ln as closedRunCopy, lr as formatEventRemainingPlaces, m as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ma as inlineTextToPlainText, mc as getLocalScheduleDate, mi as richTextFragment, mr as groupPublicEventsByRun, mt as getCurrentResolveImageUrlContext, n as hasBlockDefinition, na as resolveBlockIconRenderValue, nn as eventPlaceName, nr as eventDestinationPagePath, nt as MediaNodeServer, o as LOCATION_MAP_LOADER_KEYS, oa as CirclePlusIcon, oi as formatCoursePrice, on as pageNavigationSchema, oo as arrangementManifestFromVariants, or as resolveRuntimeEventDestination, pa as PlusIcon, pc as getBookingLocalDateKey, pn as buildCalendarViewport, pr as isEventFull, pt as buildResolveImageUrlContext, q as eventCollectionHydrationSchema, qn as planDropInPanel, qo as boundaryRuntimeMetricsForDecorativeTransition, qr as listLookSlot, qt as buildEventListWeek, ra as ArrowDownIcon, rc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, rn as eventVenuePlace, rr as resolveEventCardBooking, rt as RichText, s as describeUnresolvedLocationMapLocation, sa as ClockIcon, si as formatEventDepositNote, sn as closedDateListCopy, sr as isBookableEvent, t as getBlockDefinition, ta as parseBlockIconValue, tc as sameMailingListPlacementTargeting, tn as eventOnlinePlace, tr as eventDestinationBookingLink, ts as transitionCatalogueEntries, u as parseLocationMapLoaderResult, ua as FileSpreadsheetIcon, uc as addLocalScheduleDays, un as bookElsewhereDateCopy, ur as formatTotalCapacity, ut as resolvePublicMediaUrl, v as buildGiftingInteractiveIslandProps, vc as resolveBookingBusinessTimeZone, vi as faqHeadingFragment, vn as formatDate, vs as blockBookingConsentSchema, vt as getContainerClass, w as buildCartInteractiveIslandProps, wc as publicEventPricingDisplay, wi as testimonialsHeadingFragment, wr as parseTeamMemberSpecialties, ws as admitReadinessFacts, wt as bookingNowSchema, x as productDetailBlockDefinition, xa as PUBLIC_DOWNLOAD_MEDIA_TYPES, xc as formatBookingPriceDisplay, xi as formEmbedFragment, xn as formatEventDateParts, xr as markEditableSurfaceForwarding, xt as eventRegistrationBlockDefinition, y as checkoutBlockDefinition, yc as toBookingTimeZone, yi as blogFeaturedPostFragment, yn as formatEventClockLabel, ys as bookingConsentCarrierSchema, z as buildEventCalendarListingDisplay, zi as resolveBackgroundColorValue, zn as isToday, zr as buildInteractiveIslandProps, zt as normalizeEventRegistrationPageSurfaceSubject } from "./registry-KtsOsAzY.mjs";
5
- import { A as actionVariableFallback, C as buttonShadowLayersValue, F as freezeOwnedThemeValue, G as inkReference, H as HOVER_TEXT_THRESHOLD, I as ownedThemeSnapshot, L as resolveSurfaceForeground, S as buttonPartsCss, T as affordanceIconMaskUrl, U as certifyPaint, W as contrastThresholdByPolicy, _ as buttonTypographyDeclarations, g as buttonStateShadow, h as buttonStateAppearanceDeclarations, k as mapButtonVisualAppearances, m as buttonRadius, n as parseSurfaceTree, o as resolveSurface, p as buttonBorder, s as serializeSurfaceTree, v as materializeRuntimeButtonAppearance, w as partOwnedPseudoElements, y as paddingDeclarations, z as surfaceInkPublication } from "./accessibleSurfaces-BtPqb76u.mjs";
6
- import { h as surfaceCardRoleValues, l as fontWidthFits, s as boxBackgroundSchema, x as siteChromeBackgroundOverrideOwner } from "./schema-BBEqquBM.mjs";
1
+ import { $ as parseColorTokenParts, A as surfaceInkDeclarations, C as SURFACE_INK_CSS_VARS, E as surfaceForegroundInputFromResolved, F as cssVarValue, H as staysInsideDeclaration, I as mergeStyles, L as rgbColorValue, N as backgroundColorStyle, O as surfaceForegroundValue, R as textColorStyle, T as surfaceForegroundDeclarations, V as callsCssLoadingFunction, W as absoluteInkColors, a as createStandardButtonSurfacePolicy, et as parseThemeColorToken, i as buttonSizeNameSchema, j as surfaceInkStyle, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, z as textColorValue } from "./types-CcKy8_tj.mjs";
2
+ import { H as resolveConcreteColorHex, N as expandPalette, R as compositeHex, U as resolveOpaqueSurfaceHex, _ as runtimeMediaSchema, a as formatButtonColourContractError, b as renderableMediaAssetSchema, c as DEFAULT_BUTTON_SIZES, ct as hexToRgb, d as generateShadowValue$1, i as BUTTON_CONTRAST_POLICY, n as compileButtonColourStates, r as resolveSolidButtonColour, s as BORDER_WIDTH_MAP, tt as contrastRatio, u as FONT_SIZE_MAP } from "./resolveButtonColourStates-ChlP4NJ9.mjs";
3
+ import { A as mapButtonVisualAppearances, B as surfaceInkPublication, C as buttonPartsCss, E as affordanceIconMaskUrl, G as certifyPaint, I as freezeOwnedThemeValue, K as contrastThresholdByPolicy, L as ownedThemeSnapshot, R as resolveSurfaceForeground, T as partOwnedPseudoElements, W as HOVER_TEXT_THRESHOLD, _ as buttonStateShadow, b as paddingDeclarations, c as serializeSurfaceTree, g as buttonStateAppearanceDeclarations, h as buttonRadius, j as actionVariableFallback, m as buttonBorder, r as parseSurfaceTree, s as resolveSurface, v as buttonTypographyDeclarations, w as buttonShadowLayersValue, y as materializeRuntimeButtonAppearance } from "./accessibleSurfaces-CZ7pLuJ7.mjs";
4
+ import { $ as formatEventDuration, A as OfferingCourseCards, B as EventItem, C as resolvePageRouteTarget, D as EVENT_REGISTRATION_ANCHOR_ID, E as cancelledEventDatesFact, F as createEditorPresentationPageReader, G as eventDisplayTitleText, H as CalendarIcon, I as createPresentationPageReader, J as buildMonthDay, K as formatCourseDatesAfter, L as EmptyState, M as offeringDatesBySeries, N as deriveEventScheduleSummary, O as MonthLookView, P as derivePreviewRunSchedule, Q as formatEventTeacherLine, R as CardListCollection, S as resolveEntryRouteTarget, T as EventHeader, U as MapPinIcon, V as eventCategoryBadge, W as eventDisplayTitle, X as formatEventQuickDate, Y as resolveMonthSelectedDay, Z as selectQuickDateEvents, _ as publicAppointmentLocationSchema, a as joinSlotKey, d as resolveLinkedEntryInlineFieldEligibility, et as parseStoredVariant, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as eventCardListContent, k as EventListingFrameView, l as buildLinkedContentEditTarget, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as generateGroundPaintCss, o as renderedJoinLayout, ot as buildThemeTokens, p as defaultTransforms, q as formatCourseSessions, rt as groundTextureStyle, s as retargetJoinsAcrossOmissions, st as defaultThemeTokens, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as CardListItems } from "./pageRenderPlan-DmP0HVMu.mjs";
5
+ import { $ as cardListPresentationSchemaShape, $a as authoredHeaderLinkForeground, $i as el, $n as resolveSelectionBookingClosedDetail, $r as clsx, $t as bookingPresentation, A as membershipCardListContent, Ai as heroCopyFragment, An as getLocalDateKey, Ao as bookingConsentCarrierSchema, As as toBookingTimeZone, At as buildOfferingsPreviewListing, Bi as resolveBackgroundColorValue, Bn as bookingPageKindSchema, Br as buildInteractiveIslandProps, Bt as resolveEventRegistrationScopedEvents, C as shopBlockDefinition, Ca as isInlineTextEmpty, Ci as formCopyFragment, Cn as formatEventNextDateFact, Cr as splitPositioningClasses, Cs as formatLocalScheduleDate, Ct as resolveEventRegistrationEventSource, D as buildProductListInteractiveIslandProps, Di as heroCtaRowFragment, Dn as formatTime, Do as publicEventsArraySchema, Dr as teamMemberCardBiography, Ds as parseLocalScheduleTime, E as buildProductDetailInteractiveIslandProps, Ei as ctaCopyFragment, Er as teamMemberBiography, Es as parseBookingLocalDate, F as buildOfferingsCatalogueListing, Fn as getOrderedDayNames, Fo as admitReadinessFacts, Fs as publicEventPricingDisplay, Ft as readOfferingsGrouping, G as buildEventCollectionListingDisplay, Ga as resolveHeaderRootForeground, Gi as defineFragment, Gn as isDropInPublicEvent, Gr as defineProgressiveBlockRuntime, Gt as getIconComponent, H as buildEventListingInteractiveIslandProps, Ha as parseThemeButtonVariantId, Hi as layoutSectionGround, Hn as cancelledRunsCopy, Hr as defineInteractiveIslandMetaKeys, Ht as ThemedButton, I as offeringsCatalogueShape, Ia as eventReadinessResultSchema, In as getWeekCalendarDayTuple, Io as hiddenFromVisitors, Is as publicEventPricingType, It as resolveOfferingsPreviewGroupCta, J as eventCollectionSourceSchemaShape, Ja as selectItemSurfacePresentation, Jn as planOrdinarySeriesSelection, Jr as listLookSlot, Jt as eventListWeekDays, K as eventCollectionDisplaySchemaShape, Kn as isOrdinaryPublicEvent, Kr as listItemPresentation, Kt as SpinnerNode, L as eventCalendarBlockDefinition, Ln as getWeekCalendarDays, Lo as loadedReadinessFact, Ls as resolveExactOrFreePriceDisplay, Lt as resolveOfferingsPreviewGroups, M as passCardListContent, Mi as boxStyleClassNames, Mn as addDays, Ms as formatBookingPriceDisplay, Mt as normalizeOfferingsPreviewItemLimit, N as offeringsPreviewBlockDefinition, Na as eventReadinessLoaderKey, Ni as normalizeBoxStylesBorder, Nn as formatDateKey, Ns as isPublicEventPricingOptionDisplayable, Nt as offeringRunLifecycle, O as buildShopInteractiveIslandProps, Oa as parseFieldDefinitions, Oi as ctaRowFragment, On as groupEventsByDate, Oo as blockBookingPaymentTermsSchema, Or as readRuntimeNow, Os as toUtcIsoDateTimeString, P as publicRouteCandidatesSchema, Pi as resolveCardRoleForBoxStyles, Pn as getDayOfWeek, Pr as staticHeaderChromeRuntime, Ps as publicEventPricingCurrency, Pt as offeringsListingFor, Qi as runTransforms, Qr as Grid, R as buildEventCalendarInteractiveIslandProps, Rn as isSameCalendarDay, Ro as pageTemplateFromEntry, Rr as formBlockDefinition, Rt as resolveOfferingsRenderInput, S as productListBlockDefinition, Sa as inlineTextToPlainText, Si as formEmbedFragment, Sn as formatEventHourLabel, Sr as markEditableSurfaceForwarding, St as buildEventRegistrationInteractiveIslandProps, T as buildCheckoutInteractiveIslandProps, Ti as testimonialsHeadingFragment, Tn as formatEventTimeRange, Tr as parseTeamMemberSpecialties, Ts as getLocalScheduleDate, Tt as previewStageSchema, U as buildEventCollectionDisplay, Ua as themeButtonSelector, Un as eventOccurrenceContext, Ur as createZodCodec, Ut as ThemedButtonLink, V as eventListingBlockDefinition, Vi as ctaButton, Vn as cancelledRegistrationCopy, Vr as createInteractiveIslandCodec, Vt as ThemedAuthoredButton, W as buildEventCollectionHydration, Wa as AFFORDANCE_SUPPRESS_CLASS, Wi as bodyCopyFragment, Wn as getPublicEventCanonicalPath, Wr as defineClientOwnedBlockRuntime, Wt as ThemedDownloadLink, X as listingEventCardProps, Xa as pageGround, Xn as planWholeSeriesParentSelection, Xr as resolvedItemSurfaceProps, Y as catalogueEventCardProps, Yn as planWholeSeriesParentBooking, Yr as lookListPresentationSchemaShape, Yt as eventWeekGroupingContext, Z as CardListContentPart, Zn as planWholeSeriesRunSelection, Zr as itemRole, _ as giftingBlockDefinition, _a as MinusIcon, _i as cardFragment, _n as formatCalendarTitle, _r as resolveFeatureCardGeneratedIconSizePx, _t as getCardOrientation, aa as CalendarIcon$1, an as blockSiteTermsSchema, ar as resolveEventCta, as as orderedLiveRunSessions, at as MediaPlaceholder, b as cartBlockDefinition, ba as UserIcon, bi as blogFeaturedPostFragment, bn as formatEventCompactDateRail, bo as headerRootIsTransparent, bs as toScheduledBookingDateTime, bt as lookPartShown, c as normalizeLocationMapProps, ca as CirclePlusIcon, ci as formatEventDepositNote, cn as closedDatesCopy, cr as isBookableEvent, cs as buildMailingListSignupBlockSourceRef, d as resolveLocationMapLocation, da as FileAudioIcon, dn as closedDateCopy, dr as formatTotalCapacity, ds as parseMailingListPlacementTargeting, ea as when, en as browserReadAuthoritySchema, eo as effectiveHeaderNavLinkStyle, er as selectionRepresentativeEvent, es as mapReadinessFact, f as newsletterSignupBlockDefinition, fa as FileSpreadsheetIcon, fn as cutOffDateCopy, fs as sameMailingListPlacementTargeting, g as newsletterBlockSubmissionMessage, ga as MapPinIcon$1, gi as headingFragment, gr as FEATURE_CARD_ICON_TREATMENTS, gt as EventQuickFacts, h as buildNewsletterFormInteractiveIslandProps, ha as InfoIcon, hi as richTextFragment, hn as eventDateOptions, hr as groupPublicEventsByRun, hs as formatDate$1, ht as setContextResolveImageUrlContext, i as normalizeBlockContent, ia as ArrowDownIcon, in as formatEventLocation, ir as resolveEventCardBooking, it as ImagePresets, j as membershipClassesLabel, ja as chosenString, jn as getLocalMinuteOfDay, jo as beforeBookingQuestionsPresentationSchema, jt as groupOfferingRunsByCourse, k as shopProductPresentation, ka as PUBLIC_DOWNLOAD_MEDIA_TYPES, ki as isBlockButtonRole, kn as resolveEventTimeZone, ko as blockBookingConsentSchema, kr as resolveDateRuntimeContext, ks as resolveBookingBusinessTimeZone, kt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, l as normalizeLocationMapSource, la as ClockIcon, li as formatEventPrice, ln as closedRunCopy, lr as isInBookingCutOffWindow, ls as parseMailingListRuntimeContext, m as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ma as GlobeIcon, mr as isEventFull, ms as EVENT_ADDRESS_AFTER_BOOKING_LABEL, mt as getCurrentResolveImageUrlContext, n as hasBlockDefinition, na as parseBlockIconValue, nn as eventPlaceName, nr as eventDestinationBookingLink, nt as MediaNodeServer, o as LOCATION_MAP_LOADER_KEYS, oa as ChevronDownIcon, on as pageNavigationSchema, or as resolveEventPageLink, os as resolveWholeSeriesBookingPhase, pa as FileTextIcon, pn as buildCalendarViewport, pr as getEventAvailabilityStatus, pt as buildResolveImageUrlContext, q as eventCollectionHydrationSchema, qn as planDropInPanel, qr as listLookControl, qt as buildEventListWeek, ra as resolveBlockIconRenderValue, rn as eventVenuePlace, rr as eventDestinationPagePath, rs as CANCELLED_SESSION_STATUS, rt as RichText, s as describeUnresolvedLocationMapLocation, sa as CircleMinusIcon, si as formatCoursePrice, sn as closedDateListCopy, sr as resolveRuntimeEventDestination, ss as resolveWholeSeriesPaymentDates, t as getBlockDefinition, ta as buildGeneratedBlockIconRenderAssetLookupFromUnknown, tn as eventOnlinePlace, to as readOpeningToneProjection, tr as publicEventCancellation, u as parseLocationMapLoaderResult, ua as FileArchiveIcon, ui as formatEventPriceAmount, un as bookElsewhereDateCopy, ur as formatEventRemainingPlaces, ut as resolvePublicMediaUrl, v as buildGiftingInteractiveIslandProps, va as PlusIcon, vi as faqAccordionFragment, vn as formatDate, vr as shouldReserveFeatureCardIconZone, vt as getContainerClass, w as buildCartInteractiveIslandProps, wa as parseInlineTextFromUnknown, wi as testimonialsCarouselFragment, ws as getBookingLocalDateKey, wt as bookingNowSchema, x as productDetailBlockDefinition, xa as UsersIcon, xi as singleButtonFragment, xn as formatEventDateParts, xo as headerRootPaint, xr as composeHeaderSectionWrapperClassName, xs as addLocalScheduleDays, xt as eventRegistrationBlockDefinition, y as checkoutBlockDefinition, ya as TicketIcon, yi as faqHeadingFragment, yn as formatEventClockLabel, yo as headerNeedsPhotoShade, ys as formatBookingCompactEnglishTime, z as buildEventCalendarListingDisplay, zn as isToday, zo as unavailableReadinessFact, zr as buildFormInteractiveIslandProps, zs as formatCurrencyAmount, zt as normalizeEventRegistrationPageSurfaceSubject } from "./registry-DD_s7l3Y.mjs";
6
+ import { $ as generateInteractiveChildInheritanceCSS, At as transitionCatalogueEntries, G as generateFooterCss, Ht as featureCardCompositionTreatmentValues, J as buildTextContrastShadow, Jt as testimonialsCompositionTreatmentValues, O as requireCuratedSiteStyle, Q as resolveEffectPaint, U as resolveCardRole, Ut as introCompositionTreatmentValues, W as generateDefaultCardSystem, Wt as offeringsPreviewCompositionTreatmentValues, X as generateEffectsCSS, Y as generateNavLinkCSS, Z as resolveEffectApplications, en as opaqueSurfaceContextFromTheme, f as arrangementManifestFromVariants, i as arrangementLookHooks, m as resolveEffectiveArrangement, rn as TokenResolver, tn as opaqueSurfaceDeclarations, yt as boundaryRuntimeMetricsForDecorativeTransition } from "./lookMediaFrame-Dw6R9B0L.mjs";
7
+ import { f as fontWidthFits, u as boxBackgroundSchema, v as surfaceCardRoleValues, w as siteChromeBackgroundOverrideOwner } from "./schema-ClDfFtz2.mjs";
7
8
  import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-MDDSubTp.mjs";
8
9
  import { t as assertNever$3 } from "./assert-never-ku-PUn9U.mjs";
9
- import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-CAhr4oOf.mjs";
10
+ import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-BQ1dWs1V.mjs";
10
11
  import { f as bindingSchema, i as RichTextDocSchema, l as sanitizeHref, n as isRecord$4, t as isObjectRecord } from "./typeGuards-DZOaGTEv.mjs";
11
- import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
12
- import { M as opaqueSurfaceDeclarations, T as testimonialsCompositionTreatmentValues, j as opaqueSurfaceContextFromTheme, v as featureCardCompositionTreatmentValues, x as offeringsPreviewCompositionTreatmentValues, y as introCompositionTreatmentValues } from "./lookMediaFrame-CTsycLLK.mjs";
13
- import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-B_9JuU66.mjs";
14
- import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as escapeStyleContent, b as INPUT_GROUP_SELECTOR, c as parseBlockCustomCssRules, d as generateBlockCustomVarsCss, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as compileCustomCssRules, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, o as prefixSelector, p as generateProgressCss, r as compileBlockCustomCssRules, s as toKebabCase, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DtAyv9qA.mjs";
12
+ import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-D-n66Oqc.mjs";
13
+ import { A as generateCheckableCss, C as INPUT_GROUP_ERROR_SELECTOR, D as INPUT_EDGE_COLOR_VAR, E as generateInputGroupCss, F as generateShadowCssVars, I as renderCssDeclarations, L as cardBorderDeclarations, M as RESOLVED_BUTTON_DISABLED_DECLARATIONS, N as resolvedButtonColourDeclarations, O as INPUT_ERROR_BORDER_COLOR_VAR, P as resolvedButtonFocusDeclarations, R as cardDecorationPseudoRules, S as retargetResponsiveScopeRules, T as INPUT_GROUP_SELECTOR, _ as buildResponsiveScopeRule, a as escapeStyleContent, b as getResponsiveScopeSpec, c as parseBlockCustomCssRules, d as generateBlockCustomVarsCss, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as compileCustomCssRules, j as generateOpaquePanelCss, k as inputEdgeColorValue, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, o as prefixSelector, p as generateProgressCss, r as compileBlockCustomCssRules, s as toKebabCase, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as findResponsiveScopeRuleAt, w as INPUT_GROUP_FOCUS_SELECTOR, x as hasResponsiveScopeRule, y as getContainerResponsiveScopeSpec } from "./ThemeScopeCore-BjxlpVaV.mjs";
15
14
  import { c as ACCORDION_SPACING_MAP, d as ICON_CONFIG, f as ICON_SIZE_PX, i as getNodeProps, l as ACCORDION_TRIGGER_FONT_SCALE, n as getVideoEmbed, r as getVideoEmbedLoadingStrategy, s as ACCORDION_OPEN_ACCENT_THICKNESS, t as VIDEO_ASPECT_RATIO_PATTERN, u as ACCORDION_TRIGGER_LETTER_SPACING } from "./video-DBaeSawZ.mjs";
16
- import { t as parseThemeForPersistence } from "./parseThemeForPersistence-CRwOZfpa.mjs";
15
+ import { t as parseThemeForPersistence } from "./parseThemeForPersistence-D_8I28BB.mjs";
17
16
  import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
18
17
  import { t as getAtPath } from "./src-DHK4JUlp.mjs";
19
18
  import * as React$1 from "react";
@@ -705,9 +704,9 @@ function generateHoverEffects(axes) {
705
704
  //#endregion
706
705
  //#region ../theme-core/src/accordions/accordionInks.ts
707
706
  const TEXT = contrastThresholdByPolicy["body-aa"];
708
- /** The CSS colour for a certified ink: a palette variable, or the black/white literal. */
707
+ /** The CSS colour for a certified ink: a palette variable, including absolute black and white. */
709
708
  function accordionInkCss(ink) {
710
- return rgbColorValue(inkReference(ink));
709
+ return rgbColorValue(ink);
711
710
  }
712
711
  /** The foreground contract certified on an accordion's own background, or null when it has none. */
713
712
  function resolveAccordionSurfaceForeground(theme, system) {
@@ -849,15 +848,14 @@ function resolveHeaderDropdownForeground(header, theme) {
849
848
  }, palette);
850
849
  const text = foreground.kind === "known" ? foreground.roles.text : candidate;
851
850
  const fill = style?.hoverBackground === void 0 ? text : style.hoverBackground;
852
- const menu = foreground.kind === "known" && foreground.provenance.kind === "measured" ? foreground.provenance.backdropHex : null;
853
851
  return {
854
852
  style,
855
853
  backgroundToken,
856
854
  candidate,
857
855
  foreground,
858
- textToken: inkReference(text),
859
- linkFill: fill === null ? null : inkReference(fill),
860
- ...linkInks(style, text, fill, menu, palette)
856
+ textToken: text,
857
+ linkFill: fill,
858
+ ...linkInks(style, text, fill, foreground.kind === "known" && foreground.provenance.kind === "measured" ? foreground.provenance.backdropHex : null, palette)
861
859
  };
862
860
  }
863
861
  /** A translucent menu keeps its declared hover text, unmeasured; an opaque one certifies each state. */
@@ -886,7 +884,7 @@ function certifyLinkText(ink, declared, fill, menu, palette) {
886
884
  };
887
885
  });
888
886
  return {
889
- linkText: Object.fromEntries(states.flatMap(({ state, paint }) => declared || paint?.fallback ? [[state, inkReference(paint?.ink ?? ink)]] : [])),
887
+ linkText: Object.fromEntries(states.flatMap(({ state, paint }) => declared || paint?.fallback ? [[state, paint?.ink ?? ink]] : [])),
890
888
  linkPaints: states.flatMap(({ paint }) => paint ? [paint] : []),
891
889
  linkUnmeasured: states.flatMap(({ state, paint }) => paint ? [] : [linkPlace(state)])
892
890
  };
@@ -985,7 +983,10 @@ function formatFontFamily(family, fallback = "sans-serif") {
985
983
  */
986
984
  function generateCssVars(palette) {
987
985
  const cssVars = {};
988
- Object.entries(palette).forEach(([key, value]) => {
986
+ Object.entries({
987
+ ...palette,
988
+ ...absoluteInkColors
989
+ }).forEach(([key, value]) => {
989
990
  if (key === "meta" || value === null || value === void 0 || typeof value !== "string") return;
990
991
  const { r, g, b } = hexToRgb(value);
991
992
  cssVars[`--tb-${key}`] = `${r} ${g} ${b}`;
@@ -3061,54 +3062,160 @@ function headerPaintInks(header, theme, policy) {
3061
3062
  return surfaceInkDeclarations(surfaceInkPublication(resolveSurfaceForeground(header.background, expandPalette(theme.palette)), policy));
3062
3063
  }
3063
3064
  //#endregion
3064
- //#region ../theme-core/src/layout/boundaryCss.ts
3065
- /**
3066
- * Section-break CSS, generated from the transition catalogue (issue 1422).
3067
- *
3068
- * The renderer emits one element per shown join:
3069
- *
3070
- * <div data-block-boundary data-boundary-treatment="wave-edge-gentle"
3071
- * data-boundary-placement="previous"
3072
- * style="--boundary-shape-paint: …; --boundary-band-paint: …">
3073
- *
3074
- * Every selector matches an exact attribute value, so there is no reliance on
3075
- * prefix ordering in the cascade and nothing reads colours out of a string.
3076
- * The shape layer is `::after`; the band layer (paint → paint only) is
3077
- * `::before`.
3078
- */
3079
- const waveMaskSvgPaths = {
3080
- classic: "M0 72V46C130 55 260 24 420 30C590 36 690 62 860 42C1035 21 1160 47 1305 36C1365 31 1415 33 1440 38V72H0Z",
3081
- balanced: "M0 72V42C120 24 240 24 360 42C480 60 600 60 720 42C840 24 960 24 1080 42C1200 60 1320 60 1440 42V72H0Z",
3082
- gentle: "M0 72V43C180 32 300 32 480 43C660 54 780 54 960 43C1140 32 1260 32 1440 43V72H0Z",
3083
- echo: "M0 72V44C180 34 320 29 500 40C680 51 800 55 970 45C1140 35 1270 31 1440 40V72H0Z",
3084
- bold: "M0 72V44C90 14 270 14 360 44C450 74 630 74 720 44C810 14 990 14 1080 44C1170 74 1350 74 1440 44V72H0Z",
3085
- drift: "M0 72V39C115 31 205 54 340 48C505 41 610 16 760 33C920 51 1015 64 1160 44C1280 27 1375 35 1440 50V72H0Z"
3086
- };
3065
+ //#region ../theme-core/src/responsive/cssScan.ts
3087
3066
  /**
3088
- * The arc (issue 1713): the next section's colour rises to a shallow peak in the
3089
- * middle. With echo, two lines follow the arc below it, cut part-way into the
3090
- * shape so the colour behind shows through them; that keeps them a blend of the
3091
- * two sections' colours, whatever the palette. They fade out towards the peak.
3067
+ * Scanning for CSS source. Comments and quoted strings are read as whole tokens and
3068
+ * skipped, so a brace or semicolon inside `content: "{"` or a comment never counts.
3092
3069
  */
3093
- const arcShapePath = "M0 110V60Q720 -30 1440 60V110Z";
3094
- const arcEchoLinePaths = ["M0 84Q720 -6 1440 84", "M0 102Q720 12 1440 102"];
3095
- /** The arc turned over: the next section's colour sits lowest in the middle, under the swell of the section above. */
3096
- const arcBulgeShapePath = "M0 110V50Q720 140 1440 50V110Z";
3097
- function arcBulgeMaskDataUrl() {
3098
- return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='${arcBulgeShapePath}' fill='white'/></svg>`);
3070
+ const CSS_TOKENS = /\/\*[\s\S]*?(?:\*\/|$)|"(?:\\[\s\S]|[^"\\])*(?:"|$)|'(?:\\[\s\S]|[^'\\])*(?:'|$)|[()[\]{};]|[^"'()[\]{};/]+|\//g;
3071
+ /** The only iteration shell: transitions never mutate their input state. */
3072
+ function* scanTokens(source, from, initial, transition) {
3073
+ const pattern = new RegExp(CSS_TOKENS.source, "g");
3074
+ pattern.lastIndex = from;
3075
+ const cursor = { state: initial };
3076
+ for (const match of source.matchAll(pattern)) {
3077
+ const next = transition(cursor.state, {
3078
+ text: match[0],
3079
+ index: match.index
3080
+ });
3081
+ cursor.state = next.state;
3082
+ yield next.output;
3083
+ }
3084
+ }
3085
+ const isSkippedToken = (token) => token.startsWith("/*") || token.startsWith("\"") || token.startsWith("'");
3086
+ function findTransition(depth, token, matches) {
3087
+ if (isSkippedToken(token.text)) return {
3088
+ state: depth,
3089
+ output: -1
3090
+ };
3091
+ const offset = token.text.split("").findIndex((ch, offset) => matches(ch, token.index + offset, depth));
3092
+ return {
3093
+ state: Math.max(0, depth + (token.text === "(" ? 1 : token.text === ")" ? -1 : 0)),
3094
+ output: offset === -1 ? -1 : token.index + offset
3095
+ };
3096
+ }
3097
+ /** First matching character outside comments/strings; depth is before the character. */
3098
+ function findOutsideStringsAndComments(source, from, matches) {
3099
+ for (const found of scanTokens(source, from, 0, (depth, token) => findTransition(depth, token, matches))) if (found !== -1) return found;
3100
+ return -1;
3101
+ }
3102
+ /** The next `target` outside comments, strings and parentheses, or -1. */
3103
+ function findTopLevelChar(source, from, target) {
3104
+ return findOutsideStringsAndComments(source, from, (ch, _index, parenDepth) => ch === target && parenDepth === 0);
3105
+ }
3106
+ function braceTransition(depth, token) {
3107
+ const state = depth + (token.text === "{" ? 1 : token.text === "}" ? -1 : 0);
3108
+ return {
3109
+ state,
3110
+ output: token.text === "}" && state === 0 ? token.index : -1
3111
+ };
3112
+ }
3113
+ /** The index of the brace closing the one at `openIndex`, or -1. */
3114
+ function findMatchingBrace(source, openIndex) {
3115
+ for (const found of scanTokens(source, openIndex, 0, braceTransition)) if (found !== -1) return found;
3116
+ return -1;
3099
3117
  }
3100
- function arcMaskDataUrl(echo) {
3101
- const lines = arcEchoLinePaths.map((d) => `<path d='${d}' fill='none' stroke='url(#fade)' stroke-width='1.5' vector-effect='non-scaling-stroke'/>`).join("");
3102
- return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'>${echo ? `<defs><linearGradient id='fade' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'><stop offset='0' stop-color='black' stop-opacity='0.42'/><stop offset='0.5' stop-color='black' stop-opacity='0'/><stop offset='1' stop-color='black' stop-opacity='0.42'/></linearGradient><mask id='lines'><rect width='1440' height='110' fill='white'/>${lines}</mask></defs><path d='${arcShapePath}' fill='white' mask='url(#lines)'/>` : `<path d='${arcShapePath}' fill='white'/>`}</svg>`);
3118
+ const WHITESPACE_AND_COMMENTS = /(?:\s+|\/\*[\s\S]*?(?:\*\/|$))*/y;
3119
+ /** The first index at or after `from` that is not whitespace or inside a comment. */
3120
+ function skipWhitespaceAndComments(source, from) {
3121
+ const pattern = new RegExp(WHITESPACE_AND_COMMENTS.source, "y");
3122
+ pattern.lastIndex = from;
3123
+ const match = pattern.exec(source);
3124
+ return Math.min(source.length, from + (match?.[0].length ?? 0));
3103
3125
  }
3104
- /** One half disc of the next colour, rising from the join. Between two of them the colour above shows as a punched hole would. */
3105
- function tornMaskDataUrl(pitchPx, holeRadiusPx) {
3106
- const height = Math.ceil(holeRadiusPx);
3107
- return svgDataUrl(`<svg viewBox='0 0 ${pitchPx} ${height}' xmlns='http://www.w3.org/2000/svg'><circle cx='${pitchPx / 2}' cy='${height}' r='${holeRadiusPx}' fill='white'/></svg>`);
3126
+ //#endregion
3127
+ //#region ../theme-core/src/responsive/transformMediaRules.ts
3128
+ const findNextOpeningBrace = (source, from) => findTopLevelChar(source, from, "{");
3129
+ /** The next `@media` at-rule outside comments and strings, or -1. */
3130
+ const findNextMediaRule = (source, from) => findOutsideStringsAndComments(source, from, (ch, index) => ch === "@" && source.startsWith("@media", index) && !/[a-zA-Z0-9_-]/.test(source[index + 6] ?? ""));
3131
+ /**
3132
+ * Rewrites eligible @media blocks to named @container blocks.
3133
+ * Keeps unsupported @media queries unchanged.
3134
+ */
3135
+ function convertMediaRulesToContainerRules(css, containerName = getContainerResponsiveScopeSpec().containerName) {
3136
+ const containerScope = getContainerResponsiveScopeSpec();
3137
+ let output = "";
3138
+ let index = 0;
3139
+ while (index < css.length) {
3140
+ const mediaStart = findNextMediaRule(css, index);
3141
+ if (mediaStart === -1) {
3142
+ output += css.slice(index);
3143
+ break;
3144
+ }
3145
+ output += css.slice(index, mediaStart);
3146
+ const parsed = parseMediaRule(css, mediaStart);
3147
+ if (!parsed) {
3148
+ output += css.slice(mediaStart, mediaStart + 6);
3149
+ index = mediaStart + 6;
3150
+ continue;
3151
+ }
3152
+ const transformedBody = convertMediaRulesToContainerRules(parsed.body, containerName);
3153
+ const containerQuery = convertMediaQueryToContainerQuery(parsed.query);
3154
+ if (containerQuery) {
3155
+ const hasScope = hasResponsiveScopeRule(transformedBody);
3156
+ const rootQualifiedBody = rewriteScopedRootSelectors(hasScope ? retargetResponsiveScopeRules(transformedBody, containerScope) : transformedBody);
3157
+ const scopedBody = hasScope && !hasTopLevelContentOutsideResponsiveScopes(transformedBody) ? rootQualifiedBody : buildResponsiveScopeRule(containerScope, rootQualifiedBody);
3158
+ output += `@container ${containerName} ${containerQuery} {\n${scopedBody}\n}`;
3159
+ } else output += `@media ${parsed.query} {${transformedBody}}`;
3160
+ index = parsed.endIndex;
3161
+ }
3162
+ return output;
3163
+ }
3164
+ /** Keep scope-root selectors eligible inside the generated preview scope. */
3165
+ function rewriteScopedRootSelectors(source) {
3166
+ const open = findNextOpeningBrace(source, 0);
3167
+ if (open === -1) return source;
3168
+ const close = findMatchingBrace(source, open);
3169
+ if (close === -1) return source;
3170
+ const prelude = source.slice(0, open);
3171
+ const body = source.slice(open + 1, close);
3172
+ const isAtRule = prelude[skipWhitespaceAndComments(prelude, 0)] === "@";
3173
+ const isKeyframes = /^@(?:-\w+-)?keyframes\b/.test(prelude.trimStart());
3174
+ return `${isAtRule ? prelude : qualifyScopeRoots(prelude)}{${isAtRule && !isKeyframes ? rewriteScopedRootSelectors(body) : body}}${rewriteScopedRootSelectors(source.slice(close + 1))}`;
3175
+ }
3176
+ function qualifyScopeRoots(selector) {
3177
+ return selector.replace(/\/\*[\s\S]*?\*\/|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\[(?:\\.|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[^\]\\])*\]|\.theme-scope(?![\w-])/g, (token, offset) => {
3178
+ const isRoot = token === ".theme-scope" || /^\[data-(?:skin|theme-scope)\s*=/.test(token);
3179
+ const alreadyQualified = /^:is\(\s*\*\s*,\s*:scope\s*\)/.test(selector.slice(offset + token.length));
3180
+ return isRoot && !alreadyQualified ? `${token}:is(*, :scope)` : token;
3181
+ });
3182
+ }
3183
+ function hasTopLevelContentOutsideResponsiveScopes(source) {
3184
+ let index = 0;
3185
+ while (index < source.length) {
3186
+ index = skipWhitespaceAndComments(source, index);
3187
+ if (index >= source.length) return false;
3188
+ if (!source.startsWith("@scope", index)) return true;
3189
+ const parsedScope = parseScopeRule(source, index);
3190
+ if (!parsedScope) return true;
3191
+ index = parsedScope.endIndex;
3192
+ }
3193
+ return false;
3108
3194
  }
3109
- function waveMaskDataUrl(mask) {
3110
- return svgDataUrl(`<svg viewBox='0 0 1440 72' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='${waveMaskSvgPaths[mask]}' fill='white'/></svg>`);
3195
+ function parseScopeRule(source, start) {
3196
+ const match = findResponsiveScopeRuleAt(source, start);
3197
+ if (!match) return null;
3198
+ const closeBraceIndex = findMatchingBrace(source, match.openBraceIndex);
3199
+ if (closeBraceIndex === -1) return null;
3200
+ return { endIndex: closeBraceIndex + 1 };
3201
+ }
3202
+ function parseMediaRule(source, start) {
3203
+ let i = start + 6;
3204
+ while (i < source.length && /\s/.test(source[i] ?? "")) i++;
3205
+ const queryStart = i;
3206
+ const openBraceIndex = findNextOpeningBrace(source, i);
3207
+ if (openBraceIndex === -1) return null;
3208
+ const closeBraceIndex = findMatchingBrace(source, openBraceIndex);
3209
+ if (closeBraceIndex === -1) return null;
3210
+ return {
3211
+ query: source.slice(queryStart, openBraceIndex).trim(),
3212
+ body: source.slice(openBraceIndex + 1, closeBraceIndex),
3213
+ endIndex: closeBraceIndex + 1
3214
+ };
3111
3215
  }
3216
+ //#endregion
3217
+ //#region ../theme-core/src/layout/boundaryCss.ts
3218
+ /** Geometry comes only from renderer-provided variables. This stylesheet owns placement and reserves. */
3112
3219
  /**
3113
3220
  * How each placement anchors the layers against the zero-height boundary
3114
3221
  * element that sits exactly on the join.
@@ -3137,7 +3244,7 @@ const placementRules = {
3137
3244
  * the schedule and shop sections too.
3138
3245
  */
3139
3246
  const blockSection = ":where([data-slot='section'], [data-slot='schedule-section'], [data-slot='shop-section'])";
3140
- function generateBoundaryCss(selector) {
3247
+ function generateBoundaryCss(selector, responsiveMode = "viewport") {
3141
3248
  const boundary = `${selector} [data-block-boundary]`;
3142
3249
  return [
3143
3250
  rule(boundary, [
@@ -3159,8 +3266,8 @@ function generateBoundaryCss(selector) {
3159
3266
  rule(`${boundary}::before`, ["z-index: 0;", "background: var(--boundary-band-paint, transparent);"]),
3160
3267
  rule(`${boundary}::after`, ["z-index: 1;"]),
3161
3268
  ...placementCss(boundary),
3162
- ...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry)),
3163
- ...transitionCatalogueEntries.flatMap((entry) => footerEdgeReserveCss(selector, entry))
3269
+ ...transitionCatalogueEntries.flatMap((entry) => footerEdgeReserveCss(selector, entry)),
3270
+ variableBoundaryCss(boundary, responsiveMode, selector)
3164
3271
  ].join("\n\n");
3165
3272
  }
3166
3273
  /**
@@ -3195,66 +3302,61 @@ function placementCss(boundary) {
3195
3302
  return [rule(`${placed}::after`, rules.shape), rules.band ? rule(`${placed}::before`, rules.band) : rule(`${placed}::before`, ["content: none;"])];
3196
3303
  });
3197
3304
  }
3198
- function treatmentCss(boundary, entry) {
3199
- const selected = `${boundary}[data-boundary-treatment='${entry.intent}']`;
3305
+ function rule(selector, declarations) {
3306
+ return `${selector} {\n ${declarations.join("\n ")}\n}`;
3307
+ }
3308
+ function variableBoundaryCss(boundary, responsiveMode, scope) {
3309
+ const selected = `${boundary}[data-boundary-geometry]`;
3310
+ const shapes = `${selected}::after, ${selected} > [data-boundary-back]`;
3200
3311
  return [
3201
- rule(selected, [`--boundary-height: ${boundaryRuntimeMetricsForDecorativeTransition(entry.intent).heightCss};`]),
3202
- rule(`${selected}::after`, shapeDeclarations(entry)),
3203
- ...entry.shape.kind === "wave" && entry.shape.echo ? [rule(`${selected}[data-boundary-placement='previous']::before`, [
3204
- ...shapeDeclarations(entry),
3205
- "content: '';",
3312
+ rule(shapes, [
3313
+ "height: var(--boundary-shape-height);",
3314
+ "background: var(--boundary-shape-background);",
3315
+ "mask-image: var(--boundary-mask-wide);",
3316
+ "-webkit-mask-image: var(--boundary-mask-wide);",
3317
+ "clip-path: var(--boundary-clip-wide);",
3318
+ "mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
3319
+ "-webkit-mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
3320
+ "mask-repeat: var(--boundary-mask-repeat, no-repeat);",
3321
+ "-webkit-mask-repeat: var(--boundary-mask-repeat, no-repeat);",
3322
+ "mask-position: center;",
3323
+ "-webkit-mask-position: center;"
3324
+ ]),
3325
+ `@supports (color: color-mix(in srgb, black, white)) {\n${rule(shapes, ["background: var(--boundary-shape-background-mixed);"])}\n}`,
3326
+ rule(`${selected}::after`, ["z-index: 2;"]),
3327
+ rule(`${selected}[data-boundary-section-owned]::before, ${selected}[data-boundary-section-owned]::after`, ["content: none;"]),
3328
+ rule(`${selected}::before`, ["mask: none;", "opacity: 1;"]),
3329
+ rule(`${selected}[data-boundary-placement='previous']::before, ${selected}[data-boundary-placement='next']::before`, ["content: none;"]),
3330
+ rule(`${selected} > [data-boundary-back]`, [
3331
+ "position: absolute;",
3332
+ "inset-inline: 0;",
3333
+ "pointer-events: none;",
3334
+ "z-index: 1;"
3335
+ ]),
3336
+ rule(`${selected}[data-footer-edge]::before`, [
3337
+ "content: var(--boundary-footer-back-content);",
3338
+ "background: var(--boundary-shape-paint);",
3339
+ "top: auto;",
3206
3340
  "bottom: 0;",
3341
+ "height: var(--boundary-shape-height);",
3207
3342
  "transform: translateY(-12%) scaleX(-1);",
3208
- "opacity: 0.5;"
3209
- ])] : []
3210
- ];
3211
- }
3212
- function shapeDeclarations(entry) {
3213
- switch (entry.shape.kind) {
3214
- case "fade": return [
3215
- "/* Fallback for browsers without color-mix(). */",
3216
- "background: linear-gradient(to bottom, transparent 0%, var(--boundary-shape-paint) 100%);",
3217
- "background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--boundary-shape-paint) 16%, transparent) 34%, color-mix(in srgb, var(--boundary-shape-paint) 68%, transparent) 78%, var(--boundary-shape-paint) 100%);"
3218
- ];
3219
- case "wave": return maskDeclarations(waveMaskDataUrl(entry.shape.mask));
3220
- case "arc": return [...maskDeclarations(entry.shape.bulge ? arcBulgeMaskDataUrl() : arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
3221
- case "torn": {
3222
- const mask = tornMaskDataUrl(entry.shape.pitchPx, entry.shape.holeRadiusPx);
3223
- return [
3224
- "background: var(--boundary-shape-paint);",
3225
- `mask-image: url("${mask}");`,
3226
- "mask-repeat: repeat-x;",
3227
- `mask-size: ${entry.shape.pitchPx}px 100%;`,
3228
- "mask-position: center bottom;",
3229
- `-webkit-mask-image: url("${mask}");`,
3230
- "-webkit-mask-repeat: repeat-x;",
3231
- `-webkit-mask-size: ${entry.shape.pitchPx}px 100%;`,
3232
- "-webkit-mask-position: center bottom;"
3233
- ];
3234
- }
3235
- case "angle": return [
3236
- "height: calc(var(--boundary-height) + 2px);",
3237
- "background: var(--boundary-shape-paint);",
3238
- `clip-path: ${anglePolygonCss(entry.shape.polygon)};`
3239
- ];
3240
- }
3241
- }
3242
- function maskDeclarations(mask) {
3243
- return [
3244
- "background: var(--boundary-shape-paint);",
3245
- `mask-image: url("${mask}");`,
3246
- "mask-repeat: no-repeat;",
3247
- "mask-size: 100% 100%;",
3248
- `-webkit-mask-image: url("${mask}");`,
3249
- "-webkit-mask-repeat: no-repeat;",
3250
- "-webkit-mask-size: 100% 100%;"
3251
- ];
3252
- }
3253
- function rule(selector, declarations) {
3254
- return `${selector} {\n ${declarations.join("\n ")}\n}`;
3343
+ "opacity: 0.5;",
3344
+ "mask-image: var(--boundary-mask-wide);",
3345
+ "-webkit-mask-image: var(--boundary-mask-wide);",
3346
+ "mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
3347
+ "-webkit-mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
3348
+ "mask-repeat: var(--boundary-mask-repeat, no-repeat);",
3349
+ "-webkit-mask-repeat: var(--boundary-mask-repeat, no-repeat);"
3350
+ ]),
3351
+ narrowBoundaryCss(`@media (max-width: 767px) {\n${rule(`${scope} [data-section-edge-paint]`, ["mask-image: var(--boundary-section-mask-narrow, var(--boundary-texture-mask-narrow));", "-webkit-mask-image: var(--boundary-section-mask-narrow, var(--boundary-texture-mask-narrow));"])}\n@supports (color: color-mix(in srgb, black, white)) {\n${rule(`${scope} [data-section-edge-fade]`, ["mask-image: var(--boundary-texture-mask-narrow);", "-webkit-mask-image: var(--boundary-texture-mask-narrow);"])}\n}\n${rule(shapes, [
3352
+ "mask-image: var(--boundary-mask-narrow);",
3353
+ "-webkit-mask-image: var(--boundary-mask-narrow);",
3354
+ "clip-path: var(--boundary-clip-narrow);"
3355
+ ])}\n${rule(`${selected}[data-footer-edge]::before`, ["mask-image: var(--boundary-mask-narrow);", "-webkit-mask-image: var(--boundary-mask-narrow);"])}\n}`, responsiveMode)
3356
+ ].join("\n\n");
3255
3357
  }
3256
- function svgDataUrl(svg) {
3257
- return `data:image/svg+xml,${encodeURIComponent(svg)}`;
3358
+ function narrowBoundaryCss(css, responsiveMode) {
3359
+ return responsiveMode === "container" ? convertMediaRulesToContainerRules(css) : css;
3258
3360
  }
3259
3361
  //#endregion
3260
3362
  //#region ../theme-core/src/layout/generateLayoutCss.ts
@@ -3281,7 +3383,8 @@ function generateLayoutCss(options) {
3281
3383
  if (heroTypographyCss) cssChunks.push(heroTypographyCss);
3282
3384
  const bodyTextTypographyCss = generateBodyTextTypographyCss(themeId, theme);
3283
3385
  if (bodyTextTypographyCss) cssChunks.push(bodyTextTypographyCss);
3284
- cssChunks.push(generateBoundaryCss(selector));
3386
+ cssChunks.push(generateGroundPaintCss(selector));
3387
+ cssChunks.push(generateBoundaryCss(selector, options.responsiveMode));
3285
3388
  return cssChunks.join("\n\n");
3286
3389
  }
3287
3390
  function toPaddingValue(preset) {
@@ -3705,7 +3808,8 @@ function buildThemeRuntime$1(theme, options) {
3705
3808
  });
3706
3809
  const layoutCss = generateLayoutCss({
3707
3810
  themeId,
3708
- theme
3811
+ theme,
3812
+ responsiveMode
3709
3813
  });
3710
3814
  const statusCss = generateStatusCss({
3711
3815
  themeId,
@@ -5077,6 +5181,98 @@ function FeedbackMessage({ tone, treatment = "panel", children, className, id, t
5077
5181
  });
5078
5182
  }
5079
5183
  //#endregion
5184
+ //#region ../blocks/src/system/runtime/shared/components/SiteChoiceGroup.tsx
5185
+ /**
5186
+ * The options on their own, for a fieldset someone else owns (a booking
5187
+ * question's fieldset already holds its legend, help and error).
5188
+ */
5189
+ function SiteChoiceOptions(props) {
5190
+ const size = props.size ?? "pill";
5191
+ return /* @__PURE__ */ jsx("div", {
5192
+ className: "rb-choice-options",
5193
+ "data-choice-size": size,
5194
+ children: props.options.map((option) => /* @__PURE__ */ jsxs("label", {
5195
+ className: "rb-choice",
5196
+ "data-choice-size": size,
5197
+ children: [/* @__PURE__ */ jsx(ChoiceInput, {
5198
+ option,
5199
+ size,
5200
+ group: props
5201
+ }), size === "row" ? /* @__PURE__ */ jsx(RowBody, { option }) : /* @__PURE__ */ jsx(ChipFace, { option })]
5202
+ }, option.value))
5203
+ });
5204
+ }
5205
+ /** A named group of choices: a fieldset whose legend names it, announced as a radio group. */
5206
+ function SiteChoiceGroup(props) {
5207
+ const { legend, legendHidden, className, disabled, ...options } = props;
5208
+ return /* @__PURE__ */ jsxs("fieldset", {
5209
+ className: ["rb-choice-group", className].filter(Boolean).join(" "),
5210
+ role: "radiogroup",
5211
+ "aria-required": props.required || void 0,
5212
+ disabled,
5213
+ children: [/* @__PURE__ */ jsx("legend", {
5214
+ className: legendHidden ? "rb-choice-legend rb-choice-legend--hidden" : "rb-choice-legend",
5215
+ children: legend
5216
+ }), /* @__PURE__ */ jsx(SiteChoiceOptions, { ...options })]
5217
+ });
5218
+ }
5219
+ function ChoiceInput({ option, size, group }) {
5220
+ const controlled = group.value !== void 0;
5221
+ const checked = controlled && option.value === group.value;
5222
+ const report = group.onChange ? () => group.onChange?.(option.value) : void 0;
5223
+ return /* @__PURE__ */ jsx("input", {
5224
+ type: "radio",
5225
+ className: size === "row" ? "rb-choice-radio form-radio" : "rb-choice-input",
5226
+ name: group.name,
5227
+ value: option.value,
5228
+ required: group.required,
5229
+ disabled: group.disabled || option.disabled,
5230
+ "aria-invalid": group.invalid || void 0,
5231
+ "aria-describedby": group.describedBy,
5232
+ ...controlled ? { checked } : { defaultChecked: option.value === group.defaultValue },
5233
+ onChange: report,
5234
+ onClick: checked ? report : void 0,
5235
+ onBlur: group.onBlur
5236
+ });
5237
+ }
5238
+ function ChipFace({ option }) {
5239
+ return /* @__PURE__ */ jsxs("span", {
5240
+ className: "rb-choice-face",
5241
+ children: [/* @__PURE__ */ jsx("span", {
5242
+ className: "rb-choice-label",
5243
+ children: option.label
5244
+ }), (option.details ?? []).map((detail) => /* @__PURE__ */ jsx("span", {
5245
+ className: "rb-choice-detail",
5246
+ children: detail
5247
+ }, detail))]
5248
+ });
5249
+ }
5250
+ function RowBody({ option }) {
5251
+ return /* @__PURE__ */ jsxs("span", {
5252
+ className: "rb-choice-body",
5253
+ children: [/* @__PURE__ */ jsxs("span", {
5254
+ className: "rb-choice-text",
5255
+ children: [
5256
+ /* @__PURE__ */ jsx("span", {
5257
+ className: "rb-choice-label",
5258
+ children: option.label
5259
+ }),
5260
+ (option.details ?? []).map((detail) => /* @__PURE__ */ jsx("span", {
5261
+ className: "rb-choice-detail",
5262
+ children: detail
5263
+ }, detail)),
5264
+ option.disabled && option.disabledReason ? /* @__PURE__ */ jsx("span", {
5265
+ className: "rb-choice-reason",
5266
+ children: option.disabledReason
5267
+ }) : null
5268
+ ]
5269
+ }), option.aside ? /* @__PURE__ */ jsx("span", {
5270
+ className: "rb-choice-aside",
5271
+ children: option.aside
5272
+ }) : null]
5273
+ });
5274
+ }
5275
+ //#endregion
5080
5276
  //#region ../blocks/src/system/runtime/shared/components/StepIndicator.tsx
5081
5277
  function slotClasses(slot, classPrefix, emitSharedClasses) {
5082
5278
  return [emitSharedClasses ? `rb-${slot}` : null, classPrefix ? `${classPrefix}-${slot}` : null].filter((name) => name !== null).join(" ");
@@ -5119,45 +5315,6 @@ function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emi
5119
5315
  });
5120
5316
  }
5121
5317
  //#endregion
5122
- //#region ../blocks/src/system/runtime/shared/components/ChoiceGroup.tsx
5123
- function ChoiceGroup(props) {
5124
- const size = props.size ?? "pill";
5125
- return /* @__PURE__ */ jsxs("fieldset", {
5126
- className: ["rb-choice-group", props.className].filter(Boolean).join(" "),
5127
- "data-choice-size": size,
5128
- disabled: props.disabled,
5129
- children: [/* @__PURE__ */ jsx("legend", {
5130
- className: props.legendHidden ? "rb-choice-legend rb-choice-legend--hidden" : "rb-choice-legend",
5131
- children: props.legend
5132
- }), /* @__PURE__ */ jsx("div", {
5133
- className: "rb-choice-options",
5134
- children: props.options.map((option) => /* @__PURE__ */ jsxs("label", {
5135
- className: "rb-choice",
5136
- "data-choice-size": size,
5137
- children: [/* @__PURE__ */ jsx("input", {
5138
- type: "radio",
5139
- className: "rb-choice-input",
5140
- name: props.name,
5141
- value: option.value,
5142
- required: props.required,
5143
- disabled: option.disabled,
5144
- ...props.value === void 0 ? { defaultChecked: option.value === props.defaultValue } : { checked: option.value === props.value },
5145
- onChange: props.onChange ? () => props.onChange?.(option.value) : void 0
5146
- }), /* @__PURE__ */ jsxs("span", {
5147
- className: "rb-choice-face",
5148
- children: [/* @__PURE__ */ jsx("span", {
5149
- className: "rb-choice-label",
5150
- children: option.label
5151
- }), option.detail ? /* @__PURE__ */ jsx("span", {
5152
- className: "rb-choice-detail",
5153
- children: option.detail
5154
- }) : null]
5155
- })]
5156
- }, option.value))
5157
- })]
5158
- });
5159
- }
5160
- //#endregion
5161
5318
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
5162
5319
  /**
5163
5320
  * EventCard Component
@@ -5767,10 +5924,17 @@ const formSchema = z.union([z.null(), z.object({
5767
5924
  const productsSchema = z.object({ products: z.array(z.object({ slug: z.string() })) });
5768
5925
  const passesSchema = z.object({ passes: countSchema }).transform(({ passes }) => passes);
5769
5926
  const membershipsSchema = z.object({ memberships: countSchema }).transform(({ memberships }) => memberships);
5927
+ const giftingSchema = z.object({
5928
+ giftCards: countSchema,
5929
+ vouchers: countSchema
5930
+ });
5770
5931
  /** Both producers pass raw facts through the same stage admission. */
5771
5932
  function readinessFactsFromLoaders(stage, input) {
5772
5933
  const facts = {
5773
5934
  catalogue: loaderFactProducers.catalogue(input),
5935
+ gifting: loaderFactProducers.gifting(input),
5936
+ eventFilters: loaderFactProducers.eventFilters(input),
5937
+ appointments: loaderFactProducers.appointments(input),
5774
5938
  mailingList: loaderFactProducers.mailingList(input),
5775
5939
  testimonials: loaderFactProducers.testimonials(input),
5776
5940
  events: loaderFactProducers.events(input),
@@ -5793,6 +5957,9 @@ const loaderFactProducers = {
5793
5957
  memberships: memberships.value
5794
5958
  }) : unavailableReadinessFact;
5795
5959
  },
5960
+ gifting: (input) => firstLoaderFact(input, "gifting", "offers", giftingSchema),
5961
+ eventFilters: () => unavailableReadinessFact,
5962
+ appointments: () => unavailableReadinessFact,
5796
5963
  mailingList: (input) => input.mailingList === void 0 ? unavailableReadinessFact : loadedReadinessFact(input.mailingList),
5797
5964
  testimonials: (input) => mapReadinessFact(firstLoaderFact(input, "testimonials", "entries", countSchema), (count) => ({
5798
5965
  count,
@@ -8595,15 +8762,27 @@ function selectEventDetails(args) {
8595
8762
  otherDates: otherDates.filter(isOrdinaryEvent),
8596
8763
  timeZone,
8597
8764
  depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso }),
8598
- bookedElsewhere: pageBookedElsewhere(all, occurrenceContext, args.nowIso)
8599
- };
8765
+ bookedElsewhere: pageBookedElsewhere(all, occurrenceContext, args.nowIso),
8766
+ cancelledEventDates: cancelledEventDates(selected, mode, all, args.nowIso)
8767
+ };
8768
+ }
8769
+ /** Only the overview speaks for the whole cancelled event; a chosen date keeps its own. */
8770
+ function cancelledEventDates(selected, mode, events, nowIso) {
8771
+ if (mode === "selected" || publicEventCancellation(selected) !== "event") return null;
8772
+ const dates = [selected, ...events.filter(isOrdinaryEvent).filter((event) => event.seriesId === selected.seriesId && event.occurrenceId !== selected.occurrenceId && isFutureOrNow(event.startsAt, nowIso))].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
8773
+ const first = dates[0];
8774
+ const last = dates.at(-1);
8775
+ return first && last ? {
8776
+ first,
8777
+ last
8778
+ } : null;
8600
8779
  }
8601
8780
  //#endregion
8602
8781
  //#region ../blocks/src/system/runtime/nodes/event-details/presentation.ts
8603
8782
  function resolveSelection(input) {
8604
8783
  return selectEventDetails({
8605
8784
  events: input.events ?? null,
8606
- occurrenceContext: input.occurrenceContext ?? null,
8785
+ occurrenceContext: input.eventOverview ? null : input.occurrenceContext ?? null,
8607
8786
  subject: input.subject,
8608
8787
  nowIso: input.now,
8609
8788
  otherDatesLimit: input.otherDatesLimit
@@ -8662,57 +8841,111 @@ function resolveDetailSlots(presentation) {
8662
8841
  };
8663
8842
  }
8664
8843
  //#endregion
8665
- //#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
8844
+ //#region ../blocks/src/system/runtime/nodes/event-details/eventPriceSummary.ts
8845
+ function decideEventPriceSummary(input) {
8846
+ if (input.options.length < 2) return {
8847
+ kind: "price",
8848
+ price: input.price,
8849
+ depositNote: input.depositNote
8850
+ };
8851
+ return {
8852
+ kind: "options",
8853
+ range: input.optionsCoverEveryPrice ? null : input.price,
8854
+ options: input.options,
8855
+ depositNote: input.depositNote
8856
+ };
8857
+ }
8666
8858
  /** A course lists every active option, whether or not its sale window is open. */
8667
8859
  function wholeSeriesPriceOptions(pricing) {
8668
8860
  return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
8669
8861
  }
8670
- /** The price, with any deposit option said beside it. */
8671
- function PriceLine({ price, depositNote, valueSlot }) {
8672
- return /* @__PURE__ */ jsxs("p", {
8673
- ...valueSlot,
8674
- children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null]
8862
+ function wholeSeriesPriceSummary(pricing, depositNote) {
8863
+ return decideEventPriceSummary({
8864
+ price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
8865
+ options: wholeSeriesPriceOptions(pricing).map((option) => ({
8866
+ id: option.id,
8867
+ name: option.name,
8868
+ description: option.description,
8869
+ price: formatEventPriceAmount(option.priceAmount, pricing.currency)
8870
+ })),
8871
+ depositNote,
8872
+ optionsCoverEveryPrice: true
8873
+ });
8874
+ }
8875
+ //#endregion
8876
+ //#region ../blocks/src/system/runtime/nodes/event-details/EventFactRows.tsx
8877
+ /**
8878
+ * An event's facts as a short list: one row per fact, a small icon where a
8879
+ * label would be. The labels stay for screen readers. Each row is a direct
8880
+ * child of the list, so a site style's `facts > *` rules still reach it.
8881
+ */
8882
+ function EventFactList({ slot, children }) {
8883
+ return /* @__PURE__ */ jsx("dl", {
8884
+ ...slot,
8885
+ className: "rb-event-facts",
8886
+ children
8675
8887
  });
8676
8888
  }
8677
- function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems, slots }) {
8678
- const options = wholeSeriesPriceOptions(pricing);
8889
+ function EventFactRow({ fact, label, icon: Icon, slots, wide = false, children }) {
8679
8890
  return /* @__PURE__ */ jsxs("div", {
8680
8891
  ...slots.detail,
8681
- className: "rb-mt-6",
8682
- children: [
8683
- /* @__PURE__ */ jsx("div", {
8684
- ...slots.label,
8685
- className: "rb-label rb-mb-2",
8686
- children: options.length > 1 ? "Pricing" : "Cost"
8687
- }),
8688
- options.length > 1 ? /* @__PURE__ */ jsx("div", {
8892
+ "data-fact": fact,
8893
+ "data-fact-wide": wide ? "" : void 0,
8894
+ children: [/* @__PURE__ */ jsx("dt", {
8895
+ ...slots.label,
8896
+ className: "rb-sr-only",
8897
+ children: label
8898
+ }), /* @__PURE__ */ jsxs("dd", {
8899
+ className: "rb-event-fact",
8900
+ children: [/* @__PURE__ */ jsx(Icon, {
8901
+ className: "rb-event-fact-icon",
8902
+ strokeWidth: 1.75
8903
+ }), /* @__PURE__ */ jsx("div", {
8689
8904
  ...slots.value,
8690
- className: "rb-flex rb-flex-col rb-gap-2",
8691
- children: options.map((option) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("strong", { children: [
8692
- option.name,
8693
- ":",
8694
- " ",
8695
- formatEventPriceAmount(option.priceAmount, pricing.currency)
8696
- ] }), option.description ? /* @__PURE__ */ jsx("p", {
8697
- className: "rb-caption status-muted",
8698
- children: option.description
8699
- }) : null] }, option.id))
8700
- }) : /* @__PURE__ */ jsx(PriceLine, {
8701
- price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
8702
- depositNote,
8703
- valueSlot: slots.value
8704
- }),
8705
- depositNote && options.length > 1 ? /* @__PURE__ */ jsxs("p", {
8706
- className: "rb-caption rb-mt-1",
8707
- children: [depositNote.charAt(0).toUpperCase(), depositNote.slice(1)]
8708
- }) : null,
8709
- acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
8710
- className: "rb-caption rb-mt-1",
8711
- children: ["You can also attend with: ", acceptedItems.join(", ")]
8712
- }) : null
8713
- ]
8905
+ className: "rb-event-fact-text",
8906
+ children
8907
+ })]
8908
+ })]
8714
8909
  });
8715
8910
  }
8911
+ /** The price, with any deposit option said beside it. */
8912
+ function PriceLine({ price, depositNote }) {
8913
+ return /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null] });
8914
+ }
8915
+ /** Each price sits next to its name. Descriptions put one option on each line. */
8916
+ function PriceOptionList({ options }) {
8917
+ return /* @__PURE__ */ jsx("ul", {
8918
+ className: "rb-event-price-options",
8919
+ "data-described": options.some((option) => option.description) ? "" : void 0,
8920
+ children: options.map((option) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsxs("span", { children: [
8921
+ /* @__PURE__ */ jsx("strong", { children: option.price }),
8922
+ " ",
8923
+ option.name
8924
+ ] }), option.description ? /* @__PURE__ */ jsx("span", {
8925
+ className: "rb-caption rb-event-fact-muted",
8926
+ children: option.description
8927
+ }) : null] }, option.id))
8928
+ });
8929
+ }
8930
+ /** Prices with descriptions read as sentences, so they need the width of the row. */
8931
+ function priceSummaryIsWide(summary) {
8932
+ return summary.kind !== "price" && summary.options.some((option) => option.description);
8933
+ }
8934
+ const sentence = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
8935
+ function EventPriceSummaryLines({ summary }) {
8936
+ if (summary.kind === "price") return /* @__PURE__ */ jsx(PriceLine, {
8937
+ price: summary.price,
8938
+ depositNote: summary.depositNote
8939
+ });
8940
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
8941
+ summary.range ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: summary.range }) }) : null,
8942
+ /* @__PURE__ */ jsx(PriceOptionList, { options: summary.options }),
8943
+ summary.depositNote ? /* @__PURE__ */ jsxs("p", {
8944
+ className: "rb-caption rb-event-fact-muted",
8945
+ children: [sentence(summary.depositNote), "."]
8946
+ }) : null
8947
+ ] });
8948
+ }
8716
8949
  //#endregion
8717
8950
  //#region ../blocks/src/system/runtime/nodes/event-details/view.tsx
8718
8951
  function formatAutoApplyDiscountLine(preview, currency) {
@@ -8730,79 +8963,79 @@ function TeamMemberName({ name, profilePath }) {
8730
8963
  function formatTicketTypePrice(ticketType, currency) {
8731
8964
  return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
8732
8965
  }
8966
+ /** A room's prices depend on the room, so the booking form shows them with it, not the price list. */
8967
+ const roomPriceIdsOf = (event) => event.rooms?.linkedOptionIds ?? [];
8968
+ /** With a room's prices left out of the list, the range line stays to say how far prices go. */
8969
+ const hasRoomPrices = (event) => event.pricing.kind === "tiered" && event.pricing.options.some((option) => roomPriceIdsOf(event).includes(option.id));
8733
8970
  function getDisplayablePricingOptions(event) {
8734
- const roomPriceIds = event.rooms?.linkedOptionIds ?? [];
8971
+ const roomPriceIds = roomPriceIdsOf(event);
8735
8972
  return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
8736
8973
  }
8737
- function TicketTypePriceList({ ticketTypes, currency }) {
8738
- if (ticketTypes.length === 0) return null;
8739
- return /* @__PURE__ */ jsx("div", {
8740
- className: "rb-mt-3 rb-flex rb-flex-col rb-gap-2",
8741
- children: ticketTypes.map((ticketType) => /* @__PURE__ */ jsxs("div", {
8742
- className: "rb-flex rb-items-start rb-justify-between rb-gap-4",
8743
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", { children: ticketType.name }), ticketType.description ? /* @__PURE__ */ jsx("p", {
8744
- className: "rb-caption status-muted",
8745
- children: ticketType.description
8746
- }) : null] }), /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: formatTicketTypePrice(ticketType, currency) }) })]
8747
- }, ticketType.id))
8748
- });
8974
+ function ticketPriceSummary(pricing, price) {
8975
+ const currency = pricing.eventPricingCurrency;
8976
+ return decideEventPriceSummary({
8977
+ price,
8978
+ options: currency ? pricing.ticketTypes.map((ticketType) => ({
8979
+ id: ticketType.id,
8980
+ name: ticketType.name,
8981
+ description: ticketType.description,
8982
+ price: formatTicketTypePrice(ticketType, currency)
8983
+ })) : [],
8984
+ depositNote: pricing.depositNote,
8985
+ optionsCoverEveryPrice: pricing.ticketsCoverEveryPrice
8986
+ });
8987
+ }
8988
+ function AcceptedItemsLine({ acceptedItems }) {
8989
+ return acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
8990
+ className: "rb-caption",
8991
+ children: ["You can also attend with: ", acceptedItems.join(", ")]
8992
+ }) : null;
8749
8993
  }
8750
- function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItems, eventCostLabel, depositNote, eventPricingCurrency, ticketTypes, autoApplyDiscount, slots }) {
8751
- if (isDropIn) return /* @__PURE__ */ jsxs("div", {
8752
- ...slots.detail,
8753
- className: "rb-mt-6",
8754
- children: [/* @__PURE__ */ jsx("div", {
8755
- ...slots.label,
8756
- className: "rb-label rb-mb-2",
8757
- children: "Registration"
8758
- }), /* @__PURE__ */ jsx("p", {
8759
- ...slots.value,
8760
- className: "rb-caption status-muted",
8761
- children: "No registration required - just show up"
8762
- })]
8763
- });
8764
- if (wholeSeriesPricingDisplay) return /* @__PURE__ */ jsx(WholeSeriesPricingDisplay, {
8765
- pricing: wholeSeriesPricingDisplay,
8766
- depositNote,
8767
- acceptedItems: [...acceptedItems],
8768
- slots
8769
- });
8770
- if (eventCostLabel) return /* @__PURE__ */ jsxs("div", {
8771
- ...slots.detail,
8772
- className: "rb-mt-6",
8773
- children: [
8774
- /* @__PURE__ */ jsx("div", {
8775
- ...slots.label,
8776
- className: "rb-label rb-mb-2",
8777
- children: "Cost"
8778
- }),
8779
- /* @__PURE__ */ jsx(PriceLine, {
8780
- price: eventCostLabel,
8781
- depositNote,
8782
- valueSlot: slots.value
8783
- }),
8784
- autoApplyDiscount && eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
8785
- className: "rb-caption rb-mt-1",
8786
- children: formatAutoApplyDiscountLine(autoApplyDiscount, eventPricingCurrency)
8787
- }) : null,
8788
- eventPricingCurrency && ticketTypes.length > 1 ? /* @__PURE__ */ jsx(TicketTypePriceList, {
8789
- ticketTypes,
8790
- currency: eventPricingCurrency
8791
- }) : null,
8792
- acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
8793
- className: "rb-caption rb-mt-1",
8794
- children: ["You can also attend with: ", acceptedItems.join(", ")]
8795
- }) : null
8796
- ]
8797
- });
8798
- return acceptedItems.length > 0 ? /* @__PURE__ */ jsx("div", {
8799
- ...slots.detail,
8800
- className: "rb-mt-6",
8801
- children: /* @__PURE__ */ jsxs("p", {
8802
- ...slots.value,
8803
- className: "rb-caption",
8804
- children: ["You can also attend with: ", acceptedItems.join(", ")]
8805
- })
8994
+ /** The price row, in whichever form this event's pricing takes. */
8995
+ function EventPricingDetails(props) {
8996
+ const { acceptedItems, slots } = props;
8997
+ if (props.isDropIn) return /* @__PURE__ */ jsx(EventFactRow, {
8998
+ slots,
8999
+ fact: "registration",
9000
+ label: "Registration",
9001
+ icon: TicketIcon,
9002
+ children: /* @__PURE__ */ jsx("p", { children: "No registration required - just show up" })
9003
+ });
9004
+ if (props.wholeSeriesPricingDisplay) {
9005
+ const summary = wholeSeriesPriceSummary(props.wholeSeriesPricingDisplay, props.depositNote);
9006
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9007
+ slots,
9008
+ fact: "price",
9009
+ label: "Cost",
9010
+ icon: TicketIcon,
9011
+ wide: priceSummaryIsWide(summary),
9012
+ children: [/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary }), /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })]
9013
+ });
9014
+ }
9015
+ if (props.eventCostLabel) {
9016
+ const summary = ticketPriceSummary(props, props.eventCostLabel);
9017
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9018
+ slots,
9019
+ fact: "price",
9020
+ label: "Cost",
9021
+ icon: TicketIcon,
9022
+ wide: priceSummaryIsWide(summary),
9023
+ children: [
9024
+ /* @__PURE__ */ jsx(EventPriceSummaryLines, { summary }),
9025
+ props.autoApplyDiscount && props.eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
9026
+ className: "rb-caption",
9027
+ children: formatAutoApplyDiscountLine(props.autoApplyDiscount, props.eventPricingCurrency)
9028
+ }) : null,
9029
+ /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
9030
+ ]
9031
+ });
9032
+ }
9033
+ return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(EventFactRow, {
9034
+ slots,
9035
+ fact: "accepted",
9036
+ label: "Passes and memberships",
9037
+ icon: TicketIcon,
9038
+ children: /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
8806
9039
  }) : null;
8807
9040
  }
8808
9041
  function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
@@ -8811,28 +9044,22 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
8811
9044
  endsAt: selected.endsAt,
8812
9045
  ...eventDateOptions(selected)
8813
9046
  });
8814
- const dateHeading = selection.kind === "wholeSeries" ? runLifecycleLabel(selection.lifecycle) : selection.mode === "next" ? "Next date" : "Date";
8815
- return /* @__PURE__ */ jsxs("div", {
8816
- ...listLookSlot({ lookSlots }, "facts"),
8817
- className: "rb-flex rb-flex-col rb-gap-4",
9047
+ const dateFact = cancelledEventDatesFact(selection) ?? {
9048
+ label: ordinaryDateHeading(selection),
9049
+ value: date
9050
+ };
9051
+ return /* @__PURE__ */ jsxs(EventFactList, {
9052
+ slot: listLookSlot({ lookSlots }, "facts"),
8818
9053
  children: [
8819
- /* @__PURE__ */ jsxs("div", {
8820
- ...slots.detail,
8821
- children: [
8822
- /* @__PURE__ */ jsx("div", {
8823
- ...slots.label,
8824
- className: "rb-label rb-mb-2",
8825
- children: dateHeading
8826
- }),
8827
- /* @__PURE__ */ jsx("p", {
8828
- ...slots.value,
8829
- children: /* @__PURE__ */ jsx("strong", { children: date })
8830
- }),
8831
- /* @__PURE__ */ jsx("p", {
8832
- className: "rb-caption",
8833
- children: timeRange
8834
- })
8835
- ]
9054
+ /* @__PURE__ */ jsxs(EventFactRow, {
9055
+ slots,
9056
+ fact: "date",
9057
+ label: dateFact.label,
9058
+ icon: CalendarIcon$1,
9059
+ children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: dateFact.value }) }), /* @__PURE__ */ jsx("p", {
9060
+ className: "rb-event-fact-muted",
9061
+ children: timeRange
9062
+ })]
8836
9063
  }),
8837
9064
  /* @__PURE__ */ jsx(EventVenueFact, {
8838
9065
  venue,
@@ -8844,17 +9071,12 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
8844
9071
  teamMembers,
8845
9072
  slots
8846
9073
  }),
8847
- showCapacity && selected.capacity != null ? /* @__PURE__ */ jsxs("div", {
8848
- ...slots.detail,
8849
- className: "rb-mt-6",
8850
- children: [/* @__PURE__ */ jsx("div", {
8851
- ...slots.label,
8852
- className: "rb-label rb-mb-2",
8853
- children: "Places"
8854
- }), /* @__PURE__ */ jsx("p", {
8855
- ...slots.value,
8856
- children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity)
8857
- })]
9074
+ showCapacity && selected.capacity != null ? /* @__PURE__ */ jsx(EventFactRow, {
9075
+ slots,
9076
+ fact: "places",
9077
+ label: "Places",
9078
+ icon: UsersIcon,
9079
+ children: /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })
8858
9080
  }) : null,
8859
9081
  pricing,
8860
9082
  selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
@@ -8865,43 +9087,34 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
8865
9087
  ]
8866
9088
  });
8867
9089
  }
9090
+ const ordinaryDateHeading = (selection) => selection.kind === "wholeSeries" ? runLifecycleLabel(selection.lifecycle) : selection.mode === "next" ? "Next date" : "Date";
8868
9091
  const eventOnlinePlaceShown = (event, showVenue) => showVenue ? eventOnlinePlace(event) : null;
8869
9092
  const hasEventPlaceFact = (event, showVenue) => showVenue && (Boolean(event.venue) || eventOnlinePlace(event) !== null || event.addressAfterBooking === true);
8870
9093
  const addressAfterBookingShown = (event, showVenue) => showVenue && event.addressAfterBooking === true;
8871
9094
  /** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
8872
9095
  function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
8873
9096
  if (!online && !addressAfterBooking) return null;
8874
- if (!online) return /* @__PURE__ */ jsxs("div", {
8875
- ...slots.detail,
8876
- className: "rb-mt-6",
8877
- children: [/* @__PURE__ */ jsx("div", {
8878
- ...slots.label,
8879
- className: "rb-label rb-mb-2",
8880
- children: "Venue"
8881
- }), /* @__PURE__ */ jsx("p", {
8882
- ...slots.value,
8883
- children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL })
8884
- })]
8885
- });
8886
- return /* @__PURE__ */ jsxs("div", {
8887
- ...slots.detail,
8888
- className: "rb-mt-6",
9097
+ if (!online) return /* @__PURE__ */ jsx(EventFactRow, {
9098
+ slots,
9099
+ fact: "venue",
9100
+ label: "Venue",
9101
+ icon: MapPinIcon$1,
9102
+ children: /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })
9103
+ });
9104
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9105
+ slots,
9106
+ fact: "venue",
9107
+ label: "Venue",
9108
+ icon: GlobeIcon,
9109
+ wide: addressAfterBooking || Boolean(online.note),
8889
9110
  children: [
8890
- /* @__PURE__ */ jsx("div", {
8891
- ...slots.label,
8892
- className: "rb-label rb-mb-2",
8893
- children: "Venue"
8894
- }),
8895
- /* @__PURE__ */ jsx("p", {
8896
- ...slots.value,
8897
- children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" })
8898
- }),
9111
+ /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
8899
9112
  addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
8900
- className: "rb-caption",
9113
+ className: "rb-caption rb-event-fact-muted",
8901
9114
  children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
8902
9115
  }) : null,
8903
9116
  online.note ? /* @__PURE__ */ jsx("p", {
8904
- className: "rb-caption",
9117
+ className: "rb-caption rb-event-fact-muted",
8905
9118
  children: online.note
8906
9119
  }) : null
8907
9120
  ]
@@ -8915,57 +9128,46 @@ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
8915
9128
  slots
8916
9129
  });
8917
9130
  const { place, addressWithBooking } = eventVenuePlace(venue);
8918
- return /* @__PURE__ */ jsxs("div", {
8919
- ...slots.detail,
8920
- className: "rb-mt-6",
9131
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9132
+ slots,
9133
+ fact: "venue",
9134
+ label: "Venue",
9135
+ icon: MapPinIcon$1,
9136
+ wide: addressWithBooking || online !== null,
8921
9137
  children: [
8922
- /* @__PURE__ */ jsx("div", {
8923
- ...slots.label,
8924
- className: "rb-label rb-mb-2",
8925
- children: "Venue"
8926
- }),
8927
- /* @__PURE__ */ jsx("p", {
8928
- ...slots.value,
8929
- children: /* @__PURE__ */ jsx("strong", { children: venue.name })
8930
- }),
8931
- place ? /* @__PURE__ */ jsx("p", {
8932
- className: "rb-caption",
8933
- children: place
8934
- }) : null,
9138
+ /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? `, ${place}` : null] }),
8935
9139
  addressWithBooking ? /* @__PURE__ */ jsx("p", {
8936
- className: "rb-caption rb-mt-1",
9140
+ className: "rb-caption rb-event-fact-muted",
8937
9141
  children: "The full address and directions come with your booking confirmation."
8938
9142
  }) : /* @__PURE__ */ jsx(LocationMapActions, {
8939
9143
  location: venue.location,
8940
9144
  addressText: venue.address
8941
9145
  }),
8942
9146
  online ? /* @__PURE__ */ jsxs("p", {
8943
- className: "rb-caption rb-mt-1",
9147
+ className: "rb-caption rb-event-fact-muted",
8944
9148
  children: ["You can also join online.", online.note ? ` ${online.note}` : ""]
8945
9149
  }) : null
8946
9150
  ]
8947
9151
  });
8948
9152
  }
9153
+ /** "With Alice", "With Alice and Ben", "With Alice, Ben and Cara". */
9154
+ const nameSeparator = (index, count) => index === 0 ? "" : index === count - 1 ? " and " : ", ";
8949
9155
  function EventTeacherFacts({ teamMembers, slots }) {
8950
- return teamMembers.length ? /* @__PURE__ */ jsxs("div", {
8951
- ...slots.detail,
8952
- className: "rb-mt-6",
8953
- children: [/* @__PURE__ */ jsx("div", {
8954
- ...slots.label,
8955
- className: "rb-label rb-mb-2",
8956
- children: "With"
8957
- }), /* @__PURE__ */ jsx("div", {
8958
- ...slots.value,
8959
- className: "rb-flex rb-flex-col rb-gap-3",
8960
- children: teamMembers.map((member) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx(TeamMemberName, {
8961
- name: member.name,
8962
- profilePath: member.profilePath
8963
- }) }), member.summary ? /* @__PURE__ */ jsx("p", {
8964
- className: "rb-caption status-muted",
8965
- children: member.summary
8966
- }) : null] }, member.id))
8967
- })]
8968
- }) : null;
9156
+ if (teamMembers.length === 0) return null;
9157
+ const described = teamMembers.filter((member) => member.summary);
9158
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9159
+ slots,
9160
+ fact: "team",
9161
+ label: "With",
9162
+ icon: UserIcon,
9163
+ children: [/* @__PURE__ */ jsxs("p", { children: ["With ", teamMembers.map((member, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [nameSeparator(index, teamMembers.length), /* @__PURE__ */ jsx(TeamMemberName, {
9164
+ name: member.name,
9165
+ profilePath: member.profilePath
9166
+ })] }, member.id))] }), described.map((member) => /* @__PURE__ */ jsxs("p", {
9167
+ className: "rb-caption rb-event-fact-muted",
9168
+ children: [teamMembers.length > 1 ? `${member.name}: ` : null, member.summary]
9169
+ }, member.id))]
9170
+ });
8969
9171
  }
8970
9172
  /**
8971
9173
  * Where the run has got to, in the words a visitor would use.
@@ -8990,24 +9192,15 @@ function runLifecycleLabel(lifecycle) {
8990
9192
  * actually notices.
8991
9193
  */
8992
9194
  function BookingState({ phase, event, slots }) {
8993
- return /* @__PURE__ */ jsxs("div", {
8994
- ...slots.detail,
8995
- className: "rb-mt-6",
8996
- children: [
8997
- /* @__PURE__ */ jsx("div", {
8998
- ...slots.label,
8999
- className: "rb-label rb-mb-2",
9000
- children: "Booking"
9001
- }),
9002
- /* @__PURE__ */ jsx("p", {
9003
- ...slots.value,
9004
- children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" })
9005
- }),
9006
- phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
9007
- className: "rb-caption",
9008
- children: bookingClosedReason(phase.reason)
9009
- }) : null
9010
- ]
9195
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9196
+ slots,
9197
+ fact: "booking",
9198
+ label: "Booking",
9199
+ icon: InfoIcon,
9200
+ children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }), phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
9201
+ className: "rb-caption rb-event-fact-muted",
9202
+ children: bookingClosedReason(phase.reason)
9203
+ }) : null]
9011
9204
  });
9012
9205
  }
9013
9206
  function bookingClosedReason(reason) {
@@ -9120,7 +9313,8 @@ function selectedEventPricing(selection, showCost) {
9120
9313
  eventCostLabel: showEventCost ? formatEventPrice(event) : null,
9121
9314
  depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
9122
9315
  eventPricingCurrency: publicEventPricingCurrency(event.pricing),
9123
- ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
9316
+ ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : [],
9317
+ ticketsCoverEveryPrice: !hasRoomPrices(event)
9124
9318
  };
9125
9319
  }
9126
9320
  const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
@@ -9256,25 +9450,22 @@ function EventHeaderPanel(props) {
9256
9450
  });
9257
9451
  }
9258
9452
  function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing, slots }) {
9259
- return /* @__PURE__ */ jsxs("div", {
9260
- className: "rb-flex rb-flex-col rb-gap-4",
9261
- children: [
9262
- /* @__PURE__ */ jsx(EventVenueFact, {
9263
- venue,
9264
- online,
9265
- addressAfterBooking,
9266
- slots
9267
- }),
9268
- /* @__PURE__ */ jsx(EventTeacherFacts, {
9269
- teamMembers,
9270
- slots
9271
- }),
9272
- pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
9273
- ...pricing,
9274
- slots
9275
- }) : null
9276
- ]
9277
- });
9453
+ return /* @__PURE__ */ jsxs(EventFactList, { children: [
9454
+ /* @__PURE__ */ jsx(EventVenueFact, {
9455
+ venue,
9456
+ online,
9457
+ addressAfterBooking,
9458
+ slots
9459
+ }),
9460
+ /* @__PURE__ */ jsx(EventTeacherFacts, {
9461
+ teamMembers,
9462
+ slots
9463
+ }),
9464
+ pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
9465
+ ...pricing,
9466
+ slots
9467
+ }) : null
9468
+ ] });
9278
9469
  }
9279
9470
  /** What the panel has to add to the header, decided once. */
9280
9471
  function headerPanelContent(props) {
@@ -11233,6 +11424,11 @@ function CheckoutSSR({ blockId, siteId, apiBaseUrl, stage, demoEmailSuppressed,
11233
11424
  //#endregion
11234
11425
  //#region ../blocks/src/system/runtime/nodes/gifting.parts.tsx
11235
11426
  const CUSTOM_GIFT_AMOUNT = "custom";
11427
+ /**
11428
+ * What the panel says with no offers to show. Visitors only see it if the
11429
+ * offers couldn't be read: with nothing on offer the block stays hidden.
11430
+ */
11431
+ const GIFTING_NOTHING_TO_SHOW = "Nothing is available right now.";
11236
11432
  /** A Look's hook (and, for the panel, its surface) on one part of the gifting panel; nothing outside a Look. */
11237
11433
  function giftingSlot(look, slot) {
11238
11434
  return listLookSlot(look ?? {}, slot);
@@ -11263,7 +11459,7 @@ function GiftCardAmounts(props) {
11263
11459
  value: CUSTOM_GIFT_AMOUNT,
11264
11460
  label: "Another amount"
11265
11461
  }] : []];
11266
- return /* @__PURE__ */ jsx(ChoiceGroup, {
11462
+ return /* @__PURE__ */ jsx(SiteChoiceGroup, {
11267
11463
  className: "gifting-amounts",
11268
11464
  name: props.groupName ?? "amountChoice",
11269
11465
  legend: "Amount",
@@ -11300,6 +11496,13 @@ function GiftGroup(props) {
11300
11496
  }), props.children]
11301
11497
  });
11302
11498
  }
11499
+ /** The same validity before hydration and while filling in the purchase form. */
11500
+ function GiftingExpiry({ days }) {
11501
+ return days === void 0 ? null : /* @__PURE__ */ jsx("p", {
11502
+ className: "gifting-offer-description",
11503
+ children: `Valid for ${days} ${days === 1 ? "day" : "days"} from the date the gift is sent.`
11504
+ });
11505
+ }
11303
11506
  //#endregion
11304
11507
  //#region ../blocks/src/system/runtime/nodes/gifting.server.tsx
11305
11508
  /** What shows until the island takes over: the same panel, with the details form still closed. */
@@ -11322,87 +11525,91 @@ function GiftingSSR({ blockId, ...rest }) {
11322
11525
  children: /* @__PURE__ */ jsxs("div", {
11323
11526
  className: "gifting",
11324
11527
  ...display.lookSlots ? { "data-slot": "layout" } : {},
11325
- children: [/* @__PURE__ */ jsx(GiftingPanelHead, {
11326
- heading: display.heading,
11327
- intro: display.intro,
11328
- look: display
11329
- }), /* @__PURE__ */ jsx("div", {
11330
- className: "gifting-main",
11331
- children: hasOffers ? /* @__PURE__ */ jsx("div", {
11332
- className: "gifting-groups",
11333
- "data-group-count": display.groups.length,
11334
- children: display.groups.map((group) => /* @__PURE__ */ jsx(GiftGroup, {
11335
- group,
11336
- look: display,
11337
- children: group.kind === "gift_card" ? /* @__PURE__ */ jsx(Fragment, { children: giftCards.map((offer) => /* @__PURE__ */ jsxs("div", {
11338
- className: "gifting-offer",
11339
- "data-gift-offer": offer.id,
11340
- children: [
11341
- giftCards.length > 1 ? /* @__PURE__ */ jsx("h4", {
11342
- className: "gifting-offer-title",
11343
- children: offer.title
11344
- }) : null,
11345
- offer.description ? /* @__PURE__ */ jsx("p", {
11346
- className: "gifting-offer-description",
11347
- children: offer.description
11348
- }) : null,
11349
- /* @__PURE__ */ jsxs("div", {
11350
- className: "gifting-offer-row",
11351
- "data-gift-offer-row": "",
11352
- children: [/* @__PURE__ */ jsx(GiftCardAmounts, {
11353
- offer,
11354
- currency: offers?.currency ?? "GBP",
11355
- groupName: `amountChoice-${offer.id}`,
11356
- look: display
11357
- }), /* @__PURE__ */ jsx(ThemedButton, {
11358
- ...giftingSlot(display, "action"),
11359
- type: "button",
11360
- variant: "primary",
11361
- size: "md",
11362
- extraClassName: "gifting-buy",
11363
- label: "Buy a gift card"
11364
- })]
11365
- })
11366
- ]
11367
- }, offer.id)) }) : /* @__PURE__ */ jsx("ul", {
11368
- className: "gifting-voucher-list",
11369
- children: vouchers.map((offer) => /* @__PURE__ */ jsx("li", {
11370
- className: "gifting-voucher",
11371
- children: /* @__PURE__ */ jsxs("div", {
11372
- className: "gifting-offer",
11373
- children: [
11374
- /* @__PURE__ */ jsxs("div", {
11375
- className: "gifting-offer-summary",
11376
- children: [/* @__PURE__ */ jsx("h4", {
11377
- className: "gifting-offer-title",
11378
- children: offer.title
11379
- }), /* @__PURE__ */ jsx("strong", {
11380
- className: "gifting-offer-price",
11381
- children: formatGiftAmount(offer.voucher.purchaseAmountCents, offers?.currency ?? "GBP")
11382
- })]
11383
- }),
11384
- offer.description ? /* @__PURE__ */ jsx("p", {
11385
- className: "gifting-offer-description",
11386
- children: offer.description
11387
- }) : null,
11388
- /* @__PURE__ */ jsx(ThemedButton, {
11528
+ children: [
11529
+ /* @__PURE__ */ jsx(GiftingPanelHead, {
11530
+ heading: display.heading,
11531
+ intro: display.intro,
11532
+ look: display
11533
+ }),
11534
+ /* @__PURE__ */ jsx(GiftingExpiry, { days: offers?.expiryDays }),
11535
+ /* @__PURE__ */ jsx("div", {
11536
+ className: "gifting-main",
11537
+ children: hasOffers ? /* @__PURE__ */ jsx("div", {
11538
+ className: "gifting-groups",
11539
+ "data-group-count": display.groups.length,
11540
+ children: display.groups.map((group) => /* @__PURE__ */ jsx(GiftGroup, {
11541
+ group,
11542
+ look: display,
11543
+ children: group.kind === "gift_card" ? /* @__PURE__ */ jsx(Fragment, { children: giftCards.map((offer) => /* @__PURE__ */ jsxs("div", {
11544
+ className: "gifting-offer",
11545
+ "data-gift-offer": offer.id,
11546
+ children: [
11547
+ giftCards.length > 1 ? /* @__PURE__ */ jsx("h4", {
11548
+ className: "gifting-offer-title",
11549
+ children: offer.title
11550
+ }) : null,
11551
+ offer.description ? /* @__PURE__ */ jsx("p", {
11552
+ className: "gifting-offer-description",
11553
+ children: offer.description
11554
+ }) : null,
11555
+ /* @__PURE__ */ jsxs("div", {
11556
+ className: "gifting-offer-row",
11557
+ "data-gift-offer-row": "",
11558
+ children: [/* @__PURE__ */ jsx(GiftCardAmounts, {
11559
+ offer,
11560
+ currency: offers?.currency ?? "GBP",
11561
+ groupName: `amountChoice-${offer.id}`,
11562
+ look: display
11563
+ }), /* @__PURE__ */ jsx(ThemedButton, {
11389
11564
  ...giftingSlot(display, "action"),
11390
11565
  type: "button",
11391
- variant: "secondary",
11566
+ variant: "primary",
11392
11567
  size: "md",
11393
11568
  extraClassName: "gifting-buy",
11394
- label: "Buy this voucher"
11395
- })
11396
- ]
11397
- })
11398
- }, offer.id))
11399
- })
11400
- }, group.kind))
11401
- }) : /* @__PURE__ */ jsx("p", {
11402
- className: "gifting-empty",
11403
- children: display.emptyStateText
11569
+ label: "Buy a gift card"
11570
+ })]
11571
+ })
11572
+ ]
11573
+ }, offer.id)) }) : /* @__PURE__ */ jsx("ul", {
11574
+ className: "gifting-voucher-list",
11575
+ children: vouchers.map((offer) => /* @__PURE__ */ jsx("li", {
11576
+ className: "gifting-voucher",
11577
+ children: /* @__PURE__ */ jsxs("div", {
11578
+ className: "gifting-offer",
11579
+ children: [
11580
+ /* @__PURE__ */ jsxs("div", {
11581
+ className: "gifting-offer-summary",
11582
+ children: [/* @__PURE__ */ jsx("h4", {
11583
+ className: "gifting-offer-title",
11584
+ children: offer.title
11585
+ }), /* @__PURE__ */ jsx("strong", {
11586
+ className: "gifting-offer-price",
11587
+ children: formatGiftAmount(offer.voucher.purchaseAmountCents, offers?.currency ?? "GBP")
11588
+ })]
11589
+ }),
11590
+ offer.description ? /* @__PURE__ */ jsx("p", {
11591
+ className: "gifting-offer-description",
11592
+ children: offer.description
11593
+ }) : null,
11594
+ /* @__PURE__ */ jsx(ThemedButton, {
11595
+ ...giftingSlot(display, "action"),
11596
+ type: "button",
11597
+ variant: "secondary",
11598
+ size: "md",
11599
+ extraClassName: "gifting-buy",
11600
+ label: "Buy this voucher"
11601
+ })
11602
+ ]
11603
+ })
11604
+ }, offer.id))
11605
+ })
11606
+ }, group.kind))
11607
+ }) : /* @__PURE__ */ jsx("p", {
11608
+ className: "gifting-empty",
11609
+ children: GIFTING_NOTHING_TO_SHOW
11610
+ })
11404
11611
  })
11405
- })]
11612
+ ]
11406
11613
  })
11407
11614
  });
11408
11615
  }
@@ -12513,10 +12720,10 @@ function EventBookingPanelBody({ panel }) {
12513
12720
  className: "event-booking-panel__cancelled",
12514
12721
  children: [/* @__PURE__ */ jsx("h2", {
12515
12722
  className: "card-title rb-mb-3",
12516
- children: cancelledDateCopy.titleText
12723
+ children: panel.copy.titleText
12517
12724
  }), /* @__PURE__ */ jsx("p", {
12518
12725
  className: "status-muted rb-text-base rb-leading-relaxed",
12519
- children: cancelledDateCopy.bodyText
12726
+ children: panel.copy.bodyText
12520
12727
  })]
12521
12728
  });
12522
12729
  case "bookElsewhere": return /* @__PURE__ */ jsx("div", {
@@ -12766,9 +12973,11 @@ function selectOccurrenceForPanel(events, occurrenceId) {
12766
12973
  } : null;
12767
12974
  }
12768
12975
  function planEventBookingPanel({ selection, subject, pageEvents }, now) {
12769
- if (isCancelledDateSelection(selection)) return {
12976
+ const cancelled = cancelledDateSelectionCopy(selection);
12977
+ if (cancelled) return {
12770
12978
  kind: "cancelled",
12771
- registration: null
12979
+ registration: null,
12980
+ copy: cancelled
12772
12981
  };
12773
12982
  const elsewhere = planBookElsewherePanel(selection, now);
12774
12983
  if (elsewhere) return elsewhere;
@@ -12802,12 +13011,22 @@ function planEventBookingPanel({ selection, subject, pageEvents }, now) {
12802
13011
  registration
12803
13012
  };
12804
13013
  }
12805
- case "wholeSeriesParentUnavailable": return {
12806
- ...nonBookingPanel ?? { kind: "unavailable" },
12807
- registration: parentRegistrationTarget(selection, subject)
12808
- };
13014
+ case "wholeSeriesParentUnavailable": return unavailableParentPanel(selection, parentRegistrationTarget(selection, subject), nonBookingPanel);
12809
13015
  }
12810
13016
  }
13017
+ /** A course with nothing to book: cancelled when every run is, otherwise why it can't be booked. */
13018
+ function unavailableParentPanel(selection, registration, nonBookingPanel) {
13019
+ const cancelledRuns = cancelledRunsCopy(selection.admittedRuns.map((run) => run.representative));
13020
+ if (cancelledRuns) return {
13021
+ kind: "cancelled",
13022
+ copy: cancelledRuns,
13023
+ registration
13024
+ };
13025
+ return {
13026
+ ...nonBookingPanel ?? { kind: "unavailable" },
13027
+ registration
13028
+ };
13029
+ }
12811
13030
  /**
12812
13031
  * A date past its cut-off, however old the page's data is. A list of dates only
12813
13032
  * closes when every date has: until then the closed ones just leave the list.
@@ -12923,8 +13142,8 @@ function parentRegistrationTarget(selection, subject) {
12923
13142
  };
12924
13143
  }
12925
13144
  /** Cancelled dates have no new-booking or recovery form, including old direct links. */
12926
- function isCancelledDateSelection(selection) {
12927
- return selection.kind === "occurrence" && hasCancelledRegistrationDate([selection.event]);
13145
+ function cancelledDateSelectionCopy(selection) {
13146
+ return selection.kind === "occurrence" ? cancelledRegistrationCopy([selection.event]) : null;
12928
13147
  }
12929
13148
  //#endregion
12930
13149
  //#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
@@ -15671,6 +15890,62 @@ function requireThemeResources(resources, blockKind) {
15671
15890
  return resources;
15672
15891
  }
15673
15892
  //#endregion
15893
+ //#region ../blocks/src/sectionBoundaryTextures.tsx
15894
+ /** A textured join's entire paint stack moves together, preserving colour/alpha order. */
15895
+ function sectionOwnsBoundaryPaint(layout) {
15896
+ return Boolean(layout.underlay?.texture || layout.paint.front.texture || layout.paint.back.some((paint) => paint.texture));
15897
+ }
15898
+ function boundaryColourCss(colour) {
15899
+ return colour.startsWith("#") ? colour : `rgb(var(--tb-${colour}))`;
15900
+ }
15901
+ /** Planes share their owner's full height. Only their edge masks extend outside its box. */
15902
+ function sectionBoundaryPaint(input) {
15903
+ const planes = [edgePlanes(renderedJoinLayout(input.before?.join ?? null), "start"), edgePlanes(renderedJoinLayout(input.after?.join ?? null), "end")].flat();
15904
+ return planes.length ? planes : null;
15905
+ }
15906
+ function edgePlanes(layout, side) {
15907
+ if (!layout || !sectionOwnsBoundaryPaint(layout)) return [];
15908
+ const underlay = side === "end" && layout.underlay ? [paintPlane(layout, layout.underlay, side, "underlay", -1)] : [];
15909
+ return side === (layout.placement === "next" ? "end" : "start") ? [
15910
+ ...underlay,
15911
+ ...layout.paint.back.map((paint, index) => paintPlane(layout, paint, side, "back", index)).reverse(),
15912
+ paintPlane(layout, layout.paint.front, side, "front", -1)
15913
+ ] : underlay;
15914
+ }
15915
+ function planeGeometry(layout, side, underlay, index) {
15916
+ const height = underlay ? "var(--boundary-height)" : "var(--boundary-shape-height)";
15917
+ const offset = index < 0 ? 0 : (index + 1) * .12;
15918
+ const overhang = `calc(${height} * ${underlay || layout.placement === "centred" ? .5 + offset : 1 + offset})`;
15919
+ return {
15920
+ "--section-edge-height": height,
15921
+ top: side === "start" ? `calc(-1 * ${overhang})` : 0,
15922
+ bottom: side === "end" ? `calc(-1 * ${overhang})` : 0,
15923
+ "--section-texture-y": side === "start" ? overhang : "0px",
15924
+ maskPosition: side === "start" ? "0 0" : "0 100%",
15925
+ WebkitMaskPosition: side === "start" ? "0 0" : "0 100%"
15926
+ };
15927
+ }
15928
+ function backMasks(index) {
15929
+ return index >= 0 && index % 2 === 0 ? Object.fromEntries(["texture-mask", "section-mask"].flatMap((property) => ["wide", "narrow"].map((width) => [`--boundary-${property}-${width}`, `var(--boundary-back-${property}-${width})`]))) : {};
15930
+ }
15931
+ function paintPlane(layout, paint, side, role, index) {
15932
+ const style = {
15933
+ ...layout.geometry,
15934
+ ...backMasks(index),
15935
+ ...planeGeometry(layout, side, role === "underlay", index),
15936
+ ...paint.texture ? groundTextureStyle(paint.texture) : {},
15937
+ backgroundColor: boundaryColourCss(paint.colour),
15938
+ opacity: index < 0 ? 1 : (layout.paint.back.length - index) / (layout.paint.back.length + 1)
15939
+ };
15940
+ return /* @__PURE__ */ jsx("span", {
15941
+ "aria-hidden": "true",
15942
+ "data-section-edge-paint": role,
15943
+ "data-section-edge-side": side,
15944
+ "data-section-edge-fade": role !== "underlay" && layout.geometry["--boundary-shape-background"]?.startsWith("linear-gradient") ? "" : void 0,
15945
+ style
15946
+ }, `${side}:${role}:${index}`);
15947
+ }
15948
+ //#endregion
15674
15949
  //#region ../blocks/src/pageRendererBoundaries.tsx
15675
15950
  function joinSlotsByPair(slots) {
15676
15951
  return new Map(slots.map((slot) => [joinSlotKey(slot.previousBlockId, slot.nextBlockId), slot]));
@@ -15687,16 +15962,7 @@ function renderJoinSlot(input) {
15687
15962
  const { slot } = input;
15688
15963
  if (!slot) return null;
15689
15964
  const layout = renderedJoinLayout(slot.join);
15690
- const painted = slot.join && layout ? /* @__PURE__ */ jsx("div", {
15691
- "aria-hidden": "true",
15692
- "data-block-boundary": "",
15693
- "data-boundary-id": slot.join.boundaryId,
15694
- "data-boundary-previous-block-id": slot.previousBlockId,
15695
- "data-boundary-next-block-id": slot.nextBlockId,
15696
- "data-boundary-treatment": slot.join.treatment,
15697
- "data-boundary-placement": layout.placement,
15698
- style: boundaryPaintStyle(layout.paint)
15699
- }, `${input.blockKey}:boundary`) : null;
15965
+ const painted = slot.join && layout ? paintedBoundary(slot, slot.join, layout, input.blockKey) : null;
15700
15966
  const extra = input.renderJoin?.({
15701
15967
  previousBlockId: slot.previousBlockId,
15702
15968
  nextBlockId: slot.nextBlockId,
@@ -15705,18 +15971,65 @@ function renderJoinSlot(input) {
15705
15971
  if (!painted && (extra === null || extra === void 0)) return null;
15706
15972
  return /* @__PURE__ */ jsxs(React.Fragment, { children: [painted, extra] }, `${input.blockKey}:join`);
15707
15973
  }
15708
- /**
15709
- * The one render-edge place a theme token becomes CSS.
15710
- */
15711
- function themeTokenCss(token) {
15712
- return `rgb(var(--tb-${token}))`;
15713
- }
15714
- function boundaryPaintStyle(paint) {
15974
+ function boundaryPaintStyle(layout) {
15715
15975
  return {
15716
- "--boundary-shape-paint": themeTokenCss(paint.shape),
15717
- ...paint.band ? { "--boundary-band-paint": themeTokenCss(paint.band) } : {}
15976
+ ...layout.geometry,
15977
+ "--boundary-shape-paint": boundaryColourCss(layout.paint.front.colour),
15978
+ ...layout.underlay ? { "--boundary-band-paint": boundaryColourCss(layout.underlay.colour) } : {}
15718
15979
  };
15719
15980
  }
15981
+ function paintedBoundary(slot, join, layout, key) {
15982
+ return /* @__PURE__ */ jsx("div", {
15983
+ "aria-hidden": "true",
15984
+ "data-block-boundary": "",
15985
+ "data-boundary-geometry": "",
15986
+ "data-boundary-section-owned": sectionOwnsBoundaryPaint(layout) ? "" : void 0,
15987
+ "data-boundary-id": join.boundaryId,
15988
+ "data-boundary-previous-block-id": slot.previousBlockId,
15989
+ "data-boundary-next-block-id": slot.nextBlockId,
15990
+ "data-boundary-treatment": join.treatment,
15991
+ "data-boundary-placement": layout.placement,
15992
+ style: boundaryPaintStyle(layout),
15993
+ children: sectionOwnsBoundaryPaint(layout) ? null : layout.paint.back.map((paint, index) => renderBackLayer(paint, index, layout))
15994
+ }, `${key}:boundary`);
15995
+ }
15996
+ function renderBackLayer(paint, index, layout) {
15997
+ const offset = 12 * (index + 1);
15998
+ const mirror = index % 2 === 0 ? "-1" : "1";
15999
+ const opacity = (layout.paint.back.length - index) / (layout.paint.back.length + 1);
16000
+ return /* @__PURE__ */ jsx("span", {
16001
+ "data-boundary-back": "",
16002
+ style: {
16003
+ ...{
16004
+ previous: {
16005
+ paint: {
16006
+ bottom: 0,
16007
+ transform: `translateY(-${offset}%) scaleX(${mirror})`
16008
+ },
16009
+ texture: { bottom: `calc(var(--boundary-height) * ${offset / 100})` }
16010
+ },
16011
+ next: {
16012
+ paint: {
16013
+ top: 0,
16014
+ transform: `translateY(${offset}%) scaleY(-1) scaleX(${mirror})`
16015
+ },
16016
+ texture: { top: `calc(var(--boundary-height) * ${offset / 100})` }
16017
+ },
16018
+ centred: {
16019
+ paint: {
16020
+ top: 0,
16021
+ transform: `translateY(-${50 + offset}%) scaleX(${mirror})`
16022
+ },
16023
+ texture: { top: `calc(var(--boundary-shape-height) / -2 - var(--boundary-height) * ${offset / 100})` }
16024
+ }
16025
+ }[layout.placement].paint,
16026
+ opacity,
16027
+ "--boundary-shape-paint": boundaryColourCss(paint.colour),
16028
+ "--boundary-shape-background": layout.geometry["--boundary-shape-background"],
16029
+ "--boundary-shape-background-mixed": layout.geometry["--boundary-shape-background-mixed"]
16030
+ }
16031
+ }, index);
16032
+ }
15720
16033
  /**
15721
16034
  * Reserve attributes and variables for a block wrapper, from the joins on
15722
16035
  * either side. A join's `before` reserve sits inside its previous section, so
@@ -15726,16 +16039,19 @@ function boundaryPaintStyle(paint) {
15726
16039
  function blockBoundaryReserves(input) {
15727
16040
  const top = reserveOnSide(input.before, "after");
15728
16041
  const bottom = reserveOnSide(input.after, "before");
16042
+ const edgePaint = sectionBoundaryPaint(input);
15729
16043
  const style = {
16044
+ ...edgePaint ? { position: "relative" } : {},
15730
16045
  ...top ? { "--site-style-boundary-before-reserve": top.length } : {},
15731
16046
  ...bottom ? { "--site-style-boundary-after-reserve": bottom.length } : {}
15732
16047
  };
15733
16048
  return {
16049
+ edgePaint,
15734
16050
  topPlacement: top?.placement,
15735
16051
  bottomPlacement: bottom?.placement,
15736
16052
  seamBefore: seamAttribute(input.before),
15737
16053
  seamAfter: seamAttribute(input.after),
15738
- style: top || bottom ? style : void 0
16054
+ style: Object.keys(style).length ? style : void 0
15739
16055
  };
15740
16056
  }
15741
16057
  function seamAttribute(slot) {
@@ -16331,6 +16647,10 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
16331
16647
  originalBlocks: plan.regions.main.map((planned) => planned.block),
16332
16648
  survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
16333
16649
  }),
16650
+ context: themeResources.kind === "available" ? {
16651
+ siteStyleId: themeResources.config?.siteStyleId,
16652
+ palette: themeResources.tokens.palette
16653
+ } : void 0,
16334
16654
  survivors: survivors.map(({ entry }) => ({
16335
16655
  id: entry.block.id,
16336
16656
  kind: entry.block.kind,
@@ -16836,7 +17156,7 @@ function renderPlanEntry(input) {
16836
17156
  before: joinBefore,
16837
17157
  after: joinAfter
16838
17158
  });
16839
- const blockElement = /* @__PURE__ */ jsx("div", {
17159
+ const blockElement = /* @__PURE__ */ jsxs("div", {
16840
17160
  id: blockAnchorId(block),
16841
17161
  className: wrapperClassName,
16842
17162
  ...arrangementHooksFromContent(renderableContent),
@@ -16856,7 +17176,7 @@ function renderPlanEntry(input) {
16856
17176
  "data-site-style-seam-after": reserves.seamAfter,
16857
17177
  "data-style-group": styleGroup,
16858
17178
  style: reserves.style,
16859
- children: /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps })
17179
+ children: [/* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }), reserves.edgePaint]
16860
17180
  }, blockKey);
16861
17181
  if (boundaryElement) return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [blockElement, boundaryElement] }, blockKey);
16862
17182
  return blockElement;