@everymatrix/bonus-elevate-shop-item 1.43.4 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/bonus-elevate-shop-item/bonus-elevate-shop-item.esm.js +1 -1
  2. package/dist/bonus-elevate-shop-item/p-961d6b9a.entry.js +1 -0
  3. package/dist/bonus-elevate-shop-item/p-e1255160.js +1 -0
  4. package/dist/bonus-elevate-shop-item/p-ec5f179f.js +2 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/bonus-elevate-shop-assets-slider_3.cjs.entry.js +377 -406
  7. package/dist/cjs/bonus-elevate-shop-item.cjs.js +16 -10
  8. package/dist/cjs/index-1035f878.js +1591 -0
  9. package/dist/cjs/loader.cjs.js +6 -12
  10. package/dist/collection/collection-manifest.json +4 -4
  11. package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-assets-slider.js +207 -222
  12. package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-item.css +5 -5
  13. package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-item.js +332 -362
  14. package/dist/collection/components/bonus-elevate-shop-item/index.js +1 -0
  15. package/dist/collection/utils/locale.utils.js +54 -54
  16. package/dist/collection/utils/utils.js +26 -26
  17. package/dist/esm/app-globals-0f993ce5.js +3 -0
  18. package/dist/esm/bonus-elevate-shop-assets-slider_3.entry.js +377 -406
  19. package/dist/esm/bonus-elevate-shop-item.js +13 -10
  20. package/dist/esm/index-fa394550.js +1561 -0
  21. package/dist/esm/loader.js +6 -12
  22. package/dist/stencil.config.dev.js +17 -0
  23. package/dist/stencil.config.js +14 -21
  24. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.d.ts +2 -0
  25. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.dev.d.ts +2 -0
  26. package/dist/types/components/bonus-elevate-shop-item/bonus-elevate-shop-assets-slider.d.ts +35 -35
  27. package/dist/types/components/bonus-elevate-shop-item/bonus-elevate-shop-item.d.ts +56 -56
  28. package/dist/types/components/bonus-elevate-shop-item/index.d.ts +1 -0
  29. package/dist/types/components.d.ts +17 -1
  30. package/dist/types/models/bonus-elevate-shop-item.d.ts +12 -12
  31. package/dist/types/stencil-public-runtime.d.ts +142 -33
  32. package/loader/cdn.js +1 -3
  33. package/loader/index.cjs.js +1 -3
  34. package/loader/index.d.ts +13 -1
  35. package/loader/index.es2017.js +1 -3
  36. package/loader/index.js +1 -3
  37. package/loader/package.json +1 -0
  38. package/package.json +12 -5
  39. package/dist/bonus-elevate-shop-item/p-3d8363a3.js +0 -1
  40. package/dist/bonus-elevate-shop-item/p-9546c5ba.entry.js +0 -1
  41. package/dist/cjs/index-355d8ffb.js +0 -1653
  42. package/dist/components/bonus-elevate-shop-assets-slider.d.ts +0 -11
  43. package/dist/components/bonus-elevate-shop-assets-slider.js +0 -6
  44. package/dist/components/bonus-elevate-shop-assets-slider2.js +0 -158
  45. package/dist/components/bonus-elevate-shop-item.d.ts +0 -11
  46. package/dist/components/bonus-elevate-shop-item.js +0 -278
  47. package/dist/components/general-styling-wrapper.js +0 -6
  48. package/dist/components/general-styling-wrapper2.js +0 -103
  49. package/dist/components/index.d.ts +0 -26
  50. package/dist/components/index.js +0 -1
  51. package/dist/esm/index-4927ce96.js +0 -1624
  52. package/dist/esm/polyfills/core-js.js +0 -11
  53. package/dist/esm/polyfills/css-shim.js +0 -1
  54. package/dist/esm/polyfills/dom.js +0 -79
  55. package/dist/esm/polyfills/es5-html-element.js +0 -1
  56. package/dist/esm/polyfills/index.js +0 -34
  57. package/dist/esm/polyfills/system.js +0 -6
  58. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/bonus-elevate-shop-item/.stencil/packages/bonus-elevate-shop-item/stencil.config.d.ts +0 -2
@@ -1,373 +1,343 @@
1
- import { Component, Event, Fragment, h, Host, Prop, State } from '@stencil/core';
2
- import '@everymatrix/general-styling-wrapper';
3
- import { getTranslations, translate } from '../../utils/locale.utils';
4
- import { getDevicePlatform } from '../../utils/utils';
1
+ import { Fragment, h, Host } from "@stencil/core";
2
+ import "../../../../../general-styling-wrapper/dist/types/index";
3
+ import { getTranslations, translate } from "../../utils/locale.utils";
4
+ import { getDevicePlatform } from "../../utils/utils";
5
5
  export class BonusElevateShopItem {
6
- constructor() {
7
- /**
8
- * Currently selected language.
9
- */
10
- this.language = 'en';
11
- /**
12
- * Client custom styling via inline styles
13
- */
14
- this.clientStyling = '';
15
- /**
16
- * Client custom styling via url
17
- */
18
- this.clientStylingUrl = '';
19
- /**
20
- * Translation via url
21
- */
22
- this.translationUrl = '';
23
- /**
24
- * Show slider dots
25
- */
26
- this.showSliderDots = false;
27
- /**
28
- * Show slider navigate arrows
29
- */
30
- this.showSliderArrows = true;
31
- this.isGiftNotFound = false;
32
- this.redeemErrorMsg = '';
33
- this.isRedeeming = false;
34
- this.bindedHandler = this.handleMessage.bind(this);
35
- this.deviceType = getDevicePlatform();
36
- }
37
- redeemGiftConfirm() {
38
- window.postMessage({ type: 'BEERedeemConfirm', shopItem: this.elevateGift }, window.location.href);
39
- }
40
- handleMessage(message) {
41
- if (message.data && message.data.type === "bee-redeem-confirmed" &&
42
- message.data.id == this.elevateGift.id) {
43
- this.redeemGift();
6
+ constructor() {
7
+ this.bindedHandler = this.handleMessage.bind(this);
8
+ this.deviceType = getDevicePlatform();
9
+ this.endpoint = undefined;
10
+ this.language = 'en';
11
+ this.itemId = undefined;
12
+ this.elevateGift = undefined;
13
+ this.session = undefined;
14
+ this.clientStyling = '';
15
+ this.clientStylingUrl = '';
16
+ this.translationUrl = '';
17
+ this.showSliderDots = false;
18
+ this.showSliderArrows = true;
19
+ this.isGiftNotFound = false;
20
+ this.redeemErrorMsg = '';
21
+ this.isRedeeming = false;
44
22
  }
45
- }
46
- onBackClicked() {
47
- window.postMessage({ type: 'OnGiftDetailsBackButtonClicked' }, window.location.href);
48
- }
49
- redeemGift() {
50
- if (this.elevateGift.available.toLowerCase() === 'false') {
51
- return;
23
+ redeemGiftConfirm() {
24
+ window.postMessage({ type: 'BEERedeemConfirm', shopItem: this.elevateGift }, window.location.href);
52
25
  }
53
- let url = new URL(`${this.endpoint}/v1/elevate/redeem`);
54
- let claimGiftOptions = {
55
- method: 'PUT',
56
- headers: {
57
- 'x-SessionId': this.session,
58
- 'Content-Type': 'application/json-patch+json',
59
- },
60
- body: JSON.stringify({ giftId: this.elevateGift.id }),
61
- };
62
- this.redeemErrorMsg = '';
63
- this.isRedeeming = true;
64
- fetch(url.toString(), claimGiftOptions)
65
- .then((res) => res.json())
66
- .then((res) => {
67
- if (res.success) {
68
- this.redeemGiftButton.emit();
69
- window.postMessage({ type: 'BEEGiftRedeem', itemId: this.elevateGift.id }, window.location.href);
70
- }
71
- else {
72
- let translatedError = translate(`error${res.errorCode}`, this.language);
73
- this.redeemErrorMsg = translatedError ? translatedError : translate('redeemFailed', this.language);
74
- window.postMessage({ type: 'BEEGiftRedeemFailed', itemId: this.elevateGift.id, res }, window.location.href);
75
- }
76
- })
77
- .catch((err) => {
78
- window.postMessage({ type: 'BEEGiftClaimFailed', itemId: this.elevateGift.id, err }, window.location.href);
79
- }).finally(() => {
80
- this.isRedeeming = false;
81
- });
82
- }
83
- async loadElevateGift() {
84
- let url = new URL(`${this.endpoint}/v1/elevate/shop?language=${this.language}&filter=id=${this.itemId}`);
85
- let options = {
86
- headers: {
87
- 'Content-Type': 'application/json',
88
- 'x-SessionId': this.session,
89
- },
90
- method: 'GET',
91
- };
92
- await new Promise((resolve) => {
93
- fetch(url.href, options)
94
- .then((res) => res.json())
95
- .then((data) => {
96
- let filteredGifts = data.data;
97
- if (filteredGifts && filteredGifts.length == 1) {
98
- this.elevateGift = filteredGifts[0];
99
- this.isGiftNotFound = false;
26
+ handleMessage(message) {
27
+ if (message.data && message.data.type === "bee-redeem-confirmed" &&
28
+ message.data.id == this.elevateGift.id) {
29
+ this.redeemGift();
100
30
  }
101
- else {
102
- this.isGiftNotFound = true;
31
+ }
32
+ onBackClicked() {
33
+ window.postMessage({ type: 'OnGiftDetailsBackButtonClicked' }, window.location.href);
34
+ }
35
+ redeemGift() {
36
+ if (this.elevateGift.available.toLowerCase() === 'false') {
37
+ return;
103
38
  }
104
- resolve(true);
105
- });
106
- });
107
- }
108
- disconnectedCallback() {
109
- window.removeEventListener('message', this.bindedHandler, false);
110
- }
111
- componentDidLoad() {
112
- window.addEventListener('message', this.bindedHandler, false);
113
- }
114
- async componentWillLoad() {
115
- if (this.translationUrl.length > 2) {
116
- await getTranslations(this.translationUrl);
39
+ let url = new URL(`${this.endpoint}/v1/elevate/redeem`);
40
+ let claimGiftOptions = {
41
+ method: 'PUT',
42
+ headers: {
43
+ 'x-SessionId': this.session,
44
+ 'Content-Type': 'application/json-patch+json',
45
+ },
46
+ body: JSON.stringify({ giftId: this.elevateGift.id }),
47
+ };
48
+ this.redeemErrorMsg = '';
49
+ this.isRedeeming = true;
50
+ fetch(url.toString(), claimGiftOptions)
51
+ .then((res) => res.json())
52
+ .then((res) => {
53
+ if (res.success) {
54
+ this.redeemGiftButton.emit();
55
+ window.postMessage({ type: 'BEEGiftRedeem', itemId: this.elevateGift.id }, window.location.href);
56
+ }
57
+ else {
58
+ let translatedError = translate(`error${res.errorCode}`, this.language);
59
+ this.redeemErrorMsg = translatedError ? translatedError : translate('redeemFailed', this.language);
60
+ window.postMessage({ type: 'BEEGiftRedeemFailed', itemId: this.elevateGift.id, res }, window.location.href);
61
+ }
62
+ })
63
+ .catch((err) => {
64
+ window.postMessage({ type: 'BEEGiftClaimFailed', itemId: this.elevateGift.id, err }, window.location.href);
65
+ }).finally(() => {
66
+ this.isRedeeming = false;
67
+ });
117
68
  }
118
- if (this.elevateGift) {
119
- this.isGiftNotFound = false;
69
+ async loadElevateGift() {
70
+ let url = new URL(`${this.endpoint}/v1/elevate/shop?language=${this.language}&filter=id=${this.itemId}`);
71
+ let options = {
72
+ headers: {
73
+ 'Content-Type': 'application/json',
74
+ 'x-SessionId': this.session,
75
+ },
76
+ method: 'GET',
77
+ };
78
+ await new Promise((resolve) => {
79
+ fetch(url.href, options)
80
+ .then((res) => res.json())
81
+ .then((data) => {
82
+ let filteredGifts = data.data;
83
+ if (filteredGifts && filteredGifts.length == 1) {
84
+ this.elevateGift = filteredGifts[0];
85
+ this.isGiftNotFound = false;
86
+ }
87
+ else {
88
+ this.isGiftNotFound = true;
89
+ }
90
+ resolve(true);
91
+ });
92
+ });
120
93
  }
121
- else {
122
- await this.loadElevateGift();
94
+ disconnectedCallback() {
95
+ window.removeEventListener('message', this.bindedHandler, false);
123
96
  }
124
- }
125
- render() {
126
- return (h(Host, null,
127
- h("general-styling-wrapper", { clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling }),
128
- h("div", { class: 'ElevateDetails' },
129
- this.isGiftNotFound && (h(Fragment, null,
130
- h("div", { class: "Row ThumbnailRow" },
131
- h("div", { class: "BackButton", onClick: () => {
132
- this.onBackClicked();
133
- } }, '<')),
134
- h("div", { class: "Thumnails GiftNotFound" },
135
- translate('noDataFound', this.language),
136
- "."))),
137
- this.elevateGift && h(Fragment, null,
138
- h("div", { class: "ThumbnailRow" },
139
- h("div", { class: 'Row' },
140
- h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'),
141
- h("bonus-elevate-shop-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.elevateGift.presentation.assets, showSliderDots: this.showSliderDots })),
142
- h("div", { class: 'Col Details' },
143
- h("h3", { class: "GiftName" }, this.elevateGift.presentation.displayName || this.elevateGift.displayName),
144
- h("div", { class: "GiftPoints" },
145
- h("span", { class: "Points" },
146
- this.elevateGift.points,
147
- " "),
148
- h("span", { class: " PointsLabel" }, translate('coins', this.language))))),
149
- h("div", { class: 'ShopItemDetail Details' },
150
- h("div", { class: "GiftPresentation" },
151
- h("p", null, this.elevateGift.presentation.description ? this.elevateGift.presentation.description : translate('noGiftPresentation', this.language))),
152
- h("div", { class: `RedeemButton ${this.elevateGift.available === 'false' || this.isRedeeming ? 'Disabled' : ''}
153
- ${this.deviceType == 'dk' ? 'DkButton' : ''}`, onClick: this.redeemGiftConfirm.bind(this) }, translate('redeem', this.language)),
154
- h("span", { class: 'RedeemError Error' },
155
- " ",
156
- this.redeemErrorMsg,
157
- " "))))));
158
- }
159
- static get is() { return "bonus-elevate-shop-item"; }
160
- static get encapsulation() { return "shadow"; }
161
- static get originalStyleUrls() { return {
162
- "$": ["bonus-elevate-shop-item.scss"]
163
- }; }
164
- static get styleUrls() { return {
165
- "$": ["bonus-elevate-shop-item.css"]
166
- }; }
167
- static get properties() { return {
168
- "endpoint": {
169
- "type": "string",
170
- "mutable": false,
171
- "complexType": {
172
- "original": "string",
173
- "resolved": "string",
174
- "references": {}
175
- },
176
- "required": false,
177
- "optional": false,
178
- "docs": {
179
- "tags": [],
180
- "text": "NorWAy endpoint"
181
- },
182
- "attribute": "endpoint",
183
- "reflect": true
184
- },
185
- "language": {
186
- "type": "string",
187
- "mutable": false,
188
- "complexType": {
189
- "original": "string",
190
- "resolved": "string",
191
- "references": {}
192
- },
193
- "required": false,
194
- "optional": false,
195
- "docs": {
196
- "tags": [],
197
- "text": "Currently selected language."
198
- },
199
- "attribute": "language",
200
- "reflect": true,
201
- "defaultValue": "'en'"
202
- },
203
- "itemId": {
204
- "type": "string",
205
- "mutable": true,
206
- "complexType": {
207
- "original": "string",
208
- "resolved": "string",
209
- "references": {}
210
- },
211
- "required": false,
212
- "optional": false,
213
- "docs": {
214
- "tags": [],
215
- "text": "Elevate gift id"
216
- },
217
- "attribute": "item-id",
218
- "reflect": true
219
- },
220
- "elevateGift": {
221
- "type": "unknown",
222
- "mutable": true,
223
- "complexType": {
224
- "original": "BonusElevateShopItemInfo",
225
- "resolved": "BonusElevateShopItemInfo",
226
- "references": {
227
- "BonusElevateShopItemInfo": {
228
- "location": "import",
229
- "path": "../../models/bonus-elevate-shop-item"
230
- }
231
- }
232
- },
233
- "required": false,
234
- "optional": false,
235
- "docs": {
236
- "tags": [],
237
- "text": "Elevate gift id"
238
- }
239
- },
240
- "session": {
241
- "type": "string",
242
- "mutable": false,
243
- "complexType": {
244
- "original": "string",
245
- "resolved": "string",
246
- "references": {}
247
- },
248
- "required": false,
249
- "optional": false,
250
- "docs": {
251
- "tags": [],
252
- "text": "session"
253
- },
254
- "attribute": "session",
255
- "reflect": true
256
- },
257
- "clientStyling": {
258
- "type": "string",
259
- "mutable": false,
260
- "complexType": {
261
- "original": "string",
262
- "resolved": "string",
263
- "references": {}
264
- },
265
- "required": false,
266
- "optional": false,
267
- "docs": {
268
- "tags": [],
269
- "text": "Client custom styling via inline styles"
270
- },
271
- "attribute": "client-styling",
272
- "reflect": true,
273
- "defaultValue": "''"
274
- },
275
- "clientStylingUrl": {
276
- "type": "string",
277
- "mutable": false,
278
- "complexType": {
279
- "original": "string",
280
- "resolved": "string",
281
- "references": {}
282
- },
283
- "required": false,
284
- "optional": false,
285
- "docs": {
286
- "tags": [],
287
- "text": "Client custom styling via url"
288
- },
289
- "attribute": "client-styling-url",
290
- "reflect": true,
291
- "defaultValue": "''"
292
- },
293
- "translationUrl": {
294
- "type": "string",
295
- "mutable": false,
296
- "complexType": {
297
- "original": "string",
298
- "resolved": "string",
299
- "references": {}
300
- },
301
- "required": false,
302
- "optional": false,
303
- "docs": {
304
- "tags": [],
305
- "text": "Translation via url"
306
- },
307
- "attribute": "translation-url",
308
- "reflect": true,
309
- "defaultValue": "''"
310
- },
311
- "showSliderDots": {
312
- "type": "boolean",
313
- "mutable": false,
314
- "complexType": {
315
- "original": "boolean",
316
- "resolved": "boolean",
317
- "references": {}
318
- },
319
- "required": false,
320
- "optional": false,
321
- "docs": {
322
- "tags": [],
323
- "text": "Show slider dots"
324
- },
325
- "attribute": "show-slider-dots",
326
- "reflect": true,
327
- "defaultValue": "false"
328
- },
329
- "showSliderArrows": {
330
- "type": "boolean",
331
- "mutable": false,
332
- "complexType": {
333
- "original": "boolean",
334
- "resolved": "boolean",
335
- "references": {}
336
- },
337
- "required": false,
338
- "optional": false,
339
- "docs": {
340
- "tags": [],
341
- "text": "Show slider navigate arrows"
342
- },
343
- "attribute": "show-slider-arrows",
344
- "reflect": true,
345
- "defaultValue": "true"
97
+ componentDidLoad() {
98
+ window.addEventListener('message', this.bindedHandler, false);
346
99
  }
347
- }; }
348
- static get states() { return {
349
- "isGiftNotFound": {},
350
- "redeemErrorMsg": {},
351
- "isRedeeming": {}
352
- }; }
353
- static get events() { return [{
354
- "method": "redeemGiftButton",
355
- "name": "redeemGiftButton",
356
- "bubbles": true,
357
- "cancelable": true,
358
- "composed": true,
359
- "docs": {
360
- "tags": [],
361
- "text": ""
362
- },
363
- "complexType": {
364
- "original": "Object",
365
- "resolved": "Object",
366
- "references": {
367
- "Object": {
368
- "location": "global"
369
- }
100
+ async componentWillLoad() {
101
+ if (this.translationUrl.length > 2) {
102
+ await getTranslations(this.translationUrl);
103
+ }
104
+ if (this.elevateGift) {
105
+ this.isGiftNotFound = false;
106
+ }
107
+ else {
108
+ await this.loadElevateGift();
370
109
  }
371
- }
372
- }]; }
110
+ }
111
+ render() {
112
+ return (h(Host, { key: '6f28f64d3413dd82bc81fc6fd975baa992d06289' }, h("general-styling-wrapper", { key: '88dedbfb25562fbe95a69748649ed9c14a2c42f6', clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling }), h("div", { key: '9f2a66f9d48882220ab5d3850f343e995ffe9a6b', class: 'ElevateDetails' }, this.isGiftNotFound && (h(Fragment, { key: '91f4079bf7af7e4d61b1681a9848c72c9a2249d5' }, h("div", { key: 'e0427680e0d7e94e51644f12a2430a6a42e3d340', class: "Row ThumbnailRow" }, h("div", { key: '4fd78968b2fdf281b7c22596351b366058cfcec3', class: "BackButton", onClick: () => {
113
+ this.onBackClicked();
114
+ } }, '<')), h("div", { key: 'eeb8cbc40429cf1ebf7a5f0de3d5b8226a40437b', class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.elevateGift && h(Fragment, { key: '45380d051b279d9c7fcd580f06252911763073e0' }, h("div", { key: 'c440d72501fb91601106fbf74a866887bc02ee43', class: "ThumbnailRow" }, h("div", { key: '005f436acbc51372d013e1931d54b71738f2e0fc', class: 'Row' }, h("div", { key: 'a9ace30abf1c50d639c31bb047d7b7d7cb6b27b8', class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), h("bonus-elevate-shop-assets-slider", { key: '8c4121e66a3fae912e72fc10c6a81354a7b36e9f', class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.elevateGift.presentation.assets, showSliderDots: this.showSliderDots })), h("div", { key: 'c6a207dfe14402e4d1890e7b787bf4b5a2247160', class: 'Col Details' }, h("h3", { key: 'c190b88ab4d1e13885593b9d6b9c62b161bdff23', class: "GiftName" }, this.elevateGift.presentation.displayName || this.elevateGift.displayName), h("div", { key: 'befddb7b8dff3bb73377da4bfb30ce003dcccb7b', class: "GiftPoints" }, h("span", { key: '4e879d150709e670b2c7c90f0034c75c4ba30386', class: "Points" }, this.elevateGift.points, " "), h("span", { key: 'a7d28d964b41126a76f9988d0f4fc05653787066', class: " PointsLabel" }, translate('coins', this.language))))), h("div", { key: '14d2374d40825ac91b275fda81ca22d40f21c0be', class: 'ShopItemDetail Details' }, h("div", { key: '197bb9c0089173f8c4f180e115068f6204a6f7ea', class: "GiftPresentation" }, h("p", { key: '30be8dbec63f8f4d2bc3687d7e992d73c534a20f' }, this.elevateGift.presentation.description ? this.elevateGift.presentation.description : translate('noGiftPresentation', this.language))), h("div", { key: '7e0a9e4d03f338137649c9477a44c7036aea1609', class: `RedeemButton ${this.elevateGift.available === 'false' || this.isRedeeming ? 'Disabled' : ''}
115
+ ${this.deviceType == 'dk' ? 'DkButton' : ''}`, onClick: this.redeemGiftConfirm.bind(this) }, translate('redeem', this.language)), h("span", { key: '89b70f02565437ed28b175c65d0767354b6c9d6b', class: 'RedeemError Error' }, " ", this.redeemErrorMsg, " "))))));
116
+ }
117
+ static get is() { return "bonus-elevate-shop-item"; }
118
+ static get encapsulation() { return "shadow"; }
119
+ static get originalStyleUrls() {
120
+ return {
121
+ "$": ["bonus-elevate-shop-item.scss"]
122
+ };
123
+ }
124
+ static get styleUrls() {
125
+ return {
126
+ "$": ["bonus-elevate-shop-item.css"]
127
+ };
128
+ }
129
+ static get properties() {
130
+ return {
131
+ "endpoint": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "NorWAy endpoint"
144
+ },
145
+ "attribute": "endpoint",
146
+ "reflect": true
147
+ },
148
+ "language": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "Currently selected language."
161
+ },
162
+ "attribute": "language",
163
+ "reflect": true,
164
+ "defaultValue": "'en'"
165
+ },
166
+ "itemId": {
167
+ "type": "string",
168
+ "mutable": true,
169
+ "complexType": {
170
+ "original": "string",
171
+ "resolved": "string",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": "Elevate gift id"
179
+ },
180
+ "attribute": "item-id",
181
+ "reflect": true
182
+ },
183
+ "elevateGift": {
184
+ "type": "unknown",
185
+ "mutable": true,
186
+ "complexType": {
187
+ "original": "BonusElevateShopItemInfo",
188
+ "resolved": "BonusElevateShopItemInfo",
189
+ "references": {
190
+ "BonusElevateShopItemInfo": {
191
+ "location": "import",
192
+ "path": "../../models/bonus-elevate-shop-item",
193
+ "id": "../../../../packages/stencil/bonus-elevate-shop-item/src/models/bonus-elevate-shop-item.ts::BonusElevateShopItemInfo"
194
+ }
195
+ }
196
+ },
197
+ "required": false,
198
+ "optional": false,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": "Elevate gift id"
202
+ }
203
+ },
204
+ "session": {
205
+ "type": "string",
206
+ "mutable": false,
207
+ "complexType": {
208
+ "original": "string",
209
+ "resolved": "string",
210
+ "references": {}
211
+ },
212
+ "required": false,
213
+ "optional": false,
214
+ "docs": {
215
+ "tags": [],
216
+ "text": "session"
217
+ },
218
+ "attribute": "session",
219
+ "reflect": true
220
+ },
221
+ "clientStyling": {
222
+ "type": "string",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "string",
226
+ "resolved": "string",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": "Client custom styling via inline styles"
234
+ },
235
+ "attribute": "client-styling",
236
+ "reflect": true,
237
+ "defaultValue": "''"
238
+ },
239
+ "clientStylingUrl": {
240
+ "type": "string",
241
+ "mutable": false,
242
+ "complexType": {
243
+ "original": "string",
244
+ "resolved": "string",
245
+ "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": "Client custom styling via url"
252
+ },
253
+ "attribute": "client-styling-url",
254
+ "reflect": true,
255
+ "defaultValue": "''"
256
+ },
257
+ "translationUrl": {
258
+ "type": "string",
259
+ "mutable": false,
260
+ "complexType": {
261
+ "original": "string",
262
+ "resolved": "string",
263
+ "references": {}
264
+ },
265
+ "required": false,
266
+ "optional": false,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": "Translation via url"
270
+ },
271
+ "attribute": "translation-url",
272
+ "reflect": true,
273
+ "defaultValue": "''"
274
+ },
275
+ "showSliderDots": {
276
+ "type": "boolean",
277
+ "mutable": false,
278
+ "complexType": {
279
+ "original": "boolean",
280
+ "resolved": "boolean",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": false,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": "Show slider dots"
288
+ },
289
+ "attribute": "show-slider-dots",
290
+ "reflect": true,
291
+ "defaultValue": "false"
292
+ },
293
+ "showSliderArrows": {
294
+ "type": "boolean",
295
+ "mutable": false,
296
+ "complexType": {
297
+ "original": "boolean",
298
+ "resolved": "boolean",
299
+ "references": {}
300
+ },
301
+ "required": false,
302
+ "optional": false,
303
+ "docs": {
304
+ "tags": [],
305
+ "text": "Show slider navigate arrows"
306
+ },
307
+ "attribute": "show-slider-arrows",
308
+ "reflect": true,
309
+ "defaultValue": "true"
310
+ }
311
+ };
312
+ }
313
+ static get states() {
314
+ return {
315
+ "isGiftNotFound": {},
316
+ "redeemErrorMsg": {},
317
+ "isRedeeming": {}
318
+ };
319
+ }
320
+ static get events() {
321
+ return [{
322
+ "method": "redeemGiftButton",
323
+ "name": "redeemGiftButton",
324
+ "bubbles": true,
325
+ "cancelable": true,
326
+ "composed": true,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": ""
330
+ },
331
+ "complexType": {
332
+ "original": "Object",
333
+ "resolved": "Object",
334
+ "references": {
335
+ "Object": {
336
+ "location": "global",
337
+ "id": "global::Object"
338
+ }
339
+ }
340
+ }
341
+ }];
342
+ }
373
343
  }