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