@everymatrix/casino-jackpot-winner 1.56.0 → 1.56.3
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/casino-jackpot-winner/casino-jackpot-winner.esm.js +1 -1
- package/dist/casino-jackpot-winner/p-660238ac.entry.js +1 -0
- package/dist/casino-jackpot-winner/p-8ab52b4b.js +2 -0
- package/dist/cjs/casino-jackpot-winner.cjs.entry.js +26 -207
- package/dist/cjs/casino-jackpot-winner.cjs.js +2 -2
- package/dist/cjs/{index-a6322576.js → index-192db3a6.js} +62 -187
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.js +3 -43
- package/dist/esm/casino-jackpot-winner.entry.js +26 -207
- package/dist/esm/casino-jackpot-winner.js +3 -3
- package/dist/esm/{index-8bc5c2e9.js → index-c8ba1d1d.js} +62 -187
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-jackpot-winner/p-87493cd4.entry.js +0 -1
- package/dist/casino-jackpot-winner/p-96cbf2e8.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.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/casino-jackpot-winner/.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/casino-jackpot-winner/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-jackpot-winner';
|
|
2
|
-
const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, 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,
|
|
2
|
+
const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, 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: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, 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/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -352,40 +347,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
352
347
|
}
|
|
353
348
|
if (!appliedStyles.has(scopeId2)) {
|
|
354
349
|
{
|
|
355
|
-
styleElm =
|
|
350
|
+
styleElm = doc.createElement("style");
|
|
356
351
|
styleElm.innerHTML = style;
|
|
357
352
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
358
353
|
if (nonce != null) {
|
|
359
354
|
styleElm.setAttribute("nonce", nonce);
|
|
360
355
|
}
|
|
361
|
-
|
|
362
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
363
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
364
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
365
|
-
styleContainerNode.insertBefore(
|
|
366
|
-
styleElm,
|
|
367
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
368
|
-
);
|
|
369
|
-
} else if ("host" in styleContainerNode) {
|
|
370
|
-
if (supportsConstructableStylesheets) {
|
|
371
|
-
const stylesheet = new CSSStyleSheet();
|
|
372
|
-
stylesheet.replaceSync(style);
|
|
373
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
374
|
-
} else {
|
|
375
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
376
|
-
if (existingStyleContainer) {
|
|
377
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
378
|
-
} else {
|
|
379
|
-
styleContainerNode.prepend(styleElm);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
} else {
|
|
383
|
-
styleContainerNode.append(styleElm);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
387
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
388
|
-
}
|
|
356
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
389
357
|
}
|
|
390
358
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
391
359
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -408,14 +376,14 @@ var attachStyles = (hostRef) => {
|
|
|
408
376
|
const scopeId2 = addStyle(
|
|
409
377
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
410
378
|
cmpMeta);
|
|
411
|
-
if (
|
|
379
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
412
380
|
elm["s-sc"] = scopeId2;
|
|
413
381
|
elm.classList.add(scopeId2 + "-h");
|
|
414
382
|
}
|
|
415
383
|
endAttachStyles();
|
|
416
384
|
};
|
|
417
385
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
418
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
386
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
419
387
|
if (oldValue !== newValue) {
|
|
420
388
|
let isProp = isMemberInElement(elm, memberName);
|
|
421
389
|
memberName.toLowerCase();
|
|
@@ -428,13 +396,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
428
396
|
if (memberName === "list") {
|
|
429
397
|
isProp = false;
|
|
430
398
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
431
|
-
|
|
432
|
-
elm[memberName] = n;
|
|
433
|
-
} else {
|
|
434
|
-
elm.setAttribute(memberName, n);
|
|
435
|
-
}
|
|
399
|
+
elm[memberName] = n;
|
|
436
400
|
}
|
|
437
|
-
} else
|
|
401
|
+
} else {
|
|
438
402
|
elm[memberName] = newValue;
|
|
439
403
|
}
|
|
440
404
|
} catch (e) {
|
|
@@ -457,31 +421,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
457
421
|
};
|
|
458
422
|
|
|
459
423
|
// src/runtime/vdom/update-element.ts
|
|
460
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
424
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
461
425
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
462
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
463
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
426
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
427
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
464
428
|
{
|
|
465
429
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
466
430
|
if (!(memberName in newVnodeAttrs)) {
|
|
467
|
-
setAccessor(
|
|
468
|
-
elm,
|
|
469
|
-
memberName,
|
|
470
|
-
oldVnodeAttrs[memberName],
|
|
471
|
-
void 0,
|
|
472
|
-
isSvgMode2,
|
|
473
|
-
newVnode.$flags$);
|
|
431
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
474
432
|
}
|
|
475
433
|
}
|
|
476
434
|
}
|
|
477
435
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
478
|
-
setAccessor(
|
|
479
|
-
elm,
|
|
480
|
-
memberName,
|
|
481
|
-
oldVnodeAttrs[memberName],
|
|
482
|
-
newVnodeAttrs[memberName],
|
|
483
|
-
isSvgMode2,
|
|
484
|
-
newVnode.$flags$);
|
|
436
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
485
437
|
}
|
|
486
438
|
};
|
|
487
439
|
function sortedAttrNames(attrNames) {
|
|
@@ -493,10 +445,13 @@ function sortedAttrNames(attrNames) {
|
|
|
493
445
|
attrNames
|
|
494
446
|
);
|
|
495
447
|
}
|
|
448
|
+
|
|
449
|
+
// src/runtime/vdom/vdom-render.ts
|
|
450
|
+
var scopeId;
|
|
496
451
|
var hostTagName;
|
|
497
452
|
var useNativeShadowDom = false;
|
|
498
453
|
var isSvgMode = false;
|
|
499
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
454
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
500
455
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
501
456
|
let i2 = 0;
|
|
502
457
|
let elm;
|
|
@@ -508,6 +463,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
508
463
|
{
|
|
509
464
|
updateElement(null, newVNode2, isSvgMode);
|
|
510
465
|
}
|
|
466
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
467
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
468
|
+
}
|
|
511
469
|
if (newVNode2.$children$) {
|
|
512
470
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
513
471
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -636,9 +594,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
636
594
|
if (!isInitialRender) {
|
|
637
595
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
638
596
|
}
|
|
639
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
640
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
641
|
-
}
|
|
642
597
|
return true;
|
|
643
598
|
}
|
|
644
599
|
return false;
|
|
@@ -657,18 +612,14 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
657
612
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
658
613
|
} else if (newChildren !== null) {
|
|
659
614
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
660
|
-
} else if (
|
|
661
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
662
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
663
|
-
) {
|
|
615
|
+
} else if (oldChildren !== null) {
|
|
664
616
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
665
617
|
}
|
|
666
618
|
}
|
|
667
619
|
};
|
|
668
620
|
var insertBefore = (parent, newNode, reference) => {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
}
|
|
621
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
622
|
+
return inserted;
|
|
672
623
|
};
|
|
673
624
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
674
625
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -687,21 +638,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
687
638
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
688
639
|
hostRef.$vnode$ = rootVnode;
|
|
689
640
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
690
|
-
|
|
641
|
+
{
|
|
642
|
+
scopeId = hostElm["s-sc"];
|
|
643
|
+
}
|
|
644
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
691
645
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
692
646
|
};
|
|
693
647
|
|
|
694
648
|
// src/runtime/update-component.ts
|
|
695
649
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
696
650
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
697
|
-
|
|
698
|
-
new Promise(
|
|
699
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
700
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
701
|
-
r();
|
|
702
|
-
}
|
|
703
|
-
)
|
|
704
|
-
);
|
|
651
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
705
652
|
}
|
|
706
653
|
};
|
|
707
654
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -728,7 +675,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
728
675
|
let maybePromise;
|
|
729
676
|
if (isInitialLoad) {
|
|
730
677
|
{
|
|
731
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
678
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
732
679
|
}
|
|
733
680
|
}
|
|
734
681
|
endSchedule();
|
|
@@ -802,7 +749,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
802
749
|
addHydratedFlag(elm);
|
|
803
750
|
}
|
|
804
751
|
{
|
|
805
|
-
safeCall(instance, "componentDidLoad"
|
|
752
|
+
safeCall(instance, "componentDidLoad");
|
|
806
753
|
}
|
|
807
754
|
endPostUpdate();
|
|
808
755
|
{
|
|
@@ -826,14 +773,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
826
773
|
}
|
|
827
774
|
};
|
|
828
775
|
var appDidLoad = (who) => {
|
|
776
|
+
{
|
|
777
|
+
addHydratedFlag(doc.documentElement);
|
|
778
|
+
}
|
|
829
779
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
830
780
|
};
|
|
831
|
-
var safeCall = (instance, method, arg
|
|
781
|
+
var safeCall = (instance, method, arg) => {
|
|
832
782
|
if (instance && instance[method]) {
|
|
833
783
|
try {
|
|
834
784
|
return instance[method](arg);
|
|
835
785
|
} catch (e) {
|
|
836
|
-
consoleError(e
|
|
786
|
+
consoleError(e);
|
|
837
787
|
}
|
|
838
788
|
}
|
|
839
789
|
return void 0;
|
|
@@ -897,68 +847,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
897
847
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
898
848
|
members.map(([memberName, [memberFlags]]) => {
|
|
899
849
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
900
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
901
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
902
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
903
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
904
|
-
Object.defineProperty(prototype, memberName, {
|
|
905
|
-
get() {
|
|
906
|
-
{
|
|
907
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
908
|
-
return getValue(this, memberName);
|
|
909
|
-
}
|
|
910
|
-
const ref = getHostRef(this);
|
|
911
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
912
|
-
if (!instance) return;
|
|
913
|
-
return instance[memberName];
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
configurable: true,
|
|
917
|
-
enumerable: true
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
850
|
Object.defineProperty(prototype, memberName, {
|
|
851
|
+
get() {
|
|
852
|
+
return getValue(this, memberName);
|
|
853
|
+
},
|
|
921
854
|
set(newValue) {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
927
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
928
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
929
|
-
}
|
|
930
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
931
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
932
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
933
|
-
return;
|
|
934
|
-
}
|
|
935
|
-
{
|
|
936
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
937
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
938
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
939
|
-
ref.$onReadyPromise$.then(() => {
|
|
940
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
941
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
942
|
-
}
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
return;
|
|
946
|
-
}
|
|
947
|
-
const setterSetVal = () => {
|
|
948
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
949
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
950
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
951
|
-
}
|
|
952
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
953
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
954
|
-
};
|
|
955
|
-
if (ref.$lazyInstance$) {
|
|
956
|
-
setterSetVal();
|
|
957
|
-
} else {
|
|
958
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}
|
|
855
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
856
|
+
},
|
|
857
|
+
configurable: true,
|
|
858
|
+
enumerable: true
|
|
962
859
|
});
|
|
963
860
|
}
|
|
964
861
|
});
|
|
@@ -968,11 +865,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
968
865
|
plt.jmp(() => {
|
|
969
866
|
var _a2;
|
|
970
867
|
const propName = attrNameToPropName.get(attrName);
|
|
971
|
-
if (this.hasOwnProperty(propName)
|
|
868
|
+
if (this.hasOwnProperty(propName)) {
|
|
972
869
|
newValue = this[propName];
|
|
973
870
|
delete this[propName];
|
|
974
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
975
|
-
this[propName] == newValue) {
|
|
871
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
976
872
|
return;
|
|
977
873
|
} else if (propName == null) {
|
|
978
874
|
const hostRef = getHostRef(this);
|
|
@@ -988,11 +884,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
988
884
|
}
|
|
989
885
|
return;
|
|
990
886
|
}
|
|
991
|
-
|
|
992
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
993
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
994
|
-
this[propName] = newValue;
|
|
995
|
-
}
|
|
887
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
996
888
|
});
|
|
997
889
|
};
|
|
998
890
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1017,7 +909,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1017
909
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1018
910
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1019
911
|
if (bundleId) {
|
|
1020
|
-
const CstrImport = loadModule(cmpMeta
|
|
912
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1021
913
|
if (CstrImport && "then" in CstrImport) {
|
|
1022
914
|
const endLoad = uniqueTime();
|
|
1023
915
|
Cstr = await CstrImport;
|
|
@@ -1042,7 +934,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1042
934
|
try {
|
|
1043
935
|
new Cstr(hostRef);
|
|
1044
936
|
} catch (e) {
|
|
1045
|
-
consoleError(e
|
|
937
|
+
consoleError(e);
|
|
1046
938
|
}
|
|
1047
939
|
{
|
|
1048
940
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1077,7 +969,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1077
969
|
schedule();
|
|
1078
970
|
}
|
|
1079
971
|
};
|
|
1080
|
-
var fireConnectedCallback = (instance
|
|
972
|
+
var fireConnectedCallback = (instance) => {
|
|
1081
973
|
};
|
|
1082
974
|
|
|
1083
975
|
// src/runtime/connected-callback.ts
|
|
@@ -1117,7 +1009,7 @@ var connectedCallback = (elm) => {
|
|
|
1117
1009
|
endConnected();
|
|
1118
1010
|
}
|
|
1119
1011
|
};
|
|
1120
|
-
var disconnectInstance = (instance
|
|
1012
|
+
var disconnectInstance = (instance) => {
|
|
1121
1013
|
};
|
|
1122
1014
|
var disconnectedCallback = async (elm) => {
|
|
1123
1015
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1126,12 +1018,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1126
1018
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1127
1019
|
}
|
|
1128
1020
|
}
|
|
1129
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1130
|
-
rootAppliedStyles.delete(elm);
|
|
1131
|
-
}
|
|
1132
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1133
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1134
|
-
}
|
|
1135
1021
|
};
|
|
1136
1022
|
|
|
1137
1023
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1209,17 +1095,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1209
1095
|
}
|
|
1210
1096
|
disconnectedCallback() {
|
|
1211
1097
|
plt.jmp(() => disconnectedCallback(this));
|
|
1212
|
-
plt.raf(() => {
|
|
1213
|
-
var _a3;
|
|
1214
|
-
const hostRef = getHostRef(this);
|
|
1215
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1216
|
-
if (i2 > -1) {
|
|
1217
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1218
|
-
}
|
|
1219
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1220
|
-
delete hostRef.$vnode$.$elm$;
|
|
1221
|
-
}
|
|
1222
|
-
});
|
|
1223
1098
|
}
|
|
1224
1099
|
componentOnReady() {
|
|
1225
1100
|
return getHostRef(this).$onReadyPromise$;
|
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-c8ba1d1d.js';
|
|
2
|
+
export { s as setNonce } from './index-c8ba1d1d.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|