UNPKG

@rocketspark/domain-checker

Version:
38 lines (37 loc) 1.22 kB
import { Options } from '../Interfaces/options'; import DomainSearch from './DomainSearch'; import { DomainResponse } from '../Helpers/Fetch'; import { Locale } from '../Interfaces/locale'; export default class PopupContainer { readonly element: HTMLElement; domainSearch: DomainSearch; private readonly domainsElement; private readonly cart; private readonly classNames; private readonly locale; private readonly fetchURL; private heading; private searchResultText; private closeIcon; private domainAlternatives; private domainPreferred; constructor({ element, config: { classNames, fetchURL }, locale }: { element: HTMLElement; config: Options; locale: Locale; }); setLoading(loading: boolean): void; open(): this; close(): this; setHeading(heading: string): this; setPrice(price?: string): this; setCaptionMessage(message: string): this; setDomain(domain: string): this; showSearchAgain(): void; showAndFetchDomainRows(domainDetail: DomainResponse): this; private hideSearchAlternativeRows; private hidePreferredDomain; private resetLoadingUi; private getTemplate; private build; }