"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 config = require("./config.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");
require("../../../../../../node_modules/.pnpm/vue3-lazyload@0.2.5-beta_a6dezdz3je235ci4e3tu4rayna/node_modules/vue3-lazyload/dist/vue3-lazyload.esm.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("../../../../../settings/designSetting.js");
require("../../../../../components/GoLoading/index.js");
require("../../../../../components/GoSkeleton/index.vue.js");
require("../../../../../store/modules/chartEditStore/chartEditStore.js");
require("../../../../../components/Pages/ChartItemSetting/StylesSetting.vue.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 shared_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_shared@3.3.4/node_modules/@vue/shared/dist/shared.esm-bundler.js");
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "config",
  props: {
    optionData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const themeOptions = [
      {
        value: config.ThemeEnum.NORMAL,
        label: "标准"
      },
      {
        value: config.ThemeEnum.DARK,
        label: "幻影黑"
      },
      {
        value: config.ThemeEnum.LIGHT,
        label: "月光银"
      },
      {
        value: config.ThemeEnum.WHITES_MOKE,
        label: "远山黛"
      },
      {
        value: config.ThemeEnum.FRESH,
        label: "草色青"
      },
      {
        value: config.ThemeEnum.GREY,
        label: "雅士灰"
      },
      {
        value: config.ThemeEnum.GRAFFITI,
        label: "涂鸦"
      },
      {
        value: config.ThemeEnum.MACARON,
        label: "马卡龙"
      },
      {
        value: config.ThemeEnum.BLUE,
        label: "靛青蓝"
      },
      {
        value: config.ThemeEnum.DARKBLUE,
        label: "极夜蓝"
      },
      {
        value: config.ThemeEnum.WINE,
        label: "酱籽"
      },
      {
        value: config.ThemeEnum.WEIXIN,
        label: "卫星"
      }
    ];
    const langOptions = [
      {
        value: config.LangEnum.ZH_CN,
        label: "中文简体"
      },
      {
        value: config.LangEnum.EN,
        label: "英文"
      },
      {
        value: config.LangEnum.ZH_EN,
        label: "中英文对照"
      }
    ];
    const viewModeOptions = [
      {
        value: config.ViewModeEnum.PLANE,
        label: "2D"
      },
      {
        value: config.ViewModeEnum.STEREOSCOPIC,
        label: "3D"
      }
    ];
    const featuresOptions = [
      {
        value: config.FeaturesEnum.BG,
        label: "显示地图背景"
      },
      {
        value: config.FeaturesEnum.POINT,
        label: "显示标识"
      },
      {
        value: config.FeaturesEnum.ROAD,
        label: "显示道路"
      },
      {
        value: config.FeaturesEnum.BUILDING,
        label: "显示建筑"
      }
    ];
    const MarkerOptions = [
      {
        value: config.MarkerEnum.CIRCLE_MARKER,
        label: "圆形标点"
      },
      {
        value: config.MarkerEnum.MARKER,
        label: "定位标点"
      },
      {
        value: config.MarkerEnum.NONE,
        label: "隐藏标点"
      }
    ];
    return (_ctx, _cache) => {
      const _component_n_select = runtimeCore_esmBundler.resolveComponent("n-select");
      const _component_n_input = runtimeCore_esmBundler.resolveComponent("n-input");
      const _component_n_checkbox = runtimeCore_esmBundler.resolveComponent("n-checkbox");
      const _component_n_space = runtimeCore_esmBundler.resolveComponent("n-space");
      const _component_n_checkbox_group = runtimeCore_esmBundler.resolveComponent("n-checkbox-group");
      const _component_n_input_number = runtimeCore_esmBundler.resolveComponent("n-input-number");
      const _component_n_radio = runtimeCore_esmBundler.resolveComponent("n-radio");
      const _component_n_radio_group = runtimeCore_esmBundler.resolveComponent("n-radio-group");
      const _component_n_color_picker = runtimeCore_esmBundler.resolveComponent("n-color-picker");
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock(runtimeCore_esmBundler.Fragment, null, [
        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: "语言类型",
              alone: true
            }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_select, {
                      size: "small",
                      value: __props.optionData.mapOptions.lang,
                      "onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.optionData.mapOptions.lang = $event),
                      options: langOptions
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), {
              name: "Key",
              alone: true
            }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "请务必使用自己的高德应用 key" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_input, {
                      value: __props.optionData.mapOptions.amapKey,
                      "onUpdate:value": _cache[1] || (_cache[1] = ($event) => __props.optionData.mapOptions.amapKey = $event),
                      size: "small"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), {
              name: "自定义地图样式ID",
              alone: true
            }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_input, {
                      size: "small",
                      value: __props.optionData.mapOptions.amapStyleKeyCustom,
                      "onUpdate:value": _cache[2] || (_cache[2] = ($event) => __props.optionData.mapOptions.amapStyleKeyCustom = $event)
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        }),
        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_select, {
                      size: "small",
                      value: __props.optionData.mapOptions.amapStyleKey,
                      "onUpdate:value": _cache[3] || (_cache[3] = ($event) => __props.optionData.mapOptions.amapStyleKey = $event),
                      options: themeOptions
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), {
              name: "内容",
              alone: true
            }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(_component_n_checkbox_group, {
                  value: __props.optionData.mapOptions.features,
                  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => __props.optionData.mapOptions.features = $event)
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_space, { "item-style": "display: flex;" }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock(runtimeCore_esmBundler.Fragment, null, runtimeCore_esmBundler.renderList(featuresOptions, (item, index) => {
                          return runtimeCore_esmBundler.createVNode(_component_n_checkbox, {
                            value: item.value,
                            label: item.label,
                            key: index
                          }, null, 8, ["value", "label"]);
                        }), 64))
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                }, 8, ["value"])
              ]),
              _: 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_input_number, {
                      value: __props.optionData.mapOptions.amapLon,
                      "onUpdate:value": _cache[5] || (_cache[5] = ($event) => __props.optionData.mapOptions.amapLon = $event),
                      "show-button": false,
                      size: "small"
                    }, {
                      suffix: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("°")
                      ]),
                      _: 1
                    }, 8, ["value"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "纬度" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                      value: __props.optionData.mapOptions.amapLat,
                      "onUpdate:value": _cache[6] || (_cache[6] = ($event) => __props.optionData.mapOptions.amapLat = $event),
                      "show-button": false,
                      size: "small"
                    }, {
                      suffix: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("°")
                      ]),
                      _: 1
                    }, 8, ["value"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "初始缩放" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                      value: __props.optionData.mapOptions.amapZindex,
                      "onUpdate:value": _cache[7] || (_cache[7] = ($event) => __props.optionData.mapOptions.amapZindex = $event),
                      min: 0,
                      size: "small"
                    }, null, 8, ["value"])
                  ]),
                  _: 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), null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_radio_group, {
                      value: __props.optionData.mapOptions.viewMode,
                      "onUpdate:value": _cache[8] || (_cache[8] = ($event) => __props.optionData.mapOptions.viewMode = $event),
                      name: "radiogroup"
                    }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                          default: runtimeCore_esmBundler.withCtx(() => [
                            (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock(runtimeCore_esmBundler.Fragment, null, runtimeCore_esmBundler.renderList(viewModeOptions, (song) => {
                              return runtimeCore_esmBundler.createVNode(_component_n_radio, {
                                key: song.value,
                                value: song.value
                              }, {
                                default: runtimeCore_esmBundler.withCtx(() => [
                                  runtimeCore_esmBundler.createTextVNode(shared_esmBundler.toDisplayString(song.label), 1)
                                ]),
                                _: 2
                              }, 1032, ["value"]);
                            }), 64))
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            __props.optionData.mapOptions.viewMode === "3D" ? (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createBlock(reactivity_esmBundler.unref(SettingItemBox.default), { key: 0 }, {
              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: __props.optionData.mapOptions.skyColor,
                      "onUpdate:value": _cache[9] || (_cache[9] = ($event) => __props.optionData.mapOptions.skyColor = $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: __props.optionData.mapOptions.pitch,
                      "onUpdate:value": _cache[10] || (_cache[10] = ($event) => __props.optionData.mapOptions.pitch = $event),
                      min: 0,
                      max: 83,
                      size: "small"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })) : runtimeCore_esmBundler.createCommentVNode("", true)
          ]),
          _: 1
        }),
        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), { name: "类型" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_select, {
                      size: "small",
                      value: __props.optionData.mapOptions.mapMarkerType,
                      "onUpdate:value": _cache[11] || (_cache[11] = ($event) => __props.optionData.mapOptions.mapMarkerType = $event),
                      options: MarkerOptions
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "颜色" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_color_picker, {
                      value: __props.optionData.mapOptions.marker.fillColor,
                      "onUpdate:value": _cache[12] || (_cache[12] = ($event) => __props.optionData.mapOptions.marker.fillColor = $event),
                      size: "small"
                    }, null, 8, ["value"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        })
      ], 64);
    };
  }
});
exports.default = _sfc_main;
