import{u as e,a as o}from"./index-C6fPintp.js";import{d as a,i,w as r,E as s,aO as t,e as n,$ as d}from"./main-D8Z-8iPZ.js";import{r as l}from"./verify-DT_aKhVd.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";import"./business-DN2MKo6G.js";const p=a({name:"ApplyNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(a){const{isRefreshNode:p}=e(),{registerCompatValidator:u,validate:v,validationResult:f,unregisterValidator:c}=o(),j=i(["warningColor","primaryColor"]),x=r((()=>f.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"));return s((()=>p.value),(e=>{m((()=>{u(a.node.id,l,a.node.config),v(a.node.id),p.value=null}),500)}),{immediate:!0}),t((()=>c(a.node.id))),()=>{var e;return n("div",{style:j.value,class:"text-[12px]"},[n("div",{style:{color:x.value}},[f.value.valid?"域名："+(null==(e=a.node.config)?void 0:e.domains):d("t_9_1745735765287")])])}}});export{p as default};
