"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BY1gMeMW.js"),F=require("./SchemaBuilderDrawer-CWZMMbl1.js");require("react/jsx-runtime");require("react");require("@mui/material");require("react-icons/md");const f=require("./index-BrJBVztu.js"),w=require("./index-CXmgrKoe.js"),p=require("./WorkflowExecutionHistory-ChhIvxHQ.js"),D=require("./messages-Bg7b9RbI.js"),y=require("./bpmn-CcuE2X_Q.js"),s=require("./GatewayBranchEdge-6rCziASt.js"),N=require("./buildBackendPayload-BvrjW1uM.js"),t=require("./subWorkflowDescriptor-JDKi2INh.js");class P{constructor(){this.channels=new Map}register(o,i){this.channels.set(o,i)}get(o){return this.channels.get(o)}list(){return Array.from(this.channels.entries()).map(([o,i])=>({key:o,...i}))}has(o){return this.channels.has(o)}}const v=new P;function R(r){const{currentNodeId:o,nodes:i,getParents:l,getOutputSchema:a,nodePath:d,nodeLabel:c,getNodeId:u=n=>n.id}=r,g=i.find(n=>u(n)===o);if(!g)return[];const k=W(g,i,l,u),h=[];for(const n of k){const b=a(n);if(!b||b.length===0)continue;const m=d(n);h.push({label:c?c(n):m,items:b.map(S=>T(S,m))})}return h}function W(r,o,i,l){const a=new Set,d=[],c=[...i(r,o)];for(;c.length>0;){const u=c.shift(),g=l(u);a.has(g)||(a.add(g),d.push(u),c.push(...i(u,o)))}return d}function T(r,o){const i=`${o}.${r.key}`,l=r.description??(r.sample!==void 0&&r.sample!==null?String(r.sample):void 0),a={label:r.label,path:i};return l!==void 0&&(a.description=l),r.children&&r.children.length>0&&(a.children=r.children.map(d=>T(d,i))),a}exports.DynamicFormRenderer=e.DynamicFormRenderer;exports.FF=e.FF;exports.FlowForgeRegistry=e.FlowForgeRegistry;exports.FlowForm=e.FlowForm;exports.FormulaInput=e.FormulaInput;exports.InfiniteSelectField=e.InfiniteSelectField;exports.OptionsResolversProvider=e.OptionsResolversProvider;exports.TablePickerField=e.TablePickerField;exports.VariablePicker=e.VariablePicker;exports.VariablePickerProvider=e.VariablePickerProvider;exports.astHasRefs=e.astHasRefs;exports.astToTokens=e.astToTokens;exports.buildEvaluationPayload=e.buildEvaluationPayload;exports.buildFieldConfig=e.buildFieldConfig;exports.buildFormulaPath=e.buildFormulaPath;exports.buildSelectStyles=e.buildSelectStyles;exports.buildValidationSchema=e.buildValidationSchema;exports.dataSourceRegistry=e.dataSourceRegistry;exports.errorTextStyle=e.errorTextStyle;exports.extractLabel=e.extractLabel;exports.fieldRegistry=e.fieldRegistry;exports.hasFormulaTokens=e.hasFormulaTokens;exports.helperTextStyle=e.helperTextStyle;exports.inputStyle=e.inputStyle;exports.isFormula=e.isFormula;exports.parseToAST=e.parseToAST;exports.serializeAST=e.serializeAST;exports.serializeASTAsConfig=e.serializeASTAsConfig;exports.serializeConditionExpressions=e.serializeConditionExpressions;exports.stripFormulaTokens=e.stripFormulaTokens;exports.tokenize=e.tokenize;exports.unwrapFormula=e.unwrapFormula;exports.useDynamicOptions=e.useDynamicOptions;exports.useOptionsResolvers=e.useOptionsResolvers;exports.useVariablePickerContext=e.useVariablePickerContext;exports.wrapFormula=e.wrapFormula;exports.FIELD_TYPE_OPTIONS=F.FIELD_TYPE_OPTIONS;exports.SchemaBuilder=F.SchemaBuilder;exports.SchemaBuilderDrawer=F.SchemaBuilderDrawer;exports.useFlowForm=F.useFlowForm;exports.NodeTypeRegistry=f.NodeTypeRegistry;exports.nodeTypeRegistry=f.nodeTypeRegistry;exports.TemplateRegistry=w.TemplateRegistry;exports.templateRegistry=w.templateRegistry;exports.FlowForgeCanvas=p.FlowForgeCanvas;exports.FlowForgeHeader=p.FlowForgeHeader;exports.SubWorkflowPreviewDrawer=p.SubWorkflowPreviewDrawer;exports.WorkflowCanvas=p.FlowForgeCanvas;exports.WorkflowExecutionHistory=p.WorkflowExecutionHistory;exports.WorkflowTemplateLibrary=p.WorkflowTemplateLibrary;exports.defaultFlowForgeMessages=D.defaultFlowForgeMessages;exports.loadWorkflowFromBpmn=y.loadWorkflowFromBpmn;exports.saveWorkflowToBpmn=y.saveWorkflowToBpmn;exports.ActionNode=s.ActionNode;exports.ApprovalNode=s.ApprovalNode;exports.EdgeWithPlusLabel=s.EdgeWithPlusLabel;exports.EndNode=s.EndNode;exports.FilterNode=s.FilterNode;exports.RestApiNode=s.RestApiNode;exports.StartNode=s.StartNode;exports.TriggerNode=s.TriggerNode;exports.WebhookTriggerNode=s.WebhookTriggerNode;exports.builtInNodeTypes=s.builtInNodeTypes;exports.buildBackendPayload=N.buildBackendPayload;exports.baseNodeDefaults=t.baseNodeDefaults;exports.conditionBranchDescriptor=t.conditionBranchDescriptor;exports.defineNode=t.defineNode;exports.endEventDescriptor=t.endEventDescriptor;exports.makeSubWorkflowDescriptor=t.makeSubWorkflowDescriptor;exports.notificationDescriptor=t.notificationDescriptor;exports.restApiDescriptor=t.restApiDescriptor;exports.startEventDescriptor=t.startEventDescriptor;exports.subWorkflowDescriptor=t.subWorkflowDescriptor;exports.webhookTriggerDescriptor=t.webhookTriggerDescriptor;exports.webhookTriggerTemplate=t.webhookTriggerTemplate;exports.buildVariableGroups=R;exports.notificationChannelRegistry=v;
//# sourceMappingURL=index.cjs.map
