@riverbankcms/sdk 0.174.0 → 0.175.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-GqVX3I8E.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-BhUH31M-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index--39uLjrr.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-Bq-488M7.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-DYlfdT1O.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-3GzargmS.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-DYsP4k6S.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DdEi2iXd.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-Be1E-H-V.d.ts → request-BT8i_vH-.d.ts} +2070 -503
- package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-CVLYWcoI.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +13 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +3 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +2 -1
- package/dist/_dts/{types-Bm5_3VEd.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-5MeDI1w8.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-CVoCc_Ia.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +664 -362
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
- package/dist/client/{Page--xJ23nA5.mjs → Page-CWN_8cLZ.mjs} +736 -1667
- package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-C7RJBOW3.mjs} +37 -249
- package/dist/client/{accordion-BQtTkDN8.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-C-gFwhnO.mjs} +3 -29
- package/dist/client/{carousel-CPsW-FPh.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-CwElmocm.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-CfMgqY8H.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +113 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-q1sA4Cj-.mjs → course-DHmeQAvq.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
- package/dist/client/display-DMqotaGU.mjs +11797 -0
- package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-CAdcpnLc.mjs} +295 -188
- package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-_14atrj8.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-DfAB-llc.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-DN-I9_qC.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-DMrsN4B4.mjs +28 -0
- package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
- package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
- package/dist/client/{headerSection-Dces54pb.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-D8MW2b0e.mjs → lookSurfaces-BDZLALxj.mjs} +3084 -12938
- package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-Df5qDD0z.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-B1EEZkcr.mjs} +311 -262
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-gteEpeO5.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-CJAINJr3.mjs} +118 -39
- package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DBTIFWTb.mjs} +11 -148
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-CvlTplao.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-CxUpgcM6.mjs → view-Cw4EmEPv.mjs} +100 -32
- package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +32 -29
- package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-B61mZd81.mjs} +4981 -3275
- package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-BZDIC-fA.mjs} +529 -238
- package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +25 -5
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-0gSlK9S0.mjs} +87 -12
- package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-CQg2lzZn.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-aYRTVneD.mjs → client-CgghATBm.mjs} +112 -20
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-CaH018pK.mjs} +129 -12
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-Cuos4Xcd.mjs} +105 -357
- package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-JxlV8_Bo.mjs} +1707 -1811
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-34rkAfaU.mjs → registry-cQ9N5W-n.mjs} +21091 -20209
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D7VeoWgr.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CLVKoJrX.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-HVfdvBJ0.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +361 -57
- package/package.json +1 -1
- package/dist/client/bookability-CE637yDE.mjs +0 -17
- package/dist/client/useDiscountApply-BZU5DWZQ.mjs +0 -199
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $ as useFooterComposerState, $a as getGeneratedBlockIconStyleState, $c as
|
|
3
|
+
import { $ as useFooterComposerState, $a as getGeneratedBlockIconStyleState, $c as buttonVariants, $i as getFeatureCardIconCompletion, $l as asRecord, $n as readSliderFieldUiConfig, $o as buildFontPreviewUrl, $s as DialogHeader, $t as listEntryPageContentSlots, $u as parseBookingLocalDate, A as usePreviewJoinOutcome, An as lifecycleOutcomeMessage, At as toRoutableLinkPayload, Au as knownSocialPlatforms, Bc as FocusScope, Bn as withoutServerVersions, Bs as unwrapResponse, Bt as derivePromotedFieldPlan, Bu as knownRevision, C as pageDesignLookTiles, Ci as resolveImageUrlWithContext, Cl as updateButtonStyleHoverPreference, Cn as recoveryConflictCopy, Co as DEFAULT_THEME_RESPONSIVE_MODE, Cs as planRepeaterGridStartNewRow, Cu as mailingListTargetingChoiceIds, Dc as hideOthers, Di as resolveMediaSlotContract, Ds as resolveBlockTitle, Dt as sendPageCommand, Du as parseMailchimpInterestId, Ei as resolveMediaSlot, Es as resolveRepeaterGridColumnsForBreakpoint, Eu as parseMailchimpAudienceId, F as lookTilePosition, Fc as Content$1, Fi as buildResolveImageUrlContext, Fl as paletteValueKey, Fo as getHeaderLayout, Fr as siblingPath$2, Fs as OPERATION_ID_HEADER, Ft as NewsletterFormClient, Gc as createCollection, Gi as planOfferingPreviewCardSelection, Gl as mediaSchema, Gn as createManifestFormAdapter, Gs as Callout, Gt as hasVisibilityConditions, Gu as createEditorRemoveBlockCommand, Hc as DismissableLayer, Hi as isOfferingsPreviewSourceKey, Hl as resolveMediaTransformForAspect, Hs as sidebarReturnView, Ht as evaluateVisibility, Hu as syncStateOf, I as lookTilesFor, Ic as Root2$1, Io as getHeaderStyle, Ir as withValueAtPath, J as footerLayoutSelection, Jc as createContextScope, Ji as buildThemeDataAttrs, Jn as getFieldDefault, Js as Dialog, Jt as createBlock, Ju as editorBlockCollectionOwnersEqual, Ka as admitLayoutGridForPlan, Kc as useControllableState, Kl as runtimeMediaSchema, Kn as createManifestValidation, Ko as offeredSiteStyles, Ks as CalloutDescription, Kt as isNonEmptyValue, Ku as createEditorReorderBlocksCommand, La as BLOCK_BUTTON_ROLE_OPTIONS, Lc as createPopperScope, Lo as concretePaletteFromTheme, Lt as useImageResolveContextOptional, M as usePreviewRenderReadiness, Mc as Portal$1, Mt as updateFooterComposition, Mu as publicProfileWeekdays, Nc as Anchor, Nt as footerCreditLine, Nu as publishedContactDetails, Ot as missingReceiptError, Ou as parseNewsletterListId, Pc as Arrow$1, Pr as getAtPath, Q as useFooterAuthoringOptional, Qa as getBlockIconSemanticId, Qc as Button$1, Qi as createFeatureCardIconKey, Ql as mediaIdentifierSchema, Qn as readNumberFieldUiConfig, Qo as getGradientPreset, Qs as DialogFooter, Qt as isSurfaceSlotBlockTarget, Qu as formatDateTime, R as selectedLookTile, Ra as isBlockButtonRole, Rc as useSize, Rl as isRotationDimensionSwap, Ro as concretePaletteToTheme, Rt as FormNodeClient, Si as resolveImageSourceSetWithContext, Sl as resolveButtonStyleSelection, Sn as useSidebarView, Ss as normalizeRepeaterGridSpan, Su as DEFAULT_MAILING_LIST_TARGETING, Tl as buttonStyleSelectionKey, Tn as unfinishedBlockCopy, To as resolveVisiblePromotedFieldPathsForEditorBlock, Ts as resolveRepeaterGridBreakpointForWidth, Tt as LeaseNoticeButtons, Tu as parseBrevoListId, U as usePreviewAuth, Ui as normalizeOfferingsPreviewGroupOrder, Ul as getDirectImageUrlForMediaAsset, Ut as getFieldIntent, Uu as valueStatus, Vc as useFocusGuards, Vi as inferLegacyOfferingsPreviewGroupOrder, Vl as parseAspectRatioValue, Vn as deriveEditorValuePublicationState, Vo as defaultPolicyPageFlowPresetId, Vt as collectVisibleWhenWatchPaths, Vu as pristineValueSync, Wc as useDirection, Wn as initialBlockDraftValues, Wo as getCuratedSiteStyle, Wt as getWidgetKey, Wu as createEditorInsertBlockCommand, X as resolveFooterEngagementPreview, Xc as Primitive, Xi as themeRuntimeScopeProps, Xn as normalizeFieldForCanonicalValidation, Xo as gradientToCss, Xs as DialogContent, Xt as deleteBlock, Xu as unsafeAsEditorBlockValues, Y as resolveFooterEngagementAuthoringState, Ya as isRichTextDoc, Yc as composeEventHandlers, Yn as getRepeaterItemDefault, Ys as DialogClose, Yt as createSlotBlock, Yu as unsafeAsEditorBlockId, Z as FooterComposerProvider, Za as sanitizeHref, Zi as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Zl as PUBLIC_FILE_FIELD_KINDS, Zn as getGroupChildFields, Zo as GRADIENT_PRESETS, Zs as DialogDescription$1, Zt as deleteSlotBlock, Zu as formatDate, _c as usePortalContainer, _i as writeEventSelectionChips, _l as resolveRepeaterGridSpanFieldId, _n as resolveContentTitle, _s as planRepeaterGridSpanChange, _u as resolveFooterSections, ad as parseMediaAssetId, al as useComposedRefs, ao as coerceInlineTextWithFallback, as as sectionTransitionFamilies, at as readFooterEngagementDraft, b as buildPageDesignEditorReadModelForBlocks, bl as buttonStyleSelectionParameterValue, bn as useEditorUiStoreInstance, bo as buildThemeRuntime, bs as flowRepeaterGridItems, bu as planFooterLayout, cr as planBackgroundTransition, cu as slugify$1, d as cycleSiteChromeSelectionId, dc as Content, di as EVENT_SELECTION_SCOPE_OPTIONS, dl as readLinkedEntryLease, ds as appearancePresets, dt as DONE, du as resolveMailingListDefaultDestination, ea as parseFeatureCardGeneratedIconSizePx, ec as DialogTitle$1, ed as resolveBookingBusinessTimeZone, en as listPageSurfaceContentSlots, eo as parseBlockIconValue, fc as Root$2, fi as EVENT_SELECTION_TYPE_OPTIONS, fl as canEditorWrite, ft as runHeldLifecycle, fu as mailingListProviderName, ga as buildFormInteractiveIslandProps, gi as toggleEventType, gl as resolveRepeaterGridRowFieldId, gn as resolvePageRouteSlug, gs as buildRepeaterGridDropTargets, hi as readEventSelectionChips, hl as resolveRepeaterGridColumnFieldId, hn as deriveRouteMetadataPresentation, ho as plainTextToInlineText, hs as planLayoutGridColumnEdit, hu as parseFooterCompositionV1, i as usePreviewSidebarNavigation, id as assertNever$1, in as blocksKeys, ir as imagePoolForOverride, is as defaultSectionTransitionVariantForFamily, it as footerPartKey, jc as Presence, jt as publishContentEntry, ju as parsePublicProfile, ko as sectionPhotoPresence, kt as footerMenuNavigationFacts, ku as knownSocialPlatformLabels, lc as DialogTitle, ld as parseSiteId, ll as isEdited, lr as rankBackgroundImagePoolItems, lt as useEntryController, mi as chooseScheduleScope, ml as isAcceptedRepeaterGridSpan, mn as routeLifecycleContext, ms as isInternalResolvedLinkValue, mu as normalizeLegacyFooterContentToV1, n as usePreviewAssistantSlot, na as suggestSemanticIconForFeatureCard, nd as parseUtcIsoDateTimeString, ni as getBlockDefinition, nl as createSlot, nn as reorderSlotBlocks, no as parseGeneratedIconSetId, nt as footerHeaderStatus, nu as asAppearancePresetId, o as usePreviewPageDesignEditorState, oc as DialogDescription, ol as cn, on as getDashboardUrl, or as parseBackgroundOverrideFromContent, os as sectionTransitionFamilyForBoundaryOptionId, ot as footerEngagementEventFields, ou as authoredValuesEqual, pc as Trigger$1, pi as chooseAllEvents, pt as useServerRefresh, pu as deriveFooterEditorOverview, q as buildFooterRuntimeViewModel, qa as deriveFieldValidationPlan, qi as resolveOfferingsPreviewGroupOrderEntries, qn as manifestFieldSectionOptions, qo as palettesForSiteStyle, qs as CalloutTitle, qt as partitionFieldsByIntent, qu as editorBlockCollectionOwnerKey, ra as toFeatureCardIconSuggestionInputs, rd as toUtcIsoDateTimeString, ri as listBlockDescriptors, rn as withSlotCompositionHash, ro as parseSiteIconStyleGuideVersionId, rr as enabledBackgroundModes, rs as findCuratedPalette, rt as footerEngagementStarted, s as usePreviewPageDesignRenderState, si as buildNewsletterFormInteractiveIslandProps, sl as useShallow, ss as sectionTransitionVariantForBoundaryOptionId, st as parseFooterEngagementDraft, su as generateUuidV4, ta as resolveFeatureCardGeneratedIconSizePx, tc as DialogTrigger, td as resolveBookingTimeZoneId, tl as cva, tn as reorderBlocks, to as parseGeneratedIconAssetId, tr as canCycleBackgroundOverrideValue, tu as isBodyFontFamily, u as useSiteChromeCustomizeOptional, ud as expectParsedBrandedId, ul as canWriteLinkedEntry, un as ApiRequestError, uo as inlineTextToPlainText, ur as resolveBackgroundCapability, uu as assessMailingListTargeting, v as useLiveFooterRuntime, vc as ReactRemoveScroll, vl as siteOptionSources, vn as planLeaseNotice, vs as projectRepeaterGridLayout, vu as setFooterSectionSelected, w as setPageDesignBlockBackground, wl as updateButtonStyleSelectionChoice, ws as resolveRepeaterGridAcceptedSpans, wt as LeaseDiscardedNoticeView, xi as computeMediaTransformStyle, xl as findButtonStyleRecipe, xs as isRepeaterGridLayoutInvalid, xu as parseMailingListPlacementTargeting, yl as buttonStyleHoverPreferenceValue, yn as useEditorUiStore, yo as parseFieldDefinition, ys as findFirstAvailableRepeaterGridPlacement, yu as unsafeAsFooterModuleId, zc as useId$1, zn as toEditorBlockItem, zs as extractApiEnvelopeErrorDetails, zt as BlockApiProvider, zu as displayedValues } from "./previewAssistantSlot-B61mZd81.mjs";
|
|
4
4
|
import { $ as EllipsisVertical, A as LoaderCircle, B as ImageOff, E as Maximize2, G as FileText, Kt as err, L as Image, O as Lock, P as Link2, R as ImageUp, S as Palette, U as GripVertical, Z as EyeOff, _t as Box$1, b as PanelTop, bt as ArrowUpRight, c as Trash2, d as SlidersHorizontal, dt as ChevronRight, f as Settings, ft as ChevronLeft, g as RotateCcw, ht as Calendar$1, i as Video, it as Clock3, lt as CircleAlert, m as Rows3, mt as Check, n as X$1, nt as Copy, pt as ChevronDown, qt as ok, rt as Clock, s as TriangleAlert, t as lucide_react_exports, tt as Crop, u as Sparkles, v as Plus, x as PanelBottom, xt as ArrowDown, y as Pencil, yt as ArrowUp, z as ImagePlus } from "./lucide-react-Dfgl3Vtq.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-
|
|
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-BZDIC-fA.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 ScrollableDialogContent, C as EMPTY_DOC, D as resolveSdkFooterMode, F as resolveVideoSelectionIntentForMediaField, I as isSvgMimeType, M as Surface, N as surfaceVariants, O as Switch, P as emitMediaCropDebug, 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 ScrollableDialogShell, k as SegmentedControl, 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-
|
|
7
|
+
import { A as ScrollableDialogContent, C as EMPTY_DOC, D as resolveSdkFooterMode, F as resolveVideoSelectionIntentForMediaField, I as isSvgMimeType, M as Surface, N as surfaceVariants, O as Switch, P as emitMediaCropDebug, 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 ScrollableDialogShell, k as SegmentedControl, 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-bq7gbKvn.mjs";
|
|
8
8
|
import { n as TZDate } from "./src-DzXUmsyK.mjs";
|
|
9
9
|
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
|
|
10
|
-
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-
|
|
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-
|
|
10
|
+
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-BbzLMf-l.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-BEXcWQeI.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";
|
|
@@ -3583,7 +3583,12 @@ function matchesQuery(item, query) {
|
|
|
3583
3583
|
if (!needle) return true;
|
|
3584
3584
|
return [item.label, item.subtitle].filter((value) => typeof value === "string" && value.length > 0).some((value) => value.toLowerCase().includes(needle));
|
|
3585
3585
|
}
|
|
3586
|
-
function
|
|
3586
|
+
function describeSelection(selected, props) {
|
|
3587
|
+
if (props.isLoading) return props.loadingLabel;
|
|
3588
|
+
if (selected.length === 0) return props.emptySelectionLabel ?? props.placeholder;
|
|
3589
|
+
return props.selectedSummary ? props.selectedSummary(selected) : `${selected.length} selected`;
|
|
3590
|
+
}
|
|
3591
|
+
function CommandMultiSelect({ id, items, values, onValuesChange, placeholder, "aria-describedby": ariaDescribedBy, disabled, emptyLabel, isLoading, loadingLabel = "Loading…", error, emptySelectionLabel, selectedSummary, showBadges = true, helpText, className, triggerClassName, popoverContentClassName, showSearch = true, searchPlaceholder = "Search...", searchInputAriaLabel = "Search options" }) {
|
|
3587
3592
|
const [open, setOpen] = useState(false);
|
|
3588
3593
|
const triggerRef = useRef(null);
|
|
3589
3594
|
const [portalContainer, setPortalContainer] = useState(null);
|
|
@@ -3591,18 +3596,6 @@ function CommandMultiSelect({ items, values, onValuesChange, placeholder, "aria-
|
|
|
3591
3596
|
const toggle = (id) => {
|
|
3592
3597
|
onValuesChange(values.includes(id) ? values.filter((value) => value !== id) : [...values, id]);
|
|
3593
3598
|
};
|
|
3594
|
-
const buttonLabel = useMemo(() => {
|
|
3595
|
-
if (isLoading) return loadingLabel;
|
|
3596
|
-
if (selectedItems.length === 0) return emptySelectionLabel ?? placeholder;
|
|
3597
|
-
return selectedSummary ? selectedSummary(selectedItems) : `${selectedItems.length} selected`;
|
|
3598
|
-
}, [
|
|
3599
|
-
emptySelectionLabel,
|
|
3600
|
-
isLoading,
|
|
3601
|
-
loadingLabel,
|
|
3602
|
-
placeholder,
|
|
3603
|
-
selectedItems,
|
|
3604
|
-
selectedSummary
|
|
3605
|
-
]);
|
|
3606
3599
|
const isDisabled = Boolean(disabled || isLoading || error);
|
|
3607
3600
|
const handleOpenChange = (nextOpen) => {
|
|
3608
3601
|
if (isDisabled) return;
|
|
@@ -3625,6 +3618,7 @@ function CommandMultiSelect({ items, values, onValuesChange, placeholder, "aria-
|
|
|
3625
3618
|
asChild: true,
|
|
3626
3619
|
children: /* @__PURE__ */ jsx(FieldTrigger, {
|
|
3627
3620
|
ref: triggerRef,
|
|
3621
|
+
id,
|
|
3628
3622
|
role: "combobox",
|
|
3629
3623
|
"aria-expanded": open,
|
|
3630
3624
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -3632,7 +3626,13 @@ function CommandMultiSelect({ items, values, onValuesChange, placeholder, "aria-
|
|
|
3632
3626
|
disabled: isDisabled,
|
|
3633
3627
|
active: open,
|
|
3634
3628
|
isPlaceholder: selectedItems.length === 0 && !emptySelectionLabel,
|
|
3635
|
-
children:
|
|
3629
|
+
children: describeSelection(selectedItems, {
|
|
3630
|
+
isLoading,
|
|
3631
|
+
loadingLabel,
|
|
3632
|
+
emptySelectionLabel,
|
|
3633
|
+
placeholder,
|
|
3634
|
+
selectedSummary
|
|
3635
|
+
})
|
|
3636
3636
|
})
|
|
3637
3637
|
}), /* @__PURE__ */ jsx(PopoverContent, {
|
|
3638
3638
|
container: portalContainer,
|
|
@@ -4733,6 +4733,7 @@ function ContentSpinner({ className, size = "xl" }) {
|
|
|
4733
4733
|
*/
|
|
4734
4734
|
function EmptyState$1({ title, description, icon: Icon, action, className, variant = "default" }) {
|
|
4735
4735
|
if (variant === "simple") return /* @__PURE__ */ jsx("div", {
|
|
4736
|
+
"data-assistant-text": true,
|
|
4736
4737
|
className: cn("rounded-md border border-dashed p-6 text-sm text-muted-foreground", className),
|
|
4737
4738
|
children: title
|
|
4738
4739
|
});
|
|
@@ -4744,10 +4745,12 @@ function EmptyState$1({ title, description, icon: Icon, action, className, varia
|
|
|
4744
4745
|
children: /* @__PURE__ */ jsx(Icon, { className: "h-6 w-6 text-muted-foreground" })
|
|
4745
4746
|
}) : null,
|
|
4746
4747
|
/* @__PURE__ */ jsx("h3", {
|
|
4748
|
+
"data-assistant-text": true,
|
|
4747
4749
|
className: cn("font-semibold", Icon ? "mt-4 text-lg" : "text-base"),
|
|
4748
4750
|
children: title
|
|
4749
4751
|
}),
|
|
4750
4752
|
description ? /* @__PURE__ */ jsx("p", {
|
|
4753
|
+
"data-assistant-text": true,
|
|
4751
4754
|
className: "mt-2 text-sm text-muted-foreground",
|
|
4752
4755
|
children: description
|
|
4753
4756
|
}) : null,
|
|
@@ -20766,7 +20769,7 @@ function DateField({ path, backend, config, pickerDisplay, dateContext }) {
|
|
|
20766
20769
|
className: "flex justify-end border-t p-2",
|
|
20767
20770
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
20768
20771
|
type: "button",
|
|
20769
|
-
variant: "
|
|
20772
|
+
variant: "outline",
|
|
20770
20773
|
size: "sm",
|
|
20771
20774
|
onClick: () => {
|
|
20772
20775
|
handleSelectDate(null);
|
|
@@ -20978,7 +20981,7 @@ function DateTimeField({ path, backend, config, pickerDisplay, dateContext }) {
|
|
|
20978
20981
|
className: "flex justify-end gap-2",
|
|
20979
20982
|
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
20980
20983
|
type: "button",
|
|
20981
|
-
variant: "
|
|
20984
|
+
variant: "outline",
|
|
20982
20985
|
size: "sm",
|
|
20983
20986
|
disabled: !current,
|
|
20984
20987
|
onClick: () => {
|
|
@@ -20989,7 +20992,7 @@ function DateTimeField({ path, backend, config, pickerDisplay, dateContext }) {
|
|
|
20989
20992
|
children: "Clear time"
|
|
20990
20993
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
20991
20994
|
type: "button",
|
|
20992
|
-
variant: "
|
|
20995
|
+
variant: "outline",
|
|
20993
20996
|
size: "sm",
|
|
20994
20997
|
onClick: () => {
|
|
20995
20998
|
backend.setValue(path, null);
|
|
@@ -21824,7 +21827,7 @@ function FormRendererContent(input) {
|
|
|
21824
21827
|
});
|
|
21825
21828
|
return props.blockKind ? /* @__PURE__ */ jsx(BlockContextProvider, {
|
|
21826
21829
|
blockKind: props.blockKind,
|
|
21827
|
-
|
|
21830
|
+
mediaLook: props.visibilityValues?.mediaLook,
|
|
21828
21831
|
children: content
|
|
21829
21832
|
}) : content;
|
|
21830
21833
|
}
|
|
@@ -25867,14 +25870,14 @@ function UnreadableMediaField({ config }) {
|
|
|
25867
25870
|
}
|
|
25868
25871
|
/** Derive the photo editor's presentation without changing its stored content. */
|
|
25869
25872
|
function imageFieldPresentation(config, path, values, context) {
|
|
25870
|
-
const { blockKind,
|
|
25871
|
-
const { contract: slot,
|
|
25873
|
+
const { blockKind, mediaLook } = context ?? {};
|
|
25874
|
+
const { contract: slot, mediaFrame: frame } = resolveMediaSlot({
|
|
25872
25875
|
blockKind,
|
|
25873
25876
|
fieldPath: path,
|
|
25874
25877
|
values,
|
|
25875
25878
|
fieldAspectRatio: config.aspectRatio,
|
|
25876
25879
|
fieldUi: config.ui,
|
|
25877
|
-
|
|
25880
|
+
mediaLook
|
|
25878
25881
|
});
|
|
25879
25882
|
return {
|
|
25880
25883
|
...editorPresentation(config),
|
|
@@ -27296,8 +27299,8 @@ function moveOfferingPreviewOrderItem(keys, fromIndex, toIndex) {
|
|
|
27296
27299
|
return next;
|
|
27297
27300
|
}
|
|
27298
27301
|
function mergeVisibleOrderWithStoredOrder(input) {
|
|
27299
|
-
const visibleQueue =
|
|
27300
|
-
const visibleKeys = new Set(
|
|
27302
|
+
const visibleQueue = input.visibleOrder.filter(isOfferingsPreviewSourceKey);
|
|
27303
|
+
const visibleKeys = new Set(visibleQueue);
|
|
27301
27304
|
const next = [];
|
|
27302
27305
|
for (const storedKey of input.storedOrder ?? []) {
|
|
27303
27306
|
if (!isOfferingsPreviewSourceKey(storedKey)) continue;
|
|
@@ -28148,7 +28151,7 @@ function SocialImageField({ path, backend, config }) {
|
|
|
28148
28151
|
error: error?.message,
|
|
28149
28152
|
children: () => /* @__PURE__ */ jsx(Fragment$1, { children: image.kind === "loading" ? /* @__PURE__ */ jsx(ContentSpinner, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [image.kind === "unavailable" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(UnreadableMediaWarning, {}), /* @__PURE__ */ jsx(Button$1, {
|
|
28150
28153
|
type: "button",
|
|
28151
|
-
variant: "
|
|
28154
|
+
variant: "outline",
|
|
28152
28155
|
onClick: () => setValue(null),
|
|
28153
28156
|
children: "Remove"
|
|
28154
28157
|
})] }) : null, /* @__PURE__ */ jsx(MediaEditor, {
|
package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
2
|
+
import { $s as DialogHeader, Bs as unwrapResponse, Ct as EditorWriteSurface, Ds as resolveBlockTitle, Js as Dialog, Qc as Button, Qs as DialogFooter, Sn as useSidebarView, U as usePreviewAuth, Un as editorAuthoredBlockDocument, Xr as publishReadinessWarning, Xs as DialogContent, Yr as PUBLISH_READINESS_COPY, Yu as unsafeAsEditorBlockId, Zr as readinessFactsFromPayload, Zs as DialogDescription, ba as pageTemplateFromEntry, bn as useEditorUiStoreInstance, dn as PREVIEW_CHROME_Z_INDEX, ec as DialogTitle, et as useFooterPanelOwnsNotice, ht as useSessionJournalHistory, jn as canDiscardDraft, js as editorAdmissionIsOpen, mt as useSessionJournal, n as usePreviewAssistantSlot, ol as cn, ou as authoredValuesEqual, pt as useServerRefresh, tl as cva, ut as useEntryEditorController, yn as useEditorUiStore, zu as displayedValues } from "./previewAssistantSlot-B61mZd81.mjs";
|
|
3
3
|
import { $ as EllipsisVertical, A as LoaderCircle, S as Palette, X as Eye, _ as Redo2, o as Undo2, pt as ChevronDown, s as TriangleAlert, y as Pencil } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-
|
|
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-
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-BbzLMf-l.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-BEXcWQeI.mjs";
|
|
6
|
+
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-dwOn9XtM.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";
|
|
@@ -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 { $
|
|
4
|
+
import { $s as DialogHeader, B as initPreviewAuth, Bs as unwrapResponse, Co as DEFAULT_THEME_RESPONSIVE_MODE, Ct as EditorWriteSurface, Dn as parseStoredSidebarWidth, En as SIDEBAR_WIDTH, Et as getEditorClientId, Fi as buildResolveImageUrlContext, Fn as renderSourceFor, Fs as OPERATION_ID_HEADER, G as renderSiteChromeBlock, Gs as Callout, H as renewPreviewSession, Hn as unsafeAsLinkedContentEntryId, Is as API_ENDPOINTS, It as ImageResolveContextProvider, Ji as buildThemeDataAttrs, Jl as renderableMediaAssetSchema$1, Js as Dialog, Ks as CalloutDescription, Ln as resolveRenderedValues, Lr as LINKED_CONTENT_ENTRY_META_KEY, Mn as activeLinkedSaveHandover, Ms as editorAdmissionNotice, Nn as planLinkedSaveHandoverRetention, Ns as editorAdmissionSession, O as PreviewRenderObservationsProvider, Pn as remoteDraftValues, Ps as observeEditorAdmission, Qc as Button, Qs as DialogFooter, Ru as parseEditLeaseScope, St as EditLeaseModal, U as usePreviewAuth, V as registerPreviewRenewalFetcher, Vs as selectedCanvasBlockId, W as usePreviewToken, Xi as themeRuntimeScopeProps, Xs as DialogContent, Yl as indexRenderableMediaAssets, Yu as unsafeAsEditorBlockId, Zs as DialogDescription, _ as PreviewFooterProvider, _t as savedContentReceipt, a as PreviewPageDesignEditorStateProvider, aa as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, bn as useEditorUiStoreInstance, bt as VIEWING_PARTICIPATION, ca as measureSiteStickyChromeHeightPx, cl as baselineRevisionOf, ct as EntryControllerProvider, da as siteTopChromeMeasurementTargets, ec as DialogTitle, f as PreviewThemeJournalProvider, fl as canEditorWrite, fn as createRoutingHelpers, g as previewThemeBase, gt as createEditorApiClientFactory, gu as parseFooterModuleId, ha as planSiteChromePlacement, i as usePreviewSidebarNavigation, id as assertNever$2, in as blocksKeys, l as SiteChromeCustomizeProvider, ll as isEdited, m as usePreviewThemeSourceOptional, oa as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, ol as cn, ou as authoredValuesEqual, p as usePreviewThemeSource, pn as createSnapshotFromPageRecord, ps as assertNever$1, pt as useServerRefresh, ql as buildRenderableMediaAssetIndex, r as PreviewSidebarBootstrap, sa as SITE_STICKY_CHROME_HEIGHT_FALLBACK, t as PreviewAssistantSlotProvider, tt as SessionJournalHost, ua as planSiteOverlayHeaderClearance, un as ApiRequestError, ut as useEntryEditorController, v as useLiveFooterRuntime, vt as savedPageSurfaceMetadataReceipt, wo as getResponsiveScopeSpec, xn as useOptionalEditorUiStoreInstance, xt as EditLeaseDiscardedNotice, yn as useEditorUiStore, yt as useRetentionTicks, z as createGuardedPreviewApiClient, zr as getLinkedContentEntryMeta, zt as BlockApiProvider } from "./previewAssistantSlot-B61mZd81.mjs";
|
|
5
5
|
import { U as GripVertical } from "./lucide-react-Dfgl3Vtq.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-
|
|
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-BZDIC-fA.mjs";
|
|
7
7
|
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-8iKKoYZr.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-
|
|
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-dwOn9XtM.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";
|
|
@@ -4446,10 +4446,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4446
4446
|
}
|
|
4447
4447
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4448
4448
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4449
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4449
|
+
return { default: (await import("./PreviewEditorSidebar-DVsPNcos.mjs")).PreviewEditorSidebar };
|
|
4450
4450
|
});
|
|
4451
4451
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4452
|
-
return { default: (await import("./PreviewEditorUI-
|
|
4452
|
+
return { default: (await import("./PreviewEditorUI-B-pq3aZc.mjs")).PreviewEditorUI };
|
|
4453
4453
|
});
|
|
4454
4454
|
function renderShellProviders(input) {
|
|
4455
4455
|
if (!input.themeRoles) return input.content;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $r as selectBlockContent, Aa as formEmbedFragment, As as
|
|
2
|
+
import { $r as selectBlockContent, Aa as formEmbedFragment, As as isRecord$1, Ba as ctaButton, Bi as groupOfferingRunsByCourse, Br as defaultTransforms, Bs as unwrapResponse, Ca as richTextFragment, Cr as arrangementHooksFromContent, D as ObservedJoin, Da as faqHeadingFragment, Dr as buildLoadedOfferingsPreviewListing, Ea as faqAccordionFragment, El as parseThemeForPersistence, Er as getDefaultComponentRegistry, Fa as heroCtaRowFragment, Fi as buildResolveImageUrlContext, Fn as renderSourceFor, Fr as siblingPath, Fu as readEditorBlockVersionsFromPlacement, Ga as validateManifestDraft, Gr as createEditorPresentationPageReader, Ha as defineFragment, Hn as unsafeAsLinkedContentEntryId, Hr as resolvePageRouteTarget, Ia as ctaRowFragment, Ii as getCurrentResolveImageUrlContext, Il as defaultThemeTokens, In as renderedFieldChanges, Iu as readPublishedBlockPlacement, Jr as mapOutlineRegions, Ki as readOfferingsGrouping, Kr as allOutlineBlocks, Li as setContextResolveImageUrlContext, Ln as resolveRenderedValues, Ls as calendarWindowQuerySchema, Lu as selectedContentVersionId, Ma as testimonialsCarouselFragment, Mr as logger, Na as testimonialsHeadingFragment, Nl as parseSurfaceTree, Nr as Text$1, Oa as blogFeaturedPostFragment, Or as resolveEventDetailsPresentation, Pa as ctaCopyFragment, Pn as remoteDraftValues, Pr as getAtPath, Pt as clientComponentRegistry, Pu as NO_BLOCK_VERSIONS, Qr as readinessFactsFromLoaders, Ri as normalizeEventRegistrationPageSurfaceSubject, Rr as coerceLinkedContentEntriesPayload, Sa as bookingConsentCarrierSchema, So as mergeContentWithBlockStyleOverrides, Sr as resolveDefaultBlockTree, Ta as cardFragment, Tr as readBlockComposition, Ua as runTransforms, Ur as resolveRouteTarget, Va as bodyCopyFragment, Vr as resolveEntryRouteTarget, W as usePreviewToken, Wa as compileManifestContentContract, Wi as offeringsListingFor, Yu as unsafeAsEditorBlockId, ai as normalizeLocationMapSource, ao as coerceInlineTextWithFallback, ba as pageTemplateFromEntry, bn as useEditorUiStoreInstance, bo as buildThemeRuntime, br as makeDefaultBlockComponent, ci as offeringsPreviewBlockDefinition, do as isInlineTextEmpty, dr as createPageRenderPlanReader, eo as parseBlockIconValue, fr as planArrangementContent, gr as retargetJoinsAcrossOmissions, hr as renderedJoinLayout, id as assertNever, ii as normalizeBlockContent, ja as formCopyFragment, jl as textColorStyle, jr as renderInlineText, k as PreviewRenderPlanProjection, ka as singleButtonFragment, kr as buildAppointmentServicesView, ks as isObjectRecord, li as publicRouteCandidatesSchema, lu as buildMailingListSignupBlockSourceRef, ma as resolveDateRuntimeContext, mo as parseInlineTextFromUnknown, mr as joinSlotKey, ni as getBlockDefinition, no as parseGeneratedIconSetId, oi as resolveLocationMapLocation, oo as deriveInlineTextFieldChanges, pa as readRuntimeNow, pl as bindingSchema, pr as composePageJoins, qr as mapOutlineBlocks, rd as toUtcIsoDateTimeString, s as usePreviewPageDesignRenderState, su as generateUuidV4, to as parseGeneratedIconAssetId, ul as canWriteLinkedEntry, uo as inlineTextToPlainText, va as projectRecurringSchedule, vi as cardListPresentationSchemaShape, wa as headingFragment, wr as blockLookFromContent, wu as sameMailingListPlacementTargeting, xa as publicEventsArraySchema, xu as parseMailingListPlacementTargeting, ya as hiddenFromVisitors, yi as RichText$1, yn as useEditorUiStore, za as heroCopyFragment, zi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS } from "./previewAssistantSlot-B61mZd81.mjs";
|
|
3
3
|
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-Dfgl3Vtq.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-
|
|
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-
|
|
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-BZDIC-fA.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-bq7gbKvn.mjs";
|
|
6
|
+
import { f as useEditor } from "./previewChromeRoot-dwOn9XtM.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-ChyjB96e.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";
|
|
@@ -1642,13 +1642,15 @@ function prepareEntry(entry, input) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
/**
|
|
1645
|
-
* Editor admission validates
|
|
1646
|
-
* proof.
|
|
1645
|
+
* Editor admission validates what the owner still decides, without minting a
|
|
1646
|
+
* renderable proof. The Look's decisions are not authoring choices (a frame's
|
|
1647
|
+
* 4/5 is not on the block's ratio list), so the preview renders them unvalidated,
|
|
1648
|
+
* as a public page does, and a hidden stale value can't block it. Returns `null`
|
|
1649
|
+
* when even relaxed validation rejects the draft.
|
|
1647
1650
|
*/
|
|
1648
1651
|
function previewableEditorContent(entry) {
|
|
1649
1652
|
if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
|
|
1650
|
-
|
|
1651
|
-
return draft.kind === "previewable" ? draft.data : null;
|
|
1653
|
+
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.ownerEditableContent).kind === "previewable" ? entry.renderableContent : null;
|
|
1652
1654
|
}
|
|
1653
1655
|
function buildPreparedContent(entry, content, input) {
|
|
1654
1656
|
const { dataContext } = input;
|
|
@@ -2913,79 +2915,65 @@ function drawingAtCurrentPin(location, ready) {
|
|
|
2913
2915
|
}
|
|
2914
2916
|
//#endregion
|
|
2915
2917
|
//#region ../preview-next/src/client/blocks/previewBatchLoaderParams.ts
|
|
2916
|
-
function
|
|
2917
|
-
return
|
|
2918
|
+
function withOptionalParams(endpoint) {
|
|
2919
|
+
return (id, params) => params ? {
|
|
2920
|
+
id,
|
|
2921
|
+
endpoint,
|
|
2922
|
+
params
|
|
2923
|
+
} : {
|
|
2924
|
+
id,
|
|
2925
|
+
endpoint
|
|
2926
|
+
};
|
|
2918
2927
|
}
|
|
2919
|
-
function
|
|
2920
|
-
|
|
2921
|
-
|
|
2928
|
+
function withCategories(endpoint) {
|
|
2929
|
+
return (id, params) => {
|
|
2930
|
+
const categories = params?.categories;
|
|
2931
|
+
return categories ? {
|
|
2922
2932
|
id,
|
|
2923
2933
|
endpoint,
|
|
2924
|
-
params:
|
|
2925
|
-
}
|
|
2926
|
-
case "listPublicEvents": {
|
|
2927
|
-
const typedParams = params;
|
|
2928
|
-
return typedParams ? {
|
|
2929
|
-
id,
|
|
2930
|
-
endpoint,
|
|
2931
|
-
params: typedParams
|
|
2932
|
-
} : {
|
|
2933
|
-
id,
|
|
2934
|
-
endpoint
|
|
2935
|
-
};
|
|
2936
|
-
}
|
|
2937
|
-
case "getPublicEventDetails": {
|
|
2938
|
-
const typedParams = params;
|
|
2939
|
-
return typedParams ? {
|
|
2940
|
-
id,
|
|
2941
|
-
endpoint,
|
|
2942
|
-
params: typedParams
|
|
2943
|
-
} : {
|
|
2944
|
-
id,
|
|
2945
|
-
endpoint
|
|
2946
|
-
};
|
|
2947
|
-
}
|
|
2948
|
-
case "listPublicRouteCandidates": return {
|
|
2934
|
+
params: { categories }
|
|
2935
|
+
} : {
|
|
2949
2936
|
id,
|
|
2950
2937
|
endpoint
|
|
2951
2938
|
};
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2939
|
+
};
|
|
2940
|
+
}
|
|
2941
|
+
const batchRequestBuilders = {
|
|
2942
|
+
listPublicEventCalendarWindow: (id, params) => ({
|
|
2943
|
+
id,
|
|
2944
|
+
endpoint: "listPublicEventCalendarWindow",
|
|
2945
|
+
params: calendarWindowQuerySchema.parse(params ?? {})
|
|
2946
|
+
}),
|
|
2947
|
+
listPublicEvents: withOptionalParams("listPublicEvents"),
|
|
2948
|
+
getPublicEventDetails: withOptionalParams("getPublicEventDetails"),
|
|
2949
|
+
listPublicRouteCandidates: (id) => ({
|
|
2950
|
+
id,
|
|
2951
|
+
endpoint: "listPublicRouteCandidates"
|
|
2952
|
+
}),
|
|
2953
|
+
listPublicTeamMembers: (id) => ({
|
|
2954
|
+
id,
|
|
2955
|
+
endpoint: "listPublicTeamMembers"
|
|
2956
|
+
}),
|
|
2957
|
+
listPublicProducts: withOptionalParams("listPublicProducts"),
|
|
2958
|
+
listPublicPasses: withCategories("listPublicPasses"),
|
|
2959
|
+
listPublicMemberships: withCategories("listPublicMemberships"),
|
|
2960
|
+
getPublicBookingServices: withOptionalParams("getPublicBookingServices"),
|
|
2961
|
+
getPublicWeeklySlotAvailability: (id, params) => ({
|
|
2962
|
+
id,
|
|
2963
|
+
endpoint: "getPublicWeeklySlotAvailability",
|
|
2964
|
+
params: params ?? { serviceId: "" }
|
|
2965
|
+
}),
|
|
2966
|
+
getPublicFormById: (id, params) => ({
|
|
2967
|
+
id,
|
|
2968
|
+
endpoint: "getPublicFormById",
|
|
2969
|
+
params: params ?? { formId: "" }
|
|
2970
|
+
})
|
|
2971
|
+
};
|
|
2972
|
+
function isBatchableEndpoint(endpoint) {
|
|
2973
|
+
return Object.hasOwn(batchRequestBuilders, endpoint);
|
|
2974
|
+
}
|
|
2975
|
+
function buildBatchLoaderRequest(id, endpoint, params) {
|
|
2976
|
+
return batchRequestBuilders[endpoint](id, params);
|
|
2989
2977
|
}
|
|
2990
2978
|
function stripUndefined(obj) {
|
|
2991
2979
|
const out = {};
|
|
@@ -3023,22 +3011,27 @@ function eventLoaderParams(params) {
|
|
|
3023
3011
|
function nonEmpty(params) {
|
|
3024
3012
|
return Object.keys(params).length ? params : void 0;
|
|
3025
3013
|
}
|
|
3014
|
+
const noBatchParams = () => void 0;
|
|
3015
|
+
const categoriesParam = (params) => nonEmpty(stripUndefined({ categories: params.categories || void 0 }));
|
|
3016
|
+
const previewBatchParamReaders = {
|
|
3017
|
+
listPublicEventCalendarWindow: (params) => calendarWindowQuerySchema.parse(params),
|
|
3018
|
+
listPublicEvents: (params) => nonEmpty({
|
|
3019
|
+
...eventLoaderParams(params),
|
|
3020
|
+
detailLevel: params.detailLevel || void 0,
|
|
3021
|
+
readProfile: params.readProfile || void 0
|
|
3022
|
+
}),
|
|
3023
|
+
getPublicEventDetails: (params) => nonEmpty(eventLoaderParams(params)),
|
|
3024
|
+
listPublicProducts: (params) => nonEmpty(stripUndefined({ categorySelector: decodePublicProductCategorySelectorQuery(params) ?? void 0 })),
|
|
3025
|
+
listPublicPasses: categoriesParam,
|
|
3026
|
+
listPublicMemberships: categoriesParam,
|
|
3027
|
+
getPublicBookingServices: (params) => nonEmpty(stripUndefined({ ids: normalizeIdsParam(params.ids || void 0) })),
|
|
3028
|
+
getPublicFormById: (params) => ({ formId: params.formId ?? "" }),
|
|
3029
|
+
listPublicRouteCandidates: noBatchParams,
|
|
3030
|
+
listPublicTeamMembers: noBatchParams,
|
|
3031
|
+
getPublicWeeklySlotAvailability: noBatchParams
|
|
3032
|
+
};
|
|
3026
3033
|
function toPreviewBatchParams(endpoint, params) {
|
|
3027
|
-
|
|
3028
|
-
case "listPublicEventCalendarWindow": return calendarWindowQuerySchema.parse(params);
|
|
3029
|
-
case "listPublicEvents": return nonEmpty({
|
|
3030
|
-
...eventLoaderParams(params),
|
|
3031
|
-
detailLevel: params.detailLevel || void 0,
|
|
3032
|
-
readProfile: params.readProfile || void 0
|
|
3033
|
-
});
|
|
3034
|
-
case "getPublicEventDetails": return nonEmpty(eventLoaderParams(params));
|
|
3035
|
-
case "listPublicProducts": return nonEmpty(stripUndefined({ categorySelector: decodePublicProductCategorySelectorQuery(params) ?? void 0 }));
|
|
3036
|
-
case "getPublicBookingServices": return nonEmpty(stripUndefined({ ids: normalizeIdsParam(params.ids || void 0) }));
|
|
3037
|
-
case "getPublicFormById": return { formId: params.formId ?? "" };
|
|
3038
|
-
case "listPublicRouteCandidates":
|
|
3039
|
-
case "listPublicTeamMembers":
|
|
3040
|
-
case "getPublicWeeklySlotAvailability": return;
|
|
3041
|
-
}
|
|
3034
|
+
return previewBatchParamReaders[endpoint](params);
|
|
3042
3035
|
}
|
|
3043
3036
|
//#endregion
|
|
3044
3037
|
//#region ../preview-next/src/client/blocks/previewBlockDataClient.ts
|
|
@@ -3105,16 +3098,6 @@ async function callDirectLoaderApiEndpoint(client, endpoint, params, signal) {
|
|
|
3105
3098
|
params,
|
|
3106
3099
|
options: { signal }
|
|
3107
3100
|
}));
|
|
3108
|
-
case "listPublicPasses": return unwrapResponse(await client({
|
|
3109
|
-
endpoint,
|
|
3110
|
-
params,
|
|
3111
|
-
options: { signal }
|
|
3112
|
-
}));
|
|
3113
|
-
case "listPublicMemberships": return unwrapResponse(await client({
|
|
3114
|
-
endpoint,
|
|
3115
|
-
params,
|
|
3116
|
-
options: { signal }
|
|
3117
|
-
}));
|
|
3118
3101
|
case "listPublicRecurringSchedule": return projectRecurringSchedule(unwrapResponse(await client({
|
|
3119
3102
|
endpoint: "listPublicEvents",
|
|
3120
3103
|
params,
|