"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 designStore = require("../../../../../store/modules/designStore/designStore.js");
const chartEditStore = require("../../../../../store/modules/chartEditStore/chartEditStore.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("../../../../../settings/designSetting.js");
require("../../../../../components/GoLoading/index.js");
require("../../../../../components/GoSkeleton/index.vue.js");
const icon = require("../../../../../plugins/icon.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 runtimeDom_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_runtime-dom@3.3.4/node_modules/@vue/runtime-dom/dist/runtime-dom.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 reactivity_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
const _hoisted_1 = { class: "icon-item-box" };
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "index",
  props: {
    isGroup: {
      type: Boolean,
      default: false
    },
    hover: {
      type: Boolean,
      default: false
    },
    status: {
      type: Object,
      default: () => ({
        lock: false,
        hide: false
      })
    }
  },
  setup(__props) {
    const props = __props;
    runtimeDom_esmBundler.useCssVars((_ctx) => ({
      "efeb98bc": themeColor.value
    }));
    const { LockClosedOutlineIcon, LockOpenOutlineIcon, EyeOutlineIcon, EyeOffOutlineIcon } = icon.icon.ionicons5;
    const chartEditStore$1 = chartEditStore.useChartEditStore();
    const designStore$1 = designStore.useDesignStore();
    const themeColor = runtimeCore_esmBundler.computed(() => {
      return designStore$1.getAppTheme;
    });
    const showHandle = (e) => {
      e.stopPropagation();
      props.status.hide ? chartEditStore$1.setShow() : chartEditStore$1.setHide();
    };
    const lockHandle = (e) => {
      e.stopPropagation();
      props.status.lock ? chartEditStore$1.setUnLock() : chartEditStore$1.setLock();
    };
    return (_ctx, _cache) => {
      const _component_n_icon = runtimeCore_esmBundler.resolveComponent("n-icon");
      return runtimeCore_esmBundler.withDirectives((runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock("div", _hoisted_1, [
        runtimeCore_esmBundler.createVNode(_component_n_icon, {
          class: shared_esmBundler.normalizeClass(["go-ml-1 icon-item", { active: __props.status.lock }]),
          size: "15",
          component: __props.status.lock ? reactivity_esmBundler.unref(LockClosedOutlineIcon) : reactivity_esmBundler.unref(LockOpenOutlineIcon),
          onClick: lockHandle
        }, null, 8, ["class", "component"]),
        runtimeCore_esmBundler.createVNode(_component_n_icon, {
          class: shared_esmBundler.normalizeClass(["go-ml-1 icon-item", { active: __props.status.hide }]),
          size: "15",
          component: __props.status.hide ? reactivity_esmBundler.unref(EyeOffOutlineIcon) : reactivity_esmBundler.unref(EyeOutlineIcon),
          onClick: showHandle
        }, null, 8, ["class", "component"])
      ], 512)), [
        [runtimeDom_esmBundler.vShow, !__props.isGroup]
      ]);
    };
  }
});
exports.default = _sfc_main;
