@riverbankcms/sdk 0.166.0 → 0.168.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 +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
- package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
- package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
- package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/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 +6 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- 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/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 +7 -5
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
- package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
- package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
- package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
- package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/bookings.mjs +18 -13
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
- package/dist/client/client.mjs +325 -65
- package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
- package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
- package/dist/client/portal/client.mjs +76 -229
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
- package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
- package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
- package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
- package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
- package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
- package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
- package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
- package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
- package/dist/styles/index.css +991 -48
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
- package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
- package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
- package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { c as formatEventTeacherLine, o as
|
|
8
|
-
import { n as MapDrawingSvg } from "./MapDrawingSvg-C30geMl-.mjs";
|
|
2
|
+
import { $t as MediaNodeServer, an as weekColumnDays, on as formatEventPrice } from "./shop.interactive-C8OvFY06.mjs";
|
|
3
|
+
import { En as formatEventTimeRange, Sn as formatEventCompactDateRail, Tn as formatEventNextDateFact, _n as eventDateOptions, ba as itemRoleValues, bn as formatDate, fa as boxBackgroundOverlaySchema, ga as boxlessCardVariantValue, ii as listItemPresentation, ma as runtimeBoxBackgroundSchema, oi as listLookSlot, pa as boxBackgroundSchema, rn as ImagePresets, vn as eventLocalDateKey, xa as openCardRoleValue, ya as cardVariantRoleValues } from "./wizardSteps-CFulHWnT.mjs";
|
|
4
|
+
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
5
|
+
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-DP_IBnq3.mjs";
|
|
6
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-13JQI7_z.mjs";
|
|
7
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-BIc4gjiD.mjs";
|
|
9
8
|
import "react";
|
|
9
|
+
import { z } from "zod";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
z.enum(itemRoleValues);
|
|
12
|
+
z.enum(cardVariantRoleValues);
|
|
13
|
+
function isCardVariantRole(value) {
|
|
14
|
+
return typeof value === "string" && cardVariantRoleValues.includes(value);
|
|
15
|
+
}
|
|
16
|
+
function normalizeCardVariantRole(value) {
|
|
17
|
+
return isCardVariantRole(value) ? value : null;
|
|
18
|
+
}
|
|
19
|
+
/** The one untrusted-input boundary for the closed role vocabulary. */
|
|
20
|
+
function normalizeCardRole(value) {
|
|
21
|
+
if (value === "none") return boxlessCardVariantValue;
|
|
22
|
+
if (value === "open") return openCardRoleValue;
|
|
23
|
+
return normalizeCardVariantRole(value);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
11
26
|
//#region ../blocks/src/system/transforms/registry/core.ts
|
|
12
27
|
/**
|
|
13
28
|
* Safely narrows unknown values to partial object shapes used by transforms.
|
|
@@ -359,13 +374,6 @@ function boxStyleClassNames(value, options) {
|
|
|
359
374
|
}
|
|
360
375
|
//#endregion
|
|
361
376
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
362
|
-
/** The category's badge, when the event has a category. */
|
|
363
|
-
function eventCardCategoryBadge(category) {
|
|
364
|
-
return category ? {
|
|
365
|
-
label: category.name,
|
|
366
|
-
style: getCategoryBadgeStyle(category.color ?? null)
|
|
367
|
-
} : null;
|
|
368
|
-
}
|
|
369
377
|
/**
|
|
370
378
|
* EventCard Component
|
|
371
379
|
*
|
|
@@ -539,11 +547,12 @@ function EventCardContent(props) {
|
|
|
539
547
|
function EventCardVenue(props) {
|
|
540
548
|
const venue = props.showVenue ? props.event.venue : null;
|
|
541
549
|
if (!venue) return null;
|
|
550
|
+
const { place } = eventVenuePlace(venue);
|
|
542
551
|
return /* @__PURE__ */ jsxs("div", {
|
|
543
552
|
className: "rb-mb-3",
|
|
544
553
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
545
554
|
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
546
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }),
|
|
555
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? ` · ${place}` : null] })]
|
|
547
556
|
}), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
548
557
|
className: "rb-mt-2",
|
|
549
558
|
children: props.mapSlot
|
|
@@ -612,28 +621,6 @@ function eventCardOrientationClass(orientation) {
|
|
|
612
621
|
case "vertical": return "event-card--vertical";
|
|
613
622
|
}
|
|
614
623
|
}
|
|
615
|
-
function getCategoryBadgeStyle(background) {
|
|
616
|
-
const normalized = background?.trim() ?? "";
|
|
617
|
-
if (!normalized) return {
|
|
618
|
-
backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
|
|
619
|
-
color: "rgb(var(--tb-onAccent, 255 255 255))"
|
|
620
|
-
};
|
|
621
|
-
if (isCssColorLiteral(normalized)) return {
|
|
622
|
-
backgroundColor: normalized,
|
|
623
|
-
color: pickReadableTextColor(normalized)
|
|
624
|
-
};
|
|
625
|
-
return {
|
|
626
|
-
backgroundColor: resolveTokenOrCssColorValue(normalized),
|
|
627
|
-
color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
function pickReadableTextColor(background) {
|
|
631
|
-
try {
|
|
632
|
-
return getTextColorForBackground(background);
|
|
633
|
-
} catch {
|
|
634
|
-
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
624
|
function EventLookDate({ event, ...presentation }) {
|
|
638
625
|
const date = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
639
626
|
return /* @__PURE__ */ jsxs("time", {
|
|
@@ -677,7 +664,7 @@ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRol
|
|
|
677
664
|
summary,
|
|
678
665
|
image,
|
|
679
666
|
category,
|
|
680
|
-
categoryBadge: showCategory ?
|
|
667
|
+
categoryBadge: showCategory ? eventCategoryBadge(category) : null,
|
|
681
668
|
hasImage: Boolean(showImage && image),
|
|
682
669
|
dateFact: resolveEventCardDateFact({
|
|
683
670
|
event,
|
|
@@ -875,15 +862,18 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
875
862
|
}, eventLocalDateKey(first));
|
|
876
863
|
})
|
|
877
864
|
});
|
|
878
|
-
if (display.listLayout === "ledger"
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
...
|
|
882
|
-
event,
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
865
|
+
if (display.listLayout === "ledger" || display.listLayout === "timetable-rows") {
|
|
866
|
+
const arrangement = display.listLayout;
|
|
867
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
868
|
+
...listLookSlot(display, "list"),
|
|
869
|
+
children: display.events.map((event, index, events) => /* @__PURE__ */ jsx(EventItem, {
|
|
870
|
+
...listItemPresentation(display, index, events.length),
|
|
871
|
+
event,
|
|
872
|
+
arrangement,
|
|
873
|
+
continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
|
|
874
|
+
}, event.occurrenceId || event.id))
|
|
875
|
+
});
|
|
876
|
+
}
|
|
887
877
|
if (display.listLayout === "compact") return /* @__PURE__ */ jsxs("aside", {
|
|
888
878
|
...listLookSlot(display, "panel"),
|
|
889
879
|
className: display.containerClass,
|
|
@@ -946,10 +936,11 @@ function hasArrangementPanel(display) {
|
|
|
946
936
|
return display.state === "ready" && display.lookSlots !== void 0 && display.listLayout === "compact";
|
|
947
937
|
}
|
|
948
938
|
/** Nearest slot parents in EventListBody and WeekColumns. */
|
|
949
|
-
|
|
939
|
+
/** `root` is the declared slot the listing renders inside (a Look may paint the block's layout), or null. */
|
|
940
|
+
function eventListSlotParents(arrangement, root = null) {
|
|
950
941
|
return {
|
|
951
|
-
list: arrangement === "compact" ? "panel" :
|
|
952
|
-
panel:
|
|
942
|
+
list: arrangement === "compact" ? "panel" : root,
|
|
943
|
+
panel: root,
|
|
953
944
|
group: "list",
|
|
954
945
|
"group-label": "group",
|
|
955
946
|
"group-date": "group-label",
|
package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs}
RENAMED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as getEligibilityFlowFlags,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { $ as getEligibilityFlowFlags, $r as resolveEventRegistrationScopedEvents, Bt as EVENT_SIGN_IN_FORM_ID, C as resolveGuestNextStepCheck, Cr as needsBookingQuestionsRefresh, Ct as getVisibleTicketTypes, E as resolveRegistrationTicketContinuation, Er as toBookingQuestionsPaymentSnapshot, G as resolveRegistrationTarget, H as findPreSelectedEvent, Ht as eventSignInEnds, It as getRegistrationStartAt, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, L as calculateEventRegistrationPreviewTotal, La as resolveBookingSignupOffer, Lt as toRegistrationEvents, M as resolveEventRegistrationSubmitPlan, Nt as hasValidPricingOptionSelection, O as visitorHoldsOwnPlace, Pt as normalizeTicketSelectionLines, Q as getCurrentTicketSelection, S as planRegistrationDetailsContinuation, Sr as deriveBookingQuestions, Tt as transformRegistrationOptionsResponse, U as resolveDiscountContext, Ut as eventSignInRestoration, Vt as eventSignInDraftStore, W as resolveEventRequiresPayment, Wt as toEventSignInDraft, X as invitationSubmission, Y as createRegistrationDraftData, Ya as publicEventPricingStrategy, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, br as bookingQuestionsPaymentSnapshotSchema, bt as getImplicitSingleTicketType, ct as validateFormData, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, it as parseCurrencyInputToCents, jt as getTicketSelectionTotal, kt as getSingleSelectedPricingOptionId, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, pt as findSelectedTicketType, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as registrationQuestionsMessage, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, x as planRegistrationDetailsCheck, xr as decideBookingQuestionsRestoration, xt as getPortalSubjectEmail, y as getTicketSelectionPurpose, zt as toWholeSeriesRegistrationEvents } from "./wizardSteps-CFulHWnT.mjs";
|
|
3
|
+
import { Mt as inferSiteDateLocale, Wt as resolveBookingBusinessTimeZone } from "./noop-ByFRHYQ2.mjs";
|
|
4
|
+
import { d as assertNever, i as checkBookingQuestionsAnswered } from "./bookingQuestionValues-BjcyCru5.mjs";
|
|
5
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-BeiZxEUJ.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { r as
|
|
7
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-DXmIbXCK.mjs";
|
|
8
|
+
import { i as useBookingNowIso, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-Bhh0cvsl.mjs";
|
|
9
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-D3XnOSCi.mjs";
|
|
10
|
+
import { a as usePolling, c as useBookingQuestionsRefresh, o as portalSessionIdentity, s as useSignInReturn } from "./BookingMailingListNote-Dsugoe-n.mjs";
|
|
9
11
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-Da-f9iHw.mjs";
|
|
12
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-BdXu0fj-.mjs";
|
|
12
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
|
|
13
13
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
//#region ../commerce/src/purchase/event-registration-errors.ts
|
|
17
17
|
const eventRegistrationErrors = {
|
|
18
|
+
invalidAnswers: {
|
|
19
|
+
endsCommand: false,
|
|
20
|
+
message: "Some questions still need an answer.",
|
|
21
|
+
action: "details"
|
|
22
|
+
},
|
|
23
|
+
wholeCourseOnly: {
|
|
24
|
+
endsCommand: false,
|
|
25
|
+
message: "This course is booked as a whole course, so single dates can’t be booked on their own. Please go back to the event and book the full course.",
|
|
26
|
+
action: "event"
|
|
27
|
+
},
|
|
18
28
|
registrationClosed: {
|
|
19
29
|
endsCommand: false,
|
|
20
30
|
message: "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.",
|
|
@@ -213,6 +223,140 @@ function recoverRegistrationError(action, handlers) {
|
|
|
213
223
|
}
|
|
214
224
|
}
|
|
215
225
|
//#endregion
|
|
226
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationQuestions.ts
|
|
227
|
+
/** The event series is the booking target: its question set applies to every date. */
|
|
228
|
+
function eventTarget(event) {
|
|
229
|
+
return event ? {
|
|
230
|
+
targetKey: event.seriesId,
|
|
231
|
+
publicPresentation: event.bookingQuestions
|
|
232
|
+
} : null;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Event registration's during-booking questions: what to show, the
|
|
236
|
+
* authenticated refresh, and keeping progress across a sign-in link. The
|
|
237
|
+
* answer state and both lifecycles are the ones the appointment form uses.
|
|
238
|
+
*/
|
|
239
|
+
function useEventRegistrationQuestions(input) {
|
|
240
|
+
const { api, flow, dispatch, event, identity } = input;
|
|
241
|
+
const answers = flow.draft.bookingQuestions;
|
|
242
|
+
const target = useMemo(() => eventTarget(event), [event]);
|
|
243
|
+
const view = useMemo(() => deriveBookingQuestions(answers, target, identity), [
|
|
244
|
+
answers,
|
|
245
|
+
target,
|
|
246
|
+
identity
|
|
247
|
+
]);
|
|
248
|
+
const dispatchAnswer = useCallback((answerEvent) => dispatch({
|
|
249
|
+
type: "booking-questions",
|
|
250
|
+
event: answerEvent
|
|
251
|
+
}), [dispatch]);
|
|
252
|
+
const refreshKey = needsBookingQuestionsRefresh({
|
|
253
|
+
target,
|
|
254
|
+
identity,
|
|
255
|
+
refreshed: answers.refreshed
|
|
256
|
+
}) ? target?.targetKey ?? null : null;
|
|
257
|
+
useBookingQuestionsRefresh({
|
|
258
|
+
api,
|
|
259
|
+
target: refreshKey ? {
|
|
260
|
+
kind: "event_series",
|
|
261
|
+
eventSeriesId: refreshKey
|
|
262
|
+
} : null,
|
|
263
|
+
targetKey: refreshKey,
|
|
264
|
+
identity,
|
|
265
|
+
dispatch: dispatchAnswer
|
|
266
|
+
});
|
|
267
|
+
const signIn = useEventSignInReturn(input);
|
|
268
|
+
const { scope } = view;
|
|
269
|
+
const answer = useCallback((fieldId, value) => dispatchAnswer({
|
|
270
|
+
type: "booking-question-answered",
|
|
271
|
+
scope,
|
|
272
|
+
fieldId,
|
|
273
|
+
value
|
|
274
|
+
}), [dispatchAnswer, scope]);
|
|
275
|
+
const chooseAnswerMode = useCallback((mode) => dispatchAnswer({
|
|
276
|
+
type: "booking-questions-answer-mode-set",
|
|
277
|
+
scope,
|
|
278
|
+
mode
|
|
279
|
+
}), [dispatchAnswer, scope]);
|
|
280
|
+
const keepRefused = useCallback(() => dispatchAnswer({
|
|
281
|
+
type: "booking-questions-keep-refused",
|
|
282
|
+
scope
|
|
283
|
+
}), [dispatchAnswer, scope]);
|
|
284
|
+
return {
|
|
285
|
+
presentation: view.presentation,
|
|
286
|
+
values: view.values,
|
|
287
|
+
answerMode: view.answerMode,
|
|
288
|
+
submission: view.submission,
|
|
289
|
+
fieldErrors: flow.questionFieldErrors,
|
|
290
|
+
answer,
|
|
291
|
+
chooseAnswerMode,
|
|
292
|
+
keepRefused,
|
|
293
|
+
paymentSnapshot: toBookingQuestionsPaymentSnapshot(view),
|
|
294
|
+
...signIn
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The shared sign-in owner, with event registration's draft. A returned draft
|
|
299
|
+
* waits for the page's events as well as the session check, so its event can
|
|
300
|
+
* be found again.
|
|
301
|
+
*/
|
|
302
|
+
function useEventSignInReturn(input) {
|
|
303
|
+
const { flow, discountCode, dispatch, setDiscountCode } = input;
|
|
304
|
+
const events = input.eventSource.kind === "ready" ? input.registrationEvents : null;
|
|
305
|
+
const source = useMemo(() => ({
|
|
306
|
+
flow,
|
|
307
|
+
discountCode
|
|
308
|
+
}), [flow, discountCode]);
|
|
309
|
+
const restore = useCallback((draft, verifiedIdentity) => {
|
|
310
|
+
const restoration = eventSignInRestoration(draft, events ?? [], verifiedIdentity);
|
|
311
|
+
dispatch({
|
|
312
|
+
type: "sign-in-draft-restored",
|
|
313
|
+
restoration
|
|
314
|
+
});
|
|
315
|
+
if (restoration.selectionFound) setDiscountCode(draft.discountCode);
|
|
316
|
+
}, [
|
|
317
|
+
dispatch,
|
|
318
|
+
events,
|
|
319
|
+
setDiscountCode
|
|
320
|
+
]);
|
|
321
|
+
return useSignInReturn({
|
|
322
|
+
siteId: input.siteId ?? "",
|
|
323
|
+
formId: EVENT_SIGN_IN_FORM_ID,
|
|
324
|
+
state: source,
|
|
325
|
+
store: eventSignInDraftStore,
|
|
326
|
+
toDraft: toEventSignInDraft,
|
|
327
|
+
ends: eventSignInEnds,
|
|
328
|
+
session: {
|
|
329
|
+
api: input.api,
|
|
330
|
+
identity: input.identity
|
|
331
|
+
},
|
|
332
|
+
ready: events !== null,
|
|
333
|
+
restore
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationPaymentReturn.ts
|
|
338
|
+
/**
|
|
339
|
+
* How a saved checkout lands once the page's events are ready. Its answers
|
|
340
|
+
* come back only for the session (or signed-out visitor) that started it.
|
|
341
|
+
*/
|
|
342
|
+
function paymentReturnRestoration(pending, events, currentIdentity) {
|
|
343
|
+
return {
|
|
344
|
+
event: events.find((event) => event.selectionId === pending.selectedEventId) ?? null,
|
|
345
|
+
ticketLines: pending.ticketSelections,
|
|
346
|
+
ticketsCount: getTicketSelectionTotal(pending.ticketSelections),
|
|
347
|
+
formData: pending.formData,
|
|
348
|
+
guests: pending.guests,
|
|
349
|
+
slidingAmountInput: pending.selectedSlidingAmount === null ? "" : formatCentsAsCurrencyInput(pending.selectedSlidingAmount),
|
|
350
|
+
attendanceMode: pending.selectedAttendanceMode ?? null,
|
|
351
|
+
paymentSelection: pending.paymentSelection,
|
|
352
|
+
questions: pending.bookingQuestions ? decideBookingQuestionsRestoration({
|
|
353
|
+
kind: "payment_snapshot",
|
|
354
|
+
snapshot: pending.bookingQuestions,
|
|
355
|
+
currentIdentity
|
|
356
|
+
}) : null
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
//#endregion
|
|
216
360
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useTicketSelectionInitialization.ts
|
|
217
361
|
/** Pick the single default once; removing or refreshing a line never picks it again. */
|
|
218
362
|
function useTicketSelectionInitialization(input) {
|
|
@@ -696,6 +840,7 @@ const schema = z.object({
|
|
|
696
840
|
selectedSlidingAmount: z.number().nullable(),
|
|
697
841
|
discountCode: z.string(),
|
|
698
842
|
mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
|
|
843
|
+
bookingQuestions: bookingQuestionsPaymentSnapshotSchema.optional(),
|
|
699
844
|
timestamp: z.number().finite()
|
|
700
845
|
});
|
|
701
846
|
function key(siteId, submissionId) {
|
|
@@ -793,8 +938,20 @@ function clearEventPayment(siteId) {
|
|
|
793
938
|
}
|
|
794
939
|
//#endregion
|
|
795
940
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.ts
|
|
796
|
-
function
|
|
797
|
-
|
|
941
|
+
function parseEventRegistrationFailure(error) {
|
|
942
|
+
return {
|
|
943
|
+
...parseBookingSubmissionFailure(error, "Something went wrong. Please try again."),
|
|
944
|
+
reason: error instanceof BlockApiError ? parseEventRegistrationErrorReason(error.tag) : null,
|
|
945
|
+
siteTermsFailure: siteTermsFailureKind(error),
|
|
946
|
+
isClientError: error instanceof BlockApiError && error.status < 500 && error.code !== "invalid_booking_response"
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
function registrationErrorPresentation(failure) {
|
|
950
|
+
if (failure.reason === "invalidAnswers" || failure.answersNeeded || Object.keys(failure.questionFieldErrors).length > 0) return {
|
|
951
|
+
message: failure.message,
|
|
952
|
+
action: "details"
|
|
953
|
+
};
|
|
954
|
+
const reason = failure.reason;
|
|
798
955
|
if (reason) {
|
|
799
956
|
const { message, action } = eventRegistrationErrors[reason];
|
|
800
957
|
return {
|
|
@@ -802,7 +959,7 @@ function registrationErrorPresentation(error) {
|
|
|
802
959
|
action
|
|
803
960
|
};
|
|
804
961
|
}
|
|
805
|
-
if (
|
|
962
|
+
if (failure.isClientError) {
|
|
806
963
|
const { message, action } = eventRegistrationErrors.invalidCommitInput;
|
|
807
964
|
return {
|
|
808
965
|
message,
|
|
@@ -888,15 +1045,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
888
1045
|
}));
|
|
889
1046
|
} catch (error) {
|
|
890
1047
|
if (error instanceof BlockApiError && eventRegistrationErrorEndsCommand(error.tag)) commandRef.current = null;
|
|
891
|
-
|
|
892
|
-
options.setErrorAction?.(action);
|
|
893
|
-
options.setErrorMessage(message);
|
|
894
|
-
options.setStep(failedRegistrationStep(error, method));
|
|
895
|
-
return {
|
|
896
|
-
ok: false,
|
|
897
|
-
reason: "submission-failed",
|
|
898
|
-
message
|
|
899
|
-
};
|
|
1048
|
+
return reportFailedRegistration(options, error, method);
|
|
900
1049
|
}
|
|
901
1050
|
};
|
|
902
1051
|
return (...args) => {
|
|
@@ -1027,7 +1176,8 @@ function savePendingCheckout(options, deps, prepared, checkoutAttemptId, referen
|
|
|
1027
1176
|
guests: options.guests,
|
|
1028
1177
|
selectedSlidingAmount: options.selectedSlidingAmount,
|
|
1029
1178
|
discountCode: options.discountCode,
|
|
1030
|
-
mailingListSignupNote
|
|
1179
|
+
mailingListSignupNote,
|
|
1180
|
+
...options.bookingQuestionsSnapshot ? { bookingQuestions: options.bookingQuestionsSnapshot } : {}
|
|
1031
1181
|
});
|
|
1032
1182
|
}
|
|
1033
1183
|
function registrationRequestIntentKey(request) {
|
|
@@ -1056,6 +1206,7 @@ function buildRegistrationRequest(options, prepared, invitation, method, passId,
|
|
|
1056
1206
|
phone: options.formData.phone.trim() || void 0,
|
|
1057
1207
|
notes: options.formData.notes.trim() || void 0,
|
|
1058
1208
|
consentAccepted: options.formData.consentAccepted,
|
|
1209
|
+
bookingQuestions: options.bookingQuestions,
|
|
1059
1210
|
mailingListOptIn: wantsMailingListSignup(options),
|
|
1060
1211
|
paymentMethod: method,
|
|
1061
1212
|
customerPassId: method === "pass" ? passId : void 0,
|
|
@@ -1073,10 +1224,30 @@ function invitationRequestCredential(credential) {
|
|
|
1073
1224
|
}
|
|
1074
1225
|
}
|
|
1075
1226
|
/** Legal rejection returns to the intact draft, before any payment effect. */
|
|
1076
|
-
function failedRegistrationStep(
|
|
1077
|
-
if (
|
|
1227
|
+
function failedRegistrationStep(failure, method) {
|
|
1228
|
+
if (failure.reason === "invalidAnswers") return "enter-details";
|
|
1229
|
+
if (!failure.siteTermsFailure) return "error";
|
|
1078
1230
|
return method === "pass_bundle" || method === "membership_bundle" ? "select-payment" : "enter-details";
|
|
1079
1231
|
}
|
|
1232
|
+
/** Keep feedback, field errors and navigation together when a submission fails. */
|
|
1233
|
+
function reportFailedRegistration(options, error, method) {
|
|
1234
|
+
const parsed = parseEventRegistrationFailure(error);
|
|
1235
|
+
const { message, action } = registrationErrorPresentation(parsed);
|
|
1236
|
+
const failure = {
|
|
1237
|
+
message,
|
|
1238
|
+
questionFieldErrors: parsed.questionFieldErrors,
|
|
1239
|
+
answersNeeded: parsed.answersNeeded
|
|
1240
|
+
};
|
|
1241
|
+
options.setErrorAction?.(action);
|
|
1242
|
+
options.setErrorMessage(message);
|
|
1243
|
+
options.setSubmissionFailure(failure);
|
|
1244
|
+
options.setStep(failedRegistrationStep(parsed, method));
|
|
1245
|
+
return {
|
|
1246
|
+
ok: false,
|
|
1247
|
+
reason: "submission-failed",
|
|
1248
|
+
...failure
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1080
1251
|
//#endregion
|
|
1081
1252
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.ts
|
|
1082
1253
|
function buildCandidate(input) {
|
|
@@ -1801,6 +1972,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1801
1972
|
const [submissionErrorAction, setErrorAction] = useState("retry");
|
|
1802
1973
|
const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
|
|
1803
1974
|
const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
|
|
1975
|
+
const portalIdentity = portalSessionIdentity(api.config);
|
|
1804
1976
|
const waitlistClaim = flowState.invitation;
|
|
1805
1977
|
const claimLookup = deps.useWaitlistClaim(waitlistClaim.kind === "none" ? null : waitlistClaim.request);
|
|
1806
1978
|
useEffect(() => {
|
|
@@ -1935,26 +2107,29 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1935
2107
|
});
|
|
1936
2108
|
}, [eligibility]);
|
|
1937
2109
|
const verification = paymentController.verification;
|
|
2110
|
+
const [paymentReturn, setPaymentReturn] = useState(null);
|
|
1938
2111
|
deps.useEventRegistrationStripeReturn({
|
|
1939
2112
|
siteId: api.config.siteId,
|
|
1940
2113
|
verify: paymentController.verify,
|
|
1941
2114
|
restore: (pending) => {
|
|
1942
2115
|
paymentController.restoreMailingListNote(pending.mailingListSignupNote);
|
|
1943
|
-
setFormData(pending.formData);
|
|
1944
|
-
setSelectedTicketLines(pending.ticketSelections);
|
|
1945
|
-
setTicketsCount(getTicketSelectionTotal(pending.ticketSelections));
|
|
1946
|
-
setGuests(pending.guests);
|
|
1947
2116
|
discountUi.setDiscountCode(pending.discountCode);
|
|
1948
|
-
|
|
1949
|
-
setSelectedAttendanceMode(pending.selectedAttendanceMode ?? null);
|
|
1950
|
-
const event = registrationEvents.find((item) => item.selectionId === pending.selectedEventId);
|
|
1951
|
-
if (event) setSelectedEvent(event);
|
|
1952
|
-
dispatchFlow({
|
|
1953
|
-
type: "set-manual-payment-selection",
|
|
1954
|
-
selection: pending.paymentSelection
|
|
1955
|
-
});
|
|
2117
|
+
setPaymentReturn(pending);
|
|
1956
2118
|
}
|
|
1957
2119
|
});
|
|
2120
|
+
useEffect(() => {
|
|
2121
|
+
if (!paymentReturn || options.eventSource.kind !== "ready") return;
|
|
2122
|
+
setPaymentReturn(null);
|
|
2123
|
+
dispatchFlow({
|
|
2124
|
+
type: "payment-return-restored",
|
|
2125
|
+
restoration: paymentReturnRestoration(paymentReturn, registrationEvents, portalIdentity)
|
|
2126
|
+
});
|
|
2127
|
+
}, [
|
|
2128
|
+
options.eventSource.kind,
|
|
2129
|
+
paymentReturn,
|
|
2130
|
+
portalIdentity,
|
|
2131
|
+
registrationEvents
|
|
2132
|
+
]);
|
|
1958
2133
|
const requireGuestDetails = useMemo(() => {
|
|
1959
2134
|
return (selectedEvent ?? preSelectedEvent)?.requireGuestDetails === true;
|
|
1960
2135
|
}, [selectedEvent, preSelectedEvent]);
|
|
@@ -2110,14 +2285,27 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2110
2285
|
formData,
|
|
2111
2286
|
requiresConsent: Boolean(currentEvent?.consent),
|
|
2112
2287
|
requireGuestDetails,
|
|
2113
|
-
guests
|
|
2288
|
+
guests,
|
|
2289
|
+
questions: checkBookingQuestionsAnswered(questions)
|
|
2114
2290
|
});
|
|
2115
2291
|
if (check.kind === "blocked") return blockDetailsCompletion(check.blocker);
|
|
2116
2292
|
setErrors(check.errors);
|
|
2117
2293
|
setGuestErrors(check.guestErrors);
|
|
2294
|
+
dispatchFlow({
|
|
2295
|
+
type: "question-errors-set",
|
|
2296
|
+
fieldErrors: check.questionFieldErrors
|
|
2297
|
+
});
|
|
2118
2298
|
const siteTermsAgreed = siteTerms.requireAgreement();
|
|
2119
|
-
if (check.kind === "invalid")
|
|
2120
|
-
|
|
2299
|
+
if (check.kind === "invalid") {
|
|
2300
|
+
setGuestSectionShake(true);
|
|
2301
|
+
setErrorMessage(check.message);
|
|
2302
|
+
return {
|
|
2303
|
+
ok: false,
|
|
2304
|
+
reason: "validation-failed",
|
|
2305
|
+
message: check.message
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
if (!siteTermsAgreed) return {
|
|
2121
2309
|
ok: false,
|
|
2122
2310
|
reason: "validation-failed",
|
|
2123
2311
|
message: "Check the highlighted fields and try again."
|
|
@@ -2222,9 +2410,28 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2222
2410
|
});
|
|
2223
2411
|
const selectionMethod = paymentSelection.method;
|
|
2224
2412
|
const shouldShowDiscountToggle = discountContext !== null && discountUi.manualCodeEntryAllowed && (selectionMethod === "stripe" || selectionMethod === "pass_bundle" || selectionMethod === "membership_bundle");
|
|
2413
|
+
const questions = useEventRegistrationQuestions({
|
|
2414
|
+
api,
|
|
2415
|
+
siteId: api.config.siteId,
|
|
2416
|
+
flow: flowState,
|
|
2417
|
+
dispatch: dispatchFlow,
|
|
2418
|
+
event: currentEvent,
|
|
2419
|
+
identity: portalIdentity,
|
|
2420
|
+
eventSource: options.eventSource,
|
|
2421
|
+
registrationEvents,
|
|
2422
|
+
discountCode: discountUi.discountCode,
|
|
2423
|
+
setDiscountCode: discountUi.setDiscountCode
|
|
2424
|
+
});
|
|
2225
2425
|
const handleSubmit = deps.useEventRegistrationSubmit({
|
|
2226
2426
|
openPayment: paymentController.openPayment,
|
|
2227
2427
|
commandRef,
|
|
2428
|
+
setSubmissionFailure: (failure) => {
|
|
2429
|
+
if (failure.answersNeeded) questions.keepRefused();
|
|
2430
|
+
dispatchFlow({
|
|
2431
|
+
type: "submission-failed",
|
|
2432
|
+
failure
|
|
2433
|
+
});
|
|
2434
|
+
},
|
|
2228
2435
|
setErrorAction,
|
|
2229
2436
|
api: siteTerms.api,
|
|
2230
2437
|
registrationTarget,
|
|
@@ -2232,6 +2439,8 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2232
2439
|
ticketSelections,
|
|
2233
2440
|
selectedSlidingAmount,
|
|
2234
2441
|
formData,
|
|
2442
|
+
bookingQuestions: questions.submission,
|
|
2443
|
+
bookingQuestionsSnapshot: questions.paymentSnapshot,
|
|
2235
2444
|
mailingListSignup,
|
|
2236
2445
|
requireGuestDetails,
|
|
2237
2446
|
guests,
|
|
@@ -2394,6 +2603,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2394
2603
|
guestSectionShake,
|
|
2395
2604
|
handleGuestShakeEnd,
|
|
2396
2605
|
errorMessage,
|
|
2606
|
+
questionFieldErrors: flowState.questionFieldErrors,
|
|
2607
|
+
bookingQuestions: questions,
|
|
2608
|
+
/** Where a sign-in link brings the booker back to, keeping this booking for that attempt. */
|
|
2609
|
+
signInReturnPath: questions.signInReturnPath,
|
|
2610
|
+
/** The message under the details form while questions there need attention. */
|
|
2611
|
+
questionsMessage: registrationQuestionsMessage(flowState.questionFieldErrors, errorMessage),
|
|
2397
2612
|
errorAction,
|
|
2398
2613
|
portalAuthState,
|
|
2399
2614
|
portalProfile,
|
|
@@ -2522,7 +2737,7 @@ function resolveWizardPaymentView(input) {
|
|
|
2522
2737
|
}
|
|
2523
2738
|
//#endregion
|
|
2524
2739
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
2525
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
2740
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-Cf-HRHtb.mjs"));
|
|
2526
2741
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
2527
2742
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
2528
2743
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { vt as normalizeLocationAddressText } from "./noop-ByFRHYQ2.mjs";
|
|
3
|
+
import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../core/src/locationLinks.ts
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { wt as mapDrawingSchema } from "./noop-ByFRHYQ2.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
6
|
+
function formatEventLocation(event) {
|
|
7
|
+
switch (event.deliveryMode) {
|
|
8
|
+
case "online": return "Online";
|
|
9
|
+
case "hybrid": return event.venue ? `${event.venue.name} + online` : "Hybrid";
|
|
10
|
+
case "in_person": return event.venue?.name ?? "In person";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** The line under the venue name. A booked-only venue shows its area, and the address follows the booking. */
|
|
14
|
+
function eventVenuePlace(venue) {
|
|
15
|
+
if (venue.addressWithBooking) return {
|
|
16
|
+
place: venue.area ?? null,
|
|
17
|
+
addressWithBooking: true
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
place: venue.address,
|
|
21
|
+
addressWithBooking: false
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
5
25
|
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
6
26
|
/**
|
|
7
27
|
* Strict SVG-`transform` validator.
|
|
@@ -197,4 +217,4 @@ function cropHeightStyle(height, heightAs) {
|
|
|
197
217
|
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
198
218
|
}
|
|
199
219
|
//#endregion
|
|
200
|
-
export { SvgNode as i, MapDrawingSvg as n, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|
|
220
|
+
export { eventVenuePlace as a, SvgNode as i, MapDrawingSvg as n, formatEventLocation as o, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|