@riverbankcms/sdk 0.177.0 → 0.179.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-sYraeqm9.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-qWn7xAwJ.d.ts} +77 -23
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-BLseXObg.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-BjKBCS7t.d.ts} +1687 -373
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -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 +32 -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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- 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/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-BdZ5pJSk.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +43 -10
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-yoSI77ov.mjs} +11 -11
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-HeCNlliq.mjs} +11 -11
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +439 -123
- package/dist/client/{Page-C03rc6jw.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-2Dl9zon2.mjs} +80 -33
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +469 -320
- package/dist/client/{context-R9p5c8IH.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +5 -4
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-RLZQWi2V.mjs} +121 -183
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BbUUt784.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -6
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3970 -3997
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +346 -21
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-BPwV-0Pp.mjs} +10426 -9114
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-CaQxI-Js.mjs → src-CCtanNlD.mjs} +462 -455
- 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-lhE29TNT.mjs} +66 -12
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-3foOzGWR.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-4HYOb-AK.mjs → wizardSteps-CNDsxeJH.mjs} +9168 -8981
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-aqpU34WI.mjs} +1764 -1090
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-LHedw83e.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-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-BGZn5AT1.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-DnL-FgSV.mjs} +83 -11
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-BEbq6EwO.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-BPLLL22F.mjs → client-CGJ2ztYp.mjs} +1021 -1118
- 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/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +103 -100
- package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-JzxBnqfV.mjs} +19 -7
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-DU4ETFPS.mjs} +89 -83
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-DH1VrsCl.mjs} +587 -329
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-CxASA3PE.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-BvHio6QI.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-8t0o6_jd.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-DwMHeYmQ.d.ts +0 -256
- package/dist/_dts/resolvePageContent-DkzWvFbG.d.ts +0 -162
- package/dist/client/LocationMapActions-myIQIvQL.mjs +0 -62
- package/dist/client/MapDrawingSvg-BfsVyPvB.mjs +0 -200
- package/dist/client/course-CUFVJEAc.mjs +0 -237
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwjBJP-f.mjs +0 -53
- package/dist/client/eventDetails-C2LfNW_o.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/client/useDiscountCodeUi-I_mXI9Yd.mjs +0 -237
- package/dist/client/view-BbzH5MQb.mjs +0 -1371
- 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
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-BIy4IUT3.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
2
|
+
import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
3
3
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
4
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-De6AzhE6.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/newsletter-form.parts.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as NewsletterFormClient } from "./newsletter-form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-BvEDkjiD.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
7
|
import "react";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { bn as formatCurrencyAmount,
|
|
3
|
+
import { bn as formatCurrencyAmount, t as assertNever, u as logger, vn as parsePositiveMoneyInputToCents } from "../src-CCtanNlD.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-
|
|
8
|
-
import { S as clsx, i as ThemedButtonLink,
|
|
6
|
+
import { n as useAvailableDates, s as clientPersonPhrases, t as useAvailableSlots } from "../useAvailableSlots-BelJviOT.mjs";
|
|
7
|
+
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-DTrwaQtg.mjs";
|
|
8
|
+
import { S as clsx, i as ThemedButtonLink, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton, x as SpinnerNode } from "../ThemedButton-CnSa7o-I.mjs";
|
|
9
|
+
import { t as formatDate } from "../formatDate-CTEN7gxW.mjs";
|
|
9
10
|
import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
|
|
10
|
-
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-
|
|
11
|
+
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-C8IbeLHj.mjs";
|
|
11
12
|
import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
|
|
12
|
-
import { t as TabBarFragment } from "../TabBarFragment-
|
|
13
|
-
import {
|
|
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-CF6FWCoo.mjs";
|
|
13
|
+
import { t as TabBarFragment } from "../TabBarFragment-DlKQRhP4.mjs";
|
|
14
|
+
import { i as requestDemoPortalMagicLink, n as PORTAL_CALLBACK_PATH, r as buildPortalCallbackUrl } from "../demoPortalMagicLink-D0kOJYOX.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-Cg8E1r9l.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-YHQ2aKX1.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-34YvcpbX.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-34YvcpbX.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-Cyag_HOs.mjs";
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-YHQ2aKX1.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Ct-BRNez.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-Cyag_HOs.mjs";
|
|
3
|
+
import { t as ProductListClient } from "./product-list.client-DxoZw1vF.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Ct-BRNez.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,23 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { W as eventVenueDrawingSchema, f as eventAutoApplyDiscountPreviewSchema, m as publicPassProductCollectionSchema, p as publicMembershipProductCollectionSchema, q as publicEventSchema } from "./noop-CaQxI-Js.mjs";
|
|
5
|
-
import { i as lookListPresentationSchemaShape } from "./lookSurfaces-BwiNdgMU.mjs";
|
|
2
|
+
import { G as cartInteractiveIslandPropsCodec, L as giftingInteractiveIslandPropsCodec, Q as productListInteractiveIslandPropsCodec, S as eventRegistrationInteractiveIslandPropsCodec, Tt as eventCombinedInteractiveIslandPropsCodec, X as productDetailInteractiveIslandPropsCodec, _ as formInteractiveIslandPropsCodec, a as newsletterFormInteractiveIslandPropsCodec, c as eventListingInteractiveIslandPropsCodec, dn as headerChromeRuntimeContractSchema, et as shopInteractiveIslandPropsCodec, p as eventCalendarInteractiveIslandPropsCodec, q as checkoutInteractiveIslandPropsCodec } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { Ur as bookingFormInteractiveIslandPropsCodec, Xi as isDecodeSuccess, qi as createZodCodec } from "./wizardSteps-CNDsxeJH.mjs";
|
|
6
4
|
import { z } from "zod";
|
|
7
|
-
//#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
|
|
8
|
-
const eventDetailsLookSchemaShape = {
|
|
9
|
-
quickFacts: z.array(z.object({
|
|
10
|
-
label: z.string(),
|
|
11
|
-
value: z.string()
|
|
12
|
-
})).nullish(),
|
|
13
|
-
entryTitle: z.string().nullish(),
|
|
14
|
-
arrangement: z.enum(["event-header", "details-panel"]).optional(),
|
|
15
|
-
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
16
|
-
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
17
|
-
actionSize: lookListPresentationSchemaShape.actionSize,
|
|
18
|
-
panelHeading: lookListPresentationSchemaShape.panelHeading
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
5
|
//#region ../blocks/src/contracts/non-block-islands.ts
|
|
22
6
|
const accordionIslandSchema = z.object({
|
|
23
7
|
type: z.enum(["single", "multiple"]).optional(),
|
|
@@ -85,42 +69,12 @@ const carouselIslandSchema = z.union([
|
|
|
85
69
|
mode: "legacy"
|
|
86
70
|
}))
|
|
87
71
|
]);
|
|
88
|
-
const eventDetailsOccurrenceContextSchema = z.object({
|
|
89
|
-
id: z.string(),
|
|
90
|
-
seriesId: z.string(),
|
|
91
|
-
startsAt: z.string(),
|
|
92
|
-
endsAt: z.string(),
|
|
93
|
-
timeZone: z.string()
|
|
94
|
-
});
|
|
95
|
-
const eventDetailsIslandSchema = z.object({
|
|
96
|
-
...eventDetailsLookSchemaShape,
|
|
97
|
-
occurrenceContext: eventDetailsOccurrenceContextSchema.nullable().optional(),
|
|
98
|
-
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
99
|
-
events: z.array(publicEventSchema).nullable().optional(),
|
|
100
|
-
venueDrawing: eventVenueDrawingSchema.nullable().optional(),
|
|
101
|
-
showVenue: z.boolean().optional(),
|
|
102
|
-
showMap: z.boolean().optional(),
|
|
103
|
-
showOtherDates: z.boolean().optional(),
|
|
104
|
-
otherDatesLimit: z.string().optional(),
|
|
105
|
-
showCost: z.boolean().optional(),
|
|
106
|
-
showTitle: z.boolean().optional(),
|
|
107
|
-
showDescription: z.boolean().optional(),
|
|
108
|
-
showCapacity: z.boolean().optional(),
|
|
109
|
-
showAcceptedPasses: z.boolean().optional(),
|
|
110
|
-
showAcceptedMemberships: z.boolean().optional(),
|
|
111
|
-
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
112
|
-
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional(),
|
|
113
|
-
autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional(),
|
|
114
|
-
className: z.string().nullable().optional(),
|
|
115
|
-
now: z.string().datetime({ offset: true })
|
|
116
|
-
});
|
|
117
72
|
const accordionIslandPropsCodec = createZodCodec(accordionIslandSchema);
|
|
118
73
|
const headerSectionIslandPropsCodec = createZodCodec(headerSectionIslandSchema);
|
|
119
74
|
const runtimeIslandCodecs = {
|
|
120
75
|
accordion: accordionIslandPropsCodec,
|
|
121
76
|
carousel: createZodCodec(carouselIslandSchema),
|
|
122
77
|
headerSection: headerSectionIslandPropsCodec,
|
|
123
|
-
"event-details": createZodCodec(eventDetailsIslandSchema),
|
|
124
78
|
"booking-form": bookingFormInteractiveIslandPropsCodec,
|
|
125
79
|
"event-registration": eventRegistrationInteractiveIslandPropsCodec,
|
|
126
80
|
form: formInteractiveIslandPropsCodec,
|