const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.js');
const require_AsYouType$1 = require('./AsYouType.js');

//#region ../../node_modules/.pnpm/libphonenumber-js@1.11.3/node_modules/libphonenumber-js/build/formatIncompletePhoneNumber.js
var require_formatIncompletePhoneNumber = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/libphonenumber-js@1.11.3/node_modules/libphonenumber-js/build/formatIncompletePhoneNumber.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports["default"] = formatIncompletePhoneNumber;
	var _AsYouType = _interopRequireDefault(require_AsYouType$1.require_AsYouType());
	function _interopRequireDefault(obj) {
		return obj && obj.__esModule ? obj : { "default": obj };
	}
	/**
	* Formats a (possibly incomplete) phone number.
	* The phone number can be either in E.164 format
	* or in a form of national number digits.
	* @param {string} value - A possibly incomplete phone number. Either in E.164 format or in a form of national number digits.
	* @param {string|object} [optionsOrDefaultCountry] - A two-letter ("ISO 3166-1 alpha-2") country code, or an object of shape `{ defaultCountry?: string, defaultCallingCode?: string }`.
	* @return {string} Formatted (possibly incomplete) phone number.
	*/
	function formatIncompletePhoneNumber(value, optionsOrDefaultCountry, metadata) {
		if (!metadata) {
			metadata = optionsOrDefaultCountry;
			optionsOrDefaultCountry = void 0;
		}
		return new _AsYouType["default"](optionsOrDefaultCountry, metadata).input(value);
	}
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_formatIncompletePhoneNumber();
  }
});