@everymatrix/user-action-controller 1.88.19 → 1.88.21
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/dist/cjs/player-user-consents_2.cjs.entry.js +36 -15
- package/dist/collection/components/user-action-controller/user-action-controller.js +3 -4
- package/dist/collection/utils/locale.utils.js +33 -11
- package/dist/esm/player-user-consents_2.entry.js +36 -15
- package/dist/user-action-controller/player-user-consents_2.entry.js +1 -1
- package/package.json +1 -1
|
@@ -491,7 +491,9 @@ const TRANSLATIONS = {
|
|
|
491
491
|
userNoticeText: 'Before you can proceed you must consent to the following',
|
|
492
492
|
submitButtonText: 'Submit',
|
|
493
493
|
rejectButtonText: 'Reject',
|
|
494
|
-
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.'
|
|
494
|
+
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.',
|
|
495
|
+
consentUpdateSuccess: 'Consent update successful!',
|
|
496
|
+
serverNotResponding: 'Server might not be responding'
|
|
495
497
|
},
|
|
496
498
|
'en-us': {
|
|
497
499
|
termsAndConditionsTitle: 'Terms and Conditions',
|
|
@@ -501,7 +503,9 @@ const TRANSLATIONS = {
|
|
|
501
503
|
userNoticeText: 'Before you can proceed you must consent to the following',
|
|
502
504
|
submitButtonText: 'Submit',
|
|
503
505
|
rejectButtonText: 'Reject',
|
|
504
|
-
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.'
|
|
506
|
+
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.',
|
|
507
|
+
consentUpdateSuccess: 'Consent update successful!',
|
|
508
|
+
serverNotResponding: 'Server might not be responding'
|
|
505
509
|
},
|
|
506
510
|
ro: {
|
|
507
511
|
termsAndConditionsTitle: 'Termeni și Condiții',
|
|
@@ -511,7 +515,9 @@ const TRANSLATIONS = {
|
|
|
511
515
|
userNoticeText: 'Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele',
|
|
512
516
|
submitButtonText: 'Trimite',
|
|
513
517
|
rejectButtonText: 'Respinge',
|
|
514
|
-
rejectText: 'Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.'
|
|
518
|
+
rejectText: 'Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.',
|
|
519
|
+
consentUpdateSuccess: 'Actualizare consimțământ reușită!',
|
|
520
|
+
serverNotResponding: 'Serverul s-ar putea să nu răspundă'
|
|
515
521
|
},
|
|
516
522
|
hr: {
|
|
517
523
|
termsAndConditionsTitle: 'Opći uvjeti i odredbe',
|
|
@@ -521,7 +527,9 @@ const TRANSLATIONS = {
|
|
|
521
527
|
userNoticeText: 'Prije nego što možete nastaviti, morate pristati na sljedeće',
|
|
522
528
|
submitButtonText: 'Pošalji',
|
|
523
529
|
rejectButtonText: 'Odbij',
|
|
524
|
-
rejectText: 'Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.'
|
|
530
|
+
rejectText: 'Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.',
|
|
531
|
+
consentUpdateSuccess: 'Ažuriranje pristanka uspješno!',
|
|
532
|
+
serverNotResponding: 'Poslužitelj možda ne odgovara'
|
|
525
533
|
},
|
|
526
534
|
fr: {
|
|
527
535
|
termsAndConditionsTitle: 'Termes et Conditions',
|
|
@@ -531,7 +539,9 @@ const TRANSLATIONS = {
|
|
|
531
539
|
userNoticeText: 'Avant de continuer, vous devez consentir aux éléments suivants',
|
|
532
540
|
submitButtonText: 'Soumettre',
|
|
533
541
|
rejectButtonText: 'Rejeter',
|
|
534
|
-
rejectText: 'Le rejet des nouveaux consentements entraînera l\'impossibilité de continuer le processus de connexion et vous serez déconnecté.'
|
|
542
|
+
rejectText: 'Le rejet des nouveaux consentements entraînera l\'impossibilité de continuer le processus de connexion et vous serez déconnecté.',
|
|
543
|
+
consentUpdateSuccess: 'Mise à jour du consentement réussie!',
|
|
544
|
+
serverNotResponding: 'Le serveur ne répond peut-être pas'
|
|
535
545
|
},
|
|
536
546
|
cs: {
|
|
537
547
|
termsAndConditionsTitle: 'Podmínky a ujednání',
|
|
@@ -541,7 +551,9 @@ const TRANSLATIONS = {
|
|
|
541
551
|
userNoticeText: 'Než budete moci pokračovat, musíte souhlasit s následujícím',
|
|
542
552
|
submitButtonText: 'Odeslat',
|
|
543
553
|
rejectButtonText: 'Odmítnout',
|
|
544
|
-
rejectText: 'Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.'
|
|
554
|
+
rejectText: 'Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.',
|
|
555
|
+
consentUpdateSuccess: 'Aktualizace souhlasu proběhla úspěšně!',
|
|
556
|
+
serverNotResponding: 'Server možná neodpovídá'
|
|
545
557
|
},
|
|
546
558
|
de: {
|
|
547
559
|
termsAndConditionsTitle: 'Allgemeine Geschäftsbedingungen',
|
|
@@ -551,7 +563,9 @@ const TRANSLATIONS = {
|
|
|
551
563
|
userNoticeText: 'Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen',
|
|
552
564
|
submitButtonText: 'Absenden',
|
|
553
565
|
rejectButtonText: 'Ablehnen',
|
|
554
|
-
rejectText: 'Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.'
|
|
566
|
+
rejectText: 'Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.',
|
|
567
|
+
consentUpdateSuccess: 'Zustimmung erfolgreich aktualisiert!',
|
|
568
|
+
serverNotResponding: 'Der Server antwortet möglicherweise nicht'
|
|
555
569
|
},
|
|
556
570
|
es: {
|
|
557
571
|
termsAndConditionsTitle: 'Términos y Condiciones',
|
|
@@ -561,7 +575,9 @@ const TRANSLATIONS = {
|
|
|
561
575
|
userNoticeText: 'Antes de continuar, debe dar su consentimiento a lo siguiente',
|
|
562
576
|
submitButtonText: 'Enviar',
|
|
563
577
|
rejectButtonText: 'Rechazar',
|
|
564
|
-
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.'
|
|
578
|
+
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.',
|
|
579
|
+
consentUpdateSuccess: '¡Actualización del consentimiento exitosa!',
|
|
580
|
+
serverNotResponding: 'El servidor podría no estar respondiendo'
|
|
565
581
|
},
|
|
566
582
|
pt: {
|
|
567
583
|
termsAndConditionsTitle: 'Termos e Condições',
|
|
@@ -571,7 +587,9 @@ const TRANSLATIONS = {
|
|
|
571
587
|
userNoticeText: 'Antes de continuar, você deve consentir com o seguinte',
|
|
572
588
|
submitButtonText: 'Enviar',
|
|
573
589
|
rejectButtonText: 'Rejeitar',
|
|
574
|
-
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.'
|
|
590
|
+
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.',
|
|
591
|
+
consentUpdateSuccess: 'Atualização de consentimento bem-sucedida!',
|
|
592
|
+
serverNotResponding: 'O servidor pode não estar respondendo'
|
|
575
593
|
},
|
|
576
594
|
'es-mx': {
|
|
577
595
|
termsAndConditionsTitle: 'Términos y Condiciones',
|
|
@@ -581,7 +599,9 @@ const TRANSLATIONS = {
|
|
|
581
599
|
userNoticeText: 'Antes de continuar, debe dar su consentimiento a lo siguiente',
|
|
582
600
|
submitButtonText: 'Enviar',
|
|
583
601
|
rejectButtonText: 'Rechazar',
|
|
584
|
-
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.'
|
|
602
|
+
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.',
|
|
603
|
+
consentUpdateSuccess: '¡Actualización del consentimiento exitosa!',
|
|
604
|
+
serverNotResponding: 'El servidor podría no estar respondiendo'
|
|
585
605
|
},
|
|
586
606
|
'pt-br': {
|
|
587
607
|
termsAndConditionsTitle: 'Termos e Condições',
|
|
@@ -591,7 +611,9 @@ const TRANSLATIONS = {
|
|
|
591
611
|
userNoticeText: 'Antes de continuar, você deve consentir com o seguinte',
|
|
592
612
|
submitButtonText: 'Enviar',
|
|
593
613
|
rejectButtonText: 'Rejeitar',
|
|
594
|
-
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.'
|
|
614
|
+
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.',
|
|
615
|
+
consentUpdateSuccess: 'Atualização de consentimento bem-sucedida!',
|
|
616
|
+
serverNotResponding: 'O servidor pode não estar respondendo'
|
|
595
617
|
}
|
|
596
618
|
};
|
|
597
619
|
const getTranslations = (url) => {
|
|
@@ -807,17 +829,16 @@ const UserActionController = class {
|
|
|
807
829
|
type: 'WidgetNotification',
|
|
808
830
|
data: {
|
|
809
831
|
type: 'success',
|
|
810
|
-
message: '
|
|
832
|
+
message: translate('consentUpdateSuccess', this.lang)
|
|
811
833
|
}
|
|
812
834
|
}, window.location.href);
|
|
813
835
|
})
|
|
814
|
-
.catch((
|
|
836
|
+
.catch(() => {
|
|
815
837
|
window.postMessage({
|
|
816
838
|
type: 'WidgetNotification',
|
|
817
839
|
data: {
|
|
818
840
|
type: 'error',
|
|
819
|
-
message: '
|
|
820
|
-
err
|
|
841
|
+
message: translate('serverNotResponding', this.lang)
|
|
821
842
|
}
|
|
822
843
|
}, window.location.href);
|
|
823
844
|
})
|
|
@@ -164,17 +164,16 @@ export class UserActionController {
|
|
|
164
164
|
type: 'WidgetNotification',
|
|
165
165
|
data: {
|
|
166
166
|
type: 'success',
|
|
167
|
-
message: '
|
|
167
|
+
message: translate('consentUpdateSuccess', this.lang)
|
|
168
168
|
}
|
|
169
169
|
}, window.location.href);
|
|
170
170
|
})
|
|
171
|
-
.catch((
|
|
171
|
+
.catch(() => {
|
|
172
172
|
window.postMessage({
|
|
173
173
|
type: 'WidgetNotification',
|
|
174
174
|
data: {
|
|
175
175
|
type: 'error',
|
|
176
|
-
message: '
|
|
177
|
-
err
|
|
176
|
+
message: translate('serverNotResponding', this.lang)
|
|
178
177
|
}
|
|
179
178
|
}, window.location.href);
|
|
180
179
|
})
|
|
@@ -8,7 +8,9 @@ const TRANSLATIONS = {
|
|
|
8
8
|
userNoticeText: 'Before you can proceed you must consent to the following',
|
|
9
9
|
submitButtonText: 'Submit',
|
|
10
10
|
rejectButtonText: 'Reject',
|
|
11
|
-
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.'
|
|
11
|
+
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.',
|
|
12
|
+
consentUpdateSuccess: 'Consent update successful!',
|
|
13
|
+
serverNotResponding: 'Server might not be responding'
|
|
12
14
|
},
|
|
13
15
|
'en-us': {
|
|
14
16
|
termsAndConditionsTitle: 'Terms and Conditions',
|
|
@@ -18,7 +20,9 @@ const TRANSLATIONS = {
|
|
|
18
20
|
userNoticeText: 'Before you can proceed you must consent to the following',
|
|
19
21
|
submitButtonText: 'Submit',
|
|
20
22
|
rejectButtonText: 'Reject',
|
|
21
|
-
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.'
|
|
23
|
+
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.',
|
|
24
|
+
consentUpdateSuccess: 'Consent update successful!',
|
|
25
|
+
serverNotResponding: 'Server might not be responding'
|
|
22
26
|
},
|
|
23
27
|
ro: {
|
|
24
28
|
termsAndConditionsTitle: 'Termeni și Condiții',
|
|
@@ -28,7 +32,9 @@ const TRANSLATIONS = {
|
|
|
28
32
|
userNoticeText: 'Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele',
|
|
29
33
|
submitButtonText: 'Trimite',
|
|
30
34
|
rejectButtonText: 'Respinge',
|
|
31
|
-
rejectText: 'Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.'
|
|
35
|
+
rejectText: 'Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.',
|
|
36
|
+
consentUpdateSuccess: 'Actualizare consimțământ reușită!',
|
|
37
|
+
serverNotResponding: 'Serverul s-ar putea să nu răspundă'
|
|
32
38
|
},
|
|
33
39
|
hr: {
|
|
34
40
|
termsAndConditionsTitle: 'Opći uvjeti i odredbe',
|
|
@@ -38,7 +44,9 @@ const TRANSLATIONS = {
|
|
|
38
44
|
userNoticeText: 'Prije nego što možete nastaviti, morate pristati na sljedeće',
|
|
39
45
|
submitButtonText: 'Pošalji',
|
|
40
46
|
rejectButtonText: 'Odbij',
|
|
41
|
-
rejectText: 'Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.'
|
|
47
|
+
rejectText: 'Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.',
|
|
48
|
+
consentUpdateSuccess: 'Ažuriranje pristanka uspješno!',
|
|
49
|
+
serverNotResponding: 'Poslužitelj možda ne odgovara'
|
|
42
50
|
},
|
|
43
51
|
fr: {
|
|
44
52
|
termsAndConditionsTitle: 'Termes et Conditions',
|
|
@@ -48,7 +56,9 @@ const TRANSLATIONS = {
|
|
|
48
56
|
userNoticeText: 'Avant de continuer, vous devez consentir aux éléments suivants',
|
|
49
57
|
submitButtonText: 'Soumettre',
|
|
50
58
|
rejectButtonText: 'Rejeter',
|
|
51
|
-
rejectText: 'Le rejet des nouveaux consentements entraînera l\'impossibilité de continuer le processus de connexion et vous serez déconnecté.'
|
|
59
|
+
rejectText: 'Le rejet des nouveaux consentements entraînera l\'impossibilité de continuer le processus de connexion et vous serez déconnecté.',
|
|
60
|
+
consentUpdateSuccess: 'Mise à jour du consentement réussie!',
|
|
61
|
+
serverNotResponding: 'Le serveur ne répond peut-être pas'
|
|
52
62
|
},
|
|
53
63
|
cs: {
|
|
54
64
|
termsAndConditionsTitle: 'Podmínky a ujednání',
|
|
@@ -58,7 +68,9 @@ const TRANSLATIONS = {
|
|
|
58
68
|
userNoticeText: 'Než budete moci pokračovat, musíte souhlasit s následujícím',
|
|
59
69
|
submitButtonText: 'Odeslat',
|
|
60
70
|
rejectButtonText: 'Odmítnout',
|
|
61
|
-
rejectText: 'Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.'
|
|
71
|
+
rejectText: 'Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.',
|
|
72
|
+
consentUpdateSuccess: 'Aktualizace souhlasu proběhla úspěšně!',
|
|
73
|
+
serverNotResponding: 'Server možná neodpovídá'
|
|
62
74
|
},
|
|
63
75
|
de: {
|
|
64
76
|
termsAndConditionsTitle: 'Allgemeine Geschäftsbedingungen',
|
|
@@ -68,7 +80,9 @@ const TRANSLATIONS = {
|
|
|
68
80
|
userNoticeText: 'Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen',
|
|
69
81
|
submitButtonText: 'Absenden',
|
|
70
82
|
rejectButtonText: 'Ablehnen',
|
|
71
|
-
rejectText: 'Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.'
|
|
83
|
+
rejectText: 'Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.',
|
|
84
|
+
consentUpdateSuccess: 'Zustimmung erfolgreich aktualisiert!',
|
|
85
|
+
serverNotResponding: 'Der Server antwortet möglicherweise nicht'
|
|
72
86
|
},
|
|
73
87
|
es: {
|
|
74
88
|
termsAndConditionsTitle: 'Términos y Condiciones',
|
|
@@ -78,7 +92,9 @@ const TRANSLATIONS = {
|
|
|
78
92
|
userNoticeText: 'Antes de continuar, debe dar su consentimiento a lo siguiente',
|
|
79
93
|
submitButtonText: 'Enviar',
|
|
80
94
|
rejectButtonText: 'Rechazar',
|
|
81
|
-
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.'
|
|
95
|
+
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.',
|
|
96
|
+
consentUpdateSuccess: '¡Actualización del consentimiento exitosa!',
|
|
97
|
+
serverNotResponding: 'El servidor podría no estar respondiendo'
|
|
82
98
|
},
|
|
83
99
|
pt: {
|
|
84
100
|
termsAndConditionsTitle: 'Termos e Condições',
|
|
@@ -88,7 +104,9 @@ const TRANSLATIONS = {
|
|
|
88
104
|
userNoticeText: 'Antes de continuar, você deve consentir com o seguinte',
|
|
89
105
|
submitButtonText: 'Enviar',
|
|
90
106
|
rejectButtonText: 'Rejeitar',
|
|
91
|
-
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.'
|
|
107
|
+
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.',
|
|
108
|
+
consentUpdateSuccess: 'Atualização de consentimento bem-sucedida!',
|
|
109
|
+
serverNotResponding: 'O servidor pode não estar respondendo'
|
|
92
110
|
},
|
|
93
111
|
'es-mx': {
|
|
94
112
|
termsAndConditionsTitle: 'Términos y Condiciones',
|
|
@@ -98,7 +116,9 @@ const TRANSLATIONS = {
|
|
|
98
116
|
userNoticeText: 'Antes de continuar, debe dar su consentimiento a lo siguiente',
|
|
99
117
|
submitButtonText: 'Enviar',
|
|
100
118
|
rejectButtonText: 'Rechazar',
|
|
101
|
-
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.'
|
|
119
|
+
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.',
|
|
120
|
+
consentUpdateSuccess: '¡Actualización del consentimiento exitosa!',
|
|
121
|
+
serverNotResponding: 'El servidor podría no estar respondiendo'
|
|
102
122
|
},
|
|
103
123
|
'pt-br': {
|
|
104
124
|
termsAndConditionsTitle: 'Termos e Condições',
|
|
@@ -108,7 +128,9 @@ const TRANSLATIONS = {
|
|
|
108
128
|
userNoticeText: 'Antes de continuar, você deve consentir com o seguinte',
|
|
109
129
|
submitButtonText: 'Enviar',
|
|
110
130
|
rejectButtonText: 'Rejeitar',
|
|
111
|
-
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.'
|
|
131
|
+
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.',
|
|
132
|
+
consentUpdateSuccess: 'Atualização de consentimento bem-sucedida!',
|
|
133
|
+
serverNotResponding: 'O servidor pode não estar respondendo'
|
|
112
134
|
}
|
|
113
135
|
};
|
|
114
136
|
export const getTranslations = (url) => {
|
|
@@ -487,7 +487,9 @@ const TRANSLATIONS = {
|
|
|
487
487
|
userNoticeText: 'Before you can proceed you must consent to the following',
|
|
488
488
|
submitButtonText: 'Submit',
|
|
489
489
|
rejectButtonText: 'Reject',
|
|
490
|
-
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.'
|
|
490
|
+
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.',
|
|
491
|
+
consentUpdateSuccess: 'Consent update successful!',
|
|
492
|
+
serverNotResponding: 'Server might not be responding'
|
|
491
493
|
},
|
|
492
494
|
'en-us': {
|
|
493
495
|
termsAndConditionsTitle: 'Terms and Conditions',
|
|
@@ -497,7 +499,9 @@ const TRANSLATIONS = {
|
|
|
497
499
|
userNoticeText: 'Before you can proceed you must consent to the following',
|
|
498
500
|
submitButtonText: 'Submit',
|
|
499
501
|
rejectButtonText: 'Reject',
|
|
500
|
-
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.'
|
|
502
|
+
rejectText: 'Rejecting new consents will result in the inability to continue the login process and you will be logged out.',
|
|
503
|
+
consentUpdateSuccess: 'Consent update successful!',
|
|
504
|
+
serverNotResponding: 'Server might not be responding'
|
|
501
505
|
},
|
|
502
506
|
ro: {
|
|
503
507
|
termsAndConditionsTitle: 'Termeni și Condiții',
|
|
@@ -507,7 +511,9 @@ const TRANSLATIONS = {
|
|
|
507
511
|
userNoticeText: 'Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele',
|
|
508
512
|
submitButtonText: 'Trimite',
|
|
509
513
|
rejectButtonText: 'Respinge',
|
|
510
|
-
rejectText: 'Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.'
|
|
514
|
+
rejectText: 'Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.',
|
|
515
|
+
consentUpdateSuccess: 'Actualizare consimțământ reușită!',
|
|
516
|
+
serverNotResponding: 'Serverul s-ar putea să nu răspundă'
|
|
511
517
|
},
|
|
512
518
|
hr: {
|
|
513
519
|
termsAndConditionsTitle: 'Opći uvjeti i odredbe',
|
|
@@ -517,7 +523,9 @@ const TRANSLATIONS = {
|
|
|
517
523
|
userNoticeText: 'Prije nego što možete nastaviti, morate pristati na sljedeće',
|
|
518
524
|
submitButtonText: 'Pošalji',
|
|
519
525
|
rejectButtonText: 'Odbij',
|
|
520
|
-
rejectText: 'Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.'
|
|
526
|
+
rejectText: 'Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.',
|
|
527
|
+
consentUpdateSuccess: 'Ažuriranje pristanka uspješno!',
|
|
528
|
+
serverNotResponding: 'Poslužitelj možda ne odgovara'
|
|
521
529
|
},
|
|
522
530
|
fr: {
|
|
523
531
|
termsAndConditionsTitle: 'Termes et Conditions',
|
|
@@ -527,7 +535,9 @@ const TRANSLATIONS = {
|
|
|
527
535
|
userNoticeText: 'Avant de continuer, vous devez consentir aux éléments suivants',
|
|
528
536
|
submitButtonText: 'Soumettre',
|
|
529
537
|
rejectButtonText: 'Rejeter',
|
|
530
|
-
rejectText: 'Le rejet des nouveaux consentements entraînera l\'impossibilité de continuer le processus de connexion et vous serez déconnecté.'
|
|
538
|
+
rejectText: 'Le rejet des nouveaux consentements entraînera l\'impossibilité de continuer le processus de connexion et vous serez déconnecté.',
|
|
539
|
+
consentUpdateSuccess: 'Mise à jour du consentement réussie!',
|
|
540
|
+
serverNotResponding: 'Le serveur ne répond peut-être pas'
|
|
531
541
|
},
|
|
532
542
|
cs: {
|
|
533
543
|
termsAndConditionsTitle: 'Podmínky a ujednání',
|
|
@@ -537,7 +547,9 @@ const TRANSLATIONS = {
|
|
|
537
547
|
userNoticeText: 'Než budete moci pokračovat, musíte souhlasit s následujícím',
|
|
538
548
|
submitButtonText: 'Odeslat',
|
|
539
549
|
rejectButtonText: 'Odmítnout',
|
|
540
|
-
rejectText: 'Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.'
|
|
550
|
+
rejectText: 'Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.',
|
|
551
|
+
consentUpdateSuccess: 'Aktualizace souhlasu proběhla úspěšně!',
|
|
552
|
+
serverNotResponding: 'Server možná neodpovídá'
|
|
541
553
|
},
|
|
542
554
|
de: {
|
|
543
555
|
termsAndConditionsTitle: 'Allgemeine Geschäftsbedingungen',
|
|
@@ -547,7 +559,9 @@ const TRANSLATIONS = {
|
|
|
547
559
|
userNoticeText: 'Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen',
|
|
548
560
|
submitButtonText: 'Absenden',
|
|
549
561
|
rejectButtonText: 'Ablehnen',
|
|
550
|
-
rejectText: 'Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.'
|
|
562
|
+
rejectText: 'Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.',
|
|
563
|
+
consentUpdateSuccess: 'Zustimmung erfolgreich aktualisiert!',
|
|
564
|
+
serverNotResponding: 'Der Server antwortet möglicherweise nicht'
|
|
551
565
|
},
|
|
552
566
|
es: {
|
|
553
567
|
termsAndConditionsTitle: 'Términos y Condiciones',
|
|
@@ -557,7 +571,9 @@ const TRANSLATIONS = {
|
|
|
557
571
|
userNoticeText: 'Antes de continuar, debe dar su consentimiento a lo siguiente',
|
|
558
572
|
submitButtonText: 'Enviar',
|
|
559
573
|
rejectButtonText: 'Rechazar',
|
|
560
|
-
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.'
|
|
574
|
+
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.',
|
|
575
|
+
consentUpdateSuccess: '¡Actualización del consentimiento exitosa!',
|
|
576
|
+
serverNotResponding: 'El servidor podría no estar respondiendo'
|
|
561
577
|
},
|
|
562
578
|
pt: {
|
|
563
579
|
termsAndConditionsTitle: 'Termos e Condições',
|
|
@@ -567,7 +583,9 @@ const TRANSLATIONS = {
|
|
|
567
583
|
userNoticeText: 'Antes de continuar, você deve consentir com o seguinte',
|
|
568
584
|
submitButtonText: 'Enviar',
|
|
569
585
|
rejectButtonText: 'Rejeitar',
|
|
570
|
-
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.'
|
|
586
|
+
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.',
|
|
587
|
+
consentUpdateSuccess: 'Atualização de consentimento bem-sucedida!',
|
|
588
|
+
serverNotResponding: 'O servidor pode não estar respondendo'
|
|
571
589
|
},
|
|
572
590
|
'es-mx': {
|
|
573
591
|
termsAndConditionsTitle: 'Términos y Condiciones',
|
|
@@ -577,7 +595,9 @@ const TRANSLATIONS = {
|
|
|
577
595
|
userNoticeText: 'Antes de continuar, debe dar su consentimiento a lo siguiente',
|
|
578
596
|
submitButtonText: 'Enviar',
|
|
579
597
|
rejectButtonText: 'Rechazar',
|
|
580
|
-
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.'
|
|
598
|
+
rejectText: 'Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.',
|
|
599
|
+
consentUpdateSuccess: '¡Actualización del consentimiento exitosa!',
|
|
600
|
+
serverNotResponding: 'El servidor podría no estar respondiendo'
|
|
581
601
|
},
|
|
582
602
|
'pt-br': {
|
|
583
603
|
termsAndConditionsTitle: 'Termos e Condições',
|
|
@@ -587,7 +607,9 @@ const TRANSLATIONS = {
|
|
|
587
607
|
userNoticeText: 'Antes de continuar, você deve consentir com o seguinte',
|
|
588
608
|
submitButtonText: 'Enviar',
|
|
589
609
|
rejectButtonText: 'Rejeitar',
|
|
590
|
-
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.'
|
|
610
|
+
rejectText: 'Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.',
|
|
611
|
+
consentUpdateSuccess: 'Atualização de consentimento bem-sucedida!',
|
|
612
|
+
serverNotResponding: 'O servidor pode não estar respondendo'
|
|
591
613
|
}
|
|
592
614
|
};
|
|
593
615
|
const getTranslations = (url) => {
|
|
@@ -803,17 +825,16 @@ const UserActionController = class {
|
|
|
803
825
|
type: 'WidgetNotification',
|
|
804
826
|
data: {
|
|
805
827
|
type: 'success',
|
|
806
|
-
message: '
|
|
828
|
+
message: translate('consentUpdateSuccess', this.lang)
|
|
807
829
|
}
|
|
808
830
|
}, window.location.href);
|
|
809
831
|
})
|
|
810
|
-
.catch((
|
|
832
|
+
.catch(() => {
|
|
811
833
|
window.postMessage({
|
|
812
834
|
type: 'WidgetNotification',
|
|
813
835
|
data: {
|
|
814
836
|
type: 'error',
|
|
815
|
-
message: '
|
|
816
|
-
err
|
|
837
|
+
message: translate('serverNotResponding', this.lang)
|
|
817
838
|
}
|
|
818
839
|
}, window.location.href);
|
|
819
840
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./index-5b001d30.js";const r={en:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"I want to receive Sports email marketing",sportssms:"I want to receive Sports SMS marketing",sports3rdparty:"I want to receive Sports phone call marketing",sportspush:"I want to receive Sports push notifications",sportsphonecall:"I want to receive Sports phone call marketing",sportsmarketing:"I want to receive Sports marketing materials",casinoemail:"I want to receive Casino email marketing",casinosms:"I want to receive Casino SMS marketing",casino3rdparty:"I want to receive Casino phone call marketing",casinopush:"I want to receive Casino push notifications",casinophonecall:"I want to receive Casino phone call marketing",casinomarketing:"I want to receive Casino marketing materials",virtualsportsemail:"I want to receive Virtual Sports email marketing",virtualsportssms:"I want to receive Virtual Sports SMS marketing",virtualsports3rdparty:"I want to receive Virtual Sports phone call marketing",virtualsportspush:"I want to receive Virtual Sports push notifications",virtualsportsphonecall:"I want to receive Virtual Sports phone call marketing",virtualsportsmarketing:"I want to receive Virtual Sports marketing materials",bingoemail:"I want to receive Bingo email marketing",bingosms:"I want to receive Bingo SMS marketing",bingo3rdparty:"I want to receive Bingo phone call marketing",bingopush:"I want to receive Bingo push notifications",bingophonecall:"I want to receive Bingo phone call marketing",bingomarketing:"I want to receive Bingo marketing materials"},ro:{termsAndConditions:{acceptPart1:"Accept ",acceptPart2:" platformei. Am citit şi înţeles ",acceptPart3:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",tc:"Termenii şi condiţiile"},privacyPolicy:{readUnderstandPart1:"Am citit şi înţeles ",readUnderstandPart2:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",privacy:"Politica de confidenţialitate"},sms:"Sunt de acord să primesc promoţii de marketing prin SMS.",emailmarketing:"Sunt de acord să primesc promoţii de marketing pe e-mail.",sportsemail:"Vreau să primesc marketing prin e-mail pentru sporturi",sportssms:"Vreau să primesc marketing prin SMS pentru sporturi",sports3rdparty:"Vreau să primesc marketing prin apel telefonic pentru sporturi",sportspush:"Vreau să primesc notificări push pentru Sport",sportsphonecall:"Doresc să primesc apeluri de marketing pentru Sport",sportsmarketing:"Doresc să primesc materiale de marketing pentru Sport",casinoemail:"Doresc să primesc e-mailuri de marketing pentru Cazinou",casinosms:"Doresc să primesc mesaje SMS de marketing pentru Cazinou",casino3rdparty:"Doresc să primesc apeluri de marketing pentru Cazinou",casinopush:"Doresc să primesc notificări push pentru Cazinou",casinophonecall:"Doresc să primesc apeluri de marketing pentru Cazinou",casinomarketing:"Doresc să primesc materiale de marketing pentru Cazinou",virtualsportsemail:"Doresc să primesc e-mailuri de marketing pentru Sporturi Virtuale",virtualsportssms:"Doresc să primesc mesaje SMS de marketing pentru Sporturi Virtuale",virtualsports3rdparty:"Doresc să primesc apeluri de marketing pentru Sporturi Virtuale",virtualsportspush:"Doresc să primesc notificări push pentru Sporturi Virtuale",virtualsportsphonecall:"Doresc să primesc apeluri de marketing pentru Sporturi Virtuale",virtualsportsmarketing:"Doresc să primesc materiale de marketing pentru Sporturi Virtuale",bingoemail:"Doresc să primesc e-mailuri de marketing pentru Bingo",bingosms:"Doresc să primesc mesaje SMS de marketing pentru Bingo",bingo3rdparty:"Doresc să primesc apeluri de marketing pentru Bingo",bingopush:"Doresc să primesc notificări push pentru Bingo",bingophonecall:"Doresc să primesc apeluri de marketing pentru Bingo",bingomarketing:"Doresc să primesc materiale de marketing pentru Bingo"},hr:{termsAndConditions:{acceptPart1:"Prihvaćam Opće uvjete i odredbe ",acceptPart2:"",acceptPart3:"",tcLink:"Opći uvjeti i odredbe"},privacyPolicy:{readUnderstandPart1:"Pročitao sam i razumijem Politiku Privatnosti ",readUnderstandPart2:", i potvrđujem da imam više od 18 godina",privacyLink:"Politika Privatnosti"},sms:"Želim dobivati marketinški sadržaj putem sms",emailmarketing:"Želim dobivati marketinški sadržaj putem e-maila",sportsemail:"Želim primati sportski marketing putem e-pošte",sportssms:"Želim primati sportski marketing putem SMS-a",sports3rdparty:"Želim primati sportski marketing putem telefonskog poziva",sportspush:"Želim primati push obavijesti za Sport",sportsphonecall:"Želim primati marketinške pozive vezane uz sport",sportsmarketing:"Želim primati marketinške materijale vezane uz sport",casinoemail:"Želim primati promotivne e-poruke za kasino",casinosms:"Želim primati promotivne SMS poruke za kasino",casino3rdparty:"Želim primati marketinške pozive za kasino",casinopush:"Želim primati push obavijesti za kasino",casinophonecall:"Želim primati marketinške pozive za kasino",casinomarketing:"Želim primati marketinške materijale za kasino",virtualsportsemail:"Želim primati promotivne e-poruke za virtualne sportove",virtualsportssms:"Želim primati promotivne SMS poruke za virtualne sportove",virtualsports3rdparty:"Želim primati marketinške pozive za virtualne sportove",virtualsportspush:"Želim primati push obavijesti za virtualne sportove",virtualsportsphonecall:"Želim primati marketinške pozive za virtualne sportove",virtualsportsmarketing:"Želim primati marketinške materijale za virtualne sportove",bingoemail:"Želim primati promotivne e-poruke za bingo",bingosms:"Želim primati promotivne SMS poruke za bingo",bingo3rdparty:"Želim primati marketinške pozive za bingo",bingopush:"Želim primati push obavijesti za bingo",bingophonecall:"Želim primati marketinške pozive za bingo",bingomarketing:"Želim primati marketinške materijale za bingo"},fr:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Je veux recevoir des e-mails marketing pour les sports",sportssms:"Je veux recevoir des SMS marketing pour les sports",sports3rdparty:"Je veux recevoir des appels marketing pour les sports",sportspush:"Je souhaite recevoir des notifications push pour le sport",sportsphonecall:"Je souhaite recevoir des appels de marketing pour le sport",sportsmarketing:"Je souhaite recevoir des supports marketing pour le sport",casinoemail:"Je souhaite recevoir des e-mails marketing pour le casino",casinosms:"Je souhaite recevoir des SMS marketing pour le casino",casino3rdparty:"Je souhaite recevoir des appels marketing pour le casino",casinopush:"Je souhaite recevoir des notifications push pour le casino",casinophonecall:"Je souhaite recevoir des appels marketing pour le casino",casinomarketing:"Je souhaite recevoir des supports marketing pour le casino",virtualsportsemail:"Je souhaite recevoir des e-mails marketing pour les sports virtuels",virtualsportssms:"Je souhaite recevoir des SMS marketing pour les sports virtuels",virtualsports3rdparty:"Je souhaite recevoir des appels marketing pour les sports virtuels",virtualsportspush:"Je souhaite recevoir des notifications push pour les sports virtuels",virtualsportsphonecall:"Je souhaite recevoir des appels marketing pour les sports virtuels",virtualsportsmarketing:"Je souhaite recevoir des supports marketing pour les sports virtuels",bingoemail:"Je souhaite recevoir des e-mails marketing pour le bingo",bingosms:"Je souhaite recevoir des SMS marketing pour le bingo",bingo3rdparty:"Je souhaite recevoir des appels marketing pour le bingo",bingopush:"Je souhaite recevoir des notifications push pour le bingo",bingophonecall:"Je souhaite recevoir des appels marketing pour le bingo",bingomarketing:"Je souhaite recevoir des supports marketing pour le bingo"},cs:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Chci dostávat sportovní marketingové e-maily",sportssms:"Chci dostávat sportovní marketingové SMS",sports3rdparty:"Chci dostávat sportovní marketingové telefonáty",sportspush:"Chci dostávat push oznámení o sportu",sportsphonecall:"Chci přijímat marketingové telefonáty o sportu",sportsmarketing:"Chci dostávat marketingové materiály o sportu",casinoemail:"Chci dostávat marketingové e-maily o kasinu",casinosms:"Chci dostávat marketingové SMS o kasinu",casino3rdparty:"Chci přijímat marketingové telefonáty o kasinu",casinopush:"Chci dostávat push notifikace o kasinu",casinophonecall:"Chci přijímat marketingové telefonáty o kasinu",casinomarketing:"Chci dostávat marketingové materiály o kasinu",virtualsportsemail:"Chci dostávat marketingové e-maily o virtuálních sportech",virtualsportssms:"Chci dostávat marketingové SMS o virtuálních sportech",virtualsports3rdparty:"Chci přijímat marketingové telefonáty o virtuálních sportech",virtualsportspush:"Chci dostávat push notifikace o virtuálních sportech",virtualsportsphonecall:"Chci přijímat marketingové telefonáty o virtuálních sportech",virtualsportsmarketing:"Chci dostávat marketingové materiály o virtuálních sportech",bingoemail:"Chci dostávat marketingové e-maily o bingu",bingosms:"Chci dostávat marketingové SMS o bingu",bingo3rdparty:"Chci přijímat marketingové telefonáty o bingu",bingopush:"Chci dostávat push notifikace o bingu",bingophonecall:"Chci přijímat marketingové telefonáty o bingu",bingomarketing:"Chci dostávat marketingové materiály o bingu"},de:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Ich möchte Sport-Marketing-E-Mails erhalten",sportssms:"Ich möchte Sport-Marketing-SMS erhalten",sports3rdparty:"Ich möchte Sport-Marketing-Anrufe erhalten",sportspush:"Ich möchte Push-Benachrichtigungen für Sport erhalten",sportsphonecall:"Ich möchte Marketinganrufe zum Thema Sport erhalten",sportsmarketing:"Ich möchte Marketingmaterialien zum Thema Sport erhalten",casinoemail:"Ich möchte Marketing-E-Mails zum Thema Casino erhalten",casinosms:"Ich möchte Marketing-SMS zum Thema Casino erhalten",casino3rdparty:"Ich möchte Marketinganrufe zum Thema Casino erhalten",casinopush:"Ich möchte Push-Benachrichtigungen zum Thema Casino erhalten",casinophonecall:"Ich möchte Marketinganrufe zum Thema Casino erhalten",casinomarketing:"Ich möchte Marketingmaterialien zum Thema Casino erhalten",virtualsportsemail:"Ich möchte Marketing-E-Mails zu virtuellen Sportarten erhalten",virtualsportssms:"Ich möchte Marketing-SMS zu virtuellen Sportarten erhalten",virtualsports3rdparty:"Ich möchte Marketinganrufe zu virtuellen Sportarten erhalten",virtualsportspush:"Ich möchte Push-Benachrichtigungen zu virtuellen Sportarten erhalten",virtualsportsphonecall:"Ich möchte Marketinganrufe zu virtuellen Sportarten erhalten",virtualsportsmarketing:"Ich möchte Marketingmaterialien zu virtuellen Sportarten erhalten",bingoemail:"Ich möchte Marketing-E-Mails zum Thema Bingo erhalten",bingosms:"Ich möchte Marketing-SMS zum Thema Bingo erhalten",bingo3rdparty:"Ich möchte Marketinganrufe zum Thema Bingo erhalten",bingopush:"Ich möchte Push-Benachrichtigungen zum Thema Bingo erhalten",bingophonecall:"Ich möchte Marketinganrufe zum Thema Bingo erhalten",bingomarketing:"Ich möchte Marketingmaterialien zum Thema Bingo erhalten"}},n=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])r[t]||(r[t]={}),r[t][i]=e[t][i]})),t(!0)}))})),s=(e,t,i)=>{let n=(s=r[t||"en"],e.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:null),s));var s;if(null===n)return e;if(void 0!==i)for(const[e,t]of Object.entries(i)){const i=new RegExp(`{${e}}`,"g");n=n.replace(i,t)}return n},o="__WIDGET_GLOBAL_STYLE_CACHE__";function a(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function c(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function l(e,t,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(i.innerHTML=t,e.appendChild(i))}))}(e,t),i;window[o]||(window[o]={}),i=function(e,t){return window.emMessageBus.subscribe(t,(i=>{if(!e)return;const r=e.getRootNode(),n=window[o];let s=n[t]&&n[t].sheet;s?n[t].refCount=n[t].refCount+1:(s=new CSSStyleSheet,s.replaceSync(i),n[t]={sheet:s,refCount:1});const a=r.adoptedStyleSheets||[];a.includes(s)||(r.adoptedStyleSheets=[...a,s])}))}(e,t);const n=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[o][t]){const e=window[o][t];e.refCount>1?e.refCount=e.refCount-1:delete window[o][t]}n()},i}const m=class{constructor(i){e(this,i),this.userLegislationConsent=t(this,"userLegislationConsent",7),this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.mbSource=void 0,this.textContent=""}handleNewTranslations(){n(this.translationUrl)}handleStylingUrlChange(e,t){e!==t&&c(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl.length>2&&await n(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(){const e=this.mandatory?i("span",{class:"MandatoryItem"},"*"):"";if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)),s("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("termsAndConditions.acceptPart3",this.lang)," ",e);if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang))," ",e);if("privacypolicy"===this.consentType)return i("p",null,s("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("privacyPolicy.readUnderstandPart2",this.lang)," ",e)}return i("p",null,s(this.consentType,this.lang)," ",e)}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"6b3c14e5e45334d7d52bfaa91e51a7fd3804e433",ref:e=>this.stylingContainer=e},i("p",{key:"df5fa47552931f2b9ab2b6bc18c92d2c8fdb47aa",class:"ConsentTitle"},this.consentTitle),i("label",{key:"9e73eeeb8baeb35f11c073c4466b62aa75875fc8",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"a8270c4eec7774cbe3fc6aba0625bac721ff648b",ref:e=>this.checkboxInput=e,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent()))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}}};m.style=':host{display:block;font-family:inherit}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:center}.MandatoryItem{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emw--color-primary), #52d004;font-weight:bold}#userConsent{appearance:none;width:18px;border-radius:3px;height:18px;border:1px solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;cursor:pointer;position:relative}#userConsent:checked{background-color:var(--emw--color-white), #FFFFFF;border:1px solid var(--emw--color-black, #000000)}#userConsent:checked::after{content:"";position:absolute;width:4px;height:8px;border:solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;border-width:0 2px 2px 0;top:2px;left:5px;transform:rotate(45deg)}';const p={en:{termsAndConditionsTitle:"Terms and Conditions",smsTitle:"SMS marketing",emailMarketingTitle:"Email marketing",privacyPolicyTitle:"Privacy Policy",userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out."},"en-us":{termsAndConditionsTitle:"Terms and Conditions",smsTitle:"SMS marketing",emailMarketingTitle:"Email marketing",privacyPolicyTitle:"Privacy Policy",userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out."},ro:{termsAndConditionsTitle:"Termeni și Condiții",smsTitle:"Marketing prin SMS",emailMarketingTitle:"Marketing prin Email",privacyPolicyTitle:"Politica de Confidențialitate",userNoticeText:"Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele",submitButtonText:"Trimite",rejectButtonText:"Respinge",rejectText:"Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat."},hr:{termsAndConditionsTitle:"Opći uvjeti i odredbe",smsTitle:"SMS makretinški sadržaj",emailMarketingTitle:"E-mail makretinški sadržaj",privacyPolicyTitle:"Politika Privatnosti",userNoticeText:"Prije nego što možete nastaviti, morate pristati na sljedeće",submitButtonText:"Pošalji",rejectButtonText:"Odbij",rejectText:"Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni."},fr:{termsAndConditionsTitle:"Termes et Conditions",smsTitle:"Marketing par SMS",emailMarketingTitle:"Marketing par Email",privacyPolicyTitle:"Politique de Confidentialité",userNoticeText:"Avant de continuer, vous devez consentir aux éléments suivants",submitButtonText:"Soumettre",rejectButtonText:"Rejeter",rejectText:"Le rejet des nouveaux consentements entraînera l'impossibilité de continuer le processus de connexion et vous serez déconnecté."},cs:{termsAndConditionsTitle:"Podmínky a ujednání",smsTitle:"SMS marketing",emailMarketingTitle:"Emailový marketing",privacyPolicyTitle:"Zásady ochrany osobních údajů",userNoticeText:"Než budete moci pokračovat, musíte souhlasit s následujícím",submitButtonText:"Odeslat",rejectButtonText:"Odmítnout",rejectText:"Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni."},de:{termsAndConditionsTitle:"Allgemeine Geschäftsbedingungen",smsTitle:"SMS-Marketing",emailMarketingTitle:"E-Mail-Marketing",privacyPolicyTitle:"Datenschutzrichtlinie",userNoticeText:"Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen",submitButtonText:"Absenden",rejectButtonText:"Ablehnen",rejectText:"Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden."},es:{termsAndConditionsTitle:"Términos y Condiciones",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidad",userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión."},pt:{termsAndConditionsTitle:"Termos e Condições",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidade",userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado."},"es-mx":{termsAndConditionsTitle:"Términos y Condiciones",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidad",userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión."},"pt-br":{termsAndConditionsTitle:"Termos e Condições",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidade",userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado."}},d=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{p[t]||(p[t]={});for(let i in e[t])p[t][i]=e[t][i]})),t(!0)}))})),h=(e,t,i)=>{let r=p[void 0!==t&&t in p?t:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");r=r.replace(i,t)}return r},u=class{constructor(t){e(this,t),this.mandatoryActions=["termsandconditions","privacypolicy"],this.userActions=[],this.getConsentTitleMethods={termsandconditions:()=>h("termsAndConditionsTitle",this.lang),sms:()=>h("smsTitle",this.lang),emailmarketing:()=>h("emailMarketingTitle",this.lang),privacypolicy:()=>h("privacyPolicyTitle",this.lang)},this.handleApplyClick=()=>{this.queryFired=!0},this.handleReject=()=>{const e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",this.userSession),fetch(`${this.endpoint}/v1/player/session/player`,{method:"DELETE",headers:e}).then((()=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),((e,t={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:"logged_out",data:t},bubbles:!0,composed:!0});document.dispatchEvent(i)})(0,{})}))},this.endpoint=void 0,this.userSession=void 0,this.userId=void 0,this.lang="en",this.includeSubmitButton=void 0,this.includeRejectButton=void 0,this.includeRejectText=void 0,this.gmVersion="",this.translationUrl="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.queryFired=!1,this.readyActionsCount=0,this.activeUserActions=[],this.userActionsValidated=!0,this.receivedQueryResponses=0,this.isLoading=!0,this.mandatoryActionsChecked=0,this.mandatoryItems=void 0}handleNewTranslations(){d(this.translationUrl)}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)}handleQueryResponse(){this.receivedQueryResponses===this.activeUserActions.length&&this.updateUserConsents()}userLegislationConsentHandler(e){const t=e.detail.type,i=e.detail.value;this.mandatoryActions.includes(t)&&!1===this.queryFired&&(!0===i?this.mandatoryActionsChecked++:this.mandatoryActionsChecked--),this.queryFired&&(this.userActions.push(Object.assign({tagCode:t,status:(e=>"gm16"===this.gmVersion?e?1:0:e?"Accepted":"Denied")(i)},"gm16"===this.gmVersion&&{note:""})),this.receivedQueryResponses++)}determineUserActionsCore(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/consent/`),t=new Headers;t.append("X-SessionId",this.userSession),fetch(e.href,{method:"GET",headers:t}).then((e=>e.json())).then((e=>{e.items.forEach((e=>{"Expired"===e.status&&this.activeUserActions.push(e.tagCode)}))})).catch((e=>{console.error("Error fetching data:",e)})).finally((()=>{this.calcMandatoryActions(),window.postMessage({type:"UserActionsExists",displayUserActions:this.mandatoryItems>0},window.location.href),this.isLoading=!1}))}determineUserActions16(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents/`),t=new Headers;t.append("X-SessionId",this.userSession),fetch(e.href,{method:"GET",headers:t}).then((e=>e.json())).then((e=>{e.consents.forEach((e=>{2===e.status&&"pepconsent"!==e.tagCode&&this.activeUserActions.push(e.tagCode)}))})).catch((e=>{console.error("Error fetching data:",e)})).finally((()=>{this.calcMandatoryActions(),window.postMessage({type:"UserActionsExists",displayUserActions:this.mandatoryItems>0},window.location.href),this.isLoading=!1}))}updateUserConsents(){const e="gmcore"===this.gmVersion?new URL(`${this.endpoint}/v1/player/${this.userId}/consent/`):new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents/`);let t={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-SessionId":`${this.userSession}`},body:JSON.stringify({consents:this.userActions})};fetch(e.href,t).then((e=>e.json())).then((()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:"Consent update successful!"}},window.location.href)})).catch((e=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Server might not be responding",err:e}},window.location.href)})).finally((()=>{window.postMessage({type:"UserActionsCompleted"},window.location.href)}))}async componentWillLoad(){switch(this.gmVersion){case"gmcore":this.determineUserActionsCore();break;case"gm16":this.determineUserActions16()}this.translationUrl.length>2&&await d(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}calcMandatoryActions(){this.mandatoryItems=0,this.mandatoryActions.forEach((e=>this.activeUserActions.includes(e)&&this.mandatoryItems++))}render(){if(0!==this.mandatoryItems)return this.userActionsValidated=this.mandatoryActionsChecked===this.mandatoryItems,i("div",{class:"QueryReferenceContainer",ref:e=>this.stylingContainer=e},this.isLoading?i("div",null,i("slot",{name:"spinner"}),i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"}))):i("div",{class:"UserActionController"},i("h2",{class:"UserConsentNotice"},h("userNoticeText",this.lang)),i("div",{class:"PlayerLegislationWrapper"},this.activeUserActions.map((e=>{var t,r;return i("slot",{name:e},i("player-user-consents",{lang:this.lang,"gm-version":this.gmVersion,"translation-url":this.translationUrl,consentType:e,consentTitle:null===(r=(t=this.getConsentTitleMethods)[e])||void 0===r?void 0:r.call(t),queried:this.queryFired,mandatory:this.mandatoryActions.includes(e),"client-styling-url":this.clientStylingUrl,"mb-source":this.mbSource,"client-styling":this.clientStyling}))}))),i("div",{class:"ButtonsWrapper"},this.includeRejectButton&&i("button",{class:"ConsentRejectButton",onClick:this.handleReject},h("rejectButtonText",this.lang)),this.includeSubmitButton&&i("button",{class:"ConsentSubmitButton",disabled:!this.userActionsValidated,onClick:this.handleApplyClick},h("submitButtonText",this.lang))),this.includeRejectText&&i("p",{class:"RejectText"},h("rejectText",this.lang))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],receivedQueryResponses:["handleQueryResponse"]}}};u.style=":host{display:block}.QueryReferenceContainer{height:100%;width:100%}.UserConsentNotice{font-size:1.2rem;font-weight:200;text-align:center}.CloseButton{width:25px;height:25px;align-self:flex-end}.UserActionController{font-family:inherit;font-weight:100;height:100%;padding:1rem 1.5rem 2rem;background-color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;justify-content:space-between;border-radius:var(--emw--border-radius-large, 20px);max-width:fit-content}.ConsentSubmitButton,.ConsentRejectButton{font-size:1rem;font-family:var(--emw--button-typography);padding:0.4rem 1.4rem;background:var(--emw--button-background-color, #FFFFFF);border:var(--emw--button-border, 2px solid #000000);color:var(--emw--button-text-color, #000000);border-radius:var(--emw--button-border-radius, 10px);align-self:flex-end;cursor:pointer}.ConsentSubmitButton:disabled,.ConsentRejectButton:disabled{border:2px solid #ccc;color:#ccc;cursor:unset}.ButtonsWrapper{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.ButtonsWrapper button:only-child{margin-left:auto}@media screen and (max-width: 320px){.QueryReferenceContainer{font-size:0.8rem;color:var(--emw--button-text-color, #000000)}}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner .path{stroke:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}";export{m as player_user_consents,u as user_action_controller}
|
|
1
|
+
import{r as e,c as t,h as i}from"./index-5b001d30.js";const n={en:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"I want to receive Sports email marketing",sportssms:"I want to receive Sports SMS marketing",sports3rdparty:"I want to receive Sports phone call marketing",sportspush:"I want to receive Sports push notifications",sportsphonecall:"I want to receive Sports phone call marketing",sportsmarketing:"I want to receive Sports marketing materials",casinoemail:"I want to receive Casino email marketing",casinosms:"I want to receive Casino SMS marketing",casino3rdparty:"I want to receive Casino phone call marketing",casinopush:"I want to receive Casino push notifications",casinophonecall:"I want to receive Casino phone call marketing",casinomarketing:"I want to receive Casino marketing materials",virtualsportsemail:"I want to receive Virtual Sports email marketing",virtualsportssms:"I want to receive Virtual Sports SMS marketing",virtualsports3rdparty:"I want to receive Virtual Sports phone call marketing",virtualsportspush:"I want to receive Virtual Sports push notifications",virtualsportsphonecall:"I want to receive Virtual Sports phone call marketing",virtualsportsmarketing:"I want to receive Virtual Sports marketing materials",bingoemail:"I want to receive Bingo email marketing",bingosms:"I want to receive Bingo SMS marketing",bingo3rdparty:"I want to receive Bingo phone call marketing",bingopush:"I want to receive Bingo push notifications",bingophonecall:"I want to receive Bingo phone call marketing",bingomarketing:"I want to receive Bingo marketing materials"},ro:{termsAndConditions:{acceptPart1:"Accept ",acceptPart2:" platformei. Am citit şi înţeles ",acceptPart3:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",tc:"Termenii şi condiţiile"},privacyPolicy:{readUnderstandPart1:"Am citit şi înţeles ",readUnderstandPart2:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",privacy:"Politica de confidenţialitate"},sms:"Sunt de acord să primesc promoţii de marketing prin SMS.",emailmarketing:"Sunt de acord să primesc promoţii de marketing pe e-mail.",sportsemail:"Vreau să primesc marketing prin e-mail pentru sporturi",sportssms:"Vreau să primesc marketing prin SMS pentru sporturi",sports3rdparty:"Vreau să primesc marketing prin apel telefonic pentru sporturi",sportspush:"Vreau să primesc notificări push pentru Sport",sportsphonecall:"Doresc să primesc apeluri de marketing pentru Sport",sportsmarketing:"Doresc să primesc materiale de marketing pentru Sport",casinoemail:"Doresc să primesc e-mailuri de marketing pentru Cazinou",casinosms:"Doresc să primesc mesaje SMS de marketing pentru Cazinou",casino3rdparty:"Doresc să primesc apeluri de marketing pentru Cazinou",casinopush:"Doresc să primesc notificări push pentru Cazinou",casinophonecall:"Doresc să primesc apeluri de marketing pentru Cazinou",casinomarketing:"Doresc să primesc materiale de marketing pentru Cazinou",virtualsportsemail:"Doresc să primesc e-mailuri de marketing pentru Sporturi Virtuale",virtualsportssms:"Doresc să primesc mesaje SMS de marketing pentru Sporturi Virtuale",virtualsports3rdparty:"Doresc să primesc apeluri de marketing pentru Sporturi Virtuale",virtualsportspush:"Doresc să primesc notificări push pentru Sporturi Virtuale",virtualsportsphonecall:"Doresc să primesc apeluri de marketing pentru Sporturi Virtuale",virtualsportsmarketing:"Doresc să primesc materiale de marketing pentru Sporturi Virtuale",bingoemail:"Doresc să primesc e-mailuri de marketing pentru Bingo",bingosms:"Doresc să primesc mesaje SMS de marketing pentru Bingo",bingo3rdparty:"Doresc să primesc apeluri de marketing pentru Bingo",bingopush:"Doresc să primesc notificări push pentru Bingo",bingophonecall:"Doresc să primesc apeluri de marketing pentru Bingo",bingomarketing:"Doresc să primesc materiale de marketing pentru Bingo"},hr:{termsAndConditions:{acceptPart1:"Prihvaćam Opće uvjete i odredbe ",acceptPart2:"",acceptPart3:"",tcLink:"Opći uvjeti i odredbe"},privacyPolicy:{readUnderstandPart1:"Pročitao sam i razumijem Politiku Privatnosti ",readUnderstandPart2:", i potvrđujem da imam više od 18 godina",privacyLink:"Politika Privatnosti"},sms:"Želim dobivati marketinški sadržaj putem sms",emailmarketing:"Želim dobivati marketinški sadržaj putem e-maila",sportsemail:"Želim primati sportski marketing putem e-pošte",sportssms:"Želim primati sportski marketing putem SMS-a",sports3rdparty:"Želim primati sportski marketing putem telefonskog poziva",sportspush:"Želim primati push obavijesti za Sport",sportsphonecall:"Želim primati marketinške pozive vezane uz sport",sportsmarketing:"Želim primati marketinške materijale vezane uz sport",casinoemail:"Želim primati promotivne e-poruke za kasino",casinosms:"Želim primati promotivne SMS poruke za kasino",casino3rdparty:"Želim primati marketinške pozive za kasino",casinopush:"Želim primati push obavijesti za kasino",casinophonecall:"Želim primati marketinške pozive za kasino",casinomarketing:"Želim primati marketinške materijale za kasino",virtualsportsemail:"Želim primati promotivne e-poruke za virtualne sportove",virtualsportssms:"Želim primati promotivne SMS poruke za virtualne sportove",virtualsports3rdparty:"Želim primati marketinške pozive za virtualne sportove",virtualsportspush:"Želim primati push obavijesti za virtualne sportove",virtualsportsphonecall:"Želim primati marketinške pozive za virtualne sportove",virtualsportsmarketing:"Želim primati marketinške materijale za virtualne sportove",bingoemail:"Želim primati promotivne e-poruke za bingo",bingosms:"Želim primati promotivne SMS poruke za bingo",bingo3rdparty:"Želim primati marketinške pozive za bingo",bingopush:"Želim primati push obavijesti za bingo",bingophonecall:"Želim primati marketinške pozive za bingo",bingomarketing:"Želim primati marketinške materijale za bingo"},fr:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Je veux recevoir des e-mails marketing pour les sports",sportssms:"Je veux recevoir des SMS marketing pour les sports",sports3rdparty:"Je veux recevoir des appels marketing pour les sports",sportspush:"Je souhaite recevoir des notifications push pour le sport",sportsphonecall:"Je souhaite recevoir des appels de marketing pour le sport",sportsmarketing:"Je souhaite recevoir des supports marketing pour le sport",casinoemail:"Je souhaite recevoir des e-mails marketing pour le casino",casinosms:"Je souhaite recevoir des SMS marketing pour le casino",casino3rdparty:"Je souhaite recevoir des appels marketing pour le casino",casinopush:"Je souhaite recevoir des notifications push pour le casino",casinophonecall:"Je souhaite recevoir des appels marketing pour le casino",casinomarketing:"Je souhaite recevoir des supports marketing pour le casino",virtualsportsemail:"Je souhaite recevoir des e-mails marketing pour les sports virtuels",virtualsportssms:"Je souhaite recevoir des SMS marketing pour les sports virtuels",virtualsports3rdparty:"Je souhaite recevoir des appels marketing pour les sports virtuels",virtualsportspush:"Je souhaite recevoir des notifications push pour les sports virtuels",virtualsportsphonecall:"Je souhaite recevoir des appels marketing pour les sports virtuels",virtualsportsmarketing:"Je souhaite recevoir des supports marketing pour les sports virtuels",bingoemail:"Je souhaite recevoir des e-mails marketing pour le bingo",bingosms:"Je souhaite recevoir des SMS marketing pour le bingo",bingo3rdparty:"Je souhaite recevoir des appels marketing pour le bingo",bingopush:"Je souhaite recevoir des notifications push pour le bingo",bingophonecall:"Je souhaite recevoir des appels marketing pour le bingo",bingomarketing:"Je souhaite recevoir des supports marketing pour le bingo"},cs:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Chci dostávat sportovní marketingové e-maily",sportssms:"Chci dostávat sportovní marketingové SMS",sports3rdparty:"Chci dostávat sportovní marketingové telefonáty",sportspush:"Chci dostávat push oznámení o sportu",sportsphonecall:"Chci přijímat marketingové telefonáty o sportu",sportsmarketing:"Chci dostávat marketingové materiály o sportu",casinoemail:"Chci dostávat marketingové e-maily o kasinu",casinosms:"Chci dostávat marketingové SMS o kasinu",casino3rdparty:"Chci přijímat marketingové telefonáty o kasinu",casinopush:"Chci dostávat push notifikace o kasinu",casinophonecall:"Chci přijímat marketingové telefonáty o kasinu",casinomarketing:"Chci dostávat marketingové materiály o kasinu",virtualsportsemail:"Chci dostávat marketingové e-maily o virtuálních sportech",virtualsportssms:"Chci dostávat marketingové SMS o virtuálních sportech",virtualsports3rdparty:"Chci přijímat marketingové telefonáty o virtuálních sportech",virtualsportspush:"Chci dostávat push notifikace o virtuálních sportech",virtualsportsphonecall:"Chci přijímat marketingové telefonáty o virtuálních sportech",virtualsportsmarketing:"Chci dostávat marketingové materiály o virtuálních sportech",bingoemail:"Chci dostávat marketingové e-maily o bingu",bingosms:"Chci dostávat marketingové SMS o bingu",bingo3rdparty:"Chci přijímat marketingové telefonáty o bingu",bingopush:"Chci dostávat push notifikace o bingu",bingophonecall:"Chci přijímat marketingové telefonáty o bingu",bingomarketing:"Chci dostávat marketingové materiály o bingu"},de:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Ich möchte Sport-Marketing-E-Mails erhalten",sportssms:"Ich möchte Sport-Marketing-SMS erhalten",sports3rdparty:"Ich möchte Sport-Marketing-Anrufe erhalten",sportspush:"Ich möchte Push-Benachrichtigungen für Sport erhalten",sportsphonecall:"Ich möchte Marketinganrufe zum Thema Sport erhalten",sportsmarketing:"Ich möchte Marketingmaterialien zum Thema Sport erhalten",casinoemail:"Ich möchte Marketing-E-Mails zum Thema Casino erhalten",casinosms:"Ich möchte Marketing-SMS zum Thema Casino erhalten",casino3rdparty:"Ich möchte Marketinganrufe zum Thema Casino erhalten",casinopush:"Ich möchte Push-Benachrichtigungen zum Thema Casino erhalten",casinophonecall:"Ich möchte Marketinganrufe zum Thema Casino erhalten",casinomarketing:"Ich möchte Marketingmaterialien zum Thema Casino erhalten",virtualsportsemail:"Ich möchte Marketing-E-Mails zu virtuellen Sportarten erhalten",virtualsportssms:"Ich möchte Marketing-SMS zu virtuellen Sportarten erhalten",virtualsports3rdparty:"Ich möchte Marketinganrufe zu virtuellen Sportarten erhalten",virtualsportspush:"Ich möchte Push-Benachrichtigungen zu virtuellen Sportarten erhalten",virtualsportsphonecall:"Ich möchte Marketinganrufe zu virtuellen Sportarten erhalten",virtualsportsmarketing:"Ich möchte Marketingmaterialien zu virtuellen Sportarten erhalten",bingoemail:"Ich möchte Marketing-E-Mails zum Thema Bingo erhalten",bingosms:"Ich möchte Marketing-SMS zum Thema Bingo erhalten",bingo3rdparty:"Ich möchte Marketinganrufe zum Thema Bingo erhalten",bingopush:"Ich möchte Push-Benachrichtigungen zum Thema Bingo erhalten",bingophonecall:"Ich möchte Marketinganrufe zum Thema Bingo erhalten",bingomarketing:"Ich möchte Marketingmaterialien zum Thema Bingo erhalten"}},r=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])n[t]||(n[t]={}),n[t][i]=e[t][i]})),t(!0)}))})),s=(e,t,i)=>{let r=(s=n[t||"en"],e.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:null),s));var s;if(null===r)return e;if(void 0!==i)for(const[e,t]of Object.entries(i)){const i=new RegExp(`{${e}}`,"g");r=r.replace(i,t)}return r},o="__WIDGET_GLOBAL_STYLE_CACHE__";function a(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function c(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function l(e,t,i,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return i=function(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(i.innerHTML=t,e.appendChild(i))}))}(e,t),i;window[o]||(window[o]={}),i=function(e,t){return window.emMessageBus.subscribe(t,(i=>{if(!e)return;const n=e.getRootNode(),r=window[o];let s=r[t]&&r[t].sheet;s?r[t].refCount=r[t].refCount+1:(s=new CSSStyleSheet,s.replaceSync(i),r[t]={sheet:s,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(s)||(n.adoptedStyleSheets=[...a,s])}))}(e,t);const r=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[o][t]){const e=window[o][t];e.refCount>1?e.refCount=e.refCount-1:delete window[o][t]}r()},i}const p=class{constructor(i){e(this,i),this.userLegislationConsent=t(this,"userLegislationConsent",7),this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.mbSource=void 0,this.textContent=""}handleNewTranslations(){r(this.translationUrl)}handleStylingUrlChange(e,t){e!==t&&c(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl.length>2&&await r(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(){const e=this.mandatory?i("span",{class:"MandatoryItem"},"*"):"";if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)),s("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("termsAndConditions.acceptPart3",this.lang)," ",e);if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang))," ",e);if("privacypolicy"===this.consentType)return i("p",null,s("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("privacyPolicy.readUnderstandPart2",this.lang)," ",e)}return i("p",null,s(this.consentType,this.lang)," ",e)}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"6b3c14e5e45334d7d52bfaa91e51a7fd3804e433",ref:e=>this.stylingContainer=e},i("p",{key:"df5fa47552931f2b9ab2b6bc18c92d2c8fdb47aa",class:"ConsentTitle"},this.consentTitle),i("label",{key:"9e73eeeb8baeb35f11c073c4466b62aa75875fc8",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"a8270c4eec7774cbe3fc6aba0625bac721ff648b",ref:e=>this.checkboxInput=e,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent()))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}}};p.style=':host{display:block;font-family:inherit}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:center}.MandatoryItem{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emw--color-primary), #52d004;font-weight:bold}#userConsent{appearance:none;width:18px;border-radius:3px;height:18px;border:1px solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;cursor:pointer;position:relative}#userConsent:checked{background-color:var(--emw--color-white), #FFFFFF;border:1px solid var(--emw--color-black, #000000)}#userConsent:checked::after{content:"";position:absolute;width:4px;height:8px;border:solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;border-width:0 2px 2px 0;top:2px;left:5px;transform:rotate(45deg)}';const m={en:{termsAndConditionsTitle:"Terms and Conditions",smsTitle:"SMS marketing",emailMarketingTitle:"Email marketing",privacyPolicyTitle:"Privacy Policy",userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out.",consentUpdateSuccess:"Consent update successful!",serverNotResponding:"Server might not be responding"},"en-us":{termsAndConditionsTitle:"Terms and Conditions",smsTitle:"SMS marketing",emailMarketingTitle:"Email marketing",privacyPolicyTitle:"Privacy Policy",userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out.",consentUpdateSuccess:"Consent update successful!",serverNotResponding:"Server might not be responding"},ro:{termsAndConditionsTitle:"Termeni și Condiții",smsTitle:"Marketing prin SMS",emailMarketingTitle:"Marketing prin Email",privacyPolicyTitle:"Politica de Confidențialitate",userNoticeText:"Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele",submitButtonText:"Trimite",rejectButtonText:"Respinge",rejectText:"Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.",consentUpdateSuccess:"Actualizare consimțământ reușită!",serverNotResponding:"Serverul s-ar putea să nu răspundă"},hr:{termsAndConditionsTitle:"Opći uvjeti i odredbe",smsTitle:"SMS makretinški sadržaj",emailMarketingTitle:"E-mail makretinški sadržaj",privacyPolicyTitle:"Politika Privatnosti",userNoticeText:"Prije nego što možete nastaviti, morate pristati na sljedeće",submitButtonText:"Pošalji",rejectButtonText:"Odbij",rejectText:"Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.",consentUpdateSuccess:"Ažuriranje pristanka uspješno!",serverNotResponding:"Poslužitelj možda ne odgovara"},fr:{termsAndConditionsTitle:"Termes et Conditions",smsTitle:"Marketing par SMS",emailMarketingTitle:"Marketing par Email",privacyPolicyTitle:"Politique de Confidentialité",userNoticeText:"Avant de continuer, vous devez consentir aux éléments suivants",submitButtonText:"Soumettre",rejectButtonText:"Rejeter",rejectText:"Le rejet des nouveaux consentements entraînera l'impossibilité de continuer le processus de connexion et vous serez déconnecté.",consentUpdateSuccess:"Mise à jour du consentement réussie!",serverNotResponding:"Le serveur ne répond peut-être pas"},cs:{termsAndConditionsTitle:"Podmínky a ujednání",smsTitle:"SMS marketing",emailMarketingTitle:"Emailový marketing",privacyPolicyTitle:"Zásady ochrany osobních údajů",userNoticeText:"Než budete moci pokračovat, musíte souhlasit s následujícím",submitButtonText:"Odeslat",rejectButtonText:"Odmítnout",rejectText:"Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.",consentUpdateSuccess:"Aktualizace souhlasu proběhla úspěšně!",serverNotResponding:"Server možná neodpovídá"},de:{termsAndConditionsTitle:"Allgemeine Geschäftsbedingungen",smsTitle:"SMS-Marketing",emailMarketingTitle:"E-Mail-Marketing",privacyPolicyTitle:"Datenschutzrichtlinie",userNoticeText:"Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen",submitButtonText:"Absenden",rejectButtonText:"Ablehnen",rejectText:"Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.",consentUpdateSuccess:"Zustimmung erfolgreich aktualisiert!",serverNotResponding:"Der Server antwortet möglicherweise nicht"},es:{termsAndConditionsTitle:"Términos y Condiciones",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidad",userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.",consentUpdateSuccess:"¡Actualización del consentimiento exitosa!",serverNotResponding:"El servidor podría no estar respondiendo"},pt:{termsAndConditionsTitle:"Termos e Condições",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidade",userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.",consentUpdateSuccess:"Atualização de consentimento bem-sucedida!",serverNotResponding:"O servidor pode não estar respondendo"},"es-mx":{termsAndConditionsTitle:"Términos y Condiciones",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidad",userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.",consentUpdateSuccess:"¡Actualización del consentimiento exitosa!",serverNotResponding:"El servidor podría no estar respondiendo"},"pt-br":{termsAndConditionsTitle:"Termos e Condições",smsTitle:"Marketing por SMS",emailMarketingTitle:"Marketing por Email",privacyPolicyTitle:"Política de Privacidade",userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.",consentUpdateSuccess:"Atualização de consentimento bem-sucedida!",serverNotResponding:"O servidor pode não estar respondendo"}},d=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{m[t]||(m[t]={});for(let i in e[t])m[t][i]=e[t][i]})),t(!0)}))})),u=(e,t,i)=>{let n=m[void 0!==t&&t in m?t:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");n=n.replace(i,t)}return n},h=class{constructor(t){e(this,t),this.mandatoryActions=["termsandconditions","privacypolicy"],this.userActions=[],this.getConsentTitleMethods={termsandconditions:()=>u("termsAndConditionsTitle",this.lang),sms:()=>u("smsTitle",this.lang),emailmarketing:()=>u("emailMarketingTitle",this.lang),privacypolicy:()=>u("privacyPolicyTitle",this.lang)},this.handleApplyClick=()=>{this.queryFired=!0},this.handleReject=()=>{const e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",this.userSession),fetch(`${this.endpoint}/v1/player/session/player`,{method:"DELETE",headers:e}).then((()=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),((e,t={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:"logged_out",data:t},bubbles:!0,composed:!0});document.dispatchEvent(i)})(0,{})}))},this.endpoint=void 0,this.userSession=void 0,this.userId=void 0,this.lang="en",this.includeSubmitButton=void 0,this.includeRejectButton=void 0,this.includeRejectText=void 0,this.gmVersion="",this.translationUrl="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.queryFired=!1,this.readyActionsCount=0,this.activeUserActions=[],this.userActionsValidated=!0,this.receivedQueryResponses=0,this.isLoading=!0,this.mandatoryActionsChecked=0,this.mandatoryItems=void 0}handleNewTranslations(){d(this.translationUrl)}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)}handleQueryResponse(){this.receivedQueryResponses===this.activeUserActions.length&&this.updateUserConsents()}userLegislationConsentHandler(e){const t=e.detail.type,i=e.detail.value;this.mandatoryActions.includes(t)&&!1===this.queryFired&&(!0===i?this.mandatoryActionsChecked++:this.mandatoryActionsChecked--),this.queryFired&&(this.userActions.push(Object.assign({tagCode:t,status:(e=>"gm16"===this.gmVersion?e?1:0:e?"Accepted":"Denied")(i)},"gm16"===this.gmVersion&&{note:""})),this.receivedQueryResponses++)}determineUserActionsCore(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/consent/`),t=new Headers;t.append("X-SessionId",this.userSession),fetch(e.href,{method:"GET",headers:t}).then((e=>e.json())).then((e=>{e.items.forEach((e=>{"Expired"===e.status&&this.activeUserActions.push(e.tagCode)}))})).catch((e=>{console.error("Error fetching data:",e)})).finally((()=>{this.calcMandatoryActions(),window.postMessage({type:"UserActionsExists",displayUserActions:this.mandatoryItems>0},window.location.href),this.isLoading=!1}))}determineUserActions16(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents/`),t=new Headers;t.append("X-SessionId",this.userSession),fetch(e.href,{method:"GET",headers:t}).then((e=>e.json())).then((e=>{e.consents.forEach((e=>{2===e.status&&"pepconsent"!==e.tagCode&&this.activeUserActions.push(e.tagCode)}))})).catch((e=>{console.error("Error fetching data:",e)})).finally((()=>{this.calcMandatoryActions(),window.postMessage({type:"UserActionsExists",displayUserActions:this.mandatoryItems>0},window.location.href),this.isLoading=!1}))}updateUserConsents(){const e="gmcore"===this.gmVersion?new URL(`${this.endpoint}/v1/player/${this.userId}/consent/`):new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents/`);let t={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-SessionId":`${this.userSession}`},body:JSON.stringify({consents:this.userActions})};fetch(e.href,t).then((e=>e.json())).then((()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:u("consentUpdateSuccess",this.lang)}},window.location.href)})).catch((()=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u("serverNotResponding",this.lang)}},window.location.href)})).finally((()=>{window.postMessage({type:"UserActionsCompleted"},window.location.href)}))}async componentWillLoad(){switch(this.gmVersion){case"gmcore":this.determineUserActionsCore();break;case"gm16":this.determineUserActions16()}this.translationUrl.length>2&&await d(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}calcMandatoryActions(){this.mandatoryItems=0,this.mandatoryActions.forEach((e=>this.activeUserActions.includes(e)&&this.mandatoryItems++))}render(){if(0!==this.mandatoryItems)return this.userActionsValidated=this.mandatoryActionsChecked===this.mandatoryItems,i("div",{class:"QueryReferenceContainer",ref:e=>this.stylingContainer=e},this.isLoading?i("div",null,i("slot",{name:"spinner"}),i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"}))):i("div",{class:"UserActionController"},i("h2",{class:"UserConsentNotice"},u("userNoticeText",this.lang)),i("div",{class:"PlayerLegislationWrapper"},this.activeUserActions.map((e=>{var t,n;return i("slot",{name:e},i("player-user-consents",{lang:this.lang,"gm-version":this.gmVersion,"translation-url":this.translationUrl,consentType:e,consentTitle:null===(n=(t=this.getConsentTitleMethods)[e])||void 0===n?void 0:n.call(t),queried:this.queryFired,mandatory:this.mandatoryActions.includes(e),"client-styling-url":this.clientStylingUrl,"mb-source":this.mbSource,"client-styling":this.clientStyling}))}))),i("div",{class:"ButtonsWrapper"},this.includeRejectButton&&i("button",{class:"ConsentRejectButton",onClick:this.handleReject},u("rejectButtonText",this.lang)),this.includeSubmitButton&&i("button",{class:"ConsentSubmitButton",disabled:!this.userActionsValidated,onClick:this.handleApplyClick},u("submitButtonText",this.lang))),this.includeRejectText&&i("p",{class:"RejectText"},u("rejectText",this.lang))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],receivedQueryResponses:["handleQueryResponse"]}}};h.style=":host{display:block}.QueryReferenceContainer{height:100%;width:100%}.UserConsentNotice{font-size:1.2rem;font-weight:200;text-align:center}.CloseButton{width:25px;height:25px;align-self:flex-end}.UserActionController{font-family:inherit;font-weight:100;height:100%;padding:1rem 1.5rem 2rem;background-color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;justify-content:space-between;border-radius:var(--emw--border-radius-large, 20px);max-width:fit-content}.ConsentSubmitButton,.ConsentRejectButton{font-size:1rem;font-family:var(--emw--button-typography);padding:0.4rem 1.4rem;background:var(--emw--button-background-color, #FFFFFF);border:var(--emw--button-border, 2px solid #000000);color:var(--emw--button-text-color, #000000);border-radius:var(--emw--button-border-radius, 10px);align-self:flex-end;cursor:pointer}.ConsentSubmitButton:disabled,.ConsentRejectButton:disabled{border:2px solid #ccc;color:#ccc;cursor:unset}.ButtonsWrapper{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.ButtonsWrapper button:only-child{margin-left:auto}@media screen and (max-width: 320px){.QueryReferenceContainer{font-size:0.8rem;color:var(--emw--button-text-color, #000000)}}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner .path{stroke:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}";export{p as player_user_consents,h as user_action_controller}
|