const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-B7B2WRKg.js?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/index-DIKmrNCq.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785","css/index-CVIzYRIt.css?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785","js/data-BVsViUMm.js?v=1773287522785","js/index-B5d4M70B.js?v=1773287522785","js/useLoading-CZ2gSAW7.js?v=1773287522785","js/useTableData-BmkIKQ_R.js?v=1773287522785","js/useTableColumns-DDeyYvje.js?v=1773287522785","js/index-S15tYq5l.js?v=1773287522785","js/copy-D-wIKr0q.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785","js/index-Cg6fMjw6.js?v=1773287522785","js/form.vue_vue_type_script_setup_true_lang-BCtdjtVc.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785","js/check-CNel7fTH.js?v=1773287522785","js/index-DhnhmU-6.js?v=1773287522785","js/form-CncOw3Pm.js?v=1773287522785","js/index-B67yCa3p.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-DG86e1NA.js?v=1773287522785","js/index-K4YGya6V.js?v=1773287522785","css/index-DKJnQkCC.css?v=1773287522785","js/index-jmbRFY6V.js?v=1773287522785","js/index-DZl1RL2R.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-HxsqzSKU.js?v=1773287522785","js/logs.vue_vue_type_script_setup_true_lang-BJO8Ezld.js?v=1773287522785","js/index-lEMZglLp.js?v=1773287522785","css/index-Cn3AD8n4.css?v=1773287522785","js/index-NdUxMprA.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785","js/file-B5PwfK2h.js?v=1773287522785","js/upload-CD_WMkIS.js?v=1773287522785","js/index-BuR_XIrf.js?v=1773287522785","js/index-CsEZ45P0.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-zxYX_mVh.js?v=1773287522785","js/index-ZmGigFas.js?v=1773287522785","js/index-BGYvyLDv.js?v=1773287522785","css/index-CJFLRSI8.css?v=1773287522785","js/index-Cwe4iex9.js?v=1773287522785","css/index-DSVtVlmF.css?v=1773287522785"])))=>i.map(i=>d[i]);
import{_ as y}from"./index-COOnaZWq.js?v=1773287522785";import{_ as q,af as P,au as C,aH as H,aI as M,p as o,P as s,a3 as O}from"./index-BTglIPU2.js?v=1773287522785";import{k as S,a6 as V,c as b,$ as E,a8 as B,S as g,a9 as f,q as N,_ as R,aa as D,Z as k,F,a0 as x,j as $,ak as K,R as U,an as j,ao as A,a3 as n}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{u as L}from"./index-B5d4M70B.js?v=1773287522785";import{a6 as z}from"./naive-ui--dJnpVcV.js?v=1773287522785";const Z={class:"mr-4px"},te=S({__name:"index",setup(e){const a=L(),{type:l,install:d,isInstallPgsql:v,isInstallPgsqlManager:r}=V(a),c=b(()=>l.value==="pgsql"?v.value:d.value),h=()=>{l.value==="pgsql"?r.value?C({name:"pgsql_manager",title:"pgsql_manager",admin:!0}):P("pgsql_manager",()=>{a.getConfig()}):P(l.value,()=>{a.getRemote()})};return(u,m)=>{const p=q,I=y;return E(),B(I,{install:g(c)},{desc:f(()=>[R("span",Z,D(u.$t("Database.tools.index_39"))+", ",1),g(l)!=="sqlserver"?(E(),k(F,{key:0},[x(p,{onClick:h},{default:f(()=>[$(D(u.$t("Database.tools.index_40")),1)]),_:1}),m[0]||(m[0]=R("span",{class:"mx-4px"},"|",-1))],64)):K("",!0),x(p,{onClick:g(J)},{default:f(()=>[$(D(u.$t("Database.tools.index_41")),1)]),_:1},8,["onClick"])]),default:f(()=>[N(u.$slots,"default")]),_:3},8,["install"])}}}),G={class:"w-120px"},ae=S({__name:"index",props:A({storeKey:{default:""},value:{},all:{type:Boolean,default:!0}},{value:{},valueModifiers:{}}),emits:A(["change"],["update:value"]),setup(e,{emit:a}){const{t:l}=U(),d=e,v=a,r=b(()=>{const{storeKey:t}=d;return t?"".concat(t,"-select"):""}),c=j(e,"value"),h=L(),{remoteList:u}=V(h),m=b(()=>{const t=u.value.map(_=>({label:_.ps||_.db_host,value:_.id}));return d.all&&t.unshift({label:l("Public.All"),value:-1}),t}),p=t=>{r.value&&H(r.value,String(t)),v("change",t)};return(()=>{if(r.value){const t=M(r.value);t&&(c.value=Number(t))}})(),(t,_)=>{const T=z;return E(),k("div",G,[x(T,{value:c.value,"onUpdate:value":[_[0]||(_[0]=w=>c.value=w),p],options:g(m)},null,8,["value","options"])])}}}),{t:i}=O.global;function oe(){o({title:i("Database.tools.index_69"),width:860,minHeight:264,component:n(()=>s(()=>import("./index-B7B2WRKg.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])))})}function J(){o({title:i("Database.tools.index_41"),width:460,minHeight:388,footer:!0,data:{row:void 0,isEdit:!1},component:n(()=>s(()=>import("./form-CncOw3Pm.js?v=1773287522785"),__vite__mapDeps([25,21,7,1,2,3,4,5,6,22,23,13,24])))})}function se(){o({title:i("Database.tools.index_70"),width:480,minHeight:84,footer:!0,component:n(()=>s(()=>import("./index-B67yCa3p.js?v=1773287522785"),__vite__mapDeps([26,22,2,3,4,5,27,28,1,6,29,13,14])))})}function ne(){o({title:i("Database.tools.index_71"),width:460,minHeight:85,footer:!0,component:n(()=>s(()=>import("./index-jmbRFY6V.js?v=1773287522785"),__vite__mapDeps([30,22,2,3,4,5,1,6,13])))})}function ie(e){o({title:"".concat(i("Database.tools.index_72")," [").concat(e.name,"]"),width:800,minHeight:196,data:{row:e},component:n(()=>s(()=>import("./index-DZl1RL2R.js?v=1773287522785"),__vite__mapDeps([31,8,9,1,2,3,4,5,6,10,32,12,33,11,13,14,15,16,17,18,7,19,20,34,35,36])))})}function le(e,a){o({title:"".concat(i("Database.tools.index_73")," [").concat(e.name,"]"),width:840,minHeight:234,data:{row:e,type:a},component:n(()=>s(()=>import("./index-NdUxMprA.js?v=1773287522785"),__vite__mapDeps([37,7,1,2,3,4,5,6,8,9,10,32,12,11,38,13,14,15,16,17,18,19,20,39,40,34,35,36])))})}function re(e){o({title:"".concat(i("Database.tools.index_74")," [").concat(e.name,"]"),width:480,minHeight:140,footer:!0,data:{row:e},component:n(()=>s(()=>import("./index-BuR_XIrf.js?v=1773287522785"),__vite__mapDeps([41,22,2,3,4,5,27,28,1,6,29,13])))})}function ue(e){o({title:i("Database.index_30"),width:760,minHeight:226,footer:!0,confirmType:"error",data:{ids:e.map(a=>a.id)},component:n(()=>s(()=>import("./index-CsEZ45P0.js?v=1773287522785"),__vite__mapDeps([42,11,1,2,3,4,5,6,12,13,14,39,43])))})}function _e(e){o({width:740,height:580,title:"Adminer",data:e,component:n(()=>s(()=>import("./index-ZmGigFas.js?v=1773287522785"),__vite__mapDeps([44,45,2,3,4,5,1,6,46,7,47,14,22,48])))})}export{ae as _,ie as a,le as b,ue as c,ne as d,te as e,se as f,oe as g,_e as h,re as u};
