@everymatrix/user-actions 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-f085c6ba.js → index-cd722b1f.js} +127 -35
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-actions.cjs.entry.js +2 -4
- package/dist/cjs/user-actions.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-actions/user-actions.js +5 -3
- package/dist/esm/{index-e82c09e4.js → index-a5098c92.js} +127 -35
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-actions.entry.js +2 -4
- package/dist/esm/user-actions.js +3 -3
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.dev.d.ts +2 -0
- package/dist/user-actions/p-14c4eadc.entry.js +1 -0
- package/dist/user-actions/p-601818b5.js +2 -0
- package/dist/user-actions/user-actions.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.dev.d.ts +0 -2
- package/dist/user-actions/p-61c44598.entry.js +0 -1
- package/dist/user-actions/p-e9d33070.js +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,19 +21,23 @@ 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, 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 };
|
|
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, modernPropertyDecls: 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.26.0 | 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
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
52
57
|
|
|
@@ -82,16 +87,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
82
87
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
83
88
|
/* webpackMode: "lazy" */
|
|
84
89
|
`./${bundleId}.entry.js${""}`
|
|
85
|
-
)); }).then(
|
|
86
|
-
{
|
|
87
|
-
|
|
90
|
+
)); }).then(
|
|
91
|
+
(importedModule) => {
|
|
92
|
+
{
|
|
93
|
+
cmpModules.set(bundleId, importedModule);
|
|
94
|
+
}
|
|
95
|
+
return importedModule[exportName];
|
|
96
|
+
},
|
|
97
|
+
(e) => {
|
|
98
|
+
consoleError(e, hostRef.$hostElement$);
|
|
88
99
|
}
|
|
89
|
-
|
|
90
|
-
}, consoleError);
|
|
100
|
+
);
|
|
91
101
|
};
|
|
92
102
|
|
|
93
103
|
// src/client/client-style.ts
|
|
94
104
|
var styles = /* @__PURE__ */ new Map();
|
|
105
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
95
106
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
96
107
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
97
108
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -282,7 +293,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
282
293
|
}
|
|
283
294
|
if (!appliedStyles.has(scopeId2)) {
|
|
284
295
|
{
|
|
285
|
-
styleElm = doc.createElement("style");
|
|
296
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
286
297
|
styleElm.innerHTML = style;
|
|
287
298
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
288
299
|
if (nonce != null) {
|
|
@@ -292,7 +303,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
292
303
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
293
304
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
294
305
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
295
|
-
styleContainerNode.insertBefore(
|
|
306
|
+
styleContainerNode.insertBefore(
|
|
307
|
+
styleElm,
|
|
308
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
309
|
+
);
|
|
296
310
|
} else if ("host" in styleContainerNode) {
|
|
297
311
|
if (supportsConstructableStylesheets) {
|
|
298
312
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -310,7 +324,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
310
324
|
styleContainerNode.append(styleElm);
|
|
311
325
|
}
|
|
312
326
|
}
|
|
313
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
327
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
314
328
|
styleContainerNode.insertBefore(styleElm, null);
|
|
315
329
|
}
|
|
316
330
|
}
|
|
@@ -335,7 +349,7 @@ var attachStyles = (hostRef) => {
|
|
|
335
349
|
const scopeId2 = addStyle(
|
|
336
350
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
337
351
|
cmpMeta);
|
|
338
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
352
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
339
353
|
elm["s-sc"] = scopeId2;
|
|
340
354
|
elm.classList.add(scopeId2 + "-h");
|
|
341
355
|
}
|
|
@@ -346,7 +360,14 @@ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
|
346
360
|
// src/runtime/update-component.ts
|
|
347
361
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
348
362
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
349
|
-
ancestorComponent["s-p"].push(
|
|
363
|
+
const index = ancestorComponent["s-p"].push(
|
|
364
|
+
new Promise(
|
|
365
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
366
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
367
|
+
r();
|
|
368
|
+
}
|
|
369
|
+
)
|
|
370
|
+
);
|
|
350
371
|
}
|
|
351
372
|
};
|
|
352
373
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -375,12 +396,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
375
396
|
{
|
|
376
397
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
377
398
|
if (hostRef.$queuedListeners$) {
|
|
378
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
399
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
379
400
|
hostRef.$queuedListeners$ = void 0;
|
|
380
401
|
}
|
|
381
402
|
}
|
|
382
403
|
{
|
|
383
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
404
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
384
405
|
}
|
|
385
406
|
}
|
|
386
407
|
endSchedule();
|
|
@@ -477,17 +498,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
477
498
|
}
|
|
478
499
|
};
|
|
479
500
|
var appDidLoad = (who) => {
|
|
480
|
-
{
|
|
481
|
-
addHydratedFlag(doc.documentElement);
|
|
482
|
-
}
|
|
483
501
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
484
502
|
};
|
|
485
|
-
var safeCall = (instance, method, arg) => {
|
|
503
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
486
504
|
if (instance && instance[method]) {
|
|
487
505
|
try {
|
|
488
506
|
return instance[method](arg);
|
|
489
507
|
} catch (e) {
|
|
490
|
-
consoleError(e);
|
|
508
|
+
consoleError(e, elm);
|
|
491
509
|
}
|
|
492
510
|
}
|
|
493
511
|
return void 0;
|
|
@@ -530,15 +548,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
530
548
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
531
549
|
members.map(([memberName, [memberFlags]]) => {
|
|
532
550
|
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
|
+
}
|
|
533
571
|
Object.defineProperty(prototype, memberName, {
|
|
534
|
-
get() {
|
|
535
|
-
return getValue(this, memberName);
|
|
536
|
-
},
|
|
537
572
|
set(newValue) {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
573
|
+
const ref = getHostRef(this);
|
|
574
|
+
if (origSetter) {
|
|
575
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
576
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
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
|
+
}
|
|
542
613
|
});
|
|
543
614
|
}
|
|
544
615
|
});
|
|
@@ -548,7 +619,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
548
619
|
plt.jmp(() => {
|
|
549
620
|
var _a2;
|
|
550
621
|
const propName = attrNameToPropName.get(attrName);
|
|
551
|
-
if (this.hasOwnProperty(propName)) {
|
|
622
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
552
623
|
newValue = this[propName];
|
|
553
624
|
delete this[propName];
|
|
554
625
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -568,7 +639,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
568
639
|
}
|
|
569
640
|
return;
|
|
570
641
|
}
|
|
571
|
-
|
|
642
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
643
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
644
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
645
|
+
this[propName] = newValue;
|
|
646
|
+
}
|
|
572
647
|
});
|
|
573
648
|
};
|
|
574
649
|
Cstr.observedAttributes = Array.from(
|
|
@@ -593,7 +668,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
593
668
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
594
669
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
595
670
|
if (bundleId) {
|
|
596
|
-
const CstrImport = loadModule(cmpMeta);
|
|
671
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
597
672
|
if (CstrImport && "then" in CstrImport) {
|
|
598
673
|
const endLoad = uniqueTime();
|
|
599
674
|
Cstr = await CstrImport;
|
|
@@ -615,7 +690,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
615
690
|
try {
|
|
616
691
|
new Cstr(hostRef);
|
|
617
692
|
} catch (e) {
|
|
618
|
-
consoleError(e);
|
|
693
|
+
consoleError(e, elm);
|
|
619
694
|
}
|
|
620
695
|
{
|
|
621
696
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -647,7 +722,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
647
722
|
schedule();
|
|
648
723
|
}
|
|
649
724
|
};
|
|
650
|
-
var fireConnectedCallback = (instance) => {
|
|
725
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
651
726
|
};
|
|
652
727
|
|
|
653
728
|
// src/runtime/connected-callback.ts
|
|
@@ -688,7 +763,7 @@ var connectedCallback = (elm) => {
|
|
|
688
763
|
endConnected();
|
|
689
764
|
}
|
|
690
765
|
};
|
|
691
|
-
var disconnectInstance = (instance) => {
|
|
766
|
+
var disconnectInstance = (instance, elm) => {
|
|
692
767
|
};
|
|
693
768
|
var disconnectedCallback = async (elm) => {
|
|
694
769
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -703,6 +778,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
703
778
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
704
779
|
}
|
|
705
780
|
}
|
|
781
|
+
if (rootAppliedStyles.has(elm)) {
|
|
782
|
+
rootAppliedStyles.delete(elm);
|
|
783
|
+
}
|
|
784
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
785
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
786
|
+
}
|
|
706
787
|
};
|
|
707
788
|
|
|
708
789
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -780,6 +861,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
780
861
|
}
|
|
781
862
|
disconnectedCallback() {
|
|
782
863
|
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
|
+
});
|
|
783
875
|
}
|
|
784
876
|
componentOnReady() {
|
|
785
877
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -843,7 +935,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
843
935
|
}
|
|
844
936
|
}
|
|
845
937
|
} catch (e) {
|
|
846
|
-
consoleError(e);
|
|
938
|
+
consoleError(e, hostRef.$hostElement$);
|
|
847
939
|
}
|
|
848
940
|
};
|
|
849
941
|
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-cd722b1f.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-cd722b1f.js');
|
|
6
6
|
|
|
7
7
|
const actionsMapping = {
|
|
8
8
|
"verification-popup": {
|
|
@@ -37,15 +37,13 @@ const UserActionsStyle0 = userActionsCss;
|
|
|
37
37
|
const UserActions = class {
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
index.registerInstance(this, hostRef);
|
|
40
|
+
this.actionStack = [];
|
|
40
41
|
this.emitCurrentActionEvent = () => {
|
|
41
42
|
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
42
43
|
};
|
|
43
44
|
this.shiftActionStack = () => {
|
|
44
45
|
this.actionStack = this.actionStack.slice(1);
|
|
45
46
|
};
|
|
46
|
-
this.endpoint = undefined;
|
|
47
|
-
this.userid = undefined;
|
|
48
|
-
this.actionStack = [];
|
|
49
47
|
}
|
|
50
48
|
handleEvent(e) {
|
|
51
49
|
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-cd722b1f.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.26.0 | 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,15 +1,13 @@
|
|
|
1
1
|
import { actionsMapping } from "../../utils/utils";
|
|
2
2
|
export class UserActions {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.actionStack = [];
|
|
4
5
|
this.emitCurrentActionEvent = () => {
|
|
5
6
|
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
6
7
|
};
|
|
7
8
|
this.shiftActionStack = () => {
|
|
8
9
|
this.actionStack = this.actionStack.slice(1);
|
|
9
10
|
};
|
|
10
|
-
this.endpoint = undefined;
|
|
11
|
-
this.userid = undefined;
|
|
12
|
-
this.actionStack = [];
|
|
13
11
|
}
|
|
14
12
|
handleEvent(e) {
|
|
15
13
|
var _a, _b;
|
|
@@ -65,6 +63,8 @@ export class UserActions {
|
|
|
65
63
|
"tags": [],
|
|
66
64
|
"text": ""
|
|
67
65
|
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
68
68
|
"attribute": "endpoint",
|
|
69
69
|
"reflect": false
|
|
70
70
|
},
|
|
@@ -82,6 +82,8 @@ export class UserActions {
|
|
|
82
82
|
"tags": [],
|
|
83
83
|
"text": ""
|
|
84
84
|
},
|
|
85
|
+
"getter": false,
|
|
86
|
+
"setter": false,
|
|
85
87
|
"attribute": "userid",
|
|
86
88
|
"reflect": false
|
|
87
89
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
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, 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 };
|
|
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, modernPropertyDecls: 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.26.0 | 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
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
30
35
|
|
|
@@ -60,16 +65,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
60
65
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
61
66
|
/* webpackMode: "lazy" */
|
|
62
67
|
`./${bundleId}.entry.js${""}`
|
|
63
|
-
).then(
|
|
64
|
-
{
|
|
65
|
-
|
|
68
|
+
).then(
|
|
69
|
+
(importedModule) => {
|
|
70
|
+
{
|
|
71
|
+
cmpModules.set(bundleId, importedModule);
|
|
72
|
+
}
|
|
73
|
+
return importedModule[exportName];
|
|
74
|
+
},
|
|
75
|
+
(e) => {
|
|
76
|
+
consoleError(e, hostRef.$hostElement$);
|
|
66
77
|
}
|
|
67
|
-
|
|
68
|
-
}, consoleError);
|
|
78
|
+
);
|
|
69
79
|
};
|
|
70
80
|
|
|
71
81
|
// src/client/client-style.ts
|
|
72
82
|
var styles = /* @__PURE__ */ new Map();
|
|
83
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
73
84
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
74
85
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
75
86
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -260,7 +271,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
260
271
|
}
|
|
261
272
|
if (!appliedStyles.has(scopeId2)) {
|
|
262
273
|
{
|
|
263
|
-
styleElm = doc.createElement("style");
|
|
274
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
264
275
|
styleElm.innerHTML = style;
|
|
265
276
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
266
277
|
if (nonce != null) {
|
|
@@ -270,7 +281,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
270
281
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
271
282
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
272
283
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
273
|
-
styleContainerNode.insertBefore(
|
|
284
|
+
styleContainerNode.insertBefore(
|
|
285
|
+
styleElm,
|
|
286
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
287
|
+
);
|
|
274
288
|
} else if ("host" in styleContainerNode) {
|
|
275
289
|
if (supportsConstructableStylesheets) {
|
|
276
290
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -288,7 +302,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
288
302
|
styleContainerNode.append(styleElm);
|
|
289
303
|
}
|
|
290
304
|
}
|
|
291
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
305
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
292
306
|
styleContainerNode.insertBefore(styleElm, null);
|
|
293
307
|
}
|
|
294
308
|
}
|
|
@@ -313,7 +327,7 @@ var attachStyles = (hostRef) => {
|
|
|
313
327
|
const scopeId2 = addStyle(
|
|
314
328
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
315
329
|
cmpMeta);
|
|
316
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
330
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
317
331
|
elm["s-sc"] = scopeId2;
|
|
318
332
|
elm.classList.add(scopeId2 + "-h");
|
|
319
333
|
}
|
|
@@ -324,7 +338,14 @@ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
|
324
338
|
// src/runtime/update-component.ts
|
|
325
339
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
326
340
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
327
|
-
ancestorComponent["s-p"].push(
|
|
341
|
+
const index = ancestorComponent["s-p"].push(
|
|
342
|
+
new Promise(
|
|
343
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
344
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
345
|
+
r();
|
|
346
|
+
}
|
|
347
|
+
)
|
|
348
|
+
);
|
|
328
349
|
}
|
|
329
350
|
};
|
|
330
351
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -353,12 +374,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
353
374
|
{
|
|
354
375
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
355
376
|
if (hostRef.$queuedListeners$) {
|
|
356
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
377
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
357
378
|
hostRef.$queuedListeners$ = void 0;
|
|
358
379
|
}
|
|
359
380
|
}
|
|
360
381
|
{
|
|
361
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
382
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
362
383
|
}
|
|
363
384
|
}
|
|
364
385
|
endSchedule();
|
|
@@ -455,17 +476,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
455
476
|
}
|
|
456
477
|
};
|
|
457
478
|
var appDidLoad = (who) => {
|
|
458
|
-
{
|
|
459
|
-
addHydratedFlag(doc.documentElement);
|
|
460
|
-
}
|
|
461
479
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
462
480
|
};
|
|
463
|
-
var safeCall = (instance, method, arg) => {
|
|
481
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
464
482
|
if (instance && instance[method]) {
|
|
465
483
|
try {
|
|
466
484
|
return instance[method](arg);
|
|
467
485
|
} catch (e) {
|
|
468
|
-
consoleError(e);
|
|
486
|
+
consoleError(e, elm);
|
|
469
487
|
}
|
|
470
488
|
}
|
|
471
489
|
return void 0;
|
|
@@ -508,15 +526,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
508
526
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
509
527
|
members.map(([memberName, [memberFlags]]) => {
|
|
510
528
|
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
|
+
}
|
|
511
549
|
Object.defineProperty(prototype, memberName, {
|
|
512
|
-
get() {
|
|
513
|
-
return getValue(this, memberName);
|
|
514
|
-
},
|
|
515
550
|
set(newValue) {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
551
|
+
const ref = getHostRef(this);
|
|
552
|
+
if (origSetter) {
|
|
553
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
554
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
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
|
+
}
|
|
520
591
|
});
|
|
521
592
|
}
|
|
522
593
|
});
|
|
@@ -526,7 +597,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
526
597
|
plt.jmp(() => {
|
|
527
598
|
var _a2;
|
|
528
599
|
const propName = attrNameToPropName.get(attrName);
|
|
529
|
-
if (this.hasOwnProperty(propName)) {
|
|
600
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
530
601
|
newValue = this[propName];
|
|
531
602
|
delete this[propName];
|
|
532
603
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -546,7 +617,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
546
617
|
}
|
|
547
618
|
return;
|
|
548
619
|
}
|
|
549
|
-
|
|
620
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
621
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
622
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
623
|
+
this[propName] = newValue;
|
|
624
|
+
}
|
|
550
625
|
});
|
|
551
626
|
};
|
|
552
627
|
Cstr.observedAttributes = Array.from(
|
|
@@ -571,7 +646,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
571
646
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
572
647
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
573
648
|
if (bundleId) {
|
|
574
|
-
const CstrImport = loadModule(cmpMeta);
|
|
649
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
575
650
|
if (CstrImport && "then" in CstrImport) {
|
|
576
651
|
const endLoad = uniqueTime();
|
|
577
652
|
Cstr = await CstrImport;
|
|
@@ -593,7 +668,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
593
668
|
try {
|
|
594
669
|
new Cstr(hostRef);
|
|
595
670
|
} catch (e) {
|
|
596
|
-
consoleError(e);
|
|
671
|
+
consoleError(e, elm);
|
|
597
672
|
}
|
|
598
673
|
{
|
|
599
674
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -625,7 +700,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
625
700
|
schedule();
|
|
626
701
|
}
|
|
627
702
|
};
|
|
628
|
-
var fireConnectedCallback = (instance) => {
|
|
703
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
629
704
|
};
|
|
630
705
|
|
|
631
706
|
// src/runtime/connected-callback.ts
|
|
@@ -666,7 +741,7 @@ var connectedCallback = (elm) => {
|
|
|
666
741
|
endConnected();
|
|
667
742
|
}
|
|
668
743
|
};
|
|
669
|
-
var disconnectInstance = (instance) => {
|
|
744
|
+
var disconnectInstance = (instance, elm) => {
|
|
670
745
|
};
|
|
671
746
|
var disconnectedCallback = async (elm) => {
|
|
672
747
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -681,6 +756,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
681
756
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
682
757
|
}
|
|
683
758
|
}
|
|
759
|
+
if (rootAppliedStyles.has(elm)) {
|
|
760
|
+
rootAppliedStyles.delete(elm);
|
|
761
|
+
}
|
|
762
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
763
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
764
|
+
}
|
|
684
765
|
};
|
|
685
766
|
|
|
686
767
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -758,6 +839,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
758
839
|
}
|
|
759
840
|
disconnectedCallback() {
|
|
760
841
|
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
|
+
});
|
|
761
853
|
}
|
|
762
854
|
componentOnReady() {
|
|
763
855
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -821,7 +913,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
821
913
|
}
|
|
822
914
|
}
|
|
823
915
|
} catch (e) {
|
|
824
|
-
consoleError(e);
|
|
916
|
+
consoleError(e, hostRef.$hostElement$);
|
|
825
917
|
}
|
|
826
918
|
};
|
|
827
919
|
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-a5098c92.js';
|
|
2
|
+
export { s as setNonce } from './index-a5098c92.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-a5098c92.js';
|
|
2
2
|
|
|
3
3
|
const actionsMapping = {
|
|
4
4
|
"verification-popup": {
|
|
@@ -33,15 +33,13 @@ const UserActionsStyle0 = userActionsCss;
|
|
|
33
33
|
const UserActions = class {
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
registerInstance(this, hostRef);
|
|
36
|
+
this.actionStack = [];
|
|
36
37
|
this.emitCurrentActionEvent = () => {
|
|
37
38
|
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
38
39
|
};
|
|
39
40
|
this.shiftActionStack = () => {
|
|
40
41
|
this.actionStack = this.actionStack.slice(1);
|
|
41
42
|
};
|
|
42
|
-
this.endpoint = undefined;
|
|
43
|
-
this.userid = undefined;
|
|
44
|
-
this.actionStack = [];
|
|
45
43
|
}
|
|
46
44
|
handleEvent(e) {
|
|
47
45
|
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-a5098c92.js';
|
|
2
|
+
export { s as setNonce } from './index-a5098c92.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.26.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1 @@
|
|
|
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}
|
|
@@ -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)},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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as
|
|
1
|
+
import{p as e,b as a}from"./p-601818b5.js";export{s as setNonce}from"./p-601818b5.js";import{g as t}from"./p-e1255160.js";(()=>{const s=import.meta.url,a={};return""!==s&&(a.resourcesUrl=new URL(".",s).href),e(a)})().then((async s=>(await t(),a([["p-14c4eadc",[[1,"user-actions",{endpoint:[1],userid:[1],actionStack:[32]},[[8,"message","handleEvent"]]]]]],s))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i}from"./p-e9d33070.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,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),s=(e,t)=>(0,console.error)(e,t),r=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:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,p=[],d=[],y=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&u.o?b(v):u.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{w(p),w(d),(m=p.length>0)&&u.raf(v)},b=e=>f().then(e),$=y(d,!0);function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>j,ok:()=>g,unwrap:()=>k,unwrapErr:()=>C});var g=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function j(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>g(e))):g(n)}if(e.isErr)return E(e.value);throw"should never get here"}var k=e=>{if(e.isOk)return e.value;throw e.value},C=e=>{if(e.isErr)return e.value;throw e.value},M=new WeakMap,O=e=>"sc-"+e.l,P=(e,t)=>{t&&!e.u&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.u=t)))},x=(e,t)=>{if(e.o|=16,!(4&e.o))return P(e,e.h),$((()=>A(e,t)));e.o|=512},A=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$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 t&&(e.o|=256,e.m&&(e.m.map((([e,t])=>U(n,e,t))),e.m=void 0),o=U(n,"componentWillLoad")),H(o,(()=>D(e,n,t)))},H=(e,t)=>T(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),T=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,D=async(e,t,n)=>{var o;const s=e.$hostElement$,r=s["s-rc"];n&&(e=>{const t=e.p,n=e.$hostElement$,o=t.o,s=((e,t)=>{var n;const o=O(t),s=i.get(o);if(e=11===e.nodeType?e:a,s)if("string"==typeof s){let r,i=M.get(e=e.head||e);if(i||M.set(e,i=new Set),!i.has(o)){{r=a.createElement("style"),r.innerHTML=s;const o=null!=(n=u.v)?n:S(a);if(null!=o&&r.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(r,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(s),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=s+t.innerHTML:e.prepend(r)}else e.append(r);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(r,null)}4&t.o&&(r.innerHTML+=l),i&&i.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);L(e,t,s),r&&(r.map((e=>e())),s["s-rc"]=void 0);{const t=null!=(o=s["s-p"])?o:[],n=()=>N(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},L=(e,t,n)=>{try{t=t.render(),e.o&=-17,e.o|=2,1&e.p.o?n.shadowRoot.textContent=t:n.textContent=t}catch(t){s(t,e.$hostElement$)}return null},N=e=>{const t=e.$hostElement$,n=e.h;64&e.o||(e.o|=64,W(t),e.$(t),n||R()),e.u&&(e.u(),e.u=void 0),512&e.o&&b((()=>x(e,!1))),e.o&=-517},R=()=>{W(a.documentElement),b((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"user-actions"}});return e.dispatchEvent(t),t})(c)))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},W=e=>e.classList.add("hydrated"),F=(e,t,o)=>{var s,r;const i=e.prototype;if(t.S){const l=Object.entries(null!=(s=t.S)?s:{});if(l.map((([e,[s]])=>{(31&s||2&o&&32&s)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).j.get(t))(0,e)},set(o){((e,t,o,s)=>{const r=n(this);if(!r)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 i=r.j.get(t),l=r.o,c=r.t;o=((e,t)=>null==e||(e=>"object"==(e=typeof e)||"function"===e)(e)?e:1&t?e+"":e)(o,s.S[t][0]),8&l&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(r.j.set(t,o),c&&2==(18&l)&&x(r,!1))})(0,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,s,r){u.jmp((()=>{var l;const c=o.get(e);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&r!==s){const n=o.t,i=null==(l=t.k)?void 0:l[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,r,s,e)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.k)?r:{}),...l.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},q=(e,o={})=>{var f;const m=[],p=o.exclude||[],d=c.customElements,y=a.head,w=y.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 E=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],l:o[1],S:o[2],C:o[3]};4&l.o&&(E=!0),l.S=o[2],l.C=o[3];const c=l.l,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,p:n,j:new Map};o.M=new Promise((e=>o.$=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,G(this,e,l.C)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(e=>{if(!(1&u.o)){const t=n(e),o=t.p,l=()=>{};if(1&t.o)G(e,t,o.C),(null==t?void 0:t.t)||(null==t?void 0:t.M)&&t.M.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){P(t,t.h=n);break}}o.S&&Object.entries(o.S).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.O){const e=(e=>{const t=e.l.replace(/-/g,"_"),n=e.O;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.l}#${t.P}" was not found`);o.isProxied||(F(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=O(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.h,c=()=>x(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async()=>{if(!(1&u.o)){const e=n(this);e.A&&(e.A.map((e=>e())),e.A=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.M)&&e.M.then((()=>{}))}})()))}componentOnReady(){return n(this).M}};l.O=e[0],p.includes(c)||d.get(c)||(m.push(c),d.define(c,F(a,l,1)))}))})),m.length>0&&(E&&(v.textContent+=l),v.textContent+=m.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=u.v)?f:S(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):u.jmp((()=>$=setTimeout(R,30)))},G=(e,t,n)=>{n&&n.map((([n,o,s])=>{const r=_(e,n),i=V(t,s),l=z(n);u.ael(r,o,i,l),(t.A=t.A||[]).push((()=>u.rel(r,o,i,l)))}))},V=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.m=e.m||[]).push([t,n])}catch(e){s(e)}},_=(e,t)=>8&t?c:e,z=e=>({passive:!!(1&e),capture:!!(2&e)}),B=e=>u.v=e;export{q as b,f as p,o as r,B as s}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|