@everymatrix/user-deposit-withdrawal 1.31.1 → 1.32.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/LICENSE +21 -0
- package/package.json +3 -2
- package/dist/cjs/index-0e9931a1.js +0 -1259
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +0 -213
- package/dist/cjs/user-deposit-withdrawal.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -12
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.css +0 -35
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +0 -560
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/locale.utils.js +0 -24
- package/dist/collection/utils/utils.js +0 -29
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/user-deposit-withdrawal.d.ts +0 -11
- package/dist/components/user-deposit-withdrawal.js +0 -251
- package/dist/esm/index-fe945b18.js +0 -1233
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/user-deposit-withdrawal.entry.js +0 -209
- package/dist/esm/user-deposit-withdrawal.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -22
- package/dist/types/Users/sebastian.strulea/Documents/work/widgets-stencil/packages/user-deposit-withdrawal/.stencil/packages/user-deposit-withdrawal/stencil.config.d.ts +0 -2
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +0 -74
- package/dist/types/components.d.ts +0 -98
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/locale.utils.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +0 -8
- package/dist/user-deposit-withdrawal/index.esm.js +0 -0
- package/dist/user-deposit-withdrawal/p-086a6b5a.js +0 -1
- package/dist/user-deposit-withdrawal/p-3eda2d99.entry.js +0 -1
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
|
@@ -1,560 +0,0 @@
|
|
|
1
|
-
import { Component, Host, Prop, Watch, State, h } from '@stencil/core';
|
|
2
|
-
import { translate } from '../../utils/locale.utils';
|
|
3
|
-
import { isMobile } from '../../utils/utils';
|
|
4
|
-
const emptyFunction = () => { };
|
|
5
|
-
export class UserDepositWithdrawal {
|
|
6
|
-
constructor() {
|
|
7
|
-
/**
|
|
8
|
-
* Client custom styling via inline style
|
|
9
|
-
*/
|
|
10
|
-
this.clientStyling = '';
|
|
11
|
-
/**
|
|
12
|
-
* Client custom styling via url
|
|
13
|
-
*/
|
|
14
|
-
this.clientStylingUrl = '';
|
|
15
|
-
/*
|
|
16
|
-
* Operator selected currency
|
|
17
|
-
*/
|
|
18
|
-
this.currency = '';
|
|
19
|
-
/*
|
|
20
|
-
* Display bonus dropdown
|
|
21
|
-
*/
|
|
22
|
-
this.showBonusSelectionInput = 'true';
|
|
23
|
-
/*
|
|
24
|
-
* State of deposit - short cashier enabled or not
|
|
25
|
-
*/
|
|
26
|
-
this.isShortCashier = 'false';
|
|
27
|
-
this.beforeRedirect = emptyFunction;
|
|
28
|
-
this.limitStylingAppends = false;
|
|
29
|
-
this.bindedHandler = this.handleMessage.bind(this);
|
|
30
|
-
this.userAgent = window.navigator.userAgent;
|
|
31
|
-
this.isMobile = isMobile(this.userAgent);
|
|
32
|
-
this.setClientStyling = () => {
|
|
33
|
-
let sheet = document.createElement('style');
|
|
34
|
-
sheet.innerHTML = this.clientStyling;
|
|
35
|
-
this.stylingContainer.prepend(sheet);
|
|
36
|
-
};
|
|
37
|
-
this.setClientStylingURL = () => {
|
|
38
|
-
let url = new URL(this.clientStylingUrl);
|
|
39
|
-
let cssFile = document.createElement('style');
|
|
40
|
-
fetch(url.href)
|
|
41
|
-
.then((res) => res.text())
|
|
42
|
-
.then((data) => {
|
|
43
|
-
cssFile.innerHTML = data;
|
|
44
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
45
|
-
})
|
|
46
|
-
.catch((err) => {
|
|
47
|
-
console.log('error ', err);
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
get typeParameter() {
|
|
52
|
-
if (this.type === 'deposit') {
|
|
53
|
-
return 'Deposit';
|
|
54
|
-
}
|
|
55
|
-
if (this.type === 'withdraw') {
|
|
56
|
-
return 'Withdraw';
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
watchLoadWidget() {
|
|
60
|
-
this.loadWidget();
|
|
61
|
-
}
|
|
62
|
-
async componentWillLoad() {
|
|
63
|
-
await this.loadWidget();
|
|
64
|
-
}
|
|
65
|
-
toggleScreen(isMobile) {
|
|
66
|
-
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
|
|
67
|
-
}
|
|
68
|
-
componentDidLoad() {
|
|
69
|
-
window.addEventListener('message', this.bindedHandler, false);
|
|
70
|
-
}
|
|
71
|
-
disconnectedCallback() {
|
|
72
|
-
window.removeEventListener('message', this.bindedHandler, false);
|
|
73
|
-
}
|
|
74
|
-
componentDidRender() {
|
|
75
|
-
// start custom styling area
|
|
76
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
77
|
-
if (this.clientStyling)
|
|
78
|
-
this.setClientStyling();
|
|
79
|
-
if (this.clientStylingUrl)
|
|
80
|
-
this.setClientStylingURL();
|
|
81
|
-
this.limitStylingAppends = true;
|
|
82
|
-
}
|
|
83
|
-
// end custom styling area
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
return (h(Host, null,
|
|
87
|
-
h("div", { ref: el => this.stylingContainer = el },
|
|
88
|
-
h("div", { class: "DepositWithdrawalWrapper", style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } },
|
|
89
|
-
h("div", null, (this.isMobile && !this.isShortCashier &&
|
|
90
|
-
h("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) },
|
|
91
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" },
|
|
92
|
-
h("defs", null),
|
|
93
|
-
h("g", { transform: "translate(-20 -158)" },
|
|
94
|
-
h("g", { transform: "translate(20 158)" },
|
|
95
|
-
h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))),
|
|
96
|
-
h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language))))),
|
|
97
|
-
h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl })))));
|
|
98
|
-
}
|
|
99
|
-
async loadWidget() {
|
|
100
|
-
const requestObject = {
|
|
101
|
-
Channel: this.channel,
|
|
102
|
-
Type: this.typeParameter,
|
|
103
|
-
SuccessUrl: this.successUrl,
|
|
104
|
-
CancelUrl: this.cancelUrl,
|
|
105
|
-
FailUrl: this.failUrl,
|
|
106
|
-
Language: this.language,
|
|
107
|
-
productType: this.productType,
|
|
108
|
-
isShortCashier: this.isShortCashier,
|
|
109
|
-
currency: this.currency,
|
|
110
|
-
showBonusSelectionInput: this.showBonusSelectionInput
|
|
111
|
-
};
|
|
112
|
-
try {
|
|
113
|
-
const url = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`;
|
|
114
|
-
const response = await fetch(url, {
|
|
115
|
-
method: 'POST',
|
|
116
|
-
headers: {
|
|
117
|
-
'X-Sessionid': this.session,
|
|
118
|
-
'Content-Type': 'application/json',
|
|
119
|
-
},
|
|
120
|
-
body: JSON.stringify(requestObject)
|
|
121
|
-
});
|
|
122
|
-
if (!response.ok) {
|
|
123
|
-
const err = await response.text();
|
|
124
|
-
throw new Error(err);
|
|
125
|
-
}
|
|
126
|
-
const data = await response.json();
|
|
127
|
-
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
128
|
-
}
|
|
129
|
-
catch (ex) {
|
|
130
|
-
console.error(ex);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
handleMessage(message) {
|
|
134
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
135
|
-
if (message.data["MMFE:setIFrameHeight"] && this.isShortCashier === 'true') {
|
|
136
|
-
this.dynamicHeight = message.data["MMFE:setIFrameHeight"].toString() + 'px';
|
|
137
|
-
}
|
|
138
|
-
if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
|
|
139
|
-
this.doRedirect(message.data.type, this.homeUrl);
|
|
140
|
-
}
|
|
141
|
-
if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
|
|
142
|
-
this.doRedirect(message.data.redirect, this.homeUrl);
|
|
143
|
-
}
|
|
144
|
-
if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
|
|
145
|
-
this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
|
|
146
|
-
}
|
|
147
|
-
if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
|
|
148
|
-
this.doRedirect(window.location.href, this.casinoUrl);
|
|
149
|
-
}
|
|
150
|
-
if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
|
|
151
|
-
window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
|
|
152
|
-
this.doRedirect(window.location.href, this.contactUrl);
|
|
153
|
-
}
|
|
154
|
-
if (((_g = message.data) === null || _g === void 0 ? void 0 : _g.redirect) === 'mm-wm-hc-init-deposit') {
|
|
155
|
-
window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
|
|
156
|
-
this.doRedirect(window.location.href, this.depositUrl);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
doRedirect(reason, url) {
|
|
160
|
-
const redirectArgs = { reason, url, cancel: false };
|
|
161
|
-
this.beforeRedirect(redirectArgs);
|
|
162
|
-
if (redirectArgs.cancel) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
if (!redirectArgs.url) {
|
|
166
|
-
window.location.href = '/';
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
window.location.href = redirectArgs.url;
|
|
170
|
-
}
|
|
171
|
-
static get is() { return "user-deposit-withdrawal"; }
|
|
172
|
-
static get encapsulation() { return "shadow"; }
|
|
173
|
-
static get originalStyleUrls() { return {
|
|
174
|
-
"$": ["user-deposit-withdrawal.scss"]
|
|
175
|
-
}; }
|
|
176
|
-
static get styleUrls() { return {
|
|
177
|
-
"$": ["user-deposit-withdrawal.css"]
|
|
178
|
-
}; }
|
|
179
|
-
static get properties() { return {
|
|
180
|
-
"clientStyling": {
|
|
181
|
-
"type": "string",
|
|
182
|
-
"mutable": false,
|
|
183
|
-
"complexType": {
|
|
184
|
-
"original": "string",
|
|
185
|
-
"resolved": "string",
|
|
186
|
-
"references": {}
|
|
187
|
-
},
|
|
188
|
-
"required": false,
|
|
189
|
-
"optional": false,
|
|
190
|
-
"docs": {
|
|
191
|
-
"tags": [],
|
|
192
|
-
"text": "Client custom styling via inline style"
|
|
193
|
-
},
|
|
194
|
-
"attribute": "client-styling",
|
|
195
|
-
"reflect": true,
|
|
196
|
-
"defaultValue": "''"
|
|
197
|
-
},
|
|
198
|
-
"clientStylingUrl": {
|
|
199
|
-
"type": "string",
|
|
200
|
-
"mutable": false,
|
|
201
|
-
"complexType": {
|
|
202
|
-
"original": "string",
|
|
203
|
-
"resolved": "string",
|
|
204
|
-
"references": {}
|
|
205
|
-
},
|
|
206
|
-
"required": false,
|
|
207
|
-
"optional": false,
|
|
208
|
-
"docs": {
|
|
209
|
-
"tags": [],
|
|
210
|
-
"text": "Client custom styling via url"
|
|
211
|
-
},
|
|
212
|
-
"attribute": "client-styling-url",
|
|
213
|
-
"reflect": true,
|
|
214
|
-
"defaultValue": "''"
|
|
215
|
-
},
|
|
216
|
-
"endpoint": {
|
|
217
|
-
"type": "string",
|
|
218
|
-
"mutable": false,
|
|
219
|
-
"complexType": {
|
|
220
|
-
"original": "string",
|
|
221
|
-
"resolved": "string",
|
|
222
|
-
"references": {}
|
|
223
|
-
},
|
|
224
|
-
"required": true,
|
|
225
|
-
"optional": false,
|
|
226
|
-
"docs": {
|
|
227
|
-
"tags": [],
|
|
228
|
-
"text": "Endpoint"
|
|
229
|
-
},
|
|
230
|
-
"attribute": "endpoint",
|
|
231
|
-
"reflect": true
|
|
232
|
-
},
|
|
233
|
-
"type": {
|
|
234
|
-
"type": "string",
|
|
235
|
-
"mutable": false,
|
|
236
|
-
"complexType": {
|
|
237
|
-
"original": "'deposit' | 'withdraw'",
|
|
238
|
-
"resolved": "\"deposit\" | \"withdraw\"",
|
|
239
|
-
"references": {}
|
|
240
|
-
},
|
|
241
|
-
"required": true,
|
|
242
|
-
"optional": false,
|
|
243
|
-
"docs": {
|
|
244
|
-
"tags": [],
|
|
245
|
-
"text": ""
|
|
246
|
-
},
|
|
247
|
-
"attribute": "type",
|
|
248
|
-
"reflect": true
|
|
249
|
-
},
|
|
250
|
-
"channel": {
|
|
251
|
-
"type": "string",
|
|
252
|
-
"mutable": false,
|
|
253
|
-
"complexType": {
|
|
254
|
-
"original": "string",
|
|
255
|
-
"resolved": "string",
|
|
256
|
-
"references": {}
|
|
257
|
-
},
|
|
258
|
-
"required": true,
|
|
259
|
-
"optional": false,
|
|
260
|
-
"docs": {
|
|
261
|
-
"tags": [],
|
|
262
|
-
"text": ""
|
|
263
|
-
},
|
|
264
|
-
"attribute": "channel",
|
|
265
|
-
"reflect": true
|
|
266
|
-
},
|
|
267
|
-
"language": {
|
|
268
|
-
"type": "string",
|
|
269
|
-
"mutable": false,
|
|
270
|
-
"complexType": {
|
|
271
|
-
"original": "string",
|
|
272
|
-
"resolved": "string",
|
|
273
|
-
"references": {}
|
|
274
|
-
},
|
|
275
|
-
"required": false,
|
|
276
|
-
"optional": false,
|
|
277
|
-
"docs": {
|
|
278
|
-
"tags": [],
|
|
279
|
-
"text": ""
|
|
280
|
-
},
|
|
281
|
-
"attribute": "language",
|
|
282
|
-
"reflect": true
|
|
283
|
-
},
|
|
284
|
-
"productType": {
|
|
285
|
-
"type": "string",
|
|
286
|
-
"mutable": false,
|
|
287
|
-
"complexType": {
|
|
288
|
-
"original": "string",
|
|
289
|
-
"resolved": "string",
|
|
290
|
-
"references": {}
|
|
291
|
-
},
|
|
292
|
-
"required": false,
|
|
293
|
-
"optional": false,
|
|
294
|
-
"docs": {
|
|
295
|
-
"tags": [],
|
|
296
|
-
"text": ""
|
|
297
|
-
},
|
|
298
|
-
"attribute": "product-type",
|
|
299
|
-
"reflect": true
|
|
300
|
-
},
|
|
301
|
-
"userId": {
|
|
302
|
-
"type": "string",
|
|
303
|
-
"mutable": false,
|
|
304
|
-
"complexType": {
|
|
305
|
-
"original": "string",
|
|
306
|
-
"resolved": "string",
|
|
307
|
-
"references": {}
|
|
308
|
-
},
|
|
309
|
-
"required": false,
|
|
310
|
-
"optional": false,
|
|
311
|
-
"docs": {
|
|
312
|
-
"tags": [],
|
|
313
|
-
"text": ""
|
|
314
|
-
},
|
|
315
|
-
"attribute": "user-id",
|
|
316
|
-
"reflect": true
|
|
317
|
-
},
|
|
318
|
-
"session": {
|
|
319
|
-
"type": "string",
|
|
320
|
-
"mutable": false,
|
|
321
|
-
"complexType": {
|
|
322
|
-
"original": "string",
|
|
323
|
-
"resolved": "string",
|
|
324
|
-
"references": {}
|
|
325
|
-
},
|
|
326
|
-
"required": false,
|
|
327
|
-
"optional": false,
|
|
328
|
-
"docs": {
|
|
329
|
-
"tags": [],
|
|
330
|
-
"text": ""
|
|
331
|
-
},
|
|
332
|
-
"attribute": "session",
|
|
333
|
-
"reflect": true
|
|
334
|
-
},
|
|
335
|
-
"successUrl": {
|
|
336
|
-
"type": "string",
|
|
337
|
-
"mutable": false,
|
|
338
|
-
"complexType": {
|
|
339
|
-
"original": "string",
|
|
340
|
-
"resolved": "string",
|
|
341
|
-
"references": {}
|
|
342
|
-
},
|
|
343
|
-
"required": false,
|
|
344
|
-
"optional": false,
|
|
345
|
-
"docs": {
|
|
346
|
-
"tags": [],
|
|
347
|
-
"text": ""
|
|
348
|
-
},
|
|
349
|
-
"attribute": "success-url",
|
|
350
|
-
"reflect": true
|
|
351
|
-
},
|
|
352
|
-
"cancelUrl": {
|
|
353
|
-
"type": "string",
|
|
354
|
-
"mutable": false,
|
|
355
|
-
"complexType": {
|
|
356
|
-
"original": "string",
|
|
357
|
-
"resolved": "string",
|
|
358
|
-
"references": {}
|
|
359
|
-
},
|
|
360
|
-
"required": false,
|
|
361
|
-
"optional": false,
|
|
362
|
-
"docs": {
|
|
363
|
-
"tags": [],
|
|
364
|
-
"text": ""
|
|
365
|
-
},
|
|
366
|
-
"attribute": "cancel-url",
|
|
367
|
-
"reflect": true
|
|
368
|
-
},
|
|
369
|
-
"failUrl": {
|
|
370
|
-
"type": "string",
|
|
371
|
-
"mutable": false,
|
|
372
|
-
"complexType": {
|
|
373
|
-
"original": "string",
|
|
374
|
-
"resolved": "string",
|
|
375
|
-
"references": {}
|
|
376
|
-
},
|
|
377
|
-
"required": false,
|
|
378
|
-
"optional": false,
|
|
379
|
-
"docs": {
|
|
380
|
-
"tags": [],
|
|
381
|
-
"text": ""
|
|
382
|
-
},
|
|
383
|
-
"attribute": "fail-url",
|
|
384
|
-
"reflect": true
|
|
385
|
-
},
|
|
386
|
-
"sportsUrl": {
|
|
387
|
-
"type": "string",
|
|
388
|
-
"mutable": false,
|
|
389
|
-
"complexType": {
|
|
390
|
-
"original": "string",
|
|
391
|
-
"resolved": "string",
|
|
392
|
-
"references": {}
|
|
393
|
-
},
|
|
394
|
-
"required": false,
|
|
395
|
-
"optional": false,
|
|
396
|
-
"docs": {
|
|
397
|
-
"tags": [],
|
|
398
|
-
"text": ""
|
|
399
|
-
},
|
|
400
|
-
"attribute": "sports-url",
|
|
401
|
-
"reflect": true
|
|
402
|
-
},
|
|
403
|
-
"casinoUrl": {
|
|
404
|
-
"type": "string",
|
|
405
|
-
"mutable": false,
|
|
406
|
-
"complexType": {
|
|
407
|
-
"original": "string",
|
|
408
|
-
"resolved": "string",
|
|
409
|
-
"references": {}
|
|
410
|
-
},
|
|
411
|
-
"required": false,
|
|
412
|
-
"optional": false,
|
|
413
|
-
"docs": {
|
|
414
|
-
"tags": [],
|
|
415
|
-
"text": ""
|
|
416
|
-
},
|
|
417
|
-
"attribute": "casino-url",
|
|
418
|
-
"reflect": true
|
|
419
|
-
},
|
|
420
|
-
"contactUrl": {
|
|
421
|
-
"type": "string",
|
|
422
|
-
"mutable": false,
|
|
423
|
-
"complexType": {
|
|
424
|
-
"original": "string",
|
|
425
|
-
"resolved": "string",
|
|
426
|
-
"references": {}
|
|
427
|
-
},
|
|
428
|
-
"required": false,
|
|
429
|
-
"optional": false,
|
|
430
|
-
"docs": {
|
|
431
|
-
"tags": [],
|
|
432
|
-
"text": ""
|
|
433
|
-
},
|
|
434
|
-
"attribute": "contact-url",
|
|
435
|
-
"reflect": true
|
|
436
|
-
},
|
|
437
|
-
"depositUrl": {
|
|
438
|
-
"type": "string",
|
|
439
|
-
"mutable": false,
|
|
440
|
-
"complexType": {
|
|
441
|
-
"original": "string",
|
|
442
|
-
"resolved": "string",
|
|
443
|
-
"references": {}
|
|
444
|
-
},
|
|
445
|
-
"required": false,
|
|
446
|
-
"optional": false,
|
|
447
|
-
"docs": {
|
|
448
|
-
"tags": [],
|
|
449
|
-
"text": ""
|
|
450
|
-
},
|
|
451
|
-
"attribute": "deposit-url",
|
|
452
|
-
"reflect": true
|
|
453
|
-
},
|
|
454
|
-
"currency": {
|
|
455
|
-
"type": "string",
|
|
456
|
-
"mutable": false,
|
|
457
|
-
"complexType": {
|
|
458
|
-
"original": "string",
|
|
459
|
-
"resolved": "string",
|
|
460
|
-
"references": {}
|
|
461
|
-
},
|
|
462
|
-
"required": false,
|
|
463
|
-
"optional": false,
|
|
464
|
-
"docs": {
|
|
465
|
-
"tags": [],
|
|
466
|
-
"text": ""
|
|
467
|
-
},
|
|
468
|
-
"attribute": "currency",
|
|
469
|
-
"reflect": true,
|
|
470
|
-
"defaultValue": "''"
|
|
471
|
-
},
|
|
472
|
-
"showBonusSelectionInput": {
|
|
473
|
-
"type": "string",
|
|
474
|
-
"mutable": false,
|
|
475
|
-
"complexType": {
|
|
476
|
-
"original": "string",
|
|
477
|
-
"resolved": "string",
|
|
478
|
-
"references": {}
|
|
479
|
-
},
|
|
480
|
-
"required": false,
|
|
481
|
-
"optional": false,
|
|
482
|
-
"docs": {
|
|
483
|
-
"tags": [],
|
|
484
|
-
"text": ""
|
|
485
|
-
},
|
|
486
|
-
"attribute": "show-bonus-selection-input",
|
|
487
|
-
"reflect": true,
|
|
488
|
-
"defaultValue": "'true'"
|
|
489
|
-
},
|
|
490
|
-
"isShortCashier": {
|
|
491
|
-
"type": "string",
|
|
492
|
-
"mutable": false,
|
|
493
|
-
"complexType": {
|
|
494
|
-
"original": "string",
|
|
495
|
-
"resolved": "string",
|
|
496
|
-
"references": {}
|
|
497
|
-
},
|
|
498
|
-
"required": false,
|
|
499
|
-
"optional": false,
|
|
500
|
-
"docs": {
|
|
501
|
-
"tags": [],
|
|
502
|
-
"text": ""
|
|
503
|
-
},
|
|
504
|
-
"attribute": "is-short-cashier",
|
|
505
|
-
"reflect": true,
|
|
506
|
-
"defaultValue": "'false'"
|
|
507
|
-
},
|
|
508
|
-
"homeUrl": {
|
|
509
|
-
"type": "string",
|
|
510
|
-
"mutable": false,
|
|
511
|
-
"complexType": {
|
|
512
|
-
"original": "string",
|
|
513
|
-
"resolved": "string",
|
|
514
|
-
"references": {}
|
|
515
|
-
},
|
|
516
|
-
"required": false,
|
|
517
|
-
"optional": false,
|
|
518
|
-
"docs": {
|
|
519
|
-
"tags": [],
|
|
520
|
-
"text": ""
|
|
521
|
-
},
|
|
522
|
-
"attribute": "home-url",
|
|
523
|
-
"reflect": true
|
|
524
|
-
},
|
|
525
|
-
"beforeRedirect": {
|
|
526
|
-
"type": "unknown",
|
|
527
|
-
"mutable": false,
|
|
528
|
-
"complexType": {
|
|
529
|
-
"original": "(params: RedirectCallbackArgs) => void",
|
|
530
|
-
"resolved": "(params: RedirectCallbackArgs) => void",
|
|
531
|
-
"references": {
|
|
532
|
-
"RedirectCallbackArgs": {
|
|
533
|
-
"location": "local"
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
},
|
|
537
|
-
"required": false,
|
|
538
|
-
"optional": false,
|
|
539
|
-
"docs": {
|
|
540
|
-
"tags": [],
|
|
541
|
-
"text": ""
|
|
542
|
-
},
|
|
543
|
-
"defaultValue": "emptyFunction"
|
|
544
|
-
}
|
|
545
|
-
}; }
|
|
546
|
-
static get states() { return {
|
|
547
|
-
"limitStylingAppends": {},
|
|
548
|
-
"dynamicHeight": {}
|
|
549
|
-
}; }
|
|
550
|
-
static get watchers() { return [{
|
|
551
|
-
"propName": "session",
|
|
552
|
-
"methodName": "watchLoadWidget"
|
|
553
|
-
}, {
|
|
554
|
-
"propName": "userId",
|
|
555
|
-
"methodName": "watchLoadWidget"
|
|
556
|
-
}, {
|
|
557
|
-
"propName": "isShortCashier",
|
|
558
|
-
"methodName": "watchLoadWidget"
|
|
559
|
-
}]; }
|
|
560
|
-
}
|
package/dist/collection/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr'];
|
|
3
|
-
const TRANSLATIONS = {
|
|
4
|
-
en: {
|
|
5
|
-
Deposit: 'Deposit',
|
|
6
|
-
Withdraw: 'Withdraw',
|
|
7
|
-
},
|
|
8
|
-
ro: {
|
|
9
|
-
Deposit: 'Depozit',
|
|
10
|
-
Withdraw: 'Retragere',
|
|
11
|
-
},
|
|
12
|
-
fr: {
|
|
13
|
-
Deposit: 'Deposit',
|
|
14
|
-
Withdraw: 'Withdraw',
|
|
15
|
-
},
|
|
16
|
-
hr: {
|
|
17
|
-
Deposit: 'Letét',
|
|
18
|
-
Withdraw: 'Visszavonás'
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export const translate = (key, customLang) => {
|
|
22
|
-
const lang = customLang;
|
|
23
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
24
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name isMobile
|
|
3
|
-
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
4
|
-
* @param {String} userAgent window.navigator.userAgent
|
|
5
|
-
* @returns {Boolean} true or false
|
|
6
|
-
*/
|
|
7
|
-
export const isMobile = (userAgent) => {
|
|
8
|
-
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
9
|
-
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
10
|
-
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
11
|
-
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
12
|
-
};
|
|
13
|
-
export function checkDeviceType() {
|
|
14
|
-
const userAgent = navigator.userAgent.toLowerCase();
|
|
15
|
-
const width = screen.availWidth;
|
|
16
|
-
const height = screen.availHeight;
|
|
17
|
-
if (userAgent.includes('iphone')) {
|
|
18
|
-
return 'mobile';
|
|
19
|
-
}
|
|
20
|
-
if (userAgent.includes('android')) {
|
|
21
|
-
if (height > width && width < 800) {
|
|
22
|
-
return 'mobile';
|
|
23
|
-
}
|
|
24
|
-
if (width > height && height < 800) {
|
|
25
|
-
return 'tablet';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return 'desktop';
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* UserDepositWithdrawal custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Used to manually set the base path where assets can be found.
|
|
7
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
-
*/
|
|
15
|
-
export declare const setAssetPath: (path: string) => void;
|
|
16
|
-
|
|
17
|
-
export interface SetPlatformOptions {
|
|
18
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface UserDepositWithdrawal extends Components.UserDepositWithdrawal, HTMLElement {}
|
|
4
|
-
export const UserDepositWithdrawal: {
|
|
5
|
-
prototype: UserDepositWithdrawal;
|
|
6
|
-
new (): UserDepositWithdrawal;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|