@everymatrix/lottery-game-details 1.55.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-58f248b6.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-b2fc78ab.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE$1 = 'en';
4
4
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'hr'];
@@ -177,28 +177,74 @@ const getTranslations = (data) => {
177
177
  });
178
178
  };
179
179
 
180
+ /**
181
+ * @name setClientStyling
182
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
183
+ * @param {HTMLElement} stylingContainer The reference element of the widget
184
+ * @param {string} clientStyling The style content
185
+ */
186
+ function setClientStyling(stylingContainer, clientStyling) {
187
+ if (stylingContainer) {
188
+ const sheet = document.createElement('style');
189
+ sheet.innerHTML = clientStyling;
190
+ stylingContainer.appendChild(sheet);
191
+ }
192
+ }
193
+
194
+ /**
195
+ * @name setClientStylingURL
196
+ * @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
197
+ * @param {HTMLElement} stylingContainer The reference element of the widget
198
+ * @param {string} clientStylingUrl The URL of the style content
199
+ */
200
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
201
+ const url = new URL(clientStylingUrl);
202
+
203
+ fetch(url.href)
204
+ .then((res) => res.text())
205
+ .then((data) => {
206
+ const cssFile = document.createElement('style');
207
+ cssFile.innerHTML = data;
208
+ if (stylingContainer) {
209
+ stylingContainer.appendChild(cssFile);
210
+ }
211
+ })
212
+ .catch((err) => {
213
+ console.error('There was an error while trying to load client styling from URL', err);
214
+ });
215
+ }
216
+
217
+ /**
218
+ * @name setStreamLibrary
219
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
220
+ * @param {HTMLElement} stylingContainer The highest element of the widget
221
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
222
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
223
+ */
224
+ function setStreamStyling(stylingContainer, domain, subscription) {
225
+ if (window.emMessageBus) {
226
+ const sheet = document.createElement('style');
227
+
228
+ window.emMessageBus.subscribe(domain, (data) => {
229
+ sheet.innerHTML = data;
230
+ if (stylingContainer) {
231
+ stylingContainer.appendChild(sheet);
232
+ }
233
+ });
234
+ }
235
+ }
236
+
180
237
  const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:var(--emw--button-text-color, #000);font-weight:normal}";
181
238
  const HelperTabStyle0 = helperTabCss;
182
239
 
183
240
  const HelperTab = class {
184
241
  constructor(hostRef) {
185
242
  registerInstance(this, hostRef);
186
- this.setClientStyling = () => {
187
- let sheet = document.createElement('style');
188
- sheet.innerHTML = this.clientStyling;
189
- this.stylingContainer.prepend(sheet);
190
- };
191
- this.setClientStylingURL = () => {
192
- let cssFile = document.createElement('style');
193
- setTimeout(() => {
194
- cssFile.innerHTML = this.clientStylingUrlContent;
195
- this.stylingContainer.prepend(cssFile);
196
- }, 1);
197
- };
198
243
  this.selectedIndex = 0;
199
244
  this.cmsEndpoint = undefined;
245
+ this.mbSource = undefined;
200
246
  this.clientStyling = '';
201
- this.clientStylingUrlContent = '';
247
+ this.clientStylingUrl = '';
202
248
  this.lowNumber = undefined;
203
249
  this.highNumber = undefined;
204
250
  this.minimumAllowed = undefined;
@@ -206,24 +252,39 @@ const HelperTab = class {
206
252
  this.language = 'en';
207
253
  this.translationUrl = undefined;
208
254
  this.tabContent = '';
209
- this.limitStylingAppends = false;
255
+ }
256
+ handleClientStylingChange(newValue, oldValue) {
257
+ if (newValue != oldValue) {
258
+ setClientStyling(this.stylingContainer, this.clientStyling);
259
+ }
260
+ }
261
+ handleClientStylingChangeURL(newValue, oldValue) {
262
+ if (newValue != oldValue) {
263
+ if (this.clientStylingUrl)
264
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
265
+ }
266
+ }
267
+ componentDidLoad() {
268
+ if (this.stylingContainer) {
269
+ if (window.emMessageBus != undefined) {
270
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
271
+ }
272
+ else {
273
+ if (this.clientStyling)
274
+ setClientStyling(this.stylingContainer, this.clientStyling);
275
+ if (this.clientStylingUrl)
276
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
277
+ }
278
+ }
279
+ }
280
+ disconnectedCallback() {
281
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
210
282
  }
211
283
  componentWillLoad() {
212
284
  if (this.translationUrl) {
213
285
  getTranslations(JSON.parse(this.translationUrl));
214
286
  }
215
287
  }
216
- componentDidRender() {
217
- // start custom styling area
218
- if (!this.limitStylingAppends && this.stylingContainer) {
219
- if (this.clientStyling)
220
- this.setClientStyling();
221
- if (this.clientStylingUrlContent)
222
- this.setClientStylingURL();
223
- this.limitStylingAppends = true;
224
- }
225
- // end custom styling area
226
- }
227
288
  getHowToPlay() {
228
289
  if (this.lowNumber && this.highNumber && this.maxinumAllowed && this.minimumAllowed) {
229
290
  return translateWithParams('howToPlay', {
@@ -237,15 +298,19 @@ const HelperTab = class {
237
298
  return '';
238
299
  }
239
300
  render() {
240
- this.tabContent = h("div", { key: 'fc177f5bed7e46d51e953094b8cce0afa5f46a45', class: "TabContent", ref: el => this.stylingContainer = el }, this.getHowToPlay());
301
+ this.tabContent = h("div", { key: '92877a17361066f68fce6299cb8f65901f6abc60', class: "TabContent", ref: el => this.stylingContainer = el }, this.getHowToPlay());
241
302
  if (this.selectedIndex + 1 == 2) {
242
- this.tabContent = h("div", { key: '8de7f218079aedb48d3172a84139feaefbfd8a3e', class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", { key: 'dc8131b1dae16dfd9ac39919ce1f53664a7438df' }, h("li", { key: '5c5e4a9213b5c645d5969b4ea7502b5ddfbcfd7e' }, translate('register', this.language)), h("li", { key: 'c72cd7fe80fd665a4567808e90352e2c82622a0e' }, translate('butTickets', this.language)), h("li", { key: 'b5340c61022856214cd6ff0a56013f2e3851ac10' }, translate('reviewPurchase', this.language))));
303
+ this.tabContent = h("div", { key: '9876b9250371034ef40dab0f5fc3fe1a5631a370', class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", { key: 'ef2097eb54aeb640f06871277d8cafd2f4455109' }, h("li", { key: 'e9a0237e1fdead445abcd9240174276ffef81a67' }, translate('register', this.language)), h("li", { key: '2bdfaffdc9f1a7ae021913cb0ba346132140dcfd' }, translate('butTickets', this.language)), h("li", { key: 'bff38eaeabeaece83dc8ed1697e5b052802753f6' }, translate('reviewPurchase', this.language))));
243
304
  }
244
305
  else if (this.selectedIndex + 1 == 3) {
245
- this.tabContent = h("div", { key: 'f7e86830283d2dea60cdc96ca1ee7f0589658a3c', class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", { key: 'c8d950bfd1cfc933260cbbf0f3d9ab7de7a564e1' }, h("li", { key: '754ddb1278ab4004a6f0fc68dc8bda0750c04a19' }, translate('odds', this.language)), h("li", { key: '78e60f1e02bfd2e04b6f9535b74f3a16892a9c49' }, translate('winGame', this.language)), h("li", { key: '04a097cf10b0b9b6c16feafd46107e8a3874aa07' }, translate('claimPrize', this.language))));
306
+ this.tabContent = h("div", { key: '49a7fb3435fb50b54572ec38d1e632e2eacf56fb', class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", { key: '7f642625f35a1ed1eae7655144c0b8b1bfe25f55' }, h("li", { key: '037a5913be57dd1e2dcde5a061e9c64e70365e8d' }, translate('odds', this.language)), h("li", { key: '8775a1b2e8eda285e2c248b8d7235f06ac593fc6' }, translate('winGame', this.language)), h("li", { key: '5297fc5e757c29a1349049f1fe294e926255d518' }, translate('claimPrize', this.language))));
246
307
  }
247
308
  return (this.tabContent);
248
309
  }
310
+ static get watchers() { return {
311
+ "clientStyling": ["handleClientStylingChange"],
312
+ "clientStylingUrl": ["handleClientStylingChangeURL"]
313
+ }; }
249
314
  };
250
315
  HelperTab.style = HelperTabStyle0;
251
316
 
@@ -255,18 +320,6 @@ const HelperTabsStyle0 = helperTabsCss;
255
320
  const HelperTabs = class {
256
321
  constructor(hostRef) {
257
322
  registerInstance(this, hostRef);
258
- this.setClientStyling = () => {
259
- let sheet = document.createElement('style');
260
- sheet.innerHTML = this.clientStyling;
261
- this.stylingContainer.prepend(sheet);
262
- };
263
- this.setClientStylingURL = () => {
264
- let cssFile = document.createElement('style');
265
- setTimeout(() => {
266
- cssFile.innerHTML = this.clientStylingUrlContent;
267
- this.stylingContainer.prepend(cssFile);
268
- }, 1);
269
- };
270
323
  this.disabled = false;
271
324
  this.label = undefined;
272
325
  this.selected = false;
@@ -274,33 +327,53 @@ const HelperTabs = class {
274
327
  this.selectedIndex = 0;
275
328
  this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
276
329
  this.clientStyling = '';
330
+ this.mbSource = undefined;
277
331
  this.clientStylingurl = '';
278
- this.clientStylingUrlContent = '';
332
+ this.clientStylingUrl = '';
279
333
  this.lowNumber = undefined;
280
334
  this.highNumber = undefined;
281
335
  this.minimumAllowed = undefined;
282
336
  this.maxinumAllowed = undefined;
283
337
  this.language = 'en';
284
338
  this.translationUrl = undefined;
285
- this.limitStylingAppends = false;
286
339
  }
287
340
  connectedCallback() {
288
341
  }
289
- componentDidRender() {
290
- // start custom styling area
291
- if (!this.limitStylingAppends && this.stylingContainer) {
292
- this.setClientStyling();
293
- if (this.clientStylingUrlContent) {
294
- this.setClientStylingURL();
342
+ handleClientStylingChange(newValue, oldValue) {
343
+ if (newValue != oldValue) {
344
+ setClientStyling(this.stylingContainer, this.clientStyling);
345
+ }
346
+ }
347
+ handleClientStylingChangeURL(newValue, oldValue) {
348
+ if (newValue != oldValue) {
349
+ if (this.clientStylingUrl)
350
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
351
+ }
352
+ }
353
+ componentDidLoad() {
354
+ if (this.stylingContainer) {
355
+ if (window.emMessageBus != undefined) {
356
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
357
+ }
358
+ else {
359
+ if (this.clientStyling)
360
+ setClientStyling(this.stylingContainer, this.clientStyling);
361
+ if (this.clientStylingUrl)
362
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
295
363
  }
296
- this.limitStylingAppends = true;
297
364
  }
298
- // end custom styling area
365
+ }
366
+ disconnectedCallback() {
367
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
299
368
  }
300
369
  render() {
301
- return (h("div", { key: '4c75878234d57bf5e9a82ee926252bce3ba90b0f', ref: el => this.stylingContainer = el }, h("div", { key: '95faa7cc214b9dd96a1daacf36f1d637a8624e90', class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", { key: '787ecacb0c26b0712b9ebef99ff7be68d1eb4231' }, h("helper-tab", { key: 'df43a2347875f49446d2b85e63c257e527a6b3ab', "low-number": this.lowNumber, "high-number": this.highNumber, "minimum-allowed": this.minimumAllowed, "maxinum-allowed": this.maxinumAllowed, selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, language: this.language, "translation-url": this.translationUrl, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
370
+ return (h("div", { key: '173c4774748482dc56fcffb4bac4e1666fa9170f', ref: el => this.stylingContainer = el }, h("div", { key: '680b65218e4b00f134b354f593c0c20fb5882dca', class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", { key: '67aa26c92fb416c5d0934988fb071481f805685b' }, h("helper-tab", { key: '63c8dfc253d4fc12b0310a2585a44b90807e1a9f', "low-number": this.lowNumber, "high-number": this.highNumber, "minimum-allowed": this.minimumAllowed, "maxinum-allowed": this.maxinumAllowed, selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, language: this.language, "translation-url": this.translationUrl, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrl, "mb-source": this.mbSource }))));
302
371
  }
303
372
  get host() { return getElement(this); }
373
+ static get watchers() { return {
374
+ "clientStyling": ["handleClientStylingChange"],
375
+ "clientStylingUrl": ["handleClientStylingChangeURL"]
376
+ }; }
304
377
  };
305
378
  HelperTabs.style = HelperTabsStyle0;
306
379
 
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'lottery-game-details';
2
- const BUILD = /* lottery-game-details */ { 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: 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: true, propMutable: true, 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: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* lottery-game-details */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, 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: true, propMutable: true, 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: false, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
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) => {
@@ -343,31 +343,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
343
343
  if (nonce != null) {
344
344
  styleElm.setAttribute("nonce", nonce);
345
345
  }
346
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
347
- if (styleContainerNode.nodeName === "HEAD") {
348
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
349
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
350
- styleContainerNode.insertBefore(styleElm, referenceNode2);
351
- } else if ("host" in styleContainerNode) {
352
- if (supportsConstructableStylesheets) {
353
- const stylesheet = new CSSStyleSheet();
354
- stylesheet.replaceSync(style);
355
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
356
- } else {
357
- const existingStyleContainer = styleContainerNode.querySelector("style");
358
- if (existingStyleContainer) {
359
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
360
- } else {
361
- styleContainerNode.prepend(styleElm);
362
- }
363
- }
364
- } else {
365
- styleContainerNode.append(styleElm);
366
- }
367
- }
368
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
369
- styleContainerNode.insertBefore(styleElm, null);
370
- }
346
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
371
347
  }
372
348
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
373
349
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -390,7 +366,7 @@ var attachStyles = (hostRef) => {
390
366
  const scopeId2 = addStyle(
391
367
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
392
368
  cmpMeta);
393
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
369
+ if (flags & 10 /* needsScopedEncapsulation */) {
394
370
  elm["s-sc"] = scopeId2;
395
371
  elm.classList.add(scopeId2 + "-h");
396
372
  }
@@ -438,11 +414,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
438
414
  if (memberName === "list") {
439
415
  isProp = false;
440
416
  } else if (oldValue == null || elm[memberName] != n) {
441
- if (typeof elm.__lookupSetter__(memberName) === "function") {
442
- elm[memberName] = n;
443
- } else {
444
- elm.setAttribute(memberName, n);
445
- }
417
+ elm[memberName] = n;
446
418
  }
447
419
  } else {
448
420
  elm[memberName] = newValue;
@@ -515,9 +487,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
515
487
  {
516
488
  updateElement(null, newVNode2, isSvgMode);
517
489
  }
518
- const rootNode = elm.getRootNode();
519
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
520
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
490
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
521
491
  elm.classList.add(elm["s-si"] = scopeId);
522
492
  }
523
493
  if (newVNode2.$children$) {
@@ -672,10 +642,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
672
642
  elm.textContent = "";
673
643
  }
674
644
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
675
- } else if (
676
- // don't do this on initial render as it can cause non-hydrated content to be removed
677
- !isInitialRender && BUILD.updatable && oldChildren !== null
678
- ) {
645
+ } else if (oldChildren !== null) {
679
646
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
680
647
  }
681
648
  } else if (oldVNode.$text$ !== text) {
@@ -828,6 +795,9 @@ var postUpdateComponent = (hostRef) => {
828
795
  {
829
796
  addHydratedFlag(elm);
830
797
  }
798
+ {
799
+ safeCall(instance, "componentDidLoad");
800
+ }
831
801
  endPostUpdate();
832
802
  {
833
803
  hostRef.$onReadyResolve$(elm);
@@ -879,6 +849,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
879
849
  `Couldn't find host element for "${cmpMeta.$tagName$}" 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).`
880
850
  );
881
851
  }
852
+ const elm = hostRef.$hostElement$ ;
882
853
  const oldVal = hostRef.$instanceValues$.get(propName);
883
854
  const flags = hostRef.$flags$;
884
855
  const instance = hostRef.$lazyInstance$ ;
@@ -888,6 +859,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
888
859
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
889
860
  hostRef.$instanceValues$.set(propName, newVal);
890
861
  if (instance) {
862
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
863
+ const watchMethods = cmpMeta.$watchers$[propName];
864
+ if (watchMethods) {
865
+ watchMethods.map((watchMethodName) => {
866
+ try {
867
+ instance[watchMethodName](newVal, oldVal, propName);
868
+ } catch (e) {
869
+ consoleError(e, elm);
870
+ }
871
+ });
872
+ }
873
+ }
891
874
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
892
875
  scheduleUpdate(hostRef, false);
893
876
  }
@@ -899,7 +882,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
899
882
  var proxyComponent = (Cstr, cmpMeta, flags) => {
900
883
  var _a, _b;
901
884
  const prototype = Cstr.prototype;
902
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
885
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
886
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
887
+ cmpMeta.$watchers$ = Cstr.watchers;
888
+ }
903
889
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
904
890
  members.map(([memberName, [memberFlags]]) => {
905
891
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -924,8 +910,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
924
910
  if (this.hasOwnProperty(propName)) {
925
911
  newValue = this[propName];
926
912
  delete this[propName];
927
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
928
- this[propName] == newValue) {
913
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
929
914
  return;
930
915
  } else if (propName == null) {
931
916
  const hostRef = getHostRef(this);
@@ -982,6 +967,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
982
967
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
983
968
  }
984
969
  if (!Cstr.isProxied) {
970
+ {
971
+ cmpMeta.$watchers$ = Cstr.watchers;
972
+ }
985
973
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
986
974
  Cstr.isProxied = true;
987
975
  }
@@ -997,6 +985,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
997
985
  {
998
986
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
999
987
  }
988
+ {
989
+ hostRef.$flags$ |= 128 /* isWatchReady */;
990
+ }
1000
991
  endNewInstance();
1001
992
  fireConnectedCallback(hostRef.$lazyInstance$);
1002
993
  } else {
@@ -1071,12 +1062,17 @@ var connectedCallback = (elm) => {
1071
1062
  }
1072
1063
  };
1073
1064
  var disconnectInstance = (instance) => {
1065
+ {
1066
+ safeCall(instance, "disconnectedCallback");
1067
+ }
1074
1068
  };
1075
1069
  var disconnectedCallback = async (elm) => {
1076
1070
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1077
1071
  const hostRef = getHostRef(elm);
1078
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1079
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1072
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1073
+ disconnectInstance(hostRef.$lazyInstance$);
1074
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1075
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1080
1076
  }
1081
1077
  }
1082
1078
  };
@@ -1099,6 +1095,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1099
1095
  let hasSlotRelocation = false;
1100
1096
  lazyBundles.map((lazyBundle) => {
1101
1097
  lazyBundle[1].map((compactMeta) => {
1098
+ var _a2;
1102
1099
  const cmpMeta = {
1103
1100
  $flags$: compactMeta[0],
1104
1101
  $tagName$: compactMeta[1],
@@ -1114,6 +1111,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1114
1111
  {
1115
1112
  cmpMeta.$attrsToReflect$ = [];
1116
1113
  }
1114
+ {
1115
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1116
+ }
1117
1117
  const tagName = cmpMeta.$tagName$;
1118
1118
  const HostElement = class extends HTMLElement {
1119
1119
  // StencilLazyHost
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-58f248b6.js';
2
- export { s as setNonce } from './index-58f248b6.js';
1
+ import { b as bootstrapLazy } from './index-b2fc78ab.js';
2
+ export { s as setNonce } from './index-b2fc78ab.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["helper-accordion_4",[[1,"lottery-game-details",{"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["helper-accordion_4",[[1,"lottery-game-details",{"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-58f248b6.js';
2
- export { s as setNonce } from './index-58f248b6.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b2fc78ab.js';
2
+ export { s as setNonce } from './index-b2fc78ab.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["helper-accordion_4",[[1,"lottery-game-details",{"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
19
+ return bootstrapLazy([["helper-accordion_4",[[1,"lottery-game-details",{"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
20
20
  });
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-eef0a9e5.js";export{s as setNonce}from"./p-eef0a9e5.js";import{g as t}from"./p-e1255160.js";(()=>{const l=import.meta.url,t={};return""!==l&&(t.resourcesUrl=new URL(".",l).href),e(t)})().then((async e=>(await t(),l([["p-06c7e531",[[1,"lottery-game-details",{clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],limitStylingAppends:[32]}],[1,"helper-tabs",{disabled:[516],label:[513],selected:[516],cmsEndpoint:[513,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16],clientStyling:[513,"client-styling"],clientStylingurl:[513,"client-stylingurl"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],limitStylingAppends:[32]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],showContent:[32],limitStylingAppends:[32]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],tabContent:[32],limitStylingAppends:[32]}]]]],e))));
1
+ import{p as l,b as e}from"./p-34234672.js";export{s as setNonce}from"./p-34234672.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["p-6cdd4410",[[1,"lottery-game-details",{clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],limitStylingAppends:[32]}],[1,"helper-tabs",{disabled:[516],label:[513],selected:[516],cmsEndpoint:[513,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16],clientStyling:[513,"client-styling"],mbSource:[1,"mb-source"],clientStylingurl:[513,"client-stylingurl"],clientStylingUrl:[513,"client-styling-url"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],showContent:[32],limitStylingAppends:[32]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],tabContent:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],l))));
@@ -0,0 +1,2 @@
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)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={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)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,p=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?v(w):f.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(p),b(y),(m=p.length>0)&&f.raf(w)},v=e=>h().then(e),g=$(y,!0),S={},k=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:()=>C,map:()=>E,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),C=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 C(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},L=(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&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(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 a=T(e,null);return a.u=t,i.length>0&&(a.h=i),a.m=o,a},T=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),A={},D=e=>n(e).$hostElement$,F=(e,t,n)=>{const l=D(e);return{emit:e=>N(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},N=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},U=new WeakMap,W=e=>"sc-"+e.v,H=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=G(n),s=G(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},q=/\s/,G=e=>e?e.split(q):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of B(Object.keys(o)))e in s||H(l,e,o[e],void 0,n,t.l);for(const e of B(Object.keys(s)))H(l,e,o[e],s[e],n,t.l)};function B(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,J=!1,K=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.p),z(null,l,J),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=K(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},Q=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=K(null,n,o),r&&(l[o].$=r,te(i,r,t)))},X=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;ee(t),e&&e.remove()}}},Y=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),Z=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.p||I)&&z(e,t,J),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,a=0,u=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(Y(h,p,o))Z(h,p,o),h=t[++i],p=l[++c];else if(Y(d,y,o))Z(d,y,o),d=t[--f],y=l[--m];else if(Y(h,y,o))Z(h,y,o),te(e,h.$,d.$.nextSibling),h=t[++i],y=l[--m];else if(Y(d,p,o))Z(d,p,o),te(e,d.$,h.$),d=t[--f],p=l[++c];else{for(a=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].m&&t[u].m===p.m){a=u;break}a>=0?(r=t[a],r.p!==p.p?s=K(t&&t[c],n,a):(Z(r,p,o),t[a]=void 0,s=r.$),p=l[++c]):(s=K(t&&t[c],n,c),p=l[++c]),s&&te(h.$.parentNode,s,h.$)}i>f?Q(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&X(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),Q(l,null,t,s,0,s.length-1)):null!==o&&X(o,0,o.length-1)):e.i!==r&&(l.data=r)},ee=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ee)},te=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ne=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},le=(e,t)=>{if(e.l|=16,!(4&e.l))return ne(e,e.k),g((()=>oe(e,t)));e.l|=512},oe=(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&&(l=fe(n,"componentWillLoad")),se(l,(()=>ie(e,n,t)))},se=(e,t)=>re(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),re=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ie=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.j,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=W(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=U.get(e=e.head||e);if(r||U.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:j(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),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&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ce(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ae(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ce=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.j,s=e.C||T(null,null),r=(e=>e&&e.p===A)(t)?t:L(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),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.p=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],I=!!(1&o.l),Z(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ae=e=>{const t=e.$hostElement$,n=e.t,l=e.k;fe(n,"componentDidRender"),64&e.l||(e.l|=64,he(t),fe(n,"componentDidLoad"),e.P(t),l||ue()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>le(e,!1))),e.l&=-517},ue=()=>{he(u.documentElement),v((()=>N(a,"appload",{detail:{namespace:"lottery-game-details"}})))},fe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},he=e=>e.classList.add("hydrated"),de=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.L||e.watchers){e.watchers&&!t.L&&(t.L=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" 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 i=r.$hostElement$,c=r.T.get(t),a=r.l,u=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),u)){if(o.L&&128&a){const e=o.L[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&a)&&le(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.L)?void 0:r[e];null==i||i.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!=(r=t.L)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},me=e=>{fe(e,"connectedCallback")},pe=e=>{fe(e,"disconnectedCallback")},ye=(e,l={})=>{var o;const h=[],m=l.exclude||[],p=a.customElements,y=u.head,$=y.querySelector("meta[charset]"),b=u.createElement("style"),w=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],R:l[2],A:l[3]};4&c.l&&(S=!0),c.R=l[2],c.M=[],c.L=null!=(o=l[4])?o:{};const a=c.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,j:n,T:new Map};l.D=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.j,o=()=>{};if(1&t.l)(null==t?void 0:t.t)?me(t.t):(null==t?void 0:t.D)&&t.D.then((()=>me(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ne(t,t.k=n);break}}l.R&&Object.entries(l.R).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.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
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.v}#${t.N}" was not found`);l.isProxied||(n.L=l.watchers,de(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),me(t.t)}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=W(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>le(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?pe(e.t):(null==e?void 0:e.D)&&e.D.then((()=>pe(e.t)))}})()))}componentOnReady(){return n(this).D}};c.F=e[0],m.includes(a)||p.get(a)||(h.push(a),p.define(a,de(u,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:j(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}g=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ue,30)))},$e=e=>f.O=e;export{ye as b,F as c,D as g,L as h,h as p,l as r,$e as s}