@riverbankcms/sdk 0.179.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-Chr9pNVW.d.ts} +288 -121
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-Brl6_I2j.d.ts} +5 -4
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-CA0izds5.d.ts} +4561 -1390
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-BvGyvblj.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 +84 -53
- 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-YcsIjvn1.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +8 -7
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-CgS3xLk8.d.ts} +7 -2
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-R65DKjPn.d.ts} +9 -8
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-uWfR2kaG.mjs} +177 -70
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-CyNIKw6k.mjs} +23 -82
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +18 -10
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CwzrjcRw.mjs} +8 -7
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-DZ0qMFF4.mjs} +8 -211
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +1657 -403
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-C7mygH_f.mjs} +536 -287
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +27 -24
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-cBWM392H.mjs} +442 -86
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +51 -15
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +306 -196
- package/dist/client/constants-CoOkvw__.mjs +100 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-CRhn9qzS.mjs} +922 -388
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-D7YYKySQ.mjs} +2084 -1640
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-DAkRkwb-.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-BvEDkjiD.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-RuM86VAv.mjs} +37 -44
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → noop-Dl4mZ-rr.mjs} +257 -49
- package/dist/client/portal/client.mjs +11779 -6745
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-CDNNd8wC.mjs} +318 -235
- 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-NrRqDeOg.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-CCtanNlD.mjs → src-ZSqRK3dD.mjs} +345 -92
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BQJrSK0K.mjs} +205 -80
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-Dm3lKJKR.mjs} +3 -24
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-LJVHVqsy.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-BliJOzEX.mjs} +2512 -675
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-BhL0uADo.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-BS32G4V9.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-RL0WfZXD.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +39 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-CQyS8pcq.mjs} +10318 -3719
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-BlmbvbLN.mjs} +37 -25
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +292 -170
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-R3PcMmax.mjs} +114 -37
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQWsnGT6.mjs} +133 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-CGJ2ztYp.mjs → client-CDndhbYO.mjs} +1412 -1307
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-BKstMBmX.mjs} +7 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-TFjgNG61.mjs} +74 -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-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +170 -104
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-B7iULvKe.mjs} +15 -12
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BytMroxn.mjs} +9 -5
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-Dcs_XTIO.mjs} +836 -624
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-DwpRjqw4.mjs} +5 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-DM9dHfDC.mjs} +582 -526
- 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-BN8tweTx.mjs → resolveBlockData-CinHGf8l.mjs} +39 -31
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-IfH65QAH.mjs} +57 -2
- package/dist/server/routing.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-B-FezJmH.mjs → servicePageContent-BBBhOtdE.mjs} +31 -26
- package/dist/server/theme-bridge.mjs +3 -2
- 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-3jOzYdPL.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-8t0o6_jd.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +3446 -3796
- package/package.json +2 -1
- package/dist/_dts/index-DVSipdrT.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-CTEN7gxW.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
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as mediaIdentifierSchema,
|
|
2
|
+
import { a as mediaIdentifierSchema, f as parseUuidBrand, m as ok$1, n as renderableMediaAssetSchema, p as err$1 } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
3
|
import { c as addMonths } from "./src-uwCpbHXG.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../core/src/branded/events.ts
|
|
6
|
+
const unsafeAsEventOfferingId = (id) => id;
|
|
7
|
+
const unsafeAsEventSeriesId = (id) => id;
|
|
8
|
+
const unsafeAsEventSeriesRegistrationId = (id) => id;
|
|
9
|
+
const unsafeAsEventCategoryId = (id) => id;
|
|
10
|
+
const unsafeAsAttendeeId = (id) => id;
|
|
11
|
+
const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
|
|
12
|
+
const parseAttendeeId = (value) => parseUuidBrand(value, unsafeAsAttendeeId);
|
|
13
|
+
const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
|
|
14
|
+
const parseEventSeriesRegistrationId = (value) => parseUuidBrand(value, unsafeAsEventSeriesRegistrationId);
|
|
15
|
+
//#endregion
|
|
5
16
|
//#region ../core/src/branded/customers.ts
|
|
6
17
|
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
7
18
|
const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
|
|
8
19
|
//#endregion
|
|
20
|
+
//#region ../core/src/branded/appointments.ts
|
|
21
|
+
const unsafeAsAppointmentId = (id) => id;
|
|
22
|
+
const unsafeAsAppointmentServiceId = (id) => id;
|
|
23
|
+
const unsafeAsAppointmentResourceId = (id) => id;
|
|
24
|
+
const parseAppointmentId = (value) => parseUuidBrand(value, unsafeAsAppointmentId);
|
|
25
|
+
const parseAppointmentServiceId = (value) => parseUuidBrand(value, unsafeAsAppointmentServiceId);
|
|
26
|
+
const unsafeAsClientArrangementId = (id) => id;
|
|
27
|
+
const parseClientArrangementId = (value) => parseUuidBrand(value, unsafeAsClientArrangementId);
|
|
28
|
+
//#endregion
|
|
9
29
|
//#region ../core/src/currency-format.ts
|
|
10
30
|
const CURRENCY_LOCALE_BY_CODE = {
|
|
11
31
|
USD: "en-US",
|
|
@@ -878,6 +898,18 @@ const mapDrawingSchema = z.strictObject({
|
|
|
878
898
|
//#endregion
|
|
879
899
|
//#region ../core/src/string.ts
|
|
880
900
|
/**
|
|
901
|
+
* Return true for string values that contain at least one character.
|
|
902
|
+
*/
|
|
903
|
+
function isNonEmptyString(value) {
|
|
904
|
+
return typeof value === "string" && value.length > 0;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Narrow optional string values to non-empty strings.
|
|
908
|
+
*/
|
|
909
|
+
function hasText(value) {
|
|
910
|
+
return isNonEmptyString(value);
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
881
913
|
* Trim a user-entered string and collapse blank values to null.
|
|
882
914
|
*/
|
|
883
915
|
function trimmedStringOrNull(value) {
|
|
@@ -1350,6 +1382,283 @@ function unsafeAsPositiveCheckoutQuantity(quantity) {
|
|
|
1350
1382
|
return quantity;
|
|
1351
1383
|
}
|
|
1352
1384
|
//#endregion
|
|
1385
|
+
//#region ../commerce/src/purchase/roomVocabulary.ts
|
|
1386
|
+
const ROOM_FOR_WHO = [
|
|
1387
|
+
"mixed",
|
|
1388
|
+
"women",
|
|
1389
|
+
"men",
|
|
1390
|
+
"one_per_room"
|
|
1391
|
+
];
|
|
1392
|
+
const SHARED_ROOM_ARRANGEMENTS = [
|
|
1393
|
+
"together",
|
|
1394
|
+
"separate",
|
|
1395
|
+
"organiser"
|
|
1396
|
+
];
|
|
1397
|
+
/** The kind of shared place a guest chose. Nobody is asked their gender: this describes the room. */
|
|
1398
|
+
const ROOM_PLACES = [
|
|
1399
|
+
"women",
|
|
1400
|
+
"men",
|
|
1401
|
+
"mixed"
|
|
1402
|
+
];
|
|
1403
|
+
const PLACES_FOR = {
|
|
1404
|
+
mixed: ["mixed"],
|
|
1405
|
+
women: ["women"],
|
|
1406
|
+
men: ["men"],
|
|
1407
|
+
one_per_room: ["women", "men"]
|
|
1408
|
+
};
|
|
1409
|
+
/** Which places a room for these people can hold. A one-per-room room becomes one of them with its first guest. */
|
|
1410
|
+
function placesFor(forWho) {
|
|
1411
|
+
return PLACES_FOR[forWho];
|
|
1412
|
+
}
|
|
1413
|
+
const MAX_ROOM_BOOKING_PEOPLE = 100;
|
|
1414
|
+
const roomPlaceSchema = z.enum(ROOM_PLACES);
|
|
1415
|
+
const sharedRoomArrangementSchema = z.enum(SHARED_ROOM_ARRANGEMENTS);
|
|
1416
|
+
const roomSetupSchema = z.discriminatedUnion("way", [z.object({ way: z.literal("private") }).strict(), z.object({
|
|
1417
|
+
way: z.enum(["shared", "either"]),
|
|
1418
|
+
forWho: z.enum(ROOM_FOR_WHO)
|
|
1419
|
+
}).strict()]);
|
|
1420
|
+
const roomOccupancySchema = z.discriminatedUnion("bookedAs", [
|
|
1421
|
+
z.object({ bookedAs: z.literal("empty") }).strict(),
|
|
1422
|
+
z.object({ bookedAs: z.literal("private") }).strict(),
|
|
1423
|
+
z.object({
|
|
1424
|
+
bookedAs: z.literal("shared"),
|
|
1425
|
+
place: roomPlaceSchema
|
|
1426
|
+
}).strict()
|
|
1427
|
+
]);
|
|
1428
|
+
const roomPeopleSchema = z.number().int().min(1).max(MAX_ROOM_BOOKING_PEOPLE);
|
|
1429
|
+
/** What someone chose, from a guest, staff or the draft kept through sign-in and payment. */
|
|
1430
|
+
const roomChoicesSchema = z.array(z.discriminatedUnion("way", [
|
|
1431
|
+
z.object({
|
|
1432
|
+
way: z.literal("own"),
|
|
1433
|
+
kindId: z.uuid(),
|
|
1434
|
+
people: roomPeopleSchema
|
|
1435
|
+
}),
|
|
1436
|
+
z.object({
|
|
1437
|
+
way: z.literal("whole_room"),
|
|
1438
|
+
kindId: z.uuid(),
|
|
1439
|
+
people: roomPeopleSchema
|
|
1440
|
+
}),
|
|
1441
|
+
z.object({
|
|
1442
|
+
way: z.literal("sharing"),
|
|
1443
|
+
kindId: z.uuid(),
|
|
1444
|
+
people: roomPeopleSchema,
|
|
1445
|
+
place: roomPlaceSchema
|
|
1446
|
+
})
|
|
1447
|
+
])).max(MAX_ROOM_BOOKING_PEOPLE);
|
|
1448
|
+
/** What they accepted when they left the rooms step. */
|
|
1449
|
+
const reviewedRoomsSchema = z.array(z.object({
|
|
1450
|
+
kindId: z.uuid(),
|
|
1451
|
+
place: roomPlaceSchema,
|
|
1452
|
+
together: z.boolean()
|
|
1453
|
+
})).max(MAX_ROOM_BOOKING_PEOPLE);
|
|
1454
|
+
z.object({
|
|
1455
|
+
choices: roomChoicesSchema,
|
|
1456
|
+
reviewed: reviewedRoomsSchema
|
|
1457
|
+
});
|
|
1458
|
+
//#endregion
|
|
1459
|
+
//#region ../site-contracts/src/siteData/wireSchema.ts
|
|
1460
|
+
/**
|
|
1461
|
+
* Admits a wire decoder only when it matches its contract type `T` in this
|
|
1462
|
+
* build: what it decodes is a `T`, and it accepts the input side of every
|
|
1463
|
+
* `T`. A schema stricter than its type would refuse real responses (a member
|
|
1464
|
+
* the type has but the schema forgot), and a looser one would let unchecked
|
|
1465
|
+
* shapes through, so both directions are checked where the type is declared.
|
|
1466
|
+
*
|
|
1467
|
+
* It is a compile-time check against today's type and nothing more. It can't
|
|
1468
|
+
* know what a newer server will send a client built from an older contract
|
|
1469
|
+
* (SDK sites run pinned builds), so a value the type later gains is still
|
|
1470
|
+
* refused by an old decoder. Where that has to keep working, the contract
|
|
1471
|
+
* names the point as extensible and decodes it with {@link evolvingSchema}.
|
|
1472
|
+
*
|
|
1473
|
+
* Mirror the type's arrays: `z.array(x).readonly()` for a `readonly` array,
|
|
1474
|
+
* plain `z.array(x)` for a mutable one.
|
|
1475
|
+
*/
|
|
1476
|
+
function exactSchema() {
|
|
1477
|
+
return evolvingSchema();
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* A decoder at a named extensible point of a contract: it reads every `TWire`
|
|
1481
|
+
* the server sends today, and decodes anything a newer server might add there
|
|
1482
|
+
* to the closed fallback inside `TDecoded` (an `unsupported` state the client
|
|
1483
|
+
* renders safely: shown, but with nothing to act on). Known variants stay
|
|
1484
|
+
* strict, so a broken known value is still an error rather than a fallback.
|
|
1485
|
+
*/
|
|
1486
|
+
function evolvingSchema() {
|
|
1487
|
+
return (schema) => schema;
|
|
1488
|
+
}
|
|
1489
|
+
/** Anything at an extensible point whose `kind` this build doesn't know. */
|
|
1490
|
+
function unknownKind(known) {
|
|
1491
|
+
return z.object({ kind: z.string().refine((kind) => !known.includes(kind), "a known kind failed to decode") });
|
|
1492
|
+
}
|
|
1493
|
+
/** The same for a point discriminated by `tag` (a booking reference), whose `tag` this build doesn't know. */
|
|
1494
|
+
function unknownTag(known) {
|
|
1495
|
+
return z.object({ tag: z.string().refine((tag) => !known.includes(tag), "a known tag failed to decode") });
|
|
1496
|
+
}
|
|
1497
|
+
//#endregion
|
|
1498
|
+
//#region ../site-contracts/src/siteData/portalQuestions.ts
|
|
1499
|
+
const optionSchema = exactSchema()(z.object({
|
|
1500
|
+
value: z.string(),
|
|
1501
|
+
label: z.string()
|
|
1502
|
+
}));
|
|
1503
|
+
const scalarFieldSchema = exactSchema()(z.object({
|
|
1504
|
+
id: z.string().min(1),
|
|
1505
|
+
label: z.string(),
|
|
1506
|
+
type: z.enum([
|
|
1507
|
+
"text",
|
|
1508
|
+
"email",
|
|
1509
|
+
"textarea",
|
|
1510
|
+
"select",
|
|
1511
|
+
"radio",
|
|
1512
|
+
"checkbox",
|
|
1513
|
+
"tel",
|
|
1514
|
+
"url",
|
|
1515
|
+
"number",
|
|
1516
|
+
"date",
|
|
1517
|
+
"time"
|
|
1518
|
+
]),
|
|
1519
|
+
required: z.boolean().optional(),
|
|
1520
|
+
placeholder: z.string().optional(),
|
|
1521
|
+
helpText: z.string().optional(),
|
|
1522
|
+
options: z.array(optionSchema).readonly().optional(),
|
|
1523
|
+
multiple: z.boolean().optional(),
|
|
1524
|
+
minLength: z.number().optional(),
|
|
1525
|
+
maxLength: z.number().optional(),
|
|
1526
|
+
pattern: z.string().optional(),
|
|
1527
|
+
min: z.number().optional(),
|
|
1528
|
+
max: z.number().optional()
|
|
1529
|
+
}));
|
|
1530
|
+
const documentFieldSchema = exactSchema()(z.object({
|
|
1531
|
+
id: z.string().min(1),
|
|
1532
|
+
label: z.string(),
|
|
1533
|
+
type: z.literal("document_upload"),
|
|
1534
|
+
required: z.boolean().optional(),
|
|
1535
|
+
placeholder: z.string().optional(),
|
|
1536
|
+
helpText: z.string().optional(),
|
|
1537
|
+
allowedFileTypes: z.array(z.enum([
|
|
1538
|
+
"pdf",
|
|
1539
|
+
"image",
|
|
1540
|
+
"docx"
|
|
1541
|
+
])).readonly(),
|
|
1542
|
+
maxBytes: z.number()
|
|
1543
|
+
}));
|
|
1544
|
+
const bookingQuestionsFieldSchema = exactSchema()(z.union([scalarFieldSchema, documentFieldSchema]));
|
|
1545
|
+
const bookingQuestionsSectionSchema = exactSchema()(z.object({
|
|
1546
|
+
id: z.string(),
|
|
1547
|
+
title: z.string(),
|
|
1548
|
+
description: z.string().optional(),
|
|
1549
|
+
items: z.array(bookingQuestionsFieldSchema).readonly()
|
|
1550
|
+
}));
|
|
1551
|
+
const FIELD_TYPES = [
|
|
1552
|
+
"text",
|
|
1553
|
+
"email",
|
|
1554
|
+
"textarea",
|
|
1555
|
+
"select",
|
|
1556
|
+
"radio",
|
|
1557
|
+
"checkbox",
|
|
1558
|
+
"tel",
|
|
1559
|
+
"url",
|
|
1560
|
+
"number",
|
|
1561
|
+
"date",
|
|
1562
|
+
"time",
|
|
1563
|
+
"document_upload"
|
|
1564
|
+
];
|
|
1565
|
+
/**
|
|
1566
|
+
* The portal's questions, read at their extensible point: a type this build
|
|
1567
|
+
* doesn't know decodes to `unsupported` with its id, label and required flag;
|
|
1568
|
+
* a known type that's malformed is still an error.
|
|
1569
|
+
*/
|
|
1570
|
+
const unsupportedFieldSchema = z.object({
|
|
1571
|
+
id: z.string().min(1),
|
|
1572
|
+
label: z.string(),
|
|
1573
|
+
type: z.string().refine((type) => !FIELD_TYPES.includes(type), "a known question type failed to decode"),
|
|
1574
|
+
required: z.boolean().optional()
|
|
1575
|
+
}).transform((field) => ({
|
|
1576
|
+
id: field.id,
|
|
1577
|
+
label: field.label,
|
|
1578
|
+
type: "unsupported",
|
|
1579
|
+
required: field.required ?? false
|
|
1580
|
+
}));
|
|
1581
|
+
const bookingQuestionsFieldViewSchema = evolvingSchema()(z.union([
|
|
1582
|
+
scalarFieldSchema,
|
|
1583
|
+
documentFieldSchema,
|
|
1584
|
+
unsupportedFieldSchema
|
|
1585
|
+
]));
|
|
1586
|
+
const bookingQuestionsSectionViewSchema = evolvingSchema()(z.object({
|
|
1587
|
+
id: z.string(),
|
|
1588
|
+
title: z.string(),
|
|
1589
|
+
description: z.string().optional(),
|
|
1590
|
+
items: z.array(bookingQuestionsFieldViewSchema).readonly()
|
|
1591
|
+
}));
|
|
1592
|
+
const bookingQuestionsDocumentAnswerValueSchema = exactSchema()(z.object({
|
|
1593
|
+
kind: z.literal("document_upload"),
|
|
1594
|
+
fileName: z.string(),
|
|
1595
|
+
mimeType: z.string(),
|
|
1596
|
+
bytes: z.number(),
|
|
1597
|
+
uploadId: z.string().optional()
|
|
1598
|
+
}));
|
|
1599
|
+
/** One answer as a booking flow holds it; also what drafts kept across a sign-in or payment return parse. */
|
|
1600
|
+
const bookingQuestionsAnswerValueSchema = exactSchema()(z.union([
|
|
1601
|
+
z.string(),
|
|
1602
|
+
z.number(),
|
|
1603
|
+
z.boolean(),
|
|
1604
|
+
z.null(),
|
|
1605
|
+
z.array(z.string()),
|
|
1606
|
+
bookingQuestionsDocumentAnswerValueSchema
|
|
1607
|
+
]));
|
|
1608
|
+
const bookingQuestionsAnswersSchema = z.record(z.string(), bookingQuestionsAnswerValueSchema);
|
|
1609
|
+
const taskStatusSchema = z.enum([
|
|
1610
|
+
"complete",
|
|
1611
|
+
"incomplete",
|
|
1612
|
+
"overdue"
|
|
1613
|
+
]);
|
|
1614
|
+
const beforeYouComeTaskSummarySchema = exactSchema()(z.object({
|
|
1615
|
+
status: taskStatusSchema,
|
|
1616
|
+
dueAt: z.string(),
|
|
1617
|
+
completedAt: z.string().nullable(),
|
|
1618
|
+
prefillAvailable: z.boolean()
|
|
1619
|
+
}));
|
|
1620
|
+
const portalBeforeYouComeTaskSchema = exactSchema()(z.union([beforeYouComeTaskSummarySchema, z.object({ kind: z.literal("unavailable") })]));
|
|
1621
|
+
const capturedAnswerSchema = exactSchema()(z.union([z.object({
|
|
1622
|
+
fieldId: z.string(),
|
|
1623
|
+
label: z.string(),
|
|
1624
|
+
kind: z.literal("scalar"),
|
|
1625
|
+
valueSummary: z.string()
|
|
1626
|
+
}), z.object({
|
|
1627
|
+
fieldId: z.string(),
|
|
1628
|
+
label: z.string(),
|
|
1629
|
+
kind: z.literal("document"),
|
|
1630
|
+
fileName: z.string(),
|
|
1631
|
+
bytes: z.number()
|
|
1632
|
+
})]));
|
|
1633
|
+
const bookingQuestionsAnsweringSchema = evolvingSchema()(z.union([
|
|
1634
|
+
z.object({
|
|
1635
|
+
kind: z.literal("open"),
|
|
1636
|
+
late: z.boolean()
|
|
1637
|
+
}),
|
|
1638
|
+
z.object({
|
|
1639
|
+
kind: z.literal("sent"),
|
|
1640
|
+
changeNote: z.string()
|
|
1641
|
+
}),
|
|
1642
|
+
unknownKind(["open", "sent"]).transform(() => ({ kind: "unsupported" }))
|
|
1643
|
+
]));
|
|
1644
|
+
const bookingQuestionsTaskDetailSchema = evolvingSchema()(z.object({
|
|
1645
|
+
completedAnswers: z.array(capturedAnswerSchema).readonly().optional(),
|
|
1646
|
+
timeZone: z.string(),
|
|
1647
|
+
isOnline: z.boolean().nullable(),
|
|
1648
|
+
requirementId: z.string(),
|
|
1649
|
+
title: z.string(),
|
|
1650
|
+
introTitle: z.string().nullable(),
|
|
1651
|
+
introBody: z.string().nullable(),
|
|
1652
|
+
shape: z.enum(["short-form", "detailed-questionnaire"]),
|
|
1653
|
+
status: taskStatusSchema,
|
|
1654
|
+
dueAt: z.string(),
|
|
1655
|
+
completedAt: z.string().nullable(),
|
|
1656
|
+
prefillAvailable: z.boolean(),
|
|
1657
|
+
answering: bookingQuestionsAnsweringSchema,
|
|
1658
|
+
answers: bookingQuestionsAnswersSchema,
|
|
1659
|
+
sections: z.array(bookingQuestionsSectionViewSchema).readonly()
|
|
1660
|
+
}));
|
|
1661
|
+
//#endregion
|
|
1353
1662
|
//#region ../site-contracts/src/identity/presentationVocabulary.ts
|
|
1354
1663
|
const arrangementModes = [
|
|
1355
1664
|
"list",
|
|
@@ -1779,85 +2088,14 @@ function eventCalendarListGroupingDecision(input) {
|
|
|
1779
2088
|
}
|
|
1780
2089
|
//#endregion
|
|
1781
2090
|
//#region ../blocks/src/system/runtime/api/schemas/bookingQuestions.ts
|
|
1782
|
-
const optionSchema = z.object({
|
|
1783
|
-
value: z.string(),
|
|
1784
|
-
label: z.string()
|
|
1785
|
-
});
|
|
1786
|
-
/** Everything a scalar question may carry besides its identity; all of it is optional. */
|
|
1787
|
-
const scalarFieldDetails = z.object({
|
|
1788
|
-
required: z.boolean(),
|
|
1789
|
-
placeholder: z.string(),
|
|
1790
|
-
helpText: z.string(),
|
|
1791
|
-
options: z.array(optionSchema),
|
|
1792
|
-
multiple: z.boolean(),
|
|
1793
|
-
minLength: z.number(),
|
|
1794
|
-
maxLength: z.number(),
|
|
1795
|
-
pattern: z.string(),
|
|
1796
|
-
min: z.number(),
|
|
1797
|
-
max: z.number()
|
|
1798
|
-
}).partial();
|
|
1799
|
-
const scalarFieldSchema = z.object({
|
|
1800
|
-
id: z.string().min(1),
|
|
1801
|
-
label: z.string(),
|
|
1802
|
-
type: z.enum([
|
|
1803
|
-
"text",
|
|
1804
|
-
"email",
|
|
1805
|
-
"textarea",
|
|
1806
|
-
"select",
|
|
1807
|
-
"radio",
|
|
1808
|
-
"checkbox",
|
|
1809
|
-
"tel",
|
|
1810
|
-
"url",
|
|
1811
|
-
"number",
|
|
1812
|
-
"date",
|
|
1813
|
-
"time"
|
|
1814
|
-
]),
|
|
1815
|
-
...scalarFieldDetails.shape
|
|
1816
|
-
});
|
|
1817
|
-
const documentFieldSchema = z.object({
|
|
1818
|
-
id: z.string().min(1),
|
|
1819
|
-
label: z.string(),
|
|
1820
|
-
type: z.literal("document_upload"),
|
|
1821
|
-
required: z.boolean().optional(),
|
|
1822
|
-
placeholder: z.string().optional(),
|
|
1823
|
-
helpText: z.string().optional(),
|
|
1824
|
-
allowedFileTypes: z.array(z.enum([
|
|
1825
|
-
"pdf",
|
|
1826
|
-
"image",
|
|
1827
|
-
"docx"
|
|
1828
|
-
])),
|
|
1829
|
-
maxBytes: z.number()
|
|
1830
|
-
});
|
|
1831
|
-
const fieldSchema = z.union([scalarFieldSchema, documentFieldSchema]);
|
|
1832
|
-
const sectionSchema = z.object({
|
|
1833
|
-
id: z.string(),
|
|
1834
|
-
title: z.string(),
|
|
1835
|
-
description: z.string().optional(),
|
|
1836
|
-
items: z.array(fieldSchema)
|
|
1837
|
-
});
|
|
1838
|
-
/** One answer as a booking flow holds it; also what drafts kept across a sign-in or payment return parse. */
|
|
1839
|
-
const bookingQuestionsAnswerValueSchema = z.union([
|
|
1840
|
-
z.string(),
|
|
1841
|
-
z.number(),
|
|
1842
|
-
z.boolean(),
|
|
1843
|
-
z.null(),
|
|
1844
|
-
z.array(z.string()),
|
|
1845
|
-
z.object({
|
|
1846
|
-
kind: z.literal("document_upload"),
|
|
1847
|
-
fileName: z.string(),
|
|
1848
|
-
mimeType: z.string(),
|
|
1849
|
-
bytes: z.number(),
|
|
1850
|
-
uploadId: z.string().optional()
|
|
1851
|
-
})
|
|
1852
|
-
]);
|
|
1853
2091
|
const setSchema = z.object({
|
|
1854
2092
|
requirementId: z.string().min(1),
|
|
1855
2093
|
sharingKey: z.string().min(1).optional(),
|
|
1856
2094
|
title: z.string(),
|
|
1857
|
-
sections: z.array(
|
|
2095
|
+
sections: z.array(bookingQuestionsSectionSchema)
|
|
1858
2096
|
});
|
|
1859
|
-
z.array(
|
|
1860
|
-
const bookingQuestionAnswersSchema =
|
|
2097
|
+
z.array(bookingQuestionsSectionSchema);
|
|
2098
|
+
const bookingQuestionAnswersSchema = bookingQuestionsAnswersSchema;
|
|
1861
2099
|
/** The presentation a public catalogue or the authenticated read hands the booking flows. */
|
|
1862
2100
|
const beforeBookingQuestionsPresentationSchema = z.discriminatedUnion("kind", [
|
|
1863
2101
|
z.object({ kind: z.literal("none") }),
|
|
@@ -2092,7 +2330,6 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
2092
2330
|
const eventVenueSchema = z.object({
|
|
2093
2331
|
area: z.string().nullable().optional(),
|
|
2094
2332
|
addressWithBooking: z.boolean().optional(),
|
|
2095
|
-
drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
|
|
2096
2333
|
id: z.string(),
|
|
2097
2334
|
name: z.string(),
|
|
2098
2335
|
address: z.string().nullable(),
|
|
@@ -2273,6 +2510,34 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
2273
2510
|
/**
|
|
2274
2511
|
* Zod schema for the fields shared by both booking scopes.
|
|
2275
2512
|
*/
|
|
2513
|
+
/** An event's rooms as placement reads them. Nothing here says who has booked. */
|
|
2514
|
+
const publicEventRoomsSchema = z.object({
|
|
2515
|
+
seriesId: z.string(),
|
|
2516
|
+
arrangement: sharedRoomArrangementSchema,
|
|
2517
|
+
kinds: z.array(z.object({
|
|
2518
|
+
id: z.string(),
|
|
2519
|
+
name: z.string(),
|
|
2520
|
+
sleeps: z.number().int().positive(),
|
|
2521
|
+
description: z.string(),
|
|
2522
|
+
photos: z.array(z.object({
|
|
2523
|
+
src: z.string(),
|
|
2524
|
+
alt: z.string()
|
|
2525
|
+
})),
|
|
2526
|
+
prices: z.array(z.object({
|
|
2527
|
+
pricingOptionId: z.string(),
|
|
2528
|
+
peopleInRoom: z.number().int().positive().nullable(),
|
|
2529
|
+
priceName: z.string()
|
|
2530
|
+
}))
|
|
2531
|
+
})),
|
|
2532
|
+
rooms: z.array(z.object({
|
|
2533
|
+
id: z.string(),
|
|
2534
|
+
kindId: z.string(),
|
|
2535
|
+
setup: roomSetupSchema,
|
|
2536
|
+
occupancy: roomOccupancySchema,
|
|
2537
|
+
freePlaces: z.number().int().nonnegative()
|
|
2538
|
+
})),
|
|
2539
|
+
linkedOptionIds: z.array(z.string())
|
|
2540
|
+
});
|
|
2276
2541
|
const publicEventBaseSchema = z.object({
|
|
2277
2542
|
eventPreset: eventPresetSchema.optional(),
|
|
2278
2543
|
eventDestinationMode: eventDestinationModeSchema.optional(),
|
|
@@ -2360,7 +2625,9 @@ const publicEventBaseSchema = z.object({
|
|
|
2360
2625
|
* Wire admission reads an older server, which never sends it, as off.
|
|
2361
2626
|
*/
|
|
2362
2627
|
allowsMultipleBooking: z.boolean().default(false),
|
|
2363
|
-
combinationPrices: z.array(combinationOfferSchema).default([])
|
|
2628
|
+
combinationPrices: z.array(combinationOfferSchema).default([]),
|
|
2629
|
+
/** Only an event with rooms has this, and the page can't book it without it. */
|
|
2630
|
+
rooms: publicEventRoomsSchema.optional()
|
|
2364
2631
|
});
|
|
2365
2632
|
/**
|
|
2366
2633
|
* Zod schema for public event data.
|
|
@@ -2472,16 +2739,6 @@ function planCalendarMonthRanges(months) {
|
|
|
2472
2739
|
return ranges;
|
|
2473
2740
|
}
|
|
2474
2741
|
//#endregion
|
|
2475
|
-
//#region ../logger/src/noop.ts
|
|
2476
|
-
const noop = () => {};
|
|
2477
|
-
const logger = {
|
|
2478
|
-
debug: noop,
|
|
2479
|
-
info: noop,
|
|
2480
|
-
warn: noop,
|
|
2481
|
-
error: noop,
|
|
2482
|
-
withFields: (_) => logger
|
|
2483
|
-
};
|
|
2484
|
-
//#endregion
|
|
2485
2742
|
//#region ../blocks/src/system/blocks/shared/siteTerms.ts
|
|
2486
2743
|
const versionId = z.string().uuid().transform((value, ctx) => {
|
|
2487
2744
|
const parsed = parseSiteTermsVersionId(value);
|
|
@@ -2502,10 +2759,6 @@ const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.li
|
|
|
2502
2759
|
businessName: z.string(),
|
|
2503
2760
|
href: z.string().min(1).nullable()
|
|
2504
2761
|
})]);
|
|
2505
|
-
const verifiedSiteTermsAcceptanceSchema = z.object({
|
|
2506
|
-
versionId,
|
|
2507
|
-
alreadyAgreed: z.boolean()
|
|
2508
|
-
});
|
|
2509
2762
|
//#endregion
|
|
2510
2763
|
//#region ../frontend-state/src/submission.ts
|
|
2511
2764
|
function clearWorkflowFeedback(state) {
|
|
@@ -2562,4 +2815,4 @@ function assertNever(value, message) {
|
|
|
2562
2815
|
throw new Error(message ?? `Unexpected value: ${String(value)}`);
|
|
2563
2816
|
}
|
|
2564
2817
|
//#endregion
|
|
2565
|
-
export {
|
|
2818
|
+
export { accordionIconColorTokenValues as $, mapDrawingSchema as $t, eventCalendarListGroupingDecision as A, formatCurrencyAmount as An, publicMembershipProductSchema as At, buildRichTextSchema as B, parseEventSeriesId as Bn, publicEventLoaderQuerySchemaShape as Bt, publicEventsArraySchema as C, toUtcIsoDateTimeString as Cn, unsafeAsPositiveCheckoutQuantity as Ct, isBookingRequirementConsentFieldId as D, parsePositiveCents as Dn, eventCalendarDisplayModeValues as Dt, bookingConsentCarrierSchema as E, toBookingTimeZone as En, eventCalendarDefaultViewValues as Et, isEventCalendarDisplayMode as F, unsafeAsAppointmentResourceId as Fn, calendarMonthDate as Ft, imageMediaSchema as G, normalizeLocationAddressText as Gt, isRichTextDoc as H, unsafeAsEventCategoryId as Hn, EVENT_PRESET_VALUES as Ht, isEventCalendarListLayout as I, unsafeAsAppointmentServiceId as In, calendarWindowQuerySchema as It, runtimeMediaSchema as J, publicLocationSchema as Jt, mediaSchema as K, parseLocationValue as Kt, normalizeEventCalendarDisplayMode as L, parseSiteTermsVersionId as Ln, eventScheduleScopeValues as Lt, eventCalendarVariantMeaning as M, parseAppointmentId as Mn, publicProductSchema as Mt, eventListArrangementValues as N, parseAppointmentServiceId as Nn, purchasablePublicMembershipProductSchema as Nt, toBookingRequirementConsentField as O, parsePositiveMoneyInputToCents as On, eventCalendarListLayoutCompatibleDisplayModeValues as Ot, isEventCalendarDefaultView as P, parseClientArrangementId as Pn, purchasablePublicPassProductSchema as Pt, mediaTypeDiscriminants as Q, trimmedStringOrNull as Qt, resolveEventCalendarReadPlan as R, parseAttendeeId as Rn, eventSurfacePresetValues as Rt, publicEventSchema as S, parseUtcIsoDateTimeString as Sn, roomChoicesSchema as St, blockBookingConsentSchema as T, resolveBookingTimeZoneId as Tn, normalizeCurrencyCode as Tt, assetMediaSchema as U, WHOLE_SERIES_EVENT_PRESET_VALUES as Ut, createRichTextDoc as V, parseEventSeriesRegistrationId as Vn, isRecord as Vt, externalMediaSchema as W, locationValueSchema as Wt, PUBLIC_FILE_FIELD_KINDS as X, capitalize as Xt, videoMediaSchema as Y, toLocationCoordinates as Yt, isDisplayMediaKind as Z, hasText as Zt, publicMembershipProductCollectionSchema as _, formatLocalScheduleDate as _n, unknownKind as _t, clearWorkflowFeedback as a, formatDateTimeRange as an, eyebrowTreatmentValues as at, publicEventDestinationSchema as b, parseBookingLocalDate as bn, placesFor as bt, blockSiteTermsSchema as c, formatTime as cn, isArrangementMode as ct, calendarQueryKey as d, inferSiteDateLocale as dn, bookingQuestionsAnswerValueSchema as dt, buildBookingUtcDateWindow as en, accordionIconMotionValues as et, calendarWindowBounds as f, resolveBookingDisplayContext as fn, bookingQuestionsDocumentAnswerValueSchema as ft, resolveCalendarReadProfile as g, compareLocalScheduleDates as gn, exactSchema as gt, planCalendarMonthRanges as h, addLocalScheduleDays as hn, evolvingSchema as ht, okWith as i, formatDateTime as in, eventListTreatmentValues as it, eventCalendarListLayoutOptions as j, formatGiftCardAmountLabel as jn, publicPassProductSchema as jt, beforeBookingQuestionsPresentationSchema as k, toNonNegativeCents as kn, eventCalendarListLayoutValues as kt, calendarMonthKey as l, formatTimeRange as ln, tileTreatmentValues as lt, calendarWindowPageSchema as m, toScheduledBookingDateTime as mn, portalBeforeYouComeTaskSchema as mt, err as n, formatDate as nn, arrangementModes as nt, reportWorkflowError as o, formatSiteInstantDate as on, headingDecorationColorTokenValues as ot, calendarWindowMonths as p, formatBookingCompactEnglishTime as pn, bookingQuestionsTaskDetailSchema as pt, persistableMediaSchema as q, projectPublicLocation as qt, ok as r, formatDateRange as rn, decorativeTransitionIntentValues as rt, reportWorkflowSuccess as s, formatSiteInstantTime as sn, headingDecorationOverrideValues as st, assertNever as t, validateBookingPaymentOptionKinds as tn, accordionIconSetValues as tt, calendarPageResponseError as u, formatTimeZoneCityLabel as un, visibleHeadingDecorationFamilyValues as ut, publicPassProductCollectionSchema as v, getBookingLocalDateKey as vn, unknownTag as vt, blockBookingPaymentTermsSchema as w, resolveBookingBusinessTimeZone as wn, allocateReductionCents as wt, publicEventPricingSchema as x, parseLocalScheduleTime as xn, reviewedRoomsSchema as xt, eventVenueDrawingSchema as y, getLocalScheduleDate as yn, ROOM_PLACES as yt, RichTextDocSchema as z, parseEventOfferingId as zn, eventSurfaceScopeValues as zt };
|