@riverbankcms/sdk 0.91.0 → 0.93.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-3TT47WCF.mjs → PreviewEditorSidebar-D3PAF7NW.mjs} +3 -3
- package/dist/{PreviewEditorUI-ORCLLUNZ.mjs → PreviewEditorUI-G5JVJEIJ.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-NHTLRNQD.mjs +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +13 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +1 -0
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
- package/dist/_dts/api/src/common/envelope.d.ts +10 -0
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +6 -0
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +32 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +12 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +4 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +44 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +9 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +14 -14
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -15
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +46 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +43 -36
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +110 -2
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/event-pricing.d.ts +18 -1
- package/dist/_dts/core/src/money-input.d.ts +34 -4
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +70 -0
- package/dist/_dts/media-core/src/fileAssetCompatibility.d.ts +1 -1
- package/dist/_dts/media-core/src/filePersistence.d.ts +5 -1
- package/dist/_dts/media-core/src/fileStorage.d.ts +1 -0
- package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +29 -1
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/legacyMediaValue.d.ts +11 -0
- package/dist/_dts/media-core/src/videoPrep.d.ts +15 -6
- package/dist/_dts/media-core/src/videoSlotPolicy.d.ts +5 -5
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +23 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +54 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +7 -2
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +35 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +23 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/{chunk-GDT2QGIL.mjs → chunk-A63UXN3P.mjs} +21 -19
- package/dist/{chunk-U5YM4AWE.mjs → chunk-AJZGT6YG.mjs} +1 -1
- package/dist/{chunk-AFPMCLS7.mjs → chunk-AQ6RT6LZ.mjs} +2 -2
- package/dist/{chunk-ZA2S7H34.mjs → chunk-NT76QGIJ.mjs} +98 -1
- package/dist/{chunk-RQUZYSES.mjs → chunk-PCNCETBI.mjs} +1196 -426
- package/dist/{chunk-S3YHJWEU.mjs → chunk-XIK2HYI3.mjs} +7 -7
- package/dist/cli/index.mjs +749 -166
- package/dist/client/{accordion-AFX37652.mjs → accordion-RNQIPG55.mjs} +2 -2
- package/dist/client/{bookingForm-32V5QCOW.mjs → bookingForm-HYEEVRLP.mjs} +89 -14
- package/dist/client/bookings.mjs +243 -17
- package/dist/client/{carousel-TJGQJ7ER.mjs → carousel-W7DQ3YPU.mjs} +3 -3
- package/dist/client/{cart-JUU2JEW4.mjs → cart-PXJ3SXXO.mjs} +7 -7
- package/dist/client/{checkout-RD6BTFX4.mjs → checkout-X3JYSOXI.mjs} +7 -7
- package/dist/client/{chunk-MLBNVN4H.mjs → chunk-6SYGVVWA.mjs} +67 -4
- package/dist/client/{chunk-E6VIWZUG.mjs → chunk-DUOHLWLF.mjs} +3 -3
- package/dist/client/{chunk-6QZIBNGV.mjs → chunk-IXDSXF2D.mjs} +154 -16
- package/dist/client/{chunk-CKXEUWWA.mjs → chunk-J6TMMMXW.mjs} +3 -3
- package/dist/client/{chunk-PMNAV6LO.mjs → chunk-JNE6UI6U.mjs} +7 -6
- package/dist/client/{chunk-ISAUXU5R.mjs → chunk-OLAOAZEO.mjs} +1 -1
- package/dist/client/{chunk-RWYFG625.mjs → chunk-PCHACQEB.mjs} +30 -2
- package/dist/client/{chunk-FMZZHAIR.mjs → chunk-PICR3NTQ.mjs} +52 -5
- package/dist/client/{chunk-6RN62XBV.mjs → chunk-Q47XGAGS.mjs} +1 -1
- package/dist/client/{chunk-WHZQDPBZ.mjs → chunk-TNGL2WJF.mjs} +1 -0
- package/dist/client/{chunk-C4LP6BPG.mjs → chunk-WERRJXNJ.mjs} +1 -1
- package/dist/client/{chunk-RMOFBBNA.mjs → chunk-YYVGSYBO.mjs} +6 -6
- package/dist/client/client.mjs +641 -54
- package/dist/client/{courseRegistration-X63QAIVV.mjs → courseRegistration-QZ67PVHO.mjs} +111 -11
- package/dist/client/{eventCalendar-5T24GCZL.mjs → eventCalendar-V3BDHQNT.mjs} +9 -9
- package/dist/client/{eventCombined-AZVTF22X.mjs → eventCombined-XYFRN2RG.mjs} +9 -9
- package/dist/client/{eventDetails-7GPFNLGF.mjs → eventDetails-TFE5TWKV.mjs} +9 -9
- package/dist/client/{eventListing-QEUMTMUM.mjs → eventListing-IQ6AGWZ6.mjs} +9 -9
- package/dist/client/{eventRegistration-P2EDKCQZ.mjs → eventRegistration-WGJVFKQJ.mjs} +9 -9
- package/dist/client/{form-NUJ7H4IN.mjs → form-6UZY6RUA.mjs} +3 -3
- package/dist/client/{headerSection-JB7LECPL.mjs → headerSection-RSFXY6V3.mjs} +3 -3
- package/dist/client/hooks.mjs +57 -5
- package/dist/client/{locationMap-UEYWUCSW.mjs → locationMap-24FH67I4.mjs} +3 -3
- package/dist/client/{newsletterForm-S2YZQ2X7.mjs → newsletterForm-QVL3MLTN.mjs} +3 -3
- package/dist/client/{productDetail-H5MADGG7.mjs → productDetail-ZDYN3G4T.mjs} +7 -7
- package/dist/client/{productList-DK7YON7H.mjs → productList-4BMJLQHZ.mjs} +7 -7
- package/dist/client/rendering/client.mjs +503 -36
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +583 -39
- package/dist/client/{shop-6PA7RDRJ.mjs → shop-U5C634FF.mjs} +7 -7
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/{sdk-runtime-JP5347OB.mjs → sdk-runtime-VGV46WVB.mjs} +6 -6
- package/dist/server/components.mjs +287 -68
- package/dist/server/config-validation.mjs +58 -5
- package/dist/server/config.mjs +58 -5
- package/dist/server/data.mjs +57 -5
- package/dist/server/index.mjs +104 -29
- package/dist/server/next.mjs +347 -85
- package/dist/server/page-converter.mjs +22 -5
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +287 -68
- package/dist/server/rendering.mjs +287 -68
- package/dist/server/routing.mjs +131 -67
- package/dist/server/server.mjs +189 -94
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-GMCDQPZZ.mjs +0 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useWaitlistClaim, resolveCoursePricingState, formatCoursePriceDisplay, formatCoursePriceAmount, MagicLinkForm } from './chunk-
|
|
3
|
-
import { SpinnerNode } from './chunk-
|
|
2
|
+
import { useWaitlistClaim, resolveCoursePricingState, formatCoursePriceDisplay, formatCoursePriceAmount, MagicLinkForm } from './chunk-PICR3NTQ.mjs';
|
|
3
|
+
import { SpinnerNode } from './chunk-OLAOAZEO.mjs';
|
|
4
4
|
import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
|
|
5
|
-
import { DiscountCodeDisclosure, useDiscountCodeUi, getStepNumber, logoutPortal, StepIndicator, LoggedInAsUser, CheckIcon, formatPrice, TerminalPanel, StateIcon, ClockIcon, CrossIcon, scrollToBlock, buildCheckoutReturnUrls, MembershipHero, validateFormData } from './chunk-
|
|
5
|
+
import { DiscountCodeDisclosure, useDiscountCodeUi, getStepNumber, logoutPortal, StepIndicator, LoggedInAsUser, CheckIcon, formatPrice, TerminalPanel, StateIcon, ClockIcon, CrossIcon, scrollToBlock, buildCheckoutReturnUrls, MembershipHero, validateFormData } from './chunk-J6TMMMXW.mjs';
|
|
6
6
|
import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-3DCJ45Z2.mjs';
|
|
7
7
|
import { ModalShell } from './chunk-WBQG7VJA.mjs';
|
|
8
8
|
import { AltchaWidget, getChallengeUrl, isSpamProtectionEnabled } from './chunk-LJCX6V7Q.mjs';
|
|
9
|
-
import { BlockApiProvider, useBlockApi } from './chunk-
|
|
9
|
+
import { BlockApiProvider, useBlockApi } from './chunk-TNGL2WJF.mjs';
|
|
10
10
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
11
|
-
import { defineIslandPropsDecoder, themeButtonClassName } from './chunk-
|
|
12
|
-
import { formatBookingDate, toScheduledBookingDateTime, toBookingTimeZone, formatBookingTime } from './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder, themeButtonClassName } from './chunk-6SYGVVWA.mjs';
|
|
12
|
+
import { formatBookingDate, toScheduledBookingDateTime, toBookingTimeZone, formatBookingTime } from './chunk-PCHACQEB.mjs';
|
|
13
13
|
import React2, { Component, useMemo, useState, useEffect } from 'react';
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
@@ -546,6 +546,44 @@ function CoursePricingSelector({
|
|
|
546
546
|
)
|
|
547
547
|
] });
|
|
548
548
|
}
|
|
549
|
+
function CourseSlidingScaleInput({
|
|
550
|
+
pricing,
|
|
551
|
+
value,
|
|
552
|
+
onChange
|
|
553
|
+
}) {
|
|
554
|
+
const slidingScale = pricing.slidingScale;
|
|
555
|
+
if (!slidingScale) {
|
|
556
|
+
return null;
|
|
557
|
+
}
|
|
558
|
+
const minLabel = formatCoursePriceAmount(slidingScale.minAmount, pricing.currency);
|
|
559
|
+
const maxLabel = formatCoursePriceAmount(slidingScale.maxAmount, pricing.currency);
|
|
560
|
+
const suggestedLabel = slidingScale.suggestedAmount !== null ? formatCoursePriceAmount(slidingScale.suggestedAmount, pricing.currency) : null;
|
|
561
|
+
return /* @__PURE__ */ jsxs("div", { className: "cr-form__field", children: [
|
|
562
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "cr-sliding-amount", className: "cr-form__label", children: "Amount" }),
|
|
563
|
+
/* @__PURE__ */ jsx(
|
|
564
|
+
"input",
|
|
565
|
+
{
|
|
566
|
+
id: "cr-sliding-amount",
|
|
567
|
+
type: "number",
|
|
568
|
+
min: slidingScale.minAmount / 100,
|
|
569
|
+
max: slidingScale.maxAmount / 100,
|
|
570
|
+
step: "0.01",
|
|
571
|
+
inputMode: "decimal",
|
|
572
|
+
className: "cr-form__input",
|
|
573
|
+
value,
|
|
574
|
+
onChange: (event) => onChange(event.target.value)
|
|
575
|
+
}
|
|
576
|
+
),
|
|
577
|
+
/* @__PURE__ */ jsxs("p", { className: "cr-text cr-text--muted", children: [
|
|
578
|
+
"Choose between ",
|
|
579
|
+
minLabel,
|
|
580
|
+
" and ",
|
|
581
|
+
maxLabel,
|
|
582
|
+
suggestedLabel ? `; suggested ${suggestedLabel}` : "",
|
|
583
|
+
"."
|
|
584
|
+
] })
|
|
585
|
+
] });
|
|
586
|
+
}
|
|
549
587
|
function EnrollmentForm({ formData, errors, onChange, isEmailLocked, isLoading, onLogout }) {
|
|
550
588
|
const nameErrorId = "cr-name-error";
|
|
551
589
|
const emailErrorId = "cr-email-error";
|
|
@@ -628,6 +666,17 @@ function EnrollmentForm({ formData, errors, onChange, isEmailLocked, isLoading,
|
|
|
628
666
|
] })
|
|
629
667
|
] });
|
|
630
668
|
}
|
|
669
|
+
function parseCurrencyInputToCents(value) {
|
|
670
|
+
const trimmed = value.trim();
|
|
671
|
+
if (!trimmed) return null;
|
|
672
|
+
const amount = Number(trimmed);
|
|
673
|
+
if (!Number.isFinite(amount) || amount < 0) return null;
|
|
674
|
+
return Math.round(amount * 100);
|
|
675
|
+
}
|
|
676
|
+
function formatCentsAsCurrencyInput(amount) {
|
|
677
|
+
const major = amount / 100;
|
|
678
|
+
return Number.isInteger(major) ? String(major) : major.toFixed(2);
|
|
679
|
+
}
|
|
631
680
|
function shouldFetchCourseEligibility(course, hasPaidSelection, portalAuthState, hasWaitlistClaimToken) {
|
|
632
681
|
if (!course || portalAuthState === "checking") return false;
|
|
633
682
|
if (hasWaitlistClaimToken) return false;
|
|
@@ -645,12 +694,27 @@ function getSessionIdFromUrl() {
|
|
|
645
694
|
}
|
|
646
695
|
function getMissingCoursePricingSelectionMessage(pricing) {
|
|
647
696
|
if (pricing?.requiresSelection && !pricing.selectedOption) {
|
|
697
|
+
if (pricing.slidingScale) {
|
|
698
|
+
return "Choose an amount to continue.";
|
|
699
|
+
}
|
|
648
700
|
return "Choose a pricing option to continue.";
|
|
649
701
|
}
|
|
702
|
+
if (pricing?.slidingScale && pricing.selectedSlidingAmount !== null && pricing.selectedSlidingAmount < pricing.slidingScale.minAmount) {
|
|
703
|
+
return "Choose an amount within the sliding scale.";
|
|
704
|
+
}
|
|
705
|
+
if (pricing?.slidingScale && pricing.selectedSlidingAmount !== null && pricing.selectedSlidingAmount > pricing.slidingScale.maxAmount) {
|
|
706
|
+
return "Choose an amount within the sliding scale.";
|
|
707
|
+
}
|
|
650
708
|
return null;
|
|
651
709
|
}
|
|
652
710
|
function buildCoursePricingOptionPayload(pricing) {
|
|
653
|
-
|
|
711
|
+
if (pricing?.selectedOption) {
|
|
712
|
+
return { pricingOptionId: pricing.selectedOption.id };
|
|
713
|
+
}
|
|
714
|
+
if (pricing?.slidingScale && pricing.selectedSlidingAmount !== null) {
|
|
715
|
+
return { selectedSlidingAmount: pricing.selectedSlidingAmount };
|
|
716
|
+
}
|
|
717
|
+
return {};
|
|
654
718
|
}
|
|
655
719
|
function resolveHasCoursePayment(pricing) {
|
|
656
720
|
if (!pricing) {
|
|
@@ -691,6 +755,7 @@ function useCourseRegistrationWizard(props) {
|
|
|
691
755
|
scopedCourses.length === 1 ? scopedCourses[0] ?? null : null
|
|
692
756
|
);
|
|
693
757
|
const [selectedPricingOptionId, setSelectedPricingOptionId] = useState(null);
|
|
758
|
+
const [selectedSlidingAmountInput, setSelectedSlidingAmountInput] = useState("");
|
|
694
759
|
const [formData, setFormData] = useState({
|
|
695
760
|
name: "",
|
|
696
761
|
email: "",
|
|
@@ -712,8 +777,12 @@ function useCourseRegistrationWizard(props) {
|
|
|
712
777
|
const [bookingMode, setBookingMode] = useState(null);
|
|
713
778
|
const waitlistClaim = useWaitlistClaim();
|
|
714
779
|
const selectedCoursePricing = useMemo(
|
|
715
|
-
() => selectedCourse ? resolveCoursePricingState(
|
|
716
|
-
|
|
780
|
+
() => selectedCourse ? resolveCoursePricingState(
|
|
781
|
+
selectedCourse,
|
|
782
|
+
selectedPricingOptionId,
|
|
783
|
+
parseCurrencyInputToCents(selectedSlidingAmountInput)
|
|
784
|
+
) : null,
|
|
785
|
+
[selectedCourse, selectedPricingOptionId, selectedSlidingAmountInput]
|
|
717
786
|
);
|
|
718
787
|
const missingPricingSelectionMessage = getMissingCoursePricingSelectionMessage(
|
|
719
788
|
selectedCoursePricing
|
|
@@ -786,9 +855,13 @@ function useCourseRegistrationWizard(props) {
|
|
|
786
855
|
useEffect(() => {
|
|
787
856
|
if (!selectedCourse) {
|
|
788
857
|
setSelectedPricingOptionId(null);
|
|
858
|
+
setSelectedSlidingAmountInput("");
|
|
789
859
|
return;
|
|
790
860
|
}
|
|
791
861
|
const defaultPricing = resolveCoursePricingState(selectedCourse, null);
|
|
862
|
+
setSelectedSlidingAmountInput(
|
|
863
|
+
defaultPricing.slidingScale?.suggestedAmount !== null && defaultPricing.slidingScale?.suggestedAmount !== void 0 ? formatCentsAsCurrencyInput(defaultPricing.slidingScale.suggestedAmount) : ""
|
|
864
|
+
);
|
|
792
865
|
setSelectedPricingOptionId((previous) => {
|
|
793
866
|
if (previous && defaultPricing.selectableOptions.some((option) => option.id === previous)) {
|
|
794
867
|
return previous;
|
|
@@ -1163,6 +1236,8 @@ function useCourseRegistrationWizard(props) {
|
|
|
1163
1236
|
selectedCourse,
|
|
1164
1237
|
selectedPricingOptionId,
|
|
1165
1238
|
setSelectedPricingOptionId,
|
|
1239
|
+
selectedSlidingAmountInput,
|
|
1240
|
+
setSelectedSlidingAmountInput,
|
|
1166
1241
|
selectedCoursePricing,
|
|
1167
1242
|
setSelectedCourse,
|
|
1168
1243
|
formData,
|
|
@@ -1210,6 +1285,19 @@ function useCourseRegistrationWizard(props) {
|
|
|
1210
1285
|
handleBookingModeChange
|
|
1211
1286
|
};
|
|
1212
1287
|
}
|
|
1288
|
+
function getCourseSlidingScaleMessage(pricing) {
|
|
1289
|
+
if (!pricing.slidingScale) {
|
|
1290
|
+
return null;
|
|
1291
|
+
}
|
|
1292
|
+
const selectedAmount = pricing.selectedSlidingAmount;
|
|
1293
|
+
if (selectedAmount === null) {
|
|
1294
|
+
return "Choose an amount to continue.";
|
|
1295
|
+
}
|
|
1296
|
+
if (selectedAmount < pricing.slidingScale.minAmount || selectedAmount > pricing.slidingScale.maxAmount) {
|
|
1297
|
+
return "Choose an amount within the sliding scale.";
|
|
1298
|
+
}
|
|
1299
|
+
return null;
|
|
1300
|
+
}
|
|
1213
1301
|
function CourseRegistrationWizard(props) {
|
|
1214
1302
|
const {
|
|
1215
1303
|
showSessions = true,
|
|
@@ -1231,6 +1319,8 @@ function CourseRegistrationWizard(props) {
|
|
|
1231
1319
|
selectedCourse,
|
|
1232
1320
|
selectedPricingOptionId,
|
|
1233
1321
|
setSelectedPricingOptionId,
|
|
1322
|
+
selectedSlidingAmountInput,
|
|
1323
|
+
setSelectedSlidingAmountInput,
|
|
1234
1324
|
selectedCoursePricing,
|
|
1235
1325
|
formData,
|
|
1236
1326
|
setFormData,
|
|
@@ -1301,7 +1391,8 @@ function CourseRegistrationWizard(props) {
|
|
|
1301
1391
|
const canShowDiscountUi = !discountsAvailableLoading && paymentChoice === "checkout" && discountsAvailable && manualCodeEntryAllowed;
|
|
1302
1392
|
const courseSoldOut = waitlistClaim.claim === null && courseEligibility?.isFull === true && courseEligibility.canJoinWaitlist !== true;
|
|
1303
1393
|
const detailsSubmitLabel = courseEligibility?.canJoinWaitlist ? "Join waitlist" : buttonText;
|
|
1304
|
-
const pricingSelectionMissing = selectedCoursePricing?.requiresSelection === true && !selectedCoursePricing.selectedOption;
|
|
1394
|
+
const pricingSelectionMissing = selectedCoursePricing?.requiresSelection === true && !selectedCoursePricing.selectedOption && !selectedCoursePricing.slidingScale;
|
|
1395
|
+
const slidingScaleMessage = selectedCoursePricing ? getCourseSlidingScaleMessage(selectedCoursePricing) : null;
|
|
1305
1396
|
const pricingUnavailable = selectedCoursePricing?.display.kind === "unavailable";
|
|
1306
1397
|
const selectedCourseWithPricing = selectedCourse && selectedCoursePricing ? {
|
|
1307
1398
|
course: selectedCourse,
|
|
@@ -1394,6 +1485,14 @@ function CourseRegistrationWizard(props) {
|
|
|
1394
1485
|
onSelect: setSelectedPricingOptionId
|
|
1395
1486
|
}
|
|
1396
1487
|
),
|
|
1488
|
+
/* @__PURE__ */ jsx(
|
|
1489
|
+
CourseSlidingScaleInput,
|
|
1490
|
+
{
|
|
1491
|
+
pricing: selectedCourseWithPricing.pricing,
|
|
1492
|
+
value: selectedSlidingAmountInput,
|
|
1493
|
+
onChange: setSelectedSlidingAmountInput
|
|
1494
|
+
}
|
|
1495
|
+
),
|
|
1397
1496
|
showSpamProtection && /* @__PURE__ */ jsx("div", { className: "cr-altcha", children: /* @__PURE__ */ jsx(
|
|
1398
1497
|
AltchaWidget,
|
|
1399
1498
|
{
|
|
@@ -1431,7 +1530,7 @@ function CourseRegistrationWizard(props) {
|
|
|
1431
1530
|
{
|
|
1432
1531
|
type: "submit",
|
|
1433
1532
|
className: buttonClass,
|
|
1434
|
-
disabled: courseSoldOut || eligibilityLoading || pricingSelectionMissing || pricingUnavailable,
|
|
1533
|
+
disabled: courseSoldOut || eligibilityLoading || pricingSelectionMissing || slidingScaleMessage !== null || pricingUnavailable,
|
|
1435
1534
|
children: eligibilityLoading ? "Checking availability\u2026" : courseSoldOut ? "Sold out" : detailsSubmitLabel
|
|
1436
1535
|
}
|
|
1437
1536
|
)
|
|
@@ -1441,6 +1540,7 @@ function CourseRegistrationWizard(props) {
|
|
|
1441
1540
|
),
|
|
1442
1541
|
courseSoldOut && /* @__PURE__ */ jsx("p", { className: "cr-text cr-text--muted", children: "This course is fully booked and there is no waitlist available right now." }),
|
|
1443
1542
|
pricingSelectionMissing && /* @__PURE__ */ jsx("p", { className: "cr-text cr-text--muted", children: "Choose a pricing option to continue." }),
|
|
1543
|
+
slidingScaleMessage && /* @__PURE__ */ jsx("p", { className: "cr-text cr-text--muted", children: slidingScaleMessage }),
|
|
1444
1544
|
pricingUnavailable && /* @__PURE__ */ jsx("p", { className: "cr-text cr-text--muted", children: "Pricing is not available for this course right now." }),
|
|
1445
1545
|
eligibilityError && /* @__PURE__ */ jsx("p", { className: "cr-text cr-text--error", children: eligibilityError })
|
|
1446
1546
|
] })
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventCalendarClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { EventCalendarClient } from './chunk-IXDSXF2D.mjs';
|
|
2
|
+
import './chunk-WERRJXNJ.mjs';
|
|
3
|
+
import './chunk-PICR3NTQ.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-DUOHLWLF.mjs';
|
|
6
|
+
import './chunk-OLAOAZEO.mjs';
|
|
7
7
|
import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-J6TMMMXW.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-WBQG7VJA.mjs';
|
|
11
11
|
import './chunk-LJCX6V7Q.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-TNGL2WJF.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
15
|
+
import './chunk-PCHACQEB.mjs';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
var decode = defineIslandPropsDecoder("event-calendar");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventCombinedIslandClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { EventCombinedIslandClient } from './chunk-IXDSXF2D.mjs';
|
|
2
|
+
import './chunk-WERRJXNJ.mjs';
|
|
3
|
+
import './chunk-PICR3NTQ.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-DUOHLWLF.mjs';
|
|
6
|
+
import './chunk-OLAOAZEO.mjs';
|
|
7
7
|
import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-J6TMMMXW.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-WBQG7VJA.mjs';
|
|
11
11
|
import './chunk-LJCX6V7Q.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-TNGL2WJF.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
15
|
+
import './chunk-PCHACQEB.mjs';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
var decode = defineIslandPropsDecoder("event-combined");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { EventDetailsIslandClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { EventDetailsIslandClient } from './chunk-IXDSXF2D.mjs';
|
|
2
|
+
import './chunk-WERRJXNJ.mjs';
|
|
3
|
+
import './chunk-PICR3NTQ.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-DUOHLWLF.mjs';
|
|
6
|
+
import './chunk-OLAOAZEO.mjs';
|
|
7
|
+
import './chunk-J6TMMMXW.mjs';
|
|
8
8
|
import './chunk-3DCJ45Z2.mjs';
|
|
9
9
|
import './chunk-WBQG7VJA.mjs';
|
|
10
10
|
import './chunk-LJCX6V7Q.mjs';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-TNGL2WJF.mjs';
|
|
12
12
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
13
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
14
|
+
import './chunk-PCHACQEB.mjs';
|
|
15
15
|
import { jsx } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
var decode = defineIslandPropsDecoder("event-details");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventListingClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { EventListingClient } from './chunk-IXDSXF2D.mjs';
|
|
2
|
+
import './chunk-WERRJXNJ.mjs';
|
|
3
|
+
import './chunk-PICR3NTQ.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-DUOHLWLF.mjs';
|
|
6
|
+
import './chunk-OLAOAZEO.mjs';
|
|
7
7
|
import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-J6TMMMXW.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-WBQG7VJA.mjs';
|
|
11
11
|
import './chunk-LJCX6V7Q.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-TNGL2WJF.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
15
|
+
import './chunk-PCHACQEB.mjs';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
var decode = defineIslandPropsDecoder("event-listing");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventRegistrationIslandClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { EventRegistrationIslandClient } from './chunk-IXDSXF2D.mjs';
|
|
2
|
+
import './chunk-WERRJXNJ.mjs';
|
|
3
|
+
import './chunk-PICR3NTQ.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-DUOHLWLF.mjs';
|
|
6
|
+
import './chunk-OLAOAZEO.mjs';
|
|
7
7
|
import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-J6TMMMXW.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-WBQG7VJA.mjs';
|
|
11
11
|
import './chunk-LJCX6V7Q.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-TNGL2WJF.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
15
|
+
import './chunk-PCHACQEB.mjs';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
var decode = defineIslandPropsDecoder("event-registration");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-LJCX6V7Q.mjs';
|
|
3
|
-
import { BlockApiProvider, FeedbackMessage, useBlockApi } from './chunk-
|
|
3
|
+
import { BlockApiProvider, FeedbackMessage, useBlockApi } from './chunk-TNGL2WJF.mjs';
|
|
4
4
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
5
|
-
import { defineIslandPropsDecoder, themeButtonClassName, assertNever, err, ok } from './chunk-
|
|
6
|
-
import { clsx_default } from './chunk-
|
|
5
|
+
import { defineIslandPropsDecoder, themeButtonClassName, assertNever, err, ok } from './chunk-6SYGVVWA.mjs';
|
|
6
|
+
import { clsx_default } from './chunk-PCHACQEB.mjs';
|
|
7
7
|
import { useState, useReducer, useRef } from 'react';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCommerceCart } from './chunk-
|
|
2
|
+
import { useCommerceCart } from './chunk-Q47XGAGS.mjs';
|
|
3
3
|
import { resolveDedicatedCheckoutPath, ModalShell } from './chunk-WBQG7VJA.mjs';
|
|
4
|
-
import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-6SYGVVWA.mjs';
|
|
5
|
+
import './chunk-PCHACQEB.mjs';
|
|
6
6
|
import * as React2 from 'react';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
8
|
import { createRoot } from 'react-dom/client';
|
package/dist/client/hooks.mjs
CHANGED
|
@@ -6502,6 +6502,7 @@ function publicEventPricingType(pricing) {
|
|
|
6502
6502
|
return "free";
|
|
6503
6503
|
case "single_paid":
|
|
6504
6504
|
case "ticket_types":
|
|
6505
|
+
case "sliding_scale":
|
|
6505
6506
|
case "course":
|
|
6506
6507
|
return isFreePublicEventPriceDisplay(pricing.display) ? "free" : "paid";
|
|
6507
6508
|
case "external":
|
|
@@ -6829,9 +6830,6 @@ function formatKeyAsLabel(key) {
|
|
|
6829
6830
|
return key.replace(/([A-Z])/g, " $1").replace(/[-_]/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
6830
6831
|
}
|
|
6831
6832
|
|
|
6832
|
-
// ../blocks/src/system/manifest/schema.ts
|
|
6833
|
-
import { z as z4 } from "zod";
|
|
6834
|
-
|
|
6835
6833
|
// ../media-core/src/transformRect.ts
|
|
6836
6834
|
function isValidTransformRectStructure(rect) {
|
|
6837
6835
|
if (!Array.isArray(rect) || rect.length !== 4) return false;
|
|
@@ -6925,6 +6923,9 @@ function rotateNormalizedPoint(point, rotation) {
|
|
|
6925
6923
|
}
|
|
6926
6924
|
}
|
|
6927
6925
|
|
|
6926
|
+
// ../blocks/src/system/manifest/schema.ts
|
|
6927
|
+
import { z as z4 } from "zod";
|
|
6928
|
+
|
|
6928
6929
|
// ../blocks/src/system/node/schema.ts
|
|
6929
6930
|
import { z as z3 } from "zod";
|
|
6930
6931
|
var transformStepSchema = z3.object({
|
|
@@ -28049,9 +28050,12 @@ var coursePricingOptionSchema = z42.object({
|
|
|
28049
28050
|
});
|
|
28050
28051
|
var coursePricingSchema = z42.object({
|
|
28051
28052
|
bookingRequirement: z42.enum(["none", "required"]),
|
|
28052
|
-
pricingStrategy: z42.enum(["free", "single", "tiered"]),
|
|
28053
|
+
pricingStrategy: z42.enum(["free", "single", "tiered", "sliding_scale"]),
|
|
28053
28054
|
currency: z42.string(),
|
|
28054
28055
|
singlePriceAmount: z42.number().nullable(),
|
|
28056
|
+
slidingMinAmount: z42.number().nullable().optional(),
|
|
28057
|
+
slidingMaxAmount: z42.number().nullable().optional(),
|
|
28058
|
+
slidingSuggestedAmount: z42.number().nullable().optional(),
|
|
28055
28059
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
28056
28060
|
options: z42.array(coursePricingOptionSchema)
|
|
28057
28061
|
});
|
|
@@ -28205,6 +28209,19 @@ var publicEventPricingSchema = z43.discriminatedUnion("kind", [
|
|
|
28205
28209
|
ticketTypes: z43.array(publicEventTicketTypeSchema),
|
|
28206
28210
|
display: publicEventTicketTypePriceDisplaySchema
|
|
28207
28211
|
}),
|
|
28212
|
+
z43.object({
|
|
28213
|
+
kind: z43.literal("sliding_scale"),
|
|
28214
|
+
minAmount: z43.number(),
|
|
28215
|
+
maxAmount: z43.number(),
|
|
28216
|
+
suggestedAmount: z43.number().nullable(),
|
|
28217
|
+
currency: z43.string(),
|
|
28218
|
+
display: z43.object({
|
|
28219
|
+
kind: z43.literal("range"),
|
|
28220
|
+
minAmount: z43.number(),
|
|
28221
|
+
maxAmount: z43.number(),
|
|
28222
|
+
currency: z43.string()
|
|
28223
|
+
})
|
|
28224
|
+
}),
|
|
28208
28225
|
z43.object({
|
|
28209
28226
|
kind: z43.literal("course"),
|
|
28210
28227
|
display: z43.object({ kind: z43.literal("course"), display: publicCoursePriceDisplaySchema })
|
|
@@ -28621,7 +28638,7 @@ function isRecord4(value) {
|
|
|
28621
28638
|
}
|
|
28622
28639
|
function isPublicEventPricing(value) {
|
|
28623
28640
|
if (!isRecord4(value) || typeof value.kind !== "string") return false;
|
|
28624
|
-
return value.kind === "drop_in" || value.kind === "free_registration" || value.kind === "single_paid" || value.kind === "ticket_types" || value.kind === "course" || value.kind === "external";
|
|
28641
|
+
return value.kind === "drop_in" || value.kind === "free_registration" || value.kind === "single_paid" || value.kind === "sliding_scale" || value.kind === "ticket_types" || value.kind === "course" || value.kind === "external";
|
|
28625
28642
|
}
|
|
28626
28643
|
function isPublicEventTicketType(value) {
|
|
28627
28644
|
return isRecord4(value) && typeof value.id === "string";
|
|
@@ -38822,6 +38839,38 @@ var NAMED_SURFACE_IDS = SURFACE_IDS.filter(
|
|
|
38822
38839
|
(surfaceId) => surfaceId !== DEFAULT_SURFACE_ID
|
|
38823
38840
|
);
|
|
38824
38841
|
|
|
38842
|
+
// ../api/src/common/envelope.ts
|
|
38843
|
+
var API_ERROR_CODES = [
|
|
38844
|
+
"auth:unauthenticated",
|
|
38845
|
+
"auth:token_expired",
|
|
38846
|
+
"auth:token_invalid",
|
|
38847
|
+
"auth:forbidden",
|
|
38848
|
+
"auth:mfa_required",
|
|
38849
|
+
"auth:sudo_required",
|
|
38850
|
+
"auth:insufficient_permissions",
|
|
38851
|
+
"auth:impersonation_restricted",
|
|
38852
|
+
"validation:invalid_input",
|
|
38853
|
+
"validation:missing_field",
|
|
38854
|
+
"validation:invalid_format",
|
|
38855
|
+
"validation:payload_too_large",
|
|
38856
|
+
"resource:not_found",
|
|
38857
|
+
"resource:already_exists",
|
|
38858
|
+
"resource:conflict",
|
|
38859
|
+
"resource:gone",
|
|
38860
|
+
"rate_limit:exceeded",
|
|
38861
|
+
"billing:payment_required",
|
|
38862
|
+
"billing:plan_limit_exceeded",
|
|
38863
|
+
"billing:pass_redemption_failed",
|
|
38864
|
+
"server:internal_error",
|
|
38865
|
+
"server:unavailable",
|
|
38866
|
+
"external:service_error",
|
|
38867
|
+
"external:registrar_orphaned_contact_profile",
|
|
38868
|
+
"network:connection_error",
|
|
38869
|
+
"network:timeout",
|
|
38870
|
+
"network:dns_error"
|
|
38871
|
+
];
|
|
38872
|
+
var API_ERROR_CODE_SET = new Set(API_ERROR_CODES);
|
|
38873
|
+
|
|
38825
38874
|
// ../api/src/customerMembershipOutcomes.ts
|
|
38826
38875
|
var CANONICAL_REFUND_CONFLICT_CODES = [
|
|
38827
38876
|
"already_refunded",
|
|
@@ -38831,6 +38880,7 @@ var CANONICAL_REFUND_CONFLICT_CODES = [
|
|
|
38831
38880
|
];
|
|
38832
38881
|
var CANONICAL_REFUND_PLANNER_ERROR_CODES = [
|
|
38833
38882
|
...CANONICAL_REFUND_CONFLICT_CODES,
|
|
38883
|
+
"invalid_amount",
|
|
38834
38884
|
"amount_exceeds_remaining",
|
|
38835
38885
|
"pass_revoke_requires_full_refund",
|
|
38836
38886
|
"refund_failed"
|
|
@@ -38857,6 +38907,7 @@ var CUSTOMER_MEMBERSHIP_PAYMENT_REFUND_FAILED_CODES = [
|
|
|
38857
38907
|
// ../api/src/bookingRefundOutcomes.ts
|
|
38858
38908
|
var STANDARD_LINE_ITEM_REFUND_INVALID_CODES = [
|
|
38859
38909
|
"missing_amount",
|
|
38910
|
+
"invalid_amount",
|
|
38860
38911
|
"amount_exceeds_remaining",
|
|
38861
38912
|
"credit_refunds_disabled",
|
|
38862
38913
|
"missing_credit_customer",
|
|
@@ -38871,6 +38922,7 @@ var EVENT_ATTENDEE_REFUND_INVALID_CODES = [
|
|
|
38871
38922
|
var MANAGED_PRODUCT_REFUND_INVALID_CODES = [
|
|
38872
38923
|
"credit_refunds_disabled",
|
|
38873
38924
|
"not_refundable",
|
|
38925
|
+
"invalid_amount",
|
|
38874
38926
|
"amount_exceeds_remaining"
|
|
38875
38927
|
];
|
|
38876
38928
|
var CUSTOMER_PASS_REFUND_INVALID_CODES = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LeafletStaticMap } from './chunk-
|
|
1
|
+
import { LeafletStaticMap } from './chunk-WERRJXNJ.mjs';
|
|
2
2
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
3
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
4
|
-
import { normalizeLocationAddressText, toLocationCoordinates, textColorStyle, mergeStyles, borderColorStyle, backgroundColorStyle } from './chunk-
|
|
3
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
4
|
+
import { normalizeLocationAddressText, toLocationCoordinates, textColorStyle, mergeStyles, borderColorStyle, backgroundColorStyle } from './chunk-PCHACQEB.mjs';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
// ../blocks/src/system/runtime/nodes/location-map.shared.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-3DCJ45Z2.mjs';
|
|
3
3
|
import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-LJCX6V7Q.mjs';
|
|
4
|
-
import { BlockApiProvider, useBlockApi, FeedbackMessage } from './chunk-
|
|
4
|
+
import { BlockApiProvider, useBlockApi, FeedbackMessage } from './chunk-TNGL2WJF.mjs';
|
|
5
5
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
6
|
-
import { defineIslandPropsDecoder, themeButtonClassName, assertNever } from './chunk-
|
|
7
|
-
import { clsx_default } from './chunk-
|
|
6
|
+
import { defineIslandPropsDecoder, themeButtonClassName, assertNever } from './chunk-6SYGVVWA.mjs';
|
|
7
|
+
import { clsx_default } from './chunk-PCHACQEB.mjs';
|
|
8
8
|
import { useReducer, useState } from 'react';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, ProductDetailClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { mountShopBlockIsland, ProductDetailClient } from './chunk-YYVGSYBO.mjs';
|
|
2
|
+
import './chunk-Q47XGAGS.mjs';
|
|
3
|
+
import './chunk-JNE6UI6U.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
5
|
import './chunk-L4J5Y62O.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-J6TMMMXW.mjs';
|
|
7
7
|
import './chunk-3DCJ45Z2.mjs';
|
|
8
8
|
import './chunk-WBQG7VJA.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-TNGL2WJF.mjs';
|
|
10
10
|
import './chunk-N7PBWBWQ.mjs';
|
|
11
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
12
|
+
import './chunk-PCHACQEB.mjs';
|
|
13
13
|
|
|
14
14
|
// src/rendering/islands/enhancers/productDetail.tsx
|
|
15
15
|
var decode = defineIslandPropsDecoder("product-detail");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, ProductListClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { mountShopBlockIsland, ProductListClient } from './chunk-YYVGSYBO.mjs';
|
|
2
|
+
import './chunk-Q47XGAGS.mjs';
|
|
3
|
+
import './chunk-JNE6UI6U.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
5
|
import './chunk-L4J5Y62O.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-J6TMMMXW.mjs';
|
|
7
7
|
import './chunk-3DCJ45Z2.mjs';
|
|
8
8
|
import './chunk-WBQG7VJA.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-TNGL2WJF.mjs';
|
|
10
10
|
import './chunk-N7PBWBWQ.mjs';
|
|
11
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
|
|
12
|
+
import './chunk-PCHACQEB.mjs';
|
|
13
13
|
|
|
14
14
|
// src/rendering/islands/enhancers/productList.tsx
|
|
15
15
|
var decode = defineIslandPropsDecoder("product-list");
|