@riverbankcms/sdk 0.160.0 → 0.162.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 (209) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
  2. package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
  3. package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
  4. package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
  5. package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
  6. package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
  8. package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
  10. package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
  11. package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
  12. package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
  13. package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
  14. package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
  15. package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
  16. package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
  17. package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
  18. package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
  19. package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
  20. package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  43. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  45. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  46. package/dist/_dts/sdk/src/server.d.ts +5 -5
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
  49. package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
  50. package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
  51. package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
  52. package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
  53. package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
  54. package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
  55. package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
  56. package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
  57. package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
  58. package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
  59. package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
  60. package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
  61. package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
  62. package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
  63. package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
  64. package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
  65. package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
  66. package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
  67. package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
  68. package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
  69. package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
  70. package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
  72. package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
  73. package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
  74. package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
  75. package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
  76. package/dist/client/bookings.mjs +5 -5
  77. package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
  78. package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
  79. package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
  80. package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
  81. package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
  82. package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
  83. package/dist/client/client.mjs +37 -71
  84. package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
  85. package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
  86. package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
  87. package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
  88. package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
  89. package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
  90. package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
  91. package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
  92. package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
  93. package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
  94. package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
  95. package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
  96. package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
  97. package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
  98. package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
  99. package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
  100. package/dist/client/gifting/client.mjs +3 -3
  101. package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
  102. package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
  103. package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
  104. package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
  105. package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
  106. package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
  107. package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
  108. package/dist/client/portal/client.mjs +1116 -85
  109. package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
  110. package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
  111. package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
  112. package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
  113. package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
  114. package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
  115. package/dist/client/rendering/client.mjs +28 -28
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +18 -9
  118. package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
  120. package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
  121. package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
  122. package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
  124. package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
  125. package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
  126. package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
  127. package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
  128. package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
  129. package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
  130. package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
  131. package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
  132. package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
  133. package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
  134. package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
  135. package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
  136. package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
  137. package/dist/preview-next/before-render.mjs +7 -6
  138. package/dist/preview-next/chrome.css +2 -0
  139. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
  140. package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
  141. package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
  142. package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
  143. package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
  146. package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
  147. package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
  148. package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
  149. package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
  150. package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
  151. package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
  152. package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
  153. package/dist/preview-next/client/runtime.mjs +3 -3
  154. package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
  155. package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
  156. package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
  157. package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
  158. package/dist/preview-next/editor-base.css +2 -2
  159. package/dist/preview-next/keepAlive.mjs +3 -3
  160. package/dist/preview-next/middleware.mjs +7 -3
  161. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  162. package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
  163. package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
  164. package/dist/preview-next/session.mjs +1 -1
  165. package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
  166. package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
  167. package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
  168. package/dist/server/config-validation.mjs +1 -1
  169. package/dist/server/config.mjs +2 -2
  170. package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
  171. package/dist/server/index.mjs +3 -3
  172. package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
  173. package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
  174. package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
  175. package/dist/server/next.mjs +9 -9
  176. package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
  177. package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
  178. package/dist/server/page-converter.mjs +1 -1
  179. package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
  180. package/dist/server/prebuild.mjs +1 -1
  181. package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
  182. package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
  183. package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
  184. package/dist/server/rendering/server.mjs +4 -4
  185. package/dist/server/rendering.mjs +8 -8
  186. package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
  187. package/dist/server/routing.mjs +1 -1
  188. package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
  189. package/dist/server/server.mjs +3 -3
  190. package/dist/server/site-styles-DrkprQPL.mjs +755 -0
  191. package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
  192. package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
  193. package/dist/server/theme-bridge.mjs +1 -1
  194. package/dist/server/theme.mjs +1 -1
  195. package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
  196. package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
  197. package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
  198. package/dist/styles/index.css +1029 -41
  199. package/package.json +1 -1
  200. package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
  201. package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
  202. package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
  203. package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
  204. package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
  205. package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
  206. package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
  207. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
  208. package/dist/server/loadPage-DUPP51C-.mjs +0 -2
  209. package/dist/server/media-CcHwZkdJ.mjs +0 -243
@@ -0,0 +1,755 @@
1
+ import { $n as resolveConcreteColorHex, Ft as asDesignBlockId, G as cardRoleSchema, Ht as assertNever, Ln as surfaceToneFromForegroundToken, Lt as asDesignPageId, Mt as asBlockContentVersionId, Nt as asBlockOrderIndex, Q as logoSizePolicyValues, Qn as scrimTone, Vt as asSiteStyleId, Y as headerInteractionPaletteValues, Z as brandDisplayModeValues, Zn as gradientScrimSamples, _r as parseEditorSessionGeneration, dr as parseThemeColorToken, fr as themeColorShadeSteps, ht as runtimeBoxBackgroundSchema, mn as resolveSurfaceForeground, n as headerPositioningValues, rn as plainFrame, zt as asLayoutVariantKey } from "./schema-BiqpDRwB.mjs";
2
+ import { F as boundaryRuntimeMetricsForDecorativeTransition, N as pageDesignDecisionsV2Schema, O as generatedDesignOptionCatalog, S as offeredSiteStyles, c as headerNavTypographyPreferenceValues, o as defaultHeaderNavPreferences, s as headerNavFontSizePreferenceValues, x as curatedSiteStyleIdValues } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
3
+ import { z } from "zod";
4
+ //#region ../theme-core/src/site-styles/blockFlow.ts
5
+ function defineBlockDesignMetadata(input) {
6
+ const layoutProfiles = (input.layoutProfiles ?? []).map((profile) => ({
7
+ ...profile,
8
+ variantKey: asLayoutVariantKey(profile.variantKey)
9
+ }));
10
+ assertUniqueLayoutProfileKeys(layoutProfiles);
11
+ return {
12
+ flow: input.flow,
13
+ layoutProfiles
14
+ };
15
+ }
16
+ function assertUniqueLayoutProfileKeys(profiles) {
17
+ const seen = /* @__PURE__ */ new Set();
18
+ const duplicates = profiles.flatMap((profile) => {
19
+ if (seen.has(profile.variantKey)) return [profile.variantKey];
20
+ seen.add(profile.variantKey);
21
+ return [];
22
+ });
23
+ if (duplicates.length > 0) throw new Error(`Duplicate block layout design profiles: ${duplicates.join(", ")}`);
24
+ }
25
+ //#endregion
26
+ //#region ../theme-core/src/site-styles/backgroundAppearance.ts
27
+ const backgroundAppearanceQuickColorTokenNames = [
28
+ "background",
29
+ "surface",
30
+ "muted",
31
+ "primary",
32
+ "secondary",
33
+ "accent"
34
+ ];
35
+ const backgroundAppearanceBaseColorTokenNames = [
36
+ "background",
37
+ "surface",
38
+ "surfaceAlt",
39
+ "muted",
40
+ "primary",
41
+ "secondary",
42
+ "accent",
43
+ "neutral"
44
+ ];
45
+ const backgroundAppearanceShadeableColorTokenNames = [
46
+ "primary",
47
+ "secondary",
48
+ "accent",
49
+ "neutral"
50
+ ];
51
+ const backgroundAppearanceColorTokenNames = uniqueStrings([...backgroundAppearanceBaseColorTokenNames, ...backgroundAppearanceShadeableColorTokenNames.flatMap((name) => themeColorShadeSteps.map((shade) => `${name}-${shade}`))]);
52
+ backgroundAppearanceColorTokenNames.filter((tokenName) => !backgroundAppearanceQuickColorTokenNames.includes(tokenName));
53
+ const backgroundAppearanceColorTokenNameSet = new Set(backgroundAppearanceColorTokenNames);
54
+ function parseBackgroundAppearanceColorToken(value) {
55
+ if (typeof value !== "string") return null;
56
+ const normalized = value.trim();
57
+ if (!backgroundAppearanceColorTokenNameSet.has(normalized)) return null;
58
+ return parseThemeColorToken(normalized);
59
+ }
60
+ function uniqueStrings(values) {
61
+ return Array.from(new Set(values));
62
+ }
63
+ //#endregion
64
+ //#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
65
+ function parseCanonicalRuntimeBackground(content) {
66
+ const background = readRecord(readRecord(content._sectionStyles)?.background);
67
+ if (!background) return { kind: "none" };
68
+ const parsed = runtimeBoxBackgroundSchema.safeParse(background);
69
+ if (!parsed.success) return { kind: "none" };
70
+ return parsed.data.contentOwner === "page-design-editor" ? {
71
+ kind: "page-design-override",
72
+ background: parsed.data
73
+ } : {
74
+ kind: "block-authored",
75
+ background: parsed.data
76
+ };
77
+ }
78
+ function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
79
+ if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
80
+ if (rhythm !== void 0) return rhythmBackground(rhythm);
81
+ return {
82
+ kind: "content-media",
83
+ background: source.background,
84
+ ground: {
85
+ type: "color",
86
+ color: arrangementHeroPhoto?.fallbackToken ?? "background",
87
+ textColor: source.background.textColor,
88
+ headingColor: source.background.headingColor,
89
+ linkColor: source.background.linkColor,
90
+ supportingColor: source.background.supportingColor
91
+ }
92
+ };
93
+ }
94
+ if (source.kind === "page-design-override") return {
95
+ kind: "override",
96
+ background: source.background
97
+ };
98
+ if (isAuthoredMedia(source)) return {
99
+ kind: "authored-media",
100
+ background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
101
+ };
102
+ if (lookDefault) return {
103
+ kind: "look-surface",
104
+ background: lookDefault
105
+ };
106
+ if (source.kind === "block-authored") return {
107
+ kind: "authored-colour",
108
+ background: source.background
109
+ };
110
+ return rhythmBackground(rhythm);
111
+ }
112
+ function resolveSectionForeground(background, palette) {
113
+ return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
114
+ }
115
+ /** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
116
+ function sectionForegroundBackground(resolved, palette) {
117
+ if (resolved.kind === "base") return null;
118
+ if (resolved.kind !== "content-media") return resolved.background;
119
+ const original = resolveSurfaceForeground(resolved.background, palette);
120
+ const measured = resolveSurfaceForeground(resolved.ground, palette);
121
+ if (original.kind === "unknown" || measured.kind === "unknown") return resolved.background;
122
+ return [
123
+ "text",
124
+ "heading",
125
+ "link",
126
+ "supporting"
127
+ ].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
128
+ }
129
+ /** One photo-placement decision for legacy and arrangement hero renderers. */
130
+ function heroPhotoPaintsGround(variant) {
131
+ return ![
132
+ "split",
133
+ "splitReverse",
134
+ "headline-row",
135
+ "copy-over-gallery",
136
+ "page-head"
137
+ ].includes(variant ?? "classic");
138
+ }
139
+ function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
140
+ const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
141
+ const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
142
+ if (paintsBand && !lookScrim) return authored;
143
+ const merged = runtimeBoxBackgroundSchema.safeParse({
144
+ ...lookDefault,
145
+ type: authored.type,
146
+ image: authored.image,
147
+ objectFit: authored.objectFit,
148
+ scale: authored.scale,
149
+ position: authored.position,
150
+ ...lookScrim ? { overlay: lookScrim } : {}
151
+ });
152
+ return merged.success ? merged.data : authored;
153
+ }
154
+ function readRecord(value) {
155
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
156
+ }
157
+ function heroPhotoIsContent(source, photo, hasArrangementGround) {
158
+ return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
159
+ }
160
+ function isAuthoredMedia(source) {
161
+ return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
162
+ }
163
+ function rhythmBackground(background) {
164
+ return background ? {
165
+ kind: "rhythm",
166
+ background
167
+ } : { kind: "base" };
168
+ }
169
+ /**
170
+ * Semantic section grounds: background/base -> light; muted/surface bands ->
171
+ * band; primary/secondary/accent (including pop) -> brand; text/inverse and
172
+ * numbered deep shades -> deep. Media and gradients use the existing resolved
173
+ * scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
174
+ * over a light veil -> light. Unclassified/no veil defaults to light.
175
+ * Background ownership (override, authored, Look or rhythm) never changes tone.
176
+ */
177
+ const solidGrounds = {
178
+ background: "light",
179
+ muted: "band",
180
+ surface: "band",
181
+ primary: "brand",
182
+ secondary: "brand",
183
+ accent: "brand",
184
+ text: "deep"
185
+ };
186
+ function deriveSectionGround(resolved, palette) {
187
+ if (resolved.kind === "base") return "light";
188
+ const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
189
+ const solid = solidSectionGround(background);
190
+ if (solid) return solid;
191
+ return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
192
+ }
193
+ function solidSectionGround(background) {
194
+ if (background.type !== "color") return null;
195
+ const color = background.color ?? "background";
196
+ return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
197
+ }
198
+ function sectionForegroundTone(resolved, palette) {
199
+ const foreground = resolveSectionForeground(resolved, palette);
200
+ return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
201
+ }
202
+ function sectionVeil(background) {
203
+ switch (background.type) {
204
+ case "color": return null;
205
+ case "image":
206
+ case "video": return background.overlay;
207
+ case "gradient": return {
208
+ type: "gradient",
209
+ gradient: background.gradient,
210
+ opacity: 1
211
+ };
212
+ }
213
+ }
214
+ function sectionScrimSamples(background, palette) {
215
+ const overlay = sectionVeil(background);
216
+ if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
217
+ if (overlay?.type !== "color") return [];
218
+ const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
219
+ return hex ? [{
220
+ hex,
221
+ alpha: overlay.opacity ?? 1
222
+ }] : [];
223
+ }
224
+ //#endregion
225
+ //#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
226
+ const backgroundToken = requireThemeColorToken("background");
227
+ /**
228
+ * Classifies a section from its final render content. `_sectionStyles`
229
+ * already holds the effective background (Look default, page-design override
230
+ * and block-authored media merged by `resolveSectionBackground`), so this only
231
+ * reads it and never re-decides precedence. A missing or unparseable
232
+ * background is the page background, as it is for the renderer.
233
+ */
234
+ function boundaryEndpointForSectionContent(content) {
235
+ const background = parseCanonicalRuntimeBackground(content);
236
+ if (background.kind === "none") return {
237
+ kind: "paint",
238
+ token: backgroundToken
239
+ };
240
+ const effective = background.background;
241
+ switch (effective.type) {
242
+ case "color": {
243
+ if (effective.color === null || effective.color === void 0) return {
244
+ kind: "paint",
245
+ token: backgroundToken
246
+ };
247
+ const token = parseThemeColorToken(effective.color);
248
+ return token ? {
249
+ kind: "paint",
250
+ token
251
+ } : {
252
+ kind: "unpainted",
253
+ reason: "literal-color"
254
+ };
255
+ }
256
+ case "gradient": return {
257
+ kind: "unpainted",
258
+ reason: "gradient"
259
+ };
260
+ case "image":
261
+ case "video": return {
262
+ kind: "unpainted",
263
+ reason: "media"
264
+ };
265
+ default: return assertNever(effective, "Unhandled section background type");
266
+ }
267
+ }
268
+ /**
269
+ * Reads both facts from final render content in one place. `_frameStyles` is
270
+ * the compiled frame; content without one (no page design, an SDK block)
271
+ * draws a plain frame.
272
+ */
273
+ function sectionFactsForContent(content) {
274
+ return {
275
+ endpoint: boundaryEndpointForSectionContent(content),
276
+ frame: frameKindForContent(content)
277
+ };
278
+ }
279
+ function frameKindForContent(content) {
280
+ const frameStyles = content._frameStyles;
281
+ const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
282
+ return kind === "panel" || kind === "flush-panel" ? kind : "plain";
283
+ }
284
+ /**
285
+ * The frame rule: a flush panel owns the edge it runs to, so no break is
286
+ * drawn next to one. The single home for this rule; the generated
287
+ * pipeline's budget and the site-style lab ask it with their plan frames.
288
+ */
289
+ function frameNotShownReason(previous, next) {
290
+ return previous === "flush-panel" || next === "flush-panel" ? "flush-panel" : null;
291
+ }
292
+ /**
293
+ * Decides whether and how a join draws. The frame rule wins before paint is
294
+ * considered; two unpainted sides show nothing.
295
+ */
296
+ function composeBoundary(previous, next) {
297
+ const frameReason = frameNotShownReason(previous.frame, next.frame);
298
+ if (frameReason) return {
299
+ kind: "not-shown",
300
+ reason: frameReason
301
+ };
302
+ const from = previous.endpoint;
303
+ const to = next.endpoint;
304
+ if (from.kind === "paint") return {
305
+ kind: "shown",
306
+ composition: to.kind === "paint" ? {
307
+ kind: "paint-to-paint",
308
+ from: from.token,
309
+ to: to.token
310
+ } : {
311
+ kind: "paint-to-unpainted",
312
+ from: from.token
313
+ }
314
+ };
315
+ return to.kind === "paint" ? {
316
+ kind: "shown",
317
+ composition: {
318
+ kind: "unpainted-to-paint",
319
+ to: to.token
320
+ }
321
+ } : {
322
+ kind: "not-shown",
323
+ reason: "both-unpainted"
324
+ };
325
+ }
326
+ /**
327
+ * Placement, reserves and paint for a shown boundary, derived from the
328
+ * composition and the catalogue's metrics for the treatment.
329
+ */
330
+ function boundaryLayout(intent, composition) {
331
+ const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
332
+ switch (composition.kind) {
333
+ case "paint-to-paint": return {
334
+ placement: "centred",
335
+ reserves: {
336
+ before: metrics.reserveCss,
337
+ after: metrics.reserveCss
338
+ },
339
+ paint: {
340
+ band: composition.from,
341
+ shape: composition.to
342
+ }
343
+ };
344
+ case "unpainted-to-paint": return {
345
+ placement: "previous",
346
+ reserves: {
347
+ before: metrics.heightCss,
348
+ after: null
349
+ },
350
+ paint: {
351
+ band: null,
352
+ shape: composition.to
353
+ }
354
+ };
355
+ case "paint-to-unpainted": return {
356
+ placement: "next",
357
+ reserves: {
358
+ before: null,
359
+ after: metrics.heightCss
360
+ },
361
+ paint: {
362
+ band: null,
363
+ shape: composition.from
364
+ }
365
+ };
366
+ default: return assertNever(composition, "Unhandled boundary composition");
367
+ }
368
+ }
369
+ function requireThemeColorToken(value) {
370
+ const token = parseThemeColorToken(value);
371
+ if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
372
+ return token;
373
+ }
374
+ //#endregion
375
+ //#region ../theme-core/src/site-styles/siteChromeBackgrounds.ts
376
+ const siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
377
+ const quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
378
+ siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
379
+ function parseSiteChromeBackgroundColorToken(value) {
380
+ const token = parseBackgroundAppearanceColorToken(value);
381
+ return token ? token : null;
382
+ }
383
+ function toSiteChromeBackgroundColorTokens(tokenNames) {
384
+ return tokenNames.flatMap((name) => {
385
+ const token = parseSiteChromeBackgroundColorToken(name);
386
+ return token ? [token] : [];
387
+ });
388
+ }
389
+ const backgroundColorTokenSchema = z.unknown().transform((value, ctx) => {
390
+ const token = parseSiteChromeBackgroundColorToken(value);
391
+ if (token === null) {
392
+ ctx.addIssue({
393
+ code: "custom",
394
+ message: "Unknown site chrome background colour token"
395
+ });
396
+ return z.NEVER;
397
+ }
398
+ return token;
399
+ });
400
+ const siteChromeBackgroundOverrideSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("default") }).strict(), z.object({
401
+ kind: z.literal("color"),
402
+ token: backgroundColorTokenSchema
403
+ }).strict()]);
404
+ z.object({
405
+ background: siteChromeBackgroundOverrideSchema,
406
+ navigationLayout: z.enum(["inline-wrap", "stack"])
407
+ }).strict();
408
+ z.object({ background: siteChromeBackgroundOverrideSchema }).strict();
409
+ //#endregion
410
+ //#region ../theme-core/src/site-styles/compilationPlan.ts
411
+ const defaultHeaderBrandPreferences = {
412
+ brandDisplay: "auto",
413
+ logoSize: "auto"
414
+ };
415
+ //#endregion
416
+ //#region ../theme-core/src/site-styles/resolver.ts
417
+ const blockDesignFallback = {
418
+ sectionSurface: "base",
419
+ contentFrame: plainFrame,
420
+ sectionHeight: "default",
421
+ heroLegibility: "none",
422
+ imageSurfaceTreatment: { kind: "none" },
423
+ imageSurfaceMotion: "static",
424
+ tileTreatment: "default",
425
+ eventListTreatment: "plain",
426
+ eyebrowTreatment: "plain",
427
+ accordionIconTreatment: null,
428
+ composition: null
429
+ };
430
+ blockDesignFallback.sectionSurface, blockDesignFallback.contentFrame, blockDesignFallback.sectionHeight, blockDesignFallback.heroLegibility, blockDesignFallback.imageSurfaceTreatment, blockDesignFallback.imageSurfaceMotion, blockDesignFallback.tileTreatment, blockDesignFallback.eventListTreatment, blockDesignFallback.eyebrowTreatment, blockDesignFallback.accordionIconTreatment, blockDesignFallback.composition;
431
+ //#endregion
432
+ //#region ../theme-core/src/site-styles/headerBrandPresentation.ts
433
+ /**
434
+ * Whether the header wears a brand presentation at all (#1318 Phase 4c).
435
+ *
436
+ * `applyHeaderBrandPresentation` is unconditional today: given a logo context
437
+ * it always writes a `logo` object carrying a resolved display, size and
438
+ * accommodation. That makes "this header has no brand presentation block" —
439
+ * which is what several live sites persist, including one whose site *does*
440
+ * have a logo asset — a state the preference record could not express, so a
441
+ * recompile would silently give the site a logo treatment it has never
442
+ * rendered.
443
+ *
444
+ * This is the third field in this phase with that shape, after the interaction
445
+ * palette and the nav text size: the persisted bytes carry intent the reader
446
+ * cannot say, so the recompile "corrects" it. The fix is the same one — widen
447
+ * the closed vocabulary with a named member and derive it by baseline
448
+ * comparison — and it is a *widening*, not a restyle: `'recommended'` is the
449
+ * default and reproduces today's behaviour exactly, so no row whose bytes carry
450
+ * a presentation compiles differently for `'plain'` existing.
451
+ *
452
+ * `'plain'` is deliberately not "preserve whatever bytes are there". It is a
453
+ * constructive instruction — *write no presentation block* — so Phase 4e's
454
+ * compiler, which builds the header from nothing, can produce it.
455
+ */
456
+ const headerBrandPresentationValues = ["recommended", "plain"];
457
+ defaultHeaderBrandPreferences.brandDisplay, defaultHeaderBrandPreferences.logoSize, defaultHeaderNavPreferences.typography, defaultHeaderNavPreferences.fontSize, defaultHeaderNavPreferences.interactionPalette;
458
+ //#endregion
459
+ //#region ../theme-core/src/site-styles/generatedSchemas.ts
460
+ function uniqueNonEmpty(values) {
461
+ const uniqueValues = [...new Set(values)];
462
+ const firstValue = uniqueValues[0];
463
+ if (!firstValue) throw new Error("Expected at least one generated schema option.");
464
+ return [firstValue, ...uniqueValues.slice(1)];
465
+ }
466
+ const generatedPanelTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "panel").map((frame) => frame.treatment));
467
+ const generatedFlushTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.treatment));
468
+ const generatedFlushBleeds = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed));
469
+ const generatedPanelFrameSchema = z.object({
470
+ kind: z.literal("panel"),
471
+ treatment: z.enum(generatedPanelTreatments)
472
+ }).strict();
473
+ const generatedFlushPanelFrameSchema = z.object({
474
+ kind: z.literal("flush-panel"),
475
+ treatment: z.enum(generatedFlushTreatments),
476
+ bleed: z.enum(generatedFlushBleeds)
477
+ }).strict();
478
+ const generatedContentFrameIntentSchema = z.discriminatedUnion("kind", [
479
+ z.object({ kind: z.literal("plain") }).strict(),
480
+ generatedPanelFrameSchema,
481
+ generatedFlushPanelFrameSchema
482
+ ]);
483
+ const generatedSiteStyleIdSchema = z.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
484
+ function generatedChoiceSchema(valueSchema) {
485
+ return z.discriminatedUnion("kind", [z.object({
486
+ source: z.literal("generated"),
487
+ kind: z.literal("auto")
488
+ }).strict(), z.object({
489
+ source: z.literal("generated"),
490
+ kind: z.literal("explicit"),
491
+ value: valueSchema
492
+ }).strict()]);
493
+ }
494
+ const generatedBlockDesignIntentSchema = z.object({
495
+ sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
496
+ contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
497
+ cardRole: generatedChoiceSchema(cardRoleSchema),
498
+ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
499
+ emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
500
+ }).strict();
501
+ const generatedMediaCompositionIntentSchema = z.enum([
502
+ "none",
503
+ "supporting",
504
+ "dominant"
505
+ ]);
506
+ const generatedDecorativeCompositionIntentSchema = z.enum(["none", "supporting"]);
507
+ const generatedHeroLegibilityStrategySchema = z.enum(["none", "scrim-gradient"]);
508
+ const generatedBlockMediaIntentSchema = z.object({
509
+ media: generatedMediaCompositionIntentSchema,
510
+ decorative: generatedDecorativeCompositionIntentSchema,
511
+ heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
512
+ }).strict();
513
+ const generatedBoundaryIntentSchema = z.object({ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)) }).strict();
514
+ const generatedPageDesignBlockIntentSchema = z.object({
515
+ blockId: z.string().min(1),
516
+ blockKind: z.string().min(1),
517
+ purpose: z.string().min(1),
518
+ design: generatedBlockDesignIntentSchema,
519
+ mediaIntent: generatedBlockMediaIntentSchema,
520
+ boundaryIntent: generatedBoundaryIntentSchema
521
+ }).strict();
522
+ z.object({
523
+ siteStyleId: generatedSiteStyleIdSchema,
524
+ blocks: z.array(generatedPageDesignBlockIntentSchema)
525
+ }).strict();
526
+ //#endregion
527
+ //#region ../theme-core/src/site-styles/headerPreferencesPersistence.ts
528
+ const logoTextIntentSchema = z.object({
529
+ mobileMaxWidth: z.enum([
530
+ "xs",
531
+ "sm",
532
+ "md"
533
+ ]).optional(),
534
+ mobileWrapLines: z.union([z.literal(1), z.literal(2)]).optional(),
535
+ hideOnShrink: z.boolean().optional()
536
+ }).strict();
537
+ const structureSchema = z.object({
538
+ positioning: z.union([z.literal("inherit"), z.enum(headerPositioningValues)]),
539
+ shrinkOnScroll: z.union([z.literal("inherit"), z.boolean()]),
540
+ logoText: z.union([
541
+ z.literal("inherit"),
542
+ z.literal("none"),
543
+ logoTextIntentSchema
544
+ ])
545
+ }).strict();
546
+ const headerPreferencesShape = {
547
+ brandPresentation: z.enum(headerBrandPresentationValues),
548
+ brandDisplay: z.enum(brandDisplayModeValues),
549
+ logoSize: z.enum(logoSizePolicyValues),
550
+ navFontRole: z.enum(headerNavTypographyPreferenceValues),
551
+ navTextSize: z.enum(headerNavFontSizePreferenceValues),
552
+ interactionPalette: z.union([z.literal("recommended"), z.enum(headerInteractionPaletteValues)]),
553
+ background: siteChromeBackgroundOverrideSchema,
554
+ structure: structureSchema
555
+ };
556
+ z.object(headerPreferencesShape).strict();
557
+ z.object(headerPreferencesShape).omit({
558
+ brandPresentation: true,
559
+ structure: true
560
+ }).strict();
561
+ z.object(headerPreferencesShape).pick({
562
+ brandPresentation: true,
563
+ structure: true
564
+ }).strict();
565
+ //#endregion
566
+ //#region ../theme-core/src/site-styles/pageDesignAuthority.ts
567
+ const nonEmptyStringSchema = z.string().min(1);
568
+ const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
569
+ const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
570
+ const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
571
+ const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
572
+ const publishedPageBlockSnapshotSchema = z.object({
573
+ kind: z.literal("published-block-content"),
574
+ blockId: designBlockIdSchema,
575
+ contentVersionId: blockContentVersionIdSchema,
576
+ identifier: z.string().nullable(),
577
+ blockKind: nonEmptyStringSchema,
578
+ orderIndex: blockOrderIndexSchema
579
+ }).strict();
580
+ const draftPageBlockSnapshotSchema = z.object({
581
+ kind: z.literal("draft-block-content"),
582
+ blockId: designBlockIdSchema,
583
+ contentVersionId: blockContentVersionIdSchema.nullable(),
584
+ identifier: z.string().nullable(),
585
+ blockKind: nonEmptyStringSchema,
586
+ orderIndex: blockOrderIndexSchema
587
+ }).strict();
588
+ const missingPageBlockSnapshotSchema = z.object({
589
+ kind: z.literal("missing-block-content"),
590
+ blockId: designBlockIdSchema,
591
+ identifier: z.string().nullable(),
592
+ blockKind: nonEmptyStringSchema,
593
+ orderIndex: blockOrderIndexSchema,
594
+ reason: z.enum([
595
+ "new-block",
596
+ "deleted-content-version",
597
+ "unpublished-block"
598
+ ])
599
+ }).strict();
600
+ const pageBlockSnapshotSchema = z.discriminatedUnion("kind", [
601
+ publishedPageBlockSnapshotSchema,
602
+ draftPageBlockSnapshotSchema,
603
+ missingPageBlockSnapshotSchema
604
+ ]);
605
+ const publishedPageBlockSequenceSchema = z.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
606
+ const draftPageBlockSequenceSchema = z.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
607
+ const publishedPageDesignVersionDataV1Schema = z.object({
608
+ schemaVersion: z.literal(1),
609
+ stage: z.literal("published"),
610
+ pageId: designPageIdSchema,
611
+ blockSequence: publishedPageBlockSequenceSchema
612
+ }).strict();
613
+ const draftPageDesignVersionDataV1Schema = z.object({
614
+ schemaVersion: z.literal(1),
615
+ stage: z.literal("draft"),
616
+ pageId: designPageIdSchema,
617
+ blockSequence: draftPageBlockSequenceSchema
618
+ }).strict();
619
+ z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
620
+ function validateBlockSequence(snapshots, ctx) {
621
+ collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
622
+ }
623
+ function collectBlockSequenceIssues(snapshots) {
624
+ const indexed = snapshots.map((snapshot, index) => ({
625
+ ...snapshot,
626
+ index
627
+ }));
628
+ const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
629
+ const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
630
+ return indexed.flatMap((snapshot, index) => {
631
+ const previous = snapshots[index - 1]?.orderIndex;
632
+ return [
633
+ ...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
634
+ code: z.ZodIssueCode.custom,
635
+ message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
636
+ path: [index, "blockId"]
637
+ }] : [],
638
+ ...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
639
+ code: z.ZodIssueCode.custom,
640
+ message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
641
+ path: [index, "orderIndex"]
642
+ }] : [],
643
+ ...previous !== void 0 && snapshot.orderIndex <= previous ? [{
644
+ code: z.ZodIssueCode.custom,
645
+ message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
646
+ path: [index, "orderIndex"]
647
+ }] : []
648
+ ];
649
+ });
650
+ }
651
+ //#endregion
652
+ //#region ../theme-core/src/site-styles/tokenRecipes.ts
653
+ const themeTokenRecipeOptions = {
654
+ palette: [
655
+ "brand-led",
656
+ "warm-neutral",
657
+ "high-contrast",
658
+ "soft-natural"
659
+ ],
660
+ contrast: [
661
+ "standard",
662
+ "strong",
663
+ "maximum"
664
+ ],
665
+ radius: [
666
+ "square",
667
+ "soft",
668
+ "rounded",
669
+ "pill"
670
+ ],
671
+ shadow: [
672
+ "none",
673
+ "subtle",
674
+ "layered"
675
+ ],
676
+ typography: [
677
+ "serif-editorial",
678
+ "clean-sans",
679
+ "classic-serif",
680
+ "friendly-sans"
681
+ ],
682
+ spacing: [
683
+ "compact",
684
+ "regular",
685
+ "airy"
686
+ ],
687
+ motion: [
688
+ "none",
689
+ "subtle",
690
+ "expressive"
691
+ ]
692
+ };
693
+ z.object({
694
+ palette: z.enum(themeTokenRecipeOptions.palette),
695
+ contrast: z.enum(themeTokenRecipeOptions.contrast),
696
+ radius: z.enum(themeTokenRecipeOptions.radius),
697
+ shadow: z.enum(themeTokenRecipeOptions.shadow),
698
+ typography: z.enum(themeTokenRecipeOptions.typography),
699
+ spacing: z.enum(themeTokenRecipeOptions.spacing),
700
+ motion: z.enum(themeTokenRecipeOptions.motion)
701
+ });
702
+ z.number().int().nonnegative().brand();
703
+ //#endregion
704
+ //#region ../theme-core/src/site-styles/pageEditAdmission.ts
705
+ const generationSchema = z.string().transform((value, ctx) => {
706
+ const result = parseEditorSessionGeneration(value);
707
+ if (result.ok) return result.value;
708
+ ctx.addIssue({
709
+ code: "custom",
710
+ message: "Invalid editor session generation"
711
+ });
712
+ return z.NEVER;
713
+ });
714
+ z.discriminatedUnion("kind", [z.object({
715
+ kind: z.literal("open"),
716
+ generation: generationSchema
717
+ }).strict(), z.object({
718
+ kind: z.literal("paused"),
719
+ generation: generationSchema
720
+ }).strict()]);
721
+ z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
722
+ kind: "decisions",
723
+ decisions
724
+ }))], { error: (issue) => {
725
+ const value = issue.input;
726
+ return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
727
+ } });
728
+ //#endregion
729
+ //#region ../theme-core/src/site-styles/bookingPageLookIds.ts
730
+ /** Deterministic fallback order; Fulcrum is the default. */
731
+ const bookingPageLookIdValues = [
732
+ "site-style:fulcrum",
733
+ "site-style:folio",
734
+ "site-style:measure",
735
+ "site-style:grounded-practice",
736
+ "site-style:lantern",
737
+ "site-style:poster"
738
+ ];
739
+ /** Boundary admission for draft and suggestion inputs. */
740
+ function parseBookingPageLookId(value) {
741
+ const id = bookingPageLookIdValues.find((candidate) => candidate === value);
742
+ return id ? asSiteStyleId(id) : null;
743
+ }
744
+ bookingPageLookIdValues.map((value) => {
745
+ const id = parseBookingPageLookId(value);
746
+ if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
747
+ const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
748
+ if (!style) throw new Error(`Booking look is not offered: ${value}`);
749
+ return {
750
+ ...style,
751
+ id
752
+ };
753
+ });
754
+ //#endregion
755
+ export { heroPhotoPaintsGround as a, sectionForegroundBackground as c, deriveSectionGround as i, defineBlockDesignMetadata as l, composeBoundary as n, parseCanonicalRuntimeBackground as o, sectionFactsForContent as r, resolveSectionBackground as s, boundaryLayout as t };