@riverbankcms/sdk 0.172.0 → 0.173.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.
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-Bk99sJwV.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-ZlNEIvlU.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DBXPNc0h.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-BnatulTs.d.ts} +3 -3
- package/dist/_dts/{index-Dns7OHyl.d.ts → index-C611wjIL.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-CJzs-yIJ.d.ts} +2 -2
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DW3eeNph.d.ts} +4 -4
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Dq_AboWN.d.ts} +1 -1
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DutLU2d2.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-KXh8FQ2s.d.ts} +2 -2
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-Bde2y870.d.ts} +7 -7
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Bysk4QPI.d.ts} +1842 -262
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-CGa6QMgc.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +6 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DrinAfeW.d.ts → types-BoEk9ZON.d.ts} +3 -3
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-BwitGNTl.d.ts} +7 -7
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-kpp8XyXv.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-ChftKX-o.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-LHQMODqB.mjs} +13 -7
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-BewbU_cV.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +21 -21
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-CaI6upCX.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-CoRUaYHY.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-Doe4KodB.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-BmfyK7S5.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +846 -145
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-CdRPU6gp.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page-D46Dmr7b.mjs} +548 -44
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-CrSZCZn1.mjs} +82 -11
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-D4DhWo9j.mjs} +1 -20
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-P8xcfKxq.mjs} +1 -1
- package/dist/client/bookability-SargNwlO.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-BM2s-NqR.mjs} +11 -11
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-JnaZPZge.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CQQ_m0KA.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-0Q4fjw_K.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-BI0IaHX3.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-1J-3ftxF.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
- package/dist/client/client.mjs +52 -4
- package/dist/client/{context-xNC1Cyjw.mjs → context-D0KCgbOq.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-CmOuoZHN.mjs} +76 -2
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-lL-YRApN.mjs} +2462 -426
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-GuuElczW.mjs} +1314 -552
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-BJpAD10-.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-jLB8iRqp.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DO6qKH3M.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-D12ljYiX.mjs} +3 -3
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-C8QHaQOI.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-BnhfIpCa.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-BtFWtoUm.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-oHrqM_Ao.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-D5U-FuVy.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-CN0o0yjH.mjs} +115 -12
- package/dist/client/portal/client.mjs +7 -7
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-DaqM-LgL.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-CMx4-XlG.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-Cdot3dMk.mjs} +85 -57
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +24 -55
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-Cy6xXDM7.mjs} +3 -3
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-oDR76k1q.mjs} +11 -10
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-Brha4BSM.mjs} +11 -10
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CXhYl0DW.mjs} +35 -12
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-JCa_SRhP.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CZeJwMxP.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-CCAGQHsD.mjs} +5 -5
- package/dist/client/{view-B0TFnP4y.mjs → view-D6yebI4r.mjs} +51 -31
- package/dist/client/{view-DNNNbnNj.mjs → view-Sw075FOY.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-DG2rXUmo.mjs} +26 -19
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +27 -360
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-CqZCfOaz.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-Bv2HZ7JY.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +5 -55
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CrgS3I8d.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +2668 -799
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-La6MerV_.mjs} +3540 -684
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-BkckHox4.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-CPAHgGqI.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-CPV30ABr.mjs} +48 -0
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-BaMMstO1.mjs} +5 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-Dge4sqel.mjs} +4 -4
- package/dist/server/{client-dROAfMRa.mjs → client-VVIQjC4r.mjs} +51 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-BIJb3WAK.mjs} +5 -6
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-DjTU19y7.mjs} +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CytPhrI9.mjs} +143 -27
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +3 -3
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-Bhx8bVe1.mjs} +166 -67
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-BjvFb0CA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-BMCfcev6.mjs} +809 -191
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData--yUbI-Ll.mjs} +1 -1
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-D5Vfmqzw.mjs} +394 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-DAQdPDku.mjs → validation-EgTtnTcY.mjs} +4 -4
- package/dist/server/{version-DAB0O3yx.mjs → version-LjgU0Cq1.mjs} +1 -1
- package/dist/styles/index.css +174 -0
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, G as isOfferingsPreviewSourceKey, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, K as normalizeOfferingsPreviewContentForWrite, Kt as quickFactSlots, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Tn as
|
|
2
|
+
import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, En as parseContentVersionId, G as isOfferingsPreviewSourceKey, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, K as normalizeOfferingsPreviewContentForWrite, Kt as quickFactSlots, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Sn as parseMailingListPlacementTargeting, Tn as sameMailingListPlacementTargeting, Vt as cardListPresentationSchemaShape, W as groupOfferingRunsByCourse, Xt as buildEventListWeek, Y as offeringsListingFor, _n as parseHeaderPositioning, an as formatEventStartingPrice, bn as buildMailingListSignupBlockSourceRef, bt as combinedLookSchema, hn as resolveHeaderChromeRuntimeContract, mn as isHeaderScrollRuntimeEnabled, st as occurrenceContextSchema, vn as planSiteChromePlacement, vt as projectRecurringSchedule, yt as recurringScheduleProjectionSchema } from "./shop.interactive-CXhYl0DW.mjs";
|
|
3
3
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import { $a as
|
|
5
|
-
import { A as eyebrowTreatmentValues, At as
|
|
4
|
+
import { $a as arrangementStyleAvailability, $o as transitionCatalogueEntries, $s as asPageFlowPresetId, Ao as buildTextContrastShadow, As as arrangementSlotNames, Bo as sectionShapeForGround, Cc as formatBookingPriceDisplay, Co as gradientToCss, Cs as toNonEmptyReadonlyArray, Do as generateFooterCss, Ds as opaqueSurfaceDeclarations, Eo as generateDefaultCardSystem, Es as opaqueSurfaceContextFromTheme, Fo as navLinkOwnsHoverForeground, Fs as blockCustomCssRuleSchema, Go as boundaryRuntimeMetricsForDecorativeTransition, Gs as surfaceCardRoleValues, Ho as sectionShapeHook, Hs as cardVariantRoleValues, Ia as normalizeEventRegistrationPageSurfaceSubject, Io as navLinkOwnsUnderline, Is as customCssRuleSchema, Ja as lookPresentationOnPalette, Jo as noneBoundaryOption, Js as asHeaderStyleId, Ka as resolvedItemSurfaceProps, Ko as boundaryTreatmentForBoundaryOptionId, Ks as parseGradientPresetId, Mo as generateEffectsCSS, Ms as sectionStylesOverrideSchema, No as generateInteractiveChildInheritanceCSS, Ns as themeSchema, Oo as footerForegroundCandidates, Os as selectLogoVariant, Po as navLinkHoverColorCandidate, Ps as headerVariantValues, Qa as arrangementLookHooks, Qo as anglePolygonCss, Qs as asLayoutVariantKey, Ro as resolvePageDesignBlockLookChoice, Rs as boxBackgroundSchema, Sa as resolveDateRuntimeContext, Ss as testimonialsCompositionTreatmentValues, To as resolveCardRole, Ts as cardListKnobBlocks, Uo as boundaryOptionForTransitionIntent, Vo as sectionShapeFromContent, Wo as boundaryOptions, Xa as selectItemSurfacePresentation, Xo as spaciousBoundaryOption, Ya as resolveLookSurfacePresentation, Yo as softBoundaryOption, Ys as siteChromeBackgroundOverrideOwner, Za as arrangementAppearancePresets, Zo as transitionIntentForTreatment, Zs as asDesignBlockId, _o as getCuratedSiteStyle, _s as featureCardCompositionTreatmentValues, ao as styleSectionBackgroundForColour, as as sectionSurfaceBase, ba as isBlockButtonRole, br as MediaPlaceholder, bs as plainFrame, co as resolveEffectiveArrangement, ds as assertNever$1, ec as asSiteStyleId, eo as automaticArrangementLook, es as applyLookPhotoTreatment, fo as deriveSiteStyleBlockPolicy, fs as defineBlockDesignCapability, gs as designIssueSeverityForPolicy, hs as defineNoBlockDesignCapability, ic as isRecord$8, io as resolveLookForBlock, is as sectionForegroundBackground, jo as generateNavLinkCSS, jr as eventCalendarWeekStart, js as TokenResolver, ko as getNavLinkPreset, ks as surfaceToneFromForegroundToken, lo as resolveModeArrangement, ls as resolveEffectiveKnobs, mo as filterLookIdsForPolicy, ms as defineFrameCapability, no as getCompatibleBlockAppearancePresets, ns as parseCanonicalRuntimeBackground, oo as arrangementManifestFromVariants, os as stripStaleTransitionStyleGroup, po as filterLayoutProfilesForPolicy, ps as defineExactCatalog, qa as itemRole, qo as isDecorativeTransitionIntent, qs as asHeaderLayoutId, ro as resolveArrangementLookForBlock, rs as resolveSectionBackground, so as readStoredMode, ss as themeV2CompilerOwnedFieldNames, tc as makeBoundaryId, to as compileArrangementLookRuntime, ts as deriveSectionGround, uo as resolvePublishedLook, us as lookModes, vo as requireCuratedSiteStyle, vs as introCompositionTreatmentValues, wo as getGradientPreset, ws as cardListFamilyBlocks, xa as readRuntimeNow, xo as stripCompiledRuntimeStyleFields, xr as computeMediaTransformStyle, xs as sectionBackgroundPaintValues, yo as compilePageRuntimeFields, ys as offeringsPreviewCompositionTreatmentValues, zo as resolvePageDesignBoundaryChoice, zs as runtimeBoxBackgroundSchema } from "./display-lL-YRApN.mjs";
|
|
5
|
+
import { A as eyebrowTreatmentValues, At as locationValueSchema, B as publicEventsArraySchema, Et as isRecord$9, F as visibleHeadingDecorationFamilyValues, I as eventVenueDrawingSchema, It as trimmedStringOrNull, J as RichTextDocSchema, Mt as parseLocationValue, N as isArrangementMode, Nt as projectPublicLocation, Ot as WHOLE_SERIES_EVENT_PRESET_VALUES, P as tileTreatmentValues, Pt as publicLocationSchema, R as publicEventPricingSchema, Rt as formatDate, U as bookingConsentCarrierSchema, Z as isRichTextDoc, _ as eventCalendarListLayoutOptions, a as eventAutoApplyDiscountPreviewSchema, at as PUBLIC_FILE_FIELD_KINDS, en as getLocalScheduleDate, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, j as headingDecorationColorTokenValues, k as eventListTreatmentValues, kt as decideLocationSourcePermission, o as publicMembershipProductCollectionSchema, rn as resolveBookingBusinessTimeZone, rt as runtimeMediaSchema, s as publicPassProductCollectionSchema, sn as toUtcIsoDateTimeString, t as logger, tt as mediaSchema, ut as eventCalendarListLayoutCompatibleDisplayModeValues, vt as calendarWindowQuerySchema, w as resolveEventCalendarReadPlan } from "./noop-CN0o0yjH.mjs";
|
|
6
6
|
import { N as assertNever$2 } from "./creditProducts-BTRX4edc.mjs";
|
|
7
|
-
import { $ as
|
|
8
|
-
import {
|
|
9
|
-
import { g as
|
|
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-Cdot3dMk.mjs";
|
|
8
|
+
import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-CZeJwMxP.mjs";
|
|
9
|
+
import { $ as solveSurfaceInks, A as DEFAULT_BUTTON_SIZES, At as hexToRgb, C as buttonRadius, D as materializeRuntimeButtonAppearance, E as buttonTypographyDeclarations, Et as contrastRatio, Ft as srgbToOklab, G as mergeStyles, H as backgroundColorStyle, J as textColorStyle, K as rgbColorValue, L as mapButtonVisualAppearances, M as FONT_SIZE_MAP, Mt as oklabToSrgb, N as generateShadowValue$1, Nt as oklchToHexGamut, O as paddingDeclarations, Pt as rgbToHex, Q as surfaceInkPublication, S as buttonBorder, St as resolveOpaqueSurfaceHex, T as buttonStateAppearanceDeclarations, U as borderColorStyle, W as cssVarValue, X as resolveSurfaceForeground, Y as textColorValue, Z as safeTokenOr, _t as surfaceInkDeclarations, at as inkReference, b as BUTTON_CONTRAST_POLICY, bt as ownedThemeSnapshot, 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 oklabToOklch, 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 surfaceRoleForTextToken, 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 resolveConcreteColorHex, y as resolveSolidButtonColour, yt as freezeOwnedThemeValue } from "./accessibleSurfaces-D4DhWo9j.mjs";
|
|
10
10
|
import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, v as blockColorTokenNames } from "./types-DjWUR_O6.mjs";
|
|
11
|
-
import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-
|
|
11
|
+
import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-Cahps5kR.mjs";
|
|
12
12
|
import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-DuaYtnvG.mjs";
|
|
13
13
|
import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
14
|
-
import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-
|
|
15
|
-
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-
|
|
16
|
-
import { s as monthSlotParents } from "./CalendarNavigationChevron-
|
|
14
|
+
import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-D6yebI4r.mjs";
|
|
15
|
+
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-Doe4KodB.mjs";
|
|
16
|
+
import { s as monthSlotParents } from "./CalendarNavigationChevron-BMZp3RS3.mjs";
|
|
17
17
|
import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
18
|
-
import { n as eventListSlotParents } from "./EventListing.view-
|
|
18
|
+
import { n as eventListSlotParents } from "./EventListing.view-BmfyK7S5.mjs";
|
|
19
19
|
import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
|
|
20
|
-
import { t as formatDate$1 } from "./formatDate-
|
|
20
|
+
import { t as formatDate$1 } from "./formatDate-BnhfIpCa.mjs";
|
|
21
21
|
import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
22
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
22
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-ByApwB4q.mjs";
|
|
23
23
|
import { t as resolveBlocksPageMediaContext } from "./mediaAssets-B99AP7ai.mjs";
|
|
24
24
|
import * as React$1 from "react";
|
|
25
25
|
import React from "react";
|
|
@@ -842,6 +842,10 @@ function headerRootPaint(header) {
|
|
|
842
842
|
if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
|
|
843
843
|
return header?.variant === "floating" ? "overlay" : "own-surface";
|
|
844
844
|
}
|
|
845
|
+
/** The root is transparent for detached chrome or an explicitly transparent bar. */
|
|
846
|
+
function headerRootIsTransparent(header) {
|
|
847
|
+
return headerRootPaint(header) !== "own-surface" || header?.background?.type === "color" && header.background.color === "transparent";
|
|
848
|
+
}
|
|
845
849
|
//#endregion
|
|
846
850
|
//#region ../theme-core/src/cards/constants.ts
|
|
847
851
|
/**
|
|
@@ -1565,6 +1569,481 @@ function resolveBlockDesignPlan(input) {
|
|
|
1565
1569
|
};
|
|
1566
1570
|
}
|
|
1567
1571
|
//#endregion
|
|
1572
|
+
//#region ../theme-core/src/site-styles/headerLayoutTypes.ts
|
|
1573
|
+
function deriveHeaderLogoShapeFromDimensions({ width, height }) {
|
|
1574
|
+
if (!width || !height) return "horizontal";
|
|
1575
|
+
const ratio = width / height;
|
|
1576
|
+
if (ratio > 1.4) return "horizontal";
|
|
1577
|
+
if (ratio < .8) return "tall";
|
|
1578
|
+
return "square";
|
|
1579
|
+
}
|
|
1580
|
+
//#endregion
|
|
1581
|
+
//#region ../theme-core/src/site-styles/logoBranding.ts
|
|
1582
|
+
const logoTextConfidenceValues = [
|
|
1583
|
+
"low",
|
|
1584
|
+
"medium",
|
|
1585
|
+
"high"
|
|
1586
|
+
];
|
|
1587
|
+
const logoAssetShapeValues = [
|
|
1588
|
+
"none",
|
|
1589
|
+
"horizontal",
|
|
1590
|
+
"square",
|
|
1591
|
+
"portrait",
|
|
1592
|
+
"tall"
|
|
1593
|
+
];
|
|
1594
|
+
const logoKindValues = [
|
|
1595
|
+
"mark",
|
|
1596
|
+
"wordmark",
|
|
1597
|
+
"lockup",
|
|
1598
|
+
"badge",
|
|
1599
|
+
"stacked-wordmark",
|
|
1600
|
+
"unknown"
|
|
1601
|
+
];
|
|
1602
|
+
const logoDensityValues = [
|
|
1603
|
+
"simple",
|
|
1604
|
+
"detailed",
|
|
1605
|
+
"unknown"
|
|
1606
|
+
];
|
|
1607
|
+
const logoContainsTextSchema = z.discriminatedUnion("kind", [
|
|
1608
|
+
z.object({
|
|
1609
|
+
kind: z.literal("contains-text"),
|
|
1610
|
+
confidence: z.enum(logoTextConfidenceValues),
|
|
1611
|
+
text: z.string().trim().min(1).max(200).optional()
|
|
1612
|
+
}),
|
|
1613
|
+
z.object({
|
|
1614
|
+
kind: z.literal("no-text"),
|
|
1615
|
+
confidence: z.enum(logoTextConfidenceValues)
|
|
1616
|
+
}),
|
|
1617
|
+
z.object({
|
|
1618
|
+
kind: z.literal("unknown"),
|
|
1619
|
+
reason: z.enum([
|
|
1620
|
+
"analysis-unavailable",
|
|
1621
|
+
"unsupported-file",
|
|
1622
|
+
"low-confidence"
|
|
1623
|
+
])
|
|
1624
|
+
})
|
|
1625
|
+
]);
|
|
1626
|
+
const logoAnalysisSourceSchema = z.discriminatedUnion("kind", [
|
|
1627
|
+
z.object({ kind: z.literal("none") }),
|
|
1628
|
+
z.object({
|
|
1629
|
+
kind: z.literal("deterministic"),
|
|
1630
|
+
reason: z.enum(["dimensions", "fallback"])
|
|
1631
|
+
}),
|
|
1632
|
+
z.object({
|
|
1633
|
+
kind: z.literal("llm"),
|
|
1634
|
+
model: z.literal("gpt-5.4-mini"),
|
|
1635
|
+
analyzedAt: z.string().trim().min(1).max(80).optional()
|
|
1636
|
+
}),
|
|
1637
|
+
z.object({ kind: z.literal("manual-override") })
|
|
1638
|
+
]);
|
|
1639
|
+
/** Failed preparation supplies no measured geometry; its synthetic square is not asset evidence. */
|
|
1640
|
+
function parseStoredLogoFacts(value) {
|
|
1641
|
+
const parsed = logoFactsSchema.safeParse(value);
|
|
1642
|
+
if (!parsed.success) return null;
|
|
1643
|
+
const facts = parsed.data;
|
|
1644
|
+
return facts.source.kind === "deterministic" && facts.source.reason === "fallback" ? null : facts;
|
|
1645
|
+
}
|
|
1646
|
+
const logoFactsSchema = z.object({
|
|
1647
|
+
shape: z.enum(logoAssetShapeValues),
|
|
1648
|
+
containsText: logoContainsTextSchema,
|
|
1649
|
+
kind: z.enum(logoKindValues),
|
|
1650
|
+
density: z.enum(logoDensityValues),
|
|
1651
|
+
source: logoAnalysisSourceSchema
|
|
1652
|
+
});
|
|
1653
|
+
const defaultNoLogoFacts = {
|
|
1654
|
+
shape: "none",
|
|
1655
|
+
containsText: {
|
|
1656
|
+
kind: "no-text",
|
|
1657
|
+
confidence: "high"
|
|
1658
|
+
},
|
|
1659
|
+
kind: "unknown",
|
|
1660
|
+
density: "unknown",
|
|
1661
|
+
source: { kind: "none" }
|
|
1662
|
+
};
|
|
1663
|
+
function deterministicLogoFactsForShape(shape) {
|
|
1664
|
+
if (shape === "none") return defaultNoLogoFacts;
|
|
1665
|
+
return {
|
|
1666
|
+
shape,
|
|
1667
|
+
containsText: {
|
|
1668
|
+
kind: "unknown",
|
|
1669
|
+
reason: "analysis-unavailable"
|
|
1670
|
+
},
|
|
1671
|
+
kind: "unknown",
|
|
1672
|
+
density: "unknown",
|
|
1673
|
+
source: {
|
|
1674
|
+
kind: "deterministic",
|
|
1675
|
+
reason: "dimensions"
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
function resolveBrandDisplay(mode, logoFacts) {
|
|
1680
|
+
if (logoFacts.shape === "none") return "title-only";
|
|
1681
|
+
switch (mode) {
|
|
1682
|
+
case "logo-only": return "logo-only";
|
|
1683
|
+
case "logo-plus-title": return "logo-plus-title";
|
|
1684
|
+
case "title-only": return "title-only";
|
|
1685
|
+
case "auto": return resolveAutoBrandDisplay(logoFacts);
|
|
1686
|
+
default: return assertNever$1(mode, "Unhandled brand display mode");
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
/** Evidence that the artwork already supplies the brand's readable identity. */
|
|
1690
|
+
function hasLogoTextEvidence(logoFacts) {
|
|
1691
|
+
return logoFacts.containsText.kind === "contains-text" || logoFacts.kind === "wordmark" || logoFacts.kind === "lockup" || logoFacts.kind === "badge" || logoFacts.kind === "stacked-wordmark";
|
|
1692
|
+
}
|
|
1693
|
+
function resolveAutoBrandDisplay(logoFacts) {
|
|
1694
|
+
return hasLogoTextEvidence(logoFacts) ? "logo-only" : "logo-plus-title";
|
|
1695
|
+
}
|
|
1696
|
+
//#endregion
|
|
1697
|
+
//#region ../theme-core/src/site-styles/headerLayoutCatalog.ts
|
|
1698
|
+
const titleOnlyLogoAccommodation = {
|
|
1699
|
+
pattern: "title-only",
|
|
1700
|
+
supportedShapes: [
|
|
1701
|
+
"none",
|
|
1702
|
+
"horizontal",
|
|
1703
|
+
"square",
|
|
1704
|
+
"portrait",
|
|
1705
|
+
"tall"
|
|
1706
|
+
],
|
|
1707
|
+
supportedTextPresence: [
|
|
1708
|
+
"contains-text",
|
|
1709
|
+
"no-text",
|
|
1710
|
+
"unknown"
|
|
1711
|
+
],
|
|
1712
|
+
supportedDisplayModes: ["title-only"],
|
|
1713
|
+
size: "compact"
|
|
1714
|
+
};
|
|
1715
|
+
const inlineWordmarkLogoAccommodation = {
|
|
1716
|
+
pattern: "inline-wordmark",
|
|
1717
|
+
supportedShapes: ["horizontal"],
|
|
1718
|
+
supportedTextPresence: [
|
|
1719
|
+
"contains-text",
|
|
1720
|
+
"no-text",
|
|
1721
|
+
"unknown"
|
|
1722
|
+
],
|
|
1723
|
+
supportedDisplayModes: ["logo-only"],
|
|
1724
|
+
size: "standard",
|
|
1725
|
+
maxDensity: "detailed"
|
|
1726
|
+
};
|
|
1727
|
+
const inlineMarkWithTitleLogoAccommodation = {
|
|
1728
|
+
pattern: "inline-mark-with-title",
|
|
1729
|
+
supportedShapes: [
|
|
1730
|
+
"horizontal",
|
|
1731
|
+
"square",
|
|
1732
|
+
"portrait",
|
|
1733
|
+
"tall"
|
|
1734
|
+
],
|
|
1735
|
+
supportedTextPresence: [
|
|
1736
|
+
"contains-text",
|
|
1737
|
+
"no-text",
|
|
1738
|
+
"unknown"
|
|
1739
|
+
],
|
|
1740
|
+
supportedDisplayModes: ["logo-plus-title"],
|
|
1741
|
+
size: "compact",
|
|
1742
|
+
maxDensity: "detailed"
|
|
1743
|
+
};
|
|
1744
|
+
const logoPlateAccommodation = {
|
|
1745
|
+
pattern: "logo-plate",
|
|
1746
|
+
supportedShapes: [
|
|
1747
|
+
"square",
|
|
1748
|
+
"portrait",
|
|
1749
|
+
"tall"
|
|
1750
|
+
],
|
|
1751
|
+
supportedTextPresence: [
|
|
1752
|
+
"contains-text",
|
|
1753
|
+
"no-text",
|
|
1754
|
+
"unknown"
|
|
1755
|
+
],
|
|
1756
|
+
supportedDisplayModes: ["logo-only"],
|
|
1757
|
+
size: "display",
|
|
1758
|
+
providesBacking: true
|
|
1759
|
+
};
|
|
1760
|
+
const centeredBadgeAccommodation = {
|
|
1761
|
+
pattern: "centered-badge",
|
|
1762
|
+
supportedShapes: [
|
|
1763
|
+
"square",
|
|
1764
|
+
"portrait",
|
|
1765
|
+
"tall"
|
|
1766
|
+
],
|
|
1767
|
+
supportedTextPresence: [
|
|
1768
|
+
"contains-text",
|
|
1769
|
+
"no-text",
|
|
1770
|
+
"unknown"
|
|
1771
|
+
],
|
|
1772
|
+
supportedDisplayModes: ["logo-only"],
|
|
1773
|
+
size: "display",
|
|
1774
|
+
providesBacking: true
|
|
1775
|
+
};
|
|
1776
|
+
const popoutBadgeAccommodation = {
|
|
1777
|
+
pattern: "popout-badge",
|
|
1778
|
+
supportedShapes: [
|
|
1779
|
+
"square",
|
|
1780
|
+
"portrait",
|
|
1781
|
+
"tall"
|
|
1782
|
+
],
|
|
1783
|
+
supportedTextPresence: [
|
|
1784
|
+
"contains-text",
|
|
1785
|
+
"no-text",
|
|
1786
|
+
"unknown"
|
|
1787
|
+
],
|
|
1788
|
+
supportedDisplayModes: ["logo-only"],
|
|
1789
|
+
size: "display",
|
|
1790
|
+
providesBacking: true
|
|
1791
|
+
};
|
|
1792
|
+
const centeredMastheadAccommodation = {
|
|
1793
|
+
pattern: "centered-masthead",
|
|
1794
|
+
supportedShapes: [
|
|
1795
|
+
"square",
|
|
1796
|
+
"portrait",
|
|
1797
|
+
"tall"
|
|
1798
|
+
],
|
|
1799
|
+
supportedTextPresence: [
|
|
1800
|
+
"contains-text",
|
|
1801
|
+
"no-text",
|
|
1802
|
+
"unknown"
|
|
1803
|
+
],
|
|
1804
|
+
supportedDisplayModes: ["logo-only"],
|
|
1805
|
+
size: "display",
|
|
1806
|
+
providesBacking: true
|
|
1807
|
+
};
|
|
1808
|
+
const unbackedOverlayLogoAccommodation = {
|
|
1809
|
+
pattern: "inline-logo-only",
|
|
1810
|
+
supportedShapes: ["square"],
|
|
1811
|
+
supportedTextPresence: [
|
|
1812
|
+
"contains-text",
|
|
1813
|
+
"no-text",
|
|
1814
|
+
"unknown"
|
|
1815
|
+
],
|
|
1816
|
+
supportedDisplayModes: ["logo-only"],
|
|
1817
|
+
size: "compact",
|
|
1818
|
+
providesBacking: false
|
|
1819
|
+
};
|
|
1820
|
+
const inlineClassicLogoAccommodations = [
|
|
1821
|
+
titleOnlyLogoAccommodation,
|
|
1822
|
+
inlineWordmarkLogoAccommodation,
|
|
1823
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
1824
|
+
popoutBadgeAccommodation,
|
|
1825
|
+
logoPlateAccommodation
|
|
1826
|
+
];
|
|
1827
|
+
const centeredLogoAccommodations = [
|
|
1828
|
+
titleOnlyLogoAccommodation,
|
|
1829
|
+
inlineWordmarkLogoAccommodation,
|
|
1830
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
1831
|
+
centeredMastheadAccommodation,
|
|
1832
|
+
centeredBadgeAccommodation
|
|
1833
|
+
];
|
|
1834
|
+
const overlayLogoAccommodations = [
|
|
1835
|
+
titleOnlyLogoAccommodation,
|
|
1836
|
+
inlineWordmarkLogoAccommodation,
|
|
1837
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
1838
|
+
unbackedOverlayLogoAccommodation
|
|
1839
|
+
];
|
|
1840
|
+
const allCuratedLogoAccommodations = [
|
|
1841
|
+
...inlineClassicLogoAccommodations,
|
|
1842
|
+
...centeredLogoAccommodations,
|
|
1843
|
+
...overlayLogoAccommodations
|
|
1844
|
+
];
|
|
1845
|
+
/**
|
|
1846
|
+
* Whether an accommodation pattern draws its own backing behind the logo.
|
|
1847
|
+
* Derived from the catalogue above rather than restated, so a new backing
|
|
1848
|
+
* accommodation cannot drift out of sync with this answer. Patterns declared in
|
|
1849
|
+
* `LogoAccommodationPattern` but not offered by any layout resolve to `false`,
|
|
1850
|
+
* which is the honest answer: nothing can select them.
|
|
1851
|
+
*/
|
|
1852
|
+
const backingLogoAccommodationPatterns = new Set(allCuratedLogoAccommodations.filter((option) => option.providesBacking === true).map((option) => option.pattern));
|
|
1853
|
+
function logoAccommodationProvidesBacking(pattern) {
|
|
1854
|
+
return backingLogoAccommodationPatterns.has(pattern);
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* The single answer to "what shape is this site's logo" (#1318 Phase 4b).
|
|
1858
|
+
*
|
|
1859
|
+
* The server and the public frontend each had their own copy of this, and they
|
|
1860
|
+
* disagreed on the one case that matters: a logo whose dimensions are unknown.
|
|
1861
|
+
* The server assumed `horizontal`; the frontend asked whether the persisted
|
|
1862
|
+
* accommodation brings its own backing and answered `square` if it does. The
|
|
1863
|
+
* richer rule is the correct one — a badge or masthead accommodation is
|
|
1864
|
+
* evidence about the asset that raw dimensions would otherwise supply — and it
|
|
1865
|
+
* reduces to `horizontal` whenever there is no backing, so it subsumes the
|
|
1866
|
+
* server's rule rather than contradicting it. The backing question goes through
|
|
1867
|
+
* `logoAccommodationProvidesBacking`, so the pattern list has one home.
|
|
1868
|
+
*/
|
|
1869
|
+
function deriveHeaderLogoShape({ asset, accommodation }) {
|
|
1870
|
+
if (!asset) return "text-only";
|
|
1871
|
+
if (!asset.width || !asset.height) return accommodation !== void 0 && logoAccommodationProvidesBacking(accommodation) ? "square" : "horizontal";
|
|
1872
|
+
return deriveHeaderLogoShapeFromDimensions(asset);
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* The site's logo as the header pipeline sees it. Stored asset facts win; older
|
|
1876
|
+
* assets without facts use the shape-only context with unknown text presence.
|
|
1877
|
+
* Geometry still comes from the two database values
|
|
1878
|
+
* that describe it: the asset (or its absence) and the accommodation the row
|
|
1879
|
+
* currently persists, which is evidence about the asset when its dimensions are
|
|
1880
|
+
* missing.
|
|
1881
|
+
*
|
|
1882
|
+
* One definition, shared by every shell that has to answer it — the dashboard's
|
|
1883
|
+
* `loadHeaderLogoContextForSite`, the public frontend, and the Phase 4c repair
|
|
1884
|
+
* generator — because a second copy is a second answer to "what shape is this
|
|
1885
|
+
* site's logo", and the two former copies disagreed on exactly the case this
|
|
1886
|
+
* one is careful about (#1318 Phase 4b/4c).
|
|
1887
|
+
*/
|
|
1888
|
+
function headerLogoShapeContext(input) {
|
|
1889
|
+
const facts = input.asset ? parseStoredLogoFacts(input.asset.logoFacts) : null;
|
|
1890
|
+
return {
|
|
1891
|
+
...facts ? {
|
|
1892
|
+
kind: "facts",
|
|
1893
|
+
facts
|
|
1894
|
+
} : {
|
|
1895
|
+
kind: "shape",
|
|
1896
|
+
shape: deriveHeaderLogoShape(input)
|
|
1897
|
+
},
|
|
1898
|
+
...input.brand?.brandDisplay === void 0 ? {} : { brandDisplayMode: input.brand.brandDisplay },
|
|
1899
|
+
...input.brand?.logoSize === void 0 ? {} : { sizePolicy: input.brand.logoSize }
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
function logoFactsForHeaderContext(logo) {
|
|
1903
|
+
if (logo.kind === "facts") return logo.facts;
|
|
1904
|
+
switch (logo.shape) {
|
|
1905
|
+
case "none":
|
|
1906
|
+
case "text-only": return deterministicLogoFactsForShape("none");
|
|
1907
|
+
case "horizontal":
|
|
1908
|
+
case "square":
|
|
1909
|
+
case "tall": return deterministicLogoFactsForShape(logo.shape);
|
|
1910
|
+
default: return assertNever$1(logo.shape, "Unhandled header logo shape");
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
const headerLayoutCatalog = defineExactCatalog()([
|
|
1914
|
+
{
|
|
1915
|
+
id: asHeaderLayoutId("classic"),
|
|
1916
|
+
label: "Classic",
|
|
1917
|
+
description: "Logo and navigation in one practical horizontal row.",
|
|
1918
|
+
variant: "classic",
|
|
1919
|
+
defaultPositioning: "sticky",
|
|
1920
|
+
shrinkOnScroll: false,
|
|
1921
|
+
logoAccommodations: inlineClassicLogoAccommodations,
|
|
1922
|
+
openingRequirement: "none"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
id: asHeaderLayoutId("centered"),
|
|
1926
|
+
label: "Centered",
|
|
1927
|
+
description: "Logo centered above a balanced navigation row.",
|
|
1928
|
+
variant: "centered",
|
|
1929
|
+
defaultPositioning: "static",
|
|
1930
|
+
shrinkOnScroll: false,
|
|
1931
|
+
logoAccommodations: centeredLogoAccommodations,
|
|
1932
|
+
openingRequirement: "none"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
id: asHeaderLayoutId("floating"),
|
|
1936
|
+
label: "Floating",
|
|
1937
|
+
description: "Detached header chrome that sits over the opening section.",
|
|
1938
|
+
variant: "floating",
|
|
1939
|
+
defaultPositioning: "sticky",
|
|
1940
|
+
shrinkOnScroll: true,
|
|
1941
|
+
logoAccommodations: overlayLogoAccommodations,
|
|
1942
|
+
openingRequirement: "requires-image-hero-with-contrast-overlay"
|
|
1943
|
+
}
|
|
1944
|
+
]);
|
|
1945
|
+
function supportedLayouts(ids) {
|
|
1946
|
+
return ids.map(asHeaderLayoutId);
|
|
1947
|
+
}
|
|
1948
|
+
const headerStyleCatalog = defineExactCatalog()([
|
|
1949
|
+
{
|
|
1950
|
+
id: asHeaderStyleId("minimal"),
|
|
1951
|
+
label: "Minimal",
|
|
1952
|
+
description: "Quiet surface with simple color-change navigation.",
|
|
1953
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
id: asHeaderStyleId("fine-line"),
|
|
1957
|
+
label: "Seamless",
|
|
1958
|
+
description: "Borderless surface with underline hover for a quieter page transition.",
|
|
1959
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
id: asHeaderStyleId("soft-bar"),
|
|
1963
|
+
label: "Soft Bar",
|
|
1964
|
+
description: "Soft tinted surface with gentle pill hover states.",
|
|
1965
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
id: asHeaderStyleId("pill-nav"),
|
|
1969
|
+
label: "Pill Nav",
|
|
1970
|
+
description: "A calm pill navigation rail over a neutral header.",
|
|
1971
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
id: asHeaderStyleId("brand-bar"),
|
|
1975
|
+
label: "Brand Bar",
|
|
1976
|
+
description: "Solid brand surface with high-contrast navigation.",
|
|
1977
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
id: asHeaderStyleId("brand-underline"),
|
|
1981
|
+
label: "Brand Underline",
|
|
1982
|
+
description: "Brand surface with underline-grow navigation.",
|
|
1983
|
+
supportedLayoutIds: supportedLayouts(["classic"])
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
id: asHeaderStyleId("brand-pill"),
|
|
1987
|
+
label: "Brand Pill",
|
|
1988
|
+
description: "Solid brand surface with rounded active and hover states.",
|
|
1989
|
+
supportedLayoutIds: supportedLayouts([
|
|
1990
|
+
"classic",
|
|
1991
|
+
"centered",
|
|
1992
|
+
"floating"
|
|
1993
|
+
])
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
id: asHeaderStyleId("brand-capsule"),
|
|
1997
|
+
label: "Brand Capsule",
|
|
1998
|
+
description: "Solid brand chrome designed as a floating capsule, with quiet-caps nav, a soft pill active state, and an inverted CTA pill.",
|
|
1999
|
+
supportedLayoutIds: supportedLayouts(["classic"])
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
id: asHeaderStyleId("serif-line"),
|
|
2003
|
+
label: "Serif Line",
|
|
2004
|
+
description: "Typographic logo treatment with understated underline navigation.",
|
|
2005
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
id: asHeaderStyleId("flat-tabs"),
|
|
2009
|
+
label: "Flat Tabs",
|
|
2010
|
+
description: "Flat block hover and active states with a Swiss utility feel.",
|
|
2011
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
id: asHeaderStyleId("glass"),
|
|
2015
|
+
label: "Glass",
|
|
2016
|
+
description: "Translucent chrome with frosted navigation backing.",
|
|
2017
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
id: asHeaderStyleId("minimal-surface"),
|
|
2021
|
+
label: "Clear Split",
|
|
2022
|
+
description: "Floating logo with transparent navigation and no shared shell.",
|
|
2023
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
id: asHeaderStyleId("soft-shell"),
|
|
2027
|
+
label: "Soft Shell",
|
|
2028
|
+
description: "Floating rounded shell with soft pill navigation states.",
|
|
2029
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
id: asHeaderStyleId("split-glass"),
|
|
2033
|
+
label: "Split Glass",
|
|
2034
|
+
description: "Logo floats independently while the navigation sits in a glass rail.",
|
|
2035
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
id: asHeaderStyleId("split-pill"),
|
|
2039
|
+
label: "Split Pill",
|
|
2040
|
+
description: "Logo floats independently with a soft pill-backed navigation rail.",
|
|
2041
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2042
|
+
}
|
|
2043
|
+
]);
|
|
2044
|
+
new Map(headerLayoutCatalog.map((layout) => [layout.id, layout]));
|
|
2045
|
+
new Map(headerStyleCatalog.map((style) => [style.id, style]));
|
|
2046
|
+
//#endregion
|
|
1568
2047
|
//#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
|
|
1569
2048
|
/**
|
|
1570
2049
|
* Applies the user's nav font-role/size overrides on top of a style-resolved
|
|
@@ -5963,6 +6442,14 @@ function headerPaintInks(header, theme, policy) {
|
|
|
5963
6442
|
return surfaceInkDeclarations(surfaceInkPublication(resolveSurfaceForeground(header.background, expandPalette(theme.palette)), policy));
|
|
5964
6443
|
}
|
|
5965
6444
|
//#endregion
|
|
6445
|
+
//#region ../theme-core/src/header/logoSurfaceTone.ts
|
|
6446
|
+
/** The brand uses the root surface, even when navigation owns a separate capsule. */
|
|
6447
|
+
function resolveHeaderLogoSurfaceTone(header, palette, surface) {
|
|
6448
|
+
if (surface === "header-mobile-panel") return surfaceToneFromForegroundToken(palette, header?.dropdownStyle?.textColor ?? "text");
|
|
6449
|
+
const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
|
|
6450
|
+
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header));
|
|
6451
|
+
}
|
|
6452
|
+
//#endregion
|
|
5966
6453
|
//#region ../theme-core/src/layout/boundaryCss.ts
|
|
5967
6454
|
/**
|
|
5968
6455
|
* Section-break CSS, generated from the transition catalogue (issue 1422).
|
|
@@ -16155,7 +16642,7 @@ function resolveBackgroundVisualStyles(backgroundColor, defaultToken = "surface"
|
|
|
16155
16642
|
};
|
|
16156
16643
|
}
|
|
16157
16644
|
function resolveHeaderVisualStyles(header) {
|
|
16158
|
-
if (
|
|
16645
|
+
if (headerRootIsTransparent(header)) return {
|
|
16159
16646
|
backgroundToken: "transparent",
|
|
16160
16647
|
isTransparent: true
|
|
16161
16648
|
};
|
|
@@ -16397,21 +16884,6 @@ const chromeLogoSchema = z.object({ surface: z.enum([
|
|
|
16397
16884
|
"header-mobile-panel",
|
|
16398
16885
|
"footer-root"
|
|
16399
16886
|
]) });
|
|
16400
|
-
/** The brand foreground shares the logo's surface; navigation may own a separate capsule. */
|
|
16401
|
-
function chromeSurfaceTextToken(surface, theme, palette) {
|
|
16402
|
-
switch (surface) {
|
|
16403
|
-
case "header-root": {
|
|
16404
|
-
const header = theme.header;
|
|
16405
|
-
const foreground = resolveHeaderRootForeground(header, palette, resolveHeaderVisualStyles(header).isTransparent);
|
|
16406
|
-
return foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header);
|
|
16407
|
-
}
|
|
16408
|
-
case "header-mobile-panel": return theme.header?.dropdownStyle?.textColor ?? "text";
|
|
16409
|
-
case "footer-root": {
|
|
16410
|
-
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
16411
|
-
return foreground.kind === "known" ? foreground.roles.text : void 0;
|
|
16412
|
-
}
|
|
16413
|
-
}
|
|
16414
|
-
}
|
|
16415
16887
|
function readChromeTheme(viewModel) {
|
|
16416
16888
|
return asPartialObject(asPartialObject(viewModel?.["$root"])?.theme) ?? {};
|
|
16417
16889
|
}
|
|
@@ -16420,7 +16892,9 @@ function readChromeTheme(viewModel) {
|
|
|
16420
16892
|
* transform and the editor's logo notice both judge "is this dark" here.
|
|
16421
16893
|
*/
|
|
16422
16894
|
function resolveChromeSurfaceToneForTheme(surface, theme, palette) {
|
|
16423
|
-
|
|
16895
|
+
if (surface !== "footer-root") return resolveHeaderLogoSurfaceTone(theme.header, palette, surface);
|
|
16896
|
+
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
16897
|
+
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : void 0);
|
|
16424
16898
|
}
|
|
16425
16899
|
function resolveChromeSurfaceTone(surface, context) {
|
|
16426
16900
|
return resolveChromeSurfaceToneForTheme(surface, readChromeTheme(context.viewModel), context.theme.palette);
|
|
@@ -16434,7 +16908,12 @@ function readLogoVariants(value) {
|
|
|
16434
16908
|
forDarkBackgrounds: variants.forDarkBackgrounds ?? null
|
|
16435
16909
|
};
|
|
16436
16910
|
}
|
|
16437
|
-
|
|
16911
|
+
/**
|
|
16912
|
+
* Picks the site logo for the surface it is drawn on. Bound from block
|
|
16913
|
+
* `content`: `logoVariants` when the renderer supplies both logos, otherwise
|
|
16914
|
+
* the single `logo` older callers pass.
|
|
16915
|
+
*/
|
|
16916
|
+
const chromeLogoTransform = {
|
|
16438
16917
|
id: "layout.chromeLogo",
|
|
16439
16918
|
kind: "formatter",
|
|
16440
16919
|
summary: "Select the light- or dark-background site logo for a header or footer surface",
|
|
@@ -16444,6 +16923,28 @@ const chromeLogoTransforms = [{
|
|
|
16444
16923
|
if (!variants) return asPartialObject(value)?.logo ?? null;
|
|
16445
16924
|
return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), variants);
|
|
16446
16925
|
}
|
|
16926
|
+
};
|
|
16927
|
+
const chromeLogoTransforms = [chromeLogoTransform, {
|
|
16928
|
+
id: "layout.headerBrandSettings",
|
|
16929
|
+
kind: "formatter",
|
|
16930
|
+
summary: "Resolve header brand display using the selected logo asset facts",
|
|
16931
|
+
schema: chromeLogoSchema,
|
|
16932
|
+
run: (content, options, context) => {
|
|
16933
|
+
const settings = readChromeTheme(context.viewModel).header?.logo;
|
|
16934
|
+
const selected = asPartialObject(chromeLogoTransform.run(content, options, context));
|
|
16935
|
+
const logo = headerLogoShapeContext({
|
|
16936
|
+
asset: selected ? {
|
|
16937
|
+
width: selected.width ?? null,
|
|
16938
|
+
height: selected.height ?? null,
|
|
16939
|
+
logoFacts: selected.logoFacts
|
|
16940
|
+
} : null,
|
|
16941
|
+
accommodation: settings?.accommodation
|
|
16942
|
+
});
|
|
16943
|
+
return {
|
|
16944
|
+
...settings,
|
|
16945
|
+
brandDisplay: resolveBrandDisplay(settings?.brandDisplay ?? "auto", logoFactsForHeaderContext(logo))
|
|
16946
|
+
};
|
|
16947
|
+
}
|
|
16447
16948
|
}];
|
|
16448
16949
|
const headerRuntimeTransforms = [{
|
|
16449
16950
|
id: "layout.headerRuntimeContract",
|
|
@@ -16620,12 +17121,15 @@ function bindProp(from, opts) {
|
|
|
16620
17121
|
const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
|
|
16621
17122
|
//#endregion
|
|
16622
17123
|
//#region ../blocks/src/system/blocks/site-header.ts
|
|
16623
|
-
const whenTransformed = (
|
|
17124
|
+
const whenTransformed = (surface, transformId, equals = true) => (node) => ({
|
|
16624
17125
|
...node,
|
|
16625
17126
|
$when: {
|
|
16626
17127
|
when: {
|
|
16627
|
-
from,
|
|
16628
|
-
transforms: [{
|
|
17128
|
+
from: "content",
|
|
17129
|
+
transforms: [{
|
|
17130
|
+
id: "layout.headerBrandSettings",
|
|
17131
|
+
options: { surface }
|
|
17132
|
+
}, { id: transformId }]
|
|
16629
17133
|
},
|
|
16630
17134
|
equals
|
|
16631
17135
|
}
|
|
@@ -16641,31 +17145,31 @@ const bindChromeLogo = (surface) => bind("content", { transforms: [{
|
|
|
16641
17145
|
*/
|
|
16642
17146
|
const createLogoRow = (surface) => link({
|
|
16643
17147
|
href: "/",
|
|
16644
|
-
className: bindProp("
|
|
16645
|
-
transforms: pipe(tx("layout.headerLogoClass")),
|
|
17148
|
+
className: bindProp("content", {
|
|
17149
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoClass")),
|
|
16646
17150
|
fallback: "header-logo rb-flex rb-min-w-0 rb-items-center rb-gap-3 rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
16647
17151
|
})
|
|
16648
|
-
}, [media({ className: bindProp("
|
|
16649
|
-
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
17152
|
+
}, [media({ className: bindProp("content", {
|
|
17153
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
16650
17154
|
fallback: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300"
|
|
16651
17155
|
}) }, when("content.logo"), bindChromeLogo(surface)), text({
|
|
16652
17156
|
as: "strong",
|
|
16653
17157
|
className: "header-logo-text rb-truncate"
|
|
16654
|
-
}, whenTransformed(
|
|
17158
|
+
}, whenTransformed(surface, "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
16655
17159
|
const logoRow = createLogoRow("header-root");
|
|
16656
17160
|
const centeredLogoRow = link({
|
|
16657
17161
|
href: "/",
|
|
16658
|
-
className: bindProp("
|
|
16659
|
-
transforms: pipe(tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
|
|
17162
|
+
className: bindProp("content", {
|
|
17163
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface: "header-root" }), tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
|
|
16660
17164
|
fallback: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
16661
17165
|
})
|
|
16662
|
-
}, [media({ className: bindProp("
|
|
16663
|
-
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
17166
|
+
}, [media({ className: bindProp("content", {
|
|
17167
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface: "header-root" }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
16664
17168
|
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
16665
17169
|
}) }, when("content.logo"), bindChromeLogo("header-root")), text({
|
|
16666
17170
|
as: "strong",
|
|
16667
17171
|
className: "header-logo-text"
|
|
16668
|
-
}, whenTransformed("
|
|
17172
|
+
}, whenTransformed("header-root", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
16669
17173
|
const createNavRow = (className, align = "end") => navRow({
|
|
16670
17174
|
className: `${className} header-nav-row`,
|
|
16671
17175
|
align,
|