@everymatrix/player-user-consents 1.65.3 → 1.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (15) hide show
  1. package/dist/cjs/player-user-consents.cjs.entry.js +3 -0
  2. package/dist/collection/utils/locale.utils.js +3 -0
  3. package/dist/esm/player-user-consents.entry.js +3 -0
  4. package/dist/player-user-consents/{p-24d5a2da.entry.js → p-06effacc.entry.js} +1 -1
  5. package/dist/player-user-consents/player-user-consents.esm.js +1 -1
  6. package/package.json +1 -1
  7. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  8. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +0 -0
  9. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.dev.d.ts +0 -0
  10. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/storybook/main.d.ts +0 -0
  11. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/storybook/preview.d.ts +0 -0
  12. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/index.d.ts +0 -0
  13. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  14. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  15. /package/dist/types/Users/{raul.vasile/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -141,6 +141,9 @@ const getTranslations = (url) => {
141
141
  .then((data) => {
142
142
  Object.keys(data).forEach((item) => {
143
143
  for (let key in data[item]) {
144
+ if (!TRANSLATIONS[item]) {
145
+ TRANSLATIONS[item] = {};
146
+ }
144
147
  TRANSLATIONS[item][key] = data[item][key];
145
148
  }
146
149
  });
@@ -135,6 +135,9 @@ export const getTranslations = (url) => {
135
135
  .then((data) => {
136
136
  Object.keys(data).forEach((item) => {
137
137
  for (let key in data[item]) {
138
+ if (!TRANSLATIONS[item]) {
139
+ TRANSLATIONS[item] = {};
140
+ }
138
141
  TRANSLATIONS[item][key] = data[item][key];
139
142
  }
140
143
  });
@@ -137,6 +137,9 @@ const getTranslations = (url) => {
137
137
  .then((data) => {
138
138
  Object.keys(data).forEach((item) => {
139
139
  for (let key in data[item]) {
140
+ if (!TRANSLATIONS[item]) {
141
+ TRANSLATIONS[item] = {};
142
+ }
140
143
  TRANSLATIONS[item][key] = data[item][key];
141
144
  }
142
145
  });
@@ -1 +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
+ 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]||(a[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-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))));
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-06effacc",[[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.65.3",
3
+ "version": "1.66.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",