@riverbankcms/sdk 0.174.0 → 0.175.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-GqVX3I8E.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-BhUH31M-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index--39uLjrr.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-Bq-488M7.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-DYlfdT1O.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-3GzargmS.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-DYsP4k6S.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DdEi2iXd.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-Be1E-H-V.d.ts → request-BT8i_vH-.d.ts} +2070 -503
- package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-CVLYWcoI.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/gifting/client.d.ts +13 -1
- 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 +3 -3
- 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 +3 -2
- 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 +2 -1
- package/dist/_dts/{types-Bm5_3VEd.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-5MeDI1w8.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-CVoCc_Ia.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +664 -362
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
- package/dist/client/{Page--xJ23nA5.mjs → Page-CWN_8cLZ.mjs} +736 -1667
- package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-C7RJBOW3.mjs} +37 -249
- package/dist/client/{accordion-BQtTkDN8.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-C-gFwhnO.mjs} +3 -29
- package/dist/client/{carousel-CPsW-FPh.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-CwElmocm.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-CfMgqY8H.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +113 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-q1sA4Cj-.mjs → course-DHmeQAvq.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
- package/dist/client/display-DMqotaGU.mjs +11797 -0
- package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-CAdcpnLc.mjs} +295 -188
- package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-_14atrj8.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-DfAB-llc.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-DN-I9_qC.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-DMrsN4B4.mjs +28 -0
- package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
- package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
- package/dist/client/{headerSection-Dces54pb.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-D8MW2b0e.mjs → lookSurfaces-BDZLALxj.mjs} +3084 -12938
- package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-Df5qDD0z.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-B1EEZkcr.mjs} +311 -262
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-gteEpeO5.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-CJAINJr3.mjs} +118 -39
- package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DBTIFWTb.mjs} +11 -148
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-CvlTplao.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-CxUpgcM6.mjs → view-Cw4EmEPv.mjs} +100 -32
- package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +32 -29
- package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-B61mZd81.mjs} +4981 -3275
- package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-BZDIC-fA.mjs} +529 -238
- package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +25 -5
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-0gSlK9S0.mjs} +87 -12
- package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-CQg2lzZn.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-aYRTVneD.mjs → client-CgghATBm.mjs} +112 -20
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-CaH018pK.mjs} +129 -12
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-Cuos4Xcd.mjs} +105 -357
- package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-JxlV8_Bo.mjs} +1707 -1811
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-34rkAfaU.mjs → registry-cQ9N5W-n.mjs} +21091 -20209
- 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 +7 -7
- package/dist/server/{resolveBlockData-D7VeoWgr.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CLVKoJrX.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-HVfdvBJ0.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +361 -57
- package/package.json +1 -1
- package/dist/client/bookability-CE637yDE.mjs +0 -17
- package/dist/client/useDiscountApply-BZU5DWZQ.mjs +0 -199
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $
|
|
2
|
+
import { $i as eventScopeLoaderParam, $n as chromeLogoTransforms, $s as resolvePricingOptionsPriceDisplay, $t as formatEventCompactDateRail, Aa as arrangementManifestFromVariants, An as canJoinEventWaitlistOnAnyMode, Ar as formatEventPrice, Bs as getLocalScheduleDate, Co as resolveSectionBackground, Do as themeV2CompilerOwnedFieldNames, Dr as resolveClassPriceItems, Dt as groupOfferingRunsByCourse, Eo as stripStaleTransitionStyleGroup, Er as classPricesDataSchema, Fn as isEventFull, Fr as getAnchorClasses, Gn as contentTransforms, Go as formatDateKey, Gs as toUtcIsoDateTimeString, Gt as weekColumnDays, I as combinedLookSchema, Ia as deriveSiteStyleBlockPolicy, J as CardListLeadDate, Ji as eventReadinessLoaderKey, Jt as eventDateOptions, Ka as gradientToCss, Lt as ThemedButtonLink, Ma as resolveEffectiveArrangement, Mn as formatTotalCapacity, Mr as formatEventPriceDisplay, Ms as formatDate, Na as resolveModeArrangement, Nn as getEventAvailability, Nr as formatEventStartingPrice, Ns as formatDateRange, Oi as ClockIcon, Or as formatCoursePrice, Pa as resolvePublishedLook, Pn as getEventAvailabilityStatus, Pr as BACKGROUND_POSITION_PRESET_VALUES, Ps as formatDateTimeRange, Q as MediaNodeServer, Qi as eventDiscoveryFilterKeys, Qn as headerRuntimeTransforms, Qr as boxStylesTransforms, Qs as resolveExactOrFreePriceDisplay, Rs as compareLocalScheduleDates, So as parseCanonicalRuntimeBackground, Tr as classPricesCopySchema, Ui as augmentManifest, Us as resolveBookingBusinessTimeZone, Vs as parseBookingLocalDate, Vt as buildEventListWeek, Wi as isObjectRecord, Wt as groupEventsByWeek, X as resolveCardListSchedule, Xi as eventReadinessQueryKeys, Yi as eventReadinessQuery, Yn as readRuntimeNow, Yt as eventLocalDateKey, Z as selectCardListPresentation, Zn as mediaTransforms, Zo as isToday, _a as heroPhotoPaintsGround, _i as createTransformRegistry, _s as orderedLiveRunSessions, aa as resolveEventCalendarReadPlan, ac as arrangementSlotNames, ai as resolveSectionSurfaceForeground, an as formatEventWeekdayTime, bo as applyLookPhotoTreatment, cn as resolveEventTimeZone, co as sectionShapeHook, ct as systemCustomizeFacetDefinitionsForBlock, da as resolveLookSurfacePresentation, do as boundaryRuntimeMetricsForDecorativeTransition, ea as eventScopeQuery, en as formatEventDateParts, er as layoutTransforms, et as ImagePresets, fi as lookCarouselRegionTransform, ft as EventQuickFacts, gi as asPartialObject, gs as nextLiveRunSessionStartMs, hi as lookSkinSlotTransform, hn as closedRunCopy, hr as listLookSlot, ia as eventCalendarListGroupingDecision, ic as parseGradientPresetId, ii as parseRuntimeBackgroundContent, in as formatEventTimeRange, ja as readStoredMode, jn as formatEventRemainingPlaces, ka as styleSectionBackgroundForColour, kn as isBookableEvent, kr as formatEventDepositNote, li as isSemanticSpacing, ln as resolveRuntimeEventDestination, mi as lookQuoteLimitTransform, na as resolveEventScope, ni as parseBackgroundContent, nr as uiTransforms, nt as computeMediaTransformStyle, oi as resolveSurfaceForegroundStyles, on as formatTime, oo as sectionShapeForGround, pi as lookLeadSlotTransform, pr as listItemPresentation, q as CardListContentPart, qa as getGradientPreset, qi as blockChecksForEvents, qs as formatBookingPriceDisplay, qt as eventCalendarWeekStart, ra as resolveCalendarReadProfile, ri as parseBackgroundOverlay, rn as formatEventRunDates, rr as formattingTransforms, si as resolveBackgroundColorValue, sn as groupEventsByDate, so as sectionShapeFromContent, st as resolveArrangementKnobs, t as getBlockDefinition, ta as eventScopeQueryKeys, ua as lookPresentationOnPalette, un as formatBookingSchedulePresentation, vs as resolveWholeSeriesBookingPhase, wo as sectionSurfaceBase, xa as arrangementAppearancePresets, xo as deriveSectionGround, xr as heroMorePhotoCount } from "./registry-cQ9N5W-n.mjs";
|
|
3
3
|
import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
4
|
-
import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-
|
|
4
|
+
import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
|
|
5
5
|
import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
6
6
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
7
7
|
import { o as isRecord$2 } from "./richTextSchema-QLaQrbII.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-CaH018pK.mjs";
|
|
9
9
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
10
10
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
11
11
|
import React from "react";
|
|
@@ -808,20 +808,6 @@ function parseStoredVariant(manifest, content) {
|
|
|
808
808
|
} : { kind: "absent" };
|
|
809
809
|
}
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
812
|
-
/**
|
|
813
|
-
* Whether a public event has a registration path a visitor can take.
|
|
814
|
-
*
|
|
815
|
-
* Lifecycle admission comes from the public booking-availability contract;
|
|
816
|
-
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
817
|
-
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
818
|
-
*/
|
|
819
|
-
function isBookableEvent(event) {
|
|
820
|
-
if (!event.requiresRegistration) return false;
|
|
821
|
-
if (event.bookingAvailability.kind !== "open") return false;
|
|
822
|
-
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
823
|
-
}
|
|
824
|
-
//#endregion
|
|
825
811
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
826
812
|
/**
|
|
827
813
|
* Booking call-to-action resolution for events: where an event links to and
|
|
@@ -999,6 +985,41 @@ function readableDuration(minutes) {
|
|
|
999
985
|
].filter(Boolean).join(" ");
|
|
1000
986
|
}
|
|
1001
987
|
//#endregion
|
|
988
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
989
|
+
function formatEventLocation(event) {
|
|
990
|
+
switch (event.deliveryMode) {
|
|
991
|
+
case "online": return "Online";
|
|
992
|
+
case "hybrid": return event.venue ? `${event.venue.name} + online` : "In person or online";
|
|
993
|
+
case "in_person": return event.venue?.name ?? "In person";
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
/** The line under the venue name. A booked-only venue shows its area, and the address follows the booking. */
|
|
997
|
+
function eventVenuePlace(venue) {
|
|
998
|
+
if (venue.addressWithBooking) return {
|
|
999
|
+
place: venue.area ?? null,
|
|
1000
|
+
addressWithBooking: true
|
|
1001
|
+
};
|
|
1002
|
+
return {
|
|
1003
|
+
place: venue.address,
|
|
1004
|
+
addressWithBooking: false
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Where an online or hybrid event happens, for the place a venue would go.
|
|
1009
|
+
*
|
|
1010
|
+
* Booking here sends a confirmation email that carries the joining link (the
|
|
1011
|
+
* link is required for an online event people book here), so the note only
|
|
1012
|
+
* promises it when the visitor books on this site. Null for in-person events.
|
|
1013
|
+
*/
|
|
1014
|
+
function eventOnlinePlace(event) {
|
|
1015
|
+
if (event.deliveryMode === "in_person") return null;
|
|
1016
|
+
const bookedHere = event.requiresRegistration && event.destination.kind !== "external";
|
|
1017
|
+
return {
|
|
1018
|
+
mode: event.deliveryMode,
|
|
1019
|
+
note: bookedHere ? "The joining link comes with your booking confirmation." : null
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
//#endregion
|
|
1002
1023
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
1003
1024
|
function formatTeamMemberNames(names) {
|
|
1004
1025
|
const normalized = names.map((name) => name.trim()).filter(Boolean);
|
|
@@ -1740,7 +1761,7 @@ const EmptyState = ({ message = "No upcoming events scheduled.", className, hasA
|
|
|
1740
1761
|
}), hasActiveFilters && onResetFilters && /* @__PURE__ */ jsx("button", {
|
|
1741
1762
|
type: "button",
|
|
1742
1763
|
onClick: onResetFilters,
|
|
1743
|
-
className: "event-
|
|
1764
|
+
className: "rb-item-text-link event-list-empty-action",
|
|
1744
1765
|
children: resetFiltersText
|
|
1745
1766
|
})]
|
|
1746
1767
|
});
|
|
@@ -2036,9 +2057,9 @@ function offeringFacts(event, places, offering) {
|
|
|
2036
2057
|
label: "Length",
|
|
2037
2058
|
value: sessions
|
|
2038
2059
|
}] : lengthFact(event, !offering || course),
|
|
2039
|
-
...offering && event.venue ? [{
|
|
2060
|
+
...offering && (event.venue || event.deliveryMode !== "in_person") ? [{
|
|
2040
2061
|
label: "Venue",
|
|
2041
|
-
value: event
|
|
2062
|
+
value: formatEventLocation(event)
|
|
2042
2063
|
}] : [],
|
|
2043
2064
|
...places ? [{
|
|
2044
2065
|
label: "Places",
|
|
@@ -2598,7 +2619,7 @@ function MonthLookView(props) {
|
|
|
2598
2619
|
...listItemPresentation(props, index, entries.length),
|
|
2599
2620
|
event,
|
|
2600
2621
|
arrangement: "month-day"
|
|
2601
|
-
}, event.occurrenceId ?? event.id)) : /* @__PURE__ */ jsx("p", {
|
|
2622
|
+
}, event.occurrenceId ?? event.id)) : props.showEmptyState === false ? null : /* @__PURE__ */ jsx("p", {
|
|
2602
2623
|
...listLookSlot(props, "intro"),
|
|
2603
2624
|
children: props.emptyMessage
|
|
2604
2625
|
})
|
|
@@ -2656,7 +2677,7 @@ function eventHeaderContent(selection, show) {
|
|
|
2656
2677
|
label: "Time",
|
|
2657
2678
|
value: timeRange
|
|
2658
2679
|
},
|
|
2659
|
-
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price") : [],
|
|
2680
|
+
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, event)) : [],
|
|
2660
2681
|
...groupSize === null ? [] : [{
|
|
2661
2682
|
label: "Group size",
|
|
2662
2683
|
value: groupSize
|
|
@@ -2665,6 +2686,14 @@ function eventHeaderContent(selection, show) {
|
|
|
2665
2686
|
action: headerAction(selection, item.action)
|
|
2666
2687
|
};
|
|
2667
2688
|
}
|
|
2689
|
+
/** The page states a deposit option beside the price, so it isn't first seen at checkout. */
|
|
2690
|
+
function withDepositNote(fact, event) {
|
|
2691
|
+
const note = formatEventDepositNote(event.pricing, event.paymentTerms, event);
|
|
2692
|
+
return note ? {
|
|
2693
|
+
...fact,
|
|
2694
|
+
value: `${fact.value}, ${note}`
|
|
2695
|
+
} : fact;
|
|
2696
|
+
}
|
|
2668
2697
|
/** A course run is described by its whole span, not by whichever session was selected. */
|
|
2669
2698
|
function headerDateFact(selection) {
|
|
2670
2699
|
const event = selection.selected;
|
|
@@ -2818,306 +2847,6 @@ function arrangementSlotParentsForManifest(manifest, target, arrangement, eventR
|
|
|
2818
2847
|
});
|
|
2819
2848
|
}
|
|
2820
2849
|
//#endregion
|
|
2821
|
-
//#region ../blocks/src/system/customize/arrangementKnobs.ts
|
|
2822
|
-
/**
|
|
2823
|
-
* Content stage for knobs, shared by the renderer and the editor so what the
|
|
2824
|
-
* options show and what renders can't disagree. Knob buffets are the block's
|
|
2825
|
-
* customise facets; the Look exposes, forces or narrows them and the style's
|
|
2826
|
-
* offer can only remove or narrow further.
|
|
2827
|
-
*/
|
|
2828
|
-
function resolveArrangementKnobs(input) {
|
|
2829
|
-
const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
|
|
2830
|
-
const exposure = arrangementKnobExposure(input.blockKind, input.look, length, storedSplitPhotoSide(input.blockKind, input.content));
|
|
2831
|
-
return {
|
|
2832
|
-
length,
|
|
2833
|
-
exposure,
|
|
2834
|
-
knobs: resolveEffectiveKnobs({
|
|
2835
|
-
exposure,
|
|
2836
|
-
content: normalizedHeadlinePreference(input.content)
|
|
2837
|
-
})
|
|
2838
|
-
};
|
|
2839
|
-
}
|
|
2840
|
-
function arrangementKnobExposure(blockKind, look, length, splitPhotoSide) {
|
|
2841
|
-
return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
|
|
2842
|
-
if (facet.knob === void 0 || facet.target.kind !== "content-field") return [];
|
|
2843
|
-
const id = facet.target.field;
|
|
2844
|
-
const defaults = look.look.structure.knobDefaults ?? {};
|
|
2845
|
-
const storedDefault = id === "imagePosition" ? splitPhotoSide : null;
|
|
2846
|
-
return [{
|
|
2847
|
-
definition: {
|
|
2848
|
-
id,
|
|
2849
|
-
defaultValue: defaults[id] ?? storedDefault ?? facet.defaultValue,
|
|
2850
|
-
values: facet.values.map((value) => value.value),
|
|
2851
|
-
...knobKindMetadata(facet.knob)
|
|
2852
|
-
},
|
|
2853
|
-
exposed: exposedKnobIds(look).includes(id),
|
|
2854
|
-
forced: look.look.structure.forcedKnobs?.[id],
|
|
2855
|
-
lookValues: look.look.structure.knobValues?.[id],
|
|
2856
|
-
styleValues: look.knobValues[id],
|
|
2857
|
-
lengthValues: id === "titleSize" ? headlineAllowedValues(length) : void 0
|
|
2858
|
-
}];
|
|
2859
|
-
});
|
|
2860
|
-
}
|
|
2861
|
-
/**
|
|
2862
|
-
* A hero stored as "Split, photo on the left" or "Split, photo on the right"
|
|
2863
|
-
* already says which side its photo is on. Under a Look that side is the Photo
|
|
2864
|
-
* side default, so the photo stays where it was until the owner picks a side.
|
|
2865
|
-
*/
|
|
2866
|
-
function storedSplitPhotoSide(blockKind, content) {
|
|
2867
|
-
if (blockKind !== "block.hero") return null;
|
|
2868
|
-
switch (content.variant) {
|
|
2869
|
-
case "split": return "left";
|
|
2870
|
-
case "splitReverse": return "right";
|
|
2871
|
-
default: return null;
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
function knobKindMetadata(knob) {
|
|
2875
|
-
return knob.kind === "fixed" ? { ordered: knob.ordered } : {
|
|
2876
|
-
ordered: false,
|
|
2877
|
-
textMaxLength: knob.maxLength
|
|
2878
|
-
};
|
|
2879
|
-
}
|
|
2880
|
-
function headlineAllowedValues(length) {
|
|
2881
|
-
switch (length) {
|
|
2882
|
-
case "long": return ["quiet"];
|
|
2883
|
-
case "medium": return ["quiet", "auto"];
|
|
2884
|
-
case "short": return [
|
|
2885
|
-
"quiet",
|
|
2886
|
-
"auto",
|
|
2887
|
-
"display"
|
|
2888
|
-
];
|
|
2889
|
-
case null: return;
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
/** `titleSize` keeps its five stored values; under a Look they read as three steps. */
|
|
2893
|
-
function normalizedHeadlinePreference(content) {
|
|
2894
|
-
switch (content.titleSize) {
|
|
2895
|
-
case "editorial": return {
|
|
2896
|
-
...content,
|
|
2897
|
-
titleSize: "auto"
|
|
2898
|
-
};
|
|
2899
|
-
case "poster": return {
|
|
2900
|
-
...content,
|
|
2901
|
-
titleSize: "display"
|
|
2902
|
-
};
|
|
2903
|
-
default: return content;
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
function exposedKnobIds(look) {
|
|
2907
|
-
return [...look.look.structure.knobs, ...look.addKnobs ?? []].filter((id) => !look.removeKnobs.some((removed) => removed === id));
|
|
2908
|
-
}
|
|
2909
|
-
//#endregion
|
|
2910
|
-
//#region ../blocks/src/system/customize/facets.ts
|
|
2911
|
-
function defineCustomizeFacet(definition) {
|
|
2912
|
-
return definition;
|
|
2913
|
-
}
|
|
2914
|
-
const eventCalendarListLayoutFacet = defineCustomizeFacet({
|
|
2915
|
-
blockKind: "block.event-calendar",
|
|
2916
|
-
id: "eventCalendar.listLayout",
|
|
2917
|
-
label: "List style",
|
|
2918
|
-
legacyOnly: true,
|
|
2919
|
-
values: eventCalendarListLayoutOptions.map((option) => ({
|
|
2920
|
-
value: option.id,
|
|
2921
|
-
label: option.label
|
|
2922
|
-
})),
|
|
2923
|
-
defaultValue: "stack",
|
|
2924
|
-
target: { kind: "event-calendar-list-layout-content" },
|
|
2925
|
-
appliesToLayoutVariants: eventCalendarListLayoutCompatibleDisplayModeValues
|
|
2926
|
-
});
|
|
2927
|
-
const fixedKnob = (blockKind, id, label, values, defaultValue, ordered = false, boolean = false) => ({
|
|
2928
|
-
blockKind,
|
|
2929
|
-
id,
|
|
2930
|
-
label,
|
|
2931
|
-
values,
|
|
2932
|
-
defaultValue,
|
|
2933
|
-
knob: {
|
|
2934
|
-
kind: "fixed",
|
|
2935
|
-
ordered
|
|
2936
|
-
},
|
|
2937
|
-
target: {
|
|
2938
|
-
kind: "content-field",
|
|
2939
|
-
field: id,
|
|
2940
|
-
...boolean ? { boolean: true } : {}
|
|
2941
|
-
}
|
|
2942
|
-
});
|
|
2943
|
-
const textKnob = (id, label, maxLength) => ({
|
|
2944
|
-
blockKind: "block.hero",
|
|
2945
|
-
id,
|
|
2946
|
-
label,
|
|
2947
|
-
values: [],
|
|
2948
|
-
defaultValue: "",
|
|
2949
|
-
knob: {
|
|
2950
|
-
kind: "text",
|
|
2951
|
-
maxLength
|
|
2952
|
-
},
|
|
2953
|
-
target: {
|
|
2954
|
-
kind: "content-field",
|
|
2955
|
-
field: id
|
|
2956
|
-
}
|
|
2957
|
-
});
|
|
2958
|
-
const onOff = [{
|
|
2959
|
-
value: "true",
|
|
2960
|
-
label: "On"
|
|
2961
|
-
}, {
|
|
2962
|
-
value: "false",
|
|
2963
|
-
label: "Off"
|
|
2964
|
-
}];
|
|
2965
|
-
const columnCounts = [
|
|
2966
|
-
{
|
|
2967
|
-
value: "2",
|
|
2968
|
-
label: "2"
|
|
2969
|
-
},
|
|
2970
|
-
{
|
|
2971
|
-
value: "3",
|
|
2972
|
-
label: "3"
|
|
2973
|
-
},
|
|
2974
|
-
{
|
|
2975
|
-
value: "4",
|
|
2976
|
-
label: "4"
|
|
2977
|
-
}
|
|
2978
|
-
];
|
|
2979
|
-
const systemCustomizeFacetDefinitions = [
|
|
2980
|
-
eventCalendarListLayoutFacet,
|
|
2981
|
-
fixedKnob("block.offerings-preview", "grouping", "Grouping", [{
|
|
2982
|
-
value: "by-kind",
|
|
2983
|
-
label: "Grouped by kind"
|
|
2984
|
-
}, {
|
|
2985
|
-
value: "one-list",
|
|
2986
|
-
label: "One list"
|
|
2987
|
-
}], "by-kind"),
|
|
2988
|
-
fixedKnob("block.offerings-preview", "dates", "Dates", [{
|
|
2989
|
-
value: "summary",
|
|
2990
|
-
label: "Summary"
|
|
2991
|
-
}, {
|
|
2992
|
-
value: "next-dates",
|
|
2993
|
-
label: "Next dates"
|
|
2994
|
-
}], "summary"),
|
|
2995
|
-
{
|
|
2996
|
-
...fixedKnob("block.feature-cards", "actionStyle", "Item actions", [{
|
|
2997
|
-
value: "button",
|
|
2998
|
-
label: "Button"
|
|
2999
|
-
}, {
|
|
3000
|
-
value: "link",
|
|
3001
|
-
label: "Link"
|
|
3002
|
-
}], "button"),
|
|
3003
|
-
blockKinds: cardListKnobBlocks
|
|
3004
|
-
},
|
|
3005
|
-
fixedKnob("block.testimonials", "quoteCount", "How many quotes", [
|
|
3006
|
-
{
|
|
3007
|
-
value: "1",
|
|
3008
|
-
label: "1"
|
|
3009
|
-
},
|
|
3010
|
-
{
|
|
3011
|
-
value: "2",
|
|
3012
|
-
label: "2"
|
|
3013
|
-
},
|
|
3014
|
-
{
|
|
3015
|
-
value: "3",
|
|
3016
|
-
label: "3"
|
|
3017
|
-
},
|
|
3018
|
-
{
|
|
3019
|
-
value: "all",
|
|
3020
|
-
label: "All"
|
|
3021
|
-
}
|
|
3022
|
-
], "3", true),
|
|
3023
|
-
{
|
|
3024
|
-
...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
|
|
3025
|
-
description: "Moves to the next quote every few seconds, and stops while someone's reading."
|
|
3026
|
-
},
|
|
3027
|
-
fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
|
|
3028
|
-
{
|
|
3029
|
-
...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
|
|
3030
|
-
blockKinds: [
|
|
3031
|
-
"block.testimonials",
|
|
3032
|
-
"block.newsletter-signup",
|
|
3033
|
-
"block.form"
|
|
3034
|
-
]
|
|
3035
|
-
},
|
|
3036
|
-
fixedKnob("block.hero", "photoTint", "Photo tint", [{
|
|
3037
|
-
value: "dark",
|
|
3038
|
-
label: "Dark"
|
|
3039
|
-
}, {
|
|
3040
|
-
value: "brand",
|
|
3041
|
-
label: "Brand colour"
|
|
3042
|
-
}], "dark"),
|
|
3043
|
-
fixedKnob("block.hero", "candleGlow", "Candle glow", onOff, "true", false, true),
|
|
3044
|
-
fixedKnob("block.hero", "columnGuides", "Column guides", onOff, "true", false, true),
|
|
3045
|
-
fixedKnob("block.hero", "titleSize", "Headline size", heroTitleSizeOptions, "auto", true),
|
|
3046
|
-
fixedKnob("block.hero", "imagePosition", "Photo side", [{
|
|
3047
|
-
value: "left",
|
|
3048
|
-
label: "Left"
|
|
3049
|
-
}, {
|
|
3050
|
-
value: "right",
|
|
3051
|
-
label: "Right"
|
|
3052
|
-
}], "right"),
|
|
3053
|
-
fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
3054
|
-
fixedKnob("block.intro", "imagePosition", "Photo side", [{
|
|
3055
|
-
value: "left",
|
|
3056
|
-
label: "Left"
|
|
3057
|
-
}, {
|
|
3058
|
-
value: "right",
|
|
3059
|
-
label: "Right"
|
|
3060
|
-
}], "left"),
|
|
3061
|
-
fixedKnob("block.media-text", "imagePosition", "Photo side", [{
|
|
3062
|
-
value: "left",
|
|
3063
|
-
label: "Left"
|
|
3064
|
-
}, {
|
|
3065
|
-
value: "right",
|
|
3066
|
-
label: "Right"
|
|
3067
|
-
}], "left"),
|
|
3068
|
-
fixedKnob("block.media-text", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
3069
|
-
fixedKnob("block.media-text", "aspectRatio", "Media aspect ratio", standardAspectRatioOptions, "auto"),
|
|
3070
|
-
textKnob("stickerLine", "Sticker line", 32),
|
|
3071
|
-
textKnob("smallCaption", "Small caption", 24),
|
|
3072
|
-
{
|
|
3073
|
-
...fixedKnob("block.feature-cards", "showPhotos", "Show photos", onOff, "true", false, true),
|
|
3074
|
-
blockKinds: cardListFamilyBlocks
|
|
3075
|
-
},
|
|
3076
|
-
fixedKnob("block.feature-cards", "columns", "Columns", columnCounts, "3", true),
|
|
3077
|
-
fixedKnob("block.image-gallery", "blackAndWhite", "Black and white", onOff, "false", false, true),
|
|
3078
|
-
fixedKnob("block.event-calendar", "listColumns", "Columns", columnCounts, "3", true),
|
|
3079
|
-
fixedKnob("block.event-calendar", "showPhotos", "Photos", [{
|
|
3080
|
-
value: "true",
|
|
3081
|
-
label: "Show"
|
|
3082
|
-
}, {
|
|
3083
|
-
value: "false",
|
|
3084
|
-
label: "Hide"
|
|
3085
|
-
}], "true", false, true),
|
|
3086
|
-
{
|
|
3087
|
-
...fixedKnob("block.feature-cards", "cardMarker", "Item markers", [
|
|
3088
|
-
{
|
|
3089
|
-
value: "icons",
|
|
3090
|
-
label: "Icons"
|
|
3091
|
-
},
|
|
3092
|
-
{
|
|
3093
|
-
value: "numbers",
|
|
3094
|
-
label: "Numbers"
|
|
3095
|
-
},
|
|
3096
|
-
{
|
|
3097
|
-
value: "none",
|
|
3098
|
-
label: "None"
|
|
3099
|
-
}
|
|
3100
|
-
], "icons"),
|
|
3101
|
-
blockKinds: cardListFamilyBlocks
|
|
3102
|
-
},
|
|
3103
|
-
fixedKnob("block.body-text", "alignment", "Text alignment", [{
|
|
3104
|
-
value: "left",
|
|
3105
|
-
label: "Left"
|
|
3106
|
-
}, {
|
|
3107
|
-
value: "center",
|
|
3108
|
-
label: "Centre"
|
|
3109
|
-
}], "left"),
|
|
3110
|
-
{
|
|
3111
|
-
...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
|
|
3112
|
-
description: "Show how many places are left on each event"
|
|
3113
|
-
}
|
|
3114
|
-
];
|
|
3115
|
-
systemCustomizeFacetDefinitions.map((definition) => definition.id);
|
|
3116
|
-
Array.from(new Set(systemCustomizeFacetDefinitions.flatMap((definition) => definition.values.map((option) => option.value))));
|
|
3117
|
-
function systemCustomizeFacetDefinitionsForBlock(blockKind) {
|
|
3118
|
-
return systemCustomizeFacetDefinitions.filter((definition) => definition.blockKind === blockKind || "blockKinds" in definition && definition.blockKinds?.some((kind) => kind === blockKind));
|
|
3119
|
-
}
|
|
3120
|
-
//#endregion
|
|
3121
2850
|
//#region ../blocks/src/system/customize/fieldOwnership.ts
|
|
3122
2851
|
/**
|
|
3123
2852
|
* Values with their own owner, whatever their fields are tagged: the Background
|
|
@@ -3869,8 +3598,7 @@ const eventCalendarReadEnabled = {
|
|
|
3869
3598
|
summary: "Choose the read projection required by the calendar display mode",
|
|
3870
3599
|
schema: readJobSchema,
|
|
3871
3600
|
run(value, options) {
|
|
3872
|
-
|
|
3873
|
-
return plan.jobs === options.job || plan.jobs === "both" && options.job !== "schedule";
|
|
3601
|
+
return resolveEventCalendarReadPlan(asPartialObject(value) ?? {}).jobs === options.job;
|
|
3874
3602
|
}
|
|
3875
3603
|
};
|
|
3876
3604
|
/**
|
|
@@ -3921,7 +3649,7 @@ const builtinTransformDefinitions = [
|
|
|
3921
3649
|
kind: "formatter",
|
|
3922
3650
|
run(value) {
|
|
3923
3651
|
const content = asPartialObject(value) ?? {};
|
|
3924
|
-
return content
|
|
3652
|
+
return blockChecksForEvents(content) && eventReadinessLoaderKey(content) !== "schedule";
|
|
3925
3653
|
}
|
|
3926
3654
|
},
|
|
3927
3655
|
{
|
|
@@ -4588,7 +4316,7 @@ function planBlock(block, renderableContent, resolveTarget, audience, siteStyleI
|
|
|
4588
4316
|
}
|
|
4589
4317
|
function renderableBlockPlan(common, target, audience, siteStyleId) {
|
|
4590
4318
|
const { definition, systemDefinition, override } = target;
|
|
4591
|
-
const renderableContent =
|
|
4319
|
+
const { renderableContent, ownerEditableContent } = planArrangementBlockContent(common.block.kind, definition.manifest, common.renderableContent, audience);
|
|
4592
4320
|
const effectiveArrangementKey = resolveEffectiveArrangement({
|
|
4593
4321
|
manifest: arrangementManifestFromVariants(definition.manifest),
|
|
4594
4322
|
...definition.manifest.variantMeaning.kind !== "mode" ? { look: effectiveLookFromContent(renderableContent)?.look } : {},
|
|
@@ -4600,6 +4328,7 @@ function renderableBlockPlan(common, target, audience, siteStyleId) {
|
|
|
4600
4328
|
}).key;
|
|
4601
4329
|
return {
|
|
4602
4330
|
...common,
|
|
4331
|
+
ownerEditableContent,
|
|
4603
4332
|
renderableContent,
|
|
4604
4333
|
kind: "renderable",
|
|
4605
4334
|
definition,
|
|
@@ -4699,8 +4428,14 @@ function effectiveLookFromContent(content) {
|
|
|
4699
4428
|
return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
|
|
4700
4429
|
}
|
|
4701
4430
|
function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
4431
|
+
return planArrangementBlockContent(blockKind, manifest, authored, audience).renderableContent;
|
|
4432
|
+
}
|
|
4433
|
+
function planArrangementBlockContent(blockKind, manifest, authored, audience) {
|
|
4702
4434
|
const runtime = arrangementRuntime(authored);
|
|
4703
|
-
if (!runtime) return
|
|
4435
|
+
if (!runtime) return {
|
|
4436
|
+
renderableContent: authored,
|
|
4437
|
+
ownerEditableContent: authored
|
|
4438
|
+
};
|
|
4704
4439
|
const spacingHook = authoredSectionSpacingHook(authored);
|
|
4705
4440
|
const content = withoutSectionSpacing(authored);
|
|
4706
4441
|
const mode = readStoredMode({
|
|
@@ -4708,7 +4443,10 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
4708
4443
|
variantMeaning: manifest.variantMeaning
|
|
4709
4444
|
}, content);
|
|
4710
4445
|
const effective = resolveArrangementContentLook(runtime, mode, content, audience);
|
|
4711
|
-
if (!effective) return
|
|
4446
|
+
if (!effective) return {
|
|
4447
|
+
renderableContent: content,
|
|
4448
|
+
ownerEditableContent: content
|
|
4449
|
+
};
|
|
4712
4450
|
const { facts } = arrangementContentFacts(content);
|
|
4713
4451
|
const { length, knobs } = resolveArrangementKnobs({
|
|
4714
4452
|
blockKind,
|
|
@@ -4722,7 +4460,7 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
4722
4460
|
manifest,
|
|
4723
4461
|
arrangementLook: true
|
|
4724
4462
|
}), ["look"]);
|
|
4725
|
-
const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind
|
|
4463
|
+
const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => (knobs[key]?.kind ?? "used") === "used")), lookOwnedPaths);
|
|
4726
4464
|
const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
|
|
4727
4465
|
const photoCount = arrangementContentFacts({
|
|
4728
4466
|
...activeContent,
|
|
@@ -4730,28 +4468,31 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
4730
4468
|
...photoContent
|
|
4731
4469
|
}).photoCount + lookPartPhotoCount(blockKind, activeContent, effective.look.structure.byMode[mode ?? "default"] ?? null);
|
|
4732
4470
|
return {
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4471
|
+
ownerEditableContent: activeContent,
|
|
4472
|
+
renderableContent: {
|
|
4473
|
+
...activeContent,
|
|
4474
|
+
...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
|
|
4475
|
+
...mode !== null ? { variant: mode } : {},
|
|
4476
|
+
...effectiveContent,
|
|
4477
|
+
...photoContent,
|
|
4478
|
+
...arrangementMediaFrameContent(blockKind, effective, values, authored),
|
|
4479
|
+
...arrangementPanelContent(activeContent, effective, mode),
|
|
4480
|
+
...arrangementQuoteContent(blockKind, effective, values),
|
|
4481
|
+
_arrangementLooks: runtime,
|
|
4482
|
+
_effectiveLook: effective,
|
|
4483
|
+
_lookHooks: {
|
|
4484
|
+
...arrangementContentHooks(effective, mode, length, {
|
|
4485
|
+
...facts.content,
|
|
4486
|
+
photo: photoCount > 0
|
|
4487
|
+
}, values, photoCount),
|
|
4488
|
+
...spacingHook
|
|
4489
|
+
},
|
|
4490
|
+
_effectiveKnobs: knobs,
|
|
4491
|
+
_lookOwnedPaths: lookOwnedPaths,
|
|
4492
|
+
_lookAudience: audience,
|
|
4493
|
+
_lookSlots: arrangementContentSlots(blockKind),
|
|
4494
|
+
blockLook: effective.look.id
|
|
4495
|
+
}
|
|
4755
4496
|
};
|
|
4756
4497
|
}
|
|
4757
4498
|
/**
|
|
@@ -4787,11 +4528,18 @@ function arrangementPhotoTreatmentContent(content, look, palette, tint) {
|
|
|
4787
4528
|
function arrangementContentSlots(blockKind) {
|
|
4788
4529
|
return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
|
|
4789
4530
|
}
|
|
4790
|
-
/**
|
|
4791
|
-
function
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4531
|
+
/** One frame declaration owns shape crops and keeps authored ratios for variable layouts. */
|
|
4532
|
+
function arrangementMediaFrameContent(blockKind, look, knobs, authored) {
|
|
4533
|
+
if (blockKind !== "block.intro" && blockKind !== "block.media-text") return {};
|
|
4534
|
+
const frame = resolveLookMediaFrame(look.look.structure.mediaFrame, look.skin, knobs);
|
|
4535
|
+
if (!frame) return {};
|
|
4536
|
+
return frame.kind === "fixed" ? {
|
|
4537
|
+
aspectRatio: frame.aspectRatio,
|
|
4538
|
+
_lookMediaFrame: frame
|
|
4539
|
+
} : {
|
|
4540
|
+
aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio,
|
|
4541
|
+
...frame.borderRadius ? { _lookMediaFrame: frame } : {}
|
|
4542
|
+
};
|
|
4795
4543
|
}
|
|
4796
4544
|
function arrangementQuoteContent(blockKind, effective, values) {
|
|
4797
4545
|
if (blockKind !== "block.testimonials") return {};
|
|
@@ -5018,4 +4766,4 @@ function plannedSlotParents(entry, look) {
|
|
|
5018
4766
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
5019
4767
|
}
|
|
5020
4768
|
//#endregion
|
|
5021
|
-
export {
|
|
4769
|
+
export { formatEventDuration as $, deriveEventScheduleSummary as A, MapPinIcon as B, EventHeader as C, OfferingCourseCards as D, EventListingFrameView as E, CardListCollection as F, buildMonthDay as G, eventDisplayTitleText as H, CardListItems as I, selectQuickDateEvents as J, resolveMonthSelectedDay as K, EventItem as L, createEditorPresentationPageReader as M, createPresentationPageReader as N, eventCardListContent as O, EmptyState as P, formatEventLocation as Q, eventCategoryBadge as R, lookPartShown as S, MonthLookView as T, formatCourseDatesAfter as U, eventDisplayTitle as V, formatCourseSessions as W, eventOnlinePlace as X, formatEventTeacherLine as Y, eventVenuePlace as Z, publicAppointmentPricingSchema as _, joinSlotKey as a, lookFillPartsFromContent as at, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, defaultThemeTokens as ct, builtinTransformDefinitions as d, resolveEventCardBooking as et, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, selectBlockContent as it, derivePreviewRunSchedule as j, offeringDatesBySeries as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, resolveEventLinkProps as nt, renderedJoinLayout as o, resolveRuntimeSection as ot, formatAppointmentDuration as p, formatEventQuickDate as q, planArrangementContent as r, parseStoredVariant as rt, retargetJoinsAcrossOmissions as s, buildThemeTokens as st, buildPageRenderPlan as t, resolveEventCta as tt, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EVENT_REGISTRATION_ANCHOR_ID as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, CalendarIcon as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-
|
|
1
|
+
import { As as trimmedStringOrNull, Bo as resolveRepeaterGridRowFieldId, Es as locationValueSchema, Fi as inlineTextToPlainText, Gs as toUtcIsoDateTimeString, Li as parseInlineTextFromUnknown, Lo as isAcceptedRepeaterGridSpan, Os as projectPublicLocation, Ri as plainTextToInlineText, Ro as parseRepeaterGridInteger, Si as parseBlockIconValue, Us as resolveBookingBusinessTimeZone, Vi as parseFieldDefinitions, Vo as resolveRepeaterGridSpanFieldId, jo as DEFAULT_MEDIA_FIELD_KINDS, ks as publicLocationSchema, l as sanitizeNewsletterSignupPublicContent, os as linkSchema, ps as isRecord$1, t as getBlockDefinition, tc as parseContentVersionId, zi as normalizeSelectSource, zo as resolveRepeaterGridColumnFieldId } from "./registry-cQ9N5W-n.mjs";
|
|
2
|
+
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
3
3
|
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
4
|
import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
5
5
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
@@ -1530,7 +1530,8 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
|
|
|
1530
1530
|
renderSourceSchema: deriveStrictContentZodFromPlans(plans, "render-source"),
|
|
1531
1531
|
writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
|
|
1532
1532
|
if (options.unknownFields !== "reject") return;
|
|
1533
|
-
|
|
1533
|
+
const ownedElsewhere = new Set(options.unknownFieldsOwnedElsewhere ?? []);
|
|
1534
|
+
unknownManifestFieldPaths(plans, value).filter((path) => !(path.length > 1 && ownedElsewhere.has(String(path[0])))).forEach((path) => {
|
|
1534
1535
|
ctx.addIssue({
|
|
1535
1536
|
code: "custom",
|
|
1536
1537
|
path,
|