@camunda/play 6.2.0 → 6.2.1-rc.0
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.
- package/build/play.js +873 -807
- package/build/play.js.map +1 -1
- package/package.json +19 -19
package/build/play.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i, jsxs as f, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as k from "react";
|
|
3
3
|
import Ut, { useState as y, useEffect as F, useCallback as U, createContext as mi, forwardRef as Ps, Children as wi, cloneElement as bi, Fragment as vi, useRef as cA, PureComponent as Ei, createRef as yi, useContext as tA, useLayoutEffect as dt, createElement as Bi } from "react";
|
|
4
|
-
import { makeObservable as nA, action as
|
|
5
|
-
import { getBusinessObject as
|
|
6
|
-
import { isNil as ut, isEqual as
|
|
7
|
-
import { hasEventDefinition as
|
|
4
|
+
import { makeObservable as nA, action as S, computed as G, observable as lA, autorun as Os, when as Ie, override as yA, makeAutoObservable as qA, reaction as OA } from "mobx";
|
|
5
|
+
import { getBusinessObject as zA, is as K } from "bpmn-js/lib/util/ModelUtil.js";
|
|
6
|
+
import { isNil as ut, isEqual as $, set as Ii } from "lodash-es";
|
|
7
|
+
import { hasEventDefinition as se, hasErrorEventDefinition as pt, isEventSubProcess as Mi } from "bpmn-js/lib/util/DiUtil.js";
|
|
8
8
|
import { connectors as Yt } from "@camunda/connectors-element-templates";
|
|
9
9
|
import Gs from "bpmn-moddle";
|
|
10
10
|
import { isLabel as Si } from "diagram-js/lib/util/ModelUtil.js";
|
|
@@ -12,9 +12,9 @@ import { observer as N } from "mobx-react";
|
|
|
12
12
|
import { WarningFilled as Di, CheckmarkOutline as Ci, RadioButtonChecked as ki, Error as ve, Information as Ti, Renew as Ni, Launch as Ls, Edit as xi, View as Vs, Add as Hs, CheckmarkFilled as Js, ErrorFilled as Fi, Link as Qi, PlayFilledAlt as ht, TrashCan as Ri, Playlist as Pi, Warning as Oi, Checkmark as ft, ArrowRight as Gi } from "@carbon/icons-react";
|
|
13
13
|
import u, { keyframes as gt, css as EA } from "styled-components";
|
|
14
14
|
import { createPortal as Y } from "react-dom";
|
|
15
|
-
import
|
|
16
|
-
import { MenuItemDivider as Li, SkeletonText as Me, SkeletonIcon as Us, Button as j, Tooltip as Se, Modal as
|
|
17
|
-
import { styles as
|
|
15
|
+
import XA, { PropTypes as Kt } from "prop-types";
|
|
16
|
+
import { MenuItemDivider as Li, SkeletonText as Me, SkeletonIcon as Us, Button as j, Tooltip as Se, Modal as ne, Stack as J, Link as aA, TextInput as JA, Callout as Vi, DefinitionTooltip as Hi, InlineNotification as Ys, ModalHeader as Ji, ModalBody as Ui, ComposedModal as Yi, ModalFooter as Ki, FormLabel as mt, ActionableNotification as De, Loading as Ce, InlineLoading as Ks, Form as Zs, MenuButton as Zi, MenuItem as Zt, Tag as qs, CodeSnippet as zs, TabList as qi, TabPanel as zi, Tabs as ji, Tab as Wi, Layer as js, TreeNode as Xi, TreeView as $i, Table as wt, TableHead as bt, TableRow as RA, TableHeader as PA, TableBody as vt, TableCell as sA, Toggletip as _i, ToggletipButton as Ar, ToggletipContent as er, IconButton as Ee, ProgressBar as tr, ComboBox as Ws, UnorderedList as sr, ListItem as Oe } from "@carbon/react";
|
|
17
|
+
import { styles as dA } from "@carbon/elements";
|
|
18
18
|
import "monaco-editor/esm/vs/language/json/monaco.contribution.js";
|
|
19
19
|
import "monaco-editor/esm/vs/editor/browser/coreCommands.js";
|
|
20
20
|
import "monaco-editor/esm/vs/editor/contrib/find/browser/findController.js";
|
|
@@ -29,7 +29,7 @@ import { HighContrastCanvasModule as ur } from "@camunda/improved-canvas";
|
|
|
29
29
|
import pr from "bpmn-js/lib/features/outline/index.js";
|
|
30
30
|
import { useFloating as hr, autoUpdate as fr, arrow as gr, offset as mr, flip as wr } from "@floating-ui/react-dom";
|
|
31
31
|
const $e = (e, A) => {
|
|
32
|
-
const t =
|
|
32
|
+
const t = zA(e);
|
|
33
33
|
let s = [];
|
|
34
34
|
const n = t.get("extensionElements");
|
|
35
35
|
if (n !== void 0) {
|
|
@@ -37,15 +37,15 @@ const $e = (e, A) => {
|
|
|
37
37
|
r !== void 0 && (s = r.filter((a) => K(a, A)));
|
|
38
38
|
}
|
|
39
39
|
return s;
|
|
40
|
-
},
|
|
40
|
+
}, GA = (e, A) => {
|
|
41
41
|
const t = $e(e, A);
|
|
42
42
|
if (t.length !== 0)
|
|
43
43
|
return t[0];
|
|
44
|
-
}, Xs = (e, A) =>
|
|
44
|
+
}, Xs = (e, A) => GA(e, "zeebe:Properties")?.get("properties")?.find((n) => n.get("name") === A), br = "camundaModeler:exampleOutputJson", ke = (e) => {
|
|
45
45
|
const A = Xs(e, br);
|
|
46
46
|
if (A)
|
|
47
47
|
return A.get("value");
|
|
48
|
-
},
|
|
48
|
+
}, YA = (e) => {
|
|
49
49
|
if (!e)
|
|
50
50
|
return !1;
|
|
51
51
|
try {
|
|
@@ -60,7 +60,7 @@ function $s({
|
|
|
60
60
|
}) {
|
|
61
61
|
return `jobCompletion ${e} ${A}`;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function pe({
|
|
64
64
|
processId: e,
|
|
65
65
|
elementId: A,
|
|
66
66
|
variables: t
|
|
@@ -73,7 +73,7 @@ function _s({
|
|
|
73
73
|
}) {
|
|
74
74
|
return localStorage.getItem($s({ processId: e, elementId: A }));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function fA({
|
|
77
77
|
element: e,
|
|
78
78
|
useCache: A,
|
|
79
79
|
processId: t
|
|
@@ -81,7 +81,7 @@ function hA({
|
|
|
81
81
|
const s = ke(e), n = _s({
|
|
82
82
|
processId: t,
|
|
83
83
|
elementId: e.id
|
|
84
|
-
}), r =
|
|
84
|
+
}), r = YA(n) ? n : null, a = r && A, o = s && !a;
|
|
85
85
|
return a ? {
|
|
86
86
|
prefillData: r,
|
|
87
87
|
prefillSource: r === s ? "bpmn" : "cache"
|
|
@@ -173,11 +173,11 @@ class vr {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
trackUserCompletesElement(A, t) {
|
|
176
|
-
const { prefillData: s, prefillSource: n } =
|
|
176
|
+
const { prefillData: s, prefillSource: n } = fA({
|
|
177
177
|
element: A,
|
|
178
178
|
useCache: !0,
|
|
179
179
|
processId: this.processId
|
|
180
|
-
}), r = t === s ? n : "manual", a =
|
|
180
|
+
}), r = t === s ? n : "manual", a = zA(A).$type;
|
|
181
181
|
this.mixpanelTrack?.("bpmnelement:completed", {
|
|
182
182
|
fileId: this.diagramId,
|
|
183
183
|
processId: this.processId,
|
|
@@ -222,7 +222,7 @@ class vr {
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
const
|
|
225
|
+
const L = new vr(), Er = (e) => ({
|
|
226
226
|
deployments: e?.deployments?.map((A) => ({
|
|
227
227
|
process: {
|
|
228
228
|
processDefinitionKey: A?.processDefinition?.processDefinitionKey,
|
|
@@ -278,14 +278,14 @@ class Br {
|
|
|
278
278
|
);
|
|
279
279
|
return { success: !0, response: r, status: r.status };
|
|
280
280
|
} catch (n) {
|
|
281
|
-
return
|
|
281
|
+
return L.trackAPIError(A, n.status), { success: !1, response: n, status: n.status };
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
async getWithErrorHandling(A) {
|
|
285
285
|
try {
|
|
286
286
|
return { success: !0, response: await this.handleGetRequest(A) };
|
|
287
287
|
} catch (t) {
|
|
288
|
-
return
|
|
288
|
+
return L.trackAPIError(A, t.status), { success: !1, response: t };
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
async getConnectorSecrets() {
|
|
@@ -345,8 +345,11 @@ class Br {
|
|
|
345
345
|
status: r
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
async fetchJobs(
|
|
349
|
-
|
|
348
|
+
async fetchJobs(A) {
|
|
349
|
+
const { response: t, success: s } = await this.postWithErrorHandling("/play/search-jobs", {
|
|
350
|
+
processInstanceKey: A
|
|
351
|
+
});
|
|
352
|
+
return { jobs: t?.items ?? [], success: s };
|
|
350
353
|
}
|
|
351
354
|
async fetchFlowNodeInstances(A) {
|
|
352
355
|
const { response: t, success: s } = await this.postWithErrorHandling("/play/get-flownode-instances", {
|
|
@@ -423,12 +426,24 @@ class Br {
|
|
|
423
426
|
success: r
|
|
424
427
|
};
|
|
425
428
|
}
|
|
429
|
+
async completeJobByKey({
|
|
430
|
+
jobKey: A,
|
|
431
|
+
variables: t
|
|
432
|
+
}) {
|
|
433
|
+
const { success: s } = await this.postWithErrorHandling("/play/complete-job-by-key", {
|
|
434
|
+
jobKey: A,
|
|
435
|
+
variables: t
|
|
436
|
+
});
|
|
437
|
+
return {
|
|
438
|
+
success: s
|
|
439
|
+
};
|
|
440
|
+
}
|
|
426
441
|
async completeUserTask({
|
|
427
442
|
taskId: A,
|
|
428
443
|
variables: t,
|
|
429
444
|
isZeebeUserTask: s
|
|
430
445
|
}) {
|
|
431
|
-
const n =
|
|
446
|
+
const n = YA(t) ? JSON.parse(t) : {}, { success: r, status: a } = await this.postWithErrorHandling(
|
|
432
447
|
s ? "/play/complete-zeebe-user-task" : "/play/complete-user-task",
|
|
433
448
|
{
|
|
434
449
|
variables: n,
|
|
@@ -464,7 +479,7 @@ class Br {
|
|
|
464
479
|
{
|
|
465
480
|
messageName: A,
|
|
466
481
|
correlationKey: t || void 0,
|
|
467
|
-
variables:
|
|
482
|
+
variables: YA(s) ? JSON.parse(s) : {},
|
|
468
483
|
timeToLive: n || void 0,
|
|
469
484
|
messageId: r || void 0
|
|
470
485
|
}
|
|
@@ -613,7 +628,7 @@ class Br {
|
|
|
613
628
|
signalName: A,
|
|
614
629
|
variables: t = "{}"
|
|
615
630
|
}) {
|
|
616
|
-
const s =
|
|
631
|
+
const s = YA(t) ? JSON.parse(t) : {}, { success: n } = await this.postWithErrorHandling(
|
|
617
632
|
"/play/broadcast-signal",
|
|
618
633
|
{
|
|
619
634
|
signalName: A,
|
|
@@ -641,10 +656,10 @@ class Br {
|
|
|
641
656
|
};
|
|
642
657
|
}
|
|
643
658
|
}
|
|
644
|
-
const M = new Br(),
|
|
659
|
+
const M = new Br(), NA = 403, _ = {
|
|
645
660
|
title: "Unable to process request",
|
|
646
661
|
subtitle: "Please try again"
|
|
647
|
-
}, _e = "Failed to load scenarios",
|
|
662
|
+
}, _e = "Failed to load scenarios", xA = "Missing permissions", bA = {
|
|
648
663
|
action: {
|
|
649
664
|
label: "Learn more about authorizations",
|
|
650
665
|
onClick: () => {
|
|
@@ -654,7 +669,7 @@ const M = new Br(), TA = 403, $ = {
|
|
|
654
669
|
);
|
|
655
670
|
}
|
|
656
671
|
}
|
|
657
|
-
}, Ir = 255, en = "var(--cds-spacing-08)",
|
|
672
|
+
}, Ir = 255, en = "var(--cds-spacing-08)", he = "Instance started", Mr = [
|
|
658
673
|
"bpmn:ServiceTask",
|
|
659
674
|
"bpmn:UserTask",
|
|
660
675
|
"bpmn:ReceiveTask",
|
|
@@ -682,10 +697,10 @@ class Cr {
|
|
|
682
697
|
isPollRequestRunning = !1;
|
|
683
698
|
constructor() {
|
|
684
699
|
nA(this, {
|
|
685
|
-
state:
|
|
686
|
-
handleSuccess:
|
|
687
|
-
isClusterHealthy:
|
|
688
|
-
reset:
|
|
700
|
+
state: lA,
|
|
701
|
+
handleSuccess: S,
|
|
702
|
+
isClusterHealthy: G,
|
|
703
|
+
reset: S
|
|
689
704
|
});
|
|
690
705
|
}
|
|
691
706
|
init() {
|
|
@@ -725,8 +740,8 @@ class Cr {
|
|
|
725
740
|
this.state = { ...Ge }, this.pollingDisposer?.(), this.stopPolling();
|
|
726
741
|
}
|
|
727
742
|
}
|
|
728
|
-
const
|
|
729
|
-
class
|
|
743
|
+
const Ae = new Cr();
|
|
744
|
+
class BA {
|
|
730
745
|
boundCallback;
|
|
731
746
|
intervalId = null;
|
|
732
747
|
isPollRequestRunning = !1;
|
|
@@ -734,14 +749,14 @@ class MA {
|
|
|
734
749
|
fetchDataDisposer = null;
|
|
735
750
|
constructor() {
|
|
736
751
|
nA(this, {
|
|
737
|
-
reset:
|
|
752
|
+
reset: S.bound
|
|
738
753
|
});
|
|
739
754
|
}
|
|
740
755
|
init() {
|
|
741
756
|
this.fetchDataDisposer = Ie(this.initialDataFetchCondition, () => {
|
|
742
757
|
this.fetchData();
|
|
743
758
|
}), this.pollingDisposer = Os(() => {
|
|
744
|
-
this.pollDataCondition() &&
|
|
759
|
+
this.pollDataCondition() && Ae.isClusterHealthy ? this.intervalId === null && this.startPolling(this.pollData) : this.stopPolling();
|
|
745
760
|
});
|
|
746
761
|
}
|
|
747
762
|
startPolling(A) {
|
|
@@ -764,19 +779,19 @@ class MA {
|
|
|
764
779
|
}
|
|
765
780
|
const At = () => (localStorage.getItem("play-firstProcessCompleted") ?? "false").toLowerCase() === "true", kr = () => {
|
|
766
781
|
localStorage.setItem("play-firstProcessCompleted", "true");
|
|
767
|
-
},
|
|
782
|
+
}, SA = ({
|
|
768
783
|
requestedProcessInstanceKey: e,
|
|
769
784
|
currentProcessInstanceKey: A
|
|
770
|
-
}) => e === A;
|
|
785
|
+
}) => e?.toString() === A?.toString();
|
|
771
786
|
function et(e) {
|
|
772
787
|
return e?.loopCharacteristics?.$type === "bpmn:MultiInstanceLoopCharacteristics";
|
|
773
788
|
}
|
|
774
789
|
function Bt(e) {
|
|
775
|
-
const A =
|
|
776
|
-
return
|
|
790
|
+
const A = zA(e);
|
|
791
|
+
return GA(A, "zeebe:TaskDefinition")?.type;
|
|
777
792
|
}
|
|
778
793
|
function Tr(e) {
|
|
779
|
-
const A =
|
|
794
|
+
const A = zA(e), t = GA(
|
|
780
795
|
A,
|
|
781
796
|
"zeebe:ExecutionListeners"
|
|
782
797
|
);
|
|
@@ -850,19 +865,19 @@ function It(e) {
|
|
|
850
865
|
return K(e, "bpmn:StartEvent");
|
|
851
866
|
}
|
|
852
867
|
function Mt(e) {
|
|
853
|
-
return It(e) &&
|
|
868
|
+
return It(e) && se(e, "bpmn:MessageEventDefinition");
|
|
854
869
|
}
|
|
855
870
|
function St(e) {
|
|
856
|
-
return It(e) &&
|
|
871
|
+
return It(e) && se(e, "bpmn:SignalEventDefinition");
|
|
857
872
|
}
|
|
858
873
|
function Hr(e) {
|
|
859
874
|
return K(e, "bpmn:ReceiveTask");
|
|
860
875
|
}
|
|
861
876
|
function Jr(e) {
|
|
862
|
-
return K(e, "bpmn:BoundaryEvent") &&
|
|
877
|
+
return K(e, "bpmn:BoundaryEvent") && se(e, "bpmn:MessageEventDefinition");
|
|
863
878
|
}
|
|
864
879
|
function Ur(e) {
|
|
865
|
-
return K(e, "bpmn:BoundaryEvent") &&
|
|
880
|
+
return K(e, "bpmn:BoundaryEvent") && se(e, "bpmn:SignalEventDefinition");
|
|
866
881
|
}
|
|
867
882
|
function Yr(e) {
|
|
868
883
|
return Mt(e) || Jr(e) || nn(e);
|
|
@@ -871,10 +886,10 @@ function Kr(e) {
|
|
|
871
886
|
return St(e) || Ur(e) || rn(e);
|
|
872
887
|
}
|
|
873
888
|
function nn(e) {
|
|
874
|
-
return K(e, "bpmn:IntermediateCatchEvent") &&
|
|
889
|
+
return K(e, "bpmn:IntermediateCatchEvent") && se(e, "bpmn:MessageEventDefinition");
|
|
875
890
|
}
|
|
876
891
|
function rn(e) {
|
|
877
|
-
return K(e, "bpmn:IntermediateCatchEvent") &&
|
|
892
|
+
return K(e, "bpmn:IntermediateCatchEvent") && se(e, "bpmn:SignalEventDefinition");
|
|
878
893
|
}
|
|
879
894
|
function an(e) {
|
|
880
895
|
return Mt(e) && e.$parent?.triggeredByEvent;
|
|
@@ -935,9 +950,9 @@ function Wr(e) {
|
|
|
935
950
|
});
|
|
936
951
|
}
|
|
937
952
|
function cn(e) {
|
|
938
|
-
const A =
|
|
953
|
+
const A = zA(e), { connectorIds: t, connectorJobTypes: s, inboundConnectorJobTypes: n } = Nr(), r = A.get("modelerTemplate");
|
|
939
954
|
return r ? !!(t.includes(r) || s.includes(
|
|
940
|
-
|
|
955
|
+
GA(e, "zeebe:TaskDefinition")?.type
|
|
941
956
|
) || n.includes(
|
|
942
957
|
Xs(e, "inbound.type")?.value
|
|
943
958
|
)) : !1;
|
|
@@ -1088,21 +1103,21 @@ const jt = {
|
|
|
1088
1103
|
elementInstances: [],
|
|
1089
1104
|
status: "initial"
|
|
1090
1105
|
};
|
|
1091
|
-
class sa extends
|
|
1106
|
+
class sa extends BA {
|
|
1092
1107
|
state = { ...jt };
|
|
1093
1108
|
constructor() {
|
|
1094
1109
|
super(), nA(this, {
|
|
1095
|
-
state:
|
|
1096
|
-
handleSuccess:
|
|
1097
|
-
startFetching:
|
|
1098
|
-
handleError:
|
|
1099
|
-
reset:
|
|
1100
|
-
completedElementInstances:
|
|
1101
|
-
activeElementInstances:
|
|
1102
|
-
elementInstances:
|
|
1103
|
-
elementIds:
|
|
1104
|
-
isInitialLoadComplete:
|
|
1105
|
-
elementInstancesWithType:
|
|
1110
|
+
state: lA,
|
|
1111
|
+
handleSuccess: S,
|
|
1112
|
+
startFetching: S,
|
|
1113
|
+
handleError: S,
|
|
1114
|
+
reset: yA,
|
|
1115
|
+
completedElementInstances: G,
|
|
1116
|
+
activeElementInstances: G,
|
|
1117
|
+
elementInstances: G,
|
|
1118
|
+
elementIds: G,
|
|
1119
|
+
isInitialLoadComplete: G,
|
|
1120
|
+
elementInstancesWithType: G
|
|
1106
1121
|
});
|
|
1107
1122
|
}
|
|
1108
1123
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -1120,7 +1135,7 @@ class sa extends MA {
|
|
|
1120
1135
|
return;
|
|
1121
1136
|
this.startFetching();
|
|
1122
1137
|
const { success: s, flowNodeInstances: n } = await M.fetchFlowNodeInstances(t);
|
|
1123
|
-
|
|
1138
|
+
SA({
|
|
1124
1139
|
requestedProcessInstanceKey: t,
|
|
1125
1140
|
currentProcessInstanceKey: m.state.instanceKey
|
|
1126
1141
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
@@ -1133,7 +1148,7 @@ class sa extends MA {
|
|
|
1133
1148
|
...n,
|
|
1134
1149
|
scopeKey: n.processInstanceKey
|
|
1135
1150
|
}));
|
|
1136
|
-
|
|
1151
|
+
$(s, this.state.elementInstances) || (this.state.elementInstances = s), this.state.status = "fetched";
|
|
1137
1152
|
};
|
|
1138
1153
|
startFetching = () => {
|
|
1139
1154
|
this.state.status === "initial" ? this.state.status = "first-fetch" : this.state.status = "fetching";
|
|
@@ -1172,7 +1187,7 @@ class sa extends MA {
|
|
|
1172
1187
|
}
|
|
1173
1188
|
const W = new sa();
|
|
1174
1189
|
function Wt(e) {
|
|
1175
|
-
return
|
|
1190
|
+
return zA(e).get("extensionElements")?.get("values")?.find((n) => K(n, "zeebe:FormDefinition"));
|
|
1176
1191
|
}
|
|
1177
1192
|
const na = (e) => K(e, "bpmn:BusinessRuleTask"), ia = (e) => e?.get("values").filter((A) => A.$type === "zeebe:CalledDecision" || A.$type === "zeebe:calledDecision")[0], ra = (e) => {
|
|
1178
1193
|
const A = ia(e);
|
|
@@ -1201,7 +1216,7 @@ const la = (e) => e === "zeebe:CalledElement" || e === "zeebe:calledElement", da
|
|
|
1201
1216
|
};
|
|
1202
1217
|
};
|
|
1203
1218
|
function pa(e) {
|
|
1204
|
-
const A =
|
|
1219
|
+
const A = GA(e, "zeebe:formDefinition");
|
|
1205
1220
|
return {
|
|
1206
1221
|
formId: A?.get("formId") ?? null,
|
|
1207
1222
|
bindingType: A?.bindingType ?? yt
|
|
@@ -1300,8 +1315,8 @@ function fa({
|
|
|
1300
1315
|
let h = [];
|
|
1301
1316
|
try {
|
|
1302
1317
|
A === "decision" ? h = await a(e, s) : A === "form" ? h = await c(e, s) : h = await o(e, s);
|
|
1303
|
-
} catch (
|
|
1304
|
-
console.error("Error fetching file",
|
|
1318
|
+
} catch (v) {
|
|
1319
|
+
console.error("Error fetching file", v);
|
|
1305
1320
|
}
|
|
1306
1321
|
let g = null;
|
|
1307
1322
|
if (h?.[0]?.id && (g = await l(h[0].id)), A === "process" && g?.content) {
|
|
@@ -1415,7 +1430,7 @@ class ba {
|
|
|
1415
1430
|
authType;
|
|
1416
1431
|
operateBaseUrl;
|
|
1417
1432
|
constructor() {
|
|
1418
|
-
|
|
1433
|
+
qA(this);
|
|
1419
1434
|
}
|
|
1420
1435
|
init({
|
|
1421
1436
|
xml: A,
|
|
@@ -1431,14 +1446,14 @@ class ba {
|
|
|
1431
1446
|
consoleDashboardPageUrl: p,
|
|
1432
1447
|
clusterId: h,
|
|
1433
1448
|
currentDiagramRevision: g,
|
|
1434
|
-
updateFileById:
|
|
1449
|
+
updateFileById: v,
|
|
1435
1450
|
originAppInstanceId: B,
|
|
1436
1451
|
canUserSaveExampleData: E,
|
|
1437
|
-
diagramId:
|
|
1452
|
+
diagramId: D,
|
|
1438
1453
|
authType: R,
|
|
1439
1454
|
operateBaseUrl: I
|
|
1440
1455
|
}) {
|
|
1441
|
-
this.xmlToDisplay = A, this.processId = n, this.folderId = s, this.projectId = t, this.processName = r, this.fetchFilesByProcessId = a, this.fetchFilesByDecisionId = o, this.fetchFileById = c, this.fetchFilesByFormId = l, this.onDeploymentError = d, this.consoleSecretsUrl = `${p}/cluster/${h}/secrets`, this.consoleDashboardPageUrl = p, this.currentDiagramRevision = g, this.updateFileById =
|
|
1456
|
+
this.xmlToDisplay = A, this.processId = n, this.folderId = s, this.projectId = t, this.processName = r, this.fetchFilesByProcessId = a, this.fetchFilesByDecisionId = o, this.fetchFileById = c, this.fetchFilesByFormId = l, this.onDeploymentError = d, this.consoleSecretsUrl = `${p}/cluster/${h}/secrets`, this.consoleDashboardPageUrl = p, this.currentDiagramRevision = g, this.updateFileById = v, this.originAppInstanceId = B, this.canUserSaveExampleData = E, this.diagramId = D, this.authType = R, this.operateBaseUrl = I;
|
|
1442
1457
|
}
|
|
1443
1458
|
get isEnvironmentCreated() {
|
|
1444
1459
|
return this.state.status === "environment-created";
|
|
@@ -1514,7 +1529,7 @@ class ba {
|
|
|
1514
1529
|
};
|
|
1515
1530
|
try {
|
|
1516
1531
|
const a = await this.updateFileById?.(this.diagramId, r);
|
|
1517
|
-
return
|
|
1532
|
+
return L.trackDiagramUpdated(), this.currentDiagramRevision = a.revision, { success: !0 };
|
|
1518
1533
|
} catch (a) {
|
|
1519
1534
|
return a?.status === 409 ? { success: !1, reason: "conflict" } : { success: !1, reason: "unknown" };
|
|
1520
1535
|
}
|
|
@@ -1535,19 +1550,19 @@ class ba {
|
|
|
1535
1550
|
}
|
|
1536
1551
|
]);
|
|
1537
1552
|
if (n)
|
|
1538
|
-
|
|
1553
|
+
L.trackDeployment({
|
|
1539
1554
|
success: !0,
|
|
1540
1555
|
fileId: t.fileId ?? void 0,
|
|
1541
1556
|
fileType: t.fileType
|
|
1542
1557
|
});
|
|
1543
1558
|
else {
|
|
1544
1559
|
const r = s;
|
|
1545
|
-
|
|
1560
|
+
L.trackDeployment({
|
|
1546
1561
|
success: !1,
|
|
1547
1562
|
errorMessage: r.detail,
|
|
1548
1563
|
fileId: t.fileId ?? void 0,
|
|
1549
1564
|
fileType: t.fileType
|
|
1550
|
-
}),
|
|
1565
|
+
}), L.trackDiagramErrors({
|
|
1551
1566
|
count: $t(r.detail).length,
|
|
1552
1567
|
fileId: t.fileId ?? void 0,
|
|
1553
1568
|
fileType: t.fileType
|
|
@@ -1574,19 +1589,19 @@ class ba {
|
|
|
1574
1589
|
]);
|
|
1575
1590
|
if (r) {
|
|
1576
1591
|
const o = n.deployments[0].process.processDefinitionKey;
|
|
1577
|
-
return ma(this.processId, o),
|
|
1592
|
+
return ma(this.processId, o), L.trackDeployment({
|
|
1578
1593
|
success: !0,
|
|
1579
1594
|
fileId: this.diagramId,
|
|
1580
1595
|
fileType: "bpmn"
|
|
1581
1596
|
}), this.setProcessDefinitionKey(o), { status: "success" };
|
|
1582
1597
|
} else {
|
|
1583
1598
|
const a = n;
|
|
1584
|
-
|
|
1599
|
+
L.trackDeployment({
|
|
1585
1600
|
success: !1,
|
|
1586
1601
|
errorMessage: a.detail,
|
|
1587
1602
|
fileId: this.diagramId,
|
|
1588
1603
|
fileType: "bpmn"
|
|
1589
|
-
}),
|
|
1604
|
+
}), L.trackDiagramErrors({
|
|
1590
1605
|
count: $t(a.detail).length,
|
|
1591
1606
|
fileId: this.diagramId,
|
|
1592
1607
|
fileType: "bpmn"
|
|
@@ -1618,7 +1633,7 @@ class va {
|
|
|
1618
1633
|
state = { ...As };
|
|
1619
1634
|
rootNodeSelectionDisposer = null;
|
|
1620
1635
|
constructor() {
|
|
1621
|
-
|
|
1636
|
+
qA(this, { init: !1 });
|
|
1622
1637
|
}
|
|
1623
1638
|
init = () => {
|
|
1624
1639
|
this.rootNodeSelectionDisposer = Ie(
|
|
@@ -1686,7 +1701,7 @@ class Ea {
|
|
|
1686
1701
|
#A = void 0;
|
|
1687
1702
|
#e = !1;
|
|
1688
1703
|
constructor() {
|
|
1689
|
-
|
|
1704
|
+
qA(this);
|
|
1690
1705
|
}
|
|
1691
1706
|
init = ({
|
|
1692
1707
|
displayNotification: A,
|
|
@@ -1746,13 +1761,13 @@ class Ea {
|
|
|
1746
1761
|
});
|
|
1747
1762
|
n ? (this.#A?.info({
|
|
1748
1763
|
title: `Moving ${pn(s.length, "token")} to ${t}`
|
|
1749
|
-
}),
|
|
1764
|
+
}), L.applyModifictation("move-token")) : r === NA ? this.#A?.error(
|
|
1750
1765
|
{
|
|
1751
|
-
title:
|
|
1766
|
+
title: xA,
|
|
1752
1767
|
subtitle: `Please contact your ${this.#e ? "admin" : "organization owner or admin"} to give you the necessary permissions to modify this instance.`
|
|
1753
1768
|
},
|
|
1754
1769
|
bA
|
|
1755
|
-
) : this.#A?.error(
|
|
1770
|
+
) : this.#A?.error(_);
|
|
1756
1771
|
}
|
|
1757
1772
|
this.finishMovingToken();
|
|
1758
1773
|
};
|
|
@@ -1780,7 +1795,7 @@ const wA = new Ea(), hn = (e) => {
|
|
|
1780
1795
|
let ya = class {
|
|
1781
1796
|
state = { ...ss };
|
|
1782
1797
|
constructor() {
|
|
1783
|
-
|
|
1798
|
+
qA(this);
|
|
1784
1799
|
}
|
|
1785
1800
|
setDiagramDetails = async (A) => {
|
|
1786
1801
|
try {
|
|
@@ -1791,7 +1806,7 @@ let ya = class {
|
|
|
1791
1806
|
}
|
|
1792
1807
|
};
|
|
1793
1808
|
setDefinitions(A, t) {
|
|
1794
|
-
|
|
1809
|
+
$(this.state.definitions, A) || (this.state.definitions = A), $(this.state.elementsById, t) || (this.state.elementsById = t);
|
|
1795
1810
|
}
|
|
1796
1811
|
get flowNodes() {
|
|
1797
1812
|
return Rr(this.state.elementsById).map((A) => ({
|
|
@@ -1991,11 +2006,11 @@ function oA(e, A) {
|
|
|
1991
2006
|
function is(e, A) {
|
|
1992
2007
|
localStorage.setItem(e, JSON.stringify(A));
|
|
1993
2008
|
}
|
|
1994
|
-
function
|
|
2009
|
+
function ce(e) {
|
|
1995
2010
|
return JSON.parse(localStorage.getItem(e) || "[]");
|
|
1996
2011
|
}
|
|
1997
2012
|
function Ma(e) {
|
|
1998
|
-
const A =
|
|
2013
|
+
const A = ce(e);
|
|
1999
2014
|
return A.length > 0 && A[0].action === "startInstance";
|
|
2000
2015
|
}
|
|
2001
2016
|
function rs(e) {
|
|
@@ -2010,7 +2025,7 @@ function rs(e) {
|
|
|
2010
2025
|
return null;
|
|
2011
2026
|
});
|
|
2012
2027
|
}
|
|
2013
|
-
const
|
|
2028
|
+
const ee = (e) => {
|
|
2014
2029
|
if (e == null)
|
|
2015
2030
|
return !1;
|
|
2016
2031
|
try {
|
|
@@ -2023,7 +2038,7 @@ const he = (e) => {
|
|
|
2023
2038
|
isUpdatingVariable: !1,
|
|
2024
2039
|
status: "initial"
|
|
2025
2040
|
};
|
|
2026
|
-
let Sa = class extends
|
|
2041
|
+
let Sa = class extends BA {
|
|
2027
2042
|
state = { ...as };
|
|
2028
2043
|
isPollRequestRunning = !1;
|
|
2029
2044
|
intervalId = null;
|
|
@@ -2031,15 +2046,15 @@ let Sa = class extends MA {
|
|
|
2031
2046
|
fetchVariablesDisposer = null;
|
|
2032
2047
|
constructor() {
|
|
2033
2048
|
super(), nA(this, {
|
|
2034
|
-
state:
|
|
2035
|
-
variables:
|
|
2036
|
-
handleSuccess:
|
|
2037
|
-
handleError:
|
|
2038
|
-
setIsUpdatingVariable:
|
|
2039
|
-
startFetching:
|
|
2040
|
-
scopeId:
|
|
2041
|
-
isInitialLoadComplete:
|
|
2042
|
-
reset:
|
|
2049
|
+
state: lA,
|
|
2050
|
+
variables: G,
|
|
2051
|
+
handleSuccess: S,
|
|
2052
|
+
handleError: S,
|
|
2053
|
+
setIsUpdatingVariable: S,
|
|
2054
|
+
startFetching: S,
|
|
2055
|
+
scopeId: G,
|
|
2056
|
+
isInitialLoadComplete: G,
|
|
2057
|
+
reset: yA
|
|
2043
2058
|
});
|
|
2044
2059
|
}
|
|
2045
2060
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -2059,7 +2074,7 @@ let Sa = class extends MA {
|
|
|
2059
2074
|
const { success: s, variables: n } = await M.fetchVariables({
|
|
2060
2075
|
instanceKey: t
|
|
2061
2076
|
});
|
|
2062
|
-
|
|
2077
|
+
SA({
|
|
2063
2078
|
requestedProcessInstanceKey: t,
|
|
2064
2079
|
currentProcessInstanceKey: m.state.instanceKey
|
|
2065
2080
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
@@ -2069,7 +2084,7 @@ let Sa = class extends MA {
|
|
|
2069
2084
|
return t;
|
|
2070
2085
|
};
|
|
2071
2086
|
handleSuccess = (A) => {
|
|
2072
|
-
|
|
2087
|
+
$(A, this.state.variables) || (this.state.variables = A ?? []), this.state.status = "fetched";
|
|
2073
2088
|
};
|
|
2074
2089
|
setVariables = async ({
|
|
2075
2090
|
instanceKey: A,
|
|
@@ -2128,7 +2143,7 @@ let Sa = class extends MA {
|
|
|
2128
2143
|
super.reset(), this.state = { ...as };
|
|
2129
2144
|
}
|
|
2130
2145
|
};
|
|
2131
|
-
const
|
|
2146
|
+
const hA = new Sa(), Da = ({
|
|
2132
2147
|
processId: e,
|
|
2133
2148
|
element: A,
|
|
2134
2149
|
isSubProcessStartEvent: t,
|
|
@@ -2154,18 +2169,18 @@ const pA = new Sa(), Da = ({
|
|
|
2154
2169
|
statistics: [],
|
|
2155
2170
|
status: "initial"
|
|
2156
2171
|
};
|
|
2157
|
-
class Ca extends
|
|
2172
|
+
class Ca extends BA {
|
|
2158
2173
|
state = { ...os };
|
|
2159
2174
|
constructor() {
|
|
2160
2175
|
super(), nA(this, {
|
|
2161
|
-
state:
|
|
2162
|
-
handleSuccess:
|
|
2163
|
-
startFetching:
|
|
2164
|
-
handleError:
|
|
2165
|
-
reset:
|
|
2166
|
-
completedElementIds:
|
|
2167
|
-
activeElementIds:
|
|
2168
|
-
activeElementIdsWithoutIncident:
|
|
2176
|
+
state: lA,
|
|
2177
|
+
handleSuccess: S,
|
|
2178
|
+
startFetching: S,
|
|
2179
|
+
handleError: S,
|
|
2180
|
+
reset: yA,
|
|
2181
|
+
completedElementIds: G,
|
|
2182
|
+
activeElementIds: G,
|
|
2183
|
+
activeElementIdsWithoutIncident: G
|
|
2169
2184
|
});
|
|
2170
2185
|
}
|
|
2171
2186
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -2183,13 +2198,13 @@ class Ca extends MA {
|
|
|
2183
2198
|
return;
|
|
2184
2199
|
this.startFetching();
|
|
2185
2200
|
const { success: s, statistics: n } = await M.fetchStatistics(t);
|
|
2186
|
-
|
|
2201
|
+
SA({
|
|
2187
2202
|
requestedProcessInstanceKey: t,
|
|
2188
2203
|
currentProcessInstanceKey: m.state.instanceKey
|
|
2189
2204
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
2190
2205
|
};
|
|
2191
2206
|
handleSuccess = (A) => {
|
|
2192
|
-
|
|
2207
|
+
$(A, this.state.statistics) || (this.state.statistics = A ?? []), this.state.status = "fetched";
|
|
2193
2208
|
};
|
|
2194
2209
|
startFetching = () => {
|
|
2195
2210
|
this.state.status = "fetching";
|
|
@@ -2222,18 +2237,18 @@ const rA = new Ca(), ka = (e, A) => {
|
|
|
2222
2237
|
const t = e.substring(1), s = A.find(
|
|
2223
2238
|
(n) => n.name === t
|
|
2224
2239
|
);
|
|
2225
|
-
return s?.value &&
|
|
2240
|
+
return s?.value && ee(s?.value) ? JSON.parse(s.value) : e.substring(1);
|
|
2226
2241
|
}
|
|
2227
2242
|
};
|
|
2228
2243
|
class Ta {
|
|
2229
2244
|
constructor() {
|
|
2230
2245
|
nA(this, {
|
|
2231
|
-
startMessageSubscriptionCandidates:
|
|
2232
|
-
activeMessageSubscriptionCandidates:
|
|
2246
|
+
startMessageSubscriptionCandidates: G.struct,
|
|
2247
|
+
activeMessageSubscriptionCandidates: G.struct
|
|
2233
2248
|
});
|
|
2234
2249
|
}
|
|
2235
2250
|
get activeMessageSubscriptionCandidates() {
|
|
2236
|
-
const { messageSubscriptionCandidates: A } = T, { activeElementIdsWithoutIncident: t } = rA, { variables: s } =
|
|
2251
|
+
const { messageSubscriptionCandidates: A } = T, { activeElementIdsWithoutIncident: t } = rA, { variables: s } = hA.state, n = m.state.processInstance?.state === "ACTIVE";
|
|
2237
2252
|
return A.filter(
|
|
2238
2253
|
(r) => Dt({
|
|
2239
2254
|
processId: w.processId,
|
|
@@ -2255,12 +2270,12 @@ class Ta {
|
|
|
2255
2270
|
);
|
|
2256
2271
|
}
|
|
2257
2272
|
}
|
|
2258
|
-
const
|
|
2273
|
+
const le = new Ta();
|
|
2259
2274
|
class Na {
|
|
2260
2275
|
constructor() {
|
|
2261
2276
|
nA(this, {
|
|
2262
|
-
activeSignalCandidates:
|
|
2263
|
-
startSignalCandidates:
|
|
2277
|
+
activeSignalCandidates: G.struct,
|
|
2278
|
+
startSignalCandidates: G.struct
|
|
2264
2279
|
});
|
|
2265
2280
|
}
|
|
2266
2281
|
get activeSignalCandidates() {
|
|
@@ -2280,7 +2295,7 @@ class Na {
|
|
|
2280
2295
|
);
|
|
2281
2296
|
}
|
|
2282
2297
|
}
|
|
2283
|
-
const
|
|
2298
|
+
const de = new Na(), cs = ({
|
|
2284
2299
|
instanceKey: e,
|
|
2285
2300
|
elementId: A,
|
|
2286
2301
|
candidates: t
|
|
@@ -2432,7 +2447,7 @@ class fn {
|
|
|
2432
2447
|
if (A === "start-event")
|
|
2433
2448
|
o = await this.startNewInstance(t, n);
|
|
2434
2449
|
else if (A === "message-start-event") {
|
|
2435
|
-
const c = s === void 0 ?
|
|
2450
|
+
const c = s === void 0 ? le.startMessageSubscriptionCandidates?.[0] : le.startMessageSubscriptionCandidates?.find(
|
|
2436
2451
|
(l) => l.elementId === s
|
|
2437
2452
|
);
|
|
2438
2453
|
c === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleMessageEvent({
|
|
@@ -2442,7 +2457,7 @@ class fn {
|
|
|
2442
2457
|
elementId: c.elementId
|
|
2443
2458
|
}), o = await rs(r) ?? void 0);
|
|
2444
2459
|
} else if (A == "broadcast-signal-event") {
|
|
2445
|
-
const c = s === void 0 ?
|
|
2460
|
+
const c = s === void 0 ? de.startSignalCandidates?.[0] : de.startSignalCandidates?.find(
|
|
2446
2461
|
(l) => l.elementId === s
|
|
2447
2462
|
);
|
|
2448
2463
|
c === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleSignalEvent({
|
|
@@ -2710,7 +2725,7 @@ function Fa(e, A) {
|
|
|
2710
2725
|
};
|
|
2711
2726
|
}
|
|
2712
2727
|
function Qa(e) {
|
|
2713
|
-
if (!
|
|
2728
|
+
if (!ee(e))
|
|
2714
2729
|
return {
|
|
2715
2730
|
isSuccess: !1,
|
|
2716
2731
|
errorMessage: "Invalid JSON format"
|
|
@@ -2859,7 +2874,7 @@ function Va({
|
|
|
2859
2874
|
coveredSequenceFlows: e.metadata?.coveredSequenceFlows || []
|
|
2860
2875
|
};
|
|
2861
2876
|
}
|
|
2862
|
-
function
|
|
2877
|
+
function UA(e) {
|
|
2863
2878
|
return JSON.parse(
|
|
2864
2879
|
localStorage.getItem(`${e} scenarios`) || "[]"
|
|
2865
2880
|
);
|
|
@@ -2892,7 +2907,7 @@ function Ua({
|
|
|
2892
2907
|
coveredFlowNodes: n,
|
|
2893
2908
|
coveredSequenceFlows: r
|
|
2894
2909
|
}) {
|
|
2895
|
-
const a =
|
|
2910
|
+
const a = UA(e);
|
|
2896
2911
|
a.push({
|
|
2897
2912
|
key: `${e}-${t}`,
|
|
2898
2913
|
processInstanceId: A,
|
|
@@ -2913,7 +2928,7 @@ function Ya({
|
|
|
2913
2928
|
coveredFlowNodes: n,
|
|
2914
2929
|
coveredSequenceFlows: r
|
|
2915
2930
|
}) {
|
|
2916
|
-
const a =
|
|
2931
|
+
const a = UA(e), o = a.find(
|
|
2917
2932
|
(c) => c.name === t
|
|
2918
2933
|
);
|
|
2919
2934
|
if (o !== void 0) {
|
|
@@ -2935,7 +2950,7 @@ function Ya({
|
|
|
2935
2950
|
);
|
|
2936
2951
|
}
|
|
2937
2952
|
}
|
|
2938
|
-
function
|
|
2953
|
+
function $A(e) {
|
|
2939
2954
|
const A = Za(e)?.message;
|
|
2940
2955
|
if (A)
|
|
2941
2956
|
return A;
|
|
@@ -2970,27 +2985,27 @@ let qa = class extends fn {
|
|
|
2970
2985
|
originAppInstanceId;
|
|
2971
2986
|
constructor() {
|
|
2972
2987
|
super(), nA(this, {
|
|
2973
|
-
state:
|
|
2974
|
-
loadScenarios:
|
|
2975
|
-
setScenarios:
|
|
2976
|
-
handleLoadSuccess:
|
|
2977
|
-
handleLoadError:
|
|
2978
|
-
allCoveredFlowNodes:
|
|
2979
|
-
currentTotalCoverage:
|
|
2980
|
-
coverageIncrease:
|
|
2981
|
-
newTotalCoverage:
|
|
2982
|
-
isAnyScenarioRunning:
|
|
2983
|
-
coveredFlowNodeIdsForSelectedScenario:
|
|
2984
|
-
isSingleScenarioSelected:
|
|
2985
|
-
startRunningSingleScenario:
|
|
2986
|
-
updateSingleScenarioRun:
|
|
2987
|
-
saveTestScenarioFileMetadata:
|
|
2988
|
-
deleteScenario:
|
|
2989
|
-
setSelectedScenario:
|
|
2990
|
-
clearSelectedScenario:
|
|
2991
|
-
reset:
|
|
2992
|
-
setIsProcessing:
|
|
2993
|
-
setUseLocalStorage:
|
|
2988
|
+
state: lA,
|
|
2989
|
+
loadScenarios: S,
|
|
2990
|
+
setScenarios: S,
|
|
2991
|
+
handleLoadSuccess: S,
|
|
2992
|
+
handleLoadError: S,
|
|
2993
|
+
allCoveredFlowNodes: G,
|
|
2994
|
+
currentTotalCoverage: G,
|
|
2995
|
+
coverageIncrease: G,
|
|
2996
|
+
newTotalCoverage: G,
|
|
2997
|
+
isAnyScenarioRunning: G,
|
|
2998
|
+
coveredFlowNodeIdsForSelectedScenario: G,
|
|
2999
|
+
isSingleScenarioSelected: G,
|
|
3000
|
+
startRunningSingleScenario: S,
|
|
3001
|
+
updateSingleScenarioRun: S,
|
|
3002
|
+
saveTestScenarioFileMetadata: S,
|
|
3003
|
+
deleteScenario: S,
|
|
3004
|
+
setSelectedScenario: S,
|
|
3005
|
+
clearSelectedScenario: S,
|
|
3006
|
+
reset: S,
|
|
3007
|
+
setIsProcessing: S,
|
|
3008
|
+
setUseLocalStorage: S
|
|
2994
3009
|
});
|
|
2995
3010
|
}
|
|
2996
3011
|
#A = ({
|
|
@@ -3029,7 +3044,7 @@ let qa = class extends fn {
|
|
|
3029
3044
|
return this.#A({
|
|
3030
3045
|
title: _e,
|
|
3031
3046
|
subtitle: "Network error",
|
|
3032
|
-
errorMessage:
|
|
3047
|
+
errorMessage: $A(r)
|
|
3033
3048
|
}), this.handleLoadError([]), [];
|
|
3034
3049
|
}
|
|
3035
3050
|
if (t.length === 0)
|
|
@@ -3105,8 +3120,8 @@ let qa = class extends fn {
|
|
|
3105
3120
|
return r && this.#A({
|
|
3106
3121
|
title: "Failed to create test scenario file",
|
|
3107
3122
|
subtitle: "Please try again, or contact support",
|
|
3108
|
-
errorMessage:
|
|
3109
|
-
}), { isSuccess: !1, errorMessage:
|
|
3123
|
+
errorMessage: $A(d)
|
|
3124
|
+
}), { isSuccess: !1, errorMessage: $A(d) };
|
|
3110
3125
|
}
|
|
3111
3126
|
return {
|
|
3112
3127
|
isSuccess: !0,
|
|
@@ -3168,7 +3183,7 @@ let qa = class extends fn {
|
|
|
3168
3183
|
this.#A({
|
|
3169
3184
|
title: "Failed to add scenario",
|
|
3170
3185
|
subtitle: "Failed to update test scenario file",
|
|
3171
|
-
errorMessage:
|
|
3186
|
+
errorMessage: $A(l)
|
|
3172
3187
|
});
|
|
3173
3188
|
return;
|
|
3174
3189
|
} finally {
|
|
@@ -3235,7 +3250,7 @@ let qa = class extends fn {
|
|
|
3235
3250
|
this.#A({
|
|
3236
3251
|
title: "Failed to update scenario",
|
|
3237
3252
|
subtitle: "Failed to update test scenario file",
|
|
3238
|
-
errorMessage:
|
|
3253
|
+
errorMessage: $A(p)
|
|
3239
3254
|
});
|
|
3240
3255
|
return;
|
|
3241
3256
|
} finally {
|
|
@@ -3282,7 +3297,7 @@ let qa = class extends fn {
|
|
|
3282
3297
|
this.#A({
|
|
3283
3298
|
title: "Failed to delete scenario",
|
|
3284
3299
|
subtitle: "Please try again, or contact support",
|
|
3285
|
-
errorMessage:
|
|
3300
|
+
errorMessage: $A(a)
|
|
3286
3301
|
});
|
|
3287
3302
|
return;
|
|
3288
3303
|
} finally {
|
|
@@ -3430,7 +3445,7 @@ let qa = class extends fn {
|
|
|
3430
3445
|
};
|
|
3431
3446
|
#s = (A) => {
|
|
3432
3447
|
this.startFetching();
|
|
3433
|
-
const t =
|
|
3448
|
+
const t = UA(A);
|
|
3434
3449
|
return this.handleLoadSuccess({ scenarios: t, hasMultipleTestFilesLinked: !1 }), t;
|
|
3435
3450
|
};
|
|
3436
3451
|
#i = (A, t) => {
|
|
@@ -3442,7 +3457,7 @@ let qa = class extends fn {
|
|
|
3442
3457
|
coveredFlowNodes: t.coveredFlowNodes,
|
|
3443
3458
|
coveredSequenceFlows: t.coveredSequenceFlows
|
|
3444
3459
|
});
|
|
3445
|
-
const s =
|
|
3460
|
+
const s = UA(A);
|
|
3446
3461
|
this.setScenarios(s);
|
|
3447
3462
|
};
|
|
3448
3463
|
#r = (A, t) => {
|
|
@@ -3454,12 +3469,12 @@ let qa = class extends fn {
|
|
|
3454
3469
|
coveredFlowNodes: t.coveredFlowNodes,
|
|
3455
3470
|
coveredSequenceFlows: t.coveredSequenceFlows
|
|
3456
3471
|
});
|
|
3457
|
-
const s =
|
|
3472
|
+
const s = UA(A);
|
|
3458
3473
|
this.setScenarios(s);
|
|
3459
3474
|
};
|
|
3460
3475
|
#n = (A, t) => {
|
|
3461
3476
|
Ja(A, t.key);
|
|
3462
|
-
const s =
|
|
3477
|
+
const s = UA(A);
|
|
3463
3478
|
this.setScenarios(s), delete this.state.scenarioRuns[t.name];
|
|
3464
3479
|
};
|
|
3465
3480
|
reset = () => {
|
|
@@ -3478,26 +3493,26 @@ const x = new qa(), Ct = "Not saved", ds = {
|
|
|
3478
3493
|
instanceType: void 0,
|
|
3479
3494
|
scenarioName: Ct
|
|
3480
3495
|
};
|
|
3481
|
-
class za extends
|
|
3496
|
+
class za extends BA {
|
|
3482
3497
|
state = { ...ds };
|
|
3483
3498
|
processManuallyCompletedDisposer = null;
|
|
3484
3499
|
scenarioNameDisposer = null;
|
|
3485
3500
|
refetchTimeout = null;
|
|
3486
3501
|
constructor() {
|
|
3487
3502
|
super(), nA(this, {
|
|
3488
|
-
state:
|
|
3489
|
-
setIsProcessManuallyCompleted:
|
|
3490
|
-
isCalledProcess:
|
|
3491
|
-
setInstanceDetails:
|
|
3492
|
-
handleSuccess:
|
|
3493
|
-
startFetching:
|
|
3494
|
-
handleError:
|
|
3495
|
-
setScenarioName:
|
|
3496
|
-
reset:
|
|
3497
|
-
isRunning:
|
|
3498
|
-
hasError:
|
|
3499
|
-
isInstanceDetailPageVisible:
|
|
3500
|
-
isInitialLoadComplete:
|
|
3503
|
+
state: lA,
|
|
3504
|
+
setIsProcessManuallyCompleted: S,
|
|
3505
|
+
isCalledProcess: G,
|
|
3506
|
+
setInstanceDetails: S,
|
|
3507
|
+
handleSuccess: S,
|
|
3508
|
+
startFetching: S,
|
|
3509
|
+
handleError: S,
|
|
3510
|
+
setScenarioName: S,
|
|
3511
|
+
reset: yA,
|
|
3512
|
+
isRunning: G,
|
|
3513
|
+
hasError: G,
|
|
3514
|
+
isInstanceDetailPageVisible: G,
|
|
3515
|
+
isInitialLoadComplete: G
|
|
3501
3516
|
});
|
|
3502
3517
|
}
|
|
3503
3518
|
shouldRefreshDataAfterPollingStops = !1;
|
|
@@ -3536,10 +3551,10 @@ class za extends MA {
|
|
|
3536
3551
|
const s = this.state.instanceKey;
|
|
3537
3552
|
this.startFetching();
|
|
3538
3553
|
const { statusCode: n, success: r, processInstance: a } = await M.fetchInstanceDetails(s);
|
|
3539
|
-
|
|
3554
|
+
SA({
|
|
3540
3555
|
requestedProcessInstanceKey: s,
|
|
3541
3556
|
currentProcessInstanceKey: this.state.instanceKey
|
|
3542
|
-
}) && (r ? (this.handleSuccess(a), this.resetRefetch()) : n ===
|
|
3557
|
+
}) && (r ? (this.handleSuccess(a), this.resetRefetch()) : n === NA ? this.handleAuthError() : n === 404 && A ? this.handleRefetch() : t || this.handleError());
|
|
3543
3558
|
};
|
|
3544
3559
|
handleRefetch = () => {
|
|
3545
3560
|
this.refetchTimeout = setTimeout(() => {
|
|
@@ -3556,7 +3571,7 @@ class za extends MA {
|
|
|
3556
3571
|
this.state.instanceKey = A, this.state.instanceType = t;
|
|
3557
3572
|
};
|
|
3558
3573
|
handleSuccess = (A) => {
|
|
3559
|
-
|
|
3574
|
+
$(this.state.processInstance, A) || (this.state.processInstance = A), this.state.status = "fetched";
|
|
3560
3575
|
};
|
|
3561
3576
|
startFetching = () => {
|
|
3562
3577
|
["initial", "first-fetch"].includes(this.state.status) ? this.state.status = "first-fetch" : this.state.status = "fetching";
|
|
@@ -3600,16 +3615,16 @@ const m = new za(), us = {
|
|
|
3600
3615
|
incidents: [],
|
|
3601
3616
|
status: "initial"
|
|
3602
3617
|
};
|
|
3603
|
-
class ja extends
|
|
3618
|
+
class ja extends BA {
|
|
3604
3619
|
state = { ...us };
|
|
3605
3620
|
constructor() {
|
|
3606
3621
|
super(), nA(this, {
|
|
3607
|
-
state:
|
|
3608
|
-
handleSuccess:
|
|
3609
|
-
handleError:
|
|
3610
|
-
startFetching:
|
|
3611
|
-
reset:
|
|
3612
|
-
incidents:
|
|
3622
|
+
state: lA,
|
|
3623
|
+
handleSuccess: S,
|
|
3624
|
+
handleError: S,
|
|
3625
|
+
startFetching: S,
|
|
3626
|
+
reset: yA,
|
|
3627
|
+
incidents: G
|
|
3613
3628
|
});
|
|
3614
3629
|
}
|
|
3615
3630
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -3644,18 +3659,18 @@ class ja extends MA {
|
|
|
3644
3659
|
}) => {
|
|
3645
3660
|
this.startFetching();
|
|
3646
3661
|
const { success: s, incidents: n } = await M.fetchIncidents(A);
|
|
3647
|
-
|
|
3662
|
+
SA({
|
|
3648
3663
|
requestedProcessInstanceKey: A,
|
|
3649
3664
|
currentProcessInstanceKey: m.state.instanceKey
|
|
3650
3665
|
}) && (s ? (this.handleSuccess(n), n?.forEach(
|
|
3651
|
-
(r) =>
|
|
3666
|
+
(r) => L.trackIncident(
|
|
3652
3667
|
r,
|
|
3653
3668
|
m.state.processInstance?.bpmnProcessId
|
|
3654
3669
|
)
|
|
3655
3670
|
)) : t || this.handleError());
|
|
3656
3671
|
};
|
|
3657
3672
|
handleSuccess = (A) => {
|
|
3658
|
-
|
|
3673
|
+
$(A, this.state.incidents) || (this.state.incidents = A ?? []), this.state.status = "fetched";
|
|
3659
3674
|
};
|
|
3660
3675
|
updateRetries = async ({
|
|
3661
3676
|
jobKey: A,
|
|
@@ -3679,19 +3694,19 @@ class ja extends MA {
|
|
|
3679
3694
|
super.reset(), this.state = { ...us };
|
|
3680
3695
|
}
|
|
3681
3696
|
}
|
|
3682
|
-
const
|
|
3697
|
+
const ue = new ja(), ps = {
|
|
3683
3698
|
userTasks: [],
|
|
3684
3699
|
status: "initial"
|
|
3685
3700
|
};
|
|
3686
|
-
class Wa extends
|
|
3701
|
+
class Wa extends BA {
|
|
3687
3702
|
state = { ...ps };
|
|
3688
3703
|
constructor() {
|
|
3689
3704
|
super(), nA(this, {
|
|
3690
|
-
state:
|
|
3691
|
-
handleSuccess:
|
|
3692
|
-
startFetching:
|
|
3693
|
-
handleError:
|
|
3694
|
-
reset:
|
|
3705
|
+
state: lA,
|
|
3706
|
+
handleSuccess: S,
|
|
3707
|
+
startFetching: S,
|
|
3708
|
+
handleError: S,
|
|
3709
|
+
reset: yA
|
|
3695
3710
|
});
|
|
3696
3711
|
}
|
|
3697
3712
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -3709,13 +3724,13 @@ class Wa extends MA {
|
|
|
3709
3724
|
return;
|
|
3710
3725
|
this.startFetching();
|
|
3711
3726
|
const { success: s, userTasks: n } = await M.fetchUserTasks(t);
|
|
3712
|
-
|
|
3727
|
+
SA({
|
|
3713
3728
|
requestedProcessInstanceKey: t,
|
|
3714
3729
|
currentProcessInstanceKey: m.state.instanceKey
|
|
3715
3730
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
3716
3731
|
};
|
|
3717
3732
|
handleSuccess = (A) => {
|
|
3718
|
-
|
|
3733
|
+
$(A, this.state.userTasks) || (this.state.userTasks = A ?? []), this.state.status = "fetched";
|
|
3719
3734
|
};
|
|
3720
3735
|
startFetching = () => {
|
|
3721
3736
|
this.state.status = "fetching";
|
|
@@ -3728,13 +3743,29 @@ class Wa extends MA {
|
|
|
3728
3743
|
}
|
|
3729
3744
|
}
|
|
3730
3745
|
const Be = new Wa(), hs = {
|
|
3731
|
-
status: "initial"
|
|
3746
|
+
status: "initial",
|
|
3747
|
+
jobs: []
|
|
3732
3748
|
};
|
|
3733
|
-
class Xa {
|
|
3749
|
+
class Xa extends BA {
|
|
3734
3750
|
state = { ...hs };
|
|
3735
3751
|
constructor() {
|
|
3736
|
-
|
|
3752
|
+
super(), nA(this, {
|
|
3753
|
+
state: lA,
|
|
3754
|
+
handleSuccess: S,
|
|
3755
|
+
handleError: S,
|
|
3756
|
+
startFetching: S,
|
|
3757
|
+
reset: yA,
|
|
3758
|
+
errorThrowableJobsByErrorId: G,
|
|
3759
|
+
activeElementsWithJobWorker: G
|
|
3760
|
+
});
|
|
3737
3761
|
}
|
|
3762
|
+
shouldRefreshDataAfterPollingStops = !0;
|
|
3763
|
+
initialDataFetchCondition = () => m.state.processInstance?.key !== void 0;
|
|
3764
|
+
pollDataCondition = () => m.isRunning;
|
|
3765
|
+
fetchData = () => this.fetchJobs({});
|
|
3766
|
+
pollData = () => this.fetchJobs({
|
|
3767
|
+
ignoreFailure: !0
|
|
3768
|
+
});
|
|
3738
3769
|
completeJob = async ({
|
|
3739
3770
|
taskDefinitionType: A,
|
|
3740
3771
|
processInstanceKey: t,
|
|
@@ -3743,9 +3774,16 @@ class Xa {
|
|
|
3743
3774
|
}) => (await M.completeJob({
|
|
3744
3775
|
taskDefinitionType: A,
|
|
3745
3776
|
processInstanceKey: t,
|
|
3746
|
-
variables:
|
|
3777
|
+
variables: ee(s) ? s : "{}",
|
|
3747
3778
|
elementId: n
|
|
3748
3779
|
}))?.success !== !1;
|
|
3780
|
+
completeJobByKey = async ({
|
|
3781
|
+
jobKey: A,
|
|
3782
|
+
variables: t
|
|
3783
|
+
}) => (await M.completeJobByKey({
|
|
3784
|
+
jobKey: A,
|
|
3785
|
+
variables: ee(t) ? t : "{}"
|
|
3786
|
+
}))?.success !== !1;
|
|
3749
3787
|
throwError = async ({
|
|
3750
3788
|
taskDefinitionType: A,
|
|
3751
3789
|
processInstanceKey: t,
|
|
@@ -3762,6 +3800,26 @@ class Xa {
|
|
|
3762
3800
|
({ id: A }) => rA.activeElementIdsWithoutIncident.includes(A)
|
|
3763
3801
|
);
|
|
3764
3802
|
}
|
|
3803
|
+
fetchJobs = async ({ ignoreFailure: A = !1 }) => {
|
|
3804
|
+
const t = m.state.processInstance?.key?.toString();
|
|
3805
|
+
if (t === void 0)
|
|
3806
|
+
return;
|
|
3807
|
+
this.startFetching();
|
|
3808
|
+
const { success: s, jobs: n } = await M.fetchJobs(t);
|
|
3809
|
+
SA({
|
|
3810
|
+
requestedProcessInstanceKey: t,
|
|
3811
|
+
currentProcessInstanceKey: m.state.instanceKey?.toString()
|
|
3812
|
+
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
3813
|
+
};
|
|
3814
|
+
handleSuccess = (A) => {
|
|
3815
|
+
$(A, this.state.jobs) || (this.state.jobs = A ?? []), this.state.status = "fetched";
|
|
3816
|
+
};
|
|
3817
|
+
startFetching = () => {
|
|
3818
|
+
this.state.status = "fetching";
|
|
3819
|
+
};
|
|
3820
|
+
handleError = () => {
|
|
3821
|
+
this.state.status = "error";
|
|
3822
|
+
};
|
|
3765
3823
|
get errorThrowableJobsByErrorId() {
|
|
3766
3824
|
return this.activeElementsWithJobWorker.reduce((A, t) => (T.getAvailableErrorEvents(t).forEach(({ errorCode: s, errorName: n, errorElementId: r }) => {
|
|
3767
3825
|
const a = t.businessObject, o = {
|
|
@@ -3774,23 +3832,23 @@ class Xa {
|
|
|
3774
3832
|
A[r] === void 0 ? A[r] = [o] : A[r].push(o);
|
|
3775
3833
|
}), A), {});
|
|
3776
3834
|
}
|
|
3777
|
-
reset
|
|
3778
|
-
this.state = { ...hs };
|
|
3779
|
-
}
|
|
3835
|
+
reset() {
|
|
3836
|
+
super.reset(), this.state = { ...hs };
|
|
3837
|
+
}
|
|
3780
3838
|
}
|
|
3781
|
-
const
|
|
3839
|
+
const KA = new Xa(), fs = {
|
|
3782
3840
|
childInstances: [],
|
|
3783
3841
|
status: "initial"
|
|
3784
3842
|
};
|
|
3785
|
-
class $a extends
|
|
3843
|
+
class $a extends BA {
|
|
3786
3844
|
state = { ...fs };
|
|
3787
3845
|
constructor() {
|
|
3788
3846
|
super(), nA(this, {
|
|
3789
|
-
state:
|
|
3790
|
-
handleSuccess:
|
|
3791
|
-
startFetching:
|
|
3792
|
-
handleError:
|
|
3793
|
-
reset:
|
|
3847
|
+
state: lA,
|
|
3848
|
+
handleSuccess: S,
|
|
3849
|
+
startFetching: S,
|
|
3850
|
+
handleError: S,
|
|
3851
|
+
reset: yA
|
|
3794
3852
|
});
|
|
3795
3853
|
}
|
|
3796
3854
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -3810,13 +3868,13 @@ class $a extends MA {
|
|
|
3810
3868
|
const { success: s, childInstances: n } = await M.fetchChildInstances({
|
|
3811
3869
|
instanceKey: t
|
|
3812
3870
|
});
|
|
3813
|
-
|
|
3871
|
+
SA({
|
|
3814
3872
|
requestedProcessInstanceKey: t,
|
|
3815
3873
|
currentProcessInstanceKey: m.state.instanceKey
|
|
3816
3874
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
3817
3875
|
};
|
|
3818
3876
|
handleSuccess = (A) => {
|
|
3819
|
-
|
|
3877
|
+
$(A, this.state.childInstances) || (this.state.childInstances = A ?? []), this.state.status = "fetched";
|
|
3820
3878
|
};
|
|
3821
3879
|
startFetching = () => {
|
|
3822
3880
|
this.state.status = "fetching";
|
|
@@ -3832,15 +3890,15 @@ const tt = new $a(), gs = {
|
|
|
3832
3890
|
sequenceFlows: [],
|
|
3833
3891
|
status: "initial"
|
|
3834
3892
|
};
|
|
3835
|
-
class _a extends
|
|
3893
|
+
class _a extends BA {
|
|
3836
3894
|
state = { ...gs };
|
|
3837
3895
|
constructor() {
|
|
3838
3896
|
super(), nA(this, {
|
|
3839
|
-
state:
|
|
3840
|
-
handleSuccess:
|
|
3841
|
-
startFetching:
|
|
3842
|
-
handleError:
|
|
3843
|
-
reset:
|
|
3897
|
+
state: lA,
|
|
3898
|
+
handleSuccess: S,
|
|
3899
|
+
startFetching: S,
|
|
3900
|
+
handleError: S,
|
|
3901
|
+
reset: yA
|
|
3844
3902
|
});
|
|
3845
3903
|
}
|
|
3846
3904
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -3858,13 +3916,13 @@ class _a extends MA {
|
|
|
3858
3916
|
return;
|
|
3859
3917
|
this.startFetching();
|
|
3860
3918
|
const { success: s, sequenceFlows: n } = await M.fetchSequenceFlows(t);
|
|
3861
|
-
|
|
3919
|
+
SA({
|
|
3862
3920
|
requestedProcessInstanceKey: t,
|
|
3863
3921
|
currentProcessInstanceKey: m.state.instanceKey
|
|
3864
3922
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
3865
3923
|
};
|
|
3866
3924
|
handleSuccess = (A) => {
|
|
3867
|
-
|
|
3925
|
+
$(this.state.sequenceFlows, A) || (this.state.sequenceFlows = A), this.state.status = "fetched";
|
|
3868
3926
|
};
|
|
3869
3927
|
startFetching = () => {
|
|
3870
3928
|
this.state.status = "fetching";
|
|
@@ -3876,20 +3934,20 @@ class _a extends MA {
|
|
|
3876
3934
|
super.reset(), this.state = { ...gs };
|
|
3877
3935
|
}
|
|
3878
3936
|
}
|
|
3879
|
-
const
|
|
3937
|
+
const te = new _a(), ms = {
|
|
3880
3938
|
processInstances: [],
|
|
3881
3939
|
status: "initial"
|
|
3882
3940
|
};
|
|
3883
|
-
class Ao extends
|
|
3941
|
+
class Ao extends BA {
|
|
3884
3942
|
state = { ...ms };
|
|
3885
3943
|
processDefinitionKey = void 0;
|
|
3886
3944
|
constructor() {
|
|
3887
3945
|
super(), nA(this, {
|
|
3888
|
-
state:
|
|
3889
|
-
handleSuccess:
|
|
3890
|
-
handleError:
|
|
3891
|
-
startFetching:
|
|
3892
|
-
reset:
|
|
3946
|
+
state: lA,
|
|
3947
|
+
handleSuccess: S,
|
|
3948
|
+
handleError: S,
|
|
3949
|
+
startFetching: S,
|
|
3950
|
+
reset: yA
|
|
3893
3951
|
});
|
|
3894
3952
|
}
|
|
3895
3953
|
init(A) {
|
|
@@ -3914,7 +3972,7 @@ class Ao extends MA {
|
|
|
3914
3972
|
t ? this.handleSuccess(s) : A || this.handleError();
|
|
3915
3973
|
};
|
|
3916
3974
|
handleSuccess = (A) => {
|
|
3917
|
-
|
|
3975
|
+
$(A, this.state.processInstances) || (this.state.processInstances = A), this.state.status = "fetched";
|
|
3918
3976
|
};
|
|
3919
3977
|
startFetching = () => {
|
|
3920
3978
|
this.state.status = "fetching";
|
|
@@ -3930,15 +3988,15 @@ const st = new Ao(), ws = {
|
|
|
3930
3988
|
decisionInstances: [],
|
|
3931
3989
|
status: "initial"
|
|
3932
3990
|
};
|
|
3933
|
-
class eo extends
|
|
3991
|
+
class eo extends BA {
|
|
3934
3992
|
state = { ...ws };
|
|
3935
3993
|
constructor() {
|
|
3936
3994
|
super(), nA(this, {
|
|
3937
|
-
state:
|
|
3938
|
-
handleSuccess:
|
|
3939
|
-
startFetching:
|
|
3940
|
-
handleError:
|
|
3941
|
-
reset:
|
|
3995
|
+
state: lA,
|
|
3996
|
+
handleSuccess: S,
|
|
3997
|
+
startFetching: S,
|
|
3998
|
+
handleError: S,
|
|
3999
|
+
reset: yA
|
|
3942
4000
|
});
|
|
3943
4001
|
}
|
|
3944
4002
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -3956,13 +4014,13 @@ class eo extends MA {
|
|
|
3956
4014
|
return;
|
|
3957
4015
|
this.startFetching();
|
|
3958
4016
|
const { success: s, items: n } = await M.fetchDecisionInstances(t);
|
|
3959
|
-
|
|
4017
|
+
SA({
|
|
3960
4018
|
requestedProcessInstanceKey: t,
|
|
3961
4019
|
currentProcessInstanceKey: m.state.instanceKey
|
|
3962
4020
|
}) && (s ? this.handleSuccess(n) : A || this.handleError());
|
|
3963
4021
|
};
|
|
3964
4022
|
handleSuccess = (A) => {
|
|
3965
|
-
|
|
4023
|
+
$(A, this.state.decisionInstances) || (this.state.decisionInstances = A ?? []), this.state.status = "fetched";
|
|
3966
4024
|
};
|
|
3967
4025
|
startFetching = () => {
|
|
3968
4026
|
this.state.status = "fetching";
|
|
@@ -3978,61 +4036,68 @@ const nt = new eo();
|
|
|
3978
4036
|
function to({
|
|
3979
4037
|
authType: e,
|
|
3980
4038
|
clusterId: A,
|
|
3981
|
-
displayNotification: t
|
|
4039
|
+
displayNotification: t,
|
|
4040
|
+
isJobSearchAPISupported: s
|
|
3982
4041
|
}) {
|
|
3983
|
-
const [
|
|
4042
|
+
const [n, r] = y(
|
|
3984
4043
|
() => m.state.instanceKey
|
|
3985
|
-
), [
|
|
4044
|
+
), [a, o] = y(
|
|
3986
4045
|
() => w.state.processDefinitionKey
|
|
3987
4046
|
);
|
|
3988
4047
|
return F(
|
|
3989
4048
|
() => OA(
|
|
3990
4049
|
() => m.state.instanceKey,
|
|
3991
|
-
(
|
|
4050
|
+
(l) => r(l)
|
|
3992
4051
|
),
|
|
3993
4052
|
[]
|
|
3994
4053
|
), F(
|
|
3995
4054
|
() => OA(
|
|
3996
4055
|
() => w.state.processDefinitionKey,
|
|
3997
|
-
(
|
|
4056
|
+
(l) => o(l)
|
|
3998
4057
|
),
|
|
3999
4058
|
[]
|
|
4000
4059
|
), F(() => {
|
|
4001
4060
|
if (!(e === "saas" && A === void 0))
|
|
4002
|
-
return
|
|
4003
|
-
|
|
4061
|
+
return n ? (m.init(), Z.init(), te.init(), rA.init(), nt.init(), Be.init(), W.init(), hA.init(), tt.init(), ue.init(), s && KA.init()) : st.init(a), () => {
|
|
4062
|
+
KA.reset(), ue.reset(), Be.reset(), hA.reset(), tt.reset(), W.reset(), Z.reset(), te.reset(), rA.reset(), nt.reset(), st.reset(), wA.reset();
|
|
4004
4063
|
};
|
|
4005
|
-
}, [
|
|
4064
|
+
}, [
|
|
4065
|
+
e,
|
|
4066
|
+
A,
|
|
4067
|
+
n,
|
|
4068
|
+
a,
|
|
4069
|
+
s
|
|
4070
|
+
]), { reInitializePlay: U(
|
|
4006
4071
|
async ({
|
|
4007
|
-
processId:
|
|
4008
|
-
processDefinitionKey:
|
|
4009
|
-
processInstanceKey:
|
|
4072
|
+
processId: l,
|
|
4073
|
+
processDefinitionKey: d,
|
|
4074
|
+
processInstanceKey: p
|
|
4010
4075
|
}) => {
|
|
4011
|
-
const { xmlToDisplay:
|
|
4076
|
+
const { xmlToDisplay: h, processId: g } = w, v = m.state.instanceKey;
|
|
4012
4077
|
w.resetXmlAndProcess(), T.reset(), m.reset(), m.setInstanceDetails({
|
|
4013
|
-
instanceKey:
|
|
4078
|
+
instanceKey: p,
|
|
4014
4079
|
instanceType: "EXISTING_INSTANCE"
|
|
4015
4080
|
});
|
|
4016
|
-
const
|
|
4017
|
-
if (!
|
|
4018
|
-
t?.error(
|
|
4019
|
-
instanceKey:
|
|
4081
|
+
const B = await M.fetchProcessXml(d);
|
|
4082
|
+
if (!B.success) {
|
|
4083
|
+
t?.error(_), m.setInstanceDetails({
|
|
4084
|
+
instanceKey: v,
|
|
4020
4085
|
instanceType: "EXISTING_INSTANCE"
|
|
4021
4086
|
}), w.setXmlAndProcess({
|
|
4022
|
-
xml:
|
|
4023
|
-
processId:
|
|
4087
|
+
xml: h,
|
|
4088
|
+
processId: g
|
|
4024
4089
|
});
|
|
4025
4090
|
return;
|
|
4026
4091
|
}
|
|
4027
4092
|
w.setXmlAndProcess({
|
|
4028
|
-
xml:
|
|
4029
|
-
processId:
|
|
4093
|
+
xml: B.response,
|
|
4094
|
+
processId: l
|
|
4030
4095
|
});
|
|
4031
4096
|
},
|
|
4032
4097
|
[t]
|
|
4033
4098
|
) };
|
|
4034
4099
|
}
|
|
4035
|
-
const
|
|
4100
|
+
const AA = mi({
|
|
4036
4101
|
featureFlags: {
|
|
4037
4102
|
areAIFeaturesEnabled: !1,
|
|
4038
4103
|
isSaveExampleDataEnabled: !1,
|
|
@@ -4367,8 +4432,8 @@ Ps(
|
|
|
4367
4432
|
const c = e?.toLowerCase() + "-" + Math.random().toString(36).replace(/[^a-z]+/g, "").substr(2, 10), l = (p) => {
|
|
4368
4433
|
const h = p ? p.target : o.current;
|
|
4369
4434
|
h.style.height = "initial";
|
|
4370
|
-
const g = window.getComputedStyle(h),
|
|
4371
|
-
h.style.height =
|
|
4435
|
+
const g = window.getComputedStyle(h), v = parseInt(g.getPropertyValue("border-top-width"), 10) + h.scrollHeight + parseInt(g.getPropertyValue("border-bottom-width"), 10);
|
|
4436
|
+
h.style.height = v + "px";
|
|
4372
4437
|
}, d = (p) => {
|
|
4373
4438
|
p.key == "Enter" && l();
|
|
4374
4439
|
};
|
|
@@ -4519,29 +4584,29 @@ const bs = 5, mo = gt`
|
|
|
4519
4584
|
onClose: c,
|
|
4520
4585
|
keepOpen: l = !1
|
|
4521
4586
|
}) => {
|
|
4522
|
-
const [d, p] = y({ top: 0, left: 0 }), [h, g] = y(n),
|
|
4587
|
+
const [d, p] = y({ top: 0, left: 0 }), [h, g] = y(n), v = cA();
|
|
4523
4588
|
return F(() => {
|
|
4524
|
-
const { top: B, bottom: E, left:
|
|
4589
|
+
const { top: B, bottom: E, left: D, width: R } = t.getBoundingClientRect(), I = (
|
|
4525
4590
|
//@ts-expect-error 'tooltip.current' is possibly 'undefined'.ts(18048)
|
|
4526
|
-
E +
|
|
4527
|
-
),
|
|
4591
|
+
E + v.current.offsetHeight + He > window.innerHeight
|
|
4592
|
+
), b = () => {
|
|
4528
4593
|
switch (r) {
|
|
4529
4594
|
case "left":
|
|
4530
|
-
return
|
|
4595
|
+
return D;
|
|
4531
4596
|
case "right":
|
|
4532
|
-
return
|
|
4597
|
+
return D + R - v.current.offsetWidth;
|
|
4533
4598
|
default:
|
|
4534
|
-
return
|
|
4599
|
+
return D - v.current.offsetWidth / 2 + R / 2;
|
|
4535
4600
|
}
|
|
4536
|
-
},
|
|
4601
|
+
}, V = () => h == "top" || I ? B - v.current.offsetHeight - He - 5 : E + He + 5;
|
|
4537
4602
|
I && g("top"), p({
|
|
4538
|
-
top:
|
|
4539
|
-
left:
|
|
4603
|
+
top: V(),
|
|
4604
|
+
left: b()
|
|
4540
4605
|
});
|
|
4541
4606
|
}, [t, t?.getBoundingClientRect().top]), F(() => {
|
|
4542
4607
|
if (a) {
|
|
4543
4608
|
const B = (E) => {
|
|
4544
|
-
|
|
4609
|
+
v.current.contains(E.target) || l || A();
|
|
4545
4610
|
};
|
|
4546
4611
|
return document.addEventListener("mousedown", B), () => {
|
|
4547
4612
|
document.removeEventListener("mousedown", B);
|
|
@@ -4561,7 +4626,7 @@ const bs = 5, mo = gt`
|
|
|
4561
4626
|
$position: d,
|
|
4562
4627
|
$justify: r,
|
|
4563
4628
|
$align: h,
|
|
4564
|
-
ref:
|
|
4629
|
+
ref: v,
|
|
4565
4630
|
color: o,
|
|
4566
4631
|
role: "tooltip",
|
|
4567
4632
|
"aria-hidden": !t,
|
|
@@ -4570,7 +4635,7 @@ const bs = 5, mo = gt`
|
|
|
4570
4635
|
),
|
|
4571
4636
|
document.body
|
|
4572
4637
|
);
|
|
4573
|
-
},
|
|
4638
|
+
}, _A = bo(vo), Eo = u.ul`
|
|
4574
4639
|
list-style: none;
|
|
4575
4640
|
margin: 4px 0 0 0;
|
|
4576
4641
|
position: fixed;
|
|
@@ -4708,7 +4773,7 @@ function Mo({
|
|
|
4708
4773
|
role: "menuitem",
|
|
4709
4774
|
$noPadding: A,
|
|
4710
4775
|
...s,
|
|
4711
|
-
children: /* @__PURE__ */ i(
|
|
4776
|
+
children: /* @__PURE__ */ i(_A, { title: e, showOnlyOnOverflow: !0, children: /* @__PURE__ */ i("div", { className: "overflow-ellipsis", children: e }) })
|
|
4712
4777
|
}
|
|
4713
4778
|
);
|
|
4714
4779
|
}
|
|
@@ -4769,12 +4834,12 @@ let ZA = class extends Ei {
|
|
|
4769
4834
|
}
|
|
4770
4835
|
};
|
|
4771
4836
|
ZA.propTypes = {
|
|
4772
|
-
onClose:
|
|
4773
|
-
anchorEl:
|
|
4774
|
-
align:
|
|
4775
|
-
open:
|
|
4776
|
-
size:
|
|
4777
|
-
width:
|
|
4837
|
+
onClose: XA.func,
|
|
4838
|
+
anchorEl: XA.object,
|
|
4839
|
+
align: XA.string,
|
|
4840
|
+
open: XA.bool.isRequired,
|
|
4841
|
+
size: XA.string,
|
|
4842
|
+
width: XA.number
|
|
4778
4843
|
};
|
|
4779
4844
|
ZA.defaultProps = {
|
|
4780
4845
|
open: !1,
|
|
@@ -4816,7 +4881,7 @@ const mn = u.header`
|
|
|
4816
4881
|
overflow: hidden;
|
|
4817
4882
|
white-space: nowrap;
|
|
4818
4883
|
width: 176px;
|
|
4819
|
-
`,
|
|
4884
|
+
`, ae = u.td`
|
|
4820
4885
|
color: #525252;
|
|
4821
4886
|
font-size: 14px;
|
|
4822
4887
|
font-family: IBM Plex Sans;
|
|
@@ -4867,7 +4932,7 @@ const mn = u.header`
|
|
|
4867
4932
|
`, No = u.div`
|
|
4868
4933
|
display: flex;
|
|
4869
4934
|
justify-content: center;
|
|
4870
|
-
${
|
|
4935
|
+
${dA.helperText01};
|
|
4871
4936
|
background-color: var(--cds-notification-background-warning);
|
|
4872
4937
|
border: 1px solid var(--cds-support-warning);
|
|
4873
4938
|
box-shadow: 0 2px 6px var(--cds-shadow);
|
|
@@ -4882,7 +4947,7 @@ const mn = u.header`
|
|
|
4882
4947
|
let Qo = class {
|
|
4883
4948
|
state = { ...Es };
|
|
4884
4949
|
constructor() {
|
|
4885
|
-
|
|
4950
|
+
qA(this);
|
|
4886
4951
|
}
|
|
4887
4952
|
init(A) {
|
|
4888
4953
|
A && iA.setActiveTab("scenarios");
|
|
@@ -4934,12 +4999,12 @@ const iA = new Qo(), Te = (e) => {
|
|
|
4934
4999
|
hasPrecedingPlusIcon: A,
|
|
4935
5000
|
children: t
|
|
4936
5001
|
}) => /* @__PURE__ */ i(Po, { $isGreen: e, $hasPrecedingPlusIcon: A, children: t }), ys = u.p`
|
|
4937
|
-
${
|
|
5002
|
+
${dA.body01};
|
|
4938
5003
|
`, En = N(
|
|
4939
5004
|
({ title: e, isOpen: A, onScenarioSaved: t, onClose: s, topContent: n }) => {
|
|
4940
5005
|
const [r, a] = y(""), [o, c] = y(null);
|
|
4941
5006
|
return /* @__PURE__ */ i(
|
|
4942
|
-
|
|
5007
|
+
ne,
|
|
4943
5008
|
{
|
|
4944
5009
|
"data-testid": "save-scenario-modal",
|
|
4945
5010
|
open: A,
|
|
@@ -4982,7 +5047,7 @@ const iA = new Qo(), Te = (e) => {
|
|
|
4982
5047
|
"."
|
|
4983
5048
|
] }),
|
|
4984
5049
|
/* @__PURE__ */ i(
|
|
4985
|
-
|
|
5050
|
+
JA,
|
|
4986
5051
|
{
|
|
4987
5052
|
id: "scenario-name",
|
|
4988
5053
|
labelText: "Scenario name",
|
|
@@ -5091,7 +5156,7 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5091
5156
|
text: "You cannot update scenarios in this diagram's project. Contact your project admin to give you the necessary permissions."
|
|
5092
5157
|
}, Lo = N(
|
|
5093
5158
|
({ title: e, scenarioName: A, isOpen: t, onScenarioUpdated: s, onClose: n }) => /* @__PURE__ */ i(
|
|
5094
|
-
|
|
5159
|
+
ne,
|
|
5095
5160
|
{
|
|
5096
5161
|
size: "sm",
|
|
5097
5162
|
"data-testid": "update-scenario-modal",
|
|
@@ -5148,30 +5213,30 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5148
5213
|
)
|
|
5149
5214
|
] });
|
|
5150
5215
|
}
|
|
5151
|
-
),
|
|
5216
|
+
), oe = "140px", Ho = ({
|
|
5152
5217
|
isReplayScenariosEnabled: e,
|
|
5153
5218
|
isCalledProcess: A
|
|
5154
5219
|
}) => [
|
|
5155
5220
|
{
|
|
5156
5221
|
name: "Process Instance Key",
|
|
5157
|
-
skeletonWidth:
|
|
5222
|
+
skeletonWidth: oe
|
|
5158
5223
|
},
|
|
5159
5224
|
...A ? [] : [
|
|
5160
5225
|
{
|
|
5161
5226
|
name: "Process Instances",
|
|
5162
|
-
skeletonWidth:
|
|
5227
|
+
skeletonWidth: oe
|
|
5163
5228
|
}
|
|
5164
5229
|
],
|
|
5165
5230
|
...A ? [
|
|
5166
5231
|
{
|
|
5167
5232
|
name: "Parent Process Instance Key",
|
|
5168
|
-
skeletonWidth:
|
|
5233
|
+
skeletonWidth: oe
|
|
5169
5234
|
}
|
|
5170
5235
|
] : [],
|
|
5171
5236
|
...e && !A ? [
|
|
5172
5237
|
{
|
|
5173
5238
|
name: "Scenario",
|
|
5174
|
-
skeletonWidth:
|
|
5239
|
+
skeletonWidth: oe
|
|
5175
5240
|
}
|
|
5176
5241
|
] : []
|
|
5177
5242
|
], Jo = ({
|
|
@@ -5181,13 +5246,13 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5181
5246
|
/* @__PURE__ */ i(To, {}),
|
|
5182
5247
|
/* @__PURE__ */ f(bn, { children: [
|
|
5183
5248
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ i("tr", { children: e.map(({ name: t }, s) => /* @__PURE__ */ i(vn, { children: t }, s)) }) }),
|
|
5184
|
-
/* @__PURE__ */ i("tbody", { children: /* @__PURE__ */ i("tr", { children: e.map(({ skeletonWidth: t }, s) => /* @__PURE__ */ i(
|
|
5249
|
+
/* @__PURE__ */ i("tbody", { children: /* @__PURE__ */ i("tr", { children: e.map(({ skeletonWidth: t }, s) => /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(vs, { width: t }) }, s)) }) })
|
|
5185
5250
|
] }),
|
|
5186
5251
|
A && /* @__PURE__ */ i(
|
|
5187
5252
|
vs,
|
|
5188
5253
|
{
|
|
5189
5254
|
"data-testid": "scenarios-skeleton",
|
|
5190
|
-
width:
|
|
5255
|
+
width: oe,
|
|
5191
5256
|
$shouldAlignRight: !0
|
|
5192
5257
|
}
|
|
5193
5258
|
)
|
|
@@ -5203,7 +5268,7 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5203
5268
|
${({ $hasIcon: e }) => e && EA`
|
|
5204
5269
|
padding-right: 15px;
|
|
5205
5270
|
`}
|
|
5206
|
-
`,
|
|
5271
|
+
`, jA = ({
|
|
5207
5272
|
title: e,
|
|
5208
5273
|
size: A = "md",
|
|
5209
5274
|
readOnly: t = !1,
|
|
@@ -5341,11 +5406,11 @@ const Bn = "#a8a8a8", rt = "#f4f4f4", jo = u.div`
|
|
|
5341
5406
|
hasJSONObjectValidation: l = !1,
|
|
5342
5407
|
dataTestId: d
|
|
5343
5408
|
}) => {
|
|
5344
|
-
const h = tA(
|
|
5409
|
+
const h = tA(AA).monacoLoaderConfig, [g, v] = y(null), B = e === "" && t !== void 0;
|
|
5345
5410
|
return F(() => {
|
|
5346
5411
|
let E = !1;
|
|
5347
|
-
return A && g === null && zo(h).then((
|
|
5348
|
-
E ||
|
|
5412
|
+
return A && g === null && zo(h).then((D) => {
|
|
5413
|
+
E || v(D);
|
|
5349
5414
|
}), () => {
|
|
5350
5415
|
E = !0;
|
|
5351
5416
|
};
|
|
@@ -5423,9 +5488,9 @@ const Bn = "#a8a8a8", rt = "#f4f4f4", jo = u.div`
|
|
|
5423
5488
|
}
|
|
5424
5489
|
`, Bs = "camundaModeler:exampleOutputJson";
|
|
5425
5490
|
function ic(e, A) {
|
|
5426
|
-
if (!
|
|
5491
|
+
if (!YA(A))
|
|
5427
5492
|
return !1;
|
|
5428
|
-
const t =
|
|
5493
|
+
const t = zA(e);
|
|
5429
5494
|
if (ke(t) === A)
|
|
5430
5495
|
return !1;
|
|
5431
5496
|
const s = rc(t), n = ac(s), r = n.properties.find(
|
|
@@ -5462,15 +5527,15 @@ const xe = N(
|
|
|
5462
5527
|
onSuccess: s,
|
|
5463
5528
|
tooltipTextForInvalid: n = "Please enter valid JSON to save"
|
|
5464
5529
|
}) => {
|
|
5465
|
-
const [r, a] = y("initial"), o = tA(
|
|
5530
|
+
const [r, a] = y("initial"), o = tA(AA)?.switchToImplementMode;
|
|
5466
5531
|
if (!w.canUserSaveExampleData || cn(t))
|
|
5467
5532
|
return null;
|
|
5468
5533
|
const c = ke(t), l = !e || A === "" || A === c, d = c !== void 0 ? "Update example data" : "Save example data";
|
|
5469
5534
|
let p;
|
|
5470
5535
|
!e || A === "" ? p = n : l && (p = "Please make changes to the example data to save");
|
|
5471
5536
|
const h = async () => {
|
|
5472
|
-
const g = ic(t, A),
|
|
5473
|
-
g &&
|
|
5537
|
+
const g = ic(t, A), v = await w.updateFile();
|
|
5538
|
+
g && v.success ? (a("success"), s()) : g && !v.success && v.reason === "conflict" ? a("conflict") : a("error");
|
|
5474
5539
|
};
|
|
5475
5540
|
return /* @__PURE__ */ f(H, { children: [
|
|
5476
5541
|
/* @__PURE__ */ f(ec, { children: [
|
|
@@ -5566,17 +5631,17 @@ const xe = N(
|
|
|
5566
5631
|
t
|
|
5567
5632
|
] }) : null });
|
|
5568
5633
|
}, In = (e, A) => {
|
|
5569
|
-
const { prefillData: t, prefillSource: s } =
|
|
5634
|
+
const { prefillData: t, prefillSource: s } = fA({
|
|
5570
5635
|
element: e,
|
|
5571
5636
|
useCache: !0,
|
|
5572
5637
|
processId: A
|
|
5573
|
-
}), [n, r] = y(t), [a, o] = y(s), [c, l] = y(!1), d =
|
|
5574
|
-
const { prefillData: g, prefillSource:
|
|
5638
|
+
}), [n, r] = y(t), [a, o] = y(s), [c, l] = y(!1), d = YA(n) || n === "", p = () => {
|
|
5639
|
+
const { prefillData: g, prefillSource: v } = fA({
|
|
5575
5640
|
element: e,
|
|
5576
5641
|
useCache: !1,
|
|
5577
5642
|
processId: A
|
|
5578
5643
|
});
|
|
5579
|
-
r(g), o(
|
|
5644
|
+
r(g), o(v), l(!1);
|
|
5580
5645
|
}, h = U(
|
|
5581
5646
|
(g) => {
|
|
5582
5647
|
g !== n && (r(g), l(!0));
|
|
@@ -5593,18 +5658,18 @@ const xe = N(
|
|
|
5593
5658
|
};
|
|
5594
5659
|
}, Mn = N(
|
|
5595
5660
|
({ isOpen: e, initialSignalName: A, onClose: t, isStartEvent: s, element: n }) => {
|
|
5596
|
-
const r = tA(
|
|
5661
|
+
const r = tA(AA), a = m.state.processInstance, [o, c] = y(A), {
|
|
5597
5662
|
editedValue: l,
|
|
5598
5663
|
isValid: d,
|
|
5599
5664
|
prefillSource: p,
|
|
5600
5665
|
isDirty: h,
|
|
5601
5666
|
setEditedValue: g,
|
|
5602
|
-
resetPrefill:
|
|
5667
|
+
resetPrefill: v
|
|
5603
5668
|
} = In(n, w.processId), B = cA(null);
|
|
5604
5669
|
return F(() => {
|
|
5605
5670
|
d && B.current?.hideMarkers();
|
|
5606
5671
|
}, [d]), /* @__PURE__ */ i(
|
|
5607
|
-
|
|
5672
|
+
jA,
|
|
5608
5673
|
{
|
|
5609
5674
|
title: "Broadcast signal",
|
|
5610
5675
|
isVisible: e,
|
|
@@ -5614,7 +5679,7 @@ const xe = N(
|
|
|
5614
5679
|
ghostButton: {
|
|
5615
5680
|
label: "Reset",
|
|
5616
5681
|
onClick: () => {
|
|
5617
|
-
c(A),
|
|
5682
|
+
c(A), v();
|
|
5618
5683
|
}
|
|
5619
5684
|
},
|
|
5620
5685
|
onClose: t,
|
|
@@ -5631,15 +5696,15 @@ const xe = N(
|
|
|
5631
5696
|
signalName: o,
|
|
5632
5697
|
variables: l,
|
|
5633
5698
|
elementId: n.id
|
|
5634
|
-
}),
|
|
5635
|
-
title:
|
|
5699
|
+
}), L.trackUserCompletesElement(n, l), s ? r.displayNotification?.success({
|
|
5700
|
+
title: he
|
|
5636
5701
|
}) : r.displayNotification?.info({
|
|
5637
5702
|
title: `Signal "${o}" broadcasted`
|
|
5638
|
-
}),
|
|
5703
|
+
}), pe({
|
|
5639
5704
|
processId: w.processId,
|
|
5640
5705
|
elementId: n.id,
|
|
5641
5706
|
variables: l ?? ""
|
|
5642
|
-
})) : r.displayNotification?.error(
|
|
5707
|
+
})) : r.displayNotification?.error(_);
|
|
5643
5708
|
},
|
|
5644
5709
|
modalBody: /* @__PURE__ */ i(Zs, { children: /* @__PURE__ */ f(J, { gap: 5, children: [
|
|
5645
5710
|
/* @__PURE__ */ f(J, { gap: 2, children: [
|
|
@@ -5651,7 +5716,7 @@ const xe = N(
|
|
|
5651
5716
|
editedValue: l,
|
|
5652
5717
|
element: n,
|
|
5653
5718
|
onSuccess: () => {
|
|
5654
|
-
|
|
5719
|
+
v();
|
|
5655
5720
|
}
|
|
5656
5721
|
}
|
|
5657
5722
|
),
|
|
@@ -5680,7 +5745,7 @@ const xe = N(
|
|
|
5680
5745
|
) })
|
|
5681
5746
|
] }),
|
|
5682
5747
|
/* @__PURE__ */ i(
|
|
5683
|
-
|
|
5748
|
+
JA,
|
|
5684
5749
|
{
|
|
5685
5750
|
id: "signal_name",
|
|
5686
5751
|
labelText: "Signal name",
|
|
@@ -5698,14 +5763,14 @@ const xe = N(
|
|
|
5698
5763
|
);
|
|
5699
5764
|
Mn.displayName = "BroadcastSignalModal";
|
|
5700
5765
|
function cc(e) {
|
|
5701
|
-
const { displayNotification: A, broadcastSignal: t } = tA(
|
|
5766
|
+
const { displayNotification: A, broadcastSignal: t } = tA(AA), [s, n] = y(!1), r = U(
|
|
5702
5767
|
async ({
|
|
5703
5768
|
processId: o,
|
|
5704
5769
|
signalCandidate: c,
|
|
5705
5770
|
isStartEvent: l = !1,
|
|
5706
5771
|
processInstanceKey: d
|
|
5707
5772
|
}) => {
|
|
5708
|
-
const { prefillData: p } =
|
|
5773
|
+
const { prefillData: p } = fA({
|
|
5709
5774
|
element: e,
|
|
5710
5775
|
useCache: !0,
|
|
5711
5776
|
processId: o
|
|
@@ -5720,11 +5785,11 @@ function cc(e) {
|
|
|
5720
5785
|
elementId: e.id,
|
|
5721
5786
|
signalName: c.signalName,
|
|
5722
5787
|
variables: p
|
|
5723
|
-
}),
|
|
5724
|
-
title:
|
|
5788
|
+
}), L.trackUserCompletesElement(e, p), l ? A?.success({
|
|
5789
|
+
title: he
|
|
5725
5790
|
}) : A?.info({
|
|
5726
5791
|
title: `Signal "${c.signalName}" broadcasted`
|
|
5727
|
-
})) : A?.error(
|
|
5792
|
+
})) : A?.error(_);
|
|
5728
5793
|
},
|
|
5729
5794
|
[t, A, e]
|
|
5730
5795
|
), a = U(() => {
|
|
@@ -5780,18 +5845,18 @@ const dc = u.div`
|
|
|
5780
5845
|
isStartEvent: r,
|
|
5781
5846
|
element: a
|
|
5782
5847
|
}) => {
|
|
5783
|
-
const o = tA(
|
|
5784
|
-
editedValue:
|
|
5848
|
+
const o = tA(AA), c = m.state.processInstance, [l, d] = y(A), [p, h] = y(t), [g, v] = y(""), [B, E] = y(""), {
|
|
5849
|
+
editedValue: D,
|
|
5785
5850
|
isValid: R,
|
|
5786
5851
|
prefillSource: I,
|
|
5787
|
-
isDirty:
|
|
5788
|
-
setEditedValue:
|
|
5852
|
+
isDirty: b,
|
|
5853
|
+
setEditedValue: V,
|
|
5789
5854
|
resetPrefill: P
|
|
5790
|
-
} = In(a, w.processId), { authType:
|
|
5855
|
+
} = In(a, w.processId), { authType: C } = w, Q = cA(null);
|
|
5791
5856
|
return F(() => {
|
|
5792
5857
|
R && Q.current?.hideMarkers();
|
|
5793
5858
|
}, [R]), /* @__PURE__ */ i(
|
|
5794
|
-
|
|
5859
|
+
jA,
|
|
5795
5860
|
{
|
|
5796
5861
|
title: "Publish message",
|
|
5797
5862
|
isVisible: e,
|
|
@@ -5801,7 +5866,7 @@ const dc = u.div`
|
|
|
5801
5866
|
ghostButton: {
|
|
5802
5867
|
label: "Reset",
|
|
5803
5868
|
onClick: () => {
|
|
5804
|
-
d(A), h(t ?? ""),
|
|
5869
|
+
d(A), h(t ?? ""), v(""), E(""), P();
|
|
5805
5870
|
}
|
|
5806
5871
|
},
|
|
5807
5872
|
onClose: s,
|
|
@@ -5811,16 +5876,16 @@ const dc = u.div`
|
|
|
5811
5876
|
elementId: n,
|
|
5812
5877
|
messageName: l,
|
|
5813
5878
|
correlationKey: p,
|
|
5814
|
-
variables:
|
|
5879
|
+
variables: D,
|
|
5815
5880
|
timeToLive: g,
|
|
5816
5881
|
messageId: B,
|
|
5817
5882
|
isStartEvent: r
|
|
5818
5883
|
});
|
|
5819
|
-
if (O?.status ===
|
|
5884
|
+
if (O?.status === NA) {
|
|
5820
5885
|
o.displayNotification?.error(
|
|
5821
5886
|
{
|
|
5822
|
-
title:
|
|
5823
|
-
subtitle: `Please contact your ${
|
|
5887
|
+
title: xA,
|
|
5888
|
+
subtitle: `Please contact your ${C === "sm" ? "admin" : "organization owner or admin"} to give you the necessary permissions to publish the message.`
|
|
5824
5889
|
},
|
|
5825
5890
|
bA
|
|
5826
5891
|
);
|
|
@@ -5831,19 +5896,19 @@ const dc = u.div`
|
|
|
5831
5896
|
elementId: n,
|
|
5832
5897
|
messageName: l,
|
|
5833
5898
|
messageCorrelationKey: p,
|
|
5834
|
-
variables:
|
|
5899
|
+
variables: D,
|
|
5835
5900
|
timeToLive: g,
|
|
5836
5901
|
messageId: B
|
|
5837
|
-
}),
|
|
5838
|
-
title:
|
|
5902
|
+
}), L.trackUserCompletesElement(a, D), r ? o.displayNotification?.success({
|
|
5903
|
+
title: he
|
|
5839
5904
|
}) : o.displayNotification?.info({
|
|
5840
5905
|
title: `Message "${l}" published`,
|
|
5841
5906
|
subtitle: `Correlation key: ${p}`
|
|
5842
|
-
}),
|
|
5907
|
+
}), pe({
|
|
5843
5908
|
processId: w.processId,
|
|
5844
5909
|
elementId: a.id,
|
|
5845
|
-
variables:
|
|
5846
|
-
})) : o.displayNotification?.error(
|
|
5910
|
+
variables: D ?? ""
|
|
5911
|
+
})) : o.displayNotification?.error(_);
|
|
5847
5912
|
},
|
|
5848
5913
|
modalBody: /* @__PURE__ */ i(Zs, { children: /* @__PURE__ */ f(J, { gap: 5, children: [
|
|
5849
5914
|
/* @__PURE__ */ f(J, { gap: 2, children: [
|
|
@@ -5852,7 +5917,7 @@ const dc = u.div`
|
|
|
5852
5917
|
xe,
|
|
5853
5918
|
{
|
|
5854
5919
|
isValid: R,
|
|
5855
|
-
editedValue:
|
|
5920
|
+
editedValue: D,
|
|
5856
5921
|
element: a,
|
|
5857
5922
|
onSuccess: () => {
|
|
5858
5923
|
P();
|
|
@@ -5863,18 +5928,18 @@ const dc = u.div`
|
|
|
5863
5928
|
Fe,
|
|
5864
5929
|
{
|
|
5865
5930
|
originalSource: I,
|
|
5866
|
-
isDescriptionVisible: !
|
|
5931
|
+
isDescriptionVisible: !b
|
|
5867
5932
|
}
|
|
5868
5933
|
),
|
|
5869
5934
|
/* @__PURE__ */ i(dc, { children: /* @__PURE__ */ i(
|
|
5870
5935
|
Ne,
|
|
5871
5936
|
{
|
|
5872
5937
|
height: "10vh",
|
|
5873
|
-
value:
|
|
5938
|
+
value: D,
|
|
5874
5939
|
isVisible: e,
|
|
5875
5940
|
placeholder: Et,
|
|
5876
5941
|
onChange: (O) => {
|
|
5877
|
-
|
|
5942
|
+
V(O ?? "");
|
|
5878
5943
|
},
|
|
5879
5944
|
onMount: (O) => {
|
|
5880
5945
|
Q.current = O;
|
|
@@ -5885,7 +5950,7 @@ const dc = u.div`
|
|
|
5885
5950
|
] }),
|
|
5886
5951
|
/* @__PURE__ */ f(J, { orientation: "horizontal", children: [
|
|
5887
5952
|
/* @__PURE__ */ i(
|
|
5888
|
-
|
|
5953
|
+
JA,
|
|
5889
5954
|
{
|
|
5890
5955
|
id: "message_name",
|
|
5891
5956
|
labelText: "Message name",
|
|
@@ -5897,7 +5962,7 @@ const dc = u.div`
|
|
|
5897
5962
|
}
|
|
5898
5963
|
),
|
|
5899
5964
|
/* @__PURE__ */ i(
|
|
5900
|
-
|
|
5965
|
+
JA,
|
|
5901
5966
|
{
|
|
5902
5967
|
id: "correlation_key",
|
|
5903
5968
|
labelText: "Message correlation key",
|
|
@@ -5910,7 +5975,7 @@ const dc = u.div`
|
|
|
5910
5975
|
)
|
|
5911
5976
|
] }),
|
|
5912
5977
|
/* @__PURE__ */ i(
|
|
5913
|
-
|
|
5978
|
+
JA,
|
|
5914
5979
|
{
|
|
5915
5980
|
id: "message_id",
|
|
5916
5981
|
labelText: "Message ID",
|
|
@@ -5922,14 +5987,14 @@ const dc = u.div`
|
|
|
5922
5987
|
}
|
|
5923
5988
|
),
|
|
5924
5989
|
/* @__PURE__ */ i(
|
|
5925
|
-
|
|
5990
|
+
JA,
|
|
5926
5991
|
{
|
|
5927
5992
|
id: "ttl",
|
|
5928
5993
|
labelText: "Message time-to-live (TTL)",
|
|
5929
5994
|
placeholder: "PT5M",
|
|
5930
5995
|
value: g,
|
|
5931
5996
|
onChange: (O) => {
|
|
5932
|
-
|
|
5997
|
+
v(O.target.value);
|
|
5933
5998
|
},
|
|
5934
5999
|
helperText: "Time duration defined as ISO 8601 durations format"
|
|
5935
6000
|
}
|
|
@@ -5944,14 +6009,14 @@ function uc({
|
|
|
5944
6009
|
element: e,
|
|
5945
6010
|
isSelfManagedEnv: A = !1
|
|
5946
6011
|
}) {
|
|
5947
|
-
const { displayNotification: t, publishMessage: s } = tA(
|
|
6012
|
+
const { displayNotification: t, publishMessage: s } = tA(AA), [n, r] = y(!1), a = U(
|
|
5948
6013
|
async ({
|
|
5949
6014
|
processId: c,
|
|
5950
6015
|
messageSubscription: l,
|
|
5951
6016
|
isStartEvent: d = !1,
|
|
5952
6017
|
processInstanceKey: p
|
|
5953
6018
|
}) => {
|
|
5954
|
-
const { prefillData: h } =
|
|
6019
|
+
const { prefillData: h } = fA({
|
|
5955
6020
|
element: e,
|
|
5956
6021
|
useCache: !0,
|
|
5957
6022
|
processId: c
|
|
@@ -5962,10 +6027,10 @@ function uc({
|
|
|
5962
6027
|
variables: h,
|
|
5963
6028
|
isStartEvent: d
|
|
5964
6029
|
});
|
|
5965
|
-
if (g?.status ===
|
|
6030
|
+
if (g?.status === NA) {
|
|
5966
6031
|
t?.error(
|
|
5967
6032
|
{
|
|
5968
|
-
title:
|
|
6033
|
+
title: xA,
|
|
5969
6034
|
subtitle: `Please contact your ${A ? "admin" : "organization owner or admin"} to give you the necessary permissions to publish the message.`
|
|
5970
6035
|
},
|
|
5971
6036
|
bA
|
|
@@ -5973,7 +6038,7 @@ function uc({
|
|
|
5973
6038
|
return;
|
|
5974
6039
|
}
|
|
5975
6040
|
if (!g?.success) {
|
|
5976
|
-
t?.error(
|
|
6041
|
+
t?.error(_);
|
|
5977
6042
|
return;
|
|
5978
6043
|
}
|
|
5979
6044
|
g?.success && p !== void 0 && oA(q(p), {
|
|
@@ -5982,8 +6047,8 @@ function uc({
|
|
|
5982
6047
|
messageName: l.messageName,
|
|
5983
6048
|
messageCorrelationKey: l.keyCandidate,
|
|
5984
6049
|
variables: h
|
|
5985
|
-
}),
|
|
5986
|
-
title:
|
|
6050
|
+
}), L.trackUserCompletesElement(e, h), d ? t?.success({
|
|
6051
|
+
title: he
|
|
5987
6052
|
}) : t?.info({
|
|
5988
6053
|
title: `Message "${l.messageName}" published`,
|
|
5989
6054
|
subtitle: `Correlation key: ${l.keyCandidate}`
|
|
@@ -6030,14 +6095,14 @@ function pc({
|
|
|
6030
6095
|
element: e,
|
|
6031
6096
|
isSelfManagedEnv: A = !1
|
|
6032
6097
|
}) {
|
|
6033
|
-
const [t, s] = y(!1), { displayNotification: n, startInstance: r } = tA(
|
|
6098
|
+
const [t, s] = y(!1), { displayNotification: n, startInstance: r } = tA(AA), [a, o] = y(!1), [c, l] = y(!1), d = U(() => {
|
|
6034
6099
|
o(!0);
|
|
6035
6100
|
}, []), p = U(() => {
|
|
6036
6101
|
l(!0);
|
|
6037
6102
|
}, []), h = U(
|
|
6038
6103
|
async ({
|
|
6039
6104
|
variables: g,
|
|
6040
|
-
processId:
|
|
6105
|
+
processId: v,
|
|
6041
6106
|
successNotificationSubtitle: B
|
|
6042
6107
|
}) => {
|
|
6043
6108
|
s(!0);
|
|
@@ -6045,10 +6110,10 @@ function pc({
|
|
|
6045
6110
|
elementId: e.id,
|
|
6046
6111
|
variables: g
|
|
6047
6112
|
});
|
|
6048
|
-
if (E?.status ===
|
|
6113
|
+
if (E?.status === NA) {
|
|
6049
6114
|
n?.error(
|
|
6050
6115
|
{
|
|
6051
|
-
title:
|
|
6116
|
+
title: xA,
|
|
6052
6117
|
subtitle: `Please contact your ${A ? "admin" : "organization owner or admin"} to give you the necessary permissions to start the instance.`
|
|
6053
6118
|
},
|
|
6054
6119
|
bA
|
|
@@ -6056,15 +6121,15 @@ function pc({
|
|
|
6056
6121
|
return;
|
|
6057
6122
|
}
|
|
6058
6123
|
if (!E?.success) {
|
|
6059
|
-
n?.error(
|
|
6124
|
+
n?.error(_), s(!1);
|
|
6060
6125
|
return;
|
|
6061
6126
|
}
|
|
6062
|
-
|
|
6063
|
-
processId:
|
|
6127
|
+
L.trackUserCompletesElement(e, g), pe({
|
|
6128
|
+
processId: v,
|
|
6064
6129
|
elementId: e.id,
|
|
6065
6130
|
variables: g
|
|
6066
6131
|
}), n?.success({
|
|
6067
|
-
title:
|
|
6132
|
+
title: he,
|
|
6068
6133
|
subtitle: B
|
|
6069
6134
|
});
|
|
6070
6135
|
},
|
|
@@ -6096,17 +6161,17 @@ const Dn = ({
|
|
|
6096
6161
|
onSubmit: p,
|
|
6097
6162
|
readOnly: h = !1,
|
|
6098
6163
|
hasJSONObjectValidation: g = !1,
|
|
6099
|
-
editorTopContent:
|
|
6164
|
+
editorTopContent: v = !1,
|
|
6100
6165
|
onChange: B,
|
|
6101
6166
|
clearOnReset: E = !0
|
|
6102
6167
|
}) => {
|
|
6103
|
-
const [
|
|
6168
|
+
const [D, R] = y(a), [I, b] = y(!0), V = cA(null);
|
|
6104
6169
|
return F(() => {
|
|
6105
|
-
t ? R(a) : (R(""),
|
|
6170
|
+
t ? R(a) : (R(""), b(!0));
|
|
6106
6171
|
}, [t, a]), F(() => {
|
|
6107
|
-
I &&
|
|
6172
|
+
I && V.current?.hideMarkers();
|
|
6108
6173
|
}, [I]), /* @__PURE__ */ i(
|
|
6109
|
-
|
|
6174
|
+
jA,
|
|
6110
6175
|
{
|
|
6111
6176
|
title: e,
|
|
6112
6177
|
readOnly: h,
|
|
@@ -6128,24 +6193,24 @@ const Dn = ({
|
|
|
6128
6193
|
} : void 0,
|
|
6129
6194
|
onClose: l,
|
|
6130
6195
|
onSubmit: () => {
|
|
6131
|
-
I ? p?.(
|
|
6196
|
+
I ? p?.(D === "" ? void 0 : D) : V.current?.showMarkers();
|
|
6132
6197
|
},
|
|
6133
6198
|
modalBody: /* @__PURE__ */ f(J, { gap: 5, children: [
|
|
6134
|
-
|
|
6199
|
+
v,
|
|
6135
6200
|
/* @__PURE__ */ i(
|
|
6136
6201
|
Ne,
|
|
6137
6202
|
{
|
|
6138
|
-
value:
|
|
6203
|
+
value: D,
|
|
6139
6204
|
isVisible: t,
|
|
6140
6205
|
placeholder: o,
|
|
6141
6206
|
onChange: (P) => {
|
|
6142
|
-
const
|
|
6143
|
-
R(
|
|
6207
|
+
const C = P ?? "";
|
|
6208
|
+
R(C), b(A(C)), B?.(C);
|
|
6144
6209
|
},
|
|
6145
6210
|
readOnly: h,
|
|
6146
|
-
onValidate:
|
|
6211
|
+
onValidate: b,
|
|
6147
6212
|
onMount: (P) => {
|
|
6148
|
-
|
|
6213
|
+
V.current = P;
|
|
6149
6214
|
},
|
|
6150
6215
|
hasJSONObjectValidation: g
|
|
6151
6216
|
}
|
|
@@ -6153,13 +6218,13 @@ const Dn = ({
|
|
|
6153
6218
|
] })
|
|
6154
6219
|
}
|
|
6155
6220
|
);
|
|
6156
|
-
}, Is = (e) =>
|
|
6221
|
+
}, Is = (e) => YA(e) || e === "", Qe = N(
|
|
6157
6222
|
({ title: e, isVisible: A, primaryButtonLabel: t, onClose: s, onSubmit: n, element: r }) => {
|
|
6158
|
-
const [a, o] = y(!0), { prefillData: c, prefillSource: l } =
|
|
6223
|
+
const [a, o] = y(!0), { prefillData: c, prefillSource: l } = fA({
|
|
6159
6224
|
element: r,
|
|
6160
6225
|
useCache: a,
|
|
6161
6226
|
processId: w.processId
|
|
6162
|
-
}), [d, p] = y(c), [h, g] = y(l),
|
|
6227
|
+
}), [d, p] = y(c), [h, g] = y(l), v = Is(d), [B, E] = y(!1);
|
|
6163
6228
|
return F(() => {
|
|
6164
6229
|
p(c), g(l);
|
|
6165
6230
|
}, [l, c]), /* @__PURE__ */ i(
|
|
@@ -6174,25 +6239,25 @@ const Dn = ({
|
|
|
6174
6239
|
clearOnReset: !1,
|
|
6175
6240
|
onReset: () => {
|
|
6176
6241
|
o(!1);
|
|
6177
|
-
const { prefillData:
|
|
6242
|
+
const { prefillData: D, prefillSource: R } = fA({
|
|
6178
6243
|
element: r,
|
|
6179
6244
|
useCache: !1,
|
|
6180
6245
|
processId: w.processId
|
|
6181
6246
|
});
|
|
6182
|
-
p(
|
|
6247
|
+
p(D), g(R), E(!1);
|
|
6183
6248
|
},
|
|
6184
6249
|
value: d,
|
|
6185
6250
|
primaryButtonLabel: t,
|
|
6186
6251
|
secondaryButtonLabel: "Cancel",
|
|
6187
|
-
isValidInput: (
|
|
6188
|
-
onChange: (
|
|
6189
|
-
p(
|
|
6252
|
+
isValidInput: (D) => Is(D),
|
|
6253
|
+
onChange: (D) => {
|
|
6254
|
+
p(D), E(!0);
|
|
6190
6255
|
},
|
|
6191
6256
|
editorTopContent: /* @__PURE__ */ f(H, { children: [
|
|
6192
6257
|
/* @__PURE__ */ i(
|
|
6193
6258
|
xe,
|
|
6194
6259
|
{
|
|
6195
|
-
isValid:
|
|
6260
|
+
isValid: v,
|
|
6196
6261
|
editedValue: d,
|
|
6197
6262
|
element: r,
|
|
6198
6263
|
onSuccess: () => {
|
|
@@ -6240,13 +6305,13 @@ function gc({
|
|
|
6240
6305
|
getFormBody: A,
|
|
6241
6306
|
formPrefillSettings: t = { sanitizePrefillData: !1 }
|
|
6242
6307
|
}) {
|
|
6243
|
-
const [s, n] = y(!1), [r, a] = y("none"), [o, c] = y(""), [l, d] = y(!1), [p, h] = y(!1), g = cA(null),
|
|
6244
|
-
(
|
|
6308
|
+
const [s, n] = y(!1), [r, a] = y("none"), [o, c] = y(""), [l, d] = y(!1), [p, h] = y(!1), g = cA(null), v = cA(), B = U(
|
|
6309
|
+
(C, Q) => {
|
|
6245
6310
|
const { cachedVariables: O, variablesFromExampleData: X } = Ms({
|
|
6246
6311
|
element: e,
|
|
6247
6312
|
processId: w.processId
|
|
6248
|
-
}),
|
|
6249
|
-
return
|
|
6313
|
+
}), eA = Q === "bpmn" && $(C, X), gA = Q === "cache" && $(C, O);
|
|
6314
|
+
return eA || gA;
|
|
6250
6315
|
},
|
|
6251
6316
|
[e]
|
|
6252
6317
|
);
|
|
@@ -6259,21 +6324,21 @@ function gc({
|
|
|
6259
6324
|
);
|
|
6260
6325
|
}, [o, r, B]);
|
|
6261
6326
|
const E = U(
|
|
6262
|
-
({ data:
|
|
6263
|
-
d(Object.keys(Q).length === 0), c(JSON.stringify(
|
|
6327
|
+
({ data: C, errors: Q }) => {
|
|
6328
|
+
d(Object.keys(Q).length === 0), c(JSON.stringify(C));
|
|
6264
6329
|
},
|
|
6265
6330
|
[]
|
|
6266
|
-
),
|
|
6267
|
-
let
|
|
6331
|
+
), D = U(async () => {
|
|
6332
|
+
let C = {};
|
|
6268
6333
|
if (t.sanitizePrefillData) {
|
|
6269
|
-
const { variables: X, success:
|
|
6334
|
+
const { variables: X, success: eA } = await M.fetchVariablesByUserTask(
|
|
6270
6335
|
t.userTaskJobId
|
|
6271
6336
|
);
|
|
6272
|
-
if (!
|
|
6337
|
+
if (!eA) {
|
|
6273
6338
|
console.error("Could not fetch user task variables"), n(!0);
|
|
6274
6339
|
return;
|
|
6275
6340
|
}
|
|
6276
|
-
|
|
6341
|
+
C = X.reduce((gA, { name: uA, value: z }) => (gA[uA] = JSON.parse(z), gA), {});
|
|
6277
6342
|
}
|
|
6278
6343
|
const { cachedVariables: Q, variablesFromExampleData: O } = Ms(
|
|
6279
6344
|
{
|
|
@@ -6284,71 +6349,71 @@ function gc({
|
|
|
6284
6349
|
return {
|
|
6285
6350
|
variablesFromExampleData: O,
|
|
6286
6351
|
cachedVariables: Q,
|
|
6287
|
-
processVariables:
|
|
6352
|
+
processVariables: C
|
|
6288
6353
|
};
|
|
6289
6354
|
}, [e, t]), R = U(async () => {
|
|
6290
|
-
let
|
|
6355
|
+
let C = {};
|
|
6291
6356
|
const Q = await A();
|
|
6292
6357
|
if (Q === void 0) {
|
|
6293
6358
|
n(!0);
|
|
6294
6359
|
return;
|
|
6295
6360
|
}
|
|
6296
6361
|
try {
|
|
6297
|
-
|
|
6362
|
+
C = JSON.parse(Q ?? "{}");
|
|
6298
6363
|
} catch {
|
|
6299
6364
|
n(!0);
|
|
6300
6365
|
return;
|
|
6301
6366
|
}
|
|
6302
|
-
return
|
|
6367
|
+
return C;
|
|
6303
6368
|
}, [A]), I = U(
|
|
6304
6369
|
async ({
|
|
6305
|
-
ignoreCachedVariables:
|
|
6370
|
+
ignoreCachedVariables: C = !1,
|
|
6306
6371
|
parsedForm: Q
|
|
6307
6372
|
} = {
|
|
6308
6373
|
ignoreCachedVariables: !1,
|
|
6309
6374
|
parsedForm: void 0
|
|
6310
6375
|
}) => {
|
|
6311
|
-
const O = await
|
|
6376
|
+
const O = await D();
|
|
6312
6377
|
if (!O)
|
|
6313
6378
|
return;
|
|
6314
|
-
const { variablesFromExampleData: X, cachedVariables:
|
|
6379
|
+
const { variablesFromExampleData: X, cachedVariables: eA, processVariables: gA } = O, uA = {
|
|
6315
6380
|
...X,
|
|
6316
|
-
...
|
|
6381
|
+
...C ? {} : eA,
|
|
6317
6382
|
...gA
|
|
6318
|
-
}, z = t.sanitizePrefillData ? fc(ir(Q),
|
|
6319
|
-
let
|
|
6320
|
-
return
|
|
6383
|
+
}, z = t.sanitizePrefillData ? fc(ir(Q), uA) : uA;
|
|
6384
|
+
let WA = "none";
|
|
6385
|
+
return $(z, X) ? WA = "bpmn" : !C && $(z, eA) && (WA = "cache"), a(WA), c(JSON.stringify(z)), z;
|
|
6321
6386
|
},
|
|
6322
|
-
[
|
|
6323
|
-
),
|
|
6387
|
+
[D, t]
|
|
6388
|
+
), b = U(
|
|
6324
6389
|
async ({
|
|
6325
|
-
ignoreCachedVariables:
|
|
6390
|
+
ignoreCachedVariables: C = !1
|
|
6326
6391
|
} = { ignoreCachedVariables: !1 }) => {
|
|
6327
6392
|
const Q = await R();
|
|
6328
6393
|
if (Q === void 0)
|
|
6329
6394
|
return;
|
|
6330
6395
|
const O = await I({
|
|
6331
6396
|
parsedForm: Q,
|
|
6332
|
-
ignoreCachedVariables:
|
|
6333
|
-
}), { warnings: X } = await
|
|
6397
|
+
ignoreCachedVariables: C
|
|
6398
|
+
}), { warnings: X } = await v.current?.importSchema(
|
|
6334
6399
|
Q,
|
|
6335
6400
|
O
|
|
6336
6401
|
) ?? { warnings: [] };
|
|
6337
6402
|
d(X.length === 0);
|
|
6338
6403
|
},
|
|
6339
6404
|
[R, I]
|
|
6340
|
-
),
|
|
6341
|
-
const
|
|
6342
|
-
if (
|
|
6405
|
+
), V = U(async () => {
|
|
6406
|
+
const C = new rr();
|
|
6407
|
+
if (v.current = C, g.current === null) {
|
|
6343
6408
|
n(!0);
|
|
6344
6409
|
return;
|
|
6345
6410
|
}
|
|
6346
|
-
await
|
|
6347
|
-
}, [E,
|
|
6348
|
-
|
|
6349
|
-
}, [
|
|
6411
|
+
await b(), C.attachTo(g.current), C.on("changed", E);
|
|
6412
|
+
}, [E, b]), P = U(async () => {
|
|
6413
|
+
b({ ignoreCachedVariables: !0 });
|
|
6414
|
+
}, [b]);
|
|
6350
6415
|
return {
|
|
6351
|
-
renderForm:
|
|
6416
|
+
renderForm: V,
|
|
6352
6417
|
resetForm: P,
|
|
6353
6418
|
isDirty: p,
|
|
6354
6419
|
isFormContentValid: l,
|
|
@@ -6358,7 +6423,7 @@ function gc({
|
|
|
6358
6423
|
hasFormLoadError: s,
|
|
6359
6424
|
setHasFormLoadError: n,
|
|
6360
6425
|
formContainerRef: g,
|
|
6361
|
-
taskForm:
|
|
6426
|
+
taskForm: v
|
|
6362
6427
|
};
|
|
6363
6428
|
}
|
|
6364
6429
|
function Cn(e, A = "") {
|
|
@@ -6407,26 +6472,26 @@ const kn = ({
|
|
|
6407
6472
|
renderForm: p,
|
|
6408
6473
|
resetForm: h,
|
|
6409
6474
|
isDirty: g,
|
|
6410
|
-
isFormContentValid:
|
|
6475
|
+
isFormContentValid: v,
|
|
6411
6476
|
originalPrefillSource: B,
|
|
6412
6477
|
setOriginalPrefillSource: E,
|
|
6413
|
-
formVariables:
|
|
6478
|
+
formVariables: D,
|
|
6414
6479
|
hasFormLoadError: R,
|
|
6415
6480
|
setHasFormLoadError: I,
|
|
6416
|
-
formContainerRef:
|
|
6417
|
-
taskForm:
|
|
6481
|
+
formContainerRef: b,
|
|
6482
|
+
taskForm: V
|
|
6418
6483
|
} = gc({
|
|
6419
6484
|
element: A,
|
|
6420
6485
|
formPrefillSettings: c,
|
|
6421
6486
|
getFormBody: n
|
|
6422
6487
|
});
|
|
6423
6488
|
F(() => {
|
|
6424
|
-
if (!e &&
|
|
6425
|
-
|
|
6489
|
+
if (!e && V.current) {
|
|
6490
|
+
V.current.detach(), V.current = void 0;
|
|
6426
6491
|
return;
|
|
6427
6492
|
}
|
|
6428
|
-
!e || !
|
|
6429
|
-
}, [p, e,
|
|
6493
|
+
!e || !b.current || V.current || p();
|
|
6494
|
+
}, [p, e, b, V]);
|
|
6430
6495
|
async function P(Q) {
|
|
6431
6496
|
if (Q.size === 0)
|
|
6432
6497
|
return /* @__PURE__ */ new Map();
|
|
@@ -6435,28 +6500,28 @@ const kn = ({
|
|
|
6435
6500
|
});
|
|
6436
6501
|
if (!X)
|
|
6437
6502
|
return console.error("Failed to upload documents"), /* @__PURE__ */ new Map();
|
|
6438
|
-
const
|
|
6503
|
+
const eA = /* @__PURE__ */ new Map();
|
|
6439
6504
|
return O.forEach((gA) => {
|
|
6440
|
-
const
|
|
6441
|
-
if (typeof
|
|
6505
|
+
const uA = gA.metadata.customProperties?.[An];
|
|
6506
|
+
if (typeof uA != "string" || uA.length === 0)
|
|
6442
6507
|
return;
|
|
6443
|
-
const z =
|
|
6444
|
-
Array.isArray(z) ?
|
|
6445
|
-
}),
|
|
6508
|
+
const z = eA.get(uA);
|
|
6509
|
+
Array.isArray(z) ? eA.set(uA, [...z, gA]) : eA.set(uA, [gA]);
|
|
6510
|
+
}), eA;
|
|
6446
6511
|
}
|
|
6447
|
-
async function
|
|
6512
|
+
async function C() {
|
|
6448
6513
|
d(!0);
|
|
6449
6514
|
try {
|
|
6450
|
-
const { data: Q, errors: O, files: X } =
|
|
6515
|
+
const { data: Q, errors: O, files: X } = V.current?.submit() ?? {
|
|
6451
6516
|
data: {},
|
|
6452
6517
|
errors: {},
|
|
6453
6518
|
files: /* @__PURE__ */ new Map()
|
|
6454
|
-
},
|
|
6519
|
+
}, eA = X.size === 0 ? Q : wc({
|
|
6455
6520
|
data: Q,
|
|
6456
6521
|
fileMetadata: await P(X),
|
|
6457
6522
|
pathsToInject: mc(Q)
|
|
6458
6523
|
});
|
|
6459
|
-
Object.keys(O).length === 0 && s(
|
|
6524
|
+
Object.keys(O).length === 0 && s(eA);
|
|
6460
6525
|
} catch (Q) {
|
|
6461
6526
|
console.error(Q);
|
|
6462
6527
|
} finally {
|
|
@@ -6464,20 +6529,20 @@ const kn = ({
|
|
|
6464
6529
|
}
|
|
6465
6530
|
}
|
|
6466
6531
|
return /* @__PURE__ */ i(
|
|
6467
|
-
|
|
6532
|
+
jA,
|
|
6468
6533
|
{
|
|
6469
6534
|
title: a,
|
|
6470
6535
|
size: "sm",
|
|
6471
6536
|
isVisible: e,
|
|
6472
6537
|
dataTestId: o,
|
|
6473
6538
|
primaryButtonLabel: r,
|
|
6474
|
-
isPrimaryButtonDisabled: !
|
|
6539
|
+
isPrimaryButtonDisabled: !v || l,
|
|
6475
6540
|
secondaryButton: {
|
|
6476
6541
|
label: "Close",
|
|
6477
6542
|
onClick: t
|
|
6478
6543
|
},
|
|
6479
6544
|
onClose: t,
|
|
6480
|
-
onSubmit:
|
|
6545
|
+
onSubmit: C,
|
|
6481
6546
|
ghostButton: {
|
|
6482
6547
|
label: "Reset",
|
|
6483
6548
|
onClick: h
|
|
@@ -6487,8 +6552,8 @@ const kn = ({
|
|
|
6487
6552
|
/* @__PURE__ */ i(
|
|
6488
6553
|
xe,
|
|
6489
6554
|
{
|
|
6490
|
-
isValid:
|
|
6491
|
-
editedValue:
|
|
6555
|
+
isValid: v,
|
|
6556
|
+
editedValue: D,
|
|
6492
6557
|
element: A,
|
|
6493
6558
|
onSuccess: () => {
|
|
6494
6559
|
E("bpmn");
|
|
@@ -6519,7 +6584,7 @@ const kn = ({
|
|
|
6519
6584
|
}
|
|
6520
6585
|
)
|
|
6521
6586
|
] }),
|
|
6522
|
-
/* @__PURE__ */ i("div", { ref:
|
|
6587
|
+
/* @__PURE__ */ i("div", { ref: b })
|
|
6523
6588
|
] })
|
|
6524
6589
|
}
|
|
6525
6590
|
);
|
|
@@ -6528,7 +6593,7 @@ const kn = ({
|
|
|
6528
6593
|
linkedStartForm: A,
|
|
6529
6594
|
definitions: t
|
|
6530
6595
|
}) => {
|
|
6531
|
-
const s =
|
|
6596
|
+
const s = GA(
|
|
6532
6597
|
e,
|
|
6533
6598
|
"zeebe:FormDefinition"
|
|
6534
6599
|
);
|
|
@@ -6601,7 +6666,7 @@ const kn = ({
|
|
|
6601
6666
|
] });
|
|
6602
6667
|
});
|
|
6603
6668
|
Ft.displayName = "StartInstance";
|
|
6604
|
-
function
|
|
6669
|
+
function kA({
|
|
6605
6670
|
prefix: e = "",
|
|
6606
6671
|
prefillSource: A
|
|
6607
6672
|
}) {
|
|
@@ -6643,7 +6708,7 @@ const Tn = N(
|
|
|
6643
6708
|
);
|
|
6644
6709
|
if (s === void 0)
|
|
6645
6710
|
return null;
|
|
6646
|
-
const n =
|
|
6711
|
+
const n = le.startMessageSubscriptionCandidates?.find(
|
|
6647
6712
|
({ elementId: a }) => a === t
|
|
6648
6713
|
);
|
|
6649
6714
|
if (n)
|
|
@@ -6668,7 +6733,7 @@ const Tn = N(
|
|
|
6668
6733
|
)
|
|
6669
6734
|
}
|
|
6670
6735
|
);
|
|
6671
|
-
const r =
|
|
6736
|
+
const r = de.startSignalCandidates?.find(
|
|
6672
6737
|
({ elementId: a }) => a === t
|
|
6673
6738
|
);
|
|
6674
6739
|
return r ? /* @__PURE__ */ i(
|
|
@@ -6697,7 +6762,7 @@ const Tn = N(
|
|
|
6697
6762
|
startInstanceWithForm: c,
|
|
6698
6763
|
hasForm: l
|
|
6699
6764
|
}) => {
|
|
6700
|
-
const { prefillData: d, prefillSource: p } =
|
|
6765
|
+
const { prefillData: d, prefillSource: p } = fA({
|
|
6701
6766
|
element: s,
|
|
6702
6767
|
useCache: !0,
|
|
6703
6768
|
processId: e
|
|
@@ -6710,7 +6775,7 @@ const Tn = N(
|
|
|
6710
6775
|
l ? c() : a({
|
|
6711
6776
|
processId: e,
|
|
6712
6777
|
variables: d || "{}",
|
|
6713
|
-
successNotificationSubtitle:
|
|
6778
|
+
successNotificationSubtitle: kA({ prefillSource: p }) || void 0
|
|
6714
6779
|
});
|
|
6715
6780
|
},
|
|
6716
6781
|
onRestartWithVariablesClick: o
|
|
@@ -6721,25 +6786,25 @@ const Tn = N(
|
|
|
6721
6786
|
);
|
|
6722
6787
|
Tn.displayName = "RestartInstance";
|
|
6723
6788
|
const Nn = N(() => {
|
|
6724
|
-
const e = tA(
|
|
6789
|
+
const e = tA(AA), { featureFlags: A, displayNotification: t, reInitializePlay: s } = e, { isReplayScenariosEnabled: n } = A, { instanceKey: r, status: a, processInstance: o, scenarioName: c } = m.state, { isCalledProcess: l } = m, { scenarioRuns: d } = x.state, { sanitizedOperateBaseUrl: p, hasLinkToOperate: h, authType: g, projectId: v } = w, B = o?.bpmnProcessId;
|
|
6725
6790
|
F(() => {
|
|
6726
6791
|
B !== void 0 && x.loadScenarios(B);
|
|
6727
|
-
}, [r, B,
|
|
6792
|
+
}, [r, B, v]), F(() => {
|
|
6728
6793
|
a === "auth-error" && t?.error(
|
|
6729
6794
|
{
|
|
6730
|
-
title:
|
|
6795
|
+
title: xA,
|
|
6731
6796
|
subtitle: `Please contact your ${g === "sm" ? "admin" : "organization owner or admin"} to give you the necessary permissions to view this instance.`
|
|
6732
6797
|
},
|
|
6733
6798
|
{ ...bA, shouldPersist: !0 }
|
|
6734
6799
|
);
|
|
6735
6800
|
}, [a, g, t]);
|
|
6736
6801
|
const E = U(
|
|
6737
|
-
async (
|
|
6802
|
+
async (C) => {
|
|
6738
6803
|
const Q = await M.fetchInstanceDetails(
|
|
6739
|
-
|
|
6804
|
+
C
|
|
6740
6805
|
);
|
|
6741
6806
|
if (!Q.success) {
|
|
6742
|
-
t?.error(
|
|
6807
|
+
t?.error(_);
|
|
6743
6808
|
return;
|
|
6744
6809
|
}
|
|
6745
6810
|
const {
|
|
@@ -6749,36 +6814,36 @@ const Nn = N(() => {
|
|
|
6749
6814
|
s?.({
|
|
6750
6815
|
processId: X,
|
|
6751
6816
|
processDefinitionKey: O,
|
|
6752
|
-
processInstanceKey:
|
|
6817
|
+
processInstanceKey: C
|
|
6753
6818
|
});
|
|
6754
6819
|
},
|
|
6755
6820
|
[t, s]
|
|
6756
6821
|
);
|
|
6757
6822
|
if (!r)
|
|
6758
6823
|
return null;
|
|
6759
|
-
const
|
|
6824
|
+
const D = Ho({
|
|
6760
6825
|
isReplayScenariosEnabled: n,
|
|
6761
6826
|
isCalledProcess: l
|
|
6762
6827
|
});
|
|
6763
|
-
if (!o || !
|
|
6828
|
+
if (!o || !v || !B || !m.isInitialLoadComplete)
|
|
6764
6829
|
return /* @__PURE__ */ i(
|
|
6765
6830
|
Jo,
|
|
6766
6831
|
{
|
|
6767
|
-
headerColumns:
|
|
6832
|
+
headerColumns: D,
|
|
6768
6833
|
isReplayScenariosEnabled: n
|
|
6769
6834
|
}
|
|
6770
6835
|
);
|
|
6771
|
-
const R = o?.parentKey, I = o.incident ? "INCIDENT" : o.state,
|
|
6772
|
-
const Q = d[
|
|
6836
|
+
const R = o?.parentKey, I = o.incident ? "INCIDENT" : o.state, b = `${p}/processes/${r}`, V = c !== Ct, P = Object.keys(d).find((C) => {
|
|
6837
|
+
const Q = d[C];
|
|
6773
6838
|
return Q !== void 0 && Q.instanceKey === r && Q.status === "Failed";
|
|
6774
6839
|
});
|
|
6775
6840
|
return /* @__PURE__ */ f(mn, { "data-testid": "instance-header", children: [
|
|
6776
6841
|
/* @__PURE__ */ f(wn, { children: [
|
|
6777
6842
|
/* @__PURE__ */ i(kt, { state: I, size: 24 }),
|
|
6778
6843
|
/* @__PURE__ */ f(bn, { children: [
|
|
6779
|
-
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ i("tr", { children:
|
|
6844
|
+
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ i("tr", { children: D.map(({ name: C }) => /* @__PURE__ */ i(vn, { children: C }, C)) }) }),
|
|
6780
6845
|
/* @__PURE__ */ i("tbody", { children: /* @__PURE__ */ f("tr", { children: [
|
|
6781
|
-
/* @__PURE__ */ i(
|
|
6846
|
+
/* @__PURE__ */ i(ae, { style: { overflow: "visible" }, children: h ? /* @__PURE__ */ i(
|
|
6782
6847
|
Se,
|
|
6783
6848
|
{
|
|
6784
6849
|
label: "View process instance in Operate",
|
|
@@ -6787,19 +6852,19 @@ const Nn = N(() => {
|
|
|
6787
6852
|
children: /* @__PURE__ */ i(
|
|
6788
6853
|
aA,
|
|
6789
6854
|
{
|
|
6790
|
-
href:
|
|
6855
|
+
href: b,
|
|
6791
6856
|
target: "_blank",
|
|
6792
6857
|
rel: "noopener noreferrer",
|
|
6793
6858
|
renderIcon: () => /* @__PURE__ */ i(Ls, {}),
|
|
6794
6859
|
onClick: () => {
|
|
6795
|
-
|
|
6860
|
+
L.openOperate(b);
|
|
6796
6861
|
},
|
|
6797
6862
|
children: r
|
|
6798
6863
|
}
|
|
6799
6864
|
)
|
|
6800
6865
|
}
|
|
6801
6866
|
) : r }),
|
|
6802
|
-
!l && /* @__PURE__ */ i(
|
|
6867
|
+
!l && /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
|
|
6803
6868
|
Je,
|
|
6804
6869
|
{
|
|
6805
6870
|
variant: "text",
|
|
@@ -6809,7 +6874,7 @@ const Nn = N(() => {
|
|
|
6809
6874
|
children: "View all"
|
|
6810
6875
|
}
|
|
6811
6876
|
) }),
|
|
6812
|
-
l && /* @__PURE__ */ i(
|
|
6877
|
+
l && /* @__PURE__ */ i(ae, { children: R ? /* @__PURE__ */ i(
|
|
6813
6878
|
Je,
|
|
6814
6879
|
{
|
|
6815
6880
|
"data-testid": "view-parent-process",
|
|
@@ -6822,7 +6887,7 @@ const Nn = N(() => {
|
|
|
6822
6887
|
children: o.parentKey
|
|
6823
6888
|
}
|
|
6824
6889
|
) : "None" }),
|
|
6825
|
-
n && !l && /* @__PURE__ */ i(
|
|
6890
|
+
n && !l && /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ f(So, { children: [
|
|
6826
6891
|
/* @__PURE__ */ i(Do, { title: P ?? c, children: P ?? c }),
|
|
6827
6892
|
/* @__PURE__ */ i(
|
|
6828
6893
|
Je,
|
|
@@ -6838,7 +6903,7 @@ const Nn = N(() => {
|
|
|
6838
6903
|
] }) })
|
|
6839
6904
|
] }),
|
|
6840
6905
|
A.isReplayScenariosEnabled && !l && /* @__PURE__ */ f(Co, { children: [
|
|
6841
|
-
m.state.processInstance?.state === "COMPLETED" && !
|
|
6906
|
+
m.state.processInstance?.state === "COMPLETED" && !V && /* @__PURE__ */ f(ko, { "data-testid": "scenario-coverage", children: [
|
|
6842
6907
|
/* @__PURE__ */ i(
|
|
6843
6908
|
it,
|
|
6844
6909
|
{
|
|
@@ -6877,14 +6942,14 @@ const Nn = N(() => {
|
|
|
6877
6942
|
processId: B,
|
|
6878
6943
|
name: P,
|
|
6879
6944
|
processInstanceId: r,
|
|
6880
|
-
actions:
|
|
6945
|
+
actions: ce(
|
|
6881
6946
|
q(r)
|
|
6882
6947
|
),
|
|
6883
6948
|
coveredFlowNodes: W.elementInstancesWithType,
|
|
6884
|
-
coveredSequenceFlows:
|
|
6949
|
+
coveredSequenceFlows: te.state.sequenceFlows
|
|
6885
6950
|
});
|
|
6886
6951
|
} catch {
|
|
6887
|
-
t?.error(
|
|
6952
|
+
t?.error(_);
|
|
6888
6953
|
return;
|
|
6889
6954
|
}
|
|
6890
6955
|
m.setScenarioName(P), t?.success(
|
|
@@ -6902,31 +6967,31 @@ const Nn = N(() => {
|
|
|
6902
6967
|
}
|
|
6903
6968
|
);
|
|
6904
6969
|
},
|
|
6905
|
-
isScenarioUpdated:
|
|
6970
|
+
isScenarioUpdated: V
|
|
6906
6971
|
}
|
|
6907
6972
|
) : /* @__PURE__ */ i(
|
|
6908
6973
|
Oo,
|
|
6909
6974
|
{
|
|
6910
|
-
onScenarioSaved: async (
|
|
6975
|
+
onScenarioSaved: async (C) => {
|
|
6911
6976
|
try {
|
|
6912
6977
|
await x.addScenario({
|
|
6913
6978
|
processId: B,
|
|
6914
|
-
name:
|
|
6979
|
+
name: C,
|
|
6915
6980
|
processInstanceId: r,
|
|
6916
|
-
actions:
|
|
6981
|
+
actions: ce(
|
|
6917
6982
|
q(r)
|
|
6918
6983
|
),
|
|
6919
6984
|
coveredFlowNodes: W.elementInstancesWithType,
|
|
6920
|
-
coveredSequenceFlows:
|
|
6985
|
+
coveredSequenceFlows: te.state.sequenceFlows
|
|
6921
6986
|
});
|
|
6922
6987
|
} catch {
|
|
6923
|
-
t?.error(
|
|
6988
|
+
t?.error(_);
|
|
6924
6989
|
return;
|
|
6925
6990
|
}
|
|
6926
|
-
m.setScenarioName(
|
|
6991
|
+
m.setScenarioName(C), t?.success(
|
|
6927
6992
|
{
|
|
6928
6993
|
title: "Scenario saved",
|
|
6929
|
-
subtitle: `${
|
|
6994
|
+
subtitle: `${C} was successfully saved.`
|
|
6930
6995
|
},
|
|
6931
6996
|
{
|
|
6932
6997
|
action: {
|
|
@@ -6936,12 +7001,12 @@ const Nn = N(() => {
|
|
|
6936
7001
|
}
|
|
6937
7002
|
}
|
|
6938
7003
|
}
|
|
6939
|
-
),
|
|
7004
|
+
), L.saveScenario({
|
|
6940
7005
|
newTotalCoverage: `${x.newTotalCoverage.toFixed(0)}%`,
|
|
6941
7006
|
coverageIncrease: `${x.coverageIncrease.toFixed(0)}%`
|
|
6942
7007
|
});
|
|
6943
7008
|
},
|
|
6944
|
-
isScenarioSaved:
|
|
7009
|
+
isScenarioSaved: V
|
|
6945
7010
|
}
|
|
6946
7011
|
)
|
|
6947
7012
|
] }),
|
|
@@ -7106,7 +7171,7 @@ function Ke(e, A = " ") {
|
|
|
7106
7171
|
return e;
|
|
7107
7172
|
}
|
|
7108
7173
|
}
|
|
7109
|
-
const Jc = u(
|
|
7174
|
+
const Jc = u(ne)`
|
|
7110
7175
|
h3 {
|
|
7111
7176
|
font-weight: 400;
|
|
7112
7177
|
}
|
|
@@ -7146,7 +7211,7 @@ const Jc = u(se)`
|
|
|
7146
7211
|
preventCloseOnClickOutside: !0,
|
|
7147
7212
|
children: /* @__PURE__ */ f(Uc, { children: [
|
|
7148
7213
|
/* @__PURE__ */ i(
|
|
7149
|
-
|
|
7214
|
+
JA,
|
|
7150
7215
|
{
|
|
7151
7216
|
id: "variable-name",
|
|
7152
7217
|
size: "md",
|
|
@@ -7156,8 +7221,8 @@ const Jc = u(se)`
|
|
|
7156
7221
|
invalidText: n,
|
|
7157
7222
|
value: c,
|
|
7158
7223
|
onBlur: (g) => {
|
|
7159
|
-
const
|
|
7160
|
-
|
|
7224
|
+
const v = s(g.target.value);
|
|
7225
|
+
v.isValid ? r(null) : r(v.error);
|
|
7161
7226
|
},
|
|
7162
7227
|
onChange: (g) => {
|
|
7163
7228
|
l(g.target.value);
|
|
@@ -7173,8 +7238,8 @@ const Jc = u(se)`
|
|
|
7173
7238
|
isVisible: e,
|
|
7174
7239
|
height: "10vh",
|
|
7175
7240
|
onChange: (g) => {
|
|
7176
|
-
const
|
|
7177
|
-
p(
|
|
7241
|
+
const v = g ?? "";
|
|
7242
|
+
p(v), o(ee(v));
|
|
7178
7243
|
},
|
|
7179
7244
|
onValidate: o,
|
|
7180
7245
|
onMount: (g) => {
|
|
@@ -7200,7 +7265,7 @@ const Jc = u(se)`
|
|
|
7200
7265
|
/* @__PURE__ */ i(Ss, { width: "276px" }),
|
|
7201
7266
|
/* @__PURE__ */ i(Ss, { width: "384px" })
|
|
7202
7267
|
] }), zc = () => /* @__PURE__ */ i(Kc, { "data-testid": "variables-skeleton", children: [...Array(20)].map((e, A) => /* @__PURE__ */ i(qc, {}, A)) }), xn = N(({ selectedScope: e, isActive: A }) => {
|
|
7203
|
-
const t = tA(
|
|
7268
|
+
const t = tA(AA), { authType: s } = w, n = t.displayNotification, [r, a] = y(null), [o, c] = y(""), [l, d] = y(!1), [p, h] = y(!1), [g, v] = y(!1), B = hA.state.isUpdatingVariable, { instanceKey: E } = m.state, D = hA.state.variables.filter(
|
|
7204
7269
|
(I) => I.scopeKey === e
|
|
7205
7270
|
);
|
|
7206
7271
|
F(() => {
|
|
@@ -7212,40 +7277,40 @@ const Jc = u(se)`
|
|
|
7212
7277
|
}, [e]);
|
|
7213
7278
|
const R = U(
|
|
7214
7279
|
async (I) => {
|
|
7215
|
-
const
|
|
7280
|
+
const b = await hA.setVariables({
|
|
7216
7281
|
instanceKey: E,
|
|
7217
7282
|
scope: e,
|
|
7218
7283
|
variablesString: I
|
|
7219
7284
|
});
|
|
7220
|
-
if (
|
|
7285
|
+
if (b.status === NA) {
|
|
7221
7286
|
n?.error(
|
|
7222
7287
|
{
|
|
7223
|
-
title:
|
|
7288
|
+
title: xA,
|
|
7224
7289
|
subtitle: `Please contact your ${s === "sm" ? "admin" : "organization owner or admin"} to give you the necessary permissions to set variables.`
|
|
7225
7290
|
},
|
|
7226
7291
|
bA
|
|
7227
7292
|
);
|
|
7228
7293
|
return;
|
|
7229
7294
|
}
|
|
7230
|
-
|
|
7295
|
+
b.success && E !== void 0 && oA(q(E), {
|
|
7231
7296
|
action: "setVariables",
|
|
7232
7297
|
variables: I
|
|
7233
|
-
}),
|
|
7298
|
+
}), b.success || n?.error(_);
|
|
7234
7299
|
},
|
|
7235
7300
|
[s, E, n, e]
|
|
7236
7301
|
);
|
|
7237
7302
|
return /* @__PURE__ */ i(Bc, { children: /* @__PURE__ */ f(ji, { children: [
|
|
7238
7303
|
/* @__PURE__ */ i(Gc, { "aria-label": "Variables", children: /* @__PURE__ */ i(Wi, { children: "Variables" }) }),
|
|
7239
|
-
/* @__PURE__ */ i(Vc, { children: /* @__PURE__ */ i(Lc, { children:
|
|
7240
|
-
/* @__PURE__ */ f(Ic, { $isEmpty:
|
|
7241
|
-
|
|
7242
|
-
|
|
7304
|
+
/* @__PURE__ */ i(Vc, { children: /* @__PURE__ */ i(Lc, { children: hA.isInitialLoadComplete ? /* @__PURE__ */ f(H, { children: [
|
|
7305
|
+
/* @__PURE__ */ f(Ic, { $isEmpty: D.length === 0, children: [
|
|
7306
|
+
D.length === 0 && /* @__PURE__ */ i(Mc, { children: Z.isRootNodeSelected ? "This process instance has no variables" : "The flow node has no variables" }),
|
|
7307
|
+
D.length > 0 && /* @__PURE__ */ f(Sc, { children: [
|
|
7243
7308
|
/* @__PURE__ */ i(Dc, { children: /* @__PURE__ */ f("tr", { children: [
|
|
7244
7309
|
/* @__PURE__ */ i(kc, { children: "Name" }),
|
|
7245
7310
|
/* @__PURE__ */ i(Tc, { children: "Value" }),
|
|
7246
7311
|
/* @__PURE__ */ i(Nc, {})
|
|
7247
7312
|
] }) }),
|
|
7248
|
-
/* @__PURE__ */ i(Cc, { children:
|
|
7313
|
+
/* @__PURE__ */ i(Cc, { children: D.map((I) => /* @__PURE__ */ f("tr", { children: [
|
|
7249
7314
|
/* @__PURE__ */ i(Qc, { title: I.name, children: I.name }),
|
|
7250
7315
|
/* @__PURE__ */ i(Rc, { children: /* @__PURE__ */ i(js, { children: /* @__PURE__ */ i(
|
|
7251
7316
|
Oc,
|
|
@@ -7270,10 +7335,10 @@ const Jc = u(se)`
|
|
|
7270
7335
|
value: Ke(I.value)
|
|
7271
7336
|
}), I.truncated) {
|
|
7272
7337
|
d(!0);
|
|
7273
|
-
const
|
|
7338
|
+
const b = await hA.fetchVariable(
|
|
7274
7339
|
I.key
|
|
7275
7340
|
);
|
|
7276
|
-
if (d(!1),
|
|
7341
|
+
if (d(!1), b?.value === void 0) {
|
|
7277
7342
|
t.displayNotification?.error({
|
|
7278
7343
|
title: "Variable could not be fetched"
|
|
7279
7344
|
}), a(null);
|
|
@@ -7282,7 +7347,7 @@ const Jc = u(se)`
|
|
|
7282
7347
|
a({
|
|
7283
7348
|
...I,
|
|
7284
7349
|
value: Ke(
|
|
7285
|
-
|
|
7350
|
+
b.value
|
|
7286
7351
|
)
|
|
7287
7352
|
});
|
|
7288
7353
|
}
|
|
@@ -7302,7 +7367,7 @@ const Jc = u(se)`
|
|
|
7302
7367
|
j,
|
|
7303
7368
|
{
|
|
7304
7369
|
onClick: () => {
|
|
7305
|
-
|
|
7370
|
+
v(!0);
|
|
7306
7371
|
},
|
|
7307
7372
|
renderIcon: Hs,
|
|
7308
7373
|
iconDescription: "Add variable",
|
|
@@ -7325,15 +7390,15 @@ const Jc = u(se)`
|
|
|
7325
7390
|
if (h(!1), r === null || I === void 0)
|
|
7326
7391
|
return;
|
|
7327
7392
|
d(!0);
|
|
7328
|
-
const
|
|
7393
|
+
const b = JSON.stringify({
|
|
7329
7394
|
[r.name]: JSON.parse(I)
|
|
7330
7395
|
});
|
|
7331
|
-
await R(
|
|
7396
|
+
await R(b), d(!1), a(null);
|
|
7332
7397
|
},
|
|
7333
7398
|
onClose: () => {
|
|
7334
7399
|
h(!1), a(null);
|
|
7335
7400
|
},
|
|
7336
|
-
isValidInput:
|
|
7401
|
+
isValidInput: ee
|
|
7337
7402
|
}
|
|
7338
7403
|
),
|
|
7339
7404
|
/* @__PURE__ */ i(
|
|
@@ -7346,23 +7411,23 @@ const Jc = u(se)`
|
|
|
7346
7411
|
} : I.includes('"') || I.includes(" ") ? {
|
|
7347
7412
|
isValid: !1,
|
|
7348
7413
|
error: "Variable contains invalid characters. Use only alphabets, numbers and dashes (-)"
|
|
7349
|
-
} :
|
|
7350
|
-
({ name:
|
|
7414
|
+
} : D.some(
|
|
7415
|
+
({ name: b }) => b === I
|
|
7351
7416
|
) ? {
|
|
7352
7417
|
isValid: !1,
|
|
7353
7418
|
error: "A variable with this name already exists. Please enter another name."
|
|
7354
7419
|
} : { isValid: !0 },
|
|
7355
|
-
onSubmit: async (I,
|
|
7356
|
-
if (
|
|
7420
|
+
onSubmit: async (I, b) => {
|
|
7421
|
+
if (v(!1), b === void 0)
|
|
7357
7422
|
return;
|
|
7358
7423
|
d(!0);
|
|
7359
|
-
const
|
|
7360
|
-
[I]: JSON.parse(
|
|
7424
|
+
const V = JSON.stringify({
|
|
7425
|
+
[I]: JSON.parse(b)
|
|
7361
7426
|
});
|
|
7362
|
-
await R(
|
|
7427
|
+
await R(V), d(!1), a(null);
|
|
7363
7428
|
},
|
|
7364
7429
|
onClose: () => {
|
|
7365
|
-
|
|
7430
|
+
v(!1), a(null);
|
|
7366
7431
|
}
|
|
7367
7432
|
}
|
|
7368
7433
|
)
|
|
@@ -7512,7 +7577,7 @@ const il = u(qs)`
|
|
|
7512
7577
|
const [A, t] = y(!1), s = cA(null);
|
|
7513
7578
|
return F(() => {
|
|
7514
7579
|
const n = OA(
|
|
7515
|
-
() =>
|
|
7580
|
+
() => hA.state.variables,
|
|
7516
7581
|
(r, a) => {
|
|
7517
7582
|
[
|
|
7518
7583
|
...r.filter(
|
|
@@ -7563,7 +7628,7 @@ const il = u(qs)`
|
|
|
7563
7628
|
}
|
|
7564
7629
|
) }),
|
|
7565
7630
|
e.flowNodeName || e.flowNodeId,
|
|
7566
|
-
|
|
7631
|
+
hA.isInitialLoadComplete && /* @__PURE__ */ i(rl, { scopeKey: e.key })
|
|
7567
7632
|
] }),
|
|
7568
7633
|
isExpanded: !0
|
|
7569
7634
|
},
|
|
@@ -7605,7 +7670,7 @@ const al = u.ul`
|
|
|
7605
7670
|
const { processInstance: a, instanceKey: o } = m.state, c = U(() => {
|
|
7606
7671
|
if (a === void 0)
|
|
7607
7672
|
return { rootNodes: [], keyMap: {} };
|
|
7608
|
-
const h = {}, g = [],
|
|
7673
|
+
const h = {}, g = [], v = {
|
|
7609
7674
|
instance: {
|
|
7610
7675
|
key: a.key,
|
|
7611
7676
|
flowNodeId: T.processName ?? w.processId ?? "process",
|
|
@@ -7623,9 +7688,9 @@ const al = u.ul`
|
|
|
7623
7688
|
flowNodeId: w.processId
|
|
7624
7689
|
})
|
|
7625
7690
|
};
|
|
7626
|
-
h[a.key] =
|
|
7691
|
+
h[a.key] = v, g.push(v);
|
|
7627
7692
|
for (let B = 0; B < e.length; B++) {
|
|
7628
|
-
const E = e[B],
|
|
7693
|
+
const E = e[B], D = {
|
|
7629
7694
|
instance: E,
|
|
7630
7695
|
childNodes: [],
|
|
7631
7696
|
isSelected: Z.isSelected({
|
|
@@ -7634,22 +7699,22 @@ const al = u.ul`
|
|
|
7634
7699
|
isMultiInstance: E.type === "MULTI_INSTANCE_BODY"
|
|
7635
7700
|
})
|
|
7636
7701
|
};
|
|
7637
|
-
h[E.key] =
|
|
7702
|
+
h[E.key] = D, E.scopeKey !== null && h[E.scopeKey] !== void 0 && h[E.scopeKey].childNodes.push(D);
|
|
7638
7703
|
}
|
|
7639
7704
|
return { rootNodes: g, keyMap: h };
|
|
7640
7705
|
}, [a, e, o]), { keyMap: l, rootNodes: d } = c();
|
|
7641
7706
|
function p(h) {
|
|
7642
7707
|
h.preventDefault(), n(!0);
|
|
7643
|
-
const
|
|
7708
|
+
const v = h.target.parentNode;
|
|
7644
7709
|
r.current = {
|
|
7645
|
-
originalSize:
|
|
7710
|
+
originalSize: v.clientHeight,
|
|
7646
7711
|
dragStart: h.pageY
|
|
7647
7712
|
};
|
|
7648
|
-
const B = (
|
|
7713
|
+
const B = (D) => {
|
|
7649
7714
|
t(
|
|
7650
7715
|
Math.max(
|
|
7651
7716
|
10,
|
|
7652
|
-
(r.current?.originalSize ?? 0) + (r.current?.dragStart ?? 0) -
|
|
7717
|
+
(r.current?.originalSize ?? 0) + (r.current?.dragStart ?? 0) - D.pageY
|
|
7653
7718
|
)
|
|
7654
7719
|
);
|
|
7655
7720
|
}, E = () => {
|
|
@@ -7674,8 +7739,8 @@ const al = u.ul`
|
|
|
7674
7739
|
/* @__PURE__ */ i(
|
|
7675
7740
|
xn,
|
|
7676
7741
|
{
|
|
7677
|
-
isActive:
|
|
7678
|
-
selectedScope:
|
|
7742
|
+
isActive: hA.scopeId === null ? !1 : l[hA.scopeId]?.instance.state === "ACTIVE",
|
|
7743
|
+
selectedScope: hA.scopeId
|
|
7679
7744
|
}
|
|
7680
7745
|
)
|
|
7681
7746
|
] });
|
|
@@ -7684,7 +7749,7 @@ Fn.displayName = "InstanceHistory";
|
|
|
7684
7749
|
const ul = (e = "", A = "new-diagram") => {
|
|
7685
7750
|
const t = e?.normalize().replace(/[^_0-9\p{Letter}\p{Mark}]+/gu, "-").replace(/-+/g, "-").replace(/(^-|-$)/g, "").toLowerCase();
|
|
7686
7751
|
return t === "" ? A : t;
|
|
7687
|
-
}, pl = "--", hl = (e, A) => e + pl + ul(A), fl = (e) => /* @__PURE__ */ C.createElement("svg", { width: 2, height: 10, viewBox: "0 0 2 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M1 2C1.55228 2 2 1.55228 2 1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2Z", fill: "white" }), /* @__PURE__ */ C.createElement("path", { d: "M1 6C1.55228 6 2 5.55228 2 5C2 4.44772 1.55228 4 1 4C0.447715 4 0 4.44772 0 5C0 5.55228 0.447715 6 1 6Z", fill: "white" }), /* @__PURE__ */ C.createElement("path", { d: "M1 10C1.55228 10 2 9.55228 2 9C2 8.44771 1.55228 8 1 8C0.447715 8 0 8.44771 0 9C0 9.55228 0.447715 10 1 10Z", fill: "white" })), gl = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M14.7685 5.87999L13.12 4.23149C12.9713 4.08325 12.7699 4 12.56 4C12.3501 4 12.1487 4.08325 12 4.23149L5 11.2337V14H7.7663L14.7685 6.99999C14.9167 6.85132 15 6.64994 15 6.43999C15 6.23004 14.9167 6.02866 14.7685 5.87999ZM7.3521 13H6V11.6479L10.7205 6.92744L12.0725 8.27954L7.3521 13ZM12.7795 7.57249L11.4275 6.22044L12.5611 5.08684L13.9132 6.43894L12.7795 7.57249Z", fill: "white" }), /* @__PURE__ */ C.createElement("rect", { x: 1, y: 2, width: 10, height: 1, fill: "white" }), /* @__PURE__ */ C.createElement("rect", { x: 1, y: 5, width: 7, height: 1, fill: "white" }), /* @__PURE__ */ C.createElement("rect", { x: 1, y: 8, width: 4, height: 1, fill: "white" })), ml = (e) => /* @__PURE__ */ C.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-envelope", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z" })), wl = (e) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("g", { fill: "#52C16B" }, /* @__PURE__ */ C.createElement("path", { d: "M9 0C4.0374 0 0 4.0375 0 9c0 4.9627 4.0374 9 9 9s9-4.0373 9-9c0-4.9625-4.0374-9-9-9zm0 16.3636c-4.0604 0-7.3636-3.3032-7.3636-7.3635 0-4.0604 3.3032-7.3637 7.3636-7.3637S16.3636 4.9397 16.3636 9c0 4.0603-3.3033 7.3635-7.3636 7.3635z" }), /* @__PURE__ */ C.createElement("path", { d: "M5.101 9.85C5.0337 9.78 5 9.675 5 9.605s.0337-.175.101-.245l.4711-.49c.1346-.14.3366-.14.4712 0l.0336.035 1.851 2.065c.0673.07.1683.07.2356 0l4.5096-4.865h.0336c.1346-.14.3366-.14.4712 0l.4711.49c.1347.14.1347.35 0 .49l-5.3846 5.81c-.0673.07-.1346.105-.2356.105s-.1682-.035-.2355-.105l-2.625-2.94-.0673-.105z" }))), bl = (e) => /* @__PURE__ */ C.createElement("svg", { width: 17, height: 16, viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("g", { clipPath: "url(#clip0_2557_56096)" }, /* @__PURE__ */ C.createElement("rect", { width: 16, height: 16, transform: "translate(0.5)", fill: "transparent" }), /* @__PURE__ */ C.createElement("g", { clipPath: "url(#clip1_2557_56096)" }, /* @__PURE__ */ C.createElement("path", { d: "M9.69601 7.99995L15.5 4.63295V11.3669L9.69601 7.99995ZM8.90401 7.30395C8.78141 7.37414 8.67952 7.47547 8.60866 7.59769C8.5378 7.71991 8.50049 7.85868 8.50049 7.99995C8.50049 8.14122 8.5378 8.27999 8.60866 8.40221C8.67952 8.52442 8.78141 8.62576 8.90401 8.69595L15.267 12.3879C15.787 12.6899 16.5 12.3449 16.5 11.6919V4.30795C16.5 3.65495 15.787 3.30995 15.267 3.61195L8.90401 7.30395Z" }), /* @__PURE__ */ C.createElement("path", { d: "M1.69601 7.99995L7.50001 4.63295V11.3669L1.69601 7.99995ZM0.904006 7.30395C0.781405 7.37414 0.679521 7.47547 0.608663 7.59769C0.537805 7.71991 0.500488 7.85868 0.500488 7.99995C0.500488 8.14122 0.537805 8.27999 0.608663 8.40221C0.679521 8.52442 0.781405 8.62576 0.904006 8.69595L7.26701 12.3879C7.78701 12.6899 8.50001 12.3449 8.50001 11.6919V4.30795C8.50001 3.65495 7.78701 3.30995 7.26701 3.61195L0.904006 7.30395Z" }))), /* @__PURE__ */ C.createElement("defs", null, /* @__PURE__ */ C.createElement("clipPath", { id: "clip0_2557_56096" }, /* @__PURE__ */ C.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })), /* @__PURE__ */ C.createElement("clipPath", { id: "clip1_2557_56096" }, /* @__PURE__ */ C.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })))), vl = (e) => /* @__PURE__ */ C.createElement("svg", { width: 180, height: 180, viewBox: "0 0 180 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M150.804 55.8922L150.494 49.0623H126.417C126.82 39.786 126.418 29.1415 126.418 29.1415H53.5819C53.5819 29.1415 53.1795 39.786 53.5831 49.0623H29.5059L29.1962 55.8922C29.1692 56.4865 28.6164 70.6236 35.6237 86.0315C41.7589 99.5223 54.8975 116.447 82.846 122.946V131.977H77.9039V138.148H53.4032V152.456H126.597V138.148H102.096V131.977H97.1541V122.946C125.102 116.447 138.241 99.5222 144.376 86.0315C151.384 70.6235 150.831 56.4865 150.804 55.8922ZM48.8725 80.5957C45.861 74.1454 44.5261 67.8866 43.9383 63.3704H54.7619C56.2251 75.2305 59.1824 88.702 65.0259 99.9776C58.0146 95.0724 52.6113 88.6029 48.8725 80.5957ZM101.322 104.518H79.4116V92.1394H101.322V104.518ZM101.331 73.5114C101.279 80.9953 97.5643 85.2491 90.3501 85.2491C83.1358 85.2491 79.4211 80.9929 79.4211 73.5658L79.4116 49.2818C79.4637 41.798 83.1784 37.5441 90.3926 37.5441C97.6069 37.5441 101.322 41.8004 101.322 49.2818V53.8029H94.3864V48.8089C94.3864 45.4702 92.8801 44.1791 90.5652 44.1791C88.2007 44.1247 86.7417 45.4158 86.7417 48.7545V73.9962C86.7417 77.3349 88.2503 78.5196 90.5652 78.5196C92.9298 78.5196 94.3864 77.3373 94.3864 73.9962V67.321H101.331V73.5114ZM131.352 80.1083C127.607 88.3417 122.128 94.9736 114.974 99.9781C120.817 88.7023 123.775 75.2307 125.238 63.3704H136.06C135.486 67.7767 134.203 73.8395 131.352 80.1083Z", fill: "#FC5D0D" })), El = (e) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { fill: "currentColor", d: "M13 5H11V11H5V13H11V19H13V13H19V11H13V5Z" })), yl = (e) => /* @__PURE__ */ C.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M22.0833 10H1.9167c-.55 0-.9167.3667-.9167.9167V12.75c0 .55.3667.9167.9167.9167h20.1666c.55 0 .9167-.3667.9167-.9167v-1.8333c0-.55-.3667-.9167-.9167-.9167z" })), Bl = (e) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { fill: "currentColor", d: "M.531 8.031H1.697c.2461 2.798 2.487 5.026 5.272 5.2721v1.1658c0 .285.2332.5311.5311.5311.285 0 .531-.2332.531-.531V13.303c2.798-.2461 5.026-2.487 5.2721-5.272h1.1658c.285 0 .5311-.2332.5311-.5311 0-.285-.2332-.531-.531-.531H13.303c-.2461-2.798-2.487-5.026-5.272-5.2721V.531C8.031.246 7.7979 0 7.5 0c-.285 0-.531.2332-.531.531V1.697c-2.798.2461-5.026 2.487-5.2721 5.272H.531C.233 6.969 0 7.2021 0 7.5c0 .298.2461.531.531.531zm4.3654-1.062H2.759c.246-2.2151 2.0077-3.9768 4.2098-4.21v2.1374c0 .285.2332.531.5311.531.285 0 .531-.2331.531-.531V2.759c2.2151.246 3.9768 2.0077 4.21 4.2098h-2.1374c-.285 0-.531.2332-.531.5311 0 .285.2331.531.531.531h2.1373c-.246 2.2151-2.0077 3.9768-4.2098 4.21v-2.1374c0-.285-.2332-.531-.5311-.531-.285 0-.531.2331-.531.531v2.1373c-2.2151-.246-3.9768-2.0077-4.21-4.2098h2.1374c.285 0 .531-.2332.531-.5311 0-.285-.246-.531-.531-.531z" })), Il = (e) => /* @__PURE__ */ C.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...e }, /* @__PURE__ */ C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.8557 1.5478a.3332.3332 0 0 0-.328-.009l-5.5162 2.9204-5.516-2.9204a.5482.5482 0 0 0-.0627-.0234c-.046-.0113-.0647-.0127-.0837-.0133-.0434 0-.061.0033-.0788.0073-.0213.0047-2.0354.6745-6.042 2.0096A.3334.3334 0 0 0 1 3.8356v14.3471a.334.334 0 0 0 .3337.3336.3279.3279 0 0 0 .1054-.0173l5.8876-1.9625 5.5577 2.2885c.0514.016.0887.025.127.025a.334.334 0 0 0 .0888-.013c.0407-.0154.0548-.019.0674-.0257l5.6721-3.0029a.334.334 0 0 0 .1775-.295V1.8338a.334.334 0 0 0-.1615-.286zM2.0598 4.6795l4.6633-1.5897v12.188l-4.6633 1.5898V4.6796zM7.783 3.0898l4.5573 2.6495v11.6583L7.783 15.2779V3.0898zm10.1744 11.9761l-4.5043 2.3317V5.7393l4.5043-2.6495v11.9761z" })), Ml = (e) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ C.createElement("path", { d: "M7.8434 11.358H1.7862a.7985.7985 0 1 0 0 1.5971h5.2587v5.2587a.7985.7985 0 1 0 1.597 0v-6.0572a.7985.7985 0 0 0-.7985-.7986zM18.2138 7.0449h-5.2586V1.7862a.7985.7985 0 1 0-1.5971 0v6.0572c0 .441.3575.7986.7985.7986h6.0572a.7985.7985 0 1 0 0-1.5971z" }), /* @__PURE__ */ C.createElement("path", { d: "M19.7667.2333a.7965.7965 0 0 0-1.1265 0l-7.0489 7.0489a.7966.7966 0 0 0 1.1265 1.1265l7.049-7.049a.7966.7966 0 0 0 0-1.1264zM8.4087 11.5913a.7965.7965 0 0 0-1.1265 0l-7.0489 7.049a.7965.7965 0 1 0 1.1265 1.1264l7.0489-7.049a.7965.7965 0 0 0 0-1.1264z" }))), Sl = (e) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ C.createElement("path", { d: "M19.2015 0h-6.0573a.7985.7985 0 1 0 0 1.5971h5.2587v5.2587a.7985.7985 0 1 0 1.5971 0V.7985A.7985.7985 0 0 0 19.2015 0zM6.8558 18.4029H1.597v-5.2587a.7985.7985 0 1 0-1.5971 0v6.0573c0 .441.3575.7985.7985.7985h6.0573a.7985.7985 0 1 0 0-1.5971z" }), /* @__PURE__ */ C.createElement("path", { d: "M19.7667.2333a.7965.7965 0 0 0-1.1265 0l-7.0489 7.0489a.7966.7966 0 0 0 1.1265 1.1265l7.049-7.049a.7966.7966 0 0 0 0-1.1264zM8.4087 11.5913a.7965.7965 0 0 0-1.1265 0l-7.0489 7.049a.7965.7965 0 1 0 1.1265 1.1264l7.0489-7.049a.7965.7965 0 0 0 0-1.1264z" }))), Dl = (e) => /* @__PURE__ */ C.createElement("svg", { width: 17, height: 15, viewBox: "0 0 17 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.7219 5.2691C8.6668 4.2126 7.7435 2.4757 7.0638 1.00772C7.0445 1.00316 7.0206 1 6.9941 1C6.9675 1 6.9436 1.00316 6.9243 1.00773C6.2447 2.4757 5.322 4.2122 4.2662 5.2687C3.2106 6.325 1.47501 7.2485 0.00802994 7.9287C0.00328994 7.9483 0 7.9728 0 8C0 8.0271 0.00324982 8.0515 0.00793982 8.071C1.47467 8.751 3.2101 9.6743 4.2659 10.7311C5.322 11.7875 6.2448 13.5244 6.9245 14.9923C6.9437 14.9969 6.9675 15 6.994 15C7.0205 15 7.0444 14.9968 7.0636 14.9923C7.7433 13.5244 8.666 11.7877 9.7215 10.7315M9.7215 10.7315C10.773 9.6791 12.4531 8.7468 13.8721 8.0577C13.8756 8.0415 13.878 8.0217 13.878 7.9998C13.878 7.9779 13.8756 7.9582 13.8721 7.942C12.4537 7.2529 10.7734 6.3207 9.7219 5.2691", fill: "white" }), /* @__PURE__ */ C.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.4808 1.52468C15.104 1.14737 14.7742 0.52704 14.5315 0.00275993C14.5246 0.00112993 14.5161 0 14.5066 0C14.4971 0 14.4885 0.00112993 14.4817 0.00275993C14.2389 0.52705 13.9094 1.14721 13.5323 1.52455C13.1553 1.9018 12.5355 2.2316 12.0116 2.4745C12.0099 2.4815 12.0087 2.4903 12.0087 2.5C12.0087 2.5097 12.0099 2.5184 12.0115 2.5254C12.5354 2.7682 13.1552 3.098 13.5322 3.4754C13.9094 3.8527 14.239 4.473 14.4817 4.9972C14.4886 4.9989 14.4971 5 14.5066 5C14.516 5 14.5246 4.9989 14.5314 4.9972C14.7742 4.473 15.1037 3.8528 15.4806 3.4755M15.4806 3.4755C15.8562 3.0997 16.4562 2.7667 16.963 2.5206C16.9643 2.5148 16.9651 2.5078 16.9651 2.4999C16.9651 2.4921 16.9643 2.4851 16.963 2.4793C16.4565 2.2332 15.8563 1.90026 15.4808 1.52468", fill: "white" })), Cl = (e) => /* @__PURE__ */ C.createElement("svg", { width: 18, height: 16, viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M1.18528 15.25L9 1.03773L16.8147 15.25H1.18528Z", stroke: "white" })), kl = (e) => /* @__PURE__ */ C.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z", fill: "currentColor" })), Qn = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M12 3H4v10h8V3Z", fill: "#000" }), /* @__PURE__ */ C.createElement("path", { d: "M8 1C4.15 1 1 4.15 1 8s3.15 7 7 7 7-3.15 7-7-3.15-7-7-7Zm-.55 3h1.1v5.5h-1.1V4ZM8 12.5c-.4 0-.75-.35-.75-.75S7.6 11 8 11s.75.35.75.75-.35.75-.75.75Z", fill: "#FF832B" })), Tl = u.div`
|
|
7752
|
+
}, pl = "--", hl = (e, A) => e + pl + ul(A), fl = (e) => /* @__PURE__ */ k.createElement("svg", { width: 2, height: 10, viewBox: "0 0 2 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M1 2C1.55228 2 2 1.55228 2 1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2Z", fill: "white" }), /* @__PURE__ */ k.createElement("path", { d: "M1 6C1.55228 6 2 5.55228 2 5C2 4.44772 1.55228 4 1 4C0.447715 4 0 4.44772 0 5C0 5.55228 0.447715 6 1 6Z", fill: "white" }), /* @__PURE__ */ k.createElement("path", { d: "M1 10C1.55228 10 2 9.55228 2 9C2 8.44771 1.55228 8 1 8C0.447715 8 0 8.44771 0 9C0 9.55228 0.447715 10 1 10Z", fill: "white" })), gl = (e) => /* @__PURE__ */ k.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M14.7685 5.87999L13.12 4.23149C12.9713 4.08325 12.7699 4 12.56 4C12.3501 4 12.1487 4.08325 12 4.23149L5 11.2337V14H7.7663L14.7685 6.99999C14.9167 6.85132 15 6.64994 15 6.43999C15 6.23004 14.9167 6.02866 14.7685 5.87999ZM7.3521 13H6V11.6479L10.7205 6.92744L12.0725 8.27954L7.3521 13ZM12.7795 7.57249L11.4275 6.22044L12.5611 5.08684L13.9132 6.43894L12.7795 7.57249Z", fill: "white" }), /* @__PURE__ */ k.createElement("rect", { x: 1, y: 2, width: 10, height: 1, fill: "white" }), /* @__PURE__ */ k.createElement("rect", { x: 1, y: 5, width: 7, height: 1, fill: "white" }), /* @__PURE__ */ k.createElement("rect", { x: 1, y: 8, width: 4, height: 1, fill: "white" })), ml = (e) => /* @__PURE__ */ k.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-envelope", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z" })), wl = (e) => /* @__PURE__ */ k.createElement("svg", { viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("g", { fill: "#52C16B" }, /* @__PURE__ */ k.createElement("path", { d: "M9 0C4.0374 0 0 4.0375 0 9c0 4.9627 4.0374 9 9 9s9-4.0373 9-9c0-4.9625-4.0374-9-9-9zm0 16.3636c-4.0604 0-7.3636-3.3032-7.3636-7.3635 0-4.0604 3.3032-7.3637 7.3636-7.3637S16.3636 4.9397 16.3636 9c0 4.0603-3.3033 7.3635-7.3636 7.3635z" }), /* @__PURE__ */ k.createElement("path", { d: "M5.101 9.85C5.0337 9.78 5 9.675 5 9.605s.0337-.175.101-.245l.4711-.49c.1346-.14.3366-.14.4712 0l.0336.035 1.851 2.065c.0673.07.1683.07.2356 0l4.5096-4.865h.0336c.1346-.14.3366-.14.4712 0l.4711.49c.1347.14.1347.35 0 .49l-5.3846 5.81c-.0673.07-.1346.105-.2356.105s-.1682-.035-.2355-.105l-2.625-2.94-.0673-.105z" }))), bl = (e) => /* @__PURE__ */ k.createElement("svg", { width: 17, height: 16, viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("g", { clipPath: "url(#clip0_2557_56096)" }, /* @__PURE__ */ k.createElement("rect", { width: 16, height: 16, transform: "translate(0.5)", fill: "transparent" }), /* @__PURE__ */ k.createElement("g", { clipPath: "url(#clip1_2557_56096)" }, /* @__PURE__ */ k.createElement("path", { d: "M9.69601 7.99995L15.5 4.63295V11.3669L9.69601 7.99995ZM8.90401 7.30395C8.78141 7.37414 8.67952 7.47547 8.60866 7.59769C8.5378 7.71991 8.50049 7.85868 8.50049 7.99995C8.50049 8.14122 8.5378 8.27999 8.60866 8.40221C8.67952 8.52442 8.78141 8.62576 8.90401 8.69595L15.267 12.3879C15.787 12.6899 16.5 12.3449 16.5 11.6919V4.30795C16.5 3.65495 15.787 3.30995 15.267 3.61195L8.90401 7.30395Z" }), /* @__PURE__ */ k.createElement("path", { d: "M1.69601 7.99995L7.50001 4.63295V11.3669L1.69601 7.99995ZM0.904006 7.30395C0.781405 7.37414 0.679521 7.47547 0.608663 7.59769C0.537805 7.71991 0.500488 7.85868 0.500488 7.99995C0.500488 8.14122 0.537805 8.27999 0.608663 8.40221C0.679521 8.52442 0.781405 8.62576 0.904006 8.69595L7.26701 12.3879C7.78701 12.6899 8.50001 12.3449 8.50001 11.6919V4.30795C8.50001 3.65495 7.78701 3.30995 7.26701 3.61195L0.904006 7.30395Z" }))), /* @__PURE__ */ k.createElement("defs", null, /* @__PURE__ */ k.createElement("clipPath", { id: "clip0_2557_56096" }, /* @__PURE__ */ k.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })), /* @__PURE__ */ k.createElement("clipPath", { id: "clip1_2557_56096" }, /* @__PURE__ */ k.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })))), vl = (e) => /* @__PURE__ */ k.createElement("svg", { width: 180, height: 180, viewBox: "0 0 180 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M150.804 55.8922L150.494 49.0623H126.417C126.82 39.786 126.418 29.1415 126.418 29.1415H53.5819C53.5819 29.1415 53.1795 39.786 53.5831 49.0623H29.5059L29.1962 55.8922C29.1692 56.4865 28.6164 70.6236 35.6237 86.0315C41.7589 99.5223 54.8975 116.447 82.846 122.946V131.977H77.9039V138.148H53.4032V152.456H126.597V138.148H102.096V131.977H97.1541V122.946C125.102 116.447 138.241 99.5222 144.376 86.0315C151.384 70.6235 150.831 56.4865 150.804 55.8922ZM48.8725 80.5957C45.861 74.1454 44.5261 67.8866 43.9383 63.3704H54.7619C56.2251 75.2305 59.1824 88.702 65.0259 99.9776C58.0146 95.0724 52.6113 88.6029 48.8725 80.5957ZM101.322 104.518H79.4116V92.1394H101.322V104.518ZM101.331 73.5114C101.279 80.9953 97.5643 85.2491 90.3501 85.2491C83.1358 85.2491 79.4211 80.9929 79.4211 73.5658L79.4116 49.2818C79.4637 41.798 83.1784 37.5441 90.3926 37.5441C97.6069 37.5441 101.322 41.8004 101.322 49.2818V53.8029H94.3864V48.8089C94.3864 45.4702 92.8801 44.1791 90.5652 44.1791C88.2007 44.1247 86.7417 45.4158 86.7417 48.7545V73.9962C86.7417 77.3349 88.2503 78.5196 90.5652 78.5196C92.9298 78.5196 94.3864 77.3373 94.3864 73.9962V67.321H101.331V73.5114ZM131.352 80.1083C127.607 88.3417 122.128 94.9736 114.974 99.9781C120.817 88.7023 123.775 75.2307 125.238 63.3704H136.06C135.486 67.7767 134.203 73.8395 131.352 80.1083Z", fill: "#FC5D0D" })), El = (e) => /* @__PURE__ */ k.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { fill: "currentColor", d: "M13 5H11V11H5V13H11V19H13V13H19V11H13V5Z" })), yl = (e) => /* @__PURE__ */ k.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ k.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M22.0833 10H1.9167c-.55 0-.9167.3667-.9167.9167V12.75c0 .55.3667.9167.9167.9167h20.1666c.55 0 .9167-.3667.9167-.9167v-1.8333c0-.55-.3667-.9167-.9167-.9167z" })), Bl = (e) => /* @__PURE__ */ k.createElement("svg", { viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { fill: "currentColor", d: "M.531 8.031H1.697c.2461 2.798 2.487 5.026 5.272 5.2721v1.1658c0 .285.2332.5311.5311.5311.285 0 .531-.2332.531-.531V13.303c2.798-.2461 5.026-2.487 5.2721-5.272h1.1658c.285 0 .5311-.2332.5311-.5311 0-.285-.2332-.531-.531-.531H13.303c-.2461-2.798-2.487-5.026-5.272-5.2721V.531C8.031.246 7.7979 0 7.5 0c-.285 0-.531.2332-.531.531V1.697c-2.798.2461-5.026 2.487-5.2721 5.272H.531C.233 6.969 0 7.2021 0 7.5c0 .298.2461.531.531.531zm4.3654-1.062H2.759c.246-2.2151 2.0077-3.9768 4.2098-4.21v2.1374c0 .285.2332.531.5311.531.285 0 .531-.2331.531-.531V2.759c2.2151.246 3.9768 2.0077 4.21 4.2098h-2.1374c-.285 0-.531.2332-.531.5311 0 .285.2331.531.531.531h2.1373c-.246 2.2151-2.0077 3.9768-4.2098 4.21v-2.1374c0-.285-.2332-.531-.5311-.531-.285 0-.531.2331-.531.531v2.1373c-2.2151-.246-3.9768-2.0077-4.21-4.2098h2.1374c.285 0 .531-.2332.531-.5311 0-.285-.246-.531-.531-.531z" })), Il = (e) => /* @__PURE__ */ k.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...e }, /* @__PURE__ */ k.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.8557 1.5478a.3332.3332 0 0 0-.328-.009l-5.5162 2.9204-5.516-2.9204a.5482.5482 0 0 0-.0627-.0234c-.046-.0113-.0647-.0127-.0837-.0133-.0434 0-.061.0033-.0788.0073-.0213.0047-2.0354.6745-6.042 2.0096A.3334.3334 0 0 0 1 3.8356v14.3471a.334.334 0 0 0 .3337.3336.3279.3279 0 0 0 .1054-.0173l5.8876-1.9625 5.5577 2.2885c.0514.016.0887.025.127.025a.334.334 0 0 0 .0888-.013c.0407-.0154.0548-.019.0674-.0257l5.6721-3.0029a.334.334 0 0 0 .1775-.295V1.8338a.334.334 0 0 0-.1615-.286zM2.0598 4.6795l4.6633-1.5897v12.188l-4.6633 1.5898V4.6796zM7.783 3.0898l4.5573 2.6495v11.6583L7.783 15.2779V3.0898zm10.1744 11.9761l-4.5043 2.3317V5.7393l4.5043-2.6495v11.9761z" })), Ml = (e) => /* @__PURE__ */ k.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ k.createElement("path", { d: "M7.8434 11.358H1.7862a.7985.7985 0 1 0 0 1.5971h5.2587v5.2587a.7985.7985 0 1 0 1.597 0v-6.0572a.7985.7985 0 0 0-.7985-.7986zM18.2138 7.0449h-5.2586V1.7862a.7985.7985 0 1 0-1.5971 0v6.0572c0 .441.3575.7986.7985.7986h6.0572a.7985.7985 0 1 0 0-1.5971z" }), /* @__PURE__ */ k.createElement("path", { d: "M19.7667.2333a.7965.7965 0 0 0-1.1265 0l-7.0489 7.0489a.7966.7966 0 0 0 1.1265 1.1265l7.049-7.049a.7966.7966 0 0 0 0-1.1264zM8.4087 11.5913a.7965.7965 0 0 0-1.1265 0l-7.0489 7.049a.7965.7965 0 1 0 1.1265 1.1264l7.0489-7.049a.7965.7965 0 0 0 0-1.1264z" }))), Sl = (e) => /* @__PURE__ */ k.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ k.createElement("path", { d: "M19.2015 0h-6.0573a.7985.7985 0 1 0 0 1.5971h5.2587v5.2587a.7985.7985 0 1 0 1.5971 0V.7985A.7985.7985 0 0 0 19.2015 0zM6.8558 18.4029H1.597v-5.2587a.7985.7985 0 1 0-1.5971 0v6.0573c0 .441.3575.7985.7985.7985h6.0573a.7985.7985 0 1 0 0-1.5971z" }), /* @__PURE__ */ k.createElement("path", { d: "M19.7667.2333a.7965.7965 0 0 0-1.1265 0l-7.0489 7.0489a.7966.7966 0 0 0 1.1265 1.1265l7.049-7.049a.7966.7966 0 0 0 0-1.1264zM8.4087 11.5913a.7965.7965 0 0 0-1.1265 0l-7.0489 7.049a.7965.7965 0 1 0 1.1265 1.1264l7.0489-7.049a.7965.7965 0 0 0 0-1.1264z" }))), Dl = (e) => /* @__PURE__ */ k.createElement("svg", { width: 17, height: 15, viewBox: "0 0 17 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.7219 5.2691C8.6668 4.2126 7.7435 2.4757 7.0638 1.00772C7.0445 1.00316 7.0206 1 6.9941 1C6.9675 1 6.9436 1.00316 6.9243 1.00773C6.2447 2.4757 5.322 4.2122 4.2662 5.2687C3.2106 6.325 1.47501 7.2485 0.00802994 7.9287C0.00328994 7.9483 0 7.9728 0 8C0 8.0271 0.00324982 8.0515 0.00793982 8.071C1.47467 8.751 3.2101 9.6743 4.2659 10.7311C5.322 11.7875 6.2448 13.5244 6.9245 14.9923C6.9437 14.9969 6.9675 15 6.994 15C7.0205 15 7.0444 14.9968 7.0636 14.9923C7.7433 13.5244 8.666 11.7877 9.7215 10.7315M9.7215 10.7315C10.773 9.6791 12.4531 8.7468 13.8721 8.0577C13.8756 8.0415 13.878 8.0217 13.878 7.9998C13.878 7.9779 13.8756 7.9582 13.8721 7.942C12.4537 7.2529 10.7734 6.3207 9.7219 5.2691", fill: "white" }), /* @__PURE__ */ k.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.4808 1.52468C15.104 1.14737 14.7742 0.52704 14.5315 0.00275993C14.5246 0.00112993 14.5161 0 14.5066 0C14.4971 0 14.4885 0.00112993 14.4817 0.00275993C14.2389 0.52705 13.9094 1.14721 13.5323 1.52455C13.1553 1.9018 12.5355 2.2316 12.0116 2.4745C12.0099 2.4815 12.0087 2.4903 12.0087 2.5C12.0087 2.5097 12.0099 2.5184 12.0115 2.5254C12.5354 2.7682 13.1552 3.098 13.5322 3.4754C13.9094 3.8527 14.239 4.473 14.4817 4.9972C14.4886 4.9989 14.4971 5 14.5066 5C14.516 5 14.5246 4.9989 14.5314 4.9972C14.7742 4.473 15.1037 3.8528 15.4806 3.4755M15.4806 3.4755C15.8562 3.0997 16.4562 2.7667 16.963 2.5206C16.9643 2.5148 16.9651 2.5078 16.9651 2.4999C16.9651 2.4921 16.9643 2.4851 16.963 2.4793C16.4565 2.2332 15.8563 1.90026 15.4808 1.52468", fill: "white" })), Cl = (e) => /* @__PURE__ */ k.createElement("svg", { width: 18, height: 16, viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M1.18528 15.25L9 1.03773L16.8147 15.25H1.18528Z", stroke: "white" })), kl = (e) => /* @__PURE__ */ k.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z", fill: "currentColor" })), Qn = (e) => /* @__PURE__ */ k.createElement("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ k.createElement("path", { d: "M12 3H4v10h8V3Z", fill: "#000" }), /* @__PURE__ */ k.createElement("path", { d: "M8 1C4.15 1 1 4.15 1 8s3.15 7 7 7 7-3.15 7-7-3.15-7-7-7Zm-.55 3h1.1v5.5h-1.1V4ZM8 12.5c-.4 0-.75-.35-.75-.75S7.6 11 8 11s.75.35.75.75-.35.75-.75.75Z", fill: "#FF832B" })), Tl = u.div`
|
|
7688
7753
|
height: 30px;
|
|
7689
7754
|
margin: 5px 10px;
|
|
7690
7755
|
`, Nl = u(wl)`
|
|
@@ -7735,7 +7800,7 @@ const Cs = {
|
|
|
7735
7800
|
class Ql {
|
|
7736
7801
|
state = { ...Cs };
|
|
7737
7802
|
constructor() {
|
|
7738
|
-
|
|
7803
|
+
qA(this);
|
|
7739
7804
|
}
|
|
7740
7805
|
setupConnectors = async () => {
|
|
7741
7806
|
if (this.state.status !== "initial")
|
|
@@ -7799,13 +7864,13 @@ class Ql {
|
|
|
7799
7864
|
this.state = { ...Cs };
|
|
7800
7865
|
};
|
|
7801
7866
|
}
|
|
7802
|
-
const
|
|
7867
|
+
const TA = new Ql();
|
|
7803
7868
|
class Rl {
|
|
7804
7869
|
constructor() {
|
|
7805
|
-
|
|
7870
|
+
qA(this);
|
|
7806
7871
|
}
|
|
7807
7872
|
get problemCount() {
|
|
7808
|
-
return w.fileProblems.length +
|
|
7873
|
+
return w.fileProblems.length + TA.connectorProblems.length + T.diagramProblemCount;
|
|
7809
7874
|
}
|
|
7810
7875
|
get hasProblems() {
|
|
7811
7876
|
return w.hasAuthorizationError || w.hasDiagramError || this.problemCount > 0;
|
|
@@ -7815,7 +7880,7 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7815
7880
|
const { fileProblems: e } = w;
|
|
7816
7881
|
F(() => {
|
|
7817
7882
|
const t = () => {
|
|
7818
|
-
document.visibilityState !== "hidden" &&
|
|
7883
|
+
document.visibilityState !== "hidden" && TA.getConnectorSecrets();
|
|
7819
7884
|
};
|
|
7820
7885
|
return window.addEventListener("visibilitychange", t), () => {
|
|
7821
7886
|
window.removeEventListener("visibilitychange", t);
|
|
@@ -7867,7 +7932,7 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7867
7932
|
)
|
|
7868
7933
|
] })
|
|
7869
7934
|
] }, t.id + Math.random().toString())),
|
|
7870
|
-
|
|
7935
|
+
TA.connectorProblems.map((t) => /* @__PURE__ */ f(RA, { children: [
|
|
7871
7936
|
/* @__PURE__ */ f(sA, { children: [
|
|
7872
7937
|
/* @__PURE__ */ i(Ze, {}),
|
|
7873
7938
|
/* @__PURE__ */ i("b", { children: t.element.businessObject.name || t.element.businessObject.id })
|
|
@@ -7924,7 +7989,7 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7924
7989
|
});
|
|
7925
7990
|
Rn.displayName = "ErrorPanel";
|
|
7926
7991
|
u(J)`
|
|
7927
|
-
${
|
|
7992
|
+
${dA.bodyCompact01};
|
|
7928
7993
|
`;
|
|
7929
7994
|
const qe = u(sA)`
|
|
7930
7995
|
padding-top: 0 !important;
|
|
@@ -7946,7 +8011,7 @@ const qe = u(sA)`
|
|
|
7946
8011
|
display: flex;
|
|
7947
8012
|
align-items: center;
|
|
7948
8013
|
`, Vl = u(J)`
|
|
7949
|
-
${
|
|
8014
|
+
${dA.bodyCompact01};
|
|
7950
8015
|
color: var(--cds-text-primary);
|
|
7951
8016
|
padding: 0 var(--cds-spacing-05) var(--cds-spacing-04) var(--cds-spacing-05);
|
|
7952
8017
|
`, Pn = N(() => /* @__PURE__ */ f("div", { children: [
|
|
@@ -7976,7 +8041,7 @@ const qe = u(sA)`
|
|
|
7976
8041
|
] }));
|
|
7977
8042
|
Pn.displayName = "OverallCoverage";
|
|
7978
8043
|
const Hl = u(J)`
|
|
7979
|
-
${
|
|
8044
|
+
${dA.bodyCompact01};
|
|
7980
8045
|
color: var(--cds-text-primary);
|
|
7981
8046
|
padding: var(--cds-spacing-04) var(--cds-spacing-05);
|
|
7982
8047
|
display: flex;
|
|
@@ -8042,7 +8107,7 @@ const Yl = N(() => {
|
|
|
8042
8107
|
renderIcon: ht,
|
|
8043
8108
|
disabled: x.isAnyScenarioRunning,
|
|
8044
8109
|
onClick: async () => {
|
|
8045
|
-
A(!0),
|
|
8110
|
+
A(!0), L.runScenarios(t.length), await Promise.all(
|
|
8046
8111
|
t.map(async ({ name: n, actions: r }) => {
|
|
8047
8112
|
await x.runSingleScenario({
|
|
8048
8113
|
name: n,
|
|
@@ -8104,11 +8169,11 @@ const Yl = N(() => {
|
|
|
8104
8169
|
/* @__PURE__ */ i(ze, { width: "30%" }),
|
|
8105
8170
|
/* @__PURE__ */ i(ze, { width: "30%" })
|
|
8106
8171
|
] }), jl = () => /* @__PURE__ */ i(Zl, { "data-testid": "scenarios-skeleton", children: [...Array(20)].map((e, A) => /* @__PURE__ */ i(zl, {}, A)) }), Wl = u(J)`
|
|
8107
|
-
${
|
|
8172
|
+
${dA.bodyCompact01};
|
|
8108
8173
|
color: var(--cds-text-primary);
|
|
8109
8174
|
padding: var(--cds-spacing-07) var(--cds-spacing-05);
|
|
8110
8175
|
`, Xl = u.div`
|
|
8111
|
-
${
|
|
8176
|
+
${dA.heading01};
|
|
8112
8177
|
`, $l = ({ onReload: e }) => /* @__PURE__ */ f(Wl, { gap: 5, children: [
|
|
8113
8178
|
/* @__PURE__ */ f("div", { children: [
|
|
8114
8179
|
/* @__PURE__ */ i(Xl, { children: _e }),
|
|
@@ -8165,8 +8230,8 @@ const Yl = N(() => {
|
|
|
8165
8230
|
disabled: g === "Running",
|
|
8166
8231
|
kind: "ghost",
|
|
8167
8232
|
size: "sm",
|
|
8168
|
-
onClick: async (
|
|
8169
|
-
|
|
8233
|
+
onClick: async (v) => {
|
|
8234
|
+
v.stopPropagation(), L.runScenarios(1), x.runSingleScenario({
|
|
8170
8235
|
name: l,
|
|
8171
8236
|
processId: t,
|
|
8172
8237
|
actions: d
|
|
@@ -8182,8 +8247,8 @@ const Yl = N(() => {
|
|
|
8182
8247
|
disabled: g === "Running",
|
|
8183
8248
|
kind: "ghost",
|
|
8184
8249
|
size: "sm",
|
|
8185
|
-
onClick: (
|
|
8186
|
-
|
|
8250
|
+
onClick: (v) => {
|
|
8251
|
+
v.stopPropagation(), A(o);
|
|
8187
8252
|
},
|
|
8188
8253
|
children: /* @__PURE__ */ i(Ri, {})
|
|
8189
8254
|
}
|
|
@@ -8209,7 +8274,7 @@ const Yl = N(() => {
|
|
|
8209
8274
|
kind: "ghost",
|
|
8210
8275
|
size: "sm",
|
|
8211
8276
|
onClick: () => {
|
|
8212
|
-
|
|
8277
|
+
L.runScenarios(1), x.runSingleScenario({
|
|
8213
8278
|
name: l,
|
|
8214
8279
|
processId: t,
|
|
8215
8280
|
actions: d
|
|
@@ -8243,7 +8308,7 @@ const Yl = N(() => {
|
|
|
8243
8308
|
}) })
|
|
8244
8309
|
] }),
|
|
8245
8310
|
/* @__PURE__ */ i(
|
|
8246
|
-
|
|
8311
|
+
ne,
|
|
8247
8312
|
{
|
|
8248
8313
|
open: e !== null,
|
|
8249
8314
|
preventCloseOnClickOutside: !0,
|
|
@@ -8282,11 +8347,11 @@ const _l = (e) => {
|
|
|
8282
8347
|
padding: var(--cds-spacing-07);
|
|
8283
8348
|
`, ed = u.div`
|
|
8284
8349
|
color: var(--cds-text-primary);
|
|
8285
|
-
${
|
|
8350
|
+
${dA.heading03};
|
|
8286
8351
|
margin-bottom: var(--cds-spacing-03);
|
|
8287
8352
|
`, td = u.div`
|
|
8288
8353
|
color: var(--cds-text-secondary);
|
|
8289
|
-
${
|
|
8354
|
+
${dA.helperText02};
|
|
8290
8355
|
font-weight: 400;
|
|
8291
8356
|
`, sd = u.div`
|
|
8292
8357
|
display: inline-block;
|
|
@@ -8295,7 +8360,7 @@ const _l = (e) => {
|
|
|
8295
8360
|
transform: translateY(4px);
|
|
8296
8361
|
`, nd = u(gn)`
|
|
8297
8362
|
color: var(--cds-link-primary);
|
|
8298
|
-
${
|
|
8363
|
+
${dA.body01};
|
|
8299
8364
|
word-wrap: break-word;
|
|
8300
8365
|
height: 20px;
|
|
8301
8366
|
`, je = u(PA)`
|
|
@@ -8335,7 +8400,7 @@ const _l = (e) => {
|
|
|
8335
8400
|
});
|
|
8336
8401
|
Vn.displayName = "Processes";
|
|
8337
8402
|
const Hn = N(() => {
|
|
8338
|
-
const e = tA(
|
|
8403
|
+
const e = tA(AA), { activeTab: A } = iA.state, t = e.featureFlags.isReplayScenariosEnabled, { problemCount: s } = Rt;
|
|
8339
8404
|
F(() => {
|
|
8340
8405
|
s > 0 && iA.setActiveTab("problems");
|
|
8341
8406
|
}, [s]);
|
|
@@ -8502,9 +8567,9 @@ const Jn = N(
|
|
|
8502
8567
|
({ authConfig: e, close: A, switchToImplementMode: t }) => {
|
|
8503
8568
|
const s = e?.type, n = s === "saas" ? e.config.clusterId : void 0, r = cA(null), {
|
|
8504
8569
|
state: { status: a, isRedeployment: o }
|
|
8505
|
-
} = w, { areConnectorsReady: c } =
|
|
8570
|
+
} = w, { areConnectorsReady: c } = TA, l = Rt.hasProblems, d = w.isEnvironmentCreated && c, { isLoaded: p } = T.state;
|
|
8506
8571
|
F(() => {
|
|
8507
|
-
p &&
|
|
8572
|
+
p && TA.setupConnectors();
|
|
8508
8573
|
}, [p]), F(() => {
|
|
8509
8574
|
s === "saas" && !n || !p || a !== "initial" || w.setupEnvironment();
|
|
8510
8575
|
}, [p, n, a, s]), F(() => {
|
|
@@ -8513,7 +8578,7 @@ const Jn = N(
|
|
|
8513
8578
|
const {
|
|
8514
8579
|
helperText: h,
|
|
8515
8580
|
status: g,
|
|
8516
|
-
label:
|
|
8581
|
+
label: v,
|
|
8517
8582
|
value: B
|
|
8518
8583
|
} = dd({
|
|
8519
8584
|
isInitial: a === "initial",
|
|
@@ -8539,7 +8604,7 @@ const Jn = N(
|
|
|
8539
8604
|
/* @__PURE__ */ i(js, { children: /* @__PURE__ */ i(
|
|
8540
8605
|
tr,
|
|
8541
8606
|
{
|
|
8542
|
-
label:
|
|
8607
|
+
label: v,
|
|
8543
8608
|
helperText: h,
|
|
8544
8609
|
value: B,
|
|
8545
8610
|
status: g
|
|
@@ -8612,7 +8677,7 @@ class hd {
|
|
|
8612
8677
|
};
|
|
8613
8678
|
render = async (A) => {
|
|
8614
8679
|
const { container: t, xml: s, selectableFlowNodeIds: n, selectedFlowNodeIds: r } = A;
|
|
8615
|
-
if (this.navigatedViewer === null && this.#c(t), this.#A !== s && (this.#A = s, await this.import(s)),
|
|
8680
|
+
if (this.navigatedViewer === null && this.#c(t), this.#A !== s && (this.#A = s, await this.import(s)), !$(this.#e, n)) {
|
|
8616
8681
|
this.#e.forEach((c) => {
|
|
8617
8682
|
this.removeMarker(c, "play-selectable");
|
|
8618
8683
|
}), n.forEach((c) => {
|
|
@@ -8629,7 +8694,7 @@ class hd {
|
|
|
8629
8694
|
this.addMarker(c, "play-non-selectable"), A.showModificationNotSupportedTooltip && this.#i(c, pd);
|
|
8630
8695
|
}), this.#s = o ? o.map(({ id: c }) => c) : [];
|
|
8631
8696
|
}
|
|
8632
|
-
if (
|
|
8697
|
+
if (!$(this.#t?.sort(), r?.sort())) {
|
|
8633
8698
|
this.#t !== void 0 && (this.#t.forEach((o) => {
|
|
8634
8699
|
this.removeMarker(o, "play-selected"), this.removeMarker(o, "play-selected-frame");
|
|
8635
8700
|
}), this.selectedFlowNode = void 0);
|
|
@@ -8824,7 +8889,7 @@ const fd = u.div`
|
|
|
8824
8889
|
min-width: 0;
|
|
8825
8890
|
margin-top: 3px;
|
|
8826
8891
|
}
|
|
8827
|
-
`,
|
|
8892
|
+
`, DA = ({ actions: e, disabled: A }) => {
|
|
8828
8893
|
const [t, s] = y(null), [n, ...r] = e;
|
|
8829
8894
|
return /* @__PURE__ */ f(md, { children: [
|
|
8830
8895
|
/* @__PURE__ */ i(
|
|
@@ -8916,7 +8981,7 @@ const fd = u.div`
|
|
|
8916
8981
|
)
|
|
8917
8982
|
] }), at = N(
|
|
8918
8983
|
({ messageSubscription: e, element: A, isStartEvent: t = !1 }) => {
|
|
8919
|
-
const s = m.state.processInstance, { prefillSource: n } =
|
|
8984
|
+
const s = m.state.processInstance, { prefillSource: n } = fA({
|
|
8920
8985
|
element: A,
|
|
8921
8986
|
useCache: !0,
|
|
8922
8987
|
processId: w.processId
|
|
@@ -8928,7 +8993,7 @@ const fd = u.div`
|
|
|
8928
8993
|
element: A,
|
|
8929
8994
|
isStartEvent: t,
|
|
8930
8995
|
children: ({ publishMessage: r, publishMessageWithVariables: a }) => {
|
|
8931
|
-
const o =
|
|
8996
|
+
const o = kA({
|
|
8932
8997
|
prefix: "Publish message",
|
|
8933
8998
|
prefillSource: n
|
|
8934
8999
|
}), c = async () => {
|
|
@@ -8948,7 +9013,7 @@ const fd = u.div`
|
|
|
8948
9013
|
onSecondaryButtonClick: d
|
|
8949
9014
|
}
|
|
8950
9015
|
) : /* @__PURE__ */ i(
|
|
8951
|
-
|
|
9016
|
+
DA,
|
|
8952
9017
|
{
|
|
8953
9018
|
actions: [
|
|
8954
9019
|
{
|
|
@@ -8971,18 +9036,18 @@ const fd = u.div`
|
|
|
8971
9036
|
}
|
|
8972
9037
|
);
|
|
8973
9038
|
at.displayName = "TriggerMessageSubscriptionButton";
|
|
8974
|
-
const Ed = { top: -20, left: -30 },
|
|
9039
|
+
const Ed = { top: -20, left: -30 }, IA = { top: -38, left: 0 }, Ot = { top: -58, left: 0 }, yd = { bottom: 14, left: -6 }, We = yd, Bd = IA, Id = Ot, Md = IA, Sd = Ot, Dd = IA, Cd = IA, kd = IA, Td = IA, Nd = IA, xd = { ...Ed, top: -40 }, Fd = IA, Qd = IA, Rd = IA, Pd = Ot, Od = IA, Un = N(({ element: e }) => /* @__PURE__ */ i(Ft, { element: e, children: ({
|
|
8975
9040
|
startInstance: A,
|
|
8976
9041
|
startInstanceWithVariables: t,
|
|
8977
9042
|
startInstanceWithForm: s,
|
|
8978
9043
|
isStartingInstance: n,
|
|
8979
9044
|
hasForm: r
|
|
8980
9045
|
}) => {
|
|
8981
|
-
const { prefillData: a, prefillSource: o } =
|
|
9046
|
+
const { prefillData: a, prefillSource: o } = fA({
|
|
8982
9047
|
element: e,
|
|
8983
9048
|
useCache: !0,
|
|
8984
9049
|
processId: w.processId
|
|
8985
|
-
}), c =
|
|
9050
|
+
}), c = kA({
|
|
8986
9051
|
prefix: "Start instance",
|
|
8987
9052
|
prefillSource: o
|
|
8988
9053
|
});
|
|
@@ -8995,7 +9060,7 @@ const Ed = { top: -20, left: -30 }, yA = { top: -38, left: 0 }, Ot = { top: -58,
|
|
|
8995
9060
|
r ? s() : A({
|
|
8996
9061
|
processId: w.processId,
|
|
8997
9062
|
variables: a || "{}",
|
|
8998
|
-
successNotificationSubtitle:
|
|
9063
|
+
successNotificationSubtitle: kA({ prefillSource: o }) || void 0
|
|
8999
9064
|
});
|
|
9000
9065
|
},
|
|
9001
9066
|
secondaryButtonLabel: "Edit variables and start instance",
|
|
@@ -9007,7 +9072,7 @@ const Ed = { top: -20, left: -30 }, yA = { top: -38, left: 0 }, Ot = { top: -58,
|
|
|
9007
9072
|
} }));
|
|
9008
9073
|
Un.displayName = "StartInstanceButton";
|
|
9009
9074
|
function Gd(e) {
|
|
9010
|
-
return
|
|
9075
|
+
return GA(e, "zeebe:CalledElement")?.get("processId") ?? null;
|
|
9011
9076
|
}
|
|
9012
9077
|
const Ld = ({
|
|
9013
9078
|
childInstances: e,
|
|
@@ -9021,12 +9086,12 @@ const Ld = ({
|
|
|
9021
9086
|
const s = t.find(({ state: n }) => n === "ACTIVE");
|
|
9022
9087
|
return s !== void 0 ? s : t[0];
|
|
9023
9088
|
}, Yn = N(({ element: e, isActive: A }) => {
|
|
9024
|
-
const t = tA(
|
|
9089
|
+
const t = tA(AA), s = Gd(e), n = Ld({
|
|
9025
9090
|
childInstances: tt.state.childInstances,
|
|
9026
9091
|
calledProcessId: s
|
|
9027
9092
|
});
|
|
9028
9093
|
return n === void 0 ? null : /* @__PURE__ */ i(
|
|
9029
|
-
|
|
9094
|
+
DA,
|
|
9030
9095
|
{
|
|
9031
9096
|
actions: [
|
|
9032
9097
|
{
|
|
@@ -9063,7 +9128,7 @@ const Vd = u(J)`
|
|
|
9063
9128
|
] });
|
|
9064
9129
|
Kn.displayName = "CompletedOverlay";
|
|
9065
9130
|
const Zn = N(({ element: e, incident: A }) => {
|
|
9066
|
-
const t = tA(
|
|
9131
|
+
const t = tA(AA), [s, n] = y(!1), { processInstance: r } = m.state, a = t.featureFlags.areAIFeaturesEnabled, o = a, c = o || t.isUserOrgOwnerOrAdmin, l = w.authType !== "sm" ? {
|
|
9067
9132
|
label: o ? "Copy and ask AI" : "Enable incident copilot",
|
|
9068
9133
|
id: a ? "camunda-ai-button" : void 0,
|
|
9069
9134
|
icon: /* @__PURE__ */ i(Dl, {}),
|
|
@@ -9076,14 +9141,14 @@ Error type: ${A.type}
|
|
|
9076
9141
|
Error message: ${A.message}`
|
|
9077
9142
|
), t.displayNotification?.info({
|
|
9078
9143
|
title: "AI prompt copied. Paste in the text area to continue."
|
|
9079
|
-
}), n(!1)) : window.open(`${t.organizationManagementPageUrl}/settings`),
|
|
9144
|
+
}), n(!1)) : window.open(`${t.organizationManagementPageUrl}/settings`), L.trackIncidentAIModalOpened({
|
|
9080
9145
|
areAIFeaturesEnabled: a
|
|
9081
9146
|
});
|
|
9082
9147
|
}
|
|
9083
9148
|
} : void 0;
|
|
9084
9149
|
return /* @__PURE__ */ f(H, { children: [
|
|
9085
9150
|
/* @__PURE__ */ i(
|
|
9086
|
-
|
|
9151
|
+
DA,
|
|
9087
9152
|
{
|
|
9088
9153
|
actions: [
|
|
9089
9154
|
{
|
|
@@ -9099,7 +9164,7 @@ Error message: ${A.message}`
|
|
|
9099
9164
|
}
|
|
9100
9165
|
),
|
|
9101
9166
|
/* @__PURE__ */ i(
|
|
9102
|
-
|
|
9167
|
+
jA,
|
|
9103
9168
|
{
|
|
9104
9169
|
title: "View incident",
|
|
9105
9170
|
isVisible: s,
|
|
@@ -9111,25 +9176,25 @@ Error message: ${A.message}`
|
|
|
9111
9176
|
},
|
|
9112
9177
|
onClose: () => n(!1),
|
|
9113
9178
|
onSubmit: async () => {
|
|
9114
|
-
if (n(!1), A.jobKey && !await
|
|
9179
|
+
if (n(!1), A.jobKey && !await ue.updateRetries({
|
|
9115
9180
|
jobKey: A.jobKey
|
|
9116
9181
|
})) {
|
|
9117
|
-
t.displayNotification?.error(
|
|
9182
|
+
t.displayNotification?.error(_);
|
|
9118
9183
|
return;
|
|
9119
9184
|
}
|
|
9120
|
-
|
|
9121
|
-
const d = await
|
|
9122
|
-
if (d.status ===
|
|
9185
|
+
L.trackResolveIncident(w.processId);
|
|
9186
|
+
const d = await ue.resolveIncident(A.key);
|
|
9187
|
+
if (d.status === NA) {
|
|
9123
9188
|
t.displayNotification?.error(
|
|
9124
9189
|
{
|
|
9125
|
-
title:
|
|
9190
|
+
title: xA,
|
|
9126
9191
|
subtitle: `Please contact your ${w.authType === "sm" ? "admin" : "organization owner or admin"} to give you the necessary permissions to resolve this incident.`
|
|
9127
9192
|
},
|
|
9128
9193
|
bA
|
|
9129
9194
|
);
|
|
9130
9195
|
return;
|
|
9131
9196
|
}
|
|
9132
|
-
d.success === !1 ? t.displayNotification?.error(
|
|
9197
|
+
d.success === !1 ? t.displayNotification?.error(_) : r !== void 0 && oA(q(r.key), {
|
|
9133
9198
|
action: "resolveIncident",
|
|
9134
9199
|
elementId: e.id,
|
|
9135
9200
|
hasJob: !!A.jobKey
|
|
@@ -9144,7 +9209,7 @@ Zn.displayName = "IncidentButton";
|
|
|
9144
9209
|
const qn = N(({ element: e }) => {
|
|
9145
9210
|
const { completedElementInstances: A } = W, { isInstanceDetailPageVisible: t } = m, s = iA.state.activeTab === "scenarios", {
|
|
9146
9211
|
state: { sequenceFlows: n }
|
|
9147
|
-
} =
|
|
9212
|
+
} = te, r = x.state.selectedScenario?.coveredSequenceFlows ?? x.allCoveredSequenceFlows;
|
|
9148
9213
|
return F(() => {
|
|
9149
9214
|
if (t)
|
|
9150
9215
|
return n.includes(e.id) || e?.di?.bpmnElement?.sourceRef?.$type === "bpmn:EventBasedGateway" && A.some(
|
|
@@ -9207,15 +9272,15 @@ function ot(e, A, t) {
|
|
|
9207
9272
|
A?.success(n);
|
|
9208
9273
|
}
|
|
9209
9274
|
const jn = N(({ element: e }) => {
|
|
9210
|
-
const { displayNotification: A } = tA(
|
|
9211
|
-
({ activityId: P, active:
|
|
9275
|
+
const { displayNotification: A } = tA(AA), [t, s] = y(!1), [n, r] = y(!1), [a, o] = y(""), [c, l] = y(!1), { instanceKey: d, processInstance: p } = m.state, h = Bt(e), v = rA.state.statistics.some(
|
|
9276
|
+
({ activityId: P, active: C }) => P === e.id && C > 0
|
|
9212
9277
|
) && tn.includes(e.businessObject.$type) && h !== void 0;
|
|
9213
9278
|
F(() => {
|
|
9214
9279
|
l(!1);
|
|
9215
|
-
}, [
|
|
9280
|
+
}, [v]);
|
|
9216
9281
|
const B = T.getAvailableErrorEvents(e), E = U(async () => {
|
|
9217
9282
|
r(!1), l(!0);
|
|
9218
|
-
const P = await
|
|
9283
|
+
const P = await KA.throwError({
|
|
9219
9284
|
taskDefinitionType: h,
|
|
9220
9285
|
processInstanceKey: d,
|
|
9221
9286
|
errorCode: a,
|
|
@@ -9228,13 +9293,13 @@ const jn = N(({ element: e }) => {
|
|
|
9228
9293
|
errorCode: a,
|
|
9229
9294
|
taskDefinitionType: h
|
|
9230
9295
|
});
|
|
9231
|
-
const
|
|
9296
|
+
const C = B.find(
|
|
9232
9297
|
(Q) => Q.errorCode === a
|
|
9233
9298
|
)?.errorElementId;
|
|
9234
9299
|
A?.success(
|
|
9235
9300
|
{
|
|
9236
9301
|
title: zn({
|
|
9237
|
-
elementId:
|
|
9302
|
+
elementId: C,
|
|
9238
9303
|
errorCode: a
|
|
9239
9304
|
})
|
|
9240
9305
|
},
|
|
@@ -9253,7 +9318,7 @@ const jn = N(({ element: e }) => {
|
|
|
9253
9318
|
}
|
|
9254
9319
|
P || (A?.error(
|
|
9255
9320
|
{
|
|
9256
|
-
title:
|
|
9321
|
+
title: _.title,
|
|
9257
9322
|
subtitle: "Please try again or make sure you have the right permissions to throw an error"
|
|
9258
9323
|
},
|
|
9259
9324
|
bA
|
|
@@ -9265,24 +9330,24 @@ const jn = N(({ element: e }) => {
|
|
|
9265
9330
|
h,
|
|
9266
9331
|
a,
|
|
9267
9332
|
d
|
|
9268
|
-
]),
|
|
9333
|
+
]), D = U(async () => {
|
|
9269
9334
|
A?.error(
|
|
9270
9335
|
{
|
|
9271
|
-
title:
|
|
9336
|
+
title: _.title,
|
|
9272
9337
|
subtitle: "Please try again or make sure you have the right permissions to complete the job"
|
|
9273
9338
|
},
|
|
9274
9339
|
bA
|
|
9275
9340
|
);
|
|
9276
9341
|
}, [A]);
|
|
9277
|
-
if (!d || !
|
|
9342
|
+
if (!d || !v)
|
|
9278
9343
|
return null;
|
|
9279
|
-
const { prefillData: R, prefillSource: I } =
|
|
9344
|
+
const { prefillData: R, prefillSource: I } = fA({
|
|
9280
9345
|
element: e,
|
|
9281
9346
|
useCache: !0,
|
|
9282
9347
|
processId: w.processId
|
|
9283
|
-
}),
|
|
9348
|
+
}), V = [
|
|
9284
9349
|
{
|
|
9285
|
-
label:
|
|
9350
|
+
label: kA({
|
|
9286
9351
|
prefix: "Complete job",
|
|
9287
9352
|
prefillSource: I
|
|
9288
9353
|
}),
|
|
@@ -9291,7 +9356,7 @@ const jn = N(({ element: e }) => {
|
|
|
9291
9356
|
onClick: async () => {
|
|
9292
9357
|
l(!0);
|
|
9293
9358
|
let P = !1;
|
|
9294
|
-
if (P = await
|
|
9359
|
+
if (P = await KA.completeJob({
|
|
9295
9360
|
taskDefinitionType: h,
|
|
9296
9361
|
processInstanceKey: p?.key,
|
|
9297
9362
|
variables: R,
|
|
@@ -9302,11 +9367,11 @@ const jn = N(({ element: e }) => {
|
|
|
9302
9367
|
elementId: e.id,
|
|
9303
9368
|
variables: R || void 0,
|
|
9304
9369
|
taskDefinitionType: h
|
|
9305
|
-
}),
|
|
9306
|
-
|
|
9370
|
+
}), L.trackUserCompletesElement(e, R)), !P)
|
|
9371
|
+
D(), l(!1);
|
|
9307
9372
|
else {
|
|
9308
|
-
const
|
|
9309
|
-
ot(e, A,
|
|
9373
|
+
const C = kA({ prefillSource: I }) || void 0;
|
|
9374
|
+
ot(e, A, C);
|
|
9310
9375
|
}
|
|
9311
9376
|
}
|
|
9312
9377
|
},
|
|
@@ -9318,7 +9383,7 @@ const jn = N(({ element: e }) => {
|
|
|
9318
9383
|
}
|
|
9319
9384
|
}
|
|
9320
9385
|
];
|
|
9321
|
-
return
|
|
9386
|
+
return v && B.length > 0 && V.push(
|
|
9322
9387
|
{
|
|
9323
9388
|
//@ts-expect-error Object literal may only specify known properties, and 'type' does not exist in type '{ label: string; renderIcon: () => Element; onClick: () => Promise<void>; } | { label: string; onClick: () => void; renderIcon?: undefined; }'.ts(2353)
|
|
9324
9389
|
type: "divider",
|
|
@@ -9331,7 +9396,7 @@ const jn = N(({ element: e }) => {
|
|
|
9331
9396
|
}
|
|
9332
9397
|
}
|
|
9333
9398
|
), /* @__PURE__ */ f(H, { children: [
|
|
9334
|
-
/* @__PURE__ */ i(
|
|
9399
|
+
/* @__PURE__ */ i(DA, { disabled: c, actions: V }),
|
|
9335
9400
|
/* @__PURE__ */ i(
|
|
9336
9401
|
Qe,
|
|
9337
9402
|
{
|
|
@@ -9342,31 +9407,31 @@ const jn = N(({ element: e }) => {
|
|
|
9342
9407
|
element: e,
|
|
9343
9408
|
onSubmit: async (P) => {
|
|
9344
9409
|
s(!1), l(!0);
|
|
9345
|
-
let
|
|
9346
|
-
|
|
9410
|
+
let C = !1;
|
|
9411
|
+
C = await KA.completeJob({
|
|
9347
9412
|
taskDefinitionType: h,
|
|
9348
9413
|
processInstanceKey: p?.key,
|
|
9349
9414
|
variables: P,
|
|
9350
9415
|
elementId: e.id
|
|
9351
|
-
}),
|
|
9416
|
+
}), C && p !== void 0 && (oA(q(p.key), {
|
|
9352
9417
|
action: "completeJob",
|
|
9353
9418
|
type: "serviceTask",
|
|
9354
9419
|
elementId: e.id,
|
|
9355
9420
|
variables: P ?? void 0,
|
|
9356
9421
|
taskDefinitionType: h
|
|
9357
|
-
}),
|
|
9422
|
+
}), L.trackUserCompletesElement(
|
|
9358
9423
|
e,
|
|
9359
9424
|
P
|
|
9360
|
-
),
|
|
9425
|
+
), pe({
|
|
9361
9426
|
processId: w.processId,
|
|
9362
9427
|
elementId: e.id,
|
|
9363
9428
|
variables: P ?? ""
|
|
9364
|
-
})),
|
|
9429
|
+
})), C ? ot(e, A) : (D(), l(!1));
|
|
9365
9430
|
}
|
|
9366
9431
|
}
|
|
9367
9432
|
),
|
|
9368
9433
|
/* @__PURE__ */ i(
|
|
9369
|
-
|
|
9434
|
+
jA,
|
|
9370
9435
|
{
|
|
9371
9436
|
isVisible: n,
|
|
9372
9437
|
title: "Throw error",
|
|
@@ -9386,9 +9451,9 @@ const jn = N(({ element: e }) => {
|
|
|
9386
9451
|
id: "error",
|
|
9387
9452
|
"aria-label": "Select an Error",
|
|
9388
9453
|
items: B.map(
|
|
9389
|
-
({ errorCode: P, errorName:
|
|
9454
|
+
({ errorCode: P, errorName: C, errorElementId: Q }) => ({
|
|
9390
9455
|
id: P,
|
|
9391
|
-
label:
|
|
9456
|
+
label: C ?? Q
|
|
9392
9457
|
})
|
|
9393
9458
|
),
|
|
9394
9459
|
onChange: ({ selectedItem: P }) => {
|
|
@@ -9423,10 +9488,10 @@ class Zd extends fn {
|
|
|
9423
9488
|
state = { ...Ns };
|
|
9424
9489
|
constructor() {
|
|
9425
9490
|
super(), nA(this, {
|
|
9426
|
-
state:
|
|
9427
|
-
startRewinding:
|
|
9428
|
-
endRewinding:
|
|
9429
|
-
reset:
|
|
9491
|
+
state: lA,
|
|
9492
|
+
startRewinding: S,
|
|
9493
|
+
endRewinding: S,
|
|
9494
|
+
reset: S
|
|
9430
9495
|
});
|
|
9431
9496
|
}
|
|
9432
9497
|
startRewinding = () => {
|
|
@@ -9439,10 +9504,10 @@ class Zd extends fn {
|
|
|
9439
9504
|
this.state = { ...Ns };
|
|
9440
9505
|
};
|
|
9441
9506
|
}
|
|
9442
|
-
const
|
|
9443
|
-
const A = tA(
|
|
9507
|
+
const HA = new Zd(), Wn = N(({ element: e }) => {
|
|
9508
|
+
const A = tA(AA), { instanceKey: t, processInstance: s } = m.state, n = s?.state === "ACTIVE";
|
|
9444
9509
|
return /* @__PURE__ */ i(
|
|
9445
|
-
|
|
9510
|
+
DA,
|
|
9446
9511
|
{
|
|
9447
9512
|
actions: [
|
|
9448
9513
|
{
|
|
@@ -9453,36 +9518,36 @@ const JA = new Zd(), Wn = N(({ element: e }) => {
|
|
|
9453
9518
|
onClick: async () => {
|
|
9454
9519
|
if (s === void 0)
|
|
9455
9520
|
return;
|
|
9456
|
-
|
|
9457
|
-
const r =
|
|
9521
|
+
HA.startRewinding();
|
|
9522
|
+
const r = ce(
|
|
9458
9523
|
q(s.key)
|
|
9459
9524
|
), a = r.find(
|
|
9460
9525
|
({ action: l }) => l === "startInstance"
|
|
9461
9526
|
);
|
|
9462
9527
|
if (a === void 0) {
|
|
9463
|
-
|
|
9528
|
+
HA.endRewinding(), A.displayNotification?.error({
|
|
9464
9529
|
title: "Rewind failed",
|
|
9465
9530
|
subtitle: "Please try again"
|
|
9466
9531
|
});
|
|
9467
9532
|
return;
|
|
9468
9533
|
}
|
|
9469
|
-
const o = await
|
|
9534
|
+
const o = await HA.createNewInstance({
|
|
9470
9535
|
startActionType: a.type,
|
|
9471
9536
|
variables: a.variables,
|
|
9472
9537
|
elementId: a.elementId,
|
|
9473
9538
|
bpmnProcessId: s.bpmnProcessId
|
|
9474
9539
|
});
|
|
9475
9540
|
if (o === void 0) {
|
|
9476
|
-
|
|
9541
|
+
HA.endRewinding(), A.displayNotification?.error({
|
|
9477
9542
|
title: "Rewind failed",
|
|
9478
9543
|
subtitle: "Please try again"
|
|
9479
9544
|
});
|
|
9480
9545
|
return;
|
|
9481
9546
|
}
|
|
9482
|
-
await Yd(o),
|
|
9547
|
+
await Yd(o), L.trackRewindedInstanceStart(), m.reset(), m.setInstanceDetails({
|
|
9483
9548
|
instanceKey: o,
|
|
9484
9549
|
instanceType: "REWOUND_INSTANCE"
|
|
9485
|
-
}), await
|
|
9550
|
+
}), await HA.repeatUserActions({
|
|
9486
9551
|
newInstanceKey: o,
|
|
9487
9552
|
actions: r,
|
|
9488
9553
|
untilElementId: e.id
|
|
@@ -9509,7 +9574,7 @@ const JA = new Zd(), Wn = N(({ element: e }) => {
|
|
|
9509
9574
|
}
|
|
9510
9575
|
}
|
|
9511
9576
|
}
|
|
9512
|
-
),
|
|
9577
|
+
), HA.endRewinding();
|
|
9513
9578
|
}
|
|
9514
9579
|
}
|
|
9515
9580
|
]
|
|
@@ -9519,7 +9584,7 @@ const JA = new Zd(), Wn = N(({ element: e }) => {
|
|
|
9519
9584
|
Wn.displayName = "RewindButton";
|
|
9520
9585
|
const ct = N(
|
|
9521
9586
|
({ signalCandidate: e, element: A, isStartEvent: t = !1 }) => {
|
|
9522
|
-
const s = m.state.processInstance, { prefillSource: n } =
|
|
9587
|
+
const s = m.state.processInstance, { prefillSource: n } = fA({
|
|
9523
9588
|
element: A,
|
|
9524
9589
|
useCache: !0,
|
|
9525
9590
|
processId: w.processId
|
|
@@ -9531,7 +9596,7 @@ const ct = N(
|
|
|
9531
9596
|
element: A,
|
|
9532
9597
|
isStartEvent: t,
|
|
9533
9598
|
children: ({ broadcastSignal: r, broadcastSignalWithVariables: a }) => {
|
|
9534
|
-
const o =
|
|
9599
|
+
const o = kA({
|
|
9535
9600
|
prefix: "Broadcast signal",
|
|
9536
9601
|
prefillSource: n
|
|
9537
9602
|
}), c = async () => {
|
|
@@ -9551,7 +9616,7 @@ const ct = N(
|
|
|
9551
9616
|
onSecondaryButtonClick: d
|
|
9552
9617
|
}
|
|
9553
9618
|
) : /* @__PURE__ */ i(
|
|
9554
|
-
|
|
9619
|
+
DA,
|
|
9555
9620
|
{
|
|
9556
9621
|
actions: [
|
|
9557
9622
|
{
|
|
@@ -9588,7 +9653,7 @@ const Xn = N(({ decisionId: e }) => {
|
|
|
9588
9653
|
isDisabled: !n,
|
|
9589
9654
|
text: n ? void 0 : "Please contact your organization owner or admin to give you the necessary permissions to view the Decision instance.",
|
|
9590
9655
|
children: /* @__PURE__ */ i(
|
|
9591
|
-
|
|
9656
|
+
DA,
|
|
9592
9657
|
{
|
|
9593
9658
|
actions: [
|
|
9594
9659
|
{
|
|
@@ -9600,7 +9665,7 @@ const Xn = N(({ decisionId: e }) => {
|
|
|
9600
9665
|
if (!n)
|
|
9601
9666
|
return;
|
|
9602
9667
|
const r = `${t}/decisions/${A.id}`;
|
|
9603
|
-
window.open(r, "_blank"),
|
|
9668
|
+
window.open(r, "_blank"), L.openOperate(r);
|
|
9604
9669
|
}
|
|
9605
9670
|
}
|
|
9606
9671
|
]
|
|
@@ -9610,13 +9675,13 @@ const Xn = N(({ decisionId: e }) => {
|
|
|
9610
9675
|
);
|
|
9611
9676
|
});
|
|
9612
9677
|
Xn.displayName = "ViewDecisionInstanceButton";
|
|
9613
|
-
const qd = (e) =>
|
|
9614
|
-
const [A, t] = y(!1), [s, n] = y(""), r = m.state.processInstance?.key, a = tA(
|
|
9678
|
+
const qd = (e) => GA(e, "zeebe:CalledDecision")?.get("decisionId") ?? null, zd = N(({ element: e }) => {
|
|
9679
|
+
const [A, t] = y(!1), [s, n] = y(""), r = m.state.processInstance?.key, a = tA(AA), o = KA.errorThrowableJobsByErrorId[e.id];
|
|
9615
9680
|
if (o === void 0)
|
|
9616
9681
|
return null;
|
|
9617
9682
|
const c = async (d) => {
|
|
9618
9683
|
const { elementId: p, errorCode: h, taskDefinitionType: g } = d;
|
|
9619
|
-
if (t(!1), !await
|
|
9684
|
+
if (t(!1), !await KA.throwError({
|
|
9620
9685
|
taskDefinitionType: g,
|
|
9621
9686
|
processInstanceKey: r,
|
|
9622
9687
|
elementId: p,
|
|
@@ -9624,7 +9689,7 @@ const qd = (e) => LA(e, "zeebe:CalledDecision")?.get("decisionId") ?? null, zd =
|
|
|
9624
9689
|
})) {
|
|
9625
9690
|
a.displayNotification?.error(
|
|
9626
9691
|
{
|
|
9627
|
-
title:
|
|
9692
|
+
title: _.title,
|
|
9628
9693
|
subtitle: "Please try again or make sure you have the right permissions to throw an error"
|
|
9629
9694
|
},
|
|
9630
9695
|
bA
|
|
@@ -9667,9 +9732,9 @@ const qd = (e) => LA(e, "zeebe:CalledDecision")?.get("decisionId") ?? null, zd =
|
|
|
9667
9732
|
}
|
|
9668
9733
|
];
|
|
9669
9734
|
return /* @__PURE__ */ f(H, { children: [
|
|
9670
|
-
/* @__PURE__ */ i(
|
|
9735
|
+
/* @__PURE__ */ i(DA, { actions: l }),
|
|
9671
9736
|
/* @__PURE__ */ i(
|
|
9672
|
-
|
|
9737
|
+
jA,
|
|
9673
9738
|
{
|
|
9674
9739
|
isVisible: A,
|
|
9675
9740
|
title: "Throw error",
|
|
@@ -9713,7 +9778,7 @@ function $n({
|
|
|
9713
9778
|
element: A,
|
|
9714
9779
|
isSelfManagedEnv: t
|
|
9715
9780
|
}) {
|
|
9716
|
-
const [s, n] = y(!1), { displayNotification: r, featureFlags: a } = tA(
|
|
9781
|
+
const [s, n] = y(!1), { displayNotification: r, featureFlags: a } = tA(AA), o = U(
|
|
9717
9782
|
async ({
|
|
9718
9783
|
variables: c,
|
|
9719
9784
|
processInstanceKey: l,
|
|
@@ -9744,28 +9809,28 @@ function $n({
|
|
|
9744
9809
|
), n(!1);
|
|
9745
9810
|
return;
|
|
9746
9811
|
}
|
|
9747
|
-
const { success: g, status:
|
|
9812
|
+
const { success: g, status: v } = await M.completeUserTask({
|
|
9748
9813
|
taskId: e.id,
|
|
9749
9814
|
variables: c,
|
|
9750
9815
|
isZeebeUserTask: h
|
|
9751
9816
|
});
|
|
9752
9817
|
if (!g) {
|
|
9753
|
-
|
|
9818
|
+
v === NA ? r?.error(
|
|
9754
9819
|
{
|
|
9755
|
-
title:
|
|
9820
|
+
title: xA,
|
|
9756
9821
|
subtitle: `Please contact your ${t ? "admin" : "organization owner or admin"} to give you the necessary permissions to update the user task.`
|
|
9757
9822
|
},
|
|
9758
9823
|
bA
|
|
9759
|
-
) : r?.error(
|
|
9824
|
+
) : r?.error(_), n(!1);
|
|
9760
9825
|
return;
|
|
9761
9826
|
}
|
|
9762
|
-
const B = p &&
|
|
9827
|
+
const B = p && kA({ prefillSource: p }) || void 0;
|
|
9763
9828
|
ot(A, r, B), oA(q(l), {
|
|
9764
9829
|
action: "completeJob",
|
|
9765
9830
|
type: "userTask",
|
|
9766
9831
|
elementId: A.id,
|
|
9767
9832
|
variables: c
|
|
9768
|
-
}),
|
|
9833
|
+
}), L.trackUserCompletesElement(A, c), pe({ processId: d, elementId: A.id, variables: c }), n(!1);
|
|
9769
9834
|
},
|
|
9770
9835
|
[
|
|
9771
9836
|
e,
|
|
@@ -9813,7 +9878,7 @@ const jd = "camunda-forms:bpmn:", Wd = async ({
|
|
|
9813
9878
|
}
|
|
9814
9879
|
];
|
|
9815
9880
|
return /* @__PURE__ */ f(H, { children: [
|
|
9816
|
-
/* @__PURE__ */ i(
|
|
9881
|
+
/* @__PURE__ */ i(DA, { disabled: c, actions: d }),
|
|
9817
9882
|
/* @__PURE__ */ i(
|
|
9818
9883
|
Qe,
|
|
9819
9884
|
{
|
|
@@ -9869,7 +9934,7 @@ const Ai = N(
|
|
|
9869
9934
|
return null;
|
|
9870
9935
|
const a = Be.state.userTasks?.find(
|
|
9871
9936
|
(h) => h.taskDefinitionId === e.id && h.taskState === "CREATED"
|
|
9872
|
-
), o = a !== void 0, { prefillData: c, prefillSource: l } =
|
|
9937
|
+
), o = a !== void 0, { prefillData: c, prefillSource: l } = fA({
|
|
9873
9938
|
element: e,
|
|
9874
9939
|
useCache: !0,
|
|
9875
9940
|
processId: w.processId
|
|
@@ -9886,12 +9951,12 @@ const Ai = N(
|
|
|
9886
9951
|
isDisabled: !o,
|
|
9887
9952
|
text: o ? void 0 : "Please try again later or make sure you have the right permissions to interact with this user task.",
|
|
9888
9953
|
children: /* @__PURE__ */ i(
|
|
9889
|
-
|
|
9954
|
+
DA,
|
|
9890
9955
|
{
|
|
9891
9956
|
disabled: d || !o,
|
|
9892
9957
|
actions: [
|
|
9893
9958
|
{
|
|
9894
|
-
label:
|
|
9959
|
+
label: kA({
|
|
9895
9960
|
prefix: "Complete job",
|
|
9896
9961
|
prefillSource: l
|
|
9897
9962
|
}),
|
|
@@ -9940,42 +10005,42 @@ const Ai = N(
|
|
|
9940
10005
|
);
|
|
9941
10006
|
Ai.displayName = "UserTaskCompleteButton";
|
|
9942
10007
|
const ei = N(({ element: e, addOverlay: A }) => {
|
|
9943
|
-
const { instanceKey: t, processInstance: s } = m.state, { isCalledProcess: n } = m, r =
|
|
9944
|
-
(
|
|
10008
|
+
const { instanceKey: t, processInstance: s } = m.state, { isCalledProcess: n } = m, r = ue.incidents?.find(
|
|
10009
|
+
(b) => b.elementInstance?.element?.elementId === e.id && ["ACTIVE", "MIGRATED"].includes(b.state)
|
|
9945
10010
|
);
|
|
9946
10011
|
if (r) {
|
|
9947
|
-
const
|
|
10012
|
+
const b = A(e, "INCIDENT_BUTTON", Bd);
|
|
9948
10013
|
return Y(
|
|
9949
10014
|
/* @__PURE__ */ i(Zn, { element: e, incident: r }),
|
|
9950
|
-
|
|
10015
|
+
b
|
|
9951
10016
|
);
|
|
9952
10017
|
}
|
|
9953
10018
|
if (e.type === "bpmn:StartEvent" && ["bpmn:Process", "bpmn:Participant"].includes(e.parent?.type) && (!e.businessObject.eventDefinitions || e.businessObject.eventDefinitions.length === 0) && t === void 0) {
|
|
9954
|
-
const
|
|
10019
|
+
const b = A(
|
|
9955
10020
|
e,
|
|
9956
10021
|
"START_INSTANCE_BUTTON",
|
|
9957
10022
|
Id
|
|
9958
10023
|
);
|
|
9959
|
-
return Y(/* @__PURE__ */ i(Un, { element: e }),
|
|
10024
|
+
return Y(/* @__PURE__ */ i(Un, { element: e }), b);
|
|
9960
10025
|
}
|
|
9961
10026
|
if (e.type === "bpmn:EndEvent" && m.state.processInstance?.state === "COMPLETED" && ["bpmn:Process", "bpmn:Participant"].includes(e.parent?.type) && rA.completedElementIds.includes(e.id)) {
|
|
9962
|
-
const
|
|
9963
|
-
return Y(/* @__PURE__ */ i(Kn, {}),
|
|
10027
|
+
const b = A(e, "FINISHED_OVERLAY", xd);
|
|
10028
|
+
return Y(/* @__PURE__ */ i(Kn, {}), b);
|
|
9964
10029
|
}
|
|
9965
10030
|
if (Mr.includes(e.type) && rA.isElementProcessed(e.id) && !rA.activeElementIds.includes(e.id) && !n) {
|
|
9966
|
-
const
|
|
9967
|
-
return Y(/* @__PURE__ */ i(Wn, { element: e }),
|
|
10031
|
+
const b = A(e, "REWIND_OVERLAY", Fd);
|
|
10032
|
+
return Y(/* @__PURE__ */ i(Wn, { element: e }), b);
|
|
9968
10033
|
}
|
|
9969
10034
|
const {
|
|
9970
10035
|
state: { connectorElements: o }
|
|
9971
|
-
} =
|
|
9972
|
-
if (t && o?.find((
|
|
10036
|
+
} = TA;
|
|
10037
|
+
if (t && o?.find((b) => b.id === e.id))
|
|
9973
10038
|
return null;
|
|
9974
|
-
const l =
|
|
9975
|
-
(
|
|
10039
|
+
const l = le.activeMessageSubscriptionCandidates.find(
|
|
10040
|
+
(b) => b.elementId === e.id
|
|
9976
10041
|
);
|
|
9977
10042
|
if (l) {
|
|
9978
|
-
const
|
|
10043
|
+
const b = A(
|
|
9979
10044
|
e,
|
|
9980
10045
|
"TRIGGER_MESSAGE_SUBSCRIPTION_BUTTON",
|
|
9981
10046
|
Md
|
|
@@ -9988,14 +10053,14 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
9988
10053
|
messageSubscription: l
|
|
9989
10054
|
}
|
|
9990
10055
|
),
|
|
9991
|
-
|
|
10056
|
+
b
|
|
9992
10057
|
);
|
|
9993
10058
|
}
|
|
9994
|
-
const p =
|
|
9995
|
-
(
|
|
10059
|
+
const p = le.startMessageSubscriptionCandidates?.find(
|
|
10060
|
+
(b) => b.elementId === e.id
|
|
9996
10061
|
);
|
|
9997
10062
|
if (p && t === void 0) {
|
|
9998
|
-
const
|
|
10063
|
+
const b = A(
|
|
9999
10064
|
e,
|
|
10000
10065
|
"TRIGGER_MESSAGE_SUBSCRIPTION_BUTTON",
|
|
10001
10066
|
Sd
|
|
@@ -10011,19 +10076,19 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10011
10076
|
isStartEvent: !0
|
|
10012
10077
|
}
|
|
10013
10078
|
),
|
|
10014
|
-
|
|
10079
|
+
b
|
|
10015
10080
|
);
|
|
10016
10081
|
}
|
|
10017
10082
|
if (e.type === "bpmn:SequenceFlow") {
|
|
10018
|
-
const
|
|
10083
|
+
const b = A(
|
|
10019
10084
|
e,
|
|
10020
10085
|
"SEQUENCE_FLOW_HIGHLIGHTER",
|
|
10021
10086
|
Dd
|
|
10022
10087
|
);
|
|
10023
|
-
return Y(/* @__PURE__ */ i(qn, { element: e }),
|
|
10088
|
+
return Y(/* @__PURE__ */ i(qn, { element: e }), b);
|
|
10024
10089
|
}
|
|
10025
10090
|
if (e.type === "bpmn:CallActivity" && rA.isElementProcessed(e.id)) {
|
|
10026
|
-
const
|
|
10091
|
+
const b = A(
|
|
10027
10092
|
e,
|
|
10028
10093
|
"CHILD_INSTANCE_BUTTON",
|
|
10029
10094
|
Cd
|
|
@@ -10036,40 +10101,40 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10036
10101
|
isActive: rA.activeElementIds.includes(e.id)
|
|
10037
10102
|
}
|
|
10038
10103
|
),
|
|
10039
|
-
|
|
10104
|
+
b
|
|
10040
10105
|
);
|
|
10041
10106
|
}
|
|
10042
10107
|
const g = qd(e);
|
|
10043
10108
|
if (e.type === "bpmn:BusinessRuleTask" && rA.isElementProcessed(e.id) && g !== null) {
|
|
10044
|
-
const
|
|
10109
|
+
const b = A(
|
|
10045
10110
|
e,
|
|
10046
10111
|
"VIEW_DECISION_INSTANCE_BUTTON",
|
|
10047
10112
|
Qd
|
|
10048
10113
|
);
|
|
10049
10114
|
return Y(
|
|
10050
10115
|
/* @__PURE__ */ i(Xn, { decisionId: g }),
|
|
10051
|
-
|
|
10116
|
+
b
|
|
10052
10117
|
);
|
|
10053
10118
|
}
|
|
10054
|
-
const B =
|
|
10055
|
-
(
|
|
10119
|
+
const B = de.activeSignalCandidates.find(
|
|
10120
|
+
(b) => b.elementId === e.id
|
|
10056
10121
|
);
|
|
10057
10122
|
if (B) {
|
|
10058
|
-
const
|
|
10123
|
+
const b = A(
|
|
10059
10124
|
e,
|
|
10060
10125
|
"BROADCAST_SIGNAL_BUTTON",
|
|
10061
10126
|
Rd
|
|
10062
10127
|
);
|
|
10063
10128
|
return Y(
|
|
10064
10129
|
/* @__PURE__ */ i(ct, { element: e, signalCandidate: B }),
|
|
10065
|
-
|
|
10130
|
+
b
|
|
10066
10131
|
);
|
|
10067
10132
|
}
|
|
10068
|
-
const
|
|
10069
|
-
(
|
|
10133
|
+
const D = de.startSignalCandidates?.find(
|
|
10134
|
+
(b) => b.elementId === e.id
|
|
10070
10135
|
);
|
|
10071
|
-
if (
|
|
10072
|
-
const
|
|
10136
|
+
if (D && t === void 0) {
|
|
10137
|
+
const b = A(
|
|
10073
10138
|
e,
|
|
10074
10139
|
"BROADCAST_SIGNAL_BUTTON",
|
|
10075
10140
|
Pd
|
|
@@ -10079,22 +10144,22 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10079
10144
|
ct,
|
|
10080
10145
|
{
|
|
10081
10146
|
element: e,
|
|
10082
|
-
signalCandidate:
|
|
10147
|
+
signalCandidate: D,
|
|
10083
10148
|
isStartEvent: !0
|
|
10084
10149
|
}
|
|
10085
10150
|
),
|
|
10086
|
-
|
|
10151
|
+
b
|
|
10087
10152
|
);
|
|
10088
10153
|
}
|
|
10089
10154
|
if (pt(e.businessObject) && ["bpmn:StartEvent", "bpmn:BoundaryEvent"].includes(e.type)) {
|
|
10090
|
-
const
|
|
10091
|
-
return Y(/* @__PURE__ */ i(zd, { element: e }),
|
|
10155
|
+
const b = A(e, "THROW_ERROR_BUTTON", Od);
|
|
10156
|
+
return Y(/* @__PURE__ */ i(zd, { element: e }), b);
|
|
10092
10157
|
}
|
|
10093
10158
|
const R = Be.state.userTasks?.find(
|
|
10094
|
-
(
|
|
10159
|
+
(b) => b.taskDefinitionId === e.id && b.taskState === "CREATED" && !ut(b.formKey)
|
|
10095
10160
|
);
|
|
10096
10161
|
if (R !== void 0 && s !== void 0) {
|
|
10097
|
-
const
|
|
10162
|
+
const b = A(e, "TASK_FORM_BUTTON", Nd);
|
|
10098
10163
|
return Y(
|
|
10099
10164
|
/* @__PURE__ */ i(
|
|
10100
10165
|
_n,
|
|
@@ -10104,11 +10169,11 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10104
10169
|
processInstanceKey: s.key
|
|
10105
10170
|
}
|
|
10106
10171
|
),
|
|
10107
|
-
|
|
10172
|
+
b
|
|
10108
10173
|
);
|
|
10109
10174
|
}
|
|
10110
10175
|
if (e.type === "bpmn:UserTask" && s !== void 0) {
|
|
10111
|
-
const
|
|
10176
|
+
const b = A(
|
|
10112
10177
|
e,
|
|
10113
10178
|
"USER_TASK_COMPLETE_BUTTON",
|
|
10114
10179
|
Td
|
|
@@ -10121,7 +10186,7 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10121
10186
|
processInstanceKey: s.key
|
|
10122
10187
|
}
|
|
10123
10188
|
),
|
|
10124
|
-
|
|
10189
|
+
b
|
|
10125
10190
|
);
|
|
10126
10191
|
}
|
|
10127
10192
|
const I = A(e, "JOB_COMPLETE_BUTTON", kd);
|
|
@@ -10141,7 +10206,7 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10141
10206
|
background-color: var(--cm-color-white-base);
|
|
10142
10207
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
|
|
10143
10208
|
border-radius: 2px;
|
|
10144
|
-
`,
|
|
10209
|
+
`, re = u.button`
|
|
10145
10210
|
margin: 0px 5px;
|
|
10146
10211
|
padding: 0;
|
|
10147
10212
|
border: none;
|
|
@@ -10174,13 +10239,13 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10174
10239
|
) }),
|
|
10175
10240
|
/* @__PURE__ */ f(tu, { children: [
|
|
10176
10241
|
/* @__PURE__ */ i(
|
|
10177
|
-
|
|
10242
|
+
_A,
|
|
10178
10243
|
{
|
|
10179
10244
|
title: a ? "Disable fullscreen" : "Enable fullscreen",
|
|
10180
10245
|
align: "top",
|
|
10181
10246
|
showOnlyOnOverflow: !1,
|
|
10182
10247
|
children: /* @__PURE__ */ i(
|
|
10183
|
-
|
|
10248
|
+
re,
|
|
10184
10249
|
{
|
|
10185
10250
|
"data-test": "toggle-fullscreen",
|
|
10186
10251
|
onClick: r,
|
|
@@ -10197,13 +10262,13 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10197
10262
|
}
|
|
10198
10263
|
),
|
|
10199
10264
|
/* @__PURE__ */ i(
|
|
10200
|
-
|
|
10265
|
+
_A,
|
|
10201
10266
|
{
|
|
10202
10267
|
title: "Toggle minimap",
|
|
10203
10268
|
align: "top",
|
|
10204
10269
|
showOnlyOnOverflow: !1,
|
|
10205
10270
|
children: /* @__PURE__ */ i(
|
|
10206
|
-
|
|
10271
|
+
re,
|
|
10207
10272
|
{
|
|
10208
10273
|
"data-selector": "minimap-container",
|
|
10209
10274
|
"data-test": "toggle-minimap",
|
|
@@ -10223,13 +10288,13 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10223
10288
|
}
|
|
10224
10289
|
),
|
|
10225
10290
|
/* @__PURE__ */ i(
|
|
10226
|
-
|
|
10291
|
+
_A,
|
|
10227
10292
|
{
|
|
10228
10293
|
title: "Reset viewport",
|
|
10229
10294
|
align: "top",
|
|
10230
10295
|
showOnlyOnOverflow: !1,
|
|
10231
10296
|
children: /* @__PURE__ */ i(
|
|
10232
|
-
|
|
10297
|
+
re,
|
|
10233
10298
|
{
|
|
10234
10299
|
onClick: e,
|
|
10235
10300
|
"data-test": "viewport-reset",
|
|
@@ -10239,8 +10304,8 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10239
10304
|
)
|
|
10240
10305
|
}
|
|
10241
10306
|
),
|
|
10242
|
-
/* @__PURE__ */ i(
|
|
10243
|
-
|
|
10307
|
+
/* @__PURE__ */ i(_A, { title: "Zoom out", align: "top", showOnlyOnOverflow: !1, children: /* @__PURE__ */ i(
|
|
10308
|
+
re,
|
|
10244
10309
|
{
|
|
10245
10310
|
onClick: t,
|
|
10246
10311
|
"data-test": "zoom-out",
|
|
@@ -10248,8 +10313,8 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10248
10313
|
children: /* @__PURE__ */ i(yl, { width: "12", height: "12" })
|
|
10249
10314
|
}
|
|
10250
10315
|
) }),
|
|
10251
|
-
/* @__PURE__ */ i(
|
|
10252
|
-
|
|
10316
|
+
/* @__PURE__ */ i(_A, { title: "Zoom in", align: "top", showOnlyOnOverflow: !1, children: /* @__PURE__ */ i(
|
|
10317
|
+
re,
|
|
10253
10318
|
{
|
|
10254
10319
|
onClick: A,
|
|
10255
10320
|
"data-test": "zoom-in",
|
|
@@ -10315,7 +10380,7 @@ const ou = ({
|
|
|
10315
10380
|
strategy: d,
|
|
10316
10381
|
middlewareData: p,
|
|
10317
10382
|
placement: h,
|
|
10318
|
-
refs: { floating: g, setFloating:
|
|
10383
|
+
refs: { floating: g, setFloating: v }
|
|
10319
10384
|
} = hr({
|
|
10320
10385
|
placement: t,
|
|
10321
10386
|
middleware: [...r, gr({ element: o })],
|
|
@@ -10327,21 +10392,21 @@ const ou = ({
|
|
|
10327
10392
|
F(() => {
|
|
10328
10393
|
p.hide && g?.current !== null && E(!!p.hide.referenceHidden);
|
|
10329
10394
|
}, [g, p]), dt(() => {
|
|
10330
|
-
const I = (
|
|
10331
|
-
const
|
|
10332
|
-
|
|
10395
|
+
const I = (b) => {
|
|
10396
|
+
const V = b.target;
|
|
10397
|
+
V instanceof Element && !g.current?.contains(V) && n?.(b);
|
|
10333
10398
|
};
|
|
10334
10399
|
return document.body?.addEventListener("click", I, !0), () => {
|
|
10335
10400
|
document.body?.removeEventListener("click", I, !0);
|
|
10336
10401
|
};
|
|
10337
10402
|
}, [n, g]);
|
|
10338
|
-
const { x:
|
|
10403
|
+
const { x: D, y: R } = p.arrow ?? {};
|
|
10339
10404
|
return e === null ? null : Y(
|
|
10340
10405
|
/* @__PURE__ */ i(
|
|
10341
10406
|
iu,
|
|
10342
10407
|
{
|
|
10343
10408
|
className: s,
|
|
10344
|
-
ref:
|
|
10409
|
+
ref: v,
|
|
10345
10410
|
style: {
|
|
10346
10411
|
position: d,
|
|
10347
10412
|
top: we(l),
|
|
@@ -10356,7 +10421,7 @@ const ou = ({
|
|
|
10356
10421
|
style: {
|
|
10357
10422
|
...ru({
|
|
10358
10423
|
side: au(h),
|
|
10359
|
-
x: we(
|
|
10424
|
+
x: we(D),
|
|
10360
10425
|
y: we(R)
|
|
10361
10426
|
})
|
|
10362
10427
|
}
|
|
@@ -10369,12 +10434,12 @@ const ou = ({
|
|
|
10369
10434
|
document.querySelector("[data-test='zeebe-play']") ?? document.body
|
|
10370
10435
|
);
|
|
10371
10436
|
}, cu = u.div`
|
|
10372
|
-
${
|
|
10437
|
+
${dA.headingCompact01};
|
|
10373
10438
|
`, lu = u(j)`
|
|
10374
10439
|
width: 100%;
|
|
10375
10440
|
`, du = ({ children: e, text: A, align: t }) => A ? /* @__PURE__ */ i(Se, { align: t, label: A, children: /* @__PURE__ */ i("div", { children: e }) }) : e, Xe = N(
|
|
10376
10441
|
({ title: e, label: A, renderIcon: t, onClick: s, notificationTitle: n }) => {
|
|
10377
|
-
const r = tA(
|
|
10442
|
+
const r = tA(AA), a = w.authType;
|
|
10378
10443
|
return /* @__PURE__ */ i(du, { align: "right", text: e, children: /* @__PURE__ */ i(
|
|
10379
10444
|
lu,
|
|
10380
10445
|
{
|
|
@@ -10389,13 +10454,13 @@ const ou = ({
|
|
|
10389
10454
|
}
|
|
10390
10455
|
o?.success ? r.displayNotification?.info({
|
|
10391
10456
|
title: n
|
|
10392
|
-
}) : o?.status ===
|
|
10457
|
+
}) : o?.status === NA ? r.displayNotification?.error(
|
|
10393
10458
|
{
|
|
10394
|
-
title:
|
|
10459
|
+
title: xA,
|
|
10395
10460
|
subtitle: `Please contact your ${a === "sm" ? "admin" : "organization owner or admin"} to give you the necessary permissions to modify this instance.`
|
|
10396
10461
|
},
|
|
10397
10462
|
bA
|
|
10398
|
-
) : r.displayNotification?.error(
|
|
10463
|
+
) : r.displayNotification?.error(_), Z.clearSelection();
|
|
10399
10464
|
},
|
|
10400
10465
|
children: A
|
|
10401
10466
|
}
|
|
@@ -10439,7 +10504,7 @@ const ou = ({
|
|
|
10439
10504
|
}
|
|
10440
10505
|
]
|
|
10441
10506
|
});
|
|
10442
|
-
return c &&
|
|
10507
|
+
return c && L.applyModifictation("add-token"), { success: c, status: l };
|
|
10443
10508
|
},
|
|
10444
10509
|
notificationTitle: `Adding token on ${s}`
|
|
10445
10510
|
}
|
|
@@ -10461,7 +10526,7 @@ const ou = ({
|
|
|
10461
10526
|
processInstanceKey: n.key,
|
|
10462
10527
|
terminateInstructions: c
|
|
10463
10528
|
});
|
|
10464
|
-
return l &&
|
|
10529
|
+
return l && L.applyModifictation("cancel-token"), { success: l, status: d };
|
|
10465
10530
|
},
|
|
10466
10531
|
notificationTitle: `Canceling ${pn(c.length, "token")} on ${s}`
|
|
10467
10532
|
}
|
|
@@ -10498,7 +10563,7 @@ const ou = ({
|
|
|
10498
10563
|
const { authType: A } = w;
|
|
10499
10564
|
if (A === "sm")
|
|
10500
10565
|
return;
|
|
10501
|
-
const { connectorElementsWithMissingSecrets: t } =
|
|
10566
|
+
const { connectorElementsWithMissingSecrets: t } = TA;
|
|
10502
10567
|
if (t.find(
|
|
10503
10568
|
(n) => n.element.id === e.id
|
|
10504
10569
|
)?.missingSecrets?.[0] !== void 0)
|
|
@@ -10526,7 +10591,7 @@ const ii = N(({ element: e, addOverlay: A }) => {
|
|
|
10526
10591
|
}
|
|
10527
10592
|
const {
|
|
10528
10593
|
state: { connectorElementsWithSecrets: a }
|
|
10529
|
-
} =
|
|
10594
|
+
} = TA;
|
|
10530
10595
|
if (a?.find(
|
|
10531
10596
|
(c) => c.element.id === e.id
|
|
10532
10597
|
)) {
|
|
@@ -10564,9 +10629,9 @@ const xs = "40px", pu = u(De)`
|
|
|
10564
10629
|
margin: 0 ${xs};
|
|
10565
10630
|
max-width: calc(100% - calc(2 * ${xs}));
|
|
10566
10631
|
`, ai = N(() => {
|
|
10567
|
-
if (
|
|
10632
|
+
if (Ae.isClusterHealthy)
|
|
10568
10633
|
return null;
|
|
10569
|
-
const e =
|
|
10634
|
+
const e = Ae.state.cluster?.name, A = Ae.state.cluster?.uuid;
|
|
10570
10635
|
return /* @__PURE__ */ i(
|
|
10571
10636
|
pu,
|
|
10572
10637
|
{
|
|
@@ -10683,7 +10748,7 @@ const Fs = u.div`
|
|
|
10683
10748
|
}
|
|
10684
10749
|
}
|
|
10685
10750
|
`, ci = N(() => {
|
|
10686
|
-
const e = tA(
|
|
10751
|
+
const e = tA(AA), { instanceKey: A, processInstance: t, isProcessManuallyCompleted: s } = m.state, { isCalledProcess: n } = m, r = t?.bpmnProcessId;
|
|
10687
10752
|
return r === void 0 || A === void 0 || !s || At() || n ? null : (At() || kr(), e.featureFlags.isReplayScenariosEnabled ? /* @__PURE__ */ i(
|
|
10688
10753
|
En,
|
|
10689
10754
|
{
|
|
@@ -10695,12 +10760,12 @@ const Fs = u.div`
|
|
|
10695
10760
|
processId: r,
|
|
10696
10761
|
name: a,
|
|
10697
10762
|
processInstanceId: A,
|
|
10698
|
-
actions:
|
|
10763
|
+
actions: ce(q(A)),
|
|
10699
10764
|
coveredFlowNodes: W.elementInstancesWithType,
|
|
10700
|
-
coveredSequenceFlows:
|
|
10765
|
+
coveredSequenceFlows: te.state.sequenceFlows
|
|
10701
10766
|
});
|
|
10702
10767
|
} catch {
|
|
10703
|
-
e.displayNotification?.error(
|
|
10768
|
+
e.displayNotification?.error(_);
|
|
10704
10769
|
return;
|
|
10705
10770
|
}
|
|
10706
10771
|
m.setScenarioName(a), e.displayNotification?.success(
|
|
@@ -10724,7 +10789,7 @@ const Fs = u.div`
|
|
|
10724
10789
|
topContent: /* @__PURE__ */ i(Fs, { children: /* @__PURE__ */ i(Qs, {}) })
|
|
10725
10790
|
}
|
|
10726
10791
|
) : /* @__PURE__ */ f(
|
|
10727
|
-
|
|
10792
|
+
ne,
|
|
10728
10793
|
{
|
|
10729
10794
|
open: m.state.isProcessManuallyCompleted,
|
|
10730
10795
|
size: "md",
|
|
@@ -10813,7 +10878,7 @@ const gu = u(J)`
|
|
|
10813
10878
|
flex-direction: column;
|
|
10814
10879
|
align-items: center;
|
|
10815
10880
|
justify-content: center;
|
|
10816
|
-
${
|
|
10881
|
+
${dA.heading02};
|
|
10817
10882
|
`, mu = ({ description: e }) => e === null ? null : /* @__PURE__ */ f(gu, { gap: 5, children: [
|
|
10818
10883
|
/* @__PURE__ */ i(Ce, { withOverlay: !1 }),
|
|
10819
10884
|
e
|
|
@@ -10822,13 +10887,13 @@ const gu = u(J)`
|
|
|
10822
10887
|
isRewinding: A
|
|
10823
10888
|
}) => e ? "Loading instance details..." : A ? "Rewinding..." : null;
|
|
10824
10889
|
u(J)`
|
|
10825
|
-
${
|
|
10890
|
+
${dA.bodyCompact01};
|
|
10826
10891
|
`;
|
|
10827
10892
|
const Rs = u.p`
|
|
10828
|
-
${
|
|
10893
|
+
${dA.body01};
|
|
10829
10894
|
`, li = N(
|
|
10830
10895
|
({ open: e, fileName: A, fileId: t, onClose: s }) => /* @__PURE__ */ i(
|
|
10831
|
-
|
|
10896
|
+
ne,
|
|
10832
10897
|
{
|
|
10833
10898
|
open: e,
|
|
10834
10899
|
modalHeading: "Scenarios are now stored in files",
|
|
@@ -10887,29 +10952,29 @@ function bu({
|
|
|
10887
10952
|
folderId: h,
|
|
10888
10953
|
legacyScenarios: g
|
|
10889
10954
|
}) => {
|
|
10890
|
-
const
|
|
10955
|
+
const v = await x.createTestScenarioFile({
|
|
10891
10956
|
projectId: p,
|
|
10892
10957
|
processId: d,
|
|
10893
10958
|
folderId: h,
|
|
10894
10959
|
scenarios: g,
|
|
10895
10960
|
shouldDisplayNotificationOnFailure: !1
|
|
10896
10961
|
});
|
|
10897
|
-
if (!
|
|
10962
|
+
if (!v.isSuccess) {
|
|
10898
10963
|
console.error(
|
|
10899
10964
|
"Failed to create test scenarios file during migration.",
|
|
10900
10965
|
"Error message:",
|
|
10901
|
-
|
|
10966
|
+
v.errorMessage,
|
|
10902
10967
|
"Local storage scenarios:",
|
|
10903
10968
|
g
|
|
10904
10969
|
), x.setUseLocalStorage(!0), x.loadScenarios(d);
|
|
10905
10970
|
return;
|
|
10906
10971
|
}
|
|
10907
|
-
x.setUseLocalStorage(!1), x.loadScenarios(d), a(
|
|
10972
|
+
x.setUseLocalStorage(!1), x.loadScenarios(d), a(v.fileName), c(v.fileId), n(!0), Ha(d);
|
|
10908
10973
|
},
|
|
10909
10974
|
[]
|
|
10910
10975
|
);
|
|
10911
10976
|
return F(() => {
|
|
10912
|
-
const d =
|
|
10977
|
+
const d = UA(e), p = Ie(
|
|
10913
10978
|
() => A !== void 0 && t !== void 0 && x.state.status === "fetched" && d.length > 0,
|
|
10914
10979
|
() => {
|
|
10915
10980
|
l({
|
|
@@ -10968,28 +11033,28 @@ const Ap = ({
|
|
|
10968
11033
|
handleGetRequest: p,
|
|
10969
11034
|
handlePostRequest: h,
|
|
10970
11035
|
fetchFilesByProcessId: g,
|
|
10971
|
-
fetchFilesByDecisionId:
|
|
11036
|
+
fetchFilesByDecisionId: v,
|
|
10972
11037
|
fetchFilesByFormId: B,
|
|
10973
11038
|
fetchFileById: E,
|
|
10974
|
-
fetchTestsByProcessId:
|
|
11039
|
+
fetchTestsByProcessId: D,
|
|
10975
11040
|
createFile: R,
|
|
10976
11041
|
featureFlags: I,
|
|
10977
|
-
consoleDashboardPageUrl:
|
|
10978
|
-
isUserOrgOwnerOrAdmin:
|
|
11042
|
+
consoleDashboardPageUrl: b,
|
|
11043
|
+
isUserOrgOwnerOrAdmin: V,
|
|
10979
11044
|
organizationManagementPageUrl: P,
|
|
10980
|
-
currentDiagramRevision:
|
|
11045
|
+
currentDiagramRevision: C,
|
|
10981
11046
|
updateFileById: Q,
|
|
10982
11047
|
originAppInstanceId: O,
|
|
10983
11048
|
canUserSaveExampleData: X,
|
|
10984
|
-
diagramId:
|
|
11049
|
+
diagramId: eA,
|
|
10985
11050
|
FeedbackButton: gA
|
|
10986
11051
|
}) => {
|
|
10987
|
-
const
|
|
11052
|
+
const uA = I?.shouldUseOrchestrationClusterAPI, z = e?.type, WA = e?.config?.operateBaseUrl, ie = z === "saas" ? e.config.clusterId : void 0, [Lt, ui] = y(!0), [pi, LA] = y(!1);
|
|
10988
11053
|
F(
|
|
10989
11054
|
() => OA(
|
|
10990
11055
|
() => m.state.status === "first-fetch" && m.state.instanceType !== "REWOUND_INSTANCE",
|
|
10991
|
-
(
|
|
10992
|
-
|
|
11056
|
+
(pA) => {
|
|
11057
|
+
LA(pA);
|
|
10993
11058
|
}
|
|
10994
11059
|
),
|
|
10995
11060
|
[]
|
|
@@ -10997,30 +11062,30 @@ const Ap = ({
|
|
|
10997
11062
|
const [Re, hi] = y(!1);
|
|
10998
11063
|
F(
|
|
10999
11064
|
() => OA(
|
|
11000
|
-
() =>
|
|
11001
|
-
(
|
|
11002
|
-
hi(
|
|
11065
|
+
() => HA.state.isRewinding,
|
|
11066
|
+
(pA) => {
|
|
11067
|
+
hi(pA);
|
|
11003
11068
|
}
|
|
11004
11069
|
),
|
|
11005
11070
|
[]
|
|
11006
|
-
), F(() => (z === "saas" &&
|
|
11007
|
-
z === "saas" &&
|
|
11071
|
+
), F(() => (z === "saas" && Ae.init(), iA.init(I?.isReplayScenariosEnabled), () => {
|
|
11072
|
+
z === "saas" && Ae.reset(), m.reset(), TA.reset(), w.reset(), T.reset(), iA.reset(), x.reset();
|
|
11008
11073
|
}), [I?.isReplayScenariosEnabled, z]), F(() => {
|
|
11009
|
-
z === "saas" && !
|
|
11074
|
+
z === "saas" && !ie || (L.init({ mixpanelTrack: d, processId: o, diagramId: eA }), M.init({
|
|
11010
11075
|
authConfig: e,
|
|
11011
11076
|
handlePostRequest: h,
|
|
11012
11077
|
handleGetRequest: p,
|
|
11013
|
-
shouldUseOrchestrationClusterAPI:
|
|
11078
|
+
shouldUseOrchestrationClusterAPI: uA
|
|
11014
11079
|
}), wA.init({
|
|
11015
11080
|
displayNotification: l,
|
|
11016
11081
|
isSelfManagedEnv: z === "sm"
|
|
11017
11082
|
}));
|
|
11018
11083
|
}, [
|
|
11019
|
-
|
|
11084
|
+
ie,
|
|
11020
11085
|
z,
|
|
11021
11086
|
o,
|
|
11022
|
-
|
|
11023
|
-
|
|
11087
|
+
eA,
|
|
11088
|
+
uA
|
|
11024
11089
|
]), F(() => {
|
|
11025
11090
|
w.init({
|
|
11026
11091
|
projectId: r,
|
|
@@ -11028,51 +11093,51 @@ const Ap = ({
|
|
|
11028
11093
|
processId: o,
|
|
11029
11094
|
processName: c,
|
|
11030
11095
|
fetchFilesByProcessId: g,
|
|
11031
|
-
fetchFilesByDecisionId:
|
|
11096
|
+
fetchFilesByDecisionId: v,
|
|
11032
11097
|
fetchFileById: E,
|
|
11033
11098
|
fetchFilesByFormId: B,
|
|
11034
11099
|
onDeploymentError: n,
|
|
11035
11100
|
xml: t,
|
|
11036
|
-
consoleDashboardPageUrl:
|
|
11037
|
-
clusterId:
|
|
11038
|
-
currentDiagramRevision:
|
|
11101
|
+
consoleDashboardPageUrl: b,
|
|
11102
|
+
clusterId: ie,
|
|
11103
|
+
currentDiagramRevision: C,
|
|
11039
11104
|
updateFileById: Q,
|
|
11040
11105
|
originAppInstanceId: O,
|
|
11041
11106
|
canUserSaveExampleData: X,
|
|
11042
|
-
diagramId:
|
|
11107
|
+
diagramId: eA,
|
|
11043
11108
|
authType: z,
|
|
11044
|
-
operateBaseUrl:
|
|
11109
|
+
operateBaseUrl: WA
|
|
11045
11110
|
});
|
|
11046
11111
|
}, [
|
|
11047
11112
|
o,
|
|
11048
11113
|
r,
|
|
11049
11114
|
a,
|
|
11050
11115
|
c,
|
|
11051
|
-
|
|
11116
|
+
ie,
|
|
11052
11117
|
g,
|
|
11053
|
-
|
|
11118
|
+
v,
|
|
11054
11119
|
E,
|
|
11055
11120
|
B,
|
|
11056
11121
|
n,
|
|
11057
11122
|
t,
|
|
11058
|
-
|
|
11059
|
-
|
|
11123
|
+
b,
|
|
11124
|
+
C,
|
|
11060
11125
|
Q,
|
|
11061
11126
|
O,
|
|
11062
11127
|
X,
|
|
11063
|
-
|
|
11128
|
+
eA,
|
|
11064
11129
|
z,
|
|
11065
|
-
|
|
11130
|
+
WA
|
|
11066
11131
|
]), F(() => {
|
|
11067
11132
|
x.init({
|
|
11068
|
-
fetchTestsByProcessId:
|
|
11133
|
+
fetchTestsByProcessId: D,
|
|
11069
11134
|
displayNotification: l,
|
|
11070
11135
|
createFile: R,
|
|
11071
11136
|
updateFileById: Q,
|
|
11072
11137
|
originAppInstanceId: O
|
|
11073
11138
|
});
|
|
11074
11139
|
}, [
|
|
11075
|
-
|
|
11140
|
+
D,
|
|
11076
11141
|
l,
|
|
11077
11142
|
O,
|
|
11078
11143
|
R,
|
|
@@ -11080,126 +11145,127 @@ const Ap = ({
|
|
|
11080
11145
|
]);
|
|
11081
11146
|
const fi = to({
|
|
11082
11147
|
authType: z,
|
|
11083
|
-
clusterId:
|
|
11084
|
-
displayNotification: l
|
|
11148
|
+
clusterId: ie,
|
|
11149
|
+
displayNotification: l,
|
|
11150
|
+
isJobSearchAPISupported: I?.shouldUseOrchestrationClusterAPI ?? !1
|
|
11085
11151
|
});
|
|
11086
11152
|
F(() => {
|
|
11087
11153
|
if (!Re) {
|
|
11088
|
-
const
|
|
11154
|
+
const pA = hu(l), mA = fu(l);
|
|
11089
11155
|
return () => {
|
|
11090
|
-
|
|
11156
|
+
pA(), mA();
|
|
11091
11157
|
};
|
|
11092
11158
|
}
|
|
11093
11159
|
}, [l, Re]);
|
|
11094
|
-
function Vt(
|
|
11160
|
+
function Vt(pA) {
|
|
11095
11161
|
return FA(async () => {
|
|
11096
|
-
const { processInstances: mA, success:
|
|
11162
|
+
const { processInstances: mA, success: CA } = await M.fetchInstances(
|
|
11097
11163
|
w.state.processDefinitionKey
|
|
11098
11164
|
);
|
|
11099
|
-
if (
|
|
11165
|
+
if (CA) {
|
|
11100
11166
|
const vA = mA[0];
|
|
11101
|
-
return vA && vA.key !==
|
|
11167
|
+
return vA && vA.key !== pA[0]?.key ? vA.key : null;
|
|
11102
11168
|
} else
|
|
11103
11169
|
return null;
|
|
11104
11170
|
});
|
|
11105
11171
|
}
|
|
11106
11172
|
const Pe = {
|
|
11107
11173
|
startInstance: async ({
|
|
11108
|
-
elementId:
|
|
11174
|
+
elementId: pA,
|
|
11109
11175
|
variables: mA = "{}"
|
|
11110
11176
|
}) => {
|
|
11111
|
-
const { success:
|
|
11177
|
+
const { success: CA, status: vA, instanceId: QA } = await M.startInstance({
|
|
11112
11178
|
bpmnProcessId: o,
|
|
11113
11179
|
variables: mA
|
|
11114
11180
|
});
|
|
11115
|
-
return m.reset(),
|
|
11181
|
+
return m.reset(), CA && QA !== void 0 && (m.setInstanceDetails({
|
|
11116
11182
|
instanceKey: QA,
|
|
11117
11183
|
instanceType: "NEW_INSTANCE"
|
|
11118
11184
|
}), oA(q(QA), {
|
|
11119
11185
|
action: "startInstance",
|
|
11120
|
-
elementId:
|
|
11186
|
+
elementId: pA,
|
|
11121
11187
|
type: "start-event",
|
|
11122
11188
|
variables: mA
|
|
11123
|
-
})), { success:
|
|
11189
|
+
})), { success: CA, status: vA };
|
|
11124
11190
|
},
|
|
11125
11191
|
publishMessage: async ({
|
|
11126
|
-
elementId:
|
|
11192
|
+
elementId: pA,
|
|
11127
11193
|
messageName: mA,
|
|
11128
|
-
correlationKey:
|
|
11194
|
+
correlationKey: CA,
|
|
11129
11195
|
variables: vA,
|
|
11130
11196
|
timeToLive: QA,
|
|
11131
11197
|
messageId: Ht,
|
|
11132
|
-
isStartEvent:
|
|
11198
|
+
isStartEvent: MA
|
|
11133
11199
|
}) => {
|
|
11134
11200
|
let Jt = [];
|
|
11135
|
-
if (
|
|
11136
|
-
const
|
|
11201
|
+
if (MA) {
|
|
11202
|
+
const VA = await M.fetchInstances(
|
|
11137
11203
|
w.state.processDefinitionKey
|
|
11138
11204
|
);
|
|
11139
|
-
if (!
|
|
11205
|
+
if (!VA.success)
|
|
11140
11206
|
return { success: !1 };
|
|
11141
|
-
Jt =
|
|
11207
|
+
Jt = VA.processInstances;
|
|
11142
11208
|
}
|
|
11143
11209
|
const { success: gi, status: fe } = await M.publishMessage({
|
|
11144
11210
|
messageName: mA,
|
|
11145
|
-
correlationKey:
|
|
11211
|
+
correlationKey: CA,
|
|
11146
11212
|
variables: vA,
|
|
11147
11213
|
timeToLive: QA,
|
|
11148
11214
|
messageId: Ht
|
|
11149
11215
|
});
|
|
11150
11216
|
if (gi === !1)
|
|
11151
11217
|
return { success: !1, status: fe };
|
|
11152
|
-
if (
|
|
11218
|
+
if (MA) {
|
|
11153
11219
|
Pe.displayNotification?.info({
|
|
11154
11220
|
title: `Message "${mA}" published`
|
|
11155
|
-
}),
|
|
11156
|
-
const
|
|
11157
|
-
return
|
|
11158
|
-
instanceKey:
|
|
11221
|
+
}), LA(!0);
|
|
11222
|
+
const VA = await Vt(Jt);
|
|
11223
|
+
return VA === null ? (console.error("Could not get new instance"), LA(!1), { success: !1, status: fe }) : (m.reset(), m.setInstanceDetails({
|
|
11224
|
+
instanceKey: VA,
|
|
11159
11225
|
instanceType: "NEW_INSTANCE"
|
|
11160
|
-
}),
|
|
11226
|
+
}), LA(!1), oA(q(VA), {
|
|
11161
11227
|
action: "startInstance",
|
|
11162
11228
|
type: "message-start-event",
|
|
11163
|
-
elementId:
|
|
11229
|
+
elementId: pA,
|
|
11164
11230
|
variables: vA
|
|
11165
|
-
}), { success: !0, instanceId:
|
|
11231
|
+
}), { success: !0, instanceId: VA, status: fe });
|
|
11166
11232
|
}
|
|
11167
11233
|
return { success: !0, status: fe };
|
|
11168
11234
|
},
|
|
11169
11235
|
broadcastSignal: async ({
|
|
11170
|
-
elementId:
|
|
11236
|
+
elementId: pA,
|
|
11171
11237
|
signalName: mA,
|
|
11172
|
-
variables:
|
|
11238
|
+
variables: CA,
|
|
11173
11239
|
isStartEvent: vA
|
|
11174
11240
|
}) => {
|
|
11175
11241
|
let QA = [];
|
|
11176
11242
|
if (vA) {
|
|
11177
|
-
const
|
|
11243
|
+
const MA = await M.fetchInstances(
|
|
11178
11244
|
w.state.processDefinitionKey
|
|
11179
11245
|
);
|
|
11180
|
-
if (!
|
|
11246
|
+
if (!MA.success)
|
|
11181
11247
|
return { success: !1 };
|
|
11182
|
-
QA =
|
|
11248
|
+
QA = MA.processInstances;
|
|
11183
11249
|
}
|
|
11184
11250
|
if ((await M.broadcastSignal({
|
|
11185
11251
|
signalName: mA,
|
|
11186
|
-
variables:
|
|
11252
|
+
variables: CA
|
|
11187
11253
|
}))?.success === !1)
|
|
11188
11254
|
return { success: !1 };
|
|
11189
11255
|
if (vA) {
|
|
11190
11256
|
Pe.displayNotification?.info({
|
|
11191
11257
|
title: `Signal "${mA}" broadcasted`
|
|
11192
|
-
}),
|
|
11193
|
-
const
|
|
11194
|
-
return
|
|
11195
|
-
instanceKey:
|
|
11258
|
+
}), LA(!0);
|
|
11259
|
+
const MA = await Vt(QA);
|
|
11260
|
+
return MA === null ? (console.error("Could not get new instance"), LA(!1), { success: !1 }) : (m.reset(), m.setInstanceDetails({
|
|
11261
|
+
instanceKey: MA,
|
|
11196
11262
|
instanceType: "NEW_INSTANCE"
|
|
11197
|
-
}),
|
|
11263
|
+
}), LA(!1), oA(q(MA), {
|
|
11198
11264
|
action: "startInstance",
|
|
11199
|
-
elementId:
|
|
11265
|
+
elementId: pA,
|
|
11200
11266
|
type: "broadcast-signal-event",
|
|
11201
|
-
variables:
|
|
11202
|
-
}), { success: !0, instanceId:
|
|
11267
|
+
variables: CA
|
|
11268
|
+
}), { success: !0, instanceId: MA });
|
|
11203
11269
|
}
|
|
11204
11270
|
return { success: !0 };
|
|
11205
11271
|
},
|
|
@@ -11214,10 +11280,10 @@ const Ap = ({
|
|
|
11214
11280
|
shouldUseOrchestrationClusterAPI: I?.shouldUseOrchestrationClusterAPI ?? !1,
|
|
11215
11281
|
areUserTasksWithJobImplementationDeprecated: I?.areUserTasksWithJobImplementationDeprecated ?? !1
|
|
11216
11282
|
},
|
|
11217
|
-
isUserOrgOwnerOrAdmin:
|
|
11283
|
+
isUserOrgOwnerOrAdmin: V,
|
|
11218
11284
|
organizationManagementPageUrl: P
|
|
11219
11285
|
};
|
|
11220
|
-
return /* @__PURE__ */ f(
|
|
11286
|
+
return /* @__PURE__ */ f(AA.Provider, { value: Pe, children: [
|
|
11221
11287
|
/* @__PURE__ */ i(
|
|
11222
11288
|
mu,
|
|
11223
11289
|
{
|