@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
12 lines (11 loc) • 366 B
JavaScript
import { l as t } from "../../../libphonenumber-_7ZyKWA7.js";
const e = t.PhoneNumberUtil.getInstance(), m = (r) => {
const o = r.code, n = e.getExampleNumber(o);
if (!n)
return;
const a = e.format(n, t.PhoneNumberFormat.NATIONAL), c = `+${e.getCountryCodeForRegion(o)}`, l = a.replace(/\d/g, "_");
return `${c} ${l}`;
};
export {
m as getPhoneMask
};