@riverbankcms/sdk 0.143.0 → 0.145.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/{PreviewEditorSidebar-DROGfMKi.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +20 -26
- package/dist/{PreviewEditorUI-BaRjhFu-.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-OIABYLES.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +431 -351
- package/dist/{SiteChromeCustomizeContext-ohjTvZbc.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +3989 -2769
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
- package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
- package/dist/_dts/api/src/communications.d.ts +14 -22
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/endpoints.d.ts +105 -58
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
- package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +58 -10
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +6 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
- package/dist/_dts/core/src/editor-state.d.ts +6 -0
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/public-profile.d.ts +9 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +676 -241
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
- package/dist/_dts/sdk/src/client/types.d.ts +4 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +21 -15
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
- package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-BoCtvzzu.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-B5S30nZk.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +27 -17
- package/dist/client/{EventCombined.client-CeZ2-zSt.mjs → EventCombined.client-DnsUeONl.mjs} +54 -46
- package/dist/client/{EventListing.client-DJN3j8B3.mjs → EventListing.client-CNBFqJS4.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-RjtGzDQT.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
- package/dist/client/ThemedButton-LAJTNrS8.mjs +412 -0
- package/dist/client/{accordion-DOmnDoyg.mjs → accordion-BcNF9TjX.mjs} +1 -1
- package/dist/client/{bookingForm-C0vk7pgS.mjs → bookingForm-BUaQ3S03.mjs} +161 -75
- package/dist/client/bookings.mjs +392 -182
- package/dist/client/{carousel-BZJ7pno3.mjs → carousel-CTdF6e0V.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-CaeVAHJl.mjs → cart-pGtyf_XU.mjs} +3 -3
- package/dist/client/{checkout-7wmoNDtG.mjs → checkout-Da9WSn7Y.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +3819 -2717
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-BOimxE3U.mjs → context-BFeY_Wbm.mjs} +24 -8
- package/dist/client/{dates-BnzVksi4.mjs → dates-BhwVSxDg.mjs} +2 -2
- package/dist/client/{eventCalendar-l-fpaslC.mjs → eventCalendar-BAtdnR4s.mjs} +39 -50
- package/dist/client/{eventCombined-DGGvssK6.mjs → eventCombined-RksA3tRC.mjs} +5 -4
- package/dist/client/{eventDetails-DRiCm_hL.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
- package/dist/client/{eventListing-dph8loYX.mjs → eventListing-BpJBkviM.mjs} +5 -4
- package/dist/client/{eventRegistration-ClBohmbY.mjs → eventRegistration-B18jFq_o.mjs} +83 -68
- package/dist/client/{form-BLVVAnd3.mjs → form-Dodt8Y8t.mjs} +9 -10
- package/dist/client/{headerSection-DHy4C8Ix.mjs → headerSection-B0qj9ttg.mjs} +23 -30
- package/dist/client/hooks.mjs +807 -162
- package/dist/client/{locationMap-6HuS28ck.mjs → locationMap-gn-iMk7a.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-xOdcOhZP.mjs → newsletterForm-oByLdFkr.mjs} +31 -11
- package/dist/client/{pricing-ChinRYFt.mjs → pricing-BOU0_Hai.mjs} +1 -1
- package/dist/client/{productDetail-0chA5gbK.mjs → productDetail-D9v1zH2j.mjs} +3 -3
- package/dist/client/{productList-OoINA0h1.mjs → productList-D-mItx1n.mjs} +3 -3
- package/dist/client/{propsDecoder-CIZ-hbIG.mjs → propsDecoder-C3TP_z4x.mjs} +158 -61
- package/dist/client/rendering/client.mjs +2785 -2000
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3855 -2694
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +8 -1
- package/dist/client/{scrollToBlock-BPZl0gPZ.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
- package/dist/client/{shop-CLJFqNIq.mjs → shop-Dufw7N7o.mjs} +45 -58
- package/dist/client/{shop-commerce-PpANg5wB.mjs → shop-commerce-gklw_hLF.mjs} +42 -55
- package/dist/client/{shop-commerce-store-TA_Kz2ku.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
- package/dist/client/{shopShared-DzcFcA5g.mjs → shopShared-B5nyA41S.mjs} +6 -5
- package/dist/client/{useEventFilters-CFU21QZo.mjs → useEventFilters-CLL829vy.mjs} +66 -355
- package/dist/preview-next/before-render.mjs +147 -77
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/preview-next/keepAlive.mjs +147 -77
- package/dist/preview-next/middleware.mjs +147 -77
- package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
- package/dist/{sdk-runtime-CDKl0Fr7.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
- package/dist/{separator-BTp96X32.mjs → separator-EvdCAn4V.mjs} +1 -1
- package/dist/server/components.mjs +2548 -1607
- package/dist/server/config-validation.mjs +794 -160
- package/dist/server/config.mjs +794 -160
- package/dist/server/data.mjs +806 -161
- package/dist/server/index.mjs +167 -85
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14930 -14036
- package/dist/server/page-converter.mjs +494 -113
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2537 -1590
- package/dist/server/rendering.mjs +2571 -1618
- package/dist/server/routing.mjs +918 -200
- package/dist/server/server.mjs +819 -205
- package/dist/server/theme-bridge.mjs +1232 -28
- package/dist/server/theme.mjs +6 -4
- package/dist/styles/index.css +6 -0
- package/package.json +2 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as
|
|
3
|
-
import { A as resolveEventRegistrationScopedEvents, C as resolveRegistrationTarget, D as getWizardStepsForContext, E as getStepNumber,
|
|
4
|
-
import { a as canJoinEventWaitlistOnAnyMode, c as formatTicketTypeRemaining, f as getRemainingPlaces, h as selectMostOpenCapacitySource, i as canJoinEventWaitlist, m as selectEventCapacitySource, o as formatEventRemainingPlaces, p as isEventFull, r as formatEventPriceDisplay, s as formatRemainingPlaces, u as getEventAvailability } from "./pricing-
|
|
5
|
-
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { a as resolveBookingPaymentDueNowCents, i as buildBookingPaymentSelectionViewModel, n as StepIndicator$1, o as formatPrice, r as usePolling, t as BookingConsentAgreement } from "./BookingConsentAgreement-DlVOmpW4.mjs";
|
|
3
|
+
import { A as resolveEventRegistrationScopedEvents, C as resolveRegistrationTarget, D as getWizardStepsForContext, E as getStepNumber, Qt as formatBookingDateTime, S as resolveEventRequiresPayment, T as WIZARD_STEPS, Xt as formatBookingDate, _ as toRegistrationEvents, _n as formatCurrencyAmount, b as findPreSelectedEvent, cn as toScheduledBookingDateTime, en as formatBookingTime, fn as publicEventPricingCurrency, g as getRegistrationStartAt, gn as publicEventPricingType, h as buildEventRegistrationDisplayFromScopedEvents, hn as publicEventPricingStrategy, mn as publicEventPricingOptions, on as toBookingTimeZone, t as defineIslandPropsDecoder, ut as groupPublicEventsByRun, v as toWholeSeriesRegistrationEvents, vn as parseCurrencyCode, w as toRegistrationRequestSubject, x as resolveDiscountContext, y as findEventByOccurrenceId, zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
|
|
4
|
+
import { a as canJoinEventWaitlistOnAnyMode, c as formatTicketTypeRemaining, f as getRemainingPlaces, h as selectMostOpenCapacitySource, i as canJoinEventWaitlist, m as selectEventCapacitySource, o as formatEventRemainingPlaces, p as isEventFull, r as formatEventPriceDisplay, s as formatRemainingPlaces, u as getEventAvailability } from "./pricing-BOU0_Hai.mjs";
|
|
5
|
+
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-BFeY_Wbm.mjs";
|
|
6
6
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
7
|
-
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-
|
|
8
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
7
|
+
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-CWs8EIdo.mjs";
|
|
8
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-T9q623PQ.mjs";
|
|
9
|
+
import { i as SpinnerNode, t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
|
|
9
10
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
10
11
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
11
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
12
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CW3-78uu.mjs";
|
|
12
13
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
13
14
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
14
15
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
15
16
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
16
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
17
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DzN1W0sq.mjs";
|
|
17
18
|
import { t as createLucideIcon } from "./createLucideIcon-PaLVMov4.mjs";
|
|
18
19
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
19
|
-
import React, { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
20
|
+
import React, { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
20
21
|
import { z } from "zod";
|
|
21
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
23
|
import { createPortal } from "react-dom";
|
|
@@ -3254,6 +3255,22 @@ function getMagicLinkError(state) {
|
|
|
3254
3255
|
}
|
|
3255
3256
|
//#endregion
|
|
3256
3257
|
//#region ../blocks/src/system/runtime/nodes/shared/MagicLinkForm.tsx
|
|
3258
|
+
function MagicLinkButton(props) {
|
|
3259
|
+
return props.themed ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
3260
|
+
type: props.type,
|
|
3261
|
+
variant: props.variant,
|
|
3262
|
+
size: "md",
|
|
3263
|
+
label: props.label,
|
|
3264
|
+
disabled: props.disabled,
|
|
3265
|
+
onClick: props.onClick
|
|
3266
|
+
}) : /* @__PURE__ */ jsx("button", {
|
|
3267
|
+
type: props.type,
|
|
3268
|
+
className: props.className,
|
|
3269
|
+
disabled: props.disabled,
|
|
3270
|
+
onClick: props.onClick,
|
|
3271
|
+
children: props.label
|
|
3272
|
+
});
|
|
3273
|
+
}
|
|
3257
3274
|
/**
|
|
3258
3275
|
* Reusable magic link login form.
|
|
3259
3276
|
* Used by Customer Portal and Event Registration blocks.
|
|
@@ -3294,14 +3311,13 @@ function MagicLinkForm({ initialEmail = "", title, subtitle, buttonText = "Send
|
|
|
3294
3311
|
children: [/* @__PURE__ */ jsx("p", {
|
|
3295
3312
|
className: `${classPrefix}-portal-auth-text ${classPrefix}-portal-auth-text--success`,
|
|
3296
3313
|
children: successMessage
|
|
3297
|
-
}), !compact && /* @__PURE__ */ jsx(
|
|
3314
|
+
}), !compact && /* @__PURE__ */ jsx(MagicLinkButton, {
|
|
3315
|
+
themed: classPrefix === "cp",
|
|
3298
3316
|
type: "button",
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
onClick: handleReset,
|
|
3304
|
-
children: "Try a different email"
|
|
3317
|
+
variant: "secondary",
|
|
3318
|
+
className: `${classPrefix}-modal-btn ${classPrefix}-modal-btn--secondary`,
|
|
3319
|
+
label: "Try a different email",
|
|
3320
|
+
onClick: handleReset
|
|
3305
3321
|
})]
|
|
3306
3322
|
});
|
|
3307
3323
|
return /* @__PURE__ */ jsxs("form", {
|
|
@@ -3330,14 +3346,13 @@ function MagicLinkForm({ initialEmail = "", title, subtitle, buttonText = "Send
|
|
|
3330
3346
|
className: `${classPrefix}-portal-auth-text ${classPrefix}-portal-auth-text--error`,
|
|
3331
3347
|
children: error
|
|
3332
3348
|
}),
|
|
3333
|
-
/* @__PURE__ */ jsx(
|
|
3349
|
+
/* @__PURE__ */ jsx(MagicLinkButton, {
|
|
3350
|
+
themed: classPrefix === "cp",
|
|
3334
3351
|
type: "submit",
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
disabled: !email.trim() || loading,
|
|
3340
|
-
children: loading ? "Sending..." : buttonText
|
|
3352
|
+
variant: "primary",
|
|
3353
|
+
className: `${classPrefix}-modal-btn`,
|
|
3354
|
+
label: loading ? "Sending..." : buttonText,
|
|
3355
|
+
disabled: !email.trim() || loading
|
|
3341
3356
|
})
|
|
3342
3357
|
]
|
|
3343
3358
|
});
|
|
@@ -3681,20 +3696,19 @@ function SelectTicketsActions(props) {
|
|
|
3681
3696
|
onClick: () => wizard.setStep("select-event"),
|
|
3682
3697
|
className: "er-back-btn",
|
|
3683
3698
|
children: "← Back"
|
|
3684
|
-
}), /* @__PURE__ */ jsx(
|
|
3699
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
3685
3700
|
type: "button",
|
|
3686
3701
|
onClick: () => wizard.setStep("enter-details"),
|
|
3687
3702
|
disabled: isContinueDisabled,
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
}) : continueLabel
|
|
3703
|
+
variant: props.buttonVariant,
|
|
3704
|
+
size: "md",
|
|
3705
|
+
label: continueLabel,
|
|
3706
|
+
pending: registrationOptionsPending ? {
|
|
3707
|
+
label: continueLabel,
|
|
3708
|
+
spinnerSize: "xs",
|
|
3709
|
+
spinnerClassName: "er-button-spinner",
|
|
3710
|
+
contentClassName: "er-button-with-spinner"
|
|
3711
|
+
} : void 0
|
|
3698
3712
|
})]
|
|
3699
3713
|
});
|
|
3700
3714
|
}
|
|
@@ -3721,12 +3735,13 @@ function EnterDetailsActions(props) {
|
|
|
3721
3735
|
onClick: () => wizard.setStep("select-tickets"),
|
|
3722
3736
|
className: "er-back-btn",
|
|
3723
3737
|
children: "← Back"
|
|
3724
|
-
}), /* @__PURE__ */ jsx(
|
|
3738
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
3725
3739
|
type: "button",
|
|
3726
3740
|
onClick: wizard.handleDetailsComplete,
|
|
3727
3741
|
disabled: isContinueDisabled,
|
|
3728
|
-
|
|
3729
|
-
|
|
3742
|
+
variant: props.buttonVariant,
|
|
3743
|
+
size: "md",
|
|
3744
|
+
label: continueLabel
|
|
3730
3745
|
})]
|
|
3731
3746
|
});
|
|
3732
3747
|
}
|
|
@@ -3740,12 +3755,13 @@ function SelectPaymentActions(props) {
|
|
|
3740
3755
|
onClick: () => wizard.setStep("enter-details"),
|
|
3741
3756
|
className: "er-back-btn",
|
|
3742
3757
|
children: "← Back"
|
|
3743
|
-
}), status === "ready" && /* @__PURE__ */ jsx(
|
|
3758
|
+
}), status === "ready" && /* @__PURE__ */ jsx(ThemedButton, {
|
|
3744
3759
|
type: "button",
|
|
3745
3760
|
onClick: () => void wizard.handlePaymentSelect(),
|
|
3746
3761
|
disabled: !canContinue,
|
|
3747
|
-
|
|
3748
|
-
|
|
3762
|
+
variant: props.buttonVariant,
|
|
3763
|
+
size: "md",
|
|
3764
|
+
label: buttonText
|
|
3749
3765
|
})]
|
|
3750
3766
|
});
|
|
3751
3767
|
}
|
|
@@ -3904,15 +3920,13 @@ function IneligiblePaymentPanel(props) {
|
|
|
3904
3920
|
className: "er-text er-text--muted",
|
|
3905
3921
|
children: "Have a pass or membership? Log in to use it."
|
|
3906
3922
|
}),
|
|
3907
|
-
/* @__PURE__ */ jsx(
|
|
3923
|
+
/* @__PURE__ */ jsx(ThemedButton, {
|
|
3908
3924
|
type: "button",
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
}),
|
|
3925
|
+
variant: "primary",
|
|
3926
|
+
size: "md",
|
|
3927
|
+
label: "Email me a login link",
|
|
3913
3928
|
disabled: !props.email.trim(),
|
|
3914
|
-
onClick: props.onRequestLogin
|
|
3915
|
-
children: "Email me a login link"
|
|
3929
|
+
onClick: props.onRequestLogin
|
|
3916
3930
|
}),
|
|
3917
3931
|
!props.email.trim() && /* @__PURE__ */ jsx("p", {
|
|
3918
3932
|
className: "er-text er-text--muted",
|
|
@@ -5658,12 +5672,17 @@ function EventRegistrationTerminalState(props) {
|
|
|
5658
5672
|
}
|
|
5659
5673
|
function EventRegistrationSurface(props) {
|
|
5660
5674
|
const { wizard } = props;
|
|
5675
|
+
const mainRef = useRef(null);
|
|
5676
|
+
useLayoutEffect(() => {
|
|
5677
|
+
if (props.variant === "overlay" && mainRef.current) mainRef.current.scrollTop = 0;
|
|
5678
|
+
}, [props.variant, wizard.step]);
|
|
5661
5679
|
return /* @__PURE__ */ jsxs("div", {
|
|
5662
5680
|
className: `rb-reg-surface er-container${props.variant === "overlay" ? " er-container--overlay" : ""}`,
|
|
5663
5681
|
children: [props.isWizardStep && /* @__PURE__ */ jsxs("div", {
|
|
5664
5682
|
className: "er-payment-layout er-payment-layout--no-sidebar",
|
|
5665
5683
|
children: [
|
|
5666
5684
|
/* @__PURE__ */ jsxs("div", {
|
|
5685
|
+
ref: mainRef,
|
|
5667
5686
|
className: "er-payment-layout-main",
|
|
5668
5687
|
children: [
|
|
5669
5688
|
props.totalSteps > 1 && /* @__PURE__ */ jsx(StepIndicator, {
|
|
@@ -5689,15 +5708,14 @@ function EventRegistrationSurface(props) {
|
|
|
5689
5708
|
children: [/* @__PURE__ */ jsx(EventRegistrationSummaryBar, { wizard }), /* @__PURE__ */ jsx(EventRegistrationWizardActions, {
|
|
5690
5709
|
wizard,
|
|
5691
5710
|
buttonText: props.buttonText,
|
|
5692
|
-
|
|
5711
|
+
buttonVariant: props.buttonVariant
|
|
5693
5712
|
})]
|
|
5694
5713
|
})
|
|
5695
5714
|
]
|
|
5696
5715
|
}), /* @__PURE__ */ jsx(EventRegistrationTerminalState, {
|
|
5697
5716
|
wizard,
|
|
5698
5717
|
supportEmail: props.supportEmail,
|
|
5699
|
-
successMessage: props.successMessage
|
|
5700
|
-
buttonClass: props.buttonClass
|
|
5718
|
+
successMessage: props.successMessage
|
|
5701
5719
|
})]
|
|
5702
5720
|
});
|
|
5703
5721
|
}
|
|
@@ -5727,11 +5745,13 @@ function BookingEntry(props) {
|
|
|
5727
5745
|
}, ticketType.pricingOptionId))
|
|
5728
5746
|
}) : null
|
|
5729
5747
|
]
|
|
5730
|
-
}), /* @__PURE__ */ jsx(
|
|
5748
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
5731
5749
|
type: "button",
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5750
|
+
variant: props.buttonVariant,
|
|
5751
|
+
size: "md",
|
|
5752
|
+
extraClassName: `${base}__cta`,
|
|
5753
|
+
label: "Book now",
|
|
5754
|
+
onClick: props.onOpen
|
|
5735
5755
|
})] });
|
|
5736
5756
|
}
|
|
5737
5757
|
function EventRegistrationBookingLayer(props) {
|
|
@@ -5739,7 +5759,7 @@ function EventRegistrationBookingLayer(props) {
|
|
|
5739
5759
|
summary: [props.priceLabel, props.availabilityLabel].filter(Boolean).join(" · "),
|
|
5740
5760
|
ticketTypes: props.ticketTypes,
|
|
5741
5761
|
ticketCurrency: props.ticketCurrency,
|
|
5742
|
-
|
|
5762
|
+
buttonVariant: props.buttonVariant,
|
|
5743
5763
|
formatTicketPrice: props.formatTicketPrice,
|
|
5744
5764
|
onOpen: props.onOpen
|
|
5745
5765
|
};
|
|
@@ -5849,10 +5869,6 @@ function EventRegistrationWizard(props) {
|
|
|
5849
5869
|
const { occurrenceContext, subject, events, maxTickets = "5", showVenue = true, showCapacity = true, successMessage = "Thank you for registering! Check your email for confirmation details.", buttonText = "Complete Registration", buttonVariant = "primary", className, spamProtectionEnabled, supportEmail } = props;
|
|
5850
5870
|
const maxTicketsNum = normalizeEventRegistrationMaxTickets(maxTickets);
|
|
5851
5871
|
const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
|
|
5852
|
-
const buttonClass = themeButtonClassName({
|
|
5853
|
-
variant: buttonVariant,
|
|
5854
|
-
size: "md"
|
|
5855
|
-
});
|
|
5856
5872
|
const registrationRootClassName = `event-registration ${className || ""}`;
|
|
5857
5873
|
const registrationRootRef = React.useRef(null);
|
|
5858
5874
|
const wizard = useEventRegistrationWizard({
|
|
@@ -5945,7 +5961,7 @@ function EventRegistrationWizard(props) {
|
|
|
5945
5961
|
showCapacity,
|
|
5946
5962
|
showSpamProtection,
|
|
5947
5963
|
buttonText,
|
|
5948
|
-
|
|
5964
|
+
buttonVariant,
|
|
5949
5965
|
supportEmail,
|
|
5950
5966
|
successMessage
|
|
5951
5967
|
});
|
|
@@ -5974,7 +5990,7 @@ function EventRegistrationWizard(props) {
|
|
|
5974
5990
|
availabilityLabel: summaryAvailabilityLabel,
|
|
5975
5991
|
ticketTypes: bookingTicketTypes,
|
|
5976
5992
|
ticketCurrency: bookingCurrency,
|
|
5977
|
-
|
|
5993
|
+
buttonVariant,
|
|
5978
5994
|
formatTicketPrice: (ticketType) => formatTicketPriceIfKnown(ticketType, bookingCurrency),
|
|
5979
5995
|
onOpen: () => setBookingOverlayOpen(true),
|
|
5980
5996
|
onClose: () => setBookingOverlayOpen(false),
|
|
@@ -6244,14 +6260,12 @@ function RecoverableEventRegistrationClient({ props, display }) {
|
|
|
6244
6260
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
6245
6261
|
className: "rb-reg-surface er-container er-registration-shell",
|
|
6246
6262
|
role: "alert",
|
|
6247
|
-
children: [/* @__PURE__ */ jsx("p", { children: "We couldn’t load the event dates. Please try again." }), /* @__PURE__ */ jsx(
|
|
6263
|
+
children: [/* @__PURE__ */ jsx("p", { children: "We couldn’t load the event dates. Please try again." }), /* @__PURE__ */ jsx(ThemedButton, {
|
|
6248
6264
|
type: "button",
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
onClick: recovery.retry,
|
|
6254
|
-
children: "Try again"
|
|
6265
|
+
variant: props.render.hydration.buttonVariant ?? "primary",
|
|
6266
|
+
size: "md",
|
|
6267
|
+
label: "Try again",
|
|
6268
|
+
onClick: recovery.retry
|
|
6255
6269
|
})]
|
|
6256
6270
|
});
|
|
6257
6271
|
const events = resolveEventRegistrationScopedEvents(recovery.events, {
|
|
@@ -6281,6 +6295,7 @@ const enhance = (root, props) => {
|
|
|
6281
6295
|
if (!siteId) throw new Error("[sdk:islands] event-registration requires siteId");
|
|
6282
6296
|
if (!apiBaseUrl) throw new Error("[sdk:islands] event-registration requires apiBaseUrl");
|
|
6283
6297
|
const apiConfig = buildRouteIslandApiConfig({
|
|
6298
|
+
readAuthority: props.readAuthority,
|
|
6284
6299
|
apiBaseUrl,
|
|
6285
6300
|
portalToken,
|
|
6286
6301
|
previewToken,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { O as clsx } from "./colorStyles-
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { O as clsx } from "./colorStyles-CuJBiS-1.mjs";
|
|
3
|
+
import { Ht as ok, Vt as err, t as defineIslandPropsDecoder, zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
|
|
4
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-BFeY_Wbm.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
|
+
import { t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
|
|
6
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
8
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
9
|
import { useReducer, useRef, useState } from "react";
|
|
@@ -268,15 +269,13 @@ const FormNodeClient = ({ render }) => {
|
|
|
268
269
|
className: "fb-actions",
|
|
269
270
|
children: /* @__PURE__ */ jsx("div", {
|
|
270
271
|
className: "fb-actions-inner",
|
|
271
|
-
children: /* @__PURE__ */ jsx(
|
|
272
|
+
children: /* @__PURE__ */ jsx(ThemedButton, {
|
|
272
273
|
type: "submit",
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
extraClassName: "rb-w-full rb-sm-w-auto"
|
|
277
|
-
}),
|
|
274
|
+
variant: "primary",
|
|
275
|
+
size: "md",
|
|
276
|
+
extraClassName: "rb-w-full rb-sm-w-auto",
|
|
278
277
|
disabled: state.tag === "submitting",
|
|
279
|
-
|
|
278
|
+
label: state.tag === "submitting" ? "Submitting..." : render.display.submitLabel
|
|
280
279
|
})
|
|
281
280
|
})
|
|
282
281
|
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { k as staticHeaderChromeRuntime, r as buildCartDisplay, t as defineIslandPropsDecoder } from "./propsDecoder-C3TP_z4x.mjs";
|
|
3
|
+
import { n as ThemedButtonLink, t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
|
|
3
4
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
4
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
5
|
+
import { n as useCommerceCart } from "./shop-commerce-store-Sf1eyTaZ.mjs";
|
|
5
6
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
6
7
|
import * as React$1 from "react";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -41,14 +42,12 @@ function HeaderCartDrawerItems(props) {
|
|
|
41
42
|
className: "rb-caption status-muted",
|
|
42
43
|
children: ["Quantity: ", item.quantity]
|
|
43
44
|
})]
|
|
44
|
-
}), /* @__PURE__ */ jsx(
|
|
45
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
45
46
|
type: "button",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
onClick: () => props.cart.removeItem(item.key),
|
|
51
|
-
children: "Remove"
|
|
47
|
+
variant: "secondary",
|
|
48
|
+
size: "sm",
|
|
49
|
+
label: "Remove",
|
|
50
|
+
onClick: () => props.cart.removeItem(item.key)
|
|
52
51
|
})]
|
|
53
52
|
}, item.key))
|
|
54
53
|
});
|
|
@@ -125,31 +124,25 @@ function HeaderCartDrawer(props) {
|
|
|
125
124
|
}) : null,
|
|
126
125
|
/* @__PURE__ */ jsxs("div", {
|
|
127
126
|
className: "rb-flex rb-flex-wrap rb-gap-3",
|
|
128
|
-
children: [/* @__PURE__ */ jsx(
|
|
127
|
+
children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
129
128
|
type: "button",
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}),
|
|
129
|
+
variant: "secondary",
|
|
130
|
+
size: "md",
|
|
131
|
+
label: display.clearButtonText,
|
|
134
132
|
onClick: () => props.cart.clear(),
|
|
135
|
-
disabled: display.state === "empty"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
size: "md"
|
|
141
|
-
}),
|
|
133
|
+
disabled: display.state === "empty"
|
|
134
|
+
}), props.checkoutHref && display.state === "ready" ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
135
|
+
variant: "default",
|
|
136
|
+
size: "md",
|
|
137
|
+
label: display.checkoutButtonText,
|
|
142
138
|
href: props.checkoutHref,
|
|
143
|
-
onClick: props.onClose
|
|
144
|
-
|
|
145
|
-
}) : /* @__PURE__ */ jsx("button", {
|
|
139
|
+
onClick: props.onClose
|
|
140
|
+
}) : /* @__PURE__ */ jsx(ThemedButton, {
|
|
146
141
|
type: "button",
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
disabled: true,
|
|
152
|
-
children: display.checkoutButtonText
|
|
142
|
+
variant: "default",
|
|
143
|
+
size: "md",
|
|
144
|
+
label: display.checkoutButtonText,
|
|
145
|
+
disabled: true
|
|
153
146
|
})]
|
|
154
147
|
})
|
|
155
148
|
]
|