import{u as a,a as e}from"./index-C6fPintp.js";import{r as o}from"./verify-D33tYN8b.js";import{d as r,i,w as s,E as t,aO as d,e as l}from"./main-D8Z-8iPZ.js";import{u as n}from"./index-BMspkLA9.js";import"./index-4SW2EnHr.js";import"./index-yiIyVSv0.js";import"./test-DbYqM2ZR.js";import"./useStore-CFVnCatL.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};
