"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const SettingItem = require("../../../../../components/Pages/ChartItemSetting/SettingItem.vue2.js");
const SettingItemBox = require("../../../../../components/Pages/ChartItemSetting/SettingItemBox.vue.js");
const CollapseItem_vue_vue_type_script_setup_true_lang = require("../../../../../components/Pages/ChartItemSetting/CollapseItem.vue.js");
const GlobalSetting_vue_vue_type_script_setup_true_lang = require("../../../../../components/Pages/ChartItemSetting/GlobalSetting.vue2.js");
require("../../../../../../node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.js");
require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js");
require("../../../../../../node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js");
require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.js");
require("../../../../../../node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/index.js");
require("../../../../../enums/pageEnum.js");
require("../../../../../router/index.js");
require("../../../../../store/modules/designStore/designStore.js");
require("../../../../../../node_modules/.pnpm/vue3-lazyload@0.2.5-beta_a6dezdz3je235ci4e3tu4rayna/node_modules/vue3-lazyload/dist/vue3-lazyload.esm.js");
require("../../../../../components/GoSkeleton/index.vue.js");
require("../../../../../components/GoLoading/index.js");
require("../../../../../settings/designSetting.js");
require("../../../../../components/Pages/ChartItemSetting/StylesSetting.vue.js");
const config = require("./config.js");
const runtimeCore_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const reactivity_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "config",
  props: {
    optionData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const radarConfig = runtimeCore_esmBundler.computed(() => {
      return props.optionData.radar;
    });
    const radarProp = reactivity_esmBundler.reactive({
      radius: [0, 60],
      center: [50, 50]
    });
    const updateRadius0 = (value) => {
      props.optionData.radar.radius[0] = `${value}%`;
    };
    const updateRadius1 = (value) => {
      props.optionData.radar.radius[1] = `${value}%`;
    };
    const updateCenter0 = (value) => {
      props.optionData.radar.center[0] = `${value}%`;
    };
    const updateCenter1 = (value) => {
      props.optionData.radar.center[1] = `${value}%`;
    };
    const sliderFormatTooltip = (v) => {
      return `${v}%`;
    };
    return (_ctx, _cache) => {
      const _component_n_checkbox = runtimeCore_esmBundler.resolveComponent("n-checkbox");
      const _component_n_select = runtimeCore_esmBundler.resolveComponent("n-select");
      const _component_n_slider = runtimeCore_esmBundler.resolveComponent("n-slider");
      const _component_n_color_picker = runtimeCore_esmBundler.resolveComponent("n-color-picker");
      const _component_n_input_number = runtimeCore_esmBundler.resolveComponent("n-input-number");
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock("div", null, [
        runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(GlobalSetting_vue_vue_type_script_setup_true_lang.default), { optionData: __props.optionData }, null, 8, ["optionData"]),
        runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(CollapseItem_vue_vue_type_script_setup_true_lang.default), {
          name: "雷达",
          expanded: true
        }, {
          default: runtimeCore_esmBundler.withCtx(() => [
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "样式" }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_checkbox, {
                      checked: radarConfig.value.splitArea.show,
                      "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => radarConfig.value.splitArea.show = $event)
                    }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("背景")
                      ]),
                      _: 1
                    }, 8, ["checked"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_checkbox, {
                      checked: radarConfig.value.splitLine.show,
                      "onUpdate:checked": _cache[1] || (_cache[1] = ($event) => radarConfig.value.splitLine.show = $event)
                    }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("分割线")
                      ]),
                      _: 1
                    }, 8, ["checked"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "雷达形状" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_select, {
                      value: radarConfig.value.shape,
                      "onUpdate:value": _cache[2] || (_cache[2] = ($event) => radarConfig.value.shape = $event),
                      size: "small",
                      options: reactivity_esmBundler.unref(config.RadarShapeEnumList),
                      placeholder: "选择形状"
                    }, null, 8, ["value", "options"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "坐标轴" }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_checkbox, {
                      checked: radarConfig.value.axisLine.show,
                      "onUpdate:checked": _cache[3] || (_cache[3] = ($event) => radarConfig.value.axisLine.show = $event)
                    }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("轴线")
                      ]),
                      _: 1
                    }, 8, ["checked"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_checkbox, {
                      checked: radarConfig.value.axisTick.show,
                      "onUpdate:checked": _cache[4] || (_cache[4] = ($event) => radarConfig.value.axisTick.show = $event)
                    }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("刻度")
                      ]),
                      _: 1
                    }, 8, ["checked"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "范围" }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), {
                  name: `最小值：${radarProp.radius[0]}%`
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_slider, {
                      value: radarProp.radius[0],
                      "onUpdate:value": [
                        _cache[5] || (_cache[5] = ($event) => radarProp.radius[0] = $event),
                        updateRadius0
                      ],
                      min: 0,
                      max: 100,
                      "format-tooltip": sliderFormatTooltip
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["name"]),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), {
                  name: `最大值：${radarProp.radius[1]}%`
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_slider, {
                      value: radarProp.radius[1],
                      "onUpdate:value": [
                        _cache[6] || (_cache[6] = ($event) => radarProp.radius[1] = $event),
                        updateRadius1
                      ],
                      min: 0,
                      max: 100,
                      "format-tooltip": sliderFormatTooltip
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["name"])
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "偏移" }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), {
                  name: `X 轴值：${radarProp.center[0]}%`
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_slider, {
                      value: radarProp.center[0],
                      "onUpdate:value": [
                        _cache[7] || (_cache[7] = ($event) => radarProp.center[0] = $event),
                        updateCenter0
                      ],
                      min: 0,
                      max: 100,
                      "format-tooltip": sliderFormatTooltip
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["name"]),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), {
                  name: `Y 轴值：${radarProp.center[1]}%`
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_slider, {
                      value: radarProp.center[1],
                      "onUpdate:value": [
                        _cache[8] || (_cache[8] = ($event) => radarProp.center[1] = $event),
                        updateCenter1
                      ],
                      min: 0,
                      max: 100,
                      "format-tooltip": sliderFormatTooltip
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }, 8, ["name"])
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "指示器" }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "颜色" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_color_picker, {
                      size: "small",
                      modes: ["hex"],
                      value: radarConfig.value.axisName.color,
                      "onUpdate:value": _cache[9] || (_cache[9] = ($event) => radarConfig.value.axisName.color = $event)
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "大小" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                      value: radarConfig.value.axisName.fontSize,
                      "onUpdate:value": _cache[10] || (_cache[10] = ($event) => radarConfig.value.axisName.fontSize = $event),
                      size: "small",
                      min: 9
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_checkbox, {
                      checked: radarConfig.value.axisName.show,
                      "onUpdate:checked": _cache[11] || (_cache[11] = ($event) => radarConfig.value.axisName.show = $event)
                    }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("文字标签")
                      ]),
                      _: 1
                    }, 8, ["checked"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), {
              name: "系列",
              alone: true
            }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "背景透明度" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                      value: __props.optionData.series[0].areaStyle.opacity,
                      "onUpdate:value": _cache[12] || (_cache[12] = ($event) => __props.optionData.series[0].areaStyle.opacity = $event),
                      size: "small",
                      min: 0,
                      max: 1,
                      step: 0.1
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        })
      ]);
    };
  }
});
exports.default = _sfc_main;
