@camunda/play 6.7.1-rc.2 → 6.7.1-rc.4

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 CHANGED
@@ -10,11 +10,11 @@ import { connectors as ls } from "@camunda/connectors-element-templates";
10
10
  import un from "bpmn-moddle";
11
11
  import { isLabel as dr } from "diagram-js/lib/util/ModelUtil.js";
12
12
  import { observer as T } from "mobx-react";
13
- import { WarningFilled as pn, CheckmarkOutline as ur, RadioButtonChecked as pr, Error as mA, Information as hr, Renew as fr, Launch as LA, Edit as NA, View as hn, Add as fn, CheckmarkFilled as gn, ErrorFilled as gr, Link as mr, PlayFilledAlt as Rt, TrashCan as wr, Playlist as yr, Warning as br, Checkmark as Pt, Flash as vr, ArrowRight as Ir, RowExpand as Er, RowCollapse as Br } from "@carbon/icons-react";
13
+ import { WarningFilled as pn, CheckmarkOutline as ur, RadioButtonChecked as pr, Error as mA, Information as hr, Renew as fr, Launch as LA, Edit as NA, View as hn, Add as fn, CheckmarkFilled as gn, ErrorFilled as gr, Link as mr, PlayFilledAlt as Pt, TrashCan as wr, Playlist as yr, Warning as br, Checkmark as Rt, Flash as vr, ArrowRight as Ir, RowExpand as Er, RowCollapse as Br } from "@carbon/icons-react";
14
14
  import u, { keyframes as Qt, css as ye, createGlobalStyle as Cr } from "styled-components";
15
15
  import { createPortal as $ } from "react-dom";
16
16
  import oA, { PropTypes as ds } from "prop-types";
17
- import { MenuItemDivider as Sr, SkeletonText as VA, SkeletonIcon as mn, Button as q, Tooltip as UA, Modal as $e, Stack as O, Link as le, TextInput as We, Callout as Mr, DefinitionTooltip as Dr, InlineNotification as wn, ModalHeader as Tr, ModalBody as xr, ComposedModal as kr, ModalFooter as Nr, FormLabel as Ot, ActionableNotification as KA, Loading as IA, InlineLoading as yn, Form as bn, MenuButton as Fr, MenuItem as us, Tag as vn, CodeSnippet as In, TabList as Rr, TabPanel as Pr, Tabs as Qr, Tab as Or, Layer as Gt, TreeNode as Gr, TreeView as Lr, Table as HA, TableHead as JA, TableRow as Pe, TableHeader as xe, TableBody as YA, TableCell as ne, Toggletip as En, ToggletipButton as Bn, ToggletipContent as Cn, IconButton as dA, ProgressBar as Vr, ComboBox as RA, ToggletipActions as Ur, UnorderedList as Kr, ListItem as et, TextArea as Hr, ProgressIndicator as Jr, ProgressStep as ps, OverflowMenu as Yr, OverflowMenuItem as At } from "@carbon/react";
17
+ import { MenuItemDivider as Sr, SkeletonText as VA, SkeletonIcon as mn, Button as q, Tooltip as UA, Modal as $e, Stack as O, Link as le, TextInput as We, Callout as Mr, DefinitionTooltip as Dr, InlineNotification as wn, ModalHeader as Tr, ModalBody as xr, ComposedModal as kr, ModalFooter as Nr, FormLabel as Ot, ActionableNotification as KA, Loading as IA, InlineLoading as yn, Form as bn, MenuButton as Fr, MenuItem as us, Tag as vn, CodeSnippet as In, TabList as Pr, TabPanel as Rr, Tabs as Qr, Tab as Or, Layer as Gt, TreeNode as Gr, TreeView as Lr, Table as HA, TableHead as JA, TableRow as Re, TableHeader as xe, TableBody as YA, TableCell as ne, Toggletip as En, ToggletipButton as Bn, ToggletipContent as Cn, IconButton as dA, ProgressBar as Vr, ComboBox as PA, ToggletipActions as Ur, UnorderedList as Kr, ListItem as et, TextArea as Hr, ProgressIndicator as Jr, ProgressStep as ps, OverflowMenu as Yr, OverflowMenuItem as At } from "@carbon/react";
18
18
  import { styles as se } from "@carbon/elements";
19
19
  import "monaco-editor/esm/vs/language/json/monaco.contribution.js";
20
20
  import "monaco-editor/esm/vs/editor/browser/coreCommands.js";
@@ -169,7 +169,10 @@ class oa {
169
169
  };
170
170
  } catch (t) {
171
171
  return this.logIfUnexpected(t), {
172
- response: { status: Le(t), detail: t.message },
172
+ response: {
173
+ status: Le(t),
174
+ detail: t.detail || "Deployment failed"
175
+ },
173
176
  success: !1
174
177
  };
175
178
  }
@@ -463,8 +466,9 @@ class oa {
463
466
  errorCode: s,
464
467
  elementId: n
465
468
  }) {
469
+ const r = s || "GenericPlayError";
466
470
  try {
467
- const a = (await this.camundaClient.searchJobs(
471
+ const o = (await this.camundaClient.searchJobs(
468
472
  {
469
473
  filter: {
470
474
  processInstanceKey: me.assumeExists(
@@ -476,13 +480,13 @@ class oa {
476
480
  }
477
481
  },
478
482
  { consistency: { waitUpToMs: 0 } }
479
- )).items.find((o) => o.state === "CREATED");
480
- return a && a.jobKey ? await this.throwErrorByKey({
481
- jobKey: a.jobKey,
482
- errorCode: s
483
+ )).items.find((c) => c.state === "CREATED");
484
+ return o && o.jobKey ? await this.throwErrorByKey({
485
+ jobKey: o.jobKey,
486
+ errorCode: r
483
487
  }) : { success: !1 };
484
- } catch (r) {
485
- return this.logIfUnexpected(r), { success: !1 };
488
+ } catch (a) {
489
+ return this.logIfUnexpected(a), { success: !1 };
486
490
  }
487
491
  }
488
492
  async throwErrorByKey({
@@ -1529,7 +1533,7 @@ const Y = new ua(), Ze = 403, Ae = {
1529
1533
  "bpmn:EndEvent"
1530
1534
  ], Lt = `{
1531
1535
  "variableName": "variableValue"
1532
- }`, PA = 1e3, fa = "New BPMN Diagram", fs = 18, Vt = "latest", tt = {
1536
+ }`, RA = 1e3, fa = "New BPMN Diagram", fs = 18, Vt = "latest", tt = {
1533
1537
  status: "initial",
1534
1538
  cluster: void 0
1535
1539
  }, ga = 3e3;
@@ -1607,13 +1611,13 @@ class Ne {
1607
1611
  startPolling(e) {
1608
1612
  this.intervalId = setInterval(() => {
1609
1613
  this.boundCallback = e.bind(this), this.poll();
1610
- }, PA);
1614
+ }, RA);
1611
1615
  }
1612
1616
  stopPolling() {
1613
1617
  const { intervalId: e } = this;
1614
1618
  e !== null && (clearInterval(e), this.intervalId = null, this.shouldRefreshDataAfterPollingStops && setTimeout(() => {
1615
1619
  this.boundCallback?.();
1616
- }, PA));
1620
+ }, RA));
1617
1621
  }
1618
1622
  async poll() {
1619
1623
  this.isPollRequestRunning || (this.isPollRequestRunning = !0, this.boundCallback && await this.boundCallback(), this.isPollRequestRunning = !1);
@@ -1727,22 +1731,22 @@ function Na(A) {
1727
1731
  function Fa(A) {
1728
1732
  return Ht(A) || ka(A) || Fn(A);
1729
1733
  }
1730
- function Ra(A) {
1731
- return Jt(A) || Na(A) || Rn(A);
1734
+ function Pa(A) {
1735
+ return Jt(A) || Na(A) || Pn(A);
1732
1736
  }
1733
1737
  function Fn(A) {
1734
1738
  return _(A, "bpmn:IntermediateCatchEvent") && pA(A, "bpmn:MessageEventDefinition");
1735
1739
  }
1736
- function Rn(A) {
1740
+ function Pn(A) {
1737
1741
  return _(A, "bpmn:IntermediateCatchEvent") && pA(A, "bpmn:SignalEventDefinition");
1738
1742
  }
1739
- function Pn(A) {
1743
+ function Rn(A) {
1740
1744
  return Ht(A) && A.$parent?.triggeredByEvent;
1741
1745
  }
1742
1746
  function Qn(A) {
1743
1747
  return Jt(A) && A.$parent?.triggeredByEvent;
1744
1748
  }
1745
- function Pa(A) {
1749
+ function Ra(A) {
1746
1750
  return A.eventDefinitions?.find(
1747
1751
  (e) => _(e, "bpmn:MessageEventDefinition")
1748
1752
  )?.messageRef;
@@ -1761,7 +1765,7 @@ function Ga(A) {
1761
1765
  return A === void 0 ? [] : Object.values(A).filter(
1762
1766
  (e) => Fa(e) || xa(e)
1763
1767
  ).map((e) => {
1764
- const t = e.messageRef ?? Pa(e);
1768
+ const t = e.messageRef ?? Ra(e);
1765
1769
  let s;
1766
1770
  if (Fn(e)) {
1767
1771
  const n = e.incoming?.at(0)?.sourceRef;
@@ -1773,15 +1777,15 @@ function Ga(A) {
1773
1777
  messageName: t?.name,
1774
1778
  messageCorrelationKey: Oa(t),
1775
1779
  attachedToElementId: e.attachedToRef?.id ?? s,
1776
- isSubProcessStartEvent: Pn(e)
1780
+ isSubProcessStartEvent: Rn(e)
1777
1781
  };
1778
1782
  });
1779
1783
  }
1780
1784
  function La(A) {
1781
- return A === void 0 ? [] : Object.values(A).filter((e) => Ra(e)).map((e) => {
1785
+ return A === void 0 ? [] : Object.values(A).filter((e) => Pa(e)).map((e) => {
1782
1786
  const t = e.signalRef ?? Qa(e);
1783
1787
  let s;
1784
- if (Rn(e)) {
1788
+ if (Pn(e)) {
1785
1789
  const n = e.incoming?.at(0)?.sourceRef;
1786
1790
  s = _(n, "bpmn:EventBasedGateway") ? n?.id : void 0;
1787
1791
  }
@@ -2810,7 +2814,7 @@ function ze(A) {
2810
2814
  const s = 10, n = setInterval(async () => {
2811
2815
  const r = await A();
2812
2816
  r !== null && (clearInterval(n), e(r)), t++, t >= s && (clearInterval(n), e(null));
2813
- }, PA);
2817
+ }, RA);
2814
2818
  });
2815
2819
  }
2816
2820
  const po = ({
@@ -3110,7 +3114,7 @@ class bo {
3110
3114
  }
3111
3115
  get startMessageSubscriptionCandidates() {
3112
3116
  return x.messageSubscriptionCandidates.filter(
3113
- (e) => Ht(e.element) && !Pn(e.element)
3117
+ (e) => Ht(e.element) && !Rn(e.element)
3114
3118
  );
3115
3119
  }
3116
3120
  }
@@ -3814,7 +3818,7 @@ function Fo({
3814
3818
  }
3815
3819
  }
3816
3820
  function Ve(A) {
3817
- const e = Po(A)?.message;
3821
+ const e = Ro(A)?.message;
3818
3822
  if (e)
3819
3823
  return e;
3820
3824
  try {
@@ -3823,11 +3827,11 @@ function Ve(A) {
3823
3827
  return String(A);
3824
3828
  }
3825
3829
  }
3826
- function Ro(A) {
3830
+ function Po(A) {
3827
3831
  return typeof A == "object" && A !== null && "message" in A && typeof A.message == "string";
3828
3832
  }
3829
- function Po(A) {
3830
- return Ro(A) ? A : null;
3833
+ function Ro(A) {
3834
+ return Po(A) ? A : null;
3831
3835
  }
3832
3836
  const Yn = (A, e) => {
3833
3837
  const t = A.name.localeCompare(e.name);
@@ -4355,7 +4359,7 @@ let Qo = class extends Hn {
4355
4359
  this.state = { ...ks };
4356
4360
  };
4357
4361
  };
4358
- const P = new Qo(), Zt = "Not saved", Ns = {
4362
+ const R = new Qo(), Zt = "Not saved", Ns = {
4359
4363
  instanceKey: void 0,
4360
4364
  processInstance: void 0,
4361
4365
  status: "initial",
@@ -4399,7 +4403,7 @@ class Oo extends Ne {
4399
4403
  ), this.scenarioNameDisposer = GA(
4400
4404
  () => this.state.instanceKey !== void 0 && this.state.processInstance?.bpmnProcessId !== void 0,
4401
4405
  () => {
4402
- const e = P.state.scenarios.find(
4406
+ const e = R.state.scenarios.find(
4403
4407
  ({ processInstanceId: t }) => t === this.state.instanceKey
4404
4408
  );
4405
4409
  this.setScenarioName(
@@ -4429,7 +4433,7 @@ class Oo extends Ne {
4429
4433
  handleRefetch = () => {
4430
4434
  this.refetchTimeout = setTimeout(() => {
4431
4435
  this.fetchInstanceDetails({ refetchWhenNotFound: !0 });
4432
- }, PA);
4436
+ }, RA);
4433
4437
  };
4434
4438
  resetRefetch = () => {
4435
4439
  this.refetchTimeout !== null && clearTimeout(this.refetchTimeout);
@@ -4564,12 +4568,12 @@ class Go extends Ne {
4564
4568
  super.reset(), this.state = { ...Fs };
4565
4569
  }
4566
4570
  }
4567
- const vA = new Go(), Rs = {
4571
+ const vA = new Go(), Ps = {
4568
4572
  userTasks: [],
4569
4573
  status: "initial"
4570
4574
  };
4571
4575
  class Lo extends Ne {
4572
- state = { ...Rs };
4576
+ state = { ...Ps };
4573
4577
  constructor() {
4574
4578
  super(), ce(this, {
4575
4579
  state: fe,
@@ -4609,15 +4613,15 @@ class Lo extends Ne {
4609
4613
  this.state.status = "error";
4610
4614
  };
4611
4615
  reset() {
4612
- super.reset(), this.state = { ...Rs };
4616
+ super.reset(), this.state = { ...Ps };
4613
4617
  }
4614
4618
  }
4615
- const OA = new Lo(), Ps = {
4619
+ const OA = new Lo(), Rs = {
4616
4620
  status: "initial",
4617
4621
  jobs: []
4618
4622
  };
4619
4623
  class Vo extends Ne {
4620
- state = { ...Ps };
4624
+ state = { ...Rs };
4621
4625
  constructor() {
4622
4626
  super(), ce(this, {
4623
4627
  state: fe,
@@ -4693,8 +4697,7 @@ class Vo extends Ne {
4693
4697
  get errorThrowableJobsByErrorId() {
4694
4698
  return this.activeElementsWithJobWorker.reduce((e, t) => (x.getAvailableErrorEvents(t).forEach(({ errorCode: s, errorName: n, errorElementId: r }) => {
4695
4699
  const a = t.businessObject, o = {
4696
- errorCode: s ?? "Error",
4697
- // An error must have an error code. For catch all errors that don't have any error code defined, we use 'Error'
4700
+ errorCode: s,
4698
4701
  errorName: n,
4699
4702
  elementId: a.id,
4700
4703
  elementName: a.name ?? a.id,
@@ -4704,7 +4707,7 @@ class Vo extends Ne {
4704
4707
  }), e), {});
4705
4708
  }
4706
4709
  reset() {
4707
- super.reset(), this.state = { ...Ps };
4710
+ super.reset(), this.state = { ...Rs };
4708
4711
  }
4709
4712
  }
4710
4713
  const Ke = new Vo(), Qs = {
@@ -5889,7 +5892,7 @@ const he = new Ic(), qA = (A) => {
5889
5892
  /* @__PURE__ */ p(Hs, { children: [
5890
5893
  "This scenario increases the BPMN coverage of your scenario suite from",
5891
5894
  " ",
5892
- /* @__PURE__ */ i(Bt, { children: `${P.currentTotalCoverage.toFixed(0)}%` }),
5895
+ /* @__PURE__ */ i(Bt, { children: `${R.currentTotalCoverage.toFixed(0)}%` }),
5893
5896
  " ",
5894
5897
  "to",
5895
5898
  " ",
@@ -5897,7 +5900,7 @@ const he = new Ic(), qA = (A) => {
5897
5900
  Bt,
5898
5901
  {
5899
5902
  isGreen: !0,
5900
- children: `${P.newTotalCoverage.toFixed(0)}%`
5903
+ children: `${R.newTotalCoverage.toFixed(0)}%`
5901
5904
  }
5902
5905
  ),
5903
5906
  ". ",
@@ -5922,7 +5925,7 @@ const he = new Ic(), qA = (A) => {
5922
5925
  invalidText: o,
5923
5926
  onChange: (l) => {
5924
5927
  const d = l.target.value;
5925
- if (a(d), P.state.scenarios.some(
5928
+ if (a(d), R.state.scenarios.some(
5926
5929
  (f) => f.name === d
5927
5930
  )) {
5928
5931
  c(
@@ -6190,14 +6193,14 @@ const he = new Ic(), qA = (A) => {
6190
6193
  }
6191
6194
  ),
6192
6195
  document.querySelector("[data-test='zeebe-play']") ?? document.body
6193
- ), Rc = u(Ot)`
6196
+ ), Pc = u(Ot)`
6194
6197
  margin-bottom: var(--cds-spacing-03, 8px);
6195
6198
  `;
6196
6199
  u(KA)`
6197
6200
  margin-top: var(--cds-spacing-06, 16px);
6198
6201
  max-width: unset;
6199
6202
  `;
6200
- const Pc = u.div`
6203
+ const Rc = u.div`
6201
6204
  min-width: 0; // https://github.com/microsoft/monaco-editor/issues/3393
6202
6205
  `;
6203
6206
  function Qc() {
@@ -6574,7 +6577,7 @@ const jA = T(
6574
6577
  },
6575
6578
  modalBody: /* @__PURE__ */ i(bn, { children: /* @__PURE__ */ p(O, { gap: 5, children: [
6576
6579
  /* @__PURE__ */ p(O, { gap: 2, children: [
6577
- /* @__PURE__ */ i(Rc, { children: "Variables" }),
6580
+ /* @__PURE__ */ i(Pc, { children: "Variables" }),
6578
6581
  /* @__PURE__ */ i(
6579
6582
  jA,
6580
6583
  {
@@ -6593,7 +6596,7 @@ const jA = T(
6593
6596
  isDescriptionVisible: !f
6594
6597
  }
6595
6598
  ),
6596
- /* @__PURE__ */ i(Pc, { children: /* @__PURE__ */ i(
6599
+ /* @__PURE__ */ i(Rc, { children: /* @__PURE__ */ i(
6597
6600
  zA,
6598
6601
  {
6599
6602
  height: "10vh",
@@ -7374,11 +7377,11 @@ const ii = ({
7374
7377
  throw new Error("Upload files for file picker function is not available");
7375
7378
  const ae = Array.from(J.entries()), Z = ae.map(
7376
7379
  (V) => X(V)
7377
- ), Ie = await Promise.allSettled(Z), R = /* @__PURE__ */ new Map();
7380
+ ), Ie = await Promise.allSettled(Z), P = /* @__PURE__ */ new Map();
7378
7381
  return Ie.forEach((V, ge) => {
7379
7382
  const [_e] = ae[ge];
7380
- m(V, _e, R);
7381
- }), R;
7383
+ m(V, _e, P);
7384
+ }), P;
7382
7385
  }
7383
7386
  function m(J, X, ae) {
7384
7387
  if (J.status === "fulfilled") {
@@ -7674,9 +7677,9 @@ const ri = T(
7674
7677
  );
7675
7678
  ri.displayName = "RestartInstance";
7676
7679
  const ai = T(() => {
7677
- const A = W(j), { featureFlags: e, displayNotification: t, reInitializePlay: s } = A, { isReplayScenariosEnabled: n } = e, { instanceKey: r, status: a, processInstance: o, scenarioName: c } = w.state, { isCalledProcess: l } = w, { scenarioRuns: d } = P.state, { sanitizedOperateBaseUrl: h, hasLinkToOperate: f, authType: g, projectId: y } = b, E = o?.bpmnProcessId;
7680
+ const A = W(j), { featureFlags: e, displayNotification: t, reInitializePlay: s } = A, { isReplayScenariosEnabled: n } = e, { instanceKey: r, status: a, processInstance: o, scenarioName: c } = w.state, { isCalledProcess: l } = w, { scenarioRuns: d } = R.state, { sanitizedOperateBaseUrl: h, hasLinkToOperate: f, authType: g, projectId: y } = b, E = o?.bpmnProcessId;
7678
7681
  F(() => {
7679
- E !== void 0 && P.loadScenarios(E);
7682
+ E !== void 0 && R.loadScenarios(E);
7680
7683
  }, [r, E, y]), F(() => {
7681
7684
  a === "auth-error" && t?.error(
7682
7685
  {
@@ -7795,9 +7798,9 @@ const ai = T(() => {
7795
7798
  /* @__PURE__ */ i(
7796
7799
  Bt,
7797
7800
  {
7798
- isGreen: P.coverageIncrease > 0,
7801
+ isGreen: R.coverageIncrease > 0,
7799
7802
  hasPrecedingPlusIcon: !0,
7800
- children: `${P.coverageIncrease.toFixed(0)}% `
7803
+ children: `${R.coverageIncrease.toFixed(0)}% `
7801
7804
  }
7802
7805
  ),
7803
7806
  /* @__PURE__ */ i(
@@ -7826,7 +7829,7 @@ const ai = T(() => {
7826
7829
  scenarioName: S,
7827
7830
  onScenarioUpdated: async () => {
7828
7831
  try {
7829
- await P.updateScenario({
7832
+ await R.updateScenario({
7830
7833
  processId: E,
7831
7834
  name: S,
7832
7835
  processInstanceId: r,
@@ -7862,7 +7865,7 @@ const ai = T(() => {
7862
7865
  {
7863
7866
  onScenarioSaved: async (m) => {
7864
7867
  try {
7865
- await P.addScenario({
7868
+ await R.addScenario({
7866
7869
  processId: E,
7867
7870
  name: m,
7868
7871
  processInstanceId: r,
@@ -7890,8 +7893,8 @@ const ai = T(() => {
7890
7893
  }
7891
7894
  }
7892
7895
  ), Y.saveScenario({
7893
- newTotalCoverage: `${P.newTotalCoverage.toFixed(0)}%`,
7894
- coverageIncrease: `${P.coverageIncrease.toFixed(0)}%`
7896
+ newTotalCoverage: `${R.newTotalCoverage.toFixed(0)}%`,
7897
+ coverageIncrease: `${R.coverageIncrease.toFixed(0)}%`
7895
7898
  });
7896
7899
  },
7897
7900
  isScenarioSaved: B
@@ -8037,14 +8040,14 @@ const Cl = u(In)`
8037
8040
  .cds--snippet-container {
8038
8041
  width: 100%;
8039
8042
  }
8040
- `, Sl = u(Rr)`
8043
+ `, Sl = u(Pr)`
8041
8044
  border-bottom: 1px solid var(--cds-border-subtle-01);
8042
8045
  `, Ml = u.div`
8043
8046
  height: 100%;
8044
8047
  display: flex;
8045
8048
  flex-direction: column;
8046
8049
  position: relative;
8047
- `, Dl = u(Pr)`
8050
+ `, Dl = u(Rr)`
8048
8051
  padding: 0;
8049
8052
  height: 100%;
8050
8053
  overflow: auto;
@@ -8143,16 +8146,16 @@ const xl = u($e)`
8143
8146
  position: absolute;
8144
8147
  width: 100%;
8145
8148
  height: 100%;
8146
- `, Rl = u.li`
8149
+ `, Pl = u.li`
8147
8150
  margin: var(--cds-spacing-05);
8148
8151
  display: flex;
8149
8152
  gap: var(--cds-spacing-05);
8150
8153
  `, zs = u(VA)`
8151
8154
  margin: 0;
8152
- `, Pl = () => /* @__PURE__ */ p(Rl, { children: [
8155
+ `, Rl = () => /* @__PURE__ */ p(Pl, { children: [
8153
8156
  /* @__PURE__ */ i(zs, { width: "276px" }),
8154
8157
  /* @__PURE__ */ i(zs, { width: "384px" })
8155
- ] }), Ql = () => /* @__PURE__ */ i(Fl, { "data-testid": "variables-skeleton", children: [...Array(20)].map((A, e) => /* @__PURE__ */ i(Pl, {}, e)) }), oi = T(({ selectedScope: A, isActive: e }) => {
8158
+ ] }), Ql = () => /* @__PURE__ */ i(Fl, { "data-testid": "variables-skeleton", children: [...Array(20)].map((A, e) => /* @__PURE__ */ i(Rl, {}, e)) }), oi = T(({ selectedScope: A, isActive: e }) => {
8156
8159
  const t = W(j), { authType: s } = b, n = t.displayNotification, [r, a] = I(null), [o, c] = I(""), [l, d] = I(!1), [h, f] = I(!1), [g, y] = I(!1), [E, v] = I({}), k = Be.state.isUpdatingVariable, { instanceKey: N } = w.state, L = Be.state.variables.filter(
8157
8160
  (B) => B.scopeKey === A
8158
8161
  );
@@ -8783,14 +8786,14 @@ const _t = new Bd(), di = T(() => {
8783
8786
  }, []);
8784
8787
  const { elementsWithExecutionListeners: s } = x;
8785
8788
  return _t.hasProblems ? /* @__PURE__ */ p(HA, { size: "sm", children: [
8786
- /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Pe, { children: [
8789
+ /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Re, { children: [
8787
8790
  /* @__PURE__ */ i(xe, { children: "Element Name" }),
8788
8791
  /* @__PURE__ */ i(xe, { children: "Error Message" }),
8789
8792
  /* @__PURE__ */ i(xe, { children: "File Name" }),
8790
8793
  /* @__PURE__ */ i(xe, { children: "Actionable Solutions" })
8791
8794
  ] }) }),
8792
8795
  /* @__PURE__ */ p(YA, { children: [
8793
- A.map((n) => /* @__PURE__ */ p(Pe, { children: [
8796
+ A.map((n) => /* @__PURE__ */ p(Re, { children: [
8794
8797
  /* @__PURE__ */ p(ne, { children: [
8795
8798
  (n.status === "not found" || n.status === "deployment error") && /* @__PURE__ */ i(lt, {}),
8796
8799
  /* @__PURE__ */ i("b", { children: n.elementBusinessObject.name || n.elementBusinessObject.id })
@@ -8827,7 +8830,7 @@ const _t = new Bd(), di = T(() => {
8827
8830
  )
8828
8831
  ] })
8829
8832
  ] }, n.id + Math.random().toString())),
8830
- Je.connectorProblems.map((n) => /* @__PURE__ */ p(Pe, { children: [
8833
+ Je.connectorProblems.map((n) => /* @__PURE__ */ p(Re, { children: [
8831
8834
  /* @__PURE__ */ p(ne, { children: [
8832
8835
  /* @__PURE__ */ i(lt, {}),
8833
8836
  /* @__PURE__ */ i("b", { children: n.element.businessObject.name || n.element.businessObject.id })
@@ -8856,7 +8859,7 @@ const _t = new Bd(), di = T(() => {
8856
8859
  )
8857
8860
  ] }) })
8858
8861
  ] }, n.element.id + n.missingSecret)),
8859
- !t && s.map((n) => /* @__PURE__ */ p(Pe, { children: [
8862
+ !t && s.map((n) => /* @__PURE__ */ p(Re, { children: [
8860
8863
  /* @__PURE__ */ p(ne, { children: [
8861
8864
  /* @__PURE__ */ i(lt, {}),
8862
8865
  /* @__PURE__ */ i("b", { children: n.businessObject.name || n.businessObject.id })
@@ -8899,7 +8902,7 @@ const dt = u(ne)`
8899
8902
  fill: var(--cds-support-success);
8900
8903
  `, Md = u(gr)`
8901
8904
  fill: var(--cds-support-error);
8902
- `, Xs = u(Pe)`
8905
+ `, Xs = u(Re)`
8903
8906
  ${({ $isClickable: A }) => ye`
8904
8907
  ${A && "cursor: pointer;"}
8905
8908
  `}
@@ -8931,7 +8934,7 @@ const dt = u(ne)`
8931
8934
  }
8932
8935
  ),
8933
8936
  /* @__PURE__ */ p(Cd, { children: [
8934
- P.currentTotalCoverage.toFixed(0),
8937
+ R.currentTotalCoverage.toFixed(0),
8935
8938
  "%"
8936
8939
  ] })
8937
8940
  ] }));
@@ -8958,8 +8961,8 @@ function pi({
8958
8961
  return s !== -1 ? t.substring(0, s) + e : e;
8959
8962
  }
8960
8963
  const Fd = T(() => {
8961
- const { hasMultipleTestFilesLinked: A } = P.state;
8962
- return P.state.testScenarioFileMetadata === void 0 ? null : /* @__PURE__ */ p(Nd, { gap: 4, orientation: "horizontal", children: [
8964
+ const { hasMultipleTestFilesLinked: A } = R.state;
8965
+ return R.state.testScenarioFileMetadata === void 0 ? null : /* @__PURE__ */ p(Nd, { gap: 4, orientation: "horizontal", children: [
8963
8966
  A && /* @__PURE__ */ p(En, { align: "bottom-end", children: [
8964
8967
  /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ i(li, {}) }),
8965
8968
  /* @__PURE__ */ i(Cn, { children: /* @__PURE__ */ p(O, { gap: 3, children: [
@@ -8979,16 +8982,16 @@ const Fd = T(() => {
8979
8982
  le,
8980
8983
  {
8981
8984
  href: pi({
8982
- fileId: P.state.testScenarioFileMetadata.id
8985
+ fileId: R.state.testScenarioFileMetadata.id
8983
8986
  }),
8984
8987
  target: "_blank",
8985
8988
  renderIcon: mr,
8986
- children: P.state.testScenarioFileMetadata.name
8989
+ children: R.state.testScenarioFileMetadata.name
8987
8990
  }
8988
8991
  )
8989
8992
  ] });
8990
8993
  }), hi = T(() => {
8991
- const [A, e] = I(!1), t = P.state.scenarios, { processId: s } = b;
8994
+ const [A, e] = I(!1), t = R.state.scenarios, { processId: s } = b;
8992
8995
  if (s !== void 0)
8993
8996
  return /* @__PURE__ */ p(xd, { gap: 5, orientation: "horizontal", children: [
8994
8997
  /* @__PURE__ */ i(ui, {}),
@@ -9000,12 +9003,12 @@ const Fd = T(() => {
9000
9003
  {
9001
9004
  size: "sm",
9002
9005
  kind: "ghost",
9003
- renderIcon: Rt,
9004
- disabled: P.isAnyScenarioRunning,
9006
+ renderIcon: Pt,
9007
+ disabled: R.isAnyScenarioRunning,
9005
9008
  onClick: async () => {
9006
9009
  e(!0), Y.runScenarios(t.length), await Promise.all(
9007
9010
  t.map(async ({ name: n, actions: r }) => {
9008
- await P.runSingleScenario({
9011
+ await R.runSingleScenario({
9009
9012
  name: n,
9010
9013
  processId: s,
9011
9014
  actions: r
@@ -9018,7 +9021,7 @@ const Fd = T(() => {
9018
9021
  ) }),
9019
9022
  /* @__PURE__ */ i(Fd, {})
9020
9023
  ] });
9021
- }), Rd = () => /* @__PURE__ */ p(K, { children: [
9024
+ }), Pd = () => /* @__PURE__ */ p(K, { children: [
9022
9025
  /* @__PURE__ */ i(hi, {}),
9023
9026
  /* @__PURE__ */ p(Td, { gap: 4, children: [
9024
9027
  /* @__PURE__ */ p("div", { children: [
@@ -9049,7 +9052,7 @@ const Fd = T(() => {
9049
9052
  }
9050
9053
  )
9051
9054
  ] })
9052
- ] }), Pd = u.ul`
9055
+ ] }), Rd = u.ul`
9053
9056
  overflow: hidden;
9054
9057
  position: absolute;
9055
9058
  width: 100%;
@@ -9064,7 +9067,7 @@ const Fd = T(() => {
9064
9067
  /* @__PURE__ */ i(ut, { width: "40%" }),
9065
9068
  /* @__PURE__ */ i(ut, { width: "30%" }),
9066
9069
  /* @__PURE__ */ i(ut, { width: "30%" })
9067
- ] }), Gd = () => /* @__PURE__ */ i(Pd, { "data-testid": "scenarios-skeleton", children: [...Array(20)].map((A, e) => /* @__PURE__ */ i(Od, {}, e)) }), Ld = u(O)`
9070
+ ] }), Gd = () => /* @__PURE__ */ i(Rd, { "data-testid": "scenarios-skeleton", children: [...Array(20)].map((A, e) => /* @__PURE__ */ i(Od, {}, e)) }), Ld = u(O)`
9068
9071
  ${se.bodyCompact01};
9069
9072
  color: var(--cds-text-primary);
9070
9073
  padding: var(--cds-spacing-07) var(--cds-spacing-05);
@@ -9081,10 +9084,10 @@ const Fd = T(() => {
9081
9084
  null
9082
9085
  ), { processId: t, canUserSaveExampleData: s } = b;
9083
9086
  F(() => {
9084
- t !== void 0 && P.loadScenarios(t);
9087
+ t !== void 0 && R.loadScenarios(t);
9085
9088
  }, [t]);
9086
- const { scenarios: n, selectedScenario: r, status: a } = P.state;
9087
- return ["initial", "fetching"].includes(a) || t === void 0 ? /* @__PURE__ */ i(Gd, {}) : a === "error" ? /* @__PURE__ */ i(Ud, { onReload: () => P.loadScenarios(t) }) : n.length === 0 ? /* @__PURE__ */ i(Rd, {}) : /* @__PURE__ */ p(K, { children: [
9089
+ const { scenarios: n, selectedScenario: r, status: a } = R.state;
9090
+ return ["initial", "fetching"].includes(a) || t === void 0 ? /* @__PURE__ */ i(Gd, {}) : a === "error" ? /* @__PURE__ */ i(Ud, { onReload: () => R.loadScenarios(t) }) : n.length === 0 ? /* @__PURE__ */ i(Pd, {}) : /* @__PURE__ */ p(K, { children: [
9088
9091
  /* @__PURE__ */ i(hi, {}),
9089
9092
  /* @__PURE__ */ p(HA, { size: "sm", children: [
9090
9093
  /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Xs, { children: [
@@ -9093,7 +9096,7 @@ const Fd = T(() => {
9093
9096
  /* @__PURE__ */ i(xe, { children: "Operations" })
9094
9097
  ] }) }),
9095
9098
  /* @__PURE__ */ i(YA, { children: n?.map((o) => {
9096
- const { key: c, name: l, actions: d } = o, h = r?.name === l, f = P.getScenarioRun(l), g = f?.status;
9099
+ const { key: c, name: l, actions: d } = o, h = r?.name === l, f = R.getScenarioRun(l), g = f?.status;
9097
9100
  return /* @__PURE__ */ p(
9098
9101
  Xs,
9099
9102
  {
@@ -9101,7 +9104,7 @@ const Fd = T(() => {
9101
9104
  $isClickable: !0,
9102
9105
  isSelected: h,
9103
9106
  onClick: () => {
9104
- h ? P.clearSelectedScenario() : P.setSelectedScenario(o);
9107
+ h ? R.clearSelectedScenario() : R.setSelectedScenario(o);
9105
9108
  },
9106
9109
  children: [
9107
9110
  /* @__PURE__ */ i(dt, { children: l }),
@@ -9127,13 +9130,13 @@ const Fd = T(() => {
9127
9130
  kind: "ghost",
9128
9131
  size: "sm",
9129
9132
  onClick: async (y) => {
9130
- y.stopPropagation(), Y.runScenarios(1), P.runSingleScenario({
9133
+ y.stopPropagation(), Y.runScenarios(1), R.runSingleScenario({
9131
9134
  name: l,
9132
9135
  processId: t,
9133
9136
  actions: d
9134
9137
  });
9135
9138
  },
9136
- children: /* @__PURE__ */ i(Rt, {})
9139
+ children: /* @__PURE__ */ i(Pt, {})
9137
9140
  }
9138
9141
  ),
9139
9142
  /* @__PURE__ */ i(
@@ -9170,7 +9173,7 @@ const Fd = T(() => {
9170
9173
  kind: "ghost",
9171
9174
  size: "sm",
9172
9175
  onClick: () => {
9173
- Y.runScenarios(1), P.runSingleScenario({
9176
+ Y.runScenarios(1), R.runSingleScenario({
9174
9177
  name: l,
9175
9178
  processId: t,
9176
9179
  actions: d
@@ -9213,15 +9216,15 @@ const Fd = T(() => {
9213
9216
  danger: !0,
9214
9217
  primaryButtonText: "Delete",
9215
9218
  secondaryButtonText: "Cancel",
9216
- primaryButtonDisabled: P.state.isProcessing,
9219
+ primaryButtonDisabled: R.state.isProcessing,
9217
9220
  onRequestClose: () => {
9218
9221
  e(null);
9219
9222
  },
9220
9223
  onRequestSubmit: async () => {
9221
- t === void 0 || A === null || (e(null), await P.deleteScenario({
9224
+ t === void 0 || A === null || (e(null), await R.deleteScenario({
9222
9225
  processId: t,
9223
9226
  scenario: A
9224
- }), P.loadScenarios(t));
9227
+ }), R.loadScenarios(t));
9225
9228
  },
9226
9229
  children: /* @__PURE__ */ i("div", { children: `Are you sure you want to delete '${A?.name}' scenario? This action cannot be undone.` })
9227
9230
  }
@@ -9267,12 +9270,12 @@ const Kd = (A) => {
9267
9270
  /* @__PURE__ */ i(Jd, { children: "Start by activating a process instance" }),
9268
9271
  /* @__PURE__ */ i(Yd, { children: "To activate an instance, click the Play button on the canvas" })
9269
9272
  ] }) : /* @__PURE__ */ p(HA, { size: "sm", children: [
9270
- /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Pe, { children: [
9273
+ /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Re, { children: [
9271
9274
  /* @__PURE__ */ i(pt, { children: "Instance Key" }),
9272
9275
  /* @__PURE__ */ i(pt, { children: "Started at" }),
9273
9276
  /* @__PURE__ */ i(pt, { children: "Operations" })
9274
9277
  ] }) }),
9275
- /* @__PURE__ */ i(YA, { children: A?.map(({ key: e, startDate: t, state: s, incident: n }) => /* @__PURE__ */ p(Pe, { children: [
9278
+ /* @__PURE__ */ i(YA, { children: A?.map(({ key: e, startDate: t, state: s, incident: n }) => /* @__PURE__ */ p(Re, { children: [
9276
9279
  /* @__PURE__ */ p(ne, { children: [
9277
9280
  /* @__PURE__ */ i(Zd, { children: /* @__PURE__ */ i(qt, { state: n ? "INCIDENT" : s, size: 20 }) }),
9278
9281
  /* @__PURE__ */ i(
@@ -9291,7 +9294,7 @@ const Kd = (A) => {
9291
9294
  ] }),
9292
9295
  /* @__PURE__ */ i(ne, { children: Kd(t) }),
9293
9296
  /* @__PURE__ */ i(ne, { children: "-" })
9294
- ] }, e)) ?? /* @__PURE__ */ i(Pe, { children: /* @__PURE__ */ i(ne, { children: "No Content" }) }) })
9297
+ ] }, e)) ?? /* @__PURE__ */ i(Re, { children: /* @__PURE__ */ i(ne, { children: "No Content" }) }) })
9295
9298
  ] });
9296
9299
  });
9297
9300
  gi.displayName = "Processes";
@@ -9861,7 +9864,7 @@ const nu = u.div`
9861
9864
  kind: "ghost",
9862
9865
  size: "sm",
9863
9866
  onClick: s,
9864
- children: /* @__PURE__ */ i(Rt, {})
9867
+ children: /* @__PURE__ */ i(Pt, {})
9865
9868
  }
9866
9869
  ),
9867
9870
  /* @__PURE__ */ i(
@@ -10105,7 +10108,7 @@ Ii.displayName = "IncidentButton";
10105
10108
  const Ei = T(({ element: A }) => {
10106
10109
  const { completedElementInstances: e } = ie, { isInstanceDetailPageVisible: t } = w, s = he.state.activeTab === "scenarios", {
10107
10110
  state: { sequenceFlows: n }
10108
- } = uA, r = P.state.selectedScenario?.coveredSequenceFlows ?? P.allCoveredSequenceFlows;
10111
+ } = uA, r = R.state.selectedScenario?.coveredSequenceFlows ?? R.allCoveredSequenceFlows;
10109
10112
  return F(() => {
10110
10113
  if (t)
10111
10114
  return n.includes(A.id) || A?.di?.bpmnElement?.sourceRef?.$type === "bpmn:EventBasedGateway" && e.some(
@@ -10248,7 +10251,7 @@ const Ci = T(({ element: A }) => {
10248
10251
  prefillSource: L
10249
10252
  }),
10250
10253
  elementId: A.id,
10251
- renderIcon: () => /* @__PURE__ */ i(Pt, { color: "white" }),
10254
+ renderIcon: () => /* @__PURE__ */ i(Rt, { color: "white" }),
10252
10255
  onClick: async () => {
10253
10256
  l(!0);
10254
10257
  let S = !1;
@@ -10341,7 +10344,7 @@ const Ci = T(({ element: A }) => {
10341
10344
  enableContentOverflow: !0,
10342
10345
  onSubmit: v,
10343
10346
  modalBody: /* @__PURE__ */ i(
10344
- RA,
10347
+ PA,
10345
10348
  {
10346
10349
  titleText: "Error",
10347
10350
  id: "error",
@@ -10368,10 +10371,10 @@ const Ci = T(({ element: A }) => {
10368
10371
  Ci.displayName = "JobCompleteButton";
10369
10372
  const Fu = u(ad)`
10370
10373
  fill: currentColor;
10371
- `, Ru = (A) => ze(async () => {
10374
+ `, Pu = (A) => ze(async () => {
10372
10375
  const { success: e, processInstance: t } = await M.fetchInstanceDetails(A);
10373
10376
  return e ? t.key : null;
10374
- }), Pu = ({
10377
+ }), Ru = ({
10375
10378
  instanceKey: A,
10376
10379
  elementId: e
10377
10380
  }) => ze(async () => {
@@ -10440,7 +10443,7 @@ const tA = new Qu(), Si = T(({ element: A }) => {
10440
10443
  });
10441
10444
  return;
10442
10445
  }
10443
- await Ru(o), Y.trackRewindedInstanceStart(), w.reset(), w.setInstanceDetails({
10446
+ await Pu(o), Y.trackRewindedInstanceStart(), w.reset(), w.setInstanceDetails({
10444
10447
  instanceKey: o,
10445
10448
  instanceType: "REWOUND_INSTANCE"
10446
10449
  }), await tA.repeatUserActions({
@@ -10448,7 +10451,7 @@ const tA = new Qu(), Si = T(({ element: A }) => {
10448
10451
  actions: r,
10449
10452
  untilElementId: A.id
10450
10453
  });
10451
- const c = await Pu({
10454
+ const c = await Ru({
10452
10455
  instanceKey: o,
10453
10456
  elementId: A.id
10454
10457
  });
@@ -10617,7 +10620,7 @@ const Ou = (A) => Ye(A, "zeebe:CalledDecision")?.get("decisionId") ?? null, Gu =
10617
10620
  {
10618
10621
  label: "Throw Error",
10619
10622
  elementId: A.id,
10620
- renderIcon: () => /* @__PURE__ */ i(Pt, {}),
10623
+ renderIcon: () => /* @__PURE__ */ i(Rt, {}),
10621
10624
  onClick: async () => {
10622
10625
  if (o.length === 1) {
10623
10626
  const d = o[0];
@@ -10649,7 +10652,7 @@ const Ou = (A) => Ye(A, "zeebe:CalledDecision")?.get("decisionId") ?? null, Gu =
10649
10652
  d !== void 0 && c(d);
10650
10653
  },
10651
10654
  modalBody: /* @__PURE__ */ i(
10652
- RA,
10655
+ PA,
10653
10656
  {
10654
10657
  id: "job",
10655
10658
  "aria-label": "Select a Job",
@@ -10857,7 +10860,7 @@ const Ni = T(
10857
10860
  prefillSource: c
10858
10861
  }),
10859
10862
  elementId: A.id,
10860
- renderIcon: () => /* @__PURE__ */ i(Pt, { color: "white" }),
10863
+ renderIcon: () => /* @__PURE__ */ i(Rt, { color: "white" }),
10861
10864
  onClick: async () => {
10862
10865
  h({
10863
10866
  processId: b.processId,
@@ -10970,7 +10973,7 @@ const Fi = T(
10970
10973
  }
10971
10974
  );
10972
10975
  Fi.displayName = "ExecutionListenerButton";
10973
- const Ri = T(({ element: A, addOverlay: e }) => {
10976
+ const Pi = T(({ element: A, addOverlay: e }) => {
10974
10977
  const { instanceKey: t, processInstance: s } = w.state, { isCalledProcess: n } = w, r = W(j), a = vA.incidents?.find(
10975
10978
  (m) => m.elementInstance?.element?.elementId === A.id && ["ACTIVE", "MIGRATED"].includes(m.state)
10976
10979
  );
@@ -11180,8 +11183,8 @@ const Ri = T(({ element: A, addOverlay: e }) => {
11180
11183
  const S = e(A, "JOB_COMPLETE_BUTTON", yu);
11181
11184
  return $(/* @__PURE__ */ i(Ci, { element: A }), S);
11182
11185
  });
11183
- Ri.displayName = "DiagramOverlay";
11184
- const Pi = 0, ts = 1, Hu = 10, Ju = ts + Pi, Yu = ts + Hu, Zu = ts + Pi, qu = u.div`
11186
+ Pi.displayName = "DiagramOverlay";
11187
+ const Ri = 0, ts = 1, Hu = 10, Ju = ts + Ri, Yu = ts + Hu, Zu = ts + Ri, qu = u.div`
11185
11188
  position: absolute;
11186
11189
  bottom: var(--spacing-medium, 20px);
11187
11190
  right: var(--spacing-medium, 20px);
@@ -11589,7 +11592,7 @@ const Gi = T(({ element: A, addOverlay: e }) => {
11589
11592
  });
11590
11593
  Gi.displayName = "ProblemOverlay";
11591
11594
  const Li = T(({ element: A }) => {
11592
- const { isInstanceDetailPageVisible: e } = w, t = P.isSingleScenarioSelected ? P.coveredFlowNodeIdsForSelectedScenario : P.allCoveredFlowNodes.map(({ flowNodeId: n }) => n), s = he.state.activeTab === "scenarios";
11595
+ const { isInstanceDetailPageVisible: e } = w, t = R.isSingleScenarioSelected ? R.coveredFlowNodeIdsForSelectedScenario : R.allCoveredFlowNodes.map(({ flowNodeId: n }) => n), s = he.state.activeTab === "scenarios";
11593
11596
  return F(() => {
11594
11597
  if (!e && t.length > 0 && s)
11595
11598
  return t.includes(A.id) ? x.state.viewer?.addMarker(A.id, "play-flow-node-taken") : x.state.viewer?.removeMarker(
@@ -11685,7 +11688,7 @@ const xt = T(({ FeedbackButton: A }) => {
11685
11688
  }
11686
11689
  ),
11687
11690
  x.elements?.map((d) => /* @__PURE__ */ i(
11688
- Ri,
11691
+ Pi,
11689
11692
  {
11690
11693
  element: d,
11691
11694
  addOverlay: l.addOverlay
@@ -11744,7 +11747,7 @@ const An = u.div`
11744
11747
  isOpen: w.state.isProcessManuallyCompleted,
11745
11748
  onScenarioSaved: async (a) => {
11746
11749
  try {
11747
- await P.addScenario({
11750
+ await R.addScenario({
11748
11751
  processId: r,
11749
11752
  name: a,
11750
11753
  processInstanceId: e,
@@ -11940,7 +11943,7 @@ function dp({
11940
11943
  folderId: f,
11941
11944
  legacyScenarios: g
11942
11945
  }) => {
11943
- const y = await P.createTestScenarioFile({
11946
+ const y = await R.createTestScenarioFile({
11944
11947
  projectId: h,
11945
11948
  processId: d,
11946
11949
  folderId: f,
@@ -11954,16 +11957,16 @@ function dp({
11954
11957
  y.errorMessage,
11955
11958
  "Local storage scenarios:",
11956
11959
  g
11957
- ), P.setUseLocalStorage(!0), P.loadScenarios(d);
11960
+ ), R.setUseLocalStorage(!0), R.loadScenarios(d);
11958
11961
  return;
11959
11962
  }
11960
- P.setUseLocalStorage(!1), P.loadScenarios(d), a(y.fileName), c(y.fileId), n(!0), xo(d);
11963
+ R.setUseLocalStorage(!1), R.loadScenarios(d), a(y.fileName), c(y.fileId), n(!0), xo(d);
11961
11964
  },
11962
11965
  []
11963
11966
  );
11964
11967
  return F(() => {
11965
11968
  const d = sA(A), h = GA(
11966
- () => e !== void 0 && t !== void 0 && P.state.status === "fetched" && d.length > 0,
11969
+ () => e !== void 0 && t !== void 0 && R.state.status === "fetched" && d.length > 0,
11967
11970
  () => {
11968
11971
  l({
11969
11972
  processId: A,
@@ -12120,11 +12123,11 @@ const Ji = 48, up = u.div`
12120
12123
 
12121
12124
  ${XA}
12122
12125
  `, Cp = ({ open: A = !0, children: e, position: t, background: s = "white", panelKey: n, handleAriaLabel: r = "Resize", minSize: a = 400, maxSize: o = 1200, sizeClosed: c = 5, onOpenChange: l, ...d }) => {
12123
- const [h, f] = (function(R, V) {
12126
+ const [h, f] = (function(P, V) {
12124
12127
  const [ge, _e] = I(() => {
12125
12128
  if (typeof window > "u") return V;
12126
12129
  try {
12127
- const ue = window.localStorage.getItem(R);
12130
+ const ue = window.localStorage.getItem(P);
12128
12131
  return ue ? JSON.parse(ue) : V;
12129
12132
  } catch {
12130
12133
  return V;
@@ -12133,7 +12136,7 @@ const Ji = 48, up = u.div`
12133
12136
  return [ge, (ue) => {
12134
12137
  try {
12135
12138
  const eA = ue instanceof Function ? ue(ge) : ue;
12136
- _e(eA), typeof window < "u" && window.localStorage.setItem(R, JSON.stringify(eA));
12139
+ _e(eA), typeof window < "u" && window.localStorage.setItem(P, JSON.stringify(eA));
12137
12140
  } catch {
12138
12141
  }
12139
12142
  }];
@@ -12142,22 +12145,22 @@ const Ji = 48, up = u.div`
12142
12145
  F(() => {
12143
12146
  if (typeof Event == "function") window.dispatchEvent(new Event("resize"));
12144
12147
  else {
12145
- var R = window.document.createEvent("UIEvents");
12146
- R.initUIEvent("resize", !0, !1, window, 0), window.dispatchEvent(R);
12148
+ var P = window.document.createEvent("UIEvents");
12149
+ P.initUIEvent("resize", !0, !1, window, 0), window.dispatchEvent(P);
12147
12150
  }
12148
12151
  }, [h, A]);
12149
12152
  const L = () => {
12150
12153
  if (t === "left" || t === "right") return "width";
12151
12154
  if (t === "top" || t === "bottom") return "height";
12152
12155
  throw new Error("Invalid position prop");
12153
- }, G = (R) => {
12154
- R.preventDefault();
12155
- const V = ae(R);
12156
+ }, G = (P) => {
12157
+ P.preventDefault();
12158
+ const V = ae(P);
12156
12159
  m(V, N.current) || (S(V, N.current), Q(V, N.current), f(V > o ? o : V), N.current = V);
12157
- }, B = (R, V) => Z(R, V) === -1, S = (R, V) => {
12158
- ((ge, _e) => Z(ge, _e) === 1)(R, V) && (v(!1), X());
12159
- }, m = (R, V) => !!(B(R, V) && R < a && a - R < 70) && (f(a), !0), Q = (R, V) => {
12160
- B(R, V) && R < a && (v(!0), J());
12160
+ }, B = (P, V) => Z(P, V) === -1, S = (P, V) => {
12161
+ ((ge, _e) => Z(ge, _e) === 1)(P, V) && (v(!1), X());
12162
+ }, m = (P, V) => !!(B(P, V) && P < a && a - P < 70) && (f(a), !0), Q = (P, V) => {
12163
+ B(P, V) && P < a && (v(!0), J());
12161
12164
  }, U = () => {
12162
12165
  k.current = Date.now(), y(!0), v(!1), document.addEventListener("mousemove", G), document.addEventListener("mouseup", re);
12163
12166
  }, re = () => {
@@ -12166,22 +12169,22 @@ const Ji = 48, up = u.div`
12166
12169
  l?.(!0);
12167
12170
  }, X = () => {
12168
12171
  l?.(!1);
12169
- }, ae = (R) => {
12172
+ }, ae = (P) => {
12170
12173
  const V = L();
12171
12174
  let ge = 0;
12172
- if (V === "width") t === "left" ? ge = R.clientX : t === "right" && (ge = window.innerWidth - R.clientX);
12175
+ if (V === "width") t === "left" ? ge = P.clientX : t === "right" && (ge = window.innerWidth - P.clientX);
12173
12176
  else {
12174
12177
  if (V !== "height") throw new Error("Invalid measure");
12175
- t === "top" ? ge = R.clientY : t === "bottom" && (ge = window.innerHeight - R.clientY);
12178
+ t === "top" ? ge = P.clientY : t === "bottom" && (ge = window.innerHeight - P.clientY);
12176
12179
  }
12177
12180
  return ge;
12178
- }, Z = (R, V) => t === "left" || t === "top" ? R > V ? -1 : R < V ? 1 : 0 : t === "right" || t === "bottom" ? R > V ? 1 : R < V ? -1 : 0 : 0, Ie = A ? h > o && !g ? o : h < a ? a : h : c;
12179
- return p(K, { children: [i(yp, { $position: t, $isDragging: g }), p(bp, { ...d, open: A, $background: s, $sizeClosed: c, $position: t, $isDragging: g, className: E ? "animate" : "", style: { [L()]: `${Ie}px` }, children: [i((R) => {
12180
- const V = { left: i(Ip, { ...R }), right: i(vp, { ...R }), top: i(Bp, { ...R }), bottom: i(Ep, { ...R }) };
12181
+ }, Z = (P, V) => t === "left" || t === "top" ? P > V ? -1 : P < V ? 1 : 0 : t === "right" || t === "bottom" ? P > V ? 1 : P < V ? -1 : 0 : 0, Ie = A ? h > o && !g ? o : h < a ? a : h : c;
12182
+ return p(K, { children: [i(yp, { $position: t, $isDragging: g }), p(bp, { ...d, open: A, $background: s, $sizeClosed: c, $position: t, $isDragging: g, className: E ? "animate" : "", style: { [L()]: `${Ie}px` }, children: [i((P) => {
12183
+ const V = { left: i(Ip, { ...P }), right: i(vp, { ...P }), top: i(Bp, { ...P }), bottom: i(Ep, { ...P }) };
12181
12184
  if (!V[t]) throw new Error("Invalid position prop");
12182
12185
  return V[t];
12183
- }, { role: "separator", "aria-label": r, "aria-orientation": t === "left" || t === "right" ? "vertical" : "horizontal", "aria-valuenow": Ie, "aria-valuemin": c, "aria-valuemax": o, onMouseDown: (R) => {
12184
- R.preventDefault(), U();
12186
+ }, { role: "separator", "aria-label": r, "aria-orientation": t === "left" || t === "right" ? "vertical" : "horizontal", "aria-valuenow": Ie, "aria-valuemin": c, "aria-valuemax": o, onMouseDown: (P) => {
12187
+ P.preventDefault(), U();
12185
12188
  }, open: A, $isDragging: g, $position: t }), i("div", { className: "content", children: e })] })] });
12186
12189
  };
12187
12190
  function Sp(A) {
@@ -12585,10 +12588,10 @@ const xp = u.h3`
12585
12588
  u(q)`
12586
12589
  margin-left: auto;
12587
12590
  `;
12588
- const Rp = u.h3`
12591
+ const Pp = u.h3`
12589
12592
  ${se.heading03};
12590
12593
  color: var(--cds-text-primary);
12591
- `, Pp = u.div`
12594
+ `, Rp = u.div`
12592
12595
  ${se.body01};
12593
12596
  color: var(--cds-text-secondary);
12594
12597
  `, Qp = u(mA)`
@@ -12600,8 +12603,8 @@ const Rp = u.h3`
12600
12603
  return /* @__PURE__ */ p(Fp, { gap: 6, children: [
12601
12604
  /* @__PURE__ */ i(Qp, {}),
12602
12605
  /* @__PURE__ */ p(O, { gap: 3, children: [
12603
- /* @__PURE__ */ i(Rp, { children: "Failed to load acceptance tests" }),
12604
- /* @__PURE__ */ i(Pp, { children: "Make sure your test files contain no errors and reload your tests using the button below." })
12606
+ /* @__PURE__ */ i(Pp, { children: "Failed to load acceptance tests" }),
12607
+ /* @__PURE__ */ i(Rp, { children: "Make sure your test files contain no errors and reload your tests using the button below." })
12605
12608
  ] }),
12606
12609
  /* @__PURE__ */ i(
12607
12610
  q,
@@ -12675,7 +12678,7 @@ const Rp = u.h3`
12675
12678
  ] }),
12676
12679
  /* @__PURE__ */ p(O, { gap: 5, children: [
12677
12680
  /* @__PURE__ */ i(
12678
- RA,
12681
+ PA,
12679
12682
  {
12680
12683
  titleText: "Input data",
12681
12684
  id: "start-event",
@@ -12690,7 +12693,7 @@ const Rp = u.h3`
12690
12693
  ] }),
12691
12694
  /* @__PURE__ */ p(O, { gap: 5, children: [
12692
12695
  /* @__PURE__ */ i(
12693
- RA,
12696
+ PA,
12694
12697
  {
12695
12698
  titleText: "Output data",
12696
12699
  id: "end-event",
@@ -12736,14 +12739,14 @@ const Rp = u.h3`
12736
12739
  ] }) : e === "error" ? /* @__PURE__ */ i(Op, {}) : A.length === 0 ? /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ i(Np, {}) }) : t !== null ? /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ i(Jp, { selectedTestCase: t }) }) : /* @__PURE__ */ p(gt, { children: [
12737
12740
  /* @__PURE__ */ i(qi, { shouldAlignRight: !0 }),
12738
12741
  /* @__PURE__ */ p(HA, { size: "sm", children: [
12739
- /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Pe, { children: [
12742
+ /* @__PURE__ */ i(JA, { children: /* @__PURE__ */ p(Re, { children: [
12740
12743
  /* @__PURE__ */ i(xe, { children: "Name" }),
12741
12744
  /* @__PURE__ */ i(xe, { children: "Status" }),
12742
12745
  /* @__PURE__ */ i(xe, {})
12743
12746
  ] }) }),
12744
12747
  /* @__PURE__ */ i(YA, { children: A?.map((a) => {
12745
12748
  const { name: o } = a;
12746
- return /* @__PURE__ */ p(Pe, { children: [
12749
+ return /* @__PURE__ */ p(Re, { children: [
12747
12750
  /* @__PURE__ */ i(ne, { children: o }),
12748
12751
  /* @__PURE__ */ i(ne, {}),
12749
12752
  /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ p(Yr, { flipped: !0, align: "left", size: "sm", children: [
@@ -12892,7 +12895,7 @@ const Rp = u.h3`
12892
12895
  traceError: J,
12893
12896
  fetchWithAuth: X
12894
12897
  }) => {
12895
- const ae = v?.shouldUseOrchestrationClusterAPI, Z = A?.type, Ie = A?.config?.operateBaseUrl, R = Z === "saas" ? A.config.clusterId : void 0, [V, ge] = I(!0), [_e, ue] = I(!1);
12898
+ const ae = v?.shouldUseOrchestrationClusterAPI, Z = A?.type, Ie = A?.config?.operateBaseUrl, P = Z === "saas" ? A.config.clusterId : void 0, [V, ge] = I(!0), [_e, ue] = I(!1);
12896
12899
  F(
12897
12900
  () => Xe(
12898
12901
  () => w.state.status === "first-fetch" && w.state.instanceType !== "REWOUND_INSTANCE",
@@ -12914,13 +12917,13 @@ const Rp = u.h3`
12914
12917
  ), F(() => (Z === "saas" && lA.init(), he.init(v?.isReplayScenariosEnabled), x.init({
12915
12918
  areExecutionListenersSupported: v?.shouldUseOrchestrationClusterAPI ?? !1
12916
12919
  }), () => {
12917
- Z === "saas" && lA.reset(), w.reset(), Je.reset(), b.reset(), x.reset(), he.reset(), P.reset(), we.reset();
12920
+ Z === "saas" && lA.reset(), w.reset(), Je.reset(), b.reset(), x.reset(), he.reset(), R.reset(), we.reset();
12918
12921
  }), [
12919
12922
  v?.isReplayScenariosEnabled,
12920
12923
  v?.shouldUseOrchestrationClusterAPI,
12921
12924
  Z
12922
12925
  ]), F(() => {
12923
- Z === "saas" && !R || (Y.init({ mixpanelTrack: l, processId: a, diagramId: Q }), M.init({
12926
+ Z === "saas" && !P || (Y.init({ mixpanelTrack: l, processId: a, diagramId: Q }), M.init({
12924
12927
  authConfig: A,
12925
12928
  shouldUseOrchestrationClusterAPI: ae,
12926
12929
  traceError: J,
@@ -12930,7 +12933,7 @@ const Rp = u.h3`
12930
12933
  isSelfManagedEnv: Z === "sm"
12931
12934
  }));
12932
12935
  }, [
12933
- R,
12936
+ P,
12934
12937
  Z,
12935
12938
  a,
12936
12939
  Q,
@@ -12948,7 +12951,7 @@ const Rp = u.h3`
12948
12951
  onDeploymentError: s,
12949
12952
  xml: e,
12950
12953
  consoleDashboardPageUrl: k,
12951
- clusterId: R,
12954
+ clusterId: P,
12952
12955
  currentDiagramRevision: G,
12953
12956
  updateFileById: B,
12954
12957
  originAppInstanceId: S,
@@ -12963,7 +12966,7 @@ const Rp = u.h3`
12963
12966
  n,
12964
12967
  r,
12965
12968
  o,
12966
- R,
12969
+ P,
12967
12970
  d,
12968
12971
  h,
12969
12972
  g,
@@ -12980,7 +12983,7 @@ const Rp = u.h3`
12980
12983
  Ie,
12981
12984
  re
12982
12985
  ]), F(() => {
12983
- P.init({
12986
+ R.init({
12984
12987
  fetchTestsByProcessId: y,
12985
12988
  displayNotification: c,
12986
12989
  createFile: E,
@@ -13002,7 +13005,7 @@ const Rp = u.h3`
13002
13005
  ]);
13003
13006
  const ji = Yo({
13004
13007
  authType: Z,
13005
- clusterId: R,
13008
+ clusterId: P,
13006
13009
  displayNotification: c,
13007
13010
  isJobSearchAPISupported: v?.shouldUseOrchestrationClusterAPI ?? !1
13008
13011
  });
@@ -13052,10 +13055,10 @@ const Rp = u.h3`
13052
13055
  variables: Te,
13053
13056
  timeToLive: je,
13054
13057
  messageId: ns,
13055
- isStartEvent: Re
13058
+ isStartEvent: Pe
13056
13059
  }) => {
13057
13060
  let is = [];
13058
- if (Re) {
13061
+ if (Pe) {
13059
13062
  const AA = await M.fetchInstances(
13060
13063
  b.state.processDefinitionKey
13061
13064
  );
@@ -13072,7 +13075,7 @@ const Rp = u.h3`
13072
13075
  });
13073
13076
  if (Wi === !1)
13074
13077
  return { success: !1, status: SA };
13075
- if (Re) {
13078
+ if (Pe) {
13076
13079
  $A.displayNotification?.info({
13077
13080
  title: `Message "${Se}" published`
13078
13081
  }), ue(!0);
@@ -13097,12 +13100,12 @@ const Rp = u.h3`
13097
13100
  }) => {
13098
13101
  let je = [];
13099
13102
  if (Te) {
13100
- const Re = await M.fetchInstances(
13103
+ const Pe = await M.fetchInstances(
13101
13104
  b.state.processDefinitionKey
13102
13105
  );
13103
- if (!Re.success)
13106
+ if (!Pe.success)
13104
13107
  return { success: !1 };
13105
- je = Re.processInstances;
13108
+ je = Pe.processInstances;
13106
13109
  }
13107
13110
  if ((await M.broadcastSignal({
13108
13111
  signalName: Se,
@@ -13113,16 +13116,16 @@ const Rp = u.h3`
13113
13116
  $A.displayNotification?.info({
13114
13117
  title: `Signal "${Se}" broadcasted`
13115
13118
  }), ue(!0);
13116
- const Re = await ss(je);
13117
- return Re === null ? (console.error("Could not get new instance"), ue(!1), { success: !1 }) : (w.reset(), w.setInstanceDetails({
13118
- instanceKey: Re,
13119
+ const Pe = await ss(je);
13120
+ return Pe === null ? (console.error("Could not get new instance"), ue(!1), { success: !1 }) : (w.reset(), w.setInstanceDetails({
13121
+ instanceKey: Pe,
13119
13122
  instanceType: "NEW_INSTANCE"
13120
- }), ue(!1), be(te(Re), {
13123
+ }), ue(!1), be(te(Pe), {
13121
13124
  action: "startInstance",
13122
13125
  elementId: Ee,
13123
13126
  type: "broadcast-signal-event",
13124
13127
  variables: Ge
13125
- }), { success: !0, instanceId: Re });
13128
+ }), { success: !0, instanceId: Pe });
13126
13129
  }
13127
13130
  return { success: !0 };
13128
13131
  },