@everymatrix/user-deposit-withdrawal 1.43.4 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-faa382a8.js +1265 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +226 -223
- package/dist/cjs/user-deposit-withdrawal.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/user-deposit-withdrawal/index.js +1 -0
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +581 -578
- package/dist/collection/utils/locale.utils.js +38 -38
- package/dist/collection/utils/utils.js +17 -17
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-04d3e726.js +1238 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/user-deposit-withdrawal.entry.js +226 -223
- package/dist/esm/user-deposit-withdrawal.js +14 -11
- 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/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-deposit-withdrawal/index.d.ts +1 -0
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +65 -65
- package/dist/types/components.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/user-deposit-withdrawal/p-53a8ad89.js +2 -0
- package/dist/user-deposit-withdrawal/p-96b03b5e.entry.js +1 -0
- package/dist/user-deposit-withdrawal/p-e1255160.js +1 -0
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
- 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-efde0a55.js +0 -1264
- 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 -304
- package/dist/esm/index-767966f2.js +0 -1238
- 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/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-deposit-withdrawal/.stencil/packages/user-deposit-withdrawal/stencil.config.d.ts +0 -2
- package/dist/user-deposit-withdrawal/p-4c4319e6.js +0 -1
- package/dist/user-deposit-withdrawal/p-518ce9fb.entry.js +0 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
2
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr'];
|
|
3
3
|
const TRANSLATIONS = {
|
|
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
|
-
|
|
4
|
+
en: {
|
|
5
|
+
Deposit: 'Deposit',
|
|
6
|
+
Withdraw: 'Withdraw',
|
|
7
|
+
denyDeposit: 'Please be informed that currently you are not allowed to initiate depost transactions.',
|
|
8
|
+
denyWithdrawal: 'Please be informed that currently you are not allowed to initiate withdrawal transactions.',
|
|
9
|
+
notFoundErrorCode: 'Not found error code',
|
|
10
|
+
errorCode21122: 'Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122',
|
|
11
|
+
errorCode21123: 'Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123'
|
|
12
|
+
},
|
|
13
|
+
ro: {
|
|
14
|
+
Deposit: 'Depozit',
|
|
15
|
+
Withdraw: 'Retragere',
|
|
16
|
+
denyDeposit: 'Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.',
|
|
17
|
+
denyWithdrawal: 'Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.',
|
|
18
|
+
notFoundErrorCode: 'Not found error code',
|
|
19
|
+
errorCode21122: 'Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122',
|
|
20
|
+
errorCode21123: 'Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123'
|
|
21
|
+
},
|
|
22
|
+
fr: {
|
|
23
|
+
Deposit: 'Deposit',
|
|
24
|
+
Withdraw: 'Withdraw',
|
|
25
|
+
denyDeposit: 'Veuillez être informé que vous n\'êtes actuellement pas autorisé à initier des transactions de dépôt.',
|
|
26
|
+
denyWithdrawal: 'Veuillez être informé que vous n\'êtes actuellement pas autorisé à initier des transactions de retrait.',
|
|
27
|
+
notFoundErrorCode: 'Not found error code',
|
|
28
|
+
errorCode21122: 'Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122',
|
|
29
|
+
errorCode21123: 'Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123'
|
|
30
|
+
},
|
|
31
|
+
hr: {
|
|
32
|
+
Deposit: 'Uplata',
|
|
33
|
+
Withdraw: 'Isplata',
|
|
34
|
+
denyDeposit: 'Obavještavamo Vas da trenutno nemate mogućnost uplata.',
|
|
35
|
+
denyWithdrawal: 'Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.',
|
|
36
|
+
notFoundErrorCode: 'Not found error code',
|
|
37
|
+
errorCode21122: 'Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122',
|
|
38
|
+
errorCode21123: 'Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123'
|
|
39
|
+
}
|
|
40
40
|
};
|
|
41
41
|
export const translate = (key, customLang) => {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const lang = customLang;
|
|
43
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
44
44
|
};
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
* @returns {Boolean} true or false
|
|
6
6
|
*/
|
|
7
7
|
export const isMobile = (userAgent) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
12
|
};
|
|
13
13
|
export function checkDeviceType() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
if (userAgent.includes('android')) {
|
|
21
|
-
if (height > width && width < 800) {
|
|
22
|
-
return 'mobile';
|
|
14
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
15
|
+
const width = screen.availWidth;
|
|
16
|
+
const height = screen.availHeight;
|
|
17
|
+
if (userAgent.includes('iphone')) {
|
|
18
|
+
return 'mobile';
|
|
23
19
|
}
|
|
24
|
-
if (
|
|
25
|
-
|
|
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
|
+
}
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
return 'desktop';
|
|
28
|
+
return 'desktop';
|
|
29
29
|
}
|