@riverbankcms/sdk 0.172.0 → 0.174.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 +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-Cr-sOeSl.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-CJ2O03nB.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-Dns7OHyl.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Be1E-H-V.d.ts} +4892 -1720
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-B4sbTf96.d.ts} +2 -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 -9
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/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 +6 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +4 -2
- 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 +13 -8
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- 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 +36 -204
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-DrinAfeW.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-CAyoiAGD.mjs} +18 -12
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +22 -22
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-BiWQc28-.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-B_ytWQtn.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-C-mxXpX_.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-CN7BjGgC.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +848 -146
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page--xJ23nA5.mjs} +1160 -521
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-D391QRNc.mjs} +85 -13
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-DN8it_Cx.mjs} +36 -27
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/bookability-CE637yDE.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +206 -7
- package/dist/client/{context-xNC1Cyjw.mjs → context-CNlesLfF.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-q1sA4Cj-.mjs} +77 -3
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-D8MW2b0e.mjs} +3076 -819
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-b5TLxntR.mjs} +1315 -553
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-D5mFWXtN.mjs} +139 -12
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-ClcfWpvM.mjs} +93 -63
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +34 -61
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -11
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DidgH7ow.mjs +166 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-CbbdjWWd.mjs} +13 -12
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CKFORzux.mjs} +45 -29
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CtZiIj9q.mjs} +25 -15
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-CUVRD1nx.mjs} +39 -8
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-BZU5DWZQ.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-DNNNbnNj.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-B0TFnP4y.mjs → view-CxUpgcM6.mjs} +56 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-BFbSrDbi.mjs} +80 -160
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +780 -1634
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-BW3Qpoa_.mjs} +52 -32
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -69
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-BUqAh1FL.mjs} +98429 -46667
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-LAllV0rU.mjs} +8 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-DV6SeCNv.mjs} +200 -2
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-Ch2FKAvU.mjs} +11 -6
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-DFvjDVzi.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-dROAfMRa.mjs → client-aYRTVneD.mjs} +205 -6
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-Cgpfr44e.mjs} +8 -10
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CkFTsxkd.mjs} +166 -42
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +15 -7
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-B8yLPjs0.mjs} +531 -117
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-CfOXFKYG.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-34rkAfaU.mjs} +1409 -3314
- 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 +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-CUDHMirj.mjs} +440 -154
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-DAQdPDku.mjs → validation-CLVKoJrX.mjs} +5 -5
- package/dist/server/{version-DAB0O3yx.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +1038 -200
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-CrgS3I8d.mjs +0 -53534
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { I as resolveEventRegistrationEventSource,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
2
|
+
import { I as resolveEventRegistrationEventSource, lt as closedRunCopy } from "./shop.interactive-CKFORzux.mjs";
|
|
3
|
+
import { La as normalizeEventRegistrationPageSurfaceSubject, Nr as eventDateOptions, Ra as resolveEventRegistrationScopedEvents, fc as orderedLiveRunSessions, oi as groupPublicEventsByRun, pc as resolveWholeSeriesBookingPhase, pr as bookingPresentation, uc as firstLiveRunSessionStartMs } from "./display-D8MW2b0e.mjs";
|
|
4
|
+
import { Bt as formatDate, ln as toUtcIsoDateTimeString } from "./noop-D5mFWXtN.mjs";
|
|
5
|
+
import { A as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
6
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-CNDLpT06.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { t as isBookableEvent } from "./bookability-CE637yDE.mjs";
|
|
9
|
+
import { n as StepIndicator$1, t as BookingPanelArrangement } from "./BookingPanelArrangement-C7yiJrxm.mjs";
|
|
9
10
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
11
|
import React from "react";
|
|
11
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -29,10 +30,18 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
29
30
|
* booking.
|
|
30
31
|
*/
|
|
31
32
|
function planWholeSeriesParentBooking(eligibleRuns) {
|
|
32
|
-
const [first, ...rest] = eligibleRuns;
|
|
33
|
-
|
|
33
|
+
const [first, second, ...rest] = eligibleRuns;
|
|
34
|
+
if (!second) return {
|
|
34
35
|
kind: "single",
|
|
35
36
|
run: first
|
|
37
|
+
};
|
|
38
|
+
return eligibleRuns.every((group) => group.representative.allowsMultipleBooking) ? {
|
|
39
|
+
kind: "bookTogether",
|
|
40
|
+
runs: [
|
|
41
|
+
first,
|
|
42
|
+
second,
|
|
43
|
+
...rest
|
|
44
|
+
]
|
|
36
45
|
} : {
|
|
37
46
|
kind: "choice",
|
|
38
47
|
runs: eligibleRuns
|
|
@@ -42,6 +51,45 @@ function isOrdinaryPublicEvent(event) {
|
|
|
42
51
|
return event.bookingScope === "single_occurrence";
|
|
43
52
|
}
|
|
44
53
|
/**
|
|
54
|
+
* What a series' own page shows when its URL names no date.
|
|
55
|
+
*
|
|
56
|
+
* Two or more dates a visitor can book make a choice: the page lists every
|
|
57
|
+
* date whose booking is open and lets the visitor pick, so a full date still
|
|
58
|
+
* shows as full rather than vanishing. One bookable date isn't a choice, so the
|
|
59
|
+
* page books that date. With none, the first date speaks for the page and shows
|
|
60
|
+
* its own full or closed state.
|
|
61
|
+
*
|
|
62
|
+
* The caller passes every date it read for the series, not the cards a listing
|
|
63
|
+
* happened to show, so the one-date shortcut is decided on the complete set.
|
|
64
|
+
* "Has places" isn't enough on its own: only a date whose booking is open
|
|
65
|
+
* counts, and a drop-in date never does.
|
|
66
|
+
*/
|
|
67
|
+
function planOrdinarySeriesSelection(events) {
|
|
68
|
+
const ordinary = events.filter(isOrdinaryPublicEvent);
|
|
69
|
+
const firstSeriesId = ordinary[0]?.seriesId;
|
|
70
|
+
if (!firstSeriesId || ordinary.some((event) => event.seriesId !== firstSeriesId)) return null;
|
|
71
|
+
const [first, second] = ordinary.filter(isBookableEvent);
|
|
72
|
+
if (first && second) {
|
|
73
|
+
const [a, b, ...rest] = [...ordinary].filter(isOpenForBooking).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
74
|
+
if (a && b) return {
|
|
75
|
+
kind: "dateChoice",
|
|
76
|
+
dates: [
|
|
77
|
+
a,
|
|
78
|
+
b,
|
|
79
|
+
...rest
|
|
80
|
+
]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
const event = first ?? ordinary[0];
|
|
84
|
+
return event ? {
|
|
85
|
+
kind: "occurrence",
|
|
86
|
+
event
|
|
87
|
+
} : null;
|
|
88
|
+
}
|
|
89
|
+
function isOpenForBooking(event) {
|
|
90
|
+
return event.requiresRegistration && event.bookingAvailability.kind === "open";
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
45
93
|
* Whether a parent Event page advertises this run.
|
|
46
94
|
*
|
|
47
95
|
* Visibility admission belongs to the scoped public read. Active, still-open
|
|
@@ -154,6 +202,7 @@ function planWholeSeriesRunSelection(input) {
|
|
|
154
202
|
function selectionRepresentativeEvent(selection) {
|
|
155
203
|
switch (selection.kind) {
|
|
156
204
|
case "occurrence": return selection.event;
|
|
205
|
+
case "dateChoice": return selection.dates[0];
|
|
157
206
|
case "wholeSeriesParent": return selection.eligibleRuns[0].representative;
|
|
158
207
|
case "wholeSeriesParentUnavailable": return selection.informationalRun.representative;
|
|
159
208
|
case "wholeSeriesRun": return selection.run.representative;
|
|
@@ -169,6 +218,7 @@ function resolveSelectionBookingClosedDetail(selection) {
|
|
|
169
218
|
switch (selection.kind) {
|
|
170
219
|
case "occurrence": return selection.event.bookingClosedDetail ?? null;
|
|
171
220
|
case "wholeSeriesRun": return selection.run.representative.bookingClosedDetail ?? null;
|
|
221
|
+
case "dateChoice":
|
|
172
222
|
case "wholeSeriesParent": return null;
|
|
173
223
|
case "wholeSeriesParentUnavailable": return selection.bookingClosedDetail;
|
|
174
224
|
}
|
|
@@ -191,7 +241,8 @@ function eventOccurrenceContext(event) {
|
|
|
191
241
|
seriesId: event.seriesId,
|
|
192
242
|
startsAt: event.startsAt,
|
|
193
243
|
endsAt: event.endsAt,
|
|
194
|
-
timeZone: event.timeZone
|
|
244
|
+
timeZone: event.timeZone,
|
|
245
|
+
...event.occurrenceTitle ? { overrides: { title: event.occurrenceTitle } } : {}
|
|
195
246
|
};
|
|
196
247
|
}
|
|
197
248
|
//#endregion
|
|
@@ -392,6 +443,7 @@ function selectPagePanel(source, events) {
|
|
|
392
443
|
eventSeriesId: source.subject.eventSeriesId,
|
|
393
444
|
events
|
|
394
445
|
});
|
|
446
|
+
if (!source.occurrenceContext && source.subject?.kind === "eventSeries") return planOrdinarySeriesSelection(events);
|
|
395
447
|
return selectOccurrenceForPanel(events, source.occurrenceContext?.id);
|
|
396
448
|
}
|
|
397
449
|
/** The decided target is also retained for recovery when fresh booking is closed. */
|
|
@@ -415,6 +467,7 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
415
467
|
const nonBookingPanel = planNonBookingPanel(selection);
|
|
416
468
|
switch (selection.kind) {
|
|
417
469
|
case "occurrence":
|
|
470
|
+
case "dateChoice":
|
|
418
471
|
case "wholeSeriesRun": {
|
|
419
472
|
const registration = selectionRegistrationTarget(selection, subject);
|
|
420
473
|
if (nonBookingPanel) return {
|
|
@@ -431,10 +484,24 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
431
484
|
registration
|
|
432
485
|
};
|
|
433
486
|
}
|
|
434
|
-
case "wholeSeriesParent":
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
487
|
+
case "wholeSeriesParent": {
|
|
488
|
+
if (nonBookingPanel) return {
|
|
489
|
+
...nonBookingPanel,
|
|
490
|
+
registration: null
|
|
491
|
+
};
|
|
492
|
+
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
493
|
+
return panel.kind === "bookTogether" ? {
|
|
494
|
+
kind: "registration",
|
|
495
|
+
registration: {
|
|
496
|
+
events: panel.runs.map((run) => run.representative),
|
|
497
|
+
subject,
|
|
498
|
+
occurrenceContext: null
|
|
499
|
+
}
|
|
500
|
+
} : {
|
|
501
|
+
...panel,
|
|
502
|
+
registration: null
|
|
503
|
+
};
|
|
504
|
+
}
|
|
438
505
|
case "wholeSeriesParentUnavailable": return {
|
|
439
506
|
...nonBookingPanel ?? { kind: "unavailable" },
|
|
440
507
|
registration: null
|
|
@@ -460,6 +527,11 @@ function selectionRegistrationTarget(selection, subject) {
|
|
|
460
527
|
occurrenceContext: eventOccurrenceContext(selection.event),
|
|
461
528
|
subject
|
|
462
529
|
};
|
|
530
|
+
case "dateChoice": return {
|
|
531
|
+
events: [...selection.dates],
|
|
532
|
+
occurrenceContext: null,
|
|
533
|
+
subject
|
|
534
|
+
};
|
|
463
535
|
case "wholeSeriesRun": return {
|
|
464
536
|
events: [selection.run.representative],
|
|
465
537
|
occurrenceContext: null,
|
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
2
3
|
import { C as paletteColorsFromEntries, D as parseThemeColorToken, E as parseColorTokenParts, T as paletteModeSchema, _ as PALETTE_TOKEN_NAMES, c as buttonEffectApplicationSchema, g as VARIANT_ROLES, m as parseOpaqueButtonColourToken, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, x as normalizePaletteHex, y as hexColorSchema } from "./types-DjWUR_O6.mjs";
|
|
3
4
|
import { t as SURFACE_TRANSPORT_KEY } from "./surfaceTransportMarker-BuwkYxsI.mjs";
|
|
4
5
|
import { z } from "zod";
|
|
5
|
-
//#region ../core/src/stable-json.ts
|
|
6
|
-
function stableJsonStringify(value) {
|
|
7
|
-
return JSON.stringify(sortStableJsonValue(value));
|
|
8
|
-
}
|
|
9
|
-
function sortStableJsonValue(value) {
|
|
10
|
-
if (value === null) return null;
|
|
11
|
-
if (typeof value === "string" || typeof value === "boolean") return value;
|
|
12
|
-
if (typeof value === "number") {
|
|
13
|
-
if (!Number.isFinite(value)) throw new TypeError("Stable JSON only supports finite numbers");
|
|
14
|
-
return value;
|
|
15
|
-
}
|
|
16
|
-
if (Array.isArray(value)) return value.map(sortStableJsonValue);
|
|
17
|
-
if (typeof value === "object") {
|
|
18
|
-
const prototype = Object.getPrototypeOf(value);
|
|
19
|
-
if (prototype !== Object.prototype && prototype !== null) throw new TypeError("Stable JSON only supports plain objects");
|
|
20
|
-
return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([key, child]) => [key, sortStableJsonValue(child)]));
|
|
21
|
-
}
|
|
22
|
-
throw new TypeError(`Stable JSON does not support ${typeof value}`);
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
6
|
//#region ../theme-core/src/palette/utils/colorConversion.ts
|
|
26
7
|
const clamp01 = (x) => Math.max(0, Math.min(1, x));
|
|
27
8
|
const mod = (a, n) => (a % n + n) % n;
|
|
@@ -464,13 +445,23 @@ function surfaceForegroundValue(role, outsideProviderFallback = DEFAULT_ROLE_FAL
|
|
|
464
445
|
if (role === "linkHover") return `var(${roleVariable}, ${surfaceForegroundValue("link", fallback)})`;
|
|
465
446
|
return `var(${roleVariable}, var(${SURFACE_FOREGROUND_CSS_VARS.text}, ${fallback}))`;
|
|
466
447
|
}
|
|
467
|
-
/** The
|
|
448
|
+
/** The solved inks, published beside the foreground roles by the same surfaces. */
|
|
468
449
|
const SURFACE_INK_CSS_VARS = {
|
|
469
450
|
brand: "--rb-surface-brand-color",
|
|
470
451
|
accent: "--rb-surface-accent-color",
|
|
471
|
-
focus: "--rb-surface-focus-color"
|
|
452
|
+
focus: "--rb-surface-focus-color",
|
|
453
|
+
control: "--rb-surface-control-color"
|
|
472
454
|
};
|
|
473
455
|
/**
|
|
456
|
+
* Read a solved ink, falling back straight to the declaration's own previous
|
|
457
|
+
* expression. Unlike `surfaceForegroundValue` this never falls through to
|
|
458
|
+
* `--rb-surface-text-color`: where no ink is published (bridge pages, unmeasured
|
|
459
|
+
* paints) brand text must keep its brand colour, not turn into the text ink.
|
|
460
|
+
*/
|
|
461
|
+
function surfaceInkValue(role, previousExpression) {
|
|
462
|
+
return `var(${SURFACE_INK_CSS_VARS[role]}, ${requireSurfaceColorValue("fallback", previousExpression)})`;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
474
465
|
* The declarations for a surface's ink publication. An exact ink is a token
|
|
475
466
|
* reference (`rgb(var(--tb-primary))`), so a site's own token value wins; a
|
|
476
467
|
* nudged or replaced ink is a literal colour.
|
|
@@ -493,7 +484,8 @@ function inkVariables(value) {
|
|
|
493
484
|
return {
|
|
494
485
|
[SURFACE_INK_CSS_VARS.brand]: value("brand"),
|
|
495
486
|
[SURFACE_INK_CSS_VARS.accent]: value("accent"),
|
|
496
|
-
[SURFACE_INK_CSS_VARS.focus]: value("focus")
|
|
487
|
+
[SURFACE_INK_CSS_VARS.focus]: value("focus"),
|
|
488
|
+
[SURFACE_INK_CSS_VARS.control]: value("control")
|
|
497
489
|
};
|
|
498
490
|
}
|
|
499
491
|
function surfaceForegroundValueWithOpacity(role, opacityPercent) {
|
|
@@ -1111,6 +1103,14 @@ function inkFrom(family, paint, ratio, maxDistance = BRAND_INK_MAX_DELTA_E) {
|
|
|
1111
1103
|
}
|
|
1112
1104
|
//#endregion
|
|
1113
1105
|
//#region ../theme-core/src/surfaces/surfaceInks.ts
|
|
1106
|
+
/** Lines and focus rings are graphics: WCAG non-text contrast. */
|
|
1107
|
+
const GRAPHIC_MIN_CONTRAST_RATIO = 3;
|
|
1108
|
+
/**
|
|
1109
|
+
* The palette token the control edge ink is solved from. Input styles whose
|
|
1110
|
+
* border uses another token keep their own colour, since this ink would carry
|
|
1111
|
+
* the wrong hue for them.
|
|
1112
|
+
*/
|
|
1113
|
+
const CONTROL_EDGE_SEED_TOKEN = "border";
|
|
1114
1114
|
const INK_SEEDS = {
|
|
1115
1115
|
brand: {
|
|
1116
1116
|
token: "primary",
|
|
@@ -1122,11 +1122,16 @@ const INK_SEEDS = {
|
|
|
1122
1122
|
},
|
|
1123
1123
|
focus: {
|
|
1124
1124
|
token: "primary",
|
|
1125
|
-
ratio:
|
|
1125
|
+
ratio: GRAPHIC_MIN_CONTRAST_RATIO
|
|
1126
|
+
},
|
|
1127
|
+
control: {
|
|
1128
|
+
token: CONTROL_EDGE_SEED_TOKEN,
|
|
1129
|
+
ratio: GRAPHIC_MIN_CONTRAST_RATIO,
|
|
1130
|
+
maxDistance: 2
|
|
1126
1131
|
}
|
|
1127
1132
|
};
|
|
1128
1133
|
/**
|
|
1129
|
-
* Solve the
|
|
1134
|
+
* Solve the inks for a measured solid paint. `textInk` is the surface's
|
|
1130
1135
|
* own (already certified) text ink: it stands in when the owner's colour is
|
|
1131
1136
|
* missing, or can only clear the paint by drifting too far from itself.
|
|
1132
1137
|
* A block owner can supply an authored shade candidate for a local ink.
|
|
@@ -1146,6 +1151,10 @@ function solveSurfaceInks(backdropHex, textInk, palette, candidates = {}) {
|
|
|
1146
1151
|
focus: solveInk({
|
|
1147
1152
|
...INK_SEEDS.focus,
|
|
1148
1153
|
token: candidates.focus ?? INK_SEEDS.focus.token
|
|
1154
|
+
}, paint, palette, fallback),
|
|
1155
|
+
control: solveInk({
|
|
1156
|
+
...INK_SEEDS.control,
|
|
1157
|
+
token: candidates.control ?? INK_SEEDS.control.token
|
|
1149
1158
|
}, paint, palette, fallback)
|
|
1150
1159
|
};
|
|
1151
1160
|
}
|
|
@@ -1153,7 +1162,7 @@ function solveInk(seed, paint, palette, fallback) {
|
|
|
1153
1162
|
const token = parseThemeColorToken(seed.token);
|
|
1154
1163
|
const seedHex = hexColorSchema.safeParse(resolveConcreteColorHex(seed.token, palette));
|
|
1155
1164
|
if (!token || !seedHex.success) return fallback;
|
|
1156
|
-
const solved = inkFrom(familyOf(seedHex.data), paint, seed.ratio);
|
|
1165
|
+
const solved = inkFrom(familyOf(seedHex.data), paint, seed.ratio, seed.maxDistance);
|
|
1157
1166
|
switch (solved.kind) {
|
|
1158
1167
|
case "ink": return solved.source === "exact" ? token : literalInk(solved.hex);
|
|
1159
1168
|
case "too-far":
|
|
@@ -4388,4 +4397,4 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
4388
4397
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
4389
4398
|
}
|
|
4390
4399
|
//#endregion
|
|
4391
|
-
export { solveSurfaceInks as $, DEFAULT_BUTTON_SIZES as A,
|
|
4400
|
+
export { solveSurfaceInks as $, DEFAULT_BUTTON_SIZES as A, featuresFromHex as At, resolveThemeColorReferenceValue as B, buttonRadius as C, resolveOpaqueSurfaceHex as Ct, materializeRuntimeButtonAppearance as D, contrastRatio as Dt, buttonTypographyDeclarations as E, requirePaletteColorsFromEntries as Et, defineButtonStyleRecipe as F, rgbToHex as Ft, mergeStyles as G, backgroundColorStyle as H, mapButtonRoleAppearances as I, srgbToOklab as It, textColorValue as J, rgbColorValue as K, mapButtonVisualAppearances as L, FONT_SIZE_MAP as M, oklabToOklch as Mt, generateShadowValue as N, oklabToSrgb as Nt, paddingDeclarations as O, preparePaletteColourIndex as Ot, PUBLIC_BUTTON_ROLES as P, oklchToHexGamut as Pt, CONTROL_EDGE_SEED_TOKEN as Q, isCssColorLiteral as R, buttonBorder as S, resolveConcreteColorHex as St, buttonStateAppearanceDeclarations as T, paletteValueKeySchema as Tt, borderColorStyle as U, resolveTokenOrCssColorValue as V, cssVarValue as W, safeTokenOr as X, resolveSurfaceForeground as Y, surfaceInkPublication as Z, contextualButtonSurfaceResetStyles as _, surfaceInkDeclarations as _t, requireResolvedSurface as a, inkReference as at, BUTTON_CONTRAST_POLICY as b, freezeOwnedThemeValue as bt, surfaceButtonRequest as c, planForegroundHover as ct, toAccessibleColorSurfaceIntent as d, SURFACE_INK_CSS_VARS as dt, _classPrivateFieldGet2 as et, compositeHex as f, surfaceForegroundDeclarations as ft, actionVariableFallback as g, surfaceForegroundValueWithOpacity as gt, scrimTone as h, surfaceForegroundValue as ht, prepareThemeSurfaceRevision as i, contrastThresholdByPolicy as it, ELEVATION_OFFSET as j, hexToRgb as jt, BORDER_WIDTH_MAP as k, _classPrivateFieldInitSpec as kt, surfaceDecorationColors as l, DEFAULT_SURFACE_TEXT_COLOR as lt, minimumScrimOpacity as m, surfaceForegroundStyle as mt, parseSurfaceTree as n, HOVER_TEXT_THRESHOLD as nt, resolveSurface as o, expandPalette as ot, gradientScrimSamples as p, surfaceForegroundInputFromResolved as pt, textColorStyle as q, prepareSurfaceIndex as r, certifyPaint as rt, serializeSurfaceTree as s, getTextColorForBackground as st, parseResolvedSurface as t, _classPrivateFieldSet2 as tt, surfaceTransportContext as u, SURFACE_FOREGROUND_CSS_VARS as ut, compileButtonColourStates as v, surfaceInkStyle as vt, buttonShadow as w, paletteValueKey as wt, formatButtonColourContractError as x, ownedThemeSnapshot as xt, resolveSolidButtonColour as y, surfaceInkValue as yt, resolveOnColorForThemeToken as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BiEyK2ii.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Xr as canJoinEventWaitlistOnAnyMode, ri as isEventFull } from "./display-D8MW2b0e.mjs";
|
|
3
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
4
|
+
/**
|
|
5
|
+
* Whether a public event has a registration path a visitor can take.
|
|
6
|
+
*
|
|
7
|
+
* Lifecycle admission comes from the public booking-availability contract;
|
|
8
|
+
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
9
|
+
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
10
|
+
*/
|
|
11
|
+
function isBookableEvent(event) {
|
|
12
|
+
if (!event.requiresRegistration) return false;
|
|
13
|
+
if (event.bookingAvailability.kind !== "open") return false;
|
|
14
|
+
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { isBookableEvent as t };
|