@riverbankcms/sdk 0.127.0 → 0.128.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-BXtfF7tp.mjs → PreviewEditorSidebar-Dbvb7GIr.mjs} +9 -33
- package/dist/{PreviewEditorUI-Dou73Q0K.mjs → PreviewEditorUI-e9O9l20X.mjs} +3 -3
- package/dist/{PreviewQueryProvider-DgFDIwvK.mjs → PreviewQueryProvider-B1kbhaJD.mjs} +1 -1
- package/dist/SdkPreviewModeRuntime-BZHt6e9w.mjs +11006 -0
- package/dist/{SiteChromeCustomizeContext-DZiDBAYu.mjs → SiteChromeCustomizeContext-CvuGbHJX.mjs} +31619 -1483
- package/dist/_dts/ai/src/contracts/proposals.d.ts +288 -36
- package/dist/_dts/api/src/bookingClosures.d.ts +19 -3
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -3
- package/dist/_dts/api/src/bookingRecords.d.ts +0 -13
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/communications.d.ts +2 -1
- package/dist/_dts/api/src/contactFormSummary.d.ts +15 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -5
- package/dist/_dts/api/src/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/footerSettings.d.ts +11 -0
- package/dist/_dts/api/src/index.d.ts +2 -1
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +48 -0
- package/dist/_dts/api/src/participantMessaging.d.ts +5 -3
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +7 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +7 -5
- package/dist/_dts/api/src/siteOperations.d.ts +12 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +3 -2
- package/dist/_dts/blocks/src/client/form.d.ts +1 -0
- package/dist/_dts/blocks/src/client/newsletter-form.d.ts +1 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -8
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +41 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +14 -23
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +109 -23
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +42 -108
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -54
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +26 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +29 -78
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +27 -8
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +21 -0
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +3 -1
- package/dist/_dts/content-editor/src/FooterEngagementEditorFields.d.ts +31 -0
- package/dist/_dts/content-editor/src/FooterEngagementEditorPanel.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +3 -0
- package/dist/_dts/content-editor/src/footerEngagementDraft.d.ts +57 -0
- package/dist/_dts/content-editor/src/footerEngagementEditor.d.ts +11 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +13 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +35 -0
- package/dist/_dts/core/src/footer-arrangement.d.ts +2 -0
- package/dist/_dts/core/src/footer-composition-types.d.ts +118 -0
- package/dist/_dts/core/src/footer-composition.d.ts +7 -116
- package/dist/_dts/core/src/footer-engagement.d.ts +30 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/newsletter-signup-destination.d.ts +38 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +59 -6
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +72 -2
- package/dist/_dts/db/src/schemas/standard-contact.d.ts +114 -0
- package/dist/_dts/preview-next/src/client/blocks/previewBatchLoaderParams.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -4
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -4
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +6 -5
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +9 -0
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +10 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +3 -5
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +15 -3
- package/dist/_dts/sdk/src/client/combineAbortSignals.d.ts +2 -0
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -15
- package/dist/_dts/sdk/src/client/types.d.ts +10 -2
- package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +11 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/event-registration-content.d.ts +16 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -15
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -18
- package/dist/_dts/sdk/src/public-api/teamMemberContracts.d.ts +17 -0
- package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +7 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +8 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +8 -1
- package/dist/_dts/site-commands/src/commands.d.ts +16 -2
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +10 -4
- package/dist/_dts/theme-core/src/header/surfaceRules.d.ts +2 -3
- package/dist/cli/index.mjs +5302 -4628
- package/dist/client/{courseRegistration-DTEYWL6Z.mjs → CourseRegistrationWizard-xRmA7REV.mjs} +329 -49
- package/dist/client/{DiscountCodeDisclosure-BDFRp8Y7.mjs → DiscountCodeDisclosure-B9vriL5C.mjs} +1 -1
- package/dist/client/{EventCombined.client-DJgF1_lf.mjs → EventCombined.client-BgVnVTlz.mjs} +2 -2
- package/dist/client/{EventListing.client-CnWGNjOr.mjs → EventListing.client-CqdsO7jO.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BISs9Bl7.mjs → LeafletStaticMap-CKPxot9M.mjs} +1 -1
- package/dist/client/{StepIndicator-D8gVYkK-.mjs → StepIndicator-DGCYuBJ1.mjs} +2 -2
- package/dist/client/{accordion-DFDajgDz.mjs → accordion-BfN5Eqd-.mjs} +1 -1
- package/dist/client/{bookingForm-Bdqj9-52.mjs → bookingForm-DOvCpBFP.mjs} +5 -5
- package/dist/client/{carousel-Cvqf-kN8.mjs → carousel-DPNmiH0f.mjs} +1 -1
- package/dist/client/{cart-CuH2TJXP.mjs → cart--egVXlrR.mjs} +3 -3
- package/dist/client/{checkout-CMNPpejZ.mjs → checkout-DywWtMcq.mjs} +3 -3
- package/dist/client/client.mjs +4912 -4613
- package/dist/client/courseRegistration-Dk9qFVwt.mjs +46 -0
- package/dist/client/{eventCalendar-BW-XoxZ0.mjs → eventCalendar-Bkz2HjlS.mjs} +4 -4
- package/dist/client/{eventCombined-Bpn7s0y9.mjs → eventCombined-D4kipYWg.mjs} +2 -2
- package/dist/client/{eventDetails-D2uUSTMH.mjs → eventDetails-Dz_5ix2Q.mjs} +56 -35
- package/dist/client/{eventListing-CVr1c094.mjs → eventListing-D0vm-zST.mjs} +2 -2
- package/dist/client/{eventRegistration-Dv4AvkMw.mjs → eventRegistration-Cw1E4Q4p.mjs} +58 -6
- package/dist/client/{form-DxdKf9fs.mjs → form-C2Zf1n3K.mjs} +1 -1
- package/dist/client/{headerSection-BaXI5Sro.mjs → headerSection-CP05gzdc.mjs} +2 -2
- package/dist/client/hooks.mjs +212 -61
- package/dist/client/{locationMap-BEtW2fKz.mjs → locationMap-Cl3x9PYJ.mjs} +2 -2
- package/dist/client/{newsletterForm-BKKs0S4R.mjs → newsletterForm-DyEJoClm.mjs} +26 -20
- package/dist/client/{pricing-ClkqcElA.mjs → pricing-DGuNR1W4.mjs} +1 -1
- package/dist/client/{productDetail-H-ru8dyy.mjs → productDetail-Cq-HrGew.mjs} +3 -3
- package/dist/client/{productList-Buyi5c0C.mjs → productList-DbB3jwqd.mjs} +3 -3
- package/dist/client/{propsDecoder-BF7i6Ijg.mjs → propsDecoder-CiTuhUwY.mjs} +130 -87
- package/dist/client/rendering/client.mjs +416 -208
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +5522 -5237
- package/dist/client/{scrollToBlock-D_7t8yWb.mjs → scrollToBlock-CShkRqab.mjs} +1 -1
- package/dist/client/{shop-CF7SZQNX.mjs → shop-Cu4Ib-ZA.mjs} +5 -5
- package/dist/client/{shop-commerce-DA7_Rq5p.mjs → shop-commerce-BzpsOdh7.mjs} +4 -4
- package/dist/client/{shop-commerce-store-BmLqW7Gh.mjs → shop-commerce-store-DaE7Fhj8.mjs} +1 -1
- package/dist/client/{shopShared-WL-E1znM.mjs → shopShared-cF0c20vB.mjs} +2 -2
- package/dist/client/{useEventFilters-rc8VLeLV.mjs → useEventFilters-QZ3HMgaJ.mjs} +2 -2
- package/dist/client/{usePolling-1ncrfd4S.mjs → usePolling-BKf0GcE-.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/{previewAuthStore-Dev9CdG9.mjs → previewAuthStore-BesgU5Xu.mjs} +1 -1
- package/dist/{sdk-runtime-BnrCCFJq.mjs → sdk-runtime-Cn_QSCOg.mjs} +2 -2
- package/dist/{separator-CFvBx2yl.mjs → separator-CEoGABRc.mjs} +1 -1
- package/dist/server/components.mjs +473 -289
- package/dist/server/config-validation.mjs +209 -61
- package/dist/server/config.mjs +209 -61
- package/dist/server/data.mjs +212 -61
- package/dist/server/index.mjs +40 -16
- package/dist/server/next.mjs +513 -307
- package/dist/server/page-converter.mjs +211 -64
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +475 -282
- package/dist/server/rendering.mjs +482 -290
- package/dist/server/routing.mjs +254 -80
- package/dist/server/server.mjs +252 -77
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-B0HPXr-l.mjs +0 -39546
- package/dist/client/MagicLinkForm-b5E_HoG9.mjs +0 -327
package/dist/server/routing.mjs
CHANGED
|
@@ -2305,7 +2305,16 @@ var init_public_profile = __esmMin((() => {}));
|
|
|
2305
2305
|
//#endregion
|
|
2306
2306
|
//#region ../core/src/rich-text.ts
|
|
2307
2307
|
var init_rich_text = __esmMin((() => {}));
|
|
2308
|
-
|
|
2308
|
+
//#endregion
|
|
2309
|
+
//#region ../core/src/newsletter-signup-destination.ts
|
|
2310
|
+
function parseNewsletterSignupDestinationProvider(value) {
|
|
2311
|
+
return value === "riverbank" || value === "mailchimp" ? value : null;
|
|
2312
|
+
}
|
|
2313
|
+
var init_newsletter_signup_destination$1 = __esmMin((() => {}));
|
|
2314
|
+
//#endregion
|
|
2315
|
+
//#region ../core/src/footer-engagement.ts
|
|
2316
|
+
var init_footer_engagement = __esmMin((() => {}));
|
|
2317
|
+
var init_footer_arrangement = __esmMin((() => {
|
|
2309
2318
|
new Map([
|
|
2310
2319
|
"brand",
|
|
2311
2320
|
"supporting-text",
|
|
@@ -2314,11 +2323,20 @@ var init_footer_composition = __esmMin((() => {
|
|
|
2314
2323
|
"business-address",
|
|
2315
2324
|
"contact",
|
|
2316
2325
|
"opening-hours",
|
|
2326
|
+
"engagement",
|
|
2317
2327
|
"legal-navigation",
|
|
2318
2328
|
"legal"
|
|
2319
2329
|
].map((kind, index) => [kind, index]));
|
|
2320
2330
|
}));
|
|
2321
2331
|
//#endregion
|
|
2332
|
+
//#region ../core/src/footer-composition.ts
|
|
2333
|
+
var init_footer_composition = __esmMin((() => {
|
|
2334
|
+
init_footer_arrangement();
|
|
2335
|
+
}));
|
|
2336
|
+
//#endregion
|
|
2337
|
+
//#region ../core/src/footer-composition-types.ts
|
|
2338
|
+
var init_footer_composition_types = __esmMin((() => {}));
|
|
2339
|
+
//#endregion
|
|
2322
2340
|
//#region ../core/src/number-input.ts
|
|
2323
2341
|
var init_number_input = __esmMin((() => {}));
|
|
2324
2342
|
//#endregion
|
|
@@ -2399,6 +2417,10 @@ var init_src$4 = __esmMin((() => {
|
|
|
2399
2417
|
init_public_profile();
|
|
2400
2418
|
init_rich_text();
|
|
2401
2419
|
init_footer_composition();
|
|
2420
|
+
init_footer_arrangement();
|
|
2421
|
+
init_footer_composition_types();
|
|
2422
|
+
init_footer_engagement();
|
|
2423
|
+
init_newsletter_signup_destination$1();
|
|
2402
2424
|
init_number_input();
|
|
2403
2425
|
init_field_errors();
|
|
2404
2426
|
init_form_submission_preview();
|
|
@@ -22359,6 +22381,7 @@ var init_newsletterForm = __esmMin((() => {
|
|
|
22359
22381
|
}
|
|
22360
22382
|
],
|
|
22361
22383
|
layout: [el$1("newsletter-form", withApiBindings$1({
|
|
22384
|
+
source: "block",
|
|
22362
22385
|
destinationProvider: { $bind: { from: "destinationProvider" } },
|
|
22363
22386
|
listId: { $bind: { from: "listId" } },
|
|
22364
22387
|
preset: { $bind: { from: "preset" } },
|
|
@@ -24649,6 +24672,7 @@ var init_contact_newsletter = __esmMin((() => {
|
|
|
24649
24672
|
as: "h2",
|
|
24650
24673
|
className: "newsletter-copy-title"
|
|
24651
24674
|
}, when("newsletterTitle"), bind$1("newsletterTitle")), richText({ className: "newsletter-copy-subtitle rb-prose rb-max-w-none" }, when("newsletterSubtitle"), bind$1("newsletterSubtitle"))]), el$1("newsletter-form", withApiBindings$1({
|
|
24675
|
+
source: "block",
|
|
24652
24676
|
listId: { $bind: { from: "listId" } },
|
|
24653
24677
|
preset: { $bind: { from: "preset" } },
|
|
24654
24678
|
includePhone: { $bind: { from: "includePhone" } },
|
|
@@ -26664,14 +26688,31 @@ var init_site_footer_nav_groups_layout = __esmMin((() => {
|
|
|
26664
26688
|
}));
|
|
26665
26689
|
//#endregion
|
|
26666
26690
|
//#region ../blocks/src/system/blocks/site-footer.ts
|
|
26667
|
-
var brandLogo, navigation, legalNavigation, address, contact, hours, socials, authoredCopy, footerGroup, footerMainRegion, footerBottomRegion, footerLayout, siteFooterManifest, siteFooterBlockDefinition;
|
|
26691
|
+
var footerStandardContactBindings, footerMailingListBindings, footerSpamProtectionBinding, brandLogo, navigation, legalNavigation, address, contact, hours, socials, authoredCopy, footerEngagement, footerGroup, footerMainRegion, footerEngagementRegion, footerBottomRegion, footerLayout, siteFooterManifest, siteFooterBlockDefinition;
|
|
26668
26692
|
var init_site_footer = __esmMin((() => {
|
|
26669
26693
|
init_fragments$1();
|
|
26670
26694
|
init_builder$1();
|
|
26671
26695
|
init_defineBlock();
|
|
26672
26696
|
init_site_footer_nav_groups_layout();
|
|
26697
|
+
init_api_bindings();
|
|
26673
26698
|
init_colorStyles();
|
|
26674
26699
|
init_surfaces();
|
|
26700
|
+
footerStandardContactBindings = {
|
|
26701
|
+
value: { $bind: { from: "module.engagement.runtime.value" } },
|
|
26702
|
+
submitLabel: { $bind: { from: "module.engagement.runtime.submitLabel" } },
|
|
26703
|
+
successMessage: { $bind: { from: "module.engagement.runtime.successMessage" } }
|
|
26704
|
+
};
|
|
26705
|
+
footerMailingListBindings = {
|
|
26706
|
+
source: { $bind: { from: "module.engagement.runtime.source" } },
|
|
26707
|
+
destinationRef: { $bind: { from: "module.engagement.runtime.destinationRef" } },
|
|
26708
|
+
listId: { $bind: { from: "module.engagement.runtime.listId" } },
|
|
26709
|
+
preset: { $bind: { from: "module.engagement.runtime.preset" } },
|
|
26710
|
+
includePhone: { $bind: { from: "module.engagement.runtime.includePhone" } },
|
|
26711
|
+
buttonLabel: { $bind: { from: "module.engagement.runtime.buttonLabel" } },
|
|
26712
|
+
successMessage: { $bind: { from: "module.engagement.runtime.successMessage" } },
|
|
26713
|
+
privacyNote: { $bind: { from: "module.engagement.runtime.privacyNote" } }
|
|
26714
|
+
};
|
|
26715
|
+
footerSpamProtectionBinding = { spamProtectionEnabled: { $bind: { from: "$root.spamProtectionEnabled" } } };
|
|
26675
26716
|
brandLogo = link({
|
|
26676
26717
|
href: "/",
|
|
26677
26718
|
className: { $bind: {
|
|
@@ -26749,6 +26790,23 @@ var init_site_footer = __esmMin((() => {
|
|
|
26749
26790
|
id: "content.interpolateRichTextTokens",
|
|
26750
26791
|
options: { tokens: ["year", "site_name"] }
|
|
26751
26792
|
}] }));
|
|
26793
|
+
footerEngagement = stack({
|
|
26794
|
+
gap: "md",
|
|
26795
|
+
className: "rb-w-full"
|
|
26796
|
+
}, [
|
|
26797
|
+
text({
|
|
26798
|
+
as: "p",
|
|
26799
|
+
className: "rb-body rb-opacity-80"
|
|
26800
|
+
}, bind$1("module.engagement.intro"), when("module.engagement.intro")),
|
|
26801
|
+
form(withApiBindings$1({
|
|
26802
|
+
...footerStandardContactBindings,
|
|
26803
|
+
...footerSpamProtectionBinding
|
|
26804
|
+
}), [], when("module.engagement.kind", { equals: "standard-contact" })),
|
|
26805
|
+
el$1("newsletter-form", withApiBindings$1({
|
|
26806
|
+
...footerMailingListBindings,
|
|
26807
|
+
...footerSpamProtectionBinding
|
|
26808
|
+
}), [], when("module.engagement.kind", { equals: "mailing-list" }))
|
|
26809
|
+
], when("module.kind", { equals: "engagement" }));
|
|
26752
26810
|
footerGroup = stack({
|
|
26753
26811
|
gap: "md",
|
|
26754
26812
|
align: "stretch",
|
|
@@ -26774,6 +26832,7 @@ var init_site_footer = __esmMin((() => {
|
|
|
26774
26832
|
contact,
|
|
26775
26833
|
hours,
|
|
26776
26834
|
socials,
|
|
26835
|
+
footerEngagement,
|
|
26777
26836
|
stack({ className: "rb-w-full" }, [authoredCopy], when("module.kind", { equals: "supporting-text" })),
|
|
26778
26837
|
stack({ className: "rb-w-full rb-lg-col-span-3" }, [authoredCopy], when("module.kind", { equals: "legal" }))
|
|
26779
26838
|
], repeat("group.modules", "module"))], repeat("region.groups", "group"));
|
|
@@ -26781,6 +26840,10 @@ var init_site_footer = __esmMin((() => {
|
|
|
26781
26840
|
className: { $bind: { from: "region.className" } },
|
|
26782
26841
|
"data-footer-region": { $bind: { from: "region.kind" } }
|
|
26783
26842
|
}, [footerGroup], when("region.kind", { equals: "main" }), repeat("content.footerRuntime.regions", "region"));
|
|
26843
|
+
footerEngagementRegion = stack({
|
|
26844
|
+
className: { $bind: { from: "region.className" } },
|
|
26845
|
+
"data-footer-region": "engagement-row"
|
|
26846
|
+
}, [footerGroup], when("region.kind", { equals: "engagement-row" }), repeat("content.footerRuntime.regions", "region"));
|
|
26784
26847
|
footerBottomRegion = stack({ className: { $bind: {
|
|
26785
26848
|
from: "$root.theme.footer",
|
|
26786
26849
|
transforms: [{ id: "layout.footerBottomBarContainerClass" }],
|
|
@@ -26810,7 +26873,11 @@ var init_site_footer = __esmMin((() => {
|
|
|
26810
26873
|
fallback: mergeStyles(backgroundColorStyle("surface"), surfaceForegroundStyle({ text: "rgb(var(--tb-text))" }), borderColorStyle("border"))
|
|
26811
26874
|
} },
|
|
26812
26875
|
"data-footer-membership": { $bind: { from: "content.footerRuntime.membershipKey" } }
|
|
26813
|
-
}, [
|
|
26876
|
+
}, [
|
|
26877
|
+
footerEngagementRegion,
|
|
26878
|
+
footerMainRegion,
|
|
26879
|
+
footerBottomRegion
|
|
26880
|
+
]);
|
|
26814
26881
|
siteFooterManifest = createBlockManifest({
|
|
26815
26882
|
id: "block.site-footer",
|
|
26816
26883
|
title: "Site Footer",
|
|
@@ -30453,9 +30520,9 @@ var init_shop_shared = __esmMin((() => {
|
|
|
30453
30520
|
}));
|
|
30454
30521
|
//#endregion
|
|
30455
30522
|
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
30456
|
-
var occurrenceContextSchema
|
|
30523
|
+
var occurrenceContextSchema;
|
|
30457
30524
|
var init_event_registration_shared = __esmMin((() => {
|
|
30458
|
-
occurrenceContextSchema
|
|
30525
|
+
occurrenceContextSchema = z$1.object({
|
|
30459
30526
|
id: z$1.string(),
|
|
30460
30527
|
seriesId: z$1.string(),
|
|
30461
30528
|
startsAt: z$1.string(),
|
|
@@ -30919,9 +30986,10 @@ function normalizeEventRegistrationEventInput(value) {
|
|
|
30919
30986
|
function isRecord$7(value) {
|
|
30920
30987
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
30921
30988
|
}
|
|
30922
|
-
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, eventRegistrationPublicEventSchema, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationBlockRuntime;
|
|
30989
|
+
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, eventRegistrationPublicEventSchema, eventRegistrationHydrationSchemaShape, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationBlockRuntime;
|
|
30923
30990
|
var init_event_registration_interactive = __esmMin((() => {
|
|
30924
30991
|
init_schemas();
|
|
30992
|
+
init_schemas$1();
|
|
30925
30993
|
init_shop_shared();
|
|
30926
30994
|
init_event_registration_shared();
|
|
30927
30995
|
init_eventScope();
|
|
@@ -30946,28 +31014,37 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
30946
31014
|
"Payment"
|
|
30947
31015
|
];
|
|
30948
31016
|
eventRegistrationPublicEventSchema = z$1.preprocess(normalizeEventRegistrationEventInput, publicEventSchema);
|
|
30949
|
-
|
|
30950
|
-
|
|
30951
|
-
apiBaseUrl: z$1.string().optional(),
|
|
30952
|
-
portalToken: z$1.string().nullable().optional(),
|
|
30953
|
-
previewToken: z$1.string().nullable().optional(),
|
|
30954
|
-
occurrenceContext: occurrenceContextSchema$1.optional(),
|
|
31017
|
+
eventRegistrationHydrationSchemaShape = {
|
|
31018
|
+
occurrenceContext: occurrenceContextSchema.optional(),
|
|
30955
31019
|
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
30956
31020
|
events: z$1.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
30957
|
-
|
|
30958
|
-
|
|
30959
|
-
maxTickets: z$1.string().
|
|
31021
|
+
wholeSeriesOfferings: publicCoursesArraySchema.nullable().optional(),
|
|
31022
|
+
wholeSeriesOffering: publicCourseSchema.nullable().optional(),
|
|
31023
|
+
maxTickets: z$1.string().optional(),
|
|
30960
31024
|
showVenue: z$1.boolean().optional(),
|
|
30961
31025
|
showCapacity: z$1.boolean().optional(),
|
|
31026
|
+
showSessions: z$1.boolean().optional(),
|
|
31027
|
+
showPrice: z$1.boolean().optional(),
|
|
30962
31028
|
successMessage: z$1.string().optional(),
|
|
30963
31029
|
waitlistMessage: z$1.string().optional(),
|
|
31030
|
+
membershipMessage: z$1.string().optional(),
|
|
30964
31031
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
30965
31032
|
overlayEnabled: z$1.boolean().optional(),
|
|
30966
31033
|
spamProtectionEnabled: z$1.boolean().optional(),
|
|
30967
|
-
stage: previewStageSchema.optional(),
|
|
30968
31034
|
supportEmail: z$1.string().optional(),
|
|
30969
31035
|
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
30970
31036
|
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
|
|
31037
|
+
};
|
|
31038
|
+
eventRegistrationSourceSchema = z$1.object({
|
|
31039
|
+
siteId: z$1.string().optional(),
|
|
31040
|
+
apiBaseUrl: z$1.string().optional(),
|
|
31041
|
+
portalToken: z$1.string().nullable().optional(),
|
|
31042
|
+
previewToken: z$1.string().nullable().optional(),
|
|
31043
|
+
...eventRegistrationHydrationSchemaShape,
|
|
31044
|
+
className: z$1.string().nullable().optional(),
|
|
31045
|
+
buttonText: z$1.string().nullable().optional(),
|
|
31046
|
+
maxTickets: z$1.string().nullable().optional(),
|
|
31047
|
+
stage: previewStageSchema.optional()
|
|
30971
31048
|
});
|
|
30972
31049
|
eventRegistrationDisplaySchema = z$1.object({
|
|
30973
31050
|
kind: z$1.literal("event-registration"),
|
|
@@ -30978,22 +31055,7 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
30978
31055
|
stepLabels: z$1.array(z$1.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
30979
31056
|
summaryButtonText: z$1.string()
|
|
30980
31057
|
});
|
|
30981
|
-
eventRegistrationHydrationSchema = z$1.object(
|
|
30982
|
-
occurrenceContext: occurrenceContextSchema$1.optional(),
|
|
30983
|
-
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
30984
|
-
events: z$1.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
30985
|
-
maxTickets: z$1.string().optional(),
|
|
30986
|
-
showVenue: z$1.boolean().optional(),
|
|
30987
|
-
showCapacity: z$1.boolean().optional(),
|
|
30988
|
-
successMessage: z$1.string().optional(),
|
|
30989
|
-
waitlistMessage: z$1.string().optional(),
|
|
30990
|
-
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
30991
|
-
overlayEnabled: z$1.boolean().optional(),
|
|
30992
|
-
spamProtectionEnabled: z$1.boolean().optional(),
|
|
30993
|
-
supportEmail: z$1.string().optional(),
|
|
30994
|
-
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
30995
|
-
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
|
|
30996
|
-
});
|
|
31058
|
+
eventRegistrationHydrationSchema = z$1.object(eventRegistrationHydrationSchemaShape);
|
|
30997
31059
|
eventRegistrationRenderSchema = z$1.object({
|
|
30998
31060
|
display: eventRegistrationDisplaySchema,
|
|
30999
31061
|
hydration: eventRegistrationHydrationSchema
|
|
@@ -31017,11 +31079,16 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
31017
31079
|
occurrenceContext: source.occurrenceContext ?? null,
|
|
31018
31080
|
subject: source.subject ?? null,
|
|
31019
31081
|
events: source.events ?? null,
|
|
31082
|
+
wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
|
|
31083
|
+
wholeSeriesOffering: source.wholeSeriesOffering ?? null,
|
|
31020
31084
|
maxTickets: source.maxTickets ?? void 0,
|
|
31021
31085
|
showVenue: source.showVenue,
|
|
31022
31086
|
showCapacity: source.showCapacity,
|
|
31087
|
+
showSessions: source.showSessions,
|
|
31088
|
+
showPrice: source.showPrice,
|
|
31023
31089
|
successMessage: source.successMessage,
|
|
31024
31090
|
waitlistMessage: source.waitlistMessage,
|
|
31091
|
+
membershipMessage: source.membershipMessage,
|
|
31025
31092
|
buttonVariant: source.buttonVariant,
|
|
31026
31093
|
overlayEnabled: source.overlayEnabled,
|
|
31027
31094
|
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
@@ -31033,6 +31100,19 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
31033
31100
|
});
|
|
31034
31101
|
}));
|
|
31035
31102
|
//#endregion
|
|
31103
|
+
//#region ../blocks/src/system/blocks/courses/shared/types.ts
|
|
31104
|
+
var init_types$2 = __esmMin((() => {}));
|
|
31105
|
+
//#endregion
|
|
31106
|
+
//#region ../blocks/src/system/blocks/courses/shared/pricing.ts
|
|
31107
|
+
var init_pricing = __esmMin((() => {}));
|
|
31108
|
+
//#endregion
|
|
31109
|
+
//#region ../blocks/src/system/blocks/courses/shared/index.ts
|
|
31110
|
+
var init_shared$2 = __esmMin((() => {
|
|
31111
|
+
init_types$2();
|
|
31112
|
+
init_schemas$1();
|
|
31113
|
+
init_pricing();
|
|
31114
|
+
}));
|
|
31115
|
+
//#endregion
|
|
31036
31116
|
//#region ../blocks/src/system/blocks/event-registration.ts
|
|
31037
31117
|
var eventRegistrationManifest, eventRegistrationBlockDefinition;
|
|
31038
31118
|
var init_event_registration = __esmMin((() => {
|
|
@@ -31046,6 +31126,7 @@ var init_event_registration = __esmMin((() => {
|
|
|
31046
31126
|
init_defineBlock();
|
|
31047
31127
|
init_event_registration_shared();
|
|
31048
31128
|
init_event_registration_interactive();
|
|
31129
|
+
init_shared$2();
|
|
31049
31130
|
eventRegistrationManifest = createBlockManifest({
|
|
31050
31131
|
id: "block.event-registration",
|
|
31051
31132
|
version: "1.0.0",
|
|
@@ -31140,6 +31221,24 @@ var init_event_registration = __esmMin((() => {
|
|
|
31140
31221
|
defaultValue: true,
|
|
31141
31222
|
ui: { intent: "display" }
|
|
31142
31223
|
},
|
|
31224
|
+
{
|
|
31225
|
+
id: "showSessions",
|
|
31226
|
+
type: "boolean",
|
|
31227
|
+
label: "Show complete schedule",
|
|
31228
|
+
description: "Display every session for whole-series registrations",
|
|
31229
|
+
required: false,
|
|
31230
|
+
defaultValue: true,
|
|
31231
|
+
ui: { intent: "display" }
|
|
31232
|
+
},
|
|
31233
|
+
{
|
|
31234
|
+
id: "showPrice",
|
|
31235
|
+
type: "boolean",
|
|
31236
|
+
label: "Show price",
|
|
31237
|
+
description: "Display the whole-series price",
|
|
31238
|
+
required: false,
|
|
31239
|
+
defaultValue: true,
|
|
31240
|
+
ui: { intent: "display" }
|
|
31241
|
+
},
|
|
31143
31242
|
{
|
|
31144
31243
|
id: "successMessage",
|
|
31145
31244
|
type: "text",
|
|
@@ -31150,6 +31249,26 @@ var init_event_registration = __esmMin((() => {
|
|
|
31150
31249
|
defaultValue: "Thank you for registering! Check your email for confirmation details.",
|
|
31151
31250
|
maxLength: 500
|
|
31152
31251
|
},
|
|
31252
|
+
{
|
|
31253
|
+
id: "waitlistMessage",
|
|
31254
|
+
type: "text",
|
|
31255
|
+
label: "Waitlist message",
|
|
31256
|
+
description: "Message shown after joining a whole-series waitlist",
|
|
31257
|
+
required: false,
|
|
31258
|
+
multiline: true,
|
|
31259
|
+
defaultValue: "You've been added to the waitlist. We'll email you if a place becomes available.",
|
|
31260
|
+
maxLength: 500
|
|
31261
|
+
},
|
|
31262
|
+
{
|
|
31263
|
+
id: "membershipMessage",
|
|
31264
|
+
type: "text",
|
|
31265
|
+
label: "Membership registration message",
|
|
31266
|
+
description: "Message shown when a whole-series place is covered by membership",
|
|
31267
|
+
required: false,
|
|
31268
|
+
multiline: true,
|
|
31269
|
+
defaultValue: "Registered using your membership. Check your email for session details.",
|
|
31270
|
+
maxLength: 500
|
|
31271
|
+
},
|
|
31153
31272
|
{
|
|
31154
31273
|
id: "buttonText",
|
|
31155
31274
|
type: "text",
|
|
@@ -31181,8 +31300,11 @@ var init_event_registration = __esmMin((() => {
|
|
|
31181
31300
|
} },
|
|
31182
31301
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
31183
31302
|
showCapacity: { $bind: { from: "content.showCapacity" } },
|
|
31303
|
+
showSessions: { $bind: { from: "content.showSessions" } },
|
|
31304
|
+
showPrice: { $bind: { from: "content.showPrice" } },
|
|
31184
31305
|
successMessage: { $bind: { from: "content.successMessage" } },
|
|
31185
31306
|
waitlistMessage: { $bind: { from: "content.waitlistMessage" } },
|
|
31307
|
+
membershipMessage: { $bind: { from: "content.membershipMessage" } },
|
|
31186
31308
|
buttonText: { $bind: {
|
|
31187
31309
|
from: "content.buttonText",
|
|
31188
31310
|
fallback: "Complete Registration"
|
|
@@ -31196,6 +31318,7 @@ var init_event_registration = __esmMin((() => {
|
|
|
31196
31318
|
fallback: false
|
|
31197
31319
|
} },
|
|
31198
31320
|
events: { $bind: { from: "data.events" } },
|
|
31321
|
+
wholeSeriesOffering: { $bind: { from: "data.wholeSeriesOffering.offering" } },
|
|
31199
31322
|
sitePasses: { $bind: { from: "data.sitePasses" } },
|
|
31200
31323
|
siteMemberships: { $bind: { from: "data.siteMemberships" } },
|
|
31201
31324
|
stage: { $bind: {
|
|
@@ -31211,9 +31334,10 @@ var init_event_registration = __esmMin((() => {
|
|
|
31211
31334
|
runtime: eventRegistrationBlockRuntime,
|
|
31212
31335
|
dataSchemas: {
|
|
31213
31336
|
events: publicEventsArraySchema.optional(),
|
|
31337
|
+
wholeSeriesOffering: z$1.object({ offering: publicCourseSchema }).optional(),
|
|
31214
31338
|
sitePasses: publicPassProductCollectionSchema.optional(),
|
|
31215
31339
|
siteMemberships: publicMembershipProductCollectionSchema.optional(),
|
|
31216
|
-
occurrenceContext: occurrenceContextSchema
|
|
31340
|
+
occurrenceContext: occurrenceContextSchema.optional()
|
|
31217
31341
|
},
|
|
31218
31342
|
dataLoaders: {
|
|
31219
31343
|
events: {
|
|
@@ -31226,11 +31350,23 @@ var init_event_registration = __esmMin((() => {
|
|
|
31226
31350
|
fallback: "published"
|
|
31227
31351
|
} },
|
|
31228
31352
|
readProfile: "registration",
|
|
31229
|
-
seriesId: { $bind: { from: "$root.
|
|
31353
|
+
seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
|
|
31230
31354
|
includeOccurrenceId: { $bind: { from: "$root.occurrenceContext.id" } }
|
|
31231
31355
|
},
|
|
31232
31356
|
mode: "server"
|
|
31233
31357
|
},
|
|
31358
|
+
wholeSeriesOffering: {
|
|
31359
|
+
endpoint: "getPublicWholeSeriesOffering",
|
|
31360
|
+
params: {
|
|
31361
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
31362
|
+
eventSeriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
|
|
31363
|
+
stage: { $bind: {
|
|
31364
|
+
from: "$root.previewStage",
|
|
31365
|
+
fallback: "published"
|
|
31366
|
+
} }
|
|
31367
|
+
},
|
|
31368
|
+
mode: "server"
|
|
31369
|
+
},
|
|
31234
31370
|
sitePasses: {
|
|
31235
31371
|
endpoint: "listPublicPasses",
|
|
31236
31372
|
params: { siteId: { $bind: { from: "$root.siteId" } } },
|
|
@@ -31245,19 +31381,6 @@ var init_event_registration = __esmMin((() => {
|
|
|
31245
31381
|
};
|
|
31246
31382
|
}));
|
|
31247
31383
|
//#endregion
|
|
31248
|
-
//#region ../blocks/src/system/blocks/courses/shared/types.ts
|
|
31249
|
-
var init_types$2 = __esmMin((() => {}));
|
|
31250
|
-
//#endregion
|
|
31251
|
-
//#region ../blocks/src/system/blocks/courses/shared/pricing.ts
|
|
31252
|
-
var init_pricing = __esmMin((() => {}));
|
|
31253
|
-
//#endregion
|
|
31254
|
-
//#region ../blocks/src/system/blocks/courses/shared/index.ts
|
|
31255
|
-
var init_shared$2 = __esmMin((() => {
|
|
31256
|
-
init_types$2();
|
|
31257
|
-
init_schemas$1();
|
|
31258
|
-
init_pricing();
|
|
31259
|
-
}));
|
|
31260
|
-
//#endregion
|
|
31261
31384
|
//#region ../blocks/src/system/runtime/nodes/course-registration.interactive.ts
|
|
31262
31385
|
function buildCourseRegistrationDisplay(source) {
|
|
31263
31386
|
return {
|
|
@@ -31537,7 +31660,7 @@ var init_course_registration = __esmMin((() => {
|
|
|
31537
31660
|
}));
|
|
31538
31661
|
//#endregion
|
|
31539
31662
|
//#region ../blocks/src/system/blocks/event-details.ts
|
|
31540
|
-
var eventDetailsManifest,
|
|
31663
|
+
var eventDetailsManifest, eventAutoApplyDiscountPreviewBaseSchema, eventAutoApplyDiscountPreviewSchema, eventDetailsBlockDefinition;
|
|
31541
31664
|
var init_event_details = __esmMin((() => {
|
|
31542
31665
|
init_builder$1();
|
|
31543
31666
|
init_styledSection();
|
|
@@ -31545,6 +31668,7 @@ var init_event_details = __esmMin((() => {
|
|
|
31545
31668
|
init_shared$3();
|
|
31546
31669
|
init_shop_shared();
|
|
31547
31670
|
init_defineBlock();
|
|
31671
|
+
init_event_registration_shared();
|
|
31548
31672
|
eventDetailsManifest = createBlockManifest({
|
|
31549
31673
|
id: "block.event-details",
|
|
31550
31674
|
version: "1.0.0",
|
|
@@ -31699,15 +31823,6 @@ var init_event_details = __esmMin((() => {
|
|
|
31699
31823
|
})], { gap: "lg" })
|
|
31700
31824
|
})]
|
|
31701
31825
|
});
|
|
31702
|
-
occurrenceContextSchema = z$1.object({
|
|
31703
|
-
id: z$1.string(),
|
|
31704
|
-
seriesId: z$1.string(),
|
|
31705
|
-
startsAt: z$1.string(),
|
|
31706
|
-
endsAt: z$1.string(),
|
|
31707
|
-
timeZone: z$1.string(),
|
|
31708
|
-
capacityOverride: z$1.number().nullable().optional(),
|
|
31709
|
-
overrides: z$1.record(z$1.string(), z$1.unknown()).nullable().optional()
|
|
31710
|
-
}).nullable();
|
|
31711
31826
|
eventAutoApplyDiscountPreviewBaseSchema = z$1.object({
|
|
31712
31827
|
id: z$1.string(),
|
|
31713
31828
|
publicLabel: z$1.string(),
|
|
@@ -31742,8 +31857,9 @@ var init_event_details = __esmMin((() => {
|
|
|
31742
31857
|
from: "$root.previewStage",
|
|
31743
31858
|
fallback: "published"
|
|
31744
31859
|
} },
|
|
31745
|
-
limit: "
|
|
31746
|
-
|
|
31860
|
+
limit: "100",
|
|
31861
|
+
readProfile: "details",
|
|
31862
|
+
seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
|
|
31747
31863
|
includeOccurrenceId: { $bind: { from: "$root.occurrenceContext.id" } }
|
|
31748
31864
|
},
|
|
31749
31865
|
mode: "server"
|
|
@@ -38159,9 +38275,6 @@ function parseSignedNewsletterDestinationRef(value) {
|
|
|
38159
38275
|
const trimmed = parseTrimmedString(value);
|
|
38160
38276
|
return trimmed && SIGNED_DESTINATION_REF_PATTERN.test(trimmed) ? trimmed : null;
|
|
38161
38277
|
}
|
|
38162
|
-
function parseNewsletterSignupDestinationProvider(value) {
|
|
38163
|
-
return value === "riverbank" || value === "mailchimp" ? value : null;
|
|
38164
|
-
}
|
|
38165
38278
|
function buildNewsletterSignupBlockRef(blockId) {
|
|
38166
38279
|
const parsed = parseNewsletterSignupBlockId(blockId);
|
|
38167
38280
|
return parsed ? {
|
|
@@ -38222,6 +38335,7 @@ function isRecord$4(value) {
|
|
|
38222
38335
|
}
|
|
38223
38336
|
var BLOCK_ID_PATTERN, SIGNED_DESTINATION_REF_PATTERN;
|
|
38224
38337
|
var init_newsletter_signup_destination = __esmMin((() => {
|
|
38338
|
+
init_src$4();
|
|
38225
38339
|
BLOCK_ID_PATTERN = /^[A-Za-z0-9._:-]{1,200}$/;
|
|
38226
38340
|
SIGNED_DESTINATION_REF_PATTERN = /^[A-Za-z0-9._~-]{16,1000}$/;
|
|
38227
38341
|
}));
|
|
@@ -38328,6 +38442,30 @@ function buildNewsletterDisplay(source) {
|
|
|
38328
38442
|
fields: getPresetFields(preset, { includePhone })
|
|
38329
38443
|
};
|
|
38330
38444
|
}
|
|
38445
|
+
function projectNewsletterFormHydrationTarget(source) {
|
|
38446
|
+
switch (source.source) {
|
|
38447
|
+
case "block": {
|
|
38448
|
+
const destinationRef = buildNewsletterSignupBlockRef(source.blockId);
|
|
38449
|
+
if (destinationRef?.tag === "block_ref") return {
|
|
38450
|
+
tag: "block-source",
|
|
38451
|
+
destinationRef
|
|
38452
|
+
};
|
|
38453
|
+
return {
|
|
38454
|
+
tag: "legacy-direct-list",
|
|
38455
|
+
listId: source.listId ?? null
|
|
38456
|
+
};
|
|
38457
|
+
}
|
|
38458
|
+
case "signed-footer": return {
|
|
38459
|
+
tag: "signed-footer-source",
|
|
38460
|
+
destinationRef: source.destinationRef
|
|
38461
|
+
};
|
|
38462
|
+
case "legacy-direct-list": return {
|
|
38463
|
+
tag: "legacy-direct-list",
|
|
38464
|
+
listId: source.listId
|
|
38465
|
+
};
|
|
38466
|
+
default: return assertNever$3(source);
|
|
38467
|
+
}
|
|
38468
|
+
}
|
|
38331
38469
|
function parseRequiredNewsletterSignupBlockId(value) {
|
|
38332
38470
|
const parsed = parseNewsletterSignupBlockId(value);
|
|
38333
38471
|
if (!parsed) throw new Error("Newsletter signup block destination ref requires blockId");
|
|
@@ -38338,8 +38476,9 @@ function parseRequiredSignedNewsletterDestinationRef(value) {
|
|
|
38338
38476
|
if (!parsed) throw new Error("Newsletter signup signed destination ref requires token");
|
|
38339
38477
|
return parsed;
|
|
38340
38478
|
}
|
|
38341
|
-
var newsletterPresetSchema, newsletterDestinationProviderSchema, newsletterButtonVariantSchema, newsletterFieldSchema, newsletterSignupBlockIdSchema, signedNewsletterDestinationRefSchema,
|
|
38479
|
+
var newsletterPresetSchema, newsletterDestinationProviderSchema, newsletterButtonVariantSchema, newsletterFieldSchema, newsletterSignupBlockIdSchema, signedNewsletterDestinationRefSchema, newsletterSourceCommonSchema, newsletterSourceSchema, newsletterDisplaySchema, newsletterHydrationSchema, newsletterRenderSchema, newsletterFormBlockRuntime;
|
|
38342
38480
|
var init_newsletter_form_interactive = __esmMin((() => {
|
|
38481
|
+
init_src$4();
|
|
38343
38482
|
init_islands();
|
|
38344
38483
|
init_runtime$1();
|
|
38345
38484
|
init_newsletter_signup_destination();
|
|
@@ -38362,19 +38501,9 @@ var init_newsletter_form_interactive = __esmMin((() => {
|
|
|
38362
38501
|
});
|
|
38363
38502
|
newsletterSignupBlockIdSchema = z$1.string().trim().min(1).transform(parseRequiredNewsletterSignupBlockId);
|
|
38364
38503
|
signedNewsletterDestinationRefSchema = z$1.string().trim().min(1).transform(parseRequiredSignedNewsletterDestinationRef);
|
|
38365
|
-
|
|
38366
|
-
tag: z$1.literal("block_ref"),
|
|
38367
|
-
blockId: newsletterSignupBlockIdSchema
|
|
38368
|
-
}), z$1.object({
|
|
38369
|
-
tag: z$1.literal("signed_destination_ref"),
|
|
38370
|
-
token: signedNewsletterDestinationRefSchema
|
|
38371
|
-
})]);
|
|
38372
|
-
newsletterSourceSchema = z$1.object({
|
|
38373
|
-
blockId: z$1.string().nullable().optional(),
|
|
38504
|
+
newsletterSourceCommonSchema = z$1.object({
|
|
38374
38505
|
siteId: z$1.string().optional(),
|
|
38375
38506
|
apiBaseUrl: z$1.string().optional(),
|
|
38376
|
-
listId: z$1.string().nullable().optional(),
|
|
38377
|
-
destinationProvider: newsletterDestinationProviderSchema.nullable().optional(),
|
|
38378
38507
|
preset: newsletterPresetSchema.optional(),
|
|
38379
38508
|
includePhone: z$1.boolean().optional(),
|
|
38380
38509
|
buttonLabel: z$1.string().nullable().optional(),
|
|
@@ -38385,6 +38514,25 @@ var init_newsletter_form_interactive = __esmMin((() => {
|
|
|
38385
38514
|
spamProtectionEnabled: z$1.boolean().optional(),
|
|
38386
38515
|
className: z$1.string().nullable().optional()
|
|
38387
38516
|
});
|
|
38517
|
+
newsletterSourceSchema = z$1.discriminatedUnion("source", [
|
|
38518
|
+
newsletterSourceCommonSchema.extend({
|
|
38519
|
+
source: z$1.literal("block"),
|
|
38520
|
+
blockId: z$1.string().nullable().optional(),
|
|
38521
|
+
listId: z$1.string().nullable().optional(),
|
|
38522
|
+
destinationProvider: newsletterDestinationProviderSchema.nullable().optional()
|
|
38523
|
+
}),
|
|
38524
|
+
newsletterSourceCommonSchema.extend({
|
|
38525
|
+
source: z$1.literal("signed-footer"),
|
|
38526
|
+
destinationRef: z$1.object({
|
|
38527
|
+
tag: z$1.literal("signed_destination_ref"),
|
|
38528
|
+
token: signedNewsletterDestinationRefSchema
|
|
38529
|
+
})
|
|
38530
|
+
}),
|
|
38531
|
+
newsletterSourceCommonSchema.extend({
|
|
38532
|
+
source: z$1.literal("legacy-direct-list"),
|
|
38533
|
+
listId: z$1.string().nullable()
|
|
38534
|
+
})
|
|
38535
|
+
]);
|
|
38388
38536
|
newsletterDisplaySchema = z$1.object({
|
|
38389
38537
|
kind: z$1.literal("newsletter-form"),
|
|
38390
38538
|
className: z$1.string().nullable(),
|
|
@@ -38395,8 +38543,26 @@ var init_newsletter_form_interactive = __esmMin((() => {
|
|
|
38395
38543
|
fields: z$1.array(newsletterFieldSchema)
|
|
38396
38544
|
});
|
|
38397
38545
|
newsletterHydrationSchema = z$1.object({
|
|
38398
|
-
|
|
38399
|
-
|
|
38546
|
+
target: z$1.discriminatedUnion("tag", [
|
|
38547
|
+
z$1.object({
|
|
38548
|
+
tag: z$1.literal("block-source"),
|
|
38549
|
+
destinationRef: z$1.object({
|
|
38550
|
+
tag: z$1.literal("block_ref"),
|
|
38551
|
+
blockId: newsletterSignupBlockIdSchema
|
|
38552
|
+
}).nullable()
|
|
38553
|
+
}),
|
|
38554
|
+
z$1.object({
|
|
38555
|
+
tag: z$1.literal("signed-footer-source"),
|
|
38556
|
+
destinationRef: z$1.object({
|
|
38557
|
+
tag: z$1.literal("signed_destination_ref"),
|
|
38558
|
+
token: signedNewsletterDestinationRefSchema
|
|
38559
|
+
})
|
|
38560
|
+
}),
|
|
38561
|
+
z$1.object({
|
|
38562
|
+
tag: z$1.literal("legacy-direct-list"),
|
|
38563
|
+
listId: z$1.string().nullable()
|
|
38564
|
+
})
|
|
38565
|
+
]),
|
|
38400
38566
|
preset: newsletterPresetSchema,
|
|
38401
38567
|
includePhone: z$1.boolean(),
|
|
38402
38568
|
tags: z$1.string().nullable().optional(),
|
|
@@ -38417,15 +38583,14 @@ var init_newsletter_form_interactive = __esmMin((() => {
|
|
|
38417
38583
|
render: createZodCodec(newsletterRenderSchema)
|
|
38418
38584
|
},
|
|
38419
38585
|
buildRender: (source) => {
|
|
38420
|
-
const runtimeSource = deriveNewsletterSignupRuntimeSource(source);
|
|
38586
|
+
const runtimeSource = source.source === "block" ? deriveNewsletterSignupRuntimeSource(source) : null;
|
|
38421
38587
|
return {
|
|
38422
38588
|
display: buildNewsletterDisplay(source),
|
|
38423
38589
|
hydration: {
|
|
38424
|
-
|
|
38425
|
-
listId: runtimeSource.listId,
|
|
38590
|
+
target: projectNewsletterFormHydrationTarget(source),
|
|
38426
38591
|
preset: source.preset ?? "emailOnly",
|
|
38427
38592
|
includePhone: source.includePhone ?? false,
|
|
38428
|
-
tags: runtimeSource.tags,
|
|
38593
|
+
tags: runtimeSource ? runtimeSource.tags : source.tags,
|
|
38429
38594
|
spamProtectionEnabled: source.spamProtectionEnabled
|
|
38430
38595
|
}
|
|
38431
38596
|
};
|
|
@@ -41344,6 +41509,7 @@ var init_loaderEndpoints = __esmMin((() => {
|
|
|
41344
41509
|
"listPublicRecurringSchedule",
|
|
41345
41510
|
"getPublicEventDetails",
|
|
41346
41511
|
"listPublicWholeSeriesOfferings",
|
|
41512
|
+
"getPublicWholeSeriesOffering",
|
|
41347
41513
|
"listPublicRouteCandidates",
|
|
41348
41514
|
"listPublicTeamMembers",
|
|
41349
41515
|
"listPublicProducts",
|
|
@@ -42847,6 +43013,13 @@ async function listPublicEvents({ client, params }) {
|
|
|
42847
43013
|
async function listPublicRecurringSchedule(input) {
|
|
42848
43014
|
return projectRecurringSchedule(await listPublicEvents(input));
|
|
42849
43015
|
}
|
|
43016
|
+
async function getPublicWholeSeriesOffering({ client, params }) {
|
|
43017
|
+
return await client.getPublicWholeSeriesOffering({
|
|
43018
|
+
siteId: requireStringParam(params, "siteId", "getPublicWholeSeriesOffering"),
|
|
43019
|
+
eventSeriesId: requireStringParam(params, "eventSeriesId", "getPublicWholeSeriesOffering"),
|
|
43020
|
+
stage: readStringParam(params, "stage")
|
|
43021
|
+
});
|
|
43022
|
+
}
|
|
42850
43023
|
async function getPublicEventDetails({ client, params }) {
|
|
42851
43024
|
return await client.getPublicEventDetails({
|
|
42852
43025
|
siteId: requireStringParam(params, "siteId", "getPublicEventDetails"),
|
|
@@ -43012,6 +43185,7 @@ var init_prefetchBlockData = __esmMin((() => {
|
|
|
43012
43185
|
listPublicEvents,
|
|
43013
43186
|
listPublicRecurringSchedule,
|
|
43014
43187
|
getPublicEventDetails,
|
|
43188
|
+
getPublicWholeSeriesOffering,
|
|
43015
43189
|
listPublicRouteCandidates,
|
|
43016
43190
|
listPublicTeamMembers,
|
|
43017
43191
|
listPublicProducts,
|