@riverbankcms/sdk 0.159.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 (218) hide show
  1. package/README.md +4 -4
  2. package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-Bx4kLiTA.d.ts} +1 -1
  3. package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-Dm7_P13o.d.ts} +217 -8
  4. package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-D7HdWWwF.d.ts} +55 -127
  5. package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
  6. package/dist/_dts/{client-BOK-YHVJ.d.ts → client-Ep0jI9eE.d.ts} +1 -1
  7. package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-BgAzCrBc.d.ts} +18 -18
  8. package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-DUiOnj9e.d.ts} +10 -6
  9. package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-B-uXamTG.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-BDkZYEcS.d.ts} +2 -2
  11. package/dist/_dts/index-BQDBQvdu.d.ts +13 -0
  12. package/dist/_dts/index-BVkP8f70.d.ts +66 -0
  13. package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CF6Cjs7b.d.ts} +2 -2
  14. package/dist/_dts/{index-Ci1PEk82.d.ts → index-CSsfq6KG.d.ts} +3 -17
  15. package/dist/_dts/{index-BZ4fb2zz.d.ts → index-D_8uz4OP.d.ts} +3 -3
  16. package/dist/_dts/{index-CcaG6O13.d.ts → index-DvKQA6AZ.d.ts} +4 -4
  17. package/dist/_dts/{index-DMOfW1A7.d.ts → index-KPrWM0KF.d.ts} +2 -2
  18. package/dist/_dts/{index-DzUdUaJ-.d.ts → index-ylivB7Jj.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-DTjKOO-T.d.ts} +19 -10
  20. package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-C1vA5c5w.d.ts} +2 -2
  21. package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
  22. package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-BHu0PYWl.d.ts} +25911 -23567
  23. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  25. package/dist/_dts/sdk/src/client.d.ts +13 -7
  26. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  27. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
  42. package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  45. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  47. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  48. package/dist/_dts/sdk/src/server.d.ts +5 -5
  49. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  50. package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
  51. package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-BR1Yboa9.d.ts} +15530 -16017
  52. package/dist/_dts/{types-CMFIZGUI.d.ts → types-CJXTCF_F.d.ts} +10 -13
  53. package/dist/_dts/{types-CI9dYWJ8.d.ts → types-D02ngcUH.d.ts} +4 -2
  54. package/dist/_dts/{types--oWXIfyz.d.ts → types-ZGUiHpDE.d.ts} +7 -7
  55. package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-BaV565gb.d.ts} +4 -4
  56. package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DTExCJsb.mjs} +22 -21
  57. package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-BDpxmn1p.mjs} +2 -2
  58. package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-PeCiL82X.mjs} +6 -6
  59. package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-DWexRLf6.mjs} +1 -1
  60. package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-3zmIqakW.mjs} +6 -6
  61. package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-GHi-8BW5.mjs} +1 -1
  62. package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BxQLY5cX.mjs} +10 -9
  63. package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-B5bmQ03b.mjs} +8 -8
  64. package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-CgMZ9TeU.mjs} +1 -1
  65. package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-BEx-qiDE.mjs} +11 -6
  66. package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-CyH5tA6Y.mjs} +1 -1
  67. package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-D3uySdGP.mjs} +3 -3
  68. package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-9RFrBejr.mjs} +31 -15
  69. package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-CG2tQx8K.mjs} +92 -99
  70. package/dist/client/LocationMapActions-Wsr83Q7q.mjs +268 -0
  71. package/dist/client/{Page-Dqpv9Ggi.mjs → Page-Bf2nPACI.mjs} +2673 -2290
  72. package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-CZweb1vs.mjs} +3 -3
  73. package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-Bkgz67gt.mjs} +1 -1
  74. package/dist/client/ThemedButton-CnyL3s1A.mjs +2243 -0
  75. package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-TcimLLRQ.mjs} +1 -1
  76. package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-q-RpJ4aF.mjs} +13 -13
  77. package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-DjGfk3Wj.mjs} +4 -4
  78. package/dist/client/bookings.mjs +6 -6
  79. package/dist/client/{carousel-C8ef0vnT.mjs → carousel-CGAk6j0m.mjs} +2 -2
  80. package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-ArlGmYWV.mjs} +1 -1
  81. package/dist/client/{cart-BpH6jkUO.mjs → cart-D_h3rAZ2.mjs} +3 -3
  82. package/dist/client/{cart.client-DV78Td13.mjs → cart.client-DHOxZbJ7.mjs} +1 -1
  83. package/dist/client/{checkout-BJVb2RpL.mjs → checkout-tC-3CzuM.mjs} +3 -3
  84. package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-DsBb2Pkm.mjs} +1 -1
  85. package/dist/client/client.mjs +28 -15
  86. package/dist/client/{context-BRgBWthI.mjs → context-9ZfMb6GA.mjs} +1 -1
  87. package/dist/client/{cta-D8ucLsvX.mjs → cta-D-ZqL7-e.mjs} +2 -1
  88. package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BCwLqYpW.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-BxkSS9fx.mjs} +1 -1
  90. package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-xg6to91E.mjs} +3 -3
  91. package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-C670TgRd.mjs} +2 -17
  92. package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-C6GApWTB.mjs} +17 -17
  93. package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-CWc0dg9i.mjs} +4 -4
  94. package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-D4DbOrvQ.mjs} +4 -4
  95. package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-C2DfmbC0.mjs} +2 -2
  96. package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-C_yXmHyz.mjs} +4 -4
  97. package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-DJuaCB-O.mjs} +4 -4
  98. package/dist/client/{form-DjNLfy2Z.mjs → form-QZhtdFHA.mjs} +3 -3
  99. package/dist/client/{form.client-Cj0By6ot.mjs → form.client-CgvPACwG.mjs} +5 -5
  100. package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-2uI0-5N-.mjs} +3 -3
  101. package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-Danr0Nk4.mjs} +1 -1
  102. package/dist/client/gifting/client.mjs +3 -3
  103. package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-DJdlLdvZ.mjs} +2 -2
  104. package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BvjcAZpS.mjs} +1 -1
  105. package/dist/client/mediaContext-jPeJ2PmJ.mjs +10801 -0
  106. package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-Cbepz2KU.mjs} +8 -8
  107. package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DN8oMCQ0.mjs} +2 -2
  108. package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-wjLtW-wq.mjs} +3 -3
  109. package/dist/client/{noop-M8FTSgm2.mjs → noop-B7H6gCbj.mjs} +306 -5
  110. package/dist/client/portal/client.mjs +4560 -115
  111. package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-CYTR165c.mjs} +1 -1
  112. package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-B4vTvag8.mjs} +1 -1
  113. package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-k8LEMSWn.mjs} +3 -3
  114. package/dist/client/{productList-BSRlnwBW.mjs → productList-DEo8Bqoe.mjs} +3 -3
  115. package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-G0j0HXBO.mjs} +3 -28
  116. package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BTmSXE3D.mjs} +1154 -997
  117. package/dist/client/rendering/client.mjs +28 -28
  118. package/dist/client/rendering/islands.mjs +1 -1
  119. package/dist/client/rendering.mjs +57 -32
  120. package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-B19taoH6.mjs} +1 -1
  121. package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-Chu5BHra.mjs} +1 -1
  122. package/dist/client/{ThemedButton-DVBC_pS9.mjs → schema-C-m8XHuW.mjs} +1123 -2362
  123. package/dist/client/{shop-CnIJfdZA.mjs → shop-RGWa43H7.mjs} +3 -3
  124. package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-TJYCBO_H.mjs} +12 -12
  125. package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-CjCcUB_o.mjs} +1 -1
  126. package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-tsKfZw1W.mjs} +15 -15
  127. package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-CVqLAU53.mjs} +370 -189
  128. package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-C3lHMz_R.mjs} +2 -2
  129. package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
  130. package/dist/client/timetableModel-V2ifvGGy.mjs +1100 -0
  131. package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-D1X69-pN.mjs} +4 -4
  132. package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-Ch30jino.mjs} +1 -1
  133. package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-Bwzr1RjV.mjs} +3 -3
  134. package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-BimJbFC7.mjs} +1 -1
  135. package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-CLAS0upd.mjs} +12 -24
  136. package/dist/client/uuid-BETKW8rS.mjs +12 -0
  137. package/dist/client/{view-BgPql2yH2.mjs → view-BUh4LnLS.mjs} +4 -4
  138. package/dist/client/{view-D1R3Lk05.mjs → view-Dj_FZHmg.mjs} +19 -15
  139. package/dist/client/wizardSteps-BkZc-hKH.mjs +6598 -0
  140. package/dist/preview-next/before-render.mjs +5 -4
  141. package/dist/preview-next/chrome.css +2 -0
  142. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-CwerMfzn.mjs} +2 -1
  143. package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
  144. package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
  145. package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-Dvq-RW9-.mjs} +1328 -171
  146. package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-BdFjS39R.mjs} +53 -79
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-BEfHln1E.mjs} +1249 -2551
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-CjkGh1IG.mjs} +1 -1
  149. package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-CDbxk_qZ.mjs} +117481 -162497
  150. package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-b14Bv03E.mjs} +1253 -403
  151. package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
  152. package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
  153. package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Dd1_mNIg.mjs} +3 -8
  154. package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
  155. package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
  156. package/dist/preview-next/client/runtime.mjs +3 -3
  157. package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-B-CXyGVb.mjs} +1 -1
  158. package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +5812 -0
  159. package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-CGxS8Ns-.mjs} +2 -1
  160. package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
  161. package/dist/preview-next/editor-base.css +64 -2
  162. package/dist/preview-next/editor-chrome.css +85 -0
  163. package/dist/preview-next/keepAlive.mjs +2 -2
  164. package/dist/preview-next/middleware.mjs +7 -3
  165. package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-hLg-yjQN.mjs} +190 -116
  166. package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
  167. package/dist/preview-next/session.mjs +1 -1
  168. package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-CeTd2saO.mjs} +6 -6
  169. package/dist/server/{bindings-z2daXp-2.mjs → bindings-C5YpKuKt.mjs} +3 -2
  170. package/dist/server/{client-Cv-osXoU.mjs → client-Cv26lZQ4.mjs} +14 -10
  171. package/dist/server/config-template-validation.mjs +50 -10
  172. package/dist/server/config-validation.mjs +1 -1
  173. package/dist/server/config.mjs +2 -2
  174. package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → effectiveNavLinkStyle-CGvGr3yD.mjs} +572 -1078
  175. package/dist/server/index.mjs +3 -3
  176. package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-C8a0b-cC.mjs} +40 -21
  177. package/dist/server/loadPage--DXBwI8V.mjs +2 -0
  178. package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-BW7dklu3.mjs} +9 -5
  179. package/dist/server/manifest.mjs +1 -1
  180. package/dist/server/next.mjs +9 -9
  181. package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-tIuqmJB3.mjs} +1 -1
  182. package/dist/server/{overrides-DxRC724a.mjs → overrides-D1fiPOKF.mjs} +1158 -754
  183. package/dist/server/page-converter.mjs +8 -10
  184. package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild--fO0E2tr.mjs} +1 -1
  185. package/dist/server/prebuild.mjs +1 -1
  186. package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-CqJnokWJ.mjs} +968 -968
  187. package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-CvvZ4JIe.mjs} +207 -132
  188. package/dist/server/{blocks-BaG8Qpaa.mjs → registry-BVfCqaCq.mjs} +2853 -2799
  189. package/dist/server/rendering/server.mjs +4 -4
  190. package/dist/server/rendering.mjs +8 -8
  191. package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DPNvhXEz.mjs} +6 -3
  192. package/dist/server/routing.mjs +1 -1
  193. package/dist/server/{schema-Bs735S27.mjs → schema-CD4peO7m.mjs} +2441 -1401
  194. package/dist/server/server.mjs +3 -3
  195. package/dist/server/site-styles-H-EvTJiW.mjs +787 -0
  196. package/dist/server/siteChromeOverlayClearance-DNC2k1U0.mjs +750 -0
  197. package/dist/server/{src-B935_bzN.mjs → src-ILxc6pid.mjs} +427 -190
  198. package/dist/server/theme-bridge.mjs +1 -1
  199. package/dist/server/theme.mjs +1 -1
  200. package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-BNHIXiUj.mjs} +117 -26
  201. package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
  202. package/dist/server/{validation-BtHE2S_D.mjs → validation-B1ieVemg.mjs} +22 -63
  203. package/dist/server/{version-CNCdL6id.mjs → version-BQK44wFg.mjs} +1 -1
  204. package/dist/styles/index.css +235 -0
  205. package/package.json +8 -3
  206. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  207. package/dist/_dts/index-cnymEAZY.d.ts +0 -1
  208. package/dist/client/LeafletStaticMap-dlapZ6mi.mjs +0 -135
  209. package/dist/client/location-map.client-DRN1JePj.mjs +0 -28
  210. package/dist/client/location-map.view-CuCvQdvp.mjs +0 -282
  211. package/dist/client/locationMap-B9srHHzZ.mjs +0 -15
  212. package/dist/client/mediaContext-DThoeEBU.mjs +0 -136
  213. package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
  214. package/dist/client/timetableModel-D09jPdue.mjs +0 -480
  215. package/dist/client/wizardSteps-C0TsNqJc.mjs +0 -17049
  216. package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
  217. package/dist/server/loadPage-jade28Xh.mjs +0 -2
  218. 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-Bs735S27.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. */
@@ -60,7 +60,7 @@ const lookKnobBlocks = {
60
60
  smallCaption: "block.hero",
61
61
  candleGlow: "block.hero",
62
62
  columnGuides: "block.hero",
63
- showPhotos: cardListFamilyBlocks,
63
+ showPhotos: cardListKnobBlocks,
64
64
  cardMarker: cardListFamilyBlocks,
65
65
  dates: "block.offerings-preview",
66
66
  showCapacity: "block.event-calendar",
@@ -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",
@@ -1101,7 +1102,7 @@ const appearancePresets = [
1101
1102
  }),
1102
1103
  defineArrangementLook("event-calendar-ruled-rows", "event-calendar", "Ruled rows", "ledger", ["showCapacity"]),
1103
1104
  defineArrangementLook("event-calendar-grouped-by-day", "event-calendar", "Grouped by day", "day-groups", ["showCapacity"], { styleFallback: [id$1("event-calendar-ruled-rows")] }),
1104
- defineArrangementLook("event-calendar-session-cards", "event-calendar", "Session cards", "grid", ["showCapacity"], {
1105
+ defineArrangementLook("event-calendar-session-cards", "event-calendar", "Session cards", "grid", ["showCapacity", "showPhotos"], {
1105
1106
  itemRoles: { items: "card" },
1106
1107
  slotRoles: { date: "highlight" },
1107
1108
  styleFallback: [id$1("event-calendar-ruled-rows")]
@@ -1110,6 +1111,22 @@ const appearancePresets = [
1110
1111
  itemRoles: { container: "card" },
1111
1112
  styleFallback: [id$1("event-calendar-ruled-rows")]
1112
1113
  }),
1114
+ defineArrangementLook("events-spotlight", "event-calendar", "Event spotlight", "grid", ["showCapacity", "showPhotos"], {
1115
+ itemRoles: { items: "card" },
1116
+ slotRoles: { date: "highlight" },
1117
+ styleFallback: [id$1("event-calendar-session-cards")]
1118
+ }),
1119
+ {
1120
+ ...defineArrangementLook("events-recurring-week", "event-calendar", "Weekly schedule", "ledger", []),
1121
+ structure: {
1122
+ kind: "arrangement",
1123
+ byMode: { week: "ledger" },
1124
+ knobs: [],
1125
+ itemRoles: {},
1126
+ whenMissing: [],
1127
+ styleFallback: []
1128
+ }
1129
+ },
1113
1130
  defineArrangementLook("hero-framed-title", "hero", "Title framed between two photos", "copy-over-gallery", ["titleSize", "smallCaption"], { styleFallback: [id$1("hero-copy-over-gallery")] }),
1114
1131
  defineArrangementLook("testimonials-lead-quote", "testimonials", "Big quote with others beside", "lead-rest", ["quoteCount"], { knobDescriptions: { quoteCount: "Shows your chosen quotes: the first one large, the rest beside it." } }),
1115
1132
  defineArrangementLook("testimonials-quote-cards", "testimonials", "Quote cards", "columns", ["quoteCount"], {
@@ -1224,6 +1241,19 @@ const appearancePresets = [
1224
1241
  }],
1225
1242
  styleFallback: [id$1("cta-centred")]
1226
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
+ }),
1227
1257
  {
1228
1258
  ...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
1229
1259
  "media",
@@ -1326,64 +1356,6 @@ const appearancePresets = [
1326
1356
  }
1327
1357
  ];
1328
1358
  //#endregion
1329
- //#region ../theme-core/src/palette/utils/scrimContrast.ts
1330
- const WHITE = "#ffffff";
1331
- const BLACK = "#000000";
1332
- /** `top` at `alpha` over opaque `bottom`, blended as CSS paints an overlay. */
1333
- function compositeHex(topHex, alpha, bottomHex) {
1334
- const top = hexToRgb(topHex);
1335
- const bottom = hexToRgb(bottomHex);
1336
- const mix = (a, b) => Math.round(alpha * a + (1 - alpha) * b);
1337
- return rgbToHex(mix(top.r, bottom.r), mix(top.g, bottom.g), mix(top.b, bottom.b));
1338
- }
1339
- /**
1340
- * The lowest contrast `foreground` can reach over `scrim` at `alpha` laid on
1341
- * any pixel. A foreground whose luminance falls inside the range the
1342
- * composites can take has a worst case of 1:1.
1343
- */
1344
- function worstCaseScrimContrast(input) {
1345
- const overWhite = compositeHex(input.scrimHex, input.alpha, WHITE);
1346
- const overBlack = compositeHex(input.scrimHex, input.alpha, BLACK);
1347
- const luminance = (hex) => {
1348
- const { r, g, b } = hexToRgb(hex);
1349
- return relativeLuminance(r, g, b);
1350
- };
1351
- const foreground = luminance(input.foregroundHex);
1352
- const low = luminance(overBlack);
1353
- const high = luminance(overWhite);
1354
- if (foreground >= low && foreground <= high) return 1;
1355
- return Math.min(contrastRatio(input.foregroundHex, overWhite), contrastRatio(input.foregroundHex, overBlack));
1356
- }
1357
- /** Shared samples for literal RGB washes and palette-token gradient veils. */
1358
- function gradientScrimSamples(gradient, alpha, palette) {
1359
- const literal = [...gradient.matchAll(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/g)].map((stop) => ({
1360
- hex: rgbToHex(Number(stop[1]), Number(stop[2]), Number(stop[3])),
1361
- alpha: alpha * (stop[4] === void 0 ? 1 : Number(stop[4]))
1362
- }));
1363
- const tokens = [...gradient.matchAll(/var\(--tb-([\w-]+)\)/g)].flatMap((stop) => {
1364
- const hex = stop[1] ? resolveConcreteColorHex(stop[1], palette) : null;
1365
- return hex ? [{
1366
- hex,
1367
- alpha
1368
- }] : [];
1369
- });
1370
- return [...literal, ...tokens];
1371
- }
1372
- /** The ink with the stronger worst-pixel guarantee identifies the veil tone.
1373
- * No readable samples (or a tie) leaves classification to the foreground owner.
1374
- */
1375
- function scrimTone(samples) {
1376
- if (samples.length === 0) return null;
1377
- const worst = (foregroundHex) => Math.min(...samples.map((sample) => worstCaseScrimContrast({
1378
- foregroundHex,
1379
- scrimHex: sample.hex,
1380
- alpha: sample.alpha
1381
- })));
1382
- const white = worst(WHITE);
1383
- const black = worst(BLACK);
1384
- return white === black ? null : white > black ? "dark" : "light";
1385
- }
1386
- //#endregion
1387
1359
  //#region ../theme-core/src/site-styles/transitionCatalogue.ts
1388
1360
  /**
1389
1361
  * Family order for pickers. Entries below are listed family by family in this
@@ -1719,10 +1691,16 @@ const sectionTransitionFamilies = [{
1719
1691
  label: family.label,
1720
1692
  variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
1721
1693
  }))];
1722
- new Map(boundaryOptions.map((option) => [option.id, option]));
1694
+ const boundaryOptionById = new Map(boundaryOptions.map((option) => [option.id, option]));
1723
1695
  new Map(boundaryOptions.map((option) => [stableTreatmentKey(option.treatment), option]));
1724
1696
  new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
1725
1697
  new Map(sectionTransitionFamilies.map((family) => [family.id, family]));
1698
+ function boundaryTreatmentForBoundaryOptionId(boundaryOptionId) {
1699
+ return boundaryOptionById.get(boundaryOptionId)?.treatment ?? {
1700
+ kind: "legacy-unsupported",
1701
+ boundaryOptionId
1702
+ };
1703
+ }
1726
1704
  function stableTreatmentKey(treatment) {
1727
1705
  switch (treatment.kind) {
1728
1706
  case "none": return "none";
@@ -1824,31 +1802,56 @@ const pageDesignBlockLookPinSchema = z.object({
1824
1802
  choice: pageDesignUserPinnedAppearanceChoiceSchema
1825
1803
  }).strict();
1826
1804
  const pageDesignBoundaryPinSchema = z.object({
1827
- boundaryId: z.string().min(1).transform(asDesignBoundaryId),
1805
+ boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
1828
1806
  previousBlockId: z.string().min(1).transform(asDesignBlockId),
1829
1807
  nextBlockId: z.string().min(1).transform(asDesignBlockId),
1830
1808
  choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
1831
1809
  }).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
1832
1810
  const legacyPageDesignBoundaryPinSchema = z.object({
1833
- boundaryId: z.string().min(1).transform(asDesignBoundaryId),
1811
+ boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
1834
1812
  previousBlockId: z.string().min(1).transform(asDesignBlockId),
1835
1813
  nextBlockId: z.string().min(1).transform(asDesignBlockId),
1836
1814
  choice: pageDesignUserPinnedBoundaryChoiceSchema
1837
1815
  }).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
1838
- z.object({
1816
+ /**
1817
+ * Persisted editor intent stores only user-pinned block Looks and boundary choices.
1818
+ * Missing pins mean `auto`; block-kind/preset compatibility is enforced by resolution,
1819
+ * not by this JSON parse boundary.
1820
+ */
1821
+ const pageDesignIntentV1Schema = z.object({
1839
1822
  schemaVersion: z.literal(1),
1840
- siteStyleId: z.string().min(1).transform(asSiteStyleId),
1823
+ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId),
1841
1824
  pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
1842
1825
  blockLookPins: z.array(pageDesignBlockLookPinSchema),
1843
1826
  boundaryPins: z.array(legacyPageDesignBoundaryPinSchema)
1844
1827
  }).strict().superRefine(validateUniquePageDesignPins);
1845
- z.object({
1828
+ const pageDesignDecisionsV2Schema = z.object({
1846
1829
  schemaVersion: z.literal(2),
1847
- siteStyleId: z.string().min(1).transform(asSiteStyleId),
1848
1830
  pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
1849
1831
  blockLookPins: z.array(pageDesignBlockLookPinSchema),
1850
1832
  boundaryPins: z.array(pageDesignBoundaryPinSchema)
1851
1833
  }).strict().superRefine(validateUniquePageDesignPins);
1834
+ const pageDesignIntentV2Schema = pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
1835
+ function normalizeLegacyPageDesignIntent(intent) {
1836
+ return {
1837
+ schemaVersion: 2,
1838
+ siteStyleId: intent.siteStyleId,
1839
+ pageFlowPresetId: intent.pageFlowPresetId,
1840
+ blockLookPins: intent.blockLookPins,
1841
+ boundaryPins: intent.boundaryPins.map((pin) => ({
1842
+ boundaryId: pin.boundaryId,
1843
+ previousBlockId: pin.previousBlockId,
1844
+ nextBlockId: pin.nextBlockId,
1845
+ choice: userPinnedDesignChoice(boundaryTreatmentForBoundaryOptionId(pin.choice.value))
1846
+ }))
1847
+ };
1848
+ }
1849
+ function userPinnedDesignChoice(value) {
1850
+ return {
1851
+ kind: "user-pinned",
1852
+ value
1853
+ };
1854
+ }
1852
1855
  function addDuplicateStringIssues(ctx, input) {
1853
1856
  const seen = /* @__PURE__ */ new Set();
1854
1857
  const duplicates = /* @__PURE__ */ new Set();
@@ -1883,172 +1886,6 @@ function validateUniquePageDesignPins(intent, ctx) {
1883
1886
  });
1884
1887
  }
1885
1888
  //#endregion
1886
- //#region ../theme-core/src/site-styles/lookResolution.ts
1887
- function lookDefinitionForId(lookId, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
1888
- return catalogue.find((entry) => entry.id === lookId) ?? null;
1889
- }
1890
- /** Validates destination data independently of manifest rollout availability. */
1891
- function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
1892
- validateOfferKnobs(style, catalogue);
1893
- catalogue.forEach((entry) => lookModes(entry).forEach((mode) => {
1894
- 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"})`);
1895
- }));
1896
- }
1897
- function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
1898
- if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
1899
- if (style.offers.some((offer) => offer.id === entry.id)) return true;
1900
- const nextVisited = /* @__PURE__ */ new Set([...visited, entry.id]);
1901
- return entry.structure.styleFallback.length > 0 && entry.structure.styleFallback.every((fallback) => {
1902
- const next = lookDefinitionForId(fallback, catalogue);
1903
- return next !== null && next.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && fallbackEndsAtOffer(next, mode, style, catalogue, nextVisited);
1904
- });
1905
- }
1906
- const arrangementLookHooks = [
1907
- "data-fact",
1908
- "data-card-list",
1909
- "data-card-list-item",
1910
- "data-availability",
1911
- "data-event-places",
1912
- "data-today",
1913
- "data-other-month",
1914
- "data-current",
1915
- "data-skin",
1916
- "data-look",
1917
- "data-arrangement",
1918
- "data-treat",
1919
- "data-surface",
1920
- "data-length",
1921
- "data-knob-*",
1922
- "data-mode",
1923
- "data-has-*",
1924
- "data-photo-count",
1925
- "data-slot",
1926
- "data-control",
1927
- "data-placeholder-field"
1928
- ];
1929
- appearancePresets.filter(isArrangementAppearancePreset);
1930
- /** Closed structural hooks shared by block arrangements and bounded skins. */
1931
- const arrangementSlotNames = [
1932
- "contact",
1933
- "social",
1934
- "base",
1935
- "section",
1936
- "background",
1937
- "schedule-section",
1938
- "shop-section",
1939
- "stack",
1940
- "inline",
1941
- "grid",
1942
- "head",
1943
- "eyebrow",
1944
- "heading",
1945
- "intro",
1946
- "frame",
1947
- "copy",
1948
- "caption",
1949
- "headline",
1950
- "lede",
1951
- "actions",
1952
- "media",
1953
- "photo",
1954
- "gallery",
1955
- "sticker",
1956
- "facts",
1957
- "fact-label",
1958
- "fact-value",
1959
- "chips",
1960
- "chip",
1961
- "figure",
1962
- "figure-value",
1963
- "figure-label",
1964
- "schedule",
1965
- "dates",
1966
- "date-places",
1967
- "availability",
1968
- "layout",
1969
- "items",
1970
- "item",
1971
- "lead",
1972
- "item-media",
1973
- "item-body",
1974
- "icon",
1975
- "numeral",
1976
- "item-title",
1977
- "item-text",
1978
- "item-actions",
1979
- "list",
1980
- "row",
1981
- "row-continued",
1982
- "group",
1983
- "group-label",
1984
- "group-day",
1985
- "group-date",
1986
- "date",
1987
- "weekday",
1988
- "day",
1989
- "month",
1990
- "date-label",
1991
- "time",
1992
- "price",
1993
- "price-amount",
1994
- "price-unit",
1995
- "price-note",
1996
- "mark",
1997
- "navigation",
1998
- "time-start",
1999
- "time-length",
2000
- "what",
2001
- "item-meta",
2002
- "places",
2003
- "places-low",
2004
- "places-full",
2005
- "action",
2006
- "panel",
2007
- "panel-heading",
2008
- "more",
2009
- "quote",
2010
- "attribution",
2011
- "outcome",
2012
- "controls",
2013
- "control",
2014
- "counter"
2015
- ];
2016
- /** A style cannot add a detail from another block that would silently do nothing. */
2017
- function validateOfferKnobs(style, catalogue) {
2018
- style.offers.forEach((offer) => {
2019
- const look = lookDefinitionForId(offer.id, catalogue);
2020
- if (!look) return;
2021
- [...offer.addKnobs ?? [], ...Object.values(offer.surfaceTints ?? {}).flatMap((tint) => tint?.knob ? [tint.knob] : [])].forEach((knob) => {
2022
- 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}`);
2023
- });
2024
- });
2025
- }
2026
- /** One role resolver, including section inheritance and ground-specific overrides. */
2027
- function resolveItemSurface(role, ground, style) {
2028
- const mapped = style.roleMap[role];
2029
- const name = typeof mapped === "string" ? mapped : mapped[ground] ?? mapped.default;
2030
- if (name === "section") return { kind: "inherit" };
2031
- const spec = style.surfaces[name];
2032
- if (!spec) throw new Error(`Undeclared item surface ${name}`);
2033
- return resolveSurface(spec, style.context);
2034
- }
2035
- /** Fixed standalone slots and collection slots share the role resolver. */
2036
- function resolveLookSlotSurfaces(look, roles, surfaces) {
2037
- const arrangement = Object.values(look.structure.byMode)[0];
2038
- const container = arrangement === "compact" ? "panel" : look.target === "events" ? "list" : "items";
2039
- const entries = [
2040
- ...Object.entries(look.structure.slotRoles ?? {}).map(([slot, role]) => [slot, surfaces[role]]),
2041
- ...roles.container ? [[container, surfaces[roles.container]]] : [],
2042
- ...roles.items ? [
2043
- ["item", surfaces[roles.items]],
2044
- ["row", surfaces[roles.items]],
2045
- ["row-continued", surfaces[roles.items]]
2046
- ] : [],
2047
- ...roles.at?.first && arrangement === "lead-support" ? [["lead", surfaces[roles.at.first]]] : []
2048
- ];
2049
- return Object.fromEntries(entries);
2050
- }
2051
- //#endregion
2052
1889
  //#region ../theme-core/src/site-styles/footerLookDefaults.ts
2053
1890
  const defaultFooterLookRecipes = {
2054
1891
  "footer-centred-name": {
@@ -6133,45 +5970,6 @@ z.object({
6133
5970
  authority: styleAuthoritySchema
6134
5971
  }).strict();
6135
5972
  asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
6136
- asPageFlowPresetId("generated-default");
6137
- const southWestTwerkSchoolSiteStyleId = asSiteStyleId("site-style:south-west-twerk-school");
6138
- const heroBrandScrimFixedFrameLookId = asAppearancePresetId("hero-brand-scrim-fixed-frame");
6139
- const classicHeroLayoutVariantKey = asLayoutVariantKey("classic");
6140
- const microHeroLayoutVariantKey = asLayoutVariantKey("micro");
6141
- const waveBoundaryOptionId = asBoundaryOptionId("break:wave");
6142
- const registeredSiteStyleBlockPolicies = [{
6143
- siteStyleId: southWestTwerkSchoolSiteStyleId,
6144
- kind: "locked-look-and-layouts",
6145
- blockKind: "block.hero",
6146
- lookId: heroBrandScrimFixedFrameLookId,
6147
- allowedLayoutVariantKeys: [classicHeroLayoutVariantKey, microHeroLayoutVariantKey],
6148
- defaultLayoutVariantKey: classicHeroLayoutVariantKey,
6149
- defaultBoundaryAfter: {
6150
- optionId: waveBoundaryOptionId,
6151
- mode: "default-only"
6152
- },
6153
- customize: {
6154
- hideDisallowedLooks: true,
6155
- hideDisallowedLayouts: true
6156
- }
6157
- }];
6158
- function deriveSiteStyleBlockPolicy(input) {
6159
- return registeredSiteStyleBlockPolicies.find((policy) => policy.siteStyleId === input.siteStyleId && policy.blockKind === input.blockKind) ?? { kind: "open" };
6160
- }
6161
- function isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) {
6162
- switch (policy.kind) {
6163
- case "open": return true;
6164
- case "locked-look-and-layouts": return policy.allowedLayoutVariantKeys.includes(layoutVariantKey);
6165
- default: return assertNever(policy, "Unhandled site style block policy");
6166
- }
6167
- }
6168
- function normalizeLayoutVariantForPolicy(policy, layoutVariantKey) {
6169
- switch (policy.kind) {
6170
- case "open": return layoutVariantKey ?? null;
6171
- case "locked-look-and-layouts": return layoutVariantKey && isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) ? layoutVariantKey : policy.defaultLayoutVariantKey;
6172
- default: return assertNever(policy, "Unhandled site style block policy");
6173
- }
6174
- }
6175
5973
  /**
6176
5974
  * Curated library of gradient presets.
6177
5975
  * All gradients use theme color tokens, so they adapt to the site's palette.
@@ -7119,6 +6917,16 @@ const folioLooks = {
7119
6917
  treatment: "calendar-compact",
7120
6918
  roleMap: folioRoles
7121
6919
  },
6920
+ {
6921
+ id: id("events-spotlight"),
6922
+ treatment: "calendar-spotlight",
6923
+ roleMap: folioRoles
6924
+ },
6925
+ {
6926
+ id: id("events-recurring-week"),
6927
+ treatment: "calendar-recurring-week",
6928
+ roleMap: folioRoles
6929
+ },
7122
6930
  {
7123
6931
  id: id("event-calendar-month-grid"),
7124
6932
  treatment: "calendar-month",
@@ -7250,13 +7058,33 @@ const folioLooks = {
7250
7058
  roleMap: folioRoles
7251
7059
  },
7252
7060
  {
7253
- id: id("card-list-photos-on-top"),
7254
- treatment: "photos-on-top",
7061
+ id: id("location-map-above-details"),
7062
+ treatment: "map-above",
7255
7063
  roleMap: folioRoles
7256
- }
7257
- ]
7258
- };
7259
- const fulcrumRoles = {
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
+ },
7080
+ {
7081
+ id: id("card-list-photos-on-top"),
7082
+ treatment: "photos-on-top",
7083
+ roleMap: folioRoles
7084
+ }
7085
+ ]
7086
+ };
7087
+ const fulcrumRoles = {
7260
7088
  card: "sheet",
7261
7089
  statement: {
7262
7090
  default: "brand",
@@ -7423,6 +7251,16 @@ const fulcrumLooks = {
7423
7251
  treatment: "compact",
7424
7252
  roleMap: fulcrumRoles
7425
7253
  },
7254
+ {
7255
+ id: id("events-spotlight"),
7256
+ treatment: "calendar-spotlight",
7257
+ roleMap: fulcrumRoles
7258
+ },
7259
+ {
7260
+ id: id("events-recurring-week"),
7261
+ treatment: "calendar-recurring-week",
7262
+ roleMap: fulcrumRoles
7263
+ },
7426
7264
  {
7427
7265
  id: id("event-calendar-month-grid"),
7428
7266
  treatment: "sheet",
@@ -7577,6 +7415,26 @@ const fulcrumLooks = {
7577
7415
  treatment: "cta-figure",
7578
7416
  roleMap: fulcrumRoles
7579
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
+ },
7580
7438
  {
7581
7439
  id: id("card-list-photos-on-top"),
7582
7440
  treatment: "photos-on-top",
@@ -7682,6 +7540,16 @@ const posterOffers = [
7682
7540
  treatment: "compact",
7683
7541
  roleMap: posterRoles
7684
7542
  },
7543
+ {
7544
+ id: id("events-spotlight"),
7545
+ treatment: "calendar-spotlight",
7546
+ roleMap: posterRoles
7547
+ },
7548
+ {
7549
+ id: id("events-recurring-week"),
7550
+ treatment: "calendar-recurring-week",
7551
+ roleMap: posterRoles
7552
+ },
7685
7553
  {
7686
7554
  id: id("event-calendar-month-grid"),
7687
7555
  treatment: "heavy",
@@ -7821,6 +7689,26 @@ const posterOffers = [
7821
7689
  treatment: "cta-figure",
7822
7690
  roleMap: posterRoles
7823
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
+ },
7824
7712
  {
7825
7713
  id: id("card-list-photos-on-top"),
7826
7714
  treatment: "photos-on-top",
@@ -8143,6 +8031,16 @@ const lanternLooks = {
8143
8031
  treatment: "compact",
8144
8032
  roleMap: lanternRoles
8145
8033
  },
8034
+ {
8035
+ id: id("events-spotlight"),
8036
+ treatment: "calendar-spotlight",
8037
+ roleMap: lanternRoles
8038
+ },
8039
+ {
8040
+ id: id("events-recurring-week"),
8041
+ treatment: "calendar-recurring-week",
8042
+ roleMap: lanternRoles
8043
+ },
8146
8044
  {
8147
8045
  id: id("event-calendar-month-grid"),
8148
8046
  treatment: "lit",
@@ -8266,6 +8164,26 @@ const lanternLooks = {
8266
8164
  treatment: "cta-figure",
8267
8165
  roleMap: lanternRoles
8268
8166
  },
8167
+ {
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
+ },
8269
8187
  {
8270
8188
  id: id("card-list-photos-on-top"),
8271
8189
  treatment: "photos-on-top",
@@ -8429,6 +8347,16 @@ const measureLooks = {
8429
8347
  treatment: "compact",
8430
8348
  roleMap: measureRuledPanelRoles
8431
8349
  },
8350
+ {
8351
+ id: id("events-spotlight"),
8352
+ treatment: "calendar-spotlight",
8353
+ roleMap: measureRoles
8354
+ },
8355
+ {
8356
+ id: id("events-recurring-week"),
8357
+ treatment: "calendar-recurring-week",
8358
+ roleMap: measureRoles
8359
+ },
8432
8360
  {
8433
8361
  id: id("event-calendar-month-grid"),
8434
8362
  treatment: "fill",
@@ -8569,6 +8497,26 @@ const measureLooks = {
8569
8497
  treatment: "cta-figure",
8570
8498
  roleMap: measureRoles
8571
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
+ },
8572
8520
  {
8573
8521
  id: id("card-list-photos-on-top"),
8574
8522
  treatment: "photos-on-top",
@@ -9503,6 +9451,299 @@ function withPriceLooks(looks, roleMap, featuredRoleMap = roleMap) {
9503
9451
  ]
9504
9452
  };
9505
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
+ }
9506
9747
  //#endregion
9507
9748
  //#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
9508
9749
  const headerNavTypographyPreferenceValues = [
@@ -9640,751 +9881,4 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
9640
9881
  };
9641
9882
  }
9642
9883
  //#endregion
9643
- //#region ../theme-core/src/responsive/mediaQuery.ts
9644
- /**
9645
- * Convert familiar viewport media queries to container queries when safe.
9646
- * v1 supports simple width-based min/max clauses joined by `and`.
9647
- */
9648
- function convertMediaQueryToContainerQuery(query) {
9649
- const normalized = normalizeMediaQueryPrelude(query);
9650
- if (!normalized) return null;
9651
- if (normalized.includes(",")) return null;
9652
- if (/\bor\b/i.test(normalized)) return null;
9653
- const clauses = splitTopLevelAnd(normalized);
9654
- if (clauses.length === 0) return null;
9655
- const convertedClauses = clauses.map(convertWidthClause);
9656
- if (convertedClauses.some((clause) => clause === null)) return null;
9657
- return convertedClauses.join(" and ");
9658
- }
9659
- function normalizeMediaQueryPrelude(query) {
9660
- let normalized = query.trim();
9661
- if (!normalized) return "";
9662
- normalized = normalized.replace(/^only\s+/i, "").trim();
9663
- if (/^screen\b/i.test(normalized)) {
9664
- normalized = normalized.replace(/^screen\b/i, "").trim();
9665
- normalized = normalized.replace(/^and\b/i, "").trim();
9666
- }
9667
- if (/^all\b/i.test(normalized)) {
9668
- normalized = normalized.replace(/^all\b/i, "").trim();
9669
- normalized = normalized.replace(/^and\b/i, "").trim();
9670
- }
9671
- return normalized;
9672
- }
9673
- function splitTopLevelAnd(input) {
9674
- const parts = [];
9675
- let depth = 0;
9676
- let quote = null;
9677
- let current = "";
9678
- for (let i = 0; i < input.length; i++) {
9679
- const ch = input[i];
9680
- if (quote) {
9681
- current += ch;
9682
- if (ch === quote && input[i - 1] !== "\\") quote = null;
9683
- continue;
9684
- }
9685
- if (ch === "\"" || ch === "'") {
9686
- quote = ch;
9687
- current += ch;
9688
- continue;
9689
- }
9690
- if (ch === "(") {
9691
- depth++;
9692
- current += ch;
9693
- continue;
9694
- }
9695
- if (ch === ")") {
9696
- depth = Math.max(0, depth - 1);
9697
- current += ch;
9698
- continue;
9699
- }
9700
- if (depth === 0 && isAndBoundary(input, i)) {
9701
- const trimmed = current.trim();
9702
- if (trimmed) parts.push(trimmed);
9703
- current = "";
9704
- i += 2;
9705
- continue;
9706
- }
9707
- current += ch;
9708
- }
9709
- const trimmed = current.trim();
9710
- if (trimmed) parts.push(trimmed);
9711
- return parts;
9712
- }
9713
- function isAndBoundary(input, index) {
9714
- if (!input.slice(index, index + 3).match(/^and$/i)) return false;
9715
- const prev = input[index - 1] ?? " ";
9716
- const next = input[index + 3] ?? " ";
9717
- return /\s/.test(prev) && /\s/.test(next);
9718
- }
9719
- function convertWidthClause(clause) {
9720
- const match = clause.match(/^\(\s*(min|max)-width\s*:\s*([^\)]+?)\s*\)$/i);
9721
- if (!match) return null;
9722
- const kindRaw = match[1];
9723
- const valueRaw = match[2];
9724
- if (!kindRaw || !valueRaw) return null;
9725
- const kind = kindRaw.toLowerCase();
9726
- const value = valueRaw.trim();
9727
- if (!value) return null;
9728
- return `(${kind}-width: ${value})`;
9729
- }
9730
- //#endregion
9731
- //#region ../theme-core/src/responsiveMode.ts
9732
- const DEFAULT_THEME_RESPONSIVE_MODE = "viewport";
9733
- const THEME_RESPONSIVE_CONTAINER_NAME = "rb-site";
9734
- const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
9735
- function getResponsiveScopeSpec(mode = DEFAULT_THEME_RESPONSIVE_MODE) {
9736
- if (mode === "container") return {
9737
- kind: "container",
9738
- selector: `[${THEME_RESPONSIVE_MODE_ATTR}="container"]`,
9739
- containerName: THEME_RESPONSIVE_CONTAINER_NAME
9740
- };
9741
- return {
9742
- kind: "viewport",
9743
- selector: `[${THEME_RESPONSIVE_MODE_ATTR}="viewport"]`
9744
- };
9745
- }
9746
- function escapeRegExp(value) {
9747
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
9748
- }
9749
- new RegExp(buildResponsiveScopeRulePatternSource(), "g");
9750
- new RegExp(buildResponsiveScopeRulePatternSource(), "y");
9751
- function buildResponsiveScopeRulePatternSource() {
9752
- return [
9753
- "@scope",
9754
- "\\(\\[",
9755
- escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
9756
- "=\"(?:viewport|container)\"\\]\\)",
9757
- "to",
9758
- "\\((?::scope )?\\[",
9759
- escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
9760
- "\\]\\)",
9761
- "\\{"
9762
- ].join("\\s*");
9763
- }
9764
- const NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES = [
9765
- `min-width: 12rem;`,
9766
- `width: max-content;`,
9767
- `max-width: min(22rem, calc(100vw - 2rem));`,
9768
- `transform: translateX(var(--nav-dropdown-shift-x, 0px));`
9769
- ];
9770
- //#endregion
9771
- //#region ../theme-core/src/header/surfaceRules.ts
9772
- /** Compile the at-rest surface independently of scroll treatment and paint geometry. */
9773
- function buildHeaderSurfaceRules(header, tokens) {
9774
- const base = [];
9775
- const background = header.background;
9776
- if (background.type === "color") base.push(`background-color: ${tokens.getColor(background.color || "surface")};`);
9777
- else if (background.type === "gradient" && background.gradient) {
9778
- const stops = background.gradient.stops.map((stop) => tokens.getColor(stop.color)).join(", ");
9779
- base.push(`background-image: linear-gradient(${background.gradient.angle ?? 180}deg, ${stops});`);
9780
- }
9781
- const borderWidth = getComponentBorderWidthPx(header.border?.width ?? "none");
9782
- if (!header.border || borderWidth === "0") return {
9783
- base,
9784
- border: []
9785
- };
9786
- const color = rgbColorValue(header.border.colorToken?.trim() || "border");
9787
- const style = header.border.style === "dashed" ? "dashed" : "solid";
9788
- return {
9789
- base,
9790
- border: header.border.position === "both" ? [`border-top: ${borderWidth} ${style} ${color};`, `border-bottom: ${borderWidth} ${style} ${color};`] : [`border-${header.border.position}: ${borderWidth} ${style} ${color};`]
9791
- };
9792
- }
9793
- //#endregion
9794
- //#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
9795
- function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
9796
- const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
9797
- if (!style) {
9798
- console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
9799
- return "";
9800
- }
9801
- return generateNavLinkCSS({
9802
- themeId,
9803
- tokens,
9804
- theme,
9805
- style: mergeHeaderNavTypographyPreference(style, {
9806
- typography: header.navFontRole ?? "inherit",
9807
- fontSize: readHeaderNavFontSizePreference(header.navTextSize),
9808
- interactionPalette: header.interactionPalette ?? "recommended"
9809
- }),
9810
- className: "header-nav-link",
9811
- surfaceDependent: true,
9812
- surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
9813
- });
9814
- }
9815
- //#endregion
9816
- //#region ../theme-core/src/header/generateHeaderLogoStyles.ts
9817
- function generateHeaderLogoStyles(input) {
9818
- const { logo, themeId, tokens } = input;
9819
- return `\n${`:where([data-theme-scope="${themeId}"]) .header-logo-text`} {\n ${[
9820
- ...logoTextColorRules(input),
9821
- logo?.fontFamily === "body" ? "font-family: var(--font-body);" : "font-family: var(--font-heading);",
9822
- ...logoLetterSpacingRules(logo),
9823
- ...logoGradientRules(logo, tokens),
9824
- ...logoContrastRules(input)
9825
- ].join("\n ")}\n}\n${mobilePanelLogoColor(input)}`;
9826
- }
9827
- function mobilePanelLogoColor(input) {
9828
- if (input.logo?.gradient) return "";
9829
- const { themeId, tokens, textColor, fallbackTextColor } = input;
9830
- const fallback = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
9831
- 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`;
9832
- }
9833
- function logoTextColorRules(input) {
9834
- const { logo, textColor, fallbackTextColor, tokens, useSurfaceTextColor } = input;
9835
- if (logo?.gradient || !textColor && !useSurfaceTextColor) return [];
9836
- const authoredColor = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
9837
- return [`color: ${useSurfaceTextColor ? surfaceForegroundValue("text", authoredColor) : authoredColor};`];
9838
- }
9839
- function logoLetterSpacingRules(logo) {
9840
- const spacing = logo?.letterSpacing;
9841
- if (!spacing || spacing === "normal") return [];
9842
- return [`letter-spacing: ${{
9843
- wide: "0.05em",
9844
- wider: "0.1em",
9845
- widest: "0.15em"
9846
- }[spacing]};`];
9847
- }
9848
- function logoGradientRules(logo, tokens) {
9849
- if (!logo?.gradient) return [];
9850
- return [
9851
- `background: linear-gradient(to right, ${tokens.getColor("primary")}, ${tokens.getColor("accent")});`,
9852
- "-webkit-background-clip: text;",
9853
- "-webkit-text-fill-color: transparent;",
9854
- "background-clip: text;",
9855
- "color: transparent;"
9856
- ];
9857
- }
9858
- function logoContrastRules(input) {
9859
- if (input.logo?.gradient || input.useSurfaceTextColor) return [];
9860
- const colorToken = input.textColor?.trim() || input.fallbackTextColor?.trim() || "text";
9861
- const shadow = buildTextContrastShadow({
9862
- theme: input.theme,
9863
- colorToken,
9864
- treatment: input.contrastTreatment
9865
- });
9866
- return shadow ? [`text-shadow: ${shadow};`] : [];
9867
- }
9868
- //#endregion
9869
- //#region ../theme-core/src/header/generateHeaderCss.ts
9870
- const HEADER_BLUR = "blur(12px)";
9871
- const FLOATING_BLUR = "blur(16px)";
9872
- /**
9873
- * Generate complete CSS for header system from theme config
9874
- *
9875
- * Similar to button system - generates theme-scoped CSS using [data-theme-scope] selector
9876
- */
9877
- function generateHeaderCss(options) {
9878
- const { themeId, theme, responsiveMode = DEFAULT_THEME_RESPONSIVE_MODE } = options;
9879
- const tokens = new TokenResolver(theme);
9880
- const header = theme.header;
9881
- const cssChunks = [];
9882
- const headerContrastTreatment = resolveHeaderContrastTreatment(header);
9883
- const headerNavTextSize = resolveHeaderNavTextSize(header);
9884
- cssChunks.push(generateHeaderRootStyles(header, themeId, tokens));
9885
- cssChunks.push(generateMobileOverlayBackdropFilterFix(themeId, header.variant));
9886
- cssChunks.push(generateHeaderLogoStyles({
9887
- logo: header.logo,
9888
- themeId,
9889
- tokens,
9890
- theme,
9891
- textColor: header.textColor,
9892
- fallbackTextColor: header.navLinkStyle?.colorToken,
9893
- contrastTreatment: headerContrastTreatment ?? void 0,
9894
- useSurfaceTextColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
9895
- }));
9896
- cssChunks.push(generateLogoTextBehaviorStyles(header.logoText, themeId));
9897
- cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
9898
- cssChunks.push(generateDropdownContainerStyles(header, themeId, tokens, theme));
9899
- cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme));
9900
- cssChunks.push(generateDropdownCaretStyles(themeId));
9901
- cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
9902
- cssChunks.push(generateMobilePanelStyles(header, themeId, tokens, theme));
9903
- if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens, responsiveMode));
9904
- cssChunks.push(generateNavContainerStyles(header, themeId, tokens));
9905
- cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
9906
- cssChunks.push(generateCtaGapStyles(header, themeId));
9907
- return cssChunks.filter(Boolean).join("\n\n");
9908
- }
9909
- function resolveHeaderContrastTreatment(header) {
9910
- if (header.navLinkStyle?.contrastTreatment) return header.navLinkStyle.contrastTreatment;
9911
- return isClearSplitHeaderShape(header) ? "soft-glow" : null;
9912
- }
9913
- function resolveHeaderNavTextSize(header) {
9914
- if (header.navLinkStyle?.textSize) return header.navLinkStyle.textSize;
9915
- return isClearSplitHeaderShape(header) ? "lg" : null;
9916
- }
9917
- function isClearSplitHeaderShape(header) {
9918
- const hasSharedFloatingSurface = Boolean(header.container);
9919
- return header.variant === "floating" && (header.navStyle ?? "minimal") === "minimal" && !hasSharedFloatingSurface;
9920
- }
9921
- function isDetachedFloatingHeaderShape(header) {
9922
- return header.variant === "floating" && !header.container;
9923
- }
9924
- /**
9925
- * Generate root header container styles
9926
- */
9927
- function generateHeaderRootStyles(header, themeId, tokens) {
9928
- const selector = `:where([data-theme-scope="${themeId}"]) .header-root`;
9929
- const rules = [];
9930
- const isContainedNav = headerRootPaint(header) === "contained-nav";
9931
- rules.push("position: relative;");
9932
- rules.push("isolation: isolate;");
9933
- const surfaceRules = isContainedNav ? {
9934
- base: [],
9935
- border: []
9936
- } : buildHeaderSurfaceRules(header, tokens);
9937
- const floatingSurfaceBorder = header.variant === "floating";
9938
- if (!floatingSurfaceBorder) rules.push(...surfaceRules.border);
9939
- const basePaintRules = floatingSurfaceBorder ? [...surfaceRules.base, ...surfaceRules.border] : surfaceRules.base;
9940
- const scrolledPaintRules = floatingSurfaceBorder ? surfaceRules.border : [];
9941
- if (header.positioning === "sticky" || header.positioning === "fixed") {
9942
- const shadowVar = getComponentShadowVar(header.shadow?.elevation ?? "none");
9943
- if (shadowVar) rules.push(`box-shadow: ${shadowVar};`);
9944
- }
9945
- const baseBlock = `\n${selector} {\n ${rules.join("\n ")}\n}\n`;
9946
- 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`;
9947
- const scrollTreatmentStyles = generateHeaderScrollTreatmentStyles(header.scrollTreatment, themeId, header.variant, scrolledPaintRules);
9948
- if (isContainedNav || basePaintRules.length === 0) return `${baseBlock}\n${overlayFix}${scrollTreatmentStyles}`;
9949
- return `${baseBlock}\n${renderHeaderPaintTargetRules(getHeaderPaintTargets(header.variant, themeId), basePaintRules)}\n${overlayFix}${scrollTreatmentStyles}`;
9950
- }
9951
- function generateLogoTextBehaviorStyles(logoText, themeId) {
9952
- if (!logoText) return "";
9953
- const selector = `:where([data-theme-scope="${themeId}"]) .header-logo-text`;
9954
- const cssChunks = [];
9955
- const mobileRules = [];
9956
- if (logoText.mobileWrapLines === 1) {
9957
- mobileRules.push("display: block;");
9958
- mobileRules.push("white-space: nowrap;");
9959
- mobileRules.push("overflow: hidden;");
9960
- mobileRules.push("text-overflow: ellipsis;");
9961
- }
9962
- if (logoText.mobileWrapLines === 2) {
9963
- mobileRules.push("display: -webkit-box;");
9964
- mobileRules.push("-webkit-box-orient: vertical;");
9965
- mobileRules.push("-webkit-line-clamp: 2;");
9966
- mobileRules.push("white-space: normal;");
9967
- mobileRules.push("overflow: hidden;");
9968
- mobileRules.push("text-overflow: ellipsis;");
9969
- }
9970
- if (logoText.mobileMaxWidth) mobileRules.push(`max-width: ${{
9971
- xs: "8rem",
9972
- sm: "10rem",
9973
- md: "12rem"
9974
- }[logoText.mobileMaxWidth]};`);
9975
- if (mobileRules.length > 0) cssChunks.push(`@media ${MQ_MD_DOWN} {\n ${selector} {\n ${mobileRules.join("\n ")}\n }\n}`);
9976
- if (logoText.hideOnShrink) {
9977
- const shrinkSelector = `:where([data-theme-scope="${themeId}"]) .rb-header-shrink.header-scrolled .header-logo-text`;
9978
- cssChunks.push(`\n${shrinkSelector} {\n display: none;\n}\n`);
9979
- }
9980
- return cssChunks.join("\n\n");
9981
- }
9982
- /**
9983
- * Generate dropdown menu container styles
9984
- */
9985
- function generateDropdownContainerStyles(header, themeId, tokens, theme) {
9986
- const selector = `:where([data-theme-scope="${themeId}"]) .nav-dropdown-menu`;
9987
- const rules = [];
9988
- const dropdownStyle = header.dropdownStyle;
9989
- rules.push(...NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES);
9990
- const surface = resolveDropdownSurface(header, theme);
9991
- rules.push(`background-color: ${tokens.getColor(surface.backgroundToken)};`);
9992
- rules.push(...surface.declarations(tokens));
9993
- const borderToken = dropdownStyle?.borderColor;
9994
- if (borderToken === null) rules.push(`border: none;`);
9995
- else rules.push(`border: 1px solid ${tokens.getColor(borderToken ?? "border")};`);
9996
- const shadowVar = getComponentShadowVar(dropdownStyle?.shadow ?? "md");
9997
- if (shadowVar) rules.push(`box-shadow: ${shadowVar};`);
9998
- const borderRadius = dropdownStyle?.borderRadius ?? "md";
9999
- rules.push(`border-radius: ${{
10000
- none: "0",
10001
- sm: "0.25rem",
10002
- md: "0.5rem",
10003
- lg: "0.75rem"
10004
- }[borderRadius]};`);
10005
- rules.push(`padding: 0.5rem 0;`);
10006
- return `\n${selector} {\n ${rules.join("\n ")}\n}\n`;
10007
- }
10008
- function generateDropdownLinkStyles(header, themeId, tokens, theme) {
10009
- const configuredDropdownStyle = header.dropdownStyle;
10010
- const textColorToken = resolveDropdownSurface(header, theme).textToken;
10011
- const hoverBgToken = configuredDropdownStyle?.hoverBackground ?? textColorToken;
10012
- const hoverEffects = {
10013
- hover: hoverBgToken === null ? [] : [{
10014
- effectId: "background-on-hover-alpha",
10015
- options: {
10016
- colorToken: hoverBgToken,
10017
- opacity: 12
10018
- }
10019
- }],
10020
- active: hoverBgToken === null ? [] : [{
10021
- effectId: "background-on-hover-alpha",
10022
- options: {
10023
- colorToken: hoverBgToken,
10024
- opacity: 18
10025
- }
10026
- }]
10027
- };
10028
- if (configuredDropdownStyle?.hoverTextColor) {
10029
- hoverEffects.hover?.push({
10030
- effectId: "text-color-change",
10031
- options: { hoverColorToken: configuredDropdownStyle.hoverTextColor }
10032
- });
10033
- hoverEffects.active?.push({
10034
- effectId: "text-color-change",
10035
- options: { hoverColorToken: configuredDropdownStyle.hoverTextColor }
10036
- });
10037
- }
10038
- const baseCSS = generateNavLinkCSS({
10039
- themeId,
10040
- tokens,
10041
- theme,
10042
- style: {
10043
- name: "Dropdown",
10044
- typography: "body",
10045
- fontWeight: configuredDropdownStyle?.fontWeight ?? header.navWeight ?? "medium",
10046
- textTransform: configuredDropdownStyle?.textTransform ?? "none",
10047
- italic: false,
10048
- colorToken: textColorToken,
10049
- padding: "compact",
10050
- borderRadius: "sm",
10051
- effects: hoverEffects
10052
- },
10053
- className: "nav-dropdown-link"
10054
- });
10055
- const additionalRules = [];
10056
- const letterSpacing = configuredDropdownStyle?.letterSpacing ?? "normal";
10057
- if (letterSpacing !== "normal") additionalRules.push(`letter-spacing: ${{
10058
- normal: "0em",
10059
- wide: "0.05em",
10060
- wider: "0.1em"
10061
- }[letterSpacing]};`);
10062
- const textSize = configuredDropdownStyle?.textSize ?? "sm";
10063
- additionalRules.push(`font-size: ${{
10064
- xs: "0.75rem",
10065
- sm: "0.875rem",
10066
- base: "1rem",
10067
- lg: "1.125rem"
10068
- }[textSize]};`);
10069
- if (additionalRules.length > 0) return baseCSS + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${additionalRules.join("\n ")}\n}\n`;
10070
- return baseCSS;
10071
- }
10072
- function generateDropdownCaretStyles(themeId) {
10073
- return `
10074
- ${`:where([data-theme-scope="${themeId}"]) .nav-caret`} {
10075
- width: 0.45rem;
10076
- height: 0.45rem;
10077
- margin-left: 0.5rem;
10078
- border-right: 2px solid currentColor;
10079
- border-bottom: 2px solid currentColor;
10080
- transform: rotate(45deg) translateY(-1px);
10081
- transition: transform 150ms ease;
10082
- }
10083
-
10084
- ${`: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`} {
10085
- transform: rotate(-135deg) translateY(1px);
10086
- }
10087
- `.trim();
10088
- }
10089
- function generateDropdownTriggerOverrides(header, themeId) {
10090
- const navStyle = header.navStyle ?? "minimal";
10091
- if (navStyle !== "underline" && navStyle !== "underline-grow") return "";
10092
- return `
10093
- ${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-trigger.header-nav-link::after`} {
10094
- content: none;
10095
- }
10096
- `.trim();
10097
- }
10098
- /**
10099
- * The dropdown menu and mobile panel share one surface: `dropdownStyle`'s
10100
- * background, with the text candidate (the dropdown's own colour, then the
10101
- * header's nav colour) validated against it through the surface contract. The
10102
- * nav colour is chosen for the header bar, which can be dark or transparent,
10103
- * so it only carries over when it is legible on the menu too.
10104
- */
10105
- function resolveDropdownSurface(header, theme) {
10106
- const backgroundToken = header.dropdownStyle?.background ?? "surface";
10107
- const candidate = header.dropdownStyle?.textColor ?? ((header.navColor ?? header.textColor)?.trim() || "text");
10108
- const foreground = resolveSurfaceForeground({
10109
- type: "color",
10110
- color: backgroundToken,
10111
- textColor: candidate
10112
- }, expandPalette(theme.palette));
10113
- return {
10114
- backgroundToken,
10115
- textToken: foreground.kind === "known" ? foreground.roles.text : candidate,
10116
- declarations: (tokens) => foreground.kind === "known" ? surfaceForegroundDeclarations(surfaceForegroundInputFromResolved(foreground, (token) => tokens.getColor(token))) : [`color: ${tokens.getColor(candidate)};`]
10117
- };
10118
- }
10119
- /**
10120
- * Generate mobile navigation panel styles
10121
- * Uses the same dropdownStyle settings as the desktop dropdown menus
10122
- */
10123
- function generateMobilePanelStyles(header, themeId, tokens, theme) {
10124
- const selector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-panel`;
10125
- const selfSelector = `:where(.nav-mobile-panel[data-theme-scope="${themeId}"])`;
10126
- const surface = resolveDropdownSurface(header, theme);
10127
- const body = renderCssDeclarations([`background-color: ${tokens.getColor(surface.backgroundToken)};`, ...surface.declarations(tokens)]);
10128
- return `\n${selector} {\n ${body}\n}\n\n${selfSelector} {\n ${body}\n}\n`;
10129
- }
10130
- /**
10131
- * Generate nav container styles (pill/glass)
10132
- */
10133
- function generateNavContainerStyles(header, themeId, tokens) {
10134
- const navContainer = header.navContainer;
10135
- const navContainerType = navContainer?.type ?? "none";
10136
- if (!navContainer || navContainerType === "none") return "";
10137
- const selector = `:where([data-theme-scope="${themeId}"]) .header-nav-row`;
10138
- const rules = [];
10139
- if (navContainerType === "pill" || navContainerType === "glass") {
10140
- rules.push("padding: 0.5rem 0.75rem;");
10141
- rules.push("border-radius: 9999px;");
10142
- rules.push("display: inline-flex;");
10143
- rules.push("align-items: center;");
10144
- rules.push("gap: 1.5rem;");
10145
- if (isDetachedFloatingHeaderShape(header)) rules.push("align-self: flex-start;");
10146
- }
10147
- if (navContainerType === "glass") {
10148
- const opacity = resolveFloatingGlassOpacity(header, navContainer.opacity, .15);
10149
- const background = navContainer.tint ? buildTint(tokens.getColor(navContainer.tint), opacity) : buildRgbWhite(opacity);
10150
- rules.push(`background-color: ${background};`);
10151
- rules.push(`backdrop-filter: ${HEADER_BLUR};`);
10152
- rules.push(`-webkit-backdrop-filter: ${HEADER_BLUR};`);
10153
- rules.push("border: 1px solid rgba(255, 255, 255, 0.2);");
10154
- rules.push("box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);");
10155
- } else if (navContainerType === "pill") {
10156
- const opacity = clampOpacity(navContainer.opacity, .15);
10157
- if (navContainer.tint) rules.push(`background-color: ${buildTint(tokens.getColor(navContainer.tint), opacity)};`);
10158
- else rules.push(`background-color: ${tokens.getColor("surface")};`);
10159
- rules.push(`border: 1px solid ${tokens.getColor("border")};`);
10160
- }
10161
- if (rules.length > 0) return `${selector} { ${rules.join(" ")} }`;
10162
- return "";
10163
- }
10164
- /**
10165
- * Generate floating container styles
10166
- */
10167
- function generateFloatingContainerStyles(header, themeId, tokens, responsiveMode) {
10168
- const container = header.container;
10169
- if (!container) return "";
10170
- const selector = `:where([data-theme-scope="${themeId}"]) .header-floating-container`;
10171
- const rules = [];
10172
- const opacity = container.tint === "surface" ? resolveFloatingGlassOpacity(header, container.opacity, .12) : clampOpacity(container.opacity, .12);
10173
- if (container.tint) rules.push(`background-color: ${buildTint(tokens.getColor(container.tint), opacity)};`);
10174
- else rules.push(`background-color: ${buildRgbWhite(opacity)};`);
10175
- rules.push(`backdrop-filter: ${FLOATING_BLUR};`);
10176
- rules.push(`-webkit-backdrop-filter: ${FLOATING_BLUR};`);
10177
- if (container.border) rules.push(`border: 1px solid rgb(255 255 255 / 0.2);`);
10178
- rules.push(`border-radius: ${{
10179
- none: "0",
10180
- sm: "0.375rem",
10181
- md: "0.5rem",
10182
- lg: "0.75rem",
10183
- xl: "1rem",
10184
- "2xl": "1.5rem"
10185
- }[container.rounded]};`);
10186
- 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);`);
10187
- rules.push(`padding: ${{
10188
- sm: "1rem 1.5rem",
10189
- md: "1.5rem 2rem",
10190
- lg: "2rem 2.5rem"
10191
- }[container.padding]};`);
10192
- return `\n${selector} {\n ${rules.join("\n ")}\n}\n${generateFrameMobileSheetStyles(container, themeId, rules, responsiveMode)}`;
10193
- }
10194
- /** The frame owner explicitly opts into an inset sheet on phones. */
10195
- function generateFrameMobileSheetStyles(container, themeId, rules, responsiveMode) {
10196
- if (container.mobileSheet !== "inset") return "";
10197
- return `
10198
- ${phoneAtRule(responsiveMode)} {
10199
- :where([data-theme-scope="${themeId}"]) .header-mobile-bar {
10200
- ${rules.join("\n ")}
10201
- box-sizing: border-box; margin: 12px; width: calc(100% - 24px); min-height: 60px; padding: 10px 16px; align-items: center;
10202
- }
10203
- }`;
10204
- }
10205
- /** The phone breakpoint as a viewport media query, or the site container query in container mode. */
10206
- function phoneAtRule(responsiveMode) {
10207
- const containerQuery = responsiveMode === "container" ? convertMediaQueryToContainerQuery(MQ_MD_DOWN) : null;
10208
- return containerQuery ? `@container ${THEME_RESPONSIVE_CONTAINER_NAME} ${containerQuery}` : `@media ${MQ_MD_DOWN}`;
10209
- }
10210
- /**
10211
- * CTA gap value map — controls left margin on the desktop CTA button
10212
- */
10213
- const HEADER_CTA_GAP_MAP = {
10214
- none: "0",
10215
- tight: "0.5rem",
10216
- compact: "1rem",
10217
- default: "1.5rem",
10218
- relaxed: "2rem",
10219
- spacious: "3rem"
10220
- };
10221
- /**
10222
- * The inverted CTA treatment is contextual to branded header surfaces. It
10223
- * cannot be represented by the generic secondary button role alone because
10224
- * that role is transparent and inherits the surrounding surface foreground.
10225
- * Keep the shared button's structure/effects while making the header own the
10226
- * palette relationship for both desktop and mobile CTAs.
10227
- */
10228
- function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
10229
- if (header.ctaTreatment !== "inverted") return "";
10230
- const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
10231
- const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
10232
- const selectors = `${desktopSelector},\n${mobileSelector}`;
10233
- const hoverSelectors = [
10234
- `${desktopSelector}:hover`,
10235
- `${desktopSelector}[data-force-hover="true"]`,
10236
- `${mobileSelector}:hover`,
10237
- `${mobileSelector}[data-force-hover="true"]`
10238
- ].join(",\n");
10239
- const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
10240
- return `
10241
- ${selectors} {
10242
- background-color: ${tokens.getColor("background")};
10243
- background-image: none;
10244
- color: ${tokens.getColor("onBackground")};
10245
- border-color: currentColor;
10246
- }
10247
-
10248
- ${hoverSelectors} {
10249
- background-color: ${tokens.getColor("surface")};
10250
- background-image: none;
10251
- color: ${tokens.getColor("onSurface")};
10252
- }
10253
-
10254
- ${focusSelectors} {
10255
- outline: 2px solid ${tokens.getColor("onBackground")};
10256
- outline-offset: 2px;
10257
- box-shadow: 0 0 0 4px ${tokens.getColor("background")};
10258
- }
10259
- `;
10260
- }
10261
- /**
10262
- * Generate CTA button gap styles (left margin between nav links and CTA)
10263
- */
10264
- function generateCtaGapStyles(header, themeId) {
10265
- if (!header.ctaGap) return "";
10266
- const value = HEADER_CTA_GAP_MAP[header.ctaGap];
10267
- if (!value) return "";
10268
- return `\n${`:where([data-theme-scope="${themeId}"]) .header-cta`} {\n margin-left: ${value};\n}\n`;
10269
- }
10270
- function clampOpacity(value, fallback) {
10271
- if (typeof value !== "number" || Number.isNaN(value)) return fallback;
10272
- return Math.min(Math.max(value, 0), 1);
10273
- }
10274
- function resolveFloatingGlassOpacity(header, value, fallback) {
10275
- const opacity = clampOpacity(value, fallback);
10276
- return header.variant === "floating" ? Math.max(opacity, .4) : opacity;
10277
- }
10278
- function buildTint(color, opacity) {
10279
- return applyAlpha(color, opacity);
10280
- }
10281
- function buildRgbWhite(opacity) {
10282
- return `rgb(255 255 255 / ${clampOpacity(opacity, 1)})`;
10283
- }
10284
- function applyAlpha(color, opacity) {
10285
- const clamped = clampOpacity(opacity, 1);
10286
- if (color.startsWith("rgb(") && color.endsWith(")")) {
10287
- const inner = color.slice(4, -1).trim();
10288
- return `rgb(${inner.includes("/") ? (inner.split("/")[0] ?? inner).trim() : inner} / ${clamped})`;
10289
- }
10290
- return color;
10291
- }
10292
- //#endregion
10293
- //#region ../theme-core/src/siteChromePlacement.ts
10294
- const SITE_CHROME_PLACEMENT_CLASSES = [
10295
- "rb-sticky",
10296
- "rb-fixed",
10297
- "rb-absolute",
10298
- "rb-relative",
10299
- "rb-top-0",
10300
- "rb-left-0",
10301
- "rb-right-0",
10302
- "rb-bottom-0",
10303
- "rb-z-40",
10304
- "rb-z-50"
10305
- ];
10306
- const HEADER_POSITIONINGS = [
10307
- "static",
10308
- "sticky",
10309
- "fixed"
10310
- ];
10311
- function parseHeaderPositioning(value) {
10312
- return isHeaderPositioning(value) ? value : "static";
10313
- }
10314
- function isHeaderPositioning(value) {
10315
- return typeof value === "string" && HEADER_POSITIONINGS.includes(value);
10316
- }
10317
- function planSiteChromePlacement(positioning) {
10318
- switch (positioning) {
10319
- case "static": return {
10320
- kind: "static",
10321
- headerRootClassName: null,
10322
- standaloneShellClassName: null
10323
- };
10324
- case "sticky": return {
10325
- kind: "sticky",
10326
- headerRootClassName: "rb-sticky rb-top-0",
10327
- standaloneShellClassName: "sticky top-0 z-40 w-full"
10328
- };
10329
- case "fixed": return {
10330
- kind: "fixed",
10331
- headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
10332
- standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
10333
- };
10334
- default: return assertNever(positioning);
10335
- }
10336
- }
10337
- function splitSiteChromePlacementClasses(className) {
10338
- if (!className) return {
10339
- wrapperClasses: "",
10340
- sectionClasses: ""
10341
- };
10342
- const placementClasses = new Set(SITE_CHROME_PLACEMENT_CLASSES);
10343
- const wrapperParts = [];
10344
- const sectionParts = [];
10345
- for (const cls of className.split(/\s+/).filter(Boolean)) if (placementClasses.has(cls)) wrapperParts.push(cls);
10346
- else sectionParts.push(cls);
10347
- return {
10348
- wrapperClasses: wrapperParts.join(" "),
10349
- sectionClasses: sectionParts.join(" ")
10350
- };
10351
- }
10352
- //#endregion
10353
- //#region ../theme-core/src/responsiveDisplay.ts
10354
- const BASE_DISPLAY_CLASSES = {
10355
- block: "rb-block",
10356
- flex: "rb-flex",
10357
- "inline-block": "rb-inline-block",
10358
- "inline-flex": "rb-inline-flex",
10359
- grid: "rb-grid"
10360
- };
10361
- const LARGE_DISPLAY_CLASSES = {
10362
- block: "rb-lg-block",
10363
- flex: "rb-lg-flex",
10364
- "inline-block": "rb-lg-inline-block",
10365
- "inline-flex": "rb-lg-inline-flex",
10366
- grid: "rb-lg-grid"
10367
- };
10368
- /**
10369
- * Build a class pair for content that should render below the large breakpoint.
10370
- *
10371
- * The base display class is always included so callers cannot accidentally
10372
- * express "mobile-only" visibility without a display mode for the visible state.
10373
- */
10374
- function mobileOnlyDisplay(display) {
10375
- return `${BASE_DISPLAY_CLASSES[display]} rb-lg-hidden`;
10376
- }
10377
- /**
10378
- * Build a class pair for content that should render from the large breakpoint up.
10379
- *
10380
- * The hidden base class ensures the element stays out of the mobile layout until
10381
- * the large-breakpoint display class takes over.
10382
- */
10383
- function desktopOnlyDisplay(display) {
10384
- return `rb-hidden ${LARGE_DISPLAY_CLASSES[display]}`;
10385
- }
10386
- //#endregion
10387
- //#region ../theme-core/src/siteChromeOverlayClearance.ts
10388
- const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
10389
- //#endregion
10390
- export { arrangementLookHooks as A, resolveEffectiveKnobs as B, getGradientPreset as C, generatedDesignOptionCatalog as D, normalizeLayoutVariantForPolicy as E, boundaryRuntimeMetricsForDecorativeTransition as F, cardListKnobBlocks as H, anglePolygonCss as I, transitionCatalogueEntries as L, resolveItemSurface as M, resolveLookSlotSurfaces as N, generateFooterCss as O, headerRootPaint as P, gradientScrimSamples as R, gradientToCss as S, deriveSiteStyleBlockPolicy as T, cardListFamilyBlocks as V, 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, scrimTone 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 };