import{u as e,e as s,a as t,b as a,d as i,s as n,_ as o,R as l}from"./tableColumns.js?v=1763625242172";import{d6 as r,c as p,bh as m,d0 as d,p as u,W as _,d1 as c,d2 as f,y as g,o as v}from"./page_layout.js?v=1763625242172";import{aC as x,dS as y}from"./naive.js?v=1763625242172";import{k as h,r as w,R as j,a2 as S,a3 as b,X as k,q as C,V as R,aj as U,S as $,U as z,a4 as L,j as P,P as B,w as H,N}from"./vue.js?v=1763625242172";import{Q as q,c as F,f as I,J as M,K as A,L as D,M as J,b as K,a as O,d as Q,O as T,h as V}from"./public.js?v=1763625242172";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import{a as E}from"./soft.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang8.js?v=1763625242172";import"./soft2.js?v=1763625242172";import"./index.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./site.js?v=1763625242172";const G=h({__name:"index",emits:["finish"],setup(e,{emit:s}){const t=s,a=w([]),i=async({file:e})=>{try{const s=new FormData;e.file&&s.append("plugin_zip",e.file);const{message:a}=await r(s);p(a)&&t("finish",a)}finally{a.value=[]}};return(e,s)=>{const t=x,n=m;return j(),S(n,{ref:"upload",class:"w-auto",action:"","file-list":R(a),"onUpdate:fileList":s[0]||(s[0]=e=>U(a)?a.value=e:null),"show-file-list":!1,multiple:!1,"custom-request":i},{default:b((()=>[k(t,{type:"primary"},{default:b((()=>[C(e.$slots,"default")])),_:3})])),_:3},8,["file-list"])}}}),Y={class:"box appStore-third-tips"},Z=u(h({__name:"index",setup(e){const s=d(),t=e=>{q(e,(()=>{s.setRefresh(!0)}))},a=()=>{window.open("https://www.aapanel.com/forum","_blank")};return(e,s)=>{const i=x;return j(),$("div",Y,[z("span",null,L(e.$t("Soft.index_22")),1),k(i,{type:"primary",class:"mx-10px",size:"small",onClick:a},{default:b((()=>[P(L(e.$t("Soft.index_23")),1)])),_:1}),k(G,{onFinish:t},{default:b((()=>[P(L(e.$t("Soft.index_24")),1)])),_:1})])}}}),[["__scopeId","data-v-511c6003"]]),ee=h({__name:"index",setup(o){const{t:l}=B(),r=d(),{keys:m,table:u,columns:x}=F([e(),{key:"name",title:l("Soft.index_9"),width:"100",ellipsis:{tooltip:{width:"trigger"}},render:e=>e.author?e.author:l("Soft.index_11")},{key:"name",title:l("Soft.index_10"),ellipsis:{tooltip:{width:"trigger"}},render:e=>k("span",{innerHTML:e.ps},null)},{key:"name",title:l("Soft.index_12"),width:"80",render:e=>"0.00"===e.price||0===e.price?k("span",null,[l("Soft.index_13")]):k("span",{class:"color-#fc6d26"},["$".concat(e.price)])},s(),t(),a(),i(),I({width:200,align:"right",options:e=>[{label:l("Home.index_5"),show:M(e),onClick:()=>{const s=A(e),t={name:e.name,title:e.title,m_version:e.versions[s].m_version,version:e.versions[s].version,update_msg:e.versions[s].update_msg};D(t,(()=>{w()}))}},{label:l("Layout.Sider.mail_12"),show:e.setup&&!J(e),onClick:()=>{E(e)}},{label:-1===e.endtime?l("Component.Auth.index_3"):l("Soft.index_18"),show:J(e),onClick:()=>{const s={source:-1===e.endtime?31:32,plugin:{name:e.title,pid:e.pid,type:e.type,plugin:!0,renew:e.endtime,ps:e.ps}};K(s)}},{label:l("Public.Btn.Install"),show:!e.setup&&!J(e),onClick:()=>{O({title:l("Soft.index_25"),content:l("Soft.index_38",[e.title]),onConfirm:async()=>{const{message:s}=await _({sName:e.name,version:e.manager_version,type:0});q(s,(()=>{w()}))}})}},{label:l("Public.Btn.Uninstall"),show:e.setup,onClick:()=>{O({title:l("Public.Btn.Uninstall"),content:l("Soft.index_15",[e.title,e.version]),onConfirm:async()=>{e.version=e.name.includes("php-")?e.versions[0].m_version:e.version,await c({sName:e.name,version:e.version}),w()}})}}]})]),{loading:y,setLoading:h}=Q();H((()=>r.isRefresh),(e=>{e&&(r.setRefresh(!1),w())}));const w=async()=>{try{h(!0);const{message:e}=await f(N({...n,type:10}),!!n.force);p(e)&&(u.data=e.list.data,u.total=g(e.list.page))}finally{m.value=[],n.force=0,h(!1)}};return w(),(e,s)=>{const t=v,a=V,i=X,o=W;return j(),S(o,{class:"py-16px"},{table:b((()=>[k(a,{"row-key":"name",loading:R(y),data:R(u).data,columns:R(x)},{empty:b((()=>[k(t,{onClick:R(T)},{default:b((()=>[P(L(e.$t("Soft.index_26")),1)])),_:1},8,["onClick"])])),_:1},8,["loading","data","columns"])])),pageRight:b((()=>[k(i,{page:R(n).p,"onUpdate:page":s[0]||(s[0]=e=>R(n).p=e),"page-size":R(n).row,"onUpdate:pageSize":s[1]||(s[1]=e=>R(n).row=e),"item-count":R(u).total,onRefresh:w},null,8,["page","page-size","item-count"])])),_:1})}}}),se=h({__name:"index",setup:e=>(e,s)=>{const t=y;return j(),S(t,{class:"p-16px"},{default:b((()=>[k(o),k(l),k(Z),k(ee)])),_:1})}});export{se as default};
