@everymatrix/player-user-consents 1.37.10 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/player-user-consents.cjs.entry.js +12 -12
- package/dist/collection/components/player-user-consents/player-user-consents.js +4 -4
- package/dist/collection/utils/locale.utils.js +9 -9
- package/dist/components/player-user-consents.js +12 -12
- package/dist/esm/player-user-consents.entry.js +12 -12
- package/dist/player-user-consents/p-f88e76d0.entry.js +1 -0
- package/dist/player-user-consents/player-user-consents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/player-user-consents/p-03b2a873.entry.js +0 -1
|
@@ -38,18 +38,18 @@ const TRANSLATIONS = {
|
|
|
38
38
|
},
|
|
39
39
|
hr: {
|
|
40
40
|
termsAndConditions: {
|
|
41
|
-
acceptPart1: "
|
|
42
|
-
acceptPart2: "
|
|
43
|
-
acceptPart3: "
|
|
44
|
-
|
|
41
|
+
acceptPart1: "Prihvaćam Opće uvjete i odredbe ",
|
|
42
|
+
acceptPart2: "",
|
|
43
|
+
acceptPart3: "",
|
|
44
|
+
tcLink: "Opći uvjeti i odredbe"
|
|
45
45
|
},
|
|
46
46
|
privacyPolicy: {
|
|
47
|
-
readUnderstandPart1: "
|
|
48
|
-
readUnderstandPart2: ",
|
|
49
|
-
|
|
47
|
+
readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
|
|
48
|
+
readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
|
|
49
|
+
privacyLink: "Politika Privatnosti"
|
|
50
50
|
},
|
|
51
|
-
sms: "
|
|
52
|
-
emailmarketing: "
|
|
51
|
+
sms: "Želim dobivati marketinški sadržaj putem sms",
|
|
52
|
+
emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
|
|
53
53
|
},
|
|
54
54
|
fr: {
|
|
55
55
|
termsAndConditions: {
|
|
@@ -207,15 +207,15 @@ const PlayerUserConsents = class {
|
|
|
207
207
|
determineTextContent() {
|
|
208
208
|
if (this.gmVersion === 'gmcore') {
|
|
209
209
|
if (this.consentType === 'termsandconditions') {
|
|
210
|
-
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
210
|
+
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)), translate('termsAndConditions.acceptPart2', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('termsAndConditions.acceptPart3', this.lang));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
if (this.gmVersion === 'gm16') {
|
|
214
214
|
if (this.consentType === 'termsandconditions') {
|
|
215
|
-
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
215
|
+
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
|
|
216
216
|
}
|
|
217
217
|
if (this.consentType === 'privacypolicy') {
|
|
218
|
-
return index.h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.
|
|
218
|
+
return index.h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('privacyPolicy.readUnderstandPart2', this.lang));
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return index.h("p", null, translate(this.consentType, this.lang));
|
|
@@ -75,9 +75,9 @@ export class PlayerUserConsents {
|
|
|
75
75
|
if (this.consentType === 'termsandconditions') {
|
|
76
76
|
return h("p", null,
|
|
77
77
|
translate('termsAndConditions.acceptPart1', this.lang),
|
|
78
|
-
h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
78
|
+
h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)),
|
|
79
79
|
translate('termsAndConditions.acceptPart2', this.lang),
|
|
80
|
-
h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.
|
|
80
|
+
h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)),
|
|
81
81
|
translate('termsAndConditions.acceptPart3', this.lang));
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -85,12 +85,12 @@ export class PlayerUserConsents {
|
|
|
85
85
|
if (this.consentType === 'termsandconditions') {
|
|
86
86
|
return h("p", null,
|
|
87
87
|
translate('termsAndConditions.acceptPart1', this.lang),
|
|
88
|
-
h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
88
|
+
h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
|
|
89
89
|
}
|
|
90
90
|
if (this.consentType === 'privacypolicy') {
|
|
91
91
|
return h("p", null,
|
|
92
92
|
translate('privacyPolicy.readUnderstandPart1', this.lang),
|
|
93
|
-
h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.
|
|
93
|
+
h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)),
|
|
94
94
|
translate('privacyPolicy.readUnderstandPart2', this.lang));
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -32,18 +32,18 @@ const TRANSLATIONS = {
|
|
|
32
32
|
},
|
|
33
33
|
hr: {
|
|
34
34
|
termsAndConditions: {
|
|
35
|
-
acceptPart1: "
|
|
36
|
-
acceptPart2: "
|
|
37
|
-
acceptPart3: "
|
|
38
|
-
|
|
35
|
+
acceptPart1: "Prihvaćam Opće uvjete i odredbe ",
|
|
36
|
+
acceptPart2: "",
|
|
37
|
+
acceptPart3: "",
|
|
38
|
+
tcLink: "Opći uvjeti i odredbe"
|
|
39
39
|
},
|
|
40
40
|
privacyPolicy: {
|
|
41
|
-
readUnderstandPart1: "
|
|
42
|
-
readUnderstandPart2: ",
|
|
43
|
-
|
|
41
|
+
readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
|
|
42
|
+
readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
|
|
43
|
+
privacyLink: "Politika Privatnosti"
|
|
44
44
|
},
|
|
45
|
-
sms: "
|
|
46
|
-
emailmarketing: "
|
|
45
|
+
sms: "Želim dobivati marketinški sadržaj putem sms",
|
|
46
|
+
emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
|
|
47
47
|
},
|
|
48
48
|
fr: {
|
|
49
49
|
termsAndConditions: {
|
|
@@ -34,18 +34,18 @@ const TRANSLATIONS = {
|
|
|
34
34
|
},
|
|
35
35
|
hr: {
|
|
36
36
|
termsAndConditions: {
|
|
37
|
-
acceptPart1: "
|
|
38
|
-
acceptPart2: "
|
|
39
|
-
acceptPart3: "
|
|
40
|
-
|
|
37
|
+
acceptPart1: "Prihvaćam Opće uvjete i odredbe ",
|
|
38
|
+
acceptPart2: "",
|
|
39
|
+
acceptPart3: "",
|
|
40
|
+
tcLink: "Opći uvjeti i odredbe"
|
|
41
41
|
},
|
|
42
42
|
privacyPolicy: {
|
|
43
|
-
readUnderstandPart1: "
|
|
44
|
-
readUnderstandPart2: ",
|
|
45
|
-
|
|
43
|
+
readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
|
|
44
|
+
readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
|
|
45
|
+
privacyLink: "Politika Privatnosti"
|
|
46
46
|
},
|
|
47
|
-
sms: "
|
|
48
|
-
emailmarketing: "
|
|
47
|
+
sms: "Želim dobivati marketinški sadržaj putem sms",
|
|
48
|
+
emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
|
|
49
49
|
},
|
|
50
50
|
fr: {
|
|
51
51
|
termsAndConditions: {
|
|
@@ -205,15 +205,15 @@ const PlayerUserConsents$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
205
205
|
determineTextContent() {
|
|
206
206
|
if (this.gmVersion === 'gmcore') {
|
|
207
207
|
if (this.consentType === 'termsandconditions') {
|
|
208
|
-
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
208
|
+
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)), translate('termsAndConditions.acceptPart2', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('termsAndConditions.acceptPart3', this.lang));
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
if (this.gmVersion === 'gm16') {
|
|
212
212
|
if (this.consentType === 'termsandconditions') {
|
|
213
|
-
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
213
|
+
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
|
|
214
214
|
}
|
|
215
215
|
if (this.consentType === 'privacypolicy') {
|
|
216
|
-
return h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.
|
|
216
|
+
return h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('privacyPolicy.readUnderstandPart2', this.lang));
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
return h("p", null, translate(this.consentType, this.lang));
|
|
@@ -34,18 +34,18 @@ const TRANSLATIONS = {
|
|
|
34
34
|
},
|
|
35
35
|
hr: {
|
|
36
36
|
termsAndConditions: {
|
|
37
|
-
acceptPart1: "
|
|
38
|
-
acceptPart2: "
|
|
39
|
-
acceptPart3: "
|
|
40
|
-
|
|
37
|
+
acceptPart1: "Prihvaćam Opće uvjete i odredbe ",
|
|
38
|
+
acceptPart2: "",
|
|
39
|
+
acceptPart3: "",
|
|
40
|
+
tcLink: "Opći uvjeti i odredbe"
|
|
41
41
|
},
|
|
42
42
|
privacyPolicy: {
|
|
43
|
-
readUnderstandPart1: "
|
|
44
|
-
readUnderstandPart2: ",
|
|
45
|
-
|
|
43
|
+
readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
|
|
44
|
+
readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
|
|
45
|
+
privacyLink: "Politika Privatnosti"
|
|
46
46
|
},
|
|
47
|
-
sms: "
|
|
48
|
-
emailmarketing: "
|
|
47
|
+
sms: "Želim dobivati marketinški sadržaj putem sms",
|
|
48
|
+
emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
|
|
49
49
|
},
|
|
50
50
|
fr: {
|
|
51
51
|
termsAndConditions: {
|
|
@@ -203,15 +203,15 @@ const PlayerUserConsents = class {
|
|
|
203
203
|
determineTextContent() {
|
|
204
204
|
if (this.gmVersion === 'gmcore') {
|
|
205
205
|
if (this.consentType === 'termsandconditions') {
|
|
206
|
-
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
206
|
+
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)), translate('termsAndConditions.acceptPart2', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('termsAndConditions.acceptPart3', this.lang));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
if (this.gmVersion === 'gm16') {
|
|
210
210
|
if (this.consentType === 'termsandconditions') {
|
|
211
|
-
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.
|
|
211
|
+
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
|
|
212
212
|
}
|
|
213
213
|
if (this.consentType === 'privacypolicy') {
|
|
214
|
-
return h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.
|
|
214
|
+
return h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('privacyPolicy.readUnderstandPart2', this.lang));
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
return h("p", null, translate(this.consentType, this.lang));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e}from"./p-b1139724.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((i=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((i=>{for(let e in t[i])a[i][e]=t[i][e]})),i(!0)}))})),s=(t,i,e)=>{let n=(s=a[i||"en"],t.split(".").reduce(((t,i)=>t&&void 0!==t[i]?t[i]:null),s));var s;if(null===n)return t;if(void 0!==e)for(const[t,i]of Object.entries(e)){const e=new RegExp(`{${t}}`,"g");n=n.replace(e,i)}return n},r=class{constructor(e){t(this,e),this.userLegislationConsent=i(this,"userLegislationConsent",7),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.translationUrl="",this.textContent="",this.limitStylingAppends=!1,this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}handleNewTranslations(){n(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await n(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return e("p",null,s("termsAndConditions.acceptPart1",this.lang),e("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)),s("termsAndConditions.acceptPart2",this.lang),e("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return e("p",null,s("termsAndConditions.acceptPart1",this.lang),e("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return e("p",null,s("privacyPolicy.readUnderstandPart1",this.lang),e("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("privacyPolicy.readUnderstandPart2",this.lang))}return e("p",null,s(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),e("div",{ref:t=>this.stylingContainer=t},e("p",{class:"ConsentTitle"},this.consentTitle),e("label",{class:"UserConsent",htmlFor:"userConsent"},e("input",{ref:t=>this.checkboxInput=t,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&e("span",{class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style=":host{display:block}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:baseline}.MandatoryItem{color:#f00;font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emfe-w-color-primary);font-weight:bold}";export{r as player_user_consents}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,b as t}from"./p-b1139724.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((n=>t([["p-
|
|
1
|
+
import{p as n,b as t}from"./p-b1139724.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((n=>t([["p-f88e76d0",[[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"],translationUrl:[513,"translation-url"],textContent:[32],limitStylingAppends:[32]}]]]],n)));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-b1139724.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:"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."},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)}))})),s=(t,e,i)=>{let n=(s=a[e||"en"],t.split(".").reduce(((t,e)=>t&&void 0!==t[e]?t[e]:null),s));var s;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},r=class{constructor(i){t(this,i),this.userLegislationConsent=e(this,"userLegislationConsent",7),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.translationUrl="",this.textContent="",this.limitStylingAppends=!1,this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}handleNewTranslations(){n(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await n(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tc",this.lang)),s("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacy",this.lang)),s("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tc",this.lang)));if("privacypolicy"===this.consentType)return i("p",null,s("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacy",this.lang)),s("privacyPolicy.readUnderstandPart2",this.lang))}return i("p",null,s(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{ref:t=>this.stylingContainer=t},i("p",{class:"ConsentTitle"},this.consentTitle),i("label",{class:"UserConsent",htmlFor:"userConsent"},i("input",{ref:t=>this.checkboxInput=t,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&i("span",{class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style=":host{display:block}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:baseline}.MandatoryItem{color:#f00;font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emfe-w-color-primary);font-weight:bold}";export{r as player_user_consents}
|