@riverbankcms/sdk 0.183.0 → 0.185.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 +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.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 +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- 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 +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
- package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
- package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +61 -48
- package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
- package/dist/client/gifting/client.mjs +8 -8
- package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +999 -81
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
- package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +158 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
- 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 +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +684 -181
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
-
import { An as formatCurrencyAmount, St as roomChoicesSchema, dn as inferSiteDateLocale, t as assertNever, wn as resolveBookingBusinessTimeZone, xt as reviewedRoomsSchema } from "./src-
|
|
4
|
-
import { $
|
|
5
|
-
import { i as portalPath } from "./portalRoutes-
|
|
6
|
-
import { c as checkBookingQuestionsAnswered } from "./bookingCalendar
|
|
7
|
-
import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-
|
|
3
|
+
import { An as formatCurrencyAmount, St as roomChoicesSchema, dn as inferSiteDateLocale, t as assertNever, wn as resolveBookingBusinessTimeZone, xt as reviewedRoomsSchema } from "./src-CJf3u16T.mjs";
|
|
4
|
+
import { $ as visitorHoldsOwnPlace, $n as selectionPreviewLines, A as ownCoverPaysEveryDate, Ar as hasValidPricingOptionSelection, At as resolveDiscountContext, Bn as selectionTicketInputs, Bt as decideRoomStay, C as currentSelectionFundingLookup, Cn as planSelectionPrice, Cr as shouldLoadRegistrationOptions, Ct as entryStart, D as fundingOptionPick, Da as formatPrice, Dt as withOfferedEvent, E as fundingOptionKey, Er as getSingleSelectedPricingOptionId, Et as invitationBooking, F as selectionFundingRequest, Fn as selectionItemPrice, Ft as registrationQuestionsMessage, G as planRegistrationDetailsContinuation, Gn as toggleSelectionItem, Gr as appliedDiscountHint, Gs as eventRegistrationRefusalMessage, Gt as roomSubmission, H as getTicketSelectionPurpose, Hn as severalItemsOf, Hs as eventRegistrationErrorEndsCommand, Ht as isRoomChoiceRefusal, I as buildEventRegistrationPaymentOptionsViewModel, It as validateFormData, J as resolveGuestNextStepCheck, Jn as combinationOffersOf, Jt as toWaitlistClaimResolveFailure, K as registrationBookingRequirements, Kn as combinationHintCopy, Ks as parseEventRegistrationErrorReason, Kt as selectRoomOffer, L as buildSelectionCollectionOptions, M as selectionFundingBasis, Mt as resolveRegistrationTarget, N as selectionFundingFetchWanted, Nt as resolveRouteRequiresPayment, O as initialSelectionFundingLookup, Ot as buildRegistrationSelectionRequest, P as selectionFundingReducer, Pi as groupPublicEventsByRun, Pn as selectionIncludes, Pt as toRegistrationRequestSubject, Qr as formatCommercePrice, Qt as toRegistrationEvents, R as decideEventRegistrationPayment, Rt as bookingLines, S as chosenFundingOption, Sc as publicEventPricingCurrency, Sn as incompleteRunChoiceMessage, Sr as resolveHeldTicketPlaces, St as entrySelectionMode, T as fundingMoneyDates, Tn as quoteReductions, Tt as invitationSubmission, Un as severalRunsChoiceMessage, Us as eventRegistrationErrors, Ut as presentRoomChooser, Vs as defaultEventRegistrationErrorAppearance, Vt as defaultTicketOptions, W as planRegistrationDetailsCheck, Wn as summariseSelectionPayment, Ws as eventRegistrationRefusalAction, Wt as roomChoiceMessage, Xn as paymentCaption, Y as resolveRegistrationAdmission, Yn as combinationWorking, Z as resolveRegistrationTicketContinuation, Zn as selectionCombinationHint, Zs as getStripeMinimumChargeRequirement, Zt as getRegistrationStartAt, _ as pickCollections, _r as getRegistrationOccurrenceId, _t as createBookingBrowserDraftStore, a as registrationPresentation, an as toEventSignInDraft, b as selectionPaysNothing, ba as isBookingQuestionsOwner, bi as resolveEventRegistrationChoices, bn as canToggleSelectionItem, br as getTicketSelectionRemainingPlaces, bt as entryChoosesEvent, cc as resolveBookingSignupOffer, cn as decideSelectionRequirementsLayout, co as requestSignIn, cr as getImplicitSingleTicketType, d as decideEventChoice, dn as runFieldErrors, dr as getVisibleTicketTypes, en as toWholeSeriesRegistrationEvents, er as serverPricedTotalCents, f as isRegistrationLocked, fn as runsKeepingAnswers, ft as paymentChoiceDetails, g as paymentOptionFor, gi as closedDateCopy, gn as ATTENDANCE_CHOICE_MESSAGE, gr as getCurrentTicketSelection, gt as restorableBrowserDraftCode, h as moneyCollections, ha as bookingQuestionsOwnerOf, hn as paymentReturnRestoration, ht as registrationBrowserDraftSchema, i as registrationPaymentRoute, ic as resolveWholeSeriesBookingPhase, in as eventSignInRestoration, io as PAGE_NAVIGATION, j as selectionDatesQuote, jr as normalizeTicketSelectionLines, jt as resolveEventRequiresPayment, k as lookupChosenOption, ln as deriveRunRequirements, lr as getPortalSubjectEmail, lt as calculateEventRegistrationPreviewTotal, m as collectionsOf, mi as closedRunCopy, mn as withoutKeptAnswers, mt as registrationBrowserDraft, nn as eventSignInDraftStore, nr as formatBookingWhen, o as registrationRoute, on as buildSelectionRequirementsSubmission, oo as leavePage, p as registrationFlowReducer, pi as closedDatesCopy, pn as toRunRequirementsSnapshots, pr as transformRegistrationOptionsResponse, pt as paymentChoicePrice, qs as planCheckoutPaymentFlow, qt as isSameWaitlistClaim, rc as orderedLiveRunSessions, rn as eventSignInEnds, rt as resolveEventRegistrationSubmitPlan, sn as checkRunRequirements, tn as EVENT_SIGN_IN_FORM_ID, tr as findSelectedTicketType, u as createInitialRegistrationFlowState, un as nextRunToRead, v as runsSelectionPaymentRequest, vr as getSlidingScaleForEvent, vt as bookingOccurrenceContext, w as fundingChoice, wa as toBookingQuestionsPaymentSnapshot, wn as primarySelectionItem, wr as withRegistrationAvailability, wt as beginWaitlistInvitation, x as cardStepServesDates, xa as needsBookingQuestionsRefresh, xi as resolveEventRegistrationScopedEvents, xn as effectiveSelection, xr as parseCurrencyInputToCents, xt as entryPageEvent, y as selectionItemLabels, ya as deriveBookingQuestions, yn as attendanceChoicePending, yr as getSlidingScaleSelectionMessage, yt as decideRegistrationEntry, zs as decideSelectionAttendance, zt as dayOptionsOf } from "./wizardSteps-BbroaNkT.mjs";
|
|
5
|
+
import { i as portalPath } from "./portalRoutes-D3Ttfv5x.mjs";
|
|
6
|
+
import { c as checkBookingQuestionsAnswered } from "./bookingCalendar-9nFa_do4.mjs";
|
|
7
|
+
import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-BDqRo2C5.mjs";
|
|
8
8
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
11
|
-
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-
|
|
9
|
+
import { l as indefiniteArticle } from "./BookingQuestionFields-Bia1E7Cj.mjs";
|
|
10
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-CG77Keax.mjs";
|
|
11
|
+
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-yA1RJGXD.mjs";
|
|
12
12
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
13
|
-
import { i as discountEmailProblem } from "./DemoBookingPortalAccess-
|
|
14
|
-
import { c as
|
|
15
|
-
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
-
import { s as storeDemoBookingPass } from "./demoPortalMagicLink-
|
|
13
|
+
import { i as discountEmailProblem } from "./DemoBookingPortalAccess-M2xKYQjX.mjs";
|
|
14
|
+
import { c as usePolling, d as portalSessionIdentity, f as useSignInReturn, l as parseBookingSubmissionFailure, p as useBookingQuestionsRefresh, u as useBookingNowIso } from "./BookingMailingListNote-D_khdttF.mjs";
|
|
15
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-DMtTHqex.mjs";
|
|
16
|
+
import { s as storeDemoBookingPass } from "./demoPortalMagicLink-CgzNiOQ0.mjs";
|
|
17
17
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -352,13 +352,6 @@ function resolveRegistrationRecoveryAction(step, action) {
|
|
|
352
352
|
if (step === "verifying-payment" || step === "verifying-timeout" || step === "payment") return "none";
|
|
353
353
|
return action;
|
|
354
354
|
}
|
|
355
|
-
/**
|
|
356
|
-
* After the details check refuses the booker (an earlier unpaid booking of theirs stands, or it couldn't be
|
|
357
|
-
* found safely), Try again returns to their details so continuing runs the check again. Not 'retry', which
|
|
358
|
-
* goes straight to payment and is for a refused submission. Not 'places', which on a full event swaps the
|
|
359
|
-
* message for the waitlist offer.
|
|
360
|
-
*/
|
|
361
|
-
const DETAILS_CHECK_REFUSAL_RECOVERY = "details";
|
|
362
355
|
function shouldRefreshAfterRegistrationError(step, action, enabled) {
|
|
363
356
|
return enabled || step === "error" && action === "places";
|
|
364
357
|
}
|
|
@@ -1081,7 +1074,8 @@ function eligibilityLookupReducer(state, action) {
|
|
|
1081
1074
|
eligibility: null,
|
|
1082
1075
|
settledRequestKey: action.requestKey,
|
|
1083
1076
|
error: action.message,
|
|
1084
|
-
closed: action.closed
|
|
1077
|
+
closed: action.closed,
|
|
1078
|
+
organiserContact: action.organiserContact
|
|
1085
1079
|
};
|
|
1086
1080
|
default: return assertNever(action);
|
|
1087
1081
|
}
|
|
@@ -1219,14 +1213,17 @@ async function loadEligibility(input) {
|
|
|
1219
1213
|
});
|
|
1220
1214
|
} catch (error) {
|
|
1221
1215
|
if (!input.isCurrent()) return;
|
|
1216
|
+
const organiserContact = error instanceof BlockApiError ? error.organiserContact : void 0;
|
|
1222
1217
|
input.dispatch(isBookingsClosedRefusal(error) ? {
|
|
1223
1218
|
type: "failed",
|
|
1224
1219
|
requestKey: input.requestKey,
|
|
1220
|
+
organiserContact,
|
|
1225
1221
|
closed: true,
|
|
1226
1222
|
message: "Bookings for this event have closed."
|
|
1227
1223
|
} : {
|
|
1228
1224
|
type: "failed",
|
|
1229
1225
|
requestKey: input.requestKey,
|
|
1226
|
+
organiserContact,
|
|
1230
1227
|
closed: false,
|
|
1231
1228
|
message: "We couldn’t load the booking options for this event. Try again, or contact the organiser if this keeps happening."
|
|
1232
1229
|
});
|
|
@@ -1276,6 +1273,7 @@ function useEligibilityWithDeps(params, deps) {
|
|
|
1276
1273
|
}, [api, requestKey]);
|
|
1277
1274
|
const effectiveState = effectiveEligibilityState(state, requestKey, request !== null);
|
|
1278
1275
|
return {
|
|
1276
|
+
organiserContact: effectiveState.tag === "failed" ? effectiveState.organiserContact : effectiveState.tag === "resolved" ? effectiveState.eligibility.organiserContact : effectiveState.tag === "loading" ? effectiveState.previousEligibility?.organiserContact : void 0,
|
|
1279
1277
|
state: effectiveState,
|
|
1280
1278
|
eligibility: effectiveState.tag === "loading" ? effectiveState.previousEligibility : effectiveState.eligibility,
|
|
1281
1279
|
settledRequestKey: effectiveState.settledRequestKey,
|
|
@@ -1534,6 +1532,12 @@ function parseEventRegistrationFailure(error) {
|
|
|
1534
1532
|
* know, as a form built before that reason was added won't, reads as a general refusal.
|
|
1535
1533
|
*/
|
|
1536
1534
|
function registrationErrorPresentation(failure, bookings = "one") {
|
|
1535
|
+
return {
|
|
1536
|
+
...defaultEventRegistrationErrorAppearance,
|
|
1537
|
+
...registrationErrorContent(failure, bookings)
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
function registrationErrorContent(failure, bookings) {
|
|
1537
1541
|
if (failure.discountRefused) return {
|
|
1538
1542
|
message: failure.message,
|
|
1539
1543
|
action: "payment-options"
|
|
@@ -1543,10 +1547,15 @@ function registrationErrorPresentation(failure, bookings = "one") {
|
|
|
1543
1547
|
action: "details"
|
|
1544
1548
|
};
|
|
1545
1549
|
const reason = failure.reason;
|
|
1546
|
-
if (reason)
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
+
if (reason) {
|
|
1551
|
+
const entry = eventRegistrationErrors[reason];
|
|
1552
|
+
return {
|
|
1553
|
+
heading: entry.heading ?? defaultEventRegistrationErrorAppearance.heading,
|
|
1554
|
+
tone: entry.tone ?? defaultEventRegistrationErrorAppearance.tone,
|
|
1555
|
+
message: eventRegistrationRefusalMessage(reason, failure.message, bookings),
|
|
1556
|
+
action: eventRegistrationRefusalAction(reason, bookings)
|
|
1557
|
+
};
|
|
1558
|
+
}
|
|
1550
1559
|
if (failure.isClientError) {
|
|
1551
1560
|
const { message, action } = eventRegistrationErrors.invalidCommitInput;
|
|
1552
1561
|
return {
|
|
@@ -1827,6 +1836,7 @@ function registrationRequestIntentKey(request) {
|
|
|
1827
1836
|
...intent,
|
|
1828
1837
|
checkout: checkout ? {
|
|
1829
1838
|
discountCode: checkout.discountCode,
|
|
1839
|
+
quotedAutomaticDiscountCode: checkout.quotedAutomaticDiscountCode,
|
|
1830
1840
|
collectionOptionKind: checkout.collectionOptionKind
|
|
1831
1841
|
} : void 0
|
|
1832
1842
|
});
|
|
@@ -1837,6 +1847,7 @@ function buildRegistrationRequest(options, prepared, invitation, method, members
|
|
|
1837
1847
|
checkout: {
|
|
1838
1848
|
returnUrl: eventPaymentReturnUrl(prepared.registrationCommandId),
|
|
1839
1849
|
discountCode: options.discountCode.trim() || void 0,
|
|
1850
|
+
quotedAutomaticDiscountCode: options.quotedAutomaticDiscountCode,
|
|
1840
1851
|
collectionOptionKind: prepared.selectionSnapshot.method === "stripe" ? prepared.selectionSnapshot.collectionOptionKind : void 0
|
|
1841
1852
|
},
|
|
1842
1853
|
ticketSelections: toTicketSelectionRequests(prepared.ticketSelections),
|
|
@@ -1908,7 +1919,7 @@ function bookingCount(target) {
|
|
|
1908
1919
|
/** Keep feedback, field errors and navigation together when a submission fails. */
|
|
1909
1920
|
function reportFailedRegistration(options, error) {
|
|
1910
1921
|
const parsed = parseEventRegistrationFailure(error);
|
|
1911
|
-
const { message, action } = registrationErrorPresentation(parsed, bookingCount(options.registrationTarget));
|
|
1922
|
+
const { message, action, heading, tone } = registrationErrorPresentation(parsed, bookingCount(options.registrationTarget));
|
|
1912
1923
|
const failure = {
|
|
1913
1924
|
message,
|
|
1914
1925
|
questionFieldErrors: parsed.questionFieldErrors,
|
|
@@ -1916,7 +1927,10 @@ function reportFailedRegistration(options, error) {
|
|
|
1916
1927
|
};
|
|
1917
1928
|
if (parsed.discountRefused) options.onDiscountRefused?.(message);
|
|
1918
1929
|
options.setErrorAction?.(action);
|
|
1919
|
-
options.setErrorMessage(message
|
|
1930
|
+
options.setErrorMessage(message, {
|
|
1931
|
+
heading,
|
|
1932
|
+
tone
|
|
1933
|
+
});
|
|
1920
1934
|
options.setSubmissionFailure(failure);
|
|
1921
1935
|
if (isRoomChoiceRefusal(parsed.reason)) options.refreshOptions?.();
|
|
1922
1936
|
options.setStep(failedRegistrationStep(parsed, options.selectionFunding));
|
|
@@ -1989,6 +2003,26 @@ function decideSelectionQuoteAnswer(pending, result) {
|
|
|
1989
2003
|
fundingChanged: result.type === "fundingChanged" ? result : null
|
|
1990
2004
|
};
|
|
1991
2005
|
}
|
|
2006
|
+
/** A refused submission invalidates the old automatic fallback, independently of the typed draft. */
|
|
2007
|
+
function decideAutomaticSelectionQuoteAnswer(pending, result, message) {
|
|
2008
|
+
const answer = decideSelectionQuoteAnswer({
|
|
2009
|
+
...pending,
|
|
2010
|
+
draftCode: "",
|
|
2011
|
+
uncoded: void 0
|
|
2012
|
+
}, result);
|
|
2013
|
+
return {
|
|
2014
|
+
...answer,
|
|
2015
|
+
state: pending.draftCode.trim() && answer.state.status === "priced" ? {
|
|
2016
|
+
...pending,
|
|
2017
|
+
status: "refused",
|
|
2018
|
+
message,
|
|
2019
|
+
uncoded: answer.state.preview
|
|
2020
|
+
} : {
|
|
2021
|
+
...answer.state,
|
|
2022
|
+
draftCode: pending.draftCode
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
1992
2026
|
function decideSelectionQuoteResponse(pending, result) {
|
|
1993
2027
|
const typed = Boolean(pending.draftCode.trim());
|
|
1994
2028
|
if (result.type === "rejected" || result.type === "fundingChanged") return unpricedQuote(pending, typed, result);
|
|
@@ -2061,20 +2095,26 @@ function pricedPreview(state) {
|
|
|
2061
2095
|
function selectionPriceSettled(input, state) {
|
|
2062
2096
|
return !(!serverPricesTotal(input) && state.key !== null && Boolean(state.draftCode.trim()) && state.status !== "priced") && (pricedPreview(state) !== null || freeSelection(input) || singleBookingNeedsNoAnswer(input, state));
|
|
2063
2097
|
}
|
|
2098
|
+
/** The automatic code is carried separately, so it never becomes a visitor's typed code. */
|
|
2099
|
+
function quotedAutomaticCode(quote) {
|
|
2100
|
+
return quote?.source === "automatic" && quote.preview.type === "applied" ? quote.preview.code : void 0;
|
|
2101
|
+
}
|
|
2064
2102
|
/** The only projection that can expose a selection's payable total and submitted code. */
|
|
2065
2103
|
function decidedSelectionPricing(input, state, apply) {
|
|
2066
2104
|
const priced = state.status === "priced" ? state : null;
|
|
2067
2105
|
const fallback = priced === null ? pricedPreview(state) : null;
|
|
2106
|
+
const quote = selectionQuoteOf(priced) ?? (fallback ? {
|
|
2107
|
+
preview: fallback,
|
|
2108
|
+
source: "automatic"
|
|
2109
|
+
} : null);
|
|
2068
2110
|
const settled = selectionPriceSettled(input, state);
|
|
2069
2111
|
const waiting = quoteWaiting(input, state, settled);
|
|
2070
2112
|
return {
|
|
2071
2113
|
state,
|
|
2072
|
-
quote
|
|
2073
|
-
preview: fallback,
|
|
2074
|
-
source: "automatic"
|
|
2075
|
-
} : null),
|
|
2114
|
+
quote,
|
|
2076
2115
|
draftCode: state.draftCode,
|
|
2077
2116
|
decidedCode: priced?.decidedCode,
|
|
2117
|
+
quotedAutomaticDiscountCode: quotedAutomaticCode(quote),
|
|
2078
2118
|
ready: settled,
|
|
2079
2119
|
payableCents: selectionPayable(input, state),
|
|
2080
2120
|
quoting: waiting.quoting,
|
|
@@ -2193,13 +2233,22 @@ function presentSelectionCombination(input) {
|
|
|
2193
2233
|
/** The checkout and quote both consume the code decided by this response. */
|
|
2194
2234
|
async function requestSelectionQuote(input) {
|
|
2195
2235
|
try {
|
|
2196
|
-
const code = "selection" in input.request && input.request.selection.funding.kind === "entitlement" ? "" : input.pending.draftCode.trim();
|
|
2236
|
+
const code = "selection" in input.request && input.request.selection.funding.kind === "entitlement" || input.automaticRefusal !== void 0 ? "" : input.pending.draftCode.trim();
|
|
2237
|
+
const emailProblem = code ? discountEmailProblem(input.email) : null;
|
|
2238
|
+
if (emailProblem) return {
|
|
2239
|
+
state: {
|
|
2240
|
+
...input.pending,
|
|
2241
|
+
status: "refused",
|
|
2242
|
+
message: emailProblem
|
|
2243
|
+
},
|
|
2244
|
+
fundingChanged: null
|
|
2245
|
+
};
|
|
2197
2246
|
const result = await input.api.applyDiscountCode({
|
|
2198
2247
|
customerEmail: input.email.trim(),
|
|
2199
2248
|
...input.request,
|
|
2200
2249
|
...code ? { discountCode: code } : {}
|
|
2201
2250
|
});
|
|
2202
|
-
return decideSelectionQuoteAnswer(input.pending, result);
|
|
2251
|
+
return input.automaticRefusal === void 0 ? decideSelectionQuoteAnswer(input.pending, result) : decideAutomaticSelectionQuoteAnswer(input.pending, result, input.automaticRefusal);
|
|
2203
2252
|
} catch {
|
|
2204
2253
|
return {
|
|
2205
2254
|
state: {
|
|
@@ -2227,20 +2276,12 @@ function useSelectionCombinationPricing(input) {
|
|
|
2227
2276
|
latestKey.current = key;
|
|
2228
2277
|
const registrationPreview = seededFromOptions ? input.registrationPreview : null;
|
|
2229
2278
|
const current = seedRegistrationQuote(currentSelectionQuote(state, key), registrationPreview);
|
|
2230
|
-
const apply = async () => {
|
|
2279
|
+
const apply = async (automaticRefusal) => {
|
|
2231
2280
|
if (key === null || request === null) return;
|
|
2232
|
-
const emailProblem = current.draftCode.trim() ? discountEmailProblem(input.email) : null;
|
|
2233
|
-
if (emailProblem) {
|
|
2234
|
-
setState({
|
|
2235
|
-
...current,
|
|
2236
|
-
status: "refused",
|
|
2237
|
-
message: emailProblem
|
|
2238
|
-
});
|
|
2239
|
-
return;
|
|
2240
|
-
}
|
|
2241
2281
|
const pending = {
|
|
2242
2282
|
...current,
|
|
2243
|
-
status: "pending"
|
|
2283
|
+
status: "pending",
|
|
2284
|
+
...automaticRefusal === void 0 ? {} : { uncoded: void 0 }
|
|
2244
2285
|
};
|
|
2245
2286
|
setCarried(false);
|
|
2246
2287
|
setState(pending);
|
|
@@ -2249,11 +2290,12 @@ function useSelectionCombinationPricing(input) {
|
|
|
2249
2290
|
api: input.api,
|
|
2250
2291
|
email: input.email,
|
|
2251
2292
|
request,
|
|
2252
|
-
pending
|
|
2293
|
+
pending,
|
|
2294
|
+
automaticRefusal
|
|
2253
2295
|
});
|
|
2254
2296
|
setState((previous) => latestKey.current === pending.key && previous === pending ? answer.state : previous);
|
|
2255
2297
|
if (latestPending.current !== pending || latestKey.current !== pending.key || answer.fundingChanged === null) return;
|
|
2256
|
-
setCarried(Boolean(pending.draftCode.trim()));
|
|
2298
|
+
setCarried(automaticRefusal === void 0 && Boolean(pending.draftCode.trim()));
|
|
2257
2299
|
input.onFundingChanged(answer.fundingChanged.funding, answer.fundingChanged.message);
|
|
2258
2300
|
};
|
|
2259
2301
|
useEffect(() => {
|
|
@@ -2284,14 +2326,10 @@ function useSelectionCombinationPricing(input) {
|
|
|
2284
2326
|
};
|
|
2285
2327
|
return {
|
|
2286
2328
|
...decidedSelectionPricing(input, current, apply),
|
|
2329
|
+
refreshAutomatic: (message) => apply(message),
|
|
2287
2330
|
editCode,
|
|
2288
2331
|
carryCode,
|
|
2289
|
-
reset
|
|
2290
|
-
refuse: (message) => setState({
|
|
2291
|
-
...current,
|
|
2292
|
-
status: "refused",
|
|
2293
|
-
message
|
|
2294
|
-
})
|
|
2332
|
+
reset
|
|
2295
2333
|
};
|
|
2296
2334
|
}
|
|
2297
2335
|
//#endregion
|
|
@@ -2532,6 +2570,7 @@ function ownedPassShortfall(facts) {
|
|
|
2532
2570
|
default: return assertNever(facts.shortfall);
|
|
2533
2571
|
}
|
|
2534
2572
|
}
|
|
2573
|
+
const boughtPassEnds = (facts) => facts.endsOn === null ? "" : ` It ends on ${facts.endsOn}.`;
|
|
2535
2574
|
function boughtPassShortfall(facts) {
|
|
2536
2575
|
switch (facts.shortfall) {
|
|
2537
2576
|
case "ends": return `It ends on ${facts.endsOn ?? ""}, so it covers ${datesCount(facts.covered)}. You pay for ${facts.moneyDays}.`;
|
|
@@ -2586,7 +2625,7 @@ const ENTITLEMENT_COPY = {
|
|
|
2586
2625
|
coveredValue: credits(1),
|
|
2587
2626
|
countsCredits: false,
|
|
2588
2627
|
title: (facts) => facts.moneyDates === 0 ? `Buy ${indefiniteArticle(facts.name)} ${facts.name}` : `Buy ${indefiniteArticle(facts.name)} ${facts.name} and pay for the rest`,
|
|
2589
|
-
detail: (facts) => facts.moneyDates === 0 ? `${credits(facts.creditsBefore ?? 0)}. ${facts.dateCount === 1 ? "This date uses" : "These dates use"} ${facts.covered}, leaving ${facts.creditsLeftAfter ?? 0}
|
|
2628
|
+
detail: (facts) => facts.moneyDates === 0 ? `${credits(facts.creditsBefore ?? 0)}. ${facts.dateCount === 1 ? "This date uses" : "These dates use"} ${facts.covered}, leaving ${facts.creditsLeftAfter ?? 0}.${boughtPassEnds(facts)}` : `${boughtPassShortfall(facts)}${facts.shortfall === "ends" ? "" : boughtPassEnds(facts)}`,
|
|
2590
2629
|
price: (facts) => facts.toPay,
|
|
2591
2630
|
button: (facts) => facts.moneyDates === 0 || facts.charge.cardCents === 0 ? "Buy pass and book" : `Buy pass and pay ${facts.toPay}`,
|
|
2592
2631
|
boughtLine: (facts) => ({ note: facts.creditsBefore === 1 ? "Uses its 1 class" : `Uses ${facts.covered} of its ${facts.creditsBefore ?? facts.covered} classes, ${facts.creditsLeftAfter ?? 0} left for later` })
|
|
@@ -2601,12 +2640,20 @@ const ENTITLEMENT_COPY = {
|
|
|
2601
2640
|
boughtLine: (facts) => ({ note: `${membershipRenewal(facts)} You can cancel from your account.` })
|
|
2602
2641
|
}
|
|
2603
2642
|
};
|
|
2643
|
+
/**
|
|
2644
|
+
* A pass's `expiresAt` is the midnight after its last day, so the day to name
|
|
2645
|
+
* is the one just before it: a 90-day pass bought on 16 Nov "ends on 14 Feb",
|
|
2646
|
+
* as its receipt says, not 15 Feb.
|
|
2647
|
+
*/
|
|
2648
|
+
function passLastDay(expiresAt) {
|
|
2649
|
+
return expiresAt === null ? null : (/* @__PURE__ */ new Date(Date.parse(expiresAt) - 1)).toISOString();
|
|
2650
|
+
}
|
|
2604
2651
|
function entitlementFacts(entitlement, currency) {
|
|
2605
2652
|
switch (entitlement.kind) {
|
|
2606
2653
|
case "ownedPass": return {
|
|
2607
2654
|
creditsBefore: entitlement.credits.used + entitlement.credits.leftAfter,
|
|
2608
2655
|
creditsLeftAfter: entitlement.credits.leftAfter,
|
|
2609
|
-
ends: entitlement.expiresAt,
|
|
2656
|
+
ends: passLastDay(entitlement.expiresAt),
|
|
2610
2657
|
boughtPrice: null,
|
|
2611
2658
|
interval: null
|
|
2612
2659
|
};
|
|
@@ -2620,7 +2667,7 @@ function entitlementFacts(entitlement, currency) {
|
|
|
2620
2667
|
case "buyPass": return {
|
|
2621
2668
|
creditsBefore: entitlement.credits.total,
|
|
2622
2669
|
creditsLeftAfter: entitlement.credits.leftAfter,
|
|
2623
|
-
ends: entitlement.expiresAt,
|
|
2670
|
+
ends: passLastDay(entitlement.expiresAt),
|
|
2624
2671
|
boughtPrice: formatPrice(entitlement.priceCents, currency),
|
|
2625
2672
|
interval: null
|
|
2626
2673
|
};
|
|
@@ -2859,13 +2906,18 @@ function fundingDatesOf(selection, itemPrice) {
|
|
|
2859
2906
|
priceCents: itemPrice(event)?.subtotalCents ?? null
|
|
2860
2907
|
}] : []);
|
|
2861
2908
|
}
|
|
2862
|
-
/**
|
|
2909
|
+
/**
|
|
2910
|
+
* "31 Jan", for the day a pass or membership ends. Those end at midnight where
|
|
2911
|
+
* the business is, not where one event happens to be, so an event abroad or
|
|
2912
|
+
* online doesn't move the last day.
|
|
2913
|
+
*/
|
|
2863
2914
|
function fundingDayFormatter(event) {
|
|
2915
|
+
const siteTimeZone = event?.siteTimeZone ?? null;
|
|
2864
2916
|
return (iso) => formatBookingWhen({
|
|
2865
2917
|
startsAt: iso,
|
|
2866
|
-
timeZone:
|
|
2867
|
-
siteTimeZone
|
|
2868
|
-
deliveryMode:
|
|
2918
|
+
timeZone: siteTimeZone,
|
|
2919
|
+
siteTimeZone,
|
|
2920
|
+
deliveryMode: "in_person"
|
|
2869
2921
|
}, "dayMonth");
|
|
2870
2922
|
}
|
|
2871
2923
|
/**
|
|
@@ -2920,7 +2972,7 @@ async function checkGuestNextStep(input, request, setCheckingNextStep) {
|
|
|
2920
2972
|
switch (plan.kind) {
|
|
2921
2973
|
case "skip": return plan.outcome;
|
|
2922
2974
|
case "blocked": return {
|
|
2923
|
-
kind: "
|
|
2975
|
+
kind: "checkFailed",
|
|
2924
2976
|
message: plan.message
|
|
2925
2977
|
};
|
|
2926
2978
|
case "check": break;
|
|
@@ -2930,8 +2982,8 @@ async function checkGuestNextStep(input, request, setCheckingNextStep) {
|
|
|
2930
2982
|
return await input.api.checkRegistrationNextStep(plan.request);
|
|
2931
2983
|
} catch {
|
|
2932
2984
|
return {
|
|
2933
|
-
kind: "
|
|
2934
|
-
message: "We
|
|
2985
|
+
kind: "checkFailed",
|
|
2986
|
+
message: "We couldn’t check availability just now. Please go back and try again."
|
|
2935
2987
|
};
|
|
2936
2988
|
} finally {
|
|
2937
2989
|
setCheckingNextStep(false);
|
|
@@ -3699,7 +3751,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
3699
3751
|
});
|
|
3700
3752
|
clearWaitlistClaimLocation();
|
|
3701
3753
|
}, []);
|
|
3702
|
-
const [
|
|
3754
|
+
const [submissionError, setSubmissionError] = useState({
|
|
3755
|
+
message: "",
|
|
3756
|
+
...defaultEventRegistrationErrorAppearance
|
|
3757
|
+
});
|
|
3758
|
+
const submissionErrorMessage = submissionError.message;
|
|
3703
3759
|
const [submissionErrorAction, setErrorAction] = useState("retry");
|
|
3704
3760
|
const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
|
|
3705
3761
|
const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
|
|
@@ -3832,6 +3888,14 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
3832
3888
|
const existingRegistrations = useMemo(() => existingRegistrationResult.registrations.filter((registration) => registration.occurrenceId === registrationOccurrenceId), [existingRegistrationResult.registrations, registrationOccurrenceId]);
|
|
3833
3889
|
const registrationOptionsState = eligibilityResult.state;
|
|
3834
3890
|
const eligibility = eligibilityResult.eligibility;
|
|
3891
|
+
const organiserContact = eligibilityResult.organiserContact ?? eligibility?.organiserContact;
|
|
3892
|
+
const setErrorMessage = useCallback((message, appearance = defaultEventRegistrationErrorAppearance) => {
|
|
3893
|
+
setSubmissionError({
|
|
3894
|
+
message,
|
|
3895
|
+
...appearance,
|
|
3896
|
+
organiserContact
|
|
3897
|
+
});
|
|
3898
|
+
}, [organiserContact]);
|
|
3835
3899
|
const eligibilityLoading = eligibilityResult.isLoading;
|
|
3836
3900
|
const eligibilityError = eligibilityResult.error;
|
|
3837
3901
|
const portalCreditState = eligibilityResult.creditState;
|
|
@@ -3978,6 +4042,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
3978
4042
|
const admission = resolveRegistrationAdmission({
|
|
3979
4043
|
eligibility,
|
|
3980
4044
|
eligibilityError,
|
|
4045
|
+
organiserContact,
|
|
3981
4046
|
bookingsClosed: eligibilityResult.bookingsClosed,
|
|
3982
4047
|
eligibilityLoading,
|
|
3983
4048
|
holdsOwnPlace: visitorHoldsOwnPlace({
|
|
@@ -4101,7 +4166,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4101
4166
|
formData,
|
|
4102
4167
|
requireGuestDetails,
|
|
4103
4168
|
guests,
|
|
4104
|
-
...detailsRequirementsCheck(requirements.checkRuns(), questions,
|
|
4169
|
+
...detailsRequirementsCheck(requirements.checkRuns(), questions, bookingRequirementsEvent)
|
|
4105
4170
|
});
|
|
4106
4171
|
if (check.kind === "blocked") return blockDetailsCompletion(check.blocker);
|
|
4107
4172
|
setErrors(check.errors);
|
|
@@ -4137,7 +4202,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4137
4202
|
kind: "unavailable",
|
|
4138
4203
|
reason: "closed",
|
|
4139
4204
|
message: continuation.message
|
|
4140
|
-
},
|
|
4205
|
+
}, continuation.action);
|
|
4141
4206
|
case "payment-step":
|
|
4142
4207
|
setStep("select-payment");
|
|
4143
4208
|
return {
|
|
@@ -4363,12 +4428,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4363
4428
|
});
|
|
4364
4429
|
const shouldShowDiscountToggle = registrationDiscountEntryVisible(discountView);
|
|
4365
4430
|
const requirementsLayout = useMemo(() => decideSelectionRequirementsLayout(selection), [selection]);
|
|
4431
|
+
const { event: bookingRequirementsEvent, consent: bookingConsent } = registrationBookingRequirements(admission, onceAskedEvent(requirementsLayout, currentEvent));
|
|
4366
4432
|
const questions = useEventRegistrationQuestions({
|
|
4367
4433
|
api,
|
|
4368
4434
|
siteId: api.config.siteId,
|
|
4369
4435
|
flow: flowState,
|
|
4370
4436
|
dispatch: dispatchFlow,
|
|
4371
|
-
event:
|
|
4437
|
+
event: bookingRequirementsEvent,
|
|
4372
4438
|
offersKeptAnswers: requirementsLayout.kind !== "shared",
|
|
4373
4439
|
identity: portalIdentity,
|
|
4374
4440
|
eventSource: options.eventSource,
|
|
@@ -4413,9 +4479,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4413
4479
|
requireGuestDetails,
|
|
4414
4480
|
guests,
|
|
4415
4481
|
discountCode: discountView.submittedCode,
|
|
4482
|
+
quotedAutomaticDiscountCode: combinationPricing.quotedAutomaticDiscountCode,
|
|
4416
4483
|
onDiscountRefused: (message) => {
|
|
4417
4484
|
discountUi.setDiscountUiOpen(true);
|
|
4418
|
-
|
|
4485
|
+
setOptionsRefreshKey((value) => value + 1);
|
|
4486
|
+
combinationPricing.refreshAutomatic(message);
|
|
4419
4487
|
},
|
|
4420
4488
|
quoteReady: combinationPricing.ready,
|
|
4421
4489
|
selectionFunding: funding.choice,
|
|
@@ -4708,8 +4776,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4708
4776
|
guestSectionShake,
|
|
4709
4777
|
handleGuestShakeEnd,
|
|
4710
4778
|
errorMessage,
|
|
4779
|
+
errorHeading: submissionError.heading,
|
|
4780
|
+
errorTone: submissionError.tone,
|
|
4781
|
+
organiserContact: submissionError.organiserContact ?? organiserContact,
|
|
4711
4782
|
questionFieldErrors: flowState.questionFieldErrors,
|
|
4712
4783
|
bookingQuestions: questions,
|
|
4784
|
+
bookingConsent,
|
|
4713
4785
|
/** How the selection's questions and agreement are asked: once, or once per run. */
|
|
4714
4786
|
requirementsLayout,
|
|
4715
4787
|
/** One section per run when several runs ask different questions or agreements. */
|
|
@@ -4824,7 +4896,7 @@ function resolveSelectionChoiceMessages(input) {
|
|
|
4824
4896
|
}
|
|
4825
4897
|
/** The event whose questions are asked once; none when runs are asked separately. */
|
|
4826
4898
|
function onceAskedEvent(layout, currentEvent) {
|
|
4827
|
-
return layout.kind === "per_run" ? null : currentEvent;
|
|
4899
|
+
return layout.kind === "per_run" ? null : layout.kind === "shared" ? layout.source : currentEvent;
|
|
4828
4900
|
}
|
|
4829
4901
|
/**
|
|
4830
4902
|
* What the details step checks for questions and agreement: each run's own
|
|
@@ -5227,7 +5299,7 @@ function availableCreditCents(state, currency) {
|
|
|
5227
5299
|
}
|
|
5228
5300
|
//#endregion
|
|
5229
5301
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
5230
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
5302
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-CJoxbx2Y.mjs"));
|
|
5231
5303
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
5232
5304
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
5233
5305
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|