import{u as e,a as o}from"./index-DffoH-R8.js";import{d as a,a as i,l as s,c as r,$ as t,w as n,aO as d}from"./main-DKqTMGci.js";import{A as l}from"./index-C8NIzWwZ.js";import{r as p}from"./verify-BuSCsdPA.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 u=a({name:"DeployNode",props:{node:{type:Object,default:()=>({id:"",inputs:{},config:{}})}},setup(a){const{isRefreshNode:u}=e(),{registerCompatValidator:v,validate:c,validationResult:f,unregisterValidator:j}=o(),x=i(["warningColor","primaryColor"]),y=s((()=>f.value.valid?"var(--n-primary-color)":"var(--n-warning-color)")),g=s((()=>f.value.valid?r(l,{icon:a.node.config.provider,type:"success"},null):t("t_9_1745735765287")));return n((()=>u.value),(e=>{m((()=>{v(a.node.id,p,a.node.config),c(a.node.id),u.value=null}),500)}),{immediate:!0}),d((()=>j(a.node.id))),()=>r("div",{style:x.value,class:"text-[12px]"},[r("div",{style:{color:y.value}},[g.value])])}});export{u as default};
