import{d as u,H as y,i as w,s as C,h as k,c as L,j as U,l as i,o as V,a as N,x as a,y as n,e as s,q as t,p as d,u as B,L as p,_ as G}from"./index.4042ed24.js";const $={class:"upgrade-dialog"},E={class:"upgrade-title"},H={class:"upgrade-title-warp"},O={class:"upgrade-title-warp-txt"},j={class:"upgrade-title-warp-version"},z={class:"upgrade-content"},A={class:"mt5"},I={class:"upgrade-content-desc mt5"},S={class:"upgrade-btn"},q=u({name:"layoutUpgrade"}),D=u({...q,setup(M){const{t:l}=y(),_=w(),{themeConfig:g}=C(_),e=k({isUpgrade:!1,version:"2.0.0",isLoading:!1,btnTxt:""}),m=L(()=>g.value),f=()=>{e.isUpgrade=!1},b=()=>{e.isLoading=!0,e.btnTxt=l("message.upgrade.btnTwoLoading"),setTimeout(()=>{p.clear(),window.location.reload(),p.set("version",e.version)},2e3)},v=()=>{setTimeout(()=>{e.isUpgrade=!0},2e3)};return U(()=>{v(),setTimeout(()=>{e.btnTxt=l("message.upgrade.btnTwo")},200)}),(o,c)=>{const h=i("el-link"),r=i("el-button"),x=i("el-dialog");return V(),N("div",$,[a(x,{modelValue:e.isUpgrade,"onUpdate:modelValue":c[0]||(c[0]=T=>e.isUpgrade=T),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",H,[s("span",O,t(o.$t("message.upgrade.title")),1),s("span",j,"v"+t(e.version),1)])]),s("div",z,[d(t(B(m).globalTitle)+" "+t(o.$t("message.upgrade.msg"))+" ",1),s("div",A,[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",I,t(o.$t("message.upgrade.desc")),1)]),s("div",S,[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:b,loading:e.isLoading},{default:n(()=>[d(t(e.btnTxt),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"])])}}});const F=G(D,[["__scopeId","data-v-547dbb04"],["__file","/data/jenkins/workspace/badp-bcxin-web-5.x-dispatchBusiness/src/layout/upgrade/index.vue"]]);export{F as default};
