@riverbankcms/sdk 0.161.0 → 0.163.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 (193) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
  3. package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
  4. package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
  5. package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
  6. package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
  7. package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
  8. package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
  10. package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
  11. package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
  12. package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
  13. package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
  14. package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
  15. package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
  16. package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
  17. package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
  18. package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
  20. package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  40. package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
  41. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  43. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  44. package/dist/_dts/sdk/src/server.d.ts +5 -5
  45. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  46. package/dist/_dts/{types-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
  47. package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
  48. package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
  49. package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
  50. package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
  51. package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
  52. package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
  53. package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
  54. package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
  55. package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
  56. package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
  57. package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
  58. package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
  59. package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
  60. package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
  61. package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
  62. package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
  63. package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
  64. package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
  65. package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
  66. package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
  67. package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
  68. package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
  69. package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
  70. package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
  71. package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
  72. package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
  73. package/dist/client/bookings.mjs +5 -5
  74. package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
  75. package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
  76. package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
  77. package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
  78. package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
  79. package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
  80. package/dist/client/client.mjs +34 -69
  81. package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
  82. package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
  83. package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
  84. package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
  85. package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
  86. package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
  87. package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
  88. package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
  89. package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
  90. package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
  91. package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
  92. package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
  93. package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
  94. package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
  95. package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
  96. package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
  97. package/dist/client/gifting/client.mjs +3 -3
  98. package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
  99. package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
  100. package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
  101. package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
  102. package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
  103. package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
  104. package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
  105. package/dist/client/portal/client.mjs +1116 -85
  106. package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
  107. package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
  108. package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
  109. package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
  110. package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
  111. package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
  112. package/dist/client/rendering/client.mjs +26 -26
  113. package/dist/client/rendering/islands.mjs +1 -1
  114. package/dist/client/rendering.mjs +22 -19
  115. package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
  116. package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
  117. package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
  118. package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
  119. package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
  120. package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
  121. package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
  122. package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
  123. package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
  124. package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
  125. package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
  126. package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
  127. package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
  128. package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
  129. package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
  130. package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
  131. package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
  132. package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
  133. package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
  134. package/dist/preview-next/before-render.mjs +3 -3
  135. package/dist/preview-next/chrome.css +1 -1
  136. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
  137. package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
  138. package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
  139. package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
  141. package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
  142. package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
  143. package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
  144. package/dist/preview-next/client/runtime.mjs +3 -3
  145. package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
  146. package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
  147. package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
  148. package/dist/preview-next/edit-map.css +37 -0
  149. package/dist/preview-next/keepAlive.mjs +2 -2
  150. package/dist/preview-next/maplibre-gl.css +1 -0
  151. package/dist/preview-next/middleware.mjs +1 -1
  152. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  153. package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CxCstfkP.mjs} +403 -200
  154. package/dist/preview-next/upload-structure.css +18 -0
  155. package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
  156. package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
  157. package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
  161. package/dist/server/index.mjs +3 -3
  162. package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
  163. package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
  164. package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
  165. package/dist/server/next.mjs +9 -9
  166. package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
  167. package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
  168. package/dist/server/page-converter.mjs +1 -1
  169. package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
  170. package/dist/server/prebuild.mjs +1 -1
  171. package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
  172. package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
  173. package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
  174. package/dist/server/rendering/server.mjs +4 -4
  175. package/dist/server/rendering.mjs +8 -8
  176. package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
  177. package/dist/server/routing.mjs +1 -1
  178. package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
  179. package/dist/server/server.mjs +3 -3
  180. package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
  181. package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
  182. package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
  183. package/dist/server/theme-bridge.mjs +1 -1
  184. package/dist/server/theme.mjs +1 -1
  185. package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
  186. package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
  187. package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
  188. package/dist/styles/index.css +1034 -113
  189. package/package.json +1 -1
  190. package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
  191. package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
  192. package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
  193. package/dist/server/loadPage--DXBwI8V.mjs +0 -2
@@ -1,4 +1,5 @@
1
- import { $ as NAV_LINK_TEXT_SIZE_MAP, $t as noHeadingDecoration, At as asAppearancePresetId, Bt as asPageFlowPresetId, Dt as cardRoleValues, Ft as asDesignBoundaryId, G as buttonStyleSelectionSchema, Hn as surfaceForegroundInputFromResolved, Ht as assertNever, J as generateInteractiveChildInheritanceCSS, K as generateEffectsCSS, Kn as expandPalette, Nt as asBoundaryOptionId, Pt as asDesignBlockId, Q as NAV_LINK_PADDING_X_MAP, Qt as makeBoundaryId, Rt as asDesignSystemTemplateId, V as headerInteractionQuietPalette, Vt as asSiteStyleId, W as defaultButtonStyleSelectionFor, Wn as surfaceForegroundValue, Wt as defineExactCatalog, X as NAV_LINK_LETTER_SPACING_MAP, Y as NAV_LINK_BORDER_RADIUS_MAP, Yt as flushPanelFrame, Z as NAV_LINK_PADDING_MAP, ar as paletteValueKey, ct as siteChromeBackgroundOverrideOwner, er as featuresFromHex, et as navLinkHoverColorCandidate, gn as TokenResolver, hn as planForegroundHover, ir as paletteModeSchema, lr as unsafeAsOpaqueButtonColourToken, nn as plainFrame, nr as hexColorSchema, nt as navLinkOwnsUnderline, or as paletteValueKeySchema, q as generateBaseInteractiveCSS, rn as requireNonEmptyReadonlyArray, rr as paletteColorsSchema, rt as navEffectPolicy, sr as requirePaletteColorsFromEntries, tn as panelFrame, tt as navLinkOwnsHoverForeground, un as resolveSurface, ur as parseThemeColorToken, ut as themeV2RuntimeStyleFieldNames, xn as rgbColorValue, zt as asLayoutVariantKey } from "./schema-CD4peO7m.mjs";
1
+ "use client";
2
+ import { $ as generateInteractiveChildInheritanceCSS, $n as requirePaletteColorsFromEntries, Bt as makeBoundaryId, Ct as asDesignBoundaryId, Dt as asPageFlowPresetId, Et as asLayoutVariantKey, Fn as planForegroundHover, G as headerInteractionPaletteValues, Gt as requireNonEmptyReadonlyArray, H as cardRoleValues, Hn as scrimTone, In as TokenResolver, It as flushPanelFrame, J as logoSizePolicyValues, Jn as hexColorSchema, K as headerInteractionQuietPalette, Kn as featuresFromHex, On as surfaceToneFromForegroundToken, Ot as asSiteStyleId, Q as generateBaseInteractiveCSS, Qn as paletteValueKeySchema, Qt as resolveSurface, St as asDesignBlockId, Tt as asDesignSystemTemplateId, Ut as panelFrame, V as cardRoleSchema, Vn as gradientScrimSamples, Vt as noHeadingDecoration, Wn as resolveConcreteColorHex, Wt as plainFrame, X as buttonStyleSelectionSchema, Xn as paletteModeSchema, Y as defaultButtonStyleSelectionFor, Yn as paletteColorsSchema, Z as generateEffectsCSS, Zn as paletteValueKey, _r as parseEditorSessionGeneration, _t as arrangementModes, an as surfaceForegroundInputFromResolved, at as navLinkHoverColorCandidate, bt as asBlockOrderIndex, ct as navEffectPolicy, er as unsafeAsOpaqueButtonColourToken, et as NAV_LINK_BORDER_RADIUS_MAP, ft as runtimeBoxBackgroundSchema, gt as themeV2RuntimeStyleFieldNames, hn as rgbColorValue, it as NAV_LINK_TEXT_SIZE_MAP, jt as defineExactCatalog, kn as resolveSurfaceForeground, kt as assertNever, mt as siteChromeBackgroundOverrideOwner, n as headerPositioningValues, nr as themeColorShadeSteps, nt as NAV_LINK_PADDING_MAP, ot as navLinkOwnsHoverForeground, q as brandDisplayModeValues, rt as NAV_LINK_PADDING_X_MAP, sn as surfaceForegroundValue, st as navLinkOwnsUnderline, tr as parseThemeColorToken, tt as NAV_LINK_LETTER_SPACING_MAP, vt as asAppearancePresetId, wt as asDesignPageId, xt as asBoundaryOptionId, yt as asBlockContentVersionId, zn as expandPalette, zt as isArrangementMode } from "./schema-BFwQDvJL.mjs";
2
3
  import { z } from "zod";
3
4
  //#region ../theme-core/src/site-styles/appearancePresetTypes.ts
4
5
  /** Block supply is capability, never a second Look catalogue. */
@@ -76,7 +77,7 @@ function isArrangementAppearancePreset(preset) {
76
77
  return preset.structure.kind === "arrangement";
77
78
  }
78
79
  function lookModes(look) {
79
- return Object.keys(look.structure.byMode).map((mode) => mode === "default" ? null : mode);
80
+ return Object.keys(look.structure.byMode).map((mode) => isArrangementMode(mode) ? mode : null);
80
81
  }
81
82
  function cardListKnobDefaults(block, arrangement, knobs, defaults) {
82
83
  if (!cardListKnobBlocks.some((kind) => kind === `block.${block}`)) return {};
@@ -291,10 +292,11 @@ const id$1 = asAppearancePresetId;
291
292
  const appearancePresets = [
292
293
  defineBlockAppearancePreset({
293
294
  structure: {
294
- kind: "legacy",
295
+ kind: "recipe",
295
296
  constraints: { layoutFamilies: ["centered", "compact"] }
296
297
  },
297
298
  id: "hero-immersive-image",
299
+ carry: { kind: "by-layout" },
298
300
  target: "hero",
299
301
  label: "Photo behind centred text",
300
302
  blockKinds: ["block.hero"],
@@ -316,10 +318,11 @@ const appearancePresets = [
316
318
  }),
317
319
  defineBlockAppearancePreset({
318
320
  structure: {
319
- kind: "legacy",
321
+ kind: "recipe",
320
322
  constraints: { layoutFamilies: ["centered", "compact"] }
321
323
  },
322
324
  id: "hero-bottom-left-panel",
325
+ carry: { kind: "by-layout" },
323
326
  target: "hero",
324
327
  label: "Text panel, bottom left of photo",
325
328
  blockKinds: ["block.hero"],
@@ -365,10 +368,11 @@ const appearancePresets = [
365
368
  }),
366
369
  defineBlockAppearancePreset({
367
370
  structure: {
368
- kind: "legacy",
371
+ kind: "recipe",
369
372
  constraints: { layoutFamilies: ["centered", "compact"] }
370
373
  },
371
374
  id: "hero-poster-image",
375
+ carry: { kind: "by-layout" },
372
376
  target: "hero",
373
377
  label: "Strong brand tint, big title",
374
378
  blockKinds: ["block.hero"],
@@ -394,10 +398,11 @@ const appearancePresets = [
394
398
  }),
395
399
  defineBlockAppearancePreset({
396
400
  structure: {
397
- kind: "legacy",
401
+ kind: "recipe",
398
402
  constraints: { layoutFamilies: ["centered", "compact"] }
399
403
  },
400
404
  id: "hero-brand-scrim",
405
+ carry: { kind: "by-layout" },
401
406
  target: "hero",
402
407
  label: "Photo with a brand tint",
403
408
  blockKinds: ["block.hero"],
@@ -417,10 +422,11 @@ const appearancePresets = [
417
422
  }),
418
423
  defineBlockAppearancePreset({
419
424
  structure: {
420
- kind: "legacy",
425
+ kind: "recipe",
421
426
  constraints: { layoutFamilies: ["centered", "compact"] }
422
427
  },
423
428
  id: "hero-brand-scrim-fixed-frame",
429
+ carry: { kind: "by-layout" },
424
430
  target: "hero",
425
431
  label: "Fixed photo with a brand tint",
426
432
  blockKinds: ["block.hero"],
@@ -442,10 +448,14 @@ const appearancePresets = [
442
448
  }),
443
449
  defineBlockAppearancePreset({
444
450
  structure: {
445
- kind: "legacy",
451
+ kind: "recipe",
446
452
  constraints: { layoutFamilies: ["centered", "compact"] }
447
453
  },
448
454
  id: "hero-brand-depth-expressive",
455
+ carry: {
456
+ kind: "look",
457
+ look: "hero-page-head"
458
+ },
449
459
  target: "hero",
450
460
  label: "Brand colour, no photo",
451
461
  blockKinds: ["block.hero"],
@@ -458,8 +468,22 @@ const appearancePresets = [
458
468
  }
459
469
  }),
460
470
  defineBlockAppearancePreset({
461
- structure: { kind: "legacy" },
471
+ structure: { kind: "recipe" },
462
472
  id: "hero-contained-intro",
473
+ carry: {
474
+ kind: "look",
475
+ look: "hero-page-head",
476
+ layouts: {
477
+ split: {
478
+ kind: "look",
479
+ look: "hero-photo-beside-text"
480
+ },
481
+ splitReverse: {
482
+ kind: "look",
483
+ look: "hero-photo-beside-text"
484
+ }
485
+ }
486
+ },
463
487
  target: "hero",
464
488
  label: "Text in a panel on a soft band",
465
489
  blockKinds: ["block.hero"],
@@ -472,10 +496,14 @@ const appearancePresets = [
472
496
  }),
473
497
  defineBlockAppearancePreset({
474
498
  structure: {
475
- kind: "legacy",
499
+ kind: "recipe",
476
500
  constraints: { layoutFamilies: ["split"] }
477
501
  },
478
502
  id: "hero-split-editorial",
503
+ carry: {
504
+ kind: "look",
505
+ look: "hero-photo-beside-text"
506
+ },
479
507
  target: "hero",
480
508
  label: "Split on the page background",
481
509
  blockKinds: ["block.hero"],
@@ -487,10 +515,14 @@ const appearancePresets = [
487
515
  }),
488
516
  defineBlockAppearancePreset({
489
517
  structure: {
490
- kind: "legacy",
518
+ kind: "recipe",
491
519
  constraints: { layoutFamilies: ["split"] }
492
520
  },
493
521
  id: "hero-split-brand",
522
+ carry: {
523
+ kind: "look",
524
+ look: "hero-photo-beside-text"
525
+ },
494
526
  target: "hero",
495
527
  label: "Split on brand colour",
496
528
  blockKinds: ["block.hero"],
@@ -503,10 +535,14 @@ const appearancePresets = [
503
535
  }),
504
536
  defineBlockAppearancePreset({
505
537
  structure: {
506
- kind: "legacy",
538
+ kind: "recipe",
507
539
  constraints: { layoutFamilies: ["split"] }
508
540
  },
509
541
  id: "hero-split-soft-panel",
542
+ carry: {
543
+ kind: "look",
544
+ look: "hero-photo-beside-text"
545
+ },
510
546
  target: "hero",
511
547
  label: "Split, panel on a soft band",
512
548
  blockKinds: ["block.hero"],
@@ -518,10 +554,14 @@ const appearancePresets = [
518
554
  }),
519
555
  defineBlockAppearancePreset({
520
556
  structure: {
521
- kind: "legacy",
557
+ kind: "recipe",
522
558
  constraints: { layoutFamilies: ["split"] }
523
559
  },
524
560
  id: "hero-split-accent",
561
+ carry: {
562
+ kind: "look",
563
+ look: "hero-photo-beside-text"
564
+ },
525
565
  target: "hero",
526
566
  label: "Split, panel on accent colour",
527
567
  blockKinds: ["block.hero"],
@@ -533,7 +573,7 @@ const appearancePresets = [
533
573
  }),
534
574
  defineBlockAppearancePreset({
535
575
  structure: {
536
- kind: "legacy",
576
+ kind: "recipe",
537
577
  composition: {
538
578
  kind: "intro",
539
579
  treatment: "editorial-statement"
@@ -541,6 +581,7 @@ const appearancePresets = [
541
581
  constraints: { layoutVariantKeys: ["centered-copy", "statement-copy"] }
542
582
  },
543
583
  id: "intro-editorial-statement",
584
+ carry: { kind: "by-layout" },
544
585
  target: "intro",
545
586
  label: "Large statement",
546
587
  blockKinds: ["block.intro"],
@@ -551,7 +592,7 @@ const appearancePresets = [
551
592
  }),
552
593
  defineBlockAppearancePreset({
553
594
  structure: {
554
- kind: "legacy",
595
+ kind: "recipe",
555
596
  composition: {
556
597
  kind: "intro",
557
598
  treatment: "portrait-bio"
@@ -559,6 +600,10 @@ const appearancePresets = [
559
600
  constraints: { layoutVariantKeys: ["media-copy"] }
560
601
  },
561
602
  id: "intro-portrait-bio",
603
+ carry: {
604
+ kind: "look",
605
+ look: "intro-photo-beside-text"
606
+ },
562
607
  target: "intro",
563
608
  label: "Portrait and bio",
564
609
  blockKinds: ["block.intro"],
@@ -568,8 +613,12 @@ const appearancePresets = [
568
613
  }
569
614
  }),
570
615
  defineBlockAppearancePreset({
571
- structure: { kind: "legacy" },
616
+ structure: { kind: "recipe" },
572
617
  id: "offerings-preview-default-cards",
618
+ carry: {
619
+ kind: "look",
620
+ look: "feature-cards-cards"
621
+ },
573
622
  target: "offerings",
574
623
  label: "Cards",
575
624
  blockKinds: ["block.offerings-preview"],
@@ -580,8 +629,12 @@ const appearancePresets = [
580
629
  }
581
630
  }),
582
631
  defineBlockAppearancePreset({
583
- structure: { kind: "legacy" },
632
+ structure: { kind: "recipe" },
584
633
  id: "offerings-preview-secondary-cards",
634
+ carry: {
635
+ kind: "look",
636
+ look: "feature-cards-cards"
637
+ },
585
638
  target: "offerings",
586
639
  label: "Cards on a soft band",
587
640
  blockKinds: ["block.offerings-preview"],
@@ -592,8 +645,12 @@ const appearancePresets = [
592
645
  }
593
646
  }),
594
647
  defineBlockAppearancePreset({
595
- structure: { kind: "legacy" },
648
+ structure: { kind: "recipe" },
596
649
  id: "offerings-preview-non-carded",
650
+ carry: {
651
+ kind: "look",
652
+ look: "feature-cards-open-columns"
653
+ },
597
654
  target: "offerings",
598
655
  label: "No cards",
599
656
  blockKinds: ["block.offerings-preview"],
@@ -605,7 +662,7 @@ const appearancePresets = [
605
662
  }),
606
663
  defineBlockAppearancePreset({
607
664
  structure: {
608
- kind: "legacy",
665
+ kind: "recipe",
609
666
  composition: {
610
667
  kind: "offerings-preview",
611
668
  treatment: "paired-feature-cards"
@@ -613,6 +670,10 @@ const appearancePresets = [
613
670
  constraints: { layoutVariantKeys: ["cards"] }
614
671
  },
615
672
  id: "offerings-preview-paired-feature-cards",
673
+ carry: {
674
+ kind: "look",
675
+ look: "feature-cards-lead-support"
676
+ },
616
677
  target: "offerings",
617
678
  label: "One large card, one smaller",
618
679
  blockKinds: ["block.offerings-preview"],
@@ -624,7 +685,7 @@ const appearancePresets = [
624
685
  }),
625
686
  defineBlockAppearancePreset({
626
687
  structure: {
627
- kind: "legacy",
688
+ kind: "recipe",
628
689
  composition: {
629
690
  kind: "offerings-preview",
630
691
  treatment: "open-editorial-columns"
@@ -632,6 +693,10 @@ const appearancePresets = [
632
693
  constraints: { layoutVariantKeys: ["cards"] }
633
694
  },
634
695
  id: "offerings-preview-open-editorial-columns",
696
+ carry: {
697
+ kind: "look",
698
+ look: "feature-cards-open-columns"
699
+ },
635
700
  target: "offerings",
636
701
  label: "Open columns",
637
702
  blockKinds: ["block.offerings-preview"],
@@ -643,7 +708,7 @@ const appearancePresets = [
643
708
  }),
644
709
  defineBlockAppearancePreset({
645
710
  structure: {
646
- kind: "legacy",
711
+ kind: "recipe",
647
712
  composition: {
648
713
  kind: "offerings-preview",
649
714
  treatment: "joined-programme-panel"
@@ -651,6 +716,10 @@ const appearancePresets = [
651
716
  constraints: { layoutVariantKeys: ["cards"] }
652
717
  },
653
718
  id: "offerings-preview-joined-programme-panel",
719
+ carry: {
720
+ kind: "look",
721
+ look: "feature-cards-index"
722
+ },
654
723
  target: "offerings",
655
724
  label: "Rows joined in one panel",
656
725
  blockKinds: ["block.offerings-preview"],
@@ -661,8 +730,12 @@ const appearancePresets = [
661
730
  }
662
731
  }),
663
732
  defineBlockAppearancePreset({
664
- structure: { kind: "legacy" },
733
+ structure: { kind: "recipe" },
665
734
  id: "feature-cards-raised-rule",
735
+ carry: {
736
+ kind: "look",
737
+ look: "feature-cards-cards"
738
+ },
666
739
  target: "feature-cards",
667
740
  label: "Raised cards with a line",
668
741
  blockKinds: ["block.feature-cards"],
@@ -673,8 +746,12 @@ const appearancePresets = [
673
746
  }
674
747
  }),
675
748
  defineBlockAppearancePreset({
676
- structure: { kind: "legacy" },
749
+ structure: { kind: "recipe" },
677
750
  id: "feature-cards-bold-colors",
751
+ carry: {
752
+ kind: "look",
753
+ look: "feature-cards-cards"
754
+ },
678
755
  target: "feature-cards",
679
756
  label: "Colour-filled cards",
680
757
  blockKinds: ["block.feature-cards"],
@@ -685,8 +762,12 @@ const appearancePresets = [
685
762
  }
686
763
  }),
687
764
  defineBlockAppearancePreset({
688
- structure: { kind: "legacy" },
765
+ structure: { kind: "recipe" },
689
766
  id: "feature-cards-editorial-columns",
767
+ carry: {
768
+ kind: "look",
769
+ look: "card-list-accent-edged-cards"
770
+ },
690
771
  target: "feature-cards",
691
772
  label: "Open columns on a soft band",
692
773
  blockKinds: ["block.feature-cards"],
@@ -698,7 +779,7 @@ const appearancePresets = [
698
779
  }),
699
780
  defineBlockAppearancePreset({
700
781
  structure: {
701
- kind: "legacy",
782
+ kind: "recipe",
702
783
  composition: {
703
784
  kind: "feature-cards",
704
785
  treatment: "asymmetric-emphasis"
@@ -706,6 +787,10 @@ const appearancePresets = [
706
787
  constraints: { layoutFamilies: ["grid"] }
707
788
  },
708
789
  id: "feature-cards-asymmetric-emphasis",
790
+ carry: {
791
+ kind: "no-equivalent",
792
+ because: "No shared Look lays cards out in uneven pairs."
793
+ },
709
794
  target: "feature-cards",
710
795
  label: "Cards in uneven pairs",
711
796
  blockKinds: ["block.feature-cards"],
@@ -716,7 +801,7 @@ const appearancePresets = [
716
801
  }),
717
802
  defineBlockAppearancePreset({
718
803
  structure: {
719
- kind: "legacy",
804
+ kind: "recipe",
720
805
  composition: {
721
806
  kind: "feature-cards",
722
807
  treatment: "framed-programme"
@@ -724,6 +809,10 @@ const appearancePresets = [
724
809
  constraints: { layoutFamilies: ["grid"] }
725
810
  },
726
811
  id: "feature-cards-framed-programme",
812
+ carry: {
813
+ kind: "look",
814
+ look: "feature-cards-cards"
815
+ },
727
816
  target: "feature-cards",
728
817
  label: "Close-set cards on brand colour",
729
818
  blockKinds: ["block.feature-cards"],
@@ -735,10 +824,14 @@ const appearancePresets = [
735
824
  }),
736
825
  defineBlockAppearancePreset({
737
826
  structure: {
738
- kind: "legacy",
827
+ kind: "recipe",
739
828
  constraints: { layoutVariantKeys: ["editorial-diptych"] }
740
829
  },
741
830
  id: "feature-cards-editorial-diptych",
831
+ carry: {
832
+ kind: "look",
833
+ look: "feature-cards-cards"
834
+ },
742
835
  target: "feature-cards",
743
836
  label: "Two large cards side by side",
744
837
  blockKinds: ["block.feature-cards"],
@@ -749,8 +842,9 @@ const appearancePresets = [
749
842
  }
750
843
  }),
751
844
  defineBlockAppearancePreset({
752
- structure: { kind: "legacy" },
845
+ structure: { kind: "recipe" },
753
846
  id: "events-lined-panel",
847
+ carry: { kind: "by-layout" },
754
848
  target: "events",
755
849
  label: "Cards on a panel",
756
850
  blockKinds: ["block.event-calendar", "block.event-listing"],
@@ -760,8 +854,12 @@ const appearancePresets = [
760
854
  }
761
855
  }),
762
856
  defineBlockAppearancePreset({
763
- structure: { kind: "legacy" },
857
+ structure: { kind: "recipe" },
764
858
  id: "events-ruled-register",
859
+ carry: {
860
+ kind: "look",
861
+ look: "event-calendar-ruled-rows"
862
+ },
765
863
  target: "events",
766
864
  label: "Ruled list",
767
865
  blockKinds: ["block.event-calendar", "block.event-listing"],
@@ -772,8 +870,12 @@ const appearancePresets = [
772
870
  }
773
871
  }),
774
872
  defineBlockAppearancePreset({
775
- structure: { kind: "legacy" },
873
+ structure: { kind: "recipe" },
776
874
  id: "events-editorial-register",
875
+ carry: {
876
+ kind: "look",
877
+ look: "event-calendar-ruled-rows"
878
+ },
777
879
  target: "events",
778
880
  label: "Editorial list",
779
881
  blockKinds: ["block.event-calendar", "block.event-listing"],
@@ -784,8 +886,12 @@ const appearancePresets = [
784
886
  }
785
887
  }),
786
888
  defineBlockAppearancePreset({
787
- structure: { kind: "legacy" },
889
+ structure: { kind: "recipe" },
788
890
  id: "events-dense-index",
891
+ carry: {
892
+ kind: "look",
893
+ look: "event-calendar-ruled-rows"
894
+ },
789
895
  target: "events",
790
896
  label: "Compact list",
791
897
  blockKinds: ["block.event-calendar", "block.event-listing"],
@@ -796,8 +902,12 @@ const appearancePresets = [
796
902
  }
797
903
  }),
798
904
  defineBlockAppearancePreset({
799
- structure: { kind: "legacy" },
905
+ structure: { kind: "recipe" },
800
906
  id: "schedule-details-brand-depth",
907
+ carry: {
908
+ kind: "look",
909
+ look: "event-details-panel"
910
+ },
801
911
  target: "events",
802
912
  label: "Details on brand colour",
803
913
  blockKinds: ["block.event-details"],
@@ -808,8 +918,12 @@ const appearancePresets = [
808
918
  }
809
919
  }),
810
920
  defineBlockAppearancePreset({
811
- structure: { kind: "legacy" },
921
+ structure: { kind: "recipe" },
812
922
  id: "media-text-flush-feature",
923
+ carry: {
924
+ kind: "look",
925
+ look: "media-text-photo-beside-text"
926
+ },
813
927
  target: "media-text",
814
928
  label: "Photo to the edge, on a soft band",
815
929
  blockKinds: ["block.media-text"],
@@ -819,8 +933,9 @@ const appearancePresets = [
819
933
  }
820
934
  }),
821
935
  defineBlockAppearancePreset({
822
- structure: { kind: "legacy" },
936
+ structure: { kind: "recipe" },
823
937
  id: "testimonials-simple-cards",
938
+ carry: { kind: "by-layout" },
824
939
  target: "testimonials",
825
940
  label: "Quote cards",
826
941
  blockKinds: ["block.testimonials"],
@@ -831,8 +946,9 @@ const appearancePresets = [
831
946
  }
832
947
  }),
833
948
  defineBlockAppearancePreset({
834
- structure: { kind: "legacy" },
949
+ structure: { kind: "recipe" },
835
950
  id: "testimonials-raised-panel",
951
+ carry: { kind: "by-layout" },
836
952
  target: "testimonials",
837
953
  label: "Quotes on a panel",
838
954
  blockKinds: ["block.testimonials"],
@@ -843,8 +959,9 @@ const appearancePresets = [
843
959
  }
844
960
  }),
845
961
  defineBlockAppearancePreset({
846
- structure: { kind: "legacy" },
962
+ structure: { kind: "recipe" },
847
963
  id: "testimonials-accent-panel",
964
+ carry: { kind: "by-layout" },
848
965
  target: "testimonials",
849
966
  label: "Quotes on an accent panel",
850
967
  blockKinds: ["block.testimonials"],
@@ -855,8 +972,9 @@ const appearancePresets = [
855
972
  }
856
973
  }),
857
974
  defineBlockAppearancePreset({
858
- structure: { kind: "legacy" },
975
+ structure: { kind: "recipe" },
859
976
  id: "testimonials-statement-cards",
977
+ carry: { kind: "by-layout" },
860
978
  target: "testimonials",
861
979
  label: "Cards on accent colour",
862
980
  blockKinds: ["block.testimonials"],
@@ -867,8 +985,9 @@ const appearancePresets = [
867
985
  }
868
986
  }),
869
987
  defineBlockAppearancePreset({
870
- structure: { kind: "legacy" },
988
+ structure: { kind: "recipe" },
871
989
  id: "testimonials-brand-statement-cards",
990
+ carry: { kind: "by-layout" },
872
991
  target: "testimonials",
873
992
  label: "Cards on brand colour",
874
993
  blockKinds: ["block.testimonials"],
@@ -880,13 +999,21 @@ const appearancePresets = [
880
999
  }),
881
1000
  defineBlockAppearancePreset({
882
1001
  structure: {
883
- kind: "legacy",
1002
+ kind: "recipe",
884
1003
  composition: {
885
1004
  kind: "testimonials",
886
1005
  treatment: "open-editorial"
887
1006
  }
888
1007
  },
889
1008
  id: "testimonials-non-carded",
1009
+ carry: {
1010
+ kind: "by-layout",
1011
+ layouts: { grid: {
1012
+ kind: "look",
1013
+ look: "testimonials-quote-columns",
1014
+ knobs: { quoteCount: "all" }
1015
+ } }
1016
+ },
890
1017
  target: "testimonials",
891
1018
  label: "No cards",
892
1019
  blockKinds: ["block.testimonials"],
@@ -897,7 +1024,7 @@ const appearancePresets = [
897
1024
  }),
898
1025
  defineBlockAppearancePreset({
899
1026
  structure: {
900
- kind: "legacy",
1027
+ kind: "recipe",
901
1028
  composition: {
902
1029
  kind: "testimonials",
903
1030
  treatment: "evergreen-lead"
@@ -905,6 +1032,10 @@ const appearancePresets = [
905
1032
  constraints: { layoutVariantKeys: ["featured-editorial"] }
906
1033
  },
907
1034
  id: "testimonials-evergreen-lead",
1035
+ carry: {
1036
+ kind: "look",
1037
+ look: "testimonials-lead-quote"
1038
+ },
908
1039
  target: "testimonials",
909
1040
  label: "Lead quote, others in two columns",
910
1041
  blockKinds: ["block.testimonials"],
@@ -915,7 +1046,7 @@ const appearancePresets = [
915
1046
  }),
916
1047
  defineBlockAppearancePreset({
917
1048
  structure: {
918
- kind: "legacy",
1049
+ kind: "recipe",
919
1050
  composition: {
920
1051
  kind: "testimonials",
921
1052
  treatment: "room-and-response"
@@ -923,6 +1054,10 @@ const appearancePresets = [
923
1054
  constraints: { layoutVariantKeys: ["featured-editorial"] }
924
1055
  },
925
1056
  id: "testimonials-room-and-response",
1057
+ carry: {
1058
+ kind: "look",
1059
+ look: "testimonials-lead-quote"
1060
+ },
926
1061
  target: "testimonials",
927
1062
  label: "Tall lead quote, others beside",
928
1063
  blockKinds: ["block.testimonials"],
@@ -933,7 +1068,7 @@ const appearancePresets = [
933
1068
  }),
934
1069
  defineBlockAppearancePreset({
935
1070
  structure: {
936
- kind: "legacy",
1071
+ kind: "recipe",
937
1072
  composition: {
938
1073
  kind: "testimonials",
939
1074
  treatment: "open-floor"
@@ -941,6 +1076,10 @@ const appearancePresets = [
941
1076
  constraints: { layoutVariantKeys: ["featured-editorial"] }
942
1077
  },
943
1078
  id: "testimonials-open-floor",
1079
+ carry: {
1080
+ kind: "look",
1081
+ look: "testimonials-lead-quote"
1082
+ },
944
1083
  target: "testimonials",
945
1084
  label: "Title beside, lead quote on top",
946
1085
  blockKinds: ["block.testimonials"],
@@ -950,8 +1089,9 @@ const appearancePresets = [
950
1089
  }
951
1090
  }),
952
1091
  defineBlockAppearancePreset({
953
- structure: { kind: "legacy" },
1092
+ structure: { kind: "recipe" },
954
1093
  id: "faq-base-accordion",
1094
+ carry: { kind: "by-layout" },
955
1095
  target: "faq",
956
1096
  label: "Plain list of questions",
957
1097
  blockKinds: ["block.faq"],
@@ -962,8 +1102,9 @@ const appearancePresets = [
962
1102
  }
963
1103
  }),
964
1104
  defineBlockAppearancePreset({
965
- structure: { kind: "legacy" },
1105
+ structure: { kind: "recipe" },
966
1106
  id: "faq-contained-help",
1107
+ carry: { kind: "by-layout" },
967
1108
  target: "faq",
968
1109
  label: "Questions in a panel",
969
1110
  blockKinds: ["block.faq"],
@@ -974,8 +1115,9 @@ const appearancePresets = [
974
1115
  }
975
1116
  }),
976
1117
  defineBlockAppearancePreset({
977
- structure: { kind: "legacy" },
1118
+ structure: { kind: "recipe" },
978
1119
  id: "contact-form-panel",
1120
+ carry: { kind: "by-layout" },
979
1121
  target: "contact-form",
980
1122
  label: "Form on a panel",
981
1123
  blockKinds: ["block.form"],
@@ -985,8 +1127,12 @@ const appearancePresets = [
985
1127
  }
986
1128
  }),
987
1129
  defineBlockAppearancePreset({
988
- structure: { kind: "legacy" },
1130
+ structure: { kind: "recipe" },
989
1131
  id: "booking-brand-band",
1132
+ carry: {
1133
+ kind: "no-equivalent",
1134
+ because: "Appointment booking has no shared Looks."
1135
+ },
990
1136
  target: "contact-form",
991
1137
  label: "Booking form on brand colour",
992
1138
  blockKinds: ["block.appointment-booking"],
@@ -996,8 +1142,12 @@ const appearancePresets = [
996
1142
  }
997
1143
  }),
998
1144
  defineBlockAppearancePreset({
999
- structure: { kind: "legacy" },
1145
+ structure: { kind: "recipe" },
1000
1146
  id: "cta-accent-band",
1147
+ carry: {
1148
+ kind: "look",
1149
+ look: "cta-centred"
1150
+ },
1001
1151
  target: "cta",
1002
1152
  label: "Accent colour band",
1003
1153
  blockKinds: ["block.cta-full"],
@@ -1008,11 +1158,11 @@ const appearancePresets = [
1008
1158
  }
1009
1159
  }),
1010
1160
  defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
1011
- defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], {
1161
+ defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside a framed form", "two-column", [], {
1012
1162
  slotRoles: { panel: "card" },
1013
1163
  styleFallback: [id$1("form-below-introduction")]
1014
1164
  }),
1015
- defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
1165
+ defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in a frame", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
1016
1166
  defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
1017
1167
  defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
1018
1168
  defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
@@ -1035,6 +1185,18 @@ const appearancePresets = [
1035
1185
  slotRoles: { copy: "card" },
1036
1186
  styleFallback: [id$1("hero-photo-beside-text")]
1037
1187
  }),
1188
+ defineArrangementLook("hero-text-over-photo", "hero", "Text over photo", "classic", [], {
1189
+ photoTreatment: "text-overlay",
1190
+ whenMissing: [{
1191
+ fact: "photo",
1192
+ look: id$1("hero-page-head")
1193
+ }],
1194
+ styleFallback: [id$1("hero-photo-behind-text")]
1195
+ }),
1196
+ defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
1197
+ slotRoles: { copy: "card" },
1198
+ styleFallback: [id$1("hero-page-head")]
1199
+ }),
1038
1200
  defineArrangementLook("hero-page-head", "hero", "Title and facts, no photo", "page-head", ["titleSize", "smallCaption"], { styleFallback: [id$1("hero-photo-beside-text")] }),
1039
1201
  defineCardListLook("feature-cards-cards", "Cards", "cards", [
1040
1202
  "media",
@@ -1107,7 +1269,7 @@ const appearancePresets = [
1107
1269
  slotRoles: { date: "highlight" },
1108
1270
  styleFallback: [id$1("event-calendar-ruled-rows")]
1109
1271
  }),
1110
- defineArrangementLook("event-calendar-next-three", "event-calendar", "Next three, compact", "compact", ["showCapacity"], {
1272
+ defineArrangementLook("event-calendar-next-three", "event-calendar", "Compact rows", "compact", ["showCapacity"], {
1111
1273
  itemRoles: { container: "card" },
1112
1274
  styleFallback: [id$1("event-calendar-ruled-rows")]
1113
1275
  }),
@@ -1356,6 +1518,245 @@ const appearancePresets = [
1356
1518
  }
1357
1519
  ];
1358
1520
  //#endregion
1521
+ //#region ../theme-core/src/site-styles/blockFlow.ts
1522
+ function defineBlockDesignMetadata(input) {
1523
+ const layoutProfiles = (input.layoutProfiles ?? []).map((profile) => ({
1524
+ ...profile,
1525
+ variantKey: asLayoutVariantKey(profile.variantKey)
1526
+ }));
1527
+ assertUniqueLayoutProfileKeys(layoutProfiles);
1528
+ return {
1529
+ flow: input.flow,
1530
+ layoutProfiles
1531
+ };
1532
+ }
1533
+ function assertUniqueLayoutProfileKeys(profiles) {
1534
+ const seen = /* @__PURE__ */ new Set();
1535
+ const duplicates = profiles.flatMap((profile) => {
1536
+ if (seen.has(profile.variantKey)) return [profile.variantKey];
1537
+ seen.add(profile.variantKey);
1538
+ return [];
1539
+ });
1540
+ if (duplicates.length > 0) throw new Error(`Duplicate block layout design profiles: ${duplicates.join(", ")}`);
1541
+ }
1542
+ //#endregion
1543
+ //#region ../theme-core/src/site-styles/backgroundAppearance.ts
1544
+ const backgroundAppearanceQuickColorTokenNames = [
1545
+ "background",
1546
+ "surface",
1547
+ "muted",
1548
+ "primary",
1549
+ "secondary",
1550
+ "accent"
1551
+ ];
1552
+ const backgroundAppearanceBaseColorTokenNames = [
1553
+ "background",
1554
+ "surface",
1555
+ "surfaceAlt",
1556
+ "muted",
1557
+ "primary",
1558
+ "secondary",
1559
+ "accent",
1560
+ "neutral"
1561
+ ];
1562
+ const backgroundAppearanceShadeableColorTokenNames = [
1563
+ "primary",
1564
+ "secondary",
1565
+ "accent",
1566
+ "neutral"
1567
+ ];
1568
+ const backgroundAppearanceColorTokenNames = uniqueStrings([...backgroundAppearanceBaseColorTokenNames, ...backgroundAppearanceShadeableColorTokenNames.flatMap((name) => themeColorShadeSteps.map((shade) => `${name}-${shade}`))]);
1569
+ backgroundAppearanceColorTokenNames.filter((tokenName) => !backgroundAppearanceQuickColorTokenNames.includes(tokenName));
1570
+ const backgroundAppearanceColorTokenNameSet = new Set(backgroundAppearanceColorTokenNames);
1571
+ function parseBackgroundAppearanceColorToken(value) {
1572
+ if (typeof value !== "string") return null;
1573
+ const normalized = value.trim();
1574
+ if (!backgroundAppearanceColorTokenNameSet.has(normalized)) return null;
1575
+ return parseThemeColorToken(normalized);
1576
+ }
1577
+ function uniqueStrings(values) {
1578
+ return Array.from(new Set(values));
1579
+ }
1580
+ //#endregion
1581
+ //#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
1582
+ function parseCanonicalRuntimeBackground(content) {
1583
+ const background = readRecord(readRecord(content._sectionStyles)?.background);
1584
+ if (!background) return { kind: "none" };
1585
+ const parsed = runtimeBoxBackgroundSchema.safeParse(background);
1586
+ if (!parsed.success) return { kind: "none" };
1587
+ const painted = applyLookPhotoTreatment(content, parsed.data);
1588
+ return painted.contentOwner === "page-design-editor" ? {
1589
+ kind: "page-design-override",
1590
+ background: painted
1591
+ } : {
1592
+ kind: "block-authored",
1593
+ background: painted
1594
+ };
1595
+ }
1596
+ /** The Look owns shading and ink together; authored image/crop stay intact. */
1597
+ function applyLookPhotoTreatment(content, background) {
1598
+ const structure = readRecord(readRecord(readRecord(content._effectiveLook)?.look)?.structure);
1599
+ if (background.type !== "image" || structure?.photoTreatment !== "text-overlay") return background;
1600
+ return {
1601
+ ...background,
1602
+ overlay: {
1603
+ type: "gradient",
1604
+ opacity: 1,
1605
+ gradient: "var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), 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%)"
1606
+ },
1607
+ textColor: "neutral-50",
1608
+ headingColor: "neutral-50",
1609
+ linkColor: "neutral-50",
1610
+ supportingColor: "neutral-50"
1611
+ };
1612
+ }
1613
+ function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
1614
+ if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
1615
+ if (rhythm !== void 0) return rhythmBackground(rhythm);
1616
+ return {
1617
+ kind: "content-media",
1618
+ background: source.background,
1619
+ ground: {
1620
+ type: "color",
1621
+ color: arrangementHeroPhoto?.fallbackToken ?? "background",
1622
+ textColor: source.background.textColor,
1623
+ headingColor: source.background.headingColor,
1624
+ linkColor: source.background.linkColor,
1625
+ supportingColor: source.background.supportingColor
1626
+ }
1627
+ };
1628
+ }
1629
+ if (source.kind === "page-design-override") return {
1630
+ kind: "override",
1631
+ background: source.background
1632
+ };
1633
+ if (isAuthoredMedia(source)) return {
1634
+ kind: "authored-media",
1635
+ background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
1636
+ };
1637
+ if (lookDefault) return {
1638
+ kind: "look-surface",
1639
+ background: lookDefault
1640
+ };
1641
+ if (source.kind === "block-authored") return {
1642
+ kind: "authored-colour",
1643
+ background: source.background
1644
+ };
1645
+ return rhythmBackground(rhythm);
1646
+ }
1647
+ function resolveSectionForeground(background, palette) {
1648
+ return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
1649
+ }
1650
+ /** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
1651
+ function sectionForegroundBackground(resolved, palette) {
1652
+ if (resolved.kind === "base") return null;
1653
+ if (resolved.kind !== "content-media") return resolved.background;
1654
+ const original = resolveSurfaceForeground(resolved.background, palette);
1655
+ const measured = resolveSurfaceForeground(resolved.ground, palette);
1656
+ if (original.kind !== "known" || measured.kind !== "known") return resolved.background;
1657
+ return [
1658
+ "text",
1659
+ "heading",
1660
+ "link",
1661
+ "supporting"
1662
+ ].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
1663
+ }
1664
+ /** One photo-placement decision for legacy and arrangement hero renderers. */
1665
+ function heroPhotoPaintsGround(variant) {
1666
+ return ![
1667
+ "split",
1668
+ "splitReverse",
1669
+ "headline-row",
1670
+ "copy-over-gallery",
1671
+ "page-head"
1672
+ ].includes(variant ?? "classic");
1673
+ }
1674
+ function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
1675
+ const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
1676
+ const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
1677
+ if (paintsBand && !lookScrim) return authored;
1678
+ const merged = runtimeBoxBackgroundSchema.safeParse({
1679
+ ...lookDefault,
1680
+ type: authored.type,
1681
+ image: authored.image,
1682
+ objectFit: authored.objectFit,
1683
+ scale: authored.scale,
1684
+ position: authored.position,
1685
+ ...lookScrim ? { overlay: lookScrim } : {}
1686
+ });
1687
+ return merged.success ? merged.data : authored;
1688
+ }
1689
+ function readRecord(value) {
1690
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
1691
+ }
1692
+ function heroPhotoIsContent(source, photo, hasArrangementGround) {
1693
+ return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
1694
+ }
1695
+ function isAuthoredMedia(source) {
1696
+ return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
1697
+ }
1698
+ function rhythmBackground(background) {
1699
+ return background ? {
1700
+ kind: "rhythm",
1701
+ background
1702
+ } : { kind: "base" };
1703
+ }
1704
+ /**
1705
+ * Semantic section grounds: background/base -> light; muted/surface bands ->
1706
+ * band; primary/secondary/accent (including pop) -> brand; text/inverse and
1707
+ * numbered deep shades -> deep. Media and gradients use the existing resolved
1708
+ * scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
1709
+ * over a light veil -> light. Unclassified/no veil defaults to light.
1710
+ * Background ownership (override, authored, Look or rhythm) never changes tone.
1711
+ */
1712
+ const solidGrounds = {
1713
+ background: "light",
1714
+ muted: "band",
1715
+ surface: "band",
1716
+ primary: "brand",
1717
+ secondary: "brand",
1718
+ accent: "brand",
1719
+ text: "deep"
1720
+ };
1721
+ function deriveSectionGround(resolved, palette) {
1722
+ if (resolved.kind === "base") return "light";
1723
+ const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
1724
+ const solid = solidSectionGround(background);
1725
+ if (solid) return solid;
1726
+ return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
1727
+ }
1728
+ function solidSectionGround(background) {
1729
+ if (background.type !== "color") return null;
1730
+ const color = background.color ?? "background";
1731
+ return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
1732
+ }
1733
+ function sectionForegroundTone(resolved, palette) {
1734
+ const foreground = resolveSectionForeground(resolved, palette);
1735
+ return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
1736
+ }
1737
+ function sectionVeil(background) {
1738
+ switch (background.type) {
1739
+ case "color": return null;
1740
+ case "image":
1741
+ case "video": return background.overlay;
1742
+ case "gradient": return {
1743
+ type: "gradient",
1744
+ gradient: background.gradient,
1745
+ opacity: 1
1746
+ };
1747
+ }
1748
+ }
1749
+ function sectionScrimSamples(background, palette) {
1750
+ const overlay = sectionVeil(background);
1751
+ if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
1752
+ if (overlay?.type !== "color") return [];
1753
+ const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
1754
+ return hex ? [{
1755
+ hex,
1756
+ alpha: overlay.opacity ?? 1
1757
+ }] : [];
1758
+ }
1759
+ //#endregion
1359
1760
  //#region ../theme-core/src/site-styles/transitionCatalogue.ts
1360
1761
  /**
1361
1762
  * Family order for pickers. Entries below are listed family by family in this
@@ -1691,16 +2092,10 @@ const sectionTransitionFamilies = [{
1691
2092
  label: family.label,
1692
2093
  variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
1693
2094
  }))];
1694
- const boundaryOptionById = new Map(boundaryOptions.map((option) => [option.id, option]));
2095
+ new Map(boundaryOptions.map((option) => [option.id, option]));
1695
2096
  new Map(boundaryOptions.map((option) => [stableTreatmentKey(option.treatment), option]));
1696
2097
  new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
1697
2098
  new Map(sectionTransitionFamilies.map((family) => [family.id, family]));
1698
- function boundaryTreatmentForBoundaryOptionId(boundaryOptionId) {
1699
- return boundaryOptionById.get(boundaryOptionId)?.treatment ?? {
1700
- kind: "legacy-unsupported",
1701
- boundaryOptionId
1702
- };
1703
- }
1704
2099
  function stableTreatmentKey(treatment) {
1705
2100
  switch (treatment.kind) {
1706
2101
  case "none": return "none";
@@ -1718,23 +2113,217 @@ function stableTreatmentKey(treatment) {
1718
2113
  treatment.slope,
1719
2114
  treatment.direction
1720
2115
  ].join(":");
1721
- case "legacy-unsupported": return `${treatment.kind}:${treatment.boundaryOptionId}`;
1722
2116
  }
1723
2117
  }
1724
2118
  //#endregion
2119
+ //#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
2120
+ const backgroundToken = requireThemeColorToken$1("background");
2121
+ /**
2122
+ * Classifies a section from its final render content. `_sectionStyles`
2123
+ * already holds the effective background (Look default, page-design override
2124
+ * and block-authored media merged by `resolveSectionBackground`), so this only
2125
+ * reads it and never re-decides precedence. A missing or unparseable
2126
+ * background is the page background, as it is for the renderer.
2127
+ */
2128
+ function boundaryEndpointForSectionContent(content) {
2129
+ const background = parseCanonicalRuntimeBackground(content);
2130
+ if (background.kind === "none") return {
2131
+ kind: "paint",
2132
+ token: backgroundToken
2133
+ };
2134
+ const effective = background.background;
2135
+ switch (effective.type) {
2136
+ case "color": {
2137
+ if (effective.color === null || effective.color === void 0) return {
2138
+ kind: "paint",
2139
+ token: backgroundToken
2140
+ };
2141
+ const token = parseThemeColorToken(effective.color);
2142
+ return token ? {
2143
+ kind: "paint",
2144
+ token
2145
+ } : {
2146
+ kind: "unpainted",
2147
+ reason: "literal-color"
2148
+ };
2149
+ }
2150
+ case "gradient": return {
2151
+ kind: "unpainted",
2152
+ reason: "gradient"
2153
+ };
2154
+ case "image":
2155
+ case "video": return {
2156
+ kind: "unpainted",
2157
+ reason: "media"
2158
+ };
2159
+ default: return assertNever(effective, "Unhandled section background type");
2160
+ }
2161
+ }
2162
+ /**
2163
+ * Reads both facts from final render content in one place. `_frameStyles` is
2164
+ * the compiled frame; content without one (no page design, an SDK block)
2165
+ * draws a plain frame.
2166
+ */
2167
+ function sectionFactsForContent(content) {
2168
+ return {
2169
+ endpoint: boundaryEndpointForSectionContent(content),
2170
+ frame: frameKindForContent(content)
2171
+ };
2172
+ }
2173
+ function frameKindForContent(content) {
2174
+ const frameStyles = content._frameStyles;
2175
+ const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
2176
+ return kind === "panel" || kind === "flush-panel" ? kind : "plain";
2177
+ }
2178
+ /**
2179
+ * The frame rule: a flush panel owns the edge it runs to, so no break is
2180
+ * drawn next to one. The single home for this rule; the generated
2181
+ * pipeline's budget and the site-style lab ask it with their plan frames.
2182
+ */
2183
+ function frameNotShownReason(previous, next) {
2184
+ return previous === "flush-panel" || next === "flush-panel" ? "flush-panel" : null;
2185
+ }
2186
+ /**
2187
+ * Decides whether and how a join draws. The frame rule wins before paint is
2188
+ * considered; two unpainted sides show nothing.
2189
+ */
2190
+ function composeBoundary(previous, next) {
2191
+ const frameReason = frameNotShownReason(previous.frame, next.frame);
2192
+ if (frameReason) return {
2193
+ kind: "not-shown",
2194
+ reason: frameReason
2195
+ };
2196
+ const from = previous.endpoint;
2197
+ const to = next.endpoint;
2198
+ if (from.kind === "paint") return {
2199
+ kind: "shown",
2200
+ composition: to.kind === "paint" ? {
2201
+ kind: "paint-to-paint",
2202
+ from: from.token,
2203
+ to: to.token
2204
+ } : {
2205
+ kind: "paint-to-unpainted",
2206
+ from: from.token
2207
+ }
2208
+ };
2209
+ return to.kind === "paint" ? {
2210
+ kind: "shown",
2211
+ composition: {
2212
+ kind: "unpainted-to-paint",
2213
+ to: to.token
2214
+ }
2215
+ } : {
2216
+ kind: "not-shown",
2217
+ reason: "both-unpainted"
2218
+ };
2219
+ }
2220
+ /**
2221
+ * Placement, reserves and paint for a shown boundary, derived from the
2222
+ * composition and the catalogue's metrics for the treatment.
2223
+ */
2224
+ function boundaryLayout(intent, composition) {
2225
+ const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
2226
+ switch (composition.kind) {
2227
+ case "paint-to-paint": return {
2228
+ placement: "centred",
2229
+ reserves: {
2230
+ before: metrics.reserveCss,
2231
+ after: metrics.reserveCss
2232
+ },
2233
+ paint: {
2234
+ band: composition.from,
2235
+ shape: composition.to
2236
+ }
2237
+ };
2238
+ case "unpainted-to-paint": return {
2239
+ placement: "previous",
2240
+ reserves: {
2241
+ before: metrics.heightCss,
2242
+ after: null
2243
+ },
2244
+ paint: {
2245
+ band: null,
2246
+ shape: composition.to
2247
+ }
2248
+ };
2249
+ case "paint-to-unpainted": return {
2250
+ placement: "next",
2251
+ reserves: {
2252
+ before: null,
2253
+ after: metrics.heightCss
2254
+ },
2255
+ paint: {
2256
+ band: null,
2257
+ shape: composition.from
2258
+ }
2259
+ };
2260
+ default: return assertNever(composition, "Unhandled boundary composition");
2261
+ }
2262
+ }
2263
+ function requireThemeColorToken$1(value) {
2264
+ const token = parseThemeColorToken(value);
2265
+ if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
2266
+ return token;
2267
+ }
2268
+ //#endregion
1725
2269
  //#region ../theme-core/src/header/rootPaint.ts
2270
+ /** Detached branding needs protection even when the navigation has its own rail. */
2271
+ function headerNeedsPhotoShade(header) {
2272
+ return header.variant === "floating" && header.background?.type === "color" && header.background.color === "transparent" && (!header.container || (header.container.opacity ?? 1) < 1);
2273
+ }
1726
2274
  /** The nav container takes precedence when a floating header also has one. */
1727
2275
  function headerRootPaint(header) {
1728
2276
  const navContainerType = header?.navContainer?.type ?? "none";
1729
2277
  if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
1730
2278
  return header?.variant === "floating" ? "overlay" : "own-surface";
1731
2279
  }
2280
+ //#endregion
2281
+ //#region ../theme-core/src/site-styles/siteChromeBackgrounds.ts
2282
+ const siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
2283
+ const quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
2284
+ siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
2285
+ function parseSiteChromeBackgroundColorToken(value) {
2286
+ const token = parseBackgroundAppearanceColorToken(value);
2287
+ return token ? token : null;
2288
+ }
2289
+ function toSiteChromeBackgroundColorTokens(tokenNames) {
2290
+ return tokenNames.flatMap((name) => {
2291
+ const token = parseSiteChromeBackgroundColorToken(name);
2292
+ return token ? [token] : [];
2293
+ });
2294
+ }
2295
+ const backgroundColorTokenSchema = z.unknown().transform((value, ctx) => {
2296
+ const token = parseSiteChromeBackgroundColorToken(value);
2297
+ if (token === null) {
2298
+ ctx.addIssue({
2299
+ code: "custom",
2300
+ message: "Unknown site chrome background colour token"
2301
+ });
2302
+ return z.NEVER;
2303
+ }
2304
+ return token;
2305
+ });
2306
+ const siteChromeBackgroundOverrideSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("default") }).strict(), z.object({
2307
+ kind: z.literal("color"),
2308
+ token: backgroundColorTokenSchema
2309
+ }).strict()]);
2310
+ z.object({
2311
+ background: siteChromeBackgroundOverrideSchema,
2312
+ navigationLayout: z.enum(["inline-wrap", "stack"])
2313
+ }).strict();
2314
+ z.object({ background: siteChromeBackgroundOverrideSchema }).strict();
2315
+ //#endregion
2316
+ //#region ../theme-core/src/site-styles/compilationPlan.ts
2317
+ const defaultHeaderBrandPreferences = {
2318
+ brandDisplay: "auto",
2319
+ logoSize: "auto"
2320
+ };
1732
2321
  asBoundaryOptionId("break:unknown");
1733
2322
  const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
1734
2323
  kind: z.literal("user-pinned"),
1735
2324
  value: z.string().min(1).transform(asAppearancePresetId)
1736
2325
  }).strict();
1737
- const pageDesignUserPinnedBoundaryChoiceSchema = z.object({
2326
+ z.object({
1738
2327
  kind: z.literal("user-pinned"),
1739
2328
  value: z.string().min(1).transform(asBoundaryOptionId)
1740
2329
  }).strict();
@@ -1786,10 +2375,6 @@ const pageDesignBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
1786
2375
  "steep"
1787
2376
  ]),
1788
2377
  direction: z.enum(["forward", "reverse"])
1789
- }).strict(),
1790
- z.object({
1791
- kind: z.literal("legacy-unsupported"),
1792
- boundaryOptionId: z.string().min(1).transform(asBoundaryOptionId)
1793
2378
  }).strict()
1794
2379
  ]);
1795
2380
  const pageDesignUserPinnedBoundaryTreatmentChoiceSchema = z.object({
@@ -1807,51 +2392,13 @@ const pageDesignBoundaryPinSchema = z.object({
1807
2392
  nextBlockId: z.string().min(1).transform(asDesignBlockId),
1808
2393
  choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
1809
2394
  }).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
1810
- const legacyPageDesignBoundaryPinSchema = z.object({
1811
- boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
1812
- previousBlockId: z.string().min(1).transform(asDesignBlockId),
1813
- nextBlockId: z.string().min(1).transform(asDesignBlockId),
1814
- choice: pageDesignUserPinnedBoundaryChoiceSchema
1815
- }).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
1816
- /**
1817
- * Persisted editor intent stores only user-pinned block Looks and boundary choices.
1818
- * Missing pins mean `auto`; block-kind/preset compatibility is enforced by resolution,
1819
- * not by this JSON parse boundary.
1820
- */
1821
- const pageDesignIntentV1Schema = z.object({
1822
- schemaVersion: z.literal(1),
1823
- siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId),
1824
- pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
1825
- blockLookPins: z.array(pageDesignBlockLookPinSchema),
1826
- boundaryPins: z.array(legacyPageDesignBoundaryPinSchema)
1827
- }).strict().superRefine(validateUniquePageDesignPins);
1828
2395
  const pageDesignDecisionsV2Schema = z.object({
1829
2396
  schemaVersion: z.literal(2),
1830
2397
  pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
1831
2398
  blockLookPins: z.array(pageDesignBlockLookPinSchema),
1832
2399
  boundaryPins: z.array(pageDesignBoundaryPinSchema)
1833
2400
  }).strict().superRefine(validateUniquePageDesignPins);
1834
- const pageDesignIntentV2Schema = pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
1835
- function normalizeLegacyPageDesignIntent(intent) {
1836
- return {
1837
- schemaVersion: 2,
1838
- siteStyleId: intent.siteStyleId,
1839
- pageFlowPresetId: intent.pageFlowPresetId,
1840
- blockLookPins: intent.blockLookPins,
1841
- boundaryPins: intent.boundaryPins.map((pin) => ({
1842
- boundaryId: pin.boundaryId,
1843
- previousBlockId: pin.previousBlockId,
1844
- nextBlockId: pin.nextBlockId,
1845
- choice: userPinnedDesignChoice(boundaryTreatmentForBoundaryOptionId(pin.choice.value))
1846
- }))
1847
- };
1848
- }
1849
- function userPinnedDesignChoice(value) {
1850
- return {
1851
- kind: "user-pinned",
1852
- value
1853
- };
1854
- }
2401
+ pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
1855
2402
  function addDuplicateStringIssues(ctx, input) {
1856
2403
  const seen = /* @__PURE__ */ new Set();
1857
2404
  const duplicates = /* @__PURE__ */ new Set();
@@ -1886,52 +2433,727 @@ function validateUniquePageDesignPins(intent, ctx) {
1886
2433
  });
1887
2434
  }
1888
2435
  //#endregion
1889
- //#region ../theme-core/src/site-styles/footerLookDefaults.ts
1890
- const defaultFooterLookRecipes = {
1891
- "footer-centred-name": {
1892
- arrangement: "centred",
1893
- ground: {
1894
- kind: "token",
1895
- token: "surface"
2436
+ //#region ../theme-core/src/site-styles/headerDropdownRecipe.ts
2437
+ const neutralHeaderDropdown = {
2438
+ surface: {
2439
+ kind: "solid",
2440
+ background: "surface"
2441
+ },
2442
+ textColor: "text",
2443
+ borderColor: "border",
2444
+ shadow: "md",
2445
+ borderRadius: "md",
2446
+ textTransform: "none",
2447
+ letterSpacing: "normal"
2448
+ };
2449
+ ({ ...neutralHeaderDropdown });
2450
+ //#endregion
2451
+ //#region ../theme-core/src/site-styles/bookingPageLookIds.ts
2452
+ /** Deterministic fallback order; Fulcrum is the default. */
2453
+ const bookingPageLookIdValues = [
2454
+ "site-style:fulcrum",
2455
+ "site-style:folio",
2456
+ "site-style:measure",
2457
+ "site-style:grounded-practice",
2458
+ "site-style:lantern",
2459
+ "site-style:poster"
2460
+ ];
2461
+ /** Boundary admission for draft and suggestion inputs. */
2462
+ function parseBookingPageLookId(value) {
2463
+ const id = bookingPageLookIdValues.find((candidate) => candidate === value);
2464
+ return id ? asSiteStyleId(id) : null;
2465
+ }
2466
+ //#endregion
2467
+ //#region ../theme-core/src/site-styles/ownColours/bookingLookColourSpecs.ts
2468
+ const bookingLookGroundLimits = {
2469
+ "site-style:poster": {
2470
+ lightness: [.9, 1],
2471
+ maxChroma: .04
2472
+ },
2473
+ "site-style:fulcrum": {
2474
+ lightness: [.9, 1],
2475
+ maxChroma: .03
2476
+ },
2477
+ "site-style:folio": {
2478
+ lightness: [.88, 1],
2479
+ maxChroma: .05
2480
+ },
2481
+ "site-style:measure": {
2482
+ lightness: [.9, 1],
2483
+ maxChroma: .02
2484
+ },
2485
+ "site-style:grounded-practice": {
2486
+ lightness: [.85, 1],
2487
+ maxChroma: .06
2488
+ },
2489
+ "site-style:lantern": {
2490
+ lightness: [.12, .34],
2491
+ maxChroma: .07
2492
+ }
2493
+ };
2494
+ const contrast = (against, ratio = 3) => ({
2495
+ kind: "contrast",
2496
+ against,
2497
+ ratio
2498
+ });
2499
+ const distinct = (from, deltaE) => ({
2500
+ kind: "distinct",
2501
+ from,
2502
+ deltaE
2503
+ });
2504
+ const label = { kind: "label" };
2505
+ /** The quiet light grounds the five light looks share: faint tints of the leading colour, inside the look's limit. */
2506
+ function lightGrounds(limits, tint) {
2507
+ const page = Math.min(tint.page, limits.maxChroma);
2508
+ const band = Math.min(tint.band, limits.maxChroma);
2509
+ return {
2510
+ background: {
2511
+ l: [.955, .985],
2512
+ c: [0, page],
2513
+ chromaShare: .12,
2514
+ target: .972,
2515
+ name: "the page"
2516
+ },
2517
+ surface: {
2518
+ l: [.99, 1],
2519
+ c: [0, Math.min(page, .004)],
2520
+ chromaShare: .04,
2521
+ target: .997,
2522
+ name: "the cards"
2523
+ },
2524
+ surfaceAlt: {
2525
+ l: [.93, .965],
2526
+ c: [0, band],
2527
+ chromaShare: .25,
2528
+ target: .948,
2529
+ name: "the quieter panels",
2530
+ needs: [distinct("background", .015)]
2531
+ },
2532
+ muted: {
2533
+ l: tint.bandL,
2534
+ c: [0, band],
2535
+ chromaShare: .3,
2536
+ target: (tint.bandL[0] + tint.bandL[1]) / 2,
2537
+ name: "the band",
2538
+ needs: [distinct("background", .03)]
1896
2539
  },
1897
- nav: {
1898
- weight: "regular",
1899
- colorToken: "text",
1900
- hoverColorToken: "primary",
1901
- typography: "body"
2540
+ border: {
2541
+ l: [.8, .88],
2542
+ c: [0, band],
2543
+ chromaShare: .25,
2544
+ target: .85,
2545
+ name: "the rules"
2546
+ }
2547
+ };
2548
+ }
2549
+ const groundOrder = [
2550
+ "background",
2551
+ "surface",
2552
+ "muted",
2553
+ "surfaceAlt",
2554
+ "border"
2555
+ ];
2556
+ const lightReading = [
2557
+ "background",
2558
+ "surface",
2559
+ "surfaceAlt",
2560
+ "muted"
2561
+ ];
2562
+ /** Fulcrum: a quiet stone page, white sheets, a strong mid-tone on the buttons, a deep plate behind the opening panel. */
2563
+ const fulcrum = {
2564
+ roles: {
2565
+ ...lightGrounds(bookingLookGroundLimits["site-style:fulcrum"], {
2566
+ page: .008,
2567
+ band: .022,
2568
+ bandL: [.9, .94]
2569
+ }),
2570
+ primary: {
2571
+ l: [.3, .6],
2572
+ c: [.04, .16],
2573
+ target: .45,
2574
+ name: "the buttons",
2575
+ mention: true,
2576
+ needs: [
2577
+ contrast("background"),
2578
+ contrast("surface"),
2579
+ contrast("muted"),
2580
+ label
2581
+ ]
1902
2582
  },
1903
- legal: {
1904
- kind: "separate",
1905
- bar: null
2583
+ secondary: {
2584
+ l: [.18, .36],
2585
+ c: [.02, .11],
2586
+ target: .28,
2587
+ name: "the plate",
2588
+ mention: true,
2589
+ needs: [contrast("surface"), distinct("primary", .08)]
1906
2590
  },
1907
- brandAlign: "center"
2591
+ accent: {
2592
+ l: [.38, .72],
2593
+ c: [.06, .17],
2594
+ target: .62,
2595
+ name: "the small marks",
2596
+ analogous: true,
2597
+ needs: [
2598
+ contrast("background"),
2599
+ contrast("surface"),
2600
+ contrast("muted"),
2601
+ distinct("primary", .1)
2602
+ ]
2603
+ }
1908
2604
  },
1909
- "footer-links-row": {
1910
- arrangement: "simple",
1911
- ground: {
1912
- kind: "token",
1913
- token: "surface"
2605
+ slots: [
2606
+ {
2607
+ roles: ["muted"],
2608
+ name: "the band"
1914
2609
  },
1915
- nav: {
1916
- weight: "regular",
1917
- colorToken: "text",
1918
- hoverColorToken: "primary",
1919
- typography: "body"
2610
+ {
2611
+ roles: ["secondary"],
2612
+ name: "the plate"
1920
2613
  },
1921
- legal: { kind: "integrated" },
1922
- brandAlign: "start"
1923
- }
2614
+ {
2615
+ roles: ["primary"],
2616
+ name: "the buttons"
2617
+ },
2618
+ {
2619
+ roles: ["accent"],
2620
+ name: "the small marks"
2621
+ }
2622
+ ],
2623
+ order: [
2624
+ ...groundOrder,
2625
+ "primary",
2626
+ "secondary",
2627
+ "accent"
2628
+ ],
2629
+ neutrals: {
2630
+ dark: [.24, .02],
2631
+ light: [.995, .005]
2632
+ },
2633
+ reading: lightReading,
2634
+ groundLimit: bookingLookGroundLimits["site-style:fulcrum"].maxChroma,
2635
+ contrast: [{
2636
+ label: "a muted complement on the plate",
2637
+ hue: "complement",
2638
+ second: "secondary",
2639
+ lead: "primary",
2640
+ l: .3,
2641
+ c: [.04, .07]
2642
+ }, {
2643
+ label: "a warm colour on the buttons",
2644
+ hue: "split-warm",
2645
+ second: "primary",
2646
+ lead: "secondary",
2647
+ l: .45,
2648
+ c: [.08, .13]
2649
+ }]
1924
2650
  };
1925
- /** A whole authored recipe replaces the default; facets are never deep-merged. */
1926
- function resolveFooterLookRecipe(style, id) {
1927
- return style?.footerLookRecipes?.[id] ?? defaultFooterLookRecipes[id];
1928
- }
1929
- //#endregion
1930
- //#region ../theme-core/src/navigation/generateNavLinkCSS.ts
1931
- /**
1932
- * Generate complete CSS for nav links from a NavLinkStyle configuration
1933
- */
1934
- function generateNavLinkCSS(options) {
2651
+ /** Folio: warm paper, sheets and a band; buttons and links share the primary (hovering to its 800 shade); small rules and marks. */
2652
+ const folio = {
2653
+ roles: {
2654
+ ...lightGrounds(bookingLookGroundLimits["site-style:folio"], {
2655
+ page: .012,
2656
+ band: .03,
2657
+ bandL: [.9, .94]
2658
+ }),
2659
+ primary: {
2660
+ l: [.3, .55],
2661
+ c: [.03, .14],
2662
+ target: .42,
2663
+ name: "the buttons and links",
2664
+ mention: true,
2665
+ link: true,
2666
+ needs: [
2667
+ contrast("background"),
2668
+ contrast("surface"),
2669
+ contrast("muted"),
2670
+ label
2671
+ ]
2672
+ },
2673
+ secondary: {
2674
+ l: [.45, .62],
2675
+ c: [.01, .04],
2676
+ target: .54,
2677
+ name: "the quiet details"
2678
+ },
2679
+ accent: {
2680
+ l: [.38, .68],
2681
+ c: [.05, .15],
2682
+ target: .6,
2683
+ name: "the marks",
2684
+ mention: true,
2685
+ analogous: true,
2686
+ needs: [
2687
+ contrast("background"),
2688
+ contrast("surface"),
2689
+ contrast("muted"),
2690
+ distinct("primary", .1)
2691
+ ]
2692
+ }
2693
+ },
2694
+ slots: [
2695
+ {
2696
+ roles: ["muted"],
2697
+ name: "the band"
2698
+ },
2699
+ {
2700
+ roles: ["primary"],
2701
+ name: "the buttons and links"
2702
+ },
2703
+ {
2704
+ roles: ["accent"],
2705
+ name: "the marks"
2706
+ }
2707
+ ],
2708
+ order: [
2709
+ ...groundOrder,
2710
+ "primary",
2711
+ "accent",
2712
+ "secondary"
2713
+ ],
2714
+ neutrals: {
2715
+ dark: [.27, .015],
2716
+ light: [.985, .01]
2717
+ },
2718
+ reading: lightReading,
2719
+ groundLimit: bookingLookGroundLimits["site-style:folio"].maxChroma,
2720
+ contrast: [{
2721
+ label: "the complement on the buttons and links",
2722
+ hue: "complement",
2723
+ second: "primary",
2724
+ lead: "accent",
2725
+ l: .42,
2726
+ c: [.08, .13]
2727
+ }, {
2728
+ label: "a warm colour on the buttons and links",
2729
+ hue: "split-warm",
2730
+ second: "primary",
2731
+ lead: "accent",
2732
+ l: .42,
2733
+ c: [.08, .13]
2734
+ }]
2735
+ };
2736
+ /** Measure: one plain page. Flat buttons that fill with the secondary on hover, and a small square. */
2737
+ const measure = {
2738
+ roles: {
2739
+ ...lightGrounds(bookingLookGroundLimits["site-style:measure"], {
2740
+ page: .008,
2741
+ band: .012,
2742
+ bandL: [.91, .94]
2743
+ }),
2744
+ primary: {
2745
+ l: [.18, .55],
2746
+ c: [0, .16],
2747
+ target: .26,
2748
+ derivedChroma: .035,
2749
+ name: "the buttons",
2750
+ needs: [
2751
+ contrast("background"),
2752
+ contrast("surface"),
2753
+ label
2754
+ ]
2755
+ },
2756
+ secondary: {
2757
+ l: [.12, .5],
2758
+ c: [0, .16],
2759
+ target: {
2760
+ from: "primary",
2761
+ dl: -.06
2762
+ },
2763
+ hueFrom: "primary",
2764
+ name: "the button hover",
2765
+ needs: [contrast("background"), label]
2766
+ },
2767
+ accent: {
2768
+ l: [.4, .7],
2769
+ c: [.08, .2],
2770
+ target: .55,
2771
+ name: "the small square",
2772
+ mention: true,
2773
+ analogous: true,
2774
+ needs: [
2775
+ contrast("background"),
2776
+ contrast("surface"),
2777
+ distinct("primary", .1)
2778
+ ]
2779
+ }
2780
+ },
2781
+ slots: [{
2782
+ roles: ["primary"],
2783
+ name: "the buttons"
2784
+ }, {
2785
+ roles: ["accent"],
2786
+ name: "the small square"
2787
+ }],
2788
+ order: [
2789
+ ...groundOrder,
2790
+ "primary",
2791
+ "secondary",
2792
+ "accent"
2793
+ ],
2794
+ neutrals: {
2795
+ dark: [.22, .012],
2796
+ light: [.995, .004]
2797
+ },
2798
+ reading: lightReading,
2799
+ groundLimit: bookingLookGroundLimits["site-style:measure"].maxChroma,
2800
+ contrast: [{
2801
+ label: "the complement on the square and the button hover",
2802
+ hue: "complement",
2803
+ second: "accent",
2804
+ lead: "primary",
2805
+ alsoTints: {
2806
+ roles: ["secondary"],
2807
+ name: "the button hover"
2808
+ },
2809
+ l: .55,
2810
+ c: [.1, .17]
2811
+ }, {
2812
+ label: "a warm colour on the buttons",
2813
+ hue: "split-warm",
2814
+ second: "primary",
2815
+ lead: "accent",
2816
+ l: .38,
2817
+ c: [.08, .13]
2818
+ }]
2819
+ };
2820
+ /** Grounded Practice: an inset panel on the muted colour opens the page; links and buttons share the primary. */
2821
+ const grounded = {
2822
+ roles: {
2823
+ ...lightGrounds(bookingLookGroundLimits["site-style:grounded-practice"], {
2824
+ page: .012,
2825
+ band: .04,
2826
+ bandL: [.9, .945]
2827
+ }),
2828
+ primary: {
2829
+ l: [.3, .55],
2830
+ c: [.03, .14],
2831
+ target: .42,
2832
+ name: "the buttons and links",
2833
+ mention: true,
2834
+ link: true,
2835
+ needs: [
2836
+ contrast("background"),
2837
+ contrast("muted"),
2838
+ label,
2839
+ {
2840
+ kind: "ladder",
2841
+ step: 600,
2842
+ against: "muted",
2843
+ ratio: 3
2844
+ }
2845
+ ]
2846
+ },
2847
+ secondary: {
2848
+ l: [.45, .62],
2849
+ c: [.01, .04],
2850
+ target: .54,
2851
+ name: "the quiet details"
2852
+ },
2853
+ accent: {
2854
+ l: [.38, .68],
2855
+ c: [.05, .15],
2856
+ target: .6,
2857
+ name: "the small marks",
2858
+ analogous: true,
2859
+ needs: [contrast("background"), distinct("primary", .1)]
2860
+ }
2861
+ },
2862
+ slots: [{
2863
+ roles: ["muted"],
2864
+ name: "the opening panel"
2865
+ }, {
2866
+ roles: ["primary"],
2867
+ name: "the buttons and links"
2868
+ }],
2869
+ order: [
2870
+ ...groundOrder,
2871
+ "primary",
2872
+ "accent",
2873
+ "secondary"
2874
+ ],
2875
+ neutrals: {
2876
+ dark: [.27, .015],
2877
+ light: [.985, .01]
2878
+ },
2879
+ reading: lightReading,
2880
+ groundLimit: bookingLookGroundLimits["site-style:grounded-practice"].maxChroma,
2881
+ contrast: [{
2882
+ label: "the complement on the buttons and links",
2883
+ hue: "complement",
2884
+ second: "primary",
2885
+ lead: "muted",
2886
+ l: .42,
2887
+ c: [.08, .13]
2888
+ }, {
2889
+ label: "a warm colour on the buttons and links",
2890
+ hue: "split-warm",
2891
+ second: "primary",
2892
+ lead: "muted",
2893
+ l: .42,
2894
+ c: [.08, .13]
2895
+ }]
2896
+ };
2897
+ /**
2898
+ * Lantern: always dark. A very dark page, a deep band, gilt buttons running
2899
+ * from the accent into the primary (one colour family, light into deeper),
2900
+ * and the accent on every ornament and the candle glow.
2901
+ */
2902
+ const lanternLimits = bookingLookGroundLimits["site-style:lantern"];
2903
+ const lantern = {
2904
+ roles: {
2905
+ background: {
2906
+ l: [.14, .22],
2907
+ c: [0, Math.min(.03, lanternLimits.maxChroma)],
2908
+ chromaShare: .3,
2909
+ target: .18,
2910
+ name: "the page"
2911
+ },
2912
+ surface: {
2913
+ l: [.24, .3],
2914
+ c: [0, Math.min(.035, lanternLimits.maxChroma)],
2915
+ chromaShare: .3,
2916
+ target: .27,
2917
+ name: "the cards",
2918
+ needs: [distinct("background", .05)]
2919
+ },
2920
+ surfaceAlt: {
2921
+ l: [.28, .34],
2922
+ c: [0, Math.min(.035, lanternLimits.maxChroma)],
2923
+ chromaShare: .3,
2924
+ target: .31,
2925
+ name: "the quieter panels"
2926
+ },
2927
+ muted: {
2928
+ l: [.2, .32],
2929
+ c: [0, lanternLimits.maxChroma],
2930
+ chromaShare: .45,
2931
+ target: .235,
2932
+ name: "the band",
2933
+ needs: [distinct("background", .04)]
2934
+ },
2935
+ border: {
2936
+ l: [.35, .42],
2937
+ c: [0, .035],
2938
+ chromaShare: .3,
2939
+ target: .38,
2940
+ name: "the rules"
2941
+ },
2942
+ accent: {
2943
+ l: [.76, .9],
2944
+ c: [.03, .13],
2945
+ target: .86,
2946
+ name: "the ornaments and the light end of the gilt",
2947
+ mention: true,
2948
+ giltEnd: true,
2949
+ hueFrom: "primary",
2950
+ needs: [
2951
+ contrast("background"),
2952
+ contrast("muted"),
2953
+ label
2954
+ ]
2955
+ },
2956
+ primary: {
2957
+ l: [.62, .82],
2958
+ c: [.03, .15],
2959
+ target: {
2960
+ from: "accent",
2961
+ dl: -.11
2962
+ },
2963
+ hueFrom: "accent",
2964
+ name: "the deep end of the gilt",
2965
+ giltEnd: true,
2966
+ needs: [
2967
+ contrast("background"),
2968
+ contrast("muted"),
2969
+ label,
2970
+ distinct("accent", .06)
2971
+ ]
2972
+ },
2973
+ secondary: {
2974
+ l: [.24, .38],
2975
+ c: [.04, .11],
2976
+ target: .3,
2977
+ name: "the deep details"
2978
+ }
2979
+ },
2980
+ slots: [{
2981
+ roles: ["muted"],
2982
+ name: "the band"
2983
+ }, {
2984
+ roles: ["accent", "primary"],
2985
+ name: "the gilt buttons"
2986
+ }],
2987
+ order: [
2988
+ ...groundOrder,
2989
+ "accent",
2990
+ "primary",
2991
+ "secondary"
2992
+ ],
2993
+ neutrals: {
2994
+ dark: [.2, .03],
2995
+ light: [.95, .02]
2996
+ },
2997
+ reading: [
2998
+ "background",
2999
+ "surface",
3000
+ "surfaceAlt",
3001
+ "muted"
3002
+ ],
3003
+ groundLimit: lanternLimits.maxChroma,
3004
+ contrast: [{
3005
+ label: "a warm complement on the gilt",
3006
+ hue: "warm-complement",
3007
+ second: "accent",
3008
+ lead: "muted",
3009
+ l: .84,
3010
+ c: [.08, .12]
3011
+ }, {
3012
+ label: "a second warm colour on the gilt",
3013
+ hue: "warm-other",
3014
+ second: "accent",
3015
+ lead: "muted",
3016
+ l: .84,
3017
+ c: [.08, .12]
3018
+ }]
3019
+ };
3020
+ /** Poster: the brand block is the one large area meant to be loud. Its buttons are the pop colour; elsewhere buttons are the block colour. */
3021
+ const posterBand = {
3022
+ roles: ["muted", "surfaceAlt"],
3023
+ name: "a faint tint of it on the band"
3024
+ };
3025
+ /** Keyed by the offered looks, so a booking look without a colour spec doesn't compile. */
3026
+ const bookingLookColourSpecs = {
3027
+ "site-style:fulcrum": fulcrum,
3028
+ "site-style:folio": folio,
3029
+ "site-style:measure": measure,
3030
+ "site-style:grounded-practice": grounded,
3031
+ "site-style:lantern": lantern,
3032
+ "site-style:poster": {
3033
+ roles: {
3034
+ ...lightGrounds(bookingLookGroundLimits["site-style:poster"], {
3035
+ page: .008,
3036
+ band: .04,
3037
+ bandL: [.92, .96]
3038
+ }),
3039
+ primary: {
3040
+ l: [.3, .62],
3041
+ c: [.08, .25],
3042
+ target: .48,
3043
+ name: "the big block",
3044
+ mention: true,
3045
+ needs: [
3046
+ contrast("surface", 3.6),
3047
+ contrast("background"),
3048
+ label
3049
+ ]
3050
+ },
3051
+ accent: {
3052
+ l: [.62, .95],
3053
+ c: [.08, .25],
3054
+ target: .86,
3055
+ name: "the pop buttons and stickers",
3056
+ mention: true,
3057
+ analogous: true,
3058
+ needs: [
3059
+ contrast("primary"),
3060
+ label,
3061
+ distinct("primary", .15)
3062
+ ]
3063
+ },
3064
+ secondary: {
3065
+ l: [.15, .32],
3066
+ c: [.03, .15],
3067
+ target: .24,
3068
+ name: "the hard shadows",
3069
+ needs: [distinct("primary", .1)]
3070
+ }
3071
+ },
3072
+ slots: [{
3073
+ roles: ["primary"],
3074
+ name: "the big block"
3075
+ }, {
3076
+ roles: ["accent"],
3077
+ name: "the pop buttons and stickers"
3078
+ }],
3079
+ order: [
3080
+ ...groundOrder,
3081
+ "primary",
3082
+ "accent",
3083
+ "secondary"
3084
+ ],
3085
+ neutrals: {
3086
+ dark: [.2, .04],
3087
+ light: [1, 0]
3088
+ },
3089
+ reading: lightReading,
3090
+ groundLimit: bookingLookGroundLimits["site-style:poster"].maxChroma,
3091
+ contrast: [{
3092
+ label: "the complement on the pop buttons",
3093
+ hue: "complement",
3094
+ second: "accent",
3095
+ lead: "primary",
3096
+ alsoTints: posterBand,
3097
+ l: .82,
3098
+ c: [.12, .15]
3099
+ }, {
3100
+ label: "a warm triadic partner on the pop buttons",
3101
+ hue: "triadic-warm",
3102
+ second: "accent",
3103
+ lead: "primary",
3104
+ alsoTints: posterBand,
3105
+ l: .82,
3106
+ c: [.12, .15]
3107
+ }]
3108
+ }
3109
+ };
3110
+ //#endregion
3111
+ //#region ../theme-core/src/site-styles/footerLookDefaults.ts
3112
+ const defaultFooterLookRecipes = {
3113
+ "footer-centred-name": {
3114
+ arrangement: "centred",
3115
+ ground: {
3116
+ kind: "token",
3117
+ token: "surface"
3118
+ },
3119
+ nav: {
3120
+ weight: "regular",
3121
+ colorToken: "text",
3122
+ hoverColorToken: "primary",
3123
+ typography: "body"
3124
+ },
3125
+ legal: {
3126
+ kind: "separate",
3127
+ bar: null
3128
+ },
3129
+ brandAlign: "center"
3130
+ },
3131
+ "footer-links-row": {
3132
+ arrangement: "simple",
3133
+ ground: {
3134
+ kind: "token",
3135
+ token: "surface"
3136
+ },
3137
+ nav: {
3138
+ weight: "regular",
3139
+ colorToken: "text",
3140
+ hoverColorToken: "primary",
3141
+ typography: "body"
3142
+ },
3143
+ legal: { kind: "integrated" },
3144
+ brandAlign: "start"
3145
+ }
3146
+ };
3147
+ /** A whole authored recipe replaces the default; facets are never deep-merged. */
3148
+ function resolveFooterLookRecipe(style, id) {
3149
+ return style?.footerLookRecipes?.[id] ?? defaultFooterLookRecipes[id];
3150
+ }
3151
+ //#endregion
3152
+ //#region ../theme-core/src/navigation/generateNavLinkCSS.ts
3153
+ /**
3154
+ * Generate complete CSS for nav links from a NavLinkStyle configuration
3155
+ */
3156
+ function generateNavLinkCSS(options) {
1935
3157
  const { themeId, tokens, theme, style, className } = options;
1936
3158
  const surfaceDependent = options.surfaceDependent === true && !navLinkOwnsHoverForeground(style);
1937
3159
  const overriddenSurface = options.surfaceDependent === true && options.surfaceRestingColor === true;
@@ -4437,81 +5659,288 @@ const measureNight = defineCuratedPalette({
4437
5659
  }
4438
5660
  ]
4439
5661
  });
4440
- //#endregion
4441
- //#region ../theme-core/src/palette/curated/index.ts
4442
- function admitCuratedPaletteDefinition(definition) {
4443
- return {
4444
- ...definition,
4445
- valueKey: definition.valueKey
4446
- };
4447
- }
4448
- const curatedPalettes = [
4449
- admitCuratedPaletteDefinition(brandLedCool),
4450
- admitCuratedPaletteDefinition(brandLedWarm),
4451
- admitCuratedPaletteDefinition(brandLedJewel),
4452
- admitCuratedPaletteDefinition(brandLedBurgundyGold),
4453
- admitCuratedPaletteDefinition(brandLedSpruce),
4454
- admitCuratedPaletteDefinition(warmNeutralClay),
4455
- admitCuratedPaletteDefinition(warmNeutralCream),
4456
- admitCuratedPaletteDefinition(warmNeutralSoftEarth),
4457
- admitCuratedPaletteDefinition(warmNeutralForest),
4458
- admitCuratedPaletteDefinition(highContrastInk),
4459
- admitCuratedPaletteDefinition(highContrastCharcoal),
4460
- admitCuratedPaletteDefinition(highContrastMonochrome),
4461
- admitCuratedPaletteDefinition(softNaturalSage),
4462
- admitCuratedPaletteDefinition(softNaturalStone),
4463
- admitCuratedPaletteDefinition(softNaturalWatercolor),
4464
- admitCuratedPaletteDefinition(softNaturalLilac),
4465
- admitCuratedPaletteDefinition(warmDarkEmber),
4466
- admitCuratedPaletteDefinition(warmDarkKirtanGold)
4467
- ];
4468
- /** Style-owned suggestions are readable for compilation, never globally offered. */
4469
- const styleSuggestedPalettes = [
4470
- {
4471
- ...admitCuratedPaletteDefinition(fulcrumDeepGreen),
4472
- ownerStyleId: "site-style:fulcrum"
4473
- },
4474
- {
4475
- ...admitCuratedPaletteDefinition(fulcrumNight),
4476
- ownerStyleId: "site-style:fulcrum"
4477
- },
4478
- {
4479
- ...admitCuratedPaletteDefinition(fulcrumClay),
4480
- ownerStyleId: "site-style:fulcrum"
4481
- },
4482
- {
4483
- ...admitCuratedPaletteDefinition(posterCobalt),
4484
- ownerStyleId: "site-style:poster"
4485
- },
4486
- {
4487
- ...admitCuratedPaletteDefinition(posterConcrete),
4488
- ownerStyleId: "site-style:poster"
4489
- },
4490
- {
4491
- ...admitCuratedPaletteDefinition(posterRose),
4492
- ownerStyleId: "site-style:poster"
4493
- },
4494
- {
4495
- ...admitCuratedPaletteDefinition(lanternPlum),
4496
- ownerStyleId: "site-style:lantern"
4497
- },
4498
- {
4499
- ...admitCuratedPaletteDefinition(lanternPeacock),
4500
- ownerStyleId: "site-style:lantern"
4501
- },
4502
- {
4503
- ...admitCuratedPaletteDefinition(lanternDawn),
4504
- ownerStyleId: "site-style:lantern"
4505
- },
4506
- {
4507
- ...admitCuratedPaletteDefinition(measurePaper),
4508
- ownerStyleId: "site-style:measure"
5662
+ const loomHearth = defineCuratedPalette({
5663
+ authoringKey: "loom-hearth",
5664
+ name: "Loom — Hearth",
5665
+ description: "Warm paper, espresso ink and a rust patch.",
5666
+ tags: {
5667
+ tone: "classic",
5668
+ energy: "calm",
5669
+ era: "organic"
4509
5670
  },
4510
- {
4511
- ...admitCuratedPaletteDefinition(measurePlaster),
4512
- ownerStyleId: "site-style:measure"
5671
+ mode: "light",
5672
+ colors: [
5673
+ {
5674
+ name: "primary",
5675
+ hex: "#a2471f"
5676
+ },
5677
+ {
5678
+ name: "secondary",
5679
+ hex: "#33261d"
5680
+ },
5681
+ {
5682
+ name: "accent",
5683
+ hex: "#7f5f0e"
5684
+ },
5685
+ {
5686
+ name: "success",
5687
+ hex: "#2c7a45"
5688
+ },
5689
+ {
5690
+ name: "warning",
5691
+ hex: "#8a5a00"
5692
+ },
5693
+ {
5694
+ name: "destructive",
5695
+ hex: "#b3261e"
5696
+ },
5697
+ {
5698
+ name: "background",
5699
+ hex: "#faf5ec"
5700
+ },
5701
+ {
5702
+ name: "surface",
5703
+ hex: "#fffdf7"
5704
+ },
5705
+ {
5706
+ name: "surfaceAlt",
5707
+ hex: "#f0e7d5"
5708
+ },
5709
+ {
5710
+ name: "muted",
5711
+ hex: "#61544a"
5712
+ },
5713
+ {
5714
+ name: "text",
5715
+ hex: "#2c211a"
5716
+ },
5717
+ {
5718
+ name: "primaryForeground",
5719
+ hex: "#fff6e8"
5720
+ },
5721
+ {
5722
+ name: "border",
5723
+ hex: "#8a7660"
5724
+ }
5725
+ ]
5726
+ });
5727
+ const loomFlax = defineCuratedPalette({
5728
+ authoringKey: "loom-flax",
5729
+ name: "Loom — Flax",
5730
+ description: "Pale sage, pine ink and a deep green patch.",
5731
+ tags: {
5732
+ tone: "classic",
5733
+ energy: "calm",
5734
+ era: "organic"
4513
5735
  },
4514
- {
5736
+ mode: "light",
5737
+ colors: [
5738
+ {
5739
+ name: "primary",
5740
+ hex: "#33695a"
5741
+ },
5742
+ {
5743
+ name: "secondary",
5744
+ hex: "#222b26"
5745
+ },
5746
+ {
5747
+ name: "accent",
5748
+ hex: "#a34d22"
5749
+ },
5750
+ {
5751
+ name: "success",
5752
+ hex: "#2c7a45"
5753
+ },
5754
+ {
5755
+ name: "warning",
5756
+ hex: "#7a5200"
5757
+ },
5758
+ {
5759
+ name: "destructive",
5760
+ hex: "#a93226"
5761
+ },
5762
+ {
5763
+ name: "background",
5764
+ hex: "#eef1ea"
5765
+ },
5766
+ {
5767
+ name: "surface",
5768
+ hex: "#f9faf6"
5769
+ },
5770
+ {
5771
+ name: "surfaceAlt",
5772
+ hex: "#dfe4d6"
5773
+ },
5774
+ {
5775
+ name: "muted",
5776
+ hex: "#4c5a51"
5777
+ },
5778
+ {
5779
+ name: "text",
5780
+ hex: "#222c27"
5781
+ },
5782
+ {
5783
+ name: "primaryForeground",
5784
+ hex: "#f2f6ec"
5785
+ },
5786
+ {
5787
+ name: "border",
5788
+ hex: "#68776d"
5789
+ }
5790
+ ]
5791
+ });
5792
+ const loomEmber = defineCuratedPalette({
5793
+ authoringKey: "loom-ember",
5794
+ name: "Loom — Ember",
5795
+ description: "Deep espresso, cream ink and a terracotta patch.",
5796
+ tags: {
5797
+ tone: "classic",
5798
+ energy: "calm",
5799
+ era: "organic"
5800
+ },
5801
+ mode: "dark",
5802
+ colors: [
5803
+ {
5804
+ name: "primary",
5805
+ hex: "#a95224"
5806
+ },
5807
+ {
5808
+ name: "secondary",
5809
+ hex: "#140d0a"
5810
+ },
5811
+ {
5812
+ name: "accent",
5813
+ hex: "#e0a83c"
5814
+ },
5815
+ {
5816
+ name: "success",
5817
+ hex: "#7cc79b"
5818
+ },
5819
+ {
5820
+ name: "warning",
5821
+ hex: "#e3b25c"
5822
+ },
5823
+ {
5824
+ name: "destructive",
5825
+ hex: "#ec8d80"
5826
+ },
5827
+ {
5828
+ name: "background",
5829
+ hex: "#201512"
5830
+ },
5831
+ {
5832
+ name: "surface",
5833
+ hex: "#2b1e19"
5834
+ },
5835
+ {
5836
+ name: "surfaceAlt",
5837
+ hex: "#170f0c"
5838
+ },
5839
+ {
5840
+ name: "muted",
5841
+ hex: "#c9b29a"
5842
+ },
5843
+ {
5844
+ name: "text",
5845
+ hex: "#f4e8d4"
5846
+ },
5847
+ {
5848
+ name: "primaryForeground",
5849
+ hex: "#fff6e8"
5850
+ },
5851
+ {
5852
+ name: "border",
5853
+ hex: "#9a8264"
5854
+ }
5855
+ ]
5856
+ });
5857
+ //#endregion
5858
+ //#region ../theme-core/src/palette/curated/index.ts
5859
+ function admitCuratedPaletteDefinition(definition) {
5860
+ return {
5861
+ ...definition,
5862
+ valueKey: definition.valueKey
5863
+ };
5864
+ }
5865
+ const curatedPalettes = [
5866
+ admitCuratedPaletteDefinition(brandLedCool),
5867
+ admitCuratedPaletteDefinition(brandLedWarm),
5868
+ admitCuratedPaletteDefinition(brandLedJewel),
5869
+ admitCuratedPaletteDefinition(brandLedBurgundyGold),
5870
+ admitCuratedPaletteDefinition(brandLedSpruce),
5871
+ admitCuratedPaletteDefinition(warmNeutralClay),
5872
+ admitCuratedPaletteDefinition(warmNeutralCream),
5873
+ admitCuratedPaletteDefinition(warmNeutralSoftEarth),
5874
+ admitCuratedPaletteDefinition(warmNeutralForest),
5875
+ admitCuratedPaletteDefinition(highContrastInk),
5876
+ admitCuratedPaletteDefinition(highContrastCharcoal),
5877
+ admitCuratedPaletteDefinition(highContrastMonochrome),
5878
+ admitCuratedPaletteDefinition(softNaturalSage),
5879
+ admitCuratedPaletteDefinition(softNaturalStone),
5880
+ admitCuratedPaletteDefinition(softNaturalWatercolor),
5881
+ admitCuratedPaletteDefinition(softNaturalLilac),
5882
+ admitCuratedPaletteDefinition(warmDarkEmber),
5883
+ admitCuratedPaletteDefinition(warmDarkKirtanGold)
5884
+ ];
5885
+ /** Style-owned suggestions are readable for compilation, never globally offered. */
5886
+ const styleSuggestedPalettes = [
5887
+ {
5888
+ ...admitCuratedPaletteDefinition(loomHearth),
5889
+ ownerStyleId: "site-style:loom"
5890
+ },
5891
+ {
5892
+ ...admitCuratedPaletteDefinition(loomFlax),
5893
+ ownerStyleId: "site-style:loom"
5894
+ },
5895
+ {
5896
+ ...admitCuratedPaletteDefinition(loomEmber),
5897
+ ownerStyleId: "site-style:loom"
5898
+ },
5899
+ {
5900
+ ...admitCuratedPaletteDefinition(fulcrumDeepGreen),
5901
+ ownerStyleId: "site-style:fulcrum"
5902
+ },
5903
+ {
5904
+ ...admitCuratedPaletteDefinition(fulcrumNight),
5905
+ ownerStyleId: "site-style:fulcrum"
5906
+ },
5907
+ {
5908
+ ...admitCuratedPaletteDefinition(fulcrumClay),
5909
+ ownerStyleId: "site-style:fulcrum"
5910
+ },
5911
+ {
5912
+ ...admitCuratedPaletteDefinition(posterCobalt),
5913
+ ownerStyleId: "site-style:poster"
5914
+ },
5915
+ {
5916
+ ...admitCuratedPaletteDefinition(posterConcrete),
5917
+ ownerStyleId: "site-style:poster"
5918
+ },
5919
+ {
5920
+ ...admitCuratedPaletteDefinition(posterRose),
5921
+ ownerStyleId: "site-style:poster"
5922
+ },
5923
+ {
5924
+ ...admitCuratedPaletteDefinition(lanternPlum),
5925
+ ownerStyleId: "site-style:lantern"
5926
+ },
5927
+ {
5928
+ ...admitCuratedPaletteDefinition(lanternPeacock),
5929
+ ownerStyleId: "site-style:lantern"
5930
+ },
5931
+ {
5932
+ ...admitCuratedPaletteDefinition(lanternDawn),
5933
+ ownerStyleId: "site-style:lantern"
5934
+ },
5935
+ {
5936
+ ...admitCuratedPaletteDefinition(measurePaper),
5937
+ ownerStyleId: "site-style:measure"
5938
+ },
5939
+ {
5940
+ ...admitCuratedPaletteDefinition(measurePlaster),
5941
+ ownerStyleId: "site-style:measure"
5942
+ },
5943
+ {
4515
5944
  ...admitCuratedPaletteDefinition(measureNight),
4516
5945
  ownerStyleId: "site-style:measure"
4517
5946
  }
@@ -5935,6 +7364,52 @@ function defaultTypographyForRecipe(recipe) {
5935
7364
  case "classic-serif": return classicSerifTypography;
5936
7365
  }
5937
7366
  }
7367
+ /** Loom: the working face is Figtree; Fraunces owns display and quote copy. */
7368
+ const loomTypography = {
7369
+ body: {
7370
+ family: "Figtree, system-ui, sans-serif",
7371
+ size: "lg",
7372
+ weight: "regular",
7373
+ lineHeight: "relaxed",
7374
+ letterSpacing: "normal"
7375
+ },
7376
+ smallHeading: {
7377
+ family: "Figtree, system-ui, sans-serif",
7378
+ weight: "semibold"
7379
+ },
7380
+ headings: {
7381
+ default: {
7382
+ family: "Fraunces, Georgia, serif",
7383
+ weight: "semibold",
7384
+ lineHeight: "normal",
7385
+ letterSpacing: "tight",
7386
+ italic: null,
7387
+ case: null
7388
+ },
7389
+ h1: {
7390
+ size: "2xl",
7391
+ weight: "semibold",
7392
+ lineHeight: "tight",
7393
+ letterSpacing: "tight",
7394
+ italic: null
7395
+ },
7396
+ h2: {
7397
+ size: "xl",
7398
+ weight: "semibold",
7399
+ lineHeight: "snug",
7400
+ letterSpacing: "tight",
7401
+ italic: null
7402
+ },
7403
+ h3: {
7404
+ size: "md",
7405
+ weight: "semibold",
7406
+ lineHeight: "snug",
7407
+ letterSpacing: "normal",
7408
+ italic: null
7409
+ }
7410
+ },
7411
+ scale: "spacious"
7412
+ };
5938
7413
  //#endregion
5939
7414
  //#region ../theme-core/src/site-styles/designState.ts
5940
7415
  const designResolutionPolicySchema = z.enum([
@@ -5945,24 +7420,17 @@ const designResolutionPolicySchema = z.enum([
5945
7420
  ]);
5946
7421
  const runtimeStyleFieldNameSchema = z.enum(themeV2RuntimeStyleFieldNames);
5947
7422
  const nonEmptyRuntimeStyleFieldNamesSchema = z.array(runtimeStyleFieldNameSchema).min(1).transform((fields) => [fields[0], ...fields.slice(1)]);
5948
- const styleAuthoritySchema = z.discriminatedUnion("kind", [
5949
- z.object({
5950
- kind: z.literal("theme-v2"),
5951
- source: designResolutionPolicySchema,
5952
- siteStyleId: z.string().min(1).transform(asSiteStyleId),
5953
- templateId: z.string().min(1).transform(asDesignSystemTemplateId),
5954
- templateVersion: z.number().int().nonnegative(),
5955
- resolverVersion: z.number().int().nonnegative()
5956
- }).strict(),
5957
- z.object({
5958
- kind: z.literal("legacy-raw"),
5959
- reason: z.enum(["pre-theme-v2", "manual-runtime-fields"])
5960
- }).strict(),
5961
- z.object({
5962
- kind: z.literal("advanced-detached"),
5963
- reason: z.literal("detached-custom-runtime-fields")
5964
- }).strict()
5965
- ]);
7423
+ const styleAuthoritySchema = z.discriminatedUnion("kind", [z.object({
7424
+ kind: z.literal("theme-v2"),
7425
+ source: designResolutionPolicySchema,
7426
+ siteStyleId: z.string().min(1).transform(asSiteStyleId),
7427
+ templateId: z.string().min(1).transform(asDesignSystemTemplateId),
7428
+ templateVersion: z.number().int().nonnegative(),
7429
+ resolverVersion: z.number().int().nonnegative()
7430
+ }).strict(), z.object({
7431
+ kind: z.literal("advanced-detached"),
7432
+ reason: z.literal("detached-custom-runtime-fields")
7433
+ }).strict()]);
5966
7434
  z.object({
5967
7435
  unit: z.literal("block-runtime-fields"),
5968
7436
  blockId: z.string().min(1).transform(asDesignBlockId),
@@ -6343,8 +7811,42 @@ const curatedSiteStyleIdValues = [
6343
7811
  "site-style:poster",
6344
7812
  "site-style:lantern",
6345
7813
  "site-style:measure",
6346
- "site-style:folio"
7814
+ "site-style:folio",
7815
+ "site-style:loom"
6347
7816
  ];
7817
+ /** Keyed by the offered looks, so adding a look without its hero Look doesn't compile. */
7818
+ const bookingPageNoPhotoHeroLookIds = {
7819
+ "site-style:fulcrum": "hero-photo-beside-text",
7820
+ "site-style:folio": "hero-page-head",
7821
+ "site-style:measure": "hero-page-head",
7822
+ "site-style:grounded-practice": "hero-contained-intro",
7823
+ "site-style:lantern": "hero-framed-title",
7824
+ "site-style:poster": "hero-page-head"
7825
+ };
7826
+ function bookingPageOfferingFor(siteStyleId) {
7827
+ const lookId = bookingPageLookIdValues.find((id) => id === siteStyleId);
7828
+ return lookId ? {
7829
+ noPhotoHeroLookId: asAppearancePresetId(bookingPageNoPhotoHeroLookIds[lookId]),
7830
+ colourSpec: bookingLookColourSpecs[lookId]
7831
+ } : void 0;
7832
+ }
7833
+ function clientStyleMatchesSite(siteSlugs, target) {
7834
+ if (target.audience !== "site-picker" && target.audience !== "local-demo") return false;
7835
+ return target.siteSlug != null && siteSlugs.includes(target.siteSlug);
7836
+ }
7837
+ /** The same eligibility decision governs offering and the apply write boundary. */
7838
+ function siteStyleOfferingDecision(offering, target) {
7839
+ if (target.audience === "lab") return { kind: "offered" };
7840
+ const localDemo = target.audience === "local-demo" && target.environment === "local-development";
7841
+ switch (offering.kind) {
7842
+ case "public": return target.audience === "booking-page" && !offering.bookingPage ? { kind: "audience-mismatch" } : { kind: "offered" };
7843
+ case "lab": return localDemo ? { kind: "offered" } : { kind: "lab" };
7844
+ case "client": return localDemo || clientStyleMatchesSite(offering.siteSlugs, target) ? { kind: "offered" } : { kind: "client-site-mismatch" };
7845
+ }
7846
+ }
7847
+ function offeredSiteStyles(target, catalogue = curatedSiteStyles) {
7848
+ return catalogue.filter((style) => siteStyleOfferingDecision(style.offering, target).kind === "offered");
7849
+ }
6348
7850
  const quietBudget = {
6349
7851
  accentDensity: "low",
6350
7852
  panelDensity: "medium",
@@ -6540,6 +8042,10 @@ function defineHeaderCuration(input) {
6540
8042
  return [toEntry(first), ...remaining.map(toEntry)];
6541
8043
  }
6542
8044
  const headerCurationBySiteStyle = {
8045
+ "site-style:loom": defineHeaderCuration([{
8046
+ layoutId: "classic",
8047
+ styleIds: ["serif-line"]
8048
+ }]),
6543
8049
  "site-style:clarity-zen-blue": defineHeaderCuration([{
6544
8050
  layoutId: "centered",
6545
8051
  styleIds: [
@@ -6674,91 +8180,561 @@ const headerCurationBySiteStyle = {
6674
8180
  }]),
6675
8181
  "site-style:folio": defineHeaderCuration([
6676
8182
  {
6677
- layoutId: "floating",
6678
- styleIds: ["minimal-surface", "glass"]
8183
+ layoutId: "floating",
8184
+ styleIds: [
8185
+ "minimal-surface",
8186
+ "soft-shell",
8187
+ "glass"
8188
+ ]
8189
+ },
8190
+ {
8191
+ layoutId: "classic",
8192
+ styleIds: [
8193
+ "minimal",
8194
+ "serif-line",
8195
+ "fine-line",
8196
+ "soft-bar"
8197
+ ]
8198
+ },
8199
+ {
8200
+ layoutId: "centered",
8201
+ styleIds: [
8202
+ "serif-line",
8203
+ "fine-line",
8204
+ "minimal",
8205
+ "soft-bar"
8206
+ ]
8207
+ }
8208
+ ]),
8209
+ "site-style:measure": defineHeaderCuration([{
8210
+ layoutId: "classic",
8211
+ styleIds: ["fine-line", "minimal"]
8212
+ }])
8213
+ };
8214
+ /** Optional authored overrides remain absent when the catalogue did not supply them. */
8215
+ function authoredSiteStyleOverrides(input) {
8216
+ return {
8217
+ ...input.themeOverrides ? { themeOverrides: input.themeOverrides } : {},
8218
+ ...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
8219
+ ...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
8220
+ ...input.heroTypography ? { heroTypography: input.heroTypography } : {}
8221
+ };
8222
+ }
8223
+ function siteStyleFontDefaults(input) {
8224
+ const typography = input.typography ?? defaultTypographyForRecipe(input.tokenRecipes.typography);
8225
+ return {
8226
+ typography,
8227
+ fontPairings: input.fontPairings ?? [{
8228
+ id: "look-default",
8229
+ heading: typography.headings.default.family,
8230
+ body: typography.body.family
8231
+ }]
8232
+ };
8233
+ }
8234
+ function withBookingPageOffering(offering, bookingPage) {
8235
+ return bookingPage ? {
8236
+ ...offering,
8237
+ bookingPage
8238
+ } : offering;
8239
+ }
8240
+ function defineCuratedSiteStyle(input) {
8241
+ const offering = input.offering ?? {
8242
+ kind: "public",
8243
+ generation: { kind: "explicit_only" }
8244
+ };
8245
+ const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
8246
+ return {
8247
+ id: asSiteStyleId(input.id),
8248
+ name: input.name,
8249
+ description: input.description,
8250
+ generationBrief: input.generationBrief,
8251
+ selectionKeywordRules: input.selectionKeywordRules ?? [],
8252
+ offering: offering.kind === "public" ? withBookingPageOffering(offering, bookingPageOfferingFor(input.id)) : offering,
8253
+ template: curatedStyleTemplate(input),
8254
+ contentTemplateDefaults: input.contentTemplateDefaults,
8255
+ headingDecoration: input.headingDecoration ?? noHeadingDecoration,
8256
+ ...authoredSiteStyleOverrides(input),
8257
+ componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
8258
+ looks: input.looks ?? {
8259
+ kind: "recipe",
8260
+ recommendedAppearancePresetIds
8261
+ },
8262
+ headerCuration: headerCurationBySiteStyle[input.id],
8263
+ headerStyleRecipes: input.headerStyleRecipes,
8264
+ footerLookRecipes: input.footerLookRecipes,
8265
+ recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
8266
+ buttonStyleChoices: input.buttonStyleChoices,
8267
+ paletteRecommendations: input.paletteRecommendations,
8268
+ ...siteStyleFontDefaults(input)
8269
+ };
8270
+ }
8271
+ function buttonChoice(styleId, note, parameters) {
8272
+ const selection = parameters === void 0 ? defaultButtonStyleSelectionFor(styleId) : buttonStyleSelectionSchema.parse({
8273
+ styleId,
8274
+ parameters
8275
+ });
8276
+ return note ? {
8277
+ ...selection,
8278
+ note
8279
+ } : selection;
8280
+ }
8281
+ function paletteRecommendation(authoringKey, note) {
8282
+ const valueKey = requireCuratedPaletteValueKey(asCuratedPaletteAuthoringKey(authoringKey));
8283
+ return note ? {
8284
+ id: valueKey,
8285
+ note
8286
+ } : { id: valueKey };
8287
+ }
8288
+ /**
8289
+ * V1 generated site styles are curated product presets, not AI-authored design
8290
+ * systems. Generators choose one of these bounded entries, then downstream
8291
+ * resolve/compile steps translate it to Theme and block runtime fields.
8292
+ */
8293
+ const id = asAppearancePresetId;
8294
+ const quieterOrStandard = { titleSize: ["quiet", "auto"] };
8295
+ /** Loom: sheets for cards, a ground-aware statement, and highlights on the section. */
8296
+ const loomRoles = {
8297
+ card: "sheet",
8298
+ statement: {
8299
+ default: "brand",
8300
+ brand: "deep",
8301
+ deep: "inverse"
8302
+ },
8303
+ highlight: "section"
8304
+ };
8305
+ const loomLooks = {
8306
+ kind: "offers",
8307
+ skin: "loom",
8308
+ skinTokens: {
8309
+ radius: "14px",
8310
+ rule: "2px",
8311
+ "mark-length": "30px",
8312
+ "mark-weight": "4px",
8313
+ plate: "10px",
8314
+ gutter: "24px",
8315
+ "copy-gap": "1.25rem",
8316
+ "stack-gap": "2.5rem",
8317
+ "shadow-offset": "3px",
8318
+ wrap: "1140px",
8319
+ margin: "2.5rem"
8320
+ },
8321
+ fontLoading: {
8322
+ extraHeadingFontWeights: [
8323
+ 560,
8324
+ 600,
8325
+ 640
8326
+ ],
8327
+ italicHeadingFontWeights: [400, 480],
8328
+ extraBodyFontWeights: [
8329
+ 400,
8330
+ 600,
8331
+ 700
8332
+ ]
8333
+ },
8334
+ surfaces: {
8335
+ base: {
8336
+ kind: "token",
8337
+ token: "background"
8338
+ },
8339
+ band: {
8340
+ kind: "token",
8341
+ token: "surfaceAlt"
8342
+ },
8343
+ brand: {
8344
+ kind: "token",
8345
+ token: "primary",
8346
+ buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
8347
+ },
8348
+ deep: {
8349
+ kind: "token",
8350
+ token: "secondary",
8351
+ buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
8352
+ },
8353
+ sheet: {
8354
+ kind: "token",
8355
+ token: "surface",
8356
+ roleOnly: true
8357
+ },
8358
+ inverse: {
8359
+ kind: "token",
8360
+ token: "text",
8361
+ roleOnly: true,
8362
+ buttonContext: { primary: unsafeAsOpaqueButtonColourToken("background") }
8363
+ }
8364
+ },
8365
+ rhythm: {
8366
+ "flow:quiet": [
8367
+ "base",
8368
+ "band",
8369
+ "base",
8370
+ "base",
8371
+ "band",
8372
+ "base"
8373
+ ],
8374
+ "flow:balanced": [
8375
+ "base",
8376
+ "band",
8377
+ "base",
8378
+ "band",
8379
+ "brand",
8380
+ "base"
8381
+ ],
8382
+ "flow:expressive": [
8383
+ "base",
8384
+ "brand",
8385
+ "base",
8386
+ "band",
8387
+ "base",
8388
+ "band"
8389
+ ]
8390
+ },
8391
+ offers: [
8392
+ {
8393
+ id: id("event-details-panel"),
8394
+ treatment: "details-panel",
8395
+ roleMap: loomRoles
8396
+ },
8397
+ {
8398
+ id: id("event-details-header"),
8399
+ treatment: "details-header",
8400
+ roleMap: loomRoles
8401
+ },
8402
+ {
8403
+ id: id("hero-photo-beside-text"),
8404
+ treatment: "hero-framed",
8405
+ roleMap: {
8406
+ ...loomRoles,
8407
+ highlight: "deep"
8408
+ }
8409
+ },
8410
+ {
8411
+ id: id("intro-statement-beside-text"),
8412
+ treatment: "intro-statement",
8413
+ roleMap: loomRoles
8414
+ },
8415
+ {
8416
+ id: id("team-members-tall-portraits"),
8417
+ treatment: "team-tall-portraits",
8418
+ roleMap: loomRoles
8419
+ },
8420
+ {
8421
+ id: id("shop-price-cards-featured"),
8422
+ treatment: "shop-price-cards-featured",
8423
+ roleMap: loomRoles
8424
+ },
8425
+ {
8426
+ id: id("card-list-plates"),
8427
+ treatment: "items-plates",
8428
+ roleMap: loomRoles,
8429
+ removeKnobs: ["showPhotos"],
8430
+ knobValues: { dates: ["next-dates"] },
8431
+ itemRoles: { items: "card" }
8432
+ },
8433
+ {
8434
+ id: id("feature-cards-cards"),
8435
+ treatment: "cards-sewn",
8436
+ roleMap: loomRoles,
8437
+ removeKnobs: ["showPhotos"],
8438
+ knobValues: {
8439
+ cardMarker: ["none"],
8440
+ actionStyle: ["link"]
8441
+ }
8442
+ },
8443
+ {
8444
+ id: id("media-text-photo-beside-text"),
8445
+ treatment: "media-framed",
8446
+ roleMap: loomRoles
8447
+ },
8448
+ {
8449
+ id: id("event-calendar-session-cards"),
8450
+ treatment: "calendar-session-cards",
8451
+ roleMap: loomRoles,
8452
+ removeKnobs: ["showPhotos"]
8453
+ },
8454
+ {
8455
+ id: id("testimonials-lead-quote"),
8456
+ treatment: "quote-lead",
8457
+ roleMap: loomRoles,
8458
+ itemRoles: {
8459
+ items: "card",
8460
+ at: { first: "highlight" }
8461
+ }
8462
+ },
8463
+ {
8464
+ id: id("faq-questions-under-title"),
8465
+ treatment: "faq-under",
8466
+ roleMap: loomRoles
8467
+ },
8468
+ {
8469
+ id: id("cta-centred"),
8470
+ treatment: "cta-centred",
8471
+ roleMap: loomRoles
8472
+ },
8473
+ {
8474
+ id: id("newsletter-signup-text-beside"),
8475
+ treatment: "signup-text-beside",
8476
+ roleMap: loomRoles
8477
+ },
8478
+ {
8479
+ id: id("body-text-reading-column"),
8480
+ treatment: "body-reading",
8481
+ roleMap: loomRoles
8482
+ },
8483
+ {
8484
+ id: id("image-gallery-captions-under"),
8485
+ treatment: "gallery-captions-under",
8486
+ roleMap: loomRoles
8487
+ },
8488
+ {
8489
+ id: id("form-below-introduction"),
8490
+ treatment: "form-below",
8491
+ roleMap: loomRoles
8492
+ },
8493
+ {
8494
+ id: id("location-map-beside-address"),
8495
+ treatment: "map-beside-address",
8496
+ roleMap: loomRoles
8497
+ },
8498
+ {
8499
+ id: id("event-calendar-month-grid"),
8500
+ treatment: "calendar-month-grid",
8501
+ roleMap: loomRoles
8502
+ },
8503
+ {
8504
+ id: id("form-beside-introduction-arched-panel"),
8505
+ treatment: "form-beside",
8506
+ roleMap: loomRoles
8507
+ },
8508
+ {
8509
+ id: id("newsletter-signup-in-arch"),
8510
+ treatment: "signup-frame",
8511
+ roleMap: loomRoles
8512
+ },
8513
+ {
8514
+ id: id("image-gallery-square-tiles"),
8515
+ treatment: "gallery-square-tiles",
8516
+ roleMap: loomRoles
8517
+ },
8518
+ {
8519
+ id: id("media-text-circle-beside-text"),
8520
+ treatment: "media-circle",
8521
+ roleMap: loomRoles
8522
+ },
8523
+ {
8524
+ id: id("hero-headline-row"),
8525
+ treatment: "hero-headline-row",
8526
+ roleMap: {
8527
+ ...loomRoles,
8528
+ highlight: "deep"
8529
+ }
8530
+ },
8531
+ {
8532
+ id: id("hero-copy-over-gallery"),
8533
+ treatment: "hero-copy-over-gallery",
8534
+ roleMap: {
8535
+ ...loomRoles,
8536
+ highlight: "deep"
8537
+ }
8538
+ },
8539
+ {
8540
+ id: id("hero-page-head"),
8541
+ treatment: "hero-page-head",
8542
+ roleMap: {
8543
+ ...loomRoles,
8544
+ highlight: "deep"
8545
+ }
8546
+ },
8547
+ {
8548
+ id: id("card-list-accent-edged-cards"),
8549
+ treatment: "items-accent-edged-cards",
8550
+ roleMap: loomRoles
8551
+ },
8552
+ {
8553
+ id: id("feature-cards-open-columns"),
8554
+ treatment: "cards-open-columns",
8555
+ roleMap: loomRoles
8556
+ },
8557
+ {
8558
+ id: id("feature-cards-lead-support"),
8559
+ treatment: "cards-lead-support",
8560
+ roleMap: loomRoles
8561
+ },
8562
+ {
8563
+ id: id("feature-cards-index"),
8564
+ treatment: "cards-index",
8565
+ roleMap: loomRoles
8566
+ },
8567
+ {
8568
+ id: id("feature-cards-sequence"),
8569
+ treatment: "cards-sequence",
8570
+ roleMap: loomRoles
8571
+ },
8572
+ {
8573
+ id: id("event-calendar-ruled-rows"),
8574
+ treatment: "calendar-ruled-rows",
8575
+ roleMap: loomRoles
8576
+ },
8577
+ {
8578
+ id: id("event-calendar-grouped-by-day"),
8579
+ treatment: "calendar-grouped-by-day",
8580
+ roleMap: loomRoles
8581
+ },
8582
+ {
8583
+ id: id("event-calendar-next-three"),
8584
+ treatment: "calendar-next-three",
8585
+ roleMap: loomRoles
8586
+ },
8587
+ {
8588
+ id: id("events-spotlight"),
8589
+ treatment: "events-spotlight",
8590
+ roleMap: loomRoles
8591
+ },
8592
+ {
8593
+ id: id("events-recurring-week"),
8594
+ treatment: "events-recurring-week",
8595
+ roleMap: loomRoles
8596
+ },
8597
+ {
8598
+ id: id("hero-framed-title"),
8599
+ treatment: "hero-framed-title",
8600
+ roleMap: {
8601
+ ...loomRoles,
8602
+ highlight: "deep"
8603
+ }
8604
+ },
8605
+ {
8606
+ id: id("testimonials-quote-cards"),
8607
+ treatment: "quote-cards",
8608
+ roleMap: loomRoles
8609
+ },
8610
+ {
8611
+ id: id("testimonials-quote-columns"),
8612
+ treatment: "quote-columns",
8613
+ roleMap: loomRoles
8614
+ },
8615
+ {
8616
+ id: id("testimonials-one-quote"),
8617
+ treatment: "quote-single",
8618
+ roleMap: loomRoles
8619
+ },
8620
+ {
8621
+ id: id("testimonials-one-at-a-time"),
8622
+ treatment: "quote-one-at-a-time",
8623
+ roleMap: loomRoles
8624
+ },
8625
+ {
8626
+ id: id("testimonials-scroll-row"),
8627
+ treatment: "quote-scroll-row",
8628
+ roleMap: loomRoles
8629
+ },
8630
+ {
8631
+ id: id("event-calendar-month-day"),
8632
+ treatment: "calendar-month-day",
8633
+ roleMap: loomRoles
8634
+ },
8635
+ {
8636
+ id: id("intro-photo-beside-text"),
8637
+ treatment: "intro-photo-beside-text",
8638
+ roleMap: loomRoles
8639
+ },
8640
+ {
8641
+ id: id("newsletter-signup-one-row"),
8642
+ treatment: "signup-one-row",
8643
+ roleMap: loomRoles
8644
+ },
8645
+ {
8646
+ id: id("card-list-wide-slides"),
8647
+ treatment: "items-wide-slides",
8648
+ roleMap: loomRoles
8649
+ },
8650
+ {
8651
+ id: id("card-list-scroll-row"),
8652
+ treatment: "items-scroll-row",
8653
+ roleMap: loomRoles
8654
+ },
8655
+ {
8656
+ id: id("body-text-title-beside"),
8657
+ treatment: "body-beside",
8658
+ roleMap: loomRoles
8659
+ },
8660
+ {
8661
+ id: id("body-text-large-opening"),
8662
+ treatment: "body-opening",
8663
+ roleMap: loomRoles
8664
+ },
8665
+ {
8666
+ id: id("faq-title-beside-questions"),
8667
+ treatment: "faq-beside",
8668
+ roleMap: loomRoles
8669
+ },
8670
+ {
8671
+ id: id("faq-questions-two-columns"),
8672
+ treatment: "faq-columns",
8673
+ roleMap: loomRoles
8674
+ },
8675
+ {
8676
+ id: id("faq-all-answers-showing"),
8677
+ treatment: "faq-open",
8678
+ roleMap: loomRoles
8679
+ },
8680
+ {
8681
+ id: id("image-gallery-lead-photo"),
8682
+ treatment: "gallery-lead-photo",
8683
+ roleMap: loomRoles
6679
8684
  },
6680
8685
  {
6681
- layoutId: "classic",
6682
- styleIds: [
6683
- "minimal",
6684
- "serif-line",
6685
- "fine-line",
6686
- "soft-bar"
6687
- ]
8686
+ id: id("cta-title-beside-buttons"),
8687
+ treatment: "cta-title-beside-buttons",
8688
+ roleMap: loomRoles
6688
8689
  },
6689
8690
  {
6690
- layoutId: "centered",
6691
- styleIds: [
6692
- "serif-line",
6693
- "fine-line",
6694
- "minimal",
6695
- "soft-bar"
6696
- ]
6697
- }
6698
- ]),
6699
- "site-style:measure": defineHeaderCuration([{
6700
- layoutId: "classic",
6701
- styleIds: ["fine-line", "minimal"]
6702
- }])
6703
- };
6704
- function defineCuratedSiteStyle(input) {
6705
- const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
6706
- return {
6707
- id: asSiteStyleId(input.id),
6708
- name: input.name,
6709
- description: input.description,
6710
- generationBrief: input.generationBrief,
6711
- selectionKeywordRules: input.selectionKeywordRules ?? [],
6712
- offering: input.offering ?? {
6713
- kind: "public",
6714
- generation: { kind: "explicit_only" }
8691
+ id: id("cta-figure-beside-offer"),
8692
+ treatment: "cta-figure-beside-offer",
8693
+ roleMap: loomRoles
6715
8694
  },
6716
- template: curatedStyleTemplate(input),
6717
- contentTemplateDefaults: input.contentTemplateDefaults,
6718
- headingDecoration: input.headingDecoration ?? noHeadingDecoration,
6719
- ...input.themeOverrides ? { themeOverrides: input.themeOverrides } : {},
6720
- ...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
6721
- componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
6722
- ...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
6723
- looks: input.looks ?? {
6724
- kind: "legacy",
6725
- recommendedAppearancePresetIds
8695
+ {
8696
+ id: id("location-map-above-details"),
8697
+ treatment: "map-above-details",
8698
+ roleMap: loomRoles
6726
8699
  },
6727
- headerCuration: headerCurationBySiteStyle[input.id],
6728
- headerStyleRecipes: input.headerStyleRecipes,
6729
- footerLookRecipes: input.footerLookRecipes,
6730
- recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
6731
- buttonStyleChoices: input.buttonStyleChoices,
6732
- paletteRecommendations: input.paletteRecommendations,
6733
- typography: input.typography ?? defaultTypographyForRecipe(input.tokenRecipes.typography),
6734
- ...input.heroTypography ? { heroTypography: input.heroTypography } : {}
6735
- };
6736
- }
6737
- function buttonChoice(styleId, note, parameters) {
6738
- const selection = parameters === void 0 ? defaultButtonStyleSelectionFor(styleId) : buttonStyleSelectionSchema.parse({
6739
- styleId,
6740
- parameters
6741
- });
6742
- return note ? {
6743
- ...selection,
6744
- note
6745
- } : selection;
6746
- }
6747
- function paletteRecommendation(authoringKey, note) {
6748
- const valueKey = requireCuratedPaletteValueKey(asCuratedPaletteAuthoringKey(authoringKey));
6749
- return note ? {
6750
- id: valueKey,
6751
- note
6752
- } : { id: valueKey };
6753
- }
6754
- /**
6755
- * V1 generated site styles are curated product presets, not AI-authored design
6756
- * systems. Generators choose one of these bounded entries, then downstream
6757
- * resolve/compile steps translate it to Theme and block runtime fields.
6758
- */
6759
- const id = asAppearancePresetId;
6760
- const quieterOrStandard = { titleSize: ["quiet", "auto"] };
6761
- /** Fulcrum: cards are white sheets, the statement is the brand band, stickers are sheets too. */
8700
+ {
8701
+ id: id("location-map-address-over-wide-map"),
8702
+ treatment: "map-address-over-wide-map",
8703
+ roleMap: loomRoles
8704
+ },
8705
+ {
8706
+ id: id("location-map-entrance-photo"),
8707
+ treatment: "map-entrance-photo",
8708
+ roleMap: loomRoles
8709
+ },
8710
+ {
8711
+ id: id("team-members-portrait-bio"),
8712
+ treatment: "team-portrait-bio",
8713
+ roleMap: loomRoles
8714
+ },
8715
+ {
8716
+ id: id("team-members-ruled-names"),
8717
+ treatment: "team-ruled-names",
8718
+ roleMap: loomRoles
8719
+ },
8720
+ {
8721
+ id: id("shop-price-cards"),
8722
+ treatment: "shop-price-cards",
8723
+ roleMap: loomRoles
8724
+ },
8725
+ {
8726
+ id: id("shop-ruled-prices"),
8727
+ treatment: "shop-ruled-prices",
8728
+ roleMap: loomRoles
8729
+ },
8730
+ {
8731
+ id: id("card-list-photos-on-top"),
8732
+ treatment: "items-photos-on-top",
8733
+ roleMap: loomRoles
8734
+ }
8735
+ ]
8736
+ };
8737
+ /** Folio: quiet sheets and band-coloured statements. */
6762
8738
  const folioRoles = {
6763
8739
  card: "sheet",
6764
8740
  statement: {
@@ -6851,6 +8827,16 @@ const folioLooks = {
6851
8827
  knobValues: quieterOrStandard,
6852
8828
  roleMap: folioRoles
6853
8829
  },
8830
+ {
8831
+ id: id("hero-short-photo-banner"),
8832
+ treatment: "hero-short-panel",
8833
+ roleMap: folioRoles
8834
+ },
8835
+ {
8836
+ id: id("hero-text-over-photo"),
8837
+ treatment: "hero-photo-overlay",
8838
+ roleMap: folioRoles
8839
+ },
6854
8840
  {
6855
8841
  id: id("hero-page-head"),
6856
8842
  treatment: "hero-ruled",
@@ -6901,10 +8887,7 @@ const folioLooks = {
6901
8887
  id: id("event-calendar-ruled-rows"),
6902
8888
  treatment: "calendar-card",
6903
8889
  itemRoles: { container: "card" },
6904
- surfaceTints: { date: {
6905
- source: "text",
6906
- opacity: 8
6907
- } },
8890
+ knobValues: { actionStyle: ["button"] },
6908
8891
  roleMap: folioRoles
6909
8892
  },
6910
8893
  {
@@ -6915,6 +8898,7 @@ const folioLooks = {
6915
8898
  {
6916
8899
  id: id("event-calendar-next-three"),
6917
8900
  treatment: "calendar-compact",
8901
+ knobValues: { actionStyle: ["button"] },
6918
8902
  roleMap: folioRoles
6919
8903
  },
6920
8904
  {
@@ -7198,6 +9182,11 @@ const fulcrumLooks = {
7198
9182
  knobValues: quieterOrStandard,
7199
9183
  roleMap: fulcrumRoles
7200
9184
  },
9185
+ {
9186
+ id: id("hero-short-photo-banner"),
9187
+ treatment: "short-panel",
9188
+ roleMap: fulcrumRoles
9189
+ },
7201
9190
  {
7202
9191
  id: id("hero-page-head"),
7203
9192
  treatment: "ruled",
@@ -7448,6 +9437,14 @@ const posterRoles = {
7448
9437
  statement: "brand",
7449
9438
  highlight: "pop"
7450
9439
  };
9440
+ /** The classic hero Looks: the copy block is a sheet, and joins a brand ground it would vanish on. */
9441
+ const posterPhotoGroundRoles = {
9442
+ ...posterRoles,
9443
+ card: {
9444
+ default: "sheet",
9445
+ brand: "section"
9446
+ }
9447
+ };
7451
9448
  const posterOffers = [
7452
9449
  {
7453
9450
  id: id("event-details-panel"),
@@ -7477,13 +9474,12 @@ const posterOffers = [
7477
9474
  {
7478
9475
  id: id("hero-photo-behind-text"),
7479
9476
  treatment: "band",
7480
- roleMap: {
7481
- ...posterRoles,
7482
- card: {
7483
- default: "sheet",
7484
- brand: "section"
7485
- }
7486
- }
9477
+ roleMap: posterPhotoGroundRoles
9478
+ },
9479
+ {
9480
+ id: id("hero-short-photo-banner"),
9481
+ treatment: "short-band",
9482
+ roleMap: posterPhotoGroundRoles
7487
9483
  },
7488
9484
  {
7489
9485
  id: id("hero-page-head"),
@@ -7964,6 +9960,11 @@ const lanternLooks = {
7964
9960
  knobValues: quieterOrStandard,
7965
9961
  roleMap: lanternVeilRoles
7966
9962
  },
9963
+ {
9964
+ id: id("hero-short-photo-banner"),
9965
+ treatment: "short-veil",
9966
+ roleMap: lanternVeilRoles
9967
+ },
7967
9968
  {
7968
9969
  id: id("hero-page-head"),
7969
9970
  treatment: "centred",
@@ -9300,12 +11301,15 @@ const curatedSiteStyles = [
9300
11301
  accordions: editorialDividedAccordionSystem,
9301
11302
  testimonialQuote: serifDisplayQuote
9302
11303
  },
9303
- headerStyleRecipes: { "minimal-surface": {
11304
+ headerStyleRecipes: { "soft-shell": {
9304
11305
  tone: "neutral",
11306
+ dropdown: neutralHeaderDropdown,
9305
11307
  background: { kind: "transparent" },
9306
11308
  nav: {
9307
- kind: "minimal",
9308
- hoverColorToken: "primary"
11309
+ kind: "pill",
11310
+ backing: "capsule",
11311
+ hoverColorToken: "primary",
11312
+ hoverAlpha: 8
9309
11313
  },
9310
11314
  navWeight: "medium",
9311
11315
  navLinkWeight: "medium",
@@ -9369,6 +11373,104 @@ const curatedSiteStyles = [
9369
11373
  paletteRecommendation("soft-natural-sage"),
9370
11374
  paletteRecommendation("soft-natural-stone")
9371
11375
  ]
11376
+ }),
11377
+ defineCuratedSiteStyle({
11378
+ id: "site-style:loom",
11379
+ name: "Loom",
11380
+ offering: { kind: "lab" },
11381
+ description: "Stitched seams, sewn-label buttons and one strong patch of colour on each page. Warm and handmade, for studios and makers who teach.",
11382
+ generationBrief: "Use warm serif headings, clear working copy, flat grounds and one strong patch of colour. Keep workshop details and booking actions easy to find.",
11383
+ headingDecoration: noHeadingDecoration,
11384
+ tokenRecipes: {
11385
+ palette: "warm-neutral",
11386
+ contrast: "strong",
11387
+ radius: "soft",
11388
+ shadow: "none",
11389
+ typography: "classic-serif",
11390
+ spacing: "airy",
11391
+ motion: "subtle"
11392
+ },
11393
+ compositionBudget: accentLedQuietBudget,
11394
+ typography: loomTypography,
11395
+ heroTypography: groundedSerifHeroTypography,
11396
+ looks: loomLooks,
11397
+ contentTemplateDefaults: { event: "event-header" },
11398
+ themeOverrides: {
11399
+ accordions: editorialDividedAccordionSystem,
11400
+ testimonialQuote: serifDisplayQuote
11401
+ },
11402
+ headerStyleRecipes: { "serif-line": {
11403
+ tone: "neutral",
11404
+ dropdown: neutralHeaderDropdown,
11405
+ background: {
11406
+ kind: "token",
11407
+ token: "background"
11408
+ },
11409
+ nav: {
11410
+ kind: "underline",
11411
+ hover: "underline",
11412
+ underlineColorToken: "accent"
11413
+ },
11414
+ navWeight: "semibold",
11415
+ navLinkWeight: "semibold",
11416
+ navTypography: "plain",
11417
+ border: "bottom",
11418
+ shadow: { kind: "explicit-none" },
11419
+ frame: { kind: "none" },
11420
+ logo: {
11421
+ fontFamily: "heading",
11422
+ letterSpacing: "normal",
11423
+ gradient: false
11424
+ },
11425
+ cta: { treatment: "primary" }
11426
+ } },
11427
+ footerLookRecipes: { "footer-links-row": {
11428
+ arrangement: "simple",
11429
+ ground: {
11430
+ kind: "style-surface",
11431
+ surface: "deep"
11432
+ },
11433
+ nav: {
11434
+ weight: "regular",
11435
+ colorToken: "primaryForeground",
11436
+ hoverColorToken: "primaryForeground",
11437
+ typography: "body"
11438
+ },
11439
+ legal: {
11440
+ kind: "separate",
11441
+ bar: {
11442
+ fullBleed: false,
11443
+ background: {
11444
+ kind: "style-surface",
11445
+ surface: "deep"
11446
+ },
11447
+ textColor: "primaryForeground",
11448
+ textAlign: "left",
11449
+ paddingY: "compact",
11450
+ paddingX: "none",
11451
+ borderTop: {
11452
+ width: "medium",
11453
+ colorToken: "primaryForeground"
11454
+ }
11455
+ }
11456
+ },
11457
+ brandAlign: "start",
11458
+ brandLogoSize: "md"
11459
+ } },
11460
+ recommendedFooterLookIds: ["footer-links-row"],
11461
+ buttonStyleChoices: [
11462
+ buttonChoice("sewn-label"),
11463
+ buttonChoice("square-outline", void 0, {
11464
+ corners: "soft",
11465
+ lineWeight: "heavy"
11466
+ }),
11467
+ buttonChoice("editorial-link", void 0, { underline: "persistent-mark" })
11468
+ ],
11469
+ paletteRecommendations: [
11470
+ paletteRecommendation("loom-hearth"),
11471
+ paletteRecommendation("loom-flax"),
11472
+ paletteRecommendation("loom-ember")
11473
+ ]
9372
11474
  })
9373
11475
  ];
9374
11476
  const curatedSiteStylesById = new Map(curatedSiteStyles.map((style) => [style.id, style]));
@@ -9402,7 +11504,10 @@ function curatedStyleTemplate(input) {
9402
11504
  };
9403
11505
  }
9404
11506
  curatedSiteStyles.forEach((style) => {
9405
- if (style.looks.kind === "offers") validateLookFallbacks(style.looks);
11507
+ if (style.looks.kind === "offers") {
11508
+ validateLookFallbacks(style.looks);
11509
+ validateCalendarModeOffers(style.looks);
11510
+ }
9406
11511
  (/* @__PURE__ */ new Set([...Object.values(style.footerLookRecipes ?? {}), ...style.recommendedFooterLookIds.map((id) => resolveFooterLookRecipe(style, id))])).forEach((recipe) => validateFooterRecipeSurfaces(style, recipe));
9407
11512
  });
9408
11513
  function withTeamLooks(looks, roleMap) {
@@ -9558,9 +11663,10 @@ function resolveModeArrangement(input) {
9558
11663
  }
9559
11664
  /** Mode is content-owned and independent of the selected Look. */
9560
11665
  function readStoredMode(manifest, content) {
9561
- if (manifest.variantMeaning.kind !== "mode") return null;
11666
+ const meaning = manifest.variantMeaning;
11667
+ if (meaning.kind !== "mode") return null;
9562
11668
  const stored = content.variant;
9563
- return typeof stored === "string" && manifest.keys.includes(stored) ? stored : manifestDefaultArrangement(manifest);
11669
+ return isArrangementMode(stored) && meaning.modes.includes(stored) ? stored : meaning.defaultMode;
9564
11670
  }
9565
11671
  function resolvePublishedLook(input, visited = /* @__PURE__ */ new Set()) {
9566
11672
  if (input.audience === "authoring" || visited.has(input.look.id)) return input.look;
@@ -9583,6 +11689,13 @@ function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArr
9583
11689
  if (style.offers.some((offer) => catalogue.some((candidate) => candidate.id === offer.id && candidate.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && lookModes(candidate).includes(mode))) && !fallbackEndsAtOffer(entry, mode, style, catalogue, /* @__PURE__ */ new Set())) throw new Error(`Invalid Look fallback for ${style.skin}: ${entry.id} (${mode ?? "default"})`);
9584
11690
  }));
9585
11691
  }
11692
+ /** Every admitted calendar mode needs an automatic Look before a style can load. */
11693
+ function validateCalendarModeOffers(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
11694
+ const calendarLooks = catalogue.filter((look) => look.blockKinds.includes("block.event-calendar"));
11695
+ arrangementModes.forEach((mode) => {
11696
+ if (!calendarLooks.some((look) => lookModes(look).includes(mode) && style.offers.some((offer) => offer.id === look.id))) throw new Error(`Missing automatic calendar Look for ${style.skin}: ${mode}`);
11697
+ });
11698
+ }
9586
11699
  function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
9587
11700
  if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
9588
11701
  if (style.offers.some((offer) => offer.id === entry.id)) return true;
@@ -9613,7 +11726,9 @@ const arrangementLookHooks = [
9613
11726
  "data-photo-count",
9614
11727
  "data-slot",
9615
11728
  "data-control",
9616
- "data-placeholder-field"
11729
+ "data-placeholder-field",
11730
+ "data-one-person",
11731
+ "data-team-about"
9617
11732
  ];
9618
11733
  appearancePresets.filter(isArrangementAppearancePreset);
9619
11734
  /** Closed structural hooks shared by block arrangements and bounded skins. */
@@ -9745,6 +11860,22 @@ function resolveLookSlotSurfaces(look, roles, surfaces) {
9745
11860
  return Object.fromEntries(entries);
9746
11861
  }
9747
11862
  //#endregion
11863
+ //#region ../theme-core/src/site-styles/resolver.ts
11864
+ const blockDesignFallback = {
11865
+ sectionSurface: "base",
11866
+ contentFrame: plainFrame,
11867
+ sectionHeight: "default",
11868
+ heroLegibility: "none",
11869
+ imageSurfaceTreatment: { kind: "none" },
11870
+ imageSurfaceMotion: "static",
11871
+ tileTreatment: "default",
11872
+ eventListTreatment: "plain",
11873
+ eyebrowTreatment: "plain",
11874
+ accordionIconTreatment: null,
11875
+ composition: null
11876
+ };
11877
+ blockDesignFallback.sectionSurface, blockDesignFallback.contentFrame, blockDesignFallback.sectionHeight, blockDesignFallback.heroLegibility, blockDesignFallback.imageSurfaceTreatment, blockDesignFallback.imageSurfaceMotion, blockDesignFallback.tileTreatment, blockDesignFallback.eventListTreatment, blockDesignFallback.eyebrowTreatment, blockDesignFallback.accordionIconTreatment, blockDesignFallback.composition;
11878
+ //#endregion
9748
11879
  //#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
9749
11880
  const headerNavTypographyPreferenceValues = [
9750
11881
  "inherit",
@@ -9789,6 +11920,140 @@ function readHeaderNavFontSizePreference(value) {
9789
11920
  return value === "sm" || value === "base" || value === "lg" || value === "xl" ? value : "inherit";
9790
11921
  }
9791
11922
  //#endregion
11923
+ //#region ../theme-core/src/site-styles/headerBrandPresentation.ts
11924
+ /**
11925
+ * Whether the header wears a brand presentation at all (#1318 Phase 4c).
11926
+ *
11927
+ * `applyHeaderBrandPresentation` is unconditional today: given a logo context
11928
+ * it always writes a `logo` object carrying a resolved display, size and
11929
+ * accommodation. That makes "this header has no brand presentation block" —
11930
+ * which is what several live sites persist, including one whose site *does*
11931
+ * have a logo asset — a state the preference record could not express, so a
11932
+ * recompile would silently give the site a logo treatment it has never
11933
+ * rendered.
11934
+ *
11935
+ * This is the third field in this phase with that shape, after the interaction
11936
+ * palette and the nav text size: the persisted bytes carry intent the reader
11937
+ * cannot say, so the recompile "corrects" it. The fix is the same one — widen
11938
+ * the closed vocabulary with a named member and derive it by baseline
11939
+ * comparison — and it is a *widening*, not a restyle: `'recommended'` is the
11940
+ * default and reproduces today's behaviour exactly, so no row whose bytes carry
11941
+ * a presentation compiles differently for `'plain'` existing.
11942
+ *
11943
+ * `'plain'` is deliberately not "preserve whatever bytes are there". It is a
11944
+ * constructive instruction — *write no presentation block* — so Phase 4e's
11945
+ * compiler, which builds the header from nothing, can produce it.
11946
+ */
11947
+ const headerBrandPresentationValues = ["recommended", "plain"];
11948
+ defaultHeaderBrandPreferences.brandDisplay, defaultHeaderBrandPreferences.logoSize, defaultHeaderNavPreferences.typography, defaultHeaderNavPreferences.fontSize, defaultHeaderNavPreferences.interactionPalette;
11949
+ //#endregion
11950
+ //#region ../theme-core/src/site-styles/generatedSchemas.ts
11951
+ function uniqueNonEmpty(values) {
11952
+ const uniqueValues = [...new Set(values)];
11953
+ const firstValue = uniqueValues[0];
11954
+ if (!firstValue) throw new Error("Expected at least one generated schema option.");
11955
+ return [firstValue, ...uniqueValues.slice(1)];
11956
+ }
11957
+ const generatedPanelTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "panel").map((frame) => frame.treatment));
11958
+ const generatedFlushTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.treatment));
11959
+ const generatedFlushBleeds = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed));
11960
+ const generatedPanelFrameSchema = z.object({
11961
+ kind: z.literal("panel"),
11962
+ treatment: z.enum(generatedPanelTreatments)
11963
+ }).strict();
11964
+ const generatedFlushPanelFrameSchema = z.object({
11965
+ kind: z.literal("flush-panel"),
11966
+ treatment: z.enum(generatedFlushTreatments),
11967
+ bleed: z.enum(generatedFlushBleeds)
11968
+ }).strict();
11969
+ const generatedContentFrameIntentSchema = z.discriminatedUnion("kind", [
11970
+ z.object({ kind: z.literal("plain") }).strict(),
11971
+ generatedPanelFrameSchema,
11972
+ generatedFlushPanelFrameSchema
11973
+ ]);
11974
+ const generatedSiteStyleIdSchema = z.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
11975
+ function generatedChoiceSchema(valueSchema) {
11976
+ return z.discriminatedUnion("kind", [z.object({
11977
+ source: z.literal("generated"),
11978
+ kind: z.literal("auto")
11979
+ }).strict(), z.object({
11980
+ source: z.literal("generated"),
11981
+ kind: z.literal("explicit"),
11982
+ value: valueSchema
11983
+ }).strict()]);
11984
+ }
11985
+ const generatedBlockDesignIntentSchema = z.object({
11986
+ sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
11987
+ contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
11988
+ cardRole: generatedChoiceSchema(cardRoleSchema),
11989
+ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
11990
+ emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
11991
+ }).strict();
11992
+ const generatedMediaCompositionIntentSchema = z.enum([
11993
+ "none",
11994
+ "supporting",
11995
+ "dominant"
11996
+ ]);
11997
+ const generatedDecorativeCompositionIntentSchema = z.enum(["none", "supporting"]);
11998
+ const generatedHeroLegibilityStrategySchema = z.enum(["none", "scrim-gradient"]);
11999
+ const generatedBlockMediaIntentSchema = z.object({
12000
+ media: generatedMediaCompositionIntentSchema,
12001
+ decorative: generatedDecorativeCompositionIntentSchema,
12002
+ heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
12003
+ }).strict();
12004
+ const generatedBoundaryIntentSchema = z.object({ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)) }).strict();
12005
+ const generatedPageDesignBlockIntentSchema = z.object({
12006
+ blockId: z.string().min(1),
12007
+ blockKind: z.string().min(1),
12008
+ purpose: z.string().min(1),
12009
+ design: generatedBlockDesignIntentSchema,
12010
+ mediaIntent: generatedBlockMediaIntentSchema,
12011
+ boundaryIntent: generatedBoundaryIntentSchema
12012
+ }).strict();
12013
+ z.object({
12014
+ siteStyleId: generatedSiteStyleIdSchema,
12015
+ blocks: z.array(generatedPageDesignBlockIntentSchema)
12016
+ }).strict();
12017
+ //#endregion
12018
+ //#region ../theme-core/src/site-styles/headerPreferencesPersistence.ts
12019
+ const logoTextIntentSchema = z.object({
12020
+ mobileMaxWidth: z.enum([
12021
+ "xs",
12022
+ "sm",
12023
+ "md"
12024
+ ]).optional(),
12025
+ mobileWrapLines: z.union([z.literal(1), z.literal(2)]).optional(),
12026
+ hideOnShrink: z.boolean().optional()
12027
+ }).strict();
12028
+ const structureSchema = z.object({
12029
+ positioning: z.union([z.literal("inherit"), z.enum(headerPositioningValues)]),
12030
+ shrinkOnScroll: z.union([z.literal("inherit"), z.boolean()]),
12031
+ logoText: z.union([
12032
+ z.literal("inherit"),
12033
+ z.literal("none"),
12034
+ logoTextIntentSchema
12035
+ ])
12036
+ }).strict();
12037
+ const headerPreferencesShape = {
12038
+ brandPresentation: z.enum(headerBrandPresentationValues),
12039
+ brandDisplay: z.enum(brandDisplayModeValues),
12040
+ logoSize: z.enum(logoSizePolicyValues),
12041
+ navFontRole: z.enum(headerNavTypographyPreferenceValues),
12042
+ navTextSize: z.enum(headerNavFontSizePreferenceValues),
12043
+ interactionPalette: z.union([z.literal("recommended"), z.enum(headerInteractionPaletteValues)]),
12044
+ background: siteChromeBackgroundOverrideSchema,
12045
+ structure: structureSchema
12046
+ };
12047
+ z.object(headerPreferencesShape).strict();
12048
+ z.object(headerPreferencesShape).omit({
12049
+ brandPresentation: true,
12050
+ structure: true
12051
+ }).strict();
12052
+ z.object(headerPreferencesShape).pick({
12053
+ brandPresentation: true,
12054
+ structure: true
12055
+ }).strict();
12056
+ //#endregion
9792
12057
  //#region ../theme-core/src/header/legacyNavLinkStyle.ts
9793
12058
  function buildLegacyHeaderNavLinkStyle(header, contrastTreatment, navTextSize) {
9794
12059
  const navStyle = header.navStyle ?? "minimal";
@@ -9881,4 +12146,189 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
9881
12146
  };
9882
12147
  }
9883
12148
  //#endregion
9884
- export { buildTextContrastShadow as A, resolveEffectiveKnobs as B, compiledRuntimeStyleFieldNames as C, generatedDesignOptionCatalog as D, parseGradientPresetId as E, pageDesignIntentV2Schema as F, cardListKnobBlocks as H, headerRootPaint as I, boundaryRuntimeMetricsForDecorativeTransition as L, normalizeLegacyPageDesignIntent as M, pageDesignDecisionsV2Schema as N, generateFooterCss as O, pageDesignIntentV1Schema as P, anglePolygonCss as R, requireCuratedSiteStyle as S, getGradientPreset as T, cardListFamilyBlocks as V, resolveEffectiveArrangement as _, readOpeningForegroundProjection as a, deriveSiteStyleBlockPolicy as b, headerNavTypographyPreferenceValues as c, arrangementLookHooks as d, arrangementSlotNames as f, readStoredMode as g, arrangementManifestFromVariants as h, transparentHeaderForegroundInput as i, generateNavLinkCSS as j, footerForegroundCandidates as k, mergeHeaderNavTypographyPreference as l, resolveLookSlotSurfaces as m, headerForegroundCandidates as n, defaultHeaderNavPreferences as o, resolveItemSurface as p, headerLeafTextColor as r, headerNavFontSizePreferenceValues as s, effectiveHeaderNavLinkStyle as t, readHeaderNavFontSizePreference as u, resolveModeArrangement as v, gradientToCss as w, curatedSiteStyleIdValues as x, resolvePublishedLook as y, transitionCatalogueEntries as z };
12149
+ //#region ../theme-core/src/site-styles/pageDesignAuthority.ts
12150
+ const nonEmptyStringSchema = z.string().min(1);
12151
+ const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
12152
+ const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
12153
+ const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
12154
+ const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
12155
+ const publishedPageBlockSnapshotSchema = z.object({
12156
+ kind: z.literal("published-block-content"),
12157
+ blockId: designBlockIdSchema,
12158
+ contentVersionId: blockContentVersionIdSchema,
12159
+ identifier: z.string().nullable(),
12160
+ blockKind: nonEmptyStringSchema,
12161
+ orderIndex: blockOrderIndexSchema
12162
+ }).strict();
12163
+ const draftPageBlockSnapshotSchema = z.object({
12164
+ kind: z.literal("draft-block-content"),
12165
+ blockId: designBlockIdSchema,
12166
+ contentVersionId: blockContentVersionIdSchema.nullable(),
12167
+ identifier: z.string().nullable(),
12168
+ blockKind: nonEmptyStringSchema,
12169
+ orderIndex: blockOrderIndexSchema
12170
+ }).strict();
12171
+ const missingPageBlockSnapshotSchema = z.object({
12172
+ kind: z.literal("missing-block-content"),
12173
+ blockId: designBlockIdSchema,
12174
+ identifier: z.string().nullable(),
12175
+ blockKind: nonEmptyStringSchema,
12176
+ orderIndex: blockOrderIndexSchema,
12177
+ reason: z.enum([
12178
+ "new-block",
12179
+ "deleted-content-version",
12180
+ "unpublished-block"
12181
+ ])
12182
+ }).strict();
12183
+ const pageBlockSnapshotSchema = z.discriminatedUnion("kind", [
12184
+ publishedPageBlockSnapshotSchema,
12185
+ draftPageBlockSnapshotSchema,
12186
+ missingPageBlockSnapshotSchema
12187
+ ]);
12188
+ const publishedPageBlockSequenceSchema = z.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
12189
+ const draftPageBlockSequenceSchema = z.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
12190
+ const publishedPageDesignVersionDataV1Schema = z.object({
12191
+ schemaVersion: z.literal(1),
12192
+ stage: z.literal("published"),
12193
+ pageId: designPageIdSchema,
12194
+ blockSequence: publishedPageBlockSequenceSchema
12195
+ }).strict();
12196
+ const draftPageDesignVersionDataV1Schema = z.object({
12197
+ schemaVersion: z.literal(1),
12198
+ stage: z.literal("draft"),
12199
+ pageId: designPageIdSchema,
12200
+ blockSequence: draftPageBlockSequenceSchema
12201
+ }).strict();
12202
+ z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
12203
+ function validateBlockSequence(snapshots, ctx) {
12204
+ collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
12205
+ }
12206
+ function collectBlockSequenceIssues(snapshots) {
12207
+ const indexed = snapshots.map((snapshot, index) => ({
12208
+ ...snapshot,
12209
+ index
12210
+ }));
12211
+ const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
12212
+ const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
12213
+ return indexed.flatMap((snapshot, index) => {
12214
+ const previous = snapshots[index - 1]?.orderIndex;
12215
+ return [
12216
+ ...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
12217
+ code: z.ZodIssueCode.custom,
12218
+ message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
12219
+ path: [index, "blockId"]
12220
+ }] : [],
12221
+ ...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
12222
+ code: z.ZodIssueCode.custom,
12223
+ message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
12224
+ path: [index, "orderIndex"]
12225
+ }] : [],
12226
+ ...previous !== void 0 && snapshot.orderIndex <= previous ? [{
12227
+ code: z.ZodIssueCode.custom,
12228
+ message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
12229
+ path: [index, "orderIndex"]
12230
+ }] : []
12231
+ ];
12232
+ });
12233
+ }
12234
+ //#endregion
12235
+ //#region ../theme-core/src/site-styles/tokenRecipes.ts
12236
+ const themeTokenRecipeOptions = {
12237
+ palette: [
12238
+ "brand-led",
12239
+ "warm-neutral",
12240
+ "high-contrast",
12241
+ "soft-natural"
12242
+ ],
12243
+ contrast: [
12244
+ "standard",
12245
+ "strong",
12246
+ "maximum"
12247
+ ],
12248
+ radius: [
12249
+ "square",
12250
+ "soft",
12251
+ "rounded",
12252
+ "pill"
12253
+ ],
12254
+ shadow: [
12255
+ "none",
12256
+ "subtle",
12257
+ "layered"
12258
+ ],
12259
+ typography: [
12260
+ "serif-editorial",
12261
+ "clean-sans",
12262
+ "classic-serif",
12263
+ "friendly-sans"
12264
+ ],
12265
+ spacing: [
12266
+ "compact",
12267
+ "regular",
12268
+ "airy"
12269
+ ],
12270
+ motion: [
12271
+ "none",
12272
+ "subtle",
12273
+ "expressive"
12274
+ ]
12275
+ };
12276
+ z.object({
12277
+ palette: z.enum(themeTokenRecipeOptions.palette),
12278
+ contrast: z.enum(themeTokenRecipeOptions.contrast),
12279
+ radius: z.enum(themeTokenRecipeOptions.radius),
12280
+ shadow: z.enum(themeTokenRecipeOptions.shadow),
12281
+ typography: z.enum(themeTokenRecipeOptions.typography),
12282
+ spacing: z.enum(themeTokenRecipeOptions.spacing),
12283
+ motion: z.enum(themeTokenRecipeOptions.motion)
12284
+ });
12285
+ z.number().int().nonnegative().brand();
12286
+ //#endregion
12287
+ //#region ../theme-core/src/site-styles/pageEditAdmission.ts
12288
+ const generationSchema = z.string().transform((value, ctx) => {
12289
+ const result = parseEditorSessionGeneration(value);
12290
+ if (result.ok) return result.value;
12291
+ ctx.addIssue({
12292
+ code: "custom",
12293
+ message: "Invalid editor session generation"
12294
+ });
12295
+ return z.NEVER;
12296
+ });
12297
+ z.discriminatedUnion("kind", [z.object({
12298
+ kind: z.literal("open"),
12299
+ generation: generationSchema
12300
+ }).strict(), z.object({
12301
+ kind: z.literal("paused"),
12302
+ generation: generationSchema
12303
+ }).strict()]);
12304
+ z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
12305
+ kind: "decisions",
12306
+ decisions
12307
+ }))], { error: (issue) => {
12308
+ const value = issue.input;
12309
+ return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
12310
+ } });
12311
+ bookingPageLookIdValues.map((value) => {
12312
+ const id = parseBookingPageLookId(value);
12313
+ if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
12314
+ const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
12315
+ if (!style) throw new Error(`Booking look is not offered: ${value}`);
12316
+ return {
12317
+ ...style,
12318
+ id
12319
+ };
12320
+ });
12321
+ [...[
12322
+ 165,
12323
+ 150,
12324
+ 135,
12325
+ 120,
12326
+ 105,
12327
+ 90,
12328
+ 75,
12329
+ 60,
12330
+ 45,
12331
+ 30
12332
+ ].flatMap((o) => [o, -o])];
12333
+ //#endregion
12334
+ export { composeBoundary as A, defineBlockDesignMetadata as B, generateFooterCss as C, headerNeedsPhotoShade as D, generateNavLinkCSS as E, deriveSectionGround as F, cardListFamilyBlocks as H, heroPhotoPaintsGround as I, parseCanonicalRuntimeBackground as L, boundaryRuntimeMetricsForDecorativeTransition as M, anglePolygonCss as N, headerRootPaint as O, transitionCatalogueEntries as P, resolveSectionBackground as R, parseGradientPresetId as S, buildTextContrastShadow as T, cardListKnobBlocks as U, resolveEffectiveKnobs as V, deriveSiteStyleBlockPolicy as _, readOpeningForegroundProjection as a, gradientToCss as b, arrangementLookHooks as c, resolveLookSlotSurfaces as d, arrangementManifestFromVariants as f, resolvePublishedLook as g, resolveModeArrangement as h, transparentHeaderForegroundInput as i, sectionFactsForContent as j, boundaryLayout as k, arrangementSlotNames as l, resolveEffectiveArrangement as m, headerForegroundCandidates as n, mergeHeaderNavTypographyPreference as o, readStoredMode as p, headerLeafTextColor as r, readHeaderNavFontSizePreference as s, effectiveHeaderNavLinkStyle as t, resolveItemSurface as u, requireCuratedSiteStyle as v, footerForegroundCandidates as w, getGradientPreset as x, compiledRuntimeStyleFieldNames as y, sectionForegroundBackground as z };