@everymatrix/player-elevate-card-jojogroup 1.80.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/general-styling-wrapper_6.cjs.entry.js +3570 -0
- package/dist/cjs/index-51874d29.js +1619 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/player-elevate-card-jojogroup.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +23 -0
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.css +192 -0
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +244 -0
- package/dist/collection/components/player-elevate-card-jojogroup/index.js +1 -0
- package/dist/collection/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup-items.js +23 -0
- package/dist/collection/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup.css +64 -0
- package/dist/collection/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup.js +297 -0
- package/dist/collection/components/player-elevate-loyaltycard-jojogroup/player-elevate-loyaltycard-jojogroup.css +98 -0
- package/dist/collection/components/player-elevate-loyaltycard-jojogroup/player-elevate-loyaltycard-jojogroup.js +310 -0
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.css +70 -0
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +334 -0
- package/dist/collection/components/player-rakeback-card/player-rakeback-card.css +87 -0
- package/dist/collection/components/player-rakeback-card/player-rakeback-card.js +357 -0
- package/dist/collection/components/static/button-default.svg +42 -0
- package/dist/collection/components/static/button-disabled.svg +4 -0
- package/dist/collection/components/static/button-hover.svg +4 -0
- package/dist/collection/components/static/button-level.svg +27 -0
- package/dist/collection/components/static/button-pressed.svg +18 -0
- package/dist/collection/components/static/button-redeem.svg +36 -0
- package/dist/collection/components/static/card-ground-over.png +0 -0
- package/dist/collection/components/static/card-ground-over.svg +903 -0
- package/dist/collection/components/static/card-ground.png +0 -0
- package/dist/collection/components/static/card-ground.svg +34 -0
- package/dist/collection/components/static/info.svg +4 -0
- package/dist/collection/components/static/level-badge.png +0 -0
- package/dist/collection/components/static/level-percent.svg +80 -0
- package/dist/collection/components/static/tips-info.svg +21 -0
- package/dist/collection/components/static/user.svg +3 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/player-elevate.js +1 -0
- package/dist/collection/utils/locale.utils.js +238 -0
- package/dist/collection/utils/utils.js +51 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/general-styling-wrapper_6.entry.js +3561 -0
- package/dist/esm/index-9498ebd7.js +1589 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/player-elevate-card-jojogroup.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/player-elevate-card-jojogroup/app-globals-0f993ce5.js +1 -0
- package/dist/player-elevate-card-jojogroup/general-styling-wrapper_6.entry.js +1 -0
- package/dist/player-elevate-card-jojogroup/index-9498ebd7.js +2 -0
- package/dist/player-elevate-card-jojogroup/index.esm.js +0 -0
- package/dist/player-elevate-card-jojogroup/player-elevate-card-jojogroup.esm.js +1 -0
- package/dist/static/button-default.svg +42 -0
- package/dist/static/button-disabled.svg +4 -0
- package/dist/static/button-hover.svg +4 -0
- package/dist/static/button-level.svg +27 -0
- package/dist/static/button-pressed.svg +18 -0
- package/dist/static/button-redeem.svg +36 -0
- package/dist/static/card-ground-over.png +0 -0
- package/dist/static/card-ground-over.svg +903 -0
- package/dist/static/card-ground.png +0 -0
- package/dist/static/card-ground.svg +34 -0
- package/dist/static/info.svg +4 -0
- package/dist/static/level-badge.png +0 -0
- package/dist/static/level-percent.svg +80 -0
- package/dist/static/tips-info.svg +21 -0
- package/dist/static/user.svg +3 -0
- package/dist/stencil.config.dev.js +18 -0
- package/dist/stencil.config.js +20 -0
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/player-elevate-card-data/player-elevate-card-data.d.ts +24 -0
- package/dist/types/components/player-elevate-card-jojogroup/index.d.ts +1 -0
- package/dist/types/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup-items.d.ts +20 -0
- package/dist/types/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup.d.ts +56 -0
- package/dist/types/components/player-elevate-loyaltycard-jojogroup/player-elevate-loyaltycard-jojogroup.d.ts +59 -0
- package/dist/types/components/player-elevate-pointcard/player-elevate-pointcard.d.ts +69 -0
- package/dist/types/components/player-rakeback-card/player-rakeback-card.d.ts +65 -0
- package/dist/types/components.d.ts +461 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/player-elevate.d.ts +40 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +15 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { TRANSLATIONS, translate, translateWithParams } from "../../utils/locale.utils";
|
|
3
|
+
export class PlayerRakebackCard {
|
|
4
|
+
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Truncate number to specified decimal places (without rounding)
|
|
7
|
+
* @param num Number to be processed
|
|
8
|
+
* @param digits Number of decimal places to keep
|
|
9
|
+
*/
|
|
10
|
+
this.truncateNumber = (num, digits = 2) => {
|
|
11
|
+
const str = num.toString();
|
|
12
|
+
const [integer, decimal = ''] = str.split('.');
|
|
13
|
+
return digits > 0 ? `${integer}.${decimal ? decimal.slice(0, digits) : '00'}` : `${integer}`;
|
|
14
|
+
};
|
|
15
|
+
this.sendRakebackClaimedEvent = () => {
|
|
16
|
+
if (!this.endpoint || !this.session || !this.rakebackInfo.claimable || this.isLoading) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
window.postMessage({ type: 'RakebackClaimTrigger', points: this.rakebackInfo.points }, window.location.href);
|
|
20
|
+
};
|
|
21
|
+
this.endpoint = undefined;
|
|
22
|
+
this.theme = 'Dark';
|
|
23
|
+
this.session = undefined;
|
|
24
|
+
this.language = 'en';
|
|
25
|
+
this.mbSource = undefined;
|
|
26
|
+
this.clientStyling = '';
|
|
27
|
+
this.clientStylingUrl = '';
|
|
28
|
+
this.translationUrl = '';
|
|
29
|
+
this.show = true;
|
|
30
|
+
this.rakebackInfo = {
|
|
31
|
+
hasRakebackWallet: false,
|
|
32
|
+
points: 0.0,
|
|
33
|
+
currency: 'TRY',
|
|
34
|
+
claimable: false,
|
|
35
|
+
minutesCanClaim: 0,
|
|
36
|
+
showCanClaim: false
|
|
37
|
+
};
|
|
38
|
+
this.isLoading = false;
|
|
39
|
+
this.coolingOffPeriod = false;
|
|
40
|
+
this.showTheWidget = false;
|
|
41
|
+
}
|
|
42
|
+
async onSessionOrEndpointChange() {
|
|
43
|
+
await this.loadRakebackInfo();
|
|
44
|
+
}
|
|
45
|
+
async onShowOrHasRakebackWalletChange() {
|
|
46
|
+
this.showTheWidget = this.show && this.rakebackInfo.hasRakebackWallet;
|
|
47
|
+
}
|
|
48
|
+
handleMessage(event) {
|
|
49
|
+
const { type } = event === null || event === void 0 ? void 0 : event.data;
|
|
50
|
+
if (type === 'RakebackClaimConfirmed') {
|
|
51
|
+
this.claimRakeback();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async loadRakebackInfo() {
|
|
55
|
+
if (!this.endpoint || !this.session) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
this.isLoading = true;
|
|
59
|
+
try {
|
|
60
|
+
const url = new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`);
|
|
61
|
+
const response = await fetch(url.href, {
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: {
|
|
64
|
+
'X-Sessionid': this.session,
|
|
65
|
+
'Content-Type': 'application/json'
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
if (!response.ok) {
|
|
69
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
70
|
+
}
|
|
71
|
+
const data = await response.json();
|
|
72
|
+
if (!data.success) {
|
|
73
|
+
throw new Error(data.errorMessage || 'Failed to load rakeback info');
|
|
74
|
+
}
|
|
75
|
+
const { rakebackWallet } = data === null || data === void 0 ? void 0 : data.data;
|
|
76
|
+
if (!rakebackWallet) {
|
|
77
|
+
window.postMessage({ type: 'RakebackWalletMissing' }, window.location.href);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const { total, claimable, currency, minutesCanClaim } = rakebackWallet || {};
|
|
81
|
+
this.rakebackInfo = {
|
|
82
|
+
hasRakebackWallet: true,
|
|
83
|
+
points: (total === null || total === void 0 ? void 0 : total.points) ? this.truncateNumber(total.points, 2) : `0.00`,
|
|
84
|
+
currency: currency || '',
|
|
85
|
+
claimable: claimable || false,
|
|
86
|
+
showCanClaim: Boolean(minutesCanClaim && minutesCanClaim > 0),
|
|
87
|
+
minutesCanClaim: minutesCanClaim
|
|
88
|
+
? minutesCanClaim <= 1 && minutesCanClaim > 0
|
|
89
|
+
? 1
|
|
90
|
+
: this.truncateNumber(minutesCanClaim, 0)
|
|
91
|
+
: 0
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
catch (err) {
|
|
95
|
+
console.error('Error loading rakeback info:', err);
|
|
96
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
97
|
+
}
|
|
98
|
+
finally {
|
|
99
|
+
this.isLoading = false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
async claimRakeback() {
|
|
103
|
+
this.isLoading = true;
|
|
104
|
+
try {
|
|
105
|
+
const url = new URL(`${this.endpoint}/v1/elevate/rakeback/claim`);
|
|
106
|
+
const response = await fetch(url.href, {
|
|
107
|
+
method: 'PUT',
|
|
108
|
+
headers: {
|
|
109
|
+
'X-Sessionid': this.session,
|
|
110
|
+
'Content-Type': 'application/json'
|
|
111
|
+
},
|
|
112
|
+
body: JSON.stringify({})
|
|
113
|
+
});
|
|
114
|
+
if (!response.ok) {
|
|
115
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
116
|
+
}
|
|
117
|
+
const data = await response.json();
|
|
118
|
+
if (!data.success) {
|
|
119
|
+
throw new Error(data.errorMessage || 'Failed to claim rakeback');
|
|
120
|
+
}
|
|
121
|
+
// Refresh rakeback information
|
|
122
|
+
await this.loadRakebackInfo();
|
|
123
|
+
// Send event notification for successful redemption
|
|
124
|
+
window.postMessage({ type: 'RakebackClaimed', points: this.rakebackInfo.points }, window.location.href);
|
|
125
|
+
}
|
|
126
|
+
catch (err) {
|
|
127
|
+
console.error('Error claiming rakeback:', err);
|
|
128
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
129
|
+
}
|
|
130
|
+
finally {
|
|
131
|
+
this.isLoading = false;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
async componentWillLoad() {
|
|
135
|
+
await this.loadRakebackInfo();
|
|
136
|
+
await this.onShowOrHasRakebackWalletChange();
|
|
137
|
+
}
|
|
138
|
+
render() {
|
|
139
|
+
return this.showTheWidget ? (h("div", { class: "RakebackCard" }, h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), h("div", { class: "RakebackCardContent" }, h("div", { class: "RakebackTitle" }, translate('rakebackTitle', this.language)), h("div", { class: "RakebackDetails" }, h("div", { class: "RakebackInfo" }, h("div", { class: "RakebackNumContainer" }, h("span", { class: "RakebackNum" }, this.rakebackInfo.points), h("span", { class: "RakebackCurrency" }, this.rakebackInfo.currency))), h("div", { class: `RakebackButton ${this.isLoading || !this.rakebackInfo.claimable ? 'disabled' : ''}`, onClick: this.sendRakebackClaimedEvent }, translate('claim', this.language))), !this.rakebackInfo.claimable && this.rakebackInfo.showCanClaim && (h("div", { class: "RakebackCoolOff" }, translateWithParams('minutesCanClaim', {
|
|
140
|
+
lang: this.language,
|
|
141
|
+
minutes: this.rakebackInfo.minutesCanClaim
|
|
142
|
+
})))))) : null;
|
|
143
|
+
}
|
|
144
|
+
static get is() { return "player-rakeback-card"; }
|
|
145
|
+
static get encapsulation() { return "shadow"; }
|
|
146
|
+
static get originalStyleUrls() {
|
|
147
|
+
return {
|
|
148
|
+
"$": ["player-rakeback-card.scss"]
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
static get styleUrls() {
|
|
152
|
+
return {
|
|
153
|
+
"$": ["player-rakeback-card.css"]
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
static get properties() {
|
|
157
|
+
return {
|
|
158
|
+
"endpoint": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "string",
|
|
163
|
+
"resolved": "string",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": true,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "The NWA endpoint"
|
|
171
|
+
},
|
|
172
|
+
"attribute": "endpoint",
|
|
173
|
+
"reflect": true
|
|
174
|
+
},
|
|
175
|
+
"theme": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": false,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": "The style that widget shows, available value: Dark, Light\nDefault: Dark"
|
|
188
|
+
},
|
|
189
|
+
"attribute": "theme",
|
|
190
|
+
"reflect": true,
|
|
191
|
+
"defaultValue": "'Dark'"
|
|
192
|
+
},
|
|
193
|
+
"session": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "string",
|
|
198
|
+
"resolved": "string",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": true,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "The NWA session for the logged-in user"
|
|
206
|
+
},
|
|
207
|
+
"attribute": "session",
|
|
208
|
+
"reflect": true
|
|
209
|
+
},
|
|
210
|
+
"language": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "string",
|
|
215
|
+
"resolved": "string",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": "Widget Language to show"
|
|
223
|
+
},
|
|
224
|
+
"attribute": "language",
|
|
225
|
+
"reflect": true,
|
|
226
|
+
"defaultValue": "'en'"
|
|
227
|
+
},
|
|
228
|
+
"mbSource": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"mutable": false,
|
|
231
|
+
"complexType": {
|
|
232
|
+
"original": "string",
|
|
233
|
+
"resolved": "string",
|
|
234
|
+
"references": {}
|
|
235
|
+
},
|
|
236
|
+
"required": false,
|
|
237
|
+
"optional": false,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [],
|
|
240
|
+
"text": "Client custom styling via streamStyling"
|
|
241
|
+
},
|
|
242
|
+
"attribute": "mb-source",
|
|
243
|
+
"reflect": true
|
|
244
|
+
},
|
|
245
|
+
"clientStyling": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"mutable": false,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "string",
|
|
250
|
+
"resolved": "string",
|
|
251
|
+
"references": {}
|
|
252
|
+
},
|
|
253
|
+
"required": false,
|
|
254
|
+
"optional": false,
|
|
255
|
+
"docs": {
|
|
256
|
+
"tags": [],
|
|
257
|
+
"text": "Client custom styling via inline styles"
|
|
258
|
+
},
|
|
259
|
+
"attribute": "client-styling",
|
|
260
|
+
"reflect": true,
|
|
261
|
+
"defaultValue": "''"
|
|
262
|
+
},
|
|
263
|
+
"clientStylingUrl": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"mutable": false,
|
|
266
|
+
"complexType": {
|
|
267
|
+
"original": "string",
|
|
268
|
+
"resolved": "string",
|
|
269
|
+
"references": {}
|
|
270
|
+
},
|
|
271
|
+
"required": false,
|
|
272
|
+
"optional": false,
|
|
273
|
+
"docs": {
|
|
274
|
+
"tags": [],
|
|
275
|
+
"text": "Client custom styling via url"
|
|
276
|
+
},
|
|
277
|
+
"attribute": "client-styling-url",
|
|
278
|
+
"reflect": true,
|
|
279
|
+
"defaultValue": "''"
|
|
280
|
+
},
|
|
281
|
+
"translationUrl": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"mutable": false,
|
|
284
|
+
"complexType": {
|
|
285
|
+
"original": "string",
|
|
286
|
+
"resolved": "string",
|
|
287
|
+
"references": {}
|
|
288
|
+
},
|
|
289
|
+
"required": false,
|
|
290
|
+
"optional": false,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": "Translation via url"
|
|
294
|
+
},
|
|
295
|
+
"attribute": "translation-url",
|
|
296
|
+
"reflect": true,
|
|
297
|
+
"defaultValue": "''"
|
|
298
|
+
},
|
|
299
|
+
"show": {
|
|
300
|
+
"type": "boolean",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "boolean",
|
|
304
|
+
"resolved": "boolean",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": false,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [{
|
|
311
|
+
"name": "default",
|
|
312
|
+
"text": "true"
|
|
313
|
+
}],
|
|
314
|
+
"text": "Show the widget"
|
|
315
|
+
},
|
|
316
|
+
"attribute": "show",
|
|
317
|
+
"reflect": true,
|
|
318
|
+
"defaultValue": "true"
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
static get states() {
|
|
323
|
+
return {
|
|
324
|
+
"rakebackInfo": {},
|
|
325
|
+
"isLoading": {},
|
|
326
|
+
"coolingOffPeriod": {},
|
|
327
|
+
"showTheWidget": {}
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
static get watchers() {
|
|
331
|
+
return [{
|
|
332
|
+
"propName": "session",
|
|
333
|
+
"methodName": "onSessionOrEndpointChange"
|
|
334
|
+
}, {
|
|
335
|
+
"propName": "endpoint",
|
|
336
|
+
"methodName": "onSessionOrEndpointChange"
|
|
337
|
+
}, {
|
|
338
|
+
"propName": "language",
|
|
339
|
+
"methodName": "onSessionOrEndpointChange"
|
|
340
|
+
}, {
|
|
341
|
+
"propName": "show",
|
|
342
|
+
"methodName": "onShowOrHasRakebackWalletChange"
|
|
343
|
+
}, {
|
|
344
|
+
"propName": "rakebackInfo",
|
|
345
|
+
"methodName": "onShowOrHasRakebackWalletChange"
|
|
346
|
+
}];
|
|
347
|
+
}
|
|
348
|
+
static get listeners() {
|
|
349
|
+
return [{
|
|
350
|
+
"name": "message",
|
|
351
|
+
"method": "handleMessage",
|
|
352
|
+
"target": "window",
|
|
353
|
+
"capture": false,
|
|
354
|
+
"passive": false
|
|
355
|
+
}];
|
|
356
|
+
}
|
|
357
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<svg width="95" height="51" viewBox="0 0 95 51" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_bd_169_22604)">
|
|
3
|
+
<rect x="4" width="87" height="43" rx="14" fill="#26CC37" shape-rendering="crispEdges"/>
|
|
4
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint0_linear_169_22604)" stroke-opacity="0.6"
|
|
5
|
+
stroke-width="2" shape-rendering="crispEdges"/>
|
|
6
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint1_linear_169_22604)" stroke-width="2"
|
|
7
|
+
shape-rendering="crispEdges"/>
|
|
8
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint2_linear_169_22604)" stroke-width="2"
|
|
9
|
+
shape-rendering="crispEdges"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<filter id="filter0_bd_169_22604" x="-36" y="-40" width="167" height="123" filterUnits="userSpaceOnUse"
|
|
13
|
+
color-interpolation-filters="sRGB">
|
|
14
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
15
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
|
|
16
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_169_22604"/>
|
|
17
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
18
|
+
result="hardAlpha"/>
|
|
19
|
+
<feOffset dy="4"/>
|
|
20
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
21
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
22
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
23
|
+
<feBlend mode="normal" in2="effect1_backgroundBlur_169_22604" result="effect2_dropShadow_169_22604"/>
|
|
24
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_169_22604" result="shape"/>
|
|
25
|
+
</filter>
|
|
26
|
+
<linearGradient id="paint0_linear_169_22604" x1="107.683" y1="17.19" x2="78.0658" y2="19.0918"
|
|
27
|
+
gradientUnits="userSpaceOnUse">
|
|
28
|
+
<stop stop-color="white"/>
|
|
29
|
+
<stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
|
|
30
|
+
</linearGradient>
|
|
31
|
+
<linearGradient id="paint1_linear_169_22604" x1="4" y1="0" x2="24.9374" y2="22.5174"
|
|
32
|
+
gradientUnits="userSpaceOnUse">
|
|
33
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
34
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
35
|
+
</linearGradient>
|
|
36
|
+
<linearGradient id="paint2_linear_169_22604" x1="91" y1="43" x2="61.9374" y2="28.5031"
|
|
37
|
+
gradientUnits="userSpaceOnUse">
|
|
38
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
39
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
40
|
+
</linearGradient>
|
|
41
|
+
</defs>
|
|
42
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<svg width="190" height="75" viewBox="0 0 190 75" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_dd_179_4415)">
|
|
3
|
+
<path d="M16 20C16 15.5817 19.5817 12 24 12H151C155.418 12 159 15.5817 159 20V32C159 36.4183 155.418 40 151 40H24C19.5817 40 16 36.4183 16 32V20Z" fill="url(#paint0_linear_179_4415)" shape-rendering="crispEdges"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<filter id="filter0_dd_179_4415" x="0.842043" y="0.631533" width="188.474" height="73.4739" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
7
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
8
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
9
|
+
<feOffset dx="7.57898" dy="11.3685"/>
|
|
10
|
+
<feGaussianBlur stdDeviation="11.3685"/>
|
|
11
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
12
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.0862745 0 0 0 0 0.0980392 0 0 0 0 0.141176 0 0 0 0.25 0"/>
|
|
13
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_179_4415"/>
|
|
14
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
15
|
+
<feOffset dx="-2" dy="-2"/>
|
|
16
|
+
<feGaussianBlur stdDeviation="3.5"/>
|
|
17
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
18
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.74902 0 0 0 0 0.470588 0 0 0 0 0.0235294 0 0 0 0.75 0"/>
|
|
19
|
+
<feBlend mode="normal" in2="effect1_dropShadow_179_4415" result="effect2_dropShadow_179_4415"/>
|
|
20
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_179_4415" result="shape"/>
|
|
21
|
+
</filter>
|
|
22
|
+
<linearGradient id="paint0_linear_179_4415" x1="87.5" y1="12" x2="87.5" y2="40" gradientUnits="userSpaceOnUse">
|
|
23
|
+
<stop stop-color="#FCC410"/>
|
|
24
|
+
<stop offset="1" stop-color="#FFBD2B" stop-opacity="0"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
</defs>
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg width="95" height="51" viewBox="0 0 95 51" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_d_169_22603)">
|
|
3
|
+
<rect x="4" width="87" height="43" rx="14" fill="#008B0E" shape-rendering="crispEdges"/>
|
|
4
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="#71FF7F" stroke-width="2" shape-rendering="crispEdges"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<filter id="filter0_d_169_22603" x="0" y="0" width="95" height="51" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
8
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
9
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
10
|
+
<feOffset dy="4"/>
|
|
11
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
12
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
13
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
14
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_169_22603"/>
|
|
15
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_169_22603" result="shape"/>
|
|
16
|
+
</filter>
|
|
17
|
+
</defs>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="106" height="51" viewBox="0 0 106 51" fill="none">
|
|
2
|
+
<g filter="url(#filter0_bd_169_22606)">
|
|
3
|
+
<rect x="4" width="98" height="43" rx="14" fill="#26CC37" shape-rendering="crispEdges"/>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<rect x="5" y="1" width="96" height="41" rx="13" stroke="url(#paint0_linear_169_22606)" stroke-opacity="0.6" stroke-width="2" shape-rendering="crispEdges"/>
|
|
7
|
+
<rect x="5" y="1" width="96" height="41" rx="13" stroke="url(#paint1_linear_169_22606)" stroke-width="2" shape-rendering="crispEdges"/>
|
|
8
|
+
<rect x="5" y="1" width="96" height="41" rx="13" stroke="url(#paint2_linear_169_22606)" stroke-width="2" shape-rendering="crispEdges"/>
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<filter id="filter0_bd_169_22606" x="-36" y="-40" width="178" height="123" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
12
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
13
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
|
|
14
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_169_22606"/>
|
|
15
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
16
|
+
<feOffset dy="4"/>
|
|
17
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
18
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
19
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
20
|
+
<feBlend mode="normal" in2="effect1_backgroundBlur_169_22606" result="effect2_dropShadow_169_22606"/>
|
|
21
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_169_22606" result="shape"/>
|
|
22
|
+
</filter>
|
|
23
|
+
<linearGradient id="paint0_linear_169_22606" x1="120.793" y1="17.19" x2="87.4673" y2="19.6005" gradientUnits="userSpaceOnUse">
|
|
24
|
+
<stop stop-color="white"/>
|
|
25
|
+
<stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
|
|
26
|
+
</linearGradient>
|
|
27
|
+
<linearGradient id="paint1_linear_169_22606" x1="4" y1="0" x2="24.6125" y2="24.9708" gradientUnits="userSpaceOnUse">
|
|
28
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
29
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
30
|
+
</linearGradient>
|
|
31
|
+
<linearGradient id="paint2_linear_169_22606" x1="102" y1="43" x2="70.9273" y2="25.5407" gradientUnits="userSpaceOnUse">
|
|
32
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
33
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
34
|
+
</linearGradient>
|
|
35
|
+
</defs>
|
|
36
|
+
</svg>
|
|
Binary file
|