15815213711
2024-08-26 67b8b6731811983447e053d4396b3708c14dfe3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
'use strict'
 
var metadata = require('../metadata.mobile.json')
var core = require('../core/index.cjs')
 
function call(func, _arguments) {
    var args = Array.prototype.slice.call(_arguments)
    args.push(metadata)
    return func.apply(this, args)
}
 
function parsePhoneNumberFromString() {
    return call(core.parsePhoneNumberFromString, arguments)
}
 
// ES5 `require()` "default" "interoperability" hack.
// https://github.com/babel/babel/issues/2212#issuecomment-131827986
// An alternative approach:
// https://www.npmjs.com/package/babel-plugin-add-module-exports
exports = module.exports = parsePhoneNumberFromString
exports['default'] = parsePhoneNumberFromString
 
exports.ParseError = core.ParseError
 
function parsePhoneNumberWithError() {
    return call(core.parsePhoneNumberWithError, arguments)
}
 
// `parsePhoneNumber()` named export has been renamed to `parsePhoneNumberWithError()`.
exports.parsePhoneNumber = parsePhoneNumberWithError
exports.parsePhoneNumberWithError = parsePhoneNumberWithError
 
// `parsePhoneNumberFromString()` named export is now considered legacy:
// it has been promoted to a default export due to being too verbose.
exports.parsePhoneNumberFromString = parsePhoneNumberFromString
 
exports.isValidPhoneNumber = function isValidPhoneNumber() {
    return call(core.isValidPhoneNumber, arguments)
}
 
exports.isPossiblePhoneNumber = function isPossiblePhoneNumber() {
    return call(core.isPossiblePhoneNumber, arguments)
}
 
exports.validatePhoneNumberLength = function validatePhoneNumberLength() {
    return call(core.validatePhoneNumberLength, arguments)
}
 
exports.findNumbers = function findNumbers() {
    return call(core.findNumbers, arguments)
}
 
exports.searchNumbers = function searchNumbers() {
    return call(core.searchNumbers, arguments)
}
 
exports.findPhoneNumbersInText = function findPhoneNumbersInText() {
    return call(core.findPhoneNumbersInText, arguments)
}
 
exports.searchPhoneNumbersInText = function searchPhoneNumbersInText() {
    return call(core.searchPhoneNumbersInText, arguments)
}
 
exports.PhoneNumberMatcher = function PhoneNumberMatcher(text, options) {
    return core.PhoneNumberMatcher.call(this, text, options, metadata)
}
exports.PhoneNumberMatcher.prototype = Object.create(core.PhoneNumberMatcher.prototype, {})
exports.PhoneNumberMatcher.prototype.constructor = exports.PhoneNumberMatcher
 
exports.AsYouType = function AsYouType(country) {
    return core.AsYouType.call(this, country, metadata)
}
exports.AsYouType.prototype = Object.create(core.AsYouType.prototype, {})
exports.AsYouType.prototype.constructor = exports.AsYouType
 
exports.isSupportedCountry = function isSupportedCountry(country) {
    return call(core.isSupportedCountry, arguments)
}
 
exports.getCountries = function getCountries() {
    return call(core.getCountries, arguments)
}
 
exports.getCountryCallingCode = function getCountryCallingCode() {
    return call(core.getCountryCallingCode, arguments)
}
 
exports.getExtPrefix = function getExtPrefix(country) {
    return call(core.getExtPrefix, arguments)
}
 
exports.getExampleNumber = function getExampleNumber() {
    return call(core.getExampleNumber, arguments)
}
 
exports.formatIncompletePhoneNumber = function formatIncompletePhoneNumber() {
    return call(core.formatIncompletePhoneNumber, arguments)
}
 
exports.parseIncompletePhoneNumber = core.parseIncompletePhoneNumber
exports.parsePhoneNumberCharacter = core.parsePhoneNumberCharacter
exports.parseDigits = core.parseDigits
exports.DIGIT_PLACEHOLDER = core.DIGIT_PLACEHOLDER
 
exports.parseRFC3966 = core.parseRFC3966
exports.formatRFC3966 = core.formatRFC3966