@riverbankcms/sdk 0.173.0 → 0.174.1
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-O50mTMCY.d.ts → BlocksIslandsHydrator-YRmc-Yxz.d.ts} +1 -1
- package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-Du0zX1B-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-4L8v3FkY.d.ts} +14 -7
- package/dist/_dts/{client-ZlNEIvlU.d.ts → client-B1J6Akyf.d.ts} +1 -1
- package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-CGGYI0u_.d.ts} +2 -2
- package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CHMlw9hT.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DIHSU1Vr.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-JITXD6BU.d.ts} +2 -2
- package/dist/_dts/{index-Dq_AboWN.d.ts → index-BLEKFHt1.d.ts} +1 -1
- package/dist/_dts/{index-BnatulTs.d.ts → index-BgOr1Xyz.d.ts} +3 -3
- package/dist/_dts/{index-KXh8FQ2s.d.ts → index-CF62FntA.d.ts} +2 -2
- package/dist/_dts/{index-CJzs-yIJ.d.ts → index-CXZSy_9M.d.ts} +2 -2
- package/dist/_dts/{index-DutLU2d2.d.ts → index-D9ZYmGAJ.d.ts} +2 -1
- package/dist/_dts/{index-DW3eeNph.d.ts → index-DpJm0NpL.d.ts} +4 -4
- package/dist/_dts/{index-C611wjIL.d.ts → index-yWDbUojb.d.ts} +1 -1
- package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-M-s0p0rq.d.ts} +11 -11
- package/dist/_dts/{request-Bysk4QPI.d.ts → request-BK-pHf0P.d.ts} +3685 -1762
- package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-DZAlnhwt.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CGa6QMgc.d.ts → resolvePageContent-DXUCWJ3y.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 +3 -3
- 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-BwitGNTl.d.ts → types-CwmB2NHU.d.ts} +7 -7
- package/dist/_dts/{types-BoEk9ZON.d.ts → types-DjVNADXR.d.ts} +3 -3
- package/dist/_dts/{types-kpp8XyXv.d.ts → types-Dmow_FI6.d.ts} +2 -2
- package/dist/_dts/{validation-ChftKX-o.d.ts → validation-h8t1HLlL.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DRVx_XLi.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CwrMzj-k.mjs} +10 -10
- package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C2_hFT6K.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-Az1-TIEI.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-1p-pJ1lg.mjs} +5 -5
- package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-CDkkP-Lv.mjs} +9 -9
- package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-DK3aaz62.mjs} +7 -7
- package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-WeUipfIP.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-D3sbAeDo.mjs} +1 -1
- package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-DL3gGGmF.mjs} +3 -3
- package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-DKFImKOx.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-Dn9TpWyL.mjs} +45 -18
- package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-D46Dmr7b.mjs → Page-BpeP9xdt.mjs} +731 -1549
- package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-CP6zrwkl.mjs} +6 -242
- package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
- package/dist/client/{accordion-P8xcfKxq.mjs → accordion-nR7D4m1a.mjs} +1 -1
- package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-Ce-mQZ7W.mjs} +362 -47
- package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-B-qT_AQB.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CrE3TDpW.mjs} +2 -29
- package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CVUOatsY.mjs} +1 -1
- package/dist/client/{cart-0Q4fjw_K.mjs → cart-DE0K6E0R.mjs} +3 -3
- package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-C23E6WQ5.mjs} +1 -1
- package/dist/client/{checkout-1J-3ftxF.mjs → checkout-76cdHyPL.mjs} +3 -3
- package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-DJOzqb26.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-CvIP5DCO.mjs} +1 -1
- package/dist/client/client.mjs +159 -7
- package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
- package/dist/client/{course-CmOuoZHN.mjs → course-DHIrXqNT.mjs} +2 -2
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-lL-YRApN.mjs → display-Cf_j5stk.mjs} +2574 -763
- package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-5GD5o4Mt.mjs} +3 -3
- package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-D7Oz1q2L.mjs} +1 -1
- package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-zbuX36aA.mjs} +137 -131
- package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-uZrksODt.mjs} +4 -4
- package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-DxhvNAx8.mjs} +4 -4
- package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-DCIH4BYG.mjs} +2 -2
- package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-B9KrnPvc.mjs} +4 -4
- package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-TjnURMKl.mjs} +4 -4
- package/dist/client/{form-DO6qKH3M.mjs → form-CfqIAhfN.mjs} +3 -3
- package/dist/client/{form.client-D12ljYiX.mjs → form.client-CL6fF0cW.mjs} +6 -6
- package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-Bf-L66Gg.mjs} +1 -1
- package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-WVXtOcuW.mjs} +2 -2
- package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-Bb7GAZpO.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-BqOVRdIc.mjs} +1 -1
- package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-DOVe-qY3.mjs} +3 -3
- package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CNzeFnFf.mjs} +1 -1
- package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-LKpzC7pj.mjs} +1 -1
- package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-D2JNeEgx.mjs} +3 -3
- package/dist/client/{productList-CMx4-XlG.mjs → productList-DTgZXOEq.mjs} +3 -3
- package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-mpBQt2AT.mjs} +3 -3
- package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-DdTJyar2.mjs} +31 -47
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -13
- package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-8cfSgT0E.mjs} +1 -1
- package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-Cy6xXDM7.mjs → shop-5LBhftWx.mjs} +3 -3
- package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-DkValjZj.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-BOmXFmk_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-D0ifS6KX.mjs} +2 -2
- package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-BTtZqNmv.mjs} +13 -13
- package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-DNRqG4aX.mjs} +18 -24
- package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-Nky6kPYr.mjs} +2 -2
- package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-DZArznD_.mjs} +25 -152
- package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
- package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BBnStWXU.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-d7viY_mu.mjs} +1 -1
- package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-Da2JqxGC.mjs} +6 -6
- package/dist/client/{view-Sw075FOY.mjs → view-BvuYmQJ5.mjs} +2 -2
- package/dist/client/{view-D6yebI4r.mjs → view-D9ObkFtz.mjs} +12 -11
- 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-DG2rXUmo.mjs → PageSectionToolbar-DwxHT-2k.mjs} +57 -144
- package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-D4SBxGU6.mjs} +758 -1279
- package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-D8mUct32.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-L2AEdNUQ.mjs} +50 -30
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-bhVAU2D2.mjs} +47 -19
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-Jpj_HDra.mjs} +101003 -51855
- package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-CYTDvx4u.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CZHX6J_4.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-DmGIG9Hk.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-DQCyswQ-.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.mjs → useOpenBlockForSetup-LwE5yXvL.mjs} +19 -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-CPV30ABr.mjs → route-contract-BOuNcOcN.mjs} +153 -2
- package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-wfJfhs08.mjs} +10 -5
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-BtrJNHTB.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Dge4sqel.mjs → bindings-P1CF2Gm6.mjs} +6 -4
- package/dist/server/{client-VVIQjC4r.mjs → client-CGtU5fHI.mjs} +156 -4
- 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/index.mjs +2 -2
- package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-ChnkJSay.mjs} +8 -9
- package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-DesHhgxj.mjs} +3 -3
- package/dist/server/lookMediaFrame-BBr0mkze.mjs +2626 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-DHEkHcZs.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-0jvm0RBk.mjs} +29 -331
- package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-8-f1Zr9e.mjs} +14 -6
- package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-CuVFoV4z.mjs} +370 -291
- package/dist/server/{parseThemeForPersistence-CtgRtvo3.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-BjvFb0CA.mjs → prebuild-Bms_Y7wQ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-5oC5kyHe.mjs} +2 -2
- package/dist/server/{registry-BMCfcev6.mjs → registry-DmqxC8th.mjs} +1258 -3166
- 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 +7 -7
- package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-EYogtwQc.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
- 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-EgTtnTcY.mjs → validation-Bt_8IL1g.mjs} +4 -4
- package/dist/server/{version-LjgU0Cq1.mjs → version-DT_efohp.mjs} +1 -1
- package/dist/styles/index.css +989 -279
- package/package.json +1 -1
- package/dist/client/bookability-SargNwlO.mjs +0 -17
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { $r as formatEventCompactDateRail, Bc as parseMailingListRuntimeContext, Bs as assertNever, Ca as blockButtonRoleSchema, Cr as renderAudio, Ct as toRegistrationEvents, D as registrationStepLabel, Da as browserReadAuthoritySchema, E as registrationRoute, Ea as resolveDateRuntimeContext, Fa as bookingPageKindSchema, Gc as parseMailchimpAudienceId, Ha as resolveEventRegistrationScopedEvents, Hc as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Ia as buildInteractiveIslandProps, Ic as nextLiveRunSessionStartMs, Jr as eventDateOptions, Kc as parseMailchimpInterestId, Kr as eventCalendarWeekStart, La as createInteractiveIslandCodec, N as isRegistrationLocked, Na as pageNavigationSchema, Nn as formatRegistrationSchedule, O as registrationStepLabelContext, Or as resolveMediaNodeResponsiveImage, Qs as toNonEmptyReadonlyArray, Ra as defineInteractiveIslandMetaKeys, Rc as resolveWholeSeriesBookingPhase, S as getEventSelectionMode, Sr as mediaImageHostProps, Tt as toWholeSeriesRegistrationEvents, Uc as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Va as resolveEventRegistrationChoices, Vn as withOccurrenceTitle, Wc as parseBrevoListId, Xc as formatBookingPriceDisplay, Yc as EVENT_PRESET_VOCABULARY, Yr as eventLocalDateKey, Zc as formatEventPricing, _a as eventLayoutSchema, _r as shownVenue, a as buildProductDetailDisplay, b as resolveSelectedProduct, ba as registrationButtonVariantSchema, br as MediaPlaceholder, da as bookingNowSchema, do as groupPublicEventsByRun, dt as resolveEventRequiresPayment, el as publicEventPricingDisplay, fa as calendarTabViewsSchema, fo as createZodCodec, g as deriveCommerceCheckoutState, ga as eventCalendarDisplayModeSchema, go as listItemPresentation, gr as resolveRegistrationDisplay, ha as eventCalendarDefaultViewSchema, hc as cardRoleSchema, ho as isDecodeSuccess, hr as registrationDisplaySchema, kn as formatBookingWhen, li as resolveRuntimeEventDestination, lo as selectEventCapacitySource, lt as findPreSelectedEvent, ma as eventButtonVariantSchema, mo as defineProgressiveBlockRuntime, mr as placesLeftLabel, n as buildCheckoutDisplay, o as buildProductListDisplay, pa as columnOptionSchema, po as defineClientOwnedBlockRuntime, pr as bookingPresentation, qc as parseNewsletterListId, qr as eventDateLocale, r as buildPassesMembershipsDisplay, ro as formatRemainingPlaces, sl as parseEventSeriesId, so as getRemainingPlaces, t as buildCartDisplay, va as filterAutoShowSchema, vo as listLookSlot, vr as RichText, wr as renderVideo, wt as toWholeSeriesRegistrationEvent, x as REGISTRATION_STEP_LABELS, xa as weekStartSchema, xr as computeMediaTransformStyle, ya as previewStageSchema, yo as lookListPresentationSchemaShape, yr as ImagePresets, za as eventRegistrationPageSurfaceSubjectSchema, zc as resolveWholeSeriesRunLifecycle, zo as resolveModeArrangement } from "./display-Cf_j5stk.mjs";
|
|
4
|
+
import { B as publicEventSchema, Bt as formatDate, Ct as publicEventLoaderQuerySchemaShape, R as publicEventDestinationSchema, S as isEventCalendarListLayout, St as eventSurfaceScopeValues, Vt as formatDateRange, Wt as formatTime, Zt as buildBookingUtcDateWindow, _t as purchasablePublicPassProductSchema, an as resolveBookingBusinessTimeZone, bt as eventScheduleScopeValues, cn as parseUtcIsoDateTimeString, g as eventCalendarListGroupingDecision, gt as purchasablePublicMembershipProductSchema, ht as publicProductSchema, ln as toUtcIsoDateTimeString, mt as publicPassProductSchema, n as blockSiteTermsSchema, nn as getLocalScheduleDate, on as resolveBookingTimeZoneId, p as calendarWindowPageSchema, pt as publicMembershipProductSchema, qt as inferSiteDateLocale, rn as parseBookingLocalDate, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, xt as eventSurfacePresetValues, y as eventListArrangementValues } from "./noop-D5mFWXtN.mjs";
|
|
5
|
+
import { A as assertNever$2, p as assertNever$1 } from "./creditProducts-KYMVIH3J.mjs";
|
|
6
6
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
8
|
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
@@ -520,7 +520,7 @@ function normalizeEventStaffMemberId(value) {
|
|
|
520
520
|
//#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
|
|
521
521
|
/**
|
|
522
522
|
* Format event price for display.
|
|
523
|
-
* @returns "Free", "£25", "£12–£25", "Free
|
|
523
|
+
* @returns "Free", "£25", "£12–£25", "Free or £12–£25", "£220 for the course", etc.
|
|
524
524
|
*
|
|
525
525
|
* Events render compact amounts (no trailing ".00"); the actual ADT→string
|
|
526
526
|
* mapping lives in `formatBookingPriceDisplay` in @riverbankcms/core so all
|
|
@@ -2490,7 +2490,7 @@ const copy = {
|
|
|
2490
2490
|
},
|
|
2491
2491
|
completed: {
|
|
2492
2492
|
titleText: "These dates have finished",
|
|
2493
|
-
bodyText: "
|
|
2493
|
+
bodyText: "The details are kept here for reference."
|
|
2494
2494
|
},
|
|
2495
2495
|
"enrolment-closed": {
|
|
2496
2496
|
titleText: "Booking closed",
|
|
@@ -2842,22 +2842,15 @@ const OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS = [
|
|
|
2842
2842
|
const OFFERINGS_PREVIEW_EVENT_PRESETS = OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => definition.preset);
|
|
2843
2843
|
const OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS = [...OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => definition.sourceKey), "course"];
|
|
2844
2844
|
const OFFERINGS_PREVIEW_SOURCE_KEYS = OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS;
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
case "index":
|
|
2855
|
-
case "sequence":
|
|
2856
|
-
case "plates":
|
|
2857
|
-
case "stack":
|
|
2858
|
-
case "type-columns": return "by-type";
|
|
2859
|
-
default: return assertNever$2(arrangement);
|
|
2860
|
-
}
|
|
2845
|
+
/** Reads a stored or effective knob value; anything else means the default, grouped by kind. */
|
|
2846
|
+
function readOfferingsGrouping(value) {
|
|
2847
|
+
return value === "one-list" ? "one-list" : "by-kind";
|
|
2848
|
+
}
|
|
2849
|
+
/** Grouping owns merging; specialised Looks retain their own selection policy. */
|
|
2850
|
+
function offeringsListingFor(grouping, arrangement) {
|
|
2851
|
+
if (arrangement === "course-groups") return "by-course";
|
|
2852
|
+
if (arrangement === "next-cards") return "next-per-type";
|
|
2853
|
+
return grouping === "one-list" ? "by-date" : "by-type";
|
|
2861
2854
|
}
|
|
2862
2855
|
Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.sourceKey, {
|
|
2863
2856
|
kind: "eventPreset",
|
|
@@ -3507,9 +3500,10 @@ function buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvent
|
|
|
3507
3500
|
className: eventRegistrationRootClassName(source) ?? null,
|
|
3508
3501
|
...closedRunCopy(phase.reason)
|
|
3509
3502
|
};
|
|
3510
|
-
const
|
|
3503
|
+
const choices = resolveEventRegistrationChoices(scopedSourceEvents, source, new Date(source.now));
|
|
3504
|
+
const card = bookingCardDisplay(source, choices, display);
|
|
3511
3505
|
if (card) return card;
|
|
3512
|
-
const stepLabels = buildEventRegistrationShellStepLabels(source,
|
|
3506
|
+
const stepLabels = buildEventRegistrationShellStepLabels(source, choices);
|
|
3513
3507
|
return {
|
|
3514
3508
|
kind: "event-registration",
|
|
3515
3509
|
state: "generic-shell",
|
|
@@ -4869,4 +4863,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4869
4863
|
};
|
|
4870
4864
|
}
|
|
4871
4865
|
//#endregion
|
|
4872
|
-
export {
|
|
4866
|
+
export { resolveOfferingsRenderInput as $, eventWeekGroupingContext as $t, formInteractiveIslandPropsCodec as A, planEventPageOperation as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, CardListContentPart as Bt, newsletterFormInteractiveIslandPropsCodec as C, parseMailingListPlacementTargeting as Cn, eventListingBlockRuntime as Ct, publicGiftingOffersResponseSchema as D, parseContentVersionId as Dn, eventPaginationLoadReducer as Dt, giftingInteractiveIslandPropsCodec as E, sameMailingListPlacementTargeting as En, eventPageOperationQuery as Et, eventRegistrationInteractiveIslandPropsCodec as F, normalizeCsvIds as Ft, isOfferingsPreviewSourceKey as G, MediaNodeServer as Gt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as H, cardListPresentationSchemaShape as Ht, resolveEventRegistrationEventSource as I, normalizeCsvString as It, offeringRunLifecycle as J, getCardOrientation as Jt, normalizeOfferingsPreviewContentForWrite as K, EventQuickFacts as Kt, offeringNounForEvent as L, normalizeOptionalId as Lt, buildEventRegistrationInteractiveIslandProps as M, toError as Mt, displayButtonText as N, buildEventRuntimeFilters as Nt, buildFormInteractiveIslandProps as O, unsafeAsContentEntryId as On, getEventIdentity as Ot, eventRegistrationBlockRuntime as P, getEventRuntimeFiltersKey as Pt, resolveOfferingsPreviewGroups as Q, eventListWeekDays as Qt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as R, catalogueEventCardProps as Rt, newsletterFormBlockRuntime as S, assessMailingListTargeting as Sn, buildEventListingInteractiveIslandProps as St, giftingBlockRuntime as T, DEFAULT_MAILING_LIST_TARGETING as Tn, createInitialEventPaginationLoadState as Tt, buildOfferingsPreviewListing as U, resolveCardListSchedule as Ut, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as V, CardListLeadDate as Vt, groupOfferingRunsByCourse as W, selectCardListPresentation as Wt, readOfferingsGrouping as X, Grid as Xt, offeringsListingFor as Y, getContainerClass as Yt, resolveOfferingsPreviewGroupCta as Z, buildEventListWeek as Zt, shopProductPresentation as _, staticHeaderChromeRuntime as _n, eventCalendarBlockRuntime as _t, buildShopInteractiveIslandProps as a, formatEventPriceDisplay as an, bookingPanelHeading as at, buildNewsletterFormInteractiveIslandProps as b, splitSiteChromePlacementClasses as bn, recurringScheduleProjectionSchema as bt, checkoutBlockRuntime as c, normalizeEventScheduleScope as cn, occurrenceContextSchema as ct, productDetailBlockRuntime as d, normalizeEventSurfaceScope as dn, buildEventCombinedListingDisplay as dt, groupEventsByWeek as en, DEFAULT_BOOKING_BUTTON_TEXT as et, productDetailInteractiveIslandPropsCodec as f, normalizeEventVenueId as fn, eventCombinedBlockRuntime as ft, shopInteractiveIslandPropsCodec as g, resolveHeaderChromeRuntimeContract as gn, buildEventCalendarListingRender as gt, shopBlockRuntime as h, isHeaderScrollRuntimeEnabled as hn, buildEventCalendarListingDisplay as ht, buildProductListInteractiveIslandProps as i, formatEventPriceAmount as in, bookingEntryProgress as it, buildEventRegistrationDisplayFromScopedEvents as j, toEventPaginationLoadError as jt, formBlockRuntime as k, getEventPaginationView as kt, checkoutInteractiveIslandPropsCodec as l, normalizeEventStaffMemberId as ln, closedRunCopy as lt, productListInteractiveIslandPropsCodec as m, headerChromeRuntimeContractSchema as mn, buildEventCalendarInteractiveIslandProps as mt, buildCheckoutInteractiveIslandProps as n, formatCoursePrice as nn, bookingCardEntry as nt, cartBlockRuntime as o, formatEventStartingPrice as on, courseTitleOf as ot, productListBlockRuntime as p, resolveEventSelection as pn, eventCombinedInteractiveIslandPropsCodec as pt, normalizeOfferingsPreviewItemLimit as q, quickFactSlots as qt, buildProductDetailInteractiveIslandProps as r, formatEventPrice as rn, bookingEntry as rt, cartInteractiveIslandPropsCodec as s, normalizeEventCategoryIds as sn, formatBookingSchedulePresentation as st, buildCartInteractiveIslandProps as t, weekColumnDays as tn, bookingBarPlacement as tt, getShopDisplayForItems as u, normalizeEventSurfacePresets as un, buildEventCombinedInteractiveIslandProps as ut, publicProductsResponseSchema as v, parseHeaderPositioning as vn, eventCalendarInteractiveIslandPropsCodec as vt, buildGiftingInteractiveIslandProps as w, parseMailingListVisitorSelection as wn, eventListingInteractiveIslandPropsCodec as wt, newsletterBlockSubmissionMessage as x, buildMailingListSignupBlockSourceRef as xn, combinedLookSchema as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, planSiteChromePlacement as yn, projectRecurringSchedule as yt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as z, listingEventCardProps as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
4
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
4
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-8cfSgT0E.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
2
|
+
import { Ea as resolveDateRuntimeContext, Hr as isInlineTextEmpty, Jr as eventDateOptions, Qr as formatEventClockLabel, Ur as parseInlineTextFromUnknown, ci as resolveEventTimeZone, co as isEventFull, ii as formatEventTimeRange, no as formatEventRemainingPlaces, oo as getEventAvailabilityStatus, si as groupEventsByDate, vr as RichText } from "./display-Cf_j5stk.mjs";
|
|
3
|
+
import { Bt as formatDate, Xt as toScheduledBookingDateTime, Yt as formatBookingCompactEnglishTime, in as parseLocalScheduleTime } from "./noop-D5mFWXtN.mjs";
|
|
4
|
+
import { A as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
5
|
+
import { t as LocationMapActions } from "./LocationMapActions-BJT7MqP2.mjs";
|
|
6
6
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-xrjaKaCj.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { q as textColorStyle } from "./accessibleSurfaces-DN8it_Cx.mjs";
|
|
8
8
|
import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
9
|
-
import { c as resolveEventLinkProps, n as eventDisplayTitleText } from "./course-
|
|
10
|
-
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-
|
|
11
|
-
import { l as formatEventTeacherLine } from "./EventItem-
|
|
12
|
-
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
13
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
9
|
+
import { c as resolveEventLinkProps, n as eventDisplayTitleText } from "./course-DHIrXqNT.mjs";
|
|
10
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-DCIwlON6.mjs";
|
|
11
|
+
import { l as formatEventTeacherLine } from "./EventItem-WeUipfIP.mjs";
|
|
12
|
+
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-Az1-TIEI.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-C32cRQ03.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { z } from "zod";
|
|
17
16
|
//#region ../core/src/opening-hours.ts
|
|
18
17
|
const openingHoursWeekdayLabels = {
|
|
19
18
|
monday: "Monday",
|
|
@@ -24,6 +23,15 @@ const openingHoursWeekdayLabels = {
|
|
|
24
23
|
saturday: "Saturday",
|
|
25
24
|
sunday: "Sunday"
|
|
26
25
|
};
|
|
26
|
+
const shortWeekdayLabels = {
|
|
27
|
+
monday: "Mon",
|
|
28
|
+
tuesday: "Tue",
|
|
29
|
+
wednesday: "Wed",
|
|
30
|
+
thursday: "Thu",
|
|
31
|
+
friday: "Fri",
|
|
32
|
+
saturday: "Sat",
|
|
33
|
+
sunday: "Sun"
|
|
34
|
+
};
|
|
27
35
|
function formatOpeningHoursTime(value) {
|
|
28
36
|
const time = parseLocalScheduleTime(value);
|
|
29
37
|
return formatBookingCompactEnglishTime(toScheduledBookingDateTime({
|
|
@@ -35,14 +43,15 @@ function formatOpeningHoursTime(value) {
|
|
|
35
43
|
function formatDayHours(day) {
|
|
36
44
|
return day.kind === "closed" ? "Closed" : day.intervals.map((interval) => `${formatOpeningHoursTime(interval.opensAt)} to ${formatOpeningHoursTime(interval.closesAt)}`).join(", ");
|
|
37
45
|
}
|
|
38
|
-
function weekdayRangeLabel(weekdays) {
|
|
46
|
+
function weekdayRangeLabel(weekdays, style) {
|
|
39
47
|
const first = weekdays[0];
|
|
40
48
|
const last = weekdays[weekdays.length - 1];
|
|
41
49
|
if (!first || !last) return "";
|
|
42
|
-
|
|
50
|
+
const labels = style === "short" ? shortWeekdayLabels : openingHoursWeekdayLabels;
|
|
51
|
+
return first === last ? labels[first] : `${labels[first]}${style === "short" ? "–" : " to "}${labels[last]}`;
|
|
43
52
|
}
|
|
44
53
|
/** Monday-first table rows; only adjacent days with identical ranges are grouped. */
|
|
45
|
-
function formatOpeningHoursRows(hours) {
|
|
54
|
+
function formatOpeningHoursRows(hours, options = {}) {
|
|
46
55
|
return (hours?.days ?? []).reduce((rows, day) => {
|
|
47
56
|
const text = formatDayHours(day);
|
|
48
57
|
const previous = rows[rows.length - 1];
|
|
@@ -50,148 +59,12 @@ function formatOpeningHoursRows(hours) {
|
|
|
50
59
|
const row = {
|
|
51
60
|
kind: day.kind,
|
|
52
61
|
weekdays,
|
|
53
|
-
label: weekdayRangeLabel(weekdays),
|
|
62
|
+
label: weekdayRangeLabel(weekdays, options.labels ?? "full"),
|
|
54
63
|
hours: text
|
|
55
64
|
};
|
|
56
65
|
return weekdays.length > 1 ? [...rows.slice(0, -1), row] : [...rows, row];
|
|
57
66
|
}, []);
|
|
58
67
|
}
|
|
59
|
-
const inlineTextMarkSchema = z.discriminatedUnion("kind", [
|
|
60
|
-
z.object({ kind: z.literal("strong") }),
|
|
61
|
-
z.object({ kind: z.literal("emphasis") }),
|
|
62
|
-
z.object({
|
|
63
|
-
kind: z.literal("accent"),
|
|
64
|
-
tone: z.enum([
|
|
65
|
-
"accent",
|
|
66
|
-
"brand",
|
|
67
|
-
"contrast"
|
|
68
|
-
])
|
|
69
|
-
}),
|
|
70
|
-
z.object({
|
|
71
|
-
kind: z.literal("highlight"),
|
|
72
|
-
tone: z.enum([
|
|
73
|
-
"soft",
|
|
74
|
-
"accent",
|
|
75
|
-
"brand"
|
|
76
|
-
])
|
|
77
|
-
})
|
|
78
|
-
]);
|
|
79
|
-
const inlineTextRunSchema = z.object({
|
|
80
|
-
text: z.string(),
|
|
81
|
-
marks: z.array(inlineTextMarkSchema).optional()
|
|
82
|
-
});
|
|
83
|
-
z.array(inlineTextRunSchema);
|
|
84
|
-
const MARK_ORDER = {
|
|
85
|
-
strong: 0,
|
|
86
|
-
emphasis: 1,
|
|
87
|
-
accent: 2,
|
|
88
|
-
highlight: 3
|
|
89
|
-
};
|
|
90
|
-
function plainTextToInlineText(value) {
|
|
91
|
-
return normalizeInlineText(value.length > 0 ? [{ text: value }] : []);
|
|
92
|
-
}
|
|
93
|
-
function inlineTextToPlainText(value) {
|
|
94
|
-
return value.map((run) => run.text).join("");
|
|
95
|
-
}
|
|
96
|
-
function isInlineTextEmpty(value) {
|
|
97
|
-
return inlineTextToPlainText(value).trim().length === 0;
|
|
98
|
-
}
|
|
99
|
-
function coerceInlineTextWithFallback(value, fallbackPlainText) {
|
|
100
|
-
const parsed = parseInlineTextFromUnknown(value);
|
|
101
|
-
if (parsed.ok && !isInlineTextEmpty(parsed.value)) return parsed.value;
|
|
102
|
-
if (fallbackPlainText && fallbackPlainText.length > 0) return plainTextToInlineText(fallbackPlainText);
|
|
103
|
-
return parsed.ok ? parsed.value : [];
|
|
104
|
-
}
|
|
105
|
-
function parseInlineTextFromUnknown(value) {
|
|
106
|
-
if (!Array.isArray(value)) return {
|
|
107
|
-
ok: false,
|
|
108
|
-
error: { kind: "not-array" }
|
|
109
|
-
};
|
|
110
|
-
const runs = [];
|
|
111
|
-
for (let index = 0; index < value.length; index += 1) {
|
|
112
|
-
const parsed = inlineTextRunSchema.safeParse(value[index]);
|
|
113
|
-
if (!parsed.success) return {
|
|
114
|
-
ok: false,
|
|
115
|
-
error: {
|
|
116
|
-
kind: "invalid-run",
|
|
117
|
-
index
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
runs.push(parsed.data);
|
|
121
|
-
}
|
|
122
|
-
return {
|
|
123
|
-
ok: true,
|
|
124
|
-
value: normalizeInlineText(runs)
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function normalizeInlineText(value) {
|
|
128
|
-
const normalized = [];
|
|
129
|
-
for (const run of value) {
|
|
130
|
-
if (run.text.length === 0) continue;
|
|
131
|
-
const marks = normalizeInlineTextMarks(run.marks ?? []);
|
|
132
|
-
const nextRun = marks.length > 0 ? {
|
|
133
|
-
text: run.text,
|
|
134
|
-
marks
|
|
135
|
-
} : { text: run.text };
|
|
136
|
-
const previous = normalized[normalized.length - 1];
|
|
137
|
-
if (previous && inlineTextMarksEqual(previous.marks ?? [], nextRun.marks ?? [])) {
|
|
138
|
-
normalized[normalized.length - 1] = previous.marks && previous.marks.length > 0 ? {
|
|
139
|
-
text: previous.text + nextRun.text,
|
|
140
|
-
marks: previous.marks
|
|
141
|
-
} : { text: previous.text + nextRun.text };
|
|
142
|
-
continue;
|
|
143
|
-
}
|
|
144
|
-
normalized.push(nextRun);
|
|
145
|
-
}
|
|
146
|
-
return normalized;
|
|
147
|
-
}
|
|
148
|
-
function normalizeInlineTextMarks(marks) {
|
|
149
|
-
let strong = null;
|
|
150
|
-
let emphasis = null;
|
|
151
|
-
let accent = null;
|
|
152
|
-
let highlight = null;
|
|
153
|
-
for (const mark of marks) switch (mark.kind) {
|
|
154
|
-
case "strong":
|
|
155
|
-
strong = { kind: "strong" };
|
|
156
|
-
break;
|
|
157
|
-
case "emphasis":
|
|
158
|
-
emphasis = { kind: "emphasis" };
|
|
159
|
-
break;
|
|
160
|
-
case "accent":
|
|
161
|
-
accent = {
|
|
162
|
-
kind: "accent",
|
|
163
|
-
tone: mark.tone
|
|
164
|
-
};
|
|
165
|
-
break;
|
|
166
|
-
case "highlight":
|
|
167
|
-
highlight = {
|
|
168
|
-
kind: "highlight",
|
|
169
|
-
tone: mark.tone
|
|
170
|
-
};
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
return [
|
|
174
|
-
strong,
|
|
175
|
-
emphasis,
|
|
176
|
-
accent,
|
|
177
|
-
highlight
|
|
178
|
-
].filter((mark) => mark !== null).sort((left, right) => MARK_ORDER[left.kind] - MARK_ORDER[right.kind]);
|
|
179
|
-
}
|
|
180
|
-
function inlineTextMarksEqual(left, right) {
|
|
181
|
-
const normalizedLeft = normalizeInlineTextMarks(left);
|
|
182
|
-
const normalizedRight = normalizeInlineTextMarks(right);
|
|
183
|
-
if (normalizedLeft.length !== normalizedRight.length) return false;
|
|
184
|
-
return normalizedLeft.every((mark, index) => inlineTextMarkEqual(mark, normalizedRight[index]));
|
|
185
|
-
}
|
|
186
|
-
function inlineTextMarkEqual(left, right) {
|
|
187
|
-
if (!right || left.kind !== right.kind) return false;
|
|
188
|
-
switch (left.kind) {
|
|
189
|
-
case "strong":
|
|
190
|
-
case "emphasis": return true;
|
|
191
|
-
case "accent": return right.kind === "accent" && left.tone === right.tone;
|
|
192
|
-
case "highlight": return right.kind === "highlight" && left.tone === right.tone;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
68
|
//#endregion
|
|
196
69
|
//#region ../path-utils/src/index.ts
|
|
197
70
|
const PATH_SEPARATOR_REGEX = /\./g;
|
|
@@ -971,4 +844,4 @@ function formatDayLabel(date, timeZone, options) {
|
|
|
971
844
|
}), options);
|
|
972
845
|
}
|
|
973
846
|
//#endregion
|
|
974
|
-
export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d, Text as f,
|
|
847
|
+
export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d, Text as f, buildWeekBoardViewProps as i, RichTextNode as l, WeekBoardView as n, RecurringSchedule as o, buildWeekBoardNavigationState as r, ButtonNode as s, buildTimetableModel as t, TextNode as u };
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { Bt as formatDate$1, Lt as capitalize, Qt as addLocalScheduleDays, Wt as formatTime$1, cn as parseUtcIsoDateTimeString, en as formatLocalScheduleDate, nn as getLocalScheduleDate, on as resolveBookingTimeZoneId, rn as parseBookingLocalDate } from "./noop-D5mFWXtN.mjs";
|
|
3
|
+
import { M as unsafeAsAppointmentResourceId, p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-CNlesLfF.mjs";
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
6
|
+
function clientPersonPhrases(noun) {
|
|
7
|
+
if (noun == null) return {
|
|
8
|
+
label: "Who with",
|
|
9
|
+
chooseAnother: "Choose someone else",
|
|
10
|
+
anyone: "Anyone who's free",
|
|
11
|
+
chooseYours: "Choose who you'd like to see",
|
|
12
|
+
withName: (name) => `With ${name}`,
|
|
13
|
+
listLabel: () => "With"
|
|
14
|
+
};
|
|
15
|
+
const singularLabel = capitalize(noun.singular);
|
|
16
|
+
return {
|
|
17
|
+
label: singularLabel,
|
|
18
|
+
chooseAnother: `Choose another ${noun.singular}`,
|
|
19
|
+
anyone: `Any ${noun.singular}`,
|
|
20
|
+
chooseYours: `Choose your ${noun.singular}`,
|
|
21
|
+
withName: (name) => `${singularLabel}: ${name}`,
|
|
22
|
+
listLabel: (count) => count === 1 ? singularLabel : capitalize(noun.plural)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
6
26
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
7
27
|
/**
|
|
8
28
|
* Resolve the browser/runtime timezone for booking surfaces.
|
|
@@ -470,4 +490,4 @@ function useAvailableSlots({ serviceId, resourceId, selectedDate, timezone }) {
|
|
|
470
490
|
};
|
|
471
491
|
}
|
|
472
492
|
//#endregion
|
|
473
|
-
export { formatTime as a, formatDatePillParts as i, useAvailableDates as n, getRuntimeTimeZone as o, formatDate as r, useAvailableSlots as t };
|
|
493
|
+
export { formatTime as a, formatDatePillParts as i, useAvailableDates as n, getRuntimeTimeZone as o, formatDate as r, clientPersonPhrases as s, useAvailableSlots as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import { d as discountAvailabilityHasDiscounts, f as getAutoAppliedDiscountPreview, u as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-
|
|
3
|
+
import { d as discountAvailabilityHasDiscounts, f as getAutoAppliedDiscountPreview, u as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-1p-pJ1lg.mjs";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/shop-checkout-form.ts
|
|
6
6
|
const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as discountAvailabilityHasDiscounts, f as getAutoAppliedDiscountPreview, u as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { d as discountAvailabilityHasDiscounts, f as getAutoAppliedDiscountPreview, u as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-1p-pJ1lg.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { At as
|
|
3
|
-
import {
|
|
4
|
-
import { p as assertNever } from "./creditProducts-
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { At as planEventPageOperation, Dt as eventPaginationLoadReducer, Et as eventPageOperationQuery, Ft as normalizeCsvIds, It as normalizeCsvString, Lt as normalizeOptionalId, Mt as toError, Ot as getEventIdentity, Pt as getEventRuntimeFiltersKey, Tt as createInitialEventPaginationLoadState, jt as toEventPaginationLoadError, kt as getEventPaginationView } from "./shop.interactive-DNRqG4aX.mjs";
|
|
3
|
+
import { go as listItemPresentation, ka as getBlockApiReadStage, vo as listLookSlot } from "./display-Cf_j5stk.mjs";
|
|
4
|
+
import { p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-CNlesLfF.mjs";
|
|
6
6
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
7
|
-
import { r as EventItem } from "./EventItem-
|
|
8
|
-
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-
|
|
7
|
+
import { r as EventItem } from "./EventItem-WeUipfIP.mjs";
|
|
8
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-DKFImKOx.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { d as membershipClassesLabel, f as passCardListContent, u as membershipCardListContent, vo as listLookSlot } from "./display-Cf_j5stk.mjs";
|
|
3
3
|
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
4
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
4
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-WeUipfIP.mjs";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { $r as
|
|
4
|
-
import { $t as
|
|
5
|
-
import {
|
|
2
|
+
import { Bt as CardListContentPart, Gt as MediaNodeServer, Kt as EventQuickFacts, an as formatEventPriceDisplay, in as formatEventPriceAmount, lt as closedRunCopy, nn as formatCoursePrice, rn as formatEventPrice, st as formatBookingSchedulePresentation } from "./shop.interactive-DNRqG4aX.mjs";
|
|
3
|
+
import { $a as isBookableEvent, $c as publicEventPricingCurrency, $r as formatEventCompactDateRail, Fc as CANCELLED_SESSION_STATUS, Ha as resolveEventRegistrationScopedEvents, Ic as nextLiveRunSessionStartMs, Jr as eventDateOptions, Lc as orderedLiveRunSessions, Qc as isPublicEventPricingOptionDisplayable, Rc as resolveWholeSeriesBookingPhase, Xc as formatBookingPriceDisplay, ao as getEventAvailability, co as isEventFull, ei as formatEventDateParts, el as publicEventPricingDisplay, ii as formatEventTimeRange, io as formatTotalCapacity, nl as publicEventPricingType, no as formatEventRemainingPlaces, oi as formatTime, oo as getEventAvailabilityStatus, ri as formatEventRunDates, rl as resolveExactOrFreePriceDisplay, vo as listLookSlot, yr as ImagePresets } from "./display-Cf_j5stk.mjs";
|
|
4
|
+
import { $t as compareLocalScheduleDates, Bt as formatDate, Ut as formatDateTimeRange, Vt as formatDateRange, Xt as toScheduledBookingDateTime, an as resolveBookingBusinessTimeZone, ln as toUtcIsoDateTimeString, nn as getLocalScheduleDate, sn as toBookingTimeZone, tn as getBookingLocalDateKey } from "./noop-D5mFWXtN.mjs";
|
|
5
|
+
import { A as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
6
6
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
7
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
8
|
-
import { t as
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DCLtxOnt.mjs";
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-BJT7MqP2.mjs";
|
|
8
|
+
import { a as formatMoreDates, c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, t as eventDisplayTitle } from "./course-DHIrXqNT.mjs";
|
|
9
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DCIwlON6.mjs";
|
|
11
10
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
12
11
|
import "react";
|
|
13
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -817,7 +816,7 @@ function TeamMemberName({ name, profilePath }) {
|
|
|
817
816
|
}) : /* @__PURE__ */ jsx("strong", { children: name });
|
|
818
817
|
}
|
|
819
818
|
function formatTicketTypePrice(ticketType, currency) {
|
|
820
|
-
return
|
|
819
|
+
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
821
820
|
}
|
|
822
821
|
function getDisplayablePricingOptions(event) {
|
|
823
822
|
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
@@ -1069,9 +1068,11 @@ function OtherEventDates({ selection }) {
|
|
|
1069
1068
|
}
|
|
1070
1069
|
function EventIdentity({ event, showTitle, showDescription }) {
|
|
1071
1070
|
if (!showTitle && !showDescription) return null;
|
|
1072
|
-
|
|
1071
|
+
const description = event.occurrenceDescription ?? event.description;
|
|
1072
|
+
return /* @__PURE__ */ jsxs("div", { children: [showTitle ? /* @__PURE__ */ jsx("h3", { children: event.occurrenceTitle ?? event.title }) : null, showDescription && description ? /* @__PURE__ */ jsx("p", {
|
|
1073
1073
|
className: "rb-mt-2",
|
|
1074
|
-
|
|
1074
|
+
style: { whiteSpace: "pre-line" },
|
|
1075
|
+
children: description
|
|
1075
1076
|
}) : null] });
|
|
1076
1077
|
}
|
|
1077
1078
|
function acceptedProductNames(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ft as locationPinSchema } from "./lucide-react-
|
|
2
|
+
import { Ft as locationPinSchema } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../editor-blocks/src/widgets/location/editMapDecision.ts
|
package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-
|
|
4
|
-
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-
|
|
3
|
+
import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
|
+
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
|
|
5
5
|
import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal } from "react-dom";
|