import "../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
import SettingItem from "../../../../../components/Pages/ChartItemSetting/SettingItem.vue2.mjs";
import SettingItemBox from "../../../../../components/Pages/ChartItemSetting/SettingItemBox.vue.mjs";
import _sfc_main$1 from "../../../../../components/Pages/ChartItemSetting/CollapseItem.vue.mjs";
import "../../../../../../node_modules/.pnpm/vue3-lazyload@0.2.5-beta_a6dezdz3je235ci4e3tu4rayna/node_modules/vue3-lazyload/dist/vue3-lazyload.esm.mjs";
import "../../../../../../node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs";
import "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.mjs";
import "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs";
import "../../../../../../node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs";
import "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.mjs";
import "../../../../../../node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/index.mjs";
import "../../../../../enums/pageEnum.mjs";
import "../../../../../router/index.mjs";
import "../../../../../store/modules/designStore/designStore.mjs";
import "../../../../../settings/designSetting.mjs";
import "../../../../../components/GoLoading/index.mjs";
import "../../../../../components/GoSkeleton/index.vue.mjs";
import "../../../../../store/modules/chartEditStore/chartEditStore.mjs";
import "../../../../../components/Pages/ChartItemSetting/StylesSetting.vue.mjs";
import { types, indicatorPlacements } from "./config.mjs";
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode } from "../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
import { unref } from "../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "config",
  props: {
    optionData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    return (_ctx, _cache) => {
      const _component_n_input_number = resolveComponent("n-input-number");
      const _component_n_input = resolveComponent("n-input");
      const _component_n_select = resolveComponent("n-select");
      const _component_n_color_picker = resolveComponent("n-color-picker");
      const _component_n_switch = resolveComponent("n-switch");
      const _component_n_text = resolveComponent("n-text");
      const _component_n_space = resolveComponent("n-space");
      return openBlock(), createBlock(unref(_sfc_main$1), {
        name: "进度条",
        expanded: true
      }, {
        default: withCtx(() => [
          createVNode(unref(SettingItemBox), { name: "内容" }, {
            default: withCtx(() => [
              createVNode(unref(SettingItem), { name: "数值" }, {
                default: withCtx(() => [
                  createVNode(_component_n_input_number, {
                    value: __props.optionData.dataset,
                    "onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.optionData.dataset = $event),
                    size: "small",
                    min: 0,
                    placeholder: "进度值"
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              createVNode(unref(SettingItem), { name: "单位" }, {
                default: withCtx(() => [
                  createVNode(_component_n_input, {
                    value: __props.optionData.unit,
                    "onUpdate:value": _cache[1] || (_cache[1] = ($event) => __props.optionData.unit = $event),
                    size: "small"
                  }, null, 8, ["value"])
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          createVNode(unref(SettingItemBox), { name: "轨道" }, {
            default: withCtx(() => [
              createVNode(unref(SettingItem), { name: "形状" }, {
                default: withCtx(() => [
                  createVNode(_component_n_select, {
                    value: __props.optionData.type,
                    "onUpdate:value": _cache[2] || (_cache[2] = ($event) => __props.optionData.type = $event),
                    options: unref(types),
                    placeholder: "选择形状"
                  }, null, 8, ["value", "options"])
                ]),
                _: 1
              }),
              createVNode(unref(SettingItem), { name: "进度条颜色" }, {
                default: withCtx(() => [
                  createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: __props.optionData.color,
                    "onUpdate:value": _cache[3] || (_cache[3] = ($event) => __props.optionData.color = $event)
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              createVNode(unref(SettingItem), { name: "轨道颜色" }, {
                default: withCtx(() => [
                  createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: __props.optionData.railColor,
                    "onUpdate:value": _cache[4] || (_cache[4] = ($event) => __props.optionData.railColor = $event)
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              __props.optionData.type !== unref(types)[0].value ? (openBlock(), createBlock(unref(SettingItem), {
                key: 0,
                name: "偏移角度"
              }, {
                default: withCtx(() => [
                  createVNode(_component_n_input_number, {
                    value: __props.optionData.offsetDegree,
                    "onUpdate:value": _cache[5] || (_cache[5] = ($event) => __props.optionData.offsetDegree = $event),
                    size: "small"
                  }, null, 8, ["value"])
                ]),
                _: 1
              })) : createCommentVNode("", true),
              __props.optionData.type == unref(types)[0].value ? (openBlock(), createBlock(unref(SettingItem), { key: 1 }, {
                default: withCtx(() => [
                  createVNode(_component_n_space, null, {
                    default: withCtx(() => [
                      createVNode(_component_n_switch, {
                        value: __props.optionData.processing,
                        "onUpdate:value": _cache[6] || (_cache[6] = ($event) => __props.optionData.processing = $event),
                        size: "small"
                      }, null, 8, ["value"]),
                      createVNode(_component_n_text, null, {
                        default: withCtx(() => [
                          createTextVNode("进行时动画")
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })) : createCommentVNode("", true)
            ]),
            _: 1
          }),
          createVNode(unref(SettingItemBox), { name: "指标" }, {
            default: withCtx(() => [
              __props.optionData.type == unref(types)[0].value ? (openBlock(), createBlock(unref(SettingItem), {
                key: 0,
                name: "位置"
              }, {
                default: withCtx(() => [
                  createVNode(_component_n_select, {
                    value: __props.optionData.indicatorPlacement,
                    "onUpdate:value": _cache[7] || (_cache[7] = ($event) => __props.optionData.indicatorPlacement = $event),
                    options: unref(indicatorPlacements),
                    placeholder: "选择形状"
                  }, null, 8, ["value", "options"])
                ]),
                _: 1
              })) : createCommentVNode("", true),
              createVNode(unref(SettingItem), { name: "文本颜色" }, {
                default: withCtx(() => [
                  createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: __props.optionData.indicatorTextColor,
                    "onUpdate:value": _cache[8] || (_cache[8] = ($event) => __props.optionData.indicatorTextColor = $event)
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              createVNode(unref(SettingItem), { name: "文本大小" }, {
                default: withCtx(() => [
                  createVNode(_component_n_input_number, {
                    value: __props.optionData.indicatorTextSize,
                    "onUpdate:value": _cache[9] || (_cache[9] = ($event) => __props.optionData.indicatorTextSize = $event),
                    size: "small"
                  }, null, 8, ["value"])
                ]),
                _: 1
              })
            ]),
            _: 1
          })
        ]),
        _: 1
      });
    };
  }
});
export {
  _sfc_main as default
};
