1import{d as f,A as y,e as r,F as i,r as d,b as m,u as h,a as u,c as l,at as x,w as k,o}from"./wct-app-D8i_eqtu.js";import{_ as v}from"./DataSourceCard.vue_vue_type_script_setup_true_lang-p0uhaxvt.js";import w from"./DataSourceCardSkeleton-CrMBh_1q.js";import{r as $}from"./MagnifyingGlassIcon-WZwazEdc.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./AccountCard.vue_vue_type_script_setup_true_lang-DZm2r_VD.js";import"./ChevronRightIcon-CnlDLyZY.js";import"./AccountCardSkeleton-LsX8RiTO.js";import"./ActionButton.vue_vue_type_script_setup_true_lang-yu6ujbWe.js";import"./usePermissions-Lk3CRnDN.js";import"./UserGroupIcon-4B8il2UH.js";import"./ChevronDownIcon-Bb7IICNj.js";import"./DocumentTextIcon-CjLt4iuy.js";import"./TableCellsIcon-DrJnwU_K.js";import"./PlusIcon-DYNe7iZ-.js";import"./InformationCircleIcon-vwXENsff.js";const S={class:"space-y-4"},D={key:0,class:"space-y-4"},B={key:1,class:"text-center py-12"},C=f({__name:"DataSourceList",props:{dataSources:{},loading:{type:Boolean},expandedDataSource:{}},emits:["toggle-expand","create-account","edit-account","show-logs","show-format"],setup(a){const g=a,c=y("dataSourceAccounts"),p=e=>!c||!c.value?[]:c.value.get(e)||[];return(e,s)=>(o(),r("div",S,[a.loading&&a.dataSources.length===0?(o(),r("div",D,[(o(),r(i,null,d(2,t=>m(w,{key:t})),64))])):a.dataSources.length===0?(o(),r("div",B,[m(h($),{class:"mx-auto h-12 w-12 text-gray-400"}),s[0]||(s[0]=u("h3",{class:"mt-2 text-sm font-semibold text-gray-900 dark:text-gray-100"}," No data sources found ",-1)),s[1]||(s[1]=u("p",{class:"mt-1 text-sm text-gray-500 dark:text-gray-400"}," Try adjusting your search terms ",-1))])):(o(),l(x,{key:2,name:"list",tag:"div",class:"space-y-4"},{default:k(()=>[(o(!0),r(i,null,d(a.dataSources,t=>(o(),l(v,{key:t.id||t.name,id:`datasource-${t.id}`,"data-source":t,expanded:g.expandedDataSource===t.id,accounts:p(t.id),loading:a.loading,onToggle:n=>e.$emit("toggle-expand",t.id),onCreateAccount:n=>e.$emit("create-account",t),onEditAccount:n=>e.$emit("edit-account",t,n),onShowLogs:n=>e.$emit("show-logs",t),onShowFormat:n=>e.$emit("show-format",t)},null,8,["id","data-source","expanded","accounts","loading","onToggle","onCreateAccount","onEditAccount","onShowLogs","onShowFormat"]))),128))]),_:1}))]))}}),M=A(C,[["__scopeId","data-v-3ffb4668"]]);export{M as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.