@riverbankcms/sdk 0.178.0 → 0.180.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- 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 +3 -3
- 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 +7 -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/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/serviceBookingOutline-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- 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-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -878,6 +878,18 @@ const mapDrawingSchema = z.strictObject({
|
|
|
878
878
|
//#endregion
|
|
879
879
|
//#region ../core/src/string.ts
|
|
880
880
|
/**
|
|
881
|
+
* Return true for string values that contain at least one character.
|
|
882
|
+
*/
|
|
883
|
+
function isNonEmptyString(value) {
|
|
884
|
+
return typeof value === "string" && value.length > 0;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Narrow optional string values to non-empty strings.
|
|
888
|
+
*/
|
|
889
|
+
function hasText(value) {
|
|
890
|
+
return isNonEmptyString(value);
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
881
893
|
* Trim a user-entered string and collapse blank values to null.
|
|
882
894
|
*/
|
|
883
895
|
function trimmedStringOrNull(value) {
|
|
@@ -1041,90 +1053,6 @@ function isRecord(value) {
|
|
|
1041
1053
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1042
1054
|
}
|
|
1043
1055
|
//#endregion
|
|
1044
|
-
//#region ../commerce/src/purchase/settlement.ts
|
|
1045
|
-
function normalizeCurrencyCode(raw) {
|
|
1046
|
-
const normalized = raw.trim().toUpperCase();
|
|
1047
|
-
if (!/^[A-Z]{3}$/.test(normalized)) throw new Error(`Invalid currency code: ${raw}`);
|
|
1048
|
-
return normalized;
|
|
1049
|
-
}
|
|
1050
|
-
function allocateReductionCents(inputs, requestedCents) {
|
|
1051
|
-
const sanitizedInputs = inputs.map((input) => ({
|
|
1052
|
-
lineId: input.lineId,
|
|
1053
|
-
basisCents: toNonNegativeCents(input.basisCents),
|
|
1054
|
-
maxReducibleCents: toNonNegativeCents(input.maxReducibleCents)
|
|
1055
|
-
}));
|
|
1056
|
-
const totalReducibleCents = sanitizedInputs.reduce((sum, input) => sum + input.maxReducibleCents, 0);
|
|
1057
|
-
const targetCents = Math.max(0, Math.min(Math.trunc(requestedCents), totalReducibleCents));
|
|
1058
|
-
const allocations = sanitizedInputs.map((input) => ({
|
|
1059
|
-
lineId: input.lineId,
|
|
1060
|
-
amountCents: toNonNegativeCents(0)
|
|
1061
|
-
}));
|
|
1062
|
-
if (targetCents === 0 || sanitizedInputs.length === 0) return {
|
|
1063
|
-
requestedCents: toNonNegativeCents(requestedCents),
|
|
1064
|
-
appliedCents: toNonNegativeCents(0),
|
|
1065
|
-
allocations
|
|
1066
|
-
};
|
|
1067
|
-
const remainingCaps = sanitizedInputs.map((input) => input.maxReducibleCents);
|
|
1068
|
-
let remainingCents = targetCents;
|
|
1069
|
-
while (remainingCents > 0) {
|
|
1070
|
-
const eligibleIndexes = sanitizedInputs.map((input, index) => ({
|
|
1071
|
-
input,
|
|
1072
|
-
index
|
|
1073
|
-
})).filter(({ input, index }) => input.basisCents > 0 && (remainingCaps[index] ?? 0) > 0);
|
|
1074
|
-
if (eligibleIndexes.length === 0) break;
|
|
1075
|
-
const eligibleBasis = eligibleIndexes.reduce((sum, { input }) => sum + input.basisCents, 0);
|
|
1076
|
-
if (eligibleBasis <= 0) break;
|
|
1077
|
-
const roundCandidates = eligibleIndexes.map(({ input, index }) => {
|
|
1078
|
-
const exactShare = input.basisCents / eligibleBasis * remainingCents;
|
|
1079
|
-
const floorShare = Math.min(Math.floor(exactShare), remainingCaps[index] ?? 0);
|
|
1080
|
-
return {
|
|
1081
|
-
index,
|
|
1082
|
-
floorShare,
|
|
1083
|
-
remainder: exactShare - floorShare
|
|
1084
|
-
};
|
|
1085
|
-
});
|
|
1086
|
-
let assignedThisRound = 0;
|
|
1087
|
-
for (const candidate of roundCandidates) {
|
|
1088
|
-
if (candidate.floorShare <= 0) continue;
|
|
1089
|
-
const allocation = allocations[candidate.index];
|
|
1090
|
-
if (!allocation) continue;
|
|
1091
|
-
allocation.amountCents = toNonNegativeCents(allocation.amountCents + candidate.floorShare);
|
|
1092
|
-
remainingCaps[candidate.index] = toNonNegativeCents((remainingCaps[candidate.index] ?? 0) - candidate.floorShare);
|
|
1093
|
-
assignedThisRound += candidate.floorShare;
|
|
1094
|
-
}
|
|
1095
|
-
remainingCents -= assignedThisRound;
|
|
1096
|
-
if (remainingCents <= 0) break;
|
|
1097
|
-
const remainderCandidates = roundCandidates.filter((candidate) => (remainingCaps[candidate.index] ?? 0) > 0).sort((a, b) => {
|
|
1098
|
-
if (b.remainder !== a.remainder) return b.remainder - a.remainder;
|
|
1099
|
-
return a.index - b.index;
|
|
1100
|
-
});
|
|
1101
|
-
if (remainderCandidates.length === 0) break;
|
|
1102
|
-
let remainderAssigned = 0;
|
|
1103
|
-
for (const candidate of remainderCandidates) {
|
|
1104
|
-
if (remainingCents <= 0) break;
|
|
1105
|
-
if ((remainingCaps[candidate.index] ?? 0) <= 0) continue;
|
|
1106
|
-
const allocation = allocations[candidate.index];
|
|
1107
|
-
if (!allocation) continue;
|
|
1108
|
-
allocation.amountCents = toNonNegativeCents(allocation.amountCents + 1);
|
|
1109
|
-
remainingCaps[candidate.index] = toNonNegativeCents((remainingCaps[candidate.index] ?? 0) - 1);
|
|
1110
|
-
remainingCents -= 1;
|
|
1111
|
-
remainderAssigned += 1;
|
|
1112
|
-
}
|
|
1113
|
-
if (assignedThisRound === 0 && remainderAssigned === 0) break;
|
|
1114
|
-
}
|
|
1115
|
-
const appliedCents = allocations.reduce((sum, allocation) => sum + allocation.amountCents, 0);
|
|
1116
|
-
return {
|
|
1117
|
-
requestedCents: toNonNegativeCents(requestedCents),
|
|
1118
|
-
appliedCents: toNonNegativeCents(appliedCents),
|
|
1119
|
-
allocations
|
|
1120
|
-
};
|
|
1121
|
-
}
|
|
1122
|
-
//#endregion
|
|
1123
|
-
//#region ../commerce/src/purchase/checkoutQuantity.ts
|
|
1124
|
-
function unsafeAsPositiveCheckoutQuantity(quantity) {
|
|
1125
|
-
return quantity;
|
|
1126
|
-
}
|
|
1127
|
-
//#endregion
|
|
1128
1056
|
//#region ../site-contracts/src/siteData/eventQueries.ts
|
|
1129
1057
|
const eventSurfacePresetValues = SURFACE_EVENT_PRESET_VALUES;
|
|
1130
1058
|
const eventSurfaceScopeValues = [
|
|
@@ -1350,6 +1278,241 @@ const eventCalendarListLayoutValues = [
|
|
|
1350
1278
|
];
|
|
1351
1279
|
const eventCalendarListLayoutCompatibleDisplayModeValues = ["combined", "list"];
|
|
1352
1280
|
//#endregion
|
|
1281
|
+
//#region ../commerce/src/purchase/settlement.ts
|
|
1282
|
+
function normalizeCurrencyCode(raw) {
|
|
1283
|
+
const normalized = raw.trim().toUpperCase();
|
|
1284
|
+
if (!/^[A-Z]{3}$/.test(normalized)) throw new Error(`Invalid currency code: ${raw}`);
|
|
1285
|
+
return normalized;
|
|
1286
|
+
}
|
|
1287
|
+
function allocateReductionCents(inputs, requestedCents) {
|
|
1288
|
+
const sanitizedInputs = inputs.map((input) => ({
|
|
1289
|
+
lineId: input.lineId,
|
|
1290
|
+
basisCents: toNonNegativeCents(input.basisCents),
|
|
1291
|
+
maxReducibleCents: toNonNegativeCents(input.maxReducibleCents)
|
|
1292
|
+
}));
|
|
1293
|
+
const totalReducibleCents = sanitizedInputs.reduce((sum, input) => sum + input.maxReducibleCents, 0);
|
|
1294
|
+
const targetCents = Math.max(0, Math.min(Math.trunc(requestedCents), totalReducibleCents));
|
|
1295
|
+
const allocations = sanitizedInputs.map((input) => ({
|
|
1296
|
+
lineId: input.lineId,
|
|
1297
|
+
amountCents: toNonNegativeCents(0)
|
|
1298
|
+
}));
|
|
1299
|
+
if (targetCents === 0 || sanitizedInputs.length === 0) return {
|
|
1300
|
+
requestedCents: toNonNegativeCents(requestedCents),
|
|
1301
|
+
appliedCents: toNonNegativeCents(0),
|
|
1302
|
+
allocations
|
|
1303
|
+
};
|
|
1304
|
+
const remainingCaps = sanitizedInputs.map((input) => input.maxReducibleCents);
|
|
1305
|
+
let remainingCents = targetCents;
|
|
1306
|
+
while (remainingCents > 0) {
|
|
1307
|
+
const eligibleIndexes = sanitizedInputs.map((input, index) => ({
|
|
1308
|
+
input,
|
|
1309
|
+
index
|
|
1310
|
+
})).filter(({ input, index }) => input.basisCents > 0 && (remainingCaps[index] ?? 0) > 0);
|
|
1311
|
+
if (eligibleIndexes.length === 0) break;
|
|
1312
|
+
const eligibleBasis = eligibleIndexes.reduce((sum, { input }) => sum + input.basisCents, 0);
|
|
1313
|
+
if (eligibleBasis <= 0) break;
|
|
1314
|
+
const roundCandidates = eligibleIndexes.map(({ input, index }) => {
|
|
1315
|
+
const exactShare = input.basisCents / eligibleBasis * remainingCents;
|
|
1316
|
+
const floorShare = Math.min(Math.floor(exactShare), remainingCaps[index] ?? 0);
|
|
1317
|
+
return {
|
|
1318
|
+
index,
|
|
1319
|
+
floorShare,
|
|
1320
|
+
remainder: exactShare - floorShare
|
|
1321
|
+
};
|
|
1322
|
+
});
|
|
1323
|
+
let assignedThisRound = 0;
|
|
1324
|
+
for (const candidate of roundCandidates) {
|
|
1325
|
+
if (candidate.floorShare <= 0) continue;
|
|
1326
|
+
const allocation = allocations[candidate.index];
|
|
1327
|
+
if (!allocation) continue;
|
|
1328
|
+
allocation.amountCents = toNonNegativeCents(allocation.amountCents + candidate.floorShare);
|
|
1329
|
+
remainingCaps[candidate.index] = toNonNegativeCents((remainingCaps[candidate.index] ?? 0) - candidate.floorShare);
|
|
1330
|
+
assignedThisRound += candidate.floorShare;
|
|
1331
|
+
}
|
|
1332
|
+
remainingCents -= assignedThisRound;
|
|
1333
|
+
if (remainingCents <= 0) break;
|
|
1334
|
+
const remainderCandidates = roundCandidates.filter((candidate) => (remainingCaps[candidate.index] ?? 0) > 0).sort((a, b) => {
|
|
1335
|
+
if (b.remainder !== a.remainder) return b.remainder - a.remainder;
|
|
1336
|
+
return a.index - b.index;
|
|
1337
|
+
});
|
|
1338
|
+
if (remainderCandidates.length === 0) break;
|
|
1339
|
+
let remainderAssigned = 0;
|
|
1340
|
+
for (const candidate of remainderCandidates) {
|
|
1341
|
+
if (remainingCents <= 0) break;
|
|
1342
|
+
if ((remainingCaps[candidate.index] ?? 0) <= 0) continue;
|
|
1343
|
+
const allocation = allocations[candidate.index];
|
|
1344
|
+
if (!allocation) continue;
|
|
1345
|
+
allocation.amountCents = toNonNegativeCents(allocation.amountCents + 1);
|
|
1346
|
+
remainingCaps[candidate.index] = toNonNegativeCents((remainingCaps[candidate.index] ?? 0) - 1);
|
|
1347
|
+
remainingCents -= 1;
|
|
1348
|
+
remainderAssigned += 1;
|
|
1349
|
+
}
|
|
1350
|
+
if (assignedThisRound === 0 && remainderAssigned === 0) break;
|
|
1351
|
+
}
|
|
1352
|
+
const appliedCents = allocations.reduce((sum, allocation) => sum + allocation.amountCents, 0);
|
|
1353
|
+
return {
|
|
1354
|
+
requestedCents: toNonNegativeCents(requestedCents),
|
|
1355
|
+
appliedCents: toNonNegativeCents(appliedCents),
|
|
1356
|
+
allocations
|
|
1357
|
+
};
|
|
1358
|
+
}
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region ../commerce/src/purchase/checkoutQuantity.ts
|
|
1361
|
+
function unsafeAsPositiveCheckoutQuantity(quantity) {
|
|
1362
|
+
return quantity;
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region ../commerce/src/purchase/roomVocabulary.ts
|
|
1366
|
+
const ROOM_FOR_WHO = [
|
|
1367
|
+
"mixed",
|
|
1368
|
+
"women",
|
|
1369
|
+
"men",
|
|
1370
|
+
"one_per_room"
|
|
1371
|
+
];
|
|
1372
|
+
const SHARED_ROOM_ARRANGEMENTS = [
|
|
1373
|
+
"together",
|
|
1374
|
+
"separate",
|
|
1375
|
+
"organiser"
|
|
1376
|
+
];
|
|
1377
|
+
/** The kind of shared place a guest chose. Nobody is asked their gender: this describes the room. */
|
|
1378
|
+
const ROOM_PLACES = [
|
|
1379
|
+
"women",
|
|
1380
|
+
"men",
|
|
1381
|
+
"mixed"
|
|
1382
|
+
];
|
|
1383
|
+
const PLACES_FOR = {
|
|
1384
|
+
mixed: ["mixed"],
|
|
1385
|
+
women: ["women"],
|
|
1386
|
+
men: ["men"],
|
|
1387
|
+
one_per_room: ["women", "men"]
|
|
1388
|
+
};
|
|
1389
|
+
/** Which places a room for these people can hold. A one-per-room room becomes one of them with its first guest. */
|
|
1390
|
+
function placesFor(forWho) {
|
|
1391
|
+
return PLACES_FOR[forWho];
|
|
1392
|
+
}
|
|
1393
|
+
const MAX_ROOM_BOOKING_PEOPLE = 100;
|
|
1394
|
+
const roomPlaceSchema = z.enum(ROOM_PLACES);
|
|
1395
|
+
const sharedRoomArrangementSchema = z.enum(SHARED_ROOM_ARRANGEMENTS);
|
|
1396
|
+
const roomSetupSchema = z.discriminatedUnion("way", [z.object({ way: z.literal("private") }).strict(), z.object({
|
|
1397
|
+
way: z.enum(["shared", "either"]),
|
|
1398
|
+
forWho: z.enum(ROOM_FOR_WHO)
|
|
1399
|
+
}).strict()]);
|
|
1400
|
+
const roomOccupancySchema = z.discriminatedUnion("bookedAs", [
|
|
1401
|
+
z.object({ bookedAs: z.literal("empty") }).strict(),
|
|
1402
|
+
z.object({ bookedAs: z.literal("private") }).strict(),
|
|
1403
|
+
z.object({
|
|
1404
|
+
bookedAs: z.literal("shared"),
|
|
1405
|
+
place: roomPlaceSchema
|
|
1406
|
+
}).strict()
|
|
1407
|
+
]);
|
|
1408
|
+
const roomPeopleSchema = z.number().int().min(1).max(MAX_ROOM_BOOKING_PEOPLE);
|
|
1409
|
+
/** What someone chose, from a guest, staff or the draft kept through sign-in and payment. */
|
|
1410
|
+
const roomChoicesSchema = z.array(z.discriminatedUnion("way", [
|
|
1411
|
+
z.object({
|
|
1412
|
+
way: z.literal("own"),
|
|
1413
|
+
kindId: z.uuid(),
|
|
1414
|
+
people: roomPeopleSchema
|
|
1415
|
+
}),
|
|
1416
|
+
z.object({
|
|
1417
|
+
way: z.literal("whole_room"),
|
|
1418
|
+
kindId: z.uuid(),
|
|
1419
|
+
people: roomPeopleSchema
|
|
1420
|
+
}),
|
|
1421
|
+
z.object({
|
|
1422
|
+
way: z.literal("sharing"),
|
|
1423
|
+
kindId: z.uuid(),
|
|
1424
|
+
people: roomPeopleSchema,
|
|
1425
|
+
place: roomPlaceSchema
|
|
1426
|
+
})
|
|
1427
|
+
])).max(MAX_ROOM_BOOKING_PEOPLE);
|
|
1428
|
+
/** What they accepted when they left the rooms step. */
|
|
1429
|
+
const reviewedRoomsSchema = z.array(z.object({
|
|
1430
|
+
kindId: z.uuid(),
|
|
1431
|
+
place: roomPlaceSchema,
|
|
1432
|
+
together: z.boolean()
|
|
1433
|
+
})).max(MAX_ROOM_BOOKING_PEOPLE);
|
|
1434
|
+
z.object({
|
|
1435
|
+
choices: roomChoicesSchema,
|
|
1436
|
+
reviewed: reviewedRoomsSchema
|
|
1437
|
+
});
|
|
1438
|
+
//#endregion
|
|
1439
|
+
//#region ../site-contracts/src/identity/presentationVocabulary.ts
|
|
1440
|
+
const arrangementModes = [
|
|
1441
|
+
"list",
|
|
1442
|
+
"calendar",
|
|
1443
|
+
"week",
|
|
1444
|
+
"combined"
|
|
1445
|
+
];
|
|
1446
|
+
function isArrangementMode(value) {
|
|
1447
|
+
return value === "list" || value === "calendar" || value === "week" || value === "combined";
|
|
1448
|
+
}
|
|
1449
|
+
/** Every transition that draws something; `none` is the absence of a join. */
|
|
1450
|
+
const decorativeTransitionIntentValues = [
|
|
1451
|
+
"soft-fade-short",
|
|
1452
|
+
"soft-fade-long",
|
|
1453
|
+
"soft-fade-expansive",
|
|
1454
|
+
"wave-edge",
|
|
1455
|
+
"wave-edge-balanced",
|
|
1456
|
+
"wave-edge-gentle",
|
|
1457
|
+
"wave-edge-bold",
|
|
1458
|
+
"wave-edge-drift",
|
|
1459
|
+
"wave-edge-echo",
|
|
1460
|
+
"arc-edge-echo",
|
|
1461
|
+
"arc-edge-bulge",
|
|
1462
|
+
"angle-edge",
|
|
1463
|
+
"angle-edge-subtle",
|
|
1464
|
+
"angle-edge-steep"
|
|
1465
|
+
];
|
|
1466
|
+
const tileTreatmentValues = [
|
|
1467
|
+
"default",
|
|
1468
|
+
"quiet",
|
|
1469
|
+
"brand-depth"
|
|
1470
|
+
];
|
|
1471
|
+
const eventListTreatmentValues = [
|
|
1472
|
+
"plain",
|
|
1473
|
+
"lined-panel",
|
|
1474
|
+
"ruled-register",
|
|
1475
|
+
"editorial-register",
|
|
1476
|
+
"dense-index"
|
|
1477
|
+
];
|
|
1478
|
+
const eyebrowTreatmentValues = [
|
|
1479
|
+
"plain",
|
|
1480
|
+
"accent",
|
|
1481
|
+
"pill",
|
|
1482
|
+
"accent-pill",
|
|
1483
|
+
"pill-bounce",
|
|
1484
|
+
"accent-pill-bounce"
|
|
1485
|
+
];
|
|
1486
|
+
const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
|
|
1487
|
+
const headingDecorationOverrideValues = ["site-default", "off"];
|
|
1488
|
+
const headingDecorationColorTokenValues = [
|
|
1489
|
+
"text",
|
|
1490
|
+
"primary",
|
|
1491
|
+
"secondary",
|
|
1492
|
+
"accent",
|
|
1493
|
+
"border",
|
|
1494
|
+
"muted"
|
|
1495
|
+
];
|
|
1496
|
+
const accordionIconSetValues = [
|
|
1497
|
+
"plus",
|
|
1498
|
+
"chevron",
|
|
1499
|
+
"caret",
|
|
1500
|
+
"minimal-cross"
|
|
1501
|
+
];
|
|
1502
|
+
const accordionIconColorTokenValues = [
|
|
1503
|
+
"text",
|
|
1504
|
+
"muted",
|
|
1505
|
+
"primary",
|
|
1506
|
+
"secondary",
|
|
1507
|
+
"accent",
|
|
1508
|
+
"current"
|
|
1509
|
+
];
|
|
1510
|
+
const accordionIconMotionValues = [
|
|
1511
|
+
"none",
|
|
1512
|
+
"rotate",
|
|
1513
|
+
"swap"
|
|
1514
|
+
];
|
|
1515
|
+
//#endregion
|
|
1353
1516
|
//#region ../media-core/src/mediaKinds.ts
|
|
1354
1517
|
const mediaTypeDiscriminants = [
|
|
1355
1518
|
"image",
|
|
@@ -1591,7 +1754,114 @@ function buildRichTextSchema(options) {
|
|
|
1591
1754
|
return true;
|
|
1592
1755
|
}, { message: `${label} is required` });
|
|
1593
1756
|
}
|
|
1594
|
-
return RichTextDocSchema;
|
|
1757
|
+
return RichTextDocSchema;
|
|
1758
|
+
}
|
|
1759
|
+
//#endregion
|
|
1760
|
+
//#region ../blocks/src/system/constants/events.ts
|
|
1761
|
+
/**
|
|
1762
|
+
* Event-related constants
|
|
1763
|
+
*
|
|
1764
|
+
* Shared constants for event content types and booking system integration.
|
|
1765
|
+
*/
|
|
1766
|
+
const arrangementOnlyListLayouts = [
|
|
1767
|
+
"ledger",
|
|
1768
|
+
"timetable-rows",
|
|
1769
|
+
"day-groups",
|
|
1770
|
+
"week-groups",
|
|
1771
|
+
"week-columns"
|
|
1772
|
+
];
|
|
1773
|
+
const eventListArrangementValues = [...eventCalendarListLayoutValues, ...arrangementOnlyListLayouts];
|
|
1774
|
+
const eventCalendarListLayoutOptions = [
|
|
1775
|
+
{
|
|
1776
|
+
id: "stack",
|
|
1777
|
+
label: "Stack"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
id: "grid",
|
|
1781
|
+
label: "Grid"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
id: "compact",
|
|
1785
|
+
label: "Compact"
|
|
1786
|
+
}
|
|
1787
|
+
];
|
|
1788
|
+
function isEventCalendarDisplayMode(value) {
|
|
1789
|
+
return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
|
|
1790
|
+
}
|
|
1791
|
+
function normalizeEventCalendarDisplayMode(input) {
|
|
1792
|
+
if (isEventCalendarDisplayMode(input.variant)) return input.variant;
|
|
1793
|
+
return isEventCalendarDisplayMode(input.displayMode) ? input.displayMode : void 0;
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* One closed authority for the projections each mode needs on the server. Combined always opens on
|
|
1797
|
+
* its list, so its calendar tab reads its own months in the browser when it opens.
|
|
1798
|
+
*/
|
|
1799
|
+
function resolveEventCalendarReadPlan(input) {
|
|
1800
|
+
const mode = normalizeEventCalendarDisplayMode(input) ?? "combined";
|
|
1801
|
+
switch (mode) {
|
|
1802
|
+
case "combined": return {
|
|
1803
|
+
mode,
|
|
1804
|
+
jobs: "list",
|
|
1805
|
+
readProfile: "listing-card"
|
|
1806
|
+
};
|
|
1807
|
+
case "week": return {
|
|
1808
|
+
mode,
|
|
1809
|
+
jobs: "schedule",
|
|
1810
|
+
readProfile: "listing-card"
|
|
1811
|
+
};
|
|
1812
|
+
case "list": return {
|
|
1813
|
+
mode,
|
|
1814
|
+
jobs: "list",
|
|
1815
|
+
readProfile: "listing-card"
|
|
1816
|
+
};
|
|
1817
|
+
case "calendar": return {
|
|
1818
|
+
mode,
|
|
1819
|
+
jobs: "calendar",
|
|
1820
|
+
readProfile: "listing-card"
|
|
1821
|
+
};
|
|
1822
|
+
case "timetable":
|
|
1823
|
+
case "week-board": return {
|
|
1824
|
+
mode,
|
|
1825
|
+
jobs: "calendar",
|
|
1826
|
+
readProfile: "timetable"
|
|
1827
|
+
};
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
function isEventCalendarDefaultView(value) {
|
|
1831
|
+
return typeof value === "string" && eventCalendarDefaultViewValues.includes(value);
|
|
1832
|
+
}
|
|
1833
|
+
function isEventCalendarListLayout(value) {
|
|
1834
|
+
return typeof value === "string" && eventCalendarListLayoutValues.includes(value);
|
|
1835
|
+
}
|
|
1836
|
+
/** The calendar manifest owns its secondary arrangement axis. */
|
|
1837
|
+
const eventCalendarVariantMeaning = {
|
|
1838
|
+
kind: "mode",
|
|
1839
|
+
modes: arrangementModes,
|
|
1840
|
+
defaultMode: "list",
|
|
1841
|
+
arrangementField: "listLayout",
|
|
1842
|
+
keys: eventCalendarListLayoutValues,
|
|
1843
|
+
lookOnlyKeys: [
|
|
1844
|
+
...arrangementOnlyListLayouts,
|
|
1845
|
+
"month-grid",
|
|
1846
|
+
"month-day"
|
|
1847
|
+
],
|
|
1848
|
+
defaultKey: "stack",
|
|
1849
|
+
modeLabels: {
|
|
1850
|
+
list: "List",
|
|
1851
|
+
calendar: "Month",
|
|
1852
|
+
combined: "List and month",
|
|
1853
|
+
timetable: "Timetable",
|
|
1854
|
+
"week-board": "Week board",
|
|
1855
|
+
week: "Week"
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
/** Weekly lists share the arrangement-Look admission used by calendar arrangements. */
|
|
1859
|
+
function eventCalendarListGroupingDecision(input) {
|
|
1860
|
+
const available = input.arrangementLooks && resolveEventCalendarReadPlan(input).mode === "list";
|
|
1861
|
+
return {
|
|
1862
|
+
available,
|
|
1863
|
+
grouping: available && input.listBy === "week" ? "week" : "upcoming"
|
|
1864
|
+
};
|
|
1595
1865
|
}
|
|
1596
1866
|
//#endregion
|
|
1597
1867
|
//#region ../blocks/src/system/runtime/api/schemas/bookingQuestions.ts
|
|
@@ -1908,7 +2178,6 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
1908
2178
|
const eventVenueSchema = z.object({
|
|
1909
2179
|
area: z.string().nullable().optional(),
|
|
1910
2180
|
addressWithBooking: z.boolean().optional(),
|
|
1911
|
-
drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
|
|
1912
2181
|
id: z.string(),
|
|
1913
2182
|
name: z.string(),
|
|
1914
2183
|
address: z.string().nullable(),
|
|
@@ -2089,6 +2358,34 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
2089
2358
|
/**
|
|
2090
2359
|
* Zod schema for the fields shared by both booking scopes.
|
|
2091
2360
|
*/
|
|
2361
|
+
/** An event's rooms as placement reads them. Nothing here says who has booked. */
|
|
2362
|
+
const publicEventRoomsSchema = z.object({
|
|
2363
|
+
seriesId: z.string(),
|
|
2364
|
+
arrangement: sharedRoomArrangementSchema,
|
|
2365
|
+
kinds: z.array(z.object({
|
|
2366
|
+
id: z.string(),
|
|
2367
|
+
name: z.string(),
|
|
2368
|
+
sleeps: z.number().int().positive(),
|
|
2369
|
+
description: z.string(),
|
|
2370
|
+
photos: z.array(z.object({
|
|
2371
|
+
src: z.string(),
|
|
2372
|
+
alt: z.string()
|
|
2373
|
+
})),
|
|
2374
|
+
prices: z.array(z.object({
|
|
2375
|
+
pricingOptionId: z.string(),
|
|
2376
|
+
peopleInRoom: z.number().int().positive().nullable(),
|
|
2377
|
+
priceName: z.string()
|
|
2378
|
+
}))
|
|
2379
|
+
})),
|
|
2380
|
+
rooms: z.array(z.object({
|
|
2381
|
+
id: z.string(),
|
|
2382
|
+
kindId: z.string(),
|
|
2383
|
+
setup: roomSetupSchema,
|
|
2384
|
+
occupancy: roomOccupancySchema,
|
|
2385
|
+
freePlaces: z.number().int().nonnegative()
|
|
2386
|
+
})),
|
|
2387
|
+
linkedOptionIds: z.array(z.string())
|
|
2388
|
+
});
|
|
2092
2389
|
const publicEventBaseSchema = z.object({
|
|
2093
2390
|
eventPreset: eventPresetSchema.optional(),
|
|
2094
2391
|
eventDestinationMode: eventDestinationModeSchema.optional(),
|
|
@@ -2176,7 +2473,9 @@ const publicEventBaseSchema = z.object({
|
|
|
2176
2473
|
* Wire admission reads an older server, which never sends it, as off.
|
|
2177
2474
|
*/
|
|
2178
2475
|
allowsMultipleBooking: z.boolean().default(false),
|
|
2179
|
-
combinationPrices: z.array(combinationOfferSchema).default([])
|
|
2476
|
+
combinationPrices: z.array(combinationOfferSchema).default([]),
|
|
2477
|
+
/** Only an event with rooms has this, and the page can't book it without it. */
|
|
2478
|
+
rooms: publicEventRoomsSchema.optional()
|
|
2180
2479
|
});
|
|
2181
2480
|
/**
|
|
2182
2481
|
* Zod schema for public event data.
|
|
@@ -2196,189 +2495,9 @@ const publicEventSchema = z.union([publicEventBaseSchema.extend({
|
|
|
2196
2495
|
*/
|
|
2197
2496
|
const publicEventsArraySchema = z.array(publicEventSchema);
|
|
2198
2497
|
//#endregion
|
|
2199
|
-
//#region ../
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2202
|
-
"calendar",
|
|
2203
|
-
"week",
|
|
2204
|
-
"combined"
|
|
2205
|
-
];
|
|
2206
|
-
function isArrangementMode(value) {
|
|
2207
|
-
return value === "list" || value === "calendar" || value === "week" || value === "combined";
|
|
2208
|
-
}
|
|
2209
|
-
/** Every transition that draws something; `none` is the absence of a join. */
|
|
2210
|
-
const decorativeTransitionIntentValues = [
|
|
2211
|
-
"soft-fade-short",
|
|
2212
|
-
"soft-fade-long",
|
|
2213
|
-
"soft-fade-expansive",
|
|
2214
|
-
"wave-edge",
|
|
2215
|
-
"wave-edge-balanced",
|
|
2216
|
-
"wave-edge-gentle",
|
|
2217
|
-
"wave-edge-bold",
|
|
2218
|
-
"wave-edge-drift",
|
|
2219
|
-
"wave-edge-echo",
|
|
2220
|
-
"arc-edge-echo",
|
|
2221
|
-
"arc-edge-bulge",
|
|
2222
|
-
"angle-edge",
|
|
2223
|
-
"angle-edge-subtle",
|
|
2224
|
-
"angle-edge-steep"
|
|
2225
|
-
];
|
|
2226
|
-
const tileTreatmentValues = [
|
|
2227
|
-
"default",
|
|
2228
|
-
"quiet",
|
|
2229
|
-
"brand-depth"
|
|
2230
|
-
];
|
|
2231
|
-
const eventListTreatmentValues = [
|
|
2232
|
-
"plain",
|
|
2233
|
-
"lined-panel",
|
|
2234
|
-
"ruled-register",
|
|
2235
|
-
"editorial-register",
|
|
2236
|
-
"dense-index"
|
|
2237
|
-
];
|
|
2238
|
-
const eyebrowTreatmentValues = [
|
|
2239
|
-
"plain",
|
|
2240
|
-
"accent",
|
|
2241
|
-
"pill",
|
|
2242
|
-
"accent-pill",
|
|
2243
|
-
"pill-bounce",
|
|
2244
|
-
"accent-pill-bounce"
|
|
2245
|
-
];
|
|
2246
|
-
const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
|
|
2247
|
-
const headingDecorationOverrideValues = ["site-default", "off"];
|
|
2248
|
-
const headingDecorationColorTokenValues = [
|
|
2249
|
-
"text",
|
|
2250
|
-
"primary",
|
|
2251
|
-
"secondary",
|
|
2252
|
-
"accent",
|
|
2253
|
-
"border",
|
|
2254
|
-
"muted"
|
|
2255
|
-
];
|
|
2256
|
-
const accordionIconSetValues = [
|
|
2257
|
-
"plus",
|
|
2258
|
-
"chevron",
|
|
2259
|
-
"caret",
|
|
2260
|
-
"minimal-cross"
|
|
2261
|
-
];
|
|
2262
|
-
const accordionIconColorTokenValues = [
|
|
2263
|
-
"text",
|
|
2264
|
-
"muted",
|
|
2265
|
-
"primary",
|
|
2266
|
-
"secondary",
|
|
2267
|
-
"accent",
|
|
2268
|
-
"current"
|
|
2269
|
-
];
|
|
2270
|
-
const accordionIconMotionValues = [
|
|
2271
|
-
"none",
|
|
2272
|
-
"rotate",
|
|
2273
|
-
"swap"
|
|
2274
|
-
];
|
|
2275
|
-
//#endregion
|
|
2276
|
-
//#region ../blocks/src/system/constants/events.ts
|
|
2277
|
-
/**
|
|
2278
|
-
* Event-related constants
|
|
2279
|
-
*
|
|
2280
|
-
* Shared constants for event content types and booking system integration.
|
|
2281
|
-
*/
|
|
2282
|
-
const arrangementOnlyListLayouts = [
|
|
2283
|
-
"ledger",
|
|
2284
|
-
"timetable-rows",
|
|
2285
|
-
"day-groups",
|
|
2286
|
-
"week-groups",
|
|
2287
|
-
"week-columns"
|
|
2288
|
-
];
|
|
2289
|
-
const eventListArrangementValues = [...eventCalendarListLayoutValues, ...arrangementOnlyListLayouts];
|
|
2290
|
-
const eventCalendarListLayoutOptions = [
|
|
2291
|
-
{
|
|
2292
|
-
id: "stack",
|
|
2293
|
-
label: "Stack"
|
|
2294
|
-
},
|
|
2295
|
-
{
|
|
2296
|
-
id: "grid",
|
|
2297
|
-
label: "Grid"
|
|
2298
|
-
},
|
|
2299
|
-
{
|
|
2300
|
-
id: "compact",
|
|
2301
|
-
label: "Compact"
|
|
2302
|
-
}
|
|
2303
|
-
];
|
|
2304
|
-
function isEventCalendarDisplayMode(value) {
|
|
2305
|
-
return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
|
|
2306
|
-
}
|
|
2307
|
-
function normalizeEventCalendarDisplayMode(input) {
|
|
2308
|
-
if (isEventCalendarDisplayMode(input.variant)) return input.variant;
|
|
2309
|
-
return isEventCalendarDisplayMode(input.displayMode) ? input.displayMode : void 0;
|
|
2310
|
-
}
|
|
2311
|
-
/**
|
|
2312
|
-
* One closed authority for the projections each mode needs on the server. Combined always opens on
|
|
2313
|
-
* its list, so its calendar tab reads its own months in the browser when it opens.
|
|
2314
|
-
*/
|
|
2315
|
-
function resolveEventCalendarReadPlan(input) {
|
|
2316
|
-
const mode = normalizeEventCalendarDisplayMode(input) ?? "combined";
|
|
2317
|
-
switch (mode) {
|
|
2318
|
-
case "combined": return {
|
|
2319
|
-
mode,
|
|
2320
|
-
jobs: "list",
|
|
2321
|
-
readProfile: "listing-card"
|
|
2322
|
-
};
|
|
2323
|
-
case "week": return {
|
|
2324
|
-
mode,
|
|
2325
|
-
jobs: "schedule",
|
|
2326
|
-
readProfile: "listing-card"
|
|
2327
|
-
};
|
|
2328
|
-
case "list": return {
|
|
2329
|
-
mode,
|
|
2330
|
-
jobs: "list",
|
|
2331
|
-
readProfile: "listing-card"
|
|
2332
|
-
};
|
|
2333
|
-
case "calendar": return {
|
|
2334
|
-
mode,
|
|
2335
|
-
jobs: "calendar",
|
|
2336
|
-
readProfile: "listing-card"
|
|
2337
|
-
};
|
|
2338
|
-
case "timetable":
|
|
2339
|
-
case "week-board": return {
|
|
2340
|
-
mode,
|
|
2341
|
-
jobs: "calendar",
|
|
2342
|
-
readProfile: "timetable"
|
|
2343
|
-
};
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
function isEventCalendarDefaultView(value) {
|
|
2347
|
-
return typeof value === "string" && eventCalendarDefaultViewValues.includes(value);
|
|
2348
|
-
}
|
|
2349
|
-
function isEventCalendarListLayout(value) {
|
|
2350
|
-
return typeof value === "string" && eventCalendarListLayoutValues.includes(value);
|
|
2351
|
-
}
|
|
2352
|
-
/** The calendar manifest owns its secondary arrangement axis. */
|
|
2353
|
-
const eventCalendarVariantMeaning = {
|
|
2354
|
-
kind: "mode",
|
|
2355
|
-
modes: arrangementModes,
|
|
2356
|
-
defaultMode: "list",
|
|
2357
|
-
arrangementField: "listLayout",
|
|
2358
|
-
keys: eventCalendarListLayoutValues,
|
|
2359
|
-
lookOnlyKeys: [
|
|
2360
|
-
...arrangementOnlyListLayouts,
|
|
2361
|
-
"month-grid",
|
|
2362
|
-
"month-day"
|
|
2363
|
-
],
|
|
2364
|
-
defaultKey: "stack",
|
|
2365
|
-
modeLabels: {
|
|
2366
|
-
list: "List",
|
|
2367
|
-
calendar: "Month",
|
|
2368
|
-
combined: "List and month",
|
|
2369
|
-
timetable: "Timetable",
|
|
2370
|
-
"week-board": "Week board",
|
|
2371
|
-
week: "Week"
|
|
2372
|
-
}
|
|
2373
|
-
};
|
|
2374
|
-
/** Weekly lists share the arrangement-Look admission used by calendar arrangements. */
|
|
2375
|
-
function eventCalendarListGroupingDecision(input) {
|
|
2376
|
-
const available = input.arrangementLooks && resolveEventCalendarReadPlan(input).mode === "list";
|
|
2377
|
-
return {
|
|
2378
|
-
available,
|
|
2379
|
-
grouping: available && input.listBy === "week" ? "week" : "upcoming"
|
|
2380
|
-
};
|
|
2381
|
-
}
|
|
2498
|
+
//#region ../blocks/src/system/blocks/shop.shared.ts
|
|
2499
|
+
const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassProductSchema) });
|
|
2500
|
+
const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
2382
2501
|
//#endregion
|
|
2383
2502
|
//#region ../blocks/src/system/blocks/events/shared/calendarWindow.ts
|
|
2384
2503
|
function resolveCalendarReadProfile(content) {
|
|
@@ -2468,34 +2587,15 @@ function planCalendarMonthRanges(months) {
|
|
|
2468
2587
|
return ranges;
|
|
2469
2588
|
}
|
|
2470
2589
|
//#endregion
|
|
2471
|
-
//#region ../
|
|
2472
|
-
const
|
|
2473
|
-
const
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
const EVENT_BOOKING_DECODER_QUERY = "bookingDecoder";
|
|
2480
|
-
const EVENT_BOOKING_RESPONSE_QUERY = {
|
|
2481
|
-
[EVENT_BOOKING_ARRIVAL_QUERY]: 1,
|
|
2482
|
-
[EVENT_BOOKING_DECODER_QUERY]: "tolerant"
|
|
2590
|
+
//#region ../logger/src/noop.ts
|
|
2591
|
+
const noop = () => {};
|
|
2592
|
+
const logger = {
|
|
2593
|
+
debug: noop,
|
|
2594
|
+
info: noop,
|
|
2595
|
+
warn: noop,
|
|
2596
|
+
error: noop,
|
|
2597
|
+
withFields: (_) => logger
|
|
2483
2598
|
};
|
|
2484
|
-
const eventAutoApplyDiscountPreviewBaseSchema = z.object({
|
|
2485
|
-
id: z.string(),
|
|
2486
|
-
publicLabel: z.string(),
|
|
2487
|
-
description: z.string().nullable(),
|
|
2488
|
-
minTicketsRequired: z.number().nullable()
|
|
2489
|
-
});
|
|
2490
|
-
const eventAutoApplyDiscountPreviewSchema = z.discriminatedUnion("discountType", [eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
2491
|
-
discountType: z.literal("percent"),
|
|
2492
|
-
discountPercent: z.number(),
|
|
2493
|
-
discountAmountCents: z.null()
|
|
2494
|
-
}), eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
2495
|
-
discountType: z.literal("fixed"),
|
|
2496
|
-
discountPercent: z.null(),
|
|
2497
|
-
discountAmountCents: z.number()
|
|
2498
|
-
})]);
|
|
2499
2599
|
//#endregion
|
|
2500
2600
|
//#region ../blocks/src/system/blocks/shared/siteTerms.ts
|
|
2501
2601
|
const versionId = z.string().uuid().transform((value, ctx) => {
|
|
@@ -2577,14 +2677,4 @@ function assertNever(value, message) {
|
|
|
2577
2677
|
throw new Error(message ?? `Unexpected value: ${String(value)}`);
|
|
2578
2678
|
}
|
|
2579
2679
|
//#endregion
|
|
2580
|
-
|
|
2581
|
-
const noop = () => {};
|
|
2582
|
-
const logger = {
|
|
2583
|
-
debug: noop,
|
|
2584
|
-
info: noop,
|
|
2585
|
-
warn: noop,
|
|
2586
|
-
error: noop,
|
|
2587
|
-
withFields: (_) => logger
|
|
2588
|
-
};
|
|
2589
|
-
//#endregion
|
|
2590
|
-
export { toBookingRequirementConsentField as $, formatSiteInstantTime as $t, normalizeEventCalendarDisplayMode as A, publicEventLoaderQuerySchemaShape as At, headingDecorationOverrideValues as B, projectPublicLocation as Bt, eventCalendarListGroupingDecision as C, formatGiftCardAmountLabel as Cn, purchasablePublicMembershipProductSchema as Ct, isEventCalendarDefaultView as D, eventScheduleScopeValues as Dt, eventListArrangementValues as E, calendarWindowQuerySchema as Et, arrangementModes as F, EVENT_PRESET_VALUES as Ft, publicEventDestinationSchema as G, mapDrawingSchema as Gt, tileTreatmentValues as H, toLocationCoordinates as Ht, decorativeTransitionIntentValues as I, WHOLE_SERIES_EVENT_PRESET_VALUES as It, publicEventsArraySchema as J, formatDate as Jt, publicEventPricingSchema as K, buildBookingUtcDateWindow as Kt, eventListTreatmentValues as L, locationValueSchema as Lt, accordionIconColorTokenValues as M, allocateReductionCents as Mt, accordionIconMotionValues as N, normalizeCurrencyCode as Nt, isEventCalendarDisplayMode as O, eventSurfacePresetValues as Ot, accordionIconSetValues as P, isRecord as Pt, isBookingRequirementConsentFieldId as Q, formatSiteInstantDate as Qt, eyebrowTreatmentValues as R, normalizeLocationAddressText as Rt, resolveCalendarReadProfile as S, formatCurrencyAmount as Sn, publicProductSchema as St, eventCalendarVariantMeaning as T, calendarMonthDate as Tt, visibleHeadingDecorationFamilyValues as U, capitalize as Ut, isArrangementMode as V, publicLocationSchema as Vt, eventVenueDrawingSchema as W, trimmedStringOrNull as Wt, blockBookingConsentSchema as X, formatDateTime as Xt, blockBookingPaymentTermsSchema as Y, formatDateRange as Yt, bookingConsentCarrierSchema as Z, formatDateTimeRange as Zt, calendarQueryKey as _, resolveBookingTimeZoneId as _n, eventCalendarDisplayModeValues as _t, okWith as a, formatBookingCompactEnglishTime as an, isRichTextDoc as at, calendarWindowPageSchema as b, parsePositiveMoneyInputToCents as bn, publicMembershipProductSchema as bt, reportWorkflowSuccess as c, compareLocalScheduleDates as cn, imageMediaSchema as ct, EVENT_BOOKING_RESPONSE_QUERY as d, getLocalScheduleDate as dn, runtimeMediaSchema as dt, formatTime as en, beforeBookingQuestionsPresentationSchema as et, eventAutoApplyDiscountPreviewSchema as f, parseBookingLocalDate as fn, videoMediaSchema as ft, calendarPageResponseError as g, resolveBookingBusinessTimeZone as gn, eventCalendarDefaultViewValues as gt, calendarMonthKey as h, toUtcIsoDateTimeString as hn, mediaTypeDiscriminants as ht, ok as i, resolveBookingDisplayContext as in, createRichTextDoc as it, resolveEventCalendarReadPlan as j, unsafeAsPositiveCheckoutQuantity as jt, isEventCalendarListLayout as k, eventSurfaceScopeValues as kt, blockSiteTermsSchema as l, formatLocalScheduleDate as ln, mediaSchema as lt, publicPassProductCollectionSchema as m, parseUtcIsoDateTimeString as mn, isDisplayMediaKind as mt, assertNever as n, formatTimeZoneCityLabel as nn, RichTextDocSchema as nt, clearWorkflowFeedback as o, toScheduledBookingDateTime as on, assetMediaSchema as ot, publicMembershipProductCollectionSchema as p, parseLocalScheduleTime as pn, PUBLIC_FILE_FIELD_KINDS as pt, publicEventSchema as q, validateBookingPaymentOptionKinds as qt, err as r, inferSiteDateLocale as rn, buildRichTextSchema as rt, reportWorkflowError as s, addLocalScheduleDays as sn, externalMediaSchema as st, logger as t, formatTimeRange as tn, bookingQuestionsAnswerValueSchema as tt, verifiedSiteTermsAcceptanceSchema as u, getBookingLocalDateKey as un, persistableMediaSchema as ut, calendarWindowBounds as v, toBookingTimeZone as vn, eventCalendarListLayoutCompatibleDisplayModeValues as vt, eventCalendarListLayoutOptions as w, purchasablePublicPassProductSchema as wt, planCalendarMonthRanges as x, toNonNegativeCents as xn, publicPassProductSchema as xt, calendarWindowMonths as y, parsePositiveCents as yn, eventCalendarListLayoutValues as yt, headingDecorationColorTokenValues as z, parseLocationValue as zt };
|
|
2680
|
+
export { PUBLIC_FILE_FIELD_KINDS as $, formatDateTime as $t, toBookingRequirementConsentField as A, calendarMonthDate as At, normalizeEventCalendarDisplayMode as B, normalizeLocationAddressText as Bt, publicEventPricingSchema as C, parsePositiveMoneyInputToCents as Cn, eventCalendarListLayoutCompatibleDisplayModeValues as Ct, blockBookingConsentSchema as D, publicProductSchema as Dt, blockBookingPaymentTermsSchema as E, formatGiftCardAmountLabel as En, publicPassProductSchema as Et, eventCalendarVariantMeaning as F, publicEventLoaderQuerySchemaShape as Ft, isRichTextDoc as G, capitalize as Gt, RichTextDocSchema as H, projectPublicLocation as Ht, eventListArrangementValues as I, isRecord as It, imageMediaSchema as J, mapDrawingSchema as Jt, assetMediaSchema as K, hasText as Kt, isEventCalendarDefaultView as L, EVENT_PRESET_VALUES as Lt, bookingQuestionsAnswerValueSchema as M, eventScheduleScopeValues as Mt, eventCalendarListGroupingDecision as N, eventSurfacePresetValues as Nt, bookingConsentCarrierSchema as O, purchasablePublicMembershipProductSchema as Ot, eventCalendarListLayoutOptions as P, eventSurfaceScopeValues as Pt, videoMediaSchema as Q, formatDateRange as Qt, isEventCalendarDisplayMode as R, WHOLE_SERIES_EVENT_PRESET_VALUES as Rt, publicEventDestinationSchema as S, parsePositiveCents as Sn, eventCalendarDisplayModeValues as St, publicEventsArraySchema as T, formatCurrencyAmount as Tn, publicMembershipProductSchema as Tt, buildRichTextSchema as U, publicLocationSchema as Ut, resolveEventCalendarReadPlan as V, parseLocationValue as Vt, createRichTextDoc as W, toLocationCoordinates as Wt, persistableMediaSchema as X, validateBookingPaymentOptionKinds as Xt, mediaSchema as Y, buildBookingUtcDateWindow as Yt, runtimeMediaSchema as Z, formatDate as Zt, planCalendarMonthRanges as _, parseUtcIsoDateTimeString as _n, roomChoicesSchema as _t, clearWorkflowFeedback as a, formatTimeZoneCityLabel as an, arrangementModes as at, publicPassProductCollectionSchema as b, resolveBookingTimeZoneId as bn, normalizeCurrencyCode as bt, blockSiteTermsSchema as c, formatBookingCompactEnglishTime as cn, eyebrowTreatmentValues as ct, calendarMonthKey as d, compareLocalScheduleDates as dn, isArrangementMode as dt, formatDateTimeRange as en, isDisplayMediaKind as et, calendarPageResponseError as f, formatLocalScheduleDate as fn, tileTreatmentValues as ft, calendarWindowPageSchema as g, parseLocalScheduleTime as gn, reviewedRoomsSchema as gt, calendarWindowMonths as h, parseBookingLocalDate as hn, placesFor as ht, okWith as i, formatTimeRange as in, accordionIconSetValues as it, beforeBookingQuestionsPresentationSchema as j, calendarWindowQuerySchema as jt, isBookingRequirementConsentFieldId as k, purchasablePublicPassProductSchema as kt, verifiedSiteTermsAcceptanceSchema as l, toScheduledBookingDateTime as ln, headingDecorationColorTokenValues as lt, calendarWindowBounds as m, getLocalScheduleDate as mn, ROOM_PLACES as mt, err as n, formatSiteInstantTime as nn, accordionIconColorTokenValues as nt, reportWorkflowError as o, inferSiteDateLocale as on, decorativeTransitionIntentValues as ot, calendarQueryKey as p, getBookingLocalDateKey as pn, visibleHeadingDecorationFamilyValues as pt, externalMediaSchema as q, trimmedStringOrNull as qt, ok as r, formatTime as rn, accordionIconMotionValues as rt, reportWorkflowSuccess as s, resolveBookingDisplayContext as sn, eventListTreatmentValues as st, assertNever as t, formatSiteInstantDate as tn, mediaTypeDiscriminants as tt, logger as u, addLocalScheduleDays as un, headingDecorationOverrideValues as ut, resolveCalendarReadProfile as v, toUtcIsoDateTimeString as vn, unsafeAsPositiveCheckoutQuantity as vt, publicEventSchema as w, toNonNegativeCents as wn, eventCalendarListLayoutValues as wt, eventVenueDrawingSchema as x, toBookingTimeZone as xn, eventCalendarDefaultViewValues as xt, publicMembershipProductCollectionSchema as y, resolveBookingBusinessTimeZone as yn, allocateReductionCents as yt, isEventCalendarListLayout as z, locationValueSchema as zt };
|