@everymatrix/player-lugas-limit 1.54.11 → 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-e9623402.js → index-40c257af.js} +68 -171
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-lugas-limit.cjs.entry.js +24 -35
- package/dist/cjs/player-lugas-limit.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-lugas-limit/player-lugas-limit.js +23 -52
- package/dist/esm/{index-8fc25b6d.js → index-51bbae94.js} +68 -171
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-lugas-limit.entry.js +24 -35
- package/dist/esm/player-lugas-limit.js +3 -3
- package/dist/player-lugas-limit/p-971ac277.entry.js +1 -0
- package/dist/player-lugas-limit/p-e2496de0.js +2 -0
- package/dist/player-lugas-limit/player-lugas-limit.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/packages/stencil/player-lugas-limit/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/packages/stencil/player-lugas-limit/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/player-lugas-limit/p-1911ce9a.entry.js +0 -1
- package/dist/player-lugas-limit/p-2088b5a6.js +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/packages/stencil/player-lugas-limit/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/packages/stencil/player-lugas-limit/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'player-lugas-limit';
|
|
24
|
-
const BUILD = /* player-lugas-limit */ { 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: false, 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,
|
|
24
|
+
const BUILD = /* player-lugas-limit */ { 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: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: false, 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/utils/constants.ts
|
|
36
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
|
-
|
|
39
|
-
// src/client/client-host-ref.ts
|
|
40
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
41
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
42
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
43
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
44
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
45
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
46
38
|
const hostRef = {
|
|
47
39
|
$flags$: 0,
|
|
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
54
46
|
hostElement["s-p"] = [];
|
|
55
47
|
hostElement["s-rc"] = [];
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
59
50
|
};
|
|
60
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
61
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
92
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
93
84
|
/* webpackMode: "lazy" */
|
|
94
85
|
`./${bundleId}.entry.js${""}`
|
|
95
|
-
)); }).then(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
cmpModules.set(bundleId, importedModule);
|
|
99
|
-
}
|
|
100
|
-
return importedModule[exportName];
|
|
101
|
-
},
|
|
102
|
-
(e) => {
|
|
103
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
104
89
|
}
|
|
105
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
106
92
|
};
|
|
107
93
|
|
|
108
94
|
// src/client/client-style.ts
|
|
109
95
|
var styles = /* @__PURE__ */ new Map();
|
|
110
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
111
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
112
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
113
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -165,6 +150,14 @@ var flush = () => {
|
|
|
165
150
|
};
|
|
166
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
167
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
157
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
158
|
+
|
|
159
|
+
// src/utils/helpers.ts
|
|
160
|
+
var isDef = (v) => v != null;
|
|
168
161
|
var isComplexType = (o) => {
|
|
169
162
|
o = typeof o;
|
|
170
163
|
return o === "object" || o === "function";
|
|
@@ -336,7 +329,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
336
329
|
}
|
|
337
330
|
if (!appliedStyles.has(scopeId2)) {
|
|
338
331
|
{
|
|
339
|
-
styleElm =
|
|
332
|
+
styleElm = doc.createElement("style");
|
|
340
333
|
styleElm.innerHTML = style;
|
|
341
334
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
342
335
|
if (nonce != null) {
|
|
@@ -346,10 +339,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
346
339
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
347
340
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
348
341
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
349
|
-
styleContainerNode.insertBefore(
|
|
350
|
-
styleElm,
|
|
351
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
352
|
-
);
|
|
342
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
353
343
|
} else if ("host" in styleContainerNode) {
|
|
354
344
|
if (supportsConstructableStylesheets) {
|
|
355
345
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -367,7 +357,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
367
357
|
styleContainerNode.append(styleElm);
|
|
368
358
|
}
|
|
369
359
|
}
|
|
370
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
360
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
371
361
|
styleContainerNode.insertBefore(styleElm, null);
|
|
372
362
|
}
|
|
373
363
|
}
|
|
@@ -392,25 +382,23 @@ var attachStyles = (hostRef) => {
|
|
|
392
382
|
const scopeId2 = addStyle(
|
|
393
383
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
394
384
|
cmpMeta);
|
|
395
|
-
if (
|
|
385
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
396
386
|
elm["s-sc"] = scopeId2;
|
|
397
387
|
elm.classList.add(scopeId2 + "-h");
|
|
398
388
|
}
|
|
399
389
|
endAttachStyles();
|
|
400
390
|
};
|
|
401
391
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
402
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
392
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
403
393
|
if (oldValue !== newValue) {
|
|
404
394
|
let isProp = isMemberInElement(elm, memberName);
|
|
405
395
|
let ln = memberName.toLowerCase();
|
|
406
396
|
if (memberName === "class") {
|
|
407
397
|
const classList = elm.classList;
|
|
408
398
|
const oldClasses = parseClassList(oldValue);
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
413
|
-
}
|
|
399
|
+
const newClasses = parseClassList(newValue);
|
|
400
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
401
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
414
402
|
} else if (memberName === "ref") {
|
|
415
403
|
if (newValue) {
|
|
416
404
|
newValue(elm);
|
|
@@ -448,7 +436,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
448
436
|
elm.setAttribute(memberName, n);
|
|
449
437
|
}
|
|
450
438
|
}
|
|
451
|
-
} else
|
|
439
|
+
} else {
|
|
452
440
|
elm[memberName] = newValue;
|
|
453
441
|
}
|
|
454
442
|
} catch (e) {
|
|
@@ -470,44 +458,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
470
458
|
}
|
|
471
459
|
};
|
|
472
460
|
var parseClassListRegex = /\s/;
|
|
473
|
-
var parseClassList = (value) =>
|
|
474
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
475
|
-
value = value.baseVal;
|
|
476
|
-
}
|
|
477
|
-
if (!value || typeof value !== "string") {
|
|
478
|
-
return [];
|
|
479
|
-
}
|
|
480
|
-
return value.split(parseClassListRegex);
|
|
481
|
-
};
|
|
461
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
482
462
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
483
463
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
484
464
|
|
|
485
465
|
// src/runtime/vdom/update-element.ts
|
|
486
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
466
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
487
467
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
488
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
489
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
468
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
469
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
490
470
|
{
|
|
491
471
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
492
472
|
if (!(memberName in newVnodeAttrs)) {
|
|
493
|
-
setAccessor(
|
|
494
|
-
elm,
|
|
495
|
-
memberName,
|
|
496
|
-
oldVnodeAttrs[memberName],
|
|
497
|
-
void 0,
|
|
498
|
-
isSvgMode2,
|
|
499
|
-
newVnode.$flags$);
|
|
473
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
500
474
|
}
|
|
501
475
|
}
|
|
502
476
|
}
|
|
503
477
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
504
|
-
setAccessor(
|
|
505
|
-
elm,
|
|
506
|
-
memberName,
|
|
507
|
-
oldVnodeAttrs[memberName],
|
|
508
|
-
newVnodeAttrs[memberName],
|
|
509
|
-
isSvgMode2,
|
|
510
|
-
newVnode.$flags$);
|
|
478
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
511
479
|
}
|
|
512
480
|
};
|
|
513
481
|
function sortedAttrNames(attrNames) {
|
|
@@ -519,10 +487,13 @@ function sortedAttrNames(attrNames) {
|
|
|
519
487
|
attrNames
|
|
520
488
|
);
|
|
521
489
|
}
|
|
490
|
+
|
|
491
|
+
// src/runtime/vdom/vdom-render.ts
|
|
492
|
+
var scopeId;
|
|
522
493
|
var hostTagName;
|
|
523
494
|
var useNativeShadowDom = false;
|
|
524
495
|
var isSvgMode = false;
|
|
525
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
496
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
526
497
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
527
498
|
let i2 = 0;
|
|
528
499
|
let elm;
|
|
@@ -543,6 +514,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
543
514
|
{
|
|
544
515
|
updateElement(null, newVNode2, isSvgMode);
|
|
545
516
|
}
|
|
517
|
+
const rootNode = elm.getRootNode();
|
|
518
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
519
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
520
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
521
|
+
}
|
|
546
522
|
if (newVNode2.$children$) {
|
|
547
523
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
548
524
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -654,9 +630,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
654
630
|
};
|
|
655
631
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
656
632
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
657
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
658
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
659
|
-
}
|
|
660
633
|
return true;
|
|
661
634
|
}
|
|
662
635
|
return false;
|
|
@@ -703,9 +676,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
703
676
|
}
|
|
704
677
|
};
|
|
705
678
|
var insertBefore = (parent, newNode, reference) => {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
679
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
680
|
+
return inserted;
|
|
709
681
|
};
|
|
710
682
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
711
683
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -724,21 +696,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
724
696
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
725
697
|
hostRef.$vnode$ = rootVnode;
|
|
726
698
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
727
|
-
|
|
699
|
+
{
|
|
700
|
+
scopeId = hostElm["s-sc"];
|
|
701
|
+
}
|
|
702
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
728
703
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
729
704
|
};
|
|
730
705
|
|
|
731
706
|
// src/runtime/update-component.ts
|
|
732
707
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
733
708
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
734
|
-
|
|
735
|
-
new Promise(
|
|
736
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
737
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
738
|
-
r();
|
|
739
|
-
}
|
|
740
|
-
)
|
|
741
|
-
);
|
|
709
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
742
710
|
}
|
|
743
711
|
};
|
|
744
712
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -765,7 +733,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
765
733
|
let maybePromise;
|
|
766
734
|
if (isInitialLoad) {
|
|
767
735
|
{
|
|
768
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
736
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
769
737
|
}
|
|
770
738
|
}
|
|
771
739
|
endSchedule();
|
|
@@ -834,7 +802,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
834
802
|
const instance = hostRef.$lazyInstance$ ;
|
|
835
803
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
836
804
|
{
|
|
837
|
-
safeCall(instance, "componentDidRender"
|
|
805
|
+
safeCall(instance, "componentDidRender");
|
|
838
806
|
}
|
|
839
807
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
840
808
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -863,14 +831,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
863
831
|
}
|
|
864
832
|
};
|
|
865
833
|
var appDidLoad = (who) => {
|
|
834
|
+
{
|
|
835
|
+
addHydratedFlag(doc.documentElement);
|
|
836
|
+
}
|
|
866
837
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
867
838
|
};
|
|
868
|
-
var safeCall = (instance, method, arg
|
|
839
|
+
var safeCall = (instance, method, arg) => {
|
|
869
840
|
if (instance && instance[method]) {
|
|
870
841
|
try {
|
|
871
842
|
return instance[method](arg);
|
|
872
843
|
} catch (e) {
|
|
873
|
-
consoleError(e
|
|
844
|
+
consoleError(e);
|
|
874
845
|
}
|
|
875
846
|
}
|
|
876
847
|
return void 0;
|
|
@@ -929,68 +900,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
929
900
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
930
901
|
members.map(([memberName, [memberFlags]]) => {
|
|
931
902
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
932
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
933
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
934
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
935
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
936
|
-
Object.defineProperty(prototype, memberName, {
|
|
937
|
-
get() {
|
|
938
|
-
{
|
|
939
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
940
|
-
return getValue(this, memberName);
|
|
941
|
-
}
|
|
942
|
-
const ref = getHostRef(this);
|
|
943
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
944
|
-
if (!instance) return;
|
|
945
|
-
return instance[memberName];
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
configurable: true,
|
|
949
|
-
enumerable: true
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
903
|
Object.defineProperty(prototype, memberName, {
|
|
904
|
+
get() {
|
|
905
|
+
return getValue(this, memberName);
|
|
906
|
+
},
|
|
953
907
|
set(newValue) {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
959
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
960
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
961
|
-
}
|
|
962
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
963
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
964
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
965
|
-
return;
|
|
966
|
-
}
|
|
967
|
-
{
|
|
968
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
969
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
970
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
971
|
-
ref.$onReadyPromise$.then(() => {
|
|
972
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
973
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
974
|
-
}
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
return;
|
|
978
|
-
}
|
|
979
|
-
const setterSetVal = () => {
|
|
980
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
981
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
982
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
983
|
-
}
|
|
984
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
985
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
986
|
-
};
|
|
987
|
-
if (ref.$lazyInstance$) {
|
|
988
|
-
setterSetVal();
|
|
989
|
-
} else {
|
|
990
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
908
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
909
|
+
},
|
|
910
|
+
configurable: true,
|
|
911
|
+
enumerable: true
|
|
994
912
|
});
|
|
995
913
|
}
|
|
996
914
|
});
|
|
@@ -1000,7 +918,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1000
918
|
plt.jmp(() => {
|
|
1001
919
|
var _a2;
|
|
1002
920
|
const propName = attrNameToPropName.get(attrName);
|
|
1003
|
-
if (this.hasOwnProperty(propName)
|
|
921
|
+
if (this.hasOwnProperty(propName)) {
|
|
1004
922
|
newValue = this[propName];
|
|
1005
923
|
delete this[propName];
|
|
1006
924
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1020,11 +938,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1020
938
|
}
|
|
1021
939
|
return;
|
|
1022
940
|
}
|
|
1023
|
-
|
|
1024
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1025
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1026
|
-
this[propName] = newValue;
|
|
1027
|
-
}
|
|
941
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1028
942
|
});
|
|
1029
943
|
};
|
|
1030
944
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1049,7 +963,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1049
963
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1050
964
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1051
965
|
if (bundleId) {
|
|
1052
|
-
const CstrImport = loadModule(cmpMeta
|
|
966
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1053
967
|
if (CstrImport && "then" in CstrImport) {
|
|
1054
968
|
const endLoad = uniqueTime();
|
|
1055
969
|
Cstr = await CstrImport;
|
|
@@ -1074,7 +988,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1074
988
|
try {
|
|
1075
989
|
new Cstr(hostRef);
|
|
1076
990
|
} catch (e) {
|
|
1077
|
-
consoleError(e
|
|
991
|
+
consoleError(e);
|
|
1078
992
|
}
|
|
1079
993
|
{
|
|
1080
994
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1109,7 +1023,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1109
1023
|
schedule();
|
|
1110
1024
|
}
|
|
1111
1025
|
};
|
|
1112
|
-
var fireConnectedCallback = (instance
|
|
1026
|
+
var fireConnectedCallback = (instance) => {
|
|
1113
1027
|
};
|
|
1114
1028
|
|
|
1115
1029
|
// src/runtime/connected-callback.ts
|
|
@@ -1149,7 +1063,7 @@ var connectedCallback = (elm) => {
|
|
|
1149
1063
|
endConnected();
|
|
1150
1064
|
}
|
|
1151
1065
|
};
|
|
1152
|
-
var disconnectInstance = (instance
|
|
1066
|
+
var disconnectInstance = (instance) => {
|
|
1153
1067
|
};
|
|
1154
1068
|
var disconnectedCallback = async (elm) => {
|
|
1155
1069
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1158,12 +1072,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1158
1072
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1159
1073
|
}
|
|
1160
1074
|
}
|
|
1161
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1162
|
-
rootAppliedStyles.delete(elm);
|
|
1163
|
-
}
|
|
1164
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1165
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1166
|
-
}
|
|
1167
1075
|
};
|
|
1168
1076
|
|
|
1169
1077
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1241,17 +1149,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1241
1149
|
}
|
|
1242
1150
|
disconnectedCallback() {
|
|
1243
1151
|
plt.jmp(() => disconnectedCallback(this));
|
|
1244
|
-
plt.raf(() => {
|
|
1245
|
-
var _a3;
|
|
1246
|
-
const hostRef = getHostRef(this);
|
|
1247
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1248
|
-
if (i2 > -1) {
|
|
1249
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1250
|
-
}
|
|
1251
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1252
|
-
delete hostRef.$vnode$.$elm$;
|
|
1253
|
-
}
|
|
1254
|
-
});
|
|
1255
1152
|
}
|
|
1256
1153
|
componentOnReady() {
|
|
1257
1154
|
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-40c257af.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-40c257af.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'de';
|
|
8
8
|
let TRANSLATIONS = {
|
|
@@ -88,40 +88,6 @@ const PlayerLugasLimitStyle0 = playerLugasLimitCss;
|
|
|
88
88
|
const PlayerLugasLimit = class {
|
|
89
89
|
constructor(hostRef) {
|
|
90
90
|
index.registerInstance(this, hostRef);
|
|
91
|
-
/** User identifier */
|
|
92
|
-
this.userId = '';
|
|
93
|
-
/** Session ID for the user */
|
|
94
|
-
this.session = '';
|
|
95
|
-
/** Endpoint URL for the API */
|
|
96
|
-
this.endpoint = '';
|
|
97
|
-
/** Currency of the player */
|
|
98
|
-
this.currency = 'EUR';
|
|
99
|
-
/** The amount */
|
|
100
|
-
this.amount = '';
|
|
101
|
-
/** Custom client styling as inline CSS */
|
|
102
|
-
this.clientStyling = '';
|
|
103
|
-
/** URL for fetching client-specific styling */
|
|
104
|
-
this.clientStylingUrl = '';
|
|
105
|
-
/** URL for fetching translation strings */
|
|
106
|
-
this.translationUrl = '';
|
|
107
|
-
/** Show custom amount state */
|
|
108
|
-
this.showCustomAmount = false;
|
|
109
|
-
/** Loading state for the component */
|
|
110
|
-
this.isLoading = false;
|
|
111
|
-
/** Error state for the component */
|
|
112
|
-
this.hasErrors = false;
|
|
113
|
-
/** Value entered in the input field */
|
|
114
|
-
this.inputValue = '';
|
|
115
|
-
/** Show error flag */
|
|
116
|
-
this.showInvalidInputError = false;
|
|
117
|
-
/** Styling applied flag */
|
|
118
|
-
this.stylingAppends = false;
|
|
119
|
-
/** Array of predefined amounts */
|
|
120
|
-
this.predefinedAmountsArray = [];
|
|
121
|
-
/** Error message */
|
|
122
|
-
this.errorMessage = '';
|
|
123
|
-
/** Checks if the input has a valid number of decimal places */
|
|
124
|
-
this.wasSubmitted = false;
|
|
125
91
|
/**
|
|
126
92
|
* Fetches and applies client styling from a URL
|
|
127
93
|
*/
|
|
@@ -199,6 +165,29 @@ const PlayerLugasLimit = class {
|
|
|
199
165
|
this.wasSubmitted = false;
|
|
200
166
|
});
|
|
201
167
|
};
|
|
168
|
+
this.userId = '';
|
|
169
|
+
this.session = '';
|
|
170
|
+
this.endpoint = '';
|
|
171
|
+
this.currency = 'EUR';
|
|
172
|
+
this.amount = '';
|
|
173
|
+
this.lang = undefined;
|
|
174
|
+
this.clientStyling = '';
|
|
175
|
+
this.clientStylingUrl = '';
|
|
176
|
+
this.translationUrl = '';
|
|
177
|
+
this.showCustomAmount = false;
|
|
178
|
+
this.isLoading = false;
|
|
179
|
+
this.hasErrors = false;
|
|
180
|
+
this.inputValue = '';
|
|
181
|
+
this.showInvalidInputError = false;
|
|
182
|
+
this.stylingAppends = false;
|
|
183
|
+
this.predefinedAmountsArray = [];
|
|
184
|
+
this.isWithinRange = undefined;
|
|
185
|
+
this.minimumRange = undefined;
|
|
186
|
+
this.selectedPredefinedAmount = undefined;
|
|
187
|
+
this.errorMessage = '';
|
|
188
|
+
this.wasSubmitted = false;
|
|
189
|
+
this.minAmount = undefined;
|
|
190
|
+
this.maxAmount = undefined;
|
|
202
191
|
}
|
|
203
192
|
/**
|
|
204
193
|
* Watch for changes in the translation URL and fetch new translations
|
|
@@ -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-40c257af.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.22.3 | 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-lugas-limit.cjs.js', document.baseURI).href));
|