import{u as a,a as e}from"./index-BUF9qwGu.js";import{r as o}from"./verify-cXa3h-M4.js";import{d as r,i,w as s,E as t,aO as d,e as l}from"./main-DVBEmEFd.js";import{u as n}from"./index-pbEXObG7.js";import"./index-CBR7zAef.js";import"./index-sztGZ9nB.js";import"./test-BVQgoLgN.js";import"./useStore-BwTk8hfc.js";const m=r({name:"UploadNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(r){const{isRefreshNode:m}=a(),{validate:p,validationResult:u,registerCompatValidator:v,unregisterValidator:f}=e(),c=i(["warningColor","primaryColor"]),j=s((()=>u.value.valid?"var(--n-primary-color)":"var(--n-warning-color)")),x=s((()=>u.value.valid?"已配置":"未配置"));return t((()=>m.value),(a=>{n((()=>{v(r.node.id,o,r.node.config),p(r.node.id),m.value=null}),500)}),{immediate:!0}),d((()=>f(r.node.id))),()=>l("div",{style:c.value,class:"text-[12px]"},[l("div",{style:{color:j.value}},[x.value])])}});export{m as default};
