"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const event = require("../../../constants/event.js");
const shared_esmBundler = require("../../../../../@vue/shared/dist/shared.esm-bundler.js");
const runtime = require("../../../utils/vue/props/runtime.js");
const index$2 = require("../../../hooks/use-size/index.js");
const index$1 = require("../../../hooks/use-empty-values/index.js");
const index = require("../../../hooks/use-aria/index.js");
const content = require("../../tooltip/src/content.js");
const isNil = require("../../../../../lodash-es/isNil.js");
const colorPickerProps = runtime.buildProps({
  persistent: {
    type: Boolean,
    default: true
  },
  modelValue: {
    type: runtime.definePropType(String),
    default: void 0
  },
  id: String,
  showAlpha: Boolean,
  colorFormat: { type: runtime.definePropType(String) },
  disabled: {
    type: Boolean,
    default: void 0
  },
  clearable: {
    type: Boolean,
    default: true
  },
  size: index$2.useSizeProp,
  popperClass: content.useTooltipContentProps.popperClass,
  popperStyle: content.useTooltipContentProps.popperStyle,
  tabindex: {
    type: [String, Number],
    default: 0
  },
  teleported: content.useTooltipContentProps.teleported,
  appendTo: content.useTooltipContentProps.appendTo,
  predefine: { type: runtime.definePropType(Array) },
  validateEvent: {
    type: Boolean,
    default: true
  },
  ...index$1.useEmptyValuesProps,
  ...index.useAriaProps(["ariaLabel"])
});
const colorPickerEmits = {
  [event.UPDATE_MODEL_EVENT]: (val) => shared_esmBundler.isString(val) || isNil.default(val),
  [event.CHANGE_EVENT]: (val) => shared_esmBundler.isString(val) || isNil.default(val),
  activeChange: (val) => shared_esmBundler.isString(val) || isNil.default(val),
  focus: (evt) => evt instanceof FocusEvent,
  blur: (evt) => evt instanceof FocusEvent,
  clear: () => true
};
exports.colorPickerEmits = colorPickerEmits;
exports.colorPickerProps = colorPickerProps;
