@riverbankcms/sdk 0.166.0 → 0.167.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/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bs3WxFgr.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-CwsI23pj.d.ts} +9 -1
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-CAeP_-cV.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-Bmboeb49.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-wbBZ0awa.d.ts → index-ChpjHK0U.d.ts} +498 -74
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index--qflsCiy.d.ts → index-DeHDwMfu.d.ts} +3 -3
- package/dist/_dts/{index-mMMvLLAJ.d.ts → index-RugyUnqR.d.ts} +207 -11
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-CTqcL7CS.d.ts} +7 -7
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-C3s9WMPs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-JPwgRxwh.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 +6 -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 +8 -5
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DuiHLiPo.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-D-WElMCy.d.ts} +7 -7
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-DOWOZYlK.mjs → BookingMailingListNote-CCVXX1LN.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +165 -16
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-DAeQPV76.mjs} +10 -29
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-Bus9R0bj.mjs} +136 -60
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-DPBLjGwj.mjs} +53 -6
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-CEumpN7i.mjs} +13 -40
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +13 -8
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-BVO-qx4q.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D4_H_u9V.mjs} +22658 -21604
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-Dptantmg.mjs} +1 -1
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-BxEGsKUx.mjs} +18 -18
- package/dist/client/{accordion-uVqNowRX.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-BCXwOnhc.mjs} +9 -9
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-Cp9xPBFZ.mjs} +1 -1
- package/dist/client/{cart-DCxjE3Is.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +89 -6
- package/dist/client/{context-n6IZigd3.mjs → context-Cv3QHjAF.mjs} +4 -1
- package/dist/client/{cta-CDeAwYoN.mjs → cta-P2vJVTEn.mjs} +1 -1
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +3 -3
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-dLmyuPap.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-BEhC2_-Y.mjs} +11 -14
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-pZ-9gN33.mjs} +3 -3
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-PXlu6XQO.mjs} +1 -1
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-CSoP0cGR.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +1 -1
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByVtIWf4.mjs} +28 -4
- package/dist/client/portal/client.mjs +8 -8
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-B3vIBkex.mjs} +3 -4
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-B8aQhJpO.mjs} +205 -178
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-B2UmrQg_.mjs} +9 -9
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-BH-BBnA9.mjs} +10 -10
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-mdM3UMWG.mjs} +30 -6
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/client/{site-styles-DELkUk9s.mjs → site-styles-D56hT2u1.mjs} +1637 -406
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-CrC80EOG.mjs} +11 -156
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-C4LOaI_Z.mjs} +2 -2
- package/dist/client/{useBookingNowIso-Da-f9iHw.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-6Q0nToVA.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-Bcs89BR5.mjs} +5 -5
- package/dist/client/{view-DAVEoe8A.mjs → view-BN-fxyfq.mjs} +16 -11
- package/dist/client/{view-8w4GA8rf.mjs → view-Dh2tGoS0.mjs} +3 -3
- package/dist/client/{wizardSteps-DNpajrAH.mjs → wizardSteps-DtkhwKXK.mjs} +17 -10
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-D4VjPs-r.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-Ckr2zk_L.mjs} +309 -111
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-KOZgw_gS.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-CyO2V4kB.mjs} +58 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-DW3uKvNF.mjs} +7 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-CU9VD-7O.mjs} +17439 -16381
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-DBi-WybM.mjs} +2014 -381
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-BhkUJst9.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-BjCb6lOn.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-CKxTaC3j.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-B7MLTjBX.mjs} +1 -92
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-BTUc0g9X.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-Bv3nkdpV.mjs} +83 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-4fMqzltx.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-C72VC_lR.mjs} +756 -64
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-B_Y_dA20.mjs} +300 -97
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-ConMYJ2U.mjs} +1 -1
- package/dist/server/{client-07UeMDzA.mjs → client-Cot-H5fQ.mjs} +88 -5
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-BkaWYEwt.mjs} +4 -4
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-kviUdH8c.mjs} +2 -2
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BTnS09GS.mjs} +2 -2
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-itXZCXs7.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-CDyn7iLy.mjs} +132 -25
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +2 -2
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Q_Vij87H.mjs} +11752 -11549
- package/dist/server/{parseThemeForPersistence-CJMrEkze.mjs → parseThemeForPersistence-CDrF51tJ.mjs} +2 -2
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-DlprLLsc.mjs} +3 -33
- package/dist/server/{registry-TFPJdGQi.mjs → registry-BPFcpn6k.mjs} +1326 -181
- 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-OHlOXlOE.mjs → resolveBlockData-BHvfGD4y.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-OXFRGn5M.mjs} +15 -5
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{schema-C2PqHrMo.mjs → schema-DEizlyi4.mjs} +4 -3
- 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-DIBFZeMB.mjs → validation-bl6WcAi_.mjs} +6 -6
- package/dist/server/{version-DZWZM1H6.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +696 -25
- package/package.json +1 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Cn as formatEventRemainingPlaces, Dn as getEventAvailabilityStatus, Kt as RichText,
|
|
3
|
-
import {
|
|
2
|
+
import { Cn as formatEventRemainingPlaces, Dn as getEventAvailabilityStatus, Kt as RichText, br as resolveDateRuntimeContext, dn as formatEventClockLabel, gn as formatEventTimeRange, kn as isEventFull, sn as eventDateOptions, vn as groupEventsByDate, yn as resolveEventTimeZone } from "./wizardSteps-DtkhwKXK.mjs";
|
|
3
|
+
import { Ct as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, jt as parseLocalScheduleTime, pt as formatDate } from "./noop-ByVtIWf4.mjs";
|
|
4
4
|
import { v as assertNever } from "./src-DjnxOjXG.mjs";
|
|
5
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
6
|
-
import {
|
|
5
|
+
import { t as LocationMapActions } from "./LocationMapActions-BVO-qx4q.mjs";
|
|
6
|
+
import { Ni as textColorStyle } from "./site-styles-D56hT2u1.mjs";
|
|
7
7
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-1PJxc8KO.mjs";
|
|
8
8
|
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton, w as parseThemeButtonVariantId } from "./ThemedButton-8jUc02mZ.mjs";
|
|
9
|
-
import { r as resolveEventLinkProps } from "./cta-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
9
|
+
import { r as resolveEventLinkProps } from "./cta-P2vJVTEn.mjs";
|
|
10
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-CcGaFawl.mjs";
|
|
11
|
+
import { l as formatEventTeacherLine } from "./EventItem-DPBLjGwj.mjs";
|
|
12
|
+
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-DQwJ7BPx.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DHkBtO0G.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { z } from "zod";
|
|
16
|
-
import {
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region ../core/src/opening-hours.ts
|
|
18
18
|
const openingHoursWeekdayLabels = {
|
|
19
19
|
monday: "Monday",
|
|
@@ -193,151 +193,6 @@ function inlineTextMarkEqual(left, right) {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
//#endregion
|
|
196
|
-
//#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
|
|
197
|
-
function MonthEvent({ event, timeZone, locale, presentation }) {
|
|
198
|
-
return /* @__PURE__ */ jsxs("a", {
|
|
199
|
-
...resolveEventLinkProps(event),
|
|
200
|
-
...listLookSlot(presentation, "item"),
|
|
201
|
-
children: [
|
|
202
|
-
/* @__PURE__ */ jsx("span", {
|
|
203
|
-
...listLookSlot(presentation, "time"),
|
|
204
|
-
children: formatTime(event.startsAt, {
|
|
205
|
-
...eventDateOptions({
|
|
206
|
-
...event,
|
|
207
|
-
timeZone
|
|
208
|
-
}),
|
|
209
|
-
locale
|
|
210
|
-
})
|
|
211
|
-
}),
|
|
212
|
-
" ",
|
|
213
|
-
/* @__PURE__ */ jsx("span", {
|
|
214
|
-
...listLookSlot(presentation, "what"),
|
|
215
|
-
children: event.title
|
|
216
|
-
})
|
|
217
|
-
]
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function dateLabel(key, timeZone, date = "short") {
|
|
221
|
-
return formatDate({
|
|
222
|
-
kind: "civil",
|
|
223
|
-
value: parseBookingLocalDate(key)
|
|
224
|
-
}, eventDateOptions({
|
|
225
|
-
siteTimeZone: timeZone,
|
|
226
|
-
timeZone
|
|
227
|
-
}), {
|
|
228
|
-
date,
|
|
229
|
-
weekday: "long"
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function MonthDay(props) {
|
|
233
|
-
const { day, selection } = props;
|
|
234
|
-
const { controls } = selection;
|
|
235
|
-
const selected = day.dateKey === selection.selectedDay;
|
|
236
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
237
|
-
...listLookSlot(selection, "date"),
|
|
238
|
-
"data-current": String(selected),
|
|
239
|
-
"data-today": String(day.isToday),
|
|
240
|
-
"data-other-month": String(!day.isCurrentMonth),
|
|
241
|
-
children: [selection.arrangement === "month-day" ? /* @__PURE__ */ jsx("button", {
|
|
242
|
-
type: "button",
|
|
243
|
-
...listLookSlot(selection, "control"),
|
|
244
|
-
"aria-label": `Show events on ${dateLabel(day.dateKey, selection.timeZone, "long")}`,
|
|
245
|
-
"aria-pressed": selected,
|
|
246
|
-
onClick: controls ? () => controls.selectDay(day.dateKey) : void 0,
|
|
247
|
-
children: day.date.day
|
|
248
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
249
|
-
...listLookSlot(selection, "date-label"),
|
|
250
|
-
children: day.date.day
|
|
251
|
-
}), selection.arrangement === "month-grid" ? /* @__PURE__ */ jsxs(Fragment, { children: [day.visibleEntries.map(({ event, timeZone }, index, entries) => /* @__PURE__ */ jsx(MonthEvent, {
|
|
252
|
-
presentation: listItemPresentation(selection, index, entries.length),
|
|
253
|
-
event,
|
|
254
|
-
timeZone,
|
|
255
|
-
locale: eventDateOptions({ siteTimeZone: selection.timeZone }).locale
|
|
256
|
-
}, event.occurrenceId ?? event.id)), day.moreCount > 0 ? /* @__PURE__ */ jsxs("button", {
|
|
257
|
-
type: "button",
|
|
258
|
-
className: "event-calendar-more",
|
|
259
|
-
...listLookSlot(selection, "more"),
|
|
260
|
-
onClick: controls ? () => controls.openDay(day.date, day.entries.map(({ event }) => event)) : void 0,
|
|
261
|
-
children: [
|
|
262
|
-
"+",
|
|
263
|
-
day.moreCount,
|
|
264
|
-
" more"
|
|
265
|
-
]
|
|
266
|
-
}) : null] }) : /* @__PURE__ */ jsx(MonthDayMarks, {
|
|
267
|
-
count: day.entries.length,
|
|
268
|
-
presentation: selection
|
|
269
|
-
})]
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
/** Both Looks and the legacy month grid consume the same per-day model. */
|
|
273
|
-
function MonthLookView(props) {
|
|
274
|
-
const days = props.days.map((date) => buildMonthDay({
|
|
275
|
-
date,
|
|
276
|
-
events: props.eventsByDate.get(formatDateKey(date)) ?? [],
|
|
277
|
-
viewDate: props.viewDate,
|
|
278
|
-
today: props.today,
|
|
279
|
-
calendarTimeZone: props.timeZone
|
|
280
|
-
}));
|
|
281
|
-
const selected = days.find((day) => day.dateKey === props.selectedDay);
|
|
282
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
283
|
-
...listLookSlot(props, "frame"),
|
|
284
|
-
"data-arrangement": props.arrangement,
|
|
285
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
286
|
-
...listLookSlot(props, "grid"),
|
|
287
|
-
children: [props.dayNames.map((name) => /* @__PURE__ */ jsx("span", {
|
|
288
|
-
...listLookSlot(props, "group-label"),
|
|
289
|
-
children: name
|
|
290
|
-
}, name)), days.map((day) => /* @__PURE__ */ jsx(MonthDay, {
|
|
291
|
-
day,
|
|
292
|
-
selection: props
|
|
293
|
-
}, day.dateKey))]
|
|
294
|
-
}), props.arrangement === "month-day" ? /* @__PURE__ */ jsxs("section", {
|
|
295
|
-
...listLookSlot(props, "panel"),
|
|
296
|
-
"aria-live": "polite",
|
|
297
|
-
children: [/* @__PURE__ */ jsx("h3", {
|
|
298
|
-
...listLookSlot(props, "panel-heading"),
|
|
299
|
-
children: dateLabel(props.selectedDay, props.timeZone)
|
|
300
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
301
|
-
...listLookSlot(props, "list"),
|
|
302
|
-
children: selected?.entries.length ? selected.entries.map(({ event }, index, entries) => /* @__PURE__ */ jsx(EventItem, {
|
|
303
|
-
...listItemPresentation(props, index, entries.length),
|
|
304
|
-
event,
|
|
305
|
-
arrangement: "month-day"
|
|
306
|
-
}, event.occurrenceId ?? event.id)) : /* @__PURE__ */ jsx("p", {
|
|
307
|
-
...listLookSlot(props, "intro"),
|
|
308
|
-
children: props.emptyMessage
|
|
309
|
-
})
|
|
310
|
-
})]
|
|
311
|
-
}) : null]
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
function MonthDayMarks({ count, presentation }) {
|
|
315
|
-
if (count === 0) return null;
|
|
316
|
-
return /* @__PURE__ */ jsx("span", {
|
|
317
|
-
...listLookSlot(presentation, "item-meta"),
|
|
318
|
-
role: "img",
|
|
319
|
-
"aria-label": `${count} ${count === 1 ? "event" : "events"}`,
|
|
320
|
-
children: Array.from({ length: Math.min(count, 3) }, (_, index) => /* @__PURE__ */ jsx("span", {
|
|
321
|
-
...listLookSlot(presentation, "mark"),
|
|
322
|
-
"aria-hidden": "true"
|
|
323
|
-
}, index))
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
function monthSlotParents(arrangement) {
|
|
327
|
-
return {
|
|
328
|
-
frame: null,
|
|
329
|
-
grid: "frame",
|
|
330
|
-
date: "grid",
|
|
331
|
-
panel: "frame",
|
|
332
|
-
list: "panel",
|
|
333
|
-
item: arrangement === "month-grid" ? "date" : "list",
|
|
334
|
-
row: "list",
|
|
335
|
-
"group-label": "grid",
|
|
336
|
-
"item-meta": "date",
|
|
337
|
-
mark: "item-meta"
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
//#endregion
|
|
341
196
|
//#region ../path-utils/src/index.ts
|
|
342
197
|
const PATH_SEPARATOR_REGEX = /\./g;
|
|
343
198
|
const BRACKET_ACCESS_REGEX = /\[([^\]]+)\]/g;
|
|
@@ -1116,4 +971,4 @@ function formatDayLabel(date, timeZone, options) {
|
|
|
1116
971
|
}), options);
|
|
1117
972
|
}
|
|
1118
973
|
//#endregion
|
|
1119
|
-
export {
|
|
974
|
+
export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d, Text as f, plainTextToInlineText as g, parseInlineTextFromUnknown as h, buildWeekBoardViewProps as i, RichTextNode as l, inlineTextToPlainText as m, WeekBoardView as n, RecurringSchedule as o, coerceInlineTextWithFallback as p, buildWeekBoardNavigationState as r, ButtonNode as s, buildTimetableModel as t, TextNode as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { At as parseBookingLocalDate, Dt as formatLocalScheduleDate, Ft as parseUtcIsoDateTimeString, Nt as resolveBookingTimeZoneId, Tt as addLocalScheduleDays, _t as formatTime$1, kt as getLocalScheduleDate, pt as formatDate$1 } from "./noop-ByVtIWf4.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-DjnxOjXG.mjs";
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { n as useBlockApi } from "./context-Cv3QHjAF.mjs";
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
6
6
|
//#region ../core/src/branded/appointments.ts
|
|
7
7
|
const unsafeAsAppointmentServiceId = (id) => id;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { It as toUtcIsoDateTimeString } from "./noop-ByVtIWf4.mjs";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
5
5
|
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { h as ok, m as err } from "./surfaceTransportMarker-BXepAVF6.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-DjnxOjXG.mjs";
|
|
4
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
4
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-DdkY86qI.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { useCallback } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-DdkY86qI.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Bt as
|
|
3
|
-
import { Gt as getBlockApiReadStage, Nr as listLookSlot, jr as listItemPresentation } from "./wizardSteps-
|
|
2
|
+
import { Bt as toEventPaginationLoadError, Ft as eventPageOperationQuery, Gt as normalizeCsvString, It as eventPaginationLoadReducer, Kt as normalizeOptionalId, Lt as getEventIdentity, Pt as createInitialEventPaginationLoadState, Rt as getEventPaginationView, Ut as getEventRuntimeFiltersKey, Vt as toError, Wt as normalizeCsvIds, zt as planEventPageOperation } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { Gt as getBlockApiReadStage, Nr as listLookSlot, jr as listItemPresentation } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
4
|
import { t as assertNever } from "./src-DjnxOjXG.mjs";
|
|
5
5
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
|
|
6
|
-
import { r as EventItem } from "./EventItem-
|
|
7
|
-
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-
|
|
8
|
-
import { n as useBlockApi } from "./context-
|
|
6
|
+
import { r as EventItem } from "./EventItem-DPBLjGwj.mjs";
|
|
7
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CEumpN7i.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-Cv3QHjAF.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Er as resolveEventRegistrationScopedEvents, Hr as orderedLiveRunSessions, Nr as listLookSlot, Tn as formatTotalCapacity, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, fn as formatEventCompactDateRail, ni as publicEventPricingCurrency, pn as formatEventDateParts, qt as ImagePresets, ri as publicEventPricingDisplay, sn as eventDateOptions, ti as isPublicEventPricingOptionDisplayable } from "./wizardSteps-
|
|
4
|
-
import {
|
|
2
|
+
import { $t as MediaNodeServer, Yt as CardListContentPart, _t as formatBookingSchedulePresentation, cn as formatEventPriceDisplay, on as formatEventPrice, sn as formatEventPriceAmount } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Er as resolveEventRegistrationScopedEvents, Hr as orderedLiveRunSessions, Nr as listLookSlot, Tn as formatTotalCapacity, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, fn as formatEventCompactDateRail, ni as publicEventPricingCurrency, pn as formatEventDateParts, qt as ImagePresets, ri as publicEventPricingDisplay, sn as eventDateOptions, ti as isPublicEventPricingOptionDisplayable } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
|
+
import { Bt as formatCurrencyAmount, Ct as toScheduledBookingDateTime, Et as compareLocalScheduleDates, It as toUtcIsoDateTimeString, Mt as resolveBookingBusinessTimeZone, Ot as getBookingLocalDateKey, Pt as toBookingTimeZone, gt as formatDateTimeRange, kt as getLocalScheduleDate, mt as formatDateRange, pt as formatDate } from "./noop-ByVtIWf4.mjs";
|
|
5
5
|
import { v as assertNever } from "./src-DjnxOjXG.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 { n as MapDrawingSvg } from "./MapDrawingSvg-
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-BVO-qx4q.mjs";
|
|
8
|
+
import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-P2vJVTEn.mjs";
|
|
9
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-CcGaFawl.mjs";
|
|
10
10
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
11
|
import "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -728,7 +728,9 @@ function EventFacts({ selection, selected, venue, teamMembers, pricing, showCapa
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
function EventVenueFact({ venue }) {
|
|
731
|
-
|
|
731
|
+
if (!venue) return null;
|
|
732
|
+
const { place, addressWithBooking } = eventVenuePlace(venue);
|
|
733
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
732
734
|
className: "rb-mt-6",
|
|
733
735
|
children: [
|
|
734
736
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -736,16 +738,19 @@ function EventVenueFact({ venue }) {
|
|
|
736
738
|
children: "Venue"
|
|
737
739
|
}),
|
|
738
740
|
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: venue.name }) }),
|
|
739
|
-
|
|
741
|
+
place ? /* @__PURE__ */ jsx("p", {
|
|
740
742
|
className: "rb-caption",
|
|
741
|
-
children:
|
|
743
|
+
children: place
|
|
742
744
|
}) : null,
|
|
743
|
-
/* @__PURE__ */ jsx(
|
|
745
|
+
addressWithBooking ? /* @__PURE__ */ jsx("p", {
|
|
746
|
+
className: "rb-caption rb-mt-1",
|
|
747
|
+
children: "The full address and directions come with your booking confirmation."
|
|
748
|
+
}) : /* @__PURE__ */ jsx(LocationMapActions, {
|
|
744
749
|
location: venue.location,
|
|
745
750
|
addressText: venue.address
|
|
746
751
|
})
|
|
747
752
|
]
|
|
748
|
-
})
|
|
753
|
+
});
|
|
749
754
|
}
|
|
750
755
|
function EventTeacherFacts({ teamMembers }) {
|
|
751
756
|
return teamMembers.length ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-
|
|
3
|
-
import { Nr as listLookSlot } from "./wizardSteps-
|
|
2
|
+
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
4
|
import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
|
|
5
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-DPBLjGwj.mjs";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { c as parseCanonicalMediaIdentifier, d as unsafeAsStorageBucketName, f as unsafeAsStoragePath, h as ok$1, m as err, o as resolveManagedMediaReference, p as parseUuidBrand, u as unsafeAsMediaAssetId } from "./surfaceTransportMarker-BXepAVF6.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { $ as blockBookingPaymentTermsSchema, Bt as formatCurrencyAmount, Ct as toScheduledBookingDateTime, Et as compareLocalScheduleDates, Ft as parseUtcIsoDateTimeString, It as toUtcIsoDateTimeString, Lt as validateBookingPaymentOptionKinds, Mt as resolveBookingBusinessTimeZone, Nt as resolveBookingTimeZoneId, Ot as getBookingLocalDateKey, Pt as toBookingTimeZone, Q as toBookingRequirementConsentField, T as eventCalendarListLayoutValues, Y as blockBookingConsentSchema, _t as formatTime$2, b as eventCalendarDefaultViewValues, bt as inferSiteDateLocale, gt as formatDateTimeRange, ht as formatDateTime, jt as parseLocalScheduleTime, kt as getLocalScheduleDate, l as normalizeCurrencyCode, mt as formatDateRange, n as blockSiteTermsSchema, pt as formatDate$2, vt as formatTimeRange, x as eventCalendarDisplayModeValues, xt as resolveBookingDisplayContext, zt as toNonNegativeCents } from "./noop-ByVtIWf4.mjs";
|
|
4
4
|
import { c as addIntervalPreservingMonthAnchor, d as getBookingInstalmentDepositRefundability, f as getBookingInstalmentPlanIntervalCount, g as resolveFlexibleBalanceInitialPaymentCents, h as resolveFlexibleBalanceDueAt, l as clampConfiguredAmount, m as splitAmountWithRemainderInFirst, p as omitZeroAmountFutureRows, t as assertNever$2, v as assertNever$1 } from "./src-DjnxOjXG.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { Aa as PUBLIC_BUTTON_ROLES, Ai as mergeStyles, Di as backgroundColorStyle, Ia as runtimeMediaSchema, Ii as opaqueSurfaceDeclarations, Ni as textColorStyle, m as arrangementSlotNames, o as selectItemSurfacePresentation, r as parseArrangementSlotSurface } from "./site-styles-D56hT2u1.mjs";
|
|
6
6
|
import { l as buildCalendarViewport$1, n as calendarLinks, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
|
|
7
7
|
import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
|
|
8
8
|
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-BLo4NtjP.mjs";
|
|
@@ -1064,7 +1064,7 @@ function resolvedItemSurfaceProps(surface, slot, style = void 0) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
const resolvedSurfaceSchema = z.unknown().transform((value, context) => {
|
|
1066
1066
|
try {
|
|
1067
|
-
return
|
|
1067
|
+
return parseArrangementSlotSurface(value);
|
|
1068
1068
|
} catch {
|
|
1069
1069
|
context.addIssue({
|
|
1070
1070
|
code: "custom",
|
|
@@ -4495,9 +4495,10 @@ function buildBookingInstalmentCadenceLabel(plan) {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
//#endregion
|
|
4497
4497
|
//#region ../blocks/src/system/runtime/nodes/event-registration/bookingCalendar.ts
|
|
4498
|
-
/** Public schedule
|
|
4499
|
-
function bookingCalendar(event,
|
|
4498
|
+
/** Public schedule plus the authorised outcome's arrival text; online access stays in email. */
|
|
4499
|
+
function bookingCalendar(event, outcome) {
|
|
4500
4500
|
if (!event) return null;
|
|
4501
|
+
const { identity } = outcome;
|
|
4501
4502
|
const sessions = event.registrationSubject.kind === "wholeSeries" ? event.registrationSubject.sessions : [{
|
|
4502
4503
|
occurrenceId: event.registrationSubject.occurrenceId,
|
|
4503
4504
|
startsAt: event.startsAt,
|
|
@@ -4512,7 +4513,7 @@ function bookingCalendar(event, identity) {
|
|
|
4512
4513
|
endsAt: new Date(session.endsAt),
|
|
4513
4514
|
timezone: "UTC",
|
|
4514
4515
|
status: "confirmed",
|
|
4515
|
-
location: identity.attendanceMode === "online" ? "Online" : event.venue?.name,
|
|
4516
|
+
location: identity.attendanceMode === "online" ? "Online" : outcome.arrivalVenues?.[session.occurrenceId] ?? event.venue?.name,
|
|
4516
4517
|
description: identity.attendanceMode === "online" ? "See your confirmation email for joining instructions." : void 0
|
|
4517
4518
|
}));
|
|
4518
4519
|
const first = entries[0];
|
|
@@ -5110,15 +5111,20 @@ function bookedBooking(result, context) {
|
|
|
5110
5111
|
const facts = outcomeFacts(result.outcome);
|
|
5111
5112
|
const totalPlaces = completedBookingPlaces(context.completedOutcomes, identity);
|
|
5112
5113
|
const where = identity.attendanceMode === "online" ? "none" : "venue";
|
|
5114
|
+
const arrival = identity.attendanceMode === "in_person" && context.display.venue === "shown" ? [...new Set(Object.values(result.outcome.arrivalVenues ?? {}))].join("\n\n") : "";
|
|
5113
5115
|
return {
|
|
5114
5116
|
entry: {
|
|
5115
5117
|
kind: "booked",
|
|
5116
5118
|
...dates,
|
|
5117
5119
|
places: totalPlaces === null ? null : placesLabel(totalPlaces)
|
|
5118
5120
|
},
|
|
5119
|
-
summary: [
|
|
5121
|
+
summary: [
|
|
5122
|
+
...scheduleRows(event, dates.shortWhen, arrival ? "none" : where, context.display),
|
|
5123
|
+
...row("Where", arrival),
|
|
5124
|
+
...facts.rows
|
|
5125
|
+
],
|
|
5120
5126
|
payment: facts.payment,
|
|
5121
|
-
calendar: bookingCalendar(event,
|
|
5127
|
+
calendar: bookingCalendar(event, result.outcome)
|
|
5122
5128
|
};
|
|
5123
5129
|
}
|
|
5124
5130
|
function waitlistedBooking(context) {
|
|
@@ -5379,10 +5385,11 @@ function findPreSelectedEvent(input) {
|
|
|
5379
5385
|
})) === contextDate) ?? null;
|
|
5380
5386
|
}
|
|
5381
5387
|
function resolveRegistrationTarget(input) {
|
|
5382
|
-
const
|
|
5388
|
+
const selectedSubject = input.selectedEvent?.registrationSubject ?? null;
|
|
5389
|
+
const subject = selectedSubject?.kind === "wholeSeries" ? selectedSubject : input.occurrenceContext ? {
|
|
5383
5390
|
kind: "occurrence",
|
|
5384
5391
|
occurrenceId: input.occurrenceContext.id
|
|
5385
|
-
} :
|
|
5392
|
+
} : selectedSubject;
|
|
5386
5393
|
if (!subject) return null;
|
|
5387
5394
|
return {
|
|
5388
5395
|
subject,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
3
|
+
import { $g as asLayoutVariantKey, $p as __spreadArrays, $u as plainTextToInlineText, Ap as DialogDescription$1, Au as RichTextDocSchema, Bg as resolveMediaTransformForAspect, Bp as DialogPortal, Bv as unsafeAsPositiveByteCount, C as selectedImageFromMediaValue, Cm as Primitive, Dm as cva, Dp as Dialog, Eg as surfaceForegroundValue, F as nextLookTilePin, Gd as gradientToCss, Gu as inlineTextAccentTones, Hg as getImageUrl, Hu as applyInlineTextMarkToRange, Ig as isRotationDimensionSwap, Ip as DialogClose, Jg as resolveManagedMediaReference, Jp as __extends, Ju as inlineTextToPlainText, Kn as rankBackgroundImagePoolItems, Kp as __assign, Ku as inlineTextEqual, Lg as normalizeRightAngle, Ln as backgroundColorTokens, Lp as DialogContent, Lv as assertNever, Mm as cn$2, Mp as DialogHeader, Mu as richTextVariantCapabilities, Np as DialogTitle$1, Qp as __spreadArray, Rd as getCuratedSiteStyle, Rg as formatAspectRatioToken, Rp as DialogDescription, Sm as composeEventHandlers, Tm as Button, Vg as getDirectImageUrlForMediaAsset, Vp as DialogTitle, Xp as __read, Xu as normalizeInlineText, Yg as mediaIdentifierSchema, Yp as __generator, Zp as __rest, Zu as normalizeInlineTextMarks, _a as resolveMediaStorageUrl, b_ as generateUuidV4, dm as useSize, dp as SelectItem, ed as removeInlineTextMarkFromRange, fp as SelectTrigger, ha as resolveImageUrlWithContext, hp as usePrevious, jm as useComposedRefs, k as usePreviewRenderBackgrounds, kp as DialogContent$1, lp as Select, nd as truncateInlineText, pp as SelectValue, qd as getGradientPreset, qp as __awaiter, qu as inlineTextHighlightTones, rp as unwrapResponse, sa as getRichTextImageSize, t_ as assertNever$1, td as replaceInlineTextRange, ua as computeMediaTransformStyle, up as SelectContent, vr as getBlockDefinition, w as selectedImageFromRenderableAsset, xm as createContextScope, ya as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, ym as useControllableState, zg as parseAspectRatioValue, zn as defaultBackgroundOverrideForMode, zp as DialogOverlay, zt as getDashboardBaseUrl, zv as unsafeAsMediaAssetId } from "./previewAssistantSlot-DBi-WybM.mjs";
|
|
4
4
|
import { B as ImageUp, C as Palette, F as Link$1, Gt as ok, J as FileSpreadsheet, K as File, L as Italic$1, M as LoaderCircle, N as List, P as ListOrdered, R as Info, St as Archive, W as Highlighter, Wt as err, X as FileHeadphone, Y as FilePlay, Z as FileArchive, a as Upload, b as Pencil, c as Trash2, ft as ChevronRight, ht as Check, n as X, nt as Crop, pt as ChevronLeft, q as FileText, y as Plus, yt as Bold$1, z as Image } from "./lucide-react-CPBCf6QT.mjs";
|
|
5
|
-
import { $ as
|
|
6
|
-
import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, c as arrangementBackgroundControlFor, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor } from "./useBlockCustomizeControls-
|
|
5
|
+
import { $ as useMediaEditorOptional, D as usePreviewCompiledThemeOptional, Q as useMediaEditor, d as CustomizeBackgroundColorPicker, et as useApiMediaUploader, gn as classifyKnownMimeType, qt as readThemeScopeContext, rn as Input, tt as TransferError } from "./SiteChromeCustomizeButton-CU9VD-7O.mjs";
|
|
6
|
+
import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, c as arrangementBackgroundControlFor, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor } from "./useBlockCustomizeControls-B7MLTjBX.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";
|