import{_ as d}from"./Card.vue_vue_type_script_setup_true_lang.1703796278973.js";import{M as m}from"./index.17037962789732.js";import{a as g,g as w,l as h,i as v}from"./license.1703796278973.js";import{d as x,k as a,p as y,r as D,o as M,c as k,a as c,b as B,u as i,z as C,A as T}from"./vue.1703796278973.js";import"./index.1703796278973308.js";import"./index.170379627897334.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import"./index.vue_vue_type_script_setup_true_name_PermissionButton_lang.1703796278973.js";import"./index.170379627897320.js";import"./index.170379627897315.js";import"./index.170379627897321.js";import"./permission.1703796278973.js";import"./index.170379627897314.js";import"./index.1703796278973310.js";import"./index.17037962789739.js";import"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./system.1703796278973.js";import"./comm.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897333.js";import"./default.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const I={style:{width:"200px"}},re=x({__name:"index",setup(L){let r=a(),n=a(),s=a();const l=e=>{e?_(e):m.error("请配置License")},f=async()=>{var t;const e=await g();e.status===200&&(s.value=e.result,n.value=(t=e.result)==null?void 0:t.license)},u=async()=>{const e=await w();e.status===200&&(r.value=e.result)},_=async e=>{if((await h(e)).status===200){m.success("配置成功");const o=await v();o.status===200&&!o.result.length?window.location.href="/#/init-home":window.location.href="/"}};return y(()=>{u(),f()}),(e,t)=>{const o=D("page-container");return M(),k(o,null,{default:c(()=>[B(d,{infoData:i(r),onSaveData:l,"license-data":i(n),licenseTime:i(s)},{default:c(()=>{var p;return[C("div",I,"到期时间:"+T((p=i(s))==null?void 0:p.expire),1)]}),_:1},8,["infoData","license-data","licenseTime"])]),_:1})}}});export{re as default};
