@equinor/roma-framework 0.0.5-ALPHA.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev-portal/index.d.ts +10 -0
- package/dev-portal/index.html +2 -2
- package/dev-portal/lib/api/fetcher.d.ts +21 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
- package/dev-portal/lib/api/roma/index.d.ts +8 -0
- package/dev-portal/lib/api/roma/model/appDto.d.ts +26 -0
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/dev-portal/lib/api/roma/model/index.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +12 -0
- package/dev-portal/lib/api/roma/model/versionDto.d.ts +12 -0
- package/dev-portal/lib/api/roma/use-client.d.ts +34 -0
- package/dev-portal/lib/api/trade-recap/deal.d.ts +160 -0
- package/dev-portal/lib/api/trade-recap/download-recap.d.ts +6 -0
- package/dev-portal/lib/api/trade-recap/get-deals.d.ts +15 -0
- package/dev-portal/lib/api/trade-recap/get-recap.d.ts +11 -0
- package/dev-portal/lib/api/trade-recap/index.d.ts +5 -0
- package/dev-portal/lib/api/trade-recap/recap.d.ts +22 -0
- package/dev-portal/lib/api/util.d.ts +1 -0
- package/dev-portal/lib/app-provider.d.ts +15 -0
- package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/dev-portal/lib/eds-event-provider.d.ts +6 -0
- package/dev-portal/lib/make-component.d.ts +12 -0
- package/dev-portal/lib/style-provider.d.ts +7 -0
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +560 -93
- package/index.d.ts +1 -1
- package/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
- package/lib/api/roma/index.d.ts +8 -1
- package/lib/api/roma/model/appDto.d.ts +26 -0
- package/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/lib/api/roma/model/index.d.ts +19 -0
- package/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/lib/api/roma/model/settingDto.d.ts +13 -0
- package/lib/api/roma/model/settingDtoValue.d.ts +12 -0
- package/lib/api/roma/model/versionDto.d.ts +12 -0
- package/lib/api/roma/use-client.d.ts +34 -0
- package/lib/app-provider.d.ts +15 -0
- package/package.json +1 -1
- package/roma-framework.mjs +1172 -1723
- package/lib/api/roma/get-environment.d.ts +0 -7
- package/lib/sse/useSse.d.ts +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(factory) {
|
|
2
2
|
typeof define === "function" && define.amd ? define(factory) : factory();
|
|
3
3
|
})(function() {
|
|
4
|
-
var _focused, _cleanup, _setup, _a2, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn, _d, _queries, _e2, _observers2, _defaultOptions2, _mutationCache, _retryer2, _dispatch2, dispatch_fn2, _f, _mutations, _mutationId, _resuming, _g, _queryCache, _mutationCache2, _defaultOptions3, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h;
|
|
4
|
+
var _config, _connections, _builderCallbacks, _endpoints, _focused, _cleanup, _setup, _a2, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn, _d, _queries, _e2, _observers2, _defaultOptions2, _mutationCache, _retryer2, _dispatch2, dispatch_fn2, _f, _mutations, _mutationId, _resuming, _g, _queryCache, _mutationCache2, _defaultOptions3, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h;
|
|
5
5
|
"use strict";var __accessCheck = (obj, member, msg) => {
|
|
6
6
|
if (!member.has(obj))
|
|
7
7
|
throw TypeError("Cannot " + msg);
|
|
@@ -3169,7 +3169,6 @@ var __privateMethod = (obj, member, method) => {
|
|
|
3169
3169
|
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
3170
3170
|
}
|
|
3171
3171
|
var jsxRuntimeExports = jsxRuntime.exports;
|
|
3172
|
-
var client$3 = {};
|
|
3173
3172
|
var reactDom = { exports: {} };
|
|
3174
3173
|
var reactDom_production_min = {};
|
|
3175
3174
|
var scheduler = { exports: {} };
|
|
@@ -31522,7 +31521,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
31522
31521
|
unmarkContainerAsRoot(container);
|
|
31523
31522
|
}
|
|
31524
31523
|
};
|
|
31525
|
-
function
|
|
31524
|
+
function createRoot2(container, options2) {
|
|
31526
31525
|
if (!isValidContainer(container)) {
|
|
31527
31526
|
throw new Error("createRoot(...): Target container is not a DOM element.");
|
|
31528
31527
|
}
|
|
@@ -31892,7 +31891,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
31892
31891
|
error('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');
|
|
31893
31892
|
}
|
|
31894
31893
|
}
|
|
31895
|
-
return
|
|
31894
|
+
return createRoot2(container, options2);
|
|
31896
31895
|
}
|
|
31897
31896
|
function hydrateRoot$1(container, initialChildren, options2) {
|
|
31898
31897
|
{
|
|
@@ -31965,13 +31964,14 @@ var __privateMethod = (obj, member, method) => {
|
|
|
31965
31964
|
reactDom.exports = requireReactDom_development();
|
|
31966
31965
|
}
|
|
31967
31966
|
var reactDomExports = reactDom.exports;
|
|
31967
|
+
var createRoot;
|
|
31968
31968
|
var m$1 = reactDomExports;
|
|
31969
31969
|
if (process.env.NODE_ENV === "production") {
|
|
31970
|
-
|
|
31971
|
-
|
|
31970
|
+
createRoot = m$1.createRoot;
|
|
31971
|
+
m$1.hydrateRoot;
|
|
31972
31972
|
} else {
|
|
31973
31973
|
var i$1 = m$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31974
|
-
|
|
31974
|
+
createRoot = function(c2, o2) {
|
|
31975
31975
|
i$1.usingClientEntryPoint = true;
|
|
31976
31976
|
try {
|
|
31977
31977
|
return m$1.createRoot(c2, o2);
|
|
@@ -31979,14 +31979,6 @@ var __privateMethod = (obj, member, method) => {
|
|
|
31979
31979
|
i$1.usingClientEntryPoint = false;
|
|
31980
31980
|
}
|
|
31981
31981
|
};
|
|
31982
|
-
client$3.hydrateRoot = function(c2, h2, o2) {
|
|
31983
|
-
i$1.usingClientEntryPoint = true;
|
|
31984
|
-
try {
|
|
31985
|
-
return m$1.hydrateRoot(c2, h2, o2);
|
|
31986
|
-
} finally {
|
|
31987
|
-
i$1.usingClientEntryPoint = false;
|
|
31988
|
-
}
|
|
31989
|
-
};
|
|
31990
31982
|
}
|
|
31991
31983
|
var re$4 = { exports: {} };
|
|
31992
31984
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
@@ -34201,7 +34193,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
34201
34193
|
return `📦\x1B[1;32m${name2.replace(/([A-Z])/g, " $1").toUpperCase()}\x1B[0m`;
|
|
34202
34194
|
}
|
|
34203
34195
|
}
|
|
34204
|
-
globalThis && globalThis.__classPrivateFieldSet || function(receiver, state, value, kind, f2) {
|
|
34196
|
+
var __classPrivateFieldSet$l = globalThis && globalThis.__classPrivateFieldSet || function(receiver, state, value, kind, f2) {
|
|
34205
34197
|
if (kind === "m")
|
|
34206
34198
|
throw new TypeError("Private method is not writable");
|
|
34207
34199
|
if (kind === "a" && !f2)
|
|
@@ -34210,13 +34202,28 @@ var __privateMethod = (obj, member, method) => {
|
|
|
34210
34202
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
34211
34203
|
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
34212
34204
|
};
|
|
34213
|
-
globalThis && globalThis.__classPrivateFieldGet || function(receiver, state, kind, f2) {
|
|
34205
|
+
var __classPrivateFieldGet$n = globalThis && globalThis.__classPrivateFieldGet || function(receiver, state, kind, f2) {
|
|
34214
34206
|
if (kind === "a" && !f2)
|
|
34215
34207
|
throw new TypeError("Private accessor was defined without a getter");
|
|
34216
34208
|
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
34217
34209
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
34218
34210
|
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
|
|
34219
34211
|
};
|
|
34212
|
+
var _ModuleConfigBuilder_init;
|
|
34213
|
+
class ModuleConfigBuilder {
|
|
34214
|
+
get config() {
|
|
34215
|
+
return this._config;
|
|
34216
|
+
}
|
|
34217
|
+
constructor(init2, _config2) {
|
|
34218
|
+
this._config = _config2;
|
|
34219
|
+
_ModuleConfigBuilder_init.set(this, void 0);
|
|
34220
|
+
__classPrivateFieldSet$l(this, _ModuleConfigBuilder_init, init2, "f");
|
|
34221
|
+
}
|
|
34222
|
+
requireInstance(module2) {
|
|
34223
|
+
return __classPrivateFieldGet$n(this, _ModuleConfigBuilder_init, "f").requireInstance(module2);
|
|
34224
|
+
}
|
|
34225
|
+
}
|
|
34226
|
+
_ModuleConfigBuilder_init = /* @__PURE__ */ new WeakMap();
|
|
34220
34227
|
var extendStatics$2 = function(d2, b2) {
|
|
34221
34228
|
extendStatics$2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
34222
34229
|
d3.__proto__ = b3;
|
|
@@ -34248,7 +34255,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
34248
34255
|
};
|
|
34249
34256
|
return __assign$2.apply(this, arguments);
|
|
34250
34257
|
};
|
|
34251
|
-
function __rest$
|
|
34258
|
+
function __rest$6(s2, e2) {
|
|
34252
34259
|
var t2 = {};
|
|
34253
34260
|
for (var p2 in s2)
|
|
34254
34261
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
@@ -36112,7 +36119,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
36112
36119
|
function concatAll() {
|
|
36113
36120
|
return mergeAll(1);
|
|
36114
36121
|
}
|
|
36115
|
-
function concat() {
|
|
36122
|
+
function concat$1() {
|
|
36116
36123
|
var args = [];
|
|
36117
36124
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
36118
36125
|
args[_i] = arguments[_i];
|
|
@@ -37101,9 +37108,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37101
37108
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37102
37109
|
});
|
|
37103
37110
|
};
|
|
37104
|
-
const moduleKey$
|
|
37105
|
-
const module$
|
|
37106
|
-
name: moduleKey$
|
|
37111
|
+
const moduleKey$5 = "event";
|
|
37112
|
+
const module$8 = {
|
|
37113
|
+
name: moduleKey$5,
|
|
37107
37114
|
configure: (ref) => {
|
|
37108
37115
|
const configurator = {};
|
|
37109
37116
|
const parentProvider = ref === null || ref === void 0 ? void 0 : ref.event;
|
|
@@ -37226,7 +37233,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37226
37233
|
if (initWithSelector === void 0) {
|
|
37227
37234
|
initWithSelector = {};
|
|
37228
37235
|
}
|
|
37229
|
-
var selector = initWithSelector.selector, init2 = __rest$
|
|
37236
|
+
var selector = initWithSelector.selector, init2 = __rest$6(initWithSelector, ["selector"]);
|
|
37230
37237
|
return new Observable(function(subscriber) {
|
|
37231
37238
|
var controller = new AbortController();
|
|
37232
37239
|
var signal = controller.signal;
|
|
@@ -37304,7 +37311,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37304
37311
|
this.response = response;
|
|
37305
37312
|
}
|
|
37306
37313
|
}
|
|
37307
|
-
var __rest$
|
|
37314
|
+
var __rest$5 = globalThis && globalThis.__rest || function(s2, e2) {
|
|
37308
37315
|
var t2 = {};
|
|
37309
37316
|
for (var p2 in s2)
|
|
37310
37317
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
@@ -37378,9 +37385,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37378
37385
|
this._abort$.next();
|
|
37379
37386
|
}
|
|
37380
37387
|
_fetch$(path, args) {
|
|
37381
|
-
const _a3 = args || {}, { selector } = _a3, options = __rest$
|
|
37388
|
+
const _a3 = args || {}, { selector } = _a3, options = __rest$5(_a3, ["selector"]);
|
|
37382
37389
|
const response$ = of(Object.assign(Object.assign({}, options), { uri: this._resolveUrl(path) })).pipe(switchMap((x2) => this._prepareRequest(x2)), tap((x2) => this._request$.next(x2)), switchMap((_a4) => {
|
|
37383
|
-
var { uri, path: _path } = _a4, init2 = __rest$
|
|
37390
|
+
var { uri, path: _path } = _a4, init2 = __rest$5(_a4, ["uri", "path"]);
|
|
37384
37391
|
return fromFetch(uri, init2);
|
|
37385
37392
|
}), switchMap((x2) => this._prepareResponse(x2)), tap((x2) => this._response$.next(x2)), switchMap((response) => {
|
|
37386
37393
|
if (selector) {
|
|
@@ -37446,7 +37453,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37446
37453
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37447
37454
|
});
|
|
37448
37455
|
};
|
|
37449
|
-
const module$
|
|
37456
|
+
const module$7 = {
|
|
37450
37457
|
name: "http",
|
|
37451
37458
|
configure: () => new HttpClientConfigurator(HttpClientMsal),
|
|
37452
37459
|
initialize: ({ config: config2, hasModule, requireInstance }) => __awaiter$n(void 0, void 0, void 0, function* () {
|
|
@@ -37471,11 +37478,11 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37471
37478
|
})
|
|
37472
37479
|
};
|
|
37473
37480
|
const configureHttp = (configure2) => ({
|
|
37474
|
-
module: module$
|
|
37481
|
+
module: module$7,
|
|
37475
37482
|
configure: configure2
|
|
37476
37483
|
});
|
|
37477
37484
|
const configureHttpClient = (name2, args) => ({
|
|
37478
|
-
module: module$
|
|
37485
|
+
module: module$7,
|
|
37479
37486
|
configure: (config2) => {
|
|
37480
37487
|
config2.configureClient(name2, args);
|
|
37481
37488
|
}
|
|
@@ -37547,7 +37554,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37547
37554
|
};
|
|
37548
37555
|
return __assign$1.apply(this, arguments);
|
|
37549
37556
|
};
|
|
37550
|
-
function __rest$
|
|
37557
|
+
function __rest$4(s2, e2) {
|
|
37551
37558
|
var t2 = {};
|
|
37552
37559
|
for (var p2 in s2)
|
|
37553
37560
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
@@ -46632,7 +46639,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
46632
46639
|
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.");
|
|
46633
46640
|
return [2, null];
|
|
46634
46641
|
}
|
|
46635
|
-
prompt = cachedRequest.prompt, request = __rest$
|
|
46642
|
+
prompt = cachedRequest.prompt, request = __rest$4(cachedRequest, ["prompt"]);
|
|
46636
46643
|
if (prompt) {
|
|
46637
46644
|
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window.");
|
|
46638
46645
|
}
|
|
@@ -46859,7 +46866,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
46859
46866
|
case 2:
|
|
46860
46867
|
canonicalAuthority = new UrlString(authority);
|
|
46861
46868
|
canonicalAuthority.validateAsUri();
|
|
46862
|
-
scopes = request.scopes, remainingProperties = __rest$
|
|
46869
|
+
scopes = request.scopes, remainingProperties = __rest$4(request, ["scopes"]);
|
|
46863
46870
|
scopeSet = new ScopeSet(scopes || []);
|
|
46864
46871
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
46865
46872
|
getPrompt = function() {
|
|
@@ -51020,8 +51027,8 @@ var __privateMethod = (obj, member, method) => {
|
|
|
51020
51027
|
get defaultConfig() {
|
|
51021
51028
|
return this._config.defaultConfig;
|
|
51022
51029
|
}
|
|
51023
|
-
constructor(
|
|
51024
|
-
this._config =
|
|
51030
|
+
constructor(_config2) {
|
|
51031
|
+
this._config = _config2;
|
|
51025
51032
|
this._clients = {};
|
|
51026
51033
|
}
|
|
51027
51034
|
getClient(name2) {
|
|
@@ -51099,7 +51106,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
51099
51106
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
51100
51107
|
});
|
|
51101
51108
|
};
|
|
51102
|
-
const module$
|
|
51109
|
+
const module$6 = {
|
|
51103
51110
|
name: "auth",
|
|
51104
51111
|
configure: (refModules) => {
|
|
51105
51112
|
var _a3;
|
|
@@ -51121,7 +51128,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
51121
51128
|
})
|
|
51122
51129
|
};
|
|
51123
51130
|
const configureMsal = (defaultClient, args) => ({
|
|
51124
|
-
module: module$
|
|
51131
|
+
module: module$6,
|
|
51125
51132
|
configure: (config2) => {
|
|
51126
51133
|
config2.configureDefault(defaultClient);
|
|
51127
51134
|
if ((args === null || args === void 0 ? void 0 : args.requiresAuth) !== void 0) {
|
|
@@ -51294,7 +51301,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
51294
51301
|
const resolveInitialContext = (options) => ({ ref, modules }) => {
|
|
51295
51302
|
const { context: context2, navigation: navigation2 } = modules;
|
|
51296
51303
|
const pathResolver = resolveContextFromPath(context2, options === null || options === void 0 ? void 0 : options.path);
|
|
51297
|
-
return concat(navigation2 ? pathResolver(navigation2.path.pathname) : EMPTY, resolveContextFromParent({ ref, modules })).pipe(first());
|
|
51304
|
+
return concat$1(navigation2 ? pathResolver(navigation2.path.pathname) : EMPTY, resolveContextFromParent({ ref, modules })).pipe(first());
|
|
51298
51305
|
};
|
|
51299
51306
|
var __awaiter$g = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
51300
51307
|
function adopt(value) {
|
|
@@ -52768,7 +52775,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
52768
52775
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
52769
52776
|
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
52770
52777
|
};
|
|
52771
|
-
var __rest$
|
|
52778
|
+
var __rest$3 = globalThis && globalThis.__rest || function(s2, e2) {
|
|
52772
52779
|
var t2 = {};
|
|
52773
52780
|
for (var p2 in s2)
|
|
52774
52781
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
@@ -52860,7 +52867,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
52860
52867
|
return this._query(args, options);
|
|
52861
52868
|
}
|
|
52862
52869
|
queryAsync(payload, opt) {
|
|
52863
|
-
const _a3 = opt || {}, { awaitResolve } = _a3, args = __rest$
|
|
52870
|
+
const _a3 = opt || {}, { awaitResolve } = _a3, args = __rest$3(_a3, ["awaitResolve"]);
|
|
52864
52871
|
const fn2 = awaitResolve ? lastValueFrom : firstValueFrom;
|
|
52865
52872
|
return fn2(this._query(payload, args));
|
|
52866
52873
|
}
|
|
@@ -53279,9 +53286,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
53279
53286
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
53280
53287
|
});
|
|
53281
53288
|
};
|
|
53282
|
-
const moduleKey$
|
|
53283
|
-
const module$
|
|
53284
|
-
name: moduleKey$
|
|
53289
|
+
const moduleKey$4 = "context";
|
|
53290
|
+
const module$5 = {
|
|
53291
|
+
name: moduleKey$4,
|
|
53285
53292
|
configure: () => new ContextModuleConfigurator(),
|
|
53286
53293
|
initialize: function(args) {
|
|
53287
53294
|
var _a3;
|
|
@@ -53318,7 +53325,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
53318
53325
|
};
|
|
53319
53326
|
const enableContext = (configurator, builder) => {
|
|
53320
53327
|
configurator.addConfig({
|
|
53321
|
-
module: module$
|
|
53328
|
+
module: module$5,
|
|
53322
53329
|
configure: (contextConfigurator) => {
|
|
53323
53330
|
builder && contextConfigurator.addConfigBuilder(builder);
|
|
53324
53331
|
}
|
|
@@ -53862,7 +53869,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
53862
53869
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
53863
53870
|
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
53864
53871
|
};
|
|
53865
|
-
var __rest$
|
|
53872
|
+
var __rest$2 = globalThis && globalThis.__rest || function(s2, e2) {
|
|
53866
53873
|
var t2 = {};
|
|
53867
53874
|
for (var p2 in s2)
|
|
53868
53875
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
@@ -53954,7 +53961,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
53954
53961
|
return this._query(args, options);
|
|
53955
53962
|
}
|
|
53956
53963
|
queryAsync(payload, opt) {
|
|
53957
|
-
const _a3 = opt || {}, { awaitResolve } = _a3, args = __rest$
|
|
53964
|
+
const _a3 = opt || {}, { awaitResolve } = _a3, args = __rest$2(_a3, ["awaitResolve"]);
|
|
53958
53965
|
const fn2 = awaitResolve ? lastValueFrom : firstValueFrom;
|
|
53959
53966
|
return fn2(this._query(payload, args));
|
|
53960
53967
|
}
|
|
@@ -54133,7 +54140,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
54133
54140
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
54134
54141
|
});
|
|
54135
54142
|
};
|
|
54136
|
-
const module$
|
|
54143
|
+
const module$4 = {
|
|
54137
54144
|
name: moduleName,
|
|
54138
54145
|
configure: () => new ServiceDiscoveryConfigurator({
|
|
54139
54146
|
clientCtor: ServiceDiscoveryClient,
|
|
@@ -54552,7 +54559,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
54552
54559
|
function buildTransforms(transforms) {
|
|
54553
54560
|
var transformsArray = Array.isArray(transforms) ? transforms : [transforms];
|
|
54554
54561
|
var transformsResult = transformsArray.reduce(function(result, transform) {
|
|
54555
|
-
var aggregate = transform.aggregate, filter2 = transform.filter, groupBy = transform.groupBy, rest = __rest$
|
|
54562
|
+
var aggregate = transform.aggregate, filter2 = transform.filter, groupBy = transform.groupBy, rest = __rest$6(transform, ["aggregate", "filter", "groupBy"]);
|
|
54556
54563
|
var unsupportedKeys = Object.keys(rest);
|
|
54557
54564
|
if (unsupportedKeys.length) {
|
|
54558
54565
|
throw new Error("Unsupported transform(s): ".concat(unsupportedKeys));
|
|
@@ -55334,7 +55341,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
55334
55341
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
55335
55342
|
});
|
|
55336
55343
|
};
|
|
55337
|
-
const moduleKey$
|
|
55344
|
+
const moduleKey$3 = "services";
|
|
55338
55345
|
const createDefaultClient = (http, serviceDiscovery) => (name2) => __awaiter$6(void 0, void 0, void 0, function* () {
|
|
55339
55346
|
if (http.hasClient(name2)) {
|
|
55340
55347
|
return http.createClient(name2);
|
|
@@ -55344,8 +55351,8 @@ var __privateMethod = (obj, member, method) => {
|
|
|
55344
55351
|
}
|
|
55345
55352
|
throw Error(`failed to create http client for service ${name2}`);
|
|
55346
55353
|
});
|
|
55347
|
-
const module$
|
|
55348
|
-
name: moduleKey$
|
|
55354
|
+
const module$3 = {
|
|
55355
|
+
name: moduleKey$3,
|
|
55349
55356
|
configure: () => new ApiConfigurator(),
|
|
55350
55357
|
initialize: ({ ref, config: config2, requireInstance, hasModule }) => __awaiter$6(void 0, void 0, void 0, function* () {
|
|
55351
55358
|
if (!config2.createClient) {
|
|
@@ -55359,10 +55366,10 @@ var __privateMethod = (obj, member, method) => {
|
|
|
55359
55366
|
return new ApiProvider(config2);
|
|
55360
55367
|
})
|
|
55361
55368
|
};
|
|
55362
|
-
const services = module$
|
|
55369
|
+
const services = module$3;
|
|
55363
55370
|
class FrameworkConfigurator extends ModulesConfigurator {
|
|
55364
55371
|
constructor() {
|
|
55365
|
-
super([module$
|
|
55372
|
+
super([module$8, module$6, module$7, module$4, services, module$5]);
|
|
55366
55373
|
this.logger = new ModuleConsoleLogger("FrameworkConfigurator");
|
|
55367
55374
|
}
|
|
55368
55375
|
configureHttp(...args) {
|
|
@@ -55986,7 +55993,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
55986
55993
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
55987
55994
|
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
55988
55995
|
};
|
|
55989
|
-
var __rest = globalThis && globalThis.__rest || function(s2, e2) {
|
|
55996
|
+
var __rest$1 = globalThis && globalThis.__rest || function(s2, e2) {
|
|
55990
55997
|
var t2 = {};
|
|
55991
55998
|
for (var p2 in s2)
|
|
55992
55999
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
@@ -56078,7 +56085,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
56078
56085
|
return this._query(args, options);
|
|
56079
56086
|
}
|
|
56080
56087
|
queryAsync(payload, opt) {
|
|
56081
|
-
const _a3 = opt || {}, { awaitResolve } = _a3, args = __rest(_a3, ["awaitResolve"]);
|
|
56088
|
+
const _a3 = opt || {}, { awaitResolve } = _a3, args = __rest$1(_a3, ["awaitResolve"]);
|
|
56082
56089
|
const fn2 = awaitResolve ? lastValueFrom : firstValueFrom;
|
|
56083
56090
|
return fn2(this._query(payload, args));
|
|
56084
56091
|
}
|
|
@@ -56168,13 +56175,13 @@ var __privateMethod = (obj, member, method) => {
|
|
|
56168
56175
|
const handleFetchManifest = (provider) => (action$) => action$.pipe(filter$1(actions.fetchManifest.match), switchMap((action) => {
|
|
56169
56176
|
const { payload: appKey, meta: { update } } = action;
|
|
56170
56177
|
const subject = from$1(provider.getAppManifest(appKey)).pipe(filter$1((x2) => !!x2), share());
|
|
56171
|
-
return concat(subject.pipe(map((manifest) => actions.setManifest(manifest, update))), subject.pipe(last(), map((manifest) => actions.fetchManifest.success(manifest)))).pipe(catchError((err) => {
|
|
56178
|
+
return concat$1(subject.pipe(map((manifest) => actions.setManifest(manifest, update))), subject.pipe(last(), map((manifest) => actions.fetchManifest.success(manifest)))).pipe(catchError((err) => {
|
|
56172
56179
|
return of(actions.fetchManifest.failure(err));
|
|
56173
56180
|
}));
|
|
56174
56181
|
}));
|
|
56175
56182
|
const handleFetchConfig = (provider) => (action$) => action$.pipe(filter$1(actions.fetchConfig.match), switchMap(({ payload: appKey }) => {
|
|
56176
56183
|
const subject = from$1(provider.getAppConfig(appKey)).pipe(filter$1((x2) => !!x2), share());
|
|
56177
|
-
return concat(subject.pipe(map((manifest) => actions.setConfig(manifest))), subject.pipe(last(), map((manifest) => actions.fetchConfig.success(manifest)))).pipe(catchError((err) => {
|
|
56184
|
+
return concat$1(subject.pipe(map((manifest) => actions.setConfig(manifest))), subject.pipe(last(), map((manifest) => actions.fetchConfig.success(manifest)))).pipe(catchError((err) => {
|
|
56178
56185
|
return of(actions.fetchConfig.failure(err));
|
|
56179
56186
|
}));
|
|
56180
56187
|
}));
|
|
@@ -56610,9 +56617,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
56610
56617
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
56611
56618
|
});
|
|
56612
56619
|
};
|
|
56613
|
-
const moduleKey$
|
|
56614
|
-
const module$
|
|
56615
|
-
name: moduleKey$
|
|
56620
|
+
const moduleKey$2 = "app";
|
|
56621
|
+
const module$2 = {
|
|
56622
|
+
name: moduleKey$2,
|
|
56616
56623
|
configure: () => new AppConfigurator(),
|
|
56617
56624
|
initialize: (args) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
56618
56625
|
const config2 = yield args.config.createConfig(args);
|
|
@@ -56669,8 +56676,8 @@ var __privateMethod = (obj, member, method) => {
|
|
|
56669
56676
|
_createHttpClient(init2) {
|
|
56670
56677
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56671
56678
|
const http = yield init2.requireInstance("http");
|
|
56672
|
-
if (http.hasClient(moduleKey$
|
|
56673
|
-
return http.createClient(moduleKey$
|
|
56679
|
+
if (http.hasClient(moduleKey$2)) {
|
|
56680
|
+
return http.createClient(moduleKey$2);
|
|
56674
56681
|
} else {
|
|
56675
56682
|
const serviceDiscovery = yield init2.requireInstance("serviceDiscovery");
|
|
56676
56683
|
try {
|
|
@@ -56722,7 +56729,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
56722
56729
|
_AppConfigurator_configBuilders = /* @__PURE__ */ new WeakMap();
|
|
56723
56730
|
const enableAppModule = (configurator, builder) => {
|
|
56724
56731
|
configurator.addConfig({
|
|
56725
|
-
module: module$
|
|
56732
|
+
module: module$2,
|
|
56726
56733
|
configure: (appConfigurator) => {
|
|
56727
56734
|
builder && appConfigurator.addConfigBuilder(builder);
|
|
56728
56735
|
}
|
|
@@ -59705,10 +59712,10 @@ var __privateMethod = (obj, member, method) => {
|
|
|
59705
59712
|
}
|
|
59706
59713
|
_NavigationProvider_navigator = /* @__PURE__ */ new WeakMap(), _NavigationProvider_basePathname = /* @__PURE__ */ new WeakMap();
|
|
59707
59714
|
const version = "3.0.5";
|
|
59708
|
-
const moduleKey = "navigation";
|
|
59709
|
-
const module = {
|
|
59715
|
+
const moduleKey$1 = "navigation";
|
|
59716
|
+
const module$1 = {
|
|
59710
59717
|
version: new SemanticVersion(version),
|
|
59711
|
-
name: moduleKey,
|
|
59718
|
+
name: moduleKey$1,
|
|
59712
59719
|
configure: (ref) => {
|
|
59713
59720
|
const configurator = new NavigationConfigurator();
|
|
59714
59721
|
if (ref) {
|
|
@@ -59731,8 +59738,384 @@ var __privateMethod = (obj, member, method) => {
|
|
|
59731
59738
|
config2.basename = basenameOrOptions;
|
|
59732
59739
|
}
|
|
59733
59740
|
} : basenameOrOptions;
|
|
59734
|
-
configurator.addConfig(Object.assign({ module }, options));
|
|
59741
|
+
configurator.addConfig(Object.assign({ module: module$1 }, options));
|
|
59742
|
+
};
|
|
59743
|
+
async function getBytes(stream, onChunk) {
|
|
59744
|
+
const reader = stream.getReader();
|
|
59745
|
+
let result;
|
|
59746
|
+
while (!(result = await reader.read()).done) {
|
|
59747
|
+
onChunk(result.value);
|
|
59748
|
+
}
|
|
59749
|
+
}
|
|
59750
|
+
function getLines(onLine) {
|
|
59751
|
+
let buffer;
|
|
59752
|
+
let position2;
|
|
59753
|
+
let fieldLength;
|
|
59754
|
+
let discardTrailingNewline = false;
|
|
59755
|
+
return function onChunk(arr) {
|
|
59756
|
+
if (buffer === void 0) {
|
|
59757
|
+
buffer = arr;
|
|
59758
|
+
position2 = 0;
|
|
59759
|
+
fieldLength = -1;
|
|
59760
|
+
} else {
|
|
59761
|
+
buffer = concat(buffer, arr);
|
|
59762
|
+
}
|
|
59763
|
+
const bufLength = buffer.length;
|
|
59764
|
+
let lineStart = 0;
|
|
59765
|
+
while (position2 < bufLength) {
|
|
59766
|
+
if (discardTrailingNewline) {
|
|
59767
|
+
if (buffer[position2] === 10) {
|
|
59768
|
+
lineStart = ++position2;
|
|
59769
|
+
}
|
|
59770
|
+
discardTrailingNewline = false;
|
|
59771
|
+
}
|
|
59772
|
+
let lineEnd = -1;
|
|
59773
|
+
for (; position2 < bufLength && lineEnd === -1; ++position2) {
|
|
59774
|
+
switch (buffer[position2]) {
|
|
59775
|
+
case 58:
|
|
59776
|
+
if (fieldLength === -1) {
|
|
59777
|
+
fieldLength = position2 - lineStart;
|
|
59778
|
+
}
|
|
59779
|
+
break;
|
|
59780
|
+
case 13:
|
|
59781
|
+
discardTrailingNewline = true;
|
|
59782
|
+
case 10:
|
|
59783
|
+
lineEnd = position2;
|
|
59784
|
+
break;
|
|
59785
|
+
}
|
|
59786
|
+
}
|
|
59787
|
+
if (lineEnd === -1) {
|
|
59788
|
+
break;
|
|
59789
|
+
}
|
|
59790
|
+
onLine(buffer.subarray(lineStart, lineEnd), fieldLength);
|
|
59791
|
+
lineStart = position2;
|
|
59792
|
+
fieldLength = -1;
|
|
59793
|
+
}
|
|
59794
|
+
if (lineStart === bufLength) {
|
|
59795
|
+
buffer = void 0;
|
|
59796
|
+
} else if (lineStart !== 0) {
|
|
59797
|
+
buffer = buffer.subarray(lineStart);
|
|
59798
|
+
position2 -= lineStart;
|
|
59799
|
+
}
|
|
59800
|
+
};
|
|
59801
|
+
}
|
|
59802
|
+
function getMessages(onId, onRetry, onMessage) {
|
|
59803
|
+
let message = newMessage();
|
|
59804
|
+
const decoder = new TextDecoder();
|
|
59805
|
+
return function onLine(line2, fieldLength) {
|
|
59806
|
+
if (line2.length === 0) {
|
|
59807
|
+
onMessage === null || onMessage === void 0 ? void 0 : onMessage(message);
|
|
59808
|
+
message = newMessage();
|
|
59809
|
+
} else if (fieldLength > 0) {
|
|
59810
|
+
const field = decoder.decode(line2.subarray(0, fieldLength));
|
|
59811
|
+
const valueOffset = fieldLength + (line2[fieldLength + 1] === 32 ? 2 : 1);
|
|
59812
|
+
const value = decoder.decode(line2.subarray(valueOffset));
|
|
59813
|
+
switch (field) {
|
|
59814
|
+
case "data":
|
|
59815
|
+
message.data = message.data ? message.data + "\n" + value : value;
|
|
59816
|
+
break;
|
|
59817
|
+
case "event":
|
|
59818
|
+
message.event = value;
|
|
59819
|
+
break;
|
|
59820
|
+
case "id":
|
|
59821
|
+
onId(message.id = value);
|
|
59822
|
+
break;
|
|
59823
|
+
case "retry":
|
|
59824
|
+
const retry = parseInt(value, 10);
|
|
59825
|
+
if (!isNaN(retry)) {
|
|
59826
|
+
onRetry(message.retry = retry);
|
|
59827
|
+
}
|
|
59828
|
+
break;
|
|
59829
|
+
}
|
|
59830
|
+
}
|
|
59831
|
+
};
|
|
59832
|
+
}
|
|
59833
|
+
function concat(a2, b2) {
|
|
59834
|
+
const res = new Uint8Array(a2.length + b2.length);
|
|
59835
|
+
res.set(a2);
|
|
59836
|
+
res.set(b2, a2.length);
|
|
59837
|
+
return res;
|
|
59838
|
+
}
|
|
59839
|
+
function newMessage() {
|
|
59840
|
+
return {
|
|
59841
|
+
data: "",
|
|
59842
|
+
event: "",
|
|
59843
|
+
id: "",
|
|
59844
|
+
retry: void 0
|
|
59845
|
+
};
|
|
59846
|
+
}
|
|
59847
|
+
var __rest = globalThis && globalThis.__rest || function(s2, e2) {
|
|
59848
|
+
var t2 = {};
|
|
59849
|
+
for (var p2 in s2)
|
|
59850
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
59851
|
+
t2[p2] = s2[p2];
|
|
59852
|
+
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
59853
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
|
|
59854
|
+
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
59855
|
+
t2[p2[i2]] = s2[p2[i2]];
|
|
59856
|
+
}
|
|
59857
|
+
return t2;
|
|
59858
|
+
};
|
|
59859
|
+
const EventStreamContentType = "text/event-stream";
|
|
59860
|
+
const DefaultRetryInterval = 1e3;
|
|
59861
|
+
const LastEventId = "last-event-id";
|
|
59862
|
+
function fetchEventSource(input, _a3) {
|
|
59863
|
+
var { signal: inputSignal, headers: inputHeaders, onopen: inputOnOpen, onmessage, onclose, onerror, openWhenHidden, fetch: inputFetch } = _a3, rest = __rest(_a3, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
59864
|
+
return new Promise((resolve, reject) => {
|
|
59865
|
+
const headers = Object.assign({}, inputHeaders);
|
|
59866
|
+
if (!headers.accept) {
|
|
59867
|
+
headers.accept = EventStreamContentType;
|
|
59868
|
+
}
|
|
59869
|
+
let curRequestController;
|
|
59870
|
+
function onVisibilityChange() {
|
|
59871
|
+
curRequestController.abort();
|
|
59872
|
+
if (!document.hidden) {
|
|
59873
|
+
create();
|
|
59874
|
+
}
|
|
59875
|
+
}
|
|
59876
|
+
if (!openWhenHidden) {
|
|
59877
|
+
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
59878
|
+
}
|
|
59879
|
+
let retryInterval = DefaultRetryInterval;
|
|
59880
|
+
let retryTimer = 0;
|
|
59881
|
+
function dispose() {
|
|
59882
|
+
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
59883
|
+
window.clearTimeout(retryTimer);
|
|
59884
|
+
curRequestController.abort();
|
|
59885
|
+
}
|
|
59886
|
+
inputSignal === null || inputSignal === void 0 ? void 0 : inputSignal.addEventListener("abort", () => {
|
|
59887
|
+
dispose();
|
|
59888
|
+
resolve();
|
|
59889
|
+
});
|
|
59890
|
+
const fetch2 = inputFetch !== null && inputFetch !== void 0 ? inputFetch : window.fetch;
|
|
59891
|
+
const onopen = inputOnOpen !== null && inputOnOpen !== void 0 ? inputOnOpen : defaultOnOpen;
|
|
59892
|
+
async function create() {
|
|
59893
|
+
var _a4;
|
|
59894
|
+
curRequestController = new AbortController();
|
|
59895
|
+
try {
|
|
59896
|
+
const response = await fetch2(input, Object.assign(Object.assign({}, rest), { headers, signal: curRequestController.signal }));
|
|
59897
|
+
await onopen(response);
|
|
59898
|
+
await getBytes(response.body, getLines(getMessages((id) => {
|
|
59899
|
+
if (id) {
|
|
59900
|
+
headers[LastEventId] = id;
|
|
59901
|
+
} else {
|
|
59902
|
+
delete headers[LastEventId];
|
|
59903
|
+
}
|
|
59904
|
+
}, (retry) => {
|
|
59905
|
+
retryInterval = retry;
|
|
59906
|
+
}, onmessage)));
|
|
59907
|
+
onclose === null || onclose === void 0 ? void 0 : onclose();
|
|
59908
|
+
dispose();
|
|
59909
|
+
resolve();
|
|
59910
|
+
} catch (err) {
|
|
59911
|
+
if (!curRequestController.signal.aborted) {
|
|
59912
|
+
try {
|
|
59913
|
+
const interval = (_a4 = onerror === null || onerror === void 0 ? void 0 : onerror(err)) !== null && _a4 !== void 0 ? _a4 : retryInterval;
|
|
59914
|
+
window.clearTimeout(retryTimer);
|
|
59915
|
+
retryTimer = window.setTimeout(create, interval);
|
|
59916
|
+
} catch (innerErr) {
|
|
59917
|
+
dispose();
|
|
59918
|
+
reject(innerErr);
|
|
59919
|
+
}
|
|
59920
|
+
}
|
|
59921
|
+
}
|
|
59922
|
+
}
|
|
59923
|
+
create();
|
|
59924
|
+
});
|
|
59925
|
+
}
|
|
59926
|
+
function defaultOnOpen(response) {
|
|
59927
|
+
const contentType = response.headers.get("content-type");
|
|
59928
|
+
if (!(contentType === null || contentType === void 0 ? void 0 : contentType.startsWith(EventStreamContentType))) {
|
|
59929
|
+
throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${contentType}`);
|
|
59930
|
+
}
|
|
59931
|
+
}
|
|
59932
|
+
const CACHED_ITEMS_MAX = 300;
|
|
59933
|
+
const setupEventSource = async (config2, subject, abort) => {
|
|
59934
|
+
const token2 = await config2.options.accessTokenFactory();
|
|
59935
|
+
fetchEventSource(config2.url, {
|
|
59936
|
+
headers: {
|
|
59937
|
+
Authorization: `Bearer ${token2}`
|
|
59938
|
+
},
|
|
59939
|
+
openWhenHidden: true,
|
|
59940
|
+
signal: abort.signal,
|
|
59941
|
+
onmessage: async (eventSourceMessage) => {
|
|
59942
|
+
const data = eventSourceMessage.data;
|
|
59943
|
+
try {
|
|
59944
|
+
const parsed = JSON.parse(data);
|
|
59945
|
+
const values = subject.getValue();
|
|
59946
|
+
subject.next(
|
|
59947
|
+
[
|
|
59948
|
+
{ ...parsed, eventSourceId: eventSourceMessage.id, read: false },
|
|
59949
|
+
...values
|
|
59950
|
+
].slice(0, CACHED_ITEMS_MAX)
|
|
59951
|
+
);
|
|
59952
|
+
} catch (ex) {
|
|
59953
|
+
console.error("Failed to parse message: ", ex);
|
|
59954
|
+
}
|
|
59955
|
+
},
|
|
59956
|
+
onclose: () => {
|
|
59957
|
+
if (config2.options.reconnect) {
|
|
59958
|
+
throw new Error("Connection closed, reconnecting.");
|
|
59959
|
+
}
|
|
59960
|
+
}
|
|
59961
|
+
}).then(() => {
|
|
59962
|
+
if (config2.options.reconnect) {
|
|
59963
|
+
setTimeout(() => setupEventSource(config2, subject, abort), 5e3);
|
|
59964
|
+
}
|
|
59965
|
+
});
|
|
59966
|
+
return {
|
|
59967
|
+
abort,
|
|
59968
|
+
subject
|
|
59969
|
+
};
|
|
59735
59970
|
};
|
|
59971
|
+
class Connection {
|
|
59972
|
+
constructor() {
|
|
59973
|
+
this.abort = new AbortController();
|
|
59974
|
+
this.messageList = new BehaviorSubject([]);
|
|
59975
|
+
this.setReadState = async (eventId, read) => {
|
|
59976
|
+
const currentValues = await firstValueFrom(this.messageList);
|
|
59977
|
+
const newValues = [...currentValues];
|
|
59978
|
+
const currentEventIndex = newValues.findIndex((e2) => e2.id === eventId);
|
|
59979
|
+
if (currentEventIndex >= 0) {
|
|
59980
|
+
newValues[currentEventIndex] = {
|
|
59981
|
+
...newValues[currentEventIndex],
|
|
59982
|
+
read
|
|
59983
|
+
};
|
|
59984
|
+
} else {
|
|
59985
|
+
newValues.push({
|
|
59986
|
+
...newValues[currentEventIndex],
|
|
59987
|
+
read
|
|
59988
|
+
});
|
|
59989
|
+
}
|
|
59990
|
+
this.messageList.next(newValues);
|
|
59991
|
+
};
|
|
59992
|
+
this.setAllRead = async () => {
|
|
59993
|
+
const currentValues = await firstValueFrom(this.messageList);
|
|
59994
|
+
const newValues = [...currentValues].map((v2) => ({ ...v2, read: true }));
|
|
59995
|
+
this.messageList.next(newValues);
|
|
59996
|
+
};
|
|
59997
|
+
}
|
|
59998
|
+
get messageList$() {
|
|
59999
|
+
return this.messageList.asObservable();
|
|
60000
|
+
}
|
|
60001
|
+
}
|
|
60002
|
+
class SseModuleProvider {
|
|
60003
|
+
constructor(config2) {
|
|
60004
|
+
__privateAdd(this, _config, void 0);
|
|
60005
|
+
__privateAdd(this, _connections, {});
|
|
60006
|
+
__privateSet(this, _config, config2);
|
|
60007
|
+
}
|
|
60008
|
+
connect(name2) {
|
|
60009
|
+
if (!(name2 in __privateGet(this, _connections))) {
|
|
60010
|
+
__privateGet(this, _connections)[name2] = new Connection();
|
|
60011
|
+
const options = __privateGet(this, _config).endpoints[name2];
|
|
60012
|
+
this.createConnection(name2, options);
|
|
60013
|
+
}
|
|
60014
|
+
return __privateGet(this, _connections)[name2];
|
|
60015
|
+
}
|
|
60016
|
+
createConnection(name2, options) {
|
|
60017
|
+
const config2 = __privateGet(this, _connections)[name2];
|
|
60018
|
+
setupEventSource(options, config2.messageList, config2.abort).catch(
|
|
60019
|
+
(err) => console.error(`Failed to set up connection for ${name2}:`, err)
|
|
60020
|
+
);
|
|
60021
|
+
}
|
|
60022
|
+
}
|
|
60023
|
+
_config = new WeakMap();
|
|
60024
|
+
_connections = new WeakMap();
|
|
60025
|
+
class SseModuleConfigBuilder extends ModuleConfigBuilder {
|
|
60026
|
+
addEndpoint(name2, config2) {
|
|
60027
|
+
this._config.addEndpoint(name2, config2);
|
|
60028
|
+
}
|
|
60029
|
+
}
|
|
60030
|
+
class SseConfigurator {
|
|
60031
|
+
constructor() {
|
|
60032
|
+
__privateAdd(this, _builderCallbacks, []);
|
|
60033
|
+
__privateAdd(this, _endpoints, {});
|
|
60034
|
+
}
|
|
60035
|
+
/**
|
|
60036
|
+
* register SSE endpoint configuration.
|
|
60037
|
+
*/
|
|
60038
|
+
addEndpoint(name2, config2) {
|
|
60039
|
+
__privateGet(this, _endpoints)[name2] = config2;
|
|
60040
|
+
}
|
|
60041
|
+
/**
|
|
60042
|
+
* add callback for building config on when configurator is creating config.
|
|
60043
|
+
* {@link SseConfigurator.createConfig}
|
|
60044
|
+
*/
|
|
60045
|
+
onCreateConfig(cb) {
|
|
60046
|
+
__privateGet(this, _builderCallbacks).push(cb);
|
|
60047
|
+
}
|
|
60048
|
+
/**
|
|
60049
|
+
* normally executed in `init` phase of module, which creates configuration to the module provider.
|
|
60050
|
+
* cycles threw all registered configuration builders.
|
|
60051
|
+
* await all registered hub configurations.
|
|
60052
|
+
*/
|
|
60053
|
+
async createConfig(init2) {
|
|
60054
|
+
for (const cb of __privateGet(this, _builderCallbacks)) {
|
|
60055
|
+
const builder = new SseModuleConfigBuilder(
|
|
60056
|
+
init2,
|
|
60057
|
+
this
|
|
60058
|
+
);
|
|
60059
|
+
await Promise.resolve(cb(builder));
|
|
60060
|
+
}
|
|
60061
|
+
return { endpoints: __privateGet(this, _endpoints) };
|
|
60062
|
+
}
|
|
60063
|
+
}
|
|
60064
|
+
_builderCallbacks = new WeakMap();
|
|
60065
|
+
_endpoints = new WeakMap();
|
|
60066
|
+
const moduleKey = "sse";
|
|
60067
|
+
const module = {
|
|
60068
|
+
name: moduleKey,
|
|
60069
|
+
configure: () => new SseConfigurator(),
|
|
60070
|
+
initialize: async (init2) => {
|
|
60071
|
+
const config2 = await init2.config.createConfig(init2);
|
|
60072
|
+
return new SseModuleProvider(config2);
|
|
60073
|
+
}
|
|
60074
|
+
};
|
|
60075
|
+
const configureFromFramework = async (args, builder) => {
|
|
60076
|
+
const authProvider = await builder.requireInstance("auth");
|
|
60077
|
+
const events = await builder.requireInstance("event");
|
|
60078
|
+
const serviceDiscovery = await builder.requireInstance("serviceDiscovery");
|
|
60079
|
+
events.dispatchEvent(
|
|
60080
|
+
"onSseActivated",
|
|
60081
|
+
new CustomEvent("onSseActivated", { detail: { name: args.name } })
|
|
60082
|
+
);
|
|
60083
|
+
const service = await serviceDiscovery.resolveService(args.name);
|
|
60084
|
+
builder.addEndpoint(args.name, {
|
|
60085
|
+
url: service.uri,
|
|
60086
|
+
options: {
|
|
60087
|
+
accessTokenFactory: async () => {
|
|
60088
|
+
const token2 = await authProvider.acquireAccessToken({
|
|
60089
|
+
scopes: service.defaultScopes
|
|
60090
|
+
});
|
|
60091
|
+
if (!token2) {
|
|
60092
|
+
throw Error("failed to acquire access token");
|
|
60093
|
+
}
|
|
60094
|
+
return token2;
|
|
60095
|
+
},
|
|
60096
|
+
reconnect: true
|
|
60097
|
+
}
|
|
60098
|
+
});
|
|
60099
|
+
};
|
|
60100
|
+
function enableSse(configurator, name2, optionsOrCallback) {
|
|
60101
|
+
if (typeof optionsOrCallback === "function") {
|
|
60102
|
+
configurator.addConfig({
|
|
60103
|
+
module,
|
|
60104
|
+
configure: (sseConfigurator) => {
|
|
60105
|
+
sseConfigurator.onCreateConfig(optionsOrCallback);
|
|
60106
|
+
}
|
|
60107
|
+
});
|
|
60108
|
+
} else {
|
|
60109
|
+
configurator.addConfig({
|
|
60110
|
+
module,
|
|
60111
|
+
configure: (sseConfigurator) => {
|
|
60112
|
+
sseConfigurator.onCreateConfig(
|
|
60113
|
+
(builder) => configureFromFramework({ name: name2 }, builder)
|
|
60114
|
+
);
|
|
60115
|
+
}
|
|
60116
|
+
});
|
|
60117
|
+
}
|
|
60118
|
+
}
|
|
59736
60119
|
const configure = async (config2) => {
|
|
59737
60120
|
config2.logger.level = 2;
|
|
59738
60121
|
config2.configureServiceDiscovery({
|
|
@@ -59752,6 +60135,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
59752
60135
|
enableAppModule(config2);
|
|
59753
60136
|
enableNavigation(config2);
|
|
59754
60137
|
enableContext(config2);
|
|
60138
|
+
enableSse(config2, "activity");
|
|
59755
60139
|
config2.onConfigured(() => {
|
|
59756
60140
|
console.log("framework config done");
|
|
59757
60141
|
});
|
|
@@ -62759,10 +63143,10 @@ var __privateMethod = (obj, member, method) => {
|
|
|
62759
63143
|
borderTop: shorthand(border2.top),
|
|
62760
63144
|
borderLeft: shorthand(border2.left),
|
|
62761
63145
|
borderRight: shorthand(border2.right),
|
|
62762
|
-
borderBottomLeftRadius: border2 === null || border2 === void 0
|
|
62763
|
-
borderTopLeftRadius: border2 === null || border2 === void 0
|
|
62764
|
-
borderBottomRightRadius: border2 === null || border2 === void 0
|
|
62765
|
-
borderTopRightRadius: border2 === null || border2 === void 0
|
|
63146
|
+
borderBottomLeftRadius: border2 === null || border2 === void 0 || (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
|
|
63147
|
+
borderTopLeftRadius: border2 === null || border2 === void 0 || (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
|
|
63148
|
+
borderBottomRightRadius: border2 === null || border2 === void 0 || (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
|
|
63149
|
+
borderTopRightRadius: border2 === null || border2 === void 0 || (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
|
|
62766
63150
|
});
|
|
62767
63151
|
default:
|
|
62768
63152
|
return nt({});
|
|
@@ -62913,7 +63297,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
62913
63297
|
var theme = _ref.theme;
|
|
62914
63298
|
var states = theme.states, clickbound = theme.clickbound;
|
|
62915
63299
|
var focus2 = states.focus, hover2 = states.hover, disabled2 = states.disabled;
|
|
62916
|
-
return nt(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), clickbound === null || clickbound === void 0
|
|
63300
|
+
return nt(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), clickbound === null || clickbound === void 0 || (_clickbound$offset = clickbound.offset) === null || _clickbound$offset === void 0 ? void 0 : _clickbound$offset.top, clickbound === null || clickbound === void 0 || (_clickbound$offset2 = clickbound.offset) === null || _clickbound$offset2 === void 0 ? void 0 : _clickbound$offset2.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover2.background, (_hover$typography = hover2.typography) === null || _hover$typography === void 0 ? void 0 : _hover$typography.color, bordersTemplate(hover2 === null || hover2 === void 0 ? void 0 : hover2.border), outlineTemplate(focus2.outline), outlineTemplate(focus2.outline), disabled2.background, bordersTemplate(disabled2.border), typographyTemplate(disabled2.typography), disabled2.background);
|
|
62917
63301
|
});
|
|
62918
63302
|
var Button$2 = /* @__PURE__ */ reactExports.forwardRef(function Button2(_ref2, ref) {
|
|
62919
63303
|
var _ref2$color = _ref2.color, color = _ref2$color === void 0 ? "primary" : _ref2$color, _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "contained" : _ref2$variant, children = _ref2.children, _ref2$disabled = _ref2.disabled, disabled2 = _ref2$disabled === void 0 ? false : _ref2$disabled, href = _ref2.href, _ref2$tabIndex = _ref2.tabIndex, tabIndex = _ref2$tabIndex === void 0 ? 0 : _ref2$tabIndex, _ref2$fullWidth = _ref2.fullWidth, fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth, other = _objectWithoutProperties(_ref2, _excluded$t);
|
|
@@ -63241,18 +63625,21 @@ var __privateMethod = (obj, member, method) => {
|
|
|
63241
63625
|
}
|
|
63242
63626
|
return getNearestOverflowAncestor(parentNode);
|
|
63243
63627
|
}
|
|
63244
|
-
function getOverflowAncestors(node2, list) {
|
|
63628
|
+
function getOverflowAncestors(node2, list, traverseIframes) {
|
|
63245
63629
|
var _node$ownerDocument2;
|
|
63246
63630
|
if (list === void 0) {
|
|
63247
63631
|
list = [];
|
|
63248
63632
|
}
|
|
63633
|
+
if (traverseIframes === void 0) {
|
|
63634
|
+
traverseIframes = true;
|
|
63635
|
+
}
|
|
63249
63636
|
const scrollableAncestor = getNearestOverflowAncestor(node2);
|
|
63250
63637
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
63251
63638
|
const win = getWindow(scrollableAncestor);
|
|
63252
63639
|
if (isBody) {
|
|
63253
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement ? getOverflowAncestors(win.frameElement) : []);
|
|
63640
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
63254
63641
|
}
|
|
63255
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
63642
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
63256
63643
|
}
|
|
63257
63644
|
function activeElement(doc) {
|
|
63258
63645
|
let activeElement2 = doc.activeElement;
|
|
@@ -66228,7 +66615,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
66228
66615
|
variant: isSelected ? "contained" : "outlined",
|
|
66229
66616
|
onClick: function onClick(e2) {
|
|
66230
66617
|
var _childElement$props, _childElement$props$o;
|
|
66231
|
-
(_childElement$props = childElement.props) === null || _childElement$props === void 0
|
|
66618
|
+
(_childElement$props = childElement.props) === null || _childElement$props === void 0 || (_childElement$props$o = _childElement$props.onClick) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props, e2);
|
|
66232
66619
|
var updatedSelection = [index2];
|
|
66233
66620
|
if (multiple) {
|
|
66234
66621
|
updatedSelection = pickedIndexes.includes(index2) ? pickedIndexes.filter(function(i2) {
|
|
@@ -67532,7 +67919,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
67532
67919
|
isOpen: open
|
|
67533
67920
|
});
|
|
67534
67921
|
});
|
|
67535
|
-
onToggle === null || onToggle === void 0
|
|
67922
|
+
onToggle === null || onToggle === void 0 || onToggle(open);
|
|
67536
67923
|
}, [onToggle]);
|
|
67537
67924
|
var setOnToggle = function setOnToggle2(onToggle2) {
|
|
67538
67925
|
setState(function(prevState) {
|
|
@@ -69146,7 +69533,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
69146
69533
|
}
|
|
69147
69534
|
return provider;
|
|
69148
69535
|
};
|
|
69149
|
-
const useApps = (args) => {
|
|
69536
|
+
const useApps$1 = (args) => {
|
|
69150
69537
|
const provider = useAppProvider();
|
|
69151
69538
|
const { value: manifests, complete } = useObservableState(reactExports.useMemo(() => provider.getAllAppManifests(), [provider]));
|
|
69152
69539
|
const apps = reactExports.useMemo(() => {
|
|
@@ -70907,7 +71294,6 @@ var __privateMethod = (obj, member, method) => {
|
|
|
70907
71294
|
}
|
|
70908
71295
|
setLoading(true);
|
|
70909
71296
|
const el = document.createElement("div");
|
|
70910
|
-
el.style.height = "30%";
|
|
70911
71297
|
(_a3 = ref.current) == null ? void 0 : _a3.appendChild(el);
|
|
70912
71298
|
const appModule = renderApplication(el);
|
|
70913
71299
|
setLoading(false);
|
|
@@ -70932,6 +71318,37 @@ var __privateMethod = (obj, member, method) => {
|
|
|
70932
71318
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorViewer, { error })
|
|
70933
71319
|
] });
|
|
70934
71320
|
}
|
|
71321
|
+
const AppContext = reactExports.createContext({
|
|
71322
|
+
isLoading: false,
|
|
71323
|
+
apps: void 0
|
|
71324
|
+
});
|
|
71325
|
+
const AppProvider = ({ children }) => {
|
|
71326
|
+
const { apps, isLoading } = useApps$1({ includeHidden: true });
|
|
71327
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71328
|
+
AppContext.Provider,
|
|
71329
|
+
{
|
|
71330
|
+
value: {
|
|
71331
|
+
apps,
|
|
71332
|
+
isLoading
|
|
71333
|
+
},
|
|
71334
|
+
children
|
|
71335
|
+
}
|
|
71336
|
+
);
|
|
71337
|
+
};
|
|
71338
|
+
const useApps = ({
|
|
71339
|
+
includeHidden
|
|
71340
|
+
} = {}) => {
|
|
71341
|
+
const { apps: allApps, isLoading } = reactExports.useContext(AppContext);
|
|
71342
|
+
return reactExports.useMemo(() => {
|
|
71343
|
+
if (!allApps)
|
|
71344
|
+
return { isLoading, apps: [] };
|
|
71345
|
+
if (includeHidden) {
|
|
71346
|
+
return { isLoading, apps: allApps };
|
|
71347
|
+
}
|
|
71348
|
+
const apps = allApps.filter((app) => !app.hide);
|
|
71349
|
+
return { isLoading, apps };
|
|
71350
|
+
}, [allApps, includeHidden, isLoading]);
|
|
71351
|
+
};
|
|
70935
71352
|
const AppViewer = () => {
|
|
70936
71353
|
const { appKey } = useParams();
|
|
70937
71354
|
const { apps } = useApps({ includeHidden: true });
|
|
@@ -71037,8 +71454,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
71037
71454
|
const Styled = {
|
|
71038
71455
|
NavigationContainer: st.div`
|
|
71039
71456
|
display: grid;
|
|
71040
|
-
grid-template-columns: ${(props) => props.open ? "286px 1fr
|
|
71041
|
-
grid-column-gap:
|
|
71457
|
+
grid-template-columns: ${(props) => props.open ? "286px 1fr" : "86px 1fr"};
|
|
71458
|
+
grid-column-gap: ${tokens.spacings.comfortable.large};
|
|
71459
|
+
padding-right: ${tokens.spacings.comfortable.large};
|
|
71042
71460
|
`,
|
|
71043
71461
|
RootContainer: st.div`
|
|
71044
71462
|
display: grid;
|
|
@@ -71053,12 +71471,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
71053
71471
|
return isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(EquinorLoader, { text: "Loading apps..." }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled.RootContainer, { children: [
|
|
71054
71472
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Header, {}),
|
|
71055
71473
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled.NavigationContainer, { open, children: [
|
|
71056
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71057
|
-
Navigation,
|
|
71058
|
-
{
|
|
71059
|
-
setOpen
|
|
71060
|
-
}
|
|
71061
|
-
),
|
|
71474
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Navigation, { setOpen }),
|
|
71062
71475
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { paddingTop: "32px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Outlet, {}) })
|
|
71063
71476
|
] })
|
|
71064
71477
|
] });
|
|
@@ -74496,7 +74909,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
74496
74909
|
}
|
|
74497
74910
|
var _a3 = opts || {};
|
|
74498
74911
|
_a3.formatters;
|
|
74499
|
-
var parseOpts = __rest$
|
|
74912
|
+
var parseOpts = __rest$6(_a3, ["formatters"]);
|
|
74500
74913
|
this.ast = IntlMessageFormat2.__parse(message, __assign$2(__assign$2({}, parseOpts), { locale: this.resolvedLocale }));
|
|
74501
74914
|
} else {
|
|
74502
74915
|
this.ast = message;
|
|
@@ -75303,7 +75716,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
75303
75716
|
function createFormattedDateTimePartsComponent(name2) {
|
|
75304
75717
|
var ComponentParts = function(props) {
|
|
75305
75718
|
var intl = useIntl();
|
|
75306
|
-
var value = props.value, children = props.children, formatProps = __rest$
|
|
75719
|
+
var value = props.value, children = props.children, formatProps = __rest$6(props, ["value", "children"]);
|
|
75307
75720
|
var date = typeof value === "string" ? new Date(value || 0) : value;
|
|
75308
75721
|
var formattedParts = name2 === "formatDate" ? intl.formatDateToParts(date, formatProps) : intl.formatTimeToParts(date, formatProps);
|
|
75309
75722
|
return children(formattedParts);
|
|
@@ -75314,7 +75727,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
75314
75727
|
function createFormattedComponent(name2) {
|
|
75315
75728
|
var Component = function(props) {
|
|
75316
75729
|
var intl = useIntl();
|
|
75317
|
-
var value = props.value, children = props.children, formatProps = __rest$
|
|
75730
|
+
var value = props.value, children = props.children, formatProps = __rest$6(
|
|
75318
75731
|
props,
|
|
75319
75732
|
["value", "children"]
|
|
75320
75733
|
);
|
|
@@ -75372,7 +75785,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
75372
75785
|
return chunks;
|
|
75373
75786
|
};
|
|
75374
75787
|
var createIntl = function(_a3, cache) {
|
|
75375
|
-
var rawDefaultRichTextElements = _a3.defaultRichTextElements, config2 = __rest$
|
|
75788
|
+
var rawDefaultRichTextElements = _a3.defaultRichTextElements, config2 = __rest$6(_a3, ["defaultRichTextElements"]);
|
|
75376
75789
|
var defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(rawDefaultRichTextElements);
|
|
75377
75790
|
var coreIntl = createIntl$1(__assign$2(__assign$2(__assign$2({}, DEFAULT_INTL_CONFIG), config2), { defaultRichTextElements }), cache);
|
|
75378
75791
|
var resolvedConfig = {
|
|
@@ -75435,6 +75848,60 @@ var __privateMethod = (obj, member, method) => {
|
|
|
75435
75848
|
createFormattedComponent("formatDisplayName");
|
|
75436
75849
|
createFormattedDateTimePartsComponent("formatDate");
|
|
75437
75850
|
createFormattedDateTimePartsComponent("formatTime");
|
|
75851
|
+
globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
75852
|
+
function adopt(value) {
|
|
75853
|
+
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
75854
|
+
resolve(value);
|
|
75855
|
+
});
|
|
75856
|
+
}
|
|
75857
|
+
return new (P2 || (P2 = Promise))(function(resolve, reject) {
|
|
75858
|
+
function fulfilled(value) {
|
|
75859
|
+
try {
|
|
75860
|
+
step(generator.next(value));
|
|
75861
|
+
} catch (e2) {
|
|
75862
|
+
reject(e2);
|
|
75863
|
+
}
|
|
75864
|
+
}
|
|
75865
|
+
function rejected(value) {
|
|
75866
|
+
try {
|
|
75867
|
+
step(generator["throw"](value));
|
|
75868
|
+
} catch (e2) {
|
|
75869
|
+
reject(e2);
|
|
75870
|
+
}
|
|
75871
|
+
}
|
|
75872
|
+
function step(result) {
|
|
75873
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
75874
|
+
}
|
|
75875
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
75876
|
+
});
|
|
75877
|
+
};
|
|
75878
|
+
globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
75879
|
+
function adopt(value) {
|
|
75880
|
+
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
75881
|
+
resolve(value);
|
|
75882
|
+
});
|
|
75883
|
+
}
|
|
75884
|
+
return new (P2 || (P2 = Promise))(function(resolve, reject) {
|
|
75885
|
+
function fulfilled(value) {
|
|
75886
|
+
try {
|
|
75887
|
+
step(generator.next(value));
|
|
75888
|
+
} catch (e2) {
|
|
75889
|
+
reject(e2);
|
|
75890
|
+
}
|
|
75891
|
+
}
|
|
75892
|
+
function rejected(value) {
|
|
75893
|
+
try {
|
|
75894
|
+
step(generator["throw"](value));
|
|
75895
|
+
} catch (e2) {
|
|
75896
|
+
reject(e2);
|
|
75897
|
+
}
|
|
75898
|
+
}
|
|
75899
|
+
function step(result) {
|
|
75900
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
75901
|
+
}
|
|
75902
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
75903
|
+
});
|
|
75904
|
+
};
|
|
75438
75905
|
const routes = [
|
|
75439
75906
|
{
|
|
75440
75907
|
path: "/",
|
|
@@ -75466,16 +75933,16 @@ var __privateMethod = (obj, member, method) => {
|
|
|
75466
75933
|
});
|
|
75467
75934
|
return () => sub.unsubscribe();
|
|
75468
75935
|
}, [event]);
|
|
75469
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IntlProvider$1, { locale: navigator.language, children: /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EdsProvider, { density, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75936
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IntlProvider$1, { locale: navigator.language, children: /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(EdsProvider, { density, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75470
75937
|
RouterProvider,
|
|
75471
75938
|
{
|
|
75472
75939
|
router,
|
|
75473
75940
|
fallbackElement: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Invalid route." })
|
|
75474
75941
|
}
|
|
75475
|
-
) }) }) });
|
|
75942
|
+
) }) }) }) });
|
|
75476
75943
|
}
|
|
75477
75944
|
const target = document.getElementById("root");
|
|
75478
|
-
|
|
75945
|
+
createRoot(target).render(
|
|
75479
75946
|
/* @__PURE__ */ jsxRuntimeExports.jsx(React.StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75480
75947
|
Framework,
|
|
75481
75948
|
{
|