import{_ as e}from"./index.vue_vue_type_script_setup_true_lang6.js?v=1753954525509";import{i as s,cI as a,cL as t,w as n,h as i,e as l,X as r,q as o,z as d,_ as p,cM as u,cN as c}from"./page_layout.js?v=1753954525509";import{c as m,N as f,Q as _}from"./public.js?v=1753954525509";import{e as x,k as y,b as h,U as b,a1 as v,a2 as k,Q as w,W as S,a3 as g,X as j,j as C,r as q,al as N,V as P,O as M,F as $}from"./vue.js?v=1753954525509";import{bY as z,ay as D}from"./naive.js?v=1753954525509";import{g as F}from"./soft2.js?v=1753954525509";import{u as O}from"./soft.js?v=1753954525509";import"./index.js?v=1753954525509";const{t:R}=s.global,U=x({p:1,row:20,query:"",type:0,tojs:"soft.get_list",force:0}),H=x([{label:R("Crontab.Script.index_25"),value:0},{label:R("Mail.Setting.index_7"),value:-1},{label:R("Soft.index_1"),value:5},{label:R("Database.index_22"),value:6},{label:R("Soft.index_2"),value:7},{label:R("Soft.index_3"),value:8}]),I={class:"w-80px! inline-block"},L=y({__name:"app-seach",setup(s){const t=a(),n=()=>{U.p=1,t.setRefresh(!0)},i=()=>{U.force=1,t.setRefresh(!0)};return h((()=>{U.p=1,U.query=""})),(s,a)=>{const t=e,l=z,r=D;return b(),v(l,{class:"py-16px justify-between!"},{default:k((()=>[w(l,{class:"items-center"},{default:k((()=>[S("span",I,g(s.$t("Soft.index_4")),1),w(t,{clearable:"",class:"w-580px!",value:j(U).query,"onUpdate:value":a[0]||(a[0]=e=>j(U).query=e),placeholder:s.$t("Soft.index_5"),onSearch:n},null,8,["value","placeholder"])])),_:1}),w(r,{onClick:i},{default:k((()=>[C(g(s.$t("Soft.index_6")),1)])),_:1})])),_:1})}}}),Q={class:"w-80px inline-block"},X=["onClick"],V=["src"],W=l(y({__name:"recently-used",setup(e){const s=q(),{loading:a,setLoading:l}=m();return(async()=>{try{l(!0);const{message:e}=await t();n(e)&&(s.value=e)}finally{l(!1)}})(),(e,t)=>{const n=i,l=z;return b(),v(l,{class:"items-center h-42px"},{default:k((()=>[S("span",Q,g(e.$t("Soft.index_8")),1),j(a)?(b(),v(n,{key:0,width:800,sharp:!1,size:"medium"})):N("",!0),(b(!0),P($,null,M(j(s),(e=>(b(),P("div",{class:"list",key:e.id,onClick:s=>{O(e)}},[S("img",{class:"w-22px mr-5px",src:j(F)(e.name)},null,8,V),S("span",null,g(e.title),1)],8,X)))),128))])),_:1})}}}),[["__scopeId","data-v-ba583501"]]),{t:Y}=s.global,A=()=>({key:"softwareName",title:Y("Soft.index_29"),width:"220",ellipsis:{tooltip:{width:"trigger"}},render:e=>w("span",{class:e.setup&&!f(e)?"cursor-pointer":"",onClick:e.setup&&!f(e)?()=>O(e):void 0},[w("img",{class:"w-22px max-h-22px mr-5px",src:F(e.name)},null),e.title,C(" "),e.title.indexOf("PHP-")>-1?"":e.version])}),B=()=>({key:"name",title:Y("Soft.index_14"),width:"100",render:e=>{if(e.pid>0){if(e.endtime>0)return r(e.endtime,"yyyy-MM-dd");if(0===e.endtime)return Y("Soft.index_27");if(-1===e.endtime)return Y("Soft.index_28");if(-2===e.endtime)return Y("Site.PHP.index_28")}return"--"}}),E=()=>({key:"location",title:Y("Database.index_19"),width:"80",render:e=>e.setup?w(p,{name:"base-dir",class:"cursor-pointer",size:"16",onClick:()=>{o("Path",e.uninsatll_checks),d.push("/files")}},null):"---"}),G=()=>({key:"status",title:Y("Component.UploadFile.index_5"),width:"80",render:e=>{if(5!==e.type)return w("span",null,[C("--")]);const s="phpmyadmin"===e.name||e.status;return e.setup?w("span",{class:"iconfont icon-".concat(s?"start":"stop")},null):w("span",null,[C("--")])}}),J=()=>({key:"displayOnDashboard",title:Y("Soft.index_30"),width:"80",render:e=>e.setup?w(_,{value:e.index_display,onClick:s=>{s?u({sName:e.name}):c({sName:e.name})}},null):"---"}),K=()=>({key:"name",title:Y("Soft.index_31"),width:"80",render:e=>e.sort?e.sort<=0||e.sort>5?Y("Soft.index_32"):e.sort.toFixed(1):"--"});export{W as R,L as _,B as a,E as b,G as c,J as d,K as e,H as o,U as s,A as u};
