@riverbankcms/sdk 0.175.0 → 0.177.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/README.md +12 -4
- package/dist/_dts/{BlocksIslandsHydrator-hb2IWD8K.d.ts → BlocksIslandsHydrator-sYraeqm9.d.ts} +1 -1
- package/dist/_dts/{Page-BlY68ZF-.d.ts → Page-Bp7hTDTy.d.ts} +8 -16
- package/dist/_dts/{SdkPreviewMode-CA8hU7hW.d.ts → SdkPreviewMode-CxkCCyKw.d.ts} +2 -2
- package/dist/_dts/{client-B6tCvmG4.d.ts → client-K6UhbL3t.d.ts} +1 -1
- package/dist/_dts/{content-types-B9qryk4R.d.ts → content-types-BLAdIMyr.d.ts} +4 -8
- package/dist/_dts/{contracts-DWoaRxj1.d.ts → contracts-BG7yTZ6t.d.ts} +8 -8
- package/dist/_dts/{footerPageOutline-Djdrhp5s.d.ts → footerPageOutline-DwMHeYmQ.d.ts} +85 -8
- package/dist/_dts/{generatePageMetadata-CFi0vxov.d.ts → generatePageMetadata-X_WpGzZZ.d.ts} +2 -2
- package/dist/_dts/{index-CQUzwOxO.d.ts → index--n-wV8Xd.d.ts} +1 -1
- package/dist/_dts/{index-OtazQE3U.d.ts → index-BLseXObg.d.ts} +2 -2
- package/dist/_dts/{index-Bl5_pjmq.d.ts → index-BMGif2r3.d.ts} +1 -1
- package/dist/_dts/{index-DmhFb6R1.d.ts → index-BpAW9AKB.d.ts} +1 -1
- package/dist/_dts/{index-_pXaCO12.d.ts → index-Bygd2RCg.d.ts} +4 -4
- package/dist/_dts/{index-Btp5nIoz.d.ts → index-CBRbZJ6u.d.ts} +2 -15
- package/dist/_dts/{index-YRQulWB4.d.ts → index-CX9bp60k.d.ts} +3 -3
- package/dist/_dts/{loadContent-Hcuvs4pz.d.ts → loadContent-uhUThWaq.d.ts} +7 -7
- package/dist/_dts/{request-BT8i_vH-.d.ts → request-Bf9YImJw.d.ts} +54398 -54148
- package/dist/_dts/{resolveBlockData-B-dJrunl.d.ts → resolveBlockData-D6M5NMZB.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CVLYWcoI.d.ts → resolvePageContent-DkzWvFbG.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 +1 -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 +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 +5 -177
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- 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-OKzbqRBx.d.ts → types-BdZ5pJSk.d.ts} +20 -3
- package/dist/_dts/{types-C0XZnjXz.d.ts → types-C1l2Sm2h.d.ts} +5 -5
- package/dist/_dts/{types-CXL1QJSY.d.ts → types-DgV8P2mz.d.ts} +7 -7
- package/dist/_dts/{validation-Bxi66FtQ.d.ts → validation-BtbZIT5f.d.ts} +7 -6
- package/dist/client/{BlocksIslandsHydrator-2xzlERTG.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qsohSEdQ.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-DrdtON0q.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CUFxBaTM.mjs → BookingQuestionFields-MbvIo2jS.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Ch0w0Utn.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +9 -9
- package/dist/client/{DemoBookingPortalAccess-DGgsjqXK.mjs → DemoBookingPortalAccess-C9Ggcfx3.mjs} +3 -3
- package/dist/client/{EventCalendar.client-Dg4PHFJJ.mjs → EventCalendar.client-BSMuSqg0.mjs} +9 -9
- package/dist/client/{EventCombined.client-tky8JcnQ.mjs → EventCombined.client-BTrmSyUB.mjs} +8 -8
- package/dist/client/{EventItem-BybMSKNL.mjs → EventItem-B0WjGXsH.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-uvWRE5wi.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
- package/dist/client/{EventListing.client-DQx9dohz.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
- package/dist/client/{EventListing.view-r31k8Icz.mjs → EventListing.view-BEH4UbSL.mjs} +17 -8
- package/dist/client/{EventRegistrationPayment-BMmPDmSf.mjs → EventRegistrationPayment-B2EikR3f.mjs} +9 -9
- package/dist/client/{LocationMapActions-BecH-qhI.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BJzmFdcn.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -37
- package/dist/client/{Page-CWN_8cLZ.mjs → Page-C03rc6jw.mjs} +339 -269
- package/dist/client/{SiteTermsAgreementField-Dr5lj4oY.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +2 -2
- package/dist/client/{StepIndicator-C7RJBOW3.mjs → StepIndicator-Bb7rPtSq.mjs} +5 -5
- package/dist/client/{accordion-uUi_N6mZ.mjs → accordion-BfsOiweL.mjs} +1 -1
- package/dist/client/{booking-form.client-CKHgxvsh.mjs → booking-form.client-B8ohIj13.mjs} +13 -13
- package/dist/client/{bookingForm-Bi74dmiS.mjs → bookingForm-CXsck2oH.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-C-gFwhnO.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -2
- package/dist/client/{carousel-C0_BqMA0.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
- package/dist/client/{cart-BOHuppVu.mjs → cart-CTC2oS3p.mjs} +3 -3
- package/dist/client/{cart.client-IfJE1zAp.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
- package/dist/client/{checkout-C3Aj-aNa.mjs → checkout-BeW1ufaH.mjs} +3 -3
- package/dist/client/{checkout.client-Tg9lfeYf.mjs → checkout.client-BeU32khQ.mjs} +1 -1
- package/dist/client/{checkoutUrls-OLqQdAXD.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
- package/dist/client/client.mjs +70 -10
- package/dist/client/{context-D8TpQXjX.mjs → context-R9p5c8IH.mjs} +1 -1
- package/dist/client/{course-DHmeQAvq.mjs → course-CUFVJEAc.mjs} +1 -1
- package/dist/client/{dateFormatting-ABCZWkpT.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdcuW_pa.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
- package/dist/client/{display-DMqotaGU.mjs → display-4HYOb-AK.mjs} +51 -4
- package/dist/client/{enhanceHeaderSection-Ciuhsk0E.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
- package/dist/client/{event-details.client-CJapNbTv.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
- package/dist/client/{event-registration.client-CAdcpnLc.mjs → event-registration.client-DWvSODTI.mjs} +11 -11
- package/dist/client/{eventCalendar-BlsD5R8M.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
- package/dist/client/{eventCombined-B9Ly3024.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
- package/dist/client/{eventDetails-CbEGI4jO.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
- package/dist/client/{eventListing-ZSmvhWII.mjs → eventListing-B-bJOQUk.mjs} +4 -4
- package/dist/client/{eventRegistration-D-yUcIyO.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
- package/dist/client/{form-DG_YZSNn.mjs → form-BbUUt784.mjs} +3 -3
- package/dist/client/{form.client-BU6dM0-C.mjs → form.client-BVlz-9_t.mjs} +4 -4
- package/dist/client/{form.parts-Db0Iq7nx.mjs → form.parts-TB4UIrML.mjs} +1 -1
- package/dist/client/{formatDate-DFfWHpQB.mjs → formatDate-TDHhFjFN.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -4
- package/dist/client/{gifting-DMrsN4B4.mjs → gifting-CbNSrp7C.mjs} +4 -4
- package/dist/client/{gifting.client-BVa2XYJB.mjs → gifting.client-B__bGhFc.mjs} +4 -4
- package/dist/client/{gifting.parts-C2u4Y-pf.mjs → gifting.parts-CTA1sDW6.mjs} +2 -2
- package/dist/client/{headerSection-D91EzlOR.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
- package/dist/client/{lookSurfaces-BDZLALxj.mjs → lookSurfaces-BwiNdgMU.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BMGRiRpo.mjs → newsletter-form.client-B17WYHxZ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-D5UfUaD3.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +1 -1
- package/dist/client/{newsletterForm-B_67sNwa.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
- package/dist/client/{noop-DF8_EiFt.mjs → noop-CaQxI-Js.mjs} +2 -9
- package/dist/client/portal/client.mjs +47 -26
- package/dist/client/{product-detail.client-D-XNir0m.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
- package/dist/client/{product-list.client-BLfYQ-qi.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
- package/dist/client/{productDetail-W0_0lDGe.mjs → productDetail-BgKmCwA8.mjs} +3 -3
- package/dist/client/{productList-ayAtPJdb.mjs → productList-C_wMKsYS.mjs} +3 -3
- package/dist/client/{propsDecoder-ChYKWjLA.mjs → propsDecoder-y3LvxaiG.mjs} +4 -4
- package/dist/client/{registry.server-B1EEZkcr.mjs → registry.server-CIWYKz1V.mjs} +83 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +87 -22
- package/dist/client/{richText-coerce-CDAfpMQU.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CcGWvyht.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
- package/dist/client/{shop-DbUUoHFJ.mjs → shop-CFbWlv_W.mjs} +3 -3
- package/dist/client/{shop-commerce-aQqcDmyZ.mjs → shop-commerce-C-I29eaA.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Cd7USpuY.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DGvPBmVP.mjs → shop-discount-apply.state-DOm7vx0X.mjs} +2 -2
- package/dist/client/{shop.client-BNZ9M8cG.mjs → shop.client-GHTWUKD6.mjs} +12 -12
- package/dist/client/{shop.interactive-CJAINJr3.mjs → shop.interactive-CxDJ8P2r.mjs} +3 -3
- package/dist/client/{shopShared-DwVAuGsx.mjs → shopShared-Be9QJJpT.mjs} +2 -2
- package/dist/client/{timetableModel-DBTIFWTb.mjs → timetableModel--R0zVzZO.mjs} +8 -8
- package/dist/client/{useAvailableSlots-BomyyKeo.mjs → useAvailableSlots-BGu_2F50.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CCxHMWlU.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +1 -1
- package/dist/client/{useEventPagination-Bjin_qaN.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -7
- package/dist/client/{view-BTk470k0.mjs → view-3foOzGWR.mjs} +3 -3
- package/dist/client/{view-Cw4EmEPv.mjs → view-BbzH5MQb.mjs} +61 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-bq7gbKvn.mjs → PageSectionToolbar-D6-jojqh.mjs} +52 -8
- package/dist/preview-next/client/{PreviewEditorSidebar-DVsPNcos.mjs → PreviewEditorSidebar-BUVFKZ4k.mjs} +57 -61
- package/dist/preview-next/client/{PreviewEditorUI-B-pq3aZc.mjs → PreviewEditorUI-292pOiSt.mjs} +10 -10
- package/dist/preview-next/client/{PreviewShell-ChyjB96e.mjs → PreviewShell-CW0Yzj3h.mjs} +9 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D_czeC0l.mjs → SdkPreviewModeRuntime-Dba7zoZK.mjs} +87 -48
- package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-B61mZd81.mjs → previewAssistantSlot-B-utyhbS.mjs} +506 -282
- package/dist/preview-next/client/{previewChromeRoot-dwOn9XtM.mjs → previewChromeRoot-CCoGydUD.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DZDfOxoW.mjs → sdk-runtime-DCpXVcA0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BZDIC-fA.mjs → siteStyleAccess-sjOvRAHY.mjs} +27 -17
- package/dist/preview-next/client/{useAutosaveStatus-BbzLMf-l.mjs → useAutosaveStatus-R1rZ9-IZ.mjs} +3 -30
- package/dist/preview-next/client/{useOpenBlockForSetup-BEXcWQeI.mjs → useOpenBlockForSetup-BS7CANPv.mjs} +17 -3
- package/dist/preview-next/container-responsive.css +3 -0
- package/dist/preview-next/editor-chrome.css +4 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-0gSlK9S0.mjs → route-contract-BSSbtz6A.mjs} +24 -3
- package/dist/server/{Block.shared-DeXXycg8.mjs → Block.shared-Dc3DX7Cf.mjs} +84 -16
- package/dist/server/{bindings-7L3pC5Os.mjs → bindings-VGgS6UvF.mjs} +3 -3
- package/dist/server/{client-CgghATBm.mjs → client-BPLLL22F.mjs} +69 -10
- 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/index.mjs +2 -2
- package/dist/server/{loadContent-D7M5Vcug.mjs → loadContent-CxASA3PE.mjs} +5 -8
- package/dist/server/{loadPage-CiTId05y.mjs → loadPage-CQgde5DN.mjs} +2 -2
- package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
- package/dist/server/next/revalidate.mjs +15 -8
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-CJ3MRI5Q.mjs → overrideResolution-CkpwAHvW.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-Cuos4Xcd.mjs → pageRenderPlan-CfSnAkCO.mjs} +10 -41
- package/dist/server/{pageRuntimeSupport-CuVj3bkd.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +4 -13
- package/dist/server/{pageShared-JxlV8_Bo.mjs → pageShared-6z6JBU41.mjs} +121 -67
- package/dist/server/{prebuild-BDhlJbAx.mjs → prebuild-B4_Llisx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-kERh_c0v.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
- package/dist/server/{registry-cQ9N5W-n.mjs → registry-CXRXsFSx.mjs} +346 -513
- 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 +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CN4UmmTK.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
- package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-3puM5SM8.mjs → validation-BvHio6QI.mjs} +4 -6
- package/dist/server/{version-B8g-Wx57.mjs → version-SuFlio6n.mjs} +1 -1
- package/dist/styles/index.css +8 -1
- package/package.json +1 -1
- package/dist/server/identity-DQD_8lNO.mjs +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
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 { $ as resolveCardListSchedule, $a as gradientToCss, $s as resolveExactOrFreePriceDisplay, Ao as resolveSectionBackground, At as groupOfferingRunsByCourse, Ba as resolveModeArrangement, Bn as getEventAvailability, Br as formatEventStartingPrice, Bt as ThemedButtonLink, Ci as asPartialObject, Cs as nextLiveRunSessionStartMs, Do as applyLookPhotoTreatment, Fi as ClockIcon, Fr as formatCoursePrice, Fs as formatDateTimeRange, Hn as isEventFull, Hr as getAnchorClasses, Hs as parseBookingLocalDate, Ia as styleSectionBackgroundForColour, In as isBookableEvent, Ir as formatEventDepositNote, Js as formatBookingPriceDisplay, Jt as weekColumnDays, Ks as toUtcIsoDateTimeString, La as arrangementManifestFromVariants, Ln as canJoinEventWaitlistOnAnyMode, Lr as formatEventPrice, Mr as classPricesCopySchema, No as stripStaleTransitionStyleGroup, Nr as classPricesDataSchema, Ns as formatDate, Oa as arrangementAppearancePresets, Oo as deriveSectionGround, Or as heroMorePhotoCount, Po as themeV2CompilerOwnedFieldNames, Pr as resolveClassPriceItems, Ps as formatDateRange, Qn as contentTransforms, Qo as formatDateKey, Qt as eventLocalDateKey, Ra as readStoredMode, Rn as formatEventRemainingPlaces, Si as lookSkinSlotTransform, Sn as closedRunCopy, Sr as listLookSlot, Ts as resolveWholeSeriesBookingPhase, Ua as deriveSiteStyleBlockPolicy, Va as resolvePublishedLook, Vn as getEventAvailabilityStatus, Vr as BACKGROUND_POSITION_PRESET_VALUES, Vs as getLocalScheduleDate, Ws as resolveBookingBusinessTimeZone, Wt as buildEventListWeek, X as CardListContentPart, Xi as augmentManifest, Xt as eventCalendarWeekStart, Z as CardListLeadDate, Zi as isObjectRecord, Zt as eventDateOptions, _a as lookPresentationOnPalette, aa as eventDiscoveryFilterKeys, ac as parseGradientPresetId, ai as boxStylesTransforms, ar as headerRuntimeTransforms, at as computeMediaTransformStyle, bi as lookLeadSlotTransform, br as listItemPresentation, ca as eventScopeQueryKeys, cn as formatEventWeekdayTime, da as eventCalendarListGroupingDecision, di as parseRuntimeBackgroundContent, dn as resolveEventTimeZone, dt as systemCustomizeFacetDefinitionsForBlock, ea as blockChecksForEvents, ec as resolvePricingOptionsPriceDisplay, eo as getGradientPreset, et as selectCardListPresentation, fa as resolveEventCalendarReadPlan, fi as resolveSectionSurfaceForeground, fn as resolveRuntimeEventDestination, gi as isSemanticSpacing, ho as sectionShapeHook, ht as EventQuickFacts, ir as mediaTransforms, is as isToday, jo as sectionSurfaceBase, ko as parseCanonicalRuntimeBackground, la as resolveEventScope, li as parseBackgroundContent, ln as formatTime, lr as uiTransforms, mi as resolveBackgroundColorValue, mo as sectionShapeFromContent, na as eventReadinessQuery, nn as formatEventCompactDateRail, nr as readRuntimeNow, oa as eventScopeLoaderParam, oc as arrangementSlotNames, on as formatEventRunDates, or as chromeLogoTransforms, pi as resolveSurfaceForegroundStyles, pn as formatBookingSchedulePresentation, po as sectionShapeForGround, qt as groupEventsByWeek, ra as eventReadinessQueryKeys, rn as formatEventDateParts, rt as ImagePresets, sa as eventScopeQuery, sn as formatEventTimeRange, sr as layoutTransforms, t as getBlockDefinition, ta as eventReadinessLoaderKey, tt as MediaNodeServer, ua as resolveCalendarReadProfile, ui as parseBackgroundOverlay, un as groupEventsByDate, ur as formattingTransforms, ut as resolveArrangementKnobs, va as resolveLookSurfacePresentation, vo as boundaryRuntimeMetricsForDecorativeTransition, wa as heroPhotoPaintsGround, wi as createTransformRegistry, ws as orderedLiveRunSessions, xi as lookQuoteLimitTransform, yi as lookCarouselRegionTransform, yn as formatEventLocation, z as combinedLookSchema, za as resolveEffectiveArrangement, zn as formatTotalCapacity, zr as formatEventPriceDisplay, zs as compareLocalScheduleDates } from "./registry-CXRXsFSx.mjs";
|
|
3
3
|
import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
4
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";
|
|
@@ -985,41 +985,6 @@ function readableDuration(minutes) {
|
|
|
985
985
|
].filter(Boolean).join(" ");
|
|
986
986
|
}
|
|
987
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
|
|
1023
988
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
1024
989
|
function formatTeamMemberNames(names) {
|
|
1025
990
|
const normalized = names.map((name) => name.trim()).filter(Boolean);
|
|
@@ -2057,10 +2022,7 @@ function offeringFacts(event, places, offering) {
|
|
|
2057
2022
|
label: "Length",
|
|
2058
2023
|
value: sessions
|
|
2059
2024
|
}] : lengthFact(event, !offering || course),
|
|
2060
|
-
...offering
|
|
2061
|
-
label: "Venue",
|
|
2062
|
-
value: formatEventLocation(event)
|
|
2063
|
-
}] : [],
|
|
2025
|
+
...offering ? placeFact(event) : [],
|
|
2064
2026
|
...places ? [{
|
|
2065
2027
|
label: "Places",
|
|
2066
2028
|
value: places,
|
|
@@ -2072,6 +2034,13 @@ function offeringFacts(event, places, offering) {
|
|
|
2072
2034
|
}]
|
|
2073
2035
|
];
|
|
2074
2036
|
}
|
|
2037
|
+
/** An online event, or one whose address follows the booking, says so where a venue would go. */
|
|
2038
|
+
function placeFact(event) {
|
|
2039
|
+
return event.venue || event.addressAfterBooking || event.deliveryMode !== "in_person" ? [{
|
|
2040
|
+
label: "Venue",
|
|
2041
|
+
value: formatEventLocation(event)
|
|
2042
|
+
}] : [];
|
|
2043
|
+
}
|
|
2075
2044
|
function lengthFact(event, shown) {
|
|
2076
2045
|
const minutes = Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4);
|
|
2077
2046
|
return shown && minutes > 0 ? [{
|
|
@@ -4766,4 +4735,4 @@ function plannedSlotParents(entry, look) {
|
|
|
4766
4735
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
4767
4736
|
}
|
|
4768
4737
|
//#endregion
|
|
4769
|
-
export {
|
|
4738
|
+
export { resolveEventLinkProps 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, resolveEventCta as Q, eventCategoryBadge as R, lookPartShown as S, MonthLookView as T, formatCourseDatesAfter as U, eventDisplayTitle as V, formatCourseSessions as W, formatEventDuration as X, formatEventTeacherLine as Y, resolveEventCardBooking as Z, publicAppointmentPricingSchema as _, joinSlotKey as a, defaultThemeTokens as at, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, builtinTransformDefinitions as d, parseStoredVariant as et, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, buildThemeTokens as it, derivePreviewRunSchedule as j, offeringDatesBySeries as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, lookFillPartsFromContent as nt, renderedJoinLayout as o, formatAppointmentDuration as p, formatEventQuickDate as q, planArrangementContent as r, resolveRuntimeSection as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, selectBlockContent as tt, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EVENT_REGISTRATION_ANCHOR_ID as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, CalendarIcon as z };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gi as plainTextToInlineText, Go as parseRepeaterGridInteger, Hi as inlineTextToPlainText, Ji as parseFieldDefinitions, Jo as resolveRepeaterGridSpanFieldId, Ki as normalizeSelectSource, Ko as resolveRepeaterGridColumnFieldId, Ks as toUtcIsoDateTimeString, Ro as DEFAULT_MEDIA_FIELD_KINDS, Wi as parseInlineTextFromUnknown, Wo as isAcceptedRepeaterGridSpan, Ws as resolveBookingBusinessTimeZone, bs as isRecord$1, f as sanitizeNewsletterSignupPublicContent, ki as parseBlockIconValue, nc as parseContentVersionId, ps as linkSchema, qo as resolveRepeaterGridRowFieldId, t as getBlockDefinition } from "./registry-CXRXsFSx.mjs";
|
|
2
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
|
+
import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
|
|
4
5
|
import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
5
6
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
6
7
|
import { n as mapOutlineBlocks, r as mapOutlineRegions } from "./pageRegions-BaeEF2MU.mjs";
|
|
@@ -1758,21 +1759,16 @@ function siteBookingRenderSupport(site) {
|
|
|
1758
1759
|
businessPerson: site.bookingPerson ?? null
|
|
1759
1760
|
};
|
|
1760
1761
|
}
|
|
1761
|
-
function buildSiteRenderSupport(site, mediaAssets
|
|
1762
|
+
function buildSiteRenderSupport(site, mediaAssets) {
|
|
1762
1763
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
1763
1764
|
return {
|
|
1764
1765
|
theme: site.theme,
|
|
1765
|
-
site:
|
|
1766
|
-
...site.site,
|
|
1767
|
-
venuesById: locationMapSupport.venuesById
|
|
1768
|
-
} : site.site,
|
|
1766
|
+
site: site.site,
|
|
1769
1767
|
sdkConfig: site.sdkConfig ?? null,
|
|
1770
1768
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
1771
1769
|
siteTerms: site.siteTerms,
|
|
1772
1770
|
mailingList: site.mailingList,
|
|
1773
1771
|
interactionContext: site.interactionContext,
|
|
1774
|
-
businessLocationPermission: site.site.businessLocationPermission,
|
|
1775
|
-
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
1776
1772
|
...siteBookingRenderSupport(site),
|
|
1777
1773
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
1778
1774
|
...customBlocks ? { customBlocks } : {},
|
|
@@ -1783,14 +1779,9 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
1783
1779
|
...mediaAssets ? { mediaAssets } : {}
|
|
1784
1780
|
};
|
|
1785
1781
|
}
|
|
1786
|
-
/** Only already-permitted projections reach the block runtime. */
|
|
1787
1782
|
function siteBlockRenderContext(support) {
|
|
1788
1783
|
return {
|
|
1789
1784
|
businessPerson: support.businessPerson,
|
|
1790
|
-
businessLocationPermission: support.site.businessLocationPermission,
|
|
1791
|
-
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
1792
|
-
businessLocation: support.site.businessLocation ?? null,
|
|
1793
|
-
venuesById: support.site.venuesById ?? {},
|
|
1794
1785
|
siteCountry: support.site.siteCountry ?? null
|
|
1795
1786
|
};
|
|
1796
1787
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, Et as parseColorTokenParts, G as hexToRgb, R as contrastRatio, a as formatButtonColourContractError, at as surfaceForegroundValue, c as DEFAULT_BUTTON_SIZES, ct as surfaceInkStyle, d as generateShadowValue$1, et as SURFACE_INK_CSS_VARS, f as DEFAULT_VARIANT_ALIAS_ID, ft as cssVarValue, g as createStandardButtonSurfacePolicy, gt as textColorValue, h as buttonSizeNameSchema, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, j as expandPalette, mt as rgbColorValue, n as compileButtonColourStates, nt as surfaceForegroundDeclarations, pt as mergeStyles, r as resolveSolidButtonColour, rt as surfaceForegroundInputFromResolved, s as BORDER_WIDTH_MAP, st as surfaceInkDeclarations, u as FONT_SIZE_MAP, ut as backgroundColorStyle, v as unsafeAsOpaqueButtonColourToken } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as
|
|
2
|
+
import { $ as resolveEventLinkProps, A as deriveEventScheduleSummary, B as MapPinIcon, C as EventHeader, D as OfferingCourseCards, E as EventListingFrameView, F as CardListCollection, G as buildMonthDay, H as eventDisplayTitleText, I as CardListItems, J as selectQuickDateEvents, K as resolveMonthSelectedDay, L as EventItem, M as createEditorPresentationPageReader, N as createPresentationPageReader, O as eventCardListContent, P as EmptyState, Q as resolveEventCta, R as eventCategoryBadge, S as lookPartShown, T as MonthLookView, U as formatCourseDatesAfter, V as eventDisplayTitle, W as formatCourseSessions, X as formatEventDuration, Y as formatEventTeacherLine, Z as resolveEventCardBooking, _ as publicAppointmentPricingSchema, a as joinSlotKey, at as defaultThemeTokens, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, et as parseStoredVariant, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, it as buildThemeTokens, j as derivePreviewRunSchedule, k as offeringDatesBySeries, m as formatAppointmentLocation, n as createPageRenderPlanReader, o as renderedJoinLayout, p as formatAppointmentDuration, q as formatEventQuickDate, s as retargetJoinsAcrossOmissions, u as resolveLinkedEntryInlineFieldEligibility, w as EVENT_REGISTRATION_ANCHOR_ID, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as CalendarIcon } from "./pageRenderPlan-CfSnAkCO.mjs";
|
|
3
|
+
import { $i as chosenString, $n as parseTeamMemberSpecialties, $o as getDayOfWeek, $r as testimonialsHeadingFragment, $s as resolveExactOrFreePriceDisplay, $t as formatCalendarTitle, A as membershipClassesLabel, Ai as resolveBlockIconRenderValue, An as planOrdinarySeriesSelection, As as sameMailingListPlacementTargeting, At as groupOfferingRunsByCourse, B as eventListingBlockDefinition, Bi as MinusIcon, Bs as getBookingLocalDateKey, Bt as ThemedButtonLink, C as buildCartInteractiveIslandProps, Ca as readOpeningToneProjection, Cn as bookingPageKindSchema, Cr as lookListPresentationSchemaShape, Ct as normalizeEventRegistrationPageSurfaceSubject, D as buildShopInteractiveIslandProps, Da as headerRootPaint, Di as when, Dn as getPublicEventCanonicalPath, Dr as clsx, Ds as parseMailingListRuntimeContext, E as buildProductListInteractiveIslandProps, Ea as headerRootIsTransparent, Ei as el, En as eventOccurrenceContext, Eo as transitionCatalogueEntries, Er as Grid, Es as buildMailingListSignupBlockSourceRef, F as offeringsCatalogueShape, Fi as ClockIcon, Fn as selectionRepresentativeEvent, Fr as formatCoursePrice, Ft as resolveOfferingsPreviewGroupCta, G as eventCollectionDisplaySchemaShape, Gn as resolveFeatureCardGeneratedIconSizePx, Gr as cardFragment, Gs as toBookingTimeZone, Gt as eventListWeekDays, H as buildEventCollectionDisplay, Hi as inlineTextToPlainText, Hn as isEventFull, Ht as getIconComponent, I as eventCalendarBlockDefinition, Ii as FileArchiveIcon, In as isBookableEvent, Ir as formatEventDepositNote, It as resolveOfferingsPreviewGroups, J as catalogueEventCardProps, Ji as parseFieldDefinitions, Jr as blogFeaturedPostFragment, Js as formatBookingPriceDisplay, K as eventCollectionHydrationSchema, Kn as shouldReserveFeatureCardIconZone, Kr as faqAccordionFragment, Ks as toUtcIsoDateTimeString, Kt as eventWeekGroupingContext, L as buildEventCalendarInteractiveIslandProps, La as arrangementManifestFromVariants, Li as FileAudioIcon, Lo as bindingSchema, Lr as formatEventPrice, Ls as formatBookingCompactEnglishTime, Lt as resolveOfferingsRenderInput, M as offeringsPreviewBlockDefinition, Mi as ChevronDownIcon, Mn as planWholeSeriesParentSelection, Ms as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Mt as offeringRunLifecycle, N as publicRouteCandidatesSchema, Ni as CircleMinusIcon, Nn as planWholeSeriesRunSelection, Ns as formatDate$1, Nt as offeringsListingFor, O as shopProductPresentation, Oi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, On as isOrdinaryPublicEvent, Ot as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, P as buildOfferingsCatalogueListing, Pi as CirclePlusIcon, Pn as resolveSelectionBookingClosedDetail, Pt as readOfferingsGrouping, Q as cardListPresentationSchemaShape, Qi as isRecord$4, Qo as formatDateKey, Qr as testimonialsCarouselFragment, Qs as publicEventPricingType, R as buildEventCalendarListingDisplay, Ri as FileSpreadsheetIcon, Rn as formatEventRemainingPlaces, Rr as formatEventPriceAmount, Rs as toScheduledBookingDateTime, Rt as ThemedAuthoredButton, S as shopBlockDefinition, Sa as effectiveHeaderNavLinkStyle, Sn as closedRunCopy, Sr as listLookSlot, Ss as CANCELLED_SESSION_STATUS, St as previewStageSchema, T as buildProductDetailInteractiveIslandProps, Ta as headerNeedsPhotoShade, Ti as runTransforms, Tn as hasCancelledRegistrationDate, To as anglePolygonCss, Tr as itemRole, Ts as resolveWholeSeriesBookingPhase, U as buildEventCollectionHydration, Ui as isInlineTextEmpty, Un as groupPublicEventsByRun, Ur as richTextFragment, Us as parseLocalScheduleTime, Ut as SpinnerNode, V as buildEventListingInteractiveIslandProps, Vi as PlusIcon, Vn as getEventAvailabilityStatus, Vt as ThemedDownloadLink, W as buildEventCollectionListingDisplay, Wi as parseInlineTextFromUnknown, Wn as FEATURE_CARD_ICON_TREATMENTS, Wr as headingFragment, Ws as resolveBookingBusinessTimeZone, Wt as buildEventListWeek, X as CardListContentPart, Xn as markEditableSurfaceForwarding, Xo as getLocalMinuteOfDay, Xr as formEmbedFragment, Xs as publicEventPricingCurrency, Y as listingEventCardProps, Ya as requireCuratedSiteStyle, Yi as PUBLIC_DOWNLOAD_MEDIA_TYPES, Yn as composeHeaderSectionWrapperClassName, Yo as getLocalDateKey, Yr as singleButtonFragment, Ys as isPublicEventPricingOptionDisplayable, Yt as buildCalendarViewport, Zi as isObjectRecord, Zn as splitPositioningClasses, Zo as addDays, Zr as formCopyFragment, Zs as publicEventPricingDisplay, Zt as eventDateOptions, _ as buildGiftingInteractiveIslandProps, _i as bodyCopyFragment, _n as eventPlaceName, _r as createZodCodec, _s as loadedReadinessFact, _t as getContainerClass, a as LOCATION_MAP_LOADER_KEYS, an as formatEventNextDateFact, ao as generateNavLinkCSS, b as productDetailBlockDefinition, bn as blockSiteTermsSchema, br as listItemPresentation, bt as resolveEventRegistrationEventSource, c as normalizeLocationMapSource, ci as resolveCardRoleForBoxStyles, co as resolveEffectPaint, cr as staticHeaderChromeRuntime, cs as blockBookingConsentSchema, d as newsletterSignupBlockDefinition, dn as resolveEventTimeZone, ds as sanitizeHref, ei as ctaCopyFragment, en as formatDate, er as teamMemberBiography, es as getOrderedDayNames, fn as resolveRuntimeEventDestination, fr as formBlockDefinition, ft as buildResolveImageUrlContext, g as giftingBlockDefinition, ga as resolveHeaderRootForeground, gn as eventOnlinePlace, gr as defineInteractiveIslandMetaKeys, gs as hiddenFromVisitors, gt as getCardOrientation, h as newsletterBlockSubmissionMessage, ha as AFFORDANCE_SUPPRESS_CLASS, hi as ctaButton, hn as browserReadAuthoritySchema, hr as createInteractiveIslandCodec, hs as admitReadinessFacts, ht as EventQuickFacts, ia as eventReadinessResultSchema, ii as heroCopyFragment, in as formatEventHourLabel, io as buildTextContrastShadow, is as isToday, it as MediaPlaceholder, j as passCardListContent, ji as ArrowDownIcon, jn as planWholeSeriesParentBooking, jt as normalizeOfferingsPreviewItemLimit, k as membershipCardListContent, ka as arrangementLookHooks, ki as parseBlockIconValue, kn as planDropInPanel, ks as parseMailingListPlacementTargeting, kt as buildOfferingsPreviewListing, l as parseLocationMapLoaderResult, ln as formatTime, lo as generateInteractiveChildInheritanceCSS, ls as bookingConsentCarrierSchema, lt as resolvePublicMediaUrl, m as buildNewsletterFormInteractiveIslandProps, ma as themeButtonSelector, mi as resolveBackgroundColorValue, mn as bookingPresentation, mr as buildInteractiveIslandProps, mt as setContextResolveImageUrlContext, ni as ctaRowFragment, nn as formatEventCompactDateRail, no as generateDefaultCardSystem, nr as readRuntimeNow, ns as getWeekCalendarDays, nt as RichText, o as describeUnresolvedLocationMapLocation, oi as boxStyleClassNames, oo as generateEffectsCSS, os as publicEventsArraySchema, p as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, pa as parseThemeButtonVariantId, pr as buildFormInteractiveIslandProps, pt as getCurrentResolveImageUrlContext, q as eventCollectionSourceSchemaShape, qr as faqHeadingFragment, r as normalizeBlockContent, ri as isBlockButtonRole, rn as formatEventDateParts, ro as generateFooterCss, rr as resolveDateRuntimeContext, rs as isSameCalendarDay, rt as ImagePresets, s as normalizeLocationMapProps, sc as TokenResolver, si as normalizeBoxStylesBorder, sn as formatEventTimeRange, so as resolveEffectApplications, ss as blockBookingPaymentTermsSchema, t as getBlockDefinition, ta as eventReadinessLoaderKey, tc as formatCurrencyAmount, ti as heroCtaRowFragment, tn as formatEventClockLabel, to as resolveCardRole, tr as teamMemberCardBiography, ts as getWeekCalendarDayTuple, tt as MediaNodeServer, u as resolveLocationMapLocation, un as groupEventsByDate, us as beforeBookingQuestionsPresentationSchema, v as checkoutBlockDefinition, vi as defineFragment, vn as eventVenuePlace, vo as boundaryRuntimeMetricsForDecorativeTransition, vr as defineClientOwnedBlockRuntime, vs as pageTemplateFromEntry, vt as eventRegistrationBlockDefinition, w as buildCheckoutInteractiveIslandProps, wn as cancelledDateCopy, wr as resolvedItemSurfaceProps, ws as orderedLiveRunSessions, wt as resolveEventRegistrationScopedEvents, x as productListBlockDefinition, xa as authoredHeaderLinkForeground, xn as pageNavigationSchema, xr as listLookControl, xt as bookingNowSchema, y as cartBlockDefinition, ya as selectItemSurfacePresentation, yn as formatEventLocation, yr as defineProgressiveBlockRuntime, ys as unavailableReadinessFact, yt as buildEventRegistrationInteractiveIslandProps, za as resolveEffectiveArrangement, zi as FileTextIcon, zn as formatTotalCapacity, zt as ThemedButton } from "./registry-CXRXsFSx.mjs";
|
|
4
4
|
import { B as HOVER_TEXT_THRESHOLD, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as inkReference, V as certifyPaint, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
5
5
|
import { b as siteChromeBackgroundOverrideOwner, m as surfaceCardRoleValues, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
6
6
|
import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
7
|
+
import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
7
8
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
8
|
-
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-
|
|
9
|
+
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
9
10
|
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
10
11
|
import { M as opaqueSurfaceDeclarations, T as testimonialsCompositionTreatmentValues, j as opaqueSurfaceContextFromTheme, v as featureCardCompositionTreatmentValues, x as offeringsPreviewCompositionTreatmentValues, y as introCompositionTreatmentValues } from "./lookMediaFrame-CaH018pK.mjs";
|
|
11
|
-
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-
|
|
12
|
+
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-VGgS6UvF.mjs";
|
|
12
13
|
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as prefixSelector, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as escapeStyleContent, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, n as compileBlockCustomCssRules, o as toKebabCase, p as generateProgressCss, r as compileCustomCssRules, s as parseBlockCustomCssRules, t as ThemeScopeCore, u as generateBlockCustomVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DFEM1a85.mjs";
|
|
13
14
|
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-DOsfofCy.mjs";
|
|
14
15
|
import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
@@ -5120,7 +5121,7 @@ function EventCardContent(props) {
|
|
|
5120
5121
|
}
|
|
5121
5122
|
function EventCardVenue(props) {
|
|
5122
5123
|
const venue = props.showVenue ? props.event.venue : null;
|
|
5123
|
-
if (!venue) return null;
|
|
5124
|
+
if (!venue) return props.showVenue && props.event.addressAfterBooking ? /* @__PURE__ */ jsx(AddressAfterBookingLine, {}) : null;
|
|
5124
5125
|
const { place } = eventVenuePlace(venue);
|
|
5125
5126
|
return /* @__PURE__ */ jsxs("div", {
|
|
5126
5127
|
className: "rb-mb-3",
|
|
@@ -5133,6 +5134,15 @@ function EventCardVenue(props) {
|
|
|
5133
5134
|
})]
|
|
5134
5135
|
});
|
|
5135
5136
|
}
|
|
5137
|
+
function AddressAfterBookingLine() {
|
|
5138
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5139
|
+
className: "rb-mb-3",
|
|
5140
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
5141
|
+
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
5142
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsx("span", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL })]
|
|
5143
|
+
})
|
|
5144
|
+
});
|
|
5145
|
+
}
|
|
5136
5146
|
function EventCardFooter(props) {
|
|
5137
5147
|
return /* @__PURE__ */ jsxs("div", {
|
|
5138
5148
|
...listLookSlot(props, "item-actions"),
|
|
@@ -8352,7 +8362,7 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
|
|
|
8352
8362
|
})
|
|
8353
8363
|
}) : null;
|
|
8354
8364
|
}
|
|
8355
|
-
function EventFacts({ selection, selected, venue, online, teamMembers, pricing, showCapacity, lookSlots }) {
|
|
8365
|
+
function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots }) {
|
|
8356
8366
|
const { date, timeRange } = formatEventDateParts({
|
|
8357
8367
|
startsAt: selected.startsAt,
|
|
8358
8368
|
endsAt: selected.endsAt,
|
|
@@ -8376,7 +8386,8 @@ function EventFacts({ selection, selected, venue, online, teamMembers, pricing,
|
|
|
8376
8386
|
] }),
|
|
8377
8387
|
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
8378
8388
|
venue,
|
|
8379
|
-
online
|
|
8389
|
+
online,
|
|
8390
|
+
addressAfterBooking
|
|
8380
8391
|
}),
|
|
8381
8392
|
/* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
|
|
8382
8393
|
showCapacity && selected.capacity != null ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -8395,25 +8406,43 @@ function EventFacts({ selection, selected, venue, online, teamMembers, pricing,
|
|
|
8395
8406
|
});
|
|
8396
8407
|
}
|
|
8397
8408
|
const eventOnlinePlaceShown = (event, showVenue) => showVenue ? eventOnlinePlace(event) : null;
|
|
8409
|
+
const hasEventPlaceFact = (event, showVenue) => showVenue && (Boolean(event.venue) || eventOnlinePlace(event) !== null || event.addressAfterBooking === true);
|
|
8410
|
+
const addressAfterBookingShown = (event, showVenue) => showVenue && event.addressAfterBooking === true;
|
|
8411
|
+
/** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
|
|
8412
|
+
function EventPlaceWithoutVenue({ online, addressAfterBooking }) {
|
|
8413
|
+
if (!online && !addressAfterBooking) return null;
|
|
8414
|
+
if (!online) return /* @__PURE__ */ jsxs("div", {
|
|
8415
|
+
className: "rb-mt-6",
|
|
8416
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
8417
|
+
className: "rb-label rb-mb-2",
|
|
8418
|
+
children: "Venue"
|
|
8419
|
+
}), /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })]
|
|
8420
|
+
});
|
|
8421
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8422
|
+
className: "rb-mt-6",
|
|
8423
|
+
children: [
|
|
8424
|
+
/* @__PURE__ */ jsx("div", {
|
|
8425
|
+
className: "rb-label rb-mb-2",
|
|
8426
|
+
children: "Venue"
|
|
8427
|
+
}),
|
|
8428
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
|
|
8429
|
+
addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
|
|
8430
|
+
className: "rb-caption",
|
|
8431
|
+
children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
|
|
8432
|
+
}) : null,
|
|
8433
|
+
online.note ? /* @__PURE__ */ jsx("p", {
|
|
8434
|
+
className: "rb-caption",
|
|
8435
|
+
children: online.note
|
|
8436
|
+
}) : null
|
|
8437
|
+
]
|
|
8438
|
+
});
|
|
8439
|
+
}
|
|
8398
8440
|
/** An online event says so where a venue would go; a hybrid one adds it under the venue. */
|
|
8399
|
-
function EventVenueFact({ venue, online }) {
|
|
8400
|
-
if (!venue) {
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
children: [
|
|
8405
|
-
/* @__PURE__ */ jsx("div", {
|
|
8406
|
-
className: "rb-label rb-mb-2",
|
|
8407
|
-
children: "Venue"
|
|
8408
|
-
}),
|
|
8409
|
-
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
|
|
8410
|
-
online.note ? /* @__PURE__ */ jsx("p", {
|
|
8411
|
-
className: "rb-caption",
|
|
8412
|
-
children: online.note
|
|
8413
|
-
}) : null
|
|
8414
|
-
]
|
|
8415
|
-
});
|
|
8416
|
-
}
|
|
8441
|
+
function EventVenueFact({ venue, online, addressAfterBooking }) {
|
|
8442
|
+
if (!venue) return /* @__PURE__ */ jsx(EventPlaceWithoutVenue, {
|
|
8443
|
+
online,
|
|
8444
|
+
addressAfterBooking
|
|
8445
|
+
});
|
|
8417
8446
|
const { place, addressWithBooking } = eventVenuePlace(venue);
|
|
8418
8447
|
return /* @__PURE__ */ jsxs("div", {
|
|
8419
8448
|
className: "rb-mt-6",
|
|
@@ -8610,6 +8639,7 @@ function SelectedEventDetailsView(props) {
|
|
|
8610
8639
|
const selected = selection.selected;
|
|
8611
8640
|
const venue = showVenue ? selected.venue : void 0;
|
|
8612
8641
|
const online = eventOnlinePlaceShown(selected, showVenue);
|
|
8642
|
+
const addressAfterBooking = addressAfterBookingShown(selected, showVenue);
|
|
8613
8643
|
const pricing = selectedEventPricing(selected, props.showCost);
|
|
8614
8644
|
return /* @__PURE__ */ jsxs("div", {
|
|
8615
8645
|
className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
|
|
@@ -8628,6 +8658,7 @@ function SelectedEventDetailsView(props) {
|
|
|
8628
8658
|
selected,
|
|
8629
8659
|
venue,
|
|
8630
8660
|
online,
|
|
8661
|
+
addressAfterBooking,
|
|
8631
8662
|
showCapacity,
|
|
8632
8663
|
teamMembers: selected.teamMembers ?? [],
|
|
8633
8664
|
pricing: /* @__PURE__ */ jsx(EventPricingDetails, {
|
|
@@ -8720,13 +8751,14 @@ function EventHeaderPanel(props) {
|
|
|
8720
8751
|
})
|
|
8721
8752
|
});
|
|
8722
8753
|
}
|
|
8723
|
-
function HeaderPanelFacts({ venue, online, teamMembers, pricing }) {
|
|
8754
|
+
function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing }) {
|
|
8724
8755
|
return /* @__PURE__ */ jsxs("div", {
|
|
8725
8756
|
className: "rb-flex rb-flex-col rb-gap-4",
|
|
8726
8757
|
children: [
|
|
8727
8758
|
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
8728
8759
|
venue,
|
|
8729
|
-
online
|
|
8760
|
+
online,
|
|
8761
|
+
addressAfterBooking
|
|
8730
8762
|
}),
|
|
8731
8763
|
/* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
|
|
8732
8764
|
pricing ? /* @__PURE__ */ jsx(EventPricingDetails, { ...pricing }) : null
|
|
@@ -8744,10 +8776,11 @@ function headerPanelContent(props) {
|
|
|
8744
8776
|
return {
|
|
8745
8777
|
venue,
|
|
8746
8778
|
online,
|
|
8779
|
+
addressAfterBooking: addressAfterBookingShown(selection.selected, props.showVenue),
|
|
8747
8780
|
teamMembers,
|
|
8748
8781
|
pricing,
|
|
8749
8782
|
hasMap: Boolean(props.showMap && venue && props.selectedVenueDrawing),
|
|
8750
|
-
hasFacts:
|
|
8783
|
+
hasFacts: hasEventPlaceFact(selection.selected, props.showVenue) || teamMembers.length > 0 || pricing !== null,
|
|
8751
8784
|
hasDates: props.showOtherDates && scheduled > 0
|
|
8752
8785
|
};
|
|
8753
8786
|
}
|
|
@@ -11008,6 +11041,7 @@ function AgendaModalCard({ event, showCapacity, calendarTimeZone, onClick }) {
|
|
|
11008
11041
|
const capacity = showCapacity ? formatEventRemainingPlaces(event) : null;
|
|
11009
11042
|
const isFull = isEventFull(event);
|
|
11010
11043
|
const teacherLine = formatEventTeacherLine(event);
|
|
11044
|
+
const placeName = eventPlaceName(event);
|
|
11011
11045
|
const timeZone = resolveEventTimeZone(event, calendarTimeZone);
|
|
11012
11046
|
return /* @__PURE__ */ jsxs("button", {
|
|
11013
11047
|
type: "button",
|
|
@@ -11034,9 +11068,9 @@ function AgendaModalCard({ event, showCapacity, calendarTimeZone, onClick }) {
|
|
|
11034
11068
|
}), /* @__PURE__ */ jsxs("div", {
|
|
11035
11069
|
className: "event-agenda-card-details status-muted",
|
|
11036
11070
|
children: [
|
|
11037
|
-
|
|
11071
|
+
placeName && /* @__PURE__ */ jsxs("span", {
|
|
11038
11072
|
className: "event-agenda-card-venue",
|
|
11039
|
-
children: [/* @__PURE__ */ jsx(LocationIcon, {}),
|
|
11073
|
+
children: [/* @__PURE__ */ jsx(LocationIcon, {}), placeName]
|
|
11040
11074
|
}),
|
|
11041
11075
|
teacherLine && /* @__PURE__ */ jsx("span", {
|
|
11042
11076
|
className: "event-agenda-card-teacher",
|
|
@@ -14967,6 +15001,11 @@ function authoringMessage(reason) {
|
|
|
14967
15001
|
case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
|
|
14968
15002
|
case "hidden-business-location": return "This map is hidden because your business address is hidden.";
|
|
14969
15003
|
case "unresolved-location":
|
|
15004
|
+
if (reason.locationReason === "location_loading" || reason.locationReason === "location_load_failed") return describeUnresolvedLocationMapLocation({
|
|
15005
|
+
kind: "unresolved",
|
|
15006
|
+
source: reason.source,
|
|
15007
|
+
reason: reason.locationReason
|
|
15008
|
+
}) ?? "";
|
|
14970
15009
|
if (reason.source === "business_address") return "Business address details are not configured yet.";
|
|
14971
15010
|
return reason.source === "venue" ? "This map is hidden on your site until the venue has a location." : "This map is hidden on your site until you choose a place.";
|
|
14972
15011
|
case "editor-unpreviewable":
|
|
@@ -15146,11 +15185,7 @@ function buildPageRendererRootRuntime(dataContext) {
|
|
|
15146
15185
|
};
|
|
15147
15186
|
}
|
|
15148
15187
|
function publicLocationRuntime(context) {
|
|
15149
|
-
return {
|
|
15150
|
-
businessAddress: context?.businessLocation ?? null,
|
|
15151
|
-
venuesById: context?.venuesById ?? {},
|
|
15152
|
-
siteCountry: context?.siteCountry ?? null
|
|
15153
|
-
};
|
|
15188
|
+
return { siteCountry: context?.siteCountry ?? null };
|
|
15154
15189
|
}
|
|
15155
15190
|
function resolveDemoEmailSuppression(dataContext) {
|
|
15156
15191
|
return dataContext?.demoEmailSuppressed === true;
|
|
@@ -15580,11 +15615,10 @@ function createPageRenderPreparationReader() {
|
|
|
15580
15615
|
};
|
|
15581
15616
|
}
|
|
15582
15617
|
function preparePageRenderEntries(input, previous = null) {
|
|
15583
|
-
const
|
|
15584
|
-
const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
|
|
15618
|
+
const prepared = preparationAdmission(input).entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous)]);
|
|
15585
15619
|
const entries = prepared.map(([, value]) => value);
|
|
15586
15620
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
15587
|
-
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
|
|
15621
|
+
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && candidate.prepared.kind !== "hidden-business-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
|
|
15588
15622
|
const surviving = new Set(survivors);
|
|
15589
15623
|
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
15590
15624
|
const regions = {
|
|
@@ -15617,47 +15651,61 @@ function preparationAdmission(input) {
|
|
|
15617
15651
|
mailingList: input.dataContext?.mailingList,
|
|
15618
15652
|
template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
|
|
15619
15653
|
});
|
|
15620
|
-
|
|
15621
|
-
return {
|
|
15622
|
-
permission,
|
|
15623
|
-
entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
|
|
15624
|
-
};
|
|
15654
|
+
return { entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)) };
|
|
15625
15655
|
}
|
|
15626
|
-
function readPreparedPlanEntry(entry, input, previous
|
|
15656
|
+
function readPreparedPlanEntry(entry, input, previous) {
|
|
15627
15657
|
const cached = previous?.byEntry.get(entry);
|
|
15628
15658
|
if (cached && previous && samePreparationSettings(previous.input, input) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id)) return cached;
|
|
15629
|
-
return preparedPlanEntry(entry, prepareSourceEntry(entry, input
|
|
15659
|
+
return preparedPlanEntry(entry, prepareSourceEntry(entry, input));
|
|
15630
15660
|
}
|
|
15631
15661
|
function samePreparationSettings(previous, current) {
|
|
15632
15662
|
return previous.audience === current.audience && previous.routeMap === current.routeMap && previous.themeResources === current.themeResources && previous.imageResolveContext === current.imageResolveContext;
|
|
15633
15663
|
}
|
|
15634
|
-
/**
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15664
|
+
/**
|
|
15665
|
+
* A map's place is decided before constructing the block or its hydration props,
|
|
15666
|
+
* so a map with nothing to show touches no override, wrapper or authored detail.
|
|
15667
|
+
* Anything short of a loaded place leaves visitors with no map at all.
|
|
15668
|
+
*/
|
|
15669
|
+
function prepareSourceEntry(entry, input) {
|
|
15640
15670
|
if (entry.block.kind === "block.location-map") {
|
|
15641
15671
|
const content = entry.renderableContent;
|
|
15672
|
+
const locationSource = typeof content.locationSource === "string" ? content.locationSource : null;
|
|
15642
15673
|
const resolved = resolveLocationMapLocation({
|
|
15643
15674
|
location: content.location,
|
|
15644
|
-
locationSource
|
|
15675
|
+
locationSource,
|
|
15645
15676
|
venueId: typeof content.venueId === "string" ? content.venueId : null,
|
|
15646
|
-
|
|
15647
|
-
venuesById: input.dataContext?.venuesById
|
|
15677
|
+
loaded: readLocationMapLoad(entry.block.id, normalizeLocationMapSource(locationSource), input.dataContext)
|
|
15648
15678
|
});
|
|
15649
|
-
if (resolved.kind === "unresolved") return {
|
|
15679
|
+
if (resolved.kind === "unresolved") return resolved.reason === "hidden_business_address" ? {
|
|
15680
|
+
kind: "hidden-business-location",
|
|
15681
|
+
businessDetailsHref: input.dataContext?.authoringBusinessDetailsHref ?? null
|
|
15682
|
+
} : {
|
|
15650
15683
|
kind: "unresolved-location",
|
|
15651
|
-
source: resolved.source
|
|
15684
|
+
source: resolved.source,
|
|
15685
|
+
reason: resolved.reason
|
|
15652
15686
|
};
|
|
15687
|
+
if (resolved.kind === "venue" && resolved.disclosure === "area") return prepareEntry(withoutEntrancePhoto(entry), input);
|
|
15653
15688
|
}
|
|
15654
15689
|
return prepareEntry(entry, input);
|
|
15655
15690
|
}
|
|
15656
|
-
/**
|
|
15657
|
-
function
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15691
|
+
/** A photo of the entrance gives away a place whose address is only shared with a booking. */
|
|
15692
|
+
function withoutEntrancePhoto(entry) {
|
|
15693
|
+
const { entrancePhoto: _withheld, ...content } = entry.renderableContent;
|
|
15694
|
+
return {
|
|
15695
|
+
...entry,
|
|
15696
|
+
renderableContent: content
|
|
15697
|
+
};
|
|
15698
|
+
}
|
|
15699
|
+
/** A custom place is in the content. The other sources read only this block's own loader. */
|
|
15700
|
+
function readLocationMapLoad(blockId, source, dataContext) {
|
|
15701
|
+
if (source === "custom" || !blockId) return void 0;
|
|
15702
|
+
const key = LOCATION_MAP_LOADER_KEYS[source];
|
|
15703
|
+
const failure = dataContext?.loaderFailures?.[blockId]?.[key];
|
|
15704
|
+
if (failure) return locationMapLoadFromFailure(failure);
|
|
15705
|
+
return parseLocationMapLoaderResult(dataContext?.resolvedData?.[blockId]?.[key]);
|
|
15706
|
+
}
|
|
15707
|
+
function locationMapLoadFromFailure(failure) {
|
|
15708
|
+
return { kind: failure.pending ? "pending" : "failed" };
|
|
15661
15709
|
}
|
|
15662
15710
|
function entryHiddenFromVisitors(entry, facts, interaction) {
|
|
15663
15711
|
return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
|
|
@@ -15715,7 +15763,16 @@ function prepareEntry(entry, input) {
|
|
|
15715
15763
|
*/
|
|
15716
15764
|
function previewableEditorContent(entry) {
|
|
15717
15765
|
if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
|
|
15718
|
-
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry
|
|
15766
|
+
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), withoutRenderOnlyLocation(entry)).kind === "previewable" ? entry.renderableContent : null;
|
|
15767
|
+
}
|
|
15768
|
+
/**
|
|
15769
|
+
* The editor gives a custom map its public projection to draw (authoringLocationMaps).
|
|
15770
|
+
* The draft contract rightly refuses that shape, because it mustn't be saved, and
|
|
15771
|
+
* the owner's stored location was admitted before it was projected.
|
|
15772
|
+
*/
|
|
15773
|
+
function withoutRenderOnlyLocation(entry) {
|
|
15774
|
+
const { location, ...content } = entry.ownerEditableContent;
|
|
15775
|
+
return entry.block.kind === "block.location-map" && publicLocationSchema.safeParse(location).success ? content : entry.ownerEditableContent;
|
|
15719
15776
|
}
|
|
15720
15777
|
function buildPreparedContent(entry, content, input) {
|
|
15721
15778
|
const { dataContext } = input;
|
|
@@ -16295,7 +16352,8 @@ function preparationDiagnostic(prepared, blockKind) {
|
|
|
16295
16352
|
reason: {
|
|
16296
16353
|
kind: prepared.kind,
|
|
16297
16354
|
blockKind,
|
|
16298
|
-
source: prepared.source
|
|
16355
|
+
source: prepared.source,
|
|
16356
|
+
locationReason: prepared.reason
|
|
16299
16357
|
},
|
|
16300
16358
|
outcome: "invalidPlaceholder"
|
|
16301
16359
|
};
|
|
@@ -16762,10 +16820,6 @@ function buildPageIdentityRenderContext(dataContext) {
|
|
|
16762
16820
|
now: dataContext.now,
|
|
16763
16821
|
siteName: dataContext.siteName,
|
|
16764
16822
|
businessPerson: dataContext.businessPerson ?? null,
|
|
16765
|
-
businessLocationPermission: dataContext.businessLocationPermission,
|
|
16766
|
-
businessAddressVisibility: dataContext.businessAddressVisibility,
|
|
16767
|
-
businessLocation: dataContext.businessLocation,
|
|
16768
|
-
venuesById: dataContext.venuesById,
|
|
16769
16823
|
siteCountry: dataContext.siteCountry,
|
|
16770
16824
|
pathname: dataContext.pathname
|
|
16771
16825
|
};
|
package/dist/server/prebuild.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prebuildCache } from "./prebuild-
|
|
1
|
+
import { t as prebuildCache } from "./prebuild-B4_Llisx.mjs";
|
|
2
2
|
export { prebuildCache };
|