import{d as e,bY as a,x as o,$ as r,G as t,H as s,e as d}from"./main-D8Z-8iPZ.js";import{u as i}from"./index-C6fPintp.js";import{u as l}from"./index-yiIyVSv0.js";import{r as n}from"./verify-D33tYN8b.js";import"./index-4SW2EnHr.js";import"./test-DbYqM2ZR.js";import"./useStore-CFVnCatL.js";const p=e({name:"UploadNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{cert:"",key:""}})}},setup(e){const{updateNodeConfig:p,isRefreshNode:m}=i(),{useFormTextarea:u}=o(),{config:c}=a(e.node),{confirm:f}=s(),{handleError:j}=l(),v=[u(r("t_34_1745735771147"),"cert",{placeholder:r("t_35_1745735781545"),rows:6}),u(r("t_36_1745735769443"),"key",{placeholder:r("t_37_1745735779980"),rows:6})],{component:x,data:_,example:w}=t({defaultValue:c,config:v,rules:n});return f((async a=>{var o;try{await(null==(o=w.value)?void 0:o.validate()),p(e.node.id,_.value),m.value=e.node.id,a()}catch(r){j(r)}})),()=>d("div",{class:"upload-node-drawer"},[d(x,{labelPlacement:"top"},null)])}});export{p as default};
