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