@riverbankcms/sdk 0.168.0 → 0.169.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CiD_VVGM.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
- package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-DHBBDRC_.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
- package/dist/_dts/{client-C8mfUxrJ.d.ts → client-MURxFla9.d.ts} +39 -397
- package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
- package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-CHNvzh0y.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
- package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BaDqRekr.d.ts} +4 -4
- package/dist/_dts/{index-vR3p9Bu-.d.ts → index-CVB5wgbz.d.ts} +2 -2
- package/dist/_dts/{index-Cx2BQlHL.d.ts → index-CiR_oPYT.d.ts} +1 -1
- package/dist/_dts/{index-Bpr-wT5k.d.ts → index-CovKPftP.d.ts} +2 -2
- package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DCw8LO4M.d.ts} +1 -1
- package/dist/_dts/{index-Vh8B9FSa.d.ts → index-DDaX-K2D.d.ts} +1 -1
- package/dist/_dts/{index-C7_Rz8EY.d.ts → index-rfAssXq0.d.ts} +3 -3
- package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
- package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DeVetKBr.d.ts} +1840 -599
- package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-FOsJ-KYb.d.ts → types-B4MBlP_B.d.ts} +2 -2
- package/dist/_dts/{types-BVFXYtRg.d.ts → types-Fj31kIi2.d.ts} +7 -7
- package/dist/_dts/{types-BB33-Spd.d.ts → types-OwqfS8Gn.d.ts} +3 -3
- package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DcwEaliO.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +16 -16
- package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-y3qWjnOo.mjs} +17 -6
- package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-DjLjd0vc.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +65 -9
- package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-DDjz7tuX.mjs} +9 -9
- package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-CeYbNsch.mjs} +7 -7
- package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-B5J0IeF4.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
- package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
- package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BYBaElec.mjs} +5 -5
- package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +121 -59
- package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D_M2Vxz3.mjs → Page-Dv9eIOGr.mjs} +20 -15
- package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-BZNUd0-v.mjs} +2 -2
- package/dist/client/{accordion-DE7OG--d.mjs → accordion-BCtVxnDZ.mjs} +1 -1
- package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-Cr5G-HHO.mjs} +504 -216
- package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-B1Fc62Sl.mjs} +8 -5
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +16 -13
- package/dist/client/{carousel-DZyUdnFh.mjs → carousel-DW-HgjvT.mjs} +1 -1
- package/dist/client/{cart-D7HkkNwe.mjs → cart-D1zWe4R7.mjs} +3 -3
- package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-CIfbTLHS.mjs} +1 -1
- package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-fDCNZ3IT.mjs} +3 -3
- package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
- package/dist/client/client.mjs +50 -3
- package/dist/client/{context-DXmIbXCK.mjs → context-DQnTyApV.mjs} +24 -2
- package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
- package/dist/client/{cta-DP_IBnq3.mjs → cta-Bj5WHgcv.mjs} +2 -2
- package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
- package/dist/client/{wizardSteps-CFulHWnT.mjs → display-CT8KMSpH.mjs} +893 -68
- package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-B27KFGDv.mjs} +3 -2
- package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
- package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-Dj3Kyp5X.mjs} +56 -16
- package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
- package/dist/client/{eventCombined-DoSi8p_l.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
- package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DzMskXYA.mjs} +2 -2
- package/dist/client/{eventListing-CkiMjl0g.mjs → eventListing-CpFFcAUr.mjs} +4 -4
- package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
- package/dist/client/{form-DgQqm7T2.mjs → form-57k2JQnm.mjs} +3 -3
- package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-CCl6CpRJ.mjs} +4 -4
- package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-BOJ1yDDf.mjs} +1 -1
- package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-q_bEzfhW.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-CiqKAmPs.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-x1RzAMNO.mjs} +1 -1
- package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
- package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
- package/dist/client/portal/client.mjs +20 -12
- package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
- package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
- package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
- package/dist/client/{productList-B8o5AOMX.mjs → productList-C0MLeh-v.mjs} +3 -3
- package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-CAmEkJ6Y.mjs} +3 -3
- package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-Bf2YX_4v.mjs} +22 -19
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
- package/dist/client/{shop-rRXplPGZ.mjs → shop-Dkn6EasY.mjs} +3 -3
- package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-bo0Z6kwf.mjs} +11 -11
- package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
- package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-B_GqU6_U.mjs} +109 -30
- package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-C6L_Ig5F.mjs} +7 -523
- package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-D62jfOxZ.mjs} +10 -10
- package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
- package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Ca2pHUDu.mjs} +5 -3
- package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
- package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-uxnUWI2v.mjs} +6 -6
- package/dist/client/{view-448wvvEY.mjs → view-B6KSxQMO.mjs} +7 -7
- package/dist/client/{view-L_mkgtnk.mjs → view-SVnWic7i.mjs} +2 -3
- package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-kbdqYkWM.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +89 -39
- package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-yyD-ZREP.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-YauP65Gi.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +8 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +1057 -316
- package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DSR0IdAw.mjs} +417 -56
- package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-BU1m9SV3.mjs} +47 -0
- package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-4vx7wzxj.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-C3HLgqBF.mjs} +6 -3
- package/dist/server/{bindings-DLoZYUxG.mjs → bindings-TAQbo2P5.mjs} +1 -1
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Bc8jI8zN.mjs → client-DzCxEl3L.mjs} +48 -1
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-BO1M9Hdf.mjs} +4 -4
- package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-BvWzmZcD.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DzduDSqY.mjs} +2 -2
- package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +2 -2
- package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-CSOJ8p8E.mjs} +24 -16
- package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
- package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-BvbxqeKn.mjs} +2 -2
- package/dist/server/{registry-Bh0Y25zH.mjs → registry-Fv-7D8o2.mjs} +264 -48
- 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-CnHHst9r.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-D2bHWSxJ.mjs → validation-DddhgNdb.mjs} +4 -4
- package/dist/server/{version-DkM1eAxG.mjs → version-D_W2mt8w.mjs} +1 -1
- package/dist/styles/index.css +6 -3
- package/package.json +1 -1
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
6
|
-
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-
|
|
2
|
+
import { Cn as RichText, Hn as formatEventClockLabel, Rn as eventDateOptions, Xn as resolveEventTimeZone, Yn as groupEventsByDate, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, or as isEventFull, qn as formatEventTimeRange, wi as resolveDateRuntimeContext } from "./display-CT8KMSpH.mjs";
|
|
3
|
+
import { Ht as toScheduledBookingDateTime, Mt as formatDate, Vt as formatBookingCompactEnglishTime, Xt as parseLocalScheduleTime } from "./noop-B_f7RqLD.mjs";
|
|
4
|
+
import { M as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { t as LocationMapActions } from "./LocationMapActions-BFp2uQQQ.mjs";
|
|
6
|
+
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { U as textColorStyle } from "./accessibleSurfaces-chpD4C2c.mjs";
|
|
8
8
|
import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
9
|
-
import { r as resolveEventLinkProps } from "./cta-
|
|
10
|
-
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-
|
|
11
|
-
import { l as formatEventTeacherLine } from "./EventItem-
|
|
12
|
-
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
13
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
9
|
+
import { r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
|
|
10
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
11
|
+
import { l as formatEventTeacherLine } from "./EventItem-B5J0IeF4.mjs";
|
|
12
|
+
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-VM7C2fdh.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { It as formatTime$1, Jt as getLocalScheduleDate, Kt as formatLocalScheduleDate, Mt as formatDate$1, Qt as resolveBookingTimeZoneId, Wt as addLocalScheduleDays, Yt as parseBookingLocalDate, en as parseUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
3
|
+
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-DQnTyApV.mjs";
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
6
6
|
//#region ../core/src/branded/appointments.ts
|
|
7
7
|
const unsafeAsAppointmentServiceId = (id) => id;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
|
+
import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { useCallback } from "react";
|
|
@@ -129,6 +129,7 @@ function planDirectShopCheckoutRequest(input) {
|
|
|
129
129
|
return ok({
|
|
130
130
|
productType: input.productType,
|
|
131
131
|
productId: input.productId,
|
|
132
|
+
...input.teamMemberId ? { teamMemberId: input.teamMemberId } : {},
|
|
132
133
|
customerEmail: contact.value.email,
|
|
133
134
|
customerName: contact.value.name,
|
|
134
135
|
...discountCode ? { discountCode } : {},
|
|
@@ -145,7 +146,8 @@ function buildUnifiedCheckoutItems(checkout) {
|
|
|
145
146
|
quantity: item.quantity
|
|
146
147
|
} : {
|
|
147
148
|
type: "pass",
|
|
148
|
-
passId: item.passId
|
|
149
|
+
passId: item.passId,
|
|
150
|
+
...item.teamMember ? { teamMemberId: item.teamMember.id } : {}
|
|
149
151
|
});
|
|
150
152
|
}
|
|
151
153
|
function planUnifiedCheckoutRequest(input) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
6
|
-
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-
|
|
2
|
+
import { At as normalizeCsvString, Ct as getEventPaginationView, Et as toError, Ot as getEventRuntimeFiltersKey, St as getEventIdentity, Tt as toEventPaginationLoadError, bt as eventPageOperationQuery, jt as normalizeOptionalId, kt as normalizeCsvIds, wt as planEventPageOperation, xt as eventPaginationLoadReducer, yt as createInitialEventPaginationLoadState } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Di as getBlockApiReadStage, Gi as listLookSlot, Ui as listItemPresentation } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-DQnTyApV.mjs";
|
|
6
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BYBaElec.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { r as EventItem } from "./EventItem-
|
|
8
|
+
import { r as EventItem } from "./EventItem-B5J0IeF4.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { $t as
|
|
5
|
-
import {
|
|
2
|
+
import { Gt as formatEventPrice, Kt as formatEventPriceAmount, Pt as CardListContentPart, Rt as MediaNodeServer, nt as formatBookingSchedulePresentation, qt as formatEventPriceDisplay } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Fo as publicEventPricingType, Gi as listLookSlot, Mo as publicEventPricingCurrency, No as publicEventPricingDisplay, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, Un as formatEventCompactDateRail, Wn as formatEventDateParts, go as CANCELLED_SESSION_STATUS, jo as isPublicEventPricingOptionDisplayable, ko as formatBookingPriceDisplay, nr as formatTotalCapacity, vo as orderedLiveRunSessions, wn as ImagePresets, yo as resolveWholeSeriesBookingPhase } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { $t as toBookingTimeZone, Ft as formatDateTimeRange, Gt as compareLocalScheduleDates, Ht as toScheduledBookingDateTime, Jt as getLocalScheduleDate, Mt as formatDate, Nt as formatDateRange, Zt as resolveBookingBusinessTimeZone, on as formatCurrencyAmount, qt as getBookingLocalDateKey, tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
5
|
+
import { M as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
6
6
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
7
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
8
|
-
import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-
|
|
9
|
-
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-BFp2uQQQ.mjs";
|
|
8
|
+
import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-Bj5WHgcv.mjs";
|
|
9
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
10
10
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
11
|
import "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { oi as listLookSlot } from "./wizardSteps-CFulHWnT.mjs";
|
|
2
|
+
import { Gi as listLookSlot, d as membershipClassesLabel, f as passCardListContent, u as membershipCardListContent } from "./display-CT8KMSpH.mjs";
|
|
4
3
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
5
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
4
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-B5J0IeF4.mjs";
|
|
6
5
|
import React from "react";
|
|
7
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
3
|
+
import { $d as truncateInlineText, Am as DialogContent, Bm as __awaiter, C as selectedImageFromMediaValue, Cm as DialogDescription$1, D_ as asLayoutVariantKey, Dd as RichTextDocSchema, Ef as getCuratedSiteStyle, Eh as cn$2, Em as DialogTitle$1, F as nextLookTilePin, Ff as getGradientPreset, Gd as inlineTextToPlainText, Gm as __spreadArray, Hd as inlineTextAccentTones, Hm as __generator, Jd as normalizeInlineTextMarks, Km as __spreadArrays, Kn as rankBackgroundImagePoolItems, Ln as backgroundColorTokens, Mm as DialogOverlay, Na as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Nf as gradientToCss, Nm as DialogPortal, Pm as DialogTitle, Qd as replaceInlineTextRange, R_ as generateUuidV4, Sm as DialogContent$1, Th as useComposedRefs, Tm as DialogHeader, Ud as inlineTextEqual, Um as __read, Vm as __extends, Wd as inlineTextHighlightTones, Wm as __rest, Xd as plainTextToInlineText, Xp as unwrapResponse, Zd as removeInlineTextMarkFromRange, am as SelectTrigger, b_ as mediaIdentifierSchema, bh as useControlReadiness, bm as Dialog, c_ as formatAspectRatioToken, cm as usePrevious, d_ as getDirectImageUrlForMediaAsset, f_ as getImageUrl, fh as useControllableState, gh as Primitive, hh as composeEventHandlers, ig as surfaceForegroundValue, ih as useSize, im as SelectItem, iy as unsafeAsPositiveByteCount, ja as resolveMediaStorageUrl, jm as DialogDescription, jr as getBlockDefinition, k as usePreviewRenderBackgrounds, ka as resolveImageUrlWithContext, kd as richTextVariantCapabilities, km as DialogClose, l_ as parseAspectRatioValue, mh as createContextScope, nm as Select, o_ as isRotationDimensionSwap, om as SelectValue, op as assertNever$1, qd as normalizeInlineText, rm as SelectContent, ry as unsafeAsMediaAssetId, s_ as normalizeRightAngle, ty as assertNever, u_ as resolveMediaTransformForAspect, v_ as resolveManagedMediaReference, vh as Button, w as selectedImageFromRenderableAsset, wa as computeMediaTransformStyle, xa as getRichTextImageSize, xh as cva, zd as applyInlineTextMarkToRange, zm as __assign, zn as defaultBackgroundOverrideForMode, zt as getDashboardBaseUrl } from "./previewAssistantSlot-DSR0IdAw.mjs";
|
|
4
4
|
import { B as ImageUp, C as Palette, F as Link$1, Gt as err, J as FileSpreadsheet, K as File, Kt as ok, L as Italic$1, M as LoaderCircle, N as List, P as ListOrdered, R as Info, St as Archive, W as Highlighter, X as FileHeadphone, Y as FilePlay, Z as FileArchive, a as Upload, b as Pencil, c as Trash2, ft as ChevronRight, ht as Check, n as X, nt as Crop, pt as ChevronLeft, q as FileText, y as Plus, yt as Bold$1, z as Image } from "./lucide-react-DkZ8fO-G.mjs";
|
|
5
|
-
import { $ as useMediaEditorOptional, Bt as readThemeScopeContext, D as usePreviewCompiledThemeOptional, Q as useMediaEditor, Xt as Input, d as CustomizeBackgroundColorPicker, et as useApiMediaUploader, ln as classifyKnownMimeType, tt as TransferError } from "./SiteChromeCustomizeButton-
|
|
6
|
-
import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, c as arrangementBackgroundControlFor, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor } from "./useBlockCustomizeControls-
|
|
5
|
+
import { $ as useMediaEditorOptional, Bt as readThemeScopeContext, D as usePreviewCompiledThemeOptional, Q as useMediaEditor, Xt as Input, d as CustomizeBackgroundColorPicker, et as useApiMediaUploader, ln as classifyKnownMimeType, tt as TransferError } from "./SiteChromeCustomizeButton-CQFRP9aM.mjs";
|
|
6
|
+
import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, c as arrangementBackgroundControlFor, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor } from "./useBlockCustomizeControls-ZrWdhcB6.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";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
3
|
+
import { $_ as parseMailchimpInterestId, $m as Anchor, $p as journalTargetKey, $t as planLeaseNotice, A as usePreviewRenderReadiness, Ad as sanitizeHref, Ah as canWriteLinkedEntry, Ai as chooseScheduleScope, An as manifestFieldSectionOptions, At as deleteSlotBlock, Bd as coerceInlineTextWithFallback, Bh as buttonStyleHoverPreferenceValue, Bl as parseFeatureCardGeneratedIconSizePx, Bn as enabledBackgroundModes, Bt as getDashboardUrl, Bv as resolveBookingTimeZoneId, Cf as defaultPolicyPageFlowPresetId, Cm as DialogDescription$1, Cn as withoutServerVersions, Cp as resolveRepeaterGridBreakpointForWidth, Ct as getWidgetKey, Cv as unsafeAsEditorBlockValues, Dh as useShallow, Di as EVENT_SELECTION_SCOPE_OPTIONS, Dm as DialogTrigger, Dn as initialBlockDraftValues, Dt as createBlock, Ed as deriveFieldValidationPlan, Ef as getCuratedSiteStyle, Eh as cn, Em as DialogTitle$1, Et as partitionFieldsByIntent, Fa as buildResolveImageUrlContext, Ff as getGradientPreset, Fh as isAcceptedRepeaterGridSpan, Fn as readNumberFieldUiConfig, Ft as reorderSlotBlocks, G_ as mailingListProviderName, Gd as inlineTextToPlainText, Gh as updateButtonStyleSelectionChoice, Gn as planBackgroundTransition, Gt as ApiRequestError, Hh as findButtonStyleRecipe, Hv as parseUtcIsoDateTimeString, I as selectedLookTile, Id as parseGeneratedIconAssetId, If as getHeaderLayout, Ih as resolveRepeaterGridColumnFieldId, Il as FEATURE_CARD_GENERATED_ICON_SIZE_PX, In as readSliderFieldUiConfig, Ip as editorAdmissionIsOpen, It as withSlotCompositionHash, J as runHeldLifecycle, J_ as DEFAULT_MAILING_LIST_TARGETING, K_ as parseMailingListPlacementTargeting, Kg as paletteValueKey, Kh as buttonStyleSelectionKey, Kn as rankBackgroundImagePoolItems, Ld as parseGeneratedIconSetId, Lf as getHeaderStyle, Lh as resolveRepeaterGridRowFieldId, Lt as blocksKeys, Lv as parseBookingLocalDate, Md as getBlockIconSemanticId, Mh as canEditorWrite, Mi as toggleEventType, Mn as getRepeaterItemDefault, Mr as listBlockDescriptors, Mt as listEntryPageContentSlots, N as lookTilePosition, N_ as authoredValuesEqual, Nd as getGeneratedBlockIconStyleState, Nf as gradientToCss, Ni as writeEventSelectionChips, Nn as normalizeFieldForCanonicalValidation, Nt as listPageSurfaceContentSlots, O as usePreviewJoinOutcome, Oa as resolveImageSourceSetWithContext, Od as isRichTextDoc, Of as offeredSiteStyles, Oi as EVENT_SELECTION_TYPE_OPTIONS, On as createManifestFormAdapter, Ot as createSlotBlock, Pa as resolveMediaSlotContract, Pd as parseBlockIconValue, Pf as GRADIENT_PRESETS, Pm as DialogTitle, Pn as getGroupChildFields, Pt as reorderBlocks, Q_ as parseMailchimpAudienceId, Qf as sectionTransitionVariantForBoundaryOptionId, Qm as Portal$1, Qp as journalLabels, Qt as resolveContentTitle, R_ as generateUuidV4, Rd as parseSiteIconStyleGuideVersionId, Rf as findCuratedPalette, Rh as resolveRepeaterGridSpanFieldId, Rl as createFeatureCardIconKey, Rm as ReactRemoveScroll, Rn as canCycleBackgroundOverrideValue, Rt as normalizeApiError, S as setPageDesignBlockBackground, S_ as getFontWidthRange, Sh as createSlot, Sm as DialogContent, Sn as toEditorBlockItem, Sp as resolveRepeaterGridAcceptedSpans, St as getFieldIntent, Sv as unsafeAsEditorBlockId, Td as admitLayoutGridForPlan, Th as useComposedRefs, Tm as DialogHeader, Tt as isNonEmptyValue, Tv as formatDateTime, U_ as assessMailingListTargeting, Uh as resolveButtonStyleSelection, Ul as suggestSemanticIconForFeatureCard, Un as parseBackgroundOverrideFromContent, Uv as toUtcIsoDateTimeString, V as usePreviewAuth, Vf as findFooterLook, Vh as buttonStyleSelectionParameterValue, Vl as resolveFeatureCardGeneratedIconSizePx, Vn as imagePoolForOverride, Vp as OPERATION_ID_HEADER, W as useEntryController, W_ as resolveMailingListDefaultDestination, Wh as updateButtonStyleHoverPreference, Wl as toFeatureCardIconSuggestionInputs, X as useServerRefresh, Xd as plainTextToInlineText, Xf as sectionTransitionFamilies, Xp as unwrapResponse, Xt as deriveRouteMetadataPresentation, Xu as isBlockButtonRole, Y_ as mailingListTargetingChoiceIds, Yf as defaultSectionTransitionVariantForFamily, Yp as extractApiEnvelopeErrorDetails, Yt as routeLifecycleContext, Yu as BLOCK_BUTTON_ROLE_OPTIONS, Z as useSessionJournal, Z_ as parseBrevoListId, Zf as sectionTransitionFamilyForBoundaryOptionId, Zm as Presence, Zp as sidebarReturnView, Zt as resolvePageRouteSlug, _f as concretePaletteToTheme, _m as FIELD_SURFACE_CLASS, _p as findFirstAvailableRepeaterGridPlacement, _t as collectVisibleWhenWatchPaths, _v as createEditorInsertBlockCommand, af as resolveVisiblePromotedFieldPathsForEditorBlock, ah as useId$1, am as SelectTrigger, ao as isOfferingsPreviewSourceKey, ar as getAtPath, av as publishedContactDetails, b_ as mediaIdentifierSchema, bm as Dialog, bp as normalizeRepeaterGridSpan, bt as evaluateVisibleWhenPredicate, bu as buildFormInteractiveIslandProps, bv as editorBlockCollectionOwnerKey, cf as sectionPhotoPresence, ch as DismissableLayer, cm as usePrevious$1, ct as LeaseNoticeButtons, cy as expectParsedBrandedId, d as cycleSiteChromeSelectionId, d_ as getDirectImageUrlForMediaAsset, dh as createCollection, dm as CalloutDescription, dn as selectJournalWriteState, do as resolveOfferingsPreviewGroupOrderEntries, dp as isInternalResolvedLinkValue, dt as JournalWriteRefused, ef as parseFieldDefinition, eh as Arrow$1, em as journalTrustAt, en as useEditorUiStore, ev as parseNewsletterListId, fh as useControllableState, fm as CalloutTitle, fn as journalNoticeMessage, fp as planLayoutGridColumnEdit, fv as displayedValues, gf as concretePaletteFromTheme, gh as Primitive, gm as FIELD_FOCUS_WITHIN_CLASS, gp as projectRepeaterGridLayout, gt as derivePromotedFieldPlan, gv as valueStatus, hh as composeEventHandlers, hp as planRepeaterGridSpanChange, ht as publishContentEntry, hv as syncStateOf, i as usePreviewSidebarNavigation, ih as useSize, im as SelectItem, in as recoveryConflictCopy, io as inferLegacyOfferingsPreviewGroupOrder, ip as appearancePresets, iv as publicProfileWeekdays, jh as readLinkedEntryLease, ji as readEventSelectionChips, jm as DialogDescription, jn as getFieldDefault, jp as resolveBlockTitle, jr as getBlockDefinition, jt as isSurfaceSlotBlockTarget, ka as resolveImageUrlWithContext, kf as palettesForSiteStyle, kh as isEdited, ki as chooseAllEvents, kn as createManifestValidation, kt as deleteBlock, l_ as parseAspectRatioValue, lm as clamp, lo as planOfferingPreviewCardSelection, m_ as runtimeMediaSchema, mh as createContextScope, mp as buildRepeaterGridDropTargets, mt as missingReceiptError, mv as pristineValueSync, n as usePreviewAssistantSlot, nh as Root2$1, nm as Select$1, nv as knownSocialPlatforms, ny as parseMediaAssetId, o as usePreviewPageDesignEditorState, o_ as isRotationDimensionSwap, oh as FocusScope, om as SelectValue, on as unfinishedBlockCopy, oo as normalizeOfferingsPreviewGroupOrder, or as siblingPath$2, oy as parseSiteId, p_ as mediaSchema, pm as FieldTrigger, pn as lifecycleOutcomeMessage, pt as sendPageCommand, pv as knownRevision, q as DONE, qm as hideOthers, qn as resolveBackgroundCapability, rh as createPopperScope, rm as SelectContent, rn as useSidebarView, rv as parsePublicProfile, s as usePreviewPageDesignRenderState, sh as useFocusGuards, sr as withValueAtPath, st as LeaseDiscardedNoticeView, sy as unsafeAsSiteId, th as Content, tn as useEditorUiStoreInstance, tv as knownSocialPlatformLabels, ty as assertNever$1, u as useSiteChromeCustomizeOptional, u_ as resolveMediaTransformForAspect, uh as useDirection, um as Callout, v as buildPageDesignEditorReadModelForBlocks, vh as Button$1, vp as flowRepeaterGridItems, vt as evaluateVisibility, vv as createEditorRemoveBlockCommand, wa as computeMediaTransformStyle, wm as DialogFooter, wn as deriveEditorValuePublicationState, wp as resolveRepeaterGridColumnsForBreakpoint, wt as hasVisibilityConditions, wv as formatDate, x as pageDesignLookTiles, x_ as asRecord, xh as cva, xm as DialogClose, xn as useStore, xp as planRepeaterGridStartNewRow, xt as getVisibleWhenPredicates, xv as editorBlockCollectionOwnersEqual, y_ as PUBLIC_FILE_FIELD_KINDS, yh as buttonVariants, yp as isRepeaterGridLayoutInvalid, yt as evaluateVisibleWhen, yv as createEditorReorderBlocksCommand, z_ as slugify$1, zh as siteOptionSources, zl as getFeatureCardIconCompletion, zp as editorAdmissionSession, zr as buildNewsletterFormInteractiveIslandProps, zv as resolveBookingBusinessTimeZone } from "./previewAssistantSlot-DSR0IdAw.mjs";
|
|
4
4
|
import { $ as EyeOff, A as Lock, B as ImageUp, C as Palette, G as GripVertical, Gt as err, H as ImageOff, I as Link2, Kt as ok, M as LoaderCircle, O as Maximize2, S as PanelBottom, V as ImagePlus, _ as RotateCcw, at as Clock3, b as Pencil, bt as ArrowUp, c as Trash2, d as Sparkles, et as EllipsisVertical, ft as ChevronRight, gt as Calendar$1, ht as Check, i as Video, it as Clock, m as Settings, mt as ChevronDown, n as X$1, nt as Crop, p as SlidersHorizontal, pt as ChevronLeft, q as FileText, rt as Copy, s as TriangleAlert, t as lucide_react_exports, ut as CircleAlert, vt as Box$1, x as PanelTop, xt as ArrowDown, y as Plus, z as Image } from "./lucide-react-DkZ8fO-G.mjs";
|
|
5
|
-
import { $t as TabsList, B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, F as locationWidgetOverrides, G as getFooterEngagementAuthoringOptions, Gt as DEFAULT_THEME_RESPONSIVE_MODE, H as SiteOptionWidgetProvider, Ht as buildThemeRuntime, J as updateFooterCredit, Jt as Textarea, K as getPublicProfile, L as useSiteEditorAdmission, Q as useMediaEditor, Qt as TabsContent, S as HeaderMenuControls, U as useSiteOptionWidgetContext, Ut as escapeStyleContent, Vt as themeRuntimeScopeProps, W as getFooterComposition, X as footerCreditLine, Xt as Input, Y as updatePublicProfile, Yt as SearchInput, Zt as Tabs, _ as resolvePreviewEditorGuidanceModel, _n as upsertFooterEngagementSection, _t as useField, an as Content$1, at as useImageResolveContextOptional, bn as planFooterArrangement, bt as ThemeScopeCore, ct as BlockContextProvider, dn as normalizeLegacyFooterContentToV1, dt as hasEmptyOption, en as TabsTrigger, f as canInspectSiteStyle, fn as parseFooterEngagementSection, ft as mapCurrentValueForSelect, gn as setFooterSectionSelected, gt as FieldLabelText, h as resolvePreviewDashboardSetupHandoff, hn as resolveFooterSections, ht as FieldFrame, in as Trigger$2, ln as classifyKnownMimeType, lt as useBlockContext, m as buildPreviewDashboardSetupUrl, mn as removeFooterEngagementSection, mt as unmapValueFromSelect, n as SiteChromeSurfaceControls, nn as List, on as Root$2, ot as FormNodeClient, pt as mapOptionValueForSelect, q as updateFooterComposition, rn as Root2$2, rt as NewsletterFormClient, sn as Trigger$1, st as BlockApiProvider, tn as Content$2, u as CustomizeBackgroundControlRows, un as deriveFooterEditorOverview, ut as SelectField, vn as validateFooterComposition, vt as useLinkedInlineTextField, x as useSiteFontStorageUrl, y as resolvePreviewSidebarChromeModel, yn as footerArrangementPolicy, yt as revealEditorElement, z as buildFooterRuntimeViewModel, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-
|
|
5
|
+
import { $t as TabsList, B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, F as locationWidgetOverrides, G as getFooterEngagementAuthoringOptions, Gt as DEFAULT_THEME_RESPONSIVE_MODE, H as SiteOptionWidgetProvider, Ht as buildThemeRuntime, J as updateFooterCredit, Jt as Textarea, K as getPublicProfile, L as useSiteEditorAdmission, Q as useMediaEditor, Qt as TabsContent, S as HeaderMenuControls, U as useSiteOptionWidgetContext, Ut as escapeStyleContent, Vt as themeRuntimeScopeProps, W as getFooterComposition, X as footerCreditLine, Xt as Input, Y as updatePublicProfile, Yt as SearchInput, Zt as Tabs, _ as resolvePreviewEditorGuidanceModel, _n as upsertFooterEngagementSection, _t as useField, an as Content$1, at as useImageResolveContextOptional, bn as planFooterArrangement, bt as ThemeScopeCore, ct as BlockContextProvider, dn as normalizeLegacyFooterContentToV1, dt as hasEmptyOption, en as TabsTrigger, f as canInspectSiteStyle, fn as parseFooterEngagementSection, ft as mapCurrentValueForSelect, gn as setFooterSectionSelected, gt as FieldLabelText, h as resolvePreviewDashboardSetupHandoff, hn as resolveFooterSections, ht as FieldFrame, in as Trigger$2, ln as classifyKnownMimeType, lt as useBlockContext, m as buildPreviewDashboardSetupUrl, mn as removeFooterEngagementSection, mt as unmapValueFromSelect, n as SiteChromeSurfaceControls, nn as List, on as Root$2, ot as FormNodeClient, pt as mapOptionValueForSelect, q as updateFooterComposition, rn as Root2$2, rt as NewsletterFormClient, sn as Trigger$1, st as BlockApiProvider, tn as Content$2, u as CustomizeBackgroundControlRows, un as deriveFooterEditorOverview, ut as SelectField, vn as validateFooterComposition, vt as useLinkedInlineTextField, x as useSiteFontStorageUrl, y as resolvePreviewSidebarChromeModel, yn as footerArrangementPolicy, yt as revealEditorElement, z as buildFooterRuntimeViewModel, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-CQFRP9aM.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-BQU45t-E.mjs";
|
|
7
|
-
import { C as useRichTextEditor, E as InlineTextEditor, F as ScrollableDialogContent, I as ScrollableDialogShell, L as emitMediaCropDebug, N as Switch, O as resolveSdkFooterMode, P as Badge, R as resolveVideoSelectionIntentForMediaField, S as insertOrReplaceRichTextImage, _ as MediaEditor, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementOptionsBody, l as BackgroundPreviewSwatch, m as useSiteColourVariables, o as lookIsAutomatic, p as siteColourCss, s as useArrangementToolbar, t as ArrangementLookNote, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as isSvgMimeType } from "./ArrangementLookControls-
|
|
8
|
-
import { n as TZDate } from "./src-
|
|
7
|
+
import { C as useRichTextEditor, E as InlineTextEditor, F as ScrollableDialogContent, I as ScrollableDialogShell, L as emitMediaCropDebug, N as Switch, O as resolveSdkFooterMode, P as Badge, R as resolveVideoSelectionIntentForMediaField, S as insertOrReplaceRichTextImage, _ as MediaEditor, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementOptionsBody, l as BackgroundPreviewSwatch, m as useSiteColourVariables, o as lookIsAutomatic, p as siteColourCss, s as useArrangementToolbar, t as ArrangementLookNote, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as isSvgMimeType } from "./ArrangementLookControls-kbdqYkWM.mjs";
|
|
8
|
+
import { n as TZDate } from "./src-DzXUmsyK.mjs";
|
|
9
9
|
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CZQ4vkRe.mjs";
|
|
10
|
-
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-
|
|
11
|
-
import { A as TooltipTrigger, C as prepareBlockEditorManifest, D as Tooltip, E as mergeBlockDescriptors, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, P as DropdownMenuSeparator, S as hideThemeV2RawStyleFields, T as getBlockManifestFromSdkConfig, _ as arrangementLookResolution, a as needsSetupMessage, b as blockLookOwnedFieldPaths, d as createStoreBackend, f as isObjectRecord, g as useSdkConfig, h as SdkConfigProvider, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor, m as createFieldObservation, n as useBlockCustomizeControls, o as needsSetupOf, p as isRecord$1, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup, t as resolveBlockManifest, u as arrangementLookNameFor, v as arrangementOwnedFieldIds, w as showRawStyleFields, x as lookNotShownFieldIds, y as arrangementVisibilityValues } from "./useBlockCustomizeControls-
|
|
10
|
+
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-Cdx3kAGm.mjs";
|
|
11
|
+
import { A as TooltipTrigger, C as prepareBlockEditorManifest, D as Tooltip, E as mergeBlockDescriptors, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, P as DropdownMenuSeparator, S as hideThemeV2RawStyleFields, T as getBlockManifestFromSdkConfig, _ as arrangementLookResolution, a as needsSetupMessage, b as blockLookOwnedFieldPaths, d as createStoreBackend, f as isObjectRecord, g as useSdkConfig, h as SdkConfigProvider, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor, m as createFieldObservation, n as useBlockCustomizeControls, o as needsSetupOf, p as isRecord$1, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup, t as resolveBlockManifest, u as arrangementLookNameFor, v as arrangementOwnedFieldIds, w as showRawStyleFields, x as lookNotShownFieldIds, y as arrangementVisibilityValues } from "./useBlockCustomizeControls-ZrWdhcB6.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";
|
|
@@ -8370,6 +8370,20 @@ function normalizeLocalDisabled$1(localDisabled, globalDisabled) {
|
|
|
8370
8370
|
}
|
|
8371
8371
|
KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left;
|
|
8372
8372
|
//#endregion
|
|
8373
|
+
//#region ../editor-blocks/src/block-editor/blockReveals.ts
|
|
8374
|
+
/**
|
|
8375
|
+
* The reveals not yet shown, and the section to scroll to: the first section of
|
|
8376
|
+
* the newest one. A reveal with no sections never counts as shown.
|
|
8377
|
+
*/
|
|
8378
|
+
function decideBlockReveals(reveals, shown) {
|
|
8379
|
+
const fresh = reveals.filter((reveal) => reveal.blockIds.length > 0 && !shown.has(reveal.key));
|
|
8380
|
+
return {
|
|
8381
|
+
open: fresh.flatMap((reveal) => reveal.blockIds),
|
|
8382
|
+
focus: fresh.at(-1)?.blockIds[0] ?? null,
|
|
8383
|
+
shown: fresh.map((reveal) => reveal.key)
|
|
8384
|
+
};
|
|
8385
|
+
}
|
|
8386
|
+
//#endregion
|
|
8373
8387
|
//#region ../editor-blocks/src/block-editor/categoryHelpers.ts
|
|
8374
8388
|
const PICKER_CATEGORIES = [
|
|
8375
8389
|
"text-and-images",
|
|
@@ -24205,17 +24219,23 @@ function BlockListHeading({ layout, canCreate, onAdd }) {
|
|
|
24205
24219
|
}
|
|
24206
24220
|
/**
|
|
24207
24221
|
* Where a new block can go. Cards insert between blocks; the outline also
|
|
24208
|
-
* offers the end of the list, since its footer row closes the list.
|
|
24222
|
+
* offers the end of the list, since its footer row closes the list. Between
|
|
24223
|
+
* cards the divider is also the gap, so it keeps its height while adding isn't
|
|
24224
|
+
* possible, including while the blocks you can add are still loading.
|
|
24209
24225
|
*/
|
|
24210
|
-
function BlockListInsert({ layout, position, count, onOpen }) {
|
|
24211
|
-
if (layout.kind === "outline") return /* @__PURE__ */ jsx(EditorOutlineInsertPoint, {
|
|
24226
|
+
function BlockListInsert({ layout, canCreate, position, count, onOpen }) {
|
|
24227
|
+
if (layout.kind === "outline") return canCreate ? /* @__PURE__ */ jsx(EditorOutlineInsertPoint, {
|
|
24212
24228
|
label: layout.copy.insert,
|
|
24213
24229
|
onSelect: () => onOpen(position)
|
|
24214
|
-
});
|
|
24215
|
-
|
|
24230
|
+
}) : null;
|
|
24231
|
+
if (position >= count) return null;
|
|
24232
|
+
return canCreate ? /* @__PURE__ */ jsx(AddBlockDivider, {
|
|
24216
24233
|
onOpen,
|
|
24217
24234
|
position
|
|
24218
|
-
}) :
|
|
24235
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
24236
|
+
"aria-hidden": "true",
|
|
24237
|
+
className: "h-8"
|
|
24238
|
+
});
|
|
24219
24239
|
}
|
|
24220
24240
|
function blockListClassNames(layout) {
|
|
24221
24241
|
return layout.kind === "outline" ? {
|
|
@@ -24295,7 +24315,8 @@ function getGeneratedIconSetErrorMessage(error) {
|
|
|
24295
24315
|
const message = getApiRequestErrorMessage(error);
|
|
24296
24316
|
return message === "Internal server error" || /^Request to .+ failed with status \d+$/u.test(message) ? GENERATED_ICON_SET_FRIENDLY_ERROR : message;
|
|
24297
24317
|
}
|
|
24298
|
-
const
|
|
24318
|
+
const noReveals = [];
|
|
24319
|
+
const BlockEditor = forwardRef(function BlockEditor({ siteId, displayContext, dashboardBaseUrl, renderPreviewLink, owner, source, collectionReads, onStaleRead, recoveryConflictBlockIds = [], reveals = noReveals, apiClient, uiStore, enableReordering = true, enableCreation = true, enableDeletion = true, onBlockSave, onBlocksChange, onStructuralRevisionChange, theme, widgetOverrides, headerLeftSlot, hideThemeV2RawStyleFields = false, pageDesignEditorModel = null, sdkConfig = null, customBlocks = [], allowedBlockKinds = null, emptyUnavailableMessage = "No blocks available for this page.", creationCopy, initialCollapsed = true, reorderControlMode = DEFAULT_REORDER_CONTROL_MODE, actionPresentation = DEFAULT_BLOCK_ACTION_PRESENTATION, layout = CARDS_BLOCK_LIST_LAYOUT }, ref) {
|
|
24299
24320
|
const canonicalBlocks = useStoreSelector(uiStore, (state) => state.structure.getList());
|
|
24300
24321
|
const blockList = useMemo(() => [...canonicalBlocks], [canonicalBlocks]);
|
|
24301
24322
|
const setBlockList = useCallback((next) => {
|
|
@@ -24612,7 +24633,8 @@ const BlockEditor = forwardRef(function BlockEditor({ siteId, displayContext, da
|
|
|
24612
24633
|
window.setTimeout(() => {
|
|
24613
24634
|
revealEditorElement(blockRefs.current.get(focusedBlockId) ?? null, {
|
|
24614
24635
|
behavior: "smooth",
|
|
24615
|
-
block: "center"
|
|
24636
|
+
block: "center",
|
|
24637
|
+
scrollDocument: layout.kind === "cards"
|
|
24616
24638
|
});
|
|
24617
24639
|
}, 100);
|
|
24618
24640
|
if (highlightTimerRef.current !== null) window.clearTimeout(highlightTimerRef.current);
|
|
@@ -24623,21 +24645,21 @@ const BlockEditor = forwardRef(function BlockEditor({ siteId, displayContext, da
|
|
|
24623
24645
|
}, [
|
|
24624
24646
|
focusRequest?.requestId,
|
|
24625
24647
|
focusRequest?.blockId,
|
|
24648
|
+
layout.kind,
|
|
24626
24649
|
setCollapsed,
|
|
24627
24650
|
uiStore
|
|
24628
24651
|
]);
|
|
24652
|
+
const revealedKeys = useRef(/* @__PURE__ */ new Set());
|
|
24629
24653
|
useEffect(() => {
|
|
24630
|
-
|
|
24631
|
-
|
|
24632
|
-
|
|
24633
|
-
if (
|
|
24634
|
-
uiStore.getState().requestFocus({
|
|
24654
|
+
const decision = decideBlockReveals(reveals, revealedKeys.current);
|
|
24655
|
+
decision.shown.forEach((key) => revealedKeys.current.add(key));
|
|
24656
|
+
decision.open.forEach((blockId) => setCollapsed(blockId, false));
|
|
24657
|
+
if (decision.focus) uiStore.getState().requestFocus({
|
|
24635
24658
|
kind: "block",
|
|
24636
|
-
blockId: unsafeAsEditorBlockId(
|
|
24659
|
+
blockId: unsafeAsEditorBlockId(decision.focus)
|
|
24637
24660
|
});
|
|
24638
24661
|
}, [
|
|
24639
|
-
|
|
24640
|
-
recoveryConflictReviewRequestId,
|
|
24662
|
+
reveals,
|
|
24641
24663
|
setCollapsed,
|
|
24642
24664
|
uiStore
|
|
24643
24665
|
]);
|
|
@@ -24716,12 +24738,13 @@ const BlockEditor = forwardRef(function BlockEditor({ siteId, displayContext, da
|
|
|
24716
24738
|
strategy: verticalListSortingStrategy$1,
|
|
24717
24739
|
children: /* @__PURE__ */ jsxs("div", {
|
|
24718
24740
|
className: listClassNames.list,
|
|
24719
|
-
children: [
|
|
24741
|
+
children: [/* @__PURE__ */ jsx(BlockListInsert, {
|
|
24720
24742
|
layout,
|
|
24743
|
+
canCreate: canCreateBlocks,
|
|
24721
24744
|
position: 0,
|
|
24722
24745
|
count: blockList.length,
|
|
24723
24746
|
onOpen: openBlockPicker
|
|
24724
|
-
})
|
|
24747
|
+
}), blockList.map((block, index) => {
|
|
24725
24748
|
const focusSignal = focusRequest && block.id && focusRequest.blockId === unsafeAsEditorBlockId(block.id) ? focusRequest : null;
|
|
24726
24749
|
const collapsed = isCollapsed(block.id);
|
|
24727
24750
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -24772,12 +24795,13 @@ const BlockEditor = forwardRef(function BlockEditor({ siteId, displayContext, da
|
|
|
24772
24795
|
onGenerateIconSet: generateFeatureCardIconSet,
|
|
24773
24796
|
layout,
|
|
24774
24797
|
selected: isOutlineSelected(block.id, selectedBlockId)
|
|
24775
|
-
}),
|
|
24798
|
+
}), /* @__PURE__ */ jsx(BlockListInsert, {
|
|
24776
24799
|
layout,
|
|
24800
|
+
canCreate: canCreateBlocks,
|
|
24777
24801
|
position: index + 1,
|
|
24778
24802
|
count: blockList.length,
|
|
24779
24803
|
onOpen: openBlockPicker
|
|
24780
|
-
})
|
|
24804
|
+
})]
|
|
24781
24805
|
}, block.id ?? index);
|
|
24782
24806
|
})]
|
|
24783
24807
|
})
|
|
@@ -28010,6 +28034,11 @@ function getSiteOptionSource(config) {
|
|
|
28010
28034
|
const trimmed = raw.trim();
|
|
28011
28035
|
return siteOptionSources.includes(trimmed) ? trimmed : null;
|
|
28012
28036
|
}
|
|
28037
|
+
/** What the picker offers: everything except retired items, unless one is already chosen. */
|
|
28038
|
+
function offeredSiteOptionItems(items, value) {
|
|
28039
|
+
const selected = new Set(normalizeSiteOptionMultiValue(value));
|
|
28040
|
+
return items.some((item) => item.retired) ? items.filter((item) => !item.retired || selected.has(item.value)) : items;
|
|
28041
|
+
}
|
|
28013
28042
|
//#endregion
|
|
28014
28043
|
//#region ../editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.tsx
|
|
28015
28044
|
/** The Combobox id standing in for the empty value's named default option. */
|
|
@@ -28047,7 +28076,7 @@ function SiteOptionPickerField({ path, backend, config }) {
|
|
|
28047
28076
|
siteId,
|
|
28048
28077
|
source
|
|
28049
28078
|
]);
|
|
28050
|
-
const { options:
|
|
28079
|
+
const { options: loadedItems, state: loadState, isLoading, errorMessage: loadError } = useAsyncPickerOptions({
|
|
28051
28080
|
enabled: Boolean(adapter && siteId && source),
|
|
28052
28081
|
loadOptions: loadItems
|
|
28053
28082
|
});
|
|
@@ -28060,6 +28089,7 @@ function SiteOptionPickerField({ path, backend, config }) {
|
|
|
28060
28089
|
children: "This field type is not supported yet."
|
|
28061
28090
|
})
|
|
28062
28091
|
});
|
|
28092
|
+
const items = offeredSiteOptionItems(loadedItems, value);
|
|
28063
28093
|
const manageLink = adapter.renderManageLink?.({
|
|
28064
28094
|
siteId,
|
|
28065
28095
|
source
|
|
@@ -28257,10 +28287,14 @@ function mapEventsToSiteOptionItems(events) {
|
|
|
28257
28287
|
})));
|
|
28258
28288
|
}
|
|
28259
28289
|
function mapVenuesToSiteOptionItems(payload) {
|
|
28260
|
-
return payload.map((venue) =>
|
|
28290
|
+
return payload.map((venue) => venue.archivedAt === null ? {
|
|
28261
28291
|
value: venue.id,
|
|
28262
28292
|
label: venue.title
|
|
28263
|
-
}
|
|
28293
|
+
} : {
|
|
28294
|
+
value: venue.id,
|
|
28295
|
+
label: `${venue.title} (archived)`,
|
|
28296
|
+
retired: true
|
|
28297
|
+
});
|
|
28264
28298
|
}
|
|
28265
28299
|
function mapStaffMembersToSiteOptionItems(payload) {
|
|
28266
28300
|
return payload.resources.map((staffMember) => ({
|
|
@@ -36842,6 +36876,7 @@ function PageSettingsView({ ownerKind, contentTypeKey, entry, statusMessage, add
|
|
|
36842
36876
|
dateContext: civilPickerDisplay.dateContext,
|
|
36843
36877
|
manifest: identity,
|
|
36844
36878
|
backend,
|
|
36879
|
+
widgetOverrides: previewWidgetOverrides,
|
|
36845
36880
|
plain: true,
|
|
36846
36881
|
className: "space-y-4"
|
|
36847
36882
|
}) : null,
|
|
@@ -36860,6 +36895,7 @@ function PageSettingsView({ ownerKind, contentTypeKey, entry, statusMessage, add
|
|
|
36860
36895
|
dateContext: civilPickerDisplay.dateContext,
|
|
36861
36896
|
manifest: search,
|
|
36862
36897
|
backend,
|
|
36898
|
+
widgetOverrides: previewWidgetOverrides,
|
|
36863
36899
|
plain: true,
|
|
36864
36900
|
className: "space-y-4"
|
|
36865
36901
|
})
|
|
@@ -37070,16 +37106,9 @@ function SidebarTaskView({ props, view, requestId, uiStoreForBlockEditor, linked
|
|
|
37070
37106
|
})
|
|
37071
37107
|
});
|
|
37072
37108
|
case "siteStyle": return /* @__PURE__ */ jsx(SidebarSiteStyle, { props });
|
|
37073
|
-
case "pageSettings": return /* @__PURE__ */ jsx(
|
|
37074
|
-
|
|
37075
|
-
|
|
37076
|
-
entry: controller.entry,
|
|
37077
|
-
statusMessage: controller.toolbar.publishedMessage ?? null,
|
|
37078
|
-
address: {
|
|
37079
|
-
siteId: props.siteId,
|
|
37080
|
-
apiClient: controller.apiClient,
|
|
37081
|
-
target: previewAddressTarget(props)
|
|
37082
|
-
}
|
|
37109
|
+
case "pageSettings": return /* @__PURE__ */ jsx(SidebarPageSettings, {
|
|
37110
|
+
props,
|
|
37111
|
+
controller
|
|
37083
37112
|
});
|
|
37084
37113
|
case "chrome": return view.target === "header" ? /* @__PURE__ */ jsx(SiteChromeSurfaceControls, { surface: "header" }) : /* @__PURE__ */ jsx(PreviewFooterEditorPanel, {
|
|
37085
37114
|
...props,
|
|
@@ -37114,6 +37143,27 @@ function previewAddressTarget(props) {
|
|
|
37114
37143
|
targetId: props.pageId
|
|
37115
37144
|
} : null;
|
|
37116
37145
|
}
|
|
37146
|
+
/** The social image picker needs the media editor the form provider sets up. */
|
|
37147
|
+
function SidebarPageSettings({ props, controller }) {
|
|
37148
|
+
return /* @__PURE__ */ jsx(PreviewFormProvider, {
|
|
37149
|
+
siteId: props.siteId,
|
|
37150
|
+
theme: props.theme ?? null,
|
|
37151
|
+
previewClient: props.apiClient,
|
|
37152
|
+
sdkConfig: props.sdkConfig,
|
|
37153
|
+
bookingOfferingPresets: props.bookingOfferingPresets,
|
|
37154
|
+
children: /* @__PURE__ */ jsx(PageSettingsView, {
|
|
37155
|
+
ownerKind: props.entryData ? "content" : "page",
|
|
37156
|
+
contentTypeKey: props.entryData?.type,
|
|
37157
|
+
entry: controller.entry,
|
|
37158
|
+
statusMessage: controller.toolbar.publishedMessage ?? null,
|
|
37159
|
+
address: {
|
|
37160
|
+
siteId: props.siteId,
|
|
37161
|
+
apiClient: controller.apiClient,
|
|
37162
|
+
target: previewAddressTarget(props)
|
|
37163
|
+
}
|
|
37164
|
+
})
|
|
37165
|
+
});
|
|
37166
|
+
}
|
|
37117
37167
|
function SidebarSiteStyle({ props }) {
|
|
37118
37168
|
return canInspectSiteStyle(props.siteStyleAccess ?? { kind: "hidden" }) ? /* @__PURE__ */ jsx(StyleConfigurator, {
|
|
37119
37169
|
siteId: props.siteId,
|
package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-yyD-ZREP.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Cm as DialogDescription, Eh as cn, Em as DialogTitle, En as editorAuthoredBlockDocument, G as useEntryEditorController, Ip as editorAdmissionIsOpen, Kt as PREVIEW_CHROME_Z_INDEX, N_ as authoredValuesEqual, Nu as pageTemplateFromEntry, Q as useSessionJournalHistory, Sm as DialogContent, Sv as unsafeAsEditorBlockId, Tm as DialogHeader, V as usePreviewAuth, X as useServerRefresh, Xp as unwrapResponse, Z as useSessionJournal, _r as PUBLISH_READINESS_COPY, am as SelectTrigger, bm as Dialog, en as useEditorUiStore, fv as displayedValues, im as SelectItem, jp as resolveBlockTitle, mn as canDiscardDraft, n as usePreviewAssistantSlot, nm as Select, om as SelectValue, ot as EditorWriteSurface, rm as SelectContent, tn as useEditorUiStoreInstance, vh as Button, vr as publishReadinessWarning, wm as DialogFooter, xh as cva, yr as readinessFactsFromPayload } from "./previewAssistantSlot-DSR0IdAw.mjs";
|
|
3
3
|
import { C as Palette, E as Monitor, M as LoaderCircle, Q as Eye, b as Pencil, et as EllipsisVertical, f as Smartphone, l as Tablet, mt as ChevronDown, o as Undo2, s as TriangleAlert, v as Redo2 } from "./lucide-react-DkZ8fO-G.mjs";
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-
|
|
5
|
-
import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, i as needsSetupAsk, j as DropdownMenu, t as resolveBlockManifest } from "./useBlockCustomizeControls-
|
|
6
|
-
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, f as useEditor, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as readPreviewThemeCookie, p as FixedBottomSurface, r as applyPreviewChromeSurfaceToElement, t as PREVIEW_CHROME_PORTAL_CLASS_NAME } from "./previewChromeSurface-
|
|
7
|
-
import { t as useOpenBlockForSetup } from "./useOpenBlockForSetup-
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-Cdx3kAGm.mjs";
|
|
5
|
+
import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, i as needsSetupAsk, j as DropdownMenu, t as resolveBlockManifest } from "./useBlockCustomizeControls-ZrWdhcB6.mjs";
|
|
6
|
+
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, f as useEditor, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as readPreviewThemeCookie, p as FixedBottomSurface, r as applyPreviewChromeSurfaceToElement, t as PREVIEW_CHROME_PORTAL_CLASS_NAME } from "./previewChromeSurface-uSnVzeNs.mjs";
|
|
7
|
+
import { t as useOpenBlockForSetup } from "./useOpenBlockForSetup-CK-GWb9k.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BC0V7iAR.mjs";
|
|
3
|
-
import { B as renewPreviewSession,
|
|
3
|
+
import { $l as planSiteOverlayHeaderClearance, B as renewPreviewSession, Bp as observeEditorAdmission, Cm as DialogDescription, E as PreviewRenderObservationsProvider, Eh as cn, Em as DialogTitle, Fa as buildResolveImageUrlContext, G as useEntryEditorController, Gt as ApiRequestError, H as usePreviewToken, Hp as API_ENDPOINTS, Jl as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Jt as createSnapshotFromPageRecord, L as createGuardedPreviewApiClient, Lp as editorAdmissionNotice, Lt as blocksKeys, Mh as canEditorWrite, N_ as authoredValuesEqual, Oh as baselineRevisionOf, R as initPreviewAuth, Sm as DialogContent, Sv as unsafeAsEditorBlockId, Tm as DialogHeader, Tn as unsafeAsLinkedContentEntryId, U as EntryControllerProvider, V as usePreviewAuth, Vp as OPERATION_ID_HEADER, X as useServerRefresh, Xl as SITE_STICKY_CHROME_HEIGHT_FALLBACK, Xp as unwrapResponse, Yl as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, Zl as measureSiteStickyChromeHeightPx, __ as indexRenderableMediaAssets, _n as remoteDraftValues, a as PreviewPageDesignEditorStateProvider, at as EditLeaseModal, bm as Dialog, bn as resolveRenderedValues, cn as parseStoredSidebarWidth, dm as CalloutDescription, dv as parseEditLeaseScope, en as useEditorUiStore, et as savedContentReceipt, eu as siteTopChromeMeasurementTargets, f as PreviewThemeJournalProvider, g as previewThemeBase, g_ as renderableMediaAssetSchema$1, gn as planLinkedSaveHandoverRetention, gu as planSiteChromePlacement, h_ as buildRenderableMediaAssetIndex, hn as activeLinkedSaveHandover, i as usePreviewSidebarNavigation, it as EditLeaseDiscardedNotice, kh as isEdited, l as SiteChromeCustomizeProvider, lt as getEditorClientId, m as usePreviewThemeSourceOptional, nn as useOptionalEditorUiStoreInstance, nt as useRetentionTicks, op as assertNever$1, ot as EditorWriteSurface, p as usePreviewThemeSource, qt as createRoutingHelpers, r as PreviewSidebarBootstrap, rt as VIEWING_PARTICIPATION, sn as SIDEBAR_WIDTH, t as PreviewAssistantSlotProvider, tn as useEditorUiStoreInstance, tt as savedRouteReceipt, ty as assertNever$2, um as Callout, vh as Button, vn as renderSourceFor, wm as DialogFooter, z as registerPreviewRenewalFetcher, zp as editorAdmissionSession } from "./previewAssistantSlot-DSR0IdAw.mjs";
|
|
4
4
|
import { G as GripVertical } from "./lucide-react-DkZ8fO-G.mjs";
|
|
5
|
-
import { $t as TabsList, E as usePreviewCompiledTheme, Gt as DEFAULT_THEME_RESPONSIVE_MODE, I as SessionJournalHost, Kt as getResponsiveScopeSpec, Mt as LINKED_CONTENT_ENTRY_META_KEY, N as mergeResolvedDataContext, Pt as getLinkedContentEntryMeta, Qt as TabsContent, R as renderSiteChromeBlock, T as PreviewThemeRenderingProvider, Ut as escapeStyleContent, V as createEditorApiClientFactory, Vt as themeRuntimeScopeProps, Z as MediaEditorContextProvider, Zt as Tabs, a as PreviewChromeLayerProvider, b as SiteFontStorageProvider, bt as ThemeScopeCore, c as PREVIEW_SITE_BANNER_ATTRIBUTE, en as TabsTrigger, et as useApiMediaUploader, f as canInspectSiteStyle, g as sanitizeDashboardPath, h as resolvePreviewDashboardSetupHandoff, it as ImageResolveContextProvider, m as buildPreviewDashboardSetupUrl, p as resolveSiteStyleAccess, pn as parseFooterModuleId, qt as Toaster, st as BlockApiProvider, t as SiteChromeCustomizeButton, v as resolvePreviewSetupBannerModel, w as PreviewCompiledThemeProvider, xt as containerResponsiveThemeCss, yt as revealEditorElement, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-
|
|
5
|
+
import { $t as TabsList, E as usePreviewCompiledTheme, Gt as DEFAULT_THEME_RESPONSIVE_MODE, I as SessionJournalHost, Kt as getResponsiveScopeSpec, Mt as LINKED_CONTENT_ENTRY_META_KEY, N as mergeResolvedDataContext, Pt as getLinkedContentEntryMeta, Qt as TabsContent, R as renderSiteChromeBlock, T as PreviewThemeRenderingProvider, Ut as escapeStyleContent, V as createEditorApiClientFactory, Vt as themeRuntimeScopeProps, Z as MediaEditorContextProvider, Zt as Tabs, a as PreviewChromeLayerProvider, b as SiteFontStorageProvider, bt as ThemeScopeCore, c as PREVIEW_SITE_BANNER_ATTRIBUTE, en as TabsTrigger, et as useApiMediaUploader, f as canInspectSiteStyle, g as sanitizeDashboardPath, h as resolvePreviewDashboardSetupHandoff, it as ImageResolveContextProvider, m as buildPreviewDashboardSetupUrl, p as resolveSiteStyleAccess, pn as parseFooterModuleId, qt as Toaster, st as BlockApiProvider, t as SiteChromeCustomizeButton, v as resolvePreviewSetupBannerModel, w as PreviewCompiledThemeProvider, xt as containerResponsiveThemeCss, yt as revealEditorElement, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-CQFRP9aM.mjs";
|
|
6
6
|
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CZQ4vkRe.mjs";
|
|
7
|
-
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as readPreviewThemeCookie, p as FixedBottomSurface, s as subscribePreviewThemeCookie, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeSurface-
|
|
7
|
+
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as readPreviewThemeCookie, p as FixedBottomSurface, s as subscribePreviewThemeCookie, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeSurface-uSnVzeNs.mjs";
|
|
8
8
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -4197,10 +4197,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4199
4199
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4200
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4200
|
+
return { default: (await import("./PreviewEditorSidebar-DI_LhsMQ.mjs")).PreviewEditorSidebar };
|
|
4201
4201
|
});
|
|
4202
4202
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4203
|
-
return { default: (await import("./PreviewEditorUI-
|
|
4203
|
+
return { default: (await import("./PreviewEditorUI-yyD-ZREP.mjs")).PreviewEditorUI };
|
|
4204
4204
|
});
|
|
4205
4205
|
function renderShellProviders(input) {
|
|
4206
4206
|
if (!input.themeRoles) return input.content;
|