const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/Login.C_oFk9qn.js","js/element-plus.CkEW9frc.js","js/.pnpm.BW3P1y8f.js","css/.pnpm.DodhYl8G.css","css/element-plus.B-meKFhT.css","js/index.CMd5bD1r.js","js/codemirror.CvJAcn2d.js","css/codemirror.DCcVQTiv.css","css/index.B0LRe0AS.css","js/_plugin-vue_export-helper.1tPrXgE0.js","css/Login.DhaQY825.css","js/Register.OcLvSvcl.js","js/ResetPwd.D74e_hLH.js"])))=>i.map(i=>d[i]); import { c as useConfigStore, _ as __vitePreload } from "./index.CMd5bD1r.js"; import { l as ElTooltip, R as ElImage, i as ElIcon, p as ElBadge, r as ElText } from "./element-plus.CkEW9frc.js"; import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang.BmYCVfK2.js"; import { J as defineComponent, e9 as useI18n, t as onMounted, aO as resolveComponent, S as openBlock, _ as createElementBlock, a1 as createBaseVNode, $ as createVNode, a0 as withCtx, o as unref, a9 as createTextVNode, aa as toDisplayString, T as createBlock, a7 as resolveDynamicComponent, z as isRef, ac as Transition, a2 as normalizeStyle, r as ref, eg as defineAsyncComponent, ak as reactive } from "./.pnpm.BW3P1y8f.js"; import { C as CommonWrapper, _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang.BdXauzXx.js"; import { _ as _export_sfc } from "./_plugin-vue_export-helper.1tPrXgE0.js"; import "./codemirror.CvJAcn2d.js"; const _hoisted_1 = { class: "action-bar" }; const _hoisted_2 = { "flex-1": "", "flex-center": "" }; const _hoisted_3 = { class: "p-4xl w-full h-auto sm:w-450px border-rd-10px sm:h-680px shadow-[var(--el-box-shadow-light)] backdrop-blur-3px" }; const _hoisted_4 = { "w-full": "", flex: "", "flex-col": "", "items-center": "" }; const _hoisted_5 = { class: "flex items-center justify-center mb-4" }; const _hoisted_6 = { class: "ml-2 text-xl font-bold" }; const _hoisted_7 = ["href"]; const _hoisted_8 = ["href"]; const _hoisted_9 = ["href"]; const _hoisted_10 = ["href"]; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "index copy", setup(__props) { const configStore = useConfigStore(); const t = useI18n().t; const component = ref("login"); const formComponents = { login: defineAsyncComponent(() => __vitePreload(() => import("./Login.C_oFk9qn.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]) : void 0)), register: defineAsyncComponent(() => __vitePreload(() => import("./Register.OcLvSvcl.js"), true ? __vite__mapDeps([11,1,2,3,4,5,6,7,8]) : void 0)), resetPwd: defineAsyncComponent(() => __vitePreload(() => import("./ResetPwd.D74e_hLH.js"), true ? __vite__mapDeps([12,1,2,3,4,5,6,7,8]) : void 0)) }; const loginPreset = reactive({ username: "admin", password: "123456" }); onMounted(() => { configStore.getConfig(); }); return (_ctx, _cache) => { var _a, _b; const _component_el_tooltip = ElTooltip; const _component_LangSelect = _sfc_main$2; const _component_el_image = ElImage; const _component_QuestionFilled = resolveComponent("QuestionFilled"); const _component_el_icon = ElIcon; const _component_el_badge = ElBadge; const _component_el_text = ElText; return openBlock(), createElementBlock("div", { class: "login-container", style: normalizeStyle({ "background-image": ((_b = (_a = unref(configStore).configData) == null ? void 0 : _a.sys_login_background) == null ? void 0 : _b.config_value) ? `url(${unref(configStore).configData.sys_login_background.config_value})` : "/background.svg" }) }, [ createBaseVNode("div", _hoisted_1, [ createVNode(_component_el_tooltip, { content: unref(t)("login.themeToggle"), placement: "bottom" }, { default: withCtx(() => [ createVNode(CommonWrapper, null, { default: withCtx(() => [ createVNode(_sfc_main$1) ]), _: 1 }) ]), _: 1 }, 8, ["content"]), createVNode(_component_el_tooltip, { content: unref(t)("login.languageToggle"), placement: "bottom" }, { default: withCtx(() => [ createVNode(CommonWrapper, null, { default: withCtx(() => [ createVNode(_component_LangSelect, { size: "text-20px" }) ]), _: 1 }) ]), _: 1 }, 8, ["content"]) ]), createBaseVNode("div", _hoisted_2, [ createBaseVNode("div", _hoisted_3, [ createBaseVNode("div", _hoisted_4, [ createVNode(_component_el_image, { src: unref(configStore).configData.sys_web_logo.config_value, style: { "width": "140px" } }, null, 8, ["src"]), createBaseVNode("div", _hoisted_5, [ createVNode(_component_el_tooltip, { content: unref(configStore).configData.sys_web_description.config_value, placement: "bottom" }, { default: withCtx(() => [ createVNode(_component_el_icon, { class: "cursor-help" }, { default: withCtx(() => [ createVNode(_component_QuestionFilled) ]), _: 1 }) ]), _: 1 }, 8, ["content"]), createBaseVNode("div", _hoisted_6, [ createVNode(_component_el_badge, { value: `v ${unref(configStore).configData.sys_web_version.config_value}`, type: "success" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(configStore).configData.sys_web_title.config_value), 1) ]), _: 1 }, 8, ["value"]) ]) ]), createVNode(Transition, { name: "fade-slide", mode: "out-in" }, { default: withCtx(() => [ (openBlock(), createBlock(resolveDynamicComponent(formComponents[unref(component)]), { modelValue: unref(component), "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(component) ? component.value = $event : null), "preset-username": unref(loginPreset).username, "onUpdate:presetUsername": _cache[1] || (_cache[1] = ($event) => unref(loginPreset).username = $event), "preset-password": unref(loginPreset).password, "onUpdate:presetPassword": _cache[2] || (_cache[2] = ($event) => unref(loginPreset).password = $event), class: "w-90%" }, null, 40, ["modelValue", "preset-username", "preset-password"])) ]), _: 1 }) ]) ]), createVNode(_component_el_text, { size: "small", class: "py-2.5! fixed bottom-0 text-center" }, { default: withCtx(() => [ createBaseVNode("a", { href: unref(configStore).configData.sys_git_code.config_value, target: "_blank" }, toDisplayString(unref(configStore).configData.sys_web_copyright.config_value) + " | ", 9, _hoisted_7), createBaseVNode("a", { href: unref(configStore).configData.sys_help_doc.config_value, target: "_blank" }, "帮助 |", 8, _hoisted_8), createBaseVNode("a", { href: unref(configStore).configData.sys_web_privacy.config_value, target: "_blank" }, "隐私 |", 8, _hoisted_9), createBaseVNode("a", { href: unref(configStore).configData.sys_web_clause.config_value, target: "_blank" }, "条款", 8, _hoisted_10), createTextVNode(" " + toDisplayString(unref(configStore).configData.sys_keep_record.config_value), 1) ]), _: 1 }) ]) ], 4); }; } }); const index_copy = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9d9af300"]]); export { index_copy as default };