import "../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.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 { openDoc, openGiteeSourceCode } from "../../../../../utils/router.mjs";
import "../../../../../store/modules/designStore/designStore.mjs";
import "../../../../../../node_modules/.pnpm/vue3-lazyload@0.2.5-beta_a6dezdz3je235ci4e3tu4rayna/node_modules/vue3-lazyload/dist/vue3-lazyload.esm.mjs";
import "../../../../../components/GoSkeleton/index.vue.mjs";
import "../../../../../components/GoLoading/index.mjs";
import { icon } from "../../../../../plugins/icon.mjs";
import "../../../../../settings/designSetting.mjs";
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createBlock, createTextVNode, withDirectives } 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";
import { vShow } from "../../../../../../node_modules/.pnpm/@vue_runtime-dom@3.3.4/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.mjs";
const _hoisted_1 = { class: "go-aside-footer" };
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    collapsed: Boolean
  },
  setup(__props) {
    const { DocumentTextIcon, CodeSlashIcon } = icon.ionicons5;
    const handleDoc = () => {
      openDoc();
    };
    const handleCode = () => {
      openGiteeSourceCode();
    };
    return (_ctx, _cache) => {
      const _component_n_divider = resolveComponent("n-divider");
      const _component_n_icon = resolveComponent("n-icon");
      const _component_n_button = resolveComponent("n-button");
      const _component_n_text = resolveComponent("n-text");
      const _component_n_tooltip = resolveComponent("n-tooltip");
      const _component_n_space = resolveComponent("n-space");
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createVNode(_component_n_divider, { class: "go-mt-0" }),
        createVNode(_component_n_space, { justify: "space-around" }, {
          default: withCtx(() => [
            __props.collapsed ? (openBlock(), createBlock(_component_n_tooltip, {
              key: 0,
              placement: "right",
              trigger: "hover"
            }, {
              trigger: withCtx(() => [
                createVNode(_component_n_button, {
                  secondary: "",
                  onClick: handleDoc
                }, {
                  icon: withCtx(() => [
                    createVNode(_component_n_icon, { size: "18" }, {
                      default: withCtx(() => [
                        createVNode(unref(DocumentTextIcon))
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              default: withCtx(() => [
                createVNode(_component_n_text, null, {
                  default: withCtx(() => [
                    createTextVNode(" global.doc ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })) : (openBlock(), createBlock(_component_n_button, {
              key: 1,
              secondary: "",
              onClick: handleDoc
            }, {
              icon: withCtx(() => [
                createVNode(_component_n_icon, { size: "18" }, {
                  default: withCtx(() => [
                    createVNode(unref(DocumentTextIcon))
                  ]),
                  _: 1
                })
              ]),
              default: withCtx(() => [
                createVNode(_component_n_text, null, {
                  default: withCtx(() => [
                    createTextVNode("global.doc")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })),
            __props.collapsed ? (openBlock(), createBlock(_component_n_tooltip, {
              key: 2,
              placement: "right",
              trigger: "hover"
            }, {
              trigger: withCtx(() => [
                createVNode(_component_n_button, {
                  secondary: "",
                  onClick: handleDoc
                }, {
                  icon: withCtx(() => [
                    createVNode(_component_n_icon, { size: "18" }, {
                      default: withCtx(() => [
                        createVNode(unref(CodeSlashIcon))
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              default: withCtx(() => [
                createVNode(_component_n_text, null, {
                  default: withCtx(() => [
                    createTextVNode(" global.code_addr ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })) : (openBlock(), createBlock(_component_n_button, {
              key: 3,
              secondary: "",
              onClick: handleCode
            }, {
              icon: withCtx(() => [
                createVNode(_component_n_icon, { size: "18" }, {
                  default: withCtx(() => [
                    createVNode(unref(CodeSlashIcon))
                  ]),
                  _: 1
                })
              ]),
              default: withCtx(() => [
                withDirectives(createVNode(_component_n_text, null, {
                  default: withCtx(() => [
                    createTextVNode("global.code_addr")
                  ]),
                  _: 1
                }, 512), [
                  [vShow, !__props.collapsed]
                ])
              ]),
              _: 1
            }))
          ]),
          _: 1
        })
      ]);
    };
  }
});
export {
  _sfc_main as default
};
