@everymatrix/user-funds-acknowledgment 0.0.1
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-e7d6647a.js +1220 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/user-funds-acknowledgment-93b40125.js +522 -0
- package/dist/cjs/user-funds-acknowledgment.cjs.entry.js +10 -0
- package/dist/cjs/user-funds-acknowledgment.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/user-funds-acknowledgment/index.js +1 -0
- package/dist/collection/components/user-funds-acknowledgment/user-funds-acknowledgment.css +108 -0
- package/dist/collection/components/user-funds-acknowledgment/user-funds-acknowledgment.js +533 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +161 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-eb00caf2.js +1194 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/user-funds-acknowledgment-e5293ada.js +520 -0
- package/dist/esm/user-funds-acknowledgment.entry.js +2 -0
- package/dist/esm/user-funds-acknowledgment.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/packages/stencil/user-funds-acknowledgment/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/packages/stencil/user-funds-acknowledgment/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/packages/stencil/user-funds-acknowledgment/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/packages/stencil/user-funds-acknowledgment/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-funds-acknowledgment/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/user-funds-acknowledgment/index.d.ts +1 -0
- package/dist/types/components/user-funds-acknowledgment/user-funds-acknowledgment.d.ts +78 -0
- package/dist/types/components.d.ts +115 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/user-funds-acknowledgment/app-globals-0f993ce5.js +1 -0
- package/dist/user-funds-acknowledgment/index-eb00caf2.js +2 -0
- package/dist/user-funds-acknowledgment/index.esm.js +1 -0
- package/dist/user-funds-acknowledgment/user-funds-acknowledgment-e5293ada.js +1 -0
- package/dist/user-funds-acknowledgment/user-funds-acknowledgment.entry.js +1 -0
- package/dist/user-funds-acknowledgment/user-funds-acknowledgment.esm.js +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 +27 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.QueryReferenceContainer {
|
|
6
|
+
height: 100%;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.UserProtectionFundsTitle {
|
|
11
|
+
font-size: 1.2rem;
|
|
12
|
+
font-weight: 200;
|
|
13
|
+
text-align: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.CloseButton {
|
|
17
|
+
width: 25px;
|
|
18
|
+
height: 25px;
|
|
19
|
+
align-self: flex-end;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.UserProtectionFundsContainer {
|
|
23
|
+
font-family: inherit;
|
|
24
|
+
font-weight: 100;
|
|
25
|
+
height: 100%;
|
|
26
|
+
padding: 1rem 1.5rem;
|
|
27
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
border-radius: var(--emw--border-radius-large, 20px);
|
|
32
|
+
max-width: fit-content;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ConsentSubmitButton {
|
|
36
|
+
font-size: 1rem;
|
|
37
|
+
font-family: var(--emw--button-typography);
|
|
38
|
+
padding: 0.4rem 1.4rem;
|
|
39
|
+
background: var(--emw--button-background-color, #FFFFFF);
|
|
40
|
+
border: var(--emw--button-border, 2px solid #000000);
|
|
41
|
+
color: var(--emw--button-text-color, #000000);
|
|
42
|
+
border-radius: var(--emw--button-border-radius, 10px);
|
|
43
|
+
align-self: center;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
.ConsentSubmitButton:disabled {
|
|
47
|
+
border: 2px solid #ccc;
|
|
48
|
+
color: #ccc;
|
|
49
|
+
cursor: unset;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ButtonsWrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
margin-top: 10px;
|
|
56
|
+
gap: 40px;
|
|
57
|
+
}
|
|
58
|
+
.ButtonsWrapper button:only-child {
|
|
59
|
+
margin-left: auto;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.UserProtectionError {
|
|
63
|
+
color: var(--emw--color-error, #FD2839);
|
|
64
|
+
text-align: center;
|
|
65
|
+
height: 22px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media screen and (max-width: 320px) {
|
|
69
|
+
.QueryReferenceContainer {
|
|
70
|
+
font-size: 0.8rem;
|
|
71
|
+
color: var(--emw--button-text-color, #000000);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.spinner {
|
|
75
|
+
animation: rotate 2s linear infinite;
|
|
76
|
+
z-index: 2;
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 50%;
|
|
79
|
+
left: 50%;
|
|
80
|
+
margin: -25px 0 0 -25px;
|
|
81
|
+
width: 50px;
|
|
82
|
+
height: 50px;
|
|
83
|
+
}
|
|
84
|
+
.spinner .path {
|
|
85
|
+
stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));
|
|
86
|
+
stroke-linecap: round;
|
|
87
|
+
animation: dash 1.5s ease-in-out infinite;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes rotate {
|
|
91
|
+
100% {
|
|
92
|
+
transform: rotate(360deg);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@keyframes dash {
|
|
96
|
+
0% {
|
|
97
|
+
stroke-dasharray: 1, 150;
|
|
98
|
+
stroke-dashoffset: 0;
|
|
99
|
+
}
|
|
100
|
+
50% {
|
|
101
|
+
stroke-dasharray: 90, 150;
|
|
102
|
+
stroke-dashoffset: -35;
|
|
103
|
+
}
|
|
104
|
+
100% {
|
|
105
|
+
stroke-dasharray: 90, 150;
|
|
106
|
+
stroke-dashoffset: -124;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
|
+
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
4
|
+
export class UserFundsAcknowledgment {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.abortController = null;
|
|
7
|
+
this.TIMEOUT_MS = 10000; // 10 seconds
|
|
8
|
+
/**
|
|
9
|
+
* Returns the formatted balance
|
|
10
|
+
* @param balance -> the balance value to be formatted
|
|
11
|
+
*/
|
|
12
|
+
this.formatBalance = (balance) => {
|
|
13
|
+
if (this.customdisplayformat) {
|
|
14
|
+
return this.formatFromCustom(balance);
|
|
15
|
+
}
|
|
16
|
+
const locales = this.currencylocale || this.language;
|
|
17
|
+
const formatOptions = {
|
|
18
|
+
style: 'currency',
|
|
19
|
+
currency: this.playercurrency,
|
|
20
|
+
useGrouping: true,
|
|
21
|
+
currencyDisplay: this.currencydisplay,
|
|
22
|
+
maximumFractionDigits: this.maximumfractiondigits === '' || isNaN(Number(this.maximumfractiondigits)) ? 2 : Number(this.maximumfractiondigits),
|
|
23
|
+
minimumFractionDigits: this.minimumfractiondigits === '' || isNaN(Number(this.minimumfractiondigits)) ? 0 : Number(this.minimumfractiondigits),
|
|
24
|
+
};
|
|
25
|
+
return new Intl.NumberFormat(locales, formatOptions).format(balance);
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Parses customdisplayformat and returns the formatted balance accordingly.
|
|
29
|
+
* Example:
|
|
30
|
+
* if customdisplayformat = '{amount|,.1} {currency}', currency = 'EUR'
|
|
31
|
+
* then formatFromCustom(123123.199) = '123,123.1 EUR'
|
|
32
|
+
* @param balance
|
|
33
|
+
*/
|
|
34
|
+
this.formatFromCustom = (balance) => {
|
|
35
|
+
const tokens = [];
|
|
36
|
+
let acc = '';
|
|
37
|
+
for (const char of this.customdisplayformat) {
|
|
38
|
+
switch (char) {
|
|
39
|
+
default:
|
|
40
|
+
acc += char;
|
|
41
|
+
break;
|
|
42
|
+
case '{':
|
|
43
|
+
acc && tokens.push(acc);
|
|
44
|
+
acc = '';
|
|
45
|
+
break;
|
|
46
|
+
case '}':
|
|
47
|
+
const [variable, args] = acc.split('|');
|
|
48
|
+
acc = '';
|
|
49
|
+
if (variable.toLowerCase() === 'currency') {
|
|
50
|
+
acc = this.playercurrency;
|
|
51
|
+
}
|
|
52
|
+
else if (variable.toLowerCase() === 'amount') {
|
|
53
|
+
// defaults
|
|
54
|
+
let sepThousands = ',';
|
|
55
|
+
let sepDecimal = '.';
|
|
56
|
+
let decimals = 2;
|
|
57
|
+
// override defaults if args provided (' ' is considered empty so default is used)
|
|
58
|
+
if (args) {
|
|
59
|
+
args[0] !== ' ' && (sepThousands = args[0]);
|
|
60
|
+
args[1] !== ' ' && (sepDecimal = args[1]);
|
|
61
|
+
args[2] !== ' ' && !isNaN(Number(args[2])) && (decimals = Number(args[2]));
|
|
62
|
+
}
|
|
63
|
+
// separate int and fractional part, also round down to desired precision
|
|
64
|
+
let [integerPart, fractionalPart] = String(Math.floor(balance * 10 ** decimals) / 10 ** decimals).split('.');
|
|
65
|
+
// format int part by adding thousands separators
|
|
66
|
+
acc += integerPart[0];
|
|
67
|
+
for (let i = 1; i < integerPart.length; ++i) {
|
|
68
|
+
if ((integerPart.length - i) % 3 === 0) {
|
|
69
|
+
acc += (sepThousands + integerPart[i]);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
acc += integerPart[i];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
let finalFraction = fractionalPart || '';
|
|
76
|
+
const forceDecimals = this.alwaysshowdecimals === 'true';
|
|
77
|
+
const maxFractionDigits = Number(this.maximumfractiondigits);
|
|
78
|
+
if (forceDecimals) {
|
|
79
|
+
// Always show exactly maxFractionDigits decimals
|
|
80
|
+
finalFraction = finalFraction.padEnd(maxFractionDigits || 2, '0').substring(0, maxFractionDigits);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
// Default behavior: only show decimals if they exist
|
|
84
|
+
if (!finalFraction) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// Append decimals
|
|
89
|
+
acc += sepDecimal + finalFraction;
|
|
90
|
+
}
|
|
91
|
+
acc && tokens.push(acc);
|
|
92
|
+
acc = '';
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
tokens.push(acc);
|
|
97
|
+
return tokens.join('');
|
|
98
|
+
};
|
|
99
|
+
this.handleSubmit = () => {
|
|
100
|
+
var _a;
|
|
101
|
+
this.consentsSubmitted = true;
|
|
102
|
+
// Abort any in-flight request before starting a new one
|
|
103
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
104
|
+
this.abortController = new AbortController();
|
|
105
|
+
const timeoutId = setTimeout(() => {
|
|
106
|
+
var _a;
|
|
107
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort('Request timed out');
|
|
108
|
+
}, this.TIMEOUT_MS);
|
|
109
|
+
const url = `${this.endpoint}/api/pam/v1/actions/customer-funds-protection`;
|
|
110
|
+
const headers = new Headers();
|
|
111
|
+
headers.append('Content-Type', 'application/json');
|
|
112
|
+
headers.append('X-SessionId', `${this.session}`);
|
|
113
|
+
headers.append('X-Tenant-ID', `${this.operatorid}`);
|
|
114
|
+
return fetch(url, {
|
|
115
|
+
method: 'POST',
|
|
116
|
+
headers: headers,
|
|
117
|
+
body: JSON.stringify({ accepted: true }),
|
|
118
|
+
signal: this.abortController.signal,
|
|
119
|
+
})
|
|
120
|
+
.then((res) => {
|
|
121
|
+
if (!res.ok) {
|
|
122
|
+
this.errorMessage = `${translate('apiCallError', this.language)} ${res.status}`;
|
|
123
|
+
throw new Error(`Request failed with status ${res.status}`);
|
|
124
|
+
}
|
|
125
|
+
// 202 Accepted has no body, skip res.json()
|
|
126
|
+
if (res.status === 202) {
|
|
127
|
+
this.errorMessage = '';
|
|
128
|
+
localStorage.removeItem("totalCashAmount");
|
|
129
|
+
window.postMessage({ type: 'ProtectionFundsAccepted' }, window.location.href);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
return res.json();
|
|
133
|
+
})
|
|
134
|
+
.catch((error) => {
|
|
135
|
+
var _a;
|
|
136
|
+
if (error.name === 'AbortError') {
|
|
137
|
+
// Validate between timeout/unmount
|
|
138
|
+
const reason = (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.signal.reason;
|
|
139
|
+
if (reason === 'Request timed out') {
|
|
140
|
+
this.errorMessage = translate('serverNotResponding', this.language);
|
|
141
|
+
}
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
console.error('Customer funds protection request failed:', error.message);
|
|
145
|
+
this.errorMessage = translate('serverNotResponding', this.language);
|
|
146
|
+
})
|
|
147
|
+
.finally(() => {
|
|
148
|
+
clearTimeout(timeoutId); // clear timer
|
|
149
|
+
this.abortController = null;
|
|
150
|
+
});
|
|
151
|
+
;
|
|
152
|
+
};
|
|
153
|
+
this.session = undefined;
|
|
154
|
+
this.operatorid = undefined;
|
|
155
|
+
this.mbSource = undefined;
|
|
156
|
+
this.clientStyling = undefined;
|
|
157
|
+
this.clientStylingUrl = undefined;
|
|
158
|
+
this.endpoint = undefined;
|
|
159
|
+
this.language = 'en';
|
|
160
|
+
this.translationUrl = '';
|
|
161
|
+
this.currencylocale = 'en';
|
|
162
|
+
this.currencydisplay = 'symbol';
|
|
163
|
+
this.maximumfractiondigits = '2';
|
|
164
|
+
this.minimumfractiondigits = '0';
|
|
165
|
+
this.customdisplayformat = '';
|
|
166
|
+
this.alwaysshowdecimals = 'true';
|
|
167
|
+
this.playercurrency = 'EUR';
|
|
168
|
+
this.isLoading = false;
|
|
169
|
+
this.isConsentChecked = false;
|
|
170
|
+
this.totalCashAmount = 0;
|
|
171
|
+
this.errorMessage = '';
|
|
172
|
+
this.consentsSubmitted = false;
|
|
173
|
+
}
|
|
174
|
+
handleNewTranslations() {
|
|
175
|
+
getTranslations(this.translationUrl);
|
|
176
|
+
}
|
|
177
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
178
|
+
if (newValue != oldValue) {
|
|
179
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
183
|
+
if (newValue != oldValue) {
|
|
184
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
188
|
+
if (newValue != oldValue) {
|
|
189
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
async componentWillLoad() {
|
|
193
|
+
if (this.translationUrl.length > 2) {
|
|
194
|
+
await getTranslations(this.translationUrl);
|
|
195
|
+
}
|
|
196
|
+
this.totalCashAmount = parseFloat(localStorage.getItem('totalCashAmount')) || 0;
|
|
197
|
+
}
|
|
198
|
+
componentDidLoad() {
|
|
199
|
+
if (this.stylingContainer) {
|
|
200
|
+
if (this.mbSource)
|
|
201
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
202
|
+
if (this.clientStyling)
|
|
203
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
204
|
+
if (this.clientStylingUrl)
|
|
205
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
disconnectedCallback() {
|
|
209
|
+
var _a;
|
|
210
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort('Component unmounted');
|
|
211
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
212
|
+
}
|
|
213
|
+
userLegislationConsentHandler() {
|
|
214
|
+
if (this.checkboxInput) {
|
|
215
|
+
this.isConsentChecked = this.checkboxInput.checked;
|
|
216
|
+
}
|
|
217
|
+
// In case of a network error, permit the user to retry consents submission
|
|
218
|
+
if (this.isConsentChecked) {
|
|
219
|
+
this.consentsSubmitted = false;
|
|
220
|
+
this.errorMessage = '';
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
consentsArea() {
|
|
224
|
+
return (h("div", { class: "UserProtectionFundsCheckboxArea" }, h("label", { class: "UserProtectionFundsCheckboxContent", htmlFor: "userProtectionFunds" }, h("input", { ref: el => this.checkboxInput = el, id: "userProtectionFunds", type: "checkbox", onInput: () => this.userLegislationConsentHandler() }), h("span", { innerHTML: `${translate('protectionCheckboxLabel', this.language)}` }))));
|
|
225
|
+
}
|
|
226
|
+
render() {
|
|
227
|
+
return (h("div", { key: 'e6361dbe3338fd1bbf9b54eb41b3fddf0f8829c7', class: "QueryReferenceContainer", ref: el => this.stylingContainer = el }, this.isLoading ? (h("div", null, h("slot", { name: 'spinner' }), h("svg", { class: "spinner", viewBox: "0 0 50 50" }, h("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "5" })))) : (h("div", { class: "UserProtectionFundsContainer" }, h("div", { class: "UserProtectionFundsTitle" }, h("h2", null, translate('protectionTitle', this.language))), h("div", { class: "UserProtectionFundsWrapper" }, h("p", { innerHTML: `${translate('protectionContent', this.language)}` })), h("div", { class: "UserProtectionFundsBalance" }, h("p", null, translate('balanceArea', this.language), " ", h("span", null, this.formatBalance(this.totalCashAmount)))), h("div", { class: "UserProtectionFundsButtonsWrapper" }, h("div", null, this.consentsArea()), h("div", null, h("button", { class: "UserProtectionFundsSubmitButton", disabled: !this.isConsentChecked || this.errorMessage != '' || this.consentsSubmitted, onClick: this.handleSubmit }, translate('submitButtonText', this.language))), h("div", { class: "UserProtectionError" }, this.errorMessage != '' && this.errorMessage))))));
|
|
228
|
+
}
|
|
229
|
+
static get is() { return "user-funds-acknowledgment"; }
|
|
230
|
+
static get encapsulation() { return "shadow"; }
|
|
231
|
+
static get originalStyleUrls() {
|
|
232
|
+
return {
|
|
233
|
+
"$": ["user-funds-acknowledgment.scss"]
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
static get styleUrls() {
|
|
237
|
+
return {
|
|
238
|
+
"$": ["user-funds-acknowledgment.css"]
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
static get properties() {
|
|
242
|
+
return {
|
|
243
|
+
"session": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "string",
|
|
248
|
+
"resolved": "string",
|
|
249
|
+
"references": {}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": false,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "The session required for the submit call"
|
|
256
|
+
},
|
|
257
|
+
"attribute": "session",
|
|
258
|
+
"reflect": true
|
|
259
|
+
},
|
|
260
|
+
"operatorid": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "string",
|
|
265
|
+
"resolved": "string",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": false,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": ""
|
|
273
|
+
},
|
|
274
|
+
"attribute": "operatorid",
|
|
275
|
+
"reflect": true
|
|
276
|
+
},
|
|
277
|
+
"mbSource": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "string",
|
|
282
|
+
"resolved": "string",
|
|
283
|
+
"references": {}
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"optional": false,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"attribute": "mb-source",
|
|
292
|
+
"reflect": true
|
|
293
|
+
},
|
|
294
|
+
"clientStyling": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"mutable": false,
|
|
297
|
+
"complexType": {
|
|
298
|
+
"original": "string",
|
|
299
|
+
"resolved": "string",
|
|
300
|
+
"references": {}
|
|
301
|
+
},
|
|
302
|
+
"required": false,
|
|
303
|
+
"optional": false,
|
|
304
|
+
"docs": {
|
|
305
|
+
"tags": [],
|
|
306
|
+
"text": "Client custom styling via inline style"
|
|
307
|
+
},
|
|
308
|
+
"attribute": "client-styling",
|
|
309
|
+
"reflect": true
|
|
310
|
+
},
|
|
311
|
+
"clientStylingUrl": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"mutable": false,
|
|
314
|
+
"complexType": {
|
|
315
|
+
"original": "string",
|
|
316
|
+
"resolved": "string",
|
|
317
|
+
"references": {}
|
|
318
|
+
},
|
|
319
|
+
"required": false,
|
|
320
|
+
"optional": false,
|
|
321
|
+
"docs": {
|
|
322
|
+
"tags": [],
|
|
323
|
+
"text": "Client custom styling via url"
|
|
324
|
+
},
|
|
325
|
+
"attribute": "client-styling-url",
|
|
326
|
+
"reflect": true
|
|
327
|
+
},
|
|
328
|
+
"endpoint": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"mutable": false,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "string",
|
|
333
|
+
"resolved": "string",
|
|
334
|
+
"references": {}
|
|
335
|
+
},
|
|
336
|
+
"required": true,
|
|
337
|
+
"optional": false,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [],
|
|
340
|
+
"text": "The endpoint required for the submit call"
|
|
341
|
+
},
|
|
342
|
+
"attribute": "endpoint",
|
|
343
|
+
"reflect": true
|
|
344
|
+
},
|
|
345
|
+
"language": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"mutable": true,
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "string",
|
|
350
|
+
"resolved": "string",
|
|
351
|
+
"references": {}
|
|
352
|
+
},
|
|
353
|
+
"required": false,
|
|
354
|
+
"optional": false,
|
|
355
|
+
"docs": {
|
|
356
|
+
"tags": [],
|
|
357
|
+
"text": "Language"
|
|
358
|
+
},
|
|
359
|
+
"attribute": "language",
|
|
360
|
+
"reflect": true,
|
|
361
|
+
"defaultValue": "'en'"
|
|
362
|
+
},
|
|
363
|
+
"translationUrl": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "string",
|
|
368
|
+
"resolved": "string",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": false,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "Translation url"
|
|
376
|
+
},
|
|
377
|
+
"attribute": "translation-url",
|
|
378
|
+
"reflect": true,
|
|
379
|
+
"defaultValue": "''"
|
|
380
|
+
},
|
|
381
|
+
"currencylocale": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"mutable": false,
|
|
384
|
+
"complexType": {
|
|
385
|
+
"original": "string",
|
|
386
|
+
"resolved": "string",
|
|
387
|
+
"references": {}
|
|
388
|
+
},
|
|
389
|
+
"required": false,
|
|
390
|
+
"optional": false,
|
|
391
|
+
"docs": {
|
|
392
|
+
"tags": [],
|
|
393
|
+
"text": "These props are used only by Intl.NumberFormat and have no effect if customdisplayformat is passed, as it will be used instead"
|
|
394
|
+
},
|
|
395
|
+
"attribute": "currencylocale",
|
|
396
|
+
"reflect": true,
|
|
397
|
+
"defaultValue": "'en'"
|
|
398
|
+
},
|
|
399
|
+
"currencydisplay": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"mutable": false,
|
|
402
|
+
"complexType": {
|
|
403
|
+
"original": "string",
|
|
404
|
+
"resolved": "string",
|
|
405
|
+
"references": {}
|
|
406
|
+
},
|
|
407
|
+
"required": false,
|
|
408
|
+
"optional": false,
|
|
409
|
+
"docs": {
|
|
410
|
+
"tags": [],
|
|
411
|
+
"text": ""
|
|
412
|
+
},
|
|
413
|
+
"attribute": "currencydisplay",
|
|
414
|
+
"reflect": true,
|
|
415
|
+
"defaultValue": "'symbol'"
|
|
416
|
+
},
|
|
417
|
+
"maximumfractiondigits": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "string",
|
|
422
|
+
"resolved": "string",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": false,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": ""
|
|
430
|
+
},
|
|
431
|
+
"attribute": "maximumfractiondigits",
|
|
432
|
+
"reflect": true,
|
|
433
|
+
"defaultValue": "'2'"
|
|
434
|
+
},
|
|
435
|
+
"minimumfractiondigits": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"mutable": false,
|
|
438
|
+
"complexType": {
|
|
439
|
+
"original": "string",
|
|
440
|
+
"resolved": "string",
|
|
441
|
+
"references": {}
|
|
442
|
+
},
|
|
443
|
+
"required": false,
|
|
444
|
+
"optional": false,
|
|
445
|
+
"docs": {
|
|
446
|
+
"tags": [],
|
|
447
|
+
"text": ""
|
|
448
|
+
},
|
|
449
|
+
"attribute": "minimumfractiondigits",
|
|
450
|
+
"reflect": true,
|
|
451
|
+
"defaultValue": "'0'"
|
|
452
|
+
},
|
|
453
|
+
"customdisplayformat": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"mutable": false,
|
|
456
|
+
"complexType": {
|
|
457
|
+
"original": "string",
|
|
458
|
+
"resolved": "string",
|
|
459
|
+
"references": {}
|
|
460
|
+
},
|
|
461
|
+
"required": false,
|
|
462
|
+
"optional": false,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [],
|
|
465
|
+
"text": "Example value: '{amount|,.2} {currency}'. The {} blocks are replaced by their respective values.\nEverything else in the string is left as it is. The \"amount\" block also accepts arguments that must be placed after \"|\".\nFirst char is the Thousands Separator, second is the Decimal Separator, third is Decimal Precision.\nAn empty value (' ') indicates that the default values should be used for that specific arg."
|
|
466
|
+
},
|
|
467
|
+
"attribute": "customdisplayformat",
|
|
468
|
+
"reflect": true,
|
|
469
|
+
"defaultValue": "''"
|
|
470
|
+
},
|
|
471
|
+
"alwaysshowdecimals": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"mutable": false,
|
|
474
|
+
"complexType": {
|
|
475
|
+
"original": "string",
|
|
476
|
+
"resolved": "string",
|
|
477
|
+
"references": {}
|
|
478
|
+
},
|
|
479
|
+
"required": false,
|
|
480
|
+
"optional": false,
|
|
481
|
+
"docs": {
|
|
482
|
+
"tags": [],
|
|
483
|
+
"text": ""
|
|
484
|
+
},
|
|
485
|
+
"attribute": "alwaysshowdecimals",
|
|
486
|
+
"reflect": true,
|
|
487
|
+
"defaultValue": "'true'"
|
|
488
|
+
},
|
|
489
|
+
"playercurrency": {
|
|
490
|
+
"type": "string",
|
|
491
|
+
"mutable": false,
|
|
492
|
+
"complexType": {
|
|
493
|
+
"original": "string",
|
|
494
|
+
"resolved": "string",
|
|
495
|
+
"references": {}
|
|
496
|
+
},
|
|
497
|
+
"required": false,
|
|
498
|
+
"optional": false,
|
|
499
|
+
"docs": {
|
|
500
|
+
"tags": [],
|
|
501
|
+
"text": ""
|
|
502
|
+
},
|
|
503
|
+
"attribute": "playercurrency",
|
|
504
|
+
"reflect": true,
|
|
505
|
+
"defaultValue": "'EUR'"
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
static get states() {
|
|
510
|
+
return {
|
|
511
|
+
"isLoading": {},
|
|
512
|
+
"isConsentChecked": {},
|
|
513
|
+
"totalCashAmount": {},
|
|
514
|
+
"errorMessage": {},
|
|
515
|
+
"consentsSubmitted": {}
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
static get watchers() {
|
|
519
|
+
return [{
|
|
520
|
+
"propName": "translationUrl",
|
|
521
|
+
"methodName": "handleNewTranslations"
|
|
522
|
+
}, {
|
|
523
|
+
"propName": "clientStyling",
|
|
524
|
+
"methodName": "handleClientStylingChange"
|
|
525
|
+
}, {
|
|
526
|
+
"propName": "clientStylingUrl",
|
|
527
|
+
"methodName": "handleClientStylingUrlChange"
|
|
528
|
+
}, {
|
|
529
|
+
"propName": "mbSource",
|
|
530
|
+
"methodName": "handleMbSourceChange"
|
|
531
|
+
}];
|
|
532
|
+
}
|
|
533
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/user-funds-acknowledgment';
|