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