@everymatrix/pam-consent-modal 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-9dbdce4a.js → index-b2aa2011.js} +4 -56
- package/dist/cjs/index.cjs.js +3 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{pam-consent-modal-bc9246fa.js → pam-consent-modal-247cbbaa.js} +2 -4
- package/dist/cjs/pam-consent-modal.cjs.entry.js +11 -0
- package/dist/cjs/pam-consent-modal.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/pam-consent-modal/pam-consent-modal.js +1 -1
- package/dist/esm/{index-f4cffab8.js → index-25acbfb0.js} +5 -56
- package/dist/esm/index.js +3 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{pam-consent-modal-be38f983.js → pam-consent-modal-058df025.js} +3 -2
- package/dist/esm/pam-consent-modal.entry.js +3 -0
- package/dist/esm/pam-consent-modal.js +3 -3
- package/dist/pam-consent-modal/index.esm.js +1 -1
- package/dist/pam-consent-modal/p-6b1b751c.js +1 -0
- package/dist/pam-consent-modal/p-7d048276.js +2 -0
- package/dist/pam-consent-modal/p-b83f8b04.entry.js +1 -0
- package/dist/pam-consent-modal/pam-consent-modal.esm.js +1 -1
- package/dist/types/components/pam-consent-modal/pam-consent-modal.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/pam-consent-item_2.cjs.entry.js +0 -481
- package/dist/esm/pam-consent-item_2.entry.js +0 -477
- package/dist/pam-consent-modal/p-2af7b124.js +0 -1
- package/dist/pam-consent-modal/p-46389116.js +0 -2
- package/dist/pam-consent-modal/p-da3e62e4.entry.js +0 -1
|
@@ -1,481 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-9dbdce4a.js');
|
|
6
|
-
const pamConsentModal = require('./pam-consent-modal-bc9246fa.js');
|
|
7
|
-
|
|
8
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
9
|
-
const TRANSLATIONS = {
|
|
10
|
-
en: {
|
|
11
|
-
termsandconditions: {
|
|
12
|
-
textPart1: "I accept the ",
|
|
13
|
-
textPart2: "",
|
|
14
|
-
link: "Terms and Conditions",
|
|
15
|
-
title: "Terms and Conditions"
|
|
16
|
-
},
|
|
17
|
-
privacypolicy: {
|
|
18
|
-
textPart1: "I have read and understood the ",
|
|
19
|
-
textPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
20
|
-
link: "Privacy Policy",
|
|
21
|
-
title: "Privacy Policy"
|
|
22
|
-
},
|
|
23
|
-
sms: { title: "SMS marketing", text: "I consent to receive marketing communication via SMS." },
|
|
24
|
-
emailmarketing: { title: "Email marketing", text: "I consent to receive marketing communication via Email." },
|
|
25
|
-
sportsemail: { title: "", text: "I want to receive Sports email marketing" },
|
|
26
|
-
sportssms: { title: "", text: "I want to receive Sports SMS marketing" },
|
|
27
|
-
sports3rdparty: { title: "", text: "I want to receive Sports phone call marketing" },
|
|
28
|
-
sportspush: { title: "", text: "I want to receive Sports push notifications" },
|
|
29
|
-
sports: { title: "Sports Promotions", text: "I want to receive Sports promotions" },
|
|
30
|
-
casinoemail: { title: "", text: "I want to receive Casino email marketing" },
|
|
31
|
-
casinosms: { title: "", text: "I want to receive Casino SMS marketing" },
|
|
32
|
-
casino3rdparty: { title: "", text: "I want to receive Casino phone call marketing" },
|
|
33
|
-
casinopush: { title: "", text: "I want to receive Casino push notifications" },
|
|
34
|
-
casino: { title: "Casino Promotions", text: "I want to receive Casino promotions" },
|
|
35
|
-
virtualsportsemail: { title: "", text: "I want to receive Virtual Sports email marketing" },
|
|
36
|
-
virtualsportssms: { title: "", text: "I want to receive Virtual Sports SMS marketing" },
|
|
37
|
-
virtualsports3rdparty: { title: "", text: "I want to receive Virtual Sports phone call marketing" },
|
|
38
|
-
virtualsportspush: { title: "", text: "I want to receive Virtual Sports push notifications" },
|
|
39
|
-
virtualsports: { title: "Virtual Sports Promotions", text: "I want to receive Casino promotions" }
|
|
40
|
-
},
|
|
41
|
-
ro: {
|
|
42
|
-
termsandconditions: {
|
|
43
|
-
textPart1: "Accept ",
|
|
44
|
-
textPart2: "",
|
|
45
|
-
link: "Termenii și condițiile",
|
|
46
|
-
title: "Termenii și condițiile"
|
|
47
|
-
},
|
|
48
|
-
privacypolicy: {
|
|
49
|
-
textPart1: "Am citit și înțeles ",
|
|
50
|
-
textPart2: ", așa cum este publicat pe acest site și confirm că am peste 18 ani.",
|
|
51
|
-
link: "Politica de confidențialitate",
|
|
52
|
-
title: "Politica de confidențialitate"
|
|
53
|
-
},
|
|
54
|
-
sms: { title: "Marketing prin SMS", text: "Îmi dau consimțământul pentru a primi comunicări de marketing prin SMS." },
|
|
55
|
-
emailmarketing: { title: "Marketing prin e-mail", text: "Îmi dau consimțământul pentru a primi comunicări de marketing prin e-mail." },
|
|
56
|
-
sportsemail: { title: "", text: "Vreau să primesc marketing prin e-mail pentru sporturi" },
|
|
57
|
-
sportssms: { title: "", text: "Vreau să primesc marketing prin SMS pentru sporturi" },
|
|
58
|
-
sports3rdparty: { title: "", text: "Vreau să primesc marketing prin apel telefonic pentru sporturi" },
|
|
59
|
-
sportspush: { "title": "", "text": "Vreau să primesc notificări push pentru sporturi" },
|
|
60
|
-
sports: { title: "Promoții Sportive", text: "Vreau să primesc promoții sportive" },
|
|
61
|
-
casinoemail: { title: "", text: "Vreau să primesc marketing prin e-mail pentru cazinou" },
|
|
62
|
-
casinosms: { title: "", text: "Vreau să primesc marketing prin SMS pentru cazinou" },
|
|
63
|
-
casino3rdparty: { title: "", text: "Vreau să primesc marketing prin apel telefonic pentru cazinou" },
|
|
64
|
-
casinopush: { "title": "", "text": "Vreau să primesc notificări push pentru cazinou" },
|
|
65
|
-
casino: { title: "Promoții de Cazino", text: "Vreau să primesc promoții de cazino" },
|
|
66
|
-
virtualsportsemail: { title: "", text: "Vreau să primesc marketing prin e-mail pentru sporturi virtuale" },
|
|
67
|
-
virtualsportssms: { title: "", text: "Vreau să primesc marketing prin SMS pentru sporturi virtuale" },
|
|
68
|
-
virtualsports3rdparty: { title: "", text: "Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale" },
|
|
69
|
-
virtualsportspush: { "title": "", "text": "Vreau să primesc notificări push pentru sporturi virtuale" },
|
|
70
|
-
virtualsports: { title: "Promoții pentru sporturi virtuale", text: "Vreau să primesc promoții de cazino" }
|
|
71
|
-
},
|
|
72
|
-
fr: {
|
|
73
|
-
termsandconditions: {
|
|
74
|
-
textPart1: "J'accepte les ",
|
|
75
|
-
textPart2: "",
|
|
76
|
-
link: "Termes et Conditions",
|
|
77
|
-
title: "Termes et Conditions"
|
|
78
|
-
},
|
|
79
|
-
privacypolicy: {
|
|
80
|
-
textPart1: "J'ai lu et compris la ",
|
|
81
|
-
textPart2: ", telle que publiée sur ce site et je confirme que j'ai plus de 18 ans.",
|
|
82
|
-
link: "Politique de Confidentialité",
|
|
83
|
-
title: "Politique de Confidentialité"
|
|
84
|
-
},
|
|
85
|
-
sms: { title: "Marketing par SMS", text: "Je consens à recevoir des communications marketing par SMS." },
|
|
86
|
-
emailmarketing: { title: "Marketing par e-mail", text: "Je consens à recevoir des communications marketing par e-mail." },
|
|
87
|
-
sportsemail: { title: "", text: "Je veux recevoir des e-mails marketing pour les sports" },
|
|
88
|
-
sportssms: { title: "", text: "Je veux recevoir des SMS marketing pour les sports" },
|
|
89
|
-
sports3rdparty: { title: "", text: "Je veux recevoir des appels marketing pour les sports" },
|
|
90
|
-
sportspush: { "title": "", "text": "Je veux recevoir des notifications push pour les sports" },
|
|
91
|
-
sports: { title: "Promotions Sportives", text: "Je veux recevoir des promotions sportives" },
|
|
92
|
-
casinoemail: { title: "", text: "Je veux recevoir des e-mails marketing pour le casino" },
|
|
93
|
-
casinosms: { title: "", text: "Je veux recevoir des SMS marketing pour le casino" },
|
|
94
|
-
casino3rdparty: { title: "", text: "Je veux recevoir des appels marketing pour le casino" },
|
|
95
|
-
casinopush: { "title": "", "text": "Je veux recevoir des notifications push pour le casino" },
|
|
96
|
-
casino: { title: "Promotions de Casino", text: "Je veux recevoir des promotions de casino" },
|
|
97
|
-
virtualsportsemail: { title: "", text: "Je veux recevoir des e-mails marketing pour les sports virtuels" },
|
|
98
|
-
virtualsportssms: { title: "", text: "Je veux recevoir des SMS marketing pour les sports virtuels" },
|
|
99
|
-
virtualsports3rdparty: { title: "", text: "Je veux recevoir des appels marketing pour les sports virtuels" },
|
|
100
|
-
virtualsportspush: { "title": "", "text": "Je veux recevoir des notifications push pour les sports virtuels" },
|
|
101
|
-
virtualsports: { title: "Promotions de sports virtuels", text: "Je veux recevoir des promotions de casino" }
|
|
102
|
-
},
|
|
103
|
-
es: {
|
|
104
|
-
termsandconditions: {
|
|
105
|
-
textPart1: "Acepto los ",
|
|
106
|
-
textPart2: "",
|
|
107
|
-
link: "Términos y Condiciones",
|
|
108
|
-
title: "Términos y Condiciones"
|
|
109
|
-
},
|
|
110
|
-
privacypolicy: {
|
|
111
|
-
textPart1: "He leído y entendido la ",
|
|
112
|
-
textPart2: ", tal como se publica en este sitio y confirmo que tengo más de 18 años.",
|
|
113
|
-
link: "Política de Privacidad",
|
|
114
|
-
title: "Política de Privacidad"
|
|
115
|
-
},
|
|
116
|
-
sms: { title: "Marketing por SMS", text: "Consiento recibir comunicaciones de marketing por SMS." },
|
|
117
|
-
emailmarketing: { title: "Marketing por correo electrónico", text: "Consiento recibir comunicaciones de marketing por correo electrónico." },
|
|
118
|
-
sportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes" },
|
|
119
|
-
sportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes" },
|
|
120
|
-
sports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes" },
|
|
121
|
-
sportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes" },
|
|
122
|
-
sports: { title: "Promociones Deportivas", text: "Quiero recibir promociones deportivas" },
|
|
123
|
-
casinoemail: { title: "", text: "Quiero recibir marketing por correo electrónico de casino" },
|
|
124
|
-
casinosms: { title: "", text: "Quiero recibir marketing por SMS de casino" },
|
|
125
|
-
casino3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de casino" },
|
|
126
|
-
casinopush: { "title": "", "text": "Quiero recibir notificaciones push de casino" },
|
|
127
|
-
casino: { title: "Promociones de Casino", text: "Quiero recibir promociones de casino" },
|
|
128
|
-
virtualsportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes virtuales" },
|
|
129
|
-
virtualsportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes virtuales" },
|
|
130
|
-
virtualsports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes virtuales" },
|
|
131
|
-
virtualsportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes virtuales" },
|
|
132
|
-
virtualsports: { title: "Promociones de deportes virtuales", text: "Quiero recibir promociones de casino" }
|
|
133
|
-
},
|
|
134
|
-
de: {
|
|
135
|
-
termsandconditions: {
|
|
136
|
-
textPart1: "Ich akzeptiere die ",
|
|
137
|
-
textPart2: "",
|
|
138
|
-
link: "Allgemeinen Geschäftsbedingungen",
|
|
139
|
-
title: "Allgemeinen Geschäftsbedingungen"
|
|
140
|
-
},
|
|
141
|
-
privacypolicy: {
|
|
142
|
-
textPart1: "Ich habe die ",
|
|
143
|
-
textPart2: " gelesen und verstanden, wie auf dieser Seite veröffentlicht, und bestätige, dass ich über 18 Jahre alt bin.",
|
|
144
|
-
link: "Datenschutzrichtlinie",
|
|
145
|
-
title: "Datenschutzrichtlinie"
|
|
146
|
-
},
|
|
147
|
-
sms: { title: "SMS-Marketing", text: "Ich stimme zu, Marketingkommunikation per SMS zu erhalten." },
|
|
148
|
-
emailmarketing: { title: "E-Mail-Marketing", text: "Ich stimme zu, Marketingkommunikation per E-Mail zu erhalten." },
|
|
149
|
-
sportsemail: { title: "", text: "Ich möchte Sport-Marketing-E-Mails erhalten" },
|
|
150
|
-
sportssms: { title: "", text: "Ich möchte Sport-Marketing-SMS erhalten" },
|
|
151
|
-
sports3rdparty: { title: "", text: "Ich möchte Sport-Marketing-Anrufe erhalten" },
|
|
152
|
-
sports: { title: "Sportaktionen", text: "Ich möchte Sportaktionen erhalten" },
|
|
153
|
-
sportspush: { "title": "", "text": "Ich möchte Push-Benachrichtigungen für Sport erhalten" },
|
|
154
|
-
casinoemail: { title: "", text: "Ich möchte Casino-Marketing-E-Mails erhalten" },
|
|
155
|
-
casinosms: { title: "", text: "Ich möchte Casino-Marketing-SMS erhalten" },
|
|
156
|
-
casino3rdparty: { title: "", text: "Ich möchte Casino-Marketing-Anrufe erhalten" },
|
|
157
|
-
casinopush: { "title": "", "text": "Ich möchte Push-Benachrichtigungen für das Casino erhalten" },
|
|
158
|
-
casino: { title: "Casinoaktionen", text: "Ich möchte Casinoaktionen erhalten" },
|
|
159
|
-
virtualsportsemail: { title: "", text: "Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten" },
|
|
160
|
-
virtualsportssms: { title: "", text: "Ich möchte Marketing-SMS für virtuelle Sportarten erhalten" },
|
|
161
|
-
virtualsports3rdparty: { title: "", text: "Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten" },
|
|
162
|
-
virtualsportspush: { "title": "", "text": "Ich möchte Push-Benachrichtigungen für virtuelle Sportarten erhalten" },
|
|
163
|
-
virtualsports: { title: "Promotions de sports virtuels", text: "Ich möchte Casinoaktionen erhalten" }
|
|
164
|
-
},
|
|
165
|
-
hr: {
|
|
166
|
-
termsandconditions: {
|
|
167
|
-
textPart1: "Prihvaćam ",
|
|
168
|
-
textPart2: "",
|
|
169
|
-
link: "Uvjeti i odredbe",
|
|
170
|
-
title: "Uvjeti i odredbe"
|
|
171
|
-
},
|
|
172
|
-
privacypolicy: {
|
|
173
|
-
textPart1: "Pročitao/la sam i razumio/la ",
|
|
174
|
-
textPart2: ", kako je objavljeno na ovoj stranici i potvrđujem da imam više od 18 godina.",
|
|
175
|
-
link: "Pravila o privatnosti",
|
|
176
|
-
title: "Pravila o privatnosti"
|
|
177
|
-
},
|
|
178
|
-
sms: { title: "SMS marketing", text: "Slažem se primati marketinške komunikacije putem SMS-a." },
|
|
179
|
-
emailmarketing: { title: "E-mail marketing", text: "Slažem se primati marketinške komunikacije putem e-maila." },
|
|
180
|
-
sportsemail: { title: "", text: "Želim primati sportski marketing putem e-pošte" },
|
|
181
|
-
sportssms: { title: "", text: "Želim primati sportski marketing putem SMS-a" },
|
|
182
|
-
sports3rdparty: { title: "", text: "Želim primati sportski marketing putem telefonskog poziva" },
|
|
183
|
-
sportspush: { "title": "", "text": "Želim primati push obavijesti za sportove" },
|
|
184
|
-
sports: { title: "Sportske Promocije", text: "Želim primati sportske promocije" },
|
|
185
|
-
casinoemail: { title: "", text: "Želim primati kasino marketing putem e-pošte" },
|
|
186
|
-
casinosms: { title: "", text: "Želim primati kasino marketing putem SMS-a" },
|
|
187
|
-
casino3rdparty: { title: "", text: "Želim primati kasino marketing putem telefonskog poziva" },
|
|
188
|
-
casinopush: { "title": "", "text": "Želim primati push obavijesti za kasino" },
|
|
189
|
-
casino: { title: "Promocije Kasina", text: "Želim primati promocije kasina" },
|
|
190
|
-
virtualsportsemail: { title: "", text: "Želim primati marketing putem e-pošte za virtualne sportove" },
|
|
191
|
-
virtualsportssms: { title: "", text: "Želim primati marketing putem SMS-a za virtualne sportove" },
|
|
192
|
-
virtualsports3rdparty: { title: "", text: "Želim primati marketing putem telefonskog poziva za virtualne sportove" },
|
|
193
|
-
virtualsportspush: { "title": "", "text": "Želim primati push obavijesti za virtualne sportove" },
|
|
194
|
-
virtualsports: { title: "Promocije virtualnih sportova", text: "Želim primati promocije kasina" }
|
|
195
|
-
},
|
|
196
|
-
'en-us': {
|
|
197
|
-
termsandconditions: {
|
|
198
|
-
textPart1: "I accept the ",
|
|
199
|
-
textPart2: "",
|
|
200
|
-
link: "Terms and Conditions",
|
|
201
|
-
title: "Terms and Conditions"
|
|
202
|
-
},
|
|
203
|
-
privacypolicy: {
|
|
204
|
-
textPart1: "I have read and understood the ",
|
|
205
|
-
textPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
206
|
-
link: "Privacy Policy",
|
|
207
|
-
title: "Privacy Policy"
|
|
208
|
-
},
|
|
209
|
-
sms: { title: "SMS marketing", text: "I consent to receive marketing communication via SMS." },
|
|
210
|
-
emailmarketing: { title: "Email marketing", text: "I consent to receive marketing communication via Email." },
|
|
211
|
-
sportsemail: { title: "", text: "I want to receive Sports email marketing" },
|
|
212
|
-
sportssms: { title: "", text: "I want to receive Sports SMS marketing" },
|
|
213
|
-
sports3rdparty: { title: "", text: "I want to receive Sports phone call marketing" },
|
|
214
|
-
sportspush: { title: "", text: "I want to receive Sports push notifications" },
|
|
215
|
-
sports: { title: "Sports Promotions", text: "I want to receive Sports promotions" },
|
|
216
|
-
casinoemail: { title: "", text: "I want to receive Casino email marketing" },
|
|
217
|
-
casinosms: { title: "", text: "I want to receive Casino SMS marketing" },
|
|
218
|
-
casino3rdparty: { title: "", text: "I want to receive Casino phone call marketing" },
|
|
219
|
-
casinopush: { title: "", text: "I want to receive Casino push notifications" },
|
|
220
|
-
casino: { title: "Casino Promotions", text: "I want to receive Casino promotions" },
|
|
221
|
-
virtualsportsemail: { title: "", text: "I want to receive Virtual Sports email marketing" },
|
|
222
|
-
virtualsportssms: { title: "", text: "I want to receive Virtual Sports SMS marketing" },
|
|
223
|
-
virtualsports3rdparty: { title: "", text: "I want to receive Virtual Sports phone call marketing" },
|
|
224
|
-
virtualsportspush: { title: "", text: "I want to receive Virtual Sports push notifications" },
|
|
225
|
-
virtualsports: { title: "Virtual Sports Promotions", text: "I want to receive Casino promotions" }
|
|
226
|
-
},
|
|
227
|
-
'es-mx': {
|
|
228
|
-
termsandconditions: {
|
|
229
|
-
textPart1: "Acepto los ",
|
|
230
|
-
textPart2: "",
|
|
231
|
-
link: "Términos y Condiciones",
|
|
232
|
-
title: "Términos y Condiciones"
|
|
233
|
-
},
|
|
234
|
-
privacypolicy: {
|
|
235
|
-
textPart1: "He leído y entendido la ",
|
|
236
|
-
textPart2: ", tal como se publica en este sitio y confirmo que tengo más de 18 años.",
|
|
237
|
-
link: "Política de Privacidad",
|
|
238
|
-
title: "Política de Privacidad"
|
|
239
|
-
},
|
|
240
|
-
sms: { title: "Marketing por SMS", text: "Consiento recibir comunicaciones de marketing por SMS." },
|
|
241
|
-
emailmarketing: { title: "Marketing por correo electrónico", text: "Consiento recibir comunicaciones de marketing por correo electrónico." },
|
|
242
|
-
sportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes" },
|
|
243
|
-
sportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes" },
|
|
244
|
-
sports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes" },
|
|
245
|
-
sportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes" },
|
|
246
|
-
sports: { title: "Promociones Deportivas", text: "Quiero recibir promociones deportivas" },
|
|
247
|
-
casinoemail: { title: "", text: "Quiero recibir marketing por correo electrónico de casino" },
|
|
248
|
-
casinosms: { title: "", text: "Quiero recibir marketing por SMS de casino" },
|
|
249
|
-
casino3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de casino" },
|
|
250
|
-
casinopush: { "title": "", "text": "Quiero recibir notificaciones push de casino" },
|
|
251
|
-
casino: { title: "Promociones de Casino", text: "Quiero recibir promociones de casino" },
|
|
252
|
-
virtualsportsemail: { title: "", text: "Quiero recibir marketing por correo electrónico de deportes virtuales" },
|
|
253
|
-
virtualsportssms: { title: "", text: "Quiero recibir marketing por SMS de deportes virtuales" },
|
|
254
|
-
virtualsports3rdparty: { title: "", text: "Quiero recibir marketing por llamadas telefónicas de deportes virtuales" },
|
|
255
|
-
virtualsportspush: { "title": "", "text": "Quiero recibir notificaciones push de deportes virtuales" },
|
|
256
|
-
virtualsports: { title: "Promociones de deportes virtuales", text: "Quiero recibir promociones de casino" }
|
|
257
|
-
},
|
|
258
|
-
'pt-br': {
|
|
259
|
-
termsandconditions: {
|
|
260
|
-
textPart1: "Eu aceito os ",
|
|
261
|
-
textPart2: "",
|
|
262
|
-
link: "Termos e Condições",
|
|
263
|
-
title: "Termos e Condições"
|
|
264
|
-
},
|
|
265
|
-
privacypolicy: {
|
|
266
|
-
textPart1: "Eu li e entendi a ",
|
|
267
|
-
textPart2: ", conforme publicado neste site e confirmo que tenho mais de 18 anos.",
|
|
268
|
-
link: "Política de Privacidade",
|
|
269
|
-
title: "Política de Privacidade"
|
|
270
|
-
},
|
|
271
|
-
sms: { title: "Marketing por SMS", text: "Eu consinto em receber comunicações de marketing via SMS." },
|
|
272
|
-
emailmarketing: { title: "Marketing por e-mail", text: "Eu consinto em receber comunicações de marketing via e-mail." },
|
|
273
|
-
sportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes" },
|
|
274
|
-
sportssms: { title: "", text: "Quero receber marketing por SMS de esportes" },
|
|
275
|
-
sports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes" },
|
|
276
|
-
sportspush: { "title": "", "text": "Quero receber notificações push de esportes" },
|
|
277
|
-
sports: { title: "Promoções Esportivas", text: "Quero receber promoções esportivas" },
|
|
278
|
-
casinoemail: { title: "", text: "Quero receber marketing por e-mail de cassino" },
|
|
279
|
-
casinosms: { title: "", text: "Quero receber marketing por SMS de cassino" },
|
|
280
|
-
casino3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de cassino" },
|
|
281
|
-
casinopush: { "title": "", "text": "Quero receber notificações push de cassino" },
|
|
282
|
-
casino: { title: "Promoções de Cassino", text: "Quero receber promoções de cassino" },
|
|
283
|
-
virtualsportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes virtuais" },
|
|
284
|
-
virtualsportssms: { title: "", text: "Quero receber marketing por SMS de esportes virtuais" },
|
|
285
|
-
virtualsports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes virtuais" },
|
|
286
|
-
virtualsportspush: { "title": "", "text": "Quero receber notificações push de esportes virtuais" },
|
|
287
|
-
virtualsports: { title: "Promoções de esportes virtuais", text: "Quero receber promoções de cassino" }
|
|
288
|
-
},
|
|
289
|
-
pt: {
|
|
290
|
-
termsandconditions: {
|
|
291
|
-
textPart1: "Eu aceito os ",
|
|
292
|
-
textPart2: "",
|
|
293
|
-
link: "Termos e Condições",
|
|
294
|
-
title: "Termos e Condições"
|
|
295
|
-
},
|
|
296
|
-
privacypolicy: {
|
|
297
|
-
textPart1: "Eu li e entendi a ",
|
|
298
|
-
textPart2: ", conforme publicado neste site e confirmo que tenho mais de 18 anos.",
|
|
299
|
-
link: "Política de Privacidade",
|
|
300
|
-
title: "Política de Privacidade"
|
|
301
|
-
},
|
|
302
|
-
sms: { title: "Marketing por SMS", text: "Eu consinto em receber comunicações de marketing via SMS." },
|
|
303
|
-
emailmarketing: { title: "Marketing por e-mail", text: "Eu consinto em receber comunicações de marketing via e-mail." },
|
|
304
|
-
sportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes" },
|
|
305
|
-
sportssms: { title: "", text: "Quero receber marketing por SMS de esportes" },
|
|
306
|
-
sports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes" },
|
|
307
|
-
sportspush: { "title": "", "text": "Quero receber notificações push de esportes" },
|
|
308
|
-
sports: { title: "Promoções Esportivas", text: "Quero receber promoções esportivas" },
|
|
309
|
-
casinoemail: { title: "", text: "Quero receber marketing por e-mail de cassino" },
|
|
310
|
-
casinosms: { title: "", text: "Quero receber marketing por SMS de cassino" },
|
|
311
|
-
casino3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de cassino" },
|
|
312
|
-
casinopush: { "title": "", "text": "Quero receber notificações push de cassino" },
|
|
313
|
-
casino: { title: "Promoções de Cassino", text: "Quero receber promoções de cassino" },
|
|
314
|
-
virtualsportsemail: { title: "", text: "Quero receber marketing por e-mail de esportes virtuais" },
|
|
315
|
-
virtualsportssms: { title: "", text: "Quero receber marketing por SMS de esportes virtuais" },
|
|
316
|
-
virtualsports3rdparty: { title: "", text: "Quero receber marketing por chamadas telefônicas de esportes virtuais" },
|
|
317
|
-
virtualsportspush: { "title": "", "text": "Quero receber notificações push de esportes virtuais" },
|
|
318
|
-
virtualsports: { title: "Promoções de esportes virtuais", text: "Quero receber promoções de cassino" }
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
const getTranslations = (url) => {
|
|
322
|
-
// fetch url, get the data, replace the TRANSLATIONS content
|
|
323
|
-
return new Promise((resolve) => {
|
|
324
|
-
fetch(url)
|
|
325
|
-
.then((res) => res.json())
|
|
326
|
-
.then((data) => {
|
|
327
|
-
Object.keys(data).forEach((item) => {
|
|
328
|
-
for (let key in data[item]) {
|
|
329
|
-
if (!TRANSLATIONS[item]) {
|
|
330
|
-
TRANSLATIONS[item] = {};
|
|
331
|
-
}
|
|
332
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
resolve(true);
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
const translate = (key, customLang, values) => {
|
|
340
|
-
const lang = customLang || DEFAULT_LANGUAGE;
|
|
341
|
-
const getNestedTranslation = (obj, path) => {
|
|
342
|
-
return path.split('.').reduce((o, k) => (o && o[k] !== undefined ? o[k] : null), obj);
|
|
343
|
-
};
|
|
344
|
-
let translation = getNestedTranslation(TRANSLATIONS[lang], key);
|
|
345
|
-
if (translation === null) {
|
|
346
|
-
return key;
|
|
347
|
-
}
|
|
348
|
-
if (values !== undefined) {
|
|
349
|
-
for (const [k, v] of Object.entries(values)) {
|
|
350
|
-
const regex = new RegExp(`{${k}}`, 'g');
|
|
351
|
-
translation = translation.replace(regex, v);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
return translation;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
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}";
|
|
358
|
-
const PamConsentItemStyle0 = pamConsentItemCss;
|
|
359
|
-
|
|
360
|
-
const PamConsentItem = class {
|
|
361
|
-
constructor(hostRef) {
|
|
362
|
-
index.registerInstance(this, hostRef);
|
|
363
|
-
this.userLegislationConsent = index.createEvent(this, "userLegislationConsent", 7);
|
|
364
|
-
this.consentConfig = [];
|
|
365
|
-
this.inputRefs = { parent: null, children: {} };
|
|
366
|
-
this.goToTermsAndConditions = () => {
|
|
367
|
-
window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
368
|
-
};
|
|
369
|
-
this.goToPrivacyPolicy = () => {
|
|
370
|
-
window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
371
|
-
};
|
|
372
|
-
this.userLegislationConsentHandler = () => {
|
|
373
|
-
if (this.group) {
|
|
374
|
-
this.updateGroupParent();
|
|
375
|
-
}
|
|
376
|
-
if (this.mandatory || this.queried) {
|
|
377
|
-
const consents = [];
|
|
378
|
-
if (this.group) {
|
|
379
|
-
for (const [consentType, inputRef] of Object.entries(this.inputRefs.children)) {
|
|
380
|
-
consents.push({ type: consentType, value: inputRef.checked });
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
consents.push({ type: this.consentConfig[0].tagCode, value: this.inputRefs.parent.checked });
|
|
385
|
-
}
|
|
386
|
-
this.userLegislationConsent.emit(consents);
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
this.updateGroupParent = () => {
|
|
390
|
-
this.inputRefs.parent.checked = Object.values(this.inputRefs.children).every(inputRef => inputRef.checked);
|
|
391
|
-
};
|
|
392
|
-
this.toggleGroupChildren = () => {
|
|
393
|
-
Object.values(this.inputRefs.children).forEach(inputRef => inputRef.checked = this.inputRefs.parent.checked);
|
|
394
|
-
};
|
|
395
|
-
this.language = 'en';
|
|
396
|
-
this.queried = false;
|
|
397
|
-
this.group = undefined;
|
|
398
|
-
this.consentTypes = '';
|
|
399
|
-
this.mandatory = 'false';
|
|
400
|
-
this.clientStyling = '';
|
|
401
|
-
this.clientStylingUrl = '';
|
|
402
|
-
this.translationUrl = '';
|
|
403
|
-
this.mbSource = undefined;
|
|
404
|
-
}
|
|
405
|
-
handleClientStylingChange(newValue, oldValue) {
|
|
406
|
-
if (newValue != oldValue) {
|
|
407
|
-
pamConsentModal.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
handleClientStylingUrlChange(newValue, oldValue) {
|
|
411
|
-
if (newValue != oldValue) {
|
|
412
|
-
pamConsentModal.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
handleMbSourceChange(newValue, oldValue) {
|
|
416
|
-
if (newValue != oldValue) {
|
|
417
|
-
pamConsentModal.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
async componentWillLoad() {
|
|
421
|
-
const consentTypesArray = this.consentTypes.split(',');
|
|
422
|
-
const consentMandatoryArray = this.mandatory.split(',');
|
|
423
|
-
for (let i = 0; i < consentTypesArray.length; ++i) {
|
|
424
|
-
this.consentConfig.push({
|
|
425
|
-
tagCode: consentTypesArray[i],
|
|
426
|
-
mandatory: consentMandatoryArray[i] === 'true'
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
if (this.translationUrl.length > 2) {
|
|
430
|
-
await getTranslations(this.translationUrl);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
componentDidLoad() {
|
|
434
|
-
if (this.stylingContainer) {
|
|
435
|
-
if (this.mbSource)
|
|
436
|
-
pamConsentModal.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
437
|
-
if (this.clientStyling)
|
|
438
|
-
pamConsentModal.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
439
|
-
if (this.clientStylingUrl)
|
|
440
|
-
pamConsentModal.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
disconnectedCallback() {
|
|
444
|
-
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
445
|
-
}
|
|
446
|
-
determineTextContent(consentType) {
|
|
447
|
-
if (consentType === 'termsandconditions') {
|
|
448
|
-
return index.h("p", null, translate('termsandconditions.textPart1', this.language), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsandconditions.link', this.language)), translate('termsandconditions.textPart2', this.language));
|
|
449
|
-
}
|
|
450
|
-
if (consentType === 'privacypolicy') {
|
|
451
|
-
return index.h("p", null, translate('privacypolicy.textPart1', this.language), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacypolicy.link', this.language)), translate('privacypolicy.textPart2', this.language));
|
|
452
|
-
}
|
|
453
|
-
return index.h("p", null, translate(`${consentType}.text`, this.language));
|
|
454
|
-
}
|
|
455
|
-
render() {
|
|
456
|
-
if (this.queried) {
|
|
457
|
-
this.userLegislationConsentHandler();
|
|
458
|
-
}
|
|
459
|
-
return (index.h("div", { key: '255d7bbf241891327f3181047c0203f6b482f14a', ref: el => this.stylingContainer = el }, !this.group
|
|
460
|
-
? [
|
|
461
|
-
index.h("h5", { class: "ConsentTitle" }, translate(`${this.consentConfig[0].tagCode}.title`, this.language)),
|
|
462
|
-
index.h("label", { class: "UserConsent", htmlFor: "userConsent" }, index.h("input", { ref: el => this.inputRefs.parent = el, type: "checkbox", onInput: this.userLegislationConsentHandler }), this.determineTextContent(this.consentConfig[0].tagCode), this.consentConfig[0].mandatory && index.h("span", { class: "MandatoryItem" }, "*"))
|
|
463
|
-
]
|
|
464
|
-
: [
|
|
465
|
-
index.h("h5", { class: "ConsentTitle" }, translate(`${this.group}.title`, this.language)),
|
|
466
|
-
index.h("label", { class: "UserConsent Parent" }, index.h("input", { ref: el => this.inputRefs.parent = el, type: "checkbox", onInput: this.toggleGroupChildren }), this.determineTextContent(this.group), this.consentConfig.every(consent => consent.mandatory) && index.h("span", { class: "MandatoryItem" }, "*")),
|
|
467
|
-
index.h("div", { class: "ConsentGroup" }, this.consentConfig.map((consent) => {
|
|
468
|
-
return (index.h("label", { class: "UserConsent" }, index.h("input", { ref: el => this.inputRefs.children[consent.tagCode] = el, type: "checkbox", onInput: this.userLegislationConsentHandler }), this.determineTextContent(consent.tagCode), consent.mandatory && index.h("span", { class: "MandatoryItem" }, "*")));
|
|
469
|
-
}))
|
|
470
|
-
]));
|
|
471
|
-
}
|
|
472
|
-
static get watchers() { return {
|
|
473
|
-
"clientStyling": ["handleClientStylingChange"],
|
|
474
|
-
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
475
|
-
"mbSource": ["handleMbSourceChange"]
|
|
476
|
-
}; }
|
|
477
|
-
};
|
|
478
|
-
PamConsentItem.style = PamConsentItemStyle0;
|
|
479
|
-
|
|
480
|
-
exports.pam_consent_modal = pamConsentModal.PamConsentModal;
|
|
481
|
-
exports.pam_consent_item = PamConsentItem;
|