@luigi-project/client 2.14.3-dev.20240850849 → 2.14.3-dev.20240870027
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/luigi-client.d.ts +54 -51
- package/luigi-client.js +1 -2
- package/luigi-client.js.map +1 -1
- package/luigi-element.d.ts +67 -94
- package/luigi-element.js +158 -2
- package/package.json +1 -1
- package/luigi-client.js.LICENSE.txt +0 -14
- package/luigi-element.js.map +0 -1
package/luigi-client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Type definitions for Luigi Client
|
|
2
|
+
|
|
2
3
|
export as namespace LuigiClient;
|
|
3
4
|
|
|
4
5
|
export declare interface AuthData {
|
|
@@ -9,79 +10,83 @@ export declare interface AuthData {
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export declare interface ConfirmationModalSettings {
|
|
13
|
+
type?: string;
|
|
14
|
+
header?: string;
|
|
12
15
|
body?: string;
|
|
13
16
|
buttonConfirm?: string | boolean;
|
|
14
17
|
buttonDismiss?: string;
|
|
15
|
-
header?: string;
|
|
16
|
-
type?: string;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export declare interface ModalSettings {
|
|
20
|
-
height?: string;
|
|
21
|
-
keepPrevious?: boolean;
|
|
22
|
-
size?: 'fullscreen' | 'l' | 'm' | 's';
|
|
23
21
|
title?: string;
|
|
22
|
+
size?: 'fullscreen' | 'l' | 'm' | 's';
|
|
24
23
|
width?: string;
|
|
24
|
+
height?: string;
|
|
25
|
+
keepPrevious?: boolean;
|
|
26
|
+
closebtn_data_testid?: string;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
export declare interface SplitViewSettings {
|
|
28
|
-
collapsed?: boolean;
|
|
29
|
-
size?: number;
|
|
30
30
|
title?: string;
|
|
31
|
+
size?: number;
|
|
32
|
+
collapsed?: boolean;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
export
|
|
35
|
+
export enum SplitViewEvents {
|
|
36
|
+
'expand',
|
|
37
|
+
'collapse',
|
|
38
|
+
'resize',
|
|
39
|
+
'close'
|
|
40
|
+
}
|
|
34
41
|
|
|
35
42
|
export declare interface SplitViewInstance {
|
|
36
43
|
collapse: () => void;
|
|
37
|
-
exists: () => boolean;
|
|
38
44
|
expand: () => void;
|
|
45
|
+
setSize: (value: number) => void;
|
|
46
|
+
on: (key: SplitViewEvents, callback: () => void) => string; //
|
|
47
|
+
exists: () => boolean;
|
|
39
48
|
getSize: () => number;
|
|
40
49
|
isCollapsed: () => boolean;
|
|
41
50
|
isExpanded: () => boolean;
|
|
42
|
-
on: (key: SplitViewEvents, callback: () => void) => string;
|
|
43
|
-
setSize: (value: number) => void;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
export declare interface DrawerSettings {
|
|
47
|
-
backdrop?: boolean;
|
|
48
54
|
header?: any;
|
|
49
|
-
overlap?: boolean;
|
|
50
55
|
size?: 'l' | 'm' | 's' | 'xs';
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export declare interface NodeParams {
|
|
54
|
-
[key: string]: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export declare interface PathParams {
|
|
58
|
-
[key: string]: string;
|
|
56
|
+
backdrop?: boolean;
|
|
57
|
+
overlap?: boolean;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
export declare interface Context {
|
|
62
|
-
anchor?: string;
|
|
63
61
|
authData?: AuthData;
|
|
64
|
-
context?: {
|
|
62
|
+
context?: { parentNavigationContext?: string[] };
|
|
65
63
|
internal?: {
|
|
66
64
|
userSettings?: getUserSettings;
|
|
67
|
-
[key: string]: any;
|
|
68
65
|
};
|
|
69
66
|
nodeParams?: NodeParams;
|
|
70
67
|
pathParams?: PathParams;
|
|
68
|
+
anchor?: string;
|
|
71
69
|
[key: string]: any;
|
|
72
70
|
}
|
|
71
|
+
export declare interface NodeParams {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
}
|
|
73
74
|
|
|
74
75
|
export declare interface ClientPermissions {
|
|
75
76
|
[key: string]: any;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
export declare interface AlertSettings {
|
|
79
|
-
|
|
80
|
+
text?: string;
|
|
81
|
+
type: 'info' | 'success' | 'warning' | 'error';
|
|
80
82
|
links?: {
|
|
81
83
|
[key: string]: { text: string; url?: string; dismissKey?: string };
|
|
82
84
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
closeAfter?: number;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare interface PathParams {
|
|
89
|
+
[key: string]: string;
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
export declare interface CoreSearchParams {
|
|
@@ -269,7 +274,7 @@ export declare interface LinkManager {
|
|
|
269
274
|
* @example
|
|
270
275
|
* LuigiClient.linkManager().fromClosestContext().navigate('/users/groups/stakeholders')
|
|
271
276
|
*/
|
|
272
|
-
fromClosestContext: () =>
|
|
277
|
+
fromClosestContext: () => this;
|
|
273
278
|
|
|
274
279
|
/**
|
|
275
280
|
* Sets the current navigation context to that of a specific parent node which has the {@link navigation-configuration.md navigationContext} field declared in the navigation configuration. This navigation context is then used by the `navigate` function.
|
|
@@ -279,7 +284,7 @@ export declare interface LinkManager {
|
|
|
279
284
|
* @example
|
|
280
285
|
* LuigiClient.linkManager().fromContext('project').navigate('/settings')
|
|
281
286
|
*/
|
|
282
|
-
fromContext: (navigationContext: string) =>
|
|
287
|
+
fromContext: (navigationContext: string) => this;
|
|
283
288
|
|
|
284
289
|
/**
|
|
285
290
|
* Enables navigating to sibling nodes without knowing the absolute path
|
|
@@ -289,7 +294,7 @@ export declare interface LinkManager {
|
|
|
289
294
|
* @example
|
|
290
295
|
* LuigiClient.linkManager().fromParent().navigate('/sibling')
|
|
291
296
|
*/
|
|
292
|
-
fromParent: () =>
|
|
297
|
+
fromParent: () => this;
|
|
293
298
|
|
|
294
299
|
/**
|
|
295
300
|
* Sets the current navigation base to the parent node that is defined as virtualTree. This method works only when the currently active micro frontend is inside a virtualTree.
|
|
@@ -299,7 +304,7 @@ export declare interface LinkManager {
|
|
|
299
304
|
* @example
|
|
300
305
|
* LuigiClient.linkManager().fromVirtualTreeRoot().navigate('/users/groups/stakeholders')
|
|
301
306
|
*/
|
|
302
|
-
fromVirtualTreeRoot: () =>
|
|
307
|
+
fromVirtualTreeRoot: () => this;
|
|
303
308
|
|
|
304
309
|
/**
|
|
305
310
|
* Discards the active view and navigates back to the last visited view. Works with preserved views, and also acts as the substitute of the browser **back** button. **goBackContext** is only available when using preserved views.
|
|
@@ -387,7 +392,7 @@ export declare interface LinkManager {
|
|
|
387
392
|
* // Can be chained with context setting functions such as:
|
|
388
393
|
* LuigiClient.linkManager().fromContext("currentTeam").withParams({foo: "bar"}).navigate("path")
|
|
389
394
|
*/
|
|
390
|
-
withParams: (nodeParams: NodeParams) =>
|
|
395
|
+
withParams: (nodeParams: NodeParams) => this;
|
|
391
396
|
|
|
392
397
|
/**
|
|
393
398
|
* Sets options to customise route changing behaviour. The parameters are used by the `navigate` function. Use it optionally in combination with any of the navigation functions and receive it as part of the context object in Luigi Client.
|
|
@@ -402,7 +407,7 @@ export declare interface LinkManager {
|
|
|
402
407
|
* { preventContextUpdate:true, preventHistoryEntry: true }
|
|
403
408
|
* ).navigate('/overview')
|
|
404
409
|
*/
|
|
405
|
-
withOptions: (options: RouteChangingOptions) =>
|
|
410
|
+
withOptions: (options: RouteChangingOptions) => this;
|
|
406
411
|
|
|
407
412
|
/**
|
|
408
413
|
* Opens a view in a modal. You can specify the modal's title and size. If you don't specify the title, it is the node label. If there is no node label, the title remains empty. The default size of the modal is `l`, which means 80%. You can also use `m` (60%) and `s` (40%) to set the modal size. Optionally, use it in combination with any of the navigation functions.
|
|
@@ -479,7 +484,7 @@ export declare interface LinkManager {
|
|
|
479
484
|
* LuigiClient.linkManager().withoutSync().navigate('/projects/xy/foobar');
|
|
480
485
|
* LuigiClient.linkManager().withoutSync().fromClosestContext().navigate('settings');
|
|
481
486
|
*/
|
|
482
|
-
withoutSync: () =>
|
|
487
|
+
withoutSync: () => this;
|
|
483
488
|
|
|
484
489
|
/**
|
|
485
490
|
* Updates path of the modalPathParam when internal navigation occurs
|
|
@@ -495,7 +500,7 @@ export declare interface LinkManager {
|
|
|
495
500
|
* @example
|
|
496
501
|
* LuigiClient.linkManager().newTab().navigate('/projects/xy/foobar');
|
|
497
502
|
*/
|
|
498
|
-
newTab: () =>
|
|
503
|
+
newTab: () => this;
|
|
499
504
|
|
|
500
505
|
/**
|
|
501
506
|
* Keeps the URL's query parameters for a navigation request.
|
|
@@ -505,7 +510,7 @@ export declare interface LinkManager {
|
|
|
505
510
|
* LuigiClient.linkManager().preserveQueryParams(true).navigate('/projects/xy/foobar');
|
|
506
511
|
* LuigiClient.linkManager().preserveQueryParams(false).navigate('/projects/xy/foobar');
|
|
507
512
|
*/
|
|
508
|
-
preserveQueryParams: (preserve: boolean) =>
|
|
513
|
+
preserveQueryParams: (preserve: boolean) => this;
|
|
509
514
|
|
|
510
515
|
/**
|
|
511
516
|
* Gets the luigi route associated with the current micro frontend.
|
|
@@ -583,7 +588,7 @@ export declare interface StorageManager {
|
|
|
583
588
|
* @example
|
|
584
589
|
* LuigiClient.storageManager().getAllKeys().then((keys) => console.log('keys are : '+keys));
|
|
585
590
|
*/
|
|
586
|
-
getAllKeys: () => Promise<
|
|
591
|
+
getAllKeys: () => Promise<String[]>;
|
|
587
592
|
}
|
|
588
593
|
|
|
589
594
|
/**
|
|
@@ -605,8 +610,8 @@ export type addInitListener = (initFn: (context: Context, origin?: string) => vo
|
|
|
605
610
|
* @param {string} id the id that was returned by the `addInitListener` function.
|
|
606
611
|
* @memberof Lifecycle
|
|
607
612
|
*/
|
|
608
|
-
export function removeInitListener(id:
|
|
609
|
-
export type removeInitListener = (id:
|
|
613
|
+
export function removeInitListener(id: number): boolean;
|
|
614
|
+
export type removeInitListener = (id: number) => boolean;
|
|
610
615
|
|
|
611
616
|
/**
|
|
612
617
|
* Registers a listener called with the context object when the URL is changed. For example, you can use this when changing environments in a context switcher in order for the micro frontend to do an API call to the environment picked.
|
|
@@ -701,7 +706,6 @@ export type getEventData = () => Context;
|
|
|
701
706
|
*/
|
|
702
707
|
export function getContext(): Context;
|
|
703
708
|
export type getContext = () => Context;
|
|
704
|
-
|
|
705
709
|
/**
|
|
706
710
|
* Sets node parameters in Luigi Core. The parameters will be added to the URL.
|
|
707
711
|
* @param {Object} params
|
|
@@ -710,8 +714,8 @@ export type getContext = () => Context;
|
|
|
710
714
|
* LuigiClient.addNodeParams({luigi:'rocks'});
|
|
711
715
|
* LuigiClient.addNodeParams({luigi:'rocks', false});
|
|
712
716
|
*/
|
|
713
|
-
export function addNodeParams(params: NodeParams, keepBrowserHistory:
|
|
714
|
-
export type addNodeParams = (params: NodeParams, keepBrowserHistory:
|
|
717
|
+
export function addNodeParams(params: NodeParams, keepBrowserHistory: Boolean): void;
|
|
718
|
+
export type addNodeParams = (params: NodeParams, keepBrowserHistory: Boolean) => void;
|
|
715
719
|
|
|
716
720
|
/**
|
|
717
721
|
* Returns the node parameters of the active URL.
|
|
@@ -732,8 +736,8 @@ export type getNodeParams = (shouldDesanitise?: boolean) => NodeParams;
|
|
|
732
736
|
* @returns {Object} node parameters, where the object property name is the node parameter name without the prefix, and its value is the value of the node parameter. For example `{sort: 'asc', page: 3}`
|
|
733
737
|
* @memberof Lifecycle
|
|
734
738
|
*/
|
|
735
|
-
export function getActiveFeatureToggles():
|
|
736
|
-
export type getActiveFeatureToggles = () =>
|
|
739
|
+
export function getActiveFeatureToggles(): Array<String>;
|
|
740
|
+
export type getActiveFeatureToggles = () => Array<String>;
|
|
737
741
|
|
|
738
742
|
/**
|
|
739
743
|
* Returns the dynamic path parameters of the active URL.
|
|
@@ -754,8 +758,8 @@ export type getPathParams = () => PathParams;
|
|
|
754
758
|
* @example
|
|
755
759
|
* LuigiClient.getAnchor();
|
|
756
760
|
*/
|
|
757
|
-
export function getAnchor():
|
|
758
|
-
export type getAnchor = () =>
|
|
761
|
+
export function getAnchor(): String;
|
|
762
|
+
export type getAnchor = () => String;
|
|
759
763
|
|
|
760
764
|
/**
|
|
761
765
|
* Sets the anchor of active URL.
|
|
@@ -764,8 +768,8 @@ export type getAnchor = () => string;
|
|
|
764
768
|
* @example
|
|
765
769
|
* LuigiClient.setAnchor('luigi');
|
|
766
770
|
*/
|
|
767
|
-
export function setAnchor(anchor:
|
|
768
|
-
export type setAnchor = (anchor:
|
|
771
|
+
export function setAnchor(anchor: String): void;
|
|
772
|
+
export type setAnchor = (anchor: String) => void;
|
|
769
773
|
|
|
770
774
|
/**
|
|
771
775
|
* Allows you to change node labels within the same {@link navigation-advanced.md#view-groups view group}, e.g. in your node config: `label: 'my Node {viewGroupData.vg1}'`.
|
|
@@ -796,8 +800,8 @@ export type getCoreSearchParams = () => CoreSearchParams;
|
|
|
796
800
|
* LuigiClient.addCoreSearchParams({luigi:'rocks'});
|
|
797
801
|
* LuigiClient.addCoreSearchParams({luigi:'rocks', false});
|
|
798
802
|
*/
|
|
799
|
-
export function addCoreSearchParams(searchParams: CoreSearchParams, keepBrowserHistory:
|
|
800
|
-
export type addCoreSearchParams = (searchParams: CoreSearchParams, keepBrowserHistory:
|
|
803
|
+
export function addCoreSearchParams(searchParams: CoreSearchParams, keepBrowserHistory: Boolean): void;
|
|
804
|
+
export type addCoreSearchParams = (searchParams: CoreSearchParams, keepBrowserHistory: Boolean) => void;
|
|
801
805
|
|
|
802
806
|
/**
|
|
803
807
|
* Returns the current client permissions as specified in the navigation node or an empty object. For details, see [Node parameters](navigation-parameters-reference.md).
|
|
@@ -854,7 +858,6 @@ export type uxManager = () => UxManager;
|
|
|
854
858
|
*/
|
|
855
859
|
export function storageManager(): StorageManager;
|
|
856
860
|
export type storageManager = () => StorageManager;
|
|
857
|
-
|
|
858
861
|
/**
|
|
859
862
|
* Returns the current user settings.
|
|
860
863
|
* @returns {Object} current user settings
|
package/luigi-client.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/*! For license information please see luigi-client.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return function(){"use strict";var e={939:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LuigiClientBase=void 0,t.LuigiClientBase=class{constructor(){this.promises={}}setPromise(e,t){this.promises[e]=t}getPromise(e){return this.promises[e]}}},673:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.helpers=void 0,t.helpers=new class{constructor(){this.listeners=[],this.origin="",window.addEventListener("message",(e=>{if(e.data.msg)if("custom"===e.data.msg){const t=this.convertCustomMessageInternalToUser(e.data);this.listeners.filter((e=>e.name===t.id)).map((e=>e.eventFn(t,e.listenerId)))}else this.listeners.filter((t=>t.name===e.data.msg)).map((t=>t.eventFn(e,t.listenerId)))}))}convertCustomMessageInternalToUser(e){return e.data}convertCustomMessageUserToInternal(e){return{msg:"custom",data:e}}convertStorageMessageToInternal(e){return{msg:"storage",data:e}}addEventListener(e,t){const n=this.getRandomId();return this.listeners.push({name:e,eventFn:t,listenerId:n}),`${n}`}removeEventListener(e){return!!this.listeners.find((t=>t.listenerId===e))&&(this.listeners=this.listeners.filter((t=>t.listenerId!==e)),!0)}getRandomId(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}isFunction(e){return"function"==typeof e}isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}getLuigiCoreDomain(){return this.origin}setLuigiCoreDomain(e){e&&"null"!==e&&(this.origin=e)}setTargetOrigin(e){this.setLuigiCoreDomain(e)}sendPostMessageToLuigiCore(e){if(this.origin)try{window.parent.postMessage(e,this.origin)}catch(t){console.warn("Unable to post message "+e+" to Luigi Core from origin "+this.origin+": "+t)}else console.warn('There is no target origin set. You can specify the target origin by calling LuigiClient.setTargetOrigin("targetorigin") in your micro frontend.')}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}deSanitizeParamsMap(e){return Object.entries(e).reduce(((e,t)=>(e[this.deSanitizeParam(t[0])]=this.deSanitizeParam(t[1]),e)),{})}deSanitizeParam(e=""){return String(e).replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'").replaceAll("/","/")}}},689:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(827).__importStar(n(224)),i=n(939),o=n(673);class s extends i.LuigiClientBase{constructor(){super(),this.luigiInitialized=!1,this.defaultContextKeys=["context","internal","nodeParams","pathParams","searchParams"],this.setCurrentContext(this.defaultContextKeys.reduce(((e,t)=>(e[t]={},e)),{})),this._onContextUpdatedFns={},this._onInactiveFns={},this._onInitFns={},this.authData={},this._isDeferInitDefined()||this.luigiClientInit()}_isDeferInitDefined(){return window.document.head.hasAttribute("defer-luigi-init")}isLuigiClientInitialized(){return this.luigiInitialized}luigiClientInit(){if(this.luigiInitialized)return void console.warn("Luigi Client has been already initialized");const e=e=>{for(let t=0;t<this.defaultContextKeys.length;t++){let n=this.defaultContextKeys[t];try{"string"==typeof e[n]&&(e[n]=JSON.parse(e[n]))}catch(t){console.info("unable to parse luigi context data for",n,e[n],t)}}this.setCurrentContext(e)},t=e=>{e&&(this.authData=e)};o.helpers.addEventListener("luigi.init",(n=>{e(n.data),t(n.data.authData),o.helpers.setLuigiCoreDomain(n.origin),this.luigiInitialized=!0,this._notifyInit(n.origin),o.helpers.sendPostMessageToLuigiCore({msg:"luigi.init.ok"})})),o.helpers.addEventListener("luigi-client.inactive-microfrontend",(e=>{this._notifyInactive(e.origin)})),o.helpers.addEventListener("luigi.auth.tokenIssued",(e=>{t(e.data.authData)})),o.helpers.addEventListener("luigi.navigate",(t=>{if(e(t.data),!this.currentContext.internal.isNavigateBack&&!this.currentContext.withoutSync){const e=window.location.hash;history.replaceState({luigiInduced:!0},"",t.data.viewUrl),window.dispatchEvent(new PopStateEvent("popstate",{state:"luiginavigation"})),window.location.hash!==e&&window.dispatchEvent(new HashChangeEvent("hashchange"))}this.currentContext.withoutSync&&Object.assign(this.currentContext.context,{viewUrl:t.data.viewUrl?t.data.viewUrl:void 0,pathParams:t.data.pathParams?t.data.pathParams:void 0}),this._notifyUpdate(),o.helpers.sendPostMessageToLuigiCore({msg:"luigi.navigate.ok"})})),window.parent.postMessage({msg:"luigi.get-context",clientVersion:r.version},"*"),this._tpcCheck()}_tpcCheck(){let e,t,n="enabled",r=document.cookie;r&&(e=r.split(";").map((e=>e.trim())).find((e=>"luigiCookie=true"==e))),"luigiCookie=true"===e&&(t=e.split("=")[0],document.cookie=t+"=; Max-Age=-99999999; SameSite=None; Secure"),document.cookie="luigiCookie=true; SameSite=None; Secure",r=document.cookie,r&&(e=r.split(";").map((e=>e.trim())).find((e=>"luigiCookie=true"==e))),"luigiCookie=true"===e?(window.parent.postMessage({msg:"luigi.third-party-cookie",tpc:n},"*"),document.cookie=t+"=; Max-Age=-99999999; SameSite=None; Secure"):(n="disabled",window.parent.postMessage({msg:"luigi.third-party-cookie",tpc:n},"*"),console.warn("Third party cookies are not supported!"))}_callAllFns(e,t,n){for(let r in e)e.hasOwnProperty(r)&&o.helpers.isFunction(e[r])&&e[r](t,n)}_notifyInit(e){this._callAllFns(this._onInitFns,this.currentContext.context,e)}_notifyUpdate(){this._callAllFns(this._onContextUpdatedFns,this.currentContext.context)}_notifyInactive(e){this._callAllFns(this._onInactiveFns,null,e)}setCurrentContext(e){this.currentContext=e}addInitListener(e){const t=o.helpers.getRandomId();return this._onInitFns[`${t}`]=e,this.luigiInitialized&&o.helpers.isFunction(e)&&e(this.currentContext.context,o.helpers.getLuigiCoreDomain()),t}removeInitListener(e){return!!this._onInitFns[e]&&(this._onInitFns[e]=void 0,!0)}addContextUpdateListener(e){const t=o.helpers.getRandomId();return this._onContextUpdatedFns[`${t}`]=e,this.luigiInitialized&&o.helpers.isFunction(e)&&e(this.currentContext.context),`${t}`}removeContextUpdateListener(e){return!!this._onContextUpdatedFns[e]&&(this._onContextUpdatedFns[e]=void 0,!0)}addInactiveListener(e){const t=o.helpers.getRandomId();return this._onInactiveFns[`${t}`]=e,`${t}`}removeInactiveListener(e){return!!this._onInactiveFns[e]&&(this._onInactiveFns[e]=void 0,!0)}addCustomMessageListener(e,t){return o.helpers.addEventListener(e,((e,n)=>t(e,n)))}removeCustomMessageListener(e){return o.helpers.removeEventListener(e)}getToken(){return this.authData.accessToken}getContext(){return this.getEventData()}getEventData(){return this.currentContext.context}getActiveFeatureToggles(){return this.currentContext.internal.activeFeatureToggleList}addNodeParams(e,t=!0){e&&o.helpers.sendPostMessageToLuigiCore({msg:"luigi.addNodeParams",data:e,keepBrowserHistory:t})}getNodeParams(e=!1){return e?o.helpers.deSanitizeParamsMap(this.currentContext.nodeParams):this.currentContext.nodeParams}getPathParams(){return this.currentContext.pathParams}getCoreSearchParams(){return this.currentContext.searchParams||{}}addCoreSearchParams(e,t=!0){e&&o.helpers.sendPostMessageToLuigiCore({msg:"luigi.addSearchParams",data:e,keepBrowserHistory:t})}getClientPermissions(){return this.currentContext.internal.clientPermissions||{}}setTargetOrigin(e){o.helpers.setTargetOrigin(e)}sendCustomMessage(e){const t=o.helpers.convertCustomMessageUserToInternal(e);o.helpers.sendPostMessageToLuigiCore(t)}getUserSettings(){return this.currentContext.internal.userSettings||{}}getAnchor(){return this.currentContext.internal.anchor||""}setAnchor(e){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.setAnchor",anchor:e})}setViewGroupData(e){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.setVGData",data:e})}}const a=new s;t.default=a},867:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(827),i=n(939),o=n(673),s=r.__importDefault(n(689)),a=n(663);class l extends i.LuigiClientBase{constructor(e,t){super(),Object.assign(this,e),this.options={anchor:"",errorSkipNavigation:!1,fromClosestContext:!1,fromContext:null,fromParent:!1,fromVirtualTreeRoot:!1,link:"",newTab:!1,nodeParams:{},preserveQueryParams:!1,preserveView:!1,preventContextUpdate:!1,preventHistoryEntry:!1,relative:!1},t&&Object.assign(this.options,t)}navigate(e,t,n,r,i,s){if(this.options.errorSkipNavigation)return void(this.options.errorSkipNavigation=!1);r&&i&&s&&console.warn("modalSettings, splitViewSettings and drawerSettings cannot be used together. Only modal setting will be taken into account."),this.options.preserveView=n;const a="/"!==e[0];if("/"===e&&(r||i||s))return void console.warn("Navigation with an absolute path prevented.");const l={msg:"luigi.navigation.open",sessionId:t,params:Object.assign(this.options,{link:e,relative:a,intent:o.helpers.hasIntent(e),modal:r,splitView:i,drawer:s})};o.helpers.sendPostMessageToLuigiCore(l)}updateModalPathInternalNavigation(e,t={},n=!1){if(!e)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const r={msg:"luigi.navigation.updateModalDataPath",params:Object.assign(this.options,{link:e,modal:t,history:n})};o.helpers.sendPostMessageToLuigiCore(r)}navigateToIntent(e,t={}){var n;let r="#?intent=";if(r+=e,t&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)){const e=Object.entries(t);if(e.length>0){r+="?";for(const[t,n]of e)r+=t+"="+n+"&";r=r.slice(0,-1)}}this.navigate(r)}openAsModal(e,t={}){o.helpers.addEventListener("luigi.navigation.modal.close",((e,t)=>{const n=this.getPromise("modal");n&&(n.resolveFn(e.data),this.setPromise("modal",void 0)),o.helpers.removeEventListener(t)}));const n={};return n.promise=new Promise(((e,t)=>{n.resolveFn=e,n.rejectFn=t})),this.setPromise("modal",n),this.navigate(e,"0",!0,t),n.promise}updateModalSettings(e={},t=!1){const n={msg:"luigi.navigation.updateModalSettings",updatedModalSettings:e,addHistoryEntry:t};o.helpers.sendPostMessageToLuigiCore(n)}openAsSplitView(e,t={}){return this.navigate(e,"0",!0,void 0,t),new a.splitViewHandle(t)}openAsDrawer(e,t={}){this.navigate(e,"0",!0,void 0,void 0,t)}fromContext(e){var t,n,r;return-1!==(null===(r=null===(n=null===(t=s.default.currentContext)||void 0===t?void 0:t.context)||void 0===n?void 0:n.parentNavigationContexts)||void 0===r?void 0:r.indexOf(e))?this.options.fromContext=e:(this.options.errorSkipNavigation=!0,console.error("Navigation not possible, navigationContext "+e+" not found.")),new l({currentContext:s.default.currentContext},structuredClone(this.options))}fromClosestContext(){var e,t,n;return(null===(n=null===(t=null===(e=s.default.currentContext)||void 0===e?void 0:e.context)||void 0===t?void 0:t.parentNavigationContexts)||void 0===n?void 0:n.length)?(this.options.fromContext=null,this.options.fromClosestContext=!0):console.error("Navigation not possible, no parent navigationContext found."),new l({currentContext:s.default.currentContext},structuredClone(this.options))}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,new l({currentContext:s.default.currentContext},structuredClone(this.options))}fromParent(){return this.options.fromParent=!0,new l({currentContext:s.default.currentContext},structuredClone(this.options))}withParams(e){return e&&Object.assign(this.options.nodeParams,e),new l({currentContext:s.default.currentContext},structuredClone(this.options))}withOptions(e){return o.helpers.isObject(e)?(void 0!==e.preventHistoryEntry&&(this.options.preventHistoryEntry=e.preventHistoryEntry),void 0!==e.preventContextUpdate&&(this.options.preventContextUpdate=e.preventContextUpdate),new l({currentContext:s.default.currentContext},structuredClone(this.options))):new l({currentContext:s.default.currentContext})}pathExists(e){const t=o.helpers.getRandomId(),n=this.getPromise("pathExistsPromises")||{};n[t]={resolveFn:function(){},then:function(e){this.resolveFn=e}},this.setPromise("pathExistsPromises",n),o.helpers.addEventListener("luigi.navigation.pathExists.answer",((e,n)=>{const r=e.data.data,i=this.getPromise("pathExistsPromises")||{};r.correlationId===t&&(i[r.correlationId]&&(i[r.correlationId].resolveFn(r.pathExists),delete i[r.correlationId],this.setPromise("pathExistsPromises",i)),o.helpers.removeEventListener(n))}));const r={msg:"luigi.navigation.pathExists",data:Object.assign(this.options,{id:t,link:e,intent:o.helpers.hasIntent(e),relative:"/"!==e[0]})};return o.helpers.sendPostMessageToLuigiCore(r),n[t]}hasBack(){var e,t;return!!(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).modal||0!==(null===(t=s.default.currentContext)||void 0===t?void 0:t.internal).viewStackSize}goBack(e){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.navigation.back",goBackContext:e&&JSON.stringify(e)})}withoutSync(){return this.options.withoutSync=!0,new l({currentContext:s.default.currentContext},structuredClone(this.options))}newTab(){return this.options.newTab=!0,new l({currentContext:s.default.currentContext},structuredClone(this.options))}preserveQueryParams(e=!1){return this.options.preserveQueryParams=e,new l({currentContext:s.default.currentContext},structuredClone(this.options))}getCurrentRoute(){const e=o.helpers.getRandomId(),t=this.getPromise("getCurrentRoute")||{};return t[e]={resolveFn:function(){},then:function(e){this.resolveFn=e}},this.setPromise("getCurrentRoute",t),o.helpers.addEventListener("luigi.navigation.currentRoute.answer",((t,n)=>{const r=t.data.data,i=this.getPromise("getCurrentRoute")||{};r.correlationId===e&&(i[r.correlationId]&&(i[r.correlationId].resolveFn(r.route),delete i[r.correlationId],this.setPromise("getCurrentRoute",i)),o.helpers.removeEventListener(n)),o.helpers.removeEventListener(n)})),o.helpers.sendPostMessageToLuigiCore({msg:"luigi.navigation.currentRoute",data:Object.assign(this.options,{id:e})}),t[e]}}const u=new l({currentContext:s.default.currentContext});t.default=u},663:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.splitViewHandle=void 0;const r=n(939),i=n(673);class o extends r.LuigiClientBase{constructor(e){super(),this.validSplitViewEvents=["close","collapse","expand","resize"],this.splitView={collapsed:!1,exists:!0,size:40},Object.assign(this.splitView,e),this.splitView.listeners=[i.helpers.addEventListener("luigi.navigation.splitview.internal",(e=>Object.assign(this.splitView,e.data.data)))],this.on("resize",(e=>this.splitView.size=e)),this.on("close",(()=>{this.splitView.listeners.forEach((e=>i.helpers.removeEventListener(e)))}))}collapse(){this.sendSplitViewEvent("collapse")}expand(){this.sendSplitViewEvent("expand")}close(){this.sendSplitViewEvent("close")}setSize(e){this.sendSplitViewEvent("resize",e)}on(e,t){if(!this.validSplitViewEvents.includes(e))return console.warn(e+" is not a valid split view event"),!1;const n=i.helpers.addEventListener(`luigi.navigation.splitview.${e}.ok`,(e=>{const n="number"==typeof e.data.data?e.data.data:void 0;t(n)}));return this.splitView.listeners.push(n),n}removeEventListener(e){return i.helpers.removeEventListener(e)}exists(){return this.splitView.exists}getSize(){return this.splitView.size}isCollapsed(){return this.splitView.collapsed}isExpanded(){return!this.splitView.collapsed}sendSplitViewEvent(e,t){i.helpers.sendPostMessageToLuigiCore({data:t||null,msg:`luigi.navigation.splitview.${e}`})}}t.splitViewHandle=o},178:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(939),i=n(673),o=new Map,s=new Map;class a extends r.LuigiClientBase{constructor(){super(),this.storageEventProcessor=new l,i.helpers.addEventListener("storage",(e=>this.storageEventProcessor.processEvent(e)))}setItem(e,t){return new Promise(((n,r)=>{this.storageEventProcessor.execute(n,r,"setItem",{key:e,value:t})}))}getItem(e){return new Promise(((t,n)=>{this.storageEventProcessor.execute(t,n,"getItem",{key:e})}))}removeItem(e){return new Promise(((t,n)=>{this.storageEventProcessor.execute(t,n,"removeItem",{key:e})}))}clear(){return new Promise(((e,t)=>{this.storageEventProcessor.execute(e,t,"clear",{})}))}has(e){return new Promise(((t,n)=>{this.storageEventProcessor.execute(t,n,"has",{key:e})}))}getAllKeys(){return new Promise(((e,t)=>{this.storageEventProcessor.execute(e,t,"getAllKeys",{})}))}}class l{processEvent(e){try{const t=e.data.data;if(!o.has(t.id))return void console.log("Impossible to find Promise method for message "+t.id);const n=o.get(t.id);"ERROR"===t.status?n.reject(t.result):n.resolve(t.result),o.delete(t.id)}catch(e){console.error(e)}}waitForSyncResult(e){const t=(new Date).getTime();for(;!s.has(e);)if((new Date).getTime()-t>1e4)throw"Storage operation is taking more than 1 second... Some problem with Luigi Core communication";const n=s.get(e);return o.delete(e),n}execute(e,t,n,r){let o=i.helpers.getRandomId();this.createPendingOperation(o,e,t),this.sendMessage(o,n,r)}createPendingOperation(e,t,n){o.set(e,{resolve:t,reject:n})}sendMessage(e,t,n){i.helpers.sendPostMessageToLuigiCore({msg:"storage",data:{id:e,operation:t,params:n}})}}const u=new a;t.default=u},736:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(827),i=n(939),o=n(673),s=r.__importDefault(n(689));class a extends i.LuigiClientBase{constructor(){super(),o.helpers.addEventListener("luigi.current-locale-changed",(e=>{var t;e.data.currentLocale&&(null===(t=s.default.currentContext)||void 0===t?void 0:t.internal)&&(s.default.currentContext.internal.currentLocale=e.data.currentLocale,s.default._notifyUpdate())}))}showLoadingIndicator(){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.show-loading-indicator"})}hideLoadingIndicator(){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.hide-loading-indicator"})}closeCurrentModal(){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.close-modal"})}addBackdrop(){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.add-backdrop"})}removeBackdrop(){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.remove-backdrop"})}setDirtyStatus(e){o.helpers.sendPostMessageToLuigiCore({msg:"luigi.set-page-dirty",dirty:e})}showConfirmationModal(e){o.helpers.addEventListener("luigi.ux.confirmationModal.hide",((e,t)=>{this.hideConfirmationModal(e.data.data),o.helpers.removeEventListener(t)})),o.helpers.sendPostMessageToLuigiCore({msg:"luigi.ux.confirmationModal.show",data:{settings:e}});const t={};return t.promise=new Promise(((e,n)=>{t.resolveFn=e,t.rejectFn=n})),this.setPromise("confirmationModal",t),t.promise}hideConfirmationModal(e){const t=this.getPromise("confirmationModal");t&&(e.confirmed?t.resolveFn():t.rejectFn(),this.setPromise("confirmationModal",void 0))}showAlert(e){const t=Object.assign({},e);t.id=o.helpers.getRandomId().toString(),o.helpers.addEventListener("luigi.ux.alert.hide",((e,n)=>{e.data.id===t.id&&(this.hideAlert(e.data),o.helpers.removeEventListener(n))})),(null==t?void 0:t.closeAfter)&&(null==t?void 0:t.closeAfter)<100&&(console.warn(`Message with id='${t.id}' has too small 'closeAfter' value. It needs to be at least 100ms.`),t.closeAfter=void 0),o.helpers.sendPostMessageToLuigiCore({msg:"luigi.ux.alert.show",data:{settings:t}});const n=this.getPromise("alerts")||{};return n[t.id]={},n[t.id].promise=new Promise((e=>{n[t.id].resolveFn=e})),this.setPromise("alerts",n),n[t.id].promise}hideAlert({id:e,dismissKey:t}){const n=this.getPromise("alerts");e&&n[e]&&(n[e].resolveFn(t||e),delete n[e],this.setPromise("alerts",n))}getCurrentLocale(){var e;return(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).currentLocale}setCurrentLocale(e){e&&o.helpers.sendPostMessageToLuigiCore({msg:"luigi.ux.set-current-locale",data:{currentLocale:e}})}isSplitView(){var e;return(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).splitView}isModal(){var e;return(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).modal}isDrawer(){var e;return(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).drawer}getCurrentTheme(){var e;return(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).currentTheme}getCSSVariables(){var e;return(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).cssVariables||{}}applyCSS(){var e;document.querySelectorAll("head style[luigi-injected]").forEach((e=>{e.remove()}));const t=(null===(e=s.default.currentContext)||void 0===e?void 0:e.internal).cssVariables;if(t){let e=":root {\n";Object.keys(t).forEach((n=>{const r=t[n];e+=(n.startsWith("--")?"":"--")+n+":"+r+";\n"})),e+="}";const n=document.createElement("style");n.setAttribute("luigi-injected","true"),n.innerHTML=e,document.head.appendChild(n)}}}const l=new a;t.default=l},827:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return y},__asyncGenerator:function(){return w},__asyncValues:function(){return x},__await:function(){return C},__awaiter:function(){return d},__classPrivateFieldGet:function(){return L},__classPrivateFieldSet:function(){return S},__createBinding:function(){return g},__decorate:function(){return a},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return c},__importDefault:function(){return _},__importStar:function(){return b},__makeTemplateObject:function(){return P},__metadata:function(){return u},__param:function(){return l},__read:function(){return f},__rest:function(){return s},__spread:function(){return v},__spreadArrays:function(){return m},__values:function(){return p}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function g(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof C?Promise.resolve(n.value.v).then(l,u):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function l(e){a("next",e)}function u(e){a("throw",e)}function d(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function y(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function b(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function L(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},224:function(e){e.exports=JSON.parse('{"name":"@luigi-project/client","description":"Javascript library supporting consumers of the Luigi framework","license":"Apache-2.0","main":"luigi-client.js","repository":{"type":"git","url":"ssh://github.com/SAP/luigi.git"},"publishConfig":{"tag":"luigi-client"},"keywords":["luigi","UI","extensibility","micro-frontends","microfrontends"],"version":"2.14.2"}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){var e=r;const t=n(827),i=n(673),o=t.__importDefault(n(689)),s=t.__importDefault(n(867)),a=t.__importDefault(n(178)),l=t.__importDefault(n(736)),u=new class{constructor(){window!==window.top&&("true"!==window.document.head.getAttribute("disable-luigi-history-handling")&&(history.pushState=history.replaceState.bind(history)),"true"!==window.document.head.getAttribute("disable-luigi-runtime-error-handling")&&window.addEventListener("error",(({filename:e,message:t,lineno:n,colno:r,error:o})=>{const s={errorObj:{filename:e,message:t,lineno:n,colno:r,error:o},msg:"luigi-runtime-error-handling"};i.helpers.sendPostMessageToLuigiCore(s)})))}addInitListener(e){return o.default.addInitListener(e)}removeInitListener(e){return o.default.removeInitListener(e)}addContextUpdateListener(e){return o.default.addContextUpdateListener(e)}removeContextUpdateListener(e){return o.default.removeContextUpdateListener(e)}getToken(){return o.default.getToken()}getEventData(){return o.default.getEventData()}getContext(){return o.default.getContext()}addNodeParams(e,t){return o.default.addNodeParams(e,t)}getNodeParams(e){return o.default.getNodeParams(e)}getActiveFeatureToggles(){return o.default.getActiveFeatureToggles()}getPathParams(){return o.default.getPathParams()}getCoreSearchParams(){return o.default.getCoreSearchParams()}addCoreSearchParams(e,t){return o.default.addCoreSearchParams(e,t)}getClientPermissions(){return o.default.getClientPermissions()}sendCustomMessage(e){return o.default.sendCustomMessage(e)}addCustomMessageListener(e,t){return o.default.addCustomMessageListener(e,t)}removeCustomMessageListener(e){return o.default.removeCustomMessageListener(e)}addInactiveListener(e){return o.default.addInactiveListener(e)}removeInactiveListener(e){return o.default.removeInactiveListener(e)}setTargetOrigin(e){return o.default.setTargetOrigin(e)}getUserSettings(){return o.default.getUserSettings()}isLuigiClientInitialized(){return o.default.isLuigiClientInitialized()}luigiClientInit(){return o.default.luigiClientInit()}getAnchor(){return o.default.getAnchor()}setAnchor(e){return o.default.setAnchor(e)}setViewGroupData(e){return o.default.setViewGroupData(e)}linkManager(){return s.default}uxManager(){return l.default}lifecycleManager(){return o.default}storageManager(){return a.default}};window.LuigiClient=u||{},e.default=u}(),r.default}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.LuigiClient=t():e.LuigiClient=t()}(self,(function(){return function(){"use strict";var e={707:function(e){e.exports={i8:"2.14.2"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var r={};return function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===e(i)?i:String(i)),o)}var i}n.d(r,{default:function(){return Q}});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.promises={}}var n,r;return n=e,(r=[{key:"setPromise",value:function(e,t){this.promises[e]=t}},{key:"getPromise",value:function(e){return this.promises[e]}}])&&t(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===i(o)?o:String(o)),r)}var o}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners=[],this.origin="";var t=function(e){if(e.data.msg)if("custom"===e.data.msg){var t=this.convertCustomMessageInternalToUser(e.data);this.listeners.filter((function(e){return e.name===t.id})).map((function(e){return e.eventFn(t,e.listenerId)}))}else this.listeners.filter((function(t){return t.name===e.data.msg})).map((function(t){return t.eventFn(e,t.listenerId)}))}.bind(this);window.addEventListener("message",t)}var t,n;return t=e,n=[{key:"convertCustomMessageInternalToUser",value:function(e){return e.data}},{key:"convertCustomMessageUserToInternal",value:function(e){return{msg:"custom",data:e}}},{key:"convertStorageMessageToInternal",value:function(e){return{msg:"storage",data:e}}},{key:"addEventListener",value:function(e,t){var n=this.getRandomId();return this.listeners.push({name:e,eventFn:t,listenerId:n}),n}},{key:"removeEventListener",value:function(e){return!!Boolean(this.listeners.find((function(t){return t.listenerId===e})))&&(this.listeners=this.listeners.filter((function(t){return t.listenerId!==e})),!0)}},{key:"getRandomId",value:function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}},{key:"isFunction",value:function(e){return"function"==typeof e}},{key:"isObject",value:function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{key:"getLuigiCoreDomain",value:function(){return this.origin}},{key:"setLuigiCoreDomain",value:function(e){e&&"null"!==e&&(this.origin=e)}},{key:"setTargetOrigin",value:function(e){this.setLuigiCoreDomain(e)}},{key:"sendPostMessageToLuigiCore",value:function(e){if(this.origin)try{window.parent.postMessage(e,this.origin)}catch(t){console.warn("Unable to post message "+e+" to Luigi Core from origin "+this.origin+": "+t)}else console.warn('There is no target origin set. You can specify the target origin by calling LuigiClient.setTargetOrigin("targetorigin") in your micro frontend.')}},{key:"hasIntent",value:function(e){return!!e&&e.toLowerCase().includes("#?intent=")}},{key:"deSanitizeParamsMap",value:function(e){var t=this;return Object.entries(e).reduce((function(e,n){return e[t.deSanitizeParam(n[0])]=t.deSanitizeParam(n[1]),e}),{})}},{key:"deSanitizeParam",value:function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'").replaceAll("/","/")}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),s=new u;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===l(o)?o:String(o)),r)}var o}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,r,o,i,a=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(o);if(i){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(e=a.call(this)).luigiInitialized=!1,e.defaultContextKeys=["context","internal","nodeParams","pathParams","searchParams"],e.setCurrentContext(e.defaultContextKeys.reduce((function(e,t){return e[t]={},e}),{})),e._onContextUpdatedFns={},e._onInactiveFns={},e._onInitFns={},e.authData={},e._isDeferInitDefined()||e.luigiClientInit(),e}return t=u,r=[{key:"_isDeferInitDefined",value:function(){return window.document.head.hasAttribute("defer-luigi-init")}},{key:"isLuigiClientInitialized",value:function(){return this.luigiInitialized}},{key:"luigiClientInit",value:function(){var e=this;if(this.luigiInitialized)console.warn("Luigi Client has been already initialized");else{var t=function(t){for(var n=0;n<e.defaultContextKeys.length;n++){var r=e.defaultContextKeys[n];try{"string"==typeof t[r]&&(t[r]=JSON.parse(t[r]))}catch(e){console.info("unable to parse luigi context data for",r,t[r],e)}}e.setCurrentContext(t)},r=function(t){t&&(e.authData=t)};s.addEventListener("luigi.init",(function(n){t(n.data),r(n.data.authData),s.setLuigiCoreDomain(n.origin),e.luigiInitialized=!0,e._notifyInit(n.origin),s.sendPostMessageToLuigiCore({msg:"luigi.init.ok"})})),s.addEventListener("luigi-client.inactive-microfrontend",(function(t){e._notifyInactive(t.origin)})),s.addEventListener("luigi.auth.tokenIssued",(function(e){r(e.data.authData)})),s.addEventListener("luigi.navigate",(function(n){if(t(n.data),!e.currentContext.internal.isNavigateBack&&!e.currentContext.withoutSync){var r=window.location.hash;history.replaceState({luigiInduced:!0},"",n.data.viewUrl),window.dispatchEvent(new PopStateEvent("popstate",{state:"luiginavigation"})),window.location.hash!==r&&window.dispatchEvent(new HashChangeEvent("hashchange"))}e.currentContext.withoutSync&&Object.assign(e.currentContext.context,{viewUrl:n.data.viewUrl?n.data.viewUrl:void 0,pathParams:n.data.pathParams?n.data.pathParams:void 0}),e._notifyUpdate(),s.sendPostMessageToLuigiCore({msg:"luigi.navigate.ok"})})),window.parent.postMessage({msg:"luigi.get-context",clientVersion:n(707).i8},"*"),this._tpcCheck()}}},{key:"_tpcCheck",value:function(){var e,t,n="enabled",r=document.cookie;r&&(e=r.split(";").map((function(e){return e.trim()})).find((function(e){return"luigiCookie=true"==e}))),"luigiCookie=true"===e&&(t=e.split("=")[0],document.cookie=t+"=; Max-Age=-99999999; SameSite=None; Secure"),document.cookie="luigiCookie=true; SameSite=None; Secure",(r=document.cookie)&&(e=r.split(";").map((function(e){return e.trim()})).find((function(e){return"luigiCookie=true"==e}))),"luigiCookie=true"===e?(window.parent.postMessage({msg:"luigi.third-party-cookie",tpc:n},"*"),document.cookie=t+"=; Max-Age=-99999999; SameSite=None; Secure"):(n="disabled",window.parent.postMessage({msg:"luigi.third-party-cookie",tpc:n},"*"),console.warn("Third party cookies are not supported!"))}},{key:"_callAllFns",value:function(e,t,n){for(var r in e)e.hasOwnProperty(r)&&s.isFunction(e[r])&&e[r](t,n)}},{key:"_notifyInit",value:function(e){this._callAllFns(this._onInitFns,this.currentContext.context,e)}},{key:"_notifyUpdate",value:function(){this._callAllFns(this._onContextUpdatedFns,this.currentContext.context)}},{key:"_notifyInactive",value:function(){this._callAllFns(this._onInactiveFns)}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"addInitListener",value:function(e){var t=s.getRandomId();return this._onInitFns[t]=e,this.luigiInitialized&&s.isFunction(e)&&e(this.currentContext.context,s.getLuigiCoreDomain()),t}},{key:"removeInitListener",value:function(e){return!!this._onInitFns[e]&&(this._onInitFns[e]=void 0,!0)}},{key:"addContextUpdateListener",value:function(e){var t=s.getRandomId();return this._onContextUpdatedFns[t]=e,this.luigiInitialized&&s.isFunction(e)&&e(this.currentContext.context),t}},{key:"removeContextUpdateListener",value:function(e){return!!this._onContextUpdatedFns[e]&&(this._onContextUpdatedFns[e]=void 0,!0)}},{key:"addInactiveListener",value:function(e){var t=s.getRandomId();return this._onInactiveFns[t]=e,t}},{key:"removeInactiveListener",value:function(e){return!!this._onInactiveFns[e]&&(this._onInactiveFns[e]=void 0,!0)}},{key:"addCustomMessageListener",value:function(e,t){return s.addEventListener(e,(function(e,n){return t(e,n)}))}},{key:"removeCustomMessageListener",value:function(e){return s.removeEventListener(e)}},{key:"getToken",value:function(){return this.authData.accessToken}},{key:"getContext",value:function(){return this.getEventData()}},{key:"getEventData",value:function(){return this.currentContext.context}},{key:"getActiveFeatureToggles",value:function(){return this.currentContext.internal.activeFeatureToggleList}},{key:"addNodeParams",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&s.sendPostMessageToLuigiCore({msg:"luigi.addNodeParams",data:e,keepBrowserHistory:t})}},{key:"getNodeParams",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?s.deSanitizeParamsMap(this.currentContext.nodeParams):this.currentContext.nodeParams}},{key:"getPathParams",value:function(){return this.currentContext.pathParams}},{key:"getCoreSearchParams",value:function(){return this.currentContext.searchParams||{}}},{key:"addCoreSearchParams",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&s.sendPostMessageToLuigiCore({msg:"luigi.addSearchParams",data:e,keepBrowserHistory:t})}},{key:"getClientPermissions",value:function(){return this.currentContext.internal.clientPermissions||{}}},{key:"setTargetOrigin",value:function(e){s.setTargetOrigin(e)}},{key:"sendCustomMessage",value:function(e){var t=s.convertCustomMessageUserToInternal(e);s.sendPostMessageToLuigiCore(t)}},{key:"getUserSettings",value:function(){return this.currentContext.internal.userSettings}},{key:"getAnchor",value:function(){return this.currentContext.internal.anchor||""}},{key:"setAnchor",value:function(e){s.sendPostMessageToLuigiCore({msg:"luigi.setAnchor",anchor:e})}},{key:"setViewGroupData",value:function(e){s.sendPostMessageToLuigiCore({msg:"luigi.setVGData",data:e})}}],r&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o),y=new d;function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===p(o)?o:String(o)),r)}var o}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(o){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this)).validSplitViewEvents=["expand","collapse","resize","close"],t.splitView={exists:!0,size:40,collapsed:!1},Object.assign(t.splitView,e),t.splitView.listeners=[s.addEventListener("luigi.navigation.splitview.internal",(function(e){Object.assign(t.splitView,e.data.data)}))],t.on("resize",(function(e){t.splitView.size=e})),t.on("close",(function(){t.splitView.listeners.forEach((function(e){return s.removeEventListener(e)}))})),t}return t=a,(n=[{key:"sendSplitViewEvent",value:function(e,t){s.sendPostMessageToLuigiCore({msg:"luigi.navigation.splitview.".concat(e),data:t})}},{key:"collapse",value:function(){this.sendSplitViewEvent("collapse")}},{key:"expand",value:function(){this.sendSplitViewEvent("expand")}},{key:"close",value:function(){this.sendSplitViewEvent("close")}},{key:"setSize",value:function(e){this.sendSplitViewEvent("resize",e)}},{key:"on",value:function(e,t){if(!this.validSplitViewEvents.includes(e))return console.warn(e+" is not a valid split view event"),!1;var n=s.addEventListener("luigi.navigation.splitview.".concat(e,".ok"),(function(e){var n="number"==typeof e.data.data?e.data.data:void 0;t(n)}));return this.splitView.listeners.push(n),n}},{key:"removeEventListener",value:function(e){return s.removeEventListener(e)}},{key:"exists",value:function(){return this.splitView.exists}},{key:"getSize",value:function(){return this.splitView.size}},{key:"isCollapsed",value:function(){return this.splitView.collapsed}},{key:"isExpanded",value:function(){return!this.splitView.collapsed}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===w(o)?o:String(o)),r)}var o}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(r);if(o){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this),Object.assign(x(t),e),t.options={preserveView:!1,nodeParams:{},errorSkipNavigation:!1,fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1,relative:!1,link:"",newTab:!1,preserveQueryParams:!1,anchor:"",preventContextUpdate:!1,preventHistoryEntry:!1},t}return t=a,n=[{key:"navigate",value:function(e,t,n,r,o,i){if(this.options.errorSkipNavigation)this.options.errorSkipNavigation=!1;else{r&&o&&i&&console.warn("modalSettings, splitViewSettings and drawerSettings cannot be used together. Only modal setting will be taken into account."),this.options.preserveView=n;var a="/"!==e[0];if("/"===e&&(r||o||i))console.warn("Navigation with an absolute path prevented.");else{var u={msg:"luigi.navigation.open",sessionId:t,params:Object.assign(this.options,{link:e,relative:a,intent:s.hasIntent(e),modal:r,splitView:o,drawer:i})};s.sendPostMessageToLuigiCore(u)}}}},{key:"updateModalPathInternalNavigation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){var r={msg:"luigi.navigation.updateModalDataPath",params:Object.assign(this.options,{link:e,modal:t,history:n})};s.sendPostMessageToLuigiCore(r)}else console.warn("Updating path of the modal upon internal navigation prevented. No path specified.")}},{key:"navigateToIntent",value:function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i="#?intent=";if(i+=e,o&&null!==(t=Object.keys(o))&&void 0!==t&&t.length){var a=Object.entries(o);if(a.length>0){i+="?";var u,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(a);try{for(s.s();!(u=s.n()).done;){var l=(n=u.value,r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(n,r)||k(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i+=l[0]+"="+l[1]+"&"}}catch(e){s.e(e)}finally{s.f()}i=i.slice(0,-1)}}this.navigate(i)}},{key:"openAsModal",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s.addEventListener("luigi.navigation.modal.close",(function(e,n){var r=t.getPromise("modal");r&&(r.resolveFn(e.data),t.setPromise("modal",void 0)),s.removeEventListener(n)}));var r={};return r.promise=new Promise((function(e,t){r.resolveFn=e,r.rejectFn=t})),this.setPromise("modal",r),this.navigate(e,0,!0,n),r.promise}},{key:"updateModalSettings",value:function(){var e={msg:"luigi.navigation.updateModalSettings",updatedModalSettings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},addHistoryEntry:arguments.length>1&&void 0!==arguments[1]&&arguments[1]};s.sendPostMessageToLuigiCore(e)}},{key:"openAsSplitView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.navigate(e,0,!0,void 0,t),new b(t)}},{key:"openAsDrawer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.navigate(e,0,!0,void 0,void 0,t)}},{key:"fromContext",value:function(e){return this.currentContext.context.parentNavigationContexts&&-1!==this.currentContext.context.parentNavigationContexts.indexOf(e)?this.options.fromContext=e:(this.options.errorSkipNavigation=!0,console.error("Navigation not possible, navigationContext "+e+" not found.")),this}},{key:"fromClosestContext",value:function(){var e;return(null===(e=this.currentContext)||void 0===e?void 0:e.context.parentNavigationContexts.length)>0?(this.options.fromContext=null,this.options.fromClosestContext=!0):console.error("Navigation not possible, no parent navigationContext found."),this}},{key:"fromVirtualTreeRoot",value:function(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this}},{key:"fromParent",value:function(){return this.options.fromParent=!0,this}},{key:"withParams",value:function(e){return e&&Object.assign(this.options.nodeParams,e),this}},{key:"withOptions",value:function(e){return s.isObject(e)?(void 0!==e.preventHistoryEntry&&(this.options.preventHistoryEntry=e.preventHistoryEntry),void 0!==e.preventContextUpdate&&(this.options.preventContextUpdate=e.preventContextUpdate),this):this}},{key:"pathExists",value:function(e){var t=s.getRandomId(),n=this.getPromise("pathExistsPromises")||{};n[t]={resolveFn:function(){},then:function(e){this.resolveFn=e}},this.setPromise("pathExistsPromises",n),s.addEventListener("luigi.navigation.pathExists.answer",function(e,n){var r=e.data.data,o=this.getPromise("pathExistsPromises")||{};r.correlationId===t&&(o[r.correlationId]&&(o[r.correlationId].resolveFn(r.pathExists),delete o[r.correlationId],this.setPromise("pathExistsPromises",o)),s.removeEventListener(n))}.bind(this));var r={msg:"luigi.navigation.pathExists",data:Object.assign(this.options,{id:t,link:e,intent:s.hasIntent(e),relative:"/"!==e[0]})};return s.sendPostMessageToLuigiCore(r),n[t]}},{key:"hasBack",value:function(){return!!this.currentContext.internal.modal||0!==this.currentContext.internal.viewStackSize}},{key:"goBack",value:function(e){s.sendPostMessageToLuigiCore({msg:"luigi.navigation.back",goBackContext:e&&JSON.stringify(e)})}},{key:"withoutSync",value:function(){return this.options.withoutSync=!0,this}},{key:"newTab",value:function(){return this.options.newTab=!0,this}},{key:"preserveQueryParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.options.preserveQueryParams=e,this}},{key:"getCurrentRoute",value:function(){var e=this,t=s.getRandomId(),n=this.getPromise("getCurrentRoute")||{};return n[t]={resolveFn:function(){},then:function(e){this.resolveFn=e}},this.setPromise("getCurrentRoute",n),s.addEventListener("luigi.navigation.currentRoute.answer",(function(n,r){var o=n.data.data,i=e.getPromise("getCurrentRoute")||{};o.correlationId===t&&(i[o.correlationId]&&(i[o.correlationId].resolveFn(o.route),delete i[o.correlationId],e.setPromise("getCurrentRoute",i)),s.removeEventListener(r)),s.removeEventListener(r)})),s.sendPostMessageToLuigiCore({msg:"luigi.navigation.currentRoute",data:Object.assign(this.options,{id:t})}),n[t]}}],n&&C(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===E(o)?o:String(o)),r)}var o}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var M=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(r);if(o){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),e=i.call(this),s.addEventListener("luigi.current-locale-changed",(function(e){var t;e.data.currentLocale&&null!==(t=y.currentContext)&&void 0!==t&&t.internal&&(y.currentContext.internal.currentLocale=e.data.currentLocale,y._notifyUpdate())})),e}return t=a,(n=[{key:"showLoadingIndicator",value:function(){s.sendPostMessageToLuigiCore({msg:"luigi.show-loading-indicator"})}},{key:"hideLoadingIndicator",value:function(){s.sendPostMessageToLuigiCore({msg:"luigi.hide-loading-indicator"})}},{key:"closeCurrentModal",value:function(){s.sendPostMessageToLuigiCore({msg:"luigi.close-modal"})}},{key:"addBackdrop",value:function(){s.sendPostMessageToLuigiCore({msg:"luigi.add-backdrop"})}},{key:"removeBackdrop",value:function(){s.sendPostMessageToLuigiCore({msg:"luigi.remove-backdrop"})}},{key:"setDirtyStatus",value:function(e){s.sendPostMessageToLuigiCore({msg:"luigi.set-page-dirty",dirty:e})}},{key:"showConfirmationModal",value:function(e){var t=this;s.addEventListener("luigi.ux.confirmationModal.hide",(function(e,n){t.hideConfirmationModal(e.data.data),s.removeEventListener(n)})),s.sendPostMessageToLuigiCore({msg:"luigi.ux.confirmationModal.show",data:{settings:e}});var n={};return n.promise=new Promise((function(e,t){n.resolveFn=e,n.rejectFn=t})),this.setPromise("confirmationModal",n),n.promise}},{key:"hideConfirmationModal",value:function(e){var t=this.getPromise("confirmationModal");t&&(e.confirmed?t.resolveFn():t.rejectFn(),this.setPromise("confirmationModal",void 0))}},{key:"showAlert",value:function(e){var t=this;e.id=s.getRandomId(),s.addEventListener("luigi.ux.alert.hide",(function(n,r){n.data.id===e.id&&(t.hideAlert(n.data),s.removeEventListener(r))})),(null==e?void 0:e.closeAfter)<100&&(console.warn("Message with id='".concat(e.id,"' has too small 'closeAfter' value. It needs to be at least 100ms.")),e.closeAfter=void 0),s.sendPostMessageToLuigiCore({msg:"luigi.ux.alert.show",data:{settings:e}});var n=this.getPromise("alerts")||{};return n[e.id]={},n[e.id].promise=new Promise((function(t){n[e.id].resolveFn=t})),this.setPromise("alerts",n),n[e.id].promise}},{key:"hideAlert",value:function(e){var t=e.id,n=e.dismissKey,r=this.getPromise("alerts");t&&r[t]&&(r[t].resolveFn(n||t),delete r[t],this.setPromise("alerts",r))}},{key:"getCurrentLocale",value:function(){var e,t;return null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.currentLocale}},{key:"setCurrentLocale",value:function(e){e&&s.sendPostMessageToLuigiCore({msg:"luigi.ux.set-current-locale",data:{currentLocale:e}})}},{key:"isSplitView",value:function(){var e,t;return null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.splitView}},{key:"isModal",value:function(){var e,t;return null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.modal}},{key:"isDrawer",value:function(){var e,t;return null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.drawer}},{key:"getCurrentTheme",value:function(){var e,t;return null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.currentTheme}},{key:"getCSSVariables",value:function(){var e,t;return(null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.cssVariables)||{}}},{key:"applyCSS",value:function(){var e,t;document.querySelectorAll("head style[luigi-injected]").forEach((function(e){e.remove()}));var n=null===(e=y.currentContext)||void 0===e||null===(t=e.internal)||void 0===t?void 0:t.cssVariables;if(n){var r=":root {\n";Object.keys(n).forEach((function(e){var t=n[e];r+=(e.startsWith("--")?"":"--")+e+":"+t+";\n"})),r+="}";var o=document.createElement("style");o.setAttribute("luigi-injected",!0),o.innerHTML=r,document.head.appendChild(o)}}}])&&L(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o));function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===_(o)?o:String(o)),r)}var o}function F(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var U=new Map,N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=D(t);if(n){var o=D(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(){var e;return R(this,o),(e=r.call(this)).storageEventProcessor=new z,s.addEventListener("storage",(function(t,n){return e.storageEventProcessor.processEvent(t,n)})),e}return F(o,[{key:"setItem",value:function(e,t){var n=this;return new Promise((function(r,o){n.storageEventProcessor.execute(r,o,"setItem",{key:e,value:t})}))}},{key:"getItem",value:function(e){var t=this;return new Promise((function(n,r){t.storageEventProcessor.execute(n,r,"getItem",{key:e})}))}},{key:"removeItem",value:function(e){var t=this;return new Promise((function(n,r){t.storageEventProcessor.execute(n,r,"removeItem",{key:e})}))}},{key:"clear",value:function(){var e=this;return new Promise((function(t,n){e.storageEventProcessor.execute(t,n,"clear",{})}))}},{key:"has",value:function(e){var t=this;return new Promise((function(n,r){t.storageEventProcessor.execute(n,r,"has",{key:e})}))}},{key:"getAllKeys",value:function(){var e=this;return new Promise((function(t,n){e.storageEventProcessor.execute(t,n,"getAllKeys",{})}))}}]),o}(o),z=function(){function e(){R(this,e)}return F(e,[{key:"processEvent",value:function(e,t){try{var n=e.data.data;if(!U.has(n.id))return void console.log("Impossible to find Promise method for message "+n.id);var r=U.get(n.id);"ERROR"===n.status?r.reject(n.result):r.resolve(n.result),U.delete(n.id)}catch(e){console.error(e)}}},{key:"waitForSyncResult",value:function(e){for(var t=(new Date).getTime();!syncOperation.has(e);)if((new Date).getTime()-t>1e4)throw"Storage operation is taking more than 1 second...Some problem with Luigi Core communication";var n=syncOperation.get(e);return U.delete(e),n}},{key:"execute",value:function(e,t,n,r){var o=s.getRandomId();this.createPendingOperation(o,e,t),this.sendMessage(o,n,r)}},{key:"createPendingOperation",value:function(e,t,n){U.set(e,{resolve:t,reject:n})}},{key:"sendMessage",value:function(e,t,n){s.sendPostMessageToLuigiCore({msg:"storage",data:{id:e,operation:t,params:n}})}}]),e}(),B=new N;function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==H(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===H(o)?o:String(o)),r)}var o}var G=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window!==window.top&&("true"!==window.document.head.getAttribute("disable-luigi-history-handling")&&(history.pushState=history.replaceState.bind(history)),"true"!==window.document.head.getAttribute("disable-luigi-runtime-error-handling")&&window.addEventListener("error",(function(e){var t={msg:"luigi-runtime-error-handling",errorObj:{filename:e.filename,message:e.message,lineno:e.lineno,colno:e.colno,error:e.error}};s.sendPostMessageToLuigiCore(t)})))}var t,n;return t=e,(n=[{key:"addInitListener",value:function(e){return y.addInitListener(e)}},{key:"removeInitListener",value:function(e){return y.removeInitListener(e)}},{key:"addContextUpdateListener",value:function(e){return y.addContextUpdateListener(e)}},{key:"removeContextUpdateListener",value:function(e){return y.removeContextUpdateListener(e)}},{key:"getToken",value:function(){return y.getToken()}},{key:"getEventData",value:function(){return y.getEventData()}},{key:"getContext",value:function(){return y.getContext()}},{key:"addNodeParams",value:function(e,t){return y.addNodeParams(e,t)}},{key:"getNodeParams",value:function(e){return y.getNodeParams(e)}},{key:"getActiveFeatureToggles",value:function(){return y.getActiveFeatureToggles()}},{key:"getPathParams",value:function(){return y.getPathParams()}},{key:"getCoreSearchParams",value:function(){return y.getCoreSearchParams()}},{key:"addCoreSearchParams",value:function(e,t){return y.addCoreSearchParams(e,t)}},{key:"getClientPermissions",value:function(){return y.getClientPermissions()}},{key:"sendCustomMessage",value:function(e){return y.sendCustomMessage(e)}},{key:"addCustomMessageListener",value:function(e,t){return y.addCustomMessageListener(e,t)}},{key:"removeCustomMessageListener",value:function(e){return y.removeCustomMessageListener(e)}},{key:"addInactiveListener",value:function(e,t){return y.addInactiveListener(e,t)}},{key:"removeInactiveListener",value:function(e){return y.removeInactiveListener(e)}},{key:"setTargetOrigin",value:function(e){return y.setTargetOrigin(e)}},{key:"getUserSettings",value:function(){return y.getUserSettings()}},{key:"isLuigiClientInitialized",value:function(){return y.isLuigiClientInitialized()}},{key:"luigiClientInit",value:function(){return y.luigiClientInit()}},{key:"getAnchor",value:function(){return y.getAnchor()}},{key:"setAnchor",value:function(e){return y.setAnchor(e)}},{key:"setViewGroupData",value:function(e){return y.setViewGroupData(e)}},{key:"linkManager",value:function(){return new j({currentContext:y.currentContext})}},{key:"uxManager",value:function(){return M}},{key:"lifecycleManager",value:function(){return y}},{key:"storageManager",value:function(){return B}}])&&K(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Q=G=new G}(),r.default}()}));
|
|
3
2
|
//# sourceMappingURL=luigi-client.js.map
|