@everymatrix/pam-consent-modal 0.1.0 → 0.1.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.
@@ -1,477 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-f4cffab8.js';
2
- import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './pam-consent-modal-be38f983.js';
3
- export { P as pam_consent_modal } from './pam-consent-modal-be38f983.js';
4
-
5
- const DEFAULT_LANGUAGE = 'en';
6
- const TRANSLATIONS = {
7
- en: {
8
- termsandconditions: {
9
- textPart1: "I accept the ",
10
- textPart2: "",
11
- link: "Terms and Conditions",
12
- title: "Terms and Conditions"
13
- },
14
- privacypolicy: {
15
- textPart1: "I have read and understood the ",
16
- textPart2: ", as published on this site and confirm that I am over 18 years old.",
17
- link: "Privacy Policy",
18
- title: "Privacy Policy"
19
- },
20
- sms: { title: "SMS marketing", text: "I consent to receive marketing communication via SMS." },
21
- emailmarketing: { title: "Email marketing", text: "I consent to receive marketing communication via Email." },
22
- sportsemail: { title: "", text: "I want to receive Sports email marketing" },
23
- sportssms: { title: "", text: "I want to receive Sports SMS marketing" },
24
- sports3rdparty: { title: "", text: "I want to receive Sports phone call marketing" },
25
- sportspush: { title: "", text: "I want to receive Sports push notifications" },
26
- sports: { title: "Sports Promotions", text: "I want to receive Sports promotions" },
27
- casinoemail: { title: "", text: "I want to receive Casino email marketing" },
28
- casinosms: { title: "", text: "I want to receive Casino SMS marketing" },
29
- casino3rdparty: { title: "", text: "I want to receive Casino phone call marketing" },
30
- casinopush: { title: "", text: "I want to receive Casino push notifications" },
31
- casino: { title: "Casino Promotions", text: "I want to receive Casino promotions" },
32
- virtualsportsemail: { title: "", text: "I want to receive Virtual Sports email marketing" },
33
- virtualsportssms: { title: "", text: "I want to receive Virtual Sports SMS marketing" },
34
- virtualsports3rdparty: { title: "", text: "I want to receive Virtual Sports phone call marketing" },
35
- virtualsportspush: { title: "", text: "I want to receive Virtual Sports push notifications" },
36
- virtualsports: { title: "Virtual Sports Promotions", text: "I want to receive Casino promotions" }
37
- },
38
- ro: {
39
- termsandconditions: {
40
- textPart1: "Accept ",
41
- textPart2: "",
42
- link: "Termenii și condițiile",
43
- title: "Termenii și condițiile"
44
- },
45
- privacypolicy: {
46
- textPart1: "Am citit și înțeles ",
47
- textPart2: ", așa cum este publicat pe acest site și confirm că am peste 18 ani.",
48
- link: "Politica de confidențialitate",
49
- title: "Politica de confidențialitate"
50
- },
51
- sms: { title: "Marketing prin SMS", text: "Îmi dau consimțământul pentru a primi comunicări de marketing prin SMS." },
52
- emailmarketing: { title: "Marketing prin e-mail", text: "Îmi dau consimțământul pentru a primi comunicări de marketing prin e-mail." },
53
- sportsemail: { title: "", text: "Vreau să primesc marketing prin e-mail pentru sporturi" },
54
- sportssms: { title: "", text: "Vreau să primesc marketing prin SMS pentru sporturi" },
55
- sports3rdparty: { title: "", text: "Vreau să primesc marketing prin apel telefonic pentru sporturi" },
56
- sportspush: { "title": "", "text": "Vreau să primesc notificări push pentru sporturi" },
57
- sports: { title: "Promoții Sportive", text: "Vreau să primesc promoții sportive" },
58
- casinoemail: { title: "", text: "Vreau să primesc marketing prin e-mail pentru cazinou" },
59
- casinosms: { title: "", text: "Vreau să primesc marketing prin SMS pentru cazinou" },
60
- casino3rdparty: { title: "", text: "Vreau să primesc marketing prin apel telefonic pentru cazinou" },
61
- casinopush: { "title": "", "text": "Vreau să primesc notificări push pentru cazinou" },
62
- casino: { title: "Promoții de Cazino", text: "Vreau să primesc promoții de cazino" },
63
- virtualsportsemail: { title: "", text: "Vreau să primesc marketing prin e-mail pentru sporturi virtuale" },
64
- virtualsportssms: { title: "", text: "Vreau să primesc marketing prin SMS pentru sporturi virtuale" },
65
- virtualsports3rdparty: { title: "", text: "Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale" },
66
- virtualsportspush: { "title": "", "text": "Vreau să primesc notificări push pentru sporturi virtuale" },
67
- virtualsports: { title: "Promoții pentru sporturi virtuale", text: "Vreau să primesc promoții de cazino" }
68
- },
69
- fr: {
70
- termsandconditions: {
71
- textPart1: "J'accepte les ",
72
- textPart2: "",
73
- link: "Termes et Conditions",
74
- title: "Termes et Conditions"
75
- },
76
- privacypolicy: {
77
- textPart1: "J'ai lu et compris la ",
78
- textPart2: ", telle que publiée sur ce site et je confirme que j'ai plus de 18 ans.",
79
- link: "Politique de Confidentialité",
80
- title: "Politique de Confidentialité"
81
- },
82
- sms: { title: "Marketing par SMS", text: "Je consens à recevoir des communications marketing par SMS." },
83
- emailmarketing: { title: "Marketing par e-mail", text: "Je consens à recevoir des communications marketing par e-mail." },
84
- sportsemail: { title: "", text: "Je veux recevoir des e-mails marketing pour les sports" },
85
- sportssms: { title: "", text: "Je veux recevoir des SMS marketing pour les sports" },
86
- sports3rdparty: { title: "", text: "Je veux recevoir des appels marketing pour les sports" },
87
- sportspush: { "title": "", "text": "Je veux recevoir des notifications push pour les sports" },
88
- sports: { title: "Promotions Sportives", text: "Je veux recevoir des promotions sportives" },
89
- casinoemail: { title: "", text: "Je veux recevoir des e-mails marketing pour le casino" },
90
- casinosms: { title: "", text: "Je veux recevoir des SMS marketing pour le casino" },
91
- casino3rdparty: { title: "", text: "Je veux recevoir des appels marketing pour le casino" },
92
- casinopush: { "title": "", "text": "Je veux recevoir des notifications push pour le casino" },
93
- casino: { title: "Promotions de Casino", text: "Je veux recevoir des promotions de casino" },
94
- virtualsportsemail: { title: "", text: "Je veux recevoir des e-mails marketing pour les sports virtuels" },
95
- virtualsportssms: { title: "", text: "Je veux recevoir des SMS marketing pour les sports virtuels" },
96
- virtualsports3rdparty: { title: "", text: "Je veux recevoir des appels marketing pour les sports virtuels" },
97
- virtualsportspush: { "title": "", "text": "Je veux recevoir des notifications push pour les sports virtuels" },
98
- virtualsports: { title: "Promotions de sports virtuels", text: "Je veux recevoir des promotions de casino" }
99
- },
100
- es: {
101
- termsandconditions: {
102
- textPart1: "Acepto los ",
103
- textPart2: "",
104
- link: "Términos y Condiciones",
105
- title: "Términos y Condiciones"
106
- },
107
- privacypolicy: {
108
- textPart1: "He leído y entendido la ",
109
- textPart2: ", tal como se publica en este sitio y confirmo que tengo más de 18 años.",
110
- link: "Política de Privacidad",
111
- title: "Política de Privacidad"
112
- },
113
- sms: { title: "Marketing por SMS", text: "Consiento recibir comunicaciones de marketing por SMS." },
114
- emailmarketing: { title: "Marketing por correo electrónico", text: "Consiento recibir comunicaciones de marketing por correo electrónico." },
115
- sportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes" },
116
- sportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes" },
117
- sports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes" },
118
- sportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes" },
119
- sports: { title: "Promociones Deportivas", text: "Quiero recibir promociones deportivas" },
120
- casinoemail: { title: "", text: "Quiero recibir marketing por correo electrónico de casino" },
121
- casinosms: { title: "", text: "Quiero recibir marketing por SMS de casino" },
122
- casino3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de casino" },
123
- casinopush: { "title": "", "text": "Quiero recibir notificaciones push de casino" },
124
- casino: { title: "Promociones de Casino", text: "Quiero recibir promociones de casino" },
125
- virtualsportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes virtuales" },
126
- virtualsportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes virtuales" },
127
- virtualsports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes virtuales" },
128
- virtualsportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes virtuales" },
129
- virtualsports: { title: "Promociones de deportes virtuales", text: "Quiero recibir promociones de casino" }
130
- },
131
- de: {
132
- termsandconditions: {
133
- textPart1: "Ich akzeptiere die ",
134
- textPart2: "",
135
- link: "Allgemeinen Geschäftsbedingungen",
136
- title: "Allgemeinen Geschäftsbedingungen"
137
- },
138
- privacypolicy: {
139
- textPart1: "Ich habe die ",
140
- textPart2: " gelesen und verstanden, wie auf dieser Seite veröffentlicht, und bestätige, dass ich über 18 Jahre alt bin.",
141
- link: "Datenschutzrichtlinie",
142
- title: "Datenschutzrichtlinie"
143
- },
144
- sms: { title: "SMS-Marketing", text: "Ich stimme zu, Marketingkommunikation per SMS zu erhalten." },
145
- emailmarketing: { title: "E-Mail-Marketing", text: "Ich stimme zu, Marketingkommunikation per E-Mail zu erhalten." },
146
- sportsemail: { title: "", text: "Ich möchte Sport-Marketing-E-Mails erhalten" },
147
- sportssms: { title: "", text: "Ich möchte Sport-Marketing-SMS erhalten" },
148
- sports3rdparty: { title: "", text: "Ich möchte Sport-Marketing-Anrufe erhalten" },
149
- sports: { title: "Sportaktionen", text: "Ich möchte Sportaktionen erhalten" },
150
- sportspush: { "title": "", "text": "Ich möchte Push-Benachrichtigungen für Sport erhalten" },
151
- casinoemail: { title: "", text: "Ich möchte Casino-Marketing-E-Mails erhalten" },
152
- casinosms: { title: "", text: "Ich möchte Casino-Marketing-SMS erhalten" },
153
- casino3rdparty: { title: "", text: "Ich möchte Casino-Marketing-Anrufe erhalten" },
154
- casinopush: { "title": "", "text": "Ich möchte Push-Benachrichtigungen für das Casino erhalten" },
155
- casino: { title: "Casinoaktionen", text: "Ich möchte Casinoaktionen erhalten" },
156
- virtualsportsemail: { title: "", text: "Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten" },
157
- virtualsportssms: { title: "", text: "Ich möchte Marketing-SMS für virtuelle Sportarten erhalten" },
158
- virtualsports3rdparty: { title: "", text: "Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten" },
159
- virtualsportspush: { "title": "", "text": "Ich möchte Push-Benachrichtigungen für virtuelle Sportarten erhalten" },
160
- virtualsports: { title: "Promotions de sports virtuels", text: "Ich möchte Casinoaktionen erhalten" }
161
- },
162
- hr: {
163
- termsandconditions: {
164
- textPart1: "Prihvaćam ",
165
- textPart2: "",
166
- link: "Uvjeti i odredbe",
167
- title: "Uvjeti i odredbe"
168
- },
169
- privacypolicy: {
170
- textPart1: "Pročitao/la sam i razumio/la ",
171
- textPart2: ", kako je objavljeno na ovoj stranici i potvrđujem da imam više od 18 godina.",
172
- link: "Pravila o privatnosti",
173
- title: "Pravila o privatnosti"
174
- },
175
- sms: { title: "SMS marketing", text: "Slažem se primati marketinške komunikacije putem SMS-a." },
176
- emailmarketing: { title: "E-mail marketing", text: "Slažem se primati marketinške komunikacije putem e-maila." },
177
- sportsemail: { title: "", text: "Želim primati sportski marketing putem e-pošte" },
178
- sportssms: { title: "", text: "Želim primati sportski marketing putem SMS-a" },
179
- sports3rdparty: { title: "", text: "Želim primati sportski marketing putem telefonskog poziva" },
180
- sportspush: { "title": "", "text": "Želim primati push obavijesti za sportove" },
181
- sports: { title: "Sportske Promocije", text: "Želim primati sportske promocije" },
182
- casinoemail: { title: "", text: "Želim primati kasino marketing putem e-pošte" },
183
- casinosms: { title: "", text: "Želim primati kasino marketing putem SMS-a" },
184
- casino3rdparty: { title: "", text: "Želim primati kasino marketing putem telefonskog poziva" },
185
- casinopush: { "title": "", "text": "Želim primati push obavijesti za kasino" },
186
- casino: { title: "Promocije Kasina", text: "Želim primati promocije kasina" },
187
- virtualsportsemail: { title: "", text: "Želim primati marketing putem e-pošte za virtualne sportove" },
188
- virtualsportssms: { title: "", text: "Želim primati marketing putem SMS-a za virtualne sportove" },
189
- virtualsports3rdparty: { title: "", text: "Želim primati marketing putem telefonskog poziva za virtualne sportove" },
190
- virtualsportspush: { "title": "", "text": "Želim primati push obavijesti za virtualne sportove" },
191
- virtualsports: { title: "Promocije virtualnih sportova", text: "Želim primati promocije kasina" }
192
- },
193
- 'en-us': {
194
- termsandconditions: {
195
- textPart1: "I accept the ",
196
- textPart2: "",
197
- link: "Terms and Conditions",
198
- title: "Terms and Conditions"
199
- },
200
- privacypolicy: {
201
- textPart1: "I have read and understood the ",
202
- textPart2: ", as published on this site and confirm that I am over 18 years old.",
203
- link: "Privacy Policy",
204
- title: "Privacy Policy"
205
- },
206
- sms: { title: "SMS marketing", text: "I consent to receive marketing communication via SMS." },
207
- emailmarketing: { title: "Email marketing", text: "I consent to receive marketing communication via Email." },
208
- sportsemail: { title: "", text: "I want to receive Sports email marketing" },
209
- sportssms: { title: "", text: "I want to receive Sports SMS marketing" },
210
- sports3rdparty: { title: "", text: "I want to receive Sports phone call marketing" },
211
- sportspush: { title: "", text: "I want to receive Sports push notifications" },
212
- sports: { title: "Sports Promotions", text: "I want to receive Sports promotions" },
213
- casinoemail: { title: "", text: "I want to receive Casino email marketing" },
214
- casinosms: { title: "", text: "I want to receive Casino SMS marketing" },
215
- casino3rdparty: { title: "", text: "I want to receive Casino phone call marketing" },
216
- casinopush: { title: "", text: "I want to receive Casino push notifications" },
217
- casino: { title: "Casino Promotions", text: "I want to receive Casino promotions" },
218
- virtualsportsemail: { title: "", text: "I want to receive Virtual Sports email marketing" },
219
- virtualsportssms: { title: "", text: "I want to receive Virtual Sports SMS marketing" },
220
- virtualsports3rdparty: { title: "", text: "I want to receive Virtual Sports phone call marketing" },
221
- virtualsportspush: { title: "", text: "I want to receive Virtual Sports push notifications" },
222
- virtualsports: { title: "Virtual Sports Promotions", text: "I want to receive Casino promotions" }
223
- },
224
- 'es-mx': {
225
- termsandconditions: {
226
- textPart1: "Acepto los ",
227
- textPart2: "",
228
- link: "Términos y Condiciones",
229
- title: "Términos y Condiciones"
230
- },
231
- privacypolicy: {
232
- textPart1: "He leído y entendido la ",
233
- textPart2: ", tal como se publica en este sitio y confirmo que tengo más de 18 años.",
234
- link: "Política de Privacidad",
235
- title: "Política de Privacidad"
236
- },
237
- sms: { title: "Marketing por SMS", text: "Consiento recibir comunicaciones de marketing por SMS." },
238
- emailmarketing: { title: "Marketing por correo electrónico", text: "Consiento recibir comunicaciones de marketing por correo electrónico." },
239
- sportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes" },
240
- sportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes" },
241
- sports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes" },
242
- sportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes" },
243
- sports: { title: "Promociones Deportivas", text: "Quiero recibir promociones deportivas" },
244
- casinoemail: { title: "", text: "Quiero recibir marketing por correo electrónico de casino" },
245
- casinosms: { title: "", text: "Quiero recibir marketing por SMS de casino" },
246
- casino3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de casino" },
247
- casinopush: { "title": "", "text": "Quiero recibir notificaciones push de casino" },
248
- casino: { title: "Promociones de Casino", text: "Quiero recibir promociones de casino" },
249
- virtualsportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes virtuales" },
250
- virtualsportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes virtuales" },
251
- virtualsports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes virtuales" },
252
- virtualsportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes virtuales" },
253
- virtualsports: { title: "Promociones de deportes virtuales", text: "Quiero recibir promociones de casino" }
254
- },
255
- 'pt-br': {
256
- termsandconditions: {
257
- textPart1: "Eu aceito os ",
258
- textPart2: "",
259
- link: "Termos e Condições",
260
- title: "Termos e Condições"
261
- },
262
- privacypolicy: {
263
- textPart1: "Eu li e entendi a ",
264
- textPart2: ", conforme publicado neste site e confirmo que tenho mais de 18 anos.",
265
- link: "Política de Privacidade",
266
- title: "Política de Privacidade"
267
- },
268
- sms: { title: "Marketing por SMS", text: "Eu consinto em receber comunicações de marketing via SMS." },
269
- emailmarketing: { title: "Marketing por e-mail", text: "Eu consinto em receber comunicações de marketing via e-mail." },
270
- sportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes" },
271
- sportssms: { title: "", text: "Quero receber marketing por SMS de esportes" },
272
- sports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes" },
273
- sportspush: { "title": "", "text": "Quero receber notificações push de esportes" },
274
- sports: { title: "Promoções Esportivas", text: "Quero receber promoções esportivas" },
275
- casinoemail: { title: "", text: "Quero receber marketing por e-mail de cassino" },
276
- casinosms: { title: "", text: "Quero receber marketing por SMS de cassino" },
277
- casino3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de cassino" },
278
- casinopush: { "title": "", "text": "Quero receber notificações push de cassino" },
279
- casino: { title: "Promoções de Cassino", text: "Quero receber promoções de cassino" },
280
- virtualsportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes virtuais" },
281
- virtualsportssms: { title: "", text: "Quero receber marketing por SMS de esportes virtuais" },
282
- virtualsports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes virtuais" },
283
- virtualsportspush: { "title": "", "text": "Quero receber notificações push de esportes virtuais" },
284
- virtualsports: { title: "Promoções de esportes virtuais", text: "Quero receber promoções de cassino" }
285
- },
286
- pt: {
287
- termsandconditions: {
288
- textPart1: "Eu aceito os ",
289
- textPart2: "",
290
- link: "Termos e Condições",
291
- title: "Termos e Condições"
292
- },
293
- privacypolicy: {
294
- textPart1: "Eu li e entendi a ",
295
- textPart2: ", conforme publicado neste site e confirmo que tenho mais de 18 anos.",
296
- link: "Política de Privacidade",
297
- title: "Política de Privacidade"
298
- },
299
- sms: { title: "Marketing por SMS", text: "Eu consinto em receber comunicações de marketing via SMS." },
300
- emailmarketing: { title: "Marketing por e-mail", text: "Eu consinto em receber comunicações de marketing via e-mail." },
301
- sportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes" },
302
- sportssms: { title: "", text: "Quero receber marketing por SMS de esportes" },
303
- sports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes" },
304
- sportspush: { "title": "", "text": "Quero receber notificações push de esportes" },
305
- sports: { title: "Promoções Esportivas", text: "Quero receber promoções esportivas" },
306
- casinoemail: { title: "", text: "Quero receber marketing por e-mail de cassino" },
307
- casinosms: { title: "", text: "Quero receber marketing por SMS de cassino" },
308
- casino3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de cassino" },
309
- casinopush: { "title": "", "text": "Quero receber notificações push de cassino" },
310
- casino: { title: "Promoções de Cassino", text: "Quero receber promoções de cassino" },
311
- virtualsportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes virtuais" },
312
- virtualsportssms: { title: "", text: "Quero receber marketing por SMS de esportes virtuais" },
313
- virtualsports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes virtuais" },
314
- virtualsportspush: { "title": "", "text": "Quero receber notificações push de esportes virtuais" },
315
- virtualsports: { title: "Promoções de esportes virtuais", text: "Quero receber promoções de cassino" }
316
- }
317
- };
318
- const getTranslations = (url) => {
319
- // fetch url, get the data, replace the TRANSLATIONS content
320
- return new Promise((resolve) => {
321
- fetch(url)
322
- .then((res) => res.json())
323
- .then((data) => {
324
- Object.keys(data).forEach((item) => {
325
- for (let key in data[item]) {
326
- if (!TRANSLATIONS[item]) {
327
- TRANSLATIONS[item] = {};
328
- }
329
- TRANSLATIONS[item][key] = data[item][key];
330
- }
331
- });
332
- resolve(true);
333
- });
334
- });
335
- };
336
- const translate = (key, customLang, values) => {
337
- const lang = customLang || DEFAULT_LANGUAGE;
338
- const getNestedTranslation = (obj, path) => {
339
- return path.split('.').reduce((o, k) => (o && o[k] !== undefined ? o[k] : null), obj);
340
- };
341
- let translation = getNestedTranslation(TRANSLATIONS[lang], key);
342
- if (translation === null) {
343
- return key;
344
- }
345
- if (values !== undefined) {
346
- for (const [k, v] of Object.entries(values)) {
347
- const regex = new RegExp(`{${k}}`, 'g');
348
- translation = translation.replace(regex, v);
349
- }
350
- }
351
- return translation;
352
- };
353
-
354
- const pamConsentItemCss = ":host{display:block;font-family:inherit}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:center}.UserConsent input{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 input:checked{background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-black, #000000)}.UserConsent input: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)}.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}.ConsentGroup{margin-left:25px}";
355
- const PamConsentItemStyle0 = pamConsentItemCss;
356
-
357
- const PamConsentItem = class {
358
- constructor(hostRef) {
359
- registerInstance(this, hostRef);
360
- this.userLegislationConsent = createEvent(this, "userLegislationConsent", 7);
361
- this.consentConfig = [];
362
- this.inputRefs = { parent: null, children: {} };
363
- this.goToTermsAndConditions = () => {
364
- window.postMessage({ type: 'GoToTermsAndConditions' });
365
- };
366
- this.goToPrivacyPolicy = () => {
367
- window.postMessage({ type: 'GoToPrivacyPolicy' });
368
- };
369
- this.userLegislationConsentHandler = () => {
370
- if (this.group) {
371
- this.updateGroupParent();
372
- }
373
- if (this.mandatory || this.queried) {
374
- const consents = [];
375
- if (this.group) {
376
- for (const [consentType, inputRef] of Object.entries(this.inputRefs.children)) {
377
- consents.push({ type: consentType, value: inputRef.checked });
378
- }
379
- }
380
- else {
381
- consents.push({ type: this.consentConfig[0].tagCode, value: this.inputRefs.parent.checked });
382
- }
383
- this.userLegislationConsent.emit(consents);
384
- }
385
- };
386
- this.updateGroupParent = () => {
387
- this.inputRefs.parent.checked = Object.values(this.inputRefs.children).every(inputRef => inputRef.checked);
388
- };
389
- this.toggleGroupChildren = () => {
390
- Object.values(this.inputRefs.children).forEach(inputRef => inputRef.checked = this.inputRefs.parent.checked);
391
- };
392
- this.language = 'en';
393
- this.queried = false;
394
- this.group = undefined;
395
- this.consentTypes = '';
396
- this.mandatory = 'false';
397
- this.clientStyling = '';
398
- this.clientStylingUrl = '';
399
- this.translationUrl = '';
400
- this.mbSource = undefined;
401
- }
402
- handleClientStylingChange(newValue, oldValue) {
403
- if (newValue != oldValue) {
404
- setClientStyling(this.stylingContainer, this.clientStyling);
405
- }
406
- }
407
- handleClientStylingUrlChange(newValue, oldValue) {
408
- if (newValue != oldValue) {
409
- setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
410
- }
411
- }
412
- handleMbSourceChange(newValue, oldValue) {
413
- if (newValue != oldValue) {
414
- setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
415
- }
416
- }
417
- async componentWillLoad() {
418
- const consentTypesArray = this.consentTypes.split(',');
419
- const consentMandatoryArray = this.mandatory.split(',');
420
- for (let i = 0; i < consentTypesArray.length; ++i) {
421
- this.consentConfig.push({
422
- tagCode: consentTypesArray[i],
423
- mandatory: consentMandatoryArray[i] === 'true'
424
- });
425
- }
426
- if (this.translationUrl.length > 2) {
427
- await getTranslations(this.translationUrl);
428
- }
429
- }
430
- componentDidLoad() {
431
- if (this.stylingContainer) {
432
- if (this.mbSource)
433
- setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
434
- if (this.clientStyling)
435
- setClientStyling(this.stylingContainer, this.clientStyling);
436
- if (this.clientStylingUrl)
437
- setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
438
- }
439
- }
440
- disconnectedCallback() {
441
- this.stylingSubscription && this.stylingSubscription.unsubscribe();
442
- }
443
- determineTextContent(consentType) {
444
- if (consentType === 'termsandconditions') {
445
- return h("p", null, translate('termsandconditions.textPart1', this.language), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsandconditions.link', this.language)), translate('termsandconditions.textPart2', this.language));
446
- }
447
- if (consentType === 'privacypolicy') {
448
- return h("p", null, translate('privacypolicy.textPart1', this.language), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacypolicy.link', this.language)), translate('privacypolicy.textPart2', this.language));
449
- }
450
- return h("p", null, translate(`${consentType}.text`, this.language));
451
- }
452
- render() {
453
- if (this.queried) {
454
- this.userLegislationConsentHandler();
455
- }
456
- return (h("div", { key: '255d7bbf241891327f3181047c0203f6b482f14a', ref: el => this.stylingContainer = el }, !this.group
457
- ? [
458
- h("h5", { class: "ConsentTitle" }, translate(`${this.consentConfig[0].tagCode}.title`, this.language)),
459
- h("label", { class: "UserConsent", htmlFor: "userConsent" }, h("input", { ref: el => this.inputRefs.parent = el, type: "checkbox", onInput: this.userLegislationConsentHandler }), this.determineTextContent(this.consentConfig[0].tagCode), this.consentConfig[0].mandatory && h("span", { class: "MandatoryItem" }, "*"))
460
- ]
461
- : [
462
- h("h5", { class: "ConsentTitle" }, translate(`${this.group}.title`, this.language)),
463
- h("label", { class: "UserConsent Parent" }, h("input", { ref: el => this.inputRefs.parent = el, type: "checkbox", onInput: this.toggleGroupChildren }), this.determineTextContent(this.group), this.consentConfig.every(consent => consent.mandatory) && h("span", { class: "MandatoryItem" }, "*")),
464
- h("div", { class: "ConsentGroup" }, this.consentConfig.map((consent) => {
465
- return (h("label", { class: "UserConsent" }, h("input", { ref: el => this.inputRefs.children[consent.tagCode] = el, type: "checkbox", onInput: this.userLegislationConsentHandler }), this.determineTextContent(consent.tagCode), consent.mandatory && h("span", { class: "MandatoryItem" }, "*")));
466
- }))
467
- ]));
468
- }
469
- static get watchers() { return {
470
- "clientStyling": ["handleClientStylingChange"],
471
- "clientStylingUrl": ["handleClientStylingUrlChange"],
472
- "mbSource": ["handleMbSourceChange"]
473
- }; }
474
- };
475
- PamConsentItem.style = PamConsentItemStyle0;
476
-
477
- export { PamConsentItem as pam_consent_item };
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-46389116.js";function n(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function s(e,t){const n=new URL(t);fetch(n.href).then((e=>e.text())).then((t=>{const n=document.createElement("style");n.innerHTML=t,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function i(e,t){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{n.innerHTML=t,e&&e.appendChild(n)}))}}const o={en:{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":{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:{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:{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:{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:{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:{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:{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:{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":{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":{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."}},r=(e,t,n)=>{let s=o[void 0!==t&&t in o?t:"en"][e];if(void 0!==n)for(const[e,t]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");s=s.replace(n,t)}return s},a=class{constructor(t){e(this,t),this.userConsents=[],this.mandatoryConsentTagCodes=["termsandconditions","privacypolicy"],this.allowedCategoryGroups=["Sports","Casino","VirtualSports"],this.consentConfig=[],this.handleApplyClick=()=>{this.isQueryFired=!0},this.handleReject=()=>{const e=new URL("v1/player/session/player/",this.endpoint),t=new Headers;t.append("Content-type","application/json"),t.append("X-SessionID",this.session),fetch(e.href,{method:"DELETE",headers:t}).then((()=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),((e,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:"logged_out",data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)})(0,{})}))},this.endpoint=void 0,this.session=void 0,this.userId=void 0,this.language="en",this.includeSubmitButton=void 0,this.includeRejectButton=void 0,this.includeRejectText=void 0,this.translationUrl="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.isLoading=!0,this.isValid=!0,this.isQueryFired=!1,this.receivedQueryResponses=0,this.mandatoryConsentsChecked=0,this.mandatoryConsentsCount=0,this.userConsentTagCodes=[]}handleClientStylingChange(e,t){e!=t&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(e,t){e!=t&&i(this.stylingContainer,`${this.mbSource}.Style`)}handleQueryResponse(){this.receivedQueryResponses===this.consentConfig.length&&this.updateConsents()}userLegislationConsentHandler(e){for(const t of e.detail)this.mandatoryConsentTagCodes.includes(t.type)&&!1===this.isQueryFired&&(!0===t.value?this.mandatoryConsentsChecked++:this.mandatoryConsentsChecked--),this.isQueryFired&&(this.userConsents.push({tagCode:t.type,status:Number(t.value),note:""}),this.receivedQueryResponses++)}async componentWillLoad(){var e;this.getConsents().then((e=>this.setConsentConfig(e))),this.translationUrl.length>2&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{o[t]||(o[t]={});for(let n in e[t])o[t][n]=e[t][n]})),t(!0)}))})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&i(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}getConsents(){const e=new URL(`/v1/player/${this.userId}/legislation/consents/`,this.endpoint),t=new Headers({"X-SessionId":this.session});return fetch(e.href,{method:"GET",headers:t}).then((e=>{if(200===e.status)return e.json();throw new Error(String(e.status))})).then((e=>e.consents)).catch((e=>(console.error("Error fetching data:",e),null))).finally((()=>{window.postMessage({type:"UserActionsExists",displayUserActions:this.mandatoryConsentsCount>0},window.location.href),this.isLoading=!1}))}setConsentConfig(e){for(const t of e){if(2!==t.status||"pepconsent"===t.tagCode)return;const e=this.mandatoryConsentTagCodes.includes(t.tagCode);if(e&&++this.mandatoryConsentsCount,this.allowedCategoryGroups.includes(t.category)){const n=this.consentConfig.find((e=>e.group===t.category.toLowerCase()));n?(n.consentTypes+=","+t.tagCode,n.mandatory+=","+String(e)):this.consentConfig.push({consentTypes:t.tagCode,group:t.category.toLowerCase(),mandatory:String(e)})}else this.consentConfig.push({consentTypes:t.tagCode,group:"",mandatory:String(e)})}}updateConsents(){const e=new URL(`/v1/player/${this.userId}/legislation/consents/`,this.endpoint),t=new Headers;t.append("Content-Type","application/json"),t.append("Accept","application/json"),t.append("X-SessionId",this.session);const n=JSON.stringify({consents:this.userConsents});fetch(e.href,{method:"POST",headers:t,body:n}).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)}))}render(){if(0!==this.mandatoryConsentsCount)return this.isValid=this.mandatoryConsentsChecked===this.mandatoryConsentsCount,t("div",{class:"QueryReferenceContainer",ref:e=>this.stylingContainer=e},this.isLoading?t("div",null,t("slot",{name:"spinner"}),t("svg",{class:"spinner",viewBox:"0 0 50 50"},t("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"}))):t("div",{class:"PamConsentModal"},t("h2",{class:"ConsentNotice"},r("userNoticeText",this.language)),t("div",{class:"ConsentsWrapper"},this.consentConfig.map((e=>t("slot",{name:e.group||e.consentTypes},t("pam-consent-item",{language:this.language,"translation-url":this.translationUrl,group:e.group,consentTypes:e.consentTypes,queried:this.isQueryFired,mandatory:e.mandatory,"client-styling-url":this.clientStylingUrl,"mb-source":this.mbSource,"client-styling":this.clientStyling}))))),t("div",{class:"ButtonsWrapper"},this.includeRejectButton&&t("button",{class:"ConsentRejectButton",onClick:this.handleReject},r("rejectButtonText",this.language)),this.includeSubmitButton&&t("button",{class:"ConsentSubmitButton",disabled:!this.isValid,onClick:this.handleApplyClick},r("submitButtonText",this.language))),this.includeRejectText&&t("p",{class:"RejectText"},r("rejectText",this.language))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],receivedQueryResponses:["handleQueryResponse"]}}};a.style=":host{display:block}.QueryReferenceContainer{height:100%;width:100%}.ConsentNotice{font-size:1.2rem;font-weight:200;text-align:center}.CloseButton{width:25px;height:25px;align-self:flex-end}.PamConsentModal{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{a as P,s as a,i as b,n as s}
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?$(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},N=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>U(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},U=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},W=new WeakMap,D=e=>"sc-"+e.$,F=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},H=/\s/,q=e=>e?e.split(H):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||F(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))F(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(I||(I="svg"===l.m),o=l.v=a.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),I&&"foreignObject"===l.m&&(I=!1),_(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);"svg"===l.m?I=!1:"foreignObject"===o.tagName&&(I=!0)}return o["s-hn"]=x,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].v=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(I="svg"===r||"foreignObject"!==r&&I,("slot"!==r||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(X(h,m,o))Y(h,m,o),h=t[++i],m=l[++c];else if(X(p,y,o))Y(p,y,o),p=t[--f],y=l[--d];else if(X(h,y,o))Y(h,y,o),ee(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(X(p,m,o))Y(p,m,o),ee(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=J(t&&t[c],n,u):(Y(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&ee(h.v.parentNode,s,h.v)}i>f?K(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):null!==o&&Q(o,0,o.length-1),I&&"svg"===r&&(I=!1)):e.i!==i&&(l.data=i)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.j),g((()=>le(e,t)));e.l|=512},le=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ae(n,e,t))),e.k=void 0),l=ae(n,"componentWillLoad")),oe(l,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=D(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=W.get(e=e.head||e);if(r||W.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],B=!!(1&o.l),Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,fe(t),ae(n,"componentDidLoad"),e.L(t),l||ue()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),$((()=>U(u,"appload",{detail:{namespace:"pam-consent-modal"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ne(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},pe=e=>{ae(e,"disconnectedCallback")},de=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],R:l[2],N:l[3]};4&c.l&&(S=!0),c.R=l[2],c.N=l[3],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.U=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.N)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.N),(null==t?void 0:t.t)||(null==t?void 0:t.U)&&t.U.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.W;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.D}" was not found`);l.isProxied||(n.T=l.watchers,he(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=D(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.F&&(e.F.map((e=>e())),e.F=void 0),(null==e?void 0:e.t)?pe(e.t):(null==e?void 0:e.U)&&e.U.then((()=>pe(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,he(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(ue,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,r=ye(t,o),i=we(n);f.ael(s,l,r,i),(t.F=t.F||[]).push((()=>f.rel(s,l,r,i)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},we=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.C=e;export{de as b,N as c,R as h,h as p,l as r,ve as s}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i}from"./p-46389116.js";import{s as r,a as s,b as o}from"./p-2af7b124.js";export{P as pam_consent_modal}from"./p-2af7b124.js";const a={en:{termsandconditions:{textPart1:"I accept the ",textPart2:"",link:"Terms and Conditions",title:"Terms and Conditions"},privacypolicy:{textPart1:"I have read and understood the ",textPart2:", as published on this site and confirm that I am over 18 years old.",link:"Privacy Policy",title:"Privacy Policy"},sms:{title:"SMS marketing",text:"I consent to receive marketing communication via SMS."},emailmarketing:{title:"Email marketing",text:"I consent to receive marketing communication via Email."},sportsemail:{title:"",text:"I want to receive Sports email marketing"},sportssms:{title:"",text:"I want to receive Sports SMS marketing"},sports3rdparty:{title:"",text:"I want to receive Sports phone call marketing"},sportspush:{title:"",text:"I want to receive Sports push notifications"},sports:{title:"Sports Promotions",text:"I want to receive Sports promotions"},casinoemail:{title:"",text:"I want to receive Casino email marketing"},casinosms:{title:"",text:"I want to receive Casino SMS marketing"},casino3rdparty:{title:"",text:"I want to receive Casino phone call marketing"},casinopush:{title:"",text:"I want to receive Casino push notifications"},casino:{title:"Casino Promotions",text:"I want to receive Casino promotions"},virtualsportsemail:{title:"",text:"I want to receive Virtual Sports email marketing"},virtualsportssms:{title:"",text:"I want to receive Virtual Sports SMS marketing"},virtualsports3rdparty:{title:"",text:"I want to receive Virtual Sports phone call marketing"},virtualsportspush:{title:"",text:"I want to receive Virtual Sports push notifications"},virtualsports:{title:"Virtual Sports Promotions",text:"I want to receive Casino promotions"}},ro:{termsandconditions:{textPart1:"Accept ",textPart2:"",link:"Termenii și condițiile",title:"Termenii și condițiile"},privacypolicy:{textPart1:"Am citit și înțeles ",textPart2:", așa cum este publicat pe acest site și confirm că am peste 18 ani.",link:"Politica de confidențialitate",title:"Politica de confidențialitate"},sms:{title:"Marketing prin SMS",text:"Îmi dau consimțământul pentru a primi comunicări de marketing prin SMS."},emailmarketing:{title:"Marketing prin e-mail",text:"Îmi dau consimțământul pentru a primi comunicări de marketing prin e-mail."},sportsemail:{title:"",text:"Vreau să primesc marketing prin e-mail pentru sporturi"},sportssms:{title:"",text:"Vreau să primesc marketing prin SMS pentru sporturi"},sports3rdparty:{title:"",text:"Vreau să primesc marketing prin apel telefonic pentru sporturi"},sportspush:{title:"",text:"Vreau să primesc notificări push pentru sporturi"},sports:{title:"Promoții Sportive",text:"Vreau să primesc promoții sportive"},casinoemail:{title:"",text:"Vreau să primesc marketing prin e-mail pentru cazinou"},casinosms:{title:"",text:"Vreau să primesc marketing prin SMS pentru cazinou"},casino3rdparty:{title:"",text:"Vreau să primesc marketing prin apel telefonic pentru cazinou"},casinopush:{title:"",text:"Vreau să primesc notificări push pentru cazinou"},casino:{title:"Promoții de Cazino",text:"Vreau să primesc promoții de cazino"},virtualsportsemail:{title:"",text:"Vreau să primesc marketing prin e-mail pentru sporturi virtuale"},virtualsportssms:{title:"",text:"Vreau să primesc marketing prin SMS pentru sporturi virtuale"},virtualsports3rdparty:{title:"",text:"Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale"},virtualsportspush:{title:"",text:"Vreau să primesc notificări push pentru sporturi virtuale"},virtualsports:{title:"Promoții pentru sporturi virtuale",text:"Vreau să primesc promoții de cazino"}},fr:{termsandconditions:{textPart1:"J'accepte les ",textPart2:"",link:"Termes et Conditions",title:"Termes et Conditions"},privacypolicy:{textPart1:"J'ai lu et compris la ",textPart2:", telle que publiée sur ce site et je confirme que j'ai plus de 18 ans.",link:"Politique de Confidentialité",title:"Politique de Confidentialité"},sms:{title:"Marketing par SMS",text:"Je consens à recevoir des communications marketing par SMS."},emailmarketing:{title:"Marketing par e-mail",text:"Je consens à recevoir des communications marketing par e-mail."},sportsemail:{title:"",text:"Je veux recevoir des e-mails marketing pour les sports"},sportssms:{title:"",text:"Je veux recevoir des SMS marketing pour les sports"},sports3rdparty:{title:"",text:"Je veux recevoir des appels marketing pour les sports"},sportspush:{title:"",text:"Je veux recevoir des notifications push pour les sports"},sports:{title:"Promotions Sportives",text:"Je veux recevoir des promotions sportives"},casinoemail:{title:"",text:"Je veux recevoir des e-mails marketing pour le casino"},casinosms:{title:"",text:"Je veux recevoir des SMS marketing pour le casino"},casino3rdparty:{title:"",text:"Je veux recevoir des appels marketing pour le casino"},casinopush:{title:"",text:"Je veux recevoir des notifications push pour le casino"},casino:{title:"Promotions de Casino",text:"Je veux recevoir des promotions de casino"},virtualsportsemail:{title:"",text:"Je veux recevoir des e-mails marketing pour les sports virtuels"},virtualsportssms:{title:"",text:"Je veux recevoir des SMS marketing pour les sports virtuels"},virtualsports3rdparty:{title:"",text:"Je veux recevoir des appels marketing pour les sports virtuels"},virtualsportspush:{title:"",text:"Je veux recevoir des notifications push pour les sports virtuels"},virtualsports:{title:"Promotions de sports virtuels",text:"Je veux recevoir des promotions de casino"}},es:{termsandconditions:{textPart1:"Acepto los ",textPart2:"",link:"Términos y Condiciones",title:"Términos y Condiciones"},privacypolicy:{textPart1:"He leído y entendido la ",textPart2:", tal como se publica en este sitio y confirmo que tengo más de 18 años.",link:"Política de Privacidad",title:"Política de Privacidad"},sms:{title:"Marketing por SMS",text:"Consiento recibir comunicaciones de marketing por SMS."},emailmarketing:{title:"Marketing por correo electrónico",text:"Consiento recibir comunicaciones de marketing por correo electrónico."},sportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes"},sportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes"},sports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes"},sportspush:{title:"",text:"Quiero recibir notificaciones push de deportes"},sports:{title:"Promociones Deportivas",text:"Quiero recibir promociones deportivas"},casinoemail:{title:"",text:"Quiero recibir marketing por correo electrónico de casino"},casinosms:{title:"",text:"Quiero recibir marketing por SMS de casino"},casino3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de casino"},casinopush:{title:"",text:"Quiero recibir notificaciones push de casino"},casino:{title:"Promociones de Casino",text:"Quiero recibir promociones de casino"},virtualsportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes virtuales"},virtualsportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes virtuales"},virtualsports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes virtuales"},virtualsportspush:{title:"",text:"Quiero recibir notificaciones push de deportes virtuales"},virtualsports:{title:"Promociones de deportes virtuales",text:"Quiero recibir promociones de casino"}},de:{termsandconditions:{textPart1:"Ich akzeptiere die ",textPart2:"",link:"Allgemeinen Geschäftsbedingungen",title:"Allgemeinen Geschäftsbedingungen"},privacypolicy:{textPart1:"Ich habe die ",textPart2:" gelesen und verstanden, wie auf dieser Seite veröffentlicht, und bestätige, dass ich über 18 Jahre alt bin.",link:"Datenschutzrichtlinie",title:"Datenschutzrichtlinie"},sms:{title:"SMS-Marketing",text:"Ich stimme zu, Marketingkommunikation per SMS zu erhalten."},emailmarketing:{title:"E-Mail-Marketing",text:"Ich stimme zu, Marketingkommunikation per E-Mail zu erhalten."},sportsemail:{title:"",text:"Ich möchte Sport-Marketing-E-Mails erhalten"},sportssms:{title:"",text:"Ich möchte Sport-Marketing-SMS erhalten"},sports3rdparty:{title:"",text:"Ich möchte Sport-Marketing-Anrufe erhalten"},sports:{title:"Sportaktionen",text:"Ich möchte Sportaktionen erhalten"},sportspush:{title:"",text:"Ich möchte Push-Benachrichtigungen für Sport erhalten"},casinoemail:{title:"",text:"Ich möchte Casino-Marketing-E-Mails erhalten"},casinosms:{title:"",text:"Ich möchte Casino-Marketing-SMS erhalten"},casino3rdparty:{title:"",text:"Ich möchte Casino-Marketing-Anrufe erhalten"},casinopush:{title:"",text:"Ich möchte Push-Benachrichtigungen für das Casino erhalten"},casino:{title:"Casinoaktionen",text:"Ich möchte Casinoaktionen erhalten"},virtualsportsemail:{title:"",text:"Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten"},virtualsportssms:{title:"",text:"Ich möchte Marketing-SMS für virtuelle Sportarten erhalten"},virtualsports3rdparty:{title:"",text:"Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten"},virtualsportspush:{title:"",text:"Ich möchte Push-Benachrichtigungen für virtuelle Sportarten erhalten"},virtualsports:{title:"Promotions de sports virtuels",text:"Ich möchte Casinoaktionen erhalten"}},hr:{termsandconditions:{textPart1:"Prihvaćam ",textPart2:"",link:"Uvjeti i odredbe",title:"Uvjeti i odredbe"},privacypolicy:{textPart1:"Pročitao/la sam i razumio/la ",textPart2:", kako je objavljeno na ovoj stranici i potvrđujem da imam više od 18 godina.",link:"Pravila o privatnosti",title:"Pravila o privatnosti"},sms:{title:"SMS marketing",text:"Slažem se primati marketinške komunikacije putem SMS-a."},emailmarketing:{title:"E-mail marketing",text:"Slažem se primati marketinške komunikacije putem e-maila."},sportsemail:{title:"",text:"Želim primati sportski marketing putem e-pošte"},sportssms:{title:"",text:"Želim primati sportski marketing putem SMS-a"},sports3rdparty:{title:"",text:"Želim primati sportski marketing putem telefonskog poziva"},sportspush:{title:"",text:"Želim primati push obavijesti za sportove"},sports:{title:"Sportske Promocije",text:"Želim primati sportske promocije"},casinoemail:{title:"",text:"Želim primati kasino marketing putem e-pošte"},casinosms:{title:"",text:"Želim primati kasino marketing putem SMS-a"},casino3rdparty:{title:"",text:"Želim primati kasino marketing putem telefonskog poziva"},casinopush:{title:"",text:"Želim primati push obavijesti za kasino"},casino:{title:"Promocije Kasina",text:"Želim primati promocije kasina"},virtualsportsemail:{title:"",text:"Želim primati marketing putem e-pošte za virtualne sportove"},virtualsportssms:{title:"",text:"Želim primati marketing putem SMS-a za virtualne sportove"},virtualsports3rdparty:{title:"",text:"Želim primati marketing putem telefonskog poziva za virtualne sportove"},virtualsportspush:{title:"",text:"Želim primati push obavijesti za virtualne sportove"},virtualsports:{title:"Promocije virtualnih sportova",text:"Želim primati promocije kasina"}},"en-us":{termsandconditions:{textPart1:"I accept the ",textPart2:"",link:"Terms and Conditions",title:"Terms and Conditions"},privacypolicy:{textPart1:"I have read and understood the ",textPart2:", as published on this site and confirm that I am over 18 years old.",link:"Privacy Policy",title:"Privacy Policy"},sms:{title:"SMS marketing",text:"I consent to receive marketing communication via SMS."},emailmarketing:{title:"Email marketing",text:"I consent to receive marketing communication via Email."},sportsemail:{title:"",text:"I want to receive Sports email marketing"},sportssms:{title:"",text:"I want to receive Sports SMS marketing"},sports3rdparty:{title:"",text:"I want to receive Sports phone call marketing"},sportspush:{title:"",text:"I want to receive Sports push notifications"},sports:{title:"Sports Promotions",text:"I want to receive Sports promotions"},casinoemail:{title:"",text:"I want to receive Casino email marketing"},casinosms:{title:"",text:"I want to receive Casino SMS marketing"},casino3rdparty:{title:"",text:"I want to receive Casino phone call marketing"},casinopush:{title:"",text:"I want to receive Casino push notifications"},casino:{title:"Casino Promotions",text:"I want to receive Casino promotions"},virtualsportsemail:{title:"",text:"I want to receive Virtual Sports email marketing"},virtualsportssms:{title:"",text:"I want to receive Virtual Sports SMS marketing"},virtualsports3rdparty:{title:"",text:"I want to receive Virtual Sports phone call marketing"},virtualsportspush:{title:"",text:"I want to receive Virtual Sports push notifications"},virtualsports:{title:"Virtual Sports Promotions",text:"I want to receive Casino promotions"}},"es-mx":{termsandconditions:{textPart1:"Acepto los ",textPart2:"",link:"Términos y Condiciones",title:"Términos y Condiciones"},privacypolicy:{textPart1:"He leído y entendido la ",textPart2:", tal como se publica en este sitio y confirmo que tengo más de 18 años.",link:"Política de Privacidad",title:"Política de Privacidad"},sms:{title:"Marketing por SMS",text:"Consiento recibir comunicaciones de marketing por SMS."},emailmarketing:{title:"Marketing por correo electrónico",text:"Consiento recibir comunicaciones de marketing por correo electrónico."},sportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes"},sportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes"},sports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes"},sportspush:{title:"",text:"Quiero recibir notificaciones push de deportes"},sports:{title:"Promociones Deportivas",text:"Quiero recibir promociones deportivas"},casinoemail:{title:"",text:"Quiero recibir marketing por correo electrónico de casino"},casinosms:{title:"",text:"Quiero recibir marketing por SMS de casino"},casino3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de casino"},casinopush:{title:"",text:"Quiero recibir notificaciones push de casino"},casino:{title:"Promociones de Casino",text:"Quiero recibir promociones de casino"},virtualsportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes virtuales"},virtualsportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes virtuales"},virtualsports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes virtuales"},virtualsportspush:{title:"",text:"Quiero recibir notificaciones push de deportes virtuales"},virtualsports:{title:"Promociones de deportes virtuales",text:"Quiero recibir promociones de casino"}},"pt-br":{termsandconditions:{textPart1:"Eu aceito os ",textPart2:"",link:"Termos e Condições",title:"Termos e Condições"},privacypolicy:{textPart1:"Eu li e entendi a ",textPart2:", conforme publicado neste site e confirmo que tenho mais de 18 anos.",link:"Política de Privacidade",title:"Política de Privacidade"},sms:{title:"Marketing por SMS",text:"Eu consinto em receber comunicações de marketing via SMS."},emailmarketing:{title:"Marketing por e-mail",text:"Eu consinto em receber comunicações de marketing via e-mail."},sportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes"},sportssms:{title:"",text:"Quero receber marketing por SMS de esportes"},sports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes"},sportspush:{title:"",text:"Quero receber notificações push de esportes"},sports:{title:"Promoções Esportivas",text:"Quero receber promoções esportivas"},casinoemail:{title:"",text:"Quero receber marketing por e-mail de cassino"},casinosms:{title:"",text:"Quero receber marketing por SMS de cassino"},casino3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de cassino"},casinopush:{title:"",text:"Quero receber notificações push de cassino"},casino:{title:"Promoções de Cassino",text:"Quero receber promoções de cassino"},virtualsportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes virtuais"},virtualsportssms:{title:"",text:"Quero receber marketing por SMS de esportes virtuais"},virtualsports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes virtuais"},virtualsportspush:{title:"",text:"Quero receber notificações push de esportes virtuais"},virtualsports:{title:"Promoções de esportes virtuais",text:"Quero receber promoções de cassino"}},pt:{termsandconditions:{textPart1:"Eu aceito os ",textPart2:"",link:"Termos e Condições",title:"Termos e Condições"},privacypolicy:{textPart1:"Eu li e entendi a ",textPart2:", conforme publicado neste site e confirmo que tenho mais de 18 anos.",link:"Política de Privacidade",title:"Política de Privacidade"},sms:{title:"Marketing por SMS",text:"Eu consinto em receber comunicações de marketing via SMS."},emailmarketing:{title:"Marketing por e-mail",text:"Eu consinto em receber comunicações de marketing via e-mail."},sportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes"},sportssms:{title:"",text:"Quero receber marketing por SMS de esportes"},sports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes"},sportspush:{title:"",text:"Quero receber notificações push de esportes"},sports:{title:"Promoções Esportivas",text:"Quero receber promoções esportivas"},casinoemail:{title:"",text:"Quero receber marketing por e-mail de cassino"},casinosms:{title:"",text:"Quero receber marketing por SMS de cassino"},casino3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de cassino"},casinopush:{title:"",text:"Quero receber notificações push de cassino"},casino:{title:"Promoções de Cassino",text:"Quero receber promoções de cassino"},virtualsportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes virtuais"},virtualsportssms:{title:"",text:"Quero receber marketing por SMS de esportes virtuais"},virtualsports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes virtuais"},virtualsportspush:{title:"",text:"Quero receber notificações push de esportes virtuais"},virtualsports:{title:"Promoções de esportes virtuais",text:"Quero receber promoções de cassino"}}},n=(t,e,i)=>{let r=(s=a[e||"en"],t.split(".").reduce(((t,e)=>t&&void 0!==t[e]?t[e]:null),s));var s;if(null===r)return t;if(void 0!==i)for(const[t,e]of Object.entries(i)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},l=class{constructor(i){t(this,i),this.userLegislationConsent=e(this,"userLegislationConsent",7),this.consentConfig=[],this.inputRefs={parent:null,children:{}},this.goToTermsAndConditions=()=>{window.postMessage({type:"GoToTermsAndConditions"})},this.goToPrivacyPolicy=()=>{window.postMessage({type:"GoToPrivacyPolicy"})},this.userLegislationConsentHandler=()=>{if(this.group&&this.updateGroupParent(),this.mandatory||this.queried){const t=[];if(this.group)for(const[e,i]of Object.entries(this.inputRefs.children))t.push({type:e,value:i.checked});else t.push({type:this.consentConfig[0].tagCode,value:this.inputRefs.parent.checked});this.userLegislationConsent.emit(t)}},this.updateGroupParent=()=>{this.inputRefs.parent.checked=Object.values(this.inputRefs.children).every((t=>t.checked))},this.toggleGroupChildren=()=>{Object.values(this.inputRefs.children).forEach((t=>t.checked=this.inputRefs.parent.checked))},this.language="en",this.queried=!1,this.group=void 0,this.consentTypes="",this.mandatory="false",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.mbSource=void 0}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&o(this.stylingContainer,`${this.mbSource}.Style`)}async componentWillLoad(){const t=this.consentTypes.split(","),e=this.mandatory.split(",");for(let i=0;i<t.length;++i)this.consentConfig.push({tagCode:t[i],mandatory:"true"===e[i]});var i;this.translationUrl.length>2&&await(i=this.translationUrl,new Promise((t=>{fetch(i).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])a[t]||(a[t]={}),a[t][i]=e[t][i]})),t(!0)}))})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(t){return"termsandconditions"===t?i("p",null,n("termsandconditions.textPart1",this.language),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},n("termsandconditions.link",this.language)),n("termsandconditions.textPart2",this.language)):"privacypolicy"===t?i("p",null,n("privacypolicy.textPart1",this.language),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},n("privacypolicy.link",this.language)),n("privacypolicy.textPart2",this.language)):i("p",null,n(`${t}.text`,this.language))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"255d7bbf241891327f3181047c0203f6b482f14a",ref:t=>this.stylingContainer=t},this.group?[i("h5",{class:"ConsentTitle"},n(`${this.group}.title`,this.language)),i("label",{class:"UserConsent Parent"},i("input",{ref:t=>this.inputRefs.parent=t,type:"checkbox",onInput:this.toggleGroupChildren}),this.determineTextContent(this.group),this.consentConfig.every((t=>t.mandatory))&&i("span",{class:"MandatoryItem"},"*")),i("div",{class:"ConsentGroup"},this.consentConfig.map((t=>i("label",{class:"UserConsent"},i("input",{ref:e=>this.inputRefs.children[t.tagCode]=e,type:"checkbox",onInput:this.userLegislationConsentHandler}),this.determineTextContent(t.tagCode),t.mandatory&&i("span",{class:"MandatoryItem"},"*")))))]:[i("h5",{class:"ConsentTitle"},n(`${this.consentConfig[0].tagCode}.title`,this.language)),i("label",{class:"UserConsent",htmlFor:"userConsent"},i("input",{ref:t=>this.inputRefs.parent=t,type:"checkbox",onInput:this.userLegislationConsentHandler}),this.determineTextContent(this.consentConfig[0].tagCode),this.consentConfig[0].mandatory&&i("span",{class:"MandatoryItem"},"*"))])}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};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}.UserConsent input{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 input:checked{background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-black, #000000)}.UserConsent input: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)}.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}.ConsentGroup{margin-left:25px}';export{l as pam_consent_item}