@everymatrix/user-action-controller 1.66.2 → 1.67.3

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.
Files changed (14) hide show
  1. package/dist/cjs/player-user-consents_2.cjs.entry.js +46 -10
  2. package/dist/collection/components/user-action-controller/user-action-controller.js +4 -4
  3. package/dist/esm/player-user-consents_2.entry.js +46 -10
  4. package/dist/user-action-controller/player-user-consents_2.entry.js +1 -1
  5. package/package.json +1 -1
  6. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  7. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +0 -0
  8. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +0 -0
  9. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/storybook/main.d.ts +0 -0
  10. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/storybook/preview.d.ts +0 -0
  11. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/index.d.ts +0 -0
  12. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  13. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  14. /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -23,9 +23,15 @@ const TRANSLATIONS$1 = {
23
23
  sportsemail: "I want to receive Sports email marketing",
24
24
  sportssms: "I want to receive Sports SMS marketing",
25
25
  sports3rdparty: "I want to receive Sports phone call marketing",
26
+ sportspush: "I want to receive Sports push notifications",
26
27
  casinoemail: "I want to receive Casino email marketing",
27
28
  casinosms: "I want to receive Casino SMS marketing",
28
- casino3rdparty: "I want to receive Casino phone call marketing"
29
+ casino3rdparty: "I want to receive Casino phone call marketing",
30
+ casinopush: "I want to receive Casino push notifications",
31
+ virtualsportsemail: "I want to receive Virtual Sports email marketing",
32
+ virtualsportssms: "I want to receive Virtual Sports SMS marketing",
33
+ virtualsports3rdparty: "I want to receive Virtual Sports phone call marketing",
34
+ virtualsportspush: "I want to receive Virtual Sports push notifications"
29
35
  },
30
36
  ro: {
31
37
  termsAndConditions: {
@@ -44,9 +50,15 @@ const TRANSLATIONS$1 = {
44
50
  sportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi",
45
51
  sportssms: "Vreau să primesc marketing prin SMS pentru sporturi",
46
52
  sports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi",
53
+ sportspush: "Vreau să primesc notificări push pentru Sport",
47
54
  casinoemail: "Vreau să primesc marketing prin e-mail pentru cazinou",
48
55
  casinosms: "Vreau să primesc marketing prin SMS pentru cazinou",
49
- casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou"
56
+ casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou",
57
+ casinopush: "Vreau să primesc notificări push pentru Cazinou",
58
+ virtualsportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi virtuale",
59
+ virtualsportssms: "Vreau să primesc marketing prin SMS pentru sporturi virtuale",
60
+ virtualsports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale",
61
+ virtualsportspush: "Vreau să primesc notificări push pentru sporturi virtuale"
50
62
  },
51
63
  hr: {
52
64
  termsAndConditions: {
@@ -65,9 +77,15 @@ const TRANSLATIONS$1 = {
65
77
  sportsemail: "Želim primati sportski marketing putem e-pošte",
66
78
  sportssms: "Želim primati sportski marketing putem SMS-a",
67
79
  sports3rdparty: "Želim primati sportski marketing putem telefonskog poziva",
80
+ sportspush: "Želim primati push obavijesti za Sport",
68
81
  casinoemail: "Želim primati kasino marketing putem e-pošte",
69
82
  casinosms: "Želim primati kasino marketing putem SMS-a",
70
- casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva"
83
+ casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva",
84
+ casinopush: "Želim primati push obavijesti za Kasino",
85
+ virtualsportsemail: "Želim primati marketing putem e-pošte za virtualne sportove",
86
+ virtualsportssms: "Želim primati marketing putem SMS-a za virtualne sportove",
87
+ virtualsports3rdparty: "Želim primati marketing putem telefonskog poziva za virtualne sportove",
88
+ virtualsportspush: "Želim primati push obavijesti za Virtualne sportove"
71
89
  },
72
90
  fr: {
73
91
  termsAndConditions: {
@@ -86,9 +104,15 @@ const TRANSLATIONS$1 = {
86
104
  sportsemail: "Je veux recevoir des e-mails marketing pour les sports",
87
105
  sportssms: "Je veux recevoir des SMS marketing pour les sports",
88
106
  sports3rdparty: "Je veux recevoir des appels marketing pour les sports",
107
+ sportspush: "Je souhaite recevoir des notifications push pour le sport",
89
108
  casinoemail: "Je veux recevoir des e-mails marketing pour le casino",
90
109
  casinosms: "Je veux recevoir des SMS marketing pour le casino",
91
- casino3rdparty: "Je veux recevoir des appels marketing pour le casino"
110
+ casino3rdparty: "Je veux recevoir des appels marketing pour le casino",
111
+ casinopush: "Je souhaite recevoir des notifications push pour le casino",
112
+ virtualsportsemail: "Je veux recevoir des e-mails marketing pour les sports virtuels",
113
+ virtualsportssms: "Je veux recevoir des SMS marketing pour les sports virtuels",
114
+ virtualsports3rdparty: "Je veux recevoir des appels marketing pour les sports virtuels",
115
+ virtualsportspush: "Je souhaite recevoir des notifications push pour les sports virtuels"
92
116
  },
93
117
  cs: {
94
118
  termsAndConditions: {
@@ -107,9 +131,15 @@ const TRANSLATIONS$1 = {
107
131
  sportsemail: "Chci dostávat sportovní marketingové e-maily",
108
132
  sportssms: "Chci dostávat sportovní marketingové SMS",
109
133
  sports3rdparty: "Chci dostávat sportovní marketingové telefonáty",
134
+ sportspush: "Chci dostávat push oznámení o sportu",
110
135
  casinoemail: "Chci dostávat marketingové e-maily pro kasino",
111
136
  casinosms: "Chci dostávat marketingové SMS pro kasino",
112
- casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino"
137
+ casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino",
138
+ casinopush: "Chci dostávat push oznámení o kasinu",
139
+ virtualsportsemail: "Chci dostávat marketingové e-maily pro virtuální sporty",
140
+ virtualsportssms: "Chci dostávat marketingové SMS pro virtuální sporty",
141
+ virtualsports3rdparty: "Chci dostávat marketingové telefonáty pro virtuální sporty",
142
+ virtualsportspush: "Chci dostávat push oznámení o virtuálních sportech"
113
143
  },
114
144
  de: {
115
145
  termsAndConditions: {
@@ -128,9 +158,15 @@ const TRANSLATIONS$1 = {
128
158
  sportsemail: "Ich möchte Sport-Marketing-E-Mails erhalten",
129
159
  sportssms: "Ich möchte Sport-Marketing-SMS erhalten",
130
160
  sports3rdparty: "Ich möchte Sport-Marketing-Anrufe erhalten",
161
+ sportspush: "Ich möchte Push-Benachrichtigungen für Sport erhalten",
131
162
  casinoemail: "Ich möchte Casino-Marketing-E-Mails erhalten",
132
163
  casinosms: "Ich möchte Casino-Marketing-SMS erhalten",
133
- casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten"
164
+ casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten",
165
+ casinopush: "Ich möchte Push-Benachrichtigungen für Casino erhalten",
166
+ virtualsportsemail: "Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten",
167
+ virtualsportssms: "Ich möchte Marketing-SMS für virtuelle Sportarten erhalten",
168
+ virtualsports3rdparty: "Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten",
169
+ virtualsportspush: "Ich möchte Push-Benachrichtigungen für virtuelle Sportarten erhalten"
134
170
  },
135
171
  };
136
172
  const getTranslations$1 = (url) => {
@@ -563,7 +599,7 @@ const UserActionController = class {
563
599
  }
564
600
  }
565
601
  determineUserActionsCore() {
566
- const url = new URL(`${this.endpoint}/v1/player/${this.userId}/consent`);
602
+ const url = new URL(`/v1/player/${this.userId}/consent/`, this.endpoint);
567
603
  const headers = new Headers();
568
604
  headers.append('X-SessionId', this.userSession);
569
605
  const options = {
@@ -589,7 +625,7 @@ const UserActionController = class {
589
625
  });
590
626
  }
591
627
  determineUserActions16() {
592
- const url = new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
628
+ const url = new URL(`/v1/player/${this.userId}/legislation/consents/`, this.endpoint);
593
629
  const headers = new Headers();
594
630
  headers.append('X-SessionId', this.userSession);
595
631
  const options = {
@@ -616,8 +652,8 @@ const UserActionController = class {
616
652
  }
617
653
  updateUserConsents() {
618
654
  const url = (this.gmVersion === 'gmcore')
619
- ? new URL(`${this.endpoint}/v1/player/${this.userId}/consent`)
620
- : new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
655
+ ? new URL(`/v1/player/${this.userId}/consent/`, this.endpoint)
656
+ : new URL(`/v1/player/${this.userId}/legislation/consents/`, this.endpoint);
621
657
  const body = {
622
658
  consents: this.userActions
623
659
  };
@@ -90,7 +90,7 @@ export class UserActionController {
90
90
  }
91
91
  }
92
92
  determineUserActionsCore() {
93
- const url = new URL(`${this.endpoint}/v1/player/${this.userId}/consent`);
93
+ const url = new URL(`/v1/player/${this.userId}/consent/`, this.endpoint);
94
94
  const headers = new Headers();
95
95
  headers.append('X-SessionId', this.userSession);
96
96
  const options = {
@@ -116,7 +116,7 @@ export class UserActionController {
116
116
  });
117
117
  }
118
118
  determineUserActions16() {
119
- const url = new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
119
+ const url = new URL(`/v1/player/${this.userId}/legislation/consents/`, this.endpoint);
120
120
  const headers = new Headers();
121
121
  headers.append('X-SessionId', this.userSession);
122
122
  const options = {
@@ -143,8 +143,8 @@ export class UserActionController {
143
143
  }
144
144
  updateUserConsents() {
145
145
  const url = (this.gmVersion === 'gmcore')
146
- ? new URL(`${this.endpoint}/v1/player/${this.userId}/consent`)
147
- : new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
146
+ ? new URL(`/v1/player/${this.userId}/consent/`, this.endpoint)
147
+ : new URL(`/v1/player/${this.userId}/legislation/consents/`, this.endpoint);
148
148
  const body = {
149
149
  consents: this.userActions
150
150
  };
@@ -19,9 +19,15 @@ const TRANSLATIONS$1 = {
19
19
  sportsemail: "I want to receive Sports email marketing",
20
20
  sportssms: "I want to receive Sports SMS marketing",
21
21
  sports3rdparty: "I want to receive Sports phone call marketing",
22
+ sportspush: "I want to receive Sports push notifications",
22
23
  casinoemail: "I want to receive Casino email marketing",
23
24
  casinosms: "I want to receive Casino SMS marketing",
24
- casino3rdparty: "I want to receive Casino phone call marketing"
25
+ casino3rdparty: "I want to receive Casino phone call marketing",
26
+ casinopush: "I want to receive Casino push notifications",
27
+ virtualsportsemail: "I want to receive Virtual Sports email marketing",
28
+ virtualsportssms: "I want to receive Virtual Sports SMS marketing",
29
+ virtualsports3rdparty: "I want to receive Virtual Sports phone call marketing",
30
+ virtualsportspush: "I want to receive Virtual Sports push notifications"
25
31
  },
26
32
  ro: {
27
33
  termsAndConditions: {
@@ -40,9 +46,15 @@ const TRANSLATIONS$1 = {
40
46
  sportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi",
41
47
  sportssms: "Vreau să primesc marketing prin SMS pentru sporturi",
42
48
  sports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi",
49
+ sportspush: "Vreau să primesc notificări push pentru Sport",
43
50
  casinoemail: "Vreau să primesc marketing prin e-mail pentru cazinou",
44
51
  casinosms: "Vreau să primesc marketing prin SMS pentru cazinou",
45
- casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou"
52
+ casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou",
53
+ casinopush: "Vreau să primesc notificări push pentru Cazinou",
54
+ virtualsportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi virtuale",
55
+ virtualsportssms: "Vreau să primesc marketing prin SMS pentru sporturi virtuale",
56
+ virtualsports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale",
57
+ virtualsportspush: "Vreau să primesc notificări push pentru sporturi virtuale"
46
58
  },
47
59
  hr: {
48
60
  termsAndConditions: {
@@ -61,9 +73,15 @@ const TRANSLATIONS$1 = {
61
73
  sportsemail: "Želim primati sportski marketing putem e-pošte",
62
74
  sportssms: "Želim primati sportski marketing putem SMS-a",
63
75
  sports3rdparty: "Želim primati sportski marketing putem telefonskog poziva",
76
+ sportspush: "Želim primati push obavijesti za Sport",
64
77
  casinoemail: "Želim primati kasino marketing putem e-pošte",
65
78
  casinosms: "Želim primati kasino marketing putem SMS-a",
66
- casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva"
79
+ casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva",
80
+ casinopush: "Želim primati push obavijesti za Kasino",
81
+ virtualsportsemail: "Želim primati marketing putem e-pošte za virtualne sportove",
82
+ virtualsportssms: "Želim primati marketing putem SMS-a za virtualne sportove",
83
+ virtualsports3rdparty: "Želim primati marketing putem telefonskog poziva za virtualne sportove",
84
+ virtualsportspush: "Želim primati push obavijesti za Virtualne sportove"
67
85
  },
68
86
  fr: {
69
87
  termsAndConditions: {
@@ -82,9 +100,15 @@ const TRANSLATIONS$1 = {
82
100
  sportsemail: "Je veux recevoir des e-mails marketing pour les sports",
83
101
  sportssms: "Je veux recevoir des SMS marketing pour les sports",
84
102
  sports3rdparty: "Je veux recevoir des appels marketing pour les sports",
103
+ sportspush: "Je souhaite recevoir des notifications push pour le sport",
85
104
  casinoemail: "Je veux recevoir des e-mails marketing pour le casino",
86
105
  casinosms: "Je veux recevoir des SMS marketing pour le casino",
87
- casino3rdparty: "Je veux recevoir des appels marketing pour le casino"
106
+ casino3rdparty: "Je veux recevoir des appels marketing pour le casino",
107
+ casinopush: "Je souhaite recevoir des notifications push pour le casino",
108
+ virtualsportsemail: "Je veux recevoir des e-mails marketing pour les sports virtuels",
109
+ virtualsportssms: "Je veux recevoir des SMS marketing pour les sports virtuels",
110
+ virtualsports3rdparty: "Je veux recevoir des appels marketing pour les sports virtuels",
111
+ virtualsportspush: "Je souhaite recevoir des notifications push pour les sports virtuels"
88
112
  },
89
113
  cs: {
90
114
  termsAndConditions: {
@@ -103,9 +127,15 @@ const TRANSLATIONS$1 = {
103
127
  sportsemail: "Chci dostávat sportovní marketingové e-maily",
104
128
  sportssms: "Chci dostávat sportovní marketingové SMS",
105
129
  sports3rdparty: "Chci dostávat sportovní marketingové telefonáty",
130
+ sportspush: "Chci dostávat push oznámení o sportu",
106
131
  casinoemail: "Chci dostávat marketingové e-maily pro kasino",
107
132
  casinosms: "Chci dostávat marketingové SMS pro kasino",
108
- casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino"
133
+ casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino",
134
+ casinopush: "Chci dostávat push oznámení o kasinu",
135
+ virtualsportsemail: "Chci dostávat marketingové e-maily pro virtuální sporty",
136
+ virtualsportssms: "Chci dostávat marketingové SMS pro virtuální sporty",
137
+ virtualsports3rdparty: "Chci dostávat marketingové telefonáty pro virtuální sporty",
138
+ virtualsportspush: "Chci dostávat push oznámení o virtuálních sportech"
109
139
  },
110
140
  de: {
111
141
  termsAndConditions: {
@@ -124,9 +154,15 @@ const TRANSLATIONS$1 = {
124
154
  sportsemail: "Ich möchte Sport-Marketing-E-Mails erhalten",
125
155
  sportssms: "Ich möchte Sport-Marketing-SMS erhalten",
126
156
  sports3rdparty: "Ich möchte Sport-Marketing-Anrufe erhalten",
157
+ sportspush: "Ich möchte Push-Benachrichtigungen für Sport erhalten",
127
158
  casinoemail: "Ich möchte Casino-Marketing-E-Mails erhalten",
128
159
  casinosms: "Ich möchte Casino-Marketing-SMS erhalten",
129
- casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten"
160
+ casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten",
161
+ casinopush: "Ich möchte Push-Benachrichtigungen für Casino erhalten",
162
+ virtualsportsemail: "Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten",
163
+ virtualsportssms: "Ich möchte Marketing-SMS für virtuelle Sportarten erhalten",
164
+ virtualsports3rdparty: "Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten",
165
+ virtualsportspush: "Ich möchte Push-Benachrichtigungen für virtuelle Sportarten erhalten"
130
166
  },
131
167
  };
132
168
  const getTranslations$1 = (url) => {
@@ -559,7 +595,7 @@ const UserActionController = class {
559
595
  }
560
596
  }
561
597
  determineUserActionsCore() {
562
- const url = new URL(`${this.endpoint}/v1/player/${this.userId}/consent`);
598
+ const url = new URL(`/v1/player/${this.userId}/consent/`, this.endpoint);
563
599
  const headers = new Headers();
564
600
  headers.append('X-SessionId', this.userSession);
565
601
  const options = {
@@ -585,7 +621,7 @@ const UserActionController = class {
585
621
  });
586
622
  }
587
623
  determineUserActions16() {
588
- const url = new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
624
+ const url = new URL(`/v1/player/${this.userId}/legislation/consents/`, this.endpoint);
589
625
  const headers = new Headers();
590
626
  headers.append('X-SessionId', this.userSession);
591
627
  const options = {
@@ -612,8 +648,8 @@ const UserActionController = class {
612
648
  }
613
649
  updateUserConsents() {
614
650
  const url = (this.gmVersion === 'gmcore')
615
- ? new URL(`${this.endpoint}/v1/player/${this.userId}/consent`)
616
- : new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
651
+ ? new URL(`/v1/player/${this.userId}/consent/`, this.endpoint)
652
+ : new URL(`/v1/player/${this.userId}/legislation/consents/`, this.endpoint);
617
653
  const body = {
618
654
  consents: this.userActions
619
655
  };
@@ -1 +1 @@
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",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"},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",casinoemail:"Vreau să primesc marketing prin e-mail pentru cazinou",casinosms:"Vreau să primesc marketing prin SMS pentru cazinou",casino3rdparty:"Vreau să primesc marketing prin apel telefonic pentru cazinou"},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",casinoemail:"Želim primati kasino marketing putem e-pošte",casinosms:"Želim primati kasino marketing putem SMS-a",casino3rdparty:"Želim primati kasino marketing putem telefonskog poziva"},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",casinoemail:"Je veux recevoir des e-mails marketing pour le casino",casinosms:"Je veux recevoir des SMS marketing pour le casino",casino3rdparty:"Je veux recevoir des appels marketing pour le casino"},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",casinoemail:"Chci dostávat marketingové e-maily pro kasino",casinosms:"Chci dostávat marketingové SMS pro kasino",casino3rdparty:"Chci dostávat marketingové telefonáty pro kasino"},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",casinoemail:"Ich möchte Casino-Marketing-E-Mails erhalten",casinosms:"Ich möchte Casino-Marketing-SMS erhalten",casino3rdparty:"Ich möchte Casino-Marketing-Anrufe erhalten"}},s=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)}))})),o=(e,t,i)=>{let s=(o=n[t||"en"],e.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:null),o));var o;if(null===s)return e;if(void 0!==i)for(const[e,t]of Object.entries(i)){const i=new RegExp(`{${e}}`,"g");s=s.replace(i,t)}return s};function r(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function a(e,t){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 c(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}const d=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(){s(this.translationUrl)}handleStylingUrlChange(e,t){e!==t&&a(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl.length>2&&await s(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?c(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,o("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},o("termsAndConditions.tcLink",this.lang)),o("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},o("privacyPolicy.privacyLink",this.lang)),o("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,o("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},o("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return i("p",null,o("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},o("privacyPolicy.privacyLink",this.lang)),o("privacyPolicy.readUnderstandPart2",this.lang))}return i("p",null,o(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"aba04e96251f2f0febe96883b931193fb5ca8c94",ref:e=>this.stylingContainer=e},i("p",{key:"d3f0cbeb5b45b4538462a53c41ab041b176a7c26",class:"ConsentTitle"},this.consentTitle),i("label",{key:"800ab8d45e87b075402c3178e60a16866d0321d4",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"919c15c353a8146661eca2870e7a63f7c689953e",ref:e=>this.checkboxInput=e,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&i("span",{key:"f7126adee1ba5540837da4b852961d08a9eae857",class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}}};d.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 l={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."}},m=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{l[t]||(l[t]={});for(let i in e[t])l[t][i]=e[t][i]})),t(!0)}))})),h=(e,t,i)=>{let n=l[void 0!==t&&t in l?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},p=class{constructor(t){e(this,t),this.mandatoryActions=["termsandconditions","privacypolicy"],this.userActions=[],this.consentTitles={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(){m(this.translationUrl)}handleClientStylingChange(e,t){e!=t&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&a(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 m(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?c(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(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=>i("slot",{name:e},i("player-user-consents",{lang:this.lang,"gm-version":this.gmVersion,"translation-url":this.translationUrl,consentType:e,consentTitle:this.consentTitles[e],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"]}}};p.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{d as player_user_consents,p as user_action_controller}
1
+ import{r as e,c as t,h as i}from"./index-5b001d30.js";const s={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",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",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"},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",casinoemail:"Vreau să primesc marketing prin e-mail pentru cazinou",casinosms:"Vreau să primesc marketing prin SMS pentru cazinou",casino3rdparty:"Vreau să primesc marketing prin apel telefonic pentru cazinou",casinopush:"Vreau să primesc notificări push pentru Cazinou",virtualsportsemail:"Vreau să primesc marketing prin e-mail pentru sporturi virtuale",virtualsportssms:"Vreau să primesc marketing prin SMS pentru sporturi virtuale",virtualsports3rdparty:"Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale",virtualsportspush:"Vreau să primesc notificări push pentru sporturi virtuale"},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",casinoemail:"Želim primati kasino marketing putem e-pošte",casinosms:"Želim primati kasino marketing putem SMS-a",casino3rdparty:"Želim primati kasino marketing putem telefonskog poziva",casinopush:"Želim primati push obavijesti za Kasino",virtualsportsemail:"Želim primati marketing putem e-pošte za virtualne sportove",virtualsportssms:"Želim primati marketing putem SMS-a za virtualne sportove",virtualsports3rdparty:"Želim primati marketing putem telefonskog poziva za virtualne sportove",virtualsportspush:"Želim primati push obavijesti za Virtualne sportove"},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",casinoemail:"Je veux recevoir des e-mails marketing pour le casino",casinosms:"Je veux recevoir des SMS marketing pour le casino",casino3rdparty:"Je veux recevoir des appels marketing pour le casino",casinopush:"Je souhaite recevoir des notifications push pour le casino",virtualsportsemail:"Je veux recevoir des e-mails marketing pour les sports virtuels",virtualsportssms:"Je veux recevoir des SMS marketing pour les sports virtuels",virtualsports3rdparty:"Je veux recevoir des appels marketing pour les sports virtuels",virtualsportspush:"Je souhaite recevoir des notifications push pour les sports virtuels"},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",casinoemail:"Chci dostávat marketingové e-maily pro kasino",casinosms:"Chci dostávat marketingové SMS pro kasino",casino3rdparty:"Chci dostávat marketingové telefonáty pro kasino",casinopush:"Chci dostávat push oznámení o kasinu",virtualsportsemail:"Chci dostávat marketingové e-maily pro virtuální sporty",virtualsportssms:"Chci dostávat marketingové SMS pro virtuální sporty",virtualsports3rdparty:"Chci dostávat marketingové telefonáty pro virtuální sporty",virtualsportspush:"Chci dostávat push oznámení o virtuálních sportech"},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",casinoemail:"Ich möchte Casino-Marketing-E-Mails erhalten",casinosms:"Ich möchte Casino-Marketing-SMS erhalten",casino3rdparty:"Ich möchte Casino-Marketing-Anrufe erhalten",casinopush:"Ich möchte Push-Benachrichtigungen für Casino erhalten",virtualsportsemail:"Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten",virtualsportssms:"Ich möchte Marketing-SMS für virtuelle Sportarten erhalten",virtualsports3rdparty:"Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten",virtualsportspush:"Ich möchte Push-Benachrichtigungen für virtuelle Sportarten 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])s[t]||(s[t]={}),s[t][i]=e[t][i]})),t(!0)}))})),r=(e,t,i)=>{let n=(r=s[t||"en"],e.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:null),r));var r;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};function o(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function a(e,t){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 c(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}const l=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&&a(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?c(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,r("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},r("termsAndConditions.tcLink",this.lang)),r("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},r("privacyPolicy.privacyLink",this.lang)),r("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,r("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},r("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return i("p",null,r("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},r("privacyPolicy.privacyLink",this.lang)),r("privacyPolicy.readUnderstandPart2",this.lang))}return i("p",null,r(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"aba04e96251f2f0febe96883b931193fb5ca8c94",ref:e=>this.stylingContainer=e},i("p",{key:"d3f0cbeb5b45b4538462a53c41ab041b176a7c26",class:"ConsentTitle"},this.consentTitle),i("label",{key:"800ab8d45e87b075402c3178e60a16866d0321d4",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"919c15c353a8146661eca2870e7a63f7c689953e",ref:e=>this.checkboxInput=e,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&i("span",{key:"f7126adee1ba5540837da4b852961d08a9eae857",class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}}};l.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 d={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."}},p=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{d[t]||(d[t]={});for(let i in e[t])d[t][i]=e[t][i]})),t(!0)}))})),m=(e,t,i)=>{let s=d[void 0!==t&&t in d?t:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");s=s.replace(i,t)}return s},h=class{constructor(t){e(this,t),this.mandatoryActions=["termsandconditions","privacypolicy"],this.userActions=[],this.consentTitles={termsandconditions:m("termsAndConditionsTitle",this.lang),sms:m("smsTitle",this.lang),emailmarketing:m("emailMarketingTitle",this.lang),privacypolicy:m("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(){p(this.translationUrl)}handleClientStylingChange(e,t){e!=t&&o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&a(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(`/v1/player/${this.userId}/consent/`,this.endpoint),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(`/v1/player/${this.userId}/legislation/consents/`,this.endpoint),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(`/v1/player/${this.userId}/consent/`,this.endpoint):new URL(`/v1/player/${this.userId}/legislation/consents/`,this.endpoint);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 p(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?c(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(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"},m("userNoticeText",this.lang)),i("div",{class:"PlayerLegislationWrapper"},this.activeUserActions.map((e=>i("slot",{name:e},i("player-user-consents",{lang:this.lang,"gm-version":this.gmVersion,"translation-url":this.translationUrl,consentType:e,consentTitle:this.consentTitles[e],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},m("rejectButtonText",this.lang)),this.includeSubmitButton&&i("button",{class:"ConsentSubmitButton",disabled:!this.userActionsValidated,onClick:this.handleApplyClick},m("submitButtonText",this.lang))),this.includeRejectText&&i("p",{class:"RejectText"},m("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{l as player_user_consents,h as user_action_controller}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/user-action-controller",
3
- "version": "1.66.2",
3
+ "version": "1.67.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",