import{s,j as B,m as L,c as v,n as S}from"./index-EFlNRwTR.js";import{f as U,_ as $}from"./index-fNs72j9w.js";import{B as z,I as t,X as E,C as o,D as l,_ as j,u as a,O as c,P as r,Z as p,Y as u,G as n,H as m,V as g,U as d,W as A}from"./vue-DweYBrEc.js";import"./index-CLJRKiC0.js";import"./terminal-B3G_hUkG.js";const F=["onClick"],G={class:"goods-footer"},H={key:0,class:"goods-tag"},O={class:"goods-title"},P={class:"goods-data"},W={class:"download-count"},X={key:0,class:"goods-price"},Y={class:"original-price"},Z={class:"current-price"},q={key:1,class:"goods-price"},J=z({__name:"tabs",setup(K){const h=()=>{S()};return(y,b)=>{const k=t("el-image"),f=t("el-tag"),T=t("Icon"),w=t("el-col"),x=t("el-row"),C=t("el-empty"),V=t("el-tab-pane"),I=t("el-tabs"),N=E("loading");return o(),l("div",null,[j((o(),c(I,{"element-loading-text":y.$t("module.Loading"),modelValue:a(s).table.params.activeTab,"onUpdate:modelValue":b[0]||(b[0]=_=>a(s).table.params.activeTab=_),type:"border-card",class:"store-tabs",onTabChange:h},{default:r(()=>[(o(!0),l(p,null,u(a(s).table.category,_=>(o(),c(V,{name:_.id.toString(),key:_.id,label:_.name,class:"store-tab-pane"},{default:r(()=>[a(s).table.modules[a(s).table.params.activeTab]&&a(s).table.modules[a(s).table.params.activeTab].length>0?(o(),c(x,{key:0,gutter:15,class:"goods"},{default:r(()=>[(o(!0),l(p,null,u(a(s).table.modules[a(s).table.params.activeTab],e=>(o(),c(w,{xs:12,sm:8,md:8,lg:6,xl:4,key:e.uid,class:"goods-col"},{default:r(()=>[n("div",{onClick:i=>a(B)(e.uid),class:"goods-item suspension"},[m(k,{loading:"lazy",fit:"cover",class:"goods-img",src:e.logo?e.logo:a(U)("/static/images/local-module-logo.png")},null,8,["src"]),n("div",G,[e.tags&&e.tags.length>0?(o(),l("div",H,[(o(!0),l(p,null,u(e.tags,(i,D)=>(o(),c(f,{type:i.type?i.type:"primary",key:D},{default:r(()=>[g(d(i.name),1)]),_:2},1032,["type"]))),128))])):A("",!0),n("div",O,d(e.title),1),n("div",P,[n("span",W,[m(T,{name:"fa fa-download",color:"#c0c4cc",size:"13"}),g(" "+d(e.downloads?e.downloads:"-"),1)]),e.state===a(L).UNINSTALLED?(o(),l("span",X,[n("span",Y,d(a(v)(e.original_price,e.currency_select)),1),n("span",Z,d(a(v)(e.present_price,e.currency_select)),1)])):(o(),l("div",q,[m(f,{effect:"dark",type:e.stateTag.type?e.stateTag.type:"primary"},{default:r(()=>[g(d(e.stateTag.text),1)]),_:2},1032,["type"])]))])])],8,F)]),_:2},1024))),128))]),_:1})):(o(),c(C,{key:1,class:"modules-empty",description:y.$t("module.No more")},null,8,["description"]))]),_:2},1032,["name","label"]))),128))]),_:1},8,["element-loading-text","modelValue"])),[[N,a(s).loading.table]])])}}}),oe=$(J,[["__scopeId","data-v-d4c6a31c"]]);export{oe as default};
