@everymatrix/temporary-consents 1.55.0 → 1.56.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.
@@ -24,7 +24,7 @@ const NAMESPACE = 'temporary-consents';
24
24
  const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -333,31 +333,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
333
333
  if (nonce != null) {
334
334
  styleElm.setAttribute("nonce", nonce);
335
335
  }
336
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
337
- if (styleContainerNode.nodeName === "HEAD") {
338
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
339
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
340
- styleContainerNode.insertBefore(styleElm, referenceNode2);
341
- } else if ("host" in styleContainerNode) {
342
- if (supportsConstructableStylesheets) {
343
- const stylesheet = new CSSStyleSheet();
344
- stylesheet.replaceSync(style);
345
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
346
- } else {
347
- const existingStyleContainer = styleContainerNode.querySelector("style");
348
- if (existingStyleContainer) {
349
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
350
- } else {
351
- styleContainerNode.prepend(styleElm);
352
- }
353
- }
354
- } else {
355
- styleContainerNode.append(styleElm);
356
- }
357
- }
358
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
359
- styleContainerNode.insertBefore(styleElm, null);
360
- }
336
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
361
337
  }
362
338
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
363
339
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -380,7 +356,7 @@ var attachStyles = (hostRef) => {
380
356
  const scopeId2 = addStyle(
381
357
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
382
358
  cmpMeta);
383
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
359
+ if (flags & 10 /* needsScopedEncapsulation */) {
384
360
  elm["s-sc"] = scopeId2;
385
361
  elm.classList.add(scopeId2 + "-h");
386
362
  }
@@ -428,11 +404,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
404
  if (memberName === "list") {
429
405
  isProp = false;
430
406
  } else if (oldValue == null || elm[memberName] != n) {
431
- if (typeof elm.__lookupSetter__(memberName) === "function") {
432
- elm[memberName] = n;
433
- } else {
434
- elm.setAttribute(memberName, n);
435
- }
407
+ elm[memberName] = n;
436
408
  }
437
409
  } else {
438
410
  elm[memberName] = newValue;
@@ -505,9 +477,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
505
477
  {
506
478
  updateElement(null, newVNode2, isSvgMode);
507
479
  }
508
- const rootNode = elm.getRootNode();
509
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
510
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
480
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
511
481
  elm.classList.add(elm["s-si"] = scopeId);
512
482
  }
513
483
  if (newVNode2.$children$) {
@@ -636,10 +606,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
636
606
  elm.textContent = "";
637
607
  }
638
608
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
639
- } else if (
640
- // don't do this on initial render as it can cause non-hydrated content to be removed
641
- !isInitialRender && BUILD.updatable && oldChildren !== null
642
- ) {
609
+ } else if (oldChildren !== null) {
643
610
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
644
611
  }
645
612
  } else if (oldVNode.$text$ !== text) {
@@ -888,8 +855,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
888
855
  if (this.hasOwnProperty(propName)) {
889
856
  newValue = this[propName];
890
857
  delete this[propName];
891
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
892
- this[propName] == newValue) {
858
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
893
859
  return;
894
860
  } else if (propName == null) {
895
861
  const hostRef = getHostRef(this);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-417efc18.js');
5
+ const index = require('./index-bcfab05e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-417efc18.js');
5
+ const index = require('./index-bcfab05e.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  let TRANSLATIONS = {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-417efc18.js');
5
+ const index = require('./index-bcfab05e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('temporary-consents.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -2,7 +2,7 @@ const NAMESPACE = 'temporary-consents';
2
2
  const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -311,31 +311,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
311
311
  if (nonce != null) {
312
312
  styleElm.setAttribute("nonce", nonce);
313
313
  }
314
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
315
- if (styleContainerNode.nodeName === "HEAD") {
316
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
317
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
318
- styleContainerNode.insertBefore(styleElm, referenceNode2);
319
- } else if ("host" in styleContainerNode) {
320
- if (supportsConstructableStylesheets) {
321
- const stylesheet = new CSSStyleSheet();
322
- stylesheet.replaceSync(style);
323
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
324
- } else {
325
- const existingStyleContainer = styleContainerNode.querySelector("style");
326
- if (existingStyleContainer) {
327
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
328
- } else {
329
- styleContainerNode.prepend(styleElm);
330
- }
331
- }
332
- } else {
333
- styleContainerNode.append(styleElm);
334
- }
335
- }
336
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
337
- styleContainerNode.insertBefore(styleElm, null);
338
- }
314
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
339
315
  }
340
316
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
341
317
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -358,7 +334,7 @@ var attachStyles = (hostRef) => {
358
334
  const scopeId2 = addStyle(
359
335
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
360
336
  cmpMeta);
361
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
337
+ if (flags & 10 /* needsScopedEncapsulation */) {
362
338
  elm["s-sc"] = scopeId2;
363
339
  elm.classList.add(scopeId2 + "-h");
364
340
  }
@@ -406,11 +382,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
406
382
  if (memberName === "list") {
407
383
  isProp = false;
408
384
  } else if (oldValue == null || elm[memberName] != n) {
409
- if (typeof elm.__lookupSetter__(memberName) === "function") {
410
- elm[memberName] = n;
411
- } else {
412
- elm.setAttribute(memberName, n);
413
- }
385
+ elm[memberName] = n;
414
386
  }
415
387
  } else {
416
388
  elm[memberName] = newValue;
@@ -483,9 +455,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
483
455
  {
484
456
  updateElement(null, newVNode2, isSvgMode);
485
457
  }
486
- const rootNode = elm.getRootNode();
487
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
488
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
458
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
489
459
  elm.classList.add(elm["s-si"] = scopeId);
490
460
  }
491
461
  if (newVNode2.$children$) {
@@ -614,10 +584,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
614
584
  elm.textContent = "";
615
585
  }
616
586
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
617
- } else if (
618
- // don't do this on initial render as it can cause non-hydrated content to be removed
619
- !isInitialRender && BUILD.updatable && oldChildren !== null
620
- ) {
587
+ } else if (oldChildren !== null) {
621
588
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
622
589
  }
623
590
  } else if (oldVNode.$text$ !== text) {
@@ -866,8 +833,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
866
833
  if (this.hasOwnProperty(propName)) {
867
834
  newValue = this[propName];
868
835
  delete this[propName];
869
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
870
- this[propName] == newValue) {
836
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
871
837
  return;
872
838
  } else if (propName == null) {
873
839
  const hostRef = getHostRef(this);
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-2541c410.js';
2
- export { s as setNonce } from './index-2541c410.js';
1
+ import { b as bootstrapLazy } from './index-a971e83a.js';
2
+ export { s as setNonce } from './index-a971e83a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2541c410.js';
1
+ import { r as registerInstance, h } from './index-a971e83a.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  let TRANSLATIONS = {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-2541c410.js';
2
- export { s as setNonce } from './index-2541c410.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a971e83a.js';
2
+ export { s as setNonce } from './index-a971e83a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-d44ae3da.js";let i={en:{title:"Participation conditions",description:"Important: Full verification is required in order to be able to use our entire offer. If verification is not completed, it is not possible to withdraw and the betting account will be locked in {daysUntilLockout} days.",declineButton:"Decline and log out",acceptButton:"Accept",loading:"Please wait, loading..."},"en-us":{title:"Participation conditions",description:"Important: Full verification is required in order to be able to use our entire offer. If verification is not completed, it is not possible to withdraw and the betting account will be locked in {daysUntilLockout} days.",declineButton:"Decline and log out",acceptButton:"Accept",loading:"Please wait, loading..."},ro:{title:"Condiții de participare",description:"Important: Verificarea completă este necesară pentru a putea utiliza întreaga ofertă. Dacă verificarea nu este finalizată, retragerile nu sunt posibile, iar contul de pariuri va fi blocat în {daysUntilLockout} zile.",declineButton:"Refuză și deloghează-te",acceptButton:"Acceptă",loading:"Vă rugăm să așteptați, se încarcă..."},hr:{title:"Uvjeti sudjelovanja",description:"Važno: Potrebna je potpuna verifikacija kako biste mogli koristiti našu cjelokupnu ponudu. Ako potvrda nije dovršena, nije moguće podići i račun za klađenje bit će zaključan za {daysUntilLockout} dana.",declineButton:"Odbijte i odjavite se",acceptButton:"Prihvatiti",loading:"Molimo pričekajte, učitavanje..."},"es-mx":{title:"Condiciones de participación",description:"Importante: Una verificación completa es requerida para poder utilizar nuestra oferta. Si no se verifica, no será posible hacer retiros y la cuenta para realizar apuestas será bloqueada.",declineButton:"Declinar y salir",acceptButton:"Aceptar",Loading:"Espere por favor, Cargando..."},"pt-br":{title:"Condições de participação",description:"Importante: É necessária uma verificação completa para poder utilizar a nossa oferta. Se não for verificado, os saques não serão possíveis e a conta de apostas será bloqueada.",declineButton:"Recusar e sair",acceptButton:"Aceitar",Loading:"Espere, por favor, Carregando..."},fr:{title:"Conditions de participation",description:"Important : Une vérification complète est requise pour pouvoir utiliser l'ensemble de notre offre. Si la vérification n'est pas effectuée, les retraits ne seront pas possibles et le compte de paris sera bloqué dans {daysUntilLockout} jours.",declineButton:"Refuser et se déconnecter",acceptButton:"Accepter",loading:"Veuillez patienter, chargement en cours..."},de:{title:"Teilnahmebedingungen",description:"Wichtig: Eine vollständige Verifizierung ist erforderlich, um unser gesamtes Angebot nutzen zu können. Wenn die Verifizierung nicht abgeschlossen wird, sind Auszahlungen nicht möglich und das Wettkonto wird in {daysUntilLockout} Tagen gesperrt.",declineButton:"Ablehnen und ausloggen",acceptButton:"Akzeptieren",loading:"Bitte warten, wird geladen..."},es:{title:"Condiciones de participación",description:"Importante: Se requiere una verificación completa para poder utilizar toda nuestra oferta. Si no se completa la verificación, no será posible realizar retiros y la cuenta de apuestas se bloqueará en {daysUntilLockout} días.",declineButton:"Rechazar y cerrar sesión",acceptButton:"Aceptar",loading:"Por favor, espere, cargando..."},pt:{title:"Condições de participação",description:"Importante: É necessária uma verificação completa para poder utilizar toda a nossa oferta. Se a verificação não for concluída, não será possível realizar saques e a conta de apostas será bloqueada em {daysUntilLockout} dias.",declineButton:"Recusar e sair",acceptButton:"Aceitar",loading:"Por favor, aguarde, carregando..."}};const o=(e,t,o)=>{let n=i[void 0!==t&&t in i?t:"en"][e];if(void 0!==o)for(const[e,t]of Object.entries(o.values)){const i=new RegExp(`{${e}}`,"g");n=n.replace(i,t)}return n},n=class{constructor(t){e(this,t),this.isLoading=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.endpoint=void 0,this.userId=void 0,this.sessionId=void 0,this.daysUntilLockout=void 0,this.lang=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.stylingAppends=!1}componentWillLoad(){const e=[];if(this.endpoint&&this.userId){const t=this.getConsents().then((e=>{this.temporaryAccountConsent=e.consents.some((e=>"temporaryaccountconsent"==e.tagCode))}));e.push(t)}if(this.translationUrl){const o=(t=this.translationUrl,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]||(i[e]={});for(let o in t[e])i[e][o]=t[e][o]})),e(!0)}))})));e.push(o)}var t;return Promise.all(e)}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}getConsents(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`),t=new Headers;t.append("X-SessionId",this.sessionId),t.append("Accept","application/json");const i={method:"GET",headers:t};return new Promise(((t,o)=>{this.isLoading=!0,fetch(e.href,i).then((e=>e.json())).then((e=>{t(e)})).catch((e=>{console.error(e),o(e)})).finally((()=>{this.isLoading=!1}))}))}setConsents(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`),t=new Headers;t.append("X-SessionId",this.sessionId),t.append("Accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({consents:[{tagCode:"temporaryaccountconsent",note:"",status:1}]})};return new Promise(((t,o)=>{this.isLoading=!0,fetch(e.href,i).then((e=>e.json())).then((e=>{t(e)})).catch((e=>{console.error(e),o(e)})).finally((()=>{this.isLoading=!1}))}))}handleDecline(){window.postMessage({type:"TemporaryConsentsDeclined"},window.location.href)}handleAccept(){this.setConsents(),window.postMessage({type:"TemporaryConsentsAccepted"},window.location.href)}render(){if(this.temporaryAccountConsent)return this.isLoading?t("p",null,o("loading",this.lang)):t("div",{class:"TemporaryConsents",ref:e=>this.stylingContainer=e},t("h2",{class:"TemporaryConsentsTitle"}," ",o("title",this.lang)," "),t("p",{class:"TemporaryConsentsText"}," ",o("description",this.lang,{values:{daysUntilLockout:this.daysUntilLockout}})," "),t("div",{class:"TemporaryConsentsButtonsWrapper"},t("button",{class:"TemporaryConsentsButton TemporaryConsentsButtonDecline",onClick:()=>this.handleDecline()},o("declineButton",this.lang)),t("button",{class:"TemporaryConsentsButton TemporaryConsentsButtonAccept",onClick:this.handleAccept},o("acceptButton",this.lang))))}};n.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0}:host{display:block}.TemporaryConsents{max-width:500px;display:flex;gap:35px;flex-direction:column;box-shadow:0px 1px 5px 1px rgba(0, 0, 0, 0.1);padding:20px;font-family:sans-serif}.TemporaryConsentsTitle{text-align:left;font-family:inherit;color:#000;font-weight:400;font-size:18px;display:block;border-bottom:1px solid #000;padding-bottom:10px}.TemporaryConsentsText{font-family:inherit;font-weight:300;font-size:16px}.TemporaryConsentsButtonsWrapper{display:flex;justify-content:space-evenly;gap:50px}.TemporaryConsentsButton{font-family:inherit;font-weight:300;font-size:14px;border:none;padding:10px;min-width:150px;border-radius:4px}.TemporaryConsentsButtonDecline{background-color:transparent;border:1px solid #000}.TemporaryConsentsButtonAccept{color:white;background-color:#000}";export{n as temporary_consents}
1
+ import{r as e,h as t}from"./p-8a0e306f.js";let i={en:{title:"Participation conditions",description:"Important: Full verification is required in order to be able to use our entire offer. If verification is not completed, it is not possible to withdraw and the betting account will be locked in {daysUntilLockout} days.",declineButton:"Decline and log out",acceptButton:"Accept",loading:"Please wait, loading..."},"en-us":{title:"Participation conditions",description:"Important: Full verification is required in order to be able to use our entire offer. If verification is not completed, it is not possible to withdraw and the betting account will be locked in {daysUntilLockout} days.",declineButton:"Decline and log out",acceptButton:"Accept",loading:"Please wait, loading..."},ro:{title:"Condiții de participare",description:"Important: Verificarea completă este necesară pentru a putea utiliza întreaga ofertă. Dacă verificarea nu este finalizată, retragerile nu sunt posibile, iar contul de pariuri va fi blocat în {daysUntilLockout} zile.",declineButton:"Refuză și deloghează-te",acceptButton:"Acceptă",loading:"Vă rugăm să așteptați, se încarcă..."},hr:{title:"Uvjeti sudjelovanja",description:"Važno: Potrebna je potpuna verifikacija kako biste mogli koristiti našu cjelokupnu ponudu. Ako potvrda nije dovršena, nije moguće podići i račun za klađenje bit će zaključan za {daysUntilLockout} dana.",declineButton:"Odbijte i odjavite se",acceptButton:"Prihvatiti",loading:"Molimo pričekajte, učitavanje..."},"es-mx":{title:"Condiciones de participación",description:"Importante: Una verificación completa es requerida para poder utilizar nuestra oferta. Si no se verifica, no será posible hacer retiros y la cuenta para realizar apuestas será bloqueada.",declineButton:"Declinar y salir",acceptButton:"Aceptar",Loading:"Espere por favor, Cargando..."},"pt-br":{title:"Condições de participação",description:"Importante: É necessária uma verificação completa para poder utilizar a nossa oferta. Se não for verificado, os saques não serão possíveis e a conta de apostas será bloqueada.",declineButton:"Recusar e sair",acceptButton:"Aceitar",Loading:"Espere, por favor, Carregando..."},fr:{title:"Conditions de participation",description:"Important : Une vérification complète est requise pour pouvoir utiliser l'ensemble de notre offre. Si la vérification n'est pas effectuée, les retraits ne seront pas possibles et le compte de paris sera bloqué dans {daysUntilLockout} jours.",declineButton:"Refuser et se déconnecter",acceptButton:"Accepter",loading:"Veuillez patienter, chargement en cours..."},de:{title:"Teilnahmebedingungen",description:"Wichtig: Eine vollständige Verifizierung ist erforderlich, um unser gesamtes Angebot nutzen zu können. Wenn die Verifizierung nicht abgeschlossen wird, sind Auszahlungen nicht möglich und das Wettkonto wird in {daysUntilLockout} Tagen gesperrt.",declineButton:"Ablehnen und ausloggen",acceptButton:"Akzeptieren",loading:"Bitte warten, wird geladen..."},es:{title:"Condiciones de participación",description:"Importante: Se requiere una verificación completa para poder utilizar toda nuestra oferta. Si no se completa la verificación, no será posible realizar retiros y la cuenta de apuestas se bloqueará en {daysUntilLockout} días.",declineButton:"Rechazar y cerrar sesión",acceptButton:"Aceptar",loading:"Por favor, espere, cargando..."},pt:{title:"Condições de participação",description:"Importante: É necessária uma verificação completa para poder utilizar toda a nossa oferta. Se a verificação não for concluída, não será possível realizar saques e a conta de apostas será bloqueada em {daysUntilLockout} dias.",declineButton:"Recusar e sair",acceptButton:"Aceitar",loading:"Por favor, aguarde, carregando..."}};const o=(e,t,o)=>{let n=i[void 0!==t&&t in i?t:"en"][e];if(void 0!==o)for(const[e,t]of Object.entries(o.values)){const i=new RegExp(`{${e}}`,"g");n=n.replace(i,t)}return n},n=class{constructor(t){e(this,t),this.isLoading=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.endpoint=void 0,this.userId=void 0,this.sessionId=void 0,this.daysUntilLockout=void 0,this.lang=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.stylingAppends=!1}componentWillLoad(){const e=[];if(this.endpoint&&this.userId){const t=this.getConsents().then((e=>{this.temporaryAccountConsent=e.consents.some((e=>"temporaryaccountconsent"==e.tagCode))}));e.push(t)}if(this.translationUrl){const o=(t=this.translationUrl,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]||(i[e]={});for(let o in t[e])i[e][o]=t[e][o]})),e(!0)}))})));e.push(o)}var t;return Promise.all(e)}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}getConsents(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`),t=new Headers;t.append("X-SessionId",this.sessionId),t.append("Accept","application/json");const i={method:"GET",headers:t};return new Promise(((t,o)=>{this.isLoading=!0,fetch(e.href,i).then((e=>e.json())).then((e=>{t(e)})).catch((e=>{console.error(e),o(e)})).finally((()=>{this.isLoading=!1}))}))}setConsents(){const e=new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`),t=new Headers;t.append("X-SessionId",this.sessionId),t.append("Accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({consents:[{tagCode:"temporaryaccountconsent",note:"",status:1}]})};return new Promise(((t,o)=>{this.isLoading=!0,fetch(e.href,i).then((e=>e.json())).then((e=>{t(e)})).catch((e=>{console.error(e),o(e)})).finally((()=>{this.isLoading=!1}))}))}handleDecline(){window.postMessage({type:"TemporaryConsentsDeclined"},window.location.href)}handleAccept(){this.setConsents(),window.postMessage({type:"TemporaryConsentsAccepted"},window.location.href)}render(){if(this.temporaryAccountConsent)return this.isLoading?t("p",null,o("loading",this.lang)):t("div",{class:"TemporaryConsents",ref:e=>this.stylingContainer=e},t("h2",{class:"TemporaryConsentsTitle"}," ",o("title",this.lang)," "),t("p",{class:"TemporaryConsentsText"}," ",o("description",this.lang,{values:{daysUntilLockout:this.daysUntilLockout}})," "),t("div",{class:"TemporaryConsentsButtonsWrapper"},t("button",{class:"TemporaryConsentsButton TemporaryConsentsButtonDecline",onClick:()=>this.handleDecline()},o("declineButton",this.lang)),t("button",{class:"TemporaryConsentsButton TemporaryConsentsButtonAccept",onClick:this.handleAccept},o("acceptButton",this.lang))))}};n.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0}:host{display:block}.TemporaryConsents{max-width:500px;display:flex;gap:35px;flex-direction:column;box-shadow:0px 1px 5px 1px rgba(0, 0, 0, 0.1);padding:20px;font-family:sans-serif}.TemporaryConsentsTitle{text-align:left;font-family:inherit;color:#000;font-weight:400;font-size:18px;display:block;border-bottom:1px solid #000;padding-bottom:10px}.TemporaryConsentsText{font-family:inherit;font-weight:300;font-size:16px}.TemporaryConsentsButtonsWrapper{display:flex;justify-content:space-evenly;gap:50px}.TemporaryConsentsButton{font-family:inherit;font-weight:300;font-size:14px;border:none;padding:10px;min-width:150px;border-radius:4px}.TemporaryConsentsButtonDecline{background-color:transparent;border:1px solid #000}.TemporaryConsentsButtonAccept{color:white;background-color:#000}";export{n as temporary_consents}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,r=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,d=[],y=[],$=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&f.o?b(v):f.raf(v))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},v=()=>{w(d),w(y),(m=d.length>0)&&f.raf(v)},b=t=>h().then(t),S=$(y,!0),g={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>R});var k=t=>({isOk:!0,isErr:!1,value:t}),E=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return E(t.value);throw"should never get here"}var M,x,P=t=>{if(t.isOk)return t.value;throw t.value},R=t=>{if(t.isErr)return t.value;throw t.value},T=(t,e,...n)=>{let o=null,l=!1,r=!1;const s=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&r?s[s.length-1].i+=o:s.push(l?A(null,o):o),r=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=A(t,null);return c.u=e,s.length>0&&(c.h=s),c},A=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),L={},N=new WeakMap,U=t=>"sc-"+t.$,W=(t,e,n,o,r,s)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=F(n),r=F(o);e.remove(...l.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!l.includes(t))))}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||r)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(H);e=e.replace(q,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},D=/\s/,F=t=>t?t.split(D):[],H="Capture",q=RegExp(H+"$"),G=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||g,r=e.u||g;for(const t of V(Object.keys(l)))t in r||W(o,t,l[t],void 0,n,e.o);for(const t of V(Object.keys(r)))W(o,t,l[t],r[t],n,e.o)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,z=(t,e,n)=>{const o=e.h[n];let l,r,s=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else if(l=o.m=a.createElement(o.p),G(null,o,_),null!=M&&l["s-si"]!==M&&l.classList.add(l["s-si"]=M),o.h)for(s=0;s<o.h.length;++s)r=z(t,o,s),r&&l.appendChild(r);return l["s-hn"]=x,l},B=(t,e,n,o,l,r)=>{let s,i=t;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);l<=r;++l)o[l]&&(s=z(null,n,l),s&&(o[l].m=s,X(i,s,e)))},I=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;Q(e),t&&t.remove()}}},J=(t,e)=>t.p===e.p,K=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,r=e.h,s=e.i;null===s?(G(t,e,_),null!==l&&null!==r?((t,e,n,o,l=!1)=>{let r,s=0,i=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],p=o[f];for(;s<=c&&i<=f;)null==u?u=e[++s]:null==a?a=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:J(u,h)?(K(u,h,l),u=e[++s],h=o[++i]):J(a,p)?(K(a,p,l),a=e[--c],p=o[--f]):J(u,p)?(K(u,p,l),X(t,u.m,a.m.nextSibling),u=e[++s],p=o[--f]):J(a,h)?(K(a,h,l),X(t,a.m,u.m),a=e[--c],h=o[++i]):(r=z(e&&e[i],n,i),h=o[++i],r&&X(u.m.parentNode,r,u.m));s>c?B(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&I(e,s,c)})(o,l,e,r,n):null!==r?(null!==t.i&&(o.textContent=""),B(o,null,e,r,0,r.length-1)):null!==l&&I(l,0,l.length-1)):t.i!==s&&(o.data=s)},Q=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Q)},X=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Y=(t,e)=>{e&&!t.v&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.v=e)))},Z=(t,e)=>{if(t.o|=16,!(4&t.o))return Y(t,t.S),S((()=>tt(t,e)));t.o|=512},tt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(o=it(n,"componentWillLoad")),et(o,(()=>ot(t,n,e)))},et=(t,e)=>nt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),nt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ot=async(t,e,n)=>{var o;const l=t.$hostElement$,r=l["s-rc"];n&&(t=>{const e=t.j,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=i.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let r,s=N.get(t=t.head||t);if(s||N.set(t,s=new Set),!s.has(o)){{r=a.createElement("style"),r.innerHTML=l;const e=null!=(n=f.O)?n:O(a);null!=e&&r.setAttribute("nonce",e),t.insertBefore(r,t.querySelector("link"))}4&e.o&&(r.innerHTML+=c),s&&s.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);lt(t,e,l,n),r&&(r.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>rt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},lt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.j,r=t.k||A(null,null),s=(t=>t&&t.p===L)(e)?e:T(null,null,e);if(x=o.tagName,l.C&&(s.u=s.u||{},l.C.map((([t,e])=>s.u[e]=o[t]))),n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.p=null,s.o|=4,t.k=s,s.m=r.m=o.shadowRoot||o,M=o["s-sc"],K(r,s,n)})(t,e,o)}catch(e){r(e,t.$hostElement$)}return null},rt=t=>{const e=t.$hostElement$,n=t.S;it(t.t,"componentDidRender"),64&t.o||(t.o|=64,ct(e),t.M(e),n||st()),t.v&&(t.v(),t.v=void 0),512&t.o&&b((()=>Z(t,!1))),t.o&=-517},st=()=>{ct(a.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"temporary-consents"}});return t.dispatchEvent(e),e})(u)))},it=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},ct=t=>t.classList.add("hydrated"),ut=(t,e,o)=>{var l,r;const s=t.prototype;if(e.P){const i=Object.entries(null!=(l=e.P)?l:{});if(i.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>n(this).R.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=r.R.get(e),i=r.o,c=r.t;o=((t,e)=>null==t||j(t)?t:1&e?t+"":t)(o,l.P[e][0]),8&i&&void 0!==s||o===s||Number.isNaN(s)&&Number.isNaN(o)||(r.R.set(e,o),c&&2==(18&i)&&Z(r,!1))})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,r){f.jmp((()=>{var i;const c=o.get(t);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const o=n(this),s=null==o?void 0:o.o;if(s&&!(8&s)&&128&s&&r!==l){const n=o.t,s=null==(i=e.T)?void 0:i[t];null==s||s.forEach((e=>{null!=n[e]&&n[e].call(n,r,l,t)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.T)?r:{}),...i.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const r=n[1]||t;return o.set(r,t),512&n[0]&&(null==(l=e.C)||l.push([t,r])),r}))]))}}return t},at=(t,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),v=[];let b,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],$:o[1],P:o[2],A:o[3]};4&l.o&&(g=!0),l.P=o[2],l.C=[];const c=l.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,j:n,R:new Map};o.L=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),S?v.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.j,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(e,e.S=n);break}}o.P&&Object.entries(o.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.N){const t=(t=>{const e=t.$.replace(/-/g,"_"),n=t.N;if(!n)return;const o=s.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.$}#${e.U}" was not found`);o.isProxied||(ut(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){r(t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=U(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.S,c=()=>Z(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};l.N=t[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,ut(u,l,1)))}))})),h.length>0&&(g&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=f.O)?l:O(a);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,v.length?v.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(st,30)))},ft=t=>f.O=t;export{at as b,T as h,h as p,o as r,ft as s}
@@ -1 +1 @@
1
- import{p as t,b as n}from"./p-d44ae3da.js";export{s as setNonce}from"./p-d44ae3da.js";import{g as i}from"./p-e1255160.js";(()=>{const s=import.meta.url,n={};return""!==s&&(n.resourcesUrl=new URL(".",s).href),t(n)})().then((async s=>(await i(),n([["p-cc111f92",[[1,"temporary-consents",{endpoint:[513],userId:[513,"user-id"],sessionId:[513,"session-id"],daysUntilLockout:[513,"days-until-lockout"],lang:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],stylingAppends:[32]}]]]],s))));
1
+ import{p as t,b as n}from"./p-8a0e306f.js";export{s as setNonce}from"./p-8a0e306f.js";import{g as i}from"./p-e1255160.js";(()=>{const s=import.meta.url,n={};return""!==s&&(n.resourcesUrl=new URL(".",s).href),t(n)})().then((async s=>(await i(),n([["p-4dd72273",[[1,"temporary-consents",{endpoint:[513],userId:[513,"user-id"],sessionId:[513,"session-id"],daysUntilLockout:[513,"days-until-lockout"],lang:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],stylingAppends:[32]}]]]],s))));
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
1015
1015
  autoPlay?: boolean;
1016
1016
  autoplay?: boolean | string;
1017
1017
  controls?: boolean;
1018
- controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1019
- controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1020
1018
  crossOrigin?: string;
1021
1019
  crossorigin?: string;
1022
1020
  loop?: boolean;
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
1566
1564
  onSubmitCapture?: (event: Event) => void;
1567
1565
  onInvalid?: (event: Event) => void;
1568
1566
  onInvalidCapture?: (event: Event) => void;
1569
- onBeforeToggle?: (event: Event) => void;
1570
- onBeforeToggleCapture?: (event: Event) => void;
1571
- onToggle?: (event: Event) => void;
1572
- onToggleCapture?: (event: Event) => void;
1573
1567
  onLoad?: (event: Event) => void;
1574
1568
  onLoadCapture?: (event: Event) => void;
1575
1569
  onError?: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/temporary-consents",
3
- "version": "1.55.0",
3
+ "version": "1.56.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.o?v(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(d),w(y),(m=d.length>0)&&f.raf(b)},v=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function E(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let o=null,l=!1,s=!1;const r=[],i=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof e&&!j(o))&&(o+=""),l&&s?r[r.length-1].i+=o:r.push(l?R(null,o):o),s=l)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=R(e,null);return c.u=t,r.length>0&&(c.h=r),c},R=(e,t)=>({o:0,p:e,i:t,m:null,h:null,u:null}),D={},H=new WeakMap,T=e=>"sc-"+e.$,L=(e,t,n,o,s,r)=>{if(n!==o){let i=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=U(n),s=U(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("ref"===t)o&&o(e);else if(i||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(W);t=t.replace(F,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},N=/\s/,U=e=>e?e.split(N):[],W="Capture",F=RegExp(W+"$"),q=(e,t,n)=>{const o=11===t.m.nodeType&&t.m.host?t.m.host:t.m,l=e&&e.u||g,s=t.u||g;for(const e of G(Object.keys(l)))e in s||L(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))L(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,_=(e,t,n)=>{const o=t.h[n];let l,s,r=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else if(l=o.m=a.createElement(o.p),q(null,o,V),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=_(e,o,r),s&&l.appendChild(s);return l["s-hn"]=M,l},z=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=_(null,n,l),r&&(o[l].m=r,Q(i,r,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.m;K(t),e&&e.remove()}}},I=(e,t)=>e.p===t.p,J=(e,t,n=!1)=>{const o=t.m=e.m,l=e.h,s=t.h,r=t.i;null===r?(q(e,t,V),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r=0,i=0,c=t.length-1,u=t[0],a=t[c],f=o.length-1,h=o[0],p=o[f];for(;r<=c&&i<=f;)null==u?u=t[++r]:null==a?a=t[--c]:null==h?h=o[++i]:null==p?p=o[--f]:I(u,h)?(J(u,h,l),u=t[++r],h=o[++i]):I(a,p)?(J(a,p,l),a=t[--c],p=o[--f]):I(u,p)?(J(u,p,l),Q(e,u.m,a.m.nextSibling),u=t[++r],p=o[--f]):I(a,h)?(J(a,h,l),Q(e,a.m,u.m),a=t[--c],h=o[++i]):(s=_(t&&t[i],n,i),h=o[++i],s&&Q(u.m.parentNode,s,u.m));r>c?z(e,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&B(t,r,c)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),z(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):e.i!==r&&(o.data=r)},K=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(K)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{t&&!e.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.v=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.S),S((()=>Z(e,t)));e.o|=512},Z=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(o=re(n,"componentWillLoad")),ee(o,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.j,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=T(t),l=i.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,r=H.get(e=e.head||e);if(r||H.set(e,r=new Set),!r.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=f.O)?n:E(a);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.j,s=e.k||R(null,null),r=(e=>e&&e.p===D)(t)?t:A(null,null,t);if(M=o.tagName,l.C&&(r.u=r.u||{},l.C.map((([e,t])=>r.u[t]=o[e]))),n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.p=null,r.o|=4,e.k=r,r.m=s.m=o.shadowRoot||o,J(s,r,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.S;re(e.t,"componentDidRender"),64&e.o||(e.o|=64,ie(t),e.M(t),n||se()),e.v&&(e.v(),e.v=void 0),512&e.o&&v((()=>Y(e,!1))),e.o&=-517},se=()=>{ie(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"temporary-consents"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ie=e=>e.classList.add("hydrated"),ce=(e,t,o)=>{var l,s;const r=e.prototype;if(t.P){const i=Object.entries(null!=(l=t.P)?l:{});if(i.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(o){((e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.A.get(t),i=s.o,c=s.t;o=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(o,l.P[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.A.set(t,o),c&&2==(18&i)&&Y(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.R)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.R)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.C)||l.push([e,s])),s}))]))}}return e},ue=(e,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],P:o[2],D:o[3]};4&l.o&&(g=!0),l.P=o[2],l.C=[];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,j:n,A:new Map};o.H=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.j,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.S=n);break}}o.P&&Object.entries(o.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.T;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.L}" was not found`);o.isProxied||(ce(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=T(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.S,c=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};l.T=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,ce(u,l,1)))}))})),h.length>0&&(g&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(l=f.O)?l:E(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(se,30)))},ae=e=>f.O=e;export{ue as b,A as h,h as p,o as r,ae as s}