@camunda/play 3.2.2-rc.2 → 3.3.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/index.js +1562 -1561
- package/package.json +7 -6
package/build/index.js
CHANGED
|
@@ -151173,1611 +151173,1612 @@ class xZt extends Oh {
|
|
|
151173
151173
|
}
|
|
151174
151174
|
}
|
|
151175
151175
|
const HT = new xZt();
|
|
151176
|
-
function
|
|
151177
|
-
|
|
151178
|
-
|
|
151179
|
-
|
|
151180
|
-
|
|
151181
|
-
s !== null && (clearInterval(r), e(s)), t++, t >= n && (clearInterval(r), e(null));
|
|
151182
|
-
}, cy);
|
|
151183
|
-
});
|
|
151184
|
-
}
|
|
151185
|
-
const SZt = ({
|
|
151186
|
-
instanceKey: i,
|
|
151187
|
-
elementId: e
|
|
151188
|
-
}) => su(async () => {
|
|
151189
|
-
const { userTasks: t } = await ct.fetchUserTasks(i), n = t?.find(
|
|
151190
|
-
({ taskDefinitionId: r, taskState: s }) => r === e && s !== "COMPLETED"
|
|
151191
|
-
);
|
|
151192
|
-
return n !== void 0 ? n : null;
|
|
151193
|
-
}), R7e = ({
|
|
151194
|
-
instanceKey: i,
|
|
151195
|
-
elementId: e
|
|
151196
|
-
}) => su(async () => {
|
|
151197
|
-
const { flowNodeInstances: t } = await ct.fetchFlowNodeInstances(i), n = t?.find(
|
|
151198
|
-
({ flowNodeId: r, state: s }) => r === e && s !== "COMPLETED"
|
|
151176
|
+
function SZt(i, e) {
|
|
151177
|
+
const [t, n] = ye(
|
|
151178
|
+
() => Be.state.instanceKey
|
|
151179
|
+
), [r, s] = ye(
|
|
151180
|
+
() => wt.state.processDefinitionKey
|
|
151199
151181
|
);
|
|
151200
|
-
|
|
151201
|
-
|
|
151202
|
-
|
|
151203
|
-
|
|
151204
|
-
|
|
151205
|
-
|
|
151206
|
-
|
|
151207
|
-
|
|
151208
|
-
(
|
|
151209
|
-
|
|
151210
|
-
|
|
151211
|
-
|
|
151212
|
-
});
|
|
151213
|
-
function ir(i) {
|
|
151214
|
-
const e = JSON.parse(
|
|
151215
|
-
localStorage.getItem("historyEntries") || "[]"
|
|
151182
|
+
Ve(
|
|
151183
|
+
() => ps(
|
|
151184
|
+
() => Be.state.instanceKey,
|
|
151185
|
+
(c) => n(c)
|
|
151186
|
+
),
|
|
151187
|
+
[]
|
|
151188
|
+
), Ve(
|
|
151189
|
+
() => ps(
|
|
151190
|
+
() => wt.state.processDefinitionKey,
|
|
151191
|
+
(c) => s(c)
|
|
151192
|
+
),
|
|
151193
|
+
[]
|
|
151216
151194
|
);
|
|
151217
|
-
|
|
151218
|
-
|
|
151219
|
-
|
|
151220
|
-
|
|
151221
|
-
|
|
151222
|
-
|
|
151223
|
-
function
|
|
151224
|
-
|
|
151225
|
-
|
|
151226
|
-
|
|
151227
|
-
function
|
|
151228
|
-
|
|
151229
|
-
}
|
|
151230
|
-
|
|
151231
|
-
|
|
151232
|
-
|
|
151233
|
-
|
|
151234
|
-
|
|
151235
|
-
|
|
151236
|
-
|
|
151237
|
-
|
|
151238
|
-
return su(async () => {
|
|
151239
|
-
const { processInstances: e, success: t } = await ct.fetchInstances(
|
|
151240
|
-
wt.state.processDefinitionKey
|
|
151241
|
-
);
|
|
151242
|
-
if (t) {
|
|
151243
|
-
const n = e[0];
|
|
151244
|
-
return n && n.key !== i[0]?.key ? n.key : null;
|
|
151245
|
-
} else
|
|
151246
|
-
return null;
|
|
151247
|
-
});
|
|
151195
|
+
const o = Lb(
|
|
151196
|
+
async function(d) {
|
|
151197
|
+
gb.fetchUserTasks(d), VT.fetchTimers({ instanceKey: d }), qf.fetchIncidents(d), ca.fetchVariables({}), sr.fetchFlowNodeInstances(d), mb.fetchChildInstances({});
|
|
151198
|
+
},
|
|
151199
|
+
150
|
|
151200
|
+
), a = Lb(
|
|
151201
|
+
async function() {
|
|
151202
|
+
QVe.fetchTimers();
|
|
151203
|
+
},
|
|
151204
|
+
150
|
|
151205
|
+
), l = async function() {
|
|
151206
|
+
o(t), a();
|
|
151207
|
+
};
|
|
151208
|
+
return Ve(() => {
|
|
151209
|
+
if (!(i === "saas" && e === void 0))
|
|
151210
|
+
return t ? (Be.init(), Nr.init(), z2.init(), ta.init(), HT.init(), gb.init(), sr.init(), ca.init(), mb.init(), qf.init()) : (qf.init(), BT.init(r)), () => {
|
|
151211
|
+
Kg.reset(), VT.reset(), qf.reset(), gb.reset(), ca.reset(), mb.reset(), sr.reset(), Nr.reset(), z2.reset(), ta.reset(), HT.reset(), BT.reset(), ul.reset();
|
|
151212
|
+
};
|
|
151213
|
+
}, [i, e, t, r]), {
|
|
151214
|
+
reloadFailedAPIs: l
|
|
151215
|
+
};
|
|
151248
151216
|
}
|
|
151249
|
-
const
|
|
151250
|
-
|
|
151251
|
-
|
|
151252
|
-
|
|
151253
|
-
|
|
151254
|
-
isProcessRunning: r
|
|
151255
|
-
}) => {
|
|
151256
|
-
if (!r || !t)
|
|
151257
|
-
return !1;
|
|
151258
|
-
const s = e.$parent.id, o = e.$parent?.$parent?.id, a = n.includes(s) || s === i, l = n.includes(o) || o === i;
|
|
151259
|
-
return e.isInterrupting ? l && !a : l;
|
|
151260
|
-
}, WB = ({
|
|
151261
|
-
processId: i,
|
|
151262
|
-
isProcessRunning: e,
|
|
151263
|
-
candidate: t,
|
|
151264
|
-
activeElementIds: n
|
|
151265
|
-
}) => n.includes(t.elementId) || t.attachedToElementId && n.includes(t.attachedToElementId) || LZt({
|
|
151266
|
-
element: t.element,
|
|
151267
|
-
activeElementIds: n,
|
|
151268
|
-
isProcessRunning: e,
|
|
151269
|
-
isSubProcessStartEvent: t.isSubProcessStartEvent,
|
|
151270
|
-
processId: i
|
|
151271
|
-
}), kZt = (i, e) => {
|
|
151272
|
-
if (i && i.startsWith("=")) {
|
|
151273
|
-
const t = i.substring(1), n = e.find(
|
|
151274
|
-
(r) => r.name === t
|
|
151275
|
-
);
|
|
151276
|
-
return n?.value && k7(n?.value) ? JSON.parse(n.value) : i.substring(1);
|
|
151277
|
-
}
|
|
151278
|
-
};
|
|
151279
|
-
class NZt {
|
|
151280
|
-
constructor() {
|
|
151281
|
-
Fs(this, {
|
|
151282
|
-
startMessageSubscriptionCandidates: Ei.struct,
|
|
151283
|
-
activeMessageSubscriptionCandidates: Ei.struct
|
|
151284
|
-
});
|
|
151285
|
-
}
|
|
151286
|
-
get activeMessageSubscriptionCandidates() {
|
|
151287
|
-
const { messageSubscriptionCandidates: e } = Rt, { activeElementIdsWithoutIncident: t } = ta, { variables: n } = ca.state, r = Be.state.processInstance?.state === "ACTIVE";
|
|
151288
|
-
return e.filter(
|
|
151289
|
-
(s) => WB({
|
|
151290
|
-
processId: wt.processId,
|
|
151291
|
-
activeElementIds: t,
|
|
151292
|
-
candidate: s,
|
|
151293
|
-
isProcessRunning: r
|
|
151294
|
-
})
|
|
151295
|
-
).map((s) => ({
|
|
151296
|
-
...s,
|
|
151297
|
-
keyCandidate: kZt(
|
|
151298
|
-
s.messageCorrelationKey,
|
|
151299
|
-
n
|
|
151300
|
-
)
|
|
151301
|
-
}));
|
|
151217
|
+
const qr = pEe({
|
|
151218
|
+
featureFlags: {
|
|
151219
|
+
areAIFeaturesEnabled: !1,
|
|
151220
|
+
isSaveExampleDataEnabled: !1,
|
|
151221
|
+
isReplayScenariosEnabled: !1
|
|
151302
151222
|
}
|
|
151303
|
-
|
|
151304
|
-
|
|
151305
|
-
|
|
151306
|
-
|
|
151223
|
+
}), DZt = G(CI)`
|
|
151224
|
+
fill: #da1e28;
|
|
151225
|
+
`, MZt = G(gI)`
|
|
151226
|
+
fill: #525252;
|
|
151227
|
+
`, LZt = G(bI)`
|
|
151228
|
+
fill: #24a148;
|
|
151229
|
+
`, kZt = {
|
|
151230
|
+
ACTIVE: LZt,
|
|
151231
|
+
COMPLETED: MZt,
|
|
151232
|
+
INCIDENT: DZt,
|
|
151233
|
+
CANCELED: Bd,
|
|
151234
|
+
TERMINATED: Bd
|
|
151235
|
+
}, WB = ({ state: i, ...e }) => {
|
|
151236
|
+
const t = kZt[i] || Bd;
|
|
151237
|
+
return /* @__PURE__ */ E.jsx(t, { ...e, "data-testid": `state-${i}` });
|
|
151238
|
+
}, KVe = (i) => {
|
|
151239
|
+
try {
|
|
151240
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
151241
|
+
hour: "numeric",
|
|
151242
|
+
minute: "numeric",
|
|
151243
|
+
hour12: !0
|
|
151244
|
+
}).format(new Date(i));
|
|
151245
|
+
} catch {
|
|
151246
|
+
return i;
|
|
151307
151247
|
}
|
|
151308
|
-
}
|
|
151309
|
-
|
|
151310
|
-
|
|
151311
|
-
|
|
151312
|
-
|
|
151313
|
-
|
|
151314
|
-
|
|
151315
|
-
|
|
151248
|
+
}, JS = (i = "white") => `'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="${i}" points="12.5 16.45 7.55 11.5 8.964 10.086 12.5 13.621 16.036 10.086 17.45 11.5"/></svg>'`, NZt = G.button`
|
|
151249
|
+
position: relative;
|
|
151250
|
+
display: inline-flex;
|
|
151251
|
+
align-items: center;
|
|
151252
|
+
justify-content: center;
|
|
151253
|
+
white-space: nowrap;
|
|
151254
|
+
font-family: inherit;
|
|
151255
|
+
font-size: 14px;
|
|
151256
|
+
padding: 0 21px;
|
|
151257
|
+
cursor: pointer;
|
|
151258
|
+
text-decoration: none;
|
|
151259
|
+
outline: none;
|
|
151260
|
+
color: inherit;
|
|
151261
|
+
background-repeat: no-repeat;
|
|
151262
|
+
background-position: calc(100% - 10px) center;
|
|
151263
|
+
border-radius: 0;
|
|
151264
|
+
border-width: 1px;
|
|
151265
|
+
border-style: solid;
|
|
151266
|
+
border-color: transparent;
|
|
151267
|
+
|
|
151268
|
+
.cds--btn::-moz-focus-inner {
|
|
151269
|
+
padding: 0;
|
|
151270
|
+
border: 0;
|
|
151316
151271
|
}
|
|
151317
|
-
|
|
151318
|
-
|
|
151319
|
-
|
|
151320
|
-
|
|
151321
|
-
|
|
151322
|
-
activeElementIds: t,
|
|
151323
|
-
candidate: r,
|
|
151324
|
-
isProcessRunning: n
|
|
151325
|
-
})
|
|
151326
|
-
);
|
|
151272
|
+
|
|
151273
|
+
&[disabled] {
|
|
151274
|
+
box-shadow: none;
|
|
151275
|
+
cursor: not-allowed;
|
|
151276
|
+
pointer-events: none;
|
|
151327
151277
|
}
|
|
151328
|
-
|
|
151329
|
-
|
|
151330
|
-
|
|
151331
|
-
|
|
151278
|
+
|
|
151279
|
+
.loader {
|
|
151280
|
+
position: absolute;
|
|
151281
|
+
margin-left: auto;
|
|
151282
|
+
margin-right: auto;
|
|
151283
|
+
left: 0;
|
|
151284
|
+
right: 0;
|
|
151332
151285
|
}
|
|
151333
|
-
|
|
151334
|
-
|
|
151335
|
-
|
|
151336
|
-
|
|
151337
|
-
|
|
151338
|
-
|
|
151339
|
-
|
|
151340
|
-
|
|
151341
|
-
|
|
151342
|
-
|
|
151343
|
-
|
|
151344
|
-
({ active: a, incidents: l }) => Number(a) > 0 && Number(l) === 0
|
|
151345
|
-
).map(({ activityId: a }) => a),
|
|
151346
|
-
candidate: o,
|
|
151347
|
-
isProcessRunning: r.state === "ACTIVE"
|
|
151348
|
-
})
|
|
151349
|
-
).some((o) => o.elementId === e) ? !0 : null;
|
|
151350
|
-
});
|
|
151351
|
-
class KVe {
|
|
151352
|
-
startNewInstance = async function(t, n = "{}") {
|
|
151353
|
-
return (await ct.startInstance({
|
|
151354
|
-
bpmnProcessId: t,
|
|
151355
|
-
variables: n
|
|
151356
|
-
})).instanceId;
|
|
151357
|
-
};
|
|
151358
|
-
handleMessageEvent = async function({
|
|
151359
|
-
messageName: t,
|
|
151360
|
-
messageId: n,
|
|
151361
|
-
variables: r,
|
|
151362
|
-
messageCorrelationKey: s,
|
|
151363
|
-
timeToLive: o,
|
|
151364
|
-
elementId: a,
|
|
151365
|
-
isStartEvent: l,
|
|
151366
|
-
instanceKey: c
|
|
151367
|
-
}) {
|
|
151368
|
-
if (!l && !await H7e({
|
|
151369
|
-
instanceKey: c,
|
|
151370
|
-
elementId: a,
|
|
151371
|
-
candidates: Rt.messageSubscriptionCandidates
|
|
151372
|
-
}))
|
|
151373
|
-
return console.error("could not find active message subscription"), { success: !1 };
|
|
151374
|
-
await ct.publishMessage({
|
|
151375
|
-
messageName: t,
|
|
151376
|
-
correlationKey: s,
|
|
151377
|
-
variables: r,
|
|
151378
|
-
timeToLive: o,
|
|
151379
|
-
messageId: n
|
|
151380
|
-
});
|
|
151381
|
-
};
|
|
151382
|
-
handleSignalEvent = async function({
|
|
151383
|
-
signalName: t,
|
|
151384
|
-
variables: n,
|
|
151385
|
-
elementId: r,
|
|
151386
|
-
isStartEvent: s,
|
|
151387
|
-
instanceKey: o
|
|
151388
|
-
}) {
|
|
151389
|
-
if (!s && !await H7e({
|
|
151390
|
-
instanceKey: o,
|
|
151391
|
-
elementId: r,
|
|
151392
|
-
candidates: Rt.signalCandidates
|
|
151393
|
-
}))
|
|
151394
|
-
return console.error("could not find active signal candidate"), { success: !1 };
|
|
151395
|
-
await ct.broadcastSignal({
|
|
151396
|
-
signalName: t,
|
|
151397
|
-
variables: n
|
|
151398
|
-
});
|
|
151399
|
-
};
|
|
151400
|
-
handleUserTask = async function({
|
|
151401
|
-
elementId: t,
|
|
151402
|
-
instanceKey: n,
|
|
151403
|
-
variables: r = "{}"
|
|
151404
|
-
}) {
|
|
151405
|
-
const s = await SZt({
|
|
151406
|
-
instanceKey: n,
|
|
151407
|
-
elementId: t
|
|
151408
|
-
});
|
|
151409
|
-
return s === null ? { success: !1 } : ct.completeUserTask({
|
|
151410
|
-
taskId: s?.id,
|
|
151411
|
-
variables: r,
|
|
151412
|
-
isZeebeUserTask: s?.implementation === "ZEEBE_USER_TASK"
|
|
151413
|
-
});
|
|
151414
|
-
};
|
|
151415
|
-
handleServiceTask = async function({
|
|
151416
|
-
elementId: t,
|
|
151417
|
-
instanceKey: n,
|
|
151418
|
-
taskDefinitionType: r,
|
|
151419
|
-
variables: s = "{}"
|
|
151420
|
-
}) {
|
|
151421
|
-
return await R7e({
|
|
151422
|
-
instanceKey: n,
|
|
151423
|
-
elementId: t
|
|
151424
|
-
}) === null ? { success: !1 } : ct.completeJob({
|
|
151425
|
-
processInstanceKey: n,
|
|
151426
|
-
taskDefinitionType: r,
|
|
151427
|
-
variables: s,
|
|
151428
|
-
elementId: t
|
|
151429
|
-
});
|
|
151430
|
-
};
|
|
151431
|
-
handleThrowError = async function({
|
|
151432
|
-
elementId: t,
|
|
151433
|
-
instanceKey: n,
|
|
151434
|
-
taskDefinitionType: r,
|
|
151435
|
-
errorCode: s = ""
|
|
151436
|
-
}) {
|
|
151437
|
-
return await R7e({
|
|
151438
|
-
instanceKey: n,
|
|
151439
|
-
elementId: t
|
|
151440
|
-
}) === null ? { success: !1 } : ct.throwError({
|
|
151441
|
-
taskDefinitionType: r,
|
|
151442
|
-
processInstanceKey: n,
|
|
151443
|
-
errorCode: s,
|
|
151444
|
-
elementId: t
|
|
151445
|
-
});
|
|
151446
|
-
};
|
|
151447
|
-
handleResolveIncident = async function({
|
|
151448
|
-
elementId: t,
|
|
151449
|
-
instanceKey: n,
|
|
151450
|
-
hasJob: r
|
|
151451
|
-
}) {
|
|
151452
|
-
const s = await DZt({
|
|
151453
|
-
instanceKey: n,
|
|
151454
|
-
elementId: t
|
|
151455
|
-
});
|
|
151456
|
-
return s === null ? { success: !1 } : (r && await ct.updateRetries({
|
|
151457
|
-
jobKey: s.jobKey,
|
|
151458
|
-
retries: 1
|
|
151459
|
-
}), ct.resolveIncident(s.key));
|
|
151460
|
-
};
|
|
151461
|
-
handleSetVariables = async function({
|
|
151462
|
-
instanceKey: t,
|
|
151463
|
-
scope: n,
|
|
151464
|
-
variables: r
|
|
151465
|
-
}) {
|
|
151466
|
-
return ct.setVariables({
|
|
151467
|
-
elementInstanceKey: n ?? t ?? 0,
|
|
151468
|
-
variablesString: r
|
|
151469
|
-
});
|
|
151470
|
-
};
|
|
151471
|
-
createNewInstance = async ({
|
|
151472
|
-
startActionType: e,
|
|
151473
|
-
bpmnProcessId: t,
|
|
151474
|
-
variables: n
|
|
151475
|
-
}) => {
|
|
151476
|
-
const { processInstances: r, success: s } = await ct.fetchInstances(
|
|
151477
|
-
wt.state.processDefinitionKey
|
|
151478
|
-
);
|
|
151479
|
-
if (!s)
|
|
151480
|
-
return;
|
|
151481
|
-
let o;
|
|
151482
|
-
if (e === "start-event")
|
|
151483
|
-
o = await this.startNewInstance(t, n);
|
|
151484
|
-
else if (e === "message-start-event") {
|
|
151485
|
-
const a = sr.completedElementInstances.find(
|
|
151486
|
-
({ type: c }) => c === "START_EVENT"
|
|
151487
|
-
), l = PT.startMessageSubscriptionCandidates?.find(
|
|
151488
|
-
({ elementId: c }) => c === a?.flowNodeId
|
|
151489
|
-
);
|
|
151490
|
-
l === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleMessageEvent({
|
|
151491
|
-
messageName: l?.messageName,
|
|
151492
|
-
variables: n,
|
|
151493
|
-
isStartEvent: !0,
|
|
151494
|
-
elementId: l.elementId
|
|
151495
|
-
}), o = await B7e(r) ?? void 0);
|
|
151496
|
-
} else if (e == "broadcast-signal-event") {
|
|
151497
|
-
const a = sr.completedElementInstances.find(
|
|
151498
|
-
({ type: c }) => c === "START_EVENT"
|
|
151499
|
-
), l = FT.startSignalCandidates?.find(
|
|
151500
|
-
({ elementId: c }) => c === a?.flowNodeId
|
|
151501
|
-
);
|
|
151502
|
-
l === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleSignalEvent({
|
|
151503
|
-
signalName: l?.signalName,
|
|
151504
|
-
variables: n,
|
|
151505
|
-
isStartEvent: !0,
|
|
151506
|
-
elementId: l.elementId
|
|
151507
|
-
}), o = await B7e(r) ?? void 0);
|
|
151508
|
-
}
|
|
151509
|
-
return o;
|
|
151510
|
-
};
|
|
151511
|
-
repeatUserActions = async ({
|
|
151512
|
-
newInstanceKey: e,
|
|
151513
|
-
actions: t,
|
|
151514
|
-
untilElementId: n,
|
|
151515
|
-
breakOnFailure: r
|
|
151516
|
-
}) => {
|
|
151517
|
-
let s = { success: !0 };
|
|
151518
|
-
const o = [];
|
|
151519
|
-
for (const a of t) {
|
|
151520
|
-
if (a.action === "startInstance") {
|
|
151521
|
-
o.push(a);
|
|
151522
|
-
continue;
|
|
151523
|
-
}
|
|
151524
|
-
if (n !== void 0 && a.action !== "setVariables" && a.elementId === n)
|
|
151525
|
-
break;
|
|
151526
|
-
switch (a.action) {
|
|
151527
|
-
case "completeJob": {
|
|
151528
|
-
a.type === "userTask" ? s = await this.handleUserTask({
|
|
151529
|
-
elementId: a.elementId,
|
|
151530
|
-
instanceKey: e,
|
|
151531
|
-
variables: a.variables
|
|
151532
|
-
}) : s = await this.handleServiceTask({
|
|
151533
|
-
elementId: a.elementId,
|
|
151534
|
-
taskDefinitionType: a.taskDefinitionType,
|
|
151535
|
-
instanceKey: e,
|
|
151536
|
-
variables: a.variables
|
|
151537
|
-
});
|
|
151538
|
-
break;
|
|
151286
|
+
|
|
151287
|
+
${({ $variant: i, $isDropdown: e }) => {
|
|
151288
|
+
if (i === "primary")
|
|
151289
|
+
return `
|
|
151290
|
+
background-color: var(--cds-blue-60, #0f62fe);
|
|
151291
|
+
${e ? `background-image: url(${JS()}); padding-right: 40px;` : ""};
|
|
151292
|
+
color: white;
|
|
151293
|
+
font-weight: bold;
|
|
151294
|
+
|
|
151295
|
+
&:not([disabled]):hover {
|
|
151296
|
+
background-color: var(--cds-blue-70, #0043ce);
|
|
151539
151297
|
}
|
|
151540
|
-
|
|
151541
|
-
|
|
151542
|
-
|
|
151543
|
-
|
|
151544
|
-
variables: a.variables,
|
|
151545
|
-
timeToLive: a.timeToLive,
|
|
151546
|
-
elementId: a.elementId,
|
|
151547
|
-
messageCorrelationKey: a.messageCorrelationKey,
|
|
151548
|
-
isStartEvent: !1,
|
|
151549
|
-
instanceKey: e
|
|
151550
|
-
});
|
|
151551
|
-
break;
|
|
151298
|
+
|
|
151299
|
+
&:not([disabled]):focus {
|
|
151300
|
+
border-color: var(--cds-blue-60);
|
|
151301
|
+
box-shadow: inset 0 0 0 1px var(--cds-blue-60, #0f62fe),inset 0 0 0 2px white
|
|
151552
151302
|
}
|
|
151553
|
-
|
|
151554
|
-
|
|
151555
|
-
|
|
151556
|
-
variables: a.variables,
|
|
151557
|
-
isStartEvent: !1,
|
|
151558
|
-
elementId: a.elementId,
|
|
151559
|
-
instanceKey: e
|
|
151560
|
-
});
|
|
151561
|
-
break;
|
|
151303
|
+
|
|
151304
|
+
&:not([disabled]):active {
|
|
151305
|
+
background-color: var(--cds-blue-80, #002d9c)
|
|
151562
151306
|
}
|
|
151563
|
-
|
|
151564
|
-
|
|
151565
|
-
|
|
151566
|
-
taskDefinitionType: a.taskDefinitionType,
|
|
151567
|
-
instanceKey: e,
|
|
151568
|
-
errorCode: a.errorCode
|
|
151569
|
-
});
|
|
151570
|
-
break;
|
|
151307
|
+
|
|
151308
|
+
&[disabled] {
|
|
151309
|
+
background-color: var(--cds-blue-40, #78a9ff);
|
|
151571
151310
|
}
|
|
151572
|
-
|
|
151573
|
-
|
|
151574
|
-
|
|
151575
|
-
|
|
151576
|
-
|
|
151577
|
-
|
|
151578
|
-
|
|
151311
|
+
`;
|
|
151312
|
+
if (i === "danger-primary")
|
|
151313
|
+
return `
|
|
151314
|
+
border-size: 1px;
|
|
151315
|
+
border-color: var(--cm-color-button-red3, #ff0a0a);
|
|
151316
|
+
background-color: var(--cm-color-red-base, #ff3d3d);
|
|
151317
|
+
color: white;
|
|
151318
|
+
font-weight: bold;
|
|
151319
|
+
`;
|
|
151320
|
+
if (i === "secondary")
|
|
151321
|
+
return `
|
|
151322
|
+
background-color: var(--silver-base-97);
|
|
151323
|
+
${e ? `background-image: url(${JS(
|
|
151324
|
+
"hsl(0,0%,33%)"
|
|
151325
|
+
)}); padding-right: 40px;` : ""};
|
|
151326
|
+
color: var(--grey-darken-30);
|
|
151327
|
+
border: 1px solid var(--silver-darken-80);
|
|
151328
|
+
font-weight: bold;
|
|
151329
|
+
|
|
151330
|
+
&:not([disabled]):hover, &:not([disabled]):focus {
|
|
151331
|
+
background-color: var(--silver-darken-94);
|
|
151332
|
+
border-color: var(--silver-darken-80);
|
|
151579
151333
|
}
|
|
151580
|
-
|
|
151581
|
-
|
|
151582
|
-
|
|
151583
|
-
|
|
151584
|
-
variables: a.variables
|
|
151585
|
-
});
|
|
151586
|
-
break;
|
|
151334
|
+
|
|
151335
|
+
&:not([disabled]):active {
|
|
151336
|
+
background-color: var(--silver-darken-87);
|
|
151337
|
+
border-color: var(--silver-darken-80);
|
|
151587
151338
|
}
|
|
151588
|
-
|
|
151589
|
-
|
|
151590
|
-
|
|
151591
|
-
|
|
151592
|
-
|
|
151593
|
-
|
|
151594
|
-
|
|
151595
|
-
|
|
151596
|
-
|
|
151597
|
-
|
|
151598
|
-
|
|
151599
|
-
|
|
151600
|
-
|
|
151601
|
-
|
|
151602
|
-
|
|
151603
|
-
|
|
151604
|
-
|
|
151605
|
-
|
|
151606
|
-
|
|
151607
|
-
|
|
151608
|
-
|
|
151609
|
-
|
|
151610
|
-
|
|
151611
|
-
|
|
151612
|
-
|
|
151613
|
-
|
|
151614
|
-
|
|
151615
|
-
|
|
151339
|
+
|
|
151340
|
+
&[disabled] {
|
|
151341
|
+
background-color: var(--silver-base-97);
|
|
151342
|
+
border-color: var(--silver-darken-87);
|
|
151343
|
+
color: var(--grey-lighten-56);
|
|
151344
|
+
}
|
|
151345
|
+
`;
|
|
151346
|
+
if (i === "text")
|
|
151347
|
+
return `
|
|
151348
|
+
font-weight: 500;
|
|
151349
|
+
background-color: transparent;
|
|
151350
|
+
${e ? `background-image: url(${JS("hsl(0,0%,33%)")});` : ""};
|
|
151351
|
+
border: none;
|
|
151352
|
+
padding: ${e ? "0 35px 0 0" : "0"};
|
|
151353
|
+
margin: 0;
|
|
151354
|
+
`;
|
|
151355
|
+
}}
|
|
151356
|
+
${({ $size: i }) => i == "small" ? `
|
|
151357
|
+
height: 30px;
|
|
151358
|
+
border-radius: 2px;
|
|
151359
|
+
line-height: 26px;
|
|
151360
|
+
font-size: 13px;
|
|
151361
|
+
` : `
|
|
151362
|
+
height: 36px;
|
|
151363
|
+
line-height: 32px;
|
|
151364
|
+
border-radius: 3px;
|
|
151365
|
+
`}
|
|
151366
|
+
`, TZt = G.div`
|
|
151367
|
+
display: flex;
|
|
151368
|
+
align-items: center;
|
|
151369
|
+
|
|
151370
|
+
&.is-loading {
|
|
151371
|
+
opacity: 0.35;
|
|
151616
151372
|
}
|
|
151617
|
-
|
|
151618
|
-
|
|
151373
|
+
`, $c = s1(
|
|
151374
|
+
({
|
|
151375
|
+
children: i,
|
|
151376
|
+
component: e = "button",
|
|
151377
|
+
dropdown: t = !1,
|
|
151378
|
+
disabled: n = !1,
|
|
151379
|
+
loading: r = !1,
|
|
151380
|
+
lightLoader: s = !1,
|
|
151381
|
+
loaderSize: o = "normal",
|
|
151382
|
+
size: a = "normal",
|
|
151383
|
+
variant: l = "primary",
|
|
151384
|
+
...c
|
|
151385
|
+
}, d) => /* @__PURE__ */ E.jsx(
|
|
151386
|
+
NZt,
|
|
151387
|
+
{
|
|
151388
|
+
as: e,
|
|
151389
|
+
ref: d,
|
|
151390
|
+
$isDropdown: t,
|
|
151391
|
+
disabled: r || n,
|
|
151392
|
+
$size: a,
|
|
151393
|
+
$variant: l,
|
|
151394
|
+
...c,
|
|
151395
|
+
children: r ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
151396
|
+
/* @__PURE__ */ E.jsx(RZt, { className: "loader", light: s, size: o }),
|
|
151397
|
+
/* @__PURE__ */ E.jsx(TZt, { className: "is-loading", children: i })
|
|
151398
|
+
] }) : i
|
|
151399
|
+
}
|
|
151400
|
+
)
|
|
151401
|
+
), IZt = U2`
|
|
151402
|
+
from { transform: rotate(0deg); }
|
|
151403
|
+
to { transform: rotate(360deg); }
|
|
151404
|
+
`, OZt = G.span`
|
|
151405
|
+
display: inline-block;
|
|
151406
|
+
width: ${({ size: i = "small" }) => i == "small" ? "20px" : "40px"};
|
|
151407
|
+
height: ${({ size: i = "small" }) => i == "small" ? "20px" : "40px"};
|
|
151408
|
+
border-radius: 50%;
|
|
151409
|
+
border: ${({ size: i = "small" }) => i == "small" ? "2px" : "4px"} solid
|
|
151410
|
+
${({ light: i = !1 }) => i ? "white" : "var(--cds-blue-60)"};
|
|
151411
|
+
border-bottom-color: transparent;
|
|
151412
|
+
animation: ${IZt} 1.2s linear infinite;
|
|
151413
|
+
`, RZt = OZt, VZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-clock", viewBox: "0 0 16 16", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z" }), /* @__PURE__ */ ve.createElement("path", { d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z" })), BZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M15 4.5L13.5 3L9 7.5L4.5 3L3 4.5L7.5 9L3 13.5L4.5 15L9 10.5L13.5 15L15 13.5L10.5 9L15 4.5Z", fill: "currentColor" })), HZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 2, height: 10, viewBox: "0 0 2 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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__ */ ve.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__ */ ve.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" })), YVe = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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__ */ ve.createElement("rect", { x: 1, y: 2, width: 10, height: 1, fill: "white" }), /* @__PURE__ */ ve.createElement("rect", { x: 1, y: 5, width: 7, height: 1, fill: "white" }), /* @__PURE__ */ ve.createElement("rect", { x: 1, y: 8, width: 4, height: 1, fill: "white" })), PZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-envelope", viewBox: "0 0 16 16", ...i }, /* @__PURE__ */ ve.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" })), FZt = (i) => /* @__PURE__ */ ve.createElement("svg", { style: {
|
|
151414
|
+
paddingLeft: 4
|
|
151415
|
+
}, width: 11, height: 12, viewBox: "0 0 11 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M0.5 12C0.367392 12 0.240215 11.9473 0.146447 11.8535C0.0526785 11.7598 1.36127e-09 11.6326 1.36127e-09 11.5V0.499976C-6.40951e-06 0.413085 0.0226312 0.327692 0.065681 0.252216C0.108731 0.176739 0.170707 0.113784 0.245499 0.0695563C0.320292 0.0253287 0.405319 0.00135537 0.4922 -1.73655e-07C0.57908 -0.00135572 0.664814 0.0199533 0.74095 0.0618261L10.7409 5.56183C10.8194 5.60497 10.8848 5.66839 10.9304 5.74546C10.976 5.82252 11 5.91042 11 5.99995C11 6.08949 10.976 6.17738 10.9304 6.25445C10.8848 6.33152 10.8194 6.39493 10.7409 6.43808L0.74095 11.9381C0.667127 11.9787 0.584248 12 0.5 12Z", fill: "white" })), N7 = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-arrow-counterclockwise", viewBox: "0 0 16 16", ...i }, /* @__PURE__ */ ve.createElement("path", { fillRule: "evenodd", d: "M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z" }), /* @__PURE__ */ ve.createElement("path", { d: "M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z" })), zZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { fill: "#52C16B" }, /* @__PURE__ */ ve.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__ */ ve.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" }))), WZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 17, height: 16, viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { clipPath: "url(#clip0_2557_56096)" }, /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, transform: "translate(0.5)", fill: "transparent" }), /* @__PURE__ */ ve.createElement("g", { clipPath: "url(#clip1_2557_56096)" }, /* @__PURE__ */ ve.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__ */ ve.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__ */ ve.createElement("defs", null, /* @__PURE__ */ ve.createElement("clipPath", { id: "clip0_2557_56096" }, /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })), /* @__PURE__ */ ve.createElement("clipPath", { id: "clip1_2557_56096" }, /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })))), jZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 180, height: 180, viewBox: "0 0 180 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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" })), ZZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { fill: "currentColor", d: "M13 5H11V11H5V13H11V19H13V13H19V11H13V5Z" })), UZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...i }, /* @__PURE__ */ ve.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" })), qZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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" })), GZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...i }, /* @__PURE__ */ ve.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" })), QZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ ve.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__ */ ve.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" }))), KZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ ve.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__ */ ve.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" }))), YZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 17, height: 15, viewBox: "0 0 17 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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__ */ ve.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" })), XZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 18, height: 16, viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M1.18528 15.25L9 1.03773L16.8147 15.25H1.18528Z", stroke: "white" })), JZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ...i }, /* @__PURE__ */ ve.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" })), $Zt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M12 3H4v10h8V3Z", fill: "#000" }), /* @__PURE__ */ ve.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" })), eUt = G.div`
|
|
151416
|
+
position: fixed;
|
|
151417
|
+
z-index: var(--z-dialog);
|
|
151418
|
+
right: 0;
|
|
151419
|
+
bottom: 0;
|
|
151420
|
+
top: 0;
|
|
151421
|
+
left: 0;
|
|
151422
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
151423
|
+
display: flex;
|
|
151424
|
+
align-items: center;
|
|
151425
|
+
justify-content: center;
|
|
151426
|
+
flex-direction: column;
|
|
151427
|
+
`, tUt = G.div`
|
|
151428
|
+
position: relative;
|
|
151429
|
+
background-color: white;
|
|
151430
|
+
box-shadow:
|
|
151431
|
+
0px 11px 15px -7px rgba(0, 0, 0, 0.2),
|
|
151432
|
+
0px 24px 38px 3px rgba(0, 0, 0, 0.14),
|
|
151433
|
+
0px 9px 46px 8px rgba(0, 0, 0, 0.12);
|
|
151434
|
+
margin: 32px;
|
|
151435
|
+
overflow-y: auto;
|
|
151436
|
+
width: 100%;
|
|
151437
|
+
max-width: ${({ $maxWidth: i }) => `${i}px`};
|
|
151438
|
+
max-height: calc(100% - 64px);
|
|
151439
|
+
border-radius: var(--spacing-tiny);
|
|
151440
|
+
`, nUt = G.header`
|
|
151441
|
+
text-align: center;
|
|
151442
|
+
padding: 15px 25px;
|
|
151443
|
+
border-bottom: 1px solid var(--silver-darken-87);
|
|
151444
|
+
`, iUt = G.h2.attrs({ id: "dialog-title" })`
|
|
151445
|
+
margin: 0;
|
|
151446
|
+
font-size: 16px;
|
|
151447
|
+
`, rUt = G.p`
|
|
151448
|
+
margin: 0;
|
|
151449
|
+
`, sUt = G.div`
|
|
151450
|
+
padding: 25px;
|
|
151451
|
+
`, oUt = G.footer`
|
|
151452
|
+
display: flex;
|
|
151453
|
+
padding: 15px 25px;
|
|
151454
|
+
align-items: center;
|
|
151455
|
+
justify-content: ${({
|
|
151456
|
+
//@ts-expect-error Property 'justify' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, never>'.ts(2339)
|
|
151457
|
+
justify: i
|
|
151458
|
+
}) => `${i || "flex-end"}`};
|
|
151459
|
+
border-top: 1px solid var(--silver-darken-87);
|
|
151460
|
+
background-color: var(--silver-darken-94);
|
|
151461
|
+
|
|
151462
|
+
> *:not(:last-child) {
|
|
151463
|
+
margin-right: 5px;
|
|
151464
|
+
}
|
|
151465
|
+
`, aUt = G.div`
|
|
151466
|
+
position: absolute;
|
|
151467
|
+
top: 11px;
|
|
151468
|
+
right: 5px;
|
|
151469
|
+
z-index: 1;
|
|
151470
|
+
`, Dr = ({
|
|
151471
|
+
open: i,
|
|
151472
|
+
clickOutsideToClose: e = !0,
|
|
151473
|
+
onClose: t,
|
|
151474
|
+
onConfirm: n,
|
|
151475
|
+
children: r,
|
|
151476
|
+
maxWidth: s = 750,
|
|
151477
|
+
...o
|
|
151478
|
+
}) => {
|
|
151479
|
+
const a = an();
|
|
151480
|
+
Ve(() => {
|
|
151481
|
+
if (i) {
|
|
151482
|
+
const u = l();
|
|
151483
|
+
u.length > 0 && u[0].focus();
|
|
151484
|
+
}
|
|
151485
|
+
}, [i]);
|
|
151486
|
+
const l = () => a.current ? Array.from(
|
|
151487
|
+
//@ts-expect-error Property 'querySelectorAll' does not exist on type 'never'.ts(2339)
|
|
151488
|
+
a.current.querySelectorAll("select, input, textarea, button, a")
|
|
151489
|
+
).filter(
|
|
151490
|
+
//@ts-expect-error 'element' is of type 'unknown'.ts(18046)
|
|
151491
|
+
(u) => !u.disabled
|
|
151492
|
+
) : [], c = (u) => {
|
|
151493
|
+
if (u.key == "Escape" && typeof t == "function")
|
|
151494
|
+
return t();
|
|
151495
|
+
if (u.key == "Enter" && typeof n == "function")
|
|
151496
|
+
return n(u);
|
|
151497
|
+
const f = l();
|
|
151498
|
+
u.key == "Tab" && f.length > 0 && f.indexOf(document.activeElement) == f.length - 1 && (u.preventDefault(), f[0].focus());
|
|
151499
|
+
}, d = (u) => {
|
|
151500
|
+
u.currentTarget == u.target && typeof t == "function" && e && t();
|
|
151619
151501
|
};
|
|
151620
|
-
|
|
151621
|
-
|
|
151622
|
-
|
|
151623
|
-
|
|
151624
|
-
|
|
151625
|
-
|
|
151502
|
+
return i ? on(
|
|
151503
|
+
/* @__PURE__ */ E.jsx(eUt, { onClick: d, children: /* @__PURE__ */ E.jsxs(
|
|
151504
|
+
tUt,
|
|
151505
|
+
{
|
|
151506
|
+
tabIndex: 1,
|
|
151507
|
+
onKeyDown: c,
|
|
151508
|
+
role: "dialog",
|
|
151509
|
+
"aria-modal": "true",
|
|
151510
|
+
"aria-labelledby": "dialog-title",
|
|
151511
|
+
ref: a,
|
|
151512
|
+
$maxWidth: s,
|
|
151513
|
+
...o,
|
|
151514
|
+
children: [
|
|
151515
|
+
t && /* @__PURE__ */ E.jsx(aUt, { children: /* @__PURE__ */ E.jsx(
|
|
151516
|
+
hUt,
|
|
151517
|
+
{
|
|
151518
|
+
onClick: t,
|
|
151519
|
+
variant: "inherit",
|
|
151520
|
+
title: "Close the dialog",
|
|
151521
|
+
"data-test": "close-dialog",
|
|
151522
|
+
children: /* @__PURE__ */ E.jsx(BZt, { width: "16", height: "16" })
|
|
151523
|
+
}
|
|
151524
|
+
) }),
|
|
151525
|
+
r
|
|
151526
|
+
]
|
|
151527
|
+
}
|
|
151528
|
+
) }),
|
|
151529
|
+
document.body
|
|
151530
|
+
) : null;
|
|
151531
|
+
}, lUt = ({ children: i }) => /* @__PURE__ */ E.jsx(nUt, { children: i });
|
|
151532
|
+
Dr.Header = lUt;
|
|
151533
|
+
Dr.Title = iUt;
|
|
151534
|
+
Dr.Subtitle = rUt;
|
|
151535
|
+
Dr.Content = sUt;
|
|
151536
|
+
Dr.Footer = oUt;
|
|
151537
|
+
const cUt = G.button`
|
|
151538
|
+
border-radius: ${({ noRadius: i }) => i ? "inherit" : "50%"};
|
|
151539
|
+
cursor: pointer;
|
|
151540
|
+
border: none;
|
|
151541
|
+
background-color: transparent;
|
|
151542
|
+
padding: 0;
|
|
151543
|
+
display: inline-flex;
|
|
151544
|
+
align-items: center;
|
|
151545
|
+
justify-content: center;
|
|
151546
|
+
outline: none;
|
|
151547
|
+
color: inherit;
|
|
151548
|
+
|
|
151549
|
+
&::-moz-focus-inner {
|
|
151550
|
+
border: 0;
|
|
151626
151551
|
}
|
|
151627
|
-
|
|
151628
|
-
|
|
151629
|
-
|
|
151630
|
-
);
|
|
151552
|
+
|
|
151553
|
+
&:not([disabled]):hover {
|
|
151554
|
+
background-color: rgba(0, 0, 0, 0.07);
|
|
151631
151555
|
}
|
|
151632
|
-
|
|
151633
|
-
|
|
151556
|
+
|
|
151557
|
+
&:not([disabled]):active {
|
|
151558
|
+
background-color: rgba(0, 0, 0, 0.16);
|
|
151634
151559
|
}
|
|
151635
|
-
|
|
151636
|
-
|
|
151637
|
-
|
|
151638
|
-
|
|
151639
|
-
/* @__PURE__ */ new Set([...this.allCoveredFlowNodeIds, ...e])
|
|
151640
|
-
).length / Rt.flowNodeIds.length * 100;
|
|
151641
|
-
return Math.max(0, n - this.totalCoverage);
|
|
151560
|
+
|
|
151561
|
+
&[disabled] {
|
|
151562
|
+
color: var(--grey-lighten-56);
|
|
151563
|
+
cursor: not-allowed;
|
|
151642
151564
|
}
|
|
151643
|
-
replay = async ({
|
|
151644
|
-
processId: e,
|
|
151645
|
-
actions: t
|
|
151646
|
-
}) => {
|
|
151647
|
-
const n = t.find(
|
|
151648
|
-
({ action: a }) => a === "startInstance"
|
|
151649
|
-
);
|
|
151650
|
-
if (n === void 0)
|
|
151651
|
-
return { isCompleted: !1 };
|
|
151652
|
-
const r = await this.createNewInstance({
|
|
151653
|
-
startActionType: n.type,
|
|
151654
|
-
variables: n.variables,
|
|
151655
|
-
bpmnProcessId: e
|
|
151656
|
-
});
|
|
151657
|
-
if (r === void 0)
|
|
151658
|
-
return { isCompleted: !1 };
|
|
151659
|
-
const { success: s } = await this.repeatUserActions({
|
|
151660
|
-
newInstanceKey: r,
|
|
151661
|
-
actions: t,
|
|
151662
|
-
breakOnFailure: !0
|
|
151663
|
-
});
|
|
151664
|
-
return s ? { isCompleted: await this.isScenarioCompleted({
|
|
151665
|
-
instanceKey: r
|
|
151666
|
-
}), processInstanceKeyForScenarioRun: r } : {
|
|
151667
|
-
isCompleted: !1,
|
|
151668
|
-
processInstanceKeyForScenarioRun: r
|
|
151669
|
-
};
|
|
151670
|
-
};
|
|
151671
|
-
startRunningSingleScenario = (e) => {
|
|
151672
|
-
if (this.state.scenarioRuns[e] === void 0) {
|
|
151673
|
-
this.state.scenarioRuns[e] = {
|
|
151674
|
-
status: "Running"
|
|
151675
|
-
};
|
|
151676
|
-
return;
|
|
151677
|
-
}
|
|
151678
|
-
this.state.scenarioRuns[e] = {
|
|
151679
|
-
...this.state.scenarioRuns[e],
|
|
151680
|
-
status: "Running"
|
|
151681
|
-
};
|
|
151682
|
-
};
|
|
151683
|
-
runSingleScenario = async ({
|
|
151684
|
-
name: e,
|
|
151685
|
-
processId: t,
|
|
151686
|
-
actions: n
|
|
151687
|
-
}) => {
|
|
151688
|
-
this.startRunningSingleScenario(e);
|
|
151689
|
-
const { isCompleted: r, processInstanceKeyForScenarioRun: s } = await this.replay({
|
|
151690
|
-
processId: t,
|
|
151691
|
-
actions: n
|
|
151692
|
-
});
|
|
151693
|
-
this.updateSingleScenarioRun(e, {
|
|
151694
|
-
status: r ? "Completed" : "Failed",
|
|
151695
|
-
instanceKey: s
|
|
151696
|
-
});
|
|
151697
|
-
};
|
|
151698
|
-
updateSingleScenarioRun = (e, t) => {
|
|
151699
|
-
this.state.scenarioRuns[e] = t;
|
|
151700
|
-
};
|
|
151701
|
-
getScenarioRun = (e) => xi.state.scenarioRuns[e];
|
|
151702
|
-
isScenarioCompleted = ({
|
|
151703
|
-
instanceKey: e
|
|
151704
|
-
}) => su(async () => {
|
|
151705
|
-
const { processInstance: t } = await ct.fetchInstanceDetails(e);
|
|
151706
|
-
return t.state === "COMPLETED" ? !0 : null;
|
|
151707
|
-
});
|
|
151708
|
-
get isAnyScenarioRunning() {
|
|
151709
|
-
return Object.values(this.state.scenarioRuns).some(
|
|
151710
|
-
(e) => e.status === "Running"
|
|
151711
|
-
);
|
|
151712
|
-
}
|
|
151713
|
-
setSelectedScenario = (e) => {
|
|
151714
|
-
this.state.selectedScenario = e;
|
|
151715
|
-
};
|
|
151716
|
-
clearSelectedScenario = () => {
|
|
151717
|
-
this.state.selectedScenario = void 0;
|
|
151718
|
-
};
|
|
151719
|
-
deleteScenario = ({
|
|
151720
|
-
scenario: e,
|
|
151721
|
-
processId: t
|
|
151722
|
-
}) => {
|
|
151723
|
-
nZt(t, e.key), delete this.state.scenarioRuns[e.name];
|
|
151724
|
-
};
|
|
151725
|
-
reset = () => {
|
|
151726
|
-
this.state = { ...P7e };
|
|
151727
|
-
};
|
|
151728
|
-
};
|
|
151729
|
-
const xi = new IZt();
|
|
151730
|
-
function OZt(i, e) {
|
|
151731
|
-
const [t, n] = ye(
|
|
151732
|
-
() => Be.state.instanceKey
|
|
151733
|
-
), [r, s] = ye(
|
|
151734
|
-
() => wt.state.processDefinitionKey
|
|
151735
|
-
);
|
|
151736
|
-
Ve(
|
|
151737
|
-
() => ps(
|
|
151738
|
-
() => Be.state.instanceKey,
|
|
151739
|
-
(c) => n(c)
|
|
151740
|
-
),
|
|
151741
|
-
[]
|
|
151742
|
-
), Ve(
|
|
151743
|
-
() => ps(
|
|
151744
|
-
() => wt.state.processDefinitionKey,
|
|
151745
|
-
(c) => s(c)
|
|
151746
|
-
),
|
|
151747
|
-
[]
|
|
151748
|
-
);
|
|
151749
|
-
const o = Lb(
|
|
151750
|
-
async function(d) {
|
|
151751
|
-
gb.fetchUserTasks(d), VT.fetchTimers({ instanceKey: d }), qf.fetchIncidents(d), ca.fetchVariables({}), sr.fetchFlowNodeInstances(d), mb.fetchChildInstances({});
|
|
151752
|
-
},
|
|
151753
|
-
150
|
|
151754
|
-
), a = Lb(
|
|
151755
|
-
async function() {
|
|
151756
|
-
QVe.fetchTimers();
|
|
151757
|
-
},
|
|
151758
|
-
150
|
|
151759
|
-
), l = async function() {
|
|
151760
|
-
o(t), a();
|
|
151761
|
-
};
|
|
151762
|
-
return Ve(() => {
|
|
151763
|
-
if (!(i === "saas" && e === void 0))
|
|
151764
|
-
return t ? (Be.init(), Nr.init(), z2.init(), ta.init(), HT.init(), gb.init(), sr.init(), ca.init(), mb.init(), qf.init()) : (qf.init(), BT.init(r)), () => {
|
|
151765
|
-
Kg.reset(), VT.reset(), qf.reset(), gb.reset(), ca.reset(), mb.reset(), sr.reset(), Nr.reset(), z2.reset(), ta.reset(), HT.reset(), BT.reset(), ul.reset(), xi.reset();
|
|
151766
|
-
};
|
|
151767
|
-
}, [i, e, t, r]), {
|
|
151768
|
-
reloadFailedAPIs: l
|
|
151769
|
-
};
|
|
151770
|
-
}
|
|
151771
|
-
const qr = pEe({
|
|
151772
|
-
featureFlags: {
|
|
151773
|
-
areAIFeaturesEnabled: !1,
|
|
151774
|
-
isSaveExampleDataEnabled: !1,
|
|
151775
|
-
isReplayScenariosEnabled: !1
|
|
151776
|
-
}
|
|
151777
|
-
}), RZt = G(CI)`
|
|
151778
|
-
fill: #da1e28;
|
|
151779
|
-
`, VZt = G(gI)`
|
|
151780
|
-
fill: #525252;
|
|
151781
|
-
`, BZt = G(bI)`
|
|
151782
|
-
fill: #24a148;
|
|
151783
|
-
`, HZt = {
|
|
151784
|
-
ACTIVE: BZt,
|
|
151785
|
-
COMPLETED: VZt,
|
|
151786
|
-
INCIDENT: RZt,
|
|
151787
|
-
CANCELED: Bd,
|
|
151788
|
-
TERMINATED: Bd
|
|
151789
|
-
}, jB = ({ state: i, ...e }) => {
|
|
151790
|
-
const t = HZt[i] || Bd;
|
|
151791
|
-
return /* @__PURE__ */ E.jsx(t, { ...e, "data-testid": `state-${i}` });
|
|
151792
|
-
}, YVe = (i) => {
|
|
151793
|
-
try {
|
|
151794
|
-
return new Intl.DateTimeFormat("en-US", {
|
|
151795
|
-
hour: "numeric",
|
|
151796
|
-
minute: "numeric",
|
|
151797
|
-
hour12: !0
|
|
151798
|
-
}).format(new Date(i));
|
|
151799
|
-
} catch {
|
|
151800
|
-
return i;
|
|
151801
|
-
}
|
|
151802
|
-
}, JS = (i = "white") => `'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="${i}" points="12.5 16.45 7.55 11.5 8.964 10.086 12.5 13.621 16.036 10.086 17.45 11.5"/></svg>'`, PZt = G.button`
|
|
151803
|
-
position: relative;
|
|
151804
|
-
display: inline-flex;
|
|
151805
|
-
align-items: center;
|
|
151806
|
-
justify-content: center;
|
|
151807
|
-
white-space: nowrap;
|
|
151808
|
-
font-family: inherit;
|
|
151809
|
-
font-size: 14px;
|
|
151810
|
-
padding: 0 21px;
|
|
151811
|
-
cursor: pointer;
|
|
151812
|
-
text-decoration: none;
|
|
151813
|
-
outline: none;
|
|
151814
|
-
color: inherit;
|
|
151815
|
-
background-repeat: no-repeat;
|
|
151816
|
-
background-position: calc(100% - 10px) center;
|
|
151817
|
-
border-radius: 0;
|
|
151818
|
-
border-width: 1px;
|
|
151819
|
-
border-style: solid;
|
|
151820
|
-
border-color: transparent;
|
|
151821
151565
|
|
|
151822
|
-
|
|
151823
|
-
|
|
151824
|
-
|
|
151825
|
-
|
|
151566
|
+
${({ isActive: i, isHover: e }) => {
|
|
151567
|
+
if (i)
|
|
151568
|
+
return `
|
|
151569
|
+
background-color: rgba(0, 0, 0, 0.16);
|
|
151570
|
+
opacity: 1 !important;
|
|
151826
151571
|
|
|
151827
|
-
|
|
151828
|
-
|
|
151572
|
+
&:hover {
|
|
151573
|
+
background-color: rgba(0, 0, 0, 0.16);
|
|
151574
|
+
}
|
|
151575
|
+
`;
|
|
151576
|
+
if (e) return "background-color: rgba(0, 0, 0, 0.07);";
|
|
151577
|
+
}}
|
|
151578
|
+
|
|
151579
|
+
${({ size: i = "normal" }) => i == "small" ? `
|
|
151580
|
+
height: 30px;
|
|
151581
|
+
width: 30px;
|
|
151582
|
+
` : `
|
|
151583
|
+
height: 36px;
|
|
151584
|
+
width: 36px;
|
|
151585
|
+
`}
|
|
151586
|
+
`, hUt = cUt, dUt = G.input`
|
|
151587
|
+
font: inherit;
|
|
151588
|
+
color: var(--grey-darken-33);
|
|
151589
|
+
width: 100%;
|
|
151590
|
+
|
|
151591
|
+
border: 1px solid
|
|
151592
|
+
${({
|
|
151593
|
+
//@ts-expect-error Property 'error' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>'.ts(2339)
|
|
151594
|
+
error: i
|
|
151595
|
+
}) => i ? "var(--red-base-62)" : "var(--silver-darken-80)"};
|
|
151596
|
+
margin: 0;
|
|
151597
|
+
height: 36px;
|
|
151598
|
+
padding: 8px 15px;
|
|
151599
|
+
background-color: white;
|
|
151600
|
+
transition: border 0.15s linear;
|
|
151601
|
+
border-radius: 3px;
|
|
151602
|
+
-webkit-tap-highlight-color: transparent;
|
|
151603
|
+
outline: none;
|
|
151604
|
+
box-sizing: border-box;
|
|
151605
|
+
|
|
151606
|
+
&:disabled {
|
|
151607
|
+
background-color: var(--silver-base-97);
|
|
151829
151608
|
cursor: not-allowed;
|
|
151830
|
-
pointer-events: none;
|
|
151831
151609
|
}
|
|
151832
151610
|
|
|
151833
|
-
|
|
151834
|
-
|
|
151835
|
-
margin-left: auto;
|
|
151836
|
-
margin-right: auto;
|
|
151837
|
-
left: 0;
|
|
151838
|
-
right: 0;
|
|
151611
|
+
&:focus {
|
|
151612
|
+
border-color: var(--cds-blue-60);
|
|
151839
151613
|
}
|
|
151840
151614
|
|
|
151841
|
-
|
|
151842
|
-
|
|
151843
|
-
|
|
151844
|
-
|
|
151845
|
-
|
|
151846
|
-
|
|
151847
|
-
|
|
151848
|
-
|
|
151849
|
-
|
|
151850
|
-
|
|
151851
|
-
|
|
151615
|
+
&::-ms-reveal,
|
|
151616
|
+
&::-ms-clear {
|
|
151617
|
+
display: none;
|
|
151618
|
+
}
|
|
151619
|
+
`, uUt = G.textarea`
|
|
151620
|
+
font: inherit;
|
|
151621
|
+
color: var(--grey-darken-33);
|
|
151622
|
+
width: 100%;
|
|
151623
|
+
border: 1px solid
|
|
151624
|
+
${({
|
|
151625
|
+
//@ts-expect-error Property 'error' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>'.ts(2339)
|
|
151626
|
+
error: i
|
|
151627
|
+
}) => i ? "var(--red-base-62)" : "var(--silver-darken-80)"};
|
|
151628
|
+
margin: 0;
|
|
151629
|
+
padding: 8px 15px;
|
|
151630
|
+
min-height: 36px;
|
|
151631
|
+
${({
|
|
151632
|
+
//@ts-expect-error Property 'grow' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>'.ts(2339)
|
|
151633
|
+
grow: i
|
|
151634
|
+
}) => i ? "max-height: 100px" : ""};
|
|
151635
|
+
background-color: white;
|
|
151636
|
+
line-height: 1.3;
|
|
151637
|
+
transition: border 0.15s linear;
|
|
151638
|
+
border-radius: 3px;
|
|
151639
|
+
-webkit-tap-highlight-color: transparent;
|
|
151640
|
+
outline: none;
|
|
151641
|
+
box-sizing: border-box;
|
|
151852
151642
|
|
|
151853
|
-
|
|
151854
|
-
|
|
151855
|
-
|
|
151856
|
-
|
|
151643
|
+
&:disabled {
|
|
151644
|
+
background-color: var(--silver-base-97);
|
|
151645
|
+
cursor: not-allowed;
|
|
151646
|
+
}
|
|
151857
151647
|
|
|
151858
|
-
|
|
151859
|
-
|
|
151860
|
-
|
|
151648
|
+
&:focus {
|
|
151649
|
+
border-color: var(--cds-blue-60);
|
|
151650
|
+
}
|
|
151651
|
+
`, fUt = G.label`
|
|
151652
|
+
display: block;
|
|
151653
|
+
margin-bottom: var(--spacing-tiny);
|
|
151654
|
+
`;
|
|
151655
|
+
G.p`
|
|
151656
|
+
margin: 3px 0 0 0;
|
|
151657
|
+
font-size: 12px;
|
|
151658
|
+
color: var(--red-darken-52);
|
|
151659
|
+
`;
|
|
151660
|
+
const pUt = G.div`
|
|
151661
|
+
width: 100%;
|
|
151662
|
+
position: relative;
|
|
151861
151663
|
|
|
151862
|
-
|
|
151863
|
-
|
|
151864
|
-
|
|
151865
|
-
|
|
151866
|
-
|
|
151867
|
-
|
|
151868
|
-
|
|
151869
|
-
|
|
151870
|
-
|
|
151871
|
-
|
|
151872
|
-
|
|
151873
|
-
|
|
151874
|
-
|
|
151875
|
-
|
|
151876
|
-
|
|
151877
|
-
|
|
151878
|
-
|
|
151879
|
-
|
|
151880
|
-
|
|
151881
|
-
|
|
151882
|
-
|
|
151664
|
+
${({
|
|
151665
|
+
//@ts-expect-error Property 'hasMarginBottom' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>'.ts(2339)
|
|
151666
|
+
hasMarginBottom: i
|
|
151667
|
+
}) => i && "margin-bottom: 15px"};
|
|
151668
|
+
`;
|
|
151669
|
+
s1(
|
|
151670
|
+
({
|
|
151671
|
+
label: i,
|
|
151672
|
+
error: e = !1,
|
|
151673
|
+
multiline: t = !1,
|
|
151674
|
+
grow: n = !1,
|
|
151675
|
+
type: r = "text",
|
|
151676
|
+
hasMarginBottom: s = !1,
|
|
151677
|
+
...o
|
|
151678
|
+
}, a) => {
|
|
151679
|
+
const l = i?.toLowerCase() + "-" + Math.random().toString(36).replace(/[^a-z]+/g, "").substr(2, 10), c = (u) => {
|
|
151680
|
+
const f = u ? u.target : a.current;
|
|
151681
|
+
f.style.height = "initial";
|
|
151682
|
+
const p = window.getComputedStyle(f), g = parseInt(p.getPropertyValue("border-top-width"), 10) + f.scrollHeight + parseInt(p.getPropertyValue("border-bottom-width"), 10);
|
|
151683
|
+
f.style.height = g + "px";
|
|
151684
|
+
}, d = (u) => {
|
|
151685
|
+
u.key == "Enter" && c();
|
|
151686
|
+
};
|
|
151687
|
+
return Ve(() => {
|
|
151688
|
+
if (t && a && a.current) {
|
|
151689
|
+
const u = a.current;
|
|
151690
|
+
return u.addEventListener("input", c), u.addEventListener("keyup", d), c(), () => {
|
|
151691
|
+
u.removeEventListener("input", c), u.removeEventListener("keyup", d);
|
|
151692
|
+
};
|
|
151693
|
+
}
|
|
151694
|
+
}, []), //@ts-expect-error Property 'hasMarginBottom' does not exist on type 'IntrinsicAttributes & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>'.ts(2769)
|
|
151695
|
+
/* @__PURE__ */ E.jsxs(pUt, { hasMarginBottom: s, children: [
|
|
151696
|
+
i && /* @__PURE__ */ E.jsx(fUt, { htmlFor: l, children: i }),
|
|
151697
|
+
t ? (
|
|
151698
|
+
//@ts-expect-error Type 'ForwardedRef<HTMLDivElement>' is not assignable to type 'LegacyRef<HTMLTextAreaElement> | undefined'.ts(2769)
|
|
151699
|
+
/* @__PURE__ */ E.jsx(
|
|
151700
|
+
uUt,
|
|
151701
|
+
{
|
|
151702
|
+
...o,
|
|
151703
|
+
grow: n,
|
|
151704
|
+
id: i ? l : null,
|
|
151705
|
+
error: e,
|
|
151706
|
+
ref: a
|
|
151707
|
+
}
|
|
151708
|
+
)
|
|
151709
|
+
) : (
|
|
151710
|
+
//@ts-expect-error Type 'ForwardedRef<HTMLDivElement>' is not assignable to type 'LegacyRef<HTMLInputElement> | undefined'.ts(2769)
|
|
151711
|
+
/* @__PURE__ */ E.jsx(
|
|
151712
|
+
dUt,
|
|
151713
|
+
{
|
|
151714
|
+
type: r,
|
|
151715
|
+
maxLength: ujt,
|
|
151716
|
+
...o,
|
|
151717
|
+
id: i ? l : null,
|
|
151718
|
+
error: e,
|
|
151719
|
+
ref: a
|
|
151720
|
+
}
|
|
151721
|
+
)
|
|
151722
|
+
)
|
|
151723
|
+
] });
|
|
151724
|
+
}
|
|
151725
|
+
);
|
|
151726
|
+
const R7e = 5, gUt = U2`
|
|
151727
|
+
from { opacity: 0; }
|
|
151728
|
+
to { opacity: 1; }
|
|
151729
|
+
`, mUt = G.div`
|
|
151730
|
+
position: fixed;
|
|
151731
|
+
top: ${({ $position: i }) => `${i.top}px`};
|
|
151732
|
+
left: ${({ $position: i }) => `${i.left}px`};
|
|
151733
|
+
border-radius: 4px;
|
|
151734
|
+
color: white;
|
|
151735
|
+
z-index: var(--z-tooltip);
|
|
151736
|
+
padding: 6px 8px;
|
|
151737
|
+
max-width: 380px;
|
|
151738
|
+
font-weight: 500;
|
|
151739
|
+
word-break: break-word;
|
|
151740
|
+
animation: ${gUt} 0.2s ease-out forwards;
|
|
151883
151741
|
|
|
151884
|
-
|
|
151885
|
-
|
|
151886
|
-
|
|
151887
|
-
}
|
|
151742
|
+
${({ color: i }) => `
|
|
151743
|
+
background-color: ${$S(i)};
|
|
151744
|
+
`}
|
|
151888
151745
|
|
|
151889
|
-
|
|
151890
|
-
|
|
151891
|
-
|
|
151892
|
-
|
|
151746
|
+
&::after {
|
|
151747
|
+
content: '';
|
|
151748
|
+
position: absolute;
|
|
151749
|
+
pointer-events: none;
|
|
151750
|
+
width: 0;
|
|
151751
|
+
height: 0;
|
|
151752
|
+
border: 5px solid transparent;
|
|
151893
151753
|
|
|
151894
|
-
|
|
151895
|
-
|
|
151896
|
-
|
|
151897
|
-
|
|
151898
|
-
|
|
151899
|
-
|
|
151900
|
-
|
|
151901
|
-
|
|
151902
|
-
|
|
151903
|
-
|
|
151904
|
-
|
|
151905
|
-
|
|
151906
|
-
|
|
151907
|
-
margin: 0;
|
|
151908
|
-
`;
|
|
151754
|
+
${({ $align: i, color: e }) => {
|
|
151755
|
+
switch (i) {
|
|
151756
|
+
case "bottom":
|
|
151757
|
+
return `
|
|
151758
|
+
border-bottom-color: ${$S(e)};
|
|
151759
|
+
bottom: 100%;
|
|
151760
|
+
`;
|
|
151761
|
+
default:
|
|
151762
|
+
return `
|
|
151763
|
+
border-top-color: ${$S(e)};
|
|
151764
|
+
top: 100%;
|
|
151765
|
+
`;
|
|
151766
|
+
}
|
|
151909
151767
|
}}
|
|
151910
|
-
${({ $size: i }) => i == "small" ? `
|
|
151911
|
-
height: 30px;
|
|
151912
|
-
border-radius: 2px;
|
|
151913
|
-
line-height: 26px;
|
|
151914
|
-
font-size: 13px;
|
|
151915
|
-
` : `
|
|
151916
|
-
height: 36px;
|
|
151917
|
-
line-height: 32px;
|
|
151918
|
-
border-radius: 3px;
|
|
151919
|
-
`}
|
|
151920
|
-
`, FZt = G.div`
|
|
151921
|
-
display: flex;
|
|
151922
|
-
align-items: center;
|
|
151923
151768
|
|
|
151924
|
-
|
|
151925
|
-
|
|
151769
|
+
${({ $justify: i }) => {
|
|
151770
|
+
switch (i) {
|
|
151771
|
+
case "left":
|
|
151772
|
+
return `left: ${R7e}px;`;
|
|
151773
|
+
case "right":
|
|
151774
|
+
return `right: ${R7e}px;`;
|
|
151775
|
+
default:
|
|
151776
|
+
return `
|
|
151777
|
+
left: 50%;
|
|
151778
|
+
transform: translateX(-50%);
|
|
151779
|
+
`;
|
|
151926
151780
|
}
|
|
151927
|
-
|
|
151928
|
-
({
|
|
151929
|
-
children: i,
|
|
151930
|
-
component: e = "button",
|
|
151931
|
-
dropdown: t = !1,
|
|
151932
|
-
disabled: n = !1,
|
|
151933
|
-
loading: r = !1,
|
|
151934
|
-
lightLoader: s = !1,
|
|
151935
|
-
loaderSize: o = "normal",
|
|
151936
|
-
size: a = "normal",
|
|
151937
|
-
variant: l = "primary",
|
|
151938
|
-
...c
|
|
151939
|
-
}, d) => /* @__PURE__ */ E.jsx(
|
|
151940
|
-
PZt,
|
|
151941
|
-
{
|
|
151942
|
-
as: e,
|
|
151943
|
-
ref: d,
|
|
151944
|
-
$isDropdown: t,
|
|
151945
|
-
disabled: r || n,
|
|
151946
|
-
$size: a,
|
|
151947
|
-
$variant: l,
|
|
151948
|
-
...c,
|
|
151949
|
-
children: r ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
151950
|
-
/* @__PURE__ */ E.jsx(jZt, { className: "loader", light: s, size: o }),
|
|
151951
|
-
/* @__PURE__ */ E.jsx(FZt, { className: "is-loading", children: i })
|
|
151952
|
-
] }) : i
|
|
151953
|
-
}
|
|
151954
|
-
)
|
|
151955
|
-
), zZt = U2`
|
|
151956
|
-
from { transform: rotate(0deg); }
|
|
151957
|
-
to { transform: rotate(360deg); }
|
|
151958
|
-
`, WZt = G.span`
|
|
151959
|
-
display: inline-block;
|
|
151960
|
-
width: ${({ size: i = "small" }) => i == "small" ? "20px" : "40px"};
|
|
151961
|
-
height: ${({ size: i = "small" }) => i == "small" ? "20px" : "40px"};
|
|
151962
|
-
border-radius: 50%;
|
|
151963
|
-
border: ${({ size: i = "small" }) => i == "small" ? "2px" : "4px"} solid
|
|
151964
|
-
${({ light: i = !1 }) => i ? "white" : "var(--cds-blue-60)"};
|
|
151965
|
-
border-bottom-color: transparent;
|
|
151966
|
-
animation: ${zZt} 1.2s linear infinite;
|
|
151967
|
-
`, jZt = WZt, ZZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-clock", viewBox: "0 0 16 16", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z" }), /* @__PURE__ */ ve.createElement("path", { d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z" })), UZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M15 4.5L13.5 3L9 7.5L4.5 3L3 4.5L7.5 9L3 13.5L4.5 15L9 10.5L13.5 15L15 13.5L10.5 9L15 4.5Z", fill: "currentColor" })), qZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 2, height: 10, viewBox: "0 0 2 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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__ */ ve.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__ */ ve.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" })), XVe = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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__ */ ve.createElement("rect", { x: 1, y: 2, width: 10, height: 1, fill: "white" }), /* @__PURE__ */ ve.createElement("rect", { x: 1, y: 5, width: 7, height: 1, fill: "white" }), /* @__PURE__ */ ve.createElement("rect", { x: 1, y: 8, width: 4, height: 1, fill: "white" })), GZt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-envelope", viewBox: "0 0 16 16", ...i }, /* @__PURE__ */ ve.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" })), QZt = (i) => /* @__PURE__ */ ve.createElement("svg", { style: {
|
|
151968
|
-
paddingLeft: 4
|
|
151969
|
-
}, width: 11, height: 12, viewBox: "0 0 11 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M0.5 12C0.367392 12 0.240215 11.9473 0.146447 11.8535C0.0526785 11.7598 1.36127e-09 11.6326 1.36127e-09 11.5V0.499976C-6.40951e-06 0.413085 0.0226312 0.327692 0.065681 0.252216C0.108731 0.176739 0.170707 0.113784 0.245499 0.0695563C0.320292 0.0253287 0.405319 0.00135537 0.4922 -1.73655e-07C0.57908 -0.00135572 0.664814 0.0199533 0.74095 0.0618261L10.7409 5.56183C10.8194 5.60497 10.8848 5.66839 10.9304 5.74546C10.976 5.82252 11 5.91042 11 5.99995C11 6.08949 10.976 6.17738 10.9304 6.25445C10.8848 6.33152 10.8194 6.39493 10.7409 6.43808L0.74095 11.9381C0.667127 11.9787 0.584248 12 0.5 12Z", fill: "white" })), N7 = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-arrow-counterclockwise", viewBox: "0 0 16 16", ...i }, /* @__PURE__ */ ve.createElement("path", { fillRule: "evenodd", d: "M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z" }), /* @__PURE__ */ ve.createElement("path", { d: "M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z" })), KZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { fill: "#52C16B" }, /* @__PURE__ */ ve.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__ */ ve.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" }))), YZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 17, height: 16, viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { clipPath: "url(#clip0_2557_56096)" }, /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, transform: "translate(0.5)", fill: "transparent" }), /* @__PURE__ */ ve.createElement("g", { clipPath: "url(#clip1_2557_56096)" }, /* @__PURE__ */ ve.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__ */ ve.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__ */ ve.createElement("defs", null, /* @__PURE__ */ ve.createElement("clipPath", { id: "clip0_2557_56096" }, /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })), /* @__PURE__ */ ve.createElement("clipPath", { id: "clip1_2557_56096" }, /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, fill: "white", transform: "translate(0.5)" })))), XZt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 180, height: 180, viewBox: "0 0 180 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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" })), JZt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { fill: "currentColor", d: "M13 5H11V11H5V13H11V19H13V13H19V11H13V5Z" })), $Zt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...i }, /* @__PURE__ */ ve.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" })), eUt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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" })), tUt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...i }, /* @__PURE__ */ ve.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" })), nUt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ ve.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__ */ ve.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" }))), iUt = (i) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("g", { fill: "currentColor" }, /* @__PURE__ */ ve.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__ */ ve.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" }))), rUt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 17, height: 15, viewBox: "0 0 17 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.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__ */ ve.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" })), sUt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 18, height: 16, viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M1.18528 15.25L9 1.03773L16.8147 15.25H1.18528Z", stroke: "white" })), oUt = (i) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ...i }, /* @__PURE__ */ ve.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" })), aUt = (i) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ ve.createElement("path", { d: "M12 3H4v10h8V3Z", fill: "#000" }), /* @__PURE__ */ ve.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" })), lUt = G.div`
|
|
151970
|
-
position: fixed;
|
|
151971
|
-
z-index: var(--z-dialog);
|
|
151972
|
-
right: 0;
|
|
151973
|
-
bottom: 0;
|
|
151974
|
-
top: 0;
|
|
151975
|
-
left: 0;
|
|
151976
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
151977
|
-
display: flex;
|
|
151978
|
-
align-items: center;
|
|
151979
|
-
justify-content: center;
|
|
151980
|
-
flex-direction: column;
|
|
151981
|
-
`, cUt = G.div`
|
|
151982
|
-
position: relative;
|
|
151983
|
-
background-color: white;
|
|
151984
|
-
box-shadow:
|
|
151985
|
-
0px 11px 15px -7px rgba(0, 0, 0, 0.2),
|
|
151986
|
-
0px 24px 38px 3px rgba(0, 0, 0, 0.14),
|
|
151987
|
-
0px 9px 46px 8px rgba(0, 0, 0, 0.12);
|
|
151988
|
-
margin: 32px;
|
|
151989
|
-
overflow-y: auto;
|
|
151990
|
-
width: 100%;
|
|
151991
|
-
max-width: ${({ $maxWidth: i }) => `${i}px`};
|
|
151992
|
-
max-height: calc(100% - 64px);
|
|
151993
|
-
border-radius: var(--spacing-tiny);
|
|
151994
|
-
`, hUt = G.header`
|
|
151995
|
-
text-align: center;
|
|
151996
|
-
padding: 15px 25px;
|
|
151997
|
-
border-bottom: 1px solid var(--silver-darken-87);
|
|
151998
|
-
`, dUt = G.h2.attrs({ id: "dialog-title" })`
|
|
151999
|
-
margin: 0;
|
|
152000
|
-
font-size: 16px;
|
|
152001
|
-
`, uUt = G.p`
|
|
152002
|
-
margin: 0;
|
|
152003
|
-
`, fUt = G.div`
|
|
152004
|
-
padding: 25px;
|
|
152005
|
-
`, pUt = G.footer`
|
|
152006
|
-
display: flex;
|
|
152007
|
-
padding: 15px 25px;
|
|
152008
|
-
align-items: center;
|
|
152009
|
-
justify-content: ${({
|
|
152010
|
-
//@ts-expect-error Property 'justify' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, never>'.ts(2339)
|
|
152011
|
-
justify: i
|
|
152012
|
-
}) => `${i || "flex-end"}`};
|
|
152013
|
-
border-top: 1px solid var(--silver-darken-87);
|
|
152014
|
-
background-color: var(--silver-darken-94);
|
|
152015
|
-
|
|
152016
|
-
> *:not(:last-child) {
|
|
152017
|
-
margin-right: 5px;
|
|
151781
|
+
}}
|
|
152018
151782
|
}
|
|
152019
|
-
`,
|
|
152020
|
-
|
|
152021
|
-
|
|
152022
|
-
|
|
152023
|
-
|
|
152024
|
-
|
|
152025
|
-
|
|
152026
|
-
|
|
152027
|
-
|
|
152028
|
-
|
|
152029
|
-
|
|
152030
|
-
|
|
152031
|
-
|
|
152032
|
-
|
|
152033
|
-
|
|
152034
|
-
|
|
152035
|
-
|
|
152036
|
-
|
|
152037
|
-
|
|
152038
|
-
|
|
152039
|
-
|
|
152040
|
-
|
|
152041
|
-
|
|
152042
|
-
|
|
152043
|
-
|
|
152044
|
-
|
|
152045
|
-
|
|
152046
|
-
|
|
152047
|
-
|
|
152048
|
-
|
|
152049
|
-
|
|
152050
|
-
return n(u);
|
|
152051
|
-
const f = l();
|
|
152052
|
-
u.key == "Tab" && f.length > 0 && f.indexOf(document.activeElement) == f.length - 1 && (u.preventDefault(), f[0].focus());
|
|
152053
|
-
}, d = (u) => {
|
|
152054
|
-
u.currentTarget == u.target && typeof t == "function" && e && t();
|
|
151783
|
+
`, $S = (i) => i === "blue" ? "var(--cds-blue-60)" : "var(--grey-darken-33)", eD = 5, AUt = (i) => {
|
|
151784
|
+
const e = ({
|
|
151785
|
+
//@ts-expect-error Binding element 'children' implicitly has an 'any' type.ts(7031)
|
|
151786
|
+
children: t,
|
|
151787
|
+
//@ts-expect-error Binding element 'showOnlyOnOverflow' implicitly has an 'any' type.ts(7031)
|
|
151788
|
+
showOnlyOnOverflow: n,
|
|
151789
|
+
...r
|
|
151790
|
+
}) => {
|
|
151791
|
+
const [s, o] = ye(), [a, l] = ye();
|
|
151792
|
+
Ve(() => () => {
|
|
151793
|
+
}, []), t = mEe.map(t, (d) => AEe(d, {
|
|
151794
|
+
//@ts-expect-error Argument of type 'EventTarget & HTMLElement' is not assignable to parameter of type 'SetStateAction<undefined>'.ts(2345)
|
|
151795
|
+
onMouseEnter: (u) => o(u.currentTarget),
|
|
151796
|
+
onMouseLeave: () => {
|
|
151797
|
+
r.interactive ? l(setTimeout(o, 200)) : o();
|
|
151798
|
+
}
|
|
151799
|
+
}));
|
|
151800
|
+
let c = !1;
|
|
151801
|
+
return c = !!s, n && (c = //@ts-expect-error 'anchorEl' is possibly 'undefined'.ts(18048)
|
|
151802
|
+
!!s && s.scrollWidth > s.clientWidth), /* @__PURE__ */ E.jsxs(wEe, { children: [
|
|
151803
|
+
t,
|
|
151804
|
+
c && /* @__PURE__ */ E.jsx(
|
|
151805
|
+
i,
|
|
151806
|
+
{
|
|
151807
|
+
anchorEl: s,
|
|
151808
|
+
setAnchorEl: o,
|
|
151809
|
+
timer: a,
|
|
151810
|
+
...r
|
|
151811
|
+
}
|
|
151812
|
+
)
|
|
151813
|
+
] });
|
|
152055
151814
|
};
|
|
152056
|
-
return
|
|
152057
|
-
|
|
152058
|
-
|
|
151815
|
+
return e.propTypes = {
|
|
151816
|
+
interactive: Fw.PropTypes.bool,
|
|
151817
|
+
showOnlyOnOverflow: Fw.PropTypes.bool
|
|
151818
|
+
}, e.defaultProps = {
|
|
151819
|
+
interactive: !1,
|
|
151820
|
+
showOnlyOnOverflow: !1
|
|
151821
|
+
}, e;
|
|
151822
|
+
}, wUt = ({
|
|
151823
|
+
//@ts-expect-error Binding element 'timer' implicitly has an 'any' type.ts(7031)
|
|
151824
|
+
timer: i,
|
|
151825
|
+
//@ts-expect-error Binding element 'setAnchorEl' implicitly has an 'any' type.ts(7031)
|
|
151826
|
+
setAnchorEl: e,
|
|
151827
|
+
//@ts-expect-error Binding element 'anchorEl' implicitly has an 'any' type.ts(7031)
|
|
151828
|
+
anchorEl: t,
|
|
151829
|
+
title: n,
|
|
151830
|
+
align: r = "bottom",
|
|
151831
|
+
justify: s = "center",
|
|
151832
|
+
controlledByTimer: o = !1,
|
|
151833
|
+
color: a = "grey",
|
|
151834
|
+
onClose: l,
|
|
151835
|
+
keepOpen: c = !1
|
|
151836
|
+
}) => {
|
|
151837
|
+
const [d, u] = ye({ top: 0, left: 0 }), [f, p] = ye(r), g = an();
|
|
151838
|
+
return Ve(() => {
|
|
151839
|
+
const { top: m, bottom: A, left: w, width: v } = t.getBoundingClientRect(), b = (
|
|
151840
|
+
//@ts-expect-error 'tooltip.current' is possibly 'undefined'.ts(18048)
|
|
151841
|
+
A + g.current.offsetHeight + eD > window.innerHeight
|
|
151842
|
+
), y = () => {
|
|
151843
|
+
switch (s) {
|
|
151844
|
+
case "left":
|
|
151845
|
+
return w;
|
|
151846
|
+
case "right":
|
|
151847
|
+
return w + v - g.current.offsetWidth;
|
|
151848
|
+
default:
|
|
151849
|
+
return w - g.current.offsetWidth / 2 + v / 2;
|
|
151850
|
+
}
|
|
151851
|
+
}, S = () => f == "top" || b ? m - g.current.offsetHeight - eD - 5 : A + eD + 5;
|
|
151852
|
+
b && p("top"), u({
|
|
151853
|
+
top: S(),
|
|
151854
|
+
left: y()
|
|
151855
|
+
});
|
|
151856
|
+
}, [t, t?.getBoundingClientRect().top]), Ve(() => {
|
|
151857
|
+
if (o) {
|
|
151858
|
+
const m = (A) => {
|
|
151859
|
+
g.current.contains(A.target) || c || e();
|
|
151860
|
+
};
|
|
151861
|
+
return document.addEventListener("mousedown", m), () => {
|
|
151862
|
+
document.removeEventListener("mousedown", m);
|
|
151863
|
+
};
|
|
151864
|
+
}
|
|
151865
|
+
}, []), Ve(() => {
|
|
151866
|
+
if (o && l)
|
|
151867
|
+
return () => {
|
|
151868
|
+
l();
|
|
151869
|
+
};
|
|
151870
|
+
}, []), on(
|
|
151871
|
+
/* @__PURE__ */ E.jsx(
|
|
151872
|
+
mUt,
|
|
152059
151873
|
{
|
|
152060
|
-
|
|
152061
|
-
|
|
152062
|
-
|
|
152063
|
-
|
|
152064
|
-
|
|
152065
|
-
ref:
|
|
152066
|
-
|
|
152067
|
-
|
|
152068
|
-
children: [
|
|
152069
|
-
t && /* @__PURE__ */ E.jsx(gUt, { children: /* @__PURE__ */ E.jsx(
|
|
152070
|
-
wUt,
|
|
152071
|
-
{
|
|
152072
|
-
onClick: t,
|
|
152073
|
-
variant: "inherit",
|
|
152074
|
-
title: "Close the dialog",
|
|
152075
|
-
"data-test": "close-dialog",
|
|
152076
|
-
children: /* @__PURE__ */ E.jsx(UZt, { width: "16", height: "16" })
|
|
152077
|
-
}
|
|
152078
|
-
) }),
|
|
152079
|
-
r
|
|
152080
|
-
]
|
|
151874
|
+
onMouseEnter: () => clearTimeout(i),
|
|
151875
|
+
onMouseLeave: () => !o && e(),
|
|
151876
|
+
$position: d,
|
|
151877
|
+
$justify: s,
|
|
151878
|
+
$align: f,
|
|
151879
|
+
ref: g,
|
|
151880
|
+
color: a,
|
|
151881
|
+
children: n
|
|
152081
151882
|
}
|
|
152082
|
-
)
|
|
151883
|
+
),
|
|
152083
151884
|
document.body
|
|
152084
|
-
)
|
|
152085
|
-
},
|
|
152086
|
-
|
|
152087
|
-
|
|
152088
|
-
|
|
152089
|
-
|
|
152090
|
-
|
|
152091
|
-
|
|
152092
|
-
|
|
152093
|
-
|
|
152094
|
-
border: none;
|
|
152095
|
-
background-color: transparent;
|
|
152096
|
-
padding: 0;
|
|
152097
|
-
display: inline-flex;
|
|
152098
|
-
align-items: center;
|
|
152099
|
-
justify-content: center;
|
|
152100
|
-
outline: none;
|
|
152101
|
-
color: inherit;
|
|
151885
|
+
);
|
|
151886
|
+
}, Wp = AUt(wUt), vUt = G.ul`
|
|
151887
|
+
list-style: none;
|
|
151888
|
+
margin: 4px 0 0 0;
|
|
151889
|
+
position: fixed;
|
|
151890
|
+
z-index: var(--z-dropdown);
|
|
151891
|
+
border-radius: 3px;
|
|
151892
|
+
padding: 5px 0;
|
|
151893
|
+
min-width: 70px;
|
|
151894
|
+
max-width: 350px;
|
|
152102
151895
|
|
|
152103
|
-
|
|
152104
|
-
|
|
152105
|
-
|
|
151896
|
+
border-radius: 5px;
|
|
151897
|
+
box-shadow: rgb(0 0 0 / 20%) 0px 1px 10px 0px;
|
|
151898
|
+
background: var(--silver-base-98);
|
|
152106
151899
|
|
|
152107
|
-
|
|
152108
|
-
|
|
152109
|
-
|
|
151900
|
+
${({
|
|
151901
|
+
//@ts-expect-error Property 'size' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>'.ts(2339)
|
|
151902
|
+
size: i
|
|
151903
|
+
}) => {
|
|
151904
|
+
if (i == "small")
|
|
151905
|
+
return `
|
|
151906
|
+
font-size: 13px;
|
|
152110
151907
|
|
|
152111
|
-
|
|
152112
|
-
|
|
152113
|
-
|
|
151908
|
+
li {
|
|
151909
|
+
padding: 5px 10px;
|
|
151910
|
+
}
|
|
152114
151911
|
|
|
152115
|
-
|
|
152116
|
-
|
|
152117
|
-
|
|
152118
|
-
|
|
151912
|
+
a {
|
|
151913
|
+
padding: 0;
|
|
151914
|
+
}
|
|
151915
|
+
`;
|
|
151916
|
+
}}
|
|
152119
151917
|
|
|
152120
|
-
${({
|
|
151918
|
+
${({
|
|
151919
|
+
//@ts-expect-error Property 'width' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>'.ts(2339)
|
|
151920
|
+
width: i
|
|
151921
|
+
}) => {
|
|
152121
151922
|
if (i)
|
|
152122
151923
|
return `
|
|
152123
|
-
|
|
152124
|
-
|
|
152125
|
-
|
|
152126
|
-
&:hover {
|
|
152127
|
-
background-color: rgba(0, 0, 0, 0.16);
|
|
152128
|
-
}
|
|
152129
|
-
`;
|
|
152130
|
-
if (e) return "background-color: rgba(0, 0, 0, 0.07);";
|
|
151924
|
+
min-width: ${i}px;
|
|
151925
|
+
`;
|
|
152131
151926
|
}}
|
|
152132
151927
|
|
|
152133
|
-
|
|
152134
|
-
|
|
152135
|
-
|
|
152136
|
-
|
|
152137
|
-
|
|
152138
|
-
|
|
152139
|
-
|
|
152140
|
-
|
|
152141
|
-
|
|
152142
|
-
|
|
152143
|
-
|
|
152144
|
-
|
|
152145
|
-
|
|
152146
|
-
${({
|
|
152147
|
-
//@ts-expect-error Property 'error' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>'.ts(2339)
|
|
152148
|
-
error: i
|
|
152149
|
-
}) => i ? "var(--red-base-62)" : "var(--silver-darken-80)"};
|
|
152150
|
-
margin: 0;
|
|
152151
|
-
height: 36px;
|
|
152152
|
-
padding: 8px 15px;
|
|
152153
|
-
background-color: white;
|
|
152154
|
-
transition: border 0.15s linear;
|
|
152155
|
-
border-radius: 3px;
|
|
152156
|
-
-webkit-tap-highlight-color: transparent;
|
|
151928
|
+
hr {
|
|
151929
|
+
margin: 5px 0;
|
|
151930
|
+
height: 1px;
|
|
151931
|
+
border: none;
|
|
151932
|
+
background-color: var(--silver-darken-87);
|
|
151933
|
+
}
|
|
151934
|
+
`, bUt = G.li`
|
|
151935
|
+
display: flex;
|
|
151936
|
+
align-items: center;
|
|
151937
|
+
padding: ${({ $noPadding: i }) => i ? "0" : "7px 20px"};
|
|
151938
|
+
position: relative;
|
|
151939
|
+
color: var(--grey-darken-23);
|
|
151940
|
+
white-space: nowrap;
|
|
152157
151941
|
outline: none;
|
|
152158
|
-
|
|
151942
|
+
font-size: 14px;
|
|
151943
|
+
transition: all 150ms linear 0s;
|
|
151944
|
+
border-radius: 3px;
|
|
152159
151945
|
|
|
152160
|
-
|
|
152161
|
-
background-color: var(--silver-base-97);
|
|
152162
|
-
cursor: not-allowed;
|
|
152163
|
-
}
|
|
151946
|
+
${({ $isDangerous: i }) => i && "color: var(--red-darken-42);"}
|
|
152164
151947
|
|
|
152165
|
-
|
|
152166
|
-
|
|
152167
|
-
|
|
151948
|
+
${({ $isDisabled: i }) => i ? `
|
|
151949
|
+
color: var(--grey-lighten-56);
|
|
151950
|
+
pointer-events: none;
|
|
151951
|
+
` : `
|
|
151952
|
+
cursor: pointer;
|
|
152168
151953
|
|
|
152169
|
-
|
|
152170
|
-
|
|
152171
|
-
|
|
152172
|
-
|
|
152173
|
-
`, bUt = G.textarea`
|
|
152174
|
-
font: inherit;
|
|
152175
|
-
color: var(--grey-darken-33);
|
|
152176
|
-
width: 100%;
|
|
152177
|
-
border: 1px solid
|
|
152178
|
-
${({
|
|
152179
|
-
//@ts-expect-error Property 'error' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>'.ts(2339)
|
|
152180
|
-
error: i
|
|
152181
|
-
}) => i ? "var(--red-base-62)" : "var(--silver-darken-80)"};
|
|
152182
|
-
margin: 0;
|
|
152183
|
-
padding: 8px 15px;
|
|
152184
|
-
min-height: 36px;
|
|
152185
|
-
${({
|
|
152186
|
-
//@ts-expect-error Property 'grow' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>'.ts(2339)
|
|
152187
|
-
grow: i
|
|
152188
|
-
}) => i ? "max-height: 100px" : ""};
|
|
152189
|
-
background-color: white;
|
|
152190
|
-
line-height: 1.3;
|
|
152191
|
-
transition: border 0.15s linear;
|
|
152192
|
-
border-radius: 3px;
|
|
152193
|
-
-webkit-tap-highlight-color: transparent;
|
|
152194
|
-
outline: none;
|
|
152195
|
-
box-sizing: border-box;
|
|
151954
|
+
&:hover,
|
|
151955
|
+
&:focus {
|
|
151956
|
+
background-color: var(--silver-darken-94);
|
|
151957
|
+
}
|
|
152196
151958
|
|
|
152197
|
-
|
|
152198
|
-
|
|
152199
|
-
|
|
151959
|
+
&:active {
|
|
151960
|
+
background-color: var(--silver-darken-80);
|
|
151961
|
+
}
|
|
151962
|
+
`}
|
|
151963
|
+
|
|
151964
|
+
&::-moz-focus-inner {
|
|
151965
|
+
border: 0;
|
|
152200
151966
|
}
|
|
152201
151967
|
|
|
152202
|
-
|
|
152203
|
-
|
|
151968
|
+
${({ $isActive: i, $isHover: e }) => {
|
|
151969
|
+
if (i)
|
|
151970
|
+
return `
|
|
151971
|
+
background-color: var(--silver-darken-94);
|
|
151972
|
+
|
|
151973
|
+
&:hover, &:focus {
|
|
151974
|
+
background-color: var(--silver-darken-94);
|
|
151975
|
+
}
|
|
151976
|
+
`;
|
|
151977
|
+
if (e) return "background-color: var(--silver-darken-94);";
|
|
151978
|
+
}}
|
|
151979
|
+
|
|
151980
|
+
&[disabled] {
|
|
151981
|
+
opacity: 0.5;
|
|
151982
|
+
pointer-events: none;
|
|
152204
151983
|
}
|
|
152205
|
-
`, yUt =
|
|
152206
|
-
display:
|
|
152207
|
-
|
|
151984
|
+
`, yUt = ns`
|
|
151985
|
+
display: flex;
|
|
151986
|
+
align-items: center;
|
|
151987
|
+
padding: 7px 20px;
|
|
151988
|
+
color: inherit;
|
|
151989
|
+
white-space: nowrap;
|
|
151990
|
+
outline: none;
|
|
151991
|
+
text-decoration: none;
|
|
152208
151992
|
`;
|
|
152209
|
-
G.
|
|
152210
|
-
|
|
152211
|
-
font-size: 12px;
|
|
152212
|
-
color: var(--red-darken-52);
|
|
151993
|
+
G.a`
|
|
151994
|
+
${yUt}
|
|
152213
151995
|
`;
|
|
152214
|
-
|
|
152215
|
-
|
|
152216
|
-
|
|
152217
|
-
|
|
152218
|
-
|
|
152219
|
-
//@ts-expect-error Property 'hasMarginBottom' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>'.ts(2339)
|
|
152220
|
-
hasMarginBottom: i
|
|
152221
|
-
}) => i && "margin-bottom: 15px"};
|
|
151996
|
+
G.div`
|
|
151997
|
+
padding: var(--spacing-tiny) var(--spacing-medium, 20px) 0px;
|
|
151998
|
+
color: var(--cm-color-ui-light6);
|
|
151999
|
+
font-family: var(--cm-font-text);
|
|
152000
|
+
font-size: 11px;
|
|
152222
152001
|
`;
|
|
152223
|
-
|
|
152224
|
-
|
|
152225
|
-
|
|
152226
|
-
error: e = !1,
|
|
152227
|
-
multiline: t = !1,
|
|
152228
|
-
grow: n = !1,
|
|
152229
|
-
type: r = "text",
|
|
152230
|
-
hasMarginBottom: s = !1,
|
|
152231
|
-
...o
|
|
152232
|
-
}, a) => {
|
|
152233
|
-
const l = i?.toLowerCase() + "-" + Math.random().toString(36).replace(/[^a-z]+/g, "").substr(2, 10), c = (u) => {
|
|
152234
|
-
const f = u ? u.target : a.current;
|
|
152235
|
-
f.style.height = "initial";
|
|
152236
|
-
const p = window.getComputedStyle(f), g = parseInt(p.getPropertyValue("border-top-width"), 10) + f.scrollHeight + parseInt(p.getPropertyValue("border-bottom-width"), 10);
|
|
152237
|
-
f.style.height = g + "px";
|
|
152238
|
-
}, d = (u) => {
|
|
152239
|
-
u.key == "Enter" && c();
|
|
152240
|
-
};
|
|
152241
|
-
return Ve(() => {
|
|
152242
|
-
if (t && a && a.current) {
|
|
152243
|
-
const u = a.current;
|
|
152244
|
-
return u.addEventListener("input", c), u.addEventListener("keyup", d), c(), () => {
|
|
152245
|
-
u.removeEventListener("input", c), u.removeEventListener("keyup", d);
|
|
152246
|
-
};
|
|
152247
|
-
}
|
|
152248
|
-
}, []), //@ts-expect-error Property 'hasMarginBottom' does not exist on type 'IntrinsicAttributes & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>'.ts(2769)
|
|
152249
|
-
/* @__PURE__ */ E.jsxs(CUt, { hasMarginBottom: s, children: [
|
|
152250
|
-
i && /* @__PURE__ */ E.jsx(yUt, { htmlFor: l, children: i }),
|
|
152251
|
-
t ? (
|
|
152252
|
-
//@ts-expect-error Type 'ForwardedRef<HTMLDivElement>' is not assignable to type 'LegacyRef<HTMLTextAreaElement> | undefined'.ts(2769)
|
|
152253
|
-
/* @__PURE__ */ E.jsx(
|
|
152254
|
-
bUt,
|
|
152255
|
-
{
|
|
152256
|
-
...o,
|
|
152257
|
-
grow: n,
|
|
152258
|
-
id: i ? l : null,
|
|
152259
|
-
error: e,
|
|
152260
|
-
ref: a
|
|
152261
|
-
}
|
|
152262
|
-
)
|
|
152263
|
-
) : (
|
|
152264
|
-
//@ts-expect-error Type 'ForwardedRef<HTMLDivElement>' is not assignable to type 'LegacyRef<HTMLInputElement> | undefined'.ts(2769)
|
|
152265
|
-
/* @__PURE__ */ E.jsx(
|
|
152266
|
-
vUt,
|
|
152267
|
-
{
|
|
152268
|
-
type: r,
|
|
152269
|
-
maxLength: ujt,
|
|
152270
|
-
...o,
|
|
152271
|
-
id: i ? l : null,
|
|
152272
|
-
error: e,
|
|
152273
|
-
ref: a
|
|
152274
|
-
}
|
|
152275
|
-
)
|
|
152276
|
-
)
|
|
152277
|
-
] });
|
|
152002
|
+
const CUt = G(yEe)`
|
|
152003
|
+
&.cds--menu-item-divider {
|
|
152004
|
+
padding: 0;
|
|
152278
152005
|
}
|
|
152279
|
-
|
|
152280
|
-
|
|
152281
|
-
|
|
152282
|
-
|
|
152283
|
-
|
|
152284
|
-
|
|
152285
|
-
|
|
152286
|
-
|
|
152287
|
-
|
|
152288
|
-
|
|
152289
|
-
|
|
152290
|
-
|
|
152291
|
-
|
|
152292
|
-
|
|
152293
|
-
|
|
152294
|
-
|
|
152295
|
-
|
|
152296
|
-
|
|
152297
|
-
|
|
152298
|
-
|
|
152299
|
-
|
|
152300
|
-
|
|
152301
|
-
|
|
152302
|
-
|
|
152303
|
-
|
|
152304
|
-
|
|
152305
|
-
|
|
152306
|
-
|
|
152307
|
-
|
|
152308
|
-
${({ $align: i, color: e }) => {
|
|
152309
|
-
switch (i) {
|
|
152310
|
-
case "bottom":
|
|
152311
|
-
return `
|
|
152312
|
-
border-bottom-color: ${$S(e)};
|
|
152313
|
-
bottom: 100%;
|
|
152314
|
-
`;
|
|
152315
|
-
default:
|
|
152316
|
-
return `
|
|
152317
|
-
border-top-color: ${$S(e)};
|
|
152318
|
-
top: 100%;
|
|
152319
|
-
`;
|
|
152006
|
+
`;
|
|
152007
|
+
function EUt({
|
|
152008
|
+
//@ts-expect-error Binding element 'children' implicitly has an 'any' type.ts(7031)
|
|
152009
|
+
children: i,
|
|
152010
|
+
//@ts-expect-error Binding element 'noPadding' implicitly has an 'any' type.ts(7031)
|
|
152011
|
+
noPadding: e,
|
|
152012
|
+
//@ts-expect-error Binding element 'disabled' implicitly has an 'any' type.ts(7031)
|
|
152013
|
+
disabled: t,
|
|
152014
|
+
...n
|
|
152015
|
+
}) {
|
|
152016
|
+
return /* @__PURE__ */ E.jsx(
|
|
152017
|
+
bUt,
|
|
152018
|
+
{
|
|
152019
|
+
disabled: t,
|
|
152020
|
+
tabIndex: "0",
|
|
152021
|
+
role: "menuitem",
|
|
152022
|
+
$noPadding: e,
|
|
152023
|
+
...n,
|
|
152024
|
+
children: /* @__PURE__ */ E.jsx(Wp, { title: i, showOnlyOnOverflow: !0, children: /* @__PURE__ */ E.jsx("div", { className: "overflow-ellipsis", children: i }) })
|
|
152025
|
+
}
|
|
152026
|
+
);
|
|
152027
|
+
}
|
|
152028
|
+
let h0 = class extends py {
|
|
152029
|
+
state = {};
|
|
152030
|
+
ref = vEe();
|
|
152031
|
+
//@ts-expect-error type-error
|
|
152032
|
+
componentDidUpdate(e) {
|
|
152033
|
+
e.open != this.props.open && (this.props.open ? this.init() : this.reset());
|
|
152320
152034
|
}
|
|
152321
|
-
|
|
152322
|
-
|
|
152323
|
-
${({ $justify: i }) => {
|
|
152324
|
-
switch (i) {
|
|
152325
|
-
case "left":
|
|
152326
|
-
return `left: ${F7e}px;`;
|
|
152327
|
-
case "right":
|
|
152328
|
-
return `right: ${F7e}px;`;
|
|
152329
|
-
default:
|
|
152330
|
-
return `
|
|
152331
|
-
left: 50%;
|
|
152332
|
-
transform: translateX(-50%);
|
|
152333
|
-
`;
|
|
152035
|
+
componentWillUnmount() {
|
|
152036
|
+
this.reset();
|
|
152334
152037
|
}
|
|
152335
|
-
|
|
152038
|
+
init() {
|
|
152039
|
+
document.body.addEventListener("click", this.handleBodyClick, !0), window.addEventListener("keydown", this.handleKeyPress), window.addEventListener("scroll", this.handleClose), this.setState(this.position);
|
|
152336
152040
|
}
|
|
152337
|
-
|
|
152338
|
-
|
|
152339
|
-
|
|
152340
|
-
|
|
152341
|
-
|
|
152342
|
-
|
|
152343
|
-
...r
|
|
152344
|
-
}) => {
|
|
152345
|
-
const [s, o] = ye(), [a, l] = ye();
|
|
152346
|
-
Ve(() => () => {
|
|
152347
|
-
}, []), t = mEe.map(t, (d) => AEe(d, {
|
|
152348
|
-
//@ts-expect-error Argument of type 'EventTarget & HTMLElement' is not assignable to parameter of type 'SetStateAction<undefined>'.ts(2345)
|
|
152349
|
-
onMouseEnter: (u) => o(u.currentTarget),
|
|
152350
|
-
onMouseLeave: () => {
|
|
152351
|
-
r.interactive ? l(setTimeout(o, 200)) : o();
|
|
152352
|
-
}
|
|
152353
|
-
}));
|
|
152354
|
-
let c = !1;
|
|
152355
|
-
return c = !!s, n && (c = //@ts-expect-error 'anchorEl' is possibly 'undefined'.ts(18048)
|
|
152356
|
-
!!s && s.scrollWidth > s.clientWidth), /* @__PURE__ */ E.jsxs(wEe, { children: [
|
|
152357
|
-
t,
|
|
152358
|
-
c && /* @__PURE__ */ E.jsx(
|
|
152359
|
-
i,
|
|
152360
|
-
{
|
|
152361
|
-
anchorEl: s,
|
|
152362
|
-
setAnchorEl: o,
|
|
152363
|
-
timer: a,
|
|
152364
|
-
...r
|
|
152365
|
-
}
|
|
152366
|
-
)
|
|
152367
|
-
] });
|
|
152041
|
+
reset() {
|
|
152042
|
+
document.body.removeEventListener("click", this.handleBodyClick, !0), window.removeEventListener("keydown", this.handleKeyPress), window.removeEventListener("scroll", this.handleClose);
|
|
152043
|
+
}
|
|
152044
|
+
//@ts-expect-error Parameter 'evt' implicitly has an 'any' type.ts(7006)
|
|
152045
|
+
handleBodyClick = (e) => {
|
|
152046
|
+
e.target.id !== "runtime-download" && !e.target.closest("[data-dropdown]") && this.handleClose(e);
|
|
152368
152047
|
};
|
|
152369
|
-
|
|
152370
|
-
|
|
152371
|
-
|
|
152372
|
-
}
|
|
152373
|
-
|
|
152374
|
-
|
|
152375
|
-
|
|
152376
|
-
}
|
|
152377
|
-
|
|
152378
|
-
|
|
152379
|
-
|
|
152380
|
-
|
|
152381
|
-
|
|
152382
|
-
|
|
152383
|
-
|
|
152384
|
-
|
|
152385
|
-
|
|
152386
|
-
|
|
152387
|
-
|
|
152388
|
-
|
|
152389
|
-
|
|
152048
|
+
//@ts-expect-error Parameter 'evt' implicitly has an 'any' type.ts(7006)
|
|
152049
|
+
handleKeyPress = (e) => {
|
|
152050
|
+
e.key == "Escape" && this.handleClose(e);
|
|
152051
|
+
};
|
|
152052
|
+
//@ts-expect-error Parameter 'evt' implicitly has an 'any' type.ts(7006)
|
|
152053
|
+
handleClose = (e) => {
|
|
152054
|
+
e.preventDefault(), typeof this.props.onClose == "function" && (e.stopPropagation(), this.props.onClose(e));
|
|
152055
|
+
};
|
|
152056
|
+
get position() {
|
|
152057
|
+
const e = {};
|
|
152058
|
+
if (this.props.anchorEl && this.props.open && this.ref.current) {
|
|
152059
|
+
const t = this.props.anchorEl.getBoundingClientRect();
|
|
152060
|
+
this.props.align == "left" ? document.body.offsetWidth - t.right > this.props.width ? e.left = t.left : e.right = document.body.offsetWidth - t.right : t.right < this.props.width ? e.left = t.left : e.right = document.body.offsetWidth - t.right, document.body.offsetHeight - t.bottom > //@ts-expect-error Property 'offsetHeight' does not exist on type '{}'.ts(2339)
|
|
152061
|
+
this.ref.current.offsetHeight ? e.top = t.bottom : e.top = t.top - this.ref.current.offsetHeight;
|
|
152062
|
+
}
|
|
152063
|
+
return e;
|
|
152064
|
+
}
|
|
152065
|
+
render() {
|
|
152066
|
+
return this.props.open ? on(
|
|
152067
|
+
/* @__PURE__ */ E.jsx(
|
|
152068
|
+
vUt,
|
|
152069
|
+
{
|
|
152070
|
+
size: this.props.size,
|
|
152071
|
+
role: "menu",
|
|
152072
|
+
"data-dropdown": !0,
|
|
152073
|
+
style: this.state,
|
|
152074
|
+
"data-test": this.props["data-test"],
|
|
152075
|
+
width: this.props.width,
|
|
152076
|
+
ref: this.ref,
|
|
152077
|
+
children: this.props.children
|
|
152078
|
+
}
|
|
152079
|
+
),
|
|
152080
|
+
document.body
|
|
152081
|
+
) : null;
|
|
152082
|
+
}
|
|
152083
|
+
};
|
|
152084
|
+
h0.propTypes = {
|
|
152085
|
+
onClose: Bn.func,
|
|
152086
|
+
anchorEl: Bn.object,
|
|
152087
|
+
align: Bn.string,
|
|
152088
|
+
open: Bn.bool.isRequired,
|
|
152089
|
+
size: Bn.string,
|
|
152090
|
+
width: Bn.number
|
|
152091
|
+
};
|
|
152092
|
+
h0.defaultProps = {
|
|
152093
|
+
open: !1,
|
|
152094
|
+
size: "normal",
|
|
152095
|
+
align: "right",
|
|
152096
|
+
width: 200
|
|
152097
|
+
};
|
|
152098
|
+
h0.ListItem = EUt;
|
|
152099
|
+
h0.ListItemDivider = CUt;
|
|
152100
|
+
const _Ut = G.header`
|
|
152101
|
+
width: 100%;
|
|
152102
|
+
background: white;
|
|
152103
|
+
|
|
152104
|
+
display: flex;
|
|
152105
|
+
flex-direction: column;
|
|
152106
|
+
border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
|
|
152107
|
+
`, xUt = G.div`
|
|
152108
|
+
display: flex;
|
|
152109
|
+
align-items: center;
|
|
152110
|
+
padding: 6px 10px 6px 20px;
|
|
152111
|
+
`, SUt = G.table`
|
|
152112
|
+
width: 100%;
|
|
152113
|
+
table-layout: fixed;
|
|
152114
|
+
border-collapse: separate;
|
|
152115
|
+
margin-left: 14px;
|
|
152116
|
+
width: 768px;
|
|
152117
|
+
`, h6 = G.th`
|
|
152118
|
+
color: #525252;
|
|
152119
|
+
font-size: 12px;
|
|
152120
|
+
font-family: IBM Plex Sans;
|
|
152121
|
+
font-weight: 400;
|
|
152122
|
+
line-height: 16px;
|
|
152123
|
+
letter-spacing: 0.32px;
|
|
152124
|
+
word-wrap: break-word;
|
|
152125
|
+
text-align: left;
|
|
152126
|
+
text-overflow: ellipsis;
|
|
152127
|
+
overflow: hidden;
|
|
152128
|
+
white-space: nowrap;
|
|
152129
|
+
width: 256px;
|
|
152130
|
+
`, d6 = G.td`
|
|
152131
|
+
color: #525252;
|
|
152132
|
+
font-size: 14px;
|
|
152133
|
+
font-family: IBM Plex Sans;
|
|
152134
|
+
font-weight: 400;
|
|
152135
|
+
line-height: 18px;
|
|
152136
|
+
letter-spacing: 0.16px;
|
|
152137
|
+
word-wrap: break-word;
|
|
152138
|
+
text-overflow: ellipsis;
|
|
152139
|
+
overflow: hidden;
|
|
152140
|
+
white-space: nowrap;
|
|
152141
|
+
width: 256px;
|
|
152142
|
+
`, V7e = G($c)`
|
|
152143
|
+
color: #0f62fe;
|
|
152144
|
+
font-size: 14px;
|
|
152145
|
+
font-family: IBM Plex Sans;
|
|
152146
|
+
font-weight: 400;
|
|
152147
|
+
line-height: 20px;
|
|
152148
|
+
letter-spacing: 0.16px;
|
|
152149
|
+
word-wrap: break-word;
|
|
152150
|
+
height: 20px;
|
|
152151
|
+
`, DUt = G.div`
|
|
152152
|
+
display: flex;
|
|
152153
|
+
justify-content: flex-end;
|
|
152154
|
+
align-items: center;
|
|
152155
|
+
flex-grow: 1;
|
|
152156
|
+
`, MUt = G.div`
|
|
152157
|
+
display: flex;
|
|
152158
|
+
align-items: center;
|
|
152159
|
+
padding: var(--cds-spacing-03);
|
|
152160
|
+
gap: var(--cds-spacing-02);
|
|
152161
|
+
`, LUt = G.div`
|
|
152162
|
+
display: flex;
|
|
152163
|
+
justify-content: center;
|
|
152164
|
+
${El.helperText01};
|
|
152165
|
+
background-color: var(--cds-notification-background-warning);
|
|
152166
|
+
border: 1px solid var(--cds-support-warning);
|
|
152167
|
+
box-shadow: 0 2px 6px var(--cds-shadow);
|
|
152168
|
+
`, kUt = G.div`
|
|
152169
|
+
padding: var(--cds-spacing-03);
|
|
152170
|
+
`, NUt = ({ text: i, button: e }) => /* @__PURE__ */ E.jsxs(LUt, { children: [
|
|
152171
|
+
/* @__PURE__ */ E.jsx(kUt, { children: i }),
|
|
152172
|
+
e && /* @__PURE__ */ E.jsx(Wn, { kind: "ghost", size: "sm", onClick: e.onClick, children: e.label })
|
|
152173
|
+
] }), B7e = {
|
|
152174
|
+
activeTab: "instances"
|
|
152175
|
+
};
|
|
152176
|
+
let TUt = class {
|
|
152177
|
+
state = { ...B7e };
|
|
152178
|
+
constructor() {
|
|
152179
|
+
Li(this);
|
|
152180
|
+
}
|
|
152181
|
+
init(e) {
|
|
152182
|
+
e && Js.setActiveTab("scenarios");
|
|
152183
|
+
}
|
|
152184
|
+
setActiveTab = (e) => {
|
|
152185
|
+
this.state.activeTab = e;
|
|
152186
|
+
};
|
|
152187
|
+
reset() {
|
|
152188
|
+
this.state = { ...B7e };
|
|
152189
|
+
}
|
|
152190
|
+
};
|
|
152191
|
+
const Js = new TUt(), XVe = (i) => {
|
|
152192
|
+
const { children: e, text: t, align: n, isDisabled: r } = i;
|
|
152193
|
+
return i.text !== void 0 ? /* @__PURE__ */ E.jsx(a3, { align: n, label: t, description: t, children: /* @__PURE__ */ E.jsx("div", { children: h.isValidElement(e) ? h.cloneElement(e, { disabled: r }) : e }) }) : i.children;
|
|
152194
|
+
};
|
|
152195
|
+
function ir(i) {
|
|
152196
|
+
const e = JSON.parse(
|
|
152197
|
+
localStorage.getItem("historyEntries") || "[]"
|
|
152198
|
+
);
|
|
152199
|
+
for (e.includes(i) || e.push(i); e.length > 20; ) {
|
|
152200
|
+
const n = e.shift();
|
|
152201
|
+
localStorage.removeItem("history " + n);
|
|
152202
|
+
}
|
|
152203
|
+
return localStorage.setItem("historyEntries", JSON.stringify(e)), `history ${i}`;
|
|
152204
|
+
}
|
|
152205
|
+
function io(i, e) {
|
|
152206
|
+
const t = localStorage.getItem(i) || "[]", n = JSON.parse(t);
|
|
152207
|
+
localStorage.setItem(i, JSON.stringify([...n, e]));
|
|
152208
|
+
}
|
|
152209
|
+
function H7e(i, e) {
|
|
152210
|
+
localStorage.setItem(i, JSON.stringify(e));
|
|
152211
|
+
}
|
|
152212
|
+
function $v(i) {
|
|
152213
|
+
return JSON.parse(localStorage.getItem(i) || "[]");
|
|
152214
|
+
}
|
|
152215
|
+
function IUt(i) {
|
|
152216
|
+
const e = $v(i);
|
|
152217
|
+
return e.length > 0 && e[0].action === "startInstance";
|
|
152218
|
+
}
|
|
152219
|
+
const OUt = ({
|
|
152220
|
+
processInstanceKey: i,
|
|
152221
|
+
isCompleted: e,
|
|
152222
|
+
isScenarioSaved: t
|
|
152223
|
+
}) => t ? {
|
|
152224
|
+
isDisabled: !0,
|
|
152225
|
+
text: "Current scenario has been saved"
|
|
152226
|
+
} : IUt(
|
|
152227
|
+
ir(i)
|
|
152228
|
+
) ? e ? {
|
|
152229
|
+
isDisabled: !1,
|
|
152230
|
+
text: "Save a scenario to replay this instance later to detect regressions."
|
|
152231
|
+
} : {
|
|
152232
|
+
isDisabled: !0,
|
|
152233
|
+
text: "Complete the instance to save a scenario and replay this instance later to detect regressions."
|
|
152234
|
+
} : {
|
|
152235
|
+
isDisabled: !0,
|
|
152236
|
+
text: "Not enough data to save a scenario. Re-run your instance and try again."
|
|
152237
|
+
}, RUt = G.span`
|
|
152238
|
+
font-weight: bold;
|
|
152239
|
+
${({ $isGreen: i, $hasPrecedingPlusIcon: e }) => ns`
|
|
152240
|
+
${i && "color: var(--cds-support-success);"}
|
|
152241
|
+
${e && ns`
|
|
152242
|
+
&:before {
|
|
152243
|
+
content: '+';
|
|
152244
|
+
}
|
|
152245
|
+
`}
|
|
152246
|
+
`}
|
|
152247
|
+
`, PT = ({
|
|
152248
|
+
isGreen: i,
|
|
152249
|
+
hasPrecedingPlusIcon: e,
|
|
152250
|
+
children: t
|
|
152251
|
+
}) => /* @__PURE__ */ E.jsx(RUt, { $isGreen: i, $hasPrecedingPlusIcon: e, children: t });
|
|
152252
|
+
function su(i) {
|
|
152253
|
+
return new Promise((e) => {
|
|
152254
|
+
let t = 0;
|
|
152255
|
+
const n = 10, r = setInterval(async () => {
|
|
152256
|
+
const s = await i();
|
|
152257
|
+
s !== null && (clearInterval(r), e(s)), t++, t >= n && (clearInterval(r), e(null));
|
|
152258
|
+
}, cy);
|
|
152259
|
+
});
|
|
152260
|
+
}
|
|
152261
|
+
const VUt = ({
|
|
152262
|
+
instanceKey: i,
|
|
152263
|
+
elementId: e
|
|
152264
|
+
}) => su(async () => {
|
|
152265
|
+
const { userTasks: t } = await ct.fetchUserTasks(i), n = t?.find(
|
|
152266
|
+
({ taskDefinitionId: r, taskState: s }) => r === e && s !== "COMPLETED"
|
|
152267
|
+
);
|
|
152268
|
+
return n !== void 0 ? n : null;
|
|
152269
|
+
}), P7e = ({
|
|
152270
|
+
instanceKey: i,
|
|
152271
|
+
elementId: e
|
|
152272
|
+
}) => su(async () => {
|
|
152273
|
+
const { flowNodeInstances: t } = await ct.fetchFlowNodeInstances(i), n = t?.find(
|
|
152274
|
+
({ flowNodeId: r, state: s }) => r === e && s !== "COMPLETED"
|
|
152275
|
+
);
|
|
152276
|
+
return n !== void 0 ? n : null;
|
|
152277
|
+
}), BUt = ({
|
|
152278
|
+
instanceKey: i,
|
|
152279
|
+
elementId: e
|
|
152280
|
+
}) => su(async () => {
|
|
152281
|
+
const { incidents: t } = await ct.fetchIncidents(i), { flowNodeInstances: n } = await ct.fetchFlowNodeInstances(i);
|
|
152282
|
+
return t.find((s) => {
|
|
152283
|
+
const o = n?.find(
|
|
152284
|
+
({ incidentKey: a, flowNodeId: l }) => a !== void 0 && a === s.key && l === e
|
|
152285
|
+
);
|
|
152286
|
+
return ["ACTIVE", "MIGRATED"].includes(s.state) && o !== void 0;
|
|
152287
|
+
}) ?? null;
|
|
152288
|
+
});
|
|
152289
|
+
function F7e(i) {
|
|
152290
|
+
return su(async () => {
|
|
152291
|
+
const { processInstances: e, success: t } = await ct.fetchInstances(
|
|
152292
|
+
wt.state.processDefinitionKey
|
|
152293
|
+
);
|
|
152294
|
+
if (t) {
|
|
152295
|
+
const n = e[0];
|
|
152296
|
+
return n && n.key !== i[0]?.key ? n.key : null;
|
|
152297
|
+
} else
|
|
152298
|
+
return null;
|
|
152299
|
+
});
|
|
152300
|
+
}
|
|
152301
|
+
const HUt = ({
|
|
152302
|
+
processId: i,
|
|
152303
|
+
element: e,
|
|
152304
|
+
isSubProcessStartEvent: t,
|
|
152305
|
+
activeElementIds: n,
|
|
152306
|
+
isProcessRunning: r
|
|
152390
152307
|
}) => {
|
|
152391
|
-
|
|
152392
|
-
|
|
152393
|
-
|
|
152394
|
-
|
|
152395
|
-
|
|
152396
|
-
|
|
152397
|
-
|
|
152398
|
-
|
|
152399
|
-
|
|
152400
|
-
|
|
152401
|
-
|
|
152402
|
-
|
|
152403
|
-
|
|
152404
|
-
|
|
152405
|
-
|
|
152406
|
-
|
|
152407
|
-
|
|
152408
|
-
|
|
152308
|
+
if (!r || !t)
|
|
152309
|
+
return !1;
|
|
152310
|
+
const s = e.$parent.id, o = e.$parent?.$parent?.id, a = n.includes(s) || s === i, l = n.includes(o) || o === i;
|
|
152311
|
+
return e.isInterrupting ? l && !a : l;
|
|
152312
|
+
}, jB = ({
|
|
152313
|
+
processId: i,
|
|
152314
|
+
isProcessRunning: e,
|
|
152315
|
+
candidate: t,
|
|
152316
|
+
activeElementIds: n
|
|
152317
|
+
}) => n.includes(t.elementId) || t.attachedToElementId && n.includes(t.attachedToElementId) || HUt({
|
|
152318
|
+
element: t.element,
|
|
152319
|
+
activeElementIds: n,
|
|
152320
|
+
isProcessRunning: e,
|
|
152321
|
+
isSubProcessStartEvent: t.isSubProcessStartEvent,
|
|
152322
|
+
processId: i
|
|
152323
|
+
}), PUt = (i, e) => {
|
|
152324
|
+
if (i && i.startsWith("=")) {
|
|
152325
|
+
const t = i.substring(1), n = e.find(
|
|
152326
|
+
(r) => r.name === t
|
|
152327
|
+
);
|
|
152328
|
+
return n?.value && k7(n?.value) ? JSON.parse(n.value) : i.substring(1);
|
|
152329
|
+
}
|
|
152330
|
+
};
|
|
152331
|
+
class FUt {
|
|
152332
|
+
constructor() {
|
|
152333
|
+
Fs(this, {
|
|
152334
|
+
startMessageSubscriptionCandidates: Ei.struct,
|
|
152335
|
+
activeMessageSubscriptionCandidates: Ei.struct
|
|
152409
152336
|
});
|
|
152410
|
-
}
|
|
152411
|
-
|
|
152412
|
-
|
|
152413
|
-
|
|
152414
|
-
|
|
152415
|
-
|
|
152416
|
-
|
|
152417
|
-
|
|
152337
|
+
}
|
|
152338
|
+
get activeMessageSubscriptionCandidates() {
|
|
152339
|
+
const { messageSubscriptionCandidates: e } = Rt, { activeElementIdsWithoutIncident: t } = ta, { variables: n } = ca.state, r = Be.state.processInstance?.state === "ACTIVE";
|
|
152340
|
+
return e.filter(
|
|
152341
|
+
(s) => jB({
|
|
152342
|
+
processId: wt.processId,
|
|
152343
|
+
activeElementIds: t,
|
|
152344
|
+
candidate: s,
|
|
152345
|
+
isProcessRunning: r
|
|
152346
|
+
})
|
|
152347
|
+
).map((s) => ({
|
|
152348
|
+
...s,
|
|
152349
|
+
keyCandidate: PUt(
|
|
152350
|
+
s.messageCorrelationKey,
|
|
152351
|
+
n
|
|
152352
|
+
)
|
|
152353
|
+
}));
|
|
152354
|
+
}
|
|
152355
|
+
get startMessageSubscriptionCandidates() {
|
|
152356
|
+
return Rt.messageSubscriptionCandidates.filter(
|
|
152357
|
+
(e) => FB(e.element) && !zVe(e.element)
|
|
152358
|
+
);
|
|
152359
|
+
}
|
|
152360
|
+
}
|
|
152361
|
+
const FT = new FUt();
|
|
152362
|
+
class zUt {
|
|
152363
|
+
constructor() {
|
|
152364
|
+
Fs(this, {
|
|
152365
|
+
activeSignalCandidates: Ei.struct,
|
|
152366
|
+
startSignalCandidates: Ei.struct
|
|
152367
|
+
});
|
|
152368
|
+
}
|
|
152369
|
+
get activeSignalCandidates() {
|
|
152370
|
+
const { signalCandidates: e } = Rt, { activeElementIdsWithoutIncident: t } = ta, n = Be.state.processInstance?.state === "ACTIVE";
|
|
152371
|
+
return e.filter(
|
|
152372
|
+
(r) => jB({
|
|
152373
|
+
processId: wt.processId,
|
|
152374
|
+
activeElementIds: t,
|
|
152375
|
+
candidate: r,
|
|
152376
|
+
isProcessRunning: n
|
|
152377
|
+
})
|
|
152378
|
+
);
|
|
152379
|
+
}
|
|
152380
|
+
get startSignalCandidates() {
|
|
152381
|
+
return Rt.signalCandidates.filter(
|
|
152382
|
+
(e) => zB(e.element) && !WVe(e.element)
|
|
152383
|
+
);
|
|
152384
|
+
}
|
|
152385
|
+
}
|
|
152386
|
+
const zT = new zUt(), z7e = ({
|
|
152387
|
+
instanceKey: i,
|
|
152388
|
+
elementId: e,
|
|
152389
|
+
candidates: t
|
|
152390
|
+
}) => su(async () => {
|
|
152391
|
+
const { statistics: n } = await ct.fetchStatistics(i), { processInstance: r } = await ct.fetchInstanceDetails(i);
|
|
152392
|
+
return t.filter(
|
|
152393
|
+
(o) => jB({
|
|
152394
|
+
processId: wt.processId,
|
|
152395
|
+
activeElementIds: n.filter(
|
|
152396
|
+
({ active: a, incidents: l }) => Number(a) > 0 && Number(l) === 0
|
|
152397
|
+
).map(({ activityId: a }) => a),
|
|
152398
|
+
candidate: o,
|
|
152399
|
+
isProcessRunning: r.state === "ACTIVE"
|
|
152400
|
+
})
|
|
152401
|
+
).some((o) => o.elementId === e) ? !0 : null;
|
|
152402
|
+
});
|
|
152403
|
+
class JVe {
|
|
152404
|
+
startNewInstance = async function(t, n = "{}") {
|
|
152405
|
+
return (await ct.startInstance({
|
|
152406
|
+
bpmnProcessId: t,
|
|
152407
|
+
variables: n
|
|
152408
|
+
})).instanceId;
|
|
152409
|
+
};
|
|
152410
|
+
handleMessageEvent = async function({
|
|
152411
|
+
messageName: t,
|
|
152412
|
+
messageId: n,
|
|
152413
|
+
variables: r,
|
|
152414
|
+
messageCorrelationKey: s,
|
|
152415
|
+
timeToLive: o,
|
|
152416
|
+
elementId: a,
|
|
152417
|
+
isStartEvent: l,
|
|
152418
|
+
instanceKey: c
|
|
152419
|
+
}) {
|
|
152420
|
+
if (!l && !await z7e({
|
|
152421
|
+
instanceKey: c,
|
|
152422
|
+
elementId: a,
|
|
152423
|
+
candidates: Rt.messageSubscriptionCandidates
|
|
152424
|
+
}))
|
|
152425
|
+
return console.error("could not find active message subscription"), { success: !1 };
|
|
152426
|
+
await ct.publishMessage({
|
|
152427
|
+
messageName: t,
|
|
152428
|
+
correlationKey: s,
|
|
152429
|
+
variables: r,
|
|
152430
|
+
timeToLive: o,
|
|
152431
|
+
messageId: n
|
|
152432
|
+
});
|
|
152433
|
+
};
|
|
152434
|
+
handleSignalEvent = async function({
|
|
152435
|
+
signalName: t,
|
|
152436
|
+
variables: n,
|
|
152437
|
+
elementId: r,
|
|
152438
|
+
isStartEvent: s,
|
|
152439
|
+
instanceKey: o
|
|
152440
|
+
}) {
|
|
152441
|
+
if (!s && !await z7e({
|
|
152442
|
+
instanceKey: o,
|
|
152443
|
+
elementId: r,
|
|
152444
|
+
candidates: Rt.signalCandidates
|
|
152445
|
+
}))
|
|
152446
|
+
return console.error("could not find active signal candidate"), { success: !1 };
|
|
152447
|
+
await ct.broadcastSignal({
|
|
152448
|
+
signalName: t,
|
|
152449
|
+
variables: n
|
|
152450
|
+
});
|
|
152451
|
+
};
|
|
152452
|
+
handleUserTask = async function({
|
|
152453
|
+
elementId: t,
|
|
152454
|
+
instanceKey: n,
|
|
152455
|
+
variables: r = "{}"
|
|
152456
|
+
}) {
|
|
152457
|
+
const s = await VUt({
|
|
152458
|
+
instanceKey: n,
|
|
152459
|
+
elementId: t
|
|
152460
|
+
});
|
|
152461
|
+
return s === null ? { success: !1 } : ct.completeUserTask({
|
|
152462
|
+
taskId: s?.id,
|
|
152463
|
+
variables: r,
|
|
152464
|
+
isZeebeUserTask: s?.implementation === "ZEEBE_USER_TASK"
|
|
152465
|
+
});
|
|
152466
|
+
};
|
|
152467
|
+
handleServiceTask = async function({
|
|
152468
|
+
elementId: t,
|
|
152469
|
+
instanceKey: n,
|
|
152470
|
+
taskDefinitionType: r,
|
|
152471
|
+
variables: s = "{}"
|
|
152472
|
+
}) {
|
|
152473
|
+
return await P7e({
|
|
152474
|
+
instanceKey: n,
|
|
152475
|
+
elementId: t
|
|
152476
|
+
}) === null ? { success: !1 } : ct.completeJob({
|
|
152477
|
+
processInstanceKey: n,
|
|
152478
|
+
taskDefinitionType: r,
|
|
152479
|
+
variables: s,
|
|
152480
|
+
elementId: t
|
|
152481
|
+
});
|
|
152482
|
+
};
|
|
152483
|
+
handleThrowError = async function({
|
|
152484
|
+
elementId: t,
|
|
152485
|
+
instanceKey: n,
|
|
152486
|
+
taskDefinitionType: r,
|
|
152487
|
+
errorCode: s = ""
|
|
152488
|
+
}) {
|
|
152489
|
+
return await P7e({
|
|
152490
|
+
instanceKey: n,
|
|
152491
|
+
elementId: t
|
|
152492
|
+
}) === null ? { success: !1 } : ct.throwError({
|
|
152493
|
+
taskDefinitionType: r,
|
|
152494
|
+
processInstanceKey: n,
|
|
152495
|
+
errorCode: s,
|
|
152496
|
+
elementId: t
|
|
152497
|
+
});
|
|
152498
|
+
};
|
|
152499
|
+
handleResolveIncident = async function({
|
|
152500
|
+
elementId: t,
|
|
152501
|
+
instanceKey: n,
|
|
152502
|
+
hasJob: r
|
|
152503
|
+
}) {
|
|
152504
|
+
const s = await BUt({
|
|
152505
|
+
instanceKey: n,
|
|
152506
|
+
elementId: t
|
|
152507
|
+
});
|
|
152508
|
+
return s === null ? { success: !1 } : (r && await ct.updateRetries({
|
|
152509
|
+
jobKey: s.jobKey,
|
|
152510
|
+
retries: 1
|
|
152511
|
+
}), ct.resolveIncident(s.key));
|
|
152512
|
+
};
|
|
152513
|
+
handleSetVariables = async function({
|
|
152514
|
+
instanceKey: t,
|
|
152515
|
+
scope: n,
|
|
152516
|
+
variables: r
|
|
152517
|
+
}) {
|
|
152518
|
+
return ct.setVariables({
|
|
152519
|
+
elementInstanceKey: n ?? t ?? 0,
|
|
152520
|
+
variablesString: r
|
|
152521
|
+
});
|
|
152522
|
+
};
|
|
152523
|
+
createNewInstance = async ({
|
|
152524
|
+
startActionType: e,
|
|
152525
|
+
bpmnProcessId: t,
|
|
152526
|
+
variables: n
|
|
152527
|
+
}) => {
|
|
152528
|
+
const { processInstances: r, success: s } = await ct.fetchInstances(
|
|
152529
|
+
wt.state.processDefinitionKey
|
|
152530
|
+
);
|
|
152531
|
+
if (!s)
|
|
152532
|
+
return;
|
|
152533
|
+
let o;
|
|
152534
|
+
if (e === "start-event")
|
|
152535
|
+
o = await this.startNewInstance(t, n);
|
|
152536
|
+
else if (e === "message-start-event") {
|
|
152537
|
+
const a = sr.completedElementInstances.find(
|
|
152538
|
+
({ type: c }) => c === "START_EVENT"
|
|
152539
|
+
), l = FT.startMessageSubscriptionCandidates?.find(
|
|
152540
|
+
({ elementId: c }) => c === a?.flowNodeId
|
|
152541
|
+
);
|
|
152542
|
+
l === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleMessageEvent({
|
|
152543
|
+
messageName: l?.messageName,
|
|
152544
|
+
variables: n,
|
|
152545
|
+
isStartEvent: !0,
|
|
152546
|
+
elementId: l.elementId
|
|
152547
|
+
}), o = await F7e(r) ?? void 0);
|
|
152548
|
+
} else if (e == "broadcast-signal-event") {
|
|
152549
|
+
const a = sr.completedElementInstances.find(
|
|
152550
|
+
({ type: c }) => c === "START_EVENT"
|
|
152551
|
+
), l = zT.startSignalCandidates?.find(
|
|
152552
|
+
({ elementId: c }) => c === a?.flowNodeId
|
|
152553
|
+
);
|
|
152554
|
+
l === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleSignalEvent({
|
|
152555
|
+
signalName: l?.signalName,
|
|
152556
|
+
variables: n,
|
|
152557
|
+
isStartEvent: !0,
|
|
152558
|
+
elementId: l.elementId
|
|
152559
|
+
}), o = await F7e(r) ?? void 0);
|
|
152418
152560
|
}
|
|
152419
|
-
|
|
152420
|
-
|
|
152421
|
-
|
|
152422
|
-
|
|
152423
|
-
|
|
152424
|
-
|
|
152425
|
-
|
|
152426
|
-
|
|
152427
|
-
|
|
152428
|
-
|
|
152429
|
-
|
|
152430
|
-
|
|
152431
|
-
|
|
152432
|
-
|
|
152433
|
-
ref: g,
|
|
152434
|
-
color: a,
|
|
152435
|
-
children: n
|
|
152561
|
+
return o;
|
|
152562
|
+
};
|
|
152563
|
+
repeatUserActions = async ({
|
|
152564
|
+
newInstanceKey: e,
|
|
152565
|
+
actions: t,
|
|
152566
|
+
untilElementId: n,
|
|
152567
|
+
breakOnFailure: r
|
|
152568
|
+
}) => {
|
|
152569
|
+
let s = { success: !0 };
|
|
152570
|
+
const o = [];
|
|
152571
|
+
for (const a of t) {
|
|
152572
|
+
if (a.action === "startInstance") {
|
|
152573
|
+
o.push(a);
|
|
152574
|
+
continue;
|
|
152436
152575
|
}
|
|
152437
|
-
|
|
152438
|
-
|
|
152439
|
-
|
|
152440
|
-
|
|
152441
|
-
|
|
152442
|
-
|
|
152443
|
-
|
|
152444
|
-
|
|
152445
|
-
|
|
152446
|
-
|
|
152447
|
-
|
|
152448
|
-
|
|
152449
|
-
|
|
152450
|
-
|
|
152451
|
-
|
|
152452
|
-
background: var(--silver-base-98);
|
|
152453
|
-
|
|
152454
|
-
${({
|
|
152455
|
-
//@ts-expect-error Property 'size' does not exist on type 'ExecutionContext & FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>'.ts(2339)
|
|
152456
|
-
size: i
|
|
152457
|
-
}) => {
|
|
152458
|
-
if (i == "small")
|
|
152459
|
-
return `
|
|
152460
|
-
font-size: 13px;
|
|
152461
|
-
|
|
152462
|
-
li {
|
|
152463
|
-
padding: 5px 10px;
|
|
152576
|
+
if (n !== void 0 && a.action !== "setVariables" && a.elementId === n)
|
|
152577
|
+
break;
|
|
152578
|
+
switch (a.action) {
|
|
152579
|
+
case "completeJob": {
|
|
152580
|
+
a.type === "userTask" ? s = await this.handleUserTask({
|
|
152581
|
+
elementId: a.elementId,
|
|
152582
|
+
instanceKey: e,
|
|
152583
|
+
variables: a.variables
|
|
152584
|
+
}) : s = await this.handleServiceTask({
|
|
152585
|
+
elementId: a.elementId,
|
|
152586
|
+
taskDefinitionType: a.taskDefinitionType,
|
|
152587
|
+
instanceKey: e,
|
|
152588
|
+
variables: a.variables
|
|
152589
|
+
});
|
|
152590
|
+
break;
|
|
152464
152591
|
}
|
|
152465
|
-
|
|
152466
|
-
|
|
152467
|
-
|
|
152592
|
+
case "publishMessage": {
|
|
152593
|
+
await this.handleMessageEvent({
|
|
152594
|
+
messageName: a.messageName,
|
|
152595
|
+
messageId: a.messageId,
|
|
152596
|
+
variables: a.variables,
|
|
152597
|
+
timeToLive: a.timeToLive,
|
|
152598
|
+
elementId: a.elementId,
|
|
152599
|
+
messageCorrelationKey: a.messageCorrelationKey,
|
|
152600
|
+
isStartEvent: !1,
|
|
152601
|
+
instanceKey: e
|
|
152602
|
+
});
|
|
152603
|
+
break;
|
|
152468
152604
|
}
|
|
152469
|
-
|
|
152470
|
-
|
|
152471
|
-
|
|
152472
|
-
|
|
152473
|
-
|
|
152474
|
-
|
|
152475
|
-
|
|
152476
|
-
|
|
152477
|
-
|
|
152478
|
-
min-width: ${i}px;
|
|
152479
|
-
`;
|
|
152480
|
-
}}
|
|
152481
|
-
|
|
152482
|
-
hr {
|
|
152483
|
-
margin: 5px 0;
|
|
152484
|
-
height: 1px;
|
|
152485
|
-
border: none;
|
|
152486
|
-
background-color: var(--silver-darken-87);
|
|
152487
|
-
}
|
|
152488
|
-
`, MUt = G.li`
|
|
152489
|
-
display: flex;
|
|
152490
|
-
align-items: center;
|
|
152491
|
-
padding: ${({ $noPadding: i }) => i ? "0" : "7px 20px"};
|
|
152492
|
-
position: relative;
|
|
152493
|
-
color: var(--grey-darken-23);
|
|
152494
|
-
white-space: nowrap;
|
|
152495
|
-
outline: none;
|
|
152496
|
-
font-size: 14px;
|
|
152497
|
-
transition: all 150ms linear 0s;
|
|
152498
|
-
border-radius: 3px;
|
|
152499
|
-
|
|
152500
|
-
${({ $isDangerous: i }) => i && "color: var(--red-darken-42);"}
|
|
152501
|
-
|
|
152502
|
-
${({ $isDisabled: i }) => i ? `
|
|
152503
|
-
color: var(--grey-lighten-56);
|
|
152504
|
-
pointer-events: none;
|
|
152505
|
-
` : `
|
|
152506
|
-
cursor: pointer;
|
|
152507
|
-
|
|
152508
|
-
&:hover,
|
|
152509
|
-
&:focus {
|
|
152510
|
-
background-color: var(--silver-darken-94);
|
|
152605
|
+
case "broadcastSignal": {
|
|
152606
|
+
await this.handleSignalEvent({
|
|
152607
|
+
signalName: a.signalName,
|
|
152608
|
+
variables: a.variables,
|
|
152609
|
+
isStartEvent: !1,
|
|
152610
|
+
elementId: a.elementId,
|
|
152611
|
+
instanceKey: e
|
|
152612
|
+
});
|
|
152613
|
+
break;
|
|
152511
152614
|
}
|
|
152512
|
-
|
|
152513
|
-
|
|
152514
|
-
|
|
152615
|
+
case "throwJob": {
|
|
152616
|
+
s = await this.handleThrowError({
|
|
152617
|
+
elementId: a.elementId,
|
|
152618
|
+
taskDefinitionType: a.taskDefinitionType,
|
|
152619
|
+
instanceKey: e,
|
|
152620
|
+
errorCode: a.errorCode
|
|
152621
|
+
});
|
|
152622
|
+
break;
|
|
152515
152623
|
}
|
|
152516
|
-
|
|
152517
|
-
|
|
152518
|
-
|
|
152519
|
-
|
|
152520
|
-
|
|
152521
|
-
|
|
152522
|
-
|
|
152523
|
-
if (i)
|
|
152524
|
-
return `
|
|
152525
|
-
background-color: var(--silver-darken-94);
|
|
152526
|
-
|
|
152527
|
-
&:hover, &:focus {
|
|
152528
|
-
background-color: var(--silver-darken-94);
|
|
152624
|
+
case "resolveIncident": {
|
|
152625
|
+
s = await this.handleResolveIncident({
|
|
152626
|
+
elementId: a.elementId,
|
|
152627
|
+
instanceKey: e,
|
|
152628
|
+
hasJob: a.hasJob
|
|
152629
|
+
});
|
|
152630
|
+
break;
|
|
152529
152631
|
}
|
|
152530
|
-
|
|
152531
|
-
|
|
152532
|
-
|
|
152533
|
-
|
|
152534
|
-
|
|
152535
|
-
|
|
152536
|
-
|
|
152537
|
-
|
|
152538
|
-
|
|
152539
|
-
|
|
152540
|
-
|
|
152541
|
-
|
|
152542
|
-
color: inherit;
|
|
152543
|
-
white-space: nowrap;
|
|
152544
|
-
outline: none;
|
|
152545
|
-
text-decoration: none;
|
|
152546
|
-
`;
|
|
152547
|
-
G.a`
|
|
152548
|
-
${LUt}
|
|
152549
|
-
`;
|
|
152550
|
-
G.div`
|
|
152551
|
-
padding: var(--spacing-tiny) var(--spacing-medium, 20px) 0px;
|
|
152552
|
-
color: var(--cm-color-ui-light6);
|
|
152553
|
-
font-family: var(--cm-font-text);
|
|
152554
|
-
font-size: 11px;
|
|
152555
|
-
`;
|
|
152556
|
-
const kUt = G(yEe)`
|
|
152557
|
-
&.cds--menu-item-divider {
|
|
152558
|
-
padding: 0;
|
|
152559
|
-
}
|
|
152560
|
-
`;
|
|
152561
|
-
function NUt({
|
|
152562
|
-
//@ts-expect-error Binding element 'children' implicitly has an 'any' type.ts(7031)
|
|
152563
|
-
children: i,
|
|
152564
|
-
//@ts-expect-error Binding element 'noPadding' implicitly has an 'any' type.ts(7031)
|
|
152565
|
-
noPadding: e,
|
|
152566
|
-
//@ts-expect-error Binding element 'disabled' implicitly has an 'any' type.ts(7031)
|
|
152567
|
-
disabled: t,
|
|
152568
|
-
...n
|
|
152569
|
-
}) {
|
|
152570
|
-
return /* @__PURE__ */ E.jsx(
|
|
152571
|
-
MUt,
|
|
152572
|
-
{
|
|
152573
|
-
disabled: t,
|
|
152574
|
-
tabIndex: "0",
|
|
152575
|
-
role: "menuitem",
|
|
152576
|
-
$noPadding: e,
|
|
152577
|
-
...n,
|
|
152578
|
-
children: /* @__PURE__ */ E.jsx(Wp, { title: i, showOnlyOnOverflow: !0, children: /* @__PURE__ */ E.jsx("div", { className: "overflow-ellipsis", children: i }) })
|
|
152632
|
+
case "setVariables": {
|
|
152633
|
+
await this.handleSetVariables({
|
|
152634
|
+
instanceKey: e,
|
|
152635
|
+
scope: e,
|
|
152636
|
+
variables: a.variables
|
|
152637
|
+
});
|
|
152638
|
+
break;
|
|
152639
|
+
}
|
|
152640
|
+
}
|
|
152641
|
+
if (r && !s.success)
|
|
152642
|
+
return H7e(ir(e), o), { success: !1 };
|
|
152643
|
+
o.push(a);
|
|
152579
152644
|
}
|
|
152580
|
-
|
|
152645
|
+
return H7e(ir(e), o), { success: !0 };
|
|
152646
|
+
};
|
|
152581
152647
|
}
|
|
152582
|
-
|
|
152583
|
-
|
|
152584
|
-
|
|
152585
|
-
|
|
152586
|
-
|
|
152587
|
-
|
|
152648
|
+
const W7e = {
|
|
152649
|
+
scenarios: [],
|
|
152650
|
+
scenarioRuns: {},
|
|
152651
|
+
selectedScenario: void 0
|
|
152652
|
+
};
|
|
152653
|
+
let WUt = class extends JVe {
|
|
152654
|
+
state = { ...W7e };
|
|
152655
|
+
constructor() {
|
|
152656
|
+
super(), Fs(this, {
|
|
152657
|
+
state: oi,
|
|
152658
|
+
setScenarios: kt,
|
|
152659
|
+
allCoveredFlowNodeIds: Ei,
|
|
152660
|
+
totalCoverage: Ei,
|
|
152661
|
+
diffCoverage: Ei,
|
|
152662
|
+
isAnyScenarioRunning: Ei,
|
|
152663
|
+
startRunningSingleScenario: kt,
|
|
152664
|
+
updateSingleScenarioRun: kt,
|
|
152665
|
+
deleteScenario: kt,
|
|
152666
|
+
reset: kt
|
|
152667
|
+
});
|
|
152668
|
+
}
|
|
152669
|
+
setScenarios = (e) => {
|
|
152670
|
+
this.state.scenarios = L7(e);
|
|
152671
|
+
};
|
|
152672
|
+
get allCoveredFlowNodeIds() {
|
|
152673
|
+
return Rt.flowNodeIds.filter(
|
|
152674
|
+
(e) => this.state.scenarios.some(
|
|
152675
|
+
({ coveredFlowNodeIds: t }) => t.includes(e)
|
|
152676
|
+
)
|
|
152677
|
+
);
|
|
152588
152678
|
}
|
|
152589
|
-
|
|
152590
|
-
this.
|
|
152679
|
+
get allCoveredSequenceFlows() {
|
|
152680
|
+
return this.state.scenarios.flatMap(
|
|
152681
|
+
({ coveredSequenceFlows: e }) => e
|
|
152682
|
+
);
|
|
152591
152683
|
}
|
|
152592
|
-
|
|
152593
|
-
|
|
152684
|
+
get totalCoverage() {
|
|
152685
|
+
return this.allCoveredFlowNodeIds.length / Rt.flowNodeIds.length * 100;
|
|
152594
152686
|
}
|
|
152595
|
-
|
|
152596
|
-
|
|
152687
|
+
get diffCoverage() {
|
|
152688
|
+
const e = sr.state.elementInstances.map(
|
|
152689
|
+
({ flowNodeId: r }) => r
|
|
152690
|
+
), n = Array.from(
|
|
152691
|
+
/* @__PURE__ */ new Set([...this.allCoveredFlowNodeIds, ...e])
|
|
152692
|
+
).length / Rt.flowNodeIds.length * 100;
|
|
152693
|
+
return Math.max(0, n - this.totalCoverage);
|
|
152597
152694
|
}
|
|
152598
|
-
|
|
152599
|
-
|
|
152600
|
-
|
|
152695
|
+
replay = async ({
|
|
152696
|
+
processId: e,
|
|
152697
|
+
actions: t
|
|
152698
|
+
}) => {
|
|
152699
|
+
const n = t.find(
|
|
152700
|
+
({ action: a }) => a === "startInstance"
|
|
152701
|
+
);
|
|
152702
|
+
if (n === void 0)
|
|
152703
|
+
return { isCompleted: !1 };
|
|
152704
|
+
const r = await this.createNewInstance({
|
|
152705
|
+
startActionType: n.type,
|
|
152706
|
+
variables: n.variables,
|
|
152707
|
+
bpmnProcessId: e
|
|
152708
|
+
});
|
|
152709
|
+
if (r === void 0)
|
|
152710
|
+
return { isCompleted: !1 };
|
|
152711
|
+
const { success: s } = await this.repeatUserActions({
|
|
152712
|
+
newInstanceKey: r,
|
|
152713
|
+
actions: t,
|
|
152714
|
+
breakOnFailure: !0
|
|
152715
|
+
});
|
|
152716
|
+
return s ? { isCompleted: await this.isScenarioCompleted({
|
|
152717
|
+
instanceKey: r
|
|
152718
|
+
}), processInstanceKeyForScenarioRun: r } : {
|
|
152719
|
+
isCompleted: !1,
|
|
152720
|
+
processInstanceKeyForScenarioRun: r
|
|
152721
|
+
};
|
|
152601
152722
|
};
|
|
152602
|
-
|
|
152603
|
-
|
|
152604
|
-
|
|
152723
|
+
startRunningSingleScenario = (e) => {
|
|
152724
|
+
if (this.state.scenarioRuns[e] === void 0) {
|
|
152725
|
+
this.state.scenarioRuns[e] = {
|
|
152726
|
+
status: "Running"
|
|
152727
|
+
};
|
|
152728
|
+
return;
|
|
152729
|
+
}
|
|
152730
|
+
this.state.scenarioRuns[e] = {
|
|
152731
|
+
...this.state.scenarioRuns[e],
|
|
152732
|
+
status: "Running"
|
|
152733
|
+
};
|
|
152605
152734
|
};
|
|
152606
|
-
|
|
152607
|
-
|
|
152608
|
-
|
|
152735
|
+
runSingleScenario = async ({
|
|
152736
|
+
name: e,
|
|
152737
|
+
processId: t,
|
|
152738
|
+
actions: n
|
|
152739
|
+
}) => {
|
|
152740
|
+
this.startRunningSingleScenario(e);
|
|
152741
|
+
const { isCompleted: r, processInstanceKeyForScenarioRun: s } = await this.replay({
|
|
152742
|
+
processId: t,
|
|
152743
|
+
actions: n
|
|
152744
|
+
});
|
|
152745
|
+
this.updateSingleScenarioRun(e, {
|
|
152746
|
+
status: r ? "Completed" : "Failed",
|
|
152747
|
+
instanceKey: s
|
|
152748
|
+
});
|
|
152609
152749
|
};
|
|
152610
|
-
|
|
152611
|
-
|
|
152612
|
-
|
|
152613
|
-
|
|
152614
|
-
|
|
152615
|
-
|
|
152616
|
-
|
|
152617
|
-
|
|
152618
|
-
|
|
152619
|
-
|
|
152620
|
-
|
|
152621
|
-
|
|
152622
|
-
|
|
152623
|
-
|
|
152624
|
-
size: this.props.size,
|
|
152625
|
-
role: "menu",
|
|
152626
|
-
"data-dropdown": !0,
|
|
152627
|
-
style: this.state,
|
|
152628
|
-
"data-test": this.props["data-test"],
|
|
152629
|
-
width: this.props.width,
|
|
152630
|
-
ref: this.ref,
|
|
152631
|
-
children: this.props.children
|
|
152632
|
-
}
|
|
152633
|
-
),
|
|
152634
|
-
document.body
|
|
152635
|
-
) : null;
|
|
152636
|
-
}
|
|
152637
|
-
};
|
|
152638
|
-
h0.propTypes = {
|
|
152639
|
-
onClose: Bn.func,
|
|
152640
|
-
anchorEl: Bn.object,
|
|
152641
|
-
align: Bn.string,
|
|
152642
|
-
open: Bn.bool.isRequired,
|
|
152643
|
-
size: Bn.string,
|
|
152644
|
-
width: Bn.number
|
|
152645
|
-
};
|
|
152646
|
-
h0.defaultProps = {
|
|
152647
|
-
open: !1,
|
|
152648
|
-
size: "normal",
|
|
152649
|
-
align: "right",
|
|
152650
|
-
width: 200
|
|
152651
|
-
};
|
|
152652
|
-
h0.ListItem = NUt;
|
|
152653
|
-
h0.ListItemDivider = kUt;
|
|
152654
|
-
const TUt = G.header`
|
|
152655
|
-
width: 100%;
|
|
152656
|
-
background: white;
|
|
152657
|
-
|
|
152658
|
-
display: flex;
|
|
152659
|
-
flex-direction: column;
|
|
152660
|
-
border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
|
|
152661
|
-
`, IUt = G.div`
|
|
152662
|
-
display: flex;
|
|
152663
|
-
align-items: center;
|
|
152664
|
-
padding: 6px 10px 6px 20px;
|
|
152665
|
-
`, OUt = G.table`
|
|
152666
|
-
width: 100%;
|
|
152667
|
-
table-layout: fixed;
|
|
152668
|
-
border-collapse: separate;
|
|
152669
|
-
margin-left: 14px;
|
|
152670
|
-
width: 768px;
|
|
152671
|
-
`, h6 = G.th`
|
|
152672
|
-
color: #525252;
|
|
152673
|
-
font-size: 12px;
|
|
152674
|
-
font-family: IBM Plex Sans;
|
|
152675
|
-
font-weight: 400;
|
|
152676
|
-
line-height: 16px;
|
|
152677
|
-
letter-spacing: 0.32px;
|
|
152678
|
-
word-wrap: break-word;
|
|
152679
|
-
text-align: left;
|
|
152680
|
-
text-overflow: ellipsis;
|
|
152681
|
-
overflow: hidden;
|
|
152682
|
-
white-space: nowrap;
|
|
152683
|
-
width: 256px;
|
|
152684
|
-
`, d6 = G.td`
|
|
152685
|
-
color: #525252;
|
|
152686
|
-
font-size: 14px;
|
|
152687
|
-
font-family: IBM Plex Sans;
|
|
152688
|
-
font-weight: 400;
|
|
152689
|
-
line-height: 18px;
|
|
152690
|
-
letter-spacing: 0.16px;
|
|
152691
|
-
word-wrap: break-word;
|
|
152692
|
-
text-overflow: ellipsis;
|
|
152693
|
-
overflow: hidden;
|
|
152694
|
-
white-space: nowrap;
|
|
152695
|
-
width: 256px;
|
|
152696
|
-
`, z7e = G($c)`
|
|
152697
|
-
color: #0f62fe;
|
|
152698
|
-
font-size: 14px;
|
|
152699
|
-
font-family: IBM Plex Sans;
|
|
152700
|
-
font-weight: 400;
|
|
152701
|
-
line-height: 20px;
|
|
152702
|
-
letter-spacing: 0.16px;
|
|
152703
|
-
word-wrap: break-word;
|
|
152704
|
-
height: 20px;
|
|
152705
|
-
`, RUt = G.div`
|
|
152706
|
-
display: flex;
|
|
152707
|
-
justify-content: flex-end;
|
|
152708
|
-
align-items: center;
|
|
152709
|
-
flex-grow: 1;
|
|
152710
|
-
`, VUt = G.div`
|
|
152711
|
-
display: flex;
|
|
152712
|
-
align-items: center;
|
|
152713
|
-
padding: var(--cds-spacing-03);
|
|
152714
|
-
gap: var(--cds-spacing-02);
|
|
152715
|
-
`, BUt = G.div`
|
|
152716
|
-
display: flex;
|
|
152717
|
-
justify-content: center;
|
|
152718
|
-
${El.helperText01};
|
|
152719
|
-
background-color: var(--cds-notification-background-warning);
|
|
152720
|
-
border: 1px solid var(--cds-support-warning);
|
|
152721
|
-
box-shadow: 0 2px 6px var(--cds-shadow);
|
|
152722
|
-
`, HUt = G.div`
|
|
152723
|
-
padding: var(--cds-spacing-03);
|
|
152724
|
-
`, PUt = ({ text: i, button: e }) => /* @__PURE__ */ E.jsxs(BUt, { children: [
|
|
152725
|
-
/* @__PURE__ */ E.jsx(HUt, { children: i }),
|
|
152726
|
-
e && /* @__PURE__ */ E.jsx(Wn, { kind: "ghost", size: "sm", onClick: e.onClick, children: e.label })
|
|
152727
|
-
] }), W7e = {
|
|
152728
|
-
activeTab: "instances"
|
|
152729
|
-
};
|
|
152730
|
-
let FUt = class {
|
|
152731
|
-
state = { ...W7e };
|
|
152732
|
-
constructor() {
|
|
152733
|
-
Li(this);
|
|
152734
|
-
}
|
|
152735
|
-
init(e) {
|
|
152736
|
-
e && Js.setActiveTab("scenarios");
|
|
152750
|
+
updateSingleScenarioRun = (e, t) => {
|
|
152751
|
+
this.state.scenarioRuns[e] = t;
|
|
152752
|
+
};
|
|
152753
|
+
getScenarioRun = (e) => xi.state.scenarioRuns[e];
|
|
152754
|
+
isScenarioCompleted = ({
|
|
152755
|
+
instanceKey: e
|
|
152756
|
+
}) => su(async () => {
|
|
152757
|
+
const { processInstance: t } = await ct.fetchInstanceDetails(e);
|
|
152758
|
+
return t.state === "COMPLETED" ? !0 : null;
|
|
152759
|
+
});
|
|
152760
|
+
get isAnyScenarioRunning() {
|
|
152761
|
+
return Object.values(this.state.scenarioRuns).some(
|
|
152762
|
+
(e) => e.status === "Running"
|
|
152763
|
+
);
|
|
152737
152764
|
}
|
|
152738
|
-
|
|
152739
|
-
this.state.
|
|
152765
|
+
setSelectedScenario = (e) => {
|
|
152766
|
+
this.state.selectedScenario = e;
|
|
152740
152767
|
};
|
|
152741
|
-
|
|
152768
|
+
clearSelectedScenario = () => {
|
|
152769
|
+
this.state.selectedScenario = void 0;
|
|
152770
|
+
};
|
|
152771
|
+
deleteScenario = ({
|
|
152772
|
+
scenario: e,
|
|
152773
|
+
processId: t
|
|
152774
|
+
}) => {
|
|
152775
|
+
nZt(t, e.key), delete this.state.scenarioRuns[e.name];
|
|
152776
|
+
};
|
|
152777
|
+
reset = () => {
|
|
152742
152778
|
this.state = { ...W7e };
|
|
152743
|
-
}
|
|
152779
|
+
};
|
|
152744
152780
|
};
|
|
152745
|
-
const
|
|
152746
|
-
const { children: e, text: t, align: n, isDisabled: r } = i;
|
|
152747
|
-
return i.text !== void 0 ? /* @__PURE__ */ E.jsx(a3, { align: n, label: t, description: t, children: /* @__PURE__ */ E.jsx("div", { children: h.isValidElement(e) ? h.cloneElement(e, { disabled: r }) : e }) }) : i.children;
|
|
152748
|
-
}, zUt = ({
|
|
152749
|
-
processInstanceKey: i,
|
|
152750
|
-
isCompleted: e,
|
|
152751
|
-
isScenarioSaved: t
|
|
152752
|
-
}) => t ? {
|
|
152753
|
-
isDisabled: !0,
|
|
152754
|
-
text: "Current scenario has been saved"
|
|
152755
|
-
} : MZt(
|
|
152756
|
-
ir(i)
|
|
152757
|
-
) ? e ? {
|
|
152758
|
-
isDisabled: !1,
|
|
152759
|
-
text: "Save a scenario to replay this instance later to detect regressions."
|
|
152760
|
-
} : {
|
|
152761
|
-
isDisabled: !0,
|
|
152762
|
-
text: "Complete the instance to save a scenario and replay this instance later to detect regressions."
|
|
152763
|
-
} : {
|
|
152764
|
-
isDisabled: !0,
|
|
152765
|
-
text: "Not enough data to save a scenario. Re-run your instance and try again."
|
|
152766
|
-
}, WUt = G.span`
|
|
152767
|
-
font-weight: bold;
|
|
152768
|
-
${({ $isGreen: i, $hasPrecedingPlusIcon: e }) => ns`
|
|
152769
|
-
${i && "color: var(--cds-support-success);"}
|
|
152770
|
-
${e && ns`
|
|
152771
|
-
&:before {
|
|
152772
|
-
content: '+';
|
|
152773
|
-
}
|
|
152774
|
-
`}
|
|
152775
|
-
`}
|
|
152776
|
-
`, zT = ({
|
|
152777
|
-
isGreen: i,
|
|
152778
|
-
hasPrecedingPlusIcon: e,
|
|
152779
|
-
children: t
|
|
152780
|
-
}) => /* @__PURE__ */ E.jsx(WUt, { $isGreen: i, $hasPrecedingPlusIcon: e, children: t }), j7e = G.p`
|
|
152781
|
+
const xi = new WUt(), j7e = G.p`
|
|
152781
152782
|
${El.body01};
|
|
152782
152783
|
`, $Ve = rt(
|
|
152783
152784
|
({ title: i, isOpen: e, onScenarioSaved: t, onClose: n, topContent: r }) => {
|
|
@@ -152802,12 +152803,12 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
152802
152803
|
/* @__PURE__ */ E.jsxs(j7e, { children: [
|
|
152803
152804
|
"This scenario increases the BPMN coverage of your scenario suite from",
|
|
152804
152805
|
" ",
|
|
152805
|
-
/* @__PURE__ */ E.jsx(
|
|
152806
|
+
/* @__PURE__ */ E.jsx(PT, { children: `${xi.totalCoverage.toFixed(0)}%` }),
|
|
152806
152807
|
" ",
|
|
152807
152808
|
"to",
|
|
152808
152809
|
" ",
|
|
152809
152810
|
/* @__PURE__ */ E.jsx(
|
|
152810
|
-
|
|
152811
|
+
PT,
|
|
152811
152812
|
{
|
|
152812
152813
|
isGreen: !0,
|
|
152813
152814
|
children: `${(xi.totalCoverage + xi.diffCoverage).toFixed(0)}%`
|
|
@@ -152881,13 +152882,13 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
152881
152882
|
} = Be;
|
|
152882
152883
|
if (n === void 0)
|
|
152883
152884
|
return null;
|
|
152884
|
-
const [r, s] = ye(!1), { isDisabled: o, text: a } =
|
|
152885
|
+
const [r, s] = ye(!1), { isDisabled: o, text: a } = OUt({
|
|
152885
152886
|
processInstanceKey: n.key,
|
|
152886
152887
|
isCompleted: t,
|
|
152887
152888
|
isScenarioSaved: e
|
|
152888
152889
|
});
|
|
152889
152890
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
152890
|
-
/* @__PURE__ */ E.jsx(
|
|
152891
|
+
/* @__PURE__ */ E.jsx(XVe, { align: "bottom-end", isDisabled: o, text: a, children: /* @__PURE__ */ E.jsx(
|
|
152891
152892
|
Wn,
|
|
152892
152893
|
{
|
|
152893
152894
|
size: "sm",
|
|
@@ -152962,7 +152963,7 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
152962
152963
|
isScenarioUpdated: t
|
|
152963
152964
|
});
|
|
152964
152965
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
152965
|
-
/* @__PURE__ */ E.jsx(
|
|
152966
|
+
/* @__PURE__ */ E.jsx(XVe, { align: "bottom-end", isDisabled: s, text: o, children: /* @__PURE__ */ E.jsx(
|
|
152966
152967
|
Wn,
|
|
152967
152968
|
{
|
|
152968
152969
|
size: "sm",
|
|
@@ -152994,10 +152995,10 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
152994
152995
|
const g = s[p];
|
|
152995
152996
|
return g !== void 0 && g.instanceKey === t && g.status === "Failed";
|
|
152996
152997
|
});
|
|
152997
|
-
return /* @__PURE__ */ E.jsxs(
|
|
152998
|
-
/* @__PURE__ */ E.jsxs(
|
|
152999
|
-
/* @__PURE__ */ E.jsx(
|
|
153000
|
-
/* @__PURE__ */ E.jsxs(
|
|
152998
|
+
return /* @__PURE__ */ E.jsxs(_Ut, { "data-testid": "instance-header", children: [
|
|
152999
|
+
/* @__PURE__ */ E.jsxs(xUt, { children: [
|
|
153000
|
+
/* @__PURE__ */ E.jsx(WB, { state: c, size: 24 }),
|
|
153001
|
+
/* @__PURE__ */ E.jsxs(SUt, { children: [
|
|
153001
153002
|
/* @__PURE__ */ E.jsx("thead", { children: /* @__PURE__ */ E.jsxs("tr", { children: [
|
|
153002
153003
|
/* @__PURE__ */ E.jsx(h6, { children: "Process Instance Key" }),
|
|
153003
153004
|
/* @__PURE__ */ E.jsx(h6, { children: "Started at" }),
|
|
@@ -153026,9 +153027,9 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
153026
153027
|
)
|
|
153027
153028
|
}
|
|
153028
153029
|
) : t }),
|
|
153029
|
-
/* @__PURE__ */ E.jsx(d6, { children:
|
|
153030
|
+
/* @__PURE__ */ E.jsx(d6, { children: KVe(n.startDate) }),
|
|
153030
153031
|
/* @__PURE__ */ E.jsx(d6, { children: /* @__PURE__ */ E.jsx(
|
|
153031
|
-
|
|
153032
|
+
V7e,
|
|
153032
153033
|
{
|
|
153033
153034
|
variant: "text",
|
|
153034
153035
|
onClick: () => {
|
|
@@ -153041,7 +153042,7 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
153041
153042
|
/* @__PURE__ */ E.jsx("span", { children: f ?? r }),
|
|
153042
153043
|
" ",
|
|
153043
153044
|
/* @__PURE__ */ E.jsx(
|
|
153044
|
-
|
|
153045
|
+
V7e,
|
|
153045
153046
|
{
|
|
153046
153047
|
variant: "text",
|
|
153047
153048
|
onClick: () => {
|
|
@@ -153053,10 +153054,10 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
153053
153054
|
] })
|
|
153054
153055
|
] }) })
|
|
153055
153056
|
] }),
|
|
153056
|
-
i.featureFlags.isReplayScenariosEnabled && /* @__PURE__ */ E.jsxs(
|
|
153057
|
-
Be.state.processInstance?.state === "COMPLETED" && !u && /* @__PURE__ */ E.jsxs(
|
|
153057
|
+
i.featureFlags.isReplayScenariosEnabled && /* @__PURE__ */ E.jsxs(DUt, { children: [
|
|
153058
|
+
Be.state.processInstance?.state === "COMPLETED" && !u && /* @__PURE__ */ E.jsxs(MUt, { "data-testid": "scenario-coverage", children: [
|
|
153058
153059
|
/* @__PURE__ */ E.jsx(
|
|
153059
|
-
|
|
153060
|
+
PT,
|
|
153060
153061
|
{
|
|
153061
153062
|
isGreen: xi.diffCoverage > 0,
|
|
153062
153063
|
hasPrecedingPlusIcon: !0,
|
|
@@ -153160,7 +153161,7 @@ const Js = new FUt(), JVe = (i) => {
|
|
|
153160
153161
|
] })
|
|
153161
153162
|
] }),
|
|
153162
153163
|
ul.isMovingToken && /* @__PURE__ */ E.jsx(
|
|
153163
|
-
|
|
153164
|
+
NUt,
|
|
153164
153165
|
{
|
|
153165
153166
|
text: "Select the target flow node in the diagram",
|
|
153166
153167
|
button: {
|
|
@@ -154005,7 +154006,7 @@ const Pqt = G(my)`
|
|
|
154005
154006
|
},
|
|
154006
154007
|
label: /* @__PURE__ */ E.jsxs(Rqt, { children: [
|
|
154007
154008
|
/* @__PURE__ */ E.jsx(Vqt, { children: /* @__PURE__ */ E.jsx(
|
|
154008
|
-
|
|
154009
|
+
WB,
|
|
154009
154010
|
{
|
|
154010
154011
|
state: i.incident ? "INCIDENT" : i.state,
|
|
154011
154012
|
size: 16
|
|
@@ -154134,13 +154135,13 @@ const qqt = (i = "", e = "new-diagram") => {
|
|
|
154134
154135
|
}, Gqt = "--", oBe = (i, e) => i + Gqt + qqt(e), Qqt = G.div`
|
|
154135
154136
|
height: 30px;
|
|
154136
154137
|
margin: 5px 10px;
|
|
154137
|
-
`, Kqt = G(
|
|
154138
|
+
`, Kqt = G(zZt)`
|
|
154138
154139
|
width: 20px;
|
|
154139
154140
|
vertical-align: middle;
|
|
154140
154141
|
`, Yqt = G.span`
|
|
154141
154142
|
margin-left: 5px;
|
|
154142
154143
|
vertical-align: middle;
|
|
154143
|
-
`, iD = G(
|
|
154144
|
+
`, iD = G($Zt)`
|
|
154144
154145
|
margin-right: 16px;
|
|
154145
154146
|
float: left;
|
|
154146
154147
|
`;
|
|
@@ -154689,7 +154690,7 @@ const lGt = G.div`
|
|
|
154689
154690
|
] }) }),
|
|
154690
154691
|
/* @__PURE__ */ E.jsx(o3, { children: i?.map(({ key: e, startDate: t, state: n, incident: r }) => /* @__PURE__ */ E.jsxs(Lo, { children: [
|
|
154691
154692
|
/* @__PURE__ */ E.jsxs(hi, { children: [
|
|
154692
|
-
/* @__PURE__ */ E.jsx(dGt, { children: /* @__PURE__ */ E.jsx(
|
|
154693
|
+
/* @__PURE__ */ E.jsx(dGt, { children: /* @__PURE__ */ E.jsx(WB, { state: r ? "INCIDENT" : n, size: 20 }) }),
|
|
154693
154694
|
/* @__PURE__ */ E.jsx(
|
|
154694
154695
|
uGt,
|
|
154695
154696
|
{
|
|
@@ -154704,7 +154705,7 @@ const lGt = G.div`
|
|
|
154704
154705
|
}
|
|
154705
154706
|
)
|
|
154706
154707
|
] }),
|
|
154707
|
-
/* @__PURE__ */ E.jsx(hi, { children:
|
|
154708
|
+
/* @__PURE__ */ E.jsx(hi, { children: KVe(t) }),
|
|
154708
154709
|
/* @__PURE__ */ E.jsx(hi, { children: "-" })
|
|
154709
154710
|
] }, e)) ?? /* @__PURE__ */ E.jsx(Lo, { children: /* @__PURE__ */ E.jsx(hi, { children: "No Content" }) }) })
|
|
154710
154711
|
] });
|
|
@@ -155219,7 +155220,7 @@ const DGt = G.div`
|
|
|
155219
155220
|
onClick: (o) => {
|
|
155220
155221
|
n(o.currentTarget);
|
|
155221
155222
|
},
|
|
155222
|
-
renderIcon: () => /* @__PURE__ */ E.jsx(
|
|
155223
|
+
renderIcon: () => /* @__PURE__ */ E.jsx(HZt, { color: "white" })
|
|
155223
155224
|
}
|
|
155224
155225
|
),
|
|
155225
155226
|
/* @__PURE__ */ E.jsx(
|
|
@@ -155609,7 +155610,7 @@ const WT = rt(
|
|
|
155609
155610
|
element: t,
|
|
155610
155611
|
isStartEvent: n = !1
|
|
155611
155612
|
}) => {
|
|
155612
|
-
const r = vn(qr), s = Be.state.processInstance, [o, a] = ye(!1), l = e ? N7 :
|
|
155613
|
+
const r = vn(qr), s = Be.state.processInstance, [o, a] = ye(!1), l = e ? N7 : PZt, { prefillData: c, prefillSource: d } = Qd(t, !0);
|
|
155613
155614
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
155614
155615
|
/* @__PURE__ */ E.jsx(
|
|
155615
155616
|
Rh,
|
|
@@ -155677,7 +155678,7 @@ const WT = rt(
|
|
|
155677
155678
|
WT.displayName = "TriggerMessageSubscriptionButton";
|
|
155678
155679
|
const jT = rt(
|
|
155679
155680
|
({ timer: i, isRestartMode: e, shouldWaitForInstanceCreation: t, isStartEvent: n }) => {
|
|
155680
|
-
const r = vn(qr), [s, o] = ye(!1), a = e ? N7 :
|
|
155681
|
+
const r = vn(qr), [s, o] = ye(!1), a = e ? N7 : VZt;
|
|
155681
155682
|
return /* @__PURE__ */ E.jsx(
|
|
155682
155683
|
Rh,
|
|
155683
155684
|
{
|
|
@@ -155809,7 +155810,7 @@ const WGt = { top: -20, left: -30 }, _c = { top: -38, left: 0 }, jGt = { bottom:
|
|
|
155809
155810
|
console.error("Failed to parse form:", Q);
|
|
155810
155811
|
}
|
|
155811
155812
|
return se;
|
|
155812
|
-
}, [B]), N = e ? N7 : B ?
|
|
155813
|
+
}, [B]), N = e ? N7 : B ? YVe : FZt, R = el(async () => {
|
|
155813
155814
|
const se = F0(i), Q = localStorage.getItem(
|
|
155814
155815
|
`jobCompletion ${wt.processId} ${i.id}`
|
|
155815
155816
|
), z = JSON.parse(Q || "{}");
|
|
@@ -156114,7 +156115,7 @@ const yBe = rt(({ element: i, incident: e }) => {
|
|
|
156114
156115
|
const t = vn(qr), [n, r] = ye(!1), { processInstance: s } = Be.state, o = t.featureFlags.areAIFeaturesEnabled, a = o, l = a || t.isUserOrgOwnerOrAdmin, c = wt.authType !== "sm" ? {
|
|
156115
156116
|
label: a ? "Copy and ask AI" : "Enable incident copilot",
|
|
156116
156117
|
id: o ? "camunda-ai-button" : void 0,
|
|
156117
|
-
icon: /* @__PURE__ */ E.jsx(
|
|
156118
|
+
icon: /* @__PURE__ */ E.jsx(YZt, {}),
|
|
156118
156119
|
disabled: !l,
|
|
156119
156120
|
title: l ? void 0 : "Contact your admin to enable this feature",
|
|
156120
156121
|
onClick: () => {
|
|
@@ -156260,7 +156261,7 @@ const EBe = rt(({ element: i }) => {
|
|
|
156260
156261
|
), X = JSON.parse(U || "{}"), ce = JSON.parse(T || "{}"), Ce = y === "bpmn" && Qn(JSON.parse(M), ce), Xe = y === "cache" && Qn(JSON.parse(M), X);
|
|
156261
156262
|
w(!Ce && !Xe);
|
|
156262
156263
|
}, [M, i, y]);
|
|
156263
|
-
const q = W ?
|
|
156264
|
+
const q = W ? YVe : tm;
|
|
156264
156265
|
async function ee(T) {
|
|
156265
156266
|
const { data: U, errors: X } = T ?? { data: {}, errors: {} };
|
|
156266
156267
|
if (Object.keys(X).length === 0) {
|
|
@@ -156633,7 +156634,7 @@ const EBe = rt(({ element: i }) => {
|
|
|
156633
156634
|
] });
|
|
156634
156635
|
});
|
|
156635
156636
|
EBe.displayName = "JobCompleteButton";
|
|
156636
|
-
const sQt = G(
|
|
156637
|
+
const sQt = G(WZt)`
|
|
156637
156638
|
fill: currentColor;
|
|
156638
156639
|
`, oQt = (i) => su(async () => {
|
|
156639
156640
|
const { success: e, processInstance: t } = await ct.fetchInstanceDetails(i);
|
|
@@ -156647,7 +156648,7 @@ const sQt = G(YZt)`
|
|
|
156647
156648
|
({ flowNodeId: r }) => r === e
|
|
156648
156649
|
) !== void 0 ? !0 : null;
|
|
156649
156650
|
}), rEe = { isRewinding: !1 };
|
|
156650
|
-
class lQt extends
|
|
156651
|
+
class lQt extends JVe {
|
|
156651
156652
|
state = { ...rEe };
|
|
156652
156653
|
constructor() {
|
|
156653
156654
|
super(), Fs(this, {
|
|
@@ -156859,7 +156860,7 @@ const hQt = G.div`
|
|
|
156859
156860
|
xBe.displayName = "BroadcastSignalModal";
|
|
156860
156861
|
const ZT = rt(
|
|
156861
156862
|
({ signalCandidate: i, isRestartMode: e = !1, element: t, isStartEvent: n = !1 }) => {
|
|
156862
|
-
const r = vn(qr), s = Be.state.processInstance, [o, a] = ye(!1), l = e ? N7 :
|
|
156863
|
+
const r = vn(qr), s = Be.state.processInstance, [o, a] = ye(!1), l = e ? N7 : XZt, { prefillData: c, prefillSource: d } = Qd(t, !0);
|
|
156863
156864
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
156864
156865
|
/* @__PURE__ */ E.jsx(
|
|
156865
156866
|
Rh,
|
|
@@ -157107,7 +157108,7 @@ const dQt = (i) => Nm(i, "zeebe:CalledDecision")?.get("decisionId") ?? null, uQt
|
|
|
157107
157108
|
b
|
|
157108
157109
|
);
|
|
157109
157110
|
}
|
|
157110
|
-
const a =
|
|
157111
|
+
const a = FT.activeMessageSubscriptionCandidates.find(
|
|
157111
157112
|
(b) => b.elementId === i.id
|
|
157112
157113
|
);
|
|
157113
157114
|
if (a) {
|
|
@@ -157127,7 +157128,7 @@ const dQt = (i) => Nm(i, "zeebe:CalledDecision")?.get("decisionId") ?? null, uQt
|
|
|
157127
157128
|
b
|
|
157128
157129
|
);
|
|
157129
157130
|
}
|
|
157130
|
-
const c =
|
|
157131
|
+
const c = FT.startMessageSubscriptionCandidates?.find(
|
|
157131
157132
|
(b) => b.elementId === i.id
|
|
157132
157133
|
);
|
|
157133
157134
|
if (c) {
|
|
@@ -157193,7 +157194,7 @@ const dQt = (i) => Nm(i, "zeebe:CalledDecision")?.get("decisionId") ?? null, uQt
|
|
|
157193
157194
|
b
|
|
157194
157195
|
);
|
|
157195
157196
|
}
|
|
157196
|
-
const m =
|
|
157197
|
+
const m = zT.activeSignalCandidates.find(
|
|
157197
157198
|
(b) => b.elementId === i.id
|
|
157198
157199
|
);
|
|
157199
157200
|
if (m) {
|
|
@@ -157207,7 +157208,7 @@ const dQt = (i) => Nm(i, "zeebe:CalledDecision")?.get("decisionId") ?? null, uQt
|
|
|
157207
157208
|
b
|
|
157208
157209
|
);
|
|
157209
157210
|
}
|
|
157210
|
-
const w =
|
|
157211
|
+
const w = zT.startSignalCandidates?.find(
|
|
157211
157212
|
(b) => b.elementId === i.id
|
|
157212
157213
|
);
|
|
157213
157214
|
if (w) {
|
|
@@ -157295,10 +157296,10 @@ const fQt = G.div`
|
|
|
157295
157296
|
title: "Toggle fullscreen mode",
|
|
157296
157297
|
children: o ? (
|
|
157297
157298
|
//@ts-expect-error Property 'width' does not exist on type 'IntrinsicAttributes'.ts(2322)
|
|
157298
|
-
/* @__PURE__ */ E.jsx(
|
|
157299
|
+
/* @__PURE__ */ E.jsx(QZt, { width: "14", height: "14" })
|
|
157299
157300
|
) : (
|
|
157300
157301
|
//@ts-expect-error Property 'width' does not exist on type 'IntrinsicAttributes'.ts(2322)
|
|
157301
|
-
/* @__PURE__ */ E.jsx(
|
|
157302
|
+
/* @__PURE__ */ E.jsx(KZt, { width: "14", height: "14" })
|
|
157302
157303
|
)
|
|
157303
157304
|
}
|
|
157304
157305
|
)
|
|
@@ -157318,7 +157319,7 @@ const fQt = G.div`
|
|
|
157318
157319
|
onClick: n,
|
|
157319
157320
|
title: "Toggle minimap",
|
|
157320
157321
|
children: /* @__PURE__ */ E.jsx(
|
|
157321
|
-
|
|
157322
|
+
GZt,
|
|
157322
157323
|
{
|
|
157323
157324
|
height: "18",
|
|
157324
157325
|
style: {
|
|
@@ -157342,7 +157343,7 @@ const fQt = G.div`
|
|
|
157342
157343
|
onClick: i,
|
|
157343
157344
|
"data-test": "viewport-reset",
|
|
157344
157345
|
title: "Reset viewport",
|
|
157345
|
-
children: /* @__PURE__ */ E.jsx(
|
|
157346
|
+
children: /* @__PURE__ */ E.jsx(qZt, { width: "15", height: "15" })
|
|
157346
157347
|
}
|
|
157347
157348
|
)
|
|
157348
157349
|
}
|
|
@@ -157353,7 +157354,7 @@ const fQt = G.div`
|
|
|
157353
157354
|
onClick: t,
|
|
157354
157355
|
"data-test": "zoom-out",
|
|
157355
157356
|
title: "Zoom out",
|
|
157356
|
-
children: /* @__PURE__ */ E.jsx(
|
|
157357
|
+
children: /* @__PURE__ */ E.jsx(UZt, { width: "12", height: "12" })
|
|
157357
157358
|
}
|
|
157358
157359
|
) }),
|
|
157359
157360
|
/* @__PURE__ */ E.jsx(Wp, { title: "Zoom in", align: "top", showOnlyOnOverflow: !1, children: /* @__PURE__ */ E.jsx(
|
|
@@ -157362,7 +157363,7 @@ const fQt = G.div`
|
|
|
157362
157363
|
onClick: e,
|
|
157363
157364
|
"data-test": "zoom-in",
|
|
157364
157365
|
title: "Zoom in",
|
|
157365
|
-
children: /* @__PURE__ */ E.jsx(
|
|
157366
|
+
children: /* @__PURE__ */ E.jsx(ZZt, { width: "20", height: "20" })
|
|
157366
157367
|
}
|
|
157367
157368
|
) })
|
|
157368
157369
|
] })
|
|
@@ -158658,7 +158659,7 @@ const dKt = ({
|
|
|
158658
158659
|
}
|
|
158659
158660
|
);
|
|
158660
158661
|
}
|
|
158661
|
-
), KT = G(
|
|
158662
|
+
), KT = G(JZt)`
|
|
158662
158663
|
// taken and adapted from https://github.com/camunda/linting/blob/4f070d31dc615b26dd9352fffbfaa06f3d772f58/assets/linting.css#L14
|
|
158663
158664
|
position: absolute;
|
|
158664
158665
|
--icon-bg-color: var(--cl-color-warning, #ff832b);
|
|
@@ -158808,7 +158809,7 @@ const uEe = G.div`
|
|
|
158808
158809
|
justify-content: center;
|
|
158809
158810
|
border: 1px solid var(--border-border-subtle-selected-01, #c6c6c6);
|
|
158810
158811
|
margin-bottom: var(--cds-spacing-05, 16px);
|
|
158811
|
-
`, fEe = G(
|
|
158812
|
+
`, fEe = G(jZt)`
|
|
158812
158813
|
width: 45px;
|
|
158813
158814
|
height: 45px;
|
|
158814
158815
|
animation: grow 1200ms forwards;
|
|
@@ -159004,7 +159005,7 @@ const _Jt = ({
|
|
|
159004
159005
|
),
|
|
159005
159006
|
[]
|
|
159006
159007
|
), Ve(() => (Js.init(A?.isReplayScenariosEnabled), () => {
|
|
159007
|
-
Be.reset(), Kd.reset(), wt.reset(), Rt.reset(), Js.reset();
|
|
159008
|
+
Be.reset(), Kd.reset(), wt.reset(), Rt.reset(), Js.reset(), xi.reset();
|
|
159008
159009
|
}), [A?.isReplayScenariosEnabled]), Ve(() => {
|
|
159009
159010
|
V === "saas" && !R || (di.init(c), ct.init({
|
|
159010
159011
|
authConfig: i,
|
|
@@ -159052,7 +159053,7 @@ const _Jt = ({
|
|
|
159052
159053
|
V,
|
|
159053
159054
|
N
|
|
159054
159055
|
]);
|
|
159055
|
-
const te =
|
|
159056
|
+
const te = SZt(V, R);
|
|
159056
159057
|
Ve(() => {
|
|
159057
159058
|
if (!de) {
|
|
159058
159059
|
const z = mKt(l), le = AKt(l);
|