System.register(["./index-legacy105.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy96.js?v=1761009159","./index-legacy486.js?v=1761009159","./index-legacy484.js?v=1761009159","./column-legacy.js?v=1761009159","./useController-legacy5.js?v=1761009159","./useMethod-legacy5.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1761009159","./index-legacy133.js?v=1761009159","./index-legacy106.js?v=1761009159","./validator-legacy.js?v=1761009159","./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159","./site-legacy.js?v=1761009159","./useStore-legacy13.js?v=1761009159","./form-item-legacy.js?v=1761009159","./useController-legacy6.js?v=1761009159"],function(e,n){"use strict";var l,t,r,s,i,u,a,c,o,p,d,g,f,h,y,_,x,m,v,j;return{setters:[function(e){l=e._},function(e){t=e.an,r=e.P,s=e.M,i=e.cN,u=e.ao},function(e){a=e.c,c=e.s,o=e.e,p=e.C,d=e.v,g=e.x,f=e.B,h=e.y},function(e){y=e.b},function(e){_=e.g},function(e){x=e.B},function(e){m=e.u},function(e){v=e.u},function(e){j=e.a2},null,null,null,null,null,null,null,null,null,null,null],execute:function(){var n={class:"p-[2rem]"};e("default",a({__name:"plugin-install",setup:function(e){var a=c(v()).localRow,b=c(y()),w=b.isRefreshPluginInstall,B=b.isRefreshPluginList,q=t({request:function(e){return _(e)},columns:[{label:"名称",prop:"name",minWidth:180,isCustom:!0,render:function(e){return o("span",{class:"flex items-center"},[o("img",{class:"w-[25px] h-[25px]",src:e.icons["1x"]?e.icons["1x"]:e.icons.default},null),o("span",{class:"ml-[5px]"},[e.name])])}},{label:"描述",width:200,prop:"short_description",showOverflowTooltip:!0},{label:"作者",prop:"author",render:function(e){return o("span",{innerHTML:e.author},null)}},{label:"WP",prop:"requires",width:50,render:function(e){return e.requires?e.requires:"--"}},{label:"PHP",prop:"requires_php",render:function(e){return e.requires_php?e.requires_php:"--"}},{label:"等级",prop:"rating",width:140,render:function(e){var n=e.rating?e.rating/20:0;return o("div",{class:"flex items-center"},[o(x,{modelValue:n,disabled:!0,"allow-half":!0,class:"!text-extraLarge"},null)])}},m(function(e){return[{title:e.installed?"已安装":"安装",render:function(e){var n=a.value.wp_version<e.requires||a.value.php_version<e.requires_php||e.installed;return e.installed?o("span",{class:"text-tertiary",style:"cursor:not-allowed"},[p("已安装")]):o("span",{class:"bt-link",style:n?"cursor:not-allowed; color: var(--el-base-tertiary);":"",onClick:n?void 0:function(){r({loading:"安装中...",request:j({s_id:a.value.id,slug:e.slug}),success:function(e){e.status&&(w.value=!0,B.value=!0,s.success("安装成功"))}})}},[p("安装")])}}]},{label:"操作",width:100,fixed:"right"})],extension:[i("search",{name:"local-setting-plugin",list:[]}),u(w)]}),C=q.BtTable,P=q.BtPage,R=(q.BtRecommendSearch,q.BtRefresh,q.BtColumn,q.BtBatch,q.BtTableCategory,q.BtErrorMask,q.tableRef,q.classList,q.refresh,q.BtSearch);return function(e,t){var r=l;return d(),g("div",n,[o(r,null,{"header-right":f(function(){return[o(h(R),{type:"local-setting-plugin",placeholder:"请输入插件名称",class:"!w-[270px] mr-[10px]"})]}),content:f(function(){return[o(h(C),{"max-height":500})]}),"footer-right":f(function(){return[o(h(P))]}),_:1})])}}}))}}});
