System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-DaNJUJqN.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,a){"use strict";var l,t,d,r,n,u,i,o,s,m,c,p,v,_,k,f,x,g,h,w,y;return{setters:[e=>{l=e._},e=>{t=e.il,d=e.im,r=e.io,n=e.i,u=e.ao},e=>{i=e.default},e=>{o=e.k,s=e.t,m=e.R,c=e.r,p=e.e,v=e.$,_=e.Z,k=e.a0,f=e.a9,x=e._,g=e.S,h=e.N},e=>{w=e.a1,y=e.b}],execute:function(){const a={class:"w-350px"},b={class:"w-350px"},j={class:"w-476px"};e("_",o({__name:"index",props:{row:{},isEdit:{type:Boolean,default:!1}},setup(e,{expose:o}){const D=e,T=s(D,"row"),$=s(D,"isEdit"),{t:E}=m(),U=c(null),R=p({name:"",remark:"",data:""}),S={name:{trigger:["blur","input"],validator:()=>""!==R.name.trim()||new Error(E("Docker.Template.add.index_2"))}};return(async()=>{if($.value&&T.value){R.name=T.value.name,R.remark=T.value.remark;const{message:e}=await r({template_id:T.value.id});n(e)&&(R.data=u(e.result)?e.result:"")}})(),o({onConfirm:async()=>{await(U.value?.validate()),$.value&&T.value?await t({...h(R),id:T.value.id}):await d(h(R))}}),(e,t)=>{const d=y,r=w,n=l;return v(),_("div",null,[k(n,{ref_key:"formRef",ref:U,model:g(R),rules:S},{default:f((()=>[k(r,{label:e.$t("Docker.Template.add.index_1"),path:"name"},{default:f((()=>[x("div",a,[k(d,{value:g(R).name,"onUpdate:value":t[0]||(t[0]=e=>g(R).name=e),placeholder:e.$t("Docker.Template.add.index_2")},null,8,["value","placeholder"])])])),_:1},8,["label"]),k(r,{label:e.$t("Docker.Template.add.index_3"),path:"remark"},{default:f((()=>[x("div",b,[k(d,{value:g(R).remark,"onUpdate:value":t[1]||(t[1]=e=>g(R).remark=e),placeholder:e.$t("Docker.Template.add.index_3")},null,8,["value","placeholder"])])])),_:1},8,["label"]),k(r,{label:e.$t("Docker.Template.add.index_4"),path:"data","show-feedback":!1},{default:f((()=>[x("div",j,[k(i,{value:g(R).data,"onUpdate:value":t[2]||(t[2]=e=>g(R).data=e),lang:"json",theme:"monokai",height:"300","show-tips":!1},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
