import{F as x,i as C,j as c}from"./index.ad3efb29.js";import{d as T,ay as y,Z as k,k as w,j as L,ai as i,o as U,c as V,U as a,O as n,a as s,T as t,S as d}from"./vue.adf17aba.js";import{_ as N}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const G={class:"upgrade-dialog"},O={class:"upgrade-title"},$={class:"upgrade-title-warp"},j={class:"upgrade-title-warp-txt"},B={class:"upgrade-title-warp-version"},E={class:"upgrade-content"},I={class:"mt5"},z={class:"upgrade-content-desc mt5"},A={class:"upgrade-btn"},H=T({__name:"index",setup(S){const{t:p}=x.useI18n(),_=C(),{themeConfig:g}=y(_),e=k({isUpgrade:!1,version:"1.0.0",isLoading:!1,btnTxt:""}),u=w(()=>g.value),m=()=>{e.isUpgrade=!1},f=()=>{e.isLoading=!0,e.btnTxt=p("message.upgrade.btnTwoLoading"),setTimeout(()=>{c.clear(),window.location.reload(),c.set("version",e.version)},2e3)};return L(()=>{}),(o,l)=>{const v=i("el-link"),r=i("el-button"),h=i("el-dialog");return U(),V("div",G,[a(h,{modelValue:e.isUpgrade,"onUpdate:modelValue":l[0]||(l[0]=b=>e.isUpgrade=b),width:"300px","destroy-on-close":"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{default:n(()=>[s("div",O,[s("div",$,[s("span",j,t(o.$t("message.upgrade.title")),1),s("span",B,"v"+t(e.version),1)])]),s("div",E,[d(t(u.value.globalTitle)+" "+t(o.$t("message.upgrade.msg"))+" ",1),s("div",I,[a(v,{type:"primary",class:"font12",href:"https://gitee.com/lyt-top/vue-next-admin/blob/master/CHANGELOG.md",target:"_black"},{default:n(()=>[d(" CHANGELOG.md ")]),_:1})]),s("div",z,t(o.$t("message.upgrade.desc")),1)]),s("div",A,[a(r,{round:"",size:"default",type:"info",text:"",onClick:m},{default:n(()=>[d(t(o.$t("message.upgrade.btnOne")),1)]),_:1}),a(r,{type:"primary",round:"",size:"default",onClick:f,loading:e.isLoading},{default:n(()=>[d(t(e.btnTxt),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"])])}}});const q=N(H,[["__scopeId","data-v-a5e57795"]]);export{q as default};
