@everymatrix/player-user-consents 1.64.5 → 1.64.7

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.
@@ -19,7 +19,13 @@ const TRANSLATIONS = {
19
19
  privacy: "Privacy Policy"
20
20
  },
21
21
  sms: "I consent to receive marketing communication via SMS.",
22
- emailmarketing: "I consent to receive marketing communication via Email."
22
+ emailmarketing: "I consent to receive marketing communication via Email.",
23
+ sportsemail: "I want to receive Sports email marketing",
24
+ sportssms: "I want to receive Sports SMS marketing",
25
+ sports3rdparty: "I want to receive Sports phone call marketing",
26
+ casinoemail: "I want to receive Casino email marketing",
27
+ casinosms: "I want to receive Casino SMS marketing",
28
+ casino3rdparty: "I want to receive Casino phone call marketing"
23
29
  },
24
30
  ro: {
25
31
  termsAndConditions: {
@@ -34,7 +40,13 @@ const TRANSLATIONS = {
34
40
  privacy: "Politica de confidenţialitate"
35
41
  },
36
42
  sms: "Sunt de acord să primesc promoţii de marketing prin SMS.",
37
- emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail."
43
+ emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail.",
44
+ sportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi",
45
+ sportssms: "Vreau să primesc marketing prin SMS pentru sporturi",
46
+ sports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi",
47
+ casinoemail: "Vreau să primesc marketing prin e-mail pentru cazinou",
48
+ casinosms: "Vreau să primesc marketing prin SMS pentru cazinou",
49
+ casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou"
38
50
  },
39
51
  hr: {
40
52
  termsAndConditions: {
@@ -49,7 +61,13 @@ const TRANSLATIONS = {
49
61
  privacyLink: "Politika Privatnosti"
50
62
  },
51
63
  sms: "Želim dobivati marketinški sadržaj putem sms",
52
- emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
64
+ emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila",
65
+ sportsemail: "Želim primati sportski marketing putem e-pošte",
66
+ sportssms: "Želim primati sportski marketing putem SMS-a",
67
+ sports3rdparty: "Želim primati sportski marketing putem telefonskog poziva",
68
+ casinoemail: "Želim primati kasino marketing putem e-pošte",
69
+ casinosms: "Želim primati kasino marketing putem SMS-a",
70
+ casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva"
53
71
  },
54
72
  fr: {
55
73
  termsAndConditions: {
@@ -64,7 +82,13 @@ const TRANSLATIONS = {
64
82
  privacy: "Privacy Policy"
65
83
  },
66
84
  sms: "I consent to receive marketing communication via SMS.",
67
- emailmarketing: "I consent to receive marketing communication via Email."
85
+ emailmarketing: "I consent to receive marketing communication via Email.",
86
+ sportsemail: "Je veux recevoir des e-mails marketing pour les sports",
87
+ sportssms: "Je veux recevoir des SMS marketing pour les sports",
88
+ sports3rdparty: "Je veux recevoir des appels marketing pour les sports",
89
+ casinoemail: "Je veux recevoir des e-mails marketing pour le casino",
90
+ casinosms: "Je veux recevoir des SMS marketing pour le casino",
91
+ casino3rdparty: "Je veux recevoir des appels marketing pour le casino"
68
92
  },
69
93
  cs: {
70
94
  termsAndConditions: {
@@ -79,7 +103,13 @@ const TRANSLATIONS = {
79
103
  privacy: "Privacy Policy"
80
104
  },
81
105
  sms: "I consent to receive marketing communication via SMS.",
82
- emailmarketing: "I consent to receive marketing communication via Email."
106
+ emailmarketing: "I consent to receive marketing communication via Email.",
107
+ sportsemail: "Chci dostávat sportovní marketingové e-maily",
108
+ sportssms: "Chci dostávat sportovní marketingové SMS",
109
+ sports3rdparty: "Chci dostávat sportovní marketingové telefonáty",
110
+ casinoemail: "Chci dostávat marketingové e-maily pro kasino",
111
+ casinosms: "Chci dostávat marketingové SMS pro kasino",
112
+ casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino"
83
113
  },
84
114
  de: {
85
115
  termsAndConditions: {
@@ -94,7 +124,13 @@ const TRANSLATIONS = {
94
124
  privacy: "Privacy Policy"
95
125
  },
96
126
  sms: "I consent to receive marketing communication via SMS.",
97
- emailmarketing: "I consent to receive marketing communication via Email."
127
+ emailmarketing: "I consent to receive marketing communication via Email.",
128
+ sportsemail: "Ich möchte Sport-Marketing-E-Mails erhalten",
129
+ sportssms: "Ich möchte Sport-Marketing-SMS erhalten",
130
+ sports3rdparty: "Ich möchte Sport-Marketing-Anrufe erhalten",
131
+ casinoemail: "Ich möchte Casino-Marketing-E-Mails erhalten",
132
+ casinosms: "Ich möchte Casino-Marketing-SMS erhalten",
133
+ casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten"
98
134
  },
99
135
  };
100
136
  const getTranslations = (url) => {
@@ -13,7 +13,13 @@ const TRANSLATIONS = {
13
13
  privacy: "Privacy Policy"
14
14
  },
15
15
  sms: "I consent to receive marketing communication via SMS.",
16
- emailmarketing: "I consent to receive marketing communication via Email."
16
+ emailmarketing: "I consent to receive marketing communication via Email.",
17
+ sportsemail: "I want to receive Sports email marketing",
18
+ sportssms: "I want to receive Sports SMS marketing",
19
+ sports3rdparty: "I want to receive Sports phone call marketing",
20
+ casinoemail: "I want to receive Casino email marketing",
21
+ casinosms: "I want to receive Casino SMS marketing",
22
+ casino3rdparty: "I want to receive Casino phone call marketing"
17
23
  },
18
24
  ro: {
19
25
  termsAndConditions: {
@@ -28,7 +34,13 @@ const TRANSLATIONS = {
28
34
  privacy: "Politica de confidenţialitate"
29
35
  },
30
36
  sms: "Sunt de acord să primesc promoţii de marketing prin SMS.",
31
- emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail."
37
+ emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail.",
38
+ sportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi",
39
+ sportssms: "Vreau să primesc marketing prin SMS pentru sporturi",
40
+ sports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi",
41
+ casinoemail: "Vreau să primesc marketing prin e-mail pentru cazinou",
42
+ casinosms: "Vreau să primesc marketing prin SMS pentru cazinou",
43
+ casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou"
32
44
  },
33
45
  hr: {
34
46
  termsAndConditions: {
@@ -43,7 +55,13 @@ const TRANSLATIONS = {
43
55
  privacyLink: "Politika Privatnosti"
44
56
  },
45
57
  sms: "Želim dobivati marketinški sadržaj putem sms",
46
- emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
58
+ emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila",
59
+ sportsemail: "Želim primati sportski marketing putem e-pošte",
60
+ sportssms: "Želim primati sportski marketing putem SMS-a",
61
+ sports3rdparty: "Želim primati sportski marketing putem telefonskog poziva",
62
+ casinoemail: "Želim primati kasino marketing putem e-pošte",
63
+ casinosms: "Želim primati kasino marketing putem SMS-a",
64
+ casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva"
47
65
  },
48
66
  fr: {
49
67
  termsAndConditions: {
@@ -58,7 +76,13 @@ const TRANSLATIONS = {
58
76
  privacy: "Privacy Policy"
59
77
  },
60
78
  sms: "I consent to receive marketing communication via SMS.",
61
- emailmarketing: "I consent to receive marketing communication via Email."
79
+ emailmarketing: "I consent to receive marketing communication via Email.",
80
+ sportsemail: "Je veux recevoir des e-mails marketing pour les sports",
81
+ sportssms: "Je veux recevoir des SMS marketing pour les sports",
82
+ sports3rdparty: "Je veux recevoir des appels marketing pour les sports",
83
+ casinoemail: "Je veux recevoir des e-mails marketing pour le casino",
84
+ casinosms: "Je veux recevoir des SMS marketing pour le casino",
85
+ casino3rdparty: "Je veux recevoir des appels marketing pour le casino"
62
86
  },
63
87
  cs: {
64
88
  termsAndConditions: {
@@ -73,7 +97,13 @@ const TRANSLATIONS = {
73
97
  privacy: "Privacy Policy"
74
98
  },
75
99
  sms: "I consent to receive marketing communication via SMS.",
76
- emailmarketing: "I consent to receive marketing communication via Email."
100
+ emailmarketing: "I consent to receive marketing communication via Email.",
101
+ sportsemail: "Chci dostávat sportovní marketingové e-maily",
102
+ sportssms: "Chci dostávat sportovní marketingové SMS",
103
+ sports3rdparty: "Chci dostávat sportovní marketingové telefonáty",
104
+ casinoemail: "Chci dostávat marketingové e-maily pro kasino",
105
+ casinosms: "Chci dostávat marketingové SMS pro kasino",
106
+ casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino"
77
107
  },
78
108
  de: {
79
109
  termsAndConditions: {
@@ -88,7 +118,13 @@ const TRANSLATIONS = {
88
118
  privacy: "Privacy Policy"
89
119
  },
90
120
  sms: "I consent to receive marketing communication via SMS.",
91
- emailmarketing: "I consent to receive marketing communication via Email."
121
+ emailmarketing: "I consent to receive marketing communication via Email.",
122
+ sportsemail: "Ich möchte Sport-Marketing-E-Mails erhalten",
123
+ sportssms: "Ich möchte Sport-Marketing-SMS erhalten",
124
+ sports3rdparty: "Ich möchte Sport-Marketing-Anrufe erhalten",
125
+ casinoemail: "Ich möchte Casino-Marketing-E-Mails erhalten",
126
+ casinosms: "Ich möchte Casino-Marketing-SMS erhalten",
127
+ casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten"
92
128
  },
93
129
  };
94
130
  export const getTranslations = (url) => {
@@ -15,7 +15,13 @@ const TRANSLATIONS = {
15
15
  privacy: "Privacy Policy"
16
16
  },
17
17
  sms: "I consent to receive marketing communication via SMS.",
18
- emailmarketing: "I consent to receive marketing communication via Email."
18
+ emailmarketing: "I consent to receive marketing communication via Email.",
19
+ sportsemail: "I want to receive Sports email marketing",
20
+ sportssms: "I want to receive Sports SMS marketing",
21
+ sports3rdparty: "I want to receive Sports phone call marketing",
22
+ casinoemail: "I want to receive Casino email marketing",
23
+ casinosms: "I want to receive Casino SMS marketing",
24
+ casino3rdparty: "I want to receive Casino phone call marketing"
19
25
  },
20
26
  ro: {
21
27
  termsAndConditions: {
@@ -30,7 +36,13 @@ const TRANSLATIONS = {
30
36
  privacy: "Politica de confidenţialitate"
31
37
  },
32
38
  sms: "Sunt de acord să primesc promoţii de marketing prin SMS.",
33
- emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail."
39
+ emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail.",
40
+ sportsemail: "Vreau să primesc marketing prin e-mail pentru sporturi",
41
+ sportssms: "Vreau să primesc marketing prin SMS pentru sporturi",
42
+ sports3rdparty: "Vreau să primesc marketing prin apel telefonic pentru sporturi",
43
+ casinoemail: "Vreau să primesc marketing prin e-mail pentru cazinou",
44
+ casinosms: "Vreau să primesc marketing prin SMS pentru cazinou",
45
+ casino3rdparty: "Vreau să primesc marketing prin apel telefonic pentru cazinou"
34
46
  },
35
47
  hr: {
36
48
  termsAndConditions: {
@@ -45,7 +57,13 @@ const TRANSLATIONS = {
45
57
  privacyLink: "Politika Privatnosti"
46
58
  },
47
59
  sms: "Želim dobivati marketinški sadržaj putem sms",
48
- emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
60
+ emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila",
61
+ sportsemail: "Želim primati sportski marketing putem e-pošte",
62
+ sportssms: "Želim primati sportski marketing putem SMS-a",
63
+ sports3rdparty: "Želim primati sportski marketing putem telefonskog poziva",
64
+ casinoemail: "Želim primati kasino marketing putem e-pošte",
65
+ casinosms: "Želim primati kasino marketing putem SMS-a",
66
+ casino3rdparty: "Želim primati kasino marketing putem telefonskog poziva"
49
67
  },
50
68
  fr: {
51
69
  termsAndConditions: {
@@ -60,7 +78,13 @@ const TRANSLATIONS = {
60
78
  privacy: "Privacy Policy"
61
79
  },
62
80
  sms: "I consent to receive marketing communication via SMS.",
63
- emailmarketing: "I consent to receive marketing communication via Email."
81
+ emailmarketing: "I consent to receive marketing communication via Email.",
82
+ sportsemail: "Je veux recevoir des e-mails marketing pour les sports",
83
+ sportssms: "Je veux recevoir des SMS marketing pour les sports",
84
+ sports3rdparty: "Je veux recevoir des appels marketing pour les sports",
85
+ casinoemail: "Je veux recevoir des e-mails marketing pour le casino",
86
+ casinosms: "Je veux recevoir des SMS marketing pour le casino",
87
+ casino3rdparty: "Je veux recevoir des appels marketing pour le casino"
64
88
  },
65
89
  cs: {
66
90
  termsAndConditions: {
@@ -75,7 +99,13 @@ const TRANSLATIONS = {
75
99
  privacy: "Privacy Policy"
76
100
  },
77
101
  sms: "I consent to receive marketing communication via SMS.",
78
- emailmarketing: "I consent to receive marketing communication via Email."
102
+ emailmarketing: "I consent to receive marketing communication via Email.",
103
+ sportsemail: "Chci dostávat sportovní marketingové e-maily",
104
+ sportssms: "Chci dostávat sportovní marketingové SMS",
105
+ sports3rdparty: "Chci dostávat sportovní marketingové telefonáty",
106
+ casinoemail: "Chci dostávat marketingové e-maily pro kasino",
107
+ casinosms: "Chci dostávat marketingové SMS pro kasino",
108
+ casino3rdparty: "Chci dostávat marketingové telefonáty pro kasino"
79
109
  },
80
110
  de: {
81
111
  termsAndConditions: {
@@ -90,7 +120,13 @@ const TRANSLATIONS = {
90
120
  privacy: "Privacy Policy"
91
121
  },
92
122
  sms: "I consent to receive marketing communication via SMS.",
93
- emailmarketing: "I consent to receive marketing communication via Email."
123
+ emailmarketing: "I consent to receive marketing communication via Email.",
124
+ sportsemail: "Ich möchte Sport-Marketing-E-Mails erhalten",
125
+ sportssms: "Ich möchte Sport-Marketing-SMS erhalten",
126
+ sports3rdparty: "Ich möchte Sport-Marketing-Anrufe erhalten",
127
+ casinoemail: "Ich möchte Casino-Marketing-E-Mails erhalten",
128
+ casinosms: "Ich möchte Casino-Marketing-SMS erhalten",
129
+ casino3rdparty: "Ich möchte Casino-Marketing-Anrufe erhalten"
94
130
  },
95
131
  };
96
132
  const getTranslations = (url) => {
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-8a55ff12.js";const a={en:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"I want to receive Sports email marketing",sportssms:"I want to receive Sports SMS marketing",sports3rdparty:"I want to receive Sports phone call marketing",casinoemail:"I want to receive Casino email marketing",casinosms:"I want to receive Casino SMS marketing",casino3rdparty:"I want to receive Casino phone call marketing"},ro:{termsAndConditions:{acceptPart1:"Accept ",acceptPart2:" platformei. Am citit şi înţeles ",acceptPart3:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",tc:"Termenii şi condiţiile"},privacyPolicy:{readUnderstandPart1:"Am citit şi înţeles ",readUnderstandPart2:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",privacy:"Politica de confidenţialitate"},sms:"Sunt de acord să primesc promoţii de marketing prin SMS.",emailmarketing:"Sunt de acord să primesc promoţii de marketing pe e-mail.",sportsemail:"Vreau să primesc marketing prin e-mail pentru sporturi",sportssms:"Vreau să primesc marketing prin SMS pentru sporturi",sports3rdparty:"Vreau să primesc marketing prin apel telefonic pentru sporturi",casinoemail:"Vreau să primesc marketing prin e-mail pentru cazinou",casinosms:"Vreau să primesc marketing prin SMS pentru cazinou",casino3rdparty:"Vreau să primesc marketing prin apel telefonic pentru cazinou"},hr:{termsAndConditions:{acceptPart1:"Prihvaćam Opće uvjete i odredbe ",acceptPart2:"",acceptPart3:"",tcLink:"Opći uvjeti i odredbe"},privacyPolicy:{readUnderstandPart1:"Pročitao sam i razumijem Politiku Privatnosti ",readUnderstandPart2:", i potvrđujem da imam više od 18 godina",privacyLink:"Politika Privatnosti"},sms:"Želim dobivati marketinški sadržaj putem sms",emailmarketing:"Želim dobivati marketinški sadržaj putem e-maila",sportsemail:"Želim primati sportski marketing putem e-pošte",sportssms:"Želim primati sportski marketing putem SMS-a",sports3rdparty:"Želim primati sportski marketing putem telefonskog poziva",casinoemail:"Želim primati kasino marketing putem e-pošte",casinosms:"Želim primati kasino marketing putem SMS-a",casino3rdparty:"Želim primati kasino marketing putem telefonskog poziva"},fr:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Je veux recevoir des e-mails marketing pour les sports",sportssms:"Je veux recevoir des SMS marketing pour les sports",sports3rdparty:"Je veux recevoir des appels marketing pour les sports",casinoemail:"Je veux recevoir des e-mails marketing pour le casino",casinosms:"Je veux recevoir des SMS marketing pour le casino",casino3rdparty:"Je veux recevoir des appels marketing pour le casino"},cs:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Chci dostávat sportovní marketingové e-maily",sportssms:"Chci dostávat sportovní marketingové SMS",sports3rdparty:"Chci dostávat sportovní marketingové telefonáty",casinoemail:"Chci dostávat marketingové e-maily pro kasino",casinosms:"Chci dostávat marketingové SMS pro kasino",casino3rdparty:"Chci dostávat marketingové telefonáty pro kasino"},de:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email.",sportsemail:"Ich möchte Sport-Marketing-E-Mails erhalten",sportssms:"Ich möchte Sport-Marketing-SMS erhalten",sports3rdparty:"Ich möchte Sport-Marketing-Anrufe erhalten",casinoemail:"Ich möchte Casino-Marketing-E-Mails erhalten",casinosms:"Ich möchte Casino-Marketing-SMS erhalten",casino3rdparty:"Ich möchte Casino-Marketing-Anrufe erhalten"}},r=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])a[t][i]=e[t][i]})),t(!0)}))})),n=(e,t,i)=>{let r=(n=a[t||"en"],e.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:null),n));var n;if(null===r)return e;if(void 0!==i)for(const[e,t]of Object.entries(i)){const i=new RegExp(`{${e}}`,"g");r=r.replace(i,t)}return r};function s(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const o=class{constructor(i){e(this,i),this.userLegislationConsent=t(this,"userLegislationConsent",7),this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.mbSource=void 0,this.textContent=""}handleNewTranslations(){r(this.translationUrl)}handleStylingUrlChange(e,t){e!==t&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl.length>2&&await r(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&function(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,n("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},n("termsAndConditions.tcLink",this.lang)),n("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},n("privacyPolicy.privacyLink",this.lang)),n("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,n("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},n("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return i("p",null,n("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},n("privacyPolicy.privacyLink",this.lang)),n("privacyPolicy.readUnderstandPart2",this.lang))}return i("p",null,n(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"aba04e96251f2f0febe96883b931193fb5ca8c94",ref:e=>this.stylingContainer=e},i("p",{key:"d3f0cbeb5b45b4538462a53c41ab041b176a7c26",class:"ConsentTitle"},this.consentTitle),i("label",{key:"800ab8d45e87b075402c3178e60a16866d0321d4",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"919c15c353a8146661eca2870e7a63f7c689953e",ref:e=>this.checkboxInput=e,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&i("span",{key:"f7126adee1ba5540837da4b852961d08a9eae857",class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}}};o.style=':host{display:block;font-family:inherit}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:center}.MandatoryItem{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emw--color-primary), #52d004;font-weight:bold}#userConsent{appearance:none;width:18px;border-radius:3px;height:18px;border:1px solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;cursor:pointer;position:relative}#userConsent:checked{background-color:var(--emw--color-white), #FFFFFF;border:1px solid var(--emw--color-black, #000000)}#userConsent:checked::after{content:"";position:absolute;width:4px;height:8px;border:solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;border-width:0 2px 2px 0;top:2px;left:5px;transform:rotate(45deg)}';export{o as player_user_consents}
@@ -1 +1 @@
1
- import{p as n,b as t}from"./p-8a55ff12.js";export{s as setNonce}from"./p-8a55ff12.js";import{g as e}from"./p-e1255160.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((async n=>(await e(),t([["p-79525793",[[1,"player-user-consents",{lang:[1537],queried:[516],consentType:[513,"consent-type"],mandatory:[516],gmVersion:[1,"gm-version"],consentTitle:[513,"consent-title"],clientStyling:[1,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],mbSource:[513,"mb-source"],textContent:[32]},null,{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}]]]],n))));
1
+ import{p as n,b as t}from"./p-8a55ff12.js";export{s as setNonce}from"./p-8a55ff12.js";import{g as e}from"./p-e1255160.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((async n=>(await e(),t([["p-24d5a2da",[[1,"player-user-consents",{lang:[1537],queried:[516],consentType:[513,"consent-type"],mandatory:[516],gmVersion:[1,"gm-version"],consentTitle:[513,"consent-title"],clientStyling:[1,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],mbSource:[513,"mb-source"],textContent:[32]},null,{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}]]]],n))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-user-consents",
3
- "version": "1.64.5",
3
+ "version": "1.64.7",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i}from"./p-8a55ff12.js";const a={en:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},ro:{termsAndConditions:{acceptPart1:"Accept ",acceptPart2:" platformei. Am citit şi înţeles ",acceptPart3:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",tc:"Termenii şi condiţiile"},privacyPolicy:{readUnderstandPart1:"Am citit şi înţeles ",readUnderstandPart2:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",privacy:"Politica de confidenţialitate"},sms:"Sunt de acord să primesc promoţii de marketing prin SMS.",emailmarketing:"Sunt de acord să primesc promoţii de marketing pe e-mail."},hr:{termsAndConditions:{acceptPart1:"Prihvaćam Opće uvjete i odredbe ",acceptPart2:"",acceptPart3:"",tcLink:"Opći uvjeti i odredbe"},privacyPolicy:{readUnderstandPart1:"Pročitao sam i razumijem Politiku Privatnosti ",readUnderstandPart2:", i potvrđujem da imam više od 18 godina",privacyLink:"Politika Privatnosti"},sms:"Želim dobivati marketinški sadržaj putem sms",emailmarketing:"Želim dobivati marketinški sadržaj putem e-maila"},fr:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},cs:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},de:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."}},n=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])a[e][i]=t[e][i]})),e(!0)}))})),r=(t,e,i)=>{let n=(r=a[e||"en"],t.split(".").reduce(((t,e)=>t&&void 0!==t[e]?t[e]:null),r));var r;if(null===n)return t;if(void 0!==i)for(const[t,e]of Object.entries(i)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n};function o(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}const s=class{constructor(i){t(this,i),this.userLegislationConsent=e(this,"userLegislationConsent",7),this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.mbSource=void 0,this.textContent=""}handleNewTranslations(){n(this.translationUrl)}handleStylingUrlChange(t,e){t!==e&&o(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl.length>2&&await n(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&function(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,r("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},r("termsAndConditions.tcLink",this.lang)),r("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},r("privacyPolicy.privacyLink",this.lang)),r("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,r("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},r("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return i("p",null,r("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},r("privacyPolicy.privacyLink",this.lang)),r("privacyPolicy.readUnderstandPart2",this.lang))}return i("p",null,r(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"aba04e96251f2f0febe96883b931193fb5ca8c94",ref:t=>this.stylingContainer=t},i("p",{key:"d3f0cbeb5b45b4538462a53c41ab041b176a7c26",class:"ConsentTitle"},this.consentTitle),i("label",{key:"800ab8d45e87b075402c3178e60a16866d0321d4",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"919c15c353a8146661eca2870e7a63f7c689953e",ref:t=>this.checkboxInput=t,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&i("span",{key:"f7126adee1ba5540837da4b852961d08a9eae857",class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStylingUrl:["handleStylingUrlChange"]}}};s.style=':host{display:block;font-family:inherit}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:center}.MandatoryItem{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emw--color-primary), #52d004;font-weight:bold}#userConsent{appearance:none;width:18px;border-radius:3px;height:18px;border:1px solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;cursor:pointer;position:relative}#userConsent:checked{background-color:var(--emw--color-white), #FFFFFF;border:1px solid var(--emw--color-black, #000000)}#userConsent:checked::after{content:"";position:absolute;width:4px;height:8px;border:solid var(--emw--color-black, #000000);background-color:var(--emw--color-white), #FFFFFF;border-width:0 2px 2px 0;top:2px;left:5px;transform:rotate(45deg)}';export{s as player_user_consents}