import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { AvatarStyleOverride } from '@pv-frontend/pv-shared-components/avatar'; import { ButtonVariant } from '@pv-frontend/pv-shared-components/button'; import { CardStyleOverrideConfig, CardType, CardInformation, CardRibbonInput, CardBannerInput, CardFooterIconInput } from './card.types'; import * as i0 from "@angular/core"; export declare class CardComponent implements OnChanges { style?: CardStyleOverrideConfig; styleClass: string; cardType: CardType; title: string; subTitle: string; offerImage?: string; defaultImage: string; logo?: string; /** * For logo, we need to show label as well */ logoLabel: string; /** * This is mainly around pricing, AR and helping what to show in footer area */ information: CardInformation; cardRibbon: CardRibbonInput | null; cardBanner: CardBannerInput | null; /** * The object you can pass to the card component. * * This object will be passed back on the click events in case it is needed for consumption. * * This can be leveraged for analytics use cases. */ metaInformation?: unknown | null | undefined; actionButtonLabel: string; footerText?: string; cardClickHandler: EventEmitter; actionButtonClickHandler: EventEmitter; analyticsEnabledForCard: boolean; labelForAnalyticsCard: string; analyticsEnabledForCardButton: boolean; labelForAnalyticsCardButton: string; /** * Some offers/GC/subs might be claimable via points itself * This can be kettocoins or similar for other issuers */ pointsNeededToGetBenefit?: number; logoForPoints?: string; /** * Used only for v1 variant */ footerIcon?: CardFooterIconInput; /** * Used for showing 'live in' and 'ends in' * Pass startTime & endTime if props has date with time else pass startDate & endDate */ set startTime(startTime: string | undefined); set endTime(endTime: string | undefined); set startDate(startDate: string | undefined); set endDate(endDate: string | undefined); showSuffix?: boolean; showAvailabilityTime?: boolean; expiredDateFormat?: string; isLoading: boolean; buttonVariant: ButtonVariant; eagerLoadImage: boolean; hideAvatar?: boolean; /** * Used only for v3 variant */ v3VariantAvatarStyleOverride: AvatarStyleOverride; isLive: boolean; availabilityValue?: number; isExpired: boolean; FOOTER_ICON_POSITION: { readonly START: "start"; readonly END: "end"; }; private _benefitStartTime; private _benefitEndTime; ngOnChanges(changes: SimpleChanges): void; get benefitStartTime(): Date; private set benefitStartTime(value); get benefitEndTime(): Date; private set benefitEndTime(value); private calculateAvailabilityTime; private checkOfferAvailability; handleCardClick(event: Event): void; handleActionButtonClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=card.component.d.ts.map