import{aJ as L,U as C}from"./vendor-ui-DXwyveTF.js";import{E as t,B as E,q as g}from"./index-B5qe6yln.js";import{c as v,a as b}from"./index.vue_vue_type_script_setup_true_lang-D3xHCy9f.js";import{v as O,aC as h,aD as S,ac as l,a9 as T,aP as w,ax as r,ab as P,l as R,r as n,aO as p,af as x}from"./vendor-core-CzvSW5ae.js";import"./index-CEQStqDa.js";import"./useCompMetaLocalStore-eE-CBcE9.js";/* empty css                */import"./useVscodeOpen-Dx3IRL0P.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js";import"./useCacheOssStore-DApHt9lQ.js";import"./useTeamHeaders-Cc060CP0.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js";import"./useMessage-CYVXvlqq.js";const A={class:"size-full p-[10px]"},F=O({__name:"index",setup(I){const m=h(),_=S(),a=v(m.path,t.COMP_LIST_TYPE_LOCAL)();l(t.PROVIDE_KEY_COMP_LIST_STORE,a);const u=new Map;l(t.PROVIDE_KEY_CALLBACKS,u);const i=x({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:f});async function f(o){a.setLoading(!0);const c=await g.v1Comp.compcontrollerLocalcomps(o),{rows:e,total:s}=c.data||{};a.renderList(e),i.value.pagination.total=s||0,a.setLoading(!1)}function d(o){_.push({path:`/previewLocal/${o}`})}return T(()=>{a.$reset()}),(o,c)=>{const e=C,s=L;return w((P(),R("div",A,[n(r(E),{tableConfig:i.value},{table:p(()=>[n(e,null,{default:p(()=>[n(b,{compType:r(t).IFRAME_ROUTES.CONTAINER.LOCAL,onPreviewLocal:d},null,8,["compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[s,r(a).loading]])}}});export{F as default};
