@riverbankcms/sdk 0.174.1 → 0.176.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-DvoTk7Py.d.ts} +1 -1
- package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-D-l374tU.d.ts} +8 -16
- package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-22DdQAj5.d.ts} +2 -2
- package/dist/_dts/{client-B1J6Akyf.d.ts → client-D4p0J1lK.d.ts} +487 -11
- package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-0WWR6dC4.d.ts} +2 -2
- package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-f_ZG_SwY.d.ts} +8 -8
- package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-DSeZvOaj.d.ts} +85 -8
- package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-BlitPA2D.d.ts} +2 -2
- package/dist/_dts/{index-BLEKFHt1.d.ts → index-CKkkCgb6.d.ts} +1 -1
- package/dist/_dts/{index-yWDbUojb.d.ts → index-CoLcwjqJ.d.ts} +1 -1
- package/dist/_dts/{index-DpJm0NpL.d.ts → index-D-ai8IQd.d.ts} +4 -4
- package/dist/_dts/{index-CXZSy_9M.d.ts → index-DDsfmM4d.d.ts} +2 -2
- package/dist/_dts/{index-CF62FntA.d.ts → index-EJMo-KSo.d.ts} +2 -2
- package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-ZKEDvLuN.d.ts} +1 -1
- package/dist/_dts/{index-BgOr1Xyz.d.ts → index-tcPtGdag.d.ts} +3 -3
- package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Ci932ORy.d.ts} +7 -7
- package/dist/_dts/{request-BK-pHf0P.d.ts → request-B8jVdvgI.d.ts} +1993 -407
- package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-DrSMuD76.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DXUCWJ3y.d.ts → resolvePageContent-Be4iL6-F.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 +5 -177
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +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-CwmB2NHU.d.ts → types-BXMX4z2j.d.ts} +7 -7
- package/dist/_dts/{types-DjVNADXR.d.ts → types-DXY64Xh4.d.ts} +4 -4
- package/dist/_dts/{types-Dmow_FI6.d.ts → types-lwSgCWZ4.d.ts} +11 -2
- package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-C5xp--Fu.d.ts} +7 -4
- package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-MbvIo2jS.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +36 -11
- package/dist/client/DemoBookingPortalAccess-C9Ggcfx3.mjs +545 -0
- package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-BSMuSqg0.mjs} +15 -25
- package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-BTrmSyUB.mjs} +25 -17
- package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-B0WjGXsH.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
- package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
- package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-BEH4UbSL.mjs} +18 -8
- package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-B2EikR3f.mjs} +635 -359
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -22
- package/dist/client/{Page-BpeP9xdt.mjs → Page-F3lhDvw1.mjs} +1036 -953
- package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +4 -301
- package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-Bb7rPtSq.mjs} +37 -12
- package/dist/client/{accordion-nR7D4m1a.mjs → accordion-BfsOiweL.mjs} +1 -1
- package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-B8ohIj13.mjs} +229 -42
- package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-CXsck2oH.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -1
- package/dist/client/{carousel-CVUOatsY.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
- package/dist/client/{cart-DE0K6E0R.mjs → cart-CTC2oS3p.mjs} +3 -3
- package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
- package/dist/client/{checkout-76cdHyPL.mjs → checkout-BeW1ufaH.mjs} +3 -3
- package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-BeU32khQ.mjs} +1 -1
- package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
- package/dist/client/client.mjs +145 -21
- package/dist/client/{context-CNlesLfF.mjs → context-R9p5c8IH.mjs} +76 -58
- package/dist/client/{course-DHIrXqNT.mjs → course-CUFVJEAc.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
- package/dist/client/display-4HYOb-AK.mjs +11844 -0
- package/dist/client/{enhanceHeaderSection-5GD5o4Mt.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
- package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
- package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-DWvSODTI.mjs} +176 -75
- package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
- package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
- package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
- package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-B-bJOQUk.mjs} +4 -4
- package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
- package/dist/client/{form-CfqIAhfN.mjs → form-BbUUt784.mjs} +3 -3
- package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BVlz-9_t.mjs} +4 -4
- package/dist/client/{form.parts-Bf-L66Gg.mjs → form.parts-TB4UIrML.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-TDHhFjFN.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-CbNSrp7C.mjs +28 -0
- package/dist/client/gifting.client-B__bGhFc.mjs +404 -0
- package/dist/client/gifting.parts-CTA1sDW6.mjs +86 -0
- package/dist/client/{headerSection-WVXtOcuW.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
- package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BwiNdgMU.mjs} +2951 -14395
- package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-B17WYHxZ.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +3 -3
- package/dist/client/{newsletterForm-DOVe-qY3.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-CaQxI-Js.mjs} +94 -36
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CNzeFnFf.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
- package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
- package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-BgKmCwA8.mjs} +3 -3
- package/dist/client/{productList-DTgZXOEq.mjs → productList-C_wMKsYS.mjs} +3 -3
- package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-y3LvxaiG.mjs} +4 -3
- package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-CIWYKz1V.mjs} +369 -246
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +87 -21
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
- package/dist/client/{shop-5LBhftWx.mjs → shop-CFbWlv_W.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-C-I29eaA.mjs} +64 -32
- package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DOm7vx0X.mjs +83 -0
- package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-GHTWUKD6.mjs} +56 -19
- package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CxDJ8P2r.mjs} +113 -35
- package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-Be9QJJpT.mjs} +2 -2
- package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel--R0zVzZO.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BGu_2F50.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +32 -17
- package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -6
- package/dist/client/{view-BvuYmQJ5.mjs → view-3foOzGWR.mjs} +3 -2
- package/dist/client/{view-D9ObkFtz.mjs → view-BbzH5MQb.mjs} +128 -32
- package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-0xyUPWUB.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-D8vUzXtI.mjs} +61 -55
- package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-CRjS4gAu.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-BvdBdeH_.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-DWTyKbFj.mjs} +156 -143
- package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-BqY2TTcZ.mjs} +4535 -2913
- package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-BuRYe2iL.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-BnK5kH9f.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-DbKozRSn.mjs} +527 -236
- package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-D9s6dyMW.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-Ce4WCxpT.mjs} +28 -5
- 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-BYezcMx5.mjs} +94 -12
- package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-Cn7gg13_.mjs} +84 -16
- package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-VGgS6UvF.mjs} +13 -34
- package/dist/server/{client-CGtU5fHI.mjs → client-Bvag5OtW.mjs} +145 -22
- 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-CxASA3PE.mjs} +6 -9
- package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CQgde5DN.mjs} +2 -2
- package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
- package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-BqVLO4gX.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-CfSnAkCO.mjs} +67 -40
- package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +7 -15
- package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-D23o5QgC.mjs} +1068 -891
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BuoXWT9y.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
- package/dist/server/{registry-DmqxC8th.mjs → registry-CXRXsFSx.mjs} +19721 -19621
- 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 +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-EYogtwQc.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
- package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
- 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-CozQ7wE0.mjs} +4 -4
- package/dist/server/{version-DT_efohp.mjs → version-CgCWRFEY.mjs} +1 -1
- package/dist/styles/index.css +295 -37
- package/package.json +1 -1
- package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
- package/dist/server/identity-DQD_8lNO.mjs +0 -6
package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-B17WYHxZ.mjs}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
2
|
+
import { On as parseMailingListVisitorSelection, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./shop.interactive-CxDJ8P2r.mjs";
|
|
3
|
+
import { n as assertNever } from "./noop-CaQxI-Js.mjs";
|
|
4
|
+
import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-R9p5c8IH.mjs";
|
|
6
|
+
import { r as listLookSlot } from "./lookSurfaces-BwiNdgMU.mjs";
|
|
6
7
|
import { S as clsx } from "./ThemedButton-DuaYtnvG.mjs";
|
|
7
8
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
8
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
9
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DN9wD1ZG.mjs";
|
|
9
10
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
10
11
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
11
12
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
@@ -311,6 +312,7 @@ function NewsletterFormFields({ render, submissionState, submitting, submissionM
|
|
|
311
312
|
children: [
|
|
312
313
|
render.hydration.choicePresentation === "visitor_choice" ? /* @__PURE__ */ jsx(NewsletterTopicChips, {
|
|
313
314
|
choices: render.display.choices,
|
|
315
|
+
question: render.display.topicsQuestion,
|
|
314
316
|
disabled: submitting,
|
|
315
317
|
error: fieldError(TOPIC_CHOICE_FIELD_ID)
|
|
316
318
|
}) : null,
|
package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-DN9wD1ZG.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { r as listLookSlot } from "./lookSurfaces-BwiNdgMU.mjs";
|
|
3
3
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
4
4
|
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
|
|
5
5
|
import "react";
|
|
@@ -145,14 +145,14 @@ function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
/** Visitor-chosen topics as toggle chips. Real checkboxes underneath. */
|
|
148
|
-
function NewsletterTopicChips({ choices, disabled, error }) {
|
|
148
|
+
function NewsletterTopicChips({ choices, question, disabled, error }) {
|
|
149
149
|
const errorId = `newsletter_${TOPIC_CHOICE_FIELD_ID}-error`;
|
|
150
150
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("fieldset", {
|
|
151
151
|
className: "newsletter-topics",
|
|
152
152
|
"aria-describedby": error ? errorId : void 0,
|
|
153
153
|
children: [/* @__PURE__ */ jsx("legend", {
|
|
154
154
|
className: "newsletter-topics-legend",
|
|
155
|
-
children:
|
|
155
|
+
children: question
|
|
156
156
|
}), /* @__PURE__ */ jsx("div", {
|
|
157
157
|
className: "newsletter-topic-chips",
|
|
158
158
|
children: choices.map((choice) => /* @__PURE__ */ jsxs("label", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as NewsletterFormClient } from "./newsletter-form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-R9p5c8IH.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-B17WYHxZ.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
7
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as mediaIdentifierSchema, d as parseUuidBrand, f as err, n as renderableMediaAssetSchema, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
2
|
+
import { a as mediaIdentifierSchema, d as parseUuidBrand, f as err$1, n as renderableMediaAssetSchema, p as ok$1 } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
3
|
import { c as addMonths } from "./src-xrjaKaCj.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../core/src/branded/customers.ts
|
|
@@ -93,31 +93,31 @@ function toNonNegativeCents(value) {
|
|
|
93
93
|
return unsafeAsNonNegativeCents(Math.max(0, Math.trunc(value)));
|
|
94
94
|
}
|
|
95
95
|
function parseCents(value) {
|
|
96
|
-
if (!Number.isFinite(value)) return err({ kind: "invalid-number" });
|
|
97
|
-
if (!Number.isInteger(value)) return err({ kind: "not-whole-cents" });
|
|
98
|
-
return ok(unsafeAsCents(value));
|
|
96
|
+
if (!Number.isFinite(value)) return err$1({ kind: "invalid-number" });
|
|
97
|
+
if (!Number.isInteger(value)) return err$1({ kind: "not-whole-cents" });
|
|
98
|
+
return ok$1(unsafeAsCents(value));
|
|
99
99
|
}
|
|
100
100
|
function parseNonNegativeCents(value) {
|
|
101
101
|
const parsed = parseCents(value);
|
|
102
102
|
if (!parsed.ok) return parsed;
|
|
103
|
-
if (parsed.value < 0) return err({ kind: "negative" });
|
|
104
|
-
return ok(unsafeAsNonNegativeCents(parsed.value));
|
|
103
|
+
if (parsed.value < 0) return err$1({ kind: "negative" });
|
|
104
|
+
return ok$1(unsafeAsNonNegativeCents(parsed.value));
|
|
105
105
|
}
|
|
106
106
|
function parsePositiveCents(value) {
|
|
107
107
|
const parsed = parseNonNegativeCents(value);
|
|
108
108
|
if (!parsed.ok) return parsed;
|
|
109
|
-
if (parsed.value === 0) return err({ kind: "zero-not-allowed" });
|
|
110
|
-
return ok(unsafeAsPositiveCents(parsed.value));
|
|
109
|
+
if (parsed.value === 0) return err$1({ kind: "zero-not-allowed" });
|
|
110
|
+
return ok$1(unsafeAsPositiveCents(parsed.value));
|
|
111
111
|
}
|
|
112
112
|
function normalizeMoneyInput(value, options) {
|
|
113
113
|
return (options.stripFormatting === true ? value.replace(/[^0-9.-]/g, "") : value).trim();
|
|
114
114
|
}
|
|
115
115
|
function parseFiniteMoneyAmount(value, options) {
|
|
116
116
|
const normalized = normalizeMoneyInput(value, options);
|
|
117
|
-
if (normalized.length === 0) return err({ kind: "empty" });
|
|
117
|
+
if (normalized.length === 0) return err$1({ kind: "empty" });
|
|
118
118
|
const amount = Number(normalized);
|
|
119
|
-
if (!Number.isFinite(amount)) return err({ kind: "invalid-number" });
|
|
120
|
-
return ok(amount);
|
|
119
|
+
if (!Number.isFinite(amount)) return err$1({ kind: "invalid-number" });
|
|
120
|
+
return ok$1(amount);
|
|
121
121
|
}
|
|
122
122
|
function roundMoneyAmountToCents(amount) {
|
|
123
123
|
return Math.round(amount * 100);
|
|
@@ -125,10 +125,10 @@ function roundMoneyAmountToCents(amount) {
|
|
|
125
125
|
function parsePositiveMoneyInputToCents(value, options = {}) {
|
|
126
126
|
const parsed = parseFiniteMoneyAmount(value, options);
|
|
127
127
|
if (!parsed.ok) return parsed;
|
|
128
|
-
if (parsed.value < 0) return err({ kind: "negative" });
|
|
128
|
+
if (parsed.value < 0) return err$1({ kind: "negative" });
|
|
129
129
|
const amountCents = roundMoneyAmountToCents(parsed.value);
|
|
130
|
-
if (amountCents <= 0) return err({ kind: "zero-not-allowed" });
|
|
131
|
-
return ok(unsafeAsPositiveCents(amountCents));
|
|
130
|
+
if (amountCents <= 0) return err$1({ kind: "zero-not-allowed" });
|
|
131
|
+
return ok$1(unsafeAsPositiveCents(amountCents));
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region ../core/src/booking-payment-options.ts
|
|
@@ -141,11 +141,11 @@ function parsePositiveMoneyInputToCents(value, options = {}) {
|
|
|
141
141
|
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
142
142
|
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
143
143
|
function validateBookingPaymentOptionKinds(kinds) {
|
|
144
|
-
if (kinds.length === 0) return err("no_options");
|
|
144
|
+
if (kinds.length === 0) return err$1("no_options");
|
|
145
145
|
const uniqueKinds = new Set(kinds);
|
|
146
|
-
if (uniqueKinds.size !== kinds.length) return err("duplicate_kind");
|
|
147
|
-
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err("incompatible_collection_options");
|
|
148
|
-
return ok(void 0);
|
|
146
|
+
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
147
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
148
|
+
return ok$1(void 0);
|
|
149
149
|
}
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region ../core/src/booking-date-time/instant.ts
|
|
@@ -153,10 +153,10 @@ function parseUtcIsoDateTimeString(value) {
|
|
|
153
153
|
const normalized = value.trim();
|
|
154
154
|
const hasUtcSuffix = normalized.endsWith("Z");
|
|
155
155
|
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
156
|
-
if (!hasUtcSuffix && !hasExplicitOffset) return err("missing-timezone-offset");
|
|
156
|
+
if (!hasUtcSuffix && !hasExplicitOffset) return err$1("missing-timezone-offset");
|
|
157
157
|
const date = new Date(normalized);
|
|
158
|
-
if (Number.isNaN(date.getTime())) return err("invalid-date-time");
|
|
159
|
-
return ok(date.toISOString());
|
|
158
|
+
if (Number.isNaN(date.getTime())) return err$1("invalid-date-time");
|
|
159
|
+
return ok$1(date.toISOString());
|
|
160
160
|
}
|
|
161
161
|
function toUtcIsoDateTimeString(value) {
|
|
162
162
|
const parsed = parseUtcIsoDateTimeString(value);
|
|
@@ -228,10 +228,10 @@ function isValidBookingTimeZone(timeZone) {
|
|
|
228
228
|
return isValid;
|
|
229
229
|
}
|
|
230
230
|
function parseBookingTimeZone(timeZone) {
|
|
231
|
-
if (typeof timeZone !== "string") return err("invalid-time-zone");
|
|
231
|
+
if (typeof timeZone !== "string") return err$1("invalid-time-zone");
|
|
232
232
|
const normalized = timeZone.trim();
|
|
233
|
-
if (normalized.length === 0 || NUMERIC_OFFSET_TIME_ZONE_PATTERN.test(normalized) || !isValidBookingTimeZone(normalized)) return err("invalid-time-zone");
|
|
234
|
-
return ok(normalized);
|
|
233
|
+
if (normalized.length === 0 || NUMERIC_OFFSET_TIME_ZONE_PATTERN.test(normalized) || !isValidBookingTimeZone(normalized)) return err$1("invalid-time-zone");
|
|
234
|
+
return ok$1(normalized);
|
|
235
235
|
}
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region ../core/src/booking-date-time/time-zone.ts
|
|
@@ -930,7 +930,7 @@ const locationValueSchema = z.strictObject({
|
|
|
930
930
|
/** API/DB ingress parses once. Removed locations are represented by null. */
|
|
931
931
|
function parseLocationValue(input) {
|
|
932
932
|
const parsed = locationValueSchema.nullable().safeParse(input);
|
|
933
|
-
return parsed.success ? ok(parsed.data) : err({
|
|
933
|
+
return parsed.success ? ok$1(parsed.data) : err$1({
|
|
934
934
|
kind: "invalid_location",
|
|
935
935
|
issues: parsed.error.issues
|
|
936
936
|
});
|
|
@@ -990,14 +990,6 @@ function toLocationCoordinates(value) {
|
|
|
990
990
|
lng: value.lng
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
/** Decide permission before loading or projecting the selected source. */
|
|
994
|
-
function decideLocationSourcePermission(source, businessAddressVisibility) {
|
|
995
|
-
if (source === "business_address" && businessAddressVisibility === void 0) return { kind: "unresolved" };
|
|
996
|
-
return source === "business_address" && businessAddressVisibility === "hidden" ? { kind: "hidden" } : {
|
|
997
|
-
kind: "permitted",
|
|
998
|
-
source
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
993
|
//#endregion
|
|
1002
994
|
//#region ../core/src/event-series-behaviour.ts
|
|
1003
995
|
const EVENT_PRESET_VALUES = [
|
|
@@ -2108,6 +2100,7 @@ const publicEventBaseSchema = z.object({
|
|
|
2108
2100
|
"online",
|
|
2109
2101
|
"hybrid"
|
|
2110
2102
|
]),
|
|
2103
|
+
addressAfterBooking: z.literal(true).optional(),
|
|
2111
2104
|
attendanceModes: z.array(publicEventAttendanceModeAvailabilitySchema),
|
|
2112
2105
|
startsAt: z.string(),
|
|
2113
2106
|
endsAt: z.string(),
|
|
@@ -2193,6 +2186,7 @@ const decorativeTransitionIntentValues = [
|
|
|
2193
2186
|
"wave-edge-drift",
|
|
2194
2187
|
"wave-edge-echo",
|
|
2195
2188
|
"arc-edge-echo",
|
|
2189
|
+
"arc-edge-bulge",
|
|
2196
2190
|
"angle-edge",
|
|
2197
2191
|
"angle-edge-subtle",
|
|
2198
2192
|
"angle-edge-steep"
|
|
@@ -2282,13 +2276,16 @@ function normalizeEventCalendarDisplayMode(input) {
|
|
|
2282
2276
|
if (isEventCalendarDisplayMode(input.variant)) return input.variant;
|
|
2283
2277
|
return isEventCalendarDisplayMode(input.displayMode) ? input.displayMode : void 0;
|
|
2284
2278
|
}
|
|
2285
|
-
/**
|
|
2279
|
+
/**
|
|
2280
|
+
* One closed authority for the projections each mode needs on the server. Combined always opens on
|
|
2281
|
+
* its list, so its calendar tab reads its own months in the browser when it opens.
|
|
2282
|
+
*/
|
|
2286
2283
|
function resolveEventCalendarReadPlan(input) {
|
|
2287
2284
|
const mode = normalizeEventCalendarDisplayMode(input) ?? "combined";
|
|
2288
2285
|
switch (mode) {
|
|
2289
2286
|
case "combined": return {
|
|
2290
2287
|
mode,
|
|
2291
|
-
jobs: "
|
|
2288
|
+
jobs: "list",
|
|
2292
2289
|
readProfile: "listing-card"
|
|
2293
2290
|
};
|
|
2294
2291
|
case "week": return {
|
|
@@ -2446,6 +2443,12 @@ const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(
|
|
|
2446
2443
|
//#region ../blocks/src/contracts/events.ts
|
|
2447
2444
|
/** Release 1: older SDKs reject additional confirmed-outcome fields. */
|
|
2448
2445
|
const EVENT_BOOKING_ARRIVAL_QUERY = "bookingArrival";
|
|
2446
|
+
/** This client ignores unknown response fields, so it can be sent everything. Bundles up to sdk-v0.169.1 don't send it. */
|
|
2447
|
+
const EVENT_BOOKING_DECODER_QUERY = "bookingDecoder";
|
|
2448
|
+
const EVENT_BOOKING_RESPONSE_QUERY = {
|
|
2449
|
+
[EVENT_BOOKING_ARRIVAL_QUERY]: 1,
|
|
2450
|
+
[EVENT_BOOKING_DECODER_QUERY]: "tolerant"
|
|
2451
|
+
};
|
|
2449
2452
|
const eventAutoApplyDiscountPreviewBaseSchema = z.object({
|
|
2450
2453
|
id: z.string(),
|
|
2451
2454
|
publicLabel: z.string(),
|
|
@@ -2487,6 +2490,61 @@ const verifiedSiteTermsAcceptanceSchema = z.object({
|
|
|
2487
2490
|
alreadyAgreed: z.boolean()
|
|
2488
2491
|
});
|
|
2489
2492
|
//#endregion
|
|
2493
|
+
//#region ../frontend-state/src/submission.ts
|
|
2494
|
+
function clearWorkflowFeedback(state) {
|
|
2495
|
+
return {
|
|
2496
|
+
...state,
|
|
2497
|
+
feedback: idleSubmissionFeedback()
|
|
2498
|
+
};
|
|
2499
|
+
}
|
|
2500
|
+
function reportWorkflowError(state, message) {
|
|
2501
|
+
return {
|
|
2502
|
+
...state,
|
|
2503
|
+
feedback: errorSubmissionFeedback(message)
|
|
2504
|
+
};
|
|
2505
|
+
}
|
|
2506
|
+
function reportWorkflowSuccess(state, message) {
|
|
2507
|
+
return {
|
|
2508
|
+
...state,
|
|
2509
|
+
feedback: successSubmissionFeedback(message)
|
|
2510
|
+
};
|
|
2511
|
+
}
|
|
2512
|
+
function idleSubmissionFeedback() {
|
|
2513
|
+
return { tag: "idle" };
|
|
2514
|
+
}
|
|
2515
|
+
function errorSubmissionFeedback(message) {
|
|
2516
|
+
return {
|
|
2517
|
+
tag: "error",
|
|
2518
|
+
message
|
|
2519
|
+
};
|
|
2520
|
+
}
|
|
2521
|
+
function successSubmissionFeedback(message) {
|
|
2522
|
+
return {
|
|
2523
|
+
tag: "success",
|
|
2524
|
+
message
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
//#endregion
|
|
2528
|
+
//#region ../frontend-state/src/index.ts
|
|
2529
|
+
function ok() {
|
|
2530
|
+
return { ok: true };
|
|
2531
|
+
}
|
|
2532
|
+
function okWith(data) {
|
|
2533
|
+
return {
|
|
2534
|
+
ok: true,
|
|
2535
|
+
data
|
|
2536
|
+
};
|
|
2537
|
+
}
|
|
2538
|
+
function err(error) {
|
|
2539
|
+
return {
|
|
2540
|
+
ok: false,
|
|
2541
|
+
error
|
|
2542
|
+
};
|
|
2543
|
+
}
|
|
2544
|
+
function assertNever(value, message) {
|
|
2545
|
+
throw new Error(message ?? `Unexpected value: ${String(value)}`);
|
|
2546
|
+
}
|
|
2547
|
+
//#endregion
|
|
2490
2548
|
//#region ../logger/src/noop.ts
|
|
2491
2549
|
const noop = () => {};
|
|
2492
2550
|
const logger = {
|
|
@@ -2497,4 +2555,4 @@ const logger = {
|
|
|
2497
2555
|
withFields: (_) => logger
|
|
2498
2556
|
};
|
|
2499
2557
|
//#endregion
|
|
2500
|
-
export {
|
|
2558
|
+
export { toBookingRequirementConsentField as $, inferSiteDateLocale as $t, normalizeEventCalendarDisplayMode as A, publicEventLoaderQuerySchemaShape as At, headingDecorationOverrideValues as B, projectPublicLocation as Bt, eventCalendarListGroupingDecision as C, purchasablePublicMembershipProductSchema as Ct, isEventCalendarDefaultView as D, eventScheduleScopeValues as Dt, eventListArrangementValues as E, calendarWindowQuerySchema as Et, arrangementModes as F, EVENT_PRESET_VALUES as Ft, publicEventDestinationSchema as G, mapDrawingSchema as Gt, tileTreatmentValues as H, toLocationCoordinates as Ht, decorativeTransitionIntentValues as I, WHOLE_SERIES_EVENT_PRESET_VALUES as It, publicEventsArraySchema as J, formatDateTime as Jt, publicEventPricingSchema as K, formatDate as Kt, eventListTreatmentValues as L, locationValueSchema as Lt, accordionIconColorTokenValues as M, allocateReductionCents as Mt, accordionIconMotionValues as N, normalizeCurrencyCode as Nt, isEventCalendarDisplayMode as O, eventSurfacePresetValues as Ot, accordionIconSetValues as P, isRecord as Pt, isBookingRequirementConsentFieldId as Q, formatTimeZoneCityLabel as Qt, eyebrowTreatmentValues as R, normalizeLocationAddressText as Rt, resolveCalendarReadProfile as S, publicProductSchema as St, eventCalendarVariantMeaning as T, calendarMonthDate as Tt, visibleHeadingDecorationFamilyValues as U, capitalize as Ut, isArrangementMode as V, publicLocationSchema as Vt, eventVenueDrawingSchema as W, trimmedStringOrNull as Wt, blockBookingConsentSchema as X, formatTime as Xt, blockBookingPaymentTermsSchema as Y, formatDateTimeRange as Yt, bookingConsentCarrierSchema as Z, formatTimeRange as Zt, calendarQueryKey as _, parsePositiveCents as _n, eventCalendarDisplayModeValues as _t, okWith as a, compareLocalScheduleDates as an, isRichTextDoc as at, calendarWindowPageSchema as b, formatCurrencyAmount as bn, publicMembershipProductSchema as bt, reportWorkflowSuccess as c, getLocalScheduleDate as cn, imageMediaSchema as ct, EVENT_BOOKING_RESPONSE_QUERY as d, resolveBookingBusinessTimeZone as dn, runtimeMediaSchema as dt, resolveBookingDisplayContext as en, beforeBookingQuestionsPresentationSchema as et, eventAutoApplyDiscountPreviewSchema as f, resolveBookingTimeZoneId as fn, videoMediaSchema as ft, calendarPageResponseError as g, validateBookingPaymentOptionKinds as gn, eventCalendarDefaultViewValues as gt, calendarMonthKey as h, toUtcIsoDateTimeString as hn, mediaTypeDiscriminants as ht, ok as i, addLocalScheduleDays as in, createRichTextDoc as it, resolveEventCalendarReadPlan as j, unsafeAsPositiveCheckoutQuantity as jt, isEventCalendarListLayout as k, eventSurfaceScopeValues as kt, blockSiteTermsSchema as l, parseBookingLocalDate as ln, mediaSchema as lt, publicPassProductCollectionSchema as m, parseUtcIsoDateTimeString as mn, isDisplayMediaKind as mt, assertNever as n, toScheduledBookingDateTime as nn, RichTextDocSchema as nt, clearWorkflowFeedback as o, formatLocalScheduleDate as on, assetMediaSchema as ot, publicMembershipProductCollectionSchema as p, toBookingTimeZone as pn, PUBLIC_FILE_FIELD_KINDS as pt, publicEventSchema as q, formatDateRange as qt, err as r, buildBookingUtcDateWindow as rn, buildRichTextSchema as rt, reportWorkflowError as s, getBookingLocalDateKey as sn, externalMediaSchema as st, logger as t, formatBookingCompactEnglishTime as tn, bookingQuestionsAnswerValueSchema as tt, verifiedSiteTermsAcceptanceSchema as u, parseLocalScheduleTime as un, persistableMediaSchema as ut, calendarWindowBounds as v, parsePositiveMoneyInputToCents as vn, eventCalendarListLayoutCompatibleDisplayModeValues as vt, eventCalendarListLayoutOptions as w, purchasablePublicPassProductSchema as wt, planCalendarMonthRanges as x, formatGiftCardAmountLabel as xn, publicPassProductSchema as xt, calendarWindowMonths as y, toNonNegativeCents as yn, eventCalendarListLayoutValues as yt, headingDecorationColorTokenValues as z, parseLocationValue as zt };
|