@riverbankcms/sdk 0.174.1 → 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 (195) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-YRmc-Yxz.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
  2. package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
  4. package/dist/_dts/{client-B1J6Akyf.d.ts → client-B6tCvmG4.d.ts} +487 -11
  5. package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-B9qryk4R.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
  9. package/dist/_dts/{index-yWDbUojb.d.ts → index-Bl5_pjmq.d.ts} +1 -1
  10. package/dist/_dts/{index-CF62FntA.d.ts → index-Btp5nIoz.d.ts} +2 -2
  11. package/dist/_dts/{index-BLEKFHt1.d.ts → index-CQUzwOxO.d.ts} +1 -1
  12. package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-DmhFb6R1.d.ts} +1 -1
  13. package/dist/_dts/{index-CXZSy_9M.d.ts → index-OtazQE3U.d.ts} +2 -2
  14. package/dist/_dts/{index-BgOr1Xyz.d.ts → index-YRQulWB4.d.ts} +3 -3
  15. package/dist/_dts/{index-DpJm0NpL.d.ts → index-_pXaCO12.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
  17. package/dist/_dts/{request-BK-pHf0P.d.ts → request-BT8i_vH-.d.ts} +1621 -385
  18. package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DXUCWJ3y.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-DjVNADXR.d.ts → types-C0XZnjXz.d.ts} +3 -3
  55. package/dist/_dts/{types-CwmB2NHU.d.ts → types-CXL1QJSY.d.ts} +7 -7
  56. package/dist/_dts/{types-Dmow_FI6.d.ts → types-OKzbqRBx.d.ts} +2 -2
  57. package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
  59. package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
  60. package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
  62. package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
  63. package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
  64. package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
  65. package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
  66. package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-BybMSKNL.mjs} +4 -3
  67. package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
  68. package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
  69. package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
  70. package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +635 -359
  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-BpeP9xdt.mjs → Page-CWN_8cLZ.mjs} +601 -579
  74. package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
  75. package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-C7RJBOW3.mjs} +37 -12
  76. package/dist/client/{accordion-nR7D4m1a.mjs → accordion-uUi_N6mZ.mjs} +1 -1
  77. package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
  78. package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
  79. package/dist/client/bookings.mjs +22 -15
  80. package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-C-gFwhnO.mjs} +2 -1
  81. package/dist/client/{carousel-CVUOatsY.mjs → carousel-C0_BqMA0.mjs} +1 -1
  82. package/dist/client/{cart-DE0K6E0R.mjs → cart-BOHuppVu.mjs} +3 -3
  83. package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-IfJE1zAp.mjs} +1 -1
  84. package/dist/client/{checkout-76cdHyPL.mjs → checkout-C3Aj-aNa.mjs} +3 -3
  85. package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
  87. package/dist/client/client.mjs +112 -21
  88. package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
  89. package/dist/client/{course-DHIrXqNT.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-5GD5o4Mt.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
  95. package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-CJapNbTv.mjs} +1 -1
  96. package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-CAdcpnLc.mjs} +176 -75
  97. package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
  98. package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-B9Ly3024.mjs} +4 -4
  99. package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
  100. package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-ZSmvhWII.mjs} +4 -4
  101. package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
  102. package/dist/client/{form-CfqIAhfN.mjs → form-DG_YZSNn.mjs} +3 -3
  103. package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BU6dM0-C.mjs} +4 -4
  104. package/dist/client/{form.parts-Bf-L66Gg.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-WVXtOcuW.mjs → headerSection-D91EzlOR.mjs} +2 -2
  111. package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BDZLALxj.mjs} +2951 -14395
  112. package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
  113. package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
  114. package/dist/client/{newsletterForm-DOVe-qY3.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-CNzeFnFf.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
  118. package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
  119. package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-W0_0lDGe.mjs} +3 -3
  120. package/dist/client/{productList-DTgZXOEq.mjs → productList-ayAtPJdb.mjs} +3 -3
  121. package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
  122. package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-B1EEZkcr.mjs} +307 -240
  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 -6
  126. package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
  128. package/dist/client/{shop-5LBhftWx.mjs → shop-DbUUoHFJ.mjs} +3 -3
  129. package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
  130. package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
  131. package/dist/client/{shop-commerce-store-BOmXFmk_.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-BTtZqNmv.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
  134. package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CJAINJr3.mjs} +113 -35
  135. package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-DwVAuGsx.mjs} +2 -2
  136. package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel-DBTIFWTb.mjs} +10 -10
  137. package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
  138. package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
  139. package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
  140. package/dist/client/{view-BvuYmQJ5.mjs → view-BTk470k0.mjs} +3 -2
  141. package/dist/client/{view-D9ObkFtz.mjs → view-Cw4EmEPv.mjs} +99 -30
  142. package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
  143. package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +28 -25
  144. package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
  145. package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
  147. package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-B61mZd81.mjs} +4141 -2677
  148. package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
  149. package/dist/preview-next/client/runtime.mjs +3 -3
  150. package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
  151. package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-BZDIC-fA.mjs} +527 -236
  152. package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
  153. package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +13 -4
  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-BOuNcOcN.mjs → route-contract-0gSlK9S0.mjs} +86 -12
  158. package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-DeXXycg8.mjs} +4 -4
  159. package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
  160. package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-7L3pC5Os.mjs} +13 -34
  161. package/dist/server/{client-CGtU5fHI.mjs → client-CgghATBm.mjs} +111 -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-ChnkJSay.mjs → loadContent-D7M5Vcug.mjs} +5 -5
  168. package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CiTId05y.mjs} +2 -2
  169. package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
  170. package/dist/server/next.mjs +35 -9
  171. package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
  172. package/dist/server/page-converter.mjs +1 -1
  173. package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-Cuos4Xcd.mjs} +97 -39
  174. package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
  175. package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-JxlV8_Bo.mjs} +1261 -1129
  176. package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
  177. package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BDhlJbAx.mjs} +1 -1
  178. package/dist/server/prebuild.mjs +1 -1
  179. package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
  180. package/dist/server/{registry-DmqxC8th.mjs → registry-cQ9N5W-n.mjs} +20432 -20165
  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-EYogtwQc.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-Bt_8IL1g.mjs → validation-3puM5SM8.mjs} +3 -3
  192. package/dist/server/{version-DT_efohp.mjs → version-B8g-Wx57.mjs} +1 -1
  193. package/dist/styles/index.css +295 -37
  194. package/package.json +1 -1
  195. package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
@@ -1,24 +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-DNRqG4aX.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 { $o as gradientToCss, $s as opaqueSurfaceContextFromTheme, Ao as automaticArrangementLook, Ar as resolveArrangementKnobs, As as applyLookPhotoTreatment, Ba as normalizeEventRegistrationPageSurfaceSubject, Bo as resolvePublishedLook, Br as runTransforms, Bs as assertNever$1, Cc as siteChromeBackgroundOverrideOwner, Co as resolveLookSurfacePresentation, Cs as isDecorativeTransitionIntent, Dc as asPageFlowPresetId, Do as arrangementAppearancePresets, Ds as transitionIntentForTreatment, Ea as resolveDateRuntimeContext, Ec as asLayoutVariantKey, Eo as resolveLookMediaFrame, Es as spaciousBoundaryOption, Fo as styleSectionBackgroundForColour, Fr as uiTransforms, Fs as sectionSurfaceBase, Gs as designIssueSeverityForPolicy, Ho as deriveSiteStyleBlockPolicy, Hs as defineExactCatalog, Io as arrangementManifestFromVariants, Ir as SECTION_STATE_KINDS, Is as stripStaleTransitionStyleGroup, Jo as requireCuratedSiteStyle, Js as offeringsPreviewCompositionTreatmentValues, Kr as eventCalendarWeekStart, Ks as featureCardCompositionTreatmentValues, Lo as readStoredMode, Lr as sectionStateToneFromKind, Ls as themeV2CompilerOwnedFieldNames, Mc as isRecord$8, Mo as getCompatibleBlockAppearancePresets, Mr as createImageShapeField, Ms as parseCanonicalRuntimeBackground, No as resolveArrangementLookForBlock, Nr as heroTitleSizeOptions, Ns as resolveSectionBackground, Oc as asSiteStyleId, Oo as arrangementLookHooks, Os as anglePolygonCss, Po as resolveLookForBlock, Pr as createAspectRatioField, Ps as sectionForegroundBackground, Qs as toNonEmptyReadonlyArray, Ro as resolveEffectiveArrangement, Rr as asPartialObject, Sc as asHeaderStyleId, So as lookPresentationOnPalette, Ss as boundaryTreatmentForBoundaryOptionId, Ta as readRuntimeNow, Tc as asDesignBlockId, To as generateLookMediaFrameCss, Ts as softBoundaryOption, Uo as filterLayoutProfilesForPolicy, Ur as parseInlineTextFromUnknown, Us as defineFrameCapability, Vr as inlineTextToPlainText, Vs as defineBlockDesignCapability, Wo as filterLookIdsForPolicy, Wr as plainTextToInlineText, Ws as defineNoBlockDesignCapability, Xc as formatBookingPriceDisplay, Xs as sectionBackgroundPaintValues, Yo as compilePageRuntimeFields, Ys as plainFrame, Zo as stripCompiledRuntimeStyleFields, Zs as testimonialsCompositionTreatmentValues, _s as sectionShapeFromContent, ac as parseBlockColorToken, as as getNavLinkPreset, bc as parseGradientPresetId, bo as resolvedItemSurfaceProps, br as MediaPlaceholder, bs as boundaryOptions, cc as headerVariantValues, cs as generateEffectsCSS, ds as navLinkOwnsHoverForeground, ec as opaqueSurfaceDeclarations, es as getGradientPreset, fc as boxBackgroundSchema, fs as navLinkOwnsUnderline, gc as cardVariantRoleValues, gs as sectionShapeForGround, hs as resolvePageDesignBoundaryChoice, ic as TokenResolver, is as footerForegroundCandidates, jo as compileArrangementLookRuntime, jr as systemCustomizeFacetDefinitionsForBlock, js as deriveSectionGround, kc as makeBoundaryId, ko as arrangementStyleAvailability, ks as transitionCatalogueEntries, lc as blockCustomCssRuleSchema, ls as generateInteractiveChildInheritanceCSS, ms as resolvePageDesignBlockLookChoice, nc as surfaceToneFromForegroundToken, ns as generateDefaultCardSystem, oc as sectionStylesOverrideSchema, os as buildTextContrastShadow, pc as runtimeBoxBackgroundSchema, qo as getCuratedSiteStyle, qs as introCompositionTreatmentValues, rc as arrangementSlotNames, rs as generateFooterCss, sc as themeSchema, ss as generateNavLinkCSS, tc as selectLogoVariant, ts as resolveCardRole, uc as customCssRuleSchema, us as navLinkHoverColorCandidate, vs as sectionShapeHook, wa as isBlockButtonRole, wo as selectItemSurfacePresentation, ws as noneBoundaryOption, xc as asHeaderLayoutId, xo as itemRole, xr as computeMediaTransformStyle, xs as boundaryRuntimeMetricsForDecorativeTransition, yc as surfaceCardRoleValues, ys as boundaryOptionForTransitionIntent, zo as resolveModeArrangement, zr as createTransformRegistry, zs as lookModes } from "./display-Cf_j5stk.mjs";
5
- import { A as eventListTreatmentValues, At as decideLocationSourcePermission, Bt as formatDate, Dt as isRecord$9, F as tileTreatmentValues, Ft as publicLocationSchema, L as eventVenueDrawingSchema, Nt as parseLocationValue, P as isArrangementMode, Pt as projectPublicLocation, Q as isRichTextDoc, Rt as trimmedStringOrNull, V as publicEventsArraySchema, W as bookingConsentCarrierSchema, Y as RichTextDocSchema, a as eventAutoApplyDiscountPreviewSchema, an as resolveBookingBusinessTimeZone, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, it as runtimeMediaSchema, 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-DdTJyar2.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";
8
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";
9
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 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-CrE3TDpW.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";
11
12
  import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-DuaYtnvG.mjs";
12
13
  import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
13
- import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-D9ObkFtz.mjs";
14
- import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-WeUipfIP.mjs";
15
- import { s as monthSlotParents } from "./CalendarNavigationChevron-Az1-TIEI.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";
16
17
  import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
17
- import { n as eventListSlotParents } from "./EventListing.view-DKFImKOx.mjs";
18
+ import { n as eventListSlotParents } from "./EventListing.view-r31k8Icz.mjs";
18
19
  import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
19
- import { t as formatDate$1 } from "./formatDate-Dp7POa9Y.mjs";
20
+ import { t as formatDate$1 } from "./formatDate-DFfWHpQB.mjs";
20
21
  import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
21
- import { t as coerceRichTextDoc } from "./richText-coerce-C32cRQ03.mjs";
22
+ import { t as coerceRichTextDoc } from "./richText-coerce-CDAfpMQU.mjs";
22
23
  import { t as resolveBlocksPageMediaContext } from "./mediaAssets-B99AP7ai.mjs";
23
24
  import * as React$1 from "react";
24
25
  import React from "react";
@@ -672,7 +673,7 @@ function boundaryEndpointForSectionContent(content) {
672
673
  kind: "unpainted",
673
674
  reason: "media"
674
675
  };
675
- default: return assertNever$1(effective, "Unhandled section background type");
676
+ default: return assertNever$2(effective, "Unhandled section background type");
676
677
  }
677
678
  }
678
679
  /**
@@ -809,7 +810,7 @@ function boundaryLayout(intent, composition) {
809
810
  shape: composition.from
810
811
  }
811
812
  };
812
- default: return assertNever$1(composition, "Unhandled boundary composition");
813
+ default: return assertNever$2(composition, "Unhandled boundary composition");
813
814
  }
814
815
  }
815
816
  function requireThemeColorToken(value) {
@@ -818,330 +819,6 @@ function requireThemeColorToken(value) {
818
819
  return token;
819
820
  }
820
821
  //#endregion
821
- //#region ../theme-core/src/cards/constants.ts
822
- /**
823
- * Corner style to border-radius value map for content-bearing card surfaces.
824
- * Full pill radii are reserved for controls; cards need a capped radius so
825
- * long titles, media, and expanded content do not clip into capsule shapes.
826
- */
827
- const CORNER_RADIUS_MAP = {
828
- square: "0px",
829
- soft: "8px",
830
- rounded: "16px",
831
- pill: "24px"
832
- };
833
- /**
834
- * Gradient direction to CSS direction map
835
- */
836
- const GRADIENT_DIRECTION_MAP = {
837
- "to-r": "to right",
838
- "to-l": "to left",
839
- "to-t": "to top",
840
- "to-b": "to bottom",
841
- "to-tr": "to top right",
842
- "to-tl": "to top left",
843
- "to-br": "to bottom right",
844
- "to-bl": "to bottom left"
845
- };
846
- /**
847
- * Generate CSS box-shadow value from Shadow object
848
- */
849
- function generateShadowValue(shadow) {
850
- if (shadow.elevation === "none") return "none";
851
- const offset = {
852
- low: 2,
853
- medium: 4,
854
- high: 6
855
- }[shadow.elevation];
856
- const xOffset = shadow.position === "bottom-right" ? offset : 0;
857
- if (shadow.softness === "hard") return `${xOffset}px ${offset}px 0 0 rgba(0,0,0,1)`;
858
- const soft = shadow.softness !== "crisp";
859
- switch (shadow.elevation) {
860
- case "low": return soft ? `${xOffset}px 1px 2px rgba(0,0,0,.06)` : `${xOffset}px 1px 1px rgba(0,0,0,.12)`;
861
- case "medium": return soft ? `${xOffset}px 10px 20px rgba(0,0,0,.08)` : `${xOffset}px 6px 12px rgba(0,0,0,.16)`;
862
- case "high": return soft ? `${xOffset}px 25px 50px rgba(0,0,0,.18)` : `${xOffset}px 20px 30px rgba(0,0,0,.28)`;
863
- }
864
- }
865
- //#endregion
866
- //#region ../theme-core/src/cards/decorations.ts
867
- const CARD_EDGE_RULE_WIDTH_MAP = {
868
- hairline: "1px",
869
- thin: "2px",
870
- medium: "3px",
871
- thick: "4px",
872
- heavy: "5px"
873
- };
874
- const CARD_EDGE_BORDER_PROPERTY_MAP = {
875
- left: "border-left",
876
- top: "border-top",
877
- right: "border-right",
878
- bottom: "border-bottom"
879
- };
880
- /**
881
- * The one short-rule length in the corpus (the editorial-rule accent). A fixed
882
- * constant keeps `length: 'short'` a semantic choice rather than a free number.
883
- */
884
- const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
885
- function isFullLength(rule) {
886
- return (rule.length ?? "full") === "full";
887
- }
888
- /** Apply a decoration's optional alpha to its resolved colour. */
889
- function cardDecorationColor(rule, resolveColor) {
890
- const color = resolveColor(rule.colorToken);
891
- if (rule.alpha === void 0 || rule.alpha >= 1) return color;
892
- return `color-mix(in oklab, ${color}, transparent ${Math.round((1 - rule.alpha) * 100)}%)`;
893
- }
894
- /**
895
- * Container border declarations for a variant's border and its full-length
896
- * edge rules. The two are independent: a card may be outlined *and* carry an
897
- * accent edge. A variant with edge rules and no border still zeroes the box so
898
- * only the decorated sides draw.
899
- */
900
- function cardBorderDeclarations(borderDeclaration, decorations, resolveColor) {
901
- const fullLengthRules = (decorations ?? []).filter(isFullLength);
902
- const declarations = [];
903
- if (borderDeclaration) declarations.push(borderDeclaration);
904
- else if (fullLengthRules.length > 0) declarations.push("border: 0");
905
- for (const rule of fullLengthRules) {
906
- const side = CARD_EDGE_BORDER_PROPERTY_MAP[rule.edge];
907
- const width = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
908
- declarations.push(`${side}: ${width} solid ${cardDecorationColor(rule, resolveColor)}`);
909
- }
910
- return declarations;
911
- }
912
- function horizontalAlignDeclarations(align) {
913
- switch (align ?? "start") {
914
- case "start": return ["left: 0"];
915
- case "center": return ["left: 50%", "transform: translateX(-50%)"];
916
- case "end": return ["right: 0"];
917
- }
918
- }
919
- function verticalAlignDeclarations(align) {
920
- switch (align ?? "start") {
921
- case "start": return ["top: 0"];
922
- case "center": return ["top: 50%", "transform: translateY(-50%)"];
923
- case "end": return ["bottom: 0"];
924
- }
925
- }
926
- function shortEdgeRuleDeclarations(rule, resolveColor) {
927
- const thickness = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
928
- const isHorizontal = rule.edge === "top" || rule.edge === "bottom";
929
- return [
930
- "content: \"\"",
931
- "position: absolute",
932
- `${rule.edge}: 0`,
933
- ...isHorizontal ? horizontalAlignDeclarations(rule.align) : verticalAlignDeclarations(rule.align),
934
- `width: ${isHorizontal ? SHORT_CARD_EDGE_RULE_LENGTH : thickness}`,
935
- `height: ${isHorizontal ? thickness : SHORT_CARD_EDGE_RULE_LENGTH}`,
936
- `background: ${cardDecorationColor(rule, resolveColor)}`
937
- ];
938
- }
939
- /**
940
- * The pseudo-elements a card container can lend to short edge rules. A short
941
- * rule cannot be a border, so it is drawn on `::before` / `::after` against the
942
- * container (which always sets `position: relative`) — and a card has exactly
943
- * two of those.
944
- */
945
- const CARD_DECORATION_PSEUDOS = ["::before", "::after"];
946
- /**
947
- * Complete pseudo-element rules for a variant's short edge rules.
948
- *
949
- * `cardDecorationsSchema` caps the list at two, which makes the two pseudos
950
- * sufficient for anything that parsed. The dependency-free core types carry a
951
- * plain array with no such cap, so short rules past the second are dropped
952
- * here rather than silently overwriting `::after`.
953
- */
954
- function cardDecorationPseudoRules(containerSelectors, decorations, resolveColor) {
955
- const shortRules = (decorations ?? []).filter((rule) => !isFullLength(rule));
956
- return CARD_DECORATION_PSEUDOS.flatMap((pseudo, index) => {
957
- const rule = shortRules[index];
958
- if (!rule) return [];
959
- return [`${containerSelectors.map((containerSelector) => `${containerSelector}${pseudo}`).join(",\n")} {\n ${shortEdgeRuleDeclarations(rule, resolveColor).join(";\n ")};\n}`];
960
- });
961
- }
962
- //#endregion
963
- //#region ../theme-core/src/utils/cssDeclarations.ts
964
- /** Render CSS declarations whether callers provide terminators or fragments. */
965
- function renderCssDeclarations(declarations) {
966
- return declarations.map((declaration) => declaration.endsWith(";") ? declaration : `${declaration};`).join("\n ");
967
- }
968
- //#endregion
969
- //#region ../theme-core/src/cards/generateCardCss.ts
970
- const PER_CORNER_RADIUS_MAP = {
971
- square: "0",
972
- soft: "0.5rem",
973
- rounded: "1rem",
974
- pill: "1.5rem",
975
- expressive: "calc(var(--rb-block-radius) * 3)"
976
- };
977
- function resolveCornerRadiiCss(cornerRadii, fallback) {
978
- const fallbackValue = CORNER_RADIUS_MAP[fallback];
979
- const at = (value) => value ? PER_CORNER_RADIUS_MAP[value] : fallbackValue;
980
- return `${at(cornerRadii.topLeft)} ${at(cornerRadii.topRight)} ${at(cornerRadii.bottomRight)} ${at(cornerRadii.bottomLeft)}`;
981
- }
982
- function generateCardCss(options) {
983
- const { themeId, cardSystem: providedCardSystem, solvedInks } = options;
984
- const theme = {
985
- ...options.theme,
986
- buttons: ownedThemeSnapshot(options.theme.buttons)
987
- };
988
- const tokens = new TokenResolver(theme);
989
- const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
990
- const cardSystem = providedCardSystem ?? generateDefaultCardSystem(theme);
991
- const source = providedCardSystem ? "site-style" : "generated-baseline";
992
- const aliasGroups = resolveRoleAliasGroups(theme, providedCardSystem ?? null);
993
- const cssChunks = [];
994
- const emittedGroupKeys = /* @__PURE__ */ new Set();
995
- for (const variant of cardSystem.variants) {
996
- if (!variant.enabled) continue;
997
- const groupKey = roleAliasGroupKey(source, variant.id);
998
- emittedGroupKeys.add(groupKey);
999
- const aliasClasses = aliasGroups.get(groupKey)?.classes ?? [];
1000
- cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette, solvedInks));
1001
- }
1002
- for (const [groupKey, group] of aliasGroups) {
1003
- if (emittedGroupKeys.has(groupKey)) continue;
1004
- cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette, solvedInks));
1005
- }
1006
- return cssChunks.filter(Boolean).join("\n\n");
1007
- }
1008
- function roleAliasGroupKey(source, variantId) {
1009
- return `${source}:${variantId}`;
1010
- }
1011
- /**
1012
- * Stable per-theme role aliases (`.card-role-default` and friends), resolved
1013
- * through the fallback chain so compiled content can address a role without
1014
- * knowing which variant id a site style used — or whether it defined one.
1015
- *
1016
- * Aliases are grouped by the variant they resolve to, so an alias shares one
1017
- * rule with that variant rather than duplicating its declarations.
1018
- */
1019
- function resolveRoleAliasGroups(theme, cardSystem) {
1020
- const groups = /* @__PURE__ */ new Map();
1021
- for (const role of surfaceCardRoleValues) {
1022
- const resolved = resolveCardRole(theme, cardSystem, role);
1023
- if (resolved.kind === "none") continue;
1024
- const groupKey = roleAliasGroupKey(resolved.source, resolved.variant.id);
1025
- const aliasClass = `card-role-${role}`;
1026
- const group = groups.get(groupKey);
1027
- if (group) group.classes.push(aliasClass);
1028
- else groups.set(groupKey, {
1029
- variant: resolved.variant,
1030
- classes: [aliasClass]
1031
- });
1032
- }
1033
- return groups;
1034
- }
1035
- /**
1036
- * Padding map for card content based on spacing semantic values
1037
- */
1038
- const CONTENT_PADDING_MAP = {
1039
- none: "0",
1040
- compact: "0.75rem",
1041
- cozy: "1rem",
1042
- medium: "1.25rem",
1043
- comfortable: "1.5rem",
1044
- spacious: "2rem"
1045
- };
1046
- /**
1047
- * Corner radius map for card media (top corners only). Match card surface
1048
- * radii rather than button pills so media does not become capsule-clipped.
1049
- */
1050
- const MEDIA_CORNER_MAP = {
1051
- square: "0",
1052
- soft: "0.5rem",
1053
- rounded: "1rem",
1054
- pill: "1.5rem"
1055
- };
1056
- /**
1057
- * Generate CSS for a single card variant
1058
- *
1059
- * Generates complete CSS for card containers and their children:
1060
- * - Container: background, shadow, corners, border
1061
- * - .card-media: top corners matching container
1062
- * - .card-content: padding based on spacing
1063
- *
1064
- * This CSS-first approach eliminates runtime transforms for styling,
1065
- * keeping transforms only for data normalization and dynamic layout.
1066
- */
1067
- function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette, solvedInks) {
1068
- const selectorsFor = (suffix) => cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}${suffix}`).join(",\n");
1069
- const containerSelectors = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}`);
1070
- const containerSelector = containerSelectors.join(",\n");
1071
- const mediaSelector = selectorsFor(" .card-media");
1072
- const contentSelector = selectorsFor(" .card-content");
1073
- const fallbackBackgroundSelector = selectorsFor(" > .rb-bg-surface");
1074
- const rules = [];
1075
- rules.push(...cardSurfaceRules(variant, tokens, theme, palette, solvedInks));
1076
- const resolveColor = (token) => tokens.getColor(token);
1077
- rules.push(...cardBorderDeclarations(variant.border ? borderDeclaration(variant.border, tokens) : null, variant.decorations, resolveColor));
1078
- const corners = variant.corners ?? theme.corners;
1079
- const radius = variant.cornerRadii ? resolveCornerRadiiCss(variant.cornerRadii, corners) : CORNER_RADIUS_MAP[corners];
1080
- rules.push(`border-radius: ${radius}`);
1081
- const shadow = variant.shadow ?? theme.shadow;
1082
- if (shadow.elevation !== "none") {
1083
- const shadowValue = generateShadowValue(shadow);
1084
- rules.push(`box-shadow: ${shadowValue}`);
1085
- }
1086
- const structureSelector = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) :where(.${cardClass})`).join(",\n");
1087
- const mediaRadius = MEDIA_CORNER_MAP[corners];
1088
- const mediaRules = [`border-top-left-radius: ${mediaRadius}`, `border-top-right-radius: ${mediaRadius}`];
1089
- const contentRules = [`padding: ${resolveContentPadding(variant)}`];
1090
- return [
1091
- `${structureSelector} {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: visible;\n}`,
1092
- `${containerSelector} {\n ${renderCssDeclarations(rules)}\n}`,
1093
- ...cardDecorationPseudoRules(containerSelectors, variant.decorations, resolveColor),
1094
- `${fallbackBackgroundSelector} {\n background: transparent;\n}`,
1095
- `${mediaSelector} {\n ${mediaRules.join(";\n ")};\n}`,
1096
- `${contentSelector} {\n ${contentRules.join(";\n ")};\n}`
1097
- ].join("\n\n");
1098
- }
1099
- function cardSurfaceRules(variant, tokens, theme, palette, solvedInks) {
1100
- if (variant.background.type === "transparent") return ["background: transparent"];
1101
- const surface = resolveSurface({
1102
- kind: "paint",
1103
- paint: cardSurfacePaint(variant)
1104
- }, {
1105
- palette,
1106
- buttonSystem: theme.buttons,
1107
- linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
1108
- solvedInks
1109
- });
1110
- return [cardBackgroundRule(variant.background, tokens), ...opaqueSurfaceDeclarations(surface)];
1111
- }
1112
- function cardSurfacePaint(variant) {
1113
- switch (variant.background.type) {
1114
- case "transparent": return { kind: "transparent" };
1115
- case "solid": return {
1116
- kind: "solid",
1117
- token: variant.background.colorToken,
1118
- foregroundToken: variant.foregroundToken
1119
- };
1120
- case "gradient": return {
1121
- kind: "gradient",
1122
- foregroundToken: variant.foregroundToken
1123
- };
1124
- }
1125
- }
1126
- function cardBackgroundRule(background, tokens) {
1127
- if (background.type === "solid") return `background: ${tokens.getColor(background.colorToken)}`;
1128
- const from = tokens.getColor(background.fromToken);
1129
- const to = tokens.getColor(background.toToken);
1130
- return `background: linear-gradient(${GRADIENT_DIRECTION_MAP[background.direction] || "to right"}, ${from}, ${to})`;
1131
- }
1132
- function borderDeclaration(border, tokens) {
1133
- const borderColor = tokens.getColor(border.colorToken);
1134
- return `border: ${border.widthClass === "border-4" ? "4px" : border.widthClass === "border-2" ? "2px" : border.widthClass === "border" ? "1px" : "1px"} solid ${borderColor}`;
1135
- }
1136
- function paddingFor(spacing) {
1137
- return CONTENT_PADDING_MAP[spacing] || CONTENT_PADDING_MAP.comfortable;
1138
- }
1139
- /** A card's padding: one value for both axes, or one per axis. */
1140
- function resolveContentPadding(variant) {
1141
- const spacing = variant.spacing;
1142
- return typeof spacing === "string" ? paddingFor(spacing) : `${paddingFor(spacing.block)} ${paddingFor(spacing.inline)}`;
1143
- }
1144
- //#endregion
1145
822
  //#region ../theme-core/src/site-styles/resolver.ts
1146
823
  const repairActionsByIssueKind = {
1147
824
  "missing-block-design-capability": ["fallback-block-design"],
@@ -1159,8 +836,7 @@ const repairActionsByIssueKind = {
1159
836
  "unsupported-block-composition": ["remove-composition"],
1160
837
  "image-surface-treatment-without-image-surface": ["fallback-image-surface-treatment"],
1161
838
  "image-surface-motion-without-image-surface": ["fallback-image-surface-motion"],
1162
- "hero-legibility-overridden-by-image-surface-treatment": ["remove-hero-legibility"],
1163
- "hero-image-without-legibility": ["fallback-hero-legibility"]
839
+ "hero-image-without-treatment": ["fallback-image-surface-treatment"]
1164
840
  };
1165
841
  function repairActionsForIssue(issueKind) {
1166
842
  return repairActionsByIssueKind[issueKind];
@@ -1196,14 +872,13 @@ function supportsBlockComposition(capability, composition) {
1196
872
  case "feature-cards": return supported.kind === "feature-cards" && supported.treatments.includes(composition.treatment);
1197
873
  case "testimonials": return supported.kind === "testimonials" && supported.treatments.includes(composition.treatment);
1198
874
  case "offerings-preview": return supported.kind === "offerings-preview" && supported.treatments.includes(composition.treatment);
1199
- default: return assertNever$1(composition);
875
+ default: return assertNever$2(composition);
1200
876
  }
1201
877
  }
1202
878
  const blockDesignFallback = {
1203
879
  sectionSurface: "base",
1204
880
  contentFrame: plainFrame,
1205
881
  sectionHeight: "default",
1206
- heroLegibility: "none",
1207
882
  imageSurfaceTreatment: { kind: "none" },
1208
883
  imageSurfaceMotion: "static",
1209
884
  tileTreatment: "default",
@@ -1219,7 +894,6 @@ const appliedBlockDesignFallback = {
1219
894
  appliedContentFrame: blockDesignFallback.contentFrame,
1220
895
  appliedCardRole: null,
1221
896
  appliedSectionHeight: blockDesignFallback.sectionHeight,
1222
- appliedHeroLegibility: blockDesignFallback.heroLegibility,
1223
897
  appliedImageSurfaceTreatment: blockDesignFallback.imageSurfaceTreatment,
1224
898
  appliedImageSurfaceMotion: blockDesignFallback.imageSurfaceMotion,
1225
899
  appliedTileTreatment: blockDesignFallback.tileTreatment,
@@ -1244,7 +918,6 @@ function blockDesignRequest(block) {
1244
918
  contentFrame: block.contentFrame,
1245
919
  ...block.cardRole ? { cardRole: block.cardRole } : {},
1246
920
  sectionHeight: block.sectionHeight,
1247
- heroLegibility: block.heroLegibility,
1248
921
  imageSurfaceTreatment: block.imageSurfaceTreatment,
1249
922
  imageSurfaceMotion: block.imageSurfaceMotion,
1250
923
  tileTreatment: block.tileTreatment,
@@ -1263,7 +936,6 @@ function resolveBlockDesignPlan(input) {
1263
936
  let appliedContentFrame = block.contentFrame;
1264
937
  const appliedCardRole = appliedCardRoleFor(block, capability);
1265
938
  let appliedSectionHeight = block.sectionHeight ?? "default";
1266
- let appliedHeroLegibility = block.heroLegibility ?? "none";
1267
939
  let appliedImageSurfaceTreatment = block.imageSurfaceTreatment ?? { kind: "none" };
1268
940
  let appliedImageSurfaceMotion = block.imageSurfaceMotion ?? "static";
1269
941
  let appliedTileTreatment = block.tileTreatment ?? "default";
@@ -1475,48 +1147,33 @@ function resolveBlockDesignPlan(input) {
1475
1147
  allowedRepairActions: repairActionsForIssue("image-surface-treatment-without-image-surface")
1476
1148
  });
1477
1149
  }
1478
- if (appliedSectionSurface !== "hero-image" && appliedImageSurfaceMotion !== "static") {
1479
- const requested = appliedImageSurfaceMotion;
1480
- appliedImageSurfaceMotion = "static";
1481
- issues.push({
1482
- kind: "image-surface-motion-without-image-surface",
1483
- blockId: block.blockId,
1484
- blockKind: block.blockKind,
1485
- purpose: block.purpose,
1486
- requested,
1487
- fallback: appliedImageSurfaceMotion,
1488
- policy: input.policy,
1489
- severity: designIssueSeverityForPolicy(input.policy),
1490
- allowedRepairActions: repairActionsForIssue("image-surface-motion-without-image-surface")
1491
- });
1492
- }
1493
- if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind !== "none" && appliedHeroLegibility !== "none") {
1494
- const requested = appliedHeroLegibility;
1495
- appliedHeroLegibility = "none";
1150
+ if (appliedSectionSurface !== "hero-image" && appliedImageSurfaceMotion !== "static") {
1151
+ const requested = appliedImageSurfaceMotion;
1152
+ appliedImageSurfaceMotion = "static";
1496
1153
  issues.push({
1497
- kind: "hero-legibility-overridden-by-image-surface-treatment",
1154
+ kind: "image-surface-motion-without-image-surface",
1498
1155
  blockId: block.blockId,
1499
1156
  blockKind: block.blockKind,
1500
1157
  purpose: block.purpose,
1501
1158
  requested,
1502
- fallback: appliedHeroLegibility,
1159
+ fallback: appliedImageSurfaceMotion,
1503
1160
  policy: input.policy,
1504
1161
  severity: designIssueSeverityForPolicy(input.policy),
1505
- allowedRepairActions: repairActionsForIssue("hero-legibility-overridden-by-image-surface-treatment")
1162
+ allowedRepairActions: repairActionsForIssue("image-surface-motion-without-image-surface")
1506
1163
  });
1507
1164
  }
1508
- if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none" && (block.heroLegibility === void 0 || appliedHeroLegibility === "none")) {
1509
- appliedHeroLegibility = "scrim-gradient";
1165
+ if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none") {
1166
+ appliedImageSurfaceTreatment = defaultHeroImageSurfaceTreatment;
1510
1167
  issues.push({
1511
- kind: "hero-image-without-legibility",
1168
+ kind: "hero-image-without-treatment",
1512
1169
  blockId: block.blockId,
1513
1170
  blockKind: block.blockKind,
1514
1171
  purpose: block.purpose,
1515
- requested: block.heroLegibility,
1516
- fallback: appliedHeroLegibility,
1172
+ requested: block.imageSurfaceTreatment,
1173
+ fallback: appliedImageSurfaceTreatment,
1517
1174
  policy: input.policy,
1518
1175
  severity: designIssueSeverityForPolicy(input.policy),
1519
- allowedRepairActions: repairActionsForIssue("hero-image-without-legibility")
1176
+ allowedRepairActions: repairActionsForIssue("hero-image-without-treatment")
1520
1177
  });
1521
1178
  }
1522
1179
  return {
@@ -1526,7 +1183,6 @@ function resolveBlockDesignPlan(input) {
1526
1183
  appliedCardRole,
1527
1184
  appliedSectionBackgroundPaints: capability.sectionBackgroundPaints,
1528
1185
  appliedSectionHeight,
1529
- appliedHeroLegibility,
1530
1186
  appliedImageSurfaceTreatment,
1531
1187
  appliedImageSurfaceMotion,
1532
1188
  appliedTileTreatment,
@@ -1654,7 +1310,7 @@ function resolveBrandDisplay(mode, logoFacts) {
1654
1310
  case "logo-plus-title": return "logo-plus-title";
1655
1311
  case "title-only": return "title-only";
1656
1312
  case "auto": return resolveAutoBrandDisplay(logoFacts);
1657
- default: return assertNever$1(mode, "Unhandled brand display mode");
1313
+ default: return assertNever$2(mode, "Unhandled brand display mode");
1658
1314
  }
1659
1315
  }
1660
1316
  /** Evidence that the artwork already supplies the brand's readable identity. */
@@ -1878,7 +1534,7 @@ function logoFactsForHeaderContext(logo) {
1878
1534
  case "horizontal":
1879
1535
  case "square":
1880
1536
  case "tall": return deterministicLogoFactsForShape(logo.shape);
1881
- default: return assertNever$1(logo.shape, "Unhandled header logo shape");
1537
+ default: return assertNever$2(logo.shape, "Unhandled header logo shape");
1882
1538
  }
1883
1539
  }
1884
1540
  const headerLayoutCatalog = defineExactCatalog()([
@@ -2119,7 +1775,7 @@ function compositionCapabilityFor(composition) {
2119
1775
  kind: "offerings-preview",
2120
1776
  treatments: [composition.treatment]
2121
1777
  };
2122
- default: return assertNever$1(composition);
1778
+ default: return assertNever$2(composition);
2123
1779
  }
2124
1780
  }
2125
1781
  //#endregion
@@ -2230,7 +1886,7 @@ function selectCandidate(candidates) {
2230
1886
  outcome
2231
1887
  };
2232
1888
  case "unsupported": continue;
2233
- default: return assertNever$1(outcome, "Unhandled join candidate outcome");
1889
+ default: return assertNever$2(outcome, "Unhandled join candidate outcome");
2234
1890
  }
2235
1891
  }
2236
1892
  return { kind: "exhausted" };
@@ -2250,7 +1906,7 @@ function fallbackOptionId(outcome) {
2250
1906
  switch (outcome.kind) {
2251
1907
  case "decorative": return boundaryOptionForTransitionIntent(outcome.treatment).id;
2252
1908
  case "none": return noneBoundaryOption.id;
2253
- default: return assertNever$1(outcome, "Unhandled join fallback outcome");
1909
+ default: return assertNever$2(outcome, "Unhandled join fallback outcome");
2254
1910
  }
2255
1911
  }
2256
1912
  function requiresPhoto(option) {
@@ -2828,7 +2484,7 @@ function pinnedBreakChoice(resolution) {
2828
2484
  },
2829
2485
  issues: resolution.issues
2830
2486
  };
2831
- default: return assertNever$1(resolution.pin, "Unhandled join pin status");
2487
+ default: return assertNever$2(resolution.pin, "Unhandled join pin status");
2832
2488
  }
2833
2489
  }
2834
2490
  /** The effective break as the option the editor shows; null when nothing was usable. */
@@ -3187,64 +2843,388 @@ function contentPartsCapability(block) {
3187
2843
  const contentParts = editorContentParts(block);
3188
2844
  return contentParts === void 0 ? {} : { contentParts };
3189
2845
  }
3190
- function resolvedLookPreservesPin(resolved) {
3191
- switch (resolved.kind) {
3192
- case "offered":
3193
- case "recipe": return resolved.source === "pinned";
3194
- case "style-fallback":
3195
- case "mode-mismatch": return true;
3196
- case "none": return false;
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)
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");
3092
+ }
3093
+ function roleAliasGroupKey(source, variantId) {
3094
+ return `${source}:${variantId}`;
3095
+ }
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
+ });
3197
3117
  }
3118
+ return groups;
3198
3119
  }
3199
- function editorArrangementLayoutResult(block, style, lookId, recipe) {
3200
- if (style?.looks.kind !== "offers" || lookId === null) return recipe;
3201
- if (block.variantMeaning?.kind === "mode") {
3202
- const mode = editorMode(block);
3203
- if (mode === null) return recipe;
3204
- const key = asLayoutVariantKey(mode);
3205
- return {
3206
- ...recipe,
3207
- choice: {
3208
- ...recipe.choice,
3209
- effectiveValue: key
3210
- },
3211
- selection: recipe.selection ? {
3212
- ...recipe.selection,
3213
- effectiveValue: key
3214
- } : {
3215
- kind: "selected",
3216
- value: key,
3217
- status: "supported",
3218
- effectiveValue: key
3219
- }
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
3220
3208
  };
3221
3209
  }
3222
- const key = resolveEffectiveArrangement({
3223
- look: arrangementAppearancePresets.find((entry) => entry.id === lookId),
3224
- mode: editorMode(block),
3225
- storedVariant: block.storedVariant,
3226
- manifest: {
3227
- keys: block.arrangementKeys ?? [],
3228
- defaultKey: null
3229
- }
3230
- }).key;
3231
- return key === null ? recipe : {
3232
- choice: autoEditorChoice(key),
3233
- issue: null,
3234
- selection: {
3235
- kind: "selected",
3236
- value: key,
3237
- status: "supported",
3238
- effectiveValue: key
3239
- }
3240
- };
3241
3210
  }
3242
- function editorLookOptionsForSection(input) {
3243
- const layout = editorEffectiveLayout(input);
3244
- return input.siteStyle?.looks.kind === "offers" || layout.kind === "none" ? lookOptionsForBlock({
3245
- ...input,
3246
- effectiveLayoutProfile: null
3247
- }) : 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)}`;
3248
3228
  }
3249
3229
  //#endregion
3250
3230
  //#region ../theme-core/src/header/legacyNavLinkStyle.ts
@@ -4657,6 +4637,20 @@ const opaquePanels = [
4657
4637
  kind: "solid",
4658
4638
  token: "surface"
4659
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
+ }
4660
4654
  }
4661
4655
  ];
4662
4656
  /**
@@ -5951,77 +5945,26 @@ const NAV_RENDERED_STATES = [
5951
5945
  function isNavHover(state) {
5952
5946
  return state === "hover" || state === "current-hover";
5953
5947
  }
5954
- function isCurrent(state) {
5955
- return state === "current" || state === "current-hover";
5956
- }
5957
- /** Mirrors the historical emitters: every group writes a base gradient and hover opacity;
5958
- * active groups additionally write the more specific current-page selector. */
5948
+ /** Project the emitted declarations into the four disjoint nav states. */
5959
5949
  function resolveRenderedNavEffects(effects, state) {
5960
- const applications = [
5961
- "base",
5962
- "hover",
5963
- "active",
5964
- "focus"
5965
- ].flatMap((group) => (effects?.[group] ?? []).map((effect) => ({
5966
- effect,
5967
- group
5968
- })));
5969
- const opacity = winner(applications.filter(({ effect }) => effect.effectId === "fade-background" || effect.effectId === "opacity-reduce").flatMap((app) => opacityCandidates(app, 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"));
5970
5960
  return {
5971
- text: winner(applications.filter(({ effect }) => effect.effectId === "gradient-text").flatMap((app) => textCandidates(app, state))),
5972
- opacity: opacity ? authoredOpacity(opacity) : null
5973
- };
5974
- }
5975
- function authoredOpacity(effect) {
5976
- const options = effect.options ?? {};
5977
- const opacity = effect.effectId === "fade-background" ? Number(options.opacity || 80) / 100 : 1 - Number(options.reduction || 15) / 100;
5978
- return Number.isFinite(opacity) && opacity >= 0 && opacity <= 1 ? opacity : null;
5979
- }
5980
- function textCandidates(app, state) {
5981
- const gradient = {
5982
- effect: app.effect,
5983
- fill: "gradient"
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
5984
5963
  };
5985
- const solid = {
5986
- effect: app.effect,
5987
- fill: "solid"
5988
- };
5989
- const solidOnHover = app.effect.options?.solidOnHover === true || app.effect.options?.solidOnHover === "true";
5990
- const hover = isNavHover(state) && solidOnHover ? [{
5991
- value: solid,
5992
- specificity: 2
5993
- }] : [];
5994
- const currentHover = isNavHover(state) && solidOnHover ? [{
5995
- value: solid,
5996
- specificity: 3
5997
- }] : [];
5998
- const current = isCurrent(state) && app.group === "active" ? [{
5999
- value: gradient,
6000
- specificity: 2
6001
- }, ...currentHover] : [];
6002
- return [
6003
- {
6004
- value: gradient,
6005
- specificity: 1
6006
- },
6007
- ...hover,
6008
- ...current
6009
- ];
6010
- }
6011
- function opacityCandidates(app, state) {
6012
- if (!isNavHover(state)) return [];
6013
- const current = isCurrent(state) && app.group === "active" ? [{
6014
- value: app.effect,
6015
- specificity: 3
6016
- }] : [];
6017
- return [{
6018
- value: app.effect,
6019
- specificity: 2
6020
- }, ...current];
6021
5964
  }
6022
5965
  /** Later declarations win equal specificity, just as they do in the emitted CSS. */
6023
5966
  function winner(candidates) {
6024
- 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;
6025
5968
  }
6026
5969
  //#endregion
6027
5970
  //#region ../theme-core/src/header/navEffectPaint.ts
@@ -6085,7 +6028,7 @@ function planText(text, plainInk, state, context) {
6085
6028
  rules: [],
6086
6029
  inks: [plainInk]
6087
6030
  };
6088
- const stops = renderedTextStops(text, context.palette);
6031
+ const stops = text.tokens.map((token) => resolveConcreteColorHex(token, context.palette));
6089
6032
  if (decideNavEffectContrast(context.paint, plainInk, {
6090
6033
  effect: "gradient-text",
6091
6034
  option: stops,
@@ -6107,15 +6050,6 @@ function planText(text, plainInk, state, context) {
6107
6050
  } : null)
6108
6051
  };
6109
6052
  }
6110
- function renderedTextStops(text, palette) {
6111
- if (text.fill === "solid") return [resolveConcreteColorHex("neutral-50", palette)];
6112
- const colors = text.effect.options?.gradientColors;
6113
- return (typeof colors === "string" && colors ? colors.split(",").map((token) => token.trim()) : [
6114
- "primary-400",
6115
- "secondary-400",
6116
- "accent-400"
6117
- ]).map((token) => resolveConcreteColorHex(token, palette));
6118
- }
6119
6053
  function opacityRules(authored, inks, paint) {
6120
6054
  if (authored === null || inks.length === 0 || inks.some((ink) => ink === null)) return [];
6121
6055
  const decisions = inks.map((ink) => decideNavEffectContrast(paint, ink, {
@@ -6146,25 +6080,30 @@ function resolveInk(reference, palette) {
6146
6080
  //#endregion
6147
6081
  //#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
6148
6082
  function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
6149
- const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
6083
+ const style = resolvedHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
6150
6084
  if (!style) {
6151
6085
  console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
6152
6086
  return "";
6153
6087
  }
6154
- const renderedStyle = mergeHeaderNavTypographyPreference(style, {
6155
- typography: header.navFontRole ?? "inherit",
6156
- fontSize: readHeaderNavFontSizePreference(header.navTextSize),
6157
- interactionPalette: header.interactionPalette ?? "recommended"
6158
- });
6159
6088
  return generateNavLinkCSS({
6160
6089
  themeId,
6161
6090
  tokens,
6162
6091
  theme,
6163
- style: renderedStyle,
6092
+ style,
6164
6093
  className: "header-nav-link",
6165
6094
  surfaceDependent: true,
6166
6095
  surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
6167
- }) + 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
+ });
6168
6107
  }
6169
6108
  //#endregion
6170
6109
  //#region ../theme-core/src/header/generateHeaderLogoStyles.ts
@@ -6236,7 +6175,8 @@ function generateHeaderCss(options) {
6236
6175
  cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
6237
6176
  const dropdown = resolveDropdownSurface(header, theme, tokens, solvedInks);
6238
6177
  cssChunks.push(generateDropdownContainerStyles(themeId, tokens, dropdown));
6239
- 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));
6240
6180
  cssChunks.push(generateDropdownCaretStyles(themeId));
6241
6181
  cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
6242
6182
  cssChunks.push(generateMobilePanelStyles(themeId, dropdown));
@@ -6365,16 +6305,37 @@ function dropdownLinkEffects({ linkFill, linkText }, state) {
6365
6305
  options: { hoverColorToken: text }
6366
6306
  }] : []];
6367
6307
  }
6368
- function dropdownNavLinkStyle(header, surface) {
6369
- const style = surface.style;
6370
- 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) {
6371
6333
  return {
6372
6334
  name: "Dropdown",
6373
- typography: "body",
6374
- fontWeight: style?.fontWeight ?? header.navWeight ?? "medium",
6375
- textTransform: style?.textTransform ?? "none",
6335
+ ...dropdownTypeFromNav(surface.style, navLinkStyle),
6336
+ fontWeight: surface.style?.fontWeight ?? header.navWeight ?? "medium",
6376
6337
  italic: false,
6377
- colorToken: textToken,
6338
+ colorToken: surface.textToken,
6378
6339
  padding: "compact",
6379
6340
  borderRadius: "sm",
6380
6341
  effects: {
@@ -6398,12 +6359,12 @@ function dropdownTypographyRules(style) {
6398
6359
  };
6399
6360
  return [...letterSpacing === "normal" ? [] : [`letter-spacing: ${spacing[letterSpacing]};`], `font-size: ${sizes[style?.textSize ?? "sm"]};`];
6400
6361
  }
6401
- function generateDropdownLinkStyles(header, themeId, tokens, theme, surface) {
6362
+ function generateDropdownLinkStyles(header, themeId, tokens, theme, surface, navLinkStyle) {
6402
6363
  return generateNavLinkCSS({
6403
6364
  themeId,
6404
6365
  tokens,
6405
6366
  theme,
6406
- style: dropdownNavLinkStyle(header, surface),
6367
+ style: dropdownNavLinkStyle(header, surface, navLinkStyle),
6407
6368
  className: "nav-dropdown-link"
6408
6369
  }) + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${dropdownTypographyRules(surface.style).join("\n ")}\n}\n`;
6409
6370
  }
@@ -6709,6 +6670,11 @@ const waveMaskSvgPaths = {
6709
6670
  */
6710
6671
  const arcShapePath = "M0 110V60Q720 -30 1440 60V110Z";
6711
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
+ }
6712
6678
  function arcMaskDataUrl(echo) {
6713
6679
  const lines = arcEchoLinePaths.map((d) => `<path d='${d}' fill='none' stroke='url(#fade)' stroke-width='1.5' vector-effect='non-scaling-stroke'/>`).join("");
6714
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>`);
@@ -6817,7 +6783,7 @@ function shapeDeclarations(entry) {
6817
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%);"
6818
6784
  ];
6819
6785
  case "wave": return maskDeclarations(waveMaskDataUrl(entry.shape.mask));
6820
- 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);"];
6821
6787
  case "angle": return [
6822
6788
  "height: calc(var(--boundary-height) + 2px);",
6823
6789
  "background: var(--boundary-shape-paint);",
@@ -6898,21 +6864,46 @@ function generateHeroTypographyCss(themeId, theme) {
6898
6864
  if (microSubheadlineRules.length > 0) chunks.push(`${microSubheadlineSelector} {\n ${microSubheadlineRules.join("\n ")}\n}`);
6899
6865
  const selectors = {
6900
6866
  headline: headlineSelector,
6901
- subheadline: subheadlineSelector
6867
+ subheadline: subheadlineSelector,
6868
+ microHeadline: microHeadlineSelector,
6869
+ microSubheadline: microSubheadlineSelector
6870
+ };
6871
+ const microSizes = {
6872
+ headlineSize: typography.microHeadlineSize,
6873
+ subheadlineSize: typography.microSubheadlineSize
6902
6874
  };
6903
- const responsiveChunks = [responsiveHeroTypographyCss(MQ_TABLET_ONLY, selectors, typography.responsive?.tablet), responsiveHeroTypographyCss(MQ_SM_DOWN, selectors, typography.responsive?.mobile)];
6875
+ const responsiveChunks = [responsiveHeroTypographyCss(MQ_TABLET_ONLY, selectors, typography.responsive?.tablet, microSizes), responsiveHeroTypographyCss(MQ_SM_DOWN, selectors, typography.responsive?.mobile, microSizes)];
6904
6876
  for (const chunk of responsiveChunks) if (chunk) chunks.push(chunk);
6905
6877
  return chunks.join("\n\n");
6906
6878
  }
6907
- function responsiveHeroTypographyCss(media, selectors, overrides) {
6879
+ function responsiveHeroTypographyCss(media, selectors, overrides, microSizes) {
6908
6880
  if (!overrides) return null;
6909
6881
  const headlineRules = buildTypographyRules("headline", overrides.headlineSize, overrides.headlineLineHeight);
6910
6882
  const subheadlineRules = buildTypographyRules("subheadline", overrides.subheadlineSize, overrides.subheadlineLineHeight);
6911
6883
  const mediaChunks = [];
6912
6884
  if (headlineRules.length > 0) mediaChunks.push(`${selectors.headline} {\n ${headlineRules.join("\n ")}\n }`);
6913
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
+ }
6914
6896
  return mediaChunks.length > 0 ? `@media ${media} {\n ${mediaChunks.join("\n\n ")}\n}` : null;
6915
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
+ }
6916
6907
  function buildTypographyRules(role, size, lineHeight) {
6917
6908
  const rules = [];
6918
6909
  if (size) rules.push(`font-size: ${toHeroSize(role, size)};`);
@@ -6936,6 +6927,17 @@ function generateBodyTextTypographyCss(themeId, theme) {
6936
6927
  }`);
6937
6928
  return chunks.join("\n\n");
6938
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
+ ];
6939
6941
  function toHeroSize(role, size) {
6940
6942
  const baseMap = {
6941
6943
  sm: "0.875rem",
@@ -10483,7 +10485,8 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
10483
10485
  renderSourceSchema: deriveStrictContentZodFromPlans(plans, "render-source"),
10484
10486
  writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
10485
10487
  if (options.unknownFields !== "reject") return;
10486
- 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) => {
10487
10490
  ctx.addIssue({
10488
10491
  code: "custom",
10489
10492
  path,
@@ -18199,7 +18202,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
18199
18202
  intent: "content",
18200
18203
  visibleWhen: {
18201
18204
  field: "$root.variant",
18202
- equals: "sequence"
18205
+ oneOf: ["sequence", "index"]
18203
18206
  }
18204
18207
  }
18205
18208
  },
@@ -23847,7 +23850,7 @@ const systemBlockDefinitions = [
23847
23850
  flow: transactionalFlow,
23848
23851
  layoutProfiles: []
23849
23852
  })),
23850
- withDesignCapability("block.gifting", giftingBlockDefinition, sectionOnly(), defineBlockDesignMetadata({
23853
+ withDesignCapability("block.gifting", giftingBlockDefinition, withLookCapability(sectionOnly()), defineBlockDesignMetadata({
23851
23854
  flow: conversionFlow,
23852
23855
  layoutProfiles: [layoutProfile({
23853
23856
  variantKey: "default",
@@ -24764,8 +24767,7 @@ const eventCalendarReadEnabled = {
24764
24767
  summary: "Choose the read projection required by the calendar display mode",
24765
24768
  schema: readJobSchema,
24766
24769
  run(value, options) {
24767
- const plan = resolveEventCalendarReadPlan(asPartialObject(value) ?? {});
24768
- return plan.jobs === options.job || plan.jobs === "both" && options.job !== "schedule";
24770
+ return resolveEventCalendarReadPlan(asPartialObject(value) ?? {}).jobs === options.job;
24769
24771
  }
24770
24772
  };
24771
24773
  /**
@@ -24814,7 +24816,7 @@ const defaultTransforms = createTransformRegistry([
24814
24816
  kind: "formatter",
24815
24817
  run(value) {
24816
24818
  const content = asPartialObject(value) ?? {};
24817
- return content.emptyBehavior === "hide" && eventReadinessLoaderKey(content) !== "schedule";
24819
+ return blockChecksForEvents(content) && eventReadinessLoaderKey(content) !== "schedule";
24818
24820
  }
24819
24821
  },
24820
24822
  {
@@ -25026,7 +25028,7 @@ function resolveLinkedContentEditSupport(contentType) {
25026
25028
  kind: "unsupported-domain-backed",
25027
25029
  reason: metadata.reason
25028
25030
  };
25029
- default: return assertNever$2(metadata);
25031
+ default: return assertNever$1(metadata);
25030
25032
  }
25031
25033
  }
25032
25034
  function contentTypeKeyToLabel(key) {
@@ -25263,7 +25265,7 @@ function previewEditableTargetToPath(target) {
25263
25265
  case "current-entry-field":
25264
25266
  case "current-entry-metadata": return target.path;
25265
25267
  case "read-only": return;
25266
- default: return assertNever$2(target);
25268
+ default: return assertNever$1(target);
25267
25269
  }
25268
25270
  }
25269
25271
  function previewEditableTargetToFieldKey(target) {
@@ -26201,8 +26203,10 @@ function bindItemSurfacePresentation(node, context) {
26201
26203
  if (!isPlainObject$1(content) || !isPlainObject$1(content._effectiveLook)) return context;
26202
26204
  const look = content._effectiveLook;
26203
26205
  if (!look.surfacePresentation) return context;
26204
- const repeater = context.scopes.reduce((found, scope) => scope.repeater ?? found, void 0);
26205
- 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;
26206
26210
  return {
26207
26211
  ...context,
26208
26212
  surfacePresentation: selectItemSurfacePresentation(look.surfacePresentation, role)
@@ -26366,7 +26370,7 @@ function collectNestedPreviewFieldConstraintEntries(field, path) {
26366
26370
  case "text":
26367
26371
  case "time":
26368
26372
  case "url": return [];
26369
- default: return assertNever$2(field);
26373
+ default: return assertNever$1(field);
26370
26374
  }
26371
26375
  }
26372
26376
  /** Share the supplied snapshot with transforms and manifest bindings, including standalone components. */
@@ -26715,7 +26719,7 @@ function sourceLabel(source) {
26715
26719
  case "managed-database": return "DB";
26716
26720
  case "sdk-synced": return "SDK-synced DB";
26717
26721
  case "sdk-config": return "SDK config";
26718
- default: return assertNever$2(source);
26722
+ default: return assertNever$1(source);
26719
26723
  }
26720
26724
  }
26721
26725
  //#endregion
@@ -26943,7 +26947,7 @@ function planBlock(block, renderableContent, resolveTarget, audience, siteStyleI
26943
26947
  }
26944
26948
  function renderableBlockPlan(common, target, audience, siteStyleId) {
26945
26949
  const { definition, systemDefinition, override } = target;
26946
- const renderableContent = planArrangementContent(common.block.kind, definition.manifest, common.renderableContent, audience);
26950
+ const { renderableContent, ownerEditableContent } = planArrangementBlockContent(common.block.kind, definition.manifest, common.renderableContent, audience);
26947
26951
  const effectiveArrangementKey = resolveEffectiveArrangement({
26948
26952
  manifest: arrangementManifestFromVariants(definition.manifest),
26949
26953
  ...definition.manifest.variantMeaning.kind !== "mode" ? { look: effectiveLookFromContent(renderableContent)?.look } : {},
@@ -26955,6 +26959,7 @@ function renderableBlockPlan(common, target, audience, siteStyleId) {
26955
26959
  }).key;
26956
26960
  return {
26957
26961
  ...common,
26962
+ ownerEditableContent,
26958
26963
  renderableContent,
26959
26964
  kind: "renderable",
26960
26965
  definition,
@@ -27054,8 +27059,14 @@ function effectiveLookFromContent(content) {
27054
27059
  return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
27055
27060
  }
27056
27061
  function planArrangementContent(blockKind, manifest, authored, audience) {
27062
+ return planArrangementBlockContent(blockKind, manifest, authored, audience).renderableContent;
27063
+ }
27064
+ function planArrangementBlockContent(blockKind, manifest, authored, audience) {
27057
27065
  const runtime = arrangementRuntime(authored);
27058
- if (!runtime) return authored;
27066
+ if (!runtime) return {
27067
+ renderableContent: authored,
27068
+ ownerEditableContent: authored
27069
+ };
27059
27070
  const spacingHook = authoredSectionSpacingHook(authored);
27060
27071
  const content = withoutSectionSpacing(authored);
27061
27072
  const mode = readStoredMode({
@@ -27063,7 +27074,10 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
27063
27074
  variantMeaning: manifest.variantMeaning
27064
27075
  }, content);
27065
27076
  const effective = resolveArrangementContentLook(runtime, mode, content, audience);
27066
- if (!effective) return content;
27077
+ if (!effective) return {
27078
+ renderableContent: content,
27079
+ ownerEditableContent: content
27080
+ };
27067
27081
  const { facts } = arrangementContentFacts(content);
27068
27082
  const { length, knobs } = resolveArrangementKnobs({
27069
27083
  blockKind,
@@ -27077,7 +27091,7 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
27077
27091
  manifest,
27078
27092
  arrangementLook: true
27079
27093
  }), ["look"]);
27080
- 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);
27081
27095
  const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
27082
27096
  const photoCount = arrangementContentFacts({
27083
27097
  ...activeContent,
@@ -27085,28 +27099,31 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
27085
27099
  ...photoContent
27086
27100
  }).photoCount + lookPartPhotoCount(blockKind, activeContent, effective.look.structure.byMode[mode ?? "default"] ?? null);
27087
27101
  return {
27088
- ...activeContent,
27089
- ...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
27090
- ...mode !== null ? { variant: mode } : {},
27091
- ...effectiveContent,
27092
- ...photoContent,
27093
- ...arrangementMediaFrameContent(blockKind, effective, values, authored),
27094
- ...arrangementPanelContent(activeContent, effective, mode),
27095
- ...arrangementQuoteContent(blockKind, effective, values),
27096
- _arrangementLooks: runtime,
27097
- _effectiveLook: effective,
27098
- _lookHooks: {
27099
- ...arrangementContentHooks(effective, mode, length, {
27100
- ...facts.content,
27101
- photo: photoCount > 0
27102
- }, values, photoCount),
27103
- ...spacingHook
27104
- },
27105
- _effectiveKnobs: knobs,
27106
- _lookOwnedPaths: lookOwnedPaths,
27107
- _lookAudience: audience,
27108
- _lookSlots: arrangementContentSlots(blockKind),
27109
- 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
+ }
27110
27127
  };
27111
27128
  }
27112
27129
  /**
@@ -27150,7 +27167,10 @@ function arrangementMediaFrameContent(blockKind, look, knobs, authored) {
27150
27167
  return frame.kind === "fixed" ? {
27151
27168
  aspectRatio: frame.aspectRatio,
27152
27169
  _lookMediaFrame: frame
27153
- } : { aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio };
27170
+ } : {
27171
+ aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio,
27172
+ ...frame.borderRadius ? { _lookMediaFrame: frame } : {}
27173
+ };
27154
27174
  }
27155
27175
  function arrangementQuoteContent(blockKind, effective, values) {
27156
27176
  if (blockKind !== "block.testimonials") return {};
@@ -27504,7 +27524,7 @@ async function fetchAllPages(apiClient, endpoint, params, offset, seenPages) {
27504
27524
  case "invalid": throw new Error(page.message);
27505
27525
  case "complete": return page.entries;
27506
27526
  case "continue": return [...page.entries, ...await fetchAllPages(apiClient, endpoint, params, page.offset, page.seenPages)];
27507
- default: return assertNever$2(page);
27527
+ default: return assertNever$1(page);
27508
27528
  }
27509
27529
  }
27510
27530
  function isUnknownArray(value) {
@@ -28625,7 +28645,7 @@ function offeringsPreviewPhotoCount(listing) {
28625
28645
  case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
28626
28646
  case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
28627
28647
  case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
28628
- default: return assertNever$2(listing);
28648
+ default: return assertNever$1(listing);
28629
28649
  }
28630
28650
  }
28631
28651
  function groupPhotoCount(load) {
@@ -28633,14 +28653,14 @@ function groupPhotoCount(load) {
28633
28653
  case "empty":
28634
28654
  case "failed": return 0;
28635
28655
  case "items": return load.items.filter(hasPhoto).length;
28636
- default: return assertNever$2(load);
28656
+ default: return assertNever$1(load);
28637
28657
  }
28638
28658
  }
28639
28659
  function hasPhoto(item) {
28640
28660
  switch (item.kind) {
28641
28661
  case "event": return Boolean(item.event.presentation?.image);
28642
28662
  case "run": return Boolean(item.run.representative.presentation?.image);
28643
- default: return assertNever$2(item);
28663
+ default: return assertNever$1(item);
28644
28664
  }
28645
28665
  }
28646
28666
  function courseGroupPhotoCount(load) {
@@ -29052,13 +29072,15 @@ function prepareEntry(entry, input) {
29052
29072
  }
29053
29073
  }
29054
29074
  /**
29055
- * Editor admission validates raw in-flight values without minting a renderable
29056
- * 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.
29057
29080
  */
29058
29081
  function previewableEditorContent(entry) {
29059
29082
  if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
29060
- const draft = validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.renderableContent);
29061
- return draft.kind === "previewable" ? draft.data : null;
29083
+ return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.ownerEditableContent).kind === "previewable" ? entry.renderableContent : null;
29062
29084
  }
29063
29085
  function buildPreparedContent(entry, content, input) {
29064
29086
  const { dataContext } = input;
@@ -30656,7 +30678,7 @@ function solvedInksForThemeRuntime(themeRuntime) {
30656
30678
  case "cms-theme": return "publish";
30657
30679
  case "responsive-only":
30658
30680
  case "none": return "withhold";
30659
- default: return assertNever$2(themeRuntime);
30681
+ default: return assertNever$1(themeRuntime);
30660
30682
  }
30661
30683
  }
30662
30684
  function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
@@ -30671,7 +30693,7 @@ function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
30671
30693
  children
30672
30694
  });
30673
30695
  case "none": return /* @__PURE__ */ jsx(Fragment, { children });
30674
- default: return assertNever$2(themeRuntime);
30696
+ default: return assertNever$1(themeRuntime);
30675
30697
  }
30676
30698
  }
30677
30699
  function renderWithOverrideOnlyRuntime({ runtime, children }) {
@@ -30681,7 +30703,7 @@ function renderWithOverrideOnlyRuntime({ runtime, children }) {
30681
30703
  children
30682
30704
  });
30683
30705
  case "none": return /* @__PURE__ */ jsx(Fragment, { children });
30684
- default: return assertNever$2(runtime);
30706
+ default: return assertNever$1(runtime);
30685
30707
  }
30686
30708
  }
30687
30709
  //#endregion