import{_ as g}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{k as w,R as C,r as y,e as R,$ as k,Z as $,a0 as o,a9 as s,S as a,N as h}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as I,b as S}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const q={class:"p-20px"},P=w({__name:"index",props:{data:{}},setup(_,{expose:f}){const{t:u}=C(),c=_,{callback:l,api:d,url:x}=c.data,i=y(null),t=R({title:"",url:"",atall:!0}),v={title:{required:!0,message:u("Security.Conf.Index_28"),trigger:["blur","input"]},url:{required:!0,message:u("Security.Conf.Index_28"),trigger:["blur","input"]}};return f({onConfirm:async({hide:n})=>{var e;await((e=i.value)==null?void 0:e.validate()),await d(h(t),x),l==null||l(),n()}}),(n,e)=>{const p=S,m=I,b=g;return k(),$("div",q,[o(b,{ref_key:"formRef",ref:i,model:a(t),rules:v},{default:s(()=>[o(m,{label:n.$t("Docker.Compose.form.index_3"),path:"title"},{default:s(()=>[o(p,{class:"w-250px!",type:"text",value:a(t).title,"onUpdate:value":e[0]||(e[0]=r=>a(t).title=r),placeholder:" "},null,8,["value"])]),_:1},8,["label"]),o(m,{label:n.$t("WP.TableRow.index_7"),path:"url"},{default:s(()=>[o(p,{class:"w-250px!",type:"text",value:a(t).url,"onUpdate:value":e[1]||(e[1]=r=>a(t).url=r),placeholder:" "},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{P as default};
