@everymatrix/player-account-gaming-limits 1.44.0 → 1.45.2
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/components/PlayerAccountGamingLimits-BhZh042a.js +5251 -0
- package/components/PlayerAccountGamingLimits-viRNSgkd.cjs +8 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-Bb1_bXSm.cjs +1 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-DoJuz29x.js +306 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-9nPccBBm.js +4148 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-BlFJYk5p.cjs +10 -0
- package/components/PlayerAccountGamingLimitsInfoCard-Bgg-oksy.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-C6mt1_vl.js +1488 -0
- package/components/PlayerAccountGamingLimitsPopup-BnvMrqy8.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPopup-Dd_w3Jrl.js +339 -0
- package/components/PlayerAccountModal-C0S3GOGp.js +198 -0
- package/components/PlayerAccountModal-CJumHBfB.cjs +1 -0
- package/es2015/player-account-gaming-limits.cjs +1 -0
- package/es2015/player-account-gaming-limits.js +16 -0
- package/package.json +17 -32
- package/README.md +0 -30
- package/dist/player-account-gaming-limits.js +0 -4
- package/dist/player-account-gaming-limits.js.map +0 -1
- package/index.html +0 -37
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/PlayerAccountGamingLimits.svelte +0 -308
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -82
- package/stories/PlayerAccountGamingLimits.stories.js +0 -13
- package/tsconfig.json +0 -6
package/index.html
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset='utf-8'>
|
|
5
|
-
<meta name='viewport' content='width=device-width,initial-scale=1'>
|
|
6
|
-
|
|
7
|
-
<title>
|
|
8
|
-
player-account-gaming-limits
|
|
9
|
-
</title>
|
|
10
|
-
<link rel="stylesheet" href="public/reset.css">
|
|
11
|
-
<script src='dist/player-account-gaming-limits.js'></script>
|
|
12
|
-
</head>
|
|
13
|
-
|
|
14
|
-
<body>
|
|
15
|
-
<style>
|
|
16
|
-
html,body { margin: 0; padding: 0; height: 100%; font-family: "Helvetica Neue", "Helvetica", sans-serif; }
|
|
17
|
-
.header { display: flex; justify-content: center; align-items: center; padding: 10px 20px; margin-bottom: 20px; background: #42a3e2; box-shadow: 3px 4px 5px 0px rgba(0,0,0, .2); }
|
|
18
|
-
.header__logo svg { height: 50px; width: 50px; margin-right: 5px; }
|
|
19
|
-
.header__name { color: #fff; }
|
|
20
|
-
.header__name span { margin-right: 10px; font-weight: bold; }
|
|
21
|
-
.webcomponent { padding: 10px 20px; }
|
|
22
|
-
</style>
|
|
23
|
-
<header class="header">
|
|
24
|
-
<div class="header__logo">
|
|
25
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="161" height="132" viewBox="0 0 161 132"><defs><linearGradient x1="0%" y1="50%" y2="50%" id="a"><stop stop-color="#2A3B8F" offset="0%"/><stop stop-color="#29ABE2" offset="100%"/></linearGradient><linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="c"><stop stop-color="#B4D44E" offset="0%"/><stop stop-color="#E7F716" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="#166DA5" d="M160.6 65.9l-17.4 29.3-24.4-29.7 24.4-28.9z"/><path fill="#8FDB69" d="M141.3 100.2l-26.5-31.7-15.9 26.6 24.7 36.1z"/><path fill="#166DA5" d="M141 31.4l-26.2 31.8-15.9-26.6L123.6.9z"/><path fill="url(#a)" opacity=".95" d="M61.1 31.4H141L123.4.7H78.7z M114.8 63.3H159l-15.9-26.8H98.8"/><path fill="url(#c)" opacity=".95" d="M141.3 100.3H61l17.6 30.5h45z M114.8 68.4H159l-15.9 26.8H98.8"/><path fill="#010101" d="M78.6 130.8L41 65.8 79.1.8H37.9L.4 65.8l37.5 65z"/></g></svg>
|
|
26
|
-
</div>
|
|
27
|
-
<h1 class="header__name">
|
|
28
|
-
<span>WEBCOMPONENT:</span> player-account-gaming-limits
|
|
29
|
-
</h1>
|
|
30
|
-
</header>
|
|
31
|
-
|
|
32
|
-
<div class="webcomponent">
|
|
33
|
-
<player-account-gaming-limits></player-account-gaming-limits>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
</body>
|
|
37
|
-
</html>
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './dist/player-account-gaming-limits.js';
|
package/public/favicon.png
DELETED
|
Binary file
|
package/public/reset.css
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
-
v2.0 | 20110126
|
|
3
|
-
License: none (public domain)
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
html, body, div, span, applet, object, iframe,
|
|
7
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
8
|
-
a, abbr, acronym, address, big, cite, code,
|
|
9
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
10
|
-
small, strike, strong, sub, sup, tt, var,
|
|
11
|
-
b, u, i, center,
|
|
12
|
-
dl, dt, dd, ol, ul, li,
|
|
13
|
-
fieldset, form, label, legend,
|
|
14
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
15
|
-
article, aside, canvas, details, embed,
|
|
16
|
-
figure, figcaption, footer, header, hgroup,
|
|
17
|
-
menu, nav, output, ruby, section, summary,
|
|
18
|
-
time, mark, audio, video {
|
|
19
|
-
margin: 0;
|
|
20
|
-
padding: 0;
|
|
21
|
-
border: 0;
|
|
22
|
-
font-size: 100%;
|
|
23
|
-
font: inherit;
|
|
24
|
-
vertical-align: baseline;
|
|
25
|
-
}
|
|
26
|
-
/* HTML5 display-role reset for older browsers */
|
|
27
|
-
article, aside, details, figcaption, figure,
|
|
28
|
-
footer, header, hgroup, menu, nav, section {
|
|
29
|
-
display: block;
|
|
30
|
-
}
|
|
31
|
-
body {
|
|
32
|
-
line-height: 1;
|
|
33
|
-
}
|
|
34
|
-
ol, ul {
|
|
35
|
-
list-style: none;
|
|
36
|
-
}
|
|
37
|
-
blockquote, q {
|
|
38
|
-
quotes: none;
|
|
39
|
-
}
|
|
40
|
-
blockquote:before, blockquote:after,
|
|
41
|
-
q:before, q:after {
|
|
42
|
-
content: '';
|
|
43
|
-
content: none;
|
|
44
|
-
}
|
|
45
|
-
table {
|
|
46
|
-
border-collapse: collapse;
|
|
47
|
-
border-spacing: 0;
|
|
48
|
-
}
|
package/rollup.config.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import svelte from 'rollup-plugin-svelte';
|
|
2
|
-
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
-
import resolve from '@rollup/plugin-node-resolve';
|
|
4
|
-
import serve from 'rollup-plugin-dev-server';
|
|
5
|
-
import livereload from 'rollup-plugin-livereload';
|
|
6
|
-
import { terser } from 'rollup-plugin-terser';
|
|
7
|
-
import sveltePreprocess from 'svelte-preprocess';
|
|
8
|
-
import typescript from '@rollup/plugin-typescript';
|
|
9
|
-
import uglify from 'rollup-plugin-uglify';
|
|
10
|
-
import image from '@rollup/plugin-image';
|
|
11
|
-
|
|
12
|
-
const production = process.env.NODE_ENV == 'production';
|
|
13
|
-
const dev = process.env.NODE_ENV == 'development';
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
input: 'src/index.ts',
|
|
17
|
-
output: {
|
|
18
|
-
sourcemap: true,
|
|
19
|
-
format: 'umd',
|
|
20
|
-
name: 'app',
|
|
21
|
-
file: 'dist/player-account-gaming-limits.js',
|
|
22
|
-
},
|
|
23
|
-
plugins: [
|
|
24
|
-
svelte({
|
|
25
|
-
preprocess: sveltePreprocess(),
|
|
26
|
-
compilerOptions: {
|
|
27
|
-
// @TODO check generate and hydratable
|
|
28
|
-
// generate: 'ssr',
|
|
29
|
-
// hydratable: true,
|
|
30
|
-
// enable run-time checks when not in production
|
|
31
|
-
customElement: true,
|
|
32
|
-
dev: !production
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
image(),
|
|
36
|
-
commonjs(),
|
|
37
|
-
resolve({
|
|
38
|
-
browser: true,
|
|
39
|
-
dedupe: ['svelte']
|
|
40
|
-
}),
|
|
41
|
-
dev && serve({
|
|
42
|
-
open: true,
|
|
43
|
-
verbose: true,
|
|
44
|
-
allowCrossOrigin: true,
|
|
45
|
-
historyApiFallback: false,
|
|
46
|
-
host: 'localhost',
|
|
47
|
-
port: 5050,
|
|
48
|
-
}),
|
|
49
|
-
dev && livereload({ watch: ['', 'dist'] }),
|
|
50
|
-
typescript({
|
|
51
|
-
sourceMap: !production,
|
|
52
|
-
inlineSources: !production,
|
|
53
|
-
}),
|
|
54
|
-
// If we're building for production (npm run build
|
|
55
|
-
// instead of npm run dev), minify
|
|
56
|
-
production &&
|
|
57
|
-
terser({
|
|
58
|
-
output: {
|
|
59
|
-
comments: "all"
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
production && uglify.uglify()
|
|
63
|
-
],
|
|
64
|
-
watch: {
|
|
65
|
-
clearScreen: false
|
|
66
|
-
}
|
|
67
|
-
};
|
|
@@ -1,308 +0,0 @@
|
|
|
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 { TRANSLATIONS } 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
|
-
export let clientstyling:string = '';
|
|
19
|
-
export let clientstylingurl:string = '';
|
|
20
|
-
export let translationurl:string = '';
|
|
21
|
-
|
|
22
|
-
const setTranslationUrl = ():void => {
|
|
23
|
-
let url:string = translationurl;
|
|
24
|
-
|
|
25
|
-
fetch(url).then((res:any) => res.json())
|
|
26
|
-
.then((res) => {
|
|
27
|
-
Object.keys(res).forEach((item:any):void => {
|
|
28
|
-
addNewMessages(item, res[item]);
|
|
29
|
-
});
|
|
30
|
-
}).catch((err:any) => {
|
|
31
|
-
console.log(err);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
Object.keys(TRANSLATIONS).forEach((item) => {
|
|
36
|
-
addNewMessages(item, TRANSLATIONS[item]);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
let customStylingContainer:HTMLElement;
|
|
40
|
-
|
|
41
|
-
let isLoading:boolean = true;
|
|
42
|
-
let userAgent:String = window.navigator.userAgent;
|
|
43
|
-
let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
|
|
44
|
-
|
|
45
|
-
let editLimitData:any;
|
|
46
|
-
let editLimitName:string = '';
|
|
47
|
-
let limitsGroupView:boolean = true;
|
|
48
|
-
|
|
49
|
-
let depositLimitName = 'Deposit Limit';
|
|
50
|
-
let wageringLimitName = 'Wagering Limit';
|
|
51
|
-
let lossLimitName = 'Loss Limit';
|
|
52
|
-
let timeLimitName = 'Time Limit';
|
|
53
|
-
|
|
54
|
-
const mediaQuery = window.matchMedia('(min-width: 768px)');
|
|
55
|
-
|
|
56
|
-
const toggleScreen = () => {
|
|
57
|
-
window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const setActiveLanguage = () => {
|
|
61
|
-
setLocale(lang);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const getLimitdata = (limitData) => {
|
|
65
|
-
window.postMessage({type: 'GetLimitData', limit: limitData}, window.location.href);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const messageHandler = (e:any) => {
|
|
69
|
-
if (e.data) {
|
|
70
|
-
switch(e.data.type) {
|
|
71
|
-
case 'PlayerLimitsData':
|
|
72
|
-
lang = e.data.limits.lang;
|
|
73
|
-
depositlimit = e.data.limits.depositlimit;
|
|
74
|
-
wageringlimit = e.data.limits.wageringlimit;
|
|
75
|
-
losslimit = e.data.limits.losslimit;
|
|
76
|
-
timelimit = e.data.limits.timelimit;
|
|
77
|
-
isLoading = false;
|
|
78
|
-
break;
|
|
79
|
-
|
|
80
|
-
case 'EditPlayerAccountGamingLimits':
|
|
81
|
-
editLimitData = e.data.edit;
|
|
82
|
-
editLimitName = e.data.name;
|
|
83
|
-
limitsGroupView = false;
|
|
84
|
-
window.postMessage({ type: 'EditPlayerLimit', name: editLimitName }, window.location.href);
|
|
85
|
-
window.postMessage({ type: 'ScrollToTop'}, window.location.href);
|
|
86
|
-
break;
|
|
87
|
-
|
|
88
|
-
case 'PlayerAccountBackToLimitsView':
|
|
89
|
-
limitsGroupView = true;
|
|
90
|
-
break;
|
|
91
|
-
|
|
92
|
-
case 'ProfileDetailsData':
|
|
93
|
-
let profileDetails:any = e.data.profileDetails;
|
|
94
|
-
playercurrency = profileDetails.currency;
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const setClientStyling = ():void => {
|
|
101
|
-
let sheet = document.createElement('style');
|
|
102
|
-
sheet.innerHTML = clientstyling;
|
|
103
|
-
customStylingContainer.appendChild(sheet);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const setClientStylingURL = ():void => {
|
|
107
|
-
|
|
108
|
-
let url:URL = new URL(clientstylingurl);
|
|
109
|
-
let cssFile:HTMLElement = document.createElement('style');
|
|
110
|
-
|
|
111
|
-
fetch(url.href)
|
|
112
|
-
.then((res:any) => res.text())
|
|
113
|
-
.then((data:any) => {
|
|
114
|
-
cssFile.innerHTML = data;
|
|
115
|
-
|
|
116
|
-
setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
onMount(() => {
|
|
121
|
-
window.addEventListener('message', messageHandler, false);
|
|
122
|
-
return () => {
|
|
123
|
-
window.removeEventListener('message', messageHandler);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
$: lang && setActiveLanguage();
|
|
128
|
-
$: clientstyling && customStylingContainer && setClientStyling();
|
|
129
|
-
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
130
|
-
$: translationurl && setTranslationUrl();
|
|
131
|
-
</script>
|
|
132
|
-
|
|
133
|
-
<div bind:this={customStylingContainer}>
|
|
134
|
-
{#if isLoading}
|
|
135
|
-
<div class="ModalLoader"></div>
|
|
136
|
-
{:else}
|
|
137
|
-
{#if limitsGroupView}
|
|
138
|
-
<div class="PlayerAccountGamingLimitsWrapper {isMobile ? 'PlayerAccountMobileGamingLimitsWrapper' : ''} {mediaQuery.matches && isMobile ? 'PlayerAccountTabletGamingLimitsWrapper' : ''}">
|
|
139
|
-
{#if isMobile}
|
|
140
|
-
<div class="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
141
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}</style></defs><g transform="translate(-20 -158)">
|
|
142
|
-
<g transform="translate(20 158)">
|
|
143
|
-
<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)"/>
|
|
144
|
-
</g></g>
|
|
145
|
-
</svg>
|
|
146
|
-
<h2 class="PlayerGamingLimitsTitleMobile">{$_('gamingLimitsText')}</h2>
|
|
147
|
-
</div>
|
|
148
|
-
{/if}
|
|
149
|
-
<h2 class="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}">{$_('gamingLimitsText')}</h2>
|
|
150
|
-
|
|
151
|
-
<div class="PlayerAccountGamingLimitsContainer">
|
|
152
|
-
<player-account-gaming-limits-info-card
|
|
153
|
-
limitsdata={depositlimit}
|
|
154
|
-
limitname={depositLimitName}
|
|
155
|
-
{playercurrency}
|
|
156
|
-
{lang}
|
|
157
|
-
{clientstyling}
|
|
158
|
-
{clientstylingurl}
|
|
159
|
-
></player-account-gaming-limits-info-card>
|
|
160
|
-
<player-account-gaming-limits-info-card
|
|
161
|
-
limitsdata={wageringlimit}
|
|
162
|
-
limitname={wageringLimitName}
|
|
163
|
-
{playercurrency}
|
|
164
|
-
{lang}
|
|
165
|
-
{clientstyling}
|
|
166
|
-
{clientstylingurl}
|
|
167
|
-
></player-account-gaming-limits-info-card>
|
|
168
|
-
<player-account-gaming-limits-info-card
|
|
169
|
-
limitsdata={losslimit}
|
|
170
|
-
limitname={lossLimitName}
|
|
171
|
-
{playercurrency}
|
|
172
|
-
{lang}
|
|
173
|
-
{clientstyling}
|
|
174
|
-
{clientstylingurl}
|
|
175
|
-
></player-account-gaming-limits-info-card>
|
|
176
|
-
<player-account-gaming-limits-info-card
|
|
177
|
-
limitsdata={timelimit}
|
|
178
|
-
limitname={timeLimitName}
|
|
179
|
-
{playercurrency}
|
|
180
|
-
{lang}
|
|
181
|
-
{clientstyling}
|
|
182
|
-
{clientstylingurl}
|
|
183
|
-
></player-account-gaming-limits-info-card>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
{:else}
|
|
187
|
-
<player-account-gaming-limits-group-edit
|
|
188
|
-
limitsdata={editLimitData}
|
|
189
|
-
limitname={editLimitName}
|
|
190
|
-
{showsuccessnotification}
|
|
191
|
-
{showdeletenotification}
|
|
192
|
-
{playercurrency}
|
|
193
|
-
{lang}
|
|
194
|
-
{separatelimits}
|
|
195
|
-
{clientstyling}
|
|
196
|
-
{clientstylingurl}
|
|
197
|
-
></player-account-gaming-limits-group-edit>
|
|
198
|
-
{/if}
|
|
199
|
-
{/if}
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
<style lang="scss">
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
.PlayerAccountGamingLimitsWrapper {
|
|
207
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
208
|
-
padding: 50px;
|
|
209
|
-
max-width: 760px;
|
|
210
|
-
.PlayerAccountGamingLimitsHeader {
|
|
211
|
-
h3 {
|
|
212
|
-
font-size: 24px;
|
|
213
|
-
font-weight: 400;
|
|
214
|
-
text-transform: capitalize;
|
|
215
|
-
}
|
|
216
|
-
.PlayerAccountGamingLimitsMobileTitle {
|
|
217
|
-
font-size: 16px;
|
|
218
|
-
font-weight: 400;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.PlayerGamingLimitsTitle {
|
|
224
|
-
font-size: 26px;
|
|
225
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
226
|
-
font-weight: 400;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.PlayerGamingLimitsTitleMobile {
|
|
230
|
-
font-size: 16px;
|
|
231
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.PlayerGamingLimitsTitleNone {
|
|
235
|
-
display: none;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.MenuReturnButton{
|
|
239
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
240
|
-
display: inline-flex;
|
|
241
|
-
align-items: center;
|
|
242
|
-
column-gap: 10px;
|
|
243
|
-
margin-bottom: 10px;
|
|
244
|
-
& svg {
|
|
245
|
-
fill: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
.PlayerAccountMobileGamingLimitsWrapper {
|
|
249
|
-
padding: 20px 15px;
|
|
250
|
-
background: var(--emfe-w-color-white, #FFFFFF);
|
|
251
|
-
max-width: unset;
|
|
252
|
-
}
|
|
253
|
-
.PlayerAccountTabletGamingLimitsWrapper {
|
|
254
|
-
padding: 40px 25% 40px 25%;
|
|
255
|
-
}
|
|
256
|
-
.PlayerAccountGamingLimitsContainer {
|
|
257
|
-
width: 100%;
|
|
258
|
-
display: grid;
|
|
259
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
260
|
-
row-gap: 30px;
|
|
261
|
-
column-gap: 30px;
|
|
262
|
-
}
|
|
263
|
-
.PlayerAccountSuccessfulRemoveContainer {
|
|
264
|
-
background: var(--emfe-w-color-primary-50, #FBECF4);
|
|
265
|
-
border: 1px solid var(--emfe-w-color-primary-100, #F1BED9);
|
|
266
|
-
font-size: 16px;
|
|
267
|
-
font-weight: 300;
|
|
268
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
269
|
-
border-radius: 5px;
|
|
270
|
-
padding: 10px;
|
|
271
|
-
margin-bottom: 20px;
|
|
272
|
-
p {
|
|
273
|
-
margin: 0;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.ModalLoader {
|
|
278
|
-
position: absolute;
|
|
279
|
-
left: 0;
|
|
280
|
-
right: 0;
|
|
281
|
-
top: 50%;
|
|
282
|
-
width: 300px;
|
|
283
|
-
height: 300px;
|
|
284
|
-
margin: 0 auto;
|
|
285
|
-
display: flex;
|
|
286
|
-
align-items: center;
|
|
287
|
-
justify-content: center;
|
|
288
|
-
}
|
|
289
|
-
.ModalLoader:after {
|
|
290
|
-
content: " ";
|
|
291
|
-
display: block;
|
|
292
|
-
width: 64px;
|
|
293
|
-
height: 64px;
|
|
294
|
-
margin: 8px;
|
|
295
|
-
border-radius: 50%;
|
|
296
|
-
border: 5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
297
|
-
border-color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;
|
|
298
|
-
animation: Loader 1.2s linear infinite;
|
|
299
|
-
}
|
|
300
|
-
@keyframes Loader {
|
|
301
|
-
0% {
|
|
302
|
-
transform: rotate(0deg);
|
|
303
|
-
}
|
|
304
|
-
100% {
|
|
305
|
-
transform: rotate(360deg);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
</style>
|
package/src/i18n.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
DELETED
package/src/translations.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export const TRANSLATIONS = {
|
|
2
|
-
"en": {
|
|
3
|
-
"returnToMenu": "Return to menu",
|
|
4
|
-
"gamingLimitsText": "Gaming limits",
|
|
5
|
-
"depositLimit": "Deposit Limit",
|
|
6
|
-
"timeLimit": "Time Limit",
|
|
7
|
-
"wageringLimit": "Wagering Limit",
|
|
8
|
-
"lossLimit": "Loss Limit"
|
|
9
|
-
},
|
|
10
|
-
"zh-hk": {
|
|
11
|
-
"returnToMenu": "返回菜單",
|
|
12
|
-
"gamingLimitsText": "遊戲限制",
|
|
13
|
-
"depositLimit": "存款限額",
|
|
14
|
-
"timeLimit": "時限t",
|
|
15
|
-
"wageringLimit": "投注限額",
|
|
16
|
-
"lossLimit": "損失限額"
|
|
17
|
-
},
|
|
18
|
-
"fr": {
|
|
19
|
-
"returnToMenu": "Retour au menu",
|
|
20
|
-
"gamingLimitsText": "Limites de jeu",
|
|
21
|
-
"depositLimit": "Limite de dépôt",
|
|
22
|
-
"timeLimit": "Limite de temps",
|
|
23
|
-
"wageringLimit": "Limite de mise",
|
|
24
|
-
"lossLimit": "Limite de perte"
|
|
25
|
-
},
|
|
26
|
-
"ro": {
|
|
27
|
-
"returnToMenu": "Înapoi la meniu",
|
|
28
|
-
"gamingLimitsText": "Limite de joc",
|
|
29
|
-
"depositLimit": "Limită de depunere",
|
|
30
|
-
"timeLimit": "Limită de timp",
|
|
31
|
-
"wageringLimit": "Limită de pariere",
|
|
32
|
-
"lossLimit": "Limită de pierdere"
|
|
33
|
-
},
|
|
34
|
-
"es": {
|
|
35
|
-
"returnToMenu": "Regresar al menu",
|
|
36
|
-
"gamingLimitsText": "Límites de juego",
|
|
37
|
-
"depositLimit": "Límite de depósito",
|
|
38
|
-
"timeLimit": "Límite de tiempo",
|
|
39
|
-
"wageringLimit": "Límite de apuestas",
|
|
40
|
-
"lossLimit": "Límite de pérdida"
|
|
41
|
-
},
|
|
42
|
-
"pt": {
|
|
43
|
-
"returnToMenu": "Voltar ao Menu",
|
|
44
|
-
"gamingLimitsText": "Limites de jogos",
|
|
45
|
-
"depositLimit": "Limite de Depósito",
|
|
46
|
-
"timeLimit": "Limite de tempo",
|
|
47
|
-
"wageringLimit": "Limite de apostas",
|
|
48
|
-
"lossLimit": "Limite de Perda"
|
|
49
|
-
},
|
|
50
|
-
"hr": {
|
|
51
|
-
"returnToMenu": "Povratak na izbornik",
|
|
52
|
-
"gamingLimitsText": "Ograničenja igranja",
|
|
53
|
-
"depositLimit": "Ograničenje uplate",
|
|
54
|
-
"timeLimit": "Vremensko ograničenje",
|
|
55
|
-
"wageringLimit": "Ograničenje igranja",
|
|
56
|
-
"lossLimit": "Ograničenje gubitka"
|
|
57
|
-
},
|
|
58
|
-
"pt-br": {
|
|
59
|
-
"returnToMenu": "Voltar ao cardápio",
|
|
60
|
-
"gamingLimitsText": "Limites do jogo",
|
|
61
|
-
"depositLimit": "Limites de depósito",
|
|
62
|
-
"timeLimit": "Limite de tempo",
|
|
63
|
-
"wageringLimit": "Limite de aposta",
|
|
64
|
-
"lossLimit": "Limite de perda"
|
|
65
|
-
},
|
|
66
|
-
"es-mx": {
|
|
67
|
-
"returnToMenu": "Regresar al menú",
|
|
68
|
-
"gamingLimitsText": "Límites de juego",
|
|
69
|
-
"depositLimit": "Límites de depósito",
|
|
70
|
-
"timeLimit": "Límite de tiempo",
|
|
71
|
-
"wageringLimit": "Límite de apuesta",
|
|
72
|
-
"lossLimit": "Límite de pérdidas"
|
|
73
|
-
},
|
|
74
|
-
"tr": {
|
|
75
|
-
"returnToMenu": "Menüye dön",
|
|
76
|
-
"gamingLimitsText": "Oyun sınırları",
|
|
77
|
-
"depositLimit": "Para Yatırma Limiti",
|
|
78
|
-
"timeLimit": "Zaman sınırı",
|
|
79
|
-
"wageringLimit": "Bahis Limiti",
|
|
80
|
-
"lossLimit": "Kayıp Limiti"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import PlayerAccountGamingLimits from '../src/PlayerAccountGamingLimits';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'PlayerAccountGamingLimits',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const PlayerAccountGamingLimits = ({ aProperty }) => html`<player-account-gaming-limits></player-account-gaming-limits>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = PlayerAccountGamingLimits.bind({});
|