@everymatrix/player-account-gaming-limits 0.0.367 → 0.0.369
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/README.md +30 -30
- package/dist/player-account-gaming-limits.js.map +1 -1
- package/index.html +37 -37
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +67 -67
- package/src/PlayerAccountGamingLimits.svelte +256 -256
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +62 -62
- package/stories/PlayerAccountGamingLimits.stories.js +13 -13
- package/tsconfig.json +6 -6
|
@@ -1,256 +1,256 @@
|
|
|
1
|
-
<svelte:options tag={null} />
|
|
2
|
-
<script lang="ts">
|
|
3
|
-
import { getDevice } from 'rvhelper';
|
|
4
|
-
import { onMount, tick } from "svelte";
|
|
5
|
-
import { _, addNewMessages, setLocale } from './i18n';
|
|
6
|
-
import { PlayerGamingLimitsCardTranslations } from './translations';
|
|
7
|
-
import '@everymatrix/player-account-gaming-limits-info-card';
|
|
8
|
-
|
|
9
|
-
export let depositlimit:any;
|
|
10
|
-
export let wageringlimit:any;
|
|
11
|
-
export let losslimit:any;
|
|
12
|
-
export let timelimit:any;
|
|
13
|
-
export let showdeletenotification:boolean = false;
|
|
14
|
-
export let showsuccessnotification:boolean = false;
|
|
15
|
-
export let lang:string = 'en';
|
|
16
|
-
export let playercurrency:string = '';
|
|
17
|
-
export let separatelimits:string = 'true';
|
|
18
|
-
|
|
19
|
-
Object.keys(PlayerGamingLimitsCardTranslations).forEach((item) => {
|
|
20
|
-
addNewMessages(item, PlayerGamingLimitsCardTranslations[item]);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
let isLoading:boolean = true;
|
|
24
|
-
let userAgent:String = window.navigator.userAgent;
|
|
25
|
-
let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
|
|
26
|
-
|
|
27
|
-
let editLimitData:any;
|
|
28
|
-
let editLimitName:string = '';
|
|
29
|
-
let limitsGroupView:boolean = true;
|
|
30
|
-
|
|
31
|
-
let depositLimitName = 'Deposit Limit';
|
|
32
|
-
let wageringLimitName = 'Wagering Limit';
|
|
33
|
-
let lossLimitName = 'Loss Limit';
|
|
34
|
-
let timeLimitName = 'Time Limit';
|
|
35
|
-
|
|
36
|
-
const mediaQuery = window.matchMedia('(min-width: 768px)');
|
|
37
|
-
|
|
38
|
-
const toggleScreen = () => {
|
|
39
|
-
window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const setActiveLanguage = () => {
|
|
43
|
-
setLocale(lang);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const getLimitdata = (limitData) => {
|
|
47
|
-
window.postMessage({type: 'GetLimitData', limit: limitData}, window.location.href);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const messageHandler = (e:any) => {
|
|
51
|
-
if (e.data) {
|
|
52
|
-
switch(e.data.type) {
|
|
53
|
-
case 'PlayerLimitsData':
|
|
54
|
-
lang = e.data.limits.lang;
|
|
55
|
-
depositlimit = e.data.limits.depositlimit;
|
|
56
|
-
wageringlimit = e.data.limits.wageringlimit;
|
|
57
|
-
losslimit = e.data.limits.losslimit;
|
|
58
|
-
timelimit = e.data.limits.timelimit;
|
|
59
|
-
isLoading = false;
|
|
60
|
-
break;
|
|
61
|
-
|
|
62
|
-
case 'EditPlayerAccountGamingLimits':
|
|
63
|
-
editLimitData = e.data.edit;
|
|
64
|
-
editLimitName = e.data.name;
|
|
65
|
-
limitsGroupView = false;
|
|
66
|
-
window.postMessage({ type: 'EditPlayerLimit', name: editLimitName }, window.location.href);
|
|
67
|
-
break;
|
|
68
|
-
|
|
69
|
-
case 'PlayerAccountBackToLimitsView':
|
|
70
|
-
limitsGroupView = true;
|
|
71
|
-
break;
|
|
72
|
-
|
|
73
|
-
case 'ProfileDetailsData':
|
|
74
|
-
let profileDetails:any = e.data.profileDetails;
|
|
75
|
-
playercurrency = profileDetails.currency;
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
onMount(() => {
|
|
82
|
-
window.addEventListener('message', messageHandler, false);
|
|
83
|
-
return () => {
|
|
84
|
-
window.removeEventListener('message', messageHandler);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
$: lang && setActiveLanguage();
|
|
89
|
-
</script>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{#if isLoading}
|
|
93
|
-
<div class="ModalLoader" part="ModalLoader"></div>
|
|
94
|
-
{:else}
|
|
95
|
-
{#if limitsGroupView}
|
|
96
|
-
<div class="PlayerAccountGamingLimitsWrapper {isMobile ? 'PlayerAccountMobileGamingLimitsWrapper' : ''} {mediaQuery.matches && isMobile ? 'PlayerAccountTabletGamingLimitsWrapper' : ''}" part="PlayerAccountGamingLimitsWrapper {isMobile ? 'PlayerAccountMobileGamingLimitsWrapper' : ''} {mediaQuery.matches && isMobile ? 'PlayerAccountTabletGamingLimitsWrapper' : ''}">
|
|
97
|
-
{#if isMobile}
|
|
98
|
-
<div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
99
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><g transform="translate(-20 -158)">
|
|
100
|
-
<g transform="translate(20 158)">
|
|
101
|
-
<path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
|
|
102
|
-
</g></g>
|
|
103
|
-
</svg>
|
|
104
|
-
<h2 class="PlayerGamingLimitsTitleMobile" part="PlayerGamingLimitsTitleMobile">{$_('gamingLimits.gamingLimitsText')}</h2>
|
|
105
|
-
</div>
|
|
106
|
-
{/if}
|
|
107
|
-
<h2 class="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}" part="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}">{$_('gamingLimits.gamingLimitsText')}</h2>
|
|
108
|
-
|
|
109
|
-
<div class="PlayerAccountGamingLimitsContainer" part="PlayerAccountGamingLimitsContainer">
|
|
110
|
-
<player-account-gaming-limits-info-card
|
|
111
|
-
limitsdata={depositlimit}
|
|
112
|
-
limitname={depositLimitName}
|
|
113
|
-
{playercurrency} {lang}>
|
|
114
|
-
</player-account-gaming-limits-info-card>
|
|
115
|
-
<player-account-gaming-limits-info-card
|
|
116
|
-
limitsdata={wageringlimit}
|
|
117
|
-
limitname={wageringLimitName}
|
|
118
|
-
{playercurrency}
|
|
119
|
-
{lang}>
|
|
120
|
-
</player-account-gaming-limits-info-card>
|
|
121
|
-
<player-account-gaming-limits-info-card
|
|
122
|
-
limitsdata={losslimit}
|
|
123
|
-
limitname={lossLimitName}
|
|
124
|
-
{playercurrency}
|
|
125
|
-
{lang}>
|
|
126
|
-
</player-account-gaming-limits-info-card>
|
|
127
|
-
<player-account-gaming-limits-info-card
|
|
128
|
-
limitsdata={timelimit}
|
|
129
|
-
limitname={timeLimitName}
|
|
130
|
-
{playercurrency}
|
|
131
|
-
{lang}>
|
|
132
|
-
</player-account-gaming-limits-info-card>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
{:else}
|
|
136
|
-
<player-account-gaming-limits-group-edit
|
|
137
|
-
limitsdata={editLimitData}
|
|
138
|
-
limitname={editLimitName}
|
|
139
|
-
{showsuccessnotification}
|
|
140
|
-
{showdeletenotification}
|
|
141
|
-
{playercurrency}
|
|
142
|
-
{lang}
|
|
143
|
-
{separatelimits}>
|
|
144
|
-
</player-account-gaming-limits-group-edit>
|
|
145
|
-
{/if}
|
|
146
|
-
{/if}
|
|
147
|
-
|
|
148
|
-
<style lang="scss">
|
|
149
|
-
|
|
150
|
-
:host {
|
|
151
|
-
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.PlayerAccountGamingLimitsWrapper {
|
|
155
|
-
color: var(--emfe-w-color-primary, #D0046C);
|
|
156
|
-
padding: 50px;
|
|
157
|
-
max-width: 760px;
|
|
158
|
-
.PlayerAccountGamingLimitsHeader {
|
|
159
|
-
h3 {
|
|
160
|
-
font-size: 24px;
|
|
161
|
-
font-weight: 400;
|
|
162
|
-
text-transform: capitalize;
|
|
163
|
-
}
|
|
164
|
-
.PlayerAccountGamingLimitsMobileTitle {
|
|
165
|
-
font-size: 16px;
|
|
166
|
-
font-weight: 400;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.PlayerGamingLimitsTitle {
|
|
172
|
-
font-size: 26px;
|
|
173
|
-
color: var(--emfe-w-color-primary, #D0046C);
|
|
174
|
-
font-weight: 400;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.PlayerGamingLimitsTitleMobile {
|
|
178
|
-
font-size: 16px;
|
|
179
|
-
color: var(--emfe-w-color-primary, #D0046C);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.PlayerGamingLimitsTitleNone {
|
|
183
|
-
display: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.MenuReturnButton{
|
|
187
|
-
color: var(--emfe-w-color-primary, #D0046C);
|
|
188
|
-
display: inline-flex;
|
|
189
|
-
align-items: center;
|
|
190
|
-
column-gap: 10px;
|
|
191
|
-
margin-bottom: 10px;
|
|
192
|
-
& svg {
|
|
193
|
-
fill: var(--emfe-w-color-primary, #D0046C);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
.PlayerAccountMobileGamingLimitsWrapper {
|
|
197
|
-
padding: 20px 15px;
|
|
198
|
-
background: var(--emfe-w-color-white, #FFFFFF);
|
|
199
|
-
max-width: unset;
|
|
200
|
-
}
|
|
201
|
-
.PlayerAccountTabletGamingLimitsWrapper {
|
|
202
|
-
padding: 40px 25% 40px 25%;
|
|
203
|
-
}
|
|
204
|
-
.PlayerAccountGamingLimitsContainer {
|
|
205
|
-
width: 100%;
|
|
206
|
-
display: grid;
|
|
207
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
208
|
-
row-gap: 30px;
|
|
209
|
-
column-gap: 30px;
|
|
210
|
-
}
|
|
211
|
-
.PlayerAccountSuccessfulRemoveContainer {
|
|
212
|
-
background: var(--emfe-w-color-primary-50, #FBECF4);
|
|
213
|
-
border: 1px solid var(--emfe-w-color-primary-100, #F1BED9);
|
|
214
|
-
font-size: 16px;
|
|
215
|
-
font-weight: 300;
|
|
216
|
-
color: var(--emfe-w-color-contrast, #07072A);
|
|
217
|
-
border-radius: 5px;
|
|
218
|
-
padding: 10px;
|
|
219
|
-
margin-bottom: 20px;
|
|
220
|
-
p {
|
|
221
|
-
margin: 0;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.ModalLoader {
|
|
226
|
-
position: absolute;
|
|
227
|
-
left: 0;
|
|
228
|
-
right: 0;
|
|
229
|
-
top: 50%;
|
|
230
|
-
width: 300px;
|
|
231
|
-
height: 300px;
|
|
232
|
-
margin: 0 auto;
|
|
233
|
-
display: flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
}
|
|
237
|
-
.ModalLoader:after {
|
|
238
|
-
content: " ";
|
|
239
|
-
display: block;
|
|
240
|
-
width: 64px;
|
|
241
|
-
height: 64px;
|
|
242
|
-
margin: 8px;
|
|
243
|
-
border-radius: 50%;
|
|
244
|
-
border: 5px solid var(--emfe-w-color-primary, #D0046C);
|
|
245
|
-
border-color: var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;
|
|
246
|
-
animation: Loader 1.2s linear infinite;
|
|
247
|
-
}
|
|
248
|
-
@keyframes Loader {
|
|
249
|
-
0% {
|
|
250
|
-
transform: rotate(0deg);
|
|
251
|
-
}
|
|
252
|
-
100% {
|
|
253
|
-
transform: rotate(360deg);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
</style>
|
|
1
|
+
<svelte:options tag={null} />
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { getDevice } from 'rvhelper';
|
|
4
|
+
import { onMount, tick } from "svelte";
|
|
5
|
+
import { _, addNewMessages, setLocale } from './i18n';
|
|
6
|
+
import { PlayerGamingLimitsCardTranslations } from './translations';
|
|
7
|
+
import '@everymatrix/player-account-gaming-limits-info-card';
|
|
8
|
+
|
|
9
|
+
export let depositlimit:any;
|
|
10
|
+
export let wageringlimit:any;
|
|
11
|
+
export let losslimit:any;
|
|
12
|
+
export let timelimit:any;
|
|
13
|
+
export let showdeletenotification:boolean = false;
|
|
14
|
+
export let showsuccessnotification:boolean = false;
|
|
15
|
+
export let lang:string = 'en';
|
|
16
|
+
export let playercurrency:string = '';
|
|
17
|
+
export let separatelimits:string = 'true';
|
|
18
|
+
|
|
19
|
+
Object.keys(PlayerGamingLimitsCardTranslations).forEach((item) => {
|
|
20
|
+
addNewMessages(item, PlayerGamingLimitsCardTranslations[item]);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
let isLoading:boolean = true;
|
|
24
|
+
let userAgent:String = window.navigator.userAgent;
|
|
25
|
+
let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
|
|
26
|
+
|
|
27
|
+
let editLimitData:any;
|
|
28
|
+
let editLimitName:string = '';
|
|
29
|
+
let limitsGroupView:boolean = true;
|
|
30
|
+
|
|
31
|
+
let depositLimitName = 'Deposit Limit';
|
|
32
|
+
let wageringLimitName = 'Wagering Limit';
|
|
33
|
+
let lossLimitName = 'Loss Limit';
|
|
34
|
+
let timeLimitName = 'Time Limit';
|
|
35
|
+
|
|
36
|
+
const mediaQuery = window.matchMedia('(min-width: 768px)');
|
|
37
|
+
|
|
38
|
+
const toggleScreen = () => {
|
|
39
|
+
window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const setActiveLanguage = () => {
|
|
43
|
+
setLocale(lang);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const getLimitdata = (limitData) => {
|
|
47
|
+
window.postMessage({type: 'GetLimitData', limit: limitData}, window.location.href);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const messageHandler = (e:any) => {
|
|
51
|
+
if (e.data) {
|
|
52
|
+
switch(e.data.type) {
|
|
53
|
+
case 'PlayerLimitsData':
|
|
54
|
+
lang = e.data.limits.lang;
|
|
55
|
+
depositlimit = e.data.limits.depositlimit;
|
|
56
|
+
wageringlimit = e.data.limits.wageringlimit;
|
|
57
|
+
losslimit = e.data.limits.losslimit;
|
|
58
|
+
timelimit = e.data.limits.timelimit;
|
|
59
|
+
isLoading = false;
|
|
60
|
+
break;
|
|
61
|
+
|
|
62
|
+
case 'EditPlayerAccountGamingLimits':
|
|
63
|
+
editLimitData = e.data.edit;
|
|
64
|
+
editLimitName = e.data.name;
|
|
65
|
+
limitsGroupView = false;
|
|
66
|
+
window.postMessage({ type: 'EditPlayerLimit', name: editLimitName }, window.location.href);
|
|
67
|
+
break;
|
|
68
|
+
|
|
69
|
+
case 'PlayerAccountBackToLimitsView':
|
|
70
|
+
limitsGroupView = true;
|
|
71
|
+
break;
|
|
72
|
+
|
|
73
|
+
case 'ProfileDetailsData':
|
|
74
|
+
let profileDetails:any = e.data.profileDetails;
|
|
75
|
+
playercurrency = profileDetails.currency;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
onMount(() => {
|
|
82
|
+
window.addEventListener('message', messageHandler, false);
|
|
83
|
+
return () => {
|
|
84
|
+
window.removeEventListener('message', messageHandler);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
$: lang && setActiveLanguage();
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
{#if isLoading}
|
|
93
|
+
<div class="ModalLoader" part="ModalLoader"></div>
|
|
94
|
+
{:else}
|
|
95
|
+
{#if limitsGroupView}
|
|
96
|
+
<div class="PlayerAccountGamingLimitsWrapper {isMobile ? 'PlayerAccountMobileGamingLimitsWrapper' : ''} {mediaQuery.matches && isMobile ? 'PlayerAccountTabletGamingLimitsWrapper' : ''}" part="PlayerAccountGamingLimitsWrapper {isMobile ? 'PlayerAccountMobileGamingLimitsWrapper' : ''} {mediaQuery.matches && isMobile ? 'PlayerAccountTabletGamingLimitsWrapper' : ''}">
|
|
97
|
+
{#if isMobile}
|
|
98
|
+
<div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
99
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><g transform="translate(-20 -158)">
|
|
100
|
+
<g transform="translate(20 158)">
|
|
101
|
+
<path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
|
|
102
|
+
</g></g>
|
|
103
|
+
</svg>
|
|
104
|
+
<h2 class="PlayerGamingLimitsTitleMobile" part="PlayerGamingLimitsTitleMobile">{$_('gamingLimits.gamingLimitsText')}</h2>
|
|
105
|
+
</div>
|
|
106
|
+
{/if}
|
|
107
|
+
<h2 class="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}" part="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}">{$_('gamingLimits.gamingLimitsText')}</h2>
|
|
108
|
+
|
|
109
|
+
<div class="PlayerAccountGamingLimitsContainer" part="PlayerAccountGamingLimitsContainer">
|
|
110
|
+
<player-account-gaming-limits-info-card
|
|
111
|
+
limitsdata={depositlimit}
|
|
112
|
+
limitname={depositLimitName}
|
|
113
|
+
{playercurrency} {lang}>
|
|
114
|
+
</player-account-gaming-limits-info-card>
|
|
115
|
+
<player-account-gaming-limits-info-card
|
|
116
|
+
limitsdata={wageringlimit}
|
|
117
|
+
limitname={wageringLimitName}
|
|
118
|
+
{playercurrency}
|
|
119
|
+
{lang}>
|
|
120
|
+
</player-account-gaming-limits-info-card>
|
|
121
|
+
<player-account-gaming-limits-info-card
|
|
122
|
+
limitsdata={losslimit}
|
|
123
|
+
limitname={lossLimitName}
|
|
124
|
+
{playercurrency}
|
|
125
|
+
{lang}>
|
|
126
|
+
</player-account-gaming-limits-info-card>
|
|
127
|
+
<player-account-gaming-limits-info-card
|
|
128
|
+
limitsdata={timelimit}
|
|
129
|
+
limitname={timeLimitName}
|
|
130
|
+
{playercurrency}
|
|
131
|
+
{lang}>
|
|
132
|
+
</player-account-gaming-limits-info-card>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
{:else}
|
|
136
|
+
<player-account-gaming-limits-group-edit
|
|
137
|
+
limitsdata={editLimitData}
|
|
138
|
+
limitname={editLimitName}
|
|
139
|
+
{showsuccessnotification}
|
|
140
|
+
{showdeletenotification}
|
|
141
|
+
{playercurrency}
|
|
142
|
+
{lang}
|
|
143
|
+
{separatelimits}>
|
|
144
|
+
</player-account-gaming-limits-group-edit>
|
|
145
|
+
{/if}
|
|
146
|
+
{/if}
|
|
147
|
+
|
|
148
|
+
<style lang="scss">
|
|
149
|
+
|
|
150
|
+
:host {
|
|
151
|
+
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.PlayerAccountGamingLimitsWrapper {
|
|
155
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
156
|
+
padding: 50px;
|
|
157
|
+
max-width: 760px;
|
|
158
|
+
.PlayerAccountGamingLimitsHeader {
|
|
159
|
+
h3 {
|
|
160
|
+
font-size: 24px;
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
text-transform: capitalize;
|
|
163
|
+
}
|
|
164
|
+
.PlayerAccountGamingLimitsMobileTitle {
|
|
165
|
+
font-size: 16px;
|
|
166
|
+
font-weight: 400;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.PlayerGamingLimitsTitle {
|
|
172
|
+
font-size: 26px;
|
|
173
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
174
|
+
font-weight: 400;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.PlayerGamingLimitsTitleMobile {
|
|
178
|
+
font-size: 16px;
|
|
179
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.PlayerGamingLimitsTitleNone {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.MenuReturnButton{
|
|
187
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
188
|
+
display: inline-flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
column-gap: 10px;
|
|
191
|
+
margin-bottom: 10px;
|
|
192
|
+
& svg {
|
|
193
|
+
fill: var(--emfe-w-color-primary, #D0046C);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
.PlayerAccountMobileGamingLimitsWrapper {
|
|
197
|
+
padding: 20px 15px;
|
|
198
|
+
background: var(--emfe-w-color-white, #FFFFFF);
|
|
199
|
+
max-width: unset;
|
|
200
|
+
}
|
|
201
|
+
.PlayerAccountTabletGamingLimitsWrapper {
|
|
202
|
+
padding: 40px 25% 40px 25%;
|
|
203
|
+
}
|
|
204
|
+
.PlayerAccountGamingLimitsContainer {
|
|
205
|
+
width: 100%;
|
|
206
|
+
display: grid;
|
|
207
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
208
|
+
row-gap: 30px;
|
|
209
|
+
column-gap: 30px;
|
|
210
|
+
}
|
|
211
|
+
.PlayerAccountSuccessfulRemoveContainer {
|
|
212
|
+
background: var(--emfe-w-color-primary-50, #FBECF4);
|
|
213
|
+
border: 1px solid var(--emfe-w-color-primary-100, #F1BED9);
|
|
214
|
+
font-size: 16px;
|
|
215
|
+
font-weight: 300;
|
|
216
|
+
color: var(--emfe-w-color-contrast, #07072A);
|
|
217
|
+
border-radius: 5px;
|
|
218
|
+
padding: 10px;
|
|
219
|
+
margin-bottom: 20px;
|
|
220
|
+
p {
|
|
221
|
+
margin: 0;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.ModalLoader {
|
|
226
|
+
position: absolute;
|
|
227
|
+
left: 0;
|
|
228
|
+
right: 0;
|
|
229
|
+
top: 50%;
|
|
230
|
+
width: 300px;
|
|
231
|
+
height: 300px;
|
|
232
|
+
margin: 0 auto;
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
}
|
|
237
|
+
.ModalLoader:after {
|
|
238
|
+
content: " ";
|
|
239
|
+
display: block;
|
|
240
|
+
width: 64px;
|
|
241
|
+
height: 64px;
|
|
242
|
+
margin: 8px;
|
|
243
|
+
border-radius: 50%;
|
|
244
|
+
border: 5px solid var(--emfe-w-color-primary, #D0046C);
|
|
245
|
+
border-color: var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;
|
|
246
|
+
animation: Loader 1.2s linear infinite;
|
|
247
|
+
}
|
|
248
|
+
@keyframes Loader {
|
|
249
|
+
0% {
|
|
250
|
+
transform: rotate(0deg);
|
|
251
|
+
}
|
|
252
|
+
100% {
|
|
253
|
+
transform: rotate(360deg);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
</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 PlayerAccountGamingLimits from './PlayerAccountGamingLimits.svelte';
|
|
2
|
-
|
|
3
|
-
!customElements.get('player-account-gaming-limits') && customElements.define('player-account-gaming-limits', PlayerAccountGamingLimits);
|
|
4
|
-
export default PlayerAccountGamingLimits;
|
|
1
|
+
import PlayerAccountGamingLimits from './PlayerAccountGamingLimits.svelte';
|
|
2
|
+
|
|
3
|
+
!customElements.get('player-account-gaming-limits') && customElements.define('player-account-gaming-limits', PlayerAccountGamingLimits);
|
|
4
|
+
export default PlayerAccountGamingLimits;
|