@everymatrix/player-account-gaming-limits-popup 0.0.365 → 0.0.367

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.
@@ -1,196 +1,196 @@
1
- <svelte:options tag={null} />
2
- <script lang="ts">
3
- import { onMount } from 'svelte';
4
- import { getDevice } from 'rvhelper';
5
- import { _, addNewMessages, setLocale } from './i18n';
6
- import { PlayerGamingLimitsPopupTranslations } from './translations';
7
-
8
- export let showpopup:any = '';
9
- export let iteminfoamount:string = '';
10
- export let lang:string = 'en';
11
- export let playercurrency:string = 'USD';
12
-
13
- Object.keys(PlayerGamingLimitsPopupTranslations).forEach((item) => {
14
- addNewMessages(item, PlayerGamingLimitsPopupTranslations[item]);
15
- });
16
-
17
- let showPopup:boolean = false;
18
-
19
- let userAgent:String = window.navigator.userAgent;
20
- let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
21
-
22
- const closeInfoPopup = () => {
23
- showPopup = false;
24
- window.postMessage({ type: 'ClosePlayerAccountGamingLimitsPopup' }, window.location.href);
25
- }
26
-
27
- const messageHandler = (e:any) => {
28
- if (e.data && e.data.type == 'ClosePlayerAccountGamingLimitsPopup') {
29
- showPopup = false;
30
- }
31
- }
32
-
33
- const initialLoad = () => {
34
- setLocale(lang);
35
-
36
- if(iteminfoamount < 0) {
37
- iteminfoamount = '0';
38
- }
39
- showPopup = showpopup;
40
- }
41
-
42
- onMount(() => {
43
- window.addEventListener('message', messageHandler, false);
44
-
45
- return () => {
46
- window.removeEventListener('message', messageHandler);
47
- }
48
- });
49
-
50
- $: showpopup && lang && initialLoad();
51
- </script>
52
-
53
- {#if showPopup}
54
- <section class="{isMobile ? 'InfoCardPopupMobileModal' : ''}" part="{isMobile ? 'InfoCardPopupMobileModal' : ''}">
55
- <div class="InfoCardPopupWrapper {isMobile ? 'InfoCardPopupMobileWrapper' : ''} {iteminfoamount ? 'InfoCardPopupLimitChanged' : ''}" part="InfoCardPopupWrapper {isMobile ? 'InfoCardPopupMobileWrapper' : ''} {iteminfoamount ? 'InfoCardPopupLimitChanged' : ''}">
56
- <div class="InfoCardPopupHeader" part="InfoCardPopupHeader">
57
- <div class="InfoCardPopupIcon" part="InfoCardPopupIcon">i</div>
58
- <div class="InfoCardPopupTitle" part="InfoCardPopupTitle">{$_('popupText.name')}</div>
59
- <div class="InfoCardPopupCloseButton" part="InfoCardPopupCloseButton" on:click|preventDefault={closeInfoPopup}>
60
- <svg class="w-6 h-6" part="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
- </div>
62
- </div>
63
- <div class="InfoCardPopupContentArea" part="InfoCardPopupContentArea">
64
- {#if iteminfoamount}
65
- <p class="InfoCardPopupContent" part="InfoCardPopupContent">{$_('popupText.amountChanged', { values: { amount: iteminfoamount, currency: playercurrency}})}</p>
66
- {:else}
67
- <p class="InfoCardPopupContent" part="InfoCardPopupContent">{$_('popupText.defaultText')}</p>
68
- {/if}
69
- </div>
70
- </div>
71
- </section>
72
- {/if}
73
-
74
-
75
- <style lang="scss">
76
-
77
- :host {
78
- font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
79
- }
80
-
81
- .InfoCardPopupMobileModal {
82
- &:after {
83
- position: fixed;
84
- top: 0;
85
- left: 0;
86
- right: 0;
87
- bottom: 0;
88
- background: rgba(0, 0, 0, 0.5);
89
- z-index: 101;
90
- content: '';
91
- }
92
- }
93
- .InfoCardPopupLimitChanged {
94
- background: var(--emfe-w-color-gray-50, #F9F8F8);
95
- }
96
- .InfoCardPopupWrapper {
97
- width: 200px;
98
- padding: 20px;
99
- color: var(--emfe-w-color-black, #000000);
100
- background: var(--emfe-w-color-white, #FFFFFF);
101
- box-shadow: 0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);
102
- border-radius: 5px;
103
- display: block;
104
- position: absolute;
105
- top: 32px;
106
- left: -84px;
107
- z-index: 9;
108
- &:before {
109
- content: "";
110
- position: absolute;
111
- top: -7px;
112
- left: 104px;
113
- border-style: solid;
114
- border-width: 0 7px 7px;
115
- border-color: var(--emfe-w-color-white, #FFFFFF) transparent;
116
- display: block;
117
- width: 0;
118
- z-index: 1;
119
- }
120
- &.InfoCardPopupMobileWrapper {
121
- width: 70%;
122
- position: fixed;
123
- top: 50%;
124
- left: 50%;
125
- transform: translate(-50%, -50%);
126
- z-index: 102;
127
- .InfoCardPopupTitle {
128
- font-size: 18px;
129
- }
130
- .InfoCardPopupCloseButton {
131
- width: 30px;
132
- }
133
- .InfoCardPopupContent {
134
- font-size: 16px;
135
- }
136
- &:before {
137
- content: none;
138
- }
139
- }
140
- }
141
- .InfoCardPopupHeader {
142
- display: inline-flex;
143
- .InfoCardPopupTitle {
144
- line-height: 24px;
145
- font-size: 16px;
146
- font-weight: 400;
147
- padding-left: 10px;
148
- }
149
- }
150
- .InfoCardPopupIcon {
151
- display: flex;
152
- font-size: 24px;
153
- width: 24px;
154
- height: 24px;
155
- background: transparent;
156
- border: 1px solid var(--emfe-w-color-black, #000000);
157
- align-items: center;
158
- justify-content: center;
159
- border-radius: 30px;
160
- }
161
- .InfoCardPopupContent {
162
- font-size: 14px;
163
- font-weight: 300;
164
- }
165
- .InfoCardPopupCloseButton {
166
- width: 20px;
167
- position: absolute;
168
- right: 10px;
169
- top: 10px;
170
- cursor: pointer;
171
- transition-duration: 0.3s;
172
- &:hover {
173
- color: var(--emfe-w-color-secondary, #FD2839);
174
- fill: var(--emfe-w-color-secondary, #FD2839);
175
- }
176
- }
177
- .ModalCloseBtn {
178
- position: absolute;
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
- top: 32px;
183
- right: 32px;
184
- padding: 16px;
185
- border-radius: 50%;
186
- color: var(--emfe-w-color-white, #FFFFFF);
187
- cursor: pointer;
188
- transition: all 150ms ease-in-out;
189
-
190
- svg {
191
- width: 32px;
192
- height: 32px;
193
- fill: var(--emfe-w-color-black, #000000);
194
- }
195
- }
196
- </style>
1
+ <svelte:options tag={null} />
2
+ <script lang="ts">
3
+ import { onMount } from 'svelte';
4
+ import { getDevice } from 'rvhelper';
5
+ import { _, addNewMessages, setLocale } from './i18n';
6
+ import { PlayerGamingLimitsPopupTranslations } from './translations';
7
+
8
+ export let showpopup:any = '';
9
+ export let iteminfoamount:string = '';
10
+ export let lang:string = 'en';
11
+ export let playercurrency:string = 'USD';
12
+
13
+ Object.keys(PlayerGamingLimitsPopupTranslations).forEach((item) => {
14
+ addNewMessages(item, PlayerGamingLimitsPopupTranslations[item]);
15
+ });
16
+
17
+ let showPopup:boolean = false;
18
+
19
+ let userAgent:String = window.navigator.userAgent;
20
+ let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
21
+
22
+ const closeInfoPopup = () => {
23
+ showPopup = false;
24
+ window.postMessage({ type: 'ClosePlayerAccountGamingLimitsPopup' }, window.location.href);
25
+ }
26
+
27
+ const messageHandler = (e:any) => {
28
+ if (e.data && e.data.type == 'ClosePlayerAccountGamingLimitsPopup') {
29
+ showPopup = false;
30
+ }
31
+ }
32
+
33
+ const initialLoad = () => {
34
+ setLocale(lang);
35
+
36
+ if(iteminfoamount < 0) {
37
+ iteminfoamount = '0';
38
+ }
39
+ showPopup = showpopup;
40
+ }
41
+
42
+ onMount(() => {
43
+ window.addEventListener('message', messageHandler, false);
44
+
45
+ return () => {
46
+ window.removeEventListener('message', messageHandler);
47
+ }
48
+ });
49
+
50
+ $: showpopup && lang && initialLoad();
51
+ </script>
52
+
53
+ {#if showPopup}
54
+ <section class="{isMobile ? 'InfoCardPopupMobileModal' : ''}" part="{isMobile ? 'InfoCardPopupMobileModal' : ''}">
55
+ <div class="InfoCardPopupWrapper {isMobile ? 'InfoCardPopupMobileWrapper' : ''} {iteminfoamount ? 'InfoCardPopupLimitChanged' : ''}" part="InfoCardPopupWrapper {isMobile ? 'InfoCardPopupMobileWrapper' : ''} {iteminfoamount ? 'InfoCardPopupLimitChanged' : ''}">
56
+ <div class="InfoCardPopupHeader" part="InfoCardPopupHeader">
57
+ <div class="InfoCardPopupIcon" part="InfoCardPopupIcon">i</div>
58
+ <div class="InfoCardPopupTitle" part="InfoCardPopupTitle">{$_('popupText.name')}</div>
59
+ <div class="InfoCardPopupCloseButton" part="InfoCardPopupCloseButton" on:click|preventDefault={closeInfoPopup}>
60
+ <svg class="w-6 h-6" part="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
+ </div>
62
+ </div>
63
+ <div class="InfoCardPopupContentArea" part="InfoCardPopupContentArea">
64
+ {#if iteminfoamount}
65
+ <p class="InfoCardPopupContent" part="InfoCardPopupContent">{$_('popupText.amountChanged', { values: { amount: iteminfoamount, currency: playercurrency}})}</p>
66
+ {:else}
67
+ <p class="InfoCardPopupContent" part="InfoCardPopupContent">{$_('popupText.defaultText')}</p>
68
+ {/if}
69
+ </div>
70
+ </div>
71
+ </section>
72
+ {/if}
73
+
74
+
75
+ <style lang="scss">
76
+
77
+ :host {
78
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
79
+ }
80
+
81
+ .InfoCardPopupMobileModal {
82
+ &:after {
83
+ position: fixed;
84
+ top: 0;
85
+ left: 0;
86
+ right: 0;
87
+ bottom: 0;
88
+ background: rgba(0, 0, 0, 0.5);
89
+ z-index: 101;
90
+ content: '';
91
+ }
92
+ }
93
+ .InfoCardPopupLimitChanged {
94
+ background: var(--emfe-w-color-gray-50, #F9F8F8);
95
+ }
96
+ .InfoCardPopupWrapper {
97
+ width: 200px;
98
+ padding: 20px;
99
+ color: var(--emfe-w-color-black, #000000);
100
+ background: var(--emfe-w-color-white, #FFFFFF);
101
+ box-shadow: 0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);
102
+ border-radius: 5px;
103
+ display: block;
104
+ position: absolute;
105
+ top: 32px;
106
+ left: -84px;
107
+ z-index: 9;
108
+ &:before {
109
+ content: "";
110
+ position: absolute;
111
+ top: -7px;
112
+ left: 104px;
113
+ border-style: solid;
114
+ border-width: 0 7px 7px;
115
+ border-color: var(--emfe-w-color-white, #FFFFFF) transparent;
116
+ display: block;
117
+ width: 0;
118
+ z-index: 1;
119
+ }
120
+ &.InfoCardPopupMobileWrapper {
121
+ width: 70%;
122
+ position: fixed;
123
+ top: 50%;
124
+ left: 50%;
125
+ transform: translate(-50%, -50%);
126
+ z-index: 102;
127
+ .InfoCardPopupTitle {
128
+ font-size: 18px;
129
+ }
130
+ .InfoCardPopupCloseButton {
131
+ width: 30px;
132
+ }
133
+ .InfoCardPopupContent {
134
+ font-size: 16px;
135
+ }
136
+ &:before {
137
+ content: none;
138
+ }
139
+ }
140
+ }
141
+ .InfoCardPopupHeader {
142
+ display: inline-flex;
143
+ .InfoCardPopupTitle {
144
+ line-height: 24px;
145
+ font-size: 16px;
146
+ font-weight: 400;
147
+ padding-left: 10px;
148
+ }
149
+ }
150
+ .InfoCardPopupIcon {
151
+ display: flex;
152
+ font-size: 24px;
153
+ width: 24px;
154
+ height: 24px;
155
+ background: transparent;
156
+ border: 1px solid var(--emfe-w-color-black, #000000);
157
+ align-items: center;
158
+ justify-content: center;
159
+ border-radius: 30px;
160
+ }
161
+ .InfoCardPopupContent {
162
+ font-size: 14px;
163
+ font-weight: 300;
164
+ }
165
+ .InfoCardPopupCloseButton {
166
+ width: 20px;
167
+ position: absolute;
168
+ right: 10px;
169
+ top: 10px;
170
+ cursor: pointer;
171
+ transition-duration: 0.3s;
172
+ &:hover {
173
+ color: var(--emfe-w-color-secondary, #FD2839);
174
+ fill: var(--emfe-w-color-secondary, #FD2839);
175
+ }
176
+ }
177
+ .ModalCloseBtn {
178
+ position: absolute;
179
+ display: flex;
180
+ align-items: center;
181
+ justify-content: center;
182
+ top: 32px;
183
+ right: 32px;
184
+ padding: 16px;
185
+ border-radius: 50%;
186
+ color: var(--emfe-w-color-white, #FFFFFF);
187
+ cursor: pointer;
188
+ transition: all 150ms ease-in-out;
189
+
190
+ svg {
191
+ width: 32px;
192
+ height: 32px;
193
+ fill: var(--emfe-w-color-black, #000000);
194
+ }
195
+ }
196
+ </style>
package/src/i18n.js CHANGED
@@ -1,27 +1,27 @@
1
- import {
2
- dictionary,
3
- locale,
4
- addMessages,
5
- _
6
- } from 'svelte-i18n';
7
-
8
- function setupI18n({ withLocale: _locale, translations }) {
9
- locale.subscribe((data) => {
10
- if (data == null) {
11
- dictionary.set(translations);
12
- locale.set(_locale);
13
- }
14
- }); // maybe we will need this to make sure that the i18n is set up only once
15
- /*dictionary.set(translations);
16
- locale.set(_locale);*/
17
- }
18
-
19
- function addNewMessages(lang, dict) {
20
- addMessages(lang, dict);
21
- }
22
-
23
- function setLocale(_locale) {
24
- locale.set(_locale);
25
- }
26
-
27
- export { _, setupI18n, addNewMessages, setLocale };
1
+ import {
2
+ dictionary,
3
+ locale,
4
+ addMessages,
5
+ _
6
+ } from 'svelte-i18n';
7
+
8
+ function setupI18n({ withLocale: _locale, translations }) {
9
+ locale.subscribe((data) => {
10
+ if (data == null) {
11
+ dictionary.set(translations);
12
+ locale.set(_locale);
13
+ }
14
+ }); // maybe we will need this to make sure that the i18n is set up only once
15
+ /*dictionary.set(translations);
16
+ locale.set(_locale);*/
17
+ }
18
+
19
+ function addNewMessages(lang, dict) {
20
+ addMessages(lang, dict);
21
+ }
22
+
23
+ function setLocale(_locale) {
24
+ locale.set(_locale);
25
+ }
26
+
27
+ export { _, setupI18n, addNewMessages, setLocale };
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import PlayerAccountGamingLimitsPopup from './PlayerAccountGamingLimitsPopup.svelte';
2
-
3
- !customElements.get('player-account-gaming-limits-popup') && customElements.define('player-account-gaming-limits-popup', PlayerAccountGamingLimitsPopup);
4
- export default PlayerAccountGamingLimitsPopup;
1
+ import PlayerAccountGamingLimitsPopup from './PlayerAccountGamingLimitsPopup.svelte';
2
+
3
+ !customElements.get('player-account-gaming-limits-popup') && customElements.define('player-account-gaming-limits-popup', PlayerAccountGamingLimitsPopup);
4
+ export default PlayerAccountGamingLimitsPopup;
@@ -1,44 +1,44 @@
1
- export const PlayerGamingLimitsPopupTranslations = {
2
- en: {
3
- popupText: {
4
- name: `Info`,
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: `When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires.`
7
- }
8
- },
9
- zh: {
10
- popupText: {
11
- name: `信息`,
12
- amountChanged: `您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:`,
13
- defaultText: `當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。`
14
- }
15
- },
16
- fr: {
17
- popupText: {
18
- name: `Info`,
19
- amountChanged: `Votre limit a été modifiée ou augmentée: {amount} {currency}. Vous devez attendre la date d'expiration pour que votre nouvelle limite prenne effet:`,
20
- defaultText: `"Lorsque vous définissez une limite de jeu, elle prend effet à partir du moment ou vous l'activez et dure jusqu'à la fin de la période séléctionnée. Par conséquent, si vous fixez une limite quotidienne à 14.00, la période de 24 heures qui compte est celle allant de son activation jusqu'à 00:00 GMT.la limite est alors valable 24 jours. vous pouvez abaisser une limite à tout moment avec un effet immédiat. cependant, l'augmentation ou la suppression d'une limite ne s'appliquera que lorsque la limite actuelle expira.`
21
- }
22
- },
23
- ro: {
24
- popupText: {
25
- name: `Informații`,
26
- amountChanged: `Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.`,
27
- defaultText: `Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră. `
28
- }
29
- },
30
- es: {
31
- popupText: {
32
- name: `Información`,
33
- amountChanged: `Su límite ha cambiado o aumentado: {cantidad} {moneda}. Tendrás que esperar a la fecha de vencimiento para que tu nuevo límite entre en vigencia:`,
34
- defaultText: `Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual.`
35
- }
36
- },
37
- pt: {
38
- popupText: {
39
- name: `Informação`,
40
- amountChanged: `Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:`,
41
- defaultText: `Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar.`
42
- }
43
- },
44
- };
1
+ export const PlayerGamingLimitsPopupTranslations = {
2
+ en: {
3
+ popupText: {
4
+ name: `Info`,
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: `When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires.`
7
+ }
8
+ },
9
+ zh: {
10
+ popupText: {
11
+ name: `信息`,
12
+ amountChanged: `您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:`,
13
+ defaultText: `當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。`
14
+ }
15
+ },
16
+ fr: {
17
+ popupText: {
18
+ name: `Info`,
19
+ amountChanged: `Votre limit a été modifiée ou augmentée: {amount} {currency}. Vous devez attendre la date d'expiration pour que votre nouvelle limite prenne effet:`,
20
+ defaultText: `"Lorsque vous définissez une limite de jeu, elle prend effet à partir du moment ou vous l'activez et dure jusqu'à la fin de la période séléctionnée. Par conséquent, si vous fixez une limite quotidienne à 14.00, la période de 24 heures qui compte est celle allant de son activation jusqu'à 00:00 GMT.la limite est alors valable 24 jours. vous pouvez abaisser une limite à tout moment avec un effet immédiat. cependant, l'augmentation ou la suppression d'une limite ne s'appliquera que lorsque la limite actuelle expira.`
21
+ }
22
+ },
23
+ ro: {
24
+ popupText: {
25
+ name: `Informații`,
26
+ amountChanged: `Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.`,
27
+ defaultText: `Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră. `
28
+ }
29
+ },
30
+ es: {
31
+ popupText: {
32
+ name: `Información`,
33
+ amountChanged: `Su límite ha cambiado o aumentado: {cantidad} {moneda}. Tendrás que esperar a la fecha de vencimiento para que tu nuevo límite entre en vigencia:`,
34
+ defaultText: `Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual.`
35
+ }
36
+ },
37
+ pt: {
38
+ popupText: {
39
+ name: `Informação`,
40
+ amountChanged: `Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:`,
41
+ defaultText: `Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar.`
42
+ }
43
+ },
44
+ };
@@ -1,13 +1,13 @@
1
- import { html } from 'lit-element';
2
-
3
- import PlayerAccountGamingLimitsPopup from '../src/PlayerAccountGamingLimitsPopup';
4
-
5
- // This default export determines where your story goes in the story list
6
- export default {
7
- title: 'PlayerAccountGamingLimitsPopup',
8
- };
9
-
10
- // 👇 We create a “template” of how args map to rendering
11
- const PlayerAccountGamingLimitsPopup = ({ aProperty }) => html`<player-account-gaming-limits-popup></player-account-gaming-limits-popup>`;
12
-
13
- export const FirstStory = PlayerAccountGamingLimitsPopup.bind({});
1
+ import { html } from 'lit-element';
2
+
3
+ import PlayerAccountGamingLimitsPopup from '../src/PlayerAccountGamingLimitsPopup';
4
+
5
+ // This default export determines where your story goes in the story list
6
+ export default {
7
+ title: 'PlayerAccountGamingLimitsPopup',
8
+ };
9
+
10
+ // 👇 We create a “template” of how args map to rendering
11
+ const PlayerAccountGamingLimitsPopup = ({ aProperty }) => html`<player-account-gaming-limits-popup></player-account-gaming-limits-popup>`;
12
+
13
+ export const FirstStory = PlayerAccountGamingLimitsPopup.bind({});
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "extends": "@tsconfig/svelte/tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
- }
1
+ {
2
+ "extends": "@tsconfig/svelte/tsconfig.json",
3
+
4
+ "include": ["src/**/*"],
5
+ "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
+ }