Files
qhmes/web-dist/js/WorkflowView-f6TDQNjS-BI8W0EwH.js

27 lines
66 KiB
Java
Raw Normal View History

2026-06-16 18:19:57 +08:00
import{B as Ao,L as fe,a as ko,s as bo,T as Rt,P as Re,k as L,c as M,b as D,u as To,_ as $o,d as Co,i as Le,A as Oo}from"./NodeStyle-Bo2gmgjj-CM4kHPNz.js";import"./index-D9GWo192.js";import{s as Mo,bo as _t,a4 as Lo,j7 as kt,aQ as Do,w as Ro}from"./index-X7Y8jykP.js";import _o from"./AddNodeDrawer-Bq5MtQ5T-Dx6Rkn2-.js";import Go from"./DebugRunDrawer-CqRtIE_v-5OE-iftJ.js";import Bo from"./NodeSettingDrawer-dOi12yvt-GYUTtPjD.js";import{L as Wo,E as A,G as ie}from"./LoopSetting-DFRTL4YJ-B9dqSzwu.js";import{U as m,D as lt}from"./NodeContainer-D9PNfjwh-CawrgSrv.js";import{b as ut,g as Ae,a as Ho,S as Gt}from"./SwitchSetting-Ci0cQTuz-COKTphJu.js";import{b as ct,g as ke,a as Fo,C as Bt}from"./ClassifierSetting-CxiJ9gbO-DtCF_hfx.js";import{n as ue,o as ee,h as Wt,r as ht}from"./index-Crt100Db-CDbHzweT.js";import{l as qo}from"./runStore-Oe6fP2qb-CrdxkpS7.js";import{l as jo,P as Ht}from"./propStore-Cl0CojEU-BjnqDV4W.js";import Yo from"./ControlRender-Vix8_5tS-FVArTilo.js";import{p as _e,E as Xo,d as R,n as Vo,c as Uo,F as Ko,H as Ft,B as zo}from"./LoopBodyNode-wLHHxX8A-D3_JcFF8.js";import{C as re}from"./useSettings-CFG4Ykt4-CKCQ4yAA.js";import Jo from"./StartIcon-Dubb8UTR-0jdh0Lpu.js";import Qo from"./StartSetting-gRqJlalx-CdfyR7-J.js";import Zo from"./StartNode-CMHcuenf-DPrjjpV4.js";import{L as qt,G as en}from"./cron-BgP3IAPd-riMowXKQ.js";import tn from"./EndIcon-D5MjTL-5-Dw57QBMA.js";import on from"./EndSetting-C2bFJMMj-BY_o6Rkt.js";import nn from"./EndNode-CGbO5P9l-CoP7oy0r.js";import rn from"./LLMIcon-CsVBLVQT-D3VxISiq.js";import sn from"./LLMSetting-DGQyHzhq-7j2F0FBd.js";import an from"./LLMNode-CNuOY9fJ-Ce3M0YDW.js";import dn from"./ClassifierIcon-DiVVowKy-Cuq-EoEF.js";import pn from"./ClassifierNode-DDKcVL7a-DMSaAZdG.js";import ln from"./SwitchIcon-B1WwvmQy-Bt-wixKc.js";import un from"./SwitchNode-Cz7OTBF--BZq29tjg.js";import cn from"./KnowledgeIcon-CdOxc1Q--p4ql_M6-.js";import hn from"./KnowledgeSetting-DlRj2U5K-BBBfO8Yc.js";import mn from"./KnowledgeNode-W9n4j42C-DnOBJ5yU.js";import fn from"./KnowledgeWriteIcon-CY27u26C-BdZQUyS3.js";import gn from"./KnowledgeWriteSetting-ByvSTi6A-D4ZaMdwz.js";import yn from"./KnowledgeWriteNode-Bwfv35IQ-BzTJHKYI.js";import Nn from"./CodeIcon-B0ATCs-I-B938ilX8.js";import vn from"./CodeSetting-NKr5I0D_-ZZwu9U4Y.js";import xn from"./CodeNode-C_Qjcyx9-C0qLEk7y.js";import In from"./SubflowIcon-OszYMa9Q-DlMCtI2x.js";import En from"./SubflowSetting-B0aBbxVo-Cfd4BZae.js";import Sn from"./SubflowNode-BcLpETRW-CZBpRtv5.js";import Pn from"./EnhanceJavaIcon-BPSLyKTR-EM7JWADu.js";import wn from"./EnhanceJavaSetting-DbcAg6Rg-BbaIUVHS.js";import An from"./EnhanceJavaNode-BJJ2Pimb-Vw7mGpMd.js";import kn from"./HTTPIcon-B1ShouOi-CrU8TvDv.js";import bn from"./HTTPSetting-B6l6BI2e-MIqyLC4i.js";import Tn from"./HTTPNode-B_UL-pCL-Cc8WXshH.js";import $n from"./VarMergeIcon-BlKCD9o--8xNeQ_Lz.js";import{V as Cn,b as On,c as Mn}from"./VarMergeSetting-yNUDKo9n-BHmMVOoR.js";import Ln from"./VarMergeNode-Uwf7dW3o-Wt1aYX6a.js";import Dn from"./VarExtractIcon-DCuj6qM2-8H3CtU0Q.js";import Rn from"./VarExtractSetting-BOAqQc3_-Yzy3AJLE.js";import _n from"./VarExtractNode-BELyPf2Q-CLcCZujR.js";import{t as se,l as jt}from"./VarDefineModal-CEI5IHr7-0fS42-kw.js";import Gn from"./ToolsIcon-DjCXPpfC-C6GIK5Nz.js";import Bn from"./ToolsSetting-3eda9Btb-DqJsvyg3.js";import Wn from"./ToolsNode-FKwzAffR-J01ucmU8.js";import Hn from"./BraveSearchIcon-CPY-t0PC-gGLUjxQU.js";import Fn from"./BraveSearchSetting-B4xAAQuR-D0lzdqXS.js";import qn from"./BraveSearchNode-C0b8eUU--CLgfbVFq.js";import jn from"./ReplyIcon-Sh3DRjXl-Cg0I_7Cp.js";import Yn from"./ReplySetting-CiInLDZO-DdF4JtRJ.js";import Xn from"./ReplyNode-BDrBoChI-9p4cZdRi.js";import Vn from"./SqlIcon-Cxx5wVdB-BH_yRa2q.js";import Un from"./SqlSetting-CLtDuYeW-BcKPOXht.js";import Kn from"./SqlNode-CT5Ct1zf-DmSZRkFd.js";import zn from"./LoopIcon-BnGR9e2Y-QnRawAik.js";import Jn from"./LoopNode-DOQOa7vA-tGYrNpV6.js";import Qn from"./LoopBreakIcon-BMZmxYcb-DF8XURNQ.js";import Zn from"./LoopBreakNode-d_rBXNID-DTwRcyB4.js";import er from"./LoopContinueIcon-BEeXpCcy-Bn4M4v2i.js";import
`).join(`
`)}`}getElString_WHEN_THEN(){const e=this.child||[];let t="",r="";this.aliasId&&(t=this.aliasId.startsWith("tag:")?`.tag("${this.aliasId.substring(4)}")`:`.id("${this.aliasId}")`),this.childFirstId&&(r=`.tag("${this.childFirstId}")`);const i=e.map(p=>p.getElString()),n=i.join(",");if(e.length===1&&(!this.aliasId||e[0].type===A.THEN||e[0].type===A.WHEN))return`${n}${t}`;if(n.length<this.maxLineNum-6)return`${this.type}(${n})${r||t}`;const s=this.insertSpace(i.join(`,
`));return`${this.type}(
${s}
)${r||t}`}getELString_Group(){var e,t,r,i,n;const s=this.child||[],p=s.map(g=>g.getElString()).join(",");if(this.groupType===ie.CONFIG){const g=(e=this.properties)!=null&&e.ignoreError?".ignoreError(true)":"",E=(t=this.properties)!=null&&t.any?"any(true)":"",x=(r=this.properties)!=null&&r.must?`must(${(i=this.properties)==null?void 0:i.must})`:"";return`${p}${g}${E}${x}`}if(this.groupType===ie.LOGIC)return this.elString;const d=this.groupType;if(this.groupType===ie.CATCH){const g=this.exceptionNode.getElString();return`${d}(${p}).DO(${g})`}const u=this.breakNode?`.BREAK(${this.breakNode.getElString()})`:"";let f;return this.originType===m.LOOP?f=`${this.originType}.tag('${this.id}')`:f=(n=this.startNode)!=null&&n.nodeId?this.startNode.getElString():this.startNum,s.length===1?`${d}(${f}).DO(${p})${u}`:`${d}(${f}).DO(WHEN(${p}))${u}`}getELString_IF(){const e=(this.child||[]).map(r=>r.getElString()),t=e.join(",");return t.length<this.maxLineNum-4?`IF(${t})`:`IF(
${this.insertSpace(e.join(`,
`))}
)`}getELString_SWITCH(){this.parseSwitchChildren();const e=(this.child||[]).map(p=>p.getElString()),t=e.join(","),r=this.originType,i=`${r||m.SWITCH}.tag('${this.nodeId}')`,n=`.tag('${this.id}')`;if(t.length<this.maxLineNum-13-this.nodeId.length)return`SWITCH(${i}).to(${t})${n}`;const s=this.insertSpace(e.join(`,
`));return`SWITCH(${i}).to(
${s}
)${n}`}parseSwitchChildren(){if(this.anchorsNextIds.length===0)return;const e=this.child||[];if(!(e.length<=this.anchorsNextIds.length)){for(const{nextIds:t}of this.anchorsNextIds){if(t.length<=1)continue;const r=new z;r.type=A.WHEN;for(let i=0;i<t.length;i++){const n=t[i],s=e.findIndex(p=>{let d=p.id;return!d&&p.child.length>0&&(d=p.child[0].id),d===n||p.childFirstId===n});s!==-1&&(i===0?r.addChild(e.splice(s,1,r)[0]):r.addChild(e.splice(s,1)[0]))}}this.child=e}}}class Dr{constructor(){this.stack=[],this.ebpStack=[]}peek(e){return e[e.length-1]}pop(){return this.stack.pop()}push(e){this.stack.push(e)}clear(){this.stack=[]}resolve(){const e=this.peek(this.ebpStack),t=this.stack[e+1];for(let r=e+2;r<this.stack.length;r++){const i=this.stack[r];t.addChild(i)}return t}quit(){const e=this.resolve(),t=this.stack[this.peek(this.ebpStack)];for(;this.stack.length>this.peek(this.ebpStack);)this.stack.pop();return this.stack.push(e),this.ebpStack.pop(),t}create(){this.ebpStack.push(this.stack.length),this.stack.push(new z)}addEndPoint(e){this.stack[this.peek(this.ebpStack)]=e}getEndPoint(){return this.stack[this.peek(this.ebpStack)]}}class Rr{constructor(e){this.endPoints={},this.sourceNum={},this.nodeMap={},this.inGrooupNode={},this.elStack=new Dr,this.startId="start",this.endId="end",this.CUSTOM_SWITCH_NODE=[m.SWITCH,m.CLASSIFIER,m.VAR_EXTRACT],this.anchorNextIdsMap=e}isEnd(e){return this.endId===e}isStart(e){return this.startId===e}getNodeById(e){return this.nodeMap[e]}initEdge(e,t,r=""){if(this.inGrooupNode[e]||this.inGrooupNode[t])return;this.endPoints[e]||(this.endPoints[e]=[]);const i=this.nodeMap[t];i.comingEdgeText=r,this.endPoints[e].push(i),this.sourceNum[t]||(this.sourceNum[t]=0),this.sourceNum[t]++}init(e){const t=[];e.nodes.forEach(n=>{if(n.id){if(this.typeFormat(n.type)===A.GROUP){t.push(n);return}this.initELNode(n)}}),t.forEach(n=>{this.initLoopELNode(n)});const r=new z;r.id=this.startId,this.nodeMap[this.startId]=r;const i=new z;i.id=this.endId,this.nodeMap[this.endId]=i,e.edges.forEach(n=>{var s,p;const d=n.sourceNodeId,u=n.targetNodeId;!d||!u||(this.nodeMap[d].type===A.IF?this.parseIFEdge((s=n.text)==null?void 0:s.value,d,u):this.initEdge(d,u,(p=n.text)==null?void 0:p.value))}),e.nodes.forEach(n=>{!n.id||this.inGrooupNode[n.id]||(this.endPoints[n.id]||this.initEdge(n.id,this.endId),this.sourceNum[n.id]||this.initEdge(this.startId,n.id))}),e.nodes.length===0&&this.initEdge(this.startId,this.endId)}parseIFEdge(e,t,r){const i=this.nodeMap[r];let n=this.endPoints[t];n||(n=[void 0,void 0]),this.isTrueText(e)?(n[0]&&(n[1]=n[0]),n[0]=i):this.isFalseText(e)?(n[1]&&(n[0]=n[1]),n[1]=i):n[0]?n[1]=i:n[0]=i,this.endPoints[t]=n,this.sourceNum[r]||(this.sourceNum[r]=0),this.sourceNum[r]++}isTrueText(e){return!!["","true","True","TRUE"].find(t=>t===e)}isFalseText(e){return!!["","false","False","FALSE"].find(t=>t===e)}initELNode(e){var t,r,i,n,s,p,d;e.properties=ne({},e.properties),e.properties.nodeId=e.id,e.properties.name=e.properties.text,e.properties.tag=e.id;const u=new z;return u.id=e.id,u.type=this.typeFormat(e.type),u.originType=e.type,this.handleSwitchNode(u,e),u.properties=e.properties,u.nodeId=(t=e.properties)==null?void 0:t.nodeId,u.name=(r=e.properties)==null?void 0:r.name,u.groupType=(i=e.properties)==null?void 0:i.groupType,u.data=(n=e.properties)==null?void 0:n.data,u.aliasId=(s=e.properties)==null?void 0:s.aliasId,u.tag=(p=e.properties)==null?void 0:p.tag,u.startNum=(d=e.properties)==null?void 0:d.startNum,this.nodeMap[u.id]=u,u}handleSwitchNode(e,t){if(e.type!==A.SWITCH)return;const r=e.originType===m.SWITCH?Gt:Bt,i=r.getCaseList(t);for(let n=0;n<i.length;n++){const s=i[n],p=r.getAnchorId(t.id,s.type,n+1),d=this.anchorNextIdsMap.get(p);d&&d.length>0&&e.anchorsNextIds.push({anchorId:p,nextIds:d})}}initLoopELNode(e){var t,r,i;(t=e.flowData)!=null&&t.nodes||(e.flowData={nodes:[],edges:[]});const n=this.initELNode(e);n.groupType==ie.LOGIC?n.elString=this.getLogicStr(e.flowData):n.addChild(new Yt(e.flowData,this.anchorNextIdsMap).parse()),this.nodeMap[n.id]=n,e.flowData.nodes.forEach(s=>{const p=s.id;this.inG
- 你是李白
- 人称第一人称
- 出生地安西都护府碎叶城
- 性格特点豪放不羁自信豁达重情重义浪漫洒脱
- 语言风格富有想象力优美流畅
- 经典台词
- 仰天大笑出门去我辈岂是蓬蒿人
- 天生我材必有用千金散尽还复来`},{role:"user",content:""}]},t.options),inputParams:t.inputParams,outputParams:t.outputParams}}}function Zr(o,e,{checkInputParams:t}){const{properties:r}=e,{options:i}=r,n=[...t({text:"输入变量",required:!1})];if(i.model.modeId||n.push("必须选择模型"),i.structuredOutput){const s=i.structuredOutputFields;!Array.isArray(s)||s.length===0?n.push("启用结构化输出时,至少需要配置一个输出字段"):s.some(p=>!p.field)&&n.push("结构化输出字段名不能为空")}return n}function ei(o){var e;const{mergeIOParams:t,updateOption:r}=re(o,zt);t(),r("showToolExecution",n=>typeof n!="boolean"),r("structuredOutput",n=>typeof n!="boolean"),r("structuredOutputFields",n=>!Array.isArray(n));const i=(e=o.properties)==null?void 0:e.options;(i==null?void 0:i.systemPromptMode)==="ref"&&!(i!=null&&i.systemPromptRefId)&&(o.properties.options.systemPromptMode="fill")}class ti extends D{get $caseList(){return ct(this)}}const Fe={type:m.CLASSIFIER,label:"分类器",docs:["https://help.jeecg.com/aigc/flowNodes/nodeClassifier"],components:{icon:dn,setting:Fo},lfNode:{type:m.CLASSIFIER,view:R,model:ti,component:pn},params:{width:M,height:L},methods:{createNode:oi,checkNode:ni,updateNodeSetting:ri,getAnchorId:ke,getDefaultAnchor(o){const[e,t]=o,r=[e];if(!this.$caseList.length)return r;for(let i=0;i<this.$caseList.length;i++){const n=this.$caseList[i];r.push({id:ke(this.id,n.type,i+1),x:t.x,y:t.y+34+22*i+22*i,type:"right"})}return r}}},Jt=()=>({outputParams:[{field:"index",name:"分类索引",type:"number"},{field:"content",name:"分类描述",type:"string"}]});function oi(o){var e;const t=Jt();return{id:o.id,remarks:"",type:Fe.type,x:o.x,y:o.y,properties:{text:(e=o.text)!=null?e:Fe.label,options:{model:{modeId:"",params:{model:"",temperature:.7}},categories:[{category:"",next:""},{category:"",next:""}],else:{next:""}},inputParams:[],outputParams:t.outputParams}}}function ni(o,e,{findNextIdsByAnchorId:t}){const{edges:r}=o.graphModel,{properties:i}=e,{options:n}=i,s=[];(!Array.isArray(n==null?void 0:n.categories)||n.categories.length===0)&&s.push("“分类”不能为空");const p=ct(e);for(let d=0;d<p.length;d++){const u=p[d],f=ke(e.id,u.type,d+1);t(f,r).length===0&&s.push(`${u.label}未连接下一个节点`)}return s}function ri(o){const{mergeIOParams:e}=re(o,Jt);e();const t=o.properties.outputParams.find(r=>r.field==="content");t&&(t.name="分类描述")}class ii extends D{get $caseList(){return ut(this)}}const qe={type:m.SWITCH,label:"条件分支",docs:["https://help.jeecg.com/aigc/flowNodes/nodeSwitch"],components:{icon:ln,setting:Ho},lfNode:{type:m.SWITCH,view:R,model:ii,component:un},params:{width:M,height:L},methods:{createNode:si,checkNode:di,updateNodeSetting:ai,getAnchorId:Ae,getDefaultAnchor(o){const[e,t]=o,r=[e];if(!this.$caseList.length)return r;for(let i=0;i<this.$caseList.length;i++){const n=this.$caseList[i];r.push({id:Ae(this.id,n.type,i+1),x:t.x,y:t.y+34+26*i,type:"right"})}return r}}},Qt=()=>({outputParams:[{field:"index",name:"分支索引",type:"number"}]});function si(o){var e;const t=Qt();return{id:o.id,remarks:"",type:qe.type,x:o.x,y:o.y,properties:{text:(e=o.text)!=null?e:qe.label,options:{if:[{logic:"AND",conditions:[{nodeId:"",field:"",operator:"EQUALS",value:""}],next:""}],else:{next:""}},inputParams:[],outputParams:t.outputParams}}}function ai(o){const{mergeIOParams:e}=re(o,Qt);e()}function di(o,e,{findNextIdsByAnchorId:t}){const{edges:r}=o.graphModel,{properties:i}=e,{options:n}=i,s=[];(!Array.isArray(n==null?void 0:n.if)||n.if.length===0)&&s.push("“IF”分支条件不能为空");const p=ut(e);for(let d=0;d<p.length;d++){const u=p[d],f=Ae(e.id,u.type,d+1);t(f,r).length===0&&s.push(`${u.label}分支未连接下一个节点`)}return s}const je={type:m.KNOWLEDGE,label:"知识库",docs:["https://help.jeecg.com/aigc/flowNodes/nodeKnow"],components:{icon:cn,setting:hn},lfNode:{type:m.KNOWLEDGE,view:R,model:D,component:mn},params:{width:M,height:L},methods:{createNode:pi,checkNode:li}};function pi(o){var e;return{id:o.id,rema
function main(params) {
return {
result: params.arg1 + '_拼接_' + params.arg2,
}
}
`.trim()},inputParams:[{field:"",name:"arg1",nodeId:""},{field:"",name:"arg2",nodeId:""}],outputParams:[{field:"result",name:"返回结果",type:"string"}]}}}function gi(o,e,{checkInputParams:t}){const{properties:r}=e,{options:i}=r,n=[...t({text:"输入变量",required:!1})];return i.code||n.push("脚本内容不能为空"),n}const Ve={type:m.SUBFLOW,label:"子流程",docs:["https://help.jeecg.com/aigc/flowNodes/nodeSubFlow"],components:{icon:In,setting:En},lfNode:{type:m.SUBFLOW,view:R,model:D,component:Sn},params:{width:M,height:L},methods:{createNode:yi,checkNode:Ni}};function yi(o){var e;return{id:o.id,remarks:"",type:Ve.type,x:o.x,y:o.y,properties:{text:(e=o.text)!=null?e:Ve.label,options:{subflowId:""},inputParams:[],outputParams:[]}}}function Ni(o,e,{checkInputParams:t}){const{properties:r}=e,{options:i}=r,n=[...t({text:"输入变量",required:!1})];return i.subflowId||n.push("必须选择子流程"),n}const Ue={type:m.ENHANCE_JAVA,label:"Java 增强",docs:["https://help.jeecg.com/aigc/flowNodes/nodeJava"],components:{icon:Pn,setting:wn},lfNode:{type:m.ENHANCE_JAVA,view:R,model:D,component:An},params:{width:M,height:L},methods:{createNode:vi,checkNode:xi}};function vi(o){var e;return{id:o.id,remarks:"",type:Ue.type,x:o.x,y:o.y,properties:{text:(e=o.text)!=null?e:Ue.label,options:{enhance:{type:"class",path:""}},inputParams:[{field:"",name:"arg1",nodeId:""},{field:"",name:"arg2",nodeId:""}],outputParams:[{field:"result",name:"返回结果",type:"string"}]}}}function xi(o,e,{checkInputParams:t}){const{properties:r}=e,{options:i}=r,n=[...t({text:"输入变量",required:!1})],s=i.enhance.type==="class";return i.enhance.path||n.push(`${s?"类路径":"Spring Bean 名称"}必须填写`),n}const Ke={type:m.HTTP,label:"HTTP 请求",docs:["https://help.jeecg.com/aigc/flowNodes/nodeHttp"],components:{icon:kn,setting:bn},lfNode:{type:m.HTTP,view:R,model:D,component:Tn},params:{width:M,height:L},methods:{createNode:Ii,checkNode:Si,updateNodeSetting:Ei}},Zt=()=>({inputParams:[],outputParams:[{field:"body",name:"回复内容",type:"string"},{field:"statusCode",name:"状态码",type:"number"}]});function Ii(o){var e;const t=Zt();return{id:o.id,remarks:"",type:Ke.type,x:o.x,y:o.y,properties:{text:(e=o.text)!=null?e:Ke.label,options:{http:{url:"",method:"GET",headers:{},requestBody:{type:"none",body:""},requestParams:{},timeout:120,retriesTimes:0}},inputParams:t.inputParams,outputParams:t.outputParams}}}function Ei(o){const{mergeIOParams:e}=re(o,Zt);e();const{requestBody:t}=o.properties.options.http;(!t||typeof t=="string")&&(o.properties.options.http.requestBody={type:"none",body:t||""})}function Si(o,e,{checkInputParams:t}){const{properties:r}=e,{options:i}=r,n=[...t({text:"输入变量",required:!1})];return i.http.url||n.push("请求地址必须填写"),n}const ze={type:m.VAR_MERGE,label:"变量聚合",components:{icon:$n,setting:Cn},lfNode:{type:m.VAR_MERGE,view:R,model:D,component:Ln},params:{width:M,height:L},methods:{createNode:Pi,checkNode:wi}};function Pi(o){var e;const t=[Mn(1)];return{id:o.id,remarks:"",type:ze.type,x:o.x,y:o.y,properties:{text:(e=o.text)!=null?e:ze.label,options:{varGroups:t},inputParams:[],outputParams:On(t)}}}function wi(o,e){var t,r,i;const n=[],s=(i=(r=(t=e==null?void 0:e.properties)==null?void 0:t.options)==null?void 0:r.varGroups)!=null?i:[];if(!Array.isArray(s)||s.length===0)return n.push("请至少配置一个变量分组"),n;const p=new Set;return s.forEach(d=>{const u=d.name;if(p.has(u)){n.push(`${u}的名称与其他分组重复`);return}if(p.add(d.name),!(d!=null&&d.type)){n.push(`${u}未确定类型请先选择上游变量`);return}const f=Array.isArray(d==null?void 0:d.vars)?d.vars:[];if(f.length===0){n.push(`${u}至少需要一个变量`);return}for(const g of f)if((g==null?void 0:g.isCustom)!==!0&&(!(g!=null&&g.nodeId)||!(g!=null&&g.field))){n.push(`${u}存在未选择的变量`);break}}),n}const Je={type:m.VAR_EXTRACT,label:"变量提取器",components:{icon:Dn,setting:Rn},lfNode:{type:m.VAR_EXTRACT,view:R,model:D,component:_n},params:{width:M,height:L},methods:{createNode:Ai,check