@everymatrix/player-account-timeout 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/components/PlayerAccountTimeout-2u7AZOLE.cjs +5 -0
- package/components/PlayerAccountTimeout-DxiWOpgl.js +4662 -0
- package/es2015/player-account-timeout.cjs +1 -0
- package/es2015/player-account-timeout.js +16 -0
- package/package.json +15 -33
- package/CHANGELOG.md +0 -7
- package/README.md +0 -30
- package/dist/player-account-timeout.js +0 -2
- package/dist/player-account-timeout.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/PlayerAccountTimeout.svelte +0 -228
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -102
- package/stories/PlayerAccountTimeout.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-timeout
|
|
9
|
-
</title>
|
|
10
|
-
<link rel="stylesheet" href="public/reset.css">
|
|
11
|
-
<script src='dist/player-account-timeout.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-timeout
|
|
29
|
-
</h1>
|
|
30
|
-
</header>
|
|
31
|
-
|
|
32
|
-
<div class="webcomponent">
|
|
33
|
-
<player-account-timeout></player-account-timeout>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
</body>
|
|
37
|
-
</html>
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './dist/player-account-timeout.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-timeout.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,228 +0,0 @@
|
|
|
1
|
-
<svelte:options tag={null} />
|
|
2
|
-
<script lang="ts">
|
|
3
|
-
|
|
4
|
-
import { getDevice } from 'rvhelper';
|
|
5
|
-
import { _, addNewMessages, setLocale } from './i18n';
|
|
6
|
-
import { TRANSLATIONS } from './translations';
|
|
7
|
-
|
|
8
|
-
export let operator:string = 'Everymatrix';
|
|
9
|
-
export let lang:string = 'en';
|
|
10
|
-
export let clientstyling:string = '';
|
|
11
|
-
export let clientstylingurl:string = '';
|
|
12
|
-
export let translationurl:string = '';
|
|
13
|
-
export let supportemail:string = '';
|
|
14
|
-
|
|
15
|
-
let customStylingContainer:HTMLElement;
|
|
16
|
-
let userAgent:String = window.navigator.userAgent;
|
|
17
|
-
let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
|
|
18
|
-
|
|
19
|
-
const setTranslationUrl = ():void => {
|
|
20
|
-
let url:string = translationurl;
|
|
21
|
-
|
|
22
|
-
fetch(url).then((res:any) => res.json())
|
|
23
|
-
.then((res) => {
|
|
24
|
-
Object.keys(res).forEach((item:any):void => {
|
|
25
|
-
addNewMessages(item, res[item]);
|
|
26
|
-
});
|
|
27
|
-
}).catch((err:any) => {
|
|
28
|
-
console.log(err);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
Object.keys(TRANSLATIONS).forEach((item:any) => {
|
|
33
|
-
addNewMessages(item, TRANSLATIONS[item]);
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
let timeoutOptions:Array<Object> = [
|
|
37
|
-
{ value: 'CoolOffFor24Hours', text: $_('cooloff24Text') },
|
|
38
|
-
{ value: 'CoolOffFor7Days', text: $_('cooloff7Text') },
|
|
39
|
-
{ value: 'CoolOffFor30Days', text: $_('cooloff30Text') },
|
|
40
|
-
{ value: 'CoolOffFor3Months', text: $_('cooloff3Text') }
|
|
41
|
-
];
|
|
42
|
-
let timeoutSelected:string = timeoutOptions[0].value;
|
|
43
|
-
|
|
44
|
-
const saveTimeout = (e):void => {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
window.postMessage({ type: 'SetPlayerAccountTimeout', timeoutSelected }, window.location.href);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const toggleScreen = () => {
|
|
50
|
-
window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const initialLoad = () => {
|
|
54
|
-
setLocale(lang);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const setClientStyling = ():void => {
|
|
58
|
-
let sheet:HTMLElement = document.createElement('style');
|
|
59
|
-
sheet.innerHTML = clientstyling;
|
|
60
|
-
customStylingContainer.appendChild(sheet);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const setClientStylingURL = ():void => {
|
|
64
|
-
let url:URL = new URL(clientstylingurl);
|
|
65
|
-
let cssFile:HTMLElement = document.createElement('style');
|
|
66
|
-
|
|
67
|
-
fetch(url.href)
|
|
68
|
-
.then((res:any) => res.text())
|
|
69
|
-
.then((data:any) => {
|
|
70
|
-
cssFile.innerHTML = data
|
|
71
|
-
|
|
72
|
-
setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
$: lang && initialLoad();
|
|
77
|
-
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
78
|
-
$: clientstyling && customStylingContainer && setClientStyling();
|
|
79
|
-
$: translationurl && setTranslationUrl();
|
|
80
|
-
</script>
|
|
81
|
-
|
|
82
|
-
<div bind:this={customStylingContainer}>
|
|
83
|
-
<form class="TimeoutWrapper {isMobile ? 'TimeoutWrapperMobile' : ''}">
|
|
84
|
-
{#if isMobile}
|
|
85
|
-
<div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
86
|
-
<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)">
|
|
87
|
-
<g transform="translate(20 158)">
|
|
88
|
-
<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)"/>
|
|
89
|
-
</g></g>
|
|
90
|
-
</svg>
|
|
91
|
-
<h2 class="TimeoutTitleMobile" part="TimeoutTitleMobile">{$_('titleTimeout')}</h2>
|
|
92
|
-
</div>
|
|
93
|
-
{/if}
|
|
94
|
-
<h2 class="TimeoutTitle {isMobile ? 'TimeoutTitleNone' : ''}">{$_('titleTimeout')}</h2>
|
|
95
|
-
<div class="TimeoutDescription {isMobile ? 'TimeoutDescriptionMobile' : ''}">
|
|
96
|
-
<p>{$_('timeoutTextFirst', { values: { operatorname: operator}})}</p>
|
|
97
|
-
<p>{$_('timeoutTextSecondary', { values: { supportemail}})}</p>
|
|
98
|
-
</div>
|
|
99
|
-
<div class="TimeoutSelectWrapper">
|
|
100
|
-
<select bind:value={timeoutSelected} class="TimeoutSelect {isMobile ? 'TimeoutSelectMobile' : ''}">
|
|
101
|
-
{#each timeoutOptions as {value, text}}
|
|
102
|
-
<option value={value}>{text}</option>
|
|
103
|
-
{/each}
|
|
104
|
-
</select>
|
|
105
|
-
</div>
|
|
106
|
-
<div class="TimeoutActionButtons {isMobile ? 'TimeoutActionButtonsMobile' : ''}">
|
|
107
|
-
<button class="TimeoutSave" on:click={(e) => saveTimeout(e)}>{$_('save')}</button>
|
|
108
|
-
</div>
|
|
109
|
-
</form>
|
|
110
|
-
</div>
|
|
111
|
-
|
|
112
|
-
<style lang="scss">
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
.TimeoutWrapper {
|
|
117
|
-
color: var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));
|
|
118
|
-
padding: 50px;
|
|
119
|
-
max-width: 760px;
|
|
120
|
-
|
|
121
|
-
&.TimeoutWrapperMobile {
|
|
122
|
-
padding: 20px 15px;
|
|
123
|
-
max-width: unset;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.MenuReturnButton{
|
|
128
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
129
|
-
display: inline-flex;
|
|
130
|
-
align-items: center;
|
|
131
|
-
column-gap: 20px;
|
|
132
|
-
& svg {
|
|
133
|
-
fill: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.TimeoutTitle {
|
|
138
|
-
font-size: 26px;
|
|
139
|
-
color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
140
|
-
font-weight: 400;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.TimeoutTitleMobile {
|
|
144
|
-
font-size: 16px;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.TimeoutTitleNone {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.TimeoutDescription {
|
|
152
|
-
color: var(--emfe-w-color-gray-300, #58586B);
|
|
153
|
-
line-height: 24px;
|
|
154
|
-
&.TimeoutDescriptionMobile {
|
|
155
|
-
font-size: 12px;
|
|
156
|
-
line-height: 18px;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.TimeoutSelectWrapper {
|
|
161
|
-
color: var(--emfe-w-color-gray-300, #58586B);
|
|
162
|
-
display: flex;
|
|
163
|
-
flex-direction: column;
|
|
164
|
-
position: relative;
|
|
165
|
-
|
|
166
|
-
.TimeoutSelect {
|
|
167
|
-
width: 50%;
|
|
168
|
-
height: 44px;
|
|
169
|
-
border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
|
|
170
|
-
background: var(--emfe-w-color-white, #FFFFFF);
|
|
171
|
-
border-radius: 5px;
|
|
172
|
-
box-sizing: border-box;
|
|
173
|
-
padding: 5px 10px;
|
|
174
|
-
font-size: 16px;
|
|
175
|
-
line-height: 18px;
|
|
176
|
-
margin-bottom: 16px;
|
|
177
|
-
-webkit-appearance: none;
|
|
178
|
-
-moz-appearance: none;
|
|
179
|
-
appearance: none;
|
|
180
|
-
background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emfe-w-color-white, #FFFFFF);
|
|
181
|
-
background-position: calc(100% - 0.75rem) center;
|
|
182
|
-
&:focus, :focus-within, :focus-visible, :visited {
|
|
183
|
-
border: 1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
184
|
-
box-shadow: 0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
185
|
-
}
|
|
186
|
-
&.TimeoutSelectMobile {
|
|
187
|
-
width: 100%;
|
|
188
|
-
height: 36px;
|
|
189
|
-
font-size: 12px;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.TimeoutActionButtons {
|
|
195
|
-
display: grid;
|
|
196
|
-
grid-column-gap: 10px;
|
|
197
|
-
grid-template-rows: auto;
|
|
198
|
-
grid-template-columns:1fr;
|
|
199
|
-
margin-top: 20px;
|
|
200
|
-
width: 50%;
|
|
201
|
-
|
|
202
|
-
.TimeoutSave {
|
|
203
|
-
background: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
204
|
-
border: 1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
205
|
-
color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));
|
|
206
|
-
cursor: pointer;
|
|
207
|
-
border-radius: 5px;
|
|
208
|
-
width: 100%;
|
|
209
|
-
height: 50px;
|
|
210
|
-
display: flex;
|
|
211
|
-
align-items: center;
|
|
212
|
-
justify-content: center;
|
|
213
|
-
font-size: 16px;
|
|
214
|
-
text-transform: uppercase;
|
|
215
|
-
transition-duration: 0.3s;
|
|
216
|
-
box-sizing: border-box;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
&.TimeoutActionButtonsMobile {
|
|
220
|
-
width: 100%;
|
|
221
|
-
grid-template-columns: 1fr;
|
|
222
|
-
.TimeoutSave {
|
|
223
|
-
height: 40px;
|
|
224
|
-
font-size: 12px;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
</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,102 +0,0 @@
|
|
|
1
|
-
export const TRANSLATIONS = {
|
|
2
|
-
"en": {
|
|
3
|
-
"titleTimeout": "Timeout",
|
|
4
|
-
"timeoutTextFirst": "{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",
|
|
5
|
-
"timeoutTextSecondary": "Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under \"Responsible Gaming\" and use the \"Self-exclusion service\" or contact us as soon as possible.",
|
|
6
|
-
"save": "Save",
|
|
7
|
-
"cooloff24Text": "24 hours",
|
|
8
|
-
"cooloff7Text": "7 days",
|
|
9
|
-
"cooloff30Text": "30 days",
|
|
10
|
-
"cooloff3Text": "3 months"
|
|
11
|
-
},
|
|
12
|
-
"zh-hk": {
|
|
13
|
-
"titleTimeout": "Timeout",
|
|
14
|
-
"timeoutTextFirst": "{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",
|
|
15
|
-
"timeoutTextSecondary": "請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",
|
|
16
|
-
"save": "節省",
|
|
17
|
-
"cooloff24Text": "24小時",
|
|
18
|
-
"cooloff7Text": "7天",
|
|
19
|
-
"cooloff30Text": "30天",
|
|
20
|
-
"cooloff3Text": "3個月"
|
|
21
|
-
},
|
|
22
|
-
"fr": {
|
|
23
|
-
"titleTimeout": "Délai d'attente",
|
|
24
|
-
"timeoutTextFirst": "{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",
|
|
25
|
-
"timeoutTextSecondary": "Veuillez noter que l'\"installation du temps mort\" ne remplace en aucun cas \"l'auto exclusion\". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien \"jeux responsable\" et utiliser le \"service d'auto exclusion\" ou nous contacter dès que possible.",
|
|
26
|
-
"save": "Savez",
|
|
27
|
-
"cooloff24Text": "24 heures",
|
|
28
|
-
"cooloff7Text": "7 jours",
|
|
29
|
-
"cooloff30Text": "30 jours",
|
|
30
|
-
"cooloff3Text": "3 mois"
|
|
31
|
-
},
|
|
32
|
-
"ro": {
|
|
33
|
-
"titleTimeout": "Timeout",
|
|
34
|
-
"timeoutTextFirst": "{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",
|
|
35
|
-
"timeoutTextSecondary": "Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",
|
|
36
|
-
"save": "Salvează",
|
|
37
|
-
"cooloff24Text": "24 ore",
|
|
38
|
-
"cooloff7Text": "7 zile",
|
|
39
|
-
"cooloff30Text": "30 zile",
|
|
40
|
-
"cooloff3Text": "3 luni"
|
|
41
|
-
},
|
|
42
|
-
"es": {
|
|
43
|
-
"titleTimeout": "Descanso",
|
|
44
|
-
"timeoutTextFirst": "{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",
|
|
45
|
-
"timeoutTextSecondary": "Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de \"Juego Responsable\" y use el \"Servicio de autoexclusión\" o ponte en contacto con nosotros a la brevedad posible.",
|
|
46
|
-
"save": "Guardar",
|
|
47
|
-
"cooloff24Text": "24 horas",
|
|
48
|
-
"cooloff7Text": "7 días",
|
|
49
|
-
"cooloff30Text": "30 días",
|
|
50
|
-
"cooloff3Text": "3 meses"
|
|
51
|
-
},
|
|
52
|
-
"pt": {
|
|
53
|
-
"titleTimeout": "Tempo esgotado",
|
|
54
|
-
"timeoutTextFirst": "{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",
|
|
55
|
-
"timeoutTextSecondary": "Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em \"Jogo Responsável\" e use o \"Serviço de autoexclusão\" ou entre em contato conosco o mais rápido possível.",
|
|
56
|
-
"save": "Guardar",
|
|
57
|
-
"cooloff24Text": "24 horas",
|
|
58
|
-
"cooloff7Text": "7 dias",
|
|
59
|
-
"cooloff30Text": "30 dias30 dias",
|
|
60
|
-
"cooloff3Text": "3 meses"
|
|
61
|
-
},
|
|
62
|
-
"hr": {
|
|
63
|
-
"titleTimeout": "Samoisključenje",
|
|
64
|
-
"timeoutTextFirst": "Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite \"Potvrdi\".",
|
|
65
|
-
"timeoutTextSecondary": "Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",
|
|
66
|
-
"save": "Spremi",
|
|
67
|
-
"cooloff24Text": "24 sata",
|
|
68
|
-
"cooloff7Text": "7 dana",
|
|
69
|
-
"cooloff30Text": "30 dana",
|
|
70
|
-
"cooloff3Text": "3 mjeseca"
|
|
71
|
-
},
|
|
72
|
-
"pt-br": {
|
|
73
|
-
"titleTimeout": "Tempo fora",
|
|
74
|
-
"timeoutTextFirst": "{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",
|
|
75
|
-
"timeoutTextSecondary": "Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",
|
|
76
|
-
"save": "Manter",
|
|
77
|
-
"cooloff24Text": "24 horas",
|
|
78
|
-
"cooloff7Text": "7 dias",
|
|
79
|
-
"cooloff30Text": "30 dias",
|
|
80
|
-
"cooloff3Text": "3 meses"
|
|
81
|
-
},
|
|
82
|
-
"es-mx": {
|
|
83
|
-
"titleTimeout": "Tiempo Fuera",
|
|
84
|
-
"timeoutTextFirst": "{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",
|
|
85
|
-
"timeoutTextSecondary": "Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego,\" por favor acceda a la liga bajo \"\"Juego Responsable\"\" y utilice el \"\"servicio de Auto-exclusión\"\" o contáctenos en cuanto antes. \"",
|
|
86
|
-
"save": "Guardar",
|
|
87
|
-
"cooloff24Text": "24 horas",
|
|
88
|
-
"cooloff7Text": "7 días",
|
|
89
|
-
"cooloff30Text": "30 días",
|
|
90
|
-
"cooloff3Text": "3 meses"
|
|
91
|
-
},
|
|
92
|
-
"tr": {
|
|
93
|
-
"titleTimeout": "Zaman aşımı",
|
|
94
|
-
"timeoutTextFirst": "{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",
|
|
95
|
-
"timeoutTextSecondary": "Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",
|
|
96
|
-
"save": "Kaydetmek",
|
|
97
|
-
"cooloff24Text": "24 saat",
|
|
98
|
-
"cooloff7Text": "7 gün",
|
|
99
|
-
"cooloff30Text": "30 gün",
|
|
100
|
-
"cooloff3Text": "3 ay"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import PlayerAccountTimeout from '../src/PlayerAccountTimeout';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'PlayerAccountTimeout',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const PlayerAccountTimeout = ({ aProperty }) => html`<player-account-timeout></player-account-timeout>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = PlayerAccountTimeout.bind({});
|