import{d as x,u as A,$ as B,r as _,b as K,k as Q,a,o as S,A as U,B as l,f as t,a2 as W,E as y,Q as j,a9 as F,aa as G,K as M,V as P,W as Z,Z as $,__tla as z}from"./index-92ad187a.js";import{_ as D,__tla as H}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{u as J,__tla as L}from"./tagsView-53f4f52b.js";import{_ as N,__tla as O}from"./BasicInfoForm.vue_vue_type_script_setup_true_lang-aeaab16f.js";import{_ as X,__tla as Y}from"./ColumInfoForm.vue_vue_type_script_setup_true_lang-f9c02fbe.js";import{_ as aa,__tla as ta}from"./GenerateInfoForm.vue_vue_type_script_setup_true_lang-dffe8a13.js";import{g as la,u as ra,__tla as ea}from"./index-fa98ab96.js";import{u as _a,__tla as sa}from"./useMessage-d9788660.js";import{__tla as oa}from"./el-card-93209b1d.js";import{__tla as ua}from"./formRules-bab8ffd5.js";import{__tla as na}from"./dict.type-342bcd0b.js";import{__tla as ca}from"./el-dropdown-item-211d5248.js";import{__tla as ma}from"./el-tree-select-42c0ad8b.js";import{__tla as fa}from"./dict-221f3e01.js";import"./tree-0af4953a.js";import{__tla as ia}from"./index-7dd375b2.js";let d,ya=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ia}catch{}})()]).then(async()=>{d=x({name:"InfraCodegenEditTable",__name:"EditTable",setup(da){const{t:p}=j(),h=_a(),{push:b,currentRoute:g}=A(),{query:v}=B(),{delView:I}=J(),o=_(!1),u=_("colum"),c=_(),k=_(),m=_(),r=_({table:{},columns:[]}),V=async()=>{var e,s;if(a(r)){await((e=a(c))==null?void 0:e.validate()),await((s=a(m))==null?void 0:s.validate());try{await ra(r.value),h.success(p("common.updateSuccess")),f()}catch{}}},f=()=>{I(a(g)),b("/infra/codegen")};return K(()=>{(async()=>{const e=v.id;if(e){o.value=!0;try{r.value=await la(e)}finally{o.value=!1}}})()}),(e,s)=>{const n=F,w=G,i=M,C=P,E=Z,R=D,T=$;return Q((S(),U(R,null,{default:l(()=>[t(w,{modelValue:a(u),"onUpdate:modelValue":s[0]||(s[0]=q=>W(u)?u.value=q:null)},{default:l(()=>[t(n,{label:"\u57FA\u672C\u4FE1\u606F",name:"basicInfo"},{default:l(()=>[t(a(N),{ref_key:"basicInfoRef",ref:c,table:a(r).table},null,8,["table"])]),_:1}),t(n,{label:"\u5B57\u6BB5\u4FE1\u606F",name:"colum"},{default:l(()=>[t(a(X),{ref_key:"columInfoRef",ref:k,columns:a(r).columns},null,8,["columns"])]),_:1}),t(n,{label:"\u751F\u6210\u4FE1\u606F",name:"generateInfo"},{default:l(()=>[t(a(aa),{ref_key:"generateInfoRef",ref:m,table:a(r).table,columns:a(r).columns},null,8,["table","columns"])]),_:1})]),_:1},8,["modelValue"]),t(E,null,{default:l(()=>[t(C,{style:{float:"right"}},{default:l(()=>[t(i,{loading:a(o),type:"primary",onClick:V},{default:l(()=>[y("\u4FDD\u5B58")]),_:1},8,["loading"]),t(i,{onClick:f},{default:l(()=>[y("\u8FD4\u56DE")]),_:1})]),_:1})]),_:1})]),_:1})),[[T,a(o)]])}}})});export{ya as __tla,d as default};
