@riverbankcms/sdk 0.180.0 → 0.182.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/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
- package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
- package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
- package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
- package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -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 +83 -52
- 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 +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- 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 +1 -1
- package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
- package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
- package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
- package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
- package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
- package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
- package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
- package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +17 -11
- package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +106 -43
- package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
- package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
- package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
- package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
- package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
- package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
- package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
- package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
- package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
- package/dist/client/portal/client.mjs +12202 -7166
- package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
- package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
- package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
- package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
- package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
- package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
- package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
- package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
- package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
- package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
- package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
- package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +203 -174
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
- package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
- package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-CeMywaiD.mjs +1485 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
- package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +134 -81
- package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
- package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
- package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
- package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +10 -9
- package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
- package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
- package/dist/server/theme-bridge.mjs +34 -8
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
- package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +1098 -1885
- package/package.json +2 -1
- package/dist/_dts/index-B0_2-65A.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as createStandardButtonSurfacePolicy } from "./types-BKaBZFjD.mjs";
|
|
2
|
+
import { r as expandPalette, u as compileButtonColourStates } from "./expandPalette-ehuW8r2g.mjs";
|
|
3
|
+
import { i as themeSchema } from "./schema-CwfxQjc4.mjs";
|
|
3
4
|
//#region ../theme-core/src/buttons/parseThemeForPersistence.ts
|
|
4
5
|
/**
|
|
5
6
|
* Proves that every persisted button variant compiles against the theme's
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { a as PORTAL_ENTRY_COOKIE, c as PORTAL_TOKEN_COOKIE, f as parsePortalLocation, i as PORTAL_COOKIE_MAX_AGE, l as REDIRECT_TO_PARAM, m as withPortalArrival, n as DEFAULT_PORTAL_REDIRECT, o as PORTAL_ENTRY_COOKIE_MAX_AGE, p as portalPath, r as PORTAL_CALLBACK_PATH, s as PORTAL_ENTRY_PARAM, u as CUSTOMER_PORTAL_PATH } from "./constants-CeMywaiD.mjs";
|
|
1
2
|
import { a as sanitizeSafeAppPath, i as safeAppPathOrFallback, n as assertSafeAppPath, r as buildSafeRedirectUrl } from "./src-DHK4JUlp.mjs";
|
|
2
|
-
import { _ as PORTAL_TOKEN_COOKIE, c as PORTAL_ENTRY_COOKIE, d as PORTAL_ENTRY_PATH, g as PORTAL_TAB_PARAM, l as PORTAL_ENTRY_COOKIE_MAX_AGE, m as PORTAL_LOGIN_SUCCESS_PARAM, o as PORTAL_CALLBACK_PATH, r as DEFAULT_PORTAL_REDIRECT, s as PORTAL_COOKIE_MAX_AGE, t as CUSTOMER_PORTAL_PATH, u as PORTAL_ENTRY_PARAM, v as REDIRECT_TO_PARAM } from "./constants-Cj7hfbrA.mjs";
|
|
3
3
|
//#region src/portal/redirects.ts
|
|
4
4
|
const DEPRECATED_REDIRECT_PATH_WARNING = "[SDK] handlePortalCallback/handlePortalLogout: \"redirectPath\" is deprecated, use \"defaultRedirectPath\"";
|
|
5
5
|
function resolveRedirectPathOption({ options, defaultValue, warn, nodeEnv }) {
|
|
@@ -104,58 +104,74 @@ function isSameOriginPost(headers) {
|
|
|
104
104
|
if (!origin || !URL.canParse(origin)) return false;
|
|
105
105
|
return new URL(origin).host.toLowerCase() === resolveExternalHost(headers)?.toLowerCase();
|
|
106
106
|
}
|
|
107
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Picks the first page's heading and button. It reads the destination and nothing else, through the
|
|
109
|
+
* portal's own router, so old email links and new paths read alike.
|
|
110
|
+
*/
|
|
108
111
|
function portalEntryPurpose(redirectPath) {
|
|
109
112
|
const url = new URL(redirectPath, "https://site.invalid");
|
|
110
113
|
if (url.searchParams.has("waitlist_claim")) return "waitlist_claim";
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
114
|
+
return purposeOfPage(parsePortalLocation(url).route);
|
|
115
|
+
}
|
|
116
|
+
function purposeOfPage(route) {
|
|
117
|
+
switch (route.page) {
|
|
118
|
+
case "bookings":
|
|
119
|
+
case "booking":
|
|
120
|
+
case "booking_questions":
|
|
121
|
+
case "booking_cancel":
|
|
122
|
+
case "booking_transfer":
|
|
123
|
+
case "booking_reschedule":
|
|
124
|
+
case "ticket":
|
|
125
|
+
case "waitlist_offer": return "booking";
|
|
126
|
+
case "passes": return "membership";
|
|
127
|
+
case "home":
|
|
128
|
+
case "payments":
|
|
129
|
+
case "order":
|
|
130
|
+
case "receipt":
|
|
131
|
+
case "downloads":
|
|
132
|
+
case "download":
|
|
133
|
+
case "download_file":
|
|
134
|
+
case "details":
|
|
135
|
+
case "sign_in":
|
|
136
|
+
case "continue":
|
|
137
|
+
case "not_found": return "general";
|
|
138
|
+
}
|
|
133
139
|
}
|
|
140
|
+
/** Continue again, as the callback sends someone who has just opened a link. */
|
|
141
|
+
const CONTINUE_OPENED = portalPath({
|
|
142
|
+
page: "continue",
|
|
143
|
+
reason: "opened"
|
|
144
|
+
});
|
|
145
|
+
/** Continue with nothing to say, which offers a new link by email address. */
|
|
146
|
+
const CONTINUE_PLAIN = portalPath({
|
|
147
|
+
page: "continue",
|
|
148
|
+
reason: "none"
|
|
149
|
+
});
|
|
134
150
|
/** Every state of the Continue page, decided in one place. */
|
|
135
151
|
function planPortalEntryPage(input) {
|
|
136
|
-
const {
|
|
137
|
-
if (!pending) return planWithoutLink(
|
|
152
|
+
const { reason, pending } = input;
|
|
153
|
+
if (!pending) return planWithoutLink(reason);
|
|
138
154
|
const { entry, preview, fingerprint } = pending;
|
|
139
155
|
if (preview === "unavailable") return asView({
|
|
140
156
|
kind: "failed",
|
|
141
|
-
retryHref:
|
|
157
|
+
retryHref: CONTINUE_OPENED,
|
|
142
158
|
destination: entry.destination,
|
|
143
159
|
fingerprint
|
|
144
160
|
});
|
|
145
|
-
if (preview.state === "unknown") return sendAnswer(
|
|
161
|
+
if (preview.state === "unknown") return sendAnswer(reason, null) ?? asView({ kind: "unknown" });
|
|
146
162
|
if (preview.sameCustomer) return {
|
|
147
163
|
kind: "redirect",
|
|
148
164
|
destination: entry.destination
|
|
149
165
|
};
|
|
150
|
-
return sendAnswer(
|
|
166
|
+
return sendAnswer(reason, {
|
|
151
167
|
maskedEmail: preview.maskedEmail,
|
|
152
168
|
fingerprint
|
|
153
|
-
}) ?? planKnownLink(
|
|
169
|
+
}) ?? planKnownLink(reason, pending, preview);
|
|
154
170
|
}
|
|
155
|
-
function planKnownLink(
|
|
156
|
-
if (
|
|
171
|
+
function planKnownLink(reason, pending, preview) {
|
|
172
|
+
if (reason === "stale") return asView({
|
|
157
173
|
kind: "stale",
|
|
158
|
-
carryOnHref:
|
|
174
|
+
carryOnHref: CONTINUE_OPENED
|
|
159
175
|
});
|
|
160
176
|
if (preview.state !== "ready") return asView({
|
|
161
177
|
kind: preview.state,
|
|
@@ -178,15 +194,16 @@ function asView(view) {
|
|
|
178
194
|
};
|
|
179
195
|
}
|
|
180
196
|
/** What the callback came back to say about a request for a new link, if that's why they're here. */
|
|
181
|
-
function sendAnswer(
|
|
182
|
-
switch (
|
|
197
|
+
function sendAnswer(reason, resend) {
|
|
198
|
+
switch (reason) {
|
|
183
199
|
case "link_sent": return asView({
|
|
184
200
|
kind: "link_sent",
|
|
185
201
|
resend
|
|
186
202
|
});
|
|
187
203
|
case "link_limited": return asView({
|
|
188
204
|
kind: "link_limited",
|
|
189
|
-
resend
|
|
205
|
+
resend,
|
|
206
|
+
retryHref: CONTINUE_PLAIN
|
|
190
207
|
});
|
|
191
208
|
case "demo_refused": return asView({ kind: "demo_refused" });
|
|
192
209
|
case "none":
|
|
@@ -194,8 +211,8 @@ function sendAnswer(arrival, resend) {
|
|
|
194
211
|
case "stale": return null;
|
|
195
212
|
}
|
|
196
213
|
}
|
|
197
|
-
function planWithoutLink(
|
|
198
|
-
return sendAnswer(
|
|
214
|
+
function planWithoutLink(reason) {
|
|
215
|
+
return sendAnswer(reason, null) ?? asView({ kind: reason === "none" ? "unknown" : "cookies_blocked" });
|
|
199
216
|
}
|
|
200
217
|
async function postDashboard(url, body, timeoutMs) {
|
|
201
218
|
const controller = new AbortController();
|
|
@@ -490,8 +507,11 @@ function redirectResponse(location, cookies = []) {
|
|
|
490
507
|
cookies
|
|
491
508
|
});
|
|
492
509
|
}
|
|
493
|
-
function toEntryPage(origin,
|
|
494
|
-
return redirectResponse(new URL(
|
|
510
|
+
function toEntryPage(origin, reason, cookies = []) {
|
|
511
|
+
return redirectResponse(new URL(portalPath({
|
|
512
|
+
page: "continue",
|
|
513
|
+
reason
|
|
514
|
+
}), origin), cookies);
|
|
495
515
|
}
|
|
496
516
|
function entryCookie(value, maxAge, secure) {
|
|
497
517
|
return {
|
|
@@ -569,11 +589,7 @@ async function completeContinue(input, fingerprint) {
|
|
|
569
589
|
timeoutMs
|
|
570
590
|
});
|
|
571
591
|
switch (result.kind) {
|
|
572
|
-
case "signed_in":
|
|
573
|
-
const destination = buildSafeRedirectUrl(entry.destination, origin);
|
|
574
|
-
destination.searchParams.set(PORTAL_LOGIN_SUCCESS_PARAM, "success");
|
|
575
|
-
return redirectResponse(destination, [portalSessionCookie(result.sessionToken, secure), entryCookie("", 0, secure)]);
|
|
576
|
-
}
|
|
592
|
+
case "signed_in": return redirectResponse(withPortalArrival(buildSafeRedirectUrl(entry.destination, origin), "signed_in"), [portalSessionCookie(result.sessionToken, secure), entryCookie("", 0, secure)]);
|
|
577
593
|
case "not_redeemed": return toEntryPage(origin, "opened");
|
|
578
594
|
case "unavailable": return failurePage(chrome, retry);
|
|
579
595
|
}
|
|
@@ -780,4 +796,4 @@ function hasPortalSession(cookieStore) {
|
|
|
780
796
|
return getPortalToken(cookieStore) !== null;
|
|
781
797
|
}
|
|
782
798
|
//#endregion
|
|
783
|
-
export { handlePortalCallback as a,
|
|
799
|
+
export { handlePortalCallback as a, planPortalEntryPage as c, getDashboardUrl as i, portalEntryFingerprint as l, hasPortalSession as n, handlePortalLogout as o, isValidRedirectPath as r, decodePortalEntryCookieValue as s, getPortalToken as t, previewPortalEntryToken as u };
|
package/dist/server/portal.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as handlePortalCallback, c as
|
|
3
|
-
export { CUSTOMER_PORTAL_PATH, DEFAULT_LOGOUT_REDIRECT, DEFAULT_PORTAL_REDIRECT,
|
|
1
|
+
import { a as PORTAL_ENTRY_COOKIE, c as PORTAL_TOKEN_COOKIE, i as PORTAL_COOKIE_MAX_AGE, l as REDIRECT_TO_PARAM, n as DEFAULT_PORTAL_REDIRECT, o as PORTAL_ENTRY_COOKIE_MAX_AGE, r as PORTAL_CALLBACK_PATH, s as PORTAL_ENTRY_PARAM, t as DEFAULT_LOGOUT_REDIRECT, u as CUSTOMER_PORTAL_PATH } from "./constants-CeMywaiD.mjs";
|
|
2
|
+
import { a as handlePortalCallback, c as planPortalEntryPage, i as getDashboardUrl, l as portalEntryFingerprint, n as hasPortalSession, o as handlePortalLogout, r as isValidRedirectPath, s as decodePortalEntryCookieValue, t as getPortalToken, u as previewPortalEntryToken } from "./portal-pG_uhsI2.mjs";
|
|
3
|
+
export { CUSTOMER_PORTAL_PATH, DEFAULT_LOGOUT_REDIRECT, DEFAULT_PORTAL_REDIRECT, PORTAL_CALLBACK_PATH, PORTAL_COOKIE_MAX_AGE, PORTAL_ENTRY_COOKIE, PORTAL_ENTRY_COOKIE_MAX_AGE, PORTAL_ENTRY_PARAM, PORTAL_TOKEN_COOKIE, REDIRECT_TO_PARAM, decodePortalEntryCookieValue, getDashboardUrl, getPortalToken, handlePortalCallback, handlePortalLogout, hasPortalSession, isValidRedirectPath, planPortalEntryPage, portalEntryFingerprint, previewPortalEntryToken };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { a as parseUuidBrand } from "./media-BRmYrnzb.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region ../core/src/branded/events.ts
|
|
4
|
+
const unsafeAsEventOfferingId = (id) => id;
|
|
5
|
+
const unsafeAsEventSeriesId = (id) => id;
|
|
6
|
+
const unsafeAsEventSeriesRegistrationId = (id) => id;
|
|
7
|
+
const unsafeAsEventCategoryId = (id) => id;
|
|
8
|
+
const unsafeAsAttendeeId = (id) => id;
|
|
9
|
+
const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
|
|
10
|
+
const parseAttendeeId = (value) => parseUuidBrand(value, unsafeAsAttendeeId);
|
|
11
|
+
const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
|
|
12
|
+
const parseEventSeriesRegistrationId = (value) => parseUuidBrand(value, unsafeAsEventSeriesRegistrationId);
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../core/src/branded/customers.ts
|
|
15
|
+
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
16
|
+
const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../core/src/branded/appointments.ts
|
|
19
|
+
const unsafeAsAppointmentId = (id) => id;
|
|
20
|
+
const unsafeAsAppointmentServiceId = (id) => id;
|
|
21
|
+
const parseAppointmentId = (value) => parseUuidBrand(value, unsafeAsAppointmentId);
|
|
22
|
+
const parseAppointmentServiceId = (value) => parseUuidBrand(value, unsafeAsAppointmentServiceId);
|
|
23
|
+
const unsafeAsClientArrangementId = (id) => id;
|
|
24
|
+
const parseClientArrangementId = (value) => parseUuidBrand(value, unsafeAsClientArrangementId);
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../site-contracts/src/siteData/wireSchema.ts
|
|
27
|
+
/**
|
|
28
|
+
* Admits a wire decoder only when it matches its contract type `T` in this
|
|
29
|
+
* build: what it decodes is a `T`, and it accepts the input side of every
|
|
30
|
+
* `T`. A schema stricter than its type would refuse real responses (a member
|
|
31
|
+
* the type has but the schema forgot), and a looser one would let unchecked
|
|
32
|
+
* shapes through, so both directions are checked where the type is declared.
|
|
33
|
+
*
|
|
34
|
+
* It is a compile-time check against today's type and nothing more. It can't
|
|
35
|
+
* know what a newer server will send a client built from an older contract
|
|
36
|
+
* (SDK sites run pinned builds), so a value the type later gains is still
|
|
37
|
+
* refused by an old decoder. Where that has to keep working, the contract
|
|
38
|
+
* names the point as extensible and decodes it with {@link evolvingSchema}.
|
|
39
|
+
*
|
|
40
|
+
* Mirror the type's arrays: `z.array(x).readonly()` for a `readonly` array,
|
|
41
|
+
* plain `z.array(x)` for a mutable one.
|
|
42
|
+
*/
|
|
43
|
+
function exactSchema() {
|
|
44
|
+
return evolvingSchema();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A decoder at a named extensible point of a contract: it reads every `TWire`
|
|
48
|
+
* the server sends today, and decodes anything a newer server might add there
|
|
49
|
+
* to the closed fallback inside `TDecoded` (an `unsupported` state the client
|
|
50
|
+
* renders safely: shown, but with nothing to act on). Known variants stay
|
|
51
|
+
* strict, so a broken known value is still an error rather than a fallback.
|
|
52
|
+
*/
|
|
53
|
+
function evolvingSchema() {
|
|
54
|
+
return (schema) => schema;
|
|
55
|
+
}
|
|
56
|
+
/** Anything at an extensible point whose `kind` this build doesn't know. */
|
|
57
|
+
function unknownKind(known) {
|
|
58
|
+
return z.object({ kind: z.string().refine((kind) => !known.includes(kind), "a known kind failed to decode") });
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region ../site-contracts/src/siteData/portalQuestions.ts
|
|
62
|
+
const optionSchema = exactSchema()(z.object({
|
|
63
|
+
value: z.string(),
|
|
64
|
+
label: z.string()
|
|
65
|
+
}));
|
|
66
|
+
const scalarFieldSchema = exactSchema()(z.object({
|
|
67
|
+
id: z.string().min(1),
|
|
68
|
+
label: z.string(),
|
|
69
|
+
type: z.enum([
|
|
70
|
+
"text",
|
|
71
|
+
"email",
|
|
72
|
+
"textarea",
|
|
73
|
+
"select",
|
|
74
|
+
"radio",
|
|
75
|
+
"checkbox",
|
|
76
|
+
"tel",
|
|
77
|
+
"url",
|
|
78
|
+
"number",
|
|
79
|
+
"date",
|
|
80
|
+
"time"
|
|
81
|
+
]),
|
|
82
|
+
required: z.boolean().optional(),
|
|
83
|
+
placeholder: z.string().optional(),
|
|
84
|
+
helpText: z.string().optional(),
|
|
85
|
+
options: z.array(optionSchema).readonly().optional(),
|
|
86
|
+
multiple: z.boolean().optional(),
|
|
87
|
+
minLength: z.number().optional(),
|
|
88
|
+
maxLength: z.number().optional(),
|
|
89
|
+
pattern: z.string().optional(),
|
|
90
|
+
min: z.number().optional(),
|
|
91
|
+
max: z.number().optional()
|
|
92
|
+
}));
|
|
93
|
+
const documentFieldSchema = exactSchema()(z.object({
|
|
94
|
+
id: z.string().min(1),
|
|
95
|
+
label: z.string(),
|
|
96
|
+
type: z.literal("document_upload"),
|
|
97
|
+
required: z.boolean().optional(),
|
|
98
|
+
placeholder: z.string().optional(),
|
|
99
|
+
helpText: z.string().optional(),
|
|
100
|
+
allowedFileTypes: z.array(z.enum([
|
|
101
|
+
"pdf",
|
|
102
|
+
"image",
|
|
103
|
+
"docx"
|
|
104
|
+
])).readonly(),
|
|
105
|
+
maxBytes: z.number()
|
|
106
|
+
}));
|
|
107
|
+
const bookingQuestionsFieldSchema = exactSchema()(z.union([scalarFieldSchema, documentFieldSchema]));
|
|
108
|
+
const bookingQuestionsSectionSchema = exactSchema()(z.object({
|
|
109
|
+
id: z.string(),
|
|
110
|
+
title: z.string(),
|
|
111
|
+
description: z.string().optional(),
|
|
112
|
+
items: z.array(bookingQuestionsFieldSchema).readonly()
|
|
113
|
+
}));
|
|
114
|
+
const FIELD_TYPES = [
|
|
115
|
+
"text",
|
|
116
|
+
"email",
|
|
117
|
+
"textarea",
|
|
118
|
+
"select",
|
|
119
|
+
"radio",
|
|
120
|
+
"checkbox",
|
|
121
|
+
"tel",
|
|
122
|
+
"url",
|
|
123
|
+
"number",
|
|
124
|
+
"date",
|
|
125
|
+
"time",
|
|
126
|
+
"document_upload"
|
|
127
|
+
];
|
|
128
|
+
/**
|
|
129
|
+
* The portal's questions, read at their extensible point: a type this build
|
|
130
|
+
* doesn't know decodes to `unsupported` with its id, label and required flag;
|
|
131
|
+
* a known type that's malformed is still an error.
|
|
132
|
+
*/
|
|
133
|
+
const unsupportedFieldSchema = z.object({
|
|
134
|
+
id: z.string().min(1),
|
|
135
|
+
label: z.string(),
|
|
136
|
+
type: z.string().refine((type) => !FIELD_TYPES.includes(type), "a known question type failed to decode"),
|
|
137
|
+
required: z.boolean().optional()
|
|
138
|
+
}).transform((field) => ({
|
|
139
|
+
id: field.id,
|
|
140
|
+
label: field.label,
|
|
141
|
+
type: "unsupported",
|
|
142
|
+
required: field.required ?? false
|
|
143
|
+
}));
|
|
144
|
+
const bookingQuestionsFieldViewSchema = evolvingSchema()(z.union([
|
|
145
|
+
scalarFieldSchema,
|
|
146
|
+
documentFieldSchema,
|
|
147
|
+
unsupportedFieldSchema
|
|
148
|
+
]));
|
|
149
|
+
const bookingQuestionsSectionViewSchema = evolvingSchema()(z.object({
|
|
150
|
+
id: z.string(),
|
|
151
|
+
title: z.string(),
|
|
152
|
+
description: z.string().optional(),
|
|
153
|
+
items: z.array(bookingQuestionsFieldViewSchema).readonly()
|
|
154
|
+
}));
|
|
155
|
+
const bookingQuestionsDocumentAnswerValueSchema = exactSchema()(z.object({
|
|
156
|
+
kind: z.literal("document_upload"),
|
|
157
|
+
fileName: z.string(),
|
|
158
|
+
mimeType: z.string(),
|
|
159
|
+
bytes: z.number(),
|
|
160
|
+
uploadId: z.string().optional()
|
|
161
|
+
}));
|
|
162
|
+
/** One answer as a booking flow holds it; also what drafts kept across a sign-in or payment return parse. */
|
|
163
|
+
const bookingQuestionsAnswerValueSchema = exactSchema()(z.union([
|
|
164
|
+
z.string(),
|
|
165
|
+
z.number(),
|
|
166
|
+
z.boolean(),
|
|
167
|
+
z.null(),
|
|
168
|
+
z.array(z.string()),
|
|
169
|
+
bookingQuestionsDocumentAnswerValueSchema
|
|
170
|
+
]));
|
|
171
|
+
const bookingQuestionsAnswersSchema = z.record(z.string(), bookingQuestionsAnswerValueSchema);
|
|
172
|
+
const taskStatusSchema = z.enum([
|
|
173
|
+
"complete",
|
|
174
|
+
"incomplete",
|
|
175
|
+
"overdue"
|
|
176
|
+
]);
|
|
177
|
+
const beforeYouComeTaskSummarySchema = exactSchema()(z.object({
|
|
178
|
+
status: taskStatusSchema,
|
|
179
|
+
dueAt: z.string(),
|
|
180
|
+
completedAt: z.string().nullable(),
|
|
181
|
+
prefillAvailable: z.boolean()
|
|
182
|
+
}));
|
|
183
|
+
const portalBeforeYouComeTaskSchema = exactSchema()(z.union([beforeYouComeTaskSummarySchema, z.object({ kind: z.literal("unavailable") })]));
|
|
184
|
+
const capturedAnswerSchema = exactSchema()(z.union([z.object({
|
|
185
|
+
fieldId: z.string(),
|
|
186
|
+
label: z.string(),
|
|
187
|
+
kind: z.literal("scalar"),
|
|
188
|
+
valueSummary: z.string()
|
|
189
|
+
}), z.object({
|
|
190
|
+
fieldId: z.string(),
|
|
191
|
+
label: z.string(),
|
|
192
|
+
kind: z.literal("document"),
|
|
193
|
+
fileName: z.string(),
|
|
194
|
+
bytes: z.number()
|
|
195
|
+
})]));
|
|
196
|
+
const bookingQuestionsAnsweringSchema = evolvingSchema()(z.union([
|
|
197
|
+
z.object({
|
|
198
|
+
kind: z.literal("open"),
|
|
199
|
+
late: z.boolean()
|
|
200
|
+
}),
|
|
201
|
+
z.object({
|
|
202
|
+
kind: z.literal("sent"),
|
|
203
|
+
changeNote: z.string()
|
|
204
|
+
}),
|
|
205
|
+
unknownKind(["open", "sent"]).transform(() => ({ kind: "unsupported" }))
|
|
206
|
+
]));
|
|
207
|
+
evolvingSchema()(z.object({
|
|
208
|
+
completedAnswers: z.array(capturedAnswerSchema).readonly().optional(),
|
|
209
|
+
timeZone: z.string(),
|
|
210
|
+
isOnline: z.boolean().nullable(),
|
|
211
|
+
requirementId: z.string(),
|
|
212
|
+
title: z.string(),
|
|
213
|
+
introTitle: z.string().nullable(),
|
|
214
|
+
introBody: z.string().nullable(),
|
|
215
|
+
shape: z.enum(["short-form", "detailed-questionnaire"]),
|
|
216
|
+
status: taskStatusSchema,
|
|
217
|
+
dueAt: z.string(),
|
|
218
|
+
completedAt: z.string().nullable(),
|
|
219
|
+
prefillAvailable: z.boolean(),
|
|
220
|
+
answering: bookingQuestionsAnsweringSchema,
|
|
221
|
+
answers: bookingQuestionsAnswersSchema,
|
|
222
|
+
sections: z.array(bookingQuestionsSectionViewSchema).readonly()
|
|
223
|
+
}));
|
|
224
|
+
//#endregion
|
|
225
|
+
export { exactSchema as a, parseAppointmentServiceId as c, parseAttendeeId as d, parseEventOfferingId as f, unsafeAsEventCategoryId as h, evolvingSchema as i, parseClientArrangementId as l, parseEventSeriesRegistrationId as m, bookingQuestionsSectionSchema as n, unknownKind as o, parseEventSeriesId as p, portalBeforeYouComeTaskSchema as r, parseAppointmentId as s, bookingQuestionsAnswersSchema as t, parseSiteTermsVersionId as u };
|
package/dist/server/prebuild.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prebuildCache } from "./prebuild-
|
|
1
|
+
import { t as prebuildCache } from "./prebuild-C8Amvzce.mjs";
|
|
2
2
|
export { prebuildCache };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as rethrowFrameworkSignal, c as SUPPORTED_LOADER_ENDPOINTS$1, n as materializeLoaderMedia, s as parsePublicProductCategorySelector } from "./responseMedia-
|
|
1
|
+
import { ot as defaultThemeTokens, p as defaultTransforms, r as planArrangementContent, tt as selectBlockContent, u as coerceLinkedContentEntriesPayload } from "./pageRenderPlan-BHrmogsW.mjs";
|
|
2
|
+
import { As as calendarWindowQuerySchema, Dr as resolveDateRuntimeContext, Er as readRuntimeNow, Ss as projectRecurringSchedule, Xi as runTransforms, lc as toUtcIsoDateTimeString, t as getBlockDefinition } from "./registry-Cc88-23f.mjs";
|
|
3
|
+
import { a as rethrowFrameworkSignal, c as SUPPORTED_LOADER_ENDPOINTS$1, n as materializeLoaderMedia, s as parsePublicProductCategorySelector } from "./responseMedia-IfH65QAH.mjs";
|
|
4
4
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
5
|
+
import { a as bindingSchema, t as isObjectRecord } from "./typeGuards-CTW_9AXq.mjs";
|
|
5
6
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
6
7
|
//#region ../blocks/src/system/data/utils.ts
|
|
7
8
|
/**
|