{"version":3,"file":"react-phone-number-input.js","sources":["../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/helpers/inputValuePrefix.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputSmart.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputBasic.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountrySelect.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/Flag.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InternationalIcon.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/helpers/countries.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountryIcon.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PropTypes.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/helpers/getInternationalPhoneNumberPrefix.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/helpers/phoneInputHelpers.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/helpers/getPhoneInputWithCountryStateUpdateFromNewProps.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/libphonenumber/formatPhoneNumber.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.js","../../../node_modules/.pnpm/react-phone-number-input@3.1.46_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/min/index.js"],"sourcesContent":["import { getCountryCallingCode } from 'libphonenumber-js/core';\nexport function getInputValuePrefix(_ref) {\n var country = _ref.country,\n international = _ref.international,\n withCountryCallingCode = _ref.withCountryCallingCode,\n metadata = _ref.metadata;\n return country && international && !withCountryCallingCode ? \"+\".concat(getCountryCallingCode(country, metadata)) : '';\n}\nexport function removeInputValuePrefix(value, prefix) {\n if (prefix) {\n value = value.slice(prefix.length);\n\n if (value[0] === ' ') {\n value = value.slice(1);\n }\n }\n\n return value;\n}\n//# sourceMappingURL=inputValuePrefix.js.map","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Input from 'input-format/react';\nimport { AsYouType, parsePhoneNumberCharacter } from 'libphonenumber-js/core';\nimport { getInputValuePrefix, removeInputValuePrefix } from './helpers/inputValuePrefix';\nexport function createInput(defaultMetadata) {\n /**\r\n * `InputSmart` is a \"smarter\" implementation of a `Component`\r\n * that can be passed to `` is wrapped in a `