@hhgtech/hhg-components
Version:
Hello Health Group common components
90 lines (89 loc) • 2.38 kB
TypeScript
import { UserInfo } from "../types";
import { LeadGenBlock } from "./LeadGenForm";
export declare const LEADGEN_ACTIONS: {
SHOW: string;
SCROLL: string;
TIME: string;
};
export declare const LEADGEN_LAYOUT: {
LightBoxA: string;
LightBoxB: string;
SkinA: string;
SkinB: string;
Floating: string;
Tab: string;
InlineA: string;
InlineB: string;
CenterTab: string;
Sidebar: string;
Fullscreen: string;
Slider: string;
};
export declare const LEADGEN_BLOCK: {
TextBlock: string;
NumberBlock: string;
DateBlock: string;
EmailBlock: string;
PhoneBlock: string;
PhoneOtpBlock: string;
WhatsappOtpBlock: string;
ZaloOtpBlock: string;
LocationBlock: string;
LinkButtonBlock: string;
RadioBlock: string;
DropdownBlock: string;
CheckboxBlock: string;
TncBlock: string;
TitleBlock: string;
SubtitleBlock: string;
};
export declare const LEADGEN_CONTROL: {
[x: string]: string;
};
export declare const LEADGEN_BLOCK_INPUT: string[];
export declare const leadGenFieldNamePhone: (listBlockAdded: LeadGenBlock[]) => string[];
export declare const SSO_MAP_LEAD: string[];
export declare const LEAD_LOCALE_DATA: {
'vi-VN': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'id-ID': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'th-TH': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'ms-MY': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'zh-TW': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'km-KH': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'my-MM': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
'hi-IN': {
popupLang: string;
countryCode: string;
countryCodeNumber: number;
};
};
export declare const mappingSSOToLead: (userInfoProps?: UserInfo | null) => Record<string, any>;
export declare const formatCampaignDetail: (campaign?: any) => any;