@riverbankcms/sdk 0.176.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/README.md +12 -4
- package/dist/_dts/{BlocksIslandsHydrator-DvoTk7Py.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
- package/dist/_dts/{Page-D-l374tU.d.ts → Page-C9i27wZA.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
- package/dist/_dts/{client-D4p0J1lK.d.ts → client-BnYN6XsH.d.ts} +31 -7
- package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-CXj6lp3d.d.ts} +4 -8
- package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
- package/dist/_dts/{index-ZKEDvLuN.d.ts → index-0HFgCnGz.d.ts} +1 -1
- package/dist/_dts/{index-tcPtGdag.d.ts → index-BE9dWIsr.d.ts} +3 -3
- package/dist/_dts/{index-D-ai8IQd.d.ts → index-CKDRr54L.d.ts} +4 -4
- package/dist/_dts/{index-CoLcwjqJ.d.ts → index-D9-N1d9v.d.ts} +1 -1
- package/dist/_dts/{index-CKkkCgb6.d.ts → index-DCa-8TEY.d.ts} +1 -1
- package/dist/_dts/{index-DDsfmM4d.d.ts → index-cTpvQg_Q.d.ts} +2 -2
- package/dist/_dts/{index-EJMo-KSo.d.ts → index-nnEdgc3Z.d.ts} +2 -15
- package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
- package/dist/_dts/{request-B8jVdvgI.d.ts → request-B20VRWHH.d.ts} +55384 -55036
- package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Be4iL6-F.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-lwSgCWZ4.d.ts → types-CMZ5mkpv.d.ts} +11 -3
- package/dist/_dts/{types-BXMX4z2j.d.ts → types-CYcd15BQ.d.ts} +7 -7
- package/dist/_dts/{types-DXY64Xh4.d.ts → types-rm2M4LGx.d.ts} +4 -4
- package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BSxnRhyy.d.ts} +4 -6
- 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-F3lhDvw1.mjs → Page-DqETUt-U.mjs} +22 -13
- 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 +93 -12
- 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 +384 -38
- 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/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D-Le7O3o.mjs} +52 -8
- package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +34 -39
- package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-CzJvgbqt.mjs} +10 -10
- package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-xhJ6ca1i.mjs} +9 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +16 -7
- package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-BN93X9o1.mjs} +1211 -600
- package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-BGTAcPud.mjs} +27 -17
- 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-D9s6dyMW.mjs → useAutosaveStatus-BMGXjGZq.mjs} +3 -30
- package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +3 -0
- package/dist/preview-next/editor-chrome.css +4 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BYezcMx5.mjs → route-contract-BtdzkSUg.mjs} +71 -4
- package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
- package/dist/server/{client-Bvag5OtW.mjs → client-Bf06n9oj.mjs} +90 -9
- 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/revalidate.mjs +15 -8
- package/dist/server/next.mjs +56 -13
- package/dist/server/{overrideResolution-BqVLO4gX.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-D23o5QgC.mjs → pageShared-tz-GVWft.mjs} +96 -39
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BuoXWT9y.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-CozQ7wE0.mjs → validation-CLq5cw6M.mjs} +3 -5
- package/dist/server/{version-CgCWRFEY.mjs → version-oPbhAx8E.mjs} +1 -1
- package/dist/styles/index.css +27 -1
- 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,
|
|
@@ -8644,6 +8667,11 @@ function appointmentCancelCopy(appointment, siteTitle) {
|
|
|
8644
8667
|
buttonLabel: "Cancel",
|
|
8645
8668
|
title: "Cancel appointment?",
|
|
8646
8669
|
body: [cancelBody(outcome, siteTitle), outcome.kind === "refund" ? protectedDepositCancelSentence(outcome) : null].filter(Boolean).join(" "),
|
|
8670
|
+
terms: appointment.cancellation.termsApplyOnCancel === true ? {
|
|
8671
|
+
before: `${siteTitle?.trim() ? `${siteTitle.trim()}'s` : "Their"} `,
|
|
8672
|
+
linkLabel: "booking terms",
|
|
8673
|
+
href: "/terms"
|
|
8674
|
+
} : null,
|
|
8647
8675
|
keepLabel: "Keep appointment",
|
|
8648
8676
|
confirmLabel: "Confirm cancel",
|
|
8649
8677
|
confirmAcceptsNoRefund: outcome.kind === "keep_credit"
|
|
@@ -8702,6 +8730,7 @@ function presentPortalAppointment(appointment, display) {
|
|
|
8702
8730
|
buttonLabel: "Cancel request",
|
|
8703
8731
|
title: `Cancel your request for ${appointment.serviceName} on ${slot.when}?`,
|
|
8704
8732
|
body: display.siteTitle ? `We'll let ${display.siteTitle} know.` : "We'll let them know.",
|
|
8733
|
+
terms: null,
|
|
8705
8734
|
keepLabel: "Keep it",
|
|
8706
8735
|
confirmLabel: "Cancel request",
|
|
8707
8736
|
confirmAcceptsNoRefund: false
|
|
@@ -9941,9 +9970,8 @@ async function loadOptionalPortalSectionWithFallback(label, load, buildFallback)
|
|
|
9941
9970
|
* Provides authenticated customers access to their passes, memberships,
|
|
9942
9971
|
* event registrations, appointments, and profile.
|
|
9943
9972
|
*/
|
|
9944
|
-
function CustomerPortalClient({
|
|
9945
|
-
const {
|
|
9946
|
-
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({
|
|
9947
9975
|
logoutPath: suppliedLogoutPath,
|
|
9948
9976
|
bookPath: suppliedBookPath
|
|
9949
9977
|
});
|
|
@@ -10181,7 +10209,6 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
|
|
|
10181
10209
|
dispatch,
|
|
10182
10210
|
api,
|
|
10183
10211
|
returnPath,
|
|
10184
|
-
callbackPath,
|
|
10185
10212
|
demoEmailSuppressed,
|
|
10186
10213
|
loginButtonText
|
|
10187
10214
|
})
|
|
@@ -10888,6 +10915,17 @@ function PortalCardNote({ text }) {
|
|
|
10888
10915
|
children: text
|
|
10889
10916
|
}) : null;
|
|
10890
10917
|
}
|
|
10918
|
+
function CancelDialogTerms({ terms }) {
|
|
10919
|
+
if (terms === null) return null;
|
|
10920
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
10921
|
+
terms.before,
|
|
10922
|
+
/* @__PURE__ */ jsx("a", {
|
|
10923
|
+
href: terms.href,
|
|
10924
|
+
children: terms.linkLabel
|
|
10925
|
+
}),
|
|
10926
|
+
" still apply."
|
|
10927
|
+
] });
|
|
10928
|
+
}
|
|
10891
10929
|
function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast = false, onRefresh, cancelledNotice, onCancelled }) {
|
|
10892
10930
|
const { context } = usePortalDateDisplay();
|
|
10893
10931
|
const presentation = presentPortalAppointment(appointment, {
|
|
@@ -10916,25 +10954,29 @@ function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast
|
|
|
10916
10954
|
title: cancelCopy.title,
|
|
10917
10955
|
titleId: `cp-cancel-appointment-${appointment.id}`,
|
|
10918
10956
|
onClose: cancelFlow.dismissCancelFlow,
|
|
10919
|
-
children: [
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10957
|
+
children: [
|
|
10958
|
+
/* @__PURE__ */ jsx("div", { children: cancelCopy.body }),
|
|
10959
|
+
/* @__PURE__ */ jsx(CancelDialogTerms, { terms: cancelCopy.terms }),
|
|
10960
|
+
/* @__PURE__ */ jsxs("div", {
|
|
10961
|
+
className: "cp-modal__actions",
|
|
10962
|
+
children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
10963
|
+
type: "button",
|
|
10964
|
+
disabled: cancelFlow.submitting,
|
|
10965
|
+
onClick: cancelFlow.dismissCancelFlow,
|
|
10966
|
+
variant: "secondary",
|
|
10967
|
+
size: "sm",
|
|
10968
|
+
label: cancelCopy.keepLabel
|
|
10969
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
10970
|
+
type: "button",
|
|
10971
|
+
disabled: cancelFlow.submitting,
|
|
10972
|
+
onClick: () => void cancelFlow.submitCancel(cancelCopy.confirmAcceptsNoRefund ? { confirmCancelWithoutRefund: true } : void 0),
|
|
10973
|
+
variant: "primary",
|
|
10974
|
+
size: "sm",
|
|
10975
|
+
extraClassName: "cp-button--danger",
|
|
10976
|
+
label: cancelFlow.submitting ? "Cancelling..." : cancelCopy.confirmLabel
|
|
10977
|
+
})]
|
|
10978
|
+
})
|
|
10979
|
+
]
|
|
10938
10980
|
}) : null,
|
|
10939
10981
|
cancelFlow.dialog.tag === "confirmWithoutRefund" ? /* @__PURE__ */ jsxs(PortalModal, {
|
|
10940
10982
|
title: "Cancel without a refund?",
|
|
@@ -10981,6 +11023,7 @@ function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast
|
|
|
10981
11023
|
children: /* @__PURE__ */ jsx("span", { children: presentation.when })
|
|
10982
11024
|
}),
|
|
10983
11025
|
/* @__PURE__ */ jsx(PortalCardNote, { text: presentation.hint }),
|
|
11026
|
+
/* @__PURE__ */ jsx(PortalJoiningDetails, { details: appointment.joiningDetails }),
|
|
10984
11027
|
appointment.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
|
|
10985
11028
|
entityId: appointment.id,
|
|
10986
11029
|
task: appointment.beforeYouCome,
|
|
@@ -11585,11 +11628,314 @@ function PortalPageLogin(props) {
|
|
|
11585
11628
|
dispatch,
|
|
11586
11629
|
api,
|
|
11587
11630
|
returnPath: props.redirectTo,
|
|
11588
|
-
callbackPath: props.callbackPath ?? "/api/portal/callback",
|
|
11589
11631
|
demoEmailSuppressed: props.demoEmailSuppressed
|
|
11590
11632
|
})
|
|
11591
11633
|
]
|
|
11592
11634
|
});
|
|
11593
11635
|
}
|
|
11594
11636
|
//#endregion
|
|
11595
|
-
|
|
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 = {
|