@riverbankcms/sdk 0.177.0 → 0.178.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-sYraeqm9.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-C9i27wZA.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-BnYN6XsH.d.ts} +31 -7
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-CXj6lp3d.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DwMHeYmQ.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-0HFgCnGz.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-BE9dWIsr.d.ts} +3 -3
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-CKDRr54L.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-D9-N1d9v.d.ts} +1 -1
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-DCa-8TEY.d.ts} +1 -1
- package/dist/_dts/{index-BLseXObg.d.ts → index-cTpvQg_Q.d.ts} +2 -2
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-nnEdgc3Z.d.ts} +2 -2
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-B20VRWHH.d.ts} +491 -43
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DkzWvFbG.d.ts → resolvePageContent-YT6ndha1.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +24 -12
- 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 +56 -4
- package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BdZ5pJSk.d.ts → types-CMZ5mkpv.d.ts} +2 -2
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-CYcd15BQ.d.ts} +7 -7
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-rm2M4LGx.d.ts} +3 -3
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-BSxnRhyy.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
- package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
- package/dist/client/{Page-C03rc6jw.mjs → Page-DqETUt-U.mjs} +12 -12
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
- package/dist/client/client.mjs +59 -5
- package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
- package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
- package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
- package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
- package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
- package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -5
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
- package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
- package/dist/client/portal/client.mjs +344 -19
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
- package/dist/client/src-DqMbCjI1.mjs +3 -0
- package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
- package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
- package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
- package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
- package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-D-Le7O3o.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-CzJvgbqt.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-xhJ6ca1i.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-BN93X9o1.mjs} +1141 -596
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-BGTAcPud.mjs} +1 -1
- package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
- package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
- package/dist/preview-next/client/{useAutosaveStatus-R1rZ9-IZ.mjs → useAutosaveStatus-BMGXjGZq.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-CTDoR_gQ.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-BSSbtz6A.mjs → route-contract-BtdzkSUg.mjs} +55 -1
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
- package/dist/server/{client-BPLLL22F.mjs → client-Bf06n9oj.mjs} +56 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-Cj7hfbrA.mjs +41 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +56 -13
- package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
- package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-tz-GVWft.mjs} +85 -37
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-JmsuYCIH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
- 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-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-BvHio6QI.mjs → validation-CLq5cw6M.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-oPbhAx8E.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- package/package.json +1 -1
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
- package/dist/server/constants-hl17xz6x.mjs +0 -22
- package/dist/server/portal-BjVHMAUC.mjs +0 -371
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
3
|
+
import { Sn as formatCurrencyAmount, bn as parsePositiveMoneyInputToCents, n as assertNever, t as logger } from "../noop-D11X-B6n.mjs";
|
|
4
4
|
import { D as unsafeAsAppointmentResourceId, T as assertNever$1, c as initialBookingQuestionValues, f as unansweredRequiredBookingQuestions, g as formatCreditProductUnits, i as UNANSWERED_QUESTION_MESSAGE, m as formatCreditProductBalance, n as getCreditProductTypeLabel, r as UNANSWERED_QUESTIONS_SUMMARY, t as deriveCreditProductLabels, y as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-BQ1t1erI.mjs";
|
|
5
5
|
import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
|
|
6
|
-
import { n as useAvailableDates, s as clientPersonPhrases, t as useAvailableSlots } from "../useAvailableSlots-
|
|
7
|
-
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
6
|
+
import { n as useAvailableDates, s as clientPersonPhrases, t as useAvailableSlots } from "../useAvailableSlots-D-qoooLy.mjs";
|
|
7
|
+
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-CJIz4FdL.mjs";
|
|
8
8
|
import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-DuaYtnvG.mjs";
|
|
9
9
|
import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
|
|
10
|
-
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-
|
|
10
|
+
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-B57oGPcj.mjs";
|
|
11
11
|
import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
|
|
12
12
|
import { t as TabBarFragment } from "../TabBarFragment-BqfRLojo.mjs";
|
|
13
|
-
import { t as formatDate } from "../formatDate-
|
|
14
|
-
import { n as
|
|
15
|
-
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-
|
|
13
|
+
import { t as formatDate } from "../formatDate-DVFVDcDW.mjs";
|
|
14
|
+
import { i as requestDemoPortalMagicLink, n as PORTAL_CALLBACK_PATH, r as buildPortalCallbackUrl } from "../demoPortalMagicLink-6CgFZNvu.mjs";
|
|
15
|
+
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-UoXqBh10.mjs";
|
|
16
16
|
import * as React$1 from "react";
|
|
17
17
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -491,7 +491,6 @@ function submitPortalLogout(logoutPath) {
|
|
|
491
491
|
}
|
|
492
492
|
function resolvePortalHostPaths(paths) {
|
|
493
493
|
return {
|
|
494
|
-
callbackPath: paths.callbackPath ?? "/api/portal/callback",
|
|
495
494
|
logoutPath: paths.logoutPath ?? "/api/portal/logout",
|
|
496
495
|
bookPath: paths.bookPath === void 0 ? { kind: "dedicated" } : {
|
|
497
496
|
kind: "host",
|
|
@@ -508,11 +507,11 @@ function usePortalInitialLocation() {
|
|
|
508
507
|
};
|
|
509
508
|
}, []);
|
|
510
509
|
}
|
|
511
|
-
async function requestPortalLogin(api, email, returnPath
|
|
510
|
+
async function requestPortalLogin(api, email, returnPath) {
|
|
512
511
|
const normalizedEmail = email.trim().toLowerCase();
|
|
513
512
|
const result = await requestDemoPortalMagicLink({
|
|
514
513
|
email: normalizedEmail,
|
|
515
|
-
redirectUrl: buildPortalCallbackUrl(window.location.origin, returnPath
|
|
514
|
+
redirectUrl: buildPortalCallbackUrl(window.location.origin, returnPath),
|
|
516
515
|
send: (request) => api.sendMagicLink(request)
|
|
517
516
|
});
|
|
518
517
|
switch (result.kind) {
|
|
@@ -616,7 +615,7 @@ function loginFailureMessage(error) {
|
|
|
616
615
|
async function sendPortalLogin(props, email) {
|
|
617
616
|
props.dispatch({ type: "login-started" });
|
|
618
617
|
try {
|
|
619
|
-
props.dispatch(await requestPortalLogin(props.api, email, props.returnPath
|
|
618
|
+
props.dispatch(await requestPortalLogin(props.api, email, props.returnPath));
|
|
620
619
|
} catch (error) {
|
|
621
620
|
console.error("Login error:", error);
|
|
622
621
|
props.dispatch({
|
|
@@ -5628,6 +5627,29 @@ function BeforeYouComeTaskDisplay({ task, ...props }) {
|
|
|
5628
5627
|
});
|
|
5629
5628
|
}
|
|
5630
5629
|
//#endregion
|
|
5630
|
+
//#region ../blocks/src/customer-portal/components/bookings/PortalJoiningDetails.tsx
|
|
5631
|
+
/** How to join an upcoming online booking. Only reaches here for the client who holds it. */
|
|
5632
|
+
function PortalJoiningDetails({ details }) {
|
|
5633
|
+
if (!details) return null;
|
|
5634
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
5635
|
+
className: "cp-joining-details",
|
|
5636
|
+
children: [
|
|
5637
|
+
/* @__PURE__ */ jsx("a", {
|
|
5638
|
+
className: "cp-joining-details__link",
|
|
5639
|
+
href: details.joinUrl,
|
|
5640
|
+
target: "_blank",
|
|
5641
|
+
rel: "noopener noreferrer",
|
|
5642
|
+
children: "Join online"
|
|
5643
|
+
}),
|
|
5644
|
+
details.accessCode ? /* @__PURE__ */ jsxs("span", { children: ["Access code: ", details.accessCode] }) : null,
|
|
5645
|
+
details.notes ? /* @__PURE__ */ jsx("span", {
|
|
5646
|
+
className: "cp-joining-details__notes",
|
|
5647
|
+
children: details.notes
|
|
5648
|
+
}) : null
|
|
5649
|
+
]
|
|
5650
|
+
});
|
|
5651
|
+
}
|
|
5652
|
+
//#endregion
|
|
5631
5653
|
//#region ../blocks/src/customer-portal/components/bookings/eventCancelCopy.ts
|
|
5632
5654
|
const CANCEL = "This will cancel your booking.";
|
|
5633
5655
|
const CARD_TIME = "It can take 5–10 working days to appear.";
|
|
@@ -6078,7 +6100,7 @@ function EventSeriesRegistrationTableRow({ enrollment, primaryDateLabel, session
|
|
|
6078
6100
|
}
|
|
6079
6101
|
function RegistrationTask({ enrollment, onRefresh }) {
|
|
6080
6102
|
const api = useBlockApi();
|
|
6081
|
-
return /* @__PURE__ */
|
|
6103
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PortalJoiningDetails, { details: enrollment.joiningDetails }), enrollment.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
|
|
6082
6104
|
entityId: enrollment.id,
|
|
6083
6105
|
task: enrollment.beforeYouCome,
|
|
6084
6106
|
session: {
|
|
@@ -6090,7 +6112,7 @@ function RegistrationTask({ enrollment, onRefresh }) {
|
|
|
6090
6112
|
createUploadUrl: (data) => api.createPortalWholeSeriesBookingQuestionsUploadUrl(enrollment.id, data),
|
|
6091
6113
|
finalizeUpload: (data) => api.finalizePortalWholeSeriesBookingQuestionsUpload(enrollment.id, data),
|
|
6092
6114
|
onRefresh
|
|
6093
|
-
}) : null });
|
|
6115
|
+
}) : null] });
|
|
6094
6116
|
}
|
|
6095
6117
|
//#endregion
|
|
6096
6118
|
//#region ../blocks/src/customer-portal/components/bookings/usePortalCancelFlow.state.ts
|
|
@@ -7631,6 +7653,7 @@ function EventRow({ event, siteTitle, isPast: isEventPast = false, showActionsCo
|
|
|
7631
7653
|
className: "cp-row-meta",
|
|
7632
7654
|
children: [/* @__PURE__ */ jsx("span", { children: formatPortalSession(event.startsAt, event.endsAt, event, context) }), event.venueName && /* @__PURE__ */ jsx("span", { children: event.venueName })]
|
|
7633
7655
|
}),
|
|
7656
|
+
/* @__PURE__ */ jsx(PortalJoiningDetails, { details: event.joiningDetails }),
|
|
7634
7657
|
event.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
|
|
7635
7658
|
entityId: event.id,
|
|
7636
7659
|
task: event.beforeYouCome,
|
|
@@ -9947,9 +9970,8 @@ async function loadOptionalPortalSectionWithFallback(label, load, buildFallback)
|
|
|
9947
9970
|
* Provides authenticated customers access to their passes, memberships,
|
|
9948
9971
|
* event registrations, appointments, and profile.
|
|
9949
9972
|
*/
|
|
9950
|
-
function CustomerPortalClient({
|
|
9951
|
-
const {
|
|
9952
|
-
callbackPath: suppliedCallbackPath,
|
|
9973
|
+
function CustomerPortalClient({ logoutPath: suppliedLogoutPath, bookPath: suppliedBookPath, hasInitialPortalToken = false, siteTitle, demoEmailSuppressed, privacyPolicyHref, className, showPasses = true, showMemberships = true, showEvents = true, showWholeSeries = true, showAppointments = true, showOrders = true, showCredit = true, showProfile = true, loginTitle = "Customer Portal", loginSubtitle = "Enter your email to access your account", loginButtonText = getDefaultLoginButtonText(demoEmailSuppressed), passesTabLabel, membershipsTabLabel = "Memberships", eventsTabLabel = "Bookings", appointmentsTabLabel = "Appointments", ordersTabLabel = "Orders", creditTabLabel = "Credit", profileTabLabel = "Profile", emptyPassesMessage, emptyMembershipsMessage = "You don't have any active memberships.", emptyEventsMessage = "You're not registered for any events.", emptyAppointmentsMessage = "You don't have any appointments scheduled.", emptyOrdersMessage = "You don't have any orders yet." }) {
|
|
9974
|
+
const { logoutPath, bookPath } = resolvePortalHostPaths({
|
|
9953
9975
|
logoutPath: suppliedLogoutPath,
|
|
9954
9976
|
bookPath: suppliedBookPath
|
|
9955
9977
|
});
|
|
@@ -10187,7 +10209,6 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
|
|
|
10187
10209
|
dispatch,
|
|
10188
10210
|
api,
|
|
10189
10211
|
returnPath,
|
|
10190
|
-
callbackPath,
|
|
10191
10212
|
demoEmailSuppressed,
|
|
10192
10213
|
loginButtonText
|
|
10193
10214
|
})
|
|
@@ -11002,6 +11023,7 @@ function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast
|
|
|
11002
11023
|
children: /* @__PURE__ */ jsx("span", { children: presentation.when })
|
|
11003
11024
|
}),
|
|
11004
11025
|
/* @__PURE__ */ jsx(PortalCardNote, { text: presentation.hint }),
|
|
11026
|
+
/* @__PURE__ */ jsx(PortalJoiningDetails, { details: appointment.joiningDetails }),
|
|
11005
11027
|
appointment.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
|
|
11006
11028
|
entityId: appointment.id,
|
|
11007
11029
|
task: appointment.beforeYouCome,
|
|
@@ -11606,11 +11628,314 @@ function PortalPageLogin(props) {
|
|
|
11606
11628
|
dispatch,
|
|
11607
11629
|
api,
|
|
11608
11630
|
returnPath: props.redirectTo,
|
|
11609
|
-
callbackPath: props.callbackPath ?? "/api/portal/callback",
|
|
11610
11631
|
demoEmailSuppressed: props.demoEmailSuppressed
|
|
11611
11632
|
})
|
|
11612
11633
|
]
|
|
11613
11634
|
});
|
|
11614
11635
|
}
|
|
11615
11636
|
//#endregion
|
|
11616
|
-
|
|
11637
|
+
//#region ../blocks/src/customer-portal/pages/EntryContent.tsx
|
|
11638
|
+
const STRAIGHT_THERE = "Press the button below and we'll take you straight to it. There's no password to remember.";
|
|
11639
|
+
const PURPOSE_COPY = {
|
|
11640
|
+
booking: {
|
|
11641
|
+
heading: "Your booking is one tap away",
|
|
11642
|
+
body: STRAIGHT_THERE,
|
|
11643
|
+
button: "See my booking"
|
|
11644
|
+
},
|
|
11645
|
+
waitlist_claim: {
|
|
11646
|
+
heading: "Claim your place",
|
|
11647
|
+
body: "Press the button below and we'll take you to the page where you can finish booking. There's no password to remember.",
|
|
11648
|
+
button: "Claim my place"
|
|
11649
|
+
},
|
|
11650
|
+
membership: {
|
|
11651
|
+
heading: "Your membership is one tap away",
|
|
11652
|
+
body: STRAIGHT_THERE,
|
|
11653
|
+
button: "See my membership"
|
|
11654
|
+
},
|
|
11655
|
+
general: {
|
|
11656
|
+
heading: "You're nearly there",
|
|
11657
|
+
body: "Press the button below and we'll take you to your account. There's no password to remember.",
|
|
11658
|
+
button: "Continue"
|
|
11659
|
+
}
|
|
11660
|
+
};
|
|
11661
|
+
function IntentField(props) {
|
|
11662
|
+
return /* @__PURE__ */ jsx("input", {
|
|
11663
|
+
type: "hidden",
|
|
11664
|
+
name: "intent",
|
|
11665
|
+
value: props.intent
|
|
11666
|
+
});
|
|
11667
|
+
}
|
|
11668
|
+
function SiteFields(props) {
|
|
11669
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("input", {
|
|
11670
|
+
type: "hidden",
|
|
11671
|
+
name: "site_title",
|
|
11672
|
+
value: props.siteTitle
|
|
11673
|
+
}), props.contactEmail ? /* @__PURE__ */ jsx("input", {
|
|
11674
|
+
type: "hidden",
|
|
11675
|
+
name: "contact_email",
|
|
11676
|
+
value: props.contactEmail
|
|
11677
|
+
}) : null] });
|
|
11678
|
+
}
|
|
11679
|
+
function NewLinkButton(props) {
|
|
11680
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
11681
|
+
method: "post",
|
|
11682
|
+
action: PORTAL_CALLBACK_PATH,
|
|
11683
|
+
children: [
|
|
11684
|
+
/* @__PURE__ */ jsx(IntentField, { intent: "new_link" }),
|
|
11685
|
+
/* @__PURE__ */ jsx("input", {
|
|
11686
|
+
type: "hidden",
|
|
11687
|
+
name: "fingerprint",
|
|
11688
|
+
value: props.fingerprint
|
|
11689
|
+
}),
|
|
11690
|
+
/* @__PURE__ */ jsx(SiteFields, { ...props }),
|
|
11691
|
+
/* @__PURE__ */ jsx(ThemedButton, {
|
|
11692
|
+
type: "submit",
|
|
11693
|
+
variant: props.variant,
|
|
11694
|
+
size: "md",
|
|
11695
|
+
label: props.label
|
|
11696
|
+
})
|
|
11697
|
+
]
|
|
11698
|
+
});
|
|
11699
|
+
}
|
|
11700
|
+
function ContinueView(props) {
|
|
11701
|
+
const copy = PURPOSE_COPY[props.view.purpose];
|
|
11702
|
+
return /* @__PURE__ */ jsxs(Page, {
|
|
11703
|
+
...props,
|
|
11704
|
+
heading: copy.heading,
|
|
11705
|
+
children: [
|
|
11706
|
+
/* @__PURE__ */ jsx("p", { children: copy.body }),
|
|
11707
|
+
/* @__PURE__ */ jsxs("form", {
|
|
11708
|
+
method: "post",
|
|
11709
|
+
action: PORTAL_CALLBACK_PATH,
|
|
11710
|
+
children: [
|
|
11711
|
+
/* @__PURE__ */ jsx(IntentField, { intent: "continue" }),
|
|
11712
|
+
/* @__PURE__ */ jsx("input", {
|
|
11713
|
+
type: "hidden",
|
|
11714
|
+
name: "fingerprint",
|
|
11715
|
+
value: props.view.fingerprint
|
|
11716
|
+
}),
|
|
11717
|
+
/* @__PURE__ */ jsx(SiteFields, { ...props }),
|
|
11718
|
+
/* @__PURE__ */ jsx(ThemedButton, {
|
|
11719
|
+
type: "submit",
|
|
11720
|
+
variant: "default",
|
|
11721
|
+
size: "md",
|
|
11722
|
+
label: copy.button
|
|
11723
|
+
})
|
|
11724
|
+
]
|
|
11725
|
+
}),
|
|
11726
|
+
/* @__PURE__ */ jsxs("p", {
|
|
11727
|
+
className: "cp-page-hint",
|
|
11728
|
+
children: ["Signing in as ", props.view.maskedEmail]
|
|
11729
|
+
})
|
|
11730
|
+
]
|
|
11731
|
+
});
|
|
11732
|
+
}
|
|
11733
|
+
function SpentLinkView(props) {
|
|
11734
|
+
return /* @__PURE__ */ jsxs(Page, {
|
|
11735
|
+
...props,
|
|
11736
|
+
heading: props.view.kind === "used" ? "This link has already been used" : "This link has run out",
|
|
11737
|
+
children: [
|
|
11738
|
+
/* @__PURE__ */ jsx("p", { children: props.view.kind === "used" ? "Each link in our emails works once, to keep your account safe. We can send you a new one." : "Links in our emails stop working after a while, to keep your account safe. We can send you a new one." }),
|
|
11739
|
+
/* @__PURE__ */ jsx(NewLinkButton, {
|
|
11740
|
+
...props,
|
|
11741
|
+
label: "Email me a new link",
|
|
11742
|
+
variant: "default",
|
|
11743
|
+
fingerprint: props.view.resend.fingerprint
|
|
11744
|
+
}),
|
|
11745
|
+
/* @__PURE__ */ jsxs("p", {
|
|
11746
|
+
className: "cp-page-hint",
|
|
11747
|
+
children: ["We'll send it to ", props.view.resend.maskedEmail]
|
|
11748
|
+
})
|
|
11749
|
+
]
|
|
11750
|
+
});
|
|
11751
|
+
}
|
|
11752
|
+
function LinkSentView(props) {
|
|
11753
|
+
const { resend } = props.view;
|
|
11754
|
+
return /* @__PURE__ */ jsxs(Page, {
|
|
11755
|
+
...props,
|
|
11756
|
+
heading: "Check your email",
|
|
11757
|
+
children: [
|
|
11758
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
11759
|
+
"We've sent a new link to ",
|
|
11760
|
+
resend?.maskedEmail ?? "your email address",
|
|
11761
|
+
". It should arrive in a couple of minutes."
|
|
11762
|
+
] }),
|
|
11763
|
+
/* @__PURE__ */ jsx("p", { children: "If you can't see it, have a look in your junk or spam folder." }),
|
|
11764
|
+
resend ? /* @__PURE__ */ jsx(NewLinkButton, {
|
|
11765
|
+
...props,
|
|
11766
|
+
label: "Send it again",
|
|
11767
|
+
variant: "secondary",
|
|
11768
|
+
fingerprint: resend.fingerprint
|
|
11769
|
+
}) : null
|
|
11770
|
+
]
|
|
11771
|
+
});
|
|
11772
|
+
}
|
|
11773
|
+
/** Reads the same whichever limit refused, so it can't reveal whether an address has an account. */
|
|
11774
|
+
function LinkLimitedView(props) {
|
|
11775
|
+
return /* @__PURE__ */ jsxs(Page, {
|
|
11776
|
+
...props,
|
|
11777
|
+
heading: "We couldn't send a link just now",
|
|
11778
|
+
children: [/* @__PURE__ */ jsx("p", { children: "Please try again in a little while." }), props.view.resend ? /* @__PURE__ */ jsx(NewLinkButton, {
|
|
11779
|
+
...props,
|
|
11780
|
+
label: "Try again",
|
|
11781
|
+
variant: "default",
|
|
11782
|
+
fingerprint: props.view.resend.fingerprint
|
|
11783
|
+
}) : /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
11784
|
+
href: "/portal/continue",
|
|
11785
|
+
variant: "default",
|
|
11786
|
+
size: "md",
|
|
11787
|
+
label: "Try again"
|
|
11788
|
+
})]
|
|
11789
|
+
});
|
|
11790
|
+
}
|
|
11791
|
+
function UnknownView(props) {
|
|
11792
|
+
return /* @__PURE__ */ jsxs(Page, {
|
|
11793
|
+
...props,
|
|
11794
|
+
heading: "We couldn't open this link",
|
|
11795
|
+
children: [/* @__PURE__ */ jsx("p", { children: "Sometimes a link gets cut short along the way. Tell us your email address and we'll send you a new one." }), /* @__PURE__ */ jsxs("form", {
|
|
11796
|
+
method: "post",
|
|
11797
|
+
action: PORTAL_CALLBACK_PATH,
|
|
11798
|
+
className: "cp-login__form",
|
|
11799
|
+
children: [
|
|
11800
|
+
/* @__PURE__ */ jsx(IntentField, { intent: "address" }),
|
|
11801
|
+
/* @__PURE__ */ jsx("input", {
|
|
11802
|
+
type: "hidden",
|
|
11803
|
+
name: "site_id",
|
|
11804
|
+
value: props.siteId
|
|
11805
|
+
}),
|
|
11806
|
+
/* @__PURE__ */ jsx(SiteFields, { ...props }),
|
|
11807
|
+
/* @__PURE__ */ jsxs("div", {
|
|
11808
|
+
className: "cp-field",
|
|
11809
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
11810
|
+
htmlFor: "portal-entry-email",
|
|
11811
|
+
className: "form-label",
|
|
11812
|
+
children: "Your email address"
|
|
11813
|
+
}), /* @__PURE__ */ jsx("input", {
|
|
11814
|
+
id: "portal-entry-email",
|
|
11815
|
+
name: "email",
|
|
11816
|
+
type: "email",
|
|
11817
|
+
autoComplete: "email",
|
|
11818
|
+
required: true,
|
|
11819
|
+
className: "form-input"
|
|
11820
|
+
})]
|
|
11821
|
+
}),
|
|
11822
|
+
/* @__PURE__ */ jsx(ThemedButton, {
|
|
11823
|
+
type: "submit",
|
|
11824
|
+
variant: "default",
|
|
11825
|
+
size: "md",
|
|
11826
|
+
label: "Email me a new link"
|
|
11827
|
+
})
|
|
11828
|
+
]
|
|
11829
|
+
})]
|
|
11830
|
+
});
|
|
11831
|
+
}
|
|
11832
|
+
function FailedView(props) {
|
|
11833
|
+
return /* @__PURE__ */ jsxs(Page, {
|
|
11834
|
+
...props,
|
|
11835
|
+
heading: "Sorry, that didn't work",
|
|
11836
|
+
children: [
|
|
11837
|
+
/* @__PURE__ */ jsx("p", { children: "Something went wrong on our side, and it's nothing you did. Please try again in a minute." }),
|
|
11838
|
+
/* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
11839
|
+
href: props.view.retryHref,
|
|
11840
|
+
variant: "default",
|
|
11841
|
+
size: "md",
|
|
11842
|
+
label: "Try again"
|
|
11843
|
+
}),
|
|
11844
|
+
/* @__PURE__ */ jsx(NewLinkButton, {
|
|
11845
|
+
...props,
|
|
11846
|
+
label: "Email me a new link",
|
|
11847
|
+
variant: "secondary",
|
|
11848
|
+
fingerprint: props.view.fingerprint
|
|
11849
|
+
}),
|
|
11850
|
+
props.view.destination ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
|
|
11851
|
+
href: props.view.destination,
|
|
11852
|
+
rel: "noreferrer",
|
|
11853
|
+
children: "Go to the page"
|
|
11854
|
+
}) }) : null
|
|
11855
|
+
]
|
|
11856
|
+
});
|
|
11857
|
+
}
|
|
11858
|
+
function Page(props) {
|
|
11859
|
+
return /* @__PURE__ */ jsx("div", {
|
|
11860
|
+
"data-block": "customer-portal",
|
|
11861
|
+
className: "cp-page",
|
|
11862
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
11863
|
+
className: "cp-page-card cp-page-card--compact",
|
|
11864
|
+
children: [
|
|
11865
|
+
/* @__PURE__ */ jsx("h1", {
|
|
11866
|
+
className: "cp-page-title",
|
|
11867
|
+
children: props.heading
|
|
11868
|
+
}),
|
|
11869
|
+
/* @__PURE__ */ jsx("div", {
|
|
11870
|
+
className: "cp-page-copy cp-page-stack",
|
|
11871
|
+
children: props.children
|
|
11872
|
+
}),
|
|
11873
|
+
props.contactEmail ? /* @__PURE__ */ jsxs("p", {
|
|
11874
|
+
className: "cp-page-hint",
|
|
11875
|
+
children: ["Need a hand? ", /* @__PURE__ */ jsxs("a", {
|
|
11876
|
+
href: `mailto:${props.contactEmail}`,
|
|
11877
|
+
children: ["Email ", props.siteTitle]
|
|
11878
|
+
})]
|
|
11879
|
+
}) : null
|
|
11880
|
+
]
|
|
11881
|
+
})
|
|
11882
|
+
});
|
|
11883
|
+
}
|
|
11884
|
+
/**
|
|
11885
|
+
* The pages a client sees from an emailed link. Every form is a native POST to the site's callback,
|
|
11886
|
+
* so these work before any script has run.
|
|
11887
|
+
*/
|
|
11888
|
+
function PortalEntryContent(props) {
|
|
11889
|
+
const { view } = props;
|
|
11890
|
+
switch (view.kind) {
|
|
11891
|
+
case "continue": return /* @__PURE__ */ jsx(ContinueView, {
|
|
11892
|
+
...props,
|
|
11893
|
+
view
|
|
11894
|
+
});
|
|
11895
|
+
case "used":
|
|
11896
|
+
case "expired": return /* @__PURE__ */ jsx(SpentLinkView, {
|
|
11897
|
+
...props,
|
|
11898
|
+
view
|
|
11899
|
+
});
|
|
11900
|
+
case "link_sent": return /* @__PURE__ */ jsx(LinkSentView, {
|
|
11901
|
+
...props,
|
|
11902
|
+
view
|
|
11903
|
+
});
|
|
11904
|
+
case "link_limited": return /* @__PURE__ */ jsx(LinkLimitedView, {
|
|
11905
|
+
...props,
|
|
11906
|
+
view
|
|
11907
|
+
});
|
|
11908
|
+
case "unknown": return /* @__PURE__ */ jsx(UnknownView, { ...props });
|
|
11909
|
+
case "failed": return /* @__PURE__ */ jsx(FailedView, {
|
|
11910
|
+
...props,
|
|
11911
|
+
view
|
|
11912
|
+
});
|
|
11913
|
+
case "cookies_blocked": return /* @__PURE__ */ jsxs(Page, {
|
|
11914
|
+
...props,
|
|
11915
|
+
heading: "Please open the link from your email again",
|
|
11916
|
+
children: [/* @__PURE__ */ jsx("p", { children: "This page has been open for a while, or this browser isn't keeping cookies for this site. Opening the link in your email again usually sorts it out." }), /* @__PURE__ */ jsx("p", { children: "If you end up back here, try turning cookies on for this site, or open the link in a different browser." })]
|
|
11917
|
+
});
|
|
11918
|
+
case "stale": return /* @__PURE__ */ jsxs(Page, {
|
|
11919
|
+
...props,
|
|
11920
|
+
heading: "You've opened another link",
|
|
11921
|
+
children: [/* @__PURE__ */ jsx("p", { children: "You've opened a different link from one of our emails in another tab, so this page won't work any more. Press the button below to carry on with the newest one." }), /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
11922
|
+
href: view.carryOnHref,
|
|
11923
|
+
variant: "default",
|
|
11924
|
+
size: "md",
|
|
11925
|
+
label: "Carry on"
|
|
11926
|
+
})]
|
|
11927
|
+
});
|
|
11928
|
+
case "demo_refused": return /* @__PURE__ */ jsxs(Page, {
|
|
11929
|
+
...props,
|
|
11930
|
+
heading: "This demo doesn't send emails",
|
|
11931
|
+
children: [/* @__PURE__ */ jsx("p", { children: "In the demo you can only sign in with an email you've booked with in this browser. Book something first, then come back here." }), /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
11932
|
+
href: "/portal",
|
|
11933
|
+
variant: "default",
|
|
11934
|
+
size: "md",
|
|
11935
|
+
label: "Go to sign in"
|
|
11936
|
+
})]
|
|
11937
|
+
});
|
|
11938
|
+
}
|
|
11939
|
+
}
|
|
11940
|
+
//#endregion
|
|
11941
|
+
export { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalEntryContent, PortalTicketView };
|
package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ProductDetailController } from "./shop-commerce-
|
|
2
|
+
import { r as ProductDetailController } from "./shop-commerce-DyMZLC0a.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ProductListController } from "./shop-commerce-
|
|
2
|
+
import { i as ProductListController } from "./shop-commerce-DyMZLC0a.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductDetailClient } from "./product-detail.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-DIWSeW7P.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Bd_hy9ZO.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productDetail.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-detail");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductListClient } from "./product-list.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
|
|
3
|
+
import { t as ProductListClient } from "./product-list.client-BRf14h_e.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Bd_hy9ZO.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productList.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-list");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec,
|
|
3
|
-
import {
|
|
4
|
-
import { W as eventVenueDrawingSchema, f as eventAutoApplyDiscountPreviewSchema, m as publicPassProductCollectionSchema, p as publicMembershipProductCollectionSchema, q as publicEventSchema } from "./noop-
|
|
5
|
-
import { i as lookListPresentationSchemaShape } from "./lookSurfaces-
|
|
2
|
+
import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, Et as eventListingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, _n as headerChromeRuntimeContractSchema, bt as eventCalendarInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, ht as eventCombinedInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec } from "./shop.interactive-D7wky1GL.mjs";
|
|
3
|
+
import { $a as eventRegistrationPageSurfaceSubjectSchema, Ao as isDecodeSuccess, Do as createZodCodec, wi as bookingFormInteractiveIslandPropsCodec } from "./display-D1oVR5Eh.mjs";
|
|
4
|
+
import { W as eventVenueDrawingSchema, f as eventAutoApplyDiscountPreviewSchema, m as publicPassProductCollectionSchema, p as publicMembershipProductCollectionSchema, q as publicEventSchema } from "./noop-D11X-B6n.mjs";
|
|
5
|
+
import { i as lookListPresentationSchemaShape } from "./lookSurfaces-C2VzJfyG.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
|
|
8
8
|
const eventDetailsLookSchemaShape = {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as resolveOfferingsPreviewGroups, $t as
|
|
2
|
+
import { $ as resolveOfferingsPreviewGroups, $t as buildEventListWeek, Bt as catalogueEventCardProps, Cn as splitSiteChromePlacementClasses, D as publicGiftingOffersResponseSchema, En as parseMailingListPlacementTargeting, G as groupOfferingRunsByCourse, Ht as CardListContentPart, J as normalizeOfferingsPreviewItemLimit, Jt as EventQuickFacts, M as buildEventRegistrationInteractiveIslandProps, O as buildFormInteractiveIslandProps, On as DEFAULT_MAILING_LIST_TARGETING, P as eventRegistrationBlockRuntime, Q as resolveOfferingsPreviewGroupCta, Qt as Grid, R as DEFAULT_GROUP_CTA, S as newsletterFormBlockRuntime, St as recurringScheduleProjectionSchema, T as giftingBlockRuntime, Tn as assessMailingListTargeting, Tt as eventListingBlockRuntime, U as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Vt as listingEventCardProps, W as buildOfferingsPreviewListing, X as offeringsListingFor, Xt as getCardOrientation, Y as offeringRunLifecycle, Z as readOfferingsGrouping, Zt as getContainerClass, _ as shopProductPresentation, _t as buildEventCalendarListingDisplay, a as buildShopInteractiveIslandProps, b as buildNewsletterFormInteractiveIslandProps, bn as staticHeaderChromeRuntime, c as checkoutBlockRuntime, cn as formatEventPriceDisplay, d as productDetailBlockRuntime, dn as normalizeEventScheduleScope, en as eventListWeekDays, et as resolveOfferingsRenderInput, fn as normalizeEventStaffMemberId, ft as buildEventCombinedInteractiveIslandProps, gn as resolveEventSelection, gt as buildEventCalendarInteractiveIslandProps, h as shopBlockRuntime, hn as normalizeEventVenueId, i as buildProductListInteractiveIslandProps, in as formatCoursePrice, k as formBlockRuntime, ln as formatEventStartingPrice, lt as occurrenceContextSchema, mn as normalizeEventSurfaceScope, mt as eventCombinedBlockRuntime, n as buildCheckoutInteractiveIslandProps, o as cartBlockRuntime, on as formatEventPrice, p as productListBlockRuntime, pn as normalizeEventSurfacePresets, pt as buildEventCombinedListingDisplay, qt as MediaNodeServer, r as buildProductDetailInteractiveIslandProps, t as buildCartInteractiveIslandProps, tn as eventWeekGroupingContext, un as normalizeEventCategoryIds, v as publicProductsResponseSchema, w as buildGiftingInteractiveIslandProps, wt as buildEventListingInteractiveIslandProps, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, yt as eventCalendarBlockRuntime } from "./shop.interactive-D7wky1GL.mjs";
|
|
3
3
|
import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { A as normalizeEventCalendarDisplayMode$1, Bt as projectPublicLocation, D as isEventCalendarDefaultView, F as arrangementModes, Ht as toLocationCoordinates, J as publicEventsArraySchema,
|
|
4
|
+
import { Ci as resolveRuntimeEventDestination, Eo as groupPublicEventsByRun, Fo as parseAspectRatioValue, Ia as BLOCK_BUTTON_ROLE_OPTIONS, Jr as asPartialObject, Or as RichText, Po as sanitizeHref, Ra as isBlockButtonRole, Ti as buildBookingFormInteractiveIslandProps, ai as buildCalendarViewport, bi as formatTime, br as bookingPresentation, ci as eventDateOptions, eo as normalizeEventRegistrationPageSurfaceSubject, hi as formatEventHourLabel, ii as formatEventLocation, kr as ImagePresets, mo as isBookableEvent, ms as resolvePricingOptionsPriceDisplay, no as resolveEventRegistrationScopedEvents, os as formatBookingPriceDisplay, pi as formatEventCompactDateRail, ps as resolveExactOrFreePriceDisplay, qo as resolveWholeSeriesBookingPhase, ui as formatCalendarTitle, vi as formatEventTimeRange, xi as groupEventsByDate, zr as resolvePublicMediaUrl } from "./display-D1oVR5Eh.mjs";
|
|
5
|
+
import { A as normalizeEventCalendarDisplayMode$1, Bt as projectPublicLocation, D as isEventCalendarDefaultView, F as arrangementModes, Ht as toLocationCoordinates, J as publicEventsArraySchema, Jt as formatDate, O as isEventCalendarDisplayMode, Rt as normalizeLocationAddressText, T as eventCalendarVariantMeaning, Vt as publicLocationSchema, Wt as trimmedStringOrNull, b as calendarWindowPageSchema, dt as runtimeMediaSchema, gn as resolveBookingBusinessTimeZone, hn as toUtcIsoDateTimeString, ht as mediaTypeDiscriminants, j as resolveEventCalendarReadPlan, k as isEventCalendarListLayout, m as publicPassProductCollectionSchema, mt as isDisplayMediaKind, nt as RichTextDocSchema, p as publicMembershipProductCollectionSchema, pt as PUBLIC_FILE_FIELD_KINDS, w as eventCalendarListLayoutOptions, zt as parseLocationValue } from "./noop-D11X-B6n.mjs";
|
|
6
6
|
import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
|
|
7
7
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
8
8
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
9
|
-
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel
|
|
10
|
-
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-
|
|
9
|
+
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-UlWfP1gh.mjs";
|
|
10
|
+
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
11
11
|
import { B as resolveThemeColorReferenceValue, G as mergeStyles, H as backgroundColorStyle, K as rgbColorValue, q as textColorStyle, s as serializeSurfaceTree } from "./accessibleSurfaces-DN8it_Cx.mjs";
|
|
12
12
|
import { h as SYSTEM_BLOCK_KINDS } from "./types-DjWUR_O6.mjs";
|
|
13
|
-
import { N as compiledRuntimeStyleFieldNames, an as cardVariantRoleValues, i as lookListPresentationSchemaShape, qt as arrangementSlotNames, r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-
|
|
14
|
-
import { f as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-
|
|
13
|
+
import { N as compiledRuntimeStyleFieldNames, an as cardVariantRoleValues, i as lookListPresentationSchemaShape, qt as arrangementSlotNames, r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-C2VzJfyG.mjs";
|
|
14
|
+
import { f as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-BHoMAcun.mjs";
|
|
15
15
|
import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-DuaYtnvG.mjs";
|
|
16
|
-
import { a as eventCardListContent, c as derivePreviewRunSchedule, l as formatEventQuickDate, n as resolveEventDetailsPresentation, o as offeringDatesBySeries, s as deriveEventScheduleSummary, t as EventDetailsView, u as selectQuickDateEvents } from "./view-
|
|
17
|
-
import { c as resolveEventLinkProps, i as formatCourseSessions, n as eventDisplayTitleText, s as resolveEventCta, t as eventDisplayTitle } from "./course-
|
|
18
|
-
import { n as CardListItems, r as EventItem } from "./EventItem-
|
|
19
|
-
import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
20
|
-
import { i as SvgNode } from "./MapDrawingSvg-
|
|
21
|
-
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-
|
|
16
|
+
import { a as eventCardListContent, c as derivePreviewRunSchedule, l as formatEventQuickDate, n as resolveEventDetailsPresentation, o as offeringDatesBySeries, s as deriveEventScheduleSummary, t as EventDetailsView, u as selectQuickDateEvents } from "./view-DNX59QwM.mjs";
|
|
17
|
+
import { c as resolveEventLinkProps, i as formatCourseSessions, n as eventDisplayTitleText, s as resolveEventCta, t as eventDisplayTitle } from "./course-DBEU9IA9.mjs";
|
|
18
|
+
import { n as CardListItems, r as EventItem } from "./EventItem-b8tVkNHA.mjs";
|
|
19
|
+
import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, u as CalendarDayHeaders } from "./CalendarNavigationChevron-qXvsFYOg.mjs";
|
|
20
|
+
import { i as SvgNode } from "./MapDrawingSvg-BCZa3dpf.mjs";
|
|
21
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CdjiepMf.mjs";
|
|
22
22
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
23
23
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
24
|
-
import { t as BookingPanelArrangement } from "./BookingPanelArrangement
|
|
24
|
+
import { t as BookingPanelArrangement } from "./BookingPanelArrangement--EkA1ZQd.mjs";
|
|
25
25
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
26
26
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
27
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
28
|
-
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
29
|
-
import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-
|
|
30
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
31
|
-
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-
|
|
32
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
33
|
-
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
27
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-COnKrLO7.mjs";
|
|
28
|
+
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-bGU1ws-m.mjs";
|
|
29
|
+
import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-ffP6mjMd.mjs";
|
|
30
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BxnJW_Gf.mjs";
|
|
31
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-JO2PS03n.mjs";
|
|
32
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DhGGv4_L.mjs";
|
|
33
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CHdg82ct.mjs";
|
|
34
34
|
import React, { forwardRef } from "react";
|
|
35
35
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
36
36
|
import { z } from "zod";
|
|
@@ -2076,8 +2076,8 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
|
|
|
2076
2076
|
* Null when the date has no registration path (closed, paused, not open yet,
|
|
2077
2077
|
* no registration, or full with no waitlist), so no caller repeats that gate.
|
|
2078
2078
|
*/
|
|
2079
|
-
function eventDateBookingLink(event, pathname, dateLabel) {
|
|
2080
|
-
if (!isBookableEvent(event)) return null;
|
|
2079
|
+
function eventDateBookingLink(event, pathname, dateLabel, now) {
|
|
2080
|
+
if (!isBookableEvent(event, now)) return null;
|
|
2081
2081
|
const cta = resolveEventCta(event);
|
|
2082
2082
|
return {
|
|
2083
2083
|
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
|
|
@@ -9835,12 +9835,12 @@ function cardsListDates(props) {
|
|
|
9835
9835
|
return props.lookSlots !== void 0 && props.datesMode === "next-dates";
|
|
9836
9836
|
}
|
|
9837
9837
|
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
9838
|
-
function catalogueDateBooking(shape, pathname) {
|
|
9839
|
-
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
9838
|
+
function catalogueDateBooking(shape, pathname, now) {
|
|
9839
|
+
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel, now) : void 0;
|
|
9840
9840
|
}
|
|
9841
9841
|
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
9842
9842
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
9843
|
-
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
9843
|
+
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)), props.now);
|
|
9844
9844
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
9845
9845
|
const frames = listGroupFrames(props);
|
|
9846
9846
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -9903,7 +9903,7 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
|
9903
9903
|
}
|
|
9904
9904
|
/** Dates are a display sample; the series card never infers availability from them. */
|
|
9905
9905
|
function catalogueDates(events, now, shape, pathname) {
|
|
9906
|
-
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
|
|
9906
|
+
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname, now));
|
|
9907
9907
|
}
|
|
9908
9908
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
9909
9909
|
const event = item.kind === "event" ? item.event : item.run.representative;
|