import{d as _,C as x,u as y,s as w,a as k,D as L,o as U,c as l,f as V,g as N,l as a,m as n,h as s,k as t,j as d,e as G,L as p}from"./index.3a30a18d.js";import{_ as $}from"./_plugin-vue_export-helper.cdc0426e.js";const B={class:"upgrade-dialog"},E={class:"upgrade-title"},O={class:"upgrade-title-warp"},z={class:"upgrade-title-warp-txt"},A={class:"upgrade-title-warp-version"},D={class:"upgrade-content"},H={class:"mt5"},I={class:"upgrade-content-desc mt5"},S={class:"upgrade-btn"},j=_({name:"layoutUpgrade"}),M=_({...j,setup(R){const{t:i}=x(),u=y(),{themeConfig:g}=w(u),e=k({isUpgrade:!1,version:"2.0.0",isLoading:!1,btnTxt:""}),m=L(()=>g.value),f=()=>{e.isUpgrade=!1},v=()=>{e.isLoading=!0,e.btnTxt=i("message.upgrade.btnTwoLoading"),setTimeout(()=>{p.clear(),window.location.reload(),p.set("version",e.version)},2e3)},h=()=>{setTimeout(()=>{e.isUpgrade=!0},2e3)};return U(()=>{h(),setTimeout(()=>{e.btnTxt=i("message.upgrade.btnTwo")},200)}),(o,r)=>{const b=l("el-link"),c=l("el-button"),T=l("el-dialog");return V(),N("div",B,[a(T,{modelValue:e.isUpgrade,"onUpdate:modelValue":r[0]||(r[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",E,[s("div",O,[s("span",z,t(o.$t("message.upgrade.title")),1),s("span",A,"v"+t(e.version),1)])]),s("div",D,[d(t(G(m).globalTitle)+" "+t(o.$t("message.upgrade.msg"))+" ",1),s("div",H,[a(b,{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",I,t(o.$t("message.upgrade.desc")),1)]),s("div",S,[a(c,{round:"",size:"default",type:"info",text:"",onClick:f},{default:n(()=>[d(t(o.$t("message.upgrade.btnOne")),1)]),_:1}),a(c,{type:"primary",round:"",size:"default",onClick:v,loading:e.isLoading},{default:n(()=>[d(t(e.btnTxt),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"])])}}});const J=$(M,[["__scopeId","data-v-dd49db3b"]]);export{J as default};
