@everymatrix/player-user-consents 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-025ec107.js → index-2b0d6186.js} +170 -69
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-user-consents.cjs.entry.js +32 -6
- package/dist/cjs/player-user-consents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-user-consents/player-user-consents.js +51 -5
- package/dist/esm/{index-d1010d42.js → index-ddeaee0b.js} +170 -69
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-user-consents.entry.js +32 -6
- package/dist/esm/player-user-consents.js +3 -3
- package/dist/player-user-consents/p-2ea10158.entry.js +1 -0
- package/dist/player-user-consents/p-97e255e9.js +2 -0
- package/dist/player-user-consents/player-user-consents.esm.js +1 -1
- 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 +2 -0
- 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 +2 -0
- package/package.json +1 -1
- package/dist/player-user-consents/p-69e15f00.js +0 -2
- package/dist/player-user-consents/p-77c91e34.entry.js +0 -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 +0 -2
- 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 +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.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/player-user-consents/.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/player-user-consents/.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 = 'player-user-consents';
|
|
24
|
-
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 };
|
|
24
|
+
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, modernPropertyDecls: 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 };
|
|
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 isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +161,6 @@ var flush = () => {
|
|
|
150
161
|
};
|
|
151
162
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
152
163
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
-
|
|
154
|
-
// src/utils/constants.ts
|
|
155
|
-
var EMPTY_OBJ = {};
|
|
156
|
-
|
|
157
|
-
// src/utils/helpers.ts
|
|
158
|
-
var isDef = (v) => v != null;
|
|
159
164
|
var isComplexType = (o) => {
|
|
160
165
|
o = typeof o;
|
|
161
166
|
return o === "object" || o === "function";
|
|
@@ -356,7 +361,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
356
361
|
}
|
|
357
362
|
if (!appliedStyles.has(scopeId2)) {
|
|
358
363
|
{
|
|
359
|
-
styleElm = doc.createElement("style");
|
|
364
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
360
365
|
styleElm.innerHTML = style;
|
|
361
366
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
362
367
|
if (nonce != null) {
|
|
@@ -366,7 +371,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
366
371
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
367
372
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
368
373
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
369
|
-
styleContainerNode.insertBefore(
|
|
374
|
+
styleContainerNode.insertBefore(
|
|
375
|
+
styleElm,
|
|
376
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
377
|
+
);
|
|
370
378
|
} else if ("host" in styleContainerNode) {
|
|
371
379
|
if (supportsConstructableStylesheets) {
|
|
372
380
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -384,7 +392,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
384
392
|
styleContainerNode.append(styleElm);
|
|
385
393
|
}
|
|
386
394
|
}
|
|
387
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
395
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
388
396
|
styleContainerNode.insertBefore(styleElm, null);
|
|
389
397
|
}
|
|
390
398
|
}
|
|
@@ -409,23 +417,25 @@ var attachStyles = (hostRef) => {
|
|
|
409
417
|
const scopeId2 = addStyle(
|
|
410
418
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
411
419
|
cmpMeta);
|
|
412
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
420
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
413
421
|
elm["s-sc"] = scopeId2;
|
|
414
422
|
elm.classList.add(scopeId2 + "-h");
|
|
415
423
|
}
|
|
416
424
|
endAttachStyles();
|
|
417
425
|
};
|
|
418
426
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
419
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
427
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
420
428
|
if (oldValue !== newValue) {
|
|
421
429
|
let isProp = isMemberInElement(elm, memberName);
|
|
422
430
|
let ln = memberName.toLowerCase();
|
|
423
431
|
if (memberName === "class") {
|
|
424
432
|
const classList = elm.classList;
|
|
425
433
|
const oldClasses = parseClassList(oldValue);
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
434
|
+
let newClasses = parseClassList(newValue);
|
|
435
|
+
{
|
|
436
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
437
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
438
|
+
}
|
|
429
439
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
430
440
|
if (newValue) {
|
|
431
441
|
newValue(elm);
|
|
@@ -463,7 +473,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
463
473
|
elm.setAttribute(memberName, n);
|
|
464
474
|
}
|
|
465
475
|
}
|
|
466
|
-
} else {
|
|
476
|
+
} else if (elm[memberName] !== newValue) {
|
|
467
477
|
elm[memberName] = newValue;
|
|
468
478
|
}
|
|
469
479
|
} catch (e) {
|
|
@@ -485,24 +495,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
485
495
|
}
|
|
486
496
|
};
|
|
487
497
|
var parseClassListRegex = /\s/;
|
|
488
|
-
var parseClassList = (value) =>
|
|
498
|
+
var parseClassList = (value) => {
|
|
499
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
500
|
+
value = value.baseVal;
|
|
501
|
+
}
|
|
502
|
+
if (!value || typeof value !== "string") {
|
|
503
|
+
return [];
|
|
504
|
+
}
|
|
505
|
+
return value.split(parseClassListRegex);
|
|
506
|
+
};
|
|
489
507
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
490
508
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
491
509
|
|
|
492
510
|
// src/runtime/vdom/update-element.ts
|
|
493
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
511
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
494
512
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
495
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
496
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
513
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
514
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
497
515
|
{
|
|
498
516
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
499
517
|
if (!(memberName in newVnodeAttrs)) {
|
|
500
|
-
setAccessor(
|
|
518
|
+
setAccessor(
|
|
519
|
+
elm,
|
|
520
|
+
memberName,
|
|
521
|
+
oldVnodeAttrs[memberName],
|
|
522
|
+
void 0,
|
|
523
|
+
isSvgMode2,
|
|
524
|
+
newVnode.$flags$);
|
|
501
525
|
}
|
|
502
526
|
}
|
|
503
527
|
}
|
|
504
528
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
505
|
-
setAccessor(
|
|
529
|
+
setAccessor(
|
|
530
|
+
elm,
|
|
531
|
+
memberName,
|
|
532
|
+
oldVnodeAttrs[memberName],
|
|
533
|
+
newVnodeAttrs[memberName],
|
|
534
|
+
isSvgMode2,
|
|
535
|
+
newVnode.$flags$);
|
|
506
536
|
}
|
|
507
537
|
};
|
|
508
538
|
function sortedAttrNames(attrNames) {
|
|
@@ -514,13 +544,10 @@ function sortedAttrNames(attrNames) {
|
|
|
514
544
|
attrNames
|
|
515
545
|
);
|
|
516
546
|
}
|
|
517
|
-
|
|
518
|
-
// src/runtime/vdom/vdom-render.ts
|
|
519
|
-
var scopeId;
|
|
520
547
|
var hostTagName;
|
|
521
548
|
var useNativeShadowDom = false;
|
|
522
549
|
var isSvgMode = false;
|
|
523
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
550
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
524
551
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
525
552
|
let i2 = 0;
|
|
526
553
|
let elm;
|
|
@@ -534,11 +561,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
534
561
|
{
|
|
535
562
|
updateElement(null, newVNode2, isSvgMode);
|
|
536
563
|
}
|
|
537
|
-
const rootNode = elm.getRootNode();
|
|
538
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
539
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
540
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
541
|
-
}
|
|
542
564
|
if (newVNode2.$children$) {
|
|
543
565
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
544
566
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -668,6 +690,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
668
690
|
if (!isInitialRender) {
|
|
669
691
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
670
692
|
}
|
|
693
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
694
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
695
|
+
}
|
|
671
696
|
return true;
|
|
672
697
|
}
|
|
673
698
|
return false;
|
|
@@ -707,8 +732,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
707
732
|
}
|
|
708
733
|
};
|
|
709
734
|
var insertBefore = (parent, newNode, reference) => {
|
|
710
|
-
|
|
711
|
-
|
|
735
|
+
{
|
|
736
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
737
|
+
}
|
|
712
738
|
};
|
|
713
739
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
714
740
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -733,17 +759,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
733
759
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
734
760
|
hostRef.$vnode$ = rootVnode;
|
|
735
761
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
736
|
-
|
|
737
|
-
scopeId = hostElm["s-sc"];
|
|
738
|
-
}
|
|
739
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
762
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
740
763
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
741
764
|
};
|
|
742
765
|
|
|
743
766
|
// src/runtime/update-component.ts
|
|
744
767
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
745
768
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
746
|
-
ancestorComponent["s-p"].push(
|
|
769
|
+
const index = ancestorComponent["s-p"].push(
|
|
770
|
+
new Promise(
|
|
771
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
772
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
773
|
+
r();
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
);
|
|
747
777
|
}
|
|
748
778
|
};
|
|
749
779
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -770,7 +800,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
770
800
|
let maybePromise;
|
|
771
801
|
if (isInitialLoad) {
|
|
772
802
|
{
|
|
773
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
803
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
774
804
|
}
|
|
775
805
|
}
|
|
776
806
|
endSchedule();
|
|
@@ -844,7 +874,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
844
874
|
addHydratedFlag(elm);
|
|
845
875
|
}
|
|
846
876
|
{
|
|
847
|
-
safeCall(instance, "componentDidLoad");
|
|
877
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
848
878
|
}
|
|
849
879
|
endPostUpdate();
|
|
850
880
|
{
|
|
@@ -868,17 +898,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
868
898
|
}
|
|
869
899
|
};
|
|
870
900
|
var appDidLoad = (who) => {
|
|
871
|
-
{
|
|
872
|
-
addHydratedFlag(doc.documentElement);
|
|
873
|
-
}
|
|
874
901
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
875
902
|
};
|
|
876
|
-
var safeCall = (instance, method, arg) => {
|
|
903
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
877
904
|
if (instance && instance[method]) {
|
|
878
905
|
try {
|
|
879
906
|
return instance[method](arg);
|
|
880
907
|
} catch (e) {
|
|
881
|
-
consoleError(e);
|
|
908
|
+
consoleError(e, elm);
|
|
882
909
|
}
|
|
883
910
|
}
|
|
884
911
|
return void 0;
|
|
@@ -937,15 +964,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
937
964
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
938
965
|
members.map(([memberName, [memberFlags]]) => {
|
|
939
966
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
967
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
968
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
969
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
970
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
971
|
+
Object.defineProperty(prototype, memberName, {
|
|
972
|
+
get() {
|
|
973
|
+
{
|
|
974
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
975
|
+
return getValue(this, memberName);
|
|
976
|
+
}
|
|
977
|
+
const ref = getHostRef(this);
|
|
978
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
979
|
+
if (!instance) return;
|
|
980
|
+
return instance[memberName];
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
configurable: true,
|
|
984
|
+
enumerable: true
|
|
985
|
+
});
|
|
986
|
+
}
|
|
940
987
|
Object.defineProperty(prototype, memberName, {
|
|
941
|
-
get() {
|
|
942
|
-
return getValue(this, memberName);
|
|
943
|
-
},
|
|
944
988
|
set(newValue) {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
989
|
+
const ref = getHostRef(this);
|
|
990
|
+
if (origSetter) {
|
|
991
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
992
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
993
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
994
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
995
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
996
|
+
}
|
|
997
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
998
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
999
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
{
|
|
1003
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1004
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1005
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1006
|
+
ref.$onReadyPromise$.then(() => {
|
|
1007
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1008
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
1014
|
+
const setterSetVal = () => {
|
|
1015
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1016
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1017
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1018
|
+
}
|
|
1019
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1020
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1021
|
+
};
|
|
1022
|
+
if (ref.$lazyInstance$) {
|
|
1023
|
+
setterSetVal();
|
|
1024
|
+
} else {
|
|
1025
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
949
1029
|
});
|
|
950
1030
|
}
|
|
951
1031
|
});
|
|
@@ -955,7 +1035,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
955
1035
|
plt.jmp(() => {
|
|
956
1036
|
var _a2;
|
|
957
1037
|
const propName = attrNameToPropName.get(attrName);
|
|
958
|
-
if (this.hasOwnProperty(propName)) {
|
|
1038
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
959
1039
|
newValue = this[propName];
|
|
960
1040
|
delete this[propName];
|
|
961
1041
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -975,7 +1055,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
975
1055
|
}
|
|
976
1056
|
return;
|
|
977
1057
|
}
|
|
978
|
-
|
|
1058
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1059
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1060
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1061
|
+
this[propName] = newValue;
|
|
1062
|
+
}
|
|
979
1063
|
});
|
|
980
1064
|
};
|
|
981
1065
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1004,7 +1088,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1004
1088
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1005
1089
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1006
1090
|
if (bundleId) {
|
|
1007
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1091
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1008
1092
|
if (CstrImport && "then" in CstrImport) {
|
|
1009
1093
|
const endLoad = uniqueTime();
|
|
1010
1094
|
Cstr = await CstrImport;
|
|
@@ -1029,7 +1113,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1029
1113
|
try {
|
|
1030
1114
|
new Cstr(hostRef);
|
|
1031
1115
|
} catch (e) {
|
|
1032
|
-
consoleError(e);
|
|
1116
|
+
consoleError(e, elm);
|
|
1033
1117
|
}
|
|
1034
1118
|
{
|
|
1035
1119
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1064,7 +1148,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1064
1148
|
schedule();
|
|
1065
1149
|
}
|
|
1066
1150
|
};
|
|
1067
|
-
var fireConnectedCallback = (instance) => {
|
|
1151
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1068
1152
|
};
|
|
1069
1153
|
|
|
1070
1154
|
// src/runtime/connected-callback.ts
|
|
@@ -1104,20 +1188,26 @@ var connectedCallback = (elm) => {
|
|
|
1104
1188
|
endConnected();
|
|
1105
1189
|
}
|
|
1106
1190
|
};
|
|
1107
|
-
var disconnectInstance = (instance) => {
|
|
1191
|
+
var disconnectInstance = (instance, elm) => {
|
|
1108
1192
|
{
|
|
1109
|
-
safeCall(instance, "disconnectedCallback");
|
|
1193
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1110
1194
|
}
|
|
1111
1195
|
};
|
|
1112
1196
|
var disconnectedCallback = async (elm) => {
|
|
1113
1197
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1114
1198
|
const hostRef = getHostRef(elm);
|
|
1115
1199
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1116
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1200
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1117
1201
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1118
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1202
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1119
1203
|
}
|
|
1120
1204
|
}
|
|
1205
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1206
|
+
rootAppliedStyles.delete(elm);
|
|
1207
|
+
}
|
|
1208
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1209
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1210
|
+
}
|
|
1121
1211
|
};
|
|
1122
1212
|
|
|
1123
1213
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1198,6 +1288,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1198
1288
|
}
|
|
1199
1289
|
disconnectedCallback() {
|
|
1200
1290
|
plt.jmp(() => disconnectedCallback(this));
|
|
1291
|
+
plt.raf(() => {
|
|
1292
|
+
var _a3;
|
|
1293
|
+
const hostRef = getHostRef(this);
|
|
1294
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1295
|
+
if (i2 > -1) {
|
|
1296
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1297
|
+
}
|
|
1298
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1299
|
+
delete hostRef.$vnode$.$elm$;
|
|
1300
|
+
}
|
|
1301
|
+
});
|
|
1201
1302
|
}
|
|
1202
1303
|
componentOnReady() {
|
|
1203
1304
|
return getHostRef(this).$onReadyPromise$;
|
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-2b0d6186.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-2b0d6186.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
@@ -194,26 +194,52 @@ const PlayerUserConsents = class {
|
|
|
194
194
|
constructor(hostRef) {
|
|
195
195
|
index.registerInstance(this, hostRef);
|
|
196
196
|
this.userLegislationConsent = index.createEvent(this, "userLegislationConsent", 7);
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
/**
|
|
198
|
+
* Language
|
|
199
|
+
*/
|
|
199
200
|
this.lang = 'en';
|
|
201
|
+
/**
|
|
202
|
+
* 'true' when parent expects component to emit it's current value
|
|
203
|
+
*/
|
|
200
204
|
this.queried = false;
|
|
205
|
+
/**
|
|
206
|
+
* the type of the consent, used to determine render details
|
|
207
|
+
*/
|
|
201
208
|
this.consentType = '';
|
|
209
|
+
/**
|
|
210
|
+
* wether or not this consent is mandatory. Used for render details
|
|
211
|
+
*/
|
|
202
212
|
this.mandatory = false;
|
|
213
|
+
/**
|
|
214
|
+
* Select GM version
|
|
215
|
+
*/
|
|
203
216
|
this.gmVersion = '';
|
|
217
|
+
/**
|
|
218
|
+
* the title of the consent to be displayed
|
|
219
|
+
*/
|
|
204
220
|
this.consentTitle = '';
|
|
221
|
+
/**
|
|
222
|
+
* Client custom styling via inline style
|
|
223
|
+
*/
|
|
205
224
|
this.clientStyling = '';
|
|
225
|
+
/**
|
|
226
|
+
* Client custom styling via url
|
|
227
|
+
*/
|
|
206
228
|
this.clientStylingUrl = '';
|
|
229
|
+
/**
|
|
230
|
+
* Translation url
|
|
231
|
+
*/
|
|
207
232
|
this.translationUrl = '';
|
|
208
|
-
this.mbSource = undefined;
|
|
209
233
|
this.textContent = '';
|
|
234
|
+
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
235
|
+
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
210
236
|
}
|
|
211
237
|
handleNewTranslations() {
|
|
212
238
|
getTranslations(this.translationUrl);
|
|
213
239
|
}
|
|
214
240
|
handleStylingUrlChange(newValue, oldValue) {
|
|
215
241
|
if (newValue !== oldValue)
|
|
216
|
-
this.
|
|
242
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
217
243
|
}
|
|
218
244
|
async componentWillLoad() {
|
|
219
245
|
if (this.translationUrl.length > 2) {
|
|
@@ -263,7 +289,7 @@ const PlayerUserConsents = class {
|
|
|
263
289
|
if (this.queried) {
|
|
264
290
|
this.userLegislationConsentHandler();
|
|
265
291
|
}
|
|
266
|
-
return (index.h("div", { key: '
|
|
292
|
+
return (index.h("div", { key: 'aba04e96251f2f0febe96883b931193fb5ca8c94', ref: el => this.stylingContainer = el }, index.h("p", { key: 'd3f0cbeb5b45b4538462a53c41ab041b176a7c26', class: "ConsentTitle" }, this.consentTitle), index.h("label", { key: '800ab8d45e87b075402c3178e60a16866d0321d4', class: "UserConsent", htmlFor: "userConsent" }, index.h("input", { key: '919c15c353a8146661eca2870e7a63f7c689953e', ref: el => this.checkboxInput = el, id: "userConsent", type: "checkbox", onInput: () => this.userLegislationConsentHandler() }), this.determineTextContent(), this.mandatory && index.h("span", { key: 'f7126adee1ba5540837da4b852961d08a9eae857', class: "MandatoryItem" }, "*"))));
|
|
267
293
|
}
|
|
268
294
|
static get watchers() { return {
|
|
269
295
|
"translationUrl": ["handleNewTranslations"],
|
|
@@ -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-2b0d6186.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('player-user-consents.cjs.js', document.baseURI).href));
|