@processmaker/modeler 1.46.4 → 1.46.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13606,7 +13606,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".control-list[data-v-317b8b6e]{margin:
13606
13606
 
13607
13607
  /***/ }),
13608
13608
 
13609
- /***/ 12757:
13609
+ /***/ 12946:
13610
13610
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13611
13611
 
13612
13612
  "use strict";
@@ -13620,7 +13620,7 @@ __webpack_require__.r(__webpack_exports__);
13620
13620
 
13621
13621
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
13622
13622
  // Module
13623
- ___CSS_LOADER_EXPORT___.push([module.id, ".rail-container[data-v-2a9e260d]{bottom:20px;left:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:48px;max-height:48px;z-index:2}.rail-container[data-v-2a9e260d],.rail-left[data-v-2a9e260d]{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.rail-left[data-v-2a9e260d]{width:auto;padding:0 35px}.rail-center[data-v-2a9e260d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:22px;-moz-column-gap:22px;column-gap:22px;width:100%;padding-right:5px;overflow-x:hidden}.hidden-opacity[data-v-2a9e260d]{opacity:0;visibility:hidden;position:absolute;pointer-events:none}", ""]);
13623
+ ___CSS_LOADER_EXPORT___.push([module.id, ".rail-container[data-v-1acea7b8]{bottom:20px;left:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:48px;max-height:48px;z-index:2}.rail-container[data-v-1acea7b8],.rail-left[data-v-1acea7b8]{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.rail-left[data-v-1acea7b8]{width:auto;padding:0 35px}.rail-center[data-v-1acea7b8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:22px;-moz-column-gap:22px;column-gap:22px;width:100%;padding-right:5px;overflow-x:hidden}.hidden-opacity[data-v-1acea7b8]{opacity:0;visibility:hidden;position:absolute;pointer-events:none}", ""]);
13624
13624
  // Exports
13625
13625
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
13626
13626
 
@@ -27227,19 +27227,19 @@ var update = add("35a47f28", content, true, {"sourceMap":false,"shadowMode":fals
27227
27227
 
27228
27228
  /***/ }),
27229
27229
 
27230
- /***/ 73603:
27230
+ /***/ 83903:
27231
27231
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
27232
27232
 
27233
27233
  // style-loader: Adds some css to the DOM by adding a <style> tag
27234
27234
 
27235
27235
  // load the styles
27236
- var content = __webpack_require__(12757);
27236
+ var content = __webpack_require__(12946);
27237
27237
  if(content.__esModule) content = content.default;
27238
27238
  if(typeof content === 'string') content = [[module.id, content, '']];
27239
27239
  if(content.locals) module.exports = content.locals;
27240
27240
  // add the styles to the DOM
27241
27241
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
27242
- var update = add("18aad75e", content, true, {"sourceMap":false,"shadowMode":false});
27242
+ var update = add("4b392fc8", content, true, {"sourceMap":false,"shadowMode":false});
27243
27243
 
27244
27244
  /***/ }),
27245
27245
 
@@ -28656,8 +28656,8 @@ __webpack_require__.d(__webpack_exports__, {
28656
28656
  var config_namespaceObject = {};
28657
28657
  __webpack_require__.r(config_namespaceObject);
28658
28658
  __webpack_require__.d(config_namespaceObject, {
28659
- bpmnType: function() { return config_bpmnType; },
28660
- definition: function() { return config_definition; },
28659
+ bpmnType: function() { return bpmnType; },
28660
+ definition: function() { return definition; },
28661
28661
  diagram: function() { return config_diagram; },
28662
28662
  id: function() { return config_id; }
28663
28663
  });
@@ -28666,8 +28666,8 @@ __webpack_require__.d(config_namespaceObject, {
28666
28666
  var dataInputAssociation_config_namespaceObject = {};
28667
28667
  __webpack_require__.r(dataInputAssociation_config_namespaceObject);
28668
28668
  __webpack_require__.d(dataInputAssociation_config_namespaceObject, {
28669
- bpmnType: function() { return dataInputAssociation_config_bpmnType; },
28670
- definition: function() { return dataInputAssociation_config_definition; },
28669
+ bpmnType: function() { return config_bpmnType; },
28670
+ definition: function() { return config_definition; },
28671
28671
  diagram: function() { return dataInputAssociation_config_diagram; },
28672
28672
  id: function() { return dataInputAssociation_config_id; }
28673
28673
  });
@@ -32585,6 +32585,288 @@ function removeRef(state, ref, callBack) {
32585
32585
  }
32586
32586
  }
32587
32587
  }));
32588
+ // EXTERNAL MODULE: external "lodash"
32589
+ var external_lodash_ = __webpack_require__(24793);
32590
+ var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
32591
+ ;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
32592
+ var config_id = 'processmaker-modeler-data-output-association';
32593
+ var bpmnType = 'bpmn:DataOutputAssociation';
32594
+ function definition(moddle) {
32595
+ return moddle.create('bpmn:DataOutputAssociation', {
32596
+ targetRef: {
32597
+ x: undefined,
32598
+ y: undefined
32599
+ }
32600
+ });
32601
+ }
32602
+ function config_diagram(moddle) {
32603
+ return moddle.create('bpmndi:BPMNEdge');
32604
+ }
32605
+ ;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
32606
+ var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
32607
+ var config_bpmnType = 'bpmn:DataInputAssociation';
32608
+ function config_definition(moddle) {
32609
+ return moddle.create('bpmn:DataInputAssociation', {
32610
+ targetRef: {
32611
+ x: undefined,
32612
+ y: undefined
32613
+ }
32614
+ });
32615
+ }
32616
+ function dataInputAssociation_config_diagram(moddle) {
32617
+ return moddle.create('bpmndi:BPMNEdge');
32618
+ }
32619
+ ;// CONCATENATED MODULE: ./src/components/crown/utils.js
32620
+
32621
+
32622
+
32623
+
32624
+
32625
+
32626
+
32627
+
32628
+
32629
+ function removeFlows(graph, shape) {
32630
+ var _this = this;
32631
+ var linkShapes = graph.getConnectedLinks(shape);
32632
+ linkShapes.forEach(function (shape) {
32633
+ return _this.$emit('remove-node', shape.component.node);
32634
+ });
32635
+ }
32636
+
32637
+ // Remove the incoming and outgoing flows of a node
32638
+ function removeNodeFlows(node, modeler) {
32639
+ if (node.definition.incoming) {
32640
+ node.definition.incoming.forEach(function (flow) {
32641
+ var node = modeler.nodes.find(function (node) {
32642
+ return node.definition === flow;
32643
+ });
32644
+ modeler.removeNode(node);
32645
+ });
32646
+ }
32647
+ if (node.definition.outgoing) {
32648
+ node.definition.outgoing.forEach(function (flow) {
32649
+ var node = modeler.nodes.find(function (node) {
32650
+ return node.definition === flow;
32651
+ });
32652
+ modeler.removeNode(node);
32653
+ });
32654
+ }
32655
+ }
32656
+ // Remove the associations of a node
32657
+ function removeNodeMessageFlows(node, modeler) {
32658
+ var linkedMessages = modeler.nodes.filter(function (n) {
32659
+ if (n.definition.sourceRef) {
32660
+ if (n.definition.sourceRef === node.definition) {
32661
+ return true;
32662
+ }
32663
+ }
32664
+ if (n.definition.targetRef) {
32665
+ if (n.definition.targetRef === node.definition) {
32666
+ return true;
32667
+ }
32668
+ }
32669
+ });
32670
+ linkedMessages.forEach(function (messageFlow) {
32671
+ modeler.removeNode(messageFlow);
32672
+ });
32673
+ }
32674
+ // Remove the associations of a node
32675
+ function removeNodeAssociations(node, modeler) {
32676
+ var linkedAssociations = modeler.nodes.filter(function (n) {
32677
+ if (n.definition.sourceRef) {
32678
+ if (n.definition.sourceRef === node.definition) {
32679
+ return true;
32680
+ }
32681
+ }
32682
+ if (n.definition.targetRef) {
32683
+ if (n.definition.targetRef === node.definition) {
32684
+ return true;
32685
+ }
32686
+ }
32687
+ });
32688
+ linkedAssociations.forEach(function (association) {
32689
+ modeler.removeNode(association);
32690
+ });
32691
+ }
32692
+ function removeBoundaryEvents(graph, node, removeNode) {
32693
+ var nodeShape = graph.getCells().find(function (el) {
32694
+ return el.component && el.component.node === node;
32695
+ });
32696
+ if (nodeShape) {
32697
+ nodeShape.getEmbeddedCells({
32698
+ deep: true
32699
+ }).filter(function (cell) {
32700
+ return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
32701
+ }).forEach(function (boundaryEventShape) {
32702
+ graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
32703
+ return removeNode(shape.component.node);
32704
+ });
32705
+ removeNode(boundaryEventShape.component.node);
32706
+ });
32707
+ }
32708
+ }
32709
+ function removeOutgoingAndIncomingRefsToFlow(node) {
32710
+ if (node.isBpmnType(bpmnType, config_bpmnType)) {
32711
+ return;
32712
+ }
32713
+
32714
+ /* Modify source and target refs to remove incoming and outgoing properties pointing to this link */
32715
+ var _node$definition = node.definition,
32716
+ sourceRef = _node$definition.sourceRef,
32717
+ targetRef = _node$definition.targetRef;
32718
+ if (sourceRef) {
32719
+ (0,external_lodash_.pull)(sourceRef.get('outgoing'), node.definition);
32720
+ }
32721
+
32722
+ /* If targetRef is defined, it could be a point or another element.
32723
+ * If targetRef has an id, that means it's an element and the reference to it
32724
+ * can be safely removed. */
32725
+ if (targetRef && targetRef.id) {
32726
+ (0,external_lodash_.pull)(targetRef.get('incoming'), node.definition);
32727
+ }
32728
+ }
32729
+ function removeSourceDefault(node) {
32730
+ var defaultId = (0,external_lodash_.get)(node, 'definition.sourceRef.default.id', null);
32731
+ if (defaultId && defaultId === node.id) {
32732
+ // unset this node as the source's default
32733
+ node.definition.sourceRef.set('default', null);
32734
+ }
32735
+ }
32736
+ function getOrFindDataInput(moddle, task, sourceNode) {
32737
+ if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
32738
+ throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
32739
+ }
32740
+ var sourceNodeId = sourceNode.id;
32741
+ var dataInputId = "data_input_".concat(sourceNodeId);
32742
+ // Check if ioSpecification exists
32743
+ if (!task.definition.ioSpecification) {
32744
+ task.definition.ioSpecification = moddle.create('bpmn:InputOutputSpecification', {
32745
+ dataInputs: [],
32746
+ dataOutputs: [],
32747
+ inputSets: [],
32748
+ outputSets: []
32749
+ });
32750
+ task.definition.ioSpecification.$parent = task.definition;
32751
+ }
32752
+ // Check if dataInput exists
32753
+ if (!task.definition.ioSpecification.dataInputs) {
32754
+ task.definition.ioSpecification.set('dataInputs', []);
32755
+ }
32756
+ var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
32757
+ return input.id === dataInputId;
32758
+ });
32759
+ if (!dataInput) {
32760
+ task.definition.ioSpecification.dataInputs.push(moddle.create('bpmn:DataInput', {
32761
+ id: dataInputId,
32762
+ isCollection: 'false',
32763
+ name: sourceNode.name
32764
+ }));
32765
+ task.definition.ioSpecification.dataInputs[task.definition.ioSpecification.dataInputs.length - 1].$parent = task.definition.ioSpecification;
32766
+ task.definition.ioSpecification.set('dataInputs', task.definition.ioSpecification.dataInputs);
32767
+ }
32768
+ dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
32769
+ return input.id === dataInputId;
32770
+ });
32771
+ // Check if outputSet exists
32772
+ if (!task.definition.ioSpecification.outputSets) {
32773
+ task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
32774
+ dataOutputRefs: []
32775
+ })]);
32776
+ }
32777
+ var outputSet = task.definition.ioSpecification.outputSets[0];
32778
+ if (!outputSet) {
32779
+ task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
32780
+ dataOutputRefs: []
32781
+ })]);
32782
+ }
32783
+ outputSet = task.definition.ioSpecification.outputSets[0];
32784
+ // Check if inputSet exists
32785
+ if (!task.definition.ioSpecification.inputSets) {
32786
+ task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
32787
+ dataInputRefs: []
32788
+ })]);
32789
+ }
32790
+ var inputSet = task.definition.ioSpecification.inputSets[0];
32791
+ if (!inputSet) {
32792
+ task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
32793
+ dataInputRefs: []
32794
+ })]);
32795
+ }
32796
+ inputSet = task.definition.ioSpecification.inputSets[0];
32797
+ // Check if dataInputRef exists
32798
+ var dataInputRef = inputSet.get('dataInputRefs').find(function (ref) {
32799
+ return ref.id === dataInputId;
32800
+ });
32801
+ if (!dataInputRef) {
32802
+ inputSet.dataInputRefs.push(dataInput);
32803
+ }
32804
+ return dataInput;
32805
+ }
32806
+ function findIOSpecificationOwner(ioSpec, modeler) {
32807
+ var owner = ioSpec.$parent;
32808
+ if (!owner) {
32809
+ var _modeler$nodes$find;
32810
+ return (_modeler$nodes$find = modeler.nodes.find(function (node) {
32811
+ var _node$definition$ioSp;
32812
+ return node.definition.ioSpecification === ioSpec || ((_node$definition$ioSp = node.definition.ioSpecification) === null || _node$definition$ioSp === void 0 ? void 0 : _node$definition$ioSp.id) === ioSpec.id;
32813
+ })) === null || _modeler$nodes$find === void 0 ? void 0 : _modeler$nodes$find.definition;
32814
+ }
32815
+ return owner;
32816
+ }
32817
+ function removeDataInput(task, sourceNode) {
32818
+ if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
32819
+ throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
32820
+ }
32821
+ var sourceNodeId = sourceNode.id;
32822
+ var dataInputId = "data_input_".concat(sourceNodeId);
32823
+ // Check if ioSpecification exists
32824
+ if (!task.definition.ioSpecification) {
32825
+ return;
32826
+ }
32827
+ // Check if dataInput exists
32828
+ if (!task.definition.ioSpecification.dataInputs) {
32829
+ return;
32830
+ }
32831
+ var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
32832
+ return input.id === dataInputId;
32833
+ });
32834
+ if (!dataInput) {
32835
+ return;
32836
+ }
32837
+ // remove dataInput from dataInputs
32838
+ (0,external_lodash_.pull)(task.definition.ioSpecification.dataInputs, dataInput);
32839
+ // Check if inputSet exists
32840
+ if (!task.definition.ioSpecification.inputSets) {
32841
+ return;
32842
+ }
32843
+ var inputSet = task.definition.ioSpecification.inputSets[0];
32844
+ if (!inputSet) {
32845
+ return;
32846
+ }
32847
+ // Check if dataInputRef exists
32848
+ var dataInputRef = inputSet.dataInputRefs.find(function (ref) {
32849
+ return ref.id === dataInputId;
32850
+ });
32851
+ if (dataInputRef) {
32852
+ (0,external_lodash_.pull)(inputSet.dataInputRefs, dataInputRef);
32853
+ }
32854
+ // Remove inputSets if it is empty (without any dataInputRefs)
32855
+ if (inputSet.dataInputRefs.length === 0) {
32856
+ delete task.definition.ioSpecification.inputSets;
32857
+ }
32858
+ // Remove outputSets if it is empty (without any dataOutputRefs)
32859
+ if (task.definition.ioSpecification.outputSets) {
32860
+ var outputSet = task.definition.ioSpecification.outputSets[0];
32861
+ if (outputSet && (!outputSet.dataOutputRefs || outputSet.dataOutputRefs.length === 0)) {
32862
+ delete task.definition.ioSpecification.outputSets;
32863
+ }
32864
+ }
32865
+ // Remove ioSpecification if it is empty (without outputSets and inputSets)
32866
+ if (!task.definition.ioSpecification.inputSets && !task.definition.ioSpecification.outputSets) {
32867
+ delete task.definition.ioSpecification;
32868
+ }
32869
+ }
32588
32870
  ;// CONCATENATED MODULE: ./src/components/highlightColors.js
32589
32871
  var COLOR_DEFAULT = '#5096db';
32590
32872
  var COLOR_ERROR = '#FF0000';
@@ -32611,6 +32893,10 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
32611
32893
 
32612
32894
 
32613
32895
 
32896
+
32897
+
32898
+
32899
+
32614
32900
 
32615
32901
 
32616
32902
 
@@ -32847,7 +33133,7 @@ function isPoint(item) {
32847
33133
  pointerUpHandler: function pointerUpHandler() {
32848
33134
  var _this5 = this;
32849
33135
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
32850
- var targetChanged, _this5$isValid, targetNode, targetConfig, isValid;
33136
+ var targetChanged, _this5$isValid, targetNode, targetConfig, isValid, _this5$node$diagram$w, waypoint;
32851
33137
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
32852
33138
  while (1) switch (_context2.prev = _context2.next) {
32853
33139
  case 0:
@@ -32860,7 +33146,7 @@ function isPoint(item) {
32860
33146
  // Check if the target shape has changed.
32861
33147
  targetChanged = _this5.target.id !== _this5.currentTarget.id;
32862
33148
  if (!targetChanged) {
32863
- _context2.next = 20;
33149
+ _context2.next = 24;
32864
33150
  break;
32865
33151
  }
32866
33152
  // Disable the 'onChange' event to prevent redundant processing.
@@ -32874,9 +33160,10 @@ function isPoint(item) {
32874
33160
  targetConfig: targetConfig
32875
33161
  }); // If the flow is valid, update the target and related information.
32876
33162
  if (!isValid) {
32877
- _context2.next = 17;
33163
+ _context2.next = 21;
32878
33164
  break;
32879
33165
  }
33166
+ removeOutgoingAndIncomingRefsToFlow(_this5.node);
32880
33167
  _this5.setTarget(_this5.currentTarget);
32881
33168
  _this5.target = _this5.currentTarget;
32882
33169
  // Optionally update definition links.
@@ -32885,21 +33172,36 @@ function isPoint(item) {
32885
33172
  }
32886
33173
  _this5.listeningToMouseleave = true;
32887
33174
  // Store waypoints asynchronously.
32888
- _context2.next = 15;
33175
+ _context2.next = 16;
32889
33176
  return _this5.storeWaypoints();
32890
- case 15:
32891
- _context2.next = 18;
33177
+ case 16:
33178
+ waypoint = [];
33179
+ (_this5$node$diagram$w = _this5.node.diagram.waypoint) === null || _this5$node$diagram$w === void 0 || _this5$node$diagram$w.forEach(function (point) {
33180
+ waypoint.push({
33181
+ x: point.x,
33182
+ y: point.y
33183
+ });
33184
+ });
33185
+ window.ProcessMaker.EventBus.$emit('multiplayer-updateFlows', [{
33186
+ id: _this5.node.definition.id,
33187
+ type: _this5.node.type,
33188
+ name: _this5.node.definition.name,
33189
+ waypoint: waypoint,
33190
+ sourceRefId: _this5.node.definition.sourceRef.id,
33191
+ targetRefId: _this5.node.definition.targetRef.id
33192
+ }]);
33193
+ _context2.next = 22;
32892
33194
  break;
32893
- case 17:
33195
+ case 21:
32894
33196
  // If the flow is not valid, revert to the previous target.
32895
33197
  _this5.setTarget(_this5.target);
32896
- case 18:
32897
- _context2.next = 21;
33198
+ case 22:
33199
+ _context2.next = 25;
32898
33200
  break;
32899
- case 20:
33201
+ case 24:
32900
33202
  // the target was not changed, set the target with the anchor offset.
32901
33203
  _this5.setTarget(_this5.target, _this5.getAnchorOffset());
32902
- case 21:
33204
+ case 25:
32903
33205
  case "end":
32904
33206
  return _context2.stop();
32905
33207
  }
@@ -33210,14 +33512,14 @@ function isPoint(item) {
33210
33512
  var association_head_namespaceObject = __webpack_require__.p + "img/association-head.0b14da7b.svg";
33211
33513
  ;// CONCATENATED MODULE: ./src/components/nodes/association/associationConfig.js
33212
33514
  var associationConfig_id = 'processmaker-modeler-association';
33213
- var bpmnType = 'bpmn:Association';
33515
+ var associationConfig_bpmnType = 'bpmn:Association';
33214
33516
  var direction = {
33215
33517
  none: 'None',
33216
33518
  one: 'One',
33217
33519
  both: 'Both'
33218
33520
  };
33219
- function definition(moddle) {
33220
- return moddle.create(bpmnType, {
33521
+ function associationConfig_definition(moddle) {
33522
+ return moddle.create(associationConfig_bpmnType, {
33221
33523
  associationDirection: direction.none,
33222
33524
  targetRef: {
33223
33525
  x: undefined,
@@ -33660,288 +33962,6 @@ var deleteButtonvue_type_template_id_59648d83_render = function render() {
33660
33962
  };
33661
33963
  var deleteButtonvue_type_template_id_59648d83_staticRenderFns = [];
33662
33964
 
33663
- // EXTERNAL MODULE: external "lodash"
33664
- var external_lodash_ = __webpack_require__(24793);
33665
- var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
33666
- ;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
33667
- var config_id = 'processmaker-modeler-data-output-association';
33668
- var config_bpmnType = 'bpmn:DataOutputAssociation';
33669
- function config_definition(moddle) {
33670
- return moddle.create('bpmn:DataOutputAssociation', {
33671
- targetRef: {
33672
- x: undefined,
33673
- y: undefined
33674
- }
33675
- });
33676
- }
33677
- function config_diagram(moddle) {
33678
- return moddle.create('bpmndi:BPMNEdge');
33679
- }
33680
- ;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
33681
- var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
33682
- var dataInputAssociation_config_bpmnType = 'bpmn:DataInputAssociation';
33683
- function dataInputAssociation_config_definition(moddle) {
33684
- return moddle.create('bpmn:DataInputAssociation', {
33685
- targetRef: {
33686
- x: undefined,
33687
- y: undefined
33688
- }
33689
- });
33690
- }
33691
- function dataInputAssociation_config_diagram(moddle) {
33692
- return moddle.create('bpmndi:BPMNEdge');
33693
- }
33694
- ;// CONCATENATED MODULE: ./src/components/crown/utils.js
33695
-
33696
-
33697
-
33698
-
33699
-
33700
-
33701
-
33702
-
33703
-
33704
- function removeFlows(graph, shape) {
33705
- var _this = this;
33706
- var linkShapes = graph.getConnectedLinks(shape);
33707
- linkShapes.forEach(function (shape) {
33708
- return _this.$emit('remove-node', shape.component.node);
33709
- });
33710
- }
33711
-
33712
- // Remove the incoming and outgoing flows of a node
33713
- function removeNodeFlows(node, modeler) {
33714
- if (node.definition.incoming) {
33715
- node.definition.incoming.forEach(function (flow) {
33716
- var node = modeler.nodes.find(function (node) {
33717
- return node.definition === flow;
33718
- });
33719
- modeler.removeNode(node);
33720
- });
33721
- }
33722
- if (node.definition.outgoing) {
33723
- node.definition.outgoing.forEach(function (flow) {
33724
- var node = modeler.nodes.find(function (node) {
33725
- return node.definition === flow;
33726
- });
33727
- modeler.removeNode(node);
33728
- });
33729
- }
33730
- }
33731
- // Remove the associations of a node
33732
- function removeNodeMessageFlows(node, modeler) {
33733
- var linkedMessages = modeler.nodes.filter(function (n) {
33734
- if (n.definition.sourceRef) {
33735
- if (n.definition.sourceRef === node.definition) {
33736
- return true;
33737
- }
33738
- }
33739
- if (n.definition.targetRef) {
33740
- if (n.definition.targetRef === node.definition) {
33741
- return true;
33742
- }
33743
- }
33744
- });
33745
- linkedMessages.forEach(function (messageFlow) {
33746
- modeler.removeNode(messageFlow);
33747
- });
33748
- }
33749
- // Remove the associations of a node
33750
- function removeNodeAssociations(node, modeler) {
33751
- var linkedAssociations = modeler.nodes.filter(function (n) {
33752
- if (n.definition.sourceRef) {
33753
- if (n.definition.sourceRef === node.definition) {
33754
- return true;
33755
- }
33756
- }
33757
- if (n.definition.targetRef) {
33758
- if (n.definition.targetRef === node.definition) {
33759
- return true;
33760
- }
33761
- }
33762
- });
33763
- linkedAssociations.forEach(function (association) {
33764
- modeler.removeNode(association);
33765
- });
33766
- }
33767
- function removeBoundaryEvents(graph, node, removeNode) {
33768
- var nodeShape = graph.getCells().find(function (el) {
33769
- return el.component && el.component.node === node;
33770
- });
33771
- if (nodeShape) {
33772
- nodeShape.getEmbeddedCells({
33773
- deep: true
33774
- }).filter(function (cell) {
33775
- return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
33776
- }).forEach(function (boundaryEventShape) {
33777
- graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
33778
- return removeNode(shape.component.node);
33779
- });
33780
- removeNode(boundaryEventShape.component.node);
33781
- });
33782
- }
33783
- }
33784
- function removeOutgoingAndIncomingRefsToFlow(node) {
33785
- if (node.isBpmnType(config_bpmnType, dataInputAssociation_config_bpmnType)) {
33786
- return;
33787
- }
33788
-
33789
- /* Modify source and target refs to remove incoming and outgoing properties pointing to this link */
33790
- var _node$definition = node.definition,
33791
- sourceRef = _node$definition.sourceRef,
33792
- targetRef = _node$definition.targetRef;
33793
- if (sourceRef) {
33794
- (0,external_lodash_.pull)(sourceRef.get('outgoing'), node.definition);
33795
- }
33796
-
33797
- /* If targetRef is defined, it could be a point or another element.
33798
- * If targetRef has an id, that means it's an element and the reference to it
33799
- * can be safely removed. */
33800
- if (targetRef && targetRef.id) {
33801
- (0,external_lodash_.pull)(targetRef.get('incoming'), node.definition);
33802
- }
33803
- }
33804
- function removeSourceDefault(node) {
33805
- var defaultId = (0,external_lodash_.get)(node, 'definition.sourceRef.default.id', null);
33806
- if (defaultId && defaultId === node.id) {
33807
- // unset this node as the source's default
33808
- node.definition.sourceRef.set('default', null);
33809
- }
33810
- }
33811
- function getOrFindDataInput(moddle, task, sourceNode) {
33812
- if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
33813
- throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
33814
- }
33815
- var sourceNodeId = sourceNode.id;
33816
- var dataInputId = "data_input_".concat(sourceNodeId);
33817
- // Check if ioSpecification exists
33818
- if (!task.definition.ioSpecification) {
33819
- task.definition.ioSpecification = moddle.create('bpmn:InputOutputSpecification', {
33820
- dataInputs: [],
33821
- dataOutputs: [],
33822
- inputSets: [],
33823
- outputSets: []
33824
- });
33825
- task.definition.ioSpecification.$parent = task.definition;
33826
- }
33827
- // Check if dataInput exists
33828
- if (!task.definition.ioSpecification.dataInputs) {
33829
- task.definition.ioSpecification.set('dataInputs', []);
33830
- }
33831
- var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
33832
- return input.id === dataInputId;
33833
- });
33834
- if (!dataInput) {
33835
- task.definition.ioSpecification.dataInputs.push(moddle.create('bpmn:DataInput', {
33836
- id: dataInputId,
33837
- isCollection: 'false',
33838
- name: sourceNode.name
33839
- }));
33840
- task.definition.ioSpecification.dataInputs[task.definition.ioSpecification.dataInputs.length - 1].$parent = task.definition.ioSpecification;
33841
- task.definition.ioSpecification.set('dataInputs', task.definition.ioSpecification.dataInputs);
33842
- }
33843
- dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
33844
- return input.id === dataInputId;
33845
- });
33846
- // Check if outputSet exists
33847
- if (!task.definition.ioSpecification.outputSets) {
33848
- task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
33849
- dataOutputRefs: []
33850
- })]);
33851
- }
33852
- var outputSet = task.definition.ioSpecification.outputSets[0];
33853
- if (!outputSet) {
33854
- task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
33855
- dataOutputRefs: []
33856
- })]);
33857
- }
33858
- outputSet = task.definition.ioSpecification.outputSets[0];
33859
- // Check if inputSet exists
33860
- if (!task.definition.ioSpecification.inputSets) {
33861
- task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
33862
- dataInputRefs: []
33863
- })]);
33864
- }
33865
- var inputSet = task.definition.ioSpecification.inputSets[0];
33866
- if (!inputSet) {
33867
- task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
33868
- dataInputRefs: []
33869
- })]);
33870
- }
33871
- inputSet = task.definition.ioSpecification.inputSets[0];
33872
- // Check if dataInputRef exists
33873
- var dataInputRef = inputSet.get('dataInputRefs').find(function (ref) {
33874
- return ref.id === dataInputId;
33875
- });
33876
- if (!dataInputRef) {
33877
- inputSet.dataInputRefs.push(dataInput);
33878
- }
33879
- return dataInput;
33880
- }
33881
- function findIOSpecificationOwner(ioSpec, modeler) {
33882
- var owner = ioSpec.$parent;
33883
- if (!owner) {
33884
- var _modeler$nodes$find;
33885
- return (_modeler$nodes$find = modeler.nodes.find(function (node) {
33886
- var _node$definition$ioSp;
33887
- return node.definition.ioSpecification === ioSpec || ((_node$definition$ioSp = node.definition.ioSpecification) === null || _node$definition$ioSp === void 0 ? void 0 : _node$definition$ioSp.id) === ioSpec.id;
33888
- })) === null || _modeler$nodes$find === void 0 ? void 0 : _modeler$nodes$find.definition;
33889
- }
33890
- return owner;
33891
- }
33892
- function removeDataInput(task, sourceNode) {
33893
- if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
33894
- throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
33895
- }
33896
- var sourceNodeId = sourceNode.id;
33897
- var dataInputId = "data_input_".concat(sourceNodeId);
33898
- // Check if ioSpecification exists
33899
- if (!task.definition.ioSpecification) {
33900
- return;
33901
- }
33902
- // Check if dataInput exists
33903
- if (!task.definition.ioSpecification.dataInputs) {
33904
- return;
33905
- }
33906
- var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
33907
- return input.id === dataInputId;
33908
- });
33909
- if (!dataInput) {
33910
- return;
33911
- }
33912
- // remove dataInput from dataInputs
33913
- (0,external_lodash_.pull)(task.definition.ioSpecification.dataInputs, dataInput);
33914
- // Check if inputSet exists
33915
- if (!task.definition.ioSpecification.inputSets) {
33916
- return;
33917
- }
33918
- var inputSet = task.definition.ioSpecification.inputSets[0];
33919
- if (!inputSet) {
33920
- return;
33921
- }
33922
- // Check if dataInputRef exists
33923
- var dataInputRef = inputSet.dataInputRefs.find(function (ref) {
33924
- return ref.id === dataInputId;
33925
- });
33926
- if (dataInputRef) {
33927
- (0,external_lodash_.pull)(inputSet.dataInputRefs, dataInputRef);
33928
- }
33929
- // Remove inputSets if it is empty (without any dataInputRefs)
33930
- if (inputSet.dataInputRefs.length === 0) {
33931
- delete task.definition.ioSpecification.inputSets;
33932
- }
33933
- // Remove outputSets if it is empty (without any dataOutputRefs)
33934
- if (task.definition.ioSpecification.outputSets) {
33935
- var outputSet = task.definition.ioSpecification.outputSets[0];
33936
- if (outputSet && (!outputSet.dataOutputRefs || outputSet.dataOutputRefs.length === 0)) {
33937
- delete task.definition.ioSpecification.outputSets;
33938
- }
33939
- }
33940
- // Remove ioSpecification if it is empty (without outputSets and inputSets)
33941
- if (!task.definition.ioSpecification.inputSets && !task.definition.ioSpecification.outputSets) {
33942
- delete task.definition.ioSpecification;
33943
- }
33944
- }
33945
33965
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/deleteButton.vue?vue&type=script&lang=js&
33946
33966
 
33947
33967
 
@@ -37093,7 +37113,7 @@ var AssociationFlow = /*#__PURE__*/function () {
37093
37113
  value: function makeFlowNode(sourceShape, targetShape, waypoint) {
37094
37114
  var _this = this;
37095
37115
  var diagram = associationConfig_diagram(this.moddle);
37096
- var associationFlow = definition(this.moddle);
37116
+ var associationFlow = associationConfig_definition(this.moddle);
37097
37117
  associationFlow.set('sourceRef', sourceShape.component.node.definition);
37098
37118
  associationFlow.set('targetRef', targetShape.component.node.definition);
37099
37119
  diagram.waypoint = waypoint.map(function (point) {
@@ -37116,9 +37136,9 @@ var AssociationFlow = /*#__PURE__*/function () {
37116
37136
  /* harmony default export */ var nodes_association = ({
37117
37137
  id: associationConfig_id,
37118
37138
  component: association,
37119
- bpmnType: bpmnType,
37139
+ bpmnType: associationConfig_bpmnType,
37120
37140
  control: false,
37121
- definition: definition,
37141
+ definition: associationConfig_definition,
37122
37142
  diagram: associationConfig_diagram,
37123
37143
  inspectorConfig: [{
37124
37144
  name: 'Data Association',
@@ -48458,10 +48478,10 @@ var ValidationStatus_component = normalizeComponent(
48458
48478
  )
48459
48479
 
48460
48480
  /* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
48461
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=6560a0bb&
48481
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=0eb1d90b&
48462
48482
 
48463
48483
 
48464
- var Modelervue_type_template_id_6560a0bb_render = function render() {
48484
+ var Modelervue_type_template_id_0eb1d90b_render = function render() {
48465
48485
  var _vm = this,
48466
48486
  _c = _vm._self._c;
48467
48487
  return _c('span', {
@@ -48753,9 +48773,9 @@ var Modelervue_type_template_id_6560a0bb_render = function render() {
48753
48773
  });
48754
48774
  })], 2)], 1);
48755
48775
  };
48756
- var Modelervue_type_template_id_6560a0bb_staticRenderFns = [];
48776
+ var Modelervue_type_template_id_0eb1d90b_staticRenderFns = [];
48757
48777
 
48758
- ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=6560a0bb&
48778
+ ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=0eb1d90b&
48759
48779
 
48760
48780
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=728530a2&
48761
48781
  var boundaryEventvue_type_template_id_728530a2_render = function render() {
@@ -54366,7 +54386,7 @@ var ToolBar_component = normalizeComponent(
54366
54386
 
54367
54387
  function addNodeToProcess(node, targetProcess) {
54368
54388
  var ignoredNodes = function ignoredNodes(node) {
54369
- return node.isBpmnType('bpmn:MessageFlow', config_bpmnType, dataInputAssociation_config_bpmnType) || node.isType('processmaker-modeler-pool');
54389
+ return node.isBpmnType('bpmn:MessageFlow', bpmnType, config_bpmnType) || node.isType('processmaker-modeler-pool');
54370
54390
  };
54371
54391
  if (ignoredNodes(node)) {
54372
54392
  return;
@@ -55697,8 +55717,8 @@ var ALLOWED_ALTERNATE_TYPES = ['processmaker-modeler-task', 'processmaker-modele
55697
55717
  }
55698
55718
  }
55699
55719
  });
55700
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/railBottom/RailBottom.vue?vue&type=template&id=2a9e260d&scoped=true&
55701
- var RailBottomvue_type_template_id_2a9e260d_scoped_true_render = function render() {
55720
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/railBottom/RailBottom.vue?vue&type=template&id=1acea7b8&scoped=true&
55721
+ var RailBottomvue_type_template_id_1acea7b8_scoped_true_render = function render() {
55702
55722
  var _vm = this,
55703
55723
  _c = _vm._self._c;
55704
55724
  return _c('div', {
@@ -55728,6 +55748,12 @@ var RailBottomvue_type_template_id_2a9e260d_scoped_true_render = function render
55728
55748
  "paper-manager": _vm.paperManager
55729
55749
  }
55730
55750
  }), _c('PanControl', {
55751
+ directives: [{
55752
+ name: "show",
55753
+ rawName: "v-show",
55754
+ value: _vm.showComponent,
55755
+ expression: "showComponent"
55756
+ }],
55731
55757
  attrs: {
55732
55758
  "pan-mode": _vm.panMode
55733
55759
  },
@@ -55779,7 +55805,7 @@ var RailBottomvue_type_template_id_2a9e260d_scoped_true_render = function render
55779
55805
  }
55780
55806
  })], 1)]);
55781
55807
  };
55782
- var RailBottomvue_type_template_id_2a9e260d_scoped_true_staticRenderFns = [];
55808
+ var RailBottomvue_type_template_id_1acea7b8_scoped_true_staticRenderFns = [];
55783
55809
 
55784
55810
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/railBottom/miniPaperControl/MiniPaperControl.vue?vue&type=template&id=c47d089c&scoped=true&
55785
55811
  var MiniPaperControlvue_type_template_id_c47d089c_scoped_true_render = function render() {
@@ -56885,9 +56911,9 @@ var Controls_component = normalizeComponent(
56885
56911
  });
56886
56912
  ;// CONCATENATED MODULE: ./src/components/railBottom/RailBottom.vue?vue&type=script&lang=js&
56887
56913
  /* harmony default export */ var railBottom_RailBottomvue_type_script_lang_js_ = (RailBottomvue_type_script_lang_js_);
56888
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=2a9e260d&prod&lang=scss&scoped=true&
56889
- var railBottomvue_type_style_index_0_id_2a9e260d_prod_lang_scss_scoped_true_ = __webpack_require__(73603);
56890
- ;// CONCATENATED MODULE: ./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=2a9e260d&prod&lang=scss&scoped=true&
56914
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=1acea7b8&prod&lang=scss&scoped=true&
56915
+ var railBottomvue_type_style_index_0_id_1acea7b8_prod_lang_scss_scoped_true_ = __webpack_require__(83903);
56916
+ ;// CONCATENATED MODULE: ./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=1acea7b8&prod&lang=scss&scoped=true&
56891
56917
 
56892
56918
  ;// CONCATENATED MODULE: ./src/components/railBottom/RailBottom.vue
56893
56919
 
@@ -56900,11 +56926,11 @@ var railBottomvue_type_style_index_0_id_2a9e260d_prod_lang_scss_scoped_true_ = _
56900
56926
 
56901
56927
  var RailBottom_component = normalizeComponent(
56902
56928
  railBottom_RailBottomvue_type_script_lang_js_,
56903
- RailBottomvue_type_template_id_2a9e260d_scoped_true_render,
56904
- RailBottomvue_type_template_id_2a9e260d_scoped_true_staticRenderFns,
56929
+ RailBottomvue_type_template_id_1acea7b8_scoped_true_render,
56930
+ RailBottomvue_type_template_id_1acea7b8_scoped_true_staticRenderFns,
56905
56931
  false,
56906
56932
  null,
56907
- "2a9e260d",
56933
+ "1acea7b8",
56908
56934
  null
56909
56935
 
56910
56936
  )
@@ -56957,7 +56983,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
56957
56983
  value: function makeFlowNode(sourceShape, targetShape, waypoint) {
56958
56984
  var _this = this;
56959
56985
  var diagram = config_diagram(this.moddle);
56960
- var dataOutputAssociation = config_definition(this.moddle);
56986
+ var dataOutputAssociation = definition(this.moddle);
56961
56987
  dataOutputAssociation.set('sourceRef', sourceShape.component.node.definition);
56962
56988
  dataOutputAssociation.set('targetRef', targetShape.component.node.definition);
56963
56989
  diagram.waypoint = waypoint.map(function (point) {
@@ -78043,6 +78069,7 @@ var ColorUtil = /*#__PURE__*/function () {
78043
78069
 
78044
78070
 
78045
78071
 
78072
+
78046
78073
 
78047
78074
 
78048
78075
  var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
@@ -78993,6 +79020,7 @@ var Multiplayer = /*#__PURE__*/function () {
78993
79020
  var remount = false;
78994
79021
  var flow = this.getNodeById(data.id);
78995
79022
  if (flow && data.sourceRefId) {
79023
+ removeOutgoingAndIncomingRefsToFlow(flow);
78996
79024
  var sourceRef = this.getNodeById(data.sourceRefId);
78997
79025
  var outgoing = sourceRef.definition.get('outgoing').find(function (element) {
78998
79026
  return element.id === flow.definition.id;
@@ -81497,6 +81525,7 @@ var Multiplayer = /*#__PURE__*/function () {
81497
81525
  localStorage.promptSessionId = response.data.promptSessionId;
81498
81526
  }).catch(function (error) {
81499
81527
  var _error$response;
81528
+ console.log('error');
81500
81529
  var errorMsg = ((_error$response = error.response) === null || _error$response === void 0 || (_error$response = _error$response.data) === null || _error$response === void 0 ? void 0 : _error$response.message) || error.message;
81501
81530
  _this47.loading = false;
81502
81531
  if (error.response.status === 404) {
@@ -81574,7 +81603,7 @@ var Multiplayer = /*#__PURE__*/function () {
81574
81603
  subscribeToProgress: function subscribeToProgress() {
81575
81604
  var _window$ProcessMaker9,
81576
81605
  _this49 = this;
81577
- var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker9 = window.ProcessMaker) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.modeler) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.process) === null || _window$ProcessMaker9 === void 0 ? void 0 : _window$ProcessMaker9.user_id);
81606
+ var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker9 = window.ProcessMaker) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.user) === null || _window$ProcessMaker9 === void 0 ? void 0 : _window$ProcessMaker9.id);
81578
81607
  var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsProgressEvent';
81579
81608
  if (!window.Echo) {
81580
81609
  return;
@@ -81619,7 +81648,7 @@ var Multiplayer = /*#__PURE__*/function () {
81619
81648
  subscribeToGenerationCompleted: function subscribeToGenerationCompleted() {
81620
81649
  var _window$ProcessMaker10,
81621
81650
  _this50 = this;
81622
- var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker10 = window.ProcessMaker) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.modeler) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.process) === null || _window$ProcessMaker10 === void 0 ? void 0 : _window$ProcessMaker10.user_id);
81651
+ var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker10 = window.ProcessMaker) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.user) === null || _window$ProcessMaker10 === void 0 ? void 0 : _window$ProcessMaker10.id);
81623
81652
  var streamCompletedEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsCompletedEvent';
81624
81653
  window.Echo.private(channel).listen(streamCompletedEvent, function (response) {
81625
81654
  if (response.data) {
@@ -81631,7 +81660,7 @@ var Multiplayer = /*#__PURE__*/function () {
81631
81660
  subscribeToErrors: function subscribeToErrors() {
81632
81661
  var _window$ProcessMaker11,
81633
81662
  _this51 = this;
81634
- var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker11 = window.ProcessMaker) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.modeler) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.process) === null || _window$ProcessMaker11 === void 0 ? void 0 : _window$ProcessMaker11.user_id);
81663
+ var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker11 = window.ProcessMaker) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.user) === null || _window$ProcessMaker11 === void 0 ? void 0 : _window$ProcessMaker11.id);
81635
81664
  var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsErrorEvent';
81636
81665
  window.Echo.private(channel).listen(streamProgressEvent, function () {
81637
81666
  // Output error
@@ -81743,8 +81772,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(88242);
81743
81772
 
81744
81773
  var Modeler_component = normalizeComponent(
81745
81774
  modeler_Modelervue_type_script_lang_js_,
81746
- Modelervue_type_template_id_6560a0bb_render,
81747
- Modelervue_type_template_id_6560a0bb_staticRenderFns,
81775
+ Modelervue_type_template_id_0eb1d90b_render,
81776
+ Modelervue_type_template_id_0eb1d90b_staticRenderFns,
81748
81777
  false,
81749
81778
  null,
81750
81779
  null,
@@ -82086,7 +82115,7 @@ var DataInputAssociation = /*#__PURE__*/function () {
82086
82115
  value: function makeFlowNode(sourceShape, targetShape, waypoint) {
82087
82116
  var _this = this;
82088
82117
  var diagram = dataInputAssociation_config_diagram(this.moddle);
82089
- var associationFlow = dataInputAssociation_config_definition(this.moddle);
82118
+ var associationFlow = config_definition(this.moddle);
82090
82119
 
82091
82120
  // When saving the BPMN, if this is not an array the sourceRef is not stored
82092
82121
  var dataInput = getOrFindDataInput(this.moddle, targetShape.component.node, sourceShape.component.node.definition);