@everymatrix/casino-engagement-suite-luckywheel-list 1.54.6 → 1.54.9

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 (24) hide show
  1. package/dist/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.esm.js +1 -1
  2. package/dist/casino-engagement-suite-luckywheel-list/index.esm.js +1 -1
  3. package/dist/casino-engagement-suite-luckywheel-list/p-04fd1f98.js +1 -0
  4. package/dist/casino-engagement-suite-luckywheel-list/p-4e4f1b1d.js +2 -0
  5. package/dist/casino-engagement-suite-luckywheel-list/{p-06b52e8a.entry.js → p-c7cb7a2c.entry.js} +1 -1
  6. package/dist/cjs/{casino-engagement-suite-luckywheel-list-7950e3a2.js → casino-engagement-suite-luckywheel-list-7272e52a.js} +23 -69
  7. package/dist/cjs/casino-engagement-suite-luckywheel-list.cjs.js +3 -3
  8. package/dist/cjs/casino-engagement-suite-luckywheel-list_2.cjs.entry.js +2 -2
  9. package/dist/cjs/{index-24ab74aa.js → index-3b367a16.js} +11 -5
  10. package/dist/cjs/index.cjs.js +2 -2
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.js +21 -105
  14. package/dist/esm/{casino-engagement-suite-luckywheel-list-56360247.js → casino-engagement-suite-luckywheel-list-851e5853.js} +23 -69
  15. package/dist/esm/casino-engagement-suite-luckywheel-list.js +4 -4
  16. package/dist/esm/casino-engagement-suite-luckywheel-list_2.entry.js +2 -2
  17. package/dist/esm/{index-0beffa82.js → index-368a7709.js} +11 -5
  18. package/dist/esm/index.js +2 -2
  19. package/dist/esm/loader.js +3 -3
  20. package/dist/types/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.d.ts +2 -12
  21. package/dist/types/components.d.ts +2 -18
  22. package/package.json +1 -1
  23. package/dist/casino-engagement-suite-luckywheel-list/p-337bb4b1.js +0 -1
  24. package/dist/casino-engagement-suite-luckywheel-list/p-5d77f597.js +0 -2
@@ -24,7 +24,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
24
24
  /**
25
25
  * List of lucky wheels
26
26
  */
27
- this.luckywheels = [];
27
+ this.luckyWheels = [];
28
28
  /**
29
29
  * Translations via URL
30
30
  */
@@ -74,9 +74,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
74
74
  this.handleTabChange = (e) => {
75
75
  this.activeTab = +(e.target.getAttribute('data-index'));
76
76
  if (this.activeTab === 2) {
77
- if (!this.historyLoaded) {
78
- this.sendHistoryRequest();
79
- }
77
+ this.sendHistoryRequest();
80
78
  }
81
79
  };
82
80
  this.toggleLuckyWheelHistory = (ev) => {
@@ -97,6 +95,11 @@ export class CasinoEngagementSuiteLuckyWheelList {
97
95
  this.activeTab = 1;
98
96
  this.openedHistoryIds = [];
99
97
  }
98
+ if (type === 'LuckywheelHistoryResponse') {
99
+ this.openedHistoryIds = [];
100
+ this.luckywheelHistory = e.data.data || [];
101
+ this.historyLoading = false;
102
+ }
100
103
  }
101
104
  luckywheelsPropHandler(value) {
102
105
  if (!this.interval && value.length) {
@@ -107,51 +110,11 @@ export class CasinoEngagementSuiteLuckyWheelList {
107
110
  clearInterval(this.interval);
108
111
  }
109
112
  }
110
- componentWillLoad() {
111
- const promises = [];
112
- this.luckywheels = [];
113
- if (this.endpoint) {
114
- const consentsPromise = this.getLuckyWheels();
115
- promises.push(consentsPromise);
116
- }
113
+ async componentWillLoad() {
114
+ this.luckywheelsPropHandler(this.luckyWheels);
117
115
  if (this.translationUrl) {
118
- const translationPromise = getTranslations(this.translationUrl);
119
- promises.push(translationPromise);
120
- }
121
- return Promise.all(promises);
122
- }
123
- getLuckyWheels() {
124
- let url = new URL(this.endpoint + `/v1/wof/lotteries`);
125
- let reqHeaders = new Headers();
126
- url.searchParams.append('language', this.language);
127
- if (this.session) {
128
- reqHeaders.append('X-SessionId', this.session);
116
+ await getTranslations(this.translationUrl);
129
117
  }
130
- let requestOptions = {
131
- method: 'GET',
132
- headers: reqHeaders,
133
- };
134
- this.isLoading = true;
135
- fetch(url.href, requestOptions).then((res) => res.json()).then((res) => {
136
- this.luckywheels = res.items;
137
- }).catch((err) => {
138
- throw new Error(err);
139
- }).finally(() => {
140
- this.isLoading = false;
141
- });
142
- }
143
- getLuckyWheelsHistory(luckywheelId) {
144
- let url = new URL(this.endpoint + `/v1/wof/outcome/${luckywheelId}`);
145
- let reqHeaders = new Headers();
146
- url.searchParams.append('language', this.language);
147
- if (this.session) {
148
- reqHeaders.append('X-SessionId', this.session);
149
- }
150
- let requestOptions = {
151
- method: 'GET',
152
- headers: reqHeaders,
153
- };
154
- return fetch(url.href, requestOptions).then((res) => res.json());
155
118
  }
156
119
  componentDidRender() {
157
120
  if (!this.limitStylingAppends && this.host) {
@@ -172,7 +135,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
172
135
  }
173
136
  updateTimers() {
174
137
  const now = new Date().getTime();
175
- this.timers = this.luckywheels.reduce((acc, luckywheel) => {
138
+ this.timers = this.luckyWheels.reduce((acc, luckywheel) => {
176
139
  var _a;
177
140
  const expirationDate = new Date((_a = luckywheel.current) === null || _a === void 0 ? void 0 : _a.endTime).getTime();
178
141
  const diff = expirationDate - now;
@@ -195,23 +158,14 @@ export class CasinoEngagementSuiteLuckyWheelList {
195
158
  }, {});
196
159
  }
197
160
  removeLuckyWheel(id) {
198
- this.luckywheels = this.luckywheels.filter((luckywheel) => luckywheel.program.id !== id);
161
+ this.luckyWheels = this.luckyWheels.filter((luckywheel) => luckywheel.program.id !== id);
199
162
  window.postMessage({ type: 'LuckyWheelHasExpired', id });
200
163
  }
201
- async sendHistoryRequest() {
164
+ sendHistoryRequest() {
202
165
  this.historyLoading = true;
203
- if (!this.luckywheels.length) {
204
- return;
205
- }
206
- const promises = [];
207
- this.luckywheels.forEach(async (luckywheel) => {
208
- promises.push(this.getLuckyWheelsHistory(luckywheel.program.id).then(res => {
209
- this.luckywheelHistory[luckywheel.program.id] = res.items;
210
- }));
166
+ window.postMessage({
167
+ type: 'LuckywheelHistoryRequest'
211
168
  });
212
- await Promise.all(promises);
213
- this.historyLoading = false;
214
- this.historyLoaded = true;
215
169
  }
216
170
  getLuckyWheelClasses(luckyWheel) {
217
171
  return {
@@ -240,8 +194,8 @@ export class CasinoEngagementSuiteLuckyWheelList {
240
194
  if (this.isLoading) {
241
195
  return h("general-animation-loading", null);
242
196
  }
243
- if (this.luckywheels.length) {
244
- return h("div", { class: "LuckyWheelsListWrapper" }, h("div", { class: "LuckyWheelsList" }, this.luckywheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
197
+ if (this.luckyWheels.length) {
198
+ return h("div", { class: "LuckyWheelsListWrapper" }, h("div", { class: "LuckyWheelsList" }, this.luckyWheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
245
199
  }
246
200
  else {
247
201
  return h("div", { class: "LuckyWheelsListEmpty" }, h("h2", null, translate('noluckywheels', this.language)), h("p", null, translate('tryOtherGames', this.language)));
@@ -261,7 +215,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
261
215
  getHistoryTabTemplate() {
262
216
  return h("div", { class: "HistoryWrapper" }, h("div", { class: "HistoryCols" }, h("div", { class: "HistoryColName Rewards" }, translate('rewards', this.language)), h("div", { class: "HistoryColName Issued" }, translate('issued', this.language)), h("div", { class: "HistoryColName Time" }, translate('time', this.language))), this.historyLoading
263
217
  ? getHistoryLoaderTemplate(this.language)
264
- : getLuckyWheelsHistoryTemplate(this.luckywheels, this.luckywheelHistory, this.openedHistoryIds, this.toggleLuckyWheelHistory, this.language));
218
+ : getLuckyWheelsHistoryTemplate(this.luckyWheels, this.luckywheelHistory, this.openedHistoryIds, this.toggleLuckyWheelHistory, this.language));
265
219
  }
266
220
  getTabsContentTemplate() {
267
221
  return this.activeTab === 1
@@ -269,7 +223,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
269
223
  : this.getHistoryTabTemplate();
270
224
  }
271
225
  render() {
272
- return h("div", { key: 'bec9d35e1b9362a5098ab53c9fddb620b407b17e', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
226
+ return h("div", { key: '6eec32518bc71966373704f59e9ad312fc5e3052', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
273
227
  }
274
228
  static get is() { return "casino-engagement-suite-luckywheel-list"; }
275
229
  static get encapsulation() { return "shadow"; }
@@ -365,7 +319,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
365
319
  "reflect": false,
366
320
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
367
321
  },
368
- "luckywheels": {
322
+ "luckyWheels": {
369
323
  "type": "unknown",
370
324
  "mutable": true,
371
325
  "complexType": {
@@ -389,44 +343,6 @@ export class CasinoEngagementSuiteLuckyWheelList {
389
343
  "setter": false,
390
344
  "defaultValue": "[] as Array<LuckyWheel>"
391
345
  },
392
- "endpoint": {
393
- "type": "string",
394
- "mutable": false,
395
- "complexType": {
396
- "original": "string",
397
- "resolved": "string",
398
- "references": {}
399
- },
400
- "required": true,
401
- "optional": false,
402
- "docs": {
403
- "tags": [],
404
- "text": "The NWA endpoint"
405
- },
406
- "getter": false,
407
- "setter": false,
408
- "attribute": "endpoint",
409
- "reflect": false
410
- },
411
- "session": {
412
- "type": "string",
413
- "mutable": false,
414
- "complexType": {
415
- "original": "string",
416
- "resolved": "string",
417
- "references": {}
418
- },
419
- "required": false,
420
- "optional": true,
421
- "docs": {
422
- "tags": [],
423
- "text": "The NWA session for the logged-in user"
424
- },
425
- "getter": false,
426
- "setter": false,
427
- "attribute": "session",
428
- "reflect": false
429
- },
430
346
  "translationUrl": {
431
347
  "type": "string",
432
348
  "mutable": false,
@@ -483,7 +399,7 @@ export class CasinoEngagementSuiteLuckyWheelList {
483
399
  static get elementRef() { return "host"; }
484
400
  static get watchers() {
485
401
  return [{
486
- "propName": "luckywheels",
402
+ "propName": "luckyWheels",
487
403
  "methodName": "luckywheelsPropHandler"
488
404
  }];
489
405
  }
@@ -1,4 +1,4 @@
1
- import { h as h$1, r as registerInstance, c as createEvent, g as getElement } from './index-0beffa82.js';
1
+ import { h as h$1, r as registerInstance, c as createEvent, g as getElement } from './index-368a7709.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['en'];
@@ -212,10 +212,10 @@ function tt(t, e, n, s, i, l, u = null, c = [-1]) {
212
212
  };
213
213
  u && u(r.root);
214
214
  let _ = !1;
215
- if (r.ctx = n(t, e.props || {}, (d, L, ...j) => {
215
+ if (r.ctx = n ? n(t, e.props || {}, (d, L, ...j) => {
216
216
  const O = j.length ? j[0] : L;
217
217
  return r.ctx && i(r.ctx[d], r.ctx[d] = O) && (!r.skip_bound && r.bound[d] && r.bound[d](O), _ && Z(t, d)), L;
218
- }), r.update(), _ = !0, y(r.before_update), r.fragment = s(r.ctx), e.target) {
218
+ }) : [], r.update(), _ = !0, y(r.before_update), r.fragment = s ? s(r.ctx) : !1, e.target) {
219
219
  if (e.hydrate) {
220
220
  const d = J(e.target);
221
221
  r.fragment && r.fragment.l(d), d.forEach(E);
@@ -2809,7 +2809,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
2809
2809
  /**
2810
2810
  * List of lucky wheels
2811
2811
  */
2812
- this.luckywheels = [];
2812
+ this.luckyWheels = [];
2813
2813
  /**
2814
2814
  * Translations via URL
2815
2815
  */
@@ -2859,9 +2859,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
2859
2859
  this.handleTabChange = (e) => {
2860
2860
  this.activeTab = +(e.target.getAttribute('data-index'));
2861
2861
  if (this.activeTab === 2) {
2862
- if (!this.historyLoaded) {
2863
- this.sendHistoryRequest();
2864
- }
2862
+ this.sendHistoryRequest();
2865
2863
  }
2866
2864
  };
2867
2865
  this.toggleLuckyWheelHistory = (ev) => {
@@ -2882,6 +2880,11 @@ const CasinoEngagementSuiteLuckyWheelList = class {
2882
2880
  this.activeTab = 1;
2883
2881
  this.openedHistoryIds = [];
2884
2882
  }
2883
+ if (type === 'LuckywheelHistoryResponse') {
2884
+ this.openedHistoryIds = [];
2885
+ this.luckywheelHistory = e.data.data || [];
2886
+ this.historyLoading = false;
2887
+ }
2885
2888
  }
2886
2889
  luckywheelsPropHandler(value) {
2887
2890
  if (!this.interval && value.length) {
@@ -2892,51 +2895,11 @@ const CasinoEngagementSuiteLuckyWheelList = class {
2892
2895
  clearInterval(this.interval);
2893
2896
  }
2894
2897
  }
2895
- componentWillLoad() {
2896
- const promises = [];
2897
- this.luckywheels = [];
2898
- if (this.endpoint) {
2899
- const consentsPromise = this.getLuckyWheels();
2900
- promises.push(consentsPromise);
2901
- }
2898
+ async componentWillLoad() {
2899
+ this.luckywheelsPropHandler(this.luckyWheels);
2902
2900
  if (this.translationUrl) {
2903
- const translationPromise = getTranslations(this.translationUrl);
2904
- promises.push(translationPromise);
2905
- }
2906
- return Promise.all(promises);
2907
- }
2908
- getLuckyWheels() {
2909
- let url = new URL(this.endpoint + `/v1/wof/lotteries`);
2910
- let reqHeaders = new Headers();
2911
- url.searchParams.append('language', this.language);
2912
- if (this.session) {
2913
- reqHeaders.append('X-SessionId', this.session);
2914
- }
2915
- let requestOptions = {
2916
- method: 'GET',
2917
- headers: reqHeaders,
2918
- };
2919
- this.isLoading = true;
2920
- fetch(url.href, requestOptions).then((res) => res.json()).then((res) => {
2921
- this.luckywheels = res.items;
2922
- }).catch((err) => {
2923
- throw new Error(err);
2924
- }).finally(() => {
2925
- this.isLoading = false;
2926
- });
2927
- }
2928
- getLuckyWheelsHistory(luckywheelId) {
2929
- let url = new URL(this.endpoint + `/v1/wof/outcome/${luckywheelId}`);
2930
- let reqHeaders = new Headers();
2931
- url.searchParams.append('language', this.language);
2932
- if (this.session) {
2933
- reqHeaders.append('X-SessionId', this.session);
2901
+ await getTranslations(this.translationUrl);
2934
2902
  }
2935
- let requestOptions = {
2936
- method: 'GET',
2937
- headers: reqHeaders,
2938
- };
2939
- return fetch(url.href, requestOptions).then((res) => res.json());
2940
2903
  }
2941
2904
  componentDidRender() {
2942
2905
  if (!this.limitStylingAppends && this.host) {
@@ -2957,7 +2920,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
2957
2920
  }
2958
2921
  updateTimers() {
2959
2922
  const now = new Date().getTime();
2960
- this.timers = this.luckywheels.reduce((acc, luckywheel) => {
2923
+ this.timers = this.luckyWheels.reduce((acc, luckywheel) => {
2961
2924
  var _a;
2962
2925
  const expirationDate = new Date((_a = luckywheel.current) === null || _a === void 0 ? void 0 : _a.endTime).getTime();
2963
2926
  const diff = expirationDate - now;
@@ -2980,23 +2943,14 @@ const CasinoEngagementSuiteLuckyWheelList = class {
2980
2943
  }, {});
2981
2944
  }
2982
2945
  removeLuckyWheel(id) {
2983
- this.luckywheels = this.luckywheels.filter((luckywheel) => luckywheel.program.id !== id);
2946
+ this.luckyWheels = this.luckyWheels.filter((luckywheel) => luckywheel.program.id !== id);
2984
2947
  window.postMessage({ type: 'LuckyWheelHasExpired', id });
2985
2948
  }
2986
- async sendHistoryRequest() {
2949
+ sendHistoryRequest() {
2987
2950
  this.historyLoading = true;
2988
- if (!this.luckywheels.length) {
2989
- return;
2990
- }
2991
- const promises = [];
2992
- this.luckywheels.forEach(async (luckywheel) => {
2993
- promises.push(this.getLuckyWheelsHistory(luckywheel.program.id).then(res => {
2994
- this.luckywheelHistory[luckywheel.program.id] = res.items;
2995
- }));
2951
+ window.postMessage({
2952
+ type: 'LuckywheelHistoryRequest'
2996
2953
  });
2997
- await Promise.all(promises);
2998
- this.historyLoading = false;
2999
- this.historyLoaded = true;
3000
2954
  }
3001
2955
  getLuckyWheelClasses(luckyWheel) {
3002
2956
  return {
@@ -3025,8 +2979,8 @@ const CasinoEngagementSuiteLuckyWheelList = class {
3025
2979
  if (this.isLoading) {
3026
2980
  return h$1("general-animation-loading", null);
3027
2981
  }
3028
- if (this.luckywheels.length) {
3029
- return h$1("div", { class: "LuckyWheelsListWrapper" }, h$1("div", { class: "LuckyWheelsList" }, this.luckywheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
2982
+ if (this.luckyWheels.length) {
2983
+ return h$1("div", { class: "LuckyWheelsListWrapper" }, h$1("div", { class: "LuckyWheelsList" }, this.luckyWheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
3030
2984
  }
3031
2985
  else {
3032
2986
  return h$1("div", { class: "LuckyWheelsListEmpty" }, h$1("h2", null, translate('noluckywheels', this.language)), h$1("p", null, translate('tryOtherGames', this.language)));
@@ -3046,7 +3000,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
3046
3000
  getHistoryTabTemplate() {
3047
3001
  return h$1("div", { class: "HistoryWrapper" }, h$1("div", { class: "HistoryCols" }, h$1("div", { class: "HistoryColName Rewards" }, translate('rewards', this.language)), h$1("div", { class: "HistoryColName Issued" }, translate('issued', this.language)), h$1("div", { class: "HistoryColName Time" }, translate('time', this.language))), this.historyLoading
3048
3002
  ? getHistoryLoaderTemplate(this.language)
3049
- : getLuckyWheelsHistoryTemplate(this.luckywheels, this.luckywheelHistory, this.openedHistoryIds, this.toggleLuckyWheelHistory, this.language));
3003
+ : getLuckyWheelsHistoryTemplate(this.luckyWheels, this.luckywheelHistory, this.openedHistoryIds, this.toggleLuckyWheelHistory, this.language));
3050
3004
  }
3051
3005
  getTabsContentTemplate() {
3052
3006
  return this.activeTab === 1
@@ -3054,11 +3008,11 @@ const CasinoEngagementSuiteLuckyWheelList = class {
3054
3008
  : this.getHistoryTabTemplate();
3055
3009
  }
3056
3010
  render() {
3057
- return h$1("div", { key: 'bec9d35e1b9362a5098ab53c9fddb620b407b17e', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
3011
+ return h$1("div", { key: '6eec32518bc71966373704f59e9ad312fc5e3052', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
3058
3012
  }
3059
3013
  get host() { return getElement(this); }
3060
3014
  static get watchers() { return {
3061
- "luckywheels": ["luckywheelsPropHandler"]
3015
+ "luckyWheels": ["luckywheelsPropHandler"]
3062
3016
  }; }
3063
3017
  };
3064
3018
  CasinoEngagementSuiteLuckyWheelList.style = CasinoEngagementSuiteLuckywheelListStyle0;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0beffa82.js';
2
- export { s as setNonce } from './index-0beffa82.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-368a7709.js';
2
+ export { s as setNonce } from './index-368a7709.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.3 | 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([["casino-engagement-suite-luckywheel-list_2",[[1,"casino-engagement-suite-luckywheel-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"luckywheels":[1040],"endpoint":[1],"session":[1],"translationUrl":[1,"translation-url"],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"activeTab":[32],"historyLoading":[32],"luckywheelHistory":[32],"openedHistoryIds":[32],"historyLoaded":[32],"isLoading":[32]},[[8,"message","handleEvent"]],{"luckywheels":["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
19
+ return bootstrapLazy([["casino-engagement-suite-luckywheel-list_2",[[1,"casino-engagement-suite-luckywheel-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"luckyWheels":[1040],"translationUrl":[1,"translation-url"],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"activeTab":[32],"historyLoading":[32],"luckywheelHistory":[32],"openedHistoryIds":[32],"historyLoaded":[32],"isLoading":[32]},[[8,"message","handleEvent"]],{"luckyWheels":["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
20
20
  });
@@ -1,5 +1,5 @@
1
- export { C as casino_engagement_suite_luckywheel_list } from './casino-engagement-suite-luckywheel-list-56360247.js';
2
- import { r as registerInstance, h, g as getElement } from './index-0beffa82.js';
1
+ export { C as casino_engagement_suite_luckywheel_list } from './casino-engagement-suite-luckywheel-list-851e5853.js';
2
+ import { r as registerInstance, h, g as getElement } from './index-368a7709.js';
3
3
 
4
4
  const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
5
5
  const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
@@ -2,7 +2,7 @@ const NAMESPACE = 'casino-engagement-suite-luckywheel-list';
2
2
  const BUILD = /* casino-engagement-suite-luckywheel-list */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: 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: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -913,9 +913,6 @@ var postUpdateComponent = (hostRef) => {
913
913
  }
914
914
  };
915
915
  var appDidLoad = (who) => {
916
- {
917
- addHydratedFlag(doc.documentElement);
918
- }
919
916
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
920
917
  };
921
918
  var safeCall = (instance, method, arg, elm) => {
@@ -1104,7 +1101,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1104
1101
  let Cstr;
1105
1102
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1106
1103
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1107
- {
1104
+ const bundleId = cmpMeta.$lazyBundleId$;
1105
+ if (bundleId) {
1108
1106
  const CstrImport = loadModule(cmpMeta, hostRef);
1109
1107
  if (CstrImport && "then" in CstrImport) {
1110
1108
  const endLoad = uniqueTime();
@@ -1139,6 +1137,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1139
1137
  hostRef.$flags$ |= 128 /* isWatchReady */;
1140
1138
  }
1141
1139
  endNewInstance();
1140
+ } else {
1141
+ Cstr = elm.constructor;
1142
+ const cmpTag = elm.localName;
1143
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1142
1144
  }
1143
1145
  if (Cstr && Cstr.style) {
1144
1146
  let style;
@@ -1315,6 +1317,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1315
1317
  plt.raf(() => {
1316
1318
  var _a3;
1317
1319
  const hostRef = getHostRef(this);
1320
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1321
+ if (i2 > -1) {
1322
+ deferredConnectedCallbacks.splice(i2, 1);
1323
+ }
1318
1324
  if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1319
1325
  delete hostRef.$vnode$.$elm$;
1320
1326
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { C as CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list-56360247.js';
2
- import './index-0beffa82.js';
1
+ export { C as CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list-851e5853.js';
2
+ import './index-368a7709.js';
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-0beffa82.js';
2
- export { s as setNonce } from './index-0beffa82.js';
1
+ import { b as bootstrapLazy } from './index-368a7709.js';
2
+ export { s as setNonce } from './index-368a7709.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([["casino-engagement-suite-luckywheel-list_2",[[1,"casino-engagement-suite-luckywheel-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"luckywheels":[1040],"endpoint":[1],"session":[1],"translationUrl":[1,"translation-url"],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"activeTab":[32],"historyLoading":[32],"luckywheelHistory":[32],"openedHistoryIds":[32],"historyLoaded":[32],"isLoading":[32]},[[8,"message","handleEvent"]],{"luckywheels":["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["casino-engagement-suite-luckywheel-list_2",[[1,"casino-engagement-suite-luckywheel-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"luckyWheels":[1040],"translationUrl":[1,"translation-url"],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"activeTab":[32],"historyLoading":[32],"luckywheelHistory":[32],"openedHistoryIds":[32],"historyLoaded":[32],"isLoading":[32]},[[8,"message","handleEvent"]],{"luckyWheels":["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -23,15 +23,7 @@ export declare class CasinoEngagementSuiteLuckyWheelList {
23
23
  /**
24
24
  * List of lucky wheels
25
25
  */
26
- luckywheels: Array<LuckyWheel>;
27
- /**
28
- * The NWA endpoint
29
- */
30
- endpoint: string;
31
- /**
32
- * The NWA session for the logged-in user
33
- */
34
- session?: string;
26
+ luckyWheels: Array<LuckyWheel>;
35
27
  /**
36
28
  * Translations via URL
37
29
  */
@@ -51,8 +43,6 @@ export declare class CasinoEngagementSuiteLuckyWheelList {
51
43
  luckywheelsPropHandler(value: Array<LuckyWheel>): void;
52
44
  interval: any;
53
45
  componentWillLoad(): Promise<any>;
54
- getLuckyWheels(): void;
55
- getLuckyWheelsHistory(luckywheelId: string): Promise<any>;
56
46
  componentDidRender(): void;
57
47
  disconnectedCallback(): void;
58
48
  setClientStyling: () => void;
@@ -65,7 +55,7 @@ export declare class CasinoEngagementSuiteLuckyWheelList {
65
55
  hideTooltip: () => void;
66
56
  removeLuckyWheel(id: string): void;
67
57
  handleTabChange: (e: MouseEvent) => void;
68
- sendHistoryRequest(): Promise<void>;
58
+ sendHistoryRequest(): void;
69
59
  toggleLuckyWheelHistory: (ev: MouseEvent) => void;
70
60
  getLuckyWheelClasses(luckyWheel: LuckyWheel): {
71
61
  LuckyWheelsCard: boolean;
@@ -21,10 +21,6 @@ export namespace Components {
21
21
  * User's device type
22
22
  */
23
23
  "device": "Mobile" | "Tablet" | "Desktop";
24
- /**
25
- * The NWA endpoint
26
- */
27
- "endpoint": string;
28
24
  /**
29
25
  * Language of the widget
30
26
  */
@@ -32,11 +28,7 @@ export namespace Components {
32
28
  /**
33
29
  * List of lucky wheels
34
30
  */
35
- "luckywheels": LuckyWheel[];
36
- /**
37
- * The NWA session for the logged-in user
38
- */
39
- "session"?: string;
31
+ "luckyWheels": LuckyWheel[];
40
32
  /**
41
33
  * Translations via URL
42
34
  */
@@ -83,10 +75,6 @@ declare namespace LocalJSX {
83
75
  * User's device type
84
76
  */
85
77
  "device"?: "Mobile" | "Tablet" | "Desktop";
86
- /**
87
- * The NWA endpoint
88
- */
89
- "endpoint": string;
90
78
  /**
91
79
  * Language of the widget
92
80
  */
@@ -94,12 +82,8 @@ declare namespace LocalJSX {
94
82
  /**
95
83
  * List of lucky wheels
96
84
  */
97
- "luckywheels"?: LuckyWheel[];
85
+ "luckyWheels"?: LuckyWheel[];
98
86
  "onClose"?: (event: CasinoEngagementSuiteLuckywheelListCustomEvent<void>) => void;
99
- /**
100
- * The NWA session for the logged-in user
101
- */
102
- "session"?: string;
103
87
  /**
104
88
  * Translations via URL
105
89
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-luckywheel-list",
3
- "version": "1.54.6",
3
+ "version": "1.54.9",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",