System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./index-legacy100.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359"],function(e,a){"use strict";var l,t,d,r,n,u,i,s,o,m,p,c,v,_,h,k,f,x,g,w,y;return{setters:[e=>{l=e._},e=>{t=e.hF,d=e.hG,r=e.hH,n=e.d,u=e.h},e=>{i=e.default},e=>{s=e.k,o=e.t,m=e.P,p=e.r,c=e.e,v=e.R,_=e.V,h=e.W,k=e.a3,f=e.S,x=e.U,g=e.N},e=>{w=e.dR,y=e.au}],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}=m(),E=p(null),R=c({name:"",remark:"",data:""}),S={name:{trigger:["blur","input"],validator:()=>""!==R.name.trim()||new Error(U("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:"")}})(),s({onConfirm:async()=>{await(E.value?.validate()),$.value&&T.value?await t({...g(R),id:T.value.id}):await d(g(R))}}),(e,t)=>{const d=y,r=w,n=l;return _(),v("div",null,[h(n,{ref_key:"formRef",ref:E,model:x(R),rules:S},{default:k(()=>[h(r,{label:e.$t("Docker.Template.add.index_1"),path:"name"},{default:k(()=>[f("div",a,[h(d,{value:x(R).name,"onUpdate:value":t[0]||(t[0]=e=>x(R).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(R).remark,"onUpdate:value":t[1]||(t[1]=e=>x(R).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",j,[h(i,{value:x(R).data,"onUpdate:value":t[2]||(t[2]=e=>x(R).data=e),lang:"json",theme:"monokai",height:"300","show-tips":!1},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}}))}}});
