import{u as a,a as o}from"./index-DffoH-R8.js";import{d as e,a as r,l as i,w as s,aO as t,c as n,$ as d}from"./main-DKqTMGci.js";import{r as l}from"./verify-Ccmvvliy.js";import{u as m}from"./index-ClL52y7R.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";import"./business-DeShhBC1.js";const p=e({name:"ApplyNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(e){const{isRefreshNode:p}=a(),{registerCompatValidator:u,validate:v,validationResult:c,unregisterValidator:f}=o(),j=r(["warningColor","primaryColor"]),x=i((()=>c.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"));return s((()=>p.value),(a=>{m((()=>{u(e.node.id,l,e.node.config),v(e.node.id),p.value=null}),500)}),{immediate:!0}),t((()=>f(e.node.id))),()=>{var a;return n("div",{style:j.value,class:"text-[12px]"},[n("div",{style:{color:x.value}},[c.value.valid?"域名："+(null==(a=e.node.config)?void 0:a.domains):d("t_9_1745735765287")])])}}});export{p as default};
