@everymatrix/lottery-game-page 0.1.25 → 0.1.27

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.
Files changed (55) hide show
  1. package/dist/cjs/helper-accordion.cjs.entry.js +1 -1
  2. package/dist/cjs/helper-filters_2.cjs.entry.js +1 -1
  3. package/dist/cjs/helper-modal.cjs.entry.js +1 -1
  4. package/dist/cjs/helper-pagination.cjs.entry.js +1 -1
  5. package/dist/cjs/helper-tab.cjs.entry.js +1 -1
  6. package/dist/cjs/helper-tabs.cjs.entry.js +1 -1
  7. package/dist/cjs/{index-7b63209d.js → index-cd44e726.js} +30 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/lottery-bullet_2.cjs.entry.js +1 -1
  10. package/dist/cjs/lottery-draw-results-history.cjs.entry.js +1 -1
  11. package/dist/cjs/lottery-game-details.cjs.entry.js +1 -1
  12. package/dist/cjs/lottery-game-page.cjs.entry.js +20 -5
  13. package/dist/cjs/lottery-game-page.cjs.js +1 -1
  14. package/dist/cjs/lottery-ticket-controller.cjs.entry.js +1 -1
  15. package/dist/cjs/lottery-ticket.cjs.entry.js +1 -1
  16. package/dist/{components → collection/components/lottery-game-page}/assets/chrono_desktop.png +0 -0
  17. package/dist/{components → collection/components/lottery-game-page}/assets/chrono_lottery_mobile.png +0 -0
  18. package/dist/collection/components/lottery-game-page/lottery-game-page.js +8 -6
  19. package/dist/components/lottery-game-page.js +20 -5
  20. package/dist/esm/helper-accordion.entry.js +1 -1
  21. package/dist/esm/helper-filters_2.entry.js +1 -1
  22. package/dist/esm/helper-modal.entry.js +1 -1
  23. package/dist/esm/helper-pagination.entry.js +1 -1
  24. package/dist/esm/helper-tab.entry.js +1 -1
  25. package/dist/esm/helper-tabs.entry.js +1 -1
  26. package/dist/esm/{index-0f8edfd2.js → index-d1baacd4.js} +30 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/lottery-bullet_2.entry.js +1 -1
  29. package/dist/esm/lottery-draw-results-history.entry.js +1 -1
  30. package/dist/esm/lottery-game-details.entry.js +1 -1
  31. package/dist/esm/lottery-game-page.entry.js +20 -5
  32. package/dist/esm/lottery-game-page.js +1 -1
  33. package/dist/esm/lottery-ticket-controller.entry.js +1 -1
  34. package/dist/esm/lottery-ticket.entry.js +1 -1
  35. package/dist/lottery-game-page/assets/chrono_desktop.png +0 -0
  36. package/dist/lottery-game-page/assets/chrono_lottery_mobile.png +0 -0
  37. package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
  38. package/dist/lottery-game-page/{p-e816baee.entry.js → p-023325a2.entry.js} +1 -1
  39. package/dist/lottery-game-page/{p-4098d6d4.entry.js → p-04fbc8fd.entry.js} +1 -1
  40. package/dist/lottery-game-page/{p-bbe2e7e8.entry.js → p-256b151c.entry.js} +1 -1
  41. package/dist/lottery-game-page/{p-f1be92a2.entry.js → p-381b5507.entry.js} +1 -1
  42. package/dist/lottery-game-page/{p-800590f3.entry.js → p-3f8b6ad9.entry.js} +1 -1
  43. package/dist/lottery-game-page/{p-87298564.entry.js → p-4274053c.entry.js} +1 -1
  44. package/dist/lottery-game-page/{p-d241f927.entry.js → p-4f81cd37.entry.js} +1 -1
  45. package/dist/lottery-game-page/{p-c0d7da97.entry.js → p-5c389034.entry.js} +1 -1
  46. package/dist/lottery-game-page/{p-90003eb8.entry.js → p-ca8430a0.entry.js} +1 -1
  47. package/dist/lottery-game-page/{p-97048566.entry.js → p-d6f76e8d.entry.js} +1 -1
  48. package/dist/lottery-game-page/p-e765c7d9.js +1 -0
  49. package/dist/lottery-game-page/p-ea251208.entry.js +1 -0
  50. package/dist/lottery-game-page/{p-07f98587.entry.js → p-f6fcc22c.entry.js} +1 -1
  51. package/dist/stencil.config.js +11 -7
  52. package/dist/types/components/lottery-game-page/lottery-game-page.d.ts +1 -0
  53. package/package.json +1 -1
  54. package/dist/lottery-game-page/p-37a88b53.entry.js +0 -1
  55. package/dist/lottery-game-page/p-b4e2988a.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en'];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  /**
8
8
  * @name isMobile
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  /**
8
8
  * @name isMobile
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
8
8
 
@@ -270,6 +270,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
270
270
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
271
271
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
272
272
  }
273
+ else if (memberName === 'style') {
274
+ // update style attribute, css properties and values
275
+ {
276
+ for (const prop in oldValue) {
277
+ if (!newValue || newValue[prop] == null) {
278
+ if (prop.includes('-')) {
279
+ elm.style.removeProperty(prop);
280
+ }
281
+ else {
282
+ elm.style[prop] = '';
283
+ }
284
+ }
285
+ }
286
+ }
287
+ for (const prop in newValue) {
288
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
289
+ if (prop.includes('-')) {
290
+ elm.style.setProperty(prop, newValue[prop]);
291
+ }
292
+ else {
293
+ elm.style[prop] = newValue[prop];
294
+ }
295
+ }
296
+ }
297
+ }
273
298
  else if (memberName === 'ref') {
274
299
  // minifier will clean this up
275
300
  if (newValue) {
@@ -1202,6 +1227,10 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1202
1227
  // Fallback appLoad event
1203
1228
  endBootstrap();
1204
1229
  };
1230
+ const getAssetPath = (path) => {
1231
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
1232
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1233
+ };
1205
1234
  const hostRefs = new WeakMap();
1206
1235
  const getHostRef = (ref) => hostRefs.get(ref);
1207
1236
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1288,6 +1317,7 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1288
1317
 
1289
1318
  exports.bootstrapLazy = bootstrapLazy;
1290
1319
  exports.createEvent = createEvent;
1320
+ exports.getAssetPath = getAssetPath;
1291
1321
  exports.getElement = getElement;
1292
1322
  exports.h = h;
1293
1323
  exports.promiseResolve = promiseResolve;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const lotteryGameDetailsCss = ":host{display:block}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar'];
@@ -105,6 +105,19 @@ const translate = (key, customLang) => {
105
105
  return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
106
106
  };
107
107
 
108
+ /**
109
+ * @name isMobile
110
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
111
+ * @param {String} userAgent window.navigator.userAgent
112
+ * @returns {Boolean} true or false
113
+ */
114
+ const isMobile = (userAgent) => {
115
+ return !!(userAgent.toLowerCase().match(/android/i) ||
116
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
117
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
118
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
119
+ };
120
+
108
121
  const lotteryGamePageCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.GamePage .GridBanner{background-color:#009993;background-repeat:no-repeat;background-position:center;color:#111;padding:0 20px 10px;height:220px;display:flex;flex-direction:column;justify-content:space-between}.GamePage .GridBanner .BannerButtonsWrapper{display:flex;justify-content:space-between;padding-top:16px}.GamePage .GridBanner .BannerButtonsWrapper .BannerBackButton,.GamePage .GridBanner .BannerButtonsWrapper .BannerLobbyButton{background:#fff;border:1px solid #D4D4D4;border-radius:4px;padding:7px 15px;font-size:12px;text-transform:uppercase;width:80px}.GamePage .GridBanner .GridBannerArea{padding-top:30px;display:flex;flex-direction:column;align-items:center}.GamePage .TotalWinnings{color:#000;font-size:18px;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;text-transform:uppercase}.GamePage .TotalWinnings span{font-size:18px;font-weight:700}.GamePage .NextDraw{color:#00958f;font-size:24px;font-weight:600;margin:0 auto;text-align:center;text-transform:uppercase;display:flex;justify-content:center;align-items:center;flex-direction:column}.GamePage .NextDraw .BannerText{font-weight:400;font-size:18px;text-transform:uppercase;padding:0;margin:15px 0 0 0}.GamePage .NextDraw .BannerCountdown{font-size:22px;color:#00958f;display:flex;gap:20px}.GamePage .Tabs{display:flex;justify-content:center;gap:10px}.GamePage .Tabs .TabButton{border-radius:4px;cursor:pointer;padding:8px 0;width:50%;max-width:200px;border:1px solid #00958f;background:#00958f;color:#fff;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.GamePage .Tabs .TabButton.Active{color:#00958f;background:#F1F1F1;border:1px solid #F1F1F1}.LastDrawResultsTitle{color:#009993;padding:25px 0 10px 0;text-align:center;border-radius:4px;text-transform:uppercase;font-size:16px;font-weight:600;margin:0}.NextDrawWrapper{padding:10px 15px;background:#F1F1F1;background:linear-gradient(0deg, #f1f1f1 0%, rgba(253, 187, 45, 0) 100%)}.NextDrawWrapper .BannerText{font-size:16px;font-weight:700;text-align:center}.NextDrawWrapper .BannerCountdown{font-size:22px;display:flex;gap:8px;color:#009993;font-weight:bolder;justify-content:center}.GamePageContent{padding:15px;max-width:1200px;margin:0 auto}.GameDetails{padding-bottom:10px;margin-bottom:20px}.CreateNewTicket{background:#004D4A;height:100px;width:100%;display:flex;margin-top:10px;flex-direction:column;justify-content:center;align-items:center}.CreateNewTicket button{cursor:pointer;display:inline-block;border-radius:50%;width:40px;height:40px;margin:5px;border:1px solid #FFF;background:#FFF;color:#004D4A;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.CreateNewTicket button:hover{background:#F1F1F1}.CreateNewTicket span{display:inline-block;font-size:12px;text-align:center;margin:0 auto;color:#FFF}.OrderSummary{min-width:200px;border-radius:4px;display:flex;flex-direction:column;justify-content:center;margin-top:20px;background:#fff}.OrderSummary .OrderSummaryTitle{font-size:16px;color:#009993;text-transform:uppercase;text-align:center}.OrderSummary .Ticket{display:inline-block;color:#000;font-size:14px;height:50px;border-bottom:solid 1px #D4D4D4;line-height:50px}.OrderSummary .Ticket span{text-align:right}.OrderSummary .Total{display:inline-block;color:#000;font-size:14px;height:50px;line-height:50px}.OrderSummary .Total span{text-align:right}.ButtonWrapper{display:flex;align-items:center;justify-content:center}.ButtonWrapper .Button{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:#009993;border:1px solid #009993;color:#FFF}.ButtonWrapper .Button:hover{background:#00ABA4}.ButtonWrapper .Button.ButtonDisabled{pointer-events:none;background:#ccc;border:1px solid #ccc}.SubmitModalSuccess{text-align:center;font-size:18px;padding:20px}.DeleteTicketModalWrapper{padding:20px;text-align:center}.DeleteTicketModalWrapper .DeleteTicketModalTitle{font-size:16px;color:#00958f;font-weight:400;text-transform:uppercase;margin:20px 0 40px}.DeleteTicketModalWrapper .DeleteTicketModalText{font-size:14px;color:#000;line-height:22px;margin-bottom:40px}.DeleteTicketModalWrapper .DeleteTicketModalButtons{display:flex;gap:10px;justify-content:center}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalConfirm{cursor:pointer;border-radius:4px;padding:8px 25px;width:max-content;margin:5px;color:#000;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalConfirm:hover{background:#FF6536;border:1px solid #FF3D00}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalCancel{cursor:pointer;width:max-content;border-radius:4px;padding:10px 25px;margin:5px;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalCancel:hover{background:#F1F1F1}@media (min-width: 1200px){.GamePageContent .TicketsWrapper{float:left;width:49%}.GamePageContent .GameDetails{float:right;width:49%}.GamePageContent .OrderSummary{float:right;width:49%}}";
109
122
 
110
123
  const LotteryGamePage = class {
@@ -142,6 +155,8 @@ const LotteryGamePage = class {
142
155
  this.isLoggedIn = false;
143
156
  this.loginModalVisible = false;
144
157
  this.limitStylingAppends = false;
158
+ // @TODO fix any type
159
+ this.userAgent = window.navigator.userAgent;
145
160
  this.multiplier = false;
146
161
  this.quickPick = false;
147
162
  this.setClientStyling = () => {
@@ -388,20 +403,20 @@ const LotteryGamePage = class {
388
403
  this.successVisible = true;
389
404
  }
390
405
  render() {
391
- // const backgroundSrc = getAssetPath('./static/chrono_lottery_mobile.png');
392
- // const backgroundDesktopSrc = getAssetPath('./static/chrono_desktop.png');
406
+ const backgroundSrc = index.getAssetPath('./assets/chrono_lottery_mobile.png');
407
+ const backgroundDesktopSrc = index.getAssetPath('./assets/chrono_desktop.png');
393
408
  if (this.hasErrors) {
394
409
  return (index.h("div", { class: "GamePage" }, index.h("div", { class: "Title" }, translate('error', this.language))));
395
410
  }
396
411
  return (
397
412
  /* Game details */
398
- index.h("div", { class: "GamePage", dir: this.language == 'ar' ? 'rtl' : 'ltr', ref: el => this.stylingContainer = el }, index.h("div", { class: "GridBanner" }, index.h("div", { class: "BannerButtonsWrapper" }, index.h("button", { class: "BannerBackButton" }, index.h("span", { class: "BannerBackButtonArrow" }, "\u1438 "), translate('backButton', this.language)), index.h("button", { class: "BannerLobbyButton" }, translate('lobbyButton', this.language))), index.h("div", { class: "Tabs" }, index.h("div", { class: 'TabButton' + (this.tabIndex == 0 ? ' Active' : ''), onClick: () => this.tabIndex = 0 }, translate('buy', this.language)), index.h("div", { class: 'TabButton' + (this.tabIndex == 1 ? ' Active' : ''), onClick: () => this.tabIndex = 1 }, translate('viewLatest', this.language)))), index.h("div", { class: "NextDrawWrapper" }, index.h("div", { class: "TotalWinnings" }, translate('winUpTo', this.language), ": ", index.h("span", null, "$", this.totalWinningsAmount.toLocaleString('en-US', { maximumFractionDigits: 2 }))), index.h("div", { class: "NextDraw" }, index.h("p", { class: "BannerText" }, translate('nextDraw', this.language)), index.h("div", { class: "BannerCountdown" }, index.h("span", { class: "CountdownDays" }, this.daysRemaining, "D"), index.h("span", { class: "CountdownHours" }, this.hoursRemaining, "H"), index.h("span", { class: "CountdownMinutes" }, this.minutesRemaining, "M"), index.h("span", { class: "CountdownSeconds" }, this.secondsRemaining, "S")))), this.tabIndex == 0 &&
413
+ index.h("div", { class: "GamePage", dir: this.language == 'ar' ? 'rtl' : 'ltr', ref: el => this.stylingContainer = el }, index.h("div", { class: "GridBanner", style: { backgroundImage: isMobile(this.userAgent) ? `url(${backgroundSrc})` : `url(${backgroundDesktopSrc})` } }, index.h("div", { class: "BannerButtonsWrapper" }, index.h("button", { class: "BannerBackButton" }, index.h("span", { class: "BannerBackButtonArrow" }, "\u1438 "), translate('backButton', this.language)), index.h("button", { class: "BannerLobbyButton" }, translate('lobbyButton', this.language))), index.h("div", { class: "Tabs" }, index.h("div", { class: 'TabButton' + (this.tabIndex == 0 ? ' Active' : ''), onClick: () => this.tabIndex = 0 }, translate('buy', this.language)), index.h("div", { class: 'TabButton' + (this.tabIndex == 1 ? ' Active' : ''), onClick: () => this.tabIndex = 1 }, translate('viewLatest', this.language)))), index.h("div", { class: "NextDrawWrapper" }, index.h("div", { class: "TotalWinnings" }, translate('winUpTo', this.language), ": ", index.h("span", null, "$", this.totalWinningsAmount.toLocaleString('en-US', { maximumFractionDigits: 2 }))), index.h("div", { class: "NextDraw" }, index.h("p", { class: "BannerText" }, translate('nextDraw', this.language)), index.h("div", { class: "BannerCountdown" }, index.h("span", { class: "CountdownDays" }, this.daysRemaining, "D"), index.h("span", { class: "CountdownHours" }, this.hoursRemaining, "H"), index.h("span", { class: "CountdownMinutes" }, this.minutesRemaining, "M"), index.h("span", { class: "CountdownSeconds" }, this.secondsRemaining, "S")))), this.tabIndex == 0 &&
399
414
  index.h("div", { class: "GamePageContent" }, index.h("div", { class: "GameDetails" }, index.h("lottery-game-details", { "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), index.h("div", { class: "TicketsWrapper" }, this.tickets.map((item) => index.h("lottery-ticket-controller", { endpoint: this.endpoint, "ticket-id": item.ticketId, "game-id": item.gameId, collapsed: false, last: true, language: this.language, "auto-pick": this.autoPick, "reset-button": this.resetButton, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), index.h("div", { class: "CreateNewTicket" }, index.h("button", { onClick: () => this.createNewTicket() }, "+"), index.h("span", null, translate('createTicket', this.language)))), index.h("div", { class: "OrderSummary" }, index.h("h3", { class: "OrderSummaryTitle" }, translate('orderSummaryTitle', this.language)), index.h("div", { class: "Ticket" }, translate('orderSummaryTickets', this.language), ": ", index.h("span", null, this.tickets.length)), index.h("div", { class: "Total" }, translate('orderSummaryTotal', this.language), ": ", index.h("span", null, this.totalAmount, " ", this.currency)), index.h("div", { class: "ButtonWrapper" }, this.isLoggedIn &&
400
415
  index.h("span", { class: "Button", onClick: () => this.submitTickets() }, translate('orderSummarySubmit', this.language)), !this.isLoggedIn &&
401
416
  index.h("div", null, index.h("span", { class: "Button", onClick: () => this.showLoginModal() }, translate('orderSummarySubmit', this.language)), index.h("helper-modal", { "title-modal": "Success", visible: this.loginModalVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("p", { class: "SubmitModalSuccess" }, translate('modalLogin', this.language))))))), this.tabIndex == 1 &&
402
417
  index.h("div", null, index.h("h4", { class: "LastDrawResultsTitle" }, translate('lastDrawResultsTitle', this.language)), index.h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, language: this.language, "draw-id": this.lastDrawId, "draw-mode": true, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }), index.h("lottery-draw-results-history", { endpoint: this.endpoint, "game-id": this.gameId, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), index.h("helper-modal", { "title-modal": "Success", visible: this.successVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("p", { class: "SubmitModalSuccess" }, translate('modalSuccess', this.language))), index.h("helper-modal", { "title-modal": "Delete Ticket", visible: this.deleteVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("div", { class: "DeleteTicketModalWrapper" }, index.h("h3", { class: "DeleteTicketModalTitle" }, translate('deleteTicketModalTitle', this.language)), index.h("p", { class: "DeleteTicketModalText" }, translate('deleteTicketModalText', this.language)), index.h("div", { class: "DeleteTicketModalButtons" }, index.h("button", { class: "DeleteTicketModalCancel", onClick: () => this.modalCloseEvent() }, translate('deleteTicketModalCancel', this.language)), index.h("button", { class: "DeleteTicketModalConfirm", onClick: () => this.confirmDeleteTicketHandler(this.deleteEventData) }, translate('deleteTicketModalConfirm', this.language)))))));
403
418
  }
404
- static get assetsDirs() { return ["static"]; }
419
+ static get assetsDirs() { return ["assets"]; }
405
420
  get element() { return index.getElement(this); }
406
421
  static get watchers() { return {
407
422
  "sessionId": ["handleSessionIdValue"]
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-7b63209d.js');
3
+ const index = require('./index-cd44e726.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b63209d.js');
5
+ const index = require('./index-cd44e726.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -1,6 +1,6 @@
1
- import { Component, h, Prop, State, Listen, Element, Watch /*getAssetPath */ } from '@stencil/core';
1
+ import { Component, h, Prop, State, Listen, Element, Watch, getAssetPath } from '@stencil/core';
2
2
  import { translate } from '../../utils/locale.utils';
3
- // import { isMobile } from "../../utils/utils";
3
+ import { isMobile } from "../../utils/utils";
4
4
  import '@everymatrix/lottery-ticket-controller';
5
5
  import '@everymatrix/helper-modal';
6
6
  import '@everymatrix/lottery-game-details';
@@ -40,6 +40,8 @@ export class LotteryGamePage {
40
40
  this.isLoggedIn = false;
41
41
  this.loginModalVisible = false;
42
42
  this.limitStylingAppends = false;
43
+ // @TODO fix any type
44
+ this.userAgent = window.navigator.userAgent;
43
45
  this.multiplier = false;
44
46
  this.quickPick = false;
45
47
  this.setClientStyling = () => {
@@ -286,8 +288,8 @@ export class LotteryGamePage {
286
288
  this.successVisible = true;
287
289
  }
288
290
  render() {
289
- // const backgroundSrc = getAssetPath('./static/chrono_lottery_mobile.png');
290
- // const backgroundDesktopSrc = getAssetPath('./static/chrono_desktop.png');
291
+ const backgroundSrc = getAssetPath('./assets/chrono_lottery_mobile.png');
292
+ const backgroundDesktopSrc = getAssetPath('./assets/chrono_desktop.png');
291
293
  if (this.hasErrors) {
292
294
  return (h("div", { class: "GamePage" },
293
295
  h("div", { class: "Title" }, translate('error', this.language))));
@@ -295,7 +297,7 @@ export class LotteryGamePage {
295
297
  return (
296
298
  /* Game details */
297
299
  h("div", { class: "GamePage", dir: this.language == 'ar' ? 'rtl' : 'ltr', ref: el => this.stylingContainer = el },
298
- h("div", { class: "GridBanner" },
300
+ h("div", { class: "GridBanner", style: { backgroundImage: isMobile(this.userAgent) ? `url(${backgroundSrc})` : `url(${backgroundDesktopSrc})` } },
299
301
  h("div", { class: "BannerButtonsWrapper" },
300
302
  h("button", { class: "BannerBackButton" },
301
303
  h("span", { class: "BannerBackButtonArrow" }, "\u1438 "),
@@ -379,7 +381,7 @@ export class LotteryGamePage {
379
381
  static get styleUrls() { return {
380
382
  "$": ["lottery-game-page.css"]
381
383
  }; }
382
- static get assetsDirs() { return ["static"]; }
384
+ static get assetsDirs() { return ["assets"]; }
383
385
  static get properties() { return {
384
386
  "endpoint": {
385
387
  "type": "string",
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, getAssetPath, h } from '@stencil/core/internal/client';
2
2
  import { d as defineCustomElement$d } from './helper-accordion2.js';
3
3
  import { d as defineCustomElement$c } from './helper-filters2.js';
4
4
  import { d as defineCustomElement$b } from './helper-modal2.js';
@@ -113,6 +113,19 @@ const translate = (key, customLang) => {
113
113
  return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
114
114
  };
115
115
 
116
+ /**
117
+ * @name isMobile
118
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
119
+ * @param {String} userAgent window.navigator.userAgent
120
+ * @returns {Boolean} true or false
121
+ */
122
+ const isMobile = (userAgent) => {
123
+ return !!(userAgent.toLowerCase().match(/android/i) ||
124
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
125
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
126
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
127
+ };
128
+
116
129
  const lotteryGamePageCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.GamePage .GridBanner{background-color:#009993;background-repeat:no-repeat;background-position:center;color:#111;padding:0 20px 10px;height:220px;display:flex;flex-direction:column;justify-content:space-between}.GamePage .GridBanner .BannerButtonsWrapper{display:flex;justify-content:space-between;padding-top:16px}.GamePage .GridBanner .BannerButtonsWrapper .BannerBackButton,.GamePage .GridBanner .BannerButtonsWrapper .BannerLobbyButton{background:#fff;border:1px solid #D4D4D4;border-radius:4px;padding:7px 15px;font-size:12px;text-transform:uppercase;width:80px}.GamePage .GridBanner .GridBannerArea{padding-top:30px;display:flex;flex-direction:column;align-items:center}.GamePage .TotalWinnings{color:#000;font-size:18px;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;text-transform:uppercase}.GamePage .TotalWinnings span{font-size:18px;font-weight:700}.GamePage .NextDraw{color:#00958f;font-size:24px;font-weight:600;margin:0 auto;text-align:center;text-transform:uppercase;display:flex;justify-content:center;align-items:center;flex-direction:column}.GamePage .NextDraw .BannerText{font-weight:400;font-size:18px;text-transform:uppercase;padding:0;margin:15px 0 0 0}.GamePage .NextDraw .BannerCountdown{font-size:22px;color:#00958f;display:flex;gap:20px}.GamePage .Tabs{display:flex;justify-content:center;gap:10px}.GamePage .Tabs .TabButton{border-radius:4px;cursor:pointer;padding:8px 0;width:50%;max-width:200px;border:1px solid #00958f;background:#00958f;color:#fff;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.GamePage .Tabs .TabButton.Active{color:#00958f;background:#F1F1F1;border:1px solid #F1F1F1}.LastDrawResultsTitle{color:#009993;padding:25px 0 10px 0;text-align:center;border-radius:4px;text-transform:uppercase;font-size:16px;font-weight:600;margin:0}.NextDrawWrapper{padding:10px 15px;background:#F1F1F1;background:linear-gradient(0deg, #f1f1f1 0%, rgba(253, 187, 45, 0) 100%)}.NextDrawWrapper .BannerText{font-size:16px;font-weight:700;text-align:center}.NextDrawWrapper .BannerCountdown{font-size:22px;display:flex;gap:8px;color:#009993;font-weight:bolder;justify-content:center}.GamePageContent{padding:15px;max-width:1200px;margin:0 auto}.GameDetails{padding-bottom:10px;margin-bottom:20px}.CreateNewTicket{background:#004D4A;height:100px;width:100%;display:flex;margin-top:10px;flex-direction:column;justify-content:center;align-items:center}.CreateNewTicket button{cursor:pointer;display:inline-block;border-radius:50%;width:40px;height:40px;margin:5px;border:1px solid #FFF;background:#FFF;color:#004D4A;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.CreateNewTicket button:hover{background:#F1F1F1}.CreateNewTicket span{display:inline-block;font-size:12px;text-align:center;margin:0 auto;color:#FFF}.OrderSummary{min-width:200px;border-radius:4px;display:flex;flex-direction:column;justify-content:center;margin-top:20px;background:#fff}.OrderSummary .OrderSummaryTitle{font-size:16px;color:#009993;text-transform:uppercase;text-align:center}.OrderSummary .Ticket{display:inline-block;color:#000;font-size:14px;height:50px;border-bottom:solid 1px #D4D4D4;line-height:50px}.OrderSummary .Ticket span{text-align:right}.OrderSummary .Total{display:inline-block;color:#000;font-size:14px;height:50px;line-height:50px}.OrderSummary .Total span{text-align:right}.ButtonWrapper{display:flex;align-items:center;justify-content:center}.ButtonWrapper .Button{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:#009993;border:1px solid #009993;color:#FFF}.ButtonWrapper .Button:hover{background:#00ABA4}.ButtonWrapper .Button.ButtonDisabled{pointer-events:none;background:#ccc;border:1px solid #ccc}.SubmitModalSuccess{text-align:center;font-size:18px;padding:20px}.DeleteTicketModalWrapper{padding:20px;text-align:center}.DeleteTicketModalWrapper .DeleteTicketModalTitle{font-size:16px;color:#00958f;font-weight:400;text-transform:uppercase;margin:20px 0 40px}.DeleteTicketModalWrapper .DeleteTicketModalText{font-size:14px;color:#000;line-height:22px;margin-bottom:40px}.DeleteTicketModalWrapper .DeleteTicketModalButtons{display:flex;gap:10px;justify-content:center}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalConfirm{cursor:pointer;border-radius:4px;padding:8px 25px;width:max-content;margin:5px;color:#000;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalConfirm:hover{background:#FF6536;border:1px solid #FF3D00}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalCancel{cursor:pointer;width:max-content;border-radius:4px;padding:10px 25px;margin:5px;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.DeleteTicketModalWrapper .DeleteTicketModalButtons .DeleteTicketModalCancel:hover{background:#F1F1F1}@media (min-width: 1200px){.GamePageContent .TicketsWrapper{float:left;width:49%}.GamePageContent .GameDetails{float:right;width:49%}.GamePageContent .OrderSummary{float:right;width:49%}}";
117
130
 
118
131
  const LotteryGamePage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
@@ -152,6 +165,8 @@ const LotteryGamePage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
152
165
  this.isLoggedIn = false;
153
166
  this.loginModalVisible = false;
154
167
  this.limitStylingAppends = false;
168
+ // @TODO fix any type
169
+ this.userAgent = window.navigator.userAgent;
155
170
  this.multiplier = false;
156
171
  this.quickPick = false;
157
172
  this.setClientStyling = () => {
@@ -398,20 +413,20 @@ const LotteryGamePage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
398
413
  this.successVisible = true;
399
414
  }
400
415
  render() {
401
- // const backgroundSrc = getAssetPath('./static/chrono_lottery_mobile.png');
402
- // const backgroundDesktopSrc = getAssetPath('./static/chrono_desktop.png');
416
+ const backgroundSrc = getAssetPath('./assets/chrono_lottery_mobile.png');
417
+ const backgroundDesktopSrc = getAssetPath('./assets/chrono_desktop.png');
403
418
  if (this.hasErrors) {
404
419
  return (h("div", { class: "GamePage" }, h("div", { class: "Title" }, translate('error', this.language))));
405
420
  }
406
421
  return (
407
422
  /* Game details */
408
- h("div", { class: "GamePage", dir: this.language == 'ar' ? 'rtl' : 'ltr', ref: el => this.stylingContainer = el }, h("div", { class: "GridBanner" }, h("div", { class: "BannerButtonsWrapper" }, h("button", { class: "BannerBackButton" }, h("span", { class: "BannerBackButtonArrow" }, "\u1438 "), translate('backButton', this.language)), h("button", { class: "BannerLobbyButton" }, translate('lobbyButton', this.language))), h("div", { class: "Tabs" }, h("div", { class: 'TabButton' + (this.tabIndex == 0 ? ' Active' : ''), onClick: () => this.tabIndex = 0 }, translate('buy', this.language)), h("div", { class: 'TabButton' + (this.tabIndex == 1 ? ' Active' : ''), onClick: () => this.tabIndex = 1 }, translate('viewLatest', this.language)))), h("div", { class: "NextDrawWrapper" }, h("div", { class: "TotalWinnings" }, translate('winUpTo', this.language), ": ", h("span", null, "$", this.totalWinningsAmount.toLocaleString('en-US', { maximumFractionDigits: 2 }))), h("div", { class: "NextDraw" }, h("p", { class: "BannerText" }, translate('nextDraw', this.language)), h("div", { class: "BannerCountdown" }, h("span", { class: "CountdownDays" }, this.daysRemaining, "D"), h("span", { class: "CountdownHours" }, this.hoursRemaining, "H"), h("span", { class: "CountdownMinutes" }, this.minutesRemaining, "M"), h("span", { class: "CountdownSeconds" }, this.secondsRemaining, "S")))), this.tabIndex == 0 &&
423
+ h("div", { class: "GamePage", dir: this.language == 'ar' ? 'rtl' : 'ltr', ref: el => this.stylingContainer = el }, h("div", { class: "GridBanner", style: { backgroundImage: isMobile(this.userAgent) ? `url(${backgroundSrc})` : `url(${backgroundDesktopSrc})` } }, h("div", { class: "BannerButtonsWrapper" }, h("button", { class: "BannerBackButton" }, h("span", { class: "BannerBackButtonArrow" }, "\u1438 "), translate('backButton', this.language)), h("button", { class: "BannerLobbyButton" }, translate('lobbyButton', this.language))), h("div", { class: "Tabs" }, h("div", { class: 'TabButton' + (this.tabIndex == 0 ? ' Active' : ''), onClick: () => this.tabIndex = 0 }, translate('buy', this.language)), h("div", { class: 'TabButton' + (this.tabIndex == 1 ? ' Active' : ''), onClick: () => this.tabIndex = 1 }, translate('viewLatest', this.language)))), h("div", { class: "NextDrawWrapper" }, h("div", { class: "TotalWinnings" }, translate('winUpTo', this.language), ": ", h("span", null, "$", this.totalWinningsAmount.toLocaleString('en-US', { maximumFractionDigits: 2 }))), h("div", { class: "NextDraw" }, h("p", { class: "BannerText" }, translate('nextDraw', this.language)), h("div", { class: "BannerCountdown" }, h("span", { class: "CountdownDays" }, this.daysRemaining, "D"), h("span", { class: "CountdownHours" }, this.hoursRemaining, "H"), h("span", { class: "CountdownMinutes" }, this.minutesRemaining, "M"), h("span", { class: "CountdownSeconds" }, this.secondsRemaining, "S")))), this.tabIndex == 0 &&
409
424
  h("div", { class: "GamePageContent" }, h("div", { class: "GameDetails" }, h("lottery-game-details", { "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("div", { class: "TicketsWrapper" }, this.tickets.map((item) => h("lottery-ticket-controller", { endpoint: this.endpoint, "ticket-id": item.ticketId, "game-id": item.gameId, collapsed: false, last: true, language: this.language, "auto-pick": this.autoPick, "reset-button": this.resetButton, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("div", { class: "CreateNewTicket" }, h("button", { onClick: () => this.createNewTicket() }, "+"), h("span", null, translate('createTicket', this.language)))), h("div", { class: "OrderSummary" }, h("h3", { class: "OrderSummaryTitle" }, translate('orderSummaryTitle', this.language)), h("div", { class: "Ticket" }, translate('orderSummaryTickets', this.language), ": ", h("span", null, this.tickets.length)), h("div", { class: "Total" }, translate('orderSummaryTotal', this.language), ": ", h("span", null, this.totalAmount, " ", this.currency)), h("div", { class: "ButtonWrapper" }, this.isLoggedIn &&
410
425
  h("span", { class: "Button", onClick: () => this.submitTickets() }, translate('orderSummarySubmit', this.language)), !this.isLoggedIn &&
411
426
  h("div", null, h("span", { class: "Button", onClick: () => this.showLoginModal() }, translate('orderSummarySubmit', this.language)), h("helper-modal", { "title-modal": "Success", visible: this.loginModalVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("p", { class: "SubmitModalSuccess" }, translate('modalLogin', this.language))))))), this.tabIndex == 1 &&
412
427
  h("div", null, h("h4", { class: "LastDrawResultsTitle" }, translate('lastDrawResultsTitle', this.language)), h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, language: this.language, "draw-id": this.lastDrawId, "draw-mode": true, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }), h("lottery-draw-results-history", { endpoint: this.endpoint, "game-id": this.gameId, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("helper-modal", { "title-modal": "Success", visible: this.successVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("p", { class: "SubmitModalSuccess" }, translate('modalSuccess', this.language))), h("helper-modal", { "title-modal": "Delete Ticket", visible: this.deleteVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { class: "DeleteTicketModalWrapper" }, h("h3", { class: "DeleteTicketModalTitle" }, translate('deleteTicketModalTitle', this.language)), h("p", { class: "DeleteTicketModalText" }, translate('deleteTicketModalText', this.language)), h("div", { class: "DeleteTicketModalButtons" }, h("button", { class: "DeleteTicketModalCancel", onClick: () => this.modalCloseEvent() }, translate('deleteTicketModalCancel', this.language)), h("button", { class: "DeleteTicketModalConfirm", onClick: () => this.confirmDeleteTicketHandler(this.deleteEventData) }, translate('deleteTicketModalConfirm', this.language)))))));
413
428
  }
414
- static get assetsDirs() { return ["static"]; }
429
+ static get assetsDirs() { return ["assets"]; }
415
430
  get element() { return this; }
416
431
  static get watchers() { return {
417
432
  "sessionId": ["handleSessionIdValue"]
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-d1baacd4.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h as h$2 } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, c as createEvent, h as h$2 } from './index-d1baacd4.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE$1 = 'en';
4
4
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en'];
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-d1baacd4.js';
2
2
 
3
3
  /**
4
4
  * @name isMobile
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-d1baacd4.js';
2
2
 
3
3
  /**
4
4
  * @name isMobile
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, h } from './index-d1baacd4.js';
2
2
 
3
3
  const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, h, a as getElement } from './index-d1baacd4.js';
2
2
 
3
3
  const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
4
4
 
@@ -248,6 +248,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
248
248
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
249
249
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
250
250
  }
251
+ else if (memberName === 'style') {
252
+ // update style attribute, css properties and values
253
+ {
254
+ for (const prop in oldValue) {
255
+ if (!newValue || newValue[prop] == null) {
256
+ if (prop.includes('-')) {
257
+ elm.style.removeProperty(prop);
258
+ }
259
+ else {
260
+ elm.style[prop] = '';
261
+ }
262
+ }
263
+ }
264
+ }
265
+ for (const prop in newValue) {
266
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
267
+ if (prop.includes('-')) {
268
+ elm.style.setProperty(prop, newValue[prop]);
269
+ }
270
+ else {
271
+ elm.style[prop] = newValue[prop];
272
+ }
273
+ }
274
+ }
275
+ }
251
276
  else if (memberName === 'ref') {
252
277
  // minifier will clean this up
253
278
  if (newValue) {
@@ -1180,6 +1205,10 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1180
1205
  // Fallback appLoad event
1181
1206
  endBootstrap();
1182
1207
  };
1208
+ const getAssetPath = (path) => {
1209
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
1210
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1211
+ };
1183
1212
  const hostRefs = new WeakMap();
1184
1213
  const getHostRef = (ref) => hostRefs.get(ref);
1185
1214
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1264,4 +1293,4 @@ const flush = () => {
1264
1293
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1265
1294
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1266
1295
 
1267
- export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
1296
+ export { getElement as a, bootstrapLazy as b, createEvent as c, getAssetPath as g, h, promiseResolve as p, registerInstance as r };
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0f8edfd2.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d1baacd4.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-d1baacd4.js';
2
2
 
3
3
  const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, h } from './index-d1baacd4.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-0f8edfd2.js';
1
+ import { r as registerInstance, h } from './index-d1baacd4.js';
2
2
 
3
3
  const lotteryGameDetailsCss = ":host{display:block}";
4
4