@everymatrix/player-lugas-limit 1.44.0 → 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.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-449fb94e.js +1201 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/player-lugas-limit.cjs.entry.js +398 -422
- package/dist/cjs/player-lugas-limit.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/player-lugas-limit/index.js +1 -0
- package/dist/collection/components/player-lugas-limit/player-lugas-limit.css +1 -1
- package/dist/collection/components/player-lugas-limit/player-lugas-limit.js +473 -554
- package/dist/collection/utils/locale.utils.js +184 -184
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-7e4db82e.js +1174 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/player-lugas-limit.entry.js +398 -422
- package/dist/esm/player-lugas-limit.js +14 -11
- package/dist/player-lugas-limit/p-0cb2cc16.entry.js +1 -0
- package/dist/player-lugas-limit/p-1b35b3bc.js +2 -0
- package/dist/player-lugas-limit/p-e1255160.js +1 -0
- package/dist/player-lugas-limit/player-lugas-limit.esm.js +1 -1
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/packages/stencil/player-lugas-limit/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-lugas-limit/.stencil/packages/stencil/player-lugas-limit/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/player-lugas-limit/index.d.ts +1 -0
- package/dist/types/components/player-lugas-limit/player-lugas-limit.d.ts +80 -80
- package/dist/types/components.d.ts +18 -2
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-6a3e6de8.js +0 -1230
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/player-lugas-limit.d.ts +0 -11
- package/dist/components/player-lugas-limit.js +0 -494
- package/dist/esm/index-4c4101b9.js +0 -1204
- 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/player-lugas-limit/p-5f108446.entry.js +0 -1
- package/dist/player-lugas-limit/p-d4aa7282.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/player-lugas-limit/.stencil/packages/player-lugas-limit/stencil.config.d.ts +0 -2
|
@@ -1,571 +1,490 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getTranslations, translate } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
3
3
|
export class PlayerLugasLimit {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
107
|
-
this.validation =
|
|
4
|
+
constructor() {
|
|
5
|
+
this.setClientStyling = () => {
|
|
6
|
+
let sheet = document.createElement('style');
|
|
7
|
+
sheet.innerHTML = this.clientStyling;
|
|
8
|
+
this.stylingContainer.prepend(sheet);
|
|
9
|
+
};
|
|
10
|
+
this.setClientStylingURL = () => {
|
|
11
|
+
let url = new URL(this.clientStylingUrl);
|
|
12
|
+
let cssFile = document.createElement('style');
|
|
13
|
+
fetch(url.href)
|
|
14
|
+
.then((res) => res.text())
|
|
15
|
+
.then((data) => {
|
|
16
|
+
cssFile.innerHTML = data;
|
|
17
|
+
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
18
|
+
})
|
|
19
|
+
.catch((err) => {
|
|
20
|
+
console.log('error ', err);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
this.postPlayerSituation = (userAmount, keepLimit = false, initialNewLimit = false) => {
|
|
24
|
+
this.isButtonDisabled = true;
|
|
25
|
+
let url = new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`);
|
|
26
|
+
let roleLimitAmount = initialNewLimit ? this.amount : 0;
|
|
27
|
+
let bodyDraft = {
|
|
28
|
+
softMigration: this.flow == '1',
|
|
29
|
+
keepLimit: keepLimit,
|
|
30
|
+
roleLimitAmount: roleLimitAmount
|
|
31
|
+
};
|
|
32
|
+
userAmount && (bodyDraft['amount'] = `${userAmount}`);
|
|
33
|
+
let options = {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
headers: {
|
|
36
|
+
'X-SessionId': this.session,
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
'Authorization': `Bearer ${this.session}`
|
|
39
|
+
},
|
|
40
|
+
body: JSON.stringify(bodyDraft)
|
|
41
|
+
};
|
|
42
|
+
fetch(url.href, options)
|
|
43
|
+
.then((res) => {
|
|
44
|
+
if (res.status === 200) {
|
|
45
|
+
return res.json();
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.crossProviders = true;
|
|
49
|
+
this.dropDown = true;
|
|
50
|
+
throw new Error("HTTP status " + res.status);
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
.then((data) => {
|
|
54
|
+
this.isButtonDisabled = false;
|
|
55
|
+
this.kyc = data.popup;
|
|
56
|
+
this.validation = false;
|
|
57
|
+
this.dropDown = false;
|
|
58
|
+
if (data.operatorDepositLimitAmount) {
|
|
59
|
+
this.operatorDepositLimitAmount = data.operatorDepositLimitAmount;
|
|
60
|
+
}
|
|
61
|
+
if (data.regulatorDepositLimitAmount) {
|
|
62
|
+
this.regularDepositLimitAmount = data.regulatorDepositLimitAmount;
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
.catch((err) => {
|
|
66
|
+
this.isButtonDisabled = false;
|
|
67
|
+
// Handle any errors
|
|
68
|
+
console.error(err);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
this.handleClick = (input) => {
|
|
72
|
+
switch (input) {
|
|
73
|
+
case 'keepCurrentLimit':
|
|
74
|
+
this.postPlayerSituation(this.amount, true);
|
|
75
|
+
break;
|
|
76
|
+
case 'keepCurrentLimitNewUser':
|
|
77
|
+
// new user should not have a limit amount
|
|
78
|
+
this.postPlayerSituation(null, true);
|
|
79
|
+
break;
|
|
80
|
+
case 'postSituation':
|
|
81
|
+
this.postPlayerSituation();
|
|
82
|
+
break;
|
|
83
|
+
case 'setNewLimit':
|
|
84
|
+
this.dropDown = true;
|
|
85
|
+
break;
|
|
86
|
+
case 'UploadDocuments':
|
|
87
|
+
this.uploadDocuments.emit();
|
|
88
|
+
window.postMessage({ type: 'uploadDocuments' }, window.location.href);
|
|
89
|
+
break;
|
|
90
|
+
case 'Close':
|
|
91
|
+
this.closePopup.emit();
|
|
92
|
+
window.postMessage({ type: 'closePopup' }, window.location.href);
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
this.userId = '';
|
|
97
|
+
this.session = '';
|
|
98
|
+
this.endpoint = '';
|
|
99
|
+
this.currency = 'EUR';
|
|
100
|
+
this.flow = '';
|
|
101
|
+
this.amountMinMax = '';
|
|
102
|
+
this.amount = '';
|
|
103
|
+
this.lang = undefined;
|
|
104
|
+
this.clientStyling = '';
|
|
105
|
+
this.clientStylingUrl = '';
|
|
106
|
+
this.translationUrl = '';
|
|
107
|
+
this.validation = true;
|
|
108
|
+
this.kyc = undefined;
|
|
108
109
|
this.dropDown = false;
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
this.isLoading = false;
|
|
111
|
+
this.hasErrors = false;
|
|
112
|
+
this.inputValue = '';
|
|
113
|
+
this.isButtonDisabled = true;
|
|
114
|
+
this.crossProviders = false;
|
|
115
|
+
this.invalidInput = undefined;
|
|
116
|
+
this.userAmount = '';
|
|
117
|
+
this.operatorDepositLimitAmount = '';
|
|
118
|
+
this.regularDepositLimitAmount = '';
|
|
119
|
+
this.stylingAppends = false;
|
|
120
|
+
this.isWithinRange = undefined;
|
|
121
|
+
this.minimumRange = undefined;
|
|
122
|
+
}
|
|
123
|
+
componentDidRender() {
|
|
124
|
+
// start custom styling area
|
|
125
|
+
if (!this.stylingAppends && this.stylingContainer) {
|
|
126
|
+
if (this.clientStyling)
|
|
127
|
+
this.setClientStyling();
|
|
128
|
+
if (this.clientStylingUrl)
|
|
129
|
+
this.setClientStylingURL();
|
|
130
|
+
this.stylingAppends = true;
|
|
111
131
|
}
|
|
112
|
-
|
|
113
|
-
|
|
132
|
+
// end custom styling area
|
|
133
|
+
}
|
|
134
|
+
handleNewTranslations() {
|
|
135
|
+
this.isLoading = true;
|
|
136
|
+
getTranslations(this.translationUrl).then(() => {
|
|
137
|
+
this.isLoading = false;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
async componentWillLoad() {
|
|
141
|
+
if (this.translationUrl.length > 2) {
|
|
142
|
+
await getTranslations(this.translationUrl);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
handleSubmit(event) {
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
if (this.invalidInput) {
|
|
148
|
+
return;
|
|
114
149
|
}
|
|
115
|
-
|
|
116
|
-
.
|
|
117
|
-
this.isButtonDisabled = false;
|
|
118
|
-
// Handle any errors
|
|
119
|
-
console.error(err);
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
this.handleClick = (input) => {
|
|
123
|
-
switch (input) {
|
|
124
|
-
case 'keepCurrentLimit':
|
|
125
|
-
this.postPlayerSituation(this.amount, true);
|
|
126
|
-
break;
|
|
127
|
-
case 'keepCurrentLimitNewUser':
|
|
128
|
-
// new user should not have a limit amount
|
|
129
|
-
this.postPlayerSituation(null, true);
|
|
130
|
-
break;
|
|
131
|
-
case 'postSituation':
|
|
132
|
-
this.postPlayerSituation();
|
|
133
|
-
break;
|
|
134
|
-
case 'setNewLimit':
|
|
135
|
-
this.dropDown = true;
|
|
136
|
-
break;
|
|
137
|
-
case 'UploadDocuments':
|
|
138
|
-
this.uploadDocuments.emit();
|
|
139
|
-
window.postMessage({ type: 'uploadDocuments' }, window.location.href);
|
|
140
|
-
break;
|
|
141
|
-
case 'Close':
|
|
142
|
-
this.closePopup.emit();
|
|
143
|
-
window.postMessage({ type: 'closePopup' }, window.location.href);
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
componentDidRender() {
|
|
149
|
-
// start custom styling area
|
|
150
|
-
if (!this.stylingAppends && this.stylingContainer) {
|
|
151
|
-
if (this.clientStyling)
|
|
152
|
-
this.setClientStyling();
|
|
153
|
-
if (this.clientStylingUrl)
|
|
154
|
-
this.setClientStylingURL();
|
|
155
|
-
this.stylingAppends = true;
|
|
150
|
+
this.userAmount = this.inputValue;
|
|
151
|
+
this.postPlayerSituation(this.inputValue, false, true);
|
|
156
152
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
this.isLoading = true;
|
|
161
|
-
getTranslations(this.translationUrl).then(() => {
|
|
162
|
-
this.isLoading = false;
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
async componentWillLoad() {
|
|
166
|
-
if (this.translationUrl.length > 2) {
|
|
167
|
-
await getTranslations(this.translationUrl);
|
|
153
|
+
containsOnlyDigits(input) {
|
|
154
|
+
const regex = /^[0-9]+$/;
|
|
155
|
+
return regex.test(input);
|
|
168
156
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
157
|
+
handleInputChange(event) {
|
|
158
|
+
const inputValue = event.target.value;
|
|
159
|
+
this.inputValue = inputValue;
|
|
160
|
+
let min = parseInt(this.amountMinMax.split(',')[0]);
|
|
161
|
+
let max = parseInt(this.amountMinMax.split(',')[1]);
|
|
162
|
+
// Perform validation checks
|
|
163
|
+
this.isValidNumber = !isNaN(Number(inputValue)) && this.containsOnlyDigits(inputValue);
|
|
164
|
+
this.invalidInput = !this.isValidNumber;
|
|
165
|
+
this.minimumRange = Number(inputValue) >= min;
|
|
166
|
+
this.isWithinRange = Number(inputValue) <= max;
|
|
167
|
+
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange || !this.minimumRange;
|
|
174
168
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
this.isWithinRange = Number(inputValue) <= max;
|
|
192
|
-
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange || !this.minimumRange;
|
|
193
|
-
}
|
|
194
|
-
renderKYC(step) {
|
|
195
|
-
if (step == 0) {
|
|
196
|
-
//CLOSE MODAL
|
|
197
|
-
this.closePopup.emit();
|
|
198
|
-
window.postMessage({ type: 'closePopup' }, window.location.href);
|
|
199
|
-
return;
|
|
169
|
+
renderKYC(step) {
|
|
170
|
+
if (step == 0) {
|
|
171
|
+
//CLOSE MODAL
|
|
172
|
+
this.closePopup.emit();
|
|
173
|
+
window.postMessage({ type: 'closePopup' }, window.location.href);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (step == 1) {
|
|
177
|
+
return (h("div", { class: "ValidatorContainer" }, h("div", { class: "Paragraphs" }, h("p", null, translate('kycSure', this.lang, { values: { currency: this.currency } })), h("p", null, translate('kyc1', this.lang, { values: { currency: this.currency } })), h("div", { class: "ContainerButtons" }, h("button", { class: "FirstButton", onClick: () => this.postPlayerSituation(this.userAmount, false) }, translate('setNewLimit', this.lang, { values: { currency: this.currency } })), h("button", { class: "SecondButton", onClick: () => this.handleClick('keepCurrentLimit') }, translate('keepExistingLimit', this.lang, { values: { currency: this.currency } }))))));
|
|
178
|
+
}
|
|
179
|
+
else if (step == 2) {
|
|
180
|
+
return (h("div", { class: "ValidatorContainer" }, h("div", { class: "Paragraphs" }, h("p", null, translate('kycThanks', this.lang, { values: { currency: this.currency } })), h("p", { innerHTML: translate('kyc2', this.lang, { values: { currency: this.currency, amount: this.regularDepositLimitAmount } }) }), h("div", { class: "ContainerButtons" }, h("button", { class: "FirstButton", onClick: () => this.handleClick('Close') }, translate('Close', this.lang, { values: { currency: this.currency } })), h("button", { class: "SecondButton", onClick: () => this.handleClick('UploadDocuments') }, translate('UploadDocuments', this.lang, { values: { currency: this.currency } }))))));
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
return (h("div", { class: "ValidatorContainer" }, h("div", { class: "Paragraphs" }, h("p", null, translate('kycThanks', this.lang, { values: { currency: this.currency } })), h("p", null, translate('kyc3', this.lang, { values: { currency: this.currency } })), h("div", { class: "ContainerButtons" }, h("button", { class: "SecondButton", onClick: () => this.handleClick('Close') }, translate('Close', this.lang, { values: { currency: this.currency } }))))));
|
|
184
|
+
}
|
|
200
185
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
186
|
+
renderValidator(input) {
|
|
187
|
+
if (input == '1') {
|
|
188
|
+
return (h("div", { class: "ValidatorContainer" }, h("div", { class: "Paragraphs" }, h("p", null, translate('softMigrationP1', this.lang, { values: { currency: this.currency } })), h("p", { innerHTML: translate('softMigrationP2', this.lang, { values: { currency: this.currency } }) }), h("p", { innerHTML: translate('softMigrationP3', this.lang, { values: { currency: this.currency, amount: this.amount } }) })), this.crossProviders ?
|
|
189
|
+
h("div", { class: "CrossProvider" }, h("svg", { width: "4", height: "17", viewBox: "0 0 4 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "4", height: "12", rx: "2", fill: "white" }), h("rect", { y: "14", width: "4", height: "3", rx: "1.5", fill: "white" })), h("p", null, translate('crossProviders', this.lang, { values: { currency: this.currency } })))
|
|
190
|
+
:
|
|
191
|
+
h("div", { class: "ContainerButtons" }, h("button", { class: "FirstButton", onClick: () => this.handleClick('setNewLimit') }, translate('setNewLimit', this.lang, { values: { currency: this.currency } })), h("button", { class: "SecondButton", onClick: () => this.handleClick('keepCurrentLimit') }, translate('confirm', this.lang, { values: { currency: this.currency } })))));
|
|
192
|
+
}
|
|
193
|
+
else if (input == '2') {
|
|
194
|
+
return (h("div", { class: "ValidatorContainer" }, h("div", { class: "Paragraphs" }, h("p", null, translate('newUserP1', this.lang, { values: { currency: this.currency } })), h("p", null, translate('newUserP2', this.lang, { values: { currency: this.currency } })), h("p", null, translate('newUserP3', this.lang, { values: { currency: this.currency } }))), this.crossProviders ?
|
|
195
|
+
h("div", { class: "CrossProvider" }, h("svg", { width: "4", height: "17", viewBox: "0 0 4 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "4", height: "12", rx: "2", fill: "white" }), h("rect", { y: "14", width: "4", height: "3", rx: "1.5", fill: "white" })), h("p", null, translate('crossProviders', this.lang, { values: { currency: this.currency } })))
|
|
196
|
+
:
|
|
197
|
+
h("div", { class: "ContainerButtons" }, h("button", { class: "FirstButton", onClick: () => this.handleClick('setNewLimit') }, translate('setNewLimit', this.lang, { values: { currency: this.currency } })), h("button", { class: "SecondButton", onClick: () => this.handleClick('keepCurrentLimitNewUser') }, translate('keepExistingLimit', this.lang, { values: { currency: this.currency } })))));
|
|
198
|
+
}
|
|
209
199
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
200
|
+
render() {
|
|
201
|
+
let kycConfirmation = this.renderKYC(this.kyc);
|
|
202
|
+
let validationContainer = this.renderValidator(this.flow);
|
|
203
|
+
if (this.isLoading) {
|
|
204
|
+
return (h("div", null, h("p", null, translate('loading', this.lang, { values: { currency: this.currency } }))));
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
if (this.hasErrors) {
|
|
208
|
+
return (h("div", null, h("p", null, translate('error', this.lang, { values: { currency: this.currency } }))));
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "Container" }, h("div", { class: "ModalHeader" }, h("svg", { width: "107", height: "20", viewBox: "0 0 107 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z", fill: "#7EC51E" }), h("path", { d: "M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z", fill: "#002554" }), h("path", { d: "M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z", fill: "#002554" }), h("path", { d: "M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z", fill: "#002554" }), h("path", { d: "M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z", fill: "#002554" }), h("path", { d: "M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z", fill: "#002554" }), h("path", { d: "M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z", fill: "#002554" }), h("path", { d: "M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z", fill: "#002554" }), h("path", { d: "M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z", fill: "#002554" }), h("path", { d: "M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z", fill: "#002554" }), h("path", { d: "M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z", fill: "#002554" }), h("path", { d: "M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z", fill: "#002554" }))), h("div", { class: "ModalBody" }, this.validation ? validationContainer : kycConfirmation, this.dropDown ?
|
|
212
|
+
h("div", null, h("hr", null), h("div", { class: "ModalFooter" }, h("div", { class: "Dropdown" }, h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), h("form", { onSubmit: (event) => this.handleSubmit(event) }, h("div", { class: "DropdownInput" }, h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), (this.invalidInput || !this.isWithinRange || !this.minimumRange) && this.invalidInput != undefined ?
|
|
213
|
+
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : !this.minimumRange ? (translate('minimumRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
214
|
+
: null))))
|
|
215
|
+
: null))));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
h("button", { class: "SecondButton", onClick: () => this.handleClick('Close') }, translate('Close', this.lang, { values: { currency: this.currency } }))))));
|
|
219
|
+
static get is() { return "player-lugas-limit"; }
|
|
220
|
+
static get encapsulation() { return "shadow"; }
|
|
221
|
+
static get originalStyleUrls() {
|
|
222
|
+
return {
|
|
223
|
+
"$": ["player-lugas-limit.scss"]
|
|
224
|
+
};
|
|
226
225
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
h("div", { class: "Paragraphs" },
|
|
232
|
-
h("p", null, translate('softMigrationP1', this.lang, { values: { currency: this.currency } })),
|
|
233
|
-
h("p", { innerHTML: translate('softMigrationP2', this.lang, { values: { currency: this.currency } }) }),
|
|
234
|
-
h("p", { innerHTML: translate('softMigrationP3', this.lang, { values: { currency: this.currency, amount: this.amount } }) })),
|
|
235
|
-
this.crossProviders ?
|
|
236
|
-
h("div", { class: "CrossProvider" },
|
|
237
|
-
h("svg", { width: "4", height: "17", viewBox: "0 0 4 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
238
|
-
h("rect", { width: "4", height: "12", rx: "2", fill: "white" }),
|
|
239
|
-
h("rect", { y: "14", width: "4", height: "3", rx: "1.5", fill: "white" })),
|
|
240
|
-
h("p", null, translate('crossProviders', this.lang, { values: { currency: this.currency } })))
|
|
241
|
-
:
|
|
242
|
-
h("div", { class: "ContainerButtons" },
|
|
243
|
-
h("button", { class: "FirstButton", onClick: () => this.handleClick('setNewLimit') }, translate('setNewLimit', this.lang, { values: { currency: this.currency } })),
|
|
244
|
-
h("button", { class: "SecondButton", onClick: () => this.handleClick('keepCurrentLimit') }, translate('confirm', this.lang, { values: { currency: this.currency } })))));
|
|
226
|
+
static get styleUrls() {
|
|
227
|
+
return {
|
|
228
|
+
"$": ["player-lugas-limit.css"]
|
|
229
|
+
};
|
|
245
230
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
231
|
+
static get properties() {
|
|
232
|
+
return {
|
|
233
|
+
"userId": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "The userId"
|
|
246
|
+
},
|
|
247
|
+
"attribute": "user-id",
|
|
248
|
+
"reflect": false,
|
|
249
|
+
"defaultValue": "''"
|
|
250
|
+
},
|
|
251
|
+
"session": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"mutable": false,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "string",
|
|
256
|
+
"resolved": "string",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": false,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": "The session"
|
|
264
|
+
},
|
|
265
|
+
"attribute": "session",
|
|
266
|
+
"reflect": false,
|
|
267
|
+
"defaultValue": "''"
|
|
268
|
+
},
|
|
269
|
+
"endpoint": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"mutable": false,
|
|
272
|
+
"complexType": {
|
|
273
|
+
"original": "string",
|
|
274
|
+
"resolved": "string",
|
|
275
|
+
"references": {}
|
|
276
|
+
},
|
|
277
|
+
"required": false,
|
|
278
|
+
"optional": false,
|
|
279
|
+
"docs": {
|
|
280
|
+
"tags": [],
|
|
281
|
+
"text": "The NorWAy endpoint"
|
|
282
|
+
},
|
|
283
|
+
"attribute": "endpoint",
|
|
284
|
+
"reflect": false,
|
|
285
|
+
"defaultValue": "''"
|
|
286
|
+
},
|
|
287
|
+
"currency": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "string",
|
|
292
|
+
"resolved": "string",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": "Currency of the player"
|
|
300
|
+
},
|
|
301
|
+
"attribute": "currency",
|
|
302
|
+
"reflect": false,
|
|
303
|
+
"defaultValue": "'EUR'"
|
|
304
|
+
},
|
|
305
|
+
"flow": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string",
|
|
310
|
+
"resolved": "string",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": false,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "This chooses what type of flow the widget will have, \u201C1\u201D will be the Soft Migration Dialog and the \u201C2\u201D will be the New User"
|
|
318
|
+
},
|
|
319
|
+
"attribute": "flow",
|
|
320
|
+
"reflect": false,
|
|
321
|
+
"defaultValue": "''"
|
|
322
|
+
},
|
|
323
|
+
"amountMinMax": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "string",
|
|
328
|
+
"resolved": "string",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": "This decides the minimum and maximum mandatory amount for setting a new limit, example: amountMinMax=\u201C10,3000\u201D"
|
|
336
|
+
},
|
|
337
|
+
"attribute": "amount-min-max",
|
|
338
|
+
"reflect": false,
|
|
339
|
+
"defaultValue": "''"
|
|
340
|
+
},
|
|
341
|
+
"amount": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"mutable": false,
|
|
344
|
+
"complexType": {
|
|
345
|
+
"original": "string",
|
|
346
|
+
"resolved": "string",
|
|
347
|
+
"references": {}
|
|
348
|
+
},
|
|
349
|
+
"required": false,
|
|
350
|
+
"optional": false,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [],
|
|
353
|
+
"text": "The amount"
|
|
354
|
+
},
|
|
355
|
+
"attribute": "amount",
|
|
356
|
+
"reflect": false,
|
|
357
|
+
"defaultValue": "''"
|
|
358
|
+
},
|
|
359
|
+
"lang": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"mutable": false,
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "string",
|
|
364
|
+
"resolved": "string",
|
|
365
|
+
"references": {}
|
|
366
|
+
},
|
|
367
|
+
"required": false,
|
|
368
|
+
"optional": false,
|
|
369
|
+
"docs": {
|
|
370
|
+
"tags": [],
|
|
371
|
+
"text": "The lang"
|
|
372
|
+
},
|
|
373
|
+
"attribute": "lang",
|
|
374
|
+
"reflect": false
|
|
375
|
+
},
|
|
376
|
+
"clientStyling": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"mutable": false,
|
|
379
|
+
"complexType": {
|
|
380
|
+
"original": "string",
|
|
381
|
+
"resolved": "string",
|
|
382
|
+
"references": {}
|
|
383
|
+
},
|
|
384
|
+
"required": false,
|
|
385
|
+
"optional": false,
|
|
386
|
+
"docs": {
|
|
387
|
+
"tags": [],
|
|
388
|
+
"text": "Client custom styling via string"
|
|
389
|
+
},
|
|
390
|
+
"attribute": "client-styling",
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"defaultValue": "''"
|
|
393
|
+
},
|
|
394
|
+
"clientStylingUrl": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "string",
|
|
399
|
+
"resolved": "string",
|
|
400
|
+
"references": {}
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"optional": false,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [],
|
|
406
|
+
"text": "Client custom styling via url"
|
|
407
|
+
},
|
|
408
|
+
"attribute": "client-styling-url",
|
|
409
|
+
"reflect": false,
|
|
410
|
+
"defaultValue": "''"
|
|
411
|
+
},
|
|
412
|
+
"translationUrl": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"mutable": false,
|
|
415
|
+
"complexType": {
|
|
416
|
+
"original": "string",
|
|
417
|
+
"resolved": "string",
|
|
418
|
+
"references": {}
|
|
419
|
+
},
|
|
420
|
+
"required": false,
|
|
421
|
+
"optional": false,
|
|
422
|
+
"docs": {
|
|
423
|
+
"tags": [],
|
|
424
|
+
"text": "The translationurl"
|
|
425
|
+
},
|
|
426
|
+
"attribute": "translation-url",
|
|
427
|
+
"reflect": false,
|
|
428
|
+
"defaultValue": "''"
|
|
429
|
+
}
|
|
430
|
+
};
|
|
262
431
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
432
|
+
static get states() {
|
|
433
|
+
return {
|
|
434
|
+
"validation": {},
|
|
435
|
+
"kyc": {},
|
|
436
|
+
"dropDown": {},
|
|
437
|
+
"isLoading": {},
|
|
438
|
+
"hasErrors": {},
|
|
439
|
+
"inputValue": {},
|
|
440
|
+
"isButtonDisabled": {},
|
|
441
|
+
"crossProviders": {},
|
|
442
|
+
"invalidInput": {},
|
|
443
|
+
"userAmount": {},
|
|
444
|
+
"operatorDepositLimitAmount": {},
|
|
445
|
+
"regularDepositLimitAmount": {},
|
|
446
|
+
"stylingAppends": {},
|
|
447
|
+
"isWithinRange": {},
|
|
448
|
+
"minimumRange": {}
|
|
449
|
+
};
|
|
270
450
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }),
|
|
304
|
-
h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))),
|
|
305
|
-
(this.invalidInput || !this.isWithinRange || !this.minimumRange) && this.invalidInput != undefined ?
|
|
306
|
-
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : !this.minimumRange ? (translate('minimumRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
307
|
-
: null))))
|
|
308
|
-
: null))));
|
|
309
|
-
}
|
|
451
|
+
static get events() {
|
|
452
|
+
return [{
|
|
453
|
+
"method": "uploadDocuments",
|
|
454
|
+
"name": "uploadDocuments",
|
|
455
|
+
"bubbles": true,
|
|
456
|
+
"cancelable": true,
|
|
457
|
+
"composed": true,
|
|
458
|
+
"docs": {
|
|
459
|
+
"tags": [],
|
|
460
|
+
"text": "Upload documents event"
|
|
461
|
+
},
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "any",
|
|
464
|
+
"resolved": "any",
|
|
465
|
+
"references": {}
|
|
466
|
+
}
|
|
467
|
+
}, {
|
|
468
|
+
"method": "closePopup",
|
|
469
|
+
"name": "closePopup",
|
|
470
|
+
"bubbles": true,
|
|
471
|
+
"cancelable": true,
|
|
472
|
+
"composed": true,
|
|
473
|
+
"docs": {
|
|
474
|
+
"tags": [],
|
|
475
|
+
"text": ""
|
|
476
|
+
},
|
|
477
|
+
"complexType": {
|
|
478
|
+
"original": "any",
|
|
479
|
+
"resolved": "any",
|
|
480
|
+
"references": {}
|
|
481
|
+
}
|
|
482
|
+
}];
|
|
310
483
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}; }
|
|
317
|
-
static get styleUrls() { return {
|
|
318
|
-
"$": ["player-lugas-limit.css"]
|
|
319
|
-
}; }
|
|
320
|
-
static get properties() { return {
|
|
321
|
-
"userId": {
|
|
322
|
-
"type": "string",
|
|
323
|
-
"mutable": false,
|
|
324
|
-
"complexType": {
|
|
325
|
-
"original": "string",
|
|
326
|
-
"resolved": "string",
|
|
327
|
-
"references": {}
|
|
328
|
-
},
|
|
329
|
-
"required": false,
|
|
330
|
-
"optional": false,
|
|
331
|
-
"docs": {
|
|
332
|
-
"tags": [],
|
|
333
|
-
"text": "The userId"
|
|
334
|
-
},
|
|
335
|
-
"attribute": "user-id",
|
|
336
|
-
"reflect": false,
|
|
337
|
-
"defaultValue": "''"
|
|
338
|
-
},
|
|
339
|
-
"session": {
|
|
340
|
-
"type": "string",
|
|
341
|
-
"mutable": false,
|
|
342
|
-
"complexType": {
|
|
343
|
-
"original": "string",
|
|
344
|
-
"resolved": "string",
|
|
345
|
-
"references": {}
|
|
346
|
-
},
|
|
347
|
-
"required": false,
|
|
348
|
-
"optional": false,
|
|
349
|
-
"docs": {
|
|
350
|
-
"tags": [],
|
|
351
|
-
"text": "The session"
|
|
352
|
-
},
|
|
353
|
-
"attribute": "session",
|
|
354
|
-
"reflect": false,
|
|
355
|
-
"defaultValue": "''"
|
|
356
|
-
},
|
|
357
|
-
"endpoint": {
|
|
358
|
-
"type": "string",
|
|
359
|
-
"mutable": false,
|
|
360
|
-
"complexType": {
|
|
361
|
-
"original": "string",
|
|
362
|
-
"resolved": "string",
|
|
363
|
-
"references": {}
|
|
364
|
-
},
|
|
365
|
-
"required": false,
|
|
366
|
-
"optional": false,
|
|
367
|
-
"docs": {
|
|
368
|
-
"tags": [],
|
|
369
|
-
"text": "The NorWAy endpoint"
|
|
370
|
-
},
|
|
371
|
-
"attribute": "endpoint",
|
|
372
|
-
"reflect": false,
|
|
373
|
-
"defaultValue": "''"
|
|
374
|
-
},
|
|
375
|
-
"currency": {
|
|
376
|
-
"type": "string",
|
|
377
|
-
"mutable": false,
|
|
378
|
-
"complexType": {
|
|
379
|
-
"original": "string",
|
|
380
|
-
"resolved": "string",
|
|
381
|
-
"references": {}
|
|
382
|
-
},
|
|
383
|
-
"required": false,
|
|
384
|
-
"optional": false,
|
|
385
|
-
"docs": {
|
|
386
|
-
"tags": [],
|
|
387
|
-
"text": "Currency of the player"
|
|
388
|
-
},
|
|
389
|
-
"attribute": "currency",
|
|
390
|
-
"reflect": false,
|
|
391
|
-
"defaultValue": "'EUR'"
|
|
392
|
-
},
|
|
393
|
-
"flow": {
|
|
394
|
-
"type": "string",
|
|
395
|
-
"mutable": false,
|
|
396
|
-
"complexType": {
|
|
397
|
-
"original": "string",
|
|
398
|
-
"resolved": "string",
|
|
399
|
-
"references": {}
|
|
400
|
-
},
|
|
401
|
-
"required": false,
|
|
402
|
-
"optional": false,
|
|
403
|
-
"docs": {
|
|
404
|
-
"tags": [],
|
|
405
|
-
"text": "This chooses what type of flow the widget will have, \u201C1\u201D will be the Soft Migration Dialog and the \u201C2\u201D will be the New User"
|
|
406
|
-
},
|
|
407
|
-
"attribute": "flow",
|
|
408
|
-
"reflect": false,
|
|
409
|
-
"defaultValue": "''"
|
|
410
|
-
},
|
|
411
|
-
"amountMinMax": {
|
|
412
|
-
"type": "string",
|
|
413
|
-
"mutable": false,
|
|
414
|
-
"complexType": {
|
|
415
|
-
"original": "string",
|
|
416
|
-
"resolved": "string",
|
|
417
|
-
"references": {}
|
|
418
|
-
},
|
|
419
|
-
"required": false,
|
|
420
|
-
"optional": false,
|
|
421
|
-
"docs": {
|
|
422
|
-
"tags": [],
|
|
423
|
-
"text": "This decides the minimum and maximum mandatory amount for setting a new limit, example: amountMinMax=\u201C10,3000\u201D"
|
|
424
|
-
},
|
|
425
|
-
"attribute": "amount-min-max",
|
|
426
|
-
"reflect": false,
|
|
427
|
-
"defaultValue": "''"
|
|
428
|
-
},
|
|
429
|
-
"amount": {
|
|
430
|
-
"type": "string",
|
|
431
|
-
"mutable": false,
|
|
432
|
-
"complexType": {
|
|
433
|
-
"original": "string",
|
|
434
|
-
"resolved": "string",
|
|
435
|
-
"references": {}
|
|
436
|
-
},
|
|
437
|
-
"required": false,
|
|
438
|
-
"optional": false,
|
|
439
|
-
"docs": {
|
|
440
|
-
"tags": [],
|
|
441
|
-
"text": "The amount"
|
|
442
|
-
},
|
|
443
|
-
"attribute": "amount",
|
|
444
|
-
"reflect": false,
|
|
445
|
-
"defaultValue": "''"
|
|
446
|
-
},
|
|
447
|
-
"lang": {
|
|
448
|
-
"type": "string",
|
|
449
|
-
"mutable": false,
|
|
450
|
-
"complexType": {
|
|
451
|
-
"original": "string",
|
|
452
|
-
"resolved": "string",
|
|
453
|
-
"references": {}
|
|
454
|
-
},
|
|
455
|
-
"required": false,
|
|
456
|
-
"optional": false,
|
|
457
|
-
"docs": {
|
|
458
|
-
"tags": [],
|
|
459
|
-
"text": "The lang"
|
|
460
|
-
},
|
|
461
|
-
"attribute": "lang",
|
|
462
|
-
"reflect": false
|
|
463
|
-
},
|
|
464
|
-
"clientStyling": {
|
|
465
|
-
"type": "string",
|
|
466
|
-
"mutable": false,
|
|
467
|
-
"complexType": {
|
|
468
|
-
"original": "string",
|
|
469
|
-
"resolved": "string",
|
|
470
|
-
"references": {}
|
|
471
|
-
},
|
|
472
|
-
"required": false,
|
|
473
|
-
"optional": false,
|
|
474
|
-
"docs": {
|
|
475
|
-
"tags": [],
|
|
476
|
-
"text": "Client custom styling via string"
|
|
477
|
-
},
|
|
478
|
-
"attribute": "client-styling",
|
|
479
|
-
"reflect": false,
|
|
480
|
-
"defaultValue": "''"
|
|
481
|
-
},
|
|
482
|
-
"clientStylingUrl": {
|
|
483
|
-
"type": "string",
|
|
484
|
-
"mutable": false,
|
|
485
|
-
"complexType": {
|
|
486
|
-
"original": "string",
|
|
487
|
-
"resolved": "string",
|
|
488
|
-
"references": {}
|
|
489
|
-
},
|
|
490
|
-
"required": false,
|
|
491
|
-
"optional": false,
|
|
492
|
-
"docs": {
|
|
493
|
-
"tags": [],
|
|
494
|
-
"text": "Client custom styling via url"
|
|
495
|
-
},
|
|
496
|
-
"attribute": "client-styling-url",
|
|
497
|
-
"reflect": false,
|
|
498
|
-
"defaultValue": "''"
|
|
499
|
-
},
|
|
500
|
-
"translationUrl": {
|
|
501
|
-
"type": "string",
|
|
502
|
-
"mutable": false,
|
|
503
|
-
"complexType": {
|
|
504
|
-
"original": "string",
|
|
505
|
-
"resolved": "string",
|
|
506
|
-
"references": {}
|
|
507
|
-
},
|
|
508
|
-
"required": false,
|
|
509
|
-
"optional": false,
|
|
510
|
-
"docs": {
|
|
511
|
-
"tags": [],
|
|
512
|
-
"text": "The translationurl"
|
|
513
|
-
},
|
|
514
|
-
"attribute": "translation-url",
|
|
515
|
-
"reflect": false,
|
|
516
|
-
"defaultValue": "''"
|
|
484
|
+
static get watchers() {
|
|
485
|
+
return [{
|
|
486
|
+
"propName": "translationUrl",
|
|
487
|
+
"methodName": "handleNewTranslations"
|
|
488
|
+
}];
|
|
517
489
|
}
|
|
518
|
-
}; }
|
|
519
|
-
static get states() { return {
|
|
520
|
-
"validation": {},
|
|
521
|
-
"kyc": {},
|
|
522
|
-
"dropDown": {},
|
|
523
|
-
"isLoading": {},
|
|
524
|
-
"hasErrors": {},
|
|
525
|
-
"inputValue": {},
|
|
526
|
-
"isButtonDisabled": {},
|
|
527
|
-
"crossProviders": {},
|
|
528
|
-
"invalidInput": {},
|
|
529
|
-
"userAmount": {},
|
|
530
|
-
"operatorDepositLimitAmount": {},
|
|
531
|
-
"regularDepositLimitAmount": {},
|
|
532
|
-
"stylingAppends": {},
|
|
533
|
-
"isWithinRange": {},
|
|
534
|
-
"minimumRange": {}
|
|
535
|
-
}; }
|
|
536
|
-
static get events() { return [{
|
|
537
|
-
"method": "uploadDocuments",
|
|
538
|
-
"name": "uploadDocuments",
|
|
539
|
-
"bubbles": true,
|
|
540
|
-
"cancelable": true,
|
|
541
|
-
"composed": true,
|
|
542
|
-
"docs": {
|
|
543
|
-
"tags": [],
|
|
544
|
-
"text": "Upload documents event"
|
|
545
|
-
},
|
|
546
|
-
"complexType": {
|
|
547
|
-
"original": "any",
|
|
548
|
-
"resolved": "any",
|
|
549
|
-
"references": {}
|
|
550
|
-
}
|
|
551
|
-
}, {
|
|
552
|
-
"method": "closePopup",
|
|
553
|
-
"name": "closePopup",
|
|
554
|
-
"bubbles": true,
|
|
555
|
-
"cancelable": true,
|
|
556
|
-
"composed": true,
|
|
557
|
-
"docs": {
|
|
558
|
-
"tags": [],
|
|
559
|
-
"text": ""
|
|
560
|
-
},
|
|
561
|
-
"complexType": {
|
|
562
|
-
"original": "any",
|
|
563
|
-
"resolved": "any",
|
|
564
|
-
"references": {}
|
|
565
|
-
}
|
|
566
|
-
}]; }
|
|
567
|
-
static get watchers() { return [{
|
|
568
|
-
"propName": "translationUrl",
|
|
569
|
-
"methodName": "handleNewTranslations"
|
|
570
|
-
}]; }
|
|
571
490
|
}
|