System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy14.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,t,r,d,u,n,i,s,o,p,c,m,v,_,g,k,f,x,y,w,h;return{setters:[e=>{l=e._},e=>{t=e.gw,r=e.gx,d=e.gy,u=e.c,n=e.f},e=>{i=e._},e=>{s=e.k,o=e.t,p=e.P,c=e.r,m=e.e,v=e.U,_=e.V,g=e.Q,k=e.a2,f=e.W,x=e.X,y=e.N},e=>{w=e.aq,h=e.cA}],execute:function(){const a={class:"w-350px"},b={class:"w-350px"},j={class:"w-476px"};e("_",s({__name:"index",props:{row:{},isEdit:{type:Boolean,default:!1}},setup(e,{expose:s}){const D=e,T=o(D,"row"),$=o(D,"isEdit"),{t:U}=p(),E=c(null),q=m({name:"",remark:"",data:""}),A={name:{trigger:["blur","input"],validator:()=>""!==q.name.trim()||new Error(U("Docker.Template.add.index_2"))}};return(async()=>{if($.value&&T.value){q.name=T.value.name,q.remark=T.value.remark;const{message:e}=await d({template_id:T.value.id});u(e)&&(q.data=n(e.result)?e.result:"")}})(),s({onConfirm:async()=>{await(E.value?.validate()),$.value&&T.value?await t({...y(q),id:T.value.id}):await r(y(q))}}),(e,t)=>{const r=w,d=h,u=l;return v(),_("div",null,[g(u,{ref_key:"formRef",ref:E,model:x(q),rules:A},{default:k((()=>[g(d,{label:e.$t("Docker.Template.add.index_1"),path:"name"},{default:k((()=>[f("div",a,[g(r,{value:x(q).name,"onUpdate:value":t[0]||(t[0]=e=>x(q).name=e),placeholder:e.$t("Docker.Template.add.index_2")},null,8,["value","placeholder"])])])),_:1},8,["label"]),g(d,{label:e.$t("Docker.Template.add.index_3"),path:"remark"},{default:k((()=>[f("div",b,[g(r,{value:x(q).remark,"onUpdate:value":t[1]||(t[1]=e=>x(q).remark=e),placeholder:e.$t("Docker.Template.add.index_3")},null,8,["value","placeholder"])])])),_:1},8,["label"]),g(d,{label:e.$t("Docker.Template.add.index_4"),path:"data","show-feedback":!1},{default:k((()=>[f("div",j,[g(i,{value:x(q).data,"onUpdate:value":t[2]||(t[2]=e=>x(q).data=e),lang:"json",theme:"monokai",height:"300","show-tips":!1},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
