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