"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DUbQPmIx.js"),F=require("./SchemaBuilderDrawer-CIxQGffa.js");require("react/jsx-runtime");require("react");require("@mui/material");require("react-icons/md");const i=require("./nodeRegistry.cjs"),f=require("./templateRegistry.cjs"),p=require("./WorkflowExecutionHistory-BHb6-2lt.js"),S=require("./messages-O9Tw_XXR.js"),y=require("./bpmn-CcuE2X_Q.js"),s=require("./GatewayBranchEdge-Ukfp7i1Q.js"),D=require("./buildBackendPayload-BvrjW1uM.js");class N{constructor(){this.channels=new Map}register(o,t){this.channels.set(o,t)}get(o){return this.channels.get(o)}list(){return Array.from(this.channels.entries()).map(([o,t])=>({key:o,...t}))}has(o){return this.channels.has(o)}}const P=new N;function R(r){const{currentNodeId:o,nodes:t,getParents:l,getOutputSchema:a,nodePath:d,nodeLabel:c,getNodeId:u=n=>n.id}=r,g=t.find(n=>u(n)===o);if(!g)return[];const w=v(g,t,l,u),h=[];for(const n of w){const m=a(n);if(!m||m.length===0)continue;const b=d(n);h.push({label:c?c(n):b,items:m.map(k=>T(k,b))})}return h}function v(r,o,t,l){const a=new Set,d=[],c=[...t(r,o)];for(;c.length>0;){const u=c.shift(),g=l(u);a.has(g)||(a.add(g),d.push(u),c.push(...t(u,o)))}return d}function T(r,o){const t=`${o}.${r.key}`,l=r.description??(r.sample!==void 0&&r.sample!==null?String(r.sample):void 0),a={label:r.label,path:t};return l!==void 0&&(a.description=l),r.children&&r.children.length>0&&(a.children=r.children.map(d=>T(d,t))),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=i.NodeTypeRegistry;exports.baseNodeDefaults=i.baseNodeDefaults;exports.conditionBranchDescriptor=i.conditionBranchDescriptor;exports.defineNode=i.defineNode;exports.endEventDescriptor=i.endEventDescriptor;exports.makeSubWorkflowDescriptor=i.makeSubWorkflowDescriptor;exports.nodeTypeRegistry=i.nodeTypeRegistry;exports.notificationDescriptor=i.notificationDescriptor;exports.restApiDescriptor=i.restApiDescriptor;exports.startEventDescriptor=i.startEventDescriptor;exports.subWorkflowDescriptor=i.subWorkflowDescriptor;exports.webhookTriggerDescriptor=i.webhookTriggerDescriptor;exports.webhookTriggerTemplate=i.webhookTriggerTemplate;exports.TemplateRegistry=f.TemplateRegistry;exports.templateRegistry=f.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=S.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=D.buildBackendPayload;exports.buildVariableGroups=R;exports.notificationChannelRegistry=P;
//# sourceMappingURL=index.cjs.map
