@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
|
@@ -21,23 +21,19 @@ 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:
|
|
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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | 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
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
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;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -361,7 +356,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
361
356
|
}
|
|
362
357
|
if (!appliedStyles.has(scopeId2)) {
|
|
363
358
|
{
|
|
364
|
-
styleElm =
|
|
359
|
+
styleElm = doc.createElement("style");
|
|
365
360
|
styleElm.innerHTML = style;
|
|
366
361
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
367
362
|
if (nonce != null) {
|
|
@@ -371,10 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
371
366
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
372
367
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
373
368
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
374
|
-
styleContainerNode.insertBefore(
|
|
375
|
-
styleElm,
|
|
376
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
377
|
-
);
|
|
369
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
378
370
|
} else if ("host" in styleContainerNode) {
|
|
379
371
|
if (supportsConstructableStylesheets) {
|
|
380
372
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -392,7 +384,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
392
384
|
styleContainerNode.append(styleElm);
|
|
393
385
|
}
|
|
394
386
|
}
|
|
395
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
387
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
396
388
|
styleContainerNode.insertBefore(styleElm, null);
|
|
397
389
|
}
|
|
398
390
|
}
|
|
@@ -417,25 +409,23 @@ var attachStyles = (hostRef) => {
|
|
|
417
409
|
const scopeId2 = addStyle(
|
|
418
410
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
419
411
|
cmpMeta);
|
|
420
|
-
if (
|
|
412
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
421
413
|
elm["s-sc"] = scopeId2;
|
|
422
414
|
elm.classList.add(scopeId2 + "-h");
|
|
423
415
|
}
|
|
424
416
|
endAttachStyles();
|
|
425
417
|
};
|
|
426
418
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
427
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
419
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
428
420
|
if (oldValue !== newValue) {
|
|
429
421
|
let isProp = isMemberInElement(elm, memberName);
|
|
430
422
|
let ln = memberName.toLowerCase();
|
|
431
423
|
if (memberName === "class") {
|
|
432
424
|
const classList = elm.classList;
|
|
433
425
|
const oldClasses = parseClassList(oldValue);
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
438
|
-
}
|
|
426
|
+
const newClasses = parseClassList(newValue);
|
|
427
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
428
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
439
429
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
440
430
|
if (newValue) {
|
|
441
431
|
newValue(elm);
|
|
@@ -473,7 +463,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
473
463
|
elm.setAttribute(memberName, n);
|
|
474
464
|
}
|
|
475
465
|
}
|
|
476
|
-
} else
|
|
466
|
+
} else {
|
|
477
467
|
elm[memberName] = newValue;
|
|
478
468
|
}
|
|
479
469
|
} catch (e) {
|
|
@@ -495,44 +485,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
495
485
|
}
|
|
496
486
|
};
|
|
497
487
|
var parseClassListRegex = /\s/;
|
|
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
|
-
};
|
|
488
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
507
489
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
508
490
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
509
491
|
|
|
510
492
|
// src/runtime/vdom/update-element.ts
|
|
511
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
493
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
512
494
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
513
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
514
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
495
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
496
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
515
497
|
{
|
|
516
498
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
517
499
|
if (!(memberName in newVnodeAttrs)) {
|
|
518
|
-
setAccessor(
|
|
519
|
-
elm,
|
|
520
|
-
memberName,
|
|
521
|
-
oldVnodeAttrs[memberName],
|
|
522
|
-
void 0,
|
|
523
|
-
isSvgMode2,
|
|
524
|
-
newVnode.$flags$);
|
|
500
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
525
501
|
}
|
|
526
502
|
}
|
|
527
503
|
}
|
|
528
504
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
529
|
-
setAccessor(
|
|
530
|
-
elm,
|
|
531
|
-
memberName,
|
|
532
|
-
oldVnodeAttrs[memberName],
|
|
533
|
-
newVnodeAttrs[memberName],
|
|
534
|
-
isSvgMode2,
|
|
535
|
-
newVnode.$flags$);
|
|
505
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
536
506
|
}
|
|
537
507
|
};
|
|
538
508
|
function sortedAttrNames(attrNames) {
|
|
@@ -544,10 +514,13 @@ function sortedAttrNames(attrNames) {
|
|
|
544
514
|
attrNames
|
|
545
515
|
);
|
|
546
516
|
}
|
|
517
|
+
|
|
518
|
+
// src/runtime/vdom/vdom-render.ts
|
|
519
|
+
var scopeId;
|
|
547
520
|
var hostTagName;
|
|
548
521
|
var useNativeShadowDom = false;
|
|
549
522
|
var isSvgMode = false;
|
|
550
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
523
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
551
524
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
552
525
|
let i2 = 0;
|
|
553
526
|
let elm;
|
|
@@ -561,6 +534,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
561
534
|
{
|
|
562
535
|
updateElement(null, newVNode2, isSvgMode);
|
|
563
536
|
}
|
|
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
|
+
}
|
|
564
542
|
if (newVNode2.$children$) {
|
|
565
543
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
566
544
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -690,9 +668,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
690
668
|
if (!isInitialRender) {
|
|
691
669
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
692
670
|
}
|
|
693
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
694
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
695
|
-
}
|
|
696
671
|
return true;
|
|
697
672
|
}
|
|
698
673
|
return false;
|
|
@@ -732,9 +707,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
732
707
|
}
|
|
733
708
|
};
|
|
734
709
|
var insertBefore = (parent, newNode, reference) => {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
710
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
711
|
+
return inserted;
|
|
738
712
|
};
|
|
739
713
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
740
714
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -759,21 +733,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
759
733
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
760
734
|
hostRef.$vnode$ = rootVnode;
|
|
761
735
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
762
|
-
|
|
736
|
+
{
|
|
737
|
+
scopeId = hostElm["s-sc"];
|
|
738
|
+
}
|
|
739
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
763
740
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
764
741
|
};
|
|
765
742
|
|
|
766
743
|
// src/runtime/update-component.ts
|
|
767
744
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
768
745
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
769
|
-
|
|
770
|
-
new Promise(
|
|
771
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
772
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
773
|
-
r();
|
|
774
|
-
}
|
|
775
|
-
)
|
|
776
|
-
);
|
|
746
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
777
747
|
}
|
|
778
748
|
};
|
|
779
749
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -800,7 +770,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
800
770
|
let maybePromise;
|
|
801
771
|
if (isInitialLoad) {
|
|
802
772
|
{
|
|
803
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
773
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
804
774
|
}
|
|
805
775
|
}
|
|
806
776
|
endSchedule();
|
|
@@ -868,14 +838,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
868
838
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
869
839
|
const instance = hostRef.$lazyInstance$ ;
|
|
870
840
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
871
|
-
{
|
|
872
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
873
|
-
}
|
|
874
841
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
875
842
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
876
843
|
{
|
|
877
844
|
addHydratedFlag(elm);
|
|
878
845
|
}
|
|
846
|
+
{
|
|
847
|
+
safeCall(instance, "componentDidLoad");
|
|
848
|
+
}
|
|
879
849
|
endPostUpdate();
|
|
880
850
|
{
|
|
881
851
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -898,14 +868,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
898
868
|
}
|
|
899
869
|
};
|
|
900
870
|
var appDidLoad = (who) => {
|
|
871
|
+
{
|
|
872
|
+
addHydratedFlag(doc.documentElement);
|
|
873
|
+
}
|
|
901
874
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
902
875
|
};
|
|
903
|
-
var safeCall = (instance, method, arg
|
|
876
|
+
var safeCall = (instance, method, arg) => {
|
|
904
877
|
if (instance && instance[method]) {
|
|
905
878
|
try {
|
|
906
879
|
return instance[method](arg);
|
|
907
880
|
} catch (e) {
|
|
908
|
-
consoleError(e
|
|
881
|
+
consoleError(e);
|
|
909
882
|
}
|
|
910
883
|
}
|
|
911
884
|
return void 0;
|
|
@@ -964,68 +937,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
964
937
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
965
938
|
members.map(([memberName, [memberFlags]]) => {
|
|
966
939
|
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
|
-
}
|
|
987
940
|
Object.defineProperty(prototype, memberName, {
|
|
941
|
+
get() {
|
|
942
|
+
return getValue(this, memberName);
|
|
943
|
+
},
|
|
988
944
|
set(newValue) {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
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
|
-
}
|
|
945
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
946
|
+
},
|
|
947
|
+
configurable: true,
|
|
948
|
+
enumerable: true
|
|
1029
949
|
});
|
|
1030
950
|
}
|
|
1031
951
|
});
|
|
@@ -1035,7 +955,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1035
955
|
plt.jmp(() => {
|
|
1036
956
|
var _a2;
|
|
1037
957
|
const propName = attrNameToPropName.get(attrName);
|
|
1038
|
-
if (this.hasOwnProperty(propName)
|
|
958
|
+
if (this.hasOwnProperty(propName)) {
|
|
1039
959
|
newValue = this[propName];
|
|
1040
960
|
delete this[propName];
|
|
1041
961
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1055,11 +975,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1055
975
|
}
|
|
1056
976
|
return;
|
|
1057
977
|
}
|
|
1058
|
-
|
|
1059
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1060
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1061
|
-
this[propName] = newValue;
|
|
1062
|
-
}
|
|
978
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1063
979
|
});
|
|
1064
980
|
};
|
|
1065
981
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1088,7 +1004,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1088
1004
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1089
1005
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1090
1006
|
if (bundleId) {
|
|
1091
|
-
const CstrImport = loadModule(cmpMeta
|
|
1007
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1092
1008
|
if (CstrImport && "then" in CstrImport) {
|
|
1093
1009
|
const endLoad = uniqueTime();
|
|
1094
1010
|
Cstr = await CstrImport;
|
|
@@ -1113,7 +1029,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1113
1029
|
try {
|
|
1114
1030
|
new Cstr(hostRef);
|
|
1115
1031
|
} catch (e) {
|
|
1116
|
-
consoleError(e
|
|
1032
|
+
consoleError(e);
|
|
1117
1033
|
}
|
|
1118
1034
|
{
|
|
1119
1035
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1148,7 +1064,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1148
1064
|
schedule();
|
|
1149
1065
|
}
|
|
1150
1066
|
};
|
|
1151
|
-
var fireConnectedCallback = (instance
|
|
1067
|
+
var fireConnectedCallback = (instance) => {
|
|
1152
1068
|
};
|
|
1153
1069
|
|
|
1154
1070
|
// src/runtime/connected-callback.ts
|
|
@@ -1188,21 +1104,20 @@ var connectedCallback = (elm) => {
|
|
|
1188
1104
|
endConnected();
|
|
1189
1105
|
}
|
|
1190
1106
|
};
|
|
1191
|
-
var disconnectInstance = (instance
|
|
1107
|
+
var disconnectInstance = (instance) => {
|
|
1108
|
+
{
|
|
1109
|
+
safeCall(instance, "disconnectedCallback");
|
|
1110
|
+
}
|
|
1192
1111
|
};
|
|
1193
1112
|
var disconnectedCallback = async (elm) => {
|
|
1194
1113
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1195
1114
|
const hostRef = getHostRef(elm);
|
|
1196
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1197
|
-
hostRef.$
|
|
1115
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1116
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1117
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1118
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1198
1119
|
}
|
|
1199
1120
|
}
|
|
1200
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1201
|
-
rootAppliedStyles.delete(elm);
|
|
1202
|
-
}
|
|
1203
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1204
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1205
|
-
}
|
|
1206
1121
|
};
|
|
1207
1122
|
|
|
1208
1123
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1283,17 +1198,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1283
1198
|
}
|
|
1284
1199
|
disconnectedCallback() {
|
|
1285
1200
|
plt.jmp(() => disconnectedCallback(this));
|
|
1286
|
-
plt.raf(() => {
|
|
1287
|
-
var _a3;
|
|
1288
|
-
const hostRef = getHostRef(this);
|
|
1289
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1290
|
-
if (i2 > -1) {
|
|
1291
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1292
|
-
}
|
|
1293
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1294
|
-
delete hostRef.$vnode$.$elm$;
|
|
1295
|
-
}
|
|
1296
|
-
});
|
|
1297
1201
|
}
|
|
1298
1202
|
componentOnReady() {
|
|
1299
1203
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-025ec107.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["player-user-consents.cjs",[[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"],"
|
|
11
|
+
return index.bootstrapLazy([["player-user-consents.cjs",[[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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|