Files
discord-decomp/modules/phone/PhoneOrEmailUtils.tsx
T
2026-11-01 12:12:55 +02:00

14 lines
441 B
TypeScript

// Metro module 9211 (f9212).
let c6049_0 = {
PHONE: "phone",
EMAIL: "email"
};
let c6049_1 = /^[-() \d]+$/;
export { c6049_0 as PhoneOrEmailSelectorForceMode };
export function shouldShowCountryCodeSelector(a0, a1) {
return a0 === c6049_0.PHONE ? !a1.startsWith("+") : a0 !== c6049_0.EMAIL && (!(a1.length < 3) && c6049_1.test(a1));
}
export function getPhoneOrEmail(a0) {
return /^\+\d/.test(a0) ? c6049_0.PHONE : c6049_0.EMAIL;
}