@riverbankcms/sdk 0.176.0 → 0.178.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-DvoTk7Py.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
- package/dist/_dts/{Page-D-l374tU.d.ts → Page-C9i27wZA.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
- package/dist/_dts/{client-D4p0J1lK.d.ts → client-BnYN6XsH.d.ts} +31 -7
- package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-CXj6lp3d.d.ts} +4 -8
- package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
- package/dist/_dts/{index-ZKEDvLuN.d.ts → index-0HFgCnGz.d.ts} +1 -1
- package/dist/_dts/{index-tcPtGdag.d.ts → index-BE9dWIsr.d.ts} +3 -3
- package/dist/_dts/{index-D-ai8IQd.d.ts → index-CKDRr54L.d.ts} +4 -4
- package/dist/_dts/{index-CoLcwjqJ.d.ts → index-D9-N1d9v.d.ts} +1 -1
- package/dist/_dts/{index-CKkkCgb6.d.ts → index-DCa-8TEY.d.ts} +1 -1
- package/dist/_dts/{index-DDsfmM4d.d.ts → index-cTpvQg_Q.d.ts} +2 -2
- package/dist/_dts/{index-EJMo-KSo.d.ts → index-nnEdgc3Z.d.ts} +2 -15
- package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
- package/dist/_dts/{request-B8jVdvgI.d.ts → request-B20VRWHH.d.ts} +55384 -55036
- package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Be4iL6-F.d.ts → resolvePageContent-YT6ndha1.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 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +24 -12
- 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 +56 -4
- package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-lwSgCWZ4.d.ts → types-CMZ5mkpv.d.ts} +11 -3
- package/dist/_dts/{types-BXMX4z2j.d.ts → types-CYcd15BQ.d.ts} +7 -7
- package/dist/_dts/{types-DXY64Xh4.d.ts → types-rm2M4LGx.d.ts} +4 -4
- package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BSxnRhyy.d.ts} +4 -6
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
- package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
- package/dist/client/{Page-F3lhDvw1.mjs → Page-DqETUt-U.mjs} +22 -13
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
- package/dist/client/client.mjs +93 -12
- package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
- package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
- package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
- package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
- package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
- package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -5
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
- package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
- package/dist/client/portal/client.mjs +384 -38
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
- package/dist/client/src-DqMbCjI1.mjs +3 -0
- package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
- package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
- package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
- package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
- 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-0xyUPWUB.mjs → PageSectionToolbar-D-Le7O3o.mjs} +52 -8
- package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +34 -39
- package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-CzJvgbqt.mjs} +10 -10
- package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-xhJ6ca1i.mjs} +9 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +16 -7
- package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-BN93X9o1.mjs} +1211 -600
- package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-BGTAcPud.mjs} +27 -17
- package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
- package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
- package/dist/preview-next/client/{useAutosaveStatus-D9s6dyMW.mjs → useAutosaveStatus-BMGXjGZq.mjs} +3 -30
- package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +2 -2
- 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-BYezcMx5.mjs → route-contract-BtdzkSUg.mjs} +71 -4
- package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
- package/dist/server/{client-Bvag5OtW.mjs → client-Bf06n9oj.mjs} +90 -9
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-Cj7hfbrA.mjs +41 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next/revalidate.mjs +15 -8
- package/dist/server/next.mjs +56 -13
- package/dist/server/{overrideResolution-BqVLO4gX.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
- package/dist/server/{pageShared-D23o5QgC.mjs → pageShared-tz-GVWft.mjs} +96 -39
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BuoXWT9y.mjs → prebuild-JmsuYCIH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
- 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-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-CozQ7wE0.mjs → validation-CLq5cw6M.mjs} +3 -5
- package/dist/server/{version-CgCWRFEY.mjs → version-oPbhAx8E.mjs} +1 -1
- package/dist/styles/index.css +27 -1
- package/package.json +1 -1
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
- package/dist/server/constants-hl17xz6x.mjs +0 -22
- package/dist/server/portal-BjVHMAUC.mjs +0 -371
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Ht as CardListContentPart, Jt as EventQuickFacts, an as formatEventDepositNote, cn as formatEventPriceDisplay, ct as formatBookingSchedulePresentation, in as formatCoursePrice, on as formatEventPrice, qt as MediaNodeServer, sn as formatEventPriceAmount } from "./shop.interactive-D7wky1GL.mjs";
|
|
3
|
+
import { Co as isEventFull, Er as closedRunCopy, Go as nextLiveRunSessionStartMs, Ko as orderedLiveRunSessions, Wo as CANCELLED_SESSION_STATUS, _i as formatEventRunDates, _o as formatEventRemainingPlaces, bi as formatTime, bo as getEventAvailability, ci as eventDateOptions, cs as isPublicEventPricingOptionDisplayable, fs as publicEventPricingType, ii as formatEventLocation, kr as ImagePresets, ls as publicEventPricingCurrency, mi as formatEventDateParts, mo as isBookableEvent, no as resolveEventRegistrationScopedEvents, os as formatBookingPriceDisplay, pi as formatEventCompactDateRail, ps as resolveExactOrFreePriceDisplay, qo as resolveWholeSeriesBookingPhase, ri as eventVenuePlace, rs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, ti as eventOnlinePlace, us as publicEventPricingDisplay, vi as formatEventTimeRange, xo as getEventAvailabilityStatus, yo as formatTotalCapacity } from "./display-D1oVR5Eh.mjs";
|
|
4
|
+
import { Jt as formatDate, Yt as formatDateRange, Zt as formatDateTimeRange, cn as compareLocalScheduleDates, dn as getLocalScheduleDate, gn as resolveBookingBusinessTimeZone, hn as toUtcIsoDateTimeString, on as toScheduledBookingDateTime, un as getBookingLocalDateKey, vn as toBookingTimeZone } from "./noop-D11X-B6n.mjs";
|
|
5
5
|
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
6
6
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
7
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
8
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
9
|
-
import { a as formatMoreDates, c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, t as eventDisplayTitle } from "./course-
|
|
10
|
-
import { n as MapDrawingSvg } from "./MapDrawingSvg-
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-CiMtl1Ha.mjs";
|
|
8
|
+
import { r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
|
|
9
|
+
import { a as formatMoreDates, c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, t as eventDisplayTitle } from "./course-DBEU9IA9.mjs";
|
|
10
|
+
import { n as MapDrawingSvg } from "./MapDrawingSvg-BCZa3dpf.mjs";
|
|
11
11
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
12
12
|
import "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -62,8 +62,8 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
|
62
62
|
* Sorting before deduplication means a duplicate occurrence keeps its earliest
|
|
63
63
|
* deterministic representation.
|
|
64
64
|
*/
|
|
65
|
-
function selectQuickDateEvents(events) {
|
|
66
|
-
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
|
|
65
|
+
function selectQuickDateEvents(events, now) {
|
|
66
|
+
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event, now))).slice(0, 4);
|
|
67
67
|
}
|
|
68
68
|
/** Shared ordering and identity selection, independent of booking capacity. */
|
|
69
69
|
function orderedUniqueEventOccurrences(events) {
|
|
@@ -1083,6 +1083,7 @@ function bookingClosedReason(reason) {
|
|
|
1083
1083
|
case "cancelled": return "These dates have been cancelled.";
|
|
1084
1084
|
case "in-progress": return "Bookings closed when the first session began.";
|
|
1085
1085
|
case "completed": return "These dates have finished.";
|
|
1086
|
+
case "bookings-closed":
|
|
1086
1087
|
case "enrolment-closed": return "Bookings for these dates have closed.";
|
|
1087
1088
|
case "no-sessions": return "No dates are currently scheduled.";
|
|
1088
1089
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as membershipCardListContent, f as membershipClassesLabel, p as passCardListContent } from "./display-
|
|
3
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
2
|
+
import { d as membershipCardListContent, f as membershipClassesLabel, p as passCardListContent } from "./display-D1oVR5Eh.mjs";
|
|
3
|
+
import { r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
|
|
4
4
|
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
5
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-b8tVkNHA.mjs";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Pt as locationPinSchema } from "./lucide-react-McYZeSMb.mjs";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../editor-blocks/src/widgets/location/editMapDecision.ts
|
package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-
|
|
3
|
+
import { Pt as locationPinSchema, T as Minus, k as LocateFixed, kt as sameMeaningfulAddress, v as Plus } from "./lucide-react-McYZeSMb.mjs";
|
|
4
|
+
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-BHAT81Wx.mjs";
|
|
5
5
|
import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal } from "react-dom";
|
package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D-Le7O3o.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { A as
|
|
5
|
-
import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-
|
|
6
|
-
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-
|
|
3
|
+
import { $i as readThemeScopeContext, $s as Spinner, Ac as __rest, Cc as usePortalContainer, Dc as __extends, Di as resolveImageUrlWithContext, E as selectedImageFromRenderableAsset, Ec as __awaiter, F as lookTilePosition, Fl as surfaceForegroundValue, Gl as normalizeRightAngle, Gs as unwrapResponse, Jl as resolveMediaTransformForAspect, Jo as getCuratedSiteStyle, Kl as formatAspectRatioToken, Ks as selectedCanvasBlockId, L as nextLookTilePin, Mc as __spreadArrays, Oc as __generator, Oi as resolveMediaStorageUrl, P as lookPositionLabel, Qa as RichTextDocSchema, Qc as useControllableState, S as pageDesignLookPosition, So as truncateInlineText, T as selectedImageFromMediaValue, Tc as __assign, Ti as computeMediaTransformStyle, Wc as useSize, Wl as isRotationDimensionSwap, Xl as getImageUrl, Xs as Callout, Yl as getDirectImageUrlForMediaAsset, _o as normalizeInlineTextMarks, _s as assertNever$1, ac as DialogHeader, bn as useEditorUiStore, bo as removeInlineTextMarkFromRange, cc as overlayScrimClass, co as applyInlineTextMarkToRange, dc as DialogContent, dl as useComposedRefs, do as inlineTextAccentTones, ec as Dialog, el as createContextScope, eo as richTextVariantCapabilities, es as gradientToCss, fc as DialogDescription, fd as unsafeAsMediaAssetId, fl as cn$2, fo as inlineTextEqual, fu as authoredValuesEqual, go as normalizeInlineText, hc as DialogTitle, i as usePreviewSidebarNavigation, il as Button, iu as mediaIdentifierSchema, j as usePreviewRenderBackgrounds, jc as __spreadArray, kc as __read, ki as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, mc as DialogPortal, mo as inlineTextToPlainText, nc as DialogContent$1, nl as Primitive, ns as getGradientPreset, nu as resolveManagedMediaReference, o as usePreviewPageDesignEditorState, oc as DialogTitle$1, ol as useControlReadiness, on as getDashboardBaseUrl, pc as DialogOverlay, pd as unsafeAsPositiveByteCount, po as inlineTextHighlightTones, pu as generateUuidV4, ql as parseAspectRatioValue, rc as DialogDescription$1, ri as getBlockDefinition, rr as defaultBackgroundOverrideForMode, sl as cva, td as unsafeAsEditorBlockId, tl as composeEventHandlers, tr as backgroundColorTokens, uc as DialogClose, ud as assertNever, ur as rankBackgroundImagePoolItems, uu as asLayoutVariantKey, wi as getRichTextImageSize, x as cyclePageDesignBlockLook, xn as useEditorUiStoreInstance, xo as replaceInlineTextRange, yo as plainTextToInlineText } from "./previewAssistantSlot-BN93X9o1.mjs";
|
|
4
|
+
import { A as List, F as Info, G as FileSpreadsheet, Gt as err, I as Image, J as FileArchive, K as FilePlay, Kt as ok, L as ImageUp, M as Link$1, P as Italic$1, S as Palette, U as File, V as Highlighter, W as FileText, X as EyeOff, _t as Bold$1, a as Upload, c as Trash2, et as Crop, j as ListOrdered, n as X, pt as Check, q as FileHeadphone, s as TriangleAlert, xt as Archive, y as Pencil } from "./lucide-react-McYZeSMb.mjs";
|
|
5
|
+
import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-BGTAcPud.mjs";
|
|
6
|
+
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-CTDoR_gQ.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -329,6 +329,49 @@ function SegmentedControl({ options, value, onValueChange, size = "default", cla
|
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
//#endregion
|
|
332
|
+
//#region ../ui/src/content-spinner.tsx
|
|
333
|
+
const LOADING_PANEL_MARK_SIZE = {
|
|
334
|
+
section: 24,
|
|
335
|
+
page: 48
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* The layout of a panel-sized wait, whichever mark it's showing.
|
|
339
|
+
*
|
|
340
|
+
* It renders straight away on the server and has no hold-back: `loading.tsx`
|
|
341
|
+
* files are shown during SSR streaming, and a delayed loader would show nothing
|
|
342
|
+
* until hydration.
|
|
343
|
+
*/
|
|
344
|
+
function LoadingPanel({ mark, scale, words, srLabel, className }) {
|
|
345
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
346
|
+
role: "status",
|
|
347
|
+
"aria-live": "polite",
|
|
348
|
+
className: cn$2("flex flex-col items-center justify-center gap-3", scale === "page" ? "py-24" : "py-8", className),
|
|
349
|
+
children: [mark, words === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
350
|
+
className: "sr-only",
|
|
351
|
+
children: srLabel
|
|
352
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
353
|
+
className: "text-sm text-muted-foreground",
|
|
354
|
+
children: words
|
|
355
|
+
})]
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* The neutral panel: what a shared package shows, because it can't know the
|
|
360
|
+
* surface and may be running on a customer's domain. The dashboard's own panels
|
|
361
|
+
* use `WaitPanel`, which picks the surface's mark.
|
|
362
|
+
*/
|
|
363
|
+
function ContentSpinner({ scale, className, ...label }) {
|
|
364
|
+
return /* @__PURE__ */ jsx(LoadingPanel, {
|
|
365
|
+
...label,
|
|
366
|
+
scale,
|
|
367
|
+
className,
|
|
368
|
+
mark: /* @__PURE__ */ jsx(Spinner, {
|
|
369
|
+
size: LOADING_PANEL_MARK_SIZE[scale],
|
|
370
|
+
className: "text-primary"
|
|
371
|
+
})
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
332
375
|
//#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_5ced62f53b2a5960b397a73a077192c7/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
333
376
|
var SWITCH_NAME = "Switch";
|
|
334
377
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
@@ -29191,9 +29234,10 @@ const DASHBOARD_ORIGIN = process.env.NEXT_PUBLIC_DASHBOARD_URL ? getDashboardBas
|
|
|
29191
29234
|
const MEDIA_UPGRADE_HREF = `${DASHBOARD_ORIGIN}/dashboard/account/billing`;
|
|
29192
29235
|
const MEDIA_SIGN_IN_HREF = `${DASHBOARD_ORIGIN}/auth/login`;
|
|
29193
29236
|
function MediaPickerLibraryStatus({ loading, error, visibleCount, hasMore, retryLoad }) {
|
|
29194
|
-
if (loading && visibleCount === 0) return /* @__PURE__ */
|
|
29195
|
-
|
|
29196
|
-
|
|
29237
|
+
if (loading && visibleCount === 0) return /* @__PURE__ */ jsx(ContentSpinner, {
|
|
29238
|
+
scale: "section",
|
|
29239
|
+
words: "Loading your media library…",
|
|
29240
|
+
className: "col-span-full min-h-32 rounded border border-dashed p-4"
|
|
29197
29241
|
});
|
|
29198
29242
|
if (!loading && error) return /* @__PURE__ */ jsxs("div", {
|
|
29199
29243
|
className: "col-span-full flex min-h-32 flex-col items-center justify-center gap-3 rounded border border-destructive/30 p-4 text-center text-sm",
|
|
@@ -31422,4 +31466,4 @@ function PageSectionToolbar({ blockId, content }) {
|
|
|
31422
31466
|
] });
|
|
31423
31467
|
}
|
|
31424
31468
|
//#endregion
|
|
31425
|
-
export {
|
|
31469
|
+
export { SegmentedControl as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, emitMediaCropDebug as F, resolveVideoSelectionIntentForMediaField as I, isSvgMimeType as L, ScrollableDialogShell as M, Surface as N, Switch as O, surfaceVariants as P, useRichTextEditor as S, InlineTextEditor as T, MediaPickerMiniDialog as _, ArrangementOptionsBody as a, getRichTextImagePositionFromTarget as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, MediaEditor as g, getUnresolvedRichTextImageWarnings as h, ArrangementLookNote as i, ScrollableDialogContent as j, ContentSpinner as k, BackgroundPreviewSwatch as l, useRichTextImageProjection as m, pageSectionIdFromBlockId as n, lookIsAutomatic as o, useSiteColourVariables as p, BlockToolbar as r, useArrangementToolbar as s, PageSectionToolbar as t, formatTokenLabel as u, MediaPickerMini as v, parseRichTextDoc as w, insertOrReplaceRichTextImage as x, RichTextEditorSurface as y };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $ as useFooterComposerState, $
|
|
4
|
-
import {
|
|
5
|
-
import { $ as FieldFrame, B as useSiteOptionWidgetContext, Ct as clamp, D as SiteFontFaceStyles, Dt as Input, Et as NativeSelect, Ft as Content$2, H as useMediaEditor, It as List, J as SelectField, K as BlockContextProvider, L as siteColourCss, Lt as Root2$2, Mt as TabsContent, Nt as TabsList, Ot as FIELD_FOCUS_WITHIN_CLASS, Pt as TabsTrigger, Q as unmapValueFromSelect, R as locationWidgetOverrides, Rt as Trigger$2, St as usePrevious$1, Tt as FieldTrigger, X as mapCurrentValueForSelect, Y as hasEmptyOption, Z as mapOptionValueForSelect, _t as Select$1, at as ThemeScopeCore, bt as SelectTrigger, c as resolvePreviewSidebarChromeModel, d as dashboardLogoSettingsHref, et as FieldLabelText, f as HeaderMenuControls, gt as Textarea, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, k as useRememberSiteFonts, kt as FIELD_SURFACE_CLASS, m as CustomizeBackgroundControlRows, mt as ChoiceTileGroup, nt as useField, o as resolvePreviewEditorGuidanceModel, p as isHeaderMenuSurfaceState, pt as CHOSEN_OPTION_CLASS, q as useBlockContext, r as buildPreviewDashboardSetupUrl, rt as useLinkedInlineTextField, t as canInspectSiteStyle, tt as hintWithCharacterLimit, u as SiteChromeSurfaceControls, vt as SelectContent, wt as SearchInput, xt as SelectValue, yt as SelectItem, z as SiteOptionWidgetProvider, zt as classifyKnownMimeType } from "./siteStyleAccess-
|
|
3
|
+
import { $ as useFooterComposerState, $a as isRichTextDoc, $n as readNumberFieldUiConfig, $s as Spinner, $t as isSurfaceSlotBlockTarget, $u as editorBlockCollectionOwnerKey, A as usePreviewJoinOutcome, Ai as resolveMediaSlot, Al as updateButtonStyleSelectionChoice, As as resolveRepeaterGridColumnsForBreakpoint, At as footerMenuNavigationFacts, Bc as Arrow$1, Bn as toEditorBlockItem, Bo as getHeaderStyle, Bt as BlockApiProvider, C as pageDesignLookTiles, Cc as usePortalContainer, Cl as resolveRepeaterGridSpanFieldId, Cn as useSidebarView, Co as parseFieldDefinition, Cs as findFirstAvailableRepeaterGridPlacement, Cu as resolveFooterSections, Di as resolveImageUrlWithContext, Dl as findButtonStyleRecipe, Do as DEFAULT_THEME_RESPONSIVE_MODE, Ds as planRepeaterGridStartNewRow, Du as parseMailingListPlacementTargeting, Ei as resolveImageSourceSetWithContext, El as buttonStyleSelectionParameterValue, En as unfinishedBlockCopy, Es as normalizeRepeaterGridSpan, Et as reloadPage, Eu as planFooterLayout, F as lookTilePosition, Fr as getAtPath, Fu as knownSocialPlatformLabels, Gc as useId$1, Gi as inferLegacyOfferingsPreviewGroupOrder, Gn as initialBlockDraftValues, Go as defaultPolicyPageFlowPresetId, Gs as unwrapResponse, Gt as getWidgetKey, Gu as displayedValues, Ha as isBlockButtonRole, Hc as Root2$1, Hn as deriveEditorValuePublicationState, Ho as concretePaletteToTheme, Ht as collectVisibleWhenWatchPaths, I as lookTilesFor, Ir as siblingPath$2, It as NewsletterFormClient, Iu as knownSocialPlatforms, J as footerLayoutSelection, Jc as DismissableLayer, Jl as resolveMediaTransformForAspect, Jn as manifestFieldSectionOptions, Jo as getCuratedSiteStyle, Jt as partitionFieldsByIntent, Ju as syncStateOf, Kc as FocusScope, Ki as isOfferingsPreviewSourceKey, Kn as createManifestFormAdapter, Kt as hasVisibilityConditions, Ku as knownRevision, Lc as Presence, Lr as withValueAtPath, Lu as parsePublicProfile, M as usePreviewRenderReadiness, Mt as publishContentEntry, Mu as parseMailchimpAudienceId, Nc as hideOthers, No as sectionPhotoPresence, Nt as updateFooterComposition, Nu as parseMailchimpInterestId, Ol as resolveButtonStyleSelection, Os as resolveRepeaterGridAcceptedSpans, Ot as sendPageCommand, Ou as DEFAULT_MAILING_LIST_TARGETING, Pt as footerCreditLine, Pu as parseNewsletterListId, Q as useFooterAuthoringOptional, Qc as useControllableState, Qi as buildThemeDataAttrs, Ql as runtimeMediaSchema, Qn as getGroupChildFields, Qs as CalloutTitle, Qt as deleteSlotBlock, Qu as createEditorReorderBlocksCommand, R as selectedLookTile, Rc as Portal$1, Rt as useImageResolveContextOptional, Ru as publicProfileWeekdays, Sl as resolveRepeaterGridRowFieldId, Ss as projectRepeaterGridLayout, Ti as computeMediaTransformStyle, Tl as buttonStyleHoverPreferenceValue, Ts as isRepeaterGridLayoutInvalid, Tt as LeaseNoticeButtons, Tu as unsafeAsFooterModuleId, U as usePreviewAuth, Uc as createPopperScope, Ut as evaluateVisibility, Va as BLOCK_BUTTON_ROLE_OPTIONS, Vc as Content$1, Vl as paletteValueKey, Vn as withoutServerVersions, Vo as concretePaletteFromTheme, Vt as derivePromotedFieldPlan, Wc as useSize, Wl as isRotationDimensionSwap, Ws as extractApiEnvelopeErrorDetails, Wt as getFieldIntent, X as resolveFooterEngagementPreview, Xa as admitLayoutGridForPlan, Xc as useDirection, Xn as getRepeaterItemDefault, Xo as offeredSiteStyles, Xs as Callout, Xt as createSlotBlock, Xu as createEditorInsertBlockCommand, Y as resolveFooterEngagementAuthoringState, Yi as planOfferingPreviewCardSelection, Yl as getDirectImageUrlForMediaAsset, Yn as getFieldDefault, Yt as createBlock, Yu as valueStatus, Z as FooterComposerProvider, Za as deriveFieldValidationPlan, Zc as createCollection, Zi as resolveOfferingsPreviewGroupOrderEntries, Zl as mediaSchema, Zn as normalizeFieldForCanonicalValidation, Zo as palettesForSiteStyle, Zs as CalloutDescription, Zt as deleteBlock, Zu as createEditorRemoveBlockCommand, _c as Content, _i as chooseAllEvents, _l as readLinkedEntryLease, _n as resolvePageRouteSlug, _u as resolveMailingListDefaultDestination, aa as resolveFeatureCardGeneratedIconSizePx, ac as DialogHeader, ad as parseBookingLocalDate, al as buttonVariants, an as blocksKeys, ao as parseGeneratedIconAssetId, ar as imagePoolForOverride, at as readFooterEngagementDraft, au as asRecord, b as buildPageDesignEditorReadModelForBlocks, ba as buildFormInteractiveIslandProps, bi as toggleEventType, bl as isAcceptedRepeaterGridSpan, bn as useEditorUiStore, bs as buildRepeaterGridDropTargets, bu as normalizeLegacyFooterContentToV1, cd as resolveBookingBusinessTimeZone, cl as createSlot, cs as defaultSectionTransitionVariantForFamily, cu as asAppearancePresetId, d as cycleSiteChromeSelectionId, dd as parseMediaAssetId, di as buildNewsletterFormInteractiveIslandProps, dl as useComposedRefs, dn as ApiRequestError, dr as resolveBackgroundCapability, ds as sectionTransitionVariantForBoundaryOptionId, dt as DONE, ea as themeRuntimeScopeProps, ec as Dialog, ed as editorBlockCollectionOwnersEqual, el as createContextScope, en as listEntryPageContentSlots, er as readSliderFieldUiConfig, es as gradientToCss, fc as DialogDescription, fl as cn, ft as runHeldLifecycle, fu as authoredValuesEqual, gd as expectParsedBrandedId, gi as EVENT_SELECTION_TYPE_OPTIONS, gl as canWriteLinkedEntry, gn as deriveRouteMetadataPresentation, gu as assessMailingListTargeting, hc as DialogTitle, hd as parseSiteId, hi as EVENT_SELECTION_SCOPE_OPTIONS, hl as isEdited, hn as routeLifecycleContext, hs as appearancePresets, i as usePreviewSidebarNavigation, ia as parseFeatureCardGeneratedIconSizePx, ic as DialogFooter, id as formatDateTime, ii as listBlockDescriptors, il as Button$1, in as withSlotCompositionHash, io as parseBlockIconValue, ir as enabledBackgroundModes, it as footerPartKey, iu as mediaIdentifierSchema, ji as resolveMediaSlotContract, jl as buttonStyleSelectionKey, jn as lifecycleOutcomeMessage, js as resolveBlockTitle, jt as toRoutableLinkPayload, ju as parseBrevoListId, kl as updateButtonStyleHoverPreference, ko as resolveVisiblePromotedFieldPathsForEditorBlock, ks as resolveRepeaterGridBreakpointForWidth, kt as missingReceiptError, ku as mailingListTargetingChoiceIds, ld as resolveBookingTimeZoneId, lo as coerceInlineTextWithFallback, lr as planBackgroundTransition, ls as sectionTransitionFamilies, lt as useEntryController, mo as inlineTextToPlainText, mu as slugify$1, n as usePreviewAssistantSlot, na as createFeatureCardIconKey, nc as DialogContent, nd as unsafeAsEditorBlockValues, nl as Primitive, nn as reorderBlocks, no as getBlockIconSemanticId, nr as canCycleBackgroundOverrideValue, ns as getGradientPreset, nt as footerHeaderStatus, o as usePreviewPageDesignEditorState, oa as suggestSemanticIconForFeatureCard, oc as DialogTitle$1, od as parseUtcIsoDateTimeString, oo as parseGeneratedIconSetId, ot as footerEngagementEventFields, pl as useShallow, pt as useServerRefresh, pu as generateUuidV4, q as buildFooterRuntimeViewModel, qc as useFocusGuards, qi as normalizeOfferingsPreviewGroupOrder, ql as parseAspectRatioValue, qn as createManifestValidation, qs as sidebarReturnView, qt as isNonEmptyValue, qu as pristineValueSync, ra as getFeatureCardIconCompletion, rc as DialogDescription$1, rd as formatDate, ri as getBlockDefinition, rn as reorderSlotBlocks, ro as getGeneratedBlockIconStyleState, rs as buildFontPreviewUrl, rt as footerEngagementStarted, ru as PUBLIC_FILE_FIELD_KINDS, s as usePreviewPageDesignRenderState, sa as toFeatureCardIconSuggestionInputs, sc as DialogTrigger, sd as toUtcIsoDateTimeString, sl as cva, sn as getDashboardUrl, so as parseSiteIconStyleGuideVersionId, sr as parseBackgroundOverrideFromContent, ss as findCuratedPalette, st as parseFooterEngagementDraft, su as isBodyFontFamily, ta as FEATURE_CARD_GENERATED_ICON_SIZE_PX, tc as DialogClose, td as unsafeAsEditorBlockId, tl as composeEventHandlers, tn as listPageSurfaceContentSlots, to as sanitizeHref, ts as GRADIENT_PRESETS, u as useSiteChromeCustomizeOptional, ud as assertNever$1, ur as rankBackgroundImagePoolItems, us as sectionTransitionFamilyForBoundaryOptionId, v as useLiveFooterRuntime, vc as Root$2, vi as chooseScheduleScope, vl as canEditorWrite, vn as resolveContentTitle, vs as isInternalResolvedLinkValue, vu as mailingListProviderName, w as setPageDesignBlockBackground, wc as ReactRemoveScroll, wl as siteOptionSources, wn as recoveryConflictCopy, wo as buildThemeRuntime, ws as flowRepeaterGridItems, wt as LeaseDiscardedNoticeView, wu as setFooterSectionSelected, xi as writeEventSelectionChips, xl as resolveRepeaterGridColumnFieldId, xn as useEditorUiStoreInstance, xs as planRepeaterGridSpanChange, xu as parseFooterCompositionV1, yc as Trigger$1, yi as readEventSelectionChips, yn as planLeaseNotice, yo as plainTextToInlineText, ys as planLayoutGridColumnEdit, yu as deriveFooterEditorOverview, zc as Anchor, zi as buildResolveImageUrlContext, zo as getHeaderLayout, zs as OPERATION_ID_HEADER, zt as FormNodeClient, zu as publishedContactDetails } from "./previewAssistantSlot-BN93X9o1.mjs";
|
|
4
|
+
import { E as Maximize2, Gt as err, H as GripVertical, I as Image, Kt as ok, L as ImageUp, N as Link2, O as Lock, Q as EllipsisVertical, R as ImagePlus, S as Palette, W as FileText, X as EyeOff, b as PanelTop, bt as ArrowDown, c as Trash2, ct as CircleAlert, d as SlidersHorizontal, dt as ChevronLeft, et as Crop, f as Settings, ft as ChevronDown, g as RotateCcw, gt as Box$1, i as Video, m as Rows3, mt as Calendar$1, n as X$1, nt as Clock, pt as Check, rt as Clock3, s as TriangleAlert, t as lucide_react_exports, tt as Copy, u as Sparkles, ut as ChevronRight, v as Plus, vt as ArrowUp, x as PanelBottom, y as Pencil, yt as ArrowUpRight, z as ImageOff } from "./lucide-react-McYZeSMb.mjs";
|
|
5
|
+
import { $ as FieldFrame, B as useSiteOptionWidgetContext, Ct as clamp, D as SiteFontFaceStyles, Dt as Input, Et as NativeSelect, Ft as Content$2, H as useMediaEditor, It as List, J as SelectField, K as BlockContextProvider, L as siteColourCss, Lt as Root2$2, Mt as TabsContent, Nt as TabsList, Ot as FIELD_FOCUS_WITHIN_CLASS, Pt as TabsTrigger, Q as unmapValueFromSelect, R as locationWidgetOverrides, Rt as Trigger$2, St as usePrevious$1, Tt as FieldTrigger, X as mapCurrentValueForSelect, Y as hasEmptyOption, Z as mapOptionValueForSelect, _t as Select$1, at as ThemeScopeCore, bt as SelectTrigger, c as resolvePreviewSidebarChromeModel, d as dashboardLogoSettingsHref, et as FieldLabelText, f as HeaderMenuControls, gt as Textarea, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, k as useRememberSiteFonts, kt as FIELD_SURFACE_CLASS, m as CustomizeBackgroundControlRows, mt as ChoiceTileGroup, nt as useField, o as resolvePreviewEditorGuidanceModel, p as isHeaderMenuSurfaceState, pt as CHOSEN_OPTION_CLASS, q as useBlockContext, r as buildPreviewDashboardSetupUrl, rt as useLinkedInlineTextField, t as canInspectSiteStyle, tt as hintWithCharacterLimit, u as SiteChromeSurfaceControls, vt as SelectContent, wt as SearchInput, xt as SelectValue, yt as SelectItem, z as SiteOptionWidgetProvider, zt as classifyKnownMimeType } from "./siteStyleAccess-BGTAcPud.mjs";
|
|
6
6
|
import { J as paletteTokenNameSchema, V as hexColorSchema, W as paletteColorEntries, c as isKnownIconName, i as ThemedButtonSpecimen, l as isIconPickerPreset, o as getIconComponent, s as getIconPickerOptionsForPreset, tt as VARIANT_ROLES, u as resolveIconPickerPreset } from "./ThemedButton-CVYz7h68.mjs";
|
|
7
|
-
import { A as
|
|
8
|
-
import { n as TZDate } from "./src-
|
|
9
|
-
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-
|
|
10
|
-
import { a as publicationLabel, o as
|
|
11
|
-
import { A as Tooltip, C as blockLookOwnedFieldPaths, D as showRawStyleFields, E as prepareBlockEditorManifest, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, O as getBlockManifestFromSdkConfig, P as Badge, S as arrangementVisibilityValues, T as hideThemeV2RawStyleFields, V as DropdownMenuSeparator, _ as createFieldObservation, b as arrangementLookResolution, f as arrangementBlockControlsFor, g as isRecord$1, h as isObjectRecord, i as NEEDS_SETUP_LABEL, j as TooltipContent, k as mergeBlockDescriptors, l as needsSetupOf, m as createStoreBackend, n as resolveBlockManifest, o as blockNoticeLabel, p as arrangementLookNameFor, r as useBlockCustomizeControls, s as blockNoticeMessage, u as useBlockNotice, v as SdkConfigProvider, w as lookNotShownFieldIds, x as arrangementOwnedFieldIds, y as useSdkConfig } from "./useOpenBlockForSetup-
|
|
7
|
+
import { A as SegmentedControl, C as EMPTY_DOC, D as resolveSdkFooterMode, F as emitMediaCropDebug, I as resolveVideoSelectionIntentForMediaField, L as isSvgMimeType, M as ScrollableDialogShell, N as Surface, O as Switch, P as surfaceVariants, S as useRichTextEditor, T as InlineTextEditor, _ as MediaPickerMiniDialog, a as ArrangementOptionsBody, b as getRichTextImagePositionFromTarget, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as MediaEditor, h as getUnresolvedRichTextImageWarnings, i as ArrangementLookNote, j as ScrollableDialogContent, k as ContentSpinner, l as BackgroundPreviewSwatch, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as useSiteColourVariables, s as useArrangementToolbar, u as formatTokenLabel, v as MediaPickerMini, x as insertOrReplaceRichTextImage, y as RichTextEditorSurface } from "./PageSectionToolbar-D-Le7O3o.mjs";
|
|
8
|
+
import { n as TZDate } from "./src-lX6heoDA.mjs";
|
|
9
|
+
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-BHAT81Wx.mjs";
|
|
10
|
+
import { a as publicationLabel, o as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-BMGXjGZq.mjs";
|
|
11
|
+
import { A as Tooltip, C as blockLookOwnedFieldPaths, D as showRawStyleFields, E as prepareBlockEditorManifest, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, O as getBlockManifestFromSdkConfig, P as Badge, S as arrangementVisibilityValues, T as hideThemeV2RawStyleFields, V as DropdownMenuSeparator, _ as createFieldObservation, b as arrangementLookResolution, f as arrangementBlockControlsFor, g as isRecord$1, h as isObjectRecord, i as NEEDS_SETUP_LABEL, j as TooltipContent, k as mergeBlockDescriptors, l as needsSetupOf, m as createStoreBackend, n as resolveBlockManifest, o as blockNoticeLabel, p as arrangementLookNameFor, r as useBlockCustomizeControls, s as blockNoticeMessage, u as useBlockNotice, v as SdkConfigProvider, w as lookNotShownFieldIds, x as arrangementOwnedFieldIds, y as useSdkConfig } from "./useOpenBlockForSetup-CTDoR_gQ.mjs";
|
|
12
12
|
import * as React$1 from "react";
|
|
13
13
|
import React, { Fragment, createContext, forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3561,7 +3561,7 @@ function ComboboxRowContent({ row, selected, isCreating, noneLabel, createLabel,
|
|
|
3561
3561
|
className: "flex-1 truncate text-left text-muted-foreground",
|
|
3562
3562
|
children: noneLabel
|
|
3563
3563
|
});
|
|
3564
|
-
case "create": return /* @__PURE__ */ jsxs(Fragment$1, { children: [isCreating ? /* @__PURE__ */ jsx(
|
|
3564
|
+
case "create": return /* @__PURE__ */ jsxs(Fragment$1, { children: [isCreating ? /* @__PURE__ */ jsx(Spinner, { className: "shrink-0" }) : /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
|
|
3565
3565
|
className: "flex-1 truncate text-left",
|
|
3566
3566
|
children: createLabel ? createLabel(row.name) : row.name
|
|
3567
3567
|
})] });
|
|
@@ -4711,25 +4711,6 @@ const Slider = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4711
4711
|
}));
|
|
4712
4712
|
Slider.displayName = Slider$1.displayName;
|
|
4713
4713
|
//#endregion
|
|
4714
|
-
//#region ../ui/src/content-spinner.tsx
|
|
4715
|
-
/**
|
|
4716
|
-
* Centered spinner for content areas — replaces bespoke skeleton layouts.
|
|
4717
|
-
*
|
|
4718
|
-
* Uses plain `Spinner` (NOT `DelayedSpinner`) so it renders immediately on
|
|
4719
|
-
* the server. `loading.tsx` files are shown during SSR streaming — a
|
|
4720
|
-
* `DelayedSpinner` would render nothing until hydration + delay.
|
|
4721
|
-
*/
|
|
4722
|
-
function ContentSpinner({ className, size = "xl" }) {
|
|
4723
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4724
|
-
className: cn("flex items-center justify-center py-24", className),
|
|
4725
|
-
children: /* @__PURE__ */ jsx(Spinner, {
|
|
4726
|
-
size,
|
|
4727
|
-
srLabel: "Loading content",
|
|
4728
|
-
className: "text-primary"
|
|
4729
|
-
})
|
|
4730
|
-
});
|
|
4731
|
-
}
|
|
4732
|
-
//#endregion
|
|
4733
4714
|
//#region ../ui/src/empty-state.tsx
|
|
4734
4715
|
/**
|
|
4735
4716
|
* EmptyState component for consistent no-results and empty data displays.
|
|
@@ -8687,7 +8668,10 @@ function BlockTile({ block, onClick, isLoading = false, disabled = false }) {
|
|
|
8687
8668
|
children: [/* @__PURE__ */ jsx("p", {
|
|
8688
8669
|
className: "truncate text-sm font-medium text-foreground",
|
|
8689
8670
|
children: block.title
|
|
8690
|
-
}), isLoading && /* @__PURE__ */ jsx(
|
|
8671
|
+
}), isLoading && /* @__PURE__ */ jsx(Spinner, {
|
|
8672
|
+
size: 12,
|
|
8673
|
+
className: "shrink-0 text-muted-foreground"
|
|
8674
|
+
})]
|
|
8691
8675
|
}), block.description && /* @__PURE__ */ jsx("p", {
|
|
8692
8676
|
className: "mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground",
|
|
8693
8677
|
children: block.description
|
|
@@ -28152,7 +28136,10 @@ function SocialImageField({ path, backend, config }) {
|
|
|
28152
28136
|
label: config.label,
|
|
28153
28137
|
description: config.description,
|
|
28154
28138
|
error: error?.message,
|
|
28155
|
-
children: () => /* @__PURE__ */ jsx(Fragment$1, { children: image.kind === "loading" ? /* @__PURE__ */ jsx(ContentSpinner, {
|
|
28139
|
+
children: () => /* @__PURE__ */ jsx(Fragment$1, { children: image.kind === "loading" ? /* @__PURE__ */ jsx(ContentSpinner, {
|
|
28140
|
+
scale: "section",
|
|
28141
|
+
srLabel: "Loading this image"
|
|
28142
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [image.kind === "unavailable" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(UnreadableMediaWarning, {}), /* @__PURE__ */ jsx(Button$1, {
|
|
28156
28143
|
type: "button",
|
|
28157
28144
|
variant: "outline",
|
|
28158
28145
|
onClick: () => setValue(null),
|
|
@@ -28244,6 +28231,14 @@ function LinkedEntryLeaseBanner({ entryId }) {
|
|
|
28244
28231
|
canKeepViewing: false
|
|
28245
28232
|
});
|
|
28246
28233
|
if (!notice) return null;
|
|
28234
|
+
const handlers = {
|
|
28235
|
+
"take-over": () => session.takeOver(),
|
|
28236
|
+
retry: () => session.retry(),
|
|
28237
|
+
reload: reloadPage,
|
|
28238
|
+
discard: () => store.getState().linkedEntries.discard(entryId),
|
|
28239
|
+
"keep-viewing": () => void 0,
|
|
28240
|
+
"discard-and-view": () => void 0
|
|
28241
|
+
};
|
|
28247
28242
|
return /* @__PURE__ */ jsxs(Callout, {
|
|
28248
28243
|
tone: "warning",
|
|
28249
28244
|
"data-linked-entry-lease-notice": notice.variant,
|
|
@@ -28254,13 +28249,7 @@ function LinkedEntryLeaseBanner({ entryId }) {
|
|
|
28254
28249
|
className: "mt-3 flex flex-wrap gap-2",
|
|
28255
28250
|
children: /* @__PURE__ */ jsx(LeaseNoticeButtons, {
|
|
28256
28251
|
notice,
|
|
28257
|
-
handlers
|
|
28258
|
-
"take-over": () => session.takeOver(),
|
|
28259
|
-
retry: () => session.retry(),
|
|
28260
|
-
discard: () => store.getState().linkedEntries.discard(entryId),
|
|
28261
|
-
"keep-viewing": () => void 0,
|
|
28262
|
-
"discard-and-view": () => void 0
|
|
28263
|
-
},
|
|
28252
|
+
handlers,
|
|
28264
28253
|
size: "sm"
|
|
28265
28254
|
})
|
|
28266
28255
|
})]
|
|
@@ -31541,7 +31530,10 @@ function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId,
|
|
|
31541
31530
|
setSlotSelection((current) => selectionsEqual(current, selection) ? current : selection);
|
|
31542
31531
|
}, [selection]);
|
|
31543
31532
|
if (!visible) return null;
|
|
31544
|
-
if (slotsQuery.isLoading) return /* @__PURE__ */ jsx(ContentSpinner, {
|
|
31533
|
+
if (slotsQuery.isLoading) return /* @__PURE__ */ jsx(ContentSpinner, {
|
|
31534
|
+
scale: "section",
|
|
31535
|
+
srLabel: "Loading page content"
|
|
31536
|
+
});
|
|
31545
31537
|
if (slotsQuery.isError) return /* @__PURE__ */ jsx(Callout, {
|
|
31546
31538
|
tone: "danger",
|
|
31547
31539
|
role: "alert",
|
|
@@ -32589,7 +32581,10 @@ function PreviewFooterEditorPanel({ sdkConfig, apiClient, siteId, dashboardBaseU
|
|
|
32589
32581
|
widgets: previewWidgetOverrides,
|
|
32590
32582
|
liveRuntime: liveRuntime ?? void 0,
|
|
32591
32583
|
appearanceControls: /* @__PURE__ */ jsx(SiteChromeSurfaceControls, { surface: "footer" }),
|
|
32592
|
-
loadingFallback: /* @__PURE__ */ jsx(ContentSpinner, {
|
|
32584
|
+
loadingFallback: /* @__PURE__ */ jsx(ContentSpinner, {
|
|
32585
|
+
scale: "section",
|
|
32586
|
+
srLabel: "Loading your footer"
|
|
32587
|
+
}),
|
|
32593
32588
|
...footerComposerNavigationProps(view, requestId),
|
|
32594
32589
|
variant: "sidebar",
|
|
32595
32590
|
canEdit
|
package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-CzJvgbqt.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState,
|
|
5
|
-
import { A as Tooltip, B as DropdownMenuRadioItem, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, N as TooltipTrigger, P as Badge, R as DropdownMenuLabel, V as DropdownMenuSeparator, c as needsSetupAsk, j as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuRadioGroup } from "./useOpenBlockForSetup-
|
|
6
|
-
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-
|
|
2
|
+
import { $s as Spinner, Cn as useSidebarView, Ct as EditorWriteSurface, Fs as editorAdmissionIsOpen, Gs as unwrapResponse, Gu as displayedValues, Mn as canDiscardDraft, Qr as readinessFactsFromPayload, U as usePreviewAuth, Wn as editorAuthoredBlockDocument, Xr as PUBLISH_READINESS_COPY, Zr as publishReadinessWarning, ac as DialogHeader, bn as useEditorUiStore, ec as Dialog, et as useFooterPanelOwnsNotice, fl as cn, fn as PREVIEW_CHROME_Z_INDEX, fu as authoredValuesEqual, ht as useSessionJournalHistory, ic as DialogFooter, il as Button, js as resolveBlockTitle, mt as useSessionJournal, n as usePreviewAssistantSlot, nc as DialogContent, oc as DialogTitle, pt as useServerRefresh, rc as DialogDescription, sl as cva, td as unsafeAsEditorBlockId, ut as useEntryEditorController, wa as pageTemplateFromEntry, xn as useEditorUiStoreInstance } from "./previewAssistantSlot-BN93X9o1.mjs";
|
|
3
|
+
import { Q as EllipsisVertical, S as Palette, Y as Eye, _ as Redo2, ft as ChevronDown, o as Undo2, s as TriangleAlert, y as Pencil } from "./lucide-react-McYZeSMb.mjs";
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, r as decideEditorStatus } from "./useAutosaveStatus-BMGXjGZq.mjs";
|
|
5
|
+
import { A as Tooltip, B as DropdownMenuRadioItem, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, N as TooltipTrigger, P as Badge, R as DropdownMenuLabel, V as DropdownMenuSeparator, c as needsSetupAsk, j as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuRadioGroup } from "./useOpenBlockForSetup-CTDoR_gQ.mjs";
|
|
6
|
+
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-C51RQseo.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -85,7 +85,7 @@ function EditPageButton({ placement }) {
|
|
|
85
85
|
"aria-busy": isEditingPending,
|
|
86
86
|
className: `${floating ? "fixed bottom-6 right-6" : ""} h-10 cursor-pointer gap-2 rounded-full border-foreground/80 bg-background px-4 font-semibold shadow-lg`,
|
|
87
87
|
style: floating ? FLOATING_STYLE : void 0,
|
|
88
|
-
children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {
|
|
88
|
+
children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {}) : /* @__PURE__ */ jsx(Pencil, {
|
|
89
89
|
className: "h-4 w-4",
|
|
90
90
|
"aria-hidden": true
|
|
91
91
|
}), isEditingPending ? "Switching to edit…" : "Edit page"]
|
|
@@ -111,7 +111,7 @@ function ViewAsVisitorButton({ placement }) {
|
|
|
111
111
|
"aria-busy": isEditingPending,
|
|
112
112
|
className: `${floating ? "fixed bottom-6 right-6" : ""} h-10 w-10 cursor-pointer rounded-full shadow-lg backdrop-blur-sm transition-all hover:scale-105`,
|
|
113
113
|
style: floating ? FLOATING_STYLE : void 0,
|
|
114
|
-
children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {
|
|
114
|
+
children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {}) : /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
115
115
|
className: "sr-only",
|
|
116
116
|
children: label
|
|
117
117
|
})]
|
|
@@ -287,7 +287,7 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
287
287
|
}) : statusDecision.primary.kind === "saving" ? /* @__PURE__ */ jsxs("span", {
|
|
288
288
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
289
289
|
children: [
|
|
290
|
-
/* @__PURE__ */ jsx(
|
|
290
|
+
/* @__PURE__ */ jsx(Spinner, { className: "shrink-0" }),
|
|
291
291
|
/* @__PURE__ */ jsx("span", {
|
|
292
292
|
className: "hidden min-w-0 truncate sm:block",
|
|
293
293
|
children: /* @__PURE__ */ jsx(StatusCopy, {
|
|
@@ -345,14 +345,14 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
345
345
|
tone: item.variant === "destructive" ? "destructive" : "default"
|
|
346
346
|
})),
|
|
347
347
|
onClick: () => onPublish(),
|
|
348
|
-
children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(
|
|
348
|
+
children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2" }), publishLabel] }) : publishLabel
|
|
349
349
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
350
350
|
type: "button",
|
|
351
351
|
variant: "default",
|
|
352
352
|
size: actionButtonSize,
|
|
353
353
|
onClick: () => onPublish(),
|
|
354
354
|
disabled: disablePublish,
|
|
355
|
-
children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(
|
|
355
|
+
children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2" }), publishLabel] }) : publishLabel
|
|
356
356
|
}) : null
|
|
357
357
|
]
|
|
358
358
|
}),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as useOptionalPreviewLayout } from "./PreviewLayoutContext-Dy0LwcHc.mjs";
|
|
3
3
|
import { t as PreviewQueryProvider } from "./PreviewQueryProvider-BgIucg_5.mjs";
|
|
4
|
-
import { $
|
|
5
|
-
import {
|
|
6
|
-
import { C as PreviewCompiledThemeProvider, F as mergeResolvedDataContext, Mt as TabsContent, Nt as TabsList, O as SiteFontStorageProvider, Pt as TabsTrigger, T as usePreviewCompiledTheme, V as MediaEditorContextProvider, W as useApiMediaUploader, a as sanitizeDashboardPath, at as ThemeScopeCore, ht as Toaster, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, l as SiteChromeCustomizeButton, n as resolveSiteStyleAccess, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, t as canInspectSiteStyle, v as PreviewChromeLayerProvider, w as PreviewThemeRenderingProvider, x as PREVIEW_SITE_BANNER_ATTRIBUTE } from "./siteStyleAccess-
|
|
7
|
-
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-
|
|
8
|
-
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-
|
|
4
|
+
import { $l as buildRenderableMediaAssetIndex, B as initPreviewAuth, Br as getLinkedContentEntryMeta, Bs as API_ENDPOINTS, Bt as BlockApiProvider, Ct as EditorWriteSurface, Dn as SIDEBAR_WIDTH, Do as DEFAULT_THEME_RESPONSIVE_MODE, Dt as getEditorClientId, Fn as remoteDraftValues, G as renderSiteChromeBlock, Gs as unwrapResponse, H as renewPreviewSession, In as renderSourceFor, Is as editorAdmissionNotice, Ks as selectedCanvasBlockId, Ls as editorAdmissionSession, Lt as ImageResolveContextProvider, Nn as activeLinkedSaveHandover, O as PreviewRenderObservationsProvider, On as parseStoredSidebarWidth, Oo as getResponsiveScopeSpec, Pn as planLinkedSaveHandoverRetention, Qi as buildThemeDataAttrs, Rn as resolveRenderedValues, Rr as LINKED_CONTENT_ENTRY_META_KEY, Rs as observeEditorAdmission, Sn as useOptionalEditorUiStoreInstance, St as EditLeaseModal, Su as parseFooterModuleId, U as usePreviewAuth, Un as unsafeAsLinkedContentEntryId, V as registerPreviewRenewalFetcher, W as usePreviewToken, Wu as parseEditLeaseScope, Xs as Callout, Zs as CalloutDescription, _ as PreviewFooterProvider, _s as assertNever$1, _t as savedContentReceipt, a as PreviewPageDesignEditorStateProvider, ac as DialogHeader, an as blocksKeys, bn as useEditorUiStore, bt as VIEWING_PARTICIPATION, ct as EntryControllerProvider, da as SITE_STICKY_CHROME_HEIGHT_FALLBACK, dn as ApiRequestError, ea as themeRuntimeScopeProps, ec as Dialog, eu as renderableMediaAssetSchema$1, f as PreviewThemeJournalProvider, fa as measureSiteStickyChromeHeightPx, fl as cn, fu as authoredValuesEqual, g as previewThemeBase, gt as createEditorApiClientFactory, ha as siteTopChromeMeasurementTargets, hl as isEdited, i as usePreviewSidebarNavigation, ic as DialogFooter, il as Button, l as SiteChromeCustomizeProvider, la as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, m as usePreviewThemeSourceOptional, ma as planSiteOverlayHeaderClearance, ml as baselineRevisionOf, mn as createSnapshotFromPageRecord, nc as DialogContent, oc as DialogTitle, p as usePreviewThemeSource, pn as createRoutingHelpers, pt as useServerRefresh, r as PreviewSidebarBootstrap, rc as DialogDescription, t as PreviewAssistantSlotProvider, td as unsafeAsEditorBlockId, tt as SessionJournalHost, tu as indexRenderableMediaAssets, ua as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, ud as assertNever$2, ut as useEntryEditorController, v as useLiveFooterRuntime, vl as canEditorWrite, vt as savedPageSurfaceMetadataReceipt, xn as useEditorUiStoreInstance, xt as EditLeaseDiscardedNotice, ya as planSiteChromePlacement, yt as useRetentionTicks, z as createGuardedPreviewApiClient, zi as buildResolveImageUrlContext, zs as OPERATION_ID_HEADER } from "./previewAssistantSlot-BN93X9o1.mjs";
|
|
5
|
+
import { H as GripVertical } from "./lucide-react-McYZeSMb.mjs";
|
|
6
|
+
import { C as PreviewCompiledThemeProvider, F as mergeResolvedDataContext, Mt as TabsContent, Nt as TabsList, O as SiteFontStorageProvider, Pt as TabsTrigger, T as usePreviewCompiledTheme, V as MediaEditorContextProvider, W as useApiMediaUploader, a as sanitizeDashboardPath, at as ThemeScopeCore, ht as Toaster, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, l as SiteChromeCustomizeButton, n as resolveSiteStyleAccess, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, t as canInspectSiteStyle, v as PreviewChromeLayerProvider, w as PreviewThemeRenderingProvider, x as PREVIEW_SITE_BANNER_ATTRIBUTE } from "./siteStyleAccess-BGTAcPud.mjs";
|
|
7
|
+
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-BHAT81Wx.mjs";
|
|
8
|
+
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-C51RQseo.mjs";
|
|
9
9
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -216,8 +216,9 @@ function ToastProvider() {
|
|
|
216
216
|
position: "bottom-right",
|
|
217
217
|
offset: {
|
|
218
218
|
right: "calc(var(--assistant-dock-inset, 0px) + 24px)",
|
|
219
|
-
bottom: "24px"
|
|
219
|
+
bottom: "calc(var(--builder-editor-chrome-offset, 0px) + 24px)"
|
|
220
220
|
},
|
|
221
|
+
mobileOffset: { bottom: "calc(var(--builder-editor-chrome-offset, 0px) + 16px)" },
|
|
221
222
|
richColors: false,
|
|
222
223
|
className: "rb-sonner-toaster",
|
|
223
224
|
toastOptions: { classNames: {
|
|
@@ -4446,10 +4447,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4446
4447
|
}
|
|
4447
4448
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4448
4449
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4449
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4450
|
+
return { default: (await import("./PreviewEditorSidebar-DNy5j_ce.mjs")).PreviewEditorSidebar };
|
|
4450
4451
|
});
|
|
4451
4452
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4452
|
-
return { default: (await import("./PreviewEditorUI-
|
|
4453
|
+
return { default: (await import("./PreviewEditorUI-CzJvgbqt.mjs")).PreviewEditorUI };
|
|
4453
4454
|
});
|
|
4454
4455
|
function renderShellProviders(input) {
|
|
4455
4456
|
if (!input.themeRoles) return input.content;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $r as
|
|
3
|
-
import {
|
|
4
|
-
import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-
|
|
5
|
-
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-
|
|
6
|
-
import { f as useEditor } from "./previewChromeRoot-
|
|
7
|
-
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-
|
|
2
|
+
import { $r as readinessFactsFromLoaders, Aa as faqAccordionFragment, Ar as buildAppointmentServicesView, Au as sameMailingListPlacementTargeting, Ba as ctaRowFragment, Bi as getCurrentResolveImageUrlContext, Bu as NO_BLOCK_VERSIONS, Ca as hiddenFromVisitors, Ci as RichText$1, Cr as resolveDefaultBlockTree, D as ObservedJoin, Da as richTextFragment, Dr as getDefaultComponentRegistry, Du as parseMailingListPlacementTargeting, Ea as bookingConsentCarrierSchema, Eo as mergeContentWithBlockStyleOverrides, Er as readBlockComposition, Fa as formCopyFragment, Fn as remoteDraftValues, Fr as getAtPath, Ft as clientComponentRegistry, Ga as bodyCopyFragment, Gs as unwrapResponse, Hi as normalizeEventRegistrationPageSurfaceSubject, Hl as defaultThemeTokens, Hr as resolveEntryRouteTarget, Hs as calendarWindowQuerySchema, Hu as readPublishedBlockPlacement, Ia as testimonialsCarouselFragment, In as renderSourceFor, Ir as siblingPath, Ja as compileManifestContentContract, Ji as offeringsListingFor, Jr as mapOutlineBlocks, Ka as defineFragment, Kr as createEditorPresentationPageReader, La as testimonialsHeadingFragment, Ll as textColorStyle, Ln as renderedFieldChanges, Ma as blogFeaturedPostFragment, Ml as parseThemeForPersistence, Mr as renderInlineText, Na as singleButtonFragment, Nr as logger, Ns as isObjectRecord, Oa as headingFragment, Or as buildLoadedOfferingsPreviewListing, Pa as formEmbedFragment, Pr as Text$1, Ps as isRecord$1, Ra as ctaCopyFragment, Rn as resolveRenderedValues, Sa as projectRecurringSchedule, Si as cardListPresentationSchemaShape, Ta as publicEventsArraySchema, Tr as blockLookFromContent, Ua as heroCopyFragment, Ui as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Un as unsafeAsLinkedContentEntryId, Ur as resolvePageRouteTarget, Uu as selectedContentVersionId, Vi as setContextResolveImageUrlContext, Vr as defaultTransforms, Vs as publicMapLocationParamsSchema, Vu as readEditorBlockVersionsFromPlacement, W as usePreviewToken, Wa as ctaButton, Wi as groupOfferingRunsByCourse, Wr as resolveRouteTarget, Xi as readOfferingsGrouping, Ya as validateManifestDraft, Yr as mapOutlineRegions, _a as readRuntimeNow, _r as retargetJoinsAcrossOmissions, ai as normalizeBlockContent, ao as parseGeneratedIconAssetId, bn as useEditorUiStore, ci as normalizeLocationMapSource, ei as selectBlockContent, fi as offeringsPreviewBlockDefinition, fr as createPageRenderPlanReader, gl as canWriteLinkedEntry, gr as renderedJoinLayout, ho as isInlineTextEmpty, hr as joinSlotKey, hu as buildMailingListSignupBlockSourceRef, io as parseBlockIconValue, ja as faqHeadingFragment, k as PreviewRenderPlanProjection, ka as cardFragment, kr as resolveEventDetailsPresentation, li as parseLocationMapLoaderResult, lo as coerceInlineTextWithFallback, mo as inlineTextToPlainText, mr as composePageJoins, oi as LOCATION_MAP_LOADER_KEYS, oo as parseGeneratedIconSetId, pi as publicRouteCandidatesSchema, pr as planArrangementContent, pu as generateUuidV4, qa as runTransforms, qr as allOutlineBlocks, ri as getBlockDefinition, s as usePreviewPageDesignRenderState, sd as toUtcIsoDateTimeString, si as describeUnresolvedLocationMapLocation, td as unsafeAsEditorBlockId, ud as assertNever, ui as resolveLocationMapLocation, uo as deriveInlineTextFieldChanges, va as resolveDateRuntimeContext, vo as parseInlineTextFromUnknown, wa as pageTemplateFromEntry, wo as buildThemeRuntime, wr as arrangementHooksFromContent, xn as useEditorUiStoreInstance, xr as makeDefaultBlockComponent, yl as bindingSchema, za as heroCtaRowFragment, zi as buildResolveImageUrlContext, zl as parseSurfaceTree, zr as coerceLinkedContentEntriesPayload } from "./previewAssistantSlot-BN93X9o1.mjs";
|
|
3
|
+
import { Lt as parseLocationValue, Rt as projectPublicLocation, zt as publicLocationSchema } from "./lucide-react-McYZeSMb.mjs";
|
|
4
|
+
import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-BGTAcPud.mjs";
|
|
5
|
+
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-D-Le7O3o.mjs";
|
|
6
|
+
import { f as useEditor } from "./previewChromeRoot-C51RQseo.mjs";
|
|
7
|
+
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-xhJ6ca1i.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1666,7 +1666,16 @@ function prepareEntry(entry, input) {
|
|
|
1666
1666
|
*/
|
|
1667
1667
|
function previewableEditorContent(entry) {
|
|
1668
1668
|
if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
|
|
1669
|
-
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry
|
|
1669
|
+
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), withoutRenderOnlyLocation(entry)).kind === "previewable" ? entry.renderableContent : null;
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* The editor gives a custom map its public projection to draw (authoringLocationMaps).
|
|
1673
|
+
* The draft contract rightly refuses that shape, because it mustn't be saved, and
|
|
1674
|
+
* the owner's stored location was admitted before it was projected.
|
|
1675
|
+
*/
|
|
1676
|
+
function withoutRenderOnlyLocation(entry) {
|
|
1677
|
+
const { location, ...content } = entry.ownerEditableContent;
|
|
1678
|
+
return entry.block.kind === "block.location-map" && publicLocationSchema.safeParse(location).success ? content : entry.ownerEditableContent;
|
|
1670
1679
|
}
|
|
1671
1680
|
function buildPreparedContent(entry, content, input) {
|
|
1672
1681
|
const { dataContext } = input;
|