@riverbankcms/sdk 0.174.1 → 0.175.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/dist/_dts/{BlocksIslandsHydrator-YRmc-Yxz.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-B1J6Akyf.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index-yWDbUojb.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-CF62FntA.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-BLEKFHt1.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-CXZSy_9M.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-BgOr1Xyz.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DpJm0NpL.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-BK-pHf0P.d.ts → request-BT8i_vH-.d.ts} +1621 -385
- package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DXUCWJ3y.d.ts → resolvePageContent-CVLYWcoI.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 +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +13 -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 +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 +3 -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 +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +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 +2 -1
- package/dist/_dts/{types-DjVNADXR.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-CwmB2NHU.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-Dmow_FI6.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +635 -359
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
- package/dist/client/{Page-BpeP9xdt.mjs → Page-CWN_8cLZ.mjs} +601 -579
- package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-C7RJBOW3.mjs} +37 -12
- package/dist/client/{accordion-nR7D4m1a.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-C-gFwhnO.mjs} +2 -1
- package/dist/client/{carousel-CVUOatsY.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-DE0K6E0R.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-76cdHyPL.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +112 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-DHIrXqNT.mjs → course-DHmeQAvq.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
- package/dist/client/display-DMqotaGU.mjs +11797 -0
- package/dist/client/{enhanceHeaderSection-5GD5o4Mt.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-CAdcpnLc.mjs} +176 -75
- package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-CfqIAhfN.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-Bf-L66Gg.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-DMrsN4B4.mjs +28 -0
- package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
- package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
- package/dist/client/{headerSection-WVXtOcuW.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BDZLALxj.mjs} +2951 -14395
- package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-DOVe-qY3.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CNzeFnFf.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-DTgZXOEq.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-B1EEZkcr.mjs} +307 -240
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -6
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-5LBhftWx.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CJAINJr3.mjs} +113 -35
- package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel-DBTIFWTb.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-BvuYmQJ5.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-D9ObkFtz.mjs → view-Cw4EmEPv.mjs} +99 -30
- package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +28 -25
- package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-B61mZd81.mjs} +4141 -2677
- package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-BZDIC-fA.mjs} +527 -236
- package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +13 -4
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BOuNcOcN.mjs → route-contract-0gSlK9S0.mjs} +86 -12
- package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-CGtU5fHI.mjs → client-CgghATBm.mjs} +111 -20
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-ChnkJSay.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-Cuos4Xcd.mjs} +97 -39
- package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-JxlV8_Bo.mjs} +1261 -1129
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-DmqxC8th.mjs → registry-cQ9N5W-n.mjs} +20432 -20165
- 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 +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-EYogtwQc.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-Bt_8IL1g.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-DT_efohp.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +295 -37
- package/package.json +1 -1
- package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
|
@@ -1,9 +1,10 @@
|
|
|
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 { $o as publicEventPricingCurrency, $r as eventDateLocale, Ar as renderVideo, At as toWholeSeriesRegistrationEvent, Bo as parseMailingListRuntimeContext, C as getEventSelectionMode, Ca as eventLayoutSchema, Cr as shownVenue, D as registrationRoute, Da as weekStartSchema, Dr as computeMediaTransformStyle, Ea as registrationButtonVariantSchema, Er as MediaPlaceholder, Ga as eventRegistrationPageSurfaceSubjectSchema, Go as parseMailchimpAudienceId, Ha as buildInteractiveIslandProps, Ho as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Io as nextLiveRunSessionStartMs, Ja as resolveEventRegistrationScopedEvents, Kn as withOccurrenceTitle, Ko as parseMailchimpInterestId, Ma as resolveDateRuntimeContext, Na as browserReadAuthoritySchema, No as flexibleBalanceDueDay, O as registrationStepLabel, Or as mediaImageHostProps, P as isRegistrationLocked, Pn as formatBookingWhen, Pr as resolveMediaNodeResponsiveImage, Qr as eventCalendarWeekStart, Rn as formatRegistrationSchedule, Ro as resolveWholeSeriesBookingPhase, S as REGISTRATION_STEP_LABELS, Sa as eventCalendarDisplayModeSchema, Sr as resolveRegistrationDisplay, Ta as previewStageSchema, Tr as ImagePresets, Ua as createInteractiveIslandCodec, Uo as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Va as bookingPageKindSchema, Wa as defineInteractiveIslandMetaKeys, Wo as parseBrevoListId, Xo as formatBookingPriceDisplay, Yo as EVENT_PRESET_VOCABULARY, Zo as formatEventPricing, _ as deriveCommerceCheckoutState, _a as bookingNowSchema, _o as groupPublicEventsByRun, ai as formatEventCompactDateRail, ba as eventButtonVariantSchema, bo as defineProgressiveBlockRuntime, br as placesLeftLabel, ei as eventDateOptions, es as publicEventPricingDisplay, hi as resolveRuntimeEventDestination, ho as selectEventCapacitySource, ht as resolveEventRequiresPayment, i as buildPassesMembershipsDisplay, jt as toWholeSeriesRegistrationEvents, k as registrationStepLabelContext, ka as blockButtonRoleSchema, kr as renderAudio, kt as toRegistrationEvents, lo as formatRemainingPlaces, n as buildCartDisplay, o as buildProductDetailDisplay, po as getRemainingPlaces, pt as findPreSelectedEvent, qa as resolveEventRegistrationChoices, qo as parseNewsletterListId, r as buildCheckoutDisplay, s as buildProductListDisplay, ss as parseEventSeriesId, ti as eventLocalDateKey, va as calendarTabViewsSchema, vo as createZodCodec, wa as filterAutoShowSchema, wr as RichText, x as resolveSelectedProduct, xa as eventCalendarDefaultViewSchema, xo as isDecodeSuccess, xr as registrationDisplaySchema, ya as columnOptionSchema, yo as defineClientOwnedBlockRuntime, yr as bookingPresentation, za as pageNavigationSchema, zo as resolveWholeSeriesRunLifecycle } from "./display-DMqotaGU.mjs";
|
|
4
|
+
import { At as publicEventLoaderQuerySchemaShape, C as eventCalendarListGroupingDecision, Ct as purchasablePublicMembershipProductSchema, Dt as eventScheduleScopeValues, E as eventListArrangementValues, G as publicEventDestinationSchema, Jt as formatDateRange, Ot as eventSurfacePresetValues, St as publicProductSchema, T as eventCalendarVariantMeaning, Zt as formatTime, b as calendarWindowPageSchema, bt as publicMembershipProductSchema, en as inferSiteDateLocale, fn as resolveBookingBusinessTimeZone, gn as toUtcIsoDateTimeString, hn as parseUtcIsoDateTimeString, in as buildBookingUtcDateWindow, j as resolveEventCalendarReadPlan, k as isEventCalendarListLayout, kt as eventSurfaceScopeValues, l as blockSiteTermsSchema, ln as getLocalScheduleDate, n as assertNever, pn as resolveBookingTimeZoneId, q as publicEventSchema, qt as formatDate, un as parseBookingLocalDate, wt as purchasablePublicPassProductSchema, xt as publicPassProductSchema } from "./noop-DF8_EiFt.mjs";
|
|
5
|
+
import { S as getBookingInstalmentProtectedDepositAmountCents, T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
|
|
6
6
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-xrjaKaCj.mjs";
|
|
7
|
+
import { Bt as toNonEmptyReadonlyArray, Ot as assertNever$2, S as resolveModeArrangement, i as lookListPresentationSchemaShape, in as cardRoleSchema, r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-BDZLALxj.mjs";
|
|
7
8
|
import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
9
|
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
9
10
|
import "react";
|
|
@@ -398,7 +399,7 @@ function planSiteChromePlacement(positioning) {
|
|
|
398
399
|
headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
|
|
399
400
|
standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
|
|
400
401
|
};
|
|
401
|
-
default: return assertNever(positioning);
|
|
402
|
+
default: return assertNever$2(positioning);
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
405
|
function splitSiteChromePlacementClasses(className) {
|
|
@@ -591,6 +592,38 @@ function formatEventStartingPrice(pricing) {
|
|
|
591
592
|
case "free": return "Free";
|
|
592
593
|
}
|
|
593
594
|
}
|
|
595
|
+
/**
|
|
596
|
+
* A short note on booking with a deposit, said next to the price so the
|
|
597
|
+
* option isn't first seen at checkout: "or a £40 deposit to book", or "with a
|
|
598
|
+
* £40 deposit to book" when paying in full isn't offered. Null when no option
|
|
599
|
+
* starts with a deposit (equal instalments have none).
|
|
600
|
+
*/
|
|
601
|
+
function formatEventDepositNote(pricing, paymentTerms, start) {
|
|
602
|
+
const currency = publicEventPricingCurrency(pricing);
|
|
603
|
+
if (!currency) return null;
|
|
604
|
+
const deposit = paymentTerms.allowedOptions.map((option) => {
|
|
605
|
+
switch (option.kind) {
|
|
606
|
+
case "flexible_balance": return option.config.upfrontAmountCents;
|
|
607
|
+
case "instalment_plan": return getBookingInstalmentProtectedDepositAmountCents(option.plan);
|
|
608
|
+
case "upfront":
|
|
609
|
+
case "deferred_manual": return null;
|
|
610
|
+
}
|
|
611
|
+
}).find((amount) => amount !== null && amount > 0);
|
|
612
|
+
if (deposit === void 0) return null;
|
|
613
|
+
const payInFull = paymentTerms.allowedOptions.some((option) => option.kind === "upfront");
|
|
614
|
+
const flexible = paymentTerms.allowedOptions.find((option) => option.kind === "flexible_balance");
|
|
615
|
+
const dueBy = flexible && start ? `, the rest due by ${formatDueDay(flexibleBalanceDueDay(flexible.config, start.startsAt, start.timeZone))}` : "";
|
|
616
|
+
return `${payInFull ? "or" : "with"} a ${formatEventPriceAmount(deposit, currency)} deposit to book${dueBy}`;
|
|
617
|
+
}
|
|
618
|
+
/** A calendar day ("2026-11-12") as "12 Nov 2026"; it has no time zone to convert. */
|
|
619
|
+
function formatDueDay(day) {
|
|
620
|
+
return new Intl.DateTimeFormat("en-GB", {
|
|
621
|
+
day: "numeric",
|
|
622
|
+
month: "short",
|
|
623
|
+
year: "numeric",
|
|
624
|
+
timeZone: "UTC"
|
|
625
|
+
}).format(/* @__PURE__ */ new Date(`${day}T00:00:00Z`));
|
|
626
|
+
}
|
|
594
627
|
//#endregion
|
|
595
628
|
//#region ../blocks/src/system/runtime/nodes/events/domain/listWeek.ts
|
|
596
629
|
/** Civil weeks use the site zone, including weeks containing a clock change. */
|
|
@@ -1400,21 +1433,21 @@ function eventPaginationLoadReducer(state, action) {
|
|
|
1400
1433
|
...createInitialEventPaginationLoadState(action.events, action.scope),
|
|
1401
1434
|
requestId: state.requestId + 1
|
|
1402
1435
|
};
|
|
1403
|
-
default: return assertNever
|
|
1436
|
+
default: return assertNever(action);
|
|
1404
1437
|
}
|
|
1405
1438
|
}
|
|
1406
1439
|
function eventPageOperationScope(operation) {
|
|
1407
1440
|
switch (operation.kind) {
|
|
1408
1441
|
case "replace": return operation.scope;
|
|
1409
1442
|
case "append": return operation.page.scope;
|
|
1410
|
-
default: return assertNever
|
|
1443
|
+
default: return assertNever(operation);
|
|
1411
1444
|
}
|
|
1412
1445
|
}
|
|
1413
1446
|
function eventPageOperationQuery(operation) {
|
|
1414
1447
|
switch (operation.kind) {
|
|
1415
1448
|
case "replace": return operation.scope.query;
|
|
1416
1449
|
case "append": return operation.query;
|
|
1417
|
-
default: return assertNever
|
|
1450
|
+
default: return assertNever(operation);
|
|
1418
1451
|
}
|
|
1419
1452
|
}
|
|
1420
1453
|
function acceptEventPage(operation, events) {
|
|
@@ -1431,7 +1464,7 @@ function acceptEventPage(operation, events) {
|
|
|
1431
1464
|
events: mergeEventPaginationEvents(operation.page.events, events),
|
|
1432
1465
|
hasMore
|
|
1433
1466
|
};
|
|
1434
|
-
default: return assertNever
|
|
1467
|
+
default: return assertNever(operation);
|
|
1435
1468
|
}
|
|
1436
1469
|
}
|
|
1437
1470
|
/** Retry consumes the recorded operation. Load more is possible only from an accepted page. */
|
|
@@ -1456,7 +1489,7 @@ function planEventPageOperation(state, scope, intent) {
|
|
|
1456
1489
|
}
|
|
1457
1490
|
};
|
|
1458
1491
|
}
|
|
1459
|
-
default: return assertNever
|
|
1492
|
+
default: return assertNever(intent);
|
|
1460
1493
|
}
|
|
1461
1494
|
}
|
|
1462
1495
|
/** A changed scope is pending even before the effect starts its replacement request. */
|
|
@@ -1483,7 +1516,7 @@ function getEventPaginationView(state, scope) {
|
|
|
1483
1516
|
loading: false,
|
|
1484
1517
|
error: state.error
|
|
1485
1518
|
};
|
|
1486
|
-
default: return assertNever
|
|
1519
|
+
default: return assertNever(state);
|
|
1487
1520
|
}
|
|
1488
1521
|
}
|
|
1489
1522
|
function getOperationPage(operation) {
|
|
@@ -1493,7 +1526,7 @@ function getOperationPage(operation) {
|
|
|
1493
1526
|
hasMore: false
|
|
1494
1527
|
};
|
|
1495
1528
|
case "append": return operation.page;
|
|
1496
|
-
default: return assertNever
|
|
1529
|
+
default: return assertNever(operation);
|
|
1497
1530
|
}
|
|
1498
1531
|
}
|
|
1499
1532
|
function getEventIdentity(event) {
|
|
@@ -2325,7 +2358,7 @@ const eventCalendarBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2325
2358
|
display: display.listBy === "week" ? {
|
|
2326
2359
|
...display,
|
|
2327
2360
|
events: eventListWindowEvents(display.events, buildEventListWeek(hydration.calendarContext.initialToday, display.startOfWeek, hydration.calendarContext.timeZone))
|
|
2328
|
-
} : plan.jobs === "list"
|
|
2361
|
+
} : plan.jobs === "list" ? firstListPage(display) : display,
|
|
2329
2362
|
hydration
|
|
2330
2363
|
};
|
|
2331
2364
|
}
|
|
@@ -2384,7 +2417,7 @@ function weekListPaging(source) {
|
|
|
2384
2417
|
/**
|
|
2385
2418
|
* A list seed is its first page: the list slices to one page before its pager sees the events,
|
|
2386
2419
|
* and the pager reads later pages from the server after the last one it holds. The rest of the
|
|
2387
|
-
* read would only be sent to the browser and dropped.
|
|
2420
|
+
* read would only be sent to the browser and dropped. A combined calendar tab reads its own months.
|
|
2388
2421
|
*/
|
|
2389
2422
|
function firstListPage(display) {
|
|
2390
2423
|
return display.events.length > display.eventsPerPage ? {
|
|
@@ -2478,6 +2511,20 @@ function buildEventCombinedInteractiveIslandProps(props) {
|
|
|
2478
2511
|
});
|
|
2479
2512
|
}
|
|
2480
2513
|
//#endregion
|
|
2514
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/cancelledDate.ts
|
|
2515
|
+
const cancelledDateCopy = {
|
|
2516
|
+
titleText: "This event has been cancelled",
|
|
2517
|
+
bodyText: "This date is no longer going ahead. If you had a place booked, the organiser will be in touch."
|
|
2518
|
+
};
|
|
2519
|
+
/** A selected cancelled date stays informational, including when its data was recovered in the browser. */
|
|
2520
|
+
function hasCancelledRegistrationDate(events, occurrenceId) {
|
|
2521
|
+
const dates = occurrenceId ? events.filter((event) => event.occurrenceId === occurrenceId) : events;
|
|
2522
|
+
return dates.length > 0 && dates.every(isCancelledOrdinaryDate);
|
|
2523
|
+
}
|
|
2524
|
+
function isCancelledOrdinaryDate(event) {
|
|
2525
|
+
return event.bookingScope === "single_occurrence" && (event.status === "cancelled" || event.bookingAvailability.kind === "closed" && (event.bookingAvailability.reason === "occurrence_cancelled" || event.bookingAvailability.reason === "series_cancelled"));
|
|
2526
|
+
}
|
|
2527
|
+
//#endregion
|
|
2481
2528
|
//#region ../blocks/src/system/runtime/nodes/event-registration/closedRunCopy.ts
|
|
2482
2529
|
const copy = {
|
|
2483
2530
|
cancelled: {
|
|
@@ -2764,7 +2811,7 @@ function bookingPanelHeading(entry, display) {
|
|
|
2764
2811
|
title,
|
|
2765
2812
|
subtitle: entry.when
|
|
2766
2813
|
};
|
|
2767
|
-
default: return assertNever$
|
|
2814
|
+
default: return assertNever$1(entry);
|
|
2768
2815
|
}
|
|
2769
2816
|
}
|
|
2770
2817
|
const HIDDEN_BAR = {
|
|
@@ -2866,6 +2913,7 @@ function sourceKeyForOfferingPreviewSource(source) {
|
|
|
2866
2913
|
switch (source.kind) {
|
|
2867
2914
|
case "eventPreset": return sourceKeyForEventPreset(source.preset);
|
|
2868
2915
|
case "wholeSeries": return "course";
|
|
2916
|
+
case "otherEvents": return "otherEvents";
|
|
2869
2917
|
}
|
|
2870
2918
|
}
|
|
2871
2919
|
function normalizeOfferingsPreviewItemLimit(value) {
|
|
@@ -3030,7 +3078,7 @@ function buildOfferingsPreviewListing(input) {
|
|
|
3030
3078
|
...load,
|
|
3031
3079
|
items: [selectOffering(load.items[0], input.now), ...load.items.slice(1).map((item) => selectOffering(item, input.now))]
|
|
3032
3080
|
};
|
|
3033
|
-
default: return assertNever$
|
|
3081
|
+
default: return assertNever$1(load);
|
|
3034
3082
|
}
|
|
3035
3083
|
}));
|
|
3036
3084
|
if (!groups) return loads.length > 0 ? {
|
|
@@ -3050,7 +3098,7 @@ function buildOfferingsPreviewListing(input) {
|
|
|
3050
3098
|
}));
|
|
3051
3099
|
case "empty":
|
|
3052
3100
|
case "failed": return [];
|
|
3053
|
-
default: return assertNever$
|
|
3101
|
+
default: return assertNever$1(load);
|
|
3054
3102
|
}
|
|
3055
3103
|
}).sort((left, right) => (left.item.nextStartMs ?? Infinity) - (right.item.nextStartMs ?? Infinity) || left.groupIndex - right.groupIndex || offeringItemTitle(left.item).localeCompare(offeringItemTitle(right.item))));
|
|
3056
3104
|
return items ? {
|
|
@@ -3159,10 +3207,11 @@ function preferredPathsForSource(source) {
|
|
|
3159
3207
|
case "workshop": return ["/workshops", "/workshop"];
|
|
3160
3208
|
case "retreat": return ["/retreats", "/retreat"];
|
|
3161
3209
|
case "performance": return ["/performances", "/performance"];
|
|
3162
|
-
default: return assertNever$
|
|
3210
|
+
default: return assertNever$1(source.preset, "Unhandled offerings preview event preset");
|
|
3163
3211
|
}
|
|
3164
3212
|
case "wholeSeries": return ["/courses", "/course"];
|
|
3165
|
-
|
|
3213
|
+
case "otherEvents": return ["/events", "/event"];
|
|
3214
|
+
default: return assertNever$1(source, "Unhandled offerings preview source");
|
|
3166
3215
|
}
|
|
3167
3216
|
}
|
|
3168
3217
|
function normalizeRoutePath(value) {
|
|
@@ -3217,7 +3266,7 @@ function offeringKindForEvent(event) {
|
|
|
3217
3266
|
}
|
|
3218
3267
|
function presetKind(preset) {
|
|
3219
3268
|
const source = sourceFromPresetSummary(preset);
|
|
3220
|
-
if (!source) return null;
|
|
3269
|
+
if (!source || source.kind === "otherEvents") return null;
|
|
3221
3270
|
return source.kind === "wholeSeries" ? "course" : source.preset;
|
|
3222
3271
|
}
|
|
3223
3272
|
/**
|
|
@@ -3492,14 +3541,8 @@ const eventRegistrationIslandMetaCodec = createZodCodec(z.object({
|
|
|
3492
3541
|
}));
|
|
3493
3542
|
const eventRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl", "portalToken", "previewToken", "readAuthority", "stage");
|
|
3494
3543
|
function buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvents, display) {
|
|
3495
|
-
const
|
|
3496
|
-
|
|
3497
|
-
if (phase?.kind === "closed") return {
|
|
3498
|
-
kind: "event-registration",
|
|
3499
|
-
state: "registration-closed",
|
|
3500
|
-
className: eventRegistrationRootClassName(source) ?? null,
|
|
3501
|
-
...closedRunCopy(phase.reason)
|
|
3502
|
-
};
|
|
3544
|
+
const closed = closedRegistrationDisplay(source, scopedSourceEvents);
|
|
3545
|
+
if (closed) return closed;
|
|
3503
3546
|
const choices = resolveEventRegistrationChoices(scopedSourceEvents, source, new Date(source.now));
|
|
3504
3547
|
const card = bookingCardDisplay(source, choices, display);
|
|
3505
3548
|
if (card) return card;
|
|
@@ -3514,6 +3557,22 @@ function buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvent
|
|
|
3514
3557
|
summaryButtonText: source.buttonText?.trim() || "Register"
|
|
3515
3558
|
};
|
|
3516
3559
|
}
|
|
3560
|
+
/** Cancelled dates and closed course runs share the informational display. */
|
|
3561
|
+
function closedRegistrationDisplay(source, events) {
|
|
3562
|
+
const copy = closedRegistrationCopy(source, events);
|
|
3563
|
+
return copy ? {
|
|
3564
|
+
kind: "event-registration",
|
|
3565
|
+
state: "registration-closed",
|
|
3566
|
+
className: eventRegistrationRootClassName(source) ?? null,
|
|
3567
|
+
...copy
|
|
3568
|
+
} : null;
|
|
3569
|
+
}
|
|
3570
|
+
function closedRegistrationCopy(source, events) {
|
|
3571
|
+
if (hasCancelledRegistrationDate(events, source.occurrenceContext?.id)) return cancelledDateCopy;
|
|
3572
|
+
const selectedRun = resolveSelectedWholeSeriesRun(events);
|
|
3573
|
+
const phase = selectedRun ? resolveWholeSeriesBookingPhase(selectedRun.run, new Date(source.now)) : null;
|
|
3574
|
+
return phase?.kind === "closed" ? closedRunCopy(phase.reason) : null;
|
|
3575
|
+
}
|
|
3517
3576
|
function buildEventRegistrationShellStepLabels(source, scopedSourceEvents) {
|
|
3518
3577
|
const selectedRun = resolveSelectedWholeSeriesRun(scopedSourceEvents);
|
|
3519
3578
|
if (selectedRun) {
|
|
@@ -3837,6 +3896,8 @@ const publicGiftingOffersResponseSchema = z.object({
|
|
|
3837
3896
|
vouchers: z.array(publicVoucherOfferSchema)
|
|
3838
3897
|
});
|
|
3839
3898
|
const giftingSourceSchema = z.object({
|
|
3899
|
+
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
3900
|
+
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
3840
3901
|
siteTerms: blockSiteTermsSchema.optional(),
|
|
3841
3902
|
siteId: z.string().optional(),
|
|
3842
3903
|
apiBaseUrl: z.string().optional(),
|
|
@@ -3851,6 +3912,8 @@ const giftingSourceSchema = z.object({
|
|
|
3851
3912
|
successMessage: z.string().nullable().optional()
|
|
3852
3913
|
});
|
|
3853
3914
|
const giftingDisplaySchema = z.object({
|
|
3915
|
+
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
3916
|
+
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
3854
3917
|
kind: z.literal("gifting"),
|
|
3855
3918
|
state: z.literal("ready"),
|
|
3856
3919
|
className: z.string().nullable(),
|
|
@@ -3875,9 +3938,17 @@ const giftingIslandMetaCodec = createZodCodec(z.object({
|
|
|
3875
3938
|
apiBaseUrl: z.string().optional()
|
|
3876
3939
|
}));
|
|
3877
3940
|
const giftingIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
|
|
3941
|
+
/** The Look's slot hooks and surfaces, carried only when the block has a Look. */
|
|
3942
|
+
function giftingLookPresentation({ lookSlots, surfacePresentation }) {
|
|
3943
|
+
return {
|
|
3944
|
+
...lookSlots ? { lookSlots } : {},
|
|
3945
|
+
...surfacePresentation ? { surfacePresentation } : {}
|
|
3946
|
+
};
|
|
3947
|
+
}
|
|
3878
3948
|
function buildGiftingDisplay(source) {
|
|
3879
3949
|
return {
|
|
3880
3950
|
kind: "gifting",
|
|
3951
|
+
...giftingLookPresentation(source),
|
|
3881
3952
|
state: "ready",
|
|
3882
3953
|
className: source.className ?? null,
|
|
3883
3954
|
heading: source.heading?.trim() || "Gift cards & vouchers",
|
|
@@ -3996,7 +4067,7 @@ function newsletterPresetFields(fields) {
|
|
|
3996
4067
|
placeholder: "Company name"
|
|
3997
4068
|
}
|
|
3998
4069
|
];
|
|
3999
|
-
default: return assertNever$
|
|
4070
|
+
default: return assertNever$1(fields);
|
|
4000
4071
|
}
|
|
4001
4072
|
}
|
|
4002
4073
|
function withOptionalPhone(fields, includePhone) {
|
|
@@ -4071,6 +4142,7 @@ const newsletterSourceCommonSchema = z.object({
|
|
|
4071
4142
|
mailingList: mailingListContextSchema.optional(),
|
|
4072
4143
|
interactionContext: blockInteractionContextSchema.optional(),
|
|
4073
4144
|
targeting: mailingListTargetingSchema.optional(),
|
|
4145
|
+
topicsQuestion: z.string().nullable().optional(),
|
|
4074
4146
|
buttonVariant: newsletterButtonVariantSchema.nullable().optional(),
|
|
4075
4147
|
spamProtectionEnabled: z.boolean().optional(),
|
|
4076
4148
|
className: z.string().nullable().optional()
|
|
@@ -4111,7 +4183,8 @@ const newsletterDisplaySchema = z.object({
|
|
|
4111
4183
|
choices: z.array(z.object({
|
|
4112
4184
|
id: z.string(),
|
|
4113
4185
|
label: z.string()
|
|
4114
|
-
}))
|
|
4186
|
+
})),
|
|
4187
|
+
topicsQuestion: z.string()
|
|
4115
4188
|
});
|
|
4116
4189
|
const newsletterHydrationSchema = z.object({
|
|
4117
4190
|
target: z.discriminatedUnion("tag", [
|
|
@@ -4164,6 +4237,10 @@ function newsletterGlobalForm(context) {
|
|
|
4164
4237
|
privacyNote: null
|
|
4165
4238
|
};
|
|
4166
4239
|
}
|
|
4240
|
+
const DEFAULT_TOPICS_QUESTION = "What would you like to hear about?";
|
|
4241
|
+
function newsletterTopicsQuestion(authored) {
|
|
4242
|
+
return authored?.trim() || DEFAULT_TOPICS_QUESTION;
|
|
4243
|
+
}
|
|
4167
4244
|
function buildNewsletterDisplay(source) {
|
|
4168
4245
|
const context = source.mailingList;
|
|
4169
4246
|
const form = newsletterGlobalForm(context);
|
|
@@ -4179,7 +4256,8 @@ function buildNewsletterDisplay(source) {
|
|
|
4179
4256
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
4180
4257
|
privacyNote: newsletterPrivacyNote(source.source, form.privacyNote),
|
|
4181
4258
|
fields: getGlobalFormFields(form, source),
|
|
4182
|
-
choices
|
|
4259
|
+
choices,
|
|
4260
|
+
topicsQuestion: newsletterTopicsQuestion(source.topicsQuestion)
|
|
4183
4261
|
};
|
|
4184
4262
|
}
|
|
4185
4263
|
const newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -4220,7 +4298,7 @@ function projectNewsletterFormHydrationTarget(source) {
|
|
|
4220
4298
|
tag: "block-source",
|
|
4221
4299
|
sourceRef: null
|
|
4222
4300
|
};
|
|
4223
|
-
default: return assertNever$
|
|
4301
|
+
default: return assertNever$1(source.newsletterBlockSubmission);
|
|
4224
4302
|
}
|
|
4225
4303
|
case "signed-hosted-booking":
|
|
4226
4304
|
case "signed-footer": return {
|
|
@@ -4228,7 +4306,7 @@ function projectNewsletterFormHydrationTarget(source) {
|
|
|
4228
4306
|
sourceRef: source.sourceRef
|
|
4229
4307
|
};
|
|
4230
4308
|
case "preview": return { tag: "preview" };
|
|
4231
|
-
default: return assertNever$
|
|
4309
|
+
default: return assertNever$1(source);
|
|
4232
4310
|
}
|
|
4233
4311
|
}
|
|
4234
4312
|
function resolveRuntimeChoices(assessment) {
|
|
@@ -4276,9 +4354,9 @@ function parseRequiredMailingListSignedSourceToken(value) {
|
|
|
4276
4354
|
if (!parsed) throw new Error("Mailing-list signup signed source ref requires token");
|
|
4277
4355
|
return parsed;
|
|
4278
4356
|
}
|
|
4279
|
-
/** Hosted signup always
|
|
4357
|
+
/** Hosted signup always says people can leave, using the owner's note when it already does. */
|
|
4280
4358
|
function newsletterPrivacyNote(source, privacyNote) {
|
|
4281
|
-
return source !== "signed-hosted-booking" || privacyNote
|
|
4359
|
+
return source !== "signed-hosted-booking" || /unsubscribe/i.test(privacyNote ?? "") ? privacyNote : [privacyNote, DEFAULT_MAILING_LIST_PRIVACY_NOTE].filter(Boolean).join(" ");
|
|
4282
4360
|
}
|
|
4283
4361
|
//#endregion
|
|
4284
4362
|
//#region ../blocks/src/system/blocks/products/shared.ts
|
|
@@ -4863,4 +4941,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4863
4941
|
};
|
|
4864
4942
|
}
|
|
4865
4943
|
//#endregion
|
|
4866
|
-
export {
|
|
4944
|
+
export { resolveOfferingsPreviewGroups as $, Grid as $t, formInteractiveIslandPropsCodec as A, sameMailingListPlacementTargeting as An, eventPaginationLoadReducer as At, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as B, normalizeOptionalId as Bt, newsletterFormInteractiveIslandPropsCodec as C, planSiteChromePlacement as Cn, recurringScheduleProjectionSchema as Ct, publicGiftingOffersResponseSchema as D, parseMailingListPlacementTargeting as Dn, eventListingInteractiveIslandPropsCodec as Dt, giftingInteractiveIslandPropsCodec as E, assessMailingListTargeting as En, eventListingBlockRuntime as Et, eventRegistrationInteractiveIslandPropsCodec as F, toError as Ft, groupOfferingRunsByCourse as G, cardListPresentationSchemaShape as Gt, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as H, listingEventCardProps as Ht, resolveEventRegistrationEventSource as I, buildEventRuntimeFilters as It, normalizeOfferingsPreviewItemLimit as J, MediaNodeServer as Jt, isOfferingsPreviewSourceKey as K, resolveCardListSchedule as Kt, offeringNounForEvent as L, getEventRuntimeFiltersKey as Lt, buildEventRegistrationInteractiveIslandProps as M, unsafeAsContentEntryId as Mn, getEventPaginationView as Mt, displayButtonText as N, planEventPageOperation as Nt, buildFormInteractiveIslandProps as O, parseMailingListVisitorSelection as On, createInitialEventPaginationLoadState as Ot, eventRegistrationBlockRuntime as P, toEventPaginationLoadError as Pt, resolveOfferingsPreviewGroupCta as Q, getContainerClass as Qt, DEFAULT_GROUP_CTA as R, normalizeCsvIds as Rt, newsletterFormBlockRuntime as S, parseHeaderPositioning as Sn, projectRecurringSchedule as St, giftingBlockRuntime as T, buildMailingListSignupBlockSourceRef as Tn, buildEventListingInteractiveIslandProps as Tt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as U, CardListContentPart as Ut, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as V, catalogueEventCardProps as Vt, buildOfferingsPreviewListing as W, CardListLeadDate as Wt, offeringsListingFor as X, quickFactSlots as Xt, offeringRunLifecycle as Y, EventQuickFacts as Yt, readOfferingsGrouping as Z, getCardOrientation as Zt, shopProductPresentation as _, resolveEventSelection as _n, buildEventCalendarInteractiveIslandProps as _t, buildShopInteractiveIslandProps as a, formatCoursePrice as an, bookingEntryProgress as at, buildNewsletterFormInteractiveIslandProps as b, resolveHeaderChromeRuntimeContract as bn, eventCalendarBlockRuntime as bt, checkoutBlockRuntime as c, formatEventPriceAmount as cn, formatBookingSchedulePresentation as ct, productDetailBlockRuntime as d, normalizeEventCategoryIds as dn, cancelledDateCopy as dt, buildEventListWeek as en, resolveOfferingsRenderInput as et, productDetailInteractiveIslandPropsCodec as f, normalizeEventScheduleScope as fn, hasCancelledRegistrationDate as ft, shopInteractiveIslandPropsCodec as g, normalizeEventVenueId as gn, eventCombinedInteractiveIslandPropsCodec as gt, shopBlockRuntime as h, normalizeEventSurfaceScope as hn, eventCombinedBlockRuntime as ht, buildProductListInteractiveIslandProps as i, weekColumnDays as in, bookingEntry as it, buildEventRegistrationDisplayFromScopedEvents as j, parseContentVersionId as jn, getEventIdentity as jt, formBlockRuntime as k, DEFAULT_MAILING_LIST_TARGETING as kn, eventPageOperationQuery as kt, checkoutInteractiveIslandPropsCodec as l, formatEventPriceDisplay as ln, occurrenceContextSchema as lt, productListInteractiveIslandPropsCodec as m, normalizeEventSurfacePresets as mn, buildEventCombinedListingDisplay as mt, buildCheckoutInteractiveIslandProps as n, eventWeekGroupingContext as nn, bookingBarPlacement as nt, cartBlockRuntime as o, formatEventDepositNote as on, bookingPanelHeading as ot, productListBlockRuntime as p, normalizeEventStaffMemberId as pn, buildEventCombinedInteractiveIslandProps as pt, normalizeOfferingsPreviewContentForWrite as q, selectCardListPresentation as qt, buildProductDetailInteractiveIslandProps as r, groupEventsByWeek as rn, bookingCardEntry as rt, cartInteractiveIslandPropsCodec as s, formatEventPrice as sn, courseTitleOf as st, buildCartInteractiveIslandProps as t, eventListWeekDays as tn, DEFAULT_BOOKING_BUTTON_TEXT as tt, getShopDisplayForItems as u, formatEventStartingPrice as un, closedRunCopy as ut, publicProductsResponseSchema as v, headerChromeRuntimeContractSchema as vn, buildEventCalendarListingDisplay as vt, buildGiftingInteractiveIslandProps as w, splitSiteChromePlacementClasses as wn, combinedLookSchema as wt, newsletterBlockSubmissionMessage as x, staticHeaderChromeRuntime as xn, eventCalendarInteractiveIslandPropsCodec as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, isHeaderScrollRuntimeEnabled as yn, buildEventCalendarListingRender as yt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as z, normalizeCsvString as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D8TpQXjX.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-CcGWvyht.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
2
|
+
import { Jr as isInlineTextEmpty, Ma as resolveDateRuntimeContext, Yr as parseInlineTextFromUnknown, co as formatEventRemainingPlaces, ei as eventDateOptions, fo as getEventAvailabilityStatus, ii as formatEventClockLabel, mi as resolveEventTimeZone, mo as isEventFull, pi as groupEventsByDate, ui as formatEventTimeRange, wr as RichText } from "./display-DMqotaGU.mjs";
|
|
3
|
+
import { dn as parseLocalScheduleTime, nn as formatBookingCompactEnglishTime, qt as formatDate, rn as toScheduledBookingDateTime } from "./noop-DF8_EiFt.mjs";
|
|
4
|
+
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
+
import { t as LocationMapActions } from "./LocationMapActions-BecH-qhI.mjs";
|
|
6
6
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-xrjaKaCj.mjs";
|
|
7
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-DHmeQAvq.mjs";
|
|
10
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-BJzmFdcn.mjs";
|
|
11
|
+
import { l as formatEventTeacherLine } from "./EventItem-BybMSKNL.mjs";
|
|
12
|
+
import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-Ch0w0Utn.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CDAfpMQU.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
//#region ../core/src/opening-hours.ts
|
|
@@ -645,7 +645,7 @@ const WeekBoardLoadError = ({ navigation, buttonVariant }) => {
|
|
|
645
645
|
return /* @__PURE__ */ jsxs("div", {
|
|
646
646
|
className: "event-week-board-error",
|
|
647
647
|
role: "status",
|
|
648
|
-
children: [/* @__PURE__ */ jsx("p", { children:
|
|
648
|
+
children: [/* @__PURE__ */ jsx("p", { children: CALENDAR_LOAD_FAILURE_MESSAGE }), /* @__PURE__ */ jsx(ThemedButton, {
|
|
649
649
|
type: "button",
|
|
650
650
|
variant: buttonVariant,
|
|
651
651
|
size: "sm",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { Wt as capitalize, Zt as formatTime$1, an as addLocalScheduleDays, hn as parseUtcIsoDateTimeString, ln as getLocalScheduleDate, n as assertNever, pn as resolveBookingTimeZoneId, qt as formatDate$1, sn as formatLocalScheduleDate, un as parseBookingLocalDate } from "./noop-DF8_EiFt.mjs";
|
|
3
|
+
import { D as unsafeAsAppointmentResourceId } from "./creditProducts-BQ1t1erI.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-D8TpQXjX.mjs";
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
6
6
|
function clientPersonPhrases(noun) {
|
|
7
7
|
if (noun == null) return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getAutoAppliedDiscountPreview, h as discountAvailabilityHasDiscounts, m as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-DGgsjqXK.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
|
|
@@ -64,6 +64,7 @@ function TerminalPanel({ tone, title, titleAs: Title = "h3", body, secondaryBody
|
|
|
64
64
|
const initialDiscountCodeUiState = {
|
|
65
65
|
discountUiOpen: false,
|
|
66
66
|
discountCode: "",
|
|
67
|
+
discountCodeRestored: false,
|
|
67
68
|
availability: { tag: "disabled" }
|
|
68
69
|
};
|
|
69
70
|
function getDiscountContextKey(context) {
|
|
@@ -113,9 +114,21 @@ function discountAvailabilityStateFromResponse(requestKey, response) {
|
|
|
113
114
|
autoAppliedDiscount: getAutoAppliedDiscountPreview(response)
|
|
114
115
|
};
|
|
115
116
|
}
|
|
117
|
+
/** When codes can't be entered a typed code goes, but a restored one stays until the server has refused it. */
|
|
118
|
+
function withoutManualEntry(state, availability) {
|
|
119
|
+
return state.discountCodeRestored ? {
|
|
120
|
+
...state,
|
|
121
|
+
availability
|
|
122
|
+
} : {
|
|
123
|
+
...state,
|
|
124
|
+
discountUiOpen: false,
|
|
125
|
+
discountCode: "",
|
|
126
|
+
availability
|
|
127
|
+
};
|
|
128
|
+
}
|
|
116
129
|
function discountCodeUiReducer(state, event) {
|
|
117
130
|
switch (event.type) {
|
|
118
|
-
case "availability-disabled": return
|
|
131
|
+
case "availability-disabled": return withoutManualEntry(state, { tag: "disabled" });
|
|
119
132
|
case "availability-loading": return {
|
|
120
133
|
...state,
|
|
121
134
|
availability: {
|
|
@@ -125,29 +138,26 @@ function discountCodeUiReducer(state, event) {
|
|
|
125
138
|
};
|
|
126
139
|
case "availability-loaded": {
|
|
127
140
|
const availability = discountAvailabilityStateFromResponse(event.requestKey, event.response);
|
|
128
|
-
if (availability.tag !== "available" || !availability.manualCodeEntryAllowed) return
|
|
129
|
-
...state,
|
|
130
|
-
discountUiOpen: false,
|
|
131
|
-
discountCode: "",
|
|
132
|
-
availability
|
|
133
|
-
};
|
|
141
|
+
if (availability.tag !== "available" || !availability.manualCodeEntryAllowed) return withoutManualEntry(state, availability);
|
|
134
142
|
return {
|
|
135
143
|
...state,
|
|
136
144
|
availability
|
|
137
145
|
};
|
|
138
146
|
}
|
|
139
|
-
case "availability-failed": return {
|
|
147
|
+
case "availability-failed": return withoutManualEntry(state, {
|
|
148
|
+
tag: "error",
|
|
149
|
+
requestKey: event.requestKey
|
|
150
|
+
});
|
|
151
|
+
case "discount-code-changed": return {
|
|
140
152
|
...state,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
availability: {
|
|
144
|
-
tag: "error",
|
|
145
|
-
requestKey: event.requestKey
|
|
146
|
-
}
|
|
153
|
+
discountCode: event.code,
|
|
154
|
+
discountCodeRestored: event.code.trim() === "" ? false : state.discountCodeRestored
|
|
147
155
|
};
|
|
148
|
-
case "discount-code-
|
|
156
|
+
case "discount-code-restored": return {
|
|
149
157
|
...state,
|
|
150
|
-
|
|
158
|
+
discountUiOpen: true,
|
|
159
|
+
discountCode: event.code,
|
|
160
|
+
discountCodeRestored: true
|
|
151
161
|
};
|
|
152
162
|
case "discount-ui-open-changed": return {
|
|
153
163
|
...state,
|
|
@@ -210,6 +220,11 @@ function useDiscountCodeUi(options) {
|
|
|
210
220
|
type: "discount-code-changed",
|
|
211
221
|
code
|
|
212
222
|
}),
|
|
223
|
+
restoreDiscountCode: (code) => dispatch({
|
|
224
|
+
type: "discount-code-restored",
|
|
225
|
+
code
|
|
226
|
+
}),
|
|
227
|
+
discountCodeRestored: state.discountCodeRestored,
|
|
213
228
|
discountsAvailable: isAvailable,
|
|
214
229
|
manualCodeEntryAllowed,
|
|
215
230
|
autoAppliedDiscount: isAvailable ? settledAvailability.autoAppliedDiscount : null,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { At as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { At as eventPaginationLoadReducer, Bt as normalizeOptionalId, Ft as toError, Lt as getEventRuntimeFiltersKey, Mt as getEventPaginationView, Nt as planEventPageOperation, Ot as createInitialEventPaginationLoadState, Pt as toEventPaginationLoadError, Rt as normalizeCsvIds, jt as getEventIdentity, kt as eventPageOperationQuery, zt as normalizeCsvString } from "./shop.interactive-CJAINJr3.mjs";
|
|
3
|
+
import { Fa as getBlockApiReadStage } from "./display-DMqotaGU.mjs";
|
|
4
|
+
import { n as assertNever } from "./noop-DF8_EiFt.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-D8TpQXjX.mjs";
|
|
6
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-BDZLALxj.mjs";
|
|
6
7
|
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-
|
|
8
|
+
import { r as EventItem } from "./EventItem-BybMSKNL.mjs";
|
|
9
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-r31k8Icz.mjs";
|
|
9
10
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
//#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as membershipCardListContent, f as membershipClassesLabel, p as passCardListContent } from "./display-DMqotaGU.mjs";
|
|
3
|
+
import { r as listLookSlot } from "./lookSurfaces-BDZLALxj.mjs";
|
|
3
4
|
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
4
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-BybMSKNL.mjs";
|
|
5
6
|
import React from "react";
|
|
6
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|