@riverbankcms/sdk 0.182.0 → 0.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -0
- package/README.md +83 -4
- package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-D6T430bk.d.ts → client-DgTRRtl_.d.ts} +14 -1
- package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-DZQJp_ak.d.ts} +9 -16
- package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-CciRW_w1.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-CEyYMhLJ.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CQrb3Ccc.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-DIU-wL1M.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-Cqxis-nv.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-DqPKdeTk.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-DEwxUSw8.d.ts → request-CZz2BoXJ.d.ts} +89478 -88093
- package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +7 -7
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- 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 +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -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 +126 -2
- package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +16 -8
- package/dist/_dts/{types-B3RjeBLV.d.ts → types-Bi7R07RX.d.ts} +45 -4
- package/dist/_dts/{types-BvUSGQrw.d.ts → types-CCcQlRBi.d.ts} +22 -12
- package/dist/_dts/{types-CkRFtBqd.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-C4LcfwyA.mjs} +8 -8
- package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +25 -8
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-Ct1B3xI4.mjs} +10 -10
- package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DgfNtcgW.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-KGKkK19N.mjs} +29 -14
- package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-Dth9L00x.mjs} +118 -76
- package/dist/client/{Page-sV6BJkXX.mjs → Page-DB5KODiu.mjs} +4491 -1398
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +3 -3
- package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DRyZ8igu.mjs} +7 -7
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-C4rCsPCt.mjs} +52 -10
- package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-CqroimVQ.mjs} +1024 -619
- package/dist/client/{accordion-6cuswD_s.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-B7ckDuOC.mjs} +191 -71
- package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/buttonParts-C39GC0kz.mjs +1518 -0
- package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BYOe7MCh.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-Dwd7Di77.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +460 -119
- package/dist/client/{constants-DdxFG3Ic.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-Hi1RuYEM.mjs → context-lCPfX-xe.mjs} +15 -5
- package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DlPfn4YG.mjs} +52 -29
- package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-DWnlEVSK.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-D7zmeqNI.mjs → form.client-DVDB7hY6.mjs} +5 -5
- package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-Cn0jidP5.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--zAjnY5N.mjs} +155 -85
- package/dist/client/gifting.interactive-CrwHpUJG.mjs +207 -0
- package/dist/client/gifting.parts-CcKdDaQq.mjs +124 -0
- package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{noop-jesvJXEE.mjs → islands-dMh0Oxli.mjs} +16103 -7965
- package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-BxA1PsdS.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +229 -197
- package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +51 -35
- package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DiGibcZI.mjs} +31 -9
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BuLemmod.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-B8lrKGPw.mjs} +4 -2
- package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-CI63JVHW.mjs} +2444 -1078
- package/dist/client/rendering/client.mjs +32 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-Jt9hDHdh.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-GuMqnDL-.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-BqLbzUUn.mjs} +47 -28
- package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +2 -2
- package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-0cNErhJT.mjs} +54 -24
- package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
- package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-DqI6U1BS.mjs} +11 -8
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-B0mjVhZr.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Ct4A6iR1.mjs} +14 -16
- package/dist/client/{view-DOyZc-DF.mjs → view-Cj151w4m.mjs} +24 -9
- package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-B3gsXNnb.mjs} +283 -222
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +952 -138
- package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +4774 -2040
- package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-BnJ1ughv.mjs} +71 -47
- package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-C7qWzAe4.mjs} +72 -40
- package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +135 -30
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-CRgbU75r.mjs} +799 -17
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-B4c6U3ZU.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-DrUoRNu9.mjs} +24203 -9291
- package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-CEYp90mM.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-B3PwHw2z.mjs} +46 -11
- package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-DrdQ4ier.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +2008 -448
- package/dist/preview-next/container-responsive.css +469 -2
- package/dist/preview-next/editor-chrome.css +23 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-CwrXkLT3.mjs} +177 -43
- package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DvbqYXdK.mjs} +46 -10
- package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-CAcf1lHT.mjs} +732 -176
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-DMJH4bvo.mjs → bindings-CFw4M-gZ.mjs} +69 -248
- package/dist/server/{client-DrwlRNAH.mjs → client-D0XCgITW.mjs} +488 -119
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-CeMywaiD.mjs → constants-BZduY8jG.mjs} +31 -8
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/{loadContent-D0prFflT.mjs → loadContent-C-qyB8Tq.mjs} +11 -10
- package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-wrcuWmgp.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +18 -5
- package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-DRB7cUZ0.mjs} +674 -298
- package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +13 -6
- package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-BdQF875z.mjs} +911 -516
- package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-pG_uhsI2.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-CppDAfJW.mjs} +4 -4
- package/dist/server/{registry-Cc88-23f.mjs → registry-Bf4W8Qa7.mjs} +7585 -24378
- 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 +4 -4
- package/dist/server/rendering.mjs +10 -10
- package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-ehuW8r2g.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1670 -1346
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-DGaihVwp.mjs} +300 -29
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-CRvmreX7.mjs} +40 -16
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-mcy2E1Yd.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-B2qFOUwZ.mjs} +4 -5
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-C_S0pWbR.mjs} +487 -9
- package/dist/server/{validation-BovmbS8N.mjs → validation-CUtNT_EZ.mjs} +14 -10
- package/dist/server/{version-hws4hgyX.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2987 -168
- package/package.json +1 -1
- package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
- package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
- package/dist/server/customCss-C9kgPHvr.mjs +0 -247
- package/dist/server/lookMediaFrame-H0fi4bJk.mjs +0 -2701
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Gs as bookingCollectionDatesOpen, Ks as flexibleBalanceDueDay, bc as publicEventPricingDisplay, nc as resolveWholeSeriesPaymentDates, pc as getBookingInstalmentProtectedDepositAmountCents } from "./wizardSteps-B3gsXNnb.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/events/domain/depositOffer.ts
|
|
4
4
|
const NO_DEPOSIT = { kind: "none" };
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
-
import { Dn as parsePositiveCents, Tt as normalizeCurrencyCode, _t as unknownKind, c as blockSiteTermsSchema, ft as bookingQuestionsDocumentAnswerValueSchema, gt as exactSchema, ht as evolvingSchema, k as beforeBookingQuestionsPresentationSchema, kn as toNonNegativeCents, m as calendarWindowPageSchema, pt as bookingQuestionsTaskDetailSchema, v as publicPassProductCollectionSchema } from "./src-
|
|
3
|
+
import { Dn as parsePositiveCents, Tt as normalizeCurrencyCode, _t as unknownKind, c as blockSiteTermsSchema, ft as bookingQuestionsDocumentAnswerValueSchema, gt as exactSchema, ht as evolvingSchema, k as beforeBookingQuestionsPresentationSchema, kn as toNonNegativeCents, m as calendarWindowPageSchema, pt as bookingQuestionsTaskDetailSchema, v as publicPassProductCollectionSchema } from "./src-Do_s2lqH.mjs";
|
|
4
4
|
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
5
|
-
import { C as customerProfileSchema, E as eventTicketBreakdownLineSchema, S as portalCreditSchema, T as eventGuestSchema, b as customerPassSchema, d as verifiedSiteTermsAcceptanceSchema, n as customerOrderSchema, s as cancelledMoneySchema, v as customerMembershipSchema, w as enabledModulesSchema } from "./portalOrders-
|
|
5
|
+
import { C as customerProfileSchema, E as eventTicketBreakdownLineSchema, S as portalCreditSchema, T as eventGuestSchema, b as customerPassSchema, d as verifiedSiteTermsAcceptanceSchema, n as customerOrderSchema, s as cancelledMoneySchema, v as customerMembershipSchema, w as enabledModulesSchema } from "./portalOrders-tCxS04g0.mjs";
|
|
6
6
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
7
7
|
import { t as EVENT_BOOKING_RESPONSE_QUERY } from "./events-9LPvwbWp.mjs";
|
|
8
8
|
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
@@ -1650,13 +1650,14 @@ function encodePublicProductCategorySelector(selector) {
|
|
|
1650
1650
|
* field detail, or when what it carried was not a well-formed field error list.
|
|
1651
1651
|
*/
|
|
1652
1652
|
var BlockApiError = class extends Error {
|
|
1653
|
-
constructor(message, status, code, tag, fieldErrors = [], giftCardExpiry) {
|
|
1653
|
+
constructor(message, status, code, tag, fieldErrors = [], giftCardExpiry, organiserContact) {
|
|
1654
1654
|
super(message);
|
|
1655
1655
|
this.status = status;
|
|
1656
1656
|
this.code = code;
|
|
1657
1657
|
this.tag = tag;
|
|
1658
1658
|
this.fieldErrors = fieldErrors;
|
|
1659
1659
|
this.giftCardExpiry = giftCardExpiry;
|
|
1660
|
+
this.organiserContact = organiserContact;
|
|
1660
1661
|
this.name = "BlockApiError";
|
|
1661
1662
|
}
|
|
1662
1663
|
};
|
|
@@ -1702,7 +1703,9 @@ function getBlockApiErrorDetails(data) {
|
|
|
1702
1703
|
const message = typeof nestedError?.message === "string" ? nestedError.message : typeof data.message === "string" ? data.message : void 0;
|
|
1703
1704
|
const code = typeof nestedError?.code === "string" ? nestedError.code : typeof data.code === "string" ? data.code : void 0;
|
|
1704
1705
|
const fieldErrors = fieldErrorsFromUnknown(nestedError?.fieldErrors) ?? fieldErrorsFromUnknown(data.fieldErrors);
|
|
1706
|
+
const contact = organiserContactSchema.safeParse(nestedError?.organiserContact);
|
|
1705
1707
|
return {
|
|
1708
|
+
organiserContact: contact.success ? contact.data : void 0,
|
|
1706
1709
|
message,
|
|
1707
1710
|
code,
|
|
1708
1711
|
tag: typeof nestedError?.tag === "string" ? nestedError.tag : void 0,
|
|
@@ -1729,7 +1732,8 @@ async function extractErrorDetails(response) {
|
|
|
1729
1732
|
code: details.code,
|
|
1730
1733
|
tag: details.tag,
|
|
1731
1734
|
fieldErrors: details.fieldErrors,
|
|
1732
|
-
giftCardExpiry: details.giftCardExpiry
|
|
1735
|
+
giftCardExpiry: details.giftCardExpiry,
|
|
1736
|
+
organiserContact: details.organiserContact
|
|
1733
1737
|
};
|
|
1734
1738
|
}
|
|
1735
1739
|
case "invalid-json": return { message: `${fallbackMessage} (received invalid JSON)` };
|
|
@@ -1887,7 +1891,7 @@ function createBlockApi(config) {
|
|
|
1887
1891
|
const response = timeoutMs === void 0 ? await fetch(url, fetchOptions) : await fetchWithTimeout(url, fetchOptions, timeoutMs);
|
|
1888
1892
|
if (!response.ok) {
|
|
1889
1893
|
const details = await extractErrorDetails(response);
|
|
1890
|
-
throw new BlockApiError(details.message, response.status, details.code, details.tag, details.fieldErrors, details.giftCardExpiry);
|
|
1894
|
+
throw new BlockApiError(details.message, response.status, details.code, details.tag, details.fieldErrors, details.giftCardExpiry, details.organiserContact);
|
|
1891
1895
|
}
|
|
1892
1896
|
return readSuccessfulResponse(response, decoder);
|
|
1893
1897
|
};
|
|
@@ -2250,9 +2254,14 @@ function protectedFormBody({ authorization, ...data }) {
|
|
|
2250
2254
|
}
|
|
2251
2255
|
};
|
|
2252
2256
|
}
|
|
2257
|
+
const organiserContactSchema = z.object({
|
|
2258
|
+
email: z.string().nullable(),
|
|
2259
|
+
phone: z.string().nullable()
|
|
2260
|
+
}).nullable().optional();
|
|
2253
2261
|
const occurrenceId = z.string().min(1);
|
|
2254
2262
|
/** The same endpoint answers a dates subject with the server's funding plan; the block renders it as sent. */
|
|
2255
2263
|
const selectionFundingResponseSchema = z.object({
|
|
2264
|
+
organiserContact: organiserContactSchema,
|
|
2256
2265
|
subject: z.object({
|
|
2257
2266
|
kind: z.literal("dates"),
|
|
2258
2267
|
occurrenceIds: z.tuple([occurrenceId]).rest(occurrenceId).readonly()
|
|
@@ -2264,6 +2273,7 @@ const selectionFundingResponseSchema = z.object({
|
|
|
2264
2273
|
const eventSeriesId = z.string().min(1);
|
|
2265
2274
|
/** And a runs subject with how those runs can be paid. */
|
|
2266
2275
|
const runsSelectionPaymentResponseSchema = z.object({
|
|
2276
|
+
organiserContact: organiserContactSchema,
|
|
2267
2277
|
subject: z.object({
|
|
2268
2278
|
kind: z.literal("runs"),
|
|
2269
2279
|
eventSeriesIds: z.tuple([eventSeriesId]).rest(eventSeriesId).readonly()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Cn as toUtcIsoDateTimeString, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, an as formatDateTimeRange, cn as formatTime, fn as resolveBookingDisplayContext, in as formatDateTime$1, nn as formatDate } from "./src-
|
|
2
|
+
import { Cn as toUtcIsoDateTimeString, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, an as formatDateTimeRange, cn as formatTime, fn as resolveBookingDisplayContext, in as formatDateTime$1, nn as formatDate } from "./src-Do_s2lqH.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-lCPfX-xe.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Gr as buildCartDisplay } from "./wizardSteps-
|
|
4
|
-
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { _n as staticHeaderChromeRuntime } from "./newsletter-form.interactive-D0iRg7p2.mjs";
|
|
3
|
+
import { Gr as buildCartDisplay } from "./wizardSteps-B3gsXNnb.mjs";
|
|
4
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
|
|
5
5
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
6
|
-
import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-
|
|
6
|
+
import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-BT0-zRqN.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent,
|
|
3
|
-
import { An as formatCurrencyAmount, t as assertNever } from "./src-
|
|
4
|
-
import { An as selectionConfirmationHint, Ao as isEventFull, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as canJoinEventWaitlistOnAnyMode, Dn as runPricingChoice, Do as getEventAvailability, Dr as getTicketSelectionTotal, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Fn as selectionItemsLabel,
|
|
5
|
-
import { i as portalPath } from "./portalRoutes-
|
|
6
|
-
import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
7
|
-
import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-
|
|
8
|
-
import { n as useBlockApi } from "./context-
|
|
9
|
-
import {
|
|
10
|
-
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-
|
|
11
|
-
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-
|
|
12
|
-
import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, Tn as formatEventPriceDisplay, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-D0iRg7p2.mjs";
|
|
3
|
+
import { An as formatCurrencyAmount, t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
4
|
+
import { An as selectionConfirmationHint, Ao as isEventFull, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as canJoinEventWaitlistOnAnyMode, Dn as runPricingChoice, Do as getEventAvailability, Dr as getTicketSelectionTotal, Ea as formatPrice, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Fn as selectionItemsLabel, In as selectionPlacesLabel, Is as INCOMPATIBLE_ATTENDANCE_MESSAGE, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Ln as selectionPlacesNote, Mn as selectionEntitlementNote, Mo as selectMostOpenCapacitySource, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Rn as selectionRowAvailability, Rs as setRoomChoicePeople, Sc as publicEventPricingType, So as canJoinEventWaitlist, Ta as formatCentsAsCurrencyInput, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Vi as getRegistrationSuccessCopy, Vs as eventRegistrationErrors, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ar as formatRunScheduleLines, bi as resolveEventRegistrationScopedEvents, c as registrationStepLabelContext, dr as occurrenceTitleOverride, dt as paymentChoiceDetails, et as isEventRegistrationAvailable, ft as paymentChoicePrice, gn as SELECTION_LIMIT_NOTE, ir as formatRegistrationSchedule, jn as selectionConsentLabel, jo as selectEventCapacitySource, jr as setTicketLineQuantity, kn as selectionAtLimit, ko as getRemainingPlaces, l as areEventRegistrationPaymentSelectionsEqual, lo as bookingPresentation, lr as getTicketTypeAvailabilityLabel, n as getEventSelectionMode, nr as formatDate, or as formatTime, pr as withOccurrenceTitle, qn as combinationOffersOf, r as panelShouldOpen, rr as formatEventDateTime, s as registrationStepLabel, tr as formatBookingWhen, tt as normalizeEventRegistrationMaxTickets, ur as getVisibleTicketTypes, wr as canRequestTicketOption, xc as publicEventPricingStrategy, yc as publicEventPricingCurrency, yn as canToggleSelectionItem, yt as entryChoosesEvent, z as shouldPromptForLogin, zs as defaultEventRegistrationErrorAppearance } from "./wizardSteps-B3gsXNnb.mjs";
|
|
5
|
+
import { i as portalPath } from "./portalRoutes-DiGibcZI.mjs";
|
|
6
|
+
import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BDVP_HeK.mjs";
|
|
7
|
+
import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-Dth9L00x.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
9
|
+
import { D as SpinnerNode, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
10
|
+
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DXV4KR7l.mjs";
|
|
11
|
+
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-DRyZ8igu.mjs";
|
|
12
|
+
import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
|
|
13
13
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
14
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
14
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-CTMIII37.mjs";
|
|
15
15
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
16
16
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
17
17
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
18
|
-
import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
19
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
18
|
+
import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-C4LcfwyA.mjs";
|
|
19
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-B_hfgdAP.mjs";
|
|
20
20
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
21
21
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
22
|
-
import { t as CalendarAction } from "./CalendarAction-
|
|
22
|
+
import { t as CalendarAction } from "./CalendarAction-DYGewmvh.mjs";
|
|
23
23
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
import { createPortal } from "react-dom";
|
|
@@ -1216,7 +1216,7 @@ function RoomChooserSummary(props) {
|
|
|
1216
1216
|
/**
|
|
1217
1217
|
* Error Step
|
|
1218
1218
|
*
|
|
1219
|
-
* Displays
|
|
1219
|
+
* Displays the catalogue’s refusal and the next step available to the booker.
|
|
1220
1220
|
*/
|
|
1221
1221
|
const labels = {
|
|
1222
1222
|
none: "",
|
|
@@ -1228,21 +1228,39 @@ const labels = {
|
|
|
1228
1228
|
portal: "View my bookings",
|
|
1229
1229
|
event: "View event"
|
|
1230
1230
|
};
|
|
1231
|
-
const ErrorStep = ({ message, onRetry, action = "retry", canJoinWaitlist = false }) => {
|
|
1231
|
+
const ErrorStep = ({ message, heading = defaultEventRegistrationErrorAppearance.heading, tone = defaultEventRegistrationErrorAppearance.tone, organiserContact, onRetry, action = "retry", canJoinWaitlist = false }) => {
|
|
1232
1232
|
const offerWaitlist = action === "places" && canJoinWaitlist;
|
|
1233
1233
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
1234
|
-
tone
|
|
1234
|
+
tone,
|
|
1235
1235
|
className: "er-center",
|
|
1236
1236
|
titleClassName: "er-title--lg er-message",
|
|
1237
1237
|
icon: /* @__PURE__ */ jsx(StateIcon, {
|
|
1238
|
-
variant:
|
|
1239
|
-
children: /* @__PURE__ */ jsx(CrossIcon, {})
|
|
1238
|
+
variant: tone,
|
|
1239
|
+
children: tone === "error" ? /* @__PURE__ */ jsx(CrossIcon, {}) : /* @__PURE__ */ jsx("svg", {
|
|
1240
|
+
fill: "none",
|
|
1241
|
+
stroke: "currentColor",
|
|
1242
|
+
viewBox: "0 0 24 24",
|
|
1243
|
+
"aria-hidden": "true",
|
|
1244
|
+
children: tone === "info" ? /* @__PURE__ */ jsx("path", {
|
|
1245
|
+
strokeLinecap: "round",
|
|
1246
|
+
strokeLinejoin: "round",
|
|
1247
|
+
strokeWidth: 2,
|
|
1248
|
+
d: "M12 8h.01M11 12h1v4h1"
|
|
1249
|
+
}) : /* @__PURE__ */ jsx("path", {
|
|
1250
|
+
strokeLinecap: "round",
|
|
1251
|
+
strokeLinejoin: "round",
|
|
1252
|
+
strokeWidth: 2,
|
|
1253
|
+
d: "M12 8v4m0 4h.01"
|
|
1254
|
+
})
|
|
1255
|
+
})
|
|
1240
1256
|
}),
|
|
1241
|
-
title:
|
|
1257
|
+
title: heading,
|
|
1242
1258
|
body: /* @__PURE__ */ jsx("p", {
|
|
1243
1259
|
className: "er-text--muted er-message",
|
|
1244
1260
|
children: offerWaitlist ? "Sorry, this event is now full. You can join the waiting list, and we’ll email you if a place becomes available." : message
|
|
1245
1261
|
}),
|
|
1262
|
+
secondaryBody: organiserContact && (organiserContact.email || organiserContact.phone) ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: organiserContact }) : void 0,
|
|
1263
|
+
secondaryBodyClassName: action === "none" ? void 0 : "er-terminal-help",
|
|
1246
1264
|
actions: action === "none" ? void 0 : action === "portal" ? /* @__PURE__ */ jsx("a", {
|
|
1247
1265
|
href: portalPath({ page: "bookings" }),
|
|
1248
1266
|
className: "er-retry-btn",
|
|
@@ -3699,7 +3717,7 @@ const VerifyingPaymentStep = () => {
|
|
|
3699
3717
|
* Displays when the payment was definitively declined/failed.
|
|
3700
3718
|
* Provides a retry option that returns to payment selection with form state preserved.
|
|
3701
3719
|
*/
|
|
3702
|
-
const PaymentFailedStep = ({ onRetry }) => {
|
|
3720
|
+
const PaymentFailedStep = ({ onRetry, organiserContact }) => {
|
|
3703
3721
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
3704
3722
|
tone: "error",
|
|
3705
3723
|
className: "er-center",
|
|
@@ -3709,10 +3727,10 @@ const PaymentFailedStep = ({ onRetry }) => {
|
|
|
3709
3727
|
children: /* @__PURE__ */ jsx(CrossIcon, {})
|
|
3710
3728
|
}),
|
|
3711
3729
|
title: "Your payment didn’t go through",
|
|
3712
|
-
body: /* @__PURE__ */ jsx("p", {
|
|
3730
|
+
body: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
3713
3731
|
className: "er-text--muted er-message",
|
|
3714
3732
|
children: "Please try again or choose another payment option. If this keeps happening, contact the organiser for help."
|
|
3715
|
-
}),
|
|
3733
|
+
}), organiserContact && (organiserContact.email || organiserContact.phone) ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: organiserContact }) : null] }),
|
|
3716
3734
|
actions: /* @__PURE__ */ jsx("button", {
|
|
3717
3735
|
type: "button",
|
|
3718
3736
|
onClick: onRetry,
|
|
@@ -3734,7 +3752,7 @@ const PaymentFailedStep = ({ onRetry }) => {
|
|
|
3734
3752
|
* - "Check Again" button to restart polling
|
|
3735
3753
|
* - Contact support option for user reassurance
|
|
3736
3754
|
*/
|
|
3737
|
-
const VerifyingTimeoutStep = ({ onCheckAgain, supportEmail, title = "We’re checking your payment", buttonVariant = "primary", message = "Your booking is not confirmed yet. Please don’t make another booking while we check. You can check your payment status again in a moment." }) => {
|
|
3755
|
+
const VerifyingTimeoutStep = ({ onCheckAgain, organiserContact, supportEmail, title = "We’re checking your payment", buttonVariant = "primary", message = "Your booking is not confirmed yet. Please don’t make another booking while we check. You can check your payment status again in a moment." }) => {
|
|
3738
3756
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
3739
3757
|
tone: "warning",
|
|
3740
3758
|
className: "er-center",
|
|
@@ -3744,10 +3762,10 @@ const VerifyingTimeoutStep = ({ onCheckAgain, supportEmail, title = "We’re che
|
|
|
3744
3762
|
children: /* @__PURE__ */ jsx(ClockIcon, {})
|
|
3745
3763
|
}),
|
|
3746
3764
|
title,
|
|
3747
|
-
body: /* @__PURE__ */ jsx("p", {
|
|
3765
|
+
body: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
3748
3766
|
className: "er-text--muted er-message",
|
|
3749
|
-
children: onCheckAgain ? message :
|
|
3750
|
-
}),
|
|
3767
|
+
children: onCheckAgain ? message : eventRegistrationErrors.paymentInvestigationRequired.message
|
|
3768
|
+
}), organiserContact && (organiserContact.email || organiserContact.phone) ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: organiserContact }) : null] }),
|
|
3751
3769
|
actions: onCheckAgain ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
3752
3770
|
type: "button",
|
|
3753
3771
|
variant: buttonVariant,
|
|
@@ -3755,7 +3773,7 @@ const VerifyingTimeoutStep = ({ onCheckAgain, supportEmail, title = "We’re che
|
|
|
3755
3773
|
onClick: onCheckAgain,
|
|
3756
3774
|
label: "Check payment status"
|
|
3757
3775
|
}) : void 0,
|
|
3758
|
-
secondaryBody: supportEmail ? /* @__PURE__ */ jsxs("p", {
|
|
3776
|
+
secondaryBody: !organiserContact && supportEmail ? /* @__PURE__ */ jsxs("p", {
|
|
3759
3777
|
className: "er-text er-text--muted er-message",
|
|
3760
3778
|
children: [
|
|
3761
3779
|
"If you were charged but don't receive a confirmation email, please",
|
|
@@ -4351,6 +4369,7 @@ function EventRegistrationWholeScreen(props) {
|
|
|
4351
4369
|
buttonVariant: props.buttonVariant
|
|
4352
4370
|
});
|
|
4353
4371
|
case "paymentFailed": return /* @__PURE__ */ jsx(PaymentFailedStep, {
|
|
4372
|
+
organiserContact: wizard.organiserContact,
|
|
4354
4373
|
message: wizard.errorMessage,
|
|
4355
4374
|
onRetry: () => wizard.setStep("select-payment")
|
|
4356
4375
|
});
|
|
@@ -4552,6 +4571,7 @@ function RegistrationProcessing({ selection, takesPayment }) {
|
|
|
4552
4571
|
function RegistrationVerificationTimeout({ wizard, supportEmail, buttonVariant }) {
|
|
4553
4572
|
const timedOut = wizard.verification.status === "timeout";
|
|
4554
4573
|
return /* @__PURE__ */ jsx(VerifyingTimeoutStep, {
|
|
4574
|
+
organiserContact: wizard.organiserContact,
|
|
4555
4575
|
onCheckAgain: timedOut ? wizard.verification.retry : wizard.verification.retryReturn,
|
|
4556
4576
|
title: timedOut ? void 0 : "We’re checking your payment",
|
|
4557
4577
|
message: timedOut ? void 0 : wizard.errorMessage,
|
|
@@ -4573,6 +4593,9 @@ function RegistrationError({ wizard }) {
|
|
|
4573
4593
|
const admission = wizard.admission;
|
|
4574
4594
|
return /* @__PURE__ */ jsx(ErrorStep, {
|
|
4575
4595
|
message: wizard.errorMessage,
|
|
4596
|
+
heading: wizard.errorHeading,
|
|
4597
|
+
tone: wizard.errorTone,
|
|
4598
|
+
organiserContact: wizard.organiserContact,
|
|
4576
4599
|
action: wizard.errorAction,
|
|
4577
4600
|
canJoinWaitlist: admission.kind === "waitlist",
|
|
4578
4601
|
onRetry: wizard.handleRetry
|
|
@@ -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-lCPfX-xe.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-Ct1B3xI4.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-ZSPcJWx1.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 { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-DgfNtcgW.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.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-ZSPcJWx1.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-lCPfX-xe.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-xFKRDLwC.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-ZSPcJWx1.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,14 +1,15 @@
|
|
|
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-DlPfn4YG.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
5
|
+
import { t as resolveFormPortalToken } from "./portalSession-0XhXyTxT.mjs";
|
|
5
6
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
7
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-ZSPcJWx1.mjs";
|
|
7
8
|
import "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
10
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
10
11
|
const decode = defineIslandPropsDecoder("event-registration");
|
|
11
|
-
const enhance = (root, props) => {
|
|
12
|
+
const enhance = async (root, props) => {
|
|
12
13
|
const { siteId, apiBaseUrl, stage, portalToken, previewToken } = props;
|
|
13
14
|
if (!siteId) throw new Error("[sdk:islands] event-registration requires siteId");
|
|
14
15
|
if (!apiBaseUrl) throw new Error("[sdk:islands] event-registration requires apiBaseUrl");
|
|
@@ -17,7 +18,7 @@ const enhance = (root, props) => {
|
|
|
17
18
|
...buildRouteIslandApiConfig({
|
|
18
19
|
readAuthority: props.readAuthority,
|
|
19
20
|
apiBaseUrl,
|
|
20
|
-
portalToken,
|
|
21
|
+
portalToken: await resolveFormPortalToken(portalToken),
|
|
21
22
|
previewToken,
|
|
22
23
|
siteId,
|
|
23
24
|
stage
|
|
@@ -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-lCPfX-xe.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-DVDB7hY6.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 { n as err, r as ok, t as assertNever } from "./src-
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { n as err, r as ok, t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
4
|
+
import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
|
|
5
|
+
import { O as clsx } from "./ThemedButton-C4rCsPCt.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-1q2rzSYt.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 {
|
|
3
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
2
|
+
import { d as listLookSlot, u as listLookControl } from "./islands-dMh0Oxli.mjs";
|
|
3
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-CTMIII37.mjs";
|
|
4
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-CY6u5sQa.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
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { Cn as toUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, jn as formatGiftCardAmountLabel, nn as formatDate } from "../src-
|
|
4
|
-
import { i as portalPath } from "../portalRoutes-
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
6
|
-
import {
|
|
7
|
-
import { n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-
|
|
3
|
+
import { Cn as toUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, jn as formatGiftCardAmountLabel, nn as formatDate } from "../src-Do_s2lqH.mjs";
|
|
4
|
+
import { i as portalPath } from "../portalRoutes-DiGibcZI.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-lCPfX-xe.mjs";
|
|
6
|
+
import { c as logger } from "../islands-dMh0Oxli.mjs";
|
|
7
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-C4rCsPCt.mjs";
|
|
8
8
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-
|
|
11
|
-
import { t as GiftingClient } from "../gifting.client
|
|
9
|
+
import { l as readChosenGiftAmounts } from "../gifting.parts-CcKdDaQq.mjs";
|
|
10
|
+
import { t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-Ce3Gyin_.mjs";
|
|
11
|
+
import { t as GiftingClient } from "../gifting.client--zAjnY5N.mjs";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useRouter } from "next/navigation";
|
|
@@ -62,6 +62,7 @@ function previewState(value) {
|
|
|
62
62
|
submitting: false,
|
|
63
63
|
feedback: null
|
|
64
64
|
};
|
|
65
|
+
case "cancelled": return { kind: "cancelled" };
|
|
65
66
|
case "already_claimed": return { kind: "already_claimed" };
|
|
66
67
|
case "expired": return {
|
|
67
68
|
kind: "expired",
|
|
@@ -102,6 +103,7 @@ function reduceRedeemState(state, action) {
|
|
|
102
103
|
claim: action.claim,
|
|
103
104
|
signIn: action.claim.signIn ? "pending" : "not_signed_in"
|
|
104
105
|
};
|
|
106
|
+
case "cancelled": return { kind: "cancelled" };
|
|
105
107
|
case "already_claimed": return { kind: "already_claimed" };
|
|
106
108
|
case "expired": return {
|
|
107
109
|
kind: "expired",
|
|
@@ -133,6 +135,7 @@ function claimErrorAction(error) {
|
|
|
133
135
|
type: "feedback",
|
|
134
136
|
value: "rate_limited"
|
|
135
137
|
};
|
|
138
|
+
if (error.tag === "GIFT_CARD_CANCELLED") return { type: "cancelled" };
|
|
136
139
|
if (error.tag === "GIFT_CARD_ALREADY_CLAIMED") return { type: "already_claimed" };
|
|
137
140
|
return {
|
|
138
141
|
type: "feedback",
|
|
@@ -282,7 +285,11 @@ function RedeemResult({ state, ...props }) {
|
|
|
282
285
|
/* @__PURE__ */ jsx("p", {
|
|
283
286
|
className: "rb-portal-notice rb-portal-notice--problem",
|
|
284
287
|
role: "alert",
|
|
285
|
-
children: state.kind === "
|
|
288
|
+
children: state.kind === "cancelled" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
289
|
+
"This gift card has been cancelled. If you think that's a mistake, please ",
|
|
290
|
+
/* @__PURE__ */ jsx(Contact, { ...props }),
|
|
291
|
+
"."
|
|
292
|
+
] }) : state.kind === "already_claimed" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
286
293
|
"This gift card has already been redeemed. If that wasn't you, ",
|
|
287
294
|
/* @__PURE__ */ jsx(Contact, { ...props }),
|
|
288
295
|
"."
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import {
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
5
|
-
import { t as GiftingClient } from "./gifting.client
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { l as readChosenGiftAmounts } from "./gifting.parts-CcKdDaQq.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
5
|
+
import { t as GiftingClient } from "./gifting.client--zAjnY5N.mjs";
|
|
6
6
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|