@riverbankcms/sdk 0.171.1 → 0.172.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-D-6cWDDC.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
- package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-DViYbakk.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
- package/dist/_dts/{client-CXPH5esD.d.ts → client-DZBOzd3U.d.ts} +1 -2
- package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
- package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
- package/dist/_dts/{index-BQPJbOkU.d.ts → index-BnMavhoh.d.ts} +2 -2
- package/dist/_dts/{index-DScYSl03.d.ts → index-C0zjLMAW.d.ts} +49 -38
- package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-CpOkfBt1.d.ts} +3 -3
- package/dist/_dts/{index-C9_OTCFQ.d.ts → index-Da4UMgbs.d.ts} +2 -2
- package/dist/_dts/{index-DlABXDte.d.ts → index-DkFV_1Bc.d.ts} +1 -1
- package/dist/_dts/{index-Sua-7CF1.d.ts → index-Dns7OHyl.d.ts} +1 -1
- package/dist/_dts/{index-B3gfKNI-.d.ts → index-MuMYjetm.d.ts} +4 -4
- package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
- package/dist/_dts/{request-DUTkELQn.d.ts → request-wQ28JWbr.d.ts} +1021 -247
- package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-Cc4zqaEC.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 +18 -1
- package/dist/_dts/{types-BCzfYDW2.d.ts → types-CpjyP5I4.d.ts} +7 -7
- package/dist/_dts/{types-JD-36x3P.d.ts → types-DrinAfeW.d.ts} +3 -3
- package/dist/_dts/{types-CPHk5Voq.d.ts → types-ZuZoGsZV.d.ts} +2 -2
- package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
- package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
- package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-sKBofjiW.mjs} +40 -14
- package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
- package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
- package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
- package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
- package/dist/client/{Page-CT4HaEMr.mjs → Page-Ds1s3DuC.mjs} +1426 -486
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
- package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
- package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-OsAseM7H.mjs} +36 -18
- package/dist/client/{accordion-BOApxi9U.mjs → accordion-DgwFZJSx.mjs} +1 -1
- package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
- package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
- package/dist/client/{carousel-DeI76SEP.mjs → carousel-0sw2Kc3a.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-D_uxULCO.mjs → cart-CPfvMDGJ.mjs} +3 -3
- package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BJBPUTmg.mjs} +1 -1
- package/dist/client/{checkout-DIbh4g5e.mjs → checkout-DU4JFjGT.mjs} +3 -3
- package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
- package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
- package/dist/client/client.mjs +135 -4
- package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
- package/dist/client/{cta-CP9l112u.mjs → cta-CNVQHLKs.mjs} +53 -11
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
- package/dist/client/{display-ChgDe9Da.mjs → display-B5DfNb6A.mjs} +1869 -333
- package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
- package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
- package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
- package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
- package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
- package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
- package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-EhSDk4UL.mjs} +4 -4
- package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
- package/dist/client/{form-ERv_X_oZ.mjs → form-BfChzSkS.mjs} +3 -3
- package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D1zehtPk.mjs} +4 -4
- package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-rMDlUQIv.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BX9bQ84k.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
- package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
- package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-CDL-jihv.mjs} +1 -1
- package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-B97m0uZy.mjs} +3 -3
- package/dist/client/{productList-HoFGQXFl.mjs → productList-DE4vSSG_.mjs} +3 -3
- package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
- package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cn8XjRte.mjs} +1458 -1178
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -16
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
- package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +3 -0
- package/dist/client/{shop-DXyeSNgi.mjs → shop-BC4H0oYT.mjs} +3 -3
- package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
- package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
- package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-WgGVGelc.mjs} +12 -12
- package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
- package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-BE6TEk2A.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
- package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
- package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
- package/dist/client/{view-DhEwiTJG.mjs → view-B0TFnP4y.mjs} +198 -60
- package/dist/client/{view-C_brMDU2.mjs → view-DNNNbnNj.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-D59tHj_L.mjs} +25 -20
- package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +100 -70
- package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI--kS9Cwsc.mjs} +5 -5
- package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
- package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
- package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bi8-rclb.mjs} +311 -62
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +301 -125
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +584 -286
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-Caofnr1Z.mjs} +7190 -4065
- package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +20 -8
- package/dist/preview-next/container-responsive.css +215 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-DsKDQoVW.mjs} +131 -0
- package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
- package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Bp6OnR3n.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-DCwLR0kQ.mjs → client-dROAfMRa.mjs} +133 -2
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-zOIrtqz-.mjs} +19 -14
- package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-DjboggbB.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
- package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
- package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-BJjptSGp.mjs} +1039 -853
- package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
- package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-CntSkZQI.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
- package/dist/server/{registry-CaeRTf4E.mjs → registry-wYH0LH5f.mjs} +7257 -4959
- 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-CUMjWbXQ.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
- package/dist/server/{schema-CxBsE9Dv.mjs → schema-BFOqYIMQ.mjs} +2 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CvmhnkDr.mjs → validation-DAQdPDku.mjs} +4 -4
- package/dist/server/{version-Clp2evCf.mjs → version-DAB0O3yx.mjs} +1 -1
- package/dist/styles/index.css +1260 -15
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Gt as EventQuickFacts, Wt as MediaNodeServer, ct as closedRunCopy, nn as formatEventPriceAmount, ot as formatBookingSchedulePresentation, rn as formatEventPriceDisplay, tn as formatEventPrice, zt as CardListContentPart } from "./shop.interactive-Bb67gPLL.mjs";
|
|
3
|
+
import { Cn as ImagePresets, Es as publicEventPricingDisplay, Hn as formatEventCompactDateRail, Ji as listLookSlot, Kn as formatEventRunDates, Ln as eventDateOptions, Os as publicEventPricingType, Ss as formatBookingPriceDisplay, Ts as publicEventPricingCurrency, Un as formatEventDateParts, Vi as resolveEventRegistrationScopedEvents, Yn as formatTime, ar as getEventAvailabilityStatus, cs as nextLiveRunSessionStartMs, er as canJoinEventWaitlistOnAnyMode, ir as getEventAvailability, ls as orderedLiveRunSessions, os as CANCELLED_SESSION_STATUS, qn as formatEventTimeRange, rr as formatTotalCapacity, sr as isEventFull, tr as formatEventRemainingPlaces, us as resolveWholeSeriesBookingPhase, ws as isPublicEventPricingOptionDisplayable } from "./display-B5DfNb6A.mjs";
|
|
4
|
+
import { It as formatDate, Kt as toScheduledBookingDateTime, Lt as formatDateRange, Qt as getLocalScheduleDate, Yt as compareLocalScheduleDates, Zt as getBookingLocalDateKey, an as toUtcIsoDateTimeString, rn as toBookingTimeZone, tn as resolveBookingBusinessTimeZone, un as formatCurrencyAmount, zt as formatDateTimeRange } from "./noop-CamIX2yK.mjs";
|
|
5
5
|
import { N as assertNever } from "./creditProducts-BTRX4edc.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-Hsj2HC_1.mjs";
|
|
8
|
+
import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-CNVQHLKs.mjs";
|
|
9
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-C7E7Lyfa.mjs";
|
|
10
10
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
11
|
import "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -54,6 +54,53 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
|
54
54
|
} : null;
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
58
|
+
/**
|
|
59
|
+
* Whether a public event has a registration path a visitor can take.
|
|
60
|
+
*
|
|
61
|
+
* Lifecycle admission comes from the public booking-availability contract;
|
|
62
|
+
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
63
|
+
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
64
|
+
*/
|
|
65
|
+
function isBookableEvent(event) {
|
|
66
|
+
if (!event.requiresRegistration) return false;
|
|
67
|
+
if (event.bookingAvailability.kind !== "open") return false;
|
|
68
|
+
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Select the next occurrence-targeted events for a quick-book rail.
|
|
72
|
+
*
|
|
73
|
+
* The API normally returns valid timestamps, but malformed values sort after
|
|
74
|
+
* valid events so one bad record cannot displace an otherwise useful rail.
|
|
75
|
+
* Sorting before deduplication means a duplicate occurrence keeps its earliest
|
|
76
|
+
* deterministic representation.
|
|
77
|
+
*/
|
|
78
|
+
function selectQuickDateEvents(events) {
|
|
79
|
+
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
|
|
80
|
+
}
|
|
81
|
+
/** Shared ordering and identity selection, independent of booking capacity. */
|
|
82
|
+
function orderedUniqueEventOccurrences(events) {
|
|
83
|
+
const sorted = [...events].sort(compareQuickDateEvents);
|
|
84
|
+
return sorted.filter((event, index) => sorted.findIndex((candidate) => candidate.occurrenceId === event.occurrenceId) === index);
|
|
85
|
+
}
|
|
86
|
+
function formatEventQuickDate(event, style = "legacy") {
|
|
87
|
+
const options = eventDateOptions(event);
|
|
88
|
+
const dateRail = formatEventCompactDateRail(event.startsAt, options, style === "site" ? "as-written" : "capitals");
|
|
89
|
+
return {
|
|
90
|
+
dateTime: event.startsAt,
|
|
91
|
+
label: `${dateRail.weekday} ${dateRail.day} ${dateRail.month}, ${formatTime(event.startsAt, options)}`
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function compareQuickDateEvents(left, right) {
|
|
95
|
+
const startsAtOrder = compareTimestamp(left.startsAt, right.startsAt);
|
|
96
|
+
return startsAtOrder === 0 ? left.occurrenceId.localeCompare(right.occurrenceId) : startsAtOrder;
|
|
97
|
+
}
|
|
98
|
+
function compareTimestamp(left, right) {
|
|
99
|
+
const leftTime = Date.parse(left);
|
|
100
|
+
const rightTime = Date.parse(right);
|
|
101
|
+
return (Number.isNaN(leftTime) ? Number.POSITIVE_INFINITY : leftTime) - (Number.isNaN(rightTime) ? Number.POSITIVE_INFINITY : rightTime);
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
57
104
|
//#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
|
|
58
105
|
/**
|
|
59
106
|
* Shared tile content for displaying date and time range.
|
|
@@ -95,6 +142,7 @@ function derivePreviewRunSchedule(event) {
|
|
|
95
142
|
first,
|
|
96
143
|
last,
|
|
97
144
|
sessionCount: sessions.length,
|
|
145
|
+
sessions,
|
|
98
146
|
authoredSummary
|
|
99
147
|
};
|
|
100
148
|
return {
|
|
@@ -115,10 +163,47 @@ function isValidOccurrence(value) {
|
|
|
115
163
|
return Number.isFinite(Date.parse(value.startsAt)) && Number.isFinite(Date.parse(value.endsAt));
|
|
116
164
|
}
|
|
117
165
|
//#endregion
|
|
166
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
|
|
167
|
+
/** A bounded display sample only: capacity and booking admission belong to the booking destination. */
|
|
168
|
+
function offeringDatesBySeries(events, now, booking) {
|
|
169
|
+
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
170
|
+
return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, occurrencePlaces(event), booking))]));
|
|
171
|
+
}
|
|
172
|
+
/** Whole-series sessions share the run's capacity, so every row shows the run's decided availability. */
|
|
173
|
+
function offeringRunDates(event, now, places) {
|
|
174
|
+
if (event.bookingScope !== "whole_series") return [];
|
|
175
|
+
const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
|
|
176
|
+
return nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart).slice(0, 3).map((session) => offeringDateRow(session, event, places));
|
|
177
|
+
}
|
|
178
|
+
function offeringDateRow(session, event, places, booking) {
|
|
179
|
+
const options = eventDateOptions({
|
|
180
|
+
...event,
|
|
181
|
+
timeZone: session.timeZone
|
|
182
|
+
});
|
|
183
|
+
const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
|
|
184
|
+
const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
|
|
185
|
+
const bookingLink = booking?.(event, label) ?? null;
|
|
186
|
+
return {
|
|
187
|
+
startsAt: session.startsAt,
|
|
188
|
+
label,
|
|
189
|
+
...bookingLink ? { booking: bookingLink } : {},
|
|
190
|
+
places
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/** A single occurrence's row is its own booking, so it reports that occurrence's capacity. */
|
|
194
|
+
function occurrencePlaces(event) {
|
|
195
|
+
const capacity = getEventAvailability(event);
|
|
196
|
+
const status = getEventAvailabilityStatus(event);
|
|
197
|
+
return capacity.available === null ? null : {
|
|
198
|
+
label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
|
|
199
|
+
status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
118
203
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
|
|
119
204
|
/** Live offering data only; editorial cards never acquire booking fields. */
|
|
120
205
|
function eventCardListContent(event, context, buttonText) {
|
|
121
|
-
const { content, external } = cardProjectionBase(event, buttonText, context
|
|
206
|
+
const { content, external } = cardProjectionBase(event, buttonText, context);
|
|
122
207
|
switch (context.kind) {
|
|
123
208
|
case "event-details": return {
|
|
124
209
|
...content,
|
|
@@ -133,29 +218,44 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
133
218
|
chips: offeringTypeChips(event, context.typeLabel),
|
|
134
219
|
leadDate: offeringLeadDate(event, context.nextStartMs),
|
|
135
220
|
newTabHint: external,
|
|
136
|
-
...offeringSchedule(event, context.now)
|
|
221
|
+
...offeringSchedule(event, context.now),
|
|
222
|
+
...event.bookingScope === "whole_series" ? { dates: offeringRunDates(event, context.now, content.availability) } : {}
|
|
137
223
|
};
|
|
138
224
|
default: return assertNever(context);
|
|
139
225
|
}
|
|
140
226
|
}
|
|
141
227
|
function cardProjectionBase(event, buttonText, context) {
|
|
142
|
-
const offering = context !== "event-details";
|
|
143
|
-
const { cta, availability: places } =
|
|
228
|
+
const offering = context.kind !== "event-details";
|
|
229
|
+
const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
|
|
230
|
+
const titleLink = resolveEventLinkProps(event);
|
|
144
231
|
return {
|
|
145
232
|
external: cta.external,
|
|
146
233
|
content: {
|
|
147
234
|
id: event.occurrenceId || event.id,
|
|
148
235
|
title: event.title,
|
|
149
|
-
titleLink:
|
|
236
|
+
...titleLink.href ? { titleLink } : {},
|
|
150
237
|
quickFacts: event.facts,
|
|
151
238
|
text: event.presentation?.summary ?? event.description,
|
|
152
239
|
media: event.presentation?.image,
|
|
153
240
|
facts: offeringFacts(event, places?.label, offering),
|
|
154
241
|
availability: places,
|
|
155
|
-
action: cardAction(cta)
|
|
242
|
+
action: cardAction(cta),
|
|
243
|
+
bookingClosed: closed ? cta.label : null
|
|
156
244
|
}
|
|
157
245
|
};
|
|
158
246
|
}
|
|
247
|
+
/** Offering cards carry the render clock; an event's own details show its projected booking state. */
|
|
248
|
+
function cardBooking(event, buttonText, context) {
|
|
249
|
+
switch (context.kind) {
|
|
250
|
+
case "event-details": return resolveEventCardBooking(event, "occurrence", buttonText, { now: null });
|
|
251
|
+
case "catalogue":
|
|
252
|
+
case "offering": return resolveEventCardBooking(event, context.kind === "catalogue" ? "series" : "occurrence", event.destination.kind === "external" ? void 0 : buttonText, {
|
|
253
|
+
now: context.now,
|
|
254
|
+
count: context.count
|
|
255
|
+
});
|
|
256
|
+
default: return assertNever(context);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
159
259
|
function offeringLeadDate(event, startMs) {
|
|
160
260
|
if (startMs === null || !Number.isFinite(startMs)) return null;
|
|
161
261
|
const startsAt = new Date(startMs).toISOString();
|
|
@@ -222,7 +322,12 @@ function scheduleLine(summary, event, now) {
|
|
|
222
322
|
zone
|
|
223
323
|
}) : date(summary.occurrence.startsAt);
|
|
224
324
|
case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
|
|
225
|
-
case "scheduled-run":
|
|
325
|
+
case "scheduled-run": {
|
|
326
|
+
const range = dates(summary.first.startsAt, summary.last.startsAt, "session");
|
|
327
|
+
if (summary.authoredSummary) return `${range} · ${summary.authoredSummary.text}`;
|
|
328
|
+
const clock = regularSessionClock(summary.sessions, event);
|
|
329
|
+
return clock ? `${summary.sessionCount} ${clock.weekday}s, ${range}, ${clock.time}` : `${range} · ${summary.sessionCount} dates · Times vary`;
|
|
330
|
+
}
|
|
226
331
|
}
|
|
227
332
|
}
|
|
228
333
|
function offeringFacts(event, places, offering) {
|
|
@@ -256,6 +361,31 @@ function cardAction(cta) {
|
|
|
256
361
|
external: cta.external
|
|
257
362
|
};
|
|
258
363
|
}
|
|
364
|
+
/** Compare each session in its own local zone, so regular clocks survive DST changes. Null when sessions differ. */
|
|
365
|
+
function regularSessionClock(sessions, event) {
|
|
366
|
+
const clocks = sessions.map((session) => {
|
|
367
|
+
const context = {
|
|
368
|
+
...eventDateOptions({
|
|
369
|
+
...event,
|
|
370
|
+
timeZone: session.timeZone
|
|
371
|
+
}),
|
|
372
|
+
zone: "omit"
|
|
373
|
+
};
|
|
374
|
+
return {
|
|
375
|
+
weekday: formatDate({
|
|
376
|
+
kind: "instant",
|
|
377
|
+
value: toUtcIsoDateTimeString(session.startsAt)
|
|
378
|
+
}, context, {
|
|
379
|
+
date: "omit",
|
|
380
|
+
weekday: "long",
|
|
381
|
+
year: "omit"
|
|
382
|
+
}),
|
|
383
|
+
time: formatEventTimeRange(session, context)
|
|
384
|
+
};
|
|
385
|
+
});
|
|
386
|
+
const first = clocks[0];
|
|
387
|
+
return first && clocks.every((clock) => clock.weekday === first.weekday && clock.time === first.time) ? first : null;
|
|
388
|
+
}
|
|
259
389
|
//#endregion
|
|
260
390
|
//#region ../blocks/src/system/runtime/nodes/event-details/headerContent.ts
|
|
261
391
|
/** Project selected live data; booking decisions stay with the existing event owners. */
|
|
@@ -379,6 +509,53 @@ const eventHeaderSlotParents = {
|
|
|
379
509
|
"item-media": "frame"
|
|
380
510
|
};
|
|
381
511
|
//#endregion
|
|
512
|
+
//#region ../blocks/src/system/customize/lookParts.ts
|
|
513
|
+
const lookParts = {
|
|
514
|
+
"block.hero": [{
|
|
515
|
+
part: "more photos",
|
|
516
|
+
fields: ["morePhotos"],
|
|
517
|
+
shownIn: ["photo-trio"]
|
|
518
|
+
}],
|
|
519
|
+
"block.cta-full": [{
|
|
520
|
+
part: "figure",
|
|
521
|
+
fields: ["figure", "figureNote"],
|
|
522
|
+
shownIn: ["figure"]
|
|
523
|
+
}],
|
|
524
|
+
"block.location-map": [{
|
|
525
|
+
part: "entrance photo",
|
|
526
|
+
fields: ["entrancePhoto"],
|
|
527
|
+
shownIn: ["photo-and-details"]
|
|
528
|
+
}],
|
|
529
|
+
"block.feature-cards": [{
|
|
530
|
+
part: "eyebrow",
|
|
531
|
+
fields: ["eyebrow"],
|
|
532
|
+
shownIn: [
|
|
533
|
+
"lead-support",
|
|
534
|
+
"index",
|
|
535
|
+
"sequence",
|
|
536
|
+
"slides",
|
|
537
|
+
"track"
|
|
538
|
+
]
|
|
539
|
+
}],
|
|
540
|
+
"block.event-details": [{
|
|
541
|
+
part: "title",
|
|
542
|
+
fields: ["showTitle"],
|
|
543
|
+
shownIn: ["details-panel"]
|
|
544
|
+
}, {
|
|
545
|
+
part: "description",
|
|
546
|
+
fields: ["showDescription"],
|
|
547
|
+
shownIn: ["details-panel"]
|
|
548
|
+
}]
|
|
549
|
+
};
|
|
550
|
+
/** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
|
|
551
|
+
function fieldsNotShownIn(blockKind, arrangement) {
|
|
552
|
+
if (arrangement === null) return [];
|
|
553
|
+
return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
|
|
554
|
+
}
|
|
555
|
+
function lookPartShown(blockKind, field, arrangement) {
|
|
556
|
+
return !fieldsNotShownIn(blockKind, arrangement).includes(field);
|
|
557
|
+
}
|
|
558
|
+
//#endregion
|
|
382
559
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
|
|
383
560
|
function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
|
|
384
561
|
const categories = eligibleCategoryIds ?? [];
|
|
@@ -572,48 +749,6 @@ function resolveEventDetailsPresentation(input) {
|
|
|
572
749
|
};
|
|
573
750
|
}
|
|
574
751
|
//#endregion
|
|
575
|
-
//#region ../blocks/src/system/customize/lookParts.ts
|
|
576
|
-
const lookParts = {
|
|
577
|
-
"block.cta-full": [{
|
|
578
|
-
part: "figure",
|
|
579
|
-
fields: ["figure", "figureNote"],
|
|
580
|
-
shownIn: ["figure"]
|
|
581
|
-
}],
|
|
582
|
-
"block.location-map": [{
|
|
583
|
-
part: "entrance photo",
|
|
584
|
-
fields: ["entrancePhoto"],
|
|
585
|
-
shownIn: ["photo-and-details"]
|
|
586
|
-
}],
|
|
587
|
-
"block.feature-cards": [{
|
|
588
|
-
part: "eyebrow",
|
|
589
|
-
fields: ["eyebrow"],
|
|
590
|
-
shownIn: [
|
|
591
|
-
"lead-support",
|
|
592
|
-
"index",
|
|
593
|
-
"sequence",
|
|
594
|
-
"slides",
|
|
595
|
-
"track"
|
|
596
|
-
]
|
|
597
|
-
}],
|
|
598
|
-
"block.event-details": [{
|
|
599
|
-
part: "title",
|
|
600
|
-
fields: ["showTitle"],
|
|
601
|
-
shownIn: ["details-panel"]
|
|
602
|
-
}, {
|
|
603
|
-
part: "description",
|
|
604
|
-
fields: ["showDescription"],
|
|
605
|
-
shownIn: ["details-panel"]
|
|
606
|
-
}]
|
|
607
|
-
};
|
|
608
|
-
/** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
|
|
609
|
-
function fieldsNotShownIn(blockKind, arrangement) {
|
|
610
|
-
if (arrangement === null) return [];
|
|
611
|
-
return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
|
|
612
|
-
}
|
|
613
|
-
function lookPartShown(blockKind, field, arrangement) {
|
|
614
|
-
return !fieldsNotShownIn(blockKind, arrangement).includes(field);
|
|
615
|
-
}
|
|
616
|
-
//#endregion
|
|
617
752
|
//#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
|
|
618
753
|
/** A course lists every active option, whether or not its sale window is open. */
|
|
619
754
|
function wholeSeriesPriceOptions(pricing) {
|
|
@@ -754,10 +889,13 @@ function EventFacts({ selection, selected, venue, teamMembers, pricing, showCapa
|
|
|
754
889
|
children: [/* @__PURE__ */ jsx("div", {
|
|
755
890
|
className: "rb-label rb-mb-2",
|
|
756
891
|
children: "Places"
|
|
757
|
-
}), /* @__PURE__ */ jsx("p", { children: formatTotalCapacity(selected.capacity) })]
|
|
892
|
+
}), /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })]
|
|
758
893
|
}) : null,
|
|
759
894
|
pricing,
|
|
760
|
-
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
895
|
+
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
896
|
+
phase: selection.bookingPhase,
|
|
897
|
+
event: selected
|
|
898
|
+
}) : null
|
|
761
899
|
]
|
|
762
900
|
});
|
|
763
901
|
}
|
|
@@ -826,7 +964,7 @@ function runLifecycleLabel(lifecycle) {
|
|
|
826
964
|
* the booking panel beside it says cancelled is the contradiction a visitor
|
|
827
965
|
* actually notices.
|
|
828
966
|
*/
|
|
829
|
-
function BookingState({ phase }) {
|
|
967
|
+
function BookingState({ phase, event }) {
|
|
830
968
|
return /* @__PURE__ */ jsxs("div", {
|
|
831
969
|
className: "rb-mt-6",
|
|
832
970
|
children: [
|
|
@@ -834,7 +972,7 @@ function BookingState({ phase }) {
|
|
|
834
972
|
className: "rb-label rb-mb-2",
|
|
835
973
|
children: "Booking"
|
|
836
974
|
}),
|
|
837
|
-
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "
|
|
975
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }),
|
|
838
976
|
phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
839
977
|
className: "rb-caption",
|
|
840
978
|
children: bookingClosedReason(phase.reason)
|
|
@@ -1113,4 +1251,4 @@ function withLookParts(props, arrangement) {
|
|
|
1113
1251
|
};
|
|
1114
1252
|
}
|
|
1115
1253
|
//#endregion
|
|
1116
|
-
export {
|
|
1254
|
+
export { eventCardListContent as a, derivePreviewRunSchedule as c, isBookableEvent as d, eventHeaderSlotParents as i, formatEventQuickDate as l, resolveEventDetailsPresentation as n, offeringDatesBySeries as o, lookPartShown as r, deriveEventScheduleSummary as s, EventDetailsView as t, selectQuickDateEvents as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
4
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
2
|
+
import { Ji as listLookSlot, d as membershipClassesLabel, f as passCardListContent, u as membershipCardListContent } from "./display-B5DfNb6A.mjs";
|
|
3
|
+
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
4
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-sKBofjiW.mjs";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { n as ThemedButton, nt as SpinnerNode } from "./ThemedButton-
|
|
3
|
+
import { n as ThemedButton, nt as SpinnerNode } from "./ThemedButton-CVYz7h68.mjs";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/pure.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ft as locationPinSchema } from "./lucide-react-BCNn8dEQ.mjs";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../editor-blocks/src/widgets/location/editMapDecision.ts
|
package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-
|
|
3
|
+
import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-BCNn8dEQ.mjs";
|
|
4
|
+
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-D4F_5rnr.mjs";
|
|
5
5
|
import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal } from "react-dom";
|
package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-D59tHj_L.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { A as LoaderCircle, F as Italic$1, G as FileText, Gt as
|
|
5
|
-
import {
|
|
6
|
-
import { A as
|
|
3
|
+
import { $_ as authoredValuesEqual, A_ as getDirectImageUrlForMediaAsset, Ah as useControllableState, Bm as DialogHeader, C as selectedImageFromMediaValue, Cf as plainTextToInlineText, Cg as surfaceForegroundValue, Cm as unwrapResponse, Cy as assertNever, D_ as formatAspectRatioToken, Dy as unsafeAsMediaAssetId, E_ as normalizeRightAngle, Ef as truncateInlineText, F as nextLookTilePin, Fm as Dialog, Fn as defaultBackgroundOverrideForMode, Gm as DialogClose, Hn as rankBackgroundImagePoolItems, Ih as Button, It as getDashboardBaseUrl, Jm as DialogOverlay, Km as DialogContent, L_ as resolveManagedMediaReference, Lm as DialogContent$1, M as lookPositionLabel, Mh as createContextScope, Mm as Callout, Mr as getBlockDefinition, N as lookTilePosition, Nh as composeEventHandlers, Nn as backgroundColorTokens, Np as assertNever$1, O_ as parseAspectRatioValue, Oy as unsafeAsPositiveByteCount, Ph as Primitive, Rh as useControlReadiness, Rm as DialogDescription$1, Sa as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Sh as useSize, T_ as isRotationDimensionSwap, Tf as replaceInlineTextRange, Uh as useComposedRefs, Um as overlayScrimClass, Vm as DialogTitle$1, Wh as cn$2, Wv as unsafeAsEditorBlockId, Xm as DialogTitle, Xt as useEditorUiStore, Ym as DialogPortal, Zt as useEditorUiStoreInstance, _f as inlineTextHighlightTones, ah as __extends, b as pageDesignLookPosition, ba as resolveMediaStorageUrl, bf as normalizeInlineText, ch as __rest, cp as gradientToCss, ef as RichTextDocSchema, ff as applyInlineTextMarkToRange, gf as inlineTextEqual, hf as inlineTextAccentTones, i as usePreviewSidebarNavigation, ih as __awaiter, j_ as getImageUrl, k as usePreviewRenderBackgrounds, k_ as resolveMediaTransformForAspect, lh as __spreadArray, nf as richTextVariantCapabilities, o as usePreviewPageDesignEditorState, oh as __generator, ov as generateUuidV4, pa as computeMediaTransformStyle, q_ as asLayoutVariantKey, qm as DialogDescription, rh as __assign, sh as __read, th as usePortalContainer, tp as getCuratedSiteStyle, ua as getRichTextImageSize, uh as __spreadArrays, up as getGradientPreset, va as resolveImageUrlWithContext, vf as inlineTextToPlainText, w as selectedImageFromRenderableAsset, wf as removeInlineTextMarkFromRange, wm as selectedCanvasBlockId, xf as normalizeInlineTextMarks, y as cyclePageDesignBlockLook, z_ as mediaIdentifierSchema, zh as cva } from "./previewAssistantSlot-Caofnr1Z.mjs";
|
|
4
|
+
import { A as LoaderCircle, F as Italic$1, G as FileText, Gt as err, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, Kt as ok, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, St as Archive, W as File, Y as FileArchive, Z as EyeOff, a as Upload, c as Trash2, dt as ChevronRight, ft as ChevronLeft, j as List, mt as Check, n as X, q as FilePlay, s as TriangleAlert, tt as Crop, v as Plus, vt as Bold$1, y as Pencil } from "./lucide-react-BCNn8dEQ.mjs";
|
|
5
|
+
import { I as siteColourCss, O as usePreviewCompiledThemeOptional, Tn as classifyKnownMimeType, Ut as readThemeScopeContext, Xt as CHOSEN_OPTION_CLASS, a as PreviewChromeFloatingControl, an as usePrevious, c as measureSiteTopChromeClearance, en as Select, et as useMediaEditor, f as CustomizeBackgroundColorPicker, fn as useFieldDescribedBy, in as SelectValue, ln as Input, nn as SelectItem, nt as useApiMediaUploader, rn as SelectTrigger, rt as TransferError, s as readThemeCustomProperties, tn as SelectContent, tt as useMediaEditorOptional, u as planBlockToolbarPlacement } from "./SiteChromeCustomizeButton-CrgS3I8d.mjs";
|
|
6
|
+
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-CCEMkosU.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";
|
|
@@ -31162,21 +31162,25 @@ function useMediaQuery(query) {
|
|
|
31162
31162
|
//#endregion
|
|
31163
31163
|
//#region ../preview-next/src/client/blocks/BlockReadinessNote.tsx
|
|
31164
31164
|
/**
|
|
31165
|
-
* The canvas note on a block
|
|
31166
|
-
*
|
|
31165
|
+
* The canvas note on a block visitors can't see: only editors see it, and it
|
|
31166
|
+
* sits inside the block so it moves with it. Something to set up is a warning;
|
|
31167
|
+
* a block hidden by the editor's own choice gets a quiet note.
|
|
31167
31168
|
*/
|
|
31168
|
-
function BlockReadinessNote({
|
|
31169
|
-
if (!
|
|
31169
|
+
function BlockReadinessNote({ notice, element, blockName, onOpen }) {
|
|
31170
|
+
if (!notice || !element) return null;
|
|
31171
|
+
const warning = notice.kind === "NeedsSetup";
|
|
31172
|
+
const Icon = warning ? TriangleAlert : EyeOff;
|
|
31173
|
+
const label = blockNoticeLabel(notice);
|
|
31170
31174
|
return createPortal(/* @__PURE__ */ jsx("div", {
|
|
31171
|
-
className: "builder-dashboard-chrome-theme absolute left-4 top-4 z-20 max-w-[22rem] overflow-hidden rounded-md text-left font-sans shadow-md",
|
|
31175
|
+
className: "builder-dashboard-chrome-theme absolute left-4 top-4 z-20 max-w-[22rem] overflow-hidden rounded-md bg-background text-left font-sans shadow-md",
|
|
31172
31176
|
children: /* @__PURE__ */ jsxs(Callout, {
|
|
31173
|
-
tone: "warning",
|
|
31177
|
+
tone: warning ? "warning" : "default",
|
|
31174
31178
|
role: "note",
|
|
31175
|
-
"aria-label": `${blockName}: ${
|
|
31179
|
+
"aria-label": `${blockName}: ${label}`,
|
|
31176
31180
|
"data-preview-readiness-note": "",
|
|
31177
31181
|
className: "flex gap-2.5 p-3 leading-snug",
|
|
31178
|
-
children: [/* @__PURE__ */ jsx(
|
|
31179
|
-
className: "mt-0.5 size-4 shrink-0 text-warning",
|
|
31182
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
31183
|
+
className: warning ? "mt-0.5 size-4 shrink-0 text-warning" : "mt-0.5 size-4 shrink-0 text-muted-foreground",
|
|
31180
31184
|
"aria-hidden": "true"
|
|
31181
31185
|
}), /* @__PURE__ */ jsxs("div", {
|
|
31182
31186
|
className: "min-w-0 space-y-1.5 text-sm",
|
|
@@ -31188,11 +31192,11 @@ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
|
|
|
31188
31192
|
" ",
|
|
31189
31193
|
/* @__PURE__ */ jsxs("span", {
|
|
31190
31194
|
className: "font-normal text-muted-foreground",
|
|
31191
|
-
children: ["· ",
|
|
31195
|
+
children: ["· ", label]
|
|
31192
31196
|
})
|
|
31193
31197
|
]
|
|
31194
31198
|
}),
|
|
31195
|
-
/* @__PURE__ */ jsx("p", { children:
|
|
31199
|
+
/* @__PURE__ */ jsx("p", { children: blockNoticeMessage(notice) }),
|
|
31196
31200
|
/* @__PURE__ */ jsx("p", {
|
|
31197
31201
|
className: "text-xs text-muted-foreground",
|
|
31198
31202
|
children: "You're seeing this because you're editing."
|
|
@@ -31200,8 +31204,9 @@ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
|
|
|
31200
31204
|
/* @__PURE__ */ jsx(Button, {
|
|
31201
31205
|
type: "button",
|
|
31202
31206
|
size: "sm",
|
|
31203
|
-
|
|
31204
|
-
|
|
31207
|
+
variant: warning ? "default" : "outline",
|
|
31208
|
+
onClick: onOpen,
|
|
31209
|
+
children: blockNoticeAction(notice)
|
|
31205
31210
|
})
|
|
31206
31211
|
]
|
|
31207
31212
|
})]
|
|
@@ -31282,7 +31287,7 @@ function revealWhenShown(marker) {
|
|
|
31282
31287
|
//#region ../preview-next/src/client/blocks/BlockToolbar.tsx
|
|
31283
31288
|
function BlockToolbar(input) {
|
|
31284
31289
|
const { selection, controls, toolbar, open, openField, cycleSdk, cycleRecipe } = useBlockToolbar(input);
|
|
31285
|
-
const
|
|
31290
|
+
const notice = useBlockNotice(input.blockId);
|
|
31286
31291
|
const name = controls.manifest?.title ?? getBlockDefinition(input.blockKind)?.manifest.title ?? input.blockKind;
|
|
31287
31292
|
const row = /* @__PURE__ */ jsxs(EditorCanvasChipRow, {
|
|
31288
31293
|
label: `${name} controls`,
|
|
@@ -31314,10 +31319,10 @@ function BlockToolbar(input) {
|
|
|
31314
31319
|
element: selection.blockElement
|
|
31315
31320
|
}),
|
|
31316
31321
|
/* @__PURE__ */ jsx(BlockReadinessNote, {
|
|
31317
|
-
|
|
31322
|
+
notice,
|
|
31318
31323
|
element: selection.blockElement,
|
|
31319
31324
|
blockName: name,
|
|
31320
|
-
|
|
31325
|
+
onOpen: () => notice?.repair.kind === "field" ? openField(notice.repair.path) : open()
|
|
31321
31326
|
}),
|
|
31322
31327
|
/* @__PURE__ */ jsx(InsertionMarker, {
|
|
31323
31328
|
blockId: input.blockId,
|