import{aJ as L,U as C}from"./vendor-ui-CGT0cG1n.js";import{m as o,B as v,r as g}from"./index-D88CvPWT.js";import{c as w,a as E}from"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import{v as b,aC as O,aD as T,ac as p,a9 as h,aP as S,ax as r,ab as x,l as P,r as i,aO as l,af as R,Y as A}from"./vendor-core-BKehvho7.js";import"./index-B9hCLAJk.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen-BBdyQ3W2.js";import"./useTeamHeaders-DxHN7-t0.js";/* empty css                */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-Cbhfk7Nk.js";const I={class:"size-full p-[10px] pr-0"},j=b({__name:"index",setup(B){const m=O(),_=T(),a=w(m.path,o.COMP_LIST_TYPE_LOCAL)();p(o.PROVIDE_KEY_COMP_LIST_STORE,a);const u=new Map;p(o.PROVIDE_KEY_CALLBACKS,u);const n=R({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:d});async function d(t){a.renderList([]),await A(),a.setLoading(!0);const c=await g.v1Comp.compcontrollerLocalcomps(t),{rows:e,total:s}=c.data||{};a.renderList(e??[]),n.value.pagination.total=s||0}function f(t){_.push({path:`/previewLocal/${t}`})}return h(()=>{a.$reset()}),(t,c)=>{const e=C,s=L;return S((x(),P("div",I,[i(r(v),{tableConfig:n.value},{table:l(()=>[i(e,{always:"",wrapClass:"pr-[10px]"},{default:l(()=>[i(E,{compType:r(o).IFRAME_ROUTES.CONTAINER.LOCAL,onPreviewLocal:f},null,8,["compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[s,r(a).loading]])}}});export{j as default};
