UNPKG

react-phone-number-input-mui

Version:

Telephone input for React and Material-UI. Fork of catamphetamine awesome work of react-phone-number-input.

24 lines (23 loc) 836 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCountryCodes = getCountryCodes; function getCountryCodes(labels) { // Includes all country codes (excluding "ZZ" for "International"). // // From ISO 3166-1:2006(E/F): // // 8.1.3 User-assigned code elements // // If users need code elements to represent country names not included // in this part of ISO 3166, the series of letters AA, QM to QZ, XA // to XZ, and ZZ, and the series AAA to AAZ, QMA to QZZ, XAA to XZZ, // and ZZA to ZZZ respectively, and the series of numbers 900 to 999 // are available. These users should inform the ISO 3166/MA of such use. // return Object.keys(labels).filter(function (key) { return key.length === 2 && key.toUpperCase() === key && key !== 'ZZ'; }); } //# sourceMappingURL=countries.js.map