@everymatrix/casino-header-controller-nd 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.
@@ -1,1550 +0,0 @@
1
- <svelte:options tag={null} />
2
-
3
- <script lang="ts">
4
- import { onMount } from "svelte";
5
- import { isMobile, getDevice } from 'rvhelper';
6
- import { _, addNewMessages, setLocale, setupI18n } from './i18n';
7
- import { TRANSLATIONS } from './translations';
8
-
9
- import '@everymatrix/casino-hamburger-menu-nd';
10
- import '@everymatrix/player-account-balance-modal-nd';
11
- import '@everymatrix/player-deposit';
12
-
13
- import * as countryFlags from 'country-flag-icons/string/3x2';
14
-
15
- // @ts-ignore
16
- import everymatrixLogo from './images/everymatrix-logo-white.png';
17
-
18
- export let session: string = '';
19
- export let userid: string = '';
20
- export let endpoint: string = '';
21
- export let cmsendpoint: string = '';
22
- export let cmsenv: string = '';
23
- export let lang: string = 'en';
24
- export let languageslist: string = 'en, ro';
25
- export let activecategory: string = '';
26
- export let translationurl: string = '';
27
- export let customlocaleidentifier: string = '';
28
- export let gmversion: string = '';
29
- export let countryflagheader: string = 'false';
30
- export let displaybalanceoption: string = 'All';
31
- export let countryflaghamburger: string = 'false';
32
- export let hasdefaultamount: string = '';
33
- export let playercurrency: string ='';
34
-
35
- //short cashier
36
- export let shortcashierenabled: string = '';
37
- export let producttype: string = '';
38
- export let successurl: string = '';
39
- export let failurl: string = '';
40
- export let cancelurl: string = '';
41
- export let sportsurl: string = '';
42
- export let casinourl: string = '';
43
- export let contacturl: string = '';
44
- export let homeurl: string = '';
45
- export let depositurl: string = '';
46
-
47
- export let actionevent: string = '';
48
-
49
- export let userroles: string = '';
50
- export let showsubgroups: string = 'false';
51
- export let clientstyling: string = '';
52
- export let clientstylingurl: string = '';
53
-
54
- export let currencyseparator: string = '';
55
- export let currencydecimal: string = '';
56
- export let currencyprecision: string = '';
57
-
58
- export let gamification: string = 'false';
59
- export let totalcalculationmode = '';
60
-
61
-
62
- let activeIndex: number;
63
- let customStylingContainer: HTMLElement;
64
- let balanceContainer: HTMLElement;
65
- let depositContainer: HTMLElement;
66
- let backgroundContainer: HTMLElement;
67
-
68
- setupI18n({ withLocale: 'en', translations: {}});
69
-
70
- const setTranslationUrl = (): void => {
71
- fetch(translationurl)
72
- .then((res: any): void => res.json())
73
- .then((res: any): void => {
74
- Object.keys(res).forEach((item:any): void => {
75
- addNewMessages(item, res[item]);
76
- });
77
- }).catch((err: any): void => {
78
- console.log(err);
79
- });
80
- }
81
-
82
- Object.keys(TRANSLATIONS).forEach((item: string): void => {
83
- addNewMessages(item, TRANSLATIONS[item]);
84
- });
85
-
86
- let mainMenuArray: Array<string> = [];
87
- let secondaryMenuArray: Array<string> = [];
88
- let selectedLanguage: string = '';
89
- let hamburgerURL: URL;
90
- let headerURL: URL;
91
- let logoURL: URL;
92
- let isLoading: boolean = true;
93
- let logoFromCms: boolean = false;
94
- let primaryMenuLoading: boolean = true;
95
-
96
- let isOptionsListVisible: boolean = false;
97
- let mobileView: boolean = false;
98
- let userAgent: string = window.navigator.userAgent;
99
- let isLoggedIn: boolean = false;
100
- let playerID: string = '';
101
- let sessionID: string = '';
102
- let languagesArray: Array<string> = [];
103
- let hamburgerMenuActive: boolean = false;
104
- let logoPath: string = '';
105
- let shortCashierActivated: boolean = false;
106
- let isBalanceOpened: boolean = false;
107
- let languageValue: string;
108
-
109
- const gtagCall = (eventName: string): void => {
110
- // @ts-ignore
111
- if (typeof gtag == 'function'){
112
- // @ts-ignore
113
- gtag('event', eventName, {
114
- 'context': 'HeaderController'
115
- });
116
- }
117
- }
118
-
119
- const menuAction = (type: string, data?: any): void => {
120
- switch (type) {
121
- case 'login':
122
- window.postMessage({ type: 'OpenLoginRegisterModal', transition: 'Login' }, window.location.href);
123
-
124
- gtagCall('OpenLoginModal');
125
- break;
126
-
127
- case 'register':
128
- window.postMessage({ type: 'OpenLoginRegisterModal', transition: 'Register'}, window.location.href);
129
-
130
- gtagCall('OpenRegisterModal');
131
- break;
132
-
133
- case 'lobby':
134
- window.postMessage({ type: 'GoToHomepage' }, window.location.href);
135
-
136
- gtagCall('GoToHomepage');
137
- break;
138
-
139
- case 'myaccount':
140
- window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: isMobile(userAgent) }, window.location.href);
141
-
142
- gtagCall('GoToMyAccount');
143
- break;
144
-
145
- case 'deposit':
146
- if (isShortCashierEnabled) {
147
- shortCashierActivated = true;
148
- window.postMessage({ type: 'DisableScroll' }, window.location.href);
149
- } else {
150
- window.postMessage({ type: 'GoToDeposit' }, window.location.href);
151
- }
152
-
153
- gtagCall('GoToDeposit');
154
- break;
155
-
156
- case 'language':
157
- languageValue = determineFlag();
158
- window.postMessage({ type: 'LanguageChanged', selectedLanguage }, window.location.href);
159
- break;
160
-
161
- case 'page':
162
- window.postMessage({ type: 'NavigateTo', item: data, path: data.path });
163
- break;
164
-
165
- case 'closeLanguageSelector':
166
- isOptionsListVisible = false;
167
- break;
168
- }
169
- }
170
-
171
- const toggleMenu = (): void => {
172
- hamburgerMenuActive = !hamburgerMenuActive;
173
- window.postMessage({ type: 'OpenHamburgerMenuModal' }, window.location.href);
174
- }
175
-
176
- const messageHandler = (e: any): void => {
177
- if (e.data) {
178
- switch (e.data.type) {
179
- case 'UserSessionID':
180
- playerID = e.data.userid;
181
- sessionID = e.data.session;
182
- isLoggedIn = true;
183
- break;
184
-
185
- case 'CloseHamburgerMenu':
186
- window.postMessage({ type: 'EnableScroll' }, window.location.href);
187
- if (e.data.showhamburger) {
188
- hamburgerMenuActive = false;
189
- }
190
- break;
191
-
192
- case 'LogoutSuccessfull':
193
- isLoggedIn = false;
194
- break;
195
-
196
- case 'LanguageChanged':
197
- if (e.data.selectedLanguage.toLowerCase() != lang) {
198
- primaryMenuLoading = true;
199
- }
200
- createCMSUrls();
201
- getHeaderMenusData(headerURL);
202
- break;
203
-
204
- case 'OpenShortCashier':
205
- menuAction('deposit');
206
- break;
207
-
208
- case 'CloseShortCashier':
209
- closeShortCashier();
210
- break;
211
-
212
- case 'RequestHeaderHeight':
213
- window.postMessage({ type: 'HeaderHeight', headerHeight: customStylingContainer.clientHeight }, window.location.href);
214
- break;
215
-
216
- case 'BalanceModalStatus':
217
- isBalanceOpened = e.data.status == 'open';
218
- adaptDepositBackground(isBalanceOpened);
219
- break;
220
-
221
- case 'UpdateBalanceBackground':
222
- adaptDepositBackground(isBalanceOpened);
223
- break;
224
- }
225
- }
226
- }
227
-
228
- const setInitialStateForDepositBackground = (): void => {
229
- let width = depositContainer.getBoundingClientRect().width;
230
- backgroundContainer.style.width = `${width}px`;
231
- backgroundContainer.style.left = `${balanceContainer.getBoundingClientRect().width}px`;
232
- }
233
-
234
- const adaptDepositBackground = (isBalanceOpened): void => {
235
- if (isBalanceOpened) {
236
- let width = balanceContainer.getBoundingClientRect().width;
237
- backgroundContainer.style.width = `${width}px`;
238
- backgroundContainer.style.left = `0px`;
239
- } else {
240
- setInitialStateForDepositBackground();
241
- }
242
- }
243
-
244
- const setSession = (): void => {
245
- isLoggedIn = true;
246
- sessionID = session;
247
- }
248
-
249
- const closeShortCashier = (event?: any): void => {
250
- shortCashierActivated = false;
251
- window.postMessage({ type: 'EnableScroll' }, window.location.href);
252
- event?.stopPropagation();
253
- }
254
-
255
- const createCMSUrls = (): void => {
256
- headerURL = new URL(`${cmsendpoint}/${selectedLanguage.toLowerCase()}/menu`);
257
- hamburgerURL = new URL(`${cmsendpoint}/${selectedLanguage.toLowerCase()}/hamburger-menu`);
258
- logoURL = new URL(`${cmsendpoint}/${selectedLanguage.toLowerCase()}/op-options/style`);
259
-
260
- let device = getDevice(userAgent);
261
-
262
- headerURL.searchParams.append('env', cmsenv);
263
- headerURL.searchParams.append('language', selectedLanguage.toLowerCase());
264
- headerURL.searchParams.append('userRoles', userroles);
265
-
266
- if (device) {
267
- if (device === 'PC'){
268
- hamburgerURL.searchParams.append('device', 'dk');
269
- headerURL.searchParams.append('device', 'dk');
270
- } else if (device === 'iPad' || device === 'iPhone') {
271
- hamburgerURL.searchParams.append('device', 'mtWeb'); // replace with ios when we will have a native ios up for this
272
- headerURL.searchParams.append('device', 'mtWeb'); // replace with ios when we will have a native ios up for this
273
- } else {
274
- hamburgerURL.searchParams.append('device', 'mtWeb');
275
- headerURL.searchParams.append('device', 'mtWeb');
276
- }
277
- }
278
- hamburgerURL.searchParams.append('env', cmsenv);
279
- hamburgerURL.searchParams.append('language', selectedLanguage.toLowerCase());
280
- hamburgerURL.searchParams.append('userRoles', userroles);
281
-
282
- getHeaderMenusData(headerURL);
283
- }
284
-
285
- const setActiveLanguage = (): void => {
286
- setLocale(lang);
287
- }
288
-
289
- const initialLoad = (): void => {
290
- languageValue = determineFlag();
291
- languagesArray = languageslist.replace(/ /g,'').split(',');
292
- languagesArray = languagesArray.map((language:string) => language.toUpperCase());
293
-
294
- selectedLanguage = lang.toUpperCase();
295
-
296
- createCMSUrls();
297
- getLogo(logoURL);
298
- }
299
-
300
- const initializeMenu = (): void => {
301
- const primaryActiveIndex = setActiveIndex(activecategory, mainMenuArray);
302
- const secondaryActiveIndex = setActiveIndex(activecategory, secondaryMenuArray);
303
- activeIndex = primaryActiveIndex > secondaryActiveIndex ? primaryActiveIndex : secondaryActiveIndex;
304
- }
305
-
306
- const setActiveIndex = (activecategory: any, menuList: any): any => {
307
- let result = menuList.find(item => {
308
- if (activecategory.indexOf('/sport') > -1) {
309
- return item.path.indexOf(activecategory) > -1;
310
- } else {
311
- if (item.path.includes(activecategory)) {
312
- return true;
313
- }
314
- }
315
- });
316
-
317
- if (!result) {
318
- result = menuList.find((item: any): boolean => {
319
- return item.path.split('/').indexOf(activecategory.split('/')[1]) > -1;
320
- });
321
- }
322
-
323
- if (result) {
324
- return result.id;
325
- } else {
326
- return -1;
327
- }
328
- }
329
-
330
- const getHeaderMenusData = (url: any): Promise<any> => {
331
- isLoading = true;
332
-
333
- return new Promise((resolve, reject): void => {
334
- fetch(url)
335
- .then((res: any): void => res.json())
336
- .then((data: any): void => {
337
- mainMenuArray = data.desktop.primary;
338
- secondaryMenuArray = data.desktop.secondary;
339
- isLoading = false;
340
- primaryMenuLoading = false;
341
-
342
- resolve(data);
343
- }, (err: any): void => {
344
- isLoading = false;
345
- console.error(err);
346
- reject(err);
347
- });
348
- });
349
- }
350
-
351
- const getLogo = (url: URL): Promise<any> => {
352
- logoFromCms = false;
353
-
354
- return new Promise((resolve, reject): void => {
355
- fetch(url)
356
- .then((res: any): void => res.json())
357
- .then((data: any): void => {
358
- if (data.logoUrl.length > 0 && (data.logoUrl != "null" || data.logoUrl != "false")) {
359
- logoPath = data.logoUrl;
360
- logoFromCms = true;
361
- } else {
362
- logoFromCms = false;
363
- }
364
- resolve(data);
365
- }, (err: any): void => {
366
- logoFromCms = false;
367
- console.error(err);
368
- reject(err);
369
- });
370
- });
371
- }
372
-
373
- const navigationTrigger = (itemData: any): void => {
374
- window.postMessage({ type: 'NavigateTo', itemId: itemData.id, item: itemData, path: itemData.path, externalLink: itemData.externalLink || false, target: itemData.attrs?.target || null }, window.location.href);
375
- }
376
-
377
- const selectLanguage = (operatorLanguage: string): void => {
378
- selectedLanguage = operatorLanguage;
379
- isOptionsListVisible = false;
380
- menuAction('language');
381
- }
382
-
383
- const toggleLanguageDropdown = (): void => {
384
- isOptionsListVisible = !isOptionsListVisible;
385
- }
386
-
387
- const determineFlag = (operatorLanguage?: string): string => {
388
- let flag = operatorLanguage ? operatorLanguage.slice(-2) : selectedLanguage.slice(-2);
389
-
390
- if (customlocaleidentifier) {
391
- flag =
392
- customlocaleidentifier.includes(flag.toLowerCase()) ?
393
- customlocaleidentifier.slice(-2) :
394
- flag;
395
- }
396
-
397
- if (flag.toUpperCase() == 'EN' || flag == undefined) {
398
- flag = 'US';
399
- }
400
-
401
- return flag.toUpperCase();
402
- }
403
-
404
- const setClientStyling = (): void => {
405
- let sheet = document.createElement('style');
406
- sheet.innerHTML = clientstyling;
407
- customStylingContainer.appendChild(sheet);
408
- }
409
-
410
- const setClientStylingURL = (): void => {
411
- let url: URL = new URL(clientstylingurl);
412
- let cssFile: HTMLElement = document.createElement('style');
413
-
414
- fetch(url.href)
415
- .then((res: any): void => res.text())
416
- .then((data: any): void => {
417
- cssFile.innerHTML = data
418
-
419
- setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
420
- });
421
- }
422
-
423
- onMount(async () => {
424
- window.addEventListener('message', messageHandler, false);
425
-
426
- mobileView = isMobile(userAgent);
427
-
428
- return () => {
429
- window.removeEventListener('message', messageHandler);
430
- }
431
- });
432
-
433
- $: activecategory && !isLoading && initializeMenu();
434
- $: session && setSession();
435
- $: isShortCashierEnabled = shortcashierenabled.toLocaleLowerCase() == 'true';
436
- $: lang && setActiveLanguage();
437
- $: cmsendpoint && lang && languageslist && userroles && cmsenv && initialLoad();
438
- $: translationurl && setTranslationUrl();
439
- $: clientstyling && customStylingContainer && setClientStyling();
440
- $: clientstylingurl && customStylingContainer && setClientStylingURL();
441
- </script>
442
-
443
- <svelte:head>
444
- <script type="module" src="https://unpkg.com/@everymatrix/gamification-dropdown"></script>
445
- </svelte:head>
446
-
447
- <div class="HeaderContainer" bind:this={customStylingContainer}>
448
- <div class="MainNav">
449
- {#if mobileView}
450
- <div class="HeaderMobileMainNav">
451
- <!-- svelte-ignore a11y-click-events-have-key-events -->
452
- <div on:click={toggleMenu} class="NavIcon {hamburgerMenuActive ? 'Open' : ''}">
453
- <span></span>
454
- <span></span>
455
- <span></span>
456
- </div>
457
- </div>
458
- {/if}
459
- <div class="Logo">
460
- <!-- svelte-ignore a11y-click-events-have-key-events -->
461
- <div class="HeaderBranding" on:click={()=>menuAction('lobby')}>
462
- {#if logoFromCms}
463
- <img src={logoPath} alt="Logo">
464
- {:else}
465
- <img src={everymatrixLogo} alt="Logo">
466
- {/if}
467
- </div>
468
- </div>
469
- <nav class="PrimaryMenu">
470
- {#if !mobileView}
471
- {#if primaryMenuLoading}
472
- {#each new Array(6) as item}
473
- <div class="Skeleton SkeletonText"></div>
474
- {/each}
475
- {:else}
476
- {#each mainMenuArray as menuItem}
477
- <!-- svelte-ignore a11y-click-events-have-key-events -->
478
- <div class="ItemMenu {menuItem.id == activeIndex ? 'Active' : ''}" on:click={() => menuAction('page', menuItem)}>
479
- <p>{menuItem.label}</p>
480
- <div class="MenuHover"></div>
481
- </div>
482
- {/each}
483
- {/if}
484
- {/if}
485
- </nav>
486
- {#if isLoggedIn}
487
- {#if gamification === 'true' && !mobileView}
488
- <div class="GamificationWrapper">
489
- <gamification-dropdown {session} {endpoint} language={lang} client-styling={clientstyling} client-styling-url={clientstylingurl} translation-url={translationurl}></gamification-dropdown>
490
- </div>
491
- {/if}
492
- <div class="BalanceDepositWrapper">
493
- <div class="Balance {isBalanceOpened ? 'Open' : ''}" bind:this={balanceContainer}>
494
- <player-account-balance-modal-nd {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption} {totalcalculationmode} {currencyseparator} {currencydecimal} {currencyprecision} />
495
- </div>
496
- <div class="Deposit {isBalanceOpened ? 'Open' : ''}" bind:this={depositContainer}>
497
- <!-- svelte-ignore a11y-click-events-have-key-events -->
498
- <div class="DepositButton" on:click={() => menuAction('deposit')}>
499
- <p>{$_('deposit')}</p>
500
- </div>
501
- {#if shortCashierActivated}
502
- <!-- svelte-ignore a11y-click-events-have-key-events -->
503
- <div class="ShortCashierWindow" on:click={(event) => closeShortCashier(event)}></div>
504
- <div class="ShortCashierContainerWrapperMobile">
505
- <!-- svelte-ignore a11y-click-events-have-key-events -->
506
- <div class="ShortCashierContainerMobile">
507
- <div class="ClosePopUpButtonShortCashier" on:click={(event) => closeShortCashier(event)}>
508
- <svg width="20" height="20" xmlns="http://www.w3.org/2000/svg">
509
- <line x1="2" y1="2" x2="18" y2="18" stroke-width="2"/>
510
- <line x1="18" y1="2" x2="2" y2="18" stroke-width="2"/>
511
- </svg>
512
- </div>
513
- {#if gmversion === 'gmcore'}
514
- <player-deposit
515
- {endpoint}
516
- {session}
517
- playerid={userid}
518
- {lang}
519
- {hasdefaultamount}
520
- {playercurrency}
521
- {shortcashierenabled}
522
- {clientstyling}
523
- {clientstylingurl}
524
- ></player-deposit>
525
- {:else}
526
- <user-deposit-withdrawal
527
- {endpoint}
528
- type="deposit"
529
- channel="Mobile"
530
- language={lang}
531
- is-short-cashier={shortcashierenabled}
532
- product-type={producttype}
533
- user-id={userid}
534
- {session}
535
- success-url={'https://' + window.location.hostname + '/' + lang + successurl}
536
- cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl}
537
- fail-url={'https://' + window.location.hostname + '/' + lang + failurl}
538
- sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl}
539
- casino-url={'https://' + window.location.hostname + '/' + lang + casinourl}
540
- contact-url={'https://' + window.location.hostname + '/' + lang + contacturl}
541
- home-url={'https://' + window.location.hostname + '/' + lang + homeurl}
542
- deposit-url={'https://' + window.location.hostname + '/' + lang + depositurl}
543
- ></user-deposit-withdrawal>
544
- {/if}
545
- </div>
546
- </div>
547
- {/if}
548
- </div>
549
- <div class="Background {isBalanceOpened ? 'Open' : ''}" bind:this={backgroundContainer}></div>
550
- </div>
551
- <div class="Profile">
552
- <!-- svelte-ignore a11y-click-events-have-key-events -->
553
- <div class="ProfileWrapper" on:click={() => menuAction('myaccount')}>
554
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 16.429">
555
- <g transform="translate(-8 -4)">
556
- <path class="a"
557
- d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z"
558
- transform="translate(0 0)"/>
559
- </g>
560
- </svg>
561
- </div>
562
- </div>
563
- {:else}
564
- <div class="AuthButtons">
565
- <!-- svelte-ignore a11y-click-events-have-key-events -->
566
- <div class="Item ItemLogin" on:click={() => menuAction('login')}>
567
- <p>{$_('login')}</p>
568
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"/></svg>
569
- </div>
570
- <!-- svelte-ignore a11y-click-events-have-key-events -->
571
- <div class="Item ItemRegister" on:click={() => menuAction('register')}>
572
- <p>{$_('register')}</p>
573
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>
574
- </div>
575
- </div>
576
- {/if}
577
- <div class="Slot1">
578
- <slot name="slot1"></slot>
579
- </div>
580
- <div class="Slot2">
581
- <slot name="slot2"></slot>
582
- </div>
583
- <div class="Slot3">
584
- <slot name="slot3"></slot>
585
- </div>
586
- {#if !mobileView}
587
- <div class="LanguageSelector">
588
- {#if (languagesArray.length > 1) }
589
- <div class="LanguageDropdown">
590
- <!-- svelte-ignore a11y-click-events-have-key-events -->
591
- <div class="SelectedOption" on:click={() => toggleLanguageDropdown()}>
592
- {#if countryflagheader == 'true'}
593
- <span class="LanguageName">{@html countryFlags[determineFlag(lang)]}</span>
594
- {:else}
595
- <span class="LanguageName">{languageValue}</span>
596
- {/if}
597
- <span class=" {isOptionsListVisible ? 'TriangleActive' : 'TriangleInactive'}">
598
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="6.835" viewBox="0 0 14 6.835">
599
- <path id="arrow" d="M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z" transform="translate(-274.511 -441.088)" fill="#d1d1d1"/>
600
- </svg>
601
- </span>
602
- </div>
603
- </div>
604
- <div class="OptionList {isOptionsListVisible ? 'Active' : ''}">
605
- {#each languagesArray as operatorLanguage}
606
- <!-- svelte-ignore a11y-click-events-have-key-events -->
607
- <div class="LanguageOption" on:click={() => selectLanguage(operatorLanguage)}>
608
- {#if countryflagheader == 'true' }
609
- <span class="FlagIcon">
610
- {@html countryFlags[determineFlag(operatorLanguage)]}
611
- </span>
612
- {/if}
613
- <span class="LanguageName">{operatorLanguage.slice(-2)}</span>
614
- </div>
615
- {/each}
616
- </div>
617
- {/if}
618
- </div>
619
- {/if}
620
- </div>
621
- <div class="Separator">
622
-
623
- </div>
624
- {#if !mobileView}
625
- <div class="SecondaryNav">
626
- <div class="LeftSpace">
627
- <span class="fi fi-gr"></span> <span class="fi fi-gr fis"></span>
628
- </div>
629
- <div class="SecondaryMenuContent">
630
- {#if primaryMenuLoading}
631
- {#each new Array(2) as item}
632
- <div class="Skeleton SkeletonText"></div>
633
- {/each}
634
- {:else}
635
- {#each secondaryMenuArray as secondaryItem}
636
- <span class="ItemSecondary {secondaryItem.id == activeIndex ? 'Active' : ''}">
637
- <p on:click={() => navigationTrigger(secondaryItem)}>{secondaryItem.label}</p>
638
- </span>
639
- {/each}
640
- {/if}
641
- </div>
642
- </div>
643
- {/if}
644
- {#if isOptionsListVisible}
645
- <!-- svelte-ignore a11y-click-events-have-key-events -->
646
- <div class="OptionListOverlay" on:click={() => menuAction('closeLanguageSelector')} />
647
- {/if}
648
- </div>
649
-
650
- <casino-hamburger-menu-nd {cmsendpoint} {cmsenv} {userroles} {activecategory} {lang} {countryflaghamburger} {customlocaleidentifier} {languageslist} {clientstyling} {clientstylingurl}></casino-hamburger-menu-nd>
651
-
652
- <style lang="scss">
653
- *,
654
- *::before,
655
- *::after {
656
- font-family: inherit
657
- }
658
-
659
- :host {
660
- font-family: inherit;
661
- }
662
-
663
- // ------> new stuff
664
- .NavIcon {
665
- width: 30px;
666
- height: 28px;
667
- position: relative;
668
- margin: 50px auto;
669
- -webkit-transform: rotate(0deg);
670
- -moz-transform: rotate(0deg);
671
- -o-transform: rotate(0deg);
672
- transform: rotate(0deg);
673
- -webkit-transition: .5s ease-in-out;
674
- -moz-transition: .5s ease-in-out;
675
- -o-transition: .5s ease-in-out;
676
- transition: .5s ease-in-out;
677
- cursor: pointer;
678
-
679
- span {
680
- display: block;
681
- position: absolute;
682
- height: 3px;
683
- width: 100%;
684
- background: #ffffff;
685
- border-radius: 9px;
686
- opacity: 1;
687
- left: 0;
688
- -webkit-transform: rotate(0deg);
689
- -moz-transform: rotate(0deg);
690
- -o-transform: rotate(0deg);
691
- transform: rotate(0deg);
692
- -webkit-transition: .25s ease-in-out;
693
- -moz-transition: .25s ease-in-out;
694
- -o-transition: .25s ease-in-out;
695
- transition: .25s ease-in-out;
696
- }
697
-
698
- span:nth-child(1) {
699
- top: 0px;
700
- width: 80%;
701
- }
702
-
703
- span:nth-child(2) {
704
- top: 9px;
705
- }
706
-
707
- span:nth-child(3) {
708
- top: 18px;
709
- }
710
-
711
- &.Open span:nth-child(1) {
712
- top: 9px;
713
- width: 100%;
714
- -webkit-transform: rotate(135deg);
715
- -moz-transform: rotate(135deg);
716
- -o-transform: rotate(135deg);
717
- transform: rotate(135deg);
718
- }
719
-
720
- &.Open span:nth-child(2) {
721
- opacity: 0;
722
- left: -60px;
723
- }
724
-
725
- &.Open span:nth-child(3) {
726
- top: 9px;
727
- -webkit-transform: rotate(-135deg);
728
- -moz-transform: rotate(-135deg);
729
- -o-transform: rotate(-135deg);
730
- transform: rotate(-135deg);
731
- }
732
- }
733
-
734
- .Skeleton {
735
- animation: skeleton-loading .6s linear infinite alternate;
736
- }
737
-
738
- @keyframes skeleton-loading {
739
- 0% {
740
- background: linear-gradient(90deg, rgba(35, 178, 78, .2) 0%, rgba(0, 61, 93, .2) 100%);
741
- }
742
- 12% {
743
- background: linear-gradient(90deg, rgba(35, 178, 78, .225) 0%, rgba(0, 61, 93, .225) 100%);
744
- }
745
- 25% {
746
- background: linear-gradient(90deg, rgba(35, 178, 78, .25) 0%, rgba(0, 61, 93, .25) 100%);
747
- }
748
- 33% {
749
- background: linear-gradient(90deg, rgba(35, 178, 78, .275) 0%, rgba(0, 61, 93, .275) 100%);
750
- }
751
- 50% {
752
- background: linear-gradient(90deg, rgba(35, 178, 78, .3) 0%, rgba(0, 61, 93, .3) 100%);
753
- }
754
- 63% {
755
- background: linear-gradient(90deg, rgba(35, 178, 78, .325) 0%, rgba(0, 61, 93, .325) 100%);
756
- }
757
- 75% {
758
- background: linear-gradient(90deg, rgba(35, 178, 78, .35) 0%, rgba(0, 61, 93, .35) 100%);
759
- }
760
- 88% {
761
- background: linear-gradient(90deg, rgba(35, 178, 78, .375) 0%, rgba(0, 61, 93, .375) 100%);
762
- }
763
- 100% {
764
- background: linear-gradient(90deg, rgba(35, 178, 78, .4) 0%, rgba(0, 61, 93, .4) 100%);
765
- }
766
- }
767
-
768
- .SkeletonText {
769
- opacity: 0.5;
770
- margin: 0 15px;
771
- width: 125px;
772
- height: 15px;
773
- border-radius: 15px;
774
- }
775
-
776
- .HeaderContainer {
777
- position: fixed;
778
- width: 100%;
779
- z-index: 100;
780
- background-color: var(--emw-header-color-background, var(--emw-color-background, #000000));
781
- display: flex;
782
- flex-direction: column;
783
- align-items: center;
784
- user-select: none;
785
-
786
- .MainNav {
787
- width: 99%;
788
- height: 84px;
789
- display: flex;
790
- gap: 5px;
791
- flex-direction: row;
792
- align-items: center;
793
- margin: 0 15px;
794
-
795
- .HeaderMobileMainNav {
796
- display: flex;
797
- margin-left: 5px;
798
- }
799
-
800
- .Logo {
801
- display: flex;
802
- justify-content: center;
803
- align-items: center;
804
- width: 10%;
805
- min-width: 75px;
806
- transition: all .2s;
807
-
808
- .HeaderBranding {
809
- width: 140px;
810
- cursor: pointer;
811
- img {
812
- width: 100%;
813
- }
814
- @media only screen and (max-width: 360px) {
815
- margin-right: 0;
816
- }
817
- }
818
-
819
- &:active {
820
- opacity: .9;
821
- transform: scale(1.02);
822
- }
823
- }
824
-
825
- .GamificationWrapper{
826
- margin-right: 16px;
827
- }
828
-
829
- .BalanceDepositWrapper {
830
- height: 34px;
831
- background-color: white;
832
- display: flex;
833
- position: relative;
834
- justify-content: center;
835
- align-items: center;
836
- border-radius: 30px;
837
-
838
- .Background {
839
- height: 34px;
840
- position: absolute;
841
- background: linear-gradient(0deg, rgba(35,178,78,1) 0%, rgba(26,205,80,1) 100%) padding-box,
842
- linear-gradient(180deg, rgba(35,178,78,.2) 0%, rgba(26,205,80,.2) 100%) border-box;
843
- border-radius: 30px;
844
- z-index: 3;
845
- transition: all 0.3s ease;
846
- }
847
-
848
- .Deposit {
849
- display: flex;
850
- align-items: center;
851
- cursor: pointer;
852
- justify-content: center;
853
- z-index: 4;
854
-
855
- .DepositButton {
856
- font-size: 14px;
857
- text-align: center;
858
- cursor: pointer;
859
- padding: 0 10px;
860
- transition: all .5s linear;
861
- display: flex;
862
- justify-content: center;
863
- align-items: center;
864
- p {
865
- text-transform: uppercase;
866
- color: white;
867
- transition: all .3s ease;
868
-
869
- &:hover {
870
- text-shadow: 0px 1px 5px rgba(0, 0, 0, .2);
871
- }
872
-
873
- &:active {
874
- color: black;
875
- }
876
- }
877
- }
878
-
879
- &.Open {
880
- .DepositButton {
881
- p {
882
- transition: all .5s linear;
883
- color: black;
884
- opacity: .5;
885
- }
886
- }
887
-
888
- }
889
- }
890
-
891
- .Balance {
892
- display: flex;
893
- z-index: 4;
894
- height: 100%;
895
- padding-left: 10px;
896
- align-items: center;
897
-
898
- &.Open {
899
- color: white;
900
- }
901
- }
902
- }
903
-
904
- .Profile {
905
- display: flex;
906
- justify-content: center;
907
- flex-direction: column;
908
- cursor: pointer;
909
-
910
- .ProfileWrapper {
911
- width: 30px;
912
- height: 30px;
913
- background-color: orange;
914
- border-radius: 50px;
915
- display: flex;
916
- justify-content: center;
917
- align-items: center;
918
- transition: all .3s ease;
919
-
920
- svg {
921
- width: 15px;
922
- height: 16px;
923
- fill: var(--emw-color-white, #FFFFFF)
924
-
925
- }
926
- &:hover {
927
- box-shadow: 0px 0px 4px white;
928
- }
929
-
930
- &:active {
931
- svg {
932
- fill: var(--emw-color-black, #000000)
933
- }
934
- }
935
- }
936
- }
937
-
938
- .PrimaryMenu {
939
- display: flex;
940
- flex-direction: row;
941
- align-items: center;
942
- width: 100%;
943
-
944
- .ItemMenu {
945
- color: white;
946
- margin: 0 20px;
947
- text-transform: uppercase;
948
- height: 84px;
949
- transition: all .5s;
950
- cursor: pointer;
951
-
952
- &:after {
953
- content: "";
954
- display: block;
955
- height: 5px;
956
- width: 100%;
957
- cursor: pointer;
958
- background-color: pink;
959
- position: relative;
960
- }
961
-
962
- .MenuHover {
963
- width: 0px;
964
- transition: transform 0.3s ease-in-out;
965
- transform-origin: center;
966
- transform: scaleX(0);
967
- }
968
-
969
- p {
970
- height: 33px;
971
- margin-top: 35px;
972
- }
973
-
974
- &:hover, &.Active {
975
- color: #22B04F;
976
-
977
- .MenuHover {
978
- transform: scaleX(1);
979
- opacity: 1;
980
- background-color: rgba(255, 255, 255, 0.5);
981
- width: 100%;
982
- position: relative;
983
- height: 5px;
984
- z-index: 4;
985
- }
986
- }
987
-
988
- &:active {
989
- color: rgba(255,255,255,1);
990
- }
991
- }
992
- }
993
-
994
- .AuthButtons {
995
- display: flex;
996
- flex-direction: row;
997
- justify-content: center;
998
- align-items: center;
999
-
1000
- .Item {
1001
- gap: 5px;
1002
- padding: 0 25px;
1003
- display: flex;
1004
- align-items: center;
1005
- color: white;
1006
-
1007
- &.ItemLogin {
1008
- font-size: 14px;
1009
- height: 36px;
1010
- text-align: center;
1011
- margin-right: 10px;
1012
- position: relative;
1013
- cursor: pointer;
1014
- background: linear-gradient(0deg, rgba(231,145,28,1) 0%, rgba(224,169,76,1) 100%) padding-box,
1015
- linear-gradient(180deg, rgba(231,145,28,.2) 0%, rgba(224,169,76,.2) 100%) border-box;
1016
- border-radius: 30px;
1017
- border: 2px solid transparent;
1018
- transition: all .3s linear;
1019
-
1020
- &:hover {
1021
- color: white;
1022
- background: linear-gradient(180deg, rgba(231,145,28,1) 0%, rgba(224,169,76,1) 100%) padding-box,
1023
- linear-gradient(0deg, rgba(231,145,28,.2) 0%, rgba(224,169,76,.2) 100%) border-box;
1024
- border: 2px solid white;
1025
- }
1026
-
1027
- &:active {
1028
- background: linear-gradient(0deg, rgba(231,145,28,1) 0%, rgba(224,169,76,1) 100%) padding-box,
1029
- linear-gradient(180deg, rgba(231,145,28,.4) 0%, rgba(224,169,76,.4) 100%) border-box;
1030
- }
1031
- }
1032
-
1033
- &.ItemRegister {
1034
- background: linear-gradient(0deg, rgba(35,178,78,1) 0%, rgba(26,205,80,1) 100%) padding-box,
1035
- linear-gradient(180deg, rgba(35,178,78,.2) 0%, rgba(26,205,80,.2) 100%) border-box;
1036
- border-radius: 30px;
1037
- border: 2px solid transparent;
1038
- font-size: 14px;
1039
- height: 36px;
1040
- text-align: center;
1041
- line-height: 44px;
1042
- cursor: pointer;
1043
- transition: all .3s linear;
1044
-
1045
- &:hover {
1046
- background: linear-gradient(180deg, rgba(35,178,78,1) 0%, rgba(26,205,80,1) 100%) padding-box,
1047
- linear-gradient(0deg, rgba(35,178,78,.2) 0%, rgba(26,205,80,.2) 100%) border-box;
1048
- border: 2px solid white;
1049
- }
1050
-
1051
- &:active {
1052
- background: linear-gradient(0deg, rgba(35,178,78,1) 0%, rgba(26,205,80,1) 100%) padding-box,
1053
- linear-gradient(180deg, rgba(35,178,78,.2) 0%, rgba(26,205,80,.2) 100%) border-box;
1054
- }
1055
- }
1056
-
1057
- svg {
1058
- width: 15px;
1059
- height: 15px;
1060
- fill: white;
1061
- padding-bottom: 2px;
1062
- }
1063
- }
1064
- }
1065
-
1066
- .Slot1 {}
1067
- .Slot2 {}
1068
- .Slot3 {}
1069
- .LanguageSelector {
1070
- align-content: center;
1071
- cursor: pointer;
1072
- transform: all .3s linear;
1073
- color: white;
1074
-
1075
- .SelectedOption {
1076
- display: flex;
1077
- align-items: center;
1078
- justify-content: center;
1079
-
1080
- .TriangleActive, .TriangleInactive {
1081
- display: block;
1082
- margin: 0 0 0 10px;
1083
- transition: all .2s;
1084
- &:hover {
1085
- transform: scale(1.2);
1086
- }
1087
-
1088
- svg{
1089
- margin: 2px 0px;
1090
- }
1091
- }
1092
-
1093
- .TriangleActive {
1094
- transform: scale(1.1) rotateX(180deg);
1095
- margin-bottom: 5px;
1096
-
1097
- &:hover {
1098
- transform: scale(1.1) rotateX(180deg);
1099
- }
1100
- }
1101
- }
1102
- .LanguageName {
1103
- .ItemLanguage {
1104
- display: flex;
1105
- justify-content: space-around;
1106
- }
1107
-
1108
- svg {
1109
- width: 30px;
1110
- border-radius: 20px;
1111
- }
1112
- }
1113
-
1114
- .OptionList {
1115
- border: 1px solid var(--emw-header-color-primary);
1116
- padding: 10px;
1117
- position: absolute;
1118
- cursor: pointer;
1119
- display: flex;
1120
- gap: 4px;
1121
- flex-direction: column;
1122
- border-radius: 10px;
1123
- transition: all 0.4s ease;
1124
- opacity: 0;
1125
- visibility: hidden;
1126
- z-index: 6;
1127
- right: 5px;
1128
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1129
- background: linear-gradient(90deg, rgba(42,79,55,1) 0%, rgba(0,61,92,1) 100%);
1130
-
1131
- &.Active {
1132
- opacity: 1;
1133
- visibility: visible;
1134
- }
1135
-
1136
- .FlagIcon {
1137
- width: 16px;
1138
-
1139
- svg {
1140
- border-radius: 5px;
1141
- }
1142
- }
1143
-
1144
- .LanguageOption {
1145
- display: flex;
1146
- align-items: center;
1147
- transform: scale(1.1);
1148
- gap: 3px;
1149
- padding: 7px;
1150
-
1151
- &:hover {
1152
- transition: all 0.2s;
1153
- color: var(--emw-color-primary);
1154
- background: var(--emw-color-primary) transparent;
1155
- box-shadow: inset 0px 0px 0px 2px var(--emw-color-primary);
1156
- border-radius: 20px;
1157
- box-sizing: border-box;
1158
- }
1159
- }
1160
- }
1161
- }
1162
- }
1163
-
1164
- .Separator {
1165
- width: 100%;
1166
- height: 5px;
1167
- background: rgb(0,0,0);
1168
- background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(35,172,77,1) 50%, rgba(0,0,0,1) 100%);
1169
- z-index: 3;
1170
- }
1171
-
1172
- .SecondaryNav {
1173
- width: 100%;
1174
- height: 50px;
1175
- display: flex;
1176
- align-items: center;
1177
- background: linear-gradient(90deg, rgba(35,172,77,1) 0%, rgba(18,62,33,1) 100%);
1178
- z-index: 3;
1179
-
1180
- .LeftSpace {
1181
- width: 10%;
1182
- }
1183
-
1184
- .SecondaryMenuContent {
1185
- text-transform: uppercase;
1186
- margin: 0 20px;
1187
- color: white;
1188
- transition: all .5s;
1189
- display: flex;
1190
- cursor: pointer;
1191
- user-select: none;
1192
- gap: 20px;
1193
-
1194
- .ItemSecondary {
1195
- transition: all .5s;
1196
- .Active {
1197
- color: black;
1198
-
1199
- &:hover {
1200
- opacity: .5;
1201
- color: white;
1202
- }
1203
- }
1204
-
1205
- &:hover {
1206
- color: black;
1207
- }
1208
-
1209
- &:active {
1210
- color: white;
1211
- }
1212
- }
1213
- }
1214
- }
1215
-
1216
- .OptionListOverlay {
1217
- position: fixed;
1218
- top: 0;
1219
- bottom: 0;
1220
- left: 0;
1221
- right: 0;
1222
- z-index: 5;
1223
- }
1224
- }
1225
-
1226
- // ------> old stuff
1227
-
1228
- @keyframes ModalBounce {
1229
- 0% {
1230
- opacity: 0;
1231
- transform: translateY(20px);
1232
- }
1233
- 50% {
1234
- transform: translateY(-6px);
1235
- opacity: 0.8;
1236
- }
1237
- 100% {
1238
- transform: translateY(0);
1239
- opacity: 1;
1240
- }
1241
- }
1242
-
1243
-
1244
- input,
1245
- textarea,
1246
- button {font-family: inherit}
1247
-
1248
-
1249
- .HeaderSlider {
1250
- width: 100%;
1251
- height: 400px;
1252
- }
1253
-
1254
-
1255
- .ClosePopUpButtonShortCashier{
1256
- margin-left: auto;
1257
- cursor: pointer;
1258
- svg {
1259
- position: absolute;
1260
- top: 10px;
1261
- right: 10px;
1262
- }
1263
- }
1264
-
1265
- .ShortCashierWindow{
1266
- background-color: rgba(0, 0, 0, 0.7);
1267
- position: fixed;
1268
- top: 0;
1269
- bottom: 0;
1270
- left: 0;
1271
- right: 0;
1272
- z-index: 16;
1273
- }
1274
-
1275
- .ShortCashierContainerWrapper{
1276
- position: relative;
1277
- animation: ModalBounce .5s forwards;
1278
- z-index: 17;
1279
- right: 60%;
1280
- }
1281
- .ShortCashierContainer{
1282
- background-color: var(--emw-color-white, #FFFFFF);
1283
- position: absolute;
1284
- width: 360px;
1285
- top: 16px;
1286
- transform: translateX(-60%);
1287
- box-shadow: 0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1288
- border-radius: 5px;
1289
- z-index: 17;
1290
- box-shadow: 0px 5px 20px 0px #191919;
1291
- &:before {
1292
- content: "";
1293
- background: var(--emw-color-white, #FFFFFF);
1294
- clip-path: polygon(50% 0, 0% 100%, 100% 100%);
1295
- position: absolute;
1296
- top: -8px;
1297
- left: 84%;
1298
- width: 25px;
1299
- height: 10px;
1300
- transform: translateX(-50%);
1301
- z-index: 1;
1302
- }
1303
- }
1304
-
1305
- .ShortCashierContainerWrapperMobile{
1306
- position: relative;
1307
- animation: ModalBounce .5s forwards;
1308
- right: 110%;
1309
- z-index: 17;
1310
- }
1311
- .ShortCashierContainerMobile {
1312
- background-color: var(--emw-color-white, #FFFFFF);
1313
- position: absolute;
1314
- width: 80vw;
1315
- top: 14px;
1316
- left: 50%;
1317
- transform: translateX(-60%);
1318
- box-shadow: 0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1319
- border-radius: 5px;
1320
- z-index: 17;
1321
- box-shadow: 0px 5px 20px 0px #191919;
1322
- &:before {
1323
- content: "";
1324
- background: var(--emw-color-white, #FFFFFF);
1325
- clip-path: polygon(50% 0, 0% 100%, 100% 100%);
1326
- position: absolute;
1327
- top: -8px;
1328
- left: 84%;
1329
- width: 25px;
1330
- height: 10px;
1331
- transform: translateX(-50%);
1332
- z-index: 1;
1333
- }
1334
- }
1335
-
1336
-
1337
- .FlagIcon img {
1338
- width: 20px;
1339
- height: 14px;
1340
- margin-right: 8px;
1341
- border-radius: 2px;
1342
- }
1343
-
1344
-
1345
-
1346
- .HeaderWrapper {
1347
- background: var(--emw-header-color-menu-bg, var(--emw-color-background-secondary, #050518));
1348
- }
1349
-
1350
-
1351
-
1352
- .HeaderMainNav {
1353
- text-align: left;
1354
- }
1355
-
1356
- .HeaderTopActions {
1357
- text-align: right;
1358
- margin-left: auto;
1359
- }
1360
-
1361
- .HeaderSecondaryNav {
1362
- flex-direction: row;
1363
- width: 100%;
1364
- background: var(--emw-header-color-secondary-menu-bg, var(--emw-color-background-secondary, #050518));
1365
- border-top: 1px solid var(--emw-color-gray-300, #58586B);
1366
- }
1367
-
1368
- .HeaderItemsMenu {
1369
- gap: 8px;
1370
- display: flex;
1371
- align-content: flex-start;
1372
- list-style: none;
1373
- text-transform: uppercase;
1374
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1375
- font-size: 16px;
1376
- align-items: center;
1377
-
1378
- .Item:hover {
1379
- .HeaderSecondaryNav {
1380
- display: block;
1381
- }
1382
- }
1383
-
1384
- .Item {
1385
- gap: 2px;
1386
- padding: 0 12px;
1387
- display: flex;
1388
- align-items: center;
1389
- }
1390
-
1391
- &.PrimaryMenu {
1392
- gap: 10px;
1393
- }
1394
- }
1395
-
1396
- /*.Item a {
1397
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1398
- text-decoration: none;
1399
- border-top: 1px solid transparent;
1400
- }
1401
-
1402
- .Item a:hover {
1403
- color: var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1404
- border-top: 1px solid var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1405
- padding-top: 5px;
1406
- }*/
1407
-
1408
- .ItemDeposit {
1409
- background: var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1410
- }
1411
-
1412
- .ItemLanguage {
1413
- height: 44px;
1414
- width: 74px;
1415
- text-align: center;
1416
- line-height: 44px;
1417
- background: transparent;
1418
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1419
- border: none;
1420
- cursor: pointer;
1421
- outline: none;
1422
- -webkit-appearance: none;
1423
- -moz-appearance: none;
1424
- appearance: none;
1425
-
1426
- option {
1427
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1428
- }
1429
- }
1430
-
1431
- .ItemLanguage.NoFlag{
1432
- background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' 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(--emw-header-color-menu-bg, var(--emw-color-background-secondary, #050518));
1433
- background-position: calc(100% - 0.75rem) center;
1434
- width: 90px;
1435
- margin-right: 6px;
1436
- }
1437
-
1438
- .ItemBalance {
1439
- background: transparent;
1440
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1441
- border: 0;
1442
- }
1443
-
1444
- .ItemAccount {
1445
- cursor: pointer;
1446
-
1447
- svg {
1448
- width: 20px;
1449
- height: 20px;
1450
- }
1451
- }
1452
-
1453
- .HeaderItemsMenuSecondary {
1454
- display: flex;
1455
- flex-direction: row;
1456
- align-content: flex-start;
1457
- align-items: center;
1458
- height: 60px;
1459
- list-style: none;
1460
- text-transform: uppercase;
1461
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1462
- font-size: 14px;
1463
- max-width: 1280px;
1464
- margin: 0 auto;
1465
- overflow-y: hidden;
1466
- overflow-x: auto;
1467
- padding: 0;
1468
- }
1469
-
1470
- .HeaderItemsMenuSecondary .ItemSecondary {
1471
- width: auto;
1472
- height: 100%;
1473
- display: flex;
1474
- justify-content: center;
1475
- padding: 0 15px;
1476
- font-weight: 600;
1477
- transition-duration: 0.15s;
1478
-
1479
- button {
1480
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1481
- text-decoration: none;
1482
- border: none;
1483
- background: none;
1484
- font-size: 14px;
1485
- font-weight: 600;
1486
- text-transform: uppercase;
1487
- cursor: pointer;
1488
- &:hover {
1489
- color: var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1490
- }
1491
-
1492
- &:focus {
1493
- color: var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1494
- }
1495
-
1496
- &:visited {
1497
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1498
- }
1499
-
1500
- &:focus-visible {
1501
- color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
1502
- outline: none;
1503
- }
1504
- }
1505
- &.active {
1506
- background: var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));
1507
- }
1508
- }
1509
-
1510
- .HeaderSliderMobile {
1511
- background-position: bottom;
1512
- }
1513
-
1514
- .HeaderMobileWrapper {
1515
- .HeaderContainer {
1516
- height: 55px;
1517
- padding: 0 15px;
1518
- gap: 10px;
1519
- @media only screen and (max-width: 360px) {
1520
- padding: 0 5px;
1521
- }
1522
- }
1523
-
1524
- .HeaderItemsMenu {
1525
- .Item {
1526
- padding: 0 10px;
1527
- display: block;
1528
- width: unset;
1529
- }
1530
-
1531
- .ItemBalance {
1532
- font-size: 12px;
1533
- }
1534
-
1535
- .ItemAccount {
1536
- padding: 0;
1537
- }
1538
- }
1539
-
1540
- .ItemRegister, .ItemDeposit, .ItemLogin {
1541
- height: 30px;
1542
- line-height: 30px;
1543
- font-size: 12px;
1544
- }
1545
-
1546
- .ItemLogin {
1547
- margin-right: 10px;
1548
- }
1549
- }
1550
- </style>