System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-CvnE2rtV.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785"],(function(e,t){"use strict";var a,n,s,l,i,r,d,o,c,u,p,x,f,m,_,y,h,g,v,k,b,S,w,C,j,$,P,R,q,z,D,F,M,N,B,H;return{setters:[e=>{a=e._},e=>{n=e.a3,s=e.au,l=e.cz,i=e.n,r=e.c,d=e.a,o=e.cu,c=e.w,u=e.aJ,p=e.l,x=e.cA,f=e.cB},e=>{m=e.a4,_=e.r,y=e.e,h=e.k,g=e.b,v=e.$,k=e.a8,b=e.a9,S=e.a0,w=e._,C=e.aa,j=e.S,$=e.j,P=e.ak,R=e.Z,q=e.P,z=e.F},e=>{D=e.k,F=e.B,M=e.ax},e=>{N=e.g},e=>{B=e.u},e=>{H=e.j}],execute:function(){var t=document.createElement("style");t.textContent=".list[data-v-19dccd64]{display:flex;cursor:pointer;align-items:center;padding:10px}.list[data-v-19dccd64]:hover{background:var(--app-soft-used-hover)}\n/*$vite$:1*/",document.head.appendChild(t);const L=e("u",m("soft",(()=>{const e=_(!1);return{isRefresh:e,setRefresh:t=>{e.value=t}}}))),{t:O}=n.global,U=e("s",y({p:1,row:20,query:"",type:0,tojs:"soft.get_list",force:0})),A=(e("o",y([{label:O("Crontab.Script.index_25"),value:0},{label:O("Mail.Setting.index_7"),value:-1},{label:O("Soft.index_1"),value:5},{label:O("Database.index_22"),value:6},{label:O("Soft.index_2"),value:7},{label:O("Soft.index_3"),value:8}])),{class:"w-80px! inline-block"}),E=(e("_",h({__name:"app-seach",setup(e){const t=L(),n=()=>{U.p=1,t.setRefresh(!0)},s=()=>{U.force=1,t.setRefresh(!0)};return g((()=>{U.p=1,U.query=""})),(e,t)=>{const l=a,i=D,r=F;return v(),k(i,{class:"py-16px justify-between!"},{default:b((()=>[S(i,{class:"items-center"},{default:b((()=>[w("span",A,C(e.$t("Soft.index_4")),1),S(l,{clearable:"",class:"w-580px!",value:j(U).query,"onUpdate:value":t[0]||(t[0]=e=>j(U).query=e),placeholder:e.$t("Soft.index_5"),onSearch:n},null,8,["value","placeholder"])])),_:1}),S(r,{onClick:s},{default:b((()=>[$(C(e.$t("Soft.index_6")),1)])),_:1})])),_:1})}}})),{class:"w-80px inline-block"}),I=["onClick"],J=["src"],{t:T}=(e("R",r(h({__name:"recently-used",setup(e){const t=_(),{loading:a,setLoading:n}=B();return(async()=>{try{n(!0);const{message:e}=await l();i(e)&&(t.value=e)}finally{n(!1)}})(),(e,n)=>{const l=M,i=D;return v(),k(i,{class:"items-center h-42px"},{default:b((()=>[w("span",E,C(e.$t("Soft.index_8")),1),j(a)?(v(),k(l,{key:0,width:800,sharp:!1,size:"medium"})):P("",!0),(v(!0),R(z,null,q(j(t),(e=>(v(),R("div",{class:"list",key:e.id,onClick:t=>{s(e)}},[w("img",{class:"w-22px mr-5px",src:j(N)(e.name)},null,8,J),w("span",null,C(e.title),1)],8,I)))),128))])),_:1})}}}),[["__scopeId","data-v-19dccd64"]])),n.global);e("a",(()=>({key:"softwareName",title:T("Soft.index_29"),width:"220",ellipsis:{tooltip:{width:"trigger"}},render:e=>e.custom?S("span",{class:"cursor-pointer flex items-center",onClick:()=>d.push(e.route)},[S("img",{class:"w-22px max-h-22px mr-5px",src:N(e.name)},null),e.title]):S("span",{class:e.setup&&!o(e)?"cursor-pointer":"",onClick:e.setup&&!o(e)?()=>s(e):void 0},[S("img",{class:"w-22px max-h-22px mr-5px",src:N(e.name)},null),e.title,$(" "),e.title.indexOf("PHP-")>-1?"":e.version])}))),e("b",(()=>({key:"name",title:T("Soft.index_14"),width:"100",render:e=>{if(e.pid>0){if(e.endtime>0)return c(e.endtime,"yyyy-MM-dd");if(0===e.endtime)return T("Soft.index_27");if(-1===e.endtime)return T("Soft.index_28");if(-2===e.endtime)return T("Site.PHP.index_28")}return"--"}}))),e("c",(()=>({key:"location",title:T("Database.index_19"),width:"80",render:e=>e.setup?S(p,{name:"base-dir",class:"cursor-pointer",size:"16",onClick:()=>{u("Path",e.uninsatll_checks),d.push("/files")}},null):"---"}))),e("d",(()=>({key:"status",title:T("Component.UploadFile.index_5"),width:"80",render:e=>{if(5!==e.type)return S("span",null,[$("--")]);const t="phpmyadmin"===e.name||e.status;return e.setup?S("span",{class:"text-14px "+(t?"i-mage:play-fill text-primary":"i-mage:pause-fill text-error")},null):S("span",null,[$("--")])}}))),e("e",(()=>({key:"displayOnDashboard",title:T("Soft.index_30"),width:"80",render:e=>e.setup?S(H,{value:e.index_display,onClick:t=>{t?x({sName:e.name}):f({sName:e.name})}},null):"---"}))),e("f",(()=>({key:"name",title:T("Soft.index_31"),width:"80",render:e=>e.sort?e.sort<=0||e.sort>5?T("Soft.index_32"):e.sort.toFixed(1):"--"})))}}}));
