@riverbankcms/sdk 0.171.1 → 0.173.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-O50mTMCY.d.ts} +1 -1
- package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-Bk99sJwV.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
- package/dist/_dts/{client-CXPH5esD.d.ts → client-ZlNEIvlU.d.ts} +1002 -140
- package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DBXPNc0h.d.ts} +3 -3
- package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
- package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-BnatulTs.d.ts} +3 -3
- package/dist/_dts/{index-Sua-7CF1.d.ts → index-C611wjIL.d.ts} +1 -1
- package/dist/_dts/{index-C9_OTCFQ.d.ts → index-CJzs-yIJ.d.ts} +2 -2
- package/dist/_dts/{index-B3gfKNI-.d.ts → index-DW3eeNph.d.ts} +4 -4
- package/dist/_dts/{index-DlABXDte.d.ts → index-Dq_AboWN.d.ts} +1 -1
- package/dist/_dts/{index-DScYSl03.d.ts → index-DutLU2d2.d.ts} +49 -38
- package/dist/_dts/{index-BQPJbOkU.d.ts → index-KXh8FQ2s.d.ts} +2 -2
- package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-Bde2y870.d.ts} +7 -7
- package/dist/_dts/{request-DUTkELQn.d.ts → request-Bysk4QPI.d.ts} +2862 -508
- package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-CGa6QMgc.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 +6 -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-JD-36x3P.d.ts → types-BoEk9ZON.d.ts} +3 -3
- package/dist/_dts/{types-BCzfYDW2.d.ts → types-BwitGNTl.d.ts} +7 -7
- package/dist/_dts/{types-CPHk5Voq.d.ts → types-kpp8XyXv.d.ts} +2 -2
- package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-ChftKX-o.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-LHQMODqB.mjs} +14 -8
- package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-BewbU_cV.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +42 -35
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +23 -23
- package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-CaI6upCX.mjs} +12 -11
- package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-CoRUaYHY.mjs} +12 -11
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-Doe4KodB.mjs} +60 -25
- package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
- package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
- package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BmfyK7S5.mjs} +220 -81
- package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +847 -146
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-CdRPU6gp.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
- package/dist/client/{Page-CT4HaEMr.mjs → Page-D46Dmr7b.mjs} +1976 -532
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CrSZCZn1.mjs} +83 -12
- 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-D4DhWo9j.mjs} +37 -38
- package/dist/client/{accordion-BOApxi9U.mjs → accordion-P8xcfKxq.mjs} +1 -1
- package/dist/client/bookability-SargNwlO.mjs +17 -0
- package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-BM2s-NqR.mjs} +33 -29
- package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-JnaZPZge.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
- package/dist/client/{carousel-DeI76SEP.mjs → carousel-CQQ_m0KA.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-D_uxULCO.mjs → cart-0Q4fjw_K.mjs} +3 -3
- package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BI0IaHX3.mjs} +1 -1
- package/dist/client/{checkout-DIbh4g5e.mjs → checkout-1J-3ftxF.mjs} +3 -3
- package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
- package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
- package/dist/client/client.mjs +183 -4
- package/dist/client/{context-Dzjv2CpA.mjs → context-D0KCgbOq.mjs} +94 -14
- package/dist/client/course-CmOuoZHN.mjs +237 -0
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
- package/dist/client/{display-ChgDe9Da.mjs → display-lL-YRApN.mjs} +4460 -888
- package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +139 -16
- package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
- package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-GuuElczW.mjs} +1316 -554
- package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
- package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
- package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BJpAD10-.mjs} +2 -2
- package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-jLB8iRqp.mjs} +4 -4
- package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
- package/dist/client/{form-ERv_X_oZ.mjs → form-DO6qKH3M.mjs} +3 -3
- package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D12ljYiX.mjs} +4 -4
- package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-C8QHaQOI.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-BnhfIpCa.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BtFWtoUm.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-oHrqM_Ao.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-D5U-FuVy.mjs} +2 -2
- package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CN0o0yjH.mjs} +131 -12
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
- package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
- package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-DaqM-LgL.mjs} +3 -3
- package/dist/client/{productList-HoFGQXFl.mjs → productList-CMx4-XlG.mjs} +3 -3
- package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
- package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cdot3dMk.mjs} +2705 -2397
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +38 -63
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
- package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
- package/dist/client/{shop-DXyeSNgi.mjs → shop-Cy6xXDM7.mjs} +3 -3
- package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-oDR76k1q.mjs} +13 -12
- package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
- package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-Brha4BSM.mjs} +13 -12
- package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-CXhYl0DW.mjs} +218 -89
- package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-JCa_SRhP.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-CZeJwMxP.mjs} +11 -11
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
- package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
- package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-CCAGQHsD.mjs} +6 -6
- package/dist/client/{view-DhEwiTJG.mjs → view-D6yebI4r.mjs} +223 -65
- package/dist/client/{view-C_brMDU2.mjs → view-Sw075FOY.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-DG2rXUmo.mjs} +48 -36
- package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +113 -416
- package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI-CqZCfOaz.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-Bv2HZ7JY.mjs} +313 -64
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +300 -174
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +3246 -1079
- 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-La6MerV_.mjs} +11994 -6013
- package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-BkckHox4.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CPAHgGqI.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-BDkuSZxQ.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-CPV30ABr.mjs} +179 -0
- package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-BaMMstO1.mjs} +5 -5
- 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-Dge4sqel.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-DCwLR0kQ.mjs → client-VVIQjC4r.mjs} +183 -4
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -3
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-BIJb3WAK.mjs} +19 -15
- package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-DjTU19y7.mjs} +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- 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-1Ru3NMQj.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-CytPhrI9.mjs} +1084 -351
- package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +4 -3
- package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-Bhx8bVe1.mjs} +1187 -902
- package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +2 -2
- package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-BjvFb0CA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
- package/dist/server/{registry-CaeRTf4E.mjs → registry-BMCfcev6.mjs} +10282 -7366
- 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 +8 -8
- package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData--yUbI-Ll.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-CxBsE9Dv.mjs → schema-D5Vfmqzw.mjs} +396 -2
- 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-EgTtnTcY.mjs} +5 -5
- package/dist/server/{version-Clp2evCf.mjs → version-LjgU0Cq1.mjs} +1 -1
- package/dist/styles/index.css +1434 -15
- package/package.json +1 -1
- package/dist/client/cta-CP9l112u.mjs +0 -121
- 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
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Gt as EventQuickFacts, Wt as MediaNodeServer, ct as closedRunCopy, in as formatEventPriceDisplay, nn as formatEventPrice, ot as formatBookingSchedulePresentation, rn as formatEventPriceAmount, tn as formatCoursePrice, zt as CardListContentPart } from "./shop.interactive-CXhYl0DW.mjs";
|
|
3
|
+
import { $r as formatTotalCapacity, Cc as formatBookingPriceDisplay, Dc as publicEventPricingDisplay, Ec as publicEventPricingCurrency, Gr as formatTime, Hr as formatEventRunDates, La as resolveEventRegistrationScopedEvents, Nr as eventDateOptions, Rr as formatEventCompactDateRail, Tc as isPublicEventPricingOptionDisplayable, Ur as formatEventTimeRange, Wa as listLookSlot, Zr as formatEventRemainingPlaces, dc as resolveWholeSeriesBookingPhase, ei as getEventAvailability, kc as publicEventPricingType, lc as nextLiveRunSessionStartMs, ri as isEventFull, sc as CANCELLED_SESSION_STATUS, ti as getEventAvailabilityStatus, uc as orderedLiveRunSessions, yr as ImagePresets, zr as formatEventDateParts } from "./display-lL-YRApN.mjs";
|
|
4
|
+
import { $t as getBookingLocalDateKey, Jt as toScheduledBookingDateTime, Rt as formatDate, Vt as formatDateTimeRange, Zt as compareLocalScheduleDates, an as toBookingTimeZone, en as getLocalScheduleDate, fn as formatCurrencyAmount, rn as resolveBookingBusinessTimeZone, sn as toUtcIsoDateTimeString, zt as formatDateRange } from "./noop-CN0o0yjH.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 {
|
|
9
|
-
import { a as
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-CdRPU6gp.mjs";
|
|
8
|
+
import { t as isBookableEvent } from "./bookability-SargNwlO.mjs";
|
|
9
|
+
import { a as formatMoreDates, c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, t as eventDisplayTitle } from "./course-CmOuoZHN.mjs";
|
|
10
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DCLtxOnt.mjs";
|
|
10
11
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
12
|
import "react";
|
|
12
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -53,6 +54,39 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
|
53
54
|
mode: "completed"
|
|
54
55
|
} : null;
|
|
55
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Select the next occurrence-targeted events for a quick-book rail.
|
|
59
|
+
*
|
|
60
|
+
* The API normally returns valid timestamps, but malformed values sort after
|
|
61
|
+
* valid events so one bad record cannot displace an otherwise useful rail.
|
|
62
|
+
* Sorting before deduplication means a duplicate occurrence keeps its earliest
|
|
63
|
+
* deterministic representation.
|
|
64
|
+
*/
|
|
65
|
+
function selectQuickDateEvents(events) {
|
|
66
|
+
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
|
|
67
|
+
}
|
|
68
|
+
/** Shared ordering and identity selection, independent of booking capacity. */
|
|
69
|
+
function orderedUniqueEventOccurrences(events) {
|
|
70
|
+
const sorted = [...events].sort(compareQuickDateEvents);
|
|
71
|
+
return sorted.filter((event, index) => sorted.findIndex((candidate) => candidate.occurrenceId === event.occurrenceId) === index);
|
|
72
|
+
}
|
|
73
|
+
function formatEventQuickDate(event, style = "legacy") {
|
|
74
|
+
const options = eventDateOptions(event);
|
|
75
|
+
const dateRail = formatEventCompactDateRail(event.startsAt, options, style === "site" ? "as-written" : "capitals");
|
|
76
|
+
return {
|
|
77
|
+
dateTime: event.startsAt,
|
|
78
|
+
label: `${dateRail.weekday} ${dateRail.day} ${dateRail.month}, ${formatTime(event.startsAt, options)}`
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function compareQuickDateEvents(left, right) {
|
|
82
|
+
const startsAtOrder = compareTimestamp(left.startsAt, right.startsAt);
|
|
83
|
+
return startsAtOrder === 0 ? left.occurrenceId.localeCompare(right.occurrenceId) : startsAtOrder;
|
|
84
|
+
}
|
|
85
|
+
function compareTimestamp(left, right) {
|
|
86
|
+
const leftTime = Date.parse(left);
|
|
87
|
+
const rightTime = Date.parse(right);
|
|
88
|
+
return (Number.isNaN(leftTime) ? Number.POSITIVE_INFINITY : leftTime) - (Number.isNaN(rightTime) ? Number.POSITIVE_INFINITY : rightTime);
|
|
89
|
+
}
|
|
56
90
|
//#endregion
|
|
57
91
|
//#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
|
|
58
92
|
/**
|
|
@@ -95,6 +129,7 @@ function derivePreviewRunSchedule(event) {
|
|
|
95
129
|
first,
|
|
96
130
|
last,
|
|
97
131
|
sessionCount: sessions.length,
|
|
132
|
+
sessions,
|
|
98
133
|
authoredSummary
|
|
99
134
|
};
|
|
100
135
|
return {
|
|
@@ -115,10 +150,64 @@ function isValidOccurrence(value) {
|
|
|
115
150
|
return Number.isFinite(Date.parse(value.startsAt)) && Number.isFinite(Date.parse(value.endsAt));
|
|
116
151
|
}
|
|
117
152
|
//#endregion
|
|
153
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
|
|
154
|
+
/** A bounded display sample only: capacity and booking admission belong to the booking destination. */
|
|
155
|
+
function offeringDatesBySeries(events, now, booking) {
|
|
156
|
+
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
157
|
+
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))]));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* A course's dates on a card: its first upcoming session, then how many more
|
|
161
|
+
* follow ("and 5 more"). One booking covers every session, so the places left
|
|
162
|
+
* belong to the course: the card says them once, from its own booking decision,
|
|
163
|
+
* never per date.
|
|
164
|
+
*/
|
|
165
|
+
function offeringRunDates(event, now) {
|
|
166
|
+
if (event.bookingScope !== "whole_series") return {
|
|
167
|
+
dates: [],
|
|
168
|
+
datesMore: null
|
|
169
|
+
};
|
|
170
|
+
const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
|
|
171
|
+
const upcoming = nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart);
|
|
172
|
+
const [first] = upcoming;
|
|
173
|
+
if (!first) return {
|
|
174
|
+
dates: [],
|
|
175
|
+
datesMore: null
|
|
176
|
+
};
|
|
177
|
+
return {
|
|
178
|
+
dates: [offeringDateRow(first, event, null)],
|
|
179
|
+
datesMore: formatMoreDates(upcoming.length - 1)
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function offeringDateRow(session, event, places, booking) {
|
|
183
|
+
const options = eventDateOptions({
|
|
184
|
+
...event,
|
|
185
|
+
timeZone: session.timeZone
|
|
186
|
+
});
|
|
187
|
+
const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
|
|
188
|
+
const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
|
|
189
|
+
const bookingLink = booking?.(event, label) ?? null;
|
|
190
|
+
return {
|
|
191
|
+
startsAt: session.startsAt,
|
|
192
|
+
label,
|
|
193
|
+
...bookingLink ? { booking: bookingLink } : {},
|
|
194
|
+
places
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/** A single occurrence's row is its own booking, so it reports that occurrence's capacity. */
|
|
198
|
+
function occurrencePlaces(event) {
|
|
199
|
+
const capacity = getEventAvailability(event);
|
|
200
|
+
const status = getEventAvailabilityStatus(event);
|
|
201
|
+
return capacity.available === null ? null : {
|
|
202
|
+
label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
|
|
203
|
+
status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
118
207
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
|
|
119
208
|
/** Live offering data only; editorial cards never acquire booking fields. */
|
|
120
209
|
function eventCardListContent(event, context, buttonText) {
|
|
121
|
-
const { content, external } = cardProjectionBase(event, buttonText, context
|
|
210
|
+
const { content, external } = cardProjectionBase(event, buttonText, context);
|
|
122
211
|
switch (context.kind) {
|
|
123
212
|
case "event-details": return {
|
|
124
213
|
...content,
|
|
@@ -133,29 +222,46 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
133
222
|
chips: offeringTypeChips(event, context.typeLabel),
|
|
134
223
|
leadDate: offeringLeadDate(event, context.nextStartMs),
|
|
135
224
|
newTabHint: external,
|
|
136
|
-
...offeringSchedule(event, context.now)
|
|
225
|
+
...offeringSchedule(event, context.now),
|
|
226
|
+
...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
|
|
137
227
|
};
|
|
138
228
|
default: return assertNever(context);
|
|
139
229
|
}
|
|
140
230
|
}
|
|
141
231
|
function cardProjectionBase(event, buttonText, context) {
|
|
142
|
-
const offering = context !== "event-details";
|
|
143
|
-
const { cta, availability: places } =
|
|
232
|
+
const offering = context.kind !== "event-details";
|
|
233
|
+
const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
|
|
234
|
+
const titleLink = resolveEventLinkProps(event);
|
|
235
|
+
const { title, runName } = eventDisplayTitle(event);
|
|
144
236
|
return {
|
|
145
237
|
external: cta.external,
|
|
146
238
|
content: {
|
|
147
239
|
id: event.occurrenceId || event.id,
|
|
148
|
-
title
|
|
149
|
-
|
|
240
|
+
title,
|
|
241
|
+
subtitle: runName,
|
|
242
|
+
...titleLink.href ? { titleLink } : {},
|
|
150
243
|
quickFacts: event.facts,
|
|
151
244
|
text: event.presentation?.summary ?? event.description,
|
|
152
245
|
media: event.presentation?.image,
|
|
153
246
|
facts: offeringFacts(event, places?.label, offering),
|
|
154
247
|
availability: places,
|
|
155
|
-
action: cardAction(cta)
|
|
248
|
+
action: cardAction(cta),
|
|
249
|
+
bookingClosed: closed ? cta.label : null
|
|
156
250
|
}
|
|
157
251
|
};
|
|
158
252
|
}
|
|
253
|
+
/** Offering cards carry the render clock; an event's own details show its projected booking state. */
|
|
254
|
+
function cardBooking(event, buttonText, context) {
|
|
255
|
+
switch (context.kind) {
|
|
256
|
+
case "event-details": return resolveEventCardBooking(event, "occurrence", buttonText, { now: null });
|
|
257
|
+
case "catalogue":
|
|
258
|
+
case "offering": return resolveEventCardBooking(event, context.kind === "catalogue" ? "series" : "occurrence", event.destination.kind === "external" ? void 0 : buttonText, {
|
|
259
|
+
now: context.now,
|
|
260
|
+
count: context.count
|
|
261
|
+
});
|
|
262
|
+
default: return assertNever(context);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
159
265
|
function offeringLeadDate(event, startMs) {
|
|
160
266
|
if (startMs === null || !Number.isFinite(startMs)) return null;
|
|
161
267
|
const startsAt = new Date(startMs).toISOString();
|
|
@@ -222,15 +328,27 @@ function scheduleLine(summary, event, now) {
|
|
|
222
328
|
zone
|
|
223
329
|
}) : date(summary.occurrence.startsAt);
|
|
224
330
|
case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
|
|
225
|
-
case "scheduled-run":
|
|
331
|
+
case "scheduled-run": {
|
|
332
|
+
const range = dates(summary.first.startsAt, summary.last.startsAt, "session");
|
|
333
|
+
if (summary.authoredSummary) return `${range} · ${summary.authoredSummary.text}`;
|
|
334
|
+
const clock = regularSessionClock(summary.sessions, event);
|
|
335
|
+
return clock ? `${summary.sessionCount} ${clock.weekday}s, ${range}, ${clock.time}` : `${range} · ${summary.sessionCount} dates · Times vary`;
|
|
336
|
+
}
|
|
226
337
|
}
|
|
227
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* A course's facts are said for the whole course ("6 weekly sessions, 1 hour
|
|
341
|
+
* each", "£72 for the course"), so one session's length never sits beside
|
|
342
|
+
* the price of all of them.
|
|
343
|
+
*/
|
|
228
344
|
function offeringFacts(event, places, offering) {
|
|
345
|
+
const course = event.bookingScope === "whole_series";
|
|
346
|
+
const sessions = formatCourseSessions(event);
|
|
229
347
|
return [
|
|
230
|
-
...
|
|
348
|
+
...sessions ? [{
|
|
231
349
|
label: "Length",
|
|
232
|
-
value:
|
|
233
|
-
}] :
|
|
350
|
+
value: sessions
|
|
351
|
+
}] : lengthFact(event, !offering || course),
|
|
234
352
|
...offering && event.venue ? [{
|
|
235
353
|
label: "Venue",
|
|
236
354
|
value: event.venue.name
|
|
@@ -242,10 +360,17 @@ function offeringFacts(event, places, offering) {
|
|
|
242
360
|
}] : [],
|
|
243
361
|
...offering && event.pricing.kind === "external" ? [] : [{
|
|
244
362
|
label: "Price",
|
|
245
|
-
value: formatEventPriceDisplay(event.pricing)
|
|
363
|
+
value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
|
|
246
364
|
}]
|
|
247
365
|
];
|
|
248
366
|
}
|
|
367
|
+
function lengthFact(event, shown) {
|
|
368
|
+
const minutes = Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4);
|
|
369
|
+
return shown && minutes > 0 ? [{
|
|
370
|
+
label: "Length",
|
|
371
|
+
value: formatEventDuration(event, "readable")
|
|
372
|
+
}] : [];
|
|
373
|
+
}
|
|
249
374
|
function offeringTypeChips(event, typeLabel) {
|
|
250
375
|
return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
|
|
251
376
|
}
|
|
@@ -256,6 +381,31 @@ function cardAction(cta) {
|
|
|
256
381
|
external: cta.external
|
|
257
382
|
};
|
|
258
383
|
}
|
|
384
|
+
/** Compare each session in its own local zone, so regular clocks survive DST changes. Null when sessions differ. */
|
|
385
|
+
function regularSessionClock(sessions, event) {
|
|
386
|
+
const clocks = sessions.map((session) => {
|
|
387
|
+
const context = {
|
|
388
|
+
...eventDateOptions({
|
|
389
|
+
...event,
|
|
390
|
+
timeZone: session.timeZone
|
|
391
|
+
}),
|
|
392
|
+
zone: "omit"
|
|
393
|
+
};
|
|
394
|
+
return {
|
|
395
|
+
weekday: formatDate({
|
|
396
|
+
kind: "instant",
|
|
397
|
+
value: toUtcIsoDateTimeString(session.startsAt)
|
|
398
|
+
}, context, {
|
|
399
|
+
date: "omit",
|
|
400
|
+
weekday: "long",
|
|
401
|
+
year: "omit"
|
|
402
|
+
}),
|
|
403
|
+
time: formatEventTimeRange(session, context)
|
|
404
|
+
};
|
|
405
|
+
});
|
|
406
|
+
const first = clocks[0];
|
|
407
|
+
return first && clocks.every((clock) => clock.weekday === first.weekday && clock.time === first.time) ? first : null;
|
|
408
|
+
}
|
|
259
409
|
//#endregion
|
|
260
410
|
//#region ../blocks/src/system/runtime/nodes/event-details/headerContent.ts
|
|
261
411
|
/** Project selected live data; booking decisions stay with the existing event owners. */
|
|
@@ -379,6 +529,53 @@ const eventHeaderSlotParents = {
|
|
|
379
529
|
"item-media": "frame"
|
|
380
530
|
};
|
|
381
531
|
//#endregion
|
|
532
|
+
//#region ../blocks/src/system/customize/lookParts.ts
|
|
533
|
+
const lookParts = {
|
|
534
|
+
"block.hero": [{
|
|
535
|
+
part: "more photos",
|
|
536
|
+
fields: ["morePhotos"],
|
|
537
|
+
shownIn: ["photo-trio"]
|
|
538
|
+
}],
|
|
539
|
+
"block.cta-full": [{
|
|
540
|
+
part: "figure",
|
|
541
|
+
fields: ["figure", "figureNote"],
|
|
542
|
+
shownIn: ["figure"]
|
|
543
|
+
}],
|
|
544
|
+
"block.location-map": [{
|
|
545
|
+
part: "entrance photo",
|
|
546
|
+
fields: ["entrancePhoto"],
|
|
547
|
+
shownIn: ["photo-and-details"]
|
|
548
|
+
}],
|
|
549
|
+
"block.feature-cards": [{
|
|
550
|
+
part: "eyebrow",
|
|
551
|
+
fields: ["eyebrow"],
|
|
552
|
+
shownIn: [
|
|
553
|
+
"lead-support",
|
|
554
|
+
"index",
|
|
555
|
+
"sequence",
|
|
556
|
+
"slides",
|
|
557
|
+
"track"
|
|
558
|
+
]
|
|
559
|
+
}],
|
|
560
|
+
"block.event-details": [{
|
|
561
|
+
part: "title",
|
|
562
|
+
fields: ["showTitle"],
|
|
563
|
+
shownIn: ["details-panel"]
|
|
564
|
+
}, {
|
|
565
|
+
part: "description",
|
|
566
|
+
fields: ["showDescription"],
|
|
567
|
+
shownIn: ["details-panel"]
|
|
568
|
+
}]
|
|
569
|
+
};
|
|
570
|
+
/** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
|
|
571
|
+
function fieldsNotShownIn(blockKind, arrangement) {
|
|
572
|
+
if (arrangement === null) return [];
|
|
573
|
+
return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
|
|
574
|
+
}
|
|
575
|
+
function lookPartShown(blockKind, field, arrangement) {
|
|
576
|
+
return !fieldsNotShownIn(blockKind, arrangement).includes(field);
|
|
577
|
+
}
|
|
578
|
+
//#endregion
|
|
382
579
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
|
|
383
580
|
function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
|
|
384
581
|
const categories = eligibleCategoryIds ?? [];
|
|
@@ -572,48 +769,6 @@ function resolveEventDetailsPresentation(input) {
|
|
|
572
769
|
};
|
|
573
770
|
}
|
|
574
771
|
//#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
772
|
//#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
|
|
618
773
|
/** A course lists every active option, whether or not its sale window is open. */
|
|
619
774
|
function wholeSeriesPriceOptions(pricing) {
|
|
@@ -754,10 +909,13 @@ function EventFacts({ selection, selected, venue, teamMembers, pricing, showCapa
|
|
|
754
909
|
children: [/* @__PURE__ */ jsx("div", {
|
|
755
910
|
className: "rb-label rb-mb-2",
|
|
756
911
|
children: "Places"
|
|
757
|
-
}), /* @__PURE__ */ jsx("p", { children: formatTotalCapacity(selected.capacity) })]
|
|
912
|
+
}), /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })]
|
|
758
913
|
}) : null,
|
|
759
914
|
pricing,
|
|
760
|
-
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
915
|
+
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
916
|
+
phase: selection.bookingPhase,
|
|
917
|
+
event: selected
|
|
918
|
+
}) : null
|
|
761
919
|
]
|
|
762
920
|
});
|
|
763
921
|
}
|
|
@@ -826,7 +984,7 @@ function runLifecycleLabel(lifecycle) {
|
|
|
826
984
|
* the booking panel beside it says cancelled is the contradiction a visitor
|
|
827
985
|
* actually notices.
|
|
828
986
|
*/
|
|
829
|
-
function BookingState({ phase }) {
|
|
987
|
+
function BookingState({ phase, event }) {
|
|
830
988
|
return /* @__PURE__ */ jsxs("div", {
|
|
831
989
|
className: "rb-mt-6",
|
|
832
990
|
children: [
|
|
@@ -834,7 +992,7 @@ function BookingState({ phase }) {
|
|
|
834
992
|
className: "rb-label rb-mb-2",
|
|
835
993
|
children: "Booking"
|
|
836
994
|
}),
|
|
837
|
-
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "
|
|
995
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }),
|
|
838
996
|
phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
839
997
|
className: "rb-caption",
|
|
840
998
|
children: bookingClosedReason(phase.reason)
|
|
@@ -1113,4 +1271,4 @@ function withLookParts(props, arrangement) {
|
|
|
1113
1271
|
};
|
|
1114
1272
|
}
|
|
1115
1273
|
//#endregion
|
|
1116
|
-
export {
|
|
1274
|
+
export { eventCardListContent as a, derivePreviewRunSchedule as c, 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 { Wa as listLookSlot, d as membershipClassesLabel, f as passCardListContent, u as membershipCardListContent } from "./display-lL-YRApN.mjs";
|
|
3
|
+
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
4
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-Doe4KodB.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-DG2rXUmo.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 { $h as DialogContent, $y as unsafeAsEditorBlockId, Ah as unwrapResponse, Bg as composeEventHandlers, C as selectedImageFromMediaValue, Dp as truncateInlineText, Ep as replaceInlineTextRange, F as nextLookTilePin, Fn as defaultBackgroundOverrideForMode, Fv as parseAspectRatioValue, Gg as useControlReadiness, Gh as DialogDescription$1, Hh as Dialog, Hn as rankBackgroundImagePoolItems, Ib as unsafeAsMediaAssetId, It as getDashboardBaseUrl, Iv as resolveMediaTransformForAspect, Jh as DialogTitle$1, Kg as cva, Kv as mediaIdentifierSchema, Lb as unsafeAsPositiveByteCount, Lg as useControllableState, Lv as getDirectImageUrlForMediaAsset, M as lookPositionLabel, Mb as assertNever, Mr as getBlockDefinition, Mv as isRotationDimensionSwap, N as lookTilePosition, Nn as backgroundColorTokens, Nv as normalizeRightAngle, Pv as formatAspectRatioToken, Qh as DialogClose, Rm as assertNever$1, Rv as getImageUrl, Sa as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Sp as normalizeInlineTextMarks, Tp as removeInlineTextMarkFromRange, Ug as Button, Vg as Primitive, Wh as DialogContent$1, Wv as resolveManagedMediaReference, Xg as useComposedRefs, Xh as overlayScrimClass, Xt as useEditorUiStore, Zg as cn$2, Zt as useEditorUiStoreInstance, _g as __spreadArrays, _p as inlineTextEqual, b as pageDesignLookPosition, ba as resolveMediaStorageUrl, cg as usePortalContainer, dg as __awaiter, dm as getGradientPreset, eg as DialogDescription, fg as __extends, gg as __spreadArray, gp as inlineTextAccentTones, hg as __rest, i as usePreviewSidebarNavigation, j_ as surfaceForegroundValue, jh as selectedCanvasBlockId, k as usePreviewRenderBackgrounds, kg as useSize, lm as gradientToCss, mg as __read, my as generateUuidV4, ng as DialogPortal, nm as getCuratedSiteStyle, o as usePreviewPageDesignEditorState, pa as computeMediaTransformStyle, pg as __generator, pp as applyInlineTextMarkToRange, qh as DialogHeader, rg as DialogTitle, rp as richTextVariantCapabilities, sy as authoredValuesEqual, tg as DialogOverlay, tp as RichTextDocSchema, ty as asLayoutVariantKey, ua as getRichTextImageSize, ug as __assign, va as resolveImageUrlWithContext, vp as inlineTextHighlightTones, w as selectedImageFromRenderableAsset, wp as plainTextToInlineText, xp as normalizeInlineText, y as cyclePageDesignBlockLook, yp as inlineTextToPlainText, zg as createContextScope, zh as Callout } from "./previewAssistantSlot-La6MerV_.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 { E as usePreviewCompiledThemeOptional, L as siteColourCss, Tn as classifyKnownMimeType, Wt as readThemeScopeContext, Xt as CHOSEN_OPTION_CLASS, a as PreviewChromeFloatingControl, an as usePrevious, c as measureSiteTopChromeClearance, en as Select, f as CustomizeBackgroundColorPicker, fn as useFieldDescribedBy, in as SelectValue, it as TransferError, ln as Input, nn as SelectItem, nt as useMediaEditorOptional, rn as SelectTrigger, rt as useApiMediaUploader, s as readThemeCustomProperties, tn as SelectContent, tt as useMediaEditor, u as planBlockToolbarPlacement } from "./SiteChromeCustomizeButton-D1MGyN_Z.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-BDkuSZxQ.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";
|
|
@@ -28959,13 +28959,11 @@ function useCropAutosave(props, transform) {
|
|
|
28959
28959
|
};
|
|
28960
28960
|
}
|
|
28961
28961
|
function CropDialogContent(props) {
|
|
28962
|
-
const
|
|
28963
|
-
const transform = reference?.type === "image" ? resolveMediaTransformForAspect(reference.transform, props.aspect) : void 0;
|
|
28962
|
+
const transform = resolveMediaTransformForAspect(props.transform, props.aspect);
|
|
28964
28963
|
const updateSelection = useCropAutosave(props, transform);
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
orientationMode: props.state.crop.source.orientationMode,
|
|
28964
|
+
return props.source ? /* @__PURE__ */ jsx(ImageCropper, {
|
|
28965
|
+
imageUrl: props.source.imageUrl,
|
|
28966
|
+
orientationMode: props.source.orientationMode,
|
|
28969
28967
|
aspect: props.aspect,
|
|
28970
28968
|
initialRect: transform?.rect,
|
|
28971
28969
|
initialHotspot: transform?.hotspot,
|
|
@@ -28981,16 +28979,9 @@ function CropDialogContent(props) {
|
|
|
28981
28979
|
children: "Unable to load image preview"
|
|
28982
28980
|
});
|
|
28983
28981
|
}
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
const sessionKey = JSON.stringify([
|
|
28988
|
-
props.siteId,
|
|
28989
|
-
props.editingSlot,
|
|
28990
|
-
reference.identifier,
|
|
28991
|
-
props.aspect
|
|
28992
|
-
]);
|
|
28993
|
-
const content = /* @__PURE__ */ jsx(CropDialogContent, { ...props }, sessionKey);
|
|
28982
|
+
/** The existing crop/focus editor, also usable before an upload has a durable media identity. */
|
|
28983
|
+
function ImageCropDialog(props) {
|
|
28984
|
+
const content = /* @__PURE__ */ jsx(CropDialogContent, { ...props }, props.sessionKey);
|
|
28994
28985
|
if (props.mode === "inline") return props.open ? /* @__PURE__ */ jsx("div", {
|
|
28995
28986
|
className: "space-y-4",
|
|
28996
28987
|
children: content
|
|
@@ -29008,6 +28999,22 @@ function CropDialog(props) {
|
|
|
29008
28999
|
children: content
|
|
29009
29000
|
});
|
|
29010
29001
|
}
|
|
29002
|
+
function CropDialog(props) {
|
|
29003
|
+
const reference = props.state.resolution?.reference;
|
|
29004
|
+
if (reference?.type !== "image" || props.state.crop.kind === "ineligible") return null;
|
|
29005
|
+
const sessionKey = JSON.stringify([
|
|
29006
|
+
props.siteId,
|
|
29007
|
+
props.editingSlot,
|
|
29008
|
+
reference.identifier,
|
|
29009
|
+
props.aspect
|
|
29010
|
+
]);
|
|
29011
|
+
return /* @__PURE__ */ jsx(ImageCropDialog, {
|
|
29012
|
+
...props,
|
|
29013
|
+
sessionKey,
|
|
29014
|
+
transform: reference.transform,
|
|
29015
|
+
source: props.state.crop.kind === "ready" ? props.state.crop.source : null
|
|
29016
|
+
});
|
|
29017
|
+
}
|
|
29011
29018
|
//#endregion
|
|
29012
29019
|
//#region ../media-editor/src/pickerUploads.ts
|
|
29013
29020
|
/** Batch identity and manual selection have one owner; File identity is irrelevant. */
|
|
@@ -31162,21 +31169,25 @@ function useMediaQuery(query) {
|
|
|
31162
31169
|
//#endregion
|
|
31163
31170
|
//#region ../preview-next/src/client/blocks/BlockReadinessNote.tsx
|
|
31164
31171
|
/**
|
|
31165
|
-
* The canvas note on a block
|
|
31166
|
-
*
|
|
31172
|
+
* The canvas note on a block visitors can't see: only editors see it, and it
|
|
31173
|
+
* sits inside the block so it moves with it. Something to set up is a warning;
|
|
31174
|
+
* a block hidden by the editor's own choice gets a quiet note.
|
|
31167
31175
|
*/
|
|
31168
|
-
function BlockReadinessNote({
|
|
31169
|
-
if (!
|
|
31176
|
+
function BlockReadinessNote({ notice, element, blockName, onOpen }) {
|
|
31177
|
+
if (!notice || !element) return null;
|
|
31178
|
+
const warning = notice.kind === "NeedsSetup";
|
|
31179
|
+
const Icon = warning ? TriangleAlert : EyeOff;
|
|
31180
|
+
const label = blockNoticeLabel(notice);
|
|
31170
31181
|
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",
|
|
31182
|
+
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
31183
|
children: /* @__PURE__ */ jsxs(Callout, {
|
|
31173
|
-
tone: "warning",
|
|
31184
|
+
tone: warning ? "warning" : "default",
|
|
31174
31185
|
role: "note",
|
|
31175
|
-
"aria-label": `${blockName}: ${
|
|
31186
|
+
"aria-label": `${blockName}: ${label}`,
|
|
31176
31187
|
"data-preview-readiness-note": "",
|
|
31177
31188
|
className: "flex gap-2.5 p-3 leading-snug",
|
|
31178
|
-
children: [/* @__PURE__ */ jsx(
|
|
31179
|
-
className: "mt-0.5 size-4 shrink-0 text-warning",
|
|
31189
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
31190
|
+
className: warning ? "mt-0.5 size-4 shrink-0 text-warning" : "mt-0.5 size-4 shrink-0 text-muted-foreground",
|
|
31180
31191
|
"aria-hidden": "true"
|
|
31181
31192
|
}), /* @__PURE__ */ jsxs("div", {
|
|
31182
31193
|
className: "min-w-0 space-y-1.5 text-sm",
|
|
@@ -31188,11 +31199,11 @@ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
|
|
|
31188
31199
|
" ",
|
|
31189
31200
|
/* @__PURE__ */ jsxs("span", {
|
|
31190
31201
|
className: "font-normal text-muted-foreground",
|
|
31191
|
-
children: ["· ",
|
|
31202
|
+
children: ["· ", label]
|
|
31192
31203
|
})
|
|
31193
31204
|
]
|
|
31194
31205
|
}),
|
|
31195
|
-
/* @__PURE__ */ jsx("p", { children:
|
|
31206
|
+
/* @__PURE__ */ jsx("p", { children: blockNoticeMessage(notice) }),
|
|
31196
31207
|
/* @__PURE__ */ jsx("p", {
|
|
31197
31208
|
className: "text-xs text-muted-foreground",
|
|
31198
31209
|
children: "You're seeing this because you're editing."
|
|
@@ -31200,8 +31211,9 @@ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
|
|
|
31200
31211
|
/* @__PURE__ */ jsx(Button, {
|
|
31201
31212
|
type: "button",
|
|
31202
31213
|
size: "sm",
|
|
31203
|
-
|
|
31204
|
-
|
|
31214
|
+
variant: warning ? "default" : "outline",
|
|
31215
|
+
onClick: onOpen,
|
|
31216
|
+
children: blockNoticeAction(notice)
|
|
31205
31217
|
})
|
|
31206
31218
|
]
|
|
31207
31219
|
})]
|
|
@@ -31282,7 +31294,7 @@ function revealWhenShown(marker) {
|
|
|
31282
31294
|
//#region ../preview-next/src/client/blocks/BlockToolbar.tsx
|
|
31283
31295
|
function BlockToolbar(input) {
|
|
31284
31296
|
const { selection, controls, toolbar, open, openField, cycleSdk, cycleRecipe } = useBlockToolbar(input);
|
|
31285
|
-
const
|
|
31297
|
+
const notice = useBlockNotice(input.blockId);
|
|
31286
31298
|
const name = controls.manifest?.title ?? getBlockDefinition(input.blockKind)?.manifest.title ?? input.blockKind;
|
|
31287
31299
|
const row = /* @__PURE__ */ jsxs(EditorCanvasChipRow, {
|
|
31288
31300
|
label: `${name} controls`,
|
|
@@ -31314,10 +31326,10 @@ function BlockToolbar(input) {
|
|
|
31314
31326
|
element: selection.blockElement
|
|
31315
31327
|
}),
|
|
31316
31328
|
/* @__PURE__ */ jsx(BlockReadinessNote, {
|
|
31317
|
-
|
|
31329
|
+
notice,
|
|
31318
31330
|
element: selection.blockElement,
|
|
31319
31331
|
blockName: name,
|
|
31320
|
-
|
|
31332
|
+
onOpen: () => notice?.repair.kind === "field" ? openField(notice.repair.path) : open()
|
|
31321
31333
|
}),
|
|
31322
31334
|
/* @__PURE__ */ jsx(InsertionMarker, {
|
|
31323
31335
|
blockId: input.blockId,
|