@riverbankcms/sdk 0.160.0 → 0.161.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 (207) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-Bx4kLiTA.d.ts} +1 -1
  2. package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-Dm7_P13o.d.ts} +211 -9
  3. package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-D7HdWWwF.d.ts} +4 -4
  4. package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
  5. package/dist/_dts/{client-uMMuPq9V.d.ts → client-Ep0jI9eE.d.ts} +1 -1
  6. package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-BgAzCrBc.d.ts} +2 -2
  7. package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-DUiOnj9e.d.ts} +8 -5
  8. package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B-uXamTG.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-BDkZYEcS.d.ts} +2 -2
  10. package/dist/_dts/{index-Blwl7yl6.d.ts → index-BQDBQvdu.d.ts} +1 -1
  11. package/dist/_dts/{index-lkpjIg5i.d.ts → index-BVkP8f70.d.ts} +1 -1
  12. package/dist/_dts/{index-CEaKil7G.d.ts → index-CF6Cjs7b.d.ts} +2 -2
  13. package/dist/_dts/{index-nVoi_74l.d.ts → index-CSsfq6KG.d.ts} +3 -17
  14. package/dist/_dts/{index-DahMwisK.d.ts → index-D_8uz4OP.d.ts} +3 -3
  15. package/dist/_dts/{index-Bg64CkV-.d.ts → index-DvKQA6AZ.d.ts} +4 -4
  16. package/dist/_dts/{index-C5xslEBn.d.ts → index-KPrWM0KF.d.ts} +1 -1
  17. package/dist/_dts/{index-BaaGBY1v.d.ts → index-ylivB7Jj.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-DTjKOO-T.d.ts} +10 -10
  19. package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-C1vA5c5w.d.ts} +2 -2
  20. package/dist/_dts/{schema-D0bNcPWK.d.ts → schema-BHu0PYWl.d.ts} +18821 -16622
  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 +7 -7
  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/preview-next/keep-alive.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  43. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  45. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  46. package/dist/_dts/sdk/src/server.d.ts +5 -5
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
  49. package/dist/_dts/{types-D8czmbQF.d.ts → types-BR1Yboa9.d.ts} +1060 -140
  50. package/dist/_dts/{types-Dm-KW7nj.d.ts → types-CJXTCF_F.d.ts} +3 -3
  51. package/dist/_dts/{types-CFrYuXYP.d.ts → types-D02ngcUH.d.ts} +4 -2
  52. package/dist/_dts/{types-DSgmJ15W.d.ts → types-ZGUiHpDE.d.ts} +7 -7
  53. package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BaV565gb.d.ts} +4 -4
  54. package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-DTExCJsb.mjs} +22 -21
  55. package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-BDpxmn1p.mjs} +1 -1
  56. package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-PeCiL82X.mjs} +6 -6
  57. package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-DWexRLf6.mjs} +1 -1
  58. package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-3zmIqakW.mjs} +5 -5
  59. package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-GHi-8BW5.mjs} +1 -1
  60. package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-BxQLY5cX.mjs} +9 -9
  61. package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-B5bmQ03b.mjs} +8 -8
  62. package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-CgMZ9TeU.mjs} +1 -1
  63. package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-BEx-qiDE.mjs} +4 -4
  64. package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-CyH5tA6Y.mjs} +1 -1
  65. package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-D3uySdGP.mjs} +3 -3
  66. package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-9RFrBejr.mjs} +29 -13
  67. package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-CG2tQx8K.mjs} +25 -13
  68. package/dist/client/LocationMapActions-Wsr83Q7q.mjs +268 -0
  69. package/dist/client/{Page-7PkzO04N.mjs → Page-Bf2nPACI.mjs} +809 -298
  70. package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CZweb1vs.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-Bkgz67gt.mjs} +1 -1
  72. package/dist/client/ThemedButton-CnyL3s1A.mjs +2243 -0
  73. package/dist/client/{accordion-2m27DsIk.mjs → accordion-TcimLLRQ.mjs} +1 -1
  74. package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-q-RpJ4aF.mjs} +12 -12
  75. package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-DjGfk3Wj.mjs} +4 -4
  76. package/dist/client/bookings.mjs +5 -5
  77. package/dist/client/{carousel-D7nj9I0y.mjs → carousel-CGAk6j0m.mjs} +2 -2
  78. package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-ArlGmYWV.mjs} +1 -1
  79. package/dist/client/{cart-PN6yCw1H.mjs → cart-D_h3rAZ2.mjs} +3 -3
  80. package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-DHOxZbJ7.mjs} +1 -1
  81. package/dist/client/{checkout-CsTwXVSb.mjs → checkout-tC-3CzuM.mjs} +3 -3
  82. package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-DsBb2Pkm.mjs} +1 -1
  83. package/dist/client/client.mjs +5 -4
  84. package/dist/client/{context-BLAvalAa.mjs → context-9ZfMb6GA.mjs} +1 -1
  85. package/dist/client/{cta-CUXhX_D7.mjs → cta-D-ZqL7-e.mjs} +1 -1
  86. package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-BCwLqYpW.mjs} +1 -1
  87. package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-BxkSS9fx.mjs} +1 -1
  88. package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-xg6to91E.mjs} +3 -3
  89. package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-C670TgRd.mjs} +2 -17
  90. package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-C6GApWTB.mjs} +16 -16
  91. package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-CWc0dg9i.mjs} +4 -4
  92. package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D4DbOrvQ.mjs} +4 -4
  93. package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-C2DfmbC0.mjs} +2 -2
  94. package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-C_yXmHyz.mjs} +4 -4
  95. package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DJuaCB-O.mjs} +4 -4
  96. package/dist/client/{form-C-B5O_ko.mjs → form-QZhtdFHA.mjs} +3 -3
  97. package/dist/client/{form.client-DoZVcl8d.mjs → form.client-CgvPACwG.mjs} +4 -4
  98. package/dist/client/{form.parts-mttKpgif.mjs → form.parts-2uI0-5N-.mjs} +3 -3
  99. package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Danr0Nk4.mjs} +1 -1
  100. package/dist/client/gifting/client.mjs +3 -3
  101. package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-DJdlLdvZ.mjs} +2 -2
  102. package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BvjcAZpS.mjs} +1 -1
  103. package/dist/client/mediaContext-jPeJ2PmJ.mjs +10801 -0
  104. package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-Cbepz2KU.mjs} +5 -5
  105. package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-DN8oMCQ0.mjs} +2 -2
  106. package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-wjLtW-wq.mjs} +3 -3
  107. package/dist/client/{noop-B610YKEx.mjs → noop-B7H6gCbj.mjs} +297 -3
  108. package/dist/client/portal/client.mjs +12 -12
  109. package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-CYTR165c.mjs} +1 -1
  110. package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-B4vTvag8.mjs} +1 -1
  111. package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-k8LEMSWn.mjs} +3 -3
  112. package/dist/client/{productList-BKN4D-1z.mjs → productList-DEo8Bqoe.mjs} +3 -3
  113. package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-G0j0HXBO.mjs} +3 -28
  114. package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-BTmSXE3D.mjs} +355 -162
  115. package/dist/client/rendering/client.mjs +27 -28
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +15 -9
  118. package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-B19taoH6.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-Chu5BHra.mjs} +1 -1
  120. package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-C-m8XHuW.mjs} +990 -2310
  121. package/dist/client/{shop-DZNC0VKk.mjs → shop-RGWa43H7.mjs} +3 -3
  122. package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-TJYCBO_H.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-CjCcUB_o.mjs} +1 -1
  124. package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-tsKfZw1W.mjs} +12 -12
  125. package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CVqLAU53.mjs} +6 -158
  126. package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-C3lHMz_R.mjs} +2 -2
  127. package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-V2ifvGGy.mjs} +148 -8
  128. package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-D1X69-pN.mjs} +3 -3
  129. package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-Ch30jino.mjs} +1 -1
  130. package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-Bwzr1RjV.mjs} +2 -2
  131. package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-BimJbFC7.mjs} +1 -1
  132. package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CLAS0upd.mjs} +8 -21
  133. package/dist/client/{view-CkUn3Y0Y.mjs → view-BUh4LnLS.mjs} +4 -4
  134. package/dist/client/{view-CseyBW07.mjs → view-Dj_FZHmg.mjs} +18 -15
  135. package/dist/client/wizardSteps-BkZc-hKH.mjs +6598 -0
  136. package/dist/preview-next/before-render.mjs +5 -4
  137. package/dist/preview-next/chrome.css +2 -0
  138. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-CwerMfzn.mjs} +2 -1
  139. package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
  140. package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
  141. package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-Dvq-RW9-.mjs} +110 -63
  142. package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-BdFjS39R.mjs} +4 -3
  143. package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-BEfHln1E.mjs} +425 -412
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-CjkGh1IG.mjs} +1 -1
  145. package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → SiteChromeCustomizeContext-CDbxk_qZ.mjs} +2982 -53859
  146. package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-b14Bv03E.mjs} +1079 -340
  147. package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
  148. package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
  149. package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dd1_mNIg.mjs} +1 -1
  150. package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
  151. package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-B-CXyGVb.mjs} +1 -1
  154. package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +5812 -0
  155. package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-CGxS8Ns-.mjs} +2 -1
  156. package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
  157. package/dist/preview-next/editor-base.css +2 -2
  158. package/dist/preview-next/keepAlive.mjs +2 -2
  159. package/dist/preview-next/middleware.mjs +7 -3
  160. package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-hLg-yjQN.mjs} +41 -4
  161. package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
  162. package/dist/preview-next/session.mjs +1 -1
  163. package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-CeTd2saO.mjs} +4 -4
  164. package/dist/server/{bindings-CFmJg5lm.mjs → bindings-C5YpKuKt.mjs} +2 -1
  165. package/dist/server/{client-DPsi0Dai.mjs → client-Cv26lZQ4.mjs} +7 -5
  166. package/dist/server/config-validation.mjs +1 -1
  167. package/dist/server/config.mjs +2 -2
  168. package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-CGvGr3yD.mjs} +461 -1064
  169. package/dist/server/index.mjs +3 -3
  170. package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-C8a0b-cC.mjs} +11 -5
  171. package/dist/server/loadPage--DXBwI8V.mjs +2 -0
  172. package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-BW7dklu3.mjs} +3 -2
  173. package/dist/server/next.mjs +9 -9
  174. package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-tIuqmJB3.mjs} +1 -1
  175. package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-D1fiPOKF.mjs} +596 -301
  176. package/dist/server/page-converter.mjs +1 -1
  177. package/dist/server/{prebuild-B_1vrSru.mjs → prebuild--fO0E2tr.mjs} +1 -1
  178. package/dist/server/prebuild.mjs +1 -1
  179. package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-CqJnokWJ.mjs} +133 -87
  180. package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-CvvZ4JIe.mjs} +41 -3
  181. package/dist/server/{registry-eFjKtEhF.mjs → registry-BVfCqaCq.mjs} +477 -1021
  182. package/dist/server/rendering/server.mjs +4 -4
  183. package/dist/server/rendering.mjs +8 -8
  184. package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-DPNvhXEz.mjs} +1 -1
  185. package/dist/server/routing.mjs +1 -1
  186. package/dist/server/{schema-C3dJ5UkL.mjs → schema-CD4peO7m.mjs} +2203 -1223
  187. package/dist/server/server.mjs +3 -3
  188. package/dist/server/site-styles-H-EvTJiW.mjs +787 -0
  189. package/dist/server/siteChromeOverlayClearance-DNC2k1U0.mjs +750 -0
  190. package/dist/server/{src-C5Mu-z0F.mjs → src-ILxc6pid.mjs} +161 -3
  191. package/dist/server/theme-bridge.mjs +1 -1
  192. package/dist/server/theme.mjs +1 -1
  193. package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-BNHIXiUj.mjs} +117 -26
  194. package/dist/server/{validation-B-Xar8QS.mjs → validation-B1ieVemg.mjs} +2 -2
  195. package/dist/server/{version-Bg7VHK3i.mjs → version-BQK44wFg.mjs} +1 -1
  196. package/dist/styles/index.css +157 -0
  197. package/package.json +1 -1
  198. package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
  199. package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
  200. package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
  201. package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
  202. package/dist/client/mediaContext-DThoeEBU.mjs +0 -136
  203. package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
  204. package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
  205. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
  206. package/dist/server/loadPage-DUPP51C-.mjs +0 -2
  207. package/dist/server/media-CcHwZkdJ.mjs +0 -243
@@ -1,4 +1,4 @@
1
- import { $ as NAV_LINK_TEXT_SIZE_MAP, $n as hexToRgb, An as surfaceForegroundInputFromResolved, At as asPageFlowPresetId, Bn as resolveConcreteColorHex, Ct as asBoundaryOptionId, G as buttonStyleSelectionSchema, Gn as paletteValueKey, Gt as panelFrame, Hn as hexColorSchema, Ht as makeBoundaryId, J as generateInteractiveChildInheritanceCSS, Jn as parseThemeColorToken, K as generateEffectsCSS, Kn as paletteValueKeySchema, Kt as plainFrame, Mn as surfaceForegroundValue, Mt as assertNever, Ot as asDesignSystemTemplateId, Pn as expandPalette, Pt as defineExactCatalog, Q as NAV_LINK_PADDING_X_MAP, Qn as featuresFromHex, Qt as resolveSurface, Rn as contrastRatio, Sn as unsafeAsOpaqueButtonColourToken, Tt as asDesignBoundaryId, Un as paletteColorsSchema, Ut as noHeadingDecoration, V as headerInteractionQuietPalette, W as defaultButtonStyleSelectionFor, Wn as paletteModeSchema, X as NAV_LINK_LETTER_SPACING_MAP, Y as NAV_LINK_BORDER_RADIUS_MAP, Z as NAV_LINK_PADDING_MAP, _t as cardRoleValues, a as generateMobileOverlayBackdropFilterFix, bt as asAppearancePresetId, cn as rgbColorValue, ct as siteChromeBackgroundOverrideOwner, en as resolveSurfaceForeground, er as rgbToHex, et as navLinkHoverColorCandidate, h as getComponentShadowVar, i as generateHeaderScrollTreatmentStyles, jt as asSiteStyleId, kn as surfaceForegroundDeclarations, kt as asLayoutVariantKey, l as MQ_MD_DOWN, m as getComponentBorderWidthPx, mt as renderCssDeclarations, nn as planForegroundHover, nt as navLinkOwnsUnderline, o as getHeaderPaintTargets, q as generateBaseInteractiveCSS, qn as requirePaletteColorsFromEntries, qt as requireNonEmptyReadonlyArray, rn as TokenResolver, rt as navEffectPolicy, s as renderHeaderPaintTargetRules, tt as navLinkOwnsHoverForeground, ut as themeV2RuntimeStyleFieldNames, wt as asDesignBlockId, zn as relativeLuminance, zt as flushPanelFrame } from "./schema-C3dJ5UkL.mjs";
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";
2
2
  import { z } from "zod";
3
3
  //#region ../theme-core/src/site-styles/appearancePresetTypes.ts
4
4
  /** Block supply is capability, never a second Look catalogue. */
@@ -109,7 +109,8 @@ const arrangementLookTargets = {
109
109
  form: "contact-form",
110
110
  "body-text": "body-text",
111
111
  faq: "faq",
112
- "cta-full": "cta"
112
+ "cta-full": "cta",
113
+ "location-map": "location"
113
114
  };
114
115
  function defineArrangementLook(id, block, name, arrangement, knobs, input = {}) {
115
116
  const mode = block === "event-calendar" ? "list" : null;
@@ -260,18 +261,18 @@ function defineBlockAppearancePreset(preset) {
260
261
  */
261
262
  const brandScrimOptionGroups = [{
262
263
  id: "image-surface-treatment",
263
- label: "Treatment",
264
+ label: "Photo tint",
264
265
  defaultOptionId: "brand-scrim-primary",
265
266
  options: [{
266
267
  id: "brand-scrim-primary",
267
- label: "Brand scrim",
268
+ label: "Brand tint",
268
269
  designPatch: { imageSurfaceTreatment: {
269
270
  kind: "brand-scrim",
270
271
  token: "primary"
271
272
  } }
272
273
  }, {
273
274
  id: "neutral-scrim",
274
- label: "Neutral scrim",
275
+ label: "Dark tint",
275
276
  designPatch: { imageSurfaceTreatment: { kind: "neutral-scrim" } }
276
277
  }]
277
278
  }];
@@ -295,7 +296,7 @@ const appearancePresets = [
295
296
  },
296
297
  id: "hero-immersive-image",
297
298
  target: "hero",
298
- label: "Immersive image hero",
299
+ label: "Photo behind centred text",
299
300
  blockKinds: ["block.hero"],
300
301
  layoutPatches: [{
301
302
  constraints: { layoutVariantKeys: ["micro"] },
@@ -320,22 +321,22 @@ const appearancePresets = [
320
321
  },
321
322
  id: "hero-bottom-left-panel",
322
323
  target: "hero",
323
- label: "Bottom-left panel hero",
324
+ label: "Text panel, bottom left of photo",
324
325
  blockKinds: ["block.hero"],
325
326
  optionGroups: [{
326
327
  id: "image-surface-treatment",
327
- label: "Treatment",
328
+ label: "Photo tint",
328
329
  defaultOptionId: "neutral-scrim",
329
330
  options: [{
330
331
  id: "neutral-scrim",
331
- label: "Neutral scrim",
332
+ label: "Dark tint",
332
333
  designPatch: { imageSurfaceTreatment: {
333
334
  kind: "neutral-scrim",
334
335
  intensity: "balanced"
335
336
  } }
336
337
  }, {
337
338
  id: "brand-scrim-primary",
338
- label: "Brand scrim",
339
+ label: "Brand tint",
339
340
  designPatch: { imageSurfaceTreatment: {
340
341
  kind: "brand-scrim",
341
342
  token: "primary",
@@ -369,7 +370,7 @@ const appearancePresets = [
369
370
  },
370
371
  id: "hero-poster-image",
371
372
  target: "hero",
372
- label: "Poster image hero",
373
+ label: "Strong brand tint, big title",
373
374
  blockKinds: ["block.hero"],
374
375
  layoutPatches: [{
375
376
  constraints: { layoutVariantKeys: ["micro"] },
@@ -398,7 +399,7 @@ const appearancePresets = [
398
399
  },
399
400
  id: "hero-brand-scrim",
400
401
  target: "hero",
401
- label: "Brand scrim image hero",
402
+ label: "Photo with a brand tint",
402
403
  blockKinds: ["block.hero"],
403
404
  optionGroups: brandScrimOptionGroups,
404
405
  layoutPatches: microBannerLayoutPatches,
@@ -421,7 +422,7 @@ const appearancePresets = [
421
422
  },
422
423
  id: "hero-brand-scrim-fixed-frame",
423
424
  target: "hero",
424
- label: "Fixed-frame brand scrim hero",
425
+ label: "Fixed photo with a brand tint",
425
426
  blockKinds: ["block.hero"],
426
427
  optionGroups: brandScrimOptionGroups,
427
428
  layoutPatches: microBannerLayoutPatches,
@@ -446,7 +447,7 @@ const appearancePresets = [
446
447
  },
447
448
  id: "hero-brand-depth-expressive",
448
449
  target: "hero",
449
- label: "Expressive brand-depth hero",
450
+ label: "Brand colour, no photo",
450
451
  blockKinds: ["block.hero"],
451
452
  design: {
452
453
  sectionSurface: "brand-depth-band",
@@ -460,7 +461,7 @@ const appearancePresets = [
460
461
  structure: { kind: "legacy" },
461
462
  id: "hero-contained-intro",
462
463
  target: "hero",
463
- label: "Contained intro hero",
464
+ label: "Text in a panel on a soft band",
464
465
  blockKinds: ["block.hero"],
465
466
  design: {
466
467
  sectionSurface: "muted-band",
@@ -476,7 +477,7 @@ const appearancePresets = [
476
477
  },
477
478
  id: "hero-split-editorial",
478
479
  target: "hero",
479
- label: "Editorial split hero",
480
+ label: "Split on the page background",
480
481
  blockKinds: ["block.hero"],
481
482
  design: {
482
483
  sectionSurface: "base",
@@ -491,7 +492,7 @@ const appearancePresets = [
491
492
  },
492
493
  id: "hero-split-brand",
493
494
  target: "hero",
494
- label: "Brand split hero",
495
+ label: "Split on brand colour",
495
496
  blockKinds: ["block.hero"],
496
497
  design: {
497
498
  sectionSurface: "brand-depth-band",
@@ -507,7 +508,7 @@ const appearancePresets = [
507
508
  },
508
509
  id: "hero-split-soft-panel",
509
510
  target: "hero",
510
- label: "Soft panel split hero",
511
+ label: "Split, panel on a soft band",
511
512
  blockKinds: ["block.hero"],
512
513
  design: {
513
514
  sectionSurface: "muted-band",
@@ -522,7 +523,7 @@ const appearancePresets = [
522
523
  },
523
524
  id: "hero-split-accent",
524
525
  target: "hero",
525
- label: "Accent split hero",
526
+ label: "Split, panel on accent colour",
526
527
  blockKinds: ["block.hero"],
527
528
  design: {
528
529
  sectionSurface: "accent-band",
@@ -541,7 +542,7 @@ const appearancePresets = [
541
542
  },
542
543
  id: "intro-editorial-statement",
543
544
  target: "intro",
544
- label: "Editorial intro statement",
545
+ label: "Large statement",
545
546
  blockKinds: ["block.intro"],
546
547
  design: {
547
548
  sectionSurface: "base",
@@ -570,7 +571,7 @@ const appearancePresets = [
570
571
  structure: { kind: "legacy" },
571
572
  id: "offerings-preview-default-cards",
572
573
  target: "offerings",
573
- label: "Default offering cards",
574
+ label: "Cards",
574
575
  blockKinds: ["block.offerings-preview"],
575
576
  design: {
576
577
  sectionSurface: "base",
@@ -582,7 +583,7 @@ const appearancePresets = [
582
583
  structure: { kind: "legacy" },
583
584
  id: "offerings-preview-secondary-cards",
584
585
  target: "offerings",
585
- label: "Secondary offering cards",
586
+ label: "Cards on a soft band",
586
587
  blockKinds: ["block.offerings-preview"],
587
588
  design: {
588
589
  sectionSurface: "muted-band",
@@ -594,7 +595,7 @@ const appearancePresets = [
594
595
  structure: { kind: "legacy" },
595
596
  id: "offerings-preview-non-carded",
596
597
  target: "offerings",
597
- label: "Non-carded offerings",
598
+ label: "No cards",
598
599
  blockKinds: ["block.offerings-preview"],
599
600
  design: {
600
601
  sectionSurface: "muted-band",
@@ -613,7 +614,7 @@ const appearancePresets = [
613
614
  },
614
615
  id: "offerings-preview-paired-feature-cards",
615
616
  target: "offerings",
616
- label: "Paired feature cards",
617
+ label: "One large card, one smaller",
617
618
  blockKinds: ["block.offerings-preview"],
618
619
  design: {
619
620
  sectionSurface: "base",
@@ -632,7 +633,7 @@ const appearancePresets = [
632
633
  },
633
634
  id: "offerings-preview-open-editorial-columns",
634
635
  target: "offerings",
635
- label: "Open editorial columns",
636
+ label: "Open columns",
636
637
  blockKinds: ["block.offerings-preview"],
637
638
  design: {
638
639
  sectionSurface: "base",
@@ -651,7 +652,7 @@ const appearancePresets = [
651
652
  },
652
653
  id: "offerings-preview-joined-programme-panel",
653
654
  target: "offerings",
654
- label: "Joined programme panel",
655
+ label: "Rows joined in one panel",
655
656
  blockKinds: ["block.offerings-preview"],
656
657
  design: {
657
658
  sectionSurface: "base",
@@ -663,7 +664,7 @@ const appearancePresets = [
663
664
  structure: { kind: "legacy" },
664
665
  id: "feature-cards-raised-rule",
665
666
  target: "feature-cards",
666
- label: "Raised cards with rule",
667
+ label: "Raised cards with a line",
667
668
  blockKinds: ["block.feature-cards"],
668
669
  design: {
669
670
  sectionSurface: "base",
@@ -675,7 +676,7 @@ const appearancePresets = [
675
676
  structure: { kind: "legacy" },
676
677
  id: "feature-cards-bold-colors",
677
678
  target: "feature-cards",
678
- label: "Bold colour-blocked cards",
679
+ label: "Colour-filled cards",
679
680
  blockKinds: ["block.feature-cards"],
680
681
  design: {
681
682
  sectionSurface: "base",
@@ -687,7 +688,7 @@ const appearancePresets = [
687
688
  structure: { kind: "legacy" },
688
689
  id: "feature-cards-editorial-columns",
689
690
  target: "feature-cards",
690
- label: "Editorial open columns",
691
+ label: "Open columns on a soft band",
691
692
  blockKinds: ["block.feature-cards"],
692
693
  design: {
693
694
  sectionSurface: "muted-band",
@@ -706,7 +707,7 @@ const appearancePresets = [
706
707
  },
707
708
  id: "feature-cards-asymmetric-emphasis",
708
709
  target: "feature-cards",
709
- label: "Asymmetric emphasis pair",
710
+ label: "Cards in uneven pairs",
710
711
  blockKinds: ["block.feature-cards"],
711
712
  design: {
712
713
  sectionSurface: "base",
@@ -724,7 +725,7 @@ const appearancePresets = [
724
725
  },
725
726
  id: "feature-cards-framed-programme",
726
727
  target: "feature-cards",
727
- label: "Framed programme cards",
728
+ label: "Close-set cards on brand colour",
728
729
  blockKinds: ["block.feature-cards"],
729
730
  design: {
730
731
  sectionSurface: "brand-depth-band",
@@ -739,7 +740,7 @@ const appearancePresets = [
739
740
  },
740
741
  id: "feature-cards-editorial-diptych",
741
742
  target: "feature-cards",
742
- label: "Editorial diptych",
743
+ label: "Two large cards side by side",
743
744
  blockKinds: ["block.feature-cards"],
744
745
  design: {
745
746
  sectionSurface: "base",
@@ -751,7 +752,7 @@ const appearancePresets = [
751
752
  structure: { kind: "legacy" },
752
753
  id: "events-lined-panel",
753
754
  target: "events",
754
- label: "Raised event panel",
755
+ label: "Cards on a panel",
755
756
  blockKinds: ["block.event-calendar", "block.event-listing"],
756
757
  design: {
757
758
  sectionSurface: "base",
@@ -762,7 +763,7 @@ const appearancePresets = [
762
763
  structure: { kind: "legacy" },
763
764
  id: "events-ruled-register",
764
765
  target: "events",
765
- label: "Ruled event register",
766
+ label: "Ruled list",
766
767
  blockKinds: ["block.event-calendar", "block.event-listing"],
767
768
  design: {
768
769
  sectionSurface: "brand-depth-band",
@@ -774,7 +775,7 @@ const appearancePresets = [
774
775
  structure: { kind: "legacy" },
775
776
  id: "events-editorial-register",
776
777
  target: "events",
777
- label: "Editorial event register",
778
+ label: "Editorial list",
778
779
  blockKinds: ["block.event-calendar", "block.event-listing"],
779
780
  design: {
780
781
  sectionSurface: "base",
@@ -786,7 +787,7 @@ const appearancePresets = [
786
787
  structure: { kind: "legacy" },
787
788
  id: "events-dense-index",
788
789
  target: "events",
789
- label: "Dense event index",
790
+ label: "Compact list",
790
791
  blockKinds: ["block.event-calendar", "block.event-listing"],
791
792
  design: {
792
793
  sectionSurface: "accent-band",
@@ -798,7 +799,7 @@ const appearancePresets = [
798
799
  structure: { kind: "legacy" },
799
800
  id: "schedule-details-brand-depth",
800
801
  target: "events",
801
- label: "Brand-depth schedule details",
802
+ label: "Details on brand colour",
802
803
  blockKinds: ["block.event-details"],
803
804
  design: {
804
805
  sectionSurface: "brand-depth-band",
@@ -810,7 +811,7 @@ const appearancePresets = [
810
811
  structure: { kind: "legacy" },
811
812
  id: "media-text-flush-feature",
812
813
  target: "media-text",
813
- label: "Flush media feature",
814
+ label: "Photo to the edge, on a soft band",
814
815
  blockKinds: ["block.media-text"],
815
816
  design: {
816
817
  sectionSurface: "muted-band",
@@ -821,7 +822,7 @@ const appearancePresets = [
821
822
  structure: { kind: "legacy" },
822
823
  id: "testimonials-simple-cards",
823
824
  target: "testimonials",
824
- label: "Simple testimonial cards",
825
+ label: "Quote cards",
825
826
  blockKinds: ["block.testimonials"],
826
827
  design: {
827
828
  sectionSurface: "base",
@@ -833,7 +834,7 @@ const appearancePresets = [
833
834
  structure: { kind: "legacy" },
834
835
  id: "testimonials-raised-panel",
835
836
  target: "testimonials",
836
- label: "Raised testimonial panel",
837
+ label: "Quotes on a panel",
837
838
  blockKinds: ["block.testimonials"],
838
839
  design: {
839
840
  sectionSurface: "muted-band",
@@ -845,7 +846,7 @@ const appearancePresets = [
845
846
  structure: { kind: "legacy" },
846
847
  id: "testimonials-accent-panel",
847
848
  target: "testimonials",
848
- label: "Accent testimonial panel",
849
+ label: "Quotes on an accent panel",
849
850
  blockKinds: ["block.testimonials"],
850
851
  design: {
851
852
  sectionSurface: "accent-band",
@@ -857,7 +858,7 @@ const appearancePresets = [
857
858
  structure: { kind: "legacy" },
858
859
  id: "testimonials-statement-cards",
859
860
  target: "testimonials",
860
- label: "Statement cards",
861
+ label: "Cards on accent colour",
861
862
  blockKinds: ["block.testimonials"],
862
863
  design: {
863
864
  sectionSurface: "accent-band",
@@ -869,7 +870,7 @@ const appearancePresets = [
869
870
  structure: { kind: "legacy" },
870
871
  id: "testimonials-brand-statement-cards",
871
872
  target: "testimonials",
872
- label: "Brand statement cards",
873
+ label: "Cards on brand colour",
873
874
  blockKinds: ["block.testimonials"],
874
875
  design: {
875
876
  sectionSurface: "brand-depth-band",
@@ -887,7 +888,7 @@ const appearancePresets = [
887
888
  },
888
889
  id: "testimonials-non-carded",
889
890
  target: "testimonials",
890
- label: "Non-carded",
891
+ label: "No cards",
891
892
  blockKinds: ["block.testimonials"],
892
893
  design: {
893
894
  sectionSurface: "muted-band",
@@ -905,7 +906,7 @@ const appearancePresets = [
905
906
  },
906
907
  id: "testimonials-evergreen-lead",
907
908
  target: "testimonials",
908
- label: "Evergreen lead",
909
+ label: "Lead quote, others in two columns",
909
910
  blockKinds: ["block.testimonials"],
910
911
  design: {
911
912
  sectionSurface: "base",
@@ -923,7 +924,7 @@ const appearancePresets = [
923
924
  },
924
925
  id: "testimonials-room-and-response",
925
926
  target: "testimonials",
926
- label: "Room and response",
927
+ label: "Tall lead quote, others beside",
927
928
  blockKinds: ["block.testimonials"],
928
929
  design: {
929
930
  sectionSurface: "base",
@@ -941,7 +942,7 @@ const appearancePresets = [
941
942
  },
942
943
  id: "testimonials-open-floor",
943
944
  target: "testimonials",
944
- label: "Open floor",
945
+ label: "Title beside, lead quote on top",
945
946
  blockKinds: ["block.testimonials"],
946
947
  design: {
947
948
  sectionSurface: "base",
@@ -952,7 +953,7 @@ const appearancePresets = [
952
953
  structure: { kind: "legacy" },
953
954
  id: "faq-base-accordion",
954
955
  target: "faq",
955
- label: "Base accordion FAQ",
956
+ label: "Plain list of questions",
956
957
  blockKinds: ["block.faq"],
957
958
  design: {
958
959
  sectionSurface: "base",
@@ -964,7 +965,7 @@ const appearancePresets = [
964
965
  structure: { kind: "legacy" },
965
966
  id: "faq-contained-help",
966
967
  target: "faq",
967
- label: "Contained help panel",
968
+ label: "Questions in a panel",
968
969
  blockKinds: ["block.faq"],
969
970
  design: {
970
971
  sectionSurface: "muted-band",
@@ -976,7 +977,7 @@ const appearancePresets = [
976
977
  structure: { kind: "legacy" },
977
978
  id: "contact-form-panel",
978
979
  target: "contact-form",
979
- label: "Raised form panel",
980
+ label: "Form on a panel",
980
981
  blockKinds: ["block.form"],
981
982
  design: {
982
983
  sectionSurface: "muted-band",
@@ -987,7 +988,7 @@ const appearancePresets = [
987
988
  structure: { kind: "legacy" },
988
989
  id: "booking-brand-band",
989
990
  target: "contact-form",
990
- label: "Brand band booking",
991
+ label: "Booking form on brand colour",
991
992
  blockKinds: ["block.appointment-booking"],
992
993
  design: {
993
994
  sectionSurface: "brand-depth-band",
@@ -998,7 +999,7 @@ const appearancePresets = [
998
999
  structure: { kind: "legacy" },
999
1000
  id: "cta-accent-band",
1000
1001
  target: "cta",
1001
- label: "Accent CTA band",
1002
+ label: "Accent colour band",
1002
1003
  blockKinds: ["block.cta-full"],
1003
1004
  design: {
1004
1005
  sectionSurface: "accent-band",
@@ -1240,6 +1241,19 @@ const appearancePresets = [
1240
1241
  }],
1241
1242
  styleFallback: [id$1("cta-centred")]
1242
1243
  }),
1244
+ defineArrangementLook("location-map-above-details", "location-map", "Map above the details", "default", []),
1245
+ defineArrangementLook("location-map-beside-address", "location-map", "Map beside the address", "map-and-details", [], { styleFallback: [id$1("location-map-above-details")] }),
1246
+ defineArrangementLook("location-map-address-over-wide-map", "location-map", "Address over a wide map", "map-and-details", [], {
1247
+ slotRoles: { panel: "card" },
1248
+ styleFallback: [id$1("location-map-beside-address")]
1249
+ }),
1250
+ defineArrangementLook("location-map-entrance-photo", "location-map", "Entrance photo beside the details", "photo-and-details", [], {
1251
+ whenMissing: [{
1252
+ fact: "entrance",
1253
+ look: id$1("location-map-beside-address")
1254
+ }],
1255
+ styleFallback: [id$1("location-map-beside-address")]
1256
+ }),
1243
1257
  {
1244
1258
  ...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
1245
1259
  "media",
@@ -1342,64 +1356,6 @@ const appearancePresets = [
1342
1356
  }
1343
1357
  ];
1344
1358
  //#endregion
1345
- //#region ../theme-core/src/palette/utils/scrimContrast.ts
1346
- const WHITE = "#ffffff";
1347
- const BLACK = "#000000";
1348
- /** `top` at `alpha` over opaque `bottom`, blended as CSS paints an overlay. */
1349
- function compositeHex(topHex, alpha, bottomHex) {
1350
- const top = hexToRgb(topHex);
1351
- const bottom = hexToRgb(bottomHex);
1352
- const mix = (a, b) => Math.round(alpha * a + (1 - alpha) * b);
1353
- return rgbToHex(mix(top.r, bottom.r), mix(top.g, bottom.g), mix(top.b, bottom.b));
1354
- }
1355
- /**
1356
- * The lowest contrast `foreground` can reach over `scrim` at `alpha` laid on
1357
- * any pixel. A foreground whose luminance falls inside the range the
1358
- * composites can take has a worst case of 1:1.
1359
- */
1360
- function worstCaseScrimContrast(input) {
1361
- const overWhite = compositeHex(input.scrimHex, input.alpha, WHITE);
1362
- const overBlack = compositeHex(input.scrimHex, input.alpha, BLACK);
1363
- const luminance = (hex) => {
1364
- const { r, g, b } = hexToRgb(hex);
1365
- return relativeLuminance(r, g, b);
1366
- };
1367
- const foreground = luminance(input.foregroundHex);
1368
- const low = luminance(overBlack);
1369
- const high = luminance(overWhite);
1370
- if (foreground >= low && foreground <= high) return 1;
1371
- return Math.min(contrastRatio(input.foregroundHex, overWhite), contrastRatio(input.foregroundHex, overBlack));
1372
- }
1373
- /** Shared samples for literal RGB washes and palette-token gradient veils. */
1374
- function gradientScrimSamples(gradient, alpha, palette) {
1375
- const literal = [...gradient.matchAll(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/g)].map((stop) => ({
1376
- hex: rgbToHex(Number(stop[1]), Number(stop[2]), Number(stop[3])),
1377
- alpha: alpha * (stop[4] === void 0 ? 1 : Number(stop[4]))
1378
- }));
1379
- const tokens = [...gradient.matchAll(/var\(--tb-([\w-]+)\)/g)].flatMap((stop) => {
1380
- const hex = stop[1] ? resolveConcreteColorHex(stop[1], palette) : null;
1381
- return hex ? [{
1382
- hex,
1383
- alpha
1384
- }] : [];
1385
- });
1386
- return [...literal, ...tokens];
1387
- }
1388
- /** The ink with the stronger worst-pixel guarantee identifies the veil tone.
1389
- * No readable samples (or a tie) leaves classification to the foreground owner.
1390
- */
1391
- function scrimTone(samples) {
1392
- if (samples.length === 0) return null;
1393
- const worst = (foregroundHex) => Math.min(...samples.map((sample) => worstCaseScrimContrast({
1394
- foregroundHex,
1395
- scrimHex: sample.hex,
1396
- alpha: sample.alpha
1397
- })));
1398
- const white = worst(WHITE);
1399
- const black = worst(BLACK);
1400
- return white === black ? null : white > black ? "dark" : "light";
1401
- }
1402
- //#endregion
1403
1359
  //#region ../theme-core/src/site-styles/transitionCatalogue.ts
1404
1360
  /**
1405
1361
  * Family order for pickers. Entries below are listed family by family in this
@@ -1930,172 +1886,6 @@ function validateUniquePageDesignPins(intent, ctx) {
1930
1886
  });
1931
1887
  }
1932
1888
  //#endregion
1933
- //#region ../theme-core/src/site-styles/lookResolution.ts
1934
- function lookDefinitionForId(lookId, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
1935
- return catalogue.find((entry) => entry.id === lookId) ?? null;
1936
- }
1937
- /** Validates destination data independently of manifest rollout availability. */
1938
- function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
1939
- validateOfferKnobs(style, catalogue);
1940
- catalogue.forEach((entry) => lookModes(entry).forEach((mode) => {
1941
- 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"})`);
1942
- }));
1943
- }
1944
- function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
1945
- if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
1946
- if (style.offers.some((offer) => offer.id === entry.id)) return true;
1947
- const nextVisited = /* @__PURE__ */ new Set([...visited, entry.id]);
1948
- return entry.structure.styleFallback.length > 0 && entry.structure.styleFallback.every((fallback) => {
1949
- const next = lookDefinitionForId(fallback, catalogue);
1950
- return next !== null && next.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && fallbackEndsAtOffer(next, mode, style, catalogue, nextVisited);
1951
- });
1952
- }
1953
- const arrangementLookHooks = [
1954
- "data-fact",
1955
- "data-card-list",
1956
- "data-card-list-item",
1957
- "data-availability",
1958
- "data-event-places",
1959
- "data-today",
1960
- "data-other-month",
1961
- "data-current",
1962
- "data-skin",
1963
- "data-look",
1964
- "data-arrangement",
1965
- "data-treat",
1966
- "data-surface",
1967
- "data-length",
1968
- "data-knob-*",
1969
- "data-mode",
1970
- "data-has-*",
1971
- "data-photo-count",
1972
- "data-slot",
1973
- "data-control",
1974
- "data-placeholder-field"
1975
- ];
1976
- appearancePresets.filter(isArrangementAppearancePreset);
1977
- /** Closed structural hooks shared by block arrangements and bounded skins. */
1978
- const arrangementSlotNames = [
1979
- "contact",
1980
- "social",
1981
- "base",
1982
- "section",
1983
- "background",
1984
- "schedule-section",
1985
- "shop-section",
1986
- "stack",
1987
- "inline",
1988
- "grid",
1989
- "head",
1990
- "eyebrow",
1991
- "heading",
1992
- "intro",
1993
- "frame",
1994
- "copy",
1995
- "caption",
1996
- "headline",
1997
- "lede",
1998
- "actions",
1999
- "media",
2000
- "photo",
2001
- "gallery",
2002
- "sticker",
2003
- "facts",
2004
- "fact-label",
2005
- "fact-value",
2006
- "chips",
2007
- "chip",
2008
- "figure",
2009
- "figure-value",
2010
- "figure-label",
2011
- "schedule",
2012
- "dates",
2013
- "date-places",
2014
- "availability",
2015
- "layout",
2016
- "items",
2017
- "item",
2018
- "lead",
2019
- "item-media",
2020
- "item-body",
2021
- "icon",
2022
- "numeral",
2023
- "item-title",
2024
- "item-text",
2025
- "item-actions",
2026
- "list",
2027
- "row",
2028
- "row-continued",
2029
- "group",
2030
- "group-label",
2031
- "group-day",
2032
- "group-date",
2033
- "date",
2034
- "weekday",
2035
- "day",
2036
- "month",
2037
- "date-label",
2038
- "time",
2039
- "price",
2040
- "price-amount",
2041
- "price-unit",
2042
- "price-note",
2043
- "mark",
2044
- "navigation",
2045
- "time-start",
2046
- "time-length",
2047
- "what",
2048
- "item-meta",
2049
- "places",
2050
- "places-low",
2051
- "places-full",
2052
- "action",
2053
- "panel",
2054
- "panel-heading",
2055
- "more",
2056
- "quote",
2057
- "attribution",
2058
- "outcome",
2059
- "controls",
2060
- "control",
2061
- "counter"
2062
- ];
2063
- /** A style cannot add a detail from another block that would silently do nothing. */
2064
- function validateOfferKnobs(style, catalogue) {
2065
- style.offers.forEach((offer) => {
2066
- const look = lookDefinitionForId(offer.id, catalogue);
2067
- if (!look) return;
2068
- [...offer.addKnobs ?? [], ...Object.values(offer.surfaceTints ?? {}).flatMap((tint) => tint?.knob ? [tint.knob] : [])].forEach((knob) => {
2069
- if (!look.blockKinds.some((block) => Array.isArray(lookKnobBlocks[knob]) ? lookKnobBlocks[knob].includes(block) : block === lookKnobBlocks[knob])) throw new Error(`Invalid knob ${knob} on ${look.id}`);
2070
- });
2071
- });
2072
- }
2073
- /** One role resolver, including section inheritance and ground-specific overrides. */
2074
- function resolveItemSurface(role, ground, style) {
2075
- const mapped = style.roleMap[role];
2076
- const name = typeof mapped === "string" ? mapped : mapped[ground] ?? mapped.default;
2077
- if (name === "section") return { kind: "inherit" };
2078
- const spec = style.surfaces[name];
2079
- if (!spec) throw new Error(`Undeclared item surface ${name}`);
2080
- return resolveSurface(spec, style.context);
2081
- }
2082
- /** Fixed standalone slots and collection slots share the role resolver. */
2083
- function resolveLookSlotSurfaces(look, roles, surfaces) {
2084
- const arrangement = Object.values(look.structure.byMode)[0];
2085
- const container = arrangement === "compact" ? "panel" : look.target === "events" ? "list" : "items";
2086
- const entries = [
2087
- ...Object.entries(look.structure.slotRoles ?? {}).map(([slot, role]) => [slot, surfaces[role]]),
2088
- ...roles.container ? [[container, surfaces[roles.container]]] : [],
2089
- ...roles.items ? [
2090
- ["item", surfaces[roles.items]],
2091
- ["row", surfaces[roles.items]],
2092
- ["row-continued", surfaces[roles.items]]
2093
- ] : [],
2094
- ...roles.at?.first && arrangement === "lead-support" ? [["lead", surfaces[roles.at.first]]] : []
2095
- ];
2096
- return Object.fromEntries(entries);
2097
- }
2098
- //#endregion
2099
1889
  //#region ../theme-core/src/site-styles/footerLookDefaults.ts
2100
1890
  const defaultFooterLookRecipes = {
2101
1891
  "footer-centred-name": {
@@ -6180,45 +5970,6 @@ z.object({
6180
5970
  authority: styleAuthoritySchema
6181
5971
  }).strict();
6182
5972
  asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
6183
- asPageFlowPresetId("generated-default");
6184
- const southWestTwerkSchoolSiteStyleId = asSiteStyleId("site-style:south-west-twerk-school");
6185
- const heroBrandScrimFixedFrameLookId = asAppearancePresetId("hero-brand-scrim-fixed-frame");
6186
- const classicHeroLayoutVariantKey = asLayoutVariantKey("classic");
6187
- const microHeroLayoutVariantKey = asLayoutVariantKey("micro");
6188
- const waveBoundaryOptionId = asBoundaryOptionId("break:wave");
6189
- const registeredSiteStyleBlockPolicies = [{
6190
- siteStyleId: southWestTwerkSchoolSiteStyleId,
6191
- kind: "locked-look-and-layouts",
6192
- blockKind: "block.hero",
6193
- lookId: heroBrandScrimFixedFrameLookId,
6194
- allowedLayoutVariantKeys: [classicHeroLayoutVariantKey, microHeroLayoutVariantKey],
6195
- defaultLayoutVariantKey: classicHeroLayoutVariantKey,
6196
- defaultBoundaryAfter: {
6197
- optionId: waveBoundaryOptionId,
6198
- mode: "default-only"
6199
- },
6200
- customize: {
6201
- hideDisallowedLooks: true,
6202
- hideDisallowedLayouts: true
6203
- }
6204
- }];
6205
- function deriveSiteStyleBlockPolicy(input) {
6206
- return registeredSiteStyleBlockPolicies.find((policy) => policy.siteStyleId === input.siteStyleId && policy.blockKind === input.blockKind) ?? { kind: "open" };
6207
- }
6208
- function isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) {
6209
- switch (policy.kind) {
6210
- case "open": return true;
6211
- case "locked-look-and-layouts": return policy.allowedLayoutVariantKeys.includes(layoutVariantKey);
6212
- default: return assertNever(policy, "Unhandled site style block policy");
6213
- }
6214
- }
6215
- function normalizeLayoutVariantForPolicy(policy, layoutVariantKey) {
6216
- switch (policy.kind) {
6217
- case "open": return layoutVariantKey ?? null;
6218
- case "locked-look-and-layouts": return layoutVariantKey && isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) ? layoutVariantKey : policy.defaultLayoutVariantKey;
6219
- default: return assertNever(policy, "Unhandled site style block policy");
6220
- }
6221
- }
6222
5973
  /**
6223
5974
  * Curated library of gradient presets.
6224
5975
  * All gradients use theme color tokens, so they adapt to the site's palette.
@@ -7306,6 +7057,26 @@ const folioLooks = {
7306
7057
  treatment: "cta-figure",
7307
7058
  roleMap: folioRoles
7308
7059
  },
7060
+ {
7061
+ id: id("location-map-above-details"),
7062
+ treatment: "map-above",
7063
+ roleMap: folioRoles
7064
+ },
7065
+ {
7066
+ id: id("location-map-beside-address"),
7067
+ treatment: "map-beside",
7068
+ roleMap: folioRoles
7069
+ },
7070
+ {
7071
+ id: id("location-map-address-over-wide-map"),
7072
+ treatment: "map-wide",
7073
+ roleMap: folioRoles
7074
+ },
7075
+ {
7076
+ id: id("location-map-entrance-photo"),
7077
+ treatment: "map-entrance",
7078
+ roleMap: folioRoles
7079
+ },
7309
7080
  {
7310
7081
  id: id("card-list-photos-on-top"),
7311
7082
  treatment: "photos-on-top",
@@ -7644,6 +7415,26 @@ const fulcrumLooks = {
7644
7415
  treatment: "cta-figure",
7645
7416
  roleMap: fulcrumRoles
7646
7417
  },
7418
+ {
7419
+ id: id("location-map-above-details"),
7420
+ treatment: "map-above",
7421
+ roleMap: fulcrumRoles
7422
+ },
7423
+ {
7424
+ id: id("location-map-beside-address"),
7425
+ treatment: "map-beside",
7426
+ roleMap: fulcrumRoles
7427
+ },
7428
+ {
7429
+ id: id("location-map-address-over-wide-map"),
7430
+ treatment: "map-wide",
7431
+ roleMap: fulcrumRoles
7432
+ },
7433
+ {
7434
+ id: id("location-map-entrance-photo"),
7435
+ treatment: "map-entrance",
7436
+ roleMap: fulcrumRoles
7437
+ },
7647
7438
  {
7648
7439
  id: id("card-list-photos-on-top"),
7649
7440
  treatment: "photos-on-top",
@@ -7898,6 +7689,26 @@ const posterOffers = [
7898
7689
  treatment: "cta-figure",
7899
7690
  roleMap: posterRoles
7900
7691
  },
7692
+ {
7693
+ id: id("location-map-above-details"),
7694
+ treatment: "map-above",
7695
+ roleMap: posterRoles
7696
+ },
7697
+ {
7698
+ id: id("location-map-beside-address"),
7699
+ treatment: "map-beside",
7700
+ roleMap: posterRoles
7701
+ },
7702
+ {
7703
+ id: id("location-map-address-over-wide-map"),
7704
+ treatment: "map-wide",
7705
+ roleMap: posterRoles
7706
+ },
7707
+ {
7708
+ id: id("location-map-entrance-photo"),
7709
+ treatment: "map-entrance",
7710
+ roleMap: posterRoles
7711
+ },
7901
7712
  {
7902
7713
  id: id("card-list-photos-on-top"),
7903
7714
  treatment: "photos-on-top",
@@ -8354,7 +8165,27 @@ const lanternLooks = {
8354
8165
  roleMap: lanternRoles
8355
8166
  },
8356
8167
  {
8357
- id: id("card-list-photos-on-top"),
8168
+ id: id("location-map-above-details"),
8169
+ treatment: "map-above",
8170
+ roleMap: lanternRoles
8171
+ },
8172
+ {
8173
+ id: id("location-map-beside-address"),
8174
+ treatment: "map-beside",
8175
+ roleMap: lanternRoles
8176
+ },
8177
+ {
8178
+ id: id("location-map-address-over-wide-map"),
8179
+ treatment: "map-wide",
8180
+ roleMap: lanternRoles
8181
+ },
8182
+ {
8183
+ id: id("location-map-entrance-photo"),
8184
+ treatment: "map-entrance",
8185
+ roleMap: lanternRoles
8186
+ },
8187
+ {
8188
+ id: id("card-list-photos-on-top"),
8358
8189
  treatment: "photos-on-top",
8359
8190
  roleMap: lanternRoles
8360
8191
  }
@@ -8666,6 +8497,26 @@ const measureLooks = {
8666
8497
  treatment: "cta-figure",
8667
8498
  roleMap: measureRoles
8668
8499
  },
8500
+ {
8501
+ id: id("location-map-above-details"),
8502
+ treatment: "map-above",
8503
+ roleMap: measureRoles
8504
+ },
8505
+ {
8506
+ id: id("location-map-beside-address"),
8507
+ treatment: "map-beside",
8508
+ roleMap: measureRoles
8509
+ },
8510
+ {
8511
+ id: id("location-map-address-over-wide-map"),
8512
+ treatment: "map-wide",
8513
+ roleMap: measureRoles
8514
+ },
8515
+ {
8516
+ id: id("location-map-entrance-photo"),
8517
+ treatment: "map-entrance",
8518
+ roleMap: measureRoles
8519
+ },
8669
8520
  {
8670
8521
  id: id("card-list-photos-on-top"),
8671
8522
  treatment: "photos-on-top",
@@ -9600,6 +9451,299 @@ function withPriceLooks(looks, roleMap, featuredRoleMap = roleMap) {
9600
9451
  ]
9601
9452
  };
9602
9453
  }
9454
+ asPageFlowPresetId("generated-default");
9455
+ const southWestTwerkSchoolSiteStyleId = asSiteStyleId("site-style:south-west-twerk-school");
9456
+ const heroBrandScrimFixedFrameLookId = asAppearancePresetId("hero-brand-scrim-fixed-frame");
9457
+ const classicHeroLayoutVariantKey = asLayoutVariantKey("classic");
9458
+ const microHeroLayoutVariantKey = asLayoutVariantKey("micro");
9459
+ const waveBoundaryOptionId = asBoundaryOptionId("break:wave");
9460
+ const registeredSiteStyleBlockPolicies = [{
9461
+ siteStyleId: southWestTwerkSchoolSiteStyleId,
9462
+ kind: "locked-look-and-layouts",
9463
+ blockKind: "block.hero",
9464
+ lookId: heroBrandScrimFixedFrameLookId,
9465
+ allowedLayoutVariantKeys: [classicHeroLayoutVariantKey, microHeroLayoutVariantKey],
9466
+ defaultLayoutVariantKey: classicHeroLayoutVariantKey,
9467
+ defaultBoundaryAfter: {
9468
+ optionId: waveBoundaryOptionId,
9469
+ mode: "default-only"
9470
+ },
9471
+ customize: {
9472
+ hideDisallowedLooks: true,
9473
+ hideDisallowedLayouts: true
9474
+ }
9475
+ }];
9476
+ function deriveSiteStyleBlockPolicy(input) {
9477
+ return registeredSiteStyleBlockPolicies.find((policy) => policy.siteStyleId === input.siteStyleId && policy.blockKind === input.blockKind) ?? { kind: "open" };
9478
+ }
9479
+ function isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) {
9480
+ switch (policy.kind) {
9481
+ case "open": return true;
9482
+ case "locked-look-and-layouts": return policy.allowedLayoutVariantKeys.includes(layoutVariantKey);
9483
+ default: return assertNever(policy, "Unhandled site style block policy");
9484
+ }
9485
+ }
9486
+ function normalizeLayoutVariantForPolicy(policy, layoutVariantKey) {
9487
+ switch (policy.kind) {
9488
+ case "open": return layoutVariantKey ?? null;
9489
+ case "locked-look-and-layouts": return layoutVariantKey && isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) ? layoutVariantKey : policy.defaultLayoutVariantKey;
9490
+ default: return assertNever(policy, "Unhandled site style block policy");
9491
+ }
9492
+ }
9493
+ //#endregion
9494
+ //#region ../theme-core/src/site-styles/effectiveArrangement.ts
9495
+ /** Content stage: legacy Looks leave arrangement to stored intent and defaults. */
9496
+ function resolveEffectiveArrangement(input) {
9497
+ const arrangement = input.look?.structure.byMode[input.mode ?? "default"];
9498
+ if (arrangement !== void 0 && input.manifest.keys.includes(arrangement)) return {
9499
+ kind: "resolved",
9500
+ key: asLayoutVariantKey(arrangement),
9501
+ source: "look"
9502
+ };
9503
+ const stored = validStoredVariant(input.manifest, input.storedVariant);
9504
+ const policyKey = input.policy ? normalizeLayoutVariantForPolicy(input.policy, stored) : stored;
9505
+ if (policyKey && policyKey !== stored) return {
9506
+ kind: "resolved",
9507
+ key: policyKey,
9508
+ source: "policy"
9509
+ };
9510
+ if (stored) return {
9511
+ kind: "resolved",
9512
+ key: stored,
9513
+ source: "stored"
9514
+ };
9515
+ const key = manifestDefaultArrangement(input.manifest);
9516
+ return key === null ? {
9517
+ kind: "none",
9518
+ key: null
9519
+ } : {
9520
+ kind: "resolved",
9521
+ key,
9522
+ source: "manifest-default"
9523
+ };
9524
+ }
9525
+ function validStoredVariant(manifest, stored) {
9526
+ if (stored.kind === "absent") return null;
9527
+ return manifest.keys.includes(stored.key) && !manifest.lookOnlyKeys?.includes(stored.key) ? stored.key : null;
9528
+ }
9529
+ function arrangementManifestFromVariants(manifest) {
9530
+ return {
9531
+ keys: Object.keys(manifest.variants ?? {}),
9532
+ defaultKey: manifest.defaultVariant ?? null,
9533
+ lookOnlyKeys: manifest.variantMeaning?.lookOnlyKeys
9534
+ };
9535
+ }
9536
+ /** A Look-only arrangement is never a default: a block whose only variants are Look-only keeps its plain layout. */
9537
+ function manifestDefaultArrangement(manifest) {
9538
+ const defaults = manifest.keys.filter((key) => !manifest.lookOnlyKeys?.includes(key));
9539
+ const key = manifest.defaultKey !== null && defaults.includes(manifest.defaultKey) ? manifest.defaultKey : defaults[0];
9540
+ return key === void 0 ? null : asLayoutVariantKey(key);
9541
+ }
9542
+ /** A declared secondary axis shares the arrangement rule, without rewriting content. */
9543
+ function resolveModeArrangement(input) {
9544
+ const key = [input.content[input.declaration.arrangementField], input.content.layout].find((value) => typeof value === "string" && input.declaration.keys.includes(value));
9545
+ return resolveEffectiveArrangement({
9546
+ look: input.look,
9547
+ mode: input.mode,
9548
+ storedVariant: key === void 0 ? { kind: "absent" } : {
9549
+ kind: "explicit",
9550
+ key: asLayoutVariantKey(key)
9551
+ },
9552
+ manifest: {
9553
+ keys: [...input.declaration.keys, ...input.declaration.lookOnlyKeys ?? []],
9554
+ defaultKey: input.declaration.defaultKey,
9555
+ lookOnlyKeys: input.declaration.lookOnlyKeys
9556
+ }
9557
+ });
9558
+ }
9559
+ /** Mode is content-owned and independent of the selected Look. */
9560
+ function readStoredMode(manifest, content) {
9561
+ if (manifest.variantMeaning.kind !== "mode") return null;
9562
+ const stored = content.variant;
9563
+ return typeof stored === "string" && manifest.keys.includes(stored) ? stored : manifestDefaultArrangement(manifest);
9564
+ }
9565
+ function resolvePublishedLook(input, visited = /* @__PURE__ */ new Set()) {
9566
+ if (input.audience === "authoring" || visited.has(input.look.id)) return input.look;
9567
+ const fallback = input.look.structure.whenMissing.find((rule) => !input.contentFacts[rule.fact]);
9568
+ const next = input.catalogue.find((entry) => entry.id === fallback?.look && entry.blockKinds.some((kind) => input.look.blockKinds.includes(kind)));
9569
+ return next === void 0 ? input.look : resolvePublishedLook({
9570
+ ...input,
9571
+ look: next
9572
+ }, /* @__PURE__ */ new Set([...visited, input.look.id]));
9573
+ }
9574
+ //#endregion
9575
+ //#region ../theme-core/src/site-styles/lookResolution.ts
9576
+ function lookDefinitionForId(lookId, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
9577
+ return catalogue.find((entry) => entry.id === lookId) ?? null;
9578
+ }
9579
+ /** Validates destination data independently of manifest rollout availability. */
9580
+ function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
9581
+ validateOfferKnobs(style, catalogue);
9582
+ catalogue.forEach((entry) => lookModes(entry).forEach((mode) => {
9583
+ 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
+ }));
9585
+ }
9586
+ function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
9587
+ if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
9588
+ if (style.offers.some((offer) => offer.id === entry.id)) return true;
9589
+ const nextVisited = /* @__PURE__ */ new Set([...visited, entry.id]);
9590
+ return entry.structure.styleFallback.length > 0 && entry.structure.styleFallback.every((fallback) => {
9591
+ const next = lookDefinitionForId(fallback, catalogue);
9592
+ return next !== null && next.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && fallbackEndsAtOffer(next, mode, style, catalogue, nextVisited);
9593
+ });
9594
+ }
9595
+ const arrangementLookHooks = [
9596
+ "data-fact",
9597
+ "data-card-list",
9598
+ "data-card-list-item",
9599
+ "data-availability",
9600
+ "data-event-places",
9601
+ "data-today",
9602
+ "data-other-month",
9603
+ "data-current",
9604
+ "data-skin",
9605
+ "data-look",
9606
+ "data-arrangement",
9607
+ "data-treat",
9608
+ "data-surface",
9609
+ "data-length",
9610
+ "data-knob-*",
9611
+ "data-mode",
9612
+ "data-has-*",
9613
+ "data-photo-count",
9614
+ "data-slot",
9615
+ "data-control",
9616
+ "data-placeholder-field"
9617
+ ];
9618
+ appearancePresets.filter(isArrangementAppearancePreset);
9619
+ /** Closed structural hooks shared by block arrangements and bounded skins. */
9620
+ const arrangementSlotNames = [
9621
+ "contact",
9622
+ "social",
9623
+ "base",
9624
+ "section",
9625
+ "background",
9626
+ "schedule-section",
9627
+ "shop-section",
9628
+ "stack",
9629
+ "inline",
9630
+ "grid",
9631
+ "head",
9632
+ "eyebrow",
9633
+ "heading",
9634
+ "intro",
9635
+ "frame",
9636
+ "copy",
9637
+ "caption",
9638
+ "headline",
9639
+ "lede",
9640
+ "actions",
9641
+ "media",
9642
+ "photo",
9643
+ "gallery",
9644
+ "sticker",
9645
+ "facts",
9646
+ "fact-label",
9647
+ "fact-value",
9648
+ "chips",
9649
+ "chip",
9650
+ "figure",
9651
+ "figure-value",
9652
+ "figure-label",
9653
+ "schedule",
9654
+ "dates",
9655
+ "date-places",
9656
+ "availability",
9657
+ "layout",
9658
+ "items",
9659
+ "item",
9660
+ "lead",
9661
+ "item-media",
9662
+ "item-body",
9663
+ "icon",
9664
+ "numeral",
9665
+ "item-title",
9666
+ "item-text",
9667
+ "item-actions",
9668
+ "list",
9669
+ "row",
9670
+ "row-continued",
9671
+ "group",
9672
+ "group-label",
9673
+ "group-day",
9674
+ "group-date",
9675
+ "date",
9676
+ "weekday",
9677
+ "day",
9678
+ "month",
9679
+ "date-label",
9680
+ "time",
9681
+ "price",
9682
+ "price-amount",
9683
+ "price-unit",
9684
+ "price-note",
9685
+ "mark",
9686
+ "navigation",
9687
+ "time-start",
9688
+ "time-length",
9689
+ "what",
9690
+ "item-meta",
9691
+ "places",
9692
+ "places-low",
9693
+ "places-full",
9694
+ "action",
9695
+ "panel",
9696
+ "panel-heading",
9697
+ "more",
9698
+ "quote",
9699
+ "attribution",
9700
+ "outcome",
9701
+ "controls",
9702
+ "control",
9703
+ "counter"
9704
+ ];
9705
+ /** A style cannot add a detail from another block that would silently do nothing. */
9706
+ function validateOfferKnobs(style, catalogue) {
9707
+ style.offers.forEach((offer) => {
9708
+ const look = lookDefinitionForId(offer.id, catalogue);
9709
+ if (!look) return;
9710
+ [...offer.addKnobs ?? [], ...Object.values(offer.surfaceTints ?? {}).flatMap((tint) => tint?.knob ? [tint.knob] : [])].forEach((knob) => {
9711
+ if (!look.blockKinds.some((block) => Array.isArray(lookKnobBlocks[knob]) ? lookKnobBlocks[knob].includes(block) : block === lookKnobBlocks[knob])) throw new Error(`Invalid knob ${knob} on ${look.id}`);
9712
+ });
9713
+ });
9714
+ }
9715
+ /** One role resolver, including section inheritance and ground-specific overrides. */
9716
+ function resolveItemSurface(role, ground, style) {
9717
+ return resolveSurface(itemSurfaceSpec(role, ground, style), style.context);
9718
+ }
9719
+ /** The declaration selected by a role/ground mapping; shared by preparation and checks. */
9720
+ function itemSurfaceSpec(role, ground, style) {
9721
+ const mapped = style.roleMap[role];
9722
+ const name = typeof mapped === "string" ? mapped : mapped[ground] ?? mapped.default;
9723
+ if (name === "section") return {
9724
+ kind: "paint",
9725
+ paint: { kind: "transparent" }
9726
+ };
9727
+ const spec = style.surfaces[name];
9728
+ if (!spec) throw new Error(`Undeclared item surface ${name}`);
9729
+ return spec;
9730
+ }
9731
+ /** Fixed standalone slots and collection slots share the role resolver. */
9732
+ function resolveLookSlotSurfaces(look, roles, surfaces) {
9733
+ const arrangement = Object.values(look.structure.byMode)[0];
9734
+ const container = arrangement === "compact" ? "panel" : look.target === "events" ? "list" : "items";
9735
+ const entries = [
9736
+ ...Object.entries(look.structure.slotRoles ?? {}).map(([slot, role]) => [slot, surfaces[role]]),
9737
+ ...roles.container ? [[container, surfaces[roles.container]]] : [],
9738
+ ...roles.items ? [
9739
+ ["item", surfaces[roles.items]],
9740
+ ["row", surfaces[roles.items]],
9741
+ ["row-continued", surfaces[roles.items]]
9742
+ ] : [],
9743
+ ...roles.at?.first && arrangement === "lead-support" ? [["lead", surfaces[roles.at.first]]] : []
9744
+ ];
9745
+ return Object.fromEntries(entries);
9746
+ }
9603
9747
  //#endregion
9604
9748
  //#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
9605
9749
  const headerNavTypographyPreferenceValues = [
@@ -9737,751 +9881,4 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
9737
9881
  };
9738
9882
  }
9739
9883
  //#endregion
9740
- //#region ../theme-core/src/responsive/mediaQuery.ts
9741
- /**
9742
- * Convert familiar viewport media queries to container queries when safe.
9743
- * v1 supports simple width-based min/max clauses joined by `and`.
9744
- */
9745
- function convertMediaQueryToContainerQuery(query) {
9746
- const normalized = normalizeMediaQueryPrelude(query);
9747
- if (!normalized) return null;
9748
- if (normalized.includes(",")) return null;
9749
- if (/\bor\b/i.test(normalized)) return null;
9750
- const clauses = splitTopLevelAnd(normalized);
9751
- if (clauses.length === 0) return null;
9752
- const convertedClauses = clauses.map(convertWidthClause);
9753
- if (convertedClauses.some((clause) => clause === null)) return null;
9754
- return convertedClauses.join(" and ");
9755
- }
9756
- function normalizeMediaQueryPrelude(query) {
9757
- let normalized = query.trim();
9758
- if (!normalized) return "";
9759
- normalized = normalized.replace(/^only\s+/i, "").trim();
9760
- if (/^screen\b/i.test(normalized)) {
9761
- normalized = normalized.replace(/^screen\b/i, "").trim();
9762
- normalized = normalized.replace(/^and\b/i, "").trim();
9763
- }
9764
- if (/^all\b/i.test(normalized)) {
9765
- normalized = normalized.replace(/^all\b/i, "").trim();
9766
- normalized = normalized.replace(/^and\b/i, "").trim();
9767
- }
9768
- return normalized;
9769
- }
9770
- function splitTopLevelAnd(input) {
9771
- const parts = [];
9772
- let depth = 0;
9773
- let quote = null;
9774
- let current = "";
9775
- for (let i = 0; i < input.length; i++) {
9776
- const ch = input[i];
9777
- if (quote) {
9778
- current += ch;
9779
- if (ch === quote && input[i - 1] !== "\\") quote = null;
9780
- continue;
9781
- }
9782
- if (ch === "\"" || ch === "'") {
9783
- quote = ch;
9784
- current += ch;
9785
- continue;
9786
- }
9787
- if (ch === "(") {
9788
- depth++;
9789
- current += ch;
9790
- continue;
9791
- }
9792
- if (ch === ")") {
9793
- depth = Math.max(0, depth - 1);
9794
- current += ch;
9795
- continue;
9796
- }
9797
- if (depth === 0 && isAndBoundary(input, i)) {
9798
- const trimmed = current.trim();
9799
- if (trimmed) parts.push(trimmed);
9800
- current = "";
9801
- i += 2;
9802
- continue;
9803
- }
9804
- current += ch;
9805
- }
9806
- const trimmed = current.trim();
9807
- if (trimmed) parts.push(trimmed);
9808
- return parts;
9809
- }
9810
- function isAndBoundary(input, index) {
9811
- if (!input.slice(index, index + 3).match(/^and$/i)) return false;
9812
- const prev = input[index - 1] ?? " ";
9813
- const next = input[index + 3] ?? " ";
9814
- return /\s/.test(prev) && /\s/.test(next);
9815
- }
9816
- function convertWidthClause(clause) {
9817
- const match = clause.match(/^\(\s*(min|max)-width\s*:\s*([^\)]+?)\s*\)$/i);
9818
- if (!match) return null;
9819
- const kindRaw = match[1];
9820
- const valueRaw = match[2];
9821
- if (!kindRaw || !valueRaw) return null;
9822
- const kind = kindRaw.toLowerCase();
9823
- const value = valueRaw.trim();
9824
- if (!value) return null;
9825
- return `(${kind}-width: ${value})`;
9826
- }
9827
- //#endregion
9828
- //#region ../theme-core/src/responsiveMode.ts
9829
- const DEFAULT_THEME_RESPONSIVE_MODE = "viewport";
9830
- const THEME_RESPONSIVE_CONTAINER_NAME = "rb-site";
9831
- const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
9832
- function getResponsiveScopeSpec(mode = DEFAULT_THEME_RESPONSIVE_MODE) {
9833
- if (mode === "container") return {
9834
- kind: "container",
9835
- selector: `[${THEME_RESPONSIVE_MODE_ATTR}="container"]`,
9836
- containerName: THEME_RESPONSIVE_CONTAINER_NAME
9837
- };
9838
- return {
9839
- kind: "viewport",
9840
- selector: `[${THEME_RESPONSIVE_MODE_ATTR}="viewport"]`
9841
- };
9842
- }
9843
- function escapeRegExp(value) {
9844
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
9845
- }
9846
- new RegExp(buildResponsiveScopeRulePatternSource(), "g");
9847
- new RegExp(buildResponsiveScopeRulePatternSource(), "y");
9848
- function buildResponsiveScopeRulePatternSource() {
9849
- return [
9850
- "@scope",
9851
- "\\(\\[",
9852
- escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
9853
- "=\"(?:viewport|container)\"\\]\\)",
9854
- "to",
9855
- "\\((?::scope )?\\[",
9856
- escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
9857
- "\\]\\)",
9858
- "\\{"
9859
- ].join("\\s*");
9860
- }
9861
- const NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES = [
9862
- `min-width: 12rem;`,
9863
- `width: max-content;`,
9864
- `max-width: min(22rem, calc(100vw - 2rem));`,
9865
- `transform: translateX(var(--nav-dropdown-shift-x, 0px));`
9866
- ];
9867
- //#endregion
9868
- //#region ../theme-core/src/header/surfaceRules.ts
9869
- /** Compile the at-rest surface independently of scroll treatment and paint geometry. */
9870
- function buildHeaderSurfaceRules(header, tokens) {
9871
- const base = [];
9872
- const background = header.background;
9873
- if (background.type === "color") base.push(`background-color: ${tokens.getColor(background.color || "surface")};`);
9874
- else if (background.type === "gradient" && background.gradient) {
9875
- const stops = background.gradient.stops.map((stop) => tokens.getColor(stop.color)).join(", ");
9876
- base.push(`background-image: linear-gradient(${background.gradient.angle ?? 180}deg, ${stops});`);
9877
- }
9878
- const borderWidth = getComponentBorderWidthPx(header.border?.width ?? "none");
9879
- if (!header.border || borderWidth === "0") return {
9880
- base,
9881
- border: []
9882
- };
9883
- const color = rgbColorValue(header.border.colorToken?.trim() || "border");
9884
- const style = header.border.style === "dashed" ? "dashed" : "solid";
9885
- return {
9886
- base,
9887
- border: header.border.position === "both" ? [`border-top: ${borderWidth} ${style} ${color};`, `border-bottom: ${borderWidth} ${style} ${color};`] : [`border-${header.border.position}: ${borderWidth} ${style} ${color};`]
9888
- };
9889
- }
9890
- //#endregion
9891
- //#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
9892
- function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
9893
- const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
9894
- if (!style) {
9895
- console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
9896
- return "";
9897
- }
9898
- return generateNavLinkCSS({
9899
- themeId,
9900
- tokens,
9901
- theme,
9902
- style: mergeHeaderNavTypographyPreference(style, {
9903
- typography: header.navFontRole ?? "inherit",
9904
- fontSize: readHeaderNavFontSizePreference(header.navTextSize),
9905
- interactionPalette: header.interactionPalette ?? "recommended"
9906
- }),
9907
- className: "header-nav-link",
9908
- surfaceDependent: true,
9909
- surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
9910
- });
9911
- }
9912
- //#endregion
9913
- //#region ../theme-core/src/header/generateHeaderLogoStyles.ts
9914
- function generateHeaderLogoStyles(input) {
9915
- const { logo, themeId, tokens } = input;
9916
- return `\n${`:where([data-theme-scope="${themeId}"]) .header-logo-text`} {\n ${[
9917
- ...logoTextColorRules(input),
9918
- logo?.fontFamily === "body" ? "font-family: var(--font-body);" : "font-family: var(--font-heading);",
9919
- ...logoLetterSpacingRules(logo),
9920
- ...logoGradientRules(logo, tokens),
9921
- ...logoContrastRules(input)
9922
- ].join("\n ")}\n}\n${mobilePanelLogoColor(input)}`;
9923
- }
9924
- function mobilePanelLogoColor(input) {
9925
- if (input.logo?.gradient) return "";
9926
- const { themeId, tokens, textColor, fallbackTextColor } = input;
9927
- const fallback = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
9928
- return `\n${`:where([data-theme-scope="${themeId}"]) .nav-mobile-panel .header-logo-text`},\n${`:where(.nav-mobile-panel[data-theme-scope="${themeId}"]) .header-logo-text`} {\n color: ${surfaceForegroundValue("text", fallback)};\n}\n`;
9929
- }
9930
- function logoTextColorRules(input) {
9931
- const { logo, textColor, fallbackTextColor, tokens, useSurfaceTextColor } = input;
9932
- if (logo?.gradient || !textColor && !useSurfaceTextColor) return [];
9933
- const authoredColor = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
9934
- return [`color: ${useSurfaceTextColor ? surfaceForegroundValue("text", authoredColor) : authoredColor};`];
9935
- }
9936
- function logoLetterSpacingRules(logo) {
9937
- const spacing = logo?.letterSpacing;
9938
- if (!spacing || spacing === "normal") return [];
9939
- return [`letter-spacing: ${{
9940
- wide: "0.05em",
9941
- wider: "0.1em",
9942
- widest: "0.15em"
9943
- }[spacing]};`];
9944
- }
9945
- function logoGradientRules(logo, tokens) {
9946
- if (!logo?.gradient) return [];
9947
- return [
9948
- `background: linear-gradient(to right, ${tokens.getColor("primary")}, ${tokens.getColor("accent")});`,
9949
- "-webkit-background-clip: text;",
9950
- "-webkit-text-fill-color: transparent;",
9951
- "background-clip: text;",
9952
- "color: transparent;"
9953
- ];
9954
- }
9955
- function logoContrastRules(input) {
9956
- if (input.logo?.gradient || input.useSurfaceTextColor) return [];
9957
- const colorToken = input.textColor?.trim() || input.fallbackTextColor?.trim() || "text";
9958
- const shadow = buildTextContrastShadow({
9959
- theme: input.theme,
9960
- colorToken,
9961
- treatment: input.contrastTreatment
9962
- });
9963
- return shadow ? [`text-shadow: ${shadow};`] : [];
9964
- }
9965
- //#endregion
9966
- //#region ../theme-core/src/header/generateHeaderCss.ts
9967
- const HEADER_BLUR = "blur(12px)";
9968
- const FLOATING_BLUR = "blur(16px)";
9969
- /**
9970
- * Generate complete CSS for header system from theme config
9971
- *
9972
- * Similar to button system - generates theme-scoped CSS using [data-theme-scope] selector
9973
- */
9974
- function generateHeaderCss(options) {
9975
- const { themeId, theme, responsiveMode = DEFAULT_THEME_RESPONSIVE_MODE } = options;
9976
- const tokens = new TokenResolver(theme);
9977
- const header = theme.header;
9978
- const cssChunks = [];
9979
- const headerContrastTreatment = resolveHeaderContrastTreatment(header);
9980
- const headerNavTextSize = resolveHeaderNavTextSize(header);
9981
- cssChunks.push(generateHeaderRootStyles(header, themeId, tokens));
9982
- cssChunks.push(generateMobileOverlayBackdropFilterFix(themeId, header.variant));
9983
- cssChunks.push(generateHeaderLogoStyles({
9984
- logo: header.logo,
9985
- themeId,
9986
- tokens,
9987
- theme,
9988
- textColor: header.textColor,
9989
- fallbackTextColor: header.navLinkStyle?.colorToken,
9990
- contrastTreatment: headerContrastTreatment ?? void 0,
9991
- useSurfaceTextColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
9992
- }));
9993
- cssChunks.push(generateLogoTextBehaviorStyles(header.logoText, themeId));
9994
- cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
9995
- cssChunks.push(generateDropdownContainerStyles(header, themeId, tokens, theme));
9996
- cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme));
9997
- cssChunks.push(generateDropdownCaretStyles(themeId));
9998
- cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
9999
- cssChunks.push(generateMobilePanelStyles(header, themeId, tokens, theme));
10000
- if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens, responsiveMode));
10001
- cssChunks.push(generateNavContainerStyles(header, themeId, tokens));
10002
- cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
10003
- cssChunks.push(generateCtaGapStyles(header, themeId));
10004
- return cssChunks.filter(Boolean).join("\n\n");
10005
- }
10006
- function resolveHeaderContrastTreatment(header) {
10007
- if (header.navLinkStyle?.contrastTreatment) return header.navLinkStyle.contrastTreatment;
10008
- return isClearSplitHeaderShape(header) ? "soft-glow" : null;
10009
- }
10010
- function resolveHeaderNavTextSize(header) {
10011
- if (header.navLinkStyle?.textSize) return header.navLinkStyle.textSize;
10012
- return isClearSplitHeaderShape(header) ? "lg" : null;
10013
- }
10014
- function isClearSplitHeaderShape(header) {
10015
- const hasSharedFloatingSurface = Boolean(header.container);
10016
- return header.variant === "floating" && (header.navStyle ?? "minimal") === "minimal" && !hasSharedFloatingSurface;
10017
- }
10018
- function isDetachedFloatingHeaderShape(header) {
10019
- return header.variant === "floating" && !header.container;
10020
- }
10021
- /**
10022
- * Generate root header container styles
10023
- */
10024
- function generateHeaderRootStyles(header, themeId, tokens) {
10025
- const selector = `:where([data-theme-scope="${themeId}"]) .header-root`;
10026
- const rules = [];
10027
- const isContainedNav = headerRootPaint(header) === "contained-nav";
10028
- rules.push("position: relative;");
10029
- rules.push("isolation: isolate;");
10030
- const surfaceRules = isContainedNav ? {
10031
- base: [],
10032
- border: []
10033
- } : buildHeaderSurfaceRules(header, tokens);
10034
- const floatingSurfaceBorder = header.variant === "floating";
10035
- if (!floatingSurfaceBorder) rules.push(...surfaceRules.border);
10036
- const basePaintRules = floatingSurfaceBorder ? [...surfaceRules.base, ...surfaceRules.border] : surfaceRules.base;
10037
- const scrolledPaintRules = floatingSurfaceBorder ? surfaceRules.border : [];
10038
- if (header.positioning === "sticky" || header.positioning === "fixed") {
10039
- const shadowVar = getComponentShadowVar(header.shadow?.elevation ?? "none");
10040
- if (shadowVar) rules.push(`box-shadow: ${shadowVar};`);
10041
- }
10042
- const baseBlock = `\n${selector} {\n ${rules.join("\n ")}\n}\n`;
10043
- const overlayFix = `\n${`${selector}:has([data-nav-mobile-overlay][aria-hidden="false"])`} {\n backdrop-filter: none !important;\n -webkit-backdrop-filter: none !important;\n}\n`;
10044
- const scrollTreatmentStyles = generateHeaderScrollTreatmentStyles(header.scrollTreatment, themeId, header.variant, scrolledPaintRules);
10045
- if (isContainedNav || basePaintRules.length === 0) return `${baseBlock}\n${overlayFix}${scrollTreatmentStyles}`;
10046
- return `${baseBlock}\n${renderHeaderPaintTargetRules(getHeaderPaintTargets(header.variant, themeId), basePaintRules)}\n${overlayFix}${scrollTreatmentStyles}`;
10047
- }
10048
- function generateLogoTextBehaviorStyles(logoText, themeId) {
10049
- if (!logoText) return "";
10050
- const selector = `:where([data-theme-scope="${themeId}"]) .header-logo-text`;
10051
- const cssChunks = [];
10052
- const mobileRules = [];
10053
- if (logoText.mobileWrapLines === 1) {
10054
- mobileRules.push("display: block;");
10055
- mobileRules.push("white-space: nowrap;");
10056
- mobileRules.push("overflow: hidden;");
10057
- mobileRules.push("text-overflow: ellipsis;");
10058
- }
10059
- if (logoText.mobileWrapLines === 2) {
10060
- mobileRules.push("display: -webkit-box;");
10061
- mobileRules.push("-webkit-box-orient: vertical;");
10062
- mobileRules.push("-webkit-line-clamp: 2;");
10063
- mobileRules.push("white-space: normal;");
10064
- mobileRules.push("overflow: hidden;");
10065
- mobileRules.push("text-overflow: ellipsis;");
10066
- }
10067
- if (logoText.mobileMaxWidth) mobileRules.push(`max-width: ${{
10068
- xs: "8rem",
10069
- sm: "10rem",
10070
- md: "12rem"
10071
- }[logoText.mobileMaxWidth]};`);
10072
- if (mobileRules.length > 0) cssChunks.push(`@media ${MQ_MD_DOWN} {\n ${selector} {\n ${mobileRules.join("\n ")}\n }\n}`);
10073
- if (logoText.hideOnShrink) {
10074
- const shrinkSelector = `:where([data-theme-scope="${themeId}"]) .rb-header-shrink.header-scrolled .header-logo-text`;
10075
- cssChunks.push(`\n${shrinkSelector} {\n display: none;\n}\n`);
10076
- }
10077
- return cssChunks.join("\n\n");
10078
- }
10079
- /**
10080
- * Generate dropdown menu container styles
10081
- */
10082
- function generateDropdownContainerStyles(header, themeId, tokens, theme) {
10083
- const selector = `:where([data-theme-scope="${themeId}"]) .nav-dropdown-menu`;
10084
- const rules = [];
10085
- const dropdownStyle = header.dropdownStyle;
10086
- rules.push(...NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES);
10087
- const surface = resolveDropdownSurface(header, theme);
10088
- rules.push(`background-color: ${tokens.getColor(surface.backgroundToken)};`);
10089
- rules.push(...surface.declarations(tokens));
10090
- const borderToken = dropdownStyle?.borderColor;
10091
- if (borderToken === null) rules.push(`border: none;`);
10092
- else rules.push(`border: 1px solid ${tokens.getColor(borderToken ?? "border")};`);
10093
- const shadowVar = getComponentShadowVar(dropdownStyle?.shadow ?? "md");
10094
- if (shadowVar) rules.push(`box-shadow: ${shadowVar};`);
10095
- const borderRadius = dropdownStyle?.borderRadius ?? "md";
10096
- rules.push(`border-radius: ${{
10097
- none: "0",
10098
- sm: "0.25rem",
10099
- md: "0.5rem",
10100
- lg: "0.75rem"
10101
- }[borderRadius]};`);
10102
- rules.push(`padding: 0.5rem 0;`);
10103
- return `\n${selector} {\n ${rules.join("\n ")}\n}\n`;
10104
- }
10105
- function generateDropdownLinkStyles(header, themeId, tokens, theme) {
10106
- const configuredDropdownStyle = header.dropdownStyle;
10107
- const textColorToken = resolveDropdownSurface(header, theme).textToken;
10108
- const hoverBgToken = configuredDropdownStyle?.hoverBackground ?? textColorToken;
10109
- const hoverEffects = {
10110
- hover: hoverBgToken === null ? [] : [{
10111
- effectId: "background-on-hover-alpha",
10112
- options: {
10113
- colorToken: hoverBgToken,
10114
- opacity: 12
10115
- }
10116
- }],
10117
- active: hoverBgToken === null ? [] : [{
10118
- effectId: "background-on-hover-alpha",
10119
- options: {
10120
- colorToken: hoverBgToken,
10121
- opacity: 18
10122
- }
10123
- }]
10124
- };
10125
- if (configuredDropdownStyle?.hoverTextColor) {
10126
- hoverEffects.hover?.push({
10127
- effectId: "text-color-change",
10128
- options: { hoverColorToken: configuredDropdownStyle.hoverTextColor }
10129
- });
10130
- hoverEffects.active?.push({
10131
- effectId: "text-color-change",
10132
- options: { hoverColorToken: configuredDropdownStyle.hoverTextColor }
10133
- });
10134
- }
10135
- const baseCSS = generateNavLinkCSS({
10136
- themeId,
10137
- tokens,
10138
- theme,
10139
- style: {
10140
- name: "Dropdown",
10141
- typography: "body",
10142
- fontWeight: configuredDropdownStyle?.fontWeight ?? header.navWeight ?? "medium",
10143
- textTransform: configuredDropdownStyle?.textTransform ?? "none",
10144
- italic: false,
10145
- colorToken: textColorToken,
10146
- padding: "compact",
10147
- borderRadius: "sm",
10148
- effects: hoverEffects
10149
- },
10150
- className: "nav-dropdown-link"
10151
- });
10152
- const additionalRules = [];
10153
- const letterSpacing = configuredDropdownStyle?.letterSpacing ?? "normal";
10154
- if (letterSpacing !== "normal") additionalRules.push(`letter-spacing: ${{
10155
- normal: "0em",
10156
- wide: "0.05em",
10157
- wider: "0.1em"
10158
- }[letterSpacing]};`);
10159
- const textSize = configuredDropdownStyle?.textSize ?? "sm";
10160
- additionalRules.push(`font-size: ${{
10161
- xs: "0.75rem",
10162
- sm: "0.875rem",
10163
- base: "1rem",
10164
- lg: "1.125rem"
10165
- }[textSize]};`);
10166
- if (additionalRules.length > 0) return baseCSS + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${additionalRules.join("\n ")}\n}\n`;
10167
- return baseCSS;
10168
- }
10169
- function generateDropdownCaretStyles(themeId) {
10170
- return `
10171
- ${`:where([data-theme-scope="${themeId}"]) .nav-caret`} {
10172
- width: 0.45rem;
10173
- height: 0.45rem;
10174
- margin-left: 0.5rem;
10175
- border-right: 2px solid currentColor;
10176
- border-bottom: 2px solid currentColor;
10177
- transform: rotate(45deg) translateY(-1px);
10178
- transition: transform 150ms ease;
10179
- }
10180
-
10181
- ${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-trigger[aria-expanded="true"] .nav-caret, :where([data-theme-scope="${themeId}"]) .nav-mobile-trigger[aria-expanded="true"] .nav-caret`} {
10182
- transform: rotate(-135deg) translateY(1px);
10183
- }
10184
- `.trim();
10185
- }
10186
- function generateDropdownTriggerOverrides(header, themeId) {
10187
- const navStyle = header.navStyle ?? "minimal";
10188
- if (navStyle !== "underline" && navStyle !== "underline-grow") return "";
10189
- return `
10190
- ${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-trigger.header-nav-link::after`} {
10191
- content: none;
10192
- }
10193
- `.trim();
10194
- }
10195
- /**
10196
- * The dropdown menu and mobile panel share one surface: `dropdownStyle`'s
10197
- * background, with the text candidate (the dropdown's own colour, then the
10198
- * header's nav colour) validated against it through the surface contract. The
10199
- * nav colour is chosen for the header bar, which can be dark or transparent,
10200
- * so it only carries over when it is legible on the menu too.
10201
- */
10202
- function resolveDropdownSurface(header, theme) {
10203
- const backgroundToken = header.dropdownStyle?.background ?? "surface";
10204
- const candidate = header.dropdownStyle?.textColor ?? ((header.navColor ?? header.textColor)?.trim() || "text");
10205
- const foreground = resolveSurfaceForeground({
10206
- type: "color",
10207
- color: backgroundToken,
10208
- textColor: candidate
10209
- }, expandPalette(theme.palette));
10210
- return {
10211
- backgroundToken,
10212
- textToken: foreground.kind === "known" ? foreground.roles.text : candidate,
10213
- declarations: (tokens) => foreground.kind === "known" ? surfaceForegroundDeclarations(surfaceForegroundInputFromResolved(foreground, (token) => tokens.getColor(token))) : [`color: ${tokens.getColor(candidate)};`]
10214
- };
10215
- }
10216
- /**
10217
- * Generate mobile navigation panel styles
10218
- * Uses the same dropdownStyle settings as the desktop dropdown menus
10219
- */
10220
- function generateMobilePanelStyles(header, themeId, tokens, theme) {
10221
- const selector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-panel`;
10222
- const selfSelector = `:where(.nav-mobile-panel[data-theme-scope="${themeId}"])`;
10223
- const surface = resolveDropdownSurface(header, theme);
10224
- const body = renderCssDeclarations([`background-color: ${tokens.getColor(surface.backgroundToken)};`, ...surface.declarations(tokens)]);
10225
- return `\n${selector} {\n ${body}\n}\n\n${selfSelector} {\n ${body}\n}\n`;
10226
- }
10227
- /**
10228
- * Generate nav container styles (pill/glass)
10229
- */
10230
- function generateNavContainerStyles(header, themeId, tokens) {
10231
- const navContainer = header.navContainer;
10232
- const navContainerType = navContainer?.type ?? "none";
10233
- if (!navContainer || navContainerType === "none") return "";
10234
- const selector = `:where([data-theme-scope="${themeId}"]) .header-nav-row`;
10235
- const rules = [];
10236
- if (navContainerType === "pill" || navContainerType === "glass") {
10237
- rules.push("padding: 0.5rem 0.75rem;");
10238
- rules.push("border-radius: 9999px;");
10239
- rules.push("display: inline-flex;");
10240
- rules.push("align-items: center;");
10241
- rules.push("gap: 1.5rem;");
10242
- if (isDetachedFloatingHeaderShape(header)) rules.push("align-self: flex-start;");
10243
- }
10244
- if (navContainerType === "glass") {
10245
- const opacity = resolveFloatingGlassOpacity(header, navContainer.opacity, .15);
10246
- const background = navContainer.tint ? buildTint(tokens.getColor(navContainer.tint), opacity) : buildRgbWhite(opacity);
10247
- rules.push(`background-color: ${background};`);
10248
- rules.push(`backdrop-filter: ${HEADER_BLUR};`);
10249
- rules.push(`-webkit-backdrop-filter: ${HEADER_BLUR};`);
10250
- rules.push("border: 1px solid rgba(255, 255, 255, 0.2);");
10251
- rules.push("box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);");
10252
- } else if (navContainerType === "pill") {
10253
- const opacity = clampOpacity(navContainer.opacity, .15);
10254
- if (navContainer.tint) rules.push(`background-color: ${buildTint(tokens.getColor(navContainer.tint), opacity)};`);
10255
- else rules.push(`background-color: ${tokens.getColor("surface")};`);
10256
- rules.push(`border: 1px solid ${tokens.getColor("border")};`);
10257
- }
10258
- if (rules.length > 0) return `${selector} { ${rules.join(" ")} }`;
10259
- return "";
10260
- }
10261
- /**
10262
- * Generate floating container styles
10263
- */
10264
- function generateFloatingContainerStyles(header, themeId, tokens, responsiveMode) {
10265
- const container = header.container;
10266
- if (!container) return "";
10267
- const selector = `:where([data-theme-scope="${themeId}"]) .header-floating-container`;
10268
- const rules = [];
10269
- const opacity = container.tint === "surface" ? resolveFloatingGlassOpacity(header, container.opacity, .12) : clampOpacity(container.opacity, .12);
10270
- if (container.tint) rules.push(`background-color: ${buildTint(tokens.getColor(container.tint), opacity)};`);
10271
- else rules.push(`background-color: ${buildRgbWhite(opacity)};`);
10272
- rules.push(`backdrop-filter: ${FLOATING_BLUR};`);
10273
- rules.push(`-webkit-backdrop-filter: ${FLOATING_BLUR};`);
10274
- if (container.border) rules.push(`border: 1px solid rgb(255 255 255 / 0.2);`);
10275
- rules.push(`border-radius: ${{
10276
- none: "0",
10277
- sm: "0.375rem",
10278
- md: "0.5rem",
10279
- lg: "0.75rem",
10280
- xl: "1rem",
10281
- "2xl": "1.5rem"
10282
- }[container.rounded]};`);
10283
- if (container.shadow) rules.push(`box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);`);
10284
- rules.push(`padding: ${{
10285
- sm: "1rem 1.5rem",
10286
- md: "1.5rem 2rem",
10287
- lg: "2rem 2.5rem"
10288
- }[container.padding]};`);
10289
- return `\n${selector} {\n ${rules.join("\n ")}\n}\n${generateFrameMobileSheetStyles(container, themeId, rules, responsiveMode)}`;
10290
- }
10291
- /** The frame owner explicitly opts into an inset sheet on phones. */
10292
- function generateFrameMobileSheetStyles(container, themeId, rules, responsiveMode) {
10293
- if (container.mobileSheet !== "inset") return "";
10294
- return `
10295
- ${phoneAtRule(responsiveMode)} {
10296
- :where([data-theme-scope="${themeId}"]) .header-mobile-bar {
10297
- ${rules.join("\n ")}
10298
- box-sizing: border-box; margin: 12px; width: calc(100% - 24px); min-height: 60px; padding: 10px 16px; align-items: center;
10299
- }
10300
- }`;
10301
- }
10302
- /** The phone breakpoint as a viewport media query, or the site container query in container mode. */
10303
- function phoneAtRule(responsiveMode) {
10304
- const containerQuery = responsiveMode === "container" ? convertMediaQueryToContainerQuery(MQ_MD_DOWN) : null;
10305
- return containerQuery ? `@container ${THEME_RESPONSIVE_CONTAINER_NAME} ${containerQuery}` : `@media ${MQ_MD_DOWN}`;
10306
- }
10307
- /**
10308
- * CTA gap value map — controls left margin on the desktop CTA button
10309
- */
10310
- const HEADER_CTA_GAP_MAP = {
10311
- none: "0",
10312
- tight: "0.5rem",
10313
- compact: "1rem",
10314
- default: "1.5rem",
10315
- relaxed: "2rem",
10316
- spacious: "3rem"
10317
- };
10318
- /**
10319
- * The inverted CTA treatment is contextual to branded header surfaces. It
10320
- * cannot be represented by the generic secondary button role alone because
10321
- * that role is transparent and inherits the surrounding surface foreground.
10322
- * Keep the shared button's structure/effects while making the header own the
10323
- * palette relationship for both desktop and mobile CTAs.
10324
- */
10325
- function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
10326
- if (header.ctaTreatment !== "inverted") return "";
10327
- const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
10328
- const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
10329
- const selectors = `${desktopSelector},\n${mobileSelector}`;
10330
- const hoverSelectors = [
10331
- `${desktopSelector}:hover`,
10332
- `${desktopSelector}[data-force-hover="true"]`,
10333
- `${mobileSelector}:hover`,
10334
- `${mobileSelector}[data-force-hover="true"]`
10335
- ].join(",\n");
10336
- const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
10337
- return `
10338
- ${selectors} {
10339
- background-color: ${tokens.getColor("background")};
10340
- background-image: none;
10341
- color: ${tokens.getColor("onBackground")};
10342
- border-color: currentColor;
10343
- }
10344
-
10345
- ${hoverSelectors} {
10346
- background-color: ${tokens.getColor("surface")};
10347
- background-image: none;
10348
- color: ${tokens.getColor("onSurface")};
10349
- }
10350
-
10351
- ${focusSelectors} {
10352
- outline: 2px solid ${tokens.getColor("onBackground")};
10353
- outline-offset: 2px;
10354
- box-shadow: 0 0 0 4px ${tokens.getColor("background")};
10355
- }
10356
- `;
10357
- }
10358
- /**
10359
- * Generate CTA button gap styles (left margin between nav links and CTA)
10360
- */
10361
- function generateCtaGapStyles(header, themeId) {
10362
- if (!header.ctaGap) return "";
10363
- const value = HEADER_CTA_GAP_MAP[header.ctaGap];
10364
- if (!value) return "";
10365
- return `\n${`:where([data-theme-scope="${themeId}"]) .header-cta`} {\n margin-left: ${value};\n}\n`;
10366
- }
10367
- function clampOpacity(value, fallback) {
10368
- if (typeof value !== "number" || Number.isNaN(value)) return fallback;
10369
- return Math.min(Math.max(value, 0), 1);
10370
- }
10371
- function resolveFloatingGlassOpacity(header, value, fallback) {
10372
- const opacity = clampOpacity(value, fallback);
10373
- return header.variant === "floating" ? Math.max(opacity, .4) : opacity;
10374
- }
10375
- function buildTint(color, opacity) {
10376
- return applyAlpha(color, opacity);
10377
- }
10378
- function buildRgbWhite(opacity) {
10379
- return `rgb(255 255 255 / ${clampOpacity(opacity, 1)})`;
10380
- }
10381
- function applyAlpha(color, opacity) {
10382
- const clamped = clampOpacity(opacity, 1);
10383
- if (color.startsWith("rgb(") && color.endsWith(")")) {
10384
- const inner = color.slice(4, -1).trim();
10385
- return `rgb(${inner.includes("/") ? (inner.split("/")[0] ?? inner).trim() : inner} / ${clamped})`;
10386
- }
10387
- return color;
10388
- }
10389
- //#endregion
10390
- //#region ../theme-core/src/siteChromePlacement.ts
10391
- const SITE_CHROME_PLACEMENT_CLASSES = [
10392
- "rb-sticky",
10393
- "rb-fixed",
10394
- "rb-absolute",
10395
- "rb-relative",
10396
- "rb-top-0",
10397
- "rb-left-0",
10398
- "rb-right-0",
10399
- "rb-bottom-0",
10400
- "rb-z-40",
10401
- "rb-z-50"
10402
- ];
10403
- const HEADER_POSITIONINGS = [
10404
- "static",
10405
- "sticky",
10406
- "fixed"
10407
- ];
10408
- function parseHeaderPositioning(value) {
10409
- return isHeaderPositioning(value) ? value : "static";
10410
- }
10411
- function isHeaderPositioning(value) {
10412
- return typeof value === "string" && HEADER_POSITIONINGS.includes(value);
10413
- }
10414
- function planSiteChromePlacement(positioning) {
10415
- switch (positioning) {
10416
- case "static": return {
10417
- kind: "static",
10418
- headerRootClassName: null,
10419
- standaloneShellClassName: null
10420
- };
10421
- case "sticky": return {
10422
- kind: "sticky",
10423
- headerRootClassName: "rb-sticky rb-top-0",
10424
- standaloneShellClassName: "sticky top-0 z-40 w-full"
10425
- };
10426
- case "fixed": return {
10427
- kind: "fixed",
10428
- headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
10429
- standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
10430
- };
10431
- default: return assertNever(positioning);
10432
- }
10433
- }
10434
- function splitSiteChromePlacementClasses(className) {
10435
- if (!className) return {
10436
- wrapperClasses: "",
10437
- sectionClasses: ""
10438
- };
10439
- const placementClasses = new Set(SITE_CHROME_PLACEMENT_CLASSES);
10440
- const wrapperParts = [];
10441
- const sectionParts = [];
10442
- for (const cls of className.split(/\s+/).filter(Boolean)) if (placementClasses.has(cls)) wrapperParts.push(cls);
10443
- else sectionParts.push(cls);
10444
- return {
10445
- wrapperClasses: wrapperParts.join(" "),
10446
- sectionClasses: sectionParts.join(" ")
10447
- };
10448
- }
10449
- //#endregion
10450
- //#region ../theme-core/src/responsiveDisplay.ts
10451
- const BASE_DISPLAY_CLASSES = {
10452
- block: "rb-block",
10453
- flex: "rb-flex",
10454
- "inline-block": "rb-inline-block",
10455
- "inline-flex": "rb-inline-flex",
10456
- grid: "rb-grid"
10457
- };
10458
- const LARGE_DISPLAY_CLASSES = {
10459
- block: "rb-lg-block",
10460
- flex: "rb-lg-flex",
10461
- "inline-block": "rb-lg-inline-block",
10462
- "inline-flex": "rb-lg-inline-flex",
10463
- grid: "rb-lg-grid"
10464
- };
10465
- /**
10466
- * Build a class pair for content that should render below the large breakpoint.
10467
- *
10468
- * The base display class is always included so callers cannot accidentally
10469
- * express "mobile-only" visibility without a display mode for the visible state.
10470
- */
10471
- function mobileOnlyDisplay(display) {
10472
- return `${BASE_DISPLAY_CLASSES[display]} rb-lg-hidden`;
10473
- }
10474
- /**
10475
- * Build a class pair for content that should render from the large breakpoint up.
10476
- *
10477
- * The hidden base class ensures the element stays out of the mobile layout until
10478
- * the large-breakpoint display class takes over.
10479
- */
10480
- function desktopOnlyDisplay(display) {
10481
- return `rb-hidden ${LARGE_DISPLAY_CLASSES[display]}`;
10482
- }
10483
- //#endregion
10484
- //#region ../theme-core/src/siteChromeOverlayClearance.ts
10485
- const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
10486
- //#endregion
10487
- export { arrangementLookHooks as A, anglePolygonCss as B, getGradientPreset as C, generatedDesignOptionCatalog as D, normalizeLayoutVariantForPolicy as E, pageDesignDecisionsV2Schema as F, cardListFamilyBlocks as G, gradientScrimSamples as H, pageDesignIntentV1Schema as I, cardListKnobBlocks as K, pageDesignIntentV2Schema as L, resolveItemSurface as M, resolveLookSlotSurfaces as N, generateFooterCss as O, normalizeLegacyPageDesignIntent as P, headerRootPaint as R, gradientToCss as S, deriveSiteStyleBlockPolicy as T, scrimTone as U, transitionCatalogueEntries as V, resolveEffectiveKnobs as W, headerNavFontSizePreferenceValues as _, planSiteChromePlacement as a, requireCuratedSiteStyle as b, DEFAULT_THEME_RESPONSIVE_MODE as c, convertMediaQueryToContainerQuery as d, headerForegroundCandidates as f, defaultHeaderNavPreferences as g, readOpeningForegroundProjection as h, parseHeaderPositioning as i, arrangementSlotNames as j, footerForegroundCandidates as k, THEME_RESPONSIVE_CONTAINER_NAME as l, transparentHeaderForegroundInput as m, desktopOnlyDisplay as n, splitSiteChromePlacementClasses as o, headerLeafTextColor as p, mobileOnlyDisplay as r, generateHeaderCss as s, SITE_CHROME_VISIBLE_HEADER_ATTR as t, getResponsiveScopeSpec as u, headerNavTypographyPreferenceValues as v, parseGradientPresetId as w, compiledRuntimeStyleFieldNames as x, curatedSiteStyleIdValues as y, boundaryRuntimeMetricsForDecorativeTransition as z };
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 };