import{F as x,i as y,j as c}from"./index.ae7ce77b.js";import{d as p,al as T,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.6daa721c.js";import{_ as G}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.346c766a.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=p({name:"layoutUpgrade"}),M=p({...H,setup(D){const{t:_}=x.useI18n(),u=y(),{themeConfig:g}=T(u),e=k({isUpgrade:!1,version:"1.0.0",isLoading:!1,btnTxt:""}),m=w(()=>g.value),f=()=>{e.isUpgrade=!1},v=()=>{e.isLoading=!0,e.btnTxt=_("message.upgrade.btnTwoLoading"),setTimeout(()=>{c.clear(),window.location.reload(),c.set("version",e.version)},2e3)};return L(()=>{}),(o,l)=>{const h=i("el-link"),r=i("el-button"),b=i("el-dialog");return U(),V("div",N,[a(b,{modelValue:e.isUpgrade,"onUpdate:modelValue":l[0]||(l[0]=C=>e.isUpgrade=C),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(m.value.globalTitle)+" "+t(o.$t("message.upgrade.msg"))+" ",1),s("div",O,[a(h,{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:f},{default:n(()=>[d(t(o.$t("message.upgrade.btnOne")),1)]),_:1}),a(r,{type:"primary",round:"",size:"default",onClick:v,loading:e.isLoading},{default:n(()=>[d(t(e.btnTxt),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"])])}}});const q=G(M,[["__scopeId","data-v-ed6a7646"]]);export{q as default};
