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