import{K as e,_ as a}from"./utils-lib.js?v=1761009159";import{c as s,aA as o,g as t,e as r,ah as l,aj as p,C as m,a6 as i,v as u,N as d,y as n}from"./base-lib.js?v=1761009159";import{b as c,j,h as v}from"./form-item.js?v=1761009159";import{f as _,v as f,a as h,d as x,b as D,g as b,e as C,i as g,c as w}from"./index25.js?v=1761009159";import{B as y}from"./index115.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./useStore3.js?v=1761009159";import"./index103.js?v=1761009159";import"./useMethods.js?v=1761009159";import"./column.js?v=1761009159";import"./validator.js?v=1761009159";import"./vue-virtual-scroller.esm.js?v=1761009159";import"./vue-virtual-scroller.js?v=1761009159";import"./useController4.js?v=1761009159";import"./useController5.js?v=1761009159";import"./site.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController6.js?v=1761009159";import"./useMethod5.js?v=1761009159";import"./index.vue_vue_type_style_index_0_lang.js?v=1761009159";import"./add-host.vue_vue_type_script_setup_true_lang.js?v=1761009159";import"./useController2.js?v=1761009159";import"./ace.js?v=1761009159";const V=a(s({__name:"add-app-soft",props:{compData:{default:()=>({})}},setup(a,{expose:s}){const V=a,k=o("popupClose"),{BtForm:q,submit:B}=e({data:_,options:e=>t(()=>{var a,s;return[c("名称","service_name",{attrs:{class:"!w-[24rem]",placeholder:"请输入服务名称"},rules:[{required:!1,message:"请输入服务名称",trigger:"blur"}]}),j("版本选择","version",f.value,{attrs:{class:"!w-[24rem]",placeholder:"请选择版本"},rules:[{required:!0,message:"请选择版本"}]}),...(null==(s=null==(a=V.compData)?void 0:a.appData)?void 0:s.field)?V.compData.appData.field.map(a=>h(a,e)):[],...V.compData.appData.depend&&Object.keys(x).length?V.compData.appData.depend.map(a=>D(a,e,k)):[],v("编辑模板",()=>r("div",{class:"flex items-center"},[r(l,{modelValue:e.value.showCompose,"onUpdate:modelValue":a=>e.value.showCompose=a,onChange:a=>b(a,e,V.compData.appData.appname,V.compData.appData.appid),class:"!my-0"},{default:()=>[r(p,{label:"默认",value:"false"},null),r(p,{label:"自定义",value:"true"},null)]}),r("span",{class:"text-[1.2rem] ml-[2rem]"},[m(" * 自定义本次Docekr Compose启动模板 ")])]),"showCompose"),..."true"===e.value.showCompose?[v(" ",()=>r("div",{class:"flex flex-col items-start justify-center w-full"},[r(y,{key:"editer1",class:"!w-[500px] h-[30rem]",modelValue:e.value.editcompose,"onUpdate:modelValue":a=>e.value.editcompose=a,editorOption:C},null)]),"editcompose")]:[]]}),submit:async(e,a,s)=>{await a(),g(k)}});return i(()=>{w()}),s({onConfirm:B}),(e,a)=>(u(),d(n(q),{class:"p-2rem","label-width":"110px"}))}}),[["__scopeId","data-v-e1e1ae9b"]]);export{V as default};
