@riverbankcms/sdk 0.183.0 → 0.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
  9. package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
  10. package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
  11. package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
  12. package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
  13. package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
  14. package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +7 -7
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  26. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  28. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  29. package/dist/_dts/sdk/src/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
  54. package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
  55. package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
  56. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
  57. package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
  68. package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
  77. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
  78. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
  80. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  81. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
  82. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
  83. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
  84. package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
  85. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
  86. package/dist/client/bookings.mjs +5 -5
  87. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
  88. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
  89. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  90. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
  91. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  92. package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
  93. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
  94. package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
  95. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
  96. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
  97. package/dist/client/client.mjs +61 -48
  98. package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
  99. package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
  100. package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
  101. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
  102. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
  103. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
  104. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
  105. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
  106. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
  107. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
  108. package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
  109. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
  110. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
  111. package/dist/client/gifting/client.mjs +8 -8
  112. package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
  113. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
  114. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
  115. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
  116. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
  117. package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
  118. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
  119. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
  120. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
  121. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
  122. package/dist/client/portal/client.mjs +999 -81
  123. package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
  124. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
  125. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  126. package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
  127. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
  128. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
  129. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
  130. package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
  131. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
  132. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
  133. package/dist/client/rendering/client.mjs +28 -27
  134. package/dist/client/rendering/islands.mjs +1 -1
  135. package/dist/client/rendering.mjs +5 -5
  136. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
  137. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
  138. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
  139. package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
  140. package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
  141. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
  142. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
  143. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
  144. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
  145. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
  146. package/dist/client/spam-protection.mjs +1 -1
  147. package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
  148. package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
  149. package/dist/client/src-CXOxpNtj.mjs +3 -0
  150. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
  151. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
  152. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
  153. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
  154. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
  155. package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
  156. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
  157. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  158. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  159. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  160. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
  161. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
  162. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
  163. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
  164. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
  165. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  166. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  167. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
  168. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
  169. package/dist/preview-next/client/runtime.mjs +3 -3
  170. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
  171. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
  172. package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
  173. package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
  174. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
  175. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
  176. package/dist/preview-next/container-responsive.css +158 -3
  177. package/dist/preview-next/keepAlive.mjs +1 -1
  178. package/dist/preview-next/middleware.mjs +1 -1
  179. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
  180. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
  181. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
  182. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
  183. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
  184. package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
  185. package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
  186. package/dist/server/config-validation.mjs +1 -1
  187. package/dist/server/config.mjs +2 -2
  188. package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
  189. package/dist/server/data/resolveBlockData.mjs +1 -1
  190. package/dist/server/index.mjs +3 -3
  191. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
  192. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
  193. package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
  194. package/dist/server/manifest.mjs +2 -2
  195. package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
  196. package/dist/server/navigation.mjs +1 -1
  197. package/dist/server/next.mjs +9 -9
  198. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
  199. package/dist/server/page-converter.mjs +17 -4
  200. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
  201. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
  202. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
  203. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
  204. package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
  205. package/dist/server/portal.mjs +3 -3
  206. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
  207. package/dist/server/prebuild.mjs +1 -1
  208. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
  209. package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
  210. package/dist/server/rendering/components/pageShared.mjs +1 -1
  211. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  212. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  213. package/dist/server/rendering/server.mjs +4 -4
  214. package/dist/server/rendering.mjs +9 -9
  215. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
  216. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
  217. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
  218. package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
  219. package/dist/server/server.mjs +3 -3
  220. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
  221. package/dist/server/theme-bridge.mjs +5 -4
  222. package/dist/server/theme.mjs +2 -2
  223. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
  224. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
  225. package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
  226. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
  227. package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
  228. package/dist/styles/index.css +684 -181
  229. package/package.json +1 -1
  230. package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
  231. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  232. package/dist/client/src-DqMbCjI1.mjs +0 -3
  233. package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
  234. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  235. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  236. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { G as externalMediaSchema, K as imageMediaSchema, W as assetMediaSchema, X as videoMediaSchema, at as eyebrowTreatmentValues, ct as isArrangementMode, et as accordionIconColorTokenValues, it as eventListTreatmentValues, lt as tileTreatmentValues, nt as accordionIconSetValues, ot as headingDecorationColorTokenValues, q as mediaSchema, rt as arrangementModes, st as headingDecorationOverrideValues, tt as accordionIconMotionValues, ut as visibleHeadingDecorationFamilyValues } from "./src-Do_s2lqH.mjs";
3
- import { F as parseColorTokenParts, I as parseThemeColorToken, L as themeColorTokenSchema, M as paletteColorsFromEntries, N as paletteColorsSchema, O as hexColorSchema, P as paletteModeSchema, _ as buttonEffectApplicationSchema, j as paletteColorEntries, k as isThemeColorToken, p as unsafeAsOpaqueButtonColourToken, v as buttonPressOffsetSchema, w as buttonKeyframesSchema, x as buttonVisualStatesSchema, y as buttonSystemSchema, z as VARIANT_ROLES } from "./buttonParts-CJEtVOUy.mjs";
4
- import { A as defineButtonStyleRecipe, At as paletteValueKey, Bt as featuresFromHex, Ct as resolveOpaqueSurfaceHex, Dt as paletteInkToken, E as ELEVATION_OFFSET, Et as paletteInkRoles, Ft as hexLuminance, It as luminanceInterval, J as compositeHex, Lt as preparePaletteColourIndex, M as mapButtonVisualAppearances, Mt as requirePaletteColorsFromEntries, Q as resolveSurfaceForeground, St as resolveConcreteColorHex, Tt as paletteInk, V as rgbColorValue, X as minimumScrimOpacity, Y as gradientScrimSamples, Z as scrimTone, _t as surfaceInkDeclarations, a as requireResolvedSurface, bt as freezeOwnedThemeValue, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, dt as SURFACE_INK_CSS_VARS, f as contextualButtonSurfaceResetStyles, ft as surfaceForegroundDeclarations, h as BUTTON_CONTRAST_POLICY, ht as surfaceForegroundValue, i as prepareThemeSurfaceRevision, j as mapButtonRoleAppearances, jt as paletteValueKeySchema, o as resolveSurface, ot as contrastThresholdByPolicy, q as expandPalette, t as parseResolvedSurface, u as surfaceTransportContext, ut as SURFACE_FOREGROUND_CSS_VARS, xt as ownedThemeSnapshot } from "./accessibleSurfaces-wj4Rloo5.mjs";
2
+ import { G as externalMediaSchema, K as imageMediaSchema, W as assetMediaSchema, X as videoMediaSchema, at as eyebrowTreatmentValues, ct as isArrangementMode, et as accordionIconColorTokenValues, it as eventListTreatmentValues, lt as tileTreatmentValues, nt as accordionIconSetValues, ot as headingDecorationColorTokenValues, q as mediaSchema, rt as arrangementModes, st as headingDecorationOverrideValues, tt as accordionIconMotionValues, ut as visibleHeadingDecorationFamilyValues } from "./src-CJf3u16T.mjs";
3
+ import { A as isThemeColorToken, B as VARIANT_ROLES, F as paletteModeSchema, I as parseColorTokenParts, L as parseThemeColorToken, M as paletteColorEntries, N as paletteColorsFromEntries, P as paletteColorsSchema, R as themeColorTokenSchema, _ as buttonEffectApplicationSchema, k as hexColorSchema, p as unsafeAsOpaqueButtonColourToken, v as buttonPressOffsetSchema, w as buttonKeyframesSchema, x as buttonVisualStatesSchema, y as buttonSystemSchema } from "./buttonParts-C39GC0kz.mjs";
4
+ import { $ as expandPalette, At as paletteValueKey, Bt as featuresFromHex, D as ELEVATION_OFFSET, Ft as hexLuminance, H as rgbColorValue, Ht as linearToSrgb, Kt as rgbToHex, Lt as preparePaletteColourIndex, M as mapButtonRoleAppearances, Mt as requirePaletteColorsFromEntries, N as mapButtonVisualAppearances, St as resolveConcreteColorHex, Vt as hexToRgb, Wt as oklabToSrgb, _t as surfaceInkDeclarations, a as prepareThemeSurfaceRevision, bt as freezeOwnedThemeValue, ct as contrastThresholdByPolicy, d as surfaceTransportContext, dt as SURFACE_INK_CSS_VARS, f as toAccessibleColorSurfaceIntent, ft as surfaceForegroundDeclarations, g as BUTTON_CONTRAST_POLICY, ht as surfaceForegroundValue, j as defineButtonStyleRecipe, jt as paletteValueKeySchema, l as surfaceButtonRequest, n as parseResolvedSurface, o as requireResolvedSurface, p as contextualButtonSurfaceResetStyles, qt as srgbToOklab, rt as minimumScrimOpacity, s as resolveSurface, ut as SURFACE_FOREGROUND_CSS_VARS, xt as ownedThemeSnapshot } from "./accessibleSurfaces-q-dDOwsW.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../site-contracts/src/identity/designIds.ts
7
7
  function asDesignBlockId(value) {
@@ -1431,7 +1431,9 @@ const footerEdgeIntentValues = [
1431
1431
  "angle-edge",
1432
1432
  "angle-edge-subtle",
1433
1433
  "angle-edge-steep",
1434
- "torn-edge-holes"
1434
+ "torn-edge-holes",
1435
+ "ridge-edge",
1436
+ "hand-drawn-wave-edge"
1435
1437
  ];
1436
1438
  const footerEdgePreferenceSchema = z.discriminatedUnion("kind", [
1437
1439
  z.strictObject({ kind: z.literal("style-default") }),
@@ -2051,7 +2053,33 @@ const accordionIconTreatmentSchema = z.object({
2051
2053
  openColorToken: z.enum(accordionIconColorTokenValues).optional(),
2052
2054
  motion: z.enum(accordionIconMotionValues)
2053
2055
  });
2056
+ const textureFinishSchema = z.enum([
2057
+ "paper-grain",
2058
+ "handmade-paper",
2059
+ "plaster"
2060
+ ]);
2061
+ const toneFinishSchema = z.discriminatedUnion("kind", [
2062
+ z.object({
2063
+ kind: z.literal("shading"),
2064
+ direction: z.enum(["darker-towards-foot", "lighter-from-top"])
2065
+ }).strict(),
2066
+ z.object({
2067
+ kind: z.literal("glow"),
2068
+ colour: themeColorTokenSchema,
2069
+ position: z.enum(["side", "middle"])
2070
+ }).strict(),
2071
+ z.object({
2072
+ kind: z.literal("gradient"),
2073
+ colour: themeColorTokenSchema
2074
+ }).strict()
2075
+ ]);
2076
+ const sectionTreatmentSchema = z.object({
2077
+ texture: z.union([z.enum(["auto", "off"]), textureFinishSchema]),
2078
+ tone: z.union([z.enum(["auto", "off"]), toneFinishSchema])
2079
+ }).strict();
2054
2080
  const sectionStylesOverrideSchema = z.object({
2081
+ ground: z.object({ name: z.string().min(1) }).strict().nullable().optional(),
2082
+ treatment: sectionTreatmentSchema.nullable().optional(),
2055
2083
  background: boxBackgroundSchema.nullable().optional(),
2056
2084
  spacing: semanticSpacingSchema.nullable().optional(),
2057
2085
  minHeight: z.enum([
@@ -2581,6 +2609,8 @@ const cardListBlockParts = {
2581
2609
  };
2582
2610
  const cardListFamilyBlocks = Object.keys(cardListBlockParts);
2583
2611
  const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
2612
+ /** Blocks with a photo an owner can shape. */
2613
+ const photoShapeKnobBlocks = ["block.intro", "block.media-text"];
2584
2614
  const lookKnobBlocks = {
2585
2615
  actionStyle: cardListKnobBlocks,
2586
2616
  titleSize: "block.hero",
@@ -2589,7 +2619,7 @@ const lookKnobBlocks = {
2589
2619
  "block.intro",
2590
2620
  "block.media-text"
2591
2621
  ],
2592
- imageShape: ["block.intro", "block.media-text"],
2622
+ imageShape: photoShapeKnobBlocks,
2593
2623
  aspectRatio: "block.media-text",
2594
2624
  stickerLine: "block.hero",
2595
2625
  smallCaption: "block.hero",
@@ -2794,36 +2824,6 @@ const arrangementSlotNames = [
2794
2824
  "separator"
2795
2825
  ];
2796
2826
  //#endregion
2797
- //#region ../theme-core/src/surfaces/logoVariant.ts
2798
- /** Concrete hex behind a plain, opaque palette token, or null otherwise. */
2799
- function opaquePaletteHexForToken(expandedPalette, token) {
2800
- if (!token) return null;
2801
- const parts = parseColorTokenParts(token);
2802
- if (parts.kind !== "token" || parts.opacityPercent !== null) return null;
2803
- return expandedPalette[parts.token] ?? null;
2804
- }
2805
- /**
2806
- * Tone of the surface a foreground token was resolved for.
2807
- *
2808
- * A token with opacity has no known underlay to composite against, and a raw
2809
- * or unrecognised token has no palette hex, so both are `unknown` rather than
2810
- * a guess.
2811
- */
2812
- function surfaceToneFromForegroundToken(expandedPalette, foregroundToken) {
2813
- const hex = opaquePaletteHexForToken(expandedPalette, foregroundToken);
2814
- if (!hex) return "unknown";
2815
- return featuresFromHex(hex).Y >= .5 ? "dark" : "light";
2816
- }
2817
- /**
2818
- * The logo to draw on a surface of the given tone. A missing variant falls
2819
- * back to the other one, and an unknown tone uses the light-backgrounds logo,
2820
- * which is what every site rendered before variants existed.
2821
- */
2822
- function selectLogoVariant(tone, variants) {
2823
- const { forLightBackgrounds, forDarkBackgrounds } = variants;
2824
- return tone === "dark" ? forDarkBackgrounds ?? forLightBackgrounds : forLightBackgrounds ?? forDarkBackgrounds;
2825
- }
2826
- //#endregion
2827
2827
  //#region ../theme-core/src/surfaces/opaqueSurface.ts
2828
2828
  function opaqueSurfaceContextFromTheme(theme) {
2829
2829
  const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
@@ -2839,11 +2839,13 @@ function opaqueSurfaceContextFromTheme(theme) {
2839
2839
  * The declarations that make an element own its surface: `color`, every
2840
2840
  * `--rb-surface-*` role and every `--rb-action-*` variable. Card roles and
2841
2841
  * opaque block panels both publish through this, so a nested surface can never
2842
- * inherit a band's light text or its band-resolved buttons.
2842
+ * inherit a band's light text or its band-resolved buttons. Every foreground
2843
+ * role, muted included, is always published; only the line and mark
2844
+ * decorations wait for an arrangement (`withDecorations`).
2843
2845
  */
2844
- function opaqueSurfaceDeclarations(surface, arrangement = false) {
2846
+ function opaqueSurfaceDeclarations(surface, withDecorations = false) {
2845
2847
  requireResolvedSurface(surface);
2846
- if (surface.kind === "inherit") return inheritedSurfaceDeclarations(arrangement);
2848
+ if (surface.kind === "inherit") return inheritedSurfaceDeclarations(withDecorations);
2847
2849
  const foreground = surface.foreground;
2848
2850
  return [
2849
2851
  ...surfaceForegroundDeclarations({
@@ -2852,11 +2854,11 @@ function opaqueSurfaceDeclarations(surface, arrangement = false) {
2852
2854
  link: colorValue(foreground.link),
2853
2855
  linkHover: colorValue(foreground.linkHover),
2854
2856
  supporting: colorValue(foreground.supporting),
2855
- ...arrangement ? { muted: colorValue(foreground.muted) } : {},
2857
+ muted: colorValue(foreground.muted),
2856
2858
  hoverDecoration: surface.hoverDecoration
2857
2859
  }),
2858
2860
  ...surfaceInkDeclarations(surface.inks),
2859
- ...arrangement && surface.decorations !== void 0 ? [`${SURFACE_FOREGROUND_CSS_VARS.line}: ${surface.decorations.line};`, `${SURFACE_FOREGROUND_CSS_VARS.mark}: ${surface.decorations.mark};`] : [],
2861
+ ...withDecorations && surface.decorations !== void 0 ? [`${SURFACE_FOREGROUND_CSS_VARS.line}: ${surface.decorations.line};`, `${SURFACE_FOREGROUND_CSS_VARS.mark}: ${surface.decorations.mark};`] : [],
2860
2862
  ...Object.entries(surface.buttonContext.styles).map(([property, value]) => `${property}: ${value};`)
2861
2863
  ];
2862
2864
  }
@@ -2865,10 +2867,10 @@ function colorValue(token) {
2865
2867
  return parsed ? rgbColorValue(parsed) : token;
2866
2868
  }
2867
2869
  /** Every property a surface publishes, set to `inherit`. */
2868
- function inheritedSurfaceDeclarations(arrangement) {
2870
+ function inheritedSurfaceDeclarations(withDecorations) {
2869
2871
  return [
2870
2872
  "color",
2871
- ...Object.entries(SURFACE_FOREGROUND_CSS_VARS).filter(([role]) => arrangement || role !== "line" && role !== "mark" && role !== "muted").map(([, variable]) => variable),
2873
+ ...Object.entries(SURFACE_FOREGROUND_CSS_VARS).filter(([role]) => withDecorations || role !== "line" && role !== "mark").map(([, variable]) => variable),
2872
2874
  ...Object.values(SURFACE_INK_CSS_VARS),
2873
2875
  "--rb-surface-link-hover-decoration",
2874
2876
  ...Object.keys(contextualButtonSurfaceResetStyles())
@@ -3334,36 +3336,13 @@ function resolveBlockAppearancePresetDesign(preset, layoutProfile = null) {
3334
3336
  }
3335
3337
  //#endregion
3336
3338
  //#region ../theme-core/src/site-styles/lookPhotoFrames.ts
3337
- /** Shape knobs override the skin's ordinary photo frame. Corner choices keep its ratio. */
3338
- const photoShapeFrames = [{
3339
- knob: "imageShape",
3340
- values: {
3341
- square: {
3342
- kind: "corners",
3343
- borderRadius: "0"
3344
- },
3345
- rounded: {
3346
- kind: "corners",
3347
- borderRadius: "var(--rb-media-shape-radius, 1rem)"
3348
- },
3349
- circle: {
3350
- kind: "fixed",
3351
- aspectRatio: "1/1",
3352
- borderRadius: "50%"
3353
- },
3354
- arch: {
3355
- kind: "fixed",
3356
- aspectRatio: "4/5",
3357
- borderRadius: "9999px 9999px 0.125rem 0.125rem"
3358
- }
3359
- }
3360
- }];
3361
3339
  const naturalPhotoFrame = {
3362
3340
  kind: "variable",
3363
3341
  because: "The photo keeps its own proportions.",
3364
3342
  aspectRatio: "auto"
3365
3343
  };
3366
3344
  const introPhotoFrames = {
3345
+ photoKind: "feature",
3367
3346
  default: naturalPhotoFrame,
3368
3347
  bySkin: {
3369
3348
  haven: {
@@ -3377,7 +3356,7 @@ const introPhotoFrames = {
3377
3356
  orbit: {
3378
3357
  kind: "fixed",
3379
3358
  aspectRatio: "1/1",
3380
- borderRadius: "50%"
3359
+ shape: "circle"
3381
3360
  },
3382
3361
  forge: {
3383
3362
  kind: "fixed",
@@ -3387,10 +3366,10 @@ const introPhotoFrames = {
3387
3366
  kind: "fixed",
3388
3367
  aspectRatio: "3/4"
3389
3368
  }
3390
- },
3391
- byKnob: photoShapeFrames
3369
+ }
3392
3370
  };
3393
3371
  const mediaTextPhotoFrames = {
3372
+ photoKind: "feature",
3394
3373
  default: naturalPhotoFrame,
3395
3374
  bySkin: {
3396
3375
  poster: {
@@ -3425,8 +3404,7 @@ const mediaTextPhotoFrames = {
3425
3404
  kind: "fixed",
3426
3405
  aspectRatio: "4/5"
3427
3406
  }
3428
- },
3429
- byKnob: photoShapeFrames
3407
+ }
3430
3408
  };
3431
3409
  //#endregion
3432
3410
  //#region ../theme-core/src/site-styles/blockAppearancePresets.ts
@@ -4443,10 +4421,13 @@ const blockAppearancePresets = [
4443
4421
  styleFallback: [id$1("newsletter-signup-text-beside")]
4444
4422
  }),
4445
4423
  defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", ["blackAndWhite"], {
4446
- mediaFrame: { default: {
4447
- kind: "fixed",
4448
- aspectRatio: "1/1"
4449
- } },
4424
+ mediaFrame: {
4425
+ photoKind: "gallery",
4426
+ default: {
4427
+ kind: "fixed",
4428
+ aspectRatio: "1/1"
4429
+ }
4430
+ },
4450
4431
  thumbnail: sketch.page([
4451
4432
  sketch.title(.4),
4452
4433
  sketch.across(4, [sketch.photo("short")]),
@@ -4455,6 +4436,7 @@ const blockAppearancePresets = [
4455
4436
  }),
4456
4437
  defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", ["blackAndWhite"], {
4457
4438
  mediaFrame: {
4439
+ photoKind: "gallery",
4458
4440
  default: {
4459
4441
  kind: "fixed",
4460
4442
  aspectRatio: "1/1"
@@ -4462,41 +4444,41 @@ const blockAppearancePresets = [
4462
4444
  bySkin: { lantern: {
4463
4445
  kind: "fixed",
4464
4446
  aspectRatio: "3/4",
4465
- borderRadius: "9999px 9999px 0 0"
4447
+ shape: "arch"
4466
4448
  } }
4467
4449
  },
4468
4450
  thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("tall", "arch"), sketch.text(1, .7)])]),
4469
4451
  styleFallback: [id$1("image-gallery-square-tiles")]
4470
4452
  }),
4471
4453
  defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
4472
- mediaFrame: { default: {
4473
- kind: "fixed",
4474
- aspectRatio: "1/1",
4475
- borderRadius: "50%"
4476
- } },
4477
- thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [sketch.title(.8), sketch.text(3)])]),
4478
- forcedKnobs: {
4479
- imageShape: "circle",
4480
- aspectRatio: "1/1"
4454
+ mediaFrame: {
4455
+ photoKind: "feature",
4456
+ default: {
4457
+ kind: "fixed",
4458
+ aspectRatio: "1/1",
4459
+ shape: "circle"
4460
+ }
4481
4461
  },
4462
+ thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [sketch.title(.8), sketch.text(3)])]),
4463
+ forcedKnobs: { aspectRatio: "1/1" },
4482
4464
  styleFallback: [id$1("media-text-photo-beside-text")]
4483
4465
  }),
4484
4466
  defineArrangementLook("media-text-quote-beside-circle", "media-text", "Quote beside a round photo", "circle-beside", ["imagePosition"], {
4485
- mediaFrame: { default: {
4486
- kind: "fixed",
4487
- aspectRatio: "1/1",
4488
- borderRadius: "50%"
4489
- } },
4467
+ mediaFrame: {
4468
+ photoKind: "feature",
4469
+ default: {
4470
+ kind: "fixed",
4471
+ aspectRatio: "1/1",
4472
+ shape: "circle"
4473
+ }
4474
+ },
4490
4475
  thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [
4491
4476
  sketch.title(.6),
4492
4477
  sketch.quote("small"),
4493
4478
  sketch.text(2),
4494
4479
  sketch.text(1, .5)
4495
4480
  ])]),
4496
- forcedKnobs: {
4497
- imageShape: "circle",
4498
- aspectRatio: "1/1"
4499
- },
4481
+ forcedKnobs: { aspectRatio: "1/1" },
4500
4482
  styleFallback: [id$1("media-text-circle-beside-text"), id$1("media-text-photo-beside-text")]
4501
4483
  }),
4502
4484
  defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, {
@@ -4597,12 +4579,18 @@ const blockAppearancePresets = [
4597
4579
  ]),
4598
4580
  styleFallback: [id$1("hero-photo-beside-text")]
4599
4581
  }),
4600
- defineArrangementLook("class-prices-big-figures", "class-prices", "Prices as big figures", "cards", [], { thumbnail: sketch.page([sketch.across(3, [
4601
- sketch.price,
4602
- sketch.title(.7, "small"),
4603
- sketch.text(1)
4604
- ])]) }),
4605
- defineArrangementLook("class-prices-rows", "class-prices", "Prices on the right of each row", "index", [], { thumbnail: sketch.page([sketch.down(3, [sketch.row([sketch.title(.7, "small"), sketch.text(1)], [sketch.price])], { ruled: true })]) }),
4582
+ defineArrangementLook("class-prices-big-figures", "class-prices", "Prices as big figures", "cards", [], {
4583
+ thumbnail: sketch.page([sketch.across(3, [
4584
+ sketch.price,
4585
+ sketch.title(.7, "small"),
4586
+ sketch.text(1)
4587
+ ])]),
4588
+ styleFallback: [id$1("class-prices-rows")]
4589
+ }),
4590
+ defineArrangementLook("class-prices-rows", "class-prices", "Prices on the right of each row", "index", [], {
4591
+ thumbnail: sketch.page([sketch.down(3, [sketch.row([sketch.title(.7, "small"), sketch.text(1)], [sketch.price])], { ruled: true })]),
4592
+ styleFallback: [id$1("class-prices-big-figures")]
4593
+ }),
4606
4594
  defineCardListLook("feature-cards-cards", "Cards", "cards", [
4607
4595
  "media",
4608
4596
  "title",
@@ -4945,6 +4933,7 @@ const blockAppearancePresets = [
4945
4933
  }),
4946
4934
  defineArrangementLook("intro-large-photo-beside-text", "intro", "Large photo beside the text", "media-copy", ["imagePosition"], {
4947
4935
  mediaFrame: {
4936
+ photoKind: "feature",
4948
4937
  default: naturalPhotoFrame,
4949
4938
  bySkin: { vista: {
4950
4939
  kind: "fixed",
@@ -4968,6 +4957,7 @@ const blockAppearancePresets = [
4968
4957
  }),
4969
4958
  defineArrangementLook("media-text-photo-to-edge", "media-text", "Photo to the edge", "default", ["imagePosition"], {
4970
4959
  mediaFrame: {
4960
+ photoKind: "feature",
4971
4961
  default: {
4972
4962
  kind: "variable",
4973
4963
  because: "The photo fills the section height, which depends on the text and viewport.",
@@ -4988,12 +4978,15 @@ const blockAppearancePresets = [
4988
4978
  styleFallback: [id$1("media-text-photo-beside-text")]
4989
4979
  }),
4990
4980
  defineArrangementLook("media-text-wide-photo-above", "media-text", "Wide photo above the text", "default", [], {
4991
- mediaFrame: { default: {
4992
- kind: "variable",
4993
- because: "The photo is a wide band on desktop and a landscape photo on phones.",
4994
- aspectRatio: "21/8",
4995
- mobileAspectRatio: "4/3"
4996
- } },
4981
+ mediaFrame: {
4982
+ photoKind: "feature",
4983
+ default: {
4984
+ kind: "variable",
4985
+ because: "The photo is a wide band on desktop and a landscape photo on phones.",
4986
+ aspectRatio: "21/8",
4987
+ mobileAspectRatio: "4/3"
4988
+ }
4989
+ },
4997
4990
  thumbnail: sketch.page([sketch.photo("short"), sketch.row(sketch.weight(1, [sketch.title(.9, "large")]), sketch.weight(1, [sketch.text(3)]))]),
4998
4991
  styleFallback: [id$1("media-text-photo-beside-text")]
4999
4992
  }),
@@ -5103,6 +5096,7 @@ const blockAppearancePresets = [
5103
5096
  }),
5104
5097
  defineArrangementLook("image-gallery-lead-photo", "image-gallery", "One large photo, then smaller ones", "tiles", ["blackAndWhite"], {
5105
5098
  mediaFrame: {
5099
+ photoKind: "gallery",
5106
5100
  default: {
5107
5101
  kind: "variable",
5108
5102
  because: "The lead fills two rows; on phones the lead and a trailing full-width tile are landscape.",
@@ -5123,6 +5117,7 @@ const blockAppearancePresets = [
5123
5117
  }),
5124
5118
  defineArrangementLook("image-gallery-captions-under", "image-gallery", "Photos with captions underneath", "tiles", ["blackAndWhite"], {
5125
5119
  mediaFrame: {
5120
+ photoKind: "gallery",
5126
5121
  default: {
5127
5122
  kind: "fixed",
5128
5123
  aspectRatio: "4/3"
@@ -5137,6 +5132,7 @@ const blockAppearancePresets = [
5137
5132
  }),
5138
5133
  defineArrangementLook("image-gallery-photo-band", "image-gallery", "One photo across the page", "tiles", ["blackAndWhite"], {
5139
5134
  mediaFrame: {
5135
+ photoKind: "gallery",
5140
5136
  default: {
5141
5137
  kind: "fixed",
5142
5138
  aspectRatio: "1/1"
@@ -5161,6 +5157,7 @@ const blockAppearancePresets = [
5161
5157
  }),
5162
5158
  defineArrangementLook("image-gallery-moving-row", "image-gallery", "A moving row of photos", "moving-row", ["blackAndWhite"], {
5163
5159
  mediaFrame: {
5160
+ photoKind: "gallery",
5164
5161
  default: {
5165
5162
  kind: "fixed",
5166
5163
  aspectRatio: "1/1"
@@ -5168,7 +5165,7 @@ const blockAppearancePresets = [
5168
5165
  bySkin: { orbit: {
5169
5166
  kind: "fixed",
5170
5167
  aspectRatio: "1/1",
5171
- borderRadius: "50%"
5168
+ shape: "circle"
5172
5169
  } }
5173
5170
  },
5174
5171
  thumbnail: sketch.band([sketch.across(5, [sketch.photo("short")], { overflow: true })]),
@@ -5458,379 +5455,429 @@ const blockAppearancePresets = [
5458
5455
  //#region ../theme-core/src/site-styles/appearancePresetCatalog.ts
5459
5456
  const appearancePresets = blockAppearancePresets;
5460
5457
  //#endregion
5461
- //#region ../theme-core/src/site-styles/rawStyleFields.ts
5462
- const themeV2RuntimeStyleFieldNames = [
5463
- "_frameStyles",
5464
- "_sectionStyles",
5465
- "_containerStyles",
5466
- "_cardStyles"
5467
- ];
5468
- const themeV2BlockSpecificRawStyleFieldNames = [
5469
- "_contentCardStyles",
5470
- "_heroLayoutStyles",
5471
- "_textCardStyles"
5472
- ];
5473
- const themeV2NormalEditorRawStyleFieldNames = [
5474
- ...themeV2RuntimeStyleFieldNames,
5475
- ...themeV2BlockSpecificRawStyleFieldNames,
5476
- "styleGroup"
5477
- ];
5478
- new Set(themeV2NormalEditorRawStyleFieldNames);
5479
- const themeV2CompilerOwnedFieldNames = [...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
5480
- const staleTransitionStyleGroupPrefix = "site-style-transition-";
5481
- /**
5482
- * A `styleGroup` in the retired `site-style-transition-*` namespace is residue
5483
- * from the old per-block transition path (issue 1422). Any other value is
5484
- * authored and must survive.
5485
- */
5486
- function isStaleTransitionStyleGroup(value) {
5487
- return typeof value === "string" && value.startsWith(staleTransitionStyleGroupPrefix);
5488
- }
5489
- /** Drops a stale transition `styleGroup`, leaving authored values untouched. */
5490
- function stripStaleTransitionStyleGroup(content) {
5491
- if (!isStaleTransitionStyleGroup(content.styleGroup)) return { ...content };
5492
- const { styleGroup: _stale, ...rest } = content;
5493
- return rest;
5494
- }
5495
- //#endregion
5496
- //#region ../theme-core/src/site-styles/imageSurfaceBackground.ts
5497
- /**
5498
- * What a photo surface gets when nothing has chosen a treatment, so text on it
5499
- * stays readable. The one default for generated heroes, the opening-section
5500
- * repair and the resolver's fallback.
5501
- */
5502
- const defaultHeroImageSurfaceTreatment = { kind: "neutral-wash" };
5503
- function withImageSurfaceMotion(background, motion) {
5504
- return motion === "static" ? background : {
5505
- ...background,
5506
- motion
5507
- };
5508
- }
5509
- function compileImageSurfaceTreatmentBackground(background, treatment, foreground) {
5510
- switch (treatment.kind) {
5511
- case "none": return null;
5512
- case "brand-scrim": return withColorOverlay(background, darkenedThemeToken(treatment.token), treatment, "primaryForeground", foreground);
5513
- case "brand-wash": return withColorOverlay(background, lightenedBrandToken(treatment.token), treatment, "text", foreground);
5514
- case "neutral-scrim": return withColorOverlay(background, darkenedThemeToken("text"), treatment, "primaryForeground", foreground);
5515
- case "neutral-wash": return {
5516
- ...background,
5517
- overlay: {
5518
- type: "gradient",
5519
- gradient: "linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(244,241,234,0.62) 90%)",
5520
- opacity: 1
5521
- },
5522
- ...uniformForeground("text"),
5523
- ...foreground
5524
- };
5525
- case "solid-panel": return withColorOverlay(background, "surface", treatment, "text", foreground);
5526
- default: return assertNever(treatment);
5527
- }
5528
- }
5529
- function withColorOverlay(background, color, treatment, foregroundToken, foreground) {
5530
- return {
5531
- ...background,
5532
- overlay: {
5533
- type: "color",
5534
- color,
5535
- opacity: imageSurfaceTreatmentOpacity(treatment.kind, treatment.intensity)
5458
+ //#region ../site-contracts/src/pageDocument/legacyEdgePins.ts
5459
+ /** Frozen pre-1872 variants. Unknown combinations remain unavailable, never silently change shape. */
5460
+ const legacyEdges = [
5461
+ {
5462
+ legacy: {
5463
+ kind: "soft-fade",
5464
+ height: "medium",
5465
+ curve: "soft"
5536
5466
  },
5537
- ...uniformForeground(foregroundToken),
5538
- ...foreground
5539
- };
5540
- }
5541
- /** The brand tint older photo heroes use, shared with the Look photo treatment's brand arm. */
5542
- function brandScrimOverlay(token) {
5543
- return {
5544
- type: "color",
5545
- color: darkenedThemeToken(token),
5546
- opacity: imageSurfaceTreatmentOpacity("brand-scrim", void 0)
5547
- };
5548
- }
5549
- function uniformForeground(token) {
5550
- return {
5551
- textColor: token,
5552
- headingColor: token,
5553
- linkColor: token,
5554
- supportingColor: token
5555
- };
5556
- }
5557
- const opacityByKind = {
5558
- "brand-scrim": {
5559
- soft: .26,
5560
- balanced: .35,
5561
- strong: .52
5467
+ pin: {
5468
+ family: "gradient",
5469
+ variant: "soft",
5470
+ layers: 1,
5471
+ colourPreset: "fade"
5472
+ }
5562
5473
  },
5563
- "brand-wash": {
5564
- soft: .24,
5565
- balanced: .34,
5566
- strong: .46
5474
+ {
5475
+ legacy: {
5476
+ kind: "soft-fade",
5477
+ height: "large",
5478
+ curve: "spacious"
5479
+ },
5480
+ pin: {
5481
+ family: "gradient",
5482
+ variant: "spacious",
5483
+ layers: 1,
5484
+ colourPreset: "fade"
5485
+ }
5567
5486
  },
5568
- "neutral-scrim": {
5569
- soft: .42,
5570
- balanced: .58,
5571
- strong: .72
5487
+ {
5488
+ legacy: {
5489
+ kind: "soft-fade",
5490
+ height: "expansive",
5491
+ curve: "expansive"
5492
+ },
5493
+ pin: {
5494
+ family: "gradient",
5495
+ variant: "expansive",
5496
+ layers: 1,
5497
+ colourPreset: "fade"
5498
+ }
5572
5499
  },
5573
- "neutral-wash": {
5574
- soft: 1,
5575
- balanced: 1,
5576
- strong: 1
5500
+ {
5501
+ legacy: {
5502
+ kind: "wave-edge",
5503
+ height: "medium",
5504
+ amplitude: "balanced",
5505
+ rhythm: "double",
5506
+ symmetry: "symmetrical"
5507
+ },
5508
+ pin: {
5509
+ family: "wave",
5510
+ variant: "balanced",
5511
+ layers: 1,
5512
+ colourPreset: "fade"
5513
+ }
5577
5514
  },
5578
- "solid-panel": {
5579
- soft: .78,
5580
- balanced: .88,
5581
- strong: .94
5515
+ {
5516
+ legacy: {
5517
+ kind: "wave-edge",
5518
+ height: "medium",
5519
+ amplitude: "balanced",
5520
+ rhythm: "double",
5521
+ symmetry: "asymmetrical"
5522
+ },
5523
+ pin: {
5524
+ family: "wave",
5525
+ variant: "classic",
5526
+ layers: 1,
5527
+ colourPreset: "fade"
5528
+ }
5529
+ },
5530
+ {
5531
+ legacy: {
5532
+ kind: "wave-edge",
5533
+ height: "compact",
5534
+ amplitude: "subtle",
5535
+ rhythm: "double",
5536
+ symmetry: "symmetrical",
5537
+ echo: true
5538
+ },
5539
+ pin: {
5540
+ family: "wave",
5541
+ variant: "echo",
5542
+ layers: 2,
5543
+ colourPreset: "fade"
5544
+ }
5545
+ },
5546
+ {
5547
+ legacy: {
5548
+ kind: "wave-edge",
5549
+ height: "compact",
5550
+ amplitude: "subtle",
5551
+ rhythm: "single",
5552
+ symmetry: "symmetrical"
5553
+ },
5554
+ pin: {
5555
+ family: "wave",
5556
+ variant: "gentle",
5557
+ layers: 1,
5558
+ colourPreset: "fade"
5559
+ }
5560
+ },
5561
+ {
5562
+ legacy: {
5563
+ kind: "wave-edge",
5564
+ height: "large",
5565
+ amplitude: "bold",
5566
+ rhythm: "double",
5567
+ symmetry: "symmetrical"
5568
+ },
5569
+ pin: {
5570
+ family: "wave",
5571
+ variant: "bold",
5572
+ layers: 1,
5573
+ colourPreset: "fade"
5574
+ }
5575
+ },
5576
+ {
5577
+ legacy: {
5578
+ kind: "wave-edge",
5579
+ height: "medium",
5580
+ amplitude: "balanced",
5581
+ rhythm: "double",
5582
+ symmetry: "drift"
5583
+ },
5584
+ pin: {
5585
+ family: "wave",
5586
+ variant: "drift",
5587
+ layers: 1,
5588
+ colourPreset: "fade"
5589
+ }
5590
+ },
5591
+ {
5592
+ legacy: {
5593
+ kind: "arc-edge",
5594
+ height: "large",
5595
+ echo: true
5596
+ },
5597
+ pin: {
5598
+ family: "arc",
5599
+ variant: "echo",
5600
+ layers: 1,
5601
+ colourPreset: "fade"
5602
+ }
5603
+ },
5604
+ {
5605
+ legacy: {
5606
+ kind: "arc-edge",
5607
+ height: "large",
5608
+ bulge: true
5609
+ },
5610
+ pin: {
5611
+ family: "arc",
5612
+ variant: "bulge",
5613
+ layers: 1,
5614
+ colourPreset: "fade"
5615
+ }
5616
+ },
5617
+ {
5618
+ legacy: {
5619
+ kind: "angle-edge",
5620
+ height: "compact",
5621
+ slope: "subtle",
5622
+ direction: "forward"
5623
+ },
5624
+ pin: {
5625
+ family: "angle",
5626
+ variant: "subtle",
5627
+ layers: 1,
5628
+ colourPreset: "fade"
5629
+ }
5630
+ },
5631
+ {
5632
+ legacy: {
5633
+ kind: "angle-edge",
5634
+ height: "medium",
5635
+ slope: "balanced",
5636
+ direction: "forward"
5637
+ },
5638
+ pin: {
5639
+ family: "angle",
5640
+ variant: "balanced",
5641
+ layers: 1,
5642
+ colourPreset: "fade"
5643
+ }
5644
+ },
5645
+ {
5646
+ legacy: {
5647
+ kind: "angle-edge",
5648
+ height: "large",
5649
+ slope: "steep",
5650
+ direction: "forward"
5651
+ },
5652
+ pin: {
5653
+ family: "angle",
5654
+ variant: "steep",
5655
+ layers: 1,
5656
+ colourPreset: "fade"
5657
+ }
5658
+ },
5659
+ {
5660
+ legacy: {
5661
+ kind: "angle-edge",
5662
+ height: "large",
5663
+ slope: "steady",
5664
+ direction: "forward"
5665
+ },
5666
+ pin: {
5667
+ family: "angle",
5668
+ variant: "steady",
5669
+ layers: 1,
5670
+ colourPreset: "fade"
5671
+ }
5672
+ },
5673
+ {
5674
+ legacy: {
5675
+ kind: "torn-edge",
5676
+ height: "compact",
5677
+ cut: "holes"
5678
+ },
5679
+ pin: {
5680
+ family: "torn",
5681
+ variant: "holes",
5682
+ layers: 1,
5683
+ colourPreset: "fade"
5684
+ }
5582
5685
  }
5583
- };
5584
- function imageSurfaceTreatmentOpacity(kind, intensity) {
5585
- return opacityByKind[kind][intensity ?? "balanced"];
5586
- }
5587
- function darkenedThemeToken(token) {
5588
- return `color-mix(in oklab, rgb(var(--tb-${token})), black 28%)`;
5589
- }
5590
- function lightenedBrandToken(token) {
5591
- return `color-mix(in oklab, rgb(var(--tb-${token})), white 42%)`;
5592
- }
5593
- //#endregion
5594
- //#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
5595
- function parseCanonicalRuntimeBackground(content) {
5596
- const background = readRecord(readRecord(content._sectionStyles)?.background);
5597
- if (!background) return { kind: "none" };
5598
- const parsed = runtimeBoxBackgroundSchema.safeParse(background);
5599
- if (!parsed.success) return { kind: "none" };
5600
- return parsed.data.contentOwner === "page-design-editor" ? {
5601
- kind: "page-design-override",
5602
- background: parsed.data
5603
- } : {
5604
- kind: "block-authored",
5605
- background: parsed.data
5686
+ ];
5687
+ function legacyKey(treatment) {
5688
+ return JSON.stringify(Object.entries(treatment).sort(([left], [right]) => left.localeCompare(right)));
5689
+ }
5690
+ function convertLegacyEdgePin(treatment) {
5691
+ if (treatment.kind === "none") return {
5692
+ family: "none",
5693
+ layers: 1,
5694
+ colourPreset: "fade"
5606
5695
  };
5607
- }
5608
- /** The Look owns photo shading; copy panels keep their independently solved ink. */
5609
- function applyLookPhotoTreatment(background, treatment, palette, tint = "dark", placement = "foot") {
5610
- if (background.type !== "image" || !treatment) return background;
5611
- if (tint === "brand") return brandPhotoTreatment(background, treatment, palette, placement);
5612
- if (treatment === "photo-only") return background;
5613
- return darkPhotoTreatment(background, palette, placement);
5614
- }
5615
- function darkPhotoTreatment(background, palette, placement, brandWash) {
5616
- const ink = photoCopyInk(palette);
5696
+ const entry = legacyEdges.find((candidate) => legacyKey(candidate.legacy) === legacyKey(treatment));
5697
+ if (entry) return entry.pin;
5617
5698
  return {
5618
- ...background,
5619
- overlay: {
5620
- type: "gradient",
5621
- opacity: 1,
5622
- gradient: photoCopyShade(placement, brandWash)
5623
- },
5624
- textColor: ink,
5625
- headingColor: ink,
5626
- linkColor: ink,
5627
- supportingColor: ink
5628
- };
5629
- }
5630
- /**
5631
- * The least black any photo copy band puts behind its text: the centred band's
5632
- * even 60%. The foot band is at least 76% where its copy sits and the foot
5633
- * brand paint 80% (under a wash no lighter than 28% black), so 60% bounds all three.
5634
- */
5635
- const PHOTO_COPY_MIN_SHADE = .6;
5636
- /** Centred copy gets an even 60% band (white text over a white photo stays above 5.5:1) that eases off at the edges; the foot keeps its original paint. */
5637
- function photoCopyShade(placement, brandWash) {
5638
- if (placement === "foot" && brandWash) return `linear-gradient(${brandWash}, ${brandWash}), linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8))`;
5639
- const band = `rgba(0,0,0,${PHOTO_COPY_MIN_SHADE})`;
5640
- return `var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), ${placement === "centre" ? `linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, ${band} 15%, ${band} 85%, rgba(0,0,0,0.15) 100%)` : "linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"}${brandWash ? `, linear-gradient(${brandWash}, ${brandWash})` : ""}`;
5641
- }
5642
- /** Every pixel behind photo copy: anything from black up to the minimum shade over a white photo. */
5643
- const PHOTO_COPY_PAINT = luminanceInterval(0, hexLuminance(compositeHex("#000000", PHOTO_COPY_MIN_SHADE, "#ffffff")));
5644
- /** The palette's own light colour (its background, or its text on a dark palette) when it reads over the copy band, else white. */
5645
- function photoCopyInk(palette) {
5646
- const ink = paletteInk(PHOTO_COPY_PAINT, paletteInkRoles(palette));
5647
- return ink.kind === "unpaintable" ? "#FFFFFF" : paletteInkToken(ink);
5648
- }
5649
- /** A light brand's dark ink cannot sit on unknown pixels: give light ink a dark backing. */
5650
- function brandPhotoTreatment(background, treatment, palette, placement) {
5651
- const brand = brandScrimOverlay("primary");
5652
- if (treatment === "photo-only") return {
5653
- ...background,
5654
- overlay: brand
5655
- };
5656
- if (surfaceToneFromForegroundToken(palette, "primaryForeground") === "dark") return {
5657
- ...background,
5658
- overlay: brand,
5659
- textColor: "primaryForeground",
5660
- headingColor: "primaryForeground",
5661
- linkColor: "primaryForeground",
5662
- supportingColor: "primaryForeground"
5699
+ family: treatment.kind === "soft-fade" ? "gradient" : treatment.kind === "wave-edge" ? "wave" : treatment.kind === "arc-edge" ? "arc" : treatment.kind === "torn-edge" ? "torn" : "angle",
5700
+ variant: `unavailable:${legacyKey(treatment)}`,
5701
+ layers: 1,
5702
+ colourPreset: "fade"
5663
5703
  };
5664
- return darkPhotoTreatment(background, palette, placement, `color-mix(in srgb, ${brand.color} ${brand.opacity * 100}%, transparent)`);
5665
5704
  }
5666
- function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
5667
- if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
5668
- if (rhythm !== void 0) return rhythmBackground(rhythm);
5669
- return {
5670
- kind: "content-media",
5671
- background: source.background,
5672
- ground: {
5673
- type: "color",
5674
- color: arrangementHeroPhoto?.fallbackToken ?? "background",
5675
- textColor: source.background.textColor,
5676
- headingColor: source.background.headingColor,
5677
- linkColor: source.background.linkColor,
5678
- supportingColor: source.background.supportingColor
5679
- }
5680
- };
5681
- }
5682
- if (source.kind === "page-design-override") return {
5683
- kind: "override",
5684
- background: source.background
5685
- };
5686
- if (isAuthoredMedia(source)) return {
5687
- kind: "authored-media",
5688
- background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
5689
- };
5690
- if (lookDefault) return {
5691
- kind: "look-surface",
5692
- background: lookDefault
5693
- };
5694
- if (source.kind === "block-authored") return {
5695
- kind: "authored-colour",
5696
- background: source.background
5697
- };
5698
- return rhythmBackground(rhythm);
5699
- }
5700
- function resolveSectionForeground(background, palette) {
5701
- return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
5702
- }
5703
- /** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
5704
- function sectionForegroundBackground(resolved, palette) {
5705
- if (resolved.kind === "base") return null;
5706
- if (resolved.kind !== "content-media") return resolved.background;
5707
- const original = resolveSurfaceForeground(resolved.background, palette);
5708
- const measured = resolveSurfaceForeground(resolved.ground, palette);
5709
- if (original.kind !== "known" || measured.kind !== "known") return resolved.background;
5710
- return [
5711
- "text",
5712
- "heading",
5713
- "link",
5714
- "supporting"
5715
- ].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
5716
- }
5717
- function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
5718
- const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
5719
- const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
5720
- if (paintsBand && !lookScrim) return authored;
5721
- const merged = runtimeBoxBackgroundSchema.safeParse({
5722
- ...lookDefault,
5723
- type: authored.type,
5724
- image: authored.image,
5725
- objectFit: authored.objectFit,
5726
- scale: authored.scale,
5727
- position: authored.position,
5728
- ...lookScrim ? { overlay: lookScrim } : {}
5705
+ const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
5706
+ kind: z.literal("user-pinned"),
5707
+ value: z.string().min(1).transform(asAppearancePresetId)
5708
+ }).strict();
5709
+ const legacyBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
5710
+ z.object({ kind: z.literal("none") }).strict(),
5711
+ z.object({
5712
+ kind: z.literal("soft-fade"),
5713
+ height: z.enum([
5714
+ "compact",
5715
+ "medium",
5716
+ "large",
5717
+ "expansive"
5718
+ ]),
5719
+ curve: z.enum([
5720
+ "soft",
5721
+ "spacious",
5722
+ "expansive"
5723
+ ])
5724
+ }).strict(),
5725
+ z.object({
5726
+ kind: z.literal("wave-edge"),
5727
+ height: z.enum([
5728
+ "compact",
5729
+ "medium",
5730
+ "large"
5731
+ ]),
5732
+ amplitude: z.enum([
5733
+ "subtle",
5734
+ "balanced",
5735
+ "bold"
5736
+ ]),
5737
+ rhythm: z.enum(["single", "double"]),
5738
+ symmetry: z.enum([
5739
+ "symmetrical",
5740
+ "asymmetrical",
5741
+ "drift"
5742
+ ]),
5743
+ echo: z.literal(true).optional()
5744
+ }).strict(),
5745
+ z.object({
5746
+ kind: z.literal("arc-edge"),
5747
+ height: z.enum([
5748
+ "compact",
5749
+ "medium",
5750
+ "large"
5751
+ ]),
5752
+ echo: z.literal(true).optional(),
5753
+ bulge: z.literal(true).optional()
5754
+ }).strict(),
5755
+ z.object({
5756
+ kind: z.literal("angle-edge"),
5757
+ height: z.enum([
5758
+ "compact",
5759
+ "medium",
5760
+ "large"
5761
+ ]),
5762
+ slope: z.enum([
5763
+ "subtle",
5764
+ "balanced",
5765
+ "steep",
5766
+ "steady"
5767
+ ]),
5768
+ direction: z.enum(["forward", "reverse"])
5769
+ }).strict(),
5770
+ z.object({
5771
+ kind: z.literal("torn-edge"),
5772
+ height: z.enum(["compact"]),
5773
+ cut: z.enum(["holes"])
5774
+ }).strict()
5775
+ ]);
5776
+ /** The canonical pin, as the editor sends it; stored documents also admit the legacy shapes below. */
5777
+ const sectionBoundaryTreatmentSchema = z.object({
5778
+ family: z.enum([
5779
+ "none",
5780
+ "gradient",
5781
+ "wave",
5782
+ "arc",
5783
+ "angle",
5784
+ "torn",
5785
+ "ridge",
5786
+ "hand-drawn-wave"
5787
+ ]),
5788
+ variant: z.string().min(1).optional(),
5789
+ layers: z.union([
5790
+ z.literal(1),
5791
+ z.literal(2),
5792
+ z.literal(3)
5793
+ ]),
5794
+ colourPreset: z.enum([
5795
+ "fade",
5796
+ "blend",
5797
+ "accent",
5798
+ "main"
5799
+ ])
5800
+ }).strict();
5801
+ const pageDesignBoundaryTreatmentSchema = z.union([sectionBoundaryTreatmentSchema, legacyBoundaryTreatmentSchema.transform(convertLegacyEdgePin)]);
5802
+ const pageDesignUserPinnedBoundaryTreatmentChoiceSchema = z.object({
5803
+ kind: z.literal("user-pinned"),
5804
+ value: pageDesignBoundaryTreatmentSchema
5805
+ }).strict();
5806
+ const pageDesignBlockLookPinSchema = z.object({
5807
+ blockId: z.string().min(1).transform(asDesignBlockId),
5808
+ blockKind: z.string().min(1),
5809
+ choice: pageDesignUserPinnedAppearanceChoiceSchema
5810
+ }).strict();
5811
+ const pageDesignBoundaryPinSchema = z.object({
5812
+ boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
5813
+ previousBlockId: z.string().min(1).transform(asDesignBlockId),
5814
+ nextBlockId: z.string().min(1).transform(asDesignBlockId),
5815
+ choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
5816
+ }).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
5817
+ const pageDesignDecisionsV2Schema = z.object({
5818
+ schemaVersion: z.literal(2),
5819
+ pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
5820
+ blockLookPins: z.array(pageDesignBlockLookPinSchema),
5821
+ boundaryPins: z.array(pageDesignBoundaryPinSchema)
5822
+ }).strict().superRefine(validateUniquePageDesignPins);
5823
+ function addDuplicateStringIssues(ctx, input) {
5824
+ const seen = /* @__PURE__ */ new Set();
5825
+ const duplicates = /* @__PURE__ */ new Set();
5826
+ input.values.forEach((value) => {
5827
+ if (seen.has(value)) duplicates.add(value);
5828
+ seen.add(value);
5829
+ });
5830
+ duplicates.forEach((duplicate) => {
5831
+ ctx.addIssue({
5832
+ code: z.ZodIssueCode.custom,
5833
+ path: [...input.path],
5834
+ message: `Duplicate ${input.label}: ${duplicate}.`
5835
+ });
5729
5836
  });
5730
- return merged.success ? merged.data : authored;
5731
- }
5732
- function readRecord(value) {
5733
- return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
5734
- }
5735
- function heroPhotoIsContent(source, photo, hasArrangementGround) {
5736
- return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
5737
5837
  }
5738
- function isAuthoredMedia(source) {
5739
- return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
5838
+ function validateBoundaryPinIdMatchesBlocks(pin, ctx) {
5839
+ const expectedBoundaryId = makeBoundaryId(pin.previousBlockId, pin.nextBlockId);
5840
+ if (pin.boundaryId !== expectedBoundaryId) ctx.addIssue({
5841
+ code: z.ZodIssueCode.custom,
5842
+ path: ["boundaryId"],
5843
+ message: `Boundary id must match previousBlockId and nextBlockId. Expected ${expectedBoundaryId}.`
5844
+ });
5740
5845
  }
5741
- function rhythmBackground(background) {
5742
- return background ? {
5743
- kind: "rhythm",
5744
- background
5745
- } : { kind: "base" };
5846
+ function validateUniquePageDesignPins(intent, ctx) {
5847
+ addDuplicateStringIssues(ctx, {
5848
+ values: intent.blockLookPins.map((pin) => pin.blockId),
5849
+ path: ["blockLookPins"],
5850
+ label: "block Look pin"
5851
+ });
5852
+ addDuplicateStringIssues(ctx, {
5853
+ values: intent.boundaryPins.map((pin) => makeBoundaryId(pin.previousBlockId, pin.nextBlockId)),
5854
+ path: ["boundaryPins"],
5855
+ label: "boundary pin"
5856
+ });
5746
5857
  }
5747
- /**
5748
- * Semantic section grounds: background/base -> light; muted/surface bands ->
5749
- * band; primary/secondary/accent (including pop) -> brand; text/inverse and
5750
- * numbered deep shades -> deep. Media and gradients use the existing resolved
5751
- * scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
5752
- * over a light veil -> light. Unclassified/no veil defaults to light.
5753
- * Background ownership (override, authored, Look or rhythm) never changes tone.
5754
- */
5755
- const solidGrounds = {
5756
- background: "light",
5757
- muted: "band",
5758
- surface: "band",
5759
- surfaceAlt: "band",
5760
- primary: "brand",
5761
- secondary: "brand",
5762
- accent: "brand",
5763
- text: "deep"
5764
- };
5765
- function deriveSectionGround(resolved, palette) {
5766
- if (resolved.kind === "base") return "light";
5767
- const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
5768
- const solid = solidSectionGround(background);
5769
- if (solid) return solid;
5770
- return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
5771
- }
5772
- /** Content media sits beside the text, so its slots sit on the colour ground, as deriveSectionGround reads it. */
5773
- function sectionSurfaceBase(resolved, palette) {
5774
- if (resolved.kind === "base") return {
5775
- kind: "measured",
5776
- token: "background"
5858
+ //#endregion
5859
+ //#region ../theme-core/src/site-styles/schemaVersionedJson.ts
5860
+ function parseSchemaVersionedJson(input) {
5861
+ if (input.value == null) return { kind: "absent" };
5862
+ if (typeof input.value === "object" && input.value !== null && "schemaVersion" in input.value && input.value.schemaVersion !== input.expectedSchemaVersion) return {
5863
+ kind: "invalid",
5864
+ issue: {
5865
+ kind: "unsupported-schema-version",
5866
+ message: input.unsupportedSchemaVersionMessage
5867
+ }
5777
5868
  };
5778
- const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
5779
- switch (background.type) {
5780
- case "image":
5781
- case "video": return {
5782
- kind: "unmeasured",
5783
- paint: "media"
5784
- };
5785
- case "gradient": return {
5786
- kind: "unmeasured",
5787
- paint: "gradient"
5788
- };
5789
- case "color": {
5790
- const colour = background.color ?? "background";
5791
- return resolveConcreteColorHex(colour, palette) ? {
5792
- kind: "measured",
5793
- token: colour
5794
- } : {
5795
- kind: "unmeasured",
5796
- paint: "colour"
5797
- };
5869
+ const parsed = z.safeParse(input.schema, input.value);
5870
+ if (!parsed.success) return {
5871
+ kind: "invalid",
5872
+ issue: {
5873
+ kind: "invalid-json-shape",
5874
+ message: parsed.error.issues[0]?.message ?? input.invalidShapeMessage
5798
5875
  }
5799
- }
5800
- }
5801
- function solidSectionGround(background) {
5802
- if (background.type !== "color") return null;
5803
- return solidTokenGround(background.color ?? "background");
5804
- }
5805
- /** Shared classification for section backgrounds and resolved parent surfaces. */
5806
- function solidTokenGround(color) {
5807
- return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
5808
- }
5809
- function sectionForegroundTone(resolved, palette) {
5810
- const foreground = resolveSectionForeground(resolved, palette);
5811
- return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
5812
- }
5813
- function sectionVeil(background) {
5814
- switch (background.type) {
5815
- case "color": return null;
5816
- case "image":
5817
- case "video": return background.overlay;
5818
- case "gradient": return {
5819
- type: "gradient",
5820
- gradient: background.gradient,
5821
- opacity: 1
5822
- };
5823
- }
5824
- }
5825
- function sectionScrimSamples(background, palette) {
5826
- const overlay = sectionVeil(background);
5827
- if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
5828
- if (overlay?.type !== "color") return [];
5829
- const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
5830
- return hex ? [{
5831
- hex,
5832
- alpha: overlay.opacity ?? 1
5833
- }] : [];
5876
+ };
5877
+ return {
5878
+ kind: "parsed",
5879
+ value: parsed.data
5880
+ };
5834
5881
  }
5835
5882
  //#endregion
5836
5883
  //#region ../theme-core/src/site-styles/transitionCatalogue.ts
@@ -5858,6 +5905,14 @@ const transitionCatalogueFamilies = [
5858
5905
  {
5859
5906
  id: "torn",
5860
5907
  label: "Torn edge"
5908
+ },
5909
+ {
5910
+ id: "ridge",
5911
+ label: "Ridge"
5912
+ },
5913
+ {
5914
+ id: "hand-drawn-wave",
5915
+ label: "Hand-drawn wave"
5861
5916
  }
5862
5917
  ];
5863
5918
  const mediumHeight = "6rem + 2px";
@@ -5882,9 +5937,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5882
5937
  label: "Soft",
5883
5938
  variantLabel: "Soft",
5884
5939
  treatment: {
5885
- kind: "soft-fade",
5886
- height: "medium",
5887
- curve: "soft"
5940
+ family: "gradient",
5941
+ variant: "soft",
5942
+ layers: 1,
5943
+ colourPreset: "fade"
5888
5944
  },
5889
5945
  size: "medium",
5890
5946
  heightExpression: mediumHeight,
@@ -5898,9 +5954,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5898
5954
  label: "Spacious",
5899
5955
  variantLabel: "Spacious",
5900
5956
  treatment: {
5901
- kind: "soft-fade",
5902
- height: "large",
5903
- curve: "spacious"
5957
+ family: "gradient",
5958
+ variant: "spacious",
5959
+ layers: 1,
5960
+ colourPreset: "fade"
5904
5961
  },
5905
5962
  size: "spacious",
5906
5963
  heightExpression: "10rem",
@@ -5914,9 +5971,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5914
5971
  label: "Expansive",
5915
5972
  variantLabel: "Expansive",
5916
5973
  treatment: {
5917
- kind: "soft-fade",
5918
- height: "expansive",
5919
- curve: "expansive"
5974
+ family: "gradient",
5975
+ variant: "expansive",
5976
+ layers: 1,
5977
+ colourPreset: "fade"
5920
5978
  },
5921
5979
  size: "expansive",
5922
5980
  heightExpression: "14rem",
@@ -5930,11 +5988,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5930
5988
  label: "Balanced wave",
5931
5989
  variantLabel: "Balanced",
5932
5990
  treatment: {
5933
- kind: "wave-edge",
5934
- height: "medium",
5935
- amplitude: "balanced",
5936
- rhythm: "double",
5937
- symmetry: "symmetrical"
5991
+ family: "wave",
5992
+ variant: "balanced",
5993
+ layers: 1,
5994
+ colourPreset: "fade"
5938
5995
  },
5939
5996
  size: "medium",
5940
5997
  heightExpression: mediumHeight,
@@ -5951,11 +6008,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5951
6008
  label: "Classic wave",
5952
6009
  variantLabel: "Classic",
5953
6010
  treatment: {
5954
- kind: "wave-edge",
5955
- height: "medium",
5956
- amplitude: "balanced",
5957
- rhythm: "double",
5958
- symmetry: "asymmetrical"
6011
+ family: "wave",
6012
+ variant: "classic",
6013
+ layers: 1,
6014
+ colourPreset: "fade"
5959
6015
  },
5960
6016
  size: "medium",
5961
6017
  heightExpression: mediumHeight,
@@ -5972,12 +6028,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5972
6028
  label: "Wave with echo",
5973
6029
  variantLabel: "With echo",
5974
6030
  treatment: {
5975
- kind: "wave-edge",
5976
- height: "compact",
5977
- amplitude: "subtle",
5978
- rhythm: "double",
5979
- symmetry: "symmetrical",
5980
- echo: true
6031
+ family: "wave",
6032
+ variant: "echo",
6033
+ layers: 2,
6034
+ colourPreset: "fade"
5981
6035
  },
5982
6036
  size: "compact",
5983
6037
  heightExpression: compactHeight,
@@ -5995,11 +6049,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
5995
6049
  label: "Gentle wave",
5996
6050
  variantLabel: "Gentle",
5997
6051
  treatment: {
5998
- kind: "wave-edge",
5999
- height: "compact",
6000
- amplitude: "subtle",
6001
- rhythm: "single",
6002
- symmetry: "symmetrical"
6052
+ family: "wave",
6053
+ variant: "gentle",
6054
+ layers: 1,
6055
+ colourPreset: "fade"
6003
6056
  },
6004
6057
  size: "compact",
6005
6058
  heightExpression: compactHeight,
@@ -6016,11 +6069,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6016
6069
  label: "Bold wave",
6017
6070
  variantLabel: "Bold",
6018
6071
  treatment: {
6019
- kind: "wave-edge",
6020
- height: "large",
6021
- amplitude: "bold",
6022
- rhythm: "double",
6023
- symmetry: "symmetrical"
6072
+ family: "wave",
6073
+ variant: "bold",
6074
+ layers: 1,
6075
+ colourPreset: "fade"
6024
6076
  },
6025
6077
  size: "large",
6026
6078
  heightExpression: largeHeight,
@@ -6037,11 +6089,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6037
6089
  label: "Drift wave",
6038
6090
  variantLabel: "Drift",
6039
6091
  treatment: {
6040
- kind: "wave-edge",
6041
- height: "medium",
6042
- amplitude: "balanced",
6043
- rhythm: "double",
6044
- symmetry: "drift"
6092
+ family: "wave",
6093
+ variant: "drift",
6094
+ layers: 1,
6095
+ colourPreset: "fade"
6045
6096
  },
6046
6097
  size: "medium",
6047
6098
  heightExpression: mediumHeight,
@@ -6058,9 +6109,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6058
6109
  label: "Arc with echo",
6059
6110
  variantLabel: "With echo",
6060
6111
  treatment: {
6061
- kind: "arc-edge",
6062
- height: "large",
6063
- echo: true
6112
+ family: "arc",
6113
+ variant: "echo",
6114
+ layers: 1,
6115
+ colourPreset: "fade"
6064
6116
  },
6065
6117
  size: "large",
6066
6118
  heightExpression: arcHeight,
@@ -6077,9 +6129,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6077
6129
  label: "Arc bulging down",
6078
6130
  variantLabel: "Bulging down",
6079
6131
  treatment: {
6080
- kind: "arc-edge",
6081
- height: "large",
6082
- bulge: true
6132
+ family: "arc",
6133
+ variant: "bulge",
6134
+ layers: 1,
6135
+ colourPreset: "fade"
6083
6136
  },
6084
6137
  size: "large",
6085
6138
  heightExpression: arcHeight,
@@ -6096,10 +6149,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6096
6149
  label: "Subtle angle",
6097
6150
  variantLabel: "Subtle",
6098
6151
  treatment: {
6099
- kind: "angle-edge",
6100
- height: "compact",
6101
- slope: "subtle",
6102
- direction: "forward"
6152
+ family: "angle",
6153
+ variant: "subtle",
6154
+ layers: 1,
6155
+ colourPreset: "fade"
6103
6156
  },
6104
6157
  size: "compact",
6105
6158
  heightExpression: compactHeight,
@@ -6119,10 +6172,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6119
6172
  label: "Balanced angle",
6120
6173
  variantLabel: "Balanced",
6121
6174
  treatment: {
6122
- kind: "angle-edge",
6123
- height: "medium",
6124
- slope: "balanced",
6125
- direction: "forward"
6175
+ family: "angle",
6176
+ variant: "balanced",
6177
+ layers: 1,
6178
+ colourPreset: "fade"
6126
6179
  },
6127
6180
  size: "medium",
6128
6181
  heightExpression: mediumHeight,
@@ -6142,10 +6195,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6142
6195
  label: "Steep angle",
6143
6196
  variantLabel: "Steep",
6144
6197
  treatment: {
6145
- kind: "angle-edge",
6146
- height: "large",
6147
- slope: "steep",
6148
- direction: "forward"
6198
+ family: "angle",
6199
+ variant: "steep",
6200
+ layers: 1,
6201
+ colourPreset: "fade"
6149
6202
  },
6150
6203
  size: "large",
6151
6204
  heightExpression: largeHeight,
@@ -6165,10 +6218,10 @@ const transitionCatalogueEntries = defineExactCatalog()([
6165
6218
  label: "Angle that keeps its slope",
6166
6219
  variantLabel: "Keeps its slope",
6167
6220
  treatment: {
6168
- kind: "angle-edge",
6169
- height: "large",
6170
- slope: "steady",
6171
- direction: "forward"
6221
+ family: "angle",
6222
+ variant: "steady",
6223
+ layers: 1,
6224
+ colourPreset: "fade"
6172
6225
  },
6173
6226
  size: "large",
6174
6227
  heightExpression: "7cqi",
@@ -6181,566 +6234,185 @@ const transitionCatalogueEntries = defineExactCatalog()([
6181
6234
  }
6182
6235
  },
6183
6236
  {
6184
- intent: "torn-edge-holes",
6185
- optionId: asBoundaryOptionId("break:torn-holes"),
6186
- family: "torn",
6187
- variantId: "holes",
6188
- label: "Torn along a row of holes",
6189
- variantLabel: "Along a row of holes",
6190
- treatment: {
6191
- kind: "torn-edge",
6192
- height: "compact",
6193
- cut: "holes"
6194
- },
6195
- size: "compact",
6196
- heightExpression: "8px",
6197
- shape: {
6198
- kind: "torn",
6199
- pitchPx: 22,
6200
- holeRadiusPx: 7.5
6201
- }
6202
- }
6203
- ]);
6204
- /** CSS `clip-path` value for an angle shape, as `generateLayoutCss` draws it. */
6205
- function anglePolygonCss(polygon) {
6206
- return `polygon(0 ${polygon.startTopPercent}%, 100% ${polygon.endTopPercent}%, 100% 100%, 0 100%)`;
6207
- }
6208
- //#endregion
6209
- //#region ../theme-core/src/site-styles/sectionTransitions.ts
6210
- function boundaryRuntimeMetrics(family, size, heightExpression) {
6211
- return {
6212
- family,
6213
- size,
6214
- heightCss: heightExpression.includes(" ") ? `calc(${heightExpression})` : heightExpression,
6215
- reserveCss: `calc((${heightExpression}) / 2)`
6216
- };
6217
- }
6218
- new Map(transitionCatalogueEntries.map((entry) => [entry.intent, entry]));
6219
- const metricsByIntent = new Map(transitionCatalogueEntries.map((entry) => [entry.intent, boundaryRuntimeMetrics(entry.family, entry.size, entry.heightExpression)]));
6220
- /**
6221
- * The catalogue's compile-time coverage check guarantees an entry per
6222
- * decorative intent, so a miss here is a broken invariant, not bad input.
6223
- */
6224
- function requireCatalogueValue(values, intent) {
6225
- const value = values.get(intent);
6226
- if (value === void 0) throw new Error(`Transition catalogue has no entry for ${intent}`);
6227
- return value;
6228
- }
6229
- function isDecorativeTransitionIntent(transition) {
6230
- return transition !== "none";
6231
- }
6232
- function boundaryRuntimeMetricsForDecorativeTransition(transition) {
6233
- return requireCatalogueValue(metricsByIntent, transition);
6234
- }
6235
- const noneBoundaryOption = {
6236
- id: asBoundaryOptionId("break:none"),
6237
- label: "None",
6238
- transitionAfter: "none",
6239
- treatment: { kind: "none" }
6240
- };
6241
- const boundaryOptionByIntent = new Map(transitionCatalogueEntries.map((entry) => [entry.intent, {
6242
- id: entry.optionId,
6243
- label: entry.label,
6244
- transitionAfter: entry.intent,
6245
- treatment: entry.treatment
6246
- }]));
6247
- function boundaryOptionForTransitionIntent(intent) {
6248
- return requireCatalogueValue(boundaryOptionByIntent, intent);
6249
- }
6250
- const softBoundaryOption = boundaryOptionForTransitionIntent("soft-fade-short");
6251
- const spaciousBoundaryOption = boundaryOptionForTransitionIntent("soft-fade-long");
6252
- boundaryOptionForTransitionIntent("soft-fade-expansive");
6253
- boundaryOptionForTransitionIntent("wave-edge");
6254
- boundaryOptionForTransitionIntent("wave-edge-balanced");
6255
- boundaryOptionForTransitionIntent("wave-edge-gentle");
6256
- boundaryOptionForTransitionIntent("wave-edge-bold");
6257
- boundaryOptionForTransitionIntent("wave-edge-drift");
6258
- boundaryOptionForTransitionIntent("angle-edge-subtle");
6259
- boundaryOptionForTransitionIntent("angle-edge");
6260
- boundaryOptionForTransitionIntent("angle-edge-steep");
6261
- /**
6262
- * Must remain non-empty; downstream code indexes `[0]` as the documented default.
6263
- */
6264
- const boundaryOptions = [noneBoundaryOption, ...transitionCatalogueEntries.map((entry) => boundaryOptionForTransitionIntent(entry.intent))];
6265
- const noneTransitionVariant = {
6266
- familyId: "none",
6267
- variantId: "none",
6268
- label: "None",
6269
- boundaryOption: noneBoundaryOption
6270
- };
6271
- function transitionVariantForEntry(entry) {
6272
- return {
6273
- familyId: entry.family,
6274
- variantId: entry.variantId,
6275
- label: entry.variantLabel,
6276
- boundaryOption: boundaryOptionForTransitionIntent(entry.intent)
6277
- };
6278
- }
6279
- const sectionTransitionFamilies = [{
6280
- id: "none",
6281
- label: "None",
6282
- variants: [noneTransitionVariant]
6283
- }, ...transitionCatalogueFamilies.map((family) => ({
6284
- id: family.id,
6285
- label: family.label,
6286
- variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
6287
- }))];
6288
- const boundaryOptionById = new Map(boundaryOptions.map((option) => [option.id, option]));
6289
- const boundaryOptionByTreatmentKey = new Map(boundaryOptions.map((option) => [stableTreatmentKey(option.treatment), option]));
6290
- new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
6291
- new Map(sectionTransitionFamilies.map((family) => [family.id, family]));
6292
- /** Unknown IDs are refused at the lookup boundary and never become stored treatments. */
6293
- function boundaryTreatmentForBoundaryOptionId(boundaryOptionId) {
6294
- return boundaryOptionById.get(boundaryOptionId)?.treatment ?? null;
6295
- }
6296
- function boundaryOptionForTreatment(treatment) {
6297
- return boundaryOptionByTreatmentKey.get(stableTreatmentKey(treatment)) ?? null;
6298
- }
6299
- /**
6300
- * Supported decorative intent for a structured treatment, or null for `none`,
6301
- * structured treatments the catalogue lacks.
6302
- */
6303
- function transitionIntentForTreatment(treatment) {
6304
- const transition = boundaryOptionForTreatment(treatment)?.transitionAfter;
6305
- return transition && isDecorativeTransitionIntent(transition) ? transition : null;
6306
- }
6307
- function stableTreatmentKey(treatment) {
6308
- switch (treatment.kind) {
6309
- case "none": return "none";
6310
- case "soft-fade": return `${treatment.kind}:${treatment.height}:${treatment.curve}`;
6311
- case "wave-edge": return [
6312
- treatment.kind,
6313
- treatment.height,
6314
- treatment.amplitude,
6315
- treatment.rhythm,
6316
- treatment.symmetry,
6317
- ...treatment.echo ? ["echo"] : []
6318
- ].join(":");
6319
- case "arc-edge": return [
6320
- treatment.kind,
6321
- treatment.height,
6322
- ...treatment.echo ? ["echo"] : [],
6323
- ...treatment.bulge ? ["bulge"] : []
6324
- ].join(":");
6325
- case "torn-edge": return [
6326
- treatment.kind,
6327
- treatment.height,
6328
- treatment.cut
6329
- ].join(":");
6330
- case "angle-edge": return [
6331
- treatment.kind,
6332
- treatment.height,
6333
- treatment.slope,
6334
- treatment.direction
6335
- ].join(":");
6336
- }
6337
- }
6338
- //#endregion
6339
- //#region ../theme-core/src/site-styles/sectionShape.ts
6340
- /** The palette tokens whose sections draw as fields: a lookup derived from the declarations. */
6341
- function fieldGroundTokens(surfaces) {
6342
- return Object.values(surfaces).flatMap((surface) => surface.kind === "token" && surface.sectionShape === "field" ? [surface.token] : []);
6343
- }
6344
- /** The one shape decision for a section, from its resolved ground token. */
6345
- function sectionShapeForGround(fieldGrounds, groundToken) {
6346
- return fieldGrounds.includes(groundToken) ? "field" : "edge-to-edge";
6347
- }
6348
- /**
6349
- * A field surface must own its token: a section painted with a token both a
6350
- * field and an edge-to-edge surface declare could not say which it is.
6351
- */
6352
- function validateSectionSurfaces(skin, surfaces) {
6353
- const fields = fieldGroundTokens(surfaces);
6354
- Object.entries(surfaces).forEach(([name, surface]) => {
6355
- if (surface.kind === "token" && surface.sectionShape !== "field" && fields.includes(surface.token)) throw new Error(`Ambiguous section shape for ${skin}: ${name} shares ${surface.token} with a field surface`);
6356
- });
6357
- }
6358
- /** The section hook carrying a field; absent for edge-to-edge sections, so their markup is unchanged. */
6359
- function sectionShapeHook(shape) {
6360
- return shape === "field" ? { "data-shape": "field" } : {};
6361
- }
6362
- /** Reads the decided shape back from final render content; anything else is edge to edge. */
6363
- function sectionShapeFromContent(content) {
6364
- const hooks = content._lookHooks;
6365
- return typeof hooks === "object" && hooks !== null && "data-shape" in hooks && hooks["data-shape"] === "field" ? "field" : "edge-to-edge";
6366
- }
6367
- /** The booking bar paints with a declared token surface; anything else is a catalogue mistake. */
6368
- function validateBookingBarSurface(skin, bookingBar, surfaces) {
6369
- if (bookingBar === void 0) return;
6370
- if (surfaces[bookingBar.surface]?.kind !== "token") throw new Error(`Booking bar for ${skin} needs a declared token surface: ${bookingBar.surface}`);
6371
- }
6372
- //#endregion
6373
- //#region ../theme-core/src/gradients/presets.ts
6374
- /**
6375
- * Curated gradient presets based on theme palette
6376
- */
6377
- const gradientPresetData = {
6378
- "primary-secondary": {
6379
- name: "Primary to Secondary",
6380
- description: "Blend your primary and secondary brand colors",
6381
- type: "linear",
6382
- angle: 135,
6383
- stops: [{
6384
- color: "primary-500",
6385
- position: 0
6386
- }, {
6387
- color: "secondary-500",
6388
- position: 100
6389
- }]
6390
- },
6391
- "primary-accent": {
6392
- name: "Primary to Accent",
6393
- description: "Energetic gradient from primary to accent",
6394
- type: "linear",
6395
- angle: 135,
6396
- stops: [{
6397
- color: "primary-500",
6398
- position: 0
6399
- }, {
6400
- color: "accent-500",
6401
- position: 100
6402
- }]
6403
- },
6404
- "secondary-accent": {
6405
- name: "Secondary to Accent",
6406
- description: "Vibrant secondary to accent blend",
6407
- type: "linear",
6408
- angle: 135,
6409
- stops: [{
6410
- color: "secondary-500",
6411
- position: 0
6412
- }, {
6413
- color: "accent-500",
6414
- position: 100
6415
- }]
6416
- },
6417
- "primary-light-dark": {
6418
- name: "Primary Light to Dark",
6419
- description: "Subtle primary color fade",
6420
- type: "linear",
6421
- angle: 180,
6422
- stops: [{
6423
- color: "primary-500",
6424
- position: 0
6425
- }, {
6426
- color: "primary-900",
6427
- position: 100
6428
- }]
6429
- },
6430
- "primary-dark-light": {
6431
- name: "Primary Dark to Light",
6432
- description: "Reverse primary fade",
6433
- type: "linear",
6434
- angle: 180,
6435
- stops: [{
6436
- color: "primary-900",
6437
- position: 0
6438
- }, {
6439
- color: "primary-50",
6440
- position: 100
6441
- }]
6442
- },
6443
- "secondary-light-dark": {
6444
- name: "Secondary Light to Dark",
6445
- description: "Subtle secondary color fade",
6446
- type: "linear",
6447
- angle: 180,
6448
- stops: [{
6449
- color: "secondary-500",
6450
- position: 0
6451
- }, {
6452
- color: "secondary-900",
6453
- position: 100
6454
- }]
6455
- },
6456
- "accent-light-dark": {
6457
- name: "Accent Light to Dark",
6458
- description: "Accent color depth fade",
6459
- type: "linear",
6460
- angle: 180,
6461
- stops: [{
6462
- color: "accent-500",
6463
- position: 0
6464
- }, {
6465
- color: "accent-900",
6466
- position: 100
6467
- }]
6468
- },
6469
- "background-surface": {
6470
- name: "Background to Surface",
6471
- description: "Subtle depth using base colors",
6472
- type: "linear",
6473
- angle: 180,
6474
- stops: [{
6475
- color: "background",
6476
- position: 0
6477
- }, {
6478
- color: "surface",
6479
- position: 100
6480
- }]
6481
- },
6482
- "neutral-fade": {
6483
- name: "Neutral Gradient",
6484
- description: "Elegant neutral color fade",
6485
- type: "linear",
6486
- angle: 180,
6487
- stops: [{
6488
- color: "neutral-900",
6489
- position: 0
6490
- }, {
6491
- color: "neutral-50",
6492
- position: 100
6493
- }]
6494
- },
6495
- "primary-glow": {
6496
- name: "Primary glow",
6497
- description: "A soft top-centred glow using your primary palette",
6498
- type: "radial",
6499
- shape: "ellipse",
6500
- position: "top center",
6501
- stops: [{
6502
- color: "primary-900",
6503
- position: 0
6504
- }, {
6505
- color: "primary-950",
6506
- position: 100
6507
- }],
6508
- foreground: {
6509
- textColor: "onPrimary900",
6510
- headingColor: "onPrimary900",
6511
- linkColor: "onPrimary900",
6512
- supportingColor: "onPrimary900"
6237
+ intent: "torn-edge-holes",
6238
+ optionId: asBoundaryOptionId("break:torn-holes"),
6239
+ family: "torn",
6240
+ variantId: "holes",
6241
+ label: "Torn along a row of holes",
6242
+ variantLabel: "Along a row of holes",
6243
+ treatment: {
6244
+ family: "torn",
6245
+ variant: "holes",
6246
+ layers: 1,
6247
+ colourPreset: "fade"
6248
+ },
6249
+ size: "compact",
6250
+ heightExpression: "8px",
6251
+ shape: {
6252
+ kind: "torn",
6253
+ pitchPx: 22,
6254
+ holeRadiusPx: 7.5
6513
6255
  }
6514
6256
  },
6515
- "accent-glow": {
6516
- name: "Accent glow",
6517
- description: "A soft top-centred glow using your accent palette",
6518
- type: "radial",
6519
- shape: "ellipse",
6520
- position: "top center",
6521
- stops: [{
6522
- color: "accent-900",
6523
- position: 0
6524
- }, {
6525
- color: "accent-950",
6526
- position: 100
6527
- }],
6528
- foreground: {
6529
- textColor: "onAccent900",
6530
- headingColor: "onAccent900",
6531
- linkColor: "onAccent900",
6532
- supportingColor: "onAccent900"
6533
- }
6257
+ {
6258
+ intent: "ridge-edge",
6259
+ optionId: asBoundaryOptionId("break:ridge"),
6260
+ family: "ridge",
6261
+ variantId: "standard",
6262
+ label: "Ridge",
6263
+ variantLabel: "Standard",
6264
+ treatment: {
6265
+ family: "ridge",
6266
+ variant: "standard",
6267
+ layers: 2,
6268
+ colourPreset: "fade"
6269
+ },
6270
+ size: "medium",
6271
+ heightExpression: mediumHeight,
6272
+ shape: { kind: "generated" }
6534
6273
  },
6535
- "primary-secondary-accent": {
6536
- name: "Brand Trio",
6537
- description: "All three brand colors in harmony",
6538
- type: "linear",
6539
- angle: 135,
6540
- stops: [
6541
- {
6542
- color: "primary-500",
6543
- position: 0
6544
- },
6545
- {
6546
- color: "secondary-500",
6547
- position: 50
6548
- },
6549
- {
6550
- color: "accent-500",
6551
- position: 100
6552
- }
6553
- ]
6274
+ {
6275
+ intent: "hand-drawn-wave-edge",
6276
+ optionId: asBoundaryOptionId("break:hand-drawn-wave"),
6277
+ family: "hand-drawn-wave",
6278
+ variantId: "standard",
6279
+ label: "Hand-drawn wave",
6280
+ variantLabel: "Standard",
6281
+ treatment: {
6282
+ family: "hand-drawn-wave",
6283
+ variant: "standard",
6284
+ layers: 2,
6285
+ colourPreset: "fade"
6286
+ },
6287
+ size: "medium",
6288
+ heightExpression: mediumHeight,
6289
+ shape: { kind: "generated" }
6554
6290
  }
6555
- };
6556
- const presetData = (id) => gradientPresetData[id];
6557
- /**
6558
- * Curated library of gradient presets.
6559
- * All gradients use theme color tokens, so they adapt to the site's palette.
6560
- */
6561
- const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
6562
- id,
6563
- ...presetData(id)
6564
- }));
6565
- const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
6566
- function getGradientPreset(id) {
6567
- return gradientPresetById[id];
6291
+ ]);
6292
+ /** CSS `clip-path` value for an angle shape, as `generateLayoutCss` draws it. */
6293
+ function anglePolygonCss(polygon) {
6294
+ return `polygon(0 ${polygon.startTopPercent}%, 100% ${polygon.endTopPercent}%, 100% 100%, 0 100%)`;
6568
6295
  }
6569
6296
  //#endregion
6570
- //#region ../theme-core/src/gradients/utils.ts
6297
+ //#region ../theme-core/src/site-styles/sectionTransitions.ts
6298
+ function boundaryRuntimeMetrics(family, size, heightExpression) {
6299
+ return {
6300
+ family,
6301
+ size,
6302
+ heightCss: heightExpression.includes(" ") ? `calc(${heightExpression})` : heightExpression,
6303
+ reserveCss: `calc((${heightExpression}) / 2)`
6304
+ };
6305
+ }
6306
+ const catalogueEntryByIntent = new Map(transitionCatalogueEntries.map((entry) => [entry.intent, entry]));
6307
+ const metricsByIntent = new Map(transitionCatalogueEntries.map((entry) => [entry.intent, boundaryRuntimeMetrics(entry.family, entry.size, entry.heightExpression)]));
6571
6308
  /**
6572
- * Convert a GradientConfig to a CSS gradient string
6573
- *
6574
- * @param config - The gradient configuration using theme tokens
6575
- * @param tokens - Map of theme color tokens to hex values
6576
- * @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
6309
+ * The catalogue's compile-time coverage check guarantees an entry per
6310
+ * decorative intent, so a miss here is a broken invariant, not bad input.
6577
6311
  */
6578
- function gradientToCss(config, tokens) {
6579
- const stops = config.stops.map((stop) => {
6580
- return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
6581
- }).join(", ");
6582
- const type = config.type ?? "linear";
6583
- if (type === "radial") {
6584
- const position = config.position ?? "center";
6585
- return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
6586
- }
6587
- if (type === "conic") {
6588
- const position = config.position ?? "center";
6589
- return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
6590
- }
6591
- return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
6312
+ function requireCatalogueValue(values, intent) {
6313
+ const value = values.get(intent);
6314
+ if (value === void 0) throw new Error(`Transition catalogue has no entry for ${intent}`);
6315
+ return value;
6592
6316
  }
6593
- const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
6594
- kind: z.literal("user-pinned"),
6595
- value: z.string().min(1).transform(asAppearancePresetId)
6596
- }).strict();
6597
- const pageDesignBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
6598
- z.object({ kind: z.literal("none") }).strict(),
6599
- z.object({
6600
- kind: z.literal("soft-fade"),
6601
- height: z.enum([
6602
- "compact",
6603
- "medium",
6604
- "large",
6605
- "expansive"
6606
- ]),
6607
- curve: z.enum([
6608
- "soft",
6609
- "spacious",
6610
- "expansive"
6611
- ])
6612
- }).strict(),
6613
- z.object({
6614
- kind: z.literal("wave-edge"),
6615
- height: z.enum([
6616
- "compact",
6617
- "medium",
6618
- "large"
6619
- ]),
6620
- amplitude: z.enum([
6621
- "subtle",
6622
- "balanced",
6623
- "bold"
6624
- ]),
6625
- rhythm: z.enum(["single", "double"]),
6626
- symmetry: z.enum([
6627
- "symmetrical",
6628
- "asymmetrical",
6629
- "drift"
6630
- ]),
6631
- echo: z.literal(true).optional()
6632
- }).strict(),
6633
- z.object({
6634
- kind: z.literal("arc-edge"),
6635
- height: z.enum([
6636
- "compact",
6637
- "medium",
6638
- "large"
6639
- ]),
6640
- echo: z.literal(true).optional(),
6641
- bulge: z.literal(true).optional()
6642
- }).strict(),
6643
- z.object({
6644
- kind: z.literal("angle-edge"),
6645
- height: z.enum([
6646
- "compact",
6647
- "medium",
6648
- "large"
6649
- ]),
6650
- slope: z.enum([
6651
- "subtle",
6652
- "balanced",
6653
- "steep",
6654
- "steady"
6655
- ]),
6656
- direction: z.enum(["forward", "reverse"])
6657
- }).strict(),
6658
- z.object({
6659
- kind: z.literal("torn-edge"),
6660
- height: z.enum(["compact"]),
6661
- cut: z.enum(["holes"])
6662
- }).strict()
6663
- ]);
6664
- const pageDesignUserPinnedBoundaryTreatmentChoiceSchema = z.object({
6665
- kind: z.literal("user-pinned"),
6666
- value: pageDesignBoundaryTreatmentSchema
6667
- }).strict();
6668
- const pageDesignBlockLookPinSchema = z.object({
6669
- blockId: z.string().min(1).transform(asDesignBlockId),
6670
- blockKind: z.string().min(1),
6671
- choice: pageDesignUserPinnedAppearanceChoiceSchema
6672
- }).strict();
6673
- const pageDesignBoundaryPinSchema = z.object({
6674
- boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
6675
- previousBlockId: z.string().min(1).transform(asDesignBlockId),
6676
- nextBlockId: z.string().min(1).transform(asDesignBlockId),
6677
- choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
6678
- }).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
6679
- const pageDesignDecisionsV2Schema = z.object({
6680
- schemaVersion: z.literal(2),
6681
- pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
6682
- blockLookPins: z.array(pageDesignBlockLookPinSchema),
6683
- boundaryPins: z.array(pageDesignBoundaryPinSchema)
6684
- }).strict().superRefine(validateUniquePageDesignPins);
6685
- function addDuplicateStringIssues(ctx, input) {
6686
- const seen = /* @__PURE__ */ new Set();
6687
- const duplicates = /* @__PURE__ */ new Set();
6688
- input.values.forEach((value) => {
6689
- if (seen.has(value)) duplicates.add(value);
6690
- seen.add(value);
6691
- });
6692
- duplicates.forEach((duplicate) => {
6693
- ctx.addIssue({
6694
- code: z.ZodIssueCode.custom,
6695
- path: [...input.path],
6696
- message: `Duplicate ${input.label}: ${duplicate}.`
6697
- });
6698
- });
6317
+ function transitionCatalogueEntryForIntent(intent) {
6318
+ return requireCatalogueValue(catalogueEntryByIntent, intent);
6699
6319
  }
6700
- function validateBoundaryPinIdMatchesBlocks(pin, ctx) {
6701
- const expectedBoundaryId = makeBoundaryId(pin.previousBlockId, pin.nextBlockId);
6702
- if (pin.boundaryId !== expectedBoundaryId) ctx.addIssue({
6703
- code: z.ZodIssueCode.custom,
6704
- path: ["boundaryId"],
6705
- message: `Boundary id must match previousBlockId and nextBlockId. Expected ${expectedBoundaryId}.`
6706
- });
6320
+ function isDecorativeTransitionIntent(transition) {
6321
+ return transition !== "none";
6707
6322
  }
6708
- function validateUniquePageDesignPins(intent, ctx) {
6709
- addDuplicateStringIssues(ctx, {
6710
- values: intent.blockLookPins.map((pin) => pin.blockId),
6711
- path: ["blockLookPins"],
6712
- label: "block Look pin"
6713
- });
6714
- addDuplicateStringIssues(ctx, {
6715
- values: intent.boundaryPins.map((pin) => makeBoundaryId(pin.previousBlockId, pin.nextBlockId)),
6716
- path: ["boundaryPins"],
6717
- label: "boundary pin"
6718
- });
6323
+ function boundaryRuntimeMetricsForDecorativeTransition(transition) {
6324
+ return requireCatalogueValue(metricsByIntent, transition);
6719
6325
  }
6720
- //#endregion
6721
- //#region ../theme-core/src/site-styles/schemaVersionedJson.ts
6722
- function parseSchemaVersionedJson(input) {
6723
- if (input.value == null) return { kind: "absent" };
6724
- if (typeof input.value === "object" && input.value !== null && "schemaVersion" in input.value && input.value.schemaVersion !== input.expectedSchemaVersion) return {
6725
- kind: "invalid",
6726
- issue: {
6727
- kind: "unsupported-schema-version",
6728
- message: input.unsupportedSchemaVersionMessage
6729
- }
6730
- };
6731
- const parsed = z.safeParse(input.schema, input.value);
6732
- if (!parsed.success) return {
6733
- kind: "invalid",
6734
- issue: {
6735
- kind: "invalid-json-shape",
6736
- message: parsed.error.issues[0]?.message ?? input.invalidShapeMessage
6737
- }
6738
- };
6326
+ const noneBoundaryOption = {
6327
+ id: asBoundaryOptionId("break:none"),
6328
+ label: "None",
6329
+ intent: "none",
6330
+ treatment: {
6331
+ family: "none",
6332
+ layers: 1,
6333
+ colourPreset: "fade"
6334
+ }
6335
+ };
6336
+ const boundaryOptionByIntent = new Map(transitionCatalogueEntries.map((entry) => [entry.intent, {
6337
+ id: entry.optionId,
6338
+ label: entry.label,
6339
+ intent: entry.intent,
6340
+ treatment: entry.treatment
6341
+ }]));
6342
+ function boundaryOptionForTransitionIntent(intent) {
6343
+ return requireCatalogueValue(boundaryOptionByIntent, intent);
6344
+ }
6345
+ const softBoundaryOption = boundaryOptionForTransitionIntent("soft-fade-short");
6346
+ const spaciousBoundaryOption = boundaryOptionForTransitionIntent("soft-fade-long");
6347
+ boundaryOptionForTransitionIntent("soft-fade-expansive");
6348
+ boundaryOptionForTransitionIntent("wave-edge");
6349
+ boundaryOptionForTransitionIntent("wave-edge-balanced");
6350
+ boundaryOptionForTransitionIntent("wave-edge-gentle");
6351
+ boundaryOptionForTransitionIntent("wave-edge-bold");
6352
+ boundaryOptionForTransitionIntent("wave-edge-drift");
6353
+ boundaryOptionForTransitionIntent("angle-edge-subtle");
6354
+ boundaryOptionForTransitionIntent("angle-edge");
6355
+ boundaryOptionForTransitionIntent("angle-edge-steep");
6356
+ /**
6357
+ * Must remain non-empty; downstream code indexes `[0]` as the documented default.
6358
+ */
6359
+ const boundaryOptions = [noneBoundaryOption, ...transitionCatalogueEntries.map((entry) => boundaryOptionForTransitionIntent(entry.intent))];
6360
+ const noneTransitionVariant = {
6361
+ familyId: "none",
6362
+ variantId: "none",
6363
+ label: "None",
6364
+ boundaryOption: noneBoundaryOption
6365
+ };
6366
+ function transitionVariantForEntry(entry) {
6739
6367
  return {
6740
- kind: "parsed",
6741
- value: parsed.data
6368
+ familyId: entry.family,
6369
+ variantId: entry.variantId,
6370
+ label: entry.variantLabel,
6371
+ boundaryOption: boundaryOptionForTransitionIntent(entry.intent)
6742
6372
  };
6743
6373
  }
6374
+ const sectionTransitionFamilies = [{
6375
+ id: "none",
6376
+ label: "None",
6377
+ variants: [noneTransitionVariant]
6378
+ }, ...transitionCatalogueFamilies.map((family) => ({
6379
+ id: family.id,
6380
+ label: family.label,
6381
+ variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
6382
+ }))];
6383
+ const boundaryOptionById = new Map(boundaryOptions.map((option) => [option.id, option]));
6384
+ new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
6385
+ new Map(sectionTransitionFamilies.map((family) => [family.id, family]));
6386
+ /** Unknown IDs are refused at the lookup boundary and never become stored treatments. */
6387
+ function boundaryTreatmentForBoundaryOptionId(boundaryOptionId) {
6388
+ return boundaryOptionById.get(boundaryOptionId)?.treatment ?? null;
6389
+ }
6390
+ function boundaryOptionForTreatment(treatment) {
6391
+ if (treatment.family === "none") return noneBoundaryOption;
6392
+ return boundaryOptions.find((option) => option.treatment.family === treatment.family && (treatment.variant === void 0 || option.treatment.variant === treatment.variant)) ?? null;
6393
+ }
6394
+ function boundaryOptionIdForTreatment(treatment) {
6395
+ return boundaryOptionForTreatment(treatment)?.id ?? null;
6396
+ }
6397
+ /**
6398
+ * Supported decorative intent for a structured treatment, or null for `none`,
6399
+ * structured treatments the catalogue lacks.
6400
+ */
6401
+ function transitionIntentForTreatment(treatment) {
6402
+ const transition = boundaryOptionForTreatment(treatment)?.intent;
6403
+ return transition && isDecorativeTransitionIntent(transition) ? transition : null;
6404
+ }
6405
+ function sectionBoundaryTreatmentsEqual(left, right) {
6406
+ return stableTreatmentKey(left) === stableTreatmentKey(right);
6407
+ }
6408
+ function stableTreatmentKey(treatment) {
6409
+ return JSON.stringify([
6410
+ treatment.family,
6411
+ boundaryOptionForTreatment(treatment)?.treatment.variant ?? treatment.variant,
6412
+ treatment.layers,
6413
+ treatment.colourPreset
6414
+ ]);
6415
+ }
6744
6416
  asBoundaryOptionId("break:unknown");
6745
6417
  /**
6746
6418
  * Site style is site-owned authority. Page design snapshots retain pins and
@@ -6784,6 +6456,241 @@ function resolvePageDesignBlockLookChoice(intent, blockId) {
6784
6456
  function resolvePageDesignBoundaryChoice(intent, previousBlockId, nextBlockId) {
6785
6457
  return intent.boundaryPins.find((pin) => pin.previousBlockId === previousBlockId && pin.nextBlockId === nextBlockId)?.choice ?? autoDesignChoice();
6786
6458
  }
6459
+ //#endregion
6460
+ //#region ../theme-core/src/site-styles/groundTextures.ts
6461
+ /** The SVG matrix fixes RGB in linear light; turbulence only varies alpha in [0, 1]. */
6462
+ const textureInkLinearRgb = [
6463
+ .5,
6464
+ .45,
6465
+ .4
6466
+ ];
6467
+ const textureInkSrgb = textureInkLinearRgb.map(linearToSrgb);
6468
+ const tiles = {
6469
+ "paper-grain": {
6470
+ size: 180,
6471
+ frequency: ".9",
6472
+ octaves: 2,
6473
+ seed: 1
6474
+ },
6475
+ "handmade-paper": {
6476
+ size: 320,
6477
+ frequency: ".0125 .025",
6478
+ octaves: 4,
6479
+ seed: 4
6480
+ },
6481
+ plaster: {
6482
+ size: 512,
6483
+ frequency: ".0078125",
6484
+ octaves: 5,
6485
+ seed: 2
6486
+ }
6487
+ };
6488
+ function groundTextureDataUri(kind) {
6489
+ const tile = tiles[kind];
6490
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${tile.size}" height="${tile.size}"><filter id="n" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="${tile.frequency}" numOctaves="${tile.octaves}" seed="${tile.seed}" stitchTiles="stitch"/><feColorMatrix values="${textureInkLinearRgb.map((channel) => `0 0 0 0 ${channel.toString().replace("0.", ".")}`).join(" ")} 0 0 0 1 0"/></filter><rect width="100%" height="100%" filter="url(#n)"/></svg>`;
6491
+ return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`;
6492
+ }
6493
+ /**
6494
+ * Bound the actual tile colour with its CSS blend and opacity. Alpha spans [0, 1], so the
6495
+ * untinted ground and full-alpha tile bound every noise pixel at every raster scale.
6496
+ * Sampling black and white would invent colours this matrix cannot draw.
6497
+ */
6498
+ function groundTextureSamples(colour, texture) {
6499
+ const { r, g, b } = hexToRgb(colour);
6500
+ const base = [
6501
+ r,
6502
+ g,
6503
+ b
6504
+ ];
6505
+ const sample = (alpha) => base.map((channel, index) => {
6506
+ const ink = textureInkSrgb[index] ?? 0;
6507
+ return channel + ((texture.blend === "multiply" ? channel * ink / 255 : 255 - (255 - channel) * (255 - ink) / 255) - channel) * texture.strength * alpha;
6508
+ });
6509
+ return [colour, ...[.5, 1].map((alpha) => {
6510
+ const [red = r, green = g, blue = b] = sample(alpha);
6511
+ return rgbToHex(red, green, blue);
6512
+ })];
6513
+ }
6514
+ //#endregion
6515
+ //#region ../theme-core/src/site-styles/groundPaint.ts
6516
+ /** Covers every currently admitted edge, including owner pins; stage 4 can narrow it per style. */
6517
+ const groundFlatZone = `max(${[...new Set(transitionCatalogueEntries.map((entry) => boundaryRuntimeMetricsForDecorativeTransition(entry.intent).heightCss))].join(", ")})`;
6518
+ const groundRampStops = `0 min(50%, ${groundFlatZone}),`;
6519
+ const groundRampEnd = `max(50%, calc(100% - ${groundFlatZone})) 100%`;
6520
+ const capped = (strength, cap) => Number.isFinite(strength) ? Math.max(0, Math.min(cap, strength ?? 0)) : 0;
6521
+ /** Palette mixing chooses the stops; CSS interpolation between those stops is sRGB. */
6522
+ function mixGroundColour(from, to, amount) {
6523
+ const a = hexToRgb(from);
6524
+ const b = hexToRgb(to);
6525
+ const x = srgbToOklab(a.r, a.g, a.b);
6526
+ const y = srgbToOklab(b.r, b.g, b.b);
6527
+ const mix = (start, end) => start + (end - start) * amount;
6528
+ const rgb = oklabToSrgb(mix(x.L, y.L), mix(x.a, y.a), mix(x.b, y.b));
6529
+ return rgbToHex(rgb.r, rgb.g, rgb.b);
6530
+ }
6531
+ /** Admit the style's vocabulary and strength; this never reads owner storage. */
6532
+ function resolveGroundPaint(paint, offers, palette) {
6533
+ const base = resolveConcreteColorHex(paint.base, palette);
6534
+ if (!base) return null;
6535
+ const { tone, strength } = offeredGroundTone(paint.tone, offers);
6536
+ const texture = resolveGroundTexture(paint.texture, offers, base);
6537
+ const resolved = resolveTone(base, tone, strength, palette);
6538
+ if (!resolved) return null;
6539
+ const painted = texture ? resolved.samples.flatMap((colour) => groundTextureSamples(colour, texture)) : resolved.samples;
6540
+ const samples = [.../* @__PURE__ */ new Set([...painted, ...continuousPaintBounds(painted)])];
6541
+ return {
6542
+ ...resolved,
6543
+ samples,
6544
+ paint: {
6545
+ base: paint.base,
6546
+ ...tone ? { tone } : {},
6547
+ ...texture ? { texture: texture.kind } : {}
6548
+ },
6549
+ ...texture ? { texture } : {}
6550
+ };
6551
+ }
6552
+ function resolveTone(base, tone, strength, palette) {
6553
+ if (!tone) return {
6554
+ topPaint: base,
6555
+ footPaint: base,
6556
+ samples: [base],
6557
+ background: base
6558
+ };
6559
+ if (tone.kind === "shading") {
6560
+ const lighter = tone.direction === "lighter-from-top";
6561
+ return linearTone(lighter ? mixGroundColour(base, "#ffffff", strength) : base, lighter ? base : mixGroundColour(base, "#000000", strength));
6562
+ }
6563
+ const second = resolveConcreteColorHex(tone.colour, palette);
6564
+ if (!second) return null;
6565
+ const end = mixGroundColour(base, second, strength);
6566
+ if (tone.kind === "gradient") return linearTone(base, end);
6567
+ const position = tone.position === "side" ? "farthest-side at 0% 50%" : "closest-side at 50% 50%";
6568
+ return {
6569
+ topPaint: base,
6570
+ footPaint: base,
6571
+ samples: [
6572
+ base,
6573
+ mixSrgbColour(base, end),
6574
+ end
6575
+ ],
6576
+ background: `radial-gradient(${position}, ${end}, ${base}) 0 min(50%, ${groundFlatZone}) / 100% max(0px, calc(100% - 2 * ${groundFlatZone})) no-repeat, ${base}`
6577
+ };
6578
+ }
6579
+ function linearTone(topPaint, footPaint) {
6580
+ return {
6581
+ topPaint,
6582
+ footPaint,
6583
+ samples: [
6584
+ topPaint,
6585
+ mixSrgbColour(topPaint, footPaint),
6586
+ footPaint
6587
+ ],
6588
+ background: `linear-gradient(to bottom, ${topPaint} ${groundRampStops} ${footPaint} ${groundRampEnd})`
6589
+ };
6590
+ }
6591
+ /** One blend decision for section and edge texture delivery. */
6592
+ function resolveGroundTexture(kind, offers, base) {
6593
+ if (!kind) return void 0;
6594
+ const strength = capped(offers.textures[kind], .5);
6595
+ if (strength === 0) return void 0;
6596
+ return {
6597
+ kind,
6598
+ strength,
6599
+ blend: hexLuminance(base) > .179 ? "multiply" : "screen"
6600
+ };
6601
+ }
6602
+ /** Only the offered tone and its bounded strength reach paint generation. */
6603
+ function offeredGroundTone(tone, offers) {
6604
+ if (!tone) return { strength: 0 };
6605
+ const strength = capped(offers.tones[tone.kind], tone.kind === "gradient" ? 1 : .3);
6606
+ return strength > 0 ? {
6607
+ tone,
6608
+ strength
6609
+ } : { strength: 0 };
6610
+ }
6611
+ function textureChoiceOffered(choice, offers) {
6612
+ return choice === "auto" || choice === "off" || !!offers?.textures[choice];
6613
+ }
6614
+ function toneChoiceOffered(choice, offers) {
6615
+ return choice === "auto" || choice === "off" || !!offers?.tones[choice.kind];
6616
+ }
6617
+ /** Independent settings: an unavailable choice takes the named ground's default. */
6618
+ function resolveSectionTreatment(paint, treatment, offers) {
6619
+ const texture = selectedTexture(paint.texture, treatment?.texture ?? "auto", offers);
6620
+ const tone = selectedTone(paint.tone, treatment?.tone ?? "auto", offers);
6621
+ return {
6622
+ base: paint.base,
6623
+ ...texture ? { texture } : {},
6624
+ ...tone ? { tone } : {}
6625
+ };
6626
+ }
6627
+ function selectedTexture(automatic, choice, offers) {
6628
+ if (choice === "off") return void 0;
6629
+ return choice === "auto" || !textureChoiceOffered(choice, offers) ? automatic : choice;
6630
+ }
6631
+ function selectedTone(automatic, choice, offers) {
6632
+ if (choice === "off") return void 0;
6633
+ return choice === "auto" || !toneChoiceOffered(choice, offers) ? automatic : choice;
6634
+ }
6635
+ /** Match the default CSS interpolation; the middle is useful evidence, not the range proof. */
6636
+ function mixSrgbColour(from, to) {
6637
+ const a = hexToRgb(from);
6638
+ const b = hexToRgb(to);
6639
+ return rgbToHex((a.r + b.r) / 2, (a.g + b.g) / 2, (a.b + b.b) / 2);
6640
+ }
6641
+ /**
6642
+ * sRGB stops are component-wise linear. Multiply/screen with one tile ink is bilinear in
6643
+ * stop position and tile alpha, so all channel extrema occur at sampled corners. These
6644
+ * enclosing colours conservatively bound luminance over the entire tone-plus-texture field.
6645
+ */
6646
+ function continuousPaintBounds(samples) {
6647
+ const colours = samples.map(hexToRgb);
6648
+ const channel = (key, bound) => bound(...colours.map((colour) => colour[key]));
6649
+ return [Math.min, Math.max].map((bound) => rgbToHex(channel("r", bound), channel("g", bound), channel("b", bound)));
6650
+ }
6651
+ //#endregion
6652
+ //#region ../theme-core/src/site-styles/rawStyleFields.ts
6653
+ const themeV2RuntimeStyleFieldNames = [
6654
+ "_frameStyles",
6655
+ "_sectionStyles",
6656
+ "_containerStyles",
6657
+ "_cardStyles"
6658
+ ];
6659
+ const themeV2BlockSpecificRawStyleFieldNames = [
6660
+ "_contentCardStyles",
6661
+ "_heroLayoutStyles",
6662
+ "_textCardStyles"
6663
+ ];
6664
+ const themeV2NormalEditorRawStyleFieldNames = [
6665
+ ...themeV2RuntimeStyleFieldNames,
6666
+ ...themeV2BlockSpecificRawStyleFieldNames,
6667
+ "styleGroup"
6668
+ ];
6669
+ new Set(themeV2NormalEditorRawStyleFieldNames);
6670
+ const themeV2CompilerOwnedFieldNames = [...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
6671
+ const staleTransitionStyleGroupPrefix = "site-style-transition-";
6672
+ /**
6673
+ * A `styleGroup` in the retired `site-style-transition-*` namespace is residue
6674
+ * from the old per-block transition path (issue 1422). Any other value is
6675
+ * authored and must survive.
6676
+ */
6677
+ function isStaleTransitionStyleGroup(value) {
6678
+ return typeof value === "string" && value.startsWith(staleTransitionStyleGroupPrefix);
6679
+ }
6680
+ /** Drops a stale transition `styleGroup`, leaving authored values untouched. */
6681
+ function stripStaleTransitionStyleGroup(content) {
6682
+ if (!isStaleTransitionStyleGroup(content.styleGroup)) return { ...content };
6683
+ const { styleGroup: _stale, ...rest } = content;
6684
+ return rest;
6685
+ }
6686
+ /** Owner choices survive replacing transient compiler fields and portable transport. */
6687
+ function sectionOwnerStyleChoices(content) {
6688
+ const parsed = sectionStylesOverrideSchema.pick({
6689
+ ground: true,
6690
+ treatment: true
6691
+ }).safeParse(content._sectionStyles);
6692
+ return parsed.success ? parsed.data : {};
6693
+ }
6787
6694
  const policiesById = {
6788
6695
  "darken-background": "other",
6789
6696
  "lighten-background": "other",
@@ -9061,6 +8968,61 @@ function resolveCardRole(theme, cardSystem, role) {
9061
8968
  }
9062
8969
  }
9063
8970
  //#endregion
8971
+ //#region ../theme-core/src/site-styles/edgeSupport.ts
8972
+ /** The existing editor offer. New families are deliberately absent until a style opts in. */
8973
+ const existingStyleEdges = { supported: [
8974
+ {
8975
+ family: "gradient",
8976
+ tuning: {
8977
+ amplitude: 1,
8978
+ irregularity: 0,
8979
+ rhythm: 1
8980
+ },
8981
+ maxLayers: 1,
8982
+ colourPresets: ["fade"]
8983
+ },
8984
+ {
8985
+ family: "wave",
8986
+ tuning: {
8987
+ amplitude: 1,
8988
+ irregularity: 0,
8989
+ rhythm: 2
8990
+ },
8991
+ maxLayers: 2,
8992
+ colourPresets: ["fade"]
8993
+ },
8994
+ {
8995
+ family: "arc",
8996
+ tuning: {
8997
+ amplitude: 1,
8998
+ irregularity: 0,
8999
+ rhythm: 1
9000
+ },
9001
+ maxLayers: 1,
9002
+ colourPresets: ["fade"]
9003
+ },
9004
+ {
9005
+ family: "angle",
9006
+ tuning: {
9007
+ amplitude: 1,
9008
+ irregularity: 0,
9009
+ rhythm: 1
9010
+ },
9011
+ maxLayers: 1,
9012
+ colourPresets: ["fade"]
9013
+ },
9014
+ {
9015
+ family: "torn",
9016
+ tuning: {
9017
+ amplitude: 1,
9018
+ irregularity: 0,
9019
+ rhythm: 1
9020
+ },
9021
+ maxLayers: 1,
9022
+ colourPresets: ["fade"]
9023
+ }
9024
+ ] };
9025
+ //#endregion
9064
9026
  //#region ../theme-core/src/site-styles/headerDropdownRecipe.ts
9065
9027
  const neutralHeaderDropdown = {
9066
9028
  surface: {
@@ -9997,6 +9959,194 @@ const bookingLookColourSpecs = {
9997
9959
  }
9998
9960
  };
9999
9961
  //#endregion
9962
+ //#region ../theme-core/src/site-styles/photoShapes.ts
9963
+ /**
9964
+ * The one catalogue of photo shapes (#1872 stage 6). A shape owns its geometry; frames name a
9965
+ * shape, `resolveLookMediaFrame` decides which one applies, and the generated
9966
+ * `--rb-look-media-*` variables carry it to the page. `default` means "the style decides", so
9967
+ * stored owner choices keep their meaning.
9968
+ */
9969
+ const imageShapes = [
9970
+ "default",
9971
+ "square",
9972
+ "rounded",
9973
+ "circle",
9974
+ "arch",
9975
+ "pebble",
9976
+ "standing-stone",
9977
+ "hill-top",
9978
+ "torn"
9979
+ ];
9980
+ function isImageShape(value) {
9981
+ return typeof value === "string" && imageShapes.includes(value);
9982
+ }
9983
+ function isDrawnImageShape(value) {
9984
+ return isImageShape(value) && value !== "default";
9985
+ }
9986
+ /**
9987
+ * Seeded torn-paper polygon: fine irregular steps along each edge. Pure and deterministic, so a
9988
+ * seed always draws the same edge on the server, in the editor and in tests.
9989
+ */
9990
+ function tornEdgePolygon(seed, steps = 36, depth = 1.4) {
9991
+ const random = (state) => {
9992
+ const next = state * 1664525 + 1013904223 >>> 0;
9993
+ return [next / 2 ** 32, next];
9994
+ };
9995
+ const jag = (state) => {
9996
+ const [roll, afterRoll] = random(state);
9997
+ if (roll >= .15) return [+(depth * roll).toFixed(2), afterRoll];
9998
+ const [extra, afterExtra] = random(afterRoll);
9999
+ return [+(depth * (1 + extra)).toFixed(2), afterExtra];
10000
+ };
10001
+ const step = (index) => (state) => {
10002
+ const [offset, next] = random(state);
10003
+ return [+(index / steps * 100 + (offset - .5) * (60 / steps)).toFixed(2), next];
10004
+ };
10005
+ /** The first point of each edge sits on a corner, so it draws no along-edge step. */
10006
+ const along = (index, corner) => (state) => index === 0 ? [corner, state] : step(index)(state);
10007
+ const point = (edge, index) => (state) => {
10008
+ switch (edge) {
10009
+ case 0: {
10010
+ const [x, s1] = along(index, 0)(state);
10011
+ const [y, s2] = jag(s1);
10012
+ return [`${x}% ${y}%`, s2];
10013
+ }
10014
+ case 1: {
10015
+ const [x, s1] = jag(state);
10016
+ const [y, s2] = along(index, 0)(s1);
10017
+ return [`${(100 - x).toFixed(2)}% ${y}%`, s2];
10018
+ }
10019
+ case 2: {
10020
+ const [x, s1] = along(index, 0)(state);
10021
+ const [y, s2] = jag(s1);
10022
+ return [`${index === 0 ? 100 : (100 - x).toFixed(2)}% ${(100 - y).toFixed(2)}%`, s2];
10023
+ }
10024
+ default: {
10025
+ const [x, s1] = jag(state);
10026
+ const [y, s2] = along(index, 0)(s1);
10027
+ return [`${x}% ${index === 0 ? 100 : (100 - y).toFixed(2)}%`, s2];
10028
+ }
10029
+ }
10030
+ };
10031
+ const { points } = Array.from({ length: steps * 4 }, (_, position) => ({
10032
+ edge: Math.floor(position / steps),
10033
+ index: position % steps
10034
+ })).reduce((drawn, { edge, index }) => {
10035
+ const [text, state] = point(edge, index)(drawn.state);
10036
+ return {
10037
+ state,
10038
+ points: [...drawn.points, text]
10039
+ };
10040
+ }, {
10041
+ state: seed >>> 0,
10042
+ points: []
10043
+ });
10044
+ return `polygon(${points.join(",")})`;
10045
+ }
10046
+ const imageShapeGeometry = {
10047
+ square: {
10048
+ draws: "corners",
10049
+ variants: [{ radius: "0" }]
10050
+ },
10051
+ rounded: {
10052
+ draws: "corners",
10053
+ variants: [{ radius: "var(--rb-media-shape-radius, 1rem)" }]
10054
+ },
10055
+ circle: {
10056
+ draws: "outline",
10057
+ aspectRatio: "1/1",
10058
+ variants: [{ radius: "50%" }]
10059
+ },
10060
+ arch: {
10061
+ draws: "outline",
10062
+ aspectRatio: "4/5",
10063
+ variants: [{ radius: "9999px 9999px var(--rb-media-shape-arch-base-radius, 0.125rem) var(--rb-media-shape-arch-base-radius, 0.125rem)" }]
10064
+ },
10065
+ pebble: {
10066
+ draws: "outline",
10067
+ suits: ["1/1", "5/4"],
10068
+ variants: [
10069
+ { radius: "42% 58% 38% 62% / 46% 38% 62% 54%" },
10070
+ { radius: "58% 42% 56% 44% / 40% 52% 48% 60%" },
10071
+ { radius: "36% 64% 52% 48% / 54% 42% 58% 46%" }
10072
+ ]
10073
+ },
10074
+ "standing-stone": {
10075
+ draws: "outline",
10076
+ aspectRatio: "3/4",
10077
+ variants: [{ radius: "56% 44% 16% 22% / 32% 24% 9% 12%" }, { radius: "42% 58% 22% 14% / 24% 34% 12% 8%" }]
10078
+ },
10079
+ "hill-top": {
10080
+ draws: "outline",
10081
+ suits: ["4/3", "3/2"],
10082
+ variants: [{ radius: "50% 50% 0.25rem 0.25rem / 26% 26% 0.25rem 0.25rem" }]
10083
+ },
10084
+ torn: {
10085
+ draws: "outline",
10086
+ variants: [{
10087
+ radius: "0",
10088
+ clip: tornEdgePolygon(7)
10089
+ }, {
10090
+ radius: "0",
10091
+ clip: tornEdgePolygon(23)
10092
+ }]
10093
+ }
10094
+ };
10095
+ /** Every kind falls to the style's own skin CSS, which is what each style draws today. */
10096
+ const skinDrawnPhotoShapes = {
10097
+ supported: [
10098
+ "default",
10099
+ "square",
10100
+ "rounded",
10101
+ "circle",
10102
+ "arch"
10103
+ ],
10104
+ defaults: {
10105
+ feature: "default",
10106
+ card: "default",
10107
+ gallery: "default",
10108
+ backdrop: "default"
10109
+ }
10110
+ };
10111
+ /** A shape drawn small, for the editor's Photo shape tiles: its first variant, in its own proportions. */
10112
+ function photoShapeDrawing(shape) {
10113
+ const geometry = imageShapeGeometry[shape];
10114
+ const [variant] = geometry.variants;
10115
+ return {
10116
+ borderRadius: variant.radius,
10117
+ ...variant.clip ? { clipPath: variant.clip } : {},
10118
+ ...geometry.aspectRatio ? { aspectRatio: geometry.aspectRatio.replace("/", " / ") } : {}
10119
+ };
10120
+ }
10121
+ //#endregion
10122
+ //#region ../theme-core/src/site-styles/sectionShape.ts
10123
+ /** Shape follows the declared ground identity, even when two grounds share paint. */
10124
+ function sectionShapeForGround(surfaces, name) {
10125
+ const surface = name === void 0 ? void 0 : surfaces[name];
10126
+ return surface?.kind === "token" && surface.sectionShape === "field" ? "field" : "edge-to-edge";
10127
+ }
10128
+ /** The section hook carrying a field; absent for edge-to-edge sections, so their markup is unchanged. */
10129
+ function sectionShapeHook(shape) {
10130
+ return shape === "field" ? { "data-shape": "field" } : {};
10131
+ }
10132
+ /** Reads the decided shape back from final render content; anything else is edge to edge. */
10133
+ function sectionShapeFromContent(content) {
10134
+ const hooks = content._lookHooks;
10135
+ return typeof hooks === "object" && hooks !== null && "data-shape" in hooks && hooks["data-shape"] === "field" ? "field" : "edge-to-edge";
10136
+ }
10137
+ /** The booking bar paints with a declared token surface; anything else is a catalogue mistake. */
10138
+ function validateBookingBarSurface(skin, bookingBar, surfaces) {
10139
+ if (bookingBar === void 0) return;
10140
+ if (surfaces[bookingBar.surface]?.kind !== "token") throw new Error(`Booking bar for ${skin} needs a declared token surface: ${bookingBar.surface}`);
10141
+ }
10142
+ /** Section metadata never belongs to a slot's paint or its transport contract. */
10143
+ function styleSurfacePaint(surface) {
10144
+ const { ground: _ground, roleOnly: _role, ...spec } = surface;
10145
+ if (spec.kind !== "token") return spec;
10146
+ const { finish: _finish, sectionShape: _shape, ...paint } = spec;
10147
+ return paint;
10148
+ }
10149
+ //#endregion
10000
10150
  //#region ../theme-core/src/site-styles/stubSiteStyle.ts
10001
10151
  /**
10002
10152
  * Stub: tickets and paper. Every card is a piece of printed paper (ticket, tag, index card,
@@ -10072,6 +10222,12 @@ const stubOffers = [
10072
10222
  roleMap: stubRoles,
10073
10223
  itemRoles: { container: "card" }
10074
10224
  },
10225
+ {
10226
+ id: asAppearancePresetId("class-prices-big-figures"),
10227
+ treatment: "price-figures",
10228
+ roleMap: stubRoles,
10229
+ itemRoles: { items: "card" }
10230
+ },
10075
10231
  {
10076
10232
  id: asAppearancePresetId("hero-photo-beside-text"),
10077
10233
  visibleMarks: ["sticker"],
@@ -10382,24 +10538,29 @@ const stubLooks = {
10382
10538
  surfaces: {
10383
10539
  base: {
10384
10540
  kind: "token",
10385
- token: "background"
10541
+ token: "background",
10542
+ ground: "light"
10386
10543
  },
10387
10544
  band: {
10388
10545
  kind: "token",
10389
- token: "surfaceAlt"
10546
+ token: "surfaceAlt",
10547
+ ground: "band"
10390
10548
  },
10391
10549
  brand: {
10392
10550
  kind: "token",
10393
10551
  token: "primary",
10552
+ ground: "brand",
10394
10553
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
10395
10554
  },
10396
10555
  deep: {
10397
10556
  kind: "token",
10398
- token: "secondary"
10557
+ token: "secondary",
10558
+ ground: "brand"
10399
10559
  },
10400
10560
  sheet: {
10401
10561
  kind: "token",
10402
10562
  token: "surface",
10563
+ ground: "band",
10403
10564
  roleOnly: true
10404
10565
  }
10405
10566
  },
@@ -10541,6 +10702,12 @@ const forgeOffers = [
10541
10702
  treatment: "price-rows",
10542
10703
  roleMap: forgeOpenRoles
10543
10704
  },
10705
+ {
10706
+ id: asAppearancePresetId("class-prices-big-figures"),
10707
+ treatment: "price-figures",
10708
+ roleMap: forgeRoles,
10709
+ itemRoles: { items: "card" }
10710
+ },
10544
10711
  {
10545
10712
  id: asAppearancePresetId("hero-photo-beside-text"),
10546
10713
  visibleMarks: ["sticker"],
@@ -10872,15 +11039,18 @@ const forgeLooks = {
10872
11039
  surfaces: {
10873
11040
  base: {
10874
11041
  kind: "token",
10875
- token: "background"
11042
+ token: "background",
11043
+ ground: "light"
10876
11044
  },
10877
11045
  band: {
10878
11046
  kind: "token",
10879
- token: "surface"
11047
+ token: "surface",
11048
+ ground: "band"
10880
11049
  },
10881
11050
  brand: {
10882
11051
  kind: "token",
10883
11052
  token: "primary",
11053
+ ground: "brand",
10884
11054
  buttonContext: {
10885
11055
  primary: unsafeAsOpaqueButtonColourToken("primaryForeground"),
10886
11056
  primaryText: unsafeAsOpaqueButtonColourToken("primary")
@@ -10889,6 +11059,7 @@ const forgeLooks = {
10889
11059
  inverse: {
10890
11060
  kind: "token",
10891
11061
  token: "text",
11062
+ ground: "deep",
10892
11063
  buttonContext: {
10893
11064
  primary: unsafeAsOpaqueButtonColourToken("background"),
10894
11065
  primaryText: unsafeAsOpaqueButtonColourToken("text")
@@ -10897,6 +11068,7 @@ const forgeLooks = {
10897
11068
  sheet: {
10898
11069
  kind: "token",
10899
11070
  token: "surface",
11071
+ ground: "band",
10900
11072
  roleOnly: true
10901
11073
  }
10902
11074
  },
@@ -11135,6 +11307,12 @@ const pressOffers = [
11135
11307
  treatment: "price-rows",
11136
11308
  roleMap: pressOpenRoles
11137
11309
  },
11310
+ {
11311
+ id: asAppearancePresetId("class-prices-big-figures"),
11312
+ treatment: "price-figures",
11313
+ roleMap: pressRoles,
11314
+ itemRoles: { items: "card" }
11315
+ },
11138
11316
  {
11139
11317
  id: asAppearancePresetId("hero-photo-beside-text"),
11140
11318
  visibleMarks: ["sticker"],
@@ -11453,35 +11631,42 @@ const pressLooks = {
11453
11631
  surfaces: {
11454
11632
  base: {
11455
11633
  kind: "token",
11456
- token: "background"
11634
+ token: "background",
11635
+ ground: "light"
11457
11636
  },
11458
11637
  band: {
11459
11638
  kind: "token",
11460
- token: "surfaceAlt"
11639
+ token: "surfaceAlt",
11640
+ ground: "band"
11461
11641
  },
11462
11642
  pop: {
11463
11643
  kind: "tint",
11464
11644
  base: "background",
11465
11645
  source: "mark",
11466
- opacity: 16
11646
+ opacity: 16,
11647
+ ground: "light"
11467
11648
  },
11468
11649
  brand: {
11469
11650
  kind: "token",
11470
11651
  token: "primary",
11652
+ ground: "brand",
11471
11653
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
11472
11654
  },
11473
11655
  inverse: {
11474
11656
  kind: "token",
11475
- token: "text"
11657
+ token: "text",
11658
+ ground: "deep"
11476
11659
  },
11477
11660
  sheet: {
11478
11661
  kind: "token",
11479
11662
  token: "surface",
11663
+ ground: "band",
11480
11664
  roleOnly: true
11481
11665
  },
11482
11666
  deep: {
11483
11667
  kind: "token",
11484
11668
  token: "secondary",
11669
+ ground: "brand",
11485
11670
  roleOnly: true
11486
11671
  }
11487
11672
  },
@@ -12551,6 +12736,11 @@ const vistaOffers = [
12551
12736
  treatment: "price-rows",
12552
12737
  roleMap: vistaOpenRoles
12553
12738
  },
12739
+ {
12740
+ id: asAppearancePresetId("class-prices-rows"),
12741
+ treatment: "price-list",
12742
+ roleMap: vistaOpenRoles
12743
+ },
12554
12744
  {
12555
12745
  id: asAppearancePresetId("shop-price-cards-featured"),
12556
12746
  treatment: "price-cards-featured",
@@ -12913,25 +13103,30 @@ const vistaLooks = {
12913
13103
  surfaces: {
12914
13104
  base: {
12915
13105
  kind: "token",
12916
- token: "background"
13106
+ token: "background",
13107
+ ground: "light"
12917
13108
  },
12918
13109
  band: {
12919
13110
  kind: "token",
12920
- token: "surfaceAlt"
13111
+ token: "surfaceAlt",
13112
+ ground: "band"
12921
13113
  },
12922
13114
  sheet: {
12923
13115
  kind: "token",
12924
13116
  token: "surface",
13117
+ ground: "band",
12925
13118
  roleOnly: true
12926
13119
  },
12927
13120
  brand: {
12928
13121
  kind: "token",
12929
13122
  token: "primary",
13123
+ ground: "brand",
12930
13124
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
12931
13125
  },
12932
13126
  deep: {
12933
13127
  kind: "token",
12934
13128
  token: "secondary",
13129
+ ground: "brand",
12935
13130
  buttonContext: {
12936
13131
  primary: unsafeAsOpaqueButtonColourToken("onSecondary"),
12937
13132
  primaryText: unsafeAsOpaqueButtonColourToken("secondary")
@@ -12940,6 +13135,7 @@ const vistaLooks = {
12940
13135
  inverse: {
12941
13136
  kind: "token",
12942
13137
  token: "text",
13138
+ ground: "deep",
12943
13139
  roleOnly: true,
12944
13140
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("background") }
12945
13141
  }
@@ -26474,10 +26670,232 @@ function toPageRuntimeJoin(join) {
26474
26670
  return {
26475
26671
  previousBlockId: join.previousBlockId,
26476
26672
  nextBlockId: join.nextBlockId,
26477
- treatment: join.treatment
26673
+ treatment: join.treatment,
26674
+ ...join.edge ? { edge: join.edge } : {}
26478
26675
  };
26479
26676
  }
26480
26677
  //#endregion
26678
+ //#region ../theme-core/src/gradients/presets.ts
26679
+ /**
26680
+ * Curated gradient presets based on theme palette
26681
+ */
26682
+ const gradientPresetData = {
26683
+ "primary-secondary": {
26684
+ name: "Primary to Secondary",
26685
+ description: "Blend your primary and secondary brand colors",
26686
+ type: "linear",
26687
+ angle: 135,
26688
+ stops: [{
26689
+ color: "primary-500",
26690
+ position: 0
26691
+ }, {
26692
+ color: "secondary-500",
26693
+ position: 100
26694
+ }]
26695
+ },
26696
+ "primary-accent": {
26697
+ name: "Primary to Accent",
26698
+ description: "Energetic gradient from primary to accent",
26699
+ type: "linear",
26700
+ angle: 135,
26701
+ stops: [{
26702
+ color: "primary-500",
26703
+ position: 0
26704
+ }, {
26705
+ color: "accent-500",
26706
+ position: 100
26707
+ }]
26708
+ },
26709
+ "secondary-accent": {
26710
+ name: "Secondary to Accent",
26711
+ description: "Vibrant secondary to accent blend",
26712
+ type: "linear",
26713
+ angle: 135,
26714
+ stops: [{
26715
+ color: "secondary-500",
26716
+ position: 0
26717
+ }, {
26718
+ color: "accent-500",
26719
+ position: 100
26720
+ }]
26721
+ },
26722
+ "primary-light-dark": {
26723
+ name: "Primary Light to Dark",
26724
+ description: "Subtle primary color fade",
26725
+ type: "linear",
26726
+ angle: 180,
26727
+ stops: [{
26728
+ color: "primary-500",
26729
+ position: 0
26730
+ }, {
26731
+ color: "primary-900",
26732
+ position: 100
26733
+ }]
26734
+ },
26735
+ "primary-dark-light": {
26736
+ name: "Primary Dark to Light",
26737
+ description: "Reverse primary fade",
26738
+ type: "linear",
26739
+ angle: 180,
26740
+ stops: [{
26741
+ color: "primary-900",
26742
+ position: 0
26743
+ }, {
26744
+ color: "primary-50",
26745
+ position: 100
26746
+ }]
26747
+ },
26748
+ "secondary-light-dark": {
26749
+ name: "Secondary Light to Dark",
26750
+ description: "Subtle secondary color fade",
26751
+ type: "linear",
26752
+ angle: 180,
26753
+ stops: [{
26754
+ color: "secondary-500",
26755
+ position: 0
26756
+ }, {
26757
+ color: "secondary-900",
26758
+ position: 100
26759
+ }]
26760
+ },
26761
+ "accent-light-dark": {
26762
+ name: "Accent Light to Dark",
26763
+ description: "Accent color depth fade",
26764
+ type: "linear",
26765
+ angle: 180,
26766
+ stops: [{
26767
+ color: "accent-500",
26768
+ position: 0
26769
+ }, {
26770
+ color: "accent-900",
26771
+ position: 100
26772
+ }]
26773
+ },
26774
+ "background-surface": {
26775
+ name: "Background to Surface",
26776
+ description: "Subtle depth using base colors",
26777
+ type: "linear",
26778
+ angle: 180,
26779
+ stops: [{
26780
+ color: "background",
26781
+ position: 0
26782
+ }, {
26783
+ color: "surface",
26784
+ position: 100
26785
+ }]
26786
+ },
26787
+ "neutral-fade": {
26788
+ name: "Neutral Gradient",
26789
+ description: "Elegant neutral color fade",
26790
+ type: "linear",
26791
+ angle: 180,
26792
+ stops: [{
26793
+ color: "neutral-900",
26794
+ position: 0
26795
+ }, {
26796
+ color: "neutral-50",
26797
+ position: 100
26798
+ }]
26799
+ },
26800
+ "primary-glow": {
26801
+ name: "Primary glow",
26802
+ description: "A soft top-centred glow using your primary palette",
26803
+ type: "radial",
26804
+ shape: "ellipse",
26805
+ position: "top center",
26806
+ stops: [{
26807
+ color: "primary-900",
26808
+ position: 0
26809
+ }, {
26810
+ color: "primary-950",
26811
+ position: 100
26812
+ }],
26813
+ foreground: {
26814
+ textColor: "onPrimary900",
26815
+ headingColor: "onPrimary900",
26816
+ linkColor: "onPrimary900",
26817
+ supportingColor: "onPrimary900"
26818
+ }
26819
+ },
26820
+ "accent-glow": {
26821
+ name: "Accent glow",
26822
+ description: "A soft top-centred glow using your accent palette",
26823
+ type: "radial",
26824
+ shape: "ellipse",
26825
+ position: "top center",
26826
+ stops: [{
26827
+ color: "accent-900",
26828
+ position: 0
26829
+ }, {
26830
+ color: "accent-950",
26831
+ position: 100
26832
+ }],
26833
+ foreground: {
26834
+ textColor: "onAccent900",
26835
+ headingColor: "onAccent900",
26836
+ linkColor: "onAccent900",
26837
+ supportingColor: "onAccent900"
26838
+ }
26839
+ },
26840
+ "primary-secondary-accent": {
26841
+ name: "Brand Trio",
26842
+ description: "All three brand colors in harmony",
26843
+ type: "linear",
26844
+ angle: 135,
26845
+ stops: [
26846
+ {
26847
+ color: "primary-500",
26848
+ position: 0
26849
+ },
26850
+ {
26851
+ color: "secondary-500",
26852
+ position: 50
26853
+ },
26854
+ {
26855
+ color: "accent-500",
26856
+ position: 100
26857
+ }
26858
+ ]
26859
+ }
26860
+ };
26861
+ const presetData = (id) => gradientPresetData[id];
26862
+ /**
26863
+ * Curated library of gradient presets.
26864
+ * All gradients use theme color tokens, so they adapt to the site's palette.
26865
+ */
26866
+ const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
26867
+ id,
26868
+ ...presetData(id)
26869
+ }));
26870
+ const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
26871
+ function getGradientPreset(id) {
26872
+ return gradientPresetById[id];
26873
+ }
26874
+ //#endregion
26875
+ //#region ../theme-core/src/gradients/utils.ts
26876
+ /**
26877
+ * Convert a GradientConfig to a CSS gradient string
26878
+ *
26879
+ * @param config - The gradient configuration using theme tokens
26880
+ * @param tokens - Map of theme color tokens to hex values
26881
+ * @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
26882
+ */
26883
+ function gradientToCss(config, tokens) {
26884
+ const stops = config.stops.map((stop) => {
26885
+ return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
26886
+ }).join(", ");
26887
+ const type = config.type ?? "linear";
26888
+ if (type === "radial") {
26889
+ const position = config.position ?? "center";
26890
+ return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
26891
+ }
26892
+ if (type === "conic") {
26893
+ const position = config.position ?? "center";
26894
+ return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
26895
+ }
26896
+ return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
26897
+ }
26898
+ //#endregion
26481
26899
  //#region ../theme-core/src/site-styles/sectionSurfaceBackgrounds.ts
26482
26900
  function compileGradientSectionBackground(background, foreground, palette) {
26483
26901
  const preset = getGradientPreset(background.gradientPresetId);
@@ -26555,7 +26973,7 @@ function admitsRule(rule, admitted) {
26555
26973
  * much of the photo can still show.
26556
26974
  */
26557
26975
  function mediaScrimForColorSurface(backgroundToken, foreground, palette) {
26558
- const scrim = scrimOpacityFor(palette[backgroundToken], foreground, palette);
26976
+ const scrim = scrimOpacityFor(resolveConcreteColorHex(backgroundToken, palette) ?? void 0, foreground, palette);
26559
26977
  return scrim.kind === "legible" ? {
26560
26978
  type: "color",
26561
26979
  color: backgroundToken,
@@ -26570,7 +26988,7 @@ function mediaScrimForColorSurface(backgroundToken, foreground, palette) {
26570
26988
  * keeps its own presentation.
26571
26989
  */
26572
26990
  function gradientMediaScrim(input) {
26573
- const stopScrims = input.stopTokens.map((token) => scrimOpacityFor(input.palette[token], input.foreground, input.palette));
26991
+ const stopScrims = input.stopTokens.map((token) => scrimOpacityFor(resolveConcreteColorHex(token, input.palette) ?? void 0, input.foreground, input.palette));
26574
26992
  return stopScrims.every((scrim) => scrim.kind === "legible") ? {
26575
26993
  type: "gradient",
26576
26994
  gradient: input.gradient,
@@ -26580,7 +26998,7 @@ function gradientMediaScrim(input) {
26580
26998
  function scrimOpacityFor(scrimHex, foreground, palette) {
26581
26999
  if (typeof scrimHex !== "string") return { kind: "unreadable" };
26582
27000
  const foregroundHexes = Object.values(foreground).flatMap((token) => {
26583
- const hex = typeof token === "string" ? palette[token] : void 0;
27001
+ const hex = typeof token === "string" ? resolveConcreteColorHex(token, palette) : null;
26584
27002
  return typeof hex === "string" ? [hex] : [];
26585
27003
  });
26586
27004
  if (foregroundHexes.length === 0) return { kind: "unreadable" };
@@ -26595,6 +27013,104 @@ function scrimOpacityFor(scrimHex, foreground, palette) {
26595
27013
  };
26596
27014
  }
26597
27015
  //#endregion
27016
+ //#region ../theme-core/src/site-styles/imageSurfaceBackground.ts
27017
+ /**
27018
+ * What a photo surface gets when nothing has chosen a treatment, so text on it
27019
+ * stays readable. The one default for generated heroes, the opening-section
27020
+ * repair and the resolver's fallback.
27021
+ */
27022
+ const defaultHeroImageSurfaceTreatment = { kind: "neutral-wash" };
27023
+ function withImageSurfaceMotion(background, motion) {
27024
+ return motion === "static" ? background : {
27025
+ ...background,
27026
+ motion
27027
+ };
27028
+ }
27029
+ function compileImageSurfaceTreatmentBackground(background, treatment, foreground) {
27030
+ switch (treatment.kind) {
27031
+ case "none": return null;
27032
+ case "brand-scrim": return withColorOverlay(background, darkenedThemeToken(treatment.token), treatment, "primaryForeground", foreground);
27033
+ case "brand-wash": return withColorOverlay(background, lightenedBrandToken(treatment.token), treatment, "text", foreground);
27034
+ case "neutral-scrim": return withColorOverlay(background, darkenedThemeToken("text"), treatment, "primaryForeground", foreground);
27035
+ case "neutral-wash": return {
27036
+ ...background,
27037
+ overlay: {
27038
+ type: "gradient",
27039
+ gradient: "linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(244,241,234,0.62) 90%)",
27040
+ opacity: 1
27041
+ },
27042
+ ...uniformForeground("text"),
27043
+ ...foreground
27044
+ };
27045
+ case "solid-panel": return withColorOverlay(background, "surface", treatment, "text", foreground);
27046
+ default: return assertNever(treatment);
27047
+ }
27048
+ }
27049
+ function withColorOverlay(background, color, treatment, foregroundToken, foreground) {
27050
+ return {
27051
+ ...background,
27052
+ overlay: {
27053
+ type: "color",
27054
+ color,
27055
+ opacity: imageSurfaceTreatmentOpacity(treatment.kind, treatment.intensity)
27056
+ },
27057
+ ...uniformForeground(foregroundToken),
27058
+ ...foreground
27059
+ };
27060
+ }
27061
+ /** The brand tint older photo heroes use, shared with the Look photo treatment's brand arm. */
27062
+ function brandScrimOverlay(token) {
27063
+ return {
27064
+ type: "color",
27065
+ color: darkenedThemeToken(token),
27066
+ opacity: imageSurfaceTreatmentOpacity("brand-scrim", void 0)
27067
+ };
27068
+ }
27069
+ function uniformForeground(token) {
27070
+ return {
27071
+ textColor: token,
27072
+ headingColor: token,
27073
+ linkColor: token,
27074
+ supportingColor: token
27075
+ };
27076
+ }
27077
+ const opacityByKind = {
27078
+ "brand-scrim": {
27079
+ soft: .26,
27080
+ balanced: .35,
27081
+ strong: .52
27082
+ },
27083
+ "brand-wash": {
27084
+ soft: .24,
27085
+ balanced: .34,
27086
+ strong: .46
27087
+ },
27088
+ "neutral-scrim": {
27089
+ soft: .42,
27090
+ balanced: .58,
27091
+ strong: .72
27092
+ },
27093
+ "neutral-wash": {
27094
+ soft: 1,
27095
+ balanced: 1,
27096
+ strong: 1
27097
+ },
27098
+ "solid-panel": {
27099
+ soft: .78,
27100
+ balanced: .88,
27101
+ strong: .94
27102
+ }
27103
+ };
27104
+ function imageSurfaceTreatmentOpacity(kind, intensity) {
27105
+ return opacityByKind[kind][intensity ?? "balanced"];
27106
+ }
27107
+ function darkenedThemeToken(token) {
27108
+ return `color-mix(in oklab, rgb(var(--tb-${token})), black 28%)`;
27109
+ }
27110
+ function lightenedBrandToken(token) {
27111
+ return `color-mix(in oklab, rgb(var(--tb-${token})), white 42%)`;
27112
+ }
27113
+ //#endregion
26598
27114
  //#region ../theme-core/src/site-styles/runtimeCompiler.ts
26599
27115
  function isGradientSectionSurfaceRuntimeRule(rule) {
26600
27116
  return rule.background?.type === "gradient";
@@ -26615,7 +27131,12 @@ const compiledRuntimeStyleFieldNames = [
26615
27131
  * An authored `styleGroup` is content and survives.
26616
27132
  */
26617
27133
  function stripCompiledRuntimeStyleFields(content) {
26618
- return Object.fromEntries(Object.entries(stripStaleTransitionStyleGroup(content)).filter(([fieldName]) => !compiledRuntimeStyleFieldNames.includes(fieldName)));
27134
+ const stripped = Object.fromEntries(Object.entries(stripStaleTransitionStyleGroup(content)).filter(([fieldName]) => !compiledRuntimeStyleFieldNames.includes(fieldName)));
27135
+ const owner = sectionOwnerStyleChoices(content);
27136
+ return Object.keys(owner).length > 0 ? {
27137
+ ...stripped,
27138
+ _sectionStyles: owner
27139
+ } : stripped;
26619
27140
  }
26620
27141
  function surfaceResolutionContextFromTheme(theme, declaredSurfaces = [], solvedInks) {
26621
27142
  return prepareThemeSurfaceRevision({
@@ -26926,7 +27447,6 @@ function bookingPageOfferingFor(siteStyleId) {
26926
27447
  const quietBudget = {
26927
27448
  accentDensity: "low",
26928
27449
  panelDensity: "medium",
26929
- transitionMix: "quiet",
26930
27450
  primaryCtaLimit: 2,
26931
27451
  mediaDensity: "medium",
26932
27452
  decorativeRepetition: "low"
@@ -26938,7 +27458,6 @@ const accentLedQuietBudget = {
26938
27458
  const balancedBudget = {
26939
27459
  accentDensity: "medium",
26940
27460
  panelDensity: "medium",
26941
- transitionMix: "balanced",
26942
27461
  primaryCtaLimit: 3,
26943
27462
  mediaDensity: "medium",
26944
27463
  decorativeRepetition: "medium"
@@ -26946,7 +27465,6 @@ const balancedBudget = {
26946
27465
  const expressiveBudget = {
26947
27466
  accentDensity: "high",
26948
27467
  panelDensity: "high",
26949
- transitionMix: "expressive",
26950
27468
  primaryCtaLimit: 3,
26951
27469
  mediaDensity: "high",
26952
27470
  decorativeRepetition: "medium"
@@ -27065,7 +27583,7 @@ function defineCuratedSiteStyle(input) {
27065
27583
  kind: "public",
27066
27584
  generation: { kind: "explicit_only" }
27067
27585
  };
27068
- const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
27586
+ const photoShapes = input.photoShapes ?? skinDrawnPhotoShapes;
27069
27587
  return {
27070
27588
  id: asSiteStyleId(input.id),
27071
27589
  name: input.name,
@@ -27077,10 +27595,8 @@ function defineCuratedSiteStyle(input) {
27077
27595
  headingDecoration: input.headingDecoration ?? noHeadingDecoration,
27078
27596
  ...authoredSiteStyleOverrides(input),
27079
27597
  componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
27080
- looks: input.looks ?? {
27081
- kind: "recipe",
27082
- recommendedAppearancePresetIds
27083
- },
27598
+ looks: curatedStyleLooks(input, photoShapes),
27599
+ photoShapes,
27084
27600
  headerCuration: headerCurationBySiteStyle[input.id],
27085
27601
  headerStyleRecipes: input.headerStyleRecipes,
27086
27602
  footerLookRecipes: input.footerLookRecipes,
@@ -27122,6 +27638,18 @@ const loomRoles = {
27122
27638
  const loomLooks = {
27123
27639
  kind: "offers",
27124
27640
  skin: "loom",
27641
+ finishes: {
27642
+ textures: {
27643
+ "paper-grain": .16,
27644
+ "handmade-paper": .15,
27645
+ plaster: .14
27646
+ },
27647
+ tones: {
27648
+ shading: .09,
27649
+ glow: .22,
27650
+ gradient: 1
27651
+ }
27652
+ },
27125
27653
  skinTokens: {
27126
27654
  radius: "14px",
27127
27655
  rule: "2px",
@@ -27151,30 +27679,36 @@ const loomLooks = {
27151
27679
  surfaces: {
27152
27680
  base: {
27153
27681
  kind: "token",
27154
- token: "background"
27682
+ token: "background",
27683
+ ground: "light"
27155
27684
  },
27156
27685
  band: {
27157
27686
  kind: "token",
27158
- token: "surfaceAlt"
27687
+ token: "surfaceAlt",
27688
+ ground: "band"
27159
27689
  },
27160
27690
  brand: {
27161
27691
  kind: "token",
27162
27692
  token: "primary",
27693
+ ground: "brand",
27163
27694
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
27164
27695
  },
27165
27696
  deep: {
27166
27697
  kind: "token",
27167
27698
  token: "secondary",
27699
+ ground: "brand",
27168
27700
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
27169
27701
  },
27170
27702
  sheet: {
27171
27703
  kind: "token",
27172
27704
  token: "surface",
27705
+ ground: "band",
27173
27706
  roleOnly: true
27174
27707
  },
27175
27708
  inverse: {
27176
27709
  kind: "token",
27177
27710
  token: "text",
27711
+ ground: "deep",
27178
27712
  roleOnly: true,
27179
27713
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("background") }
27180
27714
  }
@@ -27578,6 +28112,12 @@ const loomLooks = {
27578
28112
  id: id("offerings-type-columns"),
27579
28113
  treatment: "type-columns",
27580
28114
  roleMap: loomRoles
28115
+ },
28116
+ {
28117
+ id: id("class-prices-big-figures"),
28118
+ treatment: "price-figures",
28119
+ itemRoles: { items: "card" },
28120
+ roleMap: loomRoles
27581
28121
  }
27582
28122
  ],
27583
28123
  ownLayoutBlocks
@@ -27936,11 +28476,29 @@ const poiseOffers = [
27936
28476
  id: id("gifting-panel"),
27937
28477
  treatment: "gift-panel",
27938
28478
  roleMap: poiseRoles
28479
+ },
28480
+ {
28481
+ id: id("class-prices-big-figures"),
28482
+ treatment: "price-figures",
28483
+ itemRoles: { items: "card" },
28484
+ roleMap: poiseRoles
27939
28485
  }
27940
28486
  ];
27941
28487
  const poiseLooks = {
27942
28488
  kind: "offers",
27943
28489
  skin: "poise",
28490
+ finishes: {
28491
+ textures: {
28492
+ "paper-grain": .16,
28493
+ "handmade-paper": .15,
28494
+ plaster: .14
28495
+ },
28496
+ tones: {
28497
+ shading: .09,
28498
+ glow: .22,
28499
+ gradient: 1
28500
+ }
28501
+ },
27944
28502
  skinTokens: {
27945
28503
  radius: "24px",
27946
28504
  rule: "1.5px",
@@ -27965,25 +28523,30 @@ const poiseLooks = {
27965
28523
  surfaces: {
27966
28524
  base: {
27967
28525
  kind: "token",
27968
- token: "background"
28526
+ token: "background",
28527
+ ground: "light"
27969
28528
  },
27970
28529
  band: {
27971
28530
  kind: "token",
27972
- token: "surfaceAlt"
28531
+ token: "surfaceAlt",
28532
+ ground: "band"
27973
28533
  },
27974
28534
  sheet: {
27975
28535
  kind: "token",
27976
- token: "surface"
28536
+ token: "surface",
28537
+ ground: "band"
27977
28538
  },
27978
28539
  brand: {
27979
28540
  kind: "token",
27980
28541
  token: "primary",
28542
+ ground: "brand",
27981
28543
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") },
27982
28544
  sectionShape: "field"
27983
28545
  },
27984
28546
  inverse: {
27985
28547
  kind: "token",
27986
28548
  token: "text",
28549
+ ground: "deep",
27987
28550
  sectionShape: "field"
27988
28551
  }
27989
28552
  },
@@ -28415,11 +28978,29 @@ const havenOffers = [
28415
28978
  id: id("location-map-entrance-photo"),
28416
28979
  treatment: "map-entrance",
28417
28980
  roleMap: havenRoles
28981
+ },
28982
+ {
28983
+ id: id("class-prices-big-figures"),
28984
+ treatment: "price-figures",
28985
+ itemRoles: { items: "card" },
28986
+ roleMap: havenRoles
28418
28987
  }
28419
28988
  ];
28420
28989
  const havenLooks = {
28421
28990
  kind: "offers",
28422
28991
  skin: "haven",
28992
+ finishes: {
28993
+ textures: {
28994
+ "paper-grain": .16,
28995
+ "handmade-paper": .15,
28996
+ plaster: .14
28997
+ },
28998
+ tones: {
28999
+ shading: .09,
29000
+ glow: .22,
29001
+ gradient: 1
29002
+ }
29003
+ },
28423
29004
  skinTokens: {
28424
29005
  radius: "30px",
28425
29006
  rule: "1.5px",
@@ -28440,24 +29021,29 @@ const havenLooks = {
28440
29021
  surfaces: {
28441
29022
  base: {
28442
29023
  kind: "token",
28443
- token: "background"
29024
+ token: "background",
29025
+ ground: "light"
28444
29026
  },
28445
29027
  sheet: {
28446
29028
  kind: "token",
28447
- token: "surface"
29029
+ token: "surface",
29030
+ ground: "band"
28448
29031
  },
28449
29032
  band: {
28450
29033
  kind: "token",
28451
- token: "surfaceAlt"
29034
+ token: "surfaceAlt",
29035
+ ground: "band"
28452
29036
  },
28453
29037
  deep: {
28454
29038
  kind: "token",
28455
29039
  token: "secondary",
29040
+ ground: "brand",
28456
29041
  roleOnly: true
28457
29042
  },
28458
29043
  brand: {
28459
29044
  kind: "token",
28460
29045
  token: "primary",
29046
+ ground: "brand",
28461
29047
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
28462
29048
  }
28463
29049
  },
@@ -28983,6 +29569,41 @@ const brookOffers = [
28983
29569
  const brookLooks = {
28984
29570
  kind: "offers",
28985
29571
  skin: "brook",
29572
+ finishes: {
29573
+ textures: { "paper-grain": .16 },
29574
+ tones: {
29575
+ shading: .09,
29576
+ glow: .22
29577
+ }
29578
+ },
29579
+ edges: { supported: [
29580
+ ...existingStyleEdges.supported.map((edge) => ({
29581
+ ...edge,
29582
+ colourPresets: ["fade", "blend"]
29583
+ })),
29584
+ {
29585
+ family: "ridge",
29586
+ tuning: {
29587
+ amplitude: .75,
29588
+ irregularity: .3,
29589
+ rhythm: 2
29590
+ },
29591
+ minLayers: 2,
29592
+ maxLayers: 3,
29593
+ colourPresets: ["fade", "blend"]
29594
+ },
29595
+ {
29596
+ family: "hand-drawn-wave",
29597
+ tuning: {
29598
+ amplitude: .85,
29599
+ irregularity: .35,
29600
+ rhythm: 2
29601
+ },
29602
+ minLayers: 2,
29603
+ maxLayers: 3,
29604
+ colourPresets: ["fade", "blend"]
29605
+ }
29606
+ ] },
28986
29607
  skinTokens: {
28987
29608
  radius: "8px",
28988
29609
  rule: "1px",
@@ -29000,30 +29621,36 @@ const brookLooks = {
29000
29621
  base: {
29001
29622
  kind: "token",
29002
29623
  token: "background",
29624
+ ground: "light",
29003
29625
  foreground: brookLinks
29004
29626
  },
29005
29627
  band: {
29006
29628
  kind: "token",
29007
29629
  token: "surfaceAlt",
29630
+ ground: "band",
29008
29631
  foreground: brookLinks
29009
29632
  },
29010
29633
  sheet: {
29011
29634
  kind: "token",
29012
29635
  token: "surface",
29636
+ ground: "band",
29013
29637
  foreground: brookLinks
29014
29638
  },
29015
29639
  deep: {
29016
29640
  kind: "token",
29017
- token: "secondary"
29641
+ token: "secondary",
29642
+ ground: "brand"
29018
29643
  },
29019
29644
  brand: {
29020
29645
  kind: "token",
29021
29646
  token: "primary",
29647
+ ground: "brand",
29022
29648
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
29023
29649
  },
29024
29650
  inverse: {
29025
29651
  kind: "token",
29026
- token: "text"
29652
+ token: "text",
29653
+ ground: "deep"
29027
29654
  }
29028
29655
  },
29029
29656
  rhythm: {
@@ -29075,7 +29702,6 @@ const brookLooks = {
29075
29702
  kind: "ground",
29076
29703
  grounds: ["brand", "deep"]
29077
29704
  },
29078
- occurrence: "first",
29079
29705
  join: asBoundaryOptionId("break:wave-gentle")
29080
29706
  }],
29081
29707
  offers: brookOffers,
@@ -29617,6 +30243,18 @@ const orbitBulge = asBoundaryOptionId("break:arc-bulge");
29617
30243
  const orbitLooks = {
29618
30244
  kind: "offers",
29619
30245
  skin: "orbit",
30246
+ finishes: {
30247
+ textures: {
30248
+ "paper-grain": .16,
30249
+ "handmade-paper": .15,
30250
+ plaster: .14
30251
+ },
30252
+ tones: {
30253
+ shading: .09,
30254
+ glow: .22,
30255
+ gradient: 1
30256
+ }
30257
+ },
29620
30258
  skinTokens: {
29621
30259
  radius: "28px",
29622
30260
  rule: "1.5px",
@@ -29641,22 +30279,26 @@ const orbitLooks = {
29641
30279
  base: {
29642
30280
  kind: "token",
29643
30281
  token: "background",
30282
+ ground: "light",
29644
30283
  foreground: orbitInks
29645
30284
  },
29646
30285
  band: {
29647
30286
  kind: "token",
29648
30287
  token: "surfaceAlt",
30288
+ ground: "band",
29649
30289
  foreground: orbitInks
29650
30290
  },
29651
30291
  sheet: {
29652
30292
  kind: "token",
29653
30293
  token: "surface",
30294
+ ground: "band",
29654
30295
  roleOnly: true,
29655
30296
  foreground: orbitInks
29656
30297
  },
29657
30298
  brand: {
29658
30299
  kind: "token",
29659
30300
  token: "primary",
30301
+ ground: "brand",
29660
30302
  foreground: orbitColouredInks.brand,
29661
30303
  buttonContext: {
29662
30304
  primary: unsafeAsOpaqueButtonColourToken("background"),
@@ -29666,6 +30308,7 @@ const orbitLooks = {
29666
30308
  deep: {
29667
30309
  kind: "token",
29668
30310
  token: "secondary",
30311
+ ground: "brand",
29669
30312
  foreground: orbitColouredInks.deep,
29670
30313
  buttonContext: {
29671
30314
  primary: unsafeAsOpaqueButtonColourToken("background"),
@@ -29761,6 +30404,18 @@ const folioLinks = { link: "primary" };
29761
30404
  const folioLooks = {
29762
30405
  kind: "offers",
29763
30406
  skin: "folio",
30407
+ finishes: {
30408
+ textures: {
30409
+ "paper-grain": .16,
30410
+ "handmade-paper": .15,
30411
+ plaster: .14
30412
+ },
30413
+ tones: {
30414
+ shading: .09,
30415
+ glow: .22,
30416
+ gradient: 1
30417
+ }
30418
+ },
29764
30419
  skinTokens: {
29765
30420
  radius: "10px",
29766
30421
  rule: "1px",
@@ -29778,27 +30433,32 @@ const folioLooks = {
29778
30433
  base: {
29779
30434
  kind: "token",
29780
30435
  token: "background",
30436
+ ground: "light",
29781
30437
  foreground: folioLinks
29782
30438
  },
29783
30439
  sheet: {
29784
30440
  kind: "token",
29785
30441
  token: "surface",
30442
+ ground: "band",
29786
30443
  roleOnly: true,
29787
30444
  foreground: folioLinks
29788
30445
  },
29789
30446
  band: {
29790
30447
  kind: "token",
29791
30448
  token: "muted",
30449
+ ground: "band",
29792
30450
  foreground: folioLinks
29793
30451
  },
29794
30452
  brand: {
29795
30453
  kind: "token",
29796
30454
  token: "primary",
30455
+ ground: "brand",
29797
30456
  foreground: folioLinks
29798
30457
  },
29799
30458
  deep: {
29800
30459
  kind: "token",
29801
30460
  token: "primary-800",
30461
+ ground: "deep",
29802
30462
  foreground: folioLinks
29803
30463
  }
29804
30464
  },
@@ -30104,6 +30764,15 @@ const folioLooks = {
30104
30764
  id: id("offerings-type-columns"),
30105
30765
  treatment: "type-columns",
30106
30766
  roleMap: folioRoles
30767
+ },
30768
+ {
30769
+ id: id("class-prices-rows"),
30770
+ treatment: "price-list",
30771
+ itemRoles: { container: "highlight" },
30772
+ roleMap: {
30773
+ ...folioRoles,
30774
+ highlight: "sheet"
30775
+ }
30107
30776
  }
30108
30777
  ],
30109
30778
  ownLayoutBlocks
@@ -30119,6 +30788,18 @@ const fulcrumRoles = {
30119
30788
  };
30120
30789
  const fulcrumLooks = {
30121
30790
  kind: "offers",
30791
+ finishes: {
30792
+ textures: {
30793
+ "paper-grain": .16,
30794
+ "handmade-paper": .15,
30795
+ plaster: .14
30796
+ },
30797
+ tones: {
30798
+ shading: .09,
30799
+ glow: .22,
30800
+ gradient: 1
30801
+ }
30802
+ },
30122
30803
  skin: "fulcrum",
30123
30804
  skinTokens: {
30124
30805
  radius: "3px",
@@ -30139,27 +30820,33 @@ const fulcrumLooks = {
30139
30820
  sheet: {
30140
30821
  kind: "token",
30141
30822
  token: "surface",
30823
+ ground: "band",
30142
30824
  roleOnly: true
30143
30825
  },
30144
30826
  base: {
30145
30827
  kind: "token",
30146
- token: "background"
30828
+ token: "background",
30829
+ ground: "light"
30147
30830
  },
30148
30831
  band: {
30149
30832
  kind: "token",
30150
- token: "muted"
30833
+ token: "muted",
30834
+ ground: "band"
30151
30835
  },
30152
30836
  brand: {
30153
30837
  kind: "token",
30154
- token: "secondary"
30838
+ token: "secondary",
30839
+ ground: "brand"
30155
30840
  },
30156
30841
  deep: {
30157
30842
  kind: "token",
30158
- token: "primary-900"
30843
+ token: "primary-900",
30844
+ ground: "deep"
30159
30845
  },
30160
30846
  inverse: {
30161
30847
  kind: "token",
30162
30848
  token: "text",
30849
+ ground: "deep",
30163
30850
  roleOnly: true
30164
30851
  }
30165
30852
  },
@@ -30493,6 +31180,12 @@ const fulcrumLooks = {
30493
31180
  id: id("offerings-type-columns"),
30494
31181
  treatment: "type-columns",
30495
31182
  roleMap: fulcrumRoles
31183
+ },
31184
+ {
31185
+ id: id("class-prices-big-figures"),
31186
+ treatment: "price-figures",
31187
+ itemRoles: { items: "card" },
31188
+ roleMap: fulcrumRoles
30496
31189
  }
30497
31190
  ],
30498
31191
  ownLayoutBlocks
@@ -30807,10 +31500,31 @@ const posterOffers = [
30807
31500
  id: id("offerings-type-columns"),
30808
31501
  treatment: "type-columns",
30809
31502
  roleMap: posterRoles
31503
+ },
31504
+ {
31505
+ id: id("class-prices-big-figures"),
31506
+ treatment: "price-figures",
31507
+ itemRoles: {
31508
+ items: "card",
31509
+ at: { middle: "statement" }
31510
+ },
31511
+ roleMap: posterRoles
30810
31512
  }
30811
31513
  ];
30812
31514
  const posterLooks = {
30813
31515
  kind: "offers",
31516
+ finishes: {
31517
+ textures: {
31518
+ "paper-grain": .16,
31519
+ "handmade-paper": .15,
31520
+ plaster: .14
31521
+ },
31522
+ tones: {
31523
+ shading: .09,
31524
+ glow: .22,
31525
+ gradient: 1
31526
+ }
31527
+ },
30814
31528
  skin: "poster",
30815
31529
  marksFrom: "primary",
30816
31530
  skinTokens: {
@@ -30836,29 +31550,35 @@ const posterLooks = {
30836
31550
  sheet: {
30837
31551
  kind: "token",
30838
31552
  token: "surface",
31553
+ ground: "band",
30839
31554
  roleOnly: true
30840
31555
  },
30841
31556
  base: {
30842
31557
  kind: "token",
30843
- token: "background"
31558
+ token: "background",
31559
+ ground: "light"
30844
31560
  },
30845
31561
  band: {
30846
31562
  kind: "token",
30847
- token: "muted"
31563
+ token: "muted",
31564
+ ground: "band"
30848
31565
  },
30849
31566
  brand: {
30850
31567
  kind: "token",
30851
31568
  token: "primary",
31569
+ ground: "brand",
30852
31570
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("accent") }
30853
31571
  },
30854
31572
  pop: {
30855
31573
  kind: "token",
30856
31574
  token: "accent",
31575
+ ground: "brand",
30857
31576
  buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primary") }
30858
31577
  },
30859
31578
  inverse: {
30860
31579
  kind: "token",
30861
- token: "text"
31580
+ token: "text",
31581
+ ground: "deep"
30862
31582
  }
30863
31583
  },
30864
31584
  rhythm: {
@@ -30912,6 +31632,18 @@ const lanternVeilRoles = {
30912
31632
  };
30913
31633
  const lanternLooks = {
30914
31634
  kind: "offers",
31635
+ finishes: {
31636
+ textures: {
31637
+ "paper-grain": .16,
31638
+ "handmade-paper": .15,
31639
+ plaster: .14
31640
+ },
31641
+ tones: {
31642
+ shading: .09,
31643
+ glow: .22,
31644
+ gradient: 1
31645
+ }
31646
+ },
30915
31647
  skin: "lantern",
30916
31648
  skinTokens: {
30917
31649
  radius: "10px",
@@ -30936,27 +31668,33 @@ const lanternLooks = {
30936
31668
  sheet: {
30937
31669
  kind: "token",
30938
31670
  token: "surface",
31671
+ ground: "band",
30939
31672
  roleOnly: true
30940
31673
  },
30941
31674
  base: {
30942
31675
  kind: "token",
30943
- token: "background"
31676
+ token: "background",
31677
+ ground: "light"
30944
31678
  },
30945
31679
  band: {
30946
31680
  kind: "token",
30947
- token: "muted"
31681
+ token: "muted",
31682
+ ground: "band"
30948
31683
  },
30949
31684
  brand: {
30950
31685
  kind: "token",
30951
- token: "secondary"
31686
+ token: "secondary",
31687
+ ground: "brand"
30952
31688
  },
30953
31689
  deep: {
30954
31690
  kind: "token",
30955
- token: "secondary-950"
31691
+ token: "secondary-950",
31692
+ ground: "deep"
30956
31693
  },
30957
31694
  inverse: {
30958
31695
  kind: "token",
30959
- token: "text"
31696
+ token: "text",
31697
+ ground: "deep"
30960
31698
  }
30961
31699
  },
30962
31700
  rhythm: {
@@ -31315,6 +32053,12 @@ const lanternLooks = {
31315
32053
  id: id("offerings-type-columns"),
31316
32054
  treatment: "type-columns",
31317
32055
  roleMap: lanternRoles
32056
+ },
32057
+ {
32058
+ id: id("class-prices-big-figures"),
32059
+ treatment: "price-figures",
32060
+ itemRoles: { items: "card" },
32061
+ roleMap: lanternRoles
31318
32062
  }
31319
32063
  ],
31320
32064
  ownLayoutBlocks
@@ -31334,6 +32078,18 @@ const measureRuledPanelRoles = {
31334
32078
  const measureNoMarkers = { cardMarker: ["none"] };
31335
32079
  const measureLooks = {
31336
32080
  kind: "offers",
32081
+ finishes: {
32082
+ textures: {
32083
+ "paper-grain": .16,
32084
+ "handmade-paper": .15,
32085
+ plaster: .14
32086
+ },
32087
+ tones: {
32088
+ shading: .09,
32089
+ glow: .22,
32090
+ gradient: 1
32091
+ }
32092
+ },
31337
32093
  skin: "measure",
31338
32094
  skinTokens: {
31339
32095
  radius: "0",
@@ -31360,23 +32116,28 @@ const measureLooks = {
31360
32116
  sheet: {
31361
32117
  kind: "token",
31362
32118
  token: "surface",
32119
+ ground: "band",
31363
32120
  roleOnly: true
31364
32121
  },
31365
32122
  base: {
31366
32123
  kind: "token",
31367
- token: "background"
32124
+ token: "background",
32125
+ ground: "light"
31368
32126
  },
31369
32127
  band: {
31370
32128
  kind: "token",
31371
- token: "muted"
32129
+ token: "muted",
32130
+ ground: "band"
31372
32131
  },
31373
32132
  brand: {
31374
32133
  kind: "token",
31375
- token: "secondary"
32134
+ token: "secondary",
32135
+ ground: "brand"
31376
32136
  },
31377
32137
  deep: {
31378
32138
  kind: "token",
31379
- token: "secondary-950"
32139
+ token: "secondary-950",
32140
+ ground: "deep"
31380
32141
  }
31381
32142
  },
31382
32143
  rhythm: {
@@ -31675,6 +32436,11 @@ const measureLooks = {
31675
32436
  id: id("offerings-type-columns"),
31676
32437
  treatment: "type-columns",
31677
32438
  roleMap: measureRoles
32439
+ },
32440
+ {
32441
+ id: id("class-prices-rows"),
32442
+ treatment: "price-list",
32443
+ roleMap: measureRoles
31678
32444
  }
31679
32445
  ],
31680
32446
  ownLayoutBlocks
@@ -32573,6 +33339,23 @@ const curatedSiteStyles = [
32573
33339
  },
32574
33340
  description: "Soft waves where your photos and colour bands meet, hand-drawn squiggles under headings, and calm panels for your classes. For yoga teachers, retreats and wellbeing practices.",
32575
33341
  generationBrief: "Use calm, warm words in sentence case. Say plainly what happens in a class or retreat, who it suits and what to bring, give real times, prices and places, and avoid wellness cliches and health claims.",
33342
+ photoShapes: {
33343
+ supported: [
33344
+ "default",
33345
+ "square",
33346
+ "rounded",
33347
+ "circle",
33348
+ "pebble",
33349
+ "standing-stone",
33350
+ "arch"
33351
+ ],
33352
+ defaults: {
33353
+ feature: "default",
33354
+ card: "default",
33355
+ gallery: "default",
33356
+ backdrop: "default"
33357
+ }
33358
+ },
32576
33359
  headingDecoration: noHeadingDecoration,
32577
33360
  tokenRecipes: {
32578
33361
  palette: "warm-neutral",
@@ -32669,6 +33452,39 @@ const curatedSiteStyles = [
32669
33452
  })
32670
33453
  ];
32671
33454
  const curatedSiteStylesById = new Map(curatedSiteStyles.map((style) => [style.id, style]));
33455
+ function curatedStyleLooks(input, photoShapes) {
33456
+ const looks = input.looks?.kind === "offers" ? withPhotoShapeOffers(input.looks, photoShapes) : input.looks ?? {
33457
+ kind: "recipe",
33458
+ recommendedAppearancePresetIds: (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId)
33459
+ };
33460
+ return {
33461
+ ...looks,
33462
+ edges: ("edges" in looks ? looks.edges : void 0) ?? existingStyleEdges
33463
+ };
33464
+ }
33465
+ /** Each arrangement style's photo shapes, by the skin its Looks render under. */
33466
+ const stylePhotoShapesBySkin = new Map(curatedSiteStyles.flatMap((style) => style.looks.kind === "offers" ? [[style.looks.skin, style.photoShapes]] : []));
33467
+ /**
33468
+ * Offered photo shapes are the style's supported list intersected with the Look's, through the
33469
+ * offer's `knobValues` clamp. An offer is left alone when the style supports every shape.
33470
+ */
33471
+ function withPhotoShapeOffers(looks, photoShapes) {
33472
+ return {
33473
+ ...looks,
33474
+ offers: looks.offers.map((offer) => {
33475
+ const look = lookDefinitionForId(offer.id);
33476
+ if (!(look !== null && [...look.structure.knobs, ...offer.addKnobs ?? []].includes("imageShape") && !(offer.removeKnobs ?? []).includes("imageShape"))) return offer;
33477
+ const allowed = (offer.knobValues?.imageShape ?? imageShapes).filter((shape) => photoShapes.supported.some((supported) => supported === shape));
33478
+ return allowed.length === imageShapes.length ? offer : {
33479
+ ...offer,
33480
+ knobValues: {
33481
+ ...offer.knobValues,
33482
+ imageShape: allowed
33483
+ }
33484
+ };
33485
+ })
33486
+ };
33487
+ }
32672
33488
  function getCuratedSiteStyle(id) {
32673
33489
  return curatedSiteStylesById.get(id) ?? null;
32674
33490
  }
@@ -32715,7 +33531,6 @@ curatedSiteStyles.forEach((style) => {
32715
33531
  if (style.looks.kind === "offers") {
32716
33532
  validateLookFallbacks(style.looks);
32717
33533
  validateCalendarModeOffers(style.looks);
32718
- validateSectionSurfaces(style.looks.skin, style.looks.surfaces);
32719
33534
  validateBookingBarSurface(style.looks.skin, style.looks.bookingBar, style.looks.surfaces);
32720
33535
  }
32721
33536
  (/* @__PURE__ */ new Set([...Object.values(style.footerLookRecipes ?? {}), ...style.recommendedFooterLookIds.map((id) => resolveFooterLookRecipe(style, id))])).forEach((recipe) => validateFooterRecipeSurfaces(style, recipe));
@@ -33204,9 +34019,10 @@ function compileArrangementLookRuntime(input) {
33204
34019
  if (!offer) return [];
33205
34020
  const roles = mergeItemRoles(look.structure.itemRoles, offer.itemRoles);
33206
34021
  const slotRoles = mergeSlotRoles(look, offer.slotRoles);
33207
- const [sectionGround] = offer.sectionSurface ? sectionBackgroundFor(offerSectionSurface(input.style, offer.sectionSurface), surfaceContext) : [];
34022
+ const [sectionGround] = offer.sectionSurface ? sectionBackgroundFor(offer.sectionSurface, offerSectionSurface(input.style, offer.sectionSurface), surfaceContext) : [];
34023
+ const { thumbnail: _thumbnail, ...runtimeLook } = look;
33208
34024
  return [{
33209
- look,
34025
+ look: runtimeLook,
33210
34026
  itemRoles: roles,
33211
34027
  slotRoles,
33212
34028
  roleMap: offer.roleMap,
@@ -33224,13 +34040,15 @@ function compileArrangementLookRuntime(input) {
33224
34040
  return {
33225
34041
  available,
33226
34042
  surfaces: input.style.surfaces,
34043
+ ...input.style.finishes ? { finishes: input.style.finishes } : {},
34044
+ grounds: Object.entries(input.style.surfaces).flatMap(([name, spec]) => spec.roleOnly ? [] : sectionBackgroundFor(name, spec, surfaceContext)),
33227
34045
  surfaceContext,
33228
34046
  byMode: Object.fromEntries(Object.entries(selected).flatMap(([mode, look]) => {
33229
34047
  const compiled = available.find((candidate) => candidate.look.id === look.id);
33230
34048
  return compiled ? [[mode, compiled]] : [];
33231
34049
  })),
33232
- fieldGrounds: fieldGroundTokens(input.style.surfaces),
33233
- rhythm: sectionRhythmSurfaces(input.style, input.flowPreset).flatMap((spec) => sectionBackgroundFor(spec, surfaceContext))
34050
+ ...input.style.progression === "deepen" ? { progression: "deepen" } : {},
34051
+ rhythm: sectionRhythmSurfaces(input.style, input.flowPreset).flatMap(({ name, spec }) => sectionBackgroundFor(name, spec, surfaceContext))
33234
34052
  };
33235
34053
  }
33236
34054
  /** Later entry/template binding may supply the content or settings, so retain the finite fallback closure. */
@@ -33298,6 +34116,7 @@ const arrangementLookHooks = [
33298
34116
  "data-one-person",
33299
34117
  "data-team-about",
33300
34118
  "data-shape",
34119
+ "data-ground-tone",
33301
34120
  "data-list-group",
33302
34121
  "data-section-spacing",
33303
34122
  "data-video-provider",
@@ -33343,18 +34162,27 @@ function itemSurfaceSpec(role, ground, style, base) {
33343
34162
  if (typeof name !== "string") {
33344
34163
  if (base.kind === "unmeasured") throw new Error(`A ${role} shade has no paint to shade on a ${base.paint} section`);
33345
34164
  return {
33346
- kind: "tint",
33347
- base: base.token,
33348
- ...name
34165
+ spec: {
34166
+ kind: "tint",
34167
+ base: base.token,
34168
+ ...name
34169
+ },
34170
+ ground
33349
34171
  };
33350
34172
  }
33351
34173
  if (name === "section") return {
33352
- kind: "paint",
33353
- paint: { kind: "transparent" }
34174
+ spec: {
34175
+ kind: "paint",
34176
+ paint: { kind: "transparent" }
34177
+ },
34178
+ ground
33354
34179
  };
33355
34180
  const spec = style.surfaces[name];
33356
34181
  if (!spec) throw new Error(`Undeclared item surface ${name}`);
33357
- return spec;
34182
+ return {
34183
+ spec: styleSurfacePaint(spec),
34184
+ ground: spec.ground
34185
+ };
33358
34186
  }
33359
34187
  function assignedItemRoles(look, overrides, slotRoles) {
33360
34188
  const roles = mergeItemRoles(look.structure.itemRoles, overrides);
@@ -33394,26 +34222,25 @@ function combinedCalendarSelections(style, selected, catalogue) {
33394
34222
  calendar: month
33395
34223
  };
33396
34224
  }
33397
- function sectionBackgroundFor(spec, context) {
33398
- const surface = resolveSurface(spec, context);
34225
+ function sectionBackgroundFor(name, spec, context) {
34226
+ const surface = resolveSurface(styleSurfacePaint(spec), context);
33399
34227
  return surface.kind === "owned" && surface.paint.kind === "solid" ? [{
33400
- type: "color",
33401
- color: surface.paint.token,
33402
- textColor: surface.foreground.text,
33403
- headingColor: surface.foreground.heading,
33404
- linkColor: surface.foreground.link,
33405
- supportingColor: surface.foreground.supporting
34228
+ name,
34229
+ ground: spec.ground,
34230
+ ...spec.kind === "token" && spec.finish ? { groundPaint: {
34231
+ base: surface.paint.token,
34232
+ ...spec.finish
34233
+ } } : {},
34234
+ paint: {
34235
+ type: "color",
34236
+ color: surface.paint.token,
34237
+ textColor: surface.foreground.text,
34238
+ headingColor: surface.foreground.heading,
34239
+ linkColor: surface.foreground.link,
34240
+ supportingColor: surface.foreground.supporting
34241
+ }
33406
34242
  }] : [];
33407
34243
  }
33408
- /**
33409
- * The style's own section ground for a colour token, with that surface's inks, or null when the
33410
- * token is not one of the style's section colours. An owner who paints a section one of these
33411
- * colours gets the foreground the style gives that ground, as if the style had chosen it.
33412
- */
33413
- function styleSectionBackgroundForColour(runtime, token) {
33414
- const spec = Object.values(runtime.surfaces).find((candidate) => candidate.kind === "token" && !candidate.roleOnly && candidate.token === token);
33415
- return spec ? sectionBackgroundFor(spec, runtime.surfaceContext)[0] ?? null : null;
33416
- }
33417
34244
  /** An offer's own section surface must be a declared token surface a section may take. */
33418
34245
  function offerSectionSurface(style, name) {
33419
34246
  const spec = style.surfaces[name];
@@ -33425,7 +34252,10 @@ function sectionRhythmSurfaces(style, flow) {
33425
34252
  return (style.rhythm?.[flow] ?? []).flatMap((name) => {
33426
34253
  const spec = style.surfaces[name];
33427
34254
  if (!spec) throw new Error(`Undeclared rhythm surface ${name}`);
33428
- return [spec];
34255
+ return [{
34256
+ name,
34257
+ spec
34258
+ }];
33429
34259
  });
33430
34260
  }
33431
34261
  //#endregion
@@ -33457,21 +34287,6 @@ function requireArrangementSlotSurface(surface) {
33457
34287
  if (surface.proof === "unproven-media") throw new Error("Arrangement slot surfaces never paint media");
33458
34288
  return surface;
33459
34289
  }
33460
- /** Solid tokens retain section semantics; literals/gradients use the solved ink. */
33461
- function resolvedSurfaceGround(surface, inherited) {
33462
- if (!surface || surface.kind === "inherit") return inherited;
33463
- if (surface.tintBase) return deriveSectionGround({
33464
- kind: "authored-colour",
33465
- background: {
33466
- type: "color",
33467
- color: surface.tintBase
33468
- }
33469
- }, surface.revision.palette);
33470
- const classified = surface.paint.kind === "solid" ? solidTokenGround(surface.paint.token) : null;
33471
- if (classified) return classified;
33472
- const ink = resolveOpaqueSurfaceHex(surface.foreground.text, surface.revision.palette, "background");
33473
- return ink && featuresFromHex(ink).Y >= .5 ? "deep" : "light";
33474
- }
33475
34290
  /** Resolve a parent completely (role, then tint) before deciding its children. */
33476
34291
  function resolveLookSurfacePresentation(input) {
33477
34292
  const roles = slotAssignments(input.look);
@@ -33523,24 +34338,25 @@ function resolveSlot(input, slot, visiting = []) {
33523
34338
  function surfaceBase(surface, inherited) {
33524
34339
  return surface?.kind === "owned" ? {
33525
34340
  kind: "measured",
33526
- token: surface.tintBase ?? surface.paint.token
34341
+ token: surface.tintBase ?? surface.paint.token,
34342
+ ...surface.backdropSamples ? { samples: surface.backdropSamples } : {}
33527
34343
  } : inherited;
33528
34344
  }
33529
34345
  /** Slot tints need a measured paint; shades inherit their enclosing button request and ground. */
33530
34346
  function applySlotTint(input, slot, role, under) {
33531
- const spec = role ? itemSurfaceSpec(role, under.ground, input.style, under.base) : void 0;
34347
+ const declared = role ? itemSurfaceSpec(role, under.ground, input.style, under.base) : {
34348
+ spec: void 0,
34349
+ ground: under.ground
34350
+ };
34351
+ const spec = declared.spec;
33532
34352
  const owned = spec ? resolveSurface(spec, slotContext(spec, under, input.style.context)) : void 0;
33533
34353
  const tint = activeSlotTint(input, slot, spec);
33534
34354
  const base = tint?.source === "shade" ? under.base : surfaceBase(owned, under.base);
33535
34355
  if (!tint || base.kind === "unmeasured") return {
33536
34356
  surface: owned,
33537
- ground: resolvedSurfaceGround(owned, under.ground),
34357
+ ground: declared.ground,
33538
34358
  buttonContext: slotButtonRequest(spec, under, input.style.context)
33539
34359
  };
33540
- const baseSurface = resolveSurface({
33541
- kind: "token",
33542
- token: base.token
33543
- }, input.style.context);
33544
34360
  const tintSpec = {
33545
34361
  kind: "tint",
33546
34362
  base: base.token,
@@ -33551,15 +34367,17 @@ function applySlotTint(input, slot, role, under) {
33551
34367
  return {
33552
34368
  surface: resolveSurface(tintSpec, slotContext(tintSpec, under, input.style.context)),
33553
34369
  buttonContext: slotButtonRequest(tintSpec, under, input.style.context),
33554
- ground: tint.source === "shade" ? under.ground : resolvedSurfaceGround(baseSurface, under.ground)
34370
+ ground: tint.source === "shade" ? under.ground : declared.ground
33555
34371
  };
33556
34372
  }
33557
34373
  /** Only a shade owns paint derived from its ancestor; transparent surfaces keep their canonical inherited decision. */
33558
34374
  function slotContext(spec, under, context) {
33559
- return spec.kind === "tint" && spec.source === "shade" ? {
34375
+ const inherits = spec.kind === "tint" && spec.source === "shade";
34376
+ return {
33560
34377
  ...context,
33561
- buttonContext: under.buttonContext
33562
- } : context;
34378
+ ...under.base.kind === "measured" && under.base.samples && spec.kind === "tint" ? { backdropSamples: under.base.samples } : {},
34379
+ ...inherits ? { buttonContext: under.buttonContext } : {}
34380
+ };
33563
34381
  }
33564
34382
  /** What a slot hands its descendants: the resolver's request, never its already-checked button styles. */
33565
34383
  function slotButtonRequest(spec, under, context) {
@@ -33859,4 +34677,4 @@ function createInteractiveIslandCodec(options) {
33859
34677
  };
33860
34678
  }
33861
34679
  //#endregion
33862
- export { buildTextContrastShadow as $, testimonialsCompositionTreatmentValues as $t, resolveModeArrangement as A, asDesignBlockId as An, deriveSectionGround as At, designRuntimeRulesForSiteStyle as B, resolveEffectiveKnobs as Bt, getCompatibleBlockAppearancePresets as C, openCardRoleValue as Cn, noneBoundaryOption as Ct, arrangementManifestFromVariants as D, asHeaderStyleId as Dn, anglePolygonCss as Dt, styleSectionBackgroundForColour as E, asHeaderLayoutId as En, transitionIntentForTreatment as Et, deriveSiteStyleBlockPolicy as F, defaultHeroImageSurfaceTreatment as Ft, compiledRuntimeStyleFieldNames as G, defineFrameCapability as Gt, getCuratedSiteStyle as H, assertNever as Ht, filterLayoutProfilesForPolicy as I, stripStaleTransitionStyleGroup as It, resolveCardRole as J, featureCardCompositionTreatmentValues as Jt, stripCompiledRuntimeStyleFields as K, defineNoBlockDesignCapability as Kt, filterLookIdsForPolicy as L, themeV2CompilerOwnedFieldNames as Lt, applyBlockContentVariantPolicy as M, asPageFlowPresetId as Mn, resolveSectionBackground as Mt, applySiteStyleBlockPoliciesToPageDesignIntent as N, asSiteStyleId as Nn, sectionForegroundBackground as Nt, readStoredMode as O, siteChromeBackgroundOverrideOwner as On, transitionCatalogueEntries as Ot, buildInitialPolicyPageDesignIntent as P, makeBoundaryId as Pn, sectionSurfaceBase as Pt, getNavLinkPreset as Q, sectionBackgroundPaintValues as Qt, componentRuntimeRulesForSiteStyle as R, appearancePresets as Rt, compileArrangementLookRuntime as S, itemRoleValues as Sn, isDecorativeTransitionIntent as St, resolveLookForBlock as T, parseGradientPresetId as Tn, spaciousBoundaryOption as Tt, requireCuratedSiteStyle as U, defineBlockDesignCapability as Ut, designRuntimeRulesForTheme as V, lookModes as Vt, compilePageRuntimeFields as W, defineExactCatalog as Wt, generateFooterCss as X, offeringsPreviewCompositionTreatmentValues as Xt, generateDefaultCardSystem as Y, introCompositionTreatmentValues as Yt, footerForegroundCandidates as Z, plainFrame as Zt, selectItemSurfacePresentation as _, runtimeBoxBackgroundSchema as _n, sectionShapeHook as _t, defineClientOwnedBlockRuntime as a, arrangementSlotNames as an, navLinkHoverColorCandidate as at, arrangementStyleAvailability as b, cardRoleSchema as bn, boundaryRuntimeMetricsForDecorativeTransition as bt, logger as c, cardListKnobBlocks as cn, parsePageDesignIntent as ct, listLookSlot as d, themeSchema as dn, resolvePageDesignBoundaryChoice as dt, toNonEmptyReadonlyArray as en, generateNavLinkCSS as et, lookListPresentationSchemaShape as f, headerVariantValues as fn, pageDesignDecisionsV2Schema as ft, resolveLookSurfacePresentation as g, boxBackgroundSchema as gn, sectionShapeFromContent as gt, lookPresentationOnPalette as h, boxBackgroundOverlaySchema as hn, sectionShapeForGround as ht, createZodCodec as i, surfaceToneFromForegroundToken as in, generateInteractiveChildInheritanceCSS as it, resolvePublishedLook as j, asLayoutVariantKey as jn, parseCanonicalRuntimeBackground as jt, resolveEffectiveArrangement as k, asAppearancePresetId as kn, applyLookPhotoTreatment as kt, listItemPresentation as l, lookKnobBlocks as ln, rebasePageDesignIntentToSiteStyle as lt, itemRole as m, customCssRuleSchema as mn, getGradientPreset as mt, createInteractiveIslandCodec as n, opaqueSurfaceDeclarations as nn, resolveEffectApplications as nt, defineProgressiveBlockRuntime as o, TokenResolver as on, navLinkOwnsHoverForeground as ot, resolvedItemSurfaceProps as p, blockCustomCssRuleSchema as pn, gradientToCss as pt, surfaceResolutionContextFromTheme as q, designIssueSeverityForPolicy as qt, defineInteractiveIslandMetaKeys as r, selectLogoVariant as rn, resolveEffectPaint as rt, isDecodeSuccess as s, cardListFamilyBlocks as sn, navLinkOwnsUnderline as st, buildInteractiveIslandProps as t, opaqueSurfaceContextFromTheme as tn, generateEffectsCSS as tt, listLookControl as u, sectionStylesOverrideSchema as un, resolvePageDesignBlockLookChoice as ut, arrangementAppearancePresets as v, fontWidthFits as vn, boundaryOptionForTransitionIntent as vt, resolveArrangementLookForBlock as w, surfaceCardRoleValues as wn, softBoundaryOption as wt, automaticArrangementLook as x, cardVariantRoleValues as xn, boundaryTreatmentForBoundaryOptionId as xt, arrangementLookHooks as y, boxlessCardVariantValue as yn, boundaryOptions as yt, componentRuntimeRulesForTheme as z, blockAppearancePresets as zt };
34680
+ export { sectionShapeFromContent as $, defineBlockDesignCapability as $t, resolvePublishedLook as A, boxlessCardVariantValue as An, resolvePageDesignBoundaryChoice as At, designRuntimeRulesForTheme as B, siteChromeBackgroundOverrideOwner as Bn, sectionTransitionFamilies as Bt, getCompatibleBlockAppearancePresets as C, headerVariantValues as Cn, mixGroundColour as Ct, readStoredMode as D, boxBackgroundSchema as Dn, parsePageDesignIntent as Dt, arrangementManifestFromVariants as E, boxBackgroundOverlaySchema as En, groundTextureDataUri as Et, filterLayoutProfilesForPolicy as F, surfaceCardRoleValues as Fn, boundaryRuntimeMetricsForDecorativeTransition as Ft, compiledRuntimeStyleFieldNames as G, asSiteStyleId as Gn, anglePolygonCss as Gt, requireCuratedSiteStyle as H, asDesignBlockId as Hn, spaciousBoundaryOption as Ht, filterLookIdsForPolicy as I, parseGradientPresetId as In, boundaryTreatmentForBoundaryOptionId as It, brandScrimOverlay as J, appearancePresets as Jt, stripCompiledRuntimeStyleFields as K, makeBoundaryId as Kn, transitionCatalogueEntries as Kt, componentRuntimeRulesForSiteStyle as L, asHeaderLayoutId as Ln, isDecorativeTransitionIntent as Lt, applySiteStyleBlockPoliciesToPageDesignIntent as M, cardVariantRoleValues as Mn, boundaryOptionForTreatment as Mt, buildInitialPolicyPageDesignIntent as N, itemRoleValues as Nn, boundaryOptionIdForTreatment as Nt, resolveEffectiveArrangement as O, runtimeBoxBackgroundSchema as On, rebasePageDesignIntentToSiteStyle as Ot, deriveSiteStyleBlockPolicy as P, openCardRoleValue as Pn, boundaryOptions as Pt, sectionShapeForGround as Q, assertNever as Qt, componentRuntimeRulesForTheme as R, asHeaderStyleId as Rn, noneBoundaryOption as Rt, compileArrangementLookRuntime as S, themeSchema as Sn, groundFlatZone as St, resolveLookForBlock as T, customCssRuleSchema as Tn, resolveSectionTreatment as Tt, stylePhotoShapesBySkin as U, asLayoutVariantKey as Un, transitionCatalogueEntryForIntent as Ut, getCuratedSiteStyle as V, asAppearancePresetId as Vn, softBoundaryOption as Vt, compilePageRuntimeFields as W, asPageFlowPresetId as Wn, transitionIntentForTreatment as Wt, gradientToCss as X, resolveEffectiveKnobs as Xt, defaultHeroImageSurfaceTreatment as Y, blockAppearancePresets as Yt, getGradientPreset as Z, lookModes as Zt, selectItemSurfacePresentation as _, cardListKnobBlocks as _n, navLinkOwnsHoverForeground as _t, defineClientOwnedBlockRuntime as a, introCompositionTreatmentValues as an, resolveCardRole as at, arrangementStyleAvailability as b, sectionStylesOverrideSchema as bn, stripStaleTransitionStyleGroup as bt, logger as c, requireNonEmptyReadonlyArray as cn, footerForegroundCandidates as ct, listLookSlot as d, toNonEmptyReadonlyArray as dn, generateNavLinkCSS as dt, defineExactCatalog as en, sectionShapeHook as et, lookListPresentationSchemaShape as f, opaqueSurfaceContextFromTheme as fn, generateEffectsCSS as ft, resolveLookSurfacePresentation as g, cardListFamilyBlocks as gn, navLinkHoverColorCandidate as gt, lookPresentationOnPalette as h, TokenResolver as hn, generateInteractiveChildInheritanceCSS as ht, createZodCodec as i, featureCardCompositionTreatmentValues as in, existingStyleEdges as it, applyBlockContentVariantPolicy as j, cardRoleSchema as jn, boundaryOptionForTransitionIntent as jt, resolveModeArrangement as k, fontWidthFits as kn, resolvePageDesignBlockLookChoice as kt, listItemPresentation as l, sectionBackgroundPaintValues as ln, getNavLinkPreset as lt, itemRole as m, arrangementSlotNames as mn, resolveEffectPaint as mt, createInteractiveIslandCodec as n, defineNoBlockDesignCapability as nn, isDrawnImageShape as nt, defineProgressiveBlockRuntime as o, offeringsPreviewCompositionTreatmentValues as on, generateDefaultCardSystem as ot, resolvedItemSurfaceProps as p, opaqueSurfaceDeclarations as pn, resolveEffectApplications as pt, surfaceResolutionContextFromTheme as q, pageDesignDecisionsV2Schema as qt, defineInteractiveIslandMetaKeys as r, designIssueSeverityForPolicy as rn, photoShapeDrawing as rt, isDecodeSuccess as s, plainFrame as sn, generateFooterCss as st, buildInteractiveIslandProps as t, defineFrameCapability as tn, imageShapeGeometry as tt, listLookControl as u, testimonialsCompositionTreatmentValues as un, buildTextContrastShadow as ut, arrangementAppearancePresets as v, lookKnobBlocks as vn, navLinkOwnsUnderline as vt, resolveArrangementLookForBlock as w, blockCustomCssRuleSchema as wn, resolveGroundPaint as wt, automaticArrangementLook as x, sectionTreatmentSchema as xn, themeV2CompilerOwnedFieldNames as xt, arrangementLookHooks as y, photoShapeKnobBlocks as yn, sectionOwnerStyleChoices as yt, designRuntimeRulesForSiteStyle as z, pageDesignEditorBackgroundOverrideOwner as zn, sectionBoundaryTreatmentsEqual as zt };