@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,7 +1,7 @@
|
|
|
1
1
|
import { C as buttonVisualStatesSchema, Dt as parseThemeColorToken, E as VARIANT_ROLES, Et as parseColorTokenParts, G as hexToRgb, S as buttonVariantIdSchema, T as SYSTEM_BLOCK_KINDS, Tt as paletteModeSchema, W as featuresFromHex, _ as isVariantRole, at as surfaceForegroundValue, b as buttonPressOffsetSchema, ct as surfaceInkStyle, f as DEFAULT_VARIANT_ALIAS_ID, ft as mergeStyles, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, it as surfaceForegroundStyle, j as expandPalette, l as ELEVATION_OFFSET, lt as backgroundColorStyle, m as asSpecialVariantId, mt as surfaceRoleForTextToken, pt as rgbColorValue, rt as surfaceForegroundInputFromResolved, ut as borderColorStyle, v as unsafeAsOpaqueButtonColourToken, vt as blockColorTokenNames, wt as paletteColorsSchema, y as buttonEffectApplicationSchema, yt as hexColorSchema } from "./resolveButtonColourStates-CCPUY9Xh.mjs";
|
|
2
2
|
import { B as certifyPaint, D as mapButtonRoleAppearances, E as defineButtonStyleRecipe, F as resolveSurfaceForeground, G as resolveOpaqueSurfaceHex, J as requirePaletteColorsFromEntries, K as paletteValueKey, L as surfaceInkPublication, O as mapButtonVisualAppearances, T as PUBLIC_BUTTON_ROLES, U as planForegroundHover, V as contrastThresholdByPolicy, W as resolveConcreteColorHex, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, h as scrimTone, i as prepareThemeSurfaceRevision, j as resolveThemeColorReferenceValue, l as surfaceDecorationColors, m as minimumScrimOpacity, o as resolveSurface, p as gradientScrimSamples, q as paletteValueKeySchema, t as parseResolvedSurface, u as surfaceTransportContext } from "./accessibleSurfaces-Dbd2__Le.mjs";
|
|
3
|
-
import { A as asBoundaryOptionId, C as eventListTreatmentValues, D as tileTreatmentValues, E as isArrangementMode, F as asPageFlowPresetId, I as asSiteStyleId, L as makeBoundaryId, M as asDesignBoundaryId, N as asDesignSystemTemplateId, O as visibleHeadingDecorationFamilyValues, P as asLayoutVariantKey, S as arrangementModes, T as headingDecorationColorTokenValues, _ as asHeaderLayoutId, a as headerVariantValues, c as runtimeBoxBackgroundSchema, d as cardRoleValues, f as cardVariantRoleValues, g as asFooterLookId, j as asDesignBlockId, k as asAppearancePresetId, l as boxlessCardVariantValue, m as openCardRoleValue, n as containerStylesOverrideSchema, o as boxBackgroundOverlaySchema, p as itemRoleValues, r as sectionStylesOverrideSchema, s as boxBackgroundSchema, t as cardStylesOverrideSchema, u as cardRoleSchema, v as asHeaderStyleId, w as eyebrowTreatmentValues, x as siteChromeBackgroundOverrideOwner, y as bookingPageLookIdValues } from "./schema-
|
|
4
|
-
import { C as ok$1, S as err, b as unsafeAsStoragePath, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, f as PUBLIC_FILE_FIELD_KINDS, g as parseCanonicalMediaIdentifier, m as mediaTypeDiscriminants, o as runtimeMediaSchema, p as isDisplayMediaKind, v as unsafeAsMediaAssetId, x as parseUuidBrand, y as unsafeAsStorageBucketName } from "./media-
|
|
3
|
+
import { A as asBoundaryOptionId, C as eventListTreatmentValues, D as tileTreatmentValues, E as isArrangementMode, F as asPageFlowPresetId, I as asSiteStyleId, L as makeBoundaryId, M as asDesignBoundaryId, N as asDesignSystemTemplateId, O as visibleHeadingDecorationFamilyValues, P as asLayoutVariantKey, S as arrangementModes, T as headingDecorationColorTokenValues, _ as asHeaderLayoutId, a as headerVariantValues, c as runtimeBoxBackgroundSchema, d as cardRoleValues, f as cardVariantRoleValues, g as asFooterLookId, j as asDesignBlockId, k as asAppearancePresetId, l as boxlessCardVariantValue, m as openCardRoleValue, n as containerStylesOverrideSchema, o as boxBackgroundOverlaySchema, p as itemRoleValues, r as sectionStylesOverrideSchema, s as boxBackgroundSchema, t as cardStylesOverrideSchema, u as cardRoleSchema, v as asHeaderStyleId, w as eyebrowTreatmentValues, x as siteChromeBackgroundOverrideOwner, y as bookingPageLookIdValues } from "./schema-D5Vfmqzw.mjs";
|
|
4
|
+
import { C as ok$1, S as err, b as unsafeAsStoragePath, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, f as PUBLIC_FILE_FIELD_KINDS, g as parseCanonicalMediaIdentifier, m as mediaTypeDiscriminants, o as runtimeMediaSchema, p as isDisplayMediaKind, v as unsafeAsMediaAssetId, x as parseUuidBrand, y as unsafeAsStorageBucketName } from "./media-luf7RF22.mjs";
|
|
5
5
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
6
6
|
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
7
7
|
import { n as opaqueSurfaceDeclarations } from "./opaqueSurface-COEKXVwk.mjs";
|
|
@@ -403,6 +403,18 @@ function formatCurrencyMajorUnits(amount, currency, options) {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
//#endregion
|
|
406
|
+
//#region ../core/src/money-input.ts
|
|
407
|
+
function unsafeAsNonNegativeCents(value) {
|
|
408
|
+
return value;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Normalizes a derived amount to non-negative whole cents. This intentionally
|
|
412
|
+
* clamps negatives to zero; use parseNonNegativeCents for validation.
|
|
413
|
+
*/
|
|
414
|
+
function toNonNegativeCents(value) {
|
|
415
|
+
return unsafeAsNonNegativeCents(Math.max(0, Math.trunc(value)));
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
406
418
|
//#region ../core/src/planner.ts
|
|
407
419
|
/** Default clock for production callers that do not inject time explicitly. */
|
|
408
420
|
const systemPlanningClock = { now: () => Date.now() };
|
|
@@ -668,7 +680,7 @@ function parseEventPageSurfaceDestinationMode(value) {
|
|
|
668
680
|
return value === "cms-managed" || value === "system-managed" ? value : void 0;
|
|
669
681
|
}
|
|
670
682
|
function parseEventPageSurfaceSubject(value) {
|
|
671
|
-
if (!isRecord$
|
|
683
|
+
if (!isRecord$13(value)) return err({ kind: "notObject" });
|
|
672
684
|
const parsed = value.kind === "eventSeries" ? parseEventSeriesPageSurfaceSubject(value) : value.kind === "eventOffering" ? parseEventOfferingPageSurfaceSubject(value) : err({
|
|
673
685
|
kind: "unsupportedSubject",
|
|
674
686
|
subjectKind: value.kind
|
|
@@ -727,7 +739,7 @@ function parseEventSeriesIdList(values) {
|
|
|
727
739
|
}
|
|
728
740
|
return ok$1(parsed);
|
|
729
741
|
}
|
|
730
|
-
function isRecord$
|
|
742
|
+
function isRecord$13(value) {
|
|
731
743
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
732
744
|
}
|
|
733
745
|
/**
|
|
@@ -1633,7 +1645,7 @@ const publicProfileWeekdays = [
|
|
|
1633
1645
|
"saturday",
|
|
1634
1646
|
"sunday"
|
|
1635
1647
|
];
|
|
1636
|
-
function isRecord$
|
|
1648
|
+
function isRecord$12(value) {
|
|
1637
1649
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1638
1650
|
}
|
|
1639
1651
|
function trimmedOptionalString(value) {
|
|
@@ -1674,7 +1686,7 @@ function minutesSinceMidnight(value) {
|
|
|
1674
1686
|
}
|
|
1675
1687
|
function parseOpeningHoursDay(value, expectedWeekday, index) {
|
|
1676
1688
|
const path = `openingHours.days.${index}`;
|
|
1677
|
-
if (!isRecord$
|
|
1689
|
+
if (!isRecord$12(value) || value.weekday !== expectedWeekday) return err({
|
|
1678
1690
|
code: "invalid_weekdays",
|
|
1679
1691
|
path,
|
|
1680
1692
|
message: `Expected ${expectedWeekday} in calendar order.`
|
|
@@ -1691,7 +1703,7 @@ function parseOpeningHoursDay(value, expectedWeekday, index) {
|
|
|
1691
1703
|
const intervals = [];
|
|
1692
1704
|
for (const [intervalIndex, rawInterval] of value.intervals.entries()) {
|
|
1693
1705
|
const intervalPath = `${path}.intervals.${intervalIndex}`;
|
|
1694
|
-
if (!isRecord$
|
|
1706
|
+
if (!isRecord$12(rawInterval)) return err({
|
|
1695
1707
|
code: "invalid_interval",
|
|
1696
1708
|
path: intervalPath,
|
|
1697
1709
|
message: "Opening interval is invalid."
|
|
@@ -1753,7 +1765,7 @@ function parseOpeningHoursWeek(rawDays) {
|
|
|
1753
1765
|
]);
|
|
1754
1766
|
}
|
|
1755
1767
|
function parseWeeklyOpeningHours(value) {
|
|
1756
|
-
if (!isRecord$
|
|
1768
|
+
if (!isRecord$12(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
|
|
1757
1769
|
code: "invalid_weekdays",
|
|
1758
1770
|
path: "openingHours.days",
|
|
1759
1771
|
message: "Opening hours must include all seven weekdays."
|
|
@@ -1775,6 +1787,45 @@ function parseWeeklyOpeningHours(value) {
|
|
|
1775
1787
|
});
|
|
1776
1788
|
}
|
|
1777
1789
|
//#endregion
|
|
1790
|
+
//#region ../core/src/rich-text.ts
|
|
1791
|
+
function isRecord$11(value) {
|
|
1792
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1793
|
+
}
|
|
1794
|
+
function hasOnlyKeys(value, allowed) {
|
|
1795
|
+
return Object.keys(value).every((key) => allowed.has(key));
|
|
1796
|
+
}
|
|
1797
|
+
const rootKeys = /* @__PURE__ */ new Set(["type", "content"]);
|
|
1798
|
+
const nodeKeys = /* @__PURE__ */ new Set([
|
|
1799
|
+
"type",
|
|
1800
|
+
"content",
|
|
1801
|
+
"text",
|
|
1802
|
+
"attrs",
|
|
1803
|
+
"marks"
|
|
1804
|
+
]);
|
|
1805
|
+
const markKeys = /* @__PURE__ */ new Set(["type", "attrs"]);
|
|
1806
|
+
function isDenseArrayOf(value, predicate) {
|
|
1807
|
+
for (let index = 0; index < value.length; index += 1) if (!(index in value) || !predicate(value[index])) return false;
|
|
1808
|
+
return true;
|
|
1809
|
+
}
|
|
1810
|
+
function isTipTapMark(value) {
|
|
1811
|
+
return isRecord$11(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$11(value.attrs));
|
|
1812
|
+
}
|
|
1813
|
+
function isTipTapNode(value) {
|
|
1814
|
+
if (!isRecord$11(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$11(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
|
|
1815
|
+
if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
|
|
1816
|
+
return value.text === void 0;
|
|
1817
|
+
}
|
|
1818
|
+
function isCanonicalRichTextDoc(value) {
|
|
1819
|
+
return isRecord$11(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
|
|
1820
|
+
}
|
|
1821
|
+
/** Whether a document contains non-whitespace text, including in nested nodes. */
|
|
1822
|
+
function richTextHasText(document) {
|
|
1823
|
+
return document.content.some(nodeHasText);
|
|
1824
|
+
}
|
|
1825
|
+
function nodeHasText(node) {
|
|
1826
|
+
return Boolean(node.text?.trim()) || (node.content ?? []).some(nodeHasText);
|
|
1827
|
+
}
|
|
1828
|
+
//#endregion
|
|
1778
1829
|
//#region ../core/src/mailing-list-identifiers.ts
|
|
1779
1830
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
|
|
1780
1831
|
const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
|
|
@@ -6811,6 +6862,10 @@ function headerRootPaint(header) {
|
|
|
6811
6862
|
if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
|
|
6812
6863
|
return header?.variant === "floating" ? "overlay" : "own-surface";
|
|
6813
6864
|
}
|
|
6865
|
+
/** The root is transparent for detached chrome or an explicitly transparent bar. */
|
|
6866
|
+
function headerRootIsTransparent(header) {
|
|
6867
|
+
return headerRootPaint(header) !== "own-surface" || header?.background?.type === "color" && header.background.color === "transparent";
|
|
6868
|
+
}
|
|
6814
6869
|
const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
|
|
6815
6870
|
kind: z.literal("user-pinned"),
|
|
6816
6871
|
value: z.string().min(1).transform(asAppearancePresetId)
|
|
@@ -26589,6 +26644,481 @@ function sectionRhythmSurfaces(style, flow) {
|
|
|
26589
26644
|
});
|
|
26590
26645
|
}
|
|
26591
26646
|
//#endregion
|
|
26647
|
+
//#region ../theme-core/src/site-styles/headerLayoutTypes.ts
|
|
26648
|
+
function deriveHeaderLogoShapeFromDimensions({ width, height }) {
|
|
26649
|
+
if (!width || !height) return "horizontal";
|
|
26650
|
+
const ratio = width / height;
|
|
26651
|
+
if (ratio > 1.4) return "horizontal";
|
|
26652
|
+
if (ratio < .8) return "tall";
|
|
26653
|
+
return "square";
|
|
26654
|
+
}
|
|
26655
|
+
//#endregion
|
|
26656
|
+
//#region ../theme-core/src/site-styles/logoBranding.ts
|
|
26657
|
+
const logoTextConfidenceValues = [
|
|
26658
|
+
"low",
|
|
26659
|
+
"medium",
|
|
26660
|
+
"high"
|
|
26661
|
+
];
|
|
26662
|
+
const logoAssetShapeValues = [
|
|
26663
|
+
"none",
|
|
26664
|
+
"horizontal",
|
|
26665
|
+
"square",
|
|
26666
|
+
"portrait",
|
|
26667
|
+
"tall"
|
|
26668
|
+
];
|
|
26669
|
+
const logoKindValues = [
|
|
26670
|
+
"mark",
|
|
26671
|
+
"wordmark",
|
|
26672
|
+
"lockup",
|
|
26673
|
+
"badge",
|
|
26674
|
+
"stacked-wordmark",
|
|
26675
|
+
"unknown"
|
|
26676
|
+
];
|
|
26677
|
+
const logoDensityValues = [
|
|
26678
|
+
"simple",
|
|
26679
|
+
"detailed",
|
|
26680
|
+
"unknown"
|
|
26681
|
+
];
|
|
26682
|
+
const logoContainsTextSchema = z.discriminatedUnion("kind", [
|
|
26683
|
+
z.object({
|
|
26684
|
+
kind: z.literal("contains-text"),
|
|
26685
|
+
confidence: z.enum(logoTextConfidenceValues),
|
|
26686
|
+
text: z.string().trim().min(1).max(200).optional()
|
|
26687
|
+
}),
|
|
26688
|
+
z.object({
|
|
26689
|
+
kind: z.literal("no-text"),
|
|
26690
|
+
confidence: z.enum(logoTextConfidenceValues)
|
|
26691
|
+
}),
|
|
26692
|
+
z.object({
|
|
26693
|
+
kind: z.literal("unknown"),
|
|
26694
|
+
reason: z.enum([
|
|
26695
|
+
"analysis-unavailable",
|
|
26696
|
+
"unsupported-file",
|
|
26697
|
+
"low-confidence"
|
|
26698
|
+
])
|
|
26699
|
+
})
|
|
26700
|
+
]);
|
|
26701
|
+
const logoAnalysisSourceSchema = z.discriminatedUnion("kind", [
|
|
26702
|
+
z.object({ kind: z.literal("none") }),
|
|
26703
|
+
z.object({
|
|
26704
|
+
kind: z.literal("deterministic"),
|
|
26705
|
+
reason: z.enum(["dimensions", "fallback"])
|
|
26706
|
+
}),
|
|
26707
|
+
z.object({
|
|
26708
|
+
kind: z.literal("llm"),
|
|
26709
|
+
model: z.literal("gpt-5.4-mini"),
|
|
26710
|
+
analyzedAt: z.string().trim().min(1).max(80).optional()
|
|
26711
|
+
}),
|
|
26712
|
+
z.object({ kind: z.literal("manual-override") })
|
|
26713
|
+
]);
|
|
26714
|
+
/** Failed preparation supplies no measured geometry; its synthetic square is not asset evidence. */
|
|
26715
|
+
function parseStoredLogoFacts(value) {
|
|
26716
|
+
const parsed = logoFactsSchema.safeParse(value);
|
|
26717
|
+
if (!parsed.success) return null;
|
|
26718
|
+
const facts = parsed.data;
|
|
26719
|
+
return facts.source.kind === "deterministic" && facts.source.reason === "fallback" ? null : facts;
|
|
26720
|
+
}
|
|
26721
|
+
const logoFactsSchema = z.object({
|
|
26722
|
+
shape: z.enum(logoAssetShapeValues),
|
|
26723
|
+
containsText: logoContainsTextSchema,
|
|
26724
|
+
kind: z.enum(logoKindValues),
|
|
26725
|
+
density: z.enum(logoDensityValues),
|
|
26726
|
+
source: logoAnalysisSourceSchema
|
|
26727
|
+
});
|
|
26728
|
+
const defaultNoLogoFacts = {
|
|
26729
|
+
shape: "none",
|
|
26730
|
+
containsText: {
|
|
26731
|
+
kind: "no-text",
|
|
26732
|
+
confidence: "high"
|
|
26733
|
+
},
|
|
26734
|
+
kind: "unknown",
|
|
26735
|
+
density: "unknown",
|
|
26736
|
+
source: { kind: "none" }
|
|
26737
|
+
};
|
|
26738
|
+
function deterministicLogoFactsForShape(shape) {
|
|
26739
|
+
if (shape === "none") return defaultNoLogoFacts;
|
|
26740
|
+
return {
|
|
26741
|
+
shape,
|
|
26742
|
+
containsText: {
|
|
26743
|
+
kind: "unknown",
|
|
26744
|
+
reason: "analysis-unavailable"
|
|
26745
|
+
},
|
|
26746
|
+
kind: "unknown",
|
|
26747
|
+
density: "unknown",
|
|
26748
|
+
source: {
|
|
26749
|
+
kind: "deterministic",
|
|
26750
|
+
reason: "dimensions"
|
|
26751
|
+
}
|
|
26752
|
+
};
|
|
26753
|
+
}
|
|
26754
|
+
function resolveBrandDisplay(mode, logoFacts) {
|
|
26755
|
+
if (logoFacts.shape === "none") return "title-only";
|
|
26756
|
+
switch (mode) {
|
|
26757
|
+
case "logo-only": return "logo-only";
|
|
26758
|
+
case "logo-plus-title": return "logo-plus-title";
|
|
26759
|
+
case "title-only": return "title-only";
|
|
26760
|
+
case "auto": return resolveAutoBrandDisplay(logoFacts);
|
|
26761
|
+
default: return assertNever(mode, "Unhandled brand display mode");
|
|
26762
|
+
}
|
|
26763
|
+
}
|
|
26764
|
+
/** Evidence that the artwork already supplies the brand's readable identity. */
|
|
26765
|
+
function hasLogoTextEvidence(logoFacts) {
|
|
26766
|
+
return logoFacts.containsText.kind === "contains-text" || logoFacts.kind === "wordmark" || logoFacts.kind === "lockup" || logoFacts.kind === "badge" || logoFacts.kind === "stacked-wordmark";
|
|
26767
|
+
}
|
|
26768
|
+
function resolveAutoBrandDisplay(logoFacts) {
|
|
26769
|
+
return hasLogoTextEvidence(logoFacts) ? "logo-only" : "logo-plus-title";
|
|
26770
|
+
}
|
|
26771
|
+
//#endregion
|
|
26772
|
+
//#region ../theme-core/src/site-styles/headerLayoutCatalog.ts
|
|
26773
|
+
const titleOnlyLogoAccommodation = {
|
|
26774
|
+
pattern: "title-only",
|
|
26775
|
+
supportedShapes: [
|
|
26776
|
+
"none",
|
|
26777
|
+
"horizontal",
|
|
26778
|
+
"square",
|
|
26779
|
+
"portrait",
|
|
26780
|
+
"tall"
|
|
26781
|
+
],
|
|
26782
|
+
supportedTextPresence: [
|
|
26783
|
+
"contains-text",
|
|
26784
|
+
"no-text",
|
|
26785
|
+
"unknown"
|
|
26786
|
+
],
|
|
26787
|
+
supportedDisplayModes: ["title-only"],
|
|
26788
|
+
size: "compact"
|
|
26789
|
+
};
|
|
26790
|
+
const inlineWordmarkLogoAccommodation = {
|
|
26791
|
+
pattern: "inline-wordmark",
|
|
26792
|
+
supportedShapes: ["horizontal"],
|
|
26793
|
+
supportedTextPresence: [
|
|
26794
|
+
"contains-text",
|
|
26795
|
+
"no-text",
|
|
26796
|
+
"unknown"
|
|
26797
|
+
],
|
|
26798
|
+
supportedDisplayModes: ["logo-only"],
|
|
26799
|
+
size: "standard",
|
|
26800
|
+
maxDensity: "detailed"
|
|
26801
|
+
};
|
|
26802
|
+
const inlineMarkWithTitleLogoAccommodation = {
|
|
26803
|
+
pattern: "inline-mark-with-title",
|
|
26804
|
+
supportedShapes: [
|
|
26805
|
+
"horizontal",
|
|
26806
|
+
"square",
|
|
26807
|
+
"portrait",
|
|
26808
|
+
"tall"
|
|
26809
|
+
],
|
|
26810
|
+
supportedTextPresence: [
|
|
26811
|
+
"contains-text",
|
|
26812
|
+
"no-text",
|
|
26813
|
+
"unknown"
|
|
26814
|
+
],
|
|
26815
|
+
supportedDisplayModes: ["logo-plus-title"],
|
|
26816
|
+
size: "compact",
|
|
26817
|
+
maxDensity: "detailed"
|
|
26818
|
+
};
|
|
26819
|
+
const logoPlateAccommodation = {
|
|
26820
|
+
pattern: "logo-plate",
|
|
26821
|
+
supportedShapes: [
|
|
26822
|
+
"square",
|
|
26823
|
+
"portrait",
|
|
26824
|
+
"tall"
|
|
26825
|
+
],
|
|
26826
|
+
supportedTextPresence: [
|
|
26827
|
+
"contains-text",
|
|
26828
|
+
"no-text",
|
|
26829
|
+
"unknown"
|
|
26830
|
+
],
|
|
26831
|
+
supportedDisplayModes: ["logo-only"],
|
|
26832
|
+
size: "display",
|
|
26833
|
+
providesBacking: true
|
|
26834
|
+
};
|
|
26835
|
+
const centeredBadgeAccommodation = {
|
|
26836
|
+
pattern: "centered-badge",
|
|
26837
|
+
supportedShapes: [
|
|
26838
|
+
"square",
|
|
26839
|
+
"portrait",
|
|
26840
|
+
"tall"
|
|
26841
|
+
],
|
|
26842
|
+
supportedTextPresence: [
|
|
26843
|
+
"contains-text",
|
|
26844
|
+
"no-text",
|
|
26845
|
+
"unknown"
|
|
26846
|
+
],
|
|
26847
|
+
supportedDisplayModes: ["logo-only"],
|
|
26848
|
+
size: "display",
|
|
26849
|
+
providesBacking: true
|
|
26850
|
+
};
|
|
26851
|
+
const popoutBadgeAccommodation = {
|
|
26852
|
+
pattern: "popout-badge",
|
|
26853
|
+
supportedShapes: [
|
|
26854
|
+
"square",
|
|
26855
|
+
"portrait",
|
|
26856
|
+
"tall"
|
|
26857
|
+
],
|
|
26858
|
+
supportedTextPresence: [
|
|
26859
|
+
"contains-text",
|
|
26860
|
+
"no-text",
|
|
26861
|
+
"unknown"
|
|
26862
|
+
],
|
|
26863
|
+
supportedDisplayModes: ["logo-only"],
|
|
26864
|
+
size: "display",
|
|
26865
|
+
providesBacking: true
|
|
26866
|
+
};
|
|
26867
|
+
const centeredMastheadAccommodation = {
|
|
26868
|
+
pattern: "centered-masthead",
|
|
26869
|
+
supportedShapes: [
|
|
26870
|
+
"square",
|
|
26871
|
+
"portrait",
|
|
26872
|
+
"tall"
|
|
26873
|
+
],
|
|
26874
|
+
supportedTextPresence: [
|
|
26875
|
+
"contains-text",
|
|
26876
|
+
"no-text",
|
|
26877
|
+
"unknown"
|
|
26878
|
+
],
|
|
26879
|
+
supportedDisplayModes: ["logo-only"],
|
|
26880
|
+
size: "display",
|
|
26881
|
+
providesBacking: true
|
|
26882
|
+
};
|
|
26883
|
+
const unbackedOverlayLogoAccommodation = {
|
|
26884
|
+
pattern: "inline-logo-only",
|
|
26885
|
+
supportedShapes: ["square"],
|
|
26886
|
+
supportedTextPresence: [
|
|
26887
|
+
"contains-text",
|
|
26888
|
+
"no-text",
|
|
26889
|
+
"unknown"
|
|
26890
|
+
],
|
|
26891
|
+
supportedDisplayModes: ["logo-only"],
|
|
26892
|
+
size: "compact",
|
|
26893
|
+
providesBacking: false
|
|
26894
|
+
};
|
|
26895
|
+
const inlineClassicLogoAccommodations = [
|
|
26896
|
+
titleOnlyLogoAccommodation,
|
|
26897
|
+
inlineWordmarkLogoAccommodation,
|
|
26898
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
26899
|
+
popoutBadgeAccommodation,
|
|
26900
|
+
logoPlateAccommodation
|
|
26901
|
+
];
|
|
26902
|
+
const centeredLogoAccommodations = [
|
|
26903
|
+
titleOnlyLogoAccommodation,
|
|
26904
|
+
inlineWordmarkLogoAccommodation,
|
|
26905
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
26906
|
+
centeredMastheadAccommodation,
|
|
26907
|
+
centeredBadgeAccommodation
|
|
26908
|
+
];
|
|
26909
|
+
const overlayLogoAccommodations = [
|
|
26910
|
+
titleOnlyLogoAccommodation,
|
|
26911
|
+
inlineWordmarkLogoAccommodation,
|
|
26912
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
26913
|
+
unbackedOverlayLogoAccommodation
|
|
26914
|
+
];
|
|
26915
|
+
const allCuratedLogoAccommodations = [
|
|
26916
|
+
...inlineClassicLogoAccommodations,
|
|
26917
|
+
...centeredLogoAccommodations,
|
|
26918
|
+
...overlayLogoAccommodations
|
|
26919
|
+
];
|
|
26920
|
+
/**
|
|
26921
|
+
* Whether an accommodation pattern draws its own backing behind the logo.
|
|
26922
|
+
* Derived from the catalogue above rather than restated, so a new backing
|
|
26923
|
+
* accommodation cannot drift out of sync with this answer. Patterns declared in
|
|
26924
|
+
* `LogoAccommodationPattern` but not offered by any layout resolve to `false`,
|
|
26925
|
+
* which is the honest answer: nothing can select them.
|
|
26926
|
+
*/
|
|
26927
|
+
const backingLogoAccommodationPatterns = new Set(allCuratedLogoAccommodations.filter((option) => option.providesBacking === true).map((option) => option.pattern));
|
|
26928
|
+
function logoAccommodationProvidesBacking(pattern) {
|
|
26929
|
+
return backingLogoAccommodationPatterns.has(pattern);
|
|
26930
|
+
}
|
|
26931
|
+
/**
|
|
26932
|
+
* The single answer to "what shape is this site's logo" (#1318 Phase 4b).
|
|
26933
|
+
*
|
|
26934
|
+
* The server and the public frontend each had their own copy of this, and they
|
|
26935
|
+
* disagreed on the one case that matters: a logo whose dimensions are unknown.
|
|
26936
|
+
* The server assumed `horizontal`; the frontend asked whether the persisted
|
|
26937
|
+
* accommodation brings its own backing and answered `square` if it does. The
|
|
26938
|
+
* richer rule is the correct one — a badge or masthead accommodation is
|
|
26939
|
+
* evidence about the asset that raw dimensions would otherwise supply — and it
|
|
26940
|
+
* reduces to `horizontal` whenever there is no backing, so it subsumes the
|
|
26941
|
+
* server's rule rather than contradicting it. The backing question goes through
|
|
26942
|
+
* `logoAccommodationProvidesBacking`, so the pattern list has one home.
|
|
26943
|
+
*/
|
|
26944
|
+
function deriveHeaderLogoShape({ asset, accommodation }) {
|
|
26945
|
+
if (!asset) return "text-only";
|
|
26946
|
+
if (!asset.width || !asset.height) return accommodation !== void 0 && logoAccommodationProvidesBacking(accommodation) ? "square" : "horizontal";
|
|
26947
|
+
return deriveHeaderLogoShapeFromDimensions(asset);
|
|
26948
|
+
}
|
|
26949
|
+
/**
|
|
26950
|
+
* The site's logo as the header pipeline sees it. Stored asset facts win; older
|
|
26951
|
+
* assets without facts use the shape-only context with unknown text presence.
|
|
26952
|
+
* Geometry still comes from the two database values
|
|
26953
|
+
* that describe it: the asset (or its absence) and the accommodation the row
|
|
26954
|
+
* currently persists, which is evidence about the asset when its dimensions are
|
|
26955
|
+
* missing.
|
|
26956
|
+
*
|
|
26957
|
+
* One definition, shared by every shell that has to answer it — the dashboard's
|
|
26958
|
+
* `loadHeaderLogoContextForSite`, the public frontend, and the Phase 4c repair
|
|
26959
|
+
* generator — because a second copy is a second answer to "what shape is this
|
|
26960
|
+
* site's logo", and the two former copies disagreed on exactly the case this
|
|
26961
|
+
* one is careful about (#1318 Phase 4b/4c).
|
|
26962
|
+
*/
|
|
26963
|
+
function headerLogoShapeContext(input) {
|
|
26964
|
+
const facts = input.asset ? parseStoredLogoFacts(input.asset.logoFacts) : null;
|
|
26965
|
+
return {
|
|
26966
|
+
...facts ? {
|
|
26967
|
+
kind: "facts",
|
|
26968
|
+
facts
|
|
26969
|
+
} : {
|
|
26970
|
+
kind: "shape",
|
|
26971
|
+
shape: deriveHeaderLogoShape(input)
|
|
26972
|
+
},
|
|
26973
|
+
...input.brand?.brandDisplay === void 0 ? {} : { brandDisplayMode: input.brand.brandDisplay },
|
|
26974
|
+
...input.brand?.logoSize === void 0 ? {} : { sizePolicy: input.brand.logoSize }
|
|
26975
|
+
};
|
|
26976
|
+
}
|
|
26977
|
+
function logoFactsForHeaderContext(logo) {
|
|
26978
|
+
if (logo.kind === "facts") return logo.facts;
|
|
26979
|
+
switch (logo.shape) {
|
|
26980
|
+
case "none":
|
|
26981
|
+
case "text-only": return deterministicLogoFactsForShape("none");
|
|
26982
|
+
case "horizontal":
|
|
26983
|
+
case "square":
|
|
26984
|
+
case "tall": return deterministicLogoFactsForShape(logo.shape);
|
|
26985
|
+
default: return assertNever(logo.shape, "Unhandled header logo shape");
|
|
26986
|
+
}
|
|
26987
|
+
}
|
|
26988
|
+
const headerLayoutCatalog = defineExactCatalog()([
|
|
26989
|
+
{
|
|
26990
|
+
id: asHeaderLayoutId("classic"),
|
|
26991
|
+
label: "Classic",
|
|
26992
|
+
description: "Logo and navigation in one practical horizontal row.",
|
|
26993
|
+
variant: "classic",
|
|
26994
|
+
defaultPositioning: "sticky",
|
|
26995
|
+
shrinkOnScroll: false,
|
|
26996
|
+
logoAccommodations: inlineClassicLogoAccommodations,
|
|
26997
|
+
openingRequirement: "none"
|
|
26998
|
+
},
|
|
26999
|
+
{
|
|
27000
|
+
id: asHeaderLayoutId("centered"),
|
|
27001
|
+
label: "Centered",
|
|
27002
|
+
description: "Logo centered above a balanced navigation row.",
|
|
27003
|
+
variant: "centered",
|
|
27004
|
+
defaultPositioning: "static",
|
|
27005
|
+
shrinkOnScroll: false,
|
|
27006
|
+
logoAccommodations: centeredLogoAccommodations,
|
|
27007
|
+
openingRequirement: "none"
|
|
27008
|
+
},
|
|
27009
|
+
{
|
|
27010
|
+
id: asHeaderLayoutId("floating"),
|
|
27011
|
+
label: "Floating",
|
|
27012
|
+
description: "Detached header chrome that sits over the opening section.",
|
|
27013
|
+
variant: "floating",
|
|
27014
|
+
defaultPositioning: "sticky",
|
|
27015
|
+
shrinkOnScroll: true,
|
|
27016
|
+
logoAccommodations: overlayLogoAccommodations,
|
|
27017
|
+
openingRequirement: "requires-image-hero-with-contrast-overlay"
|
|
27018
|
+
}
|
|
27019
|
+
]);
|
|
27020
|
+
function supportedLayouts(ids) {
|
|
27021
|
+
return ids.map(asHeaderLayoutId);
|
|
27022
|
+
}
|
|
27023
|
+
const headerStyleCatalog = defineExactCatalog()([
|
|
27024
|
+
{
|
|
27025
|
+
id: asHeaderStyleId("minimal"),
|
|
27026
|
+
label: "Minimal",
|
|
27027
|
+
description: "Quiet surface with simple color-change navigation.",
|
|
27028
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27029
|
+
},
|
|
27030
|
+
{
|
|
27031
|
+
id: asHeaderStyleId("fine-line"),
|
|
27032
|
+
label: "Seamless",
|
|
27033
|
+
description: "Borderless surface with underline hover for a quieter page transition.",
|
|
27034
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27035
|
+
},
|
|
27036
|
+
{
|
|
27037
|
+
id: asHeaderStyleId("soft-bar"),
|
|
27038
|
+
label: "Soft Bar",
|
|
27039
|
+
description: "Soft tinted surface with gentle pill hover states.",
|
|
27040
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27041
|
+
},
|
|
27042
|
+
{
|
|
27043
|
+
id: asHeaderStyleId("pill-nav"),
|
|
27044
|
+
label: "Pill Nav",
|
|
27045
|
+
description: "A calm pill navigation rail over a neutral header.",
|
|
27046
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27047
|
+
},
|
|
27048
|
+
{
|
|
27049
|
+
id: asHeaderStyleId("brand-bar"),
|
|
27050
|
+
label: "Brand Bar",
|
|
27051
|
+
description: "Solid brand surface with high-contrast navigation.",
|
|
27052
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27053
|
+
},
|
|
27054
|
+
{
|
|
27055
|
+
id: asHeaderStyleId("brand-underline"),
|
|
27056
|
+
label: "Brand Underline",
|
|
27057
|
+
description: "Brand surface with underline-grow navigation.",
|
|
27058
|
+
supportedLayoutIds: supportedLayouts(["classic"])
|
|
27059
|
+
},
|
|
27060
|
+
{
|
|
27061
|
+
id: asHeaderStyleId("brand-pill"),
|
|
27062
|
+
label: "Brand Pill",
|
|
27063
|
+
description: "Solid brand surface with rounded active and hover states.",
|
|
27064
|
+
supportedLayoutIds: supportedLayouts([
|
|
27065
|
+
"classic",
|
|
27066
|
+
"centered",
|
|
27067
|
+
"floating"
|
|
27068
|
+
])
|
|
27069
|
+
},
|
|
27070
|
+
{
|
|
27071
|
+
id: asHeaderStyleId("brand-capsule"),
|
|
27072
|
+
label: "Brand Capsule",
|
|
27073
|
+
description: "Solid brand chrome designed as a floating capsule, with quiet-caps nav, a soft pill active state, and an inverted CTA pill.",
|
|
27074
|
+
supportedLayoutIds: supportedLayouts(["classic"])
|
|
27075
|
+
},
|
|
27076
|
+
{
|
|
27077
|
+
id: asHeaderStyleId("serif-line"),
|
|
27078
|
+
label: "Serif Line",
|
|
27079
|
+
description: "Typographic logo treatment with understated underline navigation.",
|
|
27080
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27081
|
+
},
|
|
27082
|
+
{
|
|
27083
|
+
id: asHeaderStyleId("flat-tabs"),
|
|
27084
|
+
label: "Flat Tabs",
|
|
27085
|
+
description: "Flat block hover and active states with a Swiss utility feel.",
|
|
27086
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
27087
|
+
},
|
|
27088
|
+
{
|
|
27089
|
+
id: asHeaderStyleId("glass"),
|
|
27090
|
+
label: "Glass",
|
|
27091
|
+
description: "Translucent chrome with frosted navigation backing.",
|
|
27092
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
27093
|
+
},
|
|
27094
|
+
{
|
|
27095
|
+
id: asHeaderStyleId("minimal-surface"),
|
|
27096
|
+
label: "Clear Split",
|
|
27097
|
+
description: "Floating logo with transparent navigation and no shared shell.",
|
|
27098
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
27099
|
+
},
|
|
27100
|
+
{
|
|
27101
|
+
id: asHeaderStyleId("soft-shell"),
|
|
27102
|
+
label: "Soft Shell",
|
|
27103
|
+
description: "Floating rounded shell with soft pill navigation states.",
|
|
27104
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
27105
|
+
},
|
|
27106
|
+
{
|
|
27107
|
+
id: asHeaderStyleId("split-glass"),
|
|
27108
|
+
label: "Split Glass",
|
|
27109
|
+
description: "Logo floats independently while the navigation sits in a glass rail.",
|
|
27110
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
27111
|
+
},
|
|
27112
|
+
{
|
|
27113
|
+
id: asHeaderStyleId("split-pill"),
|
|
27114
|
+
label: "Split Pill",
|
|
27115
|
+
description: "Logo floats independently with a soft pill-backed navigation rail.",
|
|
27116
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
27117
|
+
}
|
|
27118
|
+
]);
|
|
27119
|
+
new Map(headerLayoutCatalog.map((layout) => [layout.id, layout]));
|
|
27120
|
+
new Map(headerStyleCatalog.map((style) => [style.id, style]));
|
|
27121
|
+
//#endregion
|
|
26592
27122
|
//#region ../theme-core/src/site-styles/sectionPhotoGround.ts
|
|
26593
27123
|
/**
|
|
26594
27124
|
* How the Looks built on an arrangement use the photo. Looks that share an
|
|
@@ -27062,6 +27592,14 @@ function themeButtonExtraClassesWithTrailingIcon() {
|
|
|
27062
27592
|
return AFFORDANCE_SUPPRESS_CLASS;
|
|
27063
27593
|
}
|
|
27064
27594
|
//#endregion
|
|
27595
|
+
//#region ../theme-core/src/header/logoSurfaceTone.ts
|
|
27596
|
+
/** The brand uses the root surface, even when navigation owns a separate capsule. */
|
|
27597
|
+
function resolveHeaderLogoSurfaceTone(header, palette, surface) {
|
|
27598
|
+
if (surface === "header-mobile-panel") return surfaceToneFromForegroundToken(palette, header?.dropdownStyle?.textColor ?? "text");
|
|
27599
|
+
const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
|
|
27600
|
+
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header));
|
|
27601
|
+
}
|
|
27602
|
+
//#endregion
|
|
27065
27603
|
//#region ../blocks/src/lib/typeGuards.ts
|
|
27066
27604
|
/**
|
|
27067
27605
|
* Strict record guard: excludes null, primitives, and arrays.
|
|
@@ -27080,6 +27618,11 @@ function isObjectRecord$1(value) {
|
|
|
27080
27618
|
return typeof value === "object" && value !== null;
|
|
27081
27619
|
}
|
|
27082
27620
|
//#endregion
|
|
27621
|
+
//#region ../commerce/src/purchase/checkoutQuantity.ts
|
|
27622
|
+
function unsafeAsPositiveCheckoutQuantity(quantity) {
|
|
27623
|
+
return quantity;
|
|
27624
|
+
}
|
|
27625
|
+
//#endregion
|
|
27083
27626
|
//#region ../site-contracts/src/siteData/eventQueries.ts
|
|
27084
27627
|
const eventSurfacePresetValues = SURFACE_EVENT_PRESET_VALUES;
|
|
27085
27628
|
const eventSurfaceScopeValues = [
|
|
@@ -27502,6 +28045,7 @@ const bookingQuestionsAnswerValueSchema = z.union([
|
|
|
27502
28045
|
]);
|
|
27503
28046
|
const setSchema = z.object({
|
|
27504
28047
|
requirementId: z.string().min(1),
|
|
28048
|
+
sharingKey: z.string().min(1).optional(),
|
|
27505
28049
|
title: z.string(),
|
|
27506
28050
|
sections: z.array(sectionSchema)
|
|
27507
28051
|
});
|
|
@@ -27670,6 +28214,21 @@ z.strictObject({
|
|
|
27670
28214
|
const blockBookingPaymentTermsSchema = bookingPaymentTermsSchema;
|
|
27671
28215
|
//#endregion
|
|
27672
28216
|
//#region ../blocks/src/system/blocks/events/shared/schemas.ts
|
|
28217
|
+
const combinationOfferDetails = {
|
|
28218
|
+
id: z.string().uuid().transform((value) => value),
|
|
28219
|
+
label: z.string().min(1),
|
|
28220
|
+
sortOrder: z.number().int(),
|
|
28221
|
+
priceCents: z.number().int().nonnegative().transform(toNonNegativeCents)
|
|
28222
|
+
};
|
|
28223
|
+
const combinationOfferSchema = z.discriminatedUnion("kind", [z.object({
|
|
28224
|
+
...combinationOfferDetails,
|
|
28225
|
+
kind: z.literal("any"),
|
|
28226
|
+
itemCount: z.number().int().min(2).max(20).transform(unsafeAsPositiveCheckoutQuantity)
|
|
28227
|
+
}), z.object({
|
|
28228
|
+
...combinationOfferDetails,
|
|
28229
|
+
kind: z.literal("particular"),
|
|
28230
|
+
lineIds: z.array(z.string().uuid()).min(2).max(20)
|
|
28231
|
+
})]);
|
|
27673
28232
|
const eventPresetSchema = z.enum([
|
|
27674
28233
|
"event",
|
|
27675
28234
|
"class",
|
|
@@ -27881,7 +28440,9 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
27881
28440
|
"completed",
|
|
27882
28441
|
"cancelled"
|
|
27883
28442
|
]),
|
|
27884
|
-
sessions: z.array(publicRunSessionSchema)
|
|
28443
|
+
sessions: z.array(publicRunSessionSchema),
|
|
28444
|
+
courseTitle: z.string().optional(),
|
|
28445
|
+
runName: z.string().nullable().optional()
|
|
27885
28446
|
});
|
|
27886
28447
|
/**
|
|
27887
28448
|
* Zod schema for the fields shared by both booking scopes.
|
|
@@ -27899,6 +28460,8 @@ const publicEventBaseSchema = z.object({
|
|
|
27899
28460
|
occurrenceId: z.string(),
|
|
27900
28461
|
seriesId: z.string(),
|
|
27901
28462
|
title: z.string(),
|
|
28463
|
+
/** An occurrence's own authored title; absent when it inherits `title`. */
|
|
28464
|
+
occurrenceTitle: z.string().optional(),
|
|
27902
28465
|
facts: z.array(z.object({
|
|
27903
28466
|
label: z.string(),
|
|
27904
28467
|
value: z.string()
|
|
@@ -27957,7 +28520,13 @@ const publicEventBaseSchema = z.object({
|
|
|
27957
28520
|
allowedCategoryIds: z.array(z.string()),
|
|
27958
28521
|
requireGuestDetails: z.boolean().optional(),
|
|
27959
28522
|
acceptsPasses: z.boolean(),
|
|
27960
|
-
acceptsMemberships: z.boolean()
|
|
28523
|
+
acceptsMemberships: z.boolean(),
|
|
28524
|
+
/**
|
|
28525
|
+
* Whether people may book several dates (or runs) of this event at once.
|
|
28526
|
+
* Wire admission reads an older server, which never sends it, as off.
|
|
28527
|
+
*/
|
|
28528
|
+
allowsMultipleBooking: z.boolean().default(false),
|
|
28529
|
+
combinationPrices: z.array(combinationOfferSchema).default([])
|
|
27961
28530
|
});
|
|
27962
28531
|
/**
|
|
27963
28532
|
* Zod schema for public event data.
|
|
@@ -28730,12 +29299,10 @@ function scopeCsv(value) {
|
|
|
28730
29299
|
*/
|
|
28731
29300
|
function eventScopeQuery(scope) {
|
|
28732
29301
|
if (scope.kind === "selected") return { seriesIds: scope.seriesIds.join(",") };
|
|
28733
|
-
|
|
28734
|
-
for (const key of eventDiscoveryFilterKeys) {
|
|
29302
|
+
return Object.fromEntries(eventDiscoveryFilterKeys.flatMap((key) => {
|
|
28735
29303
|
const value = scopeCsv(scope.filters[key]);
|
|
28736
|
-
|
|
28737
|
-
}
|
|
28738
|
-
return query;
|
|
29304
|
+
return value === void 0 ? [] : [[discoveryQueryKey[key], value]];
|
|
29305
|
+
}));
|
|
28739
29306
|
}
|
|
28740
29307
|
/**
|
|
28741
29308
|
* A query value as a loader binding must return it. Binding resolution treats
|
|
@@ -36064,7 +36631,7 @@ const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(
|
|
|
36064
36631
|
//#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
|
|
36065
36632
|
/**
|
|
36066
36633
|
* Format event price for display.
|
|
36067
|
-
* @returns "Free", "£25", "£12–£25", "Free / £12–£25", "
|
|
36634
|
+
* @returns "Free", "£25", "£12–£25", "Free / £12–£25", "£220 for the course", etc.
|
|
36068
36635
|
*
|
|
36069
36636
|
* Events render compact amounts (no trailing ".00"); the actual ADT→string
|
|
36070
36637
|
* mapping lives in `formatBookingPriceDisplay` in @riverbankcms/core so all
|
|
@@ -36072,8 +36639,16 @@ const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(
|
|
|
36072
36639
|
*/
|
|
36073
36640
|
function formatEventPrice(event) {
|
|
36074
36641
|
const label = formatEventPricing(event.pricing, { decimals: "auto" });
|
|
36075
|
-
|
|
36076
|
-
|
|
36642
|
+
return event.bookingScope === "whole_series" ? formatCoursePrice(event.pricing) : label;
|
|
36643
|
+
}
|
|
36644
|
+
/**
|
|
36645
|
+
* A course's price, said for the whole course: one booking covers every
|
|
36646
|
+
* session, so "£72 for the course" rather than a bare "£72" next to one
|
|
36647
|
+
* session's length.
|
|
36648
|
+
*/
|
|
36649
|
+
function formatCoursePrice(pricing) {
|
|
36650
|
+
const label = formatEventPricing(pricing, { decimals: "auto" });
|
|
36651
|
+
return publicEventPricingDisplay(pricing).kind === "free" ? label : `${label} for the course`;
|
|
36077
36652
|
}
|
|
36078
36653
|
/**
|
|
36079
36654
|
* Format an event's price directly from its pricing value (without the full
|
|
@@ -39951,7 +40526,7 @@ function resolveBackgroundVisualStyles(backgroundColor, defaultToken = "surface"
|
|
|
39951
40526
|
};
|
|
39952
40527
|
}
|
|
39953
40528
|
function resolveHeaderVisualStyles(header) {
|
|
39954
|
-
if (
|
|
40529
|
+
if (headerRootIsTransparent(header)) return {
|
|
39955
40530
|
backgroundToken: "transparent",
|
|
39956
40531
|
isTransparent: true
|
|
39957
40532
|
};
|
|
@@ -40193,21 +40768,6 @@ const chromeLogoSchema = z.object({ surface: z.enum([
|
|
|
40193
40768
|
"header-mobile-panel",
|
|
40194
40769
|
"footer-root"
|
|
40195
40770
|
]) });
|
|
40196
|
-
/** The brand foreground shares the logo's surface; navigation may own a separate capsule. */
|
|
40197
|
-
function chromeSurfaceTextToken(surface, theme, palette) {
|
|
40198
|
-
switch (surface) {
|
|
40199
|
-
case "header-root": {
|
|
40200
|
-
const header = theme.header;
|
|
40201
|
-
const foreground = resolveHeaderRootForeground(header, palette, resolveHeaderVisualStyles(header).isTransparent);
|
|
40202
|
-
return foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header);
|
|
40203
|
-
}
|
|
40204
|
-
case "header-mobile-panel": return theme.header?.dropdownStyle?.textColor ?? "text";
|
|
40205
|
-
case "footer-root": {
|
|
40206
|
-
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
40207
|
-
return foreground.kind === "known" ? foreground.roles.text : void 0;
|
|
40208
|
-
}
|
|
40209
|
-
}
|
|
40210
|
-
}
|
|
40211
40771
|
function readChromeTheme(viewModel) {
|
|
40212
40772
|
return asPartialObject(asPartialObject(viewModel?.["$root"])?.theme) ?? {};
|
|
40213
40773
|
}
|
|
@@ -40216,7 +40776,9 @@ function readChromeTheme(viewModel) {
|
|
|
40216
40776
|
* transform and the editor's logo notice both judge "is this dark" here.
|
|
40217
40777
|
*/
|
|
40218
40778
|
function resolveChromeSurfaceToneForTheme(surface, theme, palette) {
|
|
40219
|
-
|
|
40779
|
+
if (surface !== "footer-root") return resolveHeaderLogoSurfaceTone(theme.header, palette, surface);
|
|
40780
|
+
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
40781
|
+
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : void 0);
|
|
40220
40782
|
}
|
|
40221
40783
|
function resolveChromeSurfaceTone(surface, context) {
|
|
40222
40784
|
return resolveChromeSurfaceToneForTheme(surface, readChromeTheme(context.viewModel), context.theme.palette);
|
|
@@ -40230,7 +40792,12 @@ function readLogoVariants(value) {
|
|
|
40230
40792
|
forDarkBackgrounds: variants.forDarkBackgrounds ?? null
|
|
40231
40793
|
};
|
|
40232
40794
|
}
|
|
40233
|
-
|
|
40795
|
+
/**
|
|
40796
|
+
* Picks the site logo for the surface it is drawn on. Bound from block
|
|
40797
|
+
* `content`: `logoVariants` when the renderer supplies both logos, otherwise
|
|
40798
|
+
* the single `logo` older callers pass.
|
|
40799
|
+
*/
|
|
40800
|
+
const chromeLogoTransform = {
|
|
40234
40801
|
id: "layout.chromeLogo",
|
|
40235
40802
|
kind: "formatter",
|
|
40236
40803
|
summary: "Select the light- or dark-background site logo for a header or footer surface",
|
|
@@ -40240,6 +40807,28 @@ const chromeLogoTransforms = [{
|
|
|
40240
40807
|
if (!variants) return asPartialObject(value)?.logo ?? null;
|
|
40241
40808
|
return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), variants);
|
|
40242
40809
|
}
|
|
40810
|
+
};
|
|
40811
|
+
const chromeLogoTransforms = [chromeLogoTransform, {
|
|
40812
|
+
id: "layout.headerBrandSettings",
|
|
40813
|
+
kind: "formatter",
|
|
40814
|
+
summary: "Resolve header brand display using the selected logo asset facts",
|
|
40815
|
+
schema: chromeLogoSchema,
|
|
40816
|
+
run: (content, options, context) => {
|
|
40817
|
+
const settings = readChromeTheme(context.viewModel).header?.logo;
|
|
40818
|
+
const selected = asPartialObject(chromeLogoTransform.run(content, options, context));
|
|
40819
|
+
const logo = headerLogoShapeContext({
|
|
40820
|
+
asset: selected ? {
|
|
40821
|
+
width: selected.width ?? null,
|
|
40822
|
+
height: selected.height ?? null,
|
|
40823
|
+
logoFacts: selected.logoFacts
|
|
40824
|
+
} : null,
|
|
40825
|
+
accommodation: settings?.accommodation
|
|
40826
|
+
});
|
|
40827
|
+
return {
|
|
40828
|
+
...settings,
|
|
40829
|
+
brandDisplay: resolveBrandDisplay(settings?.brandDisplay ?? "auto", logoFactsForHeaderContext(logo))
|
|
40830
|
+
};
|
|
40831
|
+
}
|
|
40243
40832
|
}];
|
|
40244
40833
|
const headerRuntimeTransforms = [{
|
|
40245
40834
|
id: "layout.headerRuntimeContract",
|
|
@@ -40398,20 +40987,11 @@ function toBiography(source) {
|
|
|
40398
40987
|
paragraphs: source
|
|
40399
40988
|
} : null;
|
|
40400
40989
|
const document = source;
|
|
40401
|
-
return
|
|
40990
|
+
return richTextHasText(document) ? {
|
|
40402
40991
|
kind: "document",
|
|
40403
40992
|
document
|
|
40404
40993
|
} : null;
|
|
40405
40994
|
}
|
|
40406
|
-
const textNodeSchema = z.object({
|
|
40407
|
-
text: z.string().optional(),
|
|
40408
|
-
content: z.array(z.unknown()).optional()
|
|
40409
|
-
});
|
|
40410
|
-
function hasText(node) {
|
|
40411
|
-
const parsed = textNodeSchema.safeParse(node);
|
|
40412
|
-
if (!parsed.success) return false;
|
|
40413
|
-
return (parsed.data.text?.trim().length ?? 0) > 0 || (parsed.data.content ?? []).some(hasText);
|
|
40414
|
-
}
|
|
40415
40995
|
//#endregion
|
|
40416
40996
|
//#region ../blocks/src/system/transforms/registry/content.ts
|
|
40417
40997
|
const supportedRichTextTokenSchema = z.enum(["year", "site_name"]);
|
|
@@ -40589,12 +41169,15 @@ function markEditableSurfaceForwarding(component) {
|
|
|
40589
41169
|
const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
|
|
40590
41170
|
//#endregion
|
|
40591
41171
|
//#region ../blocks/src/system/blocks/site-header.ts
|
|
40592
|
-
const whenTransformed = (
|
|
41172
|
+
const whenTransformed = (surface, transformId, equals = true) => (node) => ({
|
|
40593
41173
|
...node,
|
|
40594
41174
|
$when: {
|
|
40595
41175
|
when: {
|
|
40596
|
-
from,
|
|
40597
|
-
transforms: [{
|
|
41176
|
+
from: "content",
|
|
41177
|
+
transforms: [{
|
|
41178
|
+
id: "layout.headerBrandSettings",
|
|
41179
|
+
options: { surface }
|
|
41180
|
+
}, { id: transformId }]
|
|
40598
41181
|
},
|
|
40599
41182
|
equals
|
|
40600
41183
|
}
|
|
@@ -40610,31 +41193,31 @@ const bindChromeLogo = (surface) => bind("content", { transforms: [{
|
|
|
40610
41193
|
*/
|
|
40611
41194
|
const createLogoRow = (surface) => link({
|
|
40612
41195
|
href: "/",
|
|
40613
|
-
className: bindProp("
|
|
40614
|
-
transforms: pipe(tx("layout.headerLogoClass")),
|
|
41196
|
+
className: bindProp("content", {
|
|
41197
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoClass")),
|
|
40615
41198
|
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"
|
|
40616
41199
|
})
|
|
40617
|
-
}, [media({ className: bindProp("
|
|
40618
|
-
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
41200
|
+
}, [media({ className: bindProp("content", {
|
|
41201
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
40619
41202
|
fallback: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300"
|
|
40620
41203
|
}) }, when("content.logo"), bindChromeLogo(surface)), text({
|
|
40621
41204
|
as: "strong",
|
|
40622
41205
|
className: "header-logo-text rb-truncate"
|
|
40623
|
-
}, whenTransformed(
|
|
41206
|
+
}, whenTransformed(surface, "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
40624
41207
|
const logoRow = createLogoRow("header-root");
|
|
40625
41208
|
const centeredLogoRow = link({
|
|
40626
41209
|
href: "/",
|
|
40627
|
-
className: bindProp("
|
|
40628
|
-
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" })),
|
|
41210
|
+
className: bindProp("content", {
|
|
41211
|
+
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" })),
|
|
40629
41212
|
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"
|
|
40630
41213
|
})
|
|
40631
|
-
}, [media({ className: bindProp("
|
|
40632
|
-
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
41214
|
+
}, [media({ className: bindProp("content", {
|
|
41215
|
+
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" })),
|
|
40633
41216
|
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
40634
41217
|
}) }, when("content.logo"), bindChromeLogo("header-root")), text({
|
|
40635
41218
|
as: "strong",
|
|
40636
41219
|
className: "header-logo-text"
|
|
40637
|
-
}, whenTransformed("
|
|
41220
|
+
}, whenTransformed("header-root", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
40638
41221
|
const createNavRow = (className, align = "end") => navRow({
|
|
40639
41222
|
className: `${className} header-nav-row`,
|
|
40640
41223
|
align,
|
|
@@ -43710,83 +44293,6 @@ function normalizeEventStaffMemberId(value) {
|
|
|
43710
44293
|
return trimmed ? trimmed : null;
|
|
43711
44294
|
}
|
|
43712
44295
|
//#endregion
|
|
43713
|
-
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
43714
|
-
/**
|
|
43715
|
-
* Flat occurrence context passed from `PageRenderer.$root.occurrenceContext`.
|
|
43716
|
-
* Kept in a shared module so the block definition and runtime contracts can
|
|
43717
|
-
* depend on the same schema without creating an initialization cycle.
|
|
43718
|
-
*/
|
|
43719
|
-
const occurrenceContextSchema = z.object({
|
|
43720
|
-
id: z.string(),
|
|
43721
|
-
seriesId: z.string(),
|
|
43722
|
-
startsAt: z.string(),
|
|
43723
|
-
endsAt: z.string(),
|
|
43724
|
-
timeZone: z.string(),
|
|
43725
|
-
capacityOverride: z.number().nullable().optional(),
|
|
43726
|
-
overrides: z.record(z.string(), z.unknown()).nullable().optional()
|
|
43727
|
-
}).nullable();
|
|
43728
|
-
//#endregion
|
|
43729
|
-
//#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
|
|
43730
|
-
const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
|
|
43731
|
-
//#endregion
|
|
43732
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/closedRunCopy.ts
|
|
43733
|
-
const copy = {
|
|
43734
|
-
cancelled: {
|
|
43735
|
-
titleText: "These dates have been cancelled",
|
|
43736
|
-
bodyText: "These dates are no longer going ahead. If you had a place booked, the organiser will be in touch."
|
|
43737
|
-
},
|
|
43738
|
-
"in-progress": {
|
|
43739
|
-
titleText: "Bookings for these dates have closed",
|
|
43740
|
-
bodyText: "Booking closed when the first session began. The organiser may still be able to help if you would like to join."
|
|
43741
|
-
},
|
|
43742
|
-
completed: {
|
|
43743
|
-
titleText: "These dates have finished",
|
|
43744
|
-
bodyText: "These dates have all taken place. The details are kept here for reference."
|
|
43745
|
-
},
|
|
43746
|
-
"enrolment-closed": {
|
|
43747
|
-
titleText: "Booking closed",
|
|
43748
|
-
bodyText: "Bookings are no longer being taken for these dates."
|
|
43749
|
-
},
|
|
43750
|
-
"no-sessions": {
|
|
43751
|
-
titleText: "No dates are currently scheduled",
|
|
43752
|
-
bodyText: "There are no dates to book at the moment. The organiser may add more, and anything already booked still stands."
|
|
43753
|
-
}
|
|
43754
|
-
};
|
|
43755
|
-
function closedRunCopy(reason) {
|
|
43756
|
-
return copy[reason];
|
|
43757
|
-
}
|
|
43758
|
-
//#endregion
|
|
43759
|
-
//#region ../blocks/src/system/runtime/shared/navigation/pageNavigation.ts
|
|
43760
|
-
const pageNavigationSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("page") }), z.object({
|
|
43761
|
-
kind: z.literal("embed"),
|
|
43762
|
-
canonicalOrigin: z.string().url()
|
|
43763
|
-
})]);
|
|
43764
|
-
//#endregion
|
|
43765
|
-
//#region ../blocks/src/system/blocks/shared/siteTerms.ts
|
|
43766
|
-
const versionId = z.string().uuid().transform((value, ctx) => {
|
|
43767
|
-
const parsed = parseSiteTermsVersionId(value);
|
|
43768
|
-
if (parsed.ok) return parsed.value;
|
|
43769
|
-
ctx.addIssue({
|
|
43770
|
-
code: "custom",
|
|
43771
|
-
message: "Invalid site terms version"
|
|
43772
|
-
});
|
|
43773
|
-
return z.NEVER;
|
|
43774
|
-
});
|
|
43775
|
-
const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("none") }), z.object({
|
|
43776
|
-
kind: z.literal("published"),
|
|
43777
|
-
version: z.object({
|
|
43778
|
-
id: versionId,
|
|
43779
|
-
number: z.number().int().positive(),
|
|
43780
|
-
generation: z.number().int().positive()
|
|
43781
|
-
}),
|
|
43782
|
-
businessName: z.string(),
|
|
43783
|
-
href: z.string().min(1).nullable()
|
|
43784
|
-
})]);
|
|
43785
|
-
z.object({
|
|
43786
|
-
versionId,
|
|
43787
|
-
alreadyAgreed: z.boolean()
|
|
43788
|
-
});
|
|
43789
|
-
//#endregion
|
|
43790
44296
|
//#region ../blocks/src/system/runtime/nodes/events/domain/capacity.ts
|
|
43791
44297
|
/**
|
|
43792
44298
|
* Compute remaining spots for an event from `availableSpots` with a fallback
|
|
@@ -44065,6 +44571,83 @@ function rowFor(rows, mode) {
|
|
|
44065
44571
|
return mode === "online" ? rows.online : rows.inPerson;
|
|
44066
44572
|
}
|
|
44067
44573
|
//#endregion
|
|
44574
|
+
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
44575
|
+
/**
|
|
44576
|
+
* Flat occurrence context passed from `PageRenderer.$root.occurrenceContext`.
|
|
44577
|
+
* Kept in a shared module so the block definition and runtime contracts can
|
|
44578
|
+
* depend on the same schema without creating an initialization cycle.
|
|
44579
|
+
*/
|
|
44580
|
+
const occurrenceContextSchema = z.object({
|
|
44581
|
+
id: z.string(),
|
|
44582
|
+
seriesId: z.string(),
|
|
44583
|
+
startsAt: z.string(),
|
|
44584
|
+
endsAt: z.string(),
|
|
44585
|
+
timeZone: z.string(),
|
|
44586
|
+
capacityOverride: z.number().nullable().optional(),
|
|
44587
|
+
overrides: z.record(z.string(), z.unknown()).nullable().optional()
|
|
44588
|
+
}).nullable();
|
|
44589
|
+
//#endregion
|
|
44590
|
+
//#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
|
|
44591
|
+
const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
|
|
44592
|
+
//#endregion
|
|
44593
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/closedRunCopy.ts
|
|
44594
|
+
const copy = {
|
|
44595
|
+
cancelled: {
|
|
44596
|
+
titleText: "These dates have been cancelled",
|
|
44597
|
+
bodyText: "These dates are no longer going ahead. If you had a place booked, the organiser will be in touch."
|
|
44598
|
+
},
|
|
44599
|
+
"in-progress": {
|
|
44600
|
+
titleText: "Bookings for these dates have closed",
|
|
44601
|
+
bodyText: "Booking closed when the first session began. The organiser may still be able to help if you would like to join."
|
|
44602
|
+
},
|
|
44603
|
+
completed: {
|
|
44604
|
+
titleText: "These dates have finished",
|
|
44605
|
+
bodyText: "These dates have all taken place. The details are kept here for reference."
|
|
44606
|
+
},
|
|
44607
|
+
"enrolment-closed": {
|
|
44608
|
+
titleText: "Booking closed",
|
|
44609
|
+
bodyText: "Bookings are no longer being taken for these dates."
|
|
44610
|
+
},
|
|
44611
|
+
"no-sessions": {
|
|
44612
|
+
titleText: "No dates are currently scheduled",
|
|
44613
|
+
bodyText: "There are no dates to book at the moment. The organiser may add more, and anything already booked still stands."
|
|
44614
|
+
}
|
|
44615
|
+
};
|
|
44616
|
+
function closedRunCopy(reason) {
|
|
44617
|
+
return copy[reason];
|
|
44618
|
+
}
|
|
44619
|
+
//#endregion
|
|
44620
|
+
//#region ../blocks/src/system/runtime/shared/navigation/pageNavigation.ts
|
|
44621
|
+
const pageNavigationSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("page") }), z.object({
|
|
44622
|
+
kind: z.literal("embed"),
|
|
44623
|
+
canonicalOrigin: z.string().url()
|
|
44624
|
+
})]);
|
|
44625
|
+
//#endregion
|
|
44626
|
+
//#region ../blocks/src/system/blocks/shared/siteTerms.ts
|
|
44627
|
+
const versionId = z.string().uuid().transform((value, ctx) => {
|
|
44628
|
+
const parsed = parseSiteTermsVersionId(value);
|
|
44629
|
+
if (parsed.ok) return parsed.value;
|
|
44630
|
+
ctx.addIssue({
|
|
44631
|
+
code: "custom",
|
|
44632
|
+
message: "Invalid site terms version"
|
|
44633
|
+
});
|
|
44634
|
+
return z.NEVER;
|
|
44635
|
+
});
|
|
44636
|
+
const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("none") }), z.object({
|
|
44637
|
+
kind: z.literal("published"),
|
|
44638
|
+
version: z.object({
|
|
44639
|
+
id: versionId,
|
|
44640
|
+
number: z.number().int().positive(),
|
|
44641
|
+
generation: z.number().int().positive()
|
|
44642
|
+
}),
|
|
44643
|
+
businessName: z.string(),
|
|
44644
|
+
href: z.string().min(1).nullable()
|
|
44645
|
+
})]);
|
|
44646
|
+
z.object({
|
|
44647
|
+
versionId,
|
|
44648
|
+
alreadyAgreed: z.boolean()
|
|
44649
|
+
});
|
|
44650
|
+
//#endregion
|
|
44068
44651
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationDisplay.ts
|
|
44069
44652
|
const registrationDisplaySchema = z.object({
|
|
44070
44653
|
venue: z.enum(["shown", "hidden"]),
|
|
@@ -44520,50 +45103,6 @@ function eventWeekGroupingContext(today, timeZone, startOfWeek = eventCalendarWe
|
|
|
44520
45103
|
};
|
|
44521
45104
|
}
|
|
44522
45105
|
//#endregion
|
|
44523
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
44524
|
-
function toRegistrationEvent(event) {
|
|
44525
|
-
return {
|
|
44526
|
-
...event,
|
|
44527
|
-
selectionId: event.id,
|
|
44528
|
-
registrationSubject: {
|
|
44529
|
-
kind: "occurrence",
|
|
44530
|
-
occurrenceId: event.occurrenceId
|
|
44531
|
-
}
|
|
44532
|
-
};
|
|
44533
|
-
}
|
|
44534
|
-
function toRegistrationEvents(events) {
|
|
44535
|
-
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
44536
|
-
}
|
|
44537
|
-
/**
|
|
44538
|
-
* Project one whole-series run onto the registration surface.
|
|
44539
|
-
*
|
|
44540
|
-
* Capacity, pricing, payment terms and consent come straight off the canonical
|
|
44541
|
-
* Event record; only the schedule is widened from the single occurrence to the
|
|
44542
|
-
* live run. A run without live sessions has no registration event.
|
|
44543
|
-
*/
|
|
44544
|
-
function toWholeSeriesRegistrationEvent(group) {
|
|
44545
|
-
const { representative, run } = group;
|
|
44546
|
-
const sessions = orderedLiveRunSessions(run.sessions);
|
|
44547
|
-
const firstSession = sessions[0];
|
|
44548
|
-
if (!firstSession) return null;
|
|
44549
|
-
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
44550
|
-
return {
|
|
44551
|
-
...representative,
|
|
44552
|
-
selectionId: run.eventSeriesId,
|
|
44553
|
-
registrationSubject: {
|
|
44554
|
-
kind: "wholeSeries",
|
|
44555
|
-
eventSeriesId: run.eventSeriesId,
|
|
44556
|
-
sessions
|
|
44557
|
-
},
|
|
44558
|
-
startsAt: firstSession.startsAt,
|
|
44559
|
-
endsAt: lastSession.endsAt,
|
|
44560
|
-
timeZone: firstSession.timeZone
|
|
44561
|
-
};
|
|
44562
|
-
}
|
|
44563
|
-
function toWholeSeriesRegistrationEvents(events) {
|
|
44564
|
-
return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
|
|
44565
|
-
}
|
|
44566
|
-
//#endregion
|
|
44567
45106
|
//#region ../blocks/src/system/runtime/nodes/spinner.tsx
|
|
44568
45107
|
function resolveColorStyle(color) {
|
|
44569
45108
|
switch (color) {
|
|
@@ -44984,6 +45523,7 @@ function withOccurrenceTitle(event, occurrence) {
|
|
|
44984
45523
|
title
|
|
44985
45524
|
} : event;
|
|
44986
45525
|
}
|
|
45526
|
+
/** A course runs from its first session's start until its last session ends. */
|
|
44987
45527
|
function courseSchedule(sessions, siteTimeZone, deliveryMode) {
|
|
44988
45528
|
const first = sessions[0];
|
|
44989
45529
|
if (!first) return null;
|
|
@@ -44993,8 +45533,12 @@ function courseSchedule(sessions, siteTimeZone, deliveryMode) {
|
|
|
44993
45533
|
siteTimeZone,
|
|
44994
45534
|
deliveryMode
|
|
44995
45535
|
});
|
|
44996
|
-
if (
|
|
44997
|
-
|
|
45536
|
+
if (sessions.length === 1) return `1 session · ${formatBookingWhen({
|
|
45537
|
+
...first,
|
|
45538
|
+
siteTimeZone,
|
|
45539
|
+
deliveryMode
|
|
45540
|
+
}, "long")}`;
|
|
45541
|
+
const lastLabel = formatEventDateTime(last.endsAt, {
|
|
44998
45542
|
timeZone: last.timeZone,
|
|
44999
45543
|
siteTimeZone,
|
|
45000
45544
|
deliveryMode
|
|
@@ -45029,6 +45573,51 @@ function scheduleInput(event, occurrence) {
|
|
|
45029
45573
|
};
|
|
45030
45574
|
}
|
|
45031
45575
|
//#endregion
|
|
45576
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
45577
|
+
function toRegistrationEvent(event) {
|
|
45578
|
+
return {
|
|
45579
|
+
...event,
|
|
45580
|
+
selectionId: event.id,
|
|
45581
|
+
registrationSubject: {
|
|
45582
|
+
kind: "occurrence",
|
|
45583
|
+
occurrenceId: event.occurrenceId
|
|
45584
|
+
}
|
|
45585
|
+
};
|
|
45586
|
+
}
|
|
45587
|
+
function toRegistrationEvents(events) {
|
|
45588
|
+
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
45589
|
+
}
|
|
45590
|
+
/**
|
|
45591
|
+
* Project one whole-series run onto the registration surface.
|
|
45592
|
+
*
|
|
45593
|
+
* Capacity, pricing, payment terms and consent come straight off the canonical
|
|
45594
|
+
* Event record; only the schedule is widened from the single occurrence to the
|
|
45595
|
+
* live run. A run without live sessions has no registration event.
|
|
45596
|
+
*/
|
|
45597
|
+
function toWholeSeriesRegistrationEvent(group) {
|
|
45598
|
+
const { representative, run } = group;
|
|
45599
|
+
const sessions = orderedLiveRunSessions(run.sessions);
|
|
45600
|
+
const firstSession = sessions[0];
|
|
45601
|
+
if (!firstSession) return null;
|
|
45602
|
+
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
45603
|
+
return {
|
|
45604
|
+
...representative,
|
|
45605
|
+
selectionId: run.eventSeriesId,
|
|
45606
|
+
registrationSubject: {
|
|
45607
|
+
kind: "wholeSeries",
|
|
45608
|
+
eventSeriesId: run.eventSeriesId,
|
|
45609
|
+
eventOfferingId: run.eventOfferingId,
|
|
45610
|
+
sessions
|
|
45611
|
+
},
|
|
45612
|
+
startsAt: firstSession.startsAt,
|
|
45613
|
+
endsAt: lastSession.endsAt,
|
|
45614
|
+
timeZone: firstSession.timeZone
|
|
45615
|
+
};
|
|
45616
|
+
}
|
|
45617
|
+
function toWholeSeriesRegistrationEvents(events) {
|
|
45618
|
+
return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
|
|
45619
|
+
}
|
|
45620
|
+
//#endregion
|
|
45032
45621
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
45033
45622
|
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
45034
45623
|
return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
|
|
@@ -45071,7 +45660,9 @@ function registrationRoute(input) {
|
|
|
45071
45660
|
}
|
|
45072
45661
|
const REGISTRATION_STEP_LABELS = [
|
|
45073
45662
|
"Event",
|
|
45663
|
+
"Choose what to book",
|
|
45074
45664
|
"Date",
|
|
45665
|
+
"Dates",
|
|
45075
45666
|
"Tickets",
|
|
45076
45667
|
"Places",
|
|
45077
45668
|
"Your details",
|
|
@@ -45083,17 +45674,29 @@ function getEventSelectionMode(events) {
|
|
|
45083
45674
|
const firstSeriesId = events[0]?.seriesId;
|
|
45084
45675
|
return events.length > 1 && firstSeriesId && events.every((event) => event.seriesId === firstSeriesId) ? "date" : "event";
|
|
45085
45676
|
}
|
|
45677
|
+
/** Several runs of one course that can be booked together, as the selection step lists them. */
|
|
45678
|
+
function severalRuns(events) {
|
|
45679
|
+
const offerings = new Set(events.map((event) => event.registrationSubject?.kind === "wholeSeries" ? event.registrationSubject.eventOfferingId : null));
|
|
45680
|
+
return events.length > 1 && offerings.size === 1 && !offerings.has(null) && events.every((event) => event.allowsMultipleBooking === true);
|
|
45681
|
+
}
|
|
45086
45682
|
/** The label facts for a surface: what the visitor chooses from, and what they book. */
|
|
45087
45683
|
function registrationStepLabelContext(scopedEvents, bookedEvent) {
|
|
45684
|
+
const mode = getEventSelectionMode(scopedEvents);
|
|
45685
|
+
const several = scopedEvents.every((event) => event.allowsMultipleBooking === true);
|
|
45088
45686
|
return {
|
|
45089
|
-
eventSelection:
|
|
45687
|
+
eventSelection: mode === "date" && several ? "dates" : severalRuns(scopedEvents) ? "runs" : mode,
|
|
45090
45688
|
booksWholeSeries: bookedEvent?.registrationSubject.kind === "wholeSeries"
|
|
45091
45689
|
};
|
|
45092
45690
|
}
|
|
45093
45691
|
/** One label owner for the live progress and the server placeholder. */
|
|
45094
45692
|
function registrationStepLabel(step, context) {
|
|
45095
45693
|
switch (step) {
|
|
45096
|
-
case "select-event":
|
|
45694
|
+
case "select-event": switch (context.eventSelection) {
|
|
45695
|
+
case "date": return "Date";
|
|
45696
|
+
case "dates": return "Dates";
|
|
45697
|
+
case "runs": return "Choose what to book";
|
|
45698
|
+
case "event": return "Event";
|
|
45699
|
+
}
|
|
45097
45700
|
case "select-tickets": return context.booksWholeSeries ? "Places" : "Tickets";
|
|
45098
45701
|
case "enter-details": return "Your details";
|
|
45099
45702
|
case "select-payment": return "How you’ll pay";
|
|
@@ -48406,9 +49009,16 @@ function selectCardListPresentation(source) {
|
|
|
48406
49009
|
[key]: source[key]
|
|
48407
49010
|
}), {});
|
|
48408
49011
|
}
|
|
48409
|
-
/**
|
|
49012
|
+
/**
|
|
49013
|
+
* Date rows that carry places own availability; a course's rows don't, since
|
|
49014
|
+
* its places belong to the whole course. A missing batch still uses the summary.
|
|
49015
|
+
*/
|
|
48410
49016
|
function resolveCardListSchedule(item, mode) {
|
|
48411
|
-
|
|
49017
|
+
if (mode !== "next-dates" || !item.dates?.length) return {
|
|
49018
|
+
part: "schedule",
|
|
49019
|
+
item
|
|
49020
|
+
};
|
|
49021
|
+
return item.dates.some((date) => date.places) ? {
|
|
48412
49022
|
part: "dates",
|
|
48413
49023
|
item: {
|
|
48414
49024
|
...item,
|
|
@@ -48416,7 +49026,7 @@ function resolveCardListSchedule(item, mode) {
|
|
|
48416
49026
|
availability: null
|
|
48417
49027
|
}
|
|
48418
49028
|
} : {
|
|
48419
|
-
part: "
|
|
49029
|
+
part: "dates",
|
|
48420
49030
|
item
|
|
48421
49031
|
};
|
|
48422
49032
|
}
|
|
@@ -48466,9 +49076,9 @@ const partRenderers = {
|
|
|
48466
49076
|
...listLookSlot(presentation, "schedule"),
|
|
48467
49077
|
children: item.schedule
|
|
48468
49078
|
}) : null,
|
|
48469
|
-
dates: ({ item, presentation }) => item.dates?.length ? /* @__PURE__ */
|
|
49079
|
+
dates: ({ item, presentation }) => item.dates?.length ? /* @__PURE__ */ jsxs("ul", {
|
|
48470
49080
|
...listLookSlot(presentation, "dates"),
|
|
48471
|
-
children: item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
|
|
49081
|
+
children: [item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
|
|
48472
49082
|
...listLookSlot(presentation, "date"),
|
|
48473
49083
|
children: [
|
|
48474
49084
|
/* @__PURE__ */ jsx("time", {
|
|
@@ -48487,7 +49097,10 @@ const partRenderers = {
|
|
|
48487
49097
|
extraClassName: "rb-card-list-date-booking"
|
|
48488
49098
|
}) : null
|
|
48489
49099
|
]
|
|
48490
|
-
}, `${date.startsAt}-${index}`))
|
|
49100
|
+
}, `${date.startsAt}-${index}`)), item.datesMore ? /* @__PURE__ */ jsx("li", {
|
|
49101
|
+
"data-dates-more": true,
|
|
49102
|
+
children: item.datesMore
|
|
49103
|
+
}) : null]
|
|
48491
49104
|
}) : null,
|
|
48492
49105
|
availability: ({ item, presentation }) => item.availability ? /* @__PURE__ */ jsx("p", {
|
|
48493
49106
|
...listLookSlot(presentation, "availability"),
|
|
@@ -48542,6 +49155,11 @@ function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
|
48542
49155
|
})
|
|
48543
49156
|
}) : item.title
|
|
48544
49157
|
}),
|
|
49158
|
+
item.subtitle ? /* @__PURE__ */ jsx("p", {
|
|
49159
|
+
className: "rb-card-list-subtitle rb-caption",
|
|
49160
|
+
"data-card-subtitle": true,
|
|
49161
|
+
children: item.subtitle
|
|
49162
|
+
}) : null,
|
|
48545
49163
|
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
48546
49164
|
facts: item.quickFacts,
|
|
48547
49165
|
context: "card"
|
|
@@ -57517,4 +58135,4 @@ function listBlockDescriptors() {
|
|
|
57517
58135
|
}));
|
|
57518
58136
|
}
|
|
57519
58137
|
//#endregion
|
|
57520
|
-
export { RichText as $, generateNavLinkCSS as $a, projectRecurringSchedule as $i, listLookControl as $n, resolveRepeaterGridColumnFieldId as $o, lookLeadSlotTransform as $r, parseGradientPresetId as $s, formatEventNextDateFact as $t, publicRouteCandidatesSchema as A, styleSectionBackgroundForColour as Aa, eventReadinessLoaderKey as Ai, parseTeamMemberSpecialties as An, lookModes as Ao, formCopyFragment as Ar, inferSiteDateLocale as As, resolveOfferingsPreviewGroups as At, buildEventCollectionHydration as B, componentRuntimeRulesForSiteStyle as Ba, eventCalendarListGroupingDecision as Bi, resolveHeroTitleLength as Bn, toNonEmptyReadonlyArray as Bo, normalizeBoxStylesBorder as Br, toUtcIsoDateTimeString as Bs, eventWeekGroupingContext as Bt, buildProductListInteractiveIslandProps as C, arrangementLookHooks as Ca, parseInlineTextFromUnknown as Ci, shouldReserveFeatureCardIconZone as Cn, parseCanonicalRuntimeBackground as Co, headingFragment as Cr, projectPublicLocation as Cs, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ct, membershipClassesLabel as D, getCompatibleBlockAppearancePresets as Da, parseFieldDefinitions as Di, markEditableSurfaceForwarding as Dn, themeV2CompilerOwnedFieldNames as Do, blogFeaturedPostFragment as Dr, formatDate$2 as Ds, offeringRunLifecycle as Dt, membershipCardListContent as E, compileArrangementLookRuntime as Ea, parseFieldDefinition as Ei, composeHeaderSectionWrapperClassName as En, stripStaleTransitionStyleGroup as Eo, faqHeadingFragment as Er, mapDrawingSchema as Es, normalizeOfferingsPreviewItemLimit as Et, buildEventCalendarListingDisplay as F, resolvePublishedLook as Fa, eventScopeLoaderParam as Fi, mediaTransforms as Fn, introCompositionTreatmentValues as Fo, ctaRowFragment as Fr, getLocalScheduleDate as Fs, ThemedDownloadLink as Ft, catalogueEventCardProps as G, stripCompiledRuntimeStyleFields as Ga, addDays as Gi, buildFormInteractiveIslandProps as Gn, DEFAULT_MEDIA_FIELD_KINDS as Go, resolveSectionSurfaceForeground as Gr, publicEventPricingDisplay as Gs, eventDateOptions as Gt, eventCollectionDisplaySchemaShape as H, getCuratedSiteStyle as Ha, resolveEventCalendarReadPlan as Hi, formattingTransforms as Hn, cardListKnobBlocks as Ho, parseBackgroundContent as Hr, formatBookingPriceDisplay as Hs, weekColumnDays as Ht, combinedLookSchema as I, buildInitialPolicyPageDesignIntent as Ia, eventScopeQuery as Ii, headerRuntimeTransforms as In, offeringsPreviewCompositionTreatmentValues as Io, isBlockButtonRole as Ir, parseBookingLocalDate as Is, getIconComponent as It, CardListLeadDate as J, getGradientPreset as Ja, getOrderedDayNames as Ji, defineInteractiveIslandMetaKeys as Jn, builtInBlockKindsSchema as Jo, ctaButton as Jr, resolvePricingOptionsPriceDisplay as Js, formatDate as Jt, listingEventCardProps as K, surfaceResolutionContextFromTheme as Ka, formatDateKey as Ki, buildInteractiveIslandProps as Kn, blockCategoryEnum as Ko, resolveSurfaceForegroundStyles as Kr, publicEventPricingType as Ks, eventLocalDateKey as Kt, eventListingBlockDefinition as L, deriveSiteStyleBlockPolicy as La, eventScopeQueryKeys as Li, chromeLogoTransforms as Ln, plainFrame as Lo, heroCopyFragment as Lr, parseLocalScheduleTime as Ls, SpinnerNode as Lt, offeringsCatalogueShape as M, readStoredMode as Ma, eventReadinessQueryKeys as Mi, teamMemberCardBiography as Mn, defineBlockDesignCapability as Mo, testimonialsHeadingFragment as Mr, toScheduledBookingDateTime as Ms, ThemedAuthoredButton as Mt, eventCalendarBlockDefinition as N, resolveEffectiveArrangement as Na, eventReadinessResultSchema as Ni, readRuntimeNow as Nn, designIssueSeverityForPolicy as No, ctaCopyFragment as Nr, compareLocalScheduleDates as Ns, ThemedButton as Nt, passCardListContent as O, resolveArrangementLookForBlock as Oa, PUBLIC_DOWNLOAD_MEDIA_TYPES as Oi, splitPositioningClasses as On, appearancePresets as Oo, singleButtonFragment as Or, formatDateRange as Os, offeringsListingFor as Ot, buildEventCalendarInteractiveIslandProps as P, resolveModeArrangement as Pa, eventDiscoveryFilterKeys as Pi, resolveDateRuntimeContext as Pn, featureCardCompositionTreatmentValues as Po, heroCtaRowFragment as Pr, getBookingLocalDateKey as Ps, ThemedButtonLink as Pt, MediaNodeServer as Q, buildTextContrastShadow as Qa, isToday as Qi, listItemPresentation as Qn, parseRepeaterGridInteger as Qo, lookCarouselRegionTransform as Qr, unsafeAsEventCategoryId$1 as Qs, formatEventHourLabel as Qt, buildEventListingInteractiveIslandProps as R, filterLayoutProfilesForPolicy as Ra, resolveEventScope as Ri, layoutTransforms as Rn, sectionBackgroundPaintValues as Ro, boxStylesTransforms as Rr, resolveBookingBusinessTimeZone as Rs, buildEventListWeek as Rt, buildProductDetailInteractiveIslandProps as S, arrangementAppearancePresets as Sa, isInlineTextEmpty as Si, resolveFeatureCardGeneratedIconSizePx as Sn, deriveSectionGround as So, richTextFragment as Sr, normalizeLocationAddressText as Ss, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as St, shopProductPresentation as T, automaticArrangementLook as Ta, normalizeSelectSource as Ti, siteHeaderManifest as Tn, sectionSurfaceBase as To, faqAccordionFragment as Tr, trimmedStringOrNull as Ts, groupOfferingRunsByCourse as Tt, eventCollectionHydrationSchema as U, requireCuratedSiteStyle as Ua, getLocalDateKey as Ui, formatDate$1 as Un, NodeSchema as Uo, parseBackgroundOverlay as Ur, isPublicEventPricingOptionDisplayable as Us, buildCalendarViewport as Ut, buildEventCollectionListingDisplay as V, designRuntimeRulesForSiteStyle as Va, eventCalendarListLayoutOptions as Vi, uiTransforms as Vn, cardListFamilyBlocks as Vo, resolveCardRoleForBoxStyles as Vr, offeringLabelForPageSurfaceSubject as Vs, groupEventsByWeek as Vt, eventCollectionSourceSchemaShape as W, compilePageRuntimeFields as Wa, getLocalMinuteOfDay as Wi, formBlockDefinition as Wn, bindingSchema as Wo, parseRuntimeBackgroundContent as Wr, publicEventPricingCurrency as Ws, eventCalendarWeekStart as Wt, resolveCardListSchedule as X, generateDefaultCardSystem as Xa, getWeekCalendarDays as Xi, defineClientOwnedBlockRuntime as Xn, validateManifestLookField as Xo, bodyCopyFragment as Xr, parseContentVersionId as Xs, formatEventCompactDateRail as Xt, cardListPresentationSchemaShape as Y, resolveCardRole as Ya, getWeekCalendarDayTuple as Yi, createZodCodec as Yn, fieldSchema$1 as Yo, isSemanticSpacing as Yr, formatCurrencyAmount as Ys, formatEventClockLabel as Yt, selectCardListPresentation as Z, generateFooterCss as Za, isSameCalendarDay as Zi, defineProgressiveBlockRuntime as Zn, isAcceptedRepeaterGridSpan as Zo, defineFragment as Zr, unsafeAsContentEntryId as Zs, formatEventDateParts as Zt, productDetailBlockDefinition as _, selectItemSurfacePresentation as _a, FileSpreadsheetIcon as _i, pageNavigationSchema as _n, spaciousBoundaryOption as _o, formatEventPriceDisplay as _r, parseMailingListProviderScope as _s, previewStageSchema as _t, normalizeLocationMapProps as a, sanitizeHref as aa, el as ai, resolveEventTimeZone as an, headerNeedsPhotoShade as ao, Grid as ar, loadedReadinessFact as as, resolveImageUrlWithContext as at, buildCartInteractiveIslandProps as b, readOpeningToneProjection as ba, PlusIcon as bi, groupPublicEventsByRun as bn, transitionCatalogueEntries as bo, getAnchorClasses as br, decideLocationSourcePermission as bs, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as bt, newsletterSignupBlockDefinition as c, eventCalendarListLayoutCompatibleDisplayModeValues as ca, parseBlockIconValue as ci, bookingPresentation as cn, sectionShapeFromContent as co, morePhotosField as cr, isRecord$6 as cs, getCurrentResolveImageUrlContext as ct, buildNewsletterFormInteractiveIslandProps as d, isRecord$5 as da, ChevronDownIcon as di, formatEventRemainingPlaces as dn, boundaryOptions as do, resolveDeclaredBlockDesignCapability as dr, firstLiveRunSessionStartMs as ds, getCardOrientation as dt, publicEventsArraySchema as ea, arrangementSlotNames as ec, lookQuoteLimitTransform as ei, formatEventRunDates as en, generateEffectsCSS as eo, listLookSlot as er, resolveRepeaterGridRowFieldId as es, ImagePresets as et, newsletterBlockSubmissionMessage as f, parseThemeButtonVariantId as fa, CircleMinusIcon as fi, formatTotalCapacity as fn, boundaryRuntimeMetricsForDecorativeTransition as fo, classPricesCopySchema as fr, nextLiveRunSessionStartMs as fs, getContainerClass as ft, cartBlockDefinition as g, resolveLookSurfacePresentation as ga, FileAudioIcon as gi, blockSiteTermsSchema as gn, softBoundaryOption as go, formatEventPriceAmount as gr, parseMailingListRuntimeContext as gs, bookingNowSchema as gt, checkoutBlockDefinition as h, lookPresentationOnPalette as ha, FileArchiveIcon as hi, isEventFull as hn, noneBoundaryOption as ho, formatEventPrice as hr, buildMailingListSignupBlockSourceRef as hs, resolveEventRegistrationEventSource as ht, systemBlockDefinitions as i, beforeBookingQuestionsPresentationSchema as ia, runTransforms as ii, groupEventsByDate as in, resolvePageDesignBoundaryChoice as io, standardAspectRatioOptions as ir, hiddenFromVisitors as is, resolveImageUrl as it, buildOfferingsCatalogueListing as j, arrangementManifestFromVariants as ja, eventReadinessQuery as ji, teamMemberBiography as jn, assertNever as jo, testimonialsCarouselFragment as jr, formatBookingCompactEnglishTime as js, resolveOfferingsRenderInput as jt, offeringsPreviewBlockDefinition as k, resolveLookForBlock as ka, augmentManifest as ki, contentTransforms as kn, resolveEffectiveKnobs as ko, formEmbedFragment as kr, formatDateTimeRange as ks, resolveOfferingsPreviewGroupCta as kt, sanitizeNewsletterSignupPublicContent as l, calendarWindowQuerySchema as la, resolveBlockIconRenderValue as li, browserReadAuthoritySchema as ln, sectionShapeHook as lo, standardImageShapeOptions as lr, EVENT_PRESET_VALUES as ls, setContextResolveImageUrlContext as lt, buildGiftingInteractiveIslandProps as m, AFFORDANCE_SUPPRESS_CLASS as ma, ClockIcon as mi, getEventAvailabilityStatus as mn, isDecorativeTransitionIntent as mo, resolveClassPriceItems as mr, resolveWholeSeriesBookingPhase as ms, buildEventRegistrationInteractiveIslandProps as mt, listBlockDescriptors as n, blockBookingConsentSchema as na, asPartialObject as ni, formatEventWeekdayTime as nn, parsePageDesignIntent as no, resolvedItemSurfaceProps as nr, chosenString as ns, computeMediaTransformStyle as nt, normalizeLocationMapSource as o, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as oa, when as oi, resolveRuntimeEventDestination as on, headerRootPaint as oo, clsx as or, pageTemplateFromEntry as os, resolvePublicMediaUrl as ot, giftingBlockDefinition as p, themeButtonSelector as pa, CirclePlusIcon as pi, getEventAvailability as pn, boundaryTreatmentForBoundaryOptionId as po, classPricesDataSchema as pr, orderedLiveRunSessions as ps, eventRegistrationBlockDefinition as pt, CardListContentPart as q, gradientToCss as qa, getDayOfWeek as qi, createInteractiveIslandCodec as qn, blockSectionDeclarationShape as qo, resolveBackgroundColorValue as qr, resolveExactOrFreePriceDisplay as qs, formatCalendarTitle as qt, normalizeBlockContent as r, bookingConsentCarrierSchema as ra, createTransformRegistry as ri, formatTime as rn, resolvePageDesignBlockLookChoice as ro, itemRole as rr, admitReadinessFacts as rs, resolveImageSourceSetWithContext as rt, resolveLocationMapLocation as s, linkSchema as sa, buildGeneratedBlockIconRenderAssetLookupFromUnknown as si, formatBookingSchedulePresentation as sn, sectionShapeForGround as so, heroMorePhotoCount as sr, unavailableReadinessFact as ss, buildResolveImageUrlContext as st, getBlockDefinition as t, blockBookingPaymentTermsSchema as ta, TokenResolver as tc, lookSkinSlotTransform as ti, formatEventTimeRange as tn, generateInteractiveChildInheritanceCSS as to, lookListPresentationSchemaShape as tr, resolveRepeaterGridSpanFieldId as ts, MediaPlaceholder as tt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as u, isObjectRecord$1 as ua, ArrowDownIcon as ui, canJoinEventWaitlistOnAnyMode as un, boundaryOptionForTransitionIntent as uo, blockDesignCapabilityMapFromDefinitions as ur, CANCELLED_SESSION_STATUS as us, EventQuickFacts as ut, productListBlockDefinition as v, parseListLook as va, FileTextIcon as vi, closedRunCopy as vn, transitionIntentForTreatment as vo, formatEventStartingPrice as vr, parseMailingListPlacementTargeting as vs, normalizeEventRegistrationPageSurfaceSubject as vt, buildShopInteractiveIslandProps as w, arrangementStyleAvailability as wa, plainTextToInlineText as wi, siteFooterManifest as wn, resolveSectionBackground as wo, cardFragment as wr, publicLocationSchema as ws, buildOfferingsPreviewListing as wt, buildCheckoutInteractiveIslandProps as x, heroPhotoPaintsGround as xa, inlineTextToPlainText as xi, FEATURE_CARD_ICON_TREATMENTS as xn, applyLookPhotoTreatment as xo, heroTitleSizeOptions as xr, locationValueSchema as xs, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as xt, shopBlockDefinition as y, effectiveHeaderNavLinkStyle as ya, MinusIcon as yi, bookingPageKindSchema as yn, anglePolygonCss as yo, BACKGROUND_POSITION_PRESET_VALUES as yr, sameMailingListPlacementTargeting as ys, resolveEventRegistrationScopedEvents as yt, buildEventCollectionDisplay as z, filterLookIdsForPolicy as za, resolveCalendarReadProfile as zi, staticHeaderChromeRuntime as zn, testimonialsCompositionTreatmentValues as zo, boxStyleClassNames as zr, toBookingTimeZone as zs, eventListWeekDays as zt };
|
|
58138
|
+
export { RichText as $, buildTextContrastShadow as $a, isToday as $i, listLookControl as $n, parseRepeaterGridInteger as $o, lookCarouselRegionTransform as $r, unsafeAsContentEntryId as $s, formatEventNextDateFact as $t, publicRouteCandidatesSchema as A, resolveLookForBlock as Aa, augmentManifest as Ai, parseTeamMemberSpecialties as An, resolveEffectiveKnobs as Ao, formEmbedFragment as Ar, formatDateRange as As, resolveOfferingsPreviewGroups as At, buildEventCollectionHydration as B, filterLookIdsForPolicy as Ba, resolveCalendarReadProfile as Bi, resolveHeroTitleLength as Bn, testimonialsCompositionTreatmentValues as Bo, boxStyleClassNames as Br, resolveBookingBusinessTimeZone as Bs, eventWeekGroupingContext as Bt, buildProductListInteractiveIslandProps as C, arrangementAppearancePresets as Ca, isInlineTextEmpty as Ci, shouldReserveFeatureCardIconZone as Cn, deriveSectionGround as Co, richTextFragment as Cr, locationValueSchema as Cs, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ct, membershipClassesLabel as D, compileArrangementLookRuntime as Da, parseFieldDefinition as Di, markEditableSurfaceForwarding as Dn, stripStaleTransitionStyleGroup as Do, faqHeadingFragment as Dr, trimmedStringOrNull as Ds, offeringRunLifecycle as Dt, membershipCardListContent as E, automaticArrangementLook as Ea, normalizeSelectSource as Ei, composeHeaderSectionWrapperClassName as En, sectionSurfaceBase as Eo, faqAccordionFragment as Er, publicLocationSchema as Es, normalizeOfferingsPreviewItemLimit as Et, buildEventCalendarListingDisplay as F, resolveModeArrangement as Fa, eventDiscoveryFilterKeys as Fi, mediaTransforms as Fn, featureCardCompositionTreatmentValues as Fo, heroCtaRowFragment as Fr, compareLocalScheduleDates as Fs, ThemedDownloadLink as Ft, catalogueEventCardProps as G, compilePageRuntimeFields as Ga, getLocalMinuteOfDay as Gi, buildFormInteractiveIslandProps as Gn, bindingSchema as Go, parseRuntimeBackgroundContent as Gr, isPublicEventPricingOptionDisplayable as Gs, eventDateOptions as Gt, eventCollectionDisplaySchemaShape as H, designRuntimeRulesForSiteStyle as Ha, eventCalendarListLayoutOptions as Hi, formattingTransforms as Hn, cardListFamilyBlocks as Ho, resolveCardRoleForBoxStyles as Hr, toUtcIsoDateTimeString as Hs, weekColumnDays as Ht, combinedLookSchema as I, resolvePublishedLook as Ia, eventScopeLoaderParam as Ii, headerRuntimeTransforms as In, introCompositionTreatmentValues as Io, ctaRowFragment as Ir, getBookingLocalDateKey as Is, getIconComponent as It, CardListLeadDate as J, gradientToCss as Ja, getDayOfWeek as Ji, defineInteractiveIslandMetaKeys as Jn, blockSectionDeclarationShape as Jo, resolveBackgroundColorValue as Jr, publicEventPricingType as Js, formatDate as Jt, listingEventCardProps as K, stripCompiledRuntimeStyleFields as Ka, addDays as Ki, buildInteractiveIslandProps as Kn, DEFAULT_MEDIA_FIELD_KINDS as Ko, resolveSectionSurfaceForeground as Kr, publicEventPricingCurrency as Ks, eventLocalDateKey as Kt, eventListingBlockDefinition as L, buildInitialPolicyPageDesignIntent as La, eventScopeQuery as Li, chromeLogoTransforms as Ln, offeringsPreviewCompositionTreatmentValues as Lo, isBlockButtonRole as Lr, getLocalScheduleDate as Ls, SpinnerNode as Lt, offeringsCatalogueShape as M, arrangementManifestFromVariants as Ma, eventReadinessQuery as Mi, teamMemberCardBiography as Mn, assertNever as Mo, testimonialsCarouselFragment as Mr, inferSiteDateLocale as Ms, ThemedAuthoredButton as Mt, eventCalendarBlockDefinition as N, readStoredMode as Na, eventReadinessQueryKeys as Ni, readRuntimeNow as Nn, defineBlockDesignCapability as No, testimonialsHeadingFragment as Nr, formatBookingCompactEnglishTime as Ns, ThemedButton as Nt, passCardListContent as O, getCompatibleBlockAppearancePresets as Oa, parseFieldDefinitions as Oi, splitPositioningClasses as On, themeV2CompilerOwnedFieldNames as Oo, blogFeaturedPostFragment as Or, mapDrawingSchema as Os, offeringsListingFor as Ot, buildEventCalendarInteractiveIslandProps as P, resolveEffectiveArrangement as Pa, eventReadinessResultSchema as Pi, resolveDateRuntimeContext as Pn, designIssueSeverityForPolicy as Po, ctaCopyFragment as Pr, toScheduledBookingDateTime as Ps, ThemedButtonLink as Pt, MediaNodeServer as Q, generateFooterCss as Qa, isSameCalendarDay as Qi, listItemPresentation as Qn, isAcceptedRepeaterGridSpan as Qo, defineFragment as Qr, parseContentVersionId as Qs, formatEventHourLabel as Qt, buildEventListingInteractiveIslandProps as R, deriveSiteStyleBlockPolicy as Ra, eventScopeQueryKeys as Ri, layoutTransforms as Rn, plainFrame as Ro, heroCopyFragment as Rr, parseBookingLocalDate as Rs, buildEventListWeek as Rt, buildProductDetailInteractiveIslandProps as S, heroPhotoPaintsGround as Sa, inlineTextToPlainText as Si, resolveFeatureCardGeneratedIconSizePx as Sn, applyLookPhotoTreatment as So, heroTitleSizeOptions as Sr, decideLocationSourcePermission as Ss, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as St, shopProductPresentation as T, arrangementStyleAvailability as Ta, plainTextToInlineText as Ti, siteHeaderManifest as Tn, resolveSectionBackground as To, cardFragment as Tr, projectPublicLocation as Ts, groupOfferingRunsByCourse as Tt, eventCollectionHydrationSchema as U, getCuratedSiteStyle as Ua, resolveEventCalendarReadPlan as Ui, formatDate$1 as Un, cardListKnobBlocks as Uo, parseBackgroundContent as Ur, offeringLabelForPageSurfaceSubject as Us, buildCalendarViewport as Ut, buildEventCollectionListingDisplay as V, componentRuntimeRulesForSiteStyle as Va, eventCalendarListGroupingDecision as Vi, uiTransforms as Vn, toNonEmptyReadonlyArray as Vo, normalizeBoxStylesBorder as Vr, toBookingTimeZone as Vs, groupEventsByWeek as Vt, eventCollectionSourceSchemaShape as W, requireCuratedSiteStyle as Wa, getLocalDateKey as Wi, formBlockDefinition as Wn, NodeSchema as Wo, parseBackgroundOverlay as Wr, formatBookingPriceDisplay as Ws, eventCalendarWeekStart as Wt, resolveCardListSchedule as X, resolveCardRole as Xa, getWeekCalendarDayTuple as Xi, defineClientOwnedBlockRuntime as Xn, fieldSchema$1 as Xo, isSemanticSpacing as Xr, resolvePricingOptionsPriceDisplay as Xs, formatEventCompactDateRail as Xt, cardListPresentationSchemaShape as Y, getGradientPreset as Ya, getOrderedDayNames as Yi, createZodCodec as Yn, builtInBlockKindsSchema as Yo, ctaButton as Yr, resolveExactOrFreePriceDisplay as Ys, formatEventClockLabel as Yt, selectCardListPresentation as Z, generateDefaultCardSystem as Za, getWeekCalendarDays as Zi, defineProgressiveBlockRuntime as Zn, validateManifestLookField as Zo, bodyCopyFragment as Zr, formatCurrencyAmount as Zs, formatEventDateParts as Zt, productDetailBlockDefinition as _, resolveLookSurfacePresentation as _a, FileAudioIcon as _i, getEventAvailability as _n, softBoundaryOption as _o, formatEventPriceAmount as _r, parseMailingListRuntimeContext as _s, previewStageSchema as _t, normalizeLocationMapProps as a, beforeBookingQuestionsPresentationSchema as aa, runTransforms as ai, resolveEventTimeZone as an, resolvePageDesignBoundaryChoice as ao, Grid as ar, hiddenFromVisitors as as, resolveImageUrlWithContext as at, buildCartInteractiveIslandProps as b, effectiveHeaderNavLinkStyle as ba, MinusIcon as bi, groupPublicEventsByRun as bn, anglePolygonCss as bo, BACKGROUND_POSITION_PRESET_VALUES as br, sameMailingListPlacementTargeting as bs, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as bt, newsletterSignupBlockDefinition as c, linkSchema as ca, buildGeneratedBlockIconRenderAssetLookupFromUnknown as ci, bookingPresentation as cn, sectionShapeForGround as co, morePhotosField as cr, unavailableReadinessFact as cs, getCurrentResolveImageUrlContext as ct, buildNewsletterFormInteractiveIslandProps as d, isObjectRecord$1 as da, ArrowDownIcon as di, pageNavigationSchema as dn, boundaryOptionForTransitionIntent as do, resolveDeclaredBlockDesignCapability as dr, CANCELLED_SESSION_STATUS as ds, getCardOrientation as dt, projectRecurringSchedule as ea, unsafeAsEventCategoryId$1 as ec, lookLeadSlotTransform as ei, formatEventRunDates as en, generateNavLinkCSS as eo, listLookSlot as er, resolveRepeaterGridColumnFieldId as es, ImagePresets as et, newsletterBlockSubmissionMessage as f, isRecord$5 as fa, ChevronDownIcon as fi, closedRunCopy as fn, boundaryOptions as fo, classPricesCopySchema as fr, firstLiveRunSessionStartMs as fs, getContainerClass as ft, cartBlockDefinition as g, lookPresentationOnPalette as ga, FileArchiveIcon as gi, formatTotalCapacity as gn, noneBoundaryOption as go, formatEventPrice as gr, buildMailingListSignupBlockSourceRef as gs, bookingNowSchema as gt, checkoutBlockDefinition as h, AFFORDANCE_SUPPRESS_CLASS as ha, ClockIcon as hi, formatEventRemainingPlaces as hn, isDecorativeTransitionIntent as ho, formatCoursePrice as hr, resolveWholeSeriesBookingPhase as hs, resolveEventRegistrationEventSource as ht, systemBlockDefinitions as i, bookingConsentCarrierSchema as ia, createTransformRegistry as ii, groupEventsByDate as in, resolvePageDesignBlockLookChoice as io, standardAspectRatioOptions as ir, admitReadinessFacts as is, resolveImageUrl as it, buildOfferingsCatalogueListing as j, styleSectionBackgroundForColour as ja, eventReadinessLoaderKey as ji, teamMemberBiography as jn, lookModes as jo, formCopyFragment as jr, formatDateTimeRange as js, resolveOfferingsRenderInput as jt, offeringsPreviewBlockDefinition as k, resolveArrangementLookForBlock as ka, PUBLIC_DOWNLOAD_MEDIA_TYPES as ki, contentTransforms as kn, appearancePresets as ko, singleButtonFragment as kr, formatDate$2 as ks, resolveOfferingsPreviewGroupCta as kt, sanitizeNewsletterSignupPublicContent as l, eventCalendarListLayoutCompatibleDisplayModeValues as la, parseBlockIconValue as li, browserReadAuthoritySchema as ln, sectionShapeFromContent as lo, standardImageShapeOptions as lr, isRecord$6 as ls, setContextResolveImageUrlContext as lt, buildGiftingInteractiveIslandProps as m, themeButtonSelector as ma, CirclePlusIcon as mi, canJoinEventWaitlistOnAnyMode as mn, boundaryTreatmentForBoundaryOptionId as mo, resolveClassPriceItems as mr, orderedLiveRunSessions as ms, buildEventRegistrationInteractiveIslandProps as mt, listBlockDescriptors as n, blockBookingPaymentTermsSchema as na, arrangementSlotNames as nc, lookSkinSlotTransform as ni, formatEventWeekdayTime as nn, generateInteractiveChildInheritanceCSS as no, resolvedItemSurfaceProps as nr, resolveRepeaterGridSpanFieldId as ns, computeMediaTransformStyle as nt, normalizeLocationMapSource as o, sanitizeHref as oa, el as oi, resolveRuntimeEventDestination as on, headerNeedsPhotoShade as oo, clsx as or, loadedReadinessFact as os, resolvePublicMediaUrl as ot, giftingBlockDefinition as p, parseThemeButtonVariantId as pa, CircleMinusIcon as pi, bookingPageKindSchema as pn, boundaryRuntimeMetricsForDecorativeTransition as po, classPricesDataSchema as pr, nextLiveRunSessionStartMs as ps, eventRegistrationBlockDefinition as pt, CardListContentPart as q, surfaceResolutionContextFromTheme as qa, formatDateKey as qi, createInteractiveIslandCodec as qn, blockCategoryEnum as qo, resolveSurfaceForegroundStyles as qr, publicEventPricingDisplay as qs, formatCalendarTitle as qt, normalizeBlockContent as r, blockBookingConsentSchema as ra, TokenResolver as rc, asPartialObject as ri, formatTime as rn, parsePageDesignIntent as ro, itemRole as rr, chosenString as rs, resolveImageSourceSetWithContext as rt, resolveLocationMapLocation as s, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as sa, when as si, formatBookingSchedulePresentation as sn, headerRootPaint as so, heroMorePhotoCount as sr, pageTemplateFromEntry as ss, buildResolveImageUrlContext as st, getBlockDefinition as t, publicEventsArraySchema as ta, parseGradientPresetId as tc, lookQuoteLimitTransform as ti, formatEventTimeRange as tn, generateEffectsCSS as to, lookListPresentationSchemaShape as tr, resolveRepeaterGridRowFieldId as ts, MediaPlaceholder as tt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as u, calendarWindowQuerySchema as ua, resolveBlockIconRenderValue as ui, blockSiteTermsSchema as un, sectionShapeHook as uo, blockDesignCapabilityMapFromDefinitions as ur, EVENT_PRESET_VALUES as us, EventQuickFacts as ut, productListBlockDefinition as v, selectItemSurfacePresentation as va, FileSpreadsheetIcon as vi, getEventAvailabilityStatus as vn, spaciousBoundaryOption as vo, formatEventPriceDisplay as vr, parseMailingListProviderScope as vs, normalizeEventRegistrationPageSurfaceSubject as vt, buildShopInteractiveIslandProps as w, arrangementLookHooks as wa, parseInlineTextFromUnknown as wi, siteFooterManifest as wn, parseCanonicalRuntimeBackground as wo, headingFragment as wr, normalizeLocationAddressText as ws, buildOfferingsPreviewListing as wt, buildCheckoutInteractiveIslandProps as x, readOpeningToneProjection as xa, PlusIcon as xi, FEATURE_CARD_ICON_TREATMENTS as xn, transitionCatalogueEntries as xo, getAnchorClasses as xr, isCanonicalRichTextDoc as xs, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as xt, shopBlockDefinition as y, parseListLook as ya, FileTextIcon as yi, isEventFull as yn, transitionIntentForTreatment as yo, formatEventStartingPrice as yr, parseMailingListPlacementTargeting as ys, resolveEventRegistrationScopedEvents as yt, buildEventCollectionDisplay as z, filterLayoutProfilesForPolicy as za, resolveEventScope as zi, staticHeaderChromeRuntime as zn, sectionBackgroundPaintValues as zo, boxStylesTransforms as zr, parseLocalScheduleTime as zs, eventListWeekDays as zt };
|