@riverbankcms/sdk 0.165.0 → 0.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-Bs3WxFgr.d.ts} +20 -258
- package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +26 -3
- package/dist/_dts/{client-BkkExozE.d.ts → client-CwsI23pj.d.ts} +13 -1
- package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-CAeP_-cV.d.ts} +3 -3
- package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-DKNEgSOS.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-CQfJhOEA.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-CRRiddNp.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-B4ozSzFP.d.ts → index-ChpjHK0U.d.ts} +9737 -8316
- package/dist/_dts/{index-BdkHhyf8.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index-RXkE3a7M.d.ts → index-DeHDwMfu.d.ts} +4 -3
- package/dist/_dts/{index-DAPTSmBM.d.ts → index-RugyUnqR.d.ts} +2499 -2218
- package/dist/_dts/{index-C_3kdrUb.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-CTqcL7CS.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-C3s9WMPs.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-JPwgRxwh.d.ts} +3 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +9 -6
- 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 +20 -0
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
- package/dist/_dts/sdk/src/data/types.d.ts +54 -0
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +9 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +260 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +7 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BDF73NzM.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-Cl0nP6al.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-mstFvhK4.d.ts → types-D-WElMCy.d.ts} +8 -7
- package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-CCVXX1LN.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +167 -18
- package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-DAeQPV76.mjs} +11 -30
- package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-Bus9R0bj.mjs} +137 -61
- package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-DPBLjGwj.mjs} +75 -13
- package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-CEumpN7i.mjs} +35 -51
- package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +113 -11
- package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-BVO-qx4q.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DUr2YhFR.mjs → Page-D4_H_u9V.mjs} +23892 -32266
- package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Dptantmg.mjs} +3 -3
- package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-BxEGsKUx.mjs} +19 -19
- package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-3CYNWzTS.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-BCXwOnhc.mjs} +19 -14
- package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-Cp9xPBFZ.mjs} +2 -2
- package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-CDc6x9cR.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-CkxPqSwD.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +9550 -17
- package/dist/client/{context-CBV21-9L.mjs → context-Cv3QHjAF.mjs} +11 -6
- package/dist/client/{cta-Bw-al3cs.mjs → cta-P2vJVTEn.mjs} +45 -28
- package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +4 -4
- package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-dLmyuPap.mjs} +2 -2
- package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BEhC2_-Y.mjs} +34 -20
- package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-L-xZOBUS.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BtpK3TZW.mjs → form.client-pZ-9gN33.mjs} +5 -5
- package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-PXlu6XQO.mjs} +3 -3
- package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -4
- package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-CSoP0cGR.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +2 -2
- package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-CQU7tiMg.mjs → noop-ByVtIWf4.mjs} +420 -170
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-CSk8sXCl.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-B3vIBkex.mjs} +4 -5
- package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-B8aQhJpO.mjs} +399 -473
- package/dist/client/rendering/client.mjs +29 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +70 -8
- package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-B2UmrQg_.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DscvMz86.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-BH-BBnA9.mjs} +13 -13
- package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-mdM3UMWG.mjs} +74 -36
- package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-D56hT2u1.mjs} +26000 -16565
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-CrC80EOG.mjs} +13 -140
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C4LOaI_Z.mjs} +8 -5
- package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-6Q0nToVA.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Bcs89BR5.mjs} +9 -9
- package/dist/client/{view-DlkCDfuN.mjs → view-BN-fxyfq.mjs} +287 -232
- package/dist/client/{view-DXOuduIr.mjs → view-Dh2tGoS0.mjs} +4 -4
- package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DtkhwKXK.mjs} +468 -149
- package/dist/preview-next/before-render.mjs +3 -140
- package/dist/preview-next/client/ArrangementLookControls-D4VjPs-r.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-Ckr2zk_L.mjs +37247 -0
- package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-KOZgw_gS.mjs} +45 -17
- package/dist/preview-next/client/PreviewShell-CyO2V4kB.mjs +4757 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-DW3uKvNF.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-CU9VD-7O.mjs +72202 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-DBi-WybM.mjs +112193 -0
- package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-BhkUJst9.mjs} +90 -28
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-BjCb6lOn.mjs +5 -0
- package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus-CKxTaC3j.mjs} +40 -3
- package/dist/preview-next/client/useBlockCustomizeControls-B7MLTjBX.mjs +2633 -0
- package/dist/preview-next/client/useOpenBlockForSetup-BTUc0g9X.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +25 -2
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bv3nkdpV.mjs} +215 -118
- package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-4fMqzltx.mjs} +7 -4
- package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-C72VC_lR.mjs} +894 -2556
- package/dist/server/accessibleSurfaces-B_Y_dA20.mjs +2305 -0
- package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-ConMYJ2U.mjs} +2 -3
- package/dist/server/{publicProducts-Bz8loTRn.mjs → client-Cot-H5fQ.mjs} +2558 -343
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +33 -2
- package/dist/server/data/dataLoaderContext.mjs +2 -0
- package/dist/server/data/resolveBlockData.mjs +2 -0
- package/dist/server/data/types.mjs +1 -0
- package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
- package/dist/server/identity-Bn9OQiT1.mjs +6 -0
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-BkaWYEwt.mjs} +6 -5
- package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-kviUdH8c.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +11 -11
- package/dist/server/opaqueSurface-BTnS09GS.mjs +54 -0
- package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-itXZCXs7.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-CDyn7iLy.mjs +4162 -0
- package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +13 -28
- package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-Q_Vij87H.mjs} +3808 -1928
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +52 -0
- package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-DlprLLsc.mjs +756 -0
- package/dist/server/{registry-Cdvz1OtL.mjs → registry-BPFcpn6k.mjs} +21838 -709
- package/dist/server/rendering/components/pageShared.mjs +2 -0
- package/dist/server/rendering/helpers/loadPage.mjs +2 -0
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering/themeAdmission.mjs +2 -0
- package/dist/server/rendering.mjs +11 -10
- package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
- package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-BHvfGD4y.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-OXFRGn5M.mjs +2682 -0
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-DEizlyi4.mjs +2524 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1031 -1
- package/dist/server/theme.mjs +2 -1
- package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
- package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
- package/dist/server/validation-CDd6m8Ry.mjs +140 -0
- package/dist/server/{validation-DYxhLzqQ.mjs → validation-bl6WcAi_.mjs} +419 -3
- package/dist/server/{version-Beu4q-Gv.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +710 -29
- package/package.json +39 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/purchase-BV5xfaZH.mjs +0 -894
- package/dist/client/schema-BdSglH2X.mjs +0 -16084
- package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
- package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
- package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
- package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
- package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-DfMDbZ41.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
- package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
- package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
- package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
- package/dist/server/site-styles-CntHn2KI.mjs +0 -793
- package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
|
@@ -1,9 +1,173 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { h as ok, m as err, p as parseUuidBrand } from "./surfaceTransportMarker-BXepAVF6.mjs";
|
|
3
|
+
import { Ar as arrangementModes, Ia as runtimeMediaSchema } from "./site-styles-D56hT2u1.mjs";
|
|
2
4
|
import { c as addMonths } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import { Nr as err, Pr as ok, Sr as parseSiteTermsVersionId, cr as runtimeMediaSchema, vt as arrangementModes } from "./schema-BdSglH2X.mjs";
|
|
4
|
-
import { h as validateBookingPaymentOptionKinds, s as confirmationPaymentSchema } from "./purchase-BV5xfaZH.mjs";
|
|
5
|
-
import "./site-styles-CWHmlVT5.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
6
|
+
//#region ../core/src/branded/customers.ts
|
|
7
|
+
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
8
|
+
const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../core/src/currency-format.ts
|
|
11
|
+
const CURRENCY_LOCALE_BY_CODE = {
|
|
12
|
+
USD: "en-US",
|
|
13
|
+
GBP: "en-GB",
|
|
14
|
+
EUR: "de-DE",
|
|
15
|
+
AUD: "en-AU",
|
|
16
|
+
CAD: "en-CA",
|
|
17
|
+
NZD: "en-NZ",
|
|
18
|
+
JPY: "ja-JP",
|
|
19
|
+
CNY: "zh-CN",
|
|
20
|
+
CHF: "de-CH"
|
|
21
|
+
};
|
|
22
|
+
function resolveCurrencyLocale(currencyCode, override) {
|
|
23
|
+
return override ?? CURRENCY_LOCALE_BY_CODE[currencyCode] ?? "en";
|
|
24
|
+
}
|
|
25
|
+
function fractionDigitsFor(decimals, exactFormatter, amount) {
|
|
26
|
+
switch (decimals) {
|
|
27
|
+
case "exact": return {};
|
|
28
|
+
case "auto": return exactFormatter.formatToParts(amount).find((part) => part.type === "fraction")?.value === exactFormatter.formatToParts(0).find((part) => part.type === "fraction")?.value ? {
|
|
29
|
+
minimumFractionDigits: 0,
|
|
30
|
+
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
31
|
+
} : {};
|
|
32
|
+
case "whole": return {
|
|
33
|
+
minimumFractionDigits: 0,
|
|
34
|
+
maximumFractionDigits: 0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The single currency-amount formatter for the product: minor units in,
|
|
40
|
+
* localized string out.
|
|
41
|
+
*
|
|
42
|
+
* The locale is derived from the currency by default, so output is deterministic
|
|
43
|
+
* across server and client (no SSR/hydration mismatch). All other money
|
|
44
|
+
* formatters in the codebase should delegate here rather than constructing their
|
|
45
|
+
* own `Intl.NumberFormat`.
|
|
46
|
+
*/
|
|
47
|
+
function formatCurrencyAmount(amountCents, currency, options) {
|
|
48
|
+
return formatCurrencyMajorUnits(amountCents / 100, currency, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
|
|
52
|
+
* such as a registrar price. Prefer minor units everywhere else.
|
|
53
|
+
*/
|
|
54
|
+
function formatCurrencyMajorUnits(amount, currency, options) {
|
|
55
|
+
const currencyCode = currency.toUpperCase();
|
|
56
|
+
const locale = resolveCurrencyLocale(currencyCode, options?.locale);
|
|
57
|
+
try {
|
|
58
|
+
const exactFormatter = new Intl.NumberFormat(locale, {
|
|
59
|
+
style: "currency",
|
|
60
|
+
currency: currencyCode
|
|
61
|
+
});
|
|
62
|
+
return new Intl.NumberFormat(locale, {
|
|
63
|
+
style: "currency",
|
|
64
|
+
currency: currencyCode,
|
|
65
|
+
...fractionDigitsFor(options?.decimals ?? "exact", exactFormatter, amount)
|
|
66
|
+
}).format(amount);
|
|
67
|
+
} catch {
|
|
68
|
+
return `${amount.toFixed(2)} ${currencyCode}`;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/** Gift-card copy retains pence only when the amount has a fractional part. */
|
|
72
|
+
function formatGiftCardAmountLabel(amountCents, currency = "GBP") {
|
|
73
|
+
return formatCurrencyAmount(amountCents, currency, {
|
|
74
|
+
locale: "en-GB",
|
|
75
|
+
decimals: amountCents % 100 === 0 ? "whole" : "exact"
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region ../core/src/money-input.ts
|
|
80
|
+
function unsafeAsCents(value) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
function unsafeAsNonNegativeCents(value) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
function unsafeAsPositiveCents(value) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Normalizes a derived amount to non-negative whole cents. This intentionally
|
|
91
|
+
* clamps negatives to zero; use parseNonNegativeCents for validation.
|
|
92
|
+
*/
|
|
93
|
+
function toNonNegativeCents(value) {
|
|
94
|
+
return unsafeAsNonNegativeCents(Math.max(0, Math.trunc(value)));
|
|
95
|
+
}
|
|
96
|
+
function parseCents(value) {
|
|
97
|
+
if (!Number.isFinite(value)) return err({ kind: "invalid-number" });
|
|
98
|
+
if (!Number.isInteger(value)) return err({ kind: "not-whole-cents" });
|
|
99
|
+
return ok(unsafeAsCents(value));
|
|
100
|
+
}
|
|
101
|
+
function parseNonNegativeCents(value) {
|
|
102
|
+
const parsed = parseCents(value);
|
|
103
|
+
if (!parsed.ok) return parsed;
|
|
104
|
+
if (parsed.value < 0) return err({ kind: "negative" });
|
|
105
|
+
return ok(unsafeAsNonNegativeCents(parsed.value));
|
|
106
|
+
}
|
|
107
|
+
function parsePositiveCents(value) {
|
|
108
|
+
const parsed = parseNonNegativeCents(value);
|
|
109
|
+
if (!parsed.ok) return parsed;
|
|
110
|
+
if (parsed.value === 0) return err({ kind: "zero-not-allowed" });
|
|
111
|
+
return ok(unsafeAsPositiveCents(parsed.value));
|
|
112
|
+
}
|
|
113
|
+
function normalizeMoneyInput(value, options) {
|
|
114
|
+
return (options.stripFormatting === true ? value.replace(/[^0-9.-]/g, "") : value).trim();
|
|
115
|
+
}
|
|
116
|
+
function parseFiniteMoneyAmount(value, options) {
|
|
117
|
+
const normalized = normalizeMoneyInput(value, options);
|
|
118
|
+
if (normalized.length === 0) return err({ kind: "empty" });
|
|
119
|
+
const amount = Number(normalized);
|
|
120
|
+
if (!Number.isFinite(amount)) return err({ kind: "invalid-number" });
|
|
121
|
+
return ok(amount);
|
|
122
|
+
}
|
|
123
|
+
function roundMoneyAmountToCents(amount) {
|
|
124
|
+
return Math.round(amount * 100);
|
|
125
|
+
}
|
|
126
|
+
function parsePositiveMoneyInputToCents(value, options = {}) {
|
|
127
|
+
const parsed = parseFiniteMoneyAmount(value, options);
|
|
128
|
+
if (!parsed.ok) return parsed;
|
|
129
|
+
if (parsed.value < 0) return err({ kind: "negative" });
|
|
130
|
+
const amountCents = roundMoneyAmountToCents(parsed.value);
|
|
131
|
+
if (amountCents <= 0) return err({ kind: "zero-not-allowed" });
|
|
132
|
+
return ok(unsafeAsPositiveCents(amountCents));
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region ../core/src/booking-payment-options.ts
|
|
136
|
+
/**
|
|
137
|
+
* One way a customer may pay for a booking. This is the single definition of
|
|
138
|
+
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
139
|
+
* schema's output in both directions.
|
|
140
|
+
*/
|
|
141
|
+
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
142
|
+
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
143
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
144
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
145
|
+
if (kinds.length === 0) return err("no_options");
|
|
146
|
+
const uniqueKinds = new Set(kinds);
|
|
147
|
+
if (uniqueKinds.size !== kinds.length) return err("duplicate_kind");
|
|
148
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err("incompatible_collection_options");
|
|
149
|
+
return ok(void 0);
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../core/src/booking-date-time/instant.ts
|
|
153
|
+
function parseUtcIsoDateTimeString(value) {
|
|
154
|
+
const normalized = value.trim();
|
|
155
|
+
const hasUtcSuffix = normalized.endsWith("Z");
|
|
156
|
+
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
157
|
+
if (!hasUtcSuffix && !hasExplicitOffset) return err("missing-timezone-offset");
|
|
158
|
+
const date = new Date(normalized);
|
|
159
|
+
if (Number.isNaN(date.getTime())) return err("invalid-date-time");
|
|
160
|
+
return ok(date.toISOString());
|
|
161
|
+
}
|
|
162
|
+
function toUtcIsoDateTimeString(value) {
|
|
163
|
+
const parsed = parseUtcIsoDateTimeString(value);
|
|
164
|
+
if (!parsed.ok) {
|
|
165
|
+
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
166
|
+
throw new Error(message);
|
|
167
|
+
}
|
|
168
|
+
return parsed.value;
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
7
171
|
//#region ../core/src/date-time-formatter.ts
|
|
8
172
|
/** Shared Intl engine, internal to core's date presentation owners. */
|
|
9
173
|
const FORMATTER_CACHE_LIMIT = 100;
|
|
@@ -39,6 +203,11 @@ function formatIntlRange(formatter, start, end) {
|
|
|
39
203
|
return output;
|
|
40
204
|
}
|
|
41
205
|
//#endregion
|
|
206
|
+
//#region ../core/src/booking-date-time/parts.ts
|
|
207
|
+
function formatToPartsLookup(date, locale, timeZone, format) {
|
|
208
|
+
return new Map(getDateTimeFormatter(locale, timeZone, format).formatToParts(date).map((part) => [part.type, part.value]));
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
42
211
|
//#region ../core/src/booking-time-zone.ts
|
|
43
212
|
const TIME_ZONE_VALIDITY_CACHE_LIMIT = 100;
|
|
44
213
|
const timeZoneValidityCache = /* @__PURE__ */ new Map();
|
|
@@ -66,32 +235,26 @@ function parseBookingTimeZone(timeZone) {
|
|
|
66
235
|
return ok(normalized);
|
|
67
236
|
}
|
|
68
237
|
//#endregion
|
|
69
|
-
//#region ../core/src/booking-date-time.ts
|
|
238
|
+
//#region ../core/src/booking-date-time/time-zone.ts
|
|
70
239
|
const FALLBACK_TIMEZONE = "UTC";
|
|
71
|
-
const START_OF_DAY = {
|
|
72
|
-
hour: 0,
|
|
73
|
-
minute: 0,
|
|
74
|
-
second: 0
|
|
75
|
-
};
|
|
76
|
-
const LOCAL_DATE_PATTERN = /^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$/u;
|
|
77
240
|
function getSafeTimeZone(timeZone) {
|
|
78
241
|
const normalized = typeof timeZone === "string" ? timeZone.trim() : "";
|
|
79
242
|
return normalized.length > 0 && isValidBookingTimeZone(normalized) ? normalized : FALLBACK_TIMEZONE;
|
|
80
243
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
83
|
-
return parsed.ok ? parsed.value : null;
|
|
244
|
+
function toBookingTimeZone(timeZone) {
|
|
245
|
+
return getSafeTimeZone(timeZone);
|
|
84
246
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
case "invalid_starts_at": return `Expected a valid UTC/offset-aware ISO datetime in startsAt, received "${error.value}"`;
|
|
88
|
-
case "invalid_ends_at": return `Expected a valid UTC/offset-aware ISO datetime in endsAt, received "${error.value ?? ""}"`;
|
|
89
|
-
case "invalid_time_zone": return `Expected a valid IANA timezone in timeZone, received "${error.value}"`;
|
|
90
|
-
}
|
|
247
|
+
function resolveBookingTimeZoneId(...candidates) {
|
|
248
|
+
return candidates.map((candidate) => typeof candidate === "string" ? candidate.trim() : "").find((candidate) => candidate.length > 0 && isValidBookingTimeZone(candidate)) ?? FALLBACK_TIMEZONE;
|
|
91
249
|
}
|
|
92
|
-
|
|
93
|
-
|
|
250
|
+
/** Canonical business-zone admission, shared by server and public wire boundaries. */
|
|
251
|
+
const DEFAULT_BOOKING_BUSINESS_TIME_ZONE = "Europe/London";
|
|
252
|
+
function resolveBookingBusinessTimeZone(value) {
|
|
253
|
+
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
94
254
|
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region ../core/src/booking-date-time/local.ts
|
|
257
|
+
const LOCAL_DATE_PATTERN = /^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$/u;
|
|
95
258
|
function getZonedDateTimeParts(date, timeZone) {
|
|
96
259
|
const parts = formatToPartsLookup(date, "en-GB", timeZone, {
|
|
97
260
|
year: "numeric",
|
|
@@ -115,50 +278,152 @@ function getZonedDateTimeParts(date, timeZone) {
|
|
|
115
278
|
function formatDateKey(date) {
|
|
116
279
|
return `${String(date.year).padStart(4, "0")}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
117
280
|
}
|
|
118
|
-
function
|
|
119
|
-
return
|
|
281
|
+
function getBookingLocalDateKey(input) {
|
|
282
|
+
return formatDateKey(getLocalScheduleDate(new Date(input.startsAt), input.timeZone));
|
|
120
283
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
284
|
+
function compareLocalScheduleDates(left, right) {
|
|
285
|
+
return Date.UTC(left.year, left.month - 1, left.day) - Date.UTC(right.year, right.month - 1, right.day);
|
|
286
|
+
}
|
|
287
|
+
function parseBookingLocalDate(value) {
|
|
288
|
+
const match = LOCAL_DATE_PATTERN.exec(value.trim());
|
|
289
|
+
if (match === null || match.groups === void 0) throw new Error(`Invalid booking date format: "${value}" (expected YYYY-MM-DD)`);
|
|
290
|
+
const year = Number(match.groups.year);
|
|
291
|
+
const month = Number(match.groups.month);
|
|
292
|
+
const day = Number(match.groups.day);
|
|
293
|
+
const candidate = new Date(Date.UTC(year, month - 1, day, 12, 0, 0));
|
|
294
|
+
if (Number.isNaN(candidate.getTime()) || candidate.getUTCFullYear() !== year || candidate.getUTCMonth() + 1 !== month || candidate.getUTCDate() !== day) throw new Error(`Invalid booking date format: "${value}" (expected YYYY-MM-DD)`);
|
|
295
|
+
return {
|
|
296
|
+
year,
|
|
297
|
+
month,
|
|
298
|
+
day
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function parseLocalScheduleTime(value) {
|
|
302
|
+
const match = /^(?<hour>[01]?\d|2[0-3]):(?<minute>[0-5]\d)(?::(?<second>[0-5]\d))?$/u.exec(value.trim());
|
|
303
|
+
if (match === null || match.groups === void 0) throw new Error(`Invalid start time format: "${value}" (expected HH:MM or HH:MM:SS)`);
|
|
304
|
+
return {
|
|
305
|
+
hour: Number(match.groups.hour),
|
|
306
|
+
minute: Number(match.groups.minute),
|
|
307
|
+
second: Number(match.groups.second ?? "0")
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
function getLocalScheduleDate(date, timeZone) {
|
|
311
|
+
const parts = getZonedDateTimeParts(date, getSafeTimeZone(timeZone));
|
|
312
|
+
return {
|
|
313
|
+
year: parts.year,
|
|
314
|
+
month: parts.month,
|
|
315
|
+
day: parts.day
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
function formatLocalScheduleDate(date) {
|
|
319
|
+
return formatDateKey(date);
|
|
320
|
+
}
|
|
321
|
+
function addLocalScheduleDays(date, days) {
|
|
322
|
+
const utcDate = new Date(Date.UTC(date.year, date.month - 1, date.day + days, 12, 0, 0));
|
|
323
|
+
return {
|
|
324
|
+
year: utcDate.getUTCFullYear(),
|
|
325
|
+
month: utcDate.getUTCMonth() + 1,
|
|
326
|
+
day: utcDate.getUTCDate()
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function localScheduleDateTimeToUtcDate(localDate, localTime, timeZone) {
|
|
330
|
+
const resolvedTimeZone = getSafeTimeZone(timeZone);
|
|
331
|
+
const targetLocalMs = Date.UTC(localDate.year, localDate.month - 1, localDate.day, localTime.hour, localTime.minute, localTime.second, 0);
|
|
332
|
+
return resolveLocalInstant(targetLocalMs, resolvedTimeZone, targetLocalMs, []);
|
|
333
|
+
}
|
|
334
|
+
function resolveLocalInstant(targetLocalMs, timeZone, guess, seen) {
|
|
335
|
+
if (seen.length === 4) return new Date(guess);
|
|
336
|
+
const actual = getZonedDateTimeParts(new Date(guess), timeZone);
|
|
337
|
+
const diff = Date.UTC(actual.year, actual.month - 1, actual.day, actual.hour, actual.minute, actual.second, 0) - targetLocalMs;
|
|
338
|
+
if (diff === 0) return new Date(guess);
|
|
339
|
+
const nextGuess = guess - diff;
|
|
340
|
+
if (nextGuess === guess || seen.includes(nextGuess)) return new Date(Math.max(guess, nextGuess));
|
|
341
|
+
return resolveLocalInstant(targetLocalMs, timeZone, nextGuess, [...seen, guess]);
|
|
342
|
+
}
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region ../core/src/booking-date-time/window.ts
|
|
345
|
+
const START_OF_DAY = {
|
|
346
|
+
hour: 0,
|
|
347
|
+
minute: 0,
|
|
348
|
+
second: 0
|
|
349
|
+
};
|
|
350
|
+
function parseWindowDate(value, field) {
|
|
351
|
+
try {
|
|
352
|
+
return {
|
|
353
|
+
ok: true,
|
|
354
|
+
value: parseBookingLocalDate(value)
|
|
355
|
+
};
|
|
356
|
+
} catch {
|
|
357
|
+
return {
|
|
358
|
+
ok: false,
|
|
359
|
+
field,
|
|
360
|
+
reason: "invalid_date_format",
|
|
361
|
+
value
|
|
362
|
+
};
|
|
125
363
|
}
|
|
126
|
-
return FALLBACK_TIMEZONE;
|
|
127
364
|
}
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
365
|
+
function parseBookingUtcDateWindow(input) {
|
|
366
|
+
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
367
|
+
const start = parseWindowDate(input.startDate, "startDate");
|
|
368
|
+
if (!start.ok) return start;
|
|
369
|
+
const end = parseWindowDate(input.endDate, "endDate");
|
|
370
|
+
if (!end.ok) return end;
|
|
371
|
+
const startLocalDate = start.value;
|
|
372
|
+
const endLocalDate = end.value;
|
|
373
|
+
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
374
|
+
ok: false,
|
|
375
|
+
field: "endDate",
|
|
376
|
+
reason: "invalid_date_range",
|
|
377
|
+
value: input.endDate
|
|
378
|
+
};
|
|
379
|
+
return {
|
|
380
|
+
ok: true,
|
|
381
|
+
value: {
|
|
382
|
+
timeZone,
|
|
383
|
+
startLocalDate,
|
|
384
|
+
endLocalDate,
|
|
385
|
+
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
386
|
+
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
387
|
+
}
|
|
388
|
+
};
|
|
132
389
|
}
|
|
133
|
-
function
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const date = new Date(normalized);
|
|
139
|
-
if (Number.isNaN(date.getTime())) return err("invalid-date-time");
|
|
140
|
-
return ok(date.toISOString());
|
|
390
|
+
function buildBookingUtcDateWindow(input) {
|
|
391
|
+
const result = parseBookingUtcDateWindow(input);
|
|
392
|
+
if (result.ok) return result.value;
|
|
393
|
+
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
394
|
+
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
141
395
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
396
|
+
//#endregion
|
|
397
|
+
//#region ../core/src/booking-date-time/scheduled.ts
|
|
398
|
+
function parseStrictBookingTimeZone(timeZone) {
|
|
399
|
+
const parsed = parseBookingTimeZone(timeZone);
|
|
400
|
+
return parsed.ok ? parsed.value : null;
|
|
401
|
+
}
|
|
402
|
+
function formatParseError(error) {
|
|
403
|
+
switch (error.reason) {
|
|
404
|
+
case "invalid_starts_at": return `Expected a valid UTC/offset-aware ISO datetime in startsAt, received "${error.value}"`;
|
|
405
|
+
case "invalid_ends_at": return `Expected a valid UTC/offset-aware ISO datetime in endsAt, received "${error.value ?? ""}"`;
|
|
406
|
+
case "invalid_time_zone": return `Expected a valid IANA timezone in timeZone, received "${error.value}"`;
|
|
147
407
|
}
|
|
148
|
-
return parsed.value;
|
|
149
408
|
}
|
|
150
|
-
function
|
|
151
|
-
let startsAt;
|
|
409
|
+
function parseScheduledStart(value) {
|
|
152
410
|
try {
|
|
153
|
-
|
|
411
|
+
return {
|
|
412
|
+
ok: true,
|
|
413
|
+
value: toUtcIsoDateTimeString(value)
|
|
414
|
+
};
|
|
154
415
|
} catch {
|
|
155
416
|
return {
|
|
156
417
|
ok: false,
|
|
157
418
|
field: "startsAt",
|
|
158
419
|
reason: "invalid_starts_at",
|
|
159
|
-
value
|
|
420
|
+
value
|
|
160
421
|
};
|
|
161
422
|
}
|
|
423
|
+
}
|
|
424
|
+
function parseScheduledBookingDateTime(input) {
|
|
425
|
+
const startsAt = parseScheduledStart(input.startsAt);
|
|
426
|
+
if (!startsAt.ok) return startsAt;
|
|
162
427
|
const timeZone = parseStrictBookingTimeZone(input.timeZone);
|
|
163
428
|
if (timeZone === null) return {
|
|
164
429
|
ok: false,
|
|
@@ -169,7 +434,7 @@ function parseScheduledBookingDateTime(input) {
|
|
|
169
434
|
return {
|
|
170
435
|
ok: true,
|
|
171
436
|
value: {
|
|
172
|
-
startsAt,
|
|
437
|
+
startsAt: startsAt.value,
|
|
173
438
|
timeZone,
|
|
174
439
|
locale: input.locale
|
|
175
440
|
}
|
|
@@ -180,6 +445,8 @@ function toScheduledBookingDateTime(input) {
|
|
|
180
445
|
if (result.ok) return result.value;
|
|
181
446
|
throw new Error(formatParseError(result));
|
|
182
447
|
}
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region ../core/src/booking-date-time/formatting.ts
|
|
183
450
|
/**
|
|
184
451
|
* Formats the compact English event-time presentation used by public surfaces.
|
|
185
452
|
*
|
|
@@ -208,121 +475,6 @@ function compactEnglishClock(parts, seconds) {
|
|
|
208
475
|
if (seconds === "include") return second === void 0 ? null : `${hour}:${minute}:${second}${token}`;
|
|
209
476
|
return `${minute === "00" ? hour : `${hour}:${minute}`}${token}`;
|
|
210
477
|
}
|
|
211
|
-
function getBookingLocalDateKey(input) {
|
|
212
|
-
return formatDateKey(getLocalScheduleDate(new Date(input.startsAt), input.timeZone));
|
|
213
|
-
}
|
|
214
|
-
function compareLocalScheduleDates(left, right) {
|
|
215
|
-
return Date.UTC(left.year, left.month - 1, left.day) - Date.UTC(right.year, right.month - 1, right.day);
|
|
216
|
-
}
|
|
217
|
-
function parseBookingLocalDate(value) {
|
|
218
|
-
const match = LOCAL_DATE_PATTERN.exec(value.trim());
|
|
219
|
-
if (match === null || match.groups === void 0) throw new Error(`Invalid booking date format: "${value}" (expected YYYY-MM-DD)`);
|
|
220
|
-
const year = Number(match.groups.year);
|
|
221
|
-
const month = Number(match.groups.month);
|
|
222
|
-
const day = Number(match.groups.day);
|
|
223
|
-
const candidate = new Date(Date.UTC(year, month - 1, day, 12, 0, 0));
|
|
224
|
-
if (Number.isNaN(candidate.getTime()) || candidate.getUTCFullYear() !== year || candidate.getUTCMonth() + 1 !== month || candidate.getUTCDate() !== day) throw new Error(`Invalid booking date format: "${value}" (expected YYYY-MM-DD)`);
|
|
225
|
-
return {
|
|
226
|
-
year,
|
|
227
|
-
month,
|
|
228
|
-
day
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function parseBookingUtcDateWindow(input) {
|
|
232
|
-
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
233
|
-
let startLocalDate;
|
|
234
|
-
try {
|
|
235
|
-
startLocalDate = parseBookingLocalDate(input.startDate);
|
|
236
|
-
} catch {
|
|
237
|
-
return {
|
|
238
|
-
ok: false,
|
|
239
|
-
field: "startDate",
|
|
240
|
-
reason: "invalid_date_format",
|
|
241
|
-
value: input.startDate
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
let endLocalDate;
|
|
245
|
-
try {
|
|
246
|
-
endLocalDate = parseBookingLocalDate(input.endDate);
|
|
247
|
-
} catch {
|
|
248
|
-
return {
|
|
249
|
-
ok: false,
|
|
250
|
-
field: "endDate",
|
|
251
|
-
reason: "invalid_date_format",
|
|
252
|
-
value: input.endDate
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
256
|
-
ok: false,
|
|
257
|
-
field: "endDate",
|
|
258
|
-
reason: "invalid_date_range",
|
|
259
|
-
value: input.endDate
|
|
260
|
-
};
|
|
261
|
-
return {
|
|
262
|
-
ok: true,
|
|
263
|
-
value: {
|
|
264
|
-
timeZone,
|
|
265
|
-
startLocalDate,
|
|
266
|
-
endLocalDate,
|
|
267
|
-
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
268
|
-
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function buildBookingUtcDateWindow(input) {
|
|
273
|
-
const result = parseBookingUtcDateWindow(input);
|
|
274
|
-
if (result.ok) return result.value;
|
|
275
|
-
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
276
|
-
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
277
|
-
}
|
|
278
|
-
function parseLocalScheduleTime(value) {
|
|
279
|
-
const match = /^(?<hour>\d{1,2}):(?<minute>\d{2})(?::(?<second>\d{2}))?$/u.exec(value.trim());
|
|
280
|
-
if (match === null || match.groups === void 0) throw new Error(`Invalid start time format: "${value}" (expected HH:MM or HH:MM:SS)`);
|
|
281
|
-
const hour = Number(match.groups.hour);
|
|
282
|
-
const minute = Number(match.groups.minute);
|
|
283
|
-
const second = match.groups.second !== void 0 ? Number(match.groups.second) : 0;
|
|
284
|
-
if (Number.isNaN(hour) || Number.isNaN(minute) || Number.isNaN(second) || hour < 0 || hour > 23 || minute < 0 || minute > 59 || second < 0 || second > 59) throw new Error(`Invalid start time format: "${value}" (expected HH:MM or HH:MM:SS)`);
|
|
285
|
-
return {
|
|
286
|
-
hour,
|
|
287
|
-
minute,
|
|
288
|
-
second
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
function getLocalScheduleDate(date, timeZone) {
|
|
292
|
-
const parts = getZonedDateTimeParts(date, getSafeTimeZone(timeZone));
|
|
293
|
-
return {
|
|
294
|
-
year: parts.year,
|
|
295
|
-
month: parts.month,
|
|
296
|
-
day: parts.day
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
function formatLocalScheduleDate(date) {
|
|
300
|
-
return formatDateKey(date);
|
|
301
|
-
}
|
|
302
|
-
function addLocalScheduleDays(date, days) {
|
|
303
|
-
const utcDate = new Date(Date.UTC(date.year, date.month - 1, date.day + days, 12, 0, 0));
|
|
304
|
-
return {
|
|
305
|
-
year: utcDate.getUTCFullYear(),
|
|
306
|
-
month: utcDate.getUTCMonth() + 1,
|
|
307
|
-
day: utcDate.getUTCDate()
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
function localScheduleDateTimeToUtcDate(localDate, localTime, timeZone) {
|
|
311
|
-
const resolvedTimeZone = getSafeTimeZone(timeZone);
|
|
312
|
-
const targetLocalMs = Date.UTC(localDate.year, localDate.month - 1, localDate.day, localTime.hour, localTime.minute, localTime.second, 0);
|
|
313
|
-
let guess = targetLocalMs;
|
|
314
|
-
const seenGuesses = /* @__PURE__ */ new Set();
|
|
315
|
-
for (let iteration = 0; iteration < 4; iteration += 1) {
|
|
316
|
-
seenGuesses.add(guess);
|
|
317
|
-
const actual = getZonedDateTimeParts(new Date(guess), resolvedTimeZone);
|
|
318
|
-
const diff = Date.UTC(actual.year, actual.month - 1, actual.day, actual.hour, actual.minute, actual.second, 0) - targetLocalMs;
|
|
319
|
-
if (diff === 0) return new Date(guess);
|
|
320
|
-
const nextGuess = guess - diff;
|
|
321
|
-
if (seenGuesses.has(nextGuess)) return new Date(Math.max(guess, nextGuess));
|
|
322
|
-
guess = nextGuess;
|
|
323
|
-
}
|
|
324
|
-
return new Date(guess);
|
|
325
|
-
}
|
|
326
478
|
//#endregion
|
|
327
479
|
//#region ../core/src/date-display.ts
|
|
328
480
|
/** Site-language policy, shared by customer emails and public event adapters. */
|
|
@@ -951,6 +1103,7 @@ function isRichTextDoc(value) {
|
|
|
951
1103
|
}
|
|
952
1104
|
//#endregion
|
|
953
1105
|
//#region ../core/src/booking-payment-schemas.ts
|
|
1106
|
+
const bookingCourseInstalmentDeadlineSchema = z.enum(BOOKING_COURSE_INSTALMENT_DEADLINES);
|
|
954
1107
|
const stripObject = (shape) => z.object(shape);
|
|
955
1108
|
const strictObject = (shape) => z.strictObject(shape);
|
|
956
1109
|
const depositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
@@ -1016,7 +1169,8 @@ function buildBookingPaymentOptionSchemas(object) {
|
|
|
1016
1169
|
object({ kind: z.literal("deferred_manual") }),
|
|
1017
1170
|
object({
|
|
1018
1171
|
kind: z.literal("instalment_plan"),
|
|
1019
|
-
plan: instalmentPlan
|
|
1172
|
+
plan: instalmentPlan,
|
|
1173
|
+
courseDeadline: bookingCourseInstalmentDeadlineSchema.optional()
|
|
1020
1174
|
}),
|
|
1021
1175
|
object({
|
|
1022
1176
|
kind: z.literal("flexible_balance"),
|
|
@@ -1120,6 +1274,7 @@ const publicEventLoaderQuerySchemaShape = {
|
|
|
1120
1274
|
seriesIds: z.string().optional(),
|
|
1121
1275
|
runSeriesId: z.string().optional(),
|
|
1122
1276
|
seriesSlug: z.string().optional(),
|
|
1277
|
+
occurrenceIds: z.string().max(4e3).optional(),
|
|
1123
1278
|
includeOccurrenceId: z.string().optional(),
|
|
1124
1279
|
readIntent: z.string().optional(),
|
|
1125
1280
|
detailAdmission: z.string().optional(),
|
|
@@ -1164,6 +1319,8 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
1164
1319
|
* Zod schema for venue data
|
|
1165
1320
|
*/
|
|
1166
1321
|
const eventVenueSchema = z.object({
|
|
1322
|
+
area: z.string().nullable().optional(),
|
|
1323
|
+
addressWithBooking: z.boolean().optional(),
|
|
1167
1324
|
drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
|
|
1168
1325
|
id: z.string(),
|
|
1169
1326
|
name: z.string(),
|
|
@@ -1747,6 +1904,77 @@ function planCalendarMonthRanges(months) {
|
|
|
1747
1904
|
return ranges;
|
|
1748
1905
|
}
|
|
1749
1906
|
//#endregion
|
|
1907
|
+
//#region ../commerce/src/purchase/settlement.ts
|
|
1908
|
+
function normalizeCurrencyCode(raw) {
|
|
1909
|
+
const normalized = raw.trim().toUpperCase();
|
|
1910
|
+
if (!/^[A-Z]{3}$/.test(normalized)) throw new Error(`Invalid currency code: ${raw}`);
|
|
1911
|
+
return normalized;
|
|
1912
|
+
}
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region ../commerce/src/purchase/confirmationPaymentSchema.ts
|
|
1915
|
+
const settledBalanceSchema = z.strictObject({ kind: z.literal("settled") });
|
|
1916
|
+
const dueBalanceSchema = z.strictObject({
|
|
1917
|
+
kind: z.literal("due"),
|
|
1918
|
+
amountCents: z.number().int().positive().transform((value, ctx) => {
|
|
1919
|
+
const cents = parsePositiveCents(value);
|
|
1920
|
+
if (cents.ok) return cents.value;
|
|
1921
|
+
ctx.addIssue({
|
|
1922
|
+
code: "custom",
|
|
1923
|
+
message: "Expected positive whole cents"
|
|
1924
|
+
});
|
|
1925
|
+
return z.NEVER;
|
|
1926
|
+
}),
|
|
1927
|
+
dueAt: z.string().nullable()
|
|
1928
|
+
});
|
|
1929
|
+
const paymentBalanceSchema = z.discriminatedUnion("kind", [settledBalanceSchema, dueBalanceSchema]);
|
|
1930
|
+
const currencySchema = z.string().regex(/^[A-Z]{3}$/).transform(normalizeCurrencyCode);
|
|
1931
|
+
const moneyFields = {
|
|
1932
|
+
amountPaidCents: z.number().int().nonnegative().transform(toNonNegativeCents),
|
|
1933
|
+
currency: currencySchema
|
|
1934
|
+
};
|
|
1935
|
+
const confirmationPaymentSchema = z.discriminatedUnion("kind", [
|
|
1936
|
+
z.strictObject({
|
|
1937
|
+
kind: z.literal("free"),
|
|
1938
|
+
balance: settledBalanceSchema
|
|
1939
|
+
}),
|
|
1940
|
+
z.strictObject({
|
|
1941
|
+
kind: z.literal("waived"),
|
|
1942
|
+
balance: settledBalanceSchema
|
|
1943
|
+
}),
|
|
1944
|
+
z.strictObject({
|
|
1945
|
+
kind: z.literal("pass"),
|
|
1946
|
+
passName: z.string().nullable(),
|
|
1947
|
+
passCreditsUsed: z.number().int().positive().nullable(),
|
|
1948
|
+
balance: settledBalanceSchema
|
|
1949
|
+
}),
|
|
1950
|
+
z.strictObject({
|
|
1951
|
+
kind: z.literal("membership"),
|
|
1952
|
+
membershipName: z.string().nullable(),
|
|
1953
|
+
balance: settledBalanceSchema
|
|
1954
|
+
}),
|
|
1955
|
+
z.strictObject({
|
|
1956
|
+
kind: z.literal("manual_due"),
|
|
1957
|
+
currency: currencySchema,
|
|
1958
|
+
balance: dueBalanceSchema
|
|
1959
|
+
}),
|
|
1960
|
+
z.strictObject({
|
|
1961
|
+
kind: z.literal("managed_balance_due"),
|
|
1962
|
+
...moneyFields,
|
|
1963
|
+
balance: dueBalanceSchema
|
|
1964
|
+
}),
|
|
1965
|
+
z.strictObject({
|
|
1966
|
+
kind: z.literal("monetary"),
|
|
1967
|
+
...moneyFields,
|
|
1968
|
+
paymentMethod: z.enum([
|
|
1969
|
+
"stripe",
|
|
1970
|
+
"store_credit",
|
|
1971
|
+
"mixed",
|
|
1972
|
+
"manual"
|
|
1973
|
+
]),
|
|
1974
|
+
balance: paymentBalanceSchema
|
|
1975
|
+
})
|
|
1976
|
+
]);
|
|
1977
|
+
//#endregion
|
|
1750
1978
|
//#region ../blocks/src/system/runtime/api/schemas/events.ts
|
|
1751
1979
|
const uuid = z.string().uuid();
|
|
1752
1980
|
const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
|
|
@@ -1783,14 +2011,17 @@ const bookedTicketLineSchema = z.object({
|
|
|
1783
2011
|
label: z.string().min(1),
|
|
1784
2012
|
quantity: z.number().int().positive()
|
|
1785
2013
|
}).strict();
|
|
2014
|
+
const arrivalFields = { arrivalVenues: z.record(uuid, z.string()).optional() };
|
|
1786
2015
|
const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
|
|
1787
2016
|
kind: z.literal("detailsAvailable"),
|
|
1788
2017
|
identity: confirmedBookingIdentitySchema,
|
|
1789
2018
|
ticketLines: z.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
|
|
1790
|
-
payment: confirmationPaymentSchema
|
|
2019
|
+
payment: confirmationPaymentSchema,
|
|
2020
|
+
...arrivalFields
|
|
1791
2021
|
}).strict(), z.object({
|
|
1792
2022
|
kind: z.literal("detailsUnavailable"),
|
|
1793
|
-
identity: confirmedBookingIdentitySchema
|
|
2023
|
+
identity: confirmedBookingIdentitySchema,
|
|
2024
|
+
...arrivalFields
|
|
1794
2025
|
}).strict()]);
|
|
1795
2026
|
const eventEmbeddedCheckoutSchema = z.object({
|
|
1796
2027
|
kind: z.literal("embedded"),
|
|
@@ -1952,6 +2183,25 @@ const eventCheckoutResponseSchema = z.union([
|
|
|
1952
2183
|
});
|
|
1953
2184
|
});
|
|
1954
2185
|
//#endregion
|
|
2186
|
+
//#region ../blocks/src/contracts/events.ts
|
|
2187
|
+
/** Release 1: older SDKs reject additional confirmed-outcome fields. */
|
|
2188
|
+
const EVENT_BOOKING_ARRIVAL_QUERY = "bookingArrival";
|
|
2189
|
+
const eventAutoApplyDiscountPreviewBaseSchema = z.object({
|
|
2190
|
+
id: z.string(),
|
|
2191
|
+
publicLabel: z.string(),
|
|
2192
|
+
description: z.string().nullable(),
|
|
2193
|
+
minTicketsRequired: z.number().nullable()
|
|
2194
|
+
});
|
|
2195
|
+
const eventAutoApplyDiscountPreviewSchema = z.discriminatedUnion("discountType", [eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
2196
|
+
discountType: z.literal("percent"),
|
|
2197
|
+
discountPercent: z.number(),
|
|
2198
|
+
discountAmountCents: z.null()
|
|
2199
|
+
}), eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
2200
|
+
discountType: z.literal("fixed"),
|
|
2201
|
+
discountPercent: z.null(),
|
|
2202
|
+
discountAmountCents: z.number()
|
|
2203
|
+
})]);
|
|
2204
|
+
//#endregion
|
|
1955
2205
|
//#region ../blocks/src/system/blocks/shared/siteTerms.ts
|
|
1956
2206
|
const versionId = z.string().uuid().transform((value, ctx) => {
|
|
1957
2207
|
const parsed = parseSiteTermsVersionId(value);
|
|
@@ -1987,4 +2237,4 @@ const logger = {
|
|
|
1987
2237
|
withFields: (_) => logger
|
|
1988
2238
|
};
|
|
1989
2239
|
//#endregion
|
|
1990
|
-
export {
|
|
2240
|
+
export { blockBookingPaymentTermsSchema as $, isEventCalendarListLayout as A, parseBookingLocalDate as At, normalizeEventSurfacePresetsCsv as B, formatCurrencyAmount as Bt, eventCalendarListLayoutCompatibleDisplayModeValues as C, toScheduledBookingDateTime as Ct, eventListArrangementValues as D, formatLocalScheduleDate as Dt, eventCalendarVariantMeaning as E, compareLocalScheduleDates as Et, normalizeEventCategoryIds as F, parseUtcIsoDateTimeString as Ft, publicEventDestinationSchema as G, normalizeEventVenueId as H, normalizeEventCategoryIdsCsv as I, toUtcIsoDateTimeString as It, publicEventsArraySchema as J, publicEventLoaderQuerySchemaShape as K, normalizeEventScheduleScope as L, validateBookingPaymentOptionKinds as Lt, resolveEventCalendarReadPlan as M, resolveBookingBusinessTimeZone as Mt, eventScheduleScopeValues as N, resolveBookingTimeZoneId as Nt, isEventCalendarDefaultView as O, getBookingLocalDateKey as Ot, eventSurfaceScopeValues as P, toBookingTimeZone as Pt, toBookingRequirementConsentField as Q, normalizeEventStaffMemberId as R, parsePositiveMoneyInputToCents as Rt, eventCalendarListGroupingDecision as S, formatBookingCompactEnglishTime as St, eventCalendarListLayoutValues as T, addLocalScheduleDays as Tt, normalizeIdList as U, normalizeEventSurfaceScope as V, formatGiftCardAmountLabel as Vt, eventVenueDrawingSchema as W, bookingConsentCarrierSchema as X, blockBookingConsentSchema as Y, isBookingRequirementConsentFieldId as Z, calendarWindowQuerySchema as _, formatTime as _t, eventAutoApplyDiscountPreviewSchema as a, decideLocationSourcePermission as at, eventCalendarDefaultViewValues as b, inferSiteDateLocale as bt, eventRegisterResponseSchema as c, parseLocationValue as ct, calendarMonthKey as d, toLocationCoordinates as dt, RichTextDocSchema as et, calendarPageResponseError as f, mapDrawingSchema as ft, calendarWindowPageSchema as g, formatDateTimeRange as gt, calendarWindowMonths as h, formatDateTime as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, WHOLE_SERIES_EVENT_PRESET_VALUES as it, normalizeEventCalendarDisplayMode as j, parseLocalScheduleTime as jt, isEventCalendarDisplayMode as k, getLocalScheduleDate as kt, normalizeCurrencyCode as l, projectPublicLocation as lt, calendarWindowBounds as m, formatDateRange as mt, blockSiteTermsSchema as n, isObjectRecord as nt, eventCheckoutResponseSchema as o, locationValueSchema as ot, calendarQueryKey as p, formatDate as pt, publicEventSchema as q, verifiedSiteTermsAcceptanceSchema as r, isRecord as rt, eventCheckoutReturnResponseSchema as s, normalizeLocationAddressText as st, logger as t, isRichTextDoc as tt, calendarMonthDate as u, publicLocationSchema as ut, planCalendarMonthRanges as v, formatTimeRange as vt, eventCalendarListLayoutOptions as w, buildBookingUtcDateWindow as wt, eventCalendarDisplayModeValues as x, resolveBookingDisplayContext as xt, resolveCalendarReadProfile as y, formatTimeZoneCityLabel as yt, normalizeEventSurfacePresets as z, toNonNegativeCents as zt };
|