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,l){"use strict";var t,n,r,s,a,u,i,c,o,d,p,f,g,h,_,y,m,v,x,j,b;return{setters:[function(e){t=e._},function(e){n=e.an,r=e.e,s=e.P,a=e.M,u=e.cN,i=e.ao},function(e){c=e.c,o=e.s,d=e.e,p=e.C,f=e.v,g=e.x,h=e.B,_=e.y},function(e){y=e.b},function(e){m=e.a},function(e){v=e.B},function(e){x=e.u},function(e){j=e.u},function(e){b=e.a3},null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l={class:"p-[2rem]"};e("default",c({__name:"theme-install",setup:function(e){var c=o(j()).localRow,w=o(y()),B=w.isRefreshThemeInstall,q=w.isRefreshThemeList,C=n({request:function(e){return m(e)},columns:[{label:"名称",prop:"name",minWidth:180,isCustom:!0,render:function(e){return d("span",{class:"flex items-center"},[d("img",{class:"w-[25px] h-[25px]",src:e.screenshot_url},null),d("span",{class:"ml-[5px]"},[e.name])])}},{label:"描述",width:200,prop:"description",showOverflowTooltip:!0},{label:"作者",prop:"author",render:function(e){return d(r,{target:"_blank",href:e.author.author_url},{default:function(){return[e.author.author]}})}},{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 l=e.rating?e.rating/20:0;return d("div",{class:"flex items-center"},[d(v,{modelValue:l,disabled:!0,"allow-half":!0,class:"!text-extraLarge"},null)])}},x(function(e){return[{title:e.installed?"已安装":"安装",render:function(e){var l=c.value.wp_version<e.requires||c.value.php_version<e.requires_php||e.installed;return e.installed?d("span",{class:"text-tertiary",style:"cursor:not-allowed"},[p("已安装")]):d("span",{class:"bt-link",style:l?"cursor:not-allowed; color: var(--el-base-tertiary);":"",onClick:l?void 0:function(){s({loading:"安装中...",request:b({s_id:c.value.id,slug:e.slug}),success:function(e){e.status&&(B.value=!0,q.value=!0,a.success("安装成功"))}})}},[p("安装")])}}]},{label:"操作",width:100,fixed:"right"})],extension:[u("search",{name:"local-setting-plugin",list:[]}),i(B)]}),R=C.BtTable,P=C.BtPage,S=(C.BtRecommendSearch,C.BtRefresh,C.BtColumn,C.BtBatch,C.BtTableCategory,C.BtErrorMask,C.tableRef,C.classList,C.refresh,C.BtSearch);return function(e,n){var r=t;return f(),g("div",l,[d(r,null,{"header-right":h(function(){return[d(_(S),{type:"local-setting-theme",placeholder:"请输入主题名称",class:"!w-[270px] mr-[10px]"})]}),content:h(function(){return[d(_(R),{"max-height":500})]}),"footer-right":h(function(){return[d(_(P))]}),_:1})])}}}))}}});
