@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { _n as parsePositiveCents, b as publicPassProductCollectionSchema, c as blockSiteTermsSchema, g as calendarWindowPageSchema, gt as normalizeCurrencyCode, j as beforeBookingQuestionsPresentationSchema, yn as toNonNegativeCents } from "./src-CCtanNlD.mjs";
|
|
3
3
|
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
4
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
5
|
+
import { t as EVENT_BOOKING_RESPONSE_QUERY } from "./events-9LPvwbWp.mjs";
|
|
5
6
|
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
6
7
|
import { createContext, useContext, useMemo } from "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Jt as formatDateTime$1, Kt as formatDate$1,
|
|
2
|
+
import { Jt as formatDateTime$1, Kt as formatDate$1, Qt as formatTime, Yt as formatDateTimeRange, fn as parseUtcIsoDateTimeString, hn as resolveBookingTimeZoneId, nn as resolveBookingDisplayContext, pn as toUtcIsoDateTimeString, un as parseBookingLocalDate } from "./src-CCtanNlD.mjs";
|
|
3
3
|
//#region ../blocks/src/portal/dateFormatting.ts
|
|
4
4
|
/** Optional API timestamps enter the display model here; invalid values never render a Date. */
|
|
5
5
|
function readInstant(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as BlockApiError } from "./context-
|
|
2
|
+
import { i as BlockApiError } from "./context-DTrwaQtg.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
|
|
4
4
|
const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
|
|
5
5
|
const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
|
|
@@ -68,8 +68,9 @@ function isRecord(value) {
|
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region ../blocks/src/system/runtime/shared/utils/demoPortalMagicLink.ts
|
|
70
70
|
const CUSTOMER_PORTAL_PATH = "/portal";
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
const PORTAL_CALLBACK_PATH = "/api/portal/callback";
|
|
72
|
+
function buildPortalCallbackUrl(origin, redirectTo) {
|
|
73
|
+
const url = new URL(PORTAL_CALLBACK_PATH, origin);
|
|
73
74
|
url.searchParams.set("redirect_to", redirectTo);
|
|
74
75
|
return url.toString();
|
|
75
76
|
}
|
|
@@ -96,4 +97,4 @@ async function requestDemoPortalMagicLink(input) {
|
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
99
|
-
export {
|
|
100
|
+
export { readDemoBookingCheckoutReturnEmail as a, storeDemoBookingPassIfAvailable as c, requestDemoPortalMagicLink as i, PORTAL_CALLBACK_PATH as n, storeDemoBookingCheckoutReturn as o, buildPortalCallbackUrl as r, storeDemoBookingPass as s, CUSTOMER_PORTAL_PATH as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { mn as staticHeaderChromeRuntime } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { ir as buildCartDisplay } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
5
5
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
6
6
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
8
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
8
|
+
import { n as useCommerceCart } from "./shop-commerce-store-B7xHksOs.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { createPortal } from "react-dom";
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { bn as formatCurrencyAmount,
|
|
2
|
+
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, Sn as formatEventPriceDisplay, T as DEFAULT_BOOKING_BUTTON_TEXT, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { $n as placesLeftLabel, A as isEventRegistrationAvailable, Aa as getEventAvailability, Ar as resolveEventRegistrationScopedEvents, B as paymentChoiceDetails, Bn as getTicketSelectionTotal, Bt as selectionAtLimit, Cn as getVisibleTicketTypes, D as settledRemainingPlaces, Dt as SELECTION_LIMIT_NOTE, Ea as canJoinEventWaitlistOnAnyMode, En as withOccurrenceTitle, Fa as selectMostOpenCapacitySource, Ht as selectionConsentLabel, It as runChoiceUsable, Jt as selectionPlacesNote, Kt as selectionItemsLabel, Ln as canRequestTicketOption, Lt as runNeedsPricingChoice, Ma as getRemainingPlaces, Na as isEventFull, Ot as SEVERAL_BOOKINGS_ACCOUNT_NOTE, Pa as selectEventCapacitySource, Ro as INCOMPATIBLE_ATTENDANCE_MESSAGE, Rt as runPricingChoice, Sn as getTicketTypeAvailabilityLabel, T as resolveRegistrationAvailabilityBlocker, Ta as canJoinEventWaitlist, Ut as selectionEntitlementNote, V as paymentChoicePrice, Vn as getTicketTypeLineMax, Vt as selectionConfirmationHint, Wn as setTicketLineQuantity, Wt as selectionIncludes, Xr as getRegistrationSuccessCopy, Yt as selectionRowAvailability, Zt as severalConfirmationSentence, _ as shouldPromptForLogin, _a as bookingPresentation, _n as formatPassCreditUsageLabel, b as placeCountCeiling, c as registrationStepLabelContext, dn as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, fi as formatCentsAsCurrencyInput, fn as areEntitlementsDisabledForTicketCount, fs as publicEventPricingStrategy, gn as formatEventDateTime, hn as formatDate, in as combinationOffersOf, j as normalizeEventRegistrationMaxTickets, kt as canToggleSelectionItem, l as areEventRegistrationPaymentSelectionsEqual, mn as formatBookingWhen, n as getEventSelectionMode, nr as shownVenue, ot as confirmationPaymentRows, pi as formatPrice, ps as publicEventPricingType, qt as selectionPlacesLabel, r as panelShouldOpen, rn as combinationOfferLine, rr as appliedDiscountHint, s as registrationStepLabel, sn as selectionItemName, st as resolveFinishedPresentation, us as publicEventPricingCurrency, v as fullyBookedLabel, vn as formatRegistrationSchedule, wn as occurrenceTitleOverride, yn as formatTime, zn as getTicketLineQuantity, zt as runUnitPriceCents } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { bn as formatCurrencyAmount, t as assertNever } from "./src-CCtanNlD.mjs";
|
|
5
5
|
import { g as formatCreditProductUnits } from "./creditProducts-BQ1t1erI.mjs";
|
|
6
|
-
import { a as eventSiteTermsSurface, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { a as eventSiteTermsSurface, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-CDBU31xW.mjs";
|
|
7
|
+
import { a as planEventRegistrationSurface, i as useEventRegistrationRecoveryRequest, o as registrationAdmissionSurface, r as useEventRegistrationWizard, s as resolveEventRegistrationClientSurface, t as EventPaymentMount } from "./EventRegistrationPayment-DqtX1vB2.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
9
|
+
import { r as ThemedButton, x as SpinnerNode } from "./ThemedButton-CnSa7o-I.mjs";
|
|
10
|
+
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
|
+
import { f as NavigationHandOffPanel, p as DiscountCodeDisclosure, t as BookingConfirmation } from "./DemoBookingPortalAccess-uA9H8LIL.mjs";
|
|
11
12
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
13
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
13
14
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
14
15
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
15
16
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-I_mXI9Yd.mjs";
|
|
17
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-rQRE1-Ho.mjs";
|
|
18
18
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
19
|
-
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
20
|
-
import { t as
|
|
21
|
-
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-Bb7rPtSq.mjs";
|
|
19
|
+
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-BsbEgagJ.mjs";
|
|
20
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-2Dl9zon2.mjs";
|
|
22
21
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
23
22
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
24
23
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -89,76 +88,6 @@ function LoggedInAsUser({ email, onLogout, classPrefix }) {
|
|
|
89
88
|
});
|
|
90
89
|
}
|
|
91
90
|
//#endregion
|
|
92
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationSurface.ts
|
|
93
|
-
/** Admission only limits fresh bookings; existing purchases always reach recovery. */
|
|
94
|
-
function registrationAdmissionSurface(input) {
|
|
95
|
-
if (input.recoveryRequested) return "registration";
|
|
96
|
-
switch (input.availability) {
|
|
97
|
-
case "open": return "registration";
|
|
98
|
-
case "closed": return "closed";
|
|
99
|
-
case "empty": return "empty";
|
|
100
|
-
default: return assertNever(input.availability);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/** Resolve the host guard once; past-date notices only concern new bookings. */
|
|
104
|
-
function resolveEventRegistrationClientSurface(input) {
|
|
105
|
-
if (input.recoveryRequest !== "none") return { kind: "wizard" };
|
|
106
|
-
switch (input.plan.kind) {
|
|
107
|
-
case "wholeSeries": return { kind: "wizard" };
|
|
108
|
-
case "unavailableWholeSeries":
|
|
109
|
-
case "mixedBookingScopes": return { kind: "unavailable" };
|
|
110
|
-
case "occurrence": return input.pastStartsAt ? {
|
|
111
|
-
kind: "past",
|
|
112
|
-
startsAt: input.pastStartsAt
|
|
113
|
-
} : { kind: "wizard" };
|
|
114
|
-
default: return assertNever(input.plan);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Whether a run agrees with the offering whose page it arrived on.
|
|
119
|
-
*
|
|
120
|
-
* Scoping has already restricted the events to the subject's series, so the
|
|
121
|
-
* series set needs no second check here. What is still worth checking is the
|
|
122
|
-
* run's own idea of its parent: a run that claims a different offering means
|
|
123
|
-
* the page and the data disagree about who owns it, and the surface fails
|
|
124
|
-
* closed rather than taking a booking against an offering it cannot vouch for.
|
|
125
|
-
*/
|
|
126
|
-
function agreesWithSubjectOffering(run, subject) {
|
|
127
|
-
if (subject?.kind !== "eventOffering") return true;
|
|
128
|
-
return run.run.eventOfferingId === subject.eventOfferingId;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Subjects whose page only ever registers for a whole run.
|
|
132
|
-
*
|
|
133
|
-
* The subject's own booking scope decides, for an offering exactly as for a
|
|
134
|
-
* series: an ordinary offering with no dates is a normal empty state, not a
|
|
135
|
-
* whole-series page with nothing bookable.
|
|
136
|
-
*/
|
|
137
|
-
function isWholeSeriesSubject(subject) {
|
|
138
|
-
return (subject?.kind === "eventOffering" || subject?.kind === "eventSeries") && subject.bookingScope === "whole_series";
|
|
139
|
-
}
|
|
140
|
-
function planEventRegistrationSurface(input) {
|
|
141
|
-
const scopedEvents = resolveEventRegistrationScopedEvents(input.events, {
|
|
142
|
-
occurrenceContext: input.occurrenceContext,
|
|
143
|
-
subject: input.subject
|
|
144
|
-
});
|
|
145
|
-
const bookingScopes = new Set(scopedEvents.map((event) => event.bookingScope));
|
|
146
|
-
if (scopedEvents.length === 0 && isWholeSeriesSubject(input.subject)) return { kind: "unavailableWholeSeries" };
|
|
147
|
-
if (!input.occurrenceContext && !input.subject && bookingScopes.has("single_occurrence")) return {
|
|
148
|
-
kind: "occurrence",
|
|
149
|
-
events: scopedEvents.filter((event) => event.bookingScope === "single_occurrence")
|
|
150
|
-
};
|
|
151
|
-
if (bookingScopes.size === 0 || bookingScopes.has("single_occurrence")) return bookingScopes.has("whole_series") ? { kind: "mixedBookingScopes" } : {
|
|
152
|
-
kind: "occurrence",
|
|
153
|
-
events: scopedEvents
|
|
154
|
-
};
|
|
155
|
-
const runs = groupPublicEventsByRun(scopedEvents);
|
|
156
|
-
return runs.every((run) => agreesWithSubjectOffering(run, input.subject)) && runs.length > 0 ? {
|
|
157
|
-
kind: "wholeSeries",
|
|
158
|
-
runs
|
|
159
|
-
} : { kind: "unavailableWholeSeries" };
|
|
160
|
-
}
|
|
161
|
-
//#endregion
|
|
162
91
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useBookingBarFacts.ts
|
|
163
92
|
/** The CSS variable the bar reads its push from (`translateY`). */
|
|
164
93
|
const BOOKING_BAR_PUSH_VAR = "--er-bar-push";
|
|
@@ -2198,16 +2127,20 @@ const EventSelectionStep = (props) => {
|
|
|
2198
2127
|
});
|
|
2199
2128
|
if (getEventSelectionMode(events) === "date") return /* @__PURE__ */ jsxs("div", {
|
|
2200
2129
|
className: "rb-reg-stack er-stack",
|
|
2201
|
-
children: [
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2130
|
+
children: [
|
|
2131
|
+
/* @__PURE__ */ jsx("h3", {
|
|
2132
|
+
tabIndex: -1,
|
|
2133
|
+
className: "er-title",
|
|
2134
|
+
children: "Choose a date"
|
|
2135
|
+
}),
|
|
2136
|
+
/* @__PURE__ */ jsx(BookingCloseLine, { events }),
|
|
2137
|
+
/* @__PURE__ */ jsx(DateSelectionList, {
|
|
2138
|
+
events: [...events].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt)),
|
|
2139
|
+
selectedEvent,
|
|
2140
|
+
display,
|
|
2141
|
+
onChoose
|
|
2142
|
+
})
|
|
2143
|
+
]
|
|
2211
2144
|
});
|
|
2212
2145
|
return /* @__PURE__ */ jsx(EventList, {
|
|
2213
2146
|
events,
|
|
@@ -2283,6 +2216,14 @@ function EventListCard({ event, selected, onSelect, display }) {
|
|
|
2283
2216
|
})
|
|
2284
2217
|
});
|
|
2285
2218
|
}
|
|
2219
|
+
/** When bookings close, inside the booking card, if the cut-off is earlier than the start. */
|
|
2220
|
+
function BookingCloseLine({ events }) {
|
|
2221
|
+
const line = events.find((event) => event.bookingCloseLine)?.bookingCloseLine;
|
|
2222
|
+
return line ? /* @__PURE__ */ jsx("p", {
|
|
2223
|
+
className: "er-text er-text--muted",
|
|
2224
|
+
children: line
|
|
2225
|
+
}) : null;
|
|
2226
|
+
}
|
|
2286
2227
|
const SEVERAL_HEADINGS = {
|
|
2287
2228
|
dates: {
|
|
2288
2229
|
title: "Choose dates",
|
|
@@ -2320,6 +2261,7 @@ function SeveralSelection(props) {
|
|
|
2320
2261
|
className: "er-text er-text--muted er-selection-lede",
|
|
2321
2262
|
children: heading.lede
|
|
2322
2263
|
}),
|
|
2264
|
+
/* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
|
|
2323
2265
|
/* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
|
|
2324
2266
|
/* @__PURE__ */ jsx("div", {
|
|
2325
2267
|
className: "er-date-list",
|
|
@@ -3181,7 +3123,7 @@ function entitlementRows(props) {
|
|
|
3181
3123
|
//#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
|
|
3182
3124
|
/** Download effects happen only after a click, including in editor preview. */
|
|
3183
3125
|
async function downloadCalendar(calendar) {
|
|
3184
|
-
const { renderCalendarFeedIcs } = await import("./src-
|
|
3126
|
+
const { renderCalendarFeedIcs } = await import("./src-DqMbCjI1.mjs");
|
|
3185
3127
|
const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
|
|
3186
3128
|
const link = document.createElement("a");
|
|
3187
3129
|
link.href = url;
|
|
@@ -3702,6 +3644,11 @@ function ticketStepInvitation(claim) {
|
|
|
3702
3644
|
expiresAt: claim.claim.expiresAt
|
|
3703
3645
|
} : { kind: "pending" };
|
|
3704
3646
|
}
|
|
3647
|
+
/** With a date to pick, the choosing step has already said it. */
|
|
3648
|
+
function TicketStepBookingCloseLine({ wizard }) {
|
|
3649
|
+
if (wizard.scopedEvents.length > 1 || wizard.waitlistClaim.kind !== "none") return null;
|
|
3650
|
+
return /* @__PURE__ */ jsx(BookingCloseLine, { events: wizard.scopedEvents });
|
|
3651
|
+
}
|
|
3705
3652
|
function TicketSelectionContent({ wizard, display }) {
|
|
3706
3653
|
if (!wizard.selectedEvent && !wizard.occurrenceContext) return null;
|
|
3707
3654
|
const isWaitlisted = wizard.admission.kind === "closed" && wizard.admission.reason === "alreadyWaitlisted";
|
|
@@ -3716,6 +3663,7 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
3716
3663
|
onBookForSomeoneElse: wizard.handleBookForSomeoneElse
|
|
3717
3664
|
}),
|
|
3718
3665
|
/* @__PURE__ */ jsx(ClosedAdmissionNotice, { wizard }),
|
|
3666
|
+
/* @__PURE__ */ jsx(TicketStepBookingCloseLine, { wizard }),
|
|
3719
3667
|
wizard.severalItems === "runs" ? /* @__PURE__ */ jsx(SeveralRunsTicketStep, {
|
|
3720
3668
|
wizard,
|
|
3721
3669
|
display
|
|
@@ -4209,6 +4157,46 @@ function signInBenefitsTitle(benefits) {
|
|
|
4209
4157
|
return benefits.credit ? "Have credit on your account?" : null;
|
|
4210
4158
|
}
|
|
4211
4159
|
//#endregion
|
|
4160
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.tsx
|
|
4161
|
+
function getParentPathname(pathname) {
|
|
4162
|
+
const segments = pathname.split("/").filter(Boolean);
|
|
4163
|
+
if (segments.length < 2) return null;
|
|
4164
|
+
return `/${segments.slice(0, -1).join("/")}`;
|
|
4165
|
+
}
|
|
4166
|
+
function PastOccurrenceNotice(props) {
|
|
4167
|
+
const [parentPathname, setParentPathname] = useState(null);
|
|
4168
|
+
useEffect(() => {
|
|
4169
|
+
setParentPathname(getParentPathname(window.location.pathname));
|
|
4170
|
+
}, []);
|
|
4171
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4172
|
+
id: props.anchorId,
|
|
4173
|
+
className: `event-registration ${props.className || ""}`,
|
|
4174
|
+
"data-block": "event-registration",
|
|
4175
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
4176
|
+
className: "er-empty",
|
|
4177
|
+
children: [/* @__PURE__ */ jsxs("p", {
|
|
4178
|
+
className: "er-empty__text",
|
|
4179
|
+
children: [
|
|
4180
|
+
"This event date (",
|
|
4181
|
+
formatEventDateTime(props.startsAt, {
|
|
4182
|
+
timeZone: props.timeZone,
|
|
4183
|
+
siteTimeZone: props.siteTimeZone,
|
|
4184
|
+
deliveryMode: props.deliveryMode
|
|
4185
|
+
}, "long"),
|
|
4186
|
+
") has already started. Registration is closed."
|
|
4187
|
+
]
|
|
4188
|
+
}), parentPathname && /* @__PURE__ */ jsx("p", {
|
|
4189
|
+
className: "er-empty__text",
|
|
4190
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
4191
|
+
href: parentPathname,
|
|
4192
|
+
className: "er-link",
|
|
4193
|
+
children: "View other dates for this event"
|
|
4194
|
+
})
|
|
4195
|
+
})]
|
|
4196
|
+
})
|
|
4197
|
+
});
|
|
4198
|
+
}
|
|
4199
|
+
//#endregion
|
|
4212
4200
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx
|
|
4213
4201
|
const EVENT_PORTAL_AUTH_COPY = {
|
|
4214
4202
|
membership: {
|
|
@@ -4284,11 +4272,26 @@ function useConfiguredEventRegistrationWizard(props) {
|
|
|
4284
4272
|
}
|
|
4285
4273
|
function EventRegistrationWizard(props) {
|
|
4286
4274
|
const wizard = useConfiguredEventRegistrationWizard(props);
|
|
4287
|
-
return /* @__PURE__ */ jsx(
|
|
4275
|
+
return /* @__PURE__ */ jsx(EventRegistrationWizardSurface, {
|
|
4288
4276
|
...props,
|
|
4289
4277
|
wizard
|
|
4290
4278
|
});
|
|
4291
4279
|
}
|
|
4280
|
+
/** Closing swaps out the booking steps only for someone who hadn't started: the hook decides who that is. */
|
|
4281
|
+
function EventRegistrationWizardSurface(props) {
|
|
4282
|
+
const closure = props.wizard.bookingClosure;
|
|
4283
|
+
switch (closure.kind) {
|
|
4284
|
+
case "open":
|
|
4285
|
+
case "underway": return /* @__PURE__ */ jsx(EventRegistrationWizardView, { ...props });
|
|
4286
|
+
case "closedEarly": return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
4287
|
+
title: closure.copy.titleText,
|
|
4288
|
+
body: closure.copy.bodyText,
|
|
4289
|
+
otherDatesHref: closure.copy.otherDatesHref
|
|
4290
|
+
});
|
|
4291
|
+
case "started": return /* @__PURE__ */ jsx(PastOccurrenceNotice, { ...pastOccurrenceNoticeProps(props, closure.startsAt) });
|
|
4292
|
+
default: return assertNever(closure);
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4292
4295
|
/** The panel header's pinned progress, while the panel shows a step (issue 1581). */
|
|
4293
4296
|
function overlayProgress(presentation, stepLabelContext) {
|
|
4294
4297
|
if (presentation.layout !== "steps" || !presentation.progress) return null;
|
|
@@ -4304,6 +4307,18 @@ function overlayProgress(presentation, stepLabelContext) {
|
|
|
4304
4307
|
function ticketStepOffersSignIn(wizard, pricingType) {
|
|
4305
4308
|
return wizard.step === "select-tickets" && wizard.severalItems === null && wizard.portalAuthState !== "authenticated" && wizard.portalAuthState !== "checking" && pricingType !== "free";
|
|
4306
4309
|
}
|
|
4310
|
+
/** Older sources can omit session facts; admission keeps the notice render-safe. */
|
|
4311
|
+
function pastOccurrenceNoticeProps(props, startsAt) {
|
|
4312
|
+
const event = props.events?.find((candidate) => candidate.occurrenceId === props.occurrenceContext?.id);
|
|
4313
|
+
return {
|
|
4314
|
+
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
4315
|
+
className: props.className,
|
|
4316
|
+
startsAt,
|
|
4317
|
+
timeZone: props.occurrenceContext?.timeZone ?? null,
|
|
4318
|
+
siteTimeZone: event?.siteTimeZone ?? null,
|
|
4319
|
+
deliveryMode: event?.deliveryMode ?? null
|
|
4320
|
+
};
|
|
4321
|
+
}
|
|
4307
4322
|
function EventRegistrationWizardView(viewProps) {
|
|
4308
4323
|
const { wizard, ...props } = viewProps;
|
|
4309
4324
|
const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, supportEmail } = props;
|
|
@@ -4355,7 +4370,7 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
4355
4370
|
}));
|
|
4356
4371
|
const showPortalAuthPrompt = waitlistClaimRequiresPortalLogin || ticketStepOffersSignIn(wizard, summaryEventPricingType) && portalAuthCopy.title !== "";
|
|
4357
4372
|
const presentation = resolveFinishedPresentation(wizard.presentation, {
|
|
4358
|
-
events: wizard.
|
|
4373
|
+
events: wizard.recoveryEvents,
|
|
4359
4374
|
completedOutcomes: wizard.flow.completedOutcomes,
|
|
4360
4375
|
draftEvent: summaryEvent ?? null,
|
|
4361
4376
|
occurrenceContext: wizard.occurrenceContext,
|
|
@@ -4443,63 +4458,6 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
4443
4458
|
});
|
|
4444
4459
|
}
|
|
4445
4460
|
//#endregion
|
|
4446
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.ts
|
|
4447
|
-
/** Retain arrival intent while the payment controller cleans up the return URL. */
|
|
4448
|
-
function useEventRegistrationRecoveryRequest() {
|
|
4449
|
-
const [arrival] = useState(() => {
|
|
4450
|
-
if (typeof window === "undefined") return "none";
|
|
4451
|
-
if (eventRegistrationCheckoutReturnRequest(new URLSearchParams(window.location.search))) return "paymentReturn";
|
|
4452
|
-
return getWaitlistClaimTokenFromUrl() || getWaitlistClaimEntryIdFromUrl() ? "waitlistInvitation" : "none";
|
|
4453
|
-
});
|
|
4454
|
-
return arrival;
|
|
4455
|
-
}
|
|
4456
|
-
//#endregion
|
|
4457
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.tsx
|
|
4458
|
-
function isPastOccurrence(startsAt, now) {
|
|
4459
|
-
if (!startsAt) return false;
|
|
4460
|
-
const startsAtTime = Date.parse(startsAt);
|
|
4461
|
-
if (!Number.isFinite(startsAtTime)) return false;
|
|
4462
|
-
return startsAtTime <= Date.parse(now);
|
|
4463
|
-
}
|
|
4464
|
-
function getParentPathname(pathname) {
|
|
4465
|
-
const segments = pathname.split("/").filter(Boolean);
|
|
4466
|
-
if (segments.length < 2) return null;
|
|
4467
|
-
return `/${segments.slice(0, -1).join("/")}`;
|
|
4468
|
-
}
|
|
4469
|
-
function PastOccurrenceNotice(props) {
|
|
4470
|
-
const [parentPathname, setParentPathname] = useState(null);
|
|
4471
|
-
useEffect(() => {
|
|
4472
|
-
setParentPathname(getParentPathname(window.location.pathname));
|
|
4473
|
-
}, []);
|
|
4474
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4475
|
-
id: props.anchorId,
|
|
4476
|
-
className: `event-registration ${props.className || ""}`,
|
|
4477
|
-
"data-block": "event-registration",
|
|
4478
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
4479
|
-
className: "er-empty",
|
|
4480
|
-
children: [/* @__PURE__ */ jsxs("p", {
|
|
4481
|
-
className: "er-empty__text",
|
|
4482
|
-
children: [
|
|
4483
|
-
"This event date (",
|
|
4484
|
-
formatEventDateTime(props.startsAt, {
|
|
4485
|
-
timeZone: props.timeZone,
|
|
4486
|
-
siteTimeZone: props.siteTimeZone,
|
|
4487
|
-
deliveryMode: props.deliveryMode
|
|
4488
|
-
}, "long"),
|
|
4489
|
-
") has already started. Registration is closed."
|
|
4490
|
-
]
|
|
4491
|
-
}), parentPathname && /* @__PURE__ */ jsx("p", {
|
|
4492
|
-
className: "er-empty__text",
|
|
4493
|
-
children: /* @__PURE__ */ jsx("a", {
|
|
4494
|
-
href: parentPathname,
|
|
4495
|
-
className: "er-link",
|
|
4496
|
-
children: "View other dates for this event"
|
|
4497
|
-
})
|
|
4498
|
-
})]
|
|
4499
|
-
})
|
|
4500
|
-
});
|
|
4501
|
-
}
|
|
4502
|
-
//#endregion
|
|
4503
4461
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.ts
|
|
4504
4462
|
const RECOVERY_DELAYS_MS = [
|
|
4505
4463
|
0,
|
|
@@ -4598,47 +4556,27 @@ function toEventRegistrationClientProps(props, display) {
|
|
|
4598
4556
|
className: display.className ?? void 0
|
|
4599
4557
|
};
|
|
4600
4558
|
}
|
|
4601
|
-
/** Older sources can omit session facts; admission keeps the notice render-safe. */
|
|
4602
|
-
function pastOccurrenceNoticeProps(clientProps, startsAt) {
|
|
4603
|
-
const event = clientProps.events?.find((event) => event.occurrenceId === clientProps.occurrenceContext?.id);
|
|
4604
|
-
return {
|
|
4605
|
-
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
4606
|
-
className: clientProps.className,
|
|
4607
|
-
startsAt,
|
|
4608
|
-
timeZone: clientProps.occurrenceContext?.timeZone ?? null,
|
|
4609
|
-
siteTimeZone: event?.siteTimeZone ?? null,
|
|
4610
|
-
deliveryMode: event?.deliveryMode ?? null
|
|
4611
|
-
};
|
|
4612
|
-
}
|
|
4613
4559
|
const EventRegistrationClient = (clientProps) => {
|
|
4614
|
-
const
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
const presentation = resolveEventRegistrationClientSurface({
|
|
4622
|
-
plan: surface,
|
|
4623
|
-
recoveryRequest,
|
|
4624
|
-
pastStartsAt: isPastOccurrence(startsAt, useBookingNowIso(clientProps.now, {
|
|
4625
|
-
kind: "presentation",
|
|
4626
|
-
nextBoundary: startsAt ?? null
|
|
4627
|
-
})) ? startsAt ?? null : null
|
|
4560
|
+
const surface = resolveEventRegistrationClientSurface({
|
|
4561
|
+
recoveryRequest: useEventRegistrationRecoveryRequest(),
|
|
4562
|
+
plan: planEventRegistrationSurface({
|
|
4563
|
+
events: clientProps.events ?? [],
|
|
4564
|
+
occurrenceContext: clientProps.occurrenceContext,
|
|
4565
|
+
subject: clientProps.subject
|
|
4566
|
+
})
|
|
4628
4567
|
});
|
|
4629
4568
|
if (hasCancelledRegistrationDate(clientProps.events ?? [], clientProps.occurrenceContext?.id)) return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
4630
4569
|
title: cancelledDateCopy.titleText,
|
|
4631
4570
|
body: cancelledDateCopy.bodyText
|
|
4632
4571
|
});
|
|
4633
|
-
switch (
|
|
4572
|
+
switch (surface) {
|
|
4634
4573
|
case "wizard": return /* @__PURE__ */ jsx(EventRegistrationWizard, { ...clientProps });
|
|
4635
4574
|
case "unavailable": return /* @__PURE__ */ jsx("div", {
|
|
4636
4575
|
className: clientProps.className,
|
|
4637
4576
|
role: "status",
|
|
4638
4577
|
children: "Registration is temporarily unavailable. Please refresh the page or try again shortly."
|
|
4639
4578
|
});
|
|
4640
|
-
|
|
4641
|
-
default: return assertNever(presentation);
|
|
4579
|
+
default: return assertNever(surface);
|
|
4642
4580
|
}
|
|
4643
4581
|
};
|
|
4644
4582
|
const EventRegistrationIslandClient = (props) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-yoSI77ov.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BWq5gKFK.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCalendar.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-HeCNlliq.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BWq5gKFK.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-B5ln77jG.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BWq5gKFK.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as EventRegistrationIslandClient } from "./event-registration.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { n as EventRegistrationIslandClient } from "./event-registration.client-RLZQWi2V.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BWq5gKFK.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region ../blocks/src/contracts/events.ts
|
|
4
|
+
/** Release 1: older SDKs reject additional confirmed-outcome fields. */
|
|
5
|
+
const EVENT_BOOKING_ARRIVAL_QUERY = "bookingArrival";
|
|
6
|
+
/** This client ignores unknown response fields, so it can be sent everything. Bundles up to sdk-v0.169.1 don't send it. */
|
|
7
|
+
const EVENT_BOOKING_DECODER_QUERY = "bookingDecoder";
|
|
8
|
+
const EVENT_BOOKING_RESPONSE_QUERY = {
|
|
9
|
+
[EVENT_BOOKING_ARRIVAL_QUERY]: 1,
|
|
10
|
+
[EVENT_BOOKING_DECODER_QUERY]: "tolerant"
|
|
11
|
+
};
|
|
12
|
+
const eventAutoApplyDiscountPreviewBaseSchema = z.object({
|
|
13
|
+
id: z.string(),
|
|
14
|
+
publicLabel: z.string(),
|
|
15
|
+
description: z.string().nullable(),
|
|
16
|
+
minTicketsRequired: z.number().nullable()
|
|
17
|
+
});
|
|
18
|
+
const eventAutoApplyDiscountPreviewSchema = z.discriminatedUnion("discountType", [eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
19
|
+
discountType: z.literal("percent"),
|
|
20
|
+
discountPercent: z.number(),
|
|
21
|
+
discountAmountCents: z.null()
|
|
22
|
+
}), eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
23
|
+
discountType: z.literal("fixed"),
|
|
24
|
+
discountPercent: z.null(),
|
|
25
|
+
discountAmountCents: z.number()
|
|
26
|
+
})]);
|
|
27
|
+
//#endregion
|
|
28
|
+
export { eventAutoApplyDiscountPreviewSchema as n, EVENT_BOOKING_RESPONSE_QUERY as t };
|
|
@@ -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 FormNodeClient } from "./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 FormNodeClient } from "./form.client-DBwzkB0M.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,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
5
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { n as err, r as ok, t as assertNever } from "./src-CCtanNlD.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
4
|
+
import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
5
|
+
import { S as clsx } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-CY4kX3mh.mjs";
|
|
8
8
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
9
9
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
10
10
|
import { useReducer, useRef } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as listLookControl, r as listLookSlot } from "./lookSurfaces-
|
|
3
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
2
|
+
import { n as listLookControl, r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
3
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
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/form.fields.tsx
|