import{u as e,a as o}from"./index-BUF9qwGu.js";import{d as a,i,w as r,E as s,aO as t,e as n,$ as d}from"./main-DVBEmEFd.js";import{r as l}from"./verify-DI2j_NNA.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";import"./business-BI7cIbpG.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};
