System.register(["./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./php-legacy.js?v=1753954525509","./soft-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509"],(function(t,e){"use strict";var a,s,o,n,l,r,c,u,i,d,p,f,m,b,g,v,_,y,x,S,h,C,$,P,k,j,w,N;return{setters:[t=>{a=t.M,s=t.c,o=t.h,n=t._,l=t.o,r=t.p,c=t.e},t=>{u=t.c,i=t.d},t=>{d=t.g,p=t.s},t=>{f=t.u},t=>{m=t.ay,b=t.bY,g=t.c3},t=>{v=t.k,_=t.P,y=t.r,x=t.c,S=t.U,h=t.a1,C=t.a2,$=t.X,P=t.Q,k=t.W,j=t.a3,w=t.H,N=t.j}],execute:function(){var e=document.createElement("style");e.textContent=".soft-btn.n-button--error-type[data-v-155ce671]{--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 R={class:"m-2px"};t("_",c(v({__name:"index",props:{softName:{default:""},openSoft:{default:""}},setup(t){const e=t,{t:c}=_(),v=y({status:!0,s_status:!0,msg:"",version:"0",name:"",title:"",admin:!1,s_version:""}),z=x((()=>a(v.value.name)+" "+v.value.version)),{loading:L,setLoading:M}=u(),q=async()=>{try{M(!0);const{message:t}=await d({name:e.softName});s(t)&&(v.value=t)}finally{M(!1)}},D=(t,e)=>{const s=`${e} ${z.value}`,o=c("Component.SoftState.index_1",[e.toLowerCase(),a(v.value.name)]);i({title:s,content:o,onConfirm:async()=>{await p({name:v.value.s_version,type:t}),q()}})},E=()=>{f({name:e.openSoft?e.openSoft:e.softName,title:a(v.value.name),admin:!1})};return q(),(t,e)=>{const a=o,s=n,u=m,i=l,d=r,p=b,f=g;return S(),h(f,{trigger:"hover"},{trigger:C((()=>[$(L)?(S(),h(a,{key:0,width:120,height:32,sharp:!1})):(S(),h(u,{key:1,class:"min-w-120px soft-btn",type:$(v).s_status?"default":"error",onClick:E},{default:C((()=>[P(s,{name:`soft-${t.softName}`,size:"20"},null,8,["name"]),k("span",R,j($(z)),1),k("span",{class:w(["iconfont","icon-"+($(v).s_status?"start":"stop")])},null,2)])),_:1},8,["type"]))])),default:C((()=>[P(p,{class:"items-center",size:8},{default:C((()=>[P(i,{onClick:e[0]||(e[0]=e=>D($(v).s_status?"stop":"start",$(v).s_status?t.$t("Public.Status.Stop"):t.$t("Public.Status.Start")))},{default:C((()=>[N(j($(v).s_status?t.$t("Public.Status.Stop"):t.$t("Public.Status.Start")),1)])),_:1}),P(d,{class:"mx-0!",vertical:""}),P(i,{onClick:e[1]||(e[1]=t=>D("restart",$(c)("Public.Status.Restart")))},{default:C((()=>[N(j(t.$t("Public.Status.Restart")),1)])),_:1}),P(d,{class:"mx-0!",vertical:""}),P(i,{onClick:e[2]||(e[2]=t=>D("reload",$(c)("Public.Status.Reload")))},{default:C((()=>[N(j(t.$t("Public.Status.Reload")),1)])),_:1}),P(d,{class:"mx-0!",vertical:""}),P(i,{onClick:E},{default:C((()=>[N(j(t.$t("Database.Mysql.index_26")),1)])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-155ce671"]]))}}}));
