@everymatrix/lottery-ticket-controller 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helper-accordion_5.cjs.entry.js +7283 -7029
- package/dist/cjs/{index-ce57b34d.js → index-e28f68ca.js} +72 -173
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +15 -83
- package/dist/esm/helper-accordion_5.entry.js +7283 -7029
- package/dist/esm/{index-30728886.js → index-bd95d491.js} +72 -173
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-ticket-controller.js +3 -3
- package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
- package/dist/lottery-ticket-controller/p-16bb9142.entry.js +3439 -0
- package/dist/lottery-ticket-controller/p-9e034c46.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lottery-ticket-controller/p-2b9683a5.entry.js +0 -2727
- package/dist/lottery-ticket-controller/p-44ec1b95.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-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/lottery-ticket-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/lottery-ticket-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'lottery-ticket-controller';
|
|
24
|
-
const BUILD = /* lottery-ticket-controller */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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 = /* lottery-ticket-controller */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propNumber: true, 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -177,6 +166,12 @@ var flush = () => {
|
|
|
177
166
|
};
|
|
178
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
179
168
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
+
|
|
170
|
+
// src/utils/constants.ts
|
|
171
|
+
var EMPTY_OBJ = {};
|
|
172
|
+
|
|
173
|
+
// src/utils/helpers.ts
|
|
174
|
+
var isDef = (v) => v != null;
|
|
180
175
|
var isComplexType = (o) => {
|
|
181
176
|
o = typeof o;
|
|
182
177
|
return o === "object" || o === "function";
|
|
@@ -380,7 +375,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
380
375
|
}
|
|
381
376
|
if (!appliedStyles.has(scopeId2)) {
|
|
382
377
|
{
|
|
383
|
-
styleElm =
|
|
378
|
+
styleElm = doc.createElement("style");
|
|
384
379
|
styleElm.innerHTML = style;
|
|
385
380
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
386
381
|
if (nonce != null) {
|
|
@@ -390,10 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
390
385
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
391
386
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
392
387
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
393
|
-
styleContainerNode.insertBefore(
|
|
394
|
-
styleElm,
|
|
395
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
396
|
-
);
|
|
388
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
397
389
|
} else if ("host" in styleContainerNode) {
|
|
398
390
|
if (supportsConstructableStylesheets) {
|
|
399
391
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -411,7 +403,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
411
403
|
styleContainerNode.append(styleElm);
|
|
412
404
|
}
|
|
413
405
|
}
|
|
414
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
406
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
415
407
|
styleContainerNode.insertBefore(styleElm, null);
|
|
416
408
|
}
|
|
417
409
|
}
|
|
@@ -436,25 +428,23 @@ var attachStyles = (hostRef) => {
|
|
|
436
428
|
const scopeId2 = addStyle(
|
|
437
429
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
438
430
|
cmpMeta);
|
|
439
|
-
if (
|
|
431
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
440
432
|
elm["s-sc"] = scopeId2;
|
|
441
433
|
elm.classList.add(scopeId2 + "-h");
|
|
442
434
|
}
|
|
443
435
|
endAttachStyles();
|
|
444
436
|
};
|
|
445
437
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
446
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
438
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
447
439
|
if (oldValue !== newValue) {
|
|
448
440
|
let isProp = isMemberInElement(elm, memberName);
|
|
449
441
|
let ln = memberName.toLowerCase();
|
|
450
442
|
if (memberName === "class") {
|
|
451
443
|
const classList = elm.classList;
|
|
452
444
|
const oldClasses = parseClassList(oldValue);
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
457
|
-
}
|
|
445
|
+
const newClasses = parseClassList(newValue);
|
|
446
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
447
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
458
448
|
} else if (memberName === "style") {
|
|
459
449
|
{
|
|
460
450
|
for (const prop in oldValue) {
|
|
@@ -513,7 +503,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
513
503
|
elm.setAttribute(memberName, n);
|
|
514
504
|
}
|
|
515
505
|
}
|
|
516
|
-
} else
|
|
506
|
+
} else {
|
|
517
507
|
elm[memberName] = newValue;
|
|
518
508
|
}
|
|
519
509
|
} catch (e) {
|
|
@@ -535,44 +525,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
535
525
|
}
|
|
536
526
|
};
|
|
537
527
|
var parseClassListRegex = /\s/;
|
|
538
|
-
var parseClassList = (value) =>
|
|
539
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
540
|
-
value = value.baseVal;
|
|
541
|
-
}
|
|
542
|
-
if (!value || typeof value !== "string") {
|
|
543
|
-
return [];
|
|
544
|
-
}
|
|
545
|
-
return value.split(parseClassListRegex);
|
|
546
|
-
};
|
|
528
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
547
529
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
548
530
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
549
531
|
|
|
550
532
|
// src/runtime/vdom/update-element.ts
|
|
551
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
533
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
552
534
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
553
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
554
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
535
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
536
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
555
537
|
{
|
|
556
538
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
557
539
|
if (!(memberName in newVnodeAttrs)) {
|
|
558
|
-
setAccessor(
|
|
559
|
-
elm,
|
|
560
|
-
memberName,
|
|
561
|
-
oldVnodeAttrs[memberName],
|
|
562
|
-
void 0,
|
|
563
|
-
isSvgMode2,
|
|
564
|
-
newVnode.$flags$);
|
|
540
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
565
541
|
}
|
|
566
542
|
}
|
|
567
543
|
}
|
|
568
544
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
569
|
-
setAccessor(
|
|
570
|
-
elm,
|
|
571
|
-
memberName,
|
|
572
|
-
oldVnodeAttrs[memberName],
|
|
573
|
-
newVnodeAttrs[memberName],
|
|
574
|
-
isSvgMode2,
|
|
575
|
-
newVnode.$flags$);
|
|
545
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
576
546
|
}
|
|
577
547
|
};
|
|
578
548
|
function sortedAttrNames(attrNames) {
|
|
@@ -584,10 +554,13 @@ function sortedAttrNames(attrNames) {
|
|
|
584
554
|
attrNames
|
|
585
555
|
);
|
|
586
556
|
}
|
|
557
|
+
|
|
558
|
+
// src/runtime/vdom/vdom-render.ts
|
|
559
|
+
var scopeId;
|
|
587
560
|
var hostTagName;
|
|
588
561
|
var useNativeShadowDom = false;
|
|
589
562
|
var isSvgMode = false;
|
|
590
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
563
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
591
564
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
592
565
|
let i2 = 0;
|
|
593
566
|
let elm;
|
|
@@ -601,6 +574,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
601
574
|
{
|
|
602
575
|
updateElement(null, newVNode2, isSvgMode);
|
|
603
576
|
}
|
|
577
|
+
const rootNode = elm.getRootNode();
|
|
578
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
579
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
580
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
581
|
+
}
|
|
604
582
|
if (newVNode2.$children$) {
|
|
605
583
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
606
584
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -730,9 +708,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
730
708
|
if (!isInitialRender) {
|
|
731
709
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
732
710
|
}
|
|
733
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
734
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
735
|
-
}
|
|
736
711
|
return true;
|
|
737
712
|
}
|
|
738
713
|
return false;
|
|
@@ -773,9 +748,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
773
748
|
}
|
|
774
749
|
};
|
|
775
750
|
var insertBefore = (parent, newNode, reference) => {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}
|
|
751
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
752
|
+
return inserted;
|
|
779
753
|
};
|
|
780
754
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
781
755
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -800,21 +774,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
800
774
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
801
775
|
hostRef.$vnode$ = rootVnode;
|
|
802
776
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
803
|
-
|
|
777
|
+
{
|
|
778
|
+
scopeId = hostElm["s-sc"];
|
|
779
|
+
}
|
|
780
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
804
781
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
805
782
|
};
|
|
806
783
|
|
|
807
784
|
// src/runtime/update-component.ts
|
|
808
785
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
809
786
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
810
|
-
|
|
811
|
-
new Promise(
|
|
812
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
813
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
814
|
-
r();
|
|
815
|
-
}
|
|
816
|
-
)
|
|
817
|
-
);
|
|
787
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
818
788
|
}
|
|
819
789
|
};
|
|
820
790
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -843,12 +813,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
843
813
|
{
|
|
844
814
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
845
815
|
if (hostRef.$queuedListeners$) {
|
|
846
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
816
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
847
817
|
hostRef.$queuedListeners$ = void 0;
|
|
848
818
|
}
|
|
849
819
|
}
|
|
850
820
|
{
|
|
851
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
821
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
852
822
|
}
|
|
853
823
|
}
|
|
854
824
|
endSchedule();
|
|
@@ -917,7 +887,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
917
887
|
const instance = hostRef.$lazyInstance$ ;
|
|
918
888
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
919
889
|
{
|
|
920
|
-
safeCall(instance, "componentDidRender"
|
|
890
|
+
safeCall(instance, "componentDidRender");
|
|
921
891
|
}
|
|
922
892
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
923
893
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -946,14 +916,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
946
916
|
}
|
|
947
917
|
};
|
|
948
918
|
var appDidLoad = (who) => {
|
|
919
|
+
{
|
|
920
|
+
addHydratedFlag(doc.documentElement);
|
|
921
|
+
}
|
|
949
922
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
950
923
|
};
|
|
951
|
-
var safeCall = (instance, method, arg
|
|
924
|
+
var safeCall = (instance, method, arg) => {
|
|
952
925
|
if (instance && instance[method]) {
|
|
953
926
|
try {
|
|
954
927
|
return instance[method](arg);
|
|
955
928
|
} catch (e) {
|
|
956
|
-
consoleError(e
|
|
929
|
+
consoleError(e);
|
|
957
930
|
}
|
|
958
931
|
}
|
|
959
932
|
return void 0;
|
|
@@ -1012,68 +985,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1012
985
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1013
986
|
members.map(([memberName, [memberFlags]]) => {
|
|
1014
987
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1015
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1016
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1017
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1018
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1019
|
-
Object.defineProperty(prototype, memberName, {
|
|
1020
|
-
get() {
|
|
1021
|
-
{
|
|
1022
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1023
|
-
return getValue(this, memberName);
|
|
1024
|
-
}
|
|
1025
|
-
const ref = getHostRef(this);
|
|
1026
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1027
|
-
if (!instance) return;
|
|
1028
|
-
return instance[memberName];
|
|
1029
|
-
}
|
|
1030
|
-
},
|
|
1031
|
-
configurable: true,
|
|
1032
|
-
enumerable: true
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
988
|
Object.defineProperty(prototype, memberName, {
|
|
989
|
+
get() {
|
|
990
|
+
return getValue(this, memberName);
|
|
991
|
+
},
|
|
1036
992
|
set(newValue) {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1042
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1043
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1044
|
-
}
|
|
1045
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1046
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1047
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1048
|
-
return;
|
|
1049
|
-
}
|
|
1050
|
-
{
|
|
1051
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1052
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1053
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1054
|
-
ref.$onReadyPromise$.then(() => {
|
|
1055
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1056
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1057
|
-
}
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
|
-
const setterSetVal = () => {
|
|
1063
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1064
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1065
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1066
|
-
}
|
|
1067
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1068
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1069
|
-
};
|
|
1070
|
-
if (ref.$lazyInstance$) {
|
|
1071
|
-
setterSetVal();
|
|
1072
|
-
} else {
|
|
1073
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
993
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
994
|
+
},
|
|
995
|
+
configurable: true,
|
|
996
|
+
enumerable: true
|
|
1077
997
|
});
|
|
1078
998
|
}
|
|
1079
999
|
});
|
|
@@ -1083,7 +1003,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1083
1003
|
plt.jmp(() => {
|
|
1084
1004
|
var _a2;
|
|
1085
1005
|
const propName = attrNameToPropName.get(attrName);
|
|
1086
|
-
if (this.hasOwnProperty(propName)
|
|
1006
|
+
if (this.hasOwnProperty(propName)) {
|
|
1087
1007
|
newValue = this[propName];
|
|
1088
1008
|
delete this[propName];
|
|
1089
1009
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1103,11 +1023,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1103
1023
|
}
|
|
1104
1024
|
return;
|
|
1105
1025
|
}
|
|
1106
|
-
|
|
1107
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1108
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1109
|
-
this[propName] = newValue;
|
|
1110
|
-
}
|
|
1026
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1111
1027
|
});
|
|
1112
1028
|
};
|
|
1113
1029
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1136,7 +1052,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1136
1052
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1137
1053
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1138
1054
|
if (bundleId) {
|
|
1139
|
-
const CstrImport = loadModule(cmpMeta
|
|
1055
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1140
1056
|
if (CstrImport && "then" in CstrImport) {
|
|
1141
1057
|
const endLoad = uniqueTime();
|
|
1142
1058
|
Cstr = await CstrImport;
|
|
@@ -1161,7 +1077,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1161
1077
|
try {
|
|
1162
1078
|
new Cstr(hostRef);
|
|
1163
1079
|
} catch (e) {
|
|
1164
|
-
consoleError(e
|
|
1080
|
+
consoleError(e);
|
|
1165
1081
|
}
|
|
1166
1082
|
{
|
|
1167
1083
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1170,7 +1086,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1170
1086
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1171
1087
|
}
|
|
1172
1088
|
endNewInstance();
|
|
1173
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1089
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1174
1090
|
} else {
|
|
1175
1091
|
Cstr = elm.constructor;
|
|
1176
1092
|
const cmpTag = elm.localName;
|
|
@@ -1197,9 +1113,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1197
1113
|
schedule();
|
|
1198
1114
|
}
|
|
1199
1115
|
};
|
|
1200
|
-
var fireConnectedCallback = (instance
|
|
1116
|
+
var fireConnectedCallback = (instance) => {
|
|
1201
1117
|
{
|
|
1202
|
-
safeCall(instance, "connectedCallback"
|
|
1118
|
+
safeCall(instance, "connectedCallback");
|
|
1203
1119
|
}
|
|
1204
1120
|
};
|
|
1205
1121
|
|
|
@@ -1235,15 +1151,15 @@ var connectedCallback = (elm) => {
|
|
|
1235
1151
|
} else {
|
|
1236
1152
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1237
1153
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1238
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1154
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1239
1155
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1240
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1156
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1241
1157
|
}
|
|
1242
1158
|
}
|
|
1243
1159
|
endConnected();
|
|
1244
1160
|
}
|
|
1245
1161
|
};
|
|
1246
|
-
var disconnectInstance = (instance
|
|
1162
|
+
var disconnectInstance = (instance) => {
|
|
1247
1163
|
};
|
|
1248
1164
|
var disconnectedCallback = async (elm) => {
|
|
1249
1165
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1258,12 +1174,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1258
1174
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1259
1175
|
}
|
|
1260
1176
|
}
|
|
1261
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1262
|
-
rootAppliedStyles.delete(elm);
|
|
1263
|
-
}
|
|
1264
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1265
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1266
|
-
}
|
|
1267
1177
|
};
|
|
1268
1178
|
|
|
1269
1179
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1348,17 +1258,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1348
1258
|
}
|
|
1349
1259
|
disconnectedCallback() {
|
|
1350
1260
|
plt.jmp(() => disconnectedCallback(this));
|
|
1351
|
-
plt.raf(() => {
|
|
1352
|
-
var _a3;
|
|
1353
|
-
const hostRef = getHostRef(this);
|
|
1354
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1355
|
-
if (i2 > -1) {
|
|
1356
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1357
|
-
}
|
|
1358
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1359
|
-
delete hostRef.$vnode$.$elm$;
|
|
1360
|
-
}
|
|
1361
|
-
});
|
|
1362
1261
|
}
|
|
1363
1262
|
componentOnReady() {
|
|
1364
1263
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1422,7 +1321,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1422
1321
|
}
|
|
1423
1322
|
}
|
|
1424
1323
|
} catch (e) {
|
|
1425
|
-
consoleError(e
|
|
1324
|
+
consoleError(e);
|
|
1426
1325
|
}
|
|
1427
1326
|
};
|
|
1428
1327
|
var getHostListenerTarget = (elm, flags) => {
|
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-e28f68ca.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -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-e28f68ca.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('lottery-ticket-controller.cjs.js', document.baseURI).href));
|