@everymatrix/player-user-consents 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-8a0eadbd.js → index-025ec107.js} +75 -171
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/player-user-consents.cjs.entry.js +76 -62
- package/dist/cjs/player-user-consents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-user-consents/player-user-consents.js +37 -81
- package/dist/esm/{index-d33945fb.js → index-d1010d42.js} +75 -171
- package/dist/esm/loader.js +3 -3
- package/dist/esm/player-user-consents.entry.js +76 -62
- package/dist/esm/player-user-consents.js +4 -4
- package/dist/player-user-consents/p-69e15f00.js +2 -0
- package/dist/player-user-consents/p-77c91e34.entry.js +1 -0
- package/dist/player-user-consents/player-user-consents.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/player-user-consents/player-user-consents.d.ts +4 -4
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/player-user-consents/p-1475dc71.entry.js +0 -1
- package/dist/player-user-consents/p-e16d0bad.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-user-consents/.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/player-user-consents/.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/player-user-consents/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'player-user-consents';
|
|
2
|
-
const BUILD = /* player-user-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
2
|
+
const BUILD = /* player-user-consents */ { 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: false, 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: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, 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/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -339,7 +334,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
339
334
|
}
|
|
340
335
|
if (!appliedStyles.has(scopeId2)) {
|
|
341
336
|
{
|
|
342
|
-
styleElm =
|
|
337
|
+
styleElm = doc.createElement("style");
|
|
343
338
|
styleElm.innerHTML = style;
|
|
344
339
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
345
340
|
if (nonce != null) {
|
|
@@ -349,10 +344,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
349
344
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
350
345
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
351
346
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
352
|
-
styleContainerNode.insertBefore(
|
|
353
|
-
styleElm,
|
|
354
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
355
|
-
);
|
|
347
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
356
348
|
} else if ("host" in styleContainerNode) {
|
|
357
349
|
if (supportsConstructableStylesheets) {
|
|
358
350
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -370,7 +362,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
370
362
|
styleContainerNode.append(styleElm);
|
|
371
363
|
}
|
|
372
364
|
}
|
|
373
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
365
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
374
366
|
styleContainerNode.insertBefore(styleElm, null);
|
|
375
367
|
}
|
|
376
368
|
}
|
|
@@ -395,25 +387,23 @@ var attachStyles = (hostRef) => {
|
|
|
395
387
|
const scopeId2 = addStyle(
|
|
396
388
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
397
389
|
cmpMeta);
|
|
398
|
-
if (
|
|
390
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
399
391
|
elm["s-sc"] = scopeId2;
|
|
400
392
|
elm.classList.add(scopeId2 + "-h");
|
|
401
393
|
}
|
|
402
394
|
endAttachStyles();
|
|
403
395
|
};
|
|
404
396
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
405
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
397
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
406
398
|
if (oldValue !== newValue) {
|
|
407
399
|
let isProp = isMemberInElement(elm, memberName);
|
|
408
400
|
let ln = memberName.toLowerCase();
|
|
409
401
|
if (memberName === "class") {
|
|
410
402
|
const classList = elm.classList;
|
|
411
403
|
const oldClasses = parseClassList(oldValue);
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
416
|
-
}
|
|
404
|
+
const newClasses = parseClassList(newValue);
|
|
405
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
406
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
417
407
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
418
408
|
if (newValue) {
|
|
419
409
|
newValue(elm);
|
|
@@ -451,7 +441,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
451
441
|
elm.setAttribute(memberName, n);
|
|
452
442
|
}
|
|
453
443
|
}
|
|
454
|
-
} else
|
|
444
|
+
} else {
|
|
455
445
|
elm[memberName] = newValue;
|
|
456
446
|
}
|
|
457
447
|
} catch (e) {
|
|
@@ -473,44 +463,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
473
463
|
}
|
|
474
464
|
};
|
|
475
465
|
var parseClassListRegex = /\s/;
|
|
476
|
-
var parseClassList = (value) =>
|
|
477
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
478
|
-
value = value.baseVal;
|
|
479
|
-
}
|
|
480
|
-
if (!value || typeof value !== "string") {
|
|
481
|
-
return [];
|
|
482
|
-
}
|
|
483
|
-
return value.split(parseClassListRegex);
|
|
484
|
-
};
|
|
466
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
485
467
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
486
468
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
487
469
|
|
|
488
470
|
// src/runtime/vdom/update-element.ts
|
|
489
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
471
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
490
472
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
491
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
492
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
473
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
474
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
493
475
|
{
|
|
494
476
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
495
477
|
if (!(memberName in newVnodeAttrs)) {
|
|
496
|
-
setAccessor(
|
|
497
|
-
elm,
|
|
498
|
-
memberName,
|
|
499
|
-
oldVnodeAttrs[memberName],
|
|
500
|
-
void 0,
|
|
501
|
-
isSvgMode2,
|
|
502
|
-
newVnode.$flags$);
|
|
478
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
503
479
|
}
|
|
504
480
|
}
|
|
505
481
|
}
|
|
506
482
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
507
|
-
setAccessor(
|
|
508
|
-
elm,
|
|
509
|
-
memberName,
|
|
510
|
-
oldVnodeAttrs[memberName],
|
|
511
|
-
newVnodeAttrs[memberName],
|
|
512
|
-
isSvgMode2,
|
|
513
|
-
newVnode.$flags$);
|
|
483
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
514
484
|
}
|
|
515
485
|
};
|
|
516
486
|
function sortedAttrNames(attrNames) {
|
|
@@ -522,10 +492,13 @@ function sortedAttrNames(attrNames) {
|
|
|
522
492
|
attrNames
|
|
523
493
|
);
|
|
524
494
|
}
|
|
495
|
+
|
|
496
|
+
// src/runtime/vdom/vdom-render.ts
|
|
497
|
+
var scopeId;
|
|
525
498
|
var hostTagName;
|
|
526
499
|
var useNativeShadowDom = false;
|
|
527
500
|
var isSvgMode = false;
|
|
528
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
501
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
529
502
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
530
503
|
let i2 = 0;
|
|
531
504
|
let elm;
|
|
@@ -539,6 +512,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
539
512
|
{
|
|
540
513
|
updateElement(null, newVNode2, isSvgMode);
|
|
541
514
|
}
|
|
515
|
+
const rootNode = elm.getRootNode();
|
|
516
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
517
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
518
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
519
|
+
}
|
|
542
520
|
if (newVNode2.$children$) {
|
|
543
521
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
544
522
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -668,9 +646,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
668
646
|
if (!isInitialRender) {
|
|
669
647
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
670
648
|
}
|
|
671
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
672
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
673
|
-
}
|
|
674
649
|
return true;
|
|
675
650
|
}
|
|
676
651
|
return false;
|
|
@@ -710,9 +685,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
710
685
|
}
|
|
711
686
|
};
|
|
712
687
|
var insertBefore = (parent, newNode, reference) => {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
688
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
689
|
+
return inserted;
|
|
716
690
|
};
|
|
717
691
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
718
692
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -737,21 +711,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
737
711
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
738
712
|
hostRef.$vnode$ = rootVnode;
|
|
739
713
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
740
|
-
|
|
714
|
+
{
|
|
715
|
+
scopeId = hostElm["s-sc"];
|
|
716
|
+
}
|
|
717
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
741
718
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
742
719
|
};
|
|
743
720
|
|
|
744
721
|
// src/runtime/update-component.ts
|
|
745
722
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
746
723
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
747
|
-
|
|
748
|
-
new Promise(
|
|
749
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
750
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
751
|
-
r();
|
|
752
|
-
}
|
|
753
|
-
)
|
|
754
|
-
);
|
|
724
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
755
725
|
}
|
|
756
726
|
};
|
|
757
727
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -778,7 +748,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
778
748
|
let maybePromise;
|
|
779
749
|
if (isInitialLoad) {
|
|
780
750
|
{
|
|
781
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
751
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
782
752
|
}
|
|
783
753
|
}
|
|
784
754
|
endSchedule();
|
|
@@ -846,14 +816,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
846
816
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
847
817
|
const instance = hostRef.$lazyInstance$ ;
|
|
848
818
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
849
|
-
{
|
|
850
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
851
|
-
}
|
|
852
819
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
853
820
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
854
821
|
{
|
|
855
822
|
addHydratedFlag(elm);
|
|
856
823
|
}
|
|
824
|
+
{
|
|
825
|
+
safeCall(instance, "componentDidLoad");
|
|
826
|
+
}
|
|
857
827
|
endPostUpdate();
|
|
858
828
|
{
|
|
859
829
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -876,14 +846,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
876
846
|
}
|
|
877
847
|
};
|
|
878
848
|
var appDidLoad = (who) => {
|
|
849
|
+
{
|
|
850
|
+
addHydratedFlag(doc.documentElement);
|
|
851
|
+
}
|
|
879
852
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
880
853
|
};
|
|
881
|
-
var safeCall = (instance, method, arg
|
|
854
|
+
var safeCall = (instance, method, arg) => {
|
|
882
855
|
if (instance && instance[method]) {
|
|
883
856
|
try {
|
|
884
857
|
return instance[method](arg);
|
|
885
858
|
} catch (e) {
|
|
886
|
-
consoleError(e
|
|
859
|
+
consoleError(e);
|
|
887
860
|
}
|
|
888
861
|
}
|
|
889
862
|
return void 0;
|
|
@@ -942,68 +915,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
942
915
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
943
916
|
members.map(([memberName, [memberFlags]]) => {
|
|
944
917
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
945
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
946
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
947
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
948
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
949
|
-
Object.defineProperty(prototype, memberName, {
|
|
950
|
-
get() {
|
|
951
|
-
{
|
|
952
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
953
|
-
return getValue(this, memberName);
|
|
954
|
-
}
|
|
955
|
-
const ref = getHostRef(this);
|
|
956
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
957
|
-
if (!instance) return;
|
|
958
|
-
return instance[memberName];
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
configurable: true,
|
|
962
|
-
enumerable: true
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
918
|
Object.defineProperty(prototype, memberName, {
|
|
919
|
+
get() {
|
|
920
|
+
return getValue(this, memberName);
|
|
921
|
+
},
|
|
966
922
|
set(newValue) {
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
972
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
973
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
974
|
-
}
|
|
975
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
976
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
977
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
978
|
-
return;
|
|
979
|
-
}
|
|
980
|
-
{
|
|
981
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
982
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
983
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
984
|
-
ref.$onReadyPromise$.then(() => {
|
|
985
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
986
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
987
|
-
}
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
return;
|
|
991
|
-
}
|
|
992
|
-
const setterSetVal = () => {
|
|
993
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
994
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
995
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
996
|
-
}
|
|
997
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
998
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
999
|
-
};
|
|
1000
|
-
if (ref.$lazyInstance$) {
|
|
1001
|
-
setterSetVal();
|
|
1002
|
-
} else {
|
|
1003
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
923
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
924
|
+
},
|
|
925
|
+
configurable: true,
|
|
926
|
+
enumerable: true
|
|
1007
927
|
});
|
|
1008
928
|
}
|
|
1009
929
|
});
|
|
@@ -1013,7 +933,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1013
933
|
plt.jmp(() => {
|
|
1014
934
|
var _a2;
|
|
1015
935
|
const propName = attrNameToPropName.get(attrName);
|
|
1016
|
-
if (this.hasOwnProperty(propName)
|
|
936
|
+
if (this.hasOwnProperty(propName)) {
|
|
1017
937
|
newValue = this[propName];
|
|
1018
938
|
delete this[propName];
|
|
1019
939
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1033,11 +953,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1033
953
|
}
|
|
1034
954
|
return;
|
|
1035
955
|
}
|
|
1036
|
-
|
|
1037
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1038
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1039
|
-
this[propName] = newValue;
|
|
1040
|
-
}
|
|
956
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1041
957
|
});
|
|
1042
958
|
};
|
|
1043
959
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1066,7 +982,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1066
982
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1067
983
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1068
984
|
if (bundleId) {
|
|
1069
|
-
const CstrImport = loadModule(cmpMeta
|
|
985
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1070
986
|
if (CstrImport && "then" in CstrImport) {
|
|
1071
987
|
const endLoad = uniqueTime();
|
|
1072
988
|
Cstr = await CstrImport;
|
|
@@ -1091,7 +1007,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1091
1007
|
try {
|
|
1092
1008
|
new Cstr(hostRef);
|
|
1093
1009
|
} catch (e) {
|
|
1094
|
-
consoleError(e
|
|
1010
|
+
consoleError(e);
|
|
1095
1011
|
}
|
|
1096
1012
|
{
|
|
1097
1013
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1126,7 +1042,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1126
1042
|
schedule();
|
|
1127
1043
|
}
|
|
1128
1044
|
};
|
|
1129
|
-
var fireConnectedCallback = (instance
|
|
1045
|
+
var fireConnectedCallback = (instance) => {
|
|
1130
1046
|
};
|
|
1131
1047
|
|
|
1132
1048
|
// src/runtime/connected-callback.ts
|
|
@@ -1166,21 +1082,20 @@ var connectedCallback = (elm) => {
|
|
|
1166
1082
|
endConnected();
|
|
1167
1083
|
}
|
|
1168
1084
|
};
|
|
1169
|
-
var disconnectInstance = (instance
|
|
1085
|
+
var disconnectInstance = (instance) => {
|
|
1086
|
+
{
|
|
1087
|
+
safeCall(instance, "disconnectedCallback");
|
|
1088
|
+
}
|
|
1170
1089
|
};
|
|
1171
1090
|
var disconnectedCallback = async (elm) => {
|
|
1172
1091
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1173
1092
|
const hostRef = getHostRef(elm);
|
|
1174
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1175
|
-
hostRef.$
|
|
1093
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1094
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1095
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1096
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1176
1097
|
}
|
|
1177
1098
|
}
|
|
1178
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1179
|
-
rootAppliedStyles.delete(elm);
|
|
1180
|
-
}
|
|
1181
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1182
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1183
|
-
}
|
|
1184
1099
|
};
|
|
1185
1100
|
|
|
1186
1101
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1261,17 +1176,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1261
1176
|
}
|
|
1262
1177
|
disconnectedCallback() {
|
|
1263
1178
|
plt.jmp(() => disconnectedCallback(this));
|
|
1264
|
-
plt.raf(() => {
|
|
1265
|
-
var _a3;
|
|
1266
|
-
const hostRef = getHostRef(this);
|
|
1267
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1268
|
-
if (i2 > -1) {
|
|
1269
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1270
|
-
}
|
|
1271
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1272
|
-
delete hostRef.$vnode$.$elm$;
|
|
1273
|
-
}
|
|
1274
|
-
});
|
|
1275
1179
|
}
|
|
1276
1180
|
componentOnReady() {
|
|
1277
1181
|
return getHostRef(this).$onReadyPromise$;
|
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-d1010d42.js';
|
|
2
|
+
export { s as setNonce } from './index-d1010d42.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",[[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",[[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 };
|