@everymatrix/user-action-controller 1.54.12 → 1.55.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-eb2c9562.js → index-316ef19a.js} +79 -177
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/player-user-consents_2.cjs.entry.js +107 -117
- package/dist/cjs/user-action-controller.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-action-controller/user-action-controller.js +49 -73
- package/dist/esm/{index-b5753d50.js → index-48848b35.js} +79 -177
- package/dist/esm/loader.js +3 -3
- package/dist/esm/player-user-consents_2.entry.js +107 -117
- package/dist/esm/user-action-controller.js +4 -4
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-action-controller/user-action-controller.d.ts +4 -3
- package/dist/types/components.d.ts +2 -0
- package/dist/user-action-controller/p-5a10e23d.js +2 -0
- package/dist/user-action-controller/p-ef35142f.entry.js +1 -0
- package/dist/user-action-controller/user-action-controller.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +0 -2
- package/dist/user-action-controller/p-649aa648.entry.js +0 -1
- package/dist/user-action-controller/p-a70608c7.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.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-action-controller/.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-action-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'user-action-controller';
|
|
2
|
-
const BUILD = /* user-action-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
2
|
+
const BUILD = /* user-action-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | 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/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
19
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
20
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
21
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
23
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
16
|
const hostRef = {
|
|
25
17
|
$flags$: 0,
|
|
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
24
|
hostElement["s-p"] = [];
|
|
33
25
|
hostElement["s-rc"] = [];
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
37
28
|
};
|
|
38
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
39
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
70
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
71
62
|
/* webpackMode: "lazy" */
|
|
72
63
|
`./${bundleId}.entry.js${""}`
|
|
73
|
-
).then(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
cmpModules.set(bundleId, importedModule);
|
|
77
|
-
}
|
|
78
|
-
return importedModule[exportName];
|
|
79
|
-
},
|
|
80
|
-
(e) => {
|
|
81
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
82
67
|
}
|
|
83
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
84
70
|
};
|
|
85
71
|
|
|
86
72
|
// src/client/client-style.ts
|
|
87
73
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
89
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
90
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
91
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -159,6 +144,14 @@ var flush = () => {
|
|
|
159
144
|
};
|
|
160
145
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
161
146
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
147
|
+
|
|
148
|
+
// src/utils/constants.ts
|
|
149
|
+
var EMPTY_OBJ = {};
|
|
150
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
151
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
152
|
+
|
|
153
|
+
// src/utils/helpers.ts
|
|
154
|
+
var isDef = (v) => v != null;
|
|
162
155
|
var isComplexType = (o) => {
|
|
163
156
|
o = typeof o;
|
|
164
157
|
return o === "object" || o === "function";
|
|
@@ -359,7 +352,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
359
352
|
}
|
|
360
353
|
if (!appliedStyles.has(scopeId2)) {
|
|
361
354
|
{
|
|
362
|
-
styleElm =
|
|
355
|
+
styleElm = doc.createElement("style");
|
|
363
356
|
styleElm.innerHTML = style;
|
|
364
357
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
365
358
|
if (nonce != null) {
|
|
@@ -369,10 +362,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
369
362
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
370
363
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
371
364
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
372
|
-
styleContainerNode.insertBefore(
|
|
373
|
-
styleElm,
|
|
374
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
375
|
-
);
|
|
365
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
376
366
|
} else if ("host" in styleContainerNode) {
|
|
377
367
|
if (supportsConstructableStylesheets) {
|
|
378
368
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -390,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
390
380
|
styleContainerNode.append(styleElm);
|
|
391
381
|
}
|
|
392
382
|
}
|
|
393
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
383
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
394
384
|
styleContainerNode.insertBefore(styleElm, null);
|
|
395
385
|
}
|
|
396
386
|
}
|
|
@@ -415,25 +405,23 @@ var attachStyles = (hostRef) => {
|
|
|
415
405
|
const scopeId2 = addStyle(
|
|
416
406
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
417
407
|
cmpMeta);
|
|
418
|
-
if (
|
|
408
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
419
409
|
elm["s-sc"] = scopeId2;
|
|
420
410
|
elm.classList.add(scopeId2 + "-h");
|
|
421
411
|
}
|
|
422
412
|
endAttachStyles();
|
|
423
413
|
};
|
|
424
414
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
425
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
415
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
426
416
|
if (oldValue !== newValue) {
|
|
427
417
|
let isProp = isMemberInElement(elm, memberName);
|
|
428
418
|
let ln = memberName.toLowerCase();
|
|
429
419
|
if (memberName === "class") {
|
|
430
420
|
const classList = elm.classList;
|
|
431
421
|
const oldClasses = parseClassList(oldValue);
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
436
|
-
}
|
|
422
|
+
const newClasses = parseClassList(newValue);
|
|
423
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
424
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
437
425
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
438
426
|
if (newValue) {
|
|
439
427
|
newValue(elm);
|
|
@@ -471,7 +459,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
471
459
|
elm.setAttribute(memberName, n);
|
|
472
460
|
}
|
|
473
461
|
}
|
|
474
|
-
} else
|
|
462
|
+
} else {
|
|
475
463
|
elm[memberName] = newValue;
|
|
476
464
|
}
|
|
477
465
|
} catch (e) {
|
|
@@ -493,44 +481,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
493
481
|
}
|
|
494
482
|
};
|
|
495
483
|
var parseClassListRegex = /\s/;
|
|
496
|
-
var parseClassList = (value) =>
|
|
497
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
498
|
-
value = value.baseVal;
|
|
499
|
-
}
|
|
500
|
-
if (!value || typeof value !== "string") {
|
|
501
|
-
return [];
|
|
502
|
-
}
|
|
503
|
-
return value.split(parseClassListRegex);
|
|
504
|
-
};
|
|
484
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
505
485
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
506
486
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
507
487
|
|
|
508
488
|
// src/runtime/vdom/update-element.ts
|
|
509
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
489
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
510
490
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
511
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
512
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
491
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
492
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
513
493
|
{
|
|
514
494
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
515
495
|
if (!(memberName in newVnodeAttrs)) {
|
|
516
|
-
setAccessor(
|
|
517
|
-
elm,
|
|
518
|
-
memberName,
|
|
519
|
-
oldVnodeAttrs[memberName],
|
|
520
|
-
void 0,
|
|
521
|
-
isSvgMode2,
|
|
522
|
-
newVnode.$flags$);
|
|
496
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
523
497
|
}
|
|
524
498
|
}
|
|
525
499
|
}
|
|
526
500
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
527
|
-
setAccessor(
|
|
528
|
-
elm,
|
|
529
|
-
memberName,
|
|
530
|
-
oldVnodeAttrs[memberName],
|
|
531
|
-
newVnodeAttrs[memberName],
|
|
532
|
-
isSvgMode2,
|
|
533
|
-
newVnode.$flags$);
|
|
501
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
534
502
|
}
|
|
535
503
|
};
|
|
536
504
|
function sortedAttrNames(attrNames) {
|
|
@@ -542,10 +510,13 @@ function sortedAttrNames(attrNames) {
|
|
|
542
510
|
attrNames
|
|
543
511
|
);
|
|
544
512
|
}
|
|
513
|
+
|
|
514
|
+
// src/runtime/vdom/vdom-render.ts
|
|
515
|
+
var scopeId;
|
|
545
516
|
var hostTagName;
|
|
546
517
|
var useNativeShadowDom = false;
|
|
547
518
|
var isSvgMode = false;
|
|
548
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
519
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
549
520
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
550
521
|
let i2 = 0;
|
|
551
522
|
let elm;
|
|
@@ -566,6 +537,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
566
537
|
{
|
|
567
538
|
updateElement(null, newVNode2, isSvgMode);
|
|
568
539
|
}
|
|
540
|
+
const rootNode = elm.getRootNode();
|
|
541
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
542
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
543
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
544
|
+
}
|
|
569
545
|
if (newVNode2.$children$) {
|
|
570
546
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
571
547
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -702,9 +678,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
702
678
|
if (!isInitialRender) {
|
|
703
679
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
704
680
|
}
|
|
705
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
706
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
707
|
-
}
|
|
708
681
|
return true;
|
|
709
682
|
}
|
|
710
683
|
return false;
|
|
@@ -751,9 +724,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
751
724
|
}
|
|
752
725
|
};
|
|
753
726
|
var insertBefore = (parent, newNode, reference) => {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
727
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
728
|
+
return inserted;
|
|
757
729
|
};
|
|
758
730
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
759
731
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -778,21 +750,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
778
750
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
779
751
|
hostRef.$vnode$ = rootVnode;
|
|
780
752
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
781
|
-
|
|
753
|
+
{
|
|
754
|
+
scopeId = hostElm["s-sc"];
|
|
755
|
+
}
|
|
756
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
782
757
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
783
758
|
};
|
|
784
759
|
|
|
785
760
|
// src/runtime/update-component.ts
|
|
786
761
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
787
762
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
788
|
-
|
|
789
|
-
new Promise(
|
|
790
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
791
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
792
|
-
r();
|
|
793
|
-
}
|
|
794
|
-
)
|
|
795
|
-
);
|
|
763
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
796
764
|
}
|
|
797
765
|
};
|
|
798
766
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -821,12 +789,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
821
789
|
{
|
|
822
790
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
823
791
|
if (hostRef.$queuedListeners$) {
|
|
824
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
792
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
825
793
|
hostRef.$queuedListeners$ = void 0;
|
|
826
794
|
}
|
|
827
795
|
}
|
|
828
796
|
{
|
|
829
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
797
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
830
798
|
}
|
|
831
799
|
}
|
|
832
800
|
endSchedule();
|
|
@@ -894,14 +862,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
894
862
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
895
863
|
const instance = hostRef.$lazyInstance$ ;
|
|
896
864
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
897
|
-
{
|
|
898
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
899
|
-
}
|
|
900
865
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
901
866
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
902
867
|
{
|
|
903
868
|
addHydratedFlag(elm);
|
|
904
869
|
}
|
|
870
|
+
{
|
|
871
|
+
safeCall(instance, "componentDidLoad");
|
|
872
|
+
}
|
|
905
873
|
endPostUpdate();
|
|
906
874
|
{
|
|
907
875
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -924,14 +892,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
924
892
|
}
|
|
925
893
|
};
|
|
926
894
|
var appDidLoad = (who) => {
|
|
895
|
+
{
|
|
896
|
+
addHydratedFlag(doc.documentElement);
|
|
897
|
+
}
|
|
927
898
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
928
899
|
};
|
|
929
|
-
var safeCall = (instance, method, arg
|
|
900
|
+
var safeCall = (instance, method, arg) => {
|
|
930
901
|
if (instance && instance[method]) {
|
|
931
902
|
try {
|
|
932
903
|
return instance[method](arg);
|
|
933
904
|
} catch (e) {
|
|
934
|
-
consoleError(e
|
|
905
|
+
consoleError(e);
|
|
935
906
|
}
|
|
936
907
|
}
|
|
937
908
|
return void 0;
|
|
@@ -990,68 +961,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
990
961
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
991
962
|
members.map(([memberName, [memberFlags]]) => {
|
|
992
963
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
993
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
994
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
995
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
996
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
997
|
-
Object.defineProperty(prototype, memberName, {
|
|
998
|
-
get() {
|
|
999
|
-
{
|
|
1000
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1001
|
-
return getValue(this, memberName);
|
|
1002
|
-
}
|
|
1003
|
-
const ref = getHostRef(this);
|
|
1004
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1005
|
-
if (!instance) return;
|
|
1006
|
-
return instance[memberName];
|
|
1007
|
-
}
|
|
1008
|
-
},
|
|
1009
|
-
configurable: true,
|
|
1010
|
-
enumerable: true
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
964
|
Object.defineProperty(prototype, memberName, {
|
|
965
|
+
get() {
|
|
966
|
+
return getValue(this, memberName);
|
|
967
|
+
},
|
|
1014
968
|
set(newValue) {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1020
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1021
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1022
|
-
}
|
|
1023
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1024
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1025
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1026
|
-
return;
|
|
1027
|
-
}
|
|
1028
|
-
{
|
|
1029
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1030
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1031
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1032
|
-
ref.$onReadyPromise$.then(() => {
|
|
1033
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1034
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
return;
|
|
1039
|
-
}
|
|
1040
|
-
const setterSetVal = () => {
|
|
1041
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1042
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1043
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1044
|
-
}
|
|
1045
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1046
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1047
|
-
};
|
|
1048
|
-
if (ref.$lazyInstance$) {
|
|
1049
|
-
setterSetVal();
|
|
1050
|
-
} else {
|
|
1051
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
969
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
970
|
+
},
|
|
971
|
+
configurable: true,
|
|
972
|
+
enumerable: true
|
|
1055
973
|
});
|
|
1056
974
|
}
|
|
1057
975
|
});
|
|
@@ -1061,7 +979,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1061
979
|
plt.jmp(() => {
|
|
1062
980
|
var _a2;
|
|
1063
981
|
const propName = attrNameToPropName.get(attrName);
|
|
1064
|
-
if (this.hasOwnProperty(propName)
|
|
982
|
+
if (this.hasOwnProperty(propName)) {
|
|
1065
983
|
newValue = this[propName];
|
|
1066
984
|
delete this[propName];
|
|
1067
985
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1081,11 +999,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1081
999
|
}
|
|
1082
1000
|
return;
|
|
1083
1001
|
}
|
|
1084
|
-
|
|
1085
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1086
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1087
|
-
this[propName] = newValue;
|
|
1088
|
-
}
|
|
1002
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1089
1003
|
});
|
|
1090
1004
|
};
|
|
1091
1005
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1114,7 +1028,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1114
1028
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1115
1029
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1116
1030
|
if (bundleId) {
|
|
1117
|
-
const CstrImport = loadModule(cmpMeta
|
|
1031
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1118
1032
|
if (CstrImport && "then" in CstrImport) {
|
|
1119
1033
|
const endLoad = uniqueTime();
|
|
1120
1034
|
Cstr = await CstrImport;
|
|
@@ -1139,7 +1053,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1139
1053
|
try {
|
|
1140
1054
|
new Cstr(hostRef);
|
|
1141
1055
|
} catch (e) {
|
|
1142
|
-
consoleError(e
|
|
1056
|
+
consoleError(e);
|
|
1143
1057
|
}
|
|
1144
1058
|
{
|
|
1145
1059
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1174,7 +1088,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1174
1088
|
schedule();
|
|
1175
1089
|
}
|
|
1176
1090
|
};
|
|
1177
|
-
var fireConnectedCallback = (instance
|
|
1091
|
+
var fireConnectedCallback = (instance) => {
|
|
1178
1092
|
};
|
|
1179
1093
|
|
|
1180
1094
|
// src/runtime/connected-callback.ts
|
|
@@ -1215,7 +1129,10 @@ var connectedCallback = (elm) => {
|
|
|
1215
1129
|
endConnected();
|
|
1216
1130
|
}
|
|
1217
1131
|
};
|
|
1218
|
-
var disconnectInstance = (instance
|
|
1132
|
+
var disconnectInstance = (instance) => {
|
|
1133
|
+
{
|
|
1134
|
+
safeCall(instance, "disconnectedCallback");
|
|
1135
|
+
}
|
|
1219
1136
|
};
|
|
1220
1137
|
var disconnectedCallback = async (elm) => {
|
|
1221
1138
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1226,16 +1143,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1226
1143
|
hostRef.$rmListeners$ = void 0;
|
|
1227
1144
|
}
|
|
1228
1145
|
}
|
|
1229
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1230
|
-
hostRef.$
|
|
1146
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1147
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1148
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1149
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1231
1150
|
}
|
|
1232
1151
|
}
|
|
1233
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1234
|
-
rootAppliedStyles.delete(elm);
|
|
1235
|
-
}
|
|
1236
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1237
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1238
|
-
}
|
|
1239
1152
|
};
|
|
1240
1153
|
|
|
1241
1154
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1320,17 +1233,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1320
1233
|
}
|
|
1321
1234
|
disconnectedCallback() {
|
|
1322
1235
|
plt.jmp(() => disconnectedCallback(this));
|
|
1323
|
-
plt.raf(() => {
|
|
1324
|
-
var _a3;
|
|
1325
|
-
const hostRef = getHostRef(this);
|
|
1326
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1327
|
-
if (i2 > -1) {
|
|
1328
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1329
|
-
}
|
|
1330
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1331
|
-
delete hostRef.$vnode$.$elm$;
|
|
1332
|
-
}
|
|
1333
|
-
});
|
|
1334
1236
|
}
|
|
1335
1237
|
componentOnReady() {
|
|
1336
1238
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1394,7 +1296,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1394
1296
|
}
|
|
1395
1297
|
}
|
|
1396
1298
|
} catch (e) {
|
|
1397
|
-
consoleError(e
|
|
1299
|
+
consoleError(e);
|
|
1398
1300
|
}
|
|
1399
1301
|
};
|
|
1400
1302
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-48848b35.js';
|
|
2
|
+
export { s as setNonce } from './index-48848b35.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["player-user-consents_2",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32],"mandatoryItems":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"translationUrl":["handleNewTranslations"],"receivedQueryResponses":["handleQueryResponse"]}],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"
|
|
8
|
+
return bootstrapLazy([["player-user-consents_2",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32],"mandatoryItems":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"translationUrl":["handleNewTranslations"],"receivedQueryResponses":["handleQueryResponse"]}],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"mbSource":[513,"mb-source"],"textContent":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStylingUrl":["handleStylingUrlChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|