@everymatrix/casino-tournament-prizes 1.53.0 → 1.53.10
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-tournament-prizes/casino-tournament-prizes.esm.js +1 -1
- package/dist/casino-tournament-prizes/p-28038ff3.js +2 -0
- package/dist/casino-tournament-prizes/p-3d4c0403.entry.js +1 -0
- package/dist/cjs/casino-tournament-prizes.cjs.entry.js +1 -6
- package/dist/cjs/casino-tournament-prizes.cjs.js +2 -2
- package/dist/cjs/{index-af94fbb3.js → index-89c9c795.js} +167 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.js +18 -5
- package/dist/esm/casino-tournament-prizes.entry.js +1 -6
- package/dist/esm/casino-tournament-prizes.js +3 -3
- package/dist/esm/{index-db720582.js → index-9d1a8d42.js} +167 -70
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-tournament-prizes/p-05dcfba0.js +0 -2
- package/dist/casino-tournament-prizes/p-107abf52.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +0 -2
|
@@ -2,13 +2,8 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { translate } from "../../utils/locale.utils";
|
|
3
3
|
export class CasinoTournamentPrizes {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.language = undefined;
|
|
6
5
|
this.useGroup = false;
|
|
7
6
|
this.useEvent = false;
|
|
8
|
-
this.endpoint = undefined;
|
|
9
|
-
this.session = undefined;
|
|
10
|
-
this.rawPrizes = undefined;
|
|
11
|
-
this.tournamentId = undefined;
|
|
12
7
|
this.clientStyling = '';
|
|
13
8
|
this.clientStylingUrl = '';
|
|
14
9
|
this.limitStylingAppends = false;
|
|
@@ -139,6 +134,8 @@ export class CasinoTournamentPrizes {
|
|
|
139
134
|
"tags": [],
|
|
140
135
|
"text": ""
|
|
141
136
|
},
|
|
137
|
+
"getter": false,
|
|
138
|
+
"setter": false,
|
|
142
139
|
"attribute": "language",
|
|
143
140
|
"reflect": false
|
|
144
141
|
},
|
|
@@ -156,6 +153,8 @@ export class CasinoTournamentPrizes {
|
|
|
156
153
|
"tags": [],
|
|
157
154
|
"text": ""
|
|
158
155
|
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
159
158
|
"attribute": "use-group",
|
|
160
159
|
"reflect": false,
|
|
161
160
|
"defaultValue": "false"
|
|
@@ -174,6 +173,8 @@ export class CasinoTournamentPrizes {
|
|
|
174
173
|
"tags": [],
|
|
175
174
|
"text": ""
|
|
176
175
|
},
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
177
178
|
"attribute": "use-event",
|
|
178
179
|
"reflect": false,
|
|
179
180
|
"defaultValue": "false"
|
|
@@ -192,6 +193,8 @@ export class CasinoTournamentPrizes {
|
|
|
192
193
|
"tags": [],
|
|
193
194
|
"text": ""
|
|
194
195
|
},
|
|
196
|
+
"getter": false,
|
|
197
|
+
"setter": false,
|
|
195
198
|
"attribute": "endpoint",
|
|
196
199
|
"reflect": false
|
|
197
200
|
},
|
|
@@ -209,6 +212,8 @@ export class CasinoTournamentPrizes {
|
|
|
209
212
|
"tags": [],
|
|
210
213
|
"text": ""
|
|
211
214
|
},
|
|
215
|
+
"getter": false,
|
|
216
|
+
"setter": false,
|
|
212
217
|
"attribute": "session",
|
|
213
218
|
"reflect": false
|
|
214
219
|
},
|
|
@@ -226,6 +231,8 @@ export class CasinoTournamentPrizes {
|
|
|
226
231
|
"tags": [],
|
|
227
232
|
"text": ""
|
|
228
233
|
},
|
|
234
|
+
"getter": false,
|
|
235
|
+
"setter": false,
|
|
229
236
|
"attribute": "raw-prizes",
|
|
230
237
|
"reflect": false
|
|
231
238
|
},
|
|
@@ -243,6 +250,8 @@ export class CasinoTournamentPrizes {
|
|
|
243
250
|
"tags": [],
|
|
244
251
|
"text": ""
|
|
245
252
|
},
|
|
253
|
+
"getter": false,
|
|
254
|
+
"setter": false,
|
|
246
255
|
"attribute": "tournament-id",
|
|
247
256
|
"reflect": false
|
|
248
257
|
},
|
|
@@ -260,6 +269,8 @@ export class CasinoTournamentPrizes {
|
|
|
260
269
|
"tags": [],
|
|
261
270
|
"text": ""
|
|
262
271
|
},
|
|
272
|
+
"getter": false,
|
|
273
|
+
"setter": false,
|
|
263
274
|
"attribute": "client-styling",
|
|
264
275
|
"reflect": false,
|
|
265
276
|
"defaultValue": "''"
|
|
@@ -278,6 +289,8 @@ export class CasinoTournamentPrizes {
|
|
|
278
289
|
"tags": [],
|
|
279
290
|
"text": ""
|
|
280
291
|
},
|
|
292
|
+
"getter": false,
|
|
293
|
+
"setter": false,
|
|
281
294
|
"attribute": "client-styling-url",
|
|
282
295
|
"reflect": false,
|
|
283
296
|
"defaultValue": "''"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-9d1a8d42.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -65,13 +65,8 @@ const CasinoTournamentPrizesStyle0 = casinoTournamentPrizesCss;
|
|
|
65
65
|
const CasinoTournamentPrizes = class {
|
|
66
66
|
constructor(hostRef) {
|
|
67
67
|
registerInstance(this, hostRef);
|
|
68
|
-
this.language = undefined;
|
|
69
68
|
this.useGroup = false;
|
|
70
69
|
this.useEvent = false;
|
|
71
|
-
this.endpoint = undefined;
|
|
72
|
-
this.session = undefined;
|
|
73
|
-
this.rawPrizes = undefined;
|
|
74
|
-
this.tournamentId = undefined;
|
|
75
70
|
this.clientStyling = '';
|
|
76
71
|
this.clientStylingUrl = '';
|
|
77
72
|
this.limitStylingAppends = false;
|
|
@@ -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-9d1a8d42.js';
|
|
2
|
+
export { s as setNonce } from './index-9d1a8d42.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.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-tournament-prizes';
|
|
2
|
-
const BUILD = /* casino-tournament-prizes */ { 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
2
|
+
const BUILD = /* casino-tournament-prizes */ { 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.1 | 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
|
|
12
18
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
19
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
20
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
+
};
|
|
15
23
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
24
|
const hostRef = {
|
|
17
25
|
$flags$: 0,
|
|
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
32
|
hostElement["s-p"] = [];
|
|
25
33
|
hostElement["s-rc"] = [];
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
36
|
+
return ref;
|
|
28
37
|
};
|
|
29
38
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
39
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
70
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
71
|
/* webpackMode: "lazy" */
|
|
63
72
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
73
|
+
).then(
|
|
74
|
+
(importedModule) => {
|
|
75
|
+
{
|
|
76
|
+
cmpModules.set(bundleId, importedModule);
|
|
77
|
+
}
|
|
78
|
+
return importedModule[exportName];
|
|
79
|
+
},
|
|
80
|
+
(e) => {
|
|
81
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
82
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
83
|
+
);
|
|
70
84
|
};
|
|
71
85
|
|
|
72
86
|
// src/client/client-style.ts
|
|
73
87
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
89
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
90
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
91
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -144,14 +159,6 @@ var flush = () => {
|
|
|
144
159
|
};
|
|
145
160
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
146
161
|
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;
|
|
155
162
|
var isComplexType = (o) => {
|
|
156
163
|
o = typeof o;
|
|
157
164
|
return o === "object" || o === "function";
|
|
@@ -337,7 +344,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
337
344
|
}
|
|
338
345
|
if (!appliedStyles.has(scopeId2)) {
|
|
339
346
|
{
|
|
340
|
-
styleElm = doc.createElement("style");
|
|
347
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
341
348
|
styleElm.innerHTML = style;
|
|
342
349
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
343
350
|
if (nonce != null) {
|
|
@@ -347,7 +354,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
347
354
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
348
355
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
349
356
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
350
|
-
styleContainerNode.insertBefore(
|
|
357
|
+
styleContainerNode.insertBefore(
|
|
358
|
+
styleElm,
|
|
359
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
360
|
+
);
|
|
351
361
|
} else if ("host" in styleContainerNode) {
|
|
352
362
|
if (supportsConstructableStylesheets) {
|
|
353
363
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -397,16 +407,18 @@ var attachStyles = (hostRef) => {
|
|
|
397
407
|
endAttachStyles();
|
|
398
408
|
};
|
|
399
409
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
400
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
410
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
401
411
|
if (oldValue !== newValue) {
|
|
402
412
|
let isProp = isMemberInElement(elm, memberName);
|
|
403
413
|
memberName.toLowerCase();
|
|
404
414
|
if (memberName === "class") {
|
|
405
415
|
const classList = elm.classList;
|
|
406
416
|
const oldClasses = parseClassList(oldValue);
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
417
|
+
let newClasses = parseClassList(newValue);
|
|
418
|
+
{
|
|
419
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
420
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
421
|
+
}
|
|
410
422
|
} else if (memberName === "key") ; else {
|
|
411
423
|
const isComplex = isComplexType(newValue);
|
|
412
424
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -422,7 +434,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
422
434
|
elm.setAttribute(memberName, n);
|
|
423
435
|
}
|
|
424
436
|
}
|
|
425
|
-
} else {
|
|
437
|
+
} else if (elm[memberName] !== newValue) {
|
|
426
438
|
elm[memberName] = newValue;
|
|
427
439
|
}
|
|
428
440
|
} catch (e) {
|
|
@@ -444,22 +456,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
444
456
|
}
|
|
445
457
|
};
|
|
446
458
|
var parseClassListRegex = /\s/;
|
|
447
|
-
var parseClassList = (value) =>
|
|
459
|
+
var parseClassList = (value) => {
|
|
460
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
461
|
+
value = value.baseVal;
|
|
462
|
+
}
|
|
463
|
+
if (!value || typeof value !== "string") {
|
|
464
|
+
return [];
|
|
465
|
+
}
|
|
466
|
+
return value.split(parseClassListRegex);
|
|
467
|
+
};
|
|
448
468
|
|
|
449
469
|
// src/runtime/vdom/update-element.ts
|
|
450
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
470
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
451
471
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
452
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
453
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
472
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
473
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
454
474
|
{
|
|
455
475
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
456
476
|
if (!(memberName in newVnodeAttrs)) {
|
|
457
|
-
setAccessor(
|
|
477
|
+
setAccessor(
|
|
478
|
+
elm,
|
|
479
|
+
memberName,
|
|
480
|
+
oldVnodeAttrs[memberName],
|
|
481
|
+
void 0,
|
|
482
|
+
isSvgMode2,
|
|
483
|
+
newVnode.$flags$);
|
|
458
484
|
}
|
|
459
485
|
}
|
|
460
486
|
}
|
|
461
487
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
462
|
-
setAccessor(
|
|
488
|
+
setAccessor(
|
|
489
|
+
elm,
|
|
490
|
+
memberName,
|
|
491
|
+
oldVnodeAttrs[memberName],
|
|
492
|
+
newVnodeAttrs[memberName],
|
|
493
|
+
isSvgMode2,
|
|
494
|
+
newVnode.$flags$);
|
|
463
495
|
}
|
|
464
496
|
};
|
|
465
497
|
function sortedAttrNames(attrNames) {
|
|
@@ -471,13 +503,10 @@ function sortedAttrNames(attrNames) {
|
|
|
471
503
|
attrNames
|
|
472
504
|
);
|
|
473
505
|
}
|
|
474
|
-
|
|
475
|
-
// src/runtime/vdom/vdom-render.ts
|
|
476
|
-
var scopeId;
|
|
477
506
|
var hostTagName;
|
|
478
507
|
var useNativeShadowDom = false;
|
|
479
508
|
var isSvgMode = false;
|
|
480
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
509
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
481
510
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
482
511
|
let i2 = 0;
|
|
483
512
|
let elm;
|
|
@@ -498,11 +527,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
498
527
|
{
|
|
499
528
|
updateElement(null, newVNode2, isSvgMode);
|
|
500
529
|
}
|
|
501
|
-
const rootNode = elm.getRootNode();
|
|
502
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
503
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
504
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
505
|
-
}
|
|
506
530
|
if (newVNode2.$children$) {
|
|
507
531
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
508
532
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -638,6 +662,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
638
662
|
if (!isInitialRender) {
|
|
639
663
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
640
664
|
}
|
|
665
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
666
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
667
|
+
}
|
|
641
668
|
return true;
|
|
642
669
|
}
|
|
643
670
|
return false;
|
|
@@ -678,8 +705,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
678
705
|
}
|
|
679
706
|
};
|
|
680
707
|
var insertBefore = (parent, newNode, reference) => {
|
|
681
|
-
|
|
682
|
-
|
|
708
|
+
{
|
|
709
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
710
|
+
}
|
|
683
711
|
};
|
|
684
712
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
685
713
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -698,9 +726,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
698
726
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
699
727
|
hostRef.$vnode$ = rootVnode;
|
|
700
728
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
701
|
-
{
|
|
702
|
-
scopeId = hostElm["s-sc"];
|
|
703
|
-
}
|
|
704
729
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
705
730
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
706
731
|
};
|
|
@@ -708,7 +733,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
708
733
|
// src/runtime/update-component.ts
|
|
709
734
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
710
735
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
711
|
-
ancestorComponent["s-p"].push(
|
|
736
|
+
const index = ancestorComponent["s-p"].push(
|
|
737
|
+
new Promise(
|
|
738
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
739
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
740
|
+
r();
|
|
741
|
+
}
|
|
742
|
+
)
|
|
743
|
+
);
|
|
712
744
|
}
|
|
713
745
|
};
|
|
714
746
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -737,12 +769,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
737
769
|
{
|
|
738
770
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
739
771
|
if (hostRef.$queuedListeners$) {
|
|
740
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
772
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
741
773
|
hostRef.$queuedListeners$ = void 0;
|
|
742
774
|
}
|
|
743
775
|
}
|
|
744
776
|
{
|
|
745
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
777
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
746
778
|
}
|
|
747
779
|
}
|
|
748
780
|
endSchedule();
|
|
@@ -811,7 +843,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
811
843
|
const instance = hostRef.$lazyInstance$ ;
|
|
812
844
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
813
845
|
{
|
|
814
|
-
safeCall(instance, "componentDidRender");
|
|
846
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
815
847
|
}
|
|
816
848
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
817
849
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -845,12 +877,12 @@ var appDidLoad = (who) => {
|
|
|
845
877
|
}
|
|
846
878
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
847
879
|
};
|
|
848
|
-
var safeCall = (instance, method, arg) => {
|
|
880
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
849
881
|
if (instance && instance[method]) {
|
|
850
882
|
try {
|
|
851
883
|
return instance[method](arg);
|
|
852
884
|
} catch (e) {
|
|
853
|
-
consoleError(e);
|
|
885
|
+
consoleError(e, elm);
|
|
854
886
|
}
|
|
855
887
|
}
|
|
856
888
|
return void 0;
|
|
@@ -893,15 +925,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
893
925
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
894
926
|
members.map(([memberName, [memberFlags]]) => {
|
|
895
927
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
928
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
929
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
930
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
931
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
932
|
+
Object.defineProperty(prototype, memberName, {
|
|
933
|
+
get() {
|
|
934
|
+
{
|
|
935
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
936
|
+
return getValue(this, memberName);
|
|
937
|
+
}
|
|
938
|
+
const ref = getHostRef(this);
|
|
939
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
940
|
+
if (!instance) return;
|
|
941
|
+
return instance[memberName];
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
configurable: true,
|
|
945
|
+
enumerable: true
|
|
946
|
+
});
|
|
947
|
+
}
|
|
896
948
|
Object.defineProperty(prototype, memberName, {
|
|
897
|
-
get() {
|
|
898
|
-
return getValue(this, memberName);
|
|
899
|
-
},
|
|
900
949
|
set(newValue) {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
950
|
+
const ref = getHostRef(this);
|
|
951
|
+
if (origSetter) {
|
|
952
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
953
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
954
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
955
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
956
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
957
|
+
}
|
|
958
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
959
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
960
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
{
|
|
964
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
965
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
966
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
967
|
+
ref.$onReadyPromise$.then(() => {
|
|
968
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
969
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
const setterSetVal = () => {
|
|
976
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
977
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
978
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
979
|
+
}
|
|
980
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
981
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
982
|
+
};
|
|
983
|
+
if (ref.$lazyInstance$) {
|
|
984
|
+
setterSetVal();
|
|
985
|
+
} else {
|
|
986
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
905
990
|
});
|
|
906
991
|
}
|
|
907
992
|
});
|
|
@@ -911,7 +996,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
911
996
|
plt.jmp(() => {
|
|
912
997
|
var _a2;
|
|
913
998
|
const propName = attrNameToPropName.get(attrName);
|
|
914
|
-
if (this.hasOwnProperty(propName)) {
|
|
999
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
915
1000
|
newValue = this[propName];
|
|
916
1001
|
delete this[propName];
|
|
917
1002
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -931,7 +1016,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
931
1016
|
}
|
|
932
1017
|
return;
|
|
933
1018
|
}
|
|
934
|
-
|
|
1019
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1020
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1021
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1022
|
+
this[propName] = newValue;
|
|
1023
|
+
}
|
|
935
1024
|
});
|
|
936
1025
|
};
|
|
937
1026
|
Cstr.observedAttributes = Array.from(
|
|
@@ -954,9 +1043,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
954
1043
|
let Cstr;
|
|
955
1044
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
956
1045
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1046
|
+
{
|
|
1047
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
960
1048
|
if (CstrImport && "then" in CstrImport) {
|
|
961
1049
|
const endLoad = uniqueTime();
|
|
962
1050
|
Cstr = await CstrImport;
|
|
@@ -978,16 +1066,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
978
1066
|
try {
|
|
979
1067
|
new Cstr(hostRef);
|
|
980
1068
|
} catch (e) {
|
|
981
|
-
consoleError(e);
|
|
1069
|
+
consoleError(e, elm);
|
|
982
1070
|
}
|
|
983
1071
|
{
|
|
984
1072
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
985
1073
|
}
|
|
986
1074
|
endNewInstance();
|
|
987
|
-
} else {
|
|
988
|
-
Cstr = elm.constructor;
|
|
989
|
-
const cmpTag = elm.localName;
|
|
990
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
991
1075
|
}
|
|
992
1076
|
if (Cstr && Cstr.style) {
|
|
993
1077
|
let style;
|
|
@@ -1010,7 +1094,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1010
1094
|
schedule();
|
|
1011
1095
|
}
|
|
1012
1096
|
};
|
|
1013
|
-
var fireConnectedCallback = (instance) => {
|
|
1097
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1014
1098
|
};
|
|
1015
1099
|
|
|
1016
1100
|
// src/runtime/connected-callback.ts
|
|
@@ -1051,7 +1135,7 @@ var connectedCallback = (elm) => {
|
|
|
1051
1135
|
endConnected();
|
|
1052
1136
|
}
|
|
1053
1137
|
};
|
|
1054
|
-
var disconnectInstance = (instance) => {
|
|
1138
|
+
var disconnectInstance = (instance, elm) => {
|
|
1055
1139
|
};
|
|
1056
1140
|
var disconnectedCallback = async (elm) => {
|
|
1057
1141
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1066,6 +1150,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1066
1150
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1067
1151
|
}
|
|
1068
1152
|
}
|
|
1153
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1154
|
+
rootAppliedStyles.delete(elm);
|
|
1155
|
+
}
|
|
1156
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1157
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1158
|
+
}
|
|
1069
1159
|
};
|
|
1070
1160
|
|
|
1071
1161
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1143,6 +1233,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1143
1233
|
}
|
|
1144
1234
|
disconnectedCallback() {
|
|
1145
1235
|
plt.jmp(() => disconnectedCallback(this));
|
|
1236
|
+
plt.raf(() => {
|
|
1237
|
+
var _a3;
|
|
1238
|
+
const hostRef = getHostRef(this);
|
|
1239
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1240
|
+
delete hostRef.$vnode$.$elm$;
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1146
1243
|
}
|
|
1147
1244
|
componentOnReady() {
|
|
1148
1245
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1206,7 +1303,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1206
1303
|
}
|
|
1207
1304
|
}
|
|
1208
1305
|
} catch (e) {
|
|
1209
|
-
consoleError(e);
|
|
1306
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1210
1307
|
}
|
|
1211
1308
|
};
|
|
1212
1309
|
var getHostListenerTarget = (elm, flags) => {
|
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-9d1a8d42.js';
|
|
2
|
+
export { s as setNonce } from './index-9d1a8d42.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,d=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.l?$(v):a.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},v=()=>{w(d),w(m),(p=d.length>0)&&a.raf(v)},$=e=>f().then(e),b=y(m,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!S(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,R=new WeakMap,T=e=>"sc-"+e.$,L=(e,t,n,l,o,s)=>{if(n!==l){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else{const i=S(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},N=/\s/,U=e=>e?e.split(N):[],W=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||g,s=t.u||g;for(const e of F(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of F(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=u.createTextNode(l.i);else{if(q||(q="svg"===l.m),o=l.v=u.createElementNS(q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),q&&"foreignObject"===l.m&&(q=!1),W(null,l,q),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);"svg"===l.m?q=!1:"foreignObject"===o.tagName&&(q=!0)}return o["s-hn"]=C,o},G=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].v=r,I(i,r,t)))},V=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),B=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(W(e,t,q="svg"===r||"foreignObject"!==r&&q),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(_(h,m,o))B(h,m,o),h=t[++i],m=l[++c];else if(_(p,y,o))B(p,y,o),p=t[--f],y=l[--d];else if(_(h,y,o))B(h,y,o),I(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(_(p,m,o))B(p,m,o),I(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=z(t&&t[c],n,u):(B(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=z(t&&t[c],n,c),m=l[++c]),s&&I(h.v.parentNode,s,h.v)}i>f?G(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&V(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),G(l,null,t,s,0,s.length-1)):!n&&null!==o&&V(o,0,o.length-1),q&&"svg"===r&&(q=!1)):e.i!==i&&(l.data=i)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},K=(e,t)=>{if(e.l|=16,!(4&e.l))return J(e,e.j),b((()=>Q(e,t)));e.l|=512},Q=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>le(n,e,t))),e.O=void 0),l=le(n,"componentWillLoad")),X(l,(()=>Z(e,n,t)))},X=(e,t)=>Y(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Y=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=T(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=R.get(e=e.head||e);if(r||R.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=a.C)?n:j(u);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ee(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ee=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||A(null,null),r=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,B(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.j;le(e.t,"componentDidRender"),64&e.l||(e.l|=64,oe(t),e.P(t),n||ne()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>K(e,!1))),e.l&=-517},ne=()=>{oe(u.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-tournament-prizes"}});return e.dispatchEvent(t),t})(c)))},le=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},oe=e=>e.classList.add("hydrated"),se=(e,t,l)=>{var o,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(o=t.A)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.D.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.A[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&i)&&K(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.H)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},re=(e,l={})=>{var f;const p=[],d=l.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),v=u.createElement("style"),$=[];let b,g=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const i={l:l[0],$:l[1],A:l[2],R:l[3]};4&i.l&&(S=!0),i.A=l[2],i.R=l[3];const c=i.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,D:new Map};l.T=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,i),1&i.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ie(this,e,i.R)),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.k,i=()=>{};if(1&t.l)ie(e,t,l.R),(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.L){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.L;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.N}" was not found`);l.isProxied||(se(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=T(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>K(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);e.U&&(e.U.map((e=>e())),e.U=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};i.L=e[0],d.includes(c)||m.get(c)||(p.push(c),m.define(c,se(u,i,1)))}))})),p.length>0&&(S&&(v.textContent+=i),v.textContent+=p.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=a.C)?f:j(u);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(ne,30)))},ie=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ue(e,n),r=ce(t,o),i=ae(n);a.ael(s,l,r,i),(t.U=t.U||[]).push((()=>a.rel(s,l,r,i)))}))},ce=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){o(e)}},ue=(e,t)=>8&t?c:e,ae=e=>({passive:!!(1&e),capture:!!(2&e)}),fe=e=>a.C=e;export{re as b,H as g,P as h,f as p,l as r,fe as s}
|