import { InteractEventOn } from "../../../../../enums/eventEnum.mjs";
var ComponentInteractEventEnum = /* @__PURE__ */ ((ComponentInteractEventEnum2) => {
  ComponentInteractEventEnum2["DATE"] = "date";
  ComponentInteractEventEnum2["DATE_TIME"] = "datetime";
  ComponentInteractEventEnum2["DATE_RANGE"] = "daterange";
  ComponentInteractEventEnum2["DATE_TIME_RANGE"] = "datetimerange";
  ComponentInteractEventEnum2["MONTH"] = "month";
  ComponentInteractEventEnum2["MONTH_RANGE"] = "monthrange";
  ComponentInteractEventEnum2["YEAR"] = "year";
  ComponentInteractEventEnum2["YEAR_RANGE"] = "yearrange";
  ComponentInteractEventEnum2["QUARTER"] = "quarter";
  ComponentInteractEventEnum2["QUARTER_RANGE"] = "quarterrange";
  return ComponentInteractEventEnum2;
})(ComponentInteractEventEnum || {});
var ComponentInteractParamsEnum = /* @__PURE__ */ ((ComponentInteractParamsEnum2) => {
  ComponentInteractParamsEnum2["DATE"] = "date";
  ComponentInteractParamsEnum2["DATE_START"] = "dateStart";
  ComponentInteractParamsEnum2["DATE_END"] = "dateEnd";
  ComponentInteractParamsEnum2["DATE_RANGE"] = "daterange";
  return ComponentInteractParamsEnum2;
})(ComponentInteractParamsEnum || {});
var DefaultTypeEnum = /* @__PURE__ */ ((DefaultTypeEnum2) => {
  DefaultTypeEnum2["NONE"] = "none";
  DefaultTypeEnum2["STATIC"] = "static";
  DefaultTypeEnum2["DYNAMIC"] = "dynamic";
  return DefaultTypeEnum2;
})(DefaultTypeEnum || {});
var DifferUnitEnum = /* @__PURE__ */ ((DifferUnitEnum2) => {
  DifferUnitEnum2["DAY"] = "d";
  DifferUnitEnum2["WEEK"] = "w";
  DifferUnitEnum2["MONTH"] = "M";
  DifferUnitEnum2["QUARTER"] = "Q";
  DifferUnitEnum2["YEAR"] = "y";
  DifferUnitEnum2["HOUR"] = "h";
  DifferUnitEnum2["MINUTE"] = "m";
  DifferUnitEnum2["SECOND"] = "s";
  DifferUnitEnum2["MILLISECOND"] = "ms";
  return DifferUnitEnum2;
})(DifferUnitEnum || {});
const DifferUnitObject = {
  // https://day.js.org/docs/en/manipulate/add
  [
    "d"
    /* DAY */
  ]: "天",
  [
    "w"
    /* WEEK */
  ]: "周",
  [
    "M"
    /* MONTH */
  ]: "月",
  [
    "Q"
    /* QUARTER */
  ]: "季度",
  [
    "y"
    /* YEAR */
  ]: "年",
  [
    "h"
    /* HOUR */
  ]: "小时",
  [
    "m"
    /* MINUTE */
  ]: "分钟",
  [
    "s"
    /* SECOND */
  ]: "秒",
  [
    "ms"
    /* MILLISECOND */
  ]: "毫秒"
};
const time = [
  {
    value: "date",
    label: "日期"
  }
];
const timeRange = [
  {
    value: "dateStart",
    label: "开始时间"
  },
  {
    value: "dateEnd",
    label: "结束时间"
  },
  {
    value: "daterange",
    label: "日期范围"
  }
];
const interactActions = [
  {
    interactType: InteractEventOn.CHANGE,
    interactName: "选择完成",
    componentEmitEvents: {
      [
        "date"
        /* DATE */
      ]: time,
      [
        "datetime"
        /* DATE_TIME */
      ]: time,
      [
        "daterange"
        /* DATE_RANGE */
      ]: timeRange,
      [
        "month"
        /* MONTH */
      ]: time,
      [
        "monthrange"
        /* MONTH_RANGE */
      ]: timeRange,
      [
        "quarter"
        /* QUARTER */
      ]: time,
      [
        "quarterrange"
        /* QUARTER_RANGE */
      ]: timeRange,
      [
        "year"
        /* YEAR */
      ]: time,
      [
        "yearrange"
        /* YEAR_RANGE */
      ]: timeRange
    }
  }
];
export {
  ComponentInteractEventEnum,
  ComponentInteractParamsEnum,
  DefaultTypeEnum,
  DifferUnitEnum,
  DifferUnitObject,
  interactActions
};
