System.register(["./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./php-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(t,e){"use strict";var a,s,o,n,l,r,c,i,u,d,p,m,f,b,g,v,y,_,S,x,h,k,C,$,P,j,w,R,N,q,z;return{setters:[t=>{a=t.u,s=t.R,o=t.c,n=t.j,l=t._,r=t.o,c=t.q,i=t.p},t=>{u=t.d,d=t.a},t=>{p=t.g,m=t.s},t=>{f=t.a},t=>{b=t.k,g=t.P,v=t.a0,y=t.r,_=t.c,S=t.R,x=t.a2,h=t.a3,k=t.V,C=t.S,$=t.U,P=t.a4,j=t.H,w=t.X,R=t.j},t=>{N=t.aC,q=t.d9,z=t.dh}],execute:function(){var e=document.createElement("style");e.textContent=".soft-btn.n-button--error-type[data-v-8b588c10]{--n-color: rgba(239, 8, 8, .14);--n-color-hover: rgba(239, 8, 8, .14);--n-color-focus: rgba(239, 8, 8, .14);--n-color-pressed: rgba(239, 8, 8, .14);--n-border: 1px solid rgba(239, 8, 8, .19);--n-border-hover: 1px solid rgba(239, 8, 8, .19);--n-border-pressed: 1px solid rgba(239, 8, 8, .19);--n-border-focus: 1px solid rgba(239, 8, 8, .19);--n-text-color: #666;--n-text-color-pressed: #666;--n-text-color-focus: #666;--n-text-color-hover: #ef0808}\n",document.head.appendChild(e);const L={key:0,class:"i-material-symbols:network-node color-#20a53a text-16px"},W={class:"m-2px"},B=b({__name:"index",props:{softName:{default:""},openSoft:{default:""},isWebSite:{type:Boolean,default:!1}},setup(t){const e=t,{t:i}=g(),{multiService:b}=v(a()),B=y({status:!0,s_status:!0,msg:"",version:"0",name:"",title:"",admin:!1,s_version:""}),D=_((()=>s(B.value.name)+" "+B.value.version)),{loading:E,setLoading:H}=u(),I=async()=>{try{H(!0);const{message:t}=await p({name:e.softName});o(t)&&(B.value=t)}finally{H(!1)}},M=(t,e)=>{const a=`${e} ${D.value}`,o=i("Component.SoftState.index_1",[e.toLowerCase(),s(B.value.name)]);d({title:a,content:o,onConfirm:async()=>{await m({name:B.value.s_version,type:t}),I()}})},U=()=>{f({name:e.openSoft?e.openSoft:e.softName,title:s(B.value.name),admin:!1})};return I(),(t,e)=>{const a=n,s=l,o=N,u=r,d=c,p=q,m=z;return S(),x(m,{trigger:"hover"},{trigger:h((()=>[k(E)?(S(),x(a,{key:0,width:120,height:32,sharp:!1})):(S(),x(o,{key:1,class:"min-w-120px soft-btn",type:k(B).s_status?"default":"error",onClick:U},{default:h((()=>[t.isWebSite&&k(b)?(S(),C("i",L)):(S(),x(s,{key:1,name:`soft-${t.softName}`,size:"20"},null,8,["name"])),$("span",W,P(k(D)),1),$("span",{class:j(["iconfont","icon-"+(k(B).s_status?"start":"stop")])},null,2)])),_:1},8,["type"]))])),default:h((()=>[w(p,{class:"items-center",size:8},{default:h((()=>[w(u,{onClick:e[0]||(e[0]=e=>M(k(B).s_status?"stop":"start",k(B).s_status?t.$t("Public.Status.Stop"):t.$t("Public.Status.Start")))},{default:h((()=>[R(P(k(B).s_status?t.$t("Public.Status.Stop"):t.$t("Public.Status.Start")),1)])),_:1}),w(d,{class:"mx-0!",vertical:""}),w(u,{onClick:e[1]||(e[1]=t=>M("restart",k(i)("Public.Status.Restart")))},{default:h((()=>[R(P(t.$t("Public.Status.Restart")),1)])),_:1}),w(d,{class:"mx-0!",vertical:""}),w(u,{onClick:e[2]||(e[2]=t=>M("reload",k(i)("Public.Status.Reload")))},{default:h((()=>[R(P(t.$t("Public.Status.Reload")),1)])),_:1}),w(d,{class:"mx-0!",vertical:""}),w(u,{onClick:U},{default:h((()=>[R(P(t.$t("Database.Mysql.index_26")),1)])),_:1})])),_:1})])),_:1})}}});t("_",i(B,[["__scopeId","data-v-8b588c10"]]))}}}));
