@riverbankcms/sdk 0.183.0 → 0.184.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 (222) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  9. package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
  10. package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
  11. package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
  12. package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  13. package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
  14. package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.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-aTlOvO3U.d.ts} +15 -7
  55. package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
  56. package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
  57. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
  77. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  78. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
  79. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  80. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
  81. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
  82. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
  83. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
  84. package/dist/client/bookings.mjs +4 -4
  85. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  86. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  87. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  88. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  89. package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
  90. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
  91. package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
  92. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  94. package/dist/client/client.mjs +23 -35
  95. package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
  96. package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
  97. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  98. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  99. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
  100. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  101. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  102. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  103. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  104. package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
  105. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
  106. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +7 -7
  108. package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
  109. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
  110. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
  111. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
  112. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  113. package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
  114. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
  115. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
  116. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  117. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  118. package/dist/client/portal/client.mjs +27 -15
  119. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
  120. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  121. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  122. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  123. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  124. package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
  125. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
  126. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
  127. package/dist/client/rendering/client.mjs +28 -27
  128. package/dist/client/rendering/islands.mjs +1 -1
  129. package/dist/client/rendering.mjs +4 -4
  130. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
  131. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  132. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  133. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  134. package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
  135. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
  136. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  137. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
  138. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
  139. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  140. package/dist/client/spam-protection.mjs +1 -1
  141. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
  142. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  143. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
  144. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  145. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
  146. package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
  153. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
  154. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
  155. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
  156. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  157. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
  159. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +3 -3
  161. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  162. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
  163. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
  164. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
  165. package/dist/preview-next/container-responsive.css +150 -3
  166. package/dist/preview-next/keepAlive.mjs +1 -1
  167. package/dist/preview-next/middleware.mjs +1 -1
  168. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
  169. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  170. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
  171. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
  172. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
  173. package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
  174. package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
  181. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  182. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  183. package/dist/server/manifest.mjs +2 -2
  184. package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
  185. package/dist/server/navigation.mjs +1 -1
  186. package/dist/server/next.mjs +9 -9
  187. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  188. package/dist/server/page-converter.mjs +17 -4
  189. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
  190. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
  191. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
  192. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  193. package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
  194. package/dist/server/portal.mjs +3 -3
  195. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
  196. package/dist/server/prebuild.mjs +1 -1
  197. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
  198. package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
  199. package/dist/server/rendering/components/pageShared.mjs +1 -1
  200. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  201. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  202. package/dist/server/rendering/server.mjs +4 -4
  203. package/dist/server/rendering.mjs +9 -9
  204. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  205. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
  206. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  207. package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
  210. package/dist/server/theme-bridge.mjs +5 -4
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
  213. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
  214. package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
  215. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
  216. package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
  217. package/dist/styles/index.css +495 -50
  218. package/package.json +1 -1
  219. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  220. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  221. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  222. 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-C_S0pWbR.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-BMtAAPzp.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-CAcf1lHT.mjs";
4
+ 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 buildThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as offeringDatesBySeries, k as OfferingCourseCards, l as buildLinkedContentEditTarget, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as groundTextureStyle, o as renderedJoinLayout, ot as defaultThemeTokens, p as defaultTransforms, q as buildMonthDay, s as retargetJoinsAcrossOmissions, tt as generateGroundPaintCss, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as EventItem } from "./pageRenderPlan-DRB7cUZ0.mjs";
5
+ import { $ as cardListPresentationSchemaShape, $a as effectiveHeaderNavLinkStyle, $i as when, $n as resolveSelectionBookingClosedDetail, $o as mapReadinessFact, $t as bookingPresentation, A as membershipCardListContent, Aa as chosenString, An as getLocalDateKey, Ao as beforeBookingQuestionsPresentationSchema, At as buildOfferingsPreviewListing, Bi as ctaButton, Bn as bookingPageKindSchema, Br as createInteractiveIslandCodec, Bt as resolveEventRegistrationScopedEvents, C as shopBlockDefinition, Ca as parseInlineTextFromUnknown, Ci as testimonialsCarouselFragment, Cn as formatEventNextDateFact, Cs as getBookingLocalDateKey, Ct as resolveEventRegistrationEventSource, D as buildProductListInteractiveIslandProps, Da as parseFieldDefinitions, Di as ctaRowFragment, Dn as formatTime, Do as blockBookingPaymentTermsSchema, Dr as readRuntimeNow, Ds as toUtcIsoDateTimeString, E as buildProductDetailInteractiveIslandProps, Ei as heroCtaRowFragment, Eo as publicEventsArraySchema, Er as teamMemberCardBiography, Es as parseLocalScheduleTime, F as buildOfferingsCatalogueListing, Fa as eventReadinessResultSchema, Fn as getOrderedDayNames, Fo as hiddenFromVisitors, Fs as publicEventPricingType, Ft as readOfferingsGrouping, G as buildEventCollectionListingDisplay, Gn as isDropInPublicEvent, Gr as listItemPresentation, Gt as getIconComponent, H as buildEventListingInteractiveIslandProps, Ha as themeButtonSelector, Hn as hasCancelledRegistrationDate, Hr as createZodCodec, Ht as ThemedButton, I as offeringsCatalogueShape, In as getWeekCalendarDayTuple, Io as loadedReadinessFact, Is as resolveExactOrFreePriceDisplay, It as resolveOfferingsPreviewGroupCta, J as eventCollectionSourceSchemaShape, Jn as planOrdinarySeriesSelection, Jr as lookListPresentationSchemaShape, Jt as eventListWeekDays, K as eventCollectionDisplaySchemaShape, Kn as isOrdinaryPublicEvent, Kr as listLookControl, Kt as SpinnerNode, L as eventCalendarBlockDefinition, Ln as getWeekCalendarDays, Lo as pageTemplateFromEntry, Lr as formBlockDefinition, Lt as resolveOfferingsPreviewGroups, M as passCardListContent, Ma as eventReadinessLoaderKey, Mi as normalizeBoxStylesBorder, Mn as addDays, Ms as isPublicEventPricingOptionDisplayable, Mt as normalizeOfferingsPreviewItemLimit, N as offeringsPreviewBlockDefinition, Ni as resolveCardRoleForBoxStyles, Nn as formatDateKey, Nr as staticHeaderChromeRuntime, Ns as publicEventPricingCurrency, Nt as offeringRunLifecycle, O as buildShopInteractiveIslandProps, Oa as PUBLIC_DOWNLOAD_MEDIA_TYPES, Oi as isBlockButtonRole, On as groupEventsByDate, Oo as blockBookingConsentSchema, Or as resolveDateRuntimeContext, Os as resolveBookingBusinessTimeZone, P as publicRouteCandidatesSchema, Pn as getDayOfWeek, Po as admitReadinessFacts, Ps as publicEventPricingDisplay, Pt as offeringsListingFor, Qa as authoredHeaderLinkForeground, Qi as el, Qr as clsx, R as buildEventCalendarInteractiveIslandProps, Rn as isSameCalendarDay, Ro as unavailableReadinessFact, Rr as buildFormInteractiveIslandProps, Rs as formatCurrencyAmount, Rt as resolveOfferingsRenderInput, S as productListBlockDefinition, Sa as isInlineTextEmpty, Si as formCopyFragment, Sn as formatEventHourLabel, Sr as splitPositioningClasses, Ss as formatLocalScheduleDate, St as buildEventRegistrationInteractiveIslandProps, T as buildCheckoutInteractiveIslandProps, Ti as ctaCopyFragment, Tn as formatEventTimeRange, Tr as teamMemberBiography, Ts as parseBookingLocalDate, Tt as previewStageSchema, U as buildEventCollectionDisplay, Ua as AFFORDANCE_SUPPRESS_CLASS, Ui as bodyCopyFragment, Un as eventOccurrenceContext, Ur as defineClientOwnedBlockRuntime, Ut as ThemedButtonLink, V as eventListingBlockDefinition, Va as parseThemeButtonVariantId, Vi as layoutSectionGround, Vn as cancelledDateCopy, Vr as defineInteractiveIslandMetaKeys, Vt as ThemedAuthoredButton, W as buildEventCollectionHydration, Wa as resolveHeaderRootForeground, Wi as defineFragment, Wn as getPublicEventCanonicalPath, Wr as defineProgressiveBlockRuntime, Wt as ThemedDownloadLink, X as listingEventCardProps, Xn as planWholeSeriesParentSelection, Xr as itemRole, Y as catalogueEventCardProps, Ya as pageGround, Yn as planWholeSeriesParentBooking, Yr as resolvedItemSurfaceProps, Yt as eventWeekGroupingContext, Z as CardListContentPart, Zi as runTransforms, Zn as planWholeSeriesRunSelection, Zr as Grid, _ as giftingBlockDefinition, _a as PlusIcon, _i as faqAccordionFragment, _n as formatCalendarTitle, _r as shouldReserveFeatureCardIconZone, _t as getCardOrientation, aa as ChevronDownIcon, an as blockSiteTermsSchema, ar as resolveEventPageLink, as as resolveWholeSeriesBookingPhase, at as MediaPlaceholder, b as cartBlockDefinition, ba as UsersIcon, bi as singleButtonFragment, bn as formatEventCompactDateRail, bo as headerRootPaint, br as composeHeaderSectionWrapperClassName, bs as addLocalScheduleDays, bt as lookPartShown, c as normalizeLocationMapProps, ca as ClockIcon, ci as formatEventPrice, cn as closedDatesCopy, cr as isInBookingCutOffWindow, cs as parseMailingListRuntimeContext, d as resolveLocationMapLocation, da as FileSpreadsheetIcon, dn as closedDateCopy, ds as sameMailingListPlacementTargeting, ea as buildGeneratedBlockIconRenderAssetLookupFromUnknown, en as browserReadAuthoritySchema, eo as readOpeningToneProjection, er as selectionRepresentativeEvent, f as newsletterSignupBlockDefinition, fa as FileTextIcon, fn as cutOffDateCopy, fr as getEventAvailabilityStatus, g as newsletterBlockSubmissionMessage, ga as MinusIcon, gi as cardFragment, gr as resolveFeatureCardGeneratedIconSizePx, gt as EventQuickFacts, h as buildNewsletterFormInteractiveIslandProps, ha as MapPinIcon$1, hi as headingFragment, hn as eventDateOptions, hr as FEATURE_CARD_ICON_TREATMENTS, ht as setContextResolveImageUrlContext, i as normalizeBlockContent, ia as CalendarIcon$1, in as formatEventLocation, ir as resolveEventCta, is as orderedLiveRunSessions, it as ImagePresets, j as membershipClassesLabel, ji as boxStyleClassNames, jn as getLocalMinuteOfDay, js as formatBookingPriceDisplay, jt as groupOfferingRunsByCourse, k as shopProductPresentation, ki as heroCopyFragment, kn as resolveEventTimeZone, ko as bookingConsentCarrierSchema, ks as toBookingTimeZone, kt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, l as normalizeLocationMapSource, la as FileArchiveIcon, li as formatEventPriceAmount, ln as closedRunCopy, lr as formatEventRemainingPlaces, m as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ma as InfoIcon, mi as richTextFragment, mr as groupPublicEventsByRun, ms as formatDate$1, mt as getCurrentResolveImageUrlContext, n as hasBlockDefinition, na as resolveBlockIconRenderValue, nn as eventPlaceName, nr as eventDestinationPagePath, ns as CANCELLED_SESSION_STATUS, nt as MediaNodeServer, o as LOCATION_MAP_LOADER_KEYS, oa as CircleMinusIcon, oi as formatCoursePrice, on as pageNavigationSchema, or as resolveRuntimeEventDestination, os as resolveWholeSeriesPaymentDates, pa as GlobeIcon, pn as buildCalendarViewport, pr as isEventFull, ps as EVENT_ADDRESS_AFTER_BOOKING_LABEL, pt as buildResolveImageUrlContext, q as eventCollectionHydrationSchema, qa as selectItemSurfacePresentation, qn as planDropInPanel, qr as listLookSlot, qt as buildEventListWeek, ra as ArrowDownIcon, rn as eventVenuePlace, rr as resolveEventCardBooking, rt as RichText, s as describeUnresolvedLocationMapLocation, sa as CirclePlusIcon, si as formatEventDepositNote, sn as closedDateListCopy, sr as isBookableEvent, ss as buildMailingListSignupBlockSourceRef, t as getBlockDefinition, ta as parseBlockIconValue, tn as eventOnlinePlace, tr as eventDestinationBookingLink, u as parseLocationMapLoaderResult, ua as FileAudioIcon, un as bookElsewhereDateCopy, ur as formatTotalCapacity, us as parseMailingListPlacementTargeting, ut as resolvePublicMediaUrl, v as buildGiftingInteractiveIslandProps, va as TicketIcon, vi as faqHeadingFragment, vn as formatDate, vo as headerNeedsPhotoShade, vs as formatBookingCompactEnglishTime, vt as getContainerClass, w as buildCartInteractiveIslandProps, wi as testimonialsHeadingFragment, wr as parseTeamMemberSpecialties, ws as getLocalScheduleDate, wt as bookingNowSchema, x as productDetailBlockDefinition, xa as inlineTextToPlainText, xi as formEmbedFragment, xn as formatEventDateParts, xr as markEditableSurfaceForwarding, xt as eventRegistrationBlockDefinition, y as checkoutBlockDefinition, ya as UserIcon, yi as blogFeaturedPostFragment, yn as formatEventClockLabel, yo as headerRootIsTransparent, ys as toScheduledBookingDateTime, z as buildEventCalendarListingDisplay, zi as resolveBackgroundColorValue, zn as isToday, zr as buildInteractiveIslandProps, zt as normalizeEventRegistrationPageSurfaceSubject } from "./registry-Bf4W8Qa7.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-EFws7tAj.mjs";
7
+ import { f as fontWidthFits, u as boxBackgroundSchema, v as surfaceCardRoleValues, w as siteChromeBackgroundOverrideOwner } from "./schema-DGaihVwp.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-Uv1xDieJ.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-CFw4M-gZ.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-DvbqYXdK.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-CwcWZL7u.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
+ }
3099
3084
  }
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>`);
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
+ };
3103
3096
  }
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>`);
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;
3108
3101
  }
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>`);
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
+ };
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;
3117
+ }
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));
3125
+ }
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;
3194
+ }
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
+ };
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,
@@ -5767,10 +5871,17 @@ const formSchema = z.union([z.null(), z.object({
5767
5871
  const productsSchema = z.object({ products: z.array(z.object({ slug: z.string() })) });
5768
5872
  const passesSchema = z.object({ passes: countSchema }).transform(({ passes }) => passes);
5769
5873
  const membershipsSchema = z.object({ memberships: countSchema }).transform(({ memberships }) => memberships);
5874
+ const giftingSchema = z.object({
5875
+ giftCards: countSchema,
5876
+ vouchers: countSchema
5877
+ });
5770
5878
  /** Both producers pass raw facts through the same stage admission. */
5771
5879
  function readinessFactsFromLoaders(stage, input) {
5772
5880
  const facts = {
5773
5881
  catalogue: loaderFactProducers.catalogue(input),
5882
+ gifting: loaderFactProducers.gifting(input),
5883
+ eventFilters: loaderFactProducers.eventFilters(input),
5884
+ appointments: loaderFactProducers.appointments(input),
5774
5885
  mailingList: loaderFactProducers.mailingList(input),
5775
5886
  testimonials: loaderFactProducers.testimonials(input),
5776
5887
  events: loaderFactProducers.events(input),
@@ -5793,6 +5904,9 @@ const loaderFactProducers = {
5793
5904
  memberships: memberships.value
5794
5905
  }) : unavailableReadinessFact;
5795
5906
  },
5907
+ gifting: (input) => firstLoaderFact(input, "gifting", "offers", giftingSchema),
5908
+ eventFilters: () => unavailableReadinessFact,
5909
+ appointments: () => unavailableReadinessFact,
5796
5910
  mailingList: (input) => input.mailingList === void 0 ? unavailableReadinessFact : loadedReadinessFact(input.mailingList),
5797
5911
  testimonials: (input) => mapReadinessFact(firstLoaderFact(input, "testimonials", "entries", countSchema), (count) => ({
5798
5912
  count,
@@ -8662,57 +8776,106 @@ function resolveDetailSlots(presentation) {
8662
8776
  };
8663
8777
  }
8664
8778
  //#endregion
8665
- //#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
8779
+ //#region ../blocks/src/system/runtime/nodes/event-details/eventPriceSummary.ts
8780
+ function decideEventPriceSummary(input) {
8781
+ if (input.options.length < 2) return {
8782
+ kind: "price",
8783
+ price: input.price,
8784
+ depositNote: input.depositNote
8785
+ };
8786
+ return {
8787
+ kind: "options",
8788
+ range: input.optionsCoverEveryPrice ? null : input.price,
8789
+ options: input.options,
8790
+ depositNote: input.depositNote
8791
+ };
8792
+ }
8666
8793
  /** A course lists every active option, whether or not its sale window is open. */
8667
8794
  function wholeSeriesPriceOptions(pricing) {
8668
8795
  return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
8669
8796
  }
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]
8797
+ function wholeSeriesPriceSummary(pricing, depositNote) {
8798
+ return decideEventPriceSummary({
8799
+ price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
8800
+ options: wholeSeriesPriceOptions(pricing).map((option) => ({
8801
+ id: option.id,
8802
+ name: option.name,
8803
+ description: option.description,
8804
+ price: formatEventPriceAmount(option.priceAmount, pricing.currency)
8805
+ })),
8806
+ depositNote,
8807
+ optionsCoverEveryPrice: true
8808
+ });
8809
+ }
8810
+ //#endregion
8811
+ //#region ../blocks/src/system/runtime/nodes/event-details/EventFactRows.tsx
8812
+ /**
8813
+ * An event's facts as a short list: one row per fact, a small icon where a
8814
+ * label would be. The labels stay for screen readers. Each row is a direct
8815
+ * child of the list, so a site style's `facts > *` rules still reach it.
8816
+ */
8817
+ function EventFactList({ slot, children }) {
8818
+ return /* @__PURE__ */ jsx("dl", {
8819
+ ...slot,
8820
+ className: "rb-event-facts",
8821
+ children
8675
8822
  });
8676
8823
  }
8677
- function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems, slots }) {
8678
- const options = wholeSeriesPriceOptions(pricing);
8824
+ function EventFactRow({ fact, label, icon: Icon, slots, children }) {
8679
8825
  return /* @__PURE__ */ jsxs("div", {
8680
8826
  ...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", {
8827
+ "data-fact": fact,
8828
+ children: [/* @__PURE__ */ jsx("dt", {
8829
+ ...slots.label,
8830
+ className: "rb-sr-only",
8831
+ children: label
8832
+ }), /* @__PURE__ */ jsxs("dd", {
8833
+ className: "rb-event-fact",
8834
+ children: [/* @__PURE__ */ jsx(Icon, {
8835
+ className: "rb-event-fact-icon",
8836
+ strokeWidth: 1.75
8837
+ }), /* @__PURE__ */ jsx("div", {
8689
8838
  ...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
- ]
8839
+ className: "rb-event-fact-text",
8840
+ children
8841
+ })]
8842
+ })]
8714
8843
  });
8715
8844
  }
8845
+ /** The price, with any deposit option said beside it. */
8846
+ function PriceLine({ price, depositNote }) {
8847
+ return /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null] });
8848
+ }
8849
+ /** Each price sits next to its name. Descriptions put one option on each line. */
8850
+ function PriceOptionList({ options }) {
8851
+ return /* @__PURE__ */ jsx("ul", {
8852
+ className: "rb-event-price-options",
8853
+ "data-described": options.some((option) => option.description) ? "" : void 0,
8854
+ children: options.map((option) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsxs("span", { children: [
8855
+ /* @__PURE__ */ jsx("strong", { children: option.price }),
8856
+ " ",
8857
+ option.name
8858
+ ] }), option.description ? /* @__PURE__ */ jsx("span", {
8859
+ className: "rb-caption rb-event-fact-muted",
8860
+ children: option.description
8861
+ }) : null] }, option.id))
8862
+ });
8863
+ }
8864
+ const sentence = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
8865
+ function EventPriceSummaryLines({ summary }) {
8866
+ if (summary.kind === "price") return /* @__PURE__ */ jsx(PriceLine, {
8867
+ price: summary.price,
8868
+ depositNote: summary.depositNote
8869
+ });
8870
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
8871
+ summary.range ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: summary.range }) }) : null,
8872
+ /* @__PURE__ */ jsx(PriceOptionList, { options: summary.options }),
8873
+ summary.depositNote ? /* @__PURE__ */ jsxs("p", {
8874
+ className: "rb-caption rb-event-fact-muted",
8875
+ children: [sentence(summary.depositNote), "."]
8876
+ }) : null
8877
+ ] });
8878
+ }
8716
8879
  //#endregion
8717
8880
  //#region ../blocks/src/system/runtime/nodes/event-details/view.tsx
8718
8881
  function formatAutoApplyDiscountLine(preview, currency) {
@@ -8730,79 +8893,71 @@ function TeamMemberName({ name, profilePath }) {
8730
8893
  function formatTicketTypePrice(ticketType, currency) {
8731
8894
  return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
8732
8895
  }
8896
+ /** A room's prices depend on the room, so the booking form shows them with it, not the price list. */
8897
+ const roomPriceIdsOf = (event) => event.rooms?.linkedOptionIds ?? [];
8898
+ /** With a room's prices left out of the list, the range line stays to say how far prices go. */
8899
+ const hasRoomPrices = (event) => event.pricing.kind === "tiered" && event.pricing.options.some((option) => roomPriceIdsOf(event).includes(option.id));
8733
8900
  function getDisplayablePricingOptions(event) {
8734
- const roomPriceIds = event.rooms?.linkedOptionIds ?? [];
8901
+ const roomPriceIds = roomPriceIdsOf(event);
8735
8902
  return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
8736
8903
  }
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
- });
8904
+ function ticketPriceSummary(pricing, price) {
8905
+ const currency = pricing.eventPricingCurrency;
8906
+ return decideEventPriceSummary({
8907
+ price,
8908
+ options: currency ? pricing.ticketTypes.map((ticketType) => ({
8909
+ id: ticketType.id,
8910
+ name: ticketType.name,
8911
+ description: ticketType.description,
8912
+ price: formatTicketTypePrice(ticketType, currency)
8913
+ })) : [],
8914
+ depositNote: pricing.depositNote,
8915
+ optionsCoverEveryPrice: pricing.ticketsCoverEveryPrice
8916
+ });
8917
+ }
8918
+ function AcceptedItemsLine({ acceptedItems }) {
8919
+ return acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
8920
+ className: "rb-caption",
8921
+ children: ["You can also attend with: ", acceptedItems.join(", ")]
8922
+ }) : null;
8749
8923
  }
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",
8924
+ /** The price row, in whichever form this event's pricing takes. */
8925
+ function EventPricingDetails(props) {
8926
+ const { acceptedItems, slots } = props;
8927
+ if (props.isDropIn) return /* @__PURE__ */ jsx(EventFactRow, {
8928
+ slots,
8929
+ fact: "registration",
8930
+ label: "Registration",
8931
+ icon: TicketIcon,
8932
+ children: /* @__PURE__ */ jsx("p", { children: "No registration required - just show up" })
8933
+ });
8934
+ if (props.wholeSeriesPricingDisplay) return /* @__PURE__ */ jsxs(EventFactRow, {
8935
+ slots,
8936
+ fact: "price",
8937
+ label: "Cost",
8938
+ icon: TicketIcon,
8939
+ children: [/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary: wholeSeriesPriceSummary(props.wholeSeriesPricingDisplay, props.depositNote) }), /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })]
8940
+ });
8941
+ if (props.eventCostLabel) return /* @__PURE__ */ jsxs(EventFactRow, {
8942
+ slots,
8943
+ fact: "price",
8944
+ label: "Cost",
8945
+ icon: TicketIcon,
8773
8946
  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
8947
+ /* @__PURE__ */ jsx(EventPriceSummaryLines, { summary: ticketPriceSummary(props, props.eventCostLabel) }),
8948
+ props.autoApplyDiscount && props.eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
8949
+ className: "rb-caption",
8950
+ children: formatAutoApplyDiscountLine(props.autoApplyDiscount, props.eventPricingCurrency)
8791
8951
  }) : 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
8952
+ /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
8796
8953
  ]
8797
8954
  });
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
- })
8955
+ return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(EventFactRow, {
8956
+ slots,
8957
+ fact: "accepted",
8958
+ label: "Passes and memberships",
8959
+ icon: TicketIcon,
8960
+ children: /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
8806
8961
  }) : null;
8807
8962
  }
8808
8963
  function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
@@ -8812,27 +8967,18 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
8812
8967
  ...eventDateOptions(selected)
8813
8968
  });
8814
8969
  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",
8970
+ return /* @__PURE__ */ jsxs(EventFactList, {
8971
+ slot: listLookSlot({ lookSlots }, "facts"),
8818
8972
  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
- ]
8973
+ /* @__PURE__ */ jsxs(EventFactRow, {
8974
+ slots,
8975
+ fact: "date",
8976
+ label: dateHeading,
8977
+ icon: CalendarIcon$1,
8978
+ children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: date }) }), /* @__PURE__ */ jsx("p", {
8979
+ className: "rb-event-fact-muted",
8980
+ children: timeRange
8981
+ })]
8836
8982
  }),
8837
8983
  /* @__PURE__ */ jsx(EventVenueFact, {
8838
8984
  venue,
@@ -8844,17 +8990,12 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
8844
8990
  teamMembers,
8845
8991
  slots
8846
8992
  }),
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
- })]
8993
+ showCapacity && selected.capacity != null ? /* @__PURE__ */ jsx(EventFactRow, {
8994
+ slots,
8995
+ fact: "places",
8996
+ label: "Places",
8997
+ icon: UsersIcon,
8998
+ children: /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })
8858
8999
  }) : null,
8859
9000
  pricing,
8860
9001
  selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
@@ -8871,37 +9012,26 @@ const addressAfterBookingShown = (event, showVenue) => showVenue && event.addres
8871
9012
  /** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
8872
9013
  function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
8873
9014
  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",
9015
+ if (!online) return /* @__PURE__ */ jsx(EventFactRow, {
9016
+ slots,
9017
+ fact: "venue",
9018
+ label: "Venue",
9019
+ icon: MapPinIcon$1,
9020
+ children: /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })
9021
+ });
9022
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9023
+ slots,
9024
+ fact: "venue",
9025
+ label: "Venue",
9026
+ icon: GlobeIcon,
8889
9027
  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
- }),
9028
+ /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
8899
9029
  addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
8900
- className: "rb-caption",
9030
+ className: "rb-caption rb-event-fact-muted",
8901
9031
  children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
8902
9032
  }) : null,
8903
9033
  online.note ? /* @__PURE__ */ jsx("p", {
8904
- className: "rb-caption",
9034
+ className: "rb-caption rb-event-fact-muted",
8905
9035
  children: online.note
8906
9036
  }) : null
8907
9037
  ]
@@ -8915,57 +9045,45 @@ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
8915
9045
  slots
8916
9046
  });
8917
9047
  const { place, addressWithBooking } = eventVenuePlace(venue);
8918
- return /* @__PURE__ */ jsxs("div", {
8919
- ...slots.detail,
8920
- className: "rb-mt-6",
9048
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9049
+ slots,
9050
+ fact: "venue",
9051
+ label: "Venue",
9052
+ icon: MapPinIcon$1,
8921
9053
  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,
9054
+ /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? `, ${place}` : null] }),
8935
9055
  addressWithBooking ? /* @__PURE__ */ jsx("p", {
8936
- className: "rb-caption rb-mt-1",
9056
+ className: "rb-caption rb-event-fact-muted",
8937
9057
  children: "The full address and directions come with your booking confirmation."
8938
9058
  }) : /* @__PURE__ */ jsx(LocationMapActions, {
8939
9059
  location: venue.location,
8940
9060
  addressText: venue.address
8941
9061
  }),
8942
9062
  online ? /* @__PURE__ */ jsxs("p", {
8943
- className: "rb-caption rb-mt-1",
9063
+ className: "rb-caption rb-event-fact-muted",
8944
9064
  children: ["You can also join online.", online.note ? ` ${online.note}` : ""]
8945
9065
  }) : null
8946
9066
  ]
8947
9067
  });
8948
9068
  }
9069
+ /** "With Alice", "With Alice and Ben", "With Alice, Ben and Cara". */
9070
+ const nameSeparator = (index, count) => index === 0 ? "" : index === count - 1 ? " and " : ", ";
8949
9071
  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;
9072
+ if (teamMembers.length === 0) return null;
9073
+ const described = teamMembers.filter((member) => member.summary);
9074
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9075
+ slots,
9076
+ fact: "team",
9077
+ label: "With",
9078
+ icon: UserIcon,
9079
+ children: [/* @__PURE__ */ jsxs("p", { children: ["With ", teamMembers.map((member, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [nameSeparator(index, teamMembers.length), /* @__PURE__ */ jsx(TeamMemberName, {
9080
+ name: member.name,
9081
+ profilePath: member.profilePath
9082
+ })] }, member.id))] }), described.map((member) => /* @__PURE__ */ jsxs("p", {
9083
+ className: "rb-caption rb-event-fact-muted",
9084
+ children: [teamMembers.length > 1 ? `${member.name}: ` : null, member.summary]
9085
+ }, member.id))]
9086
+ });
8969
9087
  }
8970
9088
  /**
8971
9089
  * Where the run has got to, in the words a visitor would use.
@@ -8990,24 +9108,15 @@ function runLifecycleLabel(lifecycle) {
8990
9108
  * actually notices.
8991
9109
  */
8992
9110
  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
- ]
9111
+ return /* @__PURE__ */ jsxs(EventFactRow, {
9112
+ slots,
9113
+ fact: "booking",
9114
+ label: "Booking",
9115
+ icon: InfoIcon,
9116
+ children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }), phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
9117
+ className: "rb-caption rb-event-fact-muted",
9118
+ children: bookingClosedReason(phase.reason)
9119
+ }) : null]
9011
9120
  });
9012
9121
  }
9013
9122
  function bookingClosedReason(reason) {
@@ -9120,7 +9229,8 @@ function selectedEventPricing(selection, showCost) {
9120
9229
  eventCostLabel: showEventCost ? formatEventPrice(event) : null,
9121
9230
  depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
9122
9231
  eventPricingCurrency: publicEventPricingCurrency(event.pricing),
9123
- ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
9232
+ ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : [],
9233
+ ticketsCoverEveryPrice: !hasRoomPrices(event)
9124
9234
  };
9125
9235
  }
9126
9236
  const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
@@ -9256,25 +9366,22 @@ function EventHeaderPanel(props) {
9256
9366
  });
9257
9367
  }
9258
9368
  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
- });
9369
+ return /* @__PURE__ */ jsxs(EventFactList, { children: [
9370
+ /* @__PURE__ */ jsx(EventVenueFact, {
9371
+ venue,
9372
+ online,
9373
+ addressAfterBooking,
9374
+ slots
9375
+ }),
9376
+ /* @__PURE__ */ jsx(EventTeacherFacts, {
9377
+ teamMembers,
9378
+ slots
9379
+ }),
9380
+ pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
9381
+ ...pricing,
9382
+ slots
9383
+ }) : null
9384
+ ] });
9278
9385
  }
9279
9386
  /** What the panel has to add to the header, decided once. */
9280
9387
  function headerPanelContent(props) {
@@ -11233,6 +11340,11 @@ function CheckoutSSR({ blockId, siteId, apiBaseUrl, stage, demoEmailSuppressed,
11233
11340
  //#endregion
11234
11341
  //#region ../blocks/src/system/runtime/nodes/gifting.parts.tsx
11235
11342
  const CUSTOM_GIFT_AMOUNT = "custom";
11343
+ /**
11344
+ * What the panel says with no offers to show. Visitors only see it if the
11345
+ * offers couldn't be read: with nothing on offer the block stays hidden.
11346
+ */
11347
+ const GIFTING_NOTHING_TO_SHOW = "Nothing is available right now.";
11236
11348
  /** A Look's hook (and, for the panel, its surface) on one part of the gifting panel; nothing outside a Look. */
11237
11349
  function giftingSlot(look, slot) {
11238
11350
  return listLookSlot(look ?? {}, slot);
@@ -11400,7 +11512,7 @@ function GiftingSSR({ blockId, ...rest }) {
11400
11512
  }, group.kind))
11401
11513
  }) : /* @__PURE__ */ jsx("p", {
11402
11514
  className: "gifting-empty",
11403
- children: display.emptyStateText
11515
+ children: GIFTING_NOTHING_TO_SHOW
11404
11516
  })
11405
11517
  })]
11406
11518
  })
@@ -15671,6 +15783,62 @@ function requireThemeResources(resources, blockKind) {
15671
15783
  return resources;
15672
15784
  }
15673
15785
  //#endregion
15786
+ //#region ../blocks/src/sectionBoundaryTextures.tsx
15787
+ /** A textured join's entire paint stack moves together, preserving colour/alpha order. */
15788
+ function sectionOwnsBoundaryPaint(layout) {
15789
+ return Boolean(layout.underlay?.texture || layout.paint.front.texture || layout.paint.back.some((paint) => paint.texture));
15790
+ }
15791
+ function boundaryColourCss(colour) {
15792
+ return colour.startsWith("#") ? colour : `rgb(var(--tb-${colour}))`;
15793
+ }
15794
+ /** Planes share their owner's full height. Only their edge masks extend outside its box. */
15795
+ function sectionBoundaryPaint(input) {
15796
+ const planes = [edgePlanes(renderedJoinLayout(input.before?.join ?? null), "start"), edgePlanes(renderedJoinLayout(input.after?.join ?? null), "end")].flat();
15797
+ return planes.length ? planes : null;
15798
+ }
15799
+ function edgePlanes(layout, side) {
15800
+ if (!layout || !sectionOwnsBoundaryPaint(layout)) return [];
15801
+ const underlay = side === "end" && layout.underlay ? [paintPlane(layout, layout.underlay, side, "underlay", -1)] : [];
15802
+ return side === (layout.placement === "next" ? "end" : "start") ? [
15803
+ ...underlay,
15804
+ ...layout.paint.back.map((paint, index) => paintPlane(layout, paint, side, "back", index)).reverse(),
15805
+ paintPlane(layout, layout.paint.front, side, "front", -1)
15806
+ ] : underlay;
15807
+ }
15808
+ function planeGeometry(layout, side, underlay, index) {
15809
+ const height = underlay ? "var(--boundary-height)" : "var(--boundary-shape-height)";
15810
+ const offset = index < 0 ? 0 : (index + 1) * .12;
15811
+ const overhang = `calc(${height} * ${underlay || layout.placement === "centred" ? .5 + offset : 1 + offset})`;
15812
+ return {
15813
+ "--section-edge-height": height,
15814
+ top: side === "start" ? `calc(-1 * ${overhang})` : 0,
15815
+ bottom: side === "end" ? `calc(-1 * ${overhang})` : 0,
15816
+ "--section-texture-y": side === "start" ? overhang : "0px",
15817
+ maskPosition: side === "start" ? "0 0" : "0 100%",
15818
+ WebkitMaskPosition: side === "start" ? "0 0" : "0 100%"
15819
+ };
15820
+ }
15821
+ function backMasks(index) {
15822
+ 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})`]))) : {};
15823
+ }
15824
+ function paintPlane(layout, paint, side, role, index) {
15825
+ const style = {
15826
+ ...layout.geometry,
15827
+ ...backMasks(index),
15828
+ ...planeGeometry(layout, side, role === "underlay", index),
15829
+ ...paint.texture ? groundTextureStyle(paint.texture) : {},
15830
+ backgroundColor: boundaryColourCss(paint.colour),
15831
+ opacity: index < 0 ? 1 : (layout.paint.back.length - index) / (layout.paint.back.length + 1)
15832
+ };
15833
+ return /* @__PURE__ */ jsx("span", {
15834
+ "aria-hidden": "true",
15835
+ "data-section-edge-paint": role,
15836
+ "data-section-edge-side": side,
15837
+ "data-section-edge-fade": role !== "underlay" && layout.geometry["--boundary-shape-background"]?.startsWith("linear-gradient") ? "" : void 0,
15838
+ style
15839
+ }, `${side}:${role}:${index}`);
15840
+ }
15841
+ //#endregion
15674
15842
  //#region ../blocks/src/pageRendererBoundaries.tsx
15675
15843
  function joinSlotsByPair(slots) {
15676
15844
  return new Map(slots.map((slot) => [joinSlotKey(slot.previousBlockId, slot.nextBlockId), slot]));
@@ -15687,16 +15855,7 @@ function renderJoinSlot(input) {
15687
15855
  const { slot } = input;
15688
15856
  if (!slot) return null;
15689
15857
  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;
15858
+ const painted = slot.join && layout ? paintedBoundary(slot, slot.join, layout, input.blockKey) : null;
15700
15859
  const extra = input.renderJoin?.({
15701
15860
  previousBlockId: slot.previousBlockId,
15702
15861
  nextBlockId: slot.nextBlockId,
@@ -15705,18 +15864,65 @@ function renderJoinSlot(input) {
15705
15864
  if (!painted && (extra === null || extra === void 0)) return null;
15706
15865
  return /* @__PURE__ */ jsxs(React.Fragment, { children: [painted, extra] }, `${input.blockKey}:join`);
15707
15866
  }
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) {
15867
+ function boundaryPaintStyle(layout) {
15715
15868
  return {
15716
- "--boundary-shape-paint": themeTokenCss(paint.shape),
15717
- ...paint.band ? { "--boundary-band-paint": themeTokenCss(paint.band) } : {}
15869
+ ...layout.geometry,
15870
+ "--boundary-shape-paint": boundaryColourCss(layout.paint.front.colour),
15871
+ ...layout.underlay ? { "--boundary-band-paint": boundaryColourCss(layout.underlay.colour) } : {}
15718
15872
  };
15719
15873
  }
15874
+ function paintedBoundary(slot, join, layout, key) {
15875
+ return /* @__PURE__ */ jsx("div", {
15876
+ "aria-hidden": "true",
15877
+ "data-block-boundary": "",
15878
+ "data-boundary-geometry": "",
15879
+ "data-boundary-section-owned": sectionOwnsBoundaryPaint(layout) ? "" : void 0,
15880
+ "data-boundary-id": join.boundaryId,
15881
+ "data-boundary-previous-block-id": slot.previousBlockId,
15882
+ "data-boundary-next-block-id": slot.nextBlockId,
15883
+ "data-boundary-treatment": join.treatment,
15884
+ "data-boundary-placement": layout.placement,
15885
+ style: boundaryPaintStyle(layout),
15886
+ children: sectionOwnsBoundaryPaint(layout) ? null : layout.paint.back.map((paint, index) => renderBackLayer(paint, index, layout))
15887
+ }, `${key}:boundary`);
15888
+ }
15889
+ function renderBackLayer(paint, index, layout) {
15890
+ const offset = 12 * (index + 1);
15891
+ const mirror = index % 2 === 0 ? "-1" : "1";
15892
+ const opacity = (layout.paint.back.length - index) / (layout.paint.back.length + 1);
15893
+ return /* @__PURE__ */ jsx("span", {
15894
+ "data-boundary-back": "",
15895
+ style: {
15896
+ ...{
15897
+ previous: {
15898
+ paint: {
15899
+ bottom: 0,
15900
+ transform: `translateY(-${offset}%) scaleX(${mirror})`
15901
+ },
15902
+ texture: { bottom: `calc(var(--boundary-height) * ${offset / 100})` }
15903
+ },
15904
+ next: {
15905
+ paint: {
15906
+ top: 0,
15907
+ transform: `translateY(${offset}%) scaleY(-1) scaleX(${mirror})`
15908
+ },
15909
+ texture: { top: `calc(var(--boundary-height) * ${offset / 100})` }
15910
+ },
15911
+ centred: {
15912
+ paint: {
15913
+ top: 0,
15914
+ transform: `translateY(-${50 + offset}%) scaleX(${mirror})`
15915
+ },
15916
+ texture: { top: `calc(var(--boundary-shape-height) / -2 - var(--boundary-height) * ${offset / 100})` }
15917
+ }
15918
+ }[layout.placement].paint,
15919
+ opacity,
15920
+ "--boundary-shape-paint": boundaryColourCss(paint.colour),
15921
+ "--boundary-shape-background": layout.geometry["--boundary-shape-background"],
15922
+ "--boundary-shape-background-mixed": layout.geometry["--boundary-shape-background-mixed"]
15923
+ }
15924
+ }, index);
15925
+ }
15720
15926
  /**
15721
15927
  * Reserve attributes and variables for a block wrapper, from the joins on
15722
15928
  * either side. A join's `before` reserve sits inside its previous section, so
@@ -15726,16 +15932,19 @@ function boundaryPaintStyle(paint) {
15726
15932
  function blockBoundaryReserves(input) {
15727
15933
  const top = reserveOnSide(input.before, "after");
15728
15934
  const bottom = reserveOnSide(input.after, "before");
15935
+ const edgePaint = sectionBoundaryPaint(input);
15729
15936
  const style = {
15937
+ ...edgePaint ? { position: "relative" } : {},
15730
15938
  ...top ? { "--site-style-boundary-before-reserve": top.length } : {},
15731
15939
  ...bottom ? { "--site-style-boundary-after-reserve": bottom.length } : {}
15732
15940
  };
15733
15941
  return {
15942
+ edgePaint,
15734
15943
  topPlacement: top?.placement,
15735
15944
  bottomPlacement: bottom?.placement,
15736
15945
  seamBefore: seamAttribute(input.before),
15737
15946
  seamAfter: seamAttribute(input.after),
15738
- style: top || bottom ? style : void 0
15947
+ style: Object.keys(style).length ? style : void 0
15739
15948
  };
15740
15949
  }
15741
15950
  function seamAttribute(slot) {
@@ -16331,6 +16540,10 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
16331
16540
  originalBlocks: plan.regions.main.map((planned) => planned.block),
16332
16541
  survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
16333
16542
  }),
16543
+ context: themeResources.kind === "available" ? {
16544
+ siteStyleId: themeResources.config?.siteStyleId,
16545
+ palette: themeResources.tokens.palette
16546
+ } : void 0,
16334
16547
  survivors: survivors.map(({ entry }) => ({
16335
16548
  id: entry.block.id,
16336
16549
  kind: entry.block.kind,
@@ -16836,7 +17049,7 @@ function renderPlanEntry(input) {
16836
17049
  before: joinBefore,
16837
17050
  after: joinAfter
16838
17051
  });
16839
- const blockElement = /* @__PURE__ */ jsx("div", {
17052
+ const blockElement = /* @__PURE__ */ jsxs("div", {
16840
17053
  id: blockAnchorId(block),
16841
17054
  className: wrapperClassName,
16842
17055
  ...arrangementHooksFromContent(renderableContent),
@@ -16856,7 +17069,7 @@ function renderPlanEntry(input) {
16856
17069
  "data-site-style-seam-after": reserves.seamAfter,
16857
17070
  "data-style-group": styleGroup,
16858
17071
  style: reserves.style,
16859
- children: /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps })
17072
+ children: [/* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }), reserves.edgePaint]
16860
17073
  }, blockKey);
16861
17074
  if (boundaryElement) return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [blockElement, boundaryElement] }, blockKey);
16862
17075
  return blockElement;