@riverbankcms/sdk 0.174.0 → 0.175.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 (196) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-GqVX3I8E.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
  2. package/dist/_dts/{Page-BhUH31M-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
  4. package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B6tCvmG4.d.ts} +487 -11
  5. package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-B9qryk4R.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
  9. package/dist/_dts/{index--39uLjrr.d.ts → index-Bl5_pjmq.d.ts} +1 -1
  10. package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-Btp5nIoz.d.ts} +2 -2
  11. package/dist/_dts/{index-Bq-488M7.d.ts → index-CQUzwOxO.d.ts} +1 -1
  12. package/dist/_dts/{index-DYlfdT1O.d.ts → index-DmhFb6R1.d.ts} +1 -1
  13. package/dist/_dts/{index-3GzargmS.d.ts → index-OtazQE3U.d.ts} +2 -2
  14. package/dist/_dts/{index-DYsP4k6S.d.ts → index-YRQulWB4.d.ts} +3 -3
  15. package/dist/_dts/{index-DdEi2iXd.d.ts → index-_pXaCO12.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
  17. package/dist/_dts/{request-Be1E-H-V.d.ts → request-BT8i_vH-.d.ts} +2070 -503
  18. package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-CVLYWcoI.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +13 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +3 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +2 -1
  54. package/dist/_dts/{types-Bm5_3VEd.d.ts → types-C0XZnjXz.d.ts} +3 -3
  55. package/dist/_dts/{types-5MeDI1w8.d.ts → types-CXL1QJSY.d.ts} +7 -7
  56. package/dist/_dts/{types-CVoCc_Ia.d.ts → types-OKzbqRBx.d.ts} +2 -2
  57. package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
  59. package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
  60. package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
  62. package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
  63. package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
  64. package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
  65. package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
  66. package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-BybMSKNL.mjs} +4 -3
  67. package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
  68. package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
  69. package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
  70. package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +664 -362
  71. package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
  72. package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
  73. package/dist/client/{Page--xJ23nA5.mjs → Page-CWN_8cLZ.mjs} +736 -1667
  74. package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
  75. package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-C7RJBOW3.mjs} +37 -249
  76. package/dist/client/{accordion-BQtTkDN8.mjs → accordion-uUi_N6mZ.mjs} +1 -1
  77. package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
  78. package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
  79. package/dist/client/bookings.mjs +22 -15
  80. package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-C-gFwhnO.mjs} +3 -29
  81. package/dist/client/{carousel-CPsW-FPh.mjs → carousel-C0_BqMA0.mjs} +1 -1
  82. package/dist/client/{cart-CwElmocm.mjs → cart-BOHuppVu.mjs} +3 -3
  83. package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-IfJE1zAp.mjs} +1 -1
  84. package/dist/client/{checkout-CfMgqY8H.mjs → checkout-C3Aj-aNa.mjs} +3 -3
  85. package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
  87. package/dist/client/client.mjs +113 -21
  88. package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
  89. package/dist/client/{course-q1sA4Cj-.mjs → course-DHmeQAvq.mjs} +2 -2
  90. package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
  91. package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
  93. package/dist/client/display-DMqotaGU.mjs +11797 -0
  94. package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
  95. package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-CJapNbTv.mjs} +1 -1
  96. package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-CAdcpnLc.mjs} +295 -188
  97. package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
  98. package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-B9Ly3024.mjs} +4 -4
  99. package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
  100. package/dist/client/{eventListing-_14atrj8.mjs → eventListing-ZSmvhWII.mjs} +4 -4
  101. package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
  102. package/dist/client/{form-DfAB-llc.mjs → form-DG_YZSNn.mjs} +3 -3
  103. package/dist/client/{form.client-DN-I9_qC.mjs → form.client-BU6dM0-C.mjs} +4 -4
  104. package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
  105. package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
  106. package/dist/client/gifting/client.mjs +5 -3
  107. package/dist/client/gifting-DMrsN4B4.mjs +28 -0
  108. package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
  109. package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
  110. package/dist/client/{headerSection-Dces54pb.mjs → headerSection-D91EzlOR.mjs} +2 -2
  111. package/dist/client/{display-D8MW2b0e.mjs → lookSurfaces-BDZLALxj.mjs} +3084 -12938
  112. package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
  113. package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
  114. package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
  115. package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
  116. package/dist/client/portal/client.mjs +313 -148
  117. package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
  118. package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
  119. package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-W0_0lDGe.mjs} +3 -3
  120. package/dist/client/{productList-Df5qDD0z.mjs → productList-ayAtPJdb.mjs} +3 -3
  121. package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
  122. package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-B1EEZkcr.mjs} +311 -262
  123. package/dist/client/rendering/client.mjs +25 -491
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +7 -7
  126. package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
  128. package/dist/client/{shop-gteEpeO5.mjs → shop-DbUUoHFJ.mjs} +3 -3
  129. package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
  130. package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
  131. package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
  132. package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
  133. package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
  134. package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-CJAINJr3.mjs} +118 -39
  135. package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-DwVAuGsx.mjs} +2 -2
  136. package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DBTIFWTb.mjs} +11 -148
  137. package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
  138. package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
  139. package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
  140. package/dist/client/{view-CvlTplao.mjs → view-BTk470k0.mjs} +3 -2
  141. package/dist/client/{view-CxUpgcM6.mjs → view-Cw4EmEPv.mjs} +100 -32
  142. package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
  143. package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +32 -29
  144. package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
  145. package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
  147. package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-B61mZd81.mjs} +4981 -3275
  148. package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
  149. package/dist/preview-next/client/runtime.mjs +3 -3
  150. package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
  151. package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-BZDIC-fA.mjs} +529 -238
  152. package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
  153. package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +25 -5
  154. package/dist/preview-next/container-responsive.css +51 -3
  155. package/dist/preview-next/keepAlive.mjs +1 -1
  156. package/dist/preview-next/middleware.mjs +1 -1
  157. package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-0gSlK9S0.mjs} +87 -12
  158. package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-DeXXycg8.mjs} +4 -4
  159. package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
  160. package/dist/server/{bindings-CQg2lzZn.mjs → bindings-7L3pC5Os.mjs} +13 -34
  161. package/dist/server/{client-aYRTVneD.mjs → client-CgghATBm.mjs} +112 -20
  162. package/dist/server/config-validation.mjs +1 -1
  163. package/dist/server/config.mjs +2 -2
  164. package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
  165. package/dist/server/data/resolveBlockData.mjs +1 -1
  166. package/dist/server/index.mjs +2 -2
  167. package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-D7M5Vcug.mjs} +5 -5
  168. package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-CiTId05y.mjs} +2 -2
  169. package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-CaH018pK.mjs} +129 -12
  170. package/dist/server/next.mjs +35 -9
  171. package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
  172. package/dist/server/page-converter.mjs +1 -1
  173. package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-Cuos4Xcd.mjs} +105 -357
  174. package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
  175. package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-JxlV8_Bo.mjs} +1707 -1811
  176. package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
  177. package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-BDhlJbAx.mjs} +1 -1
  178. package/dist/server/prebuild.mjs +1 -1
  179. package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
  180. package/dist/server/{registry-34rkAfaU.mjs → registry-cQ9N5W-n.mjs} +21091 -20209
  181. package/dist/server/rendering/components/pageShared.mjs +1 -1
  182. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  183. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  184. package/dist/server/rendering/server.mjs +3 -3
  185. package/dist/server/rendering.mjs +7 -7
  186. package/dist/server/{resolveBlockData-D7VeoWgr.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
  187. package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
  188. package/dist/server/server.mjs +3 -3
  189. package/dist/server/theme-bridge.mjs +1 -1
  190. package/dist/server/theme.mjs +2 -2
  191. package/dist/server/{validation-CLVKoJrX.mjs → validation-3puM5SM8.mjs} +3 -3
  192. package/dist/server/{version-HVfdvBJ0.mjs → version-B8g-Wx57.mjs} +1 -1
  193. package/dist/styles/index.css +361 -57
  194. package/package.json +1 -1
  195. package/dist/client/bookability-CE637yDE.mjs +0 -17
  196. package/dist/client/useDiscountApply-BZU5DWZQ.mjs +0 -199
@@ -1,25 +1,25 @@
1
1
  "use client";
2
- import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, Cn as parseMailingListPlacementTargeting, Dn as parseContentVersionId, En as sameMailingListPlacementTargeting, G as isOfferingsPreviewSourceKey, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Ht as cardListPresentationSchemaShape, K as normalizeOfferingsPreviewContentForWrite, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, W as groupOfferingRunsByCourse, X as readOfferingsGrouping, Y as offeringsListingFor, Zt as buildEventListWeek, bt as recurringScheduleProjectionSchema, ct as occurrenceContextSchema, gn as resolveHeaderChromeRuntimeContract, hn as isHeaderScrollRuntimeEnabled, on as formatEventStartingPrice, qt as quickFactSlots, vn as parseHeaderPositioning, xn as buildMailingListSignupBlockSourceRef, xt as combinedLookSchema, yn as planSiteChromePlacement, yt as projectRecurringSchedule } from "./shop.interactive-CKFORzux.mjs";
2
+ import { An as sameMailingListPlacementTargeting, Cn as planSiteChromePlacement, Ct as recurringScheduleProjectionSchema, Dn as parseMailingListPlacementTargeting, G as groupOfferingRunsByCourse, Gt as cardListPresentationSchemaShape, K as isOfferingsPreviewSourceKey, Sn as parseHeaderPositioning, St as projectRecurringSchedule, Tn as buildMailingListSignupBlockSourceRef, U as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, V as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, X as offeringsListingFor, Xt as quickFactSlots, Z as readOfferingsGrouping, bn as resolveHeaderChromeRuntimeContract, en as buildEventListWeek, jn as parseContentVersionId, lt as occurrenceContextSchema, q as normalizeOfferingsPreviewContentForWrite, un as formatEventStartingPrice, wt as combinedLookSchema, yn as isHeaderScrollRuntimeEnabled, z as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS } from "./shop.interactive-CJAINJr3.mjs";
3
3
  import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
- import { $a as arrangementAppearancePresets, $o as transitionIntentForTreatment, $s as asDesignBlockId, Ao as footerForegroundCandidates, As as selectLogoVariant, Bo as resolvePageDesignBlockLookChoice, Bs as boxBackgroundSchema, Ca as resolveDateRuntimeContext, Co as stripCompiledRuntimeStyleFields, Cs as sectionBackgroundPaintValues, Do as resolveCardRole, Ds as cardListKnobBlocks, Eo as getGradientPreset, Es as cardListFamilyBlocks, Fo as generateInteractiveChildInheritanceCSS, Fs as themeSchema, Go as boundaryOptionForTransitionIntent, Ho as sectionShapeForGround, Io as navLinkHoverColorCandidate, Is as headerVariantValues, Ja as itemRole, Jo as boundaryTreatmentForBoundaryOptionId, Js as parseGradientPresetId, Ko as boundaryOptions, La as normalizeEventRegistrationPageSurfaceSubject, Lo as navLinkOwnsHoverForeground, Ls as blockCustomCssRuleSchema, Mo as buildTextContrastShadow, Ms as arrangementSlotNames, No as generateNavLinkCSS, Ns as TokenResolver, Oo as generateDefaultCardSystem, Os as opaqueSurfaceContextFromTheme, Po as generateEffectsCSS, Ps as sectionStylesOverrideSchema, Qa as generateLookMediaFrameCss, Qo as spaciousBoundaryOption, Ro as navLinkOwnsUnderline, Rs as customCssRuleSchema, Sa as readRuntimeNow, Ss as plainFrame, Tc as formatBookingPriceDisplay, To as gradientToCss, Ts as toNonEmptyReadonlyArray, Uo as sectionShapeFromContent, Vo as resolvePageDesignBoundaryChoice, Vs as runtimeBoxBackgroundSchema, Wo as sectionShapeHook, Ws as cardVariantRoleValues, Xa as resolveLookSurfacePresentation, Xo as noneBoundaryOption, Xs as asHeaderStyleId, Ya as lookPresentationOnPalette, Yo as isDecorativeTransitionIntent, Ys as asHeaderLayoutId, Za as selectItemSurfacePresentation, Zo as softBoundaryOption, Zs as siteChromeBackgroundOverrideOwner, _s as defineNoBlockDesignCapability, ao as resolveArrangementLookForBlock, as as resolveSectionBackground, bo as requireCuratedSiteStyle, br as MediaPlaceholder, bs as introCompositionTreatmentValues, co as arrangementManifestFromVariants, cs as stripStaleTransitionStyleGroup, do as resolveModeArrangement, ds as resolveEffectiveKnobs, ec as asLayoutVariantKey, eo as arrangementLookHooks, es as anglePolygonCss, fo as resolvePublishedLook, fs as lookModes, go as filterLookIdsForPolicy, gs as defineFrameCapability, ho as filterLayoutProfilesForPolicy, hs as defineExactCatalog, io as getCompatibleBlockAppearancePresets, is as parseCanonicalRuntimeBackground, jo as getNavLinkPreset, jr as eventCalendarWeekStart, js as surfaceToneFromForegroundToken, ko as generateFooterCss, ks as opaqueSurfaceDeclarations, lo as readStoredMode, ls as themeV2CompilerOwnedFieldNames, mo as deriveSiteStyleBlockPolicy, ms as defineBlockDesignCapability, nc as asSiteStyleId, no as automaticArrangementLook, ns as applyLookPhotoTreatment, oc as isRecord$8, oo as resolveLookForBlock, os as sectionForegroundBackground, ps as assertNever$1, qa as resolvedItemSurfaceProps, qo as boundaryRuntimeMetricsForDecorativeTransition, qs as surfaceCardRoleValues, rc as makeBoundaryId, ro as compileArrangementLookRuntime, rs as deriveSectionGround, so as styleSectionBackgroundForColour, ss as sectionSurfaceBase, tc as asPageFlowPresetId, to as arrangementStyleAvailability, ts as transitionCatalogueEntries, uo as resolveEffectiveArrangement, vs as designIssueSeverityForPolicy, ws as testimonialsCompositionTreatmentValues, xa as isBlockButtonRole, xo as compilePageRuntimeFields, xr as computeMediaTransformStyle, xs as offeringsPreviewCompositionTreatmentValues, yo as getCuratedSiteStyle, ys as featureCardCompositionTreatmentValues } from "./display-D8MW2b0e.mjs";
5
- import { A as eventListTreatmentValues, At as decideLocationSourcePermission, Bt as formatDate, Dt as isRecord$9, F as tileTreatmentValues, Ft as publicLocationSchema, I as visibleHeadingDecorationFamilyValues, L as eventVenueDrawingSchema, M as headingDecorationColorTokenValues, Nt as parseLocationValue, P as isArrangementMode, Pt as projectPublicLocation, Q as isRichTextDoc, Rt as trimmedStringOrNull, V as publicEventsArraySchema, W as bookingConsentCarrierSchema, Y as RichTextDocSchema, _ as eventCalendarListLayoutOptions, a as eventAutoApplyDiscountPreviewSchema, an as resolveBookingBusinessTimeZone, dt as eventCalendarListLayoutCompatibleDisplayModeValues, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, it as runtimeMediaSchema, j as eyebrowTreatmentValues, jt as locationValueSchema, kt as WHOLE_SERIES_EVENT_PRESET_VALUES, ln as toUtcIsoDateTimeString, nn as getLocalScheduleDate, nt as mediaSchema, o as publicMembershipProductCollectionSchema, ot as PUBLIC_FILE_FIELD_KINDS, s as publicPassProductCollectionSchema, t as logger, w as resolveEventCalendarReadPlan, yt as calendarWindowQuerySchema, z as publicEventPricingSchema } from "./noop-D5mFWXtN.mjs";
6
- import { A as assertNever$2 } from "./creditProducts-KYMVIH3J.mjs";
7
- import { $ as backgroundFrame, $t as chosenString, A as mapDrawingStyleBinding, An as ICON_SIZE_PX, At as cardListKnobFields, B as normalizeMailingListBlockContent, Bt as parseFieldDefinitions, C as checkoutBlockDefinition, Cn as createButtonGroup, Ct as repeat, D as shopBlockDefinition, Dn as ACCORDION_TRIGGER_FONT_SCALE, Dt as text, E as productListBlockDefinition, En as ACCORDION_SPACING_MAP, Et as stack, Fn as resolveRepeaterGridColumnFieldId, Ft as parseBlockIconValue, G as withApiBindings, Gt as eventReadinessQueryKeys, H as formDataSchema, Ht as augmentManifest, In as resolveRepeaterGridRowFieldId, It as createSdkSelectField, J as sectionHeaderLayoutNodes, Jt as eventDiscoveryFilterKeys, K as formCopyFragment, Kt as eventReadinessResultSchema, L as desktopOnlyDisplay, Ln as resolveRepeaterGridSpanFieldId, Lt as createSiteOptionSelectField, M as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Mn as DEFAULT_MEDIA_FIELD_KINDS, Mt as cardListPresentationBindings, N as FEATURE_CARD_ICON_TREATMENTS, Nn as isAcceptedRepeaterGridSpan, Nt as cardListSectionActionFields, O as eventCalendarBlockDefinition, On as ACCORDION_TRIGGER_LETTER_SPACING, Ot as videoEmbed, Pn as parseRepeaterGridInteger, Pt as normalizeCardListContent, Q as sectionContainer, Qt as resolveEventScope, R as mobileOnlyDisplay, Rn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Rt as normalizeSelectSource, S as giftingBlockDefinition, Sn as getAnchorClasses, St as props, T as productDetailBlockDefinition, Tn as ACCORDION_OPEN_ACCENT_THICKNESS, Tt as section, U as createBlockManifest, Ut as eventReadinessLoaderKey, V as formBlockDefinition, Vt as PUBLIC_DOWNLOAD_MEDIA_TYPES, W as formEmbedFragment, Wt as eventReadinessQuery, X as styledSection, Xt as eventScopeQuery, Y as resolveBackgroundColorValue, Yt as eventScopeLoaderParam, Z as styledContainer, Zt as eventScopeQueryKeys, _ as publicAppointmentLocationSchema, _n as layoutField, _t as headerSection, a as buildLoadedOfferingsPreviewListing, an as loadedReadinessFact, at as lookLeadSlotTransform, b as newsletterSignupBlockDefinition, bn as sectionStylesField, bt as link, cn as LOCATION_MAP_DEFAULTS, ct as lookSlot, dn as normalizeLocationMapSource, dt as bookingForm, en as galleryReadiness, et as buildFragmentDataLoaders, fn as resolveLocationMapLocation, ft as button, g as formatAppointmentPrice, gn as eventDisplayFields, gt as form, h as formatAppointmentLocation, hn as emptyStateField, ht as fileDownload, in as hiddenFromVisitors, it as lookCarouselRegionTransform, j as eventRegistrationBlockDefinition, jn as bindingSchema, jt as cardListPhotoNumberFields, k as eventListingBlockDefinition, kn as ICON_CONFIG, kt as when, ln as LOCATION_MAP_LIMITS, lt as accordionList, m as formatAppointmentDuration, mn as columnsField, mt as el, nn as testimonialsReadiness, nt as defineFragment, on as pageTemplateFromEntry, ot as lookQuoteLimitTransform, p as SectionNode, pn as cardStylingFields, pt as carousel, q as sectionHeaderFields, qt as eventWeekReadScope, rn as admitReadinessFacts, rt as cardListSectionAction, s as buildAppointmentServicesView, sn as unavailableReadinessFact, st as lookSkinSlotTransform, t as serverComponentRegistry, tn as teamReadiness, tt as composeFragments, un as normalizeLocationMapProps, ut as bind, v as publicAppointmentPricingSchema, vn as cardStylesField, vt as icon, w as cartBlockDefinition, wn as createButtonVariantField, wt as richText, x as sanitizeNewsletterSignupPublicContent, xn as BACKGROUND_POSITION_PRESET_VALUES, xt as media, y as offeringCourseSlotParents, yn as containerStylesField, yt as inline, z as teamMemberCardBiographyFallback, zn as linkSchema, zt as parseFieldDefinition } from "./registry.server-ClcfWpvM.mjs";
8
- import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-CtZiIj9q.mjs";
4
+ import { Aa as isBlockButtonRole, Br as createAspectRatioField, Co as resolveLookMediaFrame, Do as isRecord$8, Dr as computeMediaTransformStyle, Er as MediaPlaceholder, Gr as createTransformRegistry, Hr as SECTION_STATE_KINDS, Ir as resolveArrangementKnobs, Ka as normalizeEventRegistrationPageSurfaceSubject, Kr as runTransforms, Lr as systemCustomizeFacetDefinitionsForBlock, Ma as resolveDateRuntimeContext, Qr as eventCalendarWeekStart, Rr as createImageShapeField, So as generateLookMediaFrameCss, Ur as sectionStateToneFromKind, Vr as uiTransforms, Wr as asPartialObject, Xo as formatBookingPriceDisplay, Xr as plainTextToInlineText, Yr as parseInlineTextFromUnknown, ja as readRuntimeNow, qr as inlineTextToPlainText, wo as parseBlockColorToken, zr as heroTitleSizeOptions } from "./display-DMqotaGU.mjs";
5
+ import { Bt as parseLocationValue, C as eventCalendarListGroupingDecision, Et as calendarWindowQuerySchema, Gt as trimmedStringOrNull, H as tileTreatmentValues, Ht as publicLocationSchema, It as WHOLE_SERIES_EVENT_PRESET_VALUES, J as publicEventsArraySchema, K as publicEventPricingSchema, L as eventListTreatmentValues, Lt as decideLocationSourcePermission, Pt as isRecord$9, Rt as locationValueSchema, S as resolveCalendarReadProfile, V as isArrangementMode, Vt as projectPublicLocation, W as eventVenueDrawingSchema, Z as bookingConsentCarrierSchema, at as isRichTextDoc, dt as runtimeMediaSchema, f as eventAutoApplyDiscountPreviewSchema, fn as resolveBookingBusinessTimeZone, gn as toUtcIsoDateTimeString, j as resolveEventCalendarReadPlan, ln as getLocalScheduleDate, lt as mediaSchema, m as publicPassProductCollectionSchema, nt as RichTextDocSchema, p as publicMembershipProductCollectionSchema, pt as PUBLIC_FILE_FIELD_KINDS, qt as formatDate, t as logger } from "./noop-DF8_EiFt.mjs";
6
+ import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
7
+ import { $ as backgroundFrame, $t as eventDiscoveryFilterKeys, A as mapDrawingStyleBinding, An as ICON_CONFIG, At as cardListKnobFields, B as normalizeMailingListBlockContent, Bn as linkSchema, Bt as parseFieldDefinitions, C as checkoutBlockDefinition, Cn as getAnchorClasses, Ct as repeat, D as shopBlockDefinition, Dn as ACCORDION_SPACING_MAP, Dt as text, E as productListBlockDefinition, En as ACCORDION_OPEN_ACCENT_THICKNESS, Et as stack, Fn as parseRepeaterGridInteger, Ft as parseBlockIconValue, G as withApiBindings, Gt as teamReadiness, H as formDataSchema, Ht as augmentManifest, In as resolveRepeaterGridColumnFieldId, It as createSdkSelectField, J as sectionHeaderLayoutNodes, Jt as eventReadinessLoaderKey, K as formCopyFragment, Kt as testimonialsReadiness, L as desktopOnlyDisplay, Ln as resolveRepeaterGridRowFieldId, Lt as createSiteOptionSelectField, M as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Mn as bindingSchema, Mt as cardListPresentationBindings, N as FEATURE_CARD_ICON_TREATMENTS, Nn as DEFAULT_MEDIA_FIELD_KINDS, Nt as cardListSectionActionFields, O as eventCalendarBlockDefinition, On as ACCORDION_TRIGGER_FONT_SCALE, Ot as videoEmbed, Pn as isAcceptedRepeaterGridSpan, Pt as normalizeCardListContent, Q as sectionContainer, Qt as eventWeekReadScope, R as mobileOnlyDisplay, Rn as resolveRepeaterGridSpanFieldId, Rt as normalizeSelectSource, S as giftingBlockDefinition, Sn as BACKGROUND_POSITION_PRESET_VALUES, St as props, T as productDetailBlockDefinition, Tn as createButtonVariantField, Tt as section, U as createBlockManifest, Ut as chosenString, V as formBlockDefinition, Vt as PUBLIC_DOWNLOAD_MEDIA_TYPES, W as formEmbedFragment, Wt as galleryReadiness, X as styledSection, Xt as eventReadinessQueryKeys, Y as resolveBackgroundColorValue, Yt as eventReadinessQuery, Z as styledContainer, Zt as eventReadinessResultSchema, _ as publicAppointmentLocationSchema, _n as eventDisplayFields, _t as headerSection, a as buildLoadedOfferingsPreviewListing, an as hiddenFromVisitors, at as lookLeadSlotTransform, b as newsletterSignupBlockDefinition, bn as containerStylesField, bt as link, cn as unavailableReadinessFact, ct as lookSlot, dn as normalizeLocationMapProps, dt as bookingForm, en as eventScopeLoaderParam, et as buildFragmentDataLoaders, fn as normalizeLocationMapSource, ft as button, g as formatAppointmentPrice, gn as emptyStateField, gt as form, h as formatAppointmentLocation, hn as columnsField, ht as fileDownload, in as admitReadinessFacts, it as lookCarouselRegionTransform, j as eventRegistrationBlockDefinition, jn as ICON_SIZE_PX, jt as cardListPhotoNumberFields, k as eventListingBlockDefinition, kn as ACCORDION_TRIGGER_LETTER_SPACING, kt as when, ln as LOCATION_MAP_DEFAULTS, lt as accordionList, m as formatAppointmentDuration, mn as cardStylingFields, mt as el, nn as eventScopeQueryKeys, nt as defineFragment, on as loadedReadinessFact, ot as lookQuoteLimitTransform, p as SectionNode, pn as resolveLocationMapLocation, pt as carousel, q as sectionHeaderFields, qt as blockChecksForEvents, rn as resolveEventScope, rt as cardListSectionAction, s as buildAppointmentServicesView, sn as pageTemplateFromEntry, st as lookSkinSlotTransform, t as serverComponentRegistry, tn as eventScopeQuery, tt as composeFragments, un as LOCATION_MAP_LIMITS, ut as bind, v as publicAppointmentPricingSchema, vn as layoutField, vt as icon, w as cartBlockDefinition, wn as createButtonGroup, wt as richText, x as sanitizeNewsletterSignupPublicContent, xn as sectionStylesField, xt as media, y as offeringCourseSlotParents, yn as cardStylesField, yt as inline, z as teamMemberCardBiographyFallback, zn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, zt as parseFieldDefinition } from "./registry.server-B1EEZkcr.mjs";
9
8
  import { $ as solveSurfaceInks, A as DEFAULT_BUTTON_SIZES, C as buttonRadius, Ct as resolveOpaqueSurfaceHex, D as materializeRuntimeButtonAppearance, Dt as contrastRatio, E as buttonTypographyDeclarations, Ft as rgbToHex, G as mergeStyles, H as backgroundColorStyle, It as srgbToOklab, J as textColorValue, K as rgbColorValue, L as mapButtonVisualAppearances, M as FONT_SIZE_MAP, Mt as oklabToOklch, N as generateShadowValue$1, Nt as oklabToSrgb, O as paddingDeclarations, Pt as oklchToHexGamut, S as buttonBorder, St as resolveConcreteColorHex, T as buttonStateAppearanceDeclarations, U as borderColorStyle, W as cssVarValue, X as safeTokenOr, Y as resolveSurfaceForeground, Z as surfaceInkPublication, _t as surfaceInkDeclarations, at as inkReference, b as BUTTON_CONTRAST_POLICY, bt as freezeOwnedThemeValue, ct as planForegroundHover, dt as SURFACE_INK_CSS_VARS, f as compositeHex, ft as surfaceForegroundDeclarations, g as actionVariableFallback, gt as surfaceForegroundValueWithOpacity, ht as surfaceForegroundValue, it as contrastThresholdByPolicy, jt as hexToRgb, k as BORDER_WIDTH_MAP, l as surfaceDecorationColors, lt as DEFAULT_SURFACE_TEXT_COLOR, mt as surfaceForegroundStyle, n as parseSurfaceTree, nt as HOVER_TEXT_THRESHOLD, o as resolveSurface, ot as expandPalette, pt as surfaceForegroundInputFromResolved, q as textColorStyle, r as prepareSurfaceIndex, rt as certifyPaint, ut as SURFACE_FOREGROUND_CSS_VARS, v as compileButtonColourStates, vt as surfaceInkStyle, w as buttonShadow, x as formatButtonColourContractError, xt as ownedThemeSnapshot, y as resolveSolidButtonColour, yt as surfaceInkValue } from "./accessibleSurfaces-DN8it_Cx.mjs";
10
- import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, v as blockColorTokenNames } from "./types-DjWUR_O6.mjs";
11
- import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-CNDLpT06.mjs";
9
+ import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-DjWUR_O6.mjs";
10
+ import { $ as resolvePageDesignBlockLookChoice, $t as customCssRuleSchema, A as getCuratedSiteStyle, At as defineExactCatalog, B as generateFooterCss, Bt as toNonEmptyReadonlyArray, C as resolvePublishedLook, Ct as themeV2CompilerOwnedFieldNames, D as filterLookIdsForPolicy, Dt as lookModes, E as filterLayoutProfilesForPolicy, Ft as introCompositionTreatmentValues, G as generateEffectsCSS, Gt as selectLogoVariant, H as getNavLinkPreset, I as gradientToCss, It as offeringsPreviewCompositionTreatmentValues, J as generateInteractiveChildInheritanceCSS, Jt as TokenResolver, K as resolveEffectApplications, Kt as surfaceToneFromForegroundToken, L as getGradientPreset, Lt as plainFrame, M as compilePageRuntimeFields, Mt as defineNoBlockDesignCapability, Nt as designIssueSeverityForPolicy, Ot as assertNever$2, P as stripCompiledRuntimeStyleFields, Pt as featureCardCompositionTreatmentValues, Qt as blockCustomCssRuleSchema, R as resolveCardRole, Rt as sectionBackgroundPaintValues, S as resolveModeArrangement, St as stripStaleTransitionStyleGroup, T as deriveSiteStyleBlockPolicy, U as buildTextContrastShadow, Ut as opaqueSurfaceContextFromTheme, V as footerForegroundCandidates, W as generateNavLinkCSS, Wt as opaqueSurfaceDeclarations, X as navLinkOwnsHoverForeground, Xt as themeSchema, Y as navLinkHoverColorCandidate, Yt as sectionStylesOverrideSchema, Z as navLinkOwnsUnderline, Zt as headerVariantValues, _ as resolveLookForBlock, _n as asSiteStyleId, _t as parseCanonicalRuntimeBackground, a as resolvedItemSurfaceProps, an as cardVariantRoleValues, at as boundaryOptions, b as readStoredMode, bt as sectionSurfaceBase, c as resolveLookSurfacePresentation, cn as surfaceCardRoleValues, ct as isDecorativeTransitionIntent, d as arrangementLookHooks, dn as asHeaderStyleId, dt as spaciousBoundaryOption, et as resolvePageDesignBoundaryChoice, f as arrangementStyleAvailability, fn as siteChromeBackgroundOverrideOwner, ft as transitionIntentForTreatment, g as resolveArrangementLookForBlock, gn as asPageFlowPresetId, gt as deriveSectionGround, h as getCompatibleBlockAppearancePresets, hn as asLayoutVariantKey, ht as applyLookPhotoTreatment, it as boundaryOptionForTransitionIntent, j as requireCuratedSiteStyle, jt as defineFrameCapability, kt as defineBlockDesignCapability, l as selectItemSurfacePresentation, ln as parseGradientPresetId, lt as noneBoundaryOption, m as compileArrangementLookRuntime, mn as asDesignBlockId, mt as transitionCatalogueEntries, nn as runtimeBoxBackgroundSchema, nt as sectionShapeFromContent, o as itemRole, ot as boundaryRuntimeMetricsForDecorativeTransition, p as automaticArrangementLook, pt as anglePolygonCss, q as resolveEffectPaint, qt as arrangementSlotNames, rt as sectionShapeHook, s as lookPresentationOnPalette, st as boundaryTreatmentForBoundaryOptionId, tn as boxBackgroundSchema, tt as sectionShapeForGround, u as arrangementAppearancePresets, un as asHeaderLayoutId, ut as softBoundaryOption, v as styleSectionBackgroundForColour, vn as makeBoundaryId, vt as resolveSectionBackground, x as resolveEffectiveArrangement, xt as defaultHeroImageSurfaceTreatment, y as arrangementManifestFromVariants, yt as sectionForegroundBackground, z as generateDefaultCardSystem, zt as testimonialsCompositionTreatmentValues } from "./lookSurfaces-BDZLALxj.mjs";
11
+ import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay } from "./boxStyleClassNames-C-gFwhnO.mjs";
12
12
  import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-DuaYtnvG.mjs";
13
13
  import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
14
- import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-CxUpgcM6.mjs";
15
- import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-C-mxXpX_.mjs";
16
- import { s as monthSlotParents } from "./CalendarNavigationChevron-BPQU5Snc.mjs";
14
+ import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-Cw4EmEPv.mjs";
15
+ import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-BybMSKNL.mjs";
16
+ import { l as monthSlotParents } from "./CalendarNavigationChevron-Ch0w0Utn.mjs";
17
17
  import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
18
- import { n as eventListSlotParents } from "./EventListing.view-CN7BjGgC.mjs";
18
+ import { n as eventListSlotParents } from "./EventListing.view-r31k8Icz.mjs";
19
19
  import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
20
- import { t as formatDate$1 } from "./formatDate-Dp7POa9Y.mjs";
20
+ import { t as formatDate$1 } from "./formatDate-DFfWHpQB.mjs";
21
21
  import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
22
- import { t as coerceRichTextDoc } from "./richText-coerce-C32cRQ03.mjs";
22
+ import { t as coerceRichTextDoc } from "./richText-coerce-CDAfpMQU.mjs";
23
23
  import { t as resolveBlocksPageMediaContext } from "./mediaAssets-B99AP7ai.mjs";
24
24
  import * as React$1 from "react";
25
25
  import React from "react";
@@ -282,18 +282,6 @@ function cloneThemeTokens(source) {
282
282
  return JSON.parse(JSON.stringify(source));
283
283
  }
284
284
  //#endregion
285
- //#region ../theme-core/src/tokens/blockColorTokens.ts
286
- const blockColorTokenNameSet = new Set(blockColorTokenNames);
287
- function isBlockColorToken(value) {
288
- if (typeof value !== "string") return false;
289
- const parts = parseColorTokenParts(value);
290
- return parts.kind === "token" && blockColorTokenNameSet.has(parts.token);
291
- }
292
- function parseBlockColorToken(value) {
293
- if (!isBlockColorToken(value)) return null;
294
- return value.trim();
295
- }
296
- //#endregion
297
285
  //#region ../theme-core/src/surfaces/mapDrawingTokens.ts
298
286
  /**
299
287
  * The one map token contract (issue 1611). Drawings carry semantic classes only;
@@ -685,7 +673,7 @@ function boundaryEndpointForSectionContent(content) {
685
673
  kind: "unpainted",
686
674
  reason: "media"
687
675
  };
688
- default: return assertNever$1(effective, "Unhandled section background type");
676
+ default: return assertNever$2(effective, "Unhandled section background type");
689
677
  }
690
678
  }
691
679
  /**
@@ -821,338 +809,14 @@ function boundaryLayout(intent, composition) {
821
809
  band: null,
822
810
  shape: composition.from
823
811
  }
824
- };
825
- default: return assertNever$1(composition, "Unhandled boundary composition");
826
- }
827
- }
828
- function requireThemeColorToken(value) {
829
- const token = parseThemeColorToken(value);
830
- if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
831
- return token;
832
- }
833
- //#endregion
834
- //#region ../theme-core/src/cards/constants.ts
835
- /**
836
- * Corner style to border-radius value map for content-bearing card surfaces.
837
- * Full pill radii are reserved for controls; cards need a capped radius so
838
- * long titles, media, and expanded content do not clip into capsule shapes.
839
- */
840
- const CORNER_RADIUS_MAP = {
841
- square: "0px",
842
- soft: "8px",
843
- rounded: "16px",
844
- pill: "24px"
845
- };
846
- /**
847
- * Gradient direction to CSS direction map
848
- */
849
- const GRADIENT_DIRECTION_MAP = {
850
- "to-r": "to right",
851
- "to-l": "to left",
852
- "to-t": "to top",
853
- "to-b": "to bottom",
854
- "to-tr": "to top right",
855
- "to-tl": "to top left",
856
- "to-br": "to bottom right",
857
- "to-bl": "to bottom left"
858
- };
859
- /**
860
- * Generate CSS box-shadow value from Shadow object
861
- */
862
- function generateShadowValue(shadow) {
863
- if (shadow.elevation === "none") return "none";
864
- const offset = {
865
- low: 2,
866
- medium: 4,
867
- high: 6
868
- }[shadow.elevation];
869
- const xOffset = shadow.position === "bottom-right" ? offset : 0;
870
- if (shadow.softness === "hard") return `${xOffset}px ${offset}px 0 0 rgba(0,0,0,1)`;
871
- const soft = shadow.softness !== "crisp";
872
- switch (shadow.elevation) {
873
- case "low": return soft ? `${xOffset}px 1px 2px rgba(0,0,0,.06)` : `${xOffset}px 1px 1px rgba(0,0,0,.12)`;
874
- case "medium": return soft ? `${xOffset}px 10px 20px rgba(0,0,0,.08)` : `${xOffset}px 6px 12px rgba(0,0,0,.16)`;
875
- case "high": return soft ? `${xOffset}px 25px 50px rgba(0,0,0,.18)` : `${xOffset}px 20px 30px rgba(0,0,0,.28)`;
876
- }
877
- }
878
- //#endregion
879
- //#region ../theme-core/src/cards/decorations.ts
880
- const CARD_EDGE_RULE_WIDTH_MAP = {
881
- hairline: "1px",
882
- thin: "2px",
883
- medium: "3px",
884
- thick: "4px",
885
- heavy: "5px"
886
- };
887
- const CARD_EDGE_BORDER_PROPERTY_MAP = {
888
- left: "border-left",
889
- top: "border-top",
890
- right: "border-right",
891
- bottom: "border-bottom"
892
- };
893
- /**
894
- * The one short-rule length in the corpus (the editorial-rule accent). A fixed
895
- * constant keeps `length: 'short'` a semantic choice rather than a free number.
896
- */
897
- const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
898
- function isFullLength(rule) {
899
- return (rule.length ?? "full") === "full";
900
- }
901
- /** Apply a decoration's optional alpha to its resolved colour. */
902
- function cardDecorationColor(rule, resolveColor) {
903
- const color = resolveColor(rule.colorToken);
904
- if (rule.alpha === void 0 || rule.alpha >= 1) return color;
905
- return `color-mix(in oklab, ${color}, transparent ${Math.round((1 - rule.alpha) * 100)}%)`;
906
- }
907
- /**
908
- * Container border declarations for a variant's border and its full-length
909
- * edge rules. The two are independent: a card may be outlined *and* carry an
910
- * accent edge. A variant with edge rules and no border still zeroes the box so
911
- * only the decorated sides draw.
912
- */
913
- function cardBorderDeclarations(borderDeclaration, decorations, resolveColor) {
914
- const fullLengthRules = (decorations ?? []).filter(isFullLength);
915
- const declarations = [];
916
- if (borderDeclaration) declarations.push(borderDeclaration);
917
- else if (fullLengthRules.length > 0) declarations.push("border: 0");
918
- for (const rule of fullLengthRules) {
919
- const side = CARD_EDGE_BORDER_PROPERTY_MAP[rule.edge];
920
- const width = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
921
- declarations.push(`${side}: ${width} solid ${cardDecorationColor(rule, resolveColor)}`);
922
- }
923
- return declarations;
924
- }
925
- function horizontalAlignDeclarations(align) {
926
- switch (align ?? "start") {
927
- case "start": return ["left: 0"];
928
- case "center": return ["left: 50%", "transform: translateX(-50%)"];
929
- case "end": return ["right: 0"];
930
- }
931
- }
932
- function verticalAlignDeclarations(align) {
933
- switch (align ?? "start") {
934
- case "start": return ["top: 0"];
935
- case "center": return ["top: 50%", "transform: translateY(-50%)"];
936
- case "end": return ["bottom: 0"];
937
- }
938
- }
939
- function shortEdgeRuleDeclarations(rule, resolveColor) {
940
- const thickness = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
941
- const isHorizontal = rule.edge === "top" || rule.edge === "bottom";
942
- return [
943
- "content: \"\"",
944
- "position: absolute",
945
- `${rule.edge}: 0`,
946
- ...isHorizontal ? horizontalAlignDeclarations(rule.align) : verticalAlignDeclarations(rule.align),
947
- `width: ${isHorizontal ? SHORT_CARD_EDGE_RULE_LENGTH : thickness}`,
948
- `height: ${isHorizontal ? thickness : SHORT_CARD_EDGE_RULE_LENGTH}`,
949
- `background: ${cardDecorationColor(rule, resolveColor)}`
950
- ];
951
- }
952
- /**
953
- * The pseudo-elements a card container can lend to short edge rules. A short
954
- * rule cannot be a border, so it is drawn on `::before` / `::after` against the
955
- * container (which always sets `position: relative`) — and a card has exactly
956
- * two of those.
957
- */
958
- const CARD_DECORATION_PSEUDOS = ["::before", "::after"];
959
- /**
960
- * Complete pseudo-element rules for a variant's short edge rules.
961
- *
962
- * `cardDecorationsSchema` caps the list at two, which makes the two pseudos
963
- * sufficient for anything that parsed. The dependency-free core types carry a
964
- * plain array with no such cap, so short rules past the second are dropped
965
- * here rather than silently overwriting `::after`.
966
- */
967
- function cardDecorationPseudoRules(containerSelectors, decorations, resolveColor) {
968
- const shortRules = (decorations ?? []).filter((rule) => !isFullLength(rule));
969
- return CARD_DECORATION_PSEUDOS.flatMap((pseudo, index) => {
970
- const rule = shortRules[index];
971
- if (!rule) return [];
972
- return [`${containerSelectors.map((containerSelector) => `${containerSelector}${pseudo}`).join(",\n")} {\n ${shortEdgeRuleDeclarations(rule, resolveColor).join(";\n ")};\n}`];
973
- });
974
- }
975
- //#endregion
976
- //#region ../theme-core/src/utils/cssDeclarations.ts
977
- /** Render CSS declarations whether callers provide terminators or fragments. */
978
- function renderCssDeclarations(declarations) {
979
- return declarations.map((declaration) => declaration.endsWith(";") ? declaration : `${declaration};`).join("\n ");
980
- }
981
- //#endregion
982
- //#region ../theme-core/src/cards/generateCardCss.ts
983
- const PER_CORNER_RADIUS_MAP = {
984
- square: "0",
985
- soft: "0.5rem",
986
- rounded: "1rem",
987
- pill: "1.5rem",
988
- expressive: "calc(var(--rb-block-radius) * 3)"
989
- };
990
- function resolveCornerRadiiCss(cornerRadii, fallback) {
991
- const fallbackValue = CORNER_RADIUS_MAP[fallback];
992
- const at = (value) => value ? PER_CORNER_RADIUS_MAP[value] : fallbackValue;
993
- return `${at(cornerRadii.topLeft)} ${at(cornerRadii.topRight)} ${at(cornerRadii.bottomRight)} ${at(cornerRadii.bottomLeft)}`;
994
- }
995
- function generateCardCss(options) {
996
- const { themeId, cardSystem: providedCardSystem, solvedInks } = options;
997
- const theme = {
998
- ...options.theme,
999
- buttons: ownedThemeSnapshot(options.theme.buttons)
1000
- };
1001
- const tokens = new TokenResolver(theme);
1002
- const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
1003
- const cardSystem = providedCardSystem ?? generateDefaultCardSystem(theme);
1004
- const source = providedCardSystem ? "site-style" : "generated-baseline";
1005
- const aliasGroups = resolveRoleAliasGroups(theme, providedCardSystem ?? null);
1006
- const cssChunks = [];
1007
- const emittedGroupKeys = /* @__PURE__ */ new Set();
1008
- for (const variant of cardSystem.variants) {
1009
- if (!variant.enabled) continue;
1010
- const groupKey = roleAliasGroupKey(source, variant.id);
1011
- emittedGroupKeys.add(groupKey);
1012
- const aliasClasses = aliasGroups.get(groupKey)?.classes ?? [];
1013
- cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette, solvedInks));
1014
- }
1015
- for (const [groupKey, group] of aliasGroups) {
1016
- if (emittedGroupKeys.has(groupKey)) continue;
1017
- cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette, solvedInks));
1018
- }
1019
- return cssChunks.filter(Boolean).join("\n\n");
1020
- }
1021
- function roleAliasGroupKey(source, variantId) {
1022
- return `${source}:${variantId}`;
1023
- }
1024
- /**
1025
- * Stable per-theme role aliases (`.card-role-default` and friends), resolved
1026
- * through the fallback chain so compiled content can address a role without
1027
- * knowing which variant id a site style used — or whether it defined one.
1028
- *
1029
- * Aliases are grouped by the variant they resolve to, so an alias shares one
1030
- * rule with that variant rather than duplicating its declarations.
1031
- */
1032
- function resolveRoleAliasGroups(theme, cardSystem) {
1033
- const groups = /* @__PURE__ */ new Map();
1034
- for (const role of surfaceCardRoleValues) {
1035
- const resolved = resolveCardRole(theme, cardSystem, role);
1036
- if (resolved.kind === "none") continue;
1037
- const groupKey = roleAliasGroupKey(resolved.source, resolved.variant.id);
1038
- const aliasClass = `card-role-${role}`;
1039
- const group = groups.get(groupKey);
1040
- if (group) group.classes.push(aliasClass);
1041
- else groups.set(groupKey, {
1042
- variant: resolved.variant,
1043
- classes: [aliasClass]
1044
- });
1045
- }
1046
- return groups;
1047
- }
1048
- /**
1049
- * Padding map for card content based on spacing semantic values
1050
- */
1051
- const CONTENT_PADDING_MAP = {
1052
- none: "0",
1053
- compact: "0.75rem",
1054
- cozy: "1rem",
1055
- medium: "1.25rem",
1056
- comfortable: "1.5rem",
1057
- spacious: "2rem"
1058
- };
1059
- /**
1060
- * Corner radius map for card media (top corners only). Match card surface
1061
- * radii rather than button pills so media does not become capsule-clipped.
1062
- */
1063
- const MEDIA_CORNER_MAP = {
1064
- square: "0",
1065
- soft: "0.5rem",
1066
- rounded: "1rem",
1067
- pill: "1.5rem"
1068
- };
1069
- /**
1070
- * Generate CSS for a single card variant
1071
- *
1072
- * Generates complete CSS for card containers and their children:
1073
- * - Container: background, shadow, corners, border
1074
- * - .card-media: top corners matching container
1075
- * - .card-content: padding based on spacing
1076
- *
1077
- * This CSS-first approach eliminates runtime transforms for styling,
1078
- * keeping transforms only for data normalization and dynamic layout.
1079
- */
1080
- function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette, solvedInks) {
1081
- const selectorsFor = (suffix) => cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}${suffix}`).join(",\n");
1082
- const containerSelectors = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}`);
1083
- const containerSelector = containerSelectors.join(",\n");
1084
- const mediaSelector = selectorsFor(" .card-media");
1085
- const contentSelector = selectorsFor(" .card-content");
1086
- const fallbackBackgroundSelector = selectorsFor(" > .rb-bg-surface");
1087
- const rules = [];
1088
- rules.push(...cardSurfaceRules(variant, tokens, theme, palette, solvedInks));
1089
- const resolveColor = (token) => tokens.getColor(token);
1090
- rules.push(...cardBorderDeclarations(variant.border ? borderDeclaration(variant.border, tokens) : null, variant.decorations, resolveColor));
1091
- const corners = variant.corners ?? theme.corners;
1092
- const radius = variant.cornerRadii ? resolveCornerRadiiCss(variant.cornerRadii, corners) : CORNER_RADIUS_MAP[corners];
1093
- rules.push(`border-radius: ${radius}`);
1094
- const shadow = variant.shadow ?? theme.shadow;
1095
- if (shadow.elevation !== "none") {
1096
- const shadowValue = generateShadowValue(shadow);
1097
- rules.push(`box-shadow: ${shadowValue}`);
1098
- }
1099
- const structureSelector = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) :where(.${cardClass})`).join(",\n");
1100
- const mediaRadius = MEDIA_CORNER_MAP[corners];
1101
- const mediaRules = [`border-top-left-radius: ${mediaRadius}`, `border-top-right-radius: ${mediaRadius}`];
1102
- const contentRules = [`padding: ${resolveContentPadding(variant)}`];
1103
- return [
1104
- `${structureSelector} {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: visible;\n}`,
1105
- `${containerSelector} {\n ${renderCssDeclarations(rules)}\n}`,
1106
- ...cardDecorationPseudoRules(containerSelectors, variant.decorations, resolveColor),
1107
- `${fallbackBackgroundSelector} {\n background: transparent;\n}`,
1108
- `${mediaSelector} {\n ${mediaRules.join(";\n ")};\n}`,
1109
- `${contentSelector} {\n ${contentRules.join(";\n ")};\n}`
1110
- ].join("\n\n");
1111
- }
1112
- function cardSurfaceRules(variant, tokens, theme, palette, solvedInks) {
1113
- if (variant.background.type === "transparent") return ["background: transparent"];
1114
- const surface = resolveSurface({
1115
- kind: "paint",
1116
- paint: cardSurfacePaint(variant)
1117
- }, {
1118
- palette,
1119
- buttonSystem: theme.buttons,
1120
- linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
1121
- solvedInks
1122
- });
1123
- return [cardBackgroundRule(variant.background, tokens), ...opaqueSurfaceDeclarations(surface)];
1124
- }
1125
- function cardSurfacePaint(variant) {
1126
- switch (variant.background.type) {
1127
- case "transparent": return { kind: "transparent" };
1128
- case "solid": return {
1129
- kind: "solid",
1130
- token: variant.background.colorToken,
1131
- foregroundToken: variant.foregroundToken
1132
- };
1133
- case "gradient": return {
1134
- kind: "gradient",
1135
- foregroundToken: variant.foregroundToken
1136
- };
1137
- }
1138
- }
1139
- function cardBackgroundRule(background, tokens) {
1140
- if (background.type === "solid") return `background: ${tokens.getColor(background.colorToken)}`;
1141
- const from = tokens.getColor(background.fromToken);
1142
- const to = tokens.getColor(background.toToken);
1143
- return `background: linear-gradient(${GRADIENT_DIRECTION_MAP[background.direction] || "to right"}, ${from}, ${to})`;
1144
- }
1145
- function borderDeclaration(border, tokens) {
1146
- const borderColor = tokens.getColor(border.colorToken);
1147
- return `border: ${border.widthClass === "border-4" ? "4px" : border.widthClass === "border-2" ? "2px" : border.widthClass === "border" ? "1px" : "1px"} solid ${borderColor}`;
1148
- }
1149
- function paddingFor(spacing) {
1150
- return CONTENT_PADDING_MAP[spacing] || CONTENT_PADDING_MAP.comfortable;
812
+ };
813
+ default: return assertNever$2(composition, "Unhandled boundary composition");
814
+ }
1151
815
  }
1152
- /** A card's padding: one value for both axes, or one per axis. */
1153
- function resolveContentPadding(variant) {
1154
- const spacing = variant.spacing;
1155
- return typeof spacing === "string" ? paddingFor(spacing) : `${paddingFor(spacing.block)} ${paddingFor(spacing.inline)}`;
816
+ function requireThemeColorToken(value) {
817
+ const token = parseThemeColorToken(value);
818
+ if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
819
+ return token;
1156
820
  }
1157
821
  //#endregion
1158
822
  //#region ../theme-core/src/site-styles/resolver.ts
@@ -1172,8 +836,7 @@ const repairActionsByIssueKind = {
1172
836
  "unsupported-block-composition": ["remove-composition"],
1173
837
  "image-surface-treatment-without-image-surface": ["fallback-image-surface-treatment"],
1174
838
  "image-surface-motion-without-image-surface": ["fallback-image-surface-motion"],
1175
- "hero-legibility-overridden-by-image-surface-treatment": ["remove-hero-legibility"],
1176
- "hero-image-without-legibility": ["fallback-hero-legibility"]
839
+ "hero-image-without-treatment": ["fallback-image-surface-treatment"]
1177
840
  };
1178
841
  function repairActionsForIssue(issueKind) {
1179
842
  return repairActionsByIssueKind[issueKind];
@@ -1209,14 +872,13 @@ function supportsBlockComposition(capability, composition) {
1209
872
  case "feature-cards": return supported.kind === "feature-cards" && supported.treatments.includes(composition.treatment);
1210
873
  case "testimonials": return supported.kind === "testimonials" && supported.treatments.includes(composition.treatment);
1211
874
  case "offerings-preview": return supported.kind === "offerings-preview" && supported.treatments.includes(composition.treatment);
1212
- default: return assertNever$1(composition);
875
+ default: return assertNever$2(composition);
1213
876
  }
1214
877
  }
1215
878
  const blockDesignFallback = {
1216
879
  sectionSurface: "base",
1217
880
  contentFrame: plainFrame,
1218
881
  sectionHeight: "default",
1219
- heroLegibility: "none",
1220
882
  imageSurfaceTreatment: { kind: "none" },
1221
883
  imageSurfaceMotion: "static",
1222
884
  tileTreatment: "default",
@@ -1232,7 +894,6 @@ const appliedBlockDesignFallback = {
1232
894
  appliedContentFrame: blockDesignFallback.contentFrame,
1233
895
  appliedCardRole: null,
1234
896
  appliedSectionHeight: blockDesignFallback.sectionHeight,
1235
- appliedHeroLegibility: blockDesignFallback.heroLegibility,
1236
897
  appliedImageSurfaceTreatment: blockDesignFallback.imageSurfaceTreatment,
1237
898
  appliedImageSurfaceMotion: blockDesignFallback.imageSurfaceMotion,
1238
899
  appliedTileTreatment: blockDesignFallback.tileTreatment,
@@ -1257,7 +918,6 @@ function blockDesignRequest(block) {
1257
918
  contentFrame: block.contentFrame,
1258
919
  ...block.cardRole ? { cardRole: block.cardRole } : {},
1259
920
  sectionHeight: block.sectionHeight,
1260
- heroLegibility: block.heroLegibility,
1261
921
  imageSurfaceTreatment: block.imageSurfaceTreatment,
1262
922
  imageSurfaceMotion: block.imageSurfaceMotion,
1263
923
  tileTreatment: block.tileTreatment,
@@ -1276,7 +936,6 @@ function resolveBlockDesignPlan(input) {
1276
936
  let appliedContentFrame = block.contentFrame;
1277
937
  const appliedCardRole = appliedCardRoleFor(block, capability);
1278
938
  let appliedSectionHeight = block.sectionHeight ?? "default";
1279
- let appliedHeroLegibility = block.heroLegibility ?? "none";
1280
939
  let appliedImageSurfaceTreatment = block.imageSurfaceTreatment ?? { kind: "none" };
1281
940
  let appliedImageSurfaceMotion = block.imageSurfaceMotion ?? "static";
1282
941
  let appliedTileTreatment = block.tileTreatment ?? "default";
@@ -1503,33 +1162,18 @@ function resolveBlockDesignPlan(input) {
1503
1162
  allowedRepairActions: repairActionsForIssue("image-surface-motion-without-image-surface")
1504
1163
  });
1505
1164
  }
1506
- if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind !== "none" && appliedHeroLegibility !== "none") {
1507
- const requested = appliedHeroLegibility;
1508
- appliedHeroLegibility = "none";
1509
- issues.push({
1510
- kind: "hero-legibility-overridden-by-image-surface-treatment",
1511
- blockId: block.blockId,
1512
- blockKind: block.blockKind,
1513
- purpose: block.purpose,
1514
- requested,
1515
- fallback: appliedHeroLegibility,
1516
- policy: input.policy,
1517
- severity: designIssueSeverityForPolicy(input.policy),
1518
- allowedRepairActions: repairActionsForIssue("hero-legibility-overridden-by-image-surface-treatment")
1519
- });
1520
- }
1521
- if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none" && (block.heroLegibility === void 0 || appliedHeroLegibility === "none")) {
1522
- appliedHeroLegibility = "scrim-gradient";
1165
+ if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none") {
1166
+ appliedImageSurfaceTreatment = defaultHeroImageSurfaceTreatment;
1523
1167
  issues.push({
1524
- kind: "hero-image-without-legibility",
1168
+ kind: "hero-image-without-treatment",
1525
1169
  blockId: block.blockId,
1526
1170
  blockKind: block.blockKind,
1527
1171
  purpose: block.purpose,
1528
- requested: block.heroLegibility,
1529
- fallback: appliedHeroLegibility,
1172
+ requested: block.imageSurfaceTreatment,
1173
+ fallback: appliedImageSurfaceTreatment,
1530
1174
  policy: input.policy,
1531
1175
  severity: designIssueSeverityForPolicy(input.policy),
1532
- allowedRepairActions: repairActionsForIssue("hero-image-without-legibility")
1176
+ allowedRepairActions: repairActionsForIssue("hero-image-without-treatment")
1533
1177
  });
1534
1178
  }
1535
1179
  return {
@@ -1539,7 +1183,6 @@ function resolveBlockDesignPlan(input) {
1539
1183
  appliedCardRole,
1540
1184
  appliedSectionBackgroundPaints: capability.sectionBackgroundPaints,
1541
1185
  appliedSectionHeight,
1542
- appliedHeroLegibility,
1543
1186
  appliedImageSurfaceTreatment,
1544
1187
  appliedImageSurfaceMotion,
1545
1188
  appliedTileTreatment,
@@ -1667,7 +1310,7 @@ function resolveBrandDisplay(mode, logoFacts) {
1667
1310
  case "logo-plus-title": return "logo-plus-title";
1668
1311
  case "title-only": return "title-only";
1669
1312
  case "auto": return resolveAutoBrandDisplay(logoFacts);
1670
- default: return assertNever$1(mode, "Unhandled brand display mode");
1313
+ default: return assertNever$2(mode, "Unhandled brand display mode");
1671
1314
  }
1672
1315
  }
1673
1316
  /** Evidence that the artwork already supplies the brand's readable identity. */
@@ -1891,7 +1534,7 @@ function logoFactsForHeaderContext(logo) {
1891
1534
  case "horizontal":
1892
1535
  case "square":
1893
1536
  case "tall": return deterministicLogoFactsForShape(logo.shape);
1894
- default: return assertNever$1(logo.shape, "Unhandled header logo shape");
1537
+ default: return assertNever$2(logo.shape, "Unhandled header logo shape");
1895
1538
  }
1896
1539
  }
1897
1540
  const headerLayoutCatalog = defineExactCatalog()([
@@ -2132,7 +1775,7 @@ function compositionCapabilityFor(composition) {
2132
1775
  kind: "offerings-preview",
2133
1776
  treatments: [composition.treatment]
2134
1777
  };
2135
- default: return assertNever$1(composition);
1778
+ default: return assertNever$2(composition);
2136
1779
  }
2137
1780
  }
2138
1781
  //#endregion
@@ -2243,7 +1886,7 @@ function selectCandidate(candidates) {
2243
1886
  outcome
2244
1887
  };
2245
1888
  case "unsupported": continue;
2246
- default: return assertNever$1(outcome, "Unhandled join candidate outcome");
1889
+ default: return assertNever$2(outcome, "Unhandled join candidate outcome");
2247
1890
  }
2248
1891
  }
2249
1892
  return { kind: "exhausted" };
@@ -2263,7 +1906,7 @@ function fallbackOptionId(outcome) {
2263
1906
  switch (outcome.kind) {
2264
1907
  case "decorative": return boundaryOptionForTransitionIntent(outcome.treatment).id;
2265
1908
  case "none": return noneBoundaryOption.id;
2266
- default: return assertNever$1(outcome, "Unhandled join fallback outcome");
1909
+ default: return assertNever$2(outcome, "Unhandled join fallback outcome");
2267
1910
  }
2268
1911
  }
2269
1912
  function requiresPhoto(option) {
@@ -2841,7 +2484,7 @@ function pinnedBreakChoice(resolution) {
2841
2484
  },
2842
2485
  issues: resolution.issues
2843
2486
  };
2844
- default: return assertNever$1(resolution.pin, "Unhandled join pin status");
2487
+ default: return assertNever$2(resolution.pin, "Unhandled join pin status");
2845
2488
  }
2846
2489
  }
2847
2490
  /** The effective break as the option the editor shows; null when nothing was usable. */
@@ -3181,83 +2824,407 @@ function editorMode(block) {
3181
2824
  variantMeaning: block.variantMeaning
3182
2825
  }, { variant: block.storedVariant.kind === "explicit" ? block.storedVariant.key : void 0 });
3183
2826
  }
3184
- function editorArrangementCapabilities(block, mode, style) {
3185
- return {
3186
- blockKind: block.blockKind,
3187
- mode,
3188
- arrangementKeys: [...block.variantMeaning?.lookOnlyKeys ?? [], ...block.arrangementKeys ?? block.designMetadata?.layoutProfiles.map((profile) => profile.variantKey) ?? []],
3189
- mappedRoles: [
3190
- "card",
3191
- "statement",
3192
- "highlight"
3193
- ],
3194
- declaredSurfaces: style?.looks.kind === "offers" ? Object.keys(style.looks.surfaces) : [],
3195
- knobBuffet: block.knobBuffet ?? [],
3196
- ...contentPartsCapability(block)
2827
+ function editorArrangementCapabilities(block, mode, style) {
2828
+ return {
2829
+ blockKind: block.blockKind,
2830
+ mode,
2831
+ arrangementKeys: [...block.variantMeaning?.lookOnlyKeys ?? [], ...block.arrangementKeys ?? block.designMetadata?.layoutProfiles.map((profile) => profile.variantKey) ?? []],
2832
+ mappedRoles: [
2833
+ "card",
2834
+ "statement",
2835
+ "highlight"
2836
+ ],
2837
+ declaredSurfaces: style?.looks.kind === "offers" ? Object.keys(style.looks.surfaces) : [],
2838
+ knobBuffet: block.knobBuffet ?? [],
2839
+ ...contentPartsCapability(block)
2840
+ };
2841
+ }
2842
+ function contentPartsCapability(block) {
2843
+ const contentParts = editorContentParts(block);
2844
+ return contentParts === void 0 ? {} : { contentParts };
2845
+ }
2846
+ function resolvedLookPreservesPin(resolved) {
2847
+ switch (resolved.kind) {
2848
+ case "offered":
2849
+ case "recipe": return resolved.source === "pinned";
2850
+ case "style-fallback":
2851
+ case "mode-mismatch": return true;
2852
+ case "none": return false;
2853
+ }
2854
+ }
2855
+ function editorArrangementLayoutResult(block, style, lookId, recipe) {
2856
+ if (style?.looks.kind !== "offers" || lookId === null) return recipe;
2857
+ if (block.variantMeaning?.kind === "mode") {
2858
+ const mode = editorMode(block);
2859
+ if (mode === null) return recipe;
2860
+ const key = asLayoutVariantKey(mode);
2861
+ return {
2862
+ ...recipe,
2863
+ choice: {
2864
+ ...recipe.choice,
2865
+ effectiveValue: key
2866
+ },
2867
+ selection: recipe.selection ? {
2868
+ ...recipe.selection,
2869
+ effectiveValue: key
2870
+ } : {
2871
+ kind: "selected",
2872
+ value: key,
2873
+ status: "supported",
2874
+ effectiveValue: key
2875
+ }
2876
+ };
2877
+ }
2878
+ const key = resolveEffectiveArrangement({
2879
+ look: arrangementAppearancePresets.find((entry) => entry.id === lookId),
2880
+ mode: editorMode(block),
2881
+ storedVariant: block.storedVariant,
2882
+ manifest: {
2883
+ keys: block.arrangementKeys ?? [],
2884
+ defaultKey: null
2885
+ }
2886
+ }).key;
2887
+ return key === null ? recipe : {
2888
+ choice: autoEditorChoice(key),
2889
+ issue: null,
2890
+ selection: {
2891
+ kind: "selected",
2892
+ value: key,
2893
+ status: "supported",
2894
+ effectiveValue: key
2895
+ }
2896
+ };
2897
+ }
2898
+ function editorLookOptionsForSection(input) {
2899
+ const layout = editorEffectiveLayout(input);
2900
+ return input.siteStyle?.looks.kind === "offers" || layout.kind === "none" ? lookOptionsForBlock({
2901
+ ...input,
2902
+ effectiveLayoutProfile: null
2903
+ }) : availableLooksForLayout(input.availableLooksByLayout, layout.key);
2904
+ }
2905
+ //#endregion
2906
+ //#region ../theme-core/src/cards/constants.ts
2907
+ /**
2908
+ * Corner style to border-radius value map for content-bearing card surfaces.
2909
+ * Full pill radii are reserved for controls; cards need a capped radius so
2910
+ * long titles, media, and expanded content do not clip into capsule shapes.
2911
+ */
2912
+ const CORNER_RADIUS_MAP = {
2913
+ square: "0px",
2914
+ soft: "8px",
2915
+ rounded: "16px",
2916
+ pill: "24px"
2917
+ };
2918
+ /**
2919
+ * Gradient direction to CSS direction map
2920
+ */
2921
+ const GRADIENT_DIRECTION_MAP = {
2922
+ "to-r": "to right",
2923
+ "to-l": "to left",
2924
+ "to-t": "to top",
2925
+ "to-b": "to bottom",
2926
+ "to-tr": "to top right",
2927
+ "to-tl": "to top left",
2928
+ "to-br": "to bottom right",
2929
+ "to-bl": "to bottom left"
2930
+ };
2931
+ /**
2932
+ * Generate CSS box-shadow value from Shadow object
2933
+ */
2934
+ function generateShadowValue(shadow) {
2935
+ if (shadow.elevation === "none") return "none";
2936
+ const offset = {
2937
+ low: 2,
2938
+ medium: 4,
2939
+ high: 6
2940
+ }[shadow.elevation];
2941
+ const xOffset = shadow.position === "bottom-right" ? offset : 0;
2942
+ if (shadow.softness === "hard") return `${xOffset}px ${offset}px 0 0 rgba(0,0,0,1)`;
2943
+ const soft = shadow.softness !== "crisp";
2944
+ switch (shadow.elevation) {
2945
+ case "low": return soft ? `${xOffset}px 1px 2px rgba(0,0,0,.06)` : `${xOffset}px 1px 1px rgba(0,0,0,.12)`;
2946
+ case "medium": return soft ? `${xOffset}px 10px 20px rgba(0,0,0,.08)` : `${xOffset}px 6px 12px rgba(0,0,0,.16)`;
2947
+ case "high": return soft ? `${xOffset}px 25px 50px rgba(0,0,0,.18)` : `${xOffset}px 20px 30px rgba(0,0,0,.28)`;
2948
+ }
2949
+ }
2950
+ //#endregion
2951
+ //#region ../theme-core/src/cards/decorations.ts
2952
+ const CARD_EDGE_RULE_WIDTH_MAP = {
2953
+ hairline: "1px",
2954
+ thin: "2px",
2955
+ medium: "3px",
2956
+ thick: "4px",
2957
+ heavy: "5px"
2958
+ };
2959
+ const CARD_EDGE_BORDER_PROPERTY_MAP = {
2960
+ left: "border-left",
2961
+ top: "border-top",
2962
+ right: "border-right",
2963
+ bottom: "border-bottom"
2964
+ };
2965
+ /**
2966
+ * The one short-rule length in the corpus (the editorial-rule accent). A fixed
2967
+ * constant keeps `length: 'short'` a semantic choice rather than a free number.
2968
+ */
2969
+ const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
2970
+ function isFullLength(rule) {
2971
+ return (rule.length ?? "full") === "full";
2972
+ }
2973
+ /** Apply a decoration's optional alpha to its resolved colour. */
2974
+ function cardDecorationColor(rule, resolveColor) {
2975
+ const color = resolveColor(rule.colorToken);
2976
+ if (rule.alpha === void 0 || rule.alpha >= 1) return color;
2977
+ return `color-mix(in oklab, ${color}, transparent ${Math.round((1 - rule.alpha) * 100)}%)`;
2978
+ }
2979
+ /**
2980
+ * Container border declarations for a variant's border and its full-length
2981
+ * edge rules. The two are independent: a card may be outlined *and* carry an
2982
+ * accent edge. A variant with edge rules and no border still zeroes the box so
2983
+ * only the decorated sides draw.
2984
+ */
2985
+ function cardBorderDeclarations(borderDeclaration, decorations, resolveColor) {
2986
+ const fullLengthRules = (decorations ?? []).filter(isFullLength);
2987
+ const declarations = [];
2988
+ if (borderDeclaration) declarations.push(borderDeclaration);
2989
+ else if (fullLengthRules.length > 0) declarations.push("border: 0");
2990
+ for (const rule of fullLengthRules) {
2991
+ const side = CARD_EDGE_BORDER_PROPERTY_MAP[rule.edge];
2992
+ const width = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
2993
+ declarations.push(`${side}: ${width} solid ${cardDecorationColor(rule, resolveColor)}`);
2994
+ }
2995
+ return declarations;
2996
+ }
2997
+ function horizontalAlignDeclarations(align) {
2998
+ switch (align ?? "start") {
2999
+ case "start": return ["left: 0"];
3000
+ case "center": return ["left: 50%", "transform: translateX(-50%)"];
3001
+ case "end": return ["right: 0"];
3002
+ }
3003
+ }
3004
+ function verticalAlignDeclarations(align) {
3005
+ switch (align ?? "start") {
3006
+ case "start": return ["top: 0"];
3007
+ case "center": return ["top: 50%", "transform: translateY(-50%)"];
3008
+ case "end": return ["bottom: 0"];
3009
+ }
3010
+ }
3011
+ function shortEdgeRuleDeclarations(rule, resolveColor) {
3012
+ const thickness = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
3013
+ const isHorizontal = rule.edge === "top" || rule.edge === "bottom";
3014
+ return [
3015
+ "content: \"\"",
3016
+ "position: absolute",
3017
+ `${rule.edge}: 0`,
3018
+ ...isHorizontal ? horizontalAlignDeclarations(rule.align) : verticalAlignDeclarations(rule.align),
3019
+ `width: ${isHorizontal ? SHORT_CARD_EDGE_RULE_LENGTH : thickness}`,
3020
+ `height: ${isHorizontal ? thickness : SHORT_CARD_EDGE_RULE_LENGTH}`,
3021
+ `background: ${cardDecorationColor(rule, resolveColor)}`
3022
+ ];
3023
+ }
3024
+ /**
3025
+ * The pseudo-elements a card container can lend to short edge rules. A short
3026
+ * rule cannot be a border, so it is drawn on `::before` / `::after` against the
3027
+ * container (which always sets `position: relative`) — and a card has exactly
3028
+ * two of those.
3029
+ */
3030
+ const CARD_DECORATION_PSEUDOS = ["::before", "::after"];
3031
+ /**
3032
+ * Complete pseudo-element rules for a variant's short edge rules.
3033
+ *
3034
+ * `cardDecorationsSchema` caps the list at two, which makes the two pseudos
3035
+ * sufficient for anything that parsed. The dependency-free core types carry a
3036
+ * plain array with no such cap, so short rules past the second are dropped
3037
+ * here rather than silently overwriting `::after`.
3038
+ */
3039
+ function cardDecorationPseudoRules(containerSelectors, decorations, resolveColor) {
3040
+ const shortRules = (decorations ?? []).filter((rule) => !isFullLength(rule));
3041
+ return CARD_DECORATION_PSEUDOS.flatMap((pseudo, index) => {
3042
+ const rule = shortRules[index];
3043
+ if (!rule) return [];
3044
+ return [`${containerSelectors.map((containerSelector) => `${containerSelector}${pseudo}`).join(",\n")} {\n ${shortEdgeRuleDeclarations(rule, resolveColor).join(";\n ")};\n}`];
3045
+ });
3046
+ }
3047
+ //#endregion
3048
+ //#region ../theme-core/src/utils/cssDeclarations.ts
3049
+ /** Render CSS declarations whether callers provide terminators or fragments. */
3050
+ function renderCssDeclarations(declarations) {
3051
+ return declarations.map((declaration) => declaration.endsWith(";") ? declaration : `${declaration};`).join("\n ");
3052
+ }
3053
+ //#endregion
3054
+ //#region ../theme-core/src/cards/generateCardCss.ts
3055
+ const PER_CORNER_RADIUS_MAP = {
3056
+ square: "0",
3057
+ soft: "0.5rem",
3058
+ rounded: "1rem",
3059
+ pill: "1.5rem",
3060
+ expressive: "calc(var(--rb-block-radius) * 3)"
3061
+ };
3062
+ function resolveCornerRadiiCss(cornerRadii, fallback) {
3063
+ const fallbackValue = CORNER_RADIUS_MAP[fallback];
3064
+ const at = (value) => value ? PER_CORNER_RADIUS_MAP[value] : fallbackValue;
3065
+ return `${at(cornerRadii.topLeft)} ${at(cornerRadii.topRight)} ${at(cornerRadii.bottomRight)} ${at(cornerRadii.bottomLeft)}`;
3066
+ }
3067
+ function generateCardCss(options) {
3068
+ const { themeId, cardSystem: providedCardSystem, solvedInks } = options;
3069
+ const theme = {
3070
+ ...options.theme,
3071
+ buttons: ownedThemeSnapshot(options.theme.buttons)
3197
3072
  };
3073
+ const tokens = new TokenResolver(theme);
3074
+ const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
3075
+ const cardSystem = providedCardSystem ?? generateDefaultCardSystem(theme);
3076
+ const source = providedCardSystem ? "site-style" : "generated-baseline";
3077
+ const aliasGroups = resolveRoleAliasGroups(theme, providedCardSystem ?? null);
3078
+ const cssChunks = [];
3079
+ const emittedGroupKeys = /* @__PURE__ */ new Set();
3080
+ for (const variant of cardSystem.variants) {
3081
+ if (!variant.enabled) continue;
3082
+ const groupKey = roleAliasGroupKey(source, variant.id);
3083
+ emittedGroupKeys.add(groupKey);
3084
+ const aliasClasses = aliasGroups.get(groupKey)?.classes ?? [];
3085
+ cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette, solvedInks));
3086
+ }
3087
+ for (const [groupKey, group] of aliasGroups) {
3088
+ if (emittedGroupKeys.has(groupKey)) continue;
3089
+ cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette, solvedInks));
3090
+ }
3091
+ return cssChunks.filter(Boolean).join("\n\n");
3198
3092
  }
3199
- function contentPartsCapability(block) {
3200
- const contentParts = editorContentParts(block);
3201
- return contentParts === void 0 ? {} : { contentParts };
3093
+ function roleAliasGroupKey(source, variantId) {
3094
+ return `${source}:${variantId}`;
3202
3095
  }
3203
- function resolvedLookPreservesPin(resolved) {
3204
- switch (resolved.kind) {
3205
- case "offered":
3206
- case "recipe": return resolved.source === "pinned";
3207
- case "style-fallback":
3208
- case "mode-mismatch": return true;
3209
- case "none": return false;
3096
+ /**
3097
+ * Stable per-theme role aliases (`.card-role-default` and friends), resolved
3098
+ * through the fallback chain so compiled content can address a role without
3099
+ * knowing which variant id a site style used — or whether it defined one.
3100
+ *
3101
+ * Aliases are grouped by the variant they resolve to, so an alias shares one
3102
+ * rule with that variant rather than duplicating its declarations.
3103
+ */
3104
+ function resolveRoleAliasGroups(theme, cardSystem) {
3105
+ const groups = /* @__PURE__ */ new Map();
3106
+ for (const role of surfaceCardRoleValues) {
3107
+ const resolved = resolveCardRole(theme, cardSystem, role);
3108
+ if (resolved.kind === "none") continue;
3109
+ const groupKey = roleAliasGroupKey(resolved.source, resolved.variant.id);
3110
+ const aliasClass = `card-role-${role}`;
3111
+ const group = groups.get(groupKey);
3112
+ if (group) group.classes.push(aliasClass);
3113
+ else groups.set(groupKey, {
3114
+ variant: resolved.variant,
3115
+ classes: [aliasClass]
3116
+ });
3210
3117
  }
3118
+ return groups;
3211
3119
  }
3212
- function editorArrangementLayoutResult(block, style, lookId, recipe) {
3213
- if (style?.looks.kind !== "offers" || lookId === null) return recipe;
3214
- if (block.variantMeaning?.kind === "mode") {
3215
- const mode = editorMode(block);
3216
- if (mode === null) return recipe;
3217
- const key = asLayoutVariantKey(mode);
3218
- return {
3219
- ...recipe,
3220
- choice: {
3221
- ...recipe.choice,
3222
- effectiveValue: key
3223
- },
3224
- selection: recipe.selection ? {
3225
- ...recipe.selection,
3226
- effectiveValue: key
3227
- } : {
3228
- kind: "selected",
3229
- value: key,
3230
- status: "supported",
3231
- effectiveValue: key
3232
- }
3120
+ /**
3121
+ * Padding map for card content based on spacing semantic values
3122
+ */
3123
+ const CONTENT_PADDING_MAP = {
3124
+ none: "0",
3125
+ compact: "0.75rem",
3126
+ cozy: "1rem",
3127
+ medium: "1.25rem",
3128
+ comfortable: "1.5rem",
3129
+ spacious: "2rem"
3130
+ };
3131
+ /**
3132
+ * Corner radius map for card media (top corners only). Match card surface
3133
+ * radii rather than button pills so media does not become capsule-clipped.
3134
+ */
3135
+ const MEDIA_CORNER_MAP = {
3136
+ square: "0",
3137
+ soft: "0.5rem",
3138
+ rounded: "1rem",
3139
+ pill: "1.5rem"
3140
+ };
3141
+ /**
3142
+ * Generate CSS for a single card variant
3143
+ *
3144
+ * Generates complete CSS for card containers and their children:
3145
+ * - Container: background, shadow, corners, border
3146
+ * - .card-media: top corners matching container
3147
+ * - .card-content: padding based on spacing
3148
+ *
3149
+ * This CSS-first approach eliminates runtime transforms for styling,
3150
+ * keeping transforms only for data normalization and dynamic layout.
3151
+ */
3152
+ function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette, solvedInks) {
3153
+ const selectorsFor = (suffix) => cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}${suffix}`).join(",\n");
3154
+ const containerSelectors = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}`);
3155
+ const containerSelector = containerSelectors.join(",\n");
3156
+ const mediaSelector = selectorsFor(" .card-media");
3157
+ const contentSelector = selectorsFor(" .card-content");
3158
+ const fallbackBackgroundSelector = selectorsFor(" > .rb-bg-surface");
3159
+ const rules = [];
3160
+ rules.push(...cardSurfaceRules(variant, tokens, theme, palette, solvedInks));
3161
+ const resolveColor = (token) => tokens.getColor(token);
3162
+ rules.push(...cardBorderDeclarations(variant.border ? borderDeclaration(variant.border, tokens) : null, variant.decorations, resolveColor));
3163
+ const corners = variant.corners ?? theme.corners;
3164
+ const radius = variant.cornerRadii ? resolveCornerRadiiCss(variant.cornerRadii, corners) : CORNER_RADIUS_MAP[corners];
3165
+ rules.push(`border-radius: ${radius}`);
3166
+ const shadow = variant.shadow ?? theme.shadow;
3167
+ if (shadow.elevation !== "none") {
3168
+ const shadowValue = generateShadowValue(shadow);
3169
+ rules.push(`box-shadow: ${shadowValue}`);
3170
+ }
3171
+ const structureSelector = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) :where(.${cardClass})`).join(",\n");
3172
+ const mediaRadius = MEDIA_CORNER_MAP[corners];
3173
+ const mediaRules = [`border-top-left-radius: ${mediaRadius}`, `border-top-right-radius: ${mediaRadius}`];
3174
+ const contentRules = [`padding: ${resolveContentPadding(variant)}`];
3175
+ return [
3176
+ `${structureSelector} {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: visible;\n}`,
3177
+ `${containerSelector} {\n ${renderCssDeclarations(rules)}\n}`,
3178
+ ...cardDecorationPseudoRules(containerSelectors, variant.decorations, resolveColor),
3179
+ `${fallbackBackgroundSelector} {\n background: transparent;\n}`,
3180
+ `${mediaSelector} {\n ${mediaRules.join(";\n ")};\n}`,
3181
+ `${contentSelector} {\n ${contentRules.join(";\n ")};\n}`
3182
+ ].join("\n\n");
3183
+ }
3184
+ function cardSurfaceRules(variant, tokens, theme, palette, solvedInks) {
3185
+ if (variant.background.type === "transparent") return ["background: transparent"];
3186
+ const surface = resolveSurface({
3187
+ kind: "paint",
3188
+ paint: cardSurfacePaint(variant)
3189
+ }, {
3190
+ palette,
3191
+ buttonSystem: theme.buttons,
3192
+ linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
3193
+ solvedInks
3194
+ });
3195
+ return [cardBackgroundRule(variant.background, tokens), ...opaqueSurfaceDeclarations(surface)];
3196
+ }
3197
+ function cardSurfacePaint(variant) {
3198
+ switch (variant.background.type) {
3199
+ case "transparent": return { kind: "transparent" };
3200
+ case "solid": return {
3201
+ kind: "solid",
3202
+ token: variant.background.colorToken,
3203
+ foregroundToken: variant.foregroundToken
3204
+ };
3205
+ case "gradient": return {
3206
+ kind: "gradient",
3207
+ foregroundToken: variant.foregroundToken
3233
3208
  };
3234
3209
  }
3235
- const key = resolveEffectiveArrangement({
3236
- look: arrangementAppearancePresets.find((entry) => entry.id === lookId),
3237
- mode: editorMode(block),
3238
- storedVariant: block.storedVariant,
3239
- manifest: {
3240
- keys: block.arrangementKeys ?? [],
3241
- defaultKey: null
3242
- }
3243
- }).key;
3244
- return key === null ? recipe : {
3245
- choice: autoEditorChoice(key),
3246
- issue: null,
3247
- selection: {
3248
- kind: "selected",
3249
- value: key,
3250
- status: "supported",
3251
- effectiveValue: key
3252
- }
3253
- };
3254
3210
  }
3255
- function editorLookOptionsForSection(input) {
3256
- const layout = editorEffectiveLayout(input);
3257
- return input.siteStyle?.looks.kind === "offers" || layout.kind === "none" ? lookOptionsForBlock({
3258
- ...input,
3259
- effectiveLayoutProfile: null
3260
- }) : availableLooksForLayout(input.availableLooksByLayout, layout.key);
3211
+ function cardBackgroundRule(background, tokens) {
3212
+ if (background.type === "solid") return `background: ${tokens.getColor(background.colorToken)}`;
3213
+ const from = tokens.getColor(background.fromToken);
3214
+ const to = tokens.getColor(background.toToken);
3215
+ return `background: linear-gradient(${GRADIENT_DIRECTION_MAP[background.direction] || "to right"}, ${from}, ${to})`;
3216
+ }
3217
+ function borderDeclaration(border, tokens) {
3218
+ const borderColor = tokens.getColor(border.colorToken);
3219
+ return `border: ${border.widthClass === "border-4" ? "4px" : border.widthClass === "border-2" ? "2px" : border.widthClass === "border" ? "1px" : "1px"} solid ${borderColor}`;
3220
+ }
3221
+ function paddingFor(spacing) {
3222
+ return CONTENT_PADDING_MAP[spacing] || CONTENT_PADDING_MAP.comfortable;
3223
+ }
3224
+ /** A card's padding: one value for both axes, or one per axis. */
3225
+ function resolveContentPadding(variant) {
3226
+ const spacing = variant.spacing;
3227
+ return typeof spacing === "string" ? paddingFor(spacing) : `${paddingFor(spacing.block)} ${paddingFor(spacing.inline)}`;
3261
3228
  }
3262
3229
  //#endregion
3263
3230
  //#region ../theme-core/src/header/legacyNavLinkStyle.ts
@@ -4670,6 +4637,20 @@ const opaquePanels = [
4670
4637
  kind: "solid",
4671
4638
  token: "surface"
4672
4639
  }
4640
+ },
4641
+ {
4642
+ selector: "[data-block=\"gifting\"] .gifting-panel",
4643
+ paint: {
4644
+ kind: "solid",
4645
+ token: "surface"
4646
+ }
4647
+ },
4648
+ {
4649
+ selector: "[data-block=\"gifting\"] .gifting-field :is(input, textarea)",
4650
+ paint: {
4651
+ kind: "solid",
4652
+ token: "surface"
4653
+ }
4673
4654
  }
4674
4655
  ];
4675
4656
  /**
@@ -5964,77 +5945,26 @@ const NAV_RENDERED_STATES = [
5964
5945
  function isNavHover(state) {
5965
5946
  return state === "hover" || state === "current-hover";
5966
5947
  }
5967
- function isCurrent(state) {
5968
- return state === "current" || state === "current-hover";
5969
- }
5970
- /** Mirrors the historical emitters: every group writes a base gradient and hover opacity;
5971
- * active groups additionally write the more specific current-page selector. */
5972
- function resolveRenderedNavEffects(effects, state) {
5973
- const applications = [
5974
- "base",
5975
- "hover",
5976
- "active",
5977
- "focus"
5978
- ].flatMap((group) => (effects?.[group] ?? []).map((effect) => ({
5979
- effect,
5980
- group
5981
- })));
5982
- const opacity = winner(applications.filter(({ effect }) => effect.effectId === "fade-background" || effect.effectId === "opacity-reduce").flatMap((app) => opacityCandidates(app, state)));
5983
- return {
5984
- text: winner(applications.filter(({ effect }) => effect.effectId === "gradient-text").flatMap((app) => textCandidates(app, state))),
5985
- opacity: opacity ? authoredOpacity(opacity) : null
5986
- };
5987
- }
5988
- function authoredOpacity(effect) {
5989
- const options = effect.options ?? {};
5990
- const opacity = effect.effectId === "fade-background" ? Number(options.opacity || 80) / 100 : 1 - Number(options.reduction || 15) / 100;
5991
- return Number.isFinite(opacity) && opacity >= 0 && opacity <= 1 ? opacity : null;
5992
- }
5993
- function textCandidates(app, state) {
5994
- const gradient = {
5995
- effect: app.effect,
5996
- fill: "gradient"
5997
- };
5998
- const solid = {
5999
- effect: app.effect,
6000
- fill: "solid"
6001
- };
6002
- const solidOnHover = app.effect.options?.solidOnHover === true || app.effect.options?.solidOnHover === "true";
6003
- const hover = isNavHover(state) && solidOnHover ? [{
6004
- value: solid,
6005
- specificity: 2
6006
- }] : [];
6007
- const currentHover = isNavHover(state) && solidOnHover ? [{
6008
- value: solid,
6009
- specificity: 3
6010
- }] : [];
6011
- const current = isCurrent(state) && app.group === "active" ? [{
6012
- value: gradient,
6013
- specificity: 2
6014
- }, ...currentHover] : [];
6015
- return [
6016
- {
6017
- value: gradient,
6018
- specificity: 1
6019
- },
6020
- ...hover,
6021
- ...current
6022
- ];
6023
- }
6024
- function opacityCandidates(app, state) {
6025
- if (!isNavHover(state)) return [];
6026
- const current = isCurrent(state) && app.group === "active" ? [{
6027
- value: app.effect,
6028
- specificity: 3
6029
- }] : [];
6030
- return [{
6031
- value: app.effect,
6032
- specificity: 2
6033
- }, ...current];
5948
+ /** Project the emitted declarations into the four disjoint nav states. */
5949
+ function resolveRenderedNavEffects(effects, state) {
5950
+ const current = state === "current" || state === "current-hover";
5951
+ const declarations = resolveEffectApplications(effects).flatMap((application) => {
5952
+ if (application.currentPage && !current) return [];
5953
+ return resolveEffectPaint(application.effect, { background: { type: "transparent" } }).filter((paint) => paint.when === "always" || isNavHover(state)).map((paint) => ({
5954
+ paint,
5955
+ specificity: 1 + Number(application.currentPage) + Number(paint.when === "hover")
5956
+ }));
5957
+ });
5958
+ const text = winner(declarations.filter(({ paint }) => paint.property === "text"));
5959
+ const opacity = winner(declarations.filter(({ paint }) => paint.property === "opacity"));
5960
+ return {
5961
+ text: text?.property === "text" ? text : null,
5962
+ opacity: opacity?.property === "opacity" && Number.isFinite(opacity.opacity) && opacity.opacity >= 0 && opacity.opacity <= 1 ? opacity.opacity : null
5963
+ };
6034
5964
  }
6035
5965
  /** Later declarations win equal specificity, just as they do in the emitted CSS. */
6036
5966
  function winner(candidates) {
6037
- return candidates.reduce((chosen, candidate) => chosen === null || candidate.specificity >= chosen.specificity ? candidate : chosen, null)?.value ?? null;
5967
+ return candidates.reduce((chosen, candidate) => chosen === null || candidate.specificity >= chosen.specificity ? candidate : chosen, null)?.paint ?? null;
6038
5968
  }
6039
5969
  //#endregion
6040
5970
  //#region ../theme-core/src/header/navEffectPaint.ts
@@ -6098,7 +6028,7 @@ function planText(text, plainInk, state, context) {
6098
6028
  rules: [],
6099
6029
  inks: [plainInk]
6100
6030
  };
6101
- const stops = renderedTextStops(text, context.palette);
6031
+ const stops = text.tokens.map((token) => resolveConcreteColorHex(token, context.palette));
6102
6032
  if (decideNavEffectContrast(context.paint, plainInk, {
6103
6033
  effect: "gradient-text",
6104
6034
  option: stops,
@@ -6120,15 +6050,6 @@ function planText(text, plainInk, state, context) {
6120
6050
  } : null)
6121
6051
  };
6122
6052
  }
6123
- function renderedTextStops(text, palette) {
6124
- if (text.fill === "solid") return [resolveConcreteColorHex("neutral-50", palette)];
6125
- const colors = text.effect.options?.gradientColors;
6126
- return (typeof colors === "string" && colors ? colors.split(",").map((token) => token.trim()) : [
6127
- "primary-400",
6128
- "secondary-400",
6129
- "accent-400"
6130
- ]).map((token) => resolveConcreteColorHex(token, palette));
6131
- }
6132
6053
  function opacityRules(authored, inks, paint) {
6133
6054
  if (authored === null || inks.length === 0 || inks.some((ink) => ink === null)) return [];
6134
6055
  const decisions = inks.map((ink) => decideNavEffectContrast(paint, ink, {
@@ -6159,25 +6080,30 @@ function resolveInk(reference, palette) {
6159
6080
  //#endregion
6160
6081
  //#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
6161
6082
  function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
6162
- const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
6083
+ const style = resolvedHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
6163
6084
  if (!style) {
6164
6085
  console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
6165
6086
  return "";
6166
6087
  }
6167
- const renderedStyle = mergeHeaderNavTypographyPreference(style, {
6168
- typography: header.navFontRole ?? "inherit",
6169
- fontSize: readHeaderNavFontSizePreference(header.navTextSize),
6170
- interactionPalette: header.interactionPalette ?? "recommended"
6171
- });
6172
6088
  return generateNavLinkCSS({
6173
6089
  themeId,
6174
6090
  tokens,
6175
6091
  theme,
6176
- style: renderedStyle,
6092
+ style,
6177
6093
  className: "header-nav-link",
6178
6094
  surfaceDependent: true,
6179
6095
  surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
6180
- }) + generateHeaderNavEffectContrastCss(header, renderedStyle, theme, themeId);
6096
+ }) + generateHeaderNavEffectContrastCss(header, style, theme, themeId);
6097
+ }
6098
+ /** The top-level nav link style as it renders, with the owner's font role and size preferences applied. */
6099
+ function resolvedHeaderNavLinkStyle(header, contrastTreatment, navTextSize) {
6100
+ const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
6101
+ if (!style) return null;
6102
+ return mergeHeaderNavTypographyPreference(style, {
6103
+ typography: header.navFontRole ?? "inherit",
6104
+ fontSize: readHeaderNavFontSizePreference(header.navTextSize),
6105
+ interactionPalette: header.interactionPalette ?? "recommended"
6106
+ });
6181
6107
  }
6182
6108
  //#endregion
6183
6109
  //#region ../theme-core/src/header/generateHeaderLogoStyles.ts
@@ -6249,7 +6175,8 @@ function generateHeaderCss(options) {
6249
6175
  cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
6250
6176
  const dropdown = resolveDropdownSurface(header, theme, tokens, solvedInks);
6251
6177
  cssChunks.push(generateDropdownContainerStyles(themeId, tokens, dropdown));
6252
- cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme, dropdown));
6178
+ const navLinkStyle = resolvedHeaderNavLinkStyle(header, headerContrastTreatment, headerNavTextSize);
6179
+ cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme, dropdown, navLinkStyle));
6253
6180
  cssChunks.push(generateDropdownCaretStyles(themeId));
6254
6181
  cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
6255
6182
  cssChunks.push(generateMobilePanelStyles(themeId, dropdown));
@@ -6378,16 +6305,37 @@ function dropdownLinkEffects({ linkFill, linkText }, state) {
6378
6305
  options: { hoverColorToken: text }
6379
6306
  }] : []];
6380
6307
  }
6381
- function dropdownNavLinkStyle(header, surface) {
6382
- const style = surface.style;
6383
- const textToken = surface.textToken;
6308
+ /**
6309
+ * The type the menu takes from the nav links above it: font, case and letter spacing follow the nav,
6310
+ * unless the header Look gives the menu its own case or spacing.
6311
+ */
6312
+ function dropdownTypeFromNav(style, navLinkStyle) {
6313
+ const nav = navLinkStyle ?? {
6314
+ typography: "body",
6315
+ textTransform: "none",
6316
+ letterSpacing: void 0
6317
+ };
6318
+ const ownCase = dropdownOwnCase(style);
6319
+ const followsNavSpacing = (style?.letterSpacing ?? "normal") === "normal";
6320
+ return {
6321
+ typography: nav.typography,
6322
+ textTransform: ownCase ?? nav.textTransform ?? "none",
6323
+ ...followsNavSpacing && nav.letterSpacing ? { letterSpacing: nav.letterSpacing } : {}
6324
+ };
6325
+ }
6326
+ /** The case a header Look gives the menu itself, or null when the menu follows the nav. */
6327
+ function dropdownOwnCase(style) {
6328
+ const textTransform = style?.textTransform ?? "none";
6329
+ return textTransform === "none" ? null : textTransform;
6330
+ }
6331
+ /** The menu's links set in the nav links' type; size and weight stay the menu's. */
6332
+ function dropdownNavLinkStyle(header, surface, navLinkStyle) {
6384
6333
  return {
6385
6334
  name: "Dropdown",
6386
- typography: "body",
6387
- fontWeight: style?.fontWeight ?? header.navWeight ?? "medium",
6388
- textTransform: style?.textTransform ?? "none",
6335
+ ...dropdownTypeFromNav(surface.style, navLinkStyle),
6336
+ fontWeight: surface.style?.fontWeight ?? header.navWeight ?? "medium",
6389
6337
  italic: false,
6390
- colorToken: textToken,
6338
+ colorToken: surface.textToken,
6391
6339
  padding: "compact",
6392
6340
  borderRadius: "sm",
6393
6341
  effects: {
@@ -6411,12 +6359,12 @@ function dropdownTypographyRules(style) {
6411
6359
  };
6412
6360
  return [...letterSpacing === "normal" ? [] : [`letter-spacing: ${spacing[letterSpacing]};`], `font-size: ${sizes[style?.textSize ?? "sm"]};`];
6413
6361
  }
6414
- function generateDropdownLinkStyles(header, themeId, tokens, theme, surface) {
6362
+ function generateDropdownLinkStyles(header, themeId, tokens, theme, surface, navLinkStyle) {
6415
6363
  return generateNavLinkCSS({
6416
6364
  themeId,
6417
6365
  tokens,
6418
6366
  theme,
6419
- style: dropdownNavLinkStyle(header, surface),
6367
+ style: dropdownNavLinkStyle(header, surface, navLinkStyle),
6420
6368
  className: "nav-dropdown-link"
6421
6369
  }) + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${dropdownTypographyRules(surface.style).join("\n ")}\n}\n`;
6422
6370
  }
@@ -6722,6 +6670,11 @@ const waveMaskSvgPaths = {
6722
6670
  */
6723
6671
  const arcShapePath = "M0 110V60Q720 -30 1440 60V110Z";
6724
6672
  const arcEchoLinePaths = ["M0 84Q720 -6 1440 84", "M0 102Q720 12 1440 102"];
6673
+ /** The arc turned over: the next section's colour sits lowest in the middle, under the swell of the section above. */
6674
+ const arcBulgeShapePath = "M0 110V50Q720 140 1440 50V110Z";
6675
+ function arcBulgeMaskDataUrl() {
6676
+ return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='${arcBulgeShapePath}' fill='white'/></svg>`);
6677
+ }
6725
6678
  function arcMaskDataUrl(echo) {
6726
6679
  const lines = arcEchoLinePaths.map((d) => `<path d='${d}' fill='none' stroke='url(#fade)' stroke-width='1.5' vector-effect='non-scaling-stroke'/>`).join("");
6727
6680
  return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'>${echo ? `<defs><linearGradient id='fade' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'><stop offset='0' stop-color='black' stop-opacity='0.42'/><stop offset='0.5' stop-color='black' stop-opacity='0'/><stop offset='1' stop-color='black' stop-opacity='0.42'/></linearGradient><mask id='lines'><rect width='1440' height='110' fill='white'/>${lines}</mask></defs><path d='${arcShapePath}' fill='white' mask='url(#lines)'/>` : `<path d='${arcShapePath}' fill='white'/>`}</svg>`);
@@ -6830,7 +6783,7 @@ function shapeDeclarations(entry) {
6830
6783
  "background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--boundary-shape-paint) 16%, transparent) 34%, color-mix(in srgb, var(--boundary-shape-paint) 68%, transparent) 78%, var(--boundary-shape-paint) 100%);"
6831
6784
  ];
6832
6785
  case "wave": return maskDeclarations(waveMaskDataUrl(entry.shape.mask));
6833
- case "arc": return [...maskDeclarations(arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
6786
+ case "arc": return [...maskDeclarations(entry.shape.bulge ? arcBulgeMaskDataUrl() : arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
6834
6787
  case "angle": return [
6835
6788
  "height: calc(var(--boundary-height) + 2px);",
6836
6789
  "background: var(--boundary-shape-paint);",
@@ -6911,21 +6864,46 @@ function generateHeroTypographyCss(themeId, theme) {
6911
6864
  if (microSubheadlineRules.length > 0) chunks.push(`${microSubheadlineSelector} {\n ${microSubheadlineRules.join("\n ")}\n}`);
6912
6865
  const selectors = {
6913
6866
  headline: headlineSelector,
6914
- subheadline: subheadlineSelector
6867
+ subheadline: subheadlineSelector,
6868
+ microHeadline: microHeadlineSelector,
6869
+ microSubheadline: microSubheadlineSelector
6915
6870
  };
6916
- const responsiveChunks = [responsiveHeroTypographyCss(MQ_TABLET_ONLY, selectors, typography.responsive?.tablet), responsiveHeroTypographyCss(MQ_SM_DOWN, selectors, typography.responsive?.mobile)];
6871
+ const microSizes = {
6872
+ headlineSize: typography.microHeadlineSize,
6873
+ subheadlineSize: typography.microSubheadlineSize
6874
+ };
6875
+ const responsiveChunks = [responsiveHeroTypographyCss(MQ_TABLET_ONLY, selectors, typography.responsive?.tablet, microSizes), responsiveHeroTypographyCss(MQ_SM_DOWN, selectors, typography.responsive?.mobile, microSizes)];
6917
6876
  for (const chunk of responsiveChunks) if (chunk) chunks.push(chunk);
6918
6877
  return chunks.join("\n\n");
6919
6878
  }
6920
- function responsiveHeroTypographyCss(media, selectors, overrides) {
6879
+ function responsiveHeroTypographyCss(media, selectors, overrides, microSizes) {
6921
6880
  if (!overrides) return null;
6922
6881
  const headlineRules = buildTypographyRules("headline", overrides.headlineSize, overrides.headlineLineHeight);
6923
6882
  const subheadlineRules = buildTypographyRules("subheadline", overrides.subheadlineSize, overrides.subheadlineLineHeight);
6924
6883
  const mediaChunks = [];
6925
6884
  if (headlineRules.length > 0) mediaChunks.push(`${selectors.headline} {\n ${headlineRules.join("\n ")}\n }`);
6926
6885
  if (subheadlineRules.length > 0) mediaChunks.push(`${selectors.subheadline} {\n ${subheadlineRules.join("\n ")}\n }`);
6886
+ const microHeadlineSize = microSizeAtBreakpoint(microSizes.headlineSize, overrides.headlineSize);
6887
+ if (microHeadlineSize) {
6888
+ const rules = buildTypographyRules("headline", microHeadlineSize, overrides.headlineLineHeight);
6889
+ mediaChunks.push(`${selectors.microHeadline} {\n ${rules.join("\n ")}\n }`);
6890
+ }
6891
+ const microSubheadlineSize = microSizeAtBreakpoint(microSizes.subheadlineSize, overrides.subheadlineSize);
6892
+ if (microSubheadlineSize) {
6893
+ const rules = buildTypographyRules("subheadline", microSubheadlineSize, overrides.subheadlineLineHeight);
6894
+ mediaChunks.push(`${selectors.microSubheadline} {\n ${rules.join("\n ")}\n }`);
6895
+ }
6927
6896
  return mediaChunks.length > 0 ? `@media ${media} {\n ${mediaChunks.join("\n\n ")}\n}` : null;
6928
6897
  }
6898
+ /**
6899
+ * A micro hero steps down to the breakpoint's size, but a micro size that's
6900
+ * already smaller stays as it is. The editorial size is fluid, so it needs no step.
6901
+ */
6902
+ function microSizeAtBreakpoint(microSize, breakpointSize) {
6903
+ if (!microSize || !breakpointSize || microSize === "editorial") return void 0;
6904
+ if (breakpointSize === "editorial") return breakpointSize;
6905
+ return HERO_SIZE_ORDER.indexOf(breakpointSize) < HERO_SIZE_ORDER.indexOf(microSize) ? breakpointSize : void 0;
6906
+ }
6929
6907
  function buildTypographyRules(role, size, lineHeight) {
6930
6908
  const rules = [];
6931
6909
  if (size) rules.push(`font-size: ${toHeroSize(role, size)};`);
@@ -6949,6 +6927,17 @@ function generateBodyTextTypographyCss(themeId, theme) {
6949
6927
  }`);
6950
6928
  return chunks.join("\n\n");
6951
6929
  }
6930
+ const HERO_SIZE_ORDER = [
6931
+ "sm",
6932
+ "base",
6933
+ "lg",
6934
+ "xl",
6935
+ "2xl",
6936
+ "3xl",
6937
+ "4xl",
6938
+ "5xl",
6939
+ "6xl"
6940
+ ];
6952
6941
  function toHeroSize(role, size) {
6953
6942
  const baseMap = {
6954
6943
  sm: "0.875rem",
@@ -7960,7 +7949,7 @@ function generateBlockCustomVarsCss(themeId, blockCustomVars) {
7960
7949
  //#endregion
7961
7950
  //#region ../theme-core/src/blockOverrides.ts
7962
7951
  const BLOCK_PREFIX = "block.";
7963
- function isPlainObject$5(value) {
7952
+ function isPlainObject$4(value) {
7964
7953
  return typeof value === "object" && value !== null && !Array.isArray(value);
7965
7954
  }
7966
7955
  function isUnknownArray$3(value) {
@@ -7968,7 +7957,7 @@ function isUnknownArray$3(value) {
7968
7957
  }
7969
7958
  function cloneValue(value) {
7970
7959
  if (isUnknownArray$3(value)) return value.map((item) => cloneValue(item));
7971
- if (isPlainObject$5(value)) {
7960
+ if (isPlainObject$4(value)) {
7972
7961
  const cloned = {};
7973
7962
  for (const [key, child] of Object.entries(value)) cloned[key] = cloneValue(child);
7974
7963
  return cloned;
@@ -7978,7 +7967,7 @@ function cloneValue(value) {
7978
7967
  function mergeDeep(defaultValue, overrideValue) {
7979
7968
  if (overrideValue === void 0) return cloneValue(defaultValue);
7980
7969
  if (overrideValue === null) return null;
7981
- if (isPlainObject$5(defaultValue) && isPlainObject$5(overrideValue)) {
7970
+ if (isPlainObject$4(defaultValue) && isPlainObject$4(overrideValue)) {
7982
7971
  const merged = {};
7983
7972
  const keys = /* @__PURE__ */ new Set([...Object.keys(defaultValue), ...Object.keys(overrideValue)]);
7984
7973
  for (const key of keys) merged[key] = mergeDeep(defaultValue[key], overrideValue[key]);
@@ -8035,7 +8024,7 @@ function mergeContentWithBlockStyleOverrides(content, theme, blockKind) {
8035
8024
  */
8036
8025
  function applyHeadingDecorationSignature(target, themeDecoration) {
8037
8026
  const existing = target["_sectionStyles"];
8038
- const existingObj = isPlainObject$5(existing) ? existing : void 0;
8027
+ const existingObj = isPlainObject$4(existing) ? existing : void 0;
8039
8028
  const rawOverride = existingObj?.["headingDecorationOverride"];
8040
8029
  const effective = resolveEffectiveHeadingDecoration(themeDecoration, rawOverride === "site-default" || rawOverride === "off" ? rawOverride : void 0);
8041
8030
  if (effective.kind === "none") {
@@ -8055,9 +8044,9 @@ function applyStyleOverride(target, key, defaults) {
8055
8044
  target[key] = mergeStyleOverride(defaults, target[key]);
8056
8045
  }
8057
8046
  function mergeStyleOverride(defaultValue, contentValue) {
8058
- if (!isPlainObject$5(defaultValue) || !isPlainObject$5(contentValue)) return mergeDeep(defaultValue, contentValue);
8047
+ if (!isPlainObject$4(defaultValue) || !isPlainObject$4(contentValue)) return mergeDeep(defaultValue, contentValue);
8059
8048
  const merged = mergeDeep(defaultValue, contentValue);
8060
- if (!isPlainObject$5(merged)) return merged;
8049
+ if (!isPlainObject$4(merged)) return merged;
8061
8050
  return {
8062
8051
  ...merged,
8063
8052
  background: mergeBoxBackground(defaultValue.background, contentValue.background)
@@ -9309,12 +9298,12 @@ function allGroupChildPlans(plan) {
9309
9298
  }
9310
9299
  function selectedGroupChildPlans(plan, value) {
9311
9300
  if (plan.childSelection.kind === "all") return plan.childSelection.fields;
9312
- if (!isPlainObject$4(value)) return [];
9301
+ if (!isPlainObject$3(value)) return [];
9313
9302
  const selectedType = value[plan.childSelection.activeTabField];
9314
9303
  return plan.childSelection.tabs.find((tab) => tab.typeId === selectedType)?.fields ?? [];
9315
9304
  }
9316
9305
  function canonicalizeObjectForWrite(plans, value) {
9317
- if (!isPlainObject$4(value)) return value;
9306
+ if (!isPlainObject$3(value)) return value;
9318
9307
  const canonical = { ...value };
9319
9308
  for (const plan of plans) {
9320
9309
  if (!(plan.fieldId in canonical)) continue;
@@ -9340,7 +9329,7 @@ function canonicalizeFieldValue(plan, value) {
9340
9329
  }
9341
9330
  }
9342
9331
  function canonicalizeMedia(value) {
9343
- if (!isPlainObject$4(value)) return value;
9332
+ if (!isPlainObject$3(value)) return value;
9344
9333
  const canonical = { ...value };
9345
9334
  if (mediaIdentifierSchema.safeParse(canonical.identifier).success) deleteEnvSpecificKeys(canonical);
9346
9335
  return canonical;
@@ -9348,13 +9337,13 @@ function canonicalizeMedia(value) {
9348
9337
  function canonicalizeRepeater(plan, value) {
9349
9338
  if (!isUnknownArray$2(value)) return value;
9350
9339
  return value.map((item) => {
9351
- if (!isPlainObject$4(item)) return item;
9340
+ if (!isPlainObject$3(item)) return item;
9352
9341
  const childPlans = plan.repeatedItemVariants ? plan.repeatedItemVariants.find((variant) => variant.typeId === item._type)?.fields : plan.repeatedItemPlan;
9353
9342
  return childPlans ? canonicalizeObjectForWrite(childPlans, item) : item;
9354
9343
  });
9355
9344
  }
9356
9345
  function canonicalizeDiscriminatedGroup(plan, value) {
9357
- if (!isPlainObject$4(value) || plan.childSelection.kind !== "discriminatedTabs") return value;
9346
+ if (!isPlainObject$3(value) || plan.childSelection.kind !== "discriminatedTabs") return value;
9358
9347
  const selection = plan.childSelection;
9359
9348
  const selectedPlans = selectedGroupChildPlans(plan, value);
9360
9349
  const selectedIds = rootFieldIds(selectedPlans);
@@ -9369,10 +9358,10 @@ function rootFieldIds(plans) {
9369
9358
  }
9370
9359
  function omitUndefined(value) {
9371
9360
  if (isUnknownArray$2(value)) return value.map(omitUndefined);
9372
- if (!isPlainObject$4(value)) return value;
9361
+ if (!isPlainObject$3(value)) return value;
9373
9362
  return Object.fromEntries(Object.entries(value).filter(([, field]) => field !== void 0).map(([key, field]) => [key, omitUndefined(field)]));
9374
9363
  }
9375
- function isPlainObject$4(value) {
9364
+ function isPlainObject$3(value) {
9376
9365
  return typeof value === "object" && value !== null && !Array.isArray(value);
9377
9366
  }
9378
9367
  function isUnknownArray$2(value) {
@@ -9937,7 +9926,7 @@ function validateNormalizedFieldValue(plan, value, ctx) {
9937
9926
  }
9938
9927
  }
9939
9928
  function validateMediaPlan(plan, value, ctx) {
9940
- if (!isPlainObject$3(value)) return [issue(plan, "invalidMedia")];
9929
+ if (!isPlainObject$2(value)) return [issue(plan, "invalidMedia")];
9941
9930
  const allowedKind = value.type === void 0 || typeof value.type === "string" && plan.allowedMediaTypes.includes(value.type);
9942
9931
  const admitted = ctx.mode === "render" ? z.safeParse(runtimeMediaSchema, {
9943
9932
  ...value,
@@ -10075,7 +10064,7 @@ function selectRepeaterItemPlan(plan, item) {
10075
10064
  } : { kind: "untyped" };
10076
10065
  }
10077
10066
  function validateRepeaterItem(plan, item, index, ctx) {
10078
- if (!isPlainObject$3(item)) return [{
10067
+ if (!isPlainObject$2(item)) return [{
10079
10068
  kind: "wrongType",
10080
10069
  path: [...plan.path, index],
10081
10070
  fieldId: plan.fieldId,
@@ -10115,7 +10104,7 @@ function validateFlattenedGroupContainers(groupIds, item, plan, index, ctx) {
10115
10104
  }
10116
10105
  function validateGroupPlan(plan, value, ctx) {
10117
10106
  if (plan.valueContract === "location") return validateLocationGroupContract(plan, value, ctx);
10118
- if (!isPlainObject$3(value)) return [issue(plan, "wrongType", { expected: "an object" })];
10107
+ if (!isPlainObject$2(value)) return [issue(plan, "wrongType", { expected: "an object" })];
10119
10108
  if (plan.childSelection.kind === "discriminatedTabs") {
10120
10109
  const selectedType = value[plan.childSelection.activeTabField];
10121
10110
  if (selectedType !== void 0 && selectedType !== null && !plan.childSelection.tabs.some((tab) => tab.typeId === selectedType)) return [{
@@ -10355,7 +10344,7 @@ function isEmptyValue(value) {
10355
10344
  if (isEmptyRichTextDoc(value)) return true;
10356
10345
  return false;
10357
10346
  }
10358
- function isPlainObject$3(value) {
10347
+ function isPlainObject$2(value) {
10359
10348
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
10360
10349
  }
10361
10350
  function isUnknownArray$1(value) {
@@ -10365,7 +10354,7 @@ function isValidRichTextDoc(value) {
10365
10354
  return isRichTextDoc(value);
10366
10355
  }
10367
10356
  function isEmptyRichTextDoc(value) {
10368
- if (!isPlainObject$3(value)) return false;
10357
+ if (!isPlainObject$2(value)) return false;
10369
10358
  if (value.type !== "doc") return false;
10370
10359
  const content = value.content;
10371
10360
  if (!Array.isArray(content) || content.length === 0) return true;
@@ -10496,7 +10485,8 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
10496
10485
  renderSourceSchema: deriveStrictContentZodFromPlans(plans, "render-source"),
10497
10486
  writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
10498
10487
  if (options.unknownFields !== "reject") return;
10499
- unknownManifestFieldPaths(plans, value).forEach((path) => {
10488
+ const ownedElsewhere = new Set(options.unknownFieldsOwnedElsewhere ?? []);
10489
+ unknownManifestFieldPaths(plans, value).filter((path) => !(path.length > 1 && ownedElsewhere.has(String(path[0])))).forEach((path) => {
10500
10490
  ctx.addIssue({
10501
10491
  code: "custom",
10502
10492
  path,
@@ -11784,7 +11774,7 @@ function styledCard(children, opts, ...mods) {
11784
11774
  }
11785
11775
  //#endregion
11786
11776
  //#region ../blocks/src/system/node/fragments/feedbackCallout.ts
11787
- function joinClasses$3(...parts) {
11777
+ function joinClasses$2(...parts) {
11788
11778
  return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
11789
11779
  }
11790
11780
  function feedbackCallout(opts) {
@@ -11798,7 +11788,7 @@ function feedbackCallout(opts) {
11798
11788
  } };
11799
11789
  return stack({
11800
11790
  gap: "sm",
11801
- className: joinClasses$3("feedback-callout rb-rounded-xl rb-border rb-p-6", opts?.className),
11791
+ className: joinClasses$2("feedback-callout rb-rounded-xl rb-border rb-p-6", opts?.className),
11802
11792
  style: mergeStyles(backgroundColorStyle("surface"), borderColorStyle("border/60")),
11803
11793
  "data-feedback-callout": "",
11804
11794
  "data-feedback-tone": tone
@@ -11824,29 +11814,6 @@ function feedbackCallout(opts) {
11824
11814
  ]);
11825
11815
  }
11826
11816
  //#endregion
11827
- //#region ../blocks/src/system/node/fragments/sectionState.shared.ts
11828
- const SECTION_STATE_KINDS = [
11829
- "empty",
11830
- "unavailable",
11831
- "coming-soon",
11832
- "no-results"
11833
- ];
11834
- const SECTION_STATE_TONE = {
11835
- empty: "info",
11836
- unavailable: "warning",
11837
- "coming-soon": "info",
11838
- "no-results": "warning"
11839
- };
11840
- function isSectionStateKind(value) {
11841
- return typeof value === "string" && SECTION_STATE_KINDS.includes(value);
11842
- }
11843
- function sectionStateToneFromKind(kind) {
11844
- return SECTION_STATE_TONE[kind];
11845
- }
11846
- function sectionStateToneFromUnknown(value) {
11847
- return isSectionStateKind(value) ? sectionStateToneFromKind(value) : "info";
11848
- }
11849
- //#endregion
11850
11817
  //#region ../blocks/src/system/node/fragments/sectionState.ts
11851
11818
  function sectionStateTone(kind) {
11852
11819
  return sectionStateToneFromKind(kind);
@@ -11861,7 +11828,7 @@ function bindSectionStateTone(kind) {
11861
11828
  ...kind.$bind.coerce ? { coerce: kind.$bind.coerce } : {}
11862
11829
  } };
11863
11830
  }
11864
- function joinClasses$2(...parts) {
11831
+ function joinClasses$1(...parts) {
11865
11832
  return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
11866
11833
  }
11867
11834
  function sectionState(opts) {
@@ -11871,7 +11838,7 @@ function sectionState(opts) {
11871
11838
  } };
11872
11839
  return stack({
11873
11840
  gap: "none",
11874
- className: joinClasses$2("section-state rb-mx-auto rb-w-full rb-max-w-3xl", opts?.className),
11841
+ className: joinClasses$1("section-state rb-mx-auto rb-w-full rb-max-w-3xl", opts?.className),
11875
11842
  "data-section-state-kind": kind
11876
11843
  }, [feedbackCallout({
11877
11844
  tone: bindSectionStateTone(kind),
@@ -13229,26 +13196,6 @@ function fragmentsToRepeaterField(id, label, fragments, options = {}) {
13229
13196
  };
13230
13197
  }
13231
13198
  //#endregion
13232
- //#region ../blocks/src/system/fields/heroTitleSize.ts
13233
- /**
13234
- * The headline sizes owners can pick, the same in the content form and the
13235
- * Look's knob. Older stored sizes (`editorial`, `poster`) still render.
13236
- */
13237
- const heroTitleSizeOptions = [
13238
- {
13239
- value: "quiet",
13240
- label: "Quieter"
13241
- },
13242
- {
13243
- value: "auto",
13244
- label: "Standard"
13245
- },
13246
- {
13247
- value: "display",
13248
- label: "Louder"
13249
- }
13250
- ];
13251
- //#endregion
13252
13199
  //#region ../blocks/src/system/fragments/library/heroLayoutControls.ts
13253
13200
  const heroLayoutControlsFragment = defineFragment({
13254
13201
  variantMeaning: { kind: "arrangement" },
@@ -14372,46 +14319,6 @@ function createImagePositionField(options = {}) {
14372
14319
  };
14373
14320
  }
14374
14321
  //#endregion
14375
- //#region ../blocks/src/system/fields/imageShape.ts
14376
- const standardImageShapeOptions = [
14377
- {
14378
- value: "default",
14379
- label: "Default"
14380
- },
14381
- {
14382
- value: "square",
14383
- label: "Square corners"
14384
- },
14385
- {
14386
- value: "rounded",
14387
- label: "Rounded corners"
14388
- },
14389
- {
14390
- value: "circle",
14391
- label: "Circle"
14392
- },
14393
- {
14394
- value: "arch",
14395
- label: "Arch"
14396
- }
14397
- ];
14398
- function createImageShapeField(options = {}) {
14399
- return {
14400
- id: options.id ?? "imageShape",
14401
- type: "select",
14402
- label: options.label ?? "Image shape",
14403
- ...options.description ? { description: options.description } : {},
14404
- required: false,
14405
- defaultValue: options.defaultValue ?? "default",
14406
- multiple: false,
14407
- options: [...standardImageShapeOptions],
14408
- ui: {
14409
- intent: options.uiIntent ?? "display",
14410
- ...options.visibleWhen ? { visibleWhen: options.visibleWhen } : {}
14411
- }
14412
- };
14413
- }
14414
- //#endregion
14415
14322
  //#region ../blocks/src/system/blocks/hero.ts
14416
14323
  const heroCopyAndCta = composeFragments([{ fragment: heroCopyFragment }, { fragment: heroCtaRowFragment }]);
14417
14324
  const heroPriorityMediaProps = {
@@ -14850,50 +14757,6 @@ function gapSelectField(options = {}) {
14850
14757
  });
14851
14758
  }
14852
14759
  //#endregion
14853
- //#region ../blocks/src/system/fields/aspectRatio.ts
14854
- const standardAspectRatioOptions = [
14855
- {
14856
- value: "auto",
14857
- label: "Auto (original)"
14858
- },
14859
- {
14860
- value: "16/9",
14861
- label: "16:9 (Landscape)"
14862
- },
14863
- {
14864
- value: "4/3",
14865
- label: "4:3 (Standard)"
14866
- },
14867
- {
14868
- value: "1/1",
14869
- label: "1:1 (Square)"
14870
- },
14871
- {
14872
- value: "3/4",
14873
- label: "3:4 (Portrait)"
14874
- },
14875
- {
14876
- value: "9/16",
14877
- label: "9:16 (Tall portrait)"
14878
- }
14879
- ];
14880
- function createAspectRatioField(options = {}) {
14881
- return {
14882
- id: options.id ?? "aspectRatio",
14883
- type: "select",
14884
- label: options.label ?? "Aspect ratio",
14885
- ...options.description ? { description: options.description } : {},
14886
- required: false,
14887
- defaultValue: options.defaultValue ?? "auto",
14888
- multiple: false,
14889
- options: [...standardAspectRatioOptions],
14890
- ui: {
14891
- intent: options.uiIntent ?? "display",
14892
- ...options.visibleWhen ? { visibleWhen: options.visibleWhen } : {}
14893
- }
14894
- };
14895
- }
14896
- //#endregion
14897
14760
  //#region ../blocks/src/system/blocks/intro.ts
14898
14761
  function introHeading(className) {
14899
14762
  return text({
@@ -14956,10 +14819,13 @@ const introMedia = media({
14956
14819
  }],
14957
14820
  fallback: "rb-intro-media rb-w-full rb-h-auto rb-object-cover"
14958
14821
  } },
14959
- style: { aspectRatio: { $bind: {
14960
- from: "content.aspectRatio",
14961
- fallback: "1/1"
14962
- } } }
14822
+ style: {
14823
+ borderRadius: { $bind: { from: "content._lookMediaFrame.borderRadius" } },
14824
+ aspectRatio: { $bind: {
14825
+ from: "content.aspectRatio",
14826
+ fallback: "1/1"
14827
+ } }
14828
+ }
14963
14829
  }, bind("content.media"), when("content.media"));
14964
14830
  const centeredCopyLayout = styledSection({
14965
14831
  children: styledContainer({
@@ -16166,621 +16032,94 @@ const jsonArrayTransform = {
16166
16032
  if (item && typeof item === "object" && "entryId" in item) {
16167
16033
  const entryId = item.entryId;
16168
16034
  return typeof entryId === "string" ? entryId : null;
16169
- }
16170
- return null;
16171
- }).filter((item) => typeof item === "string" && item.trim().length > 0);
16172
- return items.length > 0 ? JSON.stringify(items) : "";
16173
- }
16174
- return "";
16175
- }
16176
- };
16177
- const csvTransform = {
16178
- id: "value.csv",
16179
- kind: "formatter",
16180
- summary: "Normalize a string or array of strings into a comma-separated list",
16181
- run: (value) => {
16182
- const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
16183
- return normalized.length > 0 ? Array.from(new Set(normalized)).join(",") : "";
16184
- }
16185
- };
16186
- const marqueeLoopTransform = {
16187
- id: "array.marqueeLoop",
16188
- kind: "collection",
16189
- summary: "Repeat an array to a minimum length, then duplicate it for seamless marquee looping",
16190
- schema: z.object({
16191
- minItems: z.number().int().min(1).default(10),
16192
- /** Leave out the first copy, for a track whose first copy is rendered on its own (and read aloud once). */
16193
- afterFirstCopy: z.boolean().default(false)
16194
- }),
16195
- run: (value, options) => {
16196
- const items = toUnknownArray(value);
16197
- if (items.length === 0) return [];
16198
- const minItems = options?.minItems ?? 10;
16199
- const base = [];
16200
- while (base.length < minItems) {
16201
- base.push(...items);
16202
- if (base.length > 1e3) break;
16203
- }
16204
- const loop = [...base, ...base];
16205
- return options?.afterFirstCopy ? loop.slice(items.length) : loop;
16206
- }
16207
- };
16208
- function toUnknownArray(value) {
16209
- return Array.isArray(value) ? value : [];
16210
- }
16211
- /**
16212
- * Map a content state/enum to a theme token colour — the first-class way to turn
16213
- * a value like a class's availability (`available`/`filling`/`waitlist`), a
16214
- * card's featured flag, or a pricing tier level into a themed colour. Authors
16215
- * write role names and get `rgb(var(--tb-<role>))`, so the result live-recolours
16216
- * with the theme and drops directly into a `style` binding (e.g.
16217
- * `borderLeftColor`). Returns `undefined` when the value matches no case and no
16218
- * fallback is given, so the style property is simply omitted.
16219
- */
16220
- const mapTokenTransform = {
16221
- id: "value.mapToken",
16222
- kind: "formatter",
16223
- summary: "Map a state/enum value to a theme token colour (rgb(var(--tb-<role>)))",
16224
- schema: z.object({
16225
- /**
16226
- * Maps an input state/enum value (stringified) to a theme token ROLE name
16227
- * (e.g. `secondary`, `accent`, `muted`, `border`). The role is wrapped to
16228
- * `rgb(var(--tb-<role>))` so the result drops straight into a `style` binding.
16229
- */
16230
- cases: z.record(z.string(), z.string()),
16231
- /** Role used when the value matches no case. Omit to yield `undefined`. */
16232
- fallback: z.string().optional()
16233
- }),
16234
- run: (value, options) => {
16235
- const role = options.cases[String(value)] ?? options.fallback;
16236
- return role ? `rgb(var(--tb-${role}))` : void 0;
16237
- }
16238
- };
16239
- const formattingTransforms = [
16240
- {
16241
- id: "value.equals",
16242
- kind: "formatter",
16243
- summary: "Compare a value to a fixed string",
16244
- schema: z.object({ value: z.string() }),
16245
- run: (value, options) => value === options.value
16246
- },
16247
- uppercaseTransform,
16248
- fallbackTransform,
16249
- dateFormatShort,
16250
- arrayLengthTransform,
16251
- booleanNotTransform,
16252
- jsonArrayTransform,
16253
- csvTransform,
16254
- marqueeLoopTransform,
16255
- mapTokenTransform
16256
- ];
16257
- //#endregion
16258
- //#region ../blocks/src/system/transforms/registry/ui.ts
16259
- const joinClasses$1 = (parts) => parts.filter((part) => typeof part === "string" && part.trim().length > 0).join(" ").replace(/\s+/g, " ").trim();
16260
- const eyebrowTreatmentClassMap = {
16261
- plain: "",
16262
- accent: "rb-eyebrow-treatment-accent",
16263
- pill: "rb-eyebrow-treatment-pill",
16264
- "accent-pill": "rb-eyebrow-treatment-pill rb-eyebrow-treatment-accent",
16265
- "pill-bounce": "rb-eyebrow-treatment-pill rb-eyebrow-treatment-pill-bounce",
16266
- "accent-pill-bounce": "rb-eyebrow-treatment-pill rb-eyebrow-treatment-accent rb-eyebrow-treatment-pill-bounce"
16267
- };
16268
- const eyebrowTreatmentSet = new Set(eyebrowTreatmentValues);
16269
- const headingDecorationFamilySet = new Set(visibleHeadingDecorationFamilyValues);
16270
- const headingDecorationColorTokenSet = new Set(headingDecorationColorTokenValues);
16271
- function isEyebrowTreatment(value) {
16272
- return typeof value === "string" && eyebrowTreatmentSet.has(value);
16273
- }
16274
- function isHeadingDecorationFamily(value) {
16275
- return typeof value === "string" && headingDecorationFamilySet.has(value);
16276
- }
16277
- function isHeadingDecorationColorToken(value) {
16278
- return typeof value === "string" && headingDecorationColorTokenSet.has(value);
16279
- }
16280
- const imageGalleryCornerClassMap = {
16281
- none: "",
16282
- sm: "rb-rounded-sm",
16283
- md: "rb-rounded-md",
16284
- lg: "rb-rounded-lg",
16285
- xl: "rb-rounded-xl",
16286
- "2xl": "rb-rounded-2xl",
16287
- "3xl": "rb-rounded-3xl"
16288
- };
16289
- const imageShapeClassMap = {
16290
- default: "",
16291
- square: "rb-media-shape-square",
16292
- rounded: "rb-media-shape-rounded",
16293
- circle: "rb-media-shape-circle",
16294
- arch: "rb-media-shape-arch"
16295
- };
16296
- const parseRatio = (raw) => {
16297
- if (typeof raw !== "string") return null;
16298
- const value = raw.trim();
16299
- if (!value || value === "auto") return null;
16300
- const [wRaw, hRaw] = value.split("/").map((part) => part.trim());
16301
- const w = Number(wRaw);
16302
- const h = Number(hRaw);
16303
- if (!Number.isFinite(w) || !Number.isFinite(h)) return null;
16304
- if (w <= 0 || h <= 0) return null;
16305
- return {
16306
- w,
16307
- h
16308
- };
16309
- };
16310
- const ratioToHeightFactor = (raw) => {
16311
- const ratio = parseRatio(raw);
16312
- if (!ratio) return "1";
16313
- return String(ratio.h / ratio.w);
16314
- };
16315
- function resolveBorderColorValue(border) {
16316
- if (border.enabled === false) return void 0;
16317
- const rawColorToken = typeof border.colorToken === "string" ? border.colorToken.trim() : "";
16318
- const parsed = rawColorToken ? parseBlockColorToken(rawColorToken) : null;
16319
- const baseName = (parsed ? parsed.split("/")[0] : null) ?? "accent";
16320
- const opacityRaw = typeof border.opacity === "number" ? border.opacity : 30;
16321
- return rgbColorValue(`${baseName}/${Math.max(0, Math.min(100, opacityRaw))}`);
16322
- }
16323
- /**
16324
- * Get nav link classes based on nav style
16325
- * Simplified version that reads navStyle enum from theme
16326
- */
16327
- function getNavStyleClasses(navStyle) {
16328
- const baseClasses = "rb-inline-flex rb-items-center rb-gap-2 rb-px-3 rb-py-2 rb-transition-colors";
16329
- switch (navStyle) {
16330
- case "minimal": return baseClasses;
16331
- case "underline": return `${baseClasses} rb-nav-underline rb-nav-underline-offset-4`;
16332
- case "underline-grow": return `${baseClasses} nav-underline-grow nav-underline-active`;
16333
- case "capsule": return "rb-inline-flex rb-items-center rb-gap-2 rb-transition-colors rb-rounded-full rb-px-3 rb-py-1.5";
16334
- case "scale": return `${baseClasses} rb-transform-gpu rb-will-change-transform rb-motion-safe-hover-scale-105`;
16335
- case "frosted": return "rb-inline-flex rb-items-center rb-gap-2 rb-transition-colors rb-rounded-lg rb-px-3 rb-py-1.5";
16336
- case "solid": return baseClasses;
16337
- default: return baseClasses;
16338
- }
16339
- }
16340
- const headerNavLinkClassTransform = {
16341
- id: "ui.headerNavLinkClass",
16342
- kind: "string",
16343
- summary: "Compose header navigation link classes from theme navStyle",
16344
- schema: z.object({ base: z.string().optional() }),
16345
- run: (value, options) => {
16346
- return joinClasses$1([getNavStyleClasses(asPartialObject(value)?.navStyle ?? "minimal"), options?.base]);
16347
- }
16348
- };
16349
- const headingClassFromAlignment = {
16350
- id: "ui.headingClassFromAlignment",
16351
- kind: "string",
16352
- summary: "Append text alignment class to a base heading class",
16353
- run: (value, options) => {
16354
- const alignClass = (typeof value === "string" && value === "center" ? "center" : "left") === "center" ? "rb-text-center" : "rb-text-left";
16355
- return `${options.base} ${alignClass}`.trim();
16356
- }
16357
- };
16358
- const bodyClassFromAlignment = {
16359
- id: "ui.bodyClassFromAlignment",
16360
- kind: "string",
16361
- summary: "Append body alignment helper classes to a base class",
16362
- run: (value, options) => {
16363
- const extra = (typeof value === "string" && value === "center" ? "center" : "left") === "center" ? "rb-mx-auto rb-text-center" : "";
16364
- return `${options.base} ${extra}`.trim();
16365
- }
16366
- };
16367
- const stackAlignFromAlignment = {
16368
- id: "ui.stackAlignFromAlignment",
16369
- kind: "string",
16370
- summary: "Map text alignment to stack alignment value",
16371
- run: (value) => value === "center" ? "center" : "start"
16372
- };
16373
- const sectionStateToneTransform = {
16374
- id: "ui.sectionStateTone",
16375
- kind: "string",
16376
- summary: "Map semantic section-state kind to feedback tone",
16377
- run: (value) => sectionStateToneFromUnknown(value)
16378
- };
16379
- const heroTitleLengthThresholds = {
16380
- medium: {
16381
- maxCharacters: 42,
16382
- maxWords: 6
16383
- },
16384
- long: {
16385
- maxCharacters: 78,
16386
- maxWords: 11
16387
- }
16388
- };
16389
- function isPlainObject$2(value) {
16390
- return Boolean(value) && typeof value === "object" && !Array.isArray(value);
16391
- }
16392
- function readString(obj, key) {
16393
- const v = obj[key];
16394
- return typeof v === "string" ? v : void 0;
16395
- }
16396
- function resolveGeneratedHeroLayoutStyles(content) {
16397
- const raw = content._heroLayoutStyles;
16398
- return isPlainObject$2(raw) ? raw : null;
16399
- }
16400
- function readHeroLayoutString(content, generatedKey, fallbackKey = generatedKey) {
16401
- const explicitValue = readString(content, fallbackKey);
16402
- if (explicitValue !== void 0) return explicitValue;
16403
- const generated = resolveGeneratedHeroLayoutStyles(content);
16404
- return generated && typeof generated[generatedKey] === "string" ? generated[generatedKey] : void 0;
16405
- }
16406
- function resolveHeroVariant(content) {
16407
- const variant = readString(content, "variant");
16408
- if (variant && variant.trim()) return variant.trim();
16409
- const layout = readString(content, "layout");
16410
- if (layout && layout.trim()) return layout.trim();
16411
- return null;
16412
- }
16413
- function resolveHeroContentAlignment(content) {
16414
- const raw = readHeroLayoutString(content, "contentAlignment");
16415
- if (raw === "left" || raw === "center" || raw === "right") return raw;
16416
- const variant = resolveHeroVariant(content);
16417
- if (variant === "split" || variant === "splitReverse") return "left";
16418
- return "center";
16419
- }
16420
- function resolveHeroVerticalAlignment(content) {
16421
- const raw = readHeroLayoutString(content, "verticalAlignment");
16422
- if (raw === "top" || raw === "center" || raw === "bottom") return raw;
16423
- const minHeight = asPartialObject(content._sectionStyles)?.minHeight;
16424
- if (minHeight === "banner" || minHeight === "hero" || minHeight === "immersive") return "center";
16425
- const variant = resolveHeroVariant(content);
16426
- if (variant === "split" || variant === "splitReverse") return "center";
16427
- return "top";
16428
- }
16429
- function resolveHeroContentMaxWidth(content) {
16430
- const raw = readHeroLayoutString(content, "contentMaxWidth");
16431
- if (raw === "default" || raw === "narrow" || raw === "medium" || raw === "wide") return raw;
16432
- return "default";
16433
- }
16434
- function resolveHeroTypographyScale(content) {
16435
- const titleSize = readString(content, "titleSize");
16436
- if (titleSize === "quiet" || titleSize === "editorial" || titleSize === "display" || titleSize === "poster") return titleSize;
16437
- const raw = readHeroLayoutString(content, "typographyScale", "heroTypographyScale");
16438
- if (raw === "quiet" || raw === "editorial" || raw === "display" || raw === "poster") return raw;
16439
- return null;
16440
- }
16441
- function resolveHeroTitleLength(content, policy = "legacy") {
16442
- const headline = heroHeadlineText(content, policy);
16443
- const words = headline.split(/\s+/).filter((word) => word.length > 0);
16444
- const wordCount = words.length;
16445
- const longestWord = longestHeroWord(words, policy);
16446
- if (headline.length > heroTitleLengthThresholds.long.maxCharacters || longestWord > 18 || wordCount > heroTitleLengthThresholds.long.maxWords) return "long";
16447
- if (headline.length > heroTitleLengthThresholds.medium.maxCharacters || longestWord > 12 || wordCount > heroTitleLengthThresholds.medium.maxWords) return "medium";
16448
- return "short";
16449
- }
16450
- const heroContentWrapperClassTransform = {
16451
- id: "ui.heroContentWrapperClass",
16452
- kind: "string",
16453
- summary: "Resolve hero content wrapper className from alignment + max width controls",
16454
- schema: z.object({ base: z.string().optional() }),
16455
- run: (value, options, context) => {
16456
- const content = isPlainObject$2(value) ? value : isPlainObject$2(context.data) ? context.data : {};
16457
- const alignment = resolveHeroContentAlignment(content);
16458
- const maxWidth = resolveHeroContentMaxWidth(content);
16459
- const typographyScale = resolveHeroTypographyScale(content);
16460
- const titleLength = resolveHeroTitleLength(content);
16461
- const textAlignClass = alignment === "center" ? "rb-text-center" : alignment === "right" ? "rb-text-right" : "rb-text-left";
16462
- const maxWidthClass = maxWidth === "narrow" ? "rb-max-w-2xl" : maxWidth === "medium" ? "rb-max-w-3xl" : maxWidth === "wide" ? "rb-max-w-5xl" : "";
16463
- const positionClass = alignment === "center" ? "rb-mx-auto" : alignment === "right" ? "rb-ml-auto" : "";
16464
- return joinClasses$1([
16465
- options?.base,
16466
- textAlignClass,
16467
- maxWidthClass,
16468
- positionClass,
16469
- ...heroLegacyTypographyClasses(content, typographyScale, titleLength)
16470
- ]);
16471
- }
16472
- };
16473
- const heroCtaJustifyTransform = {
16474
- id: "ui.heroCtaJustify",
16475
- kind: "string",
16476
- summary: "Map hero contentAlignment to CTA row justify value",
16477
- run: (value, _options, context) => {
16478
- const alignment = resolveHeroContentAlignment(isPlainObject$2(value) ? value : isPlainObject$2(context.data) ? context.data : {});
16479
- return alignment === "left" ? "start" : alignment === "right" ? "end" : "center";
16480
- }
16481
- };
16482
- const heroStackJustifyFromVerticalAlignmentTransform = {
16483
- id: "ui.heroStackJustifyFromVerticalAlignment",
16484
- kind: "string",
16485
- summary: "Map hero verticalAlignment to stack justify value",
16486
- run: (value, _options, context) => {
16487
- const vertical = resolveHeroVerticalAlignment(isPlainObject$2(value) ? value : isPlainObject$2(context.data) ? context.data : {});
16488
- return vertical === "top" ? "start" : vertical === "bottom" ? "end" : "center";
16489
- }
16490
- };
16491
- const heroGridClassFromVerticalAlignmentTransform = {
16492
- id: "ui.heroGridClassFromVerticalAlignment",
16493
- kind: "string",
16494
- summary: "Append align-items class for hero split layouts based on verticalAlignment",
16495
- schema: z.object({ base: z.string() }),
16496
- run: (value, options, context) => {
16497
- const vertical = resolveHeroVerticalAlignment(isPlainObject$2(value) ? value : isPlainObject$2(context.data) ? context.data : {});
16498
- const itemsClass = vertical === "top" ? "rb-items-start" : vertical === "bottom" ? "rb-items-end" : "rb-items-center";
16499
- return joinClasses$1([options.base, itemsClass]);
16500
- }
16501
- };
16502
- const imageFragmentClassTransform = {
16503
- id: "ui.imageFragmentClass",
16504
- kind: "string",
16505
- summary: "Return different classes based on aspectRatio (auto vs fixed)",
16506
- schema: z.object({
16507
- base: z.string(),
16508
- whenAuto: z.string(),
16509
- whenFixed: z.string()
16510
- }),
16511
- run: (value, options) => {
16512
- const aspectRatio = typeof value === "string" ? value.trim() : "auto";
16513
- const isAuto = aspectRatio === "" || aspectRatio === "auto";
16514
- return joinClasses$1([options.base, isAuto ? options.whenAuto : options.whenFixed]);
16035
+ }
16036
+ return null;
16037
+ }).filter((item) => typeof item === "string" && item.trim().length > 0);
16038
+ return items.length > 0 ? JSON.stringify(items) : "";
16039
+ }
16040
+ return "";
16515
16041
  }
16516
16042
  };
16517
- const imageFragmentSizeTransform = {
16518
- id: "ui.imageFragmentSize",
16043
+ const csvTransform = {
16044
+ id: "value.csv",
16519
16045
  kind: "formatter",
16520
- summary: "Derive Supabase render size options from an aspect ratio",
16521
- schema: z.object({
16522
- max: z.number().int().positive().default(1920),
16523
- quality: z.number().int().min(1).max(100).default(85)
16524
- }),
16525
- run: (value, options) => {
16526
- const ratio = parseRatio(value);
16527
- const max = options.max ?? 1920;
16528
- const quality = options.quality ?? 85;
16529
- if (!ratio) return {
16530
- width: max,
16531
- quality,
16532
- resize: "contain"
16533
- };
16534
- const isPortrait = ratio.h > ratio.w;
16535
- return {
16536
- width: isPortrait ? Math.round(max * ratio.w / ratio.h) : max,
16537
- height: isPortrait ? max : Math.round(max * ratio.h / ratio.w),
16538
- quality,
16539
- resize: "cover"
16540
- };
16046
+ summary: "Normalize a string or array of strings into a comma-separated list",
16047
+ run: (value) => {
16048
+ const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
16049
+ return normalized.length > 0 ? Array.from(new Set(normalized)).join(",") : "";
16541
16050
  }
16542
16051
  };
16543
- const conditionalClassTransform = {
16544
- id: "ui.conditionalClass",
16545
- kind: "string",
16546
- summary: "Return different classes based on boolean value",
16052
+ const marqueeLoopTransform = {
16053
+ id: "array.marqueeLoop",
16054
+ kind: "collection",
16055
+ summary: "Repeat an array to a minimum length, then duplicate it for seamless marquee looping",
16547
16056
  schema: z.object({
16548
- whenTrue: z.string(),
16549
- whenFalse: z.string()
16057
+ minItems: z.number().int().min(1).default(10),
16058
+ /** Leave out the first copy, for a track whose first copy is rendered on its own (and read aloud once). */
16059
+ afterFirstCopy: z.boolean().default(false)
16550
16060
  }),
16551
16061
  run: (value, options) => {
16552
- return (typeof value === "boolean" ? value : Boolean(value)) ? options.whenTrue : options.whenFalse;
16062
+ const items = toUnknownArray(value);
16063
+ if (items.length === 0) return [];
16064
+ const minItems = options?.minItems ?? 10;
16065
+ const base = [];
16066
+ while (base.length < minItems) {
16067
+ base.push(...items);
16068
+ if (base.length > 1e3) break;
16069
+ }
16070
+ const loop = [...base, ...base];
16071
+ return options?.afterFirstCopy ? loop.slice(items.length) : loop;
16553
16072
  }
16554
16073
  };
16555
- const twoColumnContainerClassTransform = {
16556
- id: "ui.twoColumnContainerClass",
16557
- kind: "string",
16558
- summary: "Append a desktop row-reverse class based on imagePosition",
16074
+ function toUnknownArray(value) {
16075
+ return Array.isArray(value) ? value : [];
16076
+ }
16077
+ /**
16078
+ * Map a content state/enum to a theme token colour — the first-class way to turn
16079
+ * a value like a class's availability (`available`/`filling`/`waitlist`), a
16080
+ * card's featured flag, or a pricing tier level into a themed colour. Authors
16081
+ * write role names and get `rgb(var(--tb-<role>))`, so the result live-recolours
16082
+ * with the theme and drops directly into a `style` binding (e.g.
16083
+ * `borderLeftColor`). Returns `undefined` when the value matches no case and no
16084
+ * fallback is given, so the style property is simply omitted.
16085
+ */
16086
+ const mapTokenTransform = {
16087
+ id: "value.mapToken",
16088
+ kind: "formatter",
16089
+ summary: "Map a state/enum value to a theme token colour (rgb(var(--tb-<role>)))",
16559
16090
  schema: z.object({
16560
- base: z.string(),
16561
- reverseClass: z.string()
16091
+ /**
16092
+ * Maps an input state/enum value (stringified) to a theme token ROLE name
16093
+ * (e.g. `secondary`, `accent`, `muted`, `border`). The role is wrapped to
16094
+ * `rgb(var(--tb-<role>))` so the result drops straight into a `style` binding.
16095
+ */
16096
+ cases: z.record(z.string(), z.string()),
16097
+ /** Role used when the value matches no case. Omit to yield `undefined`. */
16098
+ fallback: z.string().optional()
16562
16099
  }),
16563
16100
  run: (value, options) => {
16564
- const position = value === "right" ? "right" : "left";
16565
- return joinClasses$1([options.base, position === "right" ? options.reverseClass : null]);
16566
- }
16567
- };
16568
- const twoColumnFlexBasisTransform = {
16569
- id: "ui.twoColumnFlexBasis",
16570
- kind: "string",
16571
- summary: "Map a ratio string to a flex-basis percentage for a 2-column layout",
16572
- schema: z.object({ side: z.enum(["image", "text"]) }),
16573
- run: (value, options) => {
16574
- const ratio = typeof value === "string" ? value.trim() : "1/2";
16575
- const imagePercent = ratio === "1/4" ? 25 : ratio === "1/3" ? 33.333 : ratio === "2/5" ? 40 : ratio === "2/3" ? 66.667 : 50;
16576
- return `${options.side === "image" ? imagePercent : 100 - imagePercent}%`;
16577
- }
16578
- };
16579
- const columnsDesktopSpanClassTransform = {
16580
- id: "ui.columnsDesktopSpanClass",
16581
- kind: "string",
16582
- summary: "Append lg col-span class for editorial column layouts",
16583
- schema: z.object({ base: z.string().optional() }),
16584
- run: (value, options) => {
16585
- const raw = typeof value === "string" ? value.trim() : "";
16586
- const spanClass = raw === "2" ? "rb-lg-col-span-2" : raw === "3" ? "rb-lg-col-span-3" : raw === "4" ? "rb-lg-col-span-4" : "rb-lg-col-span-1";
16587
- return joinClasses$1([options.base, spanClass]);
16101
+ const role = options.cases[String(value)] ?? options.fallback;
16102
+ return role ? `rgb(var(--tb-${role}))` : void 0;
16588
16103
  }
16589
16104
  };
16590
- const resolveColumnsGridCols = (content) => {
16591
- const items = Array.isArray(content.columns) ? content.columns : [];
16592
- const count = Math.min(4, Math.max(1, items.length || 1));
16593
- const configuredDesktopColumnsRaw = typeof content.desktopColumns === "string" ? content.desktopColumns : "auto";
16594
- const desktopColumns = configuredDesktopColumnsRaw === "2" ? 2 : configuredDesktopColumnsRaw === "3" ? 3 : configuredDesktopColumnsRaw === "4" ? 4 : count;
16595
- if (desktopColumns <= 1) return { base: 1 };
16596
- if (desktopColumns === 2) return {
16597
- base: 1,
16598
- md: 2
16599
- };
16600
- if (desktopColumns === 3) return {
16601
- base: 1,
16602
- md: 2,
16603
- lg: 3
16604
- };
16605
- return {
16606
- base: 1,
16607
- md: 2,
16608
- lg: 3,
16609
- xl: 4
16610
- };
16611
- };
16612
- const uiTransforms = [
16613
- {
16614
- id: "look.splitMinHeight",
16615
- kind: "string",
16616
- run: (value) => asPartialObject(value)?._lookSlots === void 0 ? "clamp(18rem, 36vw, 34rem)" : void 0
16617
- },
16618
- headerNavLinkClassTransform,
16619
- headingClassFromAlignment,
16620
- bodyClassFromAlignment,
16621
- stackAlignFromAlignment,
16622
- sectionStateToneTransform,
16623
- heroContentWrapperClassTransform,
16624
- heroCtaJustifyTransform,
16625
- heroStackJustifyFromVerticalAlignmentTransform,
16626
- heroGridClassFromVerticalAlignmentTransform,
16627
- imageFragmentClassTransform,
16628
- imageFragmentSizeTransform,
16629
- {
16630
- id: "ui.imageShapeClassName",
16631
- kind: "string",
16632
- summary: "Apply a constrained media shape class",
16633
- run: (value, options) => {
16634
- return joinClasses$1([typeof options?.baseClass === "string" ? options.baseClass : "", imageShapeClassMap[typeof value === "string" ? value.trim() : "default"] ?? ""]);
16635
- }
16636
- },
16637
- conditionalClassTransform,
16638
- twoColumnContainerClassTransform,
16639
- twoColumnFlexBasisTransform,
16640
- columnsDesktopSpanClassTransform,
16641
- {
16642
- id: "ui.columnsGridCols",
16643
- kind: "formatter",
16644
- summary: "Resolve responsive grid column counts for columns block",
16645
- run: (value) => {
16646
- return resolveColumnsGridCols(asPartialObject(value) ?? {});
16647
- }
16648
- },
16649
- {
16650
- id: "ui.columnsColsAt",
16651
- kind: "formatter",
16652
- summary: "Resolve columns count for a specific breakpoint",
16653
- schema: z.object({ breakpoint: z.enum([
16654
- "mobile",
16655
- "md",
16656
- "lg",
16657
- "xl"
16658
- ]) }),
16659
- run: (value, options) => {
16660
- const cols = resolveColumnsGridCols(asPartialObject(value) ?? {});
16661
- const mobile = cols.base;
16662
- const md = cols.md ?? mobile;
16663
- const lg = cols.lg ?? md;
16664
- const xl = cols.xl ?? lg;
16665
- const resolved = options.breakpoint === "mobile" ? mobile : options.breakpoint === "md" ? md : options.breakpoint === "lg" ? lg : xl;
16666
- return String(resolved);
16667
- }
16668
- },
16669
- {
16670
- id: "ui.ratioToHeightFactor",
16671
- kind: "formatter",
16672
- summary: "Convert a width/height aspect ratio string to a height factor (h/w)",
16673
- run: (value) => ratioToHeightFactor(value)
16674
- },
16675
- {
16676
- id: "ui.imageGalleryFilterClass",
16677
- kind: "string",
16678
- summary: "Map image filter selection to rb-* filter utility class",
16679
- run: (value) => {
16680
- switch (typeof value === "string" ? value.trim() : "none") {
16681
- case "grayscale": return "rb-filter-grayscale";
16682
- case "grayscale-hover-reveal": return "rb-filter-grayscale-hover-reveal";
16683
- case "sepia": return "rb-filter-sepia";
16684
- default: return "";
16685
- }
16686
- }
16687
- },
16688
- {
16689
- id: "ui.imageGalleryTileClass",
16690
- kind: "string",
16691
- summary: "Compose image gallery tile wrapper classes (border + corners)",
16692
- run: (value) => {
16693
- const content = asPartialObject(value) ?? {};
16694
- const cornersClass = imageGalleryCornerClassMap[typeof content.imageCorners === "string" ? content.imageCorners : "3xl"] ?? "rb-rounded-3xl";
16695
- const border = content.imageBorder && typeof content.imageBorder === "object" ? content.imageBorder : {};
16696
- const borderEnabled = border.enabled !== false;
16697
- const borderWidth = typeof border.width === "string" ? border.width : "2";
16698
- return joinClasses$1([
16699
- "rb-overflow-hidden",
16700
- "rb-relative",
16701
- cornersClass,
16702
- !borderEnabled ? "" : borderWidth === "1" ? "rb-border" : borderWidth === "2" ? "rb-border-2" : borderWidth === "3" ? "rb-border-3" : "rb-border-2"
16703
- ]);
16704
- }
16705
- },
16706
- {
16707
- id: "ui.imageGalleryTileStyle",
16708
- kind: "formatter",
16709
- summary: "Build image gallery tile inline styles (border color)",
16710
- run: (value) => {
16711
- const content = asPartialObject(value) ?? {};
16712
- const borderColor = resolveBorderColorValue(content.imageBorder && typeof content.imageBorder === "object" ? content.imageBorder : {});
16713
- return borderColor ? { borderColor } : void 0;
16714
- }
16715
- },
16105
+ const formattingTransforms = [
16716
16106
  {
16717
- id: "ui.imageGalleryMarqueeTileStyle",
16107
+ id: "value.equals",
16718
16108
  kind: "formatter",
16719
- summary: "Build marquee tile inline styles (border + fixed size)",
16720
- run: (value) => {
16721
- const content = asPartialObject(value) ?? {};
16722
- const size = typeof content.marqueeImageSize === "string" ? content.marqueeImageSize : "md";
16723
- const pixels = size === "sm" ? 200 : size === "lg" ? 320 : size === "xl" ? 400 : 256;
16724
- const style = {
16725
- width: `${pixels}px`,
16726
- height: `${pixels}px`
16727
- };
16728
- const borderColor = resolveBorderColorValue(content.imageBorder && typeof content.imageBorder === "object" ? content.imageBorder : {});
16729
- if (borderColor) style.borderColor = borderColor;
16730
- return style;
16731
- }
16732
- },
16733
- {
16734
- id: "ui.imageGalleryMarqueeDuration",
16735
- kind: "string",
16736
- summary: "Map marquee speed selection to CSS duration",
16737
- run: (value) => {
16738
- const speed = typeof value === "string" ? value.trim() : "medium";
16739
- return speed === "slow" ? "60s" : speed === "fast" ? "20s" : "40s";
16740
- }
16741
- },
16742
- {
16743
- id: "ui.imageGalleryMarqueeDirection",
16744
- kind: "string",
16745
- summary: "Map marquee direction selection to animation-direction",
16746
- run: (value) => value === "right" ? "reverse" : "normal"
16747
- },
16748
- {
16749
- id: "ui.eyebrowClassName",
16750
- kind: "string",
16751
- summary: "Apply a constrained Theme V2 eyebrow treatment class",
16752
- run: (value, options) => {
16753
- return joinClasses$1([typeof options?.baseClass === "string" ? options.baseClass : "rb-eyebrow", eyebrowTreatmentClassMap[isEyebrowTreatment(value) ? value : "plain"]]);
16754
- }
16109
+ summary: "Compare a value to a fixed string",
16110
+ schema: z.object({ value: z.string() }),
16111
+ run: (value, options) => value === options.value
16755
16112
  },
16756
- {
16757
- id: "ui.headingDecorationClassName",
16758
- kind: "string",
16759
- summary: "Apply constrained Theme V2 heading decoration classes",
16760
- run: (value, options) => {
16761
- const baseClass = typeof options?.baseClass === "string" && options.baseClass.trim() ? options.baseClass : "rb-heading-decoration";
16762
- const decoration = asPartialObject(value);
16763
- const family = isHeadingDecorationFamily(decoration?.family) ? decoration.family : null;
16764
- const colorToken = isHeadingDecorationColorToken(decoration?.colorToken) ? decoration.colorToken : "primary";
16765
- if (!family) return "rb-hidden";
16766
- return joinClasses$1([
16767
- baseClass,
16768
- `rb-heading-decoration-${family}`,
16769
- `rb-heading-decoration-color-${colorToken}`
16770
- ]);
16771
- }
16772
- }
16113
+ uppercaseTransform,
16114
+ fallbackTransform,
16115
+ dateFormatShort,
16116
+ arrayLengthTransform,
16117
+ booleanNotTransform,
16118
+ jsonArrayTransform,
16119
+ csvTransform,
16120
+ marqueeLoopTransform,
16121
+ mapTokenTransform
16773
16122
  ];
16774
- function longestHeroWord(words, policy) {
16775
- return policy === "look" ? Math.max(0, ...words.map((word) => word.length)) : 0;
16776
- }
16777
- function heroLegacyTypographyClasses(content, scale, length) {
16778
- return content._effectiveLook ? [] : [scale ? `rb-hero-typography-${scale}` : "", `rb-hero-title-${length}`];
16779
- }
16780
- function heroHeadlineText(content, policy) {
16781
- const plain = readString(content, "headline");
16782
- return policy === "look" ? inlineTextToPlainText(coerceInlineTextWithFallback(content.headlineInline, plain)).trim() : plain?.trim() ?? "";
16783
- }
16784
16123
  //#endregion
16785
16124
  //#region ../blocks/src/system/transforms/registry/layout.ts
16786
16125
  const joinClasses = (parts) => parts.filter((part) => typeof part === "string" && part.trim().length > 0).join(" ").replace(/\s+/g, " ").trim();
@@ -17489,7 +16828,11 @@ const centeredLayout = stack({
17489
16828
  transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center` })),
17490
16829
  fallback: `rb-container rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center`
17491
16830
  })
17492
- }, [centeredLogoRow, createNavRow(`${desktopOnlyDisplay("flex")} rb-flex-wrap rb-justify-center rb-gap-x-6 rb-gap-y-3`, "center")], when("$root.theme.header.variant", { equals: "centered" }));
16831
+ }, [centeredLogoRow, inline({
16832
+ className: `${desktopOnlyDisplay("flex")} rb-flex-wrap rb-items-center rb-justify-center rb-gap-y-3`,
16833
+ align: "center",
16834
+ justify: "center"
16835
+ }, [createNavRow(`${desktopOnlyDisplay("flex")} rb-flex-wrap rb-justify-center rb-gap-x-6 rb-gap-y-3`, "center"), headerCta])], when("$root.theme.header.variant", { equals: "centered" }));
17493
16836
  const floatingLayout = inline({
17494
16837
  [SITE_CHROME_VISIBLE_HEADER_ATTR]: "true",
17495
16838
  className: bindProp("$root.theme.header.maxWidth", {
@@ -18859,7 +18202,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
18859
18202
  intent: "content",
18860
18203
  visibleWhen: {
18861
18204
  field: "$root.variant",
18862
- equals: "sequence"
18205
+ oneOf: ["sequence", "index"]
18863
18206
  }
18864
18207
  }
18865
18208
  },
@@ -19378,7 +18721,10 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
19378
18721
  }],
19379
18722
  fallback: "rb-w-full rb-h-auto rb-object-cover"
19380
18723
  } },
19381
- style: { aspectRatio: { $bind: { from: "content.aspectRatio" } } }
18724
+ style: {
18725
+ borderRadius: { $bind: { from: "content._lookMediaFrame.borderRadius" } },
18726
+ aspectRatio: { $bind: { from: "content.aspectRatio" } }
18727
+ }
19382
18728
  };
19383
18729
  const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"), when("content.images[0].image"));
19384
18730
  const defaultCarouselImages = carousel({
@@ -24504,7 +23850,7 @@ const systemBlockDefinitions = [
24504
23850
  flow: transactionalFlow,
24505
23851
  layoutProfiles: []
24506
23852
  })),
24507
- withDesignCapability("block.gifting", giftingBlockDefinition, sectionOnly(), defineBlockDesignMetadata({
23853
+ withDesignCapability("block.gifting", giftingBlockDefinition, withLookCapability(sectionOnly()), defineBlockDesignMetadata({
24508
23854
  flow: conversionFlow,
24509
23855
  layoutProfiles: [layoutProfile({
24510
23856
  variantKey: "default",
@@ -24766,306 +24112,6 @@ function arrangementSlotParentsForManifest(manifest, target, arrangement, eventR
24766
24112
  });
24767
24113
  }
24768
24114
  //#endregion
24769
- //#region ../blocks/src/system/customize/arrangementKnobs.ts
24770
- /**
24771
- * Content stage for knobs, shared by the renderer and the editor so what the
24772
- * options show and what renders can't disagree. Knob buffets are the block's
24773
- * customise facets; the Look exposes, forces or narrows them and the style's
24774
- * offer can only remove or narrow further.
24775
- */
24776
- function resolveArrangementKnobs(input) {
24777
- const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
24778
- const exposure = arrangementKnobExposure(input.blockKind, input.look, length, storedSplitPhotoSide(input.blockKind, input.content));
24779
- return {
24780
- length,
24781
- exposure,
24782
- knobs: resolveEffectiveKnobs({
24783
- exposure,
24784
- content: normalizedHeadlinePreference(input.content)
24785
- })
24786
- };
24787
- }
24788
- function arrangementKnobExposure(blockKind, look, length, splitPhotoSide) {
24789
- return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
24790
- if (facet.knob === void 0 || facet.target.kind !== "content-field") return [];
24791
- const id = facet.target.field;
24792
- const defaults = look.look.structure.knobDefaults ?? {};
24793
- const storedDefault = id === "imagePosition" ? splitPhotoSide : null;
24794
- return [{
24795
- definition: {
24796
- id,
24797
- defaultValue: defaults[id] ?? storedDefault ?? facet.defaultValue,
24798
- values: facet.values.map((value) => value.value),
24799
- ...knobKindMetadata(facet.knob)
24800
- },
24801
- exposed: exposedKnobIds(look).includes(id),
24802
- forced: look.look.structure.forcedKnobs?.[id],
24803
- lookValues: look.look.structure.knobValues?.[id],
24804
- styleValues: look.knobValues[id],
24805
- lengthValues: id === "titleSize" ? headlineAllowedValues(length) : void 0
24806
- }];
24807
- });
24808
- }
24809
- /**
24810
- * A hero stored as "Split, photo on the left" or "Split, photo on the right"
24811
- * already says which side its photo is on. Under a Look that side is the Photo
24812
- * side default, so the photo stays where it was until the owner picks a side.
24813
- */
24814
- function storedSplitPhotoSide(blockKind, content) {
24815
- if (blockKind !== "block.hero") return null;
24816
- switch (content.variant) {
24817
- case "split": return "left";
24818
- case "splitReverse": return "right";
24819
- default: return null;
24820
- }
24821
- }
24822
- function knobKindMetadata(knob) {
24823
- return knob.kind === "fixed" ? { ordered: knob.ordered } : {
24824
- ordered: false,
24825
- textMaxLength: knob.maxLength
24826
- };
24827
- }
24828
- function headlineAllowedValues(length) {
24829
- switch (length) {
24830
- case "long": return ["quiet"];
24831
- case "medium": return ["quiet", "auto"];
24832
- case "short": return [
24833
- "quiet",
24834
- "auto",
24835
- "display"
24836
- ];
24837
- case null: return;
24838
- }
24839
- }
24840
- /** `titleSize` keeps its five stored values; under a Look they read as three steps. */
24841
- function normalizedHeadlinePreference(content) {
24842
- switch (content.titleSize) {
24843
- case "editorial": return {
24844
- ...content,
24845
- titleSize: "auto"
24846
- };
24847
- case "poster": return {
24848
- ...content,
24849
- titleSize: "display"
24850
- };
24851
- default: return content;
24852
- }
24853
- }
24854
- function exposedKnobIds(look) {
24855
- return [...look.look.structure.knobs, ...look.addKnobs ?? []].filter((id) => !look.removeKnobs.some((removed) => removed === id));
24856
- }
24857
- //#endregion
24858
- //#region ../blocks/src/system/customize/facets.ts
24859
- function defineCustomizeFacet(definition) {
24860
- return definition;
24861
- }
24862
- const eventCalendarListLayoutFacet = defineCustomizeFacet({
24863
- blockKind: "block.event-calendar",
24864
- id: "eventCalendar.listLayout",
24865
- label: "List style",
24866
- legacyOnly: true,
24867
- values: eventCalendarListLayoutOptions.map((option) => ({
24868
- value: option.id,
24869
- label: option.label
24870
- })),
24871
- defaultValue: "stack",
24872
- target: { kind: "event-calendar-list-layout-content" },
24873
- appliesToLayoutVariants: eventCalendarListLayoutCompatibleDisplayModeValues
24874
- });
24875
- const fixedKnob = (blockKind, id, label, values, defaultValue, ordered = false, boolean = false) => ({
24876
- blockKind,
24877
- id,
24878
- label,
24879
- values,
24880
- defaultValue,
24881
- knob: {
24882
- kind: "fixed",
24883
- ordered
24884
- },
24885
- target: {
24886
- kind: "content-field",
24887
- field: id,
24888
- ...boolean ? { boolean: true } : {}
24889
- }
24890
- });
24891
- const textKnob = (id, label, maxLength) => ({
24892
- blockKind: "block.hero",
24893
- id,
24894
- label,
24895
- values: [],
24896
- defaultValue: "",
24897
- knob: {
24898
- kind: "text",
24899
- maxLength
24900
- },
24901
- target: {
24902
- kind: "content-field",
24903
- field: id
24904
- }
24905
- });
24906
- const onOff = [{
24907
- value: "true",
24908
- label: "On"
24909
- }, {
24910
- value: "false",
24911
- label: "Off"
24912
- }];
24913
- const columnCounts = [
24914
- {
24915
- value: "2",
24916
- label: "2"
24917
- },
24918
- {
24919
- value: "3",
24920
- label: "3"
24921
- },
24922
- {
24923
- value: "4",
24924
- label: "4"
24925
- }
24926
- ];
24927
- const systemCustomizeFacetDefinitions = [
24928
- eventCalendarListLayoutFacet,
24929
- fixedKnob("block.offerings-preview", "grouping", "Grouping", [{
24930
- value: "by-kind",
24931
- label: "Grouped by kind"
24932
- }, {
24933
- value: "one-list",
24934
- label: "One list"
24935
- }], "by-kind"),
24936
- fixedKnob("block.offerings-preview", "dates", "Dates", [{
24937
- value: "summary",
24938
- label: "Summary"
24939
- }, {
24940
- value: "next-dates",
24941
- label: "Next dates"
24942
- }], "summary"),
24943
- {
24944
- ...fixedKnob("block.feature-cards", "actionStyle", "Item actions", [{
24945
- value: "button",
24946
- label: "Button"
24947
- }, {
24948
- value: "link",
24949
- label: "Link"
24950
- }], "button"),
24951
- blockKinds: cardListKnobBlocks
24952
- },
24953
- fixedKnob("block.testimonials", "quoteCount", "How many quotes", [
24954
- {
24955
- value: "1",
24956
- label: "1"
24957
- },
24958
- {
24959
- value: "2",
24960
- label: "2"
24961
- },
24962
- {
24963
- value: "3",
24964
- label: "3"
24965
- },
24966
- {
24967
- value: "all",
24968
- label: "All"
24969
- }
24970
- ], "3", true),
24971
- {
24972
- ...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
24973
- description: "Moves to the next quote every few seconds, and stops while someone's reading."
24974
- },
24975
- fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
24976
- {
24977
- ...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
24978
- blockKinds: [
24979
- "block.testimonials",
24980
- "block.newsletter-signup",
24981
- "block.form"
24982
- ]
24983
- },
24984
- fixedKnob("block.hero", "photoTint", "Photo tint", [{
24985
- value: "dark",
24986
- label: "Dark"
24987
- }, {
24988
- value: "brand",
24989
- label: "Brand colour"
24990
- }], "dark"),
24991
- fixedKnob("block.hero", "candleGlow", "Candle glow", onOff, "true", false, true),
24992
- fixedKnob("block.hero", "columnGuides", "Column guides", onOff, "true", false, true),
24993
- fixedKnob("block.hero", "titleSize", "Headline size", heroTitleSizeOptions, "auto", true),
24994
- fixedKnob("block.hero", "imagePosition", "Photo side", [{
24995
- value: "left",
24996
- label: "Left"
24997
- }, {
24998
- value: "right",
24999
- label: "Right"
25000
- }], "right"),
25001
- fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
25002
- fixedKnob("block.intro", "imagePosition", "Photo side", [{
25003
- value: "left",
25004
- label: "Left"
25005
- }, {
25006
- value: "right",
25007
- label: "Right"
25008
- }], "left"),
25009
- fixedKnob("block.media-text", "imagePosition", "Photo side", [{
25010
- value: "left",
25011
- label: "Left"
25012
- }, {
25013
- value: "right",
25014
- label: "Right"
25015
- }], "left"),
25016
- fixedKnob("block.media-text", "imageShape", "Media shape", standardImageShapeOptions, "default"),
25017
- fixedKnob("block.media-text", "aspectRatio", "Media aspect ratio", standardAspectRatioOptions, "auto"),
25018
- textKnob("stickerLine", "Sticker line", 32),
25019
- textKnob("smallCaption", "Small caption", 24),
25020
- {
25021
- ...fixedKnob("block.feature-cards", "showPhotos", "Show photos", onOff, "true", false, true),
25022
- blockKinds: cardListFamilyBlocks
25023
- },
25024
- fixedKnob("block.feature-cards", "columns", "Columns", columnCounts, "3", true),
25025
- fixedKnob("block.image-gallery", "blackAndWhite", "Black and white", onOff, "false", false, true),
25026
- fixedKnob("block.event-calendar", "listColumns", "Columns", columnCounts, "3", true),
25027
- fixedKnob("block.event-calendar", "showPhotos", "Photos", [{
25028
- value: "true",
25029
- label: "Show"
25030
- }, {
25031
- value: "false",
25032
- label: "Hide"
25033
- }], "true", false, true),
25034
- {
25035
- ...fixedKnob("block.feature-cards", "cardMarker", "Item markers", [
25036
- {
25037
- value: "icons",
25038
- label: "Icons"
25039
- },
25040
- {
25041
- value: "numbers",
25042
- label: "Numbers"
25043
- },
25044
- {
25045
- value: "none",
25046
- label: "None"
25047
- }
25048
- ], "icons"),
25049
- blockKinds: cardListFamilyBlocks
25050
- },
25051
- fixedKnob("block.body-text", "alignment", "Text alignment", [{
25052
- value: "left",
25053
- label: "Left"
25054
- }, {
25055
- value: "center",
25056
- label: "Centre"
25057
- }], "left"),
25058
- {
25059
- ...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
25060
- description: "Show how many places are left on each event"
25061
- }
25062
- ];
25063
- systemCustomizeFacetDefinitions.map((definition) => definition.id);
25064
- Array.from(new Set(systemCustomizeFacetDefinitions.flatMap((definition) => definition.values.map((option) => option.value))));
25065
- function systemCustomizeFacetDefinitionsForBlock(blockKind) {
25066
- return systemCustomizeFacetDefinitions.filter((definition) => definition.blockKind === blockKind || "blockKinds" in definition && definition.blockKinds?.some((kind) => kind === blockKind));
25067
- }
25068
- //#endregion
25069
24115
  //#region ../blocks/src/system/customize/fieldOwnership.ts
25070
24116
  /**
25071
24117
  * Values with their own owner, whatever their fields are tagged: the Background
@@ -25721,8 +24767,7 @@ const eventCalendarReadEnabled = {
25721
24767
  summary: "Choose the read projection required by the calendar display mode",
25722
24768
  schema: readJobSchema,
25723
24769
  run(value, options) {
25724
- const plan = resolveEventCalendarReadPlan(asPartialObject(value) ?? {});
25725
- return plan.jobs === options.job || plan.jobs === "both" && options.job !== "schedule";
24770
+ return resolveEventCalendarReadPlan(asPartialObject(value) ?? {}).jobs === options.job;
25726
24771
  }
25727
24772
  };
25728
24773
  /**
@@ -25771,7 +24816,7 @@ const defaultTransforms = createTransformRegistry([
25771
24816
  kind: "formatter",
25772
24817
  run(value) {
25773
24818
  const content = asPartialObject(value) ?? {};
25774
- return content.emptyBehavior === "hide" && eventReadinessLoaderKey(content) !== "schedule";
24819
+ return blockChecksForEvents(content) && eventReadinessLoaderKey(content) !== "schedule";
25775
24820
  }
25776
24821
  },
25777
24822
  {
@@ -25983,7 +25028,7 @@ function resolveLinkedContentEditSupport(contentType) {
25983
25028
  kind: "unsupported-domain-backed",
25984
25029
  reason: metadata.reason
25985
25030
  };
25986
- default: return assertNever$2(metadata);
25031
+ default: return assertNever$1(metadata);
25987
25032
  }
25988
25033
  }
25989
25034
  function contentTypeKeyToLabel(key) {
@@ -26220,7 +25265,7 @@ function previewEditableTargetToPath(target) {
26220
25265
  case "current-entry-field":
26221
25266
  case "current-entry-metadata": return target.path;
26222
25267
  case "read-only": return;
26223
- default: return assertNever$2(target);
25268
+ default: return assertNever$1(target);
26224
25269
  }
26225
25270
  }
26226
25271
  function previewEditableTargetToFieldKey(target) {
@@ -27158,8 +26203,10 @@ function bindItemSurfacePresentation(node, context) {
27158
26203
  if (!isPlainObject$1(content) || !isPlainObject$1(content._effectiveLook)) return context;
27159
26204
  const look = content._effectiveLook;
27160
26205
  if (!look.surfacePresentation) return context;
27161
- const repeater = context.scopes.reduce((found, scope) => scope.repeater ?? found, void 0);
27162
- const role = repeater ? itemRole(repeater.index, repeater.count, look.itemRoles) : void 0;
26206
+ const itemScope = context.scopes.reduce((found, scope) => scope.repeater ? scope : found, void 0);
26207
+ const repeater = itemScope?.repeater;
26208
+ const featured = isPlainObject$1(itemScope?.value) && itemScope.value.featured === true;
26209
+ const role = repeater ? itemRole(repeater.index, repeater.count, look.itemRoles, featured) : void 0;
27163
26210
  return {
27164
26211
  ...context,
27165
26212
  surfacePresentation: selectItemSurfacePresentation(look.surfacePresentation, role)
@@ -27323,7 +26370,7 @@ function collectNestedPreviewFieldConstraintEntries(field, path) {
27323
26370
  case "text":
27324
26371
  case "time":
27325
26372
  case "url": return [];
27326
- default: return assertNever$2(field);
26373
+ default: return assertNever$1(field);
27327
26374
  }
27328
26375
  }
27329
26376
  /** Share the supplied snapshot with transforms and manifest bindings, including standalone components. */
@@ -27672,7 +26719,7 @@ function sourceLabel(source) {
27672
26719
  case "managed-database": return "DB";
27673
26720
  case "sdk-synced": return "SDK-synced DB";
27674
26721
  case "sdk-config": return "SDK config";
27675
- default: return assertNever$2(source);
26722
+ default: return assertNever$1(source);
27676
26723
  }
27677
26724
  }
27678
26725
  //#endregion
@@ -27900,7 +26947,7 @@ function planBlock(block, renderableContent, resolveTarget, audience, siteStyleI
27900
26947
  }
27901
26948
  function renderableBlockPlan(common, target, audience, siteStyleId) {
27902
26949
  const { definition, systemDefinition, override } = target;
27903
- const renderableContent = planArrangementContent(common.block.kind, definition.manifest, common.renderableContent, audience);
26950
+ const { renderableContent, ownerEditableContent } = planArrangementBlockContent(common.block.kind, definition.manifest, common.renderableContent, audience);
27904
26951
  const effectiveArrangementKey = resolveEffectiveArrangement({
27905
26952
  manifest: arrangementManifestFromVariants(definition.manifest),
27906
26953
  ...definition.manifest.variantMeaning.kind !== "mode" ? { look: effectiveLookFromContent(renderableContent)?.look } : {},
@@ -27912,6 +26959,7 @@ function renderableBlockPlan(common, target, audience, siteStyleId) {
27912
26959
  }).key;
27913
26960
  return {
27914
26961
  ...common,
26962
+ ownerEditableContent,
27915
26963
  renderableContent,
27916
26964
  kind: "renderable",
27917
26965
  definition,
@@ -28011,8 +27059,14 @@ function effectiveLookFromContent(content) {
28011
27059
  return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
28012
27060
  }
28013
27061
  function planArrangementContent(blockKind, manifest, authored, audience) {
27062
+ return planArrangementBlockContent(blockKind, manifest, authored, audience).renderableContent;
27063
+ }
27064
+ function planArrangementBlockContent(blockKind, manifest, authored, audience) {
28014
27065
  const runtime = arrangementRuntime(authored);
28015
- if (!runtime) return authored;
27066
+ if (!runtime) return {
27067
+ renderableContent: authored,
27068
+ ownerEditableContent: authored
27069
+ };
28016
27070
  const spacingHook = authoredSectionSpacingHook(authored);
28017
27071
  const content = withoutSectionSpacing(authored);
28018
27072
  const mode = readStoredMode({
@@ -28020,7 +27074,10 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
28020
27074
  variantMeaning: manifest.variantMeaning
28021
27075
  }, content);
28022
27076
  const effective = resolveArrangementContentLook(runtime, mode, content, audience);
28023
- if (!effective) return content;
27077
+ if (!effective) return {
27078
+ renderableContent: content,
27079
+ ownerEditableContent: content
27080
+ };
28024
27081
  const { facts } = arrangementContentFacts(content);
28025
27082
  const { length, knobs } = resolveArrangementKnobs({
28026
27083
  blockKind,
@@ -28034,7 +27091,7 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
28034
27091
  manifest,
28035
27092
  arrangementLook: true
28036
27093
  }), ["look"]);
28037
- const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind !== "kept")), lookOwnedPaths);
27094
+ const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => (knobs[key]?.kind ?? "used") === "used")), lookOwnedPaths);
28038
27095
  const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
28039
27096
  const photoCount = arrangementContentFacts({
28040
27097
  ...activeContent,
@@ -28042,28 +27099,31 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
28042
27099
  ...photoContent
28043
27100
  }).photoCount + lookPartPhotoCount(blockKind, activeContent, effective.look.structure.byMode[mode ?? "default"] ?? null);
28044
27101
  return {
28045
- ...activeContent,
28046
- ...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
28047
- ...mode !== null ? { variant: mode } : {},
28048
- ...effectiveContent,
28049
- ...photoContent,
28050
- ...arrangementShapeContent(knobs),
28051
- ...arrangementPanelContent(activeContent, effective, mode),
28052
- ...arrangementQuoteContent(blockKind, effective, values),
28053
- _arrangementLooks: runtime,
28054
- _effectiveLook: effective,
28055
- _lookHooks: {
28056
- ...arrangementContentHooks(effective, mode, length, {
28057
- ...facts.content,
28058
- photo: photoCount > 0
28059
- }, values, photoCount),
28060
- ...spacingHook
28061
- },
28062
- _effectiveKnobs: knobs,
28063
- _lookOwnedPaths: lookOwnedPaths,
28064
- _lookAudience: audience,
28065
- _lookSlots: arrangementContentSlots(blockKind),
28066
- blockLook: effective.look.id
27102
+ ownerEditableContent: activeContent,
27103
+ renderableContent: {
27104
+ ...activeContent,
27105
+ ...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
27106
+ ...mode !== null ? { variant: mode } : {},
27107
+ ...effectiveContent,
27108
+ ...photoContent,
27109
+ ...arrangementMediaFrameContent(blockKind, effective, values, authored),
27110
+ ...arrangementPanelContent(activeContent, effective, mode),
27111
+ ...arrangementQuoteContent(blockKind, effective, values),
27112
+ _arrangementLooks: runtime,
27113
+ _effectiveLook: effective,
27114
+ _lookHooks: {
27115
+ ...arrangementContentHooks(effective, mode, length, {
27116
+ ...facts.content,
27117
+ photo: photoCount > 0
27118
+ }, values, photoCount),
27119
+ ...spacingHook
27120
+ },
27121
+ _effectiveKnobs: knobs,
27122
+ _lookOwnedPaths: lookOwnedPaths,
27123
+ _lookAudience: audience,
27124
+ _lookSlots: arrangementContentSlots(blockKind),
27125
+ blockLook: effective.look.id
27126
+ }
28067
27127
  };
28068
27128
  }
28069
27129
  /**
@@ -28099,11 +27159,18 @@ function arrangementPhotoTreatmentContent(content, look, palette, tint) {
28099
27159
  function arrangementContentSlots(blockKind) {
28100
27160
  return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
28101
27161
  }
28102
- /** Where a Look offers the photo shape, the shape sets the crop, without rewriting authored preferences. */
28103
- function arrangementShapeContent(knobs) {
28104
- const shape = knobs.imageShape;
28105
- if (!shape || shape.kind === "kept") return {};
28106
- return shape.value === "circle" ? { aspectRatio: "1/1" } : shape.value === "arch" ? { aspectRatio: "4/5" } : {};
27162
+ /** One frame declaration owns shape crops and keeps authored ratios for variable layouts. */
27163
+ function arrangementMediaFrameContent(blockKind, look, knobs, authored) {
27164
+ if (blockKind !== "block.intro" && blockKind !== "block.media-text") return {};
27165
+ const frame = resolveLookMediaFrame(look.look.structure.mediaFrame, look.skin, knobs);
27166
+ if (!frame) return {};
27167
+ return frame.kind === "fixed" ? {
27168
+ aspectRatio: frame.aspectRatio,
27169
+ _lookMediaFrame: frame
27170
+ } : {
27171
+ aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio,
27172
+ ...frame.borderRadius ? { _lookMediaFrame: frame } : {}
27173
+ };
28107
27174
  }
28108
27175
  function arrangementQuoteContent(blockKind, effective, values) {
28109
27176
  if (blockKind !== "block.testimonials") return {};
@@ -28457,7 +27524,7 @@ async function fetchAllPages(apiClient, endpoint, params, offset, seenPages) {
28457
27524
  case "invalid": throw new Error(page.message);
28458
27525
  case "complete": return page.entries;
28459
27526
  case "continue": return [...page.entries, ...await fetchAllPages(apiClient, endpoint, params, page.offset, page.seenPages)];
28460
- default: return assertNever$2(page);
27527
+ default: return assertNever$1(page);
28461
27528
  }
28462
27529
  }
28463
27530
  function isUnknownArray(value) {
@@ -29578,7 +28645,7 @@ function offeringsPreviewPhotoCount(listing) {
29578
28645
  case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
29579
28646
  case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
29580
28647
  case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
29581
- default: return assertNever$2(listing);
28648
+ default: return assertNever$1(listing);
29582
28649
  }
29583
28650
  }
29584
28651
  function groupPhotoCount(load) {
@@ -29586,14 +28653,14 @@ function groupPhotoCount(load) {
29586
28653
  case "empty":
29587
28654
  case "failed": return 0;
29588
28655
  case "items": return load.items.filter(hasPhoto).length;
29589
- default: return assertNever$2(load);
28656
+ default: return assertNever$1(load);
29590
28657
  }
29591
28658
  }
29592
28659
  function hasPhoto(item) {
29593
28660
  switch (item.kind) {
29594
28661
  case "event": return Boolean(item.event.presentation?.image);
29595
28662
  case "run": return Boolean(item.run.representative.presentation?.image);
29596
- default: return assertNever$2(item);
28663
+ default: return assertNever$1(item);
29597
28664
  }
29598
28665
  }
29599
28666
  function courseGroupPhotoCount(load) {
@@ -30005,13 +29072,15 @@ function prepareEntry(entry, input) {
30005
29072
  }
30006
29073
  }
30007
29074
  /**
30008
- * Editor admission validates raw in-flight values without minting a renderable
30009
- * proof. Returns `null` when even relaxed validation rejects the draft.
29075
+ * Editor admission validates what the owner still decides, without minting a
29076
+ * renderable proof. The Look's decisions are not authoring choices (a frame's
29077
+ * 4/5 is not on the block's ratio list), so the preview renders them unvalidated,
29078
+ * as a public page does, and a hidden stale value can't block it. Returns `null`
29079
+ * when even relaxed validation rejects the draft.
30010
29080
  */
30011
29081
  function previewableEditorContent(entry) {
30012
29082
  if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
30013
- const draft = validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.renderableContent);
30014
- return draft.kind === "previewable" ? draft.data : null;
29083
+ return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.ownerEditableContent).kind === "previewable" ? entry.renderableContent : null;
30015
29084
  }
30016
29085
  function buildPreparedContent(entry, content, input) {
30017
29086
  const { dataContext } = input;
@@ -31609,7 +30678,7 @@ function solvedInksForThemeRuntime(themeRuntime) {
31609
30678
  case "cms-theme": return "publish";
31610
30679
  case "responsive-only":
31611
30680
  case "none": return "withhold";
31612
- default: return assertNever$2(themeRuntime);
30681
+ default: return assertNever$1(themeRuntime);
31613
30682
  }
31614
30683
  }
31615
30684
  function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
@@ -31624,7 +30693,7 @@ function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
31624
30693
  children
31625
30694
  });
31626
30695
  case "none": return /* @__PURE__ */ jsx(Fragment, { children });
31627
- default: return assertNever$2(themeRuntime);
30696
+ default: return assertNever$1(themeRuntime);
31628
30697
  }
31629
30698
  }
31630
30699
  function renderWithOverrideOnlyRuntime({ runtime, children }) {
@@ -31634,7 +30703,7 @@ function renderWithOverrideOnlyRuntime({ runtime, children }) {
31634
30703
  children
31635
30704
  });
31636
30705
  case "none": return /* @__PURE__ */ jsx(Fragment, { children });
31637
- default: return assertNever$2(runtime);
30706
+ default: return assertNever$1(runtime);
31638
30707
  }
31639
30708
  }
31640
30709
  //#endregion