@everymatrix/player-user-consents 1.53.0 → 1.53.10
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-69eb0aef.js → index-a5a75dc5.js} +161 -66
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-user-consents.cjs.entry.js +42 -12
- 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 +59 -11
- package/dist/esm/{index-ed6ba6ed.js → index-969aa3ec.js} +161 -66
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-user-consents.entry.js +42 -12
- package/dist/esm/player-user-consents.js +3 -3
- package/dist/player-user-consents/{p-940ee13f.entry.js → p-611f8c2f.entry.js} +1 -1
- package/dist/player-user-consents/p-facd04bc.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-fe4dc64a.js +0 -2
- 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
|
@@ -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: false, cmpDidRender: true, 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: 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: false, cmpDidRender: true, 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: 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.25.1 | 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();
|
|
@@ -416,16 +424,18 @@ var attachStyles = (hostRef) => {
|
|
|
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,9 +759,6 @@ 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
762
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
740
763
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
741
764
|
};
|
|
@@ -743,7 +766,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
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();
|
|
@@ -839,7 +869,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
839
869
|
const instance = hostRef.$lazyInstance$ ;
|
|
840
870
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
841
871
|
{
|
|
842
|
-
safeCall(instance, "componentDidRender");
|
|
872
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
843
873
|
}
|
|
844
874
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
845
875
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -873,12 +903,12 @@ var appDidLoad = (who) => {
|
|
|
873
903
|
}
|
|
874
904
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
875
905
|
};
|
|
876
|
-
var safeCall = (instance, method, arg) => {
|
|
906
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
877
907
|
if (instance && instance[method]) {
|
|
878
908
|
try {
|
|
879
909
|
return instance[method](arg);
|
|
880
910
|
} catch (e) {
|
|
881
|
-
consoleError(e);
|
|
911
|
+
consoleError(e, elm);
|
|
882
912
|
}
|
|
883
913
|
}
|
|
884
914
|
return void 0;
|
|
@@ -937,15 +967,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
937
967
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
938
968
|
members.map(([memberName, [memberFlags]]) => {
|
|
939
969
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
970
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
971
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
972
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
973
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
974
|
+
Object.defineProperty(prototype, memberName, {
|
|
975
|
+
get() {
|
|
976
|
+
{
|
|
977
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
978
|
+
return getValue(this, memberName);
|
|
979
|
+
}
|
|
980
|
+
const ref = getHostRef(this);
|
|
981
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
982
|
+
if (!instance) return;
|
|
983
|
+
return instance[memberName];
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
configurable: true,
|
|
987
|
+
enumerable: true
|
|
988
|
+
});
|
|
989
|
+
}
|
|
940
990
|
Object.defineProperty(prototype, memberName, {
|
|
941
|
-
get() {
|
|
942
|
-
return getValue(this, memberName);
|
|
943
|
-
},
|
|
944
991
|
set(newValue) {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
992
|
+
const ref = getHostRef(this);
|
|
993
|
+
if (origSetter) {
|
|
994
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
995
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
996
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
997
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
998
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
999
|
+
}
|
|
1000
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1001
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1002
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
{
|
|
1006
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1007
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1008
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1009
|
+
ref.$onReadyPromise$.then(() => {
|
|
1010
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1011
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
const setterSetVal = () => {
|
|
1018
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1019
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1020
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1021
|
+
}
|
|
1022
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1023
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1024
|
+
};
|
|
1025
|
+
if (ref.$lazyInstance$) {
|
|
1026
|
+
setterSetVal();
|
|
1027
|
+
} else {
|
|
1028
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
949
1032
|
});
|
|
950
1033
|
}
|
|
951
1034
|
});
|
|
@@ -955,7 +1038,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
955
1038
|
plt.jmp(() => {
|
|
956
1039
|
var _a2;
|
|
957
1040
|
const propName = attrNameToPropName.get(attrName);
|
|
958
|
-
if (this.hasOwnProperty(propName)) {
|
|
1041
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
959
1042
|
newValue = this[propName];
|
|
960
1043
|
delete this[propName];
|
|
961
1044
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -975,7 +1058,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
975
1058
|
}
|
|
976
1059
|
return;
|
|
977
1060
|
}
|
|
978
|
-
|
|
1061
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1062
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1063
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1064
|
+
this[propName] = newValue;
|
|
1065
|
+
}
|
|
979
1066
|
});
|
|
980
1067
|
};
|
|
981
1068
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1002,9 +1089,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1002
1089
|
let Cstr;
|
|
1003
1090
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1004
1091
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1092
|
+
{
|
|
1093
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1008
1094
|
if (CstrImport && "then" in CstrImport) {
|
|
1009
1095
|
const endLoad = uniqueTime();
|
|
1010
1096
|
Cstr = await CstrImport;
|
|
@@ -1029,7 +1115,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1029
1115
|
try {
|
|
1030
1116
|
new Cstr(hostRef);
|
|
1031
1117
|
} catch (e) {
|
|
1032
|
-
consoleError(e);
|
|
1118
|
+
consoleError(e, elm);
|
|
1033
1119
|
}
|
|
1034
1120
|
{
|
|
1035
1121
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1038,10 +1124,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1038
1124
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1039
1125
|
}
|
|
1040
1126
|
endNewInstance();
|
|
1041
|
-
} else {
|
|
1042
|
-
Cstr = elm.constructor;
|
|
1043
|
-
const cmpTag = elm.localName;
|
|
1044
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1045
1127
|
}
|
|
1046
1128
|
if (Cstr && Cstr.style) {
|
|
1047
1129
|
let style;
|
|
@@ -1064,7 +1146,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1064
1146
|
schedule();
|
|
1065
1147
|
}
|
|
1066
1148
|
};
|
|
1067
|
-
var fireConnectedCallback = (instance) => {
|
|
1149
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1068
1150
|
};
|
|
1069
1151
|
|
|
1070
1152
|
// src/runtime/connected-callback.ts
|
|
@@ -1104,7 +1186,7 @@ var connectedCallback = (elm) => {
|
|
|
1104
1186
|
endConnected();
|
|
1105
1187
|
}
|
|
1106
1188
|
};
|
|
1107
|
-
var disconnectInstance = (instance) => {
|
|
1189
|
+
var disconnectInstance = (instance, elm) => {
|
|
1108
1190
|
};
|
|
1109
1191
|
var disconnectedCallback = async (elm) => {
|
|
1110
1192
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1113,6 +1195,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1113
1195
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1114
1196
|
}
|
|
1115
1197
|
}
|
|
1198
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1199
|
+
rootAppliedStyles.delete(elm);
|
|
1200
|
+
}
|
|
1201
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1202
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1203
|
+
}
|
|
1116
1204
|
};
|
|
1117
1205
|
|
|
1118
1206
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1193,6 +1281,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1193
1281
|
}
|
|
1194
1282
|
disconnectedCallback() {
|
|
1195
1283
|
plt.jmp(() => disconnectedCallback(this));
|
|
1284
|
+
plt.raf(() => {
|
|
1285
|
+
var _a3;
|
|
1286
|
+
const hostRef = getHostRef(this);
|
|
1287
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1288
|
+
delete hostRef.$vnode$.$elm$;
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1196
1291
|
}
|
|
1197
1292
|
componentOnReady() {
|
|
1198
1293
|
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-a5a75dc5.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-a5a75dc5.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
@@ -137,6 +137,47 @@ const PlayerUserConsents = class {
|
|
|
137
137
|
constructor(hostRef) {
|
|
138
138
|
index.registerInstance(this, hostRef);
|
|
139
139
|
this.userLegislationConsent = index.createEvent(this, "userLegislationConsent", 7);
|
|
140
|
+
/**
|
|
141
|
+
* Language
|
|
142
|
+
*/
|
|
143
|
+
this.lang = 'en';
|
|
144
|
+
/**
|
|
145
|
+
* 'true' when parent expects component to emit it's current value
|
|
146
|
+
*/
|
|
147
|
+
this.queried = false;
|
|
148
|
+
/**
|
|
149
|
+
* the type of the consent, used to determine render details
|
|
150
|
+
*/
|
|
151
|
+
this.consentType = '';
|
|
152
|
+
/**
|
|
153
|
+
* wether or not this consent is mandatory. Used for render details
|
|
154
|
+
*/
|
|
155
|
+
this.mandatory = false;
|
|
156
|
+
/**
|
|
157
|
+
* Select GM version
|
|
158
|
+
*/
|
|
159
|
+
this.gmVersion = '';
|
|
160
|
+
/**
|
|
161
|
+
* the title of the consent to be displayed
|
|
162
|
+
*/
|
|
163
|
+
this.consentTitle = '';
|
|
164
|
+
/**
|
|
165
|
+
* Client custom styling via inline style
|
|
166
|
+
*/
|
|
167
|
+
this.clientStyling = '';
|
|
168
|
+
/**
|
|
169
|
+
* Client custom styling via url
|
|
170
|
+
*/
|
|
171
|
+
this.clientStylingUrl = '';
|
|
172
|
+
/**
|
|
173
|
+
* Translation url
|
|
174
|
+
*/
|
|
175
|
+
this.translationUrl = '';
|
|
176
|
+
/**
|
|
177
|
+
* the text content to be rendered by the component. Determined at runtime
|
|
178
|
+
*/
|
|
179
|
+
this.textContent = '';
|
|
180
|
+
this.limitStylingAppends = false;
|
|
140
181
|
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
141
182
|
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
142
183
|
this.setClientStyling = () => {
|
|
@@ -157,17 +198,6 @@ const PlayerUserConsents = class {
|
|
|
157
198
|
console.log('error ', err);
|
|
158
199
|
});
|
|
159
200
|
};
|
|
160
|
-
this.lang = 'en';
|
|
161
|
-
this.queried = false;
|
|
162
|
-
this.consentType = '';
|
|
163
|
-
this.mandatory = false;
|
|
164
|
-
this.gmVersion = '';
|
|
165
|
-
this.consentTitle = '';
|
|
166
|
-
this.clientStyling = '';
|
|
167
|
-
this.clientStylingUrl = '';
|
|
168
|
-
this.translationUrl = '';
|
|
169
|
-
this.textContent = '';
|
|
170
|
-
this.limitStylingAppends = false;
|
|
171
201
|
}
|
|
172
202
|
handleNewTranslations() {
|
|
173
203
|
getTranslations(this.translationUrl);
|
|
@@ -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-a5a75dc5.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.25.1 | 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));
|