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