allinssl/build/static/js/index-B8azMEtV.js

2 lines
1.1 KiB
JavaScript

import{u as e,a as o}from"./index-0TZgzcKc.js";import{d as a,a as i,l as s,c as r,$ as t,w as n,aL as d}from"./main-nq6CyAEG.js";import{A as l}from"./index-BGvU-A7y.js";import{r as p}from"./verify-11EmNtXa.js";import{u as m}from"./index-BFHookVd.js";import"./index-BOIfhWe5.js";import"./index-BdmQ5hPU.js";import"./test-atuOPBtq.js";import"./useStore-BqsFkvpN.js";import"./business-CsDkB4ip.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};