"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
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$3 = require("../../../hooks/use-size/index.js");
const index = require("../../../hooks/use-empty-values/index.js");
const content = require("../../tooltip/src/content.js");
const tag = require("../../tag/src/tag.js");
const config = require("../../cascader-panel/src/config.js");
const index$2 = require("../../../../../@element-plus/icons-vue/dist/index.js");
const index$1 = require("../../../../../@popperjs/core/dist/index.js");
const cascaderProps = runtime.buildProps({
  ...config.CommonProps,
  size: index$3.useSizeProp,
  placeholder: String,
  disabled: {
    type: Boolean,
    default: void 0
  },
  clearable: Boolean,
  clearIcon: {
    type: icon.iconPropType,
    default: index$2.CircleClose
  },
  filterable: Boolean,
  filterMethod: {
    type: runtime.definePropType(Function),
    default: (node, keyword) => node.text.includes(keyword)
  },
  separator: {
    type: String,
    default: " / "
  },
  showAllLevels: {
    type: Boolean,
    default: true
  },
  collapseTags: Boolean,
  maxCollapseTags: {
    type: Number,
    default: 1
  },
  collapseTagsTooltip: Boolean,
  maxCollapseTagsTooltipHeight: { type: [String, Number] },
  debounce: {
    type: Number,
    default: 300
  },
  beforeFilter: {
    type: runtime.definePropType(Function),
    default: () => true
  },
  placement: {
    type: runtime.definePropType(String),
    values: index$1.placements,
    default: "bottom-start"
  },
  fallbackPlacements: {
    type: runtime.definePropType(Array),
    default: [
      "bottom-start",
      "bottom",
      "top-start",
      "top",
      "right",
      "left"
    ]
  },
  popperClass: content.useTooltipContentProps.popperClass,
  popperStyle: content.useTooltipContentProps.popperStyle,
  teleported: content.useTooltipContentProps.teleported,
  effect: {
    type: runtime.definePropType(String),
    default: "light"
  },
  tagType: {
    ...tag.tagProps.type,
    default: "info"
  },
  tagEffect: {
    ...tag.tagProps.effect,
    default: "light"
  },
  validateEvent: {
    type: Boolean,
    default: true
  },
  persistent: {
    type: Boolean,
    default: true
  },
  showCheckedStrategy: {
    type: String,
    values: ["parent", "child"],
    default: "child"
  },
  checkOnClickNode: Boolean,
  showPrefix: {
    type: Boolean,
    default: true
  },
  ...index.useEmptyValuesProps
});
const emitChangeFn = (value) => true;
const cascaderEmits = {
  [event.UPDATE_MODEL_EVENT]: emitChangeFn,
  [event.CHANGE_EVENT]: emitChangeFn,
  focus: (evt) => evt instanceof FocusEvent,
  blur: (evt) => evt instanceof FocusEvent,
  clear: () => true,
  visibleChange: (val) => types.isBoolean(val),
  expandChange: (val) => !!val,
  removeTag: (val) => !!val
};
exports.cascaderEmits = cascaderEmits;
exports.cascaderProps = cascaderProps;
