import{_ as f,P as d}from"./ConsoleOmniChat.vue_vue_type_script_setup_true_lang-DxvgVvmL.js";import{a as l}from"./asyncComputed-CygEe1bN.js";import{e as u,W as y,av as _,P as b,q as i,g as m,x as n,v as g,s as t,as as w,au as h,K as j}from"./jwt-decode.esm-CX61wVx3.js";import"./router-C3xfRTQ9.js";import"./tables-uXC0iev6.js";import{S as I}from"./systemTables-CTITfv8m.js";import{_ as k}from"./TableData.vue_vue_type_style_index_0_lang-CQ-UJ8Cz.js";import{u as v}from"./projectStore-VaavZXIZ.js";import"./omniChatStore-_8KZabY3.js";import"./externalPlayer-D7i6YlKj.js";import"./fetch-BOLOxrH8.js";import"./codebaseEvents-s4M7UMV6.js";import"./files-IqWfdQBD.js";import"./runnerData-B4AKypWD.js";import"./url-D1jI6Lt8.js";import"./colorHelpers-Dde0Xcnl.js";import"./uuid-DcrfRJI8.js";import"./PhCheckCircle.vue-DL5RdEBD.js";import"./PhCopySimple.vue-BUfofLds.js";import"./stages-CTDrHAyc.js";import"./OmniChat-C80jX_ES.js";import"./PhCaretDown.vue-CUpBlnmb.js";import"./LoadingOutlined-CVkBHrpy.js";import"./index-BOb0Rqlm.js";import"./ant-design-DL3j72eX.js";import"./PhBroom.vue-CA5VLGYx.js";import"./PhDatabase.vue-BbYe-WIP.js";import"./files-RMEOUz4j.js";import"./PhStop.vue-Bilzc9g_.js";import"./PhWebhooksLogo.vue-CkLqDVcc.js";import"./PhRobot.vue-DLJZsL9D.js";import"./index-GnIaed8S.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang-BP-78XpT.js";import"./logo-BiWG9_W5.js";import"./Logo-Dr2w7cZG.js";import"./index-DhpJ3FpU.js";import"./PhCaretRight.vue-d0BIQYZm.js";import"./PhRocketLaunch.vue-s8isZYnN.js";import"./PhTrendUp.vue-DJu_t-7X.js";import"./PhUsers.vue-N5vJLzpR.js";import"./ts.worker-DBbJtN2A.js";import"./string-BfaOmKtt.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang-BBMaXQJu.js";import"./ContentLayout-CMKlp5Q7.js";import"./popupNotifcation-CP_kDI7v.js";import"./PhDownloadSimple.vue-BWSBYTuS.js";import"./PhGear.vue-BeYAyAxC.js";import"./PhPencilSimpleLine.vue-HbucRpFj.js";import"./csv-CYJB6Gsx.js";import"./index-BMo8fvaH.js";import"./project-BBDdDK81.js";import"./PhWarningCircle.vue-DssE-kFJ.js";import"./index-lhBEA9ti.js";import"./member-Mqwx3LJ6.js";import"./organizationSwitcher-BGkTY3e2.js";import"./organization-CGHGUCUV.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="9fa00cf8-4afc-4d18-a901-4bf3df761f3c",o._sentryDebugIdIdentifier="sentry-dbid-9fa00cf8-4afc-4d18-a901-4bf3df761f3c")}catch{}})();const xt=u({__name:"SystemTableDetail",setup(o){const r=y(),e=_(()=>{if(typeof r.params.tableName=="string")return r.params.tableName;throw new Error("tableName is not a string")}),p=v(),{result:a,loading:s,refetch:c}=l(()=>I.get(p.projectId,e.value));return b([e,()=>p.projectId],()=>c()),(S,D)=>(m(),i(d,{key:e.value},{content:n(()=>[t(a)?(m(),i(k,{key:0,loading:t(s),table:t(a),"read-only":!0},null,8,["loading","table"])):t(s)?(m(),i(t(w),{key:1,style:{width:"100%","margin-top":"4rem"}})):(m(),i(t(h),{key:2,description:t(j).translate("i18n_systemtables_not_found"),style:{"margin-top":"4rem"}},null,8,["description"]))]),chat:n(()=>[g(f,{"project-id":t(p).projectId},null,8,["project-id"])]),_:1}))}});export{xt as default};
//# sourceMappingURL=SystemTableDetail-xFDw96JD.js.map
