@riverbankcms/sdk 0.77.1 → 0.78.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/README.md +69 -0
- package/dist/{PreviewEditorSidebar-DVUG7GK4.mjs → PreviewEditorSidebar-RIKFQ72L.mjs} +4916 -4847
- package/dist/{PreviewEditorUI-P7RN4CDS.mjs → PreviewEditorUI-XO7TUWKK.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-LAGYMPNF.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +154 -154
- package/dist/_dts/api/src/accessAdmin.d.ts +5 -0
- package/dist/_dts/api/src/billing.d.ts +3 -26
- package/dist/_dts/api/src/bookingVerticals.d.ts +4 -0
- package/dist/_dts/api/src/content-editor.d.ts +1 -0
- package/dist/_dts/api/src/demoDashboardMutationSurfaces.d.ts +46 -0
- package/dist/_dts/api/src/endpoints.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +14 -2
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +87 -0
- package/dist/_dts/api/src/navigation/dashboardDemoNav.d.ts +5 -0
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +45 -0
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +42 -0
- package/dist/_dts/api/src/navigation/dashboardTeamMemberNav.d.ts +24 -0
- package/dist/_dts/api/src/navigation/linkUrlType.d.ts +3 -0
- package/dist/_dts/api/src/navigation.d.ts +12 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +55 -26
- package/dist/_dts/api/src/staffAccess.d.ts +79 -0
- package/dist/_dts/api/src/types.d.ts +3 -1
- package/dist/_dts/api/src/workflows/automaticWorkflowTriggers.d.ts +21 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +4 -1
- package/dist/_dts/blocks/src/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +294 -289
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +21 -21
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +288 -288
- package/dist/_dts/blocks/src/system/data/index.d.ts +5 -3
- package/dist/_dts/blocks/src/system/data/previewResolvedDataState.d.ts +45 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +2 -1
- package/dist/_dts/blocks/src/system/fragments/library/faqAccordion.d.ts +5 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -29
- package/dist/_dts/blocks/src/system/node/fragments/headingDecoration.d.ts +10 -0
- package/dist/_dts/blocks/src/system/node/fragments/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +43 -8
- package/dist/_dts/blocks/src/system/runtime/header/shared.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCompactRow.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-cart-discount-ui.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout-form.d.ts +76 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout.state.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce-store.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.shared.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-discount-apply.state.d.ts +52 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +2 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/useDiscountApply.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +54 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-editor/src/contentTypeEditorContentState.d.ts +26 -0
- package/dist/_dts/content-editor/src/definitions/factory.d.ts +75 -0
- package/dist/_dts/content-editor/src/entryWorkflows.d.ts +2 -0
- package/dist/_dts/content-editor/src/footerBlocksEditorState.d.ts +76 -0
- package/dist/_dts/content-editor/src/index.d.ts +5 -0
- package/dist/_dts/content-editor/src/pageWorkflowContent.d.ts +29 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
- package/dist/_dts/content-model/src/index.d.ts +1 -0
- package/dist/_dts/content-model/src/routeTemplate.d.ts +4 -0
- package/dist/_dts/content-model/src/templates/editorState.d.ts +25 -0
- package/dist/_dts/core/src/csv-cells.d.ts +10 -0
- package/dist/_dts/core/src/csv-date-filter.d.ts +27 -0
- package/dist/_dts/core/src/csv-escape.d.ts +1 -0
- package/dist/_dts/core/src/csv-filename.d.ts +18 -0
- package/dist/_dts/core/src/csv-render.d.ts +4 -0
- package/dist/_dts/core/src/csv-types.d.ts +116 -0
- package/dist/_dts/core/src/currency-format.d.ts +4 -0
- package/dist/_dts/core/src/demo-capability-policy.d.ts +29 -0
- package/dist/_dts/core/src/demo-claim-access.d.ts +14 -0
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +11 -0
- package/dist/_dts/core/src/demo-runtime.d.ts +47 -0
- package/dist/_dts/core/src/duration.d.ts +14 -0
- package/dist/_dts/core/src/email-format.d.ts +10 -0
- package/dist/_dts/core/src/field-errors.d.ts +1 -0
- package/dist/_dts/core/src/form-submission-preview.d.ts +24 -0
- package/dist/_dts/core/src/index.d.ts +20 -0
- package/dist/_dts/core/src/number-input.d.ts +22 -0
- package/dist/_dts/core/src/public-url-validation.d.ts +12 -0
- package/dist/_dts/core/src/slug.d.ts +39 -0
- package/dist/_dts/core/src/string.d.ts +19 -0
- package/dist/_dts/core/src/uuid.d.ts +6 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +50 -50
- package/dist/_dts/media-core/src/assetsInUseSummary.d.ts +34 -0
- package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +24 -0
- package/dist/_dts/media-core/src/canonicalCropReview.d.ts +66 -0
- package/dist/_dts/media-core/src/classifyAllPlanning.d.ts +48 -0
- package/dist/_dts/media-core/src/filename.d.ts +1 -0
- package/dist/_dts/media-core/src/index.d.ts +10 -0
- package/dist/_dts/media-core/src/mediaAssetUsageStatus.d.ts +47 -0
- package/dist/_dts/media-core/src/mediaSettingsState.d.ts +3 -0
- package/dist/_dts/media-core/src/portableMediaReferences.d.ts +38 -0
- package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +28 -0
- package/dist/_dts/media-core/src/videoAssetRepair.d.ts +38 -0
- package/dist/_dts/media-editor/src/mediaEditorDebug.d.ts +1 -0
- package/dist/_dts/path-utils/src/index.d.ts +8 -0
- package/dist/_dts/path-utils/src/redirectPaths.d.ts +26 -0
- package/dist/_dts/path-utils/src/safeAppPath.d.ts +26 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeButton.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/previewDocumentFrame.d.ts +31 -0
- package/dist/_dts/sdk/src/client/error.d.ts +3 -0
- package/dist/_dts/sdk/src/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +37 -19
- package/dist/_dts/sdk/src/index.d.ts +2 -2
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +16 -16
- package/dist/_dts/sdk/src/next/content-load-failure.d.ts +51 -0
- package/dist/_dts/sdk/src/next/index.d.ts +2 -1
- package/dist/_dts/sdk/src/next/types.d.ts +19 -0
- package/dist/_dts/sdk/src/portal/redirects.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +3 -2
- package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +71 -6
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +12 -12
- package/dist/_dts/site-commands/src/index.d.ts +1 -0
- package/dist/_dts/site-commands/src/pagePaths.d.ts +6 -0
- package/dist/_dts/theme-core/src/accordions/siteStyleDefaults.d.ts +26 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/fonts/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/fonts/uploadFormat.d.ts +44 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +3 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +36 -24
- package/dist/_dts/theme-core/src/navigation/generateNavLinkCSS.d.ts +6 -1
- package/dist/_dts/theme-core/src/navigation/types.d.ts +12 -0
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/runtime/themeCssVarNames.d.ts +7 -0
- package/dist/_dts/theme-core/src/schema.d.ts +64 -18
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +214 -34
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +5 -2
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +214 -34
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +24 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +31 -3
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +33 -1
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -1
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +27 -2
- package/dist/_dts/theme-core/src/siteChrome.d.ts +17 -34
- package/dist/_dts/theme-core/src/siteChromeOverlayClearance.d.ts +22 -0
- package/dist/_dts/theme-core/src/siteChromePlacement.d.ts +22 -0
- package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +32 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -2
- package/dist/{chunk-2SPENC5M.mjs → chunk-F7RTCZYN.mjs} +229 -50
- package/dist/{chunk-IENWFSLO.mjs → chunk-NIDXI46P.mjs} +1 -1
- package/dist/{chunk-KWJPDZH2.mjs → chunk-OECWLDHN.mjs} +2770 -620
- package/dist/{chunk-VX7B5VAC.mjs → chunk-SVMMM2NA.mjs} +8 -0
- package/dist/{chunk-6SMUFTXD.mjs → chunk-SXOLGNMX.mjs} +1 -1
- package/dist/{chunk-ZYEJLCTN.mjs → chunk-TXDES5P2.mjs} +2 -2
- package/dist/cli/index.mjs +1677 -440
- package/dist/client/{accordion-RZMQSYLR.mjs → accordion-EVDEOUPR.mjs} +2 -2
- package/dist/client/{bookingForm-NF4ASVNV.mjs → bookingForm-DIHBLC64.mjs} +27 -30
- package/dist/client/bookings.mjs +3707 -259
- package/dist/client/{carousel-LDX47ZIK.mjs → carousel-FEBQHIWI.mjs} +3 -4
- package/dist/client/{cart-RGXDS5F4.mjs → cart-7CKSXAE4.mjs} +8 -8
- package/dist/client/{checkout-P7WWSNNY.mjs → checkout-WKYCANLV.mjs} +8 -8
- package/dist/client/{chunk-JNC7CGHX.mjs → chunk-2SAVKN2M.mjs} +2 -2
- package/dist/client/{chunk-TQ5MSPDX.mjs → chunk-36WJCERQ.mjs} +1 -1
- package/dist/client/{chunk-R56FQ3RR.mjs → chunk-65F47D7Y.mjs} +280 -71
- package/dist/client/{chunk-L3DNHIJX.mjs → chunk-GUK2FPXQ.mjs} +23 -45
- package/dist/client/{chunk-PMAIXMAB.mjs → chunk-IVNCUVAV.mjs} +26 -21
- package/dist/client/{chunk-II7O4XN3.mjs → chunk-OFMSCGNY.mjs} +2 -2
- package/dist/client/chunk-PD6NBCEY.mjs +66 -0
- package/dist/client/{chunk-GMVTOKYG.mjs → chunk-RV6FX7UH.mjs} +510 -64
- package/dist/client/{chunk-E2TDNXCL.mjs → chunk-RZDWX7QW.mjs} +2 -1
- package/dist/client/{chunk-M3L3KYYR.mjs → chunk-UDNSI5PY.mjs} +12 -0
- package/dist/client/{chunk-JEZECJ3W.mjs → chunk-VPPMNXCF.mjs} +129 -3
- package/dist/client/{chunk-UFSWADAO.mjs → chunk-YDSEG6GZ.mjs} +5 -66
- package/dist/client/client.mjs +7070 -4561
- package/dist/client/{courseRegistration-7F65K5ZR.mjs → courseRegistration-5QF2PHKM.mjs} +14 -11
- package/dist/client/{eventCalendar-GLSC5KTL.mjs → eventCalendar-4ZOSETDU.mjs} +9 -9
- package/dist/client/{eventCombined-ZHK4WKUR.mjs → eventCombined-WQGU7JUX.mjs} +9 -9
- package/dist/client/{eventDetails-E3PJYBIN.mjs → eventDetails-AYWVUJ5Y.mjs} +9 -9
- package/dist/client/{eventListing-EMS3WC3E.mjs → eventListing-NT7C6UT5.mjs} +9 -9
- package/dist/client/{eventRegistration-NZOTVNPI.mjs → eventRegistration-OH24F4ZJ.mjs} +9 -9
- package/dist/client/{form-ETFZFATW.mjs → form-7L42SRBB.mjs} +6 -6
- package/dist/client/{headerSection-4LBP7ULT.mjs → headerSection-OZRZNZ52.mjs} +3 -3
- package/dist/client/hooks.mjs +1040 -278
- package/dist/client/{locationMap-5M655YSJ.mjs → locationMap-ZBXRPQ7C.mjs} +2 -2
- package/dist/client/{newsletterForm-QOUYW44O.mjs → newsletterForm-SNAGFF2I.mjs} +3 -3
- package/dist/client/{productDetail-O4DOCWQG.mjs → productDetail-I46BOFGV.mjs} +8 -8
- package/dist/client/{productList-A5RO5WIS.mjs → productList-BOYHTYI6.mjs} +8 -8
- package/dist/client/rendering/client.mjs +7090 -2645
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +6089 -3792
- package/dist/client/{shop-L4MZH4I2.mjs → shop-XTXPZTKR.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +8 -0
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/editor-chrome.css +10 -0
- package/dist/preview-next/middleware.mjs +8 -0
- package/dist/{sdk-runtime-6UT2S7KZ.mjs → sdk-runtime-ZJLKC6DR.mjs} +6 -6
- package/dist/server/components.mjs +2635 -1262
- package/dist/server/config-validation.mjs +1271 -509
- package/dist/server/config.mjs +1271 -509
- package/dist/server/data.mjs +1040 -278
- package/dist/server/index.mjs +488 -246
- package/dist/server/next.mjs +4087 -2147
- package/dist/server/page-converter.mjs +571 -115
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2636 -1263
- package/dist/server/rendering.mjs +2654 -1268
- package/dist/server/routing.mjs +1729 -489
- package/dist/server/server.mjs +1532 -530
- package/dist/server/theme-bridge.mjs +3151 -131
- package/dist/server/theme.mjs +10 -1
- package/dist/styles/index.css +488 -48
- package/package.json +2 -1
- package/dist/SdkPreviewModeRuntime-KLPX47SE.mjs +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/DiscountCodeSection.d.ts +0 -7
- package/dist/_dts/preview-next/src/client/widgets/PreviewMediaField.d.ts +0 -4
- package/dist/client/chunk-OJPZEZU2.mjs +0 -31
- package/dist/client/chunk-RTZ3JKKX.mjs +0 -178
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { getStepNumber, logoutPortal, StepIndicator, LoggedInAsUser, CheckIcon, formatPrice, TerminalPanel, StateIcon, ClockIcon, CrossIcon, scrollToBlock, buildCheckoutReturnUrls, MembershipHero, validateFormData } from './chunk-JEZECJ3W.mjs';
|
|
2
|
+
import { useWaitlistClaim, MagicLinkForm } from './chunk-2SAVKN2M.mjs';
|
|
3
|
+
import { SpinnerNode } from './chunk-36WJCERQ.mjs';
|
|
4
|
+
import { DiscountCodeDisclosure, getStepNumber, logoutPortal, StepIndicator, LoggedInAsUser, CheckIcon, formatPrice, TerminalPanel, StateIcon, ClockIcon, CrossIcon, scrollToBlock, buildCheckoutReturnUrls, MembershipHero, validateFormData } from './chunk-VPPMNXCF.mjs';
|
|
6
5
|
import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-3DCJ45Z2.mjs';
|
|
7
6
|
import { ModalShell } from './chunk-3PEDD5KJ.mjs';
|
|
8
7
|
import { AltchaWidget, getChallengeUrl, isSpamProtectionEnabled } from './chunk-YLMKMCSJ.mjs';
|
|
9
|
-
import { BlockApiProvider, useBlockApi } from './chunk-
|
|
8
|
+
import { BlockApiProvider, useBlockApi } from './chunk-UDNSI5PY.mjs';
|
|
10
9
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
11
|
-
import { defineIslandPropsDecoder, themeButtonClassName, resolveCoursePricingState, formatCoursePriceDisplay, formatCoursePriceAmount } from './chunk-
|
|
12
|
-
import { formatBookingDate, toScheduledBookingDateTime, toBookingTimeZone, formatBookingTime } from './chunk-
|
|
10
|
+
import { defineIslandPropsDecoder, themeButtonClassName, resolveCoursePricingState, formatCoursePriceDisplay, formatCoursePriceAmount } from './chunk-65F47D7Y.mjs';
|
|
11
|
+
import { formatBookingDate, toScheduledBookingDateTime, toBookingTimeZone, formatBookingTime } from './chunk-IVNCUVAV.mjs';
|
|
13
12
|
import React2, { Component, useMemo, useState, useEffect } from 'react';
|
|
14
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
14
|
|
|
@@ -1440,8 +1439,9 @@ function CourseRegistrationWizard(props) {
|
|
|
1440
1439
|
}
|
|
1441
1440
|
) }),
|
|
1442
1441
|
canShowDiscountUi && /* @__PURE__ */ jsx(
|
|
1443
|
-
|
|
1442
|
+
DiscountCodeDisclosure,
|
|
1444
1443
|
{
|
|
1444
|
+
surface: "course-registration",
|
|
1445
1445
|
isOpen: discountUiOpen,
|
|
1446
1446
|
code: discountCode,
|
|
1447
1447
|
onOpen: () => setDiscountUiOpen(true),
|
|
@@ -1449,7 +1449,8 @@ function CourseRegistrationWizard(props) {
|
|
|
1449
1449
|
onRemove: () => {
|
|
1450
1450
|
setDiscountCode("");
|
|
1451
1451
|
setDiscountUiOpen(false);
|
|
1452
|
-
}
|
|
1452
|
+
},
|
|
1453
|
+
id: "cr-discount-code"
|
|
1453
1454
|
}
|
|
1454
1455
|
),
|
|
1455
1456
|
/* @__PURE__ */ jsxs("div", { className: "cr-actions", children: [
|
|
@@ -1600,8 +1601,9 @@ function CourseRegistrationWizard(props) {
|
|
|
1600
1601
|
] })
|
|
1601
1602
|
] }),
|
|
1602
1603
|
canShowDiscountUi && /* @__PURE__ */ jsx(
|
|
1603
|
-
|
|
1604
|
+
DiscountCodeDisclosure,
|
|
1604
1605
|
{
|
|
1606
|
+
surface: "course-registration",
|
|
1605
1607
|
isOpen: discountUiOpen,
|
|
1606
1608
|
code: discountCode,
|
|
1607
1609
|
onOpen: () => setDiscountUiOpen(true),
|
|
@@ -1609,7 +1611,8 @@ function CourseRegistrationWizard(props) {
|
|
|
1609
1611
|
onRemove: () => {
|
|
1610
1612
|
setDiscountCode("");
|
|
1611
1613
|
setDiscountUiOpen(false);
|
|
1612
|
-
}
|
|
1614
|
+
},
|
|
1615
|
+
id: "cr-discount-code"
|
|
1613
1616
|
}
|
|
1614
1617
|
),
|
|
1615
1618
|
/* @__PURE__ */ jsxs("div", { className: "cr-actions", children: [
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventCalendarClient } from './chunk-
|
|
1
|
+
import { EventCalendarClient } from './chunk-GUK2FPXQ.mjs';
|
|
2
2
|
import './chunk-F7LHOKEH.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2SAVKN2M.mjs';
|
|
4
4
|
import './chunk-I2MMZO53.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-YDSEG6GZ.mjs';
|
|
6
|
+
import './chunk-36WJCERQ.mjs';
|
|
7
|
+
import './chunk-PD6NBCEY.mjs';
|
|
8
|
+
import './chunk-VPPMNXCF.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-3PEDD5KJ.mjs';
|
|
11
11
|
import './chunk-YLMKMCSJ.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
|
|
15
|
+
import './chunk-IVNCUVAV.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-
|
|
1
|
+
import { EventCombinedIslandClient } from './chunk-GUK2FPXQ.mjs';
|
|
2
2
|
import './chunk-F7LHOKEH.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2SAVKN2M.mjs';
|
|
4
4
|
import './chunk-I2MMZO53.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-YDSEG6GZ.mjs';
|
|
6
|
+
import './chunk-36WJCERQ.mjs';
|
|
7
|
+
import './chunk-PD6NBCEY.mjs';
|
|
8
|
+
import './chunk-VPPMNXCF.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-3PEDD5KJ.mjs';
|
|
11
11
|
import './chunk-YLMKMCSJ.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
|
|
15
|
+
import './chunk-IVNCUVAV.mjs';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
var decode = defineIslandPropsDecoder("event-combined");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventDetailsIslandClient } from './chunk-
|
|
1
|
+
import { EventDetailsIslandClient } from './chunk-GUK2FPXQ.mjs';
|
|
2
2
|
import './chunk-F7LHOKEH.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2SAVKN2M.mjs';
|
|
4
4
|
import './chunk-I2MMZO53.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-YDSEG6GZ.mjs';
|
|
6
|
+
import './chunk-36WJCERQ.mjs';
|
|
7
|
+
import './chunk-PD6NBCEY.mjs';
|
|
8
|
+
import './chunk-VPPMNXCF.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-3PEDD5KJ.mjs';
|
|
11
11
|
import './chunk-YLMKMCSJ.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-UDNSI5PY.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
|
|
15
|
+
import './chunk-IVNCUVAV.mjs';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
var decode = defineIslandPropsDecoder("event-details");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventListingClient } from './chunk-
|
|
1
|
+
import { EventListingClient } from './chunk-GUK2FPXQ.mjs';
|
|
2
2
|
import './chunk-F7LHOKEH.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2SAVKN2M.mjs';
|
|
4
4
|
import './chunk-I2MMZO53.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-YDSEG6GZ.mjs';
|
|
6
|
+
import './chunk-36WJCERQ.mjs';
|
|
7
|
+
import './chunk-PD6NBCEY.mjs';
|
|
8
|
+
import './chunk-VPPMNXCF.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-3PEDD5KJ.mjs';
|
|
11
11
|
import './chunk-YLMKMCSJ.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
|
|
15
|
+
import './chunk-IVNCUVAV.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-
|
|
1
|
+
import { EventRegistrationIslandClient } from './chunk-GUK2FPXQ.mjs';
|
|
2
2
|
import './chunk-F7LHOKEH.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2SAVKN2M.mjs';
|
|
4
4
|
import './chunk-I2MMZO53.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-YDSEG6GZ.mjs';
|
|
6
|
+
import './chunk-36WJCERQ.mjs';
|
|
7
|
+
import './chunk-PD6NBCEY.mjs';
|
|
8
|
+
import './chunk-VPPMNXCF.mjs';
|
|
9
9
|
import './chunk-3DCJ45Z2.mjs';
|
|
10
10
|
import './chunk-3PEDD5KJ.mjs';
|
|
11
11
|
import './chunk-YLMKMCSJ.mjs';
|
|
12
|
-
import { BlockApiProvider } from './chunk-
|
|
12
|
+
import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
|
|
13
13
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
14
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
|
|
15
|
+
import './chunk-IVNCUVAV.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-YLMKMCSJ.mjs';
|
|
3
|
-
import { BlockApiProvider, FeedbackMessage, useBlockApi } from './chunk-
|
|
3
|
+
import { BlockApiProvider, FeedbackMessage, useBlockApi } from './chunk-UDNSI5PY.mjs';
|
|
4
4
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
5
|
-
import { defineIslandPropsDecoder, themeButtonClassName,
|
|
6
|
-
import { clsx_default } from './chunk-
|
|
5
|
+
import { defineIslandPropsDecoder, themeButtonClassName, assertNever11, err2, ok } from './chunk-65F47D7Y.mjs';
|
|
6
|
+
import { clsx_default } from './chunk-IVNCUVAV.mjs';
|
|
7
7
|
import { useState, useReducer, useRef } from 'react';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -18,7 +18,7 @@ function formSubmissionReducer(_state, action) {
|
|
|
18
18
|
case "submission-failed":
|
|
19
19
|
return { tag: "failed", message: action.message };
|
|
20
20
|
default:
|
|
21
|
-
return
|
|
21
|
+
return assertNever11(action);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -33,7 +33,7 @@ function useFormSubmission() {
|
|
|
33
33
|
stateRef.current = state;
|
|
34
34
|
const submit = async (data) => {
|
|
35
35
|
if (stateRef.current.tag === "submitting") {
|
|
36
|
-
return
|
|
36
|
+
return err2("Already submitting");
|
|
37
37
|
}
|
|
38
38
|
stateRef.current = { tag: "submitting" };
|
|
39
39
|
dispatch({ type: "submission-started" });
|
|
@@ -46,7 +46,7 @@ function useFormSubmission() {
|
|
|
46
46
|
const message = error instanceof Error ? error.message : "Failed to submit form";
|
|
47
47
|
stateRef.current = { tag: "failed", message };
|
|
48
48
|
dispatch({ type: "submission-failed", message });
|
|
49
|
-
return
|
|
49
|
+
return err2(message);
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
return { submit, state };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCommerceCart } from './chunk-
|
|
2
|
+
import { useCommerceCart } from './chunk-RZDWX7QW.mjs';
|
|
3
3
|
import { resolveDedicatedCheckoutPath, ModalShell } from './chunk-3PEDD5KJ.mjs';
|
|
4
|
-
import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-65F47D7Y.mjs';
|
|
5
|
+
import './chunk-IVNCUVAV.mjs';
|
|
6
6
|
import * as React2 from 'react';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
8
|
import { createRoot } from 'react-dom/client';
|