@everymatrix/player-account-gaming-limits-popup 0.0.162 → 0.0.166
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-gaming-limits-popup",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.166",
|
|
4
4
|
"main": "dist/player-account-gaming-limits-popup.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "cc5cea8f5d4ed68bf0b052d98cc82ce69e97fc45"
|
|
40
40
|
}
|
|
@@ -3,21 +3,19 @@
|
|
|
3
3
|
import { onMount } from 'svelte';
|
|
4
4
|
import { getDevice } from 'rvhelper';
|
|
5
5
|
import { _, addNewMessages } from './i18n';
|
|
6
|
-
import {
|
|
6
|
+
import { PlayerGamingLimitsPopupTranslations } from './translations';
|
|
7
7
|
|
|
8
8
|
export let showpopup:any = '';
|
|
9
|
-
export let infocontent:string = '';
|
|
10
|
-
export let infoname:string = '';
|
|
11
9
|
export let iteminfoamount:string = '';
|
|
12
10
|
export let lang:string = 'en';
|
|
13
11
|
export let playercurrency:string = 'USD';
|
|
12
|
+
|
|
13
|
+
Object.keys(PlayerGamingLimitsPopupTranslations).forEach((item) => {
|
|
14
|
+
addNewMessages(item, PlayerGamingLimitsPopupTranslations[item]);
|
|
15
|
+
});
|
|
14
16
|
|
|
15
17
|
let showPopup:boolean = false;
|
|
16
18
|
|
|
17
|
-
Object.keys(PlayerGamingLimitsTranslations).forEach((item) => {
|
|
18
|
-
addNewMessages(item, PlayerGamingLimitsTranslations[item]);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
19
|
let userAgent:String = window.navigator.userAgent;
|
|
22
20
|
let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
|
|
23
21
|
|
|
@@ -55,7 +53,7 @@
|
|
|
55
53
|
<div class="InfoCardPopupWrapper {isMobile ? 'InfoCardPopupMobileWrapper' : ''} {iteminfoamount ? 'InfoCardPopupLimitChanged' : ''}">
|
|
56
54
|
<div class="InfoCardPopupHeader">
|
|
57
55
|
<div class="InfoCardPopupIcon">i</div>
|
|
58
|
-
<div class="InfoCardPopupTitle">{
|
|
56
|
+
<div class="InfoCardPopupTitle">{$_('popupText.name')}</div>
|
|
59
57
|
<div class="InfoCardPopupCloseButton" on:click|preventDefault={closeInfoPopup}>
|
|
60
58
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>
|
|
61
59
|
</div>
|
|
@@ -64,7 +62,7 @@
|
|
|
64
62
|
{#if iteminfoamount}
|
|
65
63
|
<p class="InfoCardPopupContent">{$_('popupText.amountChanged', { values: { amount: iteminfoamount, currency: playercurrency}})}</p>
|
|
66
64
|
{:else}
|
|
67
|
-
<p class="InfoCardPopupContent">{
|
|
65
|
+
<p class="InfoCardPopupContent">{$_('popupText.defaultText')}</p>
|
|
68
66
|
{/if}
|
|
69
67
|
</div>
|
|
70
68
|
</div>
|
package/src/translations.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const PlayerGamingLimitsPopupTranslations = {
|
|
2
2
|
en: {
|
|
3
3
|
popupText: {
|
|
4
|
+
name: `Info`,
|
|
4
5
|
amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
|
|
6
|
+
defaultText: `Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt.`
|
|
5
7
|
}
|
|
6
8
|
},
|
|
7
9
|
ro: {
|
|
8
10
|
popupText: {
|
|
11
|
+
name: `Info`,
|
|
9
12
|
amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
|
|
13
|
+
defaultText: `Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt.`
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
};
|