import{F as x,i as C,j as c}from"./index.0d411246.js";import{d as T,al as y,Q as k,k as w,j as L,a9 as i,o as U,c as V,M as a,G as n,a as s,L as t,K as d}from"./vue.3f733908.js";import{_ as G}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";const N={class:"upgrade-dialog"},$={class:"upgrade-title"},j={class:"upgrade-title-warp"},B={class:"upgrade-title-warp-txt"},E={class:"upgrade-title-warp-version"},I={class:"upgrade-content"},O={class:"mt5"},z={class:"upgrade-content-desc mt5"},A={class:"upgrade-btn"},H=T({__name:"index",setup(M){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",N,[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",$,[s("div",j,[s("span",B,t(o.$t("message.upgrade.title")),1),s("span",E,"v"+t(e.version),1)])]),s("div",I,[d(t(u.value.globalTitle)+" "+t(o.$t("message.upgrade.msg"))+" ",1),s("div",O,[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 S=G(H,[["__scopeId","data-v-a5e57795"]]);export{S as default};
