@everymatrix/user-actions 1.56.0 → 1.56.2
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/dist/cjs/{index-cd722b1f.js → index-04ccb420.js} +35 -152
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-actions.cjs.entry.js +4 -2
- package/dist/cjs/user-actions.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/user-actions/user-actions.js +3 -5
- package/dist/esm/{index-a5098c92.js → index-2b2bb7fc.js} +35 -152
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-actions.entry.js +4 -2
- package/dist/esm/user-actions.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/user-actions/p-8d46bf7a.js +2 -0
- package/dist/user-actions/p-ac1b2491.entry.js +1 -0
- package/dist/user-actions/user-actions.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.dev.d.ts +0 -2
- package/dist/user-actions/p-14c4eadc.entry.js +0 -1
- package/dist/user-actions/p-601818b5.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'user-actions';
|
|
24
|
-
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
24
|
+
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
57
52
|
|
|
@@ -87,22 +82,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
87
82
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
88
83
|
/* webpackMode: "lazy" */
|
|
89
84
|
`./${bundleId}.entry.js${""}`
|
|
90
|
-
)); }).then(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
cmpModules.set(bundleId, importedModule);
|
|
94
|
-
}
|
|
95
|
-
return importedModule[exportName];
|
|
96
|
-
},
|
|
97
|
-
(e) => {
|
|
98
|
-
consoleError(e, hostRef.$hostElement$);
|
|
85
|
+
)); }).then((importedModule) => {
|
|
86
|
+
{
|
|
87
|
+
cmpModules.set(bundleId, importedModule);
|
|
99
88
|
}
|
|
100
|
-
|
|
89
|
+
return importedModule[exportName];
|
|
90
|
+
}, consoleError);
|
|
101
91
|
};
|
|
102
92
|
|
|
103
93
|
// src/client/client-style.ts
|
|
104
94
|
var styles = /* @__PURE__ */ new Map();
|
|
105
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
106
95
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
107
96
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
108
97
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -293,40 +282,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
293
282
|
}
|
|
294
283
|
if (!appliedStyles.has(scopeId2)) {
|
|
295
284
|
{
|
|
296
|
-
styleElm =
|
|
285
|
+
styleElm = doc.createElement("style");
|
|
297
286
|
styleElm.innerHTML = style;
|
|
298
287
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
299
288
|
if (nonce != null) {
|
|
300
289
|
styleElm.setAttribute("nonce", nonce);
|
|
301
290
|
}
|
|
302
|
-
|
|
303
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
304
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
305
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
306
|
-
styleContainerNode.insertBefore(
|
|
307
|
-
styleElm,
|
|
308
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
309
|
-
);
|
|
310
|
-
} else if ("host" in styleContainerNode) {
|
|
311
|
-
if (supportsConstructableStylesheets) {
|
|
312
|
-
const stylesheet = new CSSStyleSheet();
|
|
313
|
-
stylesheet.replaceSync(style);
|
|
314
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
315
|
-
} else {
|
|
316
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
317
|
-
if (existingStyleContainer) {
|
|
318
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
319
|
-
} else {
|
|
320
|
-
styleContainerNode.prepend(styleElm);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
} else {
|
|
324
|
-
styleContainerNode.append(styleElm);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
328
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
329
|
-
}
|
|
291
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
330
292
|
}
|
|
331
293
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
332
294
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -349,7 +311,7 @@ var attachStyles = (hostRef) => {
|
|
|
349
311
|
const scopeId2 = addStyle(
|
|
350
312
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
351
313
|
cmpMeta);
|
|
352
|
-
if (
|
|
314
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
353
315
|
elm["s-sc"] = scopeId2;
|
|
354
316
|
elm.classList.add(scopeId2 + "-h");
|
|
355
317
|
}
|
|
@@ -360,14 +322,7 @@ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
|
360
322
|
// src/runtime/update-component.ts
|
|
361
323
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
362
324
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
363
|
-
|
|
364
|
-
new Promise(
|
|
365
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
366
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
367
|
-
r();
|
|
368
|
-
}
|
|
369
|
-
)
|
|
370
|
-
);
|
|
325
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
371
326
|
}
|
|
372
327
|
};
|
|
373
328
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -396,12 +351,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
396
351
|
{
|
|
397
352
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
398
353
|
if (hostRef.$queuedListeners$) {
|
|
399
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
354
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
400
355
|
hostRef.$queuedListeners$ = void 0;
|
|
401
356
|
}
|
|
402
357
|
}
|
|
403
358
|
{
|
|
404
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
359
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
405
360
|
}
|
|
406
361
|
}
|
|
407
362
|
endSchedule();
|
|
@@ -498,14 +453,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
498
453
|
}
|
|
499
454
|
};
|
|
500
455
|
var appDidLoad = (who) => {
|
|
456
|
+
{
|
|
457
|
+
addHydratedFlag(doc.documentElement);
|
|
458
|
+
}
|
|
501
459
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
502
460
|
};
|
|
503
|
-
var safeCall = (instance, method, arg
|
|
461
|
+
var safeCall = (instance, method, arg) => {
|
|
504
462
|
if (instance && instance[method]) {
|
|
505
463
|
try {
|
|
506
464
|
return instance[method](arg);
|
|
507
465
|
} catch (e) {
|
|
508
|
-
consoleError(e
|
|
466
|
+
consoleError(e);
|
|
509
467
|
}
|
|
510
468
|
}
|
|
511
469
|
return void 0;
|
|
@@ -548,68 +506,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
548
506
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
549
507
|
members.map(([memberName, [memberFlags]]) => {
|
|
550
508
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
551
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
552
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
553
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
554
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
555
|
-
Object.defineProperty(prototype, memberName, {
|
|
556
|
-
get() {
|
|
557
|
-
{
|
|
558
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
559
|
-
return getValue(this, memberName);
|
|
560
|
-
}
|
|
561
|
-
const ref = getHostRef(this);
|
|
562
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
563
|
-
if (!instance) return;
|
|
564
|
-
return instance[memberName];
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
configurable: true,
|
|
568
|
-
enumerable: true
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
509
|
Object.defineProperty(prototype, memberName, {
|
|
510
|
+
get() {
|
|
511
|
+
return getValue(this, memberName);
|
|
512
|
+
},
|
|
572
513
|
set(newValue) {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
578
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
579
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
580
|
-
}
|
|
581
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
582
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
583
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
{
|
|
587
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
588
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
589
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
590
|
-
ref.$onReadyPromise$.then(() => {
|
|
591
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
592
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
593
|
-
}
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
const setterSetVal = () => {
|
|
599
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
600
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
601
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
602
|
-
}
|
|
603
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
604
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
605
|
-
};
|
|
606
|
-
if (ref.$lazyInstance$) {
|
|
607
|
-
setterSetVal();
|
|
608
|
-
} else {
|
|
609
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
514
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
515
|
+
},
|
|
516
|
+
configurable: true,
|
|
517
|
+
enumerable: true
|
|
613
518
|
});
|
|
614
519
|
}
|
|
615
520
|
});
|
|
@@ -619,11 +524,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
619
524
|
plt.jmp(() => {
|
|
620
525
|
var _a2;
|
|
621
526
|
const propName = attrNameToPropName.get(attrName);
|
|
622
|
-
if (this.hasOwnProperty(propName)
|
|
527
|
+
if (this.hasOwnProperty(propName)) {
|
|
623
528
|
newValue = this[propName];
|
|
624
529
|
delete this[propName];
|
|
625
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
626
|
-
this[propName] == newValue) {
|
|
530
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
627
531
|
return;
|
|
628
532
|
} else if (propName == null) {
|
|
629
533
|
const hostRef = getHostRef(this);
|
|
@@ -639,11 +543,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
639
543
|
}
|
|
640
544
|
return;
|
|
641
545
|
}
|
|
642
|
-
|
|
643
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
644
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
645
|
-
this[propName] = newValue;
|
|
646
|
-
}
|
|
546
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
647
547
|
});
|
|
648
548
|
};
|
|
649
549
|
Cstr.observedAttributes = Array.from(
|
|
@@ -668,7 +568,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
668
568
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
669
569
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
670
570
|
if (bundleId) {
|
|
671
|
-
const CstrImport = loadModule(cmpMeta
|
|
571
|
+
const CstrImport = loadModule(cmpMeta);
|
|
672
572
|
if (CstrImport && "then" in CstrImport) {
|
|
673
573
|
const endLoad = uniqueTime();
|
|
674
574
|
Cstr = await CstrImport;
|
|
@@ -690,7 +590,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
690
590
|
try {
|
|
691
591
|
new Cstr(hostRef);
|
|
692
592
|
} catch (e) {
|
|
693
|
-
consoleError(e
|
|
593
|
+
consoleError(e);
|
|
694
594
|
}
|
|
695
595
|
{
|
|
696
596
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -722,7 +622,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
722
622
|
schedule();
|
|
723
623
|
}
|
|
724
624
|
};
|
|
725
|
-
var fireConnectedCallback = (instance
|
|
625
|
+
var fireConnectedCallback = (instance) => {
|
|
726
626
|
};
|
|
727
627
|
|
|
728
628
|
// src/runtime/connected-callback.ts
|
|
@@ -763,7 +663,7 @@ var connectedCallback = (elm) => {
|
|
|
763
663
|
endConnected();
|
|
764
664
|
}
|
|
765
665
|
};
|
|
766
|
-
var disconnectInstance = (instance
|
|
666
|
+
var disconnectInstance = (instance) => {
|
|
767
667
|
};
|
|
768
668
|
var disconnectedCallback = async (elm) => {
|
|
769
669
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -778,12 +678,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
778
678
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
779
679
|
}
|
|
780
680
|
}
|
|
781
|
-
if (rootAppliedStyles.has(elm)) {
|
|
782
|
-
rootAppliedStyles.delete(elm);
|
|
783
|
-
}
|
|
784
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
785
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
786
|
-
}
|
|
787
681
|
};
|
|
788
682
|
|
|
789
683
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -861,17 +755,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
861
755
|
}
|
|
862
756
|
disconnectedCallback() {
|
|
863
757
|
plt.jmp(() => disconnectedCallback(this));
|
|
864
|
-
plt.raf(() => {
|
|
865
|
-
var _a3;
|
|
866
|
-
const hostRef = getHostRef(this);
|
|
867
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
868
|
-
if (i2 > -1) {
|
|
869
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
870
|
-
}
|
|
871
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
872
|
-
delete hostRef.$vnode$.$elm$;
|
|
873
|
-
}
|
|
874
|
-
});
|
|
875
758
|
}
|
|
876
759
|
componentOnReady() {
|
|
877
760
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -935,7 +818,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
935
818
|
}
|
|
936
819
|
}
|
|
937
820
|
} catch (e) {
|
|
938
|
-
consoleError(e
|
|
821
|
+
consoleError(e);
|
|
939
822
|
}
|
|
940
823
|
};
|
|
941
824
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-04ccb420.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-04ccb420.js');
|
|
6
6
|
|
|
7
7
|
const actionsMapping = {
|
|
8
8
|
"verification-popup": {
|
|
@@ -37,13 +37,15 @@ const UserActionsStyle0 = userActionsCss;
|
|
|
37
37
|
const UserActions = class {
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
index.registerInstance(this, hostRef);
|
|
40
|
-
this.actionStack = [];
|
|
41
40
|
this.emitCurrentActionEvent = () => {
|
|
42
41
|
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
43
42
|
};
|
|
44
43
|
this.shiftActionStack = () => {
|
|
45
44
|
this.actionStack = this.actionStack.slice(1);
|
|
46
45
|
};
|
|
46
|
+
this.endpoint = undefined;
|
|
47
|
+
this.userid = undefined;
|
|
48
|
+
this.actionStack = [];
|
|
47
49
|
}
|
|
48
50
|
handleEvent(e) {
|
|
49
51
|
var _a, _b;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-04ccb420.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-actions.cjs.js', document.baseURI).href));
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { actionsMapping } from "../../utils/utils";
|
|
2
2
|
export class UserActions {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.actionStack = [];
|
|
5
4
|
this.emitCurrentActionEvent = () => {
|
|
6
5
|
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
7
6
|
};
|
|
8
7
|
this.shiftActionStack = () => {
|
|
9
8
|
this.actionStack = this.actionStack.slice(1);
|
|
10
9
|
};
|
|
10
|
+
this.endpoint = undefined;
|
|
11
|
+
this.userid = undefined;
|
|
12
|
+
this.actionStack = [];
|
|
11
13
|
}
|
|
12
14
|
handleEvent(e) {
|
|
13
15
|
var _a, _b;
|
|
@@ -63,8 +65,6 @@ export class UserActions {
|
|
|
63
65
|
"tags": [],
|
|
64
66
|
"text": ""
|
|
65
67
|
},
|
|
66
|
-
"getter": false,
|
|
67
|
-
"setter": false,
|
|
68
68
|
"attribute": "endpoint",
|
|
69
69
|
"reflect": false
|
|
70
70
|
},
|
|
@@ -82,8 +82,6 @@ export class UserActions {
|
|
|
82
82
|
"tags": [],
|
|
83
83
|
"text": ""
|
|
84
84
|
},
|
|
85
|
-
"getter": false,
|
|
86
|
-
"setter": false,
|
|
87
85
|
"attribute": "userid",
|
|
88
86
|
"reflect": false
|
|
89
87
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'user-actions';
|
|
2
|
-
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
2
|
+
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
35
30
|
|
|
@@ -65,22 +60,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
65
60
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
66
61
|
/* webpackMode: "lazy" */
|
|
67
62
|
`./${bundleId}.entry.js${""}`
|
|
68
|
-
).then(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
cmpModules.set(bundleId, importedModule);
|
|
72
|
-
}
|
|
73
|
-
return importedModule[exportName];
|
|
74
|
-
},
|
|
75
|
-
(e) => {
|
|
76
|
-
consoleError(e, hostRef.$hostElement$);
|
|
63
|
+
).then((importedModule) => {
|
|
64
|
+
{
|
|
65
|
+
cmpModules.set(bundleId, importedModule);
|
|
77
66
|
}
|
|
78
|
-
|
|
67
|
+
return importedModule[exportName];
|
|
68
|
+
}, consoleError);
|
|
79
69
|
};
|
|
80
70
|
|
|
81
71
|
// src/client/client-style.ts
|
|
82
72
|
var styles = /* @__PURE__ */ new Map();
|
|
83
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
84
73
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
85
74
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
86
75
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -271,40 +260,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
271
260
|
}
|
|
272
261
|
if (!appliedStyles.has(scopeId2)) {
|
|
273
262
|
{
|
|
274
|
-
styleElm =
|
|
263
|
+
styleElm = doc.createElement("style");
|
|
275
264
|
styleElm.innerHTML = style;
|
|
276
265
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
277
266
|
if (nonce != null) {
|
|
278
267
|
styleElm.setAttribute("nonce", nonce);
|
|
279
268
|
}
|
|
280
|
-
|
|
281
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
282
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
283
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
284
|
-
styleContainerNode.insertBefore(
|
|
285
|
-
styleElm,
|
|
286
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
287
|
-
);
|
|
288
|
-
} else if ("host" in styleContainerNode) {
|
|
289
|
-
if (supportsConstructableStylesheets) {
|
|
290
|
-
const stylesheet = new CSSStyleSheet();
|
|
291
|
-
stylesheet.replaceSync(style);
|
|
292
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
293
|
-
} else {
|
|
294
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
295
|
-
if (existingStyleContainer) {
|
|
296
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
297
|
-
} else {
|
|
298
|
-
styleContainerNode.prepend(styleElm);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
} else {
|
|
302
|
-
styleContainerNode.append(styleElm);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
306
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
307
|
-
}
|
|
269
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
308
270
|
}
|
|
309
271
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
310
272
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -327,7 +289,7 @@ var attachStyles = (hostRef) => {
|
|
|
327
289
|
const scopeId2 = addStyle(
|
|
328
290
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
329
291
|
cmpMeta);
|
|
330
|
-
if (
|
|
292
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
331
293
|
elm["s-sc"] = scopeId2;
|
|
332
294
|
elm.classList.add(scopeId2 + "-h");
|
|
333
295
|
}
|
|
@@ -338,14 +300,7 @@ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
|
338
300
|
// src/runtime/update-component.ts
|
|
339
301
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
340
302
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
341
|
-
|
|
342
|
-
new Promise(
|
|
343
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
344
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
345
|
-
r();
|
|
346
|
-
}
|
|
347
|
-
)
|
|
348
|
-
);
|
|
303
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
349
304
|
}
|
|
350
305
|
};
|
|
351
306
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -374,12 +329,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
374
329
|
{
|
|
375
330
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
376
331
|
if (hostRef.$queuedListeners$) {
|
|
377
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
332
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
378
333
|
hostRef.$queuedListeners$ = void 0;
|
|
379
334
|
}
|
|
380
335
|
}
|
|
381
336
|
{
|
|
382
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
337
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
383
338
|
}
|
|
384
339
|
}
|
|
385
340
|
endSchedule();
|
|
@@ -476,14 +431,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
476
431
|
}
|
|
477
432
|
};
|
|
478
433
|
var appDidLoad = (who) => {
|
|
434
|
+
{
|
|
435
|
+
addHydratedFlag(doc.documentElement);
|
|
436
|
+
}
|
|
479
437
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
480
438
|
};
|
|
481
|
-
var safeCall = (instance, method, arg
|
|
439
|
+
var safeCall = (instance, method, arg) => {
|
|
482
440
|
if (instance && instance[method]) {
|
|
483
441
|
try {
|
|
484
442
|
return instance[method](arg);
|
|
485
443
|
} catch (e) {
|
|
486
|
-
consoleError(e
|
|
444
|
+
consoleError(e);
|
|
487
445
|
}
|
|
488
446
|
}
|
|
489
447
|
return void 0;
|
|
@@ -526,68 +484,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
526
484
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
527
485
|
members.map(([memberName, [memberFlags]]) => {
|
|
528
486
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
529
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
530
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
531
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
532
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
533
|
-
Object.defineProperty(prototype, memberName, {
|
|
534
|
-
get() {
|
|
535
|
-
{
|
|
536
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
537
|
-
return getValue(this, memberName);
|
|
538
|
-
}
|
|
539
|
-
const ref = getHostRef(this);
|
|
540
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
541
|
-
if (!instance) return;
|
|
542
|
-
return instance[memberName];
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
configurable: true,
|
|
546
|
-
enumerable: true
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
487
|
Object.defineProperty(prototype, memberName, {
|
|
488
|
+
get() {
|
|
489
|
+
return getValue(this, memberName);
|
|
490
|
+
},
|
|
550
491
|
set(newValue) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
556
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
557
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
558
|
-
}
|
|
559
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
560
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
561
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
562
|
-
return;
|
|
563
|
-
}
|
|
564
|
-
{
|
|
565
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
566
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
567
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
568
|
-
ref.$onReadyPromise$.then(() => {
|
|
569
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
570
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
571
|
-
}
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
return;
|
|
575
|
-
}
|
|
576
|
-
const setterSetVal = () => {
|
|
577
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
578
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
579
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
580
|
-
}
|
|
581
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
582
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
583
|
-
};
|
|
584
|
-
if (ref.$lazyInstance$) {
|
|
585
|
-
setterSetVal();
|
|
586
|
-
} else {
|
|
587
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
492
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
493
|
+
},
|
|
494
|
+
configurable: true,
|
|
495
|
+
enumerable: true
|
|
591
496
|
});
|
|
592
497
|
}
|
|
593
498
|
});
|
|
@@ -597,11 +502,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
597
502
|
plt.jmp(() => {
|
|
598
503
|
var _a2;
|
|
599
504
|
const propName = attrNameToPropName.get(attrName);
|
|
600
|
-
if (this.hasOwnProperty(propName)
|
|
505
|
+
if (this.hasOwnProperty(propName)) {
|
|
601
506
|
newValue = this[propName];
|
|
602
507
|
delete this[propName];
|
|
603
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
604
|
-
this[propName] == newValue) {
|
|
508
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
605
509
|
return;
|
|
606
510
|
} else if (propName == null) {
|
|
607
511
|
const hostRef = getHostRef(this);
|
|
@@ -617,11 +521,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
617
521
|
}
|
|
618
522
|
return;
|
|
619
523
|
}
|
|
620
|
-
|
|
621
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
622
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
623
|
-
this[propName] = newValue;
|
|
624
|
-
}
|
|
524
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
625
525
|
});
|
|
626
526
|
};
|
|
627
527
|
Cstr.observedAttributes = Array.from(
|
|
@@ -646,7 +546,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
646
546
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
647
547
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
648
548
|
if (bundleId) {
|
|
649
|
-
const CstrImport = loadModule(cmpMeta
|
|
549
|
+
const CstrImport = loadModule(cmpMeta);
|
|
650
550
|
if (CstrImport && "then" in CstrImport) {
|
|
651
551
|
const endLoad = uniqueTime();
|
|
652
552
|
Cstr = await CstrImport;
|
|
@@ -668,7 +568,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
668
568
|
try {
|
|
669
569
|
new Cstr(hostRef);
|
|
670
570
|
} catch (e) {
|
|
671
|
-
consoleError(e
|
|
571
|
+
consoleError(e);
|
|
672
572
|
}
|
|
673
573
|
{
|
|
674
574
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -700,7 +600,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
700
600
|
schedule();
|
|
701
601
|
}
|
|
702
602
|
};
|
|
703
|
-
var fireConnectedCallback = (instance
|
|
603
|
+
var fireConnectedCallback = (instance) => {
|
|
704
604
|
};
|
|
705
605
|
|
|
706
606
|
// src/runtime/connected-callback.ts
|
|
@@ -741,7 +641,7 @@ var connectedCallback = (elm) => {
|
|
|
741
641
|
endConnected();
|
|
742
642
|
}
|
|
743
643
|
};
|
|
744
|
-
var disconnectInstance = (instance
|
|
644
|
+
var disconnectInstance = (instance) => {
|
|
745
645
|
};
|
|
746
646
|
var disconnectedCallback = async (elm) => {
|
|
747
647
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -756,12 +656,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
756
656
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
757
657
|
}
|
|
758
658
|
}
|
|
759
|
-
if (rootAppliedStyles.has(elm)) {
|
|
760
|
-
rootAppliedStyles.delete(elm);
|
|
761
|
-
}
|
|
762
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
763
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
764
|
-
}
|
|
765
659
|
};
|
|
766
660
|
|
|
767
661
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -839,17 +733,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
839
733
|
}
|
|
840
734
|
disconnectedCallback() {
|
|
841
735
|
plt.jmp(() => disconnectedCallback(this));
|
|
842
|
-
plt.raf(() => {
|
|
843
|
-
var _a3;
|
|
844
|
-
const hostRef = getHostRef(this);
|
|
845
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
846
|
-
if (i2 > -1) {
|
|
847
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
848
|
-
}
|
|
849
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
850
|
-
delete hostRef.$vnode$.$elm$;
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
736
|
}
|
|
854
737
|
componentOnReady() {
|
|
855
738
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -913,7 +796,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
913
796
|
}
|
|
914
797
|
}
|
|
915
798
|
} catch (e) {
|
|
916
|
-
consoleError(e
|
|
799
|
+
consoleError(e);
|
|
917
800
|
}
|
|
918
801
|
};
|
|
919
802
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-2b2bb7fc.js';
|
|
2
|
+
export { s as setNonce } from './index-2b2bb7fc.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance } from './index-
|
|
1
|
+
import { r as registerInstance } from './index-2b2bb7fc.js';
|
|
2
2
|
|
|
3
3
|
const actionsMapping = {
|
|
4
4
|
"verification-popup": {
|
|
@@ -33,13 +33,15 @@ const UserActionsStyle0 = userActionsCss;
|
|
|
33
33
|
const UserActions = class {
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
registerInstance(this, hostRef);
|
|
36
|
-
this.actionStack = [];
|
|
37
36
|
this.emitCurrentActionEvent = () => {
|
|
38
37
|
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
39
38
|
};
|
|
40
39
|
this.shiftActionStack = () => {
|
|
41
40
|
this.actionStack = this.actionStack.slice(1);
|
|
42
41
|
};
|
|
42
|
+
this.endpoint = undefined;
|
|
43
|
+
this.userid = undefined;
|
|
44
|
+
this.actionStack = [];
|
|
43
45
|
}
|
|
44
46
|
handleEvent(e) {
|
|
45
47
|
var _a, _b;
|
package/dist/esm/user-actions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-2b2bb7fc.js';
|
|
2
|
+
export { s as setNonce } from './index-2b2bb7fc.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),r=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,p=[],d=[],w=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&u.o?b(v):u.raf(v))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},v=()=>{y(p),y(d),(m=p.length>0)&&u.raf(v)},b=t=>f().then(t),$=w(d,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>k,ok:()=>g,unwrap:()=>E,unwrapErr:()=>M});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},C=new WeakMap,O=t=>"sc-"+t.l,P=(t,e)=>{e&&!t.u&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.u=e)))},x=(t,e)=>{if(t.o|=16,!(4&t.o))return P(t,t.h),$((()=>T(t,e)));t.o|=512},T=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.m&&(t.m.map((([t,e])=>F(n,t,e))),t.m=void 0),o=F(n,"componentWillLoad")),L(o,(()=>R(t,n,e)))},L=(t,e)=>N(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),N=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,R=async(t,e,n)=>{var o;const r=t.$hostElement$,s=r["s-rc"];n&&(t=>{const e=t.p,n=t.$hostElement$,o=e.o,r=((t,e)=>{var n;const o=O(e),r=i.get(o);if(t=11===t.nodeType?t:a,r)if("string"==typeof r){let s,i=C.get(t=t.head||t);if(i||C.set(t,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=r;const e=null!=(n=u.v)?n:S(a);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=l),i&&i.add(o)}}else t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(t);U(t,e,r),s&&(s.map((t=>t())),r["s-rc"]=void 0);{const e=null!=(o=r["s-p"])?o:[],n=()=>W(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},U=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.p.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){r(e,t.$hostElement$)}return null},W=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,H(e),t.$(e),n||A()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>x(t,!1))),t.o&=-517},A=()=>{H(a.documentElement),b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},F=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},H=t=>t.classList.add("hydrated"),q=(t,e,o)=>{var r,s;const i=t.prototype;if(e.S){const l=Object.entries(null!=(r=e.S)?r:{});if(l.map((([t,[r]])=>{(31&r||2&o&&32&r)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).j.get(e))(0,t)},set(o){((t,e,o,r)=>{const s=n(this);if(!s)throw Error(`Couldn't find host element for "${r.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.j.get(e),l=s.o,c=s.t;o=((t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t)(o,r.S[e][0]),8&l&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.j.set(e,o),c&&2==(18&l)&&x(s,!1))})(0,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,r,s){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==r){const n=o.t,i=null==(l=e.k)?void 0:l[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,r,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.k)?s:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},D=(t,o={})=>{var f;const m=[],p=o.exclude||[],d=c.customElements,w=a.head,y=w.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],S:o[2],M:o[3]};4&l.o&&(j=!0),l.S=o[2],l.M=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,p:n,j:new Map};o.C=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,G(this,t,l.M)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.p,l=()=>{};if(1&e.o)G(t,e,o.M),(null==e?void 0:e.t)||(null==e?void 0:e.C)&&e.C.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){P(e,e.h=n);break}}o.S&&Object.entries(o.S).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.O){const t=(t=>{const e=t.l.replace(/-/g,"_"),n=t.O;if(!n)return;const o=s.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(q(o,n,2),o.isProxied=!0);const i=()=>{};e.o|=8;try{new o(e)}catch(t){r(t)}e.o&=-9,i()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=O(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>x(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async()=>{if(!(1&u.o)){const t=n(this);t.T&&(t.T.map((t=>t())),t.T=void 0),(null==t?void 0:t.t)||(null==t?void 0:t.C)&&t.C.then((()=>{}))}})()))}componentOnReady(){return n(this).C}};l.O=t[0],p.includes(c)||d.get(c)||(m.push(c),d.define(c,q(a,l,1)))}))})),m.length>0&&(j&&(v.textContent+=l),v.textContent+=m.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(f=u.v)?f:S(a);null!=t&&v.setAttribute("nonce",t),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(A,30)))},G=(t,e,n)=>{n&&n.map((([n,o,r])=>{const s=_(t,n),i=V(e,r),l=z(n);u.ael(s,o,i,l),(e.T=e.T||[]).push((()=>u.rel(s,o,i,l)))}))},V=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.m=t.m||[]).push([e,n])}catch(t){r(t)}},_=(t,e)=>8&e?c:t,z=t=>({passive:!!(1&t),capture:!!(2&t)}),B=t=>u.v=t;export{D as b,f as p,o as r,B as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i}from"./p-8d46bf7a.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"}},e=class{constructor(e){i(this,e),this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)},this.endpoint=void 0,this.userid=void 0,this.actionStack=[]}handleEvent(i){var e,t;(null===(t=o[null===(e=this.actionStack[0])||void 0===e?void 0:e.action])||void 0===t?void 0:t.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};e.style=":host{display:block}";export{e as user_actions}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,b as e}from"./p-8d46bf7a.js";export{s as setNonce}from"./p-8d46bf7a.js";import{g as t}from"./p-e1255160.js";(()=>{const s=import.meta.url,e={};return""!==s&&(e.resourcesUrl=new URL(".",s).href),a(e)})().then((async a=>(await t(),e([["p-ac1b2491",[[1,"user-actions",{endpoint:[1],userid:[1],actionStack:[32]},[[8,"message","handleEvent"]]]]]],a))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i}from"./p-601818b5.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"}},e=class{constructor(e){i(this,e),this.actionStack=[],this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)}}handleEvent(i){var e,t;(null===(t=o[null===(e=this.actionStack[0])||void 0===e?void 0:e.action])||void 0===t?void 0:t.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};e.style=":host{display:block}";export{e as user_actions}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],p=[],v=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?b(w):u.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(m),y(p),(d=m.length>0)&&u.raf(w)},b=t=>h().then(t),$=v(p,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>E,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},C=(t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t,M=new WeakMap,P=t=>"sc-"+t.l,x=(t,e)=>{if(e&&!t.u&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.u=()=>{e["s-p"].splice(n-1,1),o()})))}},N=(t,e)=>{if(t.o|=16,!(4&t.o))return x(t,t.h),$((()=>T(t,e)));t.o|=512},T=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e&&(t.o|=256,t.m&&(t.m.map((([t,e])=>D(o,t,e,n))),t.m=void 0),s=D(o,"componentWillLoad",void 0,n)),A(s,(()=>L(t,o,e)))},A=(t,e)=>H(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),H=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,L=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.p,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=P(e),s=r.get(o);if(t=11===t.nodeType?t:a,s)if("string"==typeof s){let i,r=M.get(t=t.head||t);if(r||M.set(t,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),i.innerHTML=s;const r=null!=(n=u.v)?n:S(a);if(null!=r&&i.setAttribute("nonce",r),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=l),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);R(t,e,s),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>U(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},R=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.p.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){s(e,t.$hostElement$)}return null},U=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,F(e),t.$(e),n||W()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>N(t,!1))),t.o&=-517},W=()=>{b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},D=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},F=t=>t.classList.add("hydrated"),q=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.S.get(e),l=i.o,c=i.t;o=C(o,s.j[e][0]),8&l&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(i.S.set(e,o),c&&2==(18&l)&&N(i,!1))},G=(t,e,o)=>{var s,i;const r=t.prototype;if(e.j){const l=Object.entries(null!=(s=e.j)?s:{});if(l.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:i,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.j[t][0]|=2048),l&&(e.j[t][0]|=4096),(1&o||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.j[t][0]))return((t,e)=>n(this).S.get(e))(0,t);const o=n(this),s=o?o.t:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=n(this);if(l){const n=32&s?this[t]:r.$hostElement$[t];return void 0===n&&r.S.get(t)?i=r.S.get(t):!r.S.get(t)&&n&&r.S.set(t,n),l.call(this,C(i,s)),void q(this,t,i=32&s?this[t]:r.$hostElement$[t],e)}{if(!(1&o&&4096&e.j[t][0]))return q(this,t,i,e),void(1&o&&!r.t&&r.O.then((()=>{4096&e.j[t][0]&&r.t[t]!==r.S.get(t)&&(r.t[t]=i)})));const n=()=>{const n=r.t[t];!r.S.get(t)&&n&&r.S.set(t,n),r.t[t]=C(i,s),q(this,t,r.t[t],e)};r.t?n():r.O.then((()=>n()))}}})}})),1&o){const o=new Map;r.attributeChangedCallback=function(t,s,i){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&i!==s){const n=o.t,r=null==(l=e.k)?void 0:l[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,i,s,t)}))}return}}const a=Object.getOwnPropertyDescriptor(r,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.k)?i:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},V=(t,o={})=>{var h;const d=[],m=o.exclude||[],p=c.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],j:o[2],C:o[3]};4&l.o&&(j=!0),l.j=o[2],l.C=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,p:n,S:new Map};o.O=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,_(this,t,l.C)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.p,l=()=>{};if(1&e.o)_(t,e,o.C),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.h=n);break}}o.j&&Object.entries(o.j).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.M){const r=((t,e)=>{const n=t.l.replace(/-/g,"_"),o=t.M;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(G(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=P(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>N(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);e.N&&(e.N.map((t=>t())),e.N=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}))}M.has(t)&&M.delete(t),t.shadowRoot&&M.has(t.shadowRoot)&&M.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.T)?void 0:t.A)instanceof Node&&!e.T.A.isConnected&&delete e.T.A}))}componentOnReady(){return n(this).O}};l.M=t[0],m.includes(c)||p.get(c)||(d.push(c),p.define(c,G(a,l,1)))}))})),d.length>0&&(j&&(w.textContent+=l),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(h=u.v)?h:S(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(W,30)))},_=(t,e,n)=>{n&&n.map((([n,o,s])=>{const i=B(t,n),r=z(e,s),l=I(n);u.ael(i,o,r,l),(e.N=e.N||[]).push((()=>u.rel(i,o,r,l)))}))},z=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.m=t.m||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},B=(t,e)=>8&e?c:t,I=t=>({passive:!!(1&t),capture:!!(2&t)}),J=t=>u.v=t;export{V as b,h as p,o as r,J as s}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|