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