"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const aria = require("../../../constants/aria.js");
const event = require("../../../constants/event.js");
const types = require("../../../utils/types.js");
const runtime = require("../../../utils/vue/props/runtime.js");
const icon = require("../../../utils/vue/icon.js");
const index$1 = require("../../../hooks/use-size/index.js");
const tag = require("../../tag/src/tag.js");
const index = require("../../../../../@element-plus/icons-vue/dist/index.js");
const shared_esmBundler = require("../../../../../@vue/shared/dist/shared.esm-bundler.js");
const inputTagProps = runtime.buildProps({
  modelValue: { type: runtime.definePropType(Array) },
  max: Number,
  tagType: {
    ...tag.tagProps.type,
    default: "info"
  },
  tagEffect: tag.tagProps.effect,
  effect: {
    type: runtime.definePropType(String),
    default: "light"
  },
  trigger: {
    type: runtime.definePropType(String),
    default: aria.EVENT_CODE.enter
  },
  draggable: Boolean,
  delimiter: {
    type: [String, RegExp],
    default: ""
  },
  size: index$1.useSizeProp,
  clearable: Boolean,
  clearIcon: {
    type: icon.iconPropType,
    default: index.CircleClose
  },
  disabled: {
    type: Boolean,
    default: void 0
  },
  validateEvent: {
    type: Boolean,
    default: true
  },
  readonly: Boolean,
  autofocus: Boolean,
  id: {
    type: String,
    default: void 0
  },
  tabindex: {
    type: [String, Number],
    default: 0
  },
  maxlength: { type: [String, Number] },
  minlength: { type: [String, Number] },
  placeholder: String,
  autocomplete: {
    type: runtime.definePropType(String),
    default: "off"
  },
  saveOnBlur: {
    type: Boolean,
    default: true
  },
  collapseTags: Boolean,
  collapseTagsTooltip: Boolean,
  maxCollapseTags: {
    type: Number,
    default: 1
  },
  ariaLabel: String
});
const inputTagEmits = {
  [event.UPDATE_MODEL_EVENT]: (value) => shared_esmBundler.isArray(value) || types.isUndefined(value),
  [event.CHANGE_EVENT]: (value) => shared_esmBundler.isArray(value) || types.isUndefined(value),
  [event.INPUT_EVENT]: (value) => shared_esmBundler.isString(value),
  "add-tag": (value) => shared_esmBundler.isString(value) || shared_esmBundler.isArray(value),
  "remove-tag": (value, index2) => shared_esmBundler.isString(value) && types.isNumber(index2),
  "drag-tag": (oldIndex, newIndex, value) => types.isNumber(oldIndex) && types.isNumber(newIndex) && shared_esmBundler.isString(value),
  focus: (evt) => evt instanceof FocusEvent,
  blur: (evt) => evt instanceof FocusEvent,
  clear: () => true
};
exports.inputTagEmits = inputTagEmits;
exports.inputTagProps = inputTagProps;
