'use strict' var metadata = require('libphonenumber-js/min/metadata') var core = require('../core/index.cjs') var createPhoneInput = require('../commonjs/PhoneInputWithCountryDefault.js').createPhoneInput function call(func, _arguments) { var args = Array.prototype.slice.call(_arguments) args.push(metadata) return func.apply(this, args) } var PhoneInput = createPhoneInput(metadata) exports = module.exports = PhoneInput exports.parsePhoneNumber = function parsePhoneNumber() { return call(core.parsePhoneNumber, arguments) } exports.formatPhoneNumber = function formatPhoneNumber() { return call(core.formatPhoneNumber, arguments) } exports.formatPhoneNumberIntl = function formatPhoneNumberIntl() { return call(core.formatPhoneNumberIntl, arguments) } exports.isValidPhoneNumber = function isValidPhoneNumber() { return call(core.isValidPhoneNumber, arguments) } exports.isPossiblePhoneNumber = function isPossiblePhoneNumber() { return call(core.isPossiblePhoneNumber, arguments) } exports.getCountries = function getCountries() { return call(core.getCountries, arguments) } exports.getCountryCallingCode = function getCountryCallingCode() { return call(core.getCountryCallingCode, arguments) } exports.isSupportedCountry = function isSupportedCountry() { return call(core.isSupportedCountry, arguments) } exports['default'] = PhoneInput