@orchestrator-ui/orchestrator-ui-components 0.0.1-alpha.8 → 0.0.1-alpha.9
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/index.js +1350 -1267
- package/package.json +6 -6
- package/src/index.d.ts +4 -15
- package/src/lib/components/Badges/Badge/index.d.ts +1 -0
- package/src/lib/components/Badges/EngineStatusBadge/EngineStatusBadge.d.ts +1 -0
- package/src/lib/components/Badges/EngineStatusBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/EnvironmentBadge/EnvironmentBadge.d.ts +1 -0
- package/src/lib/components/Badges/EnvironmentBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/FailedTasksBadge/FailedTasksBadge.d.ts +1 -0
- package/src/lib/components/Badges/FailedTasksBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/HeaderBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/SubscriptionStatusBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/index.d.ts +6 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.d.ts +7 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader/index.d.ts +1 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageTemplate/index.d.ts +1 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorSidebar/index.d.ts +1 -0
- package/src/lib/components/OrchestratorPageTemplate/index.d.ts +3 -0
- package/src/lib/components/StartPage/ListItemStartPage.d.ts +1 -0
- package/src/lib/components/StartPage/index.d.ts +6 -0
- package/src/lib/components/Table/columns.d.ts +1 -0
- package/src/lib/components/Table/index.d.ts +2 -0
- package/src/lib/components/index.d.ts +4 -0
- package/src/lib/contexts/index.d.ts +1 -0
- package/src/lib/hooks/index.d.ts +1 -0
- package/src/lib/hooks/useQueryWithGraphql.d.ts +1 -0
- package/src/lib/theme/index.d.ts +1 -0
- package/src/lib/utils/date.d.ts +1 -0
- package/src/lib/utils/getTypedFieldFromObject.d.ts +1 -1
- package/src/lib/utils/index.d.ts +3 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader.d.ts +0 -10
- /package/src/lib/components/{Badge → Badges/Badge}/Badge.d.ts +0 -0
- /package/src/lib/components/{OrchestratorPageTemplate → Badges/HeaderBadge}/HeaderBadge.d.ts +0 -0
- /package/src/lib/components/{Badge → Badges/SubscriptionStatusBadge}/SubscriptionStatusBadge.d.ts +0 -0
- /package/src/lib/components/OrchestratorPageTemplate/{OrchestratorPageTemplate.d.ts → OrchestratorPageTemplate/OrchestratorPageTemplate.d.ts} +0 -0
- /package/src/lib/components/OrchestratorPageTemplate/{OrchestratorSidebar.d.ts → OrchestratorSidebar/OrchestratorSidebar.d.ts} +0 -0
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { EuiBadge, EuiText, useEuiTheme, tint, EuiToolTip, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiSideNav, EuiButton, EuiSpacer, EuiPageTemplate, EuiFlexGroup, EuiFlexItem, EuiIcon, EuiTextColor, EuiPanel, EuiHorizontalRule, EuiFieldSearch, EuiAvatar, EuiDataGrid } from '@elastic/eui';
|
|
3
3
|
import { useState, createContext, useContext, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { GraphQLClient, request } from 'graphql-request';
|
|
5
5
|
import { useQuery } from 'react-query';
|
|
6
|
-
import { GraphQLClient } from 'graphql-request';
|
|
7
6
|
import moment from 'moment';
|
|
7
|
+
import Link from 'next/link';
|
|
8
8
|
|
|
9
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var check = function (it) {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
16
|
-
var global$
|
|
16
|
+
var global$i =
|
|
17
17
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
18
18
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
19
19
|
check(typeof window == 'object' && window) ||
|
|
@@ -21,11 +21,11 @@ var global$g =
|
|
|
21
21
|
check(typeof self == 'object' && self) ||
|
|
22
22
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
23
23
|
// eslint-disable-next-line no-new-func -- fallback
|
|
24
|
-
(function () { return this; })() || Function('return this')();
|
|
24
|
+
(function () { return this; })() || commonjsGlobal || Function('return this')();
|
|
25
25
|
|
|
26
26
|
var objectGetOwnPropertyDescriptor = {};
|
|
27
27
|
|
|
28
|
-
var fails$
|
|
28
|
+
var fails$i = function (exec) {
|
|
29
29
|
try {
|
|
30
30
|
return !!exec();
|
|
31
31
|
} catch (error) {
|
|
@@ -33,17 +33,17 @@ var fails$h = function (exec) {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
var fails$
|
|
36
|
+
var fails$h = fails$i;
|
|
37
37
|
|
|
38
38
|
// Detect IE8's incomplete defineProperty implementation
|
|
39
|
-
var descriptors = !fails$
|
|
39
|
+
var descriptors = !fails$h(function () {
|
|
40
40
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
41
41
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
var fails$
|
|
44
|
+
var fails$g = fails$i;
|
|
45
45
|
|
|
46
|
-
var functionBindNative = !fails$
|
|
46
|
+
var functionBindNative = !fails$g(function () {
|
|
47
47
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
48
48
|
var test = (function () { /* empty */ }).bind();
|
|
49
49
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -95,24 +95,24 @@ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
var uncurryThis$
|
|
98
|
+
var uncurryThis$i = functionUncurryThis;
|
|
99
99
|
|
|
100
|
-
var toString$
|
|
101
|
-
var stringSlice$1 = uncurryThis$
|
|
100
|
+
var toString$6 = uncurryThis$i({}.toString);
|
|
101
|
+
var stringSlice$1 = uncurryThis$i(''.slice);
|
|
102
102
|
|
|
103
103
|
var classofRaw$2 = function (it) {
|
|
104
|
-
return stringSlice$1(toString$
|
|
104
|
+
return stringSlice$1(toString$6(it), 8, -1);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
var uncurryThis$
|
|
108
|
-
var fails$
|
|
107
|
+
var uncurryThis$h = functionUncurryThis;
|
|
108
|
+
var fails$f = fails$i;
|
|
109
109
|
var classof$6 = classofRaw$2;
|
|
110
110
|
|
|
111
111
|
var $Object$4 = Object;
|
|
112
|
-
var split = uncurryThis$
|
|
112
|
+
var split = uncurryThis$h(''.split);
|
|
113
113
|
|
|
114
114
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
115
|
-
var indexedObject = fails$
|
|
115
|
+
var indexedObject = fails$f(function () {
|
|
116
116
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
117
117
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
118
118
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -132,17 +132,17 @@ var $TypeError$e = TypeError;
|
|
|
132
132
|
|
|
133
133
|
// `RequireObjectCoercible` abstract operation
|
|
134
134
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
135
|
-
var requireObjectCoercible$
|
|
135
|
+
var requireObjectCoercible$4 = function (it) {
|
|
136
136
|
if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
|
|
137
137
|
return it;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
// toObject with fallback for non-array-like ES3 strings
|
|
141
141
|
var IndexedObject$1 = indexedObject;
|
|
142
|
-
var requireObjectCoercible$
|
|
142
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
143
143
|
|
|
144
144
|
var toIndexedObject$5 = function (it) {
|
|
145
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
145
|
+
return IndexedObject$1(requireObjectCoercible$3(it));
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -179,7 +179,7 @@ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
179
179
|
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
var global$
|
|
182
|
+
var global$h = global$i;
|
|
183
183
|
var isCallable$i = isCallable$k;
|
|
184
184
|
|
|
185
185
|
var aFunction = function (argument) {
|
|
@@ -187,20 +187,20 @@ var aFunction = function (argument) {
|
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
var getBuiltIn$7 = function (namespace, method) {
|
|
190
|
-
return arguments.length < 2 ? aFunction(global$
|
|
190
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
191
191
|
};
|
|
192
192
|
|
|
193
|
-
var uncurryThis$
|
|
193
|
+
var uncurryThis$g = functionUncurryThis;
|
|
194
194
|
|
|
195
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
195
|
+
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
196
196
|
|
|
197
197
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
198
198
|
|
|
199
|
-
var global$
|
|
199
|
+
var global$g = global$i;
|
|
200
200
|
var userAgent$5 = engineUserAgent;
|
|
201
201
|
|
|
202
|
-
var process$4 = global$
|
|
203
|
-
var Deno$1 = global$
|
|
202
|
+
var process$4 = global$g.process;
|
|
203
|
+
var Deno$1 = global$g.Deno;
|
|
204
204
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
205
205
|
var v8 = versions && versions.v8;
|
|
206
206
|
var match, version;
|
|
@@ -227,14 +227,19 @@ var engineV8Version = version;
|
|
|
227
227
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
228
228
|
|
|
229
229
|
var V8_VERSION$1 = engineV8Version;
|
|
230
|
-
var fails$
|
|
230
|
+
var fails$e = fails$i;
|
|
231
|
+
var global$f = global$i;
|
|
232
|
+
|
|
233
|
+
var $String$5 = global$f.String;
|
|
231
234
|
|
|
232
235
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
233
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
236
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
234
237
|
var symbol = Symbol();
|
|
235
238
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
236
239
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
237
|
-
|
|
240
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
241
|
+
// of course, fail.
|
|
242
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
238
243
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
239
244
|
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
240
245
|
});
|
|
@@ -310,24 +315,24 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
310
315
|
|
|
311
316
|
var shared$3 = {exports: {}};
|
|
312
317
|
|
|
313
|
-
var global$
|
|
318
|
+
var global$e = global$i;
|
|
314
319
|
|
|
315
320
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
316
321
|
var defineProperty$6 = Object.defineProperty;
|
|
317
322
|
|
|
318
323
|
var defineGlobalProperty$3 = function (key, value) {
|
|
319
324
|
try {
|
|
320
|
-
defineProperty$6(global$
|
|
325
|
+
defineProperty$6(global$e, key, { value: value, configurable: true, writable: true });
|
|
321
326
|
} catch (error) {
|
|
322
|
-
global$
|
|
327
|
+
global$e[key] = value;
|
|
323
328
|
} return value;
|
|
324
329
|
};
|
|
325
330
|
|
|
326
|
-
var global$
|
|
331
|
+
var global$d = global$i;
|
|
327
332
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
328
333
|
|
|
329
334
|
var SHARED = '__core-js_shared__';
|
|
330
|
-
var store$3 = global$
|
|
335
|
+
var store$3 = global$d[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
331
336
|
|
|
332
337
|
var sharedStore = store$3;
|
|
333
338
|
|
|
@@ -336,27 +341,27 @@ var store$2 = sharedStore;
|
|
|
336
341
|
(shared$3.exports = function (key, value) {
|
|
337
342
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
338
343
|
})('versions', []).push({
|
|
339
|
-
version: '3.
|
|
344
|
+
version: '3.30.2',
|
|
340
345
|
mode: 'global',
|
|
341
346
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
342
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
347
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
|
|
343
348
|
source: 'https://github.com/zloirock/core-js'
|
|
344
349
|
});
|
|
345
350
|
|
|
346
|
-
var requireObjectCoercible$
|
|
351
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
347
352
|
|
|
348
353
|
var $Object$2 = Object;
|
|
349
354
|
|
|
350
355
|
// `ToObject` abstract operation
|
|
351
356
|
// https://tc39.es/ecma262/#sec-toobject
|
|
352
357
|
var toObject$4 = function (argument) {
|
|
353
|
-
return $Object$2(requireObjectCoercible$
|
|
358
|
+
return $Object$2(requireObjectCoercible$2(argument));
|
|
354
359
|
};
|
|
355
360
|
|
|
356
|
-
var uncurryThis$
|
|
361
|
+
var uncurryThis$f = functionUncurryThis;
|
|
357
362
|
var toObject$3 = toObject$4;
|
|
358
363
|
|
|
359
|
-
var hasOwnProperty = uncurryThis$
|
|
364
|
+
var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
|
|
360
365
|
|
|
361
366
|
// `HasOwnProperty` abstract operation
|
|
362
367
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -365,31 +370,31 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
365
370
|
return hasOwnProperty(toObject$3(it), key);
|
|
366
371
|
};
|
|
367
372
|
|
|
368
|
-
var uncurryThis$
|
|
373
|
+
var uncurryThis$e = functionUncurryThis;
|
|
369
374
|
|
|
370
375
|
var id = 0;
|
|
371
376
|
var postfix = Math.random();
|
|
372
|
-
var toString$
|
|
377
|
+
var toString$5 = uncurryThis$e(1.0.toString);
|
|
373
378
|
|
|
374
379
|
var uid$2 = function (key) {
|
|
375
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
380
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
376
381
|
};
|
|
377
382
|
|
|
378
|
-
var global$
|
|
383
|
+
var global$c = global$i;
|
|
379
384
|
var shared$2 = shared$3.exports;
|
|
380
385
|
var hasOwn$a = hasOwnProperty_1;
|
|
381
386
|
var uid$1 = uid$2;
|
|
382
387
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
383
388
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
384
389
|
|
|
385
|
-
var Symbol$
|
|
390
|
+
var Symbol$2 = global$c.Symbol;
|
|
386
391
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
387
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$
|
|
392
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
388
393
|
|
|
389
394
|
var wellKnownSymbol$g = function (name) {
|
|
390
395
|
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
391
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$
|
|
392
|
-
? Symbol$
|
|
396
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)
|
|
397
|
+
? Symbol$2[name]
|
|
393
398
|
: createWellKnownSymbol('Symbol.' + name);
|
|
394
399
|
} return WellKnownSymbolsStore[name];
|
|
395
400
|
};
|
|
@@ -430,10 +435,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
430
435
|
return isSymbol(key) ? key : key + '';
|
|
431
436
|
};
|
|
432
437
|
|
|
433
|
-
var global$
|
|
438
|
+
var global$b = global$i;
|
|
434
439
|
var isObject$6 = isObject$9;
|
|
435
440
|
|
|
436
|
-
var document$3 = global$
|
|
441
|
+
var document$3 = global$b.document;
|
|
437
442
|
// typeof document.createElement is 'object' in old IE
|
|
438
443
|
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
439
444
|
|
|
@@ -442,11 +447,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
442
447
|
};
|
|
443
448
|
|
|
444
449
|
var DESCRIPTORS$a = descriptors;
|
|
445
|
-
var fails$
|
|
450
|
+
var fails$d = fails$i;
|
|
446
451
|
var createElement$1 = documentCreateElement$2;
|
|
447
452
|
|
|
448
453
|
// Thanks to IE8 for its funny defineProperty
|
|
449
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$
|
|
454
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
|
|
450
455
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
451
456
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
452
457
|
get: function () { return 7; }
|
|
@@ -479,11 +484,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
479
484
|
var objectDefineProperty = {};
|
|
480
485
|
|
|
481
486
|
var DESCRIPTORS$8 = descriptors;
|
|
482
|
-
var fails$
|
|
487
|
+
var fails$c = fails$i;
|
|
483
488
|
|
|
484
489
|
// V8 ~ Chrome 36-
|
|
485
490
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
486
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$
|
|
491
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$c(function () {
|
|
487
492
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
488
493
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
489
494
|
value: 42,
|
|
@@ -577,11 +582,11 @@ var functionName = {
|
|
|
577
582
|
CONFIGURABLE: CONFIGURABLE
|
|
578
583
|
};
|
|
579
584
|
|
|
580
|
-
var uncurryThis$
|
|
585
|
+
var uncurryThis$d = functionUncurryThis;
|
|
581
586
|
var isCallable$e = isCallable$k;
|
|
582
587
|
var store$1 = sharedStore;
|
|
583
588
|
|
|
584
|
-
var functionToString = uncurryThis$
|
|
589
|
+
var functionToString = uncurryThis$d(Function.toString);
|
|
585
590
|
|
|
586
591
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
587
592
|
if (!isCallable$e(store$1.inspectSource)) {
|
|
@@ -592,10 +597,10 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
592
597
|
|
|
593
598
|
var inspectSource$3 = store$1.inspectSource;
|
|
594
599
|
|
|
595
|
-
var global$
|
|
600
|
+
var global$a = global$i;
|
|
596
601
|
var isCallable$d = isCallable$k;
|
|
597
602
|
|
|
598
|
-
var WeakMap$1 = global$
|
|
603
|
+
var WeakMap$1 = global$a.WeakMap;
|
|
599
604
|
|
|
600
605
|
var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
601
606
|
|
|
@@ -611,7 +616,7 @@ var sharedKey$3 = function (key) {
|
|
|
611
616
|
var hiddenKeys$4 = {};
|
|
612
617
|
|
|
613
618
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
614
|
-
var global$
|
|
619
|
+
var global$9 = global$i;
|
|
615
620
|
var isObject$4 = isObject$9;
|
|
616
621
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
617
622
|
var hasOwn$7 = hasOwnProperty_1;
|
|
@@ -620,8 +625,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
620
625
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
621
626
|
|
|
622
627
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
623
|
-
var TypeError$2 = global$
|
|
624
|
-
var WeakMap = global$
|
|
628
|
+
var TypeError$2 = global$9.TypeError;
|
|
629
|
+
var WeakMap = global$9.WeakMap;
|
|
625
630
|
var set$1, get, has;
|
|
626
631
|
|
|
627
632
|
var enforce = function (it) {
|
|
@@ -681,8 +686,8 @@ var internalState = {
|
|
|
681
686
|
getterFor: getterFor
|
|
682
687
|
};
|
|
683
688
|
|
|
684
|
-
var uncurryThis$
|
|
685
|
-
var fails$
|
|
689
|
+
var uncurryThis$c = functionUncurryThis;
|
|
690
|
+
var fails$b = fails$i;
|
|
686
691
|
var isCallable$c = isCallable$k;
|
|
687
692
|
var hasOwn$6 = hasOwnProperty_1;
|
|
688
693
|
var DESCRIPTORS$4 = descriptors;
|
|
@@ -695,11 +700,11 @@ var getInternalState$1 = InternalStateModule$2.get;
|
|
|
695
700
|
var $String$2 = String;
|
|
696
701
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
697
702
|
var defineProperty$5 = Object.defineProperty;
|
|
698
|
-
var stringSlice = uncurryThis$
|
|
699
|
-
var replace = uncurryThis$
|
|
700
|
-
var join = uncurryThis$
|
|
703
|
+
var stringSlice = uncurryThis$c(''.slice);
|
|
704
|
+
var replace$1 = uncurryThis$c(''.replace);
|
|
705
|
+
var join = uncurryThis$c([].join);
|
|
701
706
|
|
|
702
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$
|
|
707
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
|
|
703
708
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
704
709
|
});
|
|
705
710
|
|
|
@@ -707,7 +712,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
707
712
|
|
|
708
713
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
709
714
|
if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
|
|
710
|
-
name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
715
|
+
name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
711
716
|
}
|
|
712
717
|
if (options && options.getter) name = 'get ' + name;
|
|
713
718
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -823,7 +828,7 @@ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
|
823
828
|
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
824
829
|
|
|
825
830
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
826
|
-
var createMethod = function (IS_INCLUDES) {
|
|
831
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
827
832
|
return function ($this, el, fromIndex) {
|
|
828
833
|
var O = toIndexedObject$3($this);
|
|
829
834
|
var length = lengthOfArrayLike$3(O);
|
|
@@ -845,19 +850,19 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
845
850
|
var arrayIncludes = {
|
|
846
851
|
// `Array.prototype.includes` method
|
|
847
852
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
848
|
-
includes: createMethod(true),
|
|
853
|
+
includes: createMethod$1(true),
|
|
849
854
|
// `Array.prototype.indexOf` method
|
|
850
855
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
851
|
-
indexOf: createMethod(false)
|
|
856
|
+
indexOf: createMethod$1(false)
|
|
852
857
|
};
|
|
853
858
|
|
|
854
|
-
var uncurryThis$
|
|
859
|
+
var uncurryThis$b = functionUncurryThis;
|
|
855
860
|
var hasOwn$5 = hasOwnProperty_1;
|
|
856
861
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
857
862
|
var indexOf = arrayIncludes.indexOf;
|
|
858
863
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
859
864
|
|
|
860
|
-
var push$1 = uncurryThis$
|
|
865
|
+
var push$1 = uncurryThis$b([].push);
|
|
861
866
|
|
|
862
867
|
var objectKeysInternal = function (object, names) {
|
|
863
868
|
var O = toIndexedObject$2(object);
|
|
@@ -901,12 +906,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
901
906
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
902
907
|
|
|
903
908
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
904
|
-
var uncurryThis$
|
|
909
|
+
var uncurryThis$a = functionUncurryThis;
|
|
905
910
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
906
911
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
907
912
|
var anObject$a = anObject$c;
|
|
908
913
|
|
|
909
|
-
var concat$1 = uncurryThis$
|
|
914
|
+
var concat$1 = uncurryThis$a([].concat);
|
|
910
915
|
|
|
911
916
|
// all object keys, includes non-enumerable and symbols
|
|
912
917
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -932,7 +937,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
932
937
|
}
|
|
933
938
|
};
|
|
934
939
|
|
|
935
|
-
var fails$
|
|
940
|
+
var fails$a = fails$i;
|
|
936
941
|
var isCallable$a = isCallable$k;
|
|
937
942
|
|
|
938
943
|
var replacement = /#|\.prototype\./;
|
|
@@ -941,7 +946,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
941
946
|
var value = data[normalize(feature)];
|
|
942
947
|
return value == POLYFILL ? true
|
|
943
948
|
: value == NATIVE ? false
|
|
944
|
-
: isCallable$a(detection) ? fails$
|
|
949
|
+
: isCallable$a(detection) ? fails$a(detection)
|
|
945
950
|
: !!detection;
|
|
946
951
|
};
|
|
947
952
|
|
|
@@ -955,7 +960,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
955
960
|
|
|
956
961
|
var isForced_1 = isForced$2;
|
|
957
962
|
|
|
958
|
-
var global$
|
|
963
|
+
var global$8 = global$i;
|
|
959
964
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
960
965
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
961
966
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -984,11 +989,11 @@ var _export = function (options, source) {
|
|
|
984
989
|
var STATIC = options.stat;
|
|
985
990
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
986
991
|
if (GLOBAL) {
|
|
987
|
-
target = global$
|
|
992
|
+
target = global$8;
|
|
988
993
|
} else if (STATIC) {
|
|
989
|
-
target = global$
|
|
994
|
+
target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
|
|
990
995
|
} else {
|
|
991
|
-
target = (global$
|
|
996
|
+
target = (global$8[TARGET] || {}).prototype;
|
|
992
997
|
}
|
|
993
998
|
if (target) for (key in source) {
|
|
994
999
|
sourceProperty = source[key];
|
|
@@ -1021,9 +1026,9 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1021
1026
|
};
|
|
1022
1027
|
|
|
1023
1028
|
var DESCRIPTORS$3 = descriptors;
|
|
1024
|
-
var uncurryThis$
|
|
1029
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1025
1030
|
var call$a = functionCall;
|
|
1026
|
-
var fails$
|
|
1031
|
+
var fails$9 = fails$i;
|
|
1027
1032
|
var objectKeys$1 = objectKeys$2;
|
|
1028
1033
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1029
1034
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1034,11 +1039,11 @@ var IndexedObject = indexedObject;
|
|
|
1034
1039
|
var $assign = Object.assign;
|
|
1035
1040
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1036
1041
|
var defineProperty$4 = Object.defineProperty;
|
|
1037
|
-
var concat = uncurryThis$
|
|
1042
|
+
var concat = uncurryThis$9([].concat);
|
|
1038
1043
|
|
|
1039
1044
|
// `Object.assign` method
|
|
1040
1045
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1041
|
-
var objectAssign = !$assign || fails$
|
|
1046
|
+
var objectAssign = !$assign || fails$9(function () {
|
|
1042
1047
|
// should have correct order of operations (Edge bug)
|
|
1043
1048
|
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1044
1049
|
enumerable: true,
|
|
@@ -1077,34 +1082,67 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
1077
1082
|
} return T;
|
|
1078
1083
|
} : $assign;
|
|
1079
1084
|
|
|
1080
|
-
var $$
|
|
1085
|
+
var $$b = _export;
|
|
1081
1086
|
var assign = objectAssign;
|
|
1082
1087
|
|
|
1083
1088
|
// `Object.assign` method
|
|
1084
1089
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1085
1090
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1086
|
-
$$
|
|
1091
|
+
$$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1087
1092
|
assign: assign
|
|
1088
1093
|
});
|
|
1089
1094
|
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1095
|
+
/******************************************************************************
|
|
1096
|
+
Copyright (c) Microsoft Corporation.
|
|
1097
|
+
|
|
1098
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1099
|
+
purpose with or without fee is hereby granted.
|
|
1100
|
+
|
|
1101
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1102
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1103
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1104
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1105
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1106
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1107
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1108
|
+
***************************************************************************** */
|
|
1109
|
+
|
|
1110
|
+
function __rest(s, e) {
|
|
1111
|
+
var t = {};
|
|
1112
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1113
|
+
t[p] = s[p];
|
|
1114
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1115
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1116
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1117
|
+
t[p[i]] = s[p[i]];
|
|
1118
|
+
}
|
|
1119
|
+
return t;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1123
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1124
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1125
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1126
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1127
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1128
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
const Badge = _a => {
|
|
1133
|
+
var {
|
|
1134
|
+
textColor,
|
|
1135
|
+
children
|
|
1136
|
+
} = _a,
|
|
1137
|
+
restProps = __rest(_a, ["textColor", "children"]);
|
|
1138
|
+
return jsx(EuiBadge, Object.assign({}, restProps, {
|
|
1139
|
+
children: jsx(EuiText, Object.assign({
|
|
1140
|
+
color: textColor,
|
|
1141
|
+
size: "xs"
|
|
1106
1142
|
}, {
|
|
1107
|
-
children:
|
|
1143
|
+
children: jsx("b", {
|
|
1144
|
+
children: children
|
|
1145
|
+
})
|
|
1108
1146
|
}))
|
|
1109
1147
|
}));
|
|
1110
1148
|
};
|
|
@@ -1244,9 +1282,9 @@ var addToUnscopables$2 = function (key) {
|
|
|
1244
1282
|
|
|
1245
1283
|
var iterators = {};
|
|
1246
1284
|
|
|
1247
|
-
var fails$
|
|
1285
|
+
var fails$8 = fails$i;
|
|
1248
1286
|
|
|
1249
|
-
var correctPrototypeGetter = !fails$
|
|
1287
|
+
var correctPrototypeGetter = !fails$8(function () {
|
|
1250
1288
|
function F() { /* empty */ }
|
|
1251
1289
|
F.prototype.constructor = null;
|
|
1252
1290
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1275,14 +1313,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1275
1313
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1276
1314
|
};
|
|
1277
1315
|
|
|
1278
|
-
var fails$
|
|
1316
|
+
var fails$7 = fails$i;
|
|
1279
1317
|
var isCallable$8 = isCallable$k;
|
|
1280
1318
|
var isObject$3 = isObject$9;
|
|
1281
1319
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1282
1320
|
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1283
1321
|
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
1284
1322
|
|
|
1285
|
-
var ITERATOR$
|
|
1323
|
+
var ITERATOR$6 = wellKnownSymbol$d('iterator');
|
|
1286
1324
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1287
1325
|
|
|
1288
1326
|
// `%IteratorPrototype%` object
|
|
@@ -1300,18 +1338,18 @@ if ([].keys) {
|
|
|
1300
1338
|
}
|
|
1301
1339
|
}
|
|
1302
1340
|
|
|
1303
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$
|
|
1341
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$7(function () {
|
|
1304
1342
|
var test = {};
|
|
1305
1343
|
// FF44- legacy iterators case
|
|
1306
|
-
return IteratorPrototype$2[ITERATOR$
|
|
1344
|
+
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
1307
1345
|
});
|
|
1308
1346
|
|
|
1309
1347
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1310
1348
|
|
|
1311
1349
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1312
1350
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1313
|
-
if (!isCallable$8(IteratorPrototype$2[ITERATOR$
|
|
1314
|
-
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$
|
|
1351
|
+
if (!isCallable$8(IteratorPrototype$2[ITERATOR$6])) {
|
|
1352
|
+
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1315
1353
|
return this;
|
|
1316
1354
|
});
|
|
1317
1355
|
}
|
|
@@ -1350,13 +1388,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1350
1388
|
return IteratorConstructor;
|
|
1351
1389
|
};
|
|
1352
1390
|
|
|
1353
|
-
var uncurryThis$
|
|
1391
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1354
1392
|
var aCallable$7 = aCallable$9;
|
|
1355
1393
|
|
|
1356
1394
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1357
1395
|
try {
|
|
1358
1396
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1359
|
-
return uncurryThis$
|
|
1397
|
+
return uncurryThis$8(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1360
1398
|
} catch (error) { /* empty */ }
|
|
1361
1399
|
};
|
|
1362
1400
|
|
|
@@ -1398,7 +1436,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1398
1436
|
};
|
|
1399
1437
|
}() : undefined);
|
|
1400
1438
|
|
|
1401
|
-
var $$
|
|
1439
|
+
var $$a = _export;
|
|
1402
1440
|
var call$9 = functionCall;
|
|
1403
1441
|
var FunctionName = functionName;
|
|
1404
1442
|
var isCallable$6 = isCallable$k;
|
|
@@ -1416,7 +1454,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
|
1416
1454
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1417
1455
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1418
1456
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1419
|
-
var ITERATOR$
|
|
1457
|
+
var ITERATOR$5 = wellKnownSymbol$b('iterator');
|
|
1420
1458
|
var KEYS = 'keys';
|
|
1421
1459
|
var VALUES = 'values';
|
|
1422
1460
|
var ENTRIES = 'entries';
|
|
@@ -1439,7 +1477,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1439
1477
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1440
1478
|
var INCORRECT_VALUES_NAME = false;
|
|
1441
1479
|
var IterablePrototype = Iterable.prototype;
|
|
1442
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
1480
|
+
var nativeIterator = IterablePrototype[ITERATOR$5]
|
|
1443
1481
|
|| IterablePrototype['@@iterator']
|
|
1444
1482
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1445
1483
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
@@ -1453,8 +1491,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1453
1491
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1454
1492
|
if (setPrototypeOf$1) {
|
|
1455
1493
|
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
1456
|
-
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$
|
|
1457
|
-
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$
|
|
1494
|
+
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1495
|
+
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1458
1496
|
}
|
|
1459
1497
|
}
|
|
1460
1498
|
// Set @@toStringTag to native iterators
|
|
@@ -1483,12 +1521,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1483
1521
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1484
1522
|
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1485
1523
|
}
|
|
1486
|
-
} else $$
|
|
1524
|
+
} else $$a({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1487
1525
|
}
|
|
1488
1526
|
|
|
1489
1527
|
// define iterator
|
|
1490
|
-
if (IterablePrototype[ITERATOR$
|
|
1491
|
-
defineBuiltIn$3(IterablePrototype, ITERATOR$
|
|
1528
|
+
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1529
|
+
defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1492
1530
|
}
|
|
1493
1531
|
Iterators$3[NAME] = defaultIterator;
|
|
1494
1532
|
|
|
@@ -1606,24 +1644,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1606
1644
|
|
|
1607
1645
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1608
1646
|
|
|
1609
|
-
var global$
|
|
1647
|
+
var global$7 = global$i;
|
|
1610
1648
|
var DOMIterables = domIterables;
|
|
1611
1649
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1612
1650
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1613
1651
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1614
1652
|
var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
1615
1653
|
|
|
1616
|
-
var ITERATOR$
|
|
1654
|
+
var ITERATOR$4 = wellKnownSymbol$a('iterator');
|
|
1617
1655
|
var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
|
|
1618
1656
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1619
1657
|
|
|
1620
1658
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1621
1659
|
if (CollectionPrototype) {
|
|
1622
1660
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1623
|
-
if (CollectionPrototype[ITERATOR$
|
|
1624
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR$
|
|
1661
|
+
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1662
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1625
1663
|
} catch (error) {
|
|
1626
|
-
CollectionPrototype[ITERATOR$
|
|
1664
|
+
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1627
1665
|
}
|
|
1628
1666
|
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
|
1629
1667
|
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
|
@@ -1640,205 +1678,67 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1640
1678
|
};
|
|
1641
1679
|
|
|
1642
1680
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1643
|
-
handlePrototype(global$
|
|
1681
|
+
handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1644
1682
|
}
|
|
1645
1683
|
|
|
1646
1684
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1647
1685
|
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
const
|
|
1686
|
+
var Environment;
|
|
1687
|
+
(function (Environment) {
|
|
1688
|
+
Environment["DEVELOPMENT"] = "Development";
|
|
1689
|
+
Environment["PRODUCTION"] = "Production";
|
|
1690
|
+
})(Environment || (Environment = {}));
|
|
1691
|
+
const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
1692
|
+
const [orchestratorConfig] = useState(initialOrchestratorConfig);
|
|
1655
1693
|
return {
|
|
1656
|
-
|
|
1657
|
-
multiplyByBaseUnit,
|
|
1658
|
-
toSecondaryColor
|
|
1694
|
+
orchestratorConfig
|
|
1659
1695
|
};
|
|
1660
1696
|
};
|
|
1661
1697
|
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
var t = {};
|
|
1679
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1680
|
-
t[p] = s[p];
|
|
1681
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1682
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1683
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1684
|
-
t[p[i]] = s[p[i]];
|
|
1685
|
-
}
|
|
1686
|
-
return t;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1690
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1691
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1692
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1693
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1694
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1695
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1696
|
-
});
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
const Badge = _a => {
|
|
1700
|
-
var {
|
|
1701
|
-
textColor,
|
|
1702
|
-
children
|
|
1703
|
-
} = _a,
|
|
1704
|
-
restProps = __rest(_a, ["textColor", "children"]);
|
|
1705
|
-
return jsx(EuiBadge, Object.assign({}, restProps, {
|
|
1706
|
-
children: jsx(EuiText, Object.assign({
|
|
1707
|
-
color: textColor,
|
|
1708
|
-
size: "xs"
|
|
1709
|
-
}, {
|
|
1710
|
-
children: jsx("b", {
|
|
1711
|
-
children: children
|
|
1712
|
-
})
|
|
1713
|
-
}))
|
|
1714
|
-
}));
|
|
1715
|
-
};
|
|
1716
|
-
|
|
1717
|
-
const HeaderBadge = _a => {
|
|
1718
|
-
var {
|
|
1719
|
-
children
|
|
1720
|
-
} = _a,
|
|
1721
|
-
restProps = __rest(_a, ["children"]);
|
|
1722
|
-
const css = restProps.iconType ? {
|
|
1723
|
-
height: 24,
|
|
1724
|
-
display: 'flex',
|
|
1725
|
-
paddingLeft: 0
|
|
1726
|
-
} : {
|
|
1727
|
-
height: 24,
|
|
1728
|
-
display: 'flex'
|
|
1729
|
-
};
|
|
1730
|
-
return jsx(Badge, Object.assign({}, restProps, {
|
|
1731
|
-
css: css
|
|
1698
|
+
const OrchestratorConfigContext = /*#__PURE__*/createContext({
|
|
1699
|
+
orchestratorApiBaseUrl: '',
|
|
1700
|
+
engineStatusEndpoint: '',
|
|
1701
|
+
processStatusCountsEndpoint: '',
|
|
1702
|
+
environmentName: '',
|
|
1703
|
+
graphqlEndpoint: ''
|
|
1704
|
+
});
|
|
1705
|
+
const OrchestratorConfigProvider = ({
|
|
1706
|
+
initialOrchestratorConfig,
|
|
1707
|
+
children
|
|
1708
|
+
}) => {
|
|
1709
|
+
const {
|
|
1710
|
+
orchestratorConfig
|
|
1711
|
+
} = useOrchestratorConfig(initialOrchestratorConfig);
|
|
1712
|
+
return jsx(OrchestratorConfigContext.Provider, Object.assign({
|
|
1713
|
+
value: orchestratorConfig
|
|
1732
1714
|
}, {
|
|
1733
1715
|
children: children
|
|
1734
1716
|
}));
|
|
1735
1717
|
};
|
|
1736
1718
|
|
|
1737
|
-
const
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
fillRule: "nonzero"
|
|
1761
|
-
}, {
|
|
1762
|
-
children: [jsx("circle", {
|
|
1763
|
-
id: "Oval",
|
|
1764
|
-
opacity: "0.25",
|
|
1765
|
-
cx: "12",
|
|
1766
|
-
cy: "12",
|
|
1767
|
-
r: "8"
|
|
1768
|
-
}), jsx("circle", {
|
|
1769
|
-
id: "Oval",
|
|
1770
|
-
cx: "12",
|
|
1771
|
-
cy: "12",
|
|
1772
|
-
r: "4"
|
|
1773
|
-
})]
|
|
1774
|
-
}))
|
|
1775
|
-
}))]
|
|
1776
|
-
}));
|
|
1777
|
-
|
|
1778
|
-
const XCircleFill = ({
|
|
1779
|
-
width: _width = 24,
|
|
1780
|
-
height: _height = 24,
|
|
1781
|
-
color: _color = '#000000'
|
|
1782
|
-
}) => jsxs("svg", Object.assign({
|
|
1783
|
-
width: _width,
|
|
1784
|
-
height: _height,
|
|
1785
|
-
viewBox: "0 0 24 24",
|
|
1786
|
-
version: "1.1",
|
|
1787
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1788
|
-
}, {
|
|
1789
|
-
children: [jsx("title", {
|
|
1790
|
-
children: "icon/x-circle-fill"
|
|
1791
|
-
}), jsx("g", Object.assign({
|
|
1792
|
-
id: "Symbols",
|
|
1793
|
-
stroke: "none",
|
|
1794
|
-
strokeWidth: "1",
|
|
1795
|
-
fill: "none",
|
|
1796
|
-
fillRule: "evenodd"
|
|
1797
|
-
}, {
|
|
1798
|
-
children: jsx("g", Object.assign({
|
|
1799
|
-
id: "icon/x-circle-fill",
|
|
1800
|
-
fill: _color
|
|
1801
|
-
}, {
|
|
1802
|
-
children: jsx("path", {
|
|
1803
|
-
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
|
|
1804
|
-
id: "Shape"
|
|
1805
|
-
})
|
|
1806
|
-
}))
|
|
1807
|
-
}))]
|
|
1808
|
-
}));
|
|
1809
|
-
|
|
1810
|
-
const LogoutIcon = ({
|
|
1811
|
-
width: _width = 24,
|
|
1812
|
-
height: _height = 24,
|
|
1813
|
-
color: _color = '#000000'
|
|
1814
|
-
}) => jsxs("svg", Object.assign({
|
|
1815
|
-
width: _width,
|
|
1816
|
-
height: _height,
|
|
1817
|
-
viewBox: "0 0 24 24",
|
|
1818
|
-
version: "1.1",
|
|
1819
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1820
|
-
}, {
|
|
1821
|
-
children: [jsx("title", {
|
|
1822
|
-
children: "icon/logout"
|
|
1823
|
-
}), jsx("g", Object.assign({
|
|
1824
|
-
id: "Symbols",
|
|
1825
|
-
stroke: "none",
|
|
1826
|
-
strokeWidth: "1",
|
|
1827
|
-
fill: "none",
|
|
1828
|
-
fillRule: "evenodd"
|
|
1829
|
-
}, {
|
|
1830
|
-
children: jsx("g", Object.assign({
|
|
1831
|
-
id: "icon/logout",
|
|
1832
|
-
fill: _color,
|
|
1833
|
-
fillRule: "nonzero"
|
|
1834
|
-
}, {
|
|
1835
|
-
children: jsx("path", {
|
|
1836
|
-
d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
|
|
1837
|
-
id: "Combined-Shape"
|
|
1838
|
-
})
|
|
1839
|
-
}))
|
|
1840
|
-
}))]
|
|
1841
|
-
}));
|
|
1719
|
+
const useQueryWithGraphql = (query, queryVars) => {
|
|
1720
|
+
const {
|
|
1721
|
+
graphqlEndpoint
|
|
1722
|
+
} = useContext(OrchestratorConfigContext);
|
|
1723
|
+
const graphQLClient = new GraphQLClient(graphqlEndpoint);
|
|
1724
|
+
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1725
|
+
// TS-Ignore because queryVars does not seem to be accepted by the client
|
|
1726
|
+
// The props in this useQueryWithGraphql-hook ensures queryVars is indeed related to the query
|
|
1727
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1728
|
+
// @ts-ignore
|
|
1729
|
+
return yield graphQLClient.request(query, queryVars);
|
|
1730
|
+
});
|
|
1731
|
+
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
1732
|
+
};
|
|
1733
|
+
const useStringQueryWithGraphql = (query, queryVars) => {
|
|
1734
|
+
const {
|
|
1735
|
+
graphqlEndpoint
|
|
1736
|
+
} = useContext(OrchestratorConfigContext);
|
|
1737
|
+
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1738
|
+
return yield request(graphqlEndpoint, query, queryVars);
|
|
1739
|
+
});
|
|
1740
|
+
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
1741
|
+
};
|
|
1842
1742
|
|
|
1843
1743
|
var classof$5 = classofRaw$2;
|
|
1844
1744
|
|
|
@@ -1919,8 +1819,8 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1919
1819
|
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1920
1820
|
};
|
|
1921
1821
|
|
|
1922
|
-
var uncurryThis$
|
|
1923
|
-
var fails$
|
|
1822
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1823
|
+
var fails$6 = fails$i;
|
|
1924
1824
|
var isCallable$4 = isCallable$k;
|
|
1925
1825
|
var classof$3 = classof$4;
|
|
1926
1826
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
@@ -1930,7 +1830,7 @@ var noop = function () { /* empty */ };
|
|
|
1930
1830
|
var empty = [];
|
|
1931
1831
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
1932
1832
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1933
|
-
var exec = uncurryThis$
|
|
1833
|
+
var exec$1 = uncurryThis$7(constructorRegExp.exec);
|
|
1934
1834
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1935
1835
|
|
|
1936
1836
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1954,7 +1854,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
1954
1854
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1955
1855
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1956
1856
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
1957
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
1857
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
1958
1858
|
} catch (error) {
|
|
1959
1859
|
return true;
|
|
1960
1860
|
}
|
|
@@ -1964,7 +1864,7 @@ isConstructorLegacy.sham = true;
|
|
|
1964
1864
|
|
|
1965
1865
|
// `IsConstructor` abstract operation
|
|
1966
1866
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1967
|
-
var isConstructor$1 = !construct || fails$
|
|
1867
|
+
var isConstructor$1 = !construct || fails$6(function () {
|
|
1968
1868
|
var called;
|
|
1969
1869
|
return isConstructorModern(isConstructorModern.call)
|
|
1970
1870
|
|| !isConstructorModern(Object)
|
|
@@ -2010,20 +1910,20 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
|
|
|
2010
1910
|
});
|
|
2011
1911
|
|
|
2012
1912
|
var classofRaw = classofRaw$2;
|
|
2013
|
-
var uncurryThis$
|
|
1913
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2014
1914
|
|
|
2015
1915
|
var functionUncurryThisClause = function (fn) {
|
|
2016
1916
|
// Nashorn bug:
|
|
2017
1917
|
// https://github.com/zloirock/core-js/issues/1128
|
|
2018
1918
|
// https://github.com/zloirock/core-js/issues/1130
|
|
2019
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1919
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
|
|
2020
1920
|
};
|
|
2021
1921
|
|
|
2022
|
-
var uncurryThis$
|
|
1922
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
2023
1923
|
var aCallable$6 = aCallable$9;
|
|
2024
1924
|
var NATIVE_BIND = functionBindNative;
|
|
2025
1925
|
|
|
2026
|
-
var bind$4 = uncurryThis$
|
|
1926
|
+
var bind$4 = uncurryThis$5(uncurryThis$5.bind);
|
|
2027
1927
|
|
|
2028
1928
|
// optional / simple context binding
|
|
2029
1929
|
var functionBindContext = function (fn, that) {
|
|
@@ -2033,9 +1933,9 @@ var functionBindContext = function (fn, that) {
|
|
|
2033
1933
|
};
|
|
2034
1934
|
};
|
|
2035
1935
|
|
|
2036
|
-
var uncurryThis$
|
|
1936
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2037
1937
|
|
|
2038
|
-
var arraySlice$2 = uncurryThis$
|
|
1938
|
+
var arraySlice$2 = uncurryThis$4([].slice);
|
|
2039
1939
|
|
|
2040
1940
|
var $TypeError$5 = TypeError;
|
|
2041
1941
|
|
|
@@ -2049,12 +1949,12 @@ var userAgent$4 = engineUserAgent;
|
|
|
2049
1949
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2050
1950
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
|
|
2051
1951
|
|
|
2052
|
-
var global$
|
|
1952
|
+
var global$6 = global$i;
|
|
2053
1953
|
var apply = functionApply;
|
|
2054
1954
|
var bind$3 = functionBindContext;
|
|
2055
1955
|
var isCallable$3 = isCallable$k;
|
|
2056
1956
|
var hasOwn$1 = hasOwnProperty_1;
|
|
2057
|
-
var fails$
|
|
1957
|
+
var fails$5 = fails$i;
|
|
2058
1958
|
var html = html$2;
|
|
2059
1959
|
var arraySlice$1 = arraySlice$2;
|
|
2060
1960
|
var createElement = documentCreateElement$2;
|
|
@@ -2062,21 +1962,21 @@ var validateArgumentsLength = validateArgumentsLength$1;
|
|
|
2062
1962
|
var IS_IOS$1 = engineIsIos;
|
|
2063
1963
|
var IS_NODE$3 = engineIsNode;
|
|
2064
1964
|
|
|
2065
|
-
var set = global$
|
|
2066
|
-
var clear = global$
|
|
2067
|
-
var process$3 = global$
|
|
2068
|
-
var Dispatch = global$
|
|
2069
|
-
var Function$1 = global$
|
|
2070
|
-
var MessageChannel = global$
|
|
2071
|
-
var String$1 = global$
|
|
1965
|
+
var set = global$6.setImmediate;
|
|
1966
|
+
var clear = global$6.clearImmediate;
|
|
1967
|
+
var process$3 = global$6.process;
|
|
1968
|
+
var Dispatch = global$6.Dispatch;
|
|
1969
|
+
var Function$1 = global$6.Function;
|
|
1970
|
+
var MessageChannel = global$6.MessageChannel;
|
|
1971
|
+
var String$1 = global$6.String;
|
|
2072
1972
|
var counter = 0;
|
|
2073
1973
|
var queue$2 = {};
|
|
2074
1974
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2075
1975
|
var $location, defer, channel, port;
|
|
2076
1976
|
|
|
2077
|
-
fails$
|
|
1977
|
+
fails$5(function () {
|
|
2078
1978
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2079
|
-
$location = global$
|
|
1979
|
+
$location = global$6.location;
|
|
2080
1980
|
});
|
|
2081
1981
|
|
|
2082
1982
|
var run = function (id) {
|
|
@@ -2099,7 +1999,7 @@ var eventListener = function (event) {
|
|
|
2099
1999
|
|
|
2100
2000
|
var globalPostMessageDefer = function (id) {
|
|
2101
2001
|
// old engines have not location.origin
|
|
2102
|
-
global$
|
|
2002
|
+
global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
2103
2003
|
};
|
|
2104
2004
|
|
|
2105
2005
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -2137,14 +2037,14 @@ if (!set || !clear) {
|
|
|
2137
2037
|
// Browsers with postMessage, skip WebWorkers
|
|
2138
2038
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2139
2039
|
} else if (
|
|
2140
|
-
global$
|
|
2141
|
-
isCallable$3(global$
|
|
2142
|
-
!global$
|
|
2040
|
+
global$6.addEventListener &&
|
|
2041
|
+
isCallable$3(global$6.postMessage) &&
|
|
2042
|
+
!global$6.importScripts &&
|
|
2143
2043
|
$location && $location.protocol !== 'file:' &&
|
|
2144
|
-
!fails$
|
|
2044
|
+
!fails$5(globalPostMessageDefer)
|
|
2145
2045
|
) {
|
|
2146
2046
|
defer = globalPostMessageDefer;
|
|
2147
|
-
global$
|
|
2047
|
+
global$6.addEventListener('message', eventListener, false);
|
|
2148
2048
|
// IE8-
|
|
2149
2049
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2150
2050
|
defer = function (id) {
|
|
@@ -2199,7 +2099,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
2199
2099
|
|
|
2200
2100
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
|
|
2201
2101
|
|
|
2202
|
-
var global$
|
|
2102
|
+
var global$5 = global$i;
|
|
2203
2103
|
var bind$2 = functionBindContext;
|
|
2204
2104
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2205
2105
|
var macrotask = task$1.set;
|
|
@@ -2209,12 +2109,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
2209
2109
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2210
2110
|
var IS_NODE$2 = engineIsNode;
|
|
2211
2111
|
|
|
2212
|
-
var MutationObserver = global$
|
|
2213
|
-
var document$2 = global$
|
|
2214
|
-
var process$2 = global$
|
|
2215
|
-
var Promise$1 = global$
|
|
2112
|
+
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
2113
|
+
var document$2 = global$5.document;
|
|
2114
|
+
var process$2 = global$5.process;
|
|
2115
|
+
var Promise$1 = global$5.Promise;
|
|
2216
2116
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
2217
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
2117
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
|
|
2218
2118
|
var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
2219
2119
|
var notify$1, toggle, node, promise, then;
|
|
2220
2120
|
|
|
@@ -2266,7 +2166,7 @@ if (!microtask$1) {
|
|
|
2266
2166
|
// - setTimeout
|
|
2267
2167
|
} else {
|
|
2268
2168
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
2269
|
-
macrotask = bind$2(macrotask, global$
|
|
2169
|
+
macrotask = bind$2(macrotask, global$5);
|
|
2270
2170
|
notify$1 = function () {
|
|
2271
2171
|
macrotask(flush);
|
|
2272
2172
|
};
|
|
@@ -2295,9 +2195,9 @@ var perform$3 = function (exec) {
|
|
|
2295
2195
|
}
|
|
2296
2196
|
};
|
|
2297
2197
|
|
|
2298
|
-
var global$
|
|
2198
|
+
var global$4 = global$i;
|
|
2299
2199
|
|
|
2300
|
-
var promiseNativeConstructor = global$
|
|
2200
|
+
var promiseNativeConstructor = global$4.Promise;
|
|
2301
2201
|
|
|
2302
2202
|
/* global Deno -- Deno case */
|
|
2303
2203
|
|
|
@@ -2310,7 +2210,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
2310
2210
|
&& typeof window == 'object'
|
|
2311
2211
|
&& typeof document == 'object';
|
|
2312
2212
|
|
|
2313
|
-
var global$
|
|
2213
|
+
var global$3 = global$i;
|
|
2314
2214
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2315
2215
|
var isCallable$2 = isCallable$k;
|
|
2316
2216
|
var isForced = isForced_1;
|
|
@@ -2323,7 +2223,7 @@ var V8_VERSION = engineV8Version;
|
|
|
2323
2223
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2324
2224
|
var SPECIES = wellKnownSymbol$5('species');
|
|
2325
2225
|
var SUBCLASSING = false;
|
|
2326
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$
|
|
2226
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$3.PromiseRejectionEvent);
|
|
2327
2227
|
|
|
2328
2228
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
2329
2229
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -2378,9 +2278,9 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2378
2278
|
return new PromiseCapability(C);
|
|
2379
2279
|
};
|
|
2380
2280
|
|
|
2381
|
-
var $$
|
|
2281
|
+
var $$9 = _export;
|
|
2382
2282
|
var IS_NODE = engineIsNode;
|
|
2383
|
-
var global$
|
|
2283
|
+
var global$2 = global$i;
|
|
2384
2284
|
var call$7 = functionCall;
|
|
2385
2285
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2386
2286
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -2410,13 +2310,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
2410
2310
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2411
2311
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
2412
2312
|
var PromisePrototype = NativePromisePrototype$1;
|
|
2413
|
-
var TypeError$1 = global$
|
|
2414
|
-
var document$1 = global$
|
|
2415
|
-
var process$1 = global$
|
|
2313
|
+
var TypeError$1 = global$2.TypeError;
|
|
2314
|
+
var document$1 = global$2.document;
|
|
2315
|
+
var process$1 = global$2.process;
|
|
2416
2316
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
2417
2317
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
2418
2318
|
|
|
2419
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
2319
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
|
|
2420
2320
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2421
2321
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2422
2322
|
var PENDING = 0;
|
|
@@ -2489,14 +2389,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2489
2389
|
event.promise = promise;
|
|
2490
2390
|
event.reason = reason;
|
|
2491
2391
|
event.initEvent(name, false, true);
|
|
2492
|
-
global$
|
|
2392
|
+
global$2.dispatchEvent(event);
|
|
2493
2393
|
} else event = { promise: promise, reason: reason };
|
|
2494
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
2394
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
|
|
2495
2395
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2496
2396
|
};
|
|
2497
2397
|
|
|
2498
2398
|
var onUnhandled = function (state) {
|
|
2499
|
-
call$7(task, global$
|
|
2399
|
+
call$7(task, global$2, function () {
|
|
2500
2400
|
var promise = state.facade;
|
|
2501
2401
|
var value = state.value;
|
|
2502
2402
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -2519,7 +2419,7 @@ var isUnhandled = function (state) {
|
|
|
2519
2419
|
};
|
|
2520
2420
|
|
|
2521
2421
|
var onHandleUnhandled = function (state) {
|
|
2522
|
-
call$7(task, global$
|
|
2422
|
+
call$7(task, global$2, function () {
|
|
2523
2423
|
var promise = state.facade;
|
|
2524
2424
|
if (IS_NODE) {
|
|
2525
2425
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -2658,7 +2558,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2658
2558
|
}
|
|
2659
2559
|
}
|
|
2660
2560
|
|
|
2661
|
-
$$
|
|
2561
|
+
$$9({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2662
2562
|
Promise: PromiseConstructor
|
|
2663
2563
|
});
|
|
2664
2564
|
|
|
@@ -2668,12 +2568,12 @@ setSpecies(PROMISE);
|
|
|
2668
2568
|
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
2669
2569
|
var Iterators$1 = iterators;
|
|
2670
2570
|
|
|
2671
|
-
var ITERATOR$
|
|
2571
|
+
var ITERATOR$3 = wellKnownSymbol$4('iterator');
|
|
2672
2572
|
var ArrayPrototype = Array.prototype;
|
|
2673
2573
|
|
|
2674
2574
|
// check on default Array iterator
|
|
2675
2575
|
var isArrayIteratorMethod$1 = function (it) {
|
|
2676
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$
|
|
2576
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
|
|
2677
2577
|
};
|
|
2678
2578
|
|
|
2679
2579
|
var classof$2 = classof$4;
|
|
@@ -2682,10 +2582,10 @@ var isNullOrUndefined = isNullOrUndefined$4;
|
|
|
2682
2582
|
var Iterators = iterators;
|
|
2683
2583
|
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
2684
2584
|
|
|
2685
|
-
var ITERATOR$
|
|
2585
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
2686
2586
|
|
|
2687
2587
|
var getIteratorMethod$2 = function (it) {
|
|
2688
|
-
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$
|
|
2588
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
|
|
2689
2589
|
|| getMethod$1(it, '@@iterator')
|
|
2690
2590
|
|| Iterators[classof$2(it)];
|
|
2691
2591
|
};
|
|
@@ -2799,7 +2699,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2799
2699
|
|
|
2800
2700
|
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
2801
2701
|
|
|
2802
|
-
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
2702
|
+
var ITERATOR$1 = wellKnownSymbol$2('iterator');
|
|
2803
2703
|
var SAFE_CLOSING = false;
|
|
2804
2704
|
|
|
2805
2705
|
try {
|
|
@@ -2812,7 +2712,7 @@ try {
|
|
|
2812
2712
|
SAFE_CLOSING = true;
|
|
2813
2713
|
}
|
|
2814
2714
|
};
|
|
2815
|
-
iteratorWithReturn[ITERATOR] = function () {
|
|
2715
|
+
iteratorWithReturn[ITERATOR$1] = function () {
|
|
2816
2716
|
return this;
|
|
2817
2717
|
};
|
|
2818
2718
|
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
@@ -2824,7 +2724,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
2824
2724
|
var ITERATION_SUPPORT = false;
|
|
2825
2725
|
try {
|
|
2826
2726
|
var object = {};
|
|
2827
|
-
object[ITERATOR] = function () {
|
|
2727
|
+
object[ITERATOR$1] = function () {
|
|
2828
2728
|
return {
|
|
2829
2729
|
next: function () {
|
|
2830
2730
|
return { done: ITERATION_SUPPORT = true };
|
|
@@ -2844,7 +2744,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2844
2744
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2845
2745
|
});
|
|
2846
2746
|
|
|
2847
|
-
var $$
|
|
2747
|
+
var $$8 = _export;
|
|
2848
2748
|
var call$3 = functionCall;
|
|
2849
2749
|
var aCallable$2 = aCallable$9;
|
|
2850
2750
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
@@ -2854,7 +2754,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2854
2754
|
|
|
2855
2755
|
// `Promise.all` method
|
|
2856
2756
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2857
|
-
$$
|
|
2757
|
+
$$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2858
2758
|
all: function all(iterable) {
|
|
2859
2759
|
var C = this;
|
|
2860
2760
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -2883,7 +2783,7 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2883
2783
|
}
|
|
2884
2784
|
});
|
|
2885
2785
|
|
|
2886
|
-
var $$
|
|
2786
|
+
var $$7 = _export;
|
|
2887
2787
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2888
2788
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2889
2789
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
@@ -2894,7 +2794,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
2894
2794
|
|
|
2895
2795
|
// `Promise.prototype.catch` method
|
|
2896
2796
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2897
|
-
$$
|
|
2797
|
+
$$7({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2898
2798
|
'catch': function (onRejected) {
|
|
2899
2799
|
return this.then(undefined, onRejected);
|
|
2900
2800
|
}
|
|
@@ -2908,7 +2808,7 @@ if (isCallable(NativePromiseConstructor)) {
|
|
|
2908
2808
|
}
|
|
2909
2809
|
}
|
|
2910
2810
|
|
|
2911
|
-
var $$
|
|
2811
|
+
var $$6 = _export;
|
|
2912
2812
|
var call$2 = functionCall;
|
|
2913
2813
|
var aCallable$1 = aCallable$9;
|
|
2914
2814
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
@@ -2918,7 +2818,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2918
2818
|
|
|
2919
2819
|
// `Promise.race` method
|
|
2920
2820
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2921
|
-
$$
|
|
2821
|
+
$$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2922
2822
|
race: function race(iterable) {
|
|
2923
2823
|
var C = this;
|
|
2924
2824
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -2934,14 +2834,14 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2934
2834
|
}
|
|
2935
2835
|
});
|
|
2936
2836
|
|
|
2937
|
-
var $$
|
|
2837
|
+
var $$5 = _export;
|
|
2938
2838
|
var call$1 = functionCall;
|
|
2939
2839
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2940
2840
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2941
2841
|
|
|
2942
2842
|
// `Promise.reject` method
|
|
2943
2843
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2944
|
-
$$
|
|
2844
|
+
$$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2945
2845
|
reject: function reject(r) {
|
|
2946
2846
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2947
2847
|
call$1(capability.reject, undefined, r);
|
|
@@ -2962,7 +2862,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
2962
2862
|
return promiseCapability.promise;
|
|
2963
2863
|
};
|
|
2964
2864
|
|
|
2965
|
-
var $$
|
|
2865
|
+
var $$4 = _export;
|
|
2966
2866
|
var getBuiltIn = getBuiltIn$7;
|
|
2967
2867
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2968
2868
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2971,45 +2871,12 @@ getBuiltIn('Promise');
|
|
|
2971
2871
|
|
|
2972
2872
|
// `Promise.resolve` method
|
|
2973
2873
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2974
|
-
$$
|
|
2874
|
+
$$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2975
2875
|
resolve: function resolve(x) {
|
|
2976
2876
|
return promiseResolve(this, x);
|
|
2977
2877
|
}
|
|
2978
2878
|
});
|
|
2979
2879
|
|
|
2980
|
-
var Environment;
|
|
2981
|
-
(function (Environment) {
|
|
2982
|
-
Environment["DEVELOPMENT"] = "Development";
|
|
2983
|
-
Environment["PRODUCTION"] = "Production";
|
|
2984
|
-
})(Environment || (Environment = {}));
|
|
2985
|
-
const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
2986
|
-
const [orchestratorConfig] = useState(initialOrchestratorConfig);
|
|
2987
|
-
return {
|
|
2988
|
-
orchestratorConfig
|
|
2989
|
-
};
|
|
2990
|
-
};
|
|
2991
|
-
|
|
2992
|
-
const OrchestratorConfigContext = /*#__PURE__*/createContext({
|
|
2993
|
-
orchestratorApiBaseUrl: '',
|
|
2994
|
-
engineStatusEndpoint: '',
|
|
2995
|
-
processStatusCountsEndpoint: '',
|
|
2996
|
-
environmentName: '',
|
|
2997
|
-
graphqlEndpoint: ''
|
|
2998
|
-
});
|
|
2999
|
-
const OrchestratorConfigProvider = ({
|
|
3000
|
-
initialOrchestratorConfig,
|
|
3001
|
-
children
|
|
3002
|
-
}) => {
|
|
3003
|
-
const {
|
|
3004
|
-
orchestratorConfig
|
|
3005
|
-
} = useOrchestratorConfig(initialOrchestratorConfig);
|
|
3006
|
-
return jsx(OrchestratorConfigContext.Provider, Object.assign({
|
|
3007
|
-
value: orchestratorConfig
|
|
3008
|
-
}, {
|
|
3009
|
-
children: children
|
|
3010
|
-
}));
|
|
3011
|
-
};
|
|
3012
|
-
|
|
3013
2880
|
const useEngineStatusQuery = () => {
|
|
3014
2881
|
const {
|
|
3015
2882
|
engineStatusEndpoint
|
|
@@ -3023,6 +2890,20 @@ const useEngineStatusQuery = () => {
|
|
|
3023
2890
|
return useQuery('engineStatus', fetchEngineStatus);
|
|
3024
2891
|
};
|
|
3025
2892
|
|
|
2893
|
+
const useOrchestratorTheme = () => {
|
|
2894
|
+
const {
|
|
2895
|
+
euiTheme
|
|
2896
|
+
} = useEuiTheme();
|
|
2897
|
+
const baseUnit = euiTheme.base;
|
|
2898
|
+
const multiplyByBaseUnit = multiplier => baseUnit * multiplier;
|
|
2899
|
+
const toSecondaryColor = color => tint(color, 0.8);
|
|
2900
|
+
return {
|
|
2901
|
+
theme: euiTheme,
|
|
2902
|
+
multiplyByBaseUnit,
|
|
2903
|
+
toSecondaryColor
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
|
|
3026
2907
|
var ProcessStatus;
|
|
3027
2908
|
(function (ProcessStatus) {
|
|
3028
2909
|
ProcessStatus["CREATED"] = "created";
|
|
@@ -3048,112 +2929,198 @@ const useProcessStatusCountsQuery = () => {
|
|
|
3048
2929
|
return useQuery('processStatusCounts', fetchProcessStatusCounts);
|
|
3049
2930
|
};
|
|
3050
2931
|
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
2932
|
+
function getFavouriteSubscriptions(apiUrl) {
|
|
2933
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2934
|
+
console.log('api url', apiUrl);
|
|
2935
|
+
const response = yield fetch(apiUrl + '/subscriptions/?range=10%2C15');
|
|
2936
|
+
return yield response.json();
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
function getProcessesNeedingAttention(apiUrl) {
|
|
2940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2941
|
+
const response = yield fetch(apiUrl + '/processes/?range=100%2C105');
|
|
2942
|
+
return yield response.json();
|
|
2943
|
+
});
|
|
2944
|
+
}
|
|
2945
|
+
function getRecentProcesses(apiUrl) {
|
|
2946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2947
|
+
const response = yield fetch(apiUrl + '/processes/?range=106%2C111');
|
|
2948
|
+
return yield response.json();
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
const useFavouriteSubscriptions = () => {
|
|
2952
|
+
const {
|
|
2953
|
+
orchestratorApiBaseUrl
|
|
2954
|
+
} = useContext(OrchestratorConfigContext);
|
|
2955
|
+
const {
|
|
2956
|
+
data,
|
|
2957
|
+
isLoading
|
|
2958
|
+
} = useQuery(['favouriteSubscriptions'], () => getFavouriteSubscriptions(orchestratorApiBaseUrl));
|
|
2959
|
+
const initialData = {
|
|
2960
|
+
buttonName: 'Show all favourites',
|
|
2961
|
+
items: [],
|
|
2962
|
+
title: 'Favourite Subscriptions',
|
|
2963
|
+
type: 'subscription'
|
|
3060
2964
|
};
|
|
2965
|
+
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
2966
|
+
items: data
|
|
2967
|
+
});
|
|
3061
2968
|
};
|
|
3062
|
-
const
|
|
3063
|
-
navigationHeight,
|
|
3064
|
-
getAppLogo,
|
|
3065
|
-
handleLogoutClick
|
|
3066
|
-
}) => {
|
|
2969
|
+
const useProcessesAttention = () => {
|
|
3067
2970
|
const {
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
children: jsx(EnvironmentBadge, {})
|
|
3084
|
-
})]
|
|
3085
|
-
}), jsx(EuiHeaderSection, {
|
|
3086
|
-
children: jsxs(EuiHeaderSectionItem, {
|
|
3087
|
-
children: [jsxs(EuiBadgeGroup, Object.assign({
|
|
3088
|
-
css: {
|
|
3089
|
-
marginRight: multiplyByBaseUnit(2)
|
|
3090
|
-
}
|
|
3091
|
-
}, {
|
|
3092
|
-
children: [jsx(EngineStatusBadge, {}), jsx(FailedTasksBadge, {})]
|
|
3093
|
-
})), jsx(EuiButtonIcon, {
|
|
3094
|
-
"aria-label": "Logout",
|
|
3095
|
-
display: "empty",
|
|
3096
|
-
iconType: () => jsx(LogoutIcon, {
|
|
3097
|
-
color: theme.colors.emptyShade
|
|
3098
|
-
}),
|
|
3099
|
-
css: {
|
|
3100
|
-
width: 48,
|
|
3101
|
-
height: 48
|
|
3102
|
-
},
|
|
3103
|
-
color: "ghost",
|
|
3104
|
-
onClick: () => handleLogoutClick()
|
|
3105
|
-
})]
|
|
3106
|
-
})
|
|
3107
|
-
})]
|
|
3108
|
-
}));
|
|
2971
|
+
orchestratorApiBaseUrl
|
|
2972
|
+
} = useContext(OrchestratorConfigContext);
|
|
2973
|
+
const {
|
|
2974
|
+
data,
|
|
2975
|
+
isLoading
|
|
2976
|
+
} = useQuery(['processesAttention'], () => getProcessesNeedingAttention(orchestratorApiBaseUrl));
|
|
2977
|
+
const initialData = {
|
|
2978
|
+
type: 'process',
|
|
2979
|
+
title: 'Processes that need attention',
|
|
2980
|
+
items: [],
|
|
2981
|
+
buttonName: 'Show all active processes'
|
|
2982
|
+
};
|
|
2983
|
+
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
2984
|
+
items: data
|
|
2985
|
+
});
|
|
3109
2986
|
};
|
|
3110
|
-
const
|
|
2987
|
+
const useRecentProcesses = () => {
|
|
3111
2988
|
const {
|
|
3112
|
-
|
|
2989
|
+
orchestratorApiBaseUrl
|
|
3113
2990
|
} = useContext(OrchestratorConfigContext);
|
|
2991
|
+
const {
|
|
2992
|
+
data,
|
|
2993
|
+
isLoading
|
|
2994
|
+
} = useQuery(['recentProcesses'], () => getRecentProcesses(orchestratorApiBaseUrl));
|
|
2995
|
+
const initialData = {
|
|
2996
|
+
type: 'process',
|
|
2997
|
+
title: 'Recently completed processes',
|
|
2998
|
+
items: [],
|
|
2999
|
+
buttonName: 'Show all completed processes'
|
|
3000
|
+
};
|
|
3001
|
+
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
3002
|
+
items: data
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
const SubscriptionStatusBadge = ({
|
|
3007
|
+
subscriptionStatus
|
|
3008
|
+
}) => {
|
|
3114
3009
|
const {
|
|
3115
3010
|
theme,
|
|
3116
3011
|
toSecondaryColor
|
|
3117
3012
|
} = useOrchestratorTheme();
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
};
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3013
|
+
const getBadgeColorFromSubscriptionStatus = status => {
|
|
3014
|
+
const {
|
|
3015
|
+
primary,
|
|
3016
|
+
darkestShade,
|
|
3017
|
+
lightShade,
|
|
3018
|
+
primaryText,
|
|
3019
|
+
success,
|
|
3020
|
+
successText
|
|
3021
|
+
} = theme.colors;
|
|
3022
|
+
switch (status) {
|
|
3023
|
+
case 'active':
|
|
3024
|
+
return {
|
|
3025
|
+
badgeColor: toSecondaryColor(success),
|
|
3026
|
+
textColor: successText
|
|
3027
|
+
};
|
|
3028
|
+
case 'terminated':
|
|
3029
|
+
return {
|
|
3030
|
+
badgeColor: lightShade,
|
|
3031
|
+
textColor: darkestShade
|
|
3032
|
+
};
|
|
3033
|
+
default:
|
|
3034
|
+
return {
|
|
3035
|
+
badgeColor: toSecondaryColor(primary),
|
|
3036
|
+
textColor: primaryText
|
|
3037
|
+
};
|
|
3038
|
+
}
|
|
3039
|
+
};
|
|
3137
3040
|
const {
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
return jsx(
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
iconType: () => jsx(StatusDotIcon, {
|
|
3145
|
-
color: theme.colors.success
|
|
3146
|
-
})
|
|
3041
|
+
badgeColor,
|
|
3042
|
+
textColor
|
|
3043
|
+
} = getBadgeColorFromSubscriptionStatus(subscriptionStatus);
|
|
3044
|
+
return jsx(Badge, Object.assign({
|
|
3045
|
+
textColor: textColor,
|
|
3046
|
+
color: badgeColor
|
|
3147
3047
|
}, {
|
|
3148
|
-
children:
|
|
3048
|
+
children: subscriptionStatus
|
|
3049
|
+
}));
|
|
3050
|
+
};
|
|
3051
|
+
|
|
3052
|
+
const HeaderBadge = _a => {
|
|
3053
|
+
var {
|
|
3054
|
+
children
|
|
3055
|
+
} = _a,
|
|
3056
|
+
restProps = __rest(_a, ["children"]);
|
|
3057
|
+
const css = restProps.iconType ? {
|
|
3058
|
+
height: 24,
|
|
3059
|
+
display: 'flex',
|
|
3060
|
+
paddingLeft: 0
|
|
3061
|
+
} : {
|
|
3062
|
+
height: 24,
|
|
3063
|
+
display: 'flex'
|
|
3064
|
+
};
|
|
3065
|
+
return jsx(Badge, Object.assign({}, restProps, {
|
|
3066
|
+
css: css
|
|
3067
|
+
}, {
|
|
3068
|
+
children: children
|
|
3149
3069
|
}));
|
|
3150
3070
|
};
|
|
3071
|
+
|
|
3072
|
+
const XCircleFill = ({
|
|
3073
|
+
width: _width = 24,
|
|
3074
|
+
height: _height = 24,
|
|
3075
|
+
color: _color = '#000000'
|
|
3076
|
+
}) => jsxs("svg", Object.assign({
|
|
3077
|
+
width: _width,
|
|
3078
|
+
height: _height,
|
|
3079
|
+
viewBox: "0 0 24 24",
|
|
3080
|
+
version: "1.1",
|
|
3081
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3082
|
+
}, {
|
|
3083
|
+
children: [jsx("title", {
|
|
3084
|
+
children: "icon/x-circle-fill"
|
|
3085
|
+
}), jsx("g", Object.assign({
|
|
3086
|
+
id: "Symbols",
|
|
3087
|
+
stroke: "none",
|
|
3088
|
+
strokeWidth: "1",
|
|
3089
|
+
fill: "none",
|
|
3090
|
+
fillRule: "evenodd"
|
|
3091
|
+
}, {
|
|
3092
|
+
children: jsx("g", Object.assign({
|
|
3093
|
+
id: "icon/x-circle-fill",
|
|
3094
|
+
fill: _color
|
|
3095
|
+
}, {
|
|
3096
|
+
children: jsx("path", {
|
|
3097
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
|
|
3098
|
+
id: "Shape"
|
|
3099
|
+
})
|
|
3100
|
+
}))
|
|
3101
|
+
}))]
|
|
3102
|
+
}));
|
|
3103
|
+
|
|
3104
|
+
const getTaskCountsSummary = processStatusCounts => {
|
|
3105
|
+
const failed = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.failed) || 0;
|
|
3106
|
+
const inconsistentData = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.inconsistent_data) || 0;
|
|
3107
|
+
const apiUnavailable = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.api_unavailable) || 0;
|
|
3108
|
+
return {
|
|
3109
|
+
failed,
|
|
3110
|
+
inconsistentData,
|
|
3111
|
+
apiUnavailable,
|
|
3112
|
+
total: failed + inconsistentData + apiUnavailable
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3151
3115
|
const FailedTasksBadge = () => {
|
|
3152
3116
|
const {
|
|
3153
3117
|
theme
|
|
3154
3118
|
} = useOrchestratorTheme();
|
|
3155
|
-
|
|
3156
|
-
|
|
3119
|
+
const {
|
|
3120
|
+
data: processStatusCounts
|
|
3121
|
+
} = useProcessStatusCountsQuery();
|
|
3122
|
+
const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
|
|
3123
|
+
console.log(processStatusCounts);
|
|
3157
3124
|
return jsx(EuiToolTip, Object.assign({
|
|
3158
3125
|
position: "bottom",
|
|
3159
3126
|
content: jsxs(Fragment, {
|
|
@@ -3178,294 +3145,731 @@ const FailedTasksBadge = () => {
|
|
|
3178
3145
|
}));
|
|
3179
3146
|
};
|
|
3180
3147
|
|
|
3181
|
-
const
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
isOpenOnMobile: false,
|
|
3186
|
-
items: [{
|
|
3187
|
-
renderItem: () => jsxs(Fragment, {
|
|
3188
|
-
children: [jsx(EuiButton, Object.assign({
|
|
3189
|
-
onClick: e => {
|
|
3190
|
-
e.preventDefault();
|
|
3191
|
-
routeTo('/new-process');
|
|
3192
|
-
},
|
|
3193
|
-
iconType: "plus",
|
|
3194
|
-
fullWidth: true
|
|
3195
|
-
}, {
|
|
3196
|
-
children: "New Process"
|
|
3197
|
-
})), jsx(EuiSpacer, {
|
|
3198
|
-
size: "m"
|
|
3199
|
-
})]
|
|
3200
|
-
}),
|
|
3201
|
-
name: 'Menu',
|
|
3202
|
-
id: 1,
|
|
3203
|
-
items: [{
|
|
3204
|
-
name: 'Start',
|
|
3205
|
-
id: 2,
|
|
3206
|
-
onClick: e => {
|
|
3207
|
-
e.preventDefault();
|
|
3208
|
-
routeTo('/');
|
|
3209
|
-
},
|
|
3210
|
-
href: '/'
|
|
3211
|
-
}, {
|
|
3212
|
-
name: 'Subscriptions',
|
|
3213
|
-
id: 3,
|
|
3214
|
-
// TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
|
|
3215
|
-
onClick: e => {
|
|
3216
|
-
e.preventDefault();
|
|
3217
|
-
routeTo('/subscriptions');
|
|
3218
|
-
},
|
|
3219
|
-
href: '/subscriptions'
|
|
3220
|
-
}]
|
|
3221
|
-
}]
|
|
3222
|
-
});
|
|
3223
|
-
|
|
3224
|
-
const OrchestratorPageTemplate = ({
|
|
3225
|
-
children,
|
|
3226
|
-
routeTo,
|
|
3227
|
-
getAppLogo
|
|
3228
|
-
}) => {
|
|
3148
|
+
const EnvironmentBadge = () => {
|
|
3149
|
+
const {
|
|
3150
|
+
environmentName
|
|
3151
|
+
} = useContext(OrchestratorConfigContext);
|
|
3229
3152
|
const {
|
|
3230
3153
|
theme,
|
|
3231
|
-
|
|
3154
|
+
toSecondaryColor
|
|
3232
3155
|
} = useOrchestratorTheme();
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
getAppLogo: getAppLogo,
|
|
3238
|
-
navigationHeight: navigationHeight,
|
|
3239
|
-
handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
|
|
3240
|
-
}), jsxs(EuiPageTemplate, Object.assign({
|
|
3241
|
-
panelled: false,
|
|
3242
|
-
grow: false,
|
|
3243
|
-
contentBorder: false,
|
|
3244
|
-
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
3245
|
-
restrictWidth: false
|
|
3156
|
+
if (environmentName !== Environment.PRODUCTION) {
|
|
3157
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3158
|
+
color: "warning",
|
|
3159
|
+
textColor: theme.colors.shadow
|
|
3246
3160
|
}, {
|
|
3247
|
-
children:
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
css: {
|
|
3257
|
-
backgroundColor: theme.colors.emptyShade
|
|
3258
|
-
}
|
|
3259
|
-
}, {
|
|
3260
|
-
children: children
|
|
3261
|
-
}))]
|
|
3262
|
-
}))]
|
|
3263
|
-
});
|
|
3264
|
-
};
|
|
3265
|
-
|
|
3266
|
-
var classof$1 = classof$4;
|
|
3267
|
-
|
|
3268
|
-
var $String = String;
|
|
3269
|
-
|
|
3270
|
-
var toString$2 = function (argument) {
|
|
3271
|
-
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
3272
|
-
return $String(argument);
|
|
3161
|
+
children: environmentName
|
|
3162
|
+
}));
|
|
3163
|
+
}
|
|
3164
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3165
|
+
color: toSecondaryColor(theme.colors.primary),
|
|
3166
|
+
textColor: theme.colors.primary
|
|
3167
|
+
}, {
|
|
3168
|
+
children: environmentName
|
|
3169
|
+
}));
|
|
3273
3170
|
};
|
|
3274
3171
|
|
|
3275
|
-
|
|
3172
|
+
const StatusDotIcon = ({
|
|
3173
|
+
width: _width = 24,
|
|
3174
|
+
height: _height = 24,
|
|
3175
|
+
color: _color = '#000000'
|
|
3176
|
+
}) => jsxs("svg", Object.assign({
|
|
3177
|
+
width: _width,
|
|
3178
|
+
height: _height,
|
|
3179
|
+
viewBox: "0 0 24 24",
|
|
3180
|
+
version: "1.1",
|
|
3181
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3182
|
+
}, {
|
|
3183
|
+
children: [jsx("title", {
|
|
3184
|
+
children: "icon/statusdot"
|
|
3185
|
+
}), jsx("g", Object.assign({
|
|
3186
|
+
id: "Symbols",
|
|
3187
|
+
stroke: "none",
|
|
3188
|
+
strokeWidth: "1",
|
|
3189
|
+
fill: "none",
|
|
3190
|
+
fillRule: "evenodd"
|
|
3191
|
+
}, {
|
|
3192
|
+
children: jsxs("g", Object.assign({
|
|
3193
|
+
id: "icon/statusdot",
|
|
3194
|
+
fill: _color,
|
|
3195
|
+
fillRule: "nonzero"
|
|
3196
|
+
}, {
|
|
3197
|
+
children: [jsx("circle", {
|
|
3198
|
+
id: "Oval",
|
|
3199
|
+
opacity: "0.25",
|
|
3200
|
+
cx: "12",
|
|
3201
|
+
cy: "12",
|
|
3202
|
+
r: "8"
|
|
3203
|
+
}), jsx("circle", {
|
|
3204
|
+
id: "Oval",
|
|
3205
|
+
cx: "12",
|
|
3206
|
+
cy: "12",
|
|
3207
|
+
r: "4"
|
|
3208
|
+
})]
|
|
3209
|
+
}))
|
|
3210
|
+
}))]
|
|
3211
|
+
}));
|
|
3276
3212
|
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3213
|
+
const EngineStatusBadge = () => {
|
|
3214
|
+
const {
|
|
3215
|
+
theme
|
|
3216
|
+
} = useOrchestratorTheme();
|
|
3217
|
+
const {
|
|
3218
|
+
data: engineStatus
|
|
3219
|
+
} = useEngineStatusQuery();
|
|
3220
|
+
const engineStatusText = (engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status) ? `Engine is ${engineStatus.global_status}` : 'Engine status is unavailable';
|
|
3221
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3222
|
+
color: theme.colors.emptyShade,
|
|
3223
|
+
textColor: theme.colors.shadow,
|
|
3224
|
+
iconType: () => jsx(StatusDotIcon, {
|
|
3225
|
+
color: theme.colors.success
|
|
3226
|
+
})
|
|
3227
|
+
}, {
|
|
3228
|
+
children: engineStatusText
|
|
3229
|
+
}));
|
|
3291
3230
|
};
|
|
3292
3231
|
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3232
|
+
const LogoutIcon = ({
|
|
3233
|
+
width: _width = 24,
|
|
3234
|
+
height: _height = 24,
|
|
3235
|
+
color: _color = '#000000'
|
|
3236
|
+
}) => jsxs("svg", Object.assign({
|
|
3237
|
+
width: _width,
|
|
3238
|
+
height: _height,
|
|
3239
|
+
viewBox: "0 0 24 24",
|
|
3240
|
+
version: "1.1",
|
|
3241
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3242
|
+
}, {
|
|
3243
|
+
children: [jsx("title", {
|
|
3244
|
+
children: "icon/logout"
|
|
3245
|
+
}), jsx("g", Object.assign({
|
|
3246
|
+
id: "Symbols",
|
|
3247
|
+
stroke: "none",
|
|
3248
|
+
strokeWidth: "1",
|
|
3249
|
+
fill: "none",
|
|
3250
|
+
fillRule: "evenodd"
|
|
3251
|
+
}, {
|
|
3252
|
+
children: jsx("g", Object.assign({
|
|
3253
|
+
id: "icon/logout",
|
|
3254
|
+
fill: _color,
|
|
3255
|
+
fillRule: "nonzero"
|
|
3256
|
+
}, {
|
|
3257
|
+
children: jsx("path", {
|
|
3258
|
+
d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
|
|
3259
|
+
id: "Combined-Shape"
|
|
3260
|
+
})
|
|
3261
|
+
}))
|
|
3262
|
+
}))]
|
|
3263
|
+
}));
|
|
3299
3264
|
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3265
|
+
const OrchestratorPageHeader = ({
|
|
3266
|
+
navigationHeight,
|
|
3267
|
+
getAppLogo,
|
|
3268
|
+
handleLogoutClick
|
|
3269
|
+
}) => {
|
|
3270
|
+
const {
|
|
3271
|
+
theme,
|
|
3272
|
+
multiplyByBaseUnit
|
|
3273
|
+
} = useOrchestratorTheme();
|
|
3274
|
+
return jsxs(EuiHeader, Object.assign({
|
|
3275
|
+
css: {
|
|
3276
|
+
backgroundColor: theme.colors.primary,
|
|
3277
|
+
height: navigationHeight
|
|
3278
|
+
}
|
|
3279
|
+
}, {
|
|
3280
|
+
children: [jsxs(EuiHeaderSection, {
|
|
3281
|
+
children: [jsx(EuiHeaderSectionItem, {
|
|
3282
|
+
children: jsx(EuiHeaderLogo, {
|
|
3283
|
+
iconType: () => getAppLogo(navigationHeight)
|
|
3284
|
+
})
|
|
3285
|
+
}), jsx(EuiHeaderSectionItem, {
|
|
3286
|
+
children: jsx(EnvironmentBadge, {})
|
|
3287
|
+
})]
|
|
3288
|
+
}), jsx(EuiHeaderSection, {
|
|
3289
|
+
children: jsxs(EuiHeaderSectionItem, {
|
|
3290
|
+
children: [jsxs(EuiBadgeGroup, Object.assign({
|
|
3291
|
+
css: {
|
|
3292
|
+
marginRight: multiplyByBaseUnit(2)
|
|
3293
|
+
}
|
|
3294
|
+
}, {
|
|
3295
|
+
children: [jsx(EngineStatusBadge, {}), jsx(FailedTasksBadge, {})]
|
|
3296
|
+
})), jsx(EuiButtonIcon, {
|
|
3297
|
+
"aria-label": "Logout",
|
|
3298
|
+
display: "empty",
|
|
3299
|
+
iconType: () => jsx(LogoutIcon, {
|
|
3300
|
+
color: theme.colors.emptyShade
|
|
3301
|
+
}),
|
|
3302
|
+
css: {
|
|
3303
|
+
width: 48,
|
|
3304
|
+
height: 48
|
|
3305
|
+
},
|
|
3306
|
+
color: "ghost",
|
|
3307
|
+
onClick: () => handleLogoutClick()
|
|
3308
|
+
})]
|
|
3309
|
+
})
|
|
3310
|
+
})]
|
|
3311
|
+
}));
|
|
3304
3312
|
};
|
|
3305
3313
|
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3314
|
+
const OrchestratorSidebar = ({
|
|
3315
|
+
routeTo
|
|
3316
|
+
}) => jsx(EuiSideNav, {
|
|
3317
|
+
mobileTitle: "Nav Items",
|
|
3318
|
+
isOpenOnMobile: false,
|
|
3319
|
+
items: [{
|
|
3320
|
+
renderItem: () => jsxs(Fragment, {
|
|
3321
|
+
children: [jsx(EuiButton, Object.assign({
|
|
3322
|
+
onClick: e => {
|
|
3323
|
+
e.preventDefault();
|
|
3324
|
+
routeTo('/new-process');
|
|
3325
|
+
},
|
|
3326
|
+
iconType: "plus",
|
|
3327
|
+
fullWidth: true
|
|
3328
|
+
}, {
|
|
3329
|
+
children: "New Process"
|
|
3330
|
+
})), jsx(EuiSpacer, {
|
|
3331
|
+
size: "m"
|
|
3332
|
+
})]
|
|
3333
|
+
}),
|
|
3334
|
+
name: 'Menu',
|
|
3335
|
+
id: 1,
|
|
3336
|
+
items: [{
|
|
3337
|
+
name: 'Start',
|
|
3338
|
+
id: 2,
|
|
3339
|
+
onClick: e => {
|
|
3340
|
+
e.preventDefault();
|
|
3341
|
+
routeTo('/');
|
|
3342
|
+
},
|
|
3343
|
+
href: '/'
|
|
3344
|
+
}, {
|
|
3345
|
+
name: 'Subscriptions',
|
|
3346
|
+
id: 3,
|
|
3347
|
+
// TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
|
|
3348
|
+
onClick: e => {
|
|
3349
|
+
e.preventDefault();
|
|
3350
|
+
routeTo('/subscriptions');
|
|
3351
|
+
},
|
|
3352
|
+
href: '/subscriptions'
|
|
3353
|
+
}]
|
|
3354
|
+
}]
|
|
3355
|
+
});
|
|
3335
3356
|
|
|
3336
|
-
|
|
3337
|
-
|
|
3357
|
+
const OrchestratorPageTemplate = ({
|
|
3358
|
+
children,
|
|
3359
|
+
routeTo,
|
|
3360
|
+
getAppLogo
|
|
3361
|
+
}) => {
|
|
3362
|
+
const {
|
|
3363
|
+
theme,
|
|
3364
|
+
multiplyByBaseUnit
|
|
3365
|
+
} = useOrchestratorTheme();
|
|
3366
|
+
const [isSideMenuVisible, setIsSideMenuVisible] = useState(true);
|
|
3367
|
+
const navigationHeight = multiplyByBaseUnit(3);
|
|
3368
|
+
return jsxs(Fragment, {
|
|
3369
|
+
children: [jsx(OrchestratorPageHeader, {
|
|
3370
|
+
getAppLogo: getAppLogo,
|
|
3371
|
+
navigationHeight: navigationHeight,
|
|
3372
|
+
handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
|
|
3373
|
+
}), jsxs(EuiPageTemplate, Object.assign({
|
|
3374
|
+
panelled: false,
|
|
3375
|
+
grow: false,
|
|
3376
|
+
contentBorder: false,
|
|
3377
|
+
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
3378
|
+
restrictWidth: false
|
|
3379
|
+
}, {
|
|
3380
|
+
children: [isSideMenuVisible && jsx(EuiPageTemplate.Sidebar, Object.assign({
|
|
3381
|
+
css: {
|
|
3382
|
+
backgroundColor: theme.colors.body
|
|
3383
|
+
}
|
|
3384
|
+
}, {
|
|
3385
|
+
children: jsx(OrchestratorSidebar, {
|
|
3386
|
+
routeTo: routeTo
|
|
3387
|
+
})
|
|
3388
|
+
})), jsx(EuiPageTemplate.Section, Object.assign({
|
|
3389
|
+
css: {
|
|
3390
|
+
backgroundColor: theme.colors.emptyShade
|
|
3391
|
+
}
|
|
3392
|
+
}, {
|
|
3393
|
+
children: children
|
|
3394
|
+
}))]
|
|
3395
|
+
}))]
|
|
3396
|
+
});
|
|
3338
3397
|
};
|
|
3339
3398
|
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3399
|
+
const FrequentlyUsed = ({
|
|
3400
|
+
values
|
|
3401
|
+
}) => {
|
|
3402
|
+
return jsx(EuiFlexGroup, Object.assign({
|
|
3403
|
+
wrap: true,
|
|
3404
|
+
gutterSize: "m"
|
|
3405
|
+
}, {
|
|
3406
|
+
children: values.map((value, index) => jsx(EuiFlexItem, Object.assign({
|
|
3407
|
+
grow: false
|
|
3408
|
+
}, {
|
|
3409
|
+
children: jsx(EuiButton, Object.assign({
|
|
3410
|
+
size: "xs",
|
|
3411
|
+
style: {
|
|
3412
|
+
minWidth: 0
|
|
3413
|
+
}
|
|
3414
|
+
}, {
|
|
3415
|
+
children: value
|
|
3416
|
+
}))
|
|
3417
|
+
}), index))
|
|
3418
|
+
}));
|
|
3419
|
+
};
|
|
3343
3420
|
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3421
|
+
const ListItemStartPage = ({
|
|
3422
|
+
item,
|
|
3423
|
+
type
|
|
3424
|
+
}) => {
|
|
3425
|
+
const [hoverState, setHoverState] = useState(false);
|
|
3426
|
+
console.log(item);
|
|
3427
|
+
console.log(type);
|
|
3428
|
+
const renderItem = (item, type) => {
|
|
3429
|
+
if (type === 'subscription') {
|
|
3430
|
+
item = item;
|
|
3431
|
+
return jsxs(EuiFlexItem, {
|
|
3432
|
+
children: [jsx(EuiTextColor, Object.assign({
|
|
3433
|
+
color: hoverState ? '#397dc2' : 'black',
|
|
3434
|
+
style: {
|
|
3435
|
+
fontWeight: 500,
|
|
3436
|
+
transition: '0.2s'
|
|
3437
|
+
}
|
|
3438
|
+
}, {
|
|
3439
|
+
children: item.product.name
|
|
3440
|
+
})), jsx(EuiTextColor, Object.assign({
|
|
3441
|
+
style: {
|
|
3442
|
+
fontWeight: 400
|
|
3443
|
+
}
|
|
3444
|
+
}, {
|
|
3445
|
+
children: item.subscription_id.slice(0, 8)
|
|
3446
|
+
}))]
|
|
3447
|
+
});
|
|
3448
|
+
} else if (type === 'process') {
|
|
3449
|
+
item = item;
|
|
3450
|
+
const date = new Date(item.last_modified_at * 1000);
|
|
3451
|
+
const formattedDate = moment(date).format('DD-MM-YYYY, HH:mm');
|
|
3452
|
+
return jsxs(EuiFlexItem, {
|
|
3453
|
+
children: [jsx(EuiTextColor, Object.assign({
|
|
3454
|
+
color: hoverState ? '#397dc2' : 'black',
|
|
3455
|
+
style: {
|
|
3456
|
+
fontWeight: 500,
|
|
3457
|
+
transition: '0.2s'
|
|
3458
|
+
}
|
|
3459
|
+
}, {
|
|
3460
|
+
children: item.workflow
|
|
3461
|
+
})), jsxs(EuiTextColor, Object.assign({
|
|
3462
|
+
style: {
|
|
3463
|
+
fontWeight: 400
|
|
3464
|
+
}
|
|
3465
|
+
}, {
|
|
3466
|
+
children: [formattedDate, " for", ' ', jsx("span", Object.assign({
|
|
3467
|
+
style: {
|
|
3468
|
+
color: '#397dc2'
|
|
3469
|
+
}
|
|
3470
|
+
}, {
|
|
3471
|
+
children: "KLM"
|
|
3472
|
+
}))]
|
|
3473
|
+
}))]
|
|
3474
|
+
});
|
|
3392
3475
|
}
|
|
3393
|
-
|
|
3394
|
-
|
|
3476
|
+
};
|
|
3477
|
+
return jsx(Link, Object.assign({
|
|
3478
|
+
href: `/subscriptions/${'subscription_id' in item ? item.subscription_id : ''}`
|
|
3479
|
+
}, {
|
|
3480
|
+
children: jsxs(EuiFlexGroup, Object.assign({
|
|
3481
|
+
style: {
|
|
3482
|
+
cursor: 'pointer',
|
|
3483
|
+
paddingBlock: 10
|
|
3484
|
+
},
|
|
3485
|
+
onMouseOver: () => setHoverState(true),
|
|
3486
|
+
onMouseLeave: () => setHoverState(false)
|
|
3487
|
+
}, {
|
|
3488
|
+
children: [renderItem(item, type), jsx(EuiFlexItem, Object.assign({
|
|
3489
|
+
grow: false,
|
|
3490
|
+
style: {
|
|
3491
|
+
display: hoverState ? 'block' : 'none'
|
|
3492
|
+
}
|
|
3493
|
+
}, {
|
|
3494
|
+
children: jsx(EuiIcon, {
|
|
3495
|
+
type: "sortRight",
|
|
3496
|
+
color: "primary"
|
|
3497
|
+
})
|
|
3498
|
+
}))]
|
|
3499
|
+
}))
|
|
3500
|
+
}));
|
|
3395
3501
|
};
|
|
3396
3502
|
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3503
|
+
function ListStartPage({
|
|
3504
|
+
list
|
|
3505
|
+
}) {
|
|
3506
|
+
return list && jsx(EuiFlexItem, Object.assign({
|
|
3507
|
+
style: {
|
|
3508
|
+
minWidth: 300
|
|
3509
|
+
}
|
|
3510
|
+
}, {
|
|
3511
|
+
children: jsxs(EuiPanel, Object.assign({
|
|
3512
|
+
hasShadow: false,
|
|
3513
|
+
hasBorder: true,
|
|
3514
|
+
paddingSize: "l"
|
|
3515
|
+
}, {
|
|
3516
|
+
children: [jsx("p", Object.assign({
|
|
3517
|
+
style: {
|
|
3518
|
+
fontWeight: 600
|
|
3519
|
+
}
|
|
3520
|
+
}, {
|
|
3521
|
+
children: list.title
|
|
3522
|
+
})), jsx(EuiSpacer, {
|
|
3523
|
+
size: "m"
|
|
3524
|
+
}), list.items.map((item, index) => jsxs(Fragment, {
|
|
3525
|
+
children: [jsx(ListItemStartPage, {
|
|
3526
|
+
item: item,
|
|
3527
|
+
type: list.type
|
|
3528
|
+
}), index === list.items.length - 1 ? null : jsx(EuiHorizontalRule, {
|
|
3529
|
+
margin: "none"
|
|
3530
|
+
})]
|
|
3531
|
+
})), jsx(EuiSpacer, {
|
|
3532
|
+
size: "m"
|
|
3533
|
+
}), jsx(EuiButton, Object.assign({
|
|
3534
|
+
fullWidth: true
|
|
3535
|
+
}, {
|
|
3536
|
+
children: list.buttonName
|
|
3537
|
+
}))]
|
|
3538
|
+
}))
|
|
3539
|
+
}));
|
|
3540
|
+
}
|
|
3402
3541
|
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3542
|
+
const MultiListSection = () => {
|
|
3543
|
+
const favouriteSubscriptionsList = useFavouriteSubscriptions();
|
|
3544
|
+
const processesAttentionList = useProcessesAttention();
|
|
3545
|
+
const completedProcessesList = useRecentProcesses();
|
|
3546
|
+
return jsxs(EuiFlexGroup, Object.assign({
|
|
3547
|
+
wrap: true
|
|
3548
|
+
}, {
|
|
3549
|
+
children: [jsx(ListStartPage, {
|
|
3550
|
+
list: favouriteSubscriptionsList
|
|
3551
|
+
}), jsx(ListStartPage, {
|
|
3552
|
+
list: processesAttentionList
|
|
3553
|
+
}), jsx(ListStartPage, {
|
|
3554
|
+
list: completedProcessesList
|
|
3555
|
+
})]
|
|
3556
|
+
}));
|
|
3408
3557
|
};
|
|
3409
3558
|
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
return
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3559
|
+
const NewProcessPanel = () => {
|
|
3560
|
+
const [value, setValue] = useState('');
|
|
3561
|
+
const onChange = e => {
|
|
3562
|
+
setValue(e.target.value);
|
|
3563
|
+
};
|
|
3564
|
+
const frequentlyUsedValues = ['IP Prefix', 'SN8 LightPath', 'NL8 MSC', 'NL8 Service Port 100G', 'SN8 AGGSP'];
|
|
3565
|
+
return jsxs(EuiPanel, Object.assign({
|
|
3566
|
+
hasShadow: false,
|
|
3567
|
+
color: "subdued",
|
|
3568
|
+
paddingSize: "l"
|
|
3569
|
+
}, {
|
|
3570
|
+
children: [jsx(EuiText, {
|
|
3571
|
+
children: jsx("b", {
|
|
3572
|
+
children: "Start a new process"
|
|
3573
|
+
})
|
|
3574
|
+
}), jsx(EuiSpacer, {
|
|
3575
|
+
size: "m"
|
|
3576
|
+
}), jsx(EuiFieldSearch, {
|
|
3577
|
+
fullWidth: true,
|
|
3578
|
+
placeholder: "Search and select process",
|
|
3579
|
+
value: value,
|
|
3580
|
+
onChange: e => onChange(e),
|
|
3581
|
+
"aria-label": "Search and select process"
|
|
3582
|
+
}), jsx(EuiSpacer, {
|
|
3583
|
+
size: "m"
|
|
3584
|
+
}), jsx(EuiTextColor, Object.assign({
|
|
3585
|
+
color: "subdued"
|
|
3586
|
+
}, {
|
|
3587
|
+
children: "Frequently used:"
|
|
3588
|
+
})), jsx(EuiSpacer, {
|
|
3589
|
+
size: "s"
|
|
3590
|
+
}), jsx(FrequentlyUsed, {
|
|
3591
|
+
values: frequentlyUsedValues
|
|
3592
|
+
})]
|
|
3593
|
+
}));
|
|
3420
3594
|
};
|
|
3421
3595
|
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3596
|
+
const totalStats = [{
|
|
3597
|
+
icon: 'kubernetesPod',
|
|
3598
|
+
name: 'subscriptions',
|
|
3599
|
+
value: 24864,
|
|
3600
|
+
color: 'primary'
|
|
3601
|
+
}, {
|
|
3602
|
+
icon: 'error',
|
|
3603
|
+
name: 'processes failed',
|
|
3604
|
+
value: 462252,
|
|
3605
|
+
color: 'danger'
|
|
3606
|
+
}, {
|
|
3607
|
+
icon: 'checkInCircleFilled',
|
|
3608
|
+
name: 'processes completed',
|
|
3609
|
+
value: 1353632,
|
|
3610
|
+
color: 'success'
|
|
3611
|
+
}];
|
|
3612
|
+
const StatCards = () => {
|
|
3613
|
+
const [stats] = useState(totalStats);
|
|
3614
|
+
const {
|
|
3615
|
+
theme
|
|
3616
|
+
} = useOrchestratorTheme();
|
|
3617
|
+
return jsx(EuiFlexGroup, Object.assign({
|
|
3618
|
+
wrap: true
|
|
3619
|
+
}, {
|
|
3620
|
+
children: stats.map((stat, index) => jsx(EuiFlexItem, {
|
|
3621
|
+
children: jsx(EuiPanel, Object.assign({
|
|
3622
|
+
hasShadow: false,
|
|
3623
|
+
color: "subdued",
|
|
3624
|
+
paddingSize: "l"
|
|
3625
|
+
}, {
|
|
3626
|
+
children: jsxs(EuiFlexGroup, {
|
|
3627
|
+
children: [jsx(EuiFlexItem, Object.assign({
|
|
3628
|
+
grow: false
|
|
3629
|
+
}, {
|
|
3630
|
+
children: jsx(EuiAvatar, {
|
|
3631
|
+
iconSize: "l",
|
|
3632
|
+
size: "xl",
|
|
3633
|
+
type: "space",
|
|
3634
|
+
name: stat.name,
|
|
3635
|
+
style: {
|
|
3636
|
+
maxHeight: 55,
|
|
3637
|
+
maxWidth: 55
|
|
3638
|
+
},
|
|
3639
|
+
iconType: stat.icon,
|
|
3640
|
+
iconColor: theme.colors.ghost,
|
|
3641
|
+
color: theme.colors[stat.color]
|
|
3642
|
+
})
|
|
3643
|
+
})), jsxs(EuiFlexItem, {
|
|
3644
|
+
children: [jsx(EuiText, Object.assign({
|
|
3645
|
+
color: "subdued"
|
|
3646
|
+
}, {
|
|
3647
|
+
children: jsxs("h4", Object.assign({
|
|
3648
|
+
style: {
|
|
3649
|
+
fontWeight: 300
|
|
3650
|
+
}
|
|
3651
|
+
}, {
|
|
3652
|
+
children: ["Total ", stat.name]
|
|
3653
|
+
}))
|
|
3654
|
+
})), jsx(EuiText, {
|
|
3655
|
+
children: jsx("h2", Object.assign({
|
|
3656
|
+
style: {
|
|
3657
|
+
fontWeight: 500
|
|
3658
|
+
}
|
|
3659
|
+
}, {
|
|
3660
|
+
children: stat.value.toLocaleString('de-DE')
|
|
3661
|
+
}))
|
|
3662
|
+
})]
|
|
3663
|
+
})]
|
|
3664
|
+
})
|
|
3665
|
+
}))
|
|
3666
|
+
}, index))
|
|
3667
|
+
}));
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
var classof$1 = classof$4;
|
|
3671
|
+
|
|
3672
|
+
var $String = String;
|
|
3673
|
+
|
|
3674
|
+
var toString$4 = function (argument) {
|
|
3675
|
+
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
3676
|
+
return $String(argument);
|
|
3677
|
+
};
|
|
3678
|
+
|
|
3679
|
+
var anObject$1 = anObject$c;
|
|
3680
|
+
|
|
3681
|
+
// `RegExp.prototype.flags` getter implementation
|
|
3682
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3683
|
+
var regexpFlags = function () {
|
|
3684
|
+
var that = anObject$1(this);
|
|
3685
|
+
var result = '';
|
|
3686
|
+
if (that.hasIndices) result += 'd';
|
|
3687
|
+
if (that.global) result += 'g';
|
|
3688
|
+
if (that.ignoreCase) result += 'i';
|
|
3689
|
+
if (that.multiline) result += 'm';
|
|
3690
|
+
if (that.dotAll) result += 's';
|
|
3691
|
+
if (that.unicode) result += 'u';
|
|
3692
|
+
if (that.unicodeSets) result += 'v';
|
|
3693
|
+
if (that.sticky) result += 'y';
|
|
3694
|
+
return result;
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
var call = functionCall;
|
|
3698
|
+
var hasOwn = hasOwnProperty_1;
|
|
3699
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
3700
|
+
var regExpFlags = regexpFlags;
|
|
3701
|
+
|
|
3702
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
3703
|
+
|
|
3704
|
+
var regexpGetFlags = function (R) {
|
|
3705
|
+
var flags = R.flags;
|
|
3706
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
3707
|
+
? call(regExpFlags, R) : flags;
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3711
|
+
var defineBuiltIn = defineBuiltIn$6;
|
|
3712
|
+
var anObject = anObject$c;
|
|
3713
|
+
var $toString = toString$4;
|
|
3714
|
+
var fails$4 = fails$i;
|
|
3715
|
+
var getRegExpFlags = regexpGetFlags;
|
|
3716
|
+
|
|
3717
|
+
var TO_STRING = 'toString';
|
|
3718
|
+
var RegExpPrototype = RegExp.prototype;
|
|
3719
|
+
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3720
|
+
|
|
3721
|
+
var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3722
|
+
// FF44- RegExp#toString has a wrong name
|
|
3723
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
|
|
3724
|
+
|
|
3725
|
+
// `RegExp.prototype.toString` method
|
|
3726
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3727
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3728
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
3729
|
+
var R = anObject(this);
|
|
3730
|
+
var pattern = $toString(R.source);
|
|
3731
|
+
var flags = $toString(getRegExpFlags(R));
|
|
3732
|
+
return '/' + pattern + '/' + flags;
|
|
3733
|
+
}, { unsafe: true });
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
var tryToString = tryToString$5;
|
|
3737
|
+
|
|
3738
|
+
var $TypeError$1 = TypeError;
|
|
3739
|
+
|
|
3740
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
3741
|
+
if (!delete O[P]) throw $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
var toPropertyKey = toPropertyKey$3;
|
|
3745
|
+
var definePropertyModule = objectDefineProperty;
|
|
3746
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3747
|
+
|
|
3748
|
+
var createProperty$1 = function (object, key, value) {
|
|
3749
|
+
var propertyKey = toPropertyKey(key);
|
|
3750
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
3751
|
+
else object[propertyKey] = value;
|
|
3752
|
+
};
|
|
3753
|
+
|
|
3754
|
+
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
3755
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
3756
|
+
var createProperty = createProperty$1;
|
|
3757
|
+
|
|
3758
|
+
var $Array = Array;
|
|
3759
|
+
var max = Math.max;
|
|
3760
|
+
|
|
3761
|
+
var arraySliceSimple = function (O, start, end) {
|
|
3762
|
+
var length = lengthOfArrayLike$1(O);
|
|
3763
|
+
var k = toAbsoluteIndex(start, length);
|
|
3764
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
3765
|
+
var result = $Array(max(fin - k, 0));
|
|
3766
|
+
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
3767
|
+
result.length = n;
|
|
3768
|
+
return result;
|
|
3769
|
+
};
|
|
3770
|
+
|
|
3771
|
+
var arraySlice = arraySliceSimple;
|
|
3772
|
+
|
|
3773
|
+
var floor = Math.floor;
|
|
3774
|
+
|
|
3775
|
+
var mergeSort = function (array, comparefn) {
|
|
3776
|
+
var length = array.length;
|
|
3777
|
+
var middle = floor(length / 2);
|
|
3778
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
3779
|
+
array,
|
|
3780
|
+
mergeSort(arraySlice(array, 0, middle), comparefn),
|
|
3781
|
+
mergeSort(arraySlice(array, middle), comparefn),
|
|
3782
|
+
comparefn
|
|
3783
|
+
);
|
|
3784
|
+
};
|
|
3785
|
+
|
|
3786
|
+
var insertionSort = function (array, comparefn) {
|
|
3787
|
+
var length = array.length;
|
|
3788
|
+
var i = 1;
|
|
3789
|
+
var element, j;
|
|
3790
|
+
|
|
3791
|
+
while (i < length) {
|
|
3792
|
+
j = i;
|
|
3793
|
+
element = array[i];
|
|
3794
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
|
3795
|
+
array[j] = array[--j];
|
|
3796
|
+
}
|
|
3797
|
+
if (j !== i++) array[j] = element;
|
|
3798
|
+
} return array;
|
|
3799
|
+
};
|
|
3800
|
+
|
|
3801
|
+
var merge = function (array, left, right, comparefn) {
|
|
3802
|
+
var llength = left.length;
|
|
3803
|
+
var rlength = right.length;
|
|
3804
|
+
var lindex = 0;
|
|
3805
|
+
var rindex = 0;
|
|
3806
|
+
|
|
3807
|
+
while (lindex < llength || rindex < rlength) {
|
|
3808
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
3809
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
3810
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
3811
|
+
} return array;
|
|
3812
|
+
};
|
|
3813
|
+
|
|
3814
|
+
var arraySort = mergeSort;
|
|
3815
|
+
|
|
3816
|
+
var fails$3 = fails$i;
|
|
3817
|
+
|
|
3818
|
+
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
3819
|
+
var method = [][METHOD_NAME];
|
|
3820
|
+
return !!method && fails$3(function () {
|
|
3821
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
3822
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
3823
|
+
});
|
|
3824
|
+
};
|
|
3825
|
+
|
|
3826
|
+
var userAgent$1 = engineUserAgent;
|
|
3827
|
+
|
|
3828
|
+
var firefox = userAgent$1.match(/firefox\/(\d+)/i);
|
|
3829
|
+
|
|
3830
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
|
3831
|
+
|
|
3832
|
+
var UA = engineUserAgent;
|
|
3833
|
+
|
|
3834
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
|
3835
|
+
|
|
3836
|
+
var userAgent = engineUserAgent;
|
|
3837
|
+
|
|
3838
|
+
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
3839
|
+
|
|
3840
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
3841
|
+
|
|
3842
|
+
var $$3 = _export;
|
|
3843
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
3844
|
+
var aCallable = aCallable$9;
|
|
3845
|
+
var toObject = toObject$4;
|
|
3846
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
3847
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
3848
|
+
var toString$3 = toString$4;
|
|
3849
|
+
var fails$2 = fails$i;
|
|
3850
|
+
var internalSort = arraySort;
|
|
3851
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
3852
|
+
var FF = engineFfVersion;
|
|
3853
|
+
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
3854
|
+
var V8 = engineV8Version;
|
|
3855
|
+
var WEBKIT = engineWebkitVersion;
|
|
3452
3856
|
|
|
3453
3857
|
var test = [];
|
|
3454
|
-
var nativeSort = uncurryThis$
|
|
3455
|
-
var push = uncurryThis$
|
|
3858
|
+
var nativeSort = uncurryThis$3(test.sort);
|
|
3859
|
+
var push = uncurryThis$3(test.push);
|
|
3456
3860
|
|
|
3457
3861
|
// IE8-
|
|
3458
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
3862
|
+
var FAILS_ON_UNDEFINED = fails$2(function () {
|
|
3459
3863
|
test.sort(undefined);
|
|
3460
3864
|
});
|
|
3461
3865
|
// V8 bug
|
|
3462
|
-
var FAILS_ON_NULL = fails$
|
|
3866
|
+
var FAILS_ON_NULL = fails$2(function () {
|
|
3463
3867
|
test.sort(null);
|
|
3464
3868
|
});
|
|
3465
3869
|
// Old WebKit
|
|
3466
3870
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
3467
3871
|
|
|
3468
|
-
var STABLE_SORT = !fails$
|
|
3872
|
+
var STABLE_SORT = !fails$2(function () {
|
|
3469
3873
|
// feature detection can be too slow, so check engines versions
|
|
3470
3874
|
if (V8) return V8 < 70;
|
|
3471
3875
|
if (FF && FF > 3) return;
|
|
@@ -3500,20 +3904,20 @@ var STABLE_SORT = !fails$1(function () {
|
|
|
3500
3904
|
return result !== 'DGBEFHACIJK';
|
|
3501
3905
|
});
|
|
3502
3906
|
|
|
3503
|
-
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
3907
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
3504
3908
|
|
|
3505
3909
|
var getSortCompare = function (comparefn) {
|
|
3506
3910
|
return function (x, y) {
|
|
3507
3911
|
if (y === undefined) return -1;
|
|
3508
3912
|
if (x === undefined) return 1;
|
|
3509
3913
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
3510
|
-
return toString$
|
|
3914
|
+
return toString$3(x) > toString$3(y) ? 1 : -1;
|
|
3511
3915
|
};
|
|
3512
3916
|
};
|
|
3513
3917
|
|
|
3514
3918
|
// `Array.prototype.sort` method
|
|
3515
3919
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
3516
|
-
$$
|
|
3920
|
+
$$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
3517
3921
|
sort: function sort(comparefn) {
|
|
3518
3922
|
if (comparefn !== undefined) aCallable(comparefn);
|
|
3519
3923
|
|
|
@@ -3574,6 +3978,19 @@ function columnSortToEuiDataGridSorting(columnSort, updateColumnSort) {
|
|
|
3574
3978
|
}
|
|
3575
3979
|
};
|
|
3576
3980
|
}
|
|
3981
|
+
const getSortDirectionFromString = sortOrder => {
|
|
3982
|
+
if (!sortOrder) {
|
|
3983
|
+
return undefined;
|
|
3984
|
+
}
|
|
3985
|
+
switch (sortOrder.toUpperCase()) {
|
|
3986
|
+
case SortDirection.Asc.toString():
|
|
3987
|
+
return SortDirection.Asc;
|
|
3988
|
+
case SortDirection.Desc.toString():
|
|
3989
|
+
return SortDirection.Desc;
|
|
3990
|
+
default:
|
|
3991
|
+
return undefined;
|
|
3992
|
+
}
|
|
3993
|
+
};
|
|
3577
3994
|
|
|
3578
3995
|
// Total height of grid button bar, table header and pagination bar
|
|
3579
3996
|
const EUI_DATA_GRID_HEIGHT_OFFSET = 103;
|
|
@@ -3665,67 +4082,6 @@ const Table = ({
|
|
|
3665
4082
|
});
|
|
3666
4083
|
};
|
|
3667
4084
|
|
|
3668
|
-
const useQueryWithGraphql = (query, queryVars) => {
|
|
3669
|
-
const {
|
|
3670
|
-
graphqlEndpoint
|
|
3671
|
-
} = useContext(OrchestratorConfigContext);
|
|
3672
|
-
const graphQLClient = new GraphQLClient(graphqlEndpoint);
|
|
3673
|
-
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3674
|
-
// TS-Ignore because queryVars does not seem to be accepted by the client
|
|
3675
|
-
// The props in this useQueryWithGraphql-hook ensures queryVars is indeed related to the query
|
|
3676
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3677
|
-
// @ts-ignore
|
|
3678
|
-
return yield graphQLClient.request(query, queryVars);
|
|
3679
|
-
});
|
|
3680
|
-
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
3681
|
-
};
|
|
3682
|
-
|
|
3683
|
-
const SubscriptionStatusBadge = ({
|
|
3684
|
-
subscriptionStatus
|
|
3685
|
-
}) => {
|
|
3686
|
-
const {
|
|
3687
|
-
theme,
|
|
3688
|
-
toSecondaryColor
|
|
3689
|
-
} = useOrchestratorTheme();
|
|
3690
|
-
const getBadgeColorFromSubscriptionStatus = status => {
|
|
3691
|
-
const {
|
|
3692
|
-
primary,
|
|
3693
|
-
darkestShade,
|
|
3694
|
-
lightShade,
|
|
3695
|
-
primaryText,
|
|
3696
|
-
success,
|
|
3697
|
-
successText
|
|
3698
|
-
} = theme.colors;
|
|
3699
|
-
switch (status) {
|
|
3700
|
-
case 'active':
|
|
3701
|
-
return {
|
|
3702
|
-
badgeColor: toSecondaryColor(success),
|
|
3703
|
-
textColor: successText
|
|
3704
|
-
};
|
|
3705
|
-
case 'terminated':
|
|
3706
|
-
return {
|
|
3707
|
-
badgeColor: lightShade,
|
|
3708
|
-
textColor: darkestShade
|
|
3709
|
-
};
|
|
3710
|
-
default:
|
|
3711
|
-
return {
|
|
3712
|
-
badgeColor: toSecondaryColor(primary),
|
|
3713
|
-
textColor: primaryText
|
|
3714
|
-
};
|
|
3715
|
-
}
|
|
3716
|
-
};
|
|
3717
|
-
const {
|
|
3718
|
-
badgeColor,
|
|
3719
|
-
textColor
|
|
3720
|
-
} = getBadgeColorFromSubscriptionStatus(subscriptionStatus);
|
|
3721
|
-
return jsx(Badge, Object.assign({
|
|
3722
|
-
textColor: textColor,
|
|
3723
|
-
color: badgeColor
|
|
3724
|
-
}, {
|
|
3725
|
-
children: subscriptionStatus
|
|
3726
|
-
}));
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
4085
|
const CheckmarkCircleFill = ({
|
|
3730
4086
|
width: _width = 24,
|
|
3731
4087
|
height: _height = 24,
|
|
@@ -3857,463 +4213,190 @@ const defaultOrchestratorTheme = {
|
|
|
3857
4213
|
},
|
|
3858
4214
|
font: {
|
|
3859
4215
|
weight: {
|
|
3860
|
-
regular: 400,
|
|
3861
|
-
medium: 500,
|
|
3862
|
-
semiBold: 600,
|
|
3863
|
-
bold: 700
|
|
3864
|
-
}
|
|
3865
|
-
}
|
|
3866
|
-
};
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
var $
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
var
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
addToUnscopables('includes');
|
|
3889
|
-
|
|
3890
|
-
var isObject = isObject$9;
|
|
3891
|
-
var classof = classofRaw$2;
|
|
3892
|
-
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3893
|
-
|
|
3894
|
-
var MATCH$1 = wellKnownSymbol$1('match');
|
|
3895
|
-
|
|
3896
|
-
// `IsRegExp` abstract operation
|
|
3897
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
3898
|
-
var isRegexp = function (it) {
|
|
3899
|
-
var isRegExp;
|
|
3900
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
3901
|
-
};
|
|
3902
|
-
|
|
3903
|
-
var isRegExp = isRegexp;
|
|
3904
|
-
|
|
3905
|
-
var $TypeError = TypeError;
|
|
3906
|
-
|
|
3907
|
-
var notARegexp = function (it) {
|
|
3908
|
-
if (isRegExp(it)) {
|
|
3909
|
-
throw $TypeError("The method doesn't accept regular expressions");
|
|
3910
|
-
} return it;
|
|
3911
|
-
};
|
|
3912
|
-
|
|
3913
|
-
var wellKnownSymbol = wellKnownSymbol$g;
|
|
3914
|
-
|
|
3915
|
-
var MATCH = wellKnownSymbol('match');
|
|
3916
|
-
|
|
3917
|
-
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
3918
|
-
var regexp = /./;
|
|
3919
|
-
try {
|
|
3920
|
-
'/./'[METHOD_NAME](regexp);
|
|
3921
|
-
} catch (error1) {
|
|
3922
|
-
try {
|
|
3923
|
-
regexp[MATCH] = false;
|
|
3924
|
-
return '/./'[METHOD_NAME](regexp);
|
|
3925
|
-
} catch (error2) { /* empty */ }
|
|
3926
|
-
} return false;
|
|
3927
|
-
};
|
|
3928
|
-
|
|
3929
|
-
var $ = _export;
|
|
3930
|
-
var uncurryThis = functionUncurryThis;
|
|
3931
|
-
var notARegExp = notARegexp;
|
|
3932
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
3933
|
-
var toString = toString$2;
|
|
3934
|
-
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
3935
|
-
|
|
3936
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3937
|
-
|
|
3938
|
-
// `String.prototype.includes` method
|
|
3939
|
-
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
3940
|
-
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
3941
|
-
includes: function includes(searchString /* , position = 0 */) {
|
|
3942
|
-
return !!~stringIndexOf(
|
|
3943
|
-
toString(requireObjectCoercible(this)),
|
|
3944
|
-
toString(notARegExp(searchString)),
|
|
3945
|
-
arguments.length > 1 ? arguments[1] : undefined
|
|
3946
|
-
);
|
|
3947
|
-
}
|
|
3948
|
-
});
|
|
3949
|
-
|
|
3950
|
-
function getTypedFieldFromObject(field, object) {
|
|
3951
|
-
if (!Object.keys(object).includes(field)) {
|
|
3952
|
-
return undefined;
|
|
3953
|
-
}
|
|
3954
|
-
return field;
|
|
3955
|
-
}
|
|
3956
|
-
|
|
3957
|
-
const getStatusBadgeColor = status => {
|
|
3958
|
-
const statusColors = {
|
|
3959
|
-
terminated: 'danger',
|
|
3960
|
-
active: 'success',
|
|
3961
|
-
provisioning: 'primary',
|
|
3962
|
-
migrating: 'primary',
|
|
3963
|
-
initial: 'danger'
|
|
3964
|
-
};
|
|
3965
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
3966
|
-
return statusColors.hasOwnProperty(status) ?
|
|
3967
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3968
|
-
// @ts-ignore
|
|
3969
|
-
statusColors[status] : 'primary';
|
|
3970
|
-
};
|
|
3971
|
-
|
|
3972
|
-
const ListItemStartPage = ({
|
|
3973
|
-
item,
|
|
3974
|
-
type
|
|
3975
|
-
}) => {
|
|
3976
|
-
const [hoverState, setHoverState] = useState(false);
|
|
3977
|
-
const renderItem = (item, type) => {
|
|
3978
|
-
if (type === 'subscription') {
|
|
3979
|
-
item = item;
|
|
3980
|
-
return jsxs(EuiFlexItem, {
|
|
3981
|
-
children: [jsx(EuiTextColor, Object.assign({
|
|
3982
|
-
color: hoverState ? '#397dc2' : 'black',
|
|
3983
|
-
style: {
|
|
3984
|
-
fontWeight: 500,
|
|
3985
|
-
transition: '0.2s'
|
|
3986
|
-
}
|
|
3987
|
-
}, {
|
|
3988
|
-
children: item.product.name
|
|
3989
|
-
})), jsx(EuiTextColor, Object.assign({
|
|
3990
|
-
style: {
|
|
3991
|
-
fontWeight: 400
|
|
3992
|
-
}
|
|
3993
|
-
}, {
|
|
3994
|
-
children: item.subscription_id.slice(0, 8)
|
|
3995
|
-
}))]
|
|
3996
|
-
});
|
|
3997
|
-
} else if (type === 'process') {
|
|
3998
|
-
item = item;
|
|
3999
|
-
const date = new Date(item.last_modified_at * 1000);
|
|
4000
|
-
const formattedDate = moment(date).format('DD-MM-YYYY, HH:mm');
|
|
4001
|
-
return jsxs(EuiFlexItem, {
|
|
4002
|
-
children: [jsx(EuiTextColor, Object.assign({
|
|
4003
|
-
color: hoverState ? '#397dc2' : 'black',
|
|
4004
|
-
style: {
|
|
4005
|
-
fontWeight: 500,
|
|
4006
|
-
transition: '0.2s'
|
|
4007
|
-
}
|
|
4008
|
-
}, {
|
|
4009
|
-
children: item.workflow
|
|
4010
|
-
})), jsxs(EuiTextColor, Object.assign({
|
|
4011
|
-
style: {
|
|
4012
|
-
fontWeight: 400
|
|
4013
|
-
}
|
|
4014
|
-
}, {
|
|
4015
|
-
children: [formattedDate, " for", ' ', jsx("span", Object.assign({
|
|
4016
|
-
style: {
|
|
4017
|
-
color: '#397dc2'
|
|
4018
|
-
}
|
|
4019
|
-
}, {
|
|
4020
|
-
children: "KLM"
|
|
4021
|
-
}))]
|
|
4022
|
-
}))]
|
|
4023
|
-
});
|
|
4024
|
-
}
|
|
4025
|
-
};
|
|
4026
|
-
return (
|
|
4027
|
-
// <Link
|
|
4028
|
-
// href={`/subscriptions/${
|
|
4029
|
-
// 'subscription_id' in item ? item.subscription_id : ''
|
|
4030
|
-
// }`}
|
|
4031
|
-
// >
|
|
4032
|
-
jsxs(EuiFlexGroup, Object.assign({
|
|
4033
|
-
style: {
|
|
4034
|
-
cursor: 'pointer',
|
|
4035
|
-
paddingBlock: 10
|
|
4036
|
-
},
|
|
4037
|
-
onMouseOver: () => setHoverState(true),
|
|
4038
|
-
onMouseLeave: () => setHoverState(false)
|
|
4039
|
-
}, {
|
|
4040
|
-
children: [renderItem(item, type), jsx(EuiFlexItem, Object.assign({
|
|
4041
|
-
grow: false,
|
|
4042
|
-
style: {
|
|
4043
|
-
display: hoverState ? 'block' : 'none'
|
|
4044
|
-
}
|
|
4045
|
-
}, {
|
|
4046
|
-
children: jsx(EuiIcon, {
|
|
4047
|
-
type: "sortRight",
|
|
4048
|
-
color: "primary"
|
|
4049
|
-
})
|
|
4050
|
-
}))]
|
|
4051
|
-
}))
|
|
4052
|
-
// </Link>
|
|
4053
|
-
);
|
|
4054
|
-
};
|
|
4055
|
-
|
|
4056
|
-
function ListStartPage({
|
|
4057
|
-
list
|
|
4058
|
-
}) {
|
|
4059
|
-
return list && jsx(EuiFlexItem, Object.assign({
|
|
4060
|
-
style: {
|
|
4061
|
-
minWidth: 300
|
|
4062
|
-
}
|
|
4063
|
-
}, {
|
|
4064
|
-
children: jsxs(EuiPanel, Object.assign({
|
|
4065
|
-
hasShadow: false,
|
|
4066
|
-
hasBorder: true,
|
|
4067
|
-
paddingSize: "l"
|
|
4068
|
-
}, {
|
|
4069
|
-
children: [jsx("p", Object.assign({
|
|
4070
|
-
style: {
|
|
4071
|
-
fontWeight: 600
|
|
4072
|
-
}
|
|
4073
|
-
}, {
|
|
4074
|
-
children: list.title
|
|
4075
|
-
})), jsx(EuiSpacer, {
|
|
4076
|
-
size: "m"
|
|
4077
|
-
}), list.items.map((item, index) => jsxs(Fragment, {
|
|
4078
|
-
children: [jsx(ListItemStartPage, {
|
|
4079
|
-
item: item,
|
|
4080
|
-
type: list.type
|
|
4081
|
-
}), index === list.items.length - 1 ? null : jsx(EuiHorizontalRule, {
|
|
4082
|
-
margin: "none"
|
|
4083
|
-
})]
|
|
4084
|
-
})), jsx(EuiSpacer, {
|
|
4085
|
-
size: "m"
|
|
4086
|
-
}), jsx(EuiButton, Object.assign({
|
|
4087
|
-
fullWidth: true
|
|
4088
|
-
}, {
|
|
4089
|
-
children: list.buttonName
|
|
4090
|
-
}))]
|
|
4091
|
-
}))
|
|
4092
|
-
}));
|
|
4093
|
-
}
|
|
4094
|
-
|
|
4095
|
-
function getFavouriteSubscriptions(apiUrl) {
|
|
4096
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4097
|
-
console.log('api url', apiUrl);
|
|
4098
|
-
const response = yield fetch(apiUrl + '/subscriptions/?range=10%2C15');
|
|
4099
|
-
return yield response.json();
|
|
4100
|
-
});
|
|
4101
|
-
}
|
|
4102
|
-
function getProcessesNeedingAttention(apiUrl) {
|
|
4103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4104
|
-
const response = yield fetch(apiUrl + '/processes/?range=100%2C105');
|
|
4105
|
-
return yield response.json();
|
|
4106
|
-
});
|
|
4107
|
-
}
|
|
4108
|
-
function getRecentProcesses(apiUrl) {
|
|
4109
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4110
|
-
const response = yield fetch(apiUrl + '/processes/?range=106%2C111');
|
|
4111
|
-
return yield response.json();
|
|
4112
|
-
});
|
|
4113
|
-
}
|
|
4114
|
-
const useFavouriteSubscriptions = () => {
|
|
4115
|
-
const {
|
|
4116
|
-
orchestratorApiBaseUrl
|
|
4117
|
-
} = useContext(OrchestratorConfigContext);
|
|
4118
|
-
const {
|
|
4119
|
-
data,
|
|
4120
|
-
isLoading
|
|
4121
|
-
} = useQuery(['favouriteSubscriptions'], () => getFavouriteSubscriptions(orchestratorApiBaseUrl));
|
|
4122
|
-
const initialData = {
|
|
4123
|
-
buttonName: 'Show all favourites',
|
|
4124
|
-
items: [],
|
|
4125
|
-
title: 'Favourite Subscriptions',
|
|
4126
|
-
type: 'subscription'
|
|
4127
|
-
};
|
|
4128
|
-
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
4129
|
-
items: data
|
|
4130
|
-
});
|
|
4131
|
-
};
|
|
4132
|
-
const useProcessesAttention = () => {
|
|
4133
|
-
const {
|
|
4134
|
-
orchestratorApiBaseUrl
|
|
4135
|
-
} = useContext(OrchestratorConfigContext);
|
|
4136
|
-
const {
|
|
4137
|
-
data,
|
|
4138
|
-
isLoading
|
|
4139
|
-
} = useQuery(['processesAttention'], () => getProcessesNeedingAttention(orchestratorApiBaseUrl));
|
|
4140
|
-
const initialData = {
|
|
4141
|
-
type: 'process',
|
|
4142
|
-
title: 'Processes that need attention',
|
|
4143
|
-
items: [],
|
|
4144
|
-
buttonName: 'Show all active processes'
|
|
4145
|
-
};
|
|
4146
|
-
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
4147
|
-
items: data
|
|
4148
|
-
});
|
|
4149
|
-
};
|
|
4150
|
-
const useRecentProcesses = () => {
|
|
4151
|
-
const {
|
|
4152
|
-
orchestratorApiBaseUrl
|
|
4153
|
-
} = useContext(OrchestratorConfigContext);
|
|
4154
|
-
const {
|
|
4155
|
-
data,
|
|
4156
|
-
isLoading
|
|
4157
|
-
} = useQuery(['recentProcesses'], () => getRecentProcesses(orchestratorApiBaseUrl));
|
|
4158
|
-
const initialData = {
|
|
4159
|
-
type: 'process',
|
|
4160
|
-
title: 'Recently completed processes',
|
|
4161
|
-
items: [],
|
|
4162
|
-
buttonName: 'Show all completed processes'
|
|
4216
|
+
regular: 400,
|
|
4217
|
+
medium: 500,
|
|
4218
|
+
semiBold: 600,
|
|
4219
|
+
bold: 700
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
// a string of all valid unicode whitespaces
|
|
4225
|
+
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
4226
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
4227
|
+
|
|
4228
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
4229
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
4230
|
+
var toString$2 = toString$4;
|
|
4231
|
+
var whitespaces$1 = whitespaces$2;
|
|
4232
|
+
|
|
4233
|
+
var replace = uncurryThis$2(''.replace);
|
|
4234
|
+
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
4235
|
+
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
4236
|
+
|
|
4237
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
4238
|
+
var createMethod = function (TYPE) {
|
|
4239
|
+
return function ($this) {
|
|
4240
|
+
var string = toString$2(requireObjectCoercible$1($this));
|
|
4241
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
4242
|
+
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
4243
|
+
return string;
|
|
4163
4244
|
};
|
|
4164
|
-
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
4165
|
-
items: data
|
|
4166
|
-
});
|
|
4167
4245
|
};
|
|
4168
4246
|
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
list: processesAttentionList
|
|
4180
|
-
}), jsx(ListStartPage, {
|
|
4181
|
-
list: completedProcessesList
|
|
4182
|
-
})]
|
|
4183
|
-
}));
|
|
4247
|
+
var stringTrim = {
|
|
4248
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
4249
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
4250
|
+
start: createMethod(1),
|
|
4251
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
4252
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
4253
|
+
end: createMethod(2),
|
|
4254
|
+
// `String.prototype.trim` method
|
|
4255
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
4256
|
+
trim: createMethod(3)
|
|
4184
4257
|
};
|
|
4185
4258
|
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4259
|
+
var global$1 = global$i;
|
|
4260
|
+
var fails$1 = fails$i;
|
|
4261
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
4262
|
+
var toString$1 = toString$4;
|
|
4263
|
+
var trim = stringTrim.trim;
|
|
4264
|
+
var whitespaces = whitespaces$2;
|
|
4265
|
+
|
|
4266
|
+
var $parseInt$1 = global$1.parseInt;
|
|
4267
|
+
var Symbol$1 = global$1.Symbol;
|
|
4268
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
4269
|
+
var hex = /^[+-]?0x/i;
|
|
4270
|
+
var exec = uncurryThis$1(hex.exec);
|
|
4271
|
+
var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
4272
|
+
// MS Edge 18- broken with boxed symbols
|
|
4273
|
+
|| (ITERATOR && !fails$1(function () { $parseInt$1(Object(ITERATOR)); }));
|
|
4274
|
+
|
|
4275
|
+
// `parseInt` method
|
|
4276
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
4277
|
+
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
4278
|
+
var S = trim(toString$1(string));
|
|
4279
|
+
return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
4280
|
+
} : $parseInt$1;
|
|
4281
|
+
|
|
4282
|
+
var $$2 = _export;
|
|
4283
|
+
var $parseInt = numberParseInt;
|
|
4284
|
+
|
|
4285
|
+
// `parseInt` method
|
|
4286
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
4287
|
+
$$2({ global: true, forced: parseInt != $parseInt }, {
|
|
4288
|
+
parseInt: $parseInt
|
|
4289
|
+
});
|
|
4290
|
+
|
|
4291
|
+
const parseDate = date => {
|
|
4292
|
+
if (date === null || date === '') {
|
|
4293
|
+
return null;
|
|
4294
|
+
}
|
|
4295
|
+
return new Date(parseInt(date) * 1000);
|
|
4206
4296
|
};
|
|
4207
4297
|
|
|
4208
|
-
const
|
|
4209
|
-
const
|
|
4210
|
-
|
|
4211
|
-
|
|
4298
|
+
const getStatusBadgeColor = status => {
|
|
4299
|
+
const statusColors = {
|
|
4300
|
+
terminated: 'danger',
|
|
4301
|
+
active: 'success',
|
|
4302
|
+
provisioning: 'primary',
|
|
4303
|
+
migrating: 'primary',
|
|
4304
|
+
initial: 'danger'
|
|
4212
4305
|
};
|
|
4213
|
-
|
|
4214
|
-
return
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
}, {
|
|
4219
|
-
children: [jsx(EuiText, {
|
|
4220
|
-
children: jsx("b", {
|
|
4221
|
-
children: "Start a new process"
|
|
4222
|
-
})
|
|
4223
|
-
}), jsx(EuiSpacer, {
|
|
4224
|
-
size: "m"
|
|
4225
|
-
}), jsx(EuiFieldSearch, {
|
|
4226
|
-
fullWidth: true,
|
|
4227
|
-
placeholder: "Search and select process",
|
|
4228
|
-
value: value,
|
|
4229
|
-
onChange: e => onChange(e),
|
|
4230
|
-
"aria-label": "Search and select process"
|
|
4231
|
-
}), jsx(EuiSpacer, {
|
|
4232
|
-
size: "m"
|
|
4233
|
-
}), jsx(EuiTextColor, Object.assign({
|
|
4234
|
-
color: "subdued"
|
|
4235
|
-
}, {
|
|
4236
|
-
children: "Frequently used:"
|
|
4237
|
-
})), jsx(EuiSpacer, {
|
|
4238
|
-
size: "s"
|
|
4239
|
-
}), jsx(FrequentlyUsed, {
|
|
4240
|
-
values: frequentlyUsedValues
|
|
4241
|
-
})]
|
|
4242
|
-
}));
|
|
4306
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
4307
|
+
return statusColors.hasOwnProperty(status) ?
|
|
4308
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4309
|
+
// @ts-ignore
|
|
4310
|
+
statusColors[status] : 'primary';
|
|
4243
4311
|
};
|
|
4244
4312
|
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
children: jsx("h2", Object.assign({
|
|
4305
|
-
style: {
|
|
4306
|
-
fontWeight: 500
|
|
4307
|
-
}
|
|
4308
|
-
}, {
|
|
4309
|
-
children: stat.value.toLocaleString('de-DE')
|
|
4310
|
-
}))
|
|
4311
|
-
})]
|
|
4312
|
-
})]
|
|
4313
|
-
})
|
|
4314
|
-
}))
|
|
4315
|
-
}, index))
|
|
4316
|
-
}));
|
|
4313
|
+
var $$1 = _export;
|
|
4314
|
+
var $includes = arrayIncludes.includes;
|
|
4315
|
+
var fails = fails$i;
|
|
4316
|
+
var addToUnscopables = addToUnscopables$2;
|
|
4317
|
+
|
|
4318
|
+
// FF99+ bug
|
|
4319
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
4320
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
4321
|
+
return !Array(1).includes();
|
|
4322
|
+
});
|
|
4323
|
+
|
|
4324
|
+
// `Array.prototype.includes` method
|
|
4325
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4326
|
+
$$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
4327
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
4328
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
4329
|
+
}
|
|
4330
|
+
});
|
|
4331
|
+
|
|
4332
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4333
|
+
addToUnscopables('includes');
|
|
4334
|
+
|
|
4335
|
+
var isObject = isObject$9;
|
|
4336
|
+
var classof = classofRaw$2;
|
|
4337
|
+
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
4338
|
+
|
|
4339
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
4340
|
+
|
|
4341
|
+
// `IsRegExp` abstract operation
|
|
4342
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
4343
|
+
var isRegexp = function (it) {
|
|
4344
|
+
var isRegExp;
|
|
4345
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
4346
|
+
};
|
|
4347
|
+
|
|
4348
|
+
var isRegExp = isRegexp;
|
|
4349
|
+
|
|
4350
|
+
var $TypeError = TypeError;
|
|
4351
|
+
|
|
4352
|
+
var notARegexp = function (it) {
|
|
4353
|
+
if (isRegExp(it)) {
|
|
4354
|
+
throw $TypeError("The method doesn't accept regular expressions");
|
|
4355
|
+
} return it;
|
|
4356
|
+
};
|
|
4357
|
+
|
|
4358
|
+
var wellKnownSymbol = wellKnownSymbol$g;
|
|
4359
|
+
|
|
4360
|
+
var MATCH = wellKnownSymbol('match');
|
|
4361
|
+
|
|
4362
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
4363
|
+
var regexp = /./;
|
|
4364
|
+
try {
|
|
4365
|
+
'/./'[METHOD_NAME](regexp);
|
|
4366
|
+
} catch (error1) {
|
|
4367
|
+
try {
|
|
4368
|
+
regexp[MATCH] = false;
|
|
4369
|
+
return '/./'[METHOD_NAME](regexp);
|
|
4370
|
+
} catch (error2) { /* empty */ }
|
|
4371
|
+
} return false;
|
|
4317
4372
|
};
|
|
4318
4373
|
|
|
4319
|
-
|
|
4374
|
+
var $ = _export;
|
|
4375
|
+
var uncurryThis = functionUncurryThis;
|
|
4376
|
+
var notARegExp = notARegexp;
|
|
4377
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
4378
|
+
var toString = toString$4;
|
|
4379
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
4380
|
+
|
|
4381
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
4382
|
+
|
|
4383
|
+
// `String.prototype.includes` method
|
|
4384
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
4385
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
4386
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
4387
|
+
return !!~stringIndexOf(
|
|
4388
|
+
toString(requireObjectCoercible(this)),
|
|
4389
|
+
toString(notARegExp(searchString)),
|
|
4390
|
+
arguments.length > 1 ? arguments[1] : undefined
|
|
4391
|
+
);
|
|
4392
|
+
}
|
|
4393
|
+
});
|
|
4394
|
+
|
|
4395
|
+
function getTypedFieldFromObject(field, object) {
|
|
4396
|
+
if (!Object.keys(object).includes(field)) {
|
|
4397
|
+
return null;
|
|
4398
|
+
}
|
|
4399
|
+
return field;
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
export { Badge, CheckmarkCircleFill, EngineStatusBadge, Environment, EnvironmentBadge, FailedTasksBadge, FrequentlyUsed, HeaderBadge, ListItemStartPage, LogoutIcon, MinusCircleOutline, MultiListSection, NewProcessPanel, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageHeader, OrchestratorPageTemplate, OrchestratorSidebar, PlusCircleFill, ProcessStatus, SortDirection, StatCards, StatusDotIcon, SubscriptionStatusBadge, Table, XCircleFill, columnSortToEuiDataGridSorting, defaultOrchestratorTheme, getInitialColumnOrder, getSortDirectionFromString, getStatusBadgeColor, getTypedFieldFromObject, parseDate, useEngineStatusQuery, useFavouriteSubscriptions, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useProcessesAttention, useQueryWithGraphql, useRecentProcesses, useStringQueryWithGraphql };
|