@riverbankcms/sdk 0.109.0 → 0.111.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-DWqwfy3_.mjs → PreviewEditorSidebar-CTR6LUhN.mjs} +178 -117
- package/dist/{PreviewEditorUI-B7OL4sfR.mjs → PreviewEditorUI-DZg15Zip.mjs} +3 -4
- package/dist/{PreviewQueryProvider-D0y2l8JN.mjs → PreviewQueryProvider-kkmjklLG.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-D8Gt9Gbe.mjs → SdkPreviewModeRuntime-DeOTAFvR.mjs} +229 -219
- package/dist/{SiteChromeCustomizeContext-DUpalEdL.mjs → SiteChromeCustomizeContext-DOSDLCiJ.mjs} +1695 -2169
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1716 -76
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/contentRuntime.d.ts +4 -1
- package/dist/_dts/api/src/courses.d.ts +30 -15
- package/dist/_dts/api/src/endpoints.d.ts +14 -4
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +23 -11
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteOperations.d.ts +11 -19
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -6
- package/dist/_dts/api/src/webhooks.d.ts +98 -1
- package/dist/_dts/billing/src/site-arrangements.d.ts +3 -0
- package/dist/_dts/blocks/src/client/course-registration.d.ts +4 -1
- package/dist/_dts/blocks/src/client.d.ts +4 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- package/dist/_dts/blocks/src/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +2 -4
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +2 -1
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +35 -0
- package/dist/_dts/blocks/src/system/fields/button.d.ts +10 -21
- package/dist/_dts/blocks/src/system/fields/ctas.d.ts +2 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +9 -5
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +18 -18
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -9
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +326 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.planning.d.ts +27 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +7 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +4 -2
- package/dist/_dts/content-editor/src/index.d.ts +12 -12
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +17 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +221 -53
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/index.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/ButtonStylePicker.d.ts +16 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignOpenRequestContext.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +5 -11
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +5 -6
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +7 -9
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +4 -11
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +0 -8
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +1 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +1 -5
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +3 -5
- package/dist/_dts/sdk/src/bookings/index.d.ts +5 -4
- package/dist/_dts/sdk/src/bookings/types.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +3 -2
- package/dist/_dts/sdk/src/client/management/types.d.ts +2 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -15
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/verify.d.ts +3 -3
- package/dist/_dts/site-commands/src/commands.d.ts +129 -6
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +80 -0
- package/dist/_dts/theme-core/src/buttons/styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/defineStaticButtonStyleRecipe.d.ts +49 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +67 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +649 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +753 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +69 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +26 -24
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +19 -153
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +8 -9
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +4 -4
- package/dist/_dts/ui/src/palette/hex.d.ts +3 -3
- package/dist/cli/index.mjs +1760 -1914
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +1 -1
- package/dist/client/{DiscountCodeDisclosure-DU1ygxU2.mjs → DiscountCodeDisclosure-C4xvTBux.mjs} +1 -1
- package/dist/client/{EventCombined.client-DB5zagCo.mjs → EventCombined.client-Cr7G131j.mjs} +2 -3
- package/dist/client/{EventListing.client-CTX9JHBL.mjs → EventListing.client-CAjbseNy.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BYImhgiB.mjs → LeafletStaticMap-BMlWfwz3.mjs} +1 -1
- package/dist/client/{MagicLinkForm-CRkw_M3l.mjs → MagicLinkForm-ChdFz96y.mjs} +1 -2
- package/dist/client/{StepIndicator-BnmVBJJh.mjs → StepIndicator-7D3GaBeM.mjs} +2 -2
- package/dist/client/{accordion-CeGreumd.mjs → accordion-D8JTs2Si.mjs} +1 -1
- package/dist/client/{bookingForm-CSzFNrpN.mjs → bookingForm-H3DCRBHs.mjs} +6 -7
- package/dist/client/bookings.mjs +3069 -1447
- package/dist/client/{carousel-B2jDtogf.mjs → carousel-DMr_QWlz.mjs} +1 -1
- package/dist/client/{cart-D-jZ-vaY.mjs → cart-DWMbfBdR.mjs} +3 -3
- package/dist/client/{checkout-Dza-LA7N.mjs → checkout-zmfdkXLx.mjs} +3 -3
- package/dist/client/client.mjs +1732 -1913
- package/dist/client/{colorStyles-CrgzoXsm.mjs → colorStyles-gcTh5yZT.mjs} +2 -12
- package/dist/client/{colorTokenParts-CMugwvX_.mjs → colorTokenParts-FSS3al6l.mjs} +31 -1
- package/dist/client/{courseRegistration-TYkNychb.mjs → courseRegistration-Z_mn18jy.mjs} +100 -37
- package/dist/client/{eventCalendar-BI_90SsT.mjs → eventCalendar-CYp0YJGF.mjs} +4 -5
- package/dist/client/{eventCombined-mNrpryE9.mjs → eventCombined-rKyYZUa9.mjs} +2 -2
- package/dist/client/{eventDetails-D4GVlCIY.mjs → eventDetails-X0ZaUuMj.mjs} +3 -3
- package/dist/client/{eventListing-YhKN018y.mjs → eventListing-W1SuL7EP.mjs} +2 -2
- package/dist/client/{eventRegistration-CdHGtilr.mjs → eventRegistration-ClWricui.mjs} +6 -7
- package/dist/client/{form-AcAL45rA.mjs → form--eKPwAAD.mjs} +1 -2
- package/dist/client/{headerSection-uEC52ueD.mjs → headerSection-BSeGr-FS.mjs} +2 -3
- package/dist/client/hooks.mjs +1554 -1871
- package/dist/client/{locationMap-_wJDSUYe.mjs → locationMap-BpOrtNYn.mjs} +8 -5
- package/dist/client/{media-BK0O3b-U.mjs → media-DoF0dcVx.mjs} +2 -2
- package/dist/client/{newsletterForm-DrArsb2B.mjs → newsletterForm-Bt7it7Dy.mjs} +1 -2
- package/dist/client/{pricing-BSYVghwo.mjs → pricing-BTjSDDr4.mjs} +1 -1
- package/dist/client/{productDetail-Dyk90sMs.mjs → productDetail-ICnVTcCg.mjs} +3 -3
- package/dist/client/{productList-BCKThwAI.mjs → productList-ZHr6D604.mjs} +3 -3
- package/dist/client/{propsDecoder-CkXxkdSR.mjs → propsDecoder-wWN0tBDF.mjs} +2351 -129
- package/dist/client/rendering/client.mjs +1664 -1824
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +1697 -1909
- package/dist/client/{shop-DeltVH10.mjs → shop-C1u_BUn0.mjs} +5 -6
- package/dist/client/{shop-commerce-BD9Jsm2Z.mjs → shop-commerce-CleZdRha.mjs} +5 -6
- package/dist/client/{shop-commerce-store-CmXD6FDS.mjs → shop-commerce-store-ycnoB2Ce.mjs} +1 -1
- package/dist/client/{shopShared-B8v-lH_F.mjs → shopShared-CPhByt2a.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-DbWJN8ld.mjs → useDiscountCodeUi-cStSQI6C.mjs} +1 -1
- package/dist/client/{useEventFilters-EJIMUnqT.mjs → useEventFilters-DKPN7hSY.mjs} +26 -27
- package/dist/client/{usePolling-Cmh14fc7.mjs → usePolling-BKAd6pkZ.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +37 -6
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +37 -6
- package/dist/{previewAuthStore-CTO7CRPk.mjs → previewAuthStore-BkT1D06A.mjs} +37 -6
- package/dist/{sdk-runtime-Dou0GAav.mjs → sdk-runtime-hu3wr3ng.mjs} +2 -2
- package/dist/{separator-CI5wZNXT.mjs → separator-Bln8izQ9.mjs} +1 -1
- package/dist/server/components.mjs +1472 -1788
- package/dist/server/config-validation.mjs +1559 -1876
- package/dist/server/config.mjs +1559 -1876
- package/dist/server/data.mjs +1554 -1871
- package/dist/server/index.mjs +38 -7
- package/dist/server/next/revalidate.mjs +53 -1
- package/dist/server/next.mjs +1584 -1869
- package/dist/server/page-converter.mjs +1543 -1860
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1472 -1788
- package/dist/server/rendering.mjs +1472 -1788
- package/dist/server/routing.mjs +1600 -1891
- package/dist/server/server.mjs +1574 -1860
- package/dist/server/theme-bridge.mjs +1436 -1619
- package/dist/server/theme.mjs +1345 -1241
- package/dist/server/webhooks.mjs +54 -2
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/earth-pill.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/flat-ink.d.ts +0 -20
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +0 -172
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +0 -22
- package/dist/_dts/theme-core/src/buttons/personalities/ornate-ritual.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +0 -285
- package/dist/client/buttons-DoFV7KDL.mjs +0 -2115
- package/dist/client/foregroundContract-xICPq59x.mjs +0 -31
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as parseColorTokenParts } from "./colorTokenParts-
|
|
2
|
-
import { n as surfaceForegroundValueWithOpacity, t as surfaceForegroundValue } from "./foregroundContract-xICPq59x.mjs";
|
|
1
|
+
import { n as surfaceForegroundValue, r as surfaceForegroundValueWithOpacity, t as parseColorTokenParts } from "./colorTokenParts-FSS3al6l.mjs";
|
|
3
2
|
//#region ../theme-core/src/utils/colorStyles.ts
|
|
4
3
|
const COLOR_VAR_PREFIX = "--tb-";
|
|
5
4
|
function parseToken(source) {
|
|
@@ -63,15 +62,6 @@ function textColorStyle(token) {
|
|
|
63
62
|
return { color: rgbColorValue(token) };
|
|
64
63
|
}
|
|
65
64
|
/**
|
|
66
|
-
* Creates a border color style object from a theme token.
|
|
67
|
-
*
|
|
68
|
-
* @param token - Theme color token
|
|
69
|
-
* @returns CSSProperties with borderColor
|
|
70
|
-
*/
|
|
71
|
-
function borderColorStyle(token) {
|
|
72
|
-
return { borderColor: rgbColorValue(token) };
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
65
|
* Merges multiple CSSProperties objects into a single object.
|
|
76
66
|
* Later styles override earlier ones. Undefined values are filtered out.
|
|
77
67
|
* Returns undefined if the merged result is empty.
|
|
@@ -96,4 +86,4 @@ function mergeStyles(...styles) {
|
|
|
96
86
|
return Object.keys(merged).length ? merged : void 0;
|
|
97
87
|
}
|
|
98
88
|
//#endregion
|
|
99
|
-
export { textColorStyle as
|
|
89
|
+
export { textColorStyle as i, mergeStyles as n, rgbColorValue as r, backgroundColorStyle as t };
|
|
@@ -101,6 +101,36 @@ function isExplicitRectCrop(rect, sourceWidth, sourceHeight, epsilon = DEFAULT_R
|
|
|
101
101
|
return !(Math.abs(x) <= epsilon && Math.abs(y) <= epsilon && Math.abs(width - sourceWidth) <= epsilon && Math.abs(height - sourceHeight) <= epsilon);
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
|
+
//#region ../theme-core/src/surfaces/foregroundContract.ts
|
|
105
|
+
const SURFACE_FOREGROUND_CSS_VARS = {
|
|
106
|
+
text: "--rb-surface-text-color",
|
|
107
|
+
heading: "--rb-surface-heading-color",
|
|
108
|
+
link: "--rb-surface-link-color",
|
|
109
|
+
supporting: "--rb-surface-supporting-color"
|
|
110
|
+
};
|
|
111
|
+
const DEFAULT_SURFACE_TEXT_COLOR = "rgb(var(--tb-text, 17 24 39))";
|
|
112
|
+
const DEFAULT_ROLE_FALLBACKS = {
|
|
113
|
+
text: DEFAULT_SURFACE_TEXT_COLOR,
|
|
114
|
+
heading: DEFAULT_SURFACE_TEXT_COLOR,
|
|
115
|
+
link: "rgb(var(--tb-primary, var(--tb-text, 17 24 39)))",
|
|
116
|
+
supporting: "rgb(var(--tb-mutedText, 100 116 139))"
|
|
117
|
+
};
|
|
118
|
+
function requireSurfaceColorValue(role, value) {
|
|
119
|
+
const normalized = value.trim();
|
|
120
|
+
if (normalized.length === 0) throw new RangeError(`Surface foreground ${role} must be a non-empty CSS color.`);
|
|
121
|
+
return normalized;
|
|
122
|
+
}
|
|
123
|
+
function surfaceForegroundValue(role, outsideProviderFallback = DEFAULT_ROLE_FALLBACKS[role]) {
|
|
124
|
+
const roleVariable = SURFACE_FOREGROUND_CSS_VARS[role];
|
|
125
|
+
const fallback = requireSurfaceColorValue("fallback", outsideProviderFallback);
|
|
126
|
+
if (role === "text") return `var(${roleVariable}, ${fallback})`;
|
|
127
|
+
return `var(${roleVariable}, var(${SURFACE_FOREGROUND_CSS_VARS.text}, ${fallback}))`;
|
|
128
|
+
}
|
|
129
|
+
function surfaceForegroundValueWithOpacity(role, opacityPercent) {
|
|
130
|
+
if (!Number.isFinite(opacityPercent) || opacityPercent < 0 || opacityPercent > 100) throw new RangeError("Surface foreground opacity must be between 0 and 100.");
|
|
131
|
+
return `color-mix(in srgb, ${surfaceForegroundValue(role)} ${opacityPercent}%, transparent)`;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
104
134
|
//#region ../theme-core/src/tokens/colorTokenParts.ts
|
|
105
135
|
function parseOpacityPercent(source) {
|
|
106
136
|
const trimmed = source.trim();
|
|
@@ -139,4 +169,4 @@ function parseColorTokenParts(source) {
|
|
|
139
169
|
};
|
|
140
170
|
}
|
|
141
171
|
//#endregion
|
|
142
|
-
export {
|
|
172
|
+
export { err as _, parseAspectRatioValue as a, parseEventSeriesId as c, unsafeAsCustomerPassId as d, unsafeAsFormId as f, unsafeAsStoragePath as g, unsafeAsStorageBucketName as h, isExplicitRectCrop as i, unsafeAsAppointmentResourceId as l, unsafeAsPassId as m, surfaceForegroundValue as n, resolveMediaTransformForAspect as o, unsafeAsMediaAssetId as p, surfaceForegroundValueWithOpacity as r, parseEventOfferingId as s, parseColorTokenParts as t, unsafeAsAppointmentServiceId as u, ok as v };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as formatCoursePriceDisplay, r as resolveCoursePricingState, t as formatCoursePriceAmount } from "./pricing-
|
|
2
|
+
import { At as formatBookingTime, Dt as formatBookingDate, Ft as toBookingTimeZone, Gt as assertNever, It as toScheduledBookingDateTime, Lt as parseEventPageSurfaceSubject, t as defineIslandPropsDecoder, tt as themeButtonClassName } from "./propsDecoder-wWN0tBDF.mjs";
|
|
3
|
+
import { n as formatCoursePriceDisplay, r as resolveCoursePricingState, t as formatCoursePriceAmount } from "./pricing-BTjSDDr4.mjs";
|
|
4
4
|
import { n as useBlockApi, t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
|
-
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
7
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
8
|
-
import { n as SpinnerNode, r as formatPrice, t as StepIndicator$1 } from "./StepIndicator-
|
|
9
|
-
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
6
|
+
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-cStSQI6C.mjs";
|
|
7
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-C4xvTBux.mjs";
|
|
8
|
+
import { n as SpinnerNode, r as formatPrice, t as StepIndicator$1 } from "./StepIndicator-7D3GaBeM.mjs";
|
|
10
9
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
11
10
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
12
11
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ct8Mxna3.mjs";
|
|
13
12
|
import { t as scrollToBlock } from "./scrollToBlock-C86BYkyV.mjs";
|
|
14
|
-
import { a as ClockIcon, i as LoggedInAsUser, n as logoutPortal, r as useWaitlistClaim, t as MagicLinkForm } from "./MagicLinkForm-
|
|
13
|
+
import { a as ClockIcon, i as LoggedInAsUser, n as logoutPortal, r as useWaitlistClaim, t as MagicLinkForm } from "./MagicLinkForm-ChdFz96y.mjs";
|
|
15
14
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
16
15
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
17
16
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -645,7 +644,7 @@ function resolveHasCoursePayment(pricing) {
|
|
|
645
644
|
if (pricing.selectedOption) return pricing.selectedRequiresPayment;
|
|
646
645
|
return pricing.hasPaidSelection;
|
|
647
646
|
}
|
|
648
|
-
function useCourseRegistrationWizard(props) {
|
|
647
|
+
function useCourseRegistrationWizard(props, options = {}) {
|
|
649
648
|
const api = useBlockApi();
|
|
650
649
|
const { contentEntry, courses, entrySubrouteContext, subject } = props;
|
|
651
650
|
const scopedCourses = useMemo(() => {
|
|
@@ -892,21 +891,34 @@ function useCourseRegistrationWizard(props) {
|
|
|
892
891
|
setStep("enter-details");
|
|
893
892
|
};
|
|
894
893
|
const handleSubmit = async () => {
|
|
895
|
-
if (!selectedCourse) return
|
|
896
|
-
|
|
894
|
+
if (!selectedCourse) return {
|
|
895
|
+
kind: "blocked",
|
|
896
|
+
message: "Choose an available set of dates to continue."
|
|
897
|
+
};
|
|
898
|
+
if (!handleValidateForm()) return { kind: "validation-failed" };
|
|
897
899
|
if (missingPricingSelectionMessage) {
|
|
898
900
|
setErrorMessage(missingPricingSelectionMessage);
|
|
899
901
|
setStep("error");
|
|
900
|
-
return
|
|
902
|
+
return {
|
|
903
|
+
kind: "blocked",
|
|
904
|
+
message: missingPricingSelectionMessage
|
|
905
|
+
};
|
|
901
906
|
}
|
|
902
907
|
const requiresPayment = selectedCoursePricing?.selectedRequiresPayment ?? false;
|
|
903
908
|
const canUseMembership = requiresPayment && selectedCourse.acceptsMemberships && portalAuthState === "authenticated" && eligibleMemberships.length > 0;
|
|
904
909
|
if (showSpamProtection && !altchaSolution) {
|
|
905
|
-
|
|
910
|
+
const message = "Please complete the verification check.";
|
|
911
|
+
setErrorMessage(message);
|
|
906
912
|
setStep("error");
|
|
907
|
-
return
|
|
913
|
+
return {
|
|
914
|
+
kind: "blocked",
|
|
915
|
+
message
|
|
916
|
+
};
|
|
908
917
|
}
|
|
909
|
-
if (!waitlistClaim.claim && courseEligibility?.isFull && !courseEligibility.canJoinWaitlist && showSoldOutCourseError()) return
|
|
918
|
+
if (!waitlistClaim.claim && courseEligibility?.isFull && !courseEligibility.canJoinWaitlist && showSoldOutCourseError()) return {
|
|
919
|
+
kind: "blocked",
|
|
920
|
+
message: courseEligibility.reason ?? "This course is fully booked."
|
|
921
|
+
};
|
|
910
922
|
if (courseEligibility?.canJoinWaitlist) {
|
|
911
923
|
setStep("submitting");
|
|
912
924
|
try {
|
|
@@ -927,15 +939,20 @@ function useCourseRegistrationWizard(props) {
|
|
|
927
939
|
usedMembership: false
|
|
928
940
|
});
|
|
929
941
|
setStep(result.status === "waitlist" ? "waitlist" : "success");
|
|
942
|
+
return { kind: "state-updated" };
|
|
930
943
|
} catch (error) {
|
|
931
|
-
|
|
944
|
+
const message = error instanceof Error ? error.message : "Booking failed";
|
|
945
|
+
setErrorMessage(message);
|
|
932
946
|
setStep("error");
|
|
947
|
+
return {
|
|
948
|
+
kind: "failed",
|
|
949
|
+
message
|
|
950
|
+
};
|
|
933
951
|
}
|
|
934
|
-
return;
|
|
935
952
|
}
|
|
936
953
|
if (requiresPayment && canUseMembership) {
|
|
937
954
|
setStep("select-payment");
|
|
938
|
-
return;
|
|
955
|
+
return { kind: "state-updated" };
|
|
939
956
|
}
|
|
940
957
|
if (requiresPayment) {
|
|
941
958
|
setStep("submitting");
|
|
@@ -961,16 +978,24 @@ function useCourseRegistrationWizard(props) {
|
|
|
961
978
|
usedMembership: false
|
|
962
979
|
});
|
|
963
980
|
setStep("success");
|
|
964
|
-
return;
|
|
981
|
+
return { kind: "state-updated" };
|
|
965
982
|
}
|
|
966
983
|
if (!checkoutResult.checkoutUrl) throw new Error("Checkout URL missing");
|
|
967
984
|
setStep("redirecting");
|
|
968
|
-
|
|
969
|
-
|
|
985
|
+
if (options.onCheckoutRedirect) options.onCheckoutRedirect(checkoutResult.checkoutUrl);
|
|
986
|
+
else window.location.href = checkoutResult.checkoutUrl;
|
|
987
|
+
return {
|
|
988
|
+
kind: "checkout-redirect",
|
|
989
|
+
checkoutUrl: checkoutResult.checkoutUrl
|
|
990
|
+
};
|
|
970
991
|
} catch (error) {
|
|
971
|
-
|
|
992
|
+
const message = error instanceof Error ? error.message : "Checkout failed";
|
|
993
|
+
setErrorMessage(message);
|
|
972
994
|
setStep("error");
|
|
973
|
-
return
|
|
995
|
+
return {
|
|
996
|
+
kind: "failed",
|
|
997
|
+
message
|
|
998
|
+
};
|
|
974
999
|
}
|
|
975
1000
|
}
|
|
976
1001
|
setStep("submitting");
|
|
@@ -992,35 +1017,58 @@ function useCourseRegistrationWizard(props) {
|
|
|
992
1017
|
usedMembership: result.paymentMethod === "membership"
|
|
993
1018
|
});
|
|
994
1019
|
setStep(result.status === "waitlist" ? "waitlist" : "success");
|
|
1020
|
+
return { kind: "state-updated" };
|
|
995
1021
|
} catch (error) {
|
|
996
|
-
|
|
1022
|
+
const message = error instanceof Error ? error.message : "Booking failed";
|
|
1023
|
+
setErrorMessage(message);
|
|
997
1024
|
setStep("error");
|
|
1025
|
+
return {
|
|
1026
|
+
kind: "failed",
|
|
1027
|
+
message
|
|
1028
|
+
};
|
|
998
1029
|
}
|
|
999
1030
|
};
|
|
1000
1031
|
const handlePaymentContinue = async () => {
|
|
1001
|
-
if (!selectedCourse) return
|
|
1002
|
-
|
|
1032
|
+
if (!selectedCourse) return {
|
|
1033
|
+
kind: "blocked",
|
|
1034
|
+
message: "Choose an available set of dates to continue."
|
|
1035
|
+
};
|
|
1036
|
+
if (!handleValidateForm()) return { kind: "validation-failed" };
|
|
1003
1037
|
if (missingPricingSelectionMessage) {
|
|
1004
1038
|
setErrorMessage(missingPricingSelectionMessage);
|
|
1005
1039
|
setStep("error");
|
|
1006
|
-
return
|
|
1040
|
+
return {
|
|
1041
|
+
kind: "blocked",
|
|
1042
|
+
message: missingPricingSelectionMessage
|
|
1043
|
+
};
|
|
1007
1044
|
}
|
|
1008
1045
|
const requiresPayment = selectedCoursePricing?.selectedRequiresPayment ?? false;
|
|
1009
|
-
if (!waitlistClaim.claim && courseEligibility?.isFull && !courseEligibility.canJoinWaitlist && showSoldOutCourseError()) return
|
|
1046
|
+
if (!waitlistClaim.claim && courseEligibility?.isFull && !courseEligibility.canJoinWaitlist && showSoldOutCourseError()) return {
|
|
1047
|
+
kind: "blocked",
|
|
1048
|
+
message: courseEligibility.reason ?? "This course is fully booked."
|
|
1049
|
+
};
|
|
1010
1050
|
if (!requiresPayment) {
|
|
1011
1051
|
setStep("enter-details");
|
|
1012
|
-
return;
|
|
1052
|
+
return { kind: "state-updated" };
|
|
1013
1053
|
}
|
|
1014
1054
|
if (showSpamProtection && !altchaSolution) {
|
|
1015
|
-
|
|
1055
|
+
const message = "Please complete the verification check.";
|
|
1056
|
+
setErrorMessage(message);
|
|
1016
1057
|
setStep("error");
|
|
1017
|
-
return
|
|
1058
|
+
return {
|
|
1059
|
+
kind: "blocked",
|
|
1060
|
+
message
|
|
1061
|
+
};
|
|
1018
1062
|
}
|
|
1019
1063
|
if (paymentChoice === "membership") {
|
|
1020
1064
|
if (!selectedMembershipId) {
|
|
1021
|
-
|
|
1065
|
+
const message = "Select a membership to sign up.";
|
|
1066
|
+
setErrorMessage(message);
|
|
1022
1067
|
setStep("error");
|
|
1023
|
-
return
|
|
1068
|
+
return {
|
|
1069
|
+
kind: "blocked",
|
|
1070
|
+
message
|
|
1071
|
+
};
|
|
1024
1072
|
}
|
|
1025
1073
|
setStep("submitting");
|
|
1026
1074
|
try {
|
|
@@ -1042,11 +1090,16 @@ function useCourseRegistrationWizard(props) {
|
|
|
1042
1090
|
usedMembership: true
|
|
1043
1091
|
});
|
|
1044
1092
|
setStep(result.status === "waitlist" ? "waitlist" : "success");
|
|
1093
|
+
return { kind: "state-updated" };
|
|
1045
1094
|
} catch (error) {
|
|
1046
|
-
|
|
1095
|
+
const message = error instanceof Error ? error.message : "Booking failed";
|
|
1096
|
+
setErrorMessage(message);
|
|
1047
1097
|
setStep("error");
|
|
1098
|
+
return {
|
|
1099
|
+
kind: "failed",
|
|
1100
|
+
message
|
|
1101
|
+
};
|
|
1048
1102
|
}
|
|
1049
|
-
return;
|
|
1050
1103
|
}
|
|
1051
1104
|
setStep("submitting");
|
|
1052
1105
|
try {
|
|
@@ -1071,14 +1124,24 @@ function useCourseRegistrationWizard(props) {
|
|
|
1071
1124
|
usedMembership: false
|
|
1072
1125
|
});
|
|
1073
1126
|
setStep("success");
|
|
1074
|
-
return;
|
|
1127
|
+
return { kind: "state-updated" };
|
|
1075
1128
|
}
|
|
1076
1129
|
if (!checkoutResult.checkoutUrl) throw new Error("Checkout URL missing");
|
|
1077
1130
|
setStep("redirecting");
|
|
1078
|
-
|
|
1131
|
+
if (options.onCheckoutRedirect) options.onCheckoutRedirect(checkoutResult.checkoutUrl);
|
|
1132
|
+
else window.location.href = checkoutResult.checkoutUrl;
|
|
1133
|
+
return {
|
|
1134
|
+
kind: "checkout-redirect",
|
|
1135
|
+
checkoutUrl: checkoutResult.checkoutUrl
|
|
1136
|
+
};
|
|
1079
1137
|
} catch (error) {
|
|
1080
|
-
|
|
1138
|
+
const message = error instanceof Error ? error.message : "Checkout failed";
|
|
1139
|
+
setErrorMessage(message);
|
|
1081
1140
|
setStep("error");
|
|
1141
|
+
return {
|
|
1142
|
+
kind: "failed",
|
|
1143
|
+
message
|
|
1144
|
+
};
|
|
1082
1145
|
}
|
|
1083
1146
|
};
|
|
1084
1147
|
const handleRetry = () => {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as clsx } from "./clsx-DgIEfj3H.mjs";
|
|
3
|
-
import { E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, G as getLocalDateKey, I as formatTime, K as getLocalMinuteOfDay, T as buildEventRuntimeFilters, U as getEventAvailability, V as resolveEventLinkProps, W as getEventAvailabilityStatus, t as defineIslandPropsDecoder, w as buildEventCalendarListingRender, z as groupEventsByDate } from "./propsDecoder-
|
|
4
|
-
import {
|
|
5
|
-
import { o as
|
|
3
|
+
import { E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, G as getLocalDateKey, I as formatTime, K as getLocalMinuteOfDay, T as buildEventRuntimeFilters, U as getEventAvailability, V as resolveEventLinkProps, W as getEventAvailabilityStatus, t as defineIslandPropsDecoder, tt as themeButtonClassName, w as buildEventCalendarListingRender, z as groupEventsByDate } from "./propsDecoder-wWN0tBDF.mjs";
|
|
4
|
+
import { o as EventFilters, t as useEventFilters } from "./useEventFilters-DKPN7hSY.mjs";
|
|
5
|
+
import { a as CalendarDayCell, c as useCalendarEvents, d as getOrderedDayNames, f as getWeekCalendarDayTuple, h as isToday, i as WeekAgendaView, l as MONTH_NAMES, m as isSameLocalDay, o as EventModalProvider, p as getWeekCalendarDays, r as EventModals, s as useEventModal, t as EventCombinedClient, u as formatDateKey } from "./EventCombined.client-Cr7G131j.mjs";
|
|
6
6
|
import { t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
7
|
-
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
8
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
9
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
10
|
-
import { n as EventListingController } from "./EventListing.client-
|
|
9
|
+
import { n as EventListingController } from "./EventListing.client-CAjbseNy.mjs";
|
|
11
10
|
import { useEffect, useId, useMemo, useState } from "react";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
//#region ../calendar/src/lane-packing.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-wWN0tBDF.mjs";
|
|
2
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-Cr7G131j.mjs";
|
|
3
3
|
import { t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
5
5
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as formatCoursePriceDisplay, r as resolveCoursePricingState, t as formatCoursePriceAmount } from "./pricing-
|
|
1
|
+
import { Ft as toBookingTimeZone, H as resolveRuntimeEventPricing, It as toScheduledBookingDateTime, M as formatEventDateParts, Mt as getBookingLocalDateKey, N as formatEventPrice, V as resolveEventLinkProps, Vt as publicEventPricingType, Wt as formatCurrencyAmount, t as defineIslandPropsDecoder, zt as publicEventPricingCurrency } from "./propsDecoder-wWN0tBDF.mjs";
|
|
2
|
+
import { n as formatCoursePriceDisplay, r as resolveCoursePricingState, t as formatCoursePriceAmount } from "./pricing-BTjSDDr4.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
4
4
|
import { n as filterPassesForEvent, t as filterMembershipsForEvent } from "./eventProductEligibility-AVxyCB1u.mjs";
|
|
5
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
5
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-BMlWfwz3.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/event-details/logic.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-wWN0tBDF.mjs";
|
|
2
2
|
import { t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
4
4
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
5
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
5
|
+
import { t as EventListingClient } from "./EventListing.client-CAjbseNy.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as buildBookingPaymentSelectionViewModel, t as usePolling } from "./usePolling-
|
|
3
|
-
import { Bt as
|
|
2
|
+
import { n as buildBookingPaymentSelectionViewModel, t as usePolling } from "./usePolling-BKAd6pkZ.mjs";
|
|
3
|
+
import { At as formatBookingTime, Bt as publicEventPricingMode, C as getWizardStepsForContext, Dt as formatBookingDate, Ft as toBookingTimeZone, H as resolveRuntimeEventPricing, Ht as publicEventScalarPrice, It as toScheduledBookingDateTime, Ot as formatBookingDateTime, P as formatEventPriceDisplay, Q as resolveEventRegistrationScopedEvents, S as getStepNumber, Ut as publicEventTicketTypes, Vt as publicEventPricingType, Wt as formatCurrencyAmount, _ as findPreSelectedEvent, b as resolveRegistrationTarget, g as findEventByOccurrenceId, h as toRegistrationEvents, t as defineIslandPropsDecoder, tt as themeButtonClassName, v as resolveDiscountContext, x as WIZARD_STEPS, y as resolveEventRequiresPayment, yt as assertNever, zt as publicEventPricingCurrency } from "./propsDecoder-wWN0tBDF.mjs";
|
|
4
4
|
import { n as useBlockApi, t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
|
-
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
7
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
8
|
-
import { n as SpinnerNode, r as formatPrice, t as StepIndicator$1 } from "./StepIndicator-
|
|
9
|
-
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
6
|
+
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-cStSQI6C.mjs";
|
|
7
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-C4xvTBux.mjs";
|
|
8
|
+
import { n as SpinnerNode, r as formatPrice, t as StepIndicator$1 } from "./StepIndicator-7D3GaBeM.mjs";
|
|
10
9
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
11
10
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
12
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
13
12
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
14
|
-
import { a as ClockIcon, i as LoggedInAsUser, n as logoutPortal, r as useWaitlistClaim, t as MagicLinkForm } from "./MagicLinkForm-
|
|
13
|
+
import { a as ClockIcon, i as LoggedInAsUser, n as logoutPortal, r as useWaitlistClaim, t as MagicLinkForm } from "./MagicLinkForm-ChdFz96y.mjs";
|
|
15
14
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
16
15
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
17
16
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as clsx } from "./clsx-DgIEfj3H.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { St as ok, t as defineIslandPropsDecoder, tt as themeButtonClassName, xt as err, yt as assertNever } from "./propsDecoder-wWN0tBDF.mjs";
|
|
4
4
|
import { n as useBlockApi, t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
|
-
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
7
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
8
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
9
8
|
import { useReducer, useRef, useState } from "react";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as buildCartDisplay, t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
2
|
+
import { r as buildCartDisplay, t as defineIslandPropsDecoder, tt as themeButtonClassName } from "./propsDecoder-wWN0tBDF.mjs";
|
|
4
3
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
5
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
4
|
+
import { n as useCommerceCart } from "./shop-commerce-store-ycnoB2Ce.mjs";
|
|
6
5
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
7
6
|
import * as React$1 from "react";
|
|
8
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|