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