@riverbankcms/sdk 0.182.0 → 0.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -0
- package/README.md +49 -3
- package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
- package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
- package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
- package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
- package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
- package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
- package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
- package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
- package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
- package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
- package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
- package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
- package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +7 -7
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +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 +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 +91 -2
- package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
- package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
- package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
- package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
- package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
- package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
- package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
- package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
- package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
- package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
- package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
- package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
- package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
- package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
- package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
- package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
- package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
- package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
- package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
- package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DyCLMP8s.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
- package/dist/client/{cart-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
- package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
- package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
- package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
- package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
- package/dist/client/client.mjs +446 -93
- package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
- package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
- package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
- package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
- package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
- package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
- package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
- package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
- package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
- package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
- package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
- package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--N1GaSY8.mjs} +155 -84
- package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
- package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
- package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
- package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
- package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
- package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
- package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
- package/dist/client/portal/client.mjs +31 -27
- package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
- package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
- package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
- package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
- package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
- package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
- package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
- package/dist/client/rendering/client.mjs +29 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
- package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
- package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
- package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
- package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
- package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
- package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
- package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-Dy3nNfTG.mjs} +11 -8
- package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
- package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
- package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
- package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
- package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
- package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
- package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
- package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
- package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
- package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
- package/dist/preview-next/container-responsive.css +320 -0
- package/dist/preview-next/editor-chrome.css +23 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
- package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
- package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
- package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
- package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -6
- package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
- package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
- package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-wrcuWmgp.mjs → navigation-B2WhGofA.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
- package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
- package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
- package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
- package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
- package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
- 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-OG3KOkig.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
- package/dist/server/theme-bridge.mjs +3 -3
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
- package/dist/server/{validation-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
- package/dist/server/{version-hws4hgyX.mjs → version-B-icAIV1.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2482 -108
- package/package.json +1 -1
- package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
- package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { An as formatCurrencyAmount, Cn as toUtcIsoDateTimeString, D as isBookingRequirementConsentFieldId, Fn as unsafeAsAppointmentResourceId, In as unsafeAsAppointmentServiceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Zt as hasText, a as clearWorkflowFeedback, an as formatDateTimeRange, cn as formatTime, dn as inferSiteDateLocale, fn as resolveBookingDisplayContext, i as okWith, n as err, nn as formatDate, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever, un as formatTimeZoneCityLabel, wn as resolveBookingBusinessTimeZone } from "./src-
|
|
3
|
-
import { $i as resolveDefaultBookingServiceId, $r as formatValidity, Aa as
|
|
4
|
-
import { f as unsafeAsCustomerPassId, p as unsafeAsPassId } from "./portalRoutes-
|
|
2
|
+
import { An as formatCurrencyAmount, Cn as toUtcIsoDateTimeString, D as isBookingRequirementConsentFieldId, Fn as unsafeAsAppointmentResourceId, In as unsafeAsAppointmentServiceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Zt as hasText, a as clearWorkflowFeedback, an as formatDateTimeRange, cn as formatTime, dn as inferSiteDateLocale, fn as resolveBookingDisplayContext, i as okWith, n as err, nn as formatDate, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever, un as formatTimeZoneCityLabel, wn as resolveBookingBusinessTimeZone } from "./src-Do_s2lqH.mjs";
|
|
3
|
+
import { $i as resolveDefaultBookingServiceId, $r as formatValidity, Aa as bookingHasPackagePaymentChoices, Ba as resolveBookingPurchasablePackages, Bi as getBookingSuccessCopy, Da as BOOKING_FORM_DATA_RESERVED_KEYS, Fa as resolveBookingPackagePaymentSelection, Fi as buildBookingFormInteractiveIslandProps, Gi as normalizeBookingFormConfig, Ha as getBookingServiceSlidingScale, Ia as resolveBookingPackageSources, Ii as readOverrideServiceCategories, Ji as prepareBookingSubmission, Js as formatCreditProductBalance, Ki as normalizeBookingServices, Ks as repriceBookingCollectionOptions, La as resolveBookingPaymentAvailability, Li as deriveBookingFormViewState, Ma as bookingPackageRequestKey, Ms as resolveDateRuntimeContext, Na as bookingRequiresResourceSelection, Pa as reconcileBookingPackagePurchase, Pr as createSignInReturnDraftStore, Qi as resolveBookingSiteId, Ra as resolveBookingPaymentChoice, Ri as formatBookingSubmissionPreparationError, Sa as toBookingQuestionsAnswerDraft, Ta as formatCentsAsCurrencyInput, Tc as unsafeAsSiteId, Ui as isBookingServiceSlidingAmountInRange, Va as toBookingPurchasablePackages, Wi as isSameOpenCheckout, Xi as resolveBookingPaymentStep, Xs as formatCreditProductUnits, Yi as resolveAppointmentCheckoutVerificationState, Ys as formatCreditProductPayment, Zi as resolveBookingSelectedService, Zr as formatCommercePrice, _a as decideBookingQuestionsRestoration, aa as resolveSelectedAppointmentConsent, ao as leavePage, ca as appointmentQuestionsRefusal, da as needsAppointmentQuestionsRefresh, dt as paymentChoiceDetails, ea as resolveLowestBookingPaymentStep, fa as resolveSelectedAppointmentQuestions, ft as paymentChoicePrice, ga as bookingQuestionsTabDraftSchema, gt as createBookingBrowserDraftStore, ha as bookingQuestionsOwnerSchema, ia as projectSelectedAppointmentConsentIntoForm, ic as resolveBookingSignupOffer, ja as bookingPackagePurchaseId, js as readRuntimeNow, ka as applyBookingPaymentAdmission, la as deriveAppointmentBookingQuestions, lo as bookingPresentation, lt as buildBookingPaymentSelectionViewModel, ma as bookingQuestionsOwnerOf, mr as isEmailAddress, na as snapshotBookingShownTerms, oa as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, pa as bookingQuestionsAnswerDraftSchema, qi as parseBookingCurrencyInputToCents, ra as toSelectedCollectionOptionKind, sa as applyAppointmentBookingQuestionsEvent, st as onlineBookingUnavailableMessage, ta as selectedBookingCollectionOptionKind, ua as isAppointmentBookingQuestionsEvent, ut as buildReviewedBookingPaymentViewModel, wa as toBookingQuestionsTabDraft, xa as restoreBookingQuestionsAnswers, ya as isBookingQuestionsOwner, za as resolveBookingPaymentMode, zi as getBookingRedirectStateFromLocation } from "./wizardSteps-DDvL3iza.mjs";
|
|
4
|
+
import { f as unsafeAsCustomerPassId, p as unsafeAsPassId } from "./portalRoutes-DTHlWg_F.mjs";
|
|
5
5
|
import { c as checkBookingQuestionsAnswered, h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
6
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-DQNkfNLA.mjs";
|
|
7
7
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
8
|
-
import { o as clientPersonPhrases, r as OptionalMark } from "./BookingQuestionFields-
|
|
9
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
10
|
-
import {
|
|
11
|
-
import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-
|
|
12
|
-
import { n as BookingPanelArrangement, t as StepIndicator } from "./StepIndicator-
|
|
13
|
-
import { i as discountEmailProblem, m as DiscountCodeDisclosure, p as NavigationHandOffPanel, r as DISCOUNT_APPLY_MESSAGES, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
14
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
8
|
+
import { o as clientPersonPhrases, r as OptionalMark } from "./BookingQuestionFields-DCh9MUIF.mjs";
|
|
9
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-D1L0pe__.mjs";
|
|
10
|
+
import { c as logger } from "./islands-DJDLGQEm.mjs";
|
|
11
|
+
import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-Bc9DBbVp.mjs";
|
|
12
|
+
import { n as BookingPanelArrangement, t as StepIndicator } from "./StepIndicator-DvPekKeM.mjs";
|
|
13
|
+
import { i as discountEmailProblem, m as DiscountCodeDisclosure, p as NavigationHandOffPanel, r as DISCOUNT_APPLY_MESSAGES, t as BookingConfirmation } from "./DemoBookingPortalAccess-HFVkoOac.mjs";
|
|
14
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-D0UsiFmm.mjs";
|
|
15
15
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
16
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
16
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-BdGxZWeg.mjs";
|
|
17
17
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
18
18
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
19
19
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
20
|
-
import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, i as SignInNotice, l as useBookingNowIso, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, s as usePolling, t as BookingMailingListNote, u as portalSessionIdentity } from "./BookingMailingListNote-
|
|
21
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
22
|
-
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-
|
|
23
|
-
import { c as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-
|
|
24
|
-
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-
|
|
20
|
+
import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, i as SignInNotice, l as useBookingNowIso, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, s as usePolling, t as BookingMailingListNote, u as portalSessionIdentity } from "./BookingMailingListNote-qqTxGGS4.mjs";
|
|
21
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DvdFFWOT.mjs";
|
|
22
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-DcjtDpUu.mjs";
|
|
23
|
+
import { c as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-BunFTnIq.mjs";
|
|
24
|
+
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-L1Vge8tG.mjs";
|
|
25
25
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
26
26
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
27
27
|
import { z } from "zod";
|
|
@@ -471,26 +471,9 @@ function isBookingFieldValue(value) {
|
|
|
471
471
|
return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean" || Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
472
472
|
}
|
|
473
473
|
//#endregion
|
|
474
|
-
//#region ../blocks/src/system/runtime/nodes/booking-form.
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
package: z.object({
|
|
478
|
-
id: z.string(),
|
|
479
|
-
name: z.string(),
|
|
480
|
-
price: z.number(),
|
|
481
|
-
currency: z.string(),
|
|
482
|
-
creditsTotal: z.number(),
|
|
483
|
-
validDays: z.number().nullable(),
|
|
484
|
-
heldWithTeamMember: z.object({
|
|
485
|
-
id: z.string(),
|
|
486
|
-
name: z.string()
|
|
487
|
-
}).nullable()
|
|
488
|
-
})
|
|
489
|
-
})]);
|
|
490
|
-
/** The appointment form's drafts, for the shared `useSignInReturn` owner. */
|
|
491
|
-
const bookingSignInDraftStore = createSignInReturnDraftStore(z.object({
|
|
492
|
-
nonce: z.string().min(1),
|
|
493
|
-
email: z.string(),
|
|
474
|
+
//#region ../blocks/src/system/runtime/nodes/booking-form.progress.ts
|
|
475
|
+
/** Typed choices and plain fields only; no agreement, checkout, price or payment state. */
|
|
476
|
+
const bookingProgressSchema = z.object({
|
|
494
477
|
currentStepId: z.enum([
|
|
495
478
|
"service-selection",
|
|
496
479
|
"datetime-selection",
|
|
@@ -512,10 +495,77 @@ const bookingSignInDraftStore = createSignInReturnDraftStore(z.object({
|
|
|
512
495
|
z.number(),
|
|
513
496
|
z.boolean(),
|
|
514
497
|
z.null(),
|
|
515
|
-
z.array(z.string())
|
|
498
|
+
z.array(z.string()).readonly()
|
|
516
499
|
])),
|
|
500
|
+
selectedSlidingAmountInput: z.string()
|
|
501
|
+
});
|
|
502
|
+
function toBookingProgress(state) {
|
|
503
|
+
return {
|
|
504
|
+
currentStepId: state.currentStepId,
|
|
505
|
+
selectedServiceId: state.selectedServiceId,
|
|
506
|
+
selectedResourceId: state.selectedResourceId,
|
|
507
|
+
selectedDate: state.selectedDate,
|
|
508
|
+
selectedSlot: state.selectedSlot ? {
|
|
509
|
+
startAt: state.selectedSlot.startAt,
|
|
510
|
+
endAt: state.selectedSlot.endAt,
|
|
511
|
+
resourceId: state.selectedSlot.resourceId,
|
|
512
|
+
resourceName: state.selectedSlot.resourceName,
|
|
513
|
+
label: state.selectedSlot.label
|
|
514
|
+
} : null,
|
|
515
|
+
fieldValues: omitBookingConsentEntries(state.fieldValues),
|
|
516
|
+
selectedSlidingAmountInput: state.selectedSlidingAmountInput
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
/** Availability reads recheck the restored slot; the draft is never evidence it is still free. */
|
|
520
|
+
function restoreBookingProgress(state, draft) {
|
|
521
|
+
const slot = draft.selectedSlot ? {
|
|
522
|
+
...draft.selectedSlot,
|
|
523
|
+
key: `${draft.selectedSlot.startAt}|${draft.selectedSlot.endAt}|${draft.selectedSlot.resourceId}`,
|
|
524
|
+
resourceId: unsafeAsAppointmentResourceId(draft.selectedSlot.resourceId)
|
|
525
|
+
} : null;
|
|
526
|
+
return {
|
|
527
|
+
...state,
|
|
528
|
+
currentStepId: draft.currentStepId,
|
|
529
|
+
selectedServiceId: draft.selectedServiceId ? unsafeAsAppointmentServiceId(draft.selectedServiceId) : state.selectedServiceId,
|
|
530
|
+
selectedResourceId: draft.selectedResourceId ? unsafeAsAppointmentResourceId(draft.selectedResourceId) : void 0,
|
|
531
|
+
selectedDate: draft.selectedDate,
|
|
532
|
+
selectedSlot: slot,
|
|
533
|
+
fieldValues: {
|
|
534
|
+
...state.fieldValues,
|
|
535
|
+
...omitBookingConsentEntries(draft.fieldValues)
|
|
536
|
+
},
|
|
537
|
+
selectedSlidingAmountInput: draft.selectedSlidingAmountInput
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region ../blocks/src/system/runtime/nodes/booking-form.sign-in-return.ts
|
|
542
|
+
const packagePurchaseSchema = z.discriminatedUnion("kind", [
|
|
543
|
+
z.object({ kind: z.literal("none") }),
|
|
544
|
+
z.object({
|
|
545
|
+
kind: z.literal("restoring"),
|
|
546
|
+
packageId: z.string()
|
|
547
|
+
}),
|
|
548
|
+
z.object({
|
|
549
|
+
kind: z.literal("selected"),
|
|
550
|
+
package: z.object({
|
|
551
|
+
id: z.string(),
|
|
552
|
+
name: z.string(),
|
|
553
|
+
price: z.number(),
|
|
554
|
+
currency: z.string(),
|
|
555
|
+
creditsTotal: z.number(),
|
|
556
|
+
validDays: z.number().nullable(),
|
|
557
|
+
heldWithTeamMember: z.object({
|
|
558
|
+
id: z.string(),
|
|
559
|
+
name: z.string()
|
|
560
|
+
}).nullable()
|
|
561
|
+
})
|
|
562
|
+
})
|
|
563
|
+
]);
|
|
564
|
+
/** The appointment form's drafts, for the shared `useSignInReturn` owner. */
|
|
565
|
+
const bookingSignInDraftStore = createSignInReturnDraftStore(bookingProgressSchema.extend({
|
|
566
|
+
nonce: z.string().min(1),
|
|
567
|
+
email: z.string(),
|
|
517
568
|
mailingListOptIn: z.boolean(),
|
|
518
|
-
selectedSlidingAmountInput: z.string(),
|
|
519
569
|
selectedCollectionOptionKind: z.enum([
|
|
520
570
|
"upfront",
|
|
521
571
|
"deferred_manual",
|
|
@@ -532,20 +582,8 @@ function toBookingSignInDraft(state, attempt) {
|
|
|
532
582
|
return {
|
|
533
583
|
nonce: attempt.nonce,
|
|
534
584
|
email: attempt.email,
|
|
535
|
-
|
|
536
|
-
selectedServiceId: state.selectedServiceId,
|
|
537
|
-
selectedResourceId: state.selectedResourceId,
|
|
538
|
-
selectedDate: state.selectedDate,
|
|
539
|
-
selectedSlot: state.selectedSlot ? {
|
|
540
|
-
startAt: state.selectedSlot.startAt,
|
|
541
|
-
endAt: state.selectedSlot.endAt,
|
|
542
|
-
resourceId: state.selectedSlot.resourceId,
|
|
543
|
-
...state.selectedSlot.resourceName ? { resourceName: state.selectedSlot.resourceName } : {},
|
|
544
|
-
...state.selectedSlot.label ? { label: state.selectedSlot.label } : {}
|
|
545
|
-
} : null,
|
|
546
|
-
fieldValues: omitBookingConsentEntries(state.fieldValues),
|
|
585
|
+
...toBookingProgress(state),
|
|
547
586
|
mailingListOptIn: state.mailingListOptIn,
|
|
548
|
-
selectedSlidingAmountInput: state.selectedSlidingAmountInput,
|
|
549
587
|
selectedCollectionOptionKind: state.selectedCollectionOptionKind,
|
|
550
588
|
selectedAppointmentPackageId: state.selectedAppointmentPackageId,
|
|
551
589
|
packagePurchase: state.packagePurchase,
|
|
@@ -560,24 +598,9 @@ function toBookingSignInDraft(state, attempt) {
|
|
|
560
598
|
* answers come back only as `decideBookingQuestionsRestoration` decided.
|
|
561
599
|
*/
|
|
562
600
|
function restoreBookingSignInDraft(state, draft, questions) {
|
|
563
|
-
const slot = draft.selectedSlot ? {
|
|
564
|
-
...draft.selectedSlot,
|
|
565
|
-
key: `${draft.selectedSlot.startAt}|${draft.selectedSlot.endAt}|${draft.selectedSlot.resourceId}`,
|
|
566
|
-
resourceId: unsafeAsAppointmentResourceId(draft.selectedSlot.resourceId)
|
|
567
|
-
} : null;
|
|
568
601
|
return {
|
|
569
|
-
...state,
|
|
570
|
-
currentStepId: draft.currentStepId,
|
|
571
|
-
selectedServiceId: draft.selectedServiceId ? unsafeAsAppointmentServiceId(draft.selectedServiceId) : state.selectedServiceId,
|
|
572
|
-
selectedResourceId: draft.selectedResourceId ? unsafeAsAppointmentResourceId(draft.selectedResourceId) : void 0,
|
|
573
|
-
selectedDate: draft.selectedDate,
|
|
574
|
-
selectedSlot: slot,
|
|
575
|
-
fieldValues: {
|
|
576
|
-
...state.fieldValues,
|
|
577
|
-
...draft.fieldValues
|
|
578
|
-
},
|
|
602
|
+
...restoreBookingProgress(state, draft),
|
|
579
603
|
mailingListOptIn: draft.mailingListOptIn,
|
|
580
|
-
selectedSlidingAmountInput: draft.selectedSlidingAmountInput,
|
|
581
604
|
selectedCollectionOptionKind: draft.selectedCollectionOptionKind,
|
|
582
605
|
selectedAppointmentPackageId: draft.selectedAppointmentPackageId ? unsafeAsCustomerPassId(draft.selectedAppointmentPackageId) : void 0,
|
|
583
606
|
packagePurchase: draft.packagePurchase,
|
|
@@ -673,6 +696,90 @@ function useAppointmentBookingQuestions(input) {
|
|
|
673
696
|
...signIn
|
|
674
697
|
};
|
|
675
698
|
}
|
|
699
|
+
const bookingBrowserDraftStore = createBookingBrowserDraftStore("riverbank:appointment-draft:", z.object({
|
|
700
|
+
owner: bookingQuestionsOwnerSchema,
|
|
701
|
+
progress: bookingProgressSchema,
|
|
702
|
+
heldPackageId: z.string().nullable(),
|
|
703
|
+
purchasePackageId: z.string().nullable(),
|
|
704
|
+
questions: bookingQuestionsTabDraftSchema.nullable()
|
|
705
|
+
}));
|
|
706
|
+
/** Package identities are choices; their price, balance and availability must be read again. */
|
|
707
|
+
function toBookingBrowserDraft(state, service, identity) {
|
|
708
|
+
const purchasePackageId = bookingPackagePurchaseId(state.packagePurchase);
|
|
709
|
+
const shown = resolveSelectedAppointmentQuestions(service, state.bookingQuestions.refreshed, identity);
|
|
710
|
+
return {
|
|
711
|
+
owner: bookingQuestionsOwnerOf(identity),
|
|
712
|
+
progress: toBookingProgress(state),
|
|
713
|
+
heldPackageId: purchasePackageId ? null : state.selectedAppointmentPackageId ?? null,
|
|
714
|
+
purchasePackageId,
|
|
715
|
+
questions: state.bookingQuestions.scope?.identity === identity ? toBookingQuestionsTabDraft(state.bookingQuestions, shown) : null
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
/** One owner check gates every personal field and answer, including signed-out notes. */
|
|
719
|
+
function restoreBookingBrowserDraft(state, draft, services, identity) {
|
|
720
|
+
if (state.phase !== "editing" || !isBookingQuestionsOwner(draft.owner, identity)) return state;
|
|
721
|
+
const service = services.find((candidate) => candidate.id === draft.progress.selectedServiceId);
|
|
722
|
+
if (!service) return state;
|
|
723
|
+
const questions = draft.questions ? decideBookingQuestionsRestoration({
|
|
724
|
+
kind: "tab_draft",
|
|
725
|
+
draft: draft.questions,
|
|
726
|
+
identity,
|
|
727
|
+
current: resolveSelectedAppointmentQuestions(service)
|
|
728
|
+
}) : null;
|
|
729
|
+
return {
|
|
730
|
+
...restoreBookingProgress(state, draft.progress),
|
|
731
|
+
packagePurchase: draft.purchasePackageId && service.onlinePaymentChoices?.buyPackage === true ? {
|
|
732
|
+
kind: "restoring",
|
|
733
|
+
packageId: draft.purchasePackageId
|
|
734
|
+
} : { kind: "none" },
|
|
735
|
+
selectedCollectionOptionKind: void 0,
|
|
736
|
+
selectedAppointmentPackageId: !draft.purchasePackageId && draft.heldPackageId ? unsafeAsCustomerPassId(draft.heldPackageId) : void 0,
|
|
737
|
+
bookingQuestions: restoreBookingQuestionsAnswers(state.bookingQuestions, questions)
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
//#endregion
|
|
741
|
+
//#region ../blocks/src/system/runtime/hooks/useAppointmentBrowserDraft.ts
|
|
742
|
+
function hasAuthoritativeReturn() {
|
|
743
|
+
const params = new URLSearchParams(window.location.search);
|
|
744
|
+
return getBookingRedirectStateFromLocation(window.location).kind !== "none" || params.has("rb_booking_sign_in");
|
|
745
|
+
}
|
|
746
|
+
/** This hook owns optional tab storage; the reducer owns every restored choice. */
|
|
747
|
+
function useAppointmentBrowserDraft(input) {
|
|
748
|
+
const scope = JSON.stringify([
|
|
749
|
+
input.siteId,
|
|
750
|
+
input.formId,
|
|
751
|
+
typeof window === "undefined" ? "" : window.location.pathname
|
|
752
|
+
]);
|
|
753
|
+
const owner = useRef(bookingQuestionsOwnerOf(input.identity));
|
|
754
|
+
const authoritativeReturn = useRef(typeof window !== "undefined" && hasAuthoritativeReturn());
|
|
755
|
+
const [ready, setReady] = useState(false);
|
|
756
|
+
useEffect(() => {
|
|
757
|
+
if (ready || input.services.length === 0) return;
|
|
758
|
+
const draft = authoritativeReturn.current || input.rebooking ? null : bookingBrowserDraftStore.read(scope);
|
|
759
|
+
if (draft && isBookingQuestionsOwner(draft.owner, input.identity)) input.dispatch({
|
|
760
|
+
type: "browser-draft-restored",
|
|
761
|
+
draft,
|
|
762
|
+
identity: input.identity
|
|
763
|
+
});
|
|
764
|
+
setReady(true);
|
|
765
|
+
}, [
|
|
766
|
+
input,
|
|
767
|
+
ready,
|
|
768
|
+
scope
|
|
769
|
+
]);
|
|
770
|
+
useEffect(() => {
|
|
771
|
+
if (!isBookingQuestionsOwner(owner.current, input.identity) || input.state.phase !== "editing") {
|
|
772
|
+
bookingBrowserDraftStore.clear(scope);
|
|
773
|
+
return;
|
|
774
|
+
}
|
|
775
|
+
if (!ready || input.rebooking || hasAuthoritativeReturn()) return;
|
|
776
|
+
bookingBrowserDraftStore.save(scope, toBookingBrowserDraft(input.state, input.service, input.identity));
|
|
777
|
+
}, [
|
|
778
|
+
input,
|
|
779
|
+
ready,
|
|
780
|
+
scope
|
|
781
|
+
]);
|
|
782
|
+
}
|
|
676
783
|
//#endregion
|
|
677
784
|
//#region ../blocks/src/system/runtime/nodes/booking-form.checkout-retry.ts
|
|
678
785
|
function retryKey(siteId, intent) {
|
|
@@ -1142,7 +1249,7 @@ function clearAvailabilityFeedback(feedback) {
|
|
|
1142
1249
|
return feedback.kind === "error" && feedback.scope === "availability" ? { kind: "none" } : feedback;
|
|
1143
1250
|
}
|
|
1144
1251
|
function resolveAvailabilitySelectionInvalidation(input) {
|
|
1145
|
-
if (input.selectedDate && !input.availableDates.includes(input.selectedDate)) return {
|
|
1252
|
+
if (input.selectedDate && input.selectedDate <= input.availableThrough && !input.availableDates.includes(input.selectedDate)) return {
|
|
1146
1253
|
kind: "date_unavailable",
|
|
1147
1254
|
message: "That date is no longer available. Please choose another date."
|
|
1148
1255
|
};
|
|
@@ -1712,6 +1819,7 @@ function isRecord$1(value) {
|
|
|
1712
1819
|
}
|
|
1713
1820
|
/** Reconcile customer intent as part of the edit, never from a rendering effect. */
|
|
1714
1821
|
function bookingFlowReducer(state, event, context) {
|
|
1822
|
+
if (event.type === "browser-draft-restored") return restoreBookingBrowserDraft(state, event.draft, context.services, event.identity);
|
|
1715
1823
|
const changed = reduceBookingFlowEvent(state.review && changesBookingIntent(event) ? {
|
|
1716
1824
|
...state,
|
|
1717
1825
|
review: null
|
|
@@ -1892,7 +2000,7 @@ function planBookingResourceAcceptance(input) {
|
|
|
1892
2000
|
}
|
|
1893
2001
|
function planBookingPackageAcceptance(input) {
|
|
1894
2002
|
const { state, packages } = input;
|
|
1895
|
-
if (state.phase !== "editing" || state.packagePurchase.kind
|
|
2003
|
+
if (state.phase !== "editing" || state.packagePurchase.kind !== "none" || state.selectedCollectionOptionKind) return [];
|
|
1896
2004
|
if (packages.some((item) => item.customerPassId === state.selectedAppointmentPackageId)) return [];
|
|
1897
2005
|
const [first] = packages;
|
|
1898
2006
|
return first ? [{
|
|
@@ -2617,6 +2725,16 @@ function useHeadlessBookingFlow(options) {
|
|
|
2617
2725
|
autoSelectSingleResource: options.shouldAutoSelectSingleResource !== false,
|
|
2618
2726
|
dispatch
|
|
2619
2727
|
});
|
|
2728
|
+
useAppointmentBrowserDraft({
|
|
2729
|
+
siteId: options.siteId,
|
|
2730
|
+
formId: options.formId,
|
|
2731
|
+
state,
|
|
2732
|
+
services: options.services,
|
|
2733
|
+
service: selectedService,
|
|
2734
|
+
identity: portalIdentity,
|
|
2735
|
+
dispatch,
|
|
2736
|
+
rebooking: Boolean(options.rebookContext)
|
|
2737
|
+
});
|
|
2620
2738
|
const heldPackages = summariseBookingHeldPackages(packageSources.held, choices.packages, choices.heldPackageTeamMembers);
|
|
2621
2739
|
const stepState = useMemo(() => deriveBookingFlowSteps({
|
|
2622
2740
|
form: runtimeForm,
|
|
@@ -2670,13 +2788,14 @@ function useHeadlessBookingFlow(options) {
|
|
|
2670
2788
|
const dateValues = useMemo(() => [...availableDates].sort(), [availableDates]);
|
|
2671
2789
|
useEffect(() => {
|
|
2672
2790
|
if (state.phase !== "editing") return;
|
|
2673
|
-
const canEvaluateDate = availabilityDatesQuery.ok &&
|
|
2791
|
+
const canEvaluateDate = availabilityDatesQuery.ok && availableDatesLoadedRange !== null && !isLoadingDates && !datesError;
|
|
2674
2792
|
const canEvaluateSlot = !state.selectedSlot || availabilitySlotsQuery.ok && hasLoadedSlots && !isLoadingSlots && !slotsError;
|
|
2675
2793
|
if (!canEvaluateDate || !canEvaluateSlot) return;
|
|
2676
2794
|
const invalidation = resolveAvailabilitySelectionInvalidation({
|
|
2677
2795
|
selectedDate: state.selectedDate,
|
|
2678
2796
|
selectedSlot: state.selectedSlot,
|
|
2679
2797
|
availableDates: dateValues,
|
|
2798
|
+
availableThrough: availableDatesLoadedRange.end,
|
|
2680
2799
|
slots: slotViews
|
|
2681
2800
|
});
|
|
2682
2801
|
if (invalidation.kind === "preserve") return;
|
|
@@ -4910,6 +5029,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
4910
5029
|
initialServiceId,
|
|
4911
5030
|
initialResourceId,
|
|
4912
5031
|
initialData: render.hydration.initialData ?? void 0,
|
|
5032
|
+
rebookContext: render.hydration.rebookContext,
|
|
4913
5033
|
requiresServiceSelection: render.hydration.requiresServiceSelection,
|
|
4914
5034
|
requiresResourceSelection: render.hydration.requiresResourceSelection,
|
|
4915
5035
|
shouldAutoSelectSingleResource: render.hydration.shouldAutoSelectSingleResource,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as BookingFormClient } from "./booking-form.client-DycPGtke.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-B6nQeqvH.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as publicEventSchema, t as assertNever } from "./src-
|
|
3
|
-
import { $ as deriveEventRegistrationSteps,
|
|
4
|
-
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-
|
|
5
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { S as publicEventSchema, t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
3
|
+
import { $ as deriveEventRegistrationSteps, Gi as normalizeBookingFormConfig, Hr as resolveRegistrationDisplay, Ki as normalizeBookingServices, Oa as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Tr as getSingleSelectedPricingOptionId, at as toHeadlessPaymentSelection, it as resolveHeadlessEventRegistrationView, js as readRuntimeNow, nt as resolveEventRegistrationSubmitPlan, ot as toInternalPaymentSelection, rt as resolveHeadlessEventRegistrationStatus, to as createHostedBlockApiConfig, tt as normalizeEventRegistrationMaxTickets, vi as normalizeEventRegistrationPageSurfaceSubject, yo as resolveRuntimeEventDestination, yt as entryChoosesEvent } from "./wizardSteps-DDvL3iza.mjs";
|
|
4
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-DycPGtke.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-BTLYhVxD.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-D1L0pe__.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { xs as asPartialObject } from "./wizardSteps-DDvL3iza.mjs";
|
|
3
|
+
import { Cn as openCardRoleValue, Sn as itemRoleValues, _n as runtimeBoxBackgroundSchema, gn as boxBackgroundSchema, hn as boxBackgroundOverlaySchema, xn as cardVariantRoleValues, yn as boxlessCardVariantValue } from "./islands-DJDLGQEm.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum(itemRoleValues);
|
|
6
6
|
z.enum(cardVariantRoleValues);
|