"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.panelPresetsContextProps = exports.panelPickerContextProps = exports.PanelPresetsContextKey = exports.PanelPickerContextKey = void 0;
exports.useInjectPanelPicker = useInjectPanelPicker;
exports.useInjectPanelPresets = useInjectPanelPresets;
exports.useProvidePanelPicker = useProvidePanelPicker;
exports.useProvidePanelPresets = useProvidePanelPresets;
var _vue = require("vue");
const panelPickerContextProps = () => ({
  prefixCls: String,
  allowClear: Boolean,
  disabled: Boolean,
  disabledAlpha: Boolean,
  mode: String,
  onModeChange: Function,
  modeOptions: Array,
  value: Object,
  onChange: Function,
  onChangeComplete: Function,
  format: String,
  onFormatChange: Function,
  activeIndex: Number,
  onActive: Function,
  gradientDragging: Boolean,
  onGradientDragging: Function,
  onClear: Function,
  disabledFormat: Boolean
});
exports.panelPickerContextProps = panelPickerContextProps;
const panelPresetsContextProps = () => ({
  prefixCls: String,
  presets: Array,
  disabled: Boolean,
  value: Object,
  onChange: Function
});
exports.panelPresetsContextProps = panelPresetsContextProps;
const PanelPickerContextKey = exports.PanelPickerContextKey = Symbol('panelPickerContextKey');
function useProvidePanelPicker(state) {
  (0, _vue.provide)(PanelPickerContextKey, state);
}
function useInjectPanelPicker() {
  return (0, _vue.inject)(PanelPickerContextKey);
}
const PanelPresetsContextKey = exports.PanelPresetsContextKey = Symbol('panelPresetsContextKey');
function useProvidePanelPresets(state) {
  (0, _vue.provide)(PanelPresetsContextKey, state);
}
function useInjectPanelPresets() {
  return (0, _vue.inject)(PanelPresetsContextKey);
}