import * as lit from 'lit'; import { LitElement, PropertyValues } from 'lit'; import * as lit_html from 'lit-html'; import * as lodash from 'lodash'; import { T as TUrl, b as TNumericId, c as TId, L as LANGUAGES } from '../chunks/utils-BPcZ5h8J.esm.js'; import 'lodash-es/debounce'; import 'lodash-es/isEqual'; type RequiredConfig = { apiKey: string; nonprofitId: TNumericId; userId: TId; }; declare class BeamImpactOverview extends LitElement { static tagName: string; baseUrl: TUrl; apiKey?: RequiredConfig["apiKey"]; storeId?: number; nonprofitId?: RequiredConfig["nonprofitId"]; userId?: RequiredConfig["userId"]; lang: LANGUAGES; debug: boolean; draftConfig: boolean; transactionId?: string; /** * @deprecated (v1.49.0) promoCodes and discountCodes will now be retrieved on the backend using transactionId */ discountCodes?: string[]; get configLang(): LANGUAGES; getImpactData: () => Promise<{ chain: { name: string; logoUrl: string | null; logoLockupUrl?: string | null; communityImpactUrl: string | null; donationTypeName: string | null; matchDonationTypeName: string | null; }; store: { name: string | null; displayName: string | null; communityPageURL: string | null; }; config: { web: { title: string; description: string; promoDescriptionPrefix?: string; promoDescription?: string; confirmButton?: string; confirmedButton?: string; collapsedButton?: string; theme?: { [key: string]: unknown; } | null; nonprofitSelectedHeader?: string; nonprofitUnselectedHeader?: string; dynamicStrings?: { [key: string]: string; } | null; additionalStrings?: { [key: string]: string; } | null; disableAnimation?: boolean; promo?: { "promo-text-long": string; "promo-text-short": string; "promo-cause-alt-text": string; }; }; mobileWeb?: { title: string; description: string; nonprofitSelectedHeader?: string; nonprofitUnselectedHeader?: string; }; mobile: { title: string; description: string; nonprofitSelectedHeader?: string; nonprofitUnselectedHeader?: string; }; enableNonprofitDeselection?: boolean; }; personal: { imageUrl: string | null; nonprofit: { id: number; name: string; cause: string | null; causeIconUrl: string | null; causeIconSelectedUrl: string | null; causeColor: string | null; extensibility?: { causeIconUrl?: string | null; causeIconSelectedUrl?: string | null; causeIconAndBackgroundUrl?: string | null; }; website: string | null; websiteLinkText: string; badge?: string; includeInPersonalImpact?: boolean; }; impact: { description: string | null; goalCompletionText: string; goalProgressText: string; goalProgressPercentage: number; }; share: { imageUrl: string | null; }; filters?: string[]; }[]; community: { imageUrl: string | null; nonprofit: { id: number; name: string; cause: string | null; causeIconUrl: string | null; causeIconSelectedUrl: string | null; causeColor: string | null; extensibility?: { causeIconUrl?: string | null; causeIconSelectedUrl?: string | null; causeIconAndBackgroundUrl?: string | null; }; website: string | null; websiteLinkText: string; badge?: string; includeInPersonalImpact?: boolean; }; impact: { description: string | null; goalCompletionText: string; goalProgressText: string; goalProgressPercentage: number; }; share: { imageUrl: string | null; }; filters?: string[]; }[]; promo: { type?: string; isActive: boolean; multiplier: number | null; } | null; promoAssetUrl: string | null; personalImpactAssetUrl: string | null; settings?: { excludeDonationsForRecurringTransactions: boolean; }; }>; private impactDataController; impactTitleRefs: HTMLElement[]; impactDescriptionRefs: HTMLElement[]; impactLinkRefs: HTMLElement[]; goalCompletionTextRefs: HTMLElement[]; connectedCallback(): void; updated(changedProperties: PropertyValues): Promise; disconnectedCallback(): void; /** * Safari does not fire loading events on the document FontFaceSet, but it does implement the .ready Promise * Call this method to wait for font loads that may be triggered by content changes */ handleFontLoad(callback: () => T | void): Promise; resizeElements: lodash.DebouncedFuncLeading<() => void>; renderCard({ imageUrl, title, percentFunded, goalProgressText, description, urlCopy, impactUrl, isImage, cardType, goalCompletionText, }: { imageUrl: TUrl; title: string; percentFunded: number; goalProgressText: string; description: string; urlCopy?: string; impactUrl: TUrl; isImage: boolean; cardType: string; goalCompletionText?: string; }): lit_html.TemplateResult<1>; render(): "" | lit_html.TemplateResult<1>; get cssVariables(): any; static styles: lit.CSSResult[]; } declare global { interface HTMLElementTagNameMap { "beam-impact-overview": BeamImpactOverview; } } export { BeamImpactOverview };