@everymatrix/user-action-controller 1.56.0 → 1.56.2
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-acdc077f.js → index-5068b4b4.js} +73 -210
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-user-consents_2.cjs.entry.js +19 -57
- package/dist/cjs/user-action-controller.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/user-action-controller/user-action-controller.js +15 -47
- package/dist/esm/{index-82e2d554.js → index-5b001d30.js} +73 -210
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-user-consents_2.entry.js +19 -57
- package/dist/esm/user-action-controller.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/user-action-controller/p-1091a4ea.entry.js +1 -0
- package/dist/user-action-controller/p-21db0506.js +2 -0
- package/dist/user-action-controller/user-action-controller.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +0 -2
- package/dist/user-action-controller/p-839810ba.entry.js +0 -1
- package/dist/user-action-controller/p-e2754eb5.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'user-action-controller';
|
|
2
|
-
const BUILD = /* user-action-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
2
|
+
const BUILD = /* user-action-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
19
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
20
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
21
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
23
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
16
|
const hostRef = {
|
|
25
17
|
$flags$: 0,
|
|
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
24
|
hostElement["s-p"] = [];
|
|
33
25
|
hostElement["s-rc"] = [];
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
37
28
|
};
|
|
38
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
39
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
70
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
71
62
|
/* webpackMode: "lazy" */
|
|
72
63
|
`./${bundleId}.entry.js${""}`
|
|
73
|
-
).then(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
cmpModules.set(bundleId, importedModule);
|
|
77
|
-
}
|
|
78
|
-
return importedModule[exportName];
|
|
79
|
-
},
|
|
80
|
-
(e) => {
|
|
81
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
82
67
|
}
|
|
83
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
84
70
|
};
|
|
85
71
|
|
|
86
72
|
// src/client/client-style.ts
|
|
87
73
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
89
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
90
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
91
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -159,6 +144,14 @@ var flush = () => {
|
|
|
159
144
|
};
|
|
160
145
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
161
146
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
147
|
+
|
|
148
|
+
// src/utils/constants.ts
|
|
149
|
+
var EMPTY_OBJ = {};
|
|
150
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
151
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
152
|
+
|
|
153
|
+
// src/utils/helpers.ts
|
|
154
|
+
var isDef = (v) => v != null;
|
|
162
155
|
var isComplexType = (o) => {
|
|
163
156
|
o = typeof o;
|
|
164
157
|
return o === "object" || o === "function";
|
|
@@ -359,40 +352,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
359
352
|
}
|
|
360
353
|
if (!appliedStyles.has(scopeId2)) {
|
|
361
354
|
{
|
|
362
|
-
styleElm =
|
|
355
|
+
styleElm = doc.createElement("style");
|
|
363
356
|
styleElm.innerHTML = style;
|
|
364
357
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
365
358
|
if (nonce != null) {
|
|
366
359
|
styleElm.setAttribute("nonce", nonce);
|
|
367
360
|
}
|
|
368
|
-
|
|
369
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
370
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
371
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
372
|
-
styleContainerNode.insertBefore(
|
|
373
|
-
styleElm,
|
|
374
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
375
|
-
);
|
|
376
|
-
} else if ("host" in styleContainerNode) {
|
|
377
|
-
if (supportsConstructableStylesheets) {
|
|
378
|
-
const stylesheet = new CSSStyleSheet();
|
|
379
|
-
stylesheet.replaceSync(style);
|
|
380
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
381
|
-
} else {
|
|
382
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
383
|
-
if (existingStyleContainer) {
|
|
384
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
385
|
-
} else {
|
|
386
|
-
styleContainerNode.prepend(styleElm);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
} else {
|
|
390
|
-
styleContainerNode.append(styleElm);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
394
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
395
|
-
}
|
|
361
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
396
362
|
}
|
|
397
363
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
398
364
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -415,25 +381,23 @@ var attachStyles = (hostRef) => {
|
|
|
415
381
|
const scopeId2 = addStyle(
|
|
416
382
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
417
383
|
cmpMeta);
|
|
418
|
-
if (
|
|
384
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
419
385
|
elm["s-sc"] = scopeId2;
|
|
420
386
|
elm.classList.add(scopeId2 + "-h");
|
|
421
387
|
}
|
|
422
388
|
endAttachStyles();
|
|
423
389
|
};
|
|
424
390
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
425
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
391
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
426
392
|
if (oldValue !== newValue) {
|
|
427
393
|
let isProp = isMemberInElement(elm, memberName);
|
|
428
394
|
let ln = memberName.toLowerCase();
|
|
429
395
|
if (memberName === "class") {
|
|
430
396
|
const classList = elm.classList;
|
|
431
397
|
const oldClasses = parseClassList(oldValue);
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
436
|
-
}
|
|
398
|
+
const newClasses = parseClassList(newValue);
|
|
399
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
400
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
437
401
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
438
402
|
if (newValue) {
|
|
439
403
|
newValue(elm);
|
|
@@ -465,13 +429,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
465
429
|
if (memberName === "list") {
|
|
466
430
|
isProp = false;
|
|
467
431
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
468
|
-
|
|
469
|
-
elm[memberName] = n;
|
|
470
|
-
} else {
|
|
471
|
-
elm.setAttribute(memberName, n);
|
|
472
|
-
}
|
|
432
|
+
elm[memberName] = n;
|
|
473
433
|
}
|
|
474
|
-
} else
|
|
434
|
+
} else {
|
|
475
435
|
elm[memberName] = newValue;
|
|
476
436
|
}
|
|
477
437
|
} catch (e) {
|
|
@@ -493,44 +453,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
493
453
|
}
|
|
494
454
|
};
|
|
495
455
|
var parseClassListRegex = /\s/;
|
|
496
|
-
var parseClassList = (value) =>
|
|
497
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
498
|
-
value = value.baseVal;
|
|
499
|
-
}
|
|
500
|
-
if (!value || typeof value !== "string") {
|
|
501
|
-
return [];
|
|
502
|
-
}
|
|
503
|
-
return value.split(parseClassListRegex);
|
|
504
|
-
};
|
|
456
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
505
457
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
506
458
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
507
459
|
|
|
508
460
|
// src/runtime/vdom/update-element.ts
|
|
509
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
461
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
510
462
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
511
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
512
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
463
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
464
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
513
465
|
{
|
|
514
466
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
515
467
|
if (!(memberName in newVnodeAttrs)) {
|
|
516
|
-
setAccessor(
|
|
517
|
-
elm,
|
|
518
|
-
memberName,
|
|
519
|
-
oldVnodeAttrs[memberName],
|
|
520
|
-
void 0,
|
|
521
|
-
isSvgMode2,
|
|
522
|
-
newVnode.$flags$);
|
|
468
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
523
469
|
}
|
|
524
470
|
}
|
|
525
471
|
}
|
|
526
472
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
527
|
-
setAccessor(
|
|
528
|
-
elm,
|
|
529
|
-
memberName,
|
|
530
|
-
oldVnodeAttrs[memberName],
|
|
531
|
-
newVnodeAttrs[memberName],
|
|
532
|
-
isSvgMode2,
|
|
533
|
-
newVnode.$flags$);
|
|
473
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
534
474
|
}
|
|
535
475
|
};
|
|
536
476
|
function sortedAttrNames(attrNames) {
|
|
@@ -542,10 +482,13 @@ function sortedAttrNames(attrNames) {
|
|
|
542
482
|
attrNames
|
|
543
483
|
);
|
|
544
484
|
}
|
|
485
|
+
|
|
486
|
+
// src/runtime/vdom/vdom-render.ts
|
|
487
|
+
var scopeId;
|
|
545
488
|
var hostTagName;
|
|
546
489
|
var useNativeShadowDom = false;
|
|
547
490
|
var isSvgMode = false;
|
|
548
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
491
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
549
492
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
550
493
|
let i2 = 0;
|
|
551
494
|
let elm;
|
|
@@ -566,6 +509,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
566
509
|
{
|
|
567
510
|
updateElement(null, newVNode2, isSvgMode);
|
|
568
511
|
}
|
|
512
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
513
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
514
|
+
}
|
|
569
515
|
if (newVNode2.$children$) {
|
|
570
516
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
571
517
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -702,9 +648,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
702
648
|
if (!isInitialRender) {
|
|
703
649
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
704
650
|
}
|
|
705
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
706
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
707
|
-
}
|
|
708
651
|
return true;
|
|
709
652
|
}
|
|
710
653
|
return false;
|
|
@@ -731,10 +674,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
731
674
|
elm.textContent = "";
|
|
732
675
|
}
|
|
733
676
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
734
|
-
} else if (
|
|
735
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
736
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
737
|
-
) {
|
|
677
|
+
} else if (oldChildren !== null) {
|
|
738
678
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
739
679
|
}
|
|
740
680
|
if (isSvgMode && tag === "svg") {
|
|
@@ -751,9 +691,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
751
691
|
}
|
|
752
692
|
};
|
|
753
693
|
var insertBefore = (parent, newNode, reference) => {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
694
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
695
|
+
return inserted;
|
|
757
696
|
};
|
|
758
697
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
759
698
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -778,21 +717,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
778
717
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
779
718
|
hostRef.$vnode$ = rootVnode;
|
|
780
719
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
781
|
-
|
|
720
|
+
{
|
|
721
|
+
scopeId = hostElm["s-sc"];
|
|
722
|
+
}
|
|
723
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
782
724
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
783
725
|
};
|
|
784
726
|
|
|
785
727
|
// src/runtime/update-component.ts
|
|
786
728
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
787
729
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
788
|
-
|
|
789
|
-
new Promise(
|
|
790
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
791
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
792
|
-
r();
|
|
793
|
-
}
|
|
794
|
-
)
|
|
795
|
-
);
|
|
730
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
796
731
|
}
|
|
797
732
|
};
|
|
798
733
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -821,12 +756,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
821
756
|
{
|
|
822
757
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
823
758
|
if (hostRef.$queuedListeners$) {
|
|
824
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
759
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
825
760
|
hostRef.$queuedListeners$ = void 0;
|
|
826
761
|
}
|
|
827
762
|
}
|
|
828
763
|
{
|
|
829
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
764
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
830
765
|
}
|
|
831
766
|
}
|
|
832
767
|
endSchedule();
|
|
@@ -900,7 +835,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
900
835
|
addHydratedFlag(elm);
|
|
901
836
|
}
|
|
902
837
|
{
|
|
903
|
-
safeCall(instance, "componentDidLoad"
|
|
838
|
+
safeCall(instance, "componentDidLoad");
|
|
904
839
|
}
|
|
905
840
|
endPostUpdate();
|
|
906
841
|
{
|
|
@@ -924,14 +859,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
924
859
|
}
|
|
925
860
|
};
|
|
926
861
|
var appDidLoad = (who) => {
|
|
862
|
+
{
|
|
863
|
+
addHydratedFlag(doc.documentElement);
|
|
864
|
+
}
|
|
927
865
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
928
866
|
};
|
|
929
|
-
var safeCall = (instance, method, arg
|
|
867
|
+
var safeCall = (instance, method, arg) => {
|
|
930
868
|
if (instance && instance[method]) {
|
|
931
869
|
try {
|
|
932
870
|
return instance[method](arg);
|
|
933
871
|
} catch (e) {
|
|
934
|
-
consoleError(e
|
|
872
|
+
consoleError(e);
|
|
935
873
|
}
|
|
936
874
|
}
|
|
937
875
|
return void 0;
|
|
@@ -990,68 +928,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
990
928
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
991
929
|
members.map(([memberName, [memberFlags]]) => {
|
|
992
930
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
993
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
994
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
995
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
996
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
997
|
-
Object.defineProperty(prototype, memberName, {
|
|
998
|
-
get() {
|
|
999
|
-
{
|
|
1000
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1001
|
-
return getValue(this, memberName);
|
|
1002
|
-
}
|
|
1003
|
-
const ref = getHostRef(this);
|
|
1004
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1005
|
-
if (!instance) return;
|
|
1006
|
-
return instance[memberName];
|
|
1007
|
-
}
|
|
1008
|
-
},
|
|
1009
|
-
configurable: true,
|
|
1010
|
-
enumerable: true
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
931
|
Object.defineProperty(prototype, memberName, {
|
|
932
|
+
get() {
|
|
933
|
+
return getValue(this, memberName);
|
|
934
|
+
},
|
|
1014
935
|
set(newValue) {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1020
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1021
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1022
|
-
}
|
|
1023
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1024
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1025
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1026
|
-
return;
|
|
1027
|
-
}
|
|
1028
|
-
{
|
|
1029
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1030
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1031
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1032
|
-
ref.$onReadyPromise$.then(() => {
|
|
1033
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1034
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
return;
|
|
1039
|
-
}
|
|
1040
|
-
const setterSetVal = () => {
|
|
1041
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1042
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1043
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1044
|
-
}
|
|
1045
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1046
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1047
|
-
};
|
|
1048
|
-
if (ref.$lazyInstance$) {
|
|
1049
|
-
setterSetVal();
|
|
1050
|
-
} else {
|
|
1051
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
936
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
937
|
+
},
|
|
938
|
+
configurable: true,
|
|
939
|
+
enumerable: true
|
|
1055
940
|
});
|
|
1056
941
|
}
|
|
1057
942
|
});
|
|
@@ -1061,11 +946,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1061
946
|
plt.jmp(() => {
|
|
1062
947
|
var _a2;
|
|
1063
948
|
const propName = attrNameToPropName.get(attrName);
|
|
1064
|
-
if (this.hasOwnProperty(propName)
|
|
949
|
+
if (this.hasOwnProperty(propName)) {
|
|
1065
950
|
newValue = this[propName];
|
|
1066
951
|
delete this[propName];
|
|
1067
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1068
|
-
this[propName] == newValue) {
|
|
952
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1069
953
|
return;
|
|
1070
954
|
} else if (propName == null) {
|
|
1071
955
|
const hostRef = getHostRef(this);
|
|
@@ -1081,11 +965,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1081
965
|
}
|
|
1082
966
|
return;
|
|
1083
967
|
}
|
|
1084
|
-
|
|
1085
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1086
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1087
|
-
this[propName] = newValue;
|
|
1088
|
-
}
|
|
968
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1089
969
|
});
|
|
1090
970
|
};
|
|
1091
971
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1114,7 +994,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1114
994
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1115
995
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1116
996
|
if (bundleId) {
|
|
1117
|
-
const CstrImport = loadModule(cmpMeta
|
|
997
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1118
998
|
if (CstrImport && "then" in CstrImport) {
|
|
1119
999
|
const endLoad = uniqueTime();
|
|
1120
1000
|
Cstr = await CstrImport;
|
|
@@ -1139,7 +1019,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1139
1019
|
try {
|
|
1140
1020
|
new Cstr(hostRef);
|
|
1141
1021
|
} catch (e) {
|
|
1142
|
-
consoleError(e
|
|
1022
|
+
consoleError(e);
|
|
1143
1023
|
}
|
|
1144
1024
|
{
|
|
1145
1025
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1174,7 +1054,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1174
1054
|
schedule();
|
|
1175
1055
|
}
|
|
1176
1056
|
};
|
|
1177
|
-
var fireConnectedCallback = (instance
|
|
1057
|
+
var fireConnectedCallback = (instance) => {
|
|
1178
1058
|
};
|
|
1179
1059
|
|
|
1180
1060
|
// src/runtime/connected-callback.ts
|
|
@@ -1215,9 +1095,9 @@ var connectedCallback = (elm) => {
|
|
|
1215
1095
|
endConnected();
|
|
1216
1096
|
}
|
|
1217
1097
|
};
|
|
1218
|
-
var disconnectInstance = (instance
|
|
1098
|
+
var disconnectInstance = (instance) => {
|
|
1219
1099
|
{
|
|
1220
|
-
safeCall(instance, "disconnectedCallback"
|
|
1100
|
+
safeCall(instance, "disconnectedCallback");
|
|
1221
1101
|
}
|
|
1222
1102
|
};
|
|
1223
1103
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1230,17 +1110,11 @@ var disconnectedCallback = async (elm) => {
|
|
|
1230
1110
|
}
|
|
1231
1111
|
}
|
|
1232
1112
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1233
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1113
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1234
1114
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1235
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1115
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1236
1116
|
}
|
|
1237
1117
|
}
|
|
1238
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1239
|
-
rootAppliedStyles.delete(elm);
|
|
1240
|
-
}
|
|
1241
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1242
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1243
|
-
}
|
|
1244
1118
|
};
|
|
1245
1119
|
|
|
1246
1120
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1325,17 +1199,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1325
1199
|
}
|
|
1326
1200
|
disconnectedCallback() {
|
|
1327
1201
|
plt.jmp(() => disconnectedCallback(this));
|
|
1328
|
-
plt.raf(() => {
|
|
1329
|
-
var _a3;
|
|
1330
|
-
const hostRef = getHostRef(this);
|
|
1331
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1332
|
-
if (i2 > -1) {
|
|
1333
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1334
|
-
}
|
|
1335
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1336
|
-
delete hostRef.$vnode$.$elm$;
|
|
1337
|
-
}
|
|
1338
|
-
});
|
|
1339
1202
|
}
|
|
1340
1203
|
componentOnReady() {
|
|
1341
1204
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1399,7 +1262,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1399
1262
|
}
|
|
1400
1263
|
}
|
|
1401
1264
|
} catch (e) {
|
|
1402
|
-
consoleError(e
|
|
1265
|
+
consoleError(e);
|
|
1403
1266
|
}
|
|
1404
1267
|
};
|
|
1405
1268
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-5b001d30.js';
|
|
2
|
+
export { s as setNonce } from './index-5b001d30.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-5b001d30.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
4
4
|
const TRANSLATIONS$1 = {
|
|
@@ -190,45 +190,19 @@ const PlayerUserConsents = class {
|
|
|
190
190
|
constructor(hostRef) {
|
|
191
191
|
registerInstance(this, hostRef);
|
|
192
192
|
this.userLegislationConsent = createEvent(this, "userLegislationConsent", 7);
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
*/
|
|
193
|
+
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
194
|
+
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
196
195
|
this.lang = 'en';
|
|
197
|
-
/**
|
|
198
|
-
* 'true' when parent expects component to emit it's current value
|
|
199
|
-
*/
|
|
200
196
|
this.queried = false;
|
|
201
|
-
/**
|
|
202
|
-
* the type of the consent, used to determine render details
|
|
203
|
-
*/
|
|
204
197
|
this.consentType = '';
|
|
205
|
-
/**
|
|
206
|
-
* wether or not this consent is mandatory. Used for render details
|
|
207
|
-
*/
|
|
208
198
|
this.mandatory = false;
|
|
209
|
-
/**
|
|
210
|
-
* Select GM version
|
|
211
|
-
*/
|
|
212
199
|
this.gmVersion = '';
|
|
213
|
-
/**
|
|
214
|
-
* the title of the consent to be displayed
|
|
215
|
-
*/
|
|
216
200
|
this.consentTitle = '';
|
|
217
|
-
/**
|
|
218
|
-
* Client custom styling via inline style
|
|
219
|
-
*/
|
|
220
201
|
this.clientStyling = '';
|
|
221
|
-
/**
|
|
222
|
-
* Client custom styling via url
|
|
223
|
-
*/
|
|
224
202
|
this.clientStylingUrl = '';
|
|
225
|
-
/**
|
|
226
|
-
* Translation url
|
|
227
|
-
*/
|
|
228
203
|
this.translationUrl = '';
|
|
204
|
+
this.mbSource = undefined;
|
|
229
205
|
this.textContent = '';
|
|
230
|
-
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
231
|
-
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
232
206
|
}
|
|
233
207
|
handleNewTranslations() {
|
|
234
208
|
getTranslations$1(this.translationUrl);
|
|
@@ -420,29 +394,25 @@ const UserActionControllerStyle0 = userActionControllerCss;
|
|
|
420
394
|
const UserActionController = class {
|
|
421
395
|
constructor(hostRef) {
|
|
422
396
|
registerInstance(this, hostRef);
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
397
|
+
//for now this variable is hardcoded bcs we have terms and conditions and privacy policy mandatory and we dont receive with these new functionality the mandatory actions
|
|
398
|
+
this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
|
|
399
|
+
this.userActions = [];
|
|
400
|
+
this.consentTitles = {
|
|
401
|
+
termsandconditions: translate('termsAndConditionsTitle', this.lang),
|
|
402
|
+
sms: translate('smsTitle', this.lang),
|
|
403
|
+
emailmarketing: translate('emailMarketingTitle', this.lang),
|
|
404
|
+
privacypolicy: translate('privacyPolicyTitle', this.lang)
|
|
405
|
+
};
|
|
406
|
+
this.endpoint = undefined;
|
|
407
|
+
this.userSession = undefined;
|
|
408
|
+
this.userId = undefined;
|
|
426
409
|
this.lang = 'en';
|
|
427
|
-
|
|
428
|
-
* Select GM version
|
|
429
|
-
*/
|
|
410
|
+
this.includeSubmitButton = undefined;
|
|
430
411
|
this.gmVersion = '';
|
|
431
|
-
/**
|
|
432
|
-
* Translation url
|
|
433
|
-
*/
|
|
434
412
|
this.translationUrl = '';
|
|
435
|
-
/**
|
|
436
|
-
* Client custom styling via inline style
|
|
437
|
-
*/
|
|
438
413
|
this.clientStyling = '';
|
|
439
|
-
/**
|
|
440
|
-
* Client custom styling via url
|
|
441
|
-
*/
|
|
442
414
|
this.clientStylingUrl = '';
|
|
443
|
-
|
|
444
|
-
* Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
|
|
445
|
-
*/
|
|
415
|
+
this.mbSource = undefined;
|
|
446
416
|
this.queryFired = false;
|
|
447
417
|
this.readyActionsCount = 0;
|
|
448
418
|
this.activeUserActions = [];
|
|
@@ -450,15 +420,7 @@ const UserActionController = class {
|
|
|
450
420
|
this.receivedQueryResponses = 0;
|
|
451
421
|
this.isLoading = true;
|
|
452
422
|
this.mandatoryActionsChecked = 0;
|
|
453
|
-
|
|
454
|
-
this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
|
|
455
|
-
this.userActions = [];
|
|
456
|
-
this.consentTitles = {
|
|
457
|
-
termsandconditions: translate('termsAndConditionsTitle', this.lang),
|
|
458
|
-
sms: translate('smsTitle', this.lang),
|
|
459
|
-
emailmarketing: translate('emailMarketingTitle', this.lang),
|
|
460
|
-
privacypolicy: translate('privacyPolicyTitle', this.lang)
|
|
461
|
-
};
|
|
423
|
+
this.mandatoryItems = undefined;
|
|
462
424
|
}
|
|
463
425
|
handleNewTranslations() {
|
|
464
426
|
getTranslations(this.translationUrl);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-5b001d30.js';
|
|
2
|
+
export { s as setNonce } from './index-5b001d30.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|