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BQ,IAAA,CAAO,IAAAC,EAAAX,SAAA,CAAAU,EAAA,CAA2B,QAAAE,KAAAD,EAA0BJ,OAAAM,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,EAAAC,IAAyDH,CAAAA,CAAA,CAAAG,EAAA,CAAAD,CAAA,CAAAC,EAAA,EAAiC,OAAAH,CAAA,GAAiCO,KAAA,MAAAhB,UAAA,CAM5R,SAAAyL,EAAAT,CAAA,EACP,IAAArE,EAAA,SAAA5C,CAAA,CAAAnC,CAAA,EACA,OAAwBa,EAAAiB,aAAmB,CAACe,EAAoB+G,EAAQ,GAAGzH,EAAA,CAC3EnC,IAAAA,EACAC,UAAiBiJ,CACjB,GACA,EASA,MANAnE,CADAA,EAA4BlE,EAAAwB,UAAgB,CAAA0C,EAAA,EAC5CzC,SAAA,EACA6C,SAAc2E,EAAAC,CAAY,CAAAtH,UAAA,EAE1BsC,EAAA+D,YAAA,EACA3D,SAAAiE,CACA,EACArE,CACA,CACe8E,ICnBf,IAAAG,EAAeH,EAAiBI,EAAA1D,CAAQ","sources":["webpack://_N_E/./node_modules/lodash/replace.js","webpack://_N_E/./node_modules/react-phone-number-input/modules/react-hook-form/ReactHookFormInput.js","webpack://_N_E/./node_modules/react-phone-number-input/modules/usePhoneDigits.js","webpack://_N_E/./node_modules/react-phone-number-input/modules/PhoneInput.js","webpack://_N_E/./node_modules/react-phone-number-input/modules/PhoneInputBrowser.js","webpack://_N_E/./node_modules/react-phone-number-input/modules/react-hook-form/PhoneInput.js","webpack://_N_E/./node_modules/react-phone-number-input/react-hook-form-input/index.js","webpack://_N_E/"],"sourcesContent":["var toString = require('./toString');\n\n/**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\nfunction replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n}\n\nmodule.exports = replace;\n","var _excluded = [\"Component\", \"name\", \"defaultValue\", \"shouldUnregister\", \"control\", \"rules\", \"onChange\", \"onBlur\"],\n _excluded2 = [\"ref\", \"onChange\", \"onBlur\"];\n\nfunction _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, { useRef, useCallback, useImperativeHandle } from 'react';\nimport { Controller } from 'react-hook-form';\nimport PropTypes from 'prop-types';\n\nvar ReactHookFormInput = function ReactHookFormInput(_ref, ref) {\n var Component = _ref.Component,\n name = _ref.name,\n defaultValue = _ref.defaultValue,\n shouldUnregister = _ref.shouldUnregister,\n control = _ref.control,\n rules = _ref.rules,\n onChange_ = _ref.onChange,\n onBlur_ = _ref.onBlur,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var internalRef = useRef();\n var setRef = useCallback(function (instance) {\n internalRef.current = instance;\n\n if (ref) {\n if (typeof ref === 'function') {\n ref(instance);\n } else {\n ref.current = instance;\n }\n }\n }, [ref]); // `feact-hook-form` doesn't know how to properly handle `undefined` values.\n // https://github.com/react-hook-form/react-hook-form/issues/2990\n\n defaultValue = defaultValue === undefined ? null : defaultValue;\n\n var renderInputComponent = function renderInputComponent(_ref2) {\n var ref = _ref2.ref,\n onChange = _ref2.onChange,\n onBlur = _ref2.onBlur,\n restReactHookFormControlledFieldProps = _objectWithoutProperties(_ref2, _excluded2);\n\n // Setting `ref` passed by `react-hook-form` results in a bug:\n // when an initial value is defined (example: \"+78005553535\")\n // it seems to be set directly on the `ref`d ``\n // by `react-hook-form` and the result is a non-formatted\n // \"+78005553535\" initial value in the ``.\n //\n // To work around that bug, a fake `ref` is assigned,\n // so that it could only `.focus()` it and no more.\n //\n // `useImperativeHandle()` hook seems to allow `ref` being `undefined`.\n //\n // if (ref) {\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n internalRef.current.focus();\n }\n };\n }); // }\n\n var setComponentRef = useCallback(function (instance) {\n setRef(instance); // if (ref) {\n // if (typeof ref === 'function') {\n // ref(instance)\n // } else {\n // ref.current = instance\n // }\n // }\n }, [ref, setRef]);\n var onChangeCombined = useCallback(function (value) {\n // `feact-hook-form` doesn't know how to properly handle `undefined` values.\n // https://github.com/react-hook-form/react-hook-form/issues/2990\n if (value === undefined) {\n value = null;\n }\n\n onChange(value);\n\n if (onChange_) {\n onChange_(value);\n }\n }, [onChange, onChange_]);\n var onBlurCombined = useCallback(function (event) {\n onBlur(event);\n\n if (onBlur_) {\n onBlur_(event);\n }\n }, [onBlur, onBlur_]);\n return /*#__PURE__*/React.createElement(Component, _extends({}, rest, restReactHookFormControlledFieldProps, {\n ref: setComponentRef,\n onChange: onChangeCombined,\n onBlur: onBlurCombined\n }));\n }; // `react-hook-form@7` no longer accepts `onFocus` property.\n // Since this component can be used with both `v6` and `v7`,\n // the `onFocus` property is left here.\n\n\n var onFocus = useCallback(function () {\n // internalRef.current.disabled = false\n internalRef.current.focus();\n }, []);\n return /*#__PURE__*/React.createElement(Controller, {\n control: control,\n name: name,\n defaultValue: defaultValue,\n shouldUnregister: shouldUnregister,\n rules: rules,\n onFocus: onFocus,\n render: function render(props) {\n // Differentiate between `react-hook-form@6` and `react-hook-form@7`.\n // https://react-hook-form.com/migrate-v6-to-v7/\n // https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/57\n // `props` (before v7) and `props.fields` (in v7) contain properties like:\n // `ref`, `name`, `value`, `onChange`, `onBlur`.\n // https://github.com/react-hook-form/react-hook-form/blob/b0e6c3057ac12a7b12d5616aecf3791acb7d7204/src/types/controller.ts#L21-L30\n return renderInputComponent(props.field || props);\n }\n });\n};\n\nReactHookFormInput = /*#__PURE__*/React.forwardRef(ReactHookFormInput);\nReactHookFormInput.propTypes = {\n Component: PropTypes.elementType.isRequired,\n name: PropTypes.string.isRequired,\n defaultValue: PropTypes.string,\n // A quote from `react-hook-form`:\n // Without `shouldUnregister: true`, an input value would be retained when input is removed.\n // Setting `shouldUnregister: true` makes the form behave more closer to native.\n shouldUnregister: PropTypes.bool,\n control: PropTypes.object.isRequired,\n rules: PropTypes.object,\n onChange: PropTypes.func,\n onBlur: PropTypes.func\n};\nexport default ReactHookFormInput;\n//# sourceMappingURL=ReactHookFormInput.js.map","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useRef, useState, useCallback, useEffect } from 'react';\nimport { AsYouType, getCountryCallingCode, parseDigits } from 'libphonenumber-js/core';\nimport getInternationalPhoneNumberPrefix from './helpers/getInternationalPhoneNumberPrefix.js';\n/**\r\n * Returns `[phoneDigits, setPhoneDigits]`.\r\n * \"Phone digits\" includes not only \"digits\" but also a `+` sign.\r\n */\n\nexport default function usePhoneDigits(_ref) {\n var _this = this;\n\n var value = _ref.value,\n onChange = _ref.onChange,\n country = _ref.country,\n defaultCountry = _ref.defaultCountry,\n international = _ref.international,\n withCountryCallingCode = _ref.withCountryCallingCode,\n useNationalFormatForDefaultCountryValue = _ref.useNationalFormatForDefaultCountryValue,\n metadata = _ref.metadata;\n var countryMismatchDetected = useRef();\n\n var onCountryMismatch = function onCountryMismatch(value, country, actualCountry) {\n console.error(\"[react-phone-number-input] Expected phone number \".concat(value, \" to correspond to country \").concat(country, \" but \").concat(actualCountry ? 'in reality it corresponds to country ' + actualCountry : 'it doesn\\'t', \".\"));\n countryMismatchDetected.current = true;\n };\n\n var getInitialPhoneDigits = function getInitialPhoneDigits(options) {\n return getPhoneDigitsForValue(value, country, international, withCountryCallingCode, defaultCountry, useNationalFormatForDefaultCountryValue, metadata, function () {\n if (options && options.onCountryMismatch) {\n options.onCountryMismatch();\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n onCountryMismatch.apply(_this, args);\n });\n }; // This is only used to detect `country` property change.\n\n\n var _useState = useState(country),\n _useState2 = _slicedToArray(_useState, 2),\n prevCountry = _useState2[0],\n setPrevCountry = _useState2[1]; // This is only used to detect `defaultCountry` property change.\n\n\n var _useState3 = useState(defaultCountry),\n _useState4 = _slicedToArray(_useState3, 2),\n prevDefaultCountry = _useState4[0],\n setPrevDefaultCountry = _useState4[1]; // `phoneDigits` is the `value` passed to the ``.\n\n\n var _useState5 = useState(getInitialPhoneDigits()),\n _useState6 = _slicedToArray(_useState5, 2),\n phoneDigits = _useState6[0],\n setPhoneDigits = _useState6[1]; // This is only used to detect `value` property changes.\n\n\n var _useState7 = useState(value),\n _useState8 = _slicedToArray(_useState7, 2),\n valueForPhoneDigits = _useState8[0],\n setValueForPhoneDigits = _useState8[1]; // Rerender hack.\n\n\n var _useState9 = useState(),\n _useState10 = _slicedToArray(_useState9, 2),\n rerenderTrigger = _useState10[0],\n setRerenderTrigger = _useState10[1];\n\n var rerender = useCallback(function () {\n return setRerenderTrigger({});\n }, [setRerenderTrigger]);\n\n function getValueForPhoneDigits(phoneDigits) {\n // If the user hasn't input any digits then `value` is `undefined`.\n if (!phoneDigits) {\n return;\n }\n\n if (country && international && !withCountryCallingCode) {\n phoneDigits = \"+\".concat(getCountryCallingCode(country, metadata)).concat(phoneDigits);\n } // Return the E.164 phone number value.\n //\n // Even if no \"national (significant) number\" digits have been input,\n // still return a non-`undefined` value.\n // https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/113\n //\n // For example, if the user has selected country `US` and entered `\"1\"`\n // then that `\"1\"` is just a \"national prefix\" and no \"national (significant) number\"\n // digits have been input yet. Still, return `\"+1\"` as `value` in such cases,\n // because otherwise the app would think that the input is empty and mark it as such\n // while in reality it isn't empty, which might be thought of as a \"bug\", or just\n // a \"weird\" behavior.\n //\n // The only case when there's any input and `getNumberValue()` still returns `undefined`\n // is when that input is `\"+\"`.\n //\n\n\n var asYouType = new AsYouType(country || defaultCountry, metadata);\n asYouType.input(phoneDigits);\n return asYouType.getNumberValue();\n } // If `value` property has been changed externally\n // then re-initialize the component.\n\n\n useEffect(function () {\n if (value !== valueForPhoneDigits) {\n setValueForPhoneDigits(value);\n setPhoneDigits(getInitialPhoneDigits());\n }\n }, [value]); // If the `country` has been changed then re-initialize the component.\n\n useEffect(function () {\n if (country !== prevCountry) {\n setPrevCountry(country);\n\n var _countryMismatchDetected;\n\n var _phoneDigits = getInitialPhoneDigits({\n onCountryMismatch: function onCountryMismatch() {\n _countryMismatchDetected = true;\n }\n });\n\n setPhoneDigits(_phoneDigits);\n\n if (_countryMismatchDetected) {\n setValueForPhoneDigits(getValueForPhoneDigits(_phoneDigits));\n }\n }\n }, [country]); // If the `defaultCountry` has been changed then re-initialize the component.\n\n useEffect(function () {\n if (defaultCountry !== prevDefaultCountry) {\n setPrevDefaultCountry(defaultCountry);\n setPhoneDigits(getInitialPhoneDigits());\n }\n }, [defaultCountry]); // Update the `value` after `valueForPhoneDigits` has been updated.\n\n useEffect(function () {\n if (valueForPhoneDigits !== value) {\n onChange(valueForPhoneDigits);\n }\n }, [valueForPhoneDigits]);\n var onSetPhoneDigits = useCallback(function (phoneDigits) {\n var value;\n\n if (country) {\n if (international && withCountryCallingCode) {\n // The `` value must start with the country calling code.\n var prefix = getInternationalPhoneNumberPrefix(country, metadata);\n\n if (phoneDigits.indexOf(prefix) !== 0) {\n // If a user tabs into a phone number input field\n // that is `international` and `withCountryCallingCode`,\n // and then starts inputting local phone number digits,\n // the first digit would get \"swallowed\" if the fix below wasn't implemented.\n // https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/43\n if (phoneDigits && phoneDigits[0] !== '+') {\n phoneDigits = prefix + phoneDigits;\n } else {\n // // Reset phone digits if they don't start with the correct prefix.\n // // Undo the `` value change if it doesn't.\n if (countryMismatchDetected.current) {// In case of a `country`/`value` mismatch,\n // if it performed an \"undo\" here, then\n // it wouldn't let a user edit their phone number at all,\n // so this special case at least allows phone number editing\n // when `value` already doesn't match the `country`.\n } else {\n // If it simply did `phoneDigits = prefix` here,\n // then it could have no effect when erasing phone number\n // via Backspace, because `phoneDigits` in `state` wouldn't change\n // as a result, because it was `prefix` and it became `prefix`,\n // so the component wouldn't rerender, and the user would be able\n // to erase the country calling code part, and that part is\n // assumed to be non-eraseable. That's why the component is\n // forcefully rerendered here.\n setPhoneDigits(prefix);\n setValueForPhoneDigits(undefined); // Force a re-render of the `` with previous `phoneDigits` value.\n\n return rerender();\n }\n }\n }\n } else {\n // Entering phone number either in \"national\" format\n // when `country` has been specified, or in \"international\" format\n // when `country` has been specified but `withCountryCallingCode` hasn't.\n // Therefore, `+` is not allowed.\n if (phoneDigits && phoneDigits[0] === '+') {\n // Remove the `+`.\n phoneDigits = phoneDigits.slice(1);\n }\n }\n } else if (!defaultCountry) {\n // Force a `+` in the beginning of a `value`\n // when no `country` and `defaultCountry` have been specified.\n if (phoneDigits && phoneDigits[0] !== '+') {\n // Prepend a `+`.\n phoneDigits = '+' + phoneDigits;\n }\n } // Convert `phoneDigits` to `value`.\n\n\n if (phoneDigits) {\n value = getValueForPhoneDigits(phoneDigits);\n }\n\n setPhoneDigits(phoneDigits);\n setValueForPhoneDigits(value);\n }, [country, international, withCountryCallingCode, defaultCountry, metadata, setPhoneDigits, setValueForPhoneDigits, rerender, countryMismatchDetected]);\n return [phoneDigits, onSetPhoneDigits];\n}\n/**\r\n * Returns phone number input field value for a E.164 phone number `value`.\r\n * @param {string} [value]\r\n * @param {string} [country]\r\n * @param {boolean} [international]\r\n * @param {boolean} [withCountryCallingCode]\r\n * @param {string} [defaultCountry]\r\n * @param {boolean} [useNationalFormatForDefaultCountryValue]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\n\nfunction getPhoneDigitsForValue(value, country, international, withCountryCallingCode, defaultCountry, useNationalFormatForDefaultCountryValue, metadata, onCountryMismatch) {\n if (country && international && withCountryCallingCode) {\n var prefix = getInternationalPhoneNumberPrefix(country, metadata);\n\n if (value) {\n if (value.indexOf(prefix) !== 0) {\n onCountryMismatch(value, country);\n }\n\n return value;\n }\n\n return prefix;\n }\n\n if (!value) {\n return '';\n }\n\n if (!country && !defaultCountry) {\n return value;\n }\n\n var asYouType = new AsYouType(undefined, metadata);\n asYouType.input(value);\n var phoneNumber = asYouType.getNumber();\n\n if (phoneNumber) {\n if (country) {\n if (phoneNumber.country && phoneNumber.country !== country) {\n onCountryMismatch(value, country, phoneNumber.country);\n } else if (phoneNumber.countryCallingCode !== getCountryCallingCode(country, metadata)) {\n onCountryMismatch(value, country);\n }\n\n if (international) {\n return phoneNumber.nationalNumber;\n }\n\n return parseDigits(phoneNumber.formatNational());\n } else {\n // `phoneNumber.countryCallingCode` is compared here instead of\n // `phoneNumber.country`, because, for example, a person could have\n // previously input a phone number (in \"national\" format) that isn't\n // 100% valid for the `defaultCountry`, and if `phoneNumber.country`\n // was compared, then it wouldn't match, and such phone number\n // wouldn't be formatted as a \"national\" one, and instead would be\n // formatted as an \"international\" one, confusing the user.\n // Comparing `phoneNumber.countryCallingCode` works around such issues.\n //\n // Example: `defaultCountry=\"US\"` and the `` is empty.\n // The user inputs: \"222 333 4444\", which gets formatted to \"(222) 333-4444\".\n // The user then clicks \"Save\", the page is refreshed, and the user sees\n // that the `` value is now \"+1 222 333 4444\" which confuses the user:\n // the user expected the `` value to be \"(222) 333-4444\", same as it\n // was when they've just typed it in. The cause of the issue is that \"222 333 4444\"\n // is not a valid national number for US, and `phoneNumber.country` is compared\n // instead of `phoneNumber.countryCallingCode`. After the `phoneNumber.country`\n // comparison is replaced with `phoneNumber.countryCallingCode` one, the issue\n // is no longer the case.\n //\n if (phoneNumber.countryCallingCode && phoneNumber.countryCallingCode === getCountryCallingCode(defaultCountry, metadata) && useNationalFormatForDefaultCountryValue) {\n return parseDigits(phoneNumber.formatNational());\n }\n\n return value;\n }\n } else {\n return '';\n }\n}\n//# sourceMappingURL=usePhoneDigits.js.map","var _excluded = [\"Component\", \"country\", \"defaultCountry\", \"useNationalFormatForDefaultCountryValue\", \"value\", \"onChange\", \"metadata\", \"international\", \"withCountryCallingCode\"];\n\nfunction _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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\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 from 'react';\nimport PropTypes from 'prop-types';\nimport usePhoneDigits from './usePhoneDigits.js';\n\nfunction PhoneInput(_ref, ref) {\n var Component = _ref.Component,\n country = _ref.country,\n defaultCountry = _ref.defaultCountry,\n useNationalFormatForDefaultCountryValue = _ref.useNationalFormatForDefaultCountryValue,\n value = _ref.value,\n onChange = _ref.onChange,\n metadata = _ref.metadata,\n international = _ref.international,\n withCountryCallingCode = _ref.withCountryCallingCode,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n // \"Phone digits\" includes not only \"digits\" but also a `+` sign.\n var _usePhoneDigits = usePhoneDigits({\n value: value,\n onChange: onChange,\n country: country,\n defaultCountry: defaultCountry,\n international: international,\n withCountryCallingCode: withCountryCallingCode,\n useNationalFormatForDefaultCountryValue: useNationalFormatForDefaultCountryValue,\n metadata: metadata\n }),\n _usePhoneDigits2 = _slicedToArray(_usePhoneDigits, 2),\n phoneDigits = _usePhoneDigits2[0],\n setPhoneDigits = _usePhoneDigits2[1];\n\n return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {\n ref: ref,\n metadata: metadata,\n international: international,\n withCountryCallingCode: withCountryCallingCode,\n country: country || defaultCountry,\n value: phoneDigits,\n onChange: setPhoneDigits\n }));\n}\n\nPhoneInput = /*#__PURE__*/React.forwardRef(PhoneInput);\nPhoneInput.propTypes = {\n /**\r\n * The phone number (in E.164 format).\r\n * Examples: `\"+12\"`, `\"+12133734253\"`.\r\n * An \"empty\" `value` could be represented by any \"falsy\" value like `undefined`, `null` or an empty string `\"\"`.\r\n */\n value: PropTypes.string,\n\n /**\r\n * A function of `value: string?`.\r\n * Updates the `value` property (to `undefined` in case it's empty).\r\n */\n onChange: PropTypes.func.isRequired,\n\n /**\r\n * A two-letter country code for formatting `value`\r\n * as a national phone number (example: `(213) 373-4253`),\r\n * or as an international phone number without \"country calling code\"\r\n * if `international` property is passed (example: `213 373 4253`).\r\n * Example: \"US\".\r\n * If no `country` is passed then `value`\r\n * is formatted as an international phone number.\r\n * (example: `+1 213 373 4253`)\r\n */\n country: PropTypes.string,\n\n /**\r\n * A two-letter country code for formatting `value`\r\n * when a user inputs a national phone number (example: `(213) 373-4253`).\r\n * The user can still input a phone number in international format.\r\n * Example: \"US\".\r\n * `country` and `defaultCountry` properties are mutually exclusive.\r\n */\n defaultCountry: PropTypes.string,\n\n /**\r\n * If `country` property is passed along with `international={true}` property\r\n * then the phone number will be input in \"international\" format for that `country`\r\n * (without \"country calling code\").\r\n * For example, if `country=\"US\"` property is passed to \"without country select\" input\r\n * then the phone number will be input in the \"national\" format for `US` (`(213) 373-4253`).\r\n * But if both `country=\"US\"` and `international={true}` properties are passed then\r\n * the phone number will be input in the \"international\" format for `US` (`213 373 4253`)\r\n * (without \"country calling code\" `+1`).\r\n */\n international: PropTypes.bool,\n\n /**\r\n * If `country` and `international` properties are set,\r\n * then by default it won't include \"country calling code\" in the input field.\r\n * To change that, pass `withCountryCallingCode` property,\r\n * and it will include \"country calling code\" in the input field.\r\n */\n withCountryCallingCode: PropTypes.bool,\n\n /**\r\n * A component that renders the `` itself and also\r\n * parses and formats its `value` as the user inputs it.\r\n */\n Component: PropTypes.elementType.isRequired,\n\n /**\r\n * When `defaultCountry` is defined and the initial `value` corresponds to `defaultCountry`,\r\n * then the `value` will be formatted as a national phone number by default.\r\n * To format the initial `value` of `defaultCountry` as an international number instead\r\n * set `useNationalFormatForDefaultCountryValue` property to `true`.\r\n */\n useNationalFormatForDefaultCountryValue: PropTypes.bool.isRequired,\n\n /**\r\n * `libphonenumber-js` metadata.\r\n */\n metadata: PropTypes.object.isRequired\n};\nPhoneInput.defaultProps = {\n /**\r\n * Set to `true` to force international phone number format\r\n * (without \"country calling code\") when `country` is specified.\r\n */\n // international: false,\n\n /**\r\n * Prefer national format when formatting E.164 phone number `value`\r\n * corresponding to `defaultCountry`.\r\n */\n useNationalFormatForDefaultCountryValue: true\n};\nexport default PhoneInput;\n//# sourceMappingURL=PhoneInput.js.map","var _excluded = [\"smartCaret\"];\n\nfunction _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 from 'react';\nimport PropTypes from 'prop-types';\nimport PhoneInput_ from './PhoneInput.js';\nimport InputSmart from './InputSmart.js';\nimport InputBasic from './InputBasic.js';\nexport function createInput(defaultMetadata) {\n function PhoneInput(_ref, ref) {\n var smartCaret = _ref.smartCaret,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(PhoneInput_, _extends({}, rest, {\n ref: ref,\n Component: smartCaret ? InputSmart : InputBasic\n }));\n }\n\n PhoneInput = /*#__PURE__*/React.forwardRef(PhoneInput);\n PhoneInput.propTypes = {\n /**\r\n * HTML `` `type` attribute.\r\n */\n type: PropTypes.string,\n\n /**\r\n * HTML `` `autocomplete` attribute.\r\n */\n autoComplete: PropTypes.string,\n\n /**\r\n * By default, the caret position is being \"intelligently\" managed\r\n * while a user inputs a phone number.\r\n * This \"smart\" caret behavior can be turned off\r\n * by passing `smartCaret={false}` property.\r\n * This is just an \"escape hatch\" for any possible caret position issues.\r\n */\n // Is `true` by default.\n smartCaret: PropTypes.bool.isRequired,\n\n /**\r\n * `libphonenumber-js` metadata.\r\n */\n metadata: PropTypes.object.isRequired\n };\n PhoneInput.defaultProps = {\n /**\r\n * HTML `` `type=\"tel\"`.\r\n */\n type: 'tel',\n\n /**\r\n * Remember (and autofill) the value as a phone number.\r\n */\n autoComplete: 'tel',\n\n /**\r\n * Set to `false` to use \"basic\" caret instead of the \"smart\" one.\r\n */\n smartCaret: true,\n\n /**\r\n * `libphonenumber-js` metadata.\r\n */\n metadata: defaultMetadata\n };\n return PhoneInput;\n}\nexport default createInput();\n//# sourceMappingURL=PhoneInputBrowser.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\nimport React from 'react';\nimport ReactHookFormInput from './ReactHookFormInput.js';\nimport PhoneInput_ from '../PhoneInputBrowser.js';\nimport { metadata as metadataType } from '../PropTypes.js';\nexport function createPhoneInput(defaultMetadata) {\n var PhoneInput = function PhoneInput(props, ref) {\n return /*#__PURE__*/React.createElement(ReactHookFormInput, _extends({}, props, {\n ref: ref,\n Component: PhoneInput_\n }));\n };\n\n PhoneInput = /*#__PURE__*/React.forwardRef(PhoneInput);\n PhoneInput.propTypes = {\n metadata: metadataType.isRequired\n };\n PhoneInput.defaultProps = {\n metadata: defaultMetadata\n };\n return PhoneInput;\n}\nexport default createPhoneInput();\n//# sourceMappingURL=PhoneInput.js.map","import metadata from 'libphonenumber-js/min/metadata'\r\n\r\nimport { createPhoneInput } from '../modules/react-hook-form/PhoneInput.js'\r\n\r\nexport default createPhoneInput(metadata)"],"names":["toString","__webpack_require__","module","exports","args","arguments","string","length","replace","_excluded","_excluded2","_extends","Object","assign","target","i","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceKeys","keys","indexOf","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","ReactHookFormInput","_ref","ref","Component","name","defaultValue","shouldUnregister","control","rules","onChange_","onChange","onBlur_","onBlur","rest","internalRef","react","useRef","setRef","useCallback","instance","current","undefined","renderInputComponent","_ref2","restReactHookFormControlledFieldProps","useImperativeHandle","focus","setComponentRef","onChangeCombined","value","onBlurCombined","event","createElement","onFocus","index_esm","Qr","render","props","field","forwardRef","propTypes","prop_types","elementType","isRequired","bool","object","func","react_hook_form_ReactHookFormInput","_slicedToArray","arr","_arrayWithHoles","Array","isArray","_iterableToArrayLimit","_s","_e","_i","Symbol","iterator","_arr","_n","_d","next","done","push","err","_unsupportedIterableToArray","o","minLen","_arrayLikeToArray","n","slice","constructor","from","test","_nonIterableRest","len","arr2","PhoneInput_excluded","PhoneInput_extends","PhoneInput_arrayLikeToArray","PhoneInput","country","defaultCountry","useNationalFormatForDefaultCountryValue","metadata","international","withCountryCallingCode","PhoneInput_objectWithoutProperties","PhoneInput_objectWithoutPropertiesLoose","_usePhoneDigits2","PhoneInput_arrayWithHoles","usePhoneDigits","_this","countryMismatchDetected","onCountryMismatch","actualCountry","console","error","concat","getInitialPhoneDigits","options","getPhoneDigitsForValue","prefix","getInternationalPhoneNumberPrefix","Z","asYouType","AsYouType","input","phoneNumber","getNumber","countryCallingCode","es6_metadata","Gg","nationalNumber","parseDigits","ZP","formatNational","_len","_key","_useState2","useState","prevCountry","setPrevCountry","_useState4","prevDefaultCountry","setPrevDefaultCountry","_useState6","phoneDigits","setPhoneDigits","_useState8","valueForPhoneDigits","setValueForPhoneDigits","_useState10","setRerenderTrigger","rerender","getValueForPhoneDigits","getNumberValue","useEffect","_countryMismatchDetected","_phoneDigits","PhoneInput_iterableToArrayLimit","PhoneInput_unsupportedIterableToArray","PhoneInput_nonIterableRest","defaultProps","modules_PhoneInput","PhoneInputBrowser_excluded","PhoneInputBrowser_extends","PhoneInputBrowser","createInput","defaultMetadata","smartCaret","PhoneInputBrowser_objectWithoutProperties","PhoneInputBrowser_objectWithoutPropertiesLoose","InputSmart","InputBasic","type","autoComplete","react_hook_form_PhoneInput_extends","createPhoneInput","PropTypes","P","react_hook_form_input","metadata_min_json"],"sourceRoot":""}